@ckeditor/ckeditor5-track-changes 47.3.0-alpha.3 → 47.3.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x386c37(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x184d3f,_0x85428d){super(),this['id']=_0x85428d['id'],this['type']=_0x85428d['type'],this['subType']=_0x85428d['subType']||null,this['author']=_0x85428d['author'],this['creator']=_0x85428d['creator']||_0x85428d['author'],this['isExternal']=Boolean(_0x85428d['attributes']&&_0x85428d['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x85428d['originalSuggestionId']||null,this['_model']=_0x184d3f,this['_onAccept']=_0x85428d['onAccept'],this['_onDiscard']=_0x85428d['onDiscard'],this['_onAttributesChange']=_0x85428d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x85428d['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 _0x3d6fbc=this;for(;_0x3d6fbc['previous'];)_0x3d6fbc=_0x3d6fbc['previous'];return _0x3d6fbc;}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'](_0x418692){this['_markerNames']['add'](_0x418692);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x400460=>this['_model']['markers']['get'](_0x400460))['filter'](_0x274046=>_0x274046);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x22a84e=>{for(const _0x2b4615 of this['getMarkers']())_0x22a84e['removeMarker'](_0x2b4615);}),this['_markerNames']['clear']();}['removeMarker'](_0x510c8b){this['_model']['change'](_0x7c25df=>{_0x7c25df['removeMarker'](_0x510c8b);}),this['_markerNames']['delete'](_0x510c8b);}['addRange'](_0x15df1f){const _0x15662c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x15662c),this['_model']['change'](_0x979e27=>{_0x979e27['addMarker'](_0x15662c,{'range':_0x15df1f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x73b38a){for(const _0x180088 of this['getRanges']())if(_0x180088['isIntersecting'](_0x73b38a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4d20bb=>_0x4d20bb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1ef505,_0x251d3d)=>[..._0x1ef505,..._0x251d3d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3931e9=this['getRanges']();if(0x1!=_0x3931e9['length'])return null;const _0x5ee62e=_0x3931e9[0x0],_0x19a21f=_0x5ee62e['start']['nodeAfter'],_0x38c52e=_0x5ee62e['end']['nodeBefore'];return _0x19a21f instanceof _0x46ae36?_0x19a21f!=_0x38c52e?null:_0x19a21f: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 _0xaf5dcf=[];let _0x202029=this['head'];for(;_0x202029;)_0xaf5dcf['push'](_0x202029),_0x202029=_0x202029['next'];return _0xaf5dcf;}['setAttribute'](_0x4cc9b7,_0xbb88e5){const _0x3cc31b=_0x111325(this['attributes']);_0xc8892e(_0x3cc31b,_0x4cc9b7,_0xbb88e5),_0x3c4da3(_0x3cc31b,this['attributes'])||(this['attributes']=_0x3cc31b,this['_onAttributesChange'](_0x3cc31b));}['removeAttribute'](_0x28c392){const _0x3c3cd8=_0x111325(this['attributes']);_0x512536(_0x3c3cd8,_0x28c392),_0x3c4da3(_0x3c3cd8,this['attributes'])||(this['attributes']=_0x3c3cd8,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 _0xcb588e()['substr'](0x1,0x5);}}function o(_0x557033,_0x2a722d,_0x30eba2){const _0x242ed2=_0x557033['t'],t=_0x557033['t'];switch(_0x2a722d){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',_0x30eba2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x30eba2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x30eba2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x30eba2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x30eba2);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',_0x30eba2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x30eba2);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',_0x30eba2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x30eba2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x30eba2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x30eba2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x30eba2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x30eba2);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x30eba2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x30eba2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x30eba2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x30eba2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x30eba2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x30eba2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x30eba2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x30eba2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x30eba2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x30eba2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x30eba2);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x30eba2);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'},_0x30eba2);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x30eba2);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x30eba2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x30eba2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x30eba2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x30eba2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x30eba2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x30eba2);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'},_0x30eba2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x30eba2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x30eba2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x30eba2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x30eba2);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'},_0x30eba2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x30eba2);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'},_0x30eba2);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_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'},_0x30eba2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x30eba2);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'},_0x30eba2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x30eba2);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'},_0x30eba2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x30eba2);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x30eba2);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x30eba2);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x30eba2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x30eba2);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'},_0x30eba2);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x30eba2);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 _0x242ed2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x30eba2);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x242ed2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x30eba2);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x30eba2);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'},_0x30eba2);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'},_0x30eba2);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'},_0x30eba2);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2a722d;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xf15305,_0x24084b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xf15305,this['_locale']=_0x24084b;}['getDescriptions'](_0x9341d4){const _0x257c88=[],_0x3571cc=new Set(),_0x2ebd63=new Set();for(let _0x99146b=0x0;_0x99146b<_0x9341d4['length'];_0x99146b++){const _0x407eba=_0x9341d4[_0x99146b];if(!_0x407eba['isInContent'])continue;const _0x1587ab=this['_handleCustomCallbackDescription'](_0x407eba);if(_0x1587ab){if(null!=_0x407eba['subType']){if(_0x3571cc['has'](_0x407eba['subType']))continue;_0x3571cc['add'](_0x407eba['subType']);}_0x257c88['push'](_0x1587ab);}else{if('attribute'==_0x407eba['type']){const _0x466ef8=_0x407eba['data']['key'];if(_0x2ebd63['has'](_0x466ef8))continue;_0x2ebd63['add'](_0x407eba['data']['key']),_0x466ef8==m?this['_handleRenameSuggestionDescription'](_0x257c88,_0x407eba):this['_handleAttributeSuggestionDescription'](_0x257c88,_0x407eba);continue;}'insertion'!=_0x407eba['type']&&'deletion'!=_0x407eba['type']||this['_handleInsertRemoveSuggestionDescription'](_0x257c88,_0x407eba,_0x9341d4[_0x99146b+0x1]);}}return this['_resolveDescriptionItems'](_0x257c88);}['registerDescriptionCallback'](_0x5a047c){this['_customCallbacks']['push'](_0x5a047c);}['registerElementLabel'](_0x32e5c1,_0x2c55d8,_0x314620=_0x104c24['normal']){'function'==typeof _0x32e5c1?_0x5c5269(this['_itemLabelsCallbacks'],{'matchingCallback':_0x32e5c1,'label':_0x2c55d8,'priority':_0x314620}):this['_itemLabels']['set'](_0x32e5c1,_0x2c55d8);}['registerAttributeLabel'](_0x31d5a1,_0x31321f){this['_attributeLabels']['set'](_0x31d5a1,_0x31321f);}['getItemLabel'](_0x4d60e8,_0x11dd03=0x1){let _0x2604ca;for(const _0x722d24 of this['_itemLabelsCallbacks'])if(_0x722d24['matchingCallback'](_0x4d60e8)){_0x2604ca=_0x722d24['label'];break;}return _0x2604ca||(_0x2604ca=this['_itemLabels']['get'](_0x4d60e8['name'])),_0x2604ca?_0x2604ca(_0x11dd03):0x1!==_0x11dd03?_0x11dd03+'\x20'+_0x4d60e8['name']+'s':''+_0x4d60e8['name'];}['_addDescriptionItems'](_0x16a045,_0x56536b){const _0x379583=_0x56536b['getFirstRange']()['getWalker'](),_0x37fe8e='insertion'==_0x56536b['type']?'add':'remove';for(const _0x32528a of _0x379583){const _0x2a5af1=_0x32528a['item'],_0x1b1679=_0x16a045[_0x16a045['length']-0x1];if(_0x2a5af1['is']('$textProxy'))_0x1b1679&&_0x1b1679['type']['indexOf']('Container')>-0x1&&_0x16a045['pop'](),_0x1b1679&&'text'==_0x1b1679['type']?_0x1b1679[_0x37fe8e]+=_0x2a5af1['data']:_0x16a045['push']({'type':'text','add':'add'==_0x37fe8e?_0x2a5af1['data']:'','remove':'remove'==_0x37fe8e?_0x2a5af1['data']:''});else{if(this['_schema']['isObject'](_0x2a5af1)){const _0x37211f=_0x2a5af1;if(_0x1b1679&&_0x1b1679['type']['indexOf']('Container')>-0x1&&_0x16a045['pop'](),'elementEnd'==_0x32528a['type'])continue;_0x1b1679&&_0x1b1679['type']==_0x37fe8e+'Object'&&_0x1b1679['element']['name']==_0x37211f['name']?_0x1b1679['quantity']++:_0x16a045['push']({'type':_0x37fe8e+'Object','element':_0x37211f,'quantity':0x1}),_0x379583['skip'](_0x355eca=>!('elementEnd'==_0x355eca['type']&&_0x355eca['item']==_0x2a5af1));}else{if(this['_schema']['checkChild'](_0x2a5af1,'$text')||_0x2a5af1['is']('element','softBreak')){const _0x4d02ac=_0x2a5af1;if('add'==_0x37fe8e&&'elementStart'==_0x32528a['type']||'remove'==_0x37fe8e&&'elementEnd'==_0x32528a['type'])continue;if(_0x1b1679&&-0x1==_0x1b1679['type']['indexOf']('Container')){'text'==_0x1b1679['type']&&(_0x1b1679[_0x37fe8e]+='\x0a');continue;}let _0x2b7d5d;if(_0x2b7d5d='add'==_0x37fe8e?_0x4d02ac['nextSibling']&&!this['_schema']['isObject'](_0x4d02ac['nextSibling'])?_0x4d02ac['nextSibling']:null:_0x4d02ac['previousSibling']&&!this['_schema']['isObject'](_0x4d02ac['previousSibling'])?_0x4d02ac['previousSibling']:null,_0x4d02ac['isEmpty']||_0x2b7d5d&&_0x2b7d5d['isEmpty']){const _0x393c9f=_0x2b7d5d&&_0x2b7d5d['isEmpty']?_0x2b7d5d:_0x4d02ac;_0x1b1679&&_0x1b1679['type']==_0x37fe8e+'EmptyContainer'&&_0x1b1679['element']['name']==_0x393c9f['name']?_0x1b1679['quantity']++:_0x16a045['push']({'type':_0x37fe8e+'EmptyContainer','element':_0x393c9f,'quantity':0x1});}else _0x16a045['push']({'type':_0x37fe8e+'Container','element':_0x4d02ac});}}}}}['_resolveDescriptionItems'](_0x24a98f){const _0x117555=this['_locale'],_0x6f5db5=[],_0x154535=[],_0x446c20=[];for(const _0x13bbc0 of _0x24a98f)switch(_0x13bbc0['type']){case'text':if(_0x13bbc0['add']=_0x13bbc0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x13bbc0['remove']=_0x13bbc0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x13bbc0['add']&&''!=_0x13bbc0['remove']){_0x6f5db5['push']({'type':'replace','content':o(_0x117555,'REPLACE_TEXT',['\x22'+_0x13bbc0['remove']+'\x22','\x22'+_0x13bbc0['add']+'\x22'])});continue;}if(null!=_0x13bbc0['add']['match'](/^ +$/)){_0x6f5db5['push']({'type':'insertion','content':o(_0x117555,'*Insert:*\x20%0',o(_0x117555,'ELEMENT_SPACE',_0x13bbc0['add']['length']))});continue;}if(null!=_0x13bbc0['remove']['match'](/^ +$/)){_0x6f5db5['push']({'type':'deletion','content':o(_0x117555,'*Remove:*\x20%0',o(_0x117555,'ELEMENT_SPACE',_0x13bbc0['remove']['length']))});continue;}if(''!=_0x13bbc0['add']){_0x6f5db5['push']({'type':'insertion','content':o(_0x117555,'*Insert:*\x20%0','\x22'+_0x13bbc0['add']+'\x22')});continue;}_0x6f5db5['push']({'type':'deletion','content':o(_0x117555,'*Remove:*\x20%0','\x22'+_0x13bbc0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x6f5db5['push']({'type':'insertion','content':o(_0x117555,'*Insert:*\x20%0',this['getItemLabel'](_0x13bbc0['element'],_0x13bbc0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x6f5db5['push']({'type':'deletion','content':o(_0x117555,'*Remove:*\x20%0',this['getItemLabel'](_0x13bbc0['element'],_0x13bbc0['quantity']))});continue;case'addContainer':_0x6f5db5['push']({'type':'insertion','content':o(_0x117555,'*Split:*\x20%0',this['getItemLabel'](_0x13bbc0['element'],_0x13bbc0['quantity']))});continue;case'removeContainer':_0x6f5db5['push']({'type':'deletion','content':o(_0x117555,'*Merge:*\x20%0',this['getItemLabel'](_0x13bbc0['element'],_0x13bbc0['quantity']))});continue;case'addFormat':_0x154535['push'](_0x13bbc0['key']);continue;case'removeFormat':_0x446c20['push'](_0x13bbc0['key']);continue;default:_0x6f5db5['push'](_0x13bbc0);}if(_0x154535['length']){const _0x4d9668=_0x154535['map'](_0x193972=>this['_attributeLabels']['has'](_0x193972)?this['_attributeLabels']['get'](_0x193972):_0x193972)['join'](',\x20');_0x6f5db5['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4d9668)});}if(_0x446c20['length']){const _0x556413=_0x446c20['map'](_0x33cb7f=>this['_attributeLabels']['has'](_0x33cb7f)?this['_attributeLabels']['get'](_0x33cb7f):_0x33cb7f)['join'](',\x20');_0x6f5db5['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x556413)});}return _0x6f5db5;}['_handleCustomCallbackDescription'](_0x2c0bff){for(const _0x5a800d of this['_customCallbacks']){const _0x1fbf96=_0x5a800d(_0x2c0bff);if(_0x1fbf96&&'type'in _0x1fbf96)return _0x1fbf96;}}['_handleAttributeSuggestionDescription'](_0x4fed78,_0x58470f){const _0x525a4c=_0x58470f['data'],_0x40287d=void 0x0===_0x525a4c['newValue']?'removeFormat':'addFormat';_0x4fed78['push']({'type':_0x40287d,'key':_0x525a4c['key']});}['_handleRenameSuggestionDescription'](_0x23066a,_0x5ec6f9){_0x23066a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5ec6f9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xcae0d5,_0x1dfe08,_0x3d72c5){if(this['_addDescriptionItems'](_0xcae0d5,_0x1dfe08),_0x3d72c5&&_0x3d72c5['getFirstRange']()&&!_0x1dfe08['getFirstRange']()['end']['isEqual'](_0x3d72c5['getFirstRange']()['start'])){const _0x511bea=_0xcae0d5[_0xcae0d5['length']-0x1],_0x3bdf58='insertion'==_0x1dfe08['type']?'add':'remove';_0x511bea&&'text'==_0x511bea['type']&&(_0x511bea[_0x3bdf58]+='\x0a');}}}class R extends _0x2e7573{['afterInit'](){const _0x59795a=this['editor'],_0x248bd5=_0x59795a['plugins']['get']('TrackChangesEditing');_0x59795a['commands']['get']('showAIAssistant')&&_0x248bd5['enableCommand']('showAIAssistant');}}class T extends _0x2e7573{['afterInit'](){const _0x372209=this['editor'],_0x2c5190=_0x372209['plugins']['get']('TrackChangesEditing');_0x372209['commands']['get']('toggleAi')&&_0x2c5190['enableCommand']('toggleAi');}}class E extends _0x2e7573{['afterInit'](){const _0x3973a4=this['editor'],_0x1c05d3=_0x3973a4['plugins']['get']('TrackChangesEditing');_0x3973a4['commands']['get']('aiQuickAction')&&_0x1c05d3['enableCommand']('aiQuickAction');}}class U extends _0x2e7573{['afterInit'](){const _0x3054c4=this['editor'],_0x45bae7=_0x3054c4['locale'];if(!_0x3054c4['plugins']['has']('AlignmentEditing'))return;const _0x33e4cc=_0x3054c4['plugins']['get']('TrackChangesEditing');_0x33e4cc['enableDefaultAttributesIntegration']('alignment'),_0x33e4cc['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x45bae7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dd9ff=this['editor'],_0x1c526d=_0x3dd9ff['locale'];_0x3dd9ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b98b1=>{if('formatBlock'!=_0x1b98b1['type'])return;const {data:_0xea1be3}=_0x1b98b1;if(_0xea1be3&&'alignment'==_0xea1be3['commandName']){const _0xbddabc=_0xea1be3['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1c526d,'*Format:*\x20%0',function(_0x11b1a9){switch(_0x11b1a9){case'left':return o(_0x1c526d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1c526d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1c526d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1c526d,'FORMAT_JUSTIFY_TEXT');}}(_0xbddabc))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x2e7573{['afterInit'](){const _0x3649e7=this['editor'],_0x28964f=_0x3649e7['plugins']['get']('TrackChangesEditing'),_0x2ec15a=_0x3649e7['locale'];for(const _0xb4749a of ti){if(!_0x3649e7['plugins']['has'](_0xb4749a))continue;const _0x54c9cb=_0xb4749a['slice'](0x0,-0x7)['toLowerCase'](),_0x40eaa4='FORMAT_'+_0x54c9cb['toUpperCase']();_0x28964f['enableDefaultAttributesIntegration'](_0x54c9cb),_0x28964f['descriptionFactory']['registerAttributeLabel'](_0x54c9cb,o(_0x2ec15a,_0x40eaa4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4de200=this['editor'],_0x8cff79=_0x4de200['locale'],_0xa17564=_0x4de200['plugins']['get']('TrackChangesEditing');function _0x40559b(_0x550a32,_0x17e533){_0xa17564['descriptionFactory']['registerDescriptionCallback'](_0x51a0ad=>{if('formatInline'!=_0x51a0ad['type'])return;const {data:_0x4695d8}=_0x51a0ad;return _0x4695d8&&_0x4695d8['commandName']===_0x550a32?_0x4695d8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x8cff79,'*Format:*\x20%0',_0x17e533)}:{'type':'format','content':o(_0x8cff79,'*Remove\x20format:*\x20%0',_0x17e533)}:void 0x0;});}_0x40559b('bold',o(_0x8cff79,'FORMAT_BOLD')),_0x40559b('italic',o(_0x8cff79,'FORMAT_ITALIC')),_0x40559b('underline',o(_0x8cff79,'FORMAT_UNDERLINE')),_0x40559b('code',o(_0x8cff79,'FORMAT_CODE')),_0x40559b('strikethrough',o(_0x8cff79,'FORMAT_STRIKETHROUGH')),_0x40559b('subscript',o(_0x8cff79,'FORMAT_SUBSCRIPT')),_0x40559b('superscript',o(_0x8cff79,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2e7573{['afterInit'](){const _0x41d4d7=this['editor'],_0x3e4ffa=_0x41d4d7['locale'];if(!_0x41d4d7['plugins']['has']('BlockQuoteEditing'))return;const _0x45ea6a=_0x41d4d7['plugins']['get']('TrackChangesEditing'),_0x41f121=this['editor']['commands']['get']('blockQuote');_0x45ea6a['enableCommand']('blockQuote',(_0x1551a9,_0x246f75={})=>{const _0x4310d8=this['editor']['model']['document']['selection'],_0x55d7ce=_0x246f75&&void 0x0!==_0x246f75['forceValue']?_0x246f75['forceValue']:!_0x41f121['value'];let _0x14aaa7=[];if(_0x55d7ce){const _0x23bb51=Array['from'](_0x4310d8['getSelectedBlocks']())['filter'](_0x233a16=>oo(_0x233a16)||function(_0x19ec00,_0x522538){const _0x22259d=_0x522538['checkChild'](_0x19ec00['parent'],'blockQuote'),_0x23f11b=_0x522538['checkChild'](['$root','blockQuote'],_0x19ec00);return _0x22259d&&_0x23f11b;}(_0x233a16,this['editor']['model']['schema']));_0x14aaa7=to(_0x23bb51,_0x41d4d7['model']);}else{const _0x575b8b=Array['from'](_0x4310d8['getSelectedBlocks']())['filter'](_0x2ed6a0=>oo(_0x2ed6a0));_0x14aaa7=to(_0x575b8b,_0x41d4d7['model']);}_0x41d4d7['model']['change'](()=>{for(const _0xbda5d7 of _0x14aaa7)_0x45ea6a['markBlockFormat'](_0xbda5d7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x55d7ce}]});});}),_0x45ea6a['descriptionFactory']['registerDescriptionCallback'](_0x4b8a6b=>{const {data:_0x32af58}=_0x4b8a6b;if(_0x32af58&&'blockQuote'==_0x32af58['commandName']){const _0x3fed0c=o(_0x3e4ffa,'ELEMENT_BLOCK_QUOTE');return _0x32af58['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e4ffa,'*Set\x20format:*\x20%0',_0x3fed0c)}:{'type':'format','content':o(_0x3e4ffa,'*Remove\x20format:*\x20%0',_0x3fed0c)};}});}}function oo(_0x5e998b){return'blockQuote'==_0x5e998b['parent']['name'];}class G extends _0x2e7573{['afterInit'](){const _0x428578=this['editor'],_0x285b36=_0x428578['locale'],_0x17a354=_0x428578['plugins']['get']('TrackChangesEditing');_0x428578['plugins']['has']('BookmarkEditing')&&(_0x17a354['enableCommand']('insertBookmark'),_0x17a354['enableDefaultAttributesIntegration']('updateBookmark'),_0x17a354['descriptionFactory']['registerDescriptionCallback'](_0x341c46=>{if('insertion'!=_0x341c46['type']&&'deletion'!=_0x341c46['type']&&'attribute'!=_0x341c46['type'])return;const _0x1fc9d5=_0x341c46['getContainedElement']();if(null==_0x1fc9d5)return;if(!_0x1fc9d5['is']('element','bookmark'))return;const _0x182827=_0x1fc9d5['getAttribute']('bookmarkId');if('insertion'==_0x341c46['type'])return{'type':'insertion','content':o(_0x285b36,'*Insert:*\x20%0','\x22'+_0x182827+'\x22\x20'+o(_0x285b36,'ELEMENT_BOOKMARK'))};if('deletion'==_0x341c46['type'])return{'type':'deletion','content':o(_0x285b36,'*Remove:*\x20%0','\x22'+_0x182827+'\x22\x20'+o(_0x285b36,'ELEMENT_BOOKMARK'))};const {data:_0x3de733}=_0x341c46;if(!_0x3de733||'bookmarkId'!=_0x3de733['key'])return;return{'type':'format','content':o(_0x285b36,'*Set\x20bookmark:*\x20%0','\x22'+_0x3de733['newValue']+'\x22')};}));}}class L extends _0x2e7573{['afterInit'](){const _0x27495d=this['editor'];_0x27495d['plugins']['has']('CaseChange')&&(_0x27495d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x27495d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x27495d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x2e7573{['afterInit'](){const _0x5993d4=this['editor'];_0x5993d4['commands']['get']('ckbox')&&_0x5993d4['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2e7573{['afterInit'](){const _0x4530b3=this['editor'];if(!_0x4530b3['plugins']['has']('CodeBlock'))return;const _0x41114a=_0x4530b3['plugins']['get']('TrackChangesEditing'),_0x1c677d=_0x4530b3['locale'],_0x52e48d=_0x4530b3['config']['get']('codeBlock')['languages'],_0x147757=_0x4530b3['commands']['get']('codeBlock');_0x41114a['enableCommand']('indentCodeBlock'),_0x41114a['enableCommand']('outdentCodeBlock'),_0x41114a['enableCommand']('codeBlock',(_0x574bf1,_0x1f96d6={})=>{const _0x45ea27=_0x4530b3['model'],_0x167656=_0x4530b3['model']['document']['selection'],_0xca2d6b=_0x1f96d6&&void 0x0!==_0x1f96d6['forceValue']?_0x1f96d6['forceValue']:!_0x147757['value'];let _0x4754fc;_0x1f96d6['language']||(_0x1f96d6['language']=_0x52e48d[0x0]['language']),_0x4754fc=_0xca2d6b?Array['from'](_0x167656['getSelectedBlocks']())['filter'](_0x27690d=>co(_0x27690d)||function(_0x4ac83e,_0x54eeac){if(_0x4ac83e['is']('rootElement')||_0x54eeac['isLimit'](_0x4ac83e))return!0x1;return _0x54eeac['checkChild'](_0x4ac83e['parent'],'codeBlock');}(_0x27690d,_0x45ea27['schema'])):Array['from'](_0x167656['getSelectedBlocks']())['filter'](_0xa215e8=>co(_0xa215e8));const _0x20c448=to(_0x4754fc,_0x45ea27);_0x45ea27['change'](()=>{for(const _0x3bf209 of _0x20c448)_0x41114a['markBlockFormat'](_0x3bf209,{'commandName':'codeBlock','commandParams':[{..._0x1f96d6,'forceValue':_0xca2d6b}],'formatGroupId':'blockName'});});}),(_0x41114a['descriptionFactory']['registerElementLabel']('codeBlock',_0x197be7=>o(_0x1c677d,'ELEMENT_CODE_BLOCK',_0x197be7)),_0x41114a['descriptionFactory']['registerDescriptionCallback'](_0xafa0b5=>{if('formatBlock'!=_0xafa0b5['type'])return;const _0x15f85e=_0x1c677d['t'],{data:_0x79ae5c}=_0xafa0b5;if(!_0x79ae5c||'codeBlock'!=_0x79ae5c['commandName'])return;const _0x3f4155=_0x79ae5c['commandParams'][0x0]['language'],_0x9206d0=_0x15f85e(_0x52e48d['find'](_0x121226=>_0x121226['language']===_0x3f4155)['label'])['toLowerCase']();return _0x79ae5c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c677d,'*Set\x20format:*\x20%0',o(_0x1c677d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x9206d0+')')}:{'type':'format','content':o(_0x1c677d,'*Remove\x20format:*\x20%0',o(_0x1c677d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x36b832){return'codeBlock'==_0x36b832['name'];}class z extends _0x2e7573{['afterInit'](){const _0x1c8177=this['editor'];if(!_0x1c8177['plugins']['has']('CommentsEditing'))return;_0x1c8177['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x2e7573{static get['requires'](){return[_0x1a056a];}['init'](){const _0x578506=this['editor'],_0x6bbef9=_0x578506['plugins']['get']('TrackChangesEditing');_0x6bbef9['enableCommand']('delete');const _0x449fb6=_0x578506['commands']['get']('deleteForward');_0x6bbef9['enableCommand']('deleteForward',(_0x537b3e,_0x2f7fc={})=>{const _0x49a264=_0x578506['model']['createSelection'](_0x578506['model']['document']['selection']);_0x49a264['isCollapsed']&&_0x578506['model']['modifySelection'](_0x49a264,{'direction':'forward','unit':_0x2f7fc['unit']});const _0x59659a=_0x49a264['getFirstRange'](),_0x1c39a0=_0x2f9bba['fromRange'](_0x59659a);let _0x4c130b;_0x537b3e(_0x2f7fc),_0x4c130b='$graveyard'==_0x1c39a0['root']['rootName']?_0x578506['model']['createRange'](_0x59659a['start']):_0x578506['model']['createRange'](_0x1c39a0['start'],_0x1c39a0['end']),_0x1c39a0['detach'](),_0x578506['model']['enqueueChange'](_0x449fb6['buffer']['batch'],_0x3f7bf1=>{_0x449fb6['buffer']['lock'](),_0x3f7bf1['setSelection'](_0x3f7bf1['createRange'](_0x4c130b['end'])),_0x449fb6['buffer']['unlock']();});});}}class W extends _0x2e7573{['afterInit'](){const _0x5b60a0=this['editor'];if(!_0x5b60a0['plugins']['has']('ListEditing'))return;const _0x1dd013=_0x5b60a0['locale'],_0x1a967d=_0x5b60a0['plugins']['get']('TrackChangesEditing'),_0x23be17=_0x5b60a0['plugins']['has']('TodoListEditing'),_0x34280e=!!_0x5b60a0['config']['get']('list.multiBlock');function _0x4d3ac9(_0x9d6225){return{'type':'format','content':''+o(_0x1dd013,'*Set\x20format:*\x20%0',_0x9d6225)};}function _0x2e6390(_0x2834ee){return{'type':'format','content':''+o(_0x1dd013,'*Remove\x20format:*\x20%0',_0x2834ee)};}_0x1a967d['enableDefaultAttributesIntegration']('numberedList'),_0x1a967d['enableDefaultAttributesIntegration']('bulletedList'),_0x1a967d['enableDefaultAttributesIntegration']('customNumberedList'),_0x1a967d['enableDefaultAttributesIntegration']('customBulletedList'),_0x1a967d['enableDefaultAttributesIntegration']('indentList'),_0x1a967d['enableDefaultAttributesIntegration']('outdentList'),_0x1a967d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1a967d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x34280e&&(_0x1a967d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1a967d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x23be17&&(_0x1a967d['enableDefaultAttributesIntegration']('todoList'),_0x1a967d['enableDefaultAttributesIntegration']('checkTodoList'),_0x1a967d['descriptionFactory']['registerDescriptionCallback'](_0x5edf87=>{const {data:_0xefedd2}=_0x5edf87;if(_0xefedd2&&'todoListChecked'==_0xefedd2['key'])return{'type':'format','content':_0xefedd2['newValue']?o(_0x1dd013,'*Check\x20item*'):o(_0x1dd013,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x8a266e=>{if(_0x8a266e['batch']['isUndo'])return!0x1;let _0x417eb5=!0x1;const _0x1c68c4=_0x1a967d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49a3a9=>'todoListChecked'===_0x1a967d['_getAttributeKey'](_0x49a3a9));for(const _0x18f820 of _0x1c68c4){'todo'!=_0x18f820['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1a967d['_findSuggestions'](_0x18f820['getFirstRange'](),'attribute')['find'](_0x232f8a=>'listType'===_0x1a967d['_getAttributeKey'](_0x232f8a['suggestion']))||(_0x8a266e['removeMarker'](_0x18f820['getFirstMarker']()),_0x417eb5=!0x0));}return _0x417eb5;})),_0x1a967d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1dd013,'FORMAT_INDENT'));const _0x2e9398={'type':'format','content':''};_0x1a967d['descriptionFactory']['registerDescriptionCallback'](_0x5dd71a=>{const {data:_0x405f81}=_0x5dd71a;if(!_0x405f81||'listType'!=_0x405f81['key'])return;let _0x3e31c6=_0x5dd71a['head'];for(;_0x3e31c6;){if(_0x3e31c6['data']&&(('listStyle'==_0x3e31c6['data']['key']||'listMarkerStyle'==_0x3e31c6['data']['key'])&&(_0x3e31c6['data']['newValue']&&'default'!=_0x3e31c6['data']['newValue']||'default'!=_0x3e31c6['data']['oldValue']&&!_0x405f81['newValue'])||!_0x34280e&&_0x3e31c6['data']['key']==m))return _0x2e9398;_0x3e31c6=_0x3e31c6['next'];}if(null==_0x405f81['newValue'])switch(_0x405f81['oldValue']){case'bulleted':return _0x2e6390(o(_0x1dd013,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e6390(o(_0x1dd013,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e6390(o(_0x1dd013,'ELEMENT_TODO_LIST'));}switch(_0x405f81['newValue']){case'bulleted':return _0x4d3ac9(o(_0x1dd013,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4d3ac9(o(_0x1dd013,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4d3ac9(o(_0x1dd013,'ELEMENT_TODO_LIST'));}}),_0x1a967d['descriptionFactory']['registerDescriptionCallback'](_0x474ebd=>{const {data:_0x48c2a5}=_0x474ebd;if(_0x48c2a5&&'listIndent'==_0x48c2a5['key'])return null==_0x48c2a5['newValue']||null==_0x48c2a5['oldValue']&&0x0==_0x48c2a5['newValue']?_0x2e9398:void 0x0;}),_0x1a967d['descriptionFactory']['registerDescriptionCallback'](_0x507f4c=>{if('attribute'!=_0x507f4c['type'])return;const {data:_0x5efc9e}=_0x507f4c;if(!_0x5efc9e||'listItemId'!=_0x5efc9e['key'])return;const _0x5d53c3=Te(_0x507f4c);return'newValue'==_0x5d53c3?{'type':'format','content':o(_0x1dd013,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5d53c3?{'type':'format','content':o(_0x1dd013,'*Split:*\x20list\x20item')}:_0x2e9398;}),_0x5b60a0['model']['document']['registerPostFixer'](_0x12e39a=>this['listItemIdFixer'](_0x12e39a)),_0x5b60a0['model']['document']['registerPostFixer'](_0x324e0a=>this['noTrackChangesFixer'](_0x324e0a)),_0x5b60a0['model']['document']['on']('change:data',(_0x4e8198,_0x1923f3)=>{if(_0x1923f3['isUndo']||!_0x1923f3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3cf5cd){if(_0x3cf5cd['batch']['isUndo']||!_0x3cf5cd['batch']['isLocal'])return!0x1;let _0x269f5f=!0x1;const _0xaf826b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xeacad5=>_0xeacad5['data']&&'listItemId'==_0xeacad5['data']['key'])['filter'](_0x47ceee=>_0x47ceee['data']['newValue']&&_0x47ceee['data']['oldValue']);for(const _0x18ce1d of _0xaf826b)Te(_0x18ce1d)||(_0x3cf5cd['removeMarker'](_0x18ce1d['getFirstMarker']()),_0x269f5f=!0x0);return _0x269f5f;}['noTrackChangesFixer'](_0x3655a3){if(_0x3655a3['batch']['isUndo']||!_0x3655a3['batch']['isLocal'])return!0x1;const _0x950d1c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x950d1c['trackChangesCommand']['value'])return!0x1;let _0x50b1c5=!0x1;const _0x4f3fd1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x34f06f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4f6120=>'attribute'==_0x4f6120['type'])['filter'](_0x357219=>_0x4f3fd1['includes'](_0x357219['attributeKey']));if(0x0==_0x34f06f['length'])return _0x50b1c5;for(const _0xe108f8 of _0x34f06f){const _0x1d8297=_0x950d1c['_findSuggestions'](_0xe108f8['range'],'attribute')['filter'](_0x2c820e=>!_0x2c820e['meta']['isNextTo'])['map'](_0x3f96f4=>_0x3f96f4['suggestion'])['filter'](_0xa9ef4a=>{const _0x3da07b=_0x950d1c['_getAttributeKey'](_0xa9ef4a);return _0x4f3fd1['includes'](_0x3da07b);});if(_0x1d8297['length']){for(const _0x201bf7 of _0x1d8297)_0x3655a3['removeMarker'](_0x201bf7['getFirstMarker']());_0x50b1c5=!0x0;}}return _0x50b1c5;}['assureChains'](){const _0xb73592=this['editor']['plugins']['get']('TrackChangesEditing'),_0x599cff=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2bfc14;const _0x356296=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x21cfb2=>{if(_0x21cfb2['data']['oldRange']||!_0x21cfb2['data']['newRange'])return null;if(!_0x21cfb2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2463d4}=_0xb73592['_splitMarkerName'](_0x21cfb2['name']);if(!_0xb73592['hasSuggestion'](_0x2463d4))return null;const _0x204c68=_0xb73592['getSuggestion'](_0x2463d4);return _0x599cff['includes'](_0x204c68['data']['key']);})['map'](_0x1de4d6=>{const {id:_0x1dcc6b}=_0xb73592['_splitMarkerName'](_0x1de4d6['name']),_0x5e208a=_0xb73592['getSuggestion'](_0x1dcc6b);return _0x2bfc14=_0x5e208a['attributes']['groupId'],_0x5e208a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x356296['size'])return;const _0x2c1e96=_0xb73592['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4cdd16=>'attribute'==_0x4cdd16['type']&&_0x4cdd16['data']&&_0x599cff['includes'](_0x4cdd16['data']['key'])&&_0x4cdd16['attributes']['groupId']!=_0x2bfc14)['map'](_0x727493=>({'listItem':_0x727493['getFirstRange']()['start']['nodeAfter'],'groupId':_0x727493['attributes']['groupId']})),_0x46940e=new Set();for(const {groupId:_0x20cbd5,listItem:_0x4ffa27}of _0x2c1e96)_0x356296['has'](_0x4ffa27)&&_0x46940e['add'](_0x20cbd5);for(const _0x46a064 of _0xb73592['getSuggestions']())_0x46940e['has'](_0x46a064['attributes']['groupId'])&&_0x46a064['setAttribute']('groupId',_0x2bfc14);}['_supportLegacySuggestions'](){const _0x25f621=this['editor'],_0x873313=_0x25f621['locale'],_0x18d4dc=_0x25f621['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x18d4dc['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4f7718,_0x1d774e){const _0x57c7e1=[];for(let _0x22e98f of _0x4f7718)_0x22e98f['start']['nodeAfter']===_0x22e98f['end']['parent']&&(_0x22e98f=_0x25f621['model']['createRange'](_0x25f621['model']['createPositionAt'](_0x22e98f['start']['nodeAfter'],0x0))),_0x57c7e1['push'](_0x22e98f);_0x25f621['model']['change'](_0x152c91=>{const _0xf44748=_0x25f621['model']['document']['selection'],_0x578dba=Array['from'](_0xf44748['getRanges']())['map'](_0x36e357=>_0x2f9bba['fromRange'](_0x36e357));_0x152c91['setSelection'](_0x57c7e1),_0x25f621['commands']['get'](_0x1d774e['commandName'])['refresh'](),_0x1d774e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x25f621['execute'](_0x1d774e['commandName'],..._0x1d774e['commandParams']),_0x152c91['setSelection'](_0x578dba);for(const _0x35ca00 of _0x578dba)_0x35ca00['detach']();});}),_0x18d4dc['descriptionFactory']['registerElementLabel'](function(_0x3604f4){const _0x3435a7=!_0x25f621['model']['schema']['isObject'](_0x3604f4),_0x2b6cff=_0x3604f4['previousSibling'],_0xb5dd3b=_0x3604f4['nextSibling'],_0x5caf08=_0x3604f4['getAttribute']('listItemId'),_0x3f8d20=!_0x2b6cff||_0x2b6cff['getAttribute']('listItemId')!==_0x5caf08,_0x17dbbb=!_0xb5dd3b||_0xb5dd3b['getAttribute']('listItemId')!==_0x5caf08;return _0x3435a7&&Boolean(_0x5caf08)&&_0x3f8d20&&_0x17dbbb;},_0x1c561c=>o(_0x873313,'ELEMENT_LIST_ITEM',_0x1c561c));}['_registerLegacyDescription'](){const _0x3128b5=this['editor'],_0x3e1054=_0x3128b5['locale'];function _0xcde2de(_0x2184a6){const _0x4a9b27=_0x3128b5['commands']['get']('bulletedList')['value'],_0x56bff9=_0x3128b5['commands']['get']('numberedList')['value'];return'numberedList'===_0x2184a6?_0x4a9b27:_0x56bff9;}_0x3128b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x49cab5){if('formatBlock'!=_0x49cab5['type'])return;const {data:_0x31ceac}=_0x49cab5;if(!_0x31ceac)return;let _0x29e2bf,_0x256b09,_0x5d8888,_0x488f4c;switch(_0x31ceac['commandName']){case'bulletedList':_0x5d8888=_0x31ceac['commandParams'][0x0]['forceValue'],_0x488f4c=_0xcde2de(_0x31ceac['commandName']),_0x29e2bf=_0x5d8888?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x488f4c&&_0x3128b5['config']['get']('list.multiBlock')||(_0x29e2bf='*Change\x20to:*\x20%0'),_0x256b09={'type':'format','content':o(_0x3e1054,_0x29e2bf,o(_0x3e1054,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d8888=_0x31ceac['commandParams'][0x0]['forceValue'],_0x488f4c=_0xcde2de(_0x31ceac['commandName']),_0x29e2bf=_0x5d8888?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x488f4c&&_0x3128b5['config']['get']('list.multiBlock')||(_0x29e2bf='*Change\x20to:*\x20%0'),_0x256b09={'type':'format','content':o(_0x3e1054,_0x29e2bf,o(_0x3e1054,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x29e2bf='*Indent:*\x20%0',_0x256b09={'type':'format','content':o(_0x3e1054,_0x29e2bf,o(_0x3e1054,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x29e2bf=function(_0x395a9e){const _0x177588=_0x395a9e['getFirstRange']();let _0x15bf53=_0x177588['start']['nodeAfter'];for(;_0x15bf53&&_0x177588['containsItem'](_0x15bf53);){if(_0x15bf53['getAttribute']('listIndent')>0x0)return!0x1;_0x15bf53=_0x15bf53['nextSibling'];}return!0x0;}(_0x49cab5)?o(_0x3e1054,'*Format:*\x20remove\x20from\x20%0',o(_0x3e1054,function(_0x53a66a){return'ELEMENT_'+_0x53a66a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x49cab5))):o(_0x3e1054,'*Outdent:*\x20%0',o(_0x3e1054,'ELEMENT_LIST_ITEM')),_0x256b09={'type':'format','content':_0x29e2bf};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x31ceac['multipleBlocks']&&(_0x29e2bf='*Merge:*\x20%0',_0x256b09={'type':'deletion','content':o(_0x3e1054,_0x29e2bf,o(_0x3e1054,'ELEMENT_LIST_ITEM'))});}return _0x256b09;});}}function Te(_0x2d6503){let _0x4b8d0e=_0x2d6503['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4b8d0e;){const _0x480bfb=_0x4b8d0e['getAttribute']('listItemId');if(!_0x480bfb)return!0x1;if(_0x480bfb==_0x2d6503['data']['newValue'])return'newValue';if(_0x480bfb==_0x2d6503['data']['oldValue'])return'oldValue';_0x4b8d0e=_0x4b8d0e['previousSibling'];}return!0x1;}class H extends _0x2e7573{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4dd67f=this['editor']['config']['get']('list.properties'),_0x11ac63=this['editor']['plugins']['get']('TrackChangesEditing');_0x4dd67f['styles']&&_0x11ac63['enableDefaultAttributesIntegration']('listStyle'),_0x4dd67f['reversed']&&_0x11ac63['enableDefaultAttributesIntegration']('listReversed'),_0x4dd67f['startIndex']&&_0x11ac63['enableDefaultAttributesIntegration']('listStart');const _0x5c8ad4={'type':'format','content':''};_0x11ac63['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x31118e=this['editor']['locale'];_0x11ac63['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x31118e,'FORMAT_LIST_REVERSED')),_0x11ac63['descriptionFactory']['registerDescriptionCallback'](_0x302013=>{const {data:_0x1e949c}=_0x302013;if(_0x1e949c&&'listReversed'==_0x1e949c['key'])return null==_0x1e949c['newValue']||0x0==_0x1e949c['newValue']&&null==_0x1e949c['oldValue']?_0x5c8ad4:void 0x0;}),_0x11ac63['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x31118e,'FORMAT_LIST_START')),_0x11ac63['descriptionFactory']['registerDescriptionCallback'](_0xa975d2=>{const {data:_0x454f9e}=_0xa975d2;if(_0x454f9e&&'listStart'==_0x454f9e['key'])return null==_0x454f9e['newValue']||0x1==_0x454f9e['newValue']&&null==_0x454f9e['oldValue']?_0x5c8ad4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3b4462=>{if(_0x3b4462['batch']['isUndo'])return!0x1;let _0x2dd01b=!0x1;const _0x2eb7d6=_0x11ac63['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13d16e=>{const _0x3ee717=_0x11ac63['_getAttributeKey'](_0x13d16e);return'listStart'==_0x3ee717||'listReversed'==_0x3ee717;});for(const _0x40a603 of _0x2eb7d6){const _0x59b772=_0x40a603['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x59b772||'customNumbered'==_0x59b772)continue;_0x11ac63['_findSuggestions'](_0x40a603['getFirstRange'](),'attribute')['find'](_0x50237b=>'listType'==_0x11ac63['_getAttributeKey'](_0x50237b['suggestion']))||(_0x3b4462['removeMarker'](_0x40a603['getFirstMarker']()),_0x2dd01b=!0x0);}return _0x2dd01b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5b42cc){const _0x5f1ccc=this['editor']['locale'],{data:_0x2c99cd}=_0x5b42cc,_0x15364e={'type':'format','content':''};if(!_0x2c99cd||'listStyle'!=_0x2c99cd['key'])return;if(!_0x2c99cd['oldValue'])return'default'==_0x2c99cd['newValue']?_0x15364e:{'type':'format','content':''+o(_0x5f1ccc,'*Set\x20format:*\x20%0',o(_0x5f1ccc,this['_getTranslationKeyForListStyle'](_0x2c99cd['newValue'])))};if(!_0x2c99cd['newValue']){if('default'==_0x2c99cd['oldValue'])return _0x15364e;let _0x711a97=_0x5b42cc['head'];for(;_0x711a97;){if(_0x711a97['data']&&'listType'==_0x711a97['data']['key']&&_0x711a97['data']['newValue'])return _0x15364e;_0x711a97=_0x711a97['next'];}return{'type':'format','content':''+o(_0x5f1ccc,'*Remove\x20format:*\x20%0',o(_0x5f1ccc,this['_getTranslationKeyForListStyle'](_0x2c99cd['oldValue'])))};}if('default'!=_0x2c99cd['newValue'])return{'type':'format','content':''+o(_0x5f1ccc,'*Set\x20format:*\x20%0',o(_0x5f1ccc,this['_getTranslationKeyForListStyle'](_0x2c99cd['newValue'])))};let _0x8450e5=_0x5b42cc['head'];for(;_0x8450e5;){if(_0x8450e5['data']&&'listType'==_0x8450e5['data']['key']&&_0x8450e5['data']['newValue']&&_0x8450e5['data']['oldValue'])return _0x15364e;_0x8450e5=_0x8450e5['next'];}return{'type':'format','content':o(_0x5f1ccc,'*Set\x20format:*\x20%0',o(_0x5f1ccc,'ELEMENT_'+_0x5b42cc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xe3b263=this['editor'],_0x2117fd=_0xe3b263['locale'];_0xe3b263['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47cdf9=>{if('formatBlock'!=_0x47cdf9['type'])return;const {data:_0x546dce}=_0x47cdf9;if(!_0x546dce)return;let _0x15816f,_0x2ad6ec;switch(_0x546dce['commandName']){case'listStyle':_0x15816f='*Change\x20to:*\x20%0',_0x2ad6ec={'type':'format','content':o(_0x2117fd,_0x15816f,o(_0x2117fd,this['_getTranslationKeyForListStyle'](_0x546dce['commandParams'][0x0]['type'])))};break;case'listReversed':_0x15816f=_0x546dce['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2ad6ec={'type':'format','content':o(_0x2117fd,_0x15816f)};break;case'listStart':_0x15816f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2ad6ec={'type':'format','content':o(_0x2117fd,_0x15816f,_0x546dce['commandParams'][0x0]['startIndex'])};}return _0x2ad6ec;});}['_getTranslationKeyForListStyle'](_0x854af9){return'ELEMENT_'+function(_0x3c9793){if(ye['includes'](_0x3c9793))return'bulleted';if(Se['includes'](_0x3c9793))return'numbered';return null;}(_0x854af9)['toUpperCase']()+'_LIST_'+_0x854af9['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2e7573{['afterInit'](){const _0x540dc4=this['editor'];_0x540dc4['commands']['get']('emoji')&&_0x540dc4['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x2e7573{static get['requires'](){return[_0xfee016];}['init'](){const _0x566265=this['editor'],_0x123642=_0x566265['plugins']['get']('TrackChangesEditing'),_0xd17a2c=_0x566265['commands']['get']('enter');_0x123642['enableCommand']('enter',()=>{_0x566265['model']['change'](_0x234581=>{const _0x37d1ce=_0x566265['model']['document']['selection'],_0x243718=_0x37d1ce['getFirstPosition'](),_0xe2b41c=_0x2f9bba['fromRange'](_0x37d1ce['getFirstRange']());if(_0xd17a2c['enterBlock'](_0x234581)){const _0x31ea1=_0x566265['model']['createPositionAt'](_0x243718['parent']['nextSibling'],0x0),_0x117592=_0x234581['createRange'](_0x243718,_0x31ea1);_0x123642['markInsertion'](_0x117592);}else _0x234581['setSelection'](_0x234581['createRange'](_0xe2b41c['end']));_0xe2b41c['detach'](),_0xd17a2c['fire']('afterExecute',{'writer':_0x234581});});});}}class Y extends _0x2e7573{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x587976=this['editor']['plugins']['get']('TrackChangesEditing');_0x587976['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x587976['enableCommand']('findNext'),_0x587976['enableCommand']('findPrevious'),_0x587976['enableCommand']('replace'),_0x587976['enableCommand']('replaceAll');}['handleFindCommand'](_0x3494bb,_0xfd3264,_0x6d8cb1={}){const _0xa16f92=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3494bb(_0x108537=>{let _0x2127da=('string'==typeof _0xfd3264?_0xa16f92['findByTextCallback'](_0xfd3264,_0x6d8cb1):_0xfd3264)(_0x108537);Array['isArray'](_0x2127da)&&(_0x2127da={'results':_0x2127da,'searchText':'string'==typeof _0xfd3264?_0xfd3264:''});const _0x2bd3d2=_0x2127da['results']['filter'](_0x9c1278=>!0x1===this['_isInDeletionRange'](_0x9c1278,_0x108537['item']));return{..._0x2127da,'results':_0x2bd3d2};},_0x6d8cb1);}['_isInDeletionRange'](_0x3d56c3,_0x4a7456){const _0x40d4a8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a7456,_0x3d56c3['start']),this['editor']['model']['createPositionAt'](_0x4a7456,_0x3d56c3['end']));for(const _0x4d62d3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x40d4a8['getIntersection'](_0x4d62d3['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 _0x2e7573{['afterInit'](){const _0x2741a6=this['editor']['locale'],_0x4ae836=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4f8da8,commandName:_0x46095a}of eo)this['editor']['plugins']['has'](_0x4f8da8)&&_0x4ae836['enableDefaultAttributesIntegration'](_0x46095a);_0x4ae836['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2741a6,'FORMAT_FONT_SIZE')),_0x4ae836['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2741a6,'FORMAT_FONT_FAMILY')),_0x4ae836['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2741a6,'FORMAT_FONT_COLOR')),_0x4ae836['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2741a6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31eed0=this['editor'],_0x1718ad=_0x31eed0['locale'];_0x31eed0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e9d47=>{const _0x485fb3=_0x1718ad['t'];if('formatInline'!=_0x3e9d47['type'])return;const {data:_0x4d49ce}=_0x3e9d47;if(null!=_0x4d49ce){if('fontSize'==_0x4d49ce['commandName']){const _0x50a4b5=_0x4d49ce['commandParams'][0x0]['value'];if(_0x50a4b5){const _0x40eb5e=_0x485fb3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5d4a64=>_0x5d4a64['model']==_0x50a4b5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1718ad,'*Set\x20font\x20size:*\x20%0',_0x40eb5e)};}return{'type':'format','content':o(_0x1718ad,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4d49ce['commandName']){const _0x4df513=_0x4d49ce['commandParams'][0x0]['value'];return _0x4df513?{'type':'format','content':o(_0x1718ad,'*Set\x20font\x20family:*\x20%0',_0x4df513)}:{'type':'format','content':o(_0x1718ad,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4d49ce['commandName']){const _0x5cd52c=_0x4d49ce['commandParams'][0x0]['value'];if(_0x5cd52c){const _0x584150=_0x996e88(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5213cf=>_0x5213cf['model']==_0x5cd52c);let _0x57ff85=_0x5cd52c,_0x44f169='';return _0x584150&&(_0x57ff85=_0x584150['label'],_0x44f169=_0x485fb3(_0x57ff85)['toLowerCase']()),{'type':'format','content':o(_0x1718ad,'*Set\x20font\x20color:*\x20%0',_0x44f169)['trim'](),'color':{'value':_0x5cd52c,'title':_0x44f169||_0x57ff85}};}return{'type':'format','content':o(_0x1718ad,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4d49ce['commandName']){const _0x546e3d=_0x4d49ce['commandParams'][0x0]['value'];if(_0x546e3d){const _0x4a4d51=_0x996e88(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x42cd54=>_0x42cd54['model']==_0x546e3d);let _0x34215a=_0x546e3d,_0x27537a='';return _0x4a4d51&&(_0x34215a=_0x4a4d51['label'],_0x27537a=_0x485fb3(_0x34215a)['toLowerCase']()),{'type':'format','content':o(_0x1718ad,'*Set\x20font\x20background\x20color:*\x20%0',_0x27537a)['trim'](),'color':{'value':_0x546e3d,'title':_0x27537a||_0x34215a}};}return{'type':'format','content':o(_0x1718ad,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2e7573{['afterInit'](){const {plugins:_0x1c4546}=this['editor'];_0x1c4546['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x1c4546['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x107175,plugins:_0x446ffd,commands:_0x4fe65b}=this['editor'],_0x4a62ff=_0x446ffd['get']('TrackChangesEditing');_0x4fe65b['get']('footnotesStyle')&&_0x4a62ff['enableDefaultAttributesIntegration']('footnotesStyle'),_0x4fe65b['get']('footnotesStart')&&_0x4a62ff['enableDefaultAttributesIntegration']('footnotesStart'),_0x4a62ff['registerBlockAttribute']('footnotesListStyle'),_0x4a62ff['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x107175,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4a62ff['registerBlockAttribute']('footnotesListStart'),_0x4a62ff['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x107175,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2d1782=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4c3773,commands:_0x209c7d}=this['editor'];_0x209c7d['get']('insertFootnote')&&_0x2d1782['enableCommand']('insertFootnote'),_0x2d1782['descriptionFactory']['registerElementLabel']('footnoteRef',_0x31d9f8=>o(_0x4c3773,'ELEMENT_FOOTNOTE_REF',_0x31d9f8)),_0x2d1782['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3688b7=>o(_0x4c3773,'ELEMENT_FOOTNOTE_DEFINITION',_0x3688b7)),_0x2d1782['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1b9fed=>o(_0x4c3773,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1b9fed));}}class nt extends _0x2e7573{['afterInit'](){const _0x4de561=this['editor'],_0x39d41c=_0x4de561['plugins']['get']('TrackChangesEditing'),_0x4a8929=_0x4de561['commands']['get']('copyFormat'),_0x51707c=_0x4de561['commands']['get']('pasteFormat');_0x4a8929&&_0x51707c&&(_0x39d41c['enableDefaultAttributesIntegration']('pasteFormat'),_0x39d41c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x38a452=this['editor'],_0x242d4a=_0x38a452['locale'];_0x38a452['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4825a7=>{if('formatBlock'!=_0x4825a7['type']&&'formatInline'!=_0x4825a7['type'])return;const {data:_0x279729}=_0x4825a7;if(_0x279729&&'pasteFormat'===_0x279729['commandName']){const _0x205430=[],_0x492c2b=_0x279729['commandParams'][0x0];for(const [_0x3d4050,_0x15ee6e]of Object['entries'](_0x492c2b))_0x205430['push'](ro(_0x38a452,_0x3d4050,_0x15ee6e));return _0x205430['length']?{'type':'format','content':o(_0x242d4a,'*Set\x20format\x20to:*\x20%0',_0x205430['join'](',\x20'))}:{'type':'format','content':o(_0x242d4a,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x207bf8,_0x456b21,_0x2056d0){const _0x50b34f=_0x207bf8['locale']['t'],_0x52dc8c=_0x456b21['split'](/(?=[A-Z])/)['join']('\x20'),_0x3c8cf0=_0x50b34f(_0x52dc8c['charAt'](0x0)['toUpperCase']()+_0x52dc8c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2056d0)return _0x3c8cf0;if('fontColor'===_0x456b21||'fontBackgroundColor'===_0x456b21){const _0x38652b=_0x996e88(_0x207bf8['config']['get']('fontColor.colors'))['find'](_0x5421af=>_0x5421af['model']==_0x2056d0);return _0x3c8cf0+'\x20('+(_0x38652b?_0x50b34f(_0x38652b['label'])['toLowerCase']():_0x2056d0)+')';}if('fontSize'===_0x456b21&&isNaN(parseFloat(_0x2056d0))){const _0x2c3e2c=_0x207bf8['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x207bf8['config']['get']('fontSize.options'))['find'](_0x16e1fa=>_0x16e1fa['model']==_0x2056d0);return _0x3c8cf0+'\x20('+(_0x2c3e2c?_0x50b34f(_0x2c3e2c['title'])['toLowerCase']():_0x2056d0)+')';}return _0x3c8cf0+'\x20('+_0x2056d0+')';}class it extends _0x2e7573{['_headingOptions'];['afterInit'](){const _0xd91553=this['editor'];if(!_0xd91553['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xd91553['config']['get']('heading.options');const _0x35fd56=_0xd91553['locale'],_0x1ea6b4=_0xd91553['plugins']['get']('TrackChangesEditing');_0x1ea6b4['enableDefaultAttributesIntegration']('heading');for(const _0x43dde0 of this['_headingOptions'])'paragraph'!=_0x43dde0['model']&&_0x1ea6b4['descriptionFactory']['registerElementLabel'](_0x43dde0['model'],_0x7d7fc6=>{const _0x979ad1=this['_getHeadingLevel'](_0x43dde0['model']);return null!==_0x979ad1?_0x1c1152(_0x7d7fc6,_0x979ad1):_0x2173c3(_0x7d7fc6,_0x43dde0['title']);});function _0x1c1152(_0x337427,_0x29990b){return o(_0x35fd56,'ELEMENT_HEADING',[_0x337427,_0x29990b]);}function _0x2173c3(_0x3a9fa5,_0x2f5637){return o(_0x35fd56,'ELEMENT_HEADING_CUSTOM',[_0x3a9fa5,_0x2f5637]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27423a=this['editor'],_0x4e0474=_0x27423a['locale'];function _0x2b039e(_0x5af403,_0x2989b4){return o(_0x4e0474,'ELEMENT_HEADING_CUSTOM',[_0x5af403,_0x2989b4]);}_0x27423a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f9e32=>{if('formatBlock'!=_0x3f9e32['type'])return;const {data:_0x1b8c51}=_0x3f9e32;if(_0x1b8c51&&'heading'==_0x1b8c51['commandName']){const _0x3098c5=_0x1b8c51['commandParams'][0x0]['value'],_0x4f95e1=this['_getHeadingLevel'](_0x3098c5);if(null!==_0x4f95e1)return{'type':'format','content':o(_0x4e0474,'*Change\x20to:*\x20%0',(_0xcbe25f=0x1,_0x27558b=_0x4f95e1,o(_0x4e0474,'ELEMENT_HEADING',[_0xcbe25f,_0x27558b])))};const _0x526118=this['_headingOptions']['find'](_0x46493a=>_0x46493a['model']===_0x3098c5)['title'];return{'type':'format','content':o(_0x4e0474,'*Change\x20to:*\x20%0',_0x2b039e(0x1,_0x526118))};}var _0xcbe25f,_0x27558b;});}['_getHeadingLevel'](_0x58d0cb){const _0x1a57ad=_0x58d0cb['match'](/^heading(\d+)/);if(_0x1a57ad)return _0x1a57ad[0x1];const _0xdbd2ab=this['_headingOptions']?.['find'](_0x4118e7=>_0x4118e7['model']==_0x58d0cb);if(_0xdbd2ab&&_0xdbd2ab['view']){const _0x1997af=_0xdbd2ab['view'],_0x5ab743=(_0x1997af['name']??_0x1997af)['match'](/^h(\d+)/);if(_0x5ab743)return _0x5ab743[0x1];}return null;}}class et extends _0x2e7573{['afterInit'](){const _0x2357f3=this['editor'];if(!_0x2357f3['plugins']['has']('HighlightEditing'))return;const _0x39d415=_0x2357f3['plugins']['get']('TrackChangesEditing'),_0x72b648=_0x2357f3['locale'];_0x39d415['enableDefaultAttributesIntegration']('highlight'),_0x39d415['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x72b648,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10cdb9=this['editor'],_0x342feb=_0x10cdb9['locale'];_0x10cdb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x330ca9=>{if('formatInline'!=_0x330ca9['type'])return;const {data:_0x231e67}=_0x330ca9;if(_0x231e67&&'highlight'==_0x231e67['commandName']){const _0x3df7bd=_0x342feb['t'],_0x43b241=_0x231e67['commandParams'][0x0]['value'];if(_0x43b241){const _0x6bddc3=_0x10cdb9['config']['get']('highlight.options')['find'](_0x1046cf=>_0x1046cf['model']==_0x43b241),_0x1b5c46=_0x3df7bd(_0x6bddc3['title'])['toLowerCase']();return{'type':'format','content':o(_0x342feb,'*Set\x20highlight:*\x20%0',_0x1b5c46),'color':{'value':_0x6bddc3['color'],'title':_0x6bddc3['title']}};}return{'type':'format','content':o(_0x342feb,'*Remove\x20highlight*',o(_0x342feb,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2e7573{['afterInit'](){const _0x7b44af=this['editor'];if(!_0x7b44af['plugins']['has']('HorizontalLineEditing'))return;_0x7b44af['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x50260a=_0x7b44af['plugins']['get']('TrackChangesEditing'),_0x40faa3=_0x7b44af['locale'];_0x50260a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x66104c=>o(_0x40faa3,'ELEMENT_HORIZONTAL_LINE',_0x66104c));}}class ot extends _0x2e7573{['afterInit'](){const _0x2bcc26=this['editor'];if(!_0x2bcc26['plugins']['has']('HtmlEmbed'))return;const _0x1ef460=_0x2bcc26['plugins']['get']('TrackChangesEditing'),_0x4c36c6=_0x2bcc26['locale'];_0x1ef460['descriptionFactory']['registerElementLabel']('rawHtml',_0x534ad0=>o(_0x4c36c6,'ELEMENT_HTML_EMBED',_0x534ad0)),_0x1ef460['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1ef460['descriptionFactory']['registerDescriptionCallback'](_0x58951b=>{if('attribute'!=_0x58951b['type'])return;const {data:_0x5f322a}=_0x58951b;if(_0x5f322a&&'value'==_0x5f322a['key']&&_0x58951b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x30117d=o(_0x4c36c6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4c36c6,'*Change\x20%0\x20content*',_0x30117d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56b068=this['editor'],_0x275929=_0x56b068['locale'];_0x56b068['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1be394=>{if('formatBlock'!=_0x1be394['type'])return;const {data:_0x275fa1}=_0x1be394;if(_0x275fa1&&'htmlEmbed'==_0x275fa1['commandName']){const _0x209dbf=o(_0x275929,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x275929,'*Change\x20%0\x20content*',_0x209dbf)};}});}}class rt extends _0x2e7573{['afterInit'](){const _0x49e9ed=this['editor'];if(!_0x49e9ed['plugins']['has']('ImageEditing'))return;const _0x5401cc=_0x49e9ed['plugins']['get']('TrackChangesEditing'),_0x596891=_0x49e9ed['plugins']['get']('ImageUtils'),_0x5a74b7=_0x49e9ed['locale'];_0x5401cc['enableCommand']('insertImage'),_0x5401cc['descriptionFactory']['registerElementLabel']('imageBlock',_0x4dfce2=>o(_0x5a74b7,'ELEMENT_IMAGE',_0x4dfce2)),_0x5401cc['descriptionFactory']['registerElementLabel']('imageInline',_0x5bea47=>o(_0x5a74b7,'ELEMENT_INLINE_IMAGE',_0x5bea47)),_0x5401cc['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5a74b7,'ELEMENT_CAPTION')),_0x49e9ed['plugins']['has']('ImageUploadEditing')&&_0x5401cc['enableCommand']('uploadImage'),_0x49e9ed['plugins']['has']('ImageBlockEditing')&&_0x49e9ed['plugins']['has']('ImageInlineEditing')&&(_0x5401cc['enableCommand']('imageTypeInline',(_0x394406,_0x8e6d95)=>{const _0x39a230=_0x596891['getClosestSelectedImageElement'](_0x49e9ed['model']['document']['selection']);_0x49e9ed['model']['change'](()=>{_0x5401cc['markBlockFormat'](_0x39a230,{'commandName':'imageTypeInline','commandParams':[_0x8e6d95]},[],'convertBlockImageToInline');});}),_0x5401cc['enableCommand']('imageTypeBlock',(_0x10dd53,_0x4e1ec9)=>{_0x49e9ed['model']['change'](_0x32662d=>{let _0x236bca=_0x596891['getClosestSelectedImageElement'](_0x49e9ed['model']['document']['selection']),_0x118cb2=_0x32662d['createRangeOn'](_0x236bca);const _0x166fd2=_0x7306c2['fromPosition'](_0x118cb2['start'],'toPrevious'),_0x3ab1cd=_0x7306c2['fromPosition'](_0x118cb2['end'],'toNext');_0x5401cc['forceDefaultExecution'](()=>_0x10dd53(_0x4e1ec9)),_0x236bca=_0x596891['getClosestSelectedImageElement'](_0x49e9ed['model']['document']['selection']),_0x118cb2=_0x32662d['createRangeOn'](_0x236bca);const _0x144775=_0x32662d['createRange'](_0x166fd2,_0x3ab1cd);_0x166fd2['detach'](),_0x3ab1cd['detach'](),_0x5401cc['markBlockFormat'](_0x236bca,{'commandName':'imageTypeInline','commandParams':[_0x4e1ec9]},[],'convertInlineImageToBlock'),_0x144775['start']['isBefore'](_0x118cb2['start'])&&_0x5401cc['markInsertion'](_0x32662d['createRange'](_0x144775['start'],_0x118cb2['start']),'convertInlineImageToBlock'),_0x118cb2['end']['isBefore'](_0x144775['end'])&&_0x5401cc['markInsertion'](_0x32662d['createRange'](_0x118cb2['end'],_0x144775['end']),'convertInlineImageToBlock');});}),_0x5401cc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5401cc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5401cc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5401cc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5401cc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5401cc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x41fd32])=>{const _0x2c3934=_0x5401cc['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3fa914=_0x41fd32['start'],_0x2d1cf9=_0x41fd32['end'];const _0x2160b8=_0x49e9ed['model']['schema']['getNearestSelectionRange'](_0x3fa914,'backward'),_0x5c195f=_0x49e9ed['model']['schema']['getNearestSelectionRange'](_0x2d1cf9,'forward');_0x2160b8['isCollapsed']&&(_0x3fa914=_0x2160b8['start']),_0x5c195f['isCollapsed']&&(_0x2d1cf9=_0x5c195f['end']),_0x2c3934([_0x49e9ed['model']['createRange'](_0x3fa914,_0x2d1cf9)]);}),_0x5401cc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3984d2),_0x5401cc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3984d2)),_0x49e9ed['plugins']['has']('ImageCaptionEditing')&&(_0x5401cc['enableCommand']('toggleImageCaption',(_0x2438a6,_0x459bf2)=>{const _0x53655b=_0x49e9ed['plugins']['get']('ImageCaptionUtils');let _0x36d50e=_0x596891['getClosestSelectedImageElement'](_0x49e9ed['model']['document']['selection']),_0x433a19=_0x53655b['getCaptionFromImageModelElement'](_0x36d50e);_0x49e9ed['model']['change'](()=>{if(_0x433a19)return void _0x5401cc['markDeletion'](_0x49e9ed['model']['createRangeOn'](_0x433a19));const _0x38b87a=_0x596891['isBlockImage'](_0x36d50e);_0x2438a6(_0x459bf2),_0x36d50e=_0x596891['getClosestSelectedImageElement'](_0x49e9ed['model']['document']['selection']),_0x433a19=_0x53655b['getCaptionFromImageModelElement'](_0x36d50e),_0x5401cc['markInsertion'](_0x49e9ed['model']['createRangeOn'](_0x433a19),_0x38b87a?null:'imageCaption');});}),_0x5401cc['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3984d2));const _0x341bdc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x181513(_0x26d35d,_0x271436){const _0x23c197=_0x341bdc['findIndex'](({type:_0x57e510,subType:_0x4e2178})=>_0x26d35d['type']==_0x57e510&&_0x26d35d['subType']==_0x4e2178),_0x2fe92b=_0x341bdc['findIndex'](({type:_0x4758b3,subType:_0x2b73c7})=>_0x271436['type']==_0x4758b3&&_0x271436['subType']==_0x2b73c7);if(_0x23c197<0x0||_0x2fe92b<0x0)return!0x1;const _0x1fd0b3=_0x26d35d['getFirstRange'](),_0x80e11f=_0x271436['getFirstRange']();if((0x0==_0x23c197||0x1==_0x23c197)&&0x2==_0x2fe92b&&_0x1fd0b3['isIntersecting'](_0x80e11f))return!0x0;if(0x2==_0x23c197&&0x3==_0x2fe92b){const _0x36ac11=_0x5401cc['_findSuggestions'](_0x1fd0b3,'insertion')['filter'](({suggestion:_0x169a8c,meta:_0x336706})=>_0x336706['isOwn']&&'convertInlineImageToBlock'==_0x169a8c['subType']);if(_0x36ac11['length']>0x1&&_0x80e11f['end']['isEqual'](_0x1fd0b3['start']))return!0x0;if(0x1==_0x36ac11['length']&&(_0x1fd0b3['start']['isEqual'](_0x80e11f['end'])||_0x1fd0b3['end']['isEqual'](_0x80e11f['start'])))return!0x0;}if(0x3==_0x23c197&&0x3==_0x2fe92b&&_0x1fd0b3['start']['isBefore'](_0x80e11f['start'])){const _0x338b93=_0x1fd0b3['end']['nodeAfter'],_0x833799=_0x80e11f['start']['nodeBefore'];return _0x596891['isBlockImage'](_0x338b93)&&_0x338b93===_0x833799;}return!0x1;}function _0x3984d2(_0x5e1928,_0xf4a32c){return _0x181513(_0x5e1928,_0xf4a32c)?[_0x5e1928,_0xf4a32c]:_0x181513(_0xf4a32c,_0x5e1928)?[_0xf4a32c,_0x5e1928]:null;}_0x49e9ed['plugins']['has']('ImageResize')&&(_0x5401cc['enableDefaultAttributesIntegration']('resizeImage'),_0x5401cc['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5a74b7,'FORMAT_IMAGE_SIZE'))),_0x49e9ed['plugins']['has']('ImageTextAlternativeEditing')&&_0x5401cc['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x49e9ed['plugins']['has']('PictureEditing')&&_0x5401cc['descriptionFactory']['registerDescriptionCallback'](_0x4cc414=>{if('attribute'!=_0x4cc414['type'])return;const {data:_0x2b8aa1}=_0x4cc414;return _0x2b8aa1&&'sources'==_0x2b8aa1['key']?{'type':'format','content':''}:void 0x0;}),_0x49e9ed['plugins']['has']('ImageSizeAttributes')&&_0x5401cc['descriptionFactory']['registerDescriptionCallback'](_0x19b7ee=>{if('attribute'!=_0x19b7ee['type'])return;const {data:_0x2b8843}=_0x19b7ee;return!_0x2b8843||'width'!=_0x2b8843['key']&&'height'!=_0x2b8843['key']?void 0x0:{'type':'format','content':''};}),_0x5401cc['descriptionFactory']['registerDescriptionCallback'](_0x1f93f4=>{if(!!_0x341bdc['find'](({type:_0x45b049,subType:_0x238ec0})=>_0x1f93f4['type']==_0x45b049&&_0x1f93f4['subType']==_0x238ec0))return _0x1f93f4['previous']?{}:void 0x0;}),_0x5401cc['descriptionFactory']['registerDescriptionCallback'](_0x12977e=>{if('insertion'==_0x12977e['type']||'deletion'==_0x12977e['type']){const _0x180277=_0x12977e['getContainedElement']();if(_0x180277&&_0x180277['is']('element','caption'))return{'type':'insertion'==_0x12977e['type']?'addObject':'removeObject','element':_0x180277,'quantity':0x1};}}),_0x5401cc['descriptionFactory']['registerDescriptionCallback'](_0xad8be0=>'formatBlock'==_0xad8be0['type']&&'convertInlineImageToBlock'==_0xad8be0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xad8be0['type']&&'convertBlockImageToInline'==_0xad8be0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5401cc['descriptionFactory']['registerDescriptionCallback'](_0x4fb5d5=>{if('attribute'!=_0x4fb5d5['type'])return;const {data:_0x2d0fe7}=_0x4fb5d5;if(!_0x2d0fe7||'alt'!=_0x2d0fe7['key'])return;const _0x123a8d=_0x2d0fe7['newValue'];return _0x123a8d?{'type':'format','content':o(_0x5a74b7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x123a8d+'\x22')}:{'type':'format','content':o(_0x5a74b7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25de4b=this['editor'],_0x320c8b=_0x25de4b['locale'];_0x25de4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51d7b8=>{if('formatBlock'!=_0x51d7b8['type']&&'formatInline'!=_0x51d7b8['type'])return;const {data:_0x22d98f}=_0x51d7b8;if(_0x22d98f){if('imageTextAlternative'==_0x22d98f['commandName']){const _0x499858=_0x22d98f['commandParams'][0x0]['newValue'];return _0x499858?{'type':'format','content':o(_0x320c8b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x499858+'\x22')}:{'type':'format','content':o(_0x320c8b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x22d98f['commandName']){const _0x68e6d9=_0x22d98f['commandParams'][0x0]['width'];return _0x68e6d9?{'type':'format','content':o(_0x320c8b,'*Set\x20image\x20width:*\x20%0',_0x68e6d9)}:{'type':'format','content':o(_0x320c8b,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2e7573{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x93c5e4=this['editor']['locale'],_0x4328aa=this['editor']['plugins']['get']('TrackChangesEditing');_0x4328aa['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4328aa['descriptionFactory']['registerDescriptionCallback'](_0x46c12b=>{if('attribute'!=_0x46c12b['type'])return;const {data:_0xca3558}=_0x46c12b;return _0xca3558&&'src'==_0xca3558['key']?_0xca3558['newValue']&&_0xca3558['oldValue']?{'type':'format','content':o(_0x93c5e4,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x27ec40=this['editor']['plugins']['get']('TrackChangesEditing');_0x27ec40['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x27ec40['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x27ec40['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x27ec40['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13aa07=this['editor'],_0x5786a2=_0x13aa07['locale'];_0x13aa07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30de58=>{if('formatBlock'!=_0x30de58['type']&&'formatInline'!=_0x30de58['type'])return;const {data:_0x4a0ef2}=_0x30de58;if(!_0x4a0ef2||'replaceImageSource'!=_0x4a0ef2['commandName'])return;return{'type':'format','content':o(_0x5786a2,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2e7573{['afterInit'](){const _0x50bdf6=this['editor'];if(!_0x50bdf6['plugins']['has']('ImageStyleEditing'))return;const _0x588457=_0x50bdf6['plugins']['get']('TrackChangesEditing'),_0xc08597=_0x50bdf6['plugins']['get']('ImageUtils'),_0x2fed26={};_0x588457['enableCommand']('imageStyle',(_0x1618f6,_0x15170f)=>{const _0x5c81f3=_0x50bdf6['plugins']['get']('Users')['me'],_0x33eb60=_0x50bdf6['commands']['get']('imageStyle');let _0x1bd602=_0xc08597['getClosestSelectedImageElement'](_0x50bdf6['model']['document']['selection']),_0x49be0e=_0x50bdf6['model']['createRangeOn'](_0x1bd602),_0x256d28=_0x33eb60['value'];if(_0x256d28==_0x15170f['value'])return;const _0x3f16c6={'commandName':'imageStyle','commandParams':[_0x15170f],'formatGroupId':_0xcb588e()};_0x50bdf6['model']['change'](()=>{if(_0x588457['getSuggestions']()['filter'](_0x23ea05=>_0x23ea05['isInContent']&&_0x5c81f3==_0x23ea05['author']&&('formatBlock'==_0x23ea05['type']||'formatInline'==_0x23ea05['type'])&&('imageStylePreApply'==_0x23ea05['subType']||'imageStylePostApply'==_0x23ea05['subType'])&&_0x23ea05['getFirstRange']()['isEqual'](_0x49be0e))['forEach'](_0x27c07d=>_0x588457['discardSuggestion'](_0x27c07d['head'])),_0x1bd602=_0xc08597['getClosestSelectedImageElement'](_0x50bdf6['model']['document']['selection']),_0x49be0e=_0x50bdf6['model']['createRangeOn'](_0x1bd602),_0x33eb60['refresh'](),_0x50bdf6['commands']['get']('imageTypeInline')['refresh'](),_0x50bdf6['commands']['get']('imageTypeBlock')['refresh'](),_0x256d28=_0x33eb60['value'],_0x256d28!=_0x15170f['value'])return _0xc08597['isInlineImage'](_0x1bd602)&&_0x33eb60['shouldConvertImageType'](_0x15170f['value'],_0x1bd602)?(_0x1618f6({..._0x15170f,'setImageSizes':!0x1}),_0x1bd602=_0xc08597['getClosestSelectedImageElement'](_0x50bdf6['model']['document']['selection']),void _0x588457['markBlockFormat'](_0x1bd602,{..._0x3f16c6,'commandReversedParams':[{'value':_0x256d28||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xc08597['isBlockImage'](_0x1bd602)?_0x588457['markBlockFormat'](_0x1bd602,_0x3f16c6,[],'imageStylePostApply'):_0x588457['markInlineFormat'](_0x49be0e,_0x3f16c6,'imageStylePostApply'));});});for(const _0x2cb72d of _0x50bdf6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2fed26[_0x2cb72d['name']]=_0x2cb72d['title']['toLowerCase']();_0x588457['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x588457['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x588457['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x588457['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4906ac])=>{_0xc08597['setImageNaturalSizeAttributes'](_0x4906ac['getContainedElement']());}),_0x588457['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1e42fd,_0x31a37f)=>{_0x588457['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1e42fd,{'commandName':_0x31a37f['commandName'],'commandParams':_0x31a37f['commandReversedParams']});}),_0x588457['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x55419f,_0x1aa741){if(_0x136adb(_0x55419f,_0x1aa741))return[_0x55419f,_0x1aa741];if(_0x136adb(_0x1aa741,_0x55419f))return[_0x1aa741,_0x55419f];return null;});const _0x552e3e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x136adb(_0x4b87ad,_0x109a0f){const _0xf11dda=_0x552e3e['findIndex'](({type:_0x1454ae,subType:_0x3074a8})=>_0x4b87ad['type']==_0x1454ae&&_0x4b87ad['subType']==_0x3074a8),_0x195d53=_0x552e3e['findIndex'](({type:_0x4fef23,subType:_0x7f3094})=>_0x109a0f['type']==_0x4fef23&&_0x109a0f['subType']==_0x7f3094);if(_0xf11dda<0x0||_0x195d53<0x0)return!0x1;const _0x19459a=_0x4b87ad['getFirstRange'](),_0x5d43e0=_0x109a0f['getFirstRange']();if((0x0==_0xf11dda||0x1==_0xf11dda)&&0x2==_0x195d53&&_0x19459a['isIntersecting'](_0x5d43e0))return!0x0;if(0x2==_0xf11dda&&0x3==_0x195d53){const _0x240098=_0x588457['_findSuggestions'](_0x19459a,'insertion')['filter'](({suggestion:_0x492821,meta:_0x55cf63})=>_0x55cf63['isOwn']&&'convertInlineImageToBlock'==_0x492821['subType']);if(_0x240098['length']>0x1&&_0x5d43e0['end']['isEqual'](_0x19459a['start']))return!0x0;if(0x1==_0x240098['length']&&(_0x19459a['start']['isEqual'](_0x5d43e0['end'])||_0x19459a['end']['isEqual'](_0x5d43e0['start'])))return!0x0;}if(0x3==_0xf11dda&&0x3==_0x195d53&&_0x19459a['start']['isBefore'](_0x5d43e0['start'])){const _0x3fd49d=_0x19459a['end']['nodeAfter'],_0x40590f=_0x5d43e0['start']['nodeBefore'];return _0xc08597['isBlockImage'](_0x3fd49d)&&_0x3fd49d===_0x40590f;}return!0x1;}_0x50bdf6['model']['document']['registerPostFixer'](()=>{let _0x99cb8b=!0x1;const _0x5d35c0=Array['from'](_0x50bdf6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xd9fb66,data:_0x58ca42}of _0x5d35c0){const {group:_0x5789fb,type:_0x499abf,subType:_0x53909e,id:_0x1f88da}=_0x588457['_splitMarkerName'](_0xd9fb66);if('suggestion'==_0x5789fb&&_0x588457['hasSuggestion'](_0x1f88da)){if('formatBlock'==_0x499abf&&('imageStylePreApply'==_0x53909e||'imageStylePostApply'==_0x53909e)){const _0x1288d8=_0x588457['getSuggestion'](_0x1f88da);if(_0x58ca42['newRange']){const _0x2804ac=_0x1288d8['getFirstRange']()['getContainedElement']();if(_0xc08597['isBlockImage'](_0x2804ac))continue;_0x588457['discardSuggestion'](_0x1288d8),_0x99cb8b=!0x0;}}if('insertion'==_0x499abf&&'imageCaption'==_0x53909e&&!_0x58ca42['newRange']){const _0x5d3994=_0x588457['getSuggestion'](_0x1f88da);_0x5d3994['next']&&_0x5d3994['next']['isInContent']&&(_0x588457['discardSuggestion'](_0x5d3994['next']),_0x99cb8b=!0x0);}}}return _0x99cb8b;}),this['_registerLegacyDescription'](_0x2fed26);}['_registerLegacyDescription'](_0x584786){const _0x3dc919=this['editor'],_0x4ff35d=_0x3dc919['locale'];_0x3dc919['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20cfaf=>{if('formatBlock'!=_0x20cfaf['type']&&'formatInline'!=_0x20cfaf['type'])return;const {data:_0x3c0055}=_0x20cfaf;if(!_0x3c0055||'imageStyle'!=_0x3c0055['commandName'])return;const _0x2e3d93=_0x3c0055['commandParams'][0x0]['value'];return _0xacd74d('side'===_0x2e3d93?o(_0x4ff35d,'FORMAT_SIDE_IMAGE'):_0x584786[_0x2e3d93]||_0x2e3d93);function _0xacd74d(_0x2c75c2){return{'type':'format','content':o(_0x4ff35d,'*Format:*\x20%0',_0x2c75c2)};}});}}class ut extends _0x2e7573{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3ef7fa){super(_0x3ef7fa),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5bea5b=this['editor'],_0xb37dad=_0x5bea5b['commands']['get']('importWord'),_0xa855a4=_0x5bea5b['commands']['get']('trackChanges');_0xb37dad&&(_0xb37dad['on']('execute',(_0x239796,[,_0x27c846])=>{this['_trackChangesValueDuringImport']=_0xa855a4['value'],_0x27c846['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xb37dad,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xb37dad,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xa855a4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5bea5b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xdd7fdc,_0x461da4){const {suggestions:_0x3bc8ca}=_0x461da4,_0x189431=this['editor']['commands']['get']('trackChanges'),_0x295fa0=_0x189431['value'];this['_trackChangesValueDuringImport']!==_0x295fa0&&(_0x189431['execute'](),this['_trackChangesExecuted']=!0x0),_0x3bc8ca&&_0x3bc8ca['forEach'](({id:_0x9f5b47,type:_0x1cbedf,author:_0xb7beab,created_at:_0x2a08e7})=>{const _0x59962a={'id':_0x9f5b47,'type':_0x1cbedf,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xb7beab,'createdAt':_0x2a08e7?new Date(_0x2a08e7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x59962a);});}}class ft extends _0x2e7573{['afterInit'](){const _0x5d4833=this['editor'],_0x3ba689=_0x5d4833['plugins']['get']('TrackChangesEditing');if(_0x5d4833['plugins']['has']('IndentEditing')&&(_0x3ba689['enableCommand']('indent'),_0x3ba689['enableCommand']('outdent')),_0x5d4833['plugins']['has']('IndentBlock')){for(const _0x415a91 of['indentBlock','outdentBlock'])_0x3ba689['enableDefaultAttributesIntegration'](_0x415a91);}const _0x5d827f=_0x5d4833['locale'];_0x3ba689['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5d827f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d5af0=this['editor'],_0x187a5e=_0x3d5af0['locale'],_0xa01f5=_0x3d5af0['plugins']['get']('TrackChangesEditing');_0xa01f5['descriptionFactory']['registerDescriptionCallback'](_0x53ba40=>{if('formatBlock'!=_0x53ba40['type'])return;const {data:_0x370454}=_0x53ba40;if(!_0x370454)return;if('indentBlock'!=_0x370454['commandName']&&'outdentBlock'!=_0x370454['commandName'])return;const _0x49e3bc=_0x53ba40['getItems']()[0x0],_0x61c04b=_0xa01f5['descriptionFactory']['getItemLabel'](_0x49e3bc);return'indentBlock'==_0x370454['commandName']?{'type':'format','content':o(_0x187a5e,'*Indent:*\x20%0',_0x61c04b)}:'outdentBlock'==_0x370454['commandName']?{'type':'format','content':o(_0x187a5e,'*Outdent:*\x20%0',_0x61c04b)}:void 0x0;});}}class ht extends _0x2e7573{static get['requires'](){return[_0x105aae];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2e7573{['afterInit'](){const _0x434286=this['editor'];if(!_0x434286['plugins']['has']('LinkEditing'))return;const _0x99462a=_0x434286['plugins']['get']('TrackChangesEditing'),_0x57eea0=_0x434286['commands']['get']('link');_0x99462a['enableDefaultAttributesIntegration']('link'),_0x99462a['enableDefaultAttributesIntegration']('unlink');for(const _0x3cf4c2 of _0x57eea0['manualDecorators'])_0x99462a['descriptionFactory']['registerAttributeLabel'](_0x3cf4c2['id'],'link\x20('+_0x3cf4c2['label']['toLowerCase']()+')');_0x99462a['descriptionFactory']['registerDescriptionCallback'](_0x4b2e58=>{if('attribute'!=_0x4b2e58['type'])return;const {data:_0x1fa347}=_0x4b2e58;if(!_0x1fa347||'linkHref'!=_0x1fa347['key'])return;const _0x2dc5a7=_0x1fa347['newValue'],_0x4b0c85=_0x434286['locale'];return{'type':'format','content':null==_0x2dc5a7?o(_0x4b0c85,'*Remove\x20link*'):o(_0x4b0c85,'*Set\x20link:*\x20%0','\x22'+_0x2dc5a7+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b331a=this['editor'],_0x51a2b5=_0x1b331a['locale'];_0x1b331a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4db862=>{if('formatInline'!=_0x4db862['type'])return;const {data:_0x4d6d63}=_0x4db862;if(_0x4d6d63){if('link'==_0x4d6d63['commandName']){const _0x5e7fd1=_0x4d6d63['commandParams'][0x0];return{'type':'format','content':o(_0x51a2b5,'*Set\x20link:*\x20%0','\x22'+_0x5e7fd1+'\x22')};}return'unlink'==_0x4d6d63['commandName']?{'type':'format','content':o(_0x51a2b5,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2e7573{['afterInit'](){const _0x170198=this['editor'],_0x73d1ca=_0x170198['locale'];if(!_0x170198['plugins']['has']('LegacyListEditing'))return;const _0x509221=_0x170198['plugins']['get']('TrackChangesEditing'),_0x214f22=_0x170198['plugins']['has']('LegacyTodoListEditing');function _0xc3e2c2(_0x4fd835){return()=>{const _0x5ac81c=_0x170198['model']['document']['selection'],_0x426f7e=_0x170198['commands']['get'](_0x4fd835);if(_0x426f7e['value'])return void _0x170198['execute']('paragraph',{});const _0x19a659=_0x4fd835['slice'](0x0,-0x4),_0x389380=function(_0x4de17d,_0x12a753,_0x2293ea){let _0x2e9c38=Array['from'](_0x4de17d)['filter'](_0x231b39=>function(_0x1e8cec,_0x42357d){return _0x42357d['checkChild'](_0x1e8cec['parent'],'listItem')&&!_0x42357d['isObject'](_0x1e8cec);}(_0x231b39,_0x2293ea));_0x2e9c38=_0x2e9c38['filter'](_0x7080d9=>!_0x7080d9['is']('element','listItem')||_0x7080d9['getAttribute']('listType')!=_0x12a753);const _0x213eda=new Set();for(const _0x59eb0f of _0x2e9c38)_0x59eb0f['is']('element','listItem')?_0x213eda['add'](Le(_0x59eb0f)):_0x213eda['add'](_0x59eb0f);return Array['from'](_0x213eda);}(_0x5ac81c['getSelectedBlocks'](),_0x19a659,_0x170198['model']['schema']);_0x170198['model']['change'](()=>{for(const _0x7c664c of _0x389380)_0x509221['markBlockFormat'](_0x7c664c,{'commandName':_0x4fd835,'commandParams':[{'forceValue':!_0x426f7e['value']}],'formatGroupId':'blockName'},Ee(_0x7c664c));});};}function _0x1c80c7(_0x4289d3){return()=>{const _0x49961d=function(_0xd590e9){let _0x4f9438=Array['from'](_0xd590e9);const _0x51e00b=_0x4f9438['findIndex'](_0x47a8b8=>'listItem'!=_0x47a8b8['name']);return _0x51e00b>-0x1&&(_0x4f9438=_0x4f9438['slice'](0x0,_0x51e00b)),_0x4f9438;}(_0x170198['model']['document']['selection']['getSelectedBlocks']()),_0x3c4e47=_0x170198['model']['createRange'](_0x170198['model']['createPositionAt'](_0x49961d[0x0],'before'),_0x170198['model']['createPositionAt'](_0x49961d[_0x49961d['length']-0x1],'end'));_0x170198['model']['change'](()=>{_0x509221['markBlockFormat'](_0x3c4e47,{'commandName':_0x4289d3,'commandParams':[],'formatGroupId':'listIndent'},function(_0xa81b34){const _0x3ec0c9=new Set();for(const _0x434867 of _0xa81b34){let _0x1cc365=_0x434867['nextSibling'];for(;_0x1cc365&&_0x1cc365['getAttribute']('listIndent')>_0x434867['getAttribute']('listIndent');)_0x3ec0c9['add'](_0x1cc365),_0x1cc365=_0x1cc365['nextSibling'];}return Array['from'](_0x3ec0c9);}(_0x49961d));});};}_0x509221['enableCommand']('numberedList',_0xc3e2c2('numberedList')),_0x509221['enableCommand']('bulletedList',_0xc3e2c2('bulletedList')),_0x214f22&&_0x509221['enableCommand']('todoList',_0xc3e2c2('todoList')),_0x509221['enableCommand']('indentList',_0x1c80c7('indentList')),_0x509221['enableCommand']('outdentList',_0x1c80c7('outdentList')),_0x214f22&&_0x509221['enableCommand']('checkTodoList',()=>{const _0xc98154=_0x170198['commands']['get']('checkTodoList'),_0x179040=Array['from'](_0xc98154['_selectedElements']);_0x179040['filter'](_0xd7295b=>_0xd7295b['getAttribute']('todoListChecked')!=_0xc98154['value']),_0x170198['model']['change'](()=>{for(const _0x26dfdb of _0x179040)_0x509221['markBlockFormat'](_0x26dfdb,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xc98154['value']}]});});}),_0x509221['descriptionFactory']['registerElementLabel']('listItem',_0x4e5659=>o(_0x73d1ca,'ELEMENT_LIST_ITEM',_0x4e5659)),_0x509221['descriptionFactory']['registerDescriptionCallback'](_0x8f883f=>{if('formatBlock'!=_0x8f883f['type']&&'formatInline'!=_0x8f883f['type'])return;const {data:_0x37e5c7}=_0x8f883f;if(_0x37e5c7){if('numberedList'==_0x37e5c7['commandName']||'bulletedList'==_0x37e5c7['commandName']||'todoList'==_0x37e5c7['commandName'])switch(_0x37e5c7['commandName']['replace']('List','')){case'bulleted':return _0x39f389(o(_0x73d1ca,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39f389(o(_0x73d1ca,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39f389(o(_0x73d1ca,'ELEMENT_TODO_LIST'));}if('indentList'==_0x37e5c7['commandName'])return{'type':'format','content':o(_0x73d1ca,'*Indent:*\x20%0',o(_0x73d1ca,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x37e5c7['commandName'])return{'type':'format','content':o(_0x73d1ca,'*Outdent:*\x20%0',o(_0x73d1ca,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x37e5c7['commandName'])return _0x37e5c7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x73d1ca,'*Check\x20item*')}:{'type':'format','content':o(_0x73d1ca,'*Uncheck\x20item*')};}function _0x39f389(_0x328275){return{'type':'format','content':o(_0x73d1ca,'*Change\x20to:*\x20%0',_0x328275)};}});}}function Le(_0x1534f8){const _0x3e1c5b=_0x1534f8['getAttribute']('listIndent');if(0x0==_0x3e1c5b)return _0x1534f8;let _0x478d18=_0x1534f8;for(;_0x1534f8['previousSibling']&&_0x1534f8['previousSibling']['is']('element','listItem');){const _0x1ee15b=_0x1534f8['previousSibling']['getAttribute']('listIndent');if(_0x1ee15b==_0x3e1c5b)_0x478d18=_0x1534f8['previousSibling'];else{if(_0x1ee15b<_0x3e1c5b)break;}_0x1534f8=_0x1534f8['previousSibling'];}return _0x478d18;}function Ee(_0x4fa45f){const _0x5a7c09=[];if(_0x4fa45f['is']('element','listItem')&&_0x4fa45f['getAttribute']('listIndent')>0x0){let _0x5db26a=_0x4fa45f['nextSibling'];for(;_0x5db26a&&'listItem'==_0x5db26a['name']&&_0x5db26a['getAttribute']('listIndent')==_0x4fa45f['getAttribute']('listIndent');)_0x5a7c09['push'](_0x5db26a),_0x5db26a=_0x5db26a['nextSibling'];}return _0x5a7c09;}class mt extends _0x2e7573{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x583e22=this['editor']['config']['get']('list.properties'),_0x52afbd=this['editor']['plugins']['get']('TrackChangesEditing');_0x583e22['styles']&&_0x52afbd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x583e22['reversed']&&_0x52afbd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x583e22['startIndex']&&_0x52afbd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x52afbd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2ceb9d,_0x95760c={}){const _0x2570a4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x106e75=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2570a4['markMultiRangeBlockFormat'](_0x106e75,{'commandName':'listStyle','commandParams':[{'type':_0x95760c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x538708,_0x598a69={}){const _0x3a2e1e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42f666=this['_getSuggestionBlocks'](_0x385e42=>_0x385e42['is']('element','listItem')&&'numbered'===_0x385e42['getAttribute']('listType'));if(_0x42f666['length']<0x1)return;const _0x35546a=_0x42f666['map'](_0x1a6b33=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a6b33,'before'),this['editor']['model']['createPositionAt'](_0x1a6b33,0x0)));this['editor']['model']['change'](()=>{_0x3a2e1e['markMultiRangeBlockFormat'](_0x35546a,{'commandName':'listReversed','commandParams':[{'reversed':_0x598a69['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x12ee72,_0x24387e={}){const _0x37158c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e072e=this['_getSuggestionBlocks'](_0x2fbe47=>_0x2fbe47['is']('element','listItem')&&'numbered'===_0x2fbe47['getAttribute']('listType'));if(_0x3e072e['length']<0x1)return;const _0x33b6dc=_0x3e072e['map'](_0x7ee09c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x7ee09c,'before'),this['editor']['model']['createPositionAt'](_0x7ee09c,0x0)));this['editor']['model']['change'](()=>{_0x37158c['markMultiRangeBlockFormat'](_0x33b6dc,{'commandName':'listStart','commandParams':[{'startIndex':_0x24387e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5f45c9){if('formatBlock'!=_0x5f45c9['type']&&'formatInline'!=_0x5f45c9['type'])return;const _0x1a3a33=this['editor']['locale'],{data:_0x5150e8}=_0x5f45c9;if(!_0x5150e8)return;let _0x2fada0,_0x57331b;switch(_0x5150e8['commandName']){case'listStyle':_0x2fada0='*Change\x20to:*\x20%0',_0x57331b={'type':'format','content':o(_0x1a3a33,_0x2fada0,o(_0x1a3a33,this['_getTranslationKeyForListStyle'](_0x5150e8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2fada0=_0x5150e8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x57331b={'type':'format','content':o(_0x1a3a33,_0x2fada0)};break;case'listStart':_0x2fada0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x57331b={'type':'format','content':o(_0x1a3a33,_0x2fada0,_0x5150e8['commandParams'][0x0]['startIndex'])};}return _0x57331b;}['_getSuggestionBlocksForListStyle'](){const _0x1ac030=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a64dd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5a64dd[0x0]?.['is']('element','listItem')&&_0x5a64dd['unshift'](..._0x1ac030['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5a64dd[_0x5a64dd['length']-0x1]?.['is']('element','listItem')&&_0x5a64dd['push'](..._0x1ac030['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5a64dd=[...new Set(_0x5a64dd)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5a64dd=_0x5a64dd['filter'](_0x15a12a=>_0x15a12a['is']('element','listItem'))),_0x5a64dd;}['_getSuggestionBlocks'](_0x153300){const _0x2a0864=this['editor']['plugins']['get']('LegacyListUtils');let _0x5c53c0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x153300)['map'](_0x218acd=>{const _0x1ef340=this['editor']['model']['createPositionAt'](_0x218acd,0x0);return[..._0x2a0864['getSiblingNodes'](_0x1ef340,'backward'),..._0x2a0864['getSiblingNodes'](_0x1ef340,'forward')];})['flat']();return _0x5c53c0=[...new Set(_0x5c53c0)],_0x5c53c0;}['_getTranslationKeyForListStyle'](_0x2f9910){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2f9910)||'default')['toUpperCase']()+'_LIST_'+_0x2f9910['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2e7573{['afterInit'](){const _0xc7babd=this['editor'];if(!_0xc7babd['plugins']['has']('MediaEmbedEditing'))return;const _0x3799d9=_0xc7babd['plugins']['get']('TrackChangesEditing'),_0x1ff96c=_0xc7babd['locale'];_0x3799d9['enableCommand']('mediaEmbed'),_0x3799d9['descriptionFactory']['registerElementLabel']('media',_0x48d418=>o(_0x1ff96c,'ELEMENT_MEDIA',_0x48d418));}}class pt extends _0x2e7573{['afterInit'](){const _0x290e9f=this['editor'];_0x290e9f['plugins']['has']('MentionEditing')&&_0x290e9f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2e7573{['afterInit'](){const _0x1a43a0=this['editor'];if(!_0x1a43a0['plugins']['has']('MergeFieldsEditing'))return;const _0x27836a=_0x1a43a0['plugins']['get']('TrackChangesEditing'),_0x4de7cb=_0x1a43a0['locale'];_0x27836a['enableCommand']('insertMergeField'),_0x27836a['enableCommand']('insertMergeFieldBlock'),_0x27836a['enableCommand']('insertMergeFieldImage'),_0x27836a['descriptionFactory']['registerElementLabel']('mergeField',_0x5cf11b=>o(_0x4de7cb,'ELEMENT_MERGE_FIELD',_0x5cf11b)),_0x27836a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x40c39b=>o(_0x4de7cb,'ELEMENT_MERGE_FIELD',_0x40c39b)),_0x27836a['descriptionFactory']['registerDescriptionCallback'](_0xc00caf=>{if('insertion'!=_0xc00caf['type']&&'deletion'!=_0xc00caf['type'])return;const _0x4ec209=_0xc00caf['getContainedElement']();if(null==_0x4ec209)return;const _0x4f4d7c=_0x1a43a0['plugins']['get']('MergeFieldsEditing');let _0x11c1a6;switch(_0x4f4d7c['getMergeFieldType'](_0x4ec209)){case null:return;case'image':{const _0x29aa33=_0x4f4d7c['unwrapAffixes'](_0x4ec209['getAttribute']('src'));_0x11c1a6=_0x4f4d7c['getLabel'](_0x29aa33)||_0x29aa33;break;}default:{const _0x25b726=_0x4ec209['getAttribute']('id');_0x11c1a6=_0x4f4d7c['getLabel'](_0x25b726)||_0x25b726;break;}}return'insertion'==_0xc00caf['type']?{'type':'insertion','content':o(_0x4de7cb,'*Insert:*\x20%0','\x22'+_0x11c1a6+'\x22\x20'+o(_0x4de7cb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4de7cb,'*Remove:*\x20%0','\x22'+_0x11c1a6+'\x22\x20'+o(_0x4de7cb,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2e7573{['afterInit'](){const _0x4d9da7=this['editor'],_0x2eb739=_0x4d9da7['plugins']['get']('TrackChangesEditing');_0x4d9da7['plugins']['has']('MultiLevelList')&&(_0x2eb739['enableDefaultAttributesIntegration']('multiLevelList'),_0x2eb739['descriptionFactory']['registerDescriptionCallback'](_0x4927a8=>this['handleDescriptions'](_0x4927a8)));}['handleDescriptions'](_0x13e189){const _0x452680=this['editor']['locale'],{data:_0x5cfc82}=_0x13e189,_0x10a279={'type':'format','content':''};if(_0x5cfc82&&'listMarkerStyle'==_0x5cfc82['key']){if(!_0x5cfc82['oldValue'])return{'type':'format','content':o(_0x452680,'*Set\x20format:*\x20%0',o(_0x452680,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5cfc82['newValue']+')'};if(!_0x5cfc82['newValue']){let _0x55bdae=_0x13e189['head'];for(;_0x55bdae;){if(_0x55bdae['data']&&'listType'==_0x55bdae['data']['key']&&_0x55bdae['data']['newValue'])return _0x10a279;_0x55bdae=_0x55bdae['next'];}return{'type':'format','content':o(_0x452680,'*Remove\x20format:*\x20%0',o(_0x452680,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5cfc82['oldValue']+')'};}}}}class bt extends _0x2e7573{['afterInit'](){const _0x47a9d8=this['editor'];if(!_0x47a9d8['plugins']['has']('PageBreakEditing'))return;_0x47a9d8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x573841=_0x47a9d8['plugins']['get']('TrackChangesEditing'),_0x22c225=_0x47a9d8['locale'];_0x573841['descriptionFactory']['registerElementLabel']('pageBreak',_0x90de16=>o(_0x22c225,'ELEMENT_PAGE_BREAK',_0x90de16));}}class yt extends _0x2e7573{['afterInit'](){const _0x343214=this['editor'];if(!_0x343214['plugins']['has']('Paragraph'))return;const _0x1c621b=_0x343214['locale'],_0x27f394=_0x343214['plugins']['get']('TrackChangesEditing');_0x27f394['descriptionFactory']['registerElementLabel']('paragraph',_0x59cbf3=>o(_0x1c621b,'ELEMENT_PARAGRAPH',_0x59cbf3)),_0x27f394['enableDefaultAttributesIntegration']('paragraph'),_0x27f394['enableCommand']('insertParagraph');const _0x302fd4=_0x27f394['descriptionFactory'];_0x302fd4['registerDescriptionCallback'](_0x1e463f=>{if('insertion'!==_0x1e463f['type'])return;const {start:_0x90162f,end:_0x48fc59}=_0x1e463f['getFirstRange']();if(!_0x90162f['isTouching'](_0x48fc59)||!_0x90162f['nodeAfter'])return;const _0x50ea0e=_0x343214['model']['schema'],_0x4af615=_0x90162f['nodeAfter'];return _0x50ea0e['isBlock'](_0x4af615)&&!_0x50ea0e['isLimit'](_0x4af615)&&_0x50ea0e['checkChild'](_0x4af615,'$text')?{'type':'insertion','content':o(_0x1c621b,'*Insert:*\x20%0',_0x302fd4['getItemLabel'](_0x4af615,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x442f9=this['editor'],_0x1fd364=_0x442f9['locale'];_0x442f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e4108=>{if('formatBlock'!=_0x5e4108['type'])return;const {data:_0x591ff1}=_0x5e4108;return _0x591ff1&&'paragraph'==_0x591ff1['commandName']?{'type':'format','content':o(_0x1fd364,'*Change\x20to:*\x20%0',o(_0x1fd364,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x2e7573{['afterInit'](){const _0x5ccd5c=this['editor'];_0x5ccd5c['commands']['get']('replaceSource')&&_0x5ccd5c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2e7573{['afterInit'](){const _0xecb339=this['editor'];if(!_0xecb339['plugins']['has']('RemoveFormatEditing'))return;_0xecb339['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52fdb1=this['editor'];_0x52fdb1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37757e=>{if('formatBlock'!=_0x37757e['type']&&'formatInline'!=_0x37757e['type'])return;const {data:_0x3257ad}=_0x37757e;return _0x3257ad&&'removeFormat'==_0x3257ad['commandName']?{'type':'format','content':o(_0x52fdb1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x2e7573{['afterInit'](){const _0x22d56e=this['editor'];if(!_0x22d56e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xa14933=_0x22d56e['plugins']['get']('TrackChangesEditing');_0xa14933['enableCommand']('goToPreviousRestrictedEditingException'),_0xa14933['enableCommand']('goToNextRestrictedEditingException');const _0x2bd27c=_0x22d56e['plugins']['get']('RestrictedEditingModeEditing');_0x2bd27c['enableCommand']('trackChanges'),_0x2bd27c['enableCommand']('acceptSuggestion'),_0x2bd27c['enableCommand']('discardSuggestion'),_0x2bd27c['enableCommand']('acceptAllSuggestions'),_0x2bd27c['enableCommand']('discardAllSuggestions'),_0x2bd27c['enableCommand']('acceptSelectedSuggestions'),_0x2bd27c['enableCommand']('discardSelectedSuggestions');}}class At extends _0x2e7573{['afterInit'](){const _0xa0da21=this['editor'];if(!_0xa0da21['plugins']['has']('ShiftEnter'))return;const _0x1ca625=_0xa0da21['plugins']['get']('TrackChangesEditing');_0x1ca625['enableCommand']('shiftEnter'),_0x1ca625['descriptionFactory']['registerElementLabel']('softBreak',_0x5aab28=>o(_0xa0da21['locale'],'ELEMENT_LINE_BREAK',_0x5aab28));}}function an(_0x1ee235,_0x17dd4f,_0x32f927){const _0x27854c=[];for(const _0x41b2c8 of _0x17dd4f['getItems']())_0x41b2c8['hasAttribute'](_0x1ee235)&&_0x27854c['push'](_0x32f927['createRangeOn'](_0x41b2c8));return _0x27854c;}class _t extends _0x2e7573{['afterInit'](){const _0x221f44=this['editor'],_0x4d2963=_0x221f44['plugins']['get']('TrackChangesEditing');_0x221f44['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x4d2963['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x472298=this['editor'],_0x18a23b=_0x472298['model'],_0x4c737a=_0x472298['locale'],_0x3774ab=_0x472298['plugins']['get']('TrackChangesEditing'),_0x59bb52='restrictedEditingException',_0x3a6731=_0x472298['commands']['get'](_0x59bb52);_0x3774ab['enableCommand'](_0x59bb52,(_0x539549,_0x28b692={})=>{const _0x4fc633=_0x18a23b['document']['selection'];if(_0x4fc633['isCollapsed'])return void _0x539549(_0x28b692);const _0x1a4141=void 0x0!==_0x28b692['forceValue']?_0x28b692['forceValue']:!_0x3a6731['value'];_0x18a23b['change'](()=>{const _0x1802ab=Array['from'](_0x4fc633['getRanges']());for(const _0x3fa8f7 of _0x1802ab){const _0x474257=_0x1a4141?[_0x3fa8f7]:an(_0x59bb52,_0x3fa8f7,_0x18a23b);for(const _0x39d6bb of _0x474257)_0x3774ab['markInlineFormat'](_0x39d6bb,{'commandName':_0x59bb52,'commandParams':[{'forceValue':_0x1a4141}]});}});}),_0x3774ab['descriptionFactory']['registerDescriptionCallback'](_0x1cd78d=>{if('formatBlock'!=_0x1cd78d['type']&&'formatInline'!=_0x1cd78d['type'])return;const {data:_0x982ad}=_0x1cd78d;return _0x982ad&&_0x982ad['commandName']==_0x59bb52?_0x982ad['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c737a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4c737a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x218d56=this['editor'],_0x163651=_0x218d56['locale'],_0x13898e=_0x218d56['plugins']['get']('TrackChangesEditing'),_0x7deb67='restrictedEditingExceptionBlock',_0xb2d86d=this['editor']['commands']['get'](_0x7deb67);_0x13898e['enableCommand'](_0x7deb67,(_0x13acec,_0x3d7fad={})=>{const _0x565874=this['editor']['model']['document']['selection'],_0x47b161=_0x3d7fad&&void 0x0!==_0x3d7fad['forceValue']?_0x3d7fad['forceValue']:!_0xb2d86d['value'];let _0x5d9c9c=[];if(_0x47b161){const _0x17b579=Array['from'](_0x565874['getSelectedBlocks']())['filter'](_0x44e604=>function(_0x55d592){return!!_0x55d592['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x44e604)||function(_0x286b36,_0x517a37){const _0x2268d7=_0x517a37['createContext'](_0x286b36['parent']);if(!_0x517a37['checkChild'](_0x2268d7,'restrictedEditingException'))return!0x1;if(!_0x517a37['checkChild'](_0x2268d7['push']('restrictedEditingException'),_0x286b36))return!0x1;return!0x0;}(_0x44e604,this['editor']['model']['schema']));_0x5d9c9c=to(_0x17b579,_0x218d56['model']);}else{const _0x3a622d=Array['from'](_0x565874['getSelectedBlocks']())['map'](_0x4c6ad4=>function(_0x275244){let _0x32d3fb=_0x275244;for(;_0x32d3fb['parent'];){if('restrictedEditingException'==_0x32d3fb['parent']['name'])return _0x32d3fb;_0x32d3fb=_0x32d3fb['parent'];}return null;}(_0x4c6ad4))['filter'](_0x55a13a=>!!_0x55a13a);_0x5d9c9c=to(_0x3a622d,_0x218d56['model']);}_0x218d56['model']['change'](()=>{for(const _0x2e8118 of _0x5d9c9c)_0x13898e['markBlockFormat'](_0x2e8118,{'commandName':_0x7deb67,'commandParams':[{'forceValue':_0x47b161}]});});}),_0x13898e['descriptionFactory']['registerDescriptionCallback'](_0x2d9799=>{const {data:_0x1d5eb4}=_0x2d9799;if(_0x1d5eb4&&_0x1d5eb4['commandName']==_0x7deb67)return _0x1d5eb4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x163651,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x163651,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x2e7573{['afterInit'](){const _0x16c711=this['editor'];if(!_0x16c711['plugins']['has']('Style')||!_0x16c711['plugins']['has']('DataSchema'))return;const _0x1b98a1=_0x16c711['plugins']['get']('TrackChangesEditing'),_0x556a47=_0x16c711['locale'],_0x47fc93=_0x16c711['config']['get']('style')||{},_0x56d143=_0x16c711['plugins']['get']('GeneralHtmlSupport'),_0x506b85=_0x16c711['plugins']['get']('StyleUtils')['normalizeConfig'](_0x16c711['plugins']['get']('DataSchema'),_0x47fc93['definitions']);_0x1b98a1['enableDefaultAttributesIntegration']('style');const _0x203318=new Set();for(const _0x5d6c70 of _0x506b85['block']){const _0x3c57e8=_0x56d143['getGhsAttributeNameForElement'](_0x5d6c70['element']);_0x203318['add'](_0x3c57e8);}const _0x3d068f=new Set();for(const _0x39b72c of _0x506b85['inline']){const _0x1dad8b=_0x56d143['getGhsAttributeNameForElement'](_0x39b72c['element']);_0x3d068f['add'](_0x1dad8b);for(const _0x53154d of _0x39b72c['ghsAttributes'])_0x3d068f['add'](_0x53154d);}for(const _0x3504eb of _0x203318)_0x1b98a1['descriptionFactory']['registerAttributeLabel'](_0x3504eb,o(_0x556a47,'FORMAT_STYLE'));for(const _0x4c27c8 of _0x3d068f)_0x1b98a1['descriptionFactory']['registerAttributeLabel'](_0x4c27c8,o(_0x556a47,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51b268=this['editor'],_0x5b1ba2=_0x51b268['locale'];_0x51b268['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x555e53=>{if('formatBlock'!=_0x555e53['type']&&'formatInline'!=_0x555e53['type'])return;const {data:_0x4ea5d4}=_0x555e53;return _0x4ea5d4&&'style'===_0x4ea5d4['commandName']?_0x4ea5d4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b1ba2,'*Set\x20format:*\x20%0',_0x4ea5d4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5b1ba2,'*Remove\x20format:*\x20%0',_0x4ea5d4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x2e7573{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x238e83){super(_0x238e83),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x665301=this['editor'],_0x5e5cb7=_0x665301['model']['document']['selection'];if(!_0x665301['plugins']['has']('TableEditing'))return;const _0x1b79fa=_0x665301['locale'],_0x3dff37=_0x665301['plugins']['get']('TrackChangesEditing'),_0x22c0d2=_0x665301['plugins']['get']('TableUtils');_0x3dff37['descriptionFactory']['registerElementLabel']('table',_0x2b9a7f=>o(_0x1b79fa,'ELEMENT_TABLE',_0x2b9a7f)),this['_setupColumnsRowsFixing'](),_0x3dff37['enableCommand']('insertTable'),_0x3dff37['enableCommand']('selectTableRow'),_0x3dff37['enableCommand']('selectTableColumn');for(const _0x3ccf7f of['insertTableRowAbove','insertTableRowBelow']){const _0x5bfab0=_0x665301['commands']['get'](_0x3ccf7f);_0x3dff37['enableCommand'](_0x3ccf7f,_0x92ff59=>{_0x665301['model']['change'](_0x1c8418=>{_0x92ff59();const _0x53f1a8='above'===_0x5bfab0['order'],_0x5aa717=_0x22c0d2['getSelectionAffectedTableCells'](_0x5e5cb7),_0x17c687=_0x22c0d2['getRowIndexes'](_0x5aa717),_0x3225a4=_0x53f1a8?_0x17c687['first']-0x1:_0x17c687['last']+0x1,_0x3d91bd=_0x5aa717[0x0]['findAncestor']('table'),_0x33acd2=_0x22c0d2['createTableWalker'](_0x3d91bd,{'startRow':_0x3225a4,'endRow':_0x3225a4}),_0x5df432=Array['from'](_0x33acd2)['map'](_0x521c7f=>_0x1c8418['createRangeOn'](_0x521c7f['cell']));_0x3dff37['markMultiRangeInsertion'](_0x5df432,'tableRow');});});}for(const _0x4259fd of['insertTableColumnLeft','insertTableColumnRight']){const _0x59044a=_0x665301['commands']['get'](_0x4259fd);_0x3dff37['enableCommand'](_0x4259fd,_0x39c5ee=>{_0x665301['model']['change'](_0x47d4c6=>{_0x39c5ee();const _0x2c3d52='left'===_0x59044a['order'],_0x4059be=_0x22c0d2['getSelectionAffectedTableCells'](_0x5e5cb7),_0x166101=_0x22c0d2['getColumnIndexes'](_0x4059be),_0x3b50d3=_0x2c3d52?_0x166101['first']-0x1:_0x166101['last']+0x1,_0x52c6b4=_0x4059be[0x0]['findAncestor']('table'),_0x3f9a9d=_0x22c0d2['createTableWalker'](_0x52c6b4,{'startRow':0x0,'column':_0x3b50d3,'includeAllSlots':!0x1}),_0x6ba828=Array['from'](_0x3f9a9d)['map'](_0x563d04=>_0x47d4c6['createRangeOn'](_0x563d04['cell']));_0x3dff37['markMultiRangeInsertion'](_0x6ba828,'tableColumn');});});}for(const _0x333704 of['removeTableRow','removeTableColumn']){const _0x4e1654=_0x333704['substr'](0xb),_0x2e39c2=_0x4e1654['toLowerCase'](),_0x1120be=_0x2e39c2['substr'](0x0,0x3)+'span',_0xff07c='table'+_0x4e1654,_0x2b3afc='min'+_0x4e1654,_0x134520='max'+_0x4e1654;_0x3dff37['enableCommand'](_0x333704,()=>{_0x665301['model']['change'](_0xd32b99=>{const _0x323179=_0x22c0d2['getSelectionAffectedTableCells'](_0x5e5cb7),_0x5121f7=_0x323179[0x0]['findAncestor']('table');let _0x3dad38;if('removeTableRow'==_0x333704){const _0x4524ef=_0x22c0d2['getRowIndexes'](_0x323179);_0x3dad38={'startRow':_0x4524ef['first'],'endRow':_0x4524ef['last'],'includeAllSlots':!0x0};}else{const _0x50b60a=_0x22c0d2['getColumnIndexes'](_0x323179);_0x3dad38={'startColumn':_0x50b60a['first'],'endColumn':_0x50b60a['last'],'includeAllSlots':!0x0};}const _0x3c7cc2=_0x22c0d2['createTableWalker'](_0x5121f7,_0x3dad38),_0x4f5c45=Array['from'](_0x3c7cc2)['map'](({cell:_0x5ab048})=>_0x5ab048),_0x1c1e26=_e(_0x4f5c45['filter'](_0x4a9149=>_0x4a9149['hasAttribute'](_0x1120be))),_0x2f7231=_e(_0x4f5c45['filter'](_0x3f9bb3=>!_0x3f9bb3['hasAttribute'](_0x1120be)))['map'](_0x8b7db0=>_0xd32b99['createRangeOn'](_0x8b7db0)),_0x95bb94=_0x3dff37['markMultiRangeDeletion'](_0x2f7231,_0xff07c);if(_0x95bb94&&('tableRow'==_0x95bb94['subType']||'tableColumn'==_0x95bb94['subType'])){const _0x4d1a1c=this['_getSuggestionCoords'](_0x95bb94);for(const _0x58a476 of _0x1c1e26){const _0x29606d=_0xd32b99['createRangeOn'](_0x58a476),_0x59e843=_0x22c0d2['getCellLocation'](_0x58a476),_0x232994=_0x58a476['getAttribute'](_0x1120be)-0x1,_0x1915d6=_0x4d1a1c[_0x2b3afc],_0x14ad09=_0x4d1a1c[_0x134520];_0x1915d6<=_0x59e843[_0x2e39c2]&&_0x59e843[_0x2e39c2]+_0x232994<=_0x14ad09&&_0x95bb94['addRange'](_0x29606d);}}});});}function _0x560f4f(_0xec4c4e){const _0x9a16ae=Array['from'](_0x5e5cb7['getRanges']())['map'](_0x1778a9=>_0x2f9bba['fromRange'](_0x1778a9));_0x665301['model']['change'](_0x29376a=>{const _0x567f52=_0x29376a['batch'];_0xec4c4e=_0xec4c4e['filter'](_0x53b678=>'$graveyard'!=_0x53b678['root']['rootName']),_0x29376a['setSelection'](_0xec4c4e),_0x665301['commands']['get']('removeTableRow')['refresh'](),_0x665301['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x665301['model']['enqueueChange'](()=>{_0x665301['model']['enqueueChange'](_0x567f52,_0x1d5c4d=>{const _0x1c15a3=_0x9a16ae['filter'](_0x47d1e6=>'$graveyard'!=_0x47d1e6['root']['rootName']);_0x1c15a3['length']>0x0&&_0x1d5c4d['setSelection'](_0x1c15a3);for(const _0x8ec347 of _0x9a16ae)_0x8ec347['detach']();});});});}function _0x26c067(_0x11e24c){_0x665301['model']['change'](_0x205837=>{const _0x51c7a2=Array['from'](_0x5e5cb7['getRanges']())['map'](_0x25aa6b=>_0x2f9bba['fromRange'](_0x25aa6b)),_0x57bebd=[];for(const _0x2a500d of _0x11e24c)for(const _0x1eb18a of _0x2a500d['getItems']({'shallow':!0x0}))_0x57bebd['push'](_0x1eb18a);for(const _0x415d24 of _0x57bebd)'$graveyard'!=_0x415d24['root']['rootName']&&(_0x205837['setSelection'](_0x205837['createPositionAt'](_0x415d24,0x0)),_0x665301['commands']['get']('removeTableColumn')['refresh'](),_0x665301['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2eae9=_0x51c7a2['filter'](_0x20a6d9=>'$graveyard'!=_0x20a6d9['root']['rootName']);_0x2eae9['length']>0x0&&_0x205837['setSelection'](_0x2eae9);for(const _0x43bf8d of _0x51c7a2)_0x43bf8d['detach']();});}function _0x2aa9d9(_0xbb1c8c,_0x4faefa){return _0x4faefa['every'](_0xa2282c=>_0xbb1c8c['some'](_0x200724=>_0x200724['end']['isEqual'](_0xa2282c['start'])||_0xa2282c['end']['isEqual'](_0x200724['start'])));}function _0xeb6b78(_0x23adfc,_0x259362){return!_0x23adfc['some'](_0x5b2b25=>_0x259362['some'](_0x498a8b=>_0x5b2b25['isIntersecting'](_0x498a8b)))&&_0x23adfc['some'](_0x199919=>_0x259362['some'](_0x39b5f8=>_0x199919['end']['isTouching'](_0x39b5f8['start'])));}_0x3dff37['descriptionFactory']['registerDescriptionCallback'](_0x11879b=>{if('insertion'!=_0x11879b['type']&&'deletion'!=_0x11879b['type'])return;const _0x57e058=_0x11879b['getContainedElement']();if(null!=_0x57e058&&_0x57e058['is']('element','table')){if('insertion'==_0x11879b['type']){const _0x424cf4=_0x11879b['getItems']()['filter'](_0x374782=>_0x374782['is']('$textProxy'))['map'](_0x2b51a6=>_0x2b51a6['data']);if(_0x424cf4['length'])return{'type':'insertion','content':o(_0x1b79fa,'*Insert:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x424cf4['join']('\x20')+'\x22'))};}if('deletion'==_0x11879b['type']){const _0x5edf42=_0x11879b['getItems']()['filter'](_0x385dfb=>_0x385dfb['is']('$textProxy'))['map'](_0x3788f5=>_0x3788f5['data']);if(_0x5edf42['length'])return{'type':'deletion','content':o(_0x1b79fa,'*Remove:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5edf42['join']('\x20')+'\x22'))};}}}),_0x3dff37['descriptionFactory']['registerDescriptionCallback'](_0xf81b33=>{if('tableRow'==_0xf81b33['subType']){const _0x1b7128=_0xf81b33['getItems']()['filter'](_0x1d6045=>_0x1d6045['is']('$textProxy'))['map'](_0x18ff52=>_0x18ff52['data']),_0x3ad4e8=this['_getSuggestionCoords'](_0xf81b33),_0x35b7a2=_0x3ad4e8['maxRow']-_0x3ad4e8['minRow']+0x1;if('insertion'==_0xf81b33['type'])return _0x1b7128['length']?{'type':'insertion','content':o(_0x1b79fa,'*Insert:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x35b7a2,'\x22'+_0x1b7128['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1b79fa,'*Insert:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_ROW',_0x35b7a2))};if('deletion'==_0xf81b33['type'])return _0x1b7128['length']?{'type':'deletion','content':o(_0x1b79fa,'*Remove:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x35b7a2,'\x22'+_0x1b7128['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1b79fa,'*Remove:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_ROW',_0x35b7a2))};}if('tableColumn'==_0xf81b33['subType']){const _0x3b80f7=_0xf81b33['getItems']()['filter'](_0x4ca358=>_0x4ca358['is']('$textProxy'))['map'](_0x178238=>_0x178238['data']),_0xd93b57=this['_getSuggestionCoords'](_0xf81b33),_0x23b2ec=_0xd93b57['maxColumn']-_0xd93b57['minColumn']+0x1;if('insertion'==_0xf81b33['type'])return _0x3b80f7['length']?{'type':'insertion','content':o(_0x1b79fa,'*Insert:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23b2ec,'\x22'+_0x3b80f7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1b79fa,'*Insert:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_COLUMN',_0x23b2ec))};if('deletion'==_0xf81b33['type'])return _0x3b80f7['length']?{'type':'deletion','content':o(_0x1b79fa,'*Remove:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23b2ec,'\x22'+_0x3b80f7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1b79fa,'*Remove:*\x20%0',o(_0x1b79fa,'ELEMENT_TABLE_COLUMN',_0x23b2ec))};}}),_0x3dff37['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x560f4f),_0x3dff37['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x560f4f),_0x3dff37['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x26c067),_0x3dff37['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x26c067),_0x3dff37['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2aa9d9),_0x3dff37['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2aa9d9),_0x3dff37['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xeb6b78),_0x3dff37['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xeb6b78);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1ff6f7=this['editor'],_0x4c3f94=_0x1ff6f7['model']['document']['selection'];return(_0x5ba266,_0x34e38d)=>{_0x1ff6f7['model']['change'](_0x54dd10=>{const {commandName:_0x1e78fd,commandParams:_0x407aa1}=_0x34e38d;let _0x13a884=_0x5ba266[0x0]['end']['nodeBefore'];_0x407aa1&&_0x407aa1[0x0]&&!0x1===_0x407aa1[0x0]['forceValue']&&(_0x13a884=_0x5ba266[0x0]['start']['nodeAfter']);const _0x49526d=_0x54dd10['createRangeIn'](_0x13a884);if('$graveyard'==_0x49526d['root']['rootName'])return;const _0x5bbb2e=Array['from'](_0x4c3f94['getRanges']())['map'](_0x558198=>_0x2f9bba['fromRange'](_0x558198));_0x54dd10['setSelection'](_0x49526d),_0x1ff6f7['commands']['get'](_0x1e78fd)['refresh'](),_0x407aa1['push']({'forceDefaultExecution':!0x0}),_0x1ff6f7['execute'](_0x1e78fd,..._0x407aa1);const _0x2888d5=_0x5bbb2e['filter'](_0x3ca054=>'$graveyard'!=_0x3ca054['root']['rootName']);_0x2888d5['length']>0x0&&_0x54dd10['setSelection'](_0x2888d5);for(const _0x2b1df4 of _0x5bbb2e)_0x2b1df4['detach']();});};}['_getCoordsForCells'](_0x7cbad8){const _0x2db3e6=this['editor']['plugins']['get']('TableUtils');let _0xa65094=Number['MAX_SAFE_INTEGER'],_0x35df73=Number['MIN_SAFE_INTEGER'],_0x52180b=Number['MAX_SAFE_INTEGER'],_0x56da87=Number['MIN_SAFE_INTEGER'];for(const _0x1dabdb of _0x7cbad8){if('$graveyard'==_0x1dabdb['root']['rootName'])continue;const {row:_0xe10d9a,column:_0x58cfd3}=_0x2db3e6['getCellLocation'](_0x1dabdb),_0x17b8b5=_0x1dabdb['hasAttribute']('rowspan')?_0x1dabdb['getAttribute']('rowspan')-0x1:0x0,_0x367b51=_0x1dabdb['hasAttribute']('colspan')?_0x1dabdb['getAttribute']('colspan')-0x1:0x0;_0xa65094=_0xe10d9a<_0xa65094?_0xe10d9a:_0xa65094,_0x35df73=_0xe10d9a+_0x17b8b5>_0x35df73?_0xe10d9a+_0x17b8b5:_0x35df73,_0x52180b=_0x58cfd3<_0x52180b?_0x58cfd3:_0x52180b,_0x56da87=_0x58cfd3+_0x367b51>_0x56da87?_0x58cfd3+_0x367b51:_0x56da87;}return{'minRow':_0xa65094,'maxRow':_0x35df73,'minColumn':_0x52180b,'maxColumn':_0x56da87};}['_setupColumnsRowsFixing'](){const _0x25a6fd=this['editor'],_0x4c01ae=_0x25a6fd['plugins']['get']('TrackChangesEditing'),_0x26fd81=_0x25a6fd['plugins']['get']('TableUtils');_0x25a6fd['model']['document']['on']('change:data',()=>{const _0xd4e4ca=Array['from'](_0x25a6fd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4202e5,data:_0x590564}of _0xd4e4ca){const {group:_0x1fe742,id:_0x4d7075,subType:_0x461996}=_0x4c01ae['_splitMarkerName'](_0x4202e5);if('suggestion'!=_0x1fe742)continue;if(null!=_0x590564['oldRange'])continue;const _0x2cc454=_0x4c01ae['getSuggestion'](_0x4d7075);this['_tablePostFixingSubtypes']['includes'](_0x461996)&&this['_tableSuggestions']['add'](_0x2cc454);}},{'priority':'low'});const _0x3c431c=(_0x5d58cc,_0x36b938)=>{let _0x197e22=!0x1;const _0x35bc09=_0x36b938['createRangeOn'](_0x5d58cc),_0x1e4bb3=_0x5d58cc['findAncestor']('table'),_0x201f43=_0x26fd81['getCellLocation'](_0x5d58cc);for(const _0x47489e of this['_tableSuggestions']){const _0xc00cf5=_0x47489e['subType'],_0x40c2d2=_0xc00cf5['startsWith']('tablePaste'),_0x50d5c6=_0xc00cf5['substr'](_0x40c2d2?0xa:0x5),_0xb69f63=_0x50d5c6['toLowerCase'](),_0x29db35=_0xb69f63['substr'](0x0,0x3)+'span',_0x312c90='min'+_0x50d5c6,_0x41a368='max'+_0x50d5c6;if(!_0x47489e['isInContent'])continue;if(_0x1e4bb3!=_0x47489e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x47489e['isIntersectingWithRange'](_0x35bc09))continue;const _0x254eda=_0x5d58cc['hasAttribute'](_0x29db35)?_0x5d58cc['getAttribute'](_0x29db35)-0x1:0x0,_0x5ab1f7=this['_getSuggestionCoords'](_0x47489e),_0x29830d=_0x5ab1f7[_0x312c90],_0x150372=_0x5ab1f7[_0x41a368];_0x29830d<=_0x201f43[_0xb69f63]&&_0x201f43[_0xb69f63]+_0x254eda<=_0x150372&&(_0x47489e['addRange'](_0x35bc09),_0x197e22=!0x0);}return _0x197e22;};_0x25a6fd['model']['document']['registerPostFixer'](_0x5997d2=>{let _0x3f1f0c=!0x1;for(const _0xec65c1 of _0x25a6fd['model']['document']['differ']['getChanges']())if('insert'==_0xec65c1['type']){if('tableRow'==_0xec65c1['name']){for(const _0x42144b of _0xec65c1['position']['nodeAfter']['getChildren']())_0x3f1f0c=_0x3f1f0c||_0x3c431c(_0x42144b,_0x5997d2);}else'tableCell'==_0xec65c1['name']&&(_0x3f1f0c=_0x3f1f0c||_0x3c431c(_0xec65c1['position']['nodeAfter'],_0x5997d2));}return _0x3f1f0c;});}['_getSuggestionCoords'](_0x31b46b){return this['_getCoordsForCells'](_0x31b46b['getRanges']()['map'](_0x57fc2c=>_0x57fc2c['start']['nodeAfter']));}}function _e(_0x1fa1ed){return Array['from'](new Set(_0x1fa1ed)['values']());}class $t extends _0x2e7573{static get['requires'](){return[Nt];}['afterInit'](){const _0x5ef6c0=this['editor'],_0x24a31b=_0x5ef6c0['model']['document']['selection'],_0x43fc62=_0x5ef6c0['locale'];if(!_0x5ef6c0['plugins']['has']('TableEditing'))return;const _0x21ea57=_0x5ef6c0['plugins']['get']('TrackChangesEditing'),_0x349ce4=_0x5ef6c0['plugins']['get']('TableUtils'),_0x69130c=_0x5ef6c0['plugins']['get'](Nt);_0x69130c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x21ea57['enableCommand']('mergeTableCells',()=>{const _0x1d6fd2=_0x349ce4['getSelectionAffectedTableCells'](_0x5ef6c0['model']['document']['selection']);_0x5ef6c0['model']['change'](()=>{_0x21ea57['markMultiRangeBlockFormat'](_0x1d6fd2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5ef6c0['commands']['get']('mergeTableCells')['on']('execute',(_0x51b72a,_0x4609e)=>{_0x5ef6c0['commands']['get']('trackChanges')['value']&&(_0x4609e['length']>0x0&&_0x4609e[_0x4609e['length']-0x1]&&_0x4609e[_0x4609e['length']-0x1]['forceDefaultExecution']||_0x21ea57['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x51b72a['stop']());},{'priority':'highest'});for(const _0x1e56ab of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5e5a02=_0x5ef6c0['commands']['get'](_0x1e56ab);_0x21ea57['enableCommand'](_0x1e56ab,()=>{const _0x49353d=_0x5ef6c0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3428e8=>_0x3428e8['is']('element','tableCell')),_0x578fdf=_0x5e5a02['value'];_0x5ef6c0['model']['change'](()=>{_0x21ea57['markMultiRangeBlockFormat']([_0x49353d,_0x578fdf],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4579d3 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x463c6e=_0x5ef6c0['commands']['get'](_0x4579d3);_0x21ea57['enableCommand'](_0x4579d3,()=>{const _0x392a25=_0x349ce4['getSelectionAffectedTableCells'](_0x5ef6c0['model']['document']['selection'])[0x0],_0x3a639b=_0x392a25['findAncestor']('table'),{column:_0x33be42,row:_0x522c04}=_0x349ce4['getCellLocation'](_0x392a25);let _0x5b8506=[];if('horizontally'==_0x463c6e['direction']){const _0x5d2b0c=_0x349ce4['createTableWalker'](_0x3a639b,{'startRow':_0x522c04,'endRow':_0x522c04,'includeAllSlots':!0x0});_0x5b8506=Array['from'](_0x5d2b0c)['map'](_0x30c542=>_0x30c542['cell']);}else{const _0x706ede=_0x349ce4['createTableWalker'](_0x3a639b,{'column':_0x33be42,'includeAllSlots':!0x0});_0x5b8506=Array['from'](_0x706ede)['map'](_0x637237=>_0x637237['cell']);}_0x5ef6c0['model']['change'](_0x245829=>{_0x21ea57['markBlockFormat'](_0x245829['createRangeOn'](_0x392a25),{'commandName':_0x4579d3,'commandParams':[]},_0x5b8506,_0x4579d3);});});}_0x21ea57['descriptionFactory']['registerDescriptionCallback'](_0x2fc7a0=>{if('formatBlock'!=_0x2fc7a0['type']&&'formatInline'!=_0x2fc7a0['type'])return;const {data:_0x43efeb}=_0x2fc7a0;return _0x43efeb&&'mergeTableCells'==_0x43efeb['commandName']?{'type':'format','content':o(_0x43fc62,'*Merge\x20cells*')}:void 0x0;}),_0x21ea57['descriptionFactory']['registerDescriptionCallback'](_0x2b169a=>{if('formatBlock'!=_0x2b169a['type']&&'formatInline'!=_0x2b169a['type'])return;const {data:_0x537306}=_0x2b169a;return _0x537306?'splitTableCellVertically'==_0x537306['commandName']?{'type':'format','content':o(_0x43fc62,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x537306['commandName']?{'type':'format','content':o(_0x43fc62,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x23ee92=_0x69130c['_acceptFormatSuggestionCallbackFactory']();for(const _0x1b94e3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x21ea57['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b94e3,'accept',_0x23ee92);for(const _0x394827 of['splitTableCellVertically','splitTableCellHorizontally'])_0x21ea57['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x394827,'accept',_0x23ee92);_0x21ea57['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x63f6e9=>{_0x5ef6c0['model']['change'](_0x4ad669=>{const _0x53f567=Array['from'](_0x24a31b['getRanges']())['map'](_0x3c01b7=>_0x2f9bba['fromRange'](_0x3c01b7));_0x4ad669['setSelection'](_0x63f6e9),_0x5ef6c0['commands']['get']('mergeTableCells')['refresh'](),_0x5ef6c0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x28d208=_0x53f567['filter'](_0x4de5f5=>'$graveyard'!=_0x4de5f5['root']['rootName']);_0x28d208['length']>0x0&&_0x4ad669['setSelection'](_0x28d208);for(const _0x2dcc69 of _0x53f567)_0x2dcc69['detach']();});});for(const _0xc4e62e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x22a939=_0x5ef6c0['commands']['get'](_0xc4e62e);_0x22a939['on']('set:isEnabled',(_0x47f00c,_0x26617f,_0x24b539)=>{if(_0x24b539){const _0x3d99f3=_0x5ef6c0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x321343=>_0x321343['is']('element','tableCell'));this['_areMergableCells'](_0x22a939['value'],_0x3d99f3)||(_0x47f00c['return']=!0x1,_0x47f00c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x242c46=this['editor']['commands']['get']('mergeTableCells'),_0x21c748=this['editor']['plugins']['get']('TableUtils');if(!_0x242c46['isEnabled'])return!0x1;const _0x2a22a1=_0x21c748['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x56c974 of _0x2a22a1)for(const _0x44b5d8 of _0x2a22a1)if(_0x56c974!=_0x44b5d8&&!this['_areMergableCells'](_0x56c974,_0x44b5d8))return!0x1;return!0x0;}['_areMergableCells'](_0x49c302,_0x5d6c11){const _0x1c20b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ab432=this['editor']['model']['createRangeOn'](_0x49c302),_0x152e32=this['editor']['model']['createRangeOn'](_0x5d6c11),_0x5e9065=new Set(),_0x51035e=new Set();for(const _0x1890fd of _0x1c20b0['getSuggestions']())if(('insertion'==_0x1890fd['type']||'deletion'==_0x1890fd['type']||'mergeTableCells'==_0x1890fd['subType'])&&_0x1890fd['isInContent']){for(const _0x3eb38c of _0x1890fd['getRanges']())_0x3eb38c['containsRange'](_0x3ab432,!0x0)&&_0x5e9065['add'](_0x1890fd['type']+':'+_0x1890fd['author']['id']),_0x3eb38c['containsRange'](_0x152e32,!0x0)&&_0x51035e['add'](_0x1890fd['type']+':'+_0x1890fd['author']['id']);}if(_0x5e9065['size']!=_0x51035e['size'])return!0x1;for(const _0x2df299 of _0x5e9065)if(!_0x51035e['has'](_0x2df299))return!0x1;return!0x0;}}class vt extends _0x2e7573{static get['requires'](){return[Nt];}['afterInit'](){const _0x2937bd=this['editor'];if(!_0x2937bd['plugins']['has']('TableEditing'))return;const _0x556dfa=_0x2937bd['locale'],_0x1338d4=_0x2937bd['plugins']['get']('TrackChangesEditing');_0x1338d4['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1338d4['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1338d4['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x556dfa,'FORMAT_HEADER_ROW')),_0x1338d4['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x556dfa,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3978c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51090a=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x3978c8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x51090a),_0x3978c8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x51090a),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x1f0abe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ed7b4=this['editor']['plugins']['get']('TableUtils');function _0x562c5c({showActiveMarker:_0x3c144c=!0x0,setDataAttribute:_0x3a85d0=!0x0}={}){return(_0x484264,_0x15aa77,_0x357e7d)=>{const {type:_0x2c38f2,id:_0x3c0273}=_0x1f0abe['_splitMarkerName'](_0x15aa77['markerName']);if(!_0x1f0abe['hasSuggestion'](_0x3c0273))return;const _0x32cd49=_0x1f0abe['getSuggestion'](_0x3c0273),_0x5060af=_0x32cd49['data'];if('formatBlock'!=_0x32cd49['type']||!_0x5060af||'setTableColumnHeader'!=_0x5060af['commandName'])return;if(_0x15aa77['item'])return void _0x484264['stop']();if(!_0x357e7d['consumable']['consume'](_0x15aa77['markerRange'],_0x484264['name']))return;const _0x90d9cc=_0x15aa77['markerRange']['start']['nodeAfter'],_0x1134ed=_0x15aa77['markerRange']['end']['nodeBefore'],_0x5e6529=_0x90d9cc['parent']['parent'],{column:_0x6671e4}=_0x2ed7b4['getCellLocation'](_0x90d9cc),{column:_0x4f7549}=_0x2ed7b4['getCellLocation'](_0x1134ed);for(let _0x1e3346=_0x6671e4;_0x1e3346<=_0x4f7549;_0x1e3346++){const _0x1ee0c6=_0x2ed7b4['createTableWalker'](_0x5e6529,{'column':_0x1e3346,'includeAllSlots':!0x1});for(const _0xb7882 of _0x1ee0c6){const _0x4022c9=_0xb7882['cell'],_0x4a7004=_0x357e7d['mapper']['toViewElement'](_0x4022c9);_0x357e7d['writer']['addClass']('ck-suggestion-marker-'+_0x2c38f2,_0x4a7004),_0x3a85d0&&_0x357e7d['writer']['setAttribute']('data-suggestion',_0x3c0273,_0x4a7004),_0x357e7d['mapper']['bindElementToMarker'](_0x4a7004,_0x15aa77['markerName']),_0x3c144c&&(_0x1f0abe['activeMarkers']['includes'](_0x15aa77['markerName'])?_0x357e7d['writer']['addClass']('ck-suggestion-marker--active',_0x4a7004):_0x357e7d['writer']['removeClass']('ck-suggestion-marker--active',_0x4a7004));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x562c5c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5fc15b,_0xf61682,_0x499d34)=>{_0x499d34['options']['showSuggestionHighlights']&&_0x562c5c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5fc15b,_0xf61682,_0x499d34);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x55ed80,_0x3f5498,_0xd0963c)=>{const {type:_0x2a17ca,id:_0x2fe793}=_0x1f0abe['_splitMarkerName'](_0x3f5498['markerName']);if(!_0x1f0abe['hasSuggestion'](_0x2fe793))return;const _0x3e757d=_0x1f0abe['getSuggestion'](_0x2fe793),_0x86d495=_0x3e757d['data'];if('formatBlock'!=_0x3e757d['type']||!_0x86d495||'setTableColumnHeader'!=_0x86d495['commandName'])return;const _0x5ef74a=_0xd0963c['mapper']['markerNameToElements'](_0x3f5498['markerName']);if(_0x5ef74a){for(const _0x1f52ee of _0x5ef74a)_0xd0963c['writer']['removeClass']('ck-suggestion-marker-'+_0x2a17ca,_0x1f52ee),_0xd0963c['writer']['removeClass']('ck-suggestion-marker--active',_0x1f52ee),_0xd0963c['writer']['removeAttribute']('data-suggestion',_0x1f52ee),_0xd0963c['mapper']['unbindElementFromMarkerName'](_0x1f52ee,_0x3f5498['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x115794=this['editor'],_0x3213f8=_0x115794['locale'];function _0x14e433(_0x4b0a2e){return{'type':'format','content':o(_0x3213f8,'*Format:*\x20%0',_0x4b0a2e)};}_0x115794['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x104331=>{if('formatBlock'!=_0x104331['type'])return;const {data:_0x3668c8}=_0x104331;if(_0x3668c8){if('setTableRowHeader'==_0x3668c8['commandName']){const _0x3d9cc6=_0x3668c8['commandParams'][0x0]['forceValue'];return _0x14e433(o(_0x3213f8,_0x3d9cc6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3668c8['commandName']){const _0x3bf2bc=_0x3668c8['commandParams'][0x0]['forceValue'];return _0x14e433(o(_0x3213f8,_0x3bf2bc?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x2e7573{['afterInit'](){const _0x414cfa=this['editor'],_0x1125e2=_0x414cfa['locale'],_0x24317d=_0x414cfa['plugins']['get']('TrackChangesEditing');function _0x226f49(_0x5b5deb){return{'type':'format','content':''+o(_0x1125e2,'*Set\x20table\x20type:*\x20%0',_0x5b5deb)};}_0x414cfa['plugins']['has']('TableLayout')&&(_0x24317d['enableCommand']('insertTableLayout'),_0x24317d['enableDefaultAttributesIntegration']('tableType'),_0x24317d['descriptionFactory']['registerElementLabel'](_0x188fe7=>_0x188fe7['is']('element','table')&&'layout'===_0x188fe7['getAttribute']('tableType'),_0x216067=>o(_0x1125e2,'ELEMENT_LAYOUT_TABLE',_0x216067)),_0x24317d['descriptionFactory']['registerDescriptionCallback'](_0x19b08f=>{const {data:_0x382da3}=_0x19b08f;if(_0x382da3&&'tableType'==_0x382da3['key'])switch(_0x382da3['newValue']){case'layout':return _0x226f49(o(_0x1125e2,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x226f49(o(_0x1125e2,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x5aedf8=>[_0x5aedf8,null]));class Bt extends _0x2e7573{static get['requires'](){return[Nt];}['afterInit'](){const _0x2d4ccd=this['editor'];if(!_0x2d4ccd['plugins']['has']('TableClipboard'))return;const _0x4bddbe=_0x2d4ccd['plugins']['get']('TrackChangesEditing'),_0x1d7f9f=_0x2d4ccd['plugins']['get']('TableUtils'),_0x4b1ed0=_0x2d4ccd['plugins']['get'](Nt),_0x3a817f=_0x2d4ccd['plugins']['get']('TableClipboard'),_0x18a25c=_0x2d4ccd['plugins']['get']('TableSelection'),_0x37cb4b=_0x2d4ccd['plugins']['get'](_0x3c5440);_0x4b1ed0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2d4ccd['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2d4ccd['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3f68de=null,_0x3c9b67=!0x1;_0x37cb4b['on']('contentInsertion',(_0x5f181b,_0x5de6a9)=>{_0x3c9b67='paste'===_0x5de6a9['method'];}),_0x2d4ccd['model']['on']('insertContent',(_0x410e84,_0x4216f4)=>{if(!_0x3c9b67&&null===_0x18a25c['getSelectedTableCells']())return;const [_0x308af8,_0x4c6b92]=_0x4216f4,_0x49beb8=_0x4216f4[_0x4216f4['length']-0x1];_0x49beb8&&_0x49beb8['forceDefaultExecution']||_0x4bddbe['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xa42e93,_0x3d795d,_0xce685,_0x5b1868,_0xf4b395){if(_0x3d795d&&!_0x3d795d['is']('documentSelection'))return!0x1;const _0x3590cf=_0xf4b395['getTableIfOnlyTableInContent'](_0xa42e93,_0xce685);if(!_0x3590cf||!Oe(_0x3590cf,void 0x0,_0x5b1868))return!0x1;const _0x2141a9=_0x5b1868['getSelectionAffectedTableCells'](_0xce685['document']['selection']);if(!_0x2141a9['length'])return!0x1;const _0x1eb67a=_0x2141a9[0x0]['findAncestor']('table'),_0x364057=_0x5b1868['getRowIndexes'](_0x2141a9),_0xea9ad=_0x5b1868['getColumnIndexes'](_0x2141a9),_0x2a8027={'startRow':_0x364057['first'],'endRow':_0x364057['last'],'startColumn':_0xea9ad['first'],'endColumn':_0xea9ad['last']};return 0x1==_0x2141a9['length']&&(_0x2a8027['endRow']+=_0x5b1868['getRows'](_0x3590cf)-0x1,_0x2a8027['endColumn']+=_0x5b1868['getColumns'](_0x3590cf)-0x1),Oe(_0x1eb67a,_0x2a8027,_0x5b1868);}(_0x308af8,_0x4c6b92,_0x2d4ccd['model'],_0x1d7f9f,_0x3a817f)&&(_0x410e84['stop'](),_0x3f68de={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2d4ccd['model']['change'](()=>{_0x2d4ccd['model']['insertContent'](_0x4216f4[0x0],_0x4216f4[0x1],_0x4216f4[0x2],{'forceDefaultExecution':!0x0});const _0x23e72f=_0xcb588e(),{rowInsertionRanges:_0x45e92f,columnInsertionRanges:_0x28e5a7,insertionRanges:_0x334ade,deletionRanges:_0x1dcd60,cells:_0x4c1c2e}=_0x3f68de;_0x45e92f['length']&&_0x4bddbe['markMultiRangeInsertion'](_0x45e92f,'tablePasteRow',{'tablePasteChainId':_0x23e72f}),_0x28e5a7['length']&&_0x4bddbe['markMultiRangeInsertion'](_0x28e5a7,'tablePasteColumn',{'tablePasteChainId':_0x23e72f}),_0x334ade['length']&&(_0x4bddbe['markMultiRangeInsertion'](_0x334ade,'tablePaste',{'tablePasteChainId':_0x23e72f,'skipNestingCheck':!0x0}),_0x334ade['forEach'](_0x2007a4=>_0x2007a4['detach']?.())),_0x1dcd60['length']&&(_0x4bddbe['markMultiRangeDeletion'](_0x1dcd60,'tablePaste',{'tablePasteChainId':_0x23e72f,'skipNestingCheck':!0x0}),_0x1dcd60['forEach'](_0x5d9e92=>_0x5d9e92['detach']?.()));const _0x498f5a=_0x4bddbe['markMultiRangeBlockFormat'](_0x4c1c2e['map'](({element:_0x28e375})=>_0x28e375),{'formatGroupId':_0xcb588e()},[],'tablePasteCell',{'tablePasteChainId':_0x23e72f});if(_0x498f5a){const _0x4b9eab=_0x498f5a['getMarkers'](),_0x45c777=[];for(const {element:_0x2c6a44,attributes:_0x2a87c8}of _0x4c1c2e){if(!_0x2a87c8)continue;const _0x15e35c=_0x2d4ccd['model']['createRangeOn'](_0x2c6a44),_0x1fb244=_0x4b9eab['find'](_0x16fc69=>_0x16fc69['getRange']()['isEqual'](_0x15e35c));_0x1fb244&&_0x45c777['push']([_0x1fb244['name'],_0x2a87c8]);}_0x45c777['length']&&_0x498f5a['setAttribute']('markerAttributes',Object['fromEntries'](_0x45c777));}_0x3f68de=null;}));},{'priority':_0x104c24['high']+0xa}),_0x37cb4b['on']('contentInsertion',()=>{_0x3c9b67=!0x1;},{'priority':'lowest'}),_0x2d4ccd['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x42ccf4,_0x1ddda7)=>{const [_0x1f4d80,_0x3c4e04,,_0xa474f9]=_0x1ddda7;if(!_0x3f68de)return;_0x42ccf4['stop']();const _0x9c87a8=_0x1f4d80['cell'],_0x2d48f2=_0x3c4e04,_0x37a27e=Be(_0x9c87a8),_0x562bb2=Be(_0x2d48f2);_0x42ccf4['return']=_0x9c87a8;let _0xa6c589=null,_0x5787dd=null;if(_0x562bb2||_0x37a27e){if(_0x37a27e&&!_0x562bb2){_0xa474f9['remove'](_0x9c87a8['getChild'](0x0));for(const _0x103e5c of Array['from'](_0x2d48f2['getChildren']()))_0xa474f9['insert'](_0x103e5c,_0x9c87a8,'end');const _0x48684e=_0x3f68de['rowInsertionIndexes']['includes'](_0x1f4d80['row']),_0x3c38c0=_0x3f68de['columnInsertionIndexes']['includes'](_0x1f4d80['column']);_0x48684e||_0x3c38c0||(_0xa6c589=_0x2f9bba['fromRange'](_0xa474f9['createRangeIn'](_0x9c87a8)));}else _0x562bb2&&!_0x37a27e&&(_0x5787dd=_0xa474f9['createRangeIn'](_0x9c87a8));}else{const _0x2dcf69=_0xa474f9['createElement']('tableCellSuggestion'),_0x57212e=_0xa474f9['createElement']('tableCellSuggestion');_0xa474f9['wrap'](_0xa474f9['createRangeIn'](_0x9c87a8),_0x57212e),_0xa474f9['insert'](_0x2dcf69,_0x9c87a8,0x0);for(const _0x190dc3 of Array['from'](_0x2d48f2['getChildren']()))_0xa474f9['insert'](_0x190dc3,_0x2dcf69,'end');_0xa6c589=_0x2f9bba['fromRange'](_0xa474f9['createRangeOn'](_0x2dcf69)),_0x5787dd=_0x2f9bba['fromRange'](_0xa474f9['createRangeOn'](_0x57212e));}const _0x59a091=Array['from'](_0x2d48f2['getAttributes']())['filter'](([_0x56b1d9])=>Re['includes'](_0x56b1d9));_0x3f68de['cells']['push']({'element':_0x9c87a8,'attributes':_0x59a091['length']?Object['fromEntries'](_0x59a091):null}),_0xa6c589&&_0x3f68de['insertionRanges']['push'](_0xa6c589),_0x5787dd&&_0x3f68de['deletionRanges']['push'](_0x5787dd);},{'priority':'high'}),_0x1d7f9f['on']('insertColumns',(_0x5c5de2,_0xa6c974)=>{const [_0x2a156e,_0x63b408={}]=_0xa6c974;if(!_0x3f68de)return;const _0x5b7b93=_0x63b408['at']||0x0,_0x10ccc6=_0x63b408['columns']||0x1;_0x3f68de['columnInsertionIndexes']=new Array(_0x10ccc6)['fill'](_0x5b7b93)['map']((_0x4815fa,_0x36ef72)=>_0x4815fa+_0x36ef72);for(const {cell:_0x49ca90}of _0x1d7f9f['createTableWalker'](_0x2a156e,{'startColumn':_0x5b7b93,'endColumn':_0x5b7b93+_0x10ccc6-0x1}))_0x3f68de['columnInsertionRanges']['push'](_0x2d4ccd['model']['createRangeOn'](_0x49ca90));},{'priority':'low'}),_0x1d7f9f['on']('insertRows',(_0xc831e7,_0x3af80c)=>{const [_0x527cb8,_0x2e420e={}]=_0x3af80c;if(!_0x3f68de)return;const _0x1f5858=_0x2e420e['at']||0x0,_0x29c5e0=_0x2e420e['rows']||0x1;_0x3f68de['rowInsertionIndexes']=new Array(_0x29c5e0)['fill'](_0x1f5858)['map']((_0x8944d9,_0x50a3dd)=>_0x8944d9+_0x50a3dd);for(const {cell:_0x52bff5}of _0x1d7f9f['createTableWalker'](_0x527cb8,{'startRow':_0x1f5858,'endRow':_0x1f5858+_0x29c5e0-0x1}))_0x3f68de['rowInsertionRanges']['push'](_0x2d4ccd['model']['createRangeOn'](_0x52bff5));},{'priority':'low'}),_0x4bddbe['descriptionFactory']['registerDescriptionCallback'](_0x19aaf4=>{if(_0x19aaf4['subType']&&_0x19aaf4['subType']['startsWith']('tablePaste'))return _0x19aaf4['previous']?{}:{'type':'insertion','content':o(_0x2d4ccd['locale'],'*Replace\x20table\x20cells*')};});const _0x144758=()=>!0x1;for(const _0x117b40 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4bddbe['_suggestionFactory']['registerCustomCallback']('insertion',_0x117b40,'join',_0x144758),_0x4bddbe['_suggestionFactory']['registerCustomCallback']('deletion',_0x117b40,'join',_0x144758),_0x4bddbe['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x117b40,'join',_0x144758);_0x4bddbe['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x144758),_0x4bddbe['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3bc785,_0x141d70,_0x40245a)=>{const _0x57498b=_0x3bc785['map'](_0x28fd49=>_0x28fd49['getContainedElement']())['filter'](_0x5039b2=>_0x5039b2),_0x1d651d=new Map(_0x57498b['map'](_0x34cca2=>[_0x34cca2,null]));if(_0x3f68de){for(const {element:_0x41a317,attributes:_0x5b799b}of _0x3f68de['cells'])_0x5b799b&&_0x1d651d['set'](_0x41a317,_0x5b799b);}else{if(_0x40245a&&_0x40245a['markerAttributes'])for(const [_0xccf5b5,_0x564f96]of Object['entries'](_0x40245a['markerAttributes'])){const _0x226b1c=_0x2d4ccd['model']['markers']['get'](_0xccf5b5),_0x1fcbda=_0x226b1c?_0x226b1c['getRange']()['getContainedElement']():null;_0x1fcbda&&_0x1d651d['set'](_0x1fcbda,_0x564f96);}}_0x2d4ccd['model']['change'](_0x4cf23e=>{for(const [_0x106b99,_0x35da2a]of _0x1d651d)_0x4cf23e['setAttributes']({...Ae,..._0x35da2a},_0x106b99);});});const _0x25f5d1=(_0x448c28,_0x14d7f2)=>{_0x4bddbe['_suggestionFactory']['registerCustomCallback'](_0x448c28,'tablePaste',_0x14d7f2,(_0x254e78,_0x47fa27,_0x12632b)=>{_0x2d4ccd['model']['change'](_0x215958=>{const _0x32743f=[];for(const _0x42bd63 of _0x254e78){const _0x222fd5=_0x42bd63['start']['nodeAfter'];_0x222fd5['is']('element','tableCellSuggestion')&&_0x32743f['push'](_0x222fd5);}_0x4bddbe['_suggestionFactory']['getSuggestionCallback'](_0x448c28,null,_0x14d7f2)(_0x254e78,_0x47fa27,_0x12632b);for(const _0x26c35b of _0x32743f)'$graveyard'!=_0x26c35b['root']['rootName']&&_0x215958['unwrap'](_0x26c35b);});});};_0x25f5d1('insertion','accept'),_0x25f5d1('insertion','discard'),_0x25f5d1('deletion','accept'),_0x25f5d1('deletion','discard'),_0x4bddbe['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x21e99f=>{const _0x504a86=_0x21e99f['map'](_0x474287=>_0x474287['getContainedElement']()),_0x1c35de=_0x504a86[0x0]['findAncestor']('table'),{minRow:_0x28d265,maxRow:_0x403e32}=_0x4b1ed0['_getCoordsForCells'](_0x504a86);_0x1d7f9f['removeRows'](_0x1c35de,{'at':_0x28d265,'rows':_0x403e32-_0x28d265+0x1});}),_0x4bddbe['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5b581f=>{const _0x4fc217=_0x5b581f['map'](_0x124951=>_0x124951['getContainedElement']()),_0x5de3a0=_0x4fc217[0x0]['findAncestor']('table'),{minColumn:_0x5dab31,maxColumn:_0x234b1b}=_0x4b1ed0['_getCoordsForCells'](_0x4fc217);_0x1d7f9f['removeColumns'](_0x5de3a0,{'at':_0x5dab31,'columns':_0x234b1b-_0x5dab31+0x1});});const _0xaaca83=(_0x433629,_0x41e355)=>{if(!_0x41e355['subType']||!_0x41e355['subType']['startsWith']('tablePaste'))return;const _0x4d145a=_0x41e355['attributes']['tablePasteChainId'],_0x2cfb16=_0x4bddbe['getSuggestions']()['filter'](_0x83883f=>_0x83883f['isInContent']&&_0x83883f['attributes']&&_0x83883f['attributes']['tablePasteChainId']==_0x4d145a);_0x2cfb16['length']&&_0x41e355['getAllAdjacentSuggestions']()['length']!=_0x2cfb16['length']&&_0x2cfb16['reduce']((_0x41c2aa,_0x16ff29)=>(_0x41c2aa['next']=_0x16ff29,_0x16ff29['previous']=_0x41c2aa,_0x16ff29));};function _0x295cc7(_0x11ebd4,_0x3e780d=!0x0){const {id:_0x10c70b,authorId:_0x221639}=_0x4bddbe['_splitMarkerName'](_0x11ebd4['markerName']),_0x59ee27=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x493895=_0x4bddbe['activeMarkers']['includes'](_0x11ebd4['markerName']);return _0x493895&&_0x59ee27['push']('ck-suggestion-marker--active'),{'classes':_0x59ee27,'attributes':{'data-suggestion':_0x10c70b,'data-author-id':_0x221639},'priority':_0x493895&&_0x3e780d?0xbc2:0xbb8};}_0x4bddbe['on']('suggestionLoaded',_0xaaca83,{'priority':'high'}),_0x4bddbe['on']('suggestionUnloaded',_0xaaca83,{'priority':'high'}),_0x2d4ccd['model']['document']['registerPostFixer'](()=>{let _0xbad36f=!0x1;const _0x4a8920=Array['from'](_0x2d4ccd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x344ef7,data:_0x1adb12}of _0x4a8920){const {group:_0x130bda,type:_0x21a0e0,id:_0xd57a81}=_0x4bddbe['_splitMarkerName'](_0x344ef7);if('suggestion'!=_0x130bda||'deletion'!=_0x21a0e0||_0x1adb12['oldRange'])continue;if(!_0x4bddbe['hasSuggestion'](_0xd57a81))continue;const _0x49833a=_0x4bddbe['getSuggestion'](_0xd57a81)['getRanges'](),_0x521e3a=_0x2d4ccd['plugins']['get']('Users')['me'];for(const _0x4a731e of _0x4bddbe['getSuggestions']()){if(!_0x4a731e['isInContent']||_0x4a731e['author']!=_0x521e3a)continue;if('formatBlock'!=_0x4a731e['type']||'tablePasteCell'!=_0x4a731e['subType'])continue;if(_0x4a731e['getRanges']()['every'](_0x479653=>_0x49833a['some'](_0x3af356=>_0x3af356['containsRange'](_0x479653,!0x0)))){for(const _0x3388ad of _0x4a731e['getAllAdjacentSuggestions']())_0x3388ad['isInContent']&&(_0x3388ad['discard'](),_0xbad36f=!0x0);}}}return _0xbad36f;}),_0x2d4ccd['model']['document']['registerPostFixer'](_0x163ca9=>{const _0x363690=_0x2d4ccd['commands']['get']('redo');if(!_0x363690||!_0x363690['_createdBatches']['has'](_0x163ca9['batch']))return!0x1;let _0x269a3d=!0x1;const _0x47d0be=_0x2d4ccd['plugins']['get']('Users')['me'],_0x386164=_0x2d4ccd['model']['document']['differ']['getChanges'](),_0x3399f2=Array['from'](_0x2d4ccd['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x336094,data:_0x18b36b})=>{const {group:_0x55e635,subType:_0x2cc2bb,authorId:_0x994f8a}=_0x4bddbe['_splitMarkerName'](_0x336094);return'suggestion'==_0x55e635&&'tablePaste'==_0x2cc2bb&&_0x994f8a==_0x47d0be['id']&&!_0x18b36b['oldRange'];});for(const _0x500dc7 of _0x386164){if('insert'!=_0x500dc7['type']||'tableCellSuggestion'!=_0x500dc7['name']||0x1!=_0x500dc7['length'])continue;const _0xf88a42=_0x163ca9['createRange'](_0x500dc7['position'],_0x500dc7['position']['getShiftedBy'](0x1));if(!_0x3399f2['find'](({data:_0x18f09b})=>_0x18f09b['newRange']['isEqual'](_0xf88a42))){for(const {name:_0x24dd0c,data:_0x38b246}of _0x3399f2)if(_0xf88a42['containsRange'](_0x38b246['newRange'])){_0x163ca9['updateMarker'](_0x24dd0c,{'range':_0xf88a42}),_0x269a3d=!0x0;break;}}}return _0x269a3d;}),_0x2d4ccd['model']['document']['registerPostFixer'](_0x6e7785=>{let _0x376fad=!0x1;const _0x4dba57=_0x2d4ccd['plugins']['get']('Users')['me'],_0x303cf4=_0x4bddbe['getSuggestions']()['filter'](_0x54d41e=>_0x54d41e['isInContent']&&_0x54d41e['author']==_0x4dba57),_0x1051fb=new Set(),_0x39bff3=new Set();for(const _0x3e141a of _0x303cf4)if('tablePaste'==_0x3e141a['subType'])for(const _0x5b63e7 of _0x3e141a['getMarkers']()){const _0x36d628=_0x5b63e7['getRange']()['getContainedElement']();if(_0x36d628){if(_0x36d628['is']('element','tableCellSuggestion')&&Be(_0x36d628)){_0x3e141a['removeMarker'](_0x5b63e7['name']),_0x1051fb['add'](_0x36d628),_0x376fad=!0x0;const _0x249419=_0x36d628['nextSibling'],_0x2da20f=_0x36d628['previousSibling'],_0x1f9e0f=_0x249419&&_0x249419['is']('element','tableCellSuggestion'),_0x4b165e=_0x2da20f&&_0x2da20f['is']('element','tableCellSuggestion');_0x1f9e0f&&!_0x1051fb['has'](_0x249419)&&_0x39bff3['add'](_0x249419),_0x4b165e&&!_0x1051fb['has'](_0x2da20f)&&_0x39bff3['add'](_0x2da20f);}else _0x36d628['is']('element','paragraph')&&_0x36d628['isEmpty']&&(_0x3e141a['removeMarker'](_0x5b63e7['name']),_0x376fad=!0x0);}}else{if('tablePasteCell'==_0x3e141a['subType']){if(!_0x3e141a['attributes']||!_0x3e141a['attributes']['tablePasteChainId'])continue;const _0x41973a=_0x3e141a['attributes']['markerAttributes'];if(_0x41973a&&Object['keys'](_0x41973a)['length'])continue;const _0x50c469=_0x3e141a['attributes']['tablePasteChainId'];let _0x4b0ee1=!0x0,_0x244bf7=!0x0;for(const _0x1222c9 of _0x303cf4)if(_0x1222c9['subType']&&_0x1222c9['subType']['startsWith']('tablePaste')){if(!_0x1222c9['attributes']['tablePasteChainId']){_0x244bf7=!0x1;break;}if(_0x1222c9['id']!=_0x3e141a['id']&&_0x1222c9['attributes']['tablePasteChainId']==_0x50c469){_0x4b0ee1=!0x1;break;}}_0x244bf7&&_0x4b0ee1&&(_0x3e141a['removeMarkers'](),_0x376fad=!0x0);}}for(const _0x39e824 of _0x1051fb)_0x6e7785['remove'](_0x39e824);for(const _0x743e8d of _0x39bff3)_0x6e7785['unwrap'](_0x743e8d);return _0x376fad;}),_0x2d4ccd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xafdefc=>_0x295cc7(_0xafdefc),'converterPriority':'high'}),_0x2d4ccd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x205131,_0x14877f)=>_0x14877f['options']['showSuggestionHighlights']?_0x295cc7(_0x205131,!0x1):null,'converterPriority':'high'});const _0x20af6c=_0x2d4ccd['editing']['view'];this['listenTo'](_0x20af6c['document'],'clipboardOutput',(_0x4ce63c,_0x561eeb)=>{const _0x24fe74=[];for(const _0x2b623b of _0x20af6c['createRangeIn'](_0x561eeb['content'])['getItems']())_0x2b623b['is']('element','suggestion-td')&&_0x24fe74['push'](_0x2b623b);_0x20af6c['change'](_0x2bfdec=>{for(const _0x571ebc of _0x24fe74)_0x2bfdec['move'](_0x2bfdec['createRangeIn'](_0x571ebc),_0x2bfdec['createPositionBefore'](_0x571ebc)),_0x2bfdec['remove'](_0x571ebc);});});}}function Be(_0x3f8fe8){if(_0x3f8fe8['isEmpty'])return!0x0;const _0x997241=_0x3f8fe8['getChild'](0x0);return _0x997241['is']('element','paragraph')&&_0x997241['isEmpty'];}function Oe(_0x460804,_0x166192={},_0x28a14e){for(const {isAnchor:_0x17169a,cellHeight:_0x4ef5e4,cellWidth:_0x15771b}of _0x28a14e['createTableWalker'](_0x460804,{'includeAllSlots':!0x0,..._0x166192}))if(!_0x17169a||0x1!=_0x4ef5e4||0x1!=_0x15771b)return!0x1;return!0x0;}class Ot extends _0x2e7573{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x488833=this['editor']['plugins']['get']('TrackChangesEditing');_0x488833['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x488833['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x488833['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x488833['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x488833['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x488833['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1d7e0f,_0x4fa208){const _0x1ca930=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d024a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x578e9b=_0x4fa208['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x15a830=_0x3d024a['getColumnGroupElement'](_0x578e9b);let _0x4d9f9f=_0x15a830?_0x3d024a['getTableColumnsWidths'](_0x15a830):null,_0xe806d9=_0x578e9b['getAttribute']('tableWidth')||null;const _0x511033=_0x4fa208['tableWidth']||_0xe806d9,_0x7a5bbd=_0x4fa208['columnWidths']||_0x4d9f9f,_0x5c3961=this['editor']['plugins']['get']('Users')['me'];for(const _0x53e163 of _0x1ca930['getSuggestions']()){const _0x5b072d=_0x53e163['getContainedElement']();if('resizeTable'===_0x53e163['subType']&&_0x5b072d===_0x578e9b){_0x53e163['author']!==_0x5c3961&&_0x53e163['discard']();const _0x28561d=_0x53e163['data']['commandParams'];_0xe806d9=_0x28561d[0x0]['tableWidth'],_0x4d9f9f=_0x28561d[0x0]['columnWidths'];break;}}_0x1d7e0f({'table':_0x578e9b,'tableWidth':_0x511033,'columnWidths':_0x7a5bbd}),_0x1ca930['markBlockFormat'](_0x578e9b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xe806d9,'columnWidths':_0x4d9f9f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1a9717){if('formatBlock'!=_0x1a9717['type']&&'formatInline'!=_0x1a9717['type'])return;const {data:_0x4d62d6}=_0x1a9717;if(_0x4d62d6&&'resizeTable'===_0x4d62d6['formatGroupId']){const _0xdc3d42='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xdc3d42)};}}}class xt extends _0x2e7573{['afterInit'](){const _0xa82baf=this['editor'];_0xa82baf['plugins']['has']('Template')&&_0xa82baf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2e7573{['afterInit'](){const _0x5745e9=this['editor'];if(!_0x5745e9['commands']['get']('insertTableOfContents'))return;_0x5745e9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2340d8=_0x5745e9['plugins']['get']('TrackChangesEditing'),_0x3200db=_0x5745e9['locale'];_0x2340d8['descriptionFactory']['registerElementLabel']('tableOfContents',_0x251bec=>o(_0x3200db,'ELEMENT_TABLE_OF_CONTENTS',_0x251bec));}}class Rt extends _0x2e7573{['afterInit'](){const _0xceed97=this['editor'];if(!_0xceed97['plugins']['has']('Title'))return;const _0x3ac52a=_0xceed97['plugins']['get']('TrackChangesEditing');_0x3ac52a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xceed97['locale'],'ELEMENT_TITLE')),_0xceed97['model']['document']['registerPostFixer'](_0x60258b=>{let _0x555f77=!0x1;const _0xd09cf=Array['from'](_0xceed97['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16e14a,data:_0x4da1c5}of _0xd09cf){const {group:_0x27dcfe}=_0x3ac52a['_splitMarkerName'](_0x16e14a);if('suggestion'!==_0x27dcfe||!_0x4da1c5['newRange'])continue;const _0x10038f=_0x4da1c5['newRange'],_0x363d80=_0x10038f['end']['nodeBefore'];if(!_0x363d80||!_0x363d80['is']('element','title-content'))continue;if(!_0x10038f['start']['isTouching'](_0x10038f['end']))continue;const _0x5821db=_0xceed97['model']['schema']['getNearestSelectionRange'](_0x10038f['end'],'forward');if(_0x5821db&&_0x5821db['isCollapsed']){const _0x9080b9=_0x60258b['createRange'](_0x10038f['start'],_0x5821db['start']);_0x9080b9['isEqual'](_0x10038f)||(_0x60258b['updateMarker'](_0x16e14a,{'range':_0x9080b9}),_0x555f77=!0x0);}_0x555f77||(_0x60258b['removeMarker'](_0x16e14a),_0x555f77=!0x0);}return _0x555f77;});}}class Tt extends _0x2e7573{['afterInit'](){const _0x2d8fa4=this['editor'],_0x27d40d=_0x2d8fa4['plugins']['get']('TrackChangesEditing');_0x2d8fa4['plugins']['has']('Uploadcare')&&(_0x27d40d['enableCommand']('uploadcare'),_0x2d8fa4['plugins']['has']('UploadcareImageEdit')&&(_0x27d40d['enableCommand']('uploadcareImageEdit'),_0x27d40d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x27d40d['descriptionFactory']['registerDescriptionCallback'](_0x490550=>{if('attribute'!=_0x490550['type'])return;const {data:_0x4b93ac}=_0x490550;return _0x4b93ac&&'uploadcareImageId'==_0x4b93ac['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2e7573{['afterInit'](){const _0x1f0751=this['editor'],_0x5ca368=_0x1f0751['plugins']['get']('TrackChangesEditing');_0x1f0751['plugins']['has']('UndoEditing')&&(_0x5ca368['enableCommand']('undo'),_0x5ca368['enableCommand']('redo'));}}class Ut extends _0x2e7573{static get['requires'](){return[Nt];}['afterInit'](){const _0x12e4f9=this['editor'];if(!_0x12e4f9['plugins']['has']('TableCaptionEditing'))return;_0x12e4f9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2e7573{['tableProperties'];['tableCellProperties'];constructor(_0x553712){super(_0x553712),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5e52e9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xeb2850 of this['tableProperties'])_0x5e52e9['enableCommand'](_0xeb2850,(_0xe35a19,_0xbb6e85)=>{const _0x47136a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xeb2850,[_0x47136a],this['tableProperties'],'tableProperties',_0xe35a19,_0xbb6e85);});_0x5e52e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5e52e9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e52e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3d8f02,_0x4d2ab4)=>this['handleDiscardAction'](this['tableProperties'],_0x3d8f02,_0x4d2ab4)),_0x5e52e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x44e664 of this['tableCellProperties'])_0x5e52e9['enableCommand'](_0x44e664,(_0x3718b4,_0x1759e1)=>{const _0x2d7a58=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x44e664,_0x2d7a58,this['tableCellProperties'],'tableCellProperties',_0x3718b4,_0x1759e1);});_0x5e52e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5e52e9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e52e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x50c62d,_0x1fc0e7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x50c62d,_0x1fc0e7)),_0x5e52e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5e52e9['descriptionFactory']['registerDescriptionCallback'](_0x39f7d7=>this['handleSuggestionDescription'](_0x39f7d7)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x48a98a,_0x166837,_0x926c7b,_0x20b0cf,_0x24842c,_0x1217bc){const _0x37c3c0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1217bc['batch'],()=>{for(const _0x3d006b of _0x166837){if(this['_getSuggestion'](_0x3d006b,_0x20b0cf))_0x24842c(_0x1217bc);else{const _0x431ac6={};for(const _0x197ccc of _0x926c7b){const _0x23ffcd=_0x3d006b['getAttribute'](_0x197ccc);void 0x0!==_0x23ffcd&&(_0x431ac6[_0x197ccc]=_0x23ffcd);}_0x24842c(_0x1217bc),_0x37c3c0['markBlockFormat'](_0x3d006b,{'commandParams':[_0x431ac6]},[],_0x20b0cf);}}});}['handleDiscardAction'](_0x552c37,_0x2eca31,_0x38847a){const _0x29137a=_0x2eca31[0x0]['start']['nodeAfter'],_0x1bf1a0=_0x38847a['commandParams'][0x0];this['editor']['model']['change'](_0x58e504=>{for(const _0x276488 of _0x552c37)void 0x0!==_0x1bf1a0[_0x276488]?_0x58e504['setAttribute'](_0x276488,_0x1bf1a0[_0x276488],_0x29137a):_0x58e504['removeAttribute'](_0x276488,_0x29137a);});}['handleSuggestionDescription'](_0x45ad32){if(_0x45ad32['data'])switch(_0x45ad32['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'](_0x119a1c,_0x4fd366){const _0x1e1c73=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5ca642 of _0x1e1c73['getSuggestions']({'skipNotAttached':!0x0})){const _0xf35435=_0x5ca642['getContainedElement']();if(_0x5ca642['subType']===_0x4fd366&&_0xf35435===_0x119a1c)return _0x5ca642;}return null;}['_registerTablePropertiesAttributes'](){const _0x30cd1c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5288fb=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2cefd8 of _0x5288fb){const _0x3db068=_0x2cefd8['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x30cd1c['descriptionFactory']['registerAttributeLabel'](_0x2cefd8,o(this['editor']['locale'],'FORMAT_'+_0x3db068));}}}class Ft extends _0x2e7573{['afterInit'](){const _0x13a8e3=this['editor'];if(!_0x13a8e3['plugins']['has']('LineHeight'))return;const _0x490850=_0x13a8e3['plugins']['get']('TrackChangesEditing'),_0x5a6921=_0x13a8e3['locale'];_0x490850['enableDefaultAttributesIntegration']('lineHeight'),_0x490850['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x5a6921,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2e7573{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x34d734,_0xbc397a,_0x392ee9,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(_0x4284a7){super(_0x4284a7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x500f90,_0x399c72,_0x40148e,_0x16459e)=>{this['_model']['change'](()=>{for(const _0x35dfba of[..._0x16459e,..._0x40148e])this['_model']['markers']['has'](_0x35dfba)&&_0x4284a7['editing']['reconvertMarker'](_0x35dfba);});}),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']=_0x4284a7['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4284a7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4284a7['config']['get']('trackChanges.trackFormatChanges'),_0x4284a7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4284a7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x4284a7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x221009=this['editor'];_0x221009['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xce9e9e,{writer:_0x328da4})=>{let _0xcedb14='suggestion:'+_0xce9e9e['getAttribute']('suggestion-type')+':'+_0xce9e9e['getAttribute']('id');return _0xce9e9e['getAttribute']('marker-count')&&(_0xcedb14+=':'+_0xce9e9e['getAttribute']('marker-count')),_0x328da4['createElement']('$marker',{'data-name':_0xcedb14});}}),_0x221009['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x221009['model']['document']['registerPostFixer'](_0x547609=>{let _0x5dc3f5=!0x1;const _0x40a3ad=Array['from'](_0x221009['model']['document']['differ']['getChangedMarkers']()),_0x2ccc4a=new Set();for(const {name:_0x388efa,data:_0x5c38e6}of _0x40a3ad){const {group:_0x32dcba,type:_0x1eed07,subType:_0x2da8e8,id:_0x2ea107}=this['_splitMarkerName'](_0x388efa);if('suggestion'!==_0x32dcba)continue;const _0x2bfa4b=_0x2da8e8?'suggestion:'+_0x1eed07+':'+_0x2da8e8+':'+_0x2ea107:'suggestion:'+_0x1eed07+':'+_0x2ea107,_0x48cc01=_0x221009['model']['markers']['getMarkersGroup'](_0x2bfa4b),_0x12e1c2=_0x221009['model']['markers']['get'](_0x388efa),_0x41a17a=this['_suggestions']['get'](_0x2ea107);if(null!=_0x5c38e6['newRange']){'formatInline'==_0x1eed07&&(_0x5dc3f5=_0x5dc3f5||Wt(_0x5c38e6['newRange'],_0x388efa,_0x547609,_0x221009['model']['schema']));const _0x1981f9='attribute'==_0x1eed07&&this['_isBlockAttribute'](_0x2da8e8['split']('|')[0x0]),_0x50264a='attribute'==_0x1eed07&&this['_isInlineAttribute'](_0x2da8e8['split']('|')[0x0]);if(_0x5c38e6['newRange']['isCollapsed']||'$graveyard'==_0x5c38e6['newRange']['root']['rootName']||'formatBlock'==_0x1eed07&&!Qt(_0x5c38e6['newRange'])||_0x1981f9&&!Qt(_0x5c38e6['newRange'])||_0x50264a&&Xt(_0x5c38e6['newRange'])||'deletion'==_0x1eed07&&Xt(_0x5c38e6['newRange'])||_0x12e1c2&&Yt(_0x12e1c2,_0x48cc01))_0x547609['removeMarker'](_0x388efa),_0x5dc3f5=!0x0;else{if(!_0x41a17a||!_0x41a17a['isInContent'])continue;if(_0x5c38e6['newRange']&&_0x5c38e6['oldRange']&&_0x5c38e6['newRange']['isEqual'](_0x5c38e6['oldRange']))continue;_0x2ccc4a['add'](_0x41a17a);}}}return _0x2ccc4a['size']>0x0&&(_0x5dc3f5=!!this['_joinWithAdjacentSuggestions'](_0x2ccc4a)||_0x5dc3f5),_0x5dc3f5;}),_0x221009['model']['document']['registerPostFixer'](_0x3daf83=>{let _0x142970=!0x1;for(const _0x166972 of _0x221009['model']['document']['differ']['getChanges']())if('insert'==_0x166972['type'])for(const _0x214849 of this['_suggestions']['values']()){if(_0x214849['isMultiRange']||!_0x214849['isInContent'])continue;const _0x28e3c0='formatBlock'==_0x214849['type'],_0x1bfd80=this['_getAttributeKey'](_0x214849),_0x4e8770=_0x1bfd80&&this['_isBlockAttribute'](_0x1bfd80);if(!_0x28e3c0&&!_0x4e8770)continue;const _0x58dc15=_0x214849['getFirstRange']();if(_0x58dc15['start']['parent']!=_0x58dc15['end']['parent']&&!_0x58dc15['end']['isAtEnd']){const _0x1ec1d2=_0x221009['model']['createPositionAt'](_0x58dc15['start']['nodeAfter'],'end'),_0x2ed333=_0x221009['model']['createRange'](_0x58dc15['start'],_0x1ec1d2);_0x3daf83['updateMarker'](_0x214849['getFirstMarker'](),{'range':_0x2ed333}),_0x142970=!0x0;}}return _0x142970;}),_0x221009['model']['document']['registerPostFixer'](_0x1d7bf1=>this['_processAttributeChanges'](_0x1d7bf1)),_0x221009['model']['document']['registerPostFixer'](_0x2f3b1a=>!_0x2f3b1a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2f3b1a)),_0x221009['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x221009['model']['document']['on']('change:data',(_0x310b6d,_0xd95230)=>{if(!_0xd95230['isLocal']||_0xd95230['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xf0189c=_0x221009['model']['document']['differ']['getChanges']();if(0x0==_0xf0189c['length'])return;const _0x6b83b4=[],_0x73522f=_0xf0189c['filter'](_0x4f64e4=>'attribute'==_0x4f64e4['type']),_0x1a43fa=_0xf0189c['filter'](_0x20f3c3=>'insert'==_0x20f3c3['type']&&'$text'!=_0x20f3c3['name']);for(const _0x3e4255 of _0x73522f)this['_isRegisteredAttribute'](_0x3e4255['attributeKey'])&&_0x6b83b4['push']({'key':_0x3e4255['attributeKey'],'newValue':_0x3e4255['attributeNewValue'],'oldValue':_0x3e4255['attributeOldValue'],'range':Zt(_0x3e4255['range'],_0x221009['model'])});for(const _0x264963 of _0x1a43fa){if('rename'!=_0x264963['action']&&'refresh'!=_0x264963['action'])continue;const _0xb5d68d=tn(_0x264963['position']['nodeAfter'],_0x221009['model']),_0x4c654e=_0x264963['before'];'rename'==_0x264963['action']&&_0x6b83b4['push']({'key':m,'newValue':_0x264963['name'],'oldValue':_0x4c654e['name'],'range':_0xb5d68d});for(const [_0x2874f4,_0x418ed2]of _0x4c654e['attributes']){if(!this['_isRegisteredAttribute'](_0x2874f4))continue;const _0xe72f21=_0x264963['attributes']['get'](_0x2874f4);_0x418ed2!==_0xe72f21&&_0x6b83b4['push']({'key':_0x2874f4,'newValue':_0xe72f21,'oldValue':_0x418ed2,'range':_0xb5d68d});}for(const [_0x371ad5,_0x4e7132]of _0x264963['attributes'])this['_isRegisteredAttribute'](_0x371ad5)&&(_0x4c654e['attributes']['has'](_0x371ad5)||_0x6b83b4['push']({'key':_0x371ad5,'newValue':_0x4e7132,'oldValue':null,'range':_0xb5d68d}));}0x0!=_0x6b83b4['length']&&_0x221009['model']['enqueueChange'](_0xd95230,_0x1ab0ac=>{const _0x21b5f0=_0xcb588e();for(const {range:_0x5d622b,key:_0x39d4fe,oldValue:_0x5d030b,newValue:_0xa14494}of _0x6b83b4)this['markAttributeChange'](_0x5d622b,_0x39d4fe,_0x5d030b,_0xa14494,{'groupId':_0x21b5f0});this['_reduceExistingSuggestions'](_0x1ab0ac,_0x6b83b4);});},{'priority':'lowest'}),_0x221009['model']['markers']['on']('update:suggestion',(_0x127a98,_0x452c68,_0x373cd3)=>{if(null==_0x373cd3){const {id:_0x321a3a}=this['_splitMarkerName'](_0x452c68['name']),_0x2c0d73=this['_suggestions']['get'](_0x321a3a);_0x2c0d73&&_0x2c0d73['addMarkerName'](_0x452c68['name']);}}),_0x221009['model']['document']['on']('change:data',()=>{const _0x16ffa8=Array['from'](_0x221009['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3cd074=>'suggestion'===this['_splitMarkerName'](_0x3cd074['name'])['group']);if(0x0===_0x16ffa8['length'])return;_0x16ffa8['sort']((_0x48106d,_0x5cef47)=>{const _0x5428f2=_0x48106d['data']['oldRange'],_0x2593fe=_0x5cef47['data']['oldRange'];return null===_0x5428f2&&null===_0x2593fe?0x0:null===_0x5428f2&&null!==_0x2593fe?-0x1:null!==_0x5428f2&&null===_0x2593fe?0x1:_0x5428f2['start']['isBefore'](_0x2593fe['start'])?-0x1:0x1;});const _0x21d68f=new Set(),_0x506b18=new Set();for(const {name:_0x4d35ec,data:_0x8a722d}of _0x16ffa8){const {id:_0x24751f}=this['_splitMarkerName'](_0x4d35ec);if(null===_0x8a722d['oldRange']){const _0x42710f=this['_handleNewSuggestionMarker'](_0x4d35ec);_0x506b18['add'](_0x42710f);}else{const _0x7390da=this['_suggestions']['get'](_0x24751f);null!==_0x8a722d['newRange']||_0x7390da['isInContent']?(_0x21d68f['add'](_0x7390da['head']),_0x506b18['add'](_0x7390da)):this['_removeSuggestion'](_0x7390da);}}_0x506b18['size']>0x0&&this['_refreshSuggestionsChain'](_0x506b18);for(const _0x5d10ed of _0x21d68f)this['fire']('suggestionChanged',_0x5d10ed);}),_0x221009['model']['on']('applyOperation',(_0xb6b34e,_0x2e0f79)=>{const _0x1485ce=_0x2e0f79[0x0];if(!this['_suggestions']['size'])return;if(!_0x1485ce['isDocumentOperation'])return;if(_0x1485ce['batch']['isUndo']||!_0x1485ce['batch']['isLocal'])return;let _0x42a4ca,_0x5bbabf;switch(_0x1485ce['type']){case'insert':_0x42a4ca=_0x221009['model']['createPositionAt'](_0x1485ce['position']),_0x5bbabf=_0x42a4ca['getShiftedBy'](_0x1485ce['howMany']);break;case'split':_0x42a4ca=_0x221009['model']['createPositionAt'](_0x1485ce['splitPosition']),_0x5bbabf=_0x221009['model']['createPositionAt'](_0x1485ce['moveTargetPosition']);break;case'move':_0x42a4ca=_0x221009['model']['createPositionAt'](_0x1485ce['targetPosition']),_0x5bbabf=_0x42a4ca['getShiftedBy'](_0x1485ce['howMany']);break;default:return;}const _0x348c04=_0x221009['model']['createRange'](_0x42a4ca,_0x5bbabf);_0x221009['model']['change'](()=>{for(const {suggestion:_0x5a5b83,meta:_0x2ff17c}of this['_findSuggestions'](_0x348c04)){if(_0x5a5b83['isMultiRange'])continue;if('formatInline'==_0x5a5b83['type'])continue;const _0xb36a61=this['_getAttributeKey'](_0x5a5b83);if(_0xb36a61&&this['_isBlockAttribute'](_0xb36a61)&&'split'!=_0x1485ce['type'])continue;const _0x28ca0d=_0x5a5b83['data']&&_0x5a5b83['data']['multipleBlocks'];('formatBlock'!=_0x5a5b83['type']||'split'==_0x1485ce['type']&&!_0x28ca0d)&&(_0x2ff17c['containsRangeInObject']||'insertion'==_0x5a5b83['type']&&_0x2ff17c['isOwn']||_0x5a5b83['getFirstRange']()['containsRange'](_0x348c04)&&this['_breakSuggestionMarker'](_0x5a5b83,_0x42a4ca,_0x5bbabf));}});},{'priority':'lowest'}),_0x221009['model']['on']('deleteContent',(_0x3e7b31,_0x300635)=>{const _0x3cea0b=_0x300635[0x0],_0x33b3d5=_0x300635[0x1];if(_0x33b3d5&&_0x33b3d5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3cea0b['isCollapsed'])return;const _0x2cc4be=_0x221009['model']['schema'],{start:_0xceb577,end:_0x1cc644}=_0x3cea0b['getFirstRange'](),_0x1c7143=_0xceb577['nodeAfter']&&_0x2cc4be['isLimit'](_0xceb577['nodeAfter'])?null:_0x2cc4be['getNearestSelectionRange'](_0xceb577,'forward'),_0x43c3ad=_0x1cc644['nodeBefore']&&_0x2cc4be['isLimit'](_0x1cc644['nodeBefore'])?null:_0x2cc4be['getNearestSelectionRange'](_0x1cc644,'backward'),_0x453362=_0x221009['model']['createRange'](_0x1c7143?_0x1c7143['start']:_0xceb577,_0x43c3ad?_0x43c3ad['end']:_0x1cc644);_0x221009['model']['change'](_0x4920de=>{this['markDeletion'](_0x453362);const _0x4bc1d8=_0x221009['model']['schema']['getNearestSelectionRange'](_0x453362['start']);_0x3cea0b['is']('documentSelection')?_0x4920de['setSelection'](_0x4bc1d8):_0x3cea0b['setTo'](_0x4bc1d8);}),_0x3e7b31['stop']();},{'priority':_0x104c24['normal']+0xa}),_0x221009['model']['on']('insertContent',(_0x2d1d0f,_0x41ca76)=>{const _0x7e47aa=_0x41ca76[_0x41ca76['length']-0x1];_0x7e47aa&&_0x7e47aa['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x221009['model']['change'](()=>{let _0x4c4ab6=_0x221009['model']['insertContent'](_0x41ca76[0x0],_0x41ca76[0x1],_0x41ca76[0x2],{'forceDefaultExecution':!0x0});if(!_0x4c4ab6)return;_0x2d1d0f['return']=_0x4c4ab6['clone']();const _0x4362e0=_0x4c4ab6['end']['nodeBefore'],_0x2aaa8b=_0x221009['model']['schema'];_0x4362e0&&_0x2aaa8b['isBlock'](_0x4362e0)&&!_0x2aaa8b['isObject'](_0x4362e0)&&(_0x4c4ab6=_0x221009['model']['createRange'](_0x4c4ab6['start'],_0x221009['model']['createPositionAt'](_0x4362e0,'end'))),this['markInsertion'](_0x4c4ab6);}),_0x2d1d0f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5c8ae3=new v(_0x221009,this['_suggestions']);_0x221009['commands']['add']('acceptSuggestion',_0x5c8ae3),this['enableCommand']('acceptSuggestion');const _0x51126d=new D(_0x221009,this['_suggestions']);_0x221009['commands']['add']('discardSuggestion',_0x51126d),this['enableCommand']('discardSuggestion'),_0x221009['commands']['add']('acceptAllSuggestions',new B(_0x221009,_0x5c8ae3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x221009['commands']['add']('discardAllSuggestions',new B(_0x221009,_0x51126d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x221009['commands']['add']('acceptSelectedSuggestions',new O(_0x221009,_0x5c8ae3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x221009['commands']['add']('discardSelectedSuggestions',new O(_0x221009,_0x51126d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3b8494=_0x221009['plugins']['get']('CommentsRepository');this['listenTo'](_0x3b8494,'addComment',(_0x17fc8d,{threadId:_0x3afab5})=>{const _0x3e9b44=this['_suggestions']['get'](_0x3afab5);_0x3e9b44&&_0x3e9b44['commentThread']&&0x1===_0x3e9b44['commentThread']['length']&&this['_updateSuggestionData'](_0x3afab5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3b8494,'removeComment',(_0x152c79,{threadId:_0x828b65})=>{const _0xc6aa98=this['_suggestions']['get'](_0x828b65);_0xc6aa98&&_0xc6aa98['commentThread']&&!_0xc6aa98['commentThread']['length']&&this['_updateSuggestionData'](_0x828b65,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x49a191){const _0x11b14e=_0x5f49dc([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]),_0x41a377=0x3d8d0df,_0x325194=0x3dfaaa7^_0x41a377,_0x21a789=window[_0x5f49dc([0x44,0x61,0x74,0x65])][_0x5f49dc([0x6e,0x6f,0x77])](),_0x2491a9=_0x49a191[_0x5f49dc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x103f44=new window[(_0x5f49dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xad502c=>{_0x2491a9[_0x5f49dc([0x6f,0x6e,0x63,0x65])](_0x5f49dc([0x72,0x65,0x61,0x64,0x79]),_0xad502c);}),_0x1352a8={[_0x5f49dc([0x6b,0x74,0x79])]:_0x5f49dc([0x45,0x43]),[_0x5f49dc([0x75,0x73,0x65])]:_0x5f49dc([0x73,0x69,0x67]),[_0x5f49dc([0x63,0x72,0x76])]:_0x5f49dc([0x50,0x2d,0x32,0x35,0x36]),[_0x5f49dc([0x78])]:_0x5f49dc([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]),[_0x5f49dc([0x79])]:_0x5f49dc([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]),[_0x5f49dc([0x61,0x6c,0x67])]:_0x5f49dc([0x45,0x53,0x32,0x35,0x36])},_0x4a0829=_0x2491a9[_0x5f49dc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f49dc([0x67,0x65,0x74])](_0x5f49dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x392eb2(){let _0x332f0b,_0x2b6797=null,_0x412aaf=null;try{if(_0x4a0829==_0x5f49dc([0x47,0x50,0x4c]))return _0x5f49dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x332f0b=_0x3d9823(),!_0x332f0b)return _0x5f49dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x332f0b[_0x5f49dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x412aaf=_0x370484(_0x332f0b[_0x5f49dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x332f0b[_0x5f49dc([0x6a,0x74,0x69])])),await _0x508092()?_0x493338()?_0x539451()?_0x5f49dc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3ecbf9()?(_0x332f0b[_0x5f49dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f49dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2b6797=_0x7587d9(_0x5f49dc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x332f0b[_0x5f49dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f49dc([0x74,0x72,0x69,0x61,0x6c])&&(_0x2b6797=_0x7587d9(_0x5f49dc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1cd738()):_0x5f49dc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f49dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f49dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5f49dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x539451(){const _0x4b80a6=[_0x5f49dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f49dc([0x74,0x72,0x69,0x61,0x6c])][_0x5f49dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332f0b[_0x5f49dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x21a789/0x3e8:0xe10*_0x325194;return _0x332f0b[_0x5f49dc([0x65,0x78,0x70])]<_0x4b80a6;}function _0x493338(){const _0x52ebdd=_0x332f0b[_0x5f49dc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x52ebdd)return!0x1;if(_0x52ebdd[_0x5f49dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49dc([0x2a])))return!0x0;if(_0x52ebdd[_0x5f49dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49dc([0x54,0x43])))return!0x0;if(_0x52ebdd[_0x5f49dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49dc([0x52,0x54,0x43]))){if(_0x321e00())return!0x0;if(_0x53dfe1()||_0x2cb541())return!0x0;}return!0x1;}function _0x3ecbf9(){const _0x178bb4=_0x332f0b[_0x5f49dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x178bb4||0x0==_0x178bb4[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17e8a7}=new URL(window[_0x5f49dc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x178bb4[_0x5f49dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17e8a7))return!0x0;const _0xa8f46=_0x17e8a7[_0x5f49dc([0x73,0x70,0x6c,0x69,0x74])](_0x5f49dc([0x2e]));return _0x178bb4[_0x5f49dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14e7a2=>_0x14e7a2[_0x5f49dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49dc([0x2a])))[_0x5f49dc([0x6d,0x61,0x70])](_0x28b978=>_0x28b978[_0x5f49dc([0x73,0x70,0x6c,0x69,0x74])](_0x5f49dc([0x2e])))[_0x5f49dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1006cc=>_0x1006cc[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa8f46[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5f49dc([0x6d,0x61,0x70])](_0x429387=>Array(_0xa8f46[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x429387[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5f49dc([0x66,0x69,0x6c,0x6c])](_0x429387[0x0]===_0x5f49dc([0x2a])?_0x5f49dc([0x2a]):'')[_0x5f49dc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x429387))[_0x5f49dc([0x73,0x6f,0x6d,0x65])](_0x3a61de=>_0xa8f46[_0x5f49dc([0x65,0x76,0x65,0x72,0x79])]((_0x397a82,_0x1b1c35)=>_0x3a61de[_0x1b1c35]===_0x397a82||_0x3a61de[_0x1b1c35]===_0x5f49dc([0x2a])));}function _0x1cd738(){return _0x2b6797&&_0x412aaf?new window[(_0x5f49dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdcde74,_0x1de755)=>{_0x2b6797[_0x5f49dc([0x74,0x68,0x65,0x6e])](_0xdcde74,_0x1de755),_0x412aaf[_0x5f49dc([0x74,0x68,0x65,0x6e])](_0x62a681=>{_0x62a681!=_0x5f49dc([0x56,0x61,0x6c,0x69,0x64])&&_0xdcde74(_0x62a681);},_0x1de755);}):_0x2b6797||_0x412aaf||_0x5f49dc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x370484(_0x234c09,_0xd780ae){return new window[(_0x5f49dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ebf3d=>{if(_0x5f3bd9())return _0x4ebf3d(_0x5f49dc([0x56,0x61,0x6c,0x69,0x64]));_0x3a497e(),_0x2491a9[_0x5f49dc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f49dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5ac7f6=!0x1;const _0x3f34db=_0xcb588e();function _0x3c07ed(_0x41170f){return!!_0x41170f&&(typeof _0x41170f===_0x5f49dc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41170f===_0x5f49dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41170f[_0x5f49dc([0x74,0x68,0x65,0x6e])]===_0x5f49dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41170f[_0x5f49dc([0x63,0x61,0x74,0x63,0x68])]===_0x5f49dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f014b(_0x450fcf){_0x4d515c(_0x450fcf)[_0x5f49dc([0x74,0x68,0x65,0x6e])](_0x10d4f2=>{if(!_0x10d4f2||_0x10d4f2[_0x5f49dc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f49dc([0x6f,0x6b]))return _0x5f49dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ddd99(_0x44fb14(_0x3f34db+_0xd780ae))!=_0x10d4f2[_0x5f49dc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f49dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f49dc([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f49dc([0x74,0x68,0x65,0x6e])](_0x4f7695=>(_0x7b65e8(),_0x4f7695),()=>{const _0x223d89=_0x2b1abc();return null==_0x223d89?(_0x7b65e8(),_0x5f49dc([0x56,0x61,0x6c,0x69,0x64])):_0x5f49dc(_0x21a789-_0x223d89>(0x27d454df^_0x41a377)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f49dc([0x74,0x68,0x65,0x6e])](_0x4ebf3d)[_0x5f49dc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ebf3d(_0x5f49dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36966b=0x3ee3e5f^_0x41a377;function _0x7b65e8(){const _0x4f4692=_0x5f49dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ddd99(_0x44fb14(_0x234c09)),_0x43cada=_0x291d5b(_0x4ddd99(window[_0x5f49dc([0x4d,0x61,0x74,0x68])][_0x5f49dc([0x63,0x65,0x69,0x6c])](_0x21a789/_0x36966b)));window[_0x5f49dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f49dc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f4692,_0x43cada);}function _0x2b1abc(){const _0x5e1c63=_0x5f49dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ddd99(_0x44fb14(_0x234c09)),_0x1287ca=window[_0x5f49dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f49dc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e1c63);return _0x1287ca?window[_0x5f49dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x291d5b(_0x1287ca),0x10)*_0x36966b:null;}function _0x4d515c(_0x18846e){return new window[(_0x5f49dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37f086,_0x311ce6)=>{_0x18846e[_0x5f49dc([0x74,0x68,0x65,0x6e])](_0x37f086,_0x311ce6),window[_0x5f49dc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x311ce6,0x3d9041f^_0x41a377);});}}_0x2491a9[_0x5f49dc([0x6f,0x6e])](_0x5f49dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x246ac6,_0x406031)=>{if(_0x406031[0x0]!=_0x234c09)return _0x4ebf3d(_0x5f49dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x406031[0x1]={..._0x406031[0x1],[_0x5f49dc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f34db};},{[_0x5f49dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f49dc([0x68,0x69,0x67,0x68])}),_0x2491a9[_0x5f49dc([0x6f,0x6e])](_0x5f49dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57768e=>{_0x3c07ed(_0x57768e[_0x5f49dc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5ac7f6=!0x0,_0x1f014b(_0x57768e[_0x5f49dc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f49dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f49dc([0x6c,0x6f,0x77])}),_0x103f44[_0x5f49dc([0x74,0x68,0x65,0x6e])](()=>{_0x5ac7f6||_0x4ebf3d(_0x5f49dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5f3bd9(){return _0x2491a9[_0x5f49dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f49dc([0x76,0x69,0x65,0x77])][_0x5f49dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f49dc([0x61,0x75,0x74,0x6f]);}function _0x3a497e(){_0x2491a9[_0x5f49dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f49dc([0x76,0x69,0x65,0x77])][_0x5f49dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f49dc([0x61,0x75,0x74,0x6f]);}}function _0x7587d9(_0x374e66){const _0x677e2c=[new window[(_0x5f49dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x410401=>setTimeout(_0x410401,0x3d1ee13^_0x41a377)),_0x103f44[_0x5f49dc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f49dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3394d0=>{let _0x27dd09=0x0;_0x2491a9[_0x5f49dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f49dc([0x6f,0x6e])](_0x5f49dc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3cdb45,_0x23e540)=>{_0x23e540[0x0][_0x5f49dc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x27dd09++,_0x27dd09==(0x3d8d127^_0x41a377)&&(_0x3394d0(),_0x3cdb45[_0x5f49dc([0x6f,0x66,0x66])]());});}))];return window[_0x5f49dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f49dc([0x72,0x61,0x63,0x65])](_0x677e2c)[_0x5f49dc([0x74,0x68,0x65,0x6e])](()=>_0x374e66);}async function _0x3c833a(){await _0x103f44,_0x2491a9[_0x5f49dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f49dc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x290764,_0x2491a9[_0x5f49dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f49dc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x290764,_0x2491a9[_0x5f49dc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f49dc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x321e00(){return _0x3b412e(_0x5f49dc([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x54e7e5(_0x5f49dc([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5f49dc([0x73,0x74,0x61,0x74,0x65])]==_0x5f49dc([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x53dfe1(){return _0x3b412e(_0x5f49dc([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 _0x2cb541(){return _0x3b412e(_0x5f49dc([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x31b042(_0x1139cf){const _0x5c91bb=_0x45cee4();_0x2491a9[_0x5c91bb]=_0x5f49dc([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1139cf,_0x1139cf!=_0x5f49dc([0x56,0x61,0x6c,0x69,0x64])&&_0x3c833a();}function _0x45cee4(){const _0x3dadda=window[_0x5f49dc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f49dc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f49dc([0x6e,0x6f,0x77])]())[_0x5f49dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f49dc([0x2e]),'');let _0x272111=_0x5f49dc([0x52]);for(let _0x2eac4a=0x0;_0x2eac4a<_0x3dadda[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2eac4a+=0x2){let _0x29eb59=window[_0x5f49dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dadda[_0x5f49dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2eac4a,_0x2eac4a+0x2));_0x29eb59>=_0x11b14e[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29eb59-=_0x11b14e[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x272111+=_0x11b14e[_0x29eb59];}return _0x272111;}function _0x3d9823(){const _0x1a90c6=_0x4a0829[_0x5f49dc([0x73,0x70,0x6c,0x69,0x74])](_0x5f49dc([0x2e]));if(0x3!=_0x1a90c6[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ee452(_0x1a90c6[0x1]);function _0x2ee452(_0x172900){const _0x150e09=_0x4184fb(_0x172900);return _0x150e09&&_0x5ba6a4()?_0x150e09:null;function _0x5ba6a4(){const _0x449cf7=_0x150e09[_0x5f49dc([0x6a,0x74,0x69])],_0x20a66c=window[_0x5f49dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x449cf7[_0x5f49dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x449cf7[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b8eb9={..._0x150e09,[_0x5f49dc([0x6a,0x74,0x69])]:_0x449cf7[_0x5f49dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x449cf7[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b8eb9[_0x5f49dc([0x76,0x63])],_0x44fb14(_0x1b8eb9)==_0x20a66c;}}}async function _0x508092(){let _0x449c08=!0x0;try{const _0x3cc590=_0x4a0829[_0x5f49dc([0x73,0x70,0x6c,0x69,0x74])](_0x5f49dc([0x2e])),[_0x64a349,_0x554215,_0x37960b]=_0x3cc590;return _0x2ec3f5(_0x64a349),await _0x114391(_0x64a349,_0x554215,_0x37960b),_0x449c08;}catch{return!0x1;}function _0x2ec3f5(_0x58c188){const _0x12e126=_0x4184fb(_0x58c188);_0x12e126&&_0x12e126[_0x5f49dc([0x61,0x6c,0x67])]==_0x5f49dc([0x45,0x53,0x32,0x35,0x36])||(_0x449c08=!0x1);}async function _0x114391(_0x37dd4a,_0x2514df,_0x30c116){const _0x8cc34a=window[_0x5f49dc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f49dc([0x66,0x72,0x6f,0x6d])](_0x3053b1(_0x30c116),_0x49de47=>_0x49de47[_0x5f49dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x374d6c=new window[(_0x5f49dc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f49dc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x37dd4a+_0x5f49dc([0x2e])+_0x2514df),_0x4940f4=window[_0x5f49dc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f49dc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4940f4)return;const _0x3cc727=await _0x4940f4[_0x5f49dc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f49dc([0x6a,0x77,0x6b]),_0x1352a8,{[_0x5f49dc([0x6e,0x61,0x6d,0x65])]:_0x5f49dc([0x45,0x43,0x44,0x53,0x41]),[_0x5f49dc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f49dc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f49dc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4940f4[_0x5f49dc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f49dc([0x6e,0x61,0x6d,0x65])]:_0x5f49dc([0x45,0x43,0x44,0x53,0x41]),[_0x5f49dc([0x68,0x61,0x73,0x68])]:{[_0x5f49dc([0x6e,0x61,0x6d,0x65])]:_0x5f49dc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3cc727,_0x8cc34a,_0x374d6c)||(_0x449c08=!0x1);}}function _0x4184fb(_0x4fab30){return _0x4fab30[_0x5f49dc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f49dc([0x65,0x79]))?JSON[_0x5f49dc([0x70,0x61,0x72,0x73,0x65])](_0x3053b1(_0x4fab30)):null;}function _0x3053b1(_0x591652){return window[_0x5f49dc([0x61,0x74,0x6f,0x62])](_0x591652[_0x5f49dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f49dc([0x2b]))[_0x5f49dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f49dc([0x2f])));}function _0x44fb14(_0x2c4d4d){let _0x504a2e=0x1505;function _0x4254fc(_0x56191e){for(let _0x507b97=0x0;_0x507b97<_0x56191e[_0x5f49dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x507b97++){const _0x468f0d=_0x56191e[_0x5f49dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x507b97);_0x504a2e=(_0x504a2e<<0x5)+_0x504a2e+_0x468f0d,_0x504a2e&=_0x504a2e;}}function _0x2c3822(_0x3e633a){Array[_0x5f49dc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e633a)?_0x3e633a[_0x5f49dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c3822):_0x3e633a&&typeof _0x3e633a==_0x5f49dc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f49dc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e633a)[_0x5f49dc([0x73,0x6f,0x72,0x74])]()[_0x5f49dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4dbe56,_0x30263e])=>{_0x4254fc(_0x4dbe56),_0x2c3822(_0x30263e);}):_0x4254fc(window[_0x5f49dc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e633a));}return _0x2c3822(_0x2c4d4d),_0x504a2e>>>0x0;}function _0x4ddd99(_0x160467){return _0x160467[_0x5f49dc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f49dc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f49dc([0x30]));}function _0x291d5b(_0xb4fec9){return _0xb4fec9[_0x5f49dc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f49dc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f49dc([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b412e(_0x56b848){return _0x2491a9[_0x5f49dc([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f49dc([0x68,0x61,0x73])](_0x56b848);}function _0x54e7e5(_0x4a77bb){return _0x2491a9[_0x5f49dc([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f49dc([0x67,0x65,0x74])](_0x4a77bb);}function _0x290764(){}function _0x5f49dc(_0xc157de){return _0xc157de['map'](_0x322e3e=>String['fromCharCode'](_0x322e3e))['join']('');}_0x31b042(await _0x392eb2());}(this);}set['adapter'](_0x5abb14){if(this['_adapter'])throw new _0x46a289('track-changes-adapter-already-set',this);this['_adapter']=_0x5abb14;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xe12ada=!0x1,toJSON:_0x1ba7ef=!0x1}={}){const _0x1a24ea=[];for(const _0xd79574 of this['_suggestions']['values']())_0xe12ada&&!_0xd79574['isInContent']||_0x1a24ea['push'](_0xd79574);return _0x1ba7ef?_0x1a24ea['map'](_0x164e86=>_0x164e86['toJSON']()):_0x1a24ea;}['getSuggestion'](_0x2671bb){const _0x436a88=this['_suggestions']['get'](_0x2671bb);if(!_0x436a88)throw new _0x46a289('track-changes-suggestion-not-found',this);return _0x436a88;}['hasSuggestion'](_0xfa71a4){return this['_suggestions']['has'](_0xfa71a4);}['addSuggestionData'](_0xe8eb3a){const {authorId:_0x3e2dc2,id:_0x3f1d90,originalSuggestionId:_0x1b7225,attributes:_0x5b0c36}=_0xe8eb3a,[_0x4defb5,_0x1a5d2d]=_0xe8eb3a['type']['split'](':'),_0x559298=this['_suggestions']['get'](_0x3f1d90)||this['_createSuggestion'](_0x4defb5,_0x1a5d2d,_0x3f1d90,_0x3e2dc2,_0x5b0c36,_0x1b7225);if(this['_addThreadToSuggestion'](_0x559298),this['_checkSuggestionCorrectness'](_0x559298,_0x4defb5,_0x1a5d2d||null,_0x3e2dc2),_0x559298['createdAt']=_0xe8eb3a['createdAt'],_0x559298['_isDataLoaded']=!0x0,_0x5b0c36&&_0x5b0c36['@external']){const _0xa46bcc=_0x5b0c36['@external'],_0x1d0e35=this['_getExternalAuthor'](_0xa46bcc['authorName']);_0x559298['authoredAt']=_0xa46bcc['createdAt'],_0x559298['author']=_0x1d0e35,_0x559298['isExternal']=!0x0;}else _0x559298['authoredAt']=_0xe8eb3a['createdAt'];switch(_0xe8eb3a['data']&&(_0x559298['data']=_0xe8eb3a['data']),_0xe8eb3a['attributes']&&(_0x559298['attributes']=_0xe8eb3a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x559298['_saved']=!0x0),this['_suggestionState']['get'](_0x559298)){case'notReady':this['_suggestionState']['set'](_0x559298,'dataReady');break;case'markerReady':_0x559298['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x559298])),this['_refreshSuggestionsChain'](new Set([_0x559298])),this['_suggestionState']['set'](_0x559298,'ready'),this['fire']('suggestionLoaded',_0x559298)):this['_suggestionState']['set'](_0x559298,'removed');}return _0x559298;}['acceptSuggestion'](_0x3b4e18){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x476579 of _0x3b4e18['getAllAdjacentSuggestions']())_0x476579['accept']();});});}['discardSuggestion'](_0x7eff0e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf49c48 of _0x7eff0e['getAllAdjacentSuggestions']())_0xf49c48['discard']();});});}['enableCommand'](_0x4d4994,_0x19436a){const _0x1de47a=this['editor']['commands']['get'](_0x4d4994);if(!_0x1de47a)throw new _0x46a289('track-changes-command-not-found',this,{'commandName':_0x4d4994});if(this['_enabledCommands']['has'](_0x1de47a))throw new _0x46a289('track-changes-enable-command-twice',this,{'commandName':_0x4d4994});this['_enabledCommands']['add'](_0x1de47a),_0x19436a&&_0x1de47a['on']('execute',(_0x4a5b0d,_0x418dbc)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x418dbc['length']>0x0&&_0x418dbc[_0x418dbc['length']-0x1]&&_0x418dbc[_0x418dbc['length']-0x1]['forceDefaultExecution']?_0x418dbc['pop']():(_0x4a5b0d['return']=_0x19436a((..._0x33172d)=>_0x1de47a['execute'](..._0x33172d,{'forceDefaultExecution':!0x0}),..._0x418dbc),_0x4a5b0d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2a0b4b){let _0x579628,_0x1b1ffc;const _0x124810=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x579628=_0x2a0b4b();}catch(_0xfa3c29){_0x1b1ffc=_0xfa3c29;}return _0x124810||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1b1ffc&&_0x46a289['rethrowUnexpectedError'](_0x1b1ffc,this),_0x579628;}['markInsertion'](_0x259477,_0x9fd4bf=null,_0x12f5d8={}){if(_0x259477['isCollapsed'])return null;const _0x59de3a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x12f5d8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5cd000,meta:_0x1adc4b}of this['_findSuggestions'](_0x259477,'insertion'))if(_0x1adc4b['isOwn']){if(!_0x1adc4b['isNextTo']){if(_0x1adc4b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x5cd000,_0x12f5d8))continue;return _0x5cd000;}if(sn(_0x5cd000,_0x12f5d8))return _0x5cd000;this['_breakSuggestionMarker'](_0x5cd000,_0x259477['start'],_0x259477['end']);break;}if(_0x9fd4bf==_0x5cd000['subType']&&sn(_0x5cd000,_0x12f5d8)){const _0x3a00af=_0x5cd000['getFirstRange']();return _0x3a00af['start']['isEqual'](_0x259477['end'])?this['_setSuggestionRange'](_0x5cd000,this['_model']['createRange'](_0x259477['start'],_0x3a00af['end'])):this['_setSuggestionRange'](_0x5cd000,this['_model']['createRange'](_0x3a00af['start'],_0x259477['end'])),_0x5cd000;}}const _0x3d86e3=_0xcb588e(),_0x23024f=_0x59de3a['id'],_0x2cff54=_0x9fd4bf?'insertion:'+_0x9fd4bf:'insertion',_0x151083=this['_setSuggestionData']({'id':_0x3d86e3,'type':_0x2cff54,'createdAt':new Date(),'authorId':_0x23024f,'attributes':_0x12f5d8});return this['_addSuggestionMarker'](_0x2cff54,_0x3d86e3,_0x23024f,_0x259477),_0x151083;}['markMultiRangeInsertion'](_0x3dd221,_0x4d5e4f='multi',_0x158406={}){const _0x2b5e20=this['editor']['plugins']['get']('Users')['me'],_0x63d72b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4d5e4f,'join');this['_trackingSessionId']&&(_0x158406['trackingSessionId']=this['_trackingSessionId']);for(const _0x558481 of this['getSuggestions']())if(_0x558481['author']['id']==_0x2b5e20['id']&&'insertion'==_0x558481['type']&&_0x558481['subType']==_0x4d5e4f&&sn(_0x558481,_0x158406)&&(_0x63d72b(_0x558481['getRanges'](),_0x3dd221)||_0x63d72b(_0x3dd221,_0x558481['getRanges']()))){for(const _0x4eff07 of _0x3dd221)_0x558481['addRange'](_0x4eff07);return _0x558481;}for(const {suggestion:_0x4b4eb0,meta:_0x786f65}of this['_findSuggestions'](_0x3dd221,'insertion')){if(!_0x786f65['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x786f65['containsRangeInObject'])continue;if(!sn(_0x4b4eb0,_0x158406))continue;let _0x67e945=!0x0;for(const _0x19f57c of _0x4b4eb0['getRanges']())for(const _0x1137bb of _0x3dd221)if(!_0x19f57c['containsRange'](_0x1137bb)){_0x67e945=!0x1;break;}if(_0x67e945)return _0x4b4eb0;}const _0x123050=_0xcb588e(),_0x201037=_0x2b5e20['id'],_0x1e15be='insertion:'+_0x4d5e4f,_0x2a515f=this['_setSuggestionData']({'id':_0x123050,'type':_0x1e15be,'createdAt':new Date(),'authorId':_0x201037,'attributes':_0x158406});for(const _0x2adb2d of _0x3dd221)this['_addSuggestionMarker'](_0x1e15be,_0x123050,_0x201037,_0x2adb2d,x['getMultiRangeId']());return _0x2a515f;}['markInlineFormat'](_0xa2b7e5,_0x349685,_0x1842f1=null,_0x22e446={}){if(_0x1842f1=_0x1842f1||Ht(_0x349685),_0xa2b7e5['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x22e446['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1ff110=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1842f1,'accept');return this['forceDefaultExecution'](()=>_0x1ff110([_0xa2b7e5],_0x349685,_0x22e446)),null;}const _0x260256=this['editor']['plugins']['get']('Users')['me'],_0x5e4b00=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3ba6bd,meta:_0x179ef1}of this['_findSuggestions'](_0xa2b7e5,'insertion'))_0x179ef1['isOwn']&&!_0x179ef1['isInsideObject']&&_0x5e4b00['push'](..._0x3ba6bd['getRanges']());}const _0x23f026=function(_0x546ac2,_0x57092b){const _0x533643=[];for(const _0xae29f9 of _0x57092b){const _0x277595=_0x546ac2['getIntersection'](_0xae29f9);_0x277595&&_0x533643['push'](_0x277595);}return _0x533643;}(_0xa2b7e5,_0x5e4b00),_0x1488e1=function(_0x44cdc3,_0x368933){const _0x24c5d4=[_0x44cdc3];for(const _0x3a9d44 of _0x368933){let _0xd91cd6=0x0;for(;_0xd91cd6<_0x24c5d4['length'];){const _0x17e8b1=_0x24c5d4[_0xd91cd6]['getDifference'](_0x3a9d44);_0x24c5d4['splice'](_0xd91cd6,0x1,..._0x17e8b1),_0xd91cd6+=_0x17e8b1['length'];}}return _0x24c5d4;}(_0xa2b7e5,_0x5e4b00);_0x23f026['length']&&this['_model']['change'](()=>{for(const _0x2db17f of _0x23f026){const _0x2930ca=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1842f1,'accept');this['forceDefaultExecution'](()=>_0x2930ca([_0x2db17f],_0x349685,_0x22e446));}});for(const _0x4788ba of _0x1488e1){let _0x34b0f7=null,_0x3e1006=_0x4788ba['start'],_0x1bc4e4=_0x4788ba['end'];for(const {suggestion:_0x2e2e2a,meta:_0x4d4c56}of this['_findSuggestions'](_0x4788ba,'formatInline')){if(!_0x4d4c56['isOwn'])continue;if(_0x2e2e2a['subType']!=_0x1842f1)continue;if(!sn(_0x2e2e2a,_0x22e446))continue;const _0x4c70b3=_0x2e2e2a['getFirstRange']();if(_0x4c70b3['containsRange'](_0x4788ba,!0x0))return null;_0x3e1006=_0x3e1006['isBefore'](_0x4c70b3['start'])?_0x3e1006:_0x4c70b3['start'],_0x1bc4e4=_0x1bc4e4['isAfter'](_0x4c70b3['end'])?_0x1bc4e4:_0x4c70b3['end'],_0x34b0f7?_0x4c70b3['start']['isBefore'](_0x34b0f7['getFirstRange']()['start'])?(_0x34b0f7['removeMarkers'](),_0x34b0f7=_0x2e2e2a):_0x2e2e2a['removeMarkers']():_0x34b0f7=_0x2e2e2a;}const _0x5883a1=this['_model']['createRange'](_0x3e1006,_0x1bc4e4);if(_0x34b0f7)this['_setSuggestionRange'](_0x34b0f7,_0x5883a1);else{const _0x4cfb06=_0xcb588e(),_0x318abb=_0x260256['id'];this['_setSuggestionData']({'id':_0x4cfb06,'type':'formatInline:'+_0x1842f1,'data':_0x349685,'createdAt':new Date(),'authorId':_0x318abb,'attributes':_0x22e446}),this['_addSuggestionMarker']('formatInline:'+_0x1842f1,_0x4cfb06,_0x318abb,_0x5883a1);}}return null;}['markBlockFormat'](_0x325cde,_0x308513,_0x4e6f78=[],_0x28bd4f=null,_0x460ef9={}){_0x308513['formatGroupId']||(_0x308513['formatGroupId']=_0x308513['commandName']),_0x308513['multipleBlocks']=_0x325cde['is']('range'),_0x28bd4f=_0x28bd4f||Ht(_0x308513);const _0x3a71e9=_0x4e6f78['map'](_0x439d9e=>tn(_0x439d9e,this['_model'])),_0x28aac1=_0x325cde['is']('range')?_0x325cde:tn(_0x325cde,this['_model']);if(this['_trackingSessionId']&&(_0x460ef9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1c0ec7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28bd4f,'accept');return this['forceDefaultExecution'](()=>_0x1c0ec7([_0x28aac1],_0x308513,_0x460ef9)),null;}_0x3a71e9['push'](_0x28aac1);let _0x5f5ab4=!0x0;for(const _0x1c52ff of _0x3a71e9)if(!this['_rangeIsInLocalUserInsertion'](_0x1c52ff)){_0x5f5ab4=!0x1;break;}if(_0x5f5ab4&&'always'!==this['_trackFormatChanges']){const _0x13ce83=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28bd4f,'accept');return this['forceDefaultExecution'](()=>_0x13ce83([_0x28aac1],_0x308513,_0x460ef9)),null;}let _0x4e2848=null,_0x53579d=_0x28aac1['start'],_0xeefb81=_0x28aac1['end'];for(const {suggestion:_0x4777e9,meta:_0x290467}of this['_findSuggestions'](_0x28aac1,'formatBlock')){if(!_0x290467['isOwn'])continue;if(_0x290467['isNextTo']||_0x290467['containsRangeInObject']||_0x290467['isInsideObject'])continue;if(_0x4777e9['data']['formatGroupId']!=_0x308513['formatGroupId'])continue;if(!sn(_0x4777e9,_0x460ef9))continue;const _0x4107b3=_0x4777e9['getFirstRange']();if(_0x4777e9['subType']==_0x28bd4f){if(_0x4107b3['containsRange'](_0x28aac1,!0x0))return null;_0x53579d=_0x53579d['isBefore'](_0x4107b3['start'])?_0x53579d:_0x4107b3['start'],_0xeefb81=_0xeefb81['isAfter'](_0x4107b3['end'])?_0xeefb81:_0x4107b3['end'],_0x4e2848?_0x4107b3['start']['isBefore'](_0x4e2848['getFirstRange']()['start'])?(_0x4e2848['removeMarkers'](),_0x4e2848=_0x4777e9):_0x4777e9['removeMarkers']():_0x4e2848=_0x4777e9;}else{const _0x526821=_0x28aac1['getIntersection'](_0x4107b3);this['_cutOutSuggestionMarker'](_0x4777e9,_0x526821);}}const _0xa45cbf=this['editor']['plugins']['get']('Users')['me'],_0x492e26=_0xcb588e(),_0x956dcf=_0xa45cbf['id'];if(_0x4e2848)return this['_setSuggestionRange'](_0x4e2848,this['_model']['createRange'](_0x53579d,_0xeefb81)),_0x4e2848;{const _0x55e44d=this['_setSuggestionData']({'id':_0x492e26,'type':'formatBlock:'+_0x28bd4f,'data':_0x308513,'createdAt':new Date(),'authorId':_0x956dcf,'attributes':_0x460ef9});return this['_addSuggestionMarker']('formatBlock:'+_0x28bd4f,_0x492e26,_0x956dcf,this['_model']['createRange'](_0x53579d,_0xeefb81)),_0x55e44d;}}['markMultiRangeBlockFormat'](_0x120e1c,_0xfd1dfb,_0x2e4fa7=[],_0x16384a=null,_0xd1b87f={}){_0xfd1dfb['formatGroupId']||(_0xfd1dfb['formatGroupId']=_0xfd1dfb['commandName']);const _0x4e3cfb=_0x120e1c[0x0];_0xfd1dfb['multipleBlocks']=_0x4e3cfb['is']('range'),_0x16384a=_0x16384a||Ht(_0xfd1dfb);const _0x2523ea=_0x2e4fa7['map'](_0x2a6737=>tn(_0x2a6737,this['_model'])),_0xa1b8bc=_0x4e3cfb['is']('range')?_0x120e1c:_0x120e1c['map'](_0x24ca0d=>tn(_0x24ca0d,this['_model']));if(this['_trackingSessionId']&&(_0xd1b87f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1f4028=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16384a,'accept');return this['forceDefaultExecution'](()=>_0x1f4028(_0xa1b8bc,_0xfd1dfb,_0xd1b87f)),null;}_0x2523ea['push'](..._0xa1b8bc);let _0x286cdb=!0x0;for(const _0x36275d of _0x2523ea)if(!this['_rangeIsInLocalUserInsertion'](_0x36275d)){_0x286cdb=!0x1;break;}if(_0x286cdb&&'always'!==this['_trackFormatChanges']){const _0x4c74e2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16384a,'accept');return this['forceDefaultExecution'](()=>_0x4c74e2(_0xa1b8bc,_0xfd1dfb,_0xd1b87f)),null;}const _0x91815c=this['editor']['plugins']['get']('Users')['me'];for(const _0x542877 of this['getSuggestions']()){const _0x3eb162=_0x542877['data'];if(_0x542877['author']['id']!=_0x91815c['id'])continue;if('formatBlock'!=_0x542877['type']||_0x3eb162['formatGroupId']!=_0xfd1dfb['formatGroupId'])continue;if(!sn(_0x542877,_0xd1b87f))continue;const _0x34ca87=_0x542877['subType']==_0x16384a;for(let _0xaea0c1=0x0;_0xaea0c1<_0xa1b8bc['length'];_0xaea0c1++){const _0x2e02d7=_0xa1b8bc[_0xaea0c1];for(const _0x18d1aa of _0x542877['getMarkers']()){const _0x4ac162=_0x18d1aa['getRange']();if(_0x2e02d7['isEqual'](_0x4ac162)){_0x34ca87?(_0xa1b8bc['splice'](_0xaea0c1,0x1),_0xaea0c1--):_0x542877['removeMarker'](_0x18d1aa['name']);break;}}}}if(0x0==_0xa1b8bc['length'])return null;const _0x39f3b9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16384a,'join');for(const _0x30d637 of this['getSuggestions']()){const _0x460bc5=_0x30d637['data'];if(_0x30d637['author']['id']==_0x91815c['id']&&('formatBlock'==_0x30d637['type']&&_0x460bc5['formatGroupId']==_0xfd1dfb['formatGroupId']&&_0x30d637['subType']==_0x16384a&&sn(_0x30d637,_0xd1b87f)&&(_0x39f3b9(_0x30d637['getRanges'](),_0xa1b8bc)||_0x39f3b9(_0xa1b8bc,_0x30d637['getRanges']())))){for(const _0x51f91b of _0xa1b8bc)_0x30d637['addRange'](_0x51f91b);return _0x30d637;}}const _0x4dccaf=_0xcb588e(),_0x556b6e=_0x91815c['id'],_0x435e72='formatBlock:'+_0x16384a,_0x2de547=this['_setSuggestionData']({'id':_0x4dccaf,'type':_0x435e72,'data':_0xfd1dfb,'createdAt':new Date(),'authorId':_0x556b6e,'attributes':_0xd1b87f});for(const _0x57cd1c of _0xa1b8bc)this['_addSuggestionMarker'](_0x435e72,_0x4dccaf,_0x556b6e,_0x57cd1c,x['getMultiRangeId']());return _0x2de547;}['markDeletion'](_0x70cddf,_0x5dd79a=null,_0x4e7ef3={}){if(_0x70cddf['isCollapsed'])return null;const _0x410ae3=this['editor']['plugins']['get']('Users')['me'],_0x104d76=new _0x2f9bba(_0x70cddf['start'],_0x70cddf['end']);this['_trackingSessionId']&&(_0x4e7ef3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2f0fbb,meta:_0x2840d6}of this['_findSuggestions'](_0x104d76,'insertion'))if(_0x2840d6['isOwn']&&!_0x2840d6['isNextTo']){if(_0x2f0fbb['isMultiRange']){const _0x4da560=_0x2f0fbb['getRanges']()['filter'](_0x3bf753=>'$graveyard'!=_0x3bf753['root']['rootName']);_0x4da560['every'](_0x4933a7=>_0x104d76['containsRange'](_0x4933a7,!0x0))&&_0x2f0fbb['discard']();if(_0x4da560['some'](_0x9eb5f2=>_0x9eb5f2['containsRange'](_0x104d76,!0x0))){const _0x1a9cd4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dd79a,'accept');return this['forceDefaultExecution'](()=>_0x1a9cd4([_0x104d76],null,_0x4e7ef3)),null;}}else{const _0x2e0a31=_0x104d76['getIntersection'](_0x2f0fbb['getFirstRange']());null!==_0x2e0a31&&_0x2f0fbb['_onDiscard']([_0x2e0a31],null,_0x4e7ef3);}}if(_0x104d76['detach'](),_0x104d76['isCollapsed']||'$graveyard'==_0x104d76['root']['rootName'])return null;let _0x5e6b44=null,_0x35059c=_0x104d76['start'],_0x403646=_0x104d76['end'];const _0x43c1eb=this['_findSuggestions'](_0x104d76,'deletion');for(const {suggestion:_0x34bd77,meta:_0x5dafd1}of _0x43c1eb){const _0x251db9=this['_model']['createRange'](_0x35059c,_0x403646);if(_0x5dafd1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5dafd1['containsRangeInObject']&&!_0x5dafd1['isInsideObject'])){if(_0x34bd77['isMultiRange']){if(!sn(_0x34bd77,_0x4e7ef3))continue;let _0x5d4878=!0x0;for(const _0x4a5b90 of _0x34bd77['getRanges']()){if(_0x4a5b90['containsRange'](_0x251db9,!0x0))return _0x34bd77;_0x251db9['containsRange'](_0x4a5b90)||(_0x5d4878=!0x1);}_0x5d4878&&_0x34bd77['discard']();}else{const _0x5880e3=_0x34bd77['getFirstRange']();if(_0x5880e3['containsRange'](_0x251db9,!0x0))return _0x34bd77;if(!sn(_0x34bd77,_0x4e7ef3)){_0x251db9['containsRange'](_0x5880e3)?_0x34bd77['removeMarkers']():_0x5880e3['containsPosition'](_0x35059c)?_0x35059c=_0x5880e3['end']:_0x5880e3['containsPosition'](_0x403646)&&(_0x403646=_0x5880e3['start']);continue;}_0x35059c=_0x35059c['isBefore'](_0x5880e3['start'])?_0x35059c:_0x5880e3['start'],_0x403646=_0x403646['isAfter'](_0x5880e3['end'])?_0x403646:_0x5880e3['end'],_0x4e7ef3=Object['assign']({},_0x34bd77['attributes']),_0x5e6b44?_0x5880e3['start']['isBefore'](_0x5e6b44['getFirstRange']()['start'])?(_0x5e6b44['removeMarkers'](),_0x5e6b44=_0x34bd77):_0x34bd77['removeMarkers']():_0x5e6b44=_0x34bd77;}}}if(_0x5e6b44)return this['_setSuggestionRange'](_0x5e6b44,this['_model']['createRange'](_0x35059c,_0x403646)),_0x5e6b44;{const _0x51b291=_0xcb588e(),_0xc07156=this['_model']['createRange'](_0x35059c,_0x403646),_0x4de002=_0x410ae3['id'],_0x48dd28=_0x5dd79a?'deletion:'+_0x5dd79a:'deletion',_0x1c44e4=this['_setSuggestionData']({'id':_0x51b291,'type':_0x48dd28,'createdAt':new Date(),'authorId':_0x4de002,'attributes':_0x4e7ef3});return this['_addSuggestionMarker'](_0x48dd28,_0x51b291,_0x4de002,_0xc07156),_0x1c44e4;}}['markMultiRangeDeletion'](_0x362a11,_0x27df94='multi',_0x11ae26={}){const _0x4c1938=this['editor']['plugins']['get']('Users')['me'],_0x5dcaec=_0x362a11['map'](_0x4c960c=>new _0x2f9bba(_0x4c960c['start'],_0x4c960c['end'])),_0x55414b=new Set();this['_trackingSessionId']&&(_0x11ae26['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x501e6c,meta:_0x5e8b28}of this['_findSuggestions'](_0x5dcaec,'insertion'))_0x5e8b28['isOwn']&&!_0x5e8b28['isNextTo']&&_0x55414b['add'](_0x501e6c);for(const _0x3f93f3 of _0x55414b)if(_0x3f93f3['isMultiRange']){const _0x21f65c=_0x3f93f3['getRanges']();(!_0x3f93f3['attributes']||!_0x3f93f3['attributes']['skipNestingCheck'])&&(_0x21f65c['every'](_0x38970c=>_0x5dcaec['some'](_0x583ade=>_0x583ade['containsRange'](_0x38970c,!0x0)))&&_0x3f93f3['discard']());if(_0x5dcaec['every'](_0xaa3a13=>_0x21f65c['some'](_0xa6c60e=>_0xa6c60e['containsRange'](_0xaa3a13,!0x0)))){const _0x41f342=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27df94,'accept');return this['forceDefaultExecution'](()=>_0x41f342(_0x362a11,null,_0x11ae26)),null;}}else{const _0x36d630=_0x3f93f3['getFirstRange']();_0x5dcaec['some'](_0x5d259e=>_0x5d259e['containsRange'](_0x36d630,!0x0))&&_0x3f93f3['discard']();if(_0x5dcaec['every'](_0x94ab28=>_0x36d630['containsRange'](_0x94ab28,!0x0))){const _0x4c6c4c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27df94,'accept');return this['forceDefaultExecution'](()=>_0x4c6c4c(_0x5dcaec,null,_0x11ae26)),null;}}const _0x3004f8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27df94,'join');let _0xb5234=null;for(const _0x4dd1e8 of this['getSuggestions']())if(_0x4dd1e8['author']['id']==_0x4c1938['id']&&_0x4dd1e8['isInContent']&&'deletion'==_0x4dd1e8['type']&&_0x4dd1e8['subType']==_0x27df94&&sn(_0x4dd1e8,_0x11ae26)&&(_0x3004f8(_0x4dd1e8['getRanges'](),_0x5dcaec)||_0x3004f8(_0x5dcaec,_0x4dd1e8['getRanges']()))){if(_0xb5234){if(_0x4dd1e8['commentThread']&&_0x4dd1e8['commentThread']['length'])continue;for(const _0x33234d of _0x4dd1e8['getRanges']())_0xb5234['isIntersectingWithRange'](_0x33234d)||_0xb5234['addRange'](_0x33234d);_0x4dd1e8['removeMarkers']();}else{_0xb5234=_0x4dd1e8;for(const _0x45e427 of _0x5dcaec)_0x4dd1e8['isIntersectingWithRange'](_0x45e427)||_0x4dd1e8['addRange'](_0x45e427);}}if(_0xb5234)return _0xb5234;_0x55414b['clear']();for(const {suggestion:_0x468d8c,meta:_0x543938}of this['_findSuggestions'](_0x5dcaec,'deletion'))_0x543938['isOwn']&&(this['_mergeNestedSuggestions']||!_0x543938['containsRangeInObject']&&!_0x543938['isInsideObject'])&&sn(_0x468d8c,_0x11ae26)&&_0x55414b['add'](_0x468d8c);for(const _0x102f22 of _0x55414b){const _0x4f82e1=_0x102f22['getRanges']();if(!_0x11ae26||!_0x11ae26['skipNestingCheck']){if(_0x5dcaec['every'](_0x10ff4e=>_0x4f82e1['some'](_0x165304=>_0x165304['containsRange'](_0x10ff4e,!0x0))))return _0x102f22;}(!_0x102f22['attributes']||!_0x102f22['attributes']['skipNestingCheck'])&&(_0x4f82e1['every'](_0x1f68fd=>_0x5dcaec['some'](_0x1c7947=>_0x1c7947['containsRange'](_0x1f68fd,!0x0)))&&_0x102f22['discard']());}const _0x1a0e51=_0xcb588e(),_0x43882d=_0x4c1938['id'],_0x5f2f0b='deletion:'+_0x27df94,_0x4ebda7=this['_setSuggestionData']({'id':_0x1a0e51,'type':_0x5f2f0b,'createdAt':new Date(),'authorId':_0x43882d,'attributes':_0x11ae26});for(const _0xd58624 of _0x5dcaec)_0xd58624['detach'](),_0xd58624['isCollapsed']||'$graveyard'==_0xd58624['root']['rootName']||this['_addSuggestionMarker'](_0x5f2f0b,_0x1a0e51,_0x43882d,_0xd58624,x['getMultiRangeId']());return _0x4ebda7;}['markAttributeChange'](_0x211751,_0x1967bd,_0xda5e90,_0xd32b3b,_0x4b321b){if(_0x211751['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd145ba=this['editor']['plugins']['get']('Users')['me']['id'],_0x4b6fa=Array['from'](this['_suggestions']['values']())['filter'](_0x3cb24b=>'attribute'==_0x3cb24b['type']&&_0x3cb24b['data']['key']==_0x1967bd&&_0x3cb24b['isIntersectingWithRange'](_0x211751));if(this['_trackingSessionId']&&(_0x4b321b['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x29a5fa=this['_findSuggestions'](_0x211751,'insertion')['filter'](({meta:_0x3f65b8})=>_0x3f65b8['isOwn']&&!_0x3f65b8['isInsideObject']&&!_0x3f65b8['isNextTo'])['map'](({suggestion:_0x3061c6})=>_0x3061c6);_0x4b6fa['unshift'](..._0x29a5fa);}const _0x4b9743=new Map([[_0x211751,_0xda5e90]]);for(const _0x2e829f of _0x4b6fa){const _0x157d2e='attribute'==_0x2e829f['type']?_0x2e829f['data']['oldValue']:void 0x0,_0x2736eb=_0x2e829f['getFirstRange'](),_0x455da1=Array['from'](_0x4b9743['keys']())['find'](_0x18e582=>_0x18e582['isIntersecting'](_0x2736eb));if(!_0x455da1)continue;const _0x4d84b8=_0x455da1['getDifference'](_0x2736eb);this['_isBlockAttribute'](_0x1967bd)&&'insertion'==_0x2e829f['type']&&0x0!=_0x4d84b8['length']||(_0x4b9743['delete'](_0x455da1),_0x4d84b8['forEach'](_0x4a513b=>{_0x4b9743['set'](_0x4a513b,_0xda5e90);}),'insertion'!=_0x2e829f['type']&&_0x157d2e!=_0xd32b3b&&_0x4b9743['set'](_0x455da1['getIntersection'](_0x2736eb),_0x157d2e));}const _0x439bbe=[];for(const [_0xe55489,_0x46dac2]of _0x4b9743){const _0x2253cd=_0xcb588e(),_0x32ab50={'key':_0x1967bd,'oldValue':_0x46dac2,'newValue':_0xd32b3b};_0x1967bd['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':_0x1967bd});const _0x20227b=('attribute:'+(_0x1967bd+'|'+Ht({'newValue':_0xd32b3b})))['substring'](0x0,0x3c),_0x4e81bd=this['_setSuggestionData']({'id':_0x2253cd,'type':_0x20227b,'data':_0x32ab50,'createdAt':new Date(),'authorId':_0xd145ba,'attributes':_0x4b321b});_0x439bbe['push'](_0x4e81bd),this['_addSuggestionMarker'](_0x20227b,_0x2253cd,_0xd145ba,_0xe55489);}return _0x439bbe;}['enableDefaultAttributesIntegration'](_0x2817fd){this['enableCommand'](_0x2817fd,(_0x56f51e,..._0x1f2226)=>{this['recordAttributeChanges'](()=>{_0x56f51e(..._0x1f2226);});});}['registerBlockAttribute'](_0x3c9d7c){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x3c9d7c);}['registerInlineAttribute'](_0x5047f3){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x5047f3);}['startTrackingSession'](_0x19eddb){return this['_trackingSessionId']=void 0x0!==_0x19eddb?_0x19eddb:_0xcb588e(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5c5fd1){return'attribute'==_0x5c5fd1['type']?_0x5c5fd1['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x342055){if(0x0==_0x342055['length'])return;const _0x72ed6e=this['editor'],_0x78b01f=_0x72ed6e['plugins']['get'](_0x392ee9),_0x2ebfb2=[];_0x72ed6e['model']['change'](_0x194c8a=>{for(let _0x28badc=0x0;_0x28badc<_0x342055['length'];_0x28badc++){const _0x4a0abe=_0x342055[_0x28badc];if(_0x4a0abe['baseVersion']=_0x72ed6e['model']['document']['version'],_0x4a0abe['isDocumentOperation']=!0x0,_0x78b01f['isMarkedRemoveOperation'](_0x4a0abe)){const _0x14c4f3=Lt(_0x4a0abe['newRange'],_0x72ed6e['model']);_0x2ebfb2['unshift'](_0x2f9bba['fromRange'](_0x14c4f3));}else switch(_0x4a0abe['type']){case'rename':{const _0x2b9e70=_0x4a0abe['oldName'],_0xee4f31=_0x4a0abe['newName'];if(_0x2b9e70==_0xee4f31)break;_0x194c8a['batch']['addOperation'](_0x4a0abe),_0x72ed6e['model']['applyOperation'](_0x4a0abe);const _0x19dc4a='$elementName',_0xa77b0b=_0x4a0abe['position'],_0x39e4eb=_0x72ed6e['model']['createRange'](_0xa77b0b,_0x72ed6e['model']['createPositionAt'](_0xa77b0b['nodeAfter'],'end'));this['markAttributeChange'](_0x39e4eb,_0x19dc4a,_0x2b9e70,_0xee4f31,{'groupId':_0xcb588e()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x11925a=_0x4a0abe['oldValue'],_0x2ca40c=_0x4a0abe['newValue'];if(_0x11925a==_0x2ca40c)break;_0x194c8a['batch']['addOperation'](_0x4a0abe),_0x72ed6e['model']['applyOperation'](_0x4a0abe);const _0x12bccf=_0x4a0abe['key'];if(!this['_isRegisteredAttribute'](_0x12bccf))break;const _0x14934e=Lt(_0x4a0abe['range'],_0x72ed6e['model']);this['markAttributeChange'](_0x14934e,_0x12bccf,_0x11925a,_0x2ca40c,{'groupId':_0xcb588e()});break;}case'insert':{_0x194c8a['batch']['addOperation'](_0x4a0abe),_0x72ed6e['model']['applyOperation'](_0x4a0abe);if(_0x342055[_0x28badc+0x1]&&'move'==_0x342055[_0x28badc+0x1]['type'])break;const _0x4b449b=_0x4a0abe['position'],_0x478e63=_0x4a0abe['howMany'],_0x21b8bf=Lt(_0x72ed6e['model']['createRange'](_0x4b449b,_0x4b449b['getShiftedBy'](_0x478e63)),_0x72ed6e['model']);this['markInsertion'](_0x21b8bf);break;}case'split':{_0x194c8a['batch']['addOperation'](_0x4a0abe),_0x72ed6e['model']['applyOperation'](_0x4a0abe);const _0x1df92a=_0x4a0abe['splitPosition'],_0x3fdba0=_0x4a0abe['moveTargetPosition'];this['markInsertion'](_0x72ed6e['model']['createRange'](_0x1df92a,_0x3fdba0));break;}case'move':case'remove':_0x194c8a['batch']['addOperation'](_0x4a0abe),_0x72ed6e['model']['applyOperation'](_0x4a0abe);}}for(const _0x10d73e of _0x2ebfb2)_0x10d73e['detach'](),this['markDeletion'](_0x10d73e);});}['_setSuggestionRange'](_0x4b75e3,_0xec154c){const _0x3ae6ba=_0x4b75e3['getFirstMarker']();this['_model']['change'](_0x504270=>{_0x504270['updateMarker'](_0x3ae6ba,{'range':_0xec154c});});}['_addThreadToSuggestion'](_0x5b393b){const _0x510147=_0x5b393b['id'],_0x1e334b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x510147)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1e334b,'threadId':_0x510147,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x52b29d=this['_commentsRepository']['getCommentThread'](_0x510147);_0x52b29d['unbind']('isRemovable'),_0x52b29d['isRemovable']=!0x1,_0x5b393b['commentThread']=_0x52b29d;}['_checkSuggestionCorrectness'](_0x4569b9,_0x31e23f,_0x10e23f,_0x5e0b2c){if(_0x4569b9['type']!=_0x31e23f||_0x4569b9['subType']!=_0x10e23f||_0x4569b9['creator']['id']!=_0x5e0b2c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x46a289('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xefe2d4,_0x32c08b){const _0x149311=_0xefe2d4['getFirstRange']();if(_0x32c08b['isEqual'](_0x149311))_0xefe2d4['removeMarkers']();else{if(_0x149311['containsRange'](_0x32c08b)){const _0x4ad1fe=this['_model']['createPositionAt'](_0x32c08b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xefe2d4,this['_model']['createRange'](_0x149311['start'],_0x4ad1fe));const _0x491aba=_0xcb588e(),_0x5eec64=_0xefe2d4['creator']['id'],_0x5702b4=_0xefe2d4['type']+':'+_0xefe2d4['subType'];this['_setSuggestionData']({'id':_0x491aba,'type':_0x5702b4,'createdAt':new Date(),'authorId':_0x5eec64,'data':_0xefe2d4['data'],'attributes':_0xefe2d4['attributes']});const _0x2bd1c5=this['_model']['createPositionAt'](_0x32c08b['end']['parent'],'after'),_0x22e93a=this['_model']['createRange'](_0x2bd1c5,_0x149311['end']);this['_addSuggestionMarker'](_0x5702b4,_0x491aba,_0x5eec64,_0x22e93a);}else{if(_0x149311['containsPosition'](_0x32c08b['start'])){const _0x2ede05=this['_model']['createPositionAt'](_0x32c08b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xefe2d4,this['_model']['createRange'](_0x149311['start'],_0x2ede05));}else{const _0x241987=this['_model']['createPositionAt'](_0x32c08b['end']['parent'],'after');this['_setSuggestionRange'](_0xefe2d4,this['_model']['createRange'](_0x241987,_0x149311['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x47d92d){for(const {suggestion:_0x4f374c,meta:_0x573d39}of this['_findSuggestions'](_0x47d92d,'insertion')){if(!_0x573d39['isOwn'])continue;const _0x3cbbfa=_0x4f374c['getRanges']();for(const _0x5d6a48 of _0x3cbbfa)if(!_0x47d92d['getDifference'](_0x5d6a48)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x505d95){return this['editor']['plugins']['get']('Users')['getUser'](_0x505d95);}['_getExternalAuthor'](_0x224f24){const _0xfef33c=this['editor']['plugins']['get']('Users'),_0x51d28e=_0x52b8a6('external:'+_0x224f24),_0x41a92f=_0xfef33c['getUser'](_0x51d28e);return _0x41a92f||_0xfef33c['addUser']({'id':_0x51d28e,'name':_0x224f24});}['_createSuggestion'](_0x37adf6,_0xdb6007,_0x2c8a96,_0x2a44dd,_0x705871,_0x46b356){const _0x2704d0=this['_getAuthorFromId'](_0x2a44dd);if(!_0x2704d0)throw new _0x46a289('track-changes-user-not-found',this,{'authorId':_0x2a44dd,'suggestionId':_0x2c8a96});const _0xcfc46b=this['_suggestionFactory']['buildSuggestion'](_0x37adf6,_0xdb6007,_0x2c8a96,_0x2704d0,_0x705871,_0x1ccbd4=>{this['_updateSuggestionData'](_0x2c8a96,{'attributes':_0x1ccbd4});const _0x3c1bc0=this['getSuggestion'](_0x2c8a96);this['_joinWithAdjacentSuggestions'](new Set([_0x3c1bc0])),this['_refreshSuggestionsChain'](new Set([_0x3c1bc0]));},_0x46b356);return this['listenTo'](_0xcfc46b,'accept',()=>{this['_updateSuggestionData'](_0x2c8a96,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xcfc46b,'discard',()=>{this['_updateSuggestionData'](_0x2c8a96,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2c8a96,_0xcfc46b),this['_suggestionState']['set'](_0xcfc46b,'notReady'),_0xcfc46b;}['_splitMarkerName'](_0x1021c9){return Gt(_0x1021c9);}['_breakSuggestionMarker'](_0x112c44,_0x36b814,_0xca62d6){const _0x3e08fa=_0x112c44['getFirstRange'](),_0x165ca8=_0x3e08fa['start'],_0xad1a5c=_0x3e08fa['end'];this['_setSuggestionRange'](_0x112c44,this['_model']['createRange'](_0x165ca8,_0x36b814));const _0x8bb8ed=_0xcb588e(),_0x40a1ac=_0x112c44['creator']['id'],_0x271e51=_0x112c44['type']+(_0x112c44['subType']?':'+_0x112c44['subType']:'');this['_setSuggestionData']({'id':_0x8bb8ed,'type':_0x271e51,'createdAt':new Date(),'authorId':_0x40a1ac,'originalSuggestionId':_0x112c44['_originalSuggestionId']||_0x112c44['id'],'attributes':_0x112c44['attributes'],'data':_0x112c44['data']});const _0x137a9f=this['_getAttributeKey'](_0x112c44);('formatBlock'==_0x112c44['type']||_0x137a9f&&this['_isBlockAttribute'](_0x137a9f))&&(_0xca62d6=this['_model']['createPositionBefore'](_0xca62d6['parent'])),this['_addSuggestionMarker'](_0x271e51,_0x8bb8ed,_0x40a1ac,this['_model']['createRange'](_0xca62d6,_0xad1a5c));}['_findSuggestions'](_0xb412a1,_0x17d28b=null){const _0x263a0e=[],_0x600333=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xb412a1)||(_0xb412a1=[_0xb412a1]);for(const _0x47c5bf of this['getSuggestions']()){if(!_0x47c5bf['isInContent'])continue;if(_0x17d28b&&_0x47c5bf['type']!=_0x17d28b)continue;let _0x43130a=!0x1;for(const _0x350a92 of _0x47c5bf['getRanges']()){for(const _0x32d314 of _0xb412a1){const _0x1cc149=_0x32d314['start']['isEqual'](_0x350a92['end'])||_0x32d314['end']['isEqual'](_0x350a92['start']);if(_0x1cc149||_0x32d314['getIntersection'](_0x350a92)){const _0x2f9ac5=_0x32d314['containsRange'](_0x350a92)&&zt(this['_model']['schema'],_0x350a92['start'],_0x32d314),_0x3b57c0=_0x350a92['containsRange'](_0x32d314)&&zt(this['_model']['schema'],_0x32d314['start'],_0x350a92);_0x263a0e['push']({'suggestion':_0x47c5bf,'meta':{'isOwn':_0x600333==_0x47c5bf['author'],'isNextTo':_0x1cc149,'isInsideObject':_0x2f9ac5,'containsRangeInObject':_0x3b57c0}}),_0x43130a=!0x0;break;}}if(_0x43130a)break;}}return _0x263a0e;}['_addSuggestionMarker'](_0x451254,_0x45b41b,_0x1b6669,_0x2f0aa3,_0x32002e){this['_model']['change'](_0x6a6441=>{let _0x20fbc6='suggestion:'+_0x451254+':'+_0x45b41b+':'+_0x1b6669;_0x32002e&&(_0x20fbc6=_0x20fbc6+':'+_0x32002e),_0x6a6441['addMarker'](_0x20fbc6,{'range':_0x2f0aa3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x320a1b){const _0x295d6d=_0x320a1b['previous'],_0x546cd5=_0x320a1b['next'];_0x320a1b['previous']=null,_0x320a1b['next']=null,null!=_0x295d6d&&_0x295d6d['next']==_0x320a1b&&(_0x295d6d['next']=_0x546cd5),null!=_0x546cd5&&_0x546cd5['previous']==_0x320a1b&&(_0x546cd5['previous']=_0x295d6d),'ready'==this['_suggestionState']['get'](_0x320a1b)&&(this['_suggestionState']['set'](_0x320a1b,'removed'),this['fire']('suggestionUnloaded',_0x320a1b,_0x295d6d,_0x546cd5));}['_setSuggestionData'](_0x4b8a9f){const _0x5cb8d6=_0x4b8a9f['id'],_0x45872a=this['addSuggestionData'](_0x4b8a9f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2b7d9c=this['editor']['plugins']['get']('PendingActions'),_0x26cced=_0x45872a['hasComments'],_0x39959e=_0x45872a['subType']?_0x45872a['type']+':'+_0x45872a['subType']:_0x45872a['type'],_0x515d3b=this['editor']['locale'],_0x8843d7=_0x2b7d9c['add'](o(_0x515d3b,'PENDING_ACTION_SUGGESTION')),_0x32b71c={'id':_0x5cb8d6,'type':_0x39959e,'hasComments':_0x26cced,'data':_0x4b8a9f['data']||null,'originalSuggestionId':_0x4b8a9f['originalSuggestionId']||null,'attributes':_0x45872a['attributes']};this['_adapter']['addSuggestion'](_0x32b71c)['then'](_0x326a7a=>{_0x45872a['_saved']=!0x0,_0x2b7d9c['remove'](_0x8843d7),_0x326a7a&&_0x326a7a['createdAt']&&(this['_suggestions']['get'](_0x5cb8d6)['createdAt']=_0x326a7a['createdAt']);})['catch'](_0x21d9cc=>{throw _0xcdc9f4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x45872a['discard']();}),_0x45872a['stopListening'](),this['_suggestions']['delete'](_0x45872a['id']),this['_suggestionState']['delete'](_0x45872a),_0x21d9cc;});}return _0x45872a;}['_isBlockAttribute'](_0x24045f){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x24045f);}['_isInlineAttribute'](_0x3ec76a){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x3ec76a);}['_updateSuggestionData'](_0x105e22,_0x1af9dd){const _0x3b3b60=this['editor']['plugins']['get']('PendingActions'),_0x25514b=this['getSuggestion'](_0x105e22);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x25514b['_saved']){const _0xce0b33=_0x3b3b60['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x105e22,_0x1af9dd)['then'](()=>{_0x3b3b60['remove'](_0xce0b33);});}else _0x25514b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x105e22,_0x1af9dd);});}}['_getSuggestionData'](_0x20595f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x46a289('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x20595f);}['_handleNewSuggestionMarker'](_0xc5968b){const {id:_0x44dfc0,type:_0x57b1b4,subType:_0x1b6d4f,authorId:_0x4ffe34}=this['_splitMarkerName'](_0xc5968b),_0x30547b=this['_suggestions']['get'](_0x44dfc0)||this['_createSuggestion'](_0x57b1b4,_0x1b6d4f,_0x44dfc0,_0x4ffe34,{});switch(this['_checkSuggestionCorrectness'](_0x30547b,_0x57b1b4,_0x1b6d4f,_0x4ffe34),this['_suggestionState']['get'](_0x30547b)){case'notReady':this['_getSuggestionData'](_0x44dfc0)['then'](_0x1d8505=>{let _0x2ea38d=Promise['resolve']();_0x1d8505['hasComments']&&(_0x2ea38d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x44dfc0})),_0x2ea38d['then'](()=>{this['addSuggestionData'](_0x1d8505)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x30547b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x44dfc0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x30547b,'ready'),this['fire']('suggestionLoaded',_0x30547b);break;case'ready':this['fire']('suggestionChanged',_0x30547b);}return _0x30547b['addMarkerName'](_0xc5968b),_0x30547b;}['_refreshSuggestionsChain'](_0x26e666){const _0xa28727=Array['from'](_0x26e666),_0x5d0054=_0xa28727['filter'](_0x54050c=>'attribute'==_0x54050c['type']);this['_refreshAttributeSuggestionsChain'](_0x5d0054);const _0x667813=_0xa28727['filter'](_0x4da27b=>!_0x4da27b['isMultiRange']&&'attribute'!=_0x4da27b['type']),_0x1290db=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3be18a=>!_0x3be18a['isMultiRange']&&'attribute'!=_0x3be18a['type']),_0x4c9aa3=_0x1290db['filter'](_0x1bb6d1=>!_0x26e666['has'](_0x1bb6d1)),_0x366034=new Map(_0x1290db['map'](_0x1466b6=>[_0x1466b6,this['_suggestionFactory']['getSuggestionCallback'](_0x1466b6['type'],_0x1466b6['subType'],'chain')])),_0xd82050=new Map(_0x1290db['map'](_0x25263b=>[_0x25263b,_0x25263b['getFirstRange']()])),_0x567b8f=new Set(),_0xea3967=new Set();for(let _0x12cdde=0x0;_0x12cdde<_0x667813['length'];_0x12cdde++)_0x1950af(_0x667813[_0x12cdde],_0x667813,_0x12cdde+0x1);for(let _0x2e8602=0x0;_0x2e8602<_0x667813['length'];_0x2e8602++)_0x1950af(_0x667813[_0x2e8602],_0x4c9aa3,0x0);const _0x444f2a=new Set();for(let _0x2d3136=0x0;_0x2d3136<_0x667813['length'];_0x2d3136++){const _0x4f606e=_0x667813[_0x2d3136];!_0xea3967['has'](_0x4f606e)&&_0x4f606e['previous']&&(_0x444f2a['add'](_0x4f606e['previous']),_0x4f606e['previous']['next']===_0x4f606e&&(_0x4f606e['previous']['next']=null),_0x4f606e['previous']=null),!_0x567b8f['has'](_0x4f606e)&&_0x4f606e['next']&&(_0x444f2a['add'](_0x4f606e['next']),_0x4f606e['next']['previous']===_0x4f606e&&(_0x4f606e['next']['previous']=null),_0x4f606e['next']=null);}function _0x1950af(_0x24bed5,_0x2b9391,_0x4c0cb9){for(let _0x2d9931=_0x4c0cb9;_0x2d9931<_0x2b9391['length'];_0x2d9931++){const _0x54d543=_0x10792e(_0x24bed5,_0x2b9391[_0x2d9931]);_0x54d543&&(_0x54d543[0x0]['next']=_0x54d543[0x1],_0x54d543[0x1]['previous']=_0x54d543[0x0],_0x567b8f['add'](_0x54d543[0x0]),_0xea3967['add'](_0x54d543[0x1]));}}function _0x10792e(_0xc9dc8a,_0x251b5c){if(_0xc9dc8a['author']['id']!==_0x251b5c['author']['id'])return null;const _0x1b5cee=_0x366034['get'](_0xc9dc8a)(_0xc9dc8a,_0x251b5c,_0xd82050['get'](_0xc9dc8a),_0xd82050['get'](_0x251b5c));if(!_0x1b5cee)return null;return _0x366034['get'](_0x251b5c)(_0xc9dc8a,_0x251b5c,_0xd82050['get'](_0xc9dc8a),_0xd82050['get'](_0x251b5c))?_0x1b5cee[0x1]['commentThread']&&_0x1b5cee[0x1]['commentThread']['length']?null:_0x1b5cee:null;}_0x444f2a['size']&&this['_refreshSuggestionsChain'](_0x444f2a);}['_refreshAttributeSuggestionsChain'](_0x3cbdd7){if(0x0==_0x3cbdd7['length'])return;const _0x42080d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2998ab=>'attribute'==_0x2998ab['type']&&_0x2998ab['_isDataLoaded']),_0x5ce61d=[],_0x251fe2=new Map();for(const _0x1710c5 of _0x42080d){const _0x328eb2=_0x52b8a6(_0x1710c5['attributes']);_0x251fe2['has'](_0x328eb2)||(_0x251fe2['set'](_0x328eb2,_0x5ce61d['length']),_0x5ce61d['push']([]));const _0xc76d6a=_0x251fe2['get'](_0x328eb2);_0x5ce61d[_0xc76d6a]['push'](_0x1710c5);}!(function(){_0x5ce61d['sort']((_0x184b28,_0x31c952)=>{const _0x3ec4dd=_0x184b28[0x0]['createdAt'],_0x5ac229=_0x31c952[0x0]['createdAt'];return _0x3ec4dd==_0x5ac229?_0x184b28[0x0]['attributes']['groupId']<_0x31c952[0x0]['attributes']['groupId']?-0x1:0x1:_0x3ec4dd<_0x5ac229?-0x1:0x1;});for(const _0x28bf8f of _0x5ce61d)_0x28bf8f['sort']((_0x55c98a,_0x7ee4e1)=>_0x55c98a['id']<_0x7ee4e1['id']?-0x1:0x1);}());for(let _0x4f85df=0x0;_0x4f85df<_0x5ce61d['length'];_0x4f85df++){if(0x0==_0x5ce61d[_0x4f85df]['length'])continue;const _0x3082d7=[];for(let _0x4e4a74=_0x4f85df+0x1;_0x4e4a74<_0x5ce61d['length'];_0x4e4a74++)0x0!=_0x5ce61d[_0x4e4a74]['length']&&_0x575d12(_0x5ce61d[_0x4f85df],_0x5ce61d[_0x4e4a74])&&_0x3082d7['push'](_0x4e4a74);for(const _0x433bb6 of _0x3082d7)_0x5ce61d[_0x4f85df]=_0x5ce61d[_0x4f85df]['concat'](_0x5ce61d[_0x433bb6]),_0x5ce61d[_0x433bb6]=[];}for(const _0x1f97d9 of _0x5ce61d)for(let _0x58fd5c=0x0;_0x58fd5c<_0x1f97d9['length'];_0x58fd5c++){const _0x47054b=_0x1f97d9[_0x58fd5c+0x1]||null;_0x1f97d9[_0x58fd5c]['next']!==_0x47054b&&(_0x1f97d9[_0x58fd5c]['next']=_0x47054b);}for(const _0x41cf94 of _0x5ce61d)for(let _0x113d21=0x0;_0x113d21<_0x41cf94['length'];_0x113d21++){const _0x2e97b2=_0x41cf94[_0x113d21-0x1]||null;_0x41cf94[_0x113d21]['previous']!==_0x2e97b2&&(_0x41cf94[_0x113d21]['previous']=_0x2e97b2);}function _0x575d12(_0x3d29d8,_0x5ceeb7){if(_0x3d29d8[0x0]['attributes']['groupId']!==_0x5ceeb7[0x0]['attributes']['groupId']&&_0x3d29d8[0x0]['author']!==_0x5ceeb7[0x0]['author'])return!0x1;if(!function(_0x417627,_0x23093f){if(!_0x417627['hasComments']&&!_0x23093f['hasComments'])return!0x0;if(_0x417627['hasComments']&&_0x23093f['hasComments'])return!0x1;if(_0x417627['hasComments']&&_0x23093f['createdAt']<_0x417627['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x23093f['hasComments']&&_0x417627['createdAt']<_0x23093f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3d29d8[0x0],_0x5ceeb7[0x0]))return!0x1;const _0x49448d=Pt(_0x3d29d8[0x0]['attributes'],['groupId','trackingSessionId']),_0x2fc192=Pt(_0x5ceeb7[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3c4da3(_0x49448d,_0x2fc192))return!0x1;if(_0x3d29d8[0x0]['attributes']['groupId']==_0x5ceeb7[0x0]['attributes']['groupId'])return!0x0;if(_0x3d29d8[0x0]['attributes']['trackingSessionId']!==_0x5ceeb7[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3d29d8['every'](_0x10ee6e=>_0x5ceeb7['some'](_0x29d77b=>_0x10ee6e['getFirstRange']()['isEqual'](_0x29d77b['getFirstRange']())))&&_0x5ceeb7['every'](_0x20a7d7=>_0x3d29d8['some'](_0x29d4ef=>_0x20a7d7['getFirstRange']()['isEqual'](_0x29d4ef['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x10ae00){const _0x46e4ce=Array['from'](_0x10ae00),_0x412810=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3bace4=_0x412810['filter'](_0x4ca28d=>!_0x10ae00['has'](_0x4ca28d)),_0x480256=new Map(_0x46e4ce['map'](_0x33a788=>[_0x33a788,this['_suggestionFactory']['getSuggestionCallback'](_0x33a788['type'],_0x33a788['subType'],'join')])),_0x5ce6f2=new Map(_0x412810['map'](_0x1d7f51=>[_0x1d7f51,_0x1d7f51['getRanges']()]));for(let _0x4b4969=0x0;_0x4b4969<_0x46e4ce['length'];_0x4b4969++){if(_0x5856af(this,_0x46e4ce[_0x4b4969],_0x46e4ce,_0x4b4969+0x1))return!0x0;}for(let _0x4585b0=0x0;_0x4585b0<_0x46e4ce['length'];_0x4585b0++){if(_0x5856af(this,_0x46e4ce[_0x4585b0],_0x3bace4,0x0))return!0x0;}return!0x1;function _0x5856af(_0x5660c9,_0x115f50,_0x42cf8f,_0x28390c){for(let _0x4b0e6a=_0x28390c;_0x4b0e6a<_0x42cf8f['length'];_0x4b0e6a++){const _0x29a13f=_0x42cf8f[_0x4b0e6a];if(_0x29a13f['type']!==_0x115f50['type']||_0x29a13f['author']['id']!==_0x115f50['author']['id']||_0x29a13f['subType']!==_0x115f50['subType'])continue;if(!en(_0x115f50,_0x29a13f))continue;if('attribute'==_0x115f50['type']&&_0x115f50['data']['oldValue']!=_0x29a13f['data']['oldValue'])continue;if('attribute'==_0x115f50['type']&&_0x5660c9['_isBlockAttribute'](_0x115f50['data']['key']))continue;if('formatBlock'==_0x115f50['type']){const _0x571723=_0x5660c9['editor']['model'],_0xc8569d=_0x115f50['getContainedElement']();if(_0xc8569d&&(_0x571723['schema']['isObject'](_0xc8569d)||_0x571723['schema']['isLimit'](_0xc8569d)))continue;}const _0xcc2287=_0x480256['get'](_0x115f50),_0x556ac0=_0x5ce6f2['get'](_0x115f50),_0x140464=_0x5ce6f2['get'](_0x29a13f),_0x56b600=_0x115f50['commentThread']&&_0x115f50['commentThread']['length'],_0x3da554=_0x29a13f['commentThread']&&_0x29a13f['commentThread']['length'];if(!_0x56b600&&_0xcc2287(_0x140464,_0x556ac0))return _0x5660c9['_joinSuggestions'](_0x29a13f,_0x115f50),_0x5ce6f2['delete'](_0x115f50),!0x0;if(!_0x3da554&&_0xcc2287(_0x556ac0,_0x140464))return _0x5660c9['_joinSuggestions'](_0x115f50,_0x29a13f),_0x5ce6f2['delete'](_0x29a13f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x27ba40,_0x3577d6){if(_0x27ba40['isMultiRange']){for(const _0x514254 of _0x3577d6['getRanges']())_0x27ba40['addRange'](_0x514254);}else{const _0x2d0467=_0x3577d6['getFirstRange']()['end'];this['_setSuggestionRange'](_0x27ba40,this['_model']['createRange'](_0x27ba40['getFirstRange']()['start'],_0x2d0467));}_0x3577d6['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4f5f6d,_0x513339,_0x305dba){const _0x178ee4=_0x4f5f6d['startsWith']('format')||_0x4f5f6d['startsWith']('attribute')?'FORMATTING':_0x4f5f6d['toUpperCase']();return o(this['editor']['locale'],_0x513339+'_'+_0x178ee4+'_SUGGESTION_ANNOUNCEMENT',_0x305dba);}['_initAriaMarkerChangeAnnouncements'](){const _0x8e3970=this['editor'];if(!_0x8e3970['ui'])return;const {ariaLiveAnnouncer:_0x1715a5}=_0x8e3970['ui'];_0x242b1c(this['_model'],({left:_0x518eea,entered:_0x12a4fa})=>{for(const _0x386109 of _0x518eea){const {group:_0x4f26ea,type:_0x116e2a}=this['_splitMarkerName'](_0x386109['name']);if('suggestion'===_0x4f26ea){_0x1715a5['announce'](this['_getMarkerAnnouncementText'](_0x116e2a,'LEAVE'));break;}}for(const _0x46172e of _0x12a4fa){const {group:_0x52b68e,type:_0x228a98}=this['_splitMarkerName'](_0x46172e['name']);if('suggestion'===_0x52b68e){_0x1715a5['announce'](this['_getMarkerAnnouncementText'](_0x228a98,'ENTER',_0x2dfbdc(_0x16a60d)));break;}}});}['_processAttributeChanges'](_0x3643a3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2eb8f5=this['editor'],_0x2fbb85=_0x2eb8f5['model']['document']['differ']['getChanges']();if(0x0==_0x2fbb85['length'])return!0x1;const _0xebbaad=[],_0x3971c4=_0x2fbb85['filter'](_0x3e35bb=>'attribute'==_0x3e35bb['type']),_0x4986bb=_0x2fbb85['filter'](_0x73df10=>'insert'==_0x73df10['type']&&'$text'!=_0x73df10['name']),_0x200b66=_0x2fbb85['filter'](_0x413dee=>'remove'==_0x413dee['type']&&'$text'!=_0x413dee['name']);for(const _0x3fc6ef of _0x3971c4)_0xebbaad['push']({'key':_0x3fc6ef['attributeKey'],'newValue':_0x3fc6ef['attributeNewValue'],'oldValue':_0x3fc6ef['attributeOldValue'],'range':Zt(_0x3fc6ef['range'],_0x2eb8f5['model'])});for(const _0x50c66f of _0x4986bb){const _0x1bc6cf=_0x200b66['find'](_0x5e0f06=>_0x5e0f06['position']['isEqual'](_0x50c66f['position']));_0x1bc6cf&&_0xebbaad['push']({'key':m,'newValue':_0x50c66f['name'],'oldValue':_0x1bc6cf['name'],'range':_0x2eb8f5['model']['createRangeOn'](_0x50c66f['position']['nodeAfter'])});}return 0x0!=_0xebbaad['length']&&this['_reduceExistingSuggestions'](_0x3643a3,_0xebbaad);}['_processAttributeSuggestions'](_0x2e0e0c){let _0x2b7577=!0x1;const _0x55d587=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x247e2a=>_0x247e2a['data']['newRange']&&_0x247e2a['name']['startsWith']('suggestion:attribute:'));for(const _0xcae7c1 of _0x55d587){const {subType:_0x85c600,id:_0x1e7450}=this['_splitMarkerName'](_0xcae7c1['name']),_0x513f64=_0x85c600['split']('|')[0x0];for(const _0x3d0973 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3d0973['id']!=_0x1e7450&&'attribute'==_0x3d0973['type']&&_0x3d0973['data']&&_0x3d0973['data']['key']==_0x513f64&&_0x3d0973['getFirstRange']()['isIntersecting'](_0xcae7c1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3d0973,_0xcae7c1['data']['newRange'],_0x2e0e0c),_0x2b7577=!0x0);}return _0x2b7577;}['recordAttributeChanges'](_0x22b0e5){this['_recordAttributeSuggestions']=!0x0,_0x22b0e5();}['_isRegisteredAttribute'](_0x4239a7){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x4239a7);}['_reduceExistingSuggestions'](_0x360997,_0x38057a){if(0x0==_0x38057a['length'])return!0x1;let _0x4a0c80=!0x1;for(const _0x15c7b2 of _0x38057a){const _0x44463a=this['_findSuggestions'](_0x15c7b2['range'],'attribute')['filter'](_0x5655d4=>!_0x5655d4['meta']['isNextTo'])['map'](_0x57fc0b=>_0x57fc0b['suggestion']),_0x327606=_0x52b8a6({'newValue':_0x15c7b2['newValue']});_0x44463a['filter'](_0x24564c=>{const [_0x10ea70,_0x88566b]=_0x24564c['subType']['split']('|');return _0x10ea70==_0x15c7b2['key']&&_0x88566b!=_0x327606;})['forEach'](_0x3b336b=>{this['_reduceSuggestionAttributeRange'](_0x3b336b,_0x15c7b2['range'],_0x360997),_0x4a0c80=!0x0;});}return _0x4a0c80;}['_reduceSuggestionAttributeRange'](_0x21795b,_0xcadb1c,_0x66e4cf){const _0x462a52=_0x21795b['getFirstRange']()['getDifference'](_0xcadb1c);0x0!==_0x462a52['length']?0x1!==_0x462a52['length']?this['_breakSuggestionMarker'](_0x21795b,_0xcadb1c['start'],_0xcadb1c['end']):this['_setSuggestionRange'](_0x21795b,_0x462a52[0x0]):_0x66e4cf['removeMarker'](_0x21795b['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x51d15a){this['_editor']=_0x51d15a,this['_model']=_0x51d15a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xc2772c,_0x1f888a,_0x2cf1a2,_0x48af9b,_0x2886f4,_0x387441,_0x38f749){return new x(this['_model'],{'type':_0xc2772c,'subType':_0x1f888a,'id':_0x2cf1a2,'originalSuggestionId':_0x38f749,'author':_0x48af9b,'creator':_0x48af9b,'attributes':_0x2886f4,'onAttributesChange':_0x387441,'onAccept':(..._0x1d11e9)=>this['getSuggestionCallback'](_0xc2772c,_0x1f888a,'accept')(..._0x1d11e9),'onDiscard':(..._0x47995e)=>this['getSuggestionCallback'](_0xc2772c,_0x1f888a,'discard')(..._0x47995e)});}['registerCustomCallback'](_0x2a94a4,_0x19890e,_0x440438,_0xda6b0a){const _0x439e8f=_0x2a94a4+':'+_0x19890e+':'+_0x440438;this['_customCallbacks']['set'](_0x439e8f,_0xda6b0a);}['getSuggestionCallback'](_0x4d07d4,_0x1d6b2c,_0x353e4e){const _0x2f0935=_0x4d07d4+':'+_0x1d6b2c+':'+_0x353e4e;return this['_customCallbacks']['get'](_0x2f0935)||this['_defaultCallbacks']['get'](_0x4d07d4+':'+_0x353e4e);}['_registerDefaultCallbacks'](){const _0x4d564a=()=>!0x1,_0x4ac7c3=_0x520832=>{_0x520832['sort']((_0x4c46af,_0xd76f7b)=>_0x4c46af['start']['isBefore'](_0xd76f7b['start'])?0x1:-0x1),this['_model']['change'](_0xc0e83e=>{for(const _0x14467e of _0x520832){let _0x48e4db;_0x48e4db=_0x14467e['end']['isAtEnd']&&_0x14467e['end']['parent']==_0x14467e['start']['nodeAfter']?_0xc0e83e['createSelection'](_0x14467e['start']['nodeAfter'],'on'):_0xc0e83e['createSelection'](_0x14467e),this['_model']['deleteContent'](_0x48e4db,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0xe191c1=(_0x2a7fe0,_0x4045b8)=>{_0x4045b8&&this['_model']['change'](_0x47af46=>{const {commandName:_0x255131,commandParams:_0x233419=[]}=_0x4045b8,_0x181bbc=_0x2a7fe0['map'](_0x1b0992=>(Kt(_0x1b0992)&&(_0x1b0992=this['_model']['createRange'](_0x1b0992['end'])),_0x1b0992))['filter'](_0x548868=>'$graveyard'!==_0x548868['root']['rootName']);if(_0x181bbc['length']<0x1)return;const _0x161318=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x32138a=>_0x2f9bba['fromRange'](_0x32138a));_0x47af46['setSelection'](_0x181bbc);for(const _0x28550c of this['_editor']['commands']['commands']())_0x28550c['refresh']();_0x233419['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x255131,..._0x233419);const _0x572ed1=_0x161318['filter'](_0x357b63=>'$graveyard'!=_0x357b63['root']['rootName']);_0x572ed1['length']>0x0&&_0x47af46['setSelection'](_0x572ed1);for(const _0x45c721 of _0x161318)_0x45c721['detach']();});},_0x2bb796=(_0x435e96,_0x2ce279)=>0x1==_0x435e96['length']&&0x1==_0x2ce279['length']&&_0x435e96[0x0]['end']['isEqual'](_0x2ce279[0x0]['start']),_0x308781=(_0x5354a4,_0x3facc8,_0x3cc8c4,_0x5e05bc)=>nn(_0x5354a4,_0x3facc8,_0x3cc8c4,_0x5e05bc)?[_0x5354a4,_0x3facc8]:nn(_0x3facc8,_0x5354a4,_0x5e05bc,_0x3cc8c4)?[_0x3facc8,_0x5354a4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4d564a),this['_defaultCallbacks']['set']('insertion:discard',_0x4ac7c3),this['_defaultCallbacks']['set']('insertion:join',_0x2bb796),this['_defaultCallbacks']['set']('insertion:chain',_0x308781),this['_defaultCallbacks']['set']('deletion:accept',_0x4ac7c3),this['_defaultCallbacks']['set']('deletion:discard',_0x4d564a),this['_defaultCallbacks']['set']('deletion:join',_0x2bb796),this['_defaultCallbacks']['set']('deletion:chain',_0x308781),this['_defaultCallbacks']['set']('formatInline:accept',_0xe191c1),this['_defaultCallbacks']['set']('formatInline:discard',_0x4d564a),this['_defaultCallbacks']['set']('formatInline:join',_0x2bb796),this['_defaultCallbacks']['set']('formatInline:chain',_0x4d564a),this['_defaultCallbacks']['set']('formatBlock:accept',_0xe191c1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4d564a),this['_defaultCallbacks']['set']('formatBlock:join',_0x2bb796),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4d564a),this['_defaultCallbacks']['set']('attribute:accept',_0x4d564a),this['_defaultCallbacks']['set']('attribute:discard',(_0x58b30d,_0x34bc8e)=>{if(!_0x34bc8e)return;const _0x4fecc1=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x588d16=>{if(_0x34bc8e['key']==m)for(const _0xf4c786 of _0x58b30d){const _0x13aee5=_0xf4c786['start']['nodeAfter'],_0x3a2a14=_0x34bc8e['oldValue'];_0x588d16['rename'](_0x13aee5,_0x3a2a14);}else{if(_0x4fecc1['_isBlockAttribute'](_0x34bc8e['key'])){for(const _0x38e9f2 of _0x58b30d)void 0x0!==_0x34bc8e['oldValue']?_0x588d16['setAttribute'](_0x34bc8e['key'],_0x34bc8e['oldValue'],_0x38e9f2['start']['nodeAfter']):_0x588d16['removeAttribute'](_0x34bc8e['key'],_0x38e9f2['start']['nodeAfter']);}else{for(const _0x552ad4 of _0x58b30d)_0x34bc8e['oldValue']?_0x588d16['setAttribute'](_0x34bc8e['key'],_0x34bc8e['oldValue'],_0x552ad4):_0x588d16['removeAttribute'](_0x34bc8e['key'],_0x552ad4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2bb796);}}function zt(_0x2f8f28,_0x7d05b0,_0x3b1a11){for(const _0x553541 of _0x7d05b0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x553541['root']==_0x553541)return!0x1;if(!_0x3b1a11['containsItem'](_0x553541))return!0x1;if(_0x2f8f28['isObject'](_0x553541)||_0x2f8f28['isLimit'](_0x553541))return!0x0;}return!0x1;}function Kt(_0x288f86){return _0x288f86['end']['parent']==_0x288f86['start']['nodeAfter']&&_0x288f86['end']['isAtStart'];}function Wt(_0x42d251,_0x3a8fb8,_0x2b96ff,_0x13b390){const _0x5d8101=_0x2bbae5=>!_0x2bbae5['item']['is']('$textProxy')&&!_0x13b390['isObject'](_0x2bbae5['item']),_0x2b9b35=_0x42d251['start']['getLastMatchingPosition'](_0x5d8101),_0x4b5c1a=_0x42d251['end']['getLastMatchingPosition'](_0x5d8101,{'direction':'backward'});return(!_0x42d251['start']['isEqual'](_0x2b9b35)||!_0x42d251['end']['isEqual'](_0x4b5c1a))&&(_0x2b9b35['isBefore'](_0x4b5c1a)?_0x2b96ff['updateMarker'](_0x3a8fb8,{'range':_0x2b96ff['createRange'](_0x2b9b35,_0x4b5c1a)}):_0x2b96ff['removeMarker'](_0x3a8fb8),!0x0);}function Ht(_0xab50ee){return _0x52b8a6(_0xab50ee);}function Qt(_0x4e804f){const _0x496f20=_0x4e804f['start']['nodeAfter'];return _0x496f20&&_0x496f20['is']('element');}function Xt(_0x44dacc){return Kt(_0x44dacc)||function(_0x180cec){return _0x180cec['start']['parent']==_0x180cec['end']['nodeBefore']&&_0x180cec['start']['isAtEnd'];}(_0x44dacc);}function Yt(_0x1d4327,_0x540f1a){try{const _0x51b3dc=_0x1d4327['getRange']();for(const _0x19cfc7 of _0x540f1a)if(_0x1d4327!==_0x19cfc7&&_0x51b3dc&&_0x51b3dc['isIntersecting'](_0x19cfc7['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x1fb67e,_0x2f51b3){return null==_0x1fb67e['end']['nodeBefore']&&_0x1fb67e['end']['parent']==_0x1fb67e['start']['nodeAfter']?tn(_0x1fb67e['start']['nodeAfter'],_0x2f51b3):_0x1fb67e;}function tn(_0x517225,_0x386c4b){const _0x334357=_0x386c4b['schema']['isObject'](_0x517225)||_0x386c4b['schema']['isSelectable'](_0x517225);return _0x386c4b['createRange'](_0x386c4b['createPositionAt'](_0x517225,'before'),_0x334357?_0x386c4b['createPositionAfter'](_0x517225):_0x386c4b['createPositionAt'](_0x517225,'end'));}function nn(_0x28a6d8,_0x107192,_0x53bd7b,_0x4f1fe6){return!!en(_0x28a6d8,_0x107192)&&_0x53bd7b['end']['isEqual'](_0x4f1fe6['start']);}function en(_0x4d1390,_0x23258a){if(!_0x4d1390['_isDataLoaded']||!_0x23258a['_isDataLoaded'])return!0x1;const _0x423760=new Set(Object['keys'](_0x4d1390['attributes'])),_0x3b6f84=new Set(Object['keys'](_0x23258a['attributes']));if(_0x423760['delete']('groupId'),_0x3b6f84['delete']('groupId'),0x0==_0x423760['size']&&0x0==_0x3b6f84['size'])return!0x0;if(_0x423760['size']!=_0x3b6f84['size'])return!0x1;const _0x420bc1={..._0x4d1390['attributes']},_0x74a537={..._0x23258a['attributes']};return delete _0x420bc1['groupId'],delete _0x74a537['groupId'],JSON['stringify'](_0x420bc1)==JSON['stringify'](_0x74a537);}function sn(_0xf0ed9c,_0x224777){const _0x44a192=on(_0xf0ed9c['attributes']),_0x11f436=on(_0x224777);if(!_0xf0ed9c['_isDataLoaded'])return!0x1;for(const _0x3c78f9 of Object['keys'](_0x11f436))if(!_0x3c4da3(_0x44a192[_0x3c78f9],_0x11f436[_0x3c78f9]))return!0x1;return!0x0;}function on(_0x15626b){const _0x17c22d=Object['assign']({},_0x15626b);return delete _0x17c22d['skipNestingCheck'],delete _0x17c22d['tablePasteChainId'],_0x17c22d;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x386c37(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x283f5d,_0x3cb91e,_0x45a64f,_0x102907){super(),this['model']=_0x3cb91e,this['view']=_0x45a64f,this['commentThreadController']=_0x102907,this['_editor']=_0x283f5d,this['_acceptCommand']=_0x283f5d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x283f5d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x470964,_0x34d529)=>_0x470964||_0x34d529),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x14780a=>_0x14780a&&this['_editor']['model']['canEditAt'](_0x3cb91e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x9b0c6c=>_0x9b0c6c&&this['_editor']['model']['canEditAt'](_0x3cb91e['getRanges']())),this['_pendingAction']=null,_0x45a64f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x45a64f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x45a64f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x45a64f,'change:isDirty',()=>{_0x45a64f['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 _0x468f2a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x468f2a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x20be2a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5eea8b,_0x6e847f,_0x191c97,_0x3f9ea2){super(_0x5eea8b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x16489a(_0x5eea8b,o(_0x5eea8b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x6e847f['authoredAt']),this['bind']('authoredAt')['to'](_0x6e847f),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',_0x6e847f,'authoredAt',this,'descriptionParts',(_0x115624,_0x2ed97b,_0x170c55)=>{const _0x18a581=_0x170c55['map'](_0x949ef2=>ls(_0x949ef2['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x115624-0x1,_0x6e847f['author']['name'],_0x2ed97b?_0x3f9ea2['formatDateTime'](_0x2ed97b):'',new DOMParser()['parseFromString'](_0x18a581,'text/html')['body']['textContent']]);}),this['focusables']=new _0x30678b(),this['focusTracker']=new _0x520c8a(),this['keystrokes']=new _0x45b742(),this['focusCycler']=new _0x43d12b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x21e06e=>_0x21e06e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x6e847f,this['_localUser']=_0x191c97,this['_config']=_0x3f9ea2,_0x3f9ea2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1917fb(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3a0da5}=this['_config'];this['commentsListView']=new _0x3a0da5(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',_0x23a925=>_0x23a925+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x59ef85,_0x55f919)=>_0x59ef85||!!_0x55f919);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5a561d}=this['_config'],_0x269786=new _0x5a561d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x343371=_0x269786['commentInputView'];return _0x269786['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x343371,'value',(_0x3fec8c,_0x2222d5,_0x278cfb)=>!!_0x278cfb||_0x3fec8c&&!_0x2222d5),_0x343371['on']('submit',(_0x80f76d,_0x3aa54a)=>{this['fire']('addComment',_0x3aa54a),_0x343371['editor']['setData']('');}),_0x343371['on']('cancel',()=>this['focus']()),_0x343371['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x269786;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x1ecd95,_0x443f09,_0x4ace7e,_0x2c15b5){super(_0x1ecd95,_0x443f09,_0x4ace7e,_0x2c15b5),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3b0fc6=>_0x3b0fc6&&_0x3b0fc6[0x0]?_0x3b0fc6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x528e16,_0x2dc408)=>{let _0x2053d7='';for(const _0x4b6df8 of _0x528e16)_0x2053d7+='<p>'+ls(_0x4b6df8['content'],_0x4b6df8['color'])+'</p>';return _0x2dc408?_0x2053d7:_0x1a599f(_0x2053d7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2c15b5['SuggestionView'](_0x1ecd95,_0x443f09,{'formatDateTime':_0x2c15b5['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 _0x3df9a7=this['bindTemplate'],_0x592214=[this['suggestionView']];return this['commentsListView']&&_0x592214['push'](this['commentsListView']),this['commentThreadInputView']&&_0x592214['push'](this['commentThreadInputView']),_0x592214['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3df9a7['if']('isActive','ck-suggestion-wrapper--active'),_0x3df9a7['to']('type',_0x5cc4ef=>'ck-suggestion-'+_0x5cc4ef),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':_0x3df9a7['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x592214};}['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 _0x20be2a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xd4f247,_0x4092b3,_0x563b53){super(_0xd4f247),this['_model']=_0x4092b3,this['_config']=_0x563b53,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4092b3),this['acceptButton']=this['_createButton'](o(_0xd4f247,'Accept\x20suggestion'),_0x12f3aa,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xd4f247,'Discard\x20suggestion'),_0x379fe7,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5d2179(_0xd4f247,_0x4092b3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x30678b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x520c8a(),this['keystrokes']=new _0x45b742(),this['focusCycler']=new _0x43d12b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x46b1cc=>_0x46b1cc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1aa308=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1aa308['innerHTML']=this['description'],this['on']('change:description',(_0x24a44a,_0x4e2d39,_0x2bb829)=>{_0x1aa308['innerHTML']=_0x2bb829;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x32e1ec=this['bindTemplate'],_0x175f01=[{'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':_0x32e1ec['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x32e1ec['to']('authoredAt',_0x500b23=>this['_config']['formatDateTime'](_0x500b23))}]}]},{'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']&&_0x175f01['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':_0x175f01}]};}['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'](_0x366572,_0x16bf6e,_0x1392a1,_0x5db2fc,_0x5a0ab6){const _0x37e7b2=new _0x52bc61(this['locale']);return _0x37e7b2['set']({'label':_0x366572,'icon':_0x16bf6e,'tooltip':!0x0,'tooltipPosition':_0x5a0ab6}),_0x37e7b2['extendTemplate']({'attributes':{'class':_0x1392a1}}),_0x37e7b2['on']('execute',()=>{this['fire'](_0x5db2fc,this['_model']['id']);}),_0x37e7b2;}['_setupKeyboardNavigation'](){const _0x1975c3=this['element'];this['keystrokes']['listenTo'](_0x1975c3);for(const _0x4fcaae of this['focusables'])this['focusTracker']['add'](_0x4fcaae['element']),this['keystrokes']['listenTo'](_0x4fcaae['element']);this['keystrokes']['set']('enter',(_0x416cac,_0x83620f)=>{_0x1975c3===_0x416cac['target']&&(this['focusCycler']['focusFirst'](),_0x83620f());}),this['keystrokes']['set']('esc',(_0x46a14e,_0x1369ac)=>{_0x1975c3!==_0x46a14e['target']&&(this['focus'](),_0x1369ac());});}}class u extends _0x2e7573{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x34d734,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x503a10){super(_0x503a10),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2974ee=this['editor']['config'];_0x2974ee['define']('trackChanges.SuggestionThreadView',fe),_0x2974ee['define']('trackChanges.SuggestionView',we),_0x2974ee['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2974ee['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1f9b2c,_0x497481){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3aa575,_0x4128bf]of this['_handleControllerBuffer']){const _0x3824ce=this['_suggestionToController']['has'](_0x3aa575);_0x3824ce||_0x4128bf?_0x3824ce&&_0x4128bf&&this['_destroyController'](_0x3aa575):this['_initializeController'](_0x3aa575);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1f9b2c,_0x497481);}['init'](){const _0x4051aa=this['editor'],_0x1456ee=_0x4051aa['plugins']['get']('TrackChangesEditing'),_0x4c10fc=_0x4051aa['plugins']['get']('Annotations'),_0x28fb95=_0x4051aa['plugins']['get']('EditorAnnotations'),_0x26db36=_0x4051aa['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x28fb95['addSourceCollector'](()=>{const _0x33af0f=[];for(const [_0x27bb3c,_0x772ebe]of Array['from'](this['_suggestionToController'])){const _0x7cdaba=_0x27bb3c['getAllAdjacentSuggestions'](),_0x5fe224=[];for(const _0x33d4c8 of _0x7cdaba){if(!_0x33d4c8['isInContent'])continue;if(_0x33d4c8['isMultiRange']){_0x5fe224['push'](..._0x33d4c8['getRanges']());continue;}const _0x3a9a69=_0x33d4c8['getFirstRange']();if(_0x5fe224['length']>0x0){const _0x4617a=_0x5fe224[0x0]['getJoined'](_0x3a9a69);if(_0x4617a){_0x5fe224[0x0]=_0x4617a;continue;}}_0x5fe224['push'](_0x3a9a69);}_0x33af0f['push']([_0x772ebe['view'],_0x5fe224]);}return _0x33af0f;}),this['listenTo'](_0x1456ee,'suggestionLoaded',(_0x55cc03,_0x2eef8c)=>{this['listenTo'](_0x2eef8c,'change:previous',(_0x5dbeed,_0x5dacf7,_0x717acc,_0x1f7316)=>{_0x2eef8c['isInContent']&&(null==_0x717acc?(this['_updateController'](_0x1f7316['head']),this['_handleSuggestionControllerDelayed'](_0x2eef8c,!0x1)):(this['_updateController'](_0x717acc['head']),null==_0x1f7316&&this['_handleSuggestionControllerDelayed'](_0x2eef8c,!0x0)));}),null!==_0x2eef8c['previous']?this['_updateController'](_0x2eef8c['head']):this['_handleSuggestionControllerDelayed'](_0x2eef8c,!0x1);}),this['listenTo'](_0x1456ee,'suggestionUnloaded',(_0x165e4e,_0x2ecda9,_0x5a8854)=>{this['stopListening'](_0x2ecda9,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2ecda9),this['_suggestionToController']['has'](_0x2ecda9)&&this['_destroyController'](_0x2ecda9),_0x5a8854&&this['_updateController'](_0x5a8854['head']);}),this['listenTo'](_0x1456ee,'suggestionChanged',(_0x170ed2,_0x5ed270)=>{this['_updateController'](_0x5ed270);}),this['listenTo'](_0x4c10fc,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x26db36,'addComment',(_0x556ef7,{threadId:_0x78c97f,isFromAdapter:_0x11bbcd})=>{if(_0x11bbcd||!_0x1456ee['hasSuggestion'](_0x78c97f))return;const _0x3ecd15=_0x1456ee['getSuggestion'](_0x78c97f);this['_suggestionToController']['get'](_0x3ecd15)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x13dab5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a4fae;for(const _0x31b722 in _0x13dab5){const _0x5e1682=_0x31b722,_0x15b257=_0x13dab5[_0x5e1682];if('trackChangesLicenseKeyValid'==_0x15b257||'trackChangesLicenseKeyInvalid'==_0x15b257||'trackChangesLicenseKeyExpired'==_0x15b257||'trackChangesLicenseKeyDomainLimit'==_0x15b257||'trackChangesLicenseKeyNotAllowed'==_0x15b257||'trackChangesLicenseKeyEvaluationLimit'==_0x15b257||'trackChangesLicenseKeyTrialLimit'==_0x15b257||'trackChangesLicenseKeyUsageLimit'==_0x15b257){delete _0x13dab5[_0x5e1682],_0x2a4fae=_0x15b257,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2a4fae&&_0x13dab5['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2a4fae&&_0x13dab5['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2a4fae&&_0x13dab5['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2a4fae&&_0x13dab5['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2a4fae&&_0x13dab5['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2a4fae&&_0x13dab5['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2a4fae&&_0x13dab5['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3724dd){const _0x199782=this['_suggestionToController']['get'](_0x3724dd);if(!_0x199782)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x199782['view'])||null;}['getSuggestionForAnnotation'](_0x452ae4){const _0xfae8f0=this['_viewToController']['get'](_0x452ae4['innerView']);return _0xfae8f0?_0xfae8f0['model']:null;}['_refreshActiveMarkers'](){const _0x493ba3=this['editor']['plugins']['get']('Annotations'),_0x2ac83f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46693a=Array['from'](_0x493ba3['activeAnnotations'],_0x3f2efe=>_0x3f2efe['innerView'])['filter'](_0x483db4=>this['_viewToController']['has'](_0x483db4)),_0x8cd57b=[];for(const _0x571602 of _0x46693a){const _0x578f40=this['_viewToController']['get'](_0x571602)['model']['getAllAdjacentSuggestions']();_0x8cd57b['push'](..._0x578f40['reduce']((_0x5b1fbb,_0x5c40bd)=>[..._0x5b1fbb,..._0x5c40bd['getMarkerNames']()],[]));}_0x2ac83f['activeMarkers']=_0x8cd57b;}['_addUIComponentsToFactory'](){const _0x2b67e9=this['editor'],_0x38ff27=_0x2b67e9['locale'],_0x3bc6e9=o(_0x38ff27,'Track\x20changes'),_0x309b33=new _0x337a51([{'type':'switchbutton','model':new _0x154060({'withText':!0x0,'isToggleable':!0x0,'label':_0x3bc6e9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x154060({'withText':!0x0,'label':o(_0x38ff27,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x154060({'withText':!0x0,'label':o(_0x38ff27,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x154060({'withText':!0x0,'label':o(_0x38ff27,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x154060({'withText':!0x0,'label':o(_0x38ff27,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2b67e9['plugins']['has']('TrackChangesPreview')&&_0x309b33['addMany']([{'type':'separator'},{'type':'button','model':new _0x154060({'withText':!0x0,'label':o(_0x38ff27,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x26282e of _0x309b33)if(ke(_0x26282e)){const _0x21607f=_0x2b67e9['commands']['get'](_0x26282e['model']['commandName']);_0x26282e['model']['bind']('isOn','isEnabled')['to'](_0x21607f,'value','isEnabled');}_0x2b67e9['ui']['componentFactory']['add']('trackChanges',_0x486fb2=>this['_createToolbarButton'](_0x486fb2,_0x309b33,_0x3bc6e9)),_0x2b67e9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x32d2df=>this['_createMenuBarMenu'](_0x32d2df,_0x309b33,_0x3bc6e9));}['_createToolbarButton'](_0x2e97d8,_0x5e83b9,_0x322d72){const _0x377fdc=_0x4cc6f2(_0x2e97d8,_0x2533a2),_0x3ec6b1=this['editor']['commands']['get']('trackChanges');_0x377fdc['buttonView']['set']({'tooltip':_0x322d72,'label':_0x322d72,'icon':_0x3ce186}),_0x377fdc['buttonView']['bind']('isOn')['to'](_0x3ec6b1,'value'),_0x377fdc['buttonView']['on']('execute',()=>{_0x3ec6b1['execute'](),this['editor']['editing']['view']['focus']();}),_0x403ddc(_0x377fdc,_0x5e83b9,{'role':'menu'});const _0x446826=[];for(const _0x2af27b of _0x5e83b9)ke(_0x2af27b)&&_0x446826['push'](this['editor']['commands']['get'](_0x2af27b['model']['commandName']));const _0x4b291f=_0x377fdc['buttonView'];return _0x4b291f['actionView']['unbind']('isEnabled'),_0x4b291f['arrowView']['unbind']('isEnabled'),_0x4b291f['actionView']['bind']('isEnabled')['to'](_0x3ec6b1,'isEnabled'),_0x4b291f['arrowView']['bind']('isEnabled')['toMany'](_0x446826,'isEnabled',(..._0x133b76)=>_0x133b76['some'](_0xeec100=>_0xeec100)),_0x377fdc['on']('execute',_0x27b715=>{this['editor']['execute'](_0x27b715['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x377fdc;}['_createMenuBarMenu'](_0x5cd132,_0x11536e,_0x4f9c96){const _0x3eeafd=new _0x300cd3(_0x5cd132),_0x202750=this['editor']['commands']['get']('trackChanges');_0x3eeafd['buttonView']['set']({'label':_0x4f9c96,'icon':_0x3ce186});const _0x5e309c=new _0x165e35(_0x5cd132);for(const _0x6805a0 of _0x11536e){if('separator'==_0x6805a0['type']){_0x5e309c['items']['add'](new _0x475c98(_0x5cd132));continue;}const _0x7062f5=new _0x2e9641(_0x5cd132,_0x3eeafd),_0xc4fac6=new _0x454e07(_0x5cd132),_0x136f71=_0x6805a0['model'];_0xc4fac6['bind'](...Object['keys'](_0x136f71))['to'](_0x136f71),_0xc4fac6['delegate']('execute')['to'](_0x3eeafd),_0xc4fac6['on']('execute',()=>{this['editor']['execute'](_0x136f71['commandName']),this['editor']['editing']['view']['focus']();}),_0x7062f5['children']['add'](_0xc4fac6),_0x5e309c['items']['add'](_0x7062f5);}return _0x3eeafd['bind']('isEnabled')['to'](_0x202750,'isEnabled'),_0x3eeafd['panelView']['children']['add'](_0x5e309c),_0x3eeafd;}['_initializeController'](_0x65c50b){const _0x15a95e=this['editor'],_0x5bfdbe=_0x15a95e['config'],_0x39b489=_0x15a95e['plugins']['get']('Annotations'),_0x4a1492=_0x15a95e['plugins']['get']('CommentsRepository'),_0x24eb79=_0x15a95e['plugins']['get']('EditorAnnotations'),_0x397794=_0x15a95e['plugins']['get'](_0x34d734)['me'],_0x42263a=_0x5bfdbe['get']('trackChanges')['SuggestionThreadView'],_0x27bfbe=_0x5bfdbe['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x48c332,CommentThreadInputView:_0x92bf2d}=_0x15a95e['plugins']['get']('CommentsUI');let _0x196bdf,_0x11d3db,_0x45e710;this['_annotationViews']['has'](_0x65c50b['id'])?(_0x11d3db=this['_annotationViews']['get'](_0x65c50b['id']),_0x196bdf=_0x11d3db['mainView']):(_0x196bdf=new _0x42263a(_0x15a95e['locale'],_0x65c50b,_0x397794,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5bfdbe['get']('comments.editorConfig'),'licenseKey':_0x5bfdbe['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5bfdbe['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5bfdbe['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5bfdbe['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4a8dec(_0x5bfdbe['get']('locale'),_0x15a95e['locale']),'CommentView':_0x5bfdbe['get']('comments')['CommentView'],'CommentsListView':_0x48c332,'CommentThreadInputView':_0x92bf2d,'SuggestionView':_0x27bfbe}),_0x196bdf['suggestionView']['acceptButton']['on']('execute',()=>{_0x15a95e['editing']['view']['focus']();}),_0x196bdf['suggestionView']['discardButton']['on']('execute',()=>{_0x15a95e['editing']['view']['focus']();}),_0x11d3db=_0x39b489['createAnnotationView'](this['editor']['locale'],_0x196bdf),_0x11d3db['bind']('isDirty')['to'](_0x196bdf,'isDirty'),_0x11d3db['bind']('length')['to'](_0x196bdf),_0x11d3db['bind']('type')['to'](_0x196bdf,'type',_0x589978=>'suggestion-'+_0x589978),_0x196bdf['on']('escape',()=>{_0x45e710['fire']('escape');}),this['_annotationViews']['set'](_0x65c50b['id'],_0x11d3db));const _0x30a34a=_0x4a1492['createCommentThreadController'](_0x65c50b['commentThread'],_0x196bdf),_0x3342f5=new pe(_0x15a95e,_0x65c50b,_0x196bdf,_0x30a34a),_0x3045e2=_0x65c50b['getAllAdjacentSuggestions']()['filter'](_0x21911e=>_0x21911e['isInContent']);_0x196bdf['descriptionParts']=_0x15a95e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3045e2),this['_suggestionToController']['set'](_0x65c50b,_0x3342f5),this['_viewToController']['set'](_0x196bdf,_0x3342f5);const _0x53255c=()=>{const _0x4a340=[],_0x32e473=_0x65c50b['getAllAdjacentSuggestions']()['filter'](_0x21f538=>_0x21f538['isInContent']);for(const _0x2e684f of _0x32e473)_0x4a340['push'](..._0x2e684f['getMarkers']());return _0x18268c(_0x15a95e['editing'],_0x4a340);};_0x45e710=_0x39b489['createAnnotation']({'view':_0x11d3db,'target':_0x53255c,'type':()=>'suggestion-'+_0x3342f5['view']['type'],'isVisible':!!_0x53255c()}),_0x4a1492['_bindAnnotationToEditors'](_0x196bdf,_0x45e710),_0x39b489['add'](_0x45e710),_0x24eb79['registerAnnotation'](_0x45e710);}['_destroyController'](_0x212414){const _0x31aed4=this['editor']['plugins']['get']('CommentsRepository'),_0x2b4802=this['editor']['plugins']['get']('Annotations'),_0x5607e7=this['_suggestionToController']['get'](_0x212414),_0x503547=_0x5607e7['view'],_0x33e8c8=_0x2b4802['getByInnerView'](_0x503547);_0x31aed4['_unbindEditors'](_0x503547),_0x33e8c8&&_0x2b4802['remove'](_0x33e8c8),this['_suggestionToController']['delete'](_0x212414),this['_viewToController']['delete'](_0x503547),_0x5607e7['destroy']();}['_updateController'](_0x4fe1a2){if(!_0x4fe1a2['isInContent']||!this['_suggestionToController']['has'](_0x4fe1a2))return;const _0x3d3b14=this['editor']['plugins']['get']('TrackChangesEditing'),_0x550dda=this['_suggestionToController']['get'](_0x4fe1a2),_0x38532c=_0x4fe1a2['getAllAdjacentSuggestions']();_0x550dda['view']['descriptionParts']=_0x3d3b14['descriptionFactory']['getDescriptions'](_0x38532c);}['destroy'](){for(const _0x41f2dc of this['_suggestionToController']['keys']())this['_destroyController'](_0x41f2dc);for(const _0x3561f9 of this['_annotationViews']['values']())_0x3561f9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x274550){return'model'in _0x274550;}class Ne extends _0x2e7573{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x30222b){this['editor']['plugins']['get'](d)['adapter']=_0x30222b;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x29da77){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x29da77);}['getSuggestions']({skipNotAttached:_0x59eef4=!0x1,toJSON:_0x7bb554=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x59eef4,'toJSON':_0x7bb554});}['getSuggestion'](_0x26b329){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x26b329);}}const p=['Pagination'];class re extends _0x2e7573{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2c91ab=this['editor'];if(_0x2c91ab['config']['define']('trackChangesData.editorCreator',_0x10c16c=>{const _0x22f6b3=_0x2c91ab['model']['document']['getRootNames']()['reduce']((_0x112b68,_0x269464)=>(_0x112b68[_0x269464]='',_0x112b68),{});return _0x2c91ab['constructor']['create'](_0x22f6b3,_0x10c16c);}),'function'!=typeof _0x2c91ab['config']['get']('trackChangesData')['editorCreator'])throw new _0x46a289('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x516217){return P(this['editor'],!0x0,_0x516217);}['getDataWithDiscardedSuggestions'](_0xbad6b0){return P(this['editor'],!0x1,_0xbad6b0);}}class Fe extends _0x2e7573{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48880d){function _0x4bebc1(_0x760ce9){return _0x760ce9['map'](_0x1c34ee=>String['fromCharCode'](_0x1c34ee))['join']('');}super(_0x48880d),this['result']='end',_0x48880d[_0x4bebc1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bebc1([0x76,0x69,0x65,0x77])][_0x4bebc1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4bebc1([0x61,0x75,0x74,0x6f]),_0x48880d[_0x4bebc1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4bebc1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4bebc1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4bebc1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4bebc1([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(_0x19b785){return void 0x0!==_0x19b785['getRootsAttributes'];}async function P(_0x22b449,_0x248122,_0x52c9b0){const _0xa9bfeb=_0x8731a5(_0x22b449,p);_0xa9bfeb['plugins']['push'](d,Fe),_0xa9bfeb['rootsAttributes']=De(_0x22b449)?_0x22b449['getRootsAttributes']():void 0x0;const _0x48b380=document['createDocumentFragment'](),_0x4329a0=_0x22b449['config']['get']('trackChangesData')['editorCreator'],_0x513d7b=await _0x4329a0(_0xa9bfeb,()=>function(_0x166f86){const _0x59d933=document['createElement']('div');return _0x166f86['appendChild'](_0x59d933),_0x59d933;}(_0x48b380));!function(_0x3865c9,_0xc5f3f2){const _0x1f2eb1=_0x3865c9['model']['document']['getRootNames']()['reduce']((_0x49b6f5,_0x169306)=>(_0x49b6f5[_0x169306]=_0x3865c9['data']['get']({'rootName':_0x169306}),_0x49b6f5),{}),_0x5adf0f=_0x3865c9['plugins']['get']('Users')['users']['map'](_0xae015a=>({'id':_0xae015a['id'],'name':_0xae015a['name']})),_0x16b396=_0x3865c9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3f33a9=_0x3865c9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xcc2a50=_0xc5f3f2['plugins']['get']('Users'),_0x1e6d57=_0xc5f3f2['plugins']['get']('TrackChangesEditing'),_0x208d2c=_0xc5f3f2['plugins']['get']('CommentsRepository');for(const _0x113913 of _0x208d2c['getCommentThreads']())_0x113913['remove']();for(const _0x1ea647 of _0x5adf0f)_0xcc2a50['getUser'](_0x1ea647['id'])||_0xcc2a50['addUser'](_0x1ea647);_0xcc2a50['me']||_0xcc2a50['useAnonymousUser']();for(const _0x1c2552 of _0x3f33a9)_0x208d2c['addCommentThread'](_0x1c2552);for(const _0x281d63 of _0x16b396)_0x1e6d57['addSuggestionData'](_0x281d63);_0xc5f3f2['data']['set'](_0x1f2eb1);}(_0x22b449,_0x513d7b),_0x513d7b['execute'](_0x248122?'acceptAllSuggestions':'discardAllSuggestions');const _0xcaaa8=De(_0x513d7b)?_0x513d7b['getFullData'](_0x52c9b0):_0x513d7b['data']['get'](_0x52c9b0);return await _0x513d7b['destroy'](),_0xcaaa8;}class Me extends _0x20be2a{['options'];constructor(_0x1c5547,_0x36880d){super(_0x1c5547),this['options']=_0x36880d,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'](_0x86c9f8,_0x150a23){if(!this['element'])return;const _0x3029f8=[];for(const [_0x2488b1,_0x57a19b]of _0x86c9f8){const _0x43d5d1=document['createElement']('div');_0x43d5d1['setAttribute']('data-ck-root-name',_0x2488b1),_0x43d5d1['className']=_0x57a19b['classes']+'\x20ck-track-changes-preview__root-container',_0x43d5d1['innerHTML']=_0x57a19b['content'],_0x3029f8['push'](_0x43d5d1);}_0x150a23(this['element'],_0x3029f8),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x5c7385{constructor(_0x5a40ff){super(_0x5a40ff),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x249884=this['editor'],_0x53d796=_0x249884['locale'],_0x488d1f=_0x249884['plugins']['get']('Dialog');let _0xf8d521;const _0x39d394=function(_0x3b09ec){const _0x4c7009={};if('editables'in _0x3b09ec['ui']['view']){for(const [_0x50a7cd,_0x4fe1a7]of Object['entries'](_0x3b09ec['ui']['view']['editables']))_0x4c7009[_0x50a7cd]=_0x4fe1a7['element'];}else _0x4c7009[_0x3b09ec['model']['document']['getRootNames']()[0x0]]=_0x3b09ec['ui']['view']['editable']['element'];return _0x4c7009;}(_0x249884),_0x4eeb9c=function(_0x2a31a5){let _0x45d008=0x0;for(const _0xd8018c of Object['values'](_0x2a31a5))_0x45d008=Math['max'](_0x45d008,_0xd8018c['getBoundingClientRect']()['width']);let _0x5440c5=0x0;for(const _0x5d2121 of Object['values'](_0x2a31a5))_0x5440c5+=_0x5d2121['getBoundingClientRect']()['height'];const _0xe5db6b=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2810e9=Math['min'](_0x5440c5,_0xe5db6b);return{'width':_0x45d008,'height':_0x2810e9};}(_0x39d394);_0x488d1f['show']({'id':'finalContentPreview','title':o(_0x53d796,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x53d796,{'dialogRects':_0x4eeb9c}),'onHide':()=>{_0xf8d521['detachFromDom']();},'onShow':()=>{_0x249884['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5ef109=>{const _0x367ad0=this['_standarizeRootsData'](_0x5ef109,_0x249884,_0x39d394);_0x488d1f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x367ad0,_0x249884['config']['get']('trackChanges.preview.renderFunction'));}),_0xf8d521=new _0x423b18(_0x53d796,[_0x488d1f['view']]),_0xf8d521['attachToDom'](),_0xf8d521['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x249884['once']('destroy',()=>{_0xf8d521['detachFromDom']();});const _0x2abda2=_0x488d1f['view']['headerView']['class'];_0x488d1f['view']['headerView']['class']=_0x2abda2?_0x2abda2+'\x20ck-reset_all':'ck-reset_all',_0x488d1f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x488d1f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3545f2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x753da2=_0x3545f2['previewMode'],_0x1c940a={};if('$labels'===_0x753da2){for(const _0x143b27 of _0x3545f2['getMergeFieldsIds']())_0x1c940a[_0x143b27]=_0x3545f2['getLabel'](_0x143b27)||_0x143b27;}else{const _0x3734bf='$defaultValues'===_0x753da2?_0x3545f2['getDefaultValues']():_0x3545f2['getDataSetValues'](_0x753da2,!0x0);for(const _0x26c523 of Object['entries'](_0x3734bf)){const [_0x1e79ea,_0xb0edbb]=_0x26c523;_0x1c940a[_0x1e79ea]=null!==_0xb0edbb?_0xb0edbb:_0x3545f2['getLabel'](_0x1e79ea)||_0x1e79ea;}}return{'mergeFieldsData':_0x1c940a};}['_standarizeRootsData'](_0x255772,_0x578935,_0x143ff3){let _0x255ee1;if('string'==typeof _0x255772){const _0x1386b5=_0x578935['model']['document']['getRootNames']()[0x0];_0x255ee1={[_0x1386b5]:_0x255772};}else _0x255ee1=_0x255772;const _0x383b57=this['_fixMediaEmbeds'](_0x255ee1,_0x578935),_0x5696f9=function(_0xf72e81,_0x53859d){for(const [_0x1db8ef,_0x4def4a]of _0xf72e81)_0x4def4a['classes']=_0x53859d[_0x1db8ef]['classList']['value']['replace']('ck-focused','');return _0xf72e81;}(this['_sortRoots'](_0x578935)['reduce']((_0xe4fbc1,_0x13658a)=>(_0xe4fbc1['push']([_0x13658a,{'content':_0x383b57[_0x13658a],'classes':''}]),_0xe4fbc1),[]),_0x143ff3);return _0x5696f9;}['_fixMediaEmbeds'](_0x4a7437,_0x5bfb9f){if(!_0x5bfb9f['plugins']['has']('MediaEmbedEditing'))return _0x4a7437;const _0x1af7bb=_0x5bfb9f['plugins']['get']('MediaEmbedEditing');for(const [_0x48bab1,_0x2de316]of Object['entries'](_0x4a7437)){const _0x57f56e=document['createElement']('div');_0x57f56e['innerHTML']=_0x2de316,(_0x57f56e['querySelectorAll']('figure.media')['forEach'](_0x49217a=>{const _0x51b8fc=_0x49217a['querySelector']('oembed');if(_0x51b8fc){const _0x19dfe2=_0x51b8fc['getAttribute']('url');if(_0x19dfe2){const _0x2e478d=_0x1af7bb['registry']['getMediaViewElement'](new _0x1b9e66(_0x5bfb9f['editing']['view']['document']),_0x19dfe2,{'elementName':'','renderForEditingView':!0x0}),_0x17bf8b=document['createElement']('div');_0x17bf8b['classList']['add']('ck-media__wrapper'),_0x2e478d['render'](_0x17bf8b,_0x5bfb9f['editing']['view']['domConverter']),_0x51b8fc['replaceWith'](_0x17bf8b);}}}),_0x4a7437[_0x48bab1]=_0x57f56e['innerHTML']);}return _0x4a7437;}['_sortRoots'](_0x3f210b){if(!function(_0xc9da6a){return void 0x0!==_0xc9da6a['getRootsAttributes'];}(_0x3f210b))return _0x3f210b['model']['document']['getRootNames']();const _0x6e03c6=[],_0x465426=new Map();for(const _0x5df994 of _0x3f210b['model']['document']['getRootNames']()){const _0x1869c0=_0x3f210b['editing']['view']['getDomRoot'](_0x5df994)['getClientRects']()['item'](0x0);_0x6e03c6['push'](_0x5df994),_0x465426['set'](_0x5df994,_0x1869c0);}return _0x6e03c6['sort']((_0x286440,_0x1ddfa6)=>{const _0x174a5f=_0x465426['get'](_0x286440),_0x3e80aa=_0x465426['get'](_0x1ddfa6);return _0x174a5f['y']-_0x3e80aa['y']||_0x174a5f['x']-_0x3e80aa['x'];}),_0x6e03c6;}}class Ue extends _0x2e7573{static get['requires'](){return[re,_0x3dac62];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27dc67){super(_0x27dc67),_0x27dc67['commands']['add']('previewFinalContent',new te(this['editor'])),_0x27dc67['config']['define']('trackChanges.preview.renderFunction',(_0x346d9e,_0x218df6)=>{for(const _0x328e0e of _0x218df6)_0x346d9e['appendChild'](_0x328e0e);});}}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 _0x36edc8,Plugin as _0x54af3c,PendingActions as _0x4b9cb9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x516a4a,ObservableMixin as _0x410f81,uid as _0x1c2d37,priorities as _0x263901,insertToPriorityArray as _0x4a60f8,logWarning as _0x2d6b3c,getEnvKeystrokeText as _0xcb5a82,FocusTracker as _0x4caf73,KeystrokeHandler as _0xd59a71,Collection as _0x3f49e9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x288573,IconCancel as _0x3cfc4b,IconTrackChanges as _0x107492}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xdfd96,View as _0x5ec9cc,ViewCollection as _0x1b0677,FocusCycler as _0x780c9a,UIModel as _0x41d919,createDropdown as _0x20339b,SplitButtonView as _0x2ea399,addListToDropdown as _0x53a769,MenuBarMenuView as _0x5793a1,MenuBarMenuListView as _0x34d7e0,ListSeparatorView as _0x5a3059,MenuBarMenuListItemView as _0x2c9326,MenuBarMenuListItemButtonView as _0x2b77b4,BodyCollection as _0x43b419,Dialog as _0x4e81fc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x41a304,DocumentCompare as _0x31cfdb,hashObject as _0x8acf7,surroundingMarkersDetector as _0x1d628a,FOCUS_ANNOTATION_KEYSTROKE as _0x389cfb,AriaDescriptionView as _0x34b8e3,setupThreadKeyboardNavigation as _0x5bb99a,trimHtml as _0x5e585f,UserView as _0x45090a,LateFocusButtonView as _0x2ae781,getDateTimeFormatter as _0xd99787,getAllMarkersDomElementsSorted as _0x74e1ba,sanitizeEditorConfig as _0x5ce0d3}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x4e41e4,ModelLiveRange as _0x3935f7,ModelLivePosition as _0x15f5b8,ViewDowncastWriter as _0x56c1c9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x47419b,set as _0x2152b1,isEqual as _0x392435,unset as _0x4addc7,omit as Pt}from'es-toolkit/compat';import{Delete as _0x3b307b,Input as _0x17a653}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x556c87}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x14891d}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 _0x36edc8{['_enabledCommands'];constructor(_0x2102ae,_0x58562a){super(_0x2102ae),this['_enabledCommands']=_0x58562a,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 _0x24c429 of this['editor']['commands']['commands']())_0x24c429['affectsData']&&!this['_enabledCommands']['has'](_0x24c429)&&_0x24c429['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x325ae5 of this['editor']['commands']['commands']())_0x325ae5['affectsData']&&!this['_enabledCommands']['has'](_0x325ae5)&&_0x325ae5['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x36edc8{['_suggestions'];constructor(_0x385e91,_0x541ea8){super(_0x385e91),this['_suggestions']=_0x541ea8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2e408e){const _0x1faa1e=this['_suggestions']['get'](_0x2e408e);if(!_0x1faa1e)throw new _0x516a4a('track-changes-accept-suggestion-not-found',this);const _0x3ca7f4=_0x1faa1e['getRanges']();this['editor']['model']['canEditAt'](_0x3ca7f4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1faa1e);}}class D extends _0x36edc8{['_suggestions'];constructor(_0x3ae6fb,_0x3b2b44){super(_0x3ae6fb),this['_suggestions']=_0x3b2b44,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xf239ee){const _0x41d99a=this['_suggestions']['get'](_0xf239ee);if(!_0x41d99a)throw new _0x516a4a('track-changes-discard-suggestion-not-found',this);const _0xfa6237=_0x41d99a['getRanges']();this['editor']['model']['canEditAt'](_0xfa6237)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x41d99a);}}function ls(_0x99bfd3,_0x154195){let _0x28c886='';return _0x28c886+=_0x99bfd3['split']('*')['map']((_0x261384,_0x1a73d3)=>_0x1a73d3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x261384)+'</span>':rn(_0x261384))['join'](''),_0x154195&&(_0x28c886+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x154195['value']+'\x22\x20title=\x22'+_0x154195['title']+'\x22></span>'),_0x28c886;}function rn(_0x37e003){const _0xd61117=document['createElement']('span');return _0xd61117['innerText']=_0x37e003,_0xd61117['innerHTML'];}function ts(_0x2e5c4b){return _0x2e5c4b['sort']((_0x4555ac,_0x119c50)=>'attribute'===_0x4555ac['type']&&'attribute'!==_0x119c50['type']?-0x1:'attribute'!==_0x4555ac['type']&&'attribute'===_0x119c50['type']?0x1:'deletion'==_0x4555ac['type']&&'deletion'!=_0x119c50['type']?-0x1:'deletion'!=_0x4555ac['type']&&'deletion'==_0x119c50['type']?0x1:0x0);}function to(_0x46bca4,_0x3788c6){let _0x157f53,_0xe5b806=0x0;const _0x3339b4=[],_0x3e9bb2=_0x3788c6['schema'];for(;_0xe5b806<_0x46bca4['length'];){const _0x48b497=_0x46bca4[_0xe5b806],_0x1b2bea=_0x46bca4[_0xe5b806+0x1];_0x157f53||(_0x157f53=_0x3788c6['createPositionBefore'](_0x48b497)),cn(_0x3788c6,_0x48b497,_0x1b2bea)||(_0x3339b4['push'](_0x3788c6['createRange'](_0x157f53,_0x3e9bb2['isObject'](_0x48b497)?_0x3788c6['createPositionAfter'](_0x48b497):_0x3788c6['createPositionAt'](_0x48b497,'end'))),_0x157f53=null),_0xe5b806++;}return _0x3339b4;}function cn(_0x55b997,_0x5d9a52,_0x30b297){if(!_0x30b297)return!0x1;const _0x55356b=_0x55b997['createPositionAfter'](_0x5d9a52),_0x833b71=_0x55b997['createPositionBefore'](_0x30b297);return _0x55356b['isTouching'](_0x833b71);}function rs(_0x3b3245,_0x5c1570,_0x3c3eab){for(;_0x3c3eab['length'];){const _0x20ee24=_0x3c3eab['splice'](0x0,0x64);_0x3b3245['change'](()=>{for(const _0x530f4c of _0x20ee24)_0x530f4c['isInContent']&&_0x5c1570['execute'](_0x530f4c['id']);});}}class B extends _0x36edc8{['_command'];['_suggestions'];constructor(_0x1714a0,_0x48a0fb,_0x16e611){super(_0x1714a0),this['_command']=_0x48a0fb,this['_suggestions']=_0x16e611,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xa24fb0=Array['from'](this['_suggestions']['values']())['some'](_0x5d4199=>_0x5d4199['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xa24fb0;}['execute'](){const _0x1204d8=ts(Array['from'](this['_suggestions']['values']()));for(const _0x545c67 of _0x1204d8){const _0x2d83fc=_0x545c67['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2d83fc))return;}rs(this['editor']['model'],this['_command'],_0x1204d8);}}class O extends _0x36edc8{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3c46e8,_0x377e8a,_0x5c4344){super(_0x3c46e8),this['_command']=_0x377e8a,this['_suggestions']=_0x5c4344,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x22aae6=this['editor']['model']['document']['selection'],_0x42050a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xfc0c37,_0x4fde1e){const _0x80e996=Array['from'](_0xfc0c37['getRanges']()),_0xb35e8d=new Set();for(const _0x570cc0 of _0x4fde1e)if(_0x570cc0['isInContent']){for(const _0x18a8f8 of _0x80e996)for(const _0x173c27 of _0x570cc0['getRanges']())(_0x18a8f8['isIntersecting'](_0x173c27)||_0xfc0c37['isCollapsed']&&!_0x570cc0['isMultiRange']&&_0x570cc0['next']&&_0x173c27['end']['isTouching'](_0x18a8f8['start']))&&_0xb35e8d['add'](_0x570cc0);}return _0xb35e8d;}(_0x22aae6,_0x42050a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2465c7=ts(Array['from'](this['_selectedSuggestions']));for(const _0x56e2fb of _0x2465c7){const _0x44c6e2=_0x56e2fb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x44c6e2))return;}rs(this['editor']['model'],this['_command'],_0x2465c7);}}class x extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x410f81(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xafb7c7,_0x29a14f){super(),this['id']=_0x29a14f['id'],this['type']=_0x29a14f['type'],this['subType']=_0x29a14f['subType']||null,this['author']=_0x29a14f['author'],this['creator']=_0x29a14f['creator']||_0x29a14f['author'],this['isExternal']=Boolean(_0x29a14f['attributes']&&_0x29a14f['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x29a14f['originalSuggestionId']||null,this['_model']=_0xafb7c7,this['_onAccept']=_0x29a14f['onAccept'],this['_onDiscard']=_0x29a14f['onDiscard'],this['_onAttributesChange']=_0x29a14f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x29a14f['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 _0xff12f5=this;for(;_0xff12f5['previous'];)_0xff12f5=_0xff12f5['previous'];return _0xff12f5;}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'](_0x2aa18e){this['_markerNames']['add'](_0x2aa18e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4aad35=>this['_model']['markers']['get'](_0x4aad35))['filter'](_0x95e730=>_0x95e730);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4b2861=>{for(const _0x1492bb of this['getMarkers']())_0x4b2861['removeMarker'](_0x1492bb);}),this['_markerNames']['clear']();}['removeMarker'](_0x3ec886){this['_model']['change'](_0x38755f=>{_0x38755f['removeMarker'](_0x3ec886);}),this['_markerNames']['delete'](_0x3ec886);}['addRange'](_0x289f0a){const _0x5da3b1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x5da3b1),this['_model']['change'](_0x462e69=>{_0x462e69['addMarker'](_0x5da3b1,{'range':_0x289f0a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x95d331){for(const _0x47d4bf of this['getRanges']())if(_0x47d4bf['isIntersecting'](_0x95d331))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4cc991=>_0x4cc991['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x58aa17,_0x3b4969)=>[..._0x58aa17,..._0x3b4969['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3a7717=this['getRanges']();if(0x1!=_0x3a7717['length'])return null;const _0x26103a=_0x3a7717[0x0],_0x4fbbec=_0x26103a['start']['nodeAfter'],_0x243d30=_0x26103a['end']['nodeBefore'];return _0x4fbbec instanceof _0x4e41e4?_0x4fbbec!=_0x243d30?null:_0x4fbbec: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 _0x5b2891=[];let _0x2c7cf1=this['head'];for(;_0x2c7cf1;)_0x5b2891['push'](_0x2c7cf1),_0x2c7cf1=_0x2c7cf1['next'];return _0x5b2891;}['setAttribute'](_0x5b87ef,_0x244f01){const _0x26363b=_0x47419b(this['attributes']);_0x2152b1(_0x26363b,_0x5b87ef,_0x244f01),_0x392435(_0x26363b,this['attributes'])||(this['attributes']=_0x26363b,this['_onAttributesChange'](_0x26363b));}['removeAttribute'](_0x4610da){const _0x241790=_0x47419b(this['attributes']);_0x4addc7(_0x241790,_0x4610da),_0x392435(_0x241790,this['attributes'])||(this['attributes']=_0x241790,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 _0x1c2d37()['substr'](0x1,0x5);}}function o(_0x4f5234,_0x5e4cd4,_0x82ad96){const _0x4ba28e=_0x4f5234['t'],t=_0x4f5234['t'];switch(_0x5e4cd4){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',_0x82ad96);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x82ad96);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x82ad96);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x82ad96);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x82ad96);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',_0x82ad96);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x82ad96);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',_0x82ad96);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x82ad96);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x82ad96);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x82ad96);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x82ad96);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x82ad96);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x82ad96);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x82ad96);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x82ad96);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x82ad96);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x82ad96);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x82ad96);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x82ad96);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x82ad96);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x82ad96);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x82ad96);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x82ad96);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x82ad96);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'},_0x82ad96);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x82ad96);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x82ad96);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x82ad96);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x82ad96);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x82ad96);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x82ad96);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x82ad96);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'},_0x82ad96);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x82ad96);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x82ad96);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x82ad96);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x82ad96);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'},_0x82ad96);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x82ad96);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'},_0x82ad96);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_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'},_0x82ad96);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x82ad96);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'},_0x82ad96);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x82ad96);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'},_0x82ad96);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x82ad96);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x82ad96);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x82ad96);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x82ad96);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x82ad96);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'},_0x82ad96);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x82ad96);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 _0x4ba28e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x82ad96);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4ba28e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x82ad96);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x82ad96);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'},_0x82ad96);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'},_0x82ad96);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'},_0x82ad96);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5e4cd4;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1cacb8,_0x69514f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1cacb8,this['_locale']=_0x69514f;}['getDescriptions'](_0x4a0352){const _0x1e7005=[],_0x32014b=new Set(),_0x1148f9=new Set();for(let _0x113de3=0x0;_0x113de3<_0x4a0352['length'];_0x113de3++){const _0x279bbf=_0x4a0352[_0x113de3];if(!_0x279bbf['isInContent'])continue;const _0x2e5ba7=this['_handleCustomCallbackDescription'](_0x279bbf);if(_0x2e5ba7){if(null!=_0x279bbf['subType']){if(_0x32014b['has'](_0x279bbf['subType']))continue;_0x32014b['add'](_0x279bbf['subType']);}_0x1e7005['push'](_0x2e5ba7);}else{if('attribute'==_0x279bbf['type']){const _0x38fdc7=_0x279bbf['data']['key'];if(_0x1148f9['has'](_0x38fdc7))continue;_0x1148f9['add'](_0x279bbf['data']['key']),_0x38fdc7==m?this['_handleRenameSuggestionDescription'](_0x1e7005,_0x279bbf):this['_handleAttributeSuggestionDescription'](_0x1e7005,_0x279bbf);continue;}'insertion'!=_0x279bbf['type']&&'deletion'!=_0x279bbf['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1e7005,_0x279bbf,_0x4a0352[_0x113de3+0x1]);}}return this['_resolveDescriptionItems'](_0x1e7005);}['registerDescriptionCallback'](_0x5f3fe3){this['_customCallbacks']['push'](_0x5f3fe3);}['registerElementLabel'](_0x4cc910,_0x4efca0,_0x1fb130=_0x263901['normal']){'function'==typeof _0x4cc910?_0x4a60f8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4cc910,'label':_0x4efca0,'priority':_0x1fb130}):this['_itemLabels']['set'](_0x4cc910,_0x4efca0);}['registerAttributeLabel'](_0x766c37,_0x525114){this['_attributeLabels']['set'](_0x766c37,_0x525114);}['getItemLabel'](_0xa97b07,_0x1a8b4d=0x1){let _0x587bb4;for(const _0x7882f2 of this['_itemLabelsCallbacks'])if(_0x7882f2['matchingCallback'](_0xa97b07)){_0x587bb4=_0x7882f2['label'];break;}return _0x587bb4||(_0x587bb4=this['_itemLabels']['get'](_0xa97b07['name'])),_0x587bb4?_0x587bb4(_0x1a8b4d):0x1!==_0x1a8b4d?_0x1a8b4d+'\x20'+_0xa97b07['name']+'s':''+_0xa97b07['name'];}['_addDescriptionItems'](_0x341cfb,_0x18ea8d){const _0x5c63d6=_0x18ea8d['getFirstRange']()['getWalker'](),_0x5f357f='insertion'==_0x18ea8d['type']?'add':'remove';for(const _0x24ceeb of _0x5c63d6){const _0x26938d=_0x24ceeb['item'],_0x57bced=_0x341cfb[_0x341cfb['length']-0x1];if(_0x26938d['is']('$textProxy'))_0x57bced&&_0x57bced['type']['indexOf']('Container')>-0x1&&_0x341cfb['pop'](),_0x57bced&&'text'==_0x57bced['type']?_0x57bced[_0x5f357f]+=_0x26938d['data']:_0x341cfb['push']({'type':'text','add':'add'==_0x5f357f?_0x26938d['data']:'','remove':'remove'==_0x5f357f?_0x26938d['data']:''});else{if(this['_schema']['isObject'](_0x26938d)){const _0x56c682=_0x26938d;if(_0x57bced&&_0x57bced['type']['indexOf']('Container')>-0x1&&_0x341cfb['pop'](),'elementEnd'==_0x24ceeb['type'])continue;_0x57bced&&_0x57bced['type']==_0x5f357f+'Object'&&_0x57bced['element']['name']==_0x56c682['name']?_0x57bced['quantity']++:_0x341cfb['push']({'type':_0x5f357f+'Object','element':_0x56c682,'quantity':0x1}),_0x5c63d6['skip'](_0x347b6f=>!('elementEnd'==_0x347b6f['type']&&_0x347b6f['item']==_0x26938d));}else{if(this['_schema']['checkChild'](_0x26938d,'$text')||_0x26938d['is']('element','softBreak')){const _0x38aac5=_0x26938d;if('add'==_0x5f357f&&'elementStart'==_0x24ceeb['type']||'remove'==_0x5f357f&&'elementEnd'==_0x24ceeb['type'])continue;if(_0x57bced&&-0x1==_0x57bced['type']['indexOf']('Container')){'text'==_0x57bced['type']&&(_0x57bced[_0x5f357f]+='\x0a');continue;}let _0x4150db;if(_0x4150db='add'==_0x5f357f?_0x38aac5['nextSibling']&&!this['_schema']['isObject'](_0x38aac5['nextSibling'])?_0x38aac5['nextSibling']:null:_0x38aac5['previousSibling']&&!this['_schema']['isObject'](_0x38aac5['previousSibling'])?_0x38aac5['previousSibling']:null,_0x38aac5['isEmpty']||_0x4150db&&_0x4150db['isEmpty']){const _0x13c9c3=_0x4150db&&_0x4150db['isEmpty']?_0x4150db:_0x38aac5;_0x57bced&&_0x57bced['type']==_0x5f357f+'EmptyContainer'&&_0x57bced['element']['name']==_0x13c9c3['name']?_0x57bced['quantity']++:_0x341cfb['push']({'type':_0x5f357f+'EmptyContainer','element':_0x13c9c3,'quantity':0x1});}else _0x341cfb['push']({'type':_0x5f357f+'Container','element':_0x38aac5});}}}}}['_resolveDescriptionItems'](_0x3f8977){const _0x127280=this['_locale'],_0x48dd85=[],_0x46f794=[],_0x16cbdc=[];for(const _0x173cdf of _0x3f8977)switch(_0x173cdf['type']){case'text':if(_0x173cdf['add']=_0x173cdf['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x173cdf['remove']=_0x173cdf['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x173cdf['add']&&''!=_0x173cdf['remove']){_0x48dd85['push']({'type':'replace','content':o(_0x127280,'REPLACE_TEXT',['\x22'+_0x173cdf['remove']+'\x22','\x22'+_0x173cdf['add']+'\x22'])});continue;}if(null!=_0x173cdf['add']['match'](/^ +$/)){_0x48dd85['push']({'type':'insertion','content':o(_0x127280,'*Insert:*\x20%0',o(_0x127280,'ELEMENT_SPACE',_0x173cdf['add']['length']))});continue;}if(null!=_0x173cdf['remove']['match'](/^ +$/)){_0x48dd85['push']({'type':'deletion','content':o(_0x127280,'*Remove:*\x20%0',o(_0x127280,'ELEMENT_SPACE',_0x173cdf['remove']['length']))});continue;}if(''!=_0x173cdf['add']){_0x48dd85['push']({'type':'insertion','content':o(_0x127280,'*Insert:*\x20%0','\x22'+_0x173cdf['add']+'\x22')});continue;}_0x48dd85['push']({'type':'deletion','content':o(_0x127280,'*Remove:*\x20%0','\x22'+_0x173cdf['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x48dd85['push']({'type':'insertion','content':o(_0x127280,'*Insert:*\x20%0',this['getItemLabel'](_0x173cdf['element'],_0x173cdf['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x48dd85['push']({'type':'deletion','content':o(_0x127280,'*Remove:*\x20%0',this['getItemLabel'](_0x173cdf['element'],_0x173cdf['quantity']))});continue;case'addContainer':_0x48dd85['push']({'type':'insertion','content':o(_0x127280,'*Split:*\x20%0',this['getItemLabel'](_0x173cdf['element'],_0x173cdf['quantity']))});continue;case'removeContainer':_0x48dd85['push']({'type':'deletion','content':o(_0x127280,'*Merge:*\x20%0',this['getItemLabel'](_0x173cdf['element'],_0x173cdf['quantity']))});continue;case'addFormat':_0x46f794['push'](_0x173cdf['key']);continue;case'removeFormat':_0x16cbdc['push'](_0x173cdf['key']);continue;default:_0x48dd85['push'](_0x173cdf);}if(_0x46f794['length']){const _0x2edc29=_0x46f794['map'](_0x2aa8e9=>this['_attributeLabels']['has'](_0x2aa8e9)?this['_attributeLabels']['get'](_0x2aa8e9):_0x2aa8e9)['join'](',\x20');_0x48dd85['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2edc29)});}if(_0x16cbdc['length']){const _0x5b3ab2=_0x16cbdc['map'](_0x3691dd=>this['_attributeLabels']['has'](_0x3691dd)?this['_attributeLabels']['get'](_0x3691dd):_0x3691dd)['join'](',\x20');_0x48dd85['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5b3ab2)});}return _0x48dd85;}['_handleCustomCallbackDescription'](_0x493fe8){for(const _0x3b8ba9 of this['_customCallbacks']){const _0x41a960=_0x3b8ba9(_0x493fe8);if(_0x41a960&&'type'in _0x41a960)return _0x41a960;}}['_handleAttributeSuggestionDescription'](_0x1e8903,_0x5534d9){const _0x486c45=_0x5534d9['data'],_0x1ff7f7=void 0x0===_0x486c45['newValue']?'removeFormat':'addFormat';_0x1e8903['push']({'type':_0x1ff7f7,'key':_0x486c45['key']});}['_handleRenameSuggestionDescription'](_0x1e0796,_0x2b4ed8){_0x1e0796['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2b4ed8['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x313586,_0x26b276,_0x13e352){if(this['_addDescriptionItems'](_0x313586,_0x26b276),_0x13e352&&_0x13e352['getFirstRange']()&&!_0x26b276['getFirstRange']()['end']['isEqual'](_0x13e352['getFirstRange']()['start'])){const _0x47c749=_0x313586[_0x313586['length']-0x1],_0x25610b='insertion'==_0x26b276['type']?'add':'remove';_0x47c749&&'text'==_0x47c749['type']&&(_0x47c749[_0x25610b]+='\x0a');}}}class R extends _0x54af3c{['afterInit'](){const _0x3c031a=this['editor'],_0x37e574=_0x3c031a['plugins']['get']('TrackChangesEditing');_0x3c031a['commands']['get']('showAIAssistant')&&_0x37e574['enableCommand']('showAIAssistant');}}class T extends _0x54af3c{['afterInit'](){const _0x17bdac=this['editor'],_0xb37d26=_0x17bdac['plugins']['get']('TrackChangesEditing');_0x17bdac['commands']['get']('toggleAi')&&_0xb37d26['enableCommand']('toggleAi');}}class E extends _0x54af3c{['afterInit'](){const _0x12c288=this['editor'],_0x124920=_0x12c288['plugins']['get']('TrackChangesEditing');_0x12c288['commands']['get']('aiQuickAction')&&_0x124920['enableCommand']('aiQuickAction');}}class U extends _0x54af3c{['afterInit'](){const _0x59b3d7=this['editor'],_0x365eec=_0x59b3d7['locale'];if(!_0x59b3d7['plugins']['has']('AlignmentEditing'))return;const _0x3f699b=_0x59b3d7['plugins']['get']('TrackChangesEditing');_0x3f699b['enableDefaultAttributesIntegration']('alignment'),_0x3f699b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x365eec,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50fe09=this['editor'],_0x541e86=_0x50fe09['locale'];_0x50fe09['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35d5d9=>{if('formatBlock'!=_0x35d5d9['type'])return;const {data:_0x47842e}=_0x35d5d9;if(_0x47842e&&'alignment'==_0x47842e['commandName']){const _0x326ab5=_0x47842e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x541e86,'*Format:*\x20%0',function(_0xf4e9cd){switch(_0xf4e9cd){case'left':return o(_0x541e86,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x541e86,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x541e86,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x541e86,'FORMAT_JUSTIFY_TEXT');}}(_0x326ab5))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x54af3c{['afterInit'](){const _0x33622a=this['editor'],_0x5c3475=_0x33622a['plugins']['get']('TrackChangesEditing'),_0x949924=_0x33622a['locale'];for(const _0x48dc02 of ti){if(!_0x33622a['plugins']['has'](_0x48dc02))continue;const _0x2e922b=_0x48dc02['slice'](0x0,-0x7)['toLowerCase'](),_0x1c1326='FORMAT_'+_0x2e922b['toUpperCase']();_0x5c3475['enableDefaultAttributesIntegration'](_0x2e922b),_0x5c3475['descriptionFactory']['registerAttributeLabel'](_0x2e922b,o(_0x949924,_0x1c1326));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22522d=this['editor'],_0x5b91c8=_0x22522d['locale'],_0x3ae4f3=_0x22522d['plugins']['get']('TrackChangesEditing');function _0x2baf0b(_0xae13e2,_0x2b3952){_0x3ae4f3['descriptionFactory']['registerDescriptionCallback'](_0x2c082d=>{if('formatInline'!=_0x2c082d['type'])return;const {data:_0x348e53}=_0x2c082d;return _0x348e53&&_0x348e53['commandName']===_0xae13e2?_0x348e53['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b91c8,'*Format:*\x20%0',_0x2b3952)}:{'type':'format','content':o(_0x5b91c8,'*Remove\x20format:*\x20%0',_0x2b3952)}:void 0x0;});}_0x2baf0b('bold',o(_0x5b91c8,'FORMAT_BOLD')),_0x2baf0b('italic',o(_0x5b91c8,'FORMAT_ITALIC')),_0x2baf0b('underline',o(_0x5b91c8,'FORMAT_UNDERLINE')),_0x2baf0b('code',o(_0x5b91c8,'FORMAT_CODE')),_0x2baf0b('strikethrough',o(_0x5b91c8,'FORMAT_STRIKETHROUGH')),_0x2baf0b('subscript',o(_0x5b91c8,'FORMAT_SUBSCRIPT')),_0x2baf0b('superscript',o(_0x5b91c8,'FORMAT_SUPERSCRIPT'));}}class F extends _0x54af3c{['afterInit'](){const _0x40a4d6=this['editor'],_0x537872=_0x40a4d6['locale'];if(!_0x40a4d6['plugins']['has']('BlockQuoteEditing'))return;const _0x17f612=_0x40a4d6['plugins']['get']('TrackChangesEditing'),_0x569880=this['editor']['commands']['get']('blockQuote');_0x17f612['enableCommand']('blockQuote',(_0x27b226,_0x259580={})=>{const _0x11f265=this['editor']['model']['document']['selection'],_0x38475d=_0x259580&&void 0x0!==_0x259580['forceValue']?_0x259580['forceValue']:!_0x569880['value'];let _0x3137d2=[];if(_0x38475d){const _0x45377e=Array['from'](_0x11f265['getSelectedBlocks']())['filter'](_0x1a8bf9=>oo(_0x1a8bf9)||function(_0x58339d,_0x1b875d){const _0x4fbe04=_0x1b875d['checkChild'](_0x58339d['parent'],'blockQuote'),_0x488165=_0x1b875d['checkChild'](['$root','blockQuote'],_0x58339d);return _0x4fbe04&&_0x488165;}(_0x1a8bf9,this['editor']['model']['schema']));_0x3137d2=to(_0x45377e,_0x40a4d6['model']);}else{const _0x181e5f=Array['from'](_0x11f265['getSelectedBlocks']())['filter'](_0xb89a0c=>oo(_0xb89a0c));_0x3137d2=to(_0x181e5f,_0x40a4d6['model']);}_0x40a4d6['model']['change'](()=>{for(const _0x5b6add of _0x3137d2)_0x17f612['markBlockFormat'](_0x5b6add,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x38475d}]});});}),_0x17f612['descriptionFactory']['registerDescriptionCallback'](_0x42d257=>{const {data:_0x160575}=_0x42d257;if(_0x160575&&'blockQuote'==_0x160575['commandName']){const _0x1d2219=o(_0x537872,'ELEMENT_BLOCK_QUOTE');return _0x160575['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x537872,'*Set\x20format:*\x20%0',_0x1d2219)}:{'type':'format','content':o(_0x537872,'*Remove\x20format:*\x20%0',_0x1d2219)};}});}}function oo(_0x22ef76){return'blockQuote'==_0x22ef76['parent']['name'];}class G extends _0x54af3c{['afterInit'](){const _0x4b1f89=this['editor'],_0x19e9a0=_0x4b1f89['locale'],_0x28ba74=_0x4b1f89['plugins']['get']('TrackChangesEditing');_0x4b1f89['plugins']['has']('BookmarkEditing')&&(_0x28ba74['enableCommand']('insertBookmark'),_0x28ba74['enableDefaultAttributesIntegration']('updateBookmark'),_0x28ba74['descriptionFactory']['registerDescriptionCallback'](_0x398d69=>{if('insertion'!=_0x398d69['type']&&'deletion'!=_0x398d69['type']&&'attribute'!=_0x398d69['type'])return;const _0x28cd3d=_0x398d69['getContainedElement']();if(null==_0x28cd3d)return;if(!_0x28cd3d['is']('element','bookmark'))return;const _0x60c536=_0x28cd3d['getAttribute']('bookmarkId');if('insertion'==_0x398d69['type'])return{'type':'insertion','content':o(_0x19e9a0,'*Insert:*\x20%0','\x22'+_0x60c536+'\x22\x20'+o(_0x19e9a0,'ELEMENT_BOOKMARK'))};if('deletion'==_0x398d69['type'])return{'type':'deletion','content':o(_0x19e9a0,'*Remove:*\x20%0','\x22'+_0x60c536+'\x22\x20'+o(_0x19e9a0,'ELEMENT_BOOKMARK'))};const {data:_0x1d3998}=_0x398d69;if(!_0x1d3998||'bookmarkId'!=_0x1d3998['key'])return;return{'type':'format','content':o(_0x19e9a0,'*Set\x20bookmark:*\x20%0','\x22'+_0x1d3998['newValue']+'\x22')};}));}}class L extends _0x54af3c{['afterInit'](){const _0x34f8b7=this['editor'];_0x34f8b7['plugins']['has']('CaseChange')&&(_0x34f8b7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x34f8b7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x34f8b7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x54af3c{['afterInit'](){const _0x104d06=this['editor'];_0x104d06['commands']['get']('ckbox')&&_0x104d06['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x54af3c{['afterInit'](){const _0xa0bc8c=this['editor'];if(!_0xa0bc8c['plugins']['has']('CodeBlock'))return;const _0x64913f=_0xa0bc8c['plugins']['get']('TrackChangesEditing'),_0x153d5e=_0xa0bc8c['locale'],_0x3383d7=_0xa0bc8c['config']['get']('codeBlock')['languages'],_0x5e1978=_0xa0bc8c['commands']['get']('codeBlock');_0x64913f['enableCommand']('indentCodeBlock'),_0x64913f['enableCommand']('outdentCodeBlock'),_0x64913f['enableCommand']('codeBlock',(_0x42110a,_0x4b7550={})=>{const _0x1d6626=_0xa0bc8c['model'],_0x3f3044=_0xa0bc8c['model']['document']['selection'],_0x29ce29=_0x4b7550&&void 0x0!==_0x4b7550['forceValue']?_0x4b7550['forceValue']:!_0x5e1978['value'];let _0x340a88;_0x4b7550['language']||(_0x4b7550['language']=_0x3383d7[0x0]['language']),_0x340a88=_0x29ce29?Array['from'](_0x3f3044['getSelectedBlocks']())['filter'](_0x5e5786=>co(_0x5e5786)||function(_0x3b16e0,_0x4355c8){if(_0x3b16e0['is']('rootElement')||_0x4355c8['isLimit'](_0x3b16e0))return!0x1;return _0x4355c8['checkChild'](_0x3b16e0['parent'],'codeBlock');}(_0x5e5786,_0x1d6626['schema'])):Array['from'](_0x3f3044['getSelectedBlocks']())['filter'](_0x1048d6=>co(_0x1048d6));const _0x270bf9=to(_0x340a88,_0x1d6626);_0x1d6626['change'](()=>{for(const _0x116a90 of _0x270bf9)_0x64913f['markBlockFormat'](_0x116a90,{'commandName':'codeBlock','commandParams':[{..._0x4b7550,'forceValue':_0x29ce29}],'formatGroupId':'blockName'});});}),(_0x64913f['descriptionFactory']['registerElementLabel']('codeBlock',_0xfa2fe0=>o(_0x153d5e,'ELEMENT_CODE_BLOCK',_0xfa2fe0)),_0x64913f['descriptionFactory']['registerDescriptionCallback'](_0x25cdf7=>{if('formatBlock'!=_0x25cdf7['type'])return;const _0x101d7d=_0x153d5e['t'],{data:_0x47b3ee}=_0x25cdf7;if(!_0x47b3ee||'codeBlock'!=_0x47b3ee['commandName'])return;const _0xae56fd=_0x47b3ee['commandParams'][0x0]['language'],_0x1101f4=_0x101d7d(_0x3383d7['find'](_0x58717e=>_0x58717e['language']===_0xae56fd)['label'])['toLowerCase']();return _0x47b3ee['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x153d5e,'*Set\x20format:*\x20%0',o(_0x153d5e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1101f4+')')}:{'type':'format','content':o(_0x153d5e,'*Remove\x20format:*\x20%0',o(_0x153d5e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x2e6a7b){return'codeBlock'==_0x2e6a7b['name'];}class z extends _0x54af3c{['afterInit'](){const _0x20359d=this['editor'];if(!_0x20359d['plugins']['has']('CommentsEditing'))return;_0x20359d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x54af3c{static get['requires'](){return[_0x3b307b];}['init'](){const _0x1e1a97=this['editor'],_0xb67662=_0x1e1a97['plugins']['get']('TrackChangesEditing');_0xb67662['enableCommand']('delete');const _0x1141e7=_0x1e1a97['commands']['get']('deleteForward');_0xb67662['enableCommand']('deleteForward',(_0x5c7545,_0x3953b5={})=>{const _0x262427=_0x1e1a97['model']['createSelection'](_0x1e1a97['model']['document']['selection']);_0x262427['isCollapsed']&&_0x1e1a97['model']['modifySelection'](_0x262427,{'direction':'forward','unit':_0x3953b5['unit']});const _0x2a55f8=_0x262427['getFirstRange'](),_0x472fe3=_0x3935f7['fromRange'](_0x2a55f8);let _0x484a39;_0x5c7545(_0x3953b5),_0x484a39='$graveyard'==_0x472fe3['root']['rootName']?_0x1e1a97['model']['createRange'](_0x2a55f8['start']):_0x1e1a97['model']['createRange'](_0x472fe3['start'],_0x472fe3['end']),_0x472fe3['detach'](),_0x1e1a97['model']['enqueueChange'](_0x1141e7['buffer']['batch'],_0x3b6dca=>{_0x1141e7['buffer']['lock'](),_0x3b6dca['setSelection'](_0x3b6dca['createRange'](_0x484a39['end'])),_0x1141e7['buffer']['unlock']();});});}}class W extends _0x54af3c{['afterInit'](){const _0x5ae318=this['editor'];if(!_0x5ae318['plugins']['has']('ListEditing'))return;const _0x435b90=_0x5ae318['locale'],_0x53f08a=_0x5ae318['plugins']['get']('TrackChangesEditing'),_0x17555e=_0x5ae318['plugins']['has']('TodoListEditing'),_0x38b6f0=!!_0x5ae318['config']['get']('list.multiBlock');function _0x6a1b1f(_0x4bfa9e){return{'type':'format','content':''+o(_0x435b90,'*Set\x20format:*\x20%0',_0x4bfa9e)};}function _0x2dc3d4(_0x25f27d){return{'type':'format','content':''+o(_0x435b90,'*Remove\x20format:*\x20%0',_0x25f27d)};}_0x53f08a['enableDefaultAttributesIntegration']('numberedList'),_0x53f08a['enableDefaultAttributesIntegration']('bulletedList'),_0x53f08a['enableDefaultAttributesIntegration']('customNumberedList'),_0x53f08a['enableDefaultAttributesIntegration']('customBulletedList'),_0x53f08a['enableDefaultAttributesIntegration']('indentList'),_0x53f08a['enableDefaultAttributesIntegration']('outdentList'),_0x53f08a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x53f08a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x38b6f0&&(_0x53f08a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x53f08a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x17555e&&(_0x53f08a['enableDefaultAttributesIntegration']('todoList'),_0x53f08a['enableDefaultAttributesIntegration']('checkTodoList'),_0x53f08a['descriptionFactory']['registerDescriptionCallback'](_0xbf7db0=>{const {data:_0x4c33b7}=_0xbf7db0;if(_0x4c33b7&&'todoListChecked'==_0x4c33b7['key'])return{'type':'format','content':_0x4c33b7['newValue']?o(_0x435b90,'*Check\x20item*'):o(_0x435b90,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x54cbd7=>{if(_0x54cbd7['batch']['isUndo'])return!0x1;let _0x1c4434=!0x1;const _0x4473de=_0x53f08a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x213fcf=>'todoListChecked'===_0x53f08a['_getAttributeKey'](_0x213fcf));for(const _0x571cb2 of _0x4473de){'todo'!=_0x571cb2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x53f08a['_findSuggestions'](_0x571cb2['getFirstRange'](),'attribute')['find'](_0x55d350=>'listType'===_0x53f08a['_getAttributeKey'](_0x55d350['suggestion']))||(_0x54cbd7['removeMarker'](_0x571cb2['getFirstMarker']()),_0x1c4434=!0x0));}return _0x1c4434;})),_0x53f08a['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x435b90,'FORMAT_INDENT'));const _0x551ada={'type':'format','content':''};_0x53f08a['descriptionFactory']['registerDescriptionCallback'](_0x1c2a52=>{const {data:_0x517df1}=_0x1c2a52;if(!_0x517df1||'listType'!=_0x517df1['key'])return;let _0x656823=_0x1c2a52['head'];for(;_0x656823;){if(_0x656823['data']&&(('listStyle'==_0x656823['data']['key']||'listMarkerStyle'==_0x656823['data']['key'])&&(_0x656823['data']['newValue']&&'default'!=_0x656823['data']['newValue']||'default'!=_0x656823['data']['oldValue']&&!_0x517df1['newValue'])||!_0x38b6f0&&_0x656823['data']['key']==m))return _0x551ada;_0x656823=_0x656823['next'];}if(null==_0x517df1['newValue'])switch(_0x517df1['oldValue']){case'bulleted':return _0x2dc3d4(o(_0x435b90,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2dc3d4(o(_0x435b90,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2dc3d4(o(_0x435b90,'ELEMENT_TODO_LIST'));}switch(_0x517df1['newValue']){case'bulleted':return _0x6a1b1f(o(_0x435b90,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x6a1b1f(o(_0x435b90,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x6a1b1f(o(_0x435b90,'ELEMENT_TODO_LIST'));}}),_0x53f08a['descriptionFactory']['registerDescriptionCallback'](_0x56ec15=>{const {data:_0x226e45}=_0x56ec15;if(_0x226e45&&'listIndent'==_0x226e45['key'])return null==_0x226e45['newValue']||null==_0x226e45['oldValue']&&0x0==_0x226e45['newValue']?_0x551ada:void 0x0;}),_0x53f08a['descriptionFactory']['registerDescriptionCallback'](_0x27ea93=>{if('attribute'!=_0x27ea93['type'])return;const {data:_0xbe951a}=_0x27ea93;if(!_0xbe951a||'listItemId'!=_0xbe951a['key'])return;const _0x237d45=Te(_0x27ea93);return'newValue'==_0x237d45?{'type':'format','content':o(_0x435b90,'*Merge:*\x20list\x20item')}:'oldValue'==_0x237d45?{'type':'format','content':o(_0x435b90,'*Split:*\x20list\x20item')}:_0x551ada;}),_0x5ae318['model']['document']['registerPostFixer'](_0x5e3e7e=>this['listItemIdFixer'](_0x5e3e7e)),_0x5ae318['model']['document']['registerPostFixer'](_0x267edc=>this['noTrackChangesFixer'](_0x267edc)),_0x5ae318['model']['document']['on']('change:data',(_0x4c3423,_0x5869c2)=>{if(_0x5869c2['isUndo']||!_0x5869c2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x651971){if(_0x651971['batch']['isUndo']||!_0x651971['batch']['isLocal'])return!0x1;let _0x15038e=!0x1;const _0xd56e74=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5df315=>_0x5df315['data']&&'listItemId'==_0x5df315['data']['key'])['filter'](_0x4959a1=>_0x4959a1['data']['newValue']&&_0x4959a1['data']['oldValue']);for(const _0x55fea6 of _0xd56e74)Te(_0x55fea6)||(_0x651971['removeMarker'](_0x55fea6['getFirstMarker']()),_0x15038e=!0x0);return _0x15038e;}['noTrackChangesFixer'](_0x585cce){if(_0x585cce['batch']['isUndo']||!_0x585cce['batch']['isLocal'])return!0x1;const _0x13d5a6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x13d5a6['trackChangesCommand']['value'])return!0x1;let _0x185629=!0x1;const _0x2662e4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3cdedd=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x36b29a=>'attribute'==_0x36b29a['type'])['filter'](_0x5b7c5e=>_0x2662e4['includes'](_0x5b7c5e['attributeKey']));if(0x0==_0x3cdedd['length'])return _0x185629;for(const _0x2470fe of _0x3cdedd){const _0x3c8bd9=_0x13d5a6['_findSuggestions'](_0x2470fe['range'],'attribute')['filter'](_0x497d18=>!_0x497d18['meta']['isNextTo'])['map'](_0x4bcfb4=>_0x4bcfb4['suggestion'])['filter'](_0x2b38a9=>{const _0x481e8a=_0x13d5a6['_getAttributeKey'](_0x2b38a9);return _0x2662e4['includes'](_0x481e8a);});if(_0x3c8bd9['length']){for(const _0x36353d of _0x3c8bd9)_0x585cce['removeMarker'](_0x36353d['getFirstMarker']());_0x185629=!0x0;}}return _0x185629;}['assureChains'](){const _0x230a5d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2247cb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x12b05d;const _0x1c58be=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x46dcde=>{if(_0x46dcde['data']['oldRange']||!_0x46dcde['data']['newRange'])return null;if(!_0x46dcde['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5392ff}=_0x230a5d['_splitMarkerName'](_0x46dcde['name']);if(!_0x230a5d['hasSuggestion'](_0x5392ff))return null;const _0x253f6d=_0x230a5d['getSuggestion'](_0x5392ff);return _0x2247cb['includes'](_0x253f6d['data']['key']);})['map'](_0x1c7bfb=>{const {id:_0x62e222}=_0x230a5d['_splitMarkerName'](_0x1c7bfb['name']),_0x1f0d04=_0x230a5d['getSuggestion'](_0x62e222);return _0x12b05d=_0x1f0d04['attributes']['groupId'],_0x1f0d04['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1c58be['size'])return;const _0x18752a=_0x230a5d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e43cf=>'attribute'==_0x5e43cf['type']&&_0x5e43cf['data']&&_0x2247cb['includes'](_0x5e43cf['data']['key'])&&_0x5e43cf['attributes']['groupId']!=_0x12b05d)['map'](_0x34b116=>({'listItem':_0x34b116['getFirstRange']()['start']['nodeAfter'],'groupId':_0x34b116['attributes']['groupId']})),_0x5ecd82=new Set();for(const {groupId:_0x2f52e9,listItem:_0x4606fd}of _0x18752a)_0x1c58be['has'](_0x4606fd)&&_0x5ecd82['add'](_0x2f52e9);for(const _0x1d43cf of _0x230a5d['getSuggestions']())_0x5ecd82['has'](_0x1d43cf['attributes']['groupId'])&&_0x1d43cf['setAttribute']('groupId',_0x12b05d);}['_supportLegacySuggestions'](){const _0x28fb49=this['editor'],_0x18fe63=_0x28fb49['locale'],_0x2d61e2=_0x28fb49['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2d61e2['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2a7095,_0x22a967){const _0x4a25c6=[];for(let _0x3e2ac2 of _0x2a7095)_0x3e2ac2['start']['nodeAfter']===_0x3e2ac2['end']['parent']&&(_0x3e2ac2=_0x28fb49['model']['createRange'](_0x28fb49['model']['createPositionAt'](_0x3e2ac2['start']['nodeAfter'],0x0))),_0x4a25c6['push'](_0x3e2ac2);_0x28fb49['model']['change'](_0x4f8837=>{const _0x328aed=_0x28fb49['model']['document']['selection'],_0x28f3a8=Array['from'](_0x328aed['getRanges']())['map'](_0x51da4f=>_0x3935f7['fromRange'](_0x51da4f));_0x4f8837['setSelection'](_0x4a25c6),_0x28fb49['commands']['get'](_0x22a967['commandName'])['refresh'](),_0x22a967['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x28fb49['execute'](_0x22a967['commandName'],..._0x22a967['commandParams']),_0x4f8837['setSelection'](_0x28f3a8);for(const _0xce3478 of _0x28f3a8)_0xce3478['detach']();});}),_0x2d61e2['descriptionFactory']['registerElementLabel'](function(_0x3eb224){const _0x4b432a=!_0x28fb49['model']['schema']['isObject'](_0x3eb224),_0x5e25f7=_0x3eb224['previousSibling'],_0x4e7930=_0x3eb224['nextSibling'],_0x5bf8d5=_0x3eb224['getAttribute']('listItemId'),_0x4bc275=!_0x5e25f7||_0x5e25f7['getAttribute']('listItemId')!==_0x5bf8d5,_0x2cd930=!_0x4e7930||_0x4e7930['getAttribute']('listItemId')!==_0x5bf8d5;return _0x4b432a&&Boolean(_0x5bf8d5)&&_0x4bc275&&_0x2cd930;},_0x1aa851=>o(_0x18fe63,'ELEMENT_LIST_ITEM',_0x1aa851));}['_registerLegacyDescription'](){const _0x5aa207=this['editor'],_0x4e9a0d=_0x5aa207['locale'];function _0x156516(_0x12e612){const _0x2c4b4a=_0x5aa207['commands']['get']('bulletedList')['value'],_0xdd9218=_0x5aa207['commands']['get']('numberedList')['value'];return'numberedList'===_0x12e612?_0x2c4b4a:_0xdd9218;}_0x5aa207['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x58f470){if('formatBlock'!=_0x58f470['type'])return;const {data:_0x32b6d4}=_0x58f470;if(!_0x32b6d4)return;let _0x2f5237,_0x3c0b70,_0x1d1df9,_0x23a442;switch(_0x32b6d4['commandName']){case'bulletedList':_0x1d1df9=_0x32b6d4['commandParams'][0x0]['forceValue'],_0x23a442=_0x156516(_0x32b6d4['commandName']),_0x2f5237=_0x1d1df9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x23a442&&_0x5aa207['config']['get']('list.multiBlock')||(_0x2f5237='*Change\x20to:*\x20%0'),_0x3c0b70={'type':'format','content':o(_0x4e9a0d,_0x2f5237,o(_0x4e9a0d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1d1df9=_0x32b6d4['commandParams'][0x0]['forceValue'],_0x23a442=_0x156516(_0x32b6d4['commandName']),_0x2f5237=_0x1d1df9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x23a442&&_0x5aa207['config']['get']('list.multiBlock')||(_0x2f5237='*Change\x20to:*\x20%0'),_0x3c0b70={'type':'format','content':o(_0x4e9a0d,_0x2f5237,o(_0x4e9a0d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2f5237='*Indent:*\x20%0',_0x3c0b70={'type':'format','content':o(_0x4e9a0d,_0x2f5237,o(_0x4e9a0d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2f5237=function(_0x568cfd){const _0x3a0329=_0x568cfd['getFirstRange']();let _0x47cb59=_0x3a0329['start']['nodeAfter'];for(;_0x47cb59&&_0x3a0329['containsItem'](_0x47cb59);){if(_0x47cb59['getAttribute']('listIndent')>0x0)return!0x1;_0x47cb59=_0x47cb59['nextSibling'];}return!0x0;}(_0x58f470)?o(_0x4e9a0d,'*Format:*\x20remove\x20from\x20%0',o(_0x4e9a0d,function(_0x527365){return'ELEMENT_'+_0x527365['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x58f470))):o(_0x4e9a0d,'*Outdent:*\x20%0',o(_0x4e9a0d,'ELEMENT_LIST_ITEM')),_0x3c0b70={'type':'format','content':_0x2f5237};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x32b6d4['multipleBlocks']&&(_0x2f5237='*Merge:*\x20%0',_0x3c0b70={'type':'deletion','content':o(_0x4e9a0d,_0x2f5237,o(_0x4e9a0d,'ELEMENT_LIST_ITEM'))});}return _0x3c0b70;});}}function Te(_0x47afb0){let _0x23eebb=_0x47afb0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x23eebb;){const _0x1737a8=_0x23eebb['getAttribute']('listItemId');if(!_0x1737a8)return!0x1;if(_0x1737a8==_0x47afb0['data']['newValue'])return'newValue';if(_0x1737a8==_0x47afb0['data']['oldValue'])return'oldValue';_0x23eebb=_0x23eebb['previousSibling'];}return!0x1;}class H extends _0x54af3c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2251e2=this['editor']['config']['get']('list.properties'),_0x19482a=this['editor']['plugins']['get']('TrackChangesEditing');_0x2251e2['styles']&&_0x19482a['enableDefaultAttributesIntegration']('listStyle'),_0x2251e2['reversed']&&_0x19482a['enableDefaultAttributesIntegration']('listReversed'),_0x2251e2['startIndex']&&_0x19482a['enableDefaultAttributesIntegration']('listStart');const _0x17c44e={'type':'format','content':''};_0x19482a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x523004=this['editor']['locale'];_0x19482a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x523004,'FORMAT_LIST_REVERSED')),_0x19482a['descriptionFactory']['registerDescriptionCallback'](_0x13ae7e=>{const {data:_0xf308a}=_0x13ae7e;if(_0xf308a&&'listReversed'==_0xf308a['key'])return null==_0xf308a['newValue']||0x0==_0xf308a['newValue']&&null==_0xf308a['oldValue']?_0x17c44e:void 0x0;}),_0x19482a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x523004,'FORMAT_LIST_START')),_0x19482a['descriptionFactory']['registerDescriptionCallback'](_0x4917d1=>{const {data:_0x5a0fe5}=_0x4917d1;if(_0x5a0fe5&&'listStart'==_0x5a0fe5['key'])return null==_0x5a0fe5['newValue']||0x1==_0x5a0fe5['newValue']&&null==_0x5a0fe5['oldValue']?_0x17c44e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5a316f=>{if(_0x5a316f['batch']['isUndo'])return!0x1;let _0x291bd1=!0x1;const _0x4f0736=_0x19482a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x65ce04=>{const _0xdb3cc6=_0x19482a['_getAttributeKey'](_0x65ce04);return'listStart'==_0xdb3cc6||'listReversed'==_0xdb3cc6;});for(const _0x4760ff of _0x4f0736){const _0x2d7d37=_0x4760ff['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2d7d37||'customNumbered'==_0x2d7d37)continue;_0x19482a['_findSuggestions'](_0x4760ff['getFirstRange'](),'attribute')['find'](_0x549d84=>'listType'==_0x19482a['_getAttributeKey'](_0x549d84['suggestion']))||(_0x5a316f['removeMarker'](_0x4760ff['getFirstMarker']()),_0x291bd1=!0x0);}return _0x291bd1;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x172fad){const _0x10a032=this['editor']['locale'],{data:_0x4c53bf}=_0x172fad,_0x45decf={'type':'format','content':''};if(!_0x4c53bf||'listStyle'!=_0x4c53bf['key'])return;if(!_0x4c53bf['oldValue'])return'default'==_0x4c53bf['newValue']?_0x45decf:{'type':'format','content':''+o(_0x10a032,'*Set\x20format:*\x20%0',o(_0x10a032,this['_getTranslationKeyForListStyle'](_0x4c53bf['newValue'])))};if(!_0x4c53bf['newValue']){if('default'==_0x4c53bf['oldValue'])return _0x45decf;let _0x3d542e=_0x172fad['head'];for(;_0x3d542e;){if(_0x3d542e['data']&&'listType'==_0x3d542e['data']['key']&&_0x3d542e['data']['newValue'])return _0x45decf;_0x3d542e=_0x3d542e['next'];}return{'type':'format','content':''+o(_0x10a032,'*Remove\x20format:*\x20%0',o(_0x10a032,this['_getTranslationKeyForListStyle'](_0x4c53bf['oldValue'])))};}if('default'!=_0x4c53bf['newValue'])return{'type':'format','content':''+o(_0x10a032,'*Set\x20format:*\x20%0',o(_0x10a032,this['_getTranslationKeyForListStyle'](_0x4c53bf['newValue'])))};let _0x292cc6=_0x172fad['head'];for(;_0x292cc6;){if(_0x292cc6['data']&&'listType'==_0x292cc6['data']['key']&&_0x292cc6['data']['newValue']&&_0x292cc6['data']['oldValue'])return _0x45decf;_0x292cc6=_0x292cc6['next'];}return{'type':'format','content':o(_0x10a032,'*Set\x20format:*\x20%0',o(_0x10a032,'ELEMENT_'+_0x172fad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xe63923=this['editor'],_0x4a62ff=_0xe63923['locale'];_0xe63923['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ee133=>{if('formatBlock'!=_0x3ee133['type'])return;const {data:_0x1c8a5f}=_0x3ee133;if(!_0x1c8a5f)return;let _0x59dc14,_0x2df3c9;switch(_0x1c8a5f['commandName']){case'listStyle':_0x59dc14='*Change\x20to:*\x20%0',_0x2df3c9={'type':'format','content':o(_0x4a62ff,_0x59dc14,o(_0x4a62ff,this['_getTranslationKeyForListStyle'](_0x1c8a5f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x59dc14=_0x1c8a5f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2df3c9={'type':'format','content':o(_0x4a62ff,_0x59dc14)};break;case'listStart':_0x59dc14='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2df3c9={'type':'format','content':o(_0x4a62ff,_0x59dc14,_0x1c8a5f['commandParams'][0x0]['startIndex'])};}return _0x2df3c9;});}['_getTranslationKeyForListStyle'](_0x5de196){return'ELEMENT_'+function(_0x61ea07){if(ye['includes'](_0x61ea07))return'bulleted';if(Se['includes'](_0x61ea07))return'numbered';return null;}(_0x5de196)['toUpperCase']()+'_LIST_'+_0x5de196['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x54af3c{['afterInit'](){const _0x31b293=this['editor'];_0x31b293['commands']['get']('emoji')&&_0x31b293['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x54af3c{static get['requires'](){return[_0x556c87];}['init'](){const _0x4ef493=this['editor'],_0x1c989f=_0x4ef493['plugins']['get']('TrackChangesEditing'),_0x30b2aa=_0x4ef493['commands']['get']('enter');_0x1c989f['enableCommand']('enter',()=>{_0x4ef493['model']['change'](_0x579804=>{const _0x2a3c76=_0x4ef493['model']['document']['selection'],_0x2850bf=_0x2a3c76['getFirstPosition'](),_0x959d4e=_0x3935f7['fromRange'](_0x2a3c76['getFirstRange']());if(_0x30b2aa['enterBlock'](_0x579804)){const _0x46e6c3=_0x4ef493['model']['createPositionAt'](_0x2850bf['parent']['nextSibling'],0x0),_0x554949=_0x579804['createRange'](_0x2850bf,_0x46e6c3);_0x1c989f['markInsertion'](_0x554949);}else _0x579804['setSelection'](_0x579804['createRange'](_0x959d4e['end']));_0x959d4e['detach'](),_0x30b2aa['fire']('afterExecute',{'writer':_0x579804});});});}}class Y extends _0x54af3c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5c3dae=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c3dae['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5c3dae['enableCommand']('findNext'),_0x5c3dae['enableCommand']('findPrevious'),_0x5c3dae['enableCommand']('replace'),_0x5c3dae['enableCommand']('replaceAll');}['handleFindCommand'](_0x1b1392,_0x23a8f7,_0x18a28f={}){const _0x58fd33=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1b1392(_0x38c865=>{let _0x1c7faa=('string'==typeof _0x23a8f7?_0x58fd33['findByTextCallback'](_0x23a8f7,_0x18a28f):_0x23a8f7)(_0x38c865);Array['isArray'](_0x1c7faa)&&(_0x1c7faa={'results':_0x1c7faa,'searchText':'string'==typeof _0x23a8f7?_0x23a8f7:''});const _0xd850de=_0x1c7faa['results']['filter'](_0xf1b37b=>!0x1===this['_isInDeletionRange'](_0xf1b37b,_0x38c865['item']));return{..._0x1c7faa,'results':_0xd850de};},_0x18a28f);}['_isInDeletionRange'](_0x525783,_0x192150){const _0x2c5d68=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x192150,_0x525783['start']),this['editor']['model']['createPositionAt'](_0x192150,_0x525783['end']));for(const _0x521944 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2c5d68['getIntersection'](_0x521944['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 _0x54af3c{['afterInit'](){const _0x58f179=this['editor']['locale'],_0x35abf4=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1fba62,commandName:_0x1096fe}of eo)this['editor']['plugins']['has'](_0x1fba62)&&_0x35abf4['enableDefaultAttributesIntegration'](_0x1096fe);_0x35abf4['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x58f179,'FORMAT_FONT_SIZE')),_0x35abf4['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x58f179,'FORMAT_FONT_FAMILY')),_0x35abf4['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x58f179,'FORMAT_FONT_COLOR')),_0x35abf4['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x58f179,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4102ee=this['editor'],_0x37c95b=_0x4102ee['locale'];_0x4102ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x423bd6=>{const _0x3e110a=_0x37c95b['t'];if('formatInline'!=_0x423bd6['type'])return;const {data:_0x12a472}=_0x423bd6;if(null!=_0x12a472){if('fontSize'==_0x12a472['commandName']){const _0x4019a2=_0x12a472['commandParams'][0x0]['value'];if(_0x4019a2){const _0x1ed662=_0x3e110a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3147d3=>_0x3147d3['model']==_0x4019a2)['title'])['toLowerCase']();return{'type':'format','content':o(_0x37c95b,'*Set\x20font\x20size:*\x20%0',_0x1ed662)};}return{'type':'format','content':o(_0x37c95b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x12a472['commandName']){const _0x1465b9=_0x12a472['commandParams'][0x0]['value'];return _0x1465b9?{'type':'format','content':o(_0x37c95b,'*Set\x20font\x20family:*\x20%0',_0x1465b9)}:{'type':'format','content':o(_0x37c95b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x12a472['commandName']){const _0x3d6f79=_0x12a472['commandParams'][0x0]['value'];if(_0x3d6f79){const _0x4bbc06=_0xdfd96(this['editor']['config']['get']('fontColor.colors'))['find'](_0x132a65=>_0x132a65['model']==_0x3d6f79);let _0x1f6c53=_0x3d6f79,_0x5a804a='';return _0x4bbc06&&(_0x1f6c53=_0x4bbc06['label'],_0x5a804a=_0x3e110a(_0x1f6c53)['toLowerCase']()),{'type':'format','content':o(_0x37c95b,'*Set\x20font\x20color:*\x20%0',_0x5a804a)['trim'](),'color':{'value':_0x3d6f79,'title':_0x5a804a||_0x1f6c53}};}return{'type':'format','content':o(_0x37c95b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x12a472['commandName']){const _0x791a4d=_0x12a472['commandParams'][0x0]['value'];if(_0x791a4d){const _0x2c3c01=_0xdfd96(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x13582e=>_0x13582e['model']==_0x791a4d);let _0x4d6607=_0x791a4d,_0x2f0336='';return _0x2c3c01&&(_0x4d6607=_0x2c3c01['label'],_0x2f0336=_0x3e110a(_0x4d6607)['toLowerCase']()),{'type':'format','content':o(_0x37c95b,'*Set\x20font\x20background\x20color:*\x20%0',_0x2f0336)['trim'](),'color':{'value':_0x791a4d,'title':_0x2f0336||_0x4d6607}};}return{'type':'format','content':o(_0x37c95b,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x54af3c{['afterInit'](){const {plugins:_0x99503c}=this['editor'];_0x99503c['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x99503c['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x3c552d,plugins:_0xdceb1d,commands:_0x471b5e}=this['editor'],_0x25d73f=_0xdceb1d['get']('TrackChangesEditing');_0x471b5e['get']('footnotesStyle')&&_0x25d73f['enableDefaultAttributesIntegration']('footnotesStyle'),_0x471b5e['get']('footnotesStart')&&_0x25d73f['enableDefaultAttributesIntegration']('footnotesStart'),_0x25d73f['registerBlockAttribute']('footnotesListStyle'),_0x25d73f['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x3c552d,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x25d73f['registerBlockAttribute']('footnotesListStart'),_0x25d73f['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x3c552d,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x4aba6a=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3286bb,commands:_0x24654a}=this['editor'];_0x24654a['get']('insertFootnote')&&_0x4aba6a['enableCommand']('insertFootnote'),_0x4aba6a['descriptionFactory']['registerElementLabel']('footnoteRef',_0x3fdc69=>o(_0x3286bb,'ELEMENT_FOOTNOTE_REF',_0x3fdc69)),_0x4aba6a['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3b9801=>o(_0x3286bb,'ELEMENT_FOOTNOTE_DEFINITION',_0x3b9801)),_0x4aba6a['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x4cb3d9=>o(_0x3286bb,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x4cb3d9));}}class nt extends _0x54af3c{['afterInit'](){const _0x1497cb=this['editor'],_0x592062=_0x1497cb['plugins']['get']('TrackChangesEditing'),_0x2c98ef=_0x1497cb['commands']['get']('copyFormat'),_0x564ae7=_0x1497cb['commands']['get']('pasteFormat');_0x2c98ef&&_0x564ae7&&(_0x592062['enableDefaultAttributesIntegration']('pasteFormat'),_0x592062['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3154a9=this['editor'],_0x17313e=_0x3154a9['locale'];_0x3154a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35371b=>{if('formatBlock'!=_0x35371b['type']&&'formatInline'!=_0x35371b['type'])return;const {data:_0x3064d0}=_0x35371b;if(_0x3064d0&&'pasteFormat'===_0x3064d0['commandName']){const _0x3319bd=[],_0x143c3c=_0x3064d0['commandParams'][0x0];for(const [_0x21c092,_0x5b9a39]of Object['entries'](_0x143c3c))_0x3319bd['push'](ro(_0x3154a9,_0x21c092,_0x5b9a39));return _0x3319bd['length']?{'type':'format','content':o(_0x17313e,'*Set\x20format\x20to:*\x20%0',_0x3319bd['join'](',\x20'))}:{'type':'format','content':o(_0x17313e,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3fc3b6,_0x4558f2,_0x29b492){const _0x46f024=_0x3fc3b6['locale']['t'],_0x52c805=_0x4558f2['split'](/(?=[A-Z])/)['join']('\x20'),_0x2d3679=_0x46f024(_0x52c805['charAt'](0x0)['toUpperCase']()+_0x52c805['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x29b492)return _0x2d3679;if('fontColor'===_0x4558f2||'fontBackgroundColor'===_0x4558f2){const _0x40a5e8=_0xdfd96(_0x3fc3b6['config']['get']('fontColor.colors'))['find'](_0x475808=>_0x475808['model']==_0x29b492);return _0x2d3679+'\x20('+(_0x40a5e8?_0x46f024(_0x40a5e8['label'])['toLowerCase']():_0x29b492)+')';}if('fontSize'===_0x4558f2&&isNaN(parseFloat(_0x29b492))){const _0x58e97c=_0x3fc3b6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3fc3b6['config']['get']('fontSize.options'))['find'](_0x233b2d=>_0x233b2d['model']==_0x29b492);return _0x2d3679+'\x20('+(_0x58e97c?_0x46f024(_0x58e97c['title'])['toLowerCase']():_0x29b492)+')';}return _0x2d3679+'\x20('+_0x29b492+')';}class it extends _0x54af3c{['_headingOptions'];['afterInit'](){const _0x1b91ca=this['editor'];if(!_0x1b91ca['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1b91ca['config']['get']('heading.options');const _0x26a2eb=_0x1b91ca['locale'],_0x540ac3=_0x1b91ca['plugins']['get']('TrackChangesEditing');_0x540ac3['enableDefaultAttributesIntegration']('heading');for(const _0x7ce6c8 of this['_headingOptions'])'paragraph'!=_0x7ce6c8['model']&&_0x540ac3['descriptionFactory']['registerElementLabel'](_0x7ce6c8['model'],_0x15723f=>{const _0xb1663f=this['_getHeadingLevel'](_0x7ce6c8['model']);return null!==_0xb1663f?_0xc70a40(_0x15723f,_0xb1663f):_0x15435f(_0x15723f,_0x7ce6c8['title']);});function _0xc70a40(_0x4d8eda,_0x34fb04){return o(_0x26a2eb,'ELEMENT_HEADING',[_0x4d8eda,_0x34fb04]);}function _0x15435f(_0x8559ee,_0xf44122){return o(_0x26a2eb,'ELEMENT_HEADING_CUSTOM',[_0x8559ee,_0xf44122]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e3726=this['editor'],_0x4f9eab=_0x3e3726['locale'];function _0xa5e35b(_0x34edb2,_0xce013f){return o(_0x4f9eab,'ELEMENT_HEADING_CUSTOM',[_0x34edb2,_0xce013f]);}_0x3e3726['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c17=>{if('formatBlock'!=_0x4c17['type'])return;const {data:_0x1b0d62}=_0x4c17;if(_0x1b0d62&&'heading'==_0x1b0d62['commandName']){const _0x5c26c3=_0x1b0d62['commandParams'][0x0]['value'],_0x2f0c39=this['_getHeadingLevel'](_0x5c26c3);if(null!==_0x2f0c39)return{'type':'format','content':o(_0x4f9eab,'*Change\x20to:*\x20%0',(_0x4a3292=0x1,_0x2b17dc=_0x2f0c39,o(_0x4f9eab,'ELEMENT_HEADING',[_0x4a3292,_0x2b17dc])))};const _0x474561=this['_headingOptions']['find'](_0x247dbe=>_0x247dbe['model']===_0x5c26c3)['title'];return{'type':'format','content':o(_0x4f9eab,'*Change\x20to:*\x20%0',_0xa5e35b(0x1,_0x474561))};}var _0x4a3292,_0x2b17dc;});}['_getHeadingLevel'](_0xe94538){const _0x3794bd=_0xe94538['match'](/^heading(\d+)/);if(_0x3794bd)return _0x3794bd[0x1];const _0x3672f1=this['_headingOptions']?.['find'](_0x166796=>_0x166796['model']==_0xe94538);if(_0x3672f1&&_0x3672f1['view']){const _0x5a96c2=_0x3672f1['view'],_0x3498f8=(_0x5a96c2['name']??_0x5a96c2)['match'](/^h(\d+)/);if(_0x3498f8)return _0x3498f8[0x1];}return null;}}class et extends _0x54af3c{['afterInit'](){const _0x4f1d4c=this['editor'];if(!_0x4f1d4c['plugins']['has']('HighlightEditing'))return;const _0x38bda3=_0x4f1d4c['plugins']['get']('TrackChangesEditing'),_0x4dd04b=_0x4f1d4c['locale'];_0x38bda3['enableDefaultAttributesIntegration']('highlight'),_0x38bda3['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4dd04b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2615b3=this['editor'],_0x114a3f=_0x2615b3['locale'];_0x2615b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x300338=>{if('formatInline'!=_0x300338['type'])return;const {data:_0x379d83}=_0x300338;if(_0x379d83&&'highlight'==_0x379d83['commandName']){const _0x6af0b6=_0x114a3f['t'],_0x6a6ea7=_0x379d83['commandParams'][0x0]['value'];if(_0x6a6ea7){const _0xa0ba4a=_0x2615b3['config']['get']('highlight.options')['find'](_0x41994b=>_0x41994b['model']==_0x6a6ea7),_0x53d3fc=_0x6af0b6(_0xa0ba4a['title'])['toLowerCase']();return{'type':'format','content':o(_0x114a3f,'*Set\x20highlight:*\x20%0',_0x53d3fc),'color':{'value':_0xa0ba4a['color'],'title':_0xa0ba4a['title']}};}return{'type':'format','content':o(_0x114a3f,'*Remove\x20highlight*',o(_0x114a3f,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x54af3c{['afterInit'](){const _0x34168d=this['editor'];if(!_0x34168d['plugins']['has']('HorizontalLineEditing'))return;_0x34168d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x9e1325=_0x34168d['plugins']['get']('TrackChangesEditing'),_0x3ffc5b=_0x34168d['locale'];_0x9e1325['descriptionFactory']['registerElementLabel']('horizontalLine',_0x551c40=>o(_0x3ffc5b,'ELEMENT_HORIZONTAL_LINE',_0x551c40));}}class ot extends _0x54af3c{['afterInit'](){const _0x10936d=this['editor'];if(!_0x10936d['plugins']['has']('HtmlEmbed'))return;const _0x2d2036=_0x10936d['plugins']['get']('TrackChangesEditing'),_0x19779a=_0x10936d['locale'];_0x2d2036['descriptionFactory']['registerElementLabel']('rawHtml',_0x3d7750=>o(_0x19779a,'ELEMENT_HTML_EMBED',_0x3d7750)),_0x2d2036['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2d2036['descriptionFactory']['registerDescriptionCallback'](_0x121dea=>{if('attribute'!=_0x121dea['type'])return;const {data:_0x34194d}=_0x121dea;if(_0x34194d&&'value'==_0x34194d['key']&&_0x121dea['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3e295e=o(_0x19779a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x19779a,'*Change\x20%0\x20content*',_0x3e295e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7bec1a=this['editor'],_0x346044=_0x7bec1a['locale'];_0x7bec1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58fc63=>{if('formatBlock'!=_0x58fc63['type'])return;const {data:_0x3981eb}=_0x58fc63;if(_0x3981eb&&'htmlEmbed'==_0x3981eb['commandName']){const _0xf09a6=o(_0x346044,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x346044,'*Change\x20%0\x20content*',_0xf09a6)};}});}}class rt extends _0x54af3c{['afterInit'](){const _0x20bf17=this['editor'];if(!_0x20bf17['plugins']['has']('ImageEditing'))return;const _0x1032b3=_0x20bf17['plugins']['get']('TrackChangesEditing'),_0x2d9327=_0x20bf17['plugins']['get']('ImageUtils'),_0x188462=_0x20bf17['locale'];_0x1032b3['enableCommand']('insertImage'),_0x1032b3['descriptionFactory']['registerElementLabel']('imageBlock',_0x48b25c=>o(_0x188462,'ELEMENT_IMAGE',_0x48b25c)),_0x1032b3['descriptionFactory']['registerElementLabel']('imageInline',_0x21c6b2=>o(_0x188462,'ELEMENT_INLINE_IMAGE',_0x21c6b2)),_0x1032b3['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x188462,'ELEMENT_CAPTION')),_0x20bf17['plugins']['has']('ImageUploadEditing')&&_0x1032b3['enableCommand']('uploadImage'),_0x20bf17['plugins']['has']('ImageBlockEditing')&&_0x20bf17['plugins']['has']('ImageInlineEditing')&&(_0x1032b3['enableCommand']('imageTypeInline',(_0x20630f,_0x5dede4)=>{const _0x749095=_0x2d9327['getClosestSelectedImageElement'](_0x20bf17['model']['document']['selection']);_0x20bf17['model']['change'](()=>{_0x1032b3['markBlockFormat'](_0x749095,{'commandName':'imageTypeInline','commandParams':[_0x5dede4]},[],'convertBlockImageToInline');});}),_0x1032b3['enableCommand']('imageTypeBlock',(_0x4c692e,_0x34daf6)=>{_0x20bf17['model']['change'](_0x514b9c=>{let _0x2e903b=_0x2d9327['getClosestSelectedImageElement'](_0x20bf17['model']['document']['selection']),_0x1444e4=_0x514b9c['createRangeOn'](_0x2e903b);const _0x59ae1b=_0x15f5b8['fromPosition'](_0x1444e4['start'],'toPrevious'),_0x4a83b5=_0x15f5b8['fromPosition'](_0x1444e4['end'],'toNext');_0x1032b3['forceDefaultExecution'](()=>_0x4c692e(_0x34daf6)),_0x2e903b=_0x2d9327['getClosestSelectedImageElement'](_0x20bf17['model']['document']['selection']),_0x1444e4=_0x514b9c['createRangeOn'](_0x2e903b);const _0x401a90=_0x514b9c['createRange'](_0x59ae1b,_0x4a83b5);_0x59ae1b['detach'](),_0x4a83b5['detach'](),_0x1032b3['markBlockFormat'](_0x2e903b,{'commandName':'imageTypeInline','commandParams':[_0x34daf6]},[],'convertInlineImageToBlock'),_0x401a90['start']['isBefore'](_0x1444e4['start'])&&_0x1032b3['markInsertion'](_0x514b9c['createRange'](_0x401a90['start'],_0x1444e4['start']),'convertInlineImageToBlock'),_0x1444e4['end']['isBefore'](_0x401a90['end'])&&_0x1032b3['markInsertion'](_0x514b9c['createRange'](_0x1444e4['end'],_0x401a90['end']),'convertInlineImageToBlock');});}),_0x1032b3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1032b3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1032b3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1032b3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1032b3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1032b3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1a5988])=>{const _0x302a23=_0x1032b3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3ed92a=_0x1a5988['start'],_0x1c7743=_0x1a5988['end'];const _0x16ea57=_0x20bf17['model']['schema']['getNearestSelectionRange'](_0x3ed92a,'backward'),_0x21f4cc=_0x20bf17['model']['schema']['getNearestSelectionRange'](_0x1c7743,'forward');_0x16ea57['isCollapsed']&&(_0x3ed92a=_0x16ea57['start']),_0x21f4cc['isCollapsed']&&(_0x1c7743=_0x21f4cc['end']),_0x302a23([_0x20bf17['model']['createRange'](_0x3ed92a,_0x1c7743)]);}),_0x1032b3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x45e058),_0x1032b3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x45e058)),_0x20bf17['plugins']['has']('ImageCaptionEditing')&&(_0x1032b3['enableCommand']('toggleImageCaption',(_0x4bc133,_0x366532)=>{const _0x4f71ab=_0x20bf17['plugins']['get']('ImageCaptionUtils');let _0x14a245=_0x2d9327['getClosestSelectedImageElement'](_0x20bf17['model']['document']['selection']),_0x3a1f92=_0x4f71ab['getCaptionFromImageModelElement'](_0x14a245);_0x20bf17['model']['change'](()=>{if(_0x3a1f92)return void _0x1032b3['markDeletion'](_0x20bf17['model']['createRangeOn'](_0x3a1f92));const _0x19c557=_0x2d9327['isBlockImage'](_0x14a245);_0x4bc133(_0x366532),_0x14a245=_0x2d9327['getClosestSelectedImageElement'](_0x20bf17['model']['document']['selection']),_0x3a1f92=_0x4f71ab['getCaptionFromImageModelElement'](_0x14a245),_0x1032b3['markInsertion'](_0x20bf17['model']['createRangeOn'](_0x3a1f92),_0x19c557?null:'imageCaption');});}),_0x1032b3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x45e058));const _0x49901f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2e0ba5(_0x373dd9,_0x22e579){const _0x5b1f1c=_0x49901f['findIndex'](({type:_0x130041,subType:_0x291d47})=>_0x373dd9['type']==_0x130041&&_0x373dd9['subType']==_0x291d47),_0xb36a11=_0x49901f['findIndex'](({type:_0x373dd3,subType:_0x56685f})=>_0x22e579['type']==_0x373dd3&&_0x22e579['subType']==_0x56685f);if(_0x5b1f1c<0x0||_0xb36a11<0x0)return!0x1;const _0x5687f7=_0x373dd9['getFirstRange'](),_0x31d3f3=_0x22e579['getFirstRange']();if((0x0==_0x5b1f1c||0x1==_0x5b1f1c)&&0x2==_0xb36a11&&_0x5687f7['isIntersecting'](_0x31d3f3))return!0x0;if(0x2==_0x5b1f1c&&0x3==_0xb36a11){const _0x2d6244=_0x1032b3['_findSuggestions'](_0x5687f7,'insertion')['filter'](({suggestion:_0x57df16,meta:_0x3985cb})=>_0x3985cb['isOwn']&&'convertInlineImageToBlock'==_0x57df16['subType']);if(_0x2d6244['length']>0x1&&_0x31d3f3['end']['isEqual'](_0x5687f7['start']))return!0x0;if(0x1==_0x2d6244['length']&&(_0x5687f7['start']['isEqual'](_0x31d3f3['end'])||_0x5687f7['end']['isEqual'](_0x31d3f3['start'])))return!0x0;}if(0x3==_0x5b1f1c&&0x3==_0xb36a11&&_0x5687f7['start']['isBefore'](_0x31d3f3['start'])){const _0xd09a83=_0x5687f7['end']['nodeAfter'],_0x53b1fa=_0x31d3f3['start']['nodeBefore'];return _0x2d9327['isBlockImage'](_0xd09a83)&&_0xd09a83===_0x53b1fa;}return!0x1;}function _0x45e058(_0x4eaf9c,_0x545574){return _0x2e0ba5(_0x4eaf9c,_0x545574)?[_0x4eaf9c,_0x545574]:_0x2e0ba5(_0x545574,_0x4eaf9c)?[_0x545574,_0x4eaf9c]:null;}_0x20bf17['plugins']['has']('ImageResize')&&(_0x1032b3['enableDefaultAttributesIntegration']('resizeImage'),_0x1032b3['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x188462,'FORMAT_IMAGE_SIZE'))),_0x20bf17['plugins']['has']('ImageTextAlternativeEditing')&&_0x1032b3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x20bf17['plugins']['has']('PictureEditing')&&_0x1032b3['descriptionFactory']['registerDescriptionCallback'](_0x459c7f=>{if('attribute'!=_0x459c7f['type'])return;const {data:_0x3b8796}=_0x459c7f;return _0x3b8796&&'sources'==_0x3b8796['key']?{'type':'format','content':''}:void 0x0;}),_0x20bf17['plugins']['has']('ImageSizeAttributes')&&_0x1032b3['descriptionFactory']['registerDescriptionCallback'](_0x14b0f9=>{if('attribute'!=_0x14b0f9['type'])return;const {data:_0x1d8c58}=_0x14b0f9;return!_0x1d8c58||'width'!=_0x1d8c58['key']&&'height'!=_0x1d8c58['key']?void 0x0:{'type':'format','content':''};}),_0x1032b3['descriptionFactory']['registerDescriptionCallback'](_0x3792d4=>{if(!!_0x49901f['find'](({type:_0x3c44a5,subType:_0x51cad9})=>_0x3792d4['type']==_0x3c44a5&&_0x3792d4['subType']==_0x51cad9))return _0x3792d4['previous']?{}:void 0x0;}),_0x1032b3['descriptionFactory']['registerDescriptionCallback'](_0x5d8082=>{if('insertion'==_0x5d8082['type']||'deletion'==_0x5d8082['type']){const _0x14e8e4=_0x5d8082['getContainedElement']();if(_0x14e8e4&&_0x14e8e4['is']('element','caption'))return{'type':'insertion'==_0x5d8082['type']?'addObject':'removeObject','element':_0x14e8e4,'quantity':0x1};}}),_0x1032b3['descriptionFactory']['registerDescriptionCallback'](_0x36b397=>'formatBlock'==_0x36b397['type']&&'convertInlineImageToBlock'==_0x36b397['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x36b397['type']&&'convertBlockImageToInline'==_0x36b397['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1032b3['descriptionFactory']['registerDescriptionCallback'](_0x400713=>{if('attribute'!=_0x400713['type'])return;const {data:_0x85da07}=_0x400713;if(!_0x85da07||'alt'!=_0x85da07['key'])return;const _0x45b982=_0x85da07['newValue'];return _0x45b982?{'type':'format','content':o(_0x188462,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x45b982+'\x22')}:{'type':'format','content':o(_0x188462,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9b6f20=this['editor'],_0x1d2f5b=_0x9b6f20['locale'];_0x9b6f20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22db15=>{if('formatBlock'!=_0x22db15['type']&&'formatInline'!=_0x22db15['type'])return;const {data:_0x5c4eda}=_0x22db15;if(_0x5c4eda){if('imageTextAlternative'==_0x5c4eda['commandName']){const _0x874721=_0x5c4eda['commandParams'][0x0]['newValue'];return _0x874721?{'type':'format','content':o(_0x1d2f5b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x874721+'\x22')}:{'type':'format','content':o(_0x1d2f5b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5c4eda['commandName']){const _0x3420c4=_0x5c4eda['commandParams'][0x0]['width'];return _0x3420c4?{'type':'format','content':o(_0x1d2f5b,'*Set\x20image\x20width:*\x20%0',_0x3420c4)}:{'type':'format','content':o(_0x1d2f5b,'*Reset\x20image\x20width*')};}}});}}class at extends _0x54af3c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2db31f=this['editor']['locale'],_0x39c0fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x39c0fa['enableDefaultAttributesIntegration']('replaceImageSource'),_0x39c0fa['descriptionFactory']['registerDescriptionCallback'](_0x1eef3b=>{if('attribute'!=_0x1eef3b['type'])return;const {data:_0x4939b7}=_0x1eef3b;return _0x4939b7&&'src'==_0x4939b7['key']?_0x4939b7['newValue']&&_0x4939b7['oldValue']?{'type':'format','content':o(_0x2db31f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xd60829=this['editor']['plugins']['get']('TrackChangesEditing');_0xd60829['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xd60829['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd60829['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xd60829['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x854bb0=this['editor'],_0x4ceed2=_0x854bb0['locale'];_0x854bb0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd35c77=>{if('formatBlock'!=_0xd35c77['type']&&'formatInline'!=_0xd35c77['type'])return;const {data:_0x5309d9}=_0xd35c77;if(!_0x5309d9||'replaceImageSource'!=_0x5309d9['commandName'])return;return{'type':'format','content':o(_0x4ceed2,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x54af3c{['afterInit'](){const _0x194683=this['editor'];if(!_0x194683['plugins']['has']('ImageStyleEditing'))return;const _0x14c04f=_0x194683['plugins']['get']('TrackChangesEditing'),_0x322a8c=_0x194683['plugins']['get']('ImageUtils'),_0xd81619={};_0x14c04f['enableCommand']('imageStyle',(_0x2769cb,_0x303d9e)=>{const _0x539e1d=_0x194683['plugins']['get']('Users')['me'],_0x3f4dd6=_0x194683['commands']['get']('imageStyle');let _0xd829f0=_0x322a8c['getClosestSelectedImageElement'](_0x194683['model']['document']['selection']),_0x4e4fdc=_0x194683['model']['createRangeOn'](_0xd829f0),_0x22a631=_0x3f4dd6['value'];if(_0x22a631==_0x303d9e['value'])return;const _0xe8b823={'commandName':'imageStyle','commandParams':[_0x303d9e],'formatGroupId':_0x1c2d37()};_0x194683['model']['change'](()=>{if(_0x14c04f['getSuggestions']()['filter'](_0x552714=>_0x552714['isInContent']&&_0x539e1d==_0x552714['author']&&('formatBlock'==_0x552714['type']||'formatInline'==_0x552714['type'])&&('imageStylePreApply'==_0x552714['subType']||'imageStylePostApply'==_0x552714['subType'])&&_0x552714['getFirstRange']()['isEqual'](_0x4e4fdc))['forEach'](_0x2357cd=>_0x14c04f['discardSuggestion'](_0x2357cd['head'])),_0xd829f0=_0x322a8c['getClosestSelectedImageElement'](_0x194683['model']['document']['selection']),_0x4e4fdc=_0x194683['model']['createRangeOn'](_0xd829f0),_0x3f4dd6['refresh'](),_0x194683['commands']['get']('imageTypeInline')['refresh'](),_0x194683['commands']['get']('imageTypeBlock')['refresh'](),_0x22a631=_0x3f4dd6['value'],_0x22a631!=_0x303d9e['value'])return _0x322a8c['isInlineImage'](_0xd829f0)&&_0x3f4dd6['shouldConvertImageType'](_0x303d9e['value'],_0xd829f0)?(_0x2769cb({..._0x303d9e,'setImageSizes':!0x1}),_0xd829f0=_0x322a8c['getClosestSelectedImageElement'](_0x194683['model']['document']['selection']),void _0x14c04f['markBlockFormat'](_0xd829f0,{..._0xe8b823,'commandReversedParams':[{'value':_0x22a631||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x322a8c['isBlockImage'](_0xd829f0)?_0x14c04f['markBlockFormat'](_0xd829f0,_0xe8b823,[],'imageStylePostApply'):_0x14c04f['markInlineFormat'](_0x4e4fdc,_0xe8b823,'imageStylePostApply'));});});for(const _0x5b28e2 of _0x194683['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xd81619[_0x5b28e2['name']]=_0x5b28e2['title']['toLowerCase']();_0x14c04f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x14c04f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x14c04f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x14c04f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x230b13])=>{_0x322a8c['setImageNaturalSizeAttributes'](_0x230b13['getContainedElement']());}),_0x14c04f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2d590a,_0x3d3707)=>{_0x14c04f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2d590a,{'commandName':_0x3d3707['commandName'],'commandParams':_0x3d3707['commandReversedParams']});}),_0x14c04f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x57886a,_0x2089ba){if(_0x257cf5(_0x57886a,_0x2089ba))return[_0x57886a,_0x2089ba];if(_0x257cf5(_0x2089ba,_0x57886a))return[_0x2089ba,_0x57886a];return null;});const _0x49219f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x257cf5(_0x2763cc,_0x71251){const _0x315ff1=_0x49219f['findIndex'](({type:_0x3d9998,subType:_0x3e1a1e})=>_0x2763cc['type']==_0x3d9998&&_0x2763cc['subType']==_0x3e1a1e),_0x1a6deb=_0x49219f['findIndex'](({type:_0x2b0245,subType:_0x449eb7})=>_0x71251['type']==_0x2b0245&&_0x71251['subType']==_0x449eb7);if(_0x315ff1<0x0||_0x1a6deb<0x0)return!0x1;const _0x349177=_0x2763cc['getFirstRange'](),_0x4b23e0=_0x71251['getFirstRange']();if((0x0==_0x315ff1||0x1==_0x315ff1)&&0x2==_0x1a6deb&&_0x349177['isIntersecting'](_0x4b23e0))return!0x0;if(0x2==_0x315ff1&&0x3==_0x1a6deb){const _0x1bac0c=_0x14c04f['_findSuggestions'](_0x349177,'insertion')['filter'](({suggestion:_0x480daf,meta:_0x1924ec})=>_0x1924ec['isOwn']&&'convertInlineImageToBlock'==_0x480daf['subType']);if(_0x1bac0c['length']>0x1&&_0x4b23e0['end']['isEqual'](_0x349177['start']))return!0x0;if(0x1==_0x1bac0c['length']&&(_0x349177['start']['isEqual'](_0x4b23e0['end'])||_0x349177['end']['isEqual'](_0x4b23e0['start'])))return!0x0;}if(0x3==_0x315ff1&&0x3==_0x1a6deb&&_0x349177['start']['isBefore'](_0x4b23e0['start'])){const _0x3de060=_0x349177['end']['nodeAfter'],_0x23d421=_0x4b23e0['start']['nodeBefore'];return _0x322a8c['isBlockImage'](_0x3de060)&&_0x3de060===_0x23d421;}return!0x1;}_0x194683['model']['document']['registerPostFixer'](()=>{let _0x5e456a=!0x1;const _0x55238d=Array['from'](_0x194683['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f6105,data:_0x2dad29}of _0x55238d){const {group:_0x1b0cd7,type:_0x284341,subType:_0x5bcac2,id:_0x105e66}=_0x14c04f['_splitMarkerName'](_0x2f6105);if('suggestion'==_0x1b0cd7&&_0x14c04f['hasSuggestion'](_0x105e66)){if('formatBlock'==_0x284341&&('imageStylePreApply'==_0x5bcac2||'imageStylePostApply'==_0x5bcac2)){const _0x333c73=_0x14c04f['getSuggestion'](_0x105e66);if(_0x2dad29['newRange']){const _0x4e5946=_0x333c73['getFirstRange']()['getContainedElement']();if(_0x322a8c['isBlockImage'](_0x4e5946))continue;_0x14c04f['discardSuggestion'](_0x333c73),_0x5e456a=!0x0;}}if('insertion'==_0x284341&&'imageCaption'==_0x5bcac2&&!_0x2dad29['newRange']){const _0x4a09b6=_0x14c04f['getSuggestion'](_0x105e66);_0x4a09b6['next']&&_0x4a09b6['next']['isInContent']&&(_0x14c04f['discardSuggestion'](_0x4a09b6['next']),_0x5e456a=!0x0);}}}return _0x5e456a;}),this['_registerLegacyDescription'](_0xd81619);}['_registerLegacyDescription'](_0x3be6a5){const _0x2e3d9e=this['editor'],_0x19c806=_0x2e3d9e['locale'];_0x2e3d9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4418ef=>{if('formatBlock'!=_0x4418ef['type']&&'formatInline'!=_0x4418ef['type'])return;const {data:_0x5752fe}=_0x4418ef;if(!_0x5752fe||'imageStyle'!=_0x5752fe['commandName'])return;const _0x5f235b=_0x5752fe['commandParams'][0x0]['value'];return _0x26daa7('side'===_0x5f235b?o(_0x19c806,'FORMAT_SIDE_IMAGE'):_0x3be6a5[_0x5f235b]||_0x5f235b);function _0x26daa7(_0x6d3926){return{'type':'format','content':o(_0x19c806,'*Format:*\x20%0',_0x6d3926)};}});}}class ut extends _0x54af3c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x333c1d){super(_0x333c1d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1acff0=this['editor'],_0x46773f=_0x1acff0['commands']['get']('importWord'),_0x4dbb97=_0x1acff0['commands']['get']('trackChanges');_0x46773f&&(_0x46773f['on']('execute',(_0x5644af,[,_0x45bd91])=>{this['_trackChangesValueDuringImport']=_0x4dbb97['value'],_0x45bd91['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x46773f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x46773f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4dbb97['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1acff0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x47497a,_0x8053ac){const {suggestions:_0x1af213}=_0x8053ac,_0x27953e=this['editor']['commands']['get']('trackChanges'),_0x2a885d=_0x27953e['value'];this['_trackChangesValueDuringImport']!==_0x2a885d&&(_0x27953e['execute'](),this['_trackChangesExecuted']=!0x0),_0x1af213&&_0x1af213['forEach'](({id:_0x25d162,type:_0x3adb5e,author:_0x2954d7,created_at:_0x471487})=>{const _0x5b8d11={'id':_0x25d162,'type':_0x3adb5e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2954d7,'createdAt':_0x471487?new Date(_0x471487):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5b8d11);});}}class ft extends _0x54af3c{['afterInit'](){const _0x2f06dd=this['editor'],_0xeee988=_0x2f06dd['plugins']['get']('TrackChangesEditing');if(_0x2f06dd['plugins']['has']('IndentEditing')&&(_0xeee988['enableCommand']('indent'),_0xeee988['enableCommand']('outdent')),_0x2f06dd['plugins']['has']('IndentBlock')){for(const _0x5355c9 of['indentBlock','outdentBlock'])_0xeee988['enableDefaultAttributesIntegration'](_0x5355c9);}const _0x3c5323=_0x2f06dd['locale'];_0xeee988['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3c5323,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xaf3fc5=this['editor'],_0xce384b=_0xaf3fc5['locale'],_0x215347=_0xaf3fc5['plugins']['get']('TrackChangesEditing');_0x215347['descriptionFactory']['registerDescriptionCallback'](_0x8d3e34=>{if('formatBlock'!=_0x8d3e34['type'])return;const {data:_0x1b94d2}=_0x8d3e34;if(!_0x1b94d2)return;if('indentBlock'!=_0x1b94d2['commandName']&&'outdentBlock'!=_0x1b94d2['commandName'])return;const _0x519514=_0x8d3e34['getItems']()[0x0],_0x5a29dd=_0x215347['descriptionFactory']['getItemLabel'](_0x519514);return'indentBlock'==_0x1b94d2['commandName']?{'type':'format','content':o(_0xce384b,'*Indent:*\x20%0',_0x5a29dd)}:'outdentBlock'==_0x1b94d2['commandName']?{'type':'format','content':o(_0xce384b,'*Outdent:*\x20%0',_0x5a29dd)}:void 0x0;});}}class ht extends _0x54af3c{static get['requires'](){return[_0x17a653];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x54af3c{['afterInit'](){const _0x27d102=this['editor'];if(!_0x27d102['plugins']['has']('LinkEditing'))return;const _0x7ae184=_0x27d102['plugins']['get']('TrackChangesEditing'),_0x25ad5c=_0x27d102['commands']['get']('link');_0x7ae184['enableDefaultAttributesIntegration']('link'),_0x7ae184['enableDefaultAttributesIntegration']('unlink');for(const _0x3ecbd6 of _0x25ad5c['manualDecorators'])_0x7ae184['descriptionFactory']['registerAttributeLabel'](_0x3ecbd6['id'],'link\x20('+_0x3ecbd6['label']['toLowerCase']()+')');_0x7ae184['descriptionFactory']['registerDescriptionCallback'](_0x387be9=>{if('attribute'!=_0x387be9['type'])return;const {data:_0x58445d}=_0x387be9;if(!_0x58445d||'linkHref'!=_0x58445d['key'])return;const _0x4cf7d8=_0x58445d['newValue'],_0x557f45=_0x27d102['locale'];return{'type':'format','content':null==_0x4cf7d8?o(_0x557f45,'*Remove\x20link*'):o(_0x557f45,'*Set\x20link:*\x20%0','\x22'+_0x4cf7d8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x235d8e=this['editor'],_0xccedcc=_0x235d8e['locale'];_0x235d8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f6c15=>{if('formatInline'!=_0x5f6c15['type'])return;const {data:_0x2e9abe}=_0x5f6c15;if(_0x2e9abe){if('link'==_0x2e9abe['commandName']){const _0x5bf9c2=_0x2e9abe['commandParams'][0x0];return{'type':'format','content':o(_0xccedcc,'*Set\x20link:*\x20%0','\x22'+_0x5bf9c2+'\x22')};}return'unlink'==_0x2e9abe['commandName']?{'type':'format','content':o(_0xccedcc,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x54af3c{['afterInit'](){const _0x20eee8=this['editor'],_0x1da138=_0x20eee8['locale'];if(!_0x20eee8['plugins']['has']('LegacyListEditing'))return;const _0x47eb68=_0x20eee8['plugins']['get']('TrackChangesEditing'),_0x18eadd=_0x20eee8['plugins']['has']('LegacyTodoListEditing');function _0x482376(_0x59b5a4){return()=>{const _0x5df5a5=_0x20eee8['model']['document']['selection'],_0x1b5b22=_0x20eee8['commands']['get'](_0x59b5a4);if(_0x1b5b22['value'])return void _0x20eee8['execute']('paragraph',{});const _0x300c11=_0x59b5a4['slice'](0x0,-0x4),_0x52c19c=function(_0x271e58,_0x289f5b,_0x1a6ad3){let _0x27d89e=Array['from'](_0x271e58)['filter'](_0x31fbfd=>function(_0x327cef,_0x450a5d){return _0x450a5d['checkChild'](_0x327cef['parent'],'listItem')&&!_0x450a5d['isObject'](_0x327cef);}(_0x31fbfd,_0x1a6ad3));_0x27d89e=_0x27d89e['filter'](_0x290216=>!_0x290216['is']('element','listItem')||_0x290216['getAttribute']('listType')!=_0x289f5b);const _0xd53922=new Set();for(const _0x33d93f of _0x27d89e)_0x33d93f['is']('element','listItem')?_0xd53922['add'](Le(_0x33d93f)):_0xd53922['add'](_0x33d93f);return Array['from'](_0xd53922);}(_0x5df5a5['getSelectedBlocks'](),_0x300c11,_0x20eee8['model']['schema']);_0x20eee8['model']['change'](()=>{for(const _0x6ac8c of _0x52c19c)_0x47eb68['markBlockFormat'](_0x6ac8c,{'commandName':_0x59b5a4,'commandParams':[{'forceValue':!_0x1b5b22['value']}],'formatGroupId':'blockName'},Ee(_0x6ac8c));});};}function _0x5e4ea7(_0x527844){return()=>{const _0x142f8f=function(_0x33f037){let _0x220e00=Array['from'](_0x33f037);const _0x3f514c=_0x220e00['findIndex'](_0x51e1cb=>'listItem'!=_0x51e1cb['name']);return _0x3f514c>-0x1&&(_0x220e00=_0x220e00['slice'](0x0,_0x3f514c)),_0x220e00;}(_0x20eee8['model']['document']['selection']['getSelectedBlocks']()),_0x2fa832=_0x20eee8['model']['createRange'](_0x20eee8['model']['createPositionAt'](_0x142f8f[0x0],'before'),_0x20eee8['model']['createPositionAt'](_0x142f8f[_0x142f8f['length']-0x1],'end'));_0x20eee8['model']['change'](()=>{_0x47eb68['markBlockFormat'](_0x2fa832,{'commandName':_0x527844,'commandParams':[],'formatGroupId':'listIndent'},function(_0x59271d){const _0x571575=new Set();for(const _0x222d61 of _0x59271d){let _0x4ce6f4=_0x222d61['nextSibling'];for(;_0x4ce6f4&&_0x4ce6f4['getAttribute']('listIndent')>_0x222d61['getAttribute']('listIndent');)_0x571575['add'](_0x4ce6f4),_0x4ce6f4=_0x4ce6f4['nextSibling'];}return Array['from'](_0x571575);}(_0x142f8f));});};}_0x47eb68['enableCommand']('numberedList',_0x482376('numberedList')),_0x47eb68['enableCommand']('bulletedList',_0x482376('bulletedList')),_0x18eadd&&_0x47eb68['enableCommand']('todoList',_0x482376('todoList')),_0x47eb68['enableCommand']('indentList',_0x5e4ea7('indentList')),_0x47eb68['enableCommand']('outdentList',_0x5e4ea7('outdentList')),_0x18eadd&&_0x47eb68['enableCommand']('checkTodoList',()=>{const _0x20329a=_0x20eee8['commands']['get']('checkTodoList'),_0x1ed01b=Array['from'](_0x20329a['_selectedElements']);_0x1ed01b['filter'](_0x1d2063=>_0x1d2063['getAttribute']('todoListChecked')!=_0x20329a['value']),_0x20eee8['model']['change'](()=>{for(const _0x4c6fdc of _0x1ed01b)_0x47eb68['markBlockFormat'](_0x4c6fdc,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x20329a['value']}]});});}),_0x47eb68['descriptionFactory']['registerElementLabel']('listItem',_0x1509dd=>o(_0x1da138,'ELEMENT_LIST_ITEM',_0x1509dd)),_0x47eb68['descriptionFactory']['registerDescriptionCallback'](_0x48e371=>{if('formatBlock'!=_0x48e371['type']&&'formatInline'!=_0x48e371['type'])return;const {data:_0x5e78aa}=_0x48e371;if(_0x5e78aa){if('numberedList'==_0x5e78aa['commandName']||'bulletedList'==_0x5e78aa['commandName']||'todoList'==_0x5e78aa['commandName'])switch(_0x5e78aa['commandName']['replace']('List','')){case'bulleted':return _0x9c1633(o(_0x1da138,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9c1633(o(_0x1da138,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9c1633(o(_0x1da138,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5e78aa['commandName'])return{'type':'format','content':o(_0x1da138,'*Indent:*\x20%0',o(_0x1da138,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5e78aa['commandName'])return{'type':'format','content':o(_0x1da138,'*Outdent:*\x20%0',o(_0x1da138,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5e78aa['commandName'])return _0x5e78aa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1da138,'*Check\x20item*')}:{'type':'format','content':o(_0x1da138,'*Uncheck\x20item*')};}function _0x9c1633(_0x44e77f){return{'type':'format','content':o(_0x1da138,'*Change\x20to:*\x20%0',_0x44e77f)};}});}}function Le(_0x39af4c){const _0x50f7a4=_0x39af4c['getAttribute']('listIndent');if(0x0==_0x50f7a4)return _0x39af4c;let _0x9cf8af=_0x39af4c;for(;_0x39af4c['previousSibling']&&_0x39af4c['previousSibling']['is']('element','listItem');){const _0x47bf23=_0x39af4c['previousSibling']['getAttribute']('listIndent');if(_0x47bf23==_0x50f7a4)_0x9cf8af=_0x39af4c['previousSibling'];else{if(_0x47bf23<_0x50f7a4)break;}_0x39af4c=_0x39af4c['previousSibling'];}return _0x9cf8af;}function Ee(_0x457bcf){const _0x572790=[];if(_0x457bcf['is']('element','listItem')&&_0x457bcf['getAttribute']('listIndent')>0x0){let _0x43858b=_0x457bcf['nextSibling'];for(;_0x43858b&&'listItem'==_0x43858b['name']&&_0x43858b['getAttribute']('listIndent')==_0x457bcf['getAttribute']('listIndent');)_0x572790['push'](_0x43858b),_0x43858b=_0x43858b['nextSibling'];}return _0x572790;}class mt extends _0x54af3c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x173c5e=this['editor']['config']['get']('list.properties'),_0x3aa4a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x173c5e['styles']&&_0x3aa4a4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x173c5e['reversed']&&_0x3aa4a4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x173c5e['startIndex']&&_0x3aa4a4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3aa4a4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x24bd5b,_0x18249c={}){const _0x223b81=this['editor']['plugins']['get']('TrackChangesEditing'),_0x82d22a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x223b81['markMultiRangeBlockFormat'](_0x82d22a,{'commandName':'listStyle','commandParams':[{'type':_0x18249c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x207663,_0x2ce73f={}){const _0x1e973a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3717ca=this['_getSuggestionBlocks'](_0xbe92da=>_0xbe92da['is']('element','listItem')&&'numbered'===_0xbe92da['getAttribute']('listType'));if(_0x3717ca['length']<0x1)return;const _0x582159=_0x3717ca['map'](_0x3095d3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3095d3,'before'),this['editor']['model']['createPositionAt'](_0x3095d3,0x0)));this['editor']['model']['change'](()=>{_0x1e973a['markMultiRangeBlockFormat'](_0x582159,{'commandName':'listReversed','commandParams':[{'reversed':_0x2ce73f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x776b2,_0x39bb7b={}){const _0x1a9ff3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x105781=this['_getSuggestionBlocks'](_0x1df3d3=>_0x1df3d3['is']('element','listItem')&&'numbered'===_0x1df3d3['getAttribute']('listType'));if(_0x105781['length']<0x1)return;const _0x2291e3=_0x105781['map'](_0x4b243b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4b243b,'before'),this['editor']['model']['createPositionAt'](_0x4b243b,0x0)));this['editor']['model']['change'](()=>{_0x1a9ff3['markMultiRangeBlockFormat'](_0x2291e3,{'commandName':'listStart','commandParams':[{'startIndex':_0x39bb7b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x68b7fb){if('formatBlock'!=_0x68b7fb['type']&&'formatInline'!=_0x68b7fb['type'])return;const _0x1a725f=this['editor']['locale'],{data:_0x482c43}=_0x68b7fb;if(!_0x482c43)return;let _0x11dfba,_0x49e1c8;switch(_0x482c43['commandName']){case'listStyle':_0x11dfba='*Change\x20to:*\x20%0',_0x49e1c8={'type':'format','content':o(_0x1a725f,_0x11dfba,o(_0x1a725f,this['_getTranslationKeyForListStyle'](_0x482c43['commandParams'][0x0]['type'])))};break;case'listReversed':_0x11dfba=_0x482c43['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x49e1c8={'type':'format','content':o(_0x1a725f,_0x11dfba)};break;case'listStart':_0x11dfba='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x49e1c8={'type':'format','content':o(_0x1a725f,_0x11dfba,_0x482c43['commandParams'][0x0]['startIndex'])};}return _0x49e1c8;}['_getSuggestionBlocksForListStyle'](){const _0x41fe71=this['editor']['plugins']['get']('LegacyListUtils');let _0x3c64fa=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3c64fa[0x0]?.['is']('element','listItem')&&_0x3c64fa['unshift'](..._0x41fe71['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3c64fa[_0x3c64fa['length']-0x1]?.['is']('element','listItem')&&_0x3c64fa['push'](..._0x41fe71['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3c64fa=[...new Set(_0x3c64fa)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3c64fa=_0x3c64fa['filter'](_0xb4df78=>_0xb4df78['is']('element','listItem'))),_0x3c64fa;}['_getSuggestionBlocks'](_0xc6e113){const _0x19559b=this['editor']['plugins']['get']('LegacyListUtils');let _0x45560e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xc6e113)['map'](_0x4504f5=>{const _0x1dc2a9=this['editor']['model']['createPositionAt'](_0x4504f5,0x0);return[..._0x19559b['getSiblingNodes'](_0x1dc2a9,'backward'),..._0x19559b['getSiblingNodes'](_0x1dc2a9,'forward')];})['flat']();return _0x45560e=[...new Set(_0x45560e)],_0x45560e;}['_getTranslationKeyForListStyle'](_0x55a682){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x55a682)||'default')['toUpperCase']()+'_LIST_'+_0x55a682['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x54af3c{['afterInit'](){const _0x1bd50c=this['editor'];if(!_0x1bd50c['plugins']['has']('MediaEmbedEditing'))return;const _0x1aca44=_0x1bd50c['plugins']['get']('TrackChangesEditing'),_0x2f7f98=_0x1bd50c['locale'];_0x1aca44['enableCommand']('mediaEmbed'),_0x1aca44['descriptionFactory']['registerElementLabel']('media',_0x36f70f=>o(_0x2f7f98,'ELEMENT_MEDIA',_0x36f70f));}}class pt extends _0x54af3c{['afterInit'](){const _0x4ef3d1=this['editor'];_0x4ef3d1['plugins']['has']('MentionEditing')&&_0x4ef3d1['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x54af3c{['afterInit'](){const _0x3f7ee3=this['editor'];if(!_0x3f7ee3['plugins']['has']('MergeFieldsEditing'))return;const _0x2471d2=_0x3f7ee3['plugins']['get']('TrackChangesEditing'),_0x16fcad=_0x3f7ee3['locale'];_0x2471d2['enableCommand']('insertMergeField'),_0x2471d2['enableCommand']('insertMergeFieldBlock'),_0x2471d2['enableCommand']('insertMergeFieldImage'),_0x2471d2['descriptionFactory']['registerElementLabel']('mergeField',_0x3e8a04=>o(_0x16fcad,'ELEMENT_MERGE_FIELD',_0x3e8a04)),_0x2471d2['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x44c882=>o(_0x16fcad,'ELEMENT_MERGE_FIELD',_0x44c882)),_0x2471d2['descriptionFactory']['registerDescriptionCallback'](_0x1b707e=>{if('insertion'!=_0x1b707e['type']&&'deletion'!=_0x1b707e['type'])return;const _0x2254bb=_0x1b707e['getContainedElement']();if(null==_0x2254bb)return;const _0x1c2cfc=_0x3f7ee3['plugins']['get']('MergeFieldsEditing');let _0x2fbbc9;switch(_0x1c2cfc['getMergeFieldType'](_0x2254bb)){case null:return;case'image':{const _0x3967fc=_0x1c2cfc['unwrapAffixes'](_0x2254bb['getAttribute']('src'));_0x2fbbc9=_0x1c2cfc['getLabel'](_0x3967fc)||_0x3967fc;break;}default:{const _0xa02226=_0x2254bb['getAttribute']('id');_0x2fbbc9=_0x1c2cfc['getLabel'](_0xa02226)||_0xa02226;break;}}return'insertion'==_0x1b707e['type']?{'type':'insertion','content':o(_0x16fcad,'*Insert:*\x20%0','\x22'+_0x2fbbc9+'\x22\x20'+o(_0x16fcad,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x16fcad,'*Remove:*\x20%0','\x22'+_0x2fbbc9+'\x22\x20'+o(_0x16fcad,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x54af3c{['afterInit'](){const _0x75e095=this['editor'],_0x44a778=_0x75e095['plugins']['get']('TrackChangesEditing');_0x75e095['plugins']['has']('MultiLevelList')&&(_0x44a778['enableDefaultAttributesIntegration']('multiLevelList'),_0x44a778['descriptionFactory']['registerDescriptionCallback'](_0x59ef63=>this['handleDescriptions'](_0x59ef63)));}['handleDescriptions'](_0xc5c841){const _0x4a3406=this['editor']['locale'],{data:_0x3e3a14}=_0xc5c841,_0x2aaec8={'type':'format','content':''};if(_0x3e3a14&&'listMarkerStyle'==_0x3e3a14['key']){if(!_0x3e3a14['oldValue'])return{'type':'format','content':o(_0x4a3406,'*Set\x20format:*\x20%0',o(_0x4a3406,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3e3a14['newValue']+')'};if(!_0x3e3a14['newValue']){let _0x471b86=_0xc5c841['head'];for(;_0x471b86;){if(_0x471b86['data']&&'listType'==_0x471b86['data']['key']&&_0x471b86['data']['newValue'])return _0x2aaec8;_0x471b86=_0x471b86['next'];}return{'type':'format','content':o(_0x4a3406,'*Remove\x20format:*\x20%0',o(_0x4a3406,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3e3a14['oldValue']+')'};}}}}class bt extends _0x54af3c{['afterInit'](){const _0x5d533e=this['editor'];if(!_0x5d533e['plugins']['has']('PageBreakEditing'))return;_0x5d533e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x34a69d=_0x5d533e['plugins']['get']('TrackChangesEditing'),_0x1aee60=_0x5d533e['locale'];_0x34a69d['descriptionFactory']['registerElementLabel']('pageBreak',_0x49c25f=>o(_0x1aee60,'ELEMENT_PAGE_BREAK',_0x49c25f));}}class yt extends _0x54af3c{['afterInit'](){const _0x3db03d=this['editor'];if(!_0x3db03d['plugins']['has']('Paragraph'))return;const _0x438a91=_0x3db03d['locale'],_0x493712=_0x3db03d['plugins']['get']('TrackChangesEditing');_0x493712['descriptionFactory']['registerElementLabel']('paragraph',_0x4547d3=>o(_0x438a91,'ELEMENT_PARAGRAPH',_0x4547d3)),_0x493712['enableDefaultAttributesIntegration']('paragraph'),_0x493712['enableCommand']('insertParagraph');const _0x9bc29b=_0x493712['descriptionFactory'];_0x9bc29b['registerDescriptionCallback'](_0x3dfd37=>{if('insertion'!==_0x3dfd37['type'])return;const {start:_0x2072cb,end:_0x228083}=_0x3dfd37['getFirstRange']();if(!_0x2072cb['isTouching'](_0x228083)||!_0x2072cb['nodeAfter'])return;const _0x5e33c8=_0x3db03d['model']['schema'],_0x15ff10=_0x2072cb['nodeAfter'];return _0x5e33c8['isBlock'](_0x15ff10)&&!_0x5e33c8['isLimit'](_0x15ff10)&&_0x5e33c8['checkChild'](_0x15ff10,'$text')?{'type':'insertion','content':o(_0x438a91,'*Insert:*\x20%0',_0x9bc29b['getItemLabel'](_0x15ff10,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42b7d0=this['editor'],_0x3113e2=_0x42b7d0['locale'];_0x42b7d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cf43b=>{if('formatBlock'!=_0x5cf43b['type'])return;const {data:_0x689ce}=_0x5cf43b;return _0x689ce&&'paragraph'==_0x689ce['commandName']?{'type':'format','content':o(_0x3113e2,'*Change\x20to:*\x20%0',o(_0x3113e2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x54af3c{['afterInit'](){const _0x51e4e3=this['editor'];_0x51e4e3['commands']['get']('replaceSource')&&_0x51e4e3['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x54af3c{['afterInit'](){const _0x147be=this['editor'];if(!_0x147be['plugins']['has']('RemoveFormatEditing'))return;_0x147be['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24817c=this['editor'];_0x24817c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cf1f9=>{if('formatBlock'!=_0x1cf1f9['type']&&'formatInline'!=_0x1cf1f9['type'])return;const {data:_0x55e0e1}=_0x1cf1f9;return _0x55e0e1&&'removeFormat'==_0x55e0e1['commandName']?{'type':'format','content':o(_0x24817c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x54af3c{['afterInit'](){const _0xde7afb=this['editor'];if(!_0xde7afb['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x280f4a=_0xde7afb['plugins']['get']('TrackChangesEditing');_0x280f4a['enableCommand']('goToPreviousRestrictedEditingException'),_0x280f4a['enableCommand']('goToNextRestrictedEditingException');const _0x15e47c=_0xde7afb['plugins']['get']('RestrictedEditingModeEditing');_0x15e47c['enableCommand']('trackChanges'),_0x15e47c['enableCommand']('acceptSuggestion'),_0x15e47c['enableCommand']('discardSuggestion'),_0x15e47c['enableCommand']('acceptAllSuggestions'),_0x15e47c['enableCommand']('discardAllSuggestions'),_0x15e47c['enableCommand']('acceptSelectedSuggestions'),_0x15e47c['enableCommand']('discardSelectedSuggestions');}}class At extends _0x54af3c{['afterInit'](){const _0xfe025f=this['editor'];if(!_0xfe025f['plugins']['has']('ShiftEnter'))return;const _0x127344=_0xfe025f['plugins']['get']('TrackChangesEditing');_0x127344['enableCommand']('shiftEnter'),_0x127344['descriptionFactory']['registerElementLabel']('softBreak',_0xe636a5=>o(_0xfe025f['locale'],'ELEMENT_LINE_BREAK',_0xe636a5));}}function an(_0x8a9310,_0x3b1a8e,_0x364f60){const _0x463317=[];for(const _0x268679 of _0x3b1a8e['getItems']())_0x268679['hasAttribute'](_0x8a9310)&&_0x463317['push'](_0x364f60['createRangeOn'](_0x268679));return _0x463317;}class _t extends _0x54af3c{['afterInit'](){const _0x261223=this['editor'],_0x45c944=_0x261223['plugins']['get']('TrackChangesEditing');_0x261223['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x45c944['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x442770=this['editor'],_0x431b5f=_0x442770['model'],_0x20f1b0=_0x442770['locale'],_0xadecea=_0x442770['plugins']['get']('TrackChangesEditing'),_0xe9aaac='restrictedEditingException',_0x22f78f=_0x442770['commands']['get'](_0xe9aaac);_0xadecea['enableCommand'](_0xe9aaac,(_0x51b55c,_0x38bd7f={})=>{const _0x210db6=_0x431b5f['document']['selection'];if(_0x210db6['isCollapsed'])return void _0x51b55c(_0x38bd7f);const _0x595edc=void 0x0!==_0x38bd7f['forceValue']?_0x38bd7f['forceValue']:!_0x22f78f['value'];_0x431b5f['change'](()=>{const _0x23a8fe=Array['from'](_0x210db6['getRanges']());for(const _0x26dedc of _0x23a8fe){const _0x27a3b0=_0x595edc?[_0x26dedc]:an(_0xe9aaac,_0x26dedc,_0x431b5f);for(const _0x85c1ad of _0x27a3b0)_0xadecea['markInlineFormat'](_0x85c1ad,{'commandName':_0xe9aaac,'commandParams':[{'forceValue':_0x595edc}]});}});}),_0xadecea['descriptionFactory']['registerDescriptionCallback'](_0x4a014c=>{if('formatBlock'!=_0x4a014c['type']&&'formatInline'!=_0x4a014c['type'])return;const {data:_0x9efc23}=_0x4a014c;return _0x9efc23&&_0x9efc23['commandName']==_0xe9aaac?_0x9efc23['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20f1b0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x20f1b0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0xbc1e80=this['editor'],_0x31af18=_0xbc1e80['locale'],_0x3928ff=_0xbc1e80['plugins']['get']('TrackChangesEditing'),_0x565b2b='restrictedEditingExceptionBlock',_0x3d6280=this['editor']['commands']['get'](_0x565b2b);_0x3928ff['enableCommand'](_0x565b2b,(_0x2ae110,_0xb4c817={})=>{const _0x21d9b1=this['editor']['model']['document']['selection'],_0x2c6301=_0xb4c817&&void 0x0!==_0xb4c817['forceValue']?_0xb4c817['forceValue']:!_0x3d6280['value'];let _0x4570bb=[];if(_0x2c6301){const _0x2af1e7=Array['from'](_0x21d9b1['getSelectedBlocks']())['filter'](_0x4508ac=>function(_0x4b8b90){return!!_0x4b8b90['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x4508ac)||function(_0x12c76f,_0x3d8c8f){const _0xecb75e=_0x3d8c8f['createContext'](_0x12c76f['parent']);if(!_0x3d8c8f['checkChild'](_0xecb75e,'restrictedEditingException'))return!0x1;if(!_0x3d8c8f['checkChild'](_0xecb75e['push']('restrictedEditingException'),_0x12c76f))return!0x1;return!0x0;}(_0x4508ac,this['editor']['model']['schema']));_0x4570bb=to(_0x2af1e7,_0xbc1e80['model']);}else{const _0x15c196=Array['from'](_0x21d9b1['getSelectedBlocks']())['map'](_0x330e9=>function(_0x5e6549){let _0x3024d3=_0x5e6549;for(;_0x3024d3['parent'];){if('restrictedEditingException'==_0x3024d3['parent']['name'])return _0x3024d3;_0x3024d3=_0x3024d3['parent'];}return null;}(_0x330e9))['filter'](_0x147b13=>!!_0x147b13);_0x4570bb=to(_0x15c196,_0xbc1e80['model']);}_0xbc1e80['model']['change'](()=>{for(const _0x21aa6a of _0x4570bb)_0x3928ff['markBlockFormat'](_0x21aa6a,{'commandName':_0x565b2b,'commandParams':[{'forceValue':_0x2c6301}]});});}),_0x3928ff['descriptionFactory']['registerDescriptionCallback'](_0x7de178=>{const {data:_0x394b69}=_0x7de178;if(_0x394b69&&_0x394b69['commandName']==_0x565b2b)return _0x394b69['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31af18,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x31af18,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x54af3c{['afterInit'](){const _0x4fa041=this['editor'];if(!_0x4fa041['plugins']['has']('Style')||!_0x4fa041['plugins']['has']('DataSchema'))return;const _0x243d61=_0x4fa041['plugins']['get']('TrackChangesEditing'),_0x4a1c9d=_0x4fa041['locale'],_0x4d5e1d=_0x4fa041['config']['get']('style')||{},_0x37aa83=_0x4fa041['plugins']['get']('GeneralHtmlSupport'),_0x1777ad=_0x4fa041['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4fa041['plugins']['get']('DataSchema'),_0x4d5e1d['definitions']);_0x243d61['enableDefaultAttributesIntegration']('style');const _0x39f568=new Set();for(const _0x328bc2 of _0x1777ad['block']){const _0x4466db=_0x37aa83['getGhsAttributeNameForElement'](_0x328bc2['element']);_0x39f568['add'](_0x4466db);}const _0x4ee2cc=new Set();for(const _0x1e6ba0 of _0x1777ad['inline']){const _0x19c81c=_0x37aa83['getGhsAttributeNameForElement'](_0x1e6ba0['element']);_0x4ee2cc['add'](_0x19c81c);for(const _0x551cd6 of _0x1e6ba0['ghsAttributes'])_0x4ee2cc['add'](_0x551cd6);}for(const _0x2e62ff of _0x39f568)_0x243d61['descriptionFactory']['registerAttributeLabel'](_0x2e62ff,o(_0x4a1c9d,'FORMAT_STYLE'));for(const _0x2533ed of _0x4ee2cc)_0x243d61['descriptionFactory']['registerAttributeLabel'](_0x2533ed,o(_0x4a1c9d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x307fd0=this['editor'],_0x3aa00d=_0x307fd0['locale'];_0x307fd0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a8e64=>{if('formatBlock'!=_0x4a8e64['type']&&'formatInline'!=_0x4a8e64['type'])return;const {data:_0x2f90a9}=_0x4a8e64;return _0x2f90a9&&'style'===_0x2f90a9['commandName']?_0x2f90a9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3aa00d,'*Set\x20format:*\x20%0',_0x2f90a9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3aa00d,'*Remove\x20format:*\x20%0',_0x2f90a9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x54af3c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5ec710){super(_0x5ec710),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x524e8a=this['editor'],_0x16a364=_0x524e8a['model']['document']['selection'];if(!_0x524e8a['plugins']['has']('TableEditing'))return;const _0x48f64c=_0x524e8a['locale'],_0xd7d5bf=_0x524e8a['plugins']['get']('TrackChangesEditing'),_0x4cd1a8=_0x524e8a['plugins']['get']('TableUtils');_0xd7d5bf['descriptionFactory']['registerElementLabel']('table',_0x365cef=>o(_0x48f64c,'ELEMENT_TABLE',_0x365cef)),this['_setupColumnsRowsFixing'](),_0xd7d5bf['enableCommand']('insertTable'),_0xd7d5bf['enableCommand']('selectTableRow'),_0xd7d5bf['enableCommand']('selectTableColumn');for(const _0x9cf2c1 of['insertTableRowAbove','insertTableRowBelow']){const _0x420dbe=_0x524e8a['commands']['get'](_0x9cf2c1);_0xd7d5bf['enableCommand'](_0x9cf2c1,_0x28ec81=>{_0x524e8a['model']['change'](_0x257f04=>{_0x28ec81();const _0x39dca6='above'===_0x420dbe['order'],_0x48af91=_0x4cd1a8['getSelectionAffectedTableCells'](_0x16a364),_0x45a2e6=_0x4cd1a8['getRowIndexes'](_0x48af91),_0x4506f3=_0x39dca6?_0x45a2e6['first']-0x1:_0x45a2e6['last']+0x1,_0x74d7ed=_0x48af91[0x0]['findAncestor']('table'),_0x56a330=_0x4cd1a8['createTableWalker'](_0x74d7ed,{'startRow':_0x4506f3,'endRow':_0x4506f3}),_0x15e1ab=Array['from'](_0x56a330)['map'](_0x9941ca=>_0x257f04['createRangeOn'](_0x9941ca['cell']));_0xd7d5bf['markMultiRangeInsertion'](_0x15e1ab,'tableRow');});});}for(const _0x575ddc of['insertTableColumnLeft','insertTableColumnRight']){const _0x1c5fef=_0x524e8a['commands']['get'](_0x575ddc);_0xd7d5bf['enableCommand'](_0x575ddc,_0x354c15=>{_0x524e8a['model']['change'](_0x3c366a=>{_0x354c15();const _0x50a0f0='left'===_0x1c5fef['order'],_0x44b580=_0x4cd1a8['getSelectionAffectedTableCells'](_0x16a364),_0x22d029=_0x4cd1a8['getColumnIndexes'](_0x44b580),_0x597a68=_0x50a0f0?_0x22d029['first']-0x1:_0x22d029['last']+0x1,_0x6a4d2=_0x44b580[0x0]['findAncestor']('table'),_0x1287bc=_0x4cd1a8['createTableWalker'](_0x6a4d2,{'startRow':0x0,'column':_0x597a68,'includeAllSlots':!0x1}),_0x2334e9=Array['from'](_0x1287bc)['map'](_0x48e1fc=>_0x3c366a['createRangeOn'](_0x48e1fc['cell']));_0xd7d5bf['markMultiRangeInsertion'](_0x2334e9,'tableColumn');});});}for(const _0x1607b8 of['removeTableRow','removeTableColumn']){const _0x2fa35d=_0x1607b8['substr'](0xb),_0xe33b5d=_0x2fa35d['toLowerCase'](),_0x41f935=_0xe33b5d['substr'](0x0,0x3)+'span',_0x5c8503='table'+_0x2fa35d,_0x154bc4='min'+_0x2fa35d,_0x424350='max'+_0x2fa35d;_0xd7d5bf['enableCommand'](_0x1607b8,()=>{_0x524e8a['model']['change'](_0x249fc2=>{const _0x24e054=_0x4cd1a8['getSelectionAffectedTableCells'](_0x16a364),_0x84738=_0x24e054[0x0]['findAncestor']('table');let _0x438ac2;if('removeTableRow'==_0x1607b8){const _0x1e557b=_0x4cd1a8['getRowIndexes'](_0x24e054);_0x438ac2={'startRow':_0x1e557b['first'],'endRow':_0x1e557b['last'],'includeAllSlots':!0x0};}else{const _0x4d614f=_0x4cd1a8['getColumnIndexes'](_0x24e054);_0x438ac2={'startColumn':_0x4d614f['first'],'endColumn':_0x4d614f['last'],'includeAllSlots':!0x0};}const _0x430249=_0x4cd1a8['createTableWalker'](_0x84738,_0x438ac2),_0x3a68cf=Array['from'](_0x430249)['map'](({cell:_0x199e35})=>_0x199e35),_0x3b5ffd=_e(_0x3a68cf['filter'](_0x17dfc2=>_0x17dfc2['hasAttribute'](_0x41f935))),_0x2f4dfc=_e(_0x3a68cf['filter'](_0x50f3b2=>!_0x50f3b2['hasAttribute'](_0x41f935)))['map'](_0x162be9=>_0x249fc2['createRangeOn'](_0x162be9)),_0x3f4c12=_0xd7d5bf['markMultiRangeDeletion'](_0x2f4dfc,_0x5c8503);if(_0x3f4c12&&('tableRow'==_0x3f4c12['subType']||'tableColumn'==_0x3f4c12['subType'])){const _0x1448aa=this['_getSuggestionCoords'](_0x3f4c12);for(const _0x124eeb of _0x3b5ffd){const _0x34cdaf=_0x249fc2['createRangeOn'](_0x124eeb),_0x51b538=_0x4cd1a8['getCellLocation'](_0x124eeb),_0x9f9a65=_0x124eeb['getAttribute'](_0x41f935)-0x1,_0xd4023=_0x1448aa[_0x154bc4],_0x2b59d9=_0x1448aa[_0x424350];_0xd4023<=_0x51b538[_0xe33b5d]&&_0x51b538[_0xe33b5d]+_0x9f9a65<=_0x2b59d9&&_0x3f4c12['addRange'](_0x34cdaf);}}});});}function _0x3ce19c(_0x43cba8){const _0x43ba62=Array['from'](_0x16a364['getRanges']())['map'](_0x4b00c7=>_0x3935f7['fromRange'](_0x4b00c7));_0x524e8a['model']['change'](_0x2afa12=>{const _0x41077b=_0x2afa12['batch'];_0x43cba8=_0x43cba8['filter'](_0x51b064=>'$graveyard'!=_0x51b064['root']['rootName']),_0x2afa12['setSelection'](_0x43cba8),_0x524e8a['commands']['get']('removeTableRow')['refresh'](),_0x524e8a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x524e8a['model']['enqueueChange'](()=>{_0x524e8a['model']['enqueueChange'](_0x41077b,_0x277747=>{const _0x5f189e=_0x43ba62['filter'](_0x35f2e4=>'$graveyard'!=_0x35f2e4['root']['rootName']);_0x5f189e['length']>0x0&&_0x277747['setSelection'](_0x5f189e);for(const _0x5d8a73 of _0x43ba62)_0x5d8a73['detach']();});});});}function _0xc47339(_0x410630){_0x524e8a['model']['change'](_0x23a836=>{const _0x3b94a8=Array['from'](_0x16a364['getRanges']())['map'](_0x2ebafd=>_0x3935f7['fromRange'](_0x2ebafd)),_0x32f660=[];for(const _0x1845ab of _0x410630)for(const _0x19a0f4 of _0x1845ab['getItems']({'shallow':!0x0}))_0x32f660['push'](_0x19a0f4);for(const _0x1a4d6b of _0x32f660)'$graveyard'!=_0x1a4d6b['root']['rootName']&&(_0x23a836['setSelection'](_0x23a836['createPositionAt'](_0x1a4d6b,0x0)),_0x524e8a['commands']['get']('removeTableColumn')['refresh'](),_0x524e8a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x27b665=_0x3b94a8['filter'](_0x40db27=>'$graveyard'!=_0x40db27['root']['rootName']);_0x27b665['length']>0x0&&_0x23a836['setSelection'](_0x27b665);for(const _0x39b607 of _0x3b94a8)_0x39b607['detach']();});}function _0x19139d(_0xbe41af,_0x34366f){return _0x34366f['every'](_0x39b50f=>_0xbe41af['some'](_0x39db04=>_0x39db04['end']['isEqual'](_0x39b50f['start'])||_0x39b50f['end']['isEqual'](_0x39db04['start'])));}function _0x5754a4(_0x1edf98,_0xc25115){return!_0x1edf98['some'](_0x1f077c=>_0xc25115['some'](_0x1b249d=>_0x1f077c['isIntersecting'](_0x1b249d)))&&_0x1edf98['some'](_0xe72e72=>_0xc25115['some'](_0x19bb83=>_0xe72e72['end']['isTouching'](_0x19bb83['start'])));}_0xd7d5bf['descriptionFactory']['registerDescriptionCallback'](_0x578084=>{if('insertion'!=_0x578084['type']&&'deletion'!=_0x578084['type'])return;const _0x8e5a34=_0x578084['getContainedElement']();if(null!=_0x8e5a34&&_0x8e5a34['is']('element','table')){if('insertion'==_0x578084['type']){const _0x169eec=_0x578084['getItems']()['filter'](_0x31d0d0=>_0x31d0d0['is']('$textProxy'))['map'](_0x58a4b9=>_0x58a4b9['data']);if(_0x169eec['length'])return{'type':'insertion','content':o(_0x48f64c,'*Insert:*\x20%0',o(_0x48f64c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x169eec['join']('\x20')+'\x22'))};}if('deletion'==_0x578084['type']){const _0x2cb15b=_0x578084['getItems']()['filter'](_0x26c436=>_0x26c436['is']('$textProxy'))['map'](_0xd80d06=>_0xd80d06['data']);if(_0x2cb15b['length'])return{'type':'deletion','content':o(_0x48f64c,'*Remove:*\x20%0',o(_0x48f64c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2cb15b['join']('\x20')+'\x22'))};}}}),_0xd7d5bf['descriptionFactory']['registerDescriptionCallback'](_0x344826=>{if('tableRow'==_0x344826['subType']){const _0x5ee32f=_0x344826['getItems']()['filter'](_0x2863f7=>_0x2863f7['is']('$textProxy'))['map'](_0x18459c=>_0x18459c['data']),_0x50ab3f=this['_getSuggestionCoords'](_0x344826),_0x18e4ac=_0x50ab3f['maxRow']-_0x50ab3f['minRow']+0x1;if('insertion'==_0x344826['type'])return _0x5ee32f['length']?{'type':'insertion','content':o(_0x48f64c,'*Insert:*\x20%0',o(_0x48f64c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x18e4ac,'\x22'+_0x5ee32f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x48f64c,'*Insert:*\x20%0',o(_0x48f64c,'ELEMENT_TABLE_ROW',_0x18e4ac))};if('deletion'==_0x344826['type'])return _0x5ee32f['length']?{'type':'deletion','content':o(_0x48f64c,'*Remove:*\x20%0',o(_0x48f64c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x18e4ac,'\x22'+_0x5ee32f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x48f64c,'*Remove:*\x20%0',o(_0x48f64c,'ELEMENT_TABLE_ROW',_0x18e4ac))};}if('tableColumn'==_0x344826['subType']){const _0x244ff7=_0x344826['getItems']()['filter'](_0x1d7e13=>_0x1d7e13['is']('$textProxy'))['map'](_0x3bd800=>_0x3bd800['data']),_0x1f4468=this['_getSuggestionCoords'](_0x344826),_0x54f878=_0x1f4468['maxColumn']-_0x1f4468['minColumn']+0x1;if('insertion'==_0x344826['type'])return _0x244ff7['length']?{'type':'insertion','content':o(_0x48f64c,'*Insert:*\x20%0',o(_0x48f64c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x54f878,'\x22'+_0x244ff7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x48f64c,'*Insert:*\x20%0',o(_0x48f64c,'ELEMENT_TABLE_COLUMN',_0x54f878))};if('deletion'==_0x344826['type'])return _0x244ff7['length']?{'type':'deletion','content':o(_0x48f64c,'*Remove:*\x20%0',o(_0x48f64c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x54f878,'\x22'+_0x244ff7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x48f64c,'*Remove:*\x20%0',o(_0x48f64c,'ELEMENT_TABLE_COLUMN',_0x54f878))};}}),_0xd7d5bf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3ce19c),_0xd7d5bf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3ce19c),_0xd7d5bf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xc47339),_0xd7d5bf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xc47339),_0xd7d5bf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x19139d),_0xd7d5bf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x19139d),_0xd7d5bf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5754a4),_0xd7d5bf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5754a4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x32550b=this['editor'],_0x1343a6=_0x32550b['model']['document']['selection'];return(_0x90227e,_0x18e237)=>{_0x32550b['model']['change'](_0x412f9a=>{const {commandName:_0x2555d2,commandParams:_0x1c2d3b}=_0x18e237;let _0x1c2d0a=_0x90227e[0x0]['end']['nodeBefore'];_0x1c2d3b&&_0x1c2d3b[0x0]&&!0x1===_0x1c2d3b[0x0]['forceValue']&&(_0x1c2d0a=_0x90227e[0x0]['start']['nodeAfter']);const _0x1344ca=_0x412f9a['createRangeIn'](_0x1c2d0a);if('$graveyard'==_0x1344ca['root']['rootName'])return;const _0x4da52b=Array['from'](_0x1343a6['getRanges']())['map'](_0x2efe55=>_0x3935f7['fromRange'](_0x2efe55));_0x412f9a['setSelection'](_0x1344ca),_0x32550b['commands']['get'](_0x2555d2)['refresh'](),_0x1c2d3b['push']({'forceDefaultExecution':!0x0}),_0x32550b['execute'](_0x2555d2,..._0x1c2d3b);const _0x120ace=_0x4da52b['filter'](_0x1bf762=>'$graveyard'!=_0x1bf762['root']['rootName']);_0x120ace['length']>0x0&&_0x412f9a['setSelection'](_0x120ace);for(const _0x32c653 of _0x4da52b)_0x32c653['detach']();});};}['_getCoordsForCells'](_0x5cf66d){const _0x3e2bdb=this['editor']['plugins']['get']('TableUtils');let _0xde7853=Number['MAX_SAFE_INTEGER'],_0x4412d4=Number['MIN_SAFE_INTEGER'],_0x140d16=Number['MAX_SAFE_INTEGER'],_0x54c32c=Number['MIN_SAFE_INTEGER'];for(const _0x471b74 of _0x5cf66d){if('$graveyard'==_0x471b74['root']['rootName'])continue;const {row:_0x2b5e11,column:_0x333394}=_0x3e2bdb['getCellLocation'](_0x471b74),_0x8ea397=_0x471b74['hasAttribute']('rowspan')?_0x471b74['getAttribute']('rowspan')-0x1:0x0,_0x566b00=_0x471b74['hasAttribute']('colspan')?_0x471b74['getAttribute']('colspan')-0x1:0x0;_0xde7853=_0x2b5e11<_0xde7853?_0x2b5e11:_0xde7853,_0x4412d4=_0x2b5e11+_0x8ea397>_0x4412d4?_0x2b5e11+_0x8ea397:_0x4412d4,_0x140d16=_0x333394<_0x140d16?_0x333394:_0x140d16,_0x54c32c=_0x333394+_0x566b00>_0x54c32c?_0x333394+_0x566b00:_0x54c32c;}return{'minRow':_0xde7853,'maxRow':_0x4412d4,'minColumn':_0x140d16,'maxColumn':_0x54c32c};}['_setupColumnsRowsFixing'](){const _0x31cfda=this['editor'],_0x131ec0=_0x31cfda['plugins']['get']('TrackChangesEditing'),_0x5e97f6=_0x31cfda['plugins']['get']('TableUtils');_0x31cfda['model']['document']['on']('change:data',()=>{const _0x390aba=Array['from'](_0x31cfda['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ba909,data:_0xd232b}of _0x390aba){const {group:_0x4c91c4,id:_0xdac1ee,subType:_0x40c17c}=_0x131ec0['_splitMarkerName'](_0x1ba909);if('suggestion'!=_0x4c91c4)continue;if(null!=_0xd232b['oldRange'])continue;const _0x1da1f4=_0x131ec0['getSuggestion'](_0xdac1ee);this['_tablePostFixingSubtypes']['includes'](_0x40c17c)&&this['_tableSuggestions']['add'](_0x1da1f4);}},{'priority':'low'});const _0x1b9d2d=(_0x4c72ea,_0x4165b8)=>{let _0x4e080a=!0x1;const _0x4e46b8=_0x4165b8['createRangeOn'](_0x4c72ea),_0x3306a3=_0x4c72ea['findAncestor']('table'),_0x1b51cc=_0x5e97f6['getCellLocation'](_0x4c72ea);for(const _0x4c4dbf of this['_tableSuggestions']){const _0x46e19a=_0x4c4dbf['subType'],_0x3cd96c=_0x46e19a['startsWith']('tablePaste'),_0x5f3fb4=_0x46e19a['substr'](_0x3cd96c?0xa:0x5),_0x4c991b=_0x5f3fb4['toLowerCase'](),_0x3a5095=_0x4c991b['substr'](0x0,0x3)+'span',_0x78b2e3='min'+_0x5f3fb4,_0x177147='max'+_0x5f3fb4;if(!_0x4c4dbf['isInContent'])continue;if(_0x3306a3!=_0x4c4dbf['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4c4dbf['isIntersectingWithRange'](_0x4e46b8))continue;const _0x49286a=_0x4c72ea['hasAttribute'](_0x3a5095)?_0x4c72ea['getAttribute'](_0x3a5095)-0x1:0x0,_0x3726d8=this['_getSuggestionCoords'](_0x4c4dbf),_0x90e757=_0x3726d8[_0x78b2e3],_0x57a5ee=_0x3726d8[_0x177147];_0x90e757<=_0x1b51cc[_0x4c991b]&&_0x1b51cc[_0x4c991b]+_0x49286a<=_0x57a5ee&&(_0x4c4dbf['addRange'](_0x4e46b8),_0x4e080a=!0x0);}return _0x4e080a;};_0x31cfda['model']['document']['registerPostFixer'](_0x5daad8=>{let _0x1f2734=!0x1;for(const _0x10a27e of _0x31cfda['model']['document']['differ']['getChanges']())if('insert'==_0x10a27e['type']){if('tableRow'==_0x10a27e['name']){for(const _0x116fd of _0x10a27e['position']['nodeAfter']['getChildren']())_0x1f2734=_0x1f2734||_0x1b9d2d(_0x116fd,_0x5daad8);}else'tableCell'==_0x10a27e['name']&&(_0x1f2734=_0x1f2734||_0x1b9d2d(_0x10a27e['position']['nodeAfter'],_0x5daad8));}return _0x1f2734;});}['_getSuggestionCoords'](_0x575f19){return this['_getCoordsForCells'](_0x575f19['getRanges']()['map'](_0x4f824c=>_0x4f824c['start']['nodeAfter']));}}function _e(_0x5aa213){return Array['from'](new Set(_0x5aa213)['values']());}class $t extends _0x54af3c{static get['requires'](){return[Nt];}['afterInit'](){const _0x3567ca=this['editor'],_0x521c55=_0x3567ca['model']['document']['selection'],_0x366394=_0x3567ca['locale'];if(!_0x3567ca['plugins']['has']('TableEditing'))return;const _0x2a2c50=_0x3567ca['plugins']['get']('TrackChangesEditing'),_0x119475=_0x3567ca['plugins']['get']('TableUtils'),_0x5212f9=_0x3567ca['plugins']['get'](Nt);_0x5212f9['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2a2c50['enableCommand']('mergeTableCells',()=>{const _0x2da302=_0x119475['getSelectionAffectedTableCells'](_0x3567ca['model']['document']['selection']);_0x3567ca['model']['change'](()=>{_0x2a2c50['markMultiRangeBlockFormat'](_0x2da302,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3567ca['commands']['get']('mergeTableCells')['on']('execute',(_0x4e2452,_0x3e7ddd)=>{_0x3567ca['commands']['get']('trackChanges')['value']&&(_0x3e7ddd['length']>0x0&&_0x3e7ddd[_0x3e7ddd['length']-0x1]&&_0x3e7ddd[_0x3e7ddd['length']-0x1]['forceDefaultExecution']||_0x2a2c50['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4e2452['stop']());},{'priority':'highest'});for(const _0x3ef9f7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x51ff0d=_0x3567ca['commands']['get'](_0x3ef9f7);_0x2a2c50['enableCommand'](_0x3ef9f7,()=>{const _0x1bfa43=_0x3567ca['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x358585=>_0x358585['is']('element','tableCell')),_0x4c38e1=_0x51ff0d['value'];_0x3567ca['model']['change'](()=>{_0x2a2c50['markMultiRangeBlockFormat']([_0x1bfa43,_0x4c38e1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3f0108 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x53543d=_0x3567ca['commands']['get'](_0x3f0108);_0x2a2c50['enableCommand'](_0x3f0108,()=>{const _0x77ad4a=_0x119475['getSelectionAffectedTableCells'](_0x3567ca['model']['document']['selection'])[0x0],_0x130a43=_0x77ad4a['findAncestor']('table'),{column:_0x294e7d,row:_0x10a860}=_0x119475['getCellLocation'](_0x77ad4a);let _0x4a5725=[];if('horizontally'==_0x53543d['direction']){const _0x4214d5=_0x119475['createTableWalker'](_0x130a43,{'startRow':_0x10a860,'endRow':_0x10a860,'includeAllSlots':!0x0});_0x4a5725=Array['from'](_0x4214d5)['map'](_0x5d06a9=>_0x5d06a9['cell']);}else{const _0x4eb45c=_0x119475['createTableWalker'](_0x130a43,{'column':_0x294e7d,'includeAllSlots':!0x0});_0x4a5725=Array['from'](_0x4eb45c)['map'](_0x51d8d8=>_0x51d8d8['cell']);}_0x3567ca['model']['change'](_0x5a5a44=>{_0x2a2c50['markBlockFormat'](_0x5a5a44['createRangeOn'](_0x77ad4a),{'commandName':_0x3f0108,'commandParams':[]},_0x4a5725,_0x3f0108);});});}_0x2a2c50['descriptionFactory']['registerDescriptionCallback'](_0x240d63=>{if('formatBlock'!=_0x240d63['type']&&'formatInline'!=_0x240d63['type'])return;const {data:_0x1135a8}=_0x240d63;return _0x1135a8&&'mergeTableCells'==_0x1135a8['commandName']?{'type':'format','content':o(_0x366394,'*Merge\x20cells*')}:void 0x0;}),_0x2a2c50['descriptionFactory']['registerDescriptionCallback'](_0x32cda4=>{if('formatBlock'!=_0x32cda4['type']&&'formatInline'!=_0x32cda4['type'])return;const {data:_0xa58284}=_0x32cda4;return _0xa58284?'splitTableCellVertically'==_0xa58284['commandName']?{'type':'format','content':o(_0x366394,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xa58284['commandName']?{'type':'format','content':o(_0x366394,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x111f3d=_0x5212f9['_acceptFormatSuggestionCallbackFactory']();for(const _0x5e5edf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2a2c50['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5e5edf,'accept',_0x111f3d);for(const _0x38ed5d of['splitTableCellVertically','splitTableCellHorizontally'])_0x2a2c50['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x38ed5d,'accept',_0x111f3d);_0x2a2c50['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x559453=>{_0x3567ca['model']['change'](_0x471c69=>{const _0x4dd2a9=Array['from'](_0x521c55['getRanges']())['map'](_0x1cb257=>_0x3935f7['fromRange'](_0x1cb257));_0x471c69['setSelection'](_0x559453),_0x3567ca['commands']['get']('mergeTableCells')['refresh'](),_0x3567ca['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4699cf=_0x4dd2a9['filter'](_0x287323=>'$graveyard'!=_0x287323['root']['rootName']);_0x4699cf['length']>0x0&&_0x471c69['setSelection'](_0x4699cf);for(const _0x2380e2 of _0x4dd2a9)_0x2380e2['detach']();});});for(const _0x58eff8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x19699d=_0x3567ca['commands']['get'](_0x58eff8);_0x19699d['on']('set:isEnabled',(_0x55ce16,_0x1bf9c4,_0x26cdbc)=>{if(_0x26cdbc){const _0x5e20a7=_0x3567ca['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4bbb08=>_0x4bbb08['is']('element','tableCell'));this['_areMergableCells'](_0x19699d['value'],_0x5e20a7)||(_0x55ce16['return']=!0x1,_0x55ce16['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x29ea8c=this['editor']['commands']['get']('mergeTableCells'),_0x230c1f=this['editor']['plugins']['get']('TableUtils');if(!_0x29ea8c['isEnabled'])return!0x1;const _0x49d340=_0x230c1f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2e1670 of _0x49d340)for(const _0x46dce5 of _0x49d340)if(_0x2e1670!=_0x46dce5&&!this['_areMergableCells'](_0x2e1670,_0x46dce5))return!0x1;return!0x0;}['_areMergableCells'](_0x49cadd,_0x33c9d6){const _0x178833=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a67a1=this['editor']['model']['createRangeOn'](_0x49cadd),_0x2ec383=this['editor']['model']['createRangeOn'](_0x33c9d6),_0xbadb20=new Set(),_0xab2242=new Set();for(const _0x2efaf1 of _0x178833['getSuggestions']())if(('insertion'==_0x2efaf1['type']||'deletion'==_0x2efaf1['type']||'mergeTableCells'==_0x2efaf1['subType'])&&_0x2efaf1['isInContent']){for(const _0x3dfc72 of _0x2efaf1['getRanges']())_0x3dfc72['containsRange'](_0x4a67a1,!0x0)&&_0xbadb20['add'](_0x2efaf1['type']+':'+_0x2efaf1['author']['id']),_0x3dfc72['containsRange'](_0x2ec383,!0x0)&&_0xab2242['add'](_0x2efaf1['type']+':'+_0x2efaf1['author']['id']);}if(_0xbadb20['size']!=_0xab2242['size'])return!0x1;for(const _0x27659b of _0xbadb20)if(!_0xab2242['has'](_0x27659b))return!0x1;return!0x0;}}class vt extends _0x54af3c{static get['requires'](){return[Nt];}['afterInit'](){const _0x1f2ce2=this['editor'];if(!_0x1f2ce2['plugins']['has']('TableEditing'))return;const _0x17f1cd=_0x1f2ce2['locale'],_0x3260d0=_0x1f2ce2['plugins']['get']('TrackChangesEditing');_0x3260d0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3260d0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3260d0['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x17f1cd,'FORMAT_HEADER_ROW')),_0x3260d0['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x17f1cd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x34e2de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cca22=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x34e2de['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4cca22),_0x34e2de['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4cca22),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x2973b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ba798=this['editor']['plugins']['get']('TableUtils');function _0x5b9b8c({showActiveMarker:_0x5ebdb7=!0x0,setDataAttribute:_0x5d644e=!0x0}={}){return(_0x466aaa,_0x3d5476,_0x30e7ef)=>{const {type:_0x262979,id:_0x6b15fb}=_0x2973b4['_splitMarkerName'](_0x3d5476['markerName']);if(!_0x2973b4['hasSuggestion'](_0x6b15fb))return;const _0x369e10=_0x2973b4['getSuggestion'](_0x6b15fb),_0xbca98d=_0x369e10['data'];if('formatBlock'!=_0x369e10['type']||!_0xbca98d||'setTableColumnHeader'!=_0xbca98d['commandName'])return;if(_0x3d5476['item'])return void _0x466aaa['stop']();if(!_0x30e7ef['consumable']['consume'](_0x3d5476['markerRange'],_0x466aaa['name']))return;const _0x3a4eef=_0x3d5476['markerRange']['start']['nodeAfter'],_0xd68dd3=_0x3d5476['markerRange']['end']['nodeBefore'],_0x29a616=_0x3a4eef['parent']['parent'],{column:_0xd23f7}=_0x2ba798['getCellLocation'](_0x3a4eef),{column:_0x2db619}=_0x2ba798['getCellLocation'](_0xd68dd3);for(let _0x45f82d=_0xd23f7;_0x45f82d<=_0x2db619;_0x45f82d++){const _0x277b0b=_0x2ba798['createTableWalker'](_0x29a616,{'column':_0x45f82d,'includeAllSlots':!0x1});for(const _0x220608 of _0x277b0b){const _0x21fc87=_0x220608['cell'],_0x564551=_0x30e7ef['mapper']['toViewElement'](_0x21fc87);_0x30e7ef['writer']['addClass']('ck-suggestion-marker-'+_0x262979,_0x564551),_0x5d644e&&_0x30e7ef['writer']['setAttribute']('data-suggestion',_0x6b15fb,_0x564551),_0x30e7ef['mapper']['bindElementToMarker'](_0x564551,_0x3d5476['markerName']),_0x5ebdb7&&(_0x2973b4['activeMarkers']['includes'](_0x3d5476['markerName'])?_0x30e7ef['writer']['addClass']('ck-suggestion-marker--active',_0x564551):_0x30e7ef['writer']['removeClass']('ck-suggestion-marker--active',_0x564551));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5b9b8c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x25fdba,_0x284661,_0xf6bb54)=>{_0xf6bb54['options']['showSuggestionHighlights']&&_0x5b9b8c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x25fdba,_0x284661,_0xf6bb54);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x14b8e9,_0x4d04df,_0x38ef44)=>{const {type:_0x1e6a35,id:_0x95cce1}=_0x2973b4['_splitMarkerName'](_0x4d04df['markerName']);if(!_0x2973b4['hasSuggestion'](_0x95cce1))return;const _0x28ec4e=_0x2973b4['getSuggestion'](_0x95cce1),_0xfcb691=_0x28ec4e['data'];if('formatBlock'!=_0x28ec4e['type']||!_0xfcb691||'setTableColumnHeader'!=_0xfcb691['commandName'])return;const _0x5e6bb9=_0x38ef44['mapper']['markerNameToElements'](_0x4d04df['markerName']);if(_0x5e6bb9){for(const _0xed1a0e of _0x5e6bb9)_0x38ef44['writer']['removeClass']('ck-suggestion-marker-'+_0x1e6a35,_0xed1a0e),_0x38ef44['writer']['removeClass']('ck-suggestion-marker--active',_0xed1a0e),_0x38ef44['writer']['removeAttribute']('data-suggestion',_0xed1a0e),_0x38ef44['mapper']['unbindElementFromMarkerName'](_0xed1a0e,_0x4d04df['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x7d91d=this['editor'],_0x4c05f5=_0x7d91d['locale'];function _0x155be4(_0x409e61){return{'type':'format','content':o(_0x4c05f5,'*Format:*\x20%0',_0x409e61)};}_0x7d91d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43c040=>{if('formatBlock'!=_0x43c040['type'])return;const {data:_0x5c881e}=_0x43c040;if(_0x5c881e){if('setTableRowHeader'==_0x5c881e['commandName']){const _0x39ed37=_0x5c881e['commandParams'][0x0]['forceValue'];return _0x155be4(o(_0x4c05f5,_0x39ed37?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5c881e['commandName']){const _0x3e8ab2=_0x5c881e['commandParams'][0x0]['forceValue'];return _0x155be4(o(_0x4c05f5,_0x3e8ab2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x54af3c{['afterInit'](){const _0x34fdcc=this['editor'],_0x23a255=_0x34fdcc['locale'],_0x166e11=_0x34fdcc['plugins']['get']('TrackChangesEditing');function _0x458df6(_0x3ffe08){return{'type':'format','content':''+o(_0x23a255,'*Set\x20table\x20type:*\x20%0',_0x3ffe08)};}_0x34fdcc['plugins']['has']('TableLayout')&&(_0x166e11['enableCommand']('insertTableLayout'),_0x166e11['enableDefaultAttributesIntegration']('tableType'),_0x166e11['descriptionFactory']['registerElementLabel'](_0xbcfa1a=>_0xbcfa1a['is']('element','table')&&'layout'===_0xbcfa1a['getAttribute']('tableType'),_0x112ceb=>o(_0x23a255,'ELEMENT_LAYOUT_TABLE',_0x112ceb)),_0x166e11['descriptionFactory']['registerDescriptionCallback'](_0x4d619c=>{const {data:_0x43aab7}=_0x4d619c;if(_0x43aab7&&'tableType'==_0x43aab7['key'])switch(_0x43aab7['newValue']){case'layout':return _0x458df6(o(_0x23a255,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x458df6(o(_0x23a255,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x16aab2=>[_0x16aab2,null]));class Bt extends _0x54af3c{static get['requires'](){return[Nt];}['afterInit'](){const _0x2dc0ff=this['editor'];if(!_0x2dc0ff['plugins']['has']('TableClipboard'))return;const _0x30eed9=_0x2dc0ff['plugins']['get']('TrackChangesEditing'),_0x33e81a=_0x2dc0ff['plugins']['get']('TableUtils'),_0x4fce1f=_0x2dc0ff['plugins']['get'](Nt),_0x5ee872=_0x2dc0ff['plugins']['get']('TableClipboard'),_0x57638b=_0x2dc0ff['plugins']['get']('TableSelection'),_0x1e32a4=_0x2dc0ff['plugins']['get'](_0x14891d);_0x4fce1f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2dc0ff['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2dc0ff['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x8a32e3=null,_0x54adfc=!0x1;_0x1e32a4['on']('contentInsertion',(_0x41bb36,_0x828a62)=>{_0x54adfc='paste'===_0x828a62['method'];}),_0x2dc0ff['model']['on']('insertContent',(_0x599dac,_0x25d2da)=>{if(!_0x54adfc&&null===_0x57638b['getSelectedTableCells']())return;const [_0x488a4f,_0x1a9aea]=_0x25d2da,_0x577dc9=_0x25d2da[_0x25d2da['length']-0x1];_0x577dc9&&_0x577dc9['forceDefaultExecution']||_0x30eed9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x333cea,_0x4d2b82,_0x5957bd,_0x4ef6b2,_0x2f814f){if(_0x4d2b82&&!_0x4d2b82['is']('documentSelection'))return!0x1;const _0x593374=_0x2f814f['getTableIfOnlyTableInContent'](_0x333cea,_0x5957bd);if(!_0x593374||!Oe(_0x593374,void 0x0,_0x4ef6b2))return!0x1;const _0x11205e=_0x4ef6b2['getSelectionAffectedTableCells'](_0x5957bd['document']['selection']);if(!_0x11205e['length'])return!0x1;const _0x2aa324=_0x11205e[0x0]['findAncestor']('table'),_0x20b7b7=_0x4ef6b2['getRowIndexes'](_0x11205e),_0x1915ea=_0x4ef6b2['getColumnIndexes'](_0x11205e),_0x3479bf={'startRow':_0x20b7b7['first'],'endRow':_0x20b7b7['last'],'startColumn':_0x1915ea['first'],'endColumn':_0x1915ea['last']};return 0x1==_0x11205e['length']&&(_0x3479bf['endRow']+=_0x4ef6b2['getRows'](_0x593374)-0x1,_0x3479bf['endColumn']+=_0x4ef6b2['getColumns'](_0x593374)-0x1),Oe(_0x2aa324,_0x3479bf,_0x4ef6b2);}(_0x488a4f,_0x1a9aea,_0x2dc0ff['model'],_0x33e81a,_0x5ee872)&&(_0x599dac['stop'](),_0x8a32e3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2dc0ff['model']['change'](()=>{_0x2dc0ff['model']['insertContent'](_0x25d2da[0x0],_0x25d2da[0x1],_0x25d2da[0x2],{'forceDefaultExecution':!0x0});const _0x263f11=_0x1c2d37(),{rowInsertionRanges:_0x11c5a4,columnInsertionRanges:_0x460582,insertionRanges:_0x108828,deletionRanges:_0x5ce8fe,cells:_0x12dfaf}=_0x8a32e3;_0x11c5a4['length']&&_0x30eed9['markMultiRangeInsertion'](_0x11c5a4,'tablePasteRow',{'tablePasteChainId':_0x263f11}),_0x460582['length']&&_0x30eed9['markMultiRangeInsertion'](_0x460582,'tablePasteColumn',{'tablePasteChainId':_0x263f11}),_0x108828['length']&&(_0x30eed9['markMultiRangeInsertion'](_0x108828,'tablePaste',{'tablePasteChainId':_0x263f11,'skipNestingCheck':!0x0}),_0x108828['forEach'](_0x302452=>_0x302452['detach']?.())),_0x5ce8fe['length']&&(_0x30eed9['markMultiRangeDeletion'](_0x5ce8fe,'tablePaste',{'tablePasteChainId':_0x263f11,'skipNestingCheck':!0x0}),_0x5ce8fe['forEach'](_0x2ec993=>_0x2ec993['detach']?.()));const _0x33d3af=_0x30eed9['markMultiRangeBlockFormat'](_0x12dfaf['map'](({element:_0x3417fa})=>_0x3417fa),{'formatGroupId':_0x1c2d37()},[],'tablePasteCell',{'tablePasteChainId':_0x263f11});if(_0x33d3af){const _0x580eae=_0x33d3af['getMarkers'](),_0x12419f=[];for(const {element:_0x59329e,attributes:_0x9c23c6}of _0x12dfaf){if(!_0x9c23c6)continue;const _0x3b552a=_0x2dc0ff['model']['createRangeOn'](_0x59329e),_0x408eb7=_0x580eae['find'](_0x5d3314=>_0x5d3314['getRange']()['isEqual'](_0x3b552a));_0x408eb7&&_0x12419f['push']([_0x408eb7['name'],_0x9c23c6]);}_0x12419f['length']&&_0x33d3af['setAttribute']('markerAttributes',Object['fromEntries'](_0x12419f));}_0x8a32e3=null;}));},{'priority':_0x263901['high']+0xa}),_0x1e32a4['on']('contentInsertion',()=>{_0x54adfc=!0x1;},{'priority':'lowest'}),_0x2dc0ff['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2f6312,_0x323697)=>{const [_0x20362b,_0x5b523b,,_0x478a28]=_0x323697;if(!_0x8a32e3)return;_0x2f6312['stop']();const _0x386cb3=_0x20362b['cell'],_0x1be38e=_0x5b523b,_0x5dab7c=Be(_0x386cb3),_0x22e8ed=Be(_0x1be38e);_0x2f6312['return']=_0x386cb3;let _0x176561=null,_0x180a4a=null;if(_0x22e8ed||_0x5dab7c){if(_0x5dab7c&&!_0x22e8ed){_0x478a28['remove'](_0x386cb3['getChild'](0x0));for(const _0x140f55 of Array['from'](_0x1be38e['getChildren']()))_0x478a28['insert'](_0x140f55,_0x386cb3,'end');const _0x346fce=_0x8a32e3['rowInsertionIndexes']['includes'](_0x20362b['row']),_0xe1e5d7=_0x8a32e3['columnInsertionIndexes']['includes'](_0x20362b['column']);_0x346fce||_0xe1e5d7||(_0x176561=_0x3935f7['fromRange'](_0x478a28['createRangeIn'](_0x386cb3)));}else _0x22e8ed&&!_0x5dab7c&&(_0x180a4a=_0x478a28['createRangeIn'](_0x386cb3));}else{const _0x5375c8=_0x478a28['createElement']('tableCellSuggestion'),_0x4237b5=_0x478a28['createElement']('tableCellSuggestion');_0x478a28['wrap'](_0x478a28['createRangeIn'](_0x386cb3),_0x4237b5),_0x478a28['insert'](_0x5375c8,_0x386cb3,0x0);for(const _0x2a13f5 of Array['from'](_0x1be38e['getChildren']()))_0x478a28['insert'](_0x2a13f5,_0x5375c8,'end');_0x176561=_0x3935f7['fromRange'](_0x478a28['createRangeOn'](_0x5375c8)),_0x180a4a=_0x3935f7['fromRange'](_0x478a28['createRangeOn'](_0x4237b5));}const _0x25dc6b=Array['from'](_0x1be38e['getAttributes']())['filter'](([_0x4a8a3f])=>Re['includes'](_0x4a8a3f));_0x8a32e3['cells']['push']({'element':_0x386cb3,'attributes':_0x25dc6b['length']?Object['fromEntries'](_0x25dc6b):null}),_0x176561&&_0x8a32e3['insertionRanges']['push'](_0x176561),_0x180a4a&&_0x8a32e3['deletionRanges']['push'](_0x180a4a);},{'priority':'high'}),_0x33e81a['on']('insertColumns',(_0x288458,_0x173531)=>{const [_0x36d102,_0x31ef3b={}]=_0x173531;if(!_0x8a32e3)return;const _0x45c7e0=_0x31ef3b['at']||0x0,_0x40e320=_0x31ef3b['columns']||0x1;_0x8a32e3['columnInsertionIndexes']=new Array(_0x40e320)['fill'](_0x45c7e0)['map']((_0x5498f1,_0x15b50f)=>_0x5498f1+_0x15b50f);for(const {cell:_0x2b3771}of _0x33e81a['createTableWalker'](_0x36d102,{'startColumn':_0x45c7e0,'endColumn':_0x45c7e0+_0x40e320-0x1}))_0x8a32e3['columnInsertionRanges']['push'](_0x2dc0ff['model']['createRangeOn'](_0x2b3771));},{'priority':'low'}),_0x33e81a['on']('insertRows',(_0x3e64af,_0xea1d18)=>{const [_0x28b1d2,_0x348b28={}]=_0xea1d18;if(!_0x8a32e3)return;const _0xca120b=_0x348b28['at']||0x0,_0x33ea8b=_0x348b28['rows']||0x1;_0x8a32e3['rowInsertionIndexes']=new Array(_0x33ea8b)['fill'](_0xca120b)['map']((_0x1bbbec,_0x504039)=>_0x1bbbec+_0x504039);for(const {cell:_0x27b1af}of _0x33e81a['createTableWalker'](_0x28b1d2,{'startRow':_0xca120b,'endRow':_0xca120b+_0x33ea8b-0x1}))_0x8a32e3['rowInsertionRanges']['push'](_0x2dc0ff['model']['createRangeOn'](_0x27b1af));},{'priority':'low'}),_0x30eed9['descriptionFactory']['registerDescriptionCallback'](_0xda915d=>{if(_0xda915d['subType']&&_0xda915d['subType']['startsWith']('tablePaste'))return _0xda915d['previous']?{}:{'type':'insertion','content':o(_0x2dc0ff['locale'],'*Replace\x20table\x20cells*')};});const _0x358636=()=>!0x1;for(const _0x232f40 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x30eed9['_suggestionFactory']['registerCustomCallback']('insertion',_0x232f40,'join',_0x358636),_0x30eed9['_suggestionFactory']['registerCustomCallback']('deletion',_0x232f40,'join',_0x358636),_0x30eed9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x232f40,'join',_0x358636);_0x30eed9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x358636),_0x30eed9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x18b673,_0x38fded,_0x3444ab)=>{const _0x32babf=_0x18b673['map'](_0x157085=>_0x157085['getContainedElement']())['filter'](_0x34e635=>_0x34e635),_0x42acd6=new Map(_0x32babf['map'](_0x103cf8=>[_0x103cf8,null]));if(_0x8a32e3){for(const {element:_0x56e1d5,attributes:_0x5770c2}of _0x8a32e3['cells'])_0x5770c2&&_0x42acd6['set'](_0x56e1d5,_0x5770c2);}else{if(_0x3444ab&&_0x3444ab['markerAttributes'])for(const [_0x28328a,_0x443f73]of Object['entries'](_0x3444ab['markerAttributes'])){const _0x1b2f9e=_0x2dc0ff['model']['markers']['get'](_0x28328a),_0x470762=_0x1b2f9e?_0x1b2f9e['getRange']()['getContainedElement']():null;_0x470762&&_0x42acd6['set'](_0x470762,_0x443f73);}}_0x2dc0ff['model']['change'](_0x586032=>{for(const [_0x359e0e,_0x11d8dc]of _0x42acd6)_0x586032['setAttributes']({...Ae,..._0x11d8dc},_0x359e0e);});});const _0x57de4f=(_0x42510e,_0x2351a7)=>{_0x30eed9['_suggestionFactory']['registerCustomCallback'](_0x42510e,'tablePaste',_0x2351a7,(_0x425284,_0x20e0da,_0x5c0f2d)=>{_0x2dc0ff['model']['change'](_0x308785=>{const _0x2901a7=[];for(const _0x5e662d of _0x425284){const _0x298dfd=_0x5e662d['start']['nodeAfter'];_0x298dfd['is']('element','tableCellSuggestion')&&_0x2901a7['push'](_0x298dfd);}_0x30eed9['_suggestionFactory']['getSuggestionCallback'](_0x42510e,null,_0x2351a7)(_0x425284,_0x20e0da,_0x5c0f2d);for(const _0x43b92a of _0x2901a7)'$graveyard'!=_0x43b92a['root']['rootName']&&_0x308785['unwrap'](_0x43b92a);});});};_0x57de4f('insertion','accept'),_0x57de4f('insertion','discard'),_0x57de4f('deletion','accept'),_0x57de4f('deletion','discard'),_0x30eed9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x808741=>{const _0x5ca954=_0x808741['map'](_0x16a779=>_0x16a779['getContainedElement']()),_0x5ebc19=_0x5ca954[0x0]['findAncestor']('table'),{minRow:_0x3dc3bf,maxRow:_0xd1e097}=_0x4fce1f['_getCoordsForCells'](_0x5ca954);_0x33e81a['removeRows'](_0x5ebc19,{'at':_0x3dc3bf,'rows':_0xd1e097-_0x3dc3bf+0x1});}),_0x30eed9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3d52f2=>{const _0x1d2cff=_0x3d52f2['map'](_0x367e81=>_0x367e81['getContainedElement']()),_0x35b386=_0x1d2cff[0x0]['findAncestor']('table'),{minColumn:_0x16acbf,maxColumn:_0x568f0a}=_0x4fce1f['_getCoordsForCells'](_0x1d2cff);_0x33e81a['removeColumns'](_0x35b386,{'at':_0x16acbf,'columns':_0x568f0a-_0x16acbf+0x1});});const _0x276708=(_0x5d286f,_0x36150e)=>{if(!_0x36150e['subType']||!_0x36150e['subType']['startsWith']('tablePaste'))return;const _0x287d29=_0x36150e['attributes']['tablePasteChainId'],_0x48808d=_0x30eed9['getSuggestions']()['filter'](_0x366fdc=>_0x366fdc['isInContent']&&_0x366fdc['attributes']&&_0x366fdc['attributes']['tablePasteChainId']==_0x287d29);_0x48808d['length']&&_0x36150e['getAllAdjacentSuggestions']()['length']!=_0x48808d['length']&&_0x48808d['reduce']((_0xb7820d,_0x51d4bd)=>(_0xb7820d['next']=_0x51d4bd,_0x51d4bd['previous']=_0xb7820d,_0x51d4bd));};function _0x238ec8(_0x411fae,_0x57be89=!0x0){const {id:_0x17ef67,authorId:_0x47d0b3}=_0x30eed9['_splitMarkerName'](_0x411fae['markerName']),_0x1c723d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x8b467=_0x30eed9['activeMarkers']['includes'](_0x411fae['markerName']);return _0x8b467&&_0x1c723d['push']('ck-suggestion-marker--active'),{'classes':_0x1c723d,'attributes':{'data-suggestion':_0x17ef67,'data-author-id':_0x47d0b3},'priority':_0x8b467&&_0x57be89?0xbc2:0xbb8};}_0x30eed9['on']('suggestionLoaded',_0x276708,{'priority':'high'}),_0x30eed9['on']('suggestionUnloaded',_0x276708,{'priority':'high'}),_0x2dc0ff['model']['document']['registerPostFixer'](()=>{let _0x3951db=!0x1;const _0x4c586e=Array['from'](_0x2dc0ff['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xdc6651,data:_0xee2a5f}of _0x4c586e){const {group:_0x14b989,type:_0x430972,id:_0xb38960}=_0x30eed9['_splitMarkerName'](_0xdc6651);if('suggestion'!=_0x14b989||'deletion'!=_0x430972||_0xee2a5f['oldRange'])continue;if(!_0x30eed9['hasSuggestion'](_0xb38960))continue;const _0x35e89b=_0x30eed9['getSuggestion'](_0xb38960)['getRanges'](),_0x13cce7=_0x2dc0ff['plugins']['get']('Users')['me'];for(const _0x219743 of _0x30eed9['getSuggestions']()){if(!_0x219743['isInContent']||_0x219743['author']!=_0x13cce7)continue;if('formatBlock'!=_0x219743['type']||'tablePasteCell'!=_0x219743['subType'])continue;if(_0x219743['getRanges']()['every'](_0x203201=>_0x35e89b['some'](_0x9eef18=>_0x9eef18['containsRange'](_0x203201,!0x0)))){for(const _0x1baeb8 of _0x219743['getAllAdjacentSuggestions']())_0x1baeb8['isInContent']&&(_0x1baeb8['discard'](),_0x3951db=!0x0);}}}return _0x3951db;}),_0x2dc0ff['model']['document']['registerPostFixer'](_0x380d66=>{const _0x15e6fc=_0x2dc0ff['commands']['get']('redo');if(!_0x15e6fc||!_0x15e6fc['_createdBatches']['has'](_0x380d66['batch']))return!0x1;let _0xe8518b=!0x1;const _0x48445b=_0x2dc0ff['plugins']['get']('Users')['me'],_0x5461df=_0x2dc0ff['model']['document']['differ']['getChanges'](),_0x2de8e4=Array['from'](_0x2dc0ff['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2d51cc,data:_0x3338e1})=>{const {group:_0x5a6669,subType:_0x4f1a22,authorId:_0x4e761c}=_0x30eed9['_splitMarkerName'](_0x2d51cc);return'suggestion'==_0x5a6669&&'tablePaste'==_0x4f1a22&&_0x4e761c==_0x48445b['id']&&!_0x3338e1['oldRange'];});for(const _0x164ce4 of _0x5461df){if('insert'!=_0x164ce4['type']||'tableCellSuggestion'!=_0x164ce4['name']||0x1!=_0x164ce4['length'])continue;const _0x71bf8a=_0x380d66['createRange'](_0x164ce4['position'],_0x164ce4['position']['getShiftedBy'](0x1));if(!_0x2de8e4['find'](({data:_0x41ce22})=>_0x41ce22['newRange']['isEqual'](_0x71bf8a))){for(const {name:_0x21e2a3,data:_0x291de9}of _0x2de8e4)if(_0x71bf8a['containsRange'](_0x291de9['newRange'])){_0x380d66['updateMarker'](_0x21e2a3,{'range':_0x71bf8a}),_0xe8518b=!0x0;break;}}}return _0xe8518b;}),_0x2dc0ff['model']['document']['registerPostFixer'](_0x18e2c0=>{let _0x189234=!0x1;const _0xd85ce8=_0x2dc0ff['plugins']['get']('Users')['me'],_0x198f56=_0x30eed9['getSuggestions']()['filter'](_0x250b8f=>_0x250b8f['isInContent']&&_0x250b8f['author']==_0xd85ce8),_0x20fc0b=new Set(),_0x5e9fbf=new Set();for(const _0x4797cb of _0x198f56)if('tablePaste'==_0x4797cb['subType'])for(const _0x3f3a34 of _0x4797cb['getMarkers']()){const _0xdb2cea=_0x3f3a34['getRange']()['getContainedElement']();if(_0xdb2cea){if(_0xdb2cea['is']('element','tableCellSuggestion')&&Be(_0xdb2cea)){_0x4797cb['removeMarker'](_0x3f3a34['name']),_0x20fc0b['add'](_0xdb2cea),_0x189234=!0x0;const _0x1bb305=_0xdb2cea['nextSibling'],_0x5b3f91=_0xdb2cea['previousSibling'],_0x48401e=_0x1bb305&&_0x1bb305['is']('element','tableCellSuggestion'),_0x234c77=_0x5b3f91&&_0x5b3f91['is']('element','tableCellSuggestion');_0x48401e&&!_0x20fc0b['has'](_0x1bb305)&&_0x5e9fbf['add'](_0x1bb305),_0x234c77&&!_0x20fc0b['has'](_0x5b3f91)&&_0x5e9fbf['add'](_0x5b3f91);}else _0xdb2cea['is']('element','paragraph')&&_0xdb2cea['isEmpty']&&(_0x4797cb['removeMarker'](_0x3f3a34['name']),_0x189234=!0x0);}}else{if('tablePasteCell'==_0x4797cb['subType']){if(!_0x4797cb['attributes']||!_0x4797cb['attributes']['tablePasteChainId'])continue;const _0x415167=_0x4797cb['attributes']['markerAttributes'];if(_0x415167&&Object['keys'](_0x415167)['length'])continue;const _0x368fae=_0x4797cb['attributes']['tablePasteChainId'];let _0x9ec889=!0x0,_0x1b7565=!0x0;for(const _0x4611a5 of _0x198f56)if(_0x4611a5['subType']&&_0x4611a5['subType']['startsWith']('tablePaste')){if(!_0x4611a5['attributes']['tablePasteChainId']){_0x1b7565=!0x1;break;}if(_0x4611a5['id']!=_0x4797cb['id']&&_0x4611a5['attributes']['tablePasteChainId']==_0x368fae){_0x9ec889=!0x1;break;}}_0x1b7565&&_0x9ec889&&(_0x4797cb['removeMarkers'](),_0x189234=!0x0);}}for(const _0x11c88f of _0x20fc0b)_0x18e2c0['remove'](_0x11c88f);for(const _0x5bc863 of _0x5e9fbf)_0x18e2c0['unwrap'](_0x5bc863);return _0x189234;}),_0x2dc0ff['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x12afc0=>_0x238ec8(_0x12afc0),'converterPriority':'high'}),_0x2dc0ff['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x103468,_0x5bd7bd)=>_0x5bd7bd['options']['showSuggestionHighlights']?_0x238ec8(_0x103468,!0x1):null,'converterPriority':'high'});const _0x337345=_0x2dc0ff['editing']['view'];this['listenTo'](_0x337345['document'],'clipboardOutput',(_0x4a3c84,_0x170606)=>{const _0x3595b7=[];for(const _0x46df58 of _0x337345['createRangeIn'](_0x170606['content'])['getItems']())_0x46df58['is']('element','suggestion-td')&&_0x3595b7['push'](_0x46df58);_0x337345['change'](_0x1e72f3=>{for(const _0x114ee6 of _0x3595b7)_0x1e72f3['move'](_0x1e72f3['createRangeIn'](_0x114ee6),_0x1e72f3['createPositionBefore'](_0x114ee6)),_0x1e72f3['remove'](_0x114ee6);});});}}function Be(_0x729014){if(_0x729014['isEmpty'])return!0x0;const _0x2faf7e=_0x729014['getChild'](0x0);return _0x2faf7e['is']('element','paragraph')&&_0x2faf7e['isEmpty'];}function Oe(_0xc42473,_0x31f250={},_0x3d33fa){for(const {isAnchor:_0x174769,cellHeight:_0xf7e010,cellWidth:_0x11457f}of _0x3d33fa['createTableWalker'](_0xc42473,{'includeAllSlots':!0x0,..._0x31f250}))if(!_0x174769||0x1!=_0xf7e010||0x1!=_0x11457f)return!0x1;return!0x0;}class Ot extends _0x54af3c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x56a486=this['editor']['plugins']['get']('TrackChangesEditing');_0x56a486['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x56a486['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x56a486['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x56a486['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x56a486['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x56a486['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x253640,_0x2a5dab){const _0x50af75=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38d2c9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5511c5=_0x2a5dab['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xdf9717=_0x38d2c9['getColumnGroupElement'](_0x5511c5);let _0x5ec04b=_0xdf9717?_0x38d2c9['getTableColumnsWidths'](_0xdf9717):null,_0x507523=_0x5511c5['getAttribute']('tableWidth')||null;const _0x45decd=_0x2a5dab['tableWidth']||_0x507523,_0x23a7b6=_0x2a5dab['columnWidths']||_0x5ec04b,_0x55271e=this['editor']['plugins']['get']('Users')['me'];for(const _0x35aaee of _0x50af75['getSuggestions']()){const _0x401141=_0x35aaee['getContainedElement']();if('resizeTable'===_0x35aaee['subType']&&_0x401141===_0x5511c5){_0x35aaee['author']!==_0x55271e&&_0x35aaee['discard']();const _0x2a8140=_0x35aaee['data']['commandParams'];_0x507523=_0x2a8140[0x0]['tableWidth'],_0x5ec04b=_0x2a8140[0x0]['columnWidths'];break;}}_0x253640({'table':_0x5511c5,'tableWidth':_0x45decd,'columnWidths':_0x23a7b6}),_0x50af75['markBlockFormat'](_0x5511c5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x507523,'columnWidths':_0x5ec04b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2b4c08){if('formatBlock'!=_0x2b4c08['type']&&'formatInline'!=_0x2b4c08['type'])return;const {data:_0x686247}=_0x2b4c08;if(_0x686247&&'resizeTable'===_0x686247['formatGroupId']){const _0x53f87f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x53f87f)};}}}class xt extends _0x54af3c{['afterInit'](){const _0x45aacc=this['editor'];_0x45aacc['plugins']['has']('Template')&&_0x45aacc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x54af3c{['afterInit'](){const _0x4c8ea8=this['editor'];if(!_0x4c8ea8['commands']['get']('insertTableOfContents'))return;_0x4c8ea8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2d5df5=_0x4c8ea8['plugins']['get']('TrackChangesEditing'),_0x4be456=_0x4c8ea8['locale'];_0x2d5df5['descriptionFactory']['registerElementLabel']('tableOfContents',_0xc79d33=>o(_0x4be456,'ELEMENT_TABLE_OF_CONTENTS',_0xc79d33));}}class Rt extends _0x54af3c{['afterInit'](){const _0x2c047c=this['editor'];if(!_0x2c047c['plugins']['has']('Title'))return;const _0x77998a=_0x2c047c['plugins']['get']('TrackChangesEditing');_0x77998a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2c047c['locale'],'ELEMENT_TITLE')),_0x2c047c['model']['document']['registerPostFixer'](_0x28cc5d=>{let _0x5e62bc=!0x1;const _0x4e18a7=Array['from'](_0x2c047c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x55e2dc,data:_0x26b9a6}of _0x4e18a7){const {group:_0x3b17d9}=_0x77998a['_splitMarkerName'](_0x55e2dc);if('suggestion'!==_0x3b17d9||!_0x26b9a6['newRange'])continue;const _0x22529a=_0x26b9a6['newRange'],_0x55b548=_0x22529a['end']['nodeBefore'];if(!_0x55b548||!_0x55b548['is']('element','title-content'))continue;if(!_0x22529a['start']['isTouching'](_0x22529a['end']))continue;const _0x51d4aa=_0x2c047c['model']['schema']['getNearestSelectionRange'](_0x22529a['end'],'forward');if(_0x51d4aa&&_0x51d4aa['isCollapsed']){const _0x34e412=_0x28cc5d['createRange'](_0x22529a['start'],_0x51d4aa['start']);_0x34e412['isEqual'](_0x22529a)||(_0x28cc5d['updateMarker'](_0x55e2dc,{'range':_0x34e412}),_0x5e62bc=!0x0);}_0x5e62bc||(_0x28cc5d['removeMarker'](_0x55e2dc),_0x5e62bc=!0x0);}return _0x5e62bc;});}}class Tt extends _0x54af3c{['afterInit'](){const _0x793186=this['editor'],_0x235bc=_0x793186['plugins']['get']('TrackChangesEditing');_0x793186['plugins']['has']('Uploadcare')&&(_0x235bc['enableCommand']('uploadcare'),_0x793186['plugins']['has']('UploadcareImageEdit')&&(_0x235bc['enableCommand']('uploadcareImageEdit'),_0x235bc['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x235bc['descriptionFactory']['registerDescriptionCallback'](_0x26b812=>{if('attribute'!=_0x26b812['type'])return;const {data:_0x119f81}=_0x26b812;return _0x119f81&&'uploadcareImageId'==_0x119f81['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x54af3c{['afterInit'](){const _0x1a9924=this['editor'],_0x28623c=_0x1a9924['plugins']['get']('TrackChangesEditing');_0x1a9924['plugins']['has']('UndoEditing')&&(_0x28623c['enableCommand']('undo'),_0x28623c['enableCommand']('redo'));}}class Ut extends _0x54af3c{static get['requires'](){return[Nt];}['afterInit'](){const _0x20db4c=this['editor'];if(!_0x20db4c['plugins']['has']('TableCaptionEditing'))return;_0x20db4c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x54af3c{['tableProperties'];['tableCellProperties'];constructor(_0x47ecc6){super(_0x47ecc6),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x532aef=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x33f649 of this['tableProperties'])_0x532aef['enableCommand'](_0x33f649,(_0x3d8ae9,_0x4de7f5)=>{const _0x1eeecd=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x33f649,[_0x1eeecd],this['tableProperties'],'tableProperties',_0x3d8ae9,_0x4de7f5);});_0x532aef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x532aef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x532aef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x50b78,_0x48e210)=>this['handleDiscardAction'](this['tableProperties'],_0x50b78,_0x48e210)),_0x532aef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x289759 of this['tableCellProperties'])_0x532aef['enableCommand'](_0x289759,(_0x552e72,_0x4327df)=>{const _0x1f5a10=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x289759,_0x1f5a10,this['tableCellProperties'],'tableCellProperties',_0x552e72,_0x4327df);});_0x532aef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x532aef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x532aef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x487a2d,_0xf73777)=>this['handleDiscardAction'](this['tableCellProperties'],_0x487a2d,_0xf73777)),_0x532aef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x532aef['descriptionFactory']['registerDescriptionCallback'](_0x333a21=>this['handleSuggestionDescription'](_0x333a21)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x4beb53,_0x401a25,_0xfcbda8,_0x56b4bf,_0x445471,_0x27c9a5){const _0x4c95d9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x27c9a5['batch'],()=>{for(const _0x3d2bf1 of _0x401a25){if(this['_getSuggestion'](_0x3d2bf1,_0x56b4bf))_0x445471(_0x27c9a5);else{const _0x2a36cb={};for(const _0x4106a1 of _0xfcbda8){const _0x28ec0c=_0x3d2bf1['getAttribute'](_0x4106a1);void 0x0!==_0x28ec0c&&(_0x2a36cb[_0x4106a1]=_0x28ec0c);}_0x445471(_0x27c9a5),_0x4c95d9['markBlockFormat'](_0x3d2bf1,{'commandParams':[_0x2a36cb]},[],_0x56b4bf);}}});}['handleDiscardAction'](_0x489c0e,_0x1bdd57,_0x4686aa){const _0x3bff3c=_0x1bdd57[0x0]['start']['nodeAfter'],_0x22ded2=_0x4686aa['commandParams'][0x0];this['editor']['model']['change'](_0x561729=>{for(const _0x11134d of _0x489c0e)void 0x0!==_0x22ded2[_0x11134d]?_0x561729['setAttribute'](_0x11134d,_0x22ded2[_0x11134d],_0x3bff3c):_0x561729['removeAttribute'](_0x11134d,_0x3bff3c);});}['handleSuggestionDescription'](_0x3348f0){if(_0x3348f0['data'])switch(_0x3348f0['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'](_0x22fbdf,_0x2a122f){const _0x5b221b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3cd8bd of _0x5b221b['getSuggestions']({'skipNotAttached':!0x0})){const _0x5c61ed=_0x3cd8bd['getContainedElement']();if(_0x3cd8bd['subType']===_0x2a122f&&_0x5c61ed===_0x22fbdf)return _0x3cd8bd;}return null;}['_registerTablePropertiesAttributes'](){const _0x53c373=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53a1aa=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x282009 of _0x53a1aa){const _0x1c0e3d=_0x282009['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x53c373['descriptionFactory']['registerAttributeLabel'](_0x282009,o(this['editor']['locale'],'FORMAT_'+_0x1c0e3d));}}}class Ft extends _0x54af3c{['afterInit'](){const _0x5bed09=this['editor'];if(!_0x5bed09['plugins']['has']('LineHeight'))return;const _0x26a003=_0x5bed09['plugins']['get']('TrackChangesEditing'),_0x4347f3=_0x5bed09['locale'];_0x26a003['enableDefaultAttributesIntegration']('lineHeight'),_0x26a003['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4347f3,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x54af3c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x41a304,_0x4b9cb9,_0x31cfdb,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(_0x1481d9){super(_0x1481d9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xcdf7f1,_0x23363f,_0x3199a1,_0x23bc79)=>{this['_model']['change'](()=>{for(const _0x3b497c of[..._0x23bc79,..._0x3199a1])this['_model']['markers']['has'](_0x3b497c)&&_0x1481d9['editing']['reconvertMarker'](_0x3b497c);});}),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']=_0x1481d9['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1481d9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1481d9['config']['get']('trackChanges.trackFormatChanges'),_0x1481d9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1481d9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x1481d9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x319749=this['editor'];_0x319749['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5f428e,{writer:_0x23d4c7})=>{let _0x1fdf2e='suggestion:'+_0x5f428e['getAttribute']('suggestion-type')+':'+_0x5f428e['getAttribute']('id');return _0x5f428e['getAttribute']('marker-count')&&(_0x1fdf2e+=':'+_0x5f428e['getAttribute']('marker-count')),_0x23d4c7['createElement']('$marker',{'data-name':_0x1fdf2e});}}),_0x319749['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x319749['model']['document']['registerPostFixer'](_0x28c73c=>{let _0x2832b8=!0x1;const _0x4edcf7=Array['from'](_0x319749['model']['document']['differ']['getChangedMarkers']()),_0x1b0082=new Set();for(const {name:_0x71bda8,data:_0x561c54}of _0x4edcf7){const {group:_0xdf9a92,type:_0x4ab92d,subType:_0x2ba61b,id:_0xc82efa}=this['_splitMarkerName'](_0x71bda8);if('suggestion'!==_0xdf9a92)continue;const _0x3c220e=_0x2ba61b?'suggestion:'+_0x4ab92d+':'+_0x2ba61b+':'+_0xc82efa:'suggestion:'+_0x4ab92d+':'+_0xc82efa,_0x44ef3b=_0x319749['model']['markers']['getMarkersGroup'](_0x3c220e),_0x11250e=_0x319749['model']['markers']['get'](_0x71bda8),_0x4f6f40=this['_suggestions']['get'](_0xc82efa);if(null!=_0x561c54['newRange']){'formatInline'==_0x4ab92d&&(_0x2832b8=_0x2832b8||Wt(_0x561c54['newRange'],_0x71bda8,_0x28c73c,_0x319749['model']['schema']));const _0x2b9723='attribute'==_0x4ab92d&&this['_isBlockAttribute'](_0x2ba61b['split']('|')[0x0]),_0x1b2c5b='attribute'==_0x4ab92d&&this['_isInlineAttribute'](_0x2ba61b['split']('|')[0x0]);if(_0x561c54['newRange']['isCollapsed']||'$graveyard'==_0x561c54['newRange']['root']['rootName']||'formatBlock'==_0x4ab92d&&!Qt(_0x561c54['newRange'])||_0x2b9723&&!Qt(_0x561c54['newRange'])||_0x1b2c5b&&Xt(_0x561c54['newRange'])||'deletion'==_0x4ab92d&&Xt(_0x561c54['newRange'])||_0x11250e&&Yt(_0x11250e,_0x44ef3b))_0x28c73c['removeMarker'](_0x71bda8),_0x2832b8=!0x0;else{if(!_0x4f6f40||!_0x4f6f40['isInContent'])continue;if(_0x561c54['newRange']&&_0x561c54['oldRange']&&_0x561c54['newRange']['isEqual'](_0x561c54['oldRange']))continue;_0x1b0082['add'](_0x4f6f40);}}}return _0x1b0082['size']>0x0&&(_0x2832b8=!!this['_joinWithAdjacentSuggestions'](_0x1b0082)||_0x2832b8),_0x2832b8;}),_0x319749['model']['document']['registerPostFixer'](_0x1691c1=>{let _0x596447=!0x1;for(const _0x2d22a5 of _0x319749['model']['document']['differ']['getChanges']())if('insert'==_0x2d22a5['type'])for(const _0x41f066 of this['_suggestions']['values']()){if(_0x41f066['isMultiRange']||!_0x41f066['isInContent'])continue;const _0x21db0d='formatBlock'==_0x41f066['type'],_0x28418f=this['_getAttributeKey'](_0x41f066),_0x290466=_0x28418f&&this['_isBlockAttribute'](_0x28418f);if(!_0x21db0d&&!_0x290466)continue;const _0x34310e=_0x41f066['getFirstRange']();if(_0x34310e['start']['parent']!=_0x34310e['end']['parent']&&!_0x34310e['end']['isAtEnd']){const _0xeb2e8c=_0x319749['model']['createPositionAt'](_0x34310e['start']['nodeAfter'],'end'),_0x1ea9bb=_0x319749['model']['createRange'](_0x34310e['start'],_0xeb2e8c);_0x1691c1['updateMarker'](_0x41f066['getFirstMarker'](),{'range':_0x1ea9bb}),_0x596447=!0x0;}}return _0x596447;}),_0x319749['model']['document']['registerPostFixer'](_0x47a5cb=>this['_processAttributeChanges'](_0x47a5cb)),_0x319749['model']['document']['registerPostFixer'](_0x482237=>!_0x482237['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x482237)),_0x319749['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x319749['model']['document']['on']('change:data',(_0x962461,_0x261d26)=>{if(!_0x261d26['isLocal']||_0x261d26['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x417801=_0x319749['model']['document']['differ']['getChanges']();if(0x0==_0x417801['length'])return;const _0x32fcef=[],_0x2cccad=_0x417801['filter'](_0x1c0d55=>'attribute'==_0x1c0d55['type']),_0x51ea8f=_0x417801['filter'](_0x1807a5=>'insert'==_0x1807a5['type']&&'$text'!=_0x1807a5['name']);for(const _0x178135 of _0x2cccad)this['_isRegisteredAttribute'](_0x178135['attributeKey'])&&_0x32fcef['push']({'key':_0x178135['attributeKey'],'newValue':_0x178135['attributeNewValue'],'oldValue':_0x178135['attributeOldValue'],'range':Zt(_0x178135['range'],_0x319749['model'])});for(const _0xb10afc of _0x51ea8f){if('rename'!=_0xb10afc['action']&&'refresh'!=_0xb10afc['action'])continue;const _0x1ff9cf=tn(_0xb10afc['position']['nodeAfter'],_0x319749['model']),_0x2da00d=_0xb10afc['before'];'rename'==_0xb10afc['action']&&_0x32fcef['push']({'key':m,'newValue':_0xb10afc['name'],'oldValue':_0x2da00d['name'],'range':_0x1ff9cf});for(const [_0x3d52c5,_0xc58bd3]of _0x2da00d['attributes']){if(!this['_isRegisteredAttribute'](_0x3d52c5))continue;const _0xf3db5a=_0xb10afc['attributes']['get'](_0x3d52c5);_0xc58bd3!==_0xf3db5a&&_0x32fcef['push']({'key':_0x3d52c5,'newValue':_0xf3db5a,'oldValue':_0xc58bd3,'range':_0x1ff9cf});}for(const [_0x18ef76,_0x531fcf]of _0xb10afc['attributes'])this['_isRegisteredAttribute'](_0x18ef76)&&(_0x2da00d['attributes']['has'](_0x18ef76)||_0x32fcef['push']({'key':_0x18ef76,'newValue':_0x531fcf,'oldValue':null,'range':_0x1ff9cf}));}0x0!=_0x32fcef['length']&&_0x319749['model']['enqueueChange'](_0x261d26,_0x21c41d=>{const _0x286497=_0x1c2d37();for(const {range:_0x50fa1a,key:_0x11d62c,oldValue:_0x1c1b8a,newValue:_0x207203}of _0x32fcef)this['markAttributeChange'](_0x50fa1a,_0x11d62c,_0x1c1b8a,_0x207203,{'groupId':_0x286497});this['_reduceExistingSuggestions'](_0x21c41d,_0x32fcef);});},{'priority':'lowest'}),_0x319749['model']['markers']['on']('update:suggestion',(_0xd690e5,_0x20f38f,_0x1695b1)=>{if(null==_0x1695b1){const {id:_0xa2c3e0}=this['_splitMarkerName'](_0x20f38f['name']),_0x1a3efc=this['_suggestions']['get'](_0xa2c3e0);_0x1a3efc&&_0x1a3efc['addMarkerName'](_0x20f38f['name']);}}),_0x319749['model']['document']['on']('change:data',()=>{const _0x3e41f4=Array['from'](_0x319749['model']['document']['differ']['getChangedMarkers']())['filter'](_0x221fc6=>'suggestion'===this['_splitMarkerName'](_0x221fc6['name'])['group']);if(0x0===_0x3e41f4['length'])return;_0x3e41f4['sort']((_0x198642,_0x3be636)=>{const _0x57eacd=_0x198642['data']['oldRange'],_0xb73dbd=_0x3be636['data']['oldRange'];return null===_0x57eacd&&null===_0xb73dbd?0x0:null===_0x57eacd&&null!==_0xb73dbd?-0x1:null!==_0x57eacd&&null===_0xb73dbd?0x1:_0x57eacd['start']['isBefore'](_0xb73dbd['start'])?-0x1:0x1;});const _0x1f5476=new Set(),_0x262653=new Set();for(const {name:_0x42bdfb,data:_0x1e9ec3}of _0x3e41f4){const {id:_0x41a173}=this['_splitMarkerName'](_0x42bdfb);if(null===_0x1e9ec3['oldRange']){const _0x45375c=this['_handleNewSuggestionMarker'](_0x42bdfb);_0x262653['add'](_0x45375c);}else{const _0x331952=this['_suggestions']['get'](_0x41a173);null!==_0x1e9ec3['newRange']||_0x331952['isInContent']?(_0x1f5476['add'](_0x331952['head']),_0x262653['add'](_0x331952)):this['_removeSuggestion'](_0x331952);}}_0x262653['size']>0x0&&this['_refreshSuggestionsChain'](_0x262653);for(const _0x23faab of _0x1f5476)this['fire']('suggestionChanged',_0x23faab);}),_0x319749['model']['on']('applyOperation',(_0x3376a4,_0x1cb350)=>{const _0x12221=_0x1cb350[0x0];if(!this['_suggestions']['size'])return;if(!_0x12221['isDocumentOperation'])return;if(_0x12221['batch']['isUndo']||!_0x12221['batch']['isLocal'])return;let _0x7c4f0,_0x558789;switch(_0x12221['type']){case'insert':_0x7c4f0=_0x319749['model']['createPositionAt'](_0x12221['position']),_0x558789=_0x7c4f0['getShiftedBy'](_0x12221['howMany']);break;case'split':_0x7c4f0=_0x319749['model']['createPositionAt'](_0x12221['splitPosition']),_0x558789=_0x319749['model']['createPositionAt'](_0x12221['moveTargetPosition']);break;case'move':_0x7c4f0=_0x319749['model']['createPositionAt'](_0x12221['targetPosition']),_0x558789=_0x7c4f0['getShiftedBy'](_0x12221['howMany']);break;default:return;}const _0x4c2c7e=_0x319749['model']['createRange'](_0x7c4f0,_0x558789);_0x319749['model']['change'](()=>{for(const {suggestion:_0x4aa019,meta:_0x8f6c57}of this['_findSuggestions'](_0x4c2c7e)){if(_0x4aa019['isMultiRange'])continue;if('formatInline'==_0x4aa019['type'])continue;const _0xbd374c=this['_getAttributeKey'](_0x4aa019);if(_0xbd374c&&this['_isBlockAttribute'](_0xbd374c)&&'split'!=_0x12221['type'])continue;const _0x584730=_0x4aa019['data']&&_0x4aa019['data']['multipleBlocks'];('formatBlock'!=_0x4aa019['type']||'split'==_0x12221['type']&&!_0x584730)&&(_0x8f6c57['containsRangeInObject']||'insertion'==_0x4aa019['type']&&_0x8f6c57['isOwn']||_0x4aa019['getFirstRange']()['containsRange'](_0x4c2c7e)&&this['_breakSuggestionMarker'](_0x4aa019,_0x7c4f0,_0x558789));}});},{'priority':'lowest'}),_0x319749['model']['on']('deleteContent',(_0x20124d,_0x400406)=>{const _0x1abb9b=_0x400406[0x0],_0x1012a3=_0x400406[0x1];if(_0x1012a3&&_0x1012a3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1abb9b['isCollapsed'])return;const _0x1d8aef=_0x319749['model']['schema'],{start:_0x226e50,end:_0x26bc78}=_0x1abb9b['getFirstRange'](),_0x1ea637=_0x226e50['nodeAfter']&&_0x1d8aef['isLimit'](_0x226e50['nodeAfter'])?null:_0x1d8aef['getNearestSelectionRange'](_0x226e50,'forward'),_0x18a61c=_0x26bc78['nodeBefore']&&_0x1d8aef['isLimit'](_0x26bc78['nodeBefore'])?null:_0x1d8aef['getNearestSelectionRange'](_0x26bc78,'backward'),_0x2570f5=_0x319749['model']['createRange'](_0x1ea637?_0x1ea637['start']:_0x226e50,_0x18a61c?_0x18a61c['end']:_0x26bc78);_0x319749['model']['change'](_0x4ae4b5=>{this['markDeletion'](_0x2570f5);const _0x308db1=_0x319749['model']['schema']['getNearestSelectionRange'](_0x2570f5['start']);_0x1abb9b['is']('documentSelection')?_0x4ae4b5['setSelection'](_0x308db1):_0x1abb9b['setTo'](_0x308db1);}),_0x20124d['stop']();},{'priority':_0x263901['normal']+0xa}),_0x319749['model']['on']('insertContent',(_0x572844,_0x2f7efc)=>{const _0x19ee21=_0x2f7efc[_0x2f7efc['length']-0x1];_0x19ee21&&_0x19ee21['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x319749['model']['change'](()=>{let _0x2eb276=_0x319749['model']['insertContent'](_0x2f7efc[0x0],_0x2f7efc[0x1],_0x2f7efc[0x2],{'forceDefaultExecution':!0x0});if(!_0x2eb276)return;_0x572844['return']=_0x2eb276['clone']();const _0x3fcb5a=_0x2eb276['end']['nodeBefore'],_0xb2cfa5=_0x319749['model']['schema'];_0x3fcb5a&&_0xb2cfa5['isBlock'](_0x3fcb5a)&&!_0xb2cfa5['isObject'](_0x3fcb5a)&&(_0x2eb276=_0x319749['model']['createRange'](_0x2eb276['start'],_0x319749['model']['createPositionAt'](_0x3fcb5a,'end'))),this['markInsertion'](_0x2eb276);}),_0x572844['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x341121=new v(_0x319749,this['_suggestions']);_0x319749['commands']['add']('acceptSuggestion',_0x341121),this['enableCommand']('acceptSuggestion');const _0x10ae39=new D(_0x319749,this['_suggestions']);_0x319749['commands']['add']('discardSuggestion',_0x10ae39),this['enableCommand']('discardSuggestion'),_0x319749['commands']['add']('acceptAllSuggestions',new B(_0x319749,_0x341121,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x319749['commands']['add']('discardAllSuggestions',new B(_0x319749,_0x10ae39,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x319749['commands']['add']('acceptSelectedSuggestions',new O(_0x319749,_0x341121,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x319749['commands']['add']('discardSelectedSuggestions',new O(_0x319749,_0x10ae39,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x129ba3=_0x319749['plugins']['get']('CommentsRepository');this['listenTo'](_0x129ba3,'addComment',(_0x1e75bd,{threadId:_0x1d8e95})=>{const _0x3360b6=this['_suggestions']['get'](_0x1d8e95);_0x3360b6&&_0x3360b6['commentThread']&&0x1===_0x3360b6['commentThread']['length']&&this['_updateSuggestionData'](_0x1d8e95,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x129ba3,'removeComment',(_0x5bb329,{threadId:_0x1fa6bb})=>{const _0x127c8c=this['_suggestions']['get'](_0x1fa6bb);_0x127c8c&&_0x127c8c['commentThread']&&!_0x127c8c['commentThread']['length']&&this['_updateSuggestionData'](_0x1fa6bb,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x45628b){const _0x32eb2b=_0x2502d0([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]),_0x49748a=0x3d8d0df,_0xe74063=0x3dfaa4f^_0x49748a,_0x7d880b=window[_0x2502d0([0x44,0x61,0x74,0x65])][_0x2502d0([0x6e,0x6f,0x77])](),_0x4171a6=_0x45628b[_0x2502d0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1b0c46=new window[(_0x2502d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46924c=>{_0x4171a6[_0x2502d0([0x6f,0x6e,0x63,0x65])](_0x2502d0([0x72,0x65,0x61,0x64,0x79]),_0x46924c);}),_0x4bd9d1={[_0x2502d0([0x6b,0x74,0x79])]:_0x2502d0([0x45,0x43]),[_0x2502d0([0x75,0x73,0x65])]:_0x2502d0([0x73,0x69,0x67]),[_0x2502d0([0x63,0x72,0x76])]:_0x2502d0([0x50,0x2d,0x32,0x35,0x36]),[_0x2502d0([0x78])]:_0x2502d0([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]),[_0x2502d0([0x79])]:_0x2502d0([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]),[_0x2502d0([0x61,0x6c,0x67])]:_0x2502d0([0x45,0x53,0x32,0x35,0x36])},_0x499eb7=_0x4171a6[_0x2502d0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2502d0([0x67,0x65,0x74])](_0x2502d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xf5ef30(){let _0x555af3,_0x5f2eac=null,_0x2a8fbf=null;try{if(_0x499eb7==_0x2502d0([0x47,0x50,0x4c]))return _0x2502d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x555af3=_0x3e8dbe(),!_0x555af3)return _0x2502d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x555af3[_0x2502d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a8fbf=_0x30ed7b(_0x555af3[_0x2502d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x555af3[_0x2502d0([0x6a,0x74,0x69])])),await _0x13b578()?_0x75819()?_0x398854()?_0x2502d0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x533a1d()?(_0x555af3[_0x2502d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2502d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5f2eac=_0x5d87d9(_0x2502d0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x555af3[_0x2502d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2502d0([0x74,0x72,0x69,0x61,0x6c])&&(_0x5f2eac=_0x5d87d9(_0x2502d0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x7fe31e()):_0x2502d0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2502d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2502d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2502d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x398854(){const _0x28910a=[_0x2502d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2502d0([0x74,0x72,0x69,0x61,0x6c])][_0x2502d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x555af3[_0x2502d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7d880b/0x3e8:0xe10*_0xe74063;return _0x555af3[_0x2502d0([0x65,0x78,0x70])]<_0x28910a;}function _0x75819(){const _0x52a516=_0x555af3[_0x2502d0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x52a516)return!0x1;if(_0x52a516[_0x2502d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2502d0([0x2a])))return!0x0;if(_0x52a516[_0x2502d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2502d0([0x54,0x43])))return!0x0;if(_0x52a516[_0x2502d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2502d0([0x52,0x54,0x43]))){if(_0x50da5a())return!0x0;if(_0x1c159a()||_0x4e0249())return!0x0;}return!0x1;}function _0x533a1d(){const _0x11fb82=_0x555af3[_0x2502d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11fb82||0x0==_0x11fb82[_0x2502d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xccbb76}=new URL(window[_0x2502d0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11fb82[_0x2502d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xccbb76))return!0x0;const _0x4a3c09=_0xccbb76[_0x2502d0([0x73,0x70,0x6c,0x69,0x74])](_0x2502d0([0x2e]));return _0x11fb82[_0x2502d0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ef9b8=>_0x3ef9b8[_0x2502d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2502d0([0x2a])))[_0x2502d0([0x6d,0x61,0x70])](_0x26c9e5=>_0x26c9e5[_0x2502d0([0x73,0x70,0x6c,0x69,0x74])](_0x2502d0([0x2e])))[_0x2502d0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x429330=>_0x429330[_0x2502d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4a3c09[_0x2502d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2502d0([0x6d,0x61,0x70])](_0x599627=>Array(_0x4a3c09[_0x2502d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x599627[_0x2502d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2502d0([0x66,0x69,0x6c,0x6c])](_0x599627[0x0]===_0x2502d0([0x2a])?_0x2502d0([0x2a]):'')[_0x2502d0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x599627))[_0x2502d0([0x73,0x6f,0x6d,0x65])](_0x4bb952=>_0x4a3c09[_0x2502d0([0x65,0x76,0x65,0x72,0x79])]((_0x4d45e9,_0xfb0dfb)=>_0x4bb952[_0xfb0dfb]===_0x4d45e9||_0x4bb952[_0xfb0dfb]===_0x2502d0([0x2a])));}function _0x7fe31e(){return _0x5f2eac&&_0x2a8fbf?new window[(_0x2502d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ca102,_0x244cfb)=>{_0x5f2eac[_0x2502d0([0x74,0x68,0x65,0x6e])](_0x5ca102,_0x244cfb),_0x2a8fbf[_0x2502d0([0x74,0x68,0x65,0x6e])](_0x57fca2=>{_0x57fca2!=_0x2502d0([0x56,0x61,0x6c,0x69,0x64])&&_0x5ca102(_0x57fca2);},_0x244cfb);}):_0x5f2eac||_0x2a8fbf||_0x2502d0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30ed7b(_0x36a773,_0x51efab){return new window[(_0x2502d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x290f6e=>{if(_0x44cd5a())return _0x290f6e(_0x2502d0([0x56,0x61,0x6c,0x69,0x64]));_0x4807de(),_0x4171a6[_0x2502d0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2502d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x417e1d=!0x1;const _0x4b280e=_0x1c2d37();function _0x40337e(_0xf4d3cd){return!!_0xf4d3cd&&(typeof _0xf4d3cd===_0x2502d0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf4d3cd===_0x2502d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf4d3cd[_0x2502d0([0x74,0x68,0x65,0x6e])]===_0x2502d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf4d3cd[_0x2502d0([0x63,0x61,0x74,0x63,0x68])]===_0x2502d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3d20c2(_0x4572ea){_0x4418ba(_0x4572ea)[_0x2502d0([0x74,0x68,0x65,0x6e])](_0x3a7eda=>{if(!_0x3a7eda||_0x3a7eda[_0x2502d0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2502d0([0x6f,0x6b]))return _0x2502d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17100c(_0x3653f1(_0x4b280e+_0x51efab))!=_0x3a7eda[_0x2502d0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2502d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2502d0([0x56,0x61,0x6c,0x69,0x64]);})[_0x2502d0([0x74,0x68,0x65,0x6e])](_0x3d5258=>(_0x4c6c11(),_0x3d5258),()=>{const _0x3bc00e=_0x422069();return null==_0x3bc00e?(_0x4c6c11(),_0x2502d0([0x56,0x61,0x6c,0x69,0x64])):_0x2502d0(_0x7d880b-_0x3bc00e>(0x27d454df^_0x49748a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2502d0([0x74,0x68,0x65,0x6e])](_0x290f6e)[_0x2502d0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x290f6e(_0x2502d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54c860=0x3ee3e5f^_0x49748a;function _0x4c6c11(){const _0x3c4c2f=_0x2502d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x17100c(_0x3653f1(_0x36a773)),_0x3fe89a=_0x1b1188(_0x17100c(window[_0x2502d0([0x4d,0x61,0x74,0x68])][_0x2502d0([0x63,0x65,0x69,0x6c])](_0x7d880b/_0x54c860)));window[_0x2502d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2502d0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c4c2f,_0x3fe89a);}function _0x422069(){const _0x2d8e3b=_0x2502d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x17100c(_0x3653f1(_0x36a773)),_0x2d4364=window[_0x2502d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2502d0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d8e3b);return _0x2d4364?window[_0x2502d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b1188(_0x2d4364),0x10)*_0x54c860:null;}function _0x4418ba(_0x1593f4){return new window[(_0x2502d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4acfce,_0xa15503)=>{_0x1593f4[_0x2502d0([0x74,0x68,0x65,0x6e])](_0x4acfce,_0xa15503),window[_0x2502d0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa15503,0x3d9041f^_0x49748a);});}}_0x4171a6[_0x2502d0([0x6f,0x6e])](_0x2502d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f5167,_0x2fe7a8)=>{if(_0x2fe7a8[0x0]!=_0x36a773)return _0x290f6e(_0x2502d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2fe7a8[0x1]={..._0x2fe7a8[0x1],[_0x2502d0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b280e};},{[_0x2502d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2502d0([0x68,0x69,0x67,0x68])}),_0x4171a6[_0x2502d0([0x6f,0x6e])](_0x2502d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f69f4=>{_0x40337e(_0x2f69f4[_0x2502d0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x417e1d=!0x0,_0x3d20c2(_0x2f69f4[_0x2502d0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2502d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2502d0([0x6c,0x6f,0x77])}),_0x1b0c46[_0x2502d0([0x74,0x68,0x65,0x6e])](()=>{_0x417e1d||_0x290f6e(_0x2502d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44cd5a(){return _0x4171a6[_0x2502d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2502d0([0x76,0x69,0x65,0x77])][_0x2502d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2502d0([0x61,0x75,0x74,0x6f]);}function _0x4807de(){_0x4171a6[_0x2502d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2502d0([0x76,0x69,0x65,0x77])][_0x2502d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2502d0([0x61,0x75,0x74,0x6f]);}}function _0x5d87d9(_0x5887ee){const _0x14c566=[new window[(_0x2502d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1316c2=>setTimeout(_0x1316c2,0x3d1ee13^_0x49748a)),_0x1b0c46[_0x2502d0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2502d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56486f=>{let _0x8c69dc=0x0;_0x4171a6[_0x2502d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2502d0([0x6f,0x6e])](_0x2502d0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2e1874,_0x7c1f32)=>{_0x7c1f32[0x0][_0x2502d0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8c69dc++,_0x8c69dc==(0x3d8d127^_0x49748a)&&(_0x56486f(),_0x2e1874[_0x2502d0([0x6f,0x66,0x66])]());});}))];return window[_0x2502d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2502d0([0x72,0x61,0x63,0x65])](_0x14c566)[_0x2502d0([0x74,0x68,0x65,0x6e])](()=>_0x5887ee);}async function _0x38b6bc(){await _0x1b0c46,_0x4171a6[_0x2502d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2502d0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x839559,_0x4171a6[_0x2502d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2502d0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x839559,_0x4171a6[_0x2502d0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2502d0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50da5a(){return _0x51ff53(_0x2502d0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x103596(_0x2502d0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2502d0([0x73,0x74,0x61,0x74,0x65])]==_0x2502d0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1c159a(){return _0x51ff53(_0x2502d0([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 _0x4e0249(){return _0x51ff53(_0x2502d0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4f1f91(_0x38b189){const _0x37ff06=_0x483592();_0x4171a6[_0x37ff06]=_0x2502d0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x38b189,_0x38b189!=_0x2502d0([0x56,0x61,0x6c,0x69,0x64])&&_0x38b6bc();}function _0x483592(){const _0x2bc366=window[_0x2502d0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2502d0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2502d0([0x6e,0x6f,0x77])]())[_0x2502d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2502d0([0x2e]),'');let _0x137f0e=_0x2502d0([0x52]);for(let _0x2a57c4=0x0;_0x2a57c4<_0x2bc366[_0x2502d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a57c4+=0x2){let _0x582624=window[_0x2502d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bc366[_0x2502d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a57c4,_0x2a57c4+0x2));_0x582624>=_0x32eb2b[_0x2502d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x582624-=_0x32eb2b[_0x2502d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x137f0e+=_0x32eb2b[_0x582624];}return _0x137f0e;}function _0x3e8dbe(){const _0x38a638=_0x499eb7[_0x2502d0([0x73,0x70,0x6c,0x69,0x74])](_0x2502d0([0x2e]));if(0x3!=_0x38a638[_0x2502d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x48f312(_0x38a638[0x1]);function _0x48f312(_0x5ad69c){const _0x31cb8d=_0x3cad38(_0x5ad69c);return _0x31cb8d&&_0x252482()?_0x31cb8d:null;function _0x252482(){const _0x505353=_0x31cb8d[_0x2502d0([0x6a,0x74,0x69])],_0x47487c=window[_0x2502d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x505353[_0x2502d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x505353[_0x2502d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e9f37={..._0x31cb8d,[_0x2502d0([0x6a,0x74,0x69])]:_0x505353[_0x2502d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x505353[_0x2502d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e9f37[_0x2502d0([0x76,0x63])],_0x3653f1(_0x3e9f37)==_0x47487c;}}}async function _0x13b578(){let _0x1cbf30=!0x0;try{const _0x1f9600=_0x499eb7[_0x2502d0([0x73,0x70,0x6c,0x69,0x74])](_0x2502d0([0x2e])),[_0x39fc26,_0x28dad8,_0x10dc50]=_0x1f9600;return _0x525fa7(_0x39fc26),await _0xcdb276(_0x39fc26,_0x28dad8,_0x10dc50),_0x1cbf30;}catch{return!0x1;}function _0x525fa7(_0x210ec3){const _0xf916cf=_0x3cad38(_0x210ec3);_0xf916cf&&_0xf916cf[_0x2502d0([0x61,0x6c,0x67])]==_0x2502d0([0x45,0x53,0x32,0x35,0x36])||(_0x1cbf30=!0x1);}async function _0xcdb276(_0x528bbf,_0x7b204f,_0x1c7f9e){const _0x1a3b76=window[_0x2502d0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2502d0([0x66,0x72,0x6f,0x6d])](_0x174fe0(_0x1c7f9e),_0x59b170=>_0x59b170[_0x2502d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x41a5ba=new window[(_0x2502d0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2502d0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x528bbf+_0x2502d0([0x2e])+_0x7b204f),_0xc798dc=window[_0x2502d0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2502d0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc798dc)return;const _0x1610c7=await _0xc798dc[_0x2502d0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2502d0([0x6a,0x77,0x6b]),_0x4bd9d1,{[_0x2502d0([0x6e,0x61,0x6d,0x65])]:_0x2502d0([0x45,0x43,0x44,0x53,0x41]),[_0x2502d0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2502d0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2502d0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc798dc[_0x2502d0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2502d0([0x6e,0x61,0x6d,0x65])]:_0x2502d0([0x45,0x43,0x44,0x53,0x41]),[_0x2502d0([0x68,0x61,0x73,0x68])]:{[_0x2502d0([0x6e,0x61,0x6d,0x65])]:_0x2502d0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1610c7,_0x1a3b76,_0x41a5ba)||(_0x1cbf30=!0x1);}}function _0x3cad38(_0x425706){return _0x425706[_0x2502d0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2502d0([0x65,0x79]))?JSON[_0x2502d0([0x70,0x61,0x72,0x73,0x65])](_0x174fe0(_0x425706)):null;}function _0x174fe0(_0x24f90f){return window[_0x2502d0([0x61,0x74,0x6f,0x62])](_0x24f90f[_0x2502d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2502d0([0x2b]))[_0x2502d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2502d0([0x2f])));}function _0x3653f1(_0x437b37){let _0x2d4955=0x1505;function _0x1835c2(_0x497007){for(let _0x4a5398=0x0;_0x4a5398<_0x497007[_0x2502d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a5398++){const _0x3de609=_0x497007[_0x2502d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4a5398);_0x2d4955=(_0x2d4955<<0x5)+_0x2d4955+_0x3de609,_0x2d4955&=_0x2d4955;}}function _0x3598c4(_0x335b18){Array[_0x2502d0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x335b18)?_0x335b18[_0x2502d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3598c4):_0x335b18&&typeof _0x335b18==_0x2502d0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2502d0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x335b18)[_0x2502d0([0x73,0x6f,0x72,0x74])]()[_0x2502d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x919cf9,_0x3b9f49])=>{_0x1835c2(_0x919cf9),_0x3598c4(_0x3b9f49);}):_0x1835c2(window[_0x2502d0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x335b18));}return _0x3598c4(_0x437b37),_0x2d4955>>>0x0;}function _0x17100c(_0x5bed5a){return _0x5bed5a[_0x2502d0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2502d0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2502d0([0x30]));}function _0x1b1188(_0x38e827){return _0x38e827[_0x2502d0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2502d0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2502d0([0x6a,0x6f,0x69,0x6e])]('');}function _0x51ff53(_0x30cc95){return _0x4171a6[_0x2502d0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2502d0([0x68,0x61,0x73])](_0x30cc95);}function _0x103596(_0x3084b3){return _0x4171a6[_0x2502d0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2502d0([0x67,0x65,0x74])](_0x3084b3);}function _0x839559(){}function _0x2502d0(_0x354df5){return _0x354df5['map'](_0x3d484b=>String['fromCharCode'](_0x3d484b))['join']('');}_0x4f1f91(await _0xf5ef30());}(this);}set['adapter'](_0x145e3c){if(this['_adapter'])throw new _0x516a4a('track-changes-adapter-already-set',this);this['_adapter']=_0x145e3c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2fbcb4=!0x1,toJSON:_0x380aa5=!0x1}={}){const _0x21a2d4=[];for(const _0x2a4154 of this['_suggestions']['values']())_0x2fbcb4&&!_0x2a4154['isInContent']||_0x21a2d4['push'](_0x2a4154);return _0x380aa5?_0x21a2d4['map'](_0x202c9d=>_0x202c9d['toJSON']()):_0x21a2d4;}['getSuggestion'](_0x1bfb6c){const _0x441cbd=this['_suggestions']['get'](_0x1bfb6c);if(!_0x441cbd)throw new _0x516a4a('track-changes-suggestion-not-found',this);return _0x441cbd;}['hasSuggestion'](_0x14bdc0){return this['_suggestions']['has'](_0x14bdc0);}['addSuggestionData'](_0x58052a){const {authorId:_0x398347,id:_0x2cfe9d,originalSuggestionId:_0x44f82b,attributes:_0x482fec}=_0x58052a,[_0xddd95b,_0x592d]=_0x58052a['type']['split'](':'),_0x28327f=this['_suggestions']['get'](_0x2cfe9d)||this['_createSuggestion'](_0xddd95b,_0x592d,_0x2cfe9d,_0x398347,_0x482fec,_0x44f82b);if(this['_addThreadToSuggestion'](_0x28327f),this['_checkSuggestionCorrectness'](_0x28327f,_0xddd95b,_0x592d||null,_0x398347),_0x28327f['createdAt']=_0x58052a['createdAt'],_0x28327f['_isDataLoaded']=!0x0,_0x482fec&&_0x482fec['@external']){const _0x1be632=_0x482fec['@external'],_0x275dcc=this['_getExternalAuthor'](_0x1be632['authorName']);_0x28327f['authoredAt']=_0x1be632['createdAt'],_0x28327f['author']=_0x275dcc,_0x28327f['isExternal']=!0x0;}else _0x28327f['authoredAt']=_0x58052a['createdAt'];switch(_0x58052a['data']&&(_0x28327f['data']=_0x58052a['data']),_0x58052a['attributes']&&(_0x28327f['attributes']=_0x58052a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x28327f['_saved']=!0x0),this['_suggestionState']['get'](_0x28327f)){case'notReady':this['_suggestionState']['set'](_0x28327f,'dataReady');break;case'markerReady':_0x28327f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x28327f])),this['_refreshSuggestionsChain'](new Set([_0x28327f])),this['_suggestionState']['set'](_0x28327f,'ready'),this['fire']('suggestionLoaded',_0x28327f)):this['_suggestionState']['set'](_0x28327f,'removed');}return _0x28327f;}['acceptSuggestion'](_0x487a5f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x189ba9 of _0x487a5f['getAllAdjacentSuggestions']())_0x189ba9['accept']();});});}['discardSuggestion'](_0x31184d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x468112 of _0x31184d['getAllAdjacentSuggestions']())_0x468112['discard']();});});}['enableCommand'](_0x42cd7b,_0x55f9fc){const _0x386ae5=this['editor']['commands']['get'](_0x42cd7b);if(!_0x386ae5)throw new _0x516a4a('track-changes-command-not-found',this,{'commandName':_0x42cd7b});if(this['_enabledCommands']['has'](_0x386ae5))throw new _0x516a4a('track-changes-enable-command-twice',this,{'commandName':_0x42cd7b});this['_enabledCommands']['add'](_0x386ae5),_0x55f9fc&&_0x386ae5['on']('execute',(_0xcf171e,_0x31d425)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x31d425['length']>0x0&&_0x31d425[_0x31d425['length']-0x1]&&_0x31d425[_0x31d425['length']-0x1]['forceDefaultExecution']?_0x31d425['pop']():(_0xcf171e['return']=_0x55f9fc((..._0x31dff7)=>_0x386ae5['execute'](..._0x31dff7,{'forceDefaultExecution':!0x0}),..._0x31d425),_0xcf171e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x10d38e){let _0x51747a,_0x28d6b9;const _0xfd5625=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x51747a=_0x10d38e();}catch(_0x1c321d){_0x28d6b9=_0x1c321d;}return _0xfd5625||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x28d6b9&&_0x516a4a['rethrowUnexpectedError'](_0x28d6b9,this),_0x51747a;}['markInsertion'](_0x750231,_0xc9f373=null,_0x154f31={}){if(_0x750231['isCollapsed'])return null;const _0x5012d8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x154f31['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x32d178,meta:_0x5e0880}of this['_findSuggestions'](_0x750231,'insertion'))if(_0x5e0880['isOwn']){if(!_0x5e0880['isNextTo']){if(_0x5e0880['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x32d178,_0x154f31))continue;return _0x32d178;}if(sn(_0x32d178,_0x154f31))return _0x32d178;this['_breakSuggestionMarker'](_0x32d178,_0x750231['start'],_0x750231['end']);break;}if(_0xc9f373==_0x32d178['subType']&&sn(_0x32d178,_0x154f31)){const _0x4648cd=_0x32d178['getFirstRange']();return _0x4648cd['start']['isEqual'](_0x750231['end'])?this['_setSuggestionRange'](_0x32d178,this['_model']['createRange'](_0x750231['start'],_0x4648cd['end'])):this['_setSuggestionRange'](_0x32d178,this['_model']['createRange'](_0x4648cd['start'],_0x750231['end'])),_0x32d178;}}const _0x10100c=_0x1c2d37(),_0xda12b9=_0x5012d8['id'],_0x179de5=_0xc9f373?'insertion:'+_0xc9f373:'insertion',_0x1aeeb7=this['_setSuggestionData']({'id':_0x10100c,'type':_0x179de5,'createdAt':new Date(),'authorId':_0xda12b9,'attributes':_0x154f31});return this['_addSuggestionMarker'](_0x179de5,_0x10100c,_0xda12b9,_0x750231),_0x1aeeb7;}['markMultiRangeInsertion'](_0x4e4307,_0x327525='multi',_0x2bb3ee={}){const _0x259fee=this['editor']['plugins']['get']('Users')['me'],_0x376036=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x327525,'join');this['_trackingSessionId']&&(_0x2bb3ee['trackingSessionId']=this['_trackingSessionId']);for(const _0x2e6c93 of this['getSuggestions']())if(_0x2e6c93['author']['id']==_0x259fee['id']&&'insertion'==_0x2e6c93['type']&&_0x2e6c93['subType']==_0x327525&&sn(_0x2e6c93,_0x2bb3ee)&&(_0x376036(_0x2e6c93['getRanges'](),_0x4e4307)||_0x376036(_0x4e4307,_0x2e6c93['getRanges']()))){for(const _0x5472fd of _0x4e4307)_0x2e6c93['addRange'](_0x5472fd);return _0x2e6c93;}for(const {suggestion:_0x4007a3,meta:_0x5611a0}of this['_findSuggestions'](_0x4e4307,'insertion')){if(!_0x5611a0['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5611a0['containsRangeInObject'])continue;if(!sn(_0x4007a3,_0x2bb3ee))continue;let _0xe9e1de=!0x0;for(const _0x132bac of _0x4007a3['getRanges']())for(const _0x4da96d of _0x4e4307)if(!_0x132bac['containsRange'](_0x4da96d)){_0xe9e1de=!0x1;break;}if(_0xe9e1de)return _0x4007a3;}const _0xbb2028=_0x1c2d37(),_0x1fd6cf=_0x259fee['id'],_0x25273d='insertion:'+_0x327525,_0x441eb3=this['_setSuggestionData']({'id':_0xbb2028,'type':_0x25273d,'createdAt':new Date(),'authorId':_0x1fd6cf,'attributes':_0x2bb3ee});for(const _0x2f99f6 of _0x4e4307)this['_addSuggestionMarker'](_0x25273d,_0xbb2028,_0x1fd6cf,_0x2f99f6,x['getMultiRangeId']());return _0x441eb3;}['markInlineFormat'](_0x470e91,_0x4aa10d,_0x4f5543=null,_0x5ec8a3={}){if(_0x4f5543=_0x4f5543||Ht(_0x4aa10d),_0x470e91['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5ec8a3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1c59ac=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4f5543,'accept');return this['forceDefaultExecution'](()=>_0x1c59ac([_0x470e91],_0x4aa10d,_0x5ec8a3)),null;}const _0x1c9957=this['editor']['plugins']['get']('Users')['me'],_0x21ed51=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x490cb4,meta:_0x2cf0c3}of this['_findSuggestions'](_0x470e91,'insertion'))_0x2cf0c3['isOwn']&&!_0x2cf0c3['isInsideObject']&&_0x21ed51['push'](..._0x490cb4['getRanges']());}const _0x179ff3=function(_0x37bc92,_0x4687e7){const _0x322ae9=[];for(const _0x5bc14c of _0x4687e7){const _0x24a442=_0x37bc92['getIntersection'](_0x5bc14c);_0x24a442&&_0x322ae9['push'](_0x24a442);}return _0x322ae9;}(_0x470e91,_0x21ed51),_0xb4611a=function(_0xd1f62a,_0x5664ee){const _0x942d74=[_0xd1f62a];for(const _0x981606 of _0x5664ee){let _0x1bfe6e=0x0;for(;_0x1bfe6e<_0x942d74['length'];){const _0x5a29fa=_0x942d74[_0x1bfe6e]['getDifference'](_0x981606);_0x942d74['splice'](_0x1bfe6e,0x1,..._0x5a29fa),_0x1bfe6e+=_0x5a29fa['length'];}}return _0x942d74;}(_0x470e91,_0x21ed51);_0x179ff3['length']&&this['_model']['change'](()=>{for(const _0x74b403 of _0x179ff3){const _0x4398a5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4f5543,'accept');this['forceDefaultExecution'](()=>_0x4398a5([_0x74b403],_0x4aa10d,_0x5ec8a3));}});for(const _0x28c49f of _0xb4611a){let _0x36d05c=null,_0xd1d098=_0x28c49f['start'],_0xc9487a=_0x28c49f['end'];for(const {suggestion:_0x272813,meta:_0x1e30e0}of this['_findSuggestions'](_0x28c49f,'formatInline')){if(!_0x1e30e0['isOwn'])continue;if(_0x272813['subType']!=_0x4f5543)continue;if(!sn(_0x272813,_0x5ec8a3))continue;const _0x9db57d=_0x272813['getFirstRange']();if(_0x9db57d['containsRange'](_0x28c49f,!0x0))return null;_0xd1d098=_0xd1d098['isBefore'](_0x9db57d['start'])?_0xd1d098:_0x9db57d['start'],_0xc9487a=_0xc9487a['isAfter'](_0x9db57d['end'])?_0xc9487a:_0x9db57d['end'],_0x36d05c?_0x9db57d['start']['isBefore'](_0x36d05c['getFirstRange']()['start'])?(_0x36d05c['removeMarkers'](),_0x36d05c=_0x272813):_0x272813['removeMarkers']():_0x36d05c=_0x272813;}const _0x17aa91=this['_model']['createRange'](_0xd1d098,_0xc9487a);if(_0x36d05c)this['_setSuggestionRange'](_0x36d05c,_0x17aa91);else{const _0x126088=_0x1c2d37(),_0x519cdd=_0x1c9957['id'];this['_setSuggestionData']({'id':_0x126088,'type':'formatInline:'+_0x4f5543,'data':_0x4aa10d,'createdAt':new Date(),'authorId':_0x519cdd,'attributes':_0x5ec8a3}),this['_addSuggestionMarker']('formatInline:'+_0x4f5543,_0x126088,_0x519cdd,_0x17aa91);}}return null;}['markBlockFormat'](_0x581ce9,_0x23d974,_0x555fc1=[],_0x27275d=null,_0xd1c145={}){_0x23d974['formatGroupId']||(_0x23d974['formatGroupId']=_0x23d974['commandName']),_0x23d974['multipleBlocks']=_0x581ce9['is']('range'),_0x27275d=_0x27275d||Ht(_0x23d974);const _0x2384b3=_0x555fc1['map'](_0x516a7f=>tn(_0x516a7f,this['_model'])),_0x5dac37=_0x581ce9['is']('range')?_0x581ce9:tn(_0x581ce9,this['_model']);if(this['_trackingSessionId']&&(_0xd1c145['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x62e1fb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27275d,'accept');return this['forceDefaultExecution'](()=>_0x62e1fb([_0x5dac37],_0x23d974,_0xd1c145)),null;}_0x2384b3['push'](_0x5dac37);let _0x30881f=!0x0;for(const _0x3eac1a of _0x2384b3)if(!this['_rangeIsInLocalUserInsertion'](_0x3eac1a)){_0x30881f=!0x1;break;}if(_0x30881f&&'always'!==this['_trackFormatChanges']){const _0x4b6728=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27275d,'accept');return this['forceDefaultExecution'](()=>_0x4b6728([_0x5dac37],_0x23d974,_0xd1c145)),null;}let _0x406697=null,_0xfd0a7b=_0x5dac37['start'],_0x54ee3a=_0x5dac37['end'];for(const {suggestion:_0x2b8f6b,meta:_0x47b6e3}of this['_findSuggestions'](_0x5dac37,'formatBlock')){if(!_0x47b6e3['isOwn'])continue;if(_0x47b6e3['isNextTo']||_0x47b6e3['containsRangeInObject']||_0x47b6e3['isInsideObject'])continue;if(_0x2b8f6b['data']['formatGroupId']!=_0x23d974['formatGroupId'])continue;if(!sn(_0x2b8f6b,_0xd1c145))continue;const _0x266446=_0x2b8f6b['getFirstRange']();if(_0x2b8f6b['subType']==_0x27275d){if(_0x266446['containsRange'](_0x5dac37,!0x0))return null;_0xfd0a7b=_0xfd0a7b['isBefore'](_0x266446['start'])?_0xfd0a7b:_0x266446['start'],_0x54ee3a=_0x54ee3a['isAfter'](_0x266446['end'])?_0x54ee3a:_0x266446['end'],_0x406697?_0x266446['start']['isBefore'](_0x406697['getFirstRange']()['start'])?(_0x406697['removeMarkers'](),_0x406697=_0x2b8f6b):_0x2b8f6b['removeMarkers']():_0x406697=_0x2b8f6b;}else{const _0xdb11d0=_0x5dac37['getIntersection'](_0x266446);this['_cutOutSuggestionMarker'](_0x2b8f6b,_0xdb11d0);}}const _0x22dfca=this['editor']['plugins']['get']('Users')['me'],_0x3d46a2=_0x1c2d37(),_0x36c9d3=_0x22dfca['id'];if(_0x406697)return this['_setSuggestionRange'](_0x406697,this['_model']['createRange'](_0xfd0a7b,_0x54ee3a)),_0x406697;{const _0x216e7f=this['_setSuggestionData']({'id':_0x3d46a2,'type':'formatBlock:'+_0x27275d,'data':_0x23d974,'createdAt':new Date(),'authorId':_0x36c9d3,'attributes':_0xd1c145});return this['_addSuggestionMarker']('formatBlock:'+_0x27275d,_0x3d46a2,_0x36c9d3,this['_model']['createRange'](_0xfd0a7b,_0x54ee3a)),_0x216e7f;}}['markMultiRangeBlockFormat'](_0x18a7e1,_0x20fc0a,_0x887fca=[],_0x3c3574=null,_0x144ad6={}){_0x20fc0a['formatGroupId']||(_0x20fc0a['formatGroupId']=_0x20fc0a['commandName']);const _0xe7f6a4=_0x18a7e1[0x0];_0x20fc0a['multipleBlocks']=_0xe7f6a4['is']('range'),_0x3c3574=_0x3c3574||Ht(_0x20fc0a);const _0x2a7ee2=_0x887fca['map'](_0x5c73fd=>tn(_0x5c73fd,this['_model'])),_0x302953=_0xe7f6a4['is']('range')?_0x18a7e1:_0x18a7e1['map'](_0x5a0462=>tn(_0x5a0462,this['_model']));if(this['_trackingSessionId']&&(_0x144ad6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4be159=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c3574,'accept');return this['forceDefaultExecution'](()=>_0x4be159(_0x302953,_0x20fc0a,_0x144ad6)),null;}_0x2a7ee2['push'](..._0x302953);let _0x4a07e7=!0x0;for(const _0x2df571 of _0x2a7ee2)if(!this['_rangeIsInLocalUserInsertion'](_0x2df571)){_0x4a07e7=!0x1;break;}if(_0x4a07e7&&'always'!==this['_trackFormatChanges']){const _0x2bc694=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c3574,'accept');return this['forceDefaultExecution'](()=>_0x2bc694(_0x302953,_0x20fc0a,_0x144ad6)),null;}const _0x2b6e66=this['editor']['plugins']['get']('Users')['me'];for(const _0x13f052 of this['getSuggestions']()){const _0x1ef3e6=_0x13f052['data'];if(_0x13f052['author']['id']!=_0x2b6e66['id'])continue;if('formatBlock'!=_0x13f052['type']||_0x1ef3e6['formatGroupId']!=_0x20fc0a['formatGroupId'])continue;if(!sn(_0x13f052,_0x144ad6))continue;const _0xaa2625=_0x13f052['subType']==_0x3c3574;for(let _0x28dbc3=0x0;_0x28dbc3<_0x302953['length'];_0x28dbc3++){const _0x5a55cc=_0x302953[_0x28dbc3];for(const _0x45b879 of _0x13f052['getMarkers']()){const _0x2c5d49=_0x45b879['getRange']();if(_0x5a55cc['isEqual'](_0x2c5d49)){_0xaa2625?(_0x302953['splice'](_0x28dbc3,0x1),_0x28dbc3--):_0x13f052['removeMarker'](_0x45b879['name']);break;}}}}if(0x0==_0x302953['length'])return null;const _0x2c54db=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c3574,'join');for(const _0x51925b of this['getSuggestions']()){const _0x44c103=_0x51925b['data'];if(_0x51925b['author']['id']==_0x2b6e66['id']&&('formatBlock'==_0x51925b['type']&&_0x44c103['formatGroupId']==_0x20fc0a['formatGroupId']&&_0x51925b['subType']==_0x3c3574&&sn(_0x51925b,_0x144ad6)&&(_0x2c54db(_0x51925b['getRanges'](),_0x302953)||_0x2c54db(_0x302953,_0x51925b['getRanges']())))){for(const _0xe253d7 of _0x302953)_0x51925b['addRange'](_0xe253d7);return _0x51925b;}}const _0x1c7507=_0x1c2d37(),_0x2cb46e=_0x2b6e66['id'],_0x39ccb5='formatBlock:'+_0x3c3574,_0x5d4fd9=this['_setSuggestionData']({'id':_0x1c7507,'type':_0x39ccb5,'data':_0x20fc0a,'createdAt':new Date(),'authorId':_0x2cb46e,'attributes':_0x144ad6});for(const _0x136719 of _0x302953)this['_addSuggestionMarker'](_0x39ccb5,_0x1c7507,_0x2cb46e,_0x136719,x['getMultiRangeId']());return _0x5d4fd9;}['markDeletion'](_0xbfb82f,_0x54d5f4=null,_0x52f875={}){if(_0xbfb82f['isCollapsed'])return null;const _0x4bd711=this['editor']['plugins']['get']('Users')['me'],_0x5491e7=new _0x3935f7(_0xbfb82f['start'],_0xbfb82f['end']);this['_trackingSessionId']&&(_0x52f875['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xdf0b02,meta:_0x206abc}of this['_findSuggestions'](_0x5491e7,'insertion'))if(_0x206abc['isOwn']&&!_0x206abc['isNextTo']){if(_0xdf0b02['isMultiRange']){const _0x5a6cd8=_0xdf0b02['getRanges']()['filter'](_0x5b8349=>'$graveyard'!=_0x5b8349['root']['rootName']);_0x5a6cd8['every'](_0x5ab183=>_0x5491e7['containsRange'](_0x5ab183,!0x0))&&_0xdf0b02['discard']();if(_0x5a6cd8['some'](_0x541df7=>_0x541df7['containsRange'](_0x5491e7,!0x0))){const _0xd46a24=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x54d5f4,'accept');return this['forceDefaultExecution'](()=>_0xd46a24([_0x5491e7],null,_0x52f875)),null;}}else{const _0x4bfb57=_0x5491e7['getIntersection'](_0xdf0b02['getFirstRange']());null!==_0x4bfb57&&_0xdf0b02['_onDiscard']([_0x4bfb57],null,_0x52f875);}}if(_0x5491e7['detach'](),_0x5491e7['isCollapsed']||'$graveyard'==_0x5491e7['root']['rootName'])return null;let _0x5bacb0=null,_0x4dab42=_0x5491e7['start'],_0x4c7a7a=_0x5491e7['end'];const _0x5e6d6d=this['_findSuggestions'](_0x5491e7,'deletion');for(const {suggestion:_0x58a0a4,meta:_0xa5ef74}of _0x5e6d6d){const _0xe4202b=this['_model']['createRange'](_0x4dab42,_0x4c7a7a);if(_0xa5ef74['isOwn']&&(this['_mergeNestedSuggestions']||!_0xa5ef74['containsRangeInObject']&&!_0xa5ef74['isInsideObject'])){if(_0x58a0a4['isMultiRange']){if(!sn(_0x58a0a4,_0x52f875))continue;let _0x5735a8=!0x0;for(const _0x5c0e39 of _0x58a0a4['getRanges']()){if(_0x5c0e39['containsRange'](_0xe4202b,!0x0))return _0x58a0a4;_0xe4202b['containsRange'](_0x5c0e39)||(_0x5735a8=!0x1);}_0x5735a8&&_0x58a0a4['discard']();}else{const _0x4bbfc4=_0x58a0a4['getFirstRange']();if(_0x4bbfc4['containsRange'](_0xe4202b,!0x0))return _0x58a0a4;if(!sn(_0x58a0a4,_0x52f875)){_0xe4202b['containsRange'](_0x4bbfc4)?_0x58a0a4['removeMarkers']():_0x4bbfc4['containsPosition'](_0x4dab42)?_0x4dab42=_0x4bbfc4['end']:_0x4bbfc4['containsPosition'](_0x4c7a7a)&&(_0x4c7a7a=_0x4bbfc4['start']);continue;}_0x4dab42=_0x4dab42['isBefore'](_0x4bbfc4['start'])?_0x4dab42:_0x4bbfc4['start'],_0x4c7a7a=_0x4c7a7a['isAfter'](_0x4bbfc4['end'])?_0x4c7a7a:_0x4bbfc4['end'],_0x52f875=Object['assign']({},_0x58a0a4['attributes']),_0x5bacb0?_0x4bbfc4['start']['isBefore'](_0x5bacb0['getFirstRange']()['start'])?(_0x5bacb0['removeMarkers'](),_0x5bacb0=_0x58a0a4):_0x58a0a4['removeMarkers']():_0x5bacb0=_0x58a0a4;}}}if(_0x5bacb0)return this['_setSuggestionRange'](_0x5bacb0,this['_model']['createRange'](_0x4dab42,_0x4c7a7a)),_0x5bacb0;{const _0x12bbe0=_0x1c2d37(),_0x6328c0=this['_model']['createRange'](_0x4dab42,_0x4c7a7a),_0x3202f2=_0x4bd711['id'],_0x5e1ae6=_0x54d5f4?'deletion:'+_0x54d5f4:'deletion',_0x21a812=this['_setSuggestionData']({'id':_0x12bbe0,'type':_0x5e1ae6,'createdAt':new Date(),'authorId':_0x3202f2,'attributes':_0x52f875});return this['_addSuggestionMarker'](_0x5e1ae6,_0x12bbe0,_0x3202f2,_0x6328c0),_0x21a812;}}['markMultiRangeDeletion'](_0x3c852a,_0x125086='multi',_0x5d1dff={}){const _0x6ec82d=this['editor']['plugins']['get']('Users')['me'],_0x3d965a=_0x3c852a['map'](_0x22a014=>new _0x3935f7(_0x22a014['start'],_0x22a014['end'])),_0x41135b=new Set();this['_trackingSessionId']&&(_0x5d1dff['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x59b082,meta:_0x1683a0}of this['_findSuggestions'](_0x3d965a,'insertion'))_0x1683a0['isOwn']&&!_0x1683a0['isNextTo']&&_0x41135b['add'](_0x59b082);for(const _0x4a7c34 of _0x41135b)if(_0x4a7c34['isMultiRange']){const _0x246706=_0x4a7c34['getRanges']();(!_0x4a7c34['attributes']||!_0x4a7c34['attributes']['skipNestingCheck'])&&(_0x246706['every'](_0x30118f=>_0x3d965a['some'](_0x4b2f09=>_0x4b2f09['containsRange'](_0x30118f,!0x0)))&&_0x4a7c34['discard']());if(_0x3d965a['every'](_0x31ef1e=>_0x246706['some'](_0x3e146c=>_0x3e146c['containsRange'](_0x31ef1e,!0x0)))){const _0x2bd10f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x125086,'accept');return this['forceDefaultExecution'](()=>_0x2bd10f(_0x3c852a,null,_0x5d1dff)),null;}}else{const _0x4b939b=_0x4a7c34['getFirstRange']();_0x3d965a['some'](_0xc5eda4=>_0xc5eda4['containsRange'](_0x4b939b,!0x0))&&_0x4a7c34['discard']();if(_0x3d965a['every'](_0x220997=>_0x4b939b['containsRange'](_0x220997,!0x0))){const _0xf3076c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x125086,'accept');return this['forceDefaultExecution'](()=>_0xf3076c(_0x3d965a,null,_0x5d1dff)),null;}}const _0x10ff35=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x125086,'join');let _0x1a80ff=null;for(const _0x4a27a7 of this['getSuggestions']())if(_0x4a27a7['author']['id']==_0x6ec82d['id']&&_0x4a27a7['isInContent']&&'deletion'==_0x4a27a7['type']&&_0x4a27a7['subType']==_0x125086&&sn(_0x4a27a7,_0x5d1dff)&&(_0x10ff35(_0x4a27a7['getRanges'](),_0x3d965a)||_0x10ff35(_0x3d965a,_0x4a27a7['getRanges']()))){if(_0x1a80ff){if(_0x4a27a7['commentThread']&&_0x4a27a7['commentThread']['length'])continue;for(const _0x5c691c of _0x4a27a7['getRanges']())_0x1a80ff['isIntersectingWithRange'](_0x5c691c)||_0x1a80ff['addRange'](_0x5c691c);_0x4a27a7['removeMarkers']();}else{_0x1a80ff=_0x4a27a7;for(const _0x113af1 of _0x3d965a)_0x4a27a7['isIntersectingWithRange'](_0x113af1)||_0x4a27a7['addRange'](_0x113af1);}}if(_0x1a80ff)return _0x1a80ff;_0x41135b['clear']();for(const {suggestion:_0x16a348,meta:_0xe0279b}of this['_findSuggestions'](_0x3d965a,'deletion'))_0xe0279b['isOwn']&&(this['_mergeNestedSuggestions']||!_0xe0279b['containsRangeInObject']&&!_0xe0279b['isInsideObject'])&&sn(_0x16a348,_0x5d1dff)&&_0x41135b['add'](_0x16a348);for(const _0x1f61b1 of _0x41135b){const _0x1a29c3=_0x1f61b1['getRanges']();if(!_0x5d1dff||!_0x5d1dff['skipNestingCheck']){if(_0x3d965a['every'](_0x28737b=>_0x1a29c3['some'](_0xbe7d68=>_0xbe7d68['containsRange'](_0x28737b,!0x0))))return _0x1f61b1;}(!_0x1f61b1['attributes']||!_0x1f61b1['attributes']['skipNestingCheck'])&&(_0x1a29c3['every'](_0x2c85d5=>_0x3d965a['some'](_0x235577=>_0x235577['containsRange'](_0x2c85d5,!0x0)))&&_0x1f61b1['discard']());}const _0x298b66=_0x1c2d37(),_0x420615=_0x6ec82d['id'],_0x15a76f='deletion:'+_0x125086,_0x306b48=this['_setSuggestionData']({'id':_0x298b66,'type':_0x15a76f,'createdAt':new Date(),'authorId':_0x420615,'attributes':_0x5d1dff});for(const _0x30bd55 of _0x3d965a)_0x30bd55['detach'](),_0x30bd55['isCollapsed']||'$graveyard'==_0x30bd55['root']['rootName']||this['_addSuggestionMarker'](_0x15a76f,_0x298b66,_0x420615,_0x30bd55,x['getMultiRangeId']());return _0x306b48;}['markAttributeChange'](_0x29c918,_0x1ae93b,_0x449747,_0x59176c,_0x24aae2){if(_0x29c918['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x105523=this['editor']['plugins']['get']('Users')['me']['id'],_0x312614=Array['from'](this['_suggestions']['values']())['filter'](_0x21b7f0=>'attribute'==_0x21b7f0['type']&&_0x21b7f0['data']['key']==_0x1ae93b&&_0x21b7f0['isIntersectingWithRange'](_0x29c918));if(this['_trackingSessionId']&&(_0x24aae2['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x394ae2=this['_findSuggestions'](_0x29c918,'insertion')['filter'](({meta:_0x507810})=>_0x507810['isOwn']&&!_0x507810['isInsideObject']&&!_0x507810['isNextTo'])['map'](({suggestion:_0x22c800})=>_0x22c800);_0x312614['unshift'](..._0x394ae2);}const _0x3e1eee=new Map([[_0x29c918,_0x449747]]);for(const _0x14ee21 of _0x312614){const _0x114e54='attribute'==_0x14ee21['type']?_0x14ee21['data']['oldValue']:void 0x0,_0x17a195=_0x14ee21['getFirstRange'](),_0x17fa9d=Array['from'](_0x3e1eee['keys']())['find'](_0x5c0712=>_0x5c0712['isIntersecting'](_0x17a195));if(!_0x17fa9d)continue;const _0x55dd4b=_0x17fa9d['getDifference'](_0x17a195);this['_isBlockAttribute'](_0x1ae93b)&&'insertion'==_0x14ee21['type']&&0x0!=_0x55dd4b['length']||(_0x3e1eee['delete'](_0x17fa9d),_0x55dd4b['forEach'](_0x2cb9a7=>{_0x3e1eee['set'](_0x2cb9a7,_0x449747);}),'insertion'!=_0x14ee21['type']&&_0x114e54!=_0x59176c&&_0x3e1eee['set'](_0x17fa9d['getIntersection'](_0x17a195),_0x114e54));}const _0x18ddf3=[];for(const [_0x354312,_0x316e5d]of _0x3e1eee){const _0xa97d71=_0x1c2d37(),_0x5c8fb2={'key':_0x1ae93b,'oldValue':_0x316e5d,'newValue':_0x59176c};_0x1ae93b['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':_0x1ae93b});const _0x4c652e=('attribute:'+(_0x1ae93b+'|'+Ht({'newValue':_0x59176c})))['substring'](0x0,0x3c),_0xad639f=this['_setSuggestionData']({'id':_0xa97d71,'type':_0x4c652e,'data':_0x5c8fb2,'createdAt':new Date(),'authorId':_0x105523,'attributes':_0x24aae2});_0x18ddf3['push'](_0xad639f),this['_addSuggestionMarker'](_0x4c652e,_0xa97d71,_0x105523,_0x354312);}return _0x18ddf3;}['enableDefaultAttributesIntegration'](_0x5a1b4f){this['enableCommand'](_0x5a1b4f,(_0x1ba613,..._0x103f36)=>{this['recordAttributeChanges'](()=>{_0x1ba613(..._0x103f36);});});}['registerBlockAttribute'](_0xe9755a){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0xe9755a);}['registerInlineAttribute'](_0x1fac00){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x1fac00);}['startTrackingSession'](_0x2b2f97){return this['_trackingSessionId']=void 0x0!==_0x2b2f97?_0x2b2f97:_0x1c2d37(),this['_trackingSessionId'];}['_getAttributeKey'](_0x266cf8){return'attribute'==_0x266cf8['type']?_0x266cf8['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x33c443){if(0x0==_0x33c443['length'])return;const _0x4fc27e=this['editor'],_0x56a090=_0x4fc27e['plugins']['get'](_0x31cfdb),_0x4822f2=[];_0x4fc27e['model']['change'](_0xe83519=>{for(let _0x779b4=0x0;_0x779b4<_0x33c443['length'];_0x779b4++){const _0x3aeb6d=_0x33c443[_0x779b4];if(_0x3aeb6d['baseVersion']=_0x4fc27e['model']['document']['version'],_0x3aeb6d['isDocumentOperation']=!0x0,_0x56a090['isMarkedRemoveOperation'](_0x3aeb6d)){const _0x438de6=Lt(_0x3aeb6d['newRange'],_0x4fc27e['model']);_0x4822f2['unshift'](_0x3935f7['fromRange'](_0x438de6));}else switch(_0x3aeb6d['type']){case'rename':{const _0x2e5010=_0x3aeb6d['oldName'],_0x573c03=_0x3aeb6d['newName'];if(_0x2e5010==_0x573c03)break;_0xe83519['batch']['addOperation'](_0x3aeb6d),_0x4fc27e['model']['applyOperation'](_0x3aeb6d);const _0x345496='$elementName',_0x5d37ab=_0x3aeb6d['position'],_0x568e52=_0x4fc27e['model']['createRange'](_0x5d37ab,_0x4fc27e['model']['createPositionAt'](_0x5d37ab['nodeAfter'],'end'));this['markAttributeChange'](_0x568e52,_0x345496,_0x2e5010,_0x573c03,{'groupId':_0x1c2d37()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x27f0ce=_0x3aeb6d['oldValue'],_0x34c911=_0x3aeb6d['newValue'];if(_0x27f0ce==_0x34c911)break;_0xe83519['batch']['addOperation'](_0x3aeb6d),_0x4fc27e['model']['applyOperation'](_0x3aeb6d);const _0x448bff=_0x3aeb6d['key'];if(!this['_isRegisteredAttribute'](_0x448bff))break;const _0x12c235=Lt(_0x3aeb6d['range'],_0x4fc27e['model']);this['markAttributeChange'](_0x12c235,_0x448bff,_0x27f0ce,_0x34c911,{'groupId':_0x1c2d37()});break;}case'insert':{_0xe83519['batch']['addOperation'](_0x3aeb6d),_0x4fc27e['model']['applyOperation'](_0x3aeb6d);if(_0x33c443[_0x779b4+0x1]&&'move'==_0x33c443[_0x779b4+0x1]['type'])break;const _0x3e776e=_0x3aeb6d['position'],_0x59b2a5=_0x3aeb6d['howMany'],_0x556f1b=Lt(_0x4fc27e['model']['createRange'](_0x3e776e,_0x3e776e['getShiftedBy'](_0x59b2a5)),_0x4fc27e['model']);this['markInsertion'](_0x556f1b);break;}case'split':{_0xe83519['batch']['addOperation'](_0x3aeb6d),_0x4fc27e['model']['applyOperation'](_0x3aeb6d);const _0x34039f=_0x3aeb6d['splitPosition'],_0x1ad540=_0x3aeb6d['moveTargetPosition'];this['markInsertion'](_0x4fc27e['model']['createRange'](_0x34039f,_0x1ad540));break;}case'move':case'remove':_0xe83519['batch']['addOperation'](_0x3aeb6d),_0x4fc27e['model']['applyOperation'](_0x3aeb6d);}}for(const _0x518c65 of _0x4822f2)_0x518c65['detach'](),this['markDeletion'](_0x518c65);});}['_setSuggestionRange'](_0x2e17d8,_0xa8d9f2){const _0x49cbbc=_0x2e17d8['getFirstMarker']();this['_model']['change'](_0x10c773=>{_0x10c773['updateMarker'](_0x49cbbc,{'range':_0xa8d9f2});});}['_addThreadToSuggestion'](_0x4ea818){const _0x30c31f=_0x4ea818['id'],_0x20cc59=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x30c31f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x20cc59,'threadId':_0x30c31f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1fafc4=this['_commentsRepository']['getCommentThread'](_0x30c31f);_0x1fafc4['unbind']('isRemovable'),_0x1fafc4['isRemovable']=!0x1,_0x4ea818['commentThread']=_0x1fafc4;}['_checkSuggestionCorrectness'](_0x23fcb5,_0x153c88,_0x3a4249,_0x1dc929){if(_0x23fcb5['type']!=_0x153c88||_0x23fcb5['subType']!=_0x3a4249||_0x23fcb5['creator']['id']!=_0x1dc929)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x516a4a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5eec12,_0x1ad0d7){const _0x54e0ff=_0x5eec12['getFirstRange']();if(_0x1ad0d7['isEqual'](_0x54e0ff))_0x5eec12['removeMarkers']();else{if(_0x54e0ff['containsRange'](_0x1ad0d7)){const _0x5b3a52=this['_model']['createPositionAt'](_0x1ad0d7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5eec12,this['_model']['createRange'](_0x54e0ff['start'],_0x5b3a52));const _0x25eac6=_0x1c2d37(),_0x3a814c=_0x5eec12['creator']['id'],_0x2afb0a=_0x5eec12['type']+':'+_0x5eec12['subType'];this['_setSuggestionData']({'id':_0x25eac6,'type':_0x2afb0a,'createdAt':new Date(),'authorId':_0x3a814c,'data':_0x5eec12['data'],'attributes':_0x5eec12['attributes']});const _0x1b83ff=this['_model']['createPositionAt'](_0x1ad0d7['end']['parent'],'after'),_0x4d8852=this['_model']['createRange'](_0x1b83ff,_0x54e0ff['end']);this['_addSuggestionMarker'](_0x2afb0a,_0x25eac6,_0x3a814c,_0x4d8852);}else{if(_0x54e0ff['containsPosition'](_0x1ad0d7['start'])){const _0x38004b=this['_model']['createPositionAt'](_0x1ad0d7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5eec12,this['_model']['createRange'](_0x54e0ff['start'],_0x38004b));}else{const _0x221c52=this['_model']['createPositionAt'](_0x1ad0d7['end']['parent'],'after');this['_setSuggestionRange'](_0x5eec12,this['_model']['createRange'](_0x221c52,_0x54e0ff['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x172513){for(const {suggestion:_0x3d6032,meta:_0x539985}of this['_findSuggestions'](_0x172513,'insertion')){if(!_0x539985['isOwn'])continue;const _0x3da73f=_0x3d6032['getRanges']();for(const _0x15cd23 of _0x3da73f)if(!_0x172513['getDifference'](_0x15cd23)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2171f8){return this['editor']['plugins']['get']('Users')['getUser'](_0x2171f8);}['_getExternalAuthor'](_0x54583d){const _0x2807a6=this['editor']['plugins']['get']('Users'),_0x193889=_0x8acf7('external:'+_0x54583d),_0x5a5d9f=_0x2807a6['getUser'](_0x193889);return _0x5a5d9f||_0x2807a6['addUser']({'id':_0x193889,'name':_0x54583d});}['_createSuggestion'](_0x465988,_0xee503e,_0x32d254,_0x113c6a,_0x4cb009,_0x4fd360){const _0x1090bd=this['_getAuthorFromId'](_0x113c6a);if(!_0x1090bd)throw new _0x516a4a('track-changes-user-not-found',this,{'authorId':_0x113c6a,'suggestionId':_0x32d254});const _0x4ad201=this['_suggestionFactory']['buildSuggestion'](_0x465988,_0xee503e,_0x32d254,_0x1090bd,_0x4cb009,_0x4e68d7=>{this['_updateSuggestionData'](_0x32d254,{'attributes':_0x4e68d7});const _0x13149d=this['getSuggestion'](_0x32d254);this['_joinWithAdjacentSuggestions'](new Set([_0x13149d])),this['_refreshSuggestionsChain'](new Set([_0x13149d]));},_0x4fd360);return this['listenTo'](_0x4ad201,'accept',()=>{this['_updateSuggestionData'](_0x32d254,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4ad201,'discard',()=>{this['_updateSuggestionData'](_0x32d254,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x32d254,_0x4ad201),this['_suggestionState']['set'](_0x4ad201,'notReady'),_0x4ad201;}['_splitMarkerName'](_0x19434c){return Gt(_0x19434c);}['_breakSuggestionMarker'](_0x3ae1a2,_0x305a89,_0x1caf79){const _0x5e3892=_0x3ae1a2['getFirstRange'](),_0x2ca22c=_0x5e3892['start'],_0x3ffc5a=_0x5e3892['end'];this['_setSuggestionRange'](_0x3ae1a2,this['_model']['createRange'](_0x2ca22c,_0x305a89));const _0x2d60c0=_0x1c2d37(),_0x8f7506=_0x3ae1a2['creator']['id'],_0x66d530=_0x3ae1a2['type']+(_0x3ae1a2['subType']?':'+_0x3ae1a2['subType']:'');this['_setSuggestionData']({'id':_0x2d60c0,'type':_0x66d530,'createdAt':new Date(),'authorId':_0x8f7506,'originalSuggestionId':_0x3ae1a2['_originalSuggestionId']||_0x3ae1a2['id'],'attributes':_0x3ae1a2['attributes'],'data':_0x3ae1a2['data']});const _0x5d4d46=this['_getAttributeKey'](_0x3ae1a2);('formatBlock'==_0x3ae1a2['type']||_0x5d4d46&&this['_isBlockAttribute'](_0x5d4d46))&&(_0x1caf79=this['_model']['createPositionBefore'](_0x1caf79['parent'])),this['_addSuggestionMarker'](_0x66d530,_0x2d60c0,_0x8f7506,this['_model']['createRange'](_0x1caf79,_0x3ffc5a));}['_findSuggestions'](_0x596e6c,_0x1b772d=null){const _0x54e6a7=[],_0x1be972=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x596e6c)||(_0x596e6c=[_0x596e6c]);for(const _0x540a91 of this['getSuggestions']()){if(!_0x540a91['isInContent'])continue;if(_0x1b772d&&_0x540a91['type']!=_0x1b772d)continue;let _0x4130b4=!0x1;for(const _0x7650eb of _0x540a91['getRanges']()){for(const _0x47433f of _0x596e6c){const _0x4eca16=_0x47433f['start']['isEqual'](_0x7650eb['end'])||_0x47433f['end']['isEqual'](_0x7650eb['start']);if(_0x4eca16||_0x47433f['getIntersection'](_0x7650eb)){const _0x4f8177=_0x47433f['containsRange'](_0x7650eb)&&zt(this['_model']['schema'],_0x7650eb['start'],_0x47433f),_0x57e3c2=_0x7650eb['containsRange'](_0x47433f)&&zt(this['_model']['schema'],_0x47433f['start'],_0x7650eb);_0x54e6a7['push']({'suggestion':_0x540a91,'meta':{'isOwn':_0x1be972==_0x540a91['author'],'isNextTo':_0x4eca16,'isInsideObject':_0x4f8177,'containsRangeInObject':_0x57e3c2}}),_0x4130b4=!0x0;break;}}if(_0x4130b4)break;}}return _0x54e6a7;}['_addSuggestionMarker'](_0x3bc556,_0x289e4f,_0x1db0eb,_0x23250e,_0x19f4a5){this['_model']['change'](_0x465b50=>{let _0x399cc6='suggestion:'+_0x3bc556+':'+_0x289e4f+':'+_0x1db0eb;_0x19f4a5&&(_0x399cc6=_0x399cc6+':'+_0x19f4a5),_0x465b50['addMarker'](_0x399cc6,{'range':_0x23250e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x35623d){const _0x456857=_0x35623d['previous'],_0x39c7bf=_0x35623d['next'];_0x35623d['previous']=null,_0x35623d['next']=null,null!=_0x456857&&_0x456857['next']==_0x35623d&&(_0x456857['next']=_0x39c7bf),null!=_0x39c7bf&&_0x39c7bf['previous']==_0x35623d&&(_0x39c7bf['previous']=_0x456857),'ready'==this['_suggestionState']['get'](_0x35623d)&&(this['_suggestionState']['set'](_0x35623d,'removed'),this['fire']('suggestionUnloaded',_0x35623d,_0x456857,_0x39c7bf));}['_setSuggestionData'](_0x1352ec){const _0x1490ca=_0x1352ec['id'],_0x29e944=this['addSuggestionData'](_0x1352ec);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x47cc83=this['editor']['plugins']['get']('PendingActions'),_0x21d383=_0x29e944['hasComments'],_0x7289e6=_0x29e944['subType']?_0x29e944['type']+':'+_0x29e944['subType']:_0x29e944['type'],_0x2192e9=this['editor']['locale'],_0x5102cf=_0x47cc83['add'](o(_0x2192e9,'PENDING_ACTION_SUGGESTION')),_0x30b834={'id':_0x1490ca,'type':_0x7289e6,'hasComments':_0x21d383,'data':_0x1352ec['data']||null,'originalSuggestionId':_0x1352ec['originalSuggestionId']||null,'attributes':_0x29e944['attributes']};this['_adapter']['addSuggestion'](_0x30b834)['then'](_0x47153f=>{_0x29e944['_saved']=!0x0,_0x47cc83['remove'](_0x5102cf),_0x47153f&&_0x47153f['createdAt']&&(this['_suggestions']['get'](_0x1490ca)['createdAt']=_0x47153f['createdAt']);})['catch'](_0x12450c=>{throw _0x2d6b3c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x29e944['discard']();}),_0x29e944['stopListening'](),this['_suggestions']['delete'](_0x29e944['id']),this['_suggestionState']['delete'](_0x29e944),_0x12450c;});}return _0x29e944;}['_isBlockAttribute'](_0x3d2d67){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x3d2d67);}['_isInlineAttribute'](_0x420a7f){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x420a7f);}['_updateSuggestionData'](_0x54081a,_0x412150){const _0x80c227=this['editor']['plugins']['get']('PendingActions'),_0x501ac1=this['getSuggestion'](_0x54081a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x501ac1['_saved']){const _0x51c01f=_0x80c227['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x54081a,_0x412150)['then'](()=>{_0x80c227['remove'](_0x51c01f);});}else _0x501ac1['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x54081a,_0x412150);});}}['_getSuggestionData'](_0x2962fd){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x516a4a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2962fd);}['_handleNewSuggestionMarker'](_0x29e314){const {id:_0x14e2f3,type:_0x793f1e,subType:_0x32a1ce,authorId:_0x2332ef}=this['_splitMarkerName'](_0x29e314),_0x56e839=this['_suggestions']['get'](_0x14e2f3)||this['_createSuggestion'](_0x793f1e,_0x32a1ce,_0x14e2f3,_0x2332ef,{});switch(this['_checkSuggestionCorrectness'](_0x56e839,_0x793f1e,_0x32a1ce,_0x2332ef),this['_suggestionState']['get'](_0x56e839)){case'notReady':this['_getSuggestionData'](_0x14e2f3)['then'](_0x13eedc=>{let _0xf17fcf=Promise['resolve']();_0x13eedc['hasComments']&&(_0xf17fcf=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x14e2f3})),_0xf17fcf['then'](()=>{this['addSuggestionData'](_0x13eedc)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x56e839,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x14e2f3,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x56e839,'ready'),this['fire']('suggestionLoaded',_0x56e839);break;case'ready':this['fire']('suggestionChanged',_0x56e839);}return _0x56e839['addMarkerName'](_0x29e314),_0x56e839;}['_refreshSuggestionsChain'](_0x21ae62){const _0x103098=Array['from'](_0x21ae62),_0x41c050=_0x103098['filter'](_0x561cdf=>'attribute'==_0x561cdf['type']);this['_refreshAttributeSuggestionsChain'](_0x41c050);const _0x3f5c41=_0x103098['filter'](_0x260542=>!_0x260542['isMultiRange']&&'attribute'!=_0x260542['type']),_0x1e9ce8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe0b1e1=>!_0xe0b1e1['isMultiRange']&&'attribute'!=_0xe0b1e1['type']),_0x235cda=_0x1e9ce8['filter'](_0x25fc46=>!_0x21ae62['has'](_0x25fc46)),_0x42a315=new Map(_0x1e9ce8['map'](_0x21dfb8=>[_0x21dfb8,this['_suggestionFactory']['getSuggestionCallback'](_0x21dfb8['type'],_0x21dfb8['subType'],'chain')])),_0x2b6491=new Map(_0x1e9ce8['map'](_0x540d86=>[_0x540d86,_0x540d86['getFirstRange']()])),_0x3f3585=new Set(),_0x5ef88c=new Set();for(let _0x2ed150=0x0;_0x2ed150<_0x3f5c41['length'];_0x2ed150++)_0x3e0916(_0x3f5c41[_0x2ed150],_0x3f5c41,_0x2ed150+0x1);for(let _0x9551cc=0x0;_0x9551cc<_0x3f5c41['length'];_0x9551cc++)_0x3e0916(_0x3f5c41[_0x9551cc],_0x235cda,0x0);const _0x2d64f9=new Set();for(let _0x4e6ea6=0x0;_0x4e6ea6<_0x3f5c41['length'];_0x4e6ea6++){const _0x476dd0=_0x3f5c41[_0x4e6ea6];!_0x5ef88c['has'](_0x476dd0)&&_0x476dd0['previous']&&(_0x2d64f9['add'](_0x476dd0['previous']),_0x476dd0['previous']['next']===_0x476dd0&&(_0x476dd0['previous']['next']=null),_0x476dd0['previous']=null),!_0x3f3585['has'](_0x476dd0)&&_0x476dd0['next']&&(_0x2d64f9['add'](_0x476dd0['next']),_0x476dd0['next']['previous']===_0x476dd0&&(_0x476dd0['next']['previous']=null),_0x476dd0['next']=null);}function _0x3e0916(_0x5adf09,_0x5f2922,_0x478eb5){for(let _0x147891=_0x478eb5;_0x147891<_0x5f2922['length'];_0x147891++){const _0x2ef4ef=_0x5e509e(_0x5adf09,_0x5f2922[_0x147891]);_0x2ef4ef&&(_0x2ef4ef[0x0]['next']=_0x2ef4ef[0x1],_0x2ef4ef[0x1]['previous']=_0x2ef4ef[0x0],_0x3f3585['add'](_0x2ef4ef[0x0]),_0x5ef88c['add'](_0x2ef4ef[0x1]));}}function _0x5e509e(_0xd434f3,_0x21ac88){if(_0xd434f3['author']['id']!==_0x21ac88['author']['id'])return null;const _0x31fdb3=_0x42a315['get'](_0xd434f3)(_0xd434f3,_0x21ac88,_0x2b6491['get'](_0xd434f3),_0x2b6491['get'](_0x21ac88));if(!_0x31fdb3)return null;return _0x42a315['get'](_0x21ac88)(_0xd434f3,_0x21ac88,_0x2b6491['get'](_0xd434f3),_0x2b6491['get'](_0x21ac88))?_0x31fdb3[0x1]['commentThread']&&_0x31fdb3[0x1]['commentThread']['length']?null:_0x31fdb3:null;}_0x2d64f9['size']&&this['_refreshSuggestionsChain'](_0x2d64f9);}['_refreshAttributeSuggestionsChain'](_0x31d8d1){if(0x0==_0x31d8d1['length'])return;const _0x398229=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ec425=>'attribute'==_0x3ec425['type']&&_0x3ec425['_isDataLoaded']),_0x586185=[],_0x184fd2=new Map();for(const _0x5c88d2 of _0x398229){const _0x550d0a=_0x8acf7(_0x5c88d2['attributes']);_0x184fd2['has'](_0x550d0a)||(_0x184fd2['set'](_0x550d0a,_0x586185['length']),_0x586185['push']([]));const _0x3c3563=_0x184fd2['get'](_0x550d0a);_0x586185[_0x3c3563]['push'](_0x5c88d2);}!(function(){_0x586185['sort']((_0xd28022,_0x2fa11b)=>{const _0x27ad5f=_0xd28022[0x0]['createdAt'],_0x1de6fd=_0x2fa11b[0x0]['createdAt'];return _0x27ad5f==_0x1de6fd?_0xd28022[0x0]['attributes']['groupId']<_0x2fa11b[0x0]['attributes']['groupId']?-0x1:0x1:_0x27ad5f<_0x1de6fd?-0x1:0x1;});for(const _0x2c7207 of _0x586185)_0x2c7207['sort']((_0x5e11a4,_0x570c37)=>_0x5e11a4['id']<_0x570c37['id']?-0x1:0x1);}());for(let _0x57e719=0x0;_0x57e719<_0x586185['length'];_0x57e719++){if(0x0==_0x586185[_0x57e719]['length'])continue;const _0x3fe0f5=[];for(let _0xd3e5f0=_0x57e719+0x1;_0xd3e5f0<_0x586185['length'];_0xd3e5f0++)0x0!=_0x586185[_0xd3e5f0]['length']&&_0x8244f4(_0x586185[_0x57e719],_0x586185[_0xd3e5f0])&&_0x3fe0f5['push'](_0xd3e5f0);for(const _0x1eee57 of _0x3fe0f5)_0x586185[_0x57e719]=_0x586185[_0x57e719]['concat'](_0x586185[_0x1eee57]),_0x586185[_0x1eee57]=[];}for(const _0x1b60c5 of _0x586185)for(let _0x53cf3a=0x0;_0x53cf3a<_0x1b60c5['length'];_0x53cf3a++){const _0x3a243a=_0x1b60c5[_0x53cf3a+0x1]||null;_0x1b60c5[_0x53cf3a]['next']!==_0x3a243a&&(_0x1b60c5[_0x53cf3a]['next']=_0x3a243a);}for(const _0x36e122 of _0x586185)for(let _0x2b4a50=0x0;_0x2b4a50<_0x36e122['length'];_0x2b4a50++){const _0x47a4c0=_0x36e122[_0x2b4a50-0x1]||null;_0x36e122[_0x2b4a50]['previous']!==_0x47a4c0&&(_0x36e122[_0x2b4a50]['previous']=_0x47a4c0);}function _0x8244f4(_0x59abe9,_0x29fecc){if(_0x59abe9[0x0]['attributes']['groupId']!==_0x29fecc[0x0]['attributes']['groupId']&&_0x59abe9[0x0]['author']!==_0x29fecc[0x0]['author'])return!0x1;if(!function(_0x4aaa56,_0x37d357){if(!_0x4aaa56['hasComments']&&!_0x37d357['hasComments'])return!0x0;if(_0x4aaa56['hasComments']&&_0x37d357['hasComments'])return!0x1;if(_0x4aaa56['hasComments']&&_0x37d357['createdAt']<_0x4aaa56['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x37d357['hasComments']&&_0x4aaa56['createdAt']<_0x37d357['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x59abe9[0x0],_0x29fecc[0x0]))return!0x1;const _0x5bbdb4=Pt(_0x59abe9[0x0]['attributes'],['groupId','trackingSessionId']),_0x1abca3=Pt(_0x29fecc[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x392435(_0x5bbdb4,_0x1abca3))return!0x1;if(_0x59abe9[0x0]['attributes']['groupId']==_0x29fecc[0x0]['attributes']['groupId'])return!0x0;if(_0x59abe9[0x0]['attributes']['trackingSessionId']!==_0x29fecc[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x59abe9['every'](_0x3b19e1=>_0x29fecc['some'](_0x417dce=>_0x3b19e1['getFirstRange']()['isEqual'](_0x417dce['getFirstRange']())))&&_0x29fecc['every'](_0x451f07=>_0x59abe9['some'](_0x4fd510=>_0x451f07['getFirstRange']()['isEqual'](_0x4fd510['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4cb684){const _0x558629=Array['from'](_0x4cb684),_0x1b7086=this['getSuggestions']({'skipNotAttached':!0x0}),_0x548af5=_0x1b7086['filter'](_0x2396fb=>!_0x4cb684['has'](_0x2396fb)),_0x6d7898=new Map(_0x558629['map'](_0x526084=>[_0x526084,this['_suggestionFactory']['getSuggestionCallback'](_0x526084['type'],_0x526084['subType'],'join')])),_0x3d42bb=new Map(_0x1b7086['map'](_0xfcbf81=>[_0xfcbf81,_0xfcbf81['getRanges']()]));for(let _0x21d107=0x0;_0x21d107<_0x558629['length'];_0x21d107++){if(_0x5471e0(this,_0x558629[_0x21d107],_0x558629,_0x21d107+0x1))return!0x0;}for(let _0x482b32=0x0;_0x482b32<_0x558629['length'];_0x482b32++){if(_0x5471e0(this,_0x558629[_0x482b32],_0x548af5,0x0))return!0x0;}return!0x1;function _0x5471e0(_0x3615d3,_0x5519aa,_0x3c74b8,_0x5b53e5){for(let _0x41428d=_0x5b53e5;_0x41428d<_0x3c74b8['length'];_0x41428d++){const _0x41da70=_0x3c74b8[_0x41428d];if(_0x41da70['type']!==_0x5519aa['type']||_0x41da70['author']['id']!==_0x5519aa['author']['id']||_0x41da70['subType']!==_0x5519aa['subType'])continue;if(!en(_0x5519aa,_0x41da70))continue;if('attribute'==_0x5519aa['type']&&_0x5519aa['data']['oldValue']!=_0x41da70['data']['oldValue'])continue;if('attribute'==_0x5519aa['type']&&_0x3615d3['_isBlockAttribute'](_0x5519aa['data']['key']))continue;if('formatBlock'==_0x5519aa['type']){const _0x4d7568=_0x3615d3['editor']['model'],_0x173334=_0x5519aa['getContainedElement']();if(_0x173334&&(_0x4d7568['schema']['isObject'](_0x173334)||_0x4d7568['schema']['isLimit'](_0x173334)))continue;}const _0x12b4a0=_0x6d7898['get'](_0x5519aa),_0x5d0cf7=_0x3d42bb['get'](_0x5519aa),_0x4562b5=_0x3d42bb['get'](_0x41da70),_0x3e6c79=_0x5519aa['commentThread']&&_0x5519aa['commentThread']['length'],_0x4da086=_0x41da70['commentThread']&&_0x41da70['commentThread']['length'];if(!_0x3e6c79&&_0x12b4a0(_0x4562b5,_0x5d0cf7))return _0x3615d3['_joinSuggestions'](_0x41da70,_0x5519aa),_0x3d42bb['delete'](_0x5519aa),!0x0;if(!_0x4da086&&_0x12b4a0(_0x5d0cf7,_0x4562b5))return _0x3615d3['_joinSuggestions'](_0x5519aa,_0x41da70),_0x3d42bb['delete'](_0x41da70),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3639aa,_0x3a5eae){if(_0x3639aa['isMultiRange']){for(const _0x2c7b0f of _0x3a5eae['getRanges']())_0x3639aa['addRange'](_0x2c7b0f);}else{const _0x39c97b=_0x3a5eae['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3639aa,this['_model']['createRange'](_0x3639aa['getFirstRange']()['start'],_0x39c97b));}_0x3a5eae['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4a2849,_0x57ed3e,_0x39fb61){const _0x240ae9=_0x4a2849['startsWith']('format')||_0x4a2849['startsWith']('attribute')?'FORMATTING':_0x4a2849['toUpperCase']();return o(this['editor']['locale'],_0x57ed3e+'_'+_0x240ae9+'_SUGGESTION_ANNOUNCEMENT',_0x39fb61);}['_initAriaMarkerChangeAnnouncements'](){const _0x4c3544=this['editor'];if(!_0x4c3544['ui'])return;const {ariaLiveAnnouncer:_0x52ea5f}=_0x4c3544['ui'];_0x1d628a(this['_model'],({left:_0x1ab8c6,entered:_0x37b610})=>{for(const _0x2dda06 of _0x1ab8c6){const {group:_0xbabd3,type:_0xfff37c}=this['_splitMarkerName'](_0x2dda06['name']);if('suggestion'===_0xbabd3){_0x52ea5f['announce'](this['_getMarkerAnnouncementText'](_0xfff37c,'LEAVE'));break;}}for(const _0x2839f4 of _0x37b610){const {group:_0x283857,type:_0x2b729d}=this['_splitMarkerName'](_0x2839f4['name']);if('suggestion'===_0x283857){_0x52ea5f['announce'](this['_getMarkerAnnouncementText'](_0x2b729d,'ENTER',_0xcb5a82(_0x389cfb)));break;}}});}['_processAttributeChanges'](_0x1894b5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x467f4a=this['editor'],_0x46744e=_0x467f4a['model']['document']['differ']['getChanges']();if(0x0==_0x46744e['length'])return!0x1;const _0x3f94c6=[],_0x4e45bf=_0x46744e['filter'](_0x2caf99=>'attribute'==_0x2caf99['type']),_0x284092=_0x46744e['filter'](_0x319c35=>'insert'==_0x319c35['type']&&'$text'!=_0x319c35['name']),_0x2098fb=_0x46744e['filter'](_0x20909b=>'remove'==_0x20909b['type']&&'$text'!=_0x20909b['name']);for(const _0x209483 of _0x4e45bf)_0x3f94c6['push']({'key':_0x209483['attributeKey'],'newValue':_0x209483['attributeNewValue'],'oldValue':_0x209483['attributeOldValue'],'range':Zt(_0x209483['range'],_0x467f4a['model'])});for(const _0x3b3189 of _0x284092){const _0xb733a4=_0x2098fb['find'](_0x2c781b=>_0x2c781b['position']['isEqual'](_0x3b3189['position']));_0xb733a4&&_0x3f94c6['push']({'key':m,'newValue':_0x3b3189['name'],'oldValue':_0xb733a4['name'],'range':_0x467f4a['model']['createRangeOn'](_0x3b3189['position']['nodeAfter'])});}return 0x0!=_0x3f94c6['length']&&this['_reduceExistingSuggestions'](_0x1894b5,_0x3f94c6);}['_processAttributeSuggestions'](_0x21fe68){let _0x246ab1=!0x1;const _0x353014=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa9a5fc=>_0xa9a5fc['data']['newRange']&&_0xa9a5fc['name']['startsWith']('suggestion:attribute:'));for(const _0xc67826 of _0x353014){const {subType:_0x5d4751,id:_0x175a20}=this['_splitMarkerName'](_0xc67826['name']),_0x3b8c8b=_0x5d4751['split']('|')[0x0];for(const _0xcbee6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xcbee6['id']!=_0x175a20&&'attribute'==_0xcbee6['type']&&_0xcbee6['data']&&_0xcbee6['data']['key']==_0x3b8c8b&&_0xcbee6['getFirstRange']()['isIntersecting'](_0xc67826['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xcbee6,_0xc67826['data']['newRange'],_0x21fe68),_0x246ab1=!0x0);}return _0x246ab1;}['recordAttributeChanges'](_0x31031b){this['_recordAttributeSuggestions']=!0x0,_0x31031b();}['_isRegisteredAttribute'](_0x4183e3){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x4183e3);}['_reduceExistingSuggestions'](_0xc90352,_0x35350c){if(0x0==_0x35350c['length'])return!0x1;let _0x452c72=!0x1;for(const _0x377ca5 of _0x35350c){const _0x4cdb99=this['_findSuggestions'](_0x377ca5['range'],'attribute')['filter'](_0x2c099d=>!_0x2c099d['meta']['isNextTo'])['map'](_0x3885bb=>_0x3885bb['suggestion']),_0x55efb7=_0x8acf7({'newValue':_0x377ca5['newValue']});_0x4cdb99['filter'](_0x378f63=>{const [_0x1f10c5,_0x19903f]=_0x378f63['subType']['split']('|');return _0x1f10c5==_0x377ca5['key']&&_0x19903f!=_0x55efb7;})['forEach'](_0x2f9ba0=>{this['_reduceSuggestionAttributeRange'](_0x2f9ba0,_0x377ca5['range'],_0xc90352),_0x452c72=!0x0;});}return _0x452c72;}['_reduceSuggestionAttributeRange'](_0x2a346c,_0x2ad1a5,_0x71797c){const _0x4fda8b=_0x2a346c['getFirstRange']()['getDifference'](_0x2ad1a5);0x0!==_0x4fda8b['length']?0x1!==_0x4fda8b['length']?this['_breakSuggestionMarker'](_0x2a346c,_0x2ad1a5['start'],_0x2ad1a5['end']):this['_setSuggestionRange'](_0x2a346c,_0x4fda8b[0x0]):_0x71797c['removeMarker'](_0x2a346c['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4b28be){this['_editor']=_0x4b28be,this['_model']=_0x4b28be['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x377966,_0x48527d,_0x58a0bf,_0x4a174c,_0x5336a4,_0x10ab77,_0x176009){return new x(this['_model'],{'type':_0x377966,'subType':_0x48527d,'id':_0x58a0bf,'originalSuggestionId':_0x176009,'author':_0x4a174c,'creator':_0x4a174c,'attributes':_0x5336a4,'onAttributesChange':_0x10ab77,'onAccept':(..._0x25f2f0)=>this['getSuggestionCallback'](_0x377966,_0x48527d,'accept')(..._0x25f2f0),'onDiscard':(..._0x251482)=>this['getSuggestionCallback'](_0x377966,_0x48527d,'discard')(..._0x251482)});}['registerCustomCallback'](_0x2ccd0c,_0x5b95d4,_0x178bce,_0x46d70c){const _0x3dd5f5=_0x2ccd0c+':'+_0x5b95d4+':'+_0x178bce;this['_customCallbacks']['set'](_0x3dd5f5,_0x46d70c);}['getSuggestionCallback'](_0x120428,_0x35c1ad,_0x2c382b){const _0x4fbbb3=_0x120428+':'+_0x35c1ad+':'+_0x2c382b;return this['_customCallbacks']['get'](_0x4fbbb3)||this['_defaultCallbacks']['get'](_0x120428+':'+_0x2c382b);}['_registerDefaultCallbacks'](){const _0x43acb9=()=>!0x1,_0x1f6764=_0x164b92=>{_0x164b92['sort']((_0x3989c4,_0xd1c185)=>_0x3989c4['start']['isBefore'](_0xd1c185['start'])?0x1:-0x1),this['_model']['change'](_0x494e12=>{for(const _0x43f6d2 of _0x164b92){let _0x395820;_0x395820=_0x43f6d2['end']['isAtEnd']&&_0x43f6d2['end']['parent']==_0x43f6d2['start']['nodeAfter']?_0x494e12['createSelection'](_0x43f6d2['start']['nodeAfter'],'on'):_0x494e12['createSelection'](_0x43f6d2),this['_model']['deleteContent'](_0x395820,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x154433=(_0x3f9a43,_0x2662a3)=>{_0x2662a3&&this['_model']['change'](_0x3dac9c=>{const {commandName:_0x552d7f,commandParams:_0x2035fe=[]}=_0x2662a3,_0x2187fe=_0x3f9a43['map'](_0x552275=>(Kt(_0x552275)&&(_0x552275=this['_model']['createRange'](_0x552275['end'])),_0x552275))['filter'](_0x6464f9=>'$graveyard'!==_0x6464f9['root']['rootName']);if(_0x2187fe['length']<0x1)return;const _0xddd0d3=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5a85ab=>_0x3935f7['fromRange'](_0x5a85ab));_0x3dac9c['setSelection'](_0x2187fe);for(const _0x1bd46c of this['_editor']['commands']['commands']())_0x1bd46c['refresh']();_0x2035fe['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x552d7f,..._0x2035fe);const _0xd49725=_0xddd0d3['filter'](_0x2ff95a=>'$graveyard'!=_0x2ff95a['root']['rootName']);_0xd49725['length']>0x0&&_0x3dac9c['setSelection'](_0xd49725);for(const _0x26d3b7 of _0xddd0d3)_0x26d3b7['detach']();});},_0x5767ec=(_0x4762aa,_0x4e65da)=>0x1==_0x4762aa['length']&&0x1==_0x4e65da['length']&&_0x4762aa[0x0]['end']['isEqual'](_0x4e65da[0x0]['start']),_0x59e41b=(_0x21e64e,_0x41e9d6,_0x365ced,_0x227561)=>nn(_0x21e64e,_0x41e9d6,_0x365ced,_0x227561)?[_0x21e64e,_0x41e9d6]:nn(_0x41e9d6,_0x21e64e,_0x227561,_0x365ced)?[_0x41e9d6,_0x21e64e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x43acb9),this['_defaultCallbacks']['set']('insertion:discard',_0x1f6764),this['_defaultCallbacks']['set']('insertion:join',_0x5767ec),this['_defaultCallbacks']['set']('insertion:chain',_0x59e41b),this['_defaultCallbacks']['set']('deletion:accept',_0x1f6764),this['_defaultCallbacks']['set']('deletion:discard',_0x43acb9),this['_defaultCallbacks']['set']('deletion:join',_0x5767ec),this['_defaultCallbacks']['set']('deletion:chain',_0x59e41b),this['_defaultCallbacks']['set']('formatInline:accept',_0x154433),this['_defaultCallbacks']['set']('formatInline:discard',_0x43acb9),this['_defaultCallbacks']['set']('formatInline:join',_0x5767ec),this['_defaultCallbacks']['set']('formatInline:chain',_0x43acb9),this['_defaultCallbacks']['set']('formatBlock:accept',_0x154433),this['_defaultCallbacks']['set']('formatBlock:discard',_0x43acb9),this['_defaultCallbacks']['set']('formatBlock:join',_0x5767ec),this['_defaultCallbacks']['set']('formatBlock:chain',_0x43acb9),this['_defaultCallbacks']['set']('attribute:accept',_0x43acb9),this['_defaultCallbacks']['set']('attribute:discard',(_0x137f11,_0x4ddf68)=>{if(!_0x4ddf68)return;const _0x217517=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x55be85=>{if(_0x4ddf68['key']==m)for(const _0x413650 of _0x137f11){const _0x389586=_0x413650['start']['nodeAfter'],_0x5ac44a=_0x4ddf68['oldValue'];_0x55be85['rename'](_0x389586,_0x5ac44a);}else{if(_0x217517['_isBlockAttribute'](_0x4ddf68['key'])){for(const _0x3643a3 of _0x137f11)void 0x0!==_0x4ddf68['oldValue']?_0x55be85['setAttribute'](_0x4ddf68['key'],_0x4ddf68['oldValue'],_0x3643a3['start']['nodeAfter']):_0x55be85['removeAttribute'](_0x4ddf68['key'],_0x3643a3['start']['nodeAfter']);}else{for(const _0x39eed2 of _0x137f11)_0x4ddf68['oldValue']?_0x55be85['setAttribute'](_0x4ddf68['key'],_0x4ddf68['oldValue'],_0x39eed2):_0x55be85['removeAttribute'](_0x4ddf68['key'],_0x39eed2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5767ec);}}function zt(_0x4acd77,_0x2b906f,_0x550e8b){for(const _0x1e7007 of _0x2b906f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1e7007['root']==_0x1e7007)return!0x1;if(!_0x550e8b['containsItem'](_0x1e7007))return!0x1;if(_0x4acd77['isObject'](_0x1e7007)||_0x4acd77['isLimit'](_0x1e7007))return!0x0;}return!0x1;}function Kt(_0x14242f){return _0x14242f['end']['parent']==_0x14242f['start']['nodeAfter']&&_0x14242f['end']['isAtStart'];}function Wt(_0x1d9a13,_0x20db72,_0x4c7484,_0x259e8c){const _0x22f229=_0x260165=>!_0x260165['item']['is']('$textProxy')&&!_0x259e8c['isObject'](_0x260165['item']),_0x24bdca=_0x1d9a13['start']['getLastMatchingPosition'](_0x22f229),_0x18c545=_0x1d9a13['end']['getLastMatchingPosition'](_0x22f229,{'direction':'backward'});return(!_0x1d9a13['start']['isEqual'](_0x24bdca)||!_0x1d9a13['end']['isEqual'](_0x18c545))&&(_0x24bdca['isBefore'](_0x18c545)?_0x4c7484['updateMarker'](_0x20db72,{'range':_0x4c7484['createRange'](_0x24bdca,_0x18c545)}):_0x4c7484['removeMarker'](_0x20db72),!0x0);}function Ht(_0x146053){return _0x8acf7(_0x146053);}function Qt(_0x1662a0){const _0x5066aa=_0x1662a0['start']['nodeAfter'];return _0x5066aa&&_0x5066aa['is']('element');}function Xt(_0x754277){return Kt(_0x754277)||function(_0x48b5f7){return _0x48b5f7['start']['parent']==_0x48b5f7['end']['nodeBefore']&&_0x48b5f7['start']['isAtEnd'];}(_0x754277);}function Yt(_0x515f80,_0x3195d8){try{const _0x203f63=_0x515f80['getRange']();for(const _0x21876c of _0x3195d8)if(_0x515f80!==_0x21876c&&_0x203f63&&_0x203f63['isIntersecting'](_0x21876c['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x41b09c,_0x48d6a5){return null==_0x41b09c['end']['nodeBefore']&&_0x41b09c['end']['parent']==_0x41b09c['start']['nodeAfter']?tn(_0x41b09c['start']['nodeAfter'],_0x48d6a5):_0x41b09c;}function tn(_0x3a0388,_0x350753){const _0x57bfe9=_0x350753['schema']['isObject'](_0x3a0388)||_0x350753['schema']['isSelectable'](_0x3a0388);return _0x350753['createRange'](_0x350753['createPositionAt'](_0x3a0388,'before'),_0x57bfe9?_0x350753['createPositionAfter'](_0x3a0388):_0x350753['createPositionAt'](_0x3a0388,'end'));}function nn(_0x474d74,_0x475b91,_0x1d2aea,_0xe77053){return!!en(_0x474d74,_0x475b91)&&_0x1d2aea['end']['isEqual'](_0xe77053['start']);}function en(_0x1747e5,_0xec6efe){if(!_0x1747e5['_isDataLoaded']||!_0xec6efe['_isDataLoaded'])return!0x1;const _0xa55460=new Set(Object['keys'](_0x1747e5['attributes'])),_0x2b981d=new Set(Object['keys'](_0xec6efe['attributes']));if(_0xa55460['delete']('groupId'),_0x2b981d['delete']('groupId'),0x0==_0xa55460['size']&&0x0==_0x2b981d['size'])return!0x0;if(_0xa55460['size']!=_0x2b981d['size'])return!0x1;const _0x498cfb={..._0x1747e5['attributes']},_0x4100a1={..._0xec6efe['attributes']};return delete _0x498cfb['groupId'],delete _0x4100a1['groupId'],JSON['stringify'](_0x498cfb)==JSON['stringify'](_0x4100a1);}function sn(_0x43f56d,_0x3c6904){const _0x4e06cf=on(_0x43f56d['attributes']),_0x5618d7=on(_0x3c6904);if(!_0x43f56d['_isDataLoaded'])return!0x1;for(const _0x1dfd9b of Object['keys'](_0x5618d7))if(!_0x392435(_0x4e06cf[_0x1dfd9b],_0x5618d7[_0x1dfd9b]))return!0x1;return!0x0;}function on(_0x374f3a){const _0x75724b=Object['assign']({},_0x374f3a);return delete _0x75724b['skipNestingCheck'],delete _0x75724b['tablePasteChainId'],_0x75724b;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x410f81(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x47f02b,_0x365d6b,_0x58a332,_0xbd5708){super(),this['model']=_0x365d6b,this['view']=_0x58a332,this['commentThreadController']=_0xbd5708,this['_editor']=_0x47f02b,this['_acceptCommand']=_0x47f02b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x47f02b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x402f00,_0x181d2e)=>_0x402f00||_0x181d2e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x52761d=>_0x52761d&&this['_editor']['model']['canEditAt'](_0x365d6b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x533b9d=>_0x533b9d&&this['_editor']['model']['canEditAt'](_0x365d6b['getRanges']())),this['_pendingAction']=null,_0x58a332['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x58a332,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x58a332,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x58a332,'change:isDirty',()=>{_0x58a332['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 _0x3f1e01=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3f1e01);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x5ec9cc{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2cd0d0,_0x38f9ff,_0x38b033,_0x220ad0){super(_0x2cd0d0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x34b8e3(_0x2cd0d0,o(_0x2cd0d0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x38f9ff['authoredAt']),this['bind']('authoredAt')['to'](_0x38f9ff),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',_0x38f9ff,'authoredAt',this,'descriptionParts',(_0x9cd84,_0x597a2e,_0x39615c)=>{const _0x32afb7=_0x39615c['map'](_0x27a083=>ls(_0x27a083['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x9cd84-0x1,_0x38f9ff['author']['name'],_0x597a2e?_0x220ad0['formatDateTime'](_0x597a2e):'',new DOMParser()['parseFromString'](_0x32afb7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1b0677(),this['focusTracker']=new _0x4caf73(),this['keystrokes']=new _0xd59a71(),this['focusCycler']=new _0x780c9a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3c231d=>_0x3c231d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x38f9ff,this['_localUser']=_0x38b033,this['_config']=_0x220ad0,_0x220ad0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5bb99a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x27cdf4}=this['_config'];this['commentsListView']=new _0x27cdf4(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',_0x29e42c=>_0x29e42c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x48073f,_0x507a58)=>_0x48073f||!!_0x507a58);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x49012b}=this['_config'],_0x2cdb2d=new _0x49012b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5caeea=_0x2cdb2d['commentInputView'];return _0x2cdb2d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5caeea,'value',(_0x330f57,_0x122e71,_0x55b2fb)=>!!_0x55b2fb||_0x330f57&&!_0x122e71),_0x5caeea['on']('submit',(_0x15a0c0,_0x56378f)=>{this['fire']('addComment',_0x56378f),_0x5caeea['editor']['setData']('');}),_0x5caeea['on']('cancel',()=>this['focus']()),_0x5caeea['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2cdb2d;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x5e9e9e,_0x30bee7,_0xea17c2,_0x35be5f){super(_0x5e9e9e,_0x30bee7,_0xea17c2,_0x35be5f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x224e30=>_0x224e30&&_0x224e30[0x0]?_0x224e30[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2457a1,_0x3e5f3)=>{let _0x147e2d='';for(const _0x5ba135 of _0x2457a1)_0x147e2d+='<p>'+ls(_0x5ba135['content'],_0x5ba135['color'])+'</p>';return _0x3e5f3?_0x147e2d:_0x5e585f(_0x147e2d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x35be5f['SuggestionView'](_0x5e9e9e,_0x30bee7,{'formatDateTime':_0x35be5f['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 _0x18e8a8=this['bindTemplate'],_0x1e2396=[this['suggestionView']];return this['commentsListView']&&_0x1e2396['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1e2396['push'](this['commentThreadInputView']),_0x1e2396['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x18e8a8['if']('isActive','ck-suggestion-wrapper--active'),_0x18e8a8['to']('type',_0x3cfed3=>'ck-suggestion-'+_0x3cfed3),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':_0x18e8a8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1e2396};}['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 _0x5ec9cc{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x255725,_0x20deb3,_0x4d50e1){super(_0x255725),this['_model']=_0x20deb3,this['_config']=_0x4d50e1,this['set']('description',''),this['bind']('authoredAt')['to'](_0x20deb3),this['acceptButton']=this['_createButton'](o(_0x255725,'Accept\x20suggestion'),_0x288573,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x255725,'Discard\x20suggestion'),_0x3cfc4b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x45090a(_0x255725,_0x20deb3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1b0677([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4caf73(),this['keystrokes']=new _0xd59a71(),this['focusCycler']=new _0x780c9a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4e931d=>_0x4e931d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x284524=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x284524['innerHTML']=this['description'],this['on']('change:description',(_0x18ac82,_0x12e2dd,_0x17db70)=>{_0x284524['innerHTML']=_0x17db70;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x58bb7e=this['bindTemplate'],_0x487061=[{'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':_0x58bb7e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x58bb7e['to']('authoredAt',_0x8bb3d=>this['_config']['formatDateTime'](_0x8bb3d))}]}]},{'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']&&_0x487061['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':_0x487061}]};}['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'](_0x13480f,_0x13dde7,_0x17d91e,_0x5d7254,_0x6a59a0){const _0x57f56b=new _0x2ae781(this['locale']);return _0x57f56b['set']({'label':_0x13480f,'icon':_0x13dde7,'tooltip':!0x0,'tooltipPosition':_0x6a59a0}),_0x57f56b['extendTemplate']({'attributes':{'class':_0x17d91e}}),_0x57f56b['on']('execute',()=>{this['fire'](_0x5d7254,this['_model']['id']);}),_0x57f56b;}['_setupKeyboardNavigation'](){const _0x43f405=this['element'];this['keystrokes']['listenTo'](_0x43f405);for(const _0x4ff1ee of this['focusables'])this['focusTracker']['add'](_0x4ff1ee['element']),this['keystrokes']['listenTo'](_0x4ff1ee['element']);this['keystrokes']['set']('enter',(_0x5eb04f,_0xf249ae)=>{_0x43f405===_0x5eb04f['target']&&(this['focusCycler']['focusFirst'](),_0xf249ae());}),this['keystrokes']['set']('esc',(_0x3c99ad,_0x5f4408)=>{_0x43f405!==_0x3c99ad['target']&&(this['focus'](),_0x5f4408());});}}class u extends _0x54af3c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x41a304,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x991726){super(_0x991726),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x325acd=this['editor']['config'];_0x325acd['define']('trackChanges.SuggestionThreadView',fe),_0x325acd['define']('trackChanges.SuggestionView',we),_0x325acd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x325acd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1d7e8c,_0x704b91){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x339eb9,_0x50ebcb]of this['_handleControllerBuffer']){const _0x461c90=this['_suggestionToController']['has'](_0x339eb9);_0x461c90||_0x50ebcb?_0x461c90&&_0x50ebcb&&this['_destroyController'](_0x339eb9):this['_initializeController'](_0x339eb9);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1d7e8c,_0x704b91);}['init'](){const _0x11502a=this['editor'],_0x22b463=_0x11502a['plugins']['get']('TrackChangesEditing'),_0x1a7cc7=_0x11502a['plugins']['get']('Annotations'),_0x119c39=_0x11502a['plugins']['get']('EditorAnnotations'),_0x48f6b8=_0x11502a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x119c39['addSourceCollector'](()=>{const _0x2116d4=[];for(const [_0x453d39,_0x5be400]of Array['from'](this['_suggestionToController'])){const _0xd7fc14=_0x453d39['getAllAdjacentSuggestions'](),_0x16e179=[];for(const _0x27fd0a of _0xd7fc14){if(!_0x27fd0a['isInContent'])continue;if(_0x27fd0a['isMultiRange']){_0x16e179['push'](..._0x27fd0a['getRanges']());continue;}const _0x13c490=_0x27fd0a['getFirstRange']();if(_0x16e179['length']>0x0){const _0x36a0cb=_0x16e179[0x0]['getJoined'](_0x13c490);if(_0x36a0cb){_0x16e179[0x0]=_0x36a0cb;continue;}}_0x16e179['push'](_0x13c490);}_0x2116d4['push']([_0x5be400['view'],_0x16e179]);}return _0x2116d4;}),this['listenTo'](_0x22b463,'suggestionLoaded',(_0x49e5a0,_0x9a504e)=>{this['listenTo'](_0x9a504e,'change:previous',(_0x24bdec,_0x3ae391,_0x28d013,_0x1720ab)=>{_0x9a504e['isInContent']&&(null==_0x28d013?(this['_updateController'](_0x1720ab['head']),this['_handleSuggestionControllerDelayed'](_0x9a504e,!0x1)):(this['_updateController'](_0x28d013['head']),null==_0x1720ab&&this['_handleSuggestionControllerDelayed'](_0x9a504e,!0x0)));}),null!==_0x9a504e['previous']?this['_updateController'](_0x9a504e['head']):this['_handleSuggestionControllerDelayed'](_0x9a504e,!0x1);}),this['listenTo'](_0x22b463,'suggestionUnloaded',(_0x3c4b79,_0x2b343a,_0x2323be)=>{this['stopListening'](_0x2b343a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2b343a),this['_suggestionToController']['has'](_0x2b343a)&&this['_destroyController'](_0x2b343a),_0x2323be&&this['_updateController'](_0x2323be['head']);}),this['listenTo'](_0x22b463,'suggestionChanged',(_0x3c1f8f,_0x2ae93c)=>{this['_updateController'](_0x2ae93c);}),this['listenTo'](_0x1a7cc7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x48f6b8,'addComment',(_0x563049,{threadId:_0x14a0c3,isFromAdapter:_0x360549})=>{if(_0x360549||!_0x22b463['hasSuggestion'](_0x14a0c3))return;const _0x2fdd43=_0x22b463['getSuggestion'](_0x14a0c3);this['_suggestionToController']['get'](_0x2fdd43)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c6541=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53676a;for(const _0x2073f8 in _0x3c6541){const _0x3b43fa=_0x2073f8,_0x119564=_0x3c6541[_0x3b43fa];if('trackChangesLicenseKeyValid'==_0x119564||'trackChangesLicenseKeyInvalid'==_0x119564||'trackChangesLicenseKeyExpired'==_0x119564||'trackChangesLicenseKeyDomainLimit'==_0x119564||'trackChangesLicenseKeyNotAllowed'==_0x119564||'trackChangesLicenseKeyEvaluationLimit'==_0x119564||'trackChangesLicenseKeyTrialLimit'==_0x119564||'trackChangesLicenseKeyUsageLimit'==_0x119564){delete _0x3c6541[_0x3b43fa],_0x53676a=_0x119564,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x53676a&&_0x3c6541['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x53676a&&_0x3c6541['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x53676a&&_0x3c6541['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x53676a&&_0x3c6541['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x53676a&&_0x3c6541['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x53676a&&_0x3c6541['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x53676a&&_0x3c6541['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x570647){const _0x421a73=this['_suggestionToController']['get'](_0x570647);if(!_0x421a73)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x421a73['view'])||null;}['getSuggestionForAnnotation'](_0x435168){const _0x392fbd=this['_viewToController']['get'](_0x435168['innerView']);return _0x392fbd?_0x392fbd['model']:null;}['_refreshActiveMarkers'](){const _0x349db0=this['editor']['plugins']['get']('Annotations'),_0x5f19b1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1474f5=Array['from'](_0x349db0['activeAnnotations'],_0x41bb94=>_0x41bb94['innerView'])['filter'](_0x1ceeec=>this['_viewToController']['has'](_0x1ceeec)),_0x853ce5=[];for(const _0xbe2b87 of _0x1474f5){const _0x1ae50d=this['_viewToController']['get'](_0xbe2b87)['model']['getAllAdjacentSuggestions']();_0x853ce5['push'](..._0x1ae50d['reduce']((_0x41b8e2,_0x33403d)=>[..._0x41b8e2,..._0x33403d['getMarkerNames']()],[]));}_0x5f19b1['activeMarkers']=_0x853ce5;}['_addUIComponentsToFactory'](){const _0x50e358=this['editor'],_0x3148c0=_0x50e358['locale'],_0x13a994=o(_0x3148c0,'Track\x20changes'),_0x40adcd=new _0x3f49e9([{'type':'switchbutton','model':new _0x41d919({'withText':!0x0,'isToggleable':!0x0,'label':_0x13a994,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x41d919({'withText':!0x0,'label':o(_0x3148c0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41d919({'withText':!0x0,'label':o(_0x3148c0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41d919({'withText':!0x0,'label':o(_0x3148c0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41d919({'withText':!0x0,'label':o(_0x3148c0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x50e358['plugins']['has']('TrackChangesPreview')&&_0x40adcd['addMany']([{'type':'separator'},{'type':'button','model':new _0x41d919({'withText':!0x0,'label':o(_0x3148c0,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x11b44b of _0x40adcd)if(ke(_0x11b44b)){const _0x554ef2=_0x50e358['commands']['get'](_0x11b44b['model']['commandName']);_0x11b44b['model']['bind']('isOn','isEnabled')['to'](_0x554ef2,'value','isEnabled');}_0x50e358['ui']['componentFactory']['add']('trackChanges',_0x2cef3b=>this['_createToolbarButton'](_0x2cef3b,_0x40adcd,_0x13a994)),_0x50e358['ui']['componentFactory']['add']('menuBar:trackChanges',_0x28ea05=>this['_createMenuBarMenu'](_0x28ea05,_0x40adcd,_0x13a994));}['_createToolbarButton'](_0x45b041,_0x1d1c36,_0x175fd2){const _0x48e270=_0x20339b(_0x45b041,_0x2ea399),_0x10245c=this['editor']['commands']['get']('trackChanges');_0x48e270['buttonView']['set']({'tooltip':_0x175fd2,'label':_0x175fd2,'icon':_0x107492}),_0x48e270['buttonView']['bind']('isOn')['to'](_0x10245c,'value'),_0x48e270['buttonView']['on']('execute',()=>{_0x10245c['execute'](),this['editor']['editing']['view']['focus']();}),_0x53a769(_0x48e270,_0x1d1c36,{'role':'menu'});const _0xc4fc54=[];for(const _0x53914a of _0x1d1c36)ke(_0x53914a)&&_0xc4fc54['push'](this['editor']['commands']['get'](_0x53914a['model']['commandName']));const _0x4beb2e=_0x48e270['buttonView'];return _0x4beb2e['actionView']['unbind']('isEnabled'),_0x4beb2e['arrowView']['unbind']('isEnabled'),_0x4beb2e['actionView']['bind']('isEnabled')['to'](_0x10245c,'isEnabled'),_0x4beb2e['arrowView']['bind']('isEnabled')['toMany'](_0xc4fc54,'isEnabled',(..._0x15daf5)=>_0x15daf5['some'](_0x28bfe2=>_0x28bfe2)),_0x48e270['on']('execute',_0xbda2cc=>{this['editor']['execute'](_0xbda2cc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x48e270;}['_createMenuBarMenu'](_0x286c0c,_0x1ed443,_0x12f610){const _0x3bc9b5=new _0x5793a1(_0x286c0c),_0x227ca7=this['editor']['commands']['get']('trackChanges');_0x3bc9b5['buttonView']['set']({'label':_0x12f610,'icon':_0x107492});const _0x394c14=new _0x34d7e0(_0x286c0c);for(const _0x131bdf of _0x1ed443){if('separator'==_0x131bdf['type']){_0x394c14['items']['add'](new _0x5a3059(_0x286c0c));continue;}const _0x50676c=new _0x2c9326(_0x286c0c,_0x3bc9b5),_0x327935=new _0x2b77b4(_0x286c0c),_0x4b770d=_0x131bdf['model'];_0x327935['bind'](...Object['keys'](_0x4b770d))['to'](_0x4b770d),_0x327935['delegate']('execute')['to'](_0x3bc9b5),_0x327935['on']('execute',()=>{this['editor']['execute'](_0x4b770d['commandName']),this['editor']['editing']['view']['focus']();}),_0x50676c['children']['add'](_0x327935),_0x394c14['items']['add'](_0x50676c);}return _0x3bc9b5['bind']('isEnabled')['to'](_0x227ca7,'isEnabled'),_0x3bc9b5['panelView']['children']['add'](_0x394c14),_0x3bc9b5;}['_initializeController'](_0x1c1110){const _0x18d196=this['editor'],_0xab93b7=_0x18d196['config'],_0x2d1a48=_0x18d196['plugins']['get']('Annotations'),_0x464f2e=_0x18d196['plugins']['get']('CommentsRepository'),_0x24cb68=_0x18d196['plugins']['get']('EditorAnnotations'),_0x17a040=_0x18d196['plugins']['get'](_0x41a304)['me'],_0x1490b9=_0xab93b7['get']('trackChanges')['SuggestionThreadView'],_0x10fe77=_0xab93b7['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3d24b8,CommentThreadInputView:_0x190c0c}=_0x18d196['plugins']['get']('CommentsUI');let _0x3fd122,_0xb2e6c5,_0x5427ff;this['_annotationViews']['has'](_0x1c1110['id'])?(_0xb2e6c5=this['_annotationViews']['get'](_0x1c1110['id']),_0x3fd122=_0xb2e6c5['mainView']):(_0x3fd122=new _0x1490b9(_0x18d196['locale'],_0x1c1110,_0x17a040,{'disableComments':this['_disableComments'],'editorConfig':{..._0xab93b7['get']('comments.editorConfig'),'licenseKey':_0xab93b7['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xab93b7['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xab93b7['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xab93b7['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xd99787(_0xab93b7['get']('locale'),_0x18d196['locale']),'CommentView':_0xab93b7['get']('comments')['CommentView'],'CommentsListView':_0x3d24b8,'CommentThreadInputView':_0x190c0c,'SuggestionView':_0x10fe77}),_0x3fd122['suggestionView']['acceptButton']['on']('execute',()=>{_0x18d196['editing']['view']['focus']();}),_0x3fd122['suggestionView']['discardButton']['on']('execute',()=>{_0x18d196['editing']['view']['focus']();}),_0xb2e6c5=_0x2d1a48['createAnnotationView'](this['editor']['locale'],_0x3fd122),_0xb2e6c5['bind']('isDirty')['to'](_0x3fd122,'isDirty'),_0xb2e6c5['bind']('length')['to'](_0x3fd122),_0xb2e6c5['bind']('type')['to'](_0x3fd122,'type',_0x58c634=>'suggestion-'+_0x58c634),_0x3fd122['on']('escape',()=>{_0x5427ff['fire']('escape');}),this['_annotationViews']['set'](_0x1c1110['id'],_0xb2e6c5));const _0x460b9c=_0x464f2e['createCommentThreadController'](_0x1c1110['commentThread'],_0x3fd122),_0x5c0081=new pe(_0x18d196,_0x1c1110,_0x3fd122,_0x460b9c),_0x97fa63=_0x1c1110['getAllAdjacentSuggestions']()['filter'](_0x2115f0=>_0x2115f0['isInContent']);_0x3fd122['descriptionParts']=_0x18d196['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x97fa63),this['_suggestionToController']['set'](_0x1c1110,_0x5c0081),this['_viewToController']['set'](_0x3fd122,_0x5c0081);const _0x550473=()=>{const _0x4ef3dd=[],_0x1a72a5=_0x1c1110['getAllAdjacentSuggestions']()['filter'](_0x591e69=>_0x591e69['isInContent']);for(const _0x503268 of _0x1a72a5)_0x4ef3dd['push'](..._0x503268['getMarkers']());return _0x74e1ba(_0x18d196['editing'],_0x4ef3dd);};_0x5427ff=_0x2d1a48['createAnnotation']({'view':_0xb2e6c5,'target':_0x550473,'type':()=>'suggestion-'+_0x5c0081['view']['type'],'isVisible':!!_0x550473()}),_0x464f2e['_bindAnnotationToEditors'](_0x3fd122,_0x5427ff),_0x2d1a48['add'](_0x5427ff),_0x24cb68['registerAnnotation'](_0x5427ff);}['_destroyController'](_0x6efd70){const _0x4f32dd=this['editor']['plugins']['get']('CommentsRepository'),_0x16a0d3=this['editor']['plugins']['get']('Annotations'),_0xbaabd6=this['_suggestionToController']['get'](_0x6efd70),_0x2df4f5=_0xbaabd6['view'],_0xe6fc8e=_0x16a0d3['getByInnerView'](_0x2df4f5);_0x4f32dd['_unbindEditors'](_0x2df4f5),_0xe6fc8e&&_0x16a0d3['remove'](_0xe6fc8e),this['_suggestionToController']['delete'](_0x6efd70),this['_viewToController']['delete'](_0x2df4f5),_0xbaabd6['destroy']();}['_updateController'](_0x4fabf4){if(!_0x4fabf4['isInContent']||!this['_suggestionToController']['has'](_0x4fabf4))return;const _0x48f0d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x185bf3=this['_suggestionToController']['get'](_0x4fabf4),_0x1adf18=_0x4fabf4['getAllAdjacentSuggestions']();_0x185bf3['view']['descriptionParts']=_0x48f0d2['descriptionFactory']['getDescriptions'](_0x1adf18);}['destroy'](){for(const _0x12c1a2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x12c1a2);for(const _0x2f4b27 of this['_annotationViews']['values']())_0x2f4b27['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4eb6a8){return'model'in _0x4eb6a8;}class Ne extends _0x54af3c{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2b0b36){this['editor']['plugins']['get'](d)['adapter']=_0x2b0b36;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x3420ac){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x3420ac);}['getSuggestions']({skipNotAttached:_0x59a5ff=!0x1,toJSON:_0x3b0f5d=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x59a5ff,'toJSON':_0x3b0f5d});}['getSuggestion'](_0x5e8881){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x5e8881);}}const p=['Pagination'];class re extends _0x54af3c{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4c019b=this['editor'];if(_0x4c019b['config']['define']('trackChangesData.editorCreator',_0x30c2f8=>{const _0x34a339=_0x4c019b['model']['document']['getRootNames']()['reduce']((_0x432052,_0x1f773a)=>(_0x432052[_0x1f773a]='',_0x432052),{});return _0x4c019b['constructor']['create'](_0x34a339,_0x30c2f8);}),'function'!=typeof _0x4c019b['config']['get']('trackChangesData')['editorCreator'])throw new _0x516a4a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x48dcb5){return P(this['editor'],!0x0,_0x48dcb5);}['getDataWithDiscardedSuggestions'](_0x51b40c){return P(this['editor'],!0x1,_0x51b40c);}}class Fe extends _0x54af3c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4867ae){function _0x243ab6(_0x2519b8){return _0x2519b8['map'](_0x3fbc99=>String['fromCharCode'](_0x3fbc99))['join']('');}super(_0x4867ae),this['result']='end',_0x4867ae[_0x243ab6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x243ab6([0x76,0x69,0x65,0x77])][_0x243ab6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x243ab6([0x61,0x75,0x74,0x6f]),_0x4867ae[_0x243ab6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x243ab6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x243ab6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x243ab6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x243ab6([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(_0x2f915f){return void 0x0!==_0x2f915f['getRootsAttributes'];}async function P(_0x2bcca1,_0x18ab26,_0x3234f0){const _0xed9e28=_0x5ce0d3(_0x2bcca1,p);_0xed9e28['plugins']['push'](d,Fe),_0xed9e28['rootsAttributes']=De(_0x2bcca1)?_0x2bcca1['getRootsAttributes']():void 0x0;const _0x524944=document['createDocumentFragment'](),_0x55e93e=_0x2bcca1['config']['get']('trackChangesData')['editorCreator'],_0x220542=await _0x55e93e(_0xed9e28,()=>function(_0x3ff8a0){const _0x4ed6d1=document['createElement']('div');return _0x3ff8a0['appendChild'](_0x4ed6d1),_0x4ed6d1;}(_0x524944));!function(_0xe62af1,_0x223d7e){const _0x17c83c=_0xe62af1['model']['document']['getRootNames']()['reduce']((_0x97c4a6,_0x2273fc)=>(_0x97c4a6[_0x2273fc]=_0xe62af1['data']['get']({'rootName':_0x2273fc}),_0x97c4a6),{}),_0x16301c=_0xe62af1['plugins']['get']('Users')['users']['map'](_0x1835ab=>({'id':_0x1835ab['id'],'name':_0x1835ab['name']})),_0x17c1a8=_0xe62af1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x44337d=_0xe62af1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4812dd=_0x223d7e['plugins']['get']('Users'),_0x1e2d86=_0x223d7e['plugins']['get']('TrackChangesEditing'),_0x1ce845=_0x223d7e['plugins']['get']('CommentsRepository');for(const _0x54a9f1 of _0x1ce845['getCommentThreads']())_0x54a9f1['remove']();for(const _0x5e5f9b of _0x16301c)_0x4812dd['getUser'](_0x5e5f9b['id'])||_0x4812dd['addUser'](_0x5e5f9b);_0x4812dd['me']||_0x4812dd['useAnonymousUser']();for(const _0x1e936f of _0x44337d)_0x1ce845['addCommentThread'](_0x1e936f);for(const _0x2dff51 of _0x17c1a8)_0x1e2d86['addSuggestionData'](_0x2dff51);_0x223d7e['data']['set'](_0x17c83c);}(_0x2bcca1,_0x220542),_0x220542['execute'](_0x18ab26?'acceptAllSuggestions':'discardAllSuggestions');const _0x2b6996=De(_0x220542)?_0x220542['getFullData'](_0x3234f0):_0x220542['data']['get'](_0x3234f0);return await _0x220542['destroy'](),_0x2b6996;}class Me extends _0x5ec9cc{['options'];constructor(_0x5a87d4,_0x57123c){super(_0x5a87d4),this['options']=_0x57123c,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'](_0x515b94,_0x22a673){if(!this['element'])return;const _0x533f9f=[];for(const [_0x315234,_0xe0cb74]of _0x515b94){const _0x2e81a8=document['createElement']('div');_0x2e81a8['setAttribute']('data-ck-root-name',_0x315234),_0x2e81a8['className']=_0xe0cb74['classes']+'\x20ck-track-changes-preview__root-container',_0x2e81a8['innerHTML']=_0xe0cb74['content'],_0x533f9f['push'](_0x2e81a8);}_0x22a673(this['element'],_0x533f9f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x36edc8{constructor(_0x2c0ab5){super(_0x2c0ab5),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x25a171=this['editor'],_0x2db027=_0x25a171['locale'],_0x40d251=_0x25a171['plugins']['get']('Dialog');let _0x336023;const _0x4a6163=function(_0x17019d){const _0x29a06d={};if('editables'in _0x17019d['ui']['view']){for(const [_0x35f7ed,_0x3a442d]of Object['entries'](_0x17019d['ui']['view']['editables']))_0x29a06d[_0x35f7ed]=_0x3a442d['element'];}else _0x29a06d[_0x17019d['model']['document']['getRootNames']()[0x0]]=_0x17019d['ui']['view']['editable']['element'];return _0x29a06d;}(_0x25a171),_0x3e7310=function(_0x2613f0){let _0x4886bd=0x0;for(const _0xcf4240 of Object['values'](_0x2613f0))_0x4886bd=Math['max'](_0x4886bd,_0xcf4240['getBoundingClientRect']()['width']);let _0x1e1646=0x0;for(const _0x3f8da0 of Object['values'](_0x2613f0))_0x1e1646+=_0x3f8da0['getBoundingClientRect']()['height'];const _0xa2789a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2d9037=Math['min'](_0x1e1646,_0xa2789a);return{'width':_0x4886bd,'height':_0x2d9037};}(_0x4a6163);_0x40d251['show']({'id':'finalContentPreview','title':o(_0x2db027,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2db027,{'dialogRects':_0x3e7310}),'onHide':()=>{_0x336023['detachFromDom']();},'onShow':()=>{_0x25a171['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2ce272=>{const _0x3bb54f=this['_standarizeRootsData'](_0x2ce272,_0x25a171,_0x4a6163);_0x40d251['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3bb54f,_0x25a171['config']['get']('trackChanges.preview.renderFunction'));}),_0x336023=new _0x43b419(_0x2db027,[_0x40d251['view']]),_0x336023['attachToDom'](),_0x336023['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x25a171['once']('destroy',()=>{_0x336023['detachFromDom']();});const _0x4d9d3f=_0x40d251['view']['headerView']['class'];_0x40d251['view']['headerView']['class']=_0x4d9d3f?_0x4d9d3f+'\x20ck-reset_all':'ck-reset_all',_0x40d251['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x40d251['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x529794=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x40eb48=_0x529794['previewMode'],_0xfaa9c8={};if('$labels'===_0x40eb48){for(const _0x4bf46a of _0x529794['getMergeFieldsIds']())_0xfaa9c8[_0x4bf46a]=_0x529794['getLabel'](_0x4bf46a)||_0x4bf46a;}else{const _0x4c4619='$defaultValues'===_0x40eb48?_0x529794['getDefaultValues']():_0x529794['getDataSetValues'](_0x40eb48,!0x0);for(const _0x42596c of Object['entries'](_0x4c4619)){const [_0x20313d,_0x32b234]=_0x42596c;_0xfaa9c8[_0x20313d]=null!==_0x32b234?_0x32b234:_0x529794['getLabel'](_0x20313d)||_0x20313d;}}return{'mergeFieldsData':_0xfaa9c8};}['_standarizeRootsData'](_0x66100d,_0x41d337,_0x2e536c){let _0x3c1cb8;if('string'==typeof _0x66100d){const _0x379e2d=_0x41d337['model']['document']['getRootNames']()[0x0];_0x3c1cb8={[_0x379e2d]:_0x66100d};}else _0x3c1cb8=_0x66100d;const _0x57c6a0=this['_fixMediaEmbeds'](_0x3c1cb8,_0x41d337),_0x4c2ee9=function(_0x512df1,_0x17772c){for(const [_0x425340,_0x508284]of _0x512df1)_0x508284['classes']=_0x17772c[_0x425340]['classList']['value']['replace']('ck-focused','');return _0x512df1;}(this['_sortRoots'](_0x41d337)['reduce']((_0x33ba64,_0x3dd160)=>(_0x33ba64['push']([_0x3dd160,{'content':_0x57c6a0[_0x3dd160],'classes':''}]),_0x33ba64),[]),_0x2e536c);return _0x4c2ee9;}['_fixMediaEmbeds'](_0x1bd050,_0x5a663c){if(!_0x5a663c['plugins']['has']('MediaEmbedEditing'))return _0x1bd050;const _0x54a043=_0x5a663c['plugins']['get']('MediaEmbedEditing');for(const [_0x427a44,_0x10e543]of Object['entries'](_0x1bd050)){const _0x4d50ed=document['createElement']('div');_0x4d50ed['innerHTML']=_0x10e543,(_0x4d50ed['querySelectorAll']('figure.media')['forEach'](_0x5dbe0c=>{const _0x1a6e42=_0x5dbe0c['querySelector']('oembed');if(_0x1a6e42){const _0xca52cc=_0x1a6e42['getAttribute']('url');if(_0xca52cc){const _0x396be4=_0x54a043['registry']['getMediaViewElement'](new _0x56c1c9(_0x5a663c['editing']['view']['document']),_0xca52cc,{'elementName':'','renderForEditingView':!0x0}),_0x189784=document['createElement']('div');_0x189784['classList']['add']('ck-media__wrapper'),_0x396be4['render'](_0x189784,_0x5a663c['editing']['view']['domConverter']),_0x1a6e42['replaceWith'](_0x189784);}}}),_0x1bd050[_0x427a44]=_0x4d50ed['innerHTML']);}return _0x1bd050;}['_sortRoots'](_0x29a6a9){if(!function(_0x1f1a0b){return void 0x0!==_0x1f1a0b['getRootsAttributes'];}(_0x29a6a9))return _0x29a6a9['model']['document']['getRootNames']();const _0x255d3f=[],_0x487268=new Map();for(const _0x3159ab of _0x29a6a9['model']['document']['getRootNames']()){const _0x51ef08=_0x29a6a9['editing']['view']['getDomRoot'](_0x3159ab)['getClientRects']()['item'](0x0);_0x255d3f['push'](_0x3159ab),_0x487268['set'](_0x3159ab,_0x51ef08);}return _0x255d3f['sort']((_0x50023a,_0x532b10)=>{const _0x371544=_0x487268['get'](_0x50023a),_0x25161a=_0x487268['get'](_0x532b10);return _0x371544['y']-_0x25161a['y']||_0x371544['x']-_0x25161a['x'];}),_0x255d3f;}}class Ue extends _0x54af3c{static get['requires'](){return[re,_0x4e81fc];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xafffea){super(_0xafffea),_0xafffea['commands']['add']('previewFinalContent',new te(this['editor'])),_0xafffea['config']['define']('trackChanges.preview.renderFunction',(_0x42e299,_0x3703e0)=>{for(const _0xd518ae of _0x3703e0)_0x42e299['appendChild'](_0xd518ae);});}}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};
|