@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250524.0 → 0.0.0-nightly-20250526.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x94a634(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x149504,_0xd3c7f4){super(),this['id']=_0xd3c7f4['id'],this['type']=_0xd3c7f4['type'],this['subType']=_0xd3c7f4['subType']||null,this['author']=_0xd3c7f4['author'],this['creator']=_0xd3c7f4['creator']||_0xd3c7f4['author'],this['isExternal']=Boolean(_0xd3c7f4['attributes']&&_0xd3c7f4['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xd3c7f4['originalSuggestionId']||null,this['_model']=_0x149504,this['_onAccept']=_0xd3c7f4['onAccept'],this['_onDiscard']=_0xd3c7f4['onDiscard'],this['_onAttributesChange']=_0xd3c7f4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xd3c7f4['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 _0x4770aa=this;for(;_0x4770aa['previous'];)_0x4770aa=_0x4770aa['previous'];return _0x4770aa;}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'](_0xb8128b){this['_markerNames']['add'](_0xb8128b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1efaba=>this['_model']['markers']['get'](_0x1efaba))['filter'](_0x112248=>_0x112248);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x20cf42=>{for(const _0x1e3e73 of this['getMarkers']())_0x20cf42['removeMarker'](_0x1e3e73);}),this['_markerNames']['clear']();}['removeMarker'](_0x355e1b){this['_model']['change'](_0x1e8659=>{_0x1e8659['removeMarker'](_0x355e1b);}),this['_markerNames']['delete'](_0x355e1b);}['addRange'](_0x295b6e){const _0x2c48af='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x2c48af),this['_model']['change'](_0x53cdd6=>{_0x53cdd6['addMarker'](_0x2c48af,{'range':_0x295b6e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x49592c){for(const _0xd376ef of this['getRanges']())if(_0xd376ef['isIntersecting'](_0x49592c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x47404c=>_0x47404c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1435b1,_0x407a37)=>[..._0x1435b1,..._0x407a37['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4d1f59=this['getRanges']();if(0x1!=_0x4d1f59['length'])return null;const _0xc216be=_0x4d1f59[0x0],_0x3be8cd=_0xc216be['start']['nodeAfter'],_0x364f0b=_0xc216be['end']['nodeBefore'];return _0x3be8cd instanceof _0x3d5c0e?_0x3be8cd!=_0x364f0b?null:_0x3be8cd: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 _0xbba212=[];let _0xca2e7c=this['head'];for(;_0xca2e7c;)_0xbba212['push'](_0xca2e7c),_0xca2e7c=_0xca2e7c['next'];return _0xbba212;}['setAttribute'](_0x5f0995,_0x3be4e1){const _0x5357b5=_0x168844(this['attributes']);_0x2c2d0c(_0x5357b5,_0x5f0995,_0x3be4e1),_0x5f649a(_0x5357b5,this['attributes'])||(this['attributes']=_0x5357b5,this['_onAttributesChange'](_0x5357b5));}['removeAttribute'](_0x528815){const _0x168420=_0x168844(this['attributes']);_0x4c3345(_0x168420,_0x528815),_0x5f649a(_0x168420,this['attributes'])||(this['attributes']=_0x168420,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 _0x425596()['substr'](0x1,0x5);}}function c(_0x502c99,_0x488dfa,_0x511d0a){const _0x4ce1c9=_0x502c99['t'],t=_0x502c99['t'];switch(_0x488dfa){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',_0x511d0a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x511d0a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x511d0a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x511d0a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x511d0a);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',_0x511d0a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x511d0a);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',_0x511d0a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x511d0a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x511d0a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x511d0a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x511d0a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x511d0a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x511d0a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x511d0a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x511d0a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x511d0a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x511d0a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x511d0a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x511d0a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x511d0a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x511d0a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x511d0a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x511d0a);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x511d0a);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'},_0x511d0a);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x511d0a);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x511d0a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x511d0a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x511d0a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x511d0a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x511d0a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x511d0a);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'},_0x511d0a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x511d0a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x511d0a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x511d0a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x511d0a);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'},_0x511d0a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x511d0a);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'},_0x511d0a);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x511d0a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x511d0a);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'},_0x511d0a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x511d0a);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'},_0x511d0a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x511d0a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x511d0a);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'},_0x511d0a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x511d0a);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 _0x4ce1c9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x511d0a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4ce1c9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x511d0a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x511d0a);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'},_0x511d0a);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'},_0x511d0a);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'},_0x511d0a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x488dfa;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5c5c05,_0x382d61){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5c5c05,this['_locale']=_0x382d61;}['getDescriptions'](_0x36a4b0){const _0x4828bf=[],_0x54c62a=new Set(),_0x1f693c=new Set();for(let _0x375250=0x0;_0x375250<_0x36a4b0['length'];_0x375250++){const _0x13b41d=_0x36a4b0[_0x375250];if(!_0x13b41d['isInContent'])continue;const _0x69ffb5=this['_handleCustomCallbackDescription'](_0x13b41d);if(_0x69ffb5){if(null!=_0x13b41d['subType']){if(_0x54c62a['has'](_0x13b41d['subType']))continue;_0x54c62a['add'](_0x13b41d['subType']);}_0x4828bf['push'](_0x69ffb5);}else{if('attribute'!=_0x13b41d['type'])'insertion'!=_0x13b41d['type']&&'deletion'!=_0x13b41d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4828bf,_0x13b41d,_0x36a4b0[_0x375250+0x1]);else{const _0x3d91f0=_0x13b41d['data']['key'];if(_0x1f693c['has'](_0x3d91f0))continue;_0x1f693c['add'](_0x13b41d['data']['key']),_0x3d91f0==u?this['_handleRenameSuggestionDescription'](_0x4828bf,_0x13b41d):this['_handleAttributeSuggestionDescription'](_0x4828bf,_0x13b41d);}}}return this['_resolveDescriptionItems'](_0x4828bf);}['registerDescriptionCallback'](_0x4a5e18){this['_customCallbacks']['push'](_0x4a5e18);}['registerElementLabel'](_0x1a67ba,_0x555a99,_0x58a348=_0x15078e['normal']){'function'==typeof _0x1a67ba?_0x30efad(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1a67ba,'label':_0x555a99,'priority':_0x58a348}):this['_itemLabels']['set'](_0x1a67ba,_0x555a99);}['registerAttributeLabel'](_0x2dfaf9,_0x10df94){this['_attributeLabels']['set'](_0x2dfaf9,_0x10df94);}['getItemLabel'](_0x5b50ab,_0x1d4d48=0x1){let _0x558464;for(const _0x2aa98b of this['_itemLabelsCallbacks'])if(_0x2aa98b['matchingCallback'](_0x5b50ab)){_0x558464=_0x2aa98b['label'];break;}return _0x558464||(_0x558464=this['_itemLabels']['get'](_0x5b50ab['name'])),_0x558464?_0x558464(_0x1d4d48):0x1!==_0x1d4d48?_0x1d4d48+'\x20'+_0x5b50ab['name']+'s':''+_0x5b50ab['name'];}['_addDescriptionItems'](_0x3f1668,_0x18b4b3){const _0x3ed474=_0x18b4b3['getFirstRange']()['getWalker'](),_0x212e8d='insertion'==_0x18b4b3['type']?'add':'remove';for(const _0x18c1e9 of _0x3ed474){const _0x5b2d57=_0x18c1e9['item'],_0x501288=_0x3f1668[_0x3f1668['length']-0x1];if(_0x5b2d57['is']('$textProxy'))_0x501288&&_0x501288['type']['indexOf']('Container')>-0x1&&_0x3f1668['pop'](),_0x501288&&'text'==_0x501288['type']?_0x501288[_0x212e8d]+=_0x5b2d57['data']:_0x3f1668['push']({'type':'text','add':'add'==_0x212e8d?_0x5b2d57['data']:'','remove':'remove'==_0x212e8d?_0x5b2d57['data']:''});else{if(this['_schema']['isObject'](_0x5b2d57)){const _0x1adcd3=_0x5b2d57;if(_0x501288&&_0x501288['type']['indexOf']('Container')>-0x1&&_0x3f1668['pop'](),'elementEnd'==_0x18c1e9['type'])continue;_0x501288&&_0x501288['type']==_0x212e8d+'Object'&&_0x501288['element']['name']==_0x1adcd3['name']?_0x501288['quantity']++:_0x3f1668['push']({'type':_0x212e8d+'Object','element':_0x1adcd3,'quantity':0x1}),_0x3ed474['skip'](_0x2d11bd=>!('elementEnd'==_0x2d11bd['type']&&_0x2d11bd['item']==_0x5b2d57));}else{if(this['_schema']['checkChild'](_0x5b2d57,'$text')||_0x5b2d57['is']('element','softBreak')){const _0x5b2031=_0x5b2d57;if('add'==_0x212e8d&&'elementStart'==_0x18c1e9['type']||'remove'==_0x212e8d&&'elementEnd'==_0x18c1e9['type'])continue;if(_0x501288&&-0x1==_0x501288['type']['indexOf']('Container')){'text'==_0x501288['type']&&(_0x501288[_0x212e8d]+='\x0a');continue;}let _0x3f8b2f;if(_0x3f8b2f='add'==_0x212e8d?_0x5b2031['nextSibling']&&!this['_schema']['isObject'](_0x5b2031['nextSibling'])?_0x5b2031['nextSibling']:null:_0x5b2031['previousSibling']&&!this['_schema']['isObject'](_0x5b2031['previousSibling'])?_0x5b2031['previousSibling']:null,_0x5b2031['isEmpty']||_0x3f8b2f&&_0x3f8b2f['isEmpty']){const _0x36f42=_0x3f8b2f&&_0x3f8b2f['isEmpty']?_0x3f8b2f:_0x5b2031;_0x501288&&_0x501288['type']==_0x212e8d+'EmptyContainer'&&_0x501288['element']['name']==_0x36f42['name']?_0x501288['quantity']++:_0x3f1668['push']({'type':_0x212e8d+'EmptyContainer','element':_0x36f42,'quantity':0x1});}else _0x3f1668['push']({'type':_0x212e8d+'Container','element':_0x5b2031});}}}}}['_resolveDescriptionItems'](_0x29272a){const _0x20dbef=this['_locale'],_0x3c751d=[],_0x940345=[],_0x2cbc90=[];for(const _0x1ce552 of _0x29272a)switch(_0x1ce552['type']){case'text':if(_0x1ce552['add']=_0x1ce552['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1ce552['remove']=_0x1ce552['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1ce552['add']&&''!=_0x1ce552['remove']){_0x3c751d['push']({'type':'replace','content':c(_0x20dbef,'REPLACE_TEXT',['\x22'+_0x1ce552['remove']+'\x22','\x22'+_0x1ce552['add']+'\x22'])});continue;}if(null!=_0x1ce552['add']['match'](/^ +$/)){_0x3c751d['push']({'type':'insertion','content':c(_0x20dbef,'*Insert:*\x20%0',c(_0x20dbef,'ELEMENT_SPACE',_0x1ce552['add']['length']))});continue;}if(null!=_0x1ce552['remove']['match'](/^ +$/)){_0x3c751d['push']({'type':'deletion','content':c(_0x20dbef,'*Remove:*\x20%0',c(_0x20dbef,'ELEMENT_SPACE',_0x1ce552['remove']['length']))});continue;}if(''!=_0x1ce552['add']){_0x3c751d['push']({'type':'insertion','content':c(_0x20dbef,'*Insert:*\x20%0','\x22'+_0x1ce552['add']+'\x22')});continue;}_0x3c751d['push']({'type':'deletion','content':c(_0x20dbef,'*Remove:*\x20%0','\x22'+_0x1ce552['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3c751d['push']({'type':'insertion','content':c(_0x20dbef,'*Insert:*\x20%0',this['getItemLabel'](_0x1ce552['element'],_0x1ce552['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3c751d['push']({'type':'deletion','content':c(_0x20dbef,'*Remove:*\x20%0',this['getItemLabel'](_0x1ce552['element'],_0x1ce552['quantity']))});continue;case'addContainer':_0x3c751d['push']({'type':'insertion','content':c(_0x20dbef,'*Split:*\x20%0',this['getItemLabel'](_0x1ce552['element'],_0x1ce552['quantity']))});continue;case'removeContainer':_0x3c751d['push']({'type':'deletion','content':c(_0x20dbef,'*Merge:*\x20%0',this['getItemLabel'](_0x1ce552['element'],_0x1ce552['quantity']))});continue;case'addFormat':_0x940345['push'](_0x1ce552['key']);continue;case'removeFormat':_0x2cbc90['push'](_0x1ce552['key']);continue;default:_0x3c751d['push'](_0x1ce552);}if(_0x940345['length']){const _0x47bfc5=_0x940345['map'](_0x54791a=>this['_attributeLabels']['has'](_0x54791a)?this['_attributeLabels']['get'](_0x54791a):_0x54791a)['join'](',\x20');_0x3c751d['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x47bfc5)});}if(_0x2cbc90['length']){const _0x1ea03d=_0x2cbc90['map'](_0x48e97e=>this['_attributeLabels']['has'](_0x48e97e)?this['_attributeLabels']['get'](_0x48e97e):_0x48e97e)['join'](',\x20');_0x3c751d['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1ea03d)});}return _0x3c751d;}['_handleCustomCallbackDescription'](_0x45a7e4){for(const _0xac12dc of this['_customCallbacks']){const _0x2979db=_0xac12dc(_0x45a7e4);if(_0x2979db&&'type'in _0x2979db)return _0x2979db;}}['_handleAttributeSuggestionDescription'](_0x5dbb98,_0x121095){const _0x399bc7=_0x121095['data'],_0x200b5a=void 0x0===_0x399bc7['newValue']?'removeFormat':'addFormat';_0x5dbb98['push']({'type':_0x200b5a,'key':_0x399bc7['key']});}['_handleRenameSuggestionDescription'](_0x5815e3,_0x340c93){_0x5815e3['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x340c93['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x27c7c9,_0x15a7b6,_0x1437e1){if(this['_addDescriptionItems'](_0x27c7c9,_0x15a7b6),_0x1437e1&&_0x1437e1['getFirstRange']()&&!_0x15a7b6['getFirstRange']()['end']['isEqual'](_0x1437e1['getFirstRange']()['start'])){const _0x2606b2=_0x27c7c9[_0x27c7c9['length']-0x1],_0x335659='insertion'==_0x15a7b6['type']?'add':'remove';_0x2606b2&&'text'==_0x2606b2['type']&&(_0x2606b2[_0x335659]+='\x0a');}}}class U extends _0x14dd54{['afterInit'](){const _0x840dd7=this['editor'],_0xace356=_0x840dd7['plugins']['get']('TrackChangesEditing');_0x840dd7['commands']['get']('showAIAssistant')&&_0xace356['enableCommand']('showAIAssistant');}}class V extends _0x14dd54{['afterInit'](){const _0x1079c0=this['editor'],_0x37cea1=_0x1079c0['locale'];if(!_0x1079c0['plugins']['has']('AlignmentEditing'))return;const _0x52a2ba=_0x1079c0['plugins']['get']('TrackChangesEditing');_0x52a2ba['enableDefaultAttributesIntegration']('alignment'),_0x52a2ba['registerBlockAttribute']('alignment'),_0x52a2ba['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x37cea1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7f6192=this['editor'],_0x591a6f=_0x7f6192['locale'];_0x7f6192['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2df047=>{if('formatBlock'!=_0x2df047['type'])return;const {data:_0x42cdd8}=_0x2df047;if(_0x42cdd8&&'alignment'==_0x42cdd8['commandName']){const _0x17494c=_0x42cdd8['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x591a6f,'*Format:*\x20%0',function(_0x802f7a){switch(_0x802f7a){case'left':return c(_0x591a6f,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x591a6f,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x591a6f,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x591a6f,'FORMAT_JUSTIFY_TEXT');}}(_0x17494c))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x14dd54{['afterInit'](){const _0x5c6adf=this['editor'],_0x4b27e2=_0x5c6adf['plugins']['get']('TrackChangesEditing'),_0x3ce730=_0x5c6adf['locale'];for(const _0x122d8e of Zt){if(!_0x5c6adf['plugins']['has'](_0x122d8e))continue;const _0x50bd97=_0x122d8e['slice'](0x0,-0x7)['toLowerCase'](),_0x2df196='FORMAT_'+_0x50bd97['toUpperCase']();_0x4b27e2['enableDefaultAttributesIntegration'](_0x50bd97),_0x4b27e2['registerInlineAttribute'](_0x50bd97),_0x4b27e2['descriptionFactory']['registerAttributeLabel'](_0x50bd97,c(_0x3ce730,_0x2df196));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x268046=this['editor'],_0xb8f0b3=_0x268046['locale'],_0x32aa83=_0x268046['plugins']['get']('TrackChangesEditing');function _0x3866af(_0x4940bc,_0x1b9666){_0x32aa83['descriptionFactory']['registerDescriptionCallback'](_0x5f05e6=>{if('formatInline'!=_0x5f05e6['type'])return;const {data:_0x2b033c}=_0x5f05e6;return _0x2b033c&&_0x2b033c['commandName']===_0x4940bc?_0x2b033c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xb8f0b3,'*Format:*\x20%0',_0x1b9666)}:{'type':'format','content':c(_0xb8f0b3,'*Remove\x20format:*\x20%0',_0x1b9666)}:void 0x0;});}_0x3866af('bold',c(_0xb8f0b3,'FORMAT_BOLD')),_0x3866af('italic',c(_0xb8f0b3,'FORMAT_ITALIC')),_0x3866af('underline',c(_0xb8f0b3,'FORMAT_UNDERLINE')),_0x3866af('code',c(_0xb8f0b3,'FORMAT_CODE')),_0x3866af('strikethrough',c(_0xb8f0b3,'FORMAT_STRIKETHROUGH')),_0x3866af('subscript',c(_0xb8f0b3,'FORMAT_SUBSCRIPT')),_0x3866af('superscript',c(_0xb8f0b3,'FORMAT_SUPERSCRIPT'));}}class G extends _0x14dd54{['afterInit'](){const _0x44ec8d=this['editor'],_0x481bf8=_0x44ec8d['locale'];if(!_0x44ec8d['plugins']['has']('BlockQuoteEditing'))return;const _0x25cc9a=_0x44ec8d['plugins']['get']('TrackChangesEditing'),_0x587431=this['editor']['commands']['get']('blockQuote');_0x25cc9a['enableCommand']('blockQuote',(_0x56ae0,_0x2a30f1={})=>{const _0x1234e9=this['editor']['model']['document']['selection'],_0x2cb1e5=_0x2a30f1&&void 0x0!==_0x2a30f1['forceValue']?_0x2a30f1['forceValue']:!_0x587431['value'];let _0x1fc4dd=[];if(_0x2cb1e5){const _0xcd784c=Array['from'](_0x1234e9['getSelectedBlocks']())['filter'](_0x24b5b8=>oo(_0x24b5b8)||function(_0x1cf0c8,_0x5a97ae){const _0x2f00b1=_0x5a97ae['checkChild'](_0x1cf0c8['parent'],'blockQuote'),_0x2b35c8=_0x5a97ae['checkChild'](['$root','blockQuote'],_0x1cf0c8);return _0x2f00b1&&_0x2b35c8;}(_0x24b5b8,this['editor']['model']['schema']));_0x1fc4dd=to(_0xcd784c,_0x44ec8d['model']);}else{const _0x51ec1f=Array['from'](_0x1234e9['getSelectedBlocks']())['filter'](_0x10560a=>oo(_0x10560a));_0x1fc4dd=to(_0x51ec1f,_0x44ec8d['model']);}_0x44ec8d['model']['change'](()=>{for(const _0x2c4244 of _0x1fc4dd)_0x25cc9a['markBlockFormat'](_0x2c4244,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2cb1e5}]});});}),_0x25cc9a['descriptionFactory']['registerDescriptionCallback'](_0x4ad9e0=>{const {data:_0x37edca}=_0x4ad9e0;if(_0x37edca&&'blockQuote'==_0x37edca['commandName']){const _0x3f8c28=c(_0x481bf8,'ELEMENT_BLOCK_QUOTE');return _0x37edca['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x481bf8,'*Set\x20format:*\x20%0',_0x3f8c28)}:{'type':'format','content':c(_0x481bf8,'*Remove\x20format:*\x20%0',_0x3f8c28)};}});}}function oo(_0xac8a66){return'blockQuote'==_0xac8a66['parent']['name'];}class L extends _0x14dd54{['afterInit'](){const _0x1f50f8=this['editor'],_0x3eaa9a=_0x1f50f8['locale'],_0x3b15dd=_0x1f50f8['plugins']['get']('TrackChangesEditing');_0x1f50f8['plugins']['has']('BookmarkEditing')&&(_0x3b15dd['enableCommand']('insertBookmark'),_0x3b15dd['enableDefaultAttributesIntegration']('updateBookmark'),_0x3b15dd['registerBlockAttribute']('bookmarkId'),_0x3b15dd['descriptionFactory']['registerDescriptionCallback'](_0x618c8a=>{if('insertion'!=_0x618c8a['type']&&'deletion'!=_0x618c8a['type']&&'attribute'!=_0x618c8a['type'])return;const _0x1d844c=_0x618c8a['getContainedElement']();if(null==_0x1d844c)return;if(!_0x1d844c['is']('element','bookmark'))return;const _0x5e94ef=_0x1d844c['getAttribute']('bookmarkId');if('insertion'==_0x618c8a['type'])return{'type':'insertion','content':c(_0x3eaa9a,'*Insert:*\x20%0','\x22'+_0x5e94ef+'\x22\x20'+c(_0x3eaa9a,'ELEMENT_BOOKMARK'))};if('deletion'==_0x618c8a['type'])return{'type':'deletion','content':c(_0x3eaa9a,'*Remove:*\x20%0','\x22'+_0x5e94ef+'\x22\x20'+c(_0x3eaa9a,'ELEMENT_BOOKMARK'))};const {data:_0x2faa82}=_0x618c8a;if(!_0x2faa82||'bookmarkId'!=_0x2faa82['key'])return;return{'type':'format','content':c(_0x3eaa9a,'*Set\x20bookmark:*\x20%0','\x22'+_0x2faa82['newValue']+'\x22')};}));}}class J extends _0x14dd54{['afterInit'](){const _0x216938=this['editor'];_0x216938['plugins']['has']('CaseChange')&&(_0x216938['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x216938['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x216938['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x14dd54{['afterInit'](){const _0x319012=this['editor'];_0x319012['commands']['get']('ckbox')&&_0x319012['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x14dd54{['afterInit'](){const _0x213b3c=this['editor'];if(!_0x213b3c['plugins']['has']('CodeBlock'))return;const _0x5cc373=_0x213b3c['plugins']['get']('TrackChangesEditing'),_0x173baa=_0x213b3c['locale'],_0x4b8160=_0x213b3c['config']['get']('codeBlock')['languages'],_0x5b92d6=_0x213b3c['commands']['get']('codeBlock');_0x5cc373['enableCommand']('indentCodeBlock'),_0x5cc373['enableCommand']('outdentCodeBlock'),_0x5cc373['enableCommand']('codeBlock',(_0x2d7aa3,_0x3fc781={})=>{const _0x5209ca=_0x213b3c['model'],_0xfe49=_0x213b3c['model']['document']['selection'],_0x239e5c=_0x3fc781&&void 0x0!==_0x3fc781['forceValue']?_0x3fc781['forceValue']:!_0x5b92d6['value'];let _0x5f1596;_0x3fc781['language']||(_0x3fc781['language']=_0x4b8160[0x0]['language']),_0x5f1596=_0x239e5c?Array['from'](_0xfe49['getSelectedBlocks']())['filter'](_0x218c8e=>eo(_0x218c8e)||function(_0x38fa21,_0x490428){if(_0x38fa21['is']('rootElement')||_0x490428['isLimit'](_0x38fa21))return!0x1;return _0x490428['checkChild'](_0x38fa21['parent'],'codeBlock');}(_0x218c8e,_0x5209ca['schema'])):Array['from'](_0xfe49['getSelectedBlocks']())['filter'](_0x2280e4=>eo(_0x2280e4));const _0x229cff=to(_0x5f1596,_0x5209ca);_0x5209ca['change'](()=>{for(const _0x3b2418 of _0x229cff)_0x5cc373['markBlockFormat'](_0x3b2418,{'commandName':'codeBlock','commandParams':[{..._0x3fc781,'forceValue':_0x239e5c}],'formatGroupId':'blockName'});});}),(_0x5cc373['descriptionFactory']['registerElementLabel']('codeBlock',_0x2932a6=>c(_0x173baa,'ELEMENT_CODE_BLOCK',_0x2932a6)),_0x5cc373['descriptionFactory']['registerDescriptionCallback'](_0x88e2a5=>{if('formatBlock'!=_0x88e2a5['type'])return;const _0x402203=_0x173baa['t'],{data:_0xbf2aa8}=_0x88e2a5;if(!_0xbf2aa8||'codeBlock'!=_0xbf2aa8['commandName'])return;const _0x33d392=_0xbf2aa8['commandParams'][0x0]['language'],_0x9e00a3=_0x402203(_0x4b8160['find'](_0x480e5b=>_0x480e5b['language']===_0x33d392)['label'])['toLowerCase']();return _0xbf2aa8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x173baa,'*Set\x20format:*\x20%0',c(_0x173baa,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x9e00a3+')')}:{'type':'format','content':c(_0x173baa,'*Remove\x20format:*\x20%0',c(_0x173baa,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x61a2a3){return'codeBlock'==_0x61a2a3['name'];}class q extends _0x14dd54{['afterInit'](){const _0x31d8c0=this['editor'];if(!_0x31d8c0['plugins']['has']('CommentsEditing'))return;_0x31d8c0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4df9e2,_0x385175,_0x5aa0ff){const _0x118fe9=[];for(const _0x1510c2 of _0x385175['getItems']())_0x1510c2['hasAttribute'](_0x4df9e2)&&_0x118fe9['push'](_0x5aa0ff['createRangeOn'](_0x1510c2));return _0x118fe9;}function Fe(_0x3674f6,_0x4916de,{showActiveMarker:_0x5552f4=!0x0}={}){const _0x4fa98b=_0x3674f6['plugins']['get']('TrackChangesEditing');return(_0x31ea5b,_0x382725,_0x579dce)=>{if(!_0x579dce['consumable']['test'](_0x382725['markerRange'],_0x31ea5b['name']))return;const _0x3a8f82=_0x382725['markerRange']['getWalker'](),_0x4b79d2=_0x382725['markerRange']['start'],_0x7a017a=_0x3674f6['model']['schema'];let _0x444f1b=null,_0x7c9118=null,_0x3a0a5f=!0x1,_0x5bef5f=!0x1;for(const _0x57d451 of _0x3a8f82){const _0x815ab4=_0x57d451['item'];_0x3a0a5f=_0x3a0a5f||_0x7a017a['isContent'](_0x815ab4);const _0x69e4f5=_0x579dce['mapper']['toViewElement'](_0x815ab4);if(_0x69e4f5&&_0x69e4f5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57d451['type']&&(_0x7a017a['isBlock'](_0x815ab4)&&!_0x7a017a['isLimit'](_0x815ab4)&&(_0x815ab4['nextSibling']||_0x4b79d2['isAtEnd']?_0x444f1b&&_0x444f1b['parent']==_0x815ab4||(_0x444f1b=_0x815ab4,_0x3815ee(_0x57d451['previousPosition']),_0x5bef5f=!0x0):_0x7c9118=_0x7c9118||_0x57d451['previousPosition']));}function _0x3815ee(_0x2f7d02){const {id:_0x1a1578,authorId:_0x191ce7}=_0x4fa98b['_splitMarkerName'](_0x382725['markerName']),_0x20f5f8=_0x579dce['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4916de,'data-suggestion':_0x1a1578,'data-author-id':_0x191ce7}),_0x13c179=_0x579dce['mapper']['toViewPosition'](_0x2f7d02);_0x5552f4&&_0x4fa98b['activeMarkers']['includes'](_0x382725['markerName'])&&_0x579dce['writer']['addClass']('ck-suggestion-marker--active',_0x20f5f8),_0x579dce['writer']['insert'](_0x13c179,_0x20f5f8),_0x579dce['mapper']['bindElementToMarker'](_0x20f5f8,_0x382725['markerName']);}_0x3a0a5f||_0x5bef5f||!_0x7c9118||_0x3815ee(_0x7c9118);};}class z extends _0x14dd54{static get['requires'](){return[_0x3fdfa7];}['init'](){const _0x548eac=this['editor'],_0x27c7ff=_0x548eac['plugins']['get']('TrackChangesEditing');_0x27c7ff['enableCommand']('delete');const _0x3a4aae=_0x548eac['commands']['get']('deleteForward');_0x27c7ff['enableCommand']('deleteForward',(_0x36df2,_0x513715={})=>{const _0x4ce976=_0x548eac['model']['createSelection'](_0x548eac['model']['document']['selection']);_0x4ce976['isCollapsed']&&_0x548eac['model']['modifySelection'](_0x4ce976,{'direction':'forward','unit':_0x513715['unit']});const _0x435b54=_0x4ce976['getFirstRange'](),_0x2fc9ca=_0x46c3f4['fromRange'](_0x435b54);let _0x33ad72;_0x36df2(_0x513715),_0x33ad72='$graveyard'==_0x2fc9ca['root']['rootName']?_0x548eac['model']['createRange'](_0x435b54['start']):_0x548eac['model']['createRange'](_0x2fc9ca['start'],_0x2fc9ca['end']),_0x2fc9ca['detach'](),_0x548eac['model']['enqueueChange'](_0x3a4aae['buffer']['batch'],_0x2b72e4=>{_0x3a4aae['buffer']['lock'](),_0x2b72e4['setSelection'](_0x2b72e4['createRange'](_0x33ad72['end'])),_0x3a4aae['buffer']['unlock']();});}),_0x548eac['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x548eac,'merge'),{'priority':'high'}),_0x548eac['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3a37c4,_0x1d78c3,_0x29796d)=>{_0x29796d['options']['showSuggestionHighlights']&&Fe(_0x548eac,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3a37c4,_0x1d78c3,_0x29796d);},{'priority':'high'}),_0x548eac['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2c0854,_0x27de7b,_0x3e09a4)=>{const _0x22abbb=_0x3e09a4['mapper']['markerNameToElements'](_0x27de7b['markerName']);if(_0x22abbb){for(const _0x654f9d of _0x22abbb)_0x654f9d['is']('uiElement')&&(_0x3e09a4['mapper']['unbindElementFromMarkerName'](_0x654f9d,_0x27de7b['markerName']),_0x3e09a4['writer']['remove'](_0x654f9d));}},{'priority':'high'});}}class W extends _0x14dd54{['afterInit'](){const _0xbb58a3=this['editor'];if(!_0xbb58a3['plugins']['has']('ListEditing'))return;const _0x442820=_0xbb58a3['locale'],_0x390a8e=_0xbb58a3['plugins']['get']('TrackChangesEditing'),_0x1c0f7d=_0xbb58a3['plugins']['has']('TodoListEditing'),_0x588e13=!!_0xbb58a3['config']['get']('list.multiBlock');function _0x25bde(_0x2297dc){return{'type':'format','content':''+c(_0x442820,'*Set\x20format:*\x20%0',_0x2297dc)};}function _0x425e80(_0x4f487e){return{'type':'format','content':''+c(_0x442820,'*Remove\x20format:*\x20%0',_0x4f487e)};}_0x390a8e['enableDefaultAttributesIntegration']('numberedList'),_0x390a8e['enableDefaultAttributesIntegration']('bulletedList'),_0x390a8e['enableDefaultAttributesIntegration']('customNumberedList'),_0x390a8e['enableDefaultAttributesIntegration']('customBulletedList'),_0x390a8e['enableDefaultAttributesIntegration']('indentList'),_0x390a8e['enableDefaultAttributesIntegration']('outdentList'),_0x390a8e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x390a8e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x390a8e['registerBlockAttribute']('listItemId'),_0x390a8e['registerBlockAttribute']('listType'),_0x390a8e['registerBlockAttribute']('listIndent'),_0x588e13&&(_0x390a8e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x390a8e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1c0f7d&&(_0x390a8e['enableDefaultAttributesIntegration']('todoList'),_0x390a8e['enableDefaultAttributesIntegration']('checkTodoList'),_0x390a8e['registerBlockAttribute']('todoListChecked'),_0x390a8e['descriptionFactory']['registerDescriptionCallback'](_0x26c6a2=>{const {data:_0x14d1dc}=_0x26c6a2;if(_0x14d1dc&&'todoListChecked'==_0x14d1dc['key'])return{'type':'format','content':_0x14d1dc['newValue']?c(_0x442820,'*Check\x20item*'):c(_0x442820,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1c6736=>{if(_0x1c6736['batch']['isUndo'])return!0x1;let _0x2806fd=!0x1;const _0x127176=_0x390a8e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1847ef=>'todoListChecked'===_0x390a8e['_getAttributeKey'](_0x1847ef));for(const _0x374e90 of _0x127176){'todo'!=_0x374e90['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x390a8e['_findSuggestions'](_0x374e90['getFirstRange'](),'attribute')['find'](_0x5783c7=>'listType'===_0x390a8e['_getAttributeKey'](_0x5783c7['suggestion']))||(_0x1c6736['removeMarker'](_0x374e90['getFirstMarker']()),_0x2806fd=!0x0));}return _0x2806fd;})),_0x390a8e['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x442820,'FORMAT_INDENT'));const _0x28a378={'type':'format','content':''};_0x390a8e['descriptionFactory']['registerDescriptionCallback'](_0x419b06=>{const {data:_0x4ce0b4}=_0x419b06;if(!_0x4ce0b4||'listType'!=_0x4ce0b4['key'])return;let _0x110e45=_0x419b06['head'];for(;_0x110e45;){if(_0x110e45['data']&&(('listStyle'==_0x110e45['data']['key']||'listMarkerStyle'==_0x110e45['data']['key'])&&(_0x110e45['data']['newValue']&&'default'!=_0x110e45['data']['newValue']||'default'!=_0x110e45['data']['oldValue']&&!_0x4ce0b4['newValue'])||!_0x588e13&&_0x110e45['data']['key']==u))return _0x28a378;_0x110e45=_0x110e45['next'];}if(null==_0x4ce0b4['newValue'])switch(_0x4ce0b4['oldValue']){case'bulleted':return _0x425e80(c(_0x442820,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x425e80(c(_0x442820,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x425e80(c(_0x442820,'ELEMENT_TODO_LIST'));}switch(_0x4ce0b4['newValue']){case'bulleted':return _0x25bde(c(_0x442820,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25bde(c(_0x442820,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25bde(c(_0x442820,'ELEMENT_TODO_LIST'));}}),_0x390a8e['descriptionFactory']['registerDescriptionCallback'](_0x2a2876=>{const {data:_0x1f6794}=_0x2a2876;if(_0x1f6794&&'listIndent'==_0x1f6794['key'])return null==_0x1f6794['newValue']||null==_0x1f6794['oldValue']&&0x0==_0x1f6794['newValue']?_0x28a378:void 0x0;}),_0x390a8e['descriptionFactory']['registerDescriptionCallback'](_0x4fdfa1=>{if('attribute'!=_0x4fdfa1['type'])return;const {data:_0x427dd1}=_0x4fdfa1;if(!_0x427dd1||'listItemId'!=_0x427dd1['key'])return;const _0x336aa3=Te(_0x4fdfa1);return'newValue'==_0x336aa3?{'type':'format','content':c(_0x442820,'*Merge:*\x20list\x20item')}:'oldValue'==_0x336aa3?{'type':'format','content':c(_0x442820,'*Split:*\x20list\x20item')}:_0x28a378;}),_0xbb58a3['model']['document']['registerPostFixer'](_0xb0bf9f=>this['listItemIdFixer'](_0xb0bf9f)),_0xbb58a3['model']['document']['registerPostFixer'](_0x323f59=>this['noTrackChangesFixer'](_0x323f59)),_0xbb58a3['model']['document']['on']('change:data',(_0x3424e0,_0xad257c)=>{if(_0xad257c['isUndo']||!_0xad257c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x442c03){if(_0x442c03['batch']['isUndo']||!_0x442c03['batch']['isLocal'])return!0x1;let _0x4367cb=!0x1;const _0xe9876d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x60f747=>_0x60f747['data']&&'listItemId'==_0x60f747['data']['key'])['filter'](_0x2ff293=>_0x2ff293['data']['newValue']&&_0x2ff293['data']['oldValue']);for(const _0x528015 of _0xe9876d)Te(_0x528015)||(_0x442c03['removeMarker'](_0x528015['getFirstMarker']()),_0x4367cb=!0x0);return _0x4367cb;}['noTrackChangesFixer'](_0x18f3cc){if(_0x18f3cc['batch']['isUndo']||!_0x18f3cc['batch']['isLocal'])return!0x1;const _0x201f35=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x201f35['trackChangesCommand']['value'])return!0x1;let _0x51bace=!0x1;const _0x22c4c5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x53ec01=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x596832=>'attribute'==_0x596832['type'])['filter'](_0x29b20b=>_0x22c4c5['includes'](_0x29b20b['attributeKey']));if(0x0==_0x53ec01['length'])return _0x51bace;for(const _0x2e9a6b of _0x53ec01){const _0x5d60ed=_0x201f35['_findSuggestions'](_0x2e9a6b['range'],'attribute')['filter'](_0x14ac88=>!_0x14ac88['meta']['isNextTo'])['map'](_0x297a78=>_0x297a78['suggestion'])['filter'](_0x32683a=>{const _0x568da0=_0x201f35['_getAttributeKey'](_0x32683a);return _0x22c4c5['includes'](_0x568da0);});if(_0x5d60ed['length']){for(const _0x33212a of _0x5d60ed)_0x18f3cc['removeMarker'](_0x33212a['getFirstMarker']());_0x51bace=!0x0;}}return _0x51bace;}['assureChains'](){const _0x39af7b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16c349=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x109ca9;const _0x3b27ca=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2a9940=>{if(_0x2a9940['data']['oldRange']||!_0x2a9940['data']['newRange'])return null;if(!_0x2a9940['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x14b3d7}=_0x39af7b['_splitMarkerName'](_0x2a9940['name']);if(!_0x39af7b['hasSuggestion'](_0x14b3d7))return null;const _0x186924=_0x39af7b['getSuggestion'](_0x14b3d7);return _0x16c349['includes'](_0x186924['data']['key']);})['map'](_0x1d732e=>{const {id:_0x20ea94}=_0x39af7b['_splitMarkerName'](_0x1d732e['name']),_0x2b0fec=_0x39af7b['getSuggestion'](_0x20ea94);return _0x109ca9=_0x2b0fec['attributes']['groupId'],_0x2b0fec['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3b27ca['size'])return;const _0x2fbccc=_0x39af7b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xfc7dbc=>'attribute'==_0xfc7dbc['type']&&_0xfc7dbc['data']&&_0x16c349['includes'](_0xfc7dbc['data']['key'])&&_0xfc7dbc['attributes']['groupId']!=_0x109ca9)['map'](_0x44e155=>({'listItem':_0x44e155['getFirstRange']()['start']['nodeAfter'],'groupId':_0x44e155['attributes']['groupId']})),_0xebb0ea=new Set();for(const {groupId:_0x12d3a2,listItem:_0x1c9f84}of _0x2fbccc)_0x3b27ca['has'](_0x1c9f84)&&_0xebb0ea['add'](_0x12d3a2);for(const _0x4c6798 of _0x39af7b['getSuggestions']())_0xebb0ea['has'](_0x4c6798['attributes']['groupId'])&&_0x4c6798['setAttribute']('groupId',_0x109ca9);}['_supportLegacySuggestions'](){const _0x5cfcd6=this['editor'],_0x32647c=_0x5cfcd6['locale'],_0x26ab5d=_0x5cfcd6['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x26ab5d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5e09d0,_0x59f2b2){const _0x2868a8=[];for(let _0x20f655 of _0x5e09d0)_0x20f655['start']['nodeAfter']===_0x20f655['end']['parent']&&(_0x20f655=_0x5cfcd6['model']['createRange'](_0x5cfcd6['model']['createPositionAt'](_0x20f655['start']['nodeAfter'],0x0))),_0x2868a8['push'](_0x20f655);_0x5cfcd6['model']['change'](_0x5a00ab=>{const _0x3912ae=_0x5cfcd6['model']['document']['selection'],_0x2737b2=Array['from'](_0x3912ae['getRanges']())['map'](_0x203b61=>_0x46c3f4['fromRange'](_0x203b61));_0x5a00ab['setSelection'](_0x2868a8),_0x5cfcd6['commands']['get'](_0x59f2b2['commandName'])['refresh'](),_0x59f2b2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5cfcd6['execute'](_0x59f2b2['commandName'],..._0x59f2b2['commandParams']),_0x5a00ab['setSelection'](_0x2737b2);for(const _0x58ce2a of _0x2737b2)_0x58ce2a['detach']();});}),_0x26ab5d['descriptionFactory']['registerElementLabel'](function(_0x2e58dc){const _0x2e670c=!_0x5cfcd6['model']['schema']['isObject'](_0x2e58dc),_0x59fd42=_0x2e58dc['previousSibling'],_0x2cfb87=_0x2e58dc['nextSibling'],_0x355821=_0x2e58dc['getAttribute']('listItemId'),_0x4958bd=!_0x59fd42||_0x59fd42['getAttribute']('listItemId')!==_0x355821,_0x517d32=!_0x2cfb87||_0x2cfb87['getAttribute']('listItemId')!==_0x355821;return _0x2e670c&&Boolean(_0x355821)&&_0x4958bd&&_0x517d32;},_0x3bf9d5=>c(_0x32647c,'ELEMENT_LIST_ITEM',_0x3bf9d5));}['_registerLegacyDescription'](){const _0x1e6ce7=this['editor'],_0x55805a=_0x1e6ce7['locale'];function _0x363128(_0x31bf26){const _0x5a2059=_0x1e6ce7['commands']['get']('bulletedList')['value'],_0x453249=_0x1e6ce7['commands']['get']('numberedList')['value'];return'numberedList'===_0x31bf26?_0x5a2059:_0x453249;}_0x1e6ce7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x565a1b){if('formatBlock'!=_0x565a1b['type'])return;const {data:_0x34dd5c}=_0x565a1b;if(!_0x34dd5c)return;let _0xa2a33,_0x1485be,_0x198af5,_0x2ef1d0;switch(_0x34dd5c['commandName']){case'bulletedList':_0x198af5=_0x34dd5c['commandParams'][0x0]['forceValue'],_0x2ef1d0=_0x363128(_0x34dd5c['commandName']),_0xa2a33=_0x198af5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ef1d0&&_0x1e6ce7['config']['get']('list.multiBlock')||(_0xa2a33='*Change\x20to:*\x20%0'),_0x1485be={'type':'format','content':c(_0x55805a,_0xa2a33,c(_0x55805a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x198af5=_0x34dd5c['commandParams'][0x0]['forceValue'],_0x2ef1d0=_0x363128(_0x34dd5c['commandName']),_0xa2a33=_0x198af5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ef1d0&&_0x1e6ce7['config']['get']('list.multiBlock')||(_0xa2a33='*Change\x20to:*\x20%0'),_0x1485be={'type':'format','content':c(_0x55805a,_0xa2a33,c(_0x55805a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xa2a33='*Indent:*\x20%0',_0x1485be={'type':'format','content':c(_0x55805a,_0xa2a33,c(_0x55805a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xa2a33=function(_0x232f0b){const _0x8a998e=_0x232f0b['getFirstRange']();let _0x93be48=_0x8a998e['start']['nodeAfter'];for(;_0x93be48&&_0x8a998e['containsItem'](_0x93be48);){if(_0x93be48['getAttribute']('listIndent')>0x0)return!0x1;_0x93be48=_0x93be48['nextSibling'];}return!0x0;}(_0x565a1b)?c(_0x55805a,'*Format:*\x20remove\x20from\x20%0',c(_0x55805a,function(_0xe8f409){return'ELEMENT_'+_0xe8f409['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x565a1b))):c(_0x55805a,'*Outdent:*\x20%0',c(_0x55805a,'ELEMENT_LIST_ITEM')),_0x1485be={'type':'format','content':_0xa2a33};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x34dd5c['multipleBlocks']&&(_0xa2a33='*Merge:*\x20%0',_0x1485be={'type':'deletion','content':c(_0x55805a,_0xa2a33,c(_0x55805a,'ELEMENT_LIST_ITEM'))});}return _0x1485be;});}}function Te(_0x447e96){let _0x49800c=_0x447e96['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x49800c;){const _0x89c049=_0x49800c['getAttribute']('listItemId');if(!_0x89c049)return!0x1;if(_0x89c049==_0x447e96['data']['newValue'])return'newValue';if(_0x89c049==_0x447e96['data']['oldValue'])return'oldValue';_0x49800c=_0x49800c['previousSibling'];}return!0x1;}class Se extends _0x14dd54{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x24ccf6=this['editor']['config']['get']('list.properties'),_0x4ff314=this['editor']['plugins']['get']('TrackChangesEditing');_0x24ccf6['styles']&&(_0x4ff314['enableDefaultAttributesIntegration']('listStyle'),_0x4ff314['registerBlockAttribute']('listStyle')),_0x24ccf6['reversed']&&(_0x4ff314['enableDefaultAttributesIntegration']('listReversed'),_0x4ff314['registerBlockAttribute']('listReversed')),_0x24ccf6['startIndex']&&(_0x4ff314['enableDefaultAttributesIntegration']('listStart'),_0x4ff314['registerBlockAttribute']('listStart'));const _0x4ffd2e={'type':'format','content':''};_0x4ff314['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x16ad19=this['editor']['locale'];_0x4ff314['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x16ad19,'FORMAT_LIST_REVERSED')),_0x4ff314['descriptionFactory']['registerDescriptionCallback'](_0x3cd1c8=>{const {data:_0x3e77f7}=_0x3cd1c8;if(_0x3e77f7&&'listReversed'==_0x3e77f7['key'])return null==_0x3e77f7['newValue']||0x0==_0x3e77f7['newValue']&&null==_0x3e77f7['oldValue']?_0x4ffd2e:void 0x0;}),_0x4ff314['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x16ad19,'FORMAT_LIST_START')),_0x4ff314['descriptionFactory']['registerDescriptionCallback'](_0x8118e6=>{const {data:_0x11b6cb}=_0x8118e6;if(_0x11b6cb&&'listStart'==_0x11b6cb['key'])return null==_0x11b6cb['newValue']||0x1==_0x11b6cb['newValue']&&null==_0x11b6cb['oldValue']?_0x4ffd2e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x39b6ef=>{if(_0x39b6ef['batch']['isUndo'])return!0x1;let _0x35015c=!0x1;const _0x28cca5=_0x4ff314['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f8bde=>{const _0x3316ac=_0x4ff314['_getAttributeKey'](_0x1f8bde);return'listStart'==_0x3316ac||'listReversed'==_0x3316ac;});for(const _0x16be7f of _0x28cca5){const _0x58293e=_0x16be7f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x58293e||'customNumbered'==_0x58293e)continue;_0x4ff314['_findSuggestions'](_0x16be7f['getFirstRange'](),'attribute')['find'](_0xa728f3=>'listType'==_0x4ff314['_getAttributeKey'](_0xa728f3['suggestion']))||(_0x39b6ef['removeMarker'](_0x16be7f['getFirstMarker']()),_0x35015c=!0x0);}return _0x35015c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4e040a){const _0x4821bc=this['editor']['locale'],{data:_0x56fdb9}=_0x4e040a,_0x2992ae={'type':'format','content':''};if(!_0x56fdb9||'listStyle'!=_0x56fdb9['key'])return;if(!_0x56fdb9['oldValue'])return'default'==_0x56fdb9['newValue']?_0x2992ae:{'type':'format','content':''+c(_0x4821bc,'*Set\x20format:*\x20%0',c(_0x4821bc,this['_getTranslationKeyForListStyle'](_0x56fdb9['newValue'])))};if(!_0x56fdb9['newValue']){if('default'==_0x56fdb9['oldValue'])return _0x2992ae;let _0x1fff85=_0x4e040a['head'];for(;_0x1fff85;){if(_0x1fff85['data']&&'listType'==_0x1fff85['data']['key']&&_0x1fff85['data']['newValue'])return _0x2992ae;_0x1fff85=_0x1fff85['next'];}return{'type':'format','content':''+c(_0x4821bc,'*Remove\x20format:*\x20%0',c(_0x4821bc,this['_getTranslationKeyForListStyle'](_0x56fdb9['oldValue'])))};}if('default'!=_0x56fdb9['newValue'])return{'type':'format','content':''+c(_0x4821bc,'*Set\x20format:*\x20%0',c(_0x4821bc,this['_getTranslationKeyForListStyle'](_0x56fdb9['newValue'])))};let _0xc1daee=_0x4e040a['head'];for(;_0xc1daee;){if(_0xc1daee['data']&&'listType'==_0xc1daee['data']['key']&&_0xc1daee['data']['newValue']&&_0xc1daee['data']['oldValue'])return _0x2992ae;_0xc1daee=_0xc1daee['next'];}return{'type':'format','content':c(_0x4821bc,'*Set\x20format:*\x20%0',c(_0x4821bc,'ELEMENT_'+_0x4e040a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1f3f5d=this['editor'],_0x59056a=_0x1f3f5d['locale'];_0x1f3f5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a1d2f=>{if('formatBlock'!=_0x4a1d2f['type'])return;const {data:_0xa8ebdb}=_0x4a1d2f;if(!_0xa8ebdb)return;let _0x40f102,_0x561da0;switch(_0xa8ebdb['commandName']){case'listStyle':_0x40f102='*Change\x20to:*\x20%0',_0x561da0={'type':'format','content':c(_0x59056a,_0x40f102,c(_0x59056a,this['_getTranslationKeyForListStyle'](_0xa8ebdb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40f102=_0xa8ebdb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x561da0={'type':'format','content':c(_0x59056a,_0x40f102)};break;case'listStart':_0x40f102='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x561da0={'type':'format','content':c(_0x59056a,_0x40f102,_0xa8ebdb['commandParams'][0x0]['startIndex'])};}return _0x561da0;});}['_getTranslationKeyForListStyle'](_0x47946c){return'ELEMENT_'+function(_0x4411e1){if(_e['includes'](_0x4411e1))return'bulleted';if(Re['includes'](_0x4411e1))return'numbered';return null;}(_0x47946c)['toUpperCase']()+'_LIST_'+_0x47946c['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x14dd54{['afterInit'](){const _0x2532bb=this['editor'];_0x2532bb['commands']['get']('emoji')&&_0x2532bb['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x14dd54{static get['requires'](){return[_0x3956ce];}['init'](){const _0x522dd1=this['editor'],_0x47965a=_0x522dd1['plugins']['get']('TrackChangesEditing'),_0x348418=_0x522dd1['commands']['get']('enter');_0x47965a['enableCommand']('enter',()=>{_0x522dd1['model']['change'](_0x273332=>{const _0x4819ab=_0x522dd1['model']['document']['selection'],_0x12a584=_0x4819ab['getFirstPosition'](),_0x1f90e3=_0x46c3f4['fromRange'](_0x4819ab['getFirstRange']());if(_0x348418['enterBlock'](_0x273332)){const _0x46fa52=_0x522dd1['model']['createPositionAt'](_0x12a584['parent']['nextSibling'],0x0),_0xe68ccc=_0x273332['createRange'](_0x12a584,_0x46fa52);_0x47965a['markInsertion'](_0xe68ccc);}else _0x273332['setSelection'](_0x273332['createRange'](_0x1f90e3['end']));_0x1f90e3['detach'](),_0x348418['fire']('afterExecute',{'writer':_0x273332});});}),_0x522dd1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x522dd1,'split'),{'priority':'high'}),_0x522dd1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1782bb,_0x30731d,_0x3436c9)=>{const _0x7239bc=_0x3436c9['mapper']['markerNameToElements'](_0x30731d['markerName']);if(_0x7239bc){for(const _0x4007f4 of _0x7239bc)_0x4007f4['hasClass']('ck-suggestion-marker-split')&&(_0x3436c9['mapper']['unbindElementFromMarkerName'](_0x4007f4,_0x30731d['markerName']),_0x3436c9['writer']['remove'](_0x4007f4));}},{'priority':'high'}),_0x522dd1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x330e93,_0x8607aa,_0x3340d1)=>{_0x3340d1['options']['showSuggestionHighlights']&&Fe(_0x522dd1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x330e93,_0x8607aa,_0x3340d1);},{'priority':'high'});}}class Z extends _0x14dd54{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5b8338=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b8338['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5b8338['enableCommand']('findNext'),_0x5b8338['enableCommand']('findPrevious'),_0x5b8338['enableCommand']('replace'),_0x5b8338['enableCommand']('replaceAll');}['handleFindCommand'](_0x392ae1,_0x4f357a,_0xfb6171={}){const _0x2eabc8=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x392ae1(_0x4d5a17=>{let _0x311a18=('string'==typeof _0x4f357a?_0x2eabc8['findByTextCallback'](_0x4f357a,_0xfb6171):_0x4f357a)(_0x4d5a17);Array['isArray'](_0x311a18)&&(_0x311a18={'results':_0x311a18,'searchText':'string'==typeof _0x4f357a?_0x4f357a:''});const _0x3e286d=_0x311a18['results']['filter'](_0x556ffa=>!0x1===this['_isInDeletionRange'](_0x556ffa,_0x4d5a17['item']));return{..._0x311a18,'results':_0x3e286d};},_0xfb6171);}['_isInDeletionRange'](_0x329b4e,_0x26e11b){const _0x3ef40c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26e11b,_0x329b4e['start']),this['editor']['model']['createPositionAt'](_0x26e11b,_0x329b4e['end']));for(const _0x50bf4c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3ef40c['getIntersection'](_0x50bf4c['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x14dd54{['afterInit'](){const _0x57548a=this['editor']['locale'],_0x44a523=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xab93d9,commandName:_0x2d952b}of ro)this['editor']['plugins']['has'](_0xab93d9)&&(_0x44a523['enableDefaultAttributesIntegration'](_0x2d952b),_0x44a523['registerInlineAttribute'](_0x2d952b));_0x44a523['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x57548a,'FORMAT_FONT_SIZE')),_0x44a523['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x57548a,'FORMAT_FONT_FAMILY')),_0x44a523['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x57548a,'FORMAT_FONT_COLOR')),_0x44a523['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x57548a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b156a=this['editor'],_0x299f67=_0x1b156a['locale'];_0x1b156a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5db77a=>{const _0x257aa7=_0x299f67['t'];if('formatInline'!=_0x5db77a['type'])return;const {data:_0x29d8d8}=_0x5db77a;if(null!=_0x29d8d8){if('fontSize'==_0x29d8d8['commandName']){const _0x1873f7=_0x29d8d8['commandParams'][0x0]['value'];if(_0x1873f7){const _0x775e0b=_0x257aa7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x498759=>_0x498759['model']==_0x1873f7)['title'])['toLowerCase']();return{'type':'format','content':c(_0x299f67,'*Set\x20font\x20size:*\x20%0',_0x775e0b)};}return{'type':'format','content':c(_0x299f67,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x29d8d8['commandName']){const _0x4f1f6b=_0x29d8d8['commandParams'][0x0]['value'];return _0x4f1f6b?{'type':'format','content':c(_0x299f67,'*Set\x20font\x20family:*\x20%0',_0x4f1f6b)}:{'type':'format','content':c(_0x299f67,'*Reset\x20font\x20family*')};}if('fontColor'==_0x29d8d8['commandName']){const _0x337cc7=_0x29d8d8['commandParams'][0x0]['value'];if(_0x337cc7){const _0x46a4fe=_0x52732e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2770b3=>_0x2770b3['model']==_0x337cc7);let _0x16bef0=_0x337cc7,_0x27cd98='';return _0x46a4fe&&(_0x16bef0=_0x46a4fe['label'],_0x27cd98=_0x257aa7(_0x16bef0)['toLowerCase']()),{'type':'format','content':c(_0x299f67,'*Set\x20font\x20color:*\x20%0',_0x27cd98)['trim'](),'color':{'value':_0x337cc7,'title':_0x27cd98||_0x16bef0}};}return{'type':'format','content':c(_0x299f67,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x29d8d8['commandName']){const _0x51a5df=_0x29d8d8['commandParams'][0x0]['value'];if(_0x51a5df){const _0xa2945c=_0x52732e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5cafb3=>_0x5cafb3['model']==_0x51a5df);let _0x190db9=_0x51a5df,_0x534e7f='';return _0xa2945c&&(_0x190db9=_0xa2945c['label'],_0x534e7f=_0x257aa7(_0x190db9)['toLowerCase']()),{'type':'format','content':c(_0x299f67,'*Set\x20font\x20background\x20color:*\x20%0',_0x534e7f)['trim'](),'color':{'value':_0x51a5df,'title':_0x534e7f||_0x190db9}};}return{'type':'format','content':c(_0x299f67,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x14dd54{['afterInit'](){const _0x889ca9=this['editor'],_0x57d9af=_0x889ca9['plugins']['get']('TrackChangesEditing'),_0x2f38e3=_0x889ca9['commands']['get']('copyFormat'),_0x52104e=_0x889ca9['commands']['get']('pasteFormat');_0x2f38e3&&_0x52104e&&(_0x57d9af['enableDefaultAttributesIntegration']('pasteFormat'),_0x57d9af['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x42a95b=this['editor'],_0x3afa49=_0x42a95b['locale'];_0x42a95b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfb2c4b=>{if('formatBlock'!=_0xfb2c4b['type']&&'formatInline'!=_0xfb2c4b['type'])return;const {data:_0x53ea7e}=_0xfb2c4b;if(_0x53ea7e&&'pasteFormat'===_0x53ea7e['commandName']){const _0x208835=[],_0x520675=_0x53ea7e['commandParams'][0x0];for(const [_0x577bf9,_0x5d0821]of Object['entries'](_0x520675))_0x208835['push'](so(_0x42a95b,_0x577bf9,_0x5d0821));return _0x208835['length']?{'type':'format','content':c(_0x3afa49,'*Set\x20format\x20to:*\x20%0',_0x208835['join'](',\x20'))}:{'type':'format','content':c(_0x3afa49,'*Remove\x20all\x20formatting*')};}});}}function so(_0x12e495,_0x219063,_0x1cfec0){const _0x1e3622=_0x12e495['locale']['t'],_0x472a7b=_0x219063['split'](/(?=[A-Z])/)['join']('\x20'),_0x33571a=_0x1e3622(_0x472a7b['charAt'](0x0)['toUpperCase']()+_0x472a7b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1cfec0)return _0x33571a;if('fontColor'===_0x219063||'fontBackgroundColor'===_0x219063){const _0x11e6e2=_0x52732e(_0x12e495['config']['get']('fontColor.colors'))['find'](_0x538ed8=>_0x538ed8['model']==_0x1cfec0);return _0x33571a+'\x20('+(_0x11e6e2?_0x1e3622(_0x11e6e2['label'])['toLowerCase']():_0x1cfec0)+')';}if('fontSize'===_0x219063&&isNaN(parseFloat(_0x1cfec0))){const _0x19d918=_0x12e495['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x12e495['config']['get']('fontSize.options'))['find'](_0x4f842a=>_0x4f842a['model']==_0x1cfec0);return _0x33571a+'\x20('+(_0x19d918?_0x1e3622(_0x19d918['title'])['toLowerCase']():_0x1cfec0)+')';}return _0x33571a+'\x20('+_0x1cfec0+')';}class et extends _0x14dd54{['_headingOptions'];['afterInit'](){const _0x5a4e2d=this['editor'];if(!_0x5a4e2d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5a4e2d['config']['get']('heading.options');const _0x59b9e6=_0x5a4e2d['locale'],_0x9fc2b7=_0x5a4e2d['plugins']['get']('TrackChangesEditing');_0x9fc2b7['enableDefaultAttributesIntegration']('heading');for(const _0x18d04b of this['_headingOptions'])'paragraph'!=_0x18d04b['model']&&_0x9fc2b7['descriptionFactory']['registerElementLabel'](_0x18d04b['model'],_0x4a18aa=>{const _0xe1eddb=this['_getHeadingLevel'](_0x18d04b['model']);return null!==_0xe1eddb?_0x462957(_0x4a18aa,_0xe1eddb):_0x3e71cd(_0x4a18aa,_0x18d04b['title']);});function _0x462957(_0x149c40,_0x9909eb){return c(_0x59b9e6,'ELEMENT_HEADING',[_0x149c40,_0x9909eb]);}function _0x3e71cd(_0x10a6bf,_0x421173){return c(_0x59b9e6,'ELEMENT_HEADING_CUSTOM',[_0x10a6bf,_0x421173]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ad353=this['editor'],_0xb74692=_0x5ad353['locale'];function _0x1999f0(_0x24ab0e,_0x50808b){return c(_0xb74692,'ELEMENT_HEADING_CUSTOM',[_0x24ab0e,_0x50808b]);}_0x5ad353['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a78f2=>{if('formatBlock'!=_0x3a78f2['type'])return;const {data:_0x11af86}=_0x3a78f2;if(_0x11af86&&'heading'==_0x11af86['commandName']){const _0x690d79=_0x11af86['commandParams'][0x0]['value'],_0x2daaaa=this['_getHeadingLevel'](_0x690d79);if(null!==_0x2daaaa)return{'type':'format','content':c(_0xb74692,'*Change\x20to:*\x20%0',(_0x474aa3=0x1,_0x414aa5=_0x2daaaa,c(_0xb74692,'ELEMENT_HEADING',[_0x474aa3,_0x414aa5])))};const _0x50ed17=this['_headingOptions']['find'](_0x5009e8=>_0x5009e8['model']===_0x690d79)['title'];return{'type':'format','content':c(_0xb74692,'*Change\x20to:*\x20%0',_0x1999f0(0x1,_0x50ed17))};}var _0x474aa3,_0x414aa5;});}['_getHeadingLevel'](_0x119bd2){const _0x2d4c96=_0x119bd2['match'](/^heading(\d+)/);if(_0x2d4c96)return _0x2d4c96[0x1];const _0x225e8b=this['_headingOptions']?.['find'](_0x152dcd=>_0x152dcd['model']==_0x119bd2);if(_0x225e8b&&_0x225e8b['view']){const _0x3df878=_0x225e8b['view'],_0x1ae623=(_0x3df878['name']??_0x3df878)['match'](/^h(\d+)/);if(_0x1ae623)return _0x1ae623[0x1];}return null;}}class nt extends _0x14dd54{['afterInit'](){const _0x27df81=this['editor'];if(!_0x27df81['plugins']['has']('HighlightEditing'))return;const _0x320090=_0x27df81['plugins']['get']('TrackChangesEditing'),_0xf9bf6a=_0x27df81['locale'];_0x320090['enableDefaultAttributesIntegration']('highlight'),_0x320090['registerInlineAttribute']('highlight'),_0x320090['descriptionFactory']['registerAttributeLabel']('highlight',c(_0xf9bf6a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52e368=this['editor'],_0x10719d=_0x52e368['locale'];_0x52e368['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53f8f3=>{if('formatInline'!=_0x53f8f3['type'])return;const {data:_0x25bcd5}=_0x53f8f3;if(_0x25bcd5&&'highlight'==_0x25bcd5['commandName']){const _0x4fdc43=_0x10719d['t'],_0x5d6584=_0x25bcd5['commandParams'][0x0]['value'];if(_0x5d6584){const _0x1ec7ee=_0x52e368['config']['get']('highlight.options')['find'](_0x476bb6=>_0x476bb6['model']==_0x5d6584),_0x1c812f=_0x4fdc43(_0x1ec7ee['title'])['toLowerCase']();return{'type':'format','content':c(_0x10719d,'*Set\x20highlight:*\x20%0',_0x1c812f),'color':{'value':_0x1ec7ee['color'],'title':_0x1ec7ee['title']}};}return{'type':'format','content':c(_0x10719d,'*Remove\x20highlight*',c(_0x10719d,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x14dd54{['afterInit'](){const _0x3fdb74=this['editor'];if(!_0x3fdb74['plugins']['has']('HorizontalLineEditing'))return;_0x3fdb74['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x23b543=_0x3fdb74['plugins']['get']('TrackChangesEditing'),_0x328c74=_0x3fdb74['locale'];_0x23b543['descriptionFactory']['registerElementLabel']('horizontalLine',_0x31b76d=>c(_0x328c74,'ELEMENT_HORIZONTAL_LINE',_0x31b76d)),_0x3fdb74['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x8a05f8,{writer:_0xcc52ef,options:_0x163351})=>{if(!_0x163351['showSuggestionHighlights'])return null;const _0x20913d=_0xcc52ef['createContainerElement']('div'),_0x536ea8=_0xcc52ef['createEmptyElement']('hr');return _0xcc52ef['addClass']('ck-horizontal-line',_0x20913d),_0xcc52ef['insert'](_0xcc52ef['createPositionAt'](_0x20913d,0x0),_0x536ea8),_0x20913d;},'converterPriority':'high'});}}class ot extends _0x14dd54{['afterInit'](){const _0x1c28d6=this['editor'];if(!_0x1c28d6['plugins']['has']('HtmlEmbed'))return;const _0x45d9cb=_0x1c28d6['plugins']['get']('TrackChangesEditing'),_0x41a764=_0x1c28d6['locale'];_0x45d9cb['descriptionFactory']['registerElementLabel']('rawHtml',_0x25f870=>c(_0x41a764,'ELEMENT_HTML_EMBED',_0x25f870)),_0x45d9cb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x45d9cb['registerBlockAttribute']('value'),_0x45d9cb['descriptionFactory']['registerDescriptionCallback'](_0x1c38a2=>{if('attribute'!=_0x1c38a2['type'])return;const {data:_0xb4c340}=_0x1c38a2;if(_0xb4c340&&'value'==_0xb4c340['key']&&_0x1c38a2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xf1b88d=c(_0x41a764,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x41a764,'*Change\x20%0\x20content*',_0xf1b88d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c187b=this['editor'],_0x3c23d1=_0x3c187b['locale'];_0x3c187b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x497dcc=>{if('formatBlock'!=_0x497dcc['type'])return;const {data:_0x462a1d}=_0x497dcc;if(_0x462a1d&&'htmlEmbed'==_0x462a1d['commandName']){const _0x525030=c(_0x3c23d1,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x3c23d1,'*Change\x20%0\x20content*',_0x525030)};}});}}class rt extends _0x14dd54{['afterInit'](){const _0x310110=this['editor'];if(!_0x310110['plugins']['has']('ImageEditing'))return;const _0x1e4b7d=_0x310110['plugins']['get']('TrackChangesEditing'),_0x290bd6=_0x310110['plugins']['get']('ImageUtils'),_0x3c2965=_0x310110['locale'];_0x1e4b7d['enableCommand']('insertImage'),_0x1e4b7d['descriptionFactory']['registerElementLabel']('imageBlock',_0x541e7f=>c(_0x3c2965,'ELEMENT_IMAGE',_0x541e7f)),_0x1e4b7d['descriptionFactory']['registerElementLabel']('imageInline',_0x2675a3=>c(_0x3c2965,'ELEMENT_INLINE_IMAGE',_0x2675a3)),_0x1e4b7d['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x3c2965,'ELEMENT_CAPTION')),_0x310110['plugins']['has']('ImageUploadEditing')&&_0x1e4b7d['enableCommand']('uploadImage'),_0x310110['plugins']['has']('ImageBlockEditing')&&_0x310110['plugins']['has']('ImageInlineEditing')&&(_0x1e4b7d['enableCommand']('imageTypeInline',(_0x5b58a9,_0x231a18)=>{const _0x48ea6d=_0x290bd6['getClosestSelectedImageElement'](_0x310110['model']['document']['selection']);_0x310110['model']['change'](()=>{_0x1e4b7d['markBlockFormat'](_0x48ea6d,{'commandName':'imageTypeInline','commandParams':[_0x231a18]},[],'convertBlockImageToInline');});}),_0x1e4b7d['enableCommand']('imageTypeBlock',(_0x16594d,_0x204363)=>{_0x310110['model']['change'](_0x549176=>{let _0x18ca31=_0x290bd6['getClosestSelectedImageElement'](_0x310110['model']['document']['selection']),_0xa93c4b=_0x549176['createRangeOn'](_0x18ca31);const _0x441396=_0x3cc174['fromPosition'](_0xa93c4b['start'],'toPrevious'),_0x5d52b8=_0x3cc174['fromPosition'](_0xa93c4b['end'],'toNext');_0x1e4b7d['forceDefaultExecution'](()=>_0x16594d(_0x204363)),_0x18ca31=_0x290bd6['getClosestSelectedImageElement'](_0x310110['model']['document']['selection']),_0xa93c4b=_0x549176['createRangeOn'](_0x18ca31);const _0x11e8a4=_0x549176['createRange'](_0x441396,_0x5d52b8);_0x441396['detach'](),_0x5d52b8['detach'](),_0x1e4b7d['markBlockFormat'](_0x18ca31,{'commandName':'imageTypeInline','commandParams':[_0x204363]},[],'convertInlineImageToBlock'),_0x11e8a4['start']['isBefore'](_0xa93c4b['start'])&&_0x1e4b7d['markInsertion'](_0x549176['createRange'](_0x11e8a4['start'],_0xa93c4b['start']),'convertInlineImageToBlock'),_0xa93c4b['end']['isBefore'](_0x11e8a4['end'])&&_0x1e4b7d['markInsertion'](_0x549176['createRange'](_0xa93c4b['end'],_0x11e8a4['end']),'convertInlineImageToBlock');});}),_0x1e4b7d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1e4b7d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1e4b7d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1e4b7d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1e4b7d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1e4b7d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x23a477])=>{const _0x5400b8=_0x1e4b7d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x585615=_0x23a477['start'],_0x4d6094=_0x23a477['end'];const _0x204fd3=_0x310110['model']['schema']['getNearestSelectionRange'](_0x585615,'backward'),_0x5adbab=_0x310110['model']['schema']['getNearestSelectionRange'](_0x4d6094,'forward');_0x204fd3['isCollapsed']&&(_0x585615=_0x204fd3['start']),_0x5adbab['isCollapsed']&&(_0x4d6094=_0x5adbab['end']),_0x5400b8([_0x310110['model']['createRange'](_0x585615,_0x4d6094)]);}),_0x1e4b7d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3e2814),_0x1e4b7d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3e2814)),_0x310110['plugins']['has']('ImageCaptionEditing')&&(_0x1e4b7d['enableCommand']('toggleImageCaption',(_0x3791ff,_0x31fba1)=>{const _0x4598b7=_0x310110['plugins']['get']('ImageCaptionUtils');let _0x4a66ec=_0x290bd6['getClosestSelectedImageElement'](_0x310110['model']['document']['selection']),_0x1bd4fc=_0x4598b7['getCaptionFromImageModelElement'](_0x4a66ec);_0x310110['model']['change'](()=>{if(_0x1bd4fc)return void _0x1e4b7d['markDeletion'](_0x310110['model']['createRangeOn'](_0x1bd4fc));const _0x5dfe0f=_0x290bd6['isBlockImage'](_0x4a66ec);_0x3791ff(_0x31fba1),_0x4a66ec=_0x290bd6['getClosestSelectedImageElement'](_0x310110['model']['document']['selection']),_0x1bd4fc=_0x4598b7['getCaptionFromImageModelElement'](_0x4a66ec),_0x1e4b7d['markInsertion'](_0x310110['model']['createRangeOn'](_0x1bd4fc),_0x5dfe0f?null:'imageCaption');});}),_0x1e4b7d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3e2814));const _0x262524=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x596663(_0x3595a5,_0x2de916){const _0x2d3671=_0x262524['findIndex'](({type:_0x384776,subType:_0x2bc612})=>_0x3595a5['type']==_0x384776&&_0x3595a5['subType']==_0x2bc612),_0x48e232=_0x262524['findIndex'](({type:_0x15af57,subType:_0x4292e3})=>_0x2de916['type']==_0x15af57&&_0x2de916['subType']==_0x4292e3);if(_0x2d3671<0x0||_0x48e232<0x0)return!0x1;const _0x2bf0c9=_0x3595a5['getFirstRange'](),_0x500c1c=_0x2de916['getFirstRange']();if((0x0==_0x2d3671||0x1==_0x2d3671)&&0x2==_0x48e232&&_0x2bf0c9['isIntersecting'](_0x500c1c))return!0x0;if(0x2==_0x2d3671&&0x3==_0x48e232){const _0x2c959e=_0x1e4b7d['_findSuggestions'](_0x2bf0c9,'insertion')['filter'](({suggestion:_0x1f4a23,meta:_0x4d626e})=>_0x4d626e['isOwn']&&'convertInlineImageToBlock'==_0x1f4a23['subType']);if(_0x2c959e['length']>0x1&&_0x500c1c['end']['isEqual'](_0x2bf0c9['start']))return!0x0;if(0x1==_0x2c959e['length']&&(_0x2bf0c9['start']['isEqual'](_0x500c1c['end'])||_0x2bf0c9['end']['isEqual'](_0x500c1c['start'])))return!0x0;}if(0x3==_0x2d3671&&0x3==_0x48e232&&_0x2bf0c9['start']['isBefore'](_0x500c1c['start'])){const _0x519b8d=_0x2bf0c9['end']['nodeAfter'],_0x4a29c2=_0x500c1c['start']['nodeBefore'];return _0x290bd6['isBlockImage'](_0x519b8d)&&_0x519b8d===_0x4a29c2;}return!0x1;}function _0x3e2814(_0x49693e,_0x42ee16){return _0x596663(_0x49693e,_0x42ee16)?[_0x49693e,_0x42ee16]:_0x596663(_0x42ee16,_0x49693e)?[_0x42ee16,_0x49693e]:null;}_0x310110['plugins']['has']('ImageResize')&&(_0x1e4b7d['enableDefaultAttributesIntegration']('resizeImage'),_0x1e4b7d['registerBlockAttribute']('resizedWidth'),_0x1e4b7d['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x3c2965,'FORMAT_IMAGE_SIZE'))),_0x310110['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1e4b7d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1e4b7d['registerBlockAttribute']('alt')),_0x310110['plugins']['has']('PictureEditing')&&(_0x1e4b7d['registerBlockAttribute']('sources'),_0x1e4b7d['descriptionFactory']['registerDescriptionCallback'](_0x2a6f84=>{if('attribute'!=_0x2a6f84['type'])return;const {data:_0x308768}=_0x2a6f84;return _0x308768&&'sources'==_0x308768['key']?{'type':'format','content':''}:void 0x0;})),_0x310110['plugins']['has']('ImageSizeAttributes')&&(_0x1e4b7d['registerBlockAttribute']('width'),_0x1e4b7d['registerBlockAttribute']('height'),_0x1e4b7d['descriptionFactory']['registerDescriptionCallback'](_0x4aa99b=>{if('attribute'!=_0x4aa99b['type'])return;const {data:_0x17b80b}=_0x4aa99b;return!_0x17b80b||'width'!=_0x17b80b['key']&&'height'!=_0x17b80b['key']?void 0x0:{'type':'format','content':''};})),_0x1e4b7d['descriptionFactory']['registerDescriptionCallback'](_0x2cf3ed=>{if(!!_0x262524['find'](({type:_0x2df45d,subType:_0x422bc8})=>_0x2cf3ed['type']==_0x2df45d&&_0x2cf3ed['subType']==_0x422bc8))return _0x2cf3ed['previous']?{}:void 0x0;}),_0x1e4b7d['descriptionFactory']['registerDescriptionCallback'](_0x565d55=>{if('insertion'==_0x565d55['type']||'deletion'==_0x565d55['type']){const _0x2e02f7=_0x565d55['getContainedElement']();if(_0x2e02f7&&_0x2e02f7['is']('element','caption'))return{'type':'insertion'==_0x565d55['type']?'addObject':'removeObject','element':_0x2e02f7,'quantity':0x1};}}),_0x1e4b7d['descriptionFactory']['registerDescriptionCallback'](_0x36f593=>'formatBlock'==_0x36f593['type']&&'convertInlineImageToBlock'==_0x36f593['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x36f593['type']&&'convertBlockImageToInline'==_0x36f593['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1e4b7d['descriptionFactory']['registerDescriptionCallback'](_0x5228b6=>{if('attribute'!=_0x5228b6['type'])return;const {data:_0x43ff51}=_0x5228b6;if(!_0x43ff51||'alt'!=_0x43ff51['key'])return;const _0x146259=_0x43ff51['newValue'];return _0x146259?{'type':'format','content':c(_0x3c2965,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x146259+'\x22')}:{'type':'format','content':c(_0x3c2965,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ce36e=this['editor'],_0x519b68=_0x4ce36e['locale'];_0x4ce36e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10cb2f=>{if('formatBlock'!=_0x10cb2f['type']&&'formatInline'!=_0x10cb2f['type'])return;const {data:_0x39ca31}=_0x10cb2f;if(_0x39ca31){if('imageTextAlternative'==_0x39ca31['commandName']){const _0x43cf8d=_0x39ca31['commandParams'][0x0]['newValue'];return _0x43cf8d?{'type':'format','content':c(_0x519b68,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43cf8d+'\x22')}:{'type':'format','content':c(_0x519b68,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x39ca31['commandName']){const _0x34e2de=_0x39ca31['commandParams'][0x0]['width'];return _0x34e2de?{'type':'format','content':c(_0x519b68,'*Set\x20image\x20width:*\x20%0',_0x34e2de)}:{'type':'format','content':c(_0x519b68,'*Reset\x20image\x20width*')};}}});}}class at extends _0x14dd54{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x31fad5=this['editor']['locale'],_0x4b55db=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b55db['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4b55db['registerBlockAttribute']('src'),_0x4b55db['descriptionFactory']['registerDescriptionCallback'](_0x4b743e=>{if('attribute'!=_0x4b743e['type'])return;const {data:_0x57e82f}=_0x4b743e;return _0x57e82f&&'src'==_0x57e82f['key']?_0x57e82f['newValue']&&_0x57e82f['oldValue']?{'type':'format','content':c(_0x31fad5,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2051c4=this['editor']['plugins']['get']('TrackChangesEditing');_0x2051c4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2051c4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2051c4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2051c4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dd80b=this['editor'],_0x43047f=_0x3dd80b['locale'];_0x3dd80b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb1ec12=>{if('formatBlock'!=_0xb1ec12['type']&&'formatInline'!=_0xb1ec12['type'])return;const {data:_0x411e98}=_0xb1ec12;if(!_0x411e98||'replaceImageSource'!=_0x411e98['commandName'])return;return{'type':'format','content':c(_0x43047f,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x14dd54{['afterInit'](){const _0x3fad7c=this['editor'];if(!_0x3fad7c['plugins']['has']('ImageStyleEditing'))return;const _0x330928=_0x3fad7c['plugins']['get']('TrackChangesEditing'),_0x3b4bc8=_0x3fad7c['plugins']['get']('ImageUtils'),_0x12cc32={};_0x330928['enableCommand']('imageStyle',(_0x2bcea0,_0x19e72d)=>{const _0xe1867d=_0x3fad7c['plugins']['get']('Users')['me'],_0x709b80=_0x3fad7c['commands']['get']('imageStyle');let _0x38cd8d=_0x3b4bc8['getClosestSelectedImageElement'](_0x3fad7c['model']['document']['selection']),_0xd2d245=_0x3fad7c['model']['createRangeOn'](_0x38cd8d),_0x195a01=_0x709b80['value'];if(_0x195a01==_0x19e72d['value'])return;const _0x15d6ed={'commandName':'imageStyle','commandParams':[_0x19e72d],'formatGroupId':_0x425596()};_0x3fad7c['model']['change'](()=>{if(_0x330928['getSuggestions']()['filter'](_0x2024ec=>_0x2024ec['isInContent']&&_0xe1867d==_0x2024ec['author']&&('formatBlock'==_0x2024ec['type']||'formatInline'==_0x2024ec['type'])&&('imageStylePreApply'==_0x2024ec['subType']||'imageStylePostApply'==_0x2024ec['subType'])&&_0x2024ec['getFirstRange']()['isEqual'](_0xd2d245))['forEach'](_0x497b0c=>_0x330928['discardSuggestion'](_0x497b0c['head'])),_0x38cd8d=_0x3b4bc8['getClosestSelectedImageElement'](_0x3fad7c['model']['document']['selection']),_0xd2d245=_0x3fad7c['model']['createRangeOn'](_0x38cd8d),_0x709b80['refresh'](),_0x3fad7c['commands']['get']('imageTypeInline')['refresh'](),_0x3fad7c['commands']['get']('imageTypeBlock')['refresh'](),_0x195a01=_0x709b80['value'],_0x195a01!=_0x19e72d['value'])return _0x3b4bc8['isInlineImage'](_0x38cd8d)&&_0x709b80['shouldConvertImageType'](_0x19e72d['value'],_0x38cd8d)?(_0x2bcea0({..._0x19e72d,'setImageSizes':!0x1}),_0x38cd8d=_0x3b4bc8['getClosestSelectedImageElement'](_0x3fad7c['model']['document']['selection']),void _0x330928['markBlockFormat'](_0x38cd8d,{..._0x15d6ed,'commandReversedParams':[{'value':_0x195a01||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3b4bc8['isBlockImage'](_0x38cd8d)?_0x330928['markBlockFormat'](_0x38cd8d,_0x15d6ed,[],'imageStylePostApply'):_0x330928['markInlineFormat'](_0xd2d245,_0x15d6ed,'imageStylePostApply'));});});for(const _0x35cfd9 of _0x3fad7c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x12cc32[_0x35cfd9['name']]=_0x35cfd9['title']['toLowerCase']();_0x330928['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x330928['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x330928['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x330928['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5af61d])=>{_0x3b4bc8['setImageNaturalSizeAttributes'](_0x5af61d['getContainedElement']());}),_0x330928['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4f7836,_0x3c273e)=>{_0x330928['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4f7836,{'commandName':_0x3c273e['commandName'],'commandParams':_0x3c273e['commandReversedParams']});}),_0x330928['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x260ba8,_0x5dc92d){if(_0x343d15(_0x260ba8,_0x5dc92d))return[_0x260ba8,_0x5dc92d];if(_0x343d15(_0x5dc92d,_0x260ba8))return[_0x5dc92d,_0x260ba8];return null;});const _0x1c59f0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x343d15(_0x34bb94,_0x463335){const _0x156cf4=_0x1c59f0['findIndex'](({type:_0x31990c,subType:_0x4083ef})=>_0x34bb94['type']==_0x31990c&&_0x34bb94['subType']==_0x4083ef),_0x405b8f=_0x1c59f0['findIndex'](({type:_0xc5800b,subType:_0x16490c})=>_0x463335['type']==_0xc5800b&&_0x463335['subType']==_0x16490c);if(_0x156cf4<0x0||_0x405b8f<0x0)return!0x1;const _0x2581cc=_0x34bb94['getFirstRange'](),_0xc7ae76=_0x463335['getFirstRange']();if((0x0==_0x156cf4||0x1==_0x156cf4)&&0x2==_0x405b8f&&_0x2581cc['isIntersecting'](_0xc7ae76))return!0x0;if(0x2==_0x156cf4&&0x3==_0x405b8f){const _0x53422b=_0x330928['_findSuggestions'](_0x2581cc,'insertion')['filter'](({suggestion:_0x2c308d,meta:_0x14f736})=>_0x14f736['isOwn']&&'convertInlineImageToBlock'==_0x2c308d['subType']);if(_0x53422b['length']>0x1&&_0xc7ae76['end']['isEqual'](_0x2581cc['start']))return!0x0;if(0x1==_0x53422b['length']&&(_0x2581cc['start']['isEqual'](_0xc7ae76['end'])||_0x2581cc['end']['isEqual'](_0xc7ae76['start'])))return!0x0;}if(0x3==_0x156cf4&&0x3==_0x405b8f&&_0x2581cc['start']['isBefore'](_0xc7ae76['start'])){const _0xbd6672=_0x2581cc['end']['nodeAfter'],_0x10b154=_0xc7ae76['start']['nodeBefore'];return _0x3b4bc8['isBlockImage'](_0xbd6672)&&_0xbd6672===_0x10b154;}return!0x1;}_0x3fad7c['model']['document']['registerPostFixer'](()=>{let _0x4569e7=!0x1;const _0x17594c=Array['from'](_0x3fad7c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x978bb7,data:_0x3bed32}of _0x17594c){const {group:_0x1296db,type:_0x3e94e8,subType:_0x507fa2,id:_0xdd7fad}=_0x330928['_splitMarkerName'](_0x978bb7);if('suggestion'==_0x1296db&&_0x330928['hasSuggestion'](_0xdd7fad)){if('formatBlock'==_0x3e94e8&&('imageStylePreApply'==_0x507fa2||'imageStylePostApply'==_0x507fa2)){const _0x465a41=_0x330928['getSuggestion'](_0xdd7fad);if(_0x3bed32['newRange']){const _0x5827d0=_0x465a41['getFirstRange']()['getContainedElement']();if(_0x3b4bc8['isBlockImage'](_0x5827d0))continue;_0x330928['discardSuggestion'](_0x465a41),_0x4569e7=!0x0;}}if('insertion'==_0x3e94e8&&'imageCaption'==_0x507fa2&&!_0x3bed32['newRange']){const _0x4a3f15=_0x330928['getSuggestion'](_0xdd7fad);_0x4a3f15['next']&&_0x4a3f15['next']['isInContent']&&(_0x330928['discardSuggestion'](_0x4a3f15['next']),_0x4569e7=!0x0);}}}return _0x4569e7;}),this['_registerLegacyDescription'](_0x12cc32);}['_registerLegacyDescription'](_0x502305){const _0x30f590=this['editor'],_0x141da2=_0x30f590['locale'];_0x30f590['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37077b=>{if('formatBlock'!=_0x37077b['type']&&'formatInline'!=_0x37077b['type'])return;const {data:_0x272863}=_0x37077b;if(!_0x272863||'imageStyle'!=_0x272863['commandName'])return;const _0x8936b0=_0x272863['commandParams'][0x0]['value'];return _0x2a364('side'===_0x8936b0?c(_0x141da2,'FORMAT_SIDE_IMAGE'):_0x502305[_0x8936b0]||_0x8936b0);function _0x2a364(_0xb8babf){return{'type':'format','content':c(_0x141da2,'*Format:*\x20%0',_0xb8babf)};}});}}class ut extends _0x14dd54{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x214819){super(_0x214819),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1e1cc7=this['editor'],_0x2d1ac3=_0x1e1cc7['commands']['get']('importWord'),_0x1a7884=_0x1e1cc7['commands']['get']('trackChanges');_0x2d1ac3&&(_0x2d1ac3['on']('execute',(_0x4b1afd,[,_0x531098])=>{this['_trackChangesValueDuringImport']=_0x1a7884['value'],_0x531098['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2d1ac3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2d1ac3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1a7884['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1e1cc7['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2673af,_0x11b062){const {suggestions:_0x30edce}=_0x11b062,_0x5790d5=this['editor']['commands']['get']('trackChanges'),_0x2da035=_0x5790d5['value'];this['_trackChangesValueDuringImport']!==_0x2da035&&(_0x5790d5['execute'](),this['_trackChangesExecuted']=!0x0),_0x30edce&&_0x30edce['forEach'](({id:_0x312851,type:_0x4668a0,author:_0x2a1a20,created_at:_0x5c28d6})=>{const _0x2191a5={'id':_0x312851,'type':_0x4668a0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2a1a20,'createdAt':_0x5c28d6?new Date(_0x5c28d6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2191a5);});}}class ft extends _0x14dd54{['afterInit'](){const _0x4c4028=this['editor'],_0x6086e7=_0x4c4028['plugins']['get']('TrackChangesEditing');if(_0x4c4028['plugins']['has']('IndentEditing')&&(_0x6086e7['enableCommand']('indent'),_0x6086e7['enableCommand']('outdent')),_0x4c4028['plugins']['has']('IndentBlock')){for(const _0x977506 of['indentBlock','outdentBlock'])_0x6086e7['enableDefaultAttributesIntegration'](_0x977506);}const _0x41a402=_0x4c4028['locale'];_0x6086e7['registerBlockAttribute']('blockIndent'),_0x6086e7['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x41a402,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b080c=this['editor'],_0x497257=_0x5b080c['locale'],_0x2d2536=_0x5b080c['plugins']['get']('TrackChangesEditing');_0x2d2536['descriptionFactory']['registerDescriptionCallback'](_0x48d648=>{if('formatBlock'!=_0x48d648['type'])return;const {data:_0x3256f5}=_0x48d648;if(!_0x3256f5)return;if('indentBlock'!=_0x3256f5['commandName']&&'outdentBlock'!=_0x3256f5['commandName'])return;const _0x487642=_0x48d648['getItems']()[0x0],_0x5bb336=_0x2d2536['descriptionFactory']['getItemLabel'](_0x487642);return'indentBlock'==_0x3256f5['commandName']?{'type':'format','content':c(_0x497257,'*Indent:*\x20%0',_0x5bb336)}:'outdentBlock'==_0x3256f5['commandName']?{'type':'format','content':c(_0x497257,'*Outdent:*\x20%0',_0x5bb336)}:void 0x0;});}}class ht extends _0x14dd54{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x14dd54{['afterInit'](){const _0x148acf=this['editor'];if(!_0x148acf['plugins']['has']('LinkEditing'))return;const _0x4c8de0=_0x148acf['plugins']['get']('TrackChangesEditing'),_0x28690f=_0x148acf['commands']['get']('link');_0x4c8de0['enableDefaultAttributesIntegration']('link'),_0x4c8de0['enableDefaultAttributesIntegration']('unlink'),_0x4c8de0['registerInlineAttribute']('linkHref');for(const _0x104f1e of _0x28690f['manualDecorators'])_0x4c8de0['registerInlineAttribute'](_0x104f1e['id']),_0x4c8de0['descriptionFactory']['registerAttributeLabel'](_0x104f1e['id'],'link\x20('+_0x104f1e['label']['toLowerCase']()+')');_0x4c8de0['descriptionFactory']['registerDescriptionCallback'](_0xdbd12b=>{if('attribute'!=_0xdbd12b['type'])return;const {data:_0x3085c0}=_0xdbd12b;if(!_0x3085c0||'linkHref'!=_0x3085c0['key'])return;const _0x45f323=_0x3085c0['newValue'],_0x459ecc=_0x148acf['locale'];return{'type':'format','content':null==_0x45f323?c(_0x459ecc,'*Remove\x20link*'):c(_0x459ecc,'*Set\x20link:*\x20%0','\x22'+_0x45f323+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c6a62=this['editor'],_0x574865=_0x3c6a62['locale'];_0x3c6a62['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x297759=>{if('formatInline'!=_0x297759['type'])return;const {data:_0xfafcb7}=_0x297759;if(_0xfafcb7){if('link'==_0xfafcb7['commandName']){const _0x290308=_0xfafcb7['commandParams'][0x0];return{'type':'format','content':c(_0x574865,'*Set\x20link:*\x20%0','\x22'+_0x290308+'\x22')};}return'unlink'==_0xfafcb7['commandName']?{'type':'format','content':c(_0x574865,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x14dd54{['afterInit'](){const _0x245c05=this['editor'],_0x3180dc=_0x245c05['locale'];if(!_0x245c05['plugins']['has']('LegacyListEditing'))return;const _0x1985a5=_0x245c05['plugins']['get']('TrackChangesEditing'),_0x1ff471=_0x245c05['plugins']['has']('LegacyTodoListEditing');function _0x5c59b0(_0x2c63be){return()=>{const _0x28868d=_0x245c05['model']['document']['selection'],_0x50dd77=_0x245c05['commands']['get'](_0x2c63be);if(_0x50dd77['value'])return void _0x245c05['execute']('paragraph',{});const _0x10b978=_0x2c63be['slice'](0x0,-0x4),_0xbfbc8a=function(_0x221dba,_0x46209,_0x382d52){let _0x3df1bb=Array['from'](_0x221dba)['filter'](_0x5b47c8=>function(_0x5e22ca,_0x3aaf6a){return _0x3aaf6a['checkChild'](_0x5e22ca['parent'],'listItem')&&!_0x3aaf6a['isObject'](_0x5e22ca);}(_0x5b47c8,_0x382d52));_0x3df1bb=_0x3df1bb['filter'](_0x4431a7=>!_0x4431a7['is']('element','listItem')||_0x4431a7['getAttribute']('listType')!=_0x46209);const _0x2b20b=new Set();for(const _0x59bc5f of _0x3df1bb)_0x59bc5f['is']('element','listItem')?_0x2b20b['add'](Le(_0x59bc5f)):_0x2b20b['add'](_0x59bc5f);return Array['from'](_0x2b20b);}(_0x28868d['getSelectedBlocks'](),_0x10b978,_0x245c05['model']['schema']);_0x245c05['model']['change'](()=>{for(const _0x15e58b of _0xbfbc8a)_0x1985a5['markBlockFormat'](_0x15e58b,{'commandName':_0x2c63be,'commandParams':[{'forceValue':!_0x50dd77['value']}],'formatGroupId':'blockName'},Ee(_0x15e58b));});};}function _0x4bb3e1(_0x190c16){return()=>{const _0x30e019=function(_0x1f0e3d){let _0x5aaef2=Array['from'](_0x1f0e3d);const _0x3b2d1f=_0x5aaef2['findIndex'](_0x4e89dd=>'listItem'!=_0x4e89dd['name']);return _0x3b2d1f>-0x1&&(_0x5aaef2=_0x5aaef2['slice'](0x0,_0x3b2d1f)),_0x5aaef2;}(_0x245c05['model']['document']['selection']['getSelectedBlocks']()),_0x46865d=_0x245c05['model']['createRange'](_0x245c05['model']['createPositionAt'](_0x30e019[0x0],'before'),_0x245c05['model']['createPositionAt'](_0x30e019[_0x30e019['length']-0x1],'end'));_0x245c05['model']['change'](()=>{_0x1985a5['markBlockFormat'](_0x46865d,{'commandName':_0x190c16,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4c70e8){const _0x18e688=new Set();for(const _0x2c8440 of _0x4c70e8){let _0x20e6a5=_0x2c8440['nextSibling'];for(;_0x20e6a5&&_0x20e6a5['getAttribute']('listIndent')>_0x2c8440['getAttribute']('listIndent');)_0x18e688['add'](_0x20e6a5),_0x20e6a5=_0x20e6a5['nextSibling'];}return Array['from'](_0x18e688);}(_0x30e019));});};}_0x1985a5['enableCommand']('numberedList',_0x5c59b0('numberedList')),_0x1985a5['enableCommand']('bulletedList',_0x5c59b0('bulletedList')),_0x1ff471&&_0x1985a5['enableCommand']('todoList',_0x5c59b0('todoList')),_0x1985a5['enableCommand']('indentList',_0x4bb3e1('indentList')),_0x1985a5['enableCommand']('outdentList',_0x4bb3e1('outdentList')),_0x1ff471&&_0x1985a5['enableCommand']('checkTodoList',()=>{const _0x11f72c=_0x245c05['commands']['get']('checkTodoList'),_0x18b13f=Array['from'](_0x11f72c['_selectedElements']);_0x18b13f['filter'](_0x25594c=>_0x25594c['getAttribute']('todoListChecked')!=_0x11f72c['value']),_0x245c05['model']['change'](()=>{for(const _0x1e91c1 of _0x18b13f)_0x1985a5['markBlockFormat'](_0x1e91c1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x11f72c['value']}]});});}),_0x1985a5['descriptionFactory']['registerElementLabel']('listItem',_0x4c27fb=>c(_0x3180dc,'ELEMENT_LIST_ITEM',_0x4c27fb)),_0x1985a5['descriptionFactory']['registerDescriptionCallback'](_0x31d4b5=>{if('formatBlock'!=_0x31d4b5['type']&&'formatInline'!=_0x31d4b5['type'])return;const {data:_0x5a0a84}=_0x31d4b5;if(_0x5a0a84){if('numberedList'==_0x5a0a84['commandName']||'bulletedList'==_0x5a0a84['commandName']||'todoList'==_0x5a0a84['commandName'])switch(_0x5a0a84['commandName']['replace']('List','')){case'bulleted':return _0x148543(c(_0x3180dc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x148543(c(_0x3180dc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x148543(c(_0x3180dc,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5a0a84['commandName'])return{'type':'format','content':c(_0x3180dc,'*Indent:*\x20%0',c(_0x3180dc,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5a0a84['commandName'])return{'type':'format','content':c(_0x3180dc,'*Outdent:*\x20%0',c(_0x3180dc,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5a0a84['commandName'])return _0x5a0a84['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3180dc,'*Check\x20item*')}:{'type':'format','content':c(_0x3180dc,'*Uncheck\x20item*')};}function _0x148543(_0x49613a){return{'type':'format','content':c(_0x3180dc,'*Change\x20to:*\x20%0',_0x49613a)};}});}}function Le(_0xfc9383){const _0x225780=_0xfc9383['getAttribute']('listIndent');if(0x0==_0x225780)return _0xfc9383;let _0x5b405a=_0xfc9383;for(;_0xfc9383['previousSibling']&&_0xfc9383['previousSibling']['is']('element','listItem');){const _0x460772=_0xfc9383['previousSibling']['getAttribute']('listIndent');if(_0x460772==_0x225780)_0x5b405a=_0xfc9383['previousSibling'];else{if(_0x460772<_0x225780)break;}_0xfc9383=_0xfc9383['previousSibling'];}return _0x5b405a;}function Ee(_0x3b903e){const _0x38c1e3=[];if(_0x3b903e['is']('element','listItem')&&_0x3b903e['getAttribute']('listIndent')>0x0){let _0xed157d=_0x3b903e['nextSibling'];for(;_0xed157d&&'listItem'==_0xed157d['name']&&_0xed157d['getAttribute']('listIndent')==_0x3b903e['getAttribute']('listIndent');)_0x38c1e3['push'](_0xed157d),_0xed157d=_0xed157d['nextSibling'];}return _0x38c1e3;}class Q extends _0x14dd54{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xbcfb5e=this['editor']['config']['get']('list.properties'),_0x41be50=this['editor']['plugins']['get']('TrackChangesEditing');_0xbcfb5e['styles']&&_0x41be50['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xbcfb5e['reversed']&&_0x41be50['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xbcfb5e['startIndex']&&_0x41be50['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x41be50['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x498dec,_0x30b44c={}){const _0x362d79=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc0cc41=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x362d79['markMultiRangeBlockFormat'](_0xc0cc41,{'commandName':'listStyle','commandParams':[{'type':_0x30b44c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x26d4d0,_0x455c6d={}){const _0x452de1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b3b10=this['_getSuggestionBlocks'](_0x33ae33=>_0x33ae33['is']('element','listItem')&&'numbered'===_0x33ae33['getAttribute']('listType'));if(_0x3b3b10['length']<0x1)return;const _0x2eb838=_0x3b3b10['map'](_0x3ae7a8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3ae7a8,'before'),this['editor']['model']['createPositionAt'](_0x3ae7a8,0x0)));this['editor']['model']['change'](()=>{_0x452de1['markMultiRangeBlockFormat'](_0x2eb838,{'commandName':'listReversed','commandParams':[{'reversed':_0x455c6d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x167b5e,_0xab9bc5={}){const _0xa3b0bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2477bc=this['_getSuggestionBlocks'](_0x47b29d=>_0x47b29d['is']('element','listItem')&&'numbered'===_0x47b29d['getAttribute']('listType'));if(_0x2477bc['length']<0x1)return;const _0x38f640=_0x2477bc['map'](_0xd3a15d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xd3a15d,'before'),this['editor']['model']['createPositionAt'](_0xd3a15d,0x0)));this['editor']['model']['change'](()=>{_0xa3b0bb['markMultiRangeBlockFormat'](_0x38f640,{'commandName':'listStart','commandParams':[{'startIndex':_0xab9bc5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4d4dbf){if('formatBlock'!=_0x4d4dbf['type']&&'formatInline'!=_0x4d4dbf['type'])return;const _0x323f24=this['editor']['locale'],{data:_0x28cf12}=_0x4d4dbf;if(!_0x28cf12)return;let _0x417bad,_0x4f5794;switch(_0x28cf12['commandName']){case'listStyle':_0x417bad='*Change\x20to:*\x20%0',_0x4f5794={'type':'format','content':c(_0x323f24,_0x417bad,c(_0x323f24,this['_getTranslationKeyForListStyle'](_0x28cf12['commandParams'][0x0]['type'])))};break;case'listReversed':_0x417bad=_0x28cf12['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4f5794={'type':'format','content':c(_0x323f24,_0x417bad)};break;case'listStart':_0x417bad='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f5794={'type':'format','content':c(_0x323f24,_0x417bad,_0x28cf12['commandParams'][0x0]['startIndex'])};}return _0x4f5794;}['_getSuggestionBlocksForListStyle'](){const _0x27db6f=this['editor']['plugins']['get']('LegacyListUtils');let _0x2f1c72=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2f1c72[0x0]?.['is']('element','listItem')&&_0x2f1c72['unshift'](..._0x27db6f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2f1c72[_0x2f1c72['length']-0x1]?.['is']('element','listItem')&&_0x2f1c72['push'](..._0x27db6f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2f1c72=[...new Set(_0x2f1c72)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2f1c72=_0x2f1c72['filter'](_0x390e49=>_0x390e49['is']('element','listItem'))),_0x2f1c72;}['_getSuggestionBlocks'](_0x324429){const _0x54a45d=this['editor']['plugins']['get']('LegacyListUtils');let _0x15b72c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x324429)['map'](_0x46b7c3=>{const _0x56e4ba=this['editor']['model']['createPositionAt'](_0x46b7c3,0x0);return[..._0x54a45d['getSiblingNodes'](_0x56e4ba,'backward'),..._0x54a45d['getSiblingNodes'](_0x56e4ba,'forward')];})['flat']();return _0x15b72c=[...new Set(_0x15b72c)],_0x15b72c;}['_getTranslationKeyForListStyle'](_0x522ef7){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x522ef7)||'default')['toUpperCase']()+'_LIST_'+_0x522ef7['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x14dd54{['afterInit'](){const _0x14416e=this['editor'];if(!_0x14416e['plugins']['has']('MediaEmbedEditing'))return;const _0x5a5ba6=_0x14416e['plugins']['get']('TrackChangesEditing'),_0x23dd7e=_0x14416e['locale'];_0x5a5ba6['enableCommand']('mediaEmbed'),_0x5a5ba6['descriptionFactory']['registerElementLabel']('media',_0x272870=>c(_0x23dd7e,'ELEMENT_MEDIA',_0x272870)),_0x14416e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x360bdf,{writer:_0x1474cd,options:_0x532c9b})=>{if(_0x532c9b['showSuggestionHighlights'])return _0x1474cd['createEmptyElement']('div');},'converterPriority':'high'}),_0x14416e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x547aba,_0x223123,_0x48da18)=>{_0x48da18['options']['showSuggestionHighlights']&&_0x547aba['stop']();},{'priority':'high'});}}class pt extends _0x14dd54{['afterInit'](){const _0x37a3d7=this['editor'];_0x37a3d7['plugins']['has']('MentionEditing')&&_0x37a3d7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x14dd54{['afterInit'](){const _0x5c6ee5=this['editor'];if(!_0x5c6ee5['plugins']['has']('MergeFieldsEditing'))return;const _0x337359=_0x5c6ee5['plugins']['get']('TrackChangesEditing'),_0xf9167e=_0x5c6ee5['locale'];_0x337359['enableCommand']('insertMergeField'),_0x337359['enableCommand']('insertMergeFieldBlock'),_0x337359['enableCommand']('insertMergeFieldImage'),_0x337359['descriptionFactory']['registerElementLabel']('mergeField',_0x9dbcf9=>c(_0xf9167e,'ELEMENT_MERGE_FIELD',_0x9dbcf9)),_0x337359['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x289875=>c(_0xf9167e,'ELEMENT_MERGE_FIELD',_0x289875)),_0x337359['descriptionFactory']['registerDescriptionCallback'](_0x2d95a1=>{if('insertion'!=_0x2d95a1['type']&&'deletion'!=_0x2d95a1['type'])return;const _0x2771db=_0x2d95a1['getContainedElement']();if(null==_0x2771db)return;const _0x1e31b0=_0x5c6ee5['plugins']['get']('MergeFieldsEditing');let _0x1efd2f;switch(_0x1e31b0['getMergeFieldType'](_0x2771db)){case null:return;case'image':{const _0x527f78=_0x1e31b0['unwrapAffixes'](_0x2771db['getAttribute']('src'));_0x1efd2f=_0x1e31b0['getLabel'](_0x527f78)||_0x527f78;break;}default:{const _0x3cd5e9=_0x2771db['getAttribute']('id');_0x1efd2f=_0x1e31b0['getLabel'](_0x3cd5e9)||_0x3cd5e9;break;}}return'insertion'==_0x2d95a1['type']?{'type':'insertion','content':c(_0xf9167e,'*Insert:*\x20%0','\x22'+_0x1efd2f+'\x22\x20'+c(_0xf9167e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0xf9167e,'*Remove:*\x20%0','\x22'+_0x1efd2f+'\x22\x20'+c(_0xf9167e,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x14dd54{['afterInit'](){const _0x27e02c=this['editor'],_0x195f4f=_0x27e02c['plugins']['get']('TrackChangesEditing');_0x27e02c['plugins']['has']('MultiLevelList')&&(_0x195f4f['enableDefaultAttributesIntegration']('multiLevelList'),_0x195f4f['registerBlockAttribute']('listMarkerStyle'),_0x195f4f['descriptionFactory']['registerDescriptionCallback'](_0x198a9b=>this['handleDescriptions'](_0x198a9b)));}['handleDescriptions'](_0x505c24){const _0x29f2c9=this['editor']['locale'],{data:_0x2cb872}=_0x505c24,_0x4b5217={'type':'format','content':''};if(_0x2cb872&&'listMarkerStyle'==_0x2cb872['key']){if(!_0x2cb872['oldValue'])return{'type':'format','content':c(_0x29f2c9,'*Set\x20format:*\x20%0',c(_0x29f2c9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2cb872['newValue']+')'};if(!_0x2cb872['newValue']){let _0x58d311=_0x505c24['head'];for(;_0x58d311;){if(_0x58d311['data']&&'listType'==_0x58d311['data']['key']&&_0x58d311['data']['newValue'])return _0x4b5217;_0x58d311=_0x58d311['next'];}return{'type':'format','content':c(_0x29f2c9,'*Remove\x20format:*\x20%0',c(_0x29f2c9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2cb872['oldValue']+')'};}}}}class bt extends _0x14dd54{['afterInit'](){const _0xdae9be=this['editor'];if(!_0xdae9be['plugins']['has']('PageBreakEditing'))return;_0xdae9be['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x535b3b=_0xdae9be['plugins']['get']('TrackChangesEditing'),_0x3ce702=_0xdae9be['locale'];_0x535b3b['descriptionFactory']['registerElementLabel']('pageBreak',_0x1a41e8=>c(_0x3ce702,'ELEMENT_PAGE_BREAK',_0x1a41e8));}}class yt extends _0x14dd54{['afterInit'](){const _0x45ab3b=this['editor'];if(!_0x45ab3b['plugins']['has']('Paragraph'))return;const _0x373c92=_0x45ab3b['locale'],_0x563cd1=_0x45ab3b['plugins']['get']('TrackChangesEditing');_0x563cd1['descriptionFactory']['registerElementLabel']('paragraph',_0x4ebf39=>c(_0x373c92,'ELEMENT_PARAGRAPH',_0x4ebf39)),_0x563cd1['enableDefaultAttributesIntegration']('paragraph'),_0x563cd1['enableCommand']('insertParagraph'),_0x45ab3b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x45ab3b),{'priority':'highest'}),_0x45ab3b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x427a92,_0x455343,_0x3bdda9)=>{_0x3bdda9['options']['showSuggestionHighlights']&&nr(_0x45ab3b,{'showActiveMarker':!0x1})(_0x427a92,_0x455343,_0x3bdda9);},{'priority':'highest'});const _0x2bed85=_0x563cd1['descriptionFactory'];_0x2bed85['registerDescriptionCallback'](_0x243fca=>{if('insertion'!==_0x243fca['type'])return;const {start:_0x5d8be7,end:_0x424830}=_0x243fca['getFirstRange']();if(!_0x5d8be7['isTouching'](_0x424830)||!_0x5d8be7['nodeAfter'])return;const _0x49361d=_0x45ab3b['model']['schema'],_0x78c029=_0x5d8be7['nodeAfter'];return _0x49361d['isBlock'](_0x78c029)&&!_0x49361d['isLimit'](_0x78c029)&&_0x49361d['checkChild'](_0x78c029,'$text')?{'type':'insertion','content':c(_0x373c92,'*Insert:*\x20%0',_0x2bed85['getItemLabel'](_0x78c029,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fe38d=this['editor'],_0x2da3f2=_0x3fe38d['locale'];_0x3fe38d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b82bf=>{if('formatBlock'!=_0x2b82bf['type'])return;const {data:_0x36f92d}=_0x2b82bf;return _0x36f92d&&'paragraph'==_0x36f92d['commandName']?{'type':'format','content':c(_0x2da3f2,'*Change\x20to:*\x20%0',c(_0x2da3f2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1bec0f,{showActiveMarker:_0x14dd1f=!0x0}={}){return(_0x53fbb0,_0xe7967c,_0x2b871c)=>{const _0x1a633a=_0x1bec0f['plugins']['get']('TrackChangesEditing'),_0x527d36=_0xe7967c['markerRange']['start'],_0x9b6825=_0xe7967c['markerRange']['end'],_0x3c8821=_0x1bec0f['model']['schema'];if(!_0x527d36['isTouching'](_0x9b6825)||!_0x527d36['nodeAfter'])return;const _0x138b28=_0x527d36['nodeAfter'];if(_0x3c8821['isBlock'](_0x138b28)&&!_0x3c8821['isLimit'](_0x138b28)&&_0x3c8821['checkChild'](_0x138b28,'$text')){if(!_0x2b871c['consumable']['consume'](_0xe7967c['markerRange'],_0x53fbb0['name']))return;const {id:_0x1fbdca,authorId:_0x2acc73}=_0x1a633a['_splitMarkerName'](_0xe7967c['markerName']),_0x1a7a5f=_0x2b871c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1fbdca,'data-author-id':_0x2acc73}),_0x166487=_0x2b871c['mapper']['toViewPosition'](_0x9b6825);_0x14dd1f&&_0x1a633a['activeMarkers']['includes'](_0xe7967c['markerName'])&&_0x2b871c['writer']['addClass']('ck-suggestion-marker--active',_0x1a7a5f),_0x2b871c['writer']['insert'](_0x166487,_0x1a7a5f),_0x2b871c['mapper']['bindElementToMarker'](_0x1a7a5f,_0xe7967c['markerName']);}};}class St extends _0x14dd54{['afterInit'](){const _0x352504=this['editor'];_0x352504['commands']['get']('replaceSource')&&_0x352504['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x14dd54{['afterInit'](){const _0xd4614=this['editor'];if(!_0xd4614['plugins']['has']('RemoveFormatEditing'))return;_0xd4614['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bd4ce=this['editor'];_0x5bd4ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3aa253=>{if('formatBlock'!=_0x3aa253['type']&&'formatInline'!=_0x3aa253['type'])return;const {data:_0x247a2f}=_0x3aa253;return _0x247a2f&&'removeFormat'==_0x247a2f['commandName']?{'type':'format','content':c(_0x5bd4ce['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x14dd54{['afterInit'](){const _0x3f6361=this['editor'];if(!_0x3f6361['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5d9f58=_0x3f6361['plugins']['get']('TrackChangesEditing');_0x5d9f58['enableCommand']('goToPreviousRestrictedEditingException'),_0x5d9f58['enableCommand']('goToNextRestrictedEditingException');const _0x17cf89=_0x3f6361['plugins']['get']('RestrictedEditingModeEditing');_0x17cf89['enableCommand']('trackChanges'),_0x17cf89['enableCommand']('acceptSuggestion'),_0x17cf89['enableCommand']('discardSuggestion'),_0x17cf89['enableCommand']('acceptAllSuggestions'),_0x17cf89['enableCommand']('discardAllSuggestions'),_0x17cf89['enableCommand']('acceptSelectedSuggestions'),_0x17cf89['enableCommand']('discardSelectedSuggestions');}}class At extends _0x14dd54{['afterInit'](){const _0x401474=this['editor'];if(!_0x401474['plugins']['has']('ShiftEnter'))return;const _0x435ba2=_0x401474['plugins']['get']('TrackChangesEditing');_0x435ba2['enableCommand']('shiftEnter'),_0x401474['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x401474),{'priority':'high'}),_0x401474['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x401474),{'priority':'high'}),_0x401474['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3f4baa,_0x3105d2,_0x3631d1)=>{_0x3631d1['options']['showSuggestionHighlights']&&je(_0x401474,{'showActiveMarker':!0x1})(_0x3f4baa,_0x3105d2,_0x3631d1);}),_0x435ba2['descriptionFactory']['registerElementLabel']('softBreak',_0x455ba7=>c(_0x401474['locale'],'ELEMENT_LINE_BREAK',_0x455ba7));}}function je(_0x2f5cfe,{showActiveMarker:_0x2b73aa=!0x0}={}){return(_0x2fa4f6,_0x123a78,_0xd1b414)=>{const _0x4d477=_0x2f5cfe['plugins']['get']('TrackChangesEditing');if(!_0xd1b414['consumable']['test'](_0x123a78['markerRange'],_0x2fa4f6['name']))return;const _0x4b8d94=_0x2f5cfe['model'];for(const _0x1ec1fe of _0x123a78['markerRange']['getItems']()){if(!_0x1ec1fe['is']('element','softBreak'))continue;const _0x299215='deletion'==_0x123a78['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3eab4f,authorId:_0x54dc8a}=_0x4d477['_splitMarkerName'](_0x123a78['markerName']),_0x1cabeb=_0xd1b414['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x299215,'data-suggestion':_0x3eab4f,'data-author-id':_0x54dc8a}),_0x341b40=_0xd1b414['mapper']['toViewPosition'](_0x4b8d94['createPositionBefore'](_0x1ec1fe));_0x2b73aa&&_0x4d477['activeMarkers']['includes'](_0x123a78['markerName'])&&_0xd1b414['writer']['addClass']('ck-suggestion-marker--active',_0x1cabeb),_0xd1b414['writer']['insert'](_0x341b40,_0x1cabeb),_0xd1b414['mapper']['bindElementToMarker'](_0x1cabeb,_0x123a78['markerName']);}};}class _t extends _0x14dd54{['afterInit'](){const _0x937bb9=this['editor'],_0xbb8acb=_0x937bb9['model'],_0x36aa36=_0x937bb9['locale'];if(!_0x937bb9['plugins']['has']('StandardEditingModeEditing'))return;const _0x355c9e=_0x937bb9['plugins']['get']('TrackChangesEditing'),_0x2ff4b8='restrictedEditingException',_0x44fe42=_0x937bb9['commands']['get'](_0x2ff4b8);_0x355c9e['enableCommand'](_0x2ff4b8,(_0x10ce77,_0x1e3d07={})=>{const _0x342851=_0xbb8acb['document']['selection'];if(_0x342851['isCollapsed'])return void _0x10ce77(_0x1e3d07);const _0x4fa8ef=void 0x0!==_0x1e3d07['forceValue']?_0x1e3d07['forceValue']:!_0x44fe42['value'];_0xbb8acb['change'](()=>{const _0x33ac47=Array['from'](_0x342851['getRanges']());for(const _0x28060b of _0x33ac47){const _0xef022a=_0x4fa8ef?[_0x28060b]:io(_0x2ff4b8,_0x28060b,_0xbb8acb);for(const _0x392f2f of _0xef022a)_0x355c9e['markInlineFormat'](_0x392f2f,{'commandName':_0x2ff4b8,'commandParams':[{'forceValue':_0x4fa8ef}]});}});}),_0x355c9e['descriptionFactory']['registerDescriptionCallback'](_0x9292c4=>{if('formatBlock'!=_0x9292c4['type']&&'formatInline'!=_0x9292c4['type'])return;const {data:_0x32dee8}=_0x9292c4;return _0x32dee8&&_0x32dee8['commandName']==_0x2ff4b8?_0x32dee8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x36aa36,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x36aa36,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x14dd54{['afterInit'](){const _0x32b8b2=this['editor'];if(!_0x32b8b2['plugins']['has']('Style')||!_0x32b8b2['plugins']['has']('DataSchema'))return;const _0x5d5d40=_0x32b8b2['plugins']['get']('TrackChangesEditing'),_0x30d10d=_0x32b8b2['locale'],_0x1bac16=_0x32b8b2['config']['get']('style')||{},_0x161db7=_0x32b8b2['plugins']['get']('GeneralHtmlSupport'),_0x172593=_0x32b8b2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x32b8b2['plugins']['get']('DataSchema'),_0x1bac16['definitions']);_0x5d5d40['enableDefaultAttributesIntegration']('style');const _0x531ddb=new Set();for(const _0x47c562 of _0x172593['block']){const _0x287503=_0x161db7['getGhsAttributeNameForElement'](_0x47c562['element']);_0x531ddb['add'](_0x287503);}const _0x3c0d31=new Set();for(const _0x30169b of _0x172593['inline']){const _0x2b79df=_0x161db7['getGhsAttributeNameForElement'](_0x30169b['element']);_0x3c0d31['add'](_0x2b79df);for(const _0x2c206c of _0x30169b['ghsAttributes'])_0x3c0d31['add'](_0x2c206c);}for(const _0x5cabe4 of _0x531ddb)_0x5d5d40['registerBlockAttribute'](_0x5cabe4),_0x5d5d40['descriptionFactory']['registerAttributeLabel'](_0x5cabe4,c(_0x30d10d,'FORMAT_STYLE'));for(const _0x2cd4b4 of _0x3c0d31)_0x5d5d40['registerInlineAttribute'](_0x2cd4b4),_0x5d5d40['descriptionFactory']['registerAttributeLabel'](_0x2cd4b4,c(_0x30d10d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3abf93=this['editor'],_0x4ce3aa=_0x3abf93['locale'];_0x3abf93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x86440e=>{if('formatBlock'!=_0x86440e['type']&&'formatInline'!=_0x86440e['type'])return;const {data:_0x4f674f}=_0x86440e;return _0x4f674f&&'style'===_0x4f674f['commandName']?_0x4f674f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4ce3aa,'*Set\x20format:*\x20%0',_0x4f674f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x4ce3aa,'*Remove\x20format:*\x20%0',_0x4f674f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x14dd54{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x444e57){super(_0x444e57),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x51ef3a=this['editor'],_0x52c556=_0x51ef3a['model']['document']['selection'];if(!_0x51ef3a['plugins']['has']('TableEditing'))return;const _0x51813e=_0x51ef3a['locale'],_0x17d000=_0x51ef3a['plugins']['get']('TrackChangesEditing'),_0x1ac0f2=_0x51ef3a['plugins']['get']('TableUtils');_0x17d000['descriptionFactory']['registerElementLabel']('table',_0x211d57=>c(_0x51813e,'ELEMENT_TABLE',_0x211d57)),this['_setupColumnsRowsFixing'](),_0x17d000['enableCommand']('insertTable'),_0x17d000['enableCommand']('selectTableRow'),_0x17d000['enableCommand']('selectTableColumn');for(const _0x154487 of['insertTableRowAbove','insertTableRowBelow']){const _0x477942=_0x51ef3a['commands']['get'](_0x154487);_0x17d000['enableCommand'](_0x154487,_0x4f3e58=>{_0x51ef3a['model']['change'](_0x281ffc=>{_0x4f3e58();const _0x32962f='above'===_0x477942['order'],_0x3dd04c=_0x1ac0f2['getSelectionAffectedTableCells'](_0x52c556),_0x11b4e1=_0x1ac0f2['getRowIndexes'](_0x3dd04c),_0x17a97a=_0x32962f?_0x11b4e1['first']-0x1:_0x11b4e1['last']+0x1,_0x47ede6=_0x3dd04c[0x0]['findAncestor']('table'),_0x19ff9c=_0x1ac0f2['createTableWalker'](_0x47ede6,{'startRow':_0x17a97a,'endRow':_0x17a97a}),_0x1c1429=Array['from'](_0x19ff9c)['map'](_0x503478=>_0x281ffc['createRangeOn'](_0x503478['cell']));_0x17d000['markMultiRangeInsertion'](_0x1c1429,'tableRow');});});}for(const _0x1cf06b of['insertTableColumnLeft','insertTableColumnRight']){const _0x8fa6ab=_0x51ef3a['commands']['get'](_0x1cf06b);_0x17d000['enableCommand'](_0x1cf06b,_0x4c3c99=>{_0x51ef3a['model']['change'](_0x43abd4=>{_0x4c3c99();const _0x51da92='left'===_0x8fa6ab['order'],_0x3184c5=_0x1ac0f2['getSelectionAffectedTableCells'](_0x52c556),_0x5d46a2=_0x1ac0f2['getColumnIndexes'](_0x3184c5),_0x4fb26b=_0x51da92?_0x5d46a2['first']-0x1:_0x5d46a2['last']+0x1,_0x3b1a9e=_0x3184c5[0x0]['findAncestor']('table'),_0x2afce2=_0x1ac0f2['createTableWalker'](_0x3b1a9e,{'startRow':0x0,'column':_0x4fb26b,'includeAllSlots':!0x1}),_0x2bc0b9=Array['from'](_0x2afce2)['map'](_0x5a1521=>_0x43abd4['createRangeOn'](_0x5a1521['cell']));_0x17d000['markMultiRangeInsertion'](_0x2bc0b9,'tableColumn');});});}for(const _0x57688a of['removeTableRow','removeTableColumn']){const _0x27819d=_0x57688a['substr'](0xb),_0x1d963e=_0x27819d['toLowerCase'](),_0x1469bd=_0x1d963e['substr'](0x0,0x3)+'span',_0x15e0e8='table'+_0x27819d,_0x3d8f6e='min'+_0x27819d,_0x19ce65='max'+_0x27819d;_0x17d000['enableCommand'](_0x57688a,()=>{_0x51ef3a['model']['change'](_0x27aa72=>{const _0x2bafa8=_0x1ac0f2['getSelectionAffectedTableCells'](_0x52c556),_0x563ef3=_0x2bafa8[0x0]['findAncestor']('table');let _0xfdc491;if('removeTableRow'==_0x57688a){const _0x4a6c49=_0x1ac0f2['getRowIndexes'](_0x2bafa8);_0xfdc491={'startRow':_0x4a6c49['first'],'endRow':_0x4a6c49['last'],'includeAllSlots':!0x0};}else{const _0x4a3216=_0x1ac0f2['getColumnIndexes'](_0x2bafa8);_0xfdc491={'startColumn':_0x4a3216['first'],'endColumn':_0x4a3216['last'],'includeAllSlots':!0x0};}const _0x280bbe=_0x1ac0f2['createTableWalker'](_0x563ef3,_0xfdc491),_0x1d1f1c=Array['from'](_0x280bbe)['map'](({cell:_0x1b7e2b})=>_0x1b7e2b),_0x1e5dba=xe(_0x1d1f1c['filter'](_0x2c06b0=>_0x2c06b0['hasAttribute'](_0x1469bd))),_0x3822a0=xe(_0x1d1f1c['filter'](_0x5f4e3a=>!_0x5f4e3a['hasAttribute'](_0x1469bd)))['map'](_0x34310e=>_0x27aa72['createRangeOn'](_0x34310e)),_0x11402a=_0x17d000['markMultiRangeDeletion'](_0x3822a0,_0x15e0e8);if(_0x11402a&&('tableRow'==_0x11402a['subType']||'tableColumn'==_0x11402a['subType'])){const _0x39dfa8=this['_getSuggestionCoords'](_0x11402a);for(const _0x3e551f of _0x1e5dba){const _0x197364=_0x27aa72['createRangeOn'](_0x3e551f),_0x205353=_0x1ac0f2['getCellLocation'](_0x3e551f),_0x27a995=_0x3e551f['getAttribute'](_0x1469bd)-0x1,_0x501432=_0x39dfa8[_0x3d8f6e],_0x3b38df=_0x39dfa8[_0x19ce65];_0x501432<=_0x205353[_0x1d963e]&&_0x205353[_0x1d963e]+_0x27a995<=_0x3b38df&&_0x11402a['addRange'](_0x197364);}}});});}function _0x10d969(_0x309555){const _0x4df9de=Array['from'](_0x52c556['getRanges']())['map'](_0x1f55b7=>_0x46c3f4['fromRange'](_0x1f55b7));_0x51ef3a['model']['change'](_0x4530af=>{const _0x4ccbbb=_0x4530af['batch'];_0x309555=_0x309555['filter'](_0x12487f=>'$graveyard'!=_0x12487f['root']['rootName']),_0x4530af['setSelection'](_0x309555),_0x51ef3a['commands']['get']('removeTableRow')['refresh'](),_0x51ef3a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x51ef3a['model']['enqueueChange'](()=>{_0x51ef3a['model']['enqueueChange'](_0x4ccbbb,_0x5e3e6c=>{const _0x11e8d1=_0x4df9de['filter'](_0x1df1fa=>'$graveyard'!=_0x1df1fa['root']['rootName']);_0x11e8d1['length']>0x0&&_0x5e3e6c['setSelection'](_0x11e8d1);for(const _0x2d7a73 of _0x4df9de)_0x2d7a73['detach']();});});});}function _0x81dfd6(_0x7c79d){_0x51ef3a['model']['change'](_0x234840=>{const _0x4a5526=Array['from'](_0x52c556['getRanges']())['map'](_0x4e01b4=>_0x46c3f4['fromRange'](_0x4e01b4)),_0x1ed62a=[];for(const _0x5ca0e5 of _0x7c79d)for(const _0x1d2557 of _0x5ca0e5['getItems']({'shallow':!0x0}))_0x1ed62a['push'](_0x1d2557);for(const _0x33eef8 of _0x1ed62a)'$graveyard'!=_0x33eef8['root']['rootName']&&(_0x234840['setSelection'](_0x234840['createPositionAt'](_0x33eef8,0x0)),_0x51ef3a['commands']['get']('removeTableColumn')['refresh'](),_0x51ef3a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3026dc=_0x4a5526['filter'](_0x26a3b5=>'$graveyard'!=_0x26a3b5['root']['rootName']);_0x3026dc['length']>0x0&&_0x234840['setSelection'](_0x3026dc);for(const _0x114463 of _0x4a5526)_0x114463['detach']();});}function _0x15e796(_0x6ef1cd,_0x2cada6){return _0x2cada6['every'](_0xf78f5=>_0x6ef1cd['some'](_0x497277=>_0x497277['end']['isEqual'](_0xf78f5['start'])||_0xf78f5['end']['isEqual'](_0x497277['start'])));}function _0xbafcb1(_0x2ae053,_0x10b05d){return!_0x2ae053['some'](_0xc48813=>_0x10b05d['some'](_0x2816ce=>_0xc48813['isIntersecting'](_0x2816ce)))&&_0x2ae053['some'](_0x38bf18=>_0x10b05d['some'](_0x124876=>_0x38bf18['end']['isTouching'](_0x124876['start'])));}_0x51ef3a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x21593b,_0xb973c2,_0x107cce)=>{if(!_0x107cce['options']['showSuggestionHighlights'])return;const _0x27468f=_0xb973c2['item'];if(!_0x27468f||!_0x27468f['is']('element','tableCell'))return;const _0x15243d=_0x107cce['mapper']['toViewElement'](_0x27468f);if(_0x15243d){const {id:_0x2dd791,authorId:_0x2c818a}=_0x17d000['_splitMarkerName'](_0xb973c2['markerName']);_0x66e5e6(_0x15243d,_0x107cce['writer'],(_0x55575d,_0x37b467,_0x4336e8)=>{_0x4336e8['addClass'](_0x349e4b(_0x37b467['classes']),_0x55575d),_0x4336e8['setAttribute']('data-suggestion-id',_0x2dd791,_0x55575d),_0x4336e8['setAttribute']('data-author-id',_0x2c818a,_0x55575d);},(_0xefb486,_0x2865be,_0xac9fe9)=>{_0xac9fe9['removeClass'](_0x349e4b(_0x2865be['classes']),_0xefb486),_0xac9fe9['removeAttribute']('data-suggestion-id',_0xefb486),_0xac9fe9['removeAttribute']('data-author-id',_0xefb486);});}},{'priority':'highest'}),_0x17d000['descriptionFactory']['registerDescriptionCallback'](_0x40c53c=>{if('insertion'!=_0x40c53c['type']&&'deletion'!=_0x40c53c['type'])return;const _0x5a3fb1=_0x40c53c['getContainedElement']();if(null!=_0x5a3fb1&&_0x5a3fb1['is']('element','table')){if('insertion'==_0x40c53c['type']){const _0x4f970f=_0x40c53c['getItems']()['filter'](_0x2f1d45=>_0x2f1d45['is']('$textProxy'))['map'](_0x542320=>_0x542320['data']);if(_0x4f970f['length'])return{'type':'insertion','content':c(_0x51813e,'*Insert:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4f970f['join']('\x20')+'\x22'))};}if('deletion'==_0x40c53c['type']){const _0x157dfc=_0x40c53c['getItems']()['filter'](_0x3f1024=>_0x3f1024['is']('$textProxy'))['map'](_0x5c1813=>_0x5c1813['data']);if(_0x157dfc['length'])return{'type':'deletion','content':c(_0x51813e,'*Remove:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x157dfc['join']('\x20')+'\x22'))};}}}),_0x17d000['descriptionFactory']['registerDescriptionCallback'](_0x3a63c5=>{if('tableRow'==_0x3a63c5['subType']){const _0x47dc37=_0x3a63c5['getItems']()['filter'](_0x40f947=>_0x40f947['is']('$textProxy'))['map'](_0x4ff0aa=>_0x4ff0aa['data']),_0x38e02b=this['_getSuggestionCoords'](_0x3a63c5),_0x14d61d=_0x38e02b['maxRow']-_0x38e02b['minRow']+0x1;if('insertion'==_0x3a63c5['type'])return _0x47dc37['length']?{'type':'insertion','content':c(_0x51813e,'*Insert:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14d61d,'\x22'+_0x47dc37['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x51813e,'*Insert:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_ROW',_0x14d61d))};if('deletion'==_0x3a63c5['type'])return _0x47dc37['length']?{'type':'deletion','content':c(_0x51813e,'*Remove:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14d61d,'\x22'+_0x47dc37['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x51813e,'*Remove:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_ROW',_0x14d61d))};}if('tableColumn'==_0x3a63c5['subType']){const _0x44f744=_0x3a63c5['getItems']()['filter'](_0x47d130=>_0x47d130['is']('$textProxy'))['map'](_0x31231c=>_0x31231c['data']),_0x2570fb=this['_getSuggestionCoords'](_0x3a63c5),_0x4a2cbd=_0x2570fb['maxColumn']-_0x2570fb['minColumn']+0x1;if('insertion'==_0x3a63c5['type'])return _0x44f744['length']?{'type':'insertion','content':c(_0x51813e,'*Insert:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a2cbd,'\x22'+_0x44f744['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x51813e,'*Insert:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_COLUMN',_0x4a2cbd))};if('deletion'==_0x3a63c5['type'])return _0x44f744['length']?{'type':'deletion','content':c(_0x51813e,'*Remove:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a2cbd,'\x22'+_0x44f744['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x51813e,'*Remove:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_COLUMN',_0x4a2cbd))};}}),_0x17d000['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x10d969),_0x17d000['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x10d969),_0x17d000['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x81dfd6),_0x17d000['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x81dfd6),_0x17d000['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x15e796),_0x17d000['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x15e796),_0x17d000['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xbafcb1),_0x17d000['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xbafcb1);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1f6875=this['editor'],_0x37d247=_0x1f6875['model']['document']['selection'];return(_0xc7ed08,_0x56ae44)=>{_0x1f6875['model']['change'](_0x3b24fe=>{const {commandName:_0x2d28c3,commandParams:_0x228ce9}=_0x56ae44;let _0x37d5b1=_0xc7ed08[0x0]['end']['nodeBefore'];_0x228ce9&&_0x228ce9[0x0]&&!0x1===_0x228ce9[0x0]['forceValue']&&(_0x37d5b1=_0xc7ed08[0x0]['start']['nodeAfter']);const _0x39ef82=_0x3b24fe['createRangeIn'](_0x37d5b1);if('$graveyard'==_0x39ef82['root']['rootName'])return;const _0x3a11c0=Array['from'](_0x37d247['getRanges']())['map'](_0x43319c=>_0x46c3f4['fromRange'](_0x43319c));_0x3b24fe['setSelection'](_0x39ef82),_0x1f6875['commands']['get'](_0x2d28c3)['refresh'](),_0x228ce9['push']({'forceDefaultExecution':!0x0}),_0x1f6875['execute'](_0x2d28c3,..._0x228ce9);const _0x1bb26c=_0x3a11c0['filter'](_0x2d3955=>'$graveyard'!=_0x2d3955['root']['rootName']);_0x1bb26c['length']>0x0&&_0x3b24fe['setSelection'](_0x1bb26c);for(const _0x697ff7 of _0x3a11c0)_0x697ff7['detach']();});};}['_getCoordsForCells'](_0x4f15b7){const _0x4c5654=this['editor']['plugins']['get']('TableUtils');let _0x54b7ac=Number['MAX_SAFE_INTEGER'],_0x1eb819=Number['MIN_SAFE_INTEGER'],_0x556559=Number['MAX_SAFE_INTEGER'],_0x14aa5c=Number['MIN_SAFE_INTEGER'];for(const _0x50f2e3 of _0x4f15b7){if('$graveyard'==_0x50f2e3['root']['rootName'])continue;const {row:_0x4e0c95,column:_0x3fa987}=_0x4c5654['getCellLocation'](_0x50f2e3),_0x2c1162=_0x50f2e3['hasAttribute']('rowspan')?_0x50f2e3['getAttribute']('rowspan')-0x1:0x0,_0x3c5f50=_0x50f2e3['hasAttribute']('colspan')?_0x50f2e3['getAttribute']('colspan')-0x1:0x0;_0x54b7ac=_0x4e0c95<_0x54b7ac?_0x4e0c95:_0x54b7ac,_0x1eb819=_0x4e0c95+_0x2c1162>_0x1eb819?_0x4e0c95+_0x2c1162:_0x1eb819,_0x556559=_0x3fa987<_0x556559?_0x3fa987:_0x556559,_0x14aa5c=_0x3fa987+_0x3c5f50>_0x14aa5c?_0x3fa987+_0x3c5f50:_0x14aa5c;}return{'minRow':_0x54b7ac,'maxRow':_0x1eb819,'minColumn':_0x556559,'maxColumn':_0x14aa5c};}['_setupColumnsRowsFixing'](){const _0x51b189=this['editor'],_0x1a219f=_0x51b189['plugins']['get']('TrackChangesEditing'),_0x3540f3=_0x51b189['plugins']['get']('TableUtils');_0x51b189['model']['document']['on']('change:data',()=>{const _0x322b40=Array['from'](_0x51b189['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe89dff,data:_0x2ea523}of _0x322b40){const {group:_0x23c4a2,id:_0x5cbd07,subType:_0x4cdea5}=_0x1a219f['_splitMarkerName'](_0xe89dff);if('suggestion'!=_0x23c4a2)continue;if(null!=_0x2ea523['oldRange'])continue;const _0x462ab0=_0x1a219f['getSuggestion'](_0x5cbd07);this['_tablePostFixingSubtypes']['includes'](_0x4cdea5)&&this['_tableSuggestions']['add'](_0x462ab0);}},{'priority':'low'});const _0x12b247=(_0x22cea0,_0x2cfc54)=>{let _0x1b2441=!0x1;const _0x5e3158=_0x2cfc54['createRangeOn'](_0x22cea0),_0x214a02=_0x22cea0['findAncestor']('table'),_0x48bfbf=_0x3540f3['getCellLocation'](_0x22cea0);for(const _0x543729 of this['_tableSuggestions']){const _0x5e0f5d=_0x543729['subType'],_0x531059=_0x5e0f5d['startsWith']('tablePaste'),_0x1a79ba=_0x5e0f5d['substr'](_0x531059?0xa:0x5),_0x515c8f=_0x1a79ba['toLowerCase'](),_0x50dfa9=_0x515c8f['substr'](0x0,0x3)+'span',_0x1a76ee='min'+_0x1a79ba,_0x306155='max'+_0x1a79ba;if(!_0x543729['isInContent'])continue;if(_0x214a02!=_0x543729['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x543729['isIntersectingWithRange'](_0x5e3158))continue;const _0x1b92af=_0x22cea0['hasAttribute'](_0x50dfa9)?_0x22cea0['getAttribute'](_0x50dfa9)-0x1:0x0,_0x4eba26=this['_getSuggestionCoords'](_0x543729),_0x54563b=_0x4eba26[_0x1a76ee],_0x4fabab=_0x4eba26[_0x306155];_0x54563b<=_0x48bfbf[_0x515c8f]&&_0x48bfbf[_0x515c8f]+_0x1b92af<=_0x4fabab&&(_0x543729['addRange'](_0x5e3158),_0x1b2441=!0x0);}return _0x1b2441;};_0x51b189['model']['document']['registerPostFixer'](_0x4fa73e=>{let _0x190b93=!0x1;for(const _0x9bb85e of _0x51b189['model']['document']['differ']['getChanges']())if('insert'==_0x9bb85e['type']){if('tableRow'==_0x9bb85e['name']){for(const _0x233621 of _0x9bb85e['position']['nodeAfter']['getChildren']())_0x190b93=_0x190b93||_0x12b247(_0x233621,_0x4fa73e);}else'tableCell'==_0x9bb85e['name']&&(_0x190b93=_0x190b93||_0x12b247(_0x9bb85e['position']['nodeAfter'],_0x4fa73e));}return _0x190b93;});}['_getSuggestionCoords'](_0x28d6d4){return this['_getCoordsForCells'](_0x28d6d4['getRanges']()['map'](_0x56cc08=>_0x56cc08['start']['nodeAfter']));}}function xe(_0x19fe53){return Array['from'](new Set(_0x19fe53)['values']());}class Nt extends _0x14dd54{static get['requires'](){return[Ct];}['afterInit'](){const _0x5d0972=this['editor'],_0x4609c7=_0x5d0972['model']['document']['selection'],_0x49f840=_0x5d0972['locale'];if(!_0x5d0972['plugins']['has']('TableEditing'))return;const _0x1c84e6=_0x5d0972['plugins']['get']('TrackChangesEditing'),_0x1c86b7=_0x5d0972['plugins']['get']('TableUtils'),_0x2c20ef=_0x5d0972['plugins']['get'](Ct);_0x2c20ef['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1c84e6['enableCommand']('mergeTableCells',()=>{const _0x124622=_0x1c86b7['getSelectionAffectedTableCells'](_0x5d0972['model']['document']['selection']);_0x5d0972['model']['change'](()=>{_0x1c84e6['markMultiRangeBlockFormat'](_0x124622,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5d0972['commands']['get']('mergeTableCells')['on']('execute',(_0x30c8a4,_0x3c2859)=>{_0x5d0972['commands']['get']('trackChanges')['value']&&(_0x3c2859['length']>0x0&&_0x3c2859[_0x3c2859['length']-0x1]&&_0x3c2859[_0x3c2859['length']-0x1]['forceDefaultExecution']||_0x1c84e6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x30c8a4['stop']());},{'priority':'highest'});for(const _0x12220b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2ee309=_0x5d0972['commands']['get'](_0x12220b);_0x1c84e6['enableCommand'](_0x12220b,()=>{const _0x4c2958=_0x5d0972['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x310e2a=>_0x310e2a['is']('element','tableCell')),_0x921161=_0x2ee309['value'];_0x5d0972['model']['change'](()=>{_0x1c84e6['markMultiRangeBlockFormat']([_0x4c2958,_0x921161],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2487f7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x39b800=_0x5d0972['commands']['get'](_0x2487f7);_0x1c84e6['enableCommand'](_0x2487f7,()=>{const _0x137ef1=_0x1c86b7['getSelectionAffectedTableCells'](_0x5d0972['model']['document']['selection'])[0x0],_0x5f4660=_0x137ef1['findAncestor']('table'),{column:_0x40bcb6,row:_0x1d7603}=_0x1c86b7['getCellLocation'](_0x137ef1);let _0x45e818=[];if('horizontally'==_0x39b800['direction']){const _0x2b7375=_0x1c86b7['createTableWalker'](_0x5f4660,{'startRow':_0x1d7603,'endRow':_0x1d7603,'includeAllSlots':!0x0});_0x45e818=Array['from'](_0x2b7375)['map'](_0x255079=>_0x255079['cell']);}else{const _0x29ec71=_0x1c86b7['createTableWalker'](_0x5f4660,{'column':_0x40bcb6,'includeAllSlots':!0x0});_0x45e818=Array['from'](_0x29ec71)['map'](_0x446b10=>_0x446b10['cell']);}_0x5d0972['model']['change'](_0x528cca=>{_0x1c84e6['markBlockFormat'](_0x528cca['createRangeOn'](_0x137ef1),{'commandName':_0x2487f7,'commandParams':[]},_0x45e818,_0x2487f7);});});}_0x1c84e6['descriptionFactory']['registerDescriptionCallback'](_0x21256c=>{if('formatBlock'!=_0x21256c['type']&&'formatInline'!=_0x21256c['type'])return;const {data:_0x194ce2}=_0x21256c;return _0x194ce2&&'mergeTableCells'==_0x194ce2['commandName']?{'type':'format','content':c(_0x49f840,'*Merge\x20cells*')}:void 0x0;}),_0x1c84e6['descriptionFactory']['registerDescriptionCallback'](_0x5d2cf3=>{if('formatBlock'!=_0x5d2cf3['type']&&'formatInline'!=_0x5d2cf3['type'])return;const {data:_0x41b7a5}=_0x5d2cf3;return _0x41b7a5?'splitTableCellVertically'==_0x41b7a5['commandName']?{'type':'format','content':c(_0x49f840,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x41b7a5['commandName']?{'type':'format','content':c(_0x49f840,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x41f655=_0x2c20ef['_acceptFormatSuggestionCallbackFactory']();for(const _0x592f43 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1c84e6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x592f43,'accept',_0x41f655);for(const _0x244811 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1c84e6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x244811,'accept',_0x41f655);_0x1c84e6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2e3fd4=>{_0x5d0972['model']['change'](_0xd120fd=>{const _0x263a6d=Array['from'](_0x4609c7['getRanges']())['map'](_0x41001a=>_0x46c3f4['fromRange'](_0x41001a));_0xd120fd['setSelection'](_0x2e3fd4),_0x5d0972['commands']['get']('mergeTableCells')['refresh'](),_0x5d0972['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x380961=_0x263a6d['filter'](_0x2404d3=>'$graveyard'!=_0x2404d3['root']['rootName']);_0x380961['length']>0x0&&_0xd120fd['setSelection'](_0x380961);for(const _0x22c0b2 of _0x263a6d)_0x22c0b2['detach']();});});for(const _0x162fa1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x36ea8f=_0x5d0972['commands']['get'](_0x162fa1);_0x36ea8f['on']('set:isEnabled',(_0x2f8a04,_0x23edca,_0x248c79)=>{if(_0x248c79){const _0x217dfc=_0x5d0972['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x48aa47=>_0x48aa47['is']('element','tableCell'));this['_areMergableCells'](_0x36ea8f['value'],_0x217dfc)||(_0x2f8a04['return']=!0x1,_0x2f8a04['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x13653e=this['editor']['commands']['get']('mergeTableCells'),_0x53e70c=this['editor']['plugins']['get']('TableUtils');if(!_0x13653e['isEnabled'])return!0x1;const _0x204350=_0x53e70c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3ba9e3 of _0x204350)for(const _0x1a3a87 of _0x204350)if(_0x3ba9e3!=_0x1a3a87&&!this['_areMergableCells'](_0x3ba9e3,_0x1a3a87))return!0x1;return!0x0;}['_areMergableCells'](_0x5b108f,_0x1f2146){const _0x3cc7ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x314238=this['editor']['model']['createRangeOn'](_0x5b108f),_0x4bbb8c=this['editor']['model']['createRangeOn'](_0x1f2146),_0x28c6a5=new Set(),_0x422d2f=new Set();for(const _0x411887 of _0x3cc7ba['getSuggestions']())if(('insertion'==_0x411887['type']||'deletion'==_0x411887['type']||'mergeTableCells'==_0x411887['subType'])&&_0x411887['isInContent']){for(const _0x559d73 of _0x411887['getRanges']())_0x559d73['containsRange'](_0x314238,!0x0)&&_0x28c6a5['add'](_0x411887['type']+':'+_0x411887['author']['id']),_0x559d73['containsRange'](_0x4bbb8c,!0x0)&&_0x422d2f['add'](_0x411887['type']+':'+_0x411887['author']['id']);}if(_0x28c6a5['size']!=_0x422d2f['size'])return!0x1;for(const _0x29b749 of _0x28c6a5)if(!_0x422d2f['has'](_0x29b749))return!0x1;return!0x0;}}class Dt extends _0x14dd54{static get['requires'](){return[Ct];}['afterInit'](){const _0x3edf66=this['editor'];if(!_0x3edf66['plugins']['has']('TableEditing'))return;const _0xcef56a=_0x3edf66['locale'],_0x1951e7=_0x3edf66['plugins']['get']('TrackChangesEditing');_0x1951e7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1951e7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1951e7['registerBlockAttribute']('headingRows'),_0x1951e7['registerBlockAttribute']('headingColumns'),_0x1951e7['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0xcef56a,'FORMAT_HEADER_ROW')),_0x1951e7['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0xcef56a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x370e66=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26443a=this['editor']['plugins']['get']('TableUtils'),_0x1f80c7=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x493e98({showActiveMarker:_0x101a92=!0x0,setDataAttribute:_0xe7afe1=!0x0}={}){return(_0x4e72c3,_0x1814d7,_0x548b51)=>{const {type:_0x5ad183,id:_0x273102}=_0x370e66['_splitMarkerName'](_0x1814d7['markerName']),_0x37d909=_0x370e66['getSuggestion'](_0x273102),_0x178b62=_0x37d909['data'];if('formatBlock'!=_0x37d909['type']||!_0x178b62||'setTableColumnHeader'!=_0x178b62['commandName'])return;if(_0x1814d7['item'])return void _0x4e72c3['stop']();if(!_0x548b51['consumable']['consume'](_0x1814d7['markerRange'],_0x4e72c3['name']))return;const _0x4467d9=_0x1814d7['markerRange']['start']['nodeAfter'],_0x38a76d=_0x1814d7['markerRange']['end']['nodeBefore'],_0xa3f69f=_0x4467d9['parent']['parent'],{column:_0xf52871}=_0x26443a['getCellLocation'](_0x4467d9),{column:_0x29b91a}=_0x26443a['getCellLocation'](_0x38a76d);for(let _0x4be7b2=_0xf52871;_0x4be7b2<=_0x29b91a;_0x4be7b2++){const _0x38d985=_0x26443a['createTableWalker'](_0xa3f69f,{'column':_0x4be7b2,'includeAllSlots':!0x1});for(const _0xffe0a6 of _0x38d985){const _0x35114b=_0xffe0a6['cell'],_0x5a44ec=_0x548b51['mapper']['toViewElement'](_0x35114b);_0x548b51['writer']['addClass']('ck-suggestion-marker-'+_0x5ad183,_0x5a44ec),_0xe7afe1&&_0x548b51['writer']['setAttribute']('data-suggestion',_0x273102,_0x5a44ec),_0x548b51['mapper']['bindElementToMarker'](_0x5a44ec,_0x1814d7['markerName']),_0x101a92&&(_0x370e66['activeMarkers']['includes'](_0x1814d7['markerName'])?_0x548b51['writer']['addClass']('ck-suggestion-marker--active',_0x5a44ec):_0x548b51['writer']['removeClass']('ck-suggestion-marker--active',_0x5a44ec));}}};}_0x370e66['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1f80c7),_0x370e66['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1f80c7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x493e98(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2364ae,_0x2a2974,_0x1de1e8)=>{_0x1de1e8['options']['showSuggestionHighlights']&&_0x493e98({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2364ae,_0x2a2974,_0x1de1e8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x20a500,_0x2aa159,_0x59a34c)=>{const {type:_0x16894b,id:_0x29a07e}=_0x370e66['_splitMarkerName'](_0x2aa159['markerName']),_0x1816b7=_0x370e66['getSuggestion'](_0x29a07e),_0x172fe4=_0x1816b7['data'];if('formatBlock'!=_0x1816b7['type']||!_0x172fe4||'setTableColumnHeader'!=_0x172fe4['commandName'])return;const _0x55569b=_0x59a34c['mapper']['markerNameToElements'](_0x2aa159['markerName']);if(_0x55569b){for(const _0x47e3d7 of _0x55569b)_0x59a34c['writer']['removeClass']('ck-suggestion-marker-'+_0x16894b,_0x47e3d7),_0x59a34c['writer']['removeClass']('ck-suggestion-marker--active',_0x47e3d7),_0x59a34c['writer']['removeAttribute']('data-suggestion',_0x47e3d7),_0x59a34c['mapper']['unbindElementFromMarkerName'](_0x47e3d7,_0x2aa159['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x176157=this['editor'],_0x336fa1=_0x176157['locale'];function _0x802c55(_0x1c0738){return{'type':'format','content':c(_0x336fa1,'*Format:*\x20%0',_0x1c0738)};}_0x176157['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1346ff=>{if('formatBlock'!=_0x1346ff['type'])return;const {data:_0x262a36}=_0x1346ff;if(_0x262a36){if('setTableRowHeader'==_0x262a36['commandName']){const _0xd022d9=_0x262a36['commandParams'][0x0]['forceValue'];return _0x802c55(c(_0x336fa1,_0xd022d9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x262a36['commandName']){const _0xef4aff=_0x262a36['commandParams'][0x0]['forceValue'];return _0x802c55(c(_0x336fa1,_0xef4aff?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x14dd54{['afterInit'](){const _0x1e5d5e=this['editor'],_0x4bee06=_0x1e5d5e['locale'],_0x905142=_0x1e5d5e['plugins']['get']('TrackChangesEditing');function _0x31f305(_0x3860a9){return{'type':'format','content':''+c(_0x4bee06,'*Set\x20table\x20type:*\x20%0',_0x3860a9)};}_0x1e5d5e['plugins']['has']('TableLayout')&&(_0x905142['enableCommand']('insertTableLayout'),_0x905142['enableDefaultAttributesIntegration']('tableType'),_0x905142['registerBlockAttribute']('tableType'),_0x905142['descriptionFactory']['registerElementLabel'](_0x5cc8e6=>_0x5cc8e6['is']('element','table')&&'layout'===_0x5cc8e6['getAttribute']('tableType'),_0x86a98c=>c(_0x4bee06,'ELEMENT_LAYOUT_TABLE',_0x86a98c)),_0x905142['descriptionFactory']['registerDescriptionCallback'](_0x5f01d7=>{const {data:_0x30bf61}=_0x5f01d7;if(_0x30bf61&&'tableType'==_0x30bf61['key'])switch(_0x30bf61['newValue']){case'layout':return _0x31f305(c(_0x4bee06,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x31f305(c(_0x4bee06,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x324152=>[_0x324152,null]));class $t extends _0x14dd54{static get['requires'](){return[Ct];}['afterInit'](){const _0x4a21bd=this['editor'];if(!_0x4a21bd['plugins']['has']('TableClipboard'))return;const _0x5629e7=_0x4a21bd['plugins']['get']('TrackChangesEditing'),_0x494b60=_0x4a21bd['plugins']['get']('TableUtils'),_0x318cf9=_0x4a21bd['plugins']['get'](Ct),_0x15664c=_0x4a21bd['plugins']['get']('TableClipboard'),_0x30dd58=_0x4a21bd['plugins']['get']('TableSelection'),_0x34183f=_0x4a21bd['plugins']['get'](_0x4094b0);_0x318cf9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4a21bd['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4a21bd['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2370da=null,_0xe93fbd=!0x1;_0x34183f['on']('contentInsertion',(_0x5d1e2c,_0x599c88)=>{_0xe93fbd='paste'===_0x599c88['method'];}),_0x4a21bd['model']['on']('insertContent',(_0x1f7019,_0x47a2f4)=>{if(!_0xe93fbd&&null===_0x30dd58['getSelectedTableCells']())return;const [_0x2d6507,_0x480257]=_0x47a2f4,_0x3bd25f=_0x47a2f4[_0x47a2f4['length']-0x1];_0x3bd25f&&_0x3bd25f['forceDefaultExecution']||_0x5629e7['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x56e225,_0x300892,_0x5a87a2,_0x30557f,_0x9c805a){if(_0x300892&&!_0x300892['is']('documentSelection'))return!0x1;const _0x1ae11f=_0x9c805a['getTableIfOnlyTableInContent'](_0x56e225,_0x5a87a2);if(!_0x1ae11f||!He(_0x1ae11f,void 0x0,_0x30557f))return!0x1;const _0x4e2765=_0x30557f['getSelectionAffectedTableCells'](_0x5a87a2['document']['selection']);if(!_0x4e2765['length'])return!0x1;const _0x12f933=_0x4e2765[0x0]['findAncestor']('table'),_0x2b2131=_0x30557f['getRowIndexes'](_0x4e2765),_0x43ce13=_0x30557f['getColumnIndexes'](_0x4e2765),_0x25a552={'startRow':_0x2b2131['first'],'endRow':_0x2b2131['last'],'startColumn':_0x43ce13['first'],'endColumn':_0x43ce13['last']};return 0x1==_0x4e2765['length']&&(_0x25a552['endRow']+=_0x30557f['getRows'](_0x1ae11f)-0x1,_0x25a552['endColumn']+=_0x30557f['getColumns'](_0x1ae11f)-0x1),He(_0x12f933,_0x25a552,_0x30557f);}(_0x2d6507,_0x480257,_0x4a21bd['model'],_0x494b60,_0x15664c)&&(_0x1f7019['stop'](),_0x2370da={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4a21bd['model']['change'](()=>{_0x4a21bd['model']['insertContent'](_0x47a2f4[0x0],_0x47a2f4[0x1],_0x47a2f4[0x2],{'forceDefaultExecution':!0x0});const _0x599cb9=_0x425596(),{rowInsertionRanges:_0x3e14c8,columnInsertionRanges:_0xfed826,insertionRanges:_0x1c6f72,deletionRanges:_0xf6e3c3,cells:_0x3fbb57}=_0x2370da;_0x3e14c8['length']&&_0x5629e7['markMultiRangeInsertion'](_0x3e14c8,'tablePasteRow',{'tablePasteChainId':_0x599cb9}),_0xfed826['length']&&_0x5629e7['markMultiRangeInsertion'](_0xfed826,'tablePasteColumn',{'tablePasteChainId':_0x599cb9}),_0x1c6f72['length']&&(_0x5629e7['markMultiRangeInsertion'](_0x1c6f72,'tablePaste',{'tablePasteChainId':_0x599cb9,'skipNestingCheck':!0x0}),_0x1c6f72['forEach'](_0x16e39b=>_0x16e39b['detach']?.())),_0xf6e3c3['length']&&(_0x5629e7['markMultiRangeDeletion'](_0xf6e3c3,'tablePaste',{'tablePasteChainId':_0x599cb9,'skipNestingCheck':!0x0}),_0xf6e3c3['forEach'](_0x54d1ab=>_0x54d1ab['detach']?.()));const _0x1ff663=_0x5629e7['markMultiRangeBlockFormat'](_0x3fbb57['map'](({element:_0x2a76ea})=>_0x2a76ea),{'formatGroupId':_0x425596()},[],'tablePasteCell',{'tablePasteChainId':_0x599cb9});if(_0x1ff663){const _0x485928=_0x1ff663['getMarkers'](),_0x110635=[];for(const {element:_0x2f7fca,attributes:_0x22fa2c}of _0x3fbb57){if(!_0x22fa2c)continue;const _0x41e19c=_0x4a21bd['model']['createRangeOn'](_0x2f7fca),_0x377230=_0x485928['find'](_0x3f8181=>_0x3f8181['getRange']()['isEqual'](_0x41e19c));_0x377230&&_0x110635['push']([_0x377230['name'],_0x22fa2c]);}_0x110635['length']&&_0x1ff663['setAttribute']('markerAttributes',Object['fromEntries'](_0x110635));}_0x2370da=null;}));},{'priority':_0x15078e['high']+0xa}),_0x34183f['on']('contentInsertion',()=>{_0xe93fbd=!0x1;},{'priority':'lowest'}),_0x4a21bd['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x39b628,_0x4d9cbb)=>{const [_0x1d5567,_0x381159,,_0x592bcc]=_0x4d9cbb;if(!_0x2370da)return;_0x39b628['stop']();const _0x1ccb73=_0x1d5567['cell'],_0x5283c6=_0x381159,_0x50957e=De(_0x1ccb73),_0x487041=De(_0x5283c6);_0x39b628['return']=_0x1ccb73;let _0x391183=null,_0x1a81c4=null;if(_0x487041||_0x50957e){if(_0x50957e&&!_0x487041){_0x592bcc['remove'](_0x1ccb73['getChild'](0x0));for(const _0x1769fb of Array['from'](_0x5283c6['getChildren']()))_0x592bcc['insert'](_0x1769fb,_0x1ccb73,'end');const _0x519611=_0x2370da['rowInsertionIndexes']['includes'](_0x1d5567['row']),_0x363bbe=_0x2370da['columnInsertionIndexes']['includes'](_0x1d5567['column']);_0x519611||_0x363bbe||(_0x391183=_0x46c3f4['fromRange'](_0x592bcc['createRangeIn'](_0x1ccb73)));}else _0x487041&&!_0x50957e&&(_0x1a81c4=_0x592bcc['createRangeIn'](_0x1ccb73));}else{const _0x10fdc9=_0x592bcc['createElement']('tableCellSuggestion'),_0x4c8f35=_0x592bcc['createElement']('tableCellSuggestion');_0x592bcc['wrap'](_0x592bcc['createRangeIn'](_0x1ccb73),_0x4c8f35),_0x592bcc['insert'](_0x10fdc9,_0x1ccb73,0x0);for(const _0x2c8198 of Array['from'](_0x5283c6['getChildren']()))_0x592bcc['insert'](_0x2c8198,_0x10fdc9,'end');_0x391183=_0x46c3f4['fromRange'](_0x592bcc['createRangeOn'](_0x10fdc9)),_0x1a81c4=_0x46c3f4['fromRange'](_0x592bcc['createRangeOn'](_0x4c8f35));}const _0x199aea=Array['from'](_0x5283c6['getAttributes']())['filter'](([_0x40fafa])=>Oe['includes'](_0x40fafa));_0x2370da['cells']['push']({'element':_0x1ccb73,'attributes':_0x199aea['length']?Object['fromEntries'](_0x199aea):null}),_0x391183&&_0x2370da['insertionRanges']['push'](_0x391183),_0x1a81c4&&_0x2370da['deletionRanges']['push'](_0x1a81c4);},{'priority':'high'}),_0x494b60['on']('insertColumns',(_0x1781a0,_0x17320c)=>{const [_0x54ff91,_0x50c790={}]=_0x17320c;if(!_0x2370da)return;const _0x5d6cad=_0x50c790['at']||0x0,_0x46e51e=_0x50c790['columns']||0x1;_0x2370da['columnInsertionIndexes']=new Array(_0x46e51e)['fill'](_0x5d6cad)['map']((_0x240d92,_0x2544c2)=>_0x240d92+_0x2544c2);for(const {cell:_0x136dbd}of _0x494b60['createTableWalker'](_0x54ff91,{'startColumn':_0x5d6cad,'endColumn':_0x5d6cad+_0x46e51e-0x1}))_0x2370da['columnInsertionRanges']['push'](_0x4a21bd['model']['createRangeOn'](_0x136dbd));},{'priority':'low'}),_0x494b60['on']('insertRows',(_0x585b38,_0x2ebd6f)=>{const [_0x2d2b2b,_0x225568={}]=_0x2ebd6f;if(!_0x2370da)return;const _0x58d6de=_0x225568['at']||0x0,_0x4d912d=_0x225568['rows']||0x1;_0x2370da['rowInsertionIndexes']=new Array(_0x4d912d)['fill'](_0x58d6de)['map']((_0x2f2f02,_0x2775ac)=>_0x2f2f02+_0x2775ac);for(const {cell:_0x48a921}of _0x494b60['createTableWalker'](_0x2d2b2b,{'startRow':_0x58d6de,'endRow':_0x58d6de+_0x4d912d-0x1}))_0x2370da['rowInsertionRanges']['push'](_0x4a21bd['model']['createRangeOn'](_0x48a921));},{'priority':'low'}),_0x5629e7['descriptionFactory']['registerDescriptionCallback'](_0x1f4d5a=>{if(_0x1f4d5a['subType']&&_0x1f4d5a['subType']['startsWith']('tablePaste'))return _0x1f4d5a['previous']?{}:{'type':'insertion','content':c(_0x4a21bd['locale'],'*Replace\x20table\x20cells*')};});const _0x230119=()=>!0x1;for(const _0x6989aa of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5629e7['_suggestionFactory']['registerCustomCallback']('insertion',_0x6989aa,'join',_0x230119),_0x5629e7['_suggestionFactory']['registerCustomCallback']('deletion',_0x6989aa,'join',_0x230119),_0x5629e7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6989aa,'join',_0x230119);_0x5629e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x230119),_0x5629e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x49a242,_0x471b86,_0x5edb27)=>{const _0x4ff357=_0x49a242['map'](_0x420eb6=>_0x420eb6['getContainedElement']())['filter'](_0x3c3dc3=>_0x3c3dc3),_0x50cfde=new Map(_0x4ff357['map'](_0x5f294f=>[_0x5f294f,null]));if(_0x2370da){for(const {element:_0x23508d,attributes:_0x103ee0}of _0x2370da['cells'])_0x103ee0&&_0x50cfde['set'](_0x23508d,_0x103ee0);}else{if(_0x5edb27&&_0x5edb27['markerAttributes'])for(const [_0x5cad44,_0x3026b9]of Object['entries'](_0x5edb27['markerAttributes'])){const _0x4cf103=_0x4a21bd['model']['markers']['get'](_0x5cad44),_0x263943=_0x4cf103?_0x4cf103['getRange']()['getContainedElement']():null;_0x263943&&_0x50cfde['set'](_0x263943,_0x3026b9);}}_0x4a21bd['model']['change'](_0x5bf2ff=>{for(const [_0x1efaf8,_0xf7b521]of _0x50cfde)_0x5bf2ff['setAttributes']({...Ue,..._0xf7b521},_0x1efaf8);});});const _0x4d75b7=(_0x1ecd38,_0x5eb6f2)=>{_0x5629e7['_suggestionFactory']['registerCustomCallback'](_0x1ecd38,'tablePaste',_0x5eb6f2,(_0x1f7400,_0x3a01ee,_0x3cd8a7)=>{_0x4a21bd['model']['change'](_0x2fc359=>{const _0x4ee12a=[];for(const _0x5e8b7d of _0x1f7400){const _0x36a6f3=_0x5e8b7d['start']['nodeAfter'];_0x36a6f3['is']('element','tableCellSuggestion')&&_0x4ee12a['push'](_0x36a6f3);}_0x5629e7['_suggestionFactory']['getSuggestionCallback'](_0x1ecd38,null,_0x5eb6f2)(_0x1f7400,_0x3a01ee,_0x3cd8a7);for(const _0x46c6a7 of _0x4ee12a)'$graveyard'!=_0x46c6a7['root']['rootName']&&_0x2fc359['unwrap'](_0x46c6a7);});});};_0x4d75b7('insertion','accept'),_0x4d75b7('insertion','discard'),_0x4d75b7('deletion','accept'),_0x4d75b7('deletion','discard'),_0x5629e7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x36f4a8=>{const _0x472af3=_0x36f4a8['map'](_0x2b850b=>_0x2b850b['getContainedElement']()),_0x164fc8=_0x472af3[0x0]['findAncestor']('table'),{minRow:_0x6d196f,maxRow:_0x2fd25d}=_0x318cf9['_getCoordsForCells'](_0x472af3);_0x494b60['removeRows'](_0x164fc8,{'at':_0x6d196f,'rows':_0x2fd25d-_0x6d196f+0x1});}),_0x5629e7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x44a991=>{const _0x320682=_0x44a991['map'](_0x2466a1=>_0x2466a1['getContainedElement']()),_0x585c53=_0x320682[0x0]['findAncestor']('table'),{minColumn:_0x18884f,maxColumn:_0x43eeac}=_0x318cf9['_getCoordsForCells'](_0x320682);_0x494b60['removeColumns'](_0x585c53,{'at':_0x18884f,'columns':_0x43eeac-_0x18884f+0x1});});const _0xc0e0a=(_0x50c158,_0x29fd53)=>{if(!_0x29fd53['subType']||!_0x29fd53['subType']['startsWith']('tablePaste'))return;const _0xabc06=_0x29fd53['attributes']['tablePasteChainId'],_0x304231=_0x5629e7['getSuggestions']()['filter'](_0x3b8719=>_0x3b8719['isInContent']&&_0x3b8719['attributes']&&_0x3b8719['attributes']['tablePasteChainId']==_0xabc06);_0x304231['length']&&_0x29fd53['getAllAdjacentSuggestions']()['length']!=_0x304231['length']&&_0x304231['reduce']((_0xa97de6,_0x3a6685)=>(_0xa97de6['next']=_0x3a6685,_0x3a6685['previous']=_0xa97de6,_0x3a6685));};function _0xf99db8(_0x3d0e89,_0x29077d=!0x0){const {id:_0x47cfcf,authorId:_0x558d1f}=_0x5629e7['_splitMarkerName'](_0x3d0e89['markerName']),_0x2b3c37=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x413024=_0x5629e7['activeMarkers']['includes'](_0x3d0e89['markerName']);return _0x413024&&_0x2b3c37['push']('ck-suggestion-marker--active'),{'classes':_0x2b3c37,'attributes':{'data-suggestion':_0x47cfcf,'data-author-id':_0x558d1f},'priority':_0x413024&&_0x29077d?0xbc2:0xbb8};}_0x5629e7['on']('suggestionLoaded',_0xc0e0a,{'priority':'high'}),_0x5629e7['on']('suggestionUnloaded',_0xc0e0a,{'priority':'high'}),_0x4a21bd['model']['document']['registerPostFixer'](()=>{let _0x9576bf=!0x1;const _0x1f645c=Array['from'](_0x4a21bd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4eda7d,data:_0x12aced}of _0x1f645c){const {group:_0x580017,type:_0x458f54,id:_0xad0b8d}=_0x5629e7['_splitMarkerName'](_0x4eda7d);if('suggestion'!=_0x580017||'deletion'!=_0x458f54||_0x12aced['oldRange'])continue;if(!_0x5629e7['hasSuggestion'](_0xad0b8d))continue;const _0x54e28f=_0x5629e7['getSuggestion'](_0xad0b8d)['getRanges'](),_0x5bb0be=_0x4a21bd['plugins']['get']('Users')['me'];for(const _0x5a455a of _0x5629e7['getSuggestions']()){if(!_0x5a455a['isInContent']||_0x5a455a['author']!=_0x5bb0be)continue;if('formatBlock'!=_0x5a455a['type']||'tablePasteCell'!=_0x5a455a['subType'])continue;if(_0x5a455a['getRanges']()['every'](_0x19572b=>_0x54e28f['some'](_0x4a8cbe=>_0x4a8cbe['containsRange'](_0x19572b,!0x0)))){for(const _0x573963 of _0x5a455a['getAllAdjacentSuggestions']())_0x573963['isInContent']&&(_0x573963['discard'](),_0x9576bf=!0x0);}}}return _0x9576bf;}),_0x4a21bd['model']['document']['registerPostFixer'](_0x53dded=>{const _0x10069f=_0x4a21bd['commands']['get']('redo');if(!_0x10069f||!_0x10069f['_createdBatches']['has'](_0x53dded['batch']))return!0x1;let _0x2f23a2=!0x1;const _0xb6d4b6=_0x4a21bd['plugins']['get']('Users')['me'],_0x5100eb=_0x4a21bd['model']['document']['differ']['getChanges'](),_0x2f9e7a=Array['from'](_0x4a21bd['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x486463,data:_0xce3dab})=>{const {group:_0x138774,subType:_0x234611,authorId:_0x5cc182}=_0x5629e7['_splitMarkerName'](_0x486463);return'suggestion'==_0x138774&&'tablePaste'==_0x234611&&_0x5cc182==_0xb6d4b6['id']&&!_0xce3dab['oldRange'];});for(const _0x43b539 of _0x5100eb){if('insert'!=_0x43b539['type']||'tableCellSuggestion'!=_0x43b539['name']||0x1!=_0x43b539['length'])continue;const _0x2a2070=_0x53dded['createRange'](_0x43b539['position'],_0x43b539['position']['getShiftedBy'](0x1));if(!_0x2f9e7a['find'](({data:_0x10c58f})=>_0x10c58f['newRange']['isEqual'](_0x2a2070))){for(const {name:_0x1e30ec,data:_0x50803b}of _0x2f9e7a)if(_0x2a2070['containsRange'](_0x50803b['newRange'])){_0x53dded['updateMarker'](_0x1e30ec,{'range':_0x2a2070}),_0x2f23a2=!0x0;break;}}}return _0x2f23a2;}),_0x4a21bd['model']['document']['registerPostFixer'](_0x5419c0=>{let _0x2287fa=!0x1;const _0x19ef8a=_0x4a21bd['plugins']['get']('Users')['me'],_0x57db8f=_0x5629e7['getSuggestions']()['filter'](_0x5b3b2d=>_0x5b3b2d['isInContent']&&_0x5b3b2d['author']==_0x19ef8a),_0x2fc6e4=new Set(),_0x3a28c1=new Set();for(const _0x6e5500 of _0x57db8f)if('tablePaste'==_0x6e5500['subType'])for(const _0x537762 of _0x6e5500['getMarkers']()){const _0x8469e5=_0x537762['getRange']()['getContainedElement']();if(_0x8469e5){if(_0x8469e5['is']('element','tableCellSuggestion')&&De(_0x8469e5)){_0x6e5500['removeMarker'](_0x537762['name']),_0x2fc6e4['add'](_0x8469e5),_0x2287fa=!0x0;const _0x580412=_0x8469e5['nextSibling'],_0x4bbce4=_0x8469e5['previousSibling'],_0x3d5e34=_0x580412&&_0x580412['is']('element','tableCellSuggestion'),_0x290dff=_0x4bbce4&&_0x4bbce4['is']('element','tableCellSuggestion');_0x3d5e34&&!_0x2fc6e4['has'](_0x580412)&&_0x3a28c1['add'](_0x580412),_0x290dff&&!_0x2fc6e4['has'](_0x4bbce4)&&_0x3a28c1['add'](_0x4bbce4);}else _0x8469e5['is']('element','paragraph')&&_0x8469e5['isEmpty']&&(_0x6e5500['removeMarker'](_0x537762['name']),_0x2287fa=!0x0);}}else{if('tablePasteCell'==_0x6e5500['subType']){if(!_0x6e5500['attributes']||!_0x6e5500['attributes']['tablePasteChainId'])continue;const _0x13d97d=_0x6e5500['attributes']['markerAttributes'];if(_0x13d97d&&Object['keys'](_0x13d97d)['length'])continue;const _0x256790=_0x6e5500['attributes']['tablePasteChainId'];let _0x50fbd8=!0x0,_0x415302=!0x0;for(const _0xf0e06d of _0x57db8f)if(_0xf0e06d['subType']&&_0xf0e06d['subType']['startsWith']('tablePaste')){if(!_0xf0e06d['attributes']['tablePasteChainId']){_0x415302=!0x1;break;}if(_0xf0e06d['id']!=_0x6e5500['id']&&_0xf0e06d['attributes']['tablePasteChainId']==_0x256790){_0x50fbd8=!0x1;break;}}_0x415302&&_0x50fbd8&&(_0x6e5500['removeMarkers'](),_0x2287fa=!0x0);}}for(const _0x1c7ff7 of _0x2fc6e4)_0x5419c0['remove'](_0x1c7ff7);for(const _0x2eb3de of _0x3a28c1)_0x5419c0['unwrap'](_0x2eb3de);return _0x2287fa;}),_0x4a21bd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xa08bd9=>_0xf99db8(_0xa08bd9),'converterPriority':'high'}),_0x4a21bd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5ebb09,_0xb050d6)=>_0xb050d6['options']['showSuggestionHighlights']?_0xf99db8(_0x5ebb09,!0x1):null,'converterPriority':'high'});const _0x32ecc8=_0x4a21bd['editing']['view'];this['listenTo'](_0x32ecc8['document'],'clipboardOutput',(_0x39c0b2,_0x253cb7)=>{const _0xd1dbf4=[];for(const _0x1b35a4 of _0x32ecc8['createRangeIn'](_0x253cb7['content'])['getItems']())_0x1b35a4['is']('element','suggestion-td')&&_0xd1dbf4['push'](_0x1b35a4);_0x32ecc8['change'](_0x134d6e=>{for(const _0x17db64 of _0xd1dbf4)_0x134d6e['move'](_0x134d6e['createRangeIn'](_0x17db64),_0x134d6e['createPositionBefore'](_0x17db64)),_0x134d6e['remove'](_0x17db64);});});}}function De(_0x1523ee){if(_0x1523ee['isEmpty'])return!0x0;const _0x4e5464=_0x1523ee['getChild'](0x0);return _0x4e5464['is']('element','paragraph')&&_0x4e5464['isEmpty'];}function He(_0x1de090,_0x4e7c01={},_0x24dc0e){for(const {isAnchor:_0x9887e2,cellHeight:_0x31e7a3,cellWidth:_0x17997d}of _0x24dc0e['createTableWalker'](_0x1de090,{'includeAllSlots':!0x0,..._0x4e7c01}))if(!_0x9887e2||0x1!=_0x31e7a3||0x1!=_0x17997d)return!0x1;return!0x0;}class Bt extends _0x14dd54{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x6447ec=this['editor']['plugins']['get']('TrackChangesEditing');_0x6447ec['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x6447ec['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x6447ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6447ec['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x6447ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x6447ec['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x30d269,_0x531008){const _0x294b5d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x471040=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1bc0d2=_0x531008['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4b81e2=_0x471040['getColumnGroupElement'](_0x1bc0d2);let _0x3e769c=_0x4b81e2?_0x471040['getTableColumnsWidths'](_0x4b81e2):null,_0x171ce7=_0x1bc0d2['getAttribute']('tableWidth')||null;const _0x5dd747=_0x531008['tableWidth']||_0x171ce7,_0x523b19=_0x531008['columnWidths']||_0x3e769c,_0x367ce2=this['editor']['plugins']['get']('Users')['me'];for(const _0x550329 of _0x294b5d['getSuggestions']()){const _0x380df5=_0x550329['getContainedElement']();if('resizeTable'===_0x550329['subType']&&_0x380df5===_0x1bc0d2){_0x550329['author']!==_0x367ce2&&_0x550329['discard']();const _0x1eb1e3=_0x550329['data']['commandParams'];_0x171ce7=_0x1eb1e3[0x0]['tableWidth'],_0x3e769c=_0x1eb1e3[0x0]['columnWidths'];break;}}_0x30d269({'table':_0x1bc0d2,'tableWidth':_0x5dd747,'columnWidths':_0x523b19}),_0x294b5d['markBlockFormat'](_0x1bc0d2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x171ce7,'columnWidths':_0x3e769c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4f2aaf){if('formatBlock'!=_0x4f2aaf['type']&&'formatInline'!=_0x4f2aaf['type'])return;const {data:_0x377af1}=_0x4f2aaf;if(_0x377af1&&'resizeTable'===_0x377af1['formatGroupId']){const _0x4ff652='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x4ff652)};}}}class xt extends _0x14dd54{['afterInit'](){const _0x39de9b=this['editor'];_0x39de9b['plugins']['has']('Template')&&_0x39de9b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x14dd54{['afterInit'](){const _0x41e538=this['editor'];if(!_0x41e538['commands']['get']('insertTableOfContents'))return;_0x41e538['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x241a90=_0x41e538['plugins']['get']('TrackChangesEditing'),_0x3146de=_0x41e538['locale'];_0x241a90['descriptionFactory']['registerElementLabel']('tableOfContents',_0x432dcd=>c(_0x3146de,'ELEMENT_TABLE_OF_CONTENTS',_0x432dcd));}}class Rt extends _0x14dd54{['afterInit'](){const _0x358255=this['editor'];if(!_0x358255['plugins']['has']('Title'))return;const _0x456876=_0x358255['plugins']['get']('TrackChangesEditing');_0x456876['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x358255['locale'],'ELEMENT_TITLE')),_0x358255['model']['document']['registerPostFixer'](_0x358c78=>{let _0x5c5498=!0x1;const _0x3d879e=Array['from'](_0x358255['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa5c3c5,data:_0x458f1e}of _0x3d879e){const {group:_0x5bcf13}=_0x456876['_splitMarkerName'](_0xa5c3c5);if('suggestion'!==_0x5bcf13||!_0x458f1e['newRange'])continue;const _0x5c9d51=_0x458f1e['newRange'],_0x10611f=_0x5c9d51['end']['nodeBefore'];if(!_0x10611f||!_0x10611f['is']('element','title-content'))continue;if(!_0x5c9d51['start']['isTouching'](_0x5c9d51['end']))continue;const _0x56b581=_0x358255['model']['schema']['getNearestSelectionRange'](_0x5c9d51['end'],'forward');if(_0x56b581&&_0x56b581['isCollapsed']){const _0x52fb06=_0x358c78['createRange'](_0x5c9d51['start'],_0x56b581['start']);_0x52fb06['isEqual'](_0x5c9d51)||(_0x358c78['updateMarker'](_0xa5c3c5,{'range':_0x52fb06}),_0x5c5498=!0x0);}_0x5c5498||(_0x358c78['removeMarker'](_0xa5c3c5),_0x5c5498=!0x0);}return _0x5c5498;});}}class Tt extends _0x14dd54{['afterInit'](){const _0x2fc482=this['editor'],_0x5259e1=_0x2fc482['plugins']['get']('TrackChangesEditing');_0x2fc482['plugins']['has']('Uploadcare')&&(_0x5259e1['enableCommand']('uploadcare'),_0x2fc482['plugins']['has']('UploadcareImageEdit')&&(_0x5259e1['enableCommand']('uploadcareImageEdit'),_0x5259e1['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5259e1['registerBlockAttribute']('uploadcareImageId'),_0x5259e1['descriptionFactory']['registerDescriptionCallback'](_0x1c049b=>{if('attribute'!=_0x1c049b['type'])return;const {data:_0x4d3d99}=_0x1c049b;return _0x4d3d99&&'uploadcareImageId'==_0x4d3d99['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x14dd54{['afterInit'](){const _0xa1991b=this['editor'],_0x399b10=_0xa1991b['plugins']['get']('TrackChangesEditing');_0xa1991b['plugins']['has']('UndoEditing')&&(_0x399b10['enableCommand']('undo'),_0x399b10['enableCommand']('redo'));}}class Ut extends _0x14dd54{static get['requires'](){return[Ct];}['afterInit'](){const _0x133e48=this['editor'];if(!_0x133e48['plugins']['has']('TableCaptionEditing'))return;_0x133e48['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x14dd54{['tableProperties'];['tableCellProperties'];constructor(_0x4ffe4a){super(_0x4ffe4a),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 _0x1277a6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4fbd12 of this['tableProperties'])_0x1277a6['enableCommand'](_0x4fbd12,(_0x557501,_0xfaf55)=>{const _0x80f092=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4fbd12,[_0x80f092],this['tableProperties'],'tableProperties',_0x557501,_0xfaf55);});_0x1277a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1277a6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1277a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x26777e,_0x324eea)=>this['handleDiscardAction'](this['tableProperties'],_0x26777e,_0x324eea)),_0x1277a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x40f32c of this['tableCellProperties'])_0x1277a6['enableCommand'](_0x40f32c,(_0x3620e7,_0x4f50b0)=>{const _0x47d8bd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x40f32c,_0x47d8bd,this['tableCellProperties'],'tableCellProperties',_0x3620e7,_0x4f50b0);});_0x1277a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1277a6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1277a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xb490e2,_0x32fe77)=>this['handleDiscardAction'](this['tableCellProperties'],_0xb490e2,_0x32fe77)),_0x1277a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1277a6['descriptionFactory']['registerDescriptionCallback'](_0x5b0c7f=>this['handleSuggestionDescription'](_0x5b0c7f));}['_handlePropertyChange'](_0x4c635f,_0x49515e,_0x32de4e,_0x48d7b7,_0x214445,_0x4b010d){const _0x3005c5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4b010d['batch'],()=>{for(const _0x518f24 of _0x49515e){if(this['_getSuggestion'](_0x518f24,_0x48d7b7))_0x214445(_0x4b010d);else{const _0x82016d={};for(const _0x59d628 of _0x32de4e){const _0x14aefd=_0x518f24['getAttribute'](_0x59d628);void 0x0!==_0x14aefd&&(_0x82016d[_0x59d628]=_0x14aefd);}_0x214445(_0x4b010d),_0x3005c5['markBlockFormat'](_0x518f24,{'commandParams':[_0x82016d]},[],_0x48d7b7);}}});}['handleDiscardAction'](_0x4882e0,_0x377b05,_0x20ce89){const _0x33953c=_0x377b05[0x0]['start']['nodeAfter'],_0x336298=_0x20ce89['commandParams'][0x0];this['editor']['model']['change'](_0x39b25b=>{for(const _0x50bb83 of _0x4882e0)void 0x0!==_0x336298[_0x50bb83]?_0x39b25b['setAttribute'](_0x50bb83,_0x336298[_0x50bb83],_0x33953c):_0x39b25b['removeAttribute'](_0x50bb83,_0x33953c);});}['handleSuggestionDescription'](_0x2f3328){if(_0x2f3328['data'])switch(_0x2f3328['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1b9341,_0x2c10dd){const _0x4713c6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x451ebf of _0x4713c6['getSuggestions']({'skipNotAttached':!0x0})){const _0x8e0f9a=_0x451ebf['getContainedElement']();if(_0x451ebf['subType']===_0x2c10dd&&_0x8e0f9a===_0x1b9341)return _0x451ebf;}return null;}}const u='$elementName';class p extends _0x14dd54{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1818cf,_0x4e3b5b,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3aae60){super(_0x3aae60),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x6890ac,_0x55d5b4,_0x27de92,_0x55e3b9)=>{this['_model']['change'](()=>{for(const _0x169056 of[..._0x55e3b9,..._0x27de92])this['_model']['markers']['has'](_0x169056)&&_0x3aae60['editing']['reconvertMarker'](_0x169056);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3aae60['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x3aae60['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3aae60['config']['get']('trackChanges.trackFormatChanges'),_0x3aae60['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3aae60['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3aae60,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4cea83=this['editor'],_0x333147=(_0x25ab75,_0x52b425)=>{if('attribute'!=_0x25ab75)return'ck-suggestion-marker-'+_0x25ab75;const _0xf64691=_0x52b425['split']('|')[0x0];return this['_isBlockAttribute'](_0xf64691)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4cea83['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x48fc1d=>{const {id:_0x5b3332,authorId:_0xa0a1a3,type:_0x3b5c63,subType:_0x334f58}=this['_splitMarkerName'](_0x48fc1d['markerName']),_0x39a347=['ck-suggestion-marker',_0x333147(_0x3b5c63,_0x334f58)];let _0x12a43b=0xbb8;return this['activeMarkers']['includes'](_0x48fc1d['markerName'])&&(_0x39a347['push']('ck-suggestion-marker--active'),_0x12a43b=0xbc2),'deletion'==_0x3b5c63&&(_0x12a43b+=0x5),{'classes':_0x39a347,'attributes':{'data-suggestion':_0x5b3332,'data-author-id':_0xa0a1a3},'priority':_0x12a43b};}}),_0x4cea83['conversion']['for']('dataDowncast')['add'](_0x5cbedb=>{_0x5cbedb['on']('addMarker:suggestion',(_0x172a6e,_0x22021d,_0x2fb85f)=>{if(!_0x2fb85f['options']['showSuggestionHighlights'])return;const _0x1c4d11=_0x22021d['item'];if(!_0x1c4d11)return;const _0xe69b9=_0x2fb85f['mapper']['toViewElement'](_0x1c4d11);_0x4cea83['model']['schema']['isObject'](_0x1c4d11)&&_0xe69b9&&!_0xe69b9['getCustomProperty']('widget')&&_0xe69b9['is']('containerElement')&&_0x514899(_0xe69b9,_0x2fb85f['writer']);},{'priority':'high'});}),_0x4cea83['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xf2d8fe,_0x46dadf)=>{if(!_0x46dadf['options']['showSuggestionHighlights'])return null;const {id:_0x531001,authorId:_0x544ebe,type:_0x5ccb97,subType:_0xcd2e80}=this['_splitMarkerName'](_0xf2d8fe['markerName']);return{'classes':['ck-suggestion-marker',_0x333147(_0x5ccb97,_0xcd2e80)],'priority':0xbb8,'attributes':{'data-suggestion':_0x531001,'data-author-id':_0x544ebe}};}});const _0x507f48=({showActiveMarkers:_0x47506a=!0x0,isAttributeSuggestion:_0x42f32e=!0x1}={})=>(_0x3503a0,_0x3f0f3c,_0x2502fe)=>{if(!_0x3f0f3c['item'])return;const {id:_0x597dcb,authorId:_0x3e85fb}=this['_splitMarkerName'](_0x3f0f3c['markerName']);if(_0x42f32e){const _0x129bb8=this['_suggestions']['get'](_0x597dcb),_0x196761=this['_getAttributeKey'](_0x129bb8);if(!this['_isBlockAttribute'](_0x196761))return;}if(_0x3f0f3c['item']['is']('selection'))return void _0x2502fe['consumable']['consume'](_0x3f0f3c['item'],_0x3503a0['name']);const _0x4e0081=_0x2502fe['mapper']['toViewElement'](_0x3f0f3c['item']);if(_0x3f0f3c['item']['is']('element')&&_0x4cea83['model']['schema']['isBlock'](_0x3f0f3c['item'])&&!_0x4e0081['getCustomProperty']('addHighlight')){_0x2502fe['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4e0081),_0x2502fe['writer']['setAttribute']('data-suggestion',_0x597dcb,_0x4e0081),_0x2502fe['writer']['setAttribute']('data-author-id',_0x3e85fb,_0x4e0081),_0x2502fe['mapper']['bindElementToMarker'](_0x4e0081,_0x3f0f3c['markerName']),_0x47506a&&(this['activeMarkers']['includes'](_0x3f0f3c['markerName'])?_0x2502fe['writer']['addClass']('ck-suggestion-marker--active',_0x4e0081):_0x2502fe['writer']['removeClass']('ck-suggestion-marker--active',_0x4e0081));for(const _0x557f69 of _0x4cea83['model']['createRangeIn'](_0x3f0f3c['item'])['getItems']())_0x2502fe['consumable']['consume'](_0x557f69,_0x3503a0['name']);_0x2502fe['consumable']['consume'](_0x3f0f3c['item'],_0x3503a0['name']);}};_0x4cea83['conversion']['for']('dataDowncast')['add'](_0x1d5cb2=>{_0x1d5cb2['on']('addMarker:suggestion:formatBlock',(_0x3938c8,_0x2bb502,_0x48cfe3)=>{_0x48cfe3['options']['showSuggestionHighlights']&&_0x507f48({'showActiveMarkers':!0x1})(_0x3938c8,_0x2bb502,_0x48cfe3);},{'priority':'highest'});}),_0x4cea83['conversion']['for']('dataDowncast')['add'](_0x4005cc=>{_0x4005cc['on']('addMarker:suggestion:attribute',(_0xdf9ddd,_0x341484,_0xcab73f)=>{_0xcab73f['options']['showSuggestionHighlights']&&_0x507f48({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xdf9ddd,_0x341484,_0xcab73f);},{'priority':'highest'});}),_0x4cea83['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x535b37,_0x5ed45d)=>{if(_0x5ed45d['options']['showSuggestionHighlights']){const {id:_0x5a0225,authorId:_0x19339d}=this['_splitMarkerName'](_0x535b37);return _0x535b37['includes'](':split')||_0x535b37['includes'](':merge')?{'group':'suggestion','name':_0x535b37['substr'](0xb),'attributes':{'data-suggestion':_0x5a0225,'data-author-id':_0x19339d}}:null;}return{'group':'suggestion','name':_0x535b37['substr'](0xb)};}}),_0x4cea83['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x269275,{writer:_0x47abbb})=>{let _0x4cae16='suggestion:'+_0x269275['getAttribute']('suggestion-type')+':'+_0x269275['getAttribute']('id');return _0x269275['getAttribute']('marker-count')&&(_0x4cae16+=':'+_0x269275['getAttribute']('marker-count')),_0x47abbb['createElement']('$marker',{'data-name':_0x4cae16});}}),_0x4cea83['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4cea83['conversion']['for']('editingDowncast')['add'](_0x8cc374=>{_0x8cc374['on']('addMarker:suggestion:formatBlock',_0x507f48(),{'priority':'high'});}),_0x4cea83['conversion']['for']('editingDowncast')['add'](_0x33764f=>{_0x33764f['on']('addMarker:suggestion:attribute',_0x507f48({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4cea83['conversion']['for']('editingDowncast')['add'](_0x25c35f=>{_0x25c35f['on']('removeMarker:suggestion:formatBlock',(_0x43021a,_0x4caee1,_0x233479)=>{const _0x5350e0=_0x233479['mapper']['markerNameToElements'](_0x4caee1['markerName']);if(_0x5350e0){for(const _0x39f538 of _0x5350e0)_0x39f538['getCustomProperty']('addHighlight')||(_0x233479['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x39f538),_0x233479['writer']['removeAttribute']('data-suggestion',_0x39f538),_0x233479['writer']['removeAttribute']('data-author-id',_0x39f538),_0x233479['mapper']['unbindElementFromMarkerName'](_0x39f538,_0x4caee1['markerName']));}},{'priority':'high'});}),_0x4cea83['conversion']['for']('editingDowncast')['add'](_0x5e8e4e=>{_0x5e8e4e['on']('removeMarker:suggestion:attribute',(_0x595d16,_0x35c85d,_0x2498e8)=>{const _0xe3aed3=_0x2498e8['mapper']['markerNameToElements'](_0x35c85d['markerName']);if(!_0xe3aed3)return;const {id:_0x397aa7}=this['_splitMarkerName'](_0x35c85d['markerName']),_0x4074cf=this['_suggestions']['get'](_0x397aa7),_0x7df0ce=this['_getAttributeKey'](_0x4074cf);if(this['_isBlockAttribute'](_0x7df0ce)){for(const _0x544c30 of _0xe3aed3)_0x544c30['getCustomProperty']('addHighlight')||(_0x2498e8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x544c30),_0x2498e8['writer']['removeAttribute']('data-suggestion',_0x544c30),_0x2498e8['writer']['removeAttribute']('data-author-id',_0x544c30),_0x2498e8['mapper']['unbindElementFromMarkerName'](_0x544c30,_0x35c85d['markerName']));}},{'priority':'high'});}),_0x4cea83['model']['document']['registerPostFixer'](_0x327efd=>{let _0x22399e=!0x1;const _0x17b106=Array['from'](_0x4cea83['model']['document']['differ']['getChangedMarkers']()),_0x20d467=new Set();for(const {name:_0xaf955c,data:_0x317ebc}of _0x17b106){const {group:_0x52ce9d,type:_0x4e8aa0,subType:_0x251c78,id:_0x1c6040}=this['_splitMarkerName'](_0xaf955c);if('suggestion'!==_0x52ce9d)continue;const _0x1a03d4=this['_suggestions']['get'](_0x1c6040);if(null!=_0x317ebc['newRange']){'formatInline'==_0x4e8aa0&&(_0x22399e=_0x22399e||Jt(_0x317ebc['newRange'],_0xaf955c,_0x327efd,_0x4cea83['model']['schema']));const _0x4e43a4='attribute'==_0x4e8aa0&&this['_isBlockAttribute'](_0x251c78['split']('|')[0x0]);if(_0x317ebc['newRange']['isCollapsed']||'$graveyard'==_0x317ebc['newRange']['root']['rootName']||'formatBlock'==_0x4e8aa0&&!Ht(_0x317ebc['newRange'])||_0x4e43a4&&!Ht(_0x317ebc['newRange'])||'deletion'==_0x4e8aa0&&!(!Lt(_0x292a0f=_0x317ebc['newRange'])&&!function(_0x67aec){return _0x67aec['start']['parent']==_0x67aec['end']['nodeBefore']&&_0x67aec['start']['isAtEnd'];}(_0x292a0f)))_0x327efd['removeMarker'](_0xaf955c),_0x22399e=!0x0;else{if(!_0x1a03d4||!_0x1a03d4['isInContent'])continue;if(_0x317ebc['newRange']&&_0x317ebc['oldRange']&&_0x317ebc['newRange']['isEqual'](_0x317ebc['oldRange']))continue;_0x20d467['add'](_0x1a03d4);}}}var _0x292a0f;return _0x20d467['size']>0x0&&(_0x22399e=!!this['_joinWithAdjacentSuggestions'](_0x20d467)||_0x22399e),_0x22399e;}),_0x4cea83['model']['document']['registerPostFixer'](_0x55f098=>{let _0x565d8d=!0x1;for(const _0x1228c6 of _0x4cea83['model']['document']['differ']['getChanges']())if('insert'==_0x1228c6['type'])for(const _0x3c6977 of this['_suggestions']['values']()){if(_0x3c6977['isMultiRange']||!_0x3c6977['isInContent'])continue;const _0x26becf='formatBlock'==_0x3c6977['type'],_0x315fea=this['_getAttributeKey'](_0x3c6977),_0x44f119=_0x315fea&&this['_isBlockAttribute'](_0x315fea);if(!_0x26becf&&!_0x44f119)continue;const _0x294d88=_0x3c6977['getFirstRange']();if(_0x294d88['start']['parent']!=_0x294d88['end']['parent']&&!_0x294d88['end']['isAtEnd']){const _0x472132=_0x4cea83['model']['createPositionAt'](_0x294d88['start']['nodeAfter'],'end'),_0x4bd443=_0x4cea83['model']['createRange'](_0x294d88['start'],_0x472132);_0x55f098['updateMarker'](_0x3c6977['getFirstMarker'](),{'range':_0x4bd443}),_0x565d8d=!0x0;}}return _0x565d8d;}),_0x4cea83['model']['document']['registerPostFixer'](_0x389ac0=>this['_processAttributeChanges'](_0x389ac0)),_0x4cea83['model']['document']['registerPostFixer'](_0x4f01fe=>!_0x4f01fe['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4f01fe)),_0x4cea83['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4cea83['model']['document']['on']('change:data',(_0x415390,_0x374984)=>{if(!_0x374984['isLocal']||_0x374984['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x34558b=_0x4cea83['model']['document']['differ']['getChanges']();if(0x0==_0x34558b['length'])return;const _0x556682=[],_0x549384=_0x34558b['filter'](_0x2e8aee=>'attribute'==_0x2e8aee['type']),_0x561454=_0x34558b['filter'](_0x8842cc=>'insert'==_0x8842cc['type']&&'$text'!=_0x8842cc['name']);for(const _0x5c0c38 of _0x549384)this['_isRegisteredAttribute'](_0x5c0c38['attributeKey'])&&_0x556682['push']({'key':_0x5c0c38['attributeKey'],'newValue':_0x5c0c38['attributeNewValue'],'oldValue':_0x5c0c38['attributeOldValue'],'range':qt(_0x5c0c38['range'],_0x4cea83['model'])});for(const _0x361e15 of _0x561454){if('rename'!=_0x361e15['action']&&'refresh'!=_0x361e15['action'])continue;const _0x53c284=zt(_0x361e15['position']['nodeAfter'],_0x4cea83['model']),_0x5995dc=_0x361e15['before'];'rename'==_0x361e15['action']&&_0x556682['push']({'key':u,'newValue':_0x361e15['name'],'oldValue':_0x5995dc['name'],'range':_0x53c284});for(const [_0x4d70e9,_0x35c843]of _0x5995dc['attributes']){if(!this['_isRegisteredAttribute'](_0x4d70e9))continue;const _0x2e9ea1=_0x361e15['attributes']['get'](_0x4d70e9);_0x35c843!==_0x2e9ea1&&_0x556682['push']({'key':_0x4d70e9,'newValue':_0x2e9ea1,'oldValue':_0x35c843,'range':_0x53c284});}for(const [_0x464178,_0x134af6]of _0x361e15['attributes'])this['_isRegisteredAttribute'](_0x464178)&&(_0x5995dc['attributes']['has'](_0x464178)||_0x556682['push']({'key':_0x464178,'newValue':_0x134af6,'oldValue':null,'range':_0x53c284}));}0x0!=_0x556682['length']&&_0x4cea83['model']['enqueueChange'](_0x374984,_0x3d0946=>{const _0x5e293a=_0x425596();for(const {range:_0x4ebb36,key:_0x1f4127,oldValue:_0x5e9d68,newValue:_0x152155}of _0x556682)this['markAttributeChange'](_0x4ebb36,_0x1f4127,_0x5e9d68,_0x152155,{'groupId':_0x5e293a});this['_reduceExistingSuggestions'](_0x3d0946,_0x556682);});},{'priority':'lowest'}),_0x4cea83['model']['markers']['on']('update:suggestion',(_0x1d47be,_0x1790ee,_0x31767f)=>{if(null==_0x31767f){const {id:_0x42e7c4}=this['_splitMarkerName'](_0x1790ee['name']),_0x511d82=this['_suggestions']['get'](_0x42e7c4);_0x511d82&&_0x511d82['addMarkerName'](_0x1790ee['name']);}}),_0x4cea83['model']['document']['on']('change:data',()=>{const _0x10d3da=Array['from'](_0x4cea83['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2d92d1=>'suggestion'===this['_splitMarkerName'](_0x2d92d1['name'])['group']);if(0x0===_0x10d3da['length'])return;_0x10d3da['sort']((_0x3b7ef1,_0x260fc9)=>{const _0x54de4b=_0x3b7ef1['data']['oldRange'],_0x511b3f=_0x260fc9['data']['oldRange'];return null===_0x54de4b&&null===_0x511b3f?0x0:null===_0x54de4b&&null!==_0x511b3f?-0x1:null!==_0x54de4b&&null===_0x511b3f?0x1:_0x54de4b['start']['isBefore'](_0x511b3f['start'])?-0x1:0x1;});const _0x27907d=new Set(),_0xd7cd3c=new Set();for(const {name:_0x22d0d4,data:_0x2dadc5}of _0x10d3da){const {id:_0xe9f75b}=this['_splitMarkerName'](_0x22d0d4);if(null===_0x2dadc5['oldRange']){const _0x1ebebb=this['_handleNewSuggestionMarker'](_0x22d0d4);_0xd7cd3c['add'](_0x1ebebb);}else{const _0x37a59d=this['_suggestions']['get'](_0xe9f75b);null!==_0x2dadc5['newRange']||_0x37a59d['isInContent']?(_0x27907d['add'](_0x37a59d['head']),_0xd7cd3c['add'](_0x37a59d)):this['_removeSuggestion'](_0x37a59d);}}_0xd7cd3c['size']>0x0&&this['_refreshSuggestionsChain'](_0xd7cd3c);for(const _0x8c4325 of _0x27907d)this['fire']('suggestionChanged',_0x8c4325);}),_0x4cea83['model']['on']('applyOperation',(_0x18c174,_0x23bc10)=>{const _0x1584d5=_0x23bc10[0x0];if(!this['_suggestions']['size'])return;if(!_0x1584d5['isDocumentOperation'])return;if(_0x1584d5['batch']['isUndo']||!_0x1584d5['batch']['isLocal'])return;let _0x4860ec,_0x45b7ee;switch(_0x1584d5['type']){case'insert':_0x4860ec=_0x4cea83['model']['createPositionAt'](_0x1584d5['position']),_0x45b7ee=_0x4860ec['getShiftedBy'](_0x1584d5['howMany']);break;case'split':_0x4860ec=_0x4cea83['model']['createPositionAt'](_0x1584d5['splitPosition']),_0x45b7ee=_0x4cea83['model']['createPositionAt'](_0x1584d5['moveTargetPosition']);break;case'move':_0x4860ec=_0x4cea83['model']['createPositionAt'](_0x1584d5['targetPosition']),_0x45b7ee=_0x4860ec['getShiftedBy'](_0x1584d5['howMany']);break;default:return;}const _0x64f1ae=_0x4cea83['model']['createRange'](_0x4860ec,_0x45b7ee);_0x4cea83['model']['change'](()=>{for(const {suggestion:_0x4ff278,meta:_0xc188}of this['_findSuggestions'](_0x64f1ae)){if(_0x4ff278['isMultiRange'])continue;if('formatInline'==_0x4ff278['type'])continue;const _0x4502e7=this['_getAttributeKey'](_0x4ff278);if(_0x4502e7&&this['_isBlockAttribute'](_0x4502e7)&&'split'!=_0x1584d5['type'])continue;const _0x290146=_0x4ff278['data']&&_0x4ff278['data']['multipleBlocks'];('formatBlock'!=_0x4ff278['type']||'split'==_0x1584d5['type']&&!_0x290146)&&(_0xc188['containsRangeInObject']||'insertion'==_0x4ff278['type']&&_0xc188['isOwn']||_0x4ff278['getFirstRange']()['containsRange'](_0x64f1ae)&&this['_breakSuggestionMarker'](_0x4ff278,_0x4860ec,_0x45b7ee));}});},{'priority':'lowest'}),_0x4cea83['model']['on']('deleteContent',(_0x15ec91,_0x29c69c)=>{const _0x52b72b=_0x29c69c[0x0],_0x663147=_0x29c69c[0x1];if(_0x663147&&_0x663147['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x52b72b['isCollapsed'])return;const _0x4048cb=_0x4cea83['model']['schema'],{start:_0x26292e,end:_0xc259e1}=_0x52b72b['getFirstRange'](),_0xc3ecb6=_0x26292e['nodeAfter']&&_0x4048cb['isLimit'](_0x26292e['nodeAfter'])?null:_0x4048cb['getNearestSelectionRange'](_0x26292e,'forward'),_0x809d20=_0xc259e1['nodeBefore']&&_0x4048cb['isLimit'](_0xc259e1['nodeBefore'])?null:_0x4048cb['getNearestSelectionRange'](_0xc259e1,'backward'),_0x1c2f45=_0x4cea83['model']['createRange'](_0xc3ecb6?_0xc3ecb6['start']:_0x26292e,_0x809d20?_0x809d20['end']:_0xc259e1);_0x4cea83['model']['change'](_0x40cade=>{this['markDeletion'](_0x1c2f45);const _0xd8f472=_0x4cea83['model']['schema']['getNearestSelectionRange'](_0x1c2f45['start']);_0x52b72b['is']('documentSelection')?_0x40cade['setSelection'](_0xd8f472):_0x52b72b['setTo'](_0xd8f472);}),_0x15ec91['stop']();},{'priority':_0x15078e['normal']+0xa}),_0x4cea83['model']['on']('insertContent',(_0x5b5923,_0x1bee73)=>{const _0x3c28ba=_0x1bee73[_0x1bee73['length']-0x1];_0x3c28ba&&_0x3c28ba['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4cea83['model']['change'](()=>{let _0x36b3c9=_0x4cea83['model']['insertContent'](_0x1bee73[0x0],_0x1bee73[0x1],_0x1bee73[0x2],{'forceDefaultExecution':!0x0});if(!_0x36b3c9)return;_0x5b5923['return']=_0x36b3c9['clone']();const _0x209c45=_0x36b3c9['end']['nodeBefore'],_0x29ab6c=_0x4cea83['model']['schema'];_0x209c45&&_0x29ab6c['isBlock'](_0x209c45)&&!_0x29ab6c['isObject'](_0x209c45)&&(_0x36b3c9=_0x4cea83['model']['createRange'](_0x36b3c9['start'],_0x4cea83['model']['createPositionAt'](_0x209c45,'end'))),this['markInsertion'](_0x36b3c9);}),_0x5b5923['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x12961f=new x(_0x4cea83,this['_suggestions']);_0x4cea83['commands']['add']('acceptSuggestion',_0x12961f),this['enableCommand']('acceptSuggestion');const _0x4932ba=new O(_0x4cea83,this['_suggestions']);_0x4cea83['commands']['add']('discardSuggestion',_0x4932ba),this['enableCommand']('discardSuggestion'),_0x4cea83['commands']['add']('acceptAllSuggestions',new R(_0x4cea83,_0x12961f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4cea83['commands']['add']('discardAllSuggestions',new R(_0x4cea83,_0x4932ba,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4cea83['commands']['add']('acceptSelectedSuggestions',new E(_0x4cea83,_0x12961f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4cea83['commands']['add']('discardSelectedSuggestions',new E(_0x4cea83,_0x4932ba,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x43f0b4=_0x4cea83['plugins']['get']('CommentsRepository');this['listenTo'](_0x43f0b4,'addComment',(_0x2c7ccd,{threadId:_0x193f29})=>{const _0x4bacfa=this['_suggestions']['get'](_0x193f29);_0x4bacfa&&_0x4bacfa['commentThread']&&0x1===_0x4bacfa['commentThread']['length']&&this['_updateSuggestionData'](_0x193f29,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x43f0b4,'removeComment',(_0x200c5a,{threadId:_0x88c06d})=>{const _0x1610c9=this['_suggestions']['get'](_0x88c06d);_0x1610c9&&_0x1610c9['commentThread']&&!_0x1610c9['commentThread']['length']&&this['_updateSuggestionData'](_0x88c06d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3ddcaf){const _0x35db01=_0x1ada26([0x46,0x72,0x52,0x74,0x32,0x43,0x37,0x42,0x6f,0x6d,0x36,0x58,0x4f,0x61,0x66,0x59,0x4a,0x6e,0x77,0x6a,0x69,0x35,0x48,0x49,0x71,0x64,0x54,0x38,0x39,0x6b,0x6c,0x44,0x4c,0x7a,0x31,0x57,0x4d,0x76,0x45,0x55,0x73,0x53,0x34,0x30,0x79,0x47,0x65,0x50,0x51,0x67,0x5a,0x4b,0x68,0x41,0x33,0x75,0x62,0x78,0x70,0x63,0x4e,0x56]),_0x4f8a68=0x2b1cd88e,_0x17c925=0x2b1bb04e^_0x4f8a68,_0x4ff5b7=window[_0x1ada26([0x44,0x61,0x74,0x65])][_0x1ada26([0x6e,0x6f,0x77])](),_0x1f6039=_0x3ddcaf[_0x1ada26([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3128f2=new window[(_0x1ada26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c7ccc=>{_0x1f6039[_0x1ada26([0x6f,0x6e,0x63,0x65])](_0x1ada26([0x72,0x65,0x61,0x64,0x79]),_0x2c7ccc);}),_0x1aae80={[_0x1ada26([0x6b,0x74,0x79])]:_0x1ada26([0x45,0x43]),[_0x1ada26([0x75,0x73,0x65])]:_0x1ada26([0x73,0x69,0x67]),[_0x1ada26([0x63,0x72,0x76])]:_0x1ada26([0x50,0x2d,0x32,0x35,0x36]),[_0x1ada26([0x78])]:_0x1ada26([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]),[_0x1ada26([0x79])]:_0x1ada26([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]),[_0x1ada26([0x61,0x6c,0x67])]:_0x1ada26([0x45,0x53,0x32,0x35,0x36])},_0x3b6c96=_0x1f6039[_0x1ada26([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ada26([0x67,0x65,0x74])](_0x1ada26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b74e2(){let _0x398172,_0xd3d54e=null,_0x1b715a=null;try{if(_0x3b6c96==_0x1ada26([0x47,0x50,0x4c]))return _0x1ada26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x398172=_0x65d73a(),!_0x398172)return _0x1ada26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x398172[_0x1ada26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b715a=_0x2d766e(_0x398172[_0x1ada26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x398172[_0x1ada26([0x6a,0x74,0x69])])),await _0x42216d()?_0xe2f2e2()?_0x45473f()?_0x1ada26([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ec13a()?(_0x398172[_0x1ada26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ada26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd3d54e=_0x582ff6(_0x1ada26([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x398172[_0x1ada26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ada26([0x74,0x72,0x69,0x61,0x6c])&&(_0xd3d54e=_0x582ff6(_0x1ada26([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x210149()):_0x1ada26([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ada26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ada26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3e9e14){return _0x1ada26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45473f(){const _0x5e7fc1=[_0x1ada26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ada26([0x74,0x72,0x69,0x61,0x6c])][_0x1ada26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x398172[_0x1ada26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ff5b7/0x3e8:0xe10*_0x17c925;return _0x398172[_0x1ada26([0x65,0x78,0x70])]<_0x5e7fc1;}function _0xe2f2e2(){const _0x26b3ab=_0x398172[_0x1ada26([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x26b3ab)return!0x1;if(_0x26b3ab[_0x1ada26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ada26([0x2a])))return!0x0;if(_0x26b3ab[_0x1ada26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ada26([0x54,0x43])))return!0x0;if(_0x26b3ab[_0x1ada26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ada26([0x52,0x54,0x43]))){if(_0x40bc91())return!0x0;if(_0x15fe03()||_0xe25b3a())return!0x0;}return!0x1;}function _0x1ec13a(){const _0x341923=_0x398172[_0x1ada26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x341923||0x0==_0x341923[_0x1ada26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x508461}=new URL(window[_0x1ada26([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x341923[_0x1ada26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x508461))return!0x0;const _0x94dc1b=_0x508461[_0x1ada26([0x73,0x70,0x6c,0x69,0x74])](_0x1ada26([0x2e]));return _0x341923[_0x1ada26([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf9f403=>_0xf9f403[_0x1ada26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ada26([0x2a])))[_0x1ada26([0x6d,0x61,0x70])](_0x12d423=>_0x12d423[_0x1ada26([0x73,0x70,0x6c,0x69,0x74])](_0x1ada26([0x2e])))[_0x1ada26([0x73,0x6f,0x6d,0x65])](_0x416d52=>_0x94dc1b[_0x1ada26([0x65,0x76,0x65,0x72,0x79])]((_0x187213,_0x186586)=>_0x416d52[_0x186586]===_0x187213||_0x416d52[_0x186586]===_0x1ada26([0x2a])));}function _0x210149(){return _0xd3d54e&&_0x1b715a?new window[(_0x1ada26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e3406,_0x97bcaf)=>{_0xd3d54e[_0x1ada26([0x74,0x68,0x65,0x6e])](_0x1e3406,_0x97bcaf),_0x1b715a[_0x1ada26([0x74,0x68,0x65,0x6e])](_0x1eb24e=>{_0x1eb24e!=_0x1ada26([0x56,0x61,0x6c,0x69,0x64])&&_0x1e3406(_0x1eb24e);},_0x97bcaf);}):_0xd3d54e||_0x1b715a||_0x1ada26([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d766e(_0x4a83e4,_0xeca74e){return new window[(_0x1ada26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x162f43=>{if(_0x4b4313())return _0x162f43(_0x1ada26([0x56,0x61,0x6c,0x69,0x64]));_0x48fb56(),_0x1f6039[_0x1ada26([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ada26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x11832c=!0x1;const _0x1495a5=_0x425596();function _0x50c702(_0x1eebe7){return!!_0x1eebe7&&(typeof _0x1eebe7===_0x1ada26([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1eebe7===_0x1ada26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1eebe7[_0x1ada26([0x74,0x68,0x65,0x6e])]===_0x1ada26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1eebe7[_0x1ada26([0x63,0x61,0x74,0x63,0x68])]===_0x1ada26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6e06c6(_0x54a2f8){_0x258481(_0x54a2f8)[_0x1ada26([0x74,0x68,0x65,0x6e])](_0x5b236c=>{if(!_0x5b236c||_0x5b236c[_0x1ada26([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ada26([0x6f,0x6b]))return _0x1ada26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x591430(_0x59f360(_0x1495a5+_0xeca74e))!=_0x5b236c[_0x1ada26([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ada26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ada26([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ada26([0x74,0x68,0x65,0x6e])](_0x5ec710=>(_0x1e067c(),_0x5ec710),()=>{const _0x4cfc71=_0x336b4c();return null==_0x4cfc71?(_0x1e067c(),_0x1ada26([0x56,0x61,0x6c,0x69,0x64])):_0x1ada26(_0x4ff5b7-_0x4cfc71>(0xf105c8e^_0x4f8a68)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ada26([0x74,0x68,0x65,0x6e])](_0x162f43)[_0x1ada26([0x63,0x61,0x74,0x63,0x68])](()=>{_0x162f43(_0x1ada26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d90b9=0x2b2a360e^_0x4f8a68;function _0x1e067c(){const _0xdc4916=_0x1ada26([0x6c,0x6c,0x63,0x74,0x2d])+_0x591430(_0x59f360(_0x4a83e4)),_0x4c43d8=_0x1a0d90(_0x591430(window[_0x1ada26([0x4d,0x61,0x74,0x68])][_0x1ada26([0x63,0x65,0x69,0x6c])](_0x4ff5b7/_0x4d90b9)));window[_0x1ada26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ada26([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xdc4916,_0x4c43d8);}function _0x336b4c(){const _0x3f4c23=_0x1ada26([0x6c,0x6c,0x63,0x74,0x2d])+_0x591430(_0x59f360(_0x4a83e4)),_0x1d0cb8=window[_0x1ada26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ada26([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f4c23);return _0x1d0cb8?window[_0x1ada26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a0d90(_0x1d0cb8),0x10)*_0x4d90b9:null;}function _0x258481(_0x4880f4){return new window[(_0x1ada26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4567ad,_0x68e9e8)=>{_0x4880f4[_0x1ada26([0x74,0x68,0x65,0x6e])](_0x4567ad,_0x68e9e8),window[_0x1ada26([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x68e9e8,0x2b1d0c4e^_0x4f8a68);});}}_0x1f6039[_0x1ada26([0x6f,0x6e])](_0x1ada26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x296c9c,_0x1df9f4)=>{if(_0x1df9f4[0x0]!=_0x4a83e4)return _0x162f43(_0x1ada26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1df9f4[0x1]={..._0x1df9f4[0x1],[_0x1ada26([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1495a5};},{[_0x1ada26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ada26([0x68,0x69,0x67,0x68])}),_0x1f6039[_0x1ada26([0x6f,0x6e])](_0x1ada26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2fc4ac=>{_0x50c702(_0x2fc4ac[_0x1ada26([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x11832c=!0x0,_0x6e06c6(_0x2fc4ac[_0x1ada26([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ada26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ada26([0x6c,0x6f,0x77])}),_0x3128f2[_0x1ada26([0x74,0x68,0x65,0x6e])](()=>{_0x11832c||_0x162f43(_0x1ada26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b4313(){return _0x1f6039[_0x1ada26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ada26([0x76,0x69,0x65,0x77])][_0x1ada26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ada26([0x61,0x75,0x74,0x6f]);}function _0x48fb56(){_0x1f6039[_0x1ada26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ada26([0x76,0x69,0x65,0x77])][_0x1ada26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ada26([0x61,0x75,0x74,0x6f]);}}function _0x582ff6(_0x29aa1f){const _0x4a03b4=[new window[(_0x1ada26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e80cb=>setTimeout(_0x3e80cb,0x2b15e642^_0x4f8a68)),_0x3128f2[_0x1ada26([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ada26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38465a=>{let _0x556f65=0x0;_0x1f6039[_0x1ada26([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ada26([0x6f,0x6e])](_0x1ada26([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1dce2a,_0x438a1b)=>{_0x438a1b[0x0][_0x1ada26([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x556f65++,_0x556f65==(0x2b1cd976^_0x4f8a68)&&(_0x38465a(),_0x1dce2a[_0x1ada26([0x6f,0x66,0x66])]());});}))];return window[_0x1ada26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ada26([0x72,0x61,0x63,0x65])](_0x4a03b4)[_0x1ada26([0x74,0x68,0x65,0x6e])](()=>_0x29aa1f);}async function _0x753077(){await _0x3128f2,_0x1f6039[_0x1ada26([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ada26([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x52c200,_0x1f6039[_0x1ada26([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ada26([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x52c200,_0x1f6039[_0x1ada26([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ada26([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x40bc91(){return _0x47d0fc(_0x1ada26([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3bad92(_0x1ada26([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1ada26([0x73,0x74,0x61,0x74,0x65])]==_0x1ada26([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x15fe03(){return _0x47d0fc(_0x1ada26([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 _0xe25b3a(){return _0x47d0fc(_0x1ada26([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x193d63(_0x52a5c4){const _0x5db199=_0x450125();_0x1f6039[_0x5db199]=_0x1ada26([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52a5c4,_0x52a5c4!=_0x1ada26([0x56,0x61,0x6c,0x69,0x64])&&_0x753077();}function _0x450125(){const _0x1d6168=window[_0x1ada26([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ada26([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ada26([0x6e,0x6f,0x77])]())[_0x1ada26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ada26([0x2e]),'');let _0x521c4c=_0x1ada26([0x46]);for(let _0x11205e=0x0;_0x11205e<_0x1d6168[_0x1ada26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11205e+=0x2){let _0x37449b=window[_0x1ada26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d6168[_0x1ada26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11205e,_0x11205e+0x2));_0x37449b>=_0x35db01[_0x1ada26([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x37449b-=_0x35db01[_0x1ada26([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x521c4c+=_0x35db01[_0x37449b];}return _0x521c4c;}function _0x65d73a(){const _0x537915=_0x3b6c96[_0x1ada26([0x73,0x70,0x6c,0x69,0x74])](_0x1ada26([0x2e]));if(0x3!=_0x537915[_0x1ada26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e5033(_0x537915[0x1]);function _0x4e5033(_0x22db33){const _0x21aee2=_0x36e6ce(_0x22db33);return _0x21aee2&&_0x274015()?_0x21aee2:null;function _0x274015(){const _0x1d6abf=_0x21aee2[_0x1ada26([0x6a,0x74,0x69])],_0x40cc74=window[_0x1ada26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d6abf[_0x1ada26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d6abf[_0x1ada26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x416c71={..._0x21aee2,[_0x1ada26([0x6a,0x74,0x69])]:_0x1d6abf[_0x1ada26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1d6abf[_0x1ada26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x416c71[_0x1ada26([0x76,0x63])],_0x59f360(_0x416c71)==_0x40cc74;}}}async function _0x42216d(){let _0x2afa92=!0x0;try{const _0xd47c0=_0x3b6c96[_0x1ada26([0x73,0x70,0x6c,0x69,0x74])](_0x1ada26([0x2e])),[_0x168bf1,_0xb072e5,_0xc027df]=_0xd47c0;return _0x4f0908(_0x168bf1),await _0x22ce7c(_0x168bf1,_0xb072e5,_0xc027df),_0x2afa92;}catch(_0x24b021){return!0x1;}function _0x4f0908(_0x91ad30){const _0x224aca=_0x36e6ce(_0x91ad30);_0x224aca&&_0x224aca[_0x1ada26([0x61,0x6c,0x67])]==_0x1ada26([0x45,0x53,0x32,0x35,0x36])||(_0x2afa92=!0x1);}async function _0x22ce7c(_0xd61a68,_0x3f7755,_0x2b8132){const _0x42ae34=window[_0x1ada26([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ada26([0x66,0x72,0x6f,0x6d])](_0x26abe2(_0x2b8132),_0x15e0fe=>_0x15e0fe[_0x1ada26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5392c6=new window[(_0x1ada26([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ada26([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd61a68+_0x1ada26([0x2e])+_0x3f7755),_0x38cbb6=window[_0x1ada26([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ada26([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x38cbb6)return;const _0xa335a0=await _0x38cbb6[_0x1ada26([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ada26([0x6a,0x77,0x6b]),_0x1aae80,{[_0x1ada26([0x6e,0x61,0x6d,0x65])]:_0x1ada26([0x45,0x43,0x44,0x53,0x41]),[_0x1ada26([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ada26([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ada26([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x38cbb6[_0x1ada26([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ada26([0x6e,0x61,0x6d,0x65])]:_0x1ada26([0x45,0x43,0x44,0x53,0x41]),[_0x1ada26([0x68,0x61,0x73,0x68])]:{[_0x1ada26([0x6e,0x61,0x6d,0x65])]:_0x1ada26([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa335a0,_0x42ae34,_0x5392c6)||(_0x2afa92=!0x1);}}function _0x36e6ce(_0x204b15){return _0x204b15[_0x1ada26([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ada26([0x65,0x79]))?JSON[_0x1ada26([0x70,0x61,0x72,0x73,0x65])](_0x26abe2(_0x204b15)):null;}function _0x26abe2(_0x1f823f){return window[_0x1ada26([0x61,0x74,0x6f,0x62])](_0x1f823f[_0x1ada26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ada26([0x2b]))[_0x1ada26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ada26([0x2f])));}function _0x59f360(_0x3fc3c7){let _0x4dd3e3=0x1505;function _0x12f286(_0x387c94){for(let _0x5567ae=0x0;_0x5567ae<_0x387c94[_0x1ada26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5567ae++){const _0x2de045=_0x387c94[_0x1ada26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5567ae);_0x4dd3e3=(_0x4dd3e3<<0x5)+_0x4dd3e3+_0x2de045,_0x4dd3e3&=_0x4dd3e3;}}function _0x2c81e0(_0x121199){Array[_0x1ada26([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x121199)?_0x121199[_0x1ada26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c81e0):_0x121199&&typeof _0x121199==_0x1ada26([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ada26([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x121199)[_0x1ada26([0x73,0x6f,0x72,0x74])]()[_0x1ada26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5940a4,_0x43e3d3])=>{_0x12f286(_0x5940a4),_0x2c81e0(_0x43e3d3);}):_0x12f286(window[_0x1ada26([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x121199));}return _0x2c81e0(_0x3fc3c7),_0x4dd3e3>>>0x0;}function _0x591430(_0x100ef9){return _0x100ef9[_0x1ada26([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ada26([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ada26([0x30]));}function _0x1a0d90(_0xb9ee11){return _0xb9ee11[_0x1ada26([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ada26([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ada26([0x6a,0x6f,0x69,0x6e])]('');}function _0x47d0fc(_0x368d05){return _0x1f6039[_0x1ada26([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ada26([0x68,0x61,0x73])](_0x368d05);}function _0x3bad92(_0x4be7c7){return _0x1f6039[_0x1ada26([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ada26([0x67,0x65,0x74])](_0x4be7c7);}function _0x52c200(){}function _0x1ada26(_0x58c121){return _0x58c121['map'](_0x3758af=>String['fromCharCode'](_0x3758af))['join']('');}_0x193d63(await _0x5b74e2());}(this);}set['adapter'](_0x21ddbb){if(this['_adapter'])throw new _0x59ef33('track-changes-adapter-already-set',this);this['_adapter']=_0x21ddbb;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2ab5b6=!0x1,toJSON:_0x4dd857=!0x1}={}){const _0xdae95a=[];for(const _0x4c365b of this['_suggestions']['values']())_0x2ab5b6&&!_0x4c365b['isInContent']||_0xdae95a['push'](_0x4c365b);return _0x4dd857?_0xdae95a['map'](_0x3208e8=>_0x3208e8['toJSON']()):_0xdae95a;}['getSuggestion'](_0x337039){const _0x4175e9=this['_suggestions']['get'](_0x337039);if(!_0x4175e9)throw new _0x59ef33('track-changes-suggestion-not-found',this);return _0x4175e9;}['hasSuggestion'](_0xc88a5b){return this['_suggestions']['has'](_0xc88a5b);}['addSuggestionData'](_0x4ba547){const {authorId:_0x56e00d,id:_0x37a8b1,originalSuggestionId:_0x4e0153,attributes:_0x5f3bd7}=_0x4ba547,[_0x334bf1,_0x1efc59]=_0x4ba547['type']['split'](':'),_0x20b821=this['_suggestions']['get'](_0x37a8b1)||this['_createSuggestion'](_0x334bf1,_0x1efc59,_0x37a8b1,_0x56e00d,_0x5f3bd7,_0x4e0153);if(this['_addThreadToSuggestion'](_0x20b821),this['_checkSuggestionCorrectness'](_0x20b821,_0x334bf1,_0x1efc59||null,_0x56e00d),_0x20b821['createdAt']=_0x4ba547['createdAt'],_0x20b821['_isDataLoaded']=!0x0,_0x5f3bd7&&_0x5f3bd7['@external']){const _0x4dccad=_0x5f3bd7['@external'],_0x5d326c=this['_getExternalAuthor'](_0x4dccad['authorName']);_0x20b821['authoredAt']=_0x4dccad['createdAt'],_0x20b821['author']=_0x5d326c,_0x20b821['isExternal']=!0x0;}else _0x20b821['authoredAt']=_0x4ba547['createdAt'];switch(_0x4ba547['data']&&(_0x20b821['data']=_0x4ba547['data']),_0x4ba547['attributes']&&(_0x20b821['attributes']=_0x4ba547['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x20b821['_saved']=!0x0),this['_suggestionState']['get'](_0x20b821)){case'notReady':this['_suggestionState']['set'](_0x20b821,'dataReady');break;case'markerReady':_0x20b821['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x20b821])),this['_refreshSuggestionsChain'](new Set([_0x20b821])),this['_suggestionState']['set'](_0x20b821,'ready'),this['fire']('suggestionLoaded',_0x20b821)):this['_suggestionState']['set'](_0x20b821,'removed');}return _0x20b821;}['acceptSuggestion'](_0x2bf944){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x52061e of _0x2bf944['getAllAdjacentSuggestions']())_0x52061e['accept']();});});}['discardSuggestion'](_0x47c015){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2d3d34 of _0x47c015['getAllAdjacentSuggestions']())_0x2d3d34['discard']();});});}['enableCommand'](_0x18f0aa,_0x40b08d){const _0x377ece=this['editor']['commands']['get'](_0x18f0aa);if(!_0x377ece)throw new _0x59ef33('track-changes-command-not-found',this,{'commandName':_0x18f0aa});if(this['_enabledCommands']['has'](_0x377ece))throw new _0x59ef33('track-changes-enable-command-twice',this,{'commandName':_0x18f0aa});this['_enabledCommands']['add'](_0x377ece),_0x40b08d&&_0x377ece['on']('execute',(_0x521345,_0x1d1ba0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1d1ba0['length']>0x0&&_0x1d1ba0[_0x1d1ba0['length']-0x1]&&_0x1d1ba0[_0x1d1ba0['length']-0x1]['forceDefaultExecution']?_0x1d1ba0['pop']():(_0x521345['return']=_0x40b08d((..._0x79c967)=>_0x377ece['execute'](..._0x79c967,{'forceDefaultExecution':!0x0}),..._0x1d1ba0),_0x521345['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2a1616){let _0x7d9606,_0x3c7ab7;const _0xacfda9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x7d9606=_0x2a1616();}catch(_0x1518b2){_0x3c7ab7=_0x1518b2;}return _0xacfda9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3c7ab7&&_0x59ef33['rethrowUnexpectedError'](_0x3c7ab7,this),_0x7d9606;}['markInsertion'](_0x5a82d4,_0x27194c=null,_0x4caf8b={}){if(_0x5a82d4['isCollapsed'])return null;const _0x237fe3=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4caf8b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x31d7be,meta:_0xc05301}of this['_findSuggestions'](_0x5a82d4,'insertion'))if(_0xc05301['isOwn']){if(!_0xc05301['isNextTo']){if(_0xc05301['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x31d7be,_0x4caf8b))continue;return _0x31d7be;}if(Xt(_0x31d7be,_0x4caf8b))return _0x31d7be;this['_breakSuggestionMarker'](_0x31d7be,_0x5a82d4['start'],_0x5a82d4['end']);break;}if(_0x27194c==_0x31d7be['subType']&&Xt(_0x31d7be,_0x4caf8b)){const _0x2ea6c3=_0x31d7be['getFirstRange']();return _0x2ea6c3['start']['isEqual'](_0x5a82d4['end'])?this['_setSuggestionRange'](_0x31d7be,this['_model']['createRange'](_0x5a82d4['start'],_0x2ea6c3['end'])):this['_setSuggestionRange'](_0x31d7be,this['_model']['createRange'](_0x2ea6c3['start'],_0x5a82d4['end'])),_0x31d7be;}}const _0x4a7504=_0x425596(),_0xe9c912=_0x237fe3['id'],_0x5a356b=_0x27194c?'insertion:'+_0x27194c:'insertion',_0x3b31b9=this['_setSuggestionData']({'id':_0x4a7504,'type':_0x5a356b,'createdAt':new Date(),'authorId':_0xe9c912,'attributes':_0x4caf8b});return this['_addSuggestionMarker'](_0x5a356b,_0x4a7504,_0xe9c912,_0x5a82d4),_0x3b31b9;}['markMultiRangeInsertion'](_0x29ea0d,_0x1019c8='multi',_0x1a5ab9={}){const _0x1660f1=this['editor']['plugins']['get']('Users')['me'],_0x13f5cf=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1019c8,'join');this['_trackingSessionId']&&(_0x1a5ab9['trackingSessionId']=this['_trackingSessionId']);for(const _0x20e284 of this['getSuggestions']())if(_0x20e284['author']['id']==_0x1660f1['id']&&'insertion'==_0x20e284['type']&&_0x20e284['subType']==_0x1019c8&&Xt(_0x20e284,_0x1a5ab9)&&(_0x13f5cf(_0x20e284['getRanges'](),_0x29ea0d)||_0x13f5cf(_0x29ea0d,_0x20e284['getRanges']()))){for(const _0x49bd78 of _0x29ea0d)_0x20e284['addRange'](_0x49bd78);return _0x20e284;}for(const {suggestion:_0x550825,meta:_0x190e49}of this['_findSuggestions'](_0x29ea0d,'insertion')){if(!_0x190e49['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x190e49['containsRangeInObject'])continue;if(!Xt(_0x550825,_0x1a5ab9))continue;let _0x2b6e59=!0x0;for(const _0x73c2de of _0x550825['getRanges']())for(const _0x1ad27b of _0x29ea0d)if(!_0x73c2de['containsRange'](_0x1ad27b)){_0x2b6e59=!0x1;break;}if(_0x2b6e59)return _0x550825;}const _0x5b2ac3=_0x425596(),_0x1b7b60=_0x1660f1['id'],_0x44be85='insertion:'+_0x1019c8,_0x114694=this['_setSuggestionData']({'id':_0x5b2ac3,'type':_0x44be85,'createdAt':new Date(),'authorId':_0x1b7b60,'attributes':_0x1a5ab9});for(const _0x92832b of _0x29ea0d)this['_addSuggestionMarker'](_0x44be85,_0x5b2ac3,_0x1b7b60,_0x92832b,o['getMultiRangeId']());return _0x114694;}['markInlineFormat'](_0x5bd66f,_0x2f3499,_0xb6961b=null,_0x3039aa={}){if(_0xb6961b=_0xb6961b||Kt(_0x2f3499),_0x5bd66f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3039aa['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x530116=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xb6961b,'accept');return this['forceDefaultExecution'](()=>_0x530116([_0x5bd66f],_0x2f3499,_0x3039aa)),null;}const _0x5b4b49=this['editor']['plugins']['get']('Users')['me'],_0x67fbbc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3fb210,meta:_0x4cc8c9}of this['_findSuggestions'](_0x5bd66f,'insertion'))_0x4cc8c9['isOwn']&&!_0x4cc8c9['isInsideObject']&&_0x67fbbc['push'](..._0x3fb210['getRanges']());}const _0x5f1c0c=function(_0x3d3b35,_0x2688ee){const _0x200252=[];for(const _0x429556 of _0x2688ee){const _0x490c41=_0x3d3b35['getIntersection'](_0x429556);_0x490c41&&_0x200252['push'](_0x490c41);}return _0x200252;}(_0x5bd66f,_0x67fbbc),_0x5d8e92=function(_0x2e6b27,_0x131ed9){const _0x159f05=[_0x2e6b27];for(const _0x43d2cb of _0x131ed9){let _0x2acb47=0x0;for(;_0x2acb47<_0x159f05['length'];){const _0x4663a3=_0x159f05[_0x2acb47]['getDifference'](_0x43d2cb);_0x159f05['splice'](_0x2acb47,0x1,..._0x4663a3),_0x2acb47+=_0x4663a3['length'];}}return _0x159f05;}(_0x5bd66f,_0x67fbbc);_0x5f1c0c['length']&&this['_model']['change'](()=>{for(const _0x22e79e of _0x5f1c0c){const _0x7b417e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xb6961b,'accept');this['forceDefaultExecution'](()=>_0x7b417e([_0x22e79e],_0x2f3499,_0x3039aa));}});for(const _0x350b37 of _0x5d8e92){let _0x5e2fc5=null,_0x187fb4=_0x350b37['start'],_0x3f2b84=_0x350b37['end'];for(const {suggestion:_0x238b36,meta:_0x253add}of this['_findSuggestions'](_0x350b37,'formatInline')){if(!_0x253add['isOwn'])continue;if(_0x238b36['subType']!=_0xb6961b)continue;if(!Xt(_0x238b36,_0x3039aa))continue;const _0x1d3a8f=_0x238b36['getFirstRange']();if(_0x1d3a8f['containsRange'](_0x350b37,!0x0))return null;_0x187fb4=_0x187fb4['isBefore'](_0x1d3a8f['start'])?_0x187fb4:_0x1d3a8f['start'],_0x3f2b84=_0x3f2b84['isAfter'](_0x1d3a8f['end'])?_0x3f2b84:_0x1d3a8f['end'],_0x5e2fc5?_0x1d3a8f['start']['isBefore'](_0x5e2fc5['getFirstRange']()['start'])?(_0x5e2fc5['removeMarkers'](),_0x5e2fc5=_0x238b36):_0x238b36['removeMarkers']():_0x5e2fc5=_0x238b36;}const _0x2aff3f=this['_model']['createRange'](_0x187fb4,_0x3f2b84);if(_0x5e2fc5)this['_setSuggestionRange'](_0x5e2fc5,_0x2aff3f);else{const _0x523ab1=_0x425596(),_0x32fc79=_0x5b4b49['id'];this['_setSuggestionData']({'id':_0x523ab1,'type':'formatInline:'+_0xb6961b,'data':_0x2f3499,'createdAt':new Date(),'authorId':_0x32fc79,'attributes':_0x3039aa}),this['_addSuggestionMarker']('formatInline:'+_0xb6961b,_0x523ab1,_0x32fc79,_0x2aff3f);}}return null;}['markBlockFormat'](_0x2a42db,_0x3e2558,_0x42b214=[],_0x2c278d=null,_0x521379={}){_0x3e2558['formatGroupId']||(_0x3e2558['formatGroupId']=_0x3e2558['commandName']),_0x3e2558['multipleBlocks']=_0x2a42db['is']('range'),_0x2c278d=_0x2c278d||Kt(_0x3e2558);const _0x5bc4cc=_0x42b214['map'](_0x1f9d62=>zt(_0x1f9d62,this['_model'])),_0x3dce66=_0x2a42db['is']('range')?_0x2a42db:zt(_0x2a42db,this['_model']);if(this['_trackingSessionId']&&(_0x521379['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x578275=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c278d,'accept');return this['forceDefaultExecution'](()=>_0x578275([_0x3dce66],_0x3e2558,_0x521379)),null;}_0x5bc4cc['push'](_0x3dce66);let _0x38ceaa=!0x0;for(const _0x5329b3 of _0x5bc4cc)if(!this['_rangeIsInLocalUserInsertion'](_0x5329b3)){_0x38ceaa=!0x1;break;}if(_0x38ceaa&&'always'!==this['_trackFormatChanges']){const _0x50b485=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c278d,'accept');return this['forceDefaultExecution'](()=>_0x50b485([_0x3dce66],_0x3e2558,_0x521379)),null;}let _0x5a19b5=null,_0x2b69e4=_0x3dce66['start'],_0x5c68ad=_0x3dce66['end'];for(const {suggestion:_0xc7a8a0,meta:_0x337b0c}of this['_findSuggestions'](_0x3dce66,'formatBlock')){if(!_0x337b0c['isOwn'])continue;if(_0x337b0c['isNextTo']||_0x337b0c['containsRangeInObject']||_0x337b0c['isInsideObject'])continue;if(_0xc7a8a0['data']['formatGroupId']!=_0x3e2558['formatGroupId'])continue;if(!Xt(_0xc7a8a0,_0x521379))continue;const _0x5c3191=_0xc7a8a0['getFirstRange']();if(_0xc7a8a0['subType']==_0x2c278d){if(_0x5c3191['containsRange'](_0x3dce66,!0x0))return null;_0x2b69e4=_0x2b69e4['isBefore'](_0x5c3191['start'])?_0x2b69e4:_0x5c3191['start'],_0x5c68ad=_0x5c68ad['isAfter'](_0x5c3191['end'])?_0x5c68ad:_0x5c3191['end'],_0x5a19b5?_0x5c3191['start']['isBefore'](_0x5a19b5['getFirstRange']()['start'])?(_0x5a19b5['removeMarkers'](),_0x5a19b5=_0xc7a8a0):_0xc7a8a0['removeMarkers']():_0x5a19b5=_0xc7a8a0;}else{const _0x1e91b5=_0x3dce66['getIntersection'](_0x5c3191);this['_cutOutSuggestionMarker'](_0xc7a8a0,_0x1e91b5);}}const _0x35172c=this['editor']['plugins']['get']('Users')['me'],_0x5a07b5=_0x425596(),_0x4c961a=_0x35172c['id'];if(_0x5a19b5)return this['_setSuggestionRange'](_0x5a19b5,this['_model']['createRange'](_0x2b69e4,_0x5c68ad)),_0x5a19b5;{const _0x17956c=this['_setSuggestionData']({'id':_0x5a07b5,'type':'formatBlock:'+_0x2c278d,'data':_0x3e2558,'createdAt':new Date(),'authorId':_0x4c961a,'attributes':_0x521379});return this['_addSuggestionMarker']('formatBlock:'+_0x2c278d,_0x5a07b5,_0x4c961a,this['_model']['createRange'](_0x2b69e4,_0x5c68ad)),_0x17956c;}}['markMultiRangeBlockFormat'](_0x39b673,_0x45fff8,_0x284ace=[],_0x29aa8c=null,_0x286f4a={}){_0x45fff8['formatGroupId']||(_0x45fff8['formatGroupId']=_0x45fff8['commandName']);const _0x190180=_0x39b673[0x0];_0x45fff8['multipleBlocks']=_0x190180['is']('range'),_0x29aa8c=_0x29aa8c||Kt(_0x45fff8);const _0x48ae48=_0x284ace['map'](_0x5f4478=>zt(_0x5f4478,this['_model'])),_0x4ef423=_0x190180['is']('range')?_0x39b673:_0x39b673['map'](_0x12f844=>zt(_0x12f844,this['_model']));if(this['_trackingSessionId']&&(_0x286f4a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1747c0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29aa8c,'accept');return this['forceDefaultExecution'](()=>_0x1747c0(_0x4ef423,_0x45fff8,_0x286f4a)),null;}_0x48ae48['push'](..._0x4ef423);let _0x3ad430=!0x0;for(const _0x347944 of _0x48ae48)if(!this['_rangeIsInLocalUserInsertion'](_0x347944)){_0x3ad430=!0x1;break;}if(_0x3ad430&&'always'!==this['_trackFormatChanges']){const _0x20febf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29aa8c,'accept');return this['forceDefaultExecution'](()=>_0x20febf(_0x4ef423,_0x45fff8,_0x286f4a)),null;}const _0x3e9aa4=this['editor']['plugins']['get']('Users')['me'];for(const _0x196bbf of this['getSuggestions']()){if(_0x196bbf['author']['id']!=_0x3e9aa4['id'])continue;if('formatBlock'!=_0x196bbf['type']||_0x196bbf['data']['formatGroupId']!=_0x45fff8['formatGroupId'])continue;if(!Xt(_0x196bbf,_0x286f4a))continue;const _0x3a6f8c=_0x196bbf['subType']==_0x29aa8c;for(let _0x5cb205=0x0;_0x5cb205<_0x4ef423['length'];_0x5cb205++){const _0xeb66d5=_0x4ef423[_0x5cb205];for(const _0x1018a9 of _0x196bbf['getMarkers']()){const _0x37e660=_0x1018a9['getRange']();if(_0xeb66d5['isEqual'](_0x37e660)){_0x3a6f8c?(_0x4ef423['splice'](_0x5cb205,0x1),_0x5cb205--):_0x196bbf['removeMarker'](_0x1018a9['name']);break;}}}}if(0x0==_0x4ef423['length'])return null;const _0x434014=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29aa8c,'join');for(const _0x26493c of this['getSuggestions']())if(_0x26493c['author']['id']==_0x3e9aa4['id']&&'formatBlock'==_0x26493c['type']&&_0x26493c['data']['formatGroupId']==_0x45fff8['formatGroupId']&&_0x26493c['subType']==_0x29aa8c&&Xt(_0x26493c,_0x286f4a)&&(_0x434014(_0x26493c['getRanges'](),_0x4ef423)||_0x434014(_0x4ef423,_0x26493c['getRanges']()))){for(const _0x377328 of _0x4ef423)_0x26493c['addRange'](_0x377328);return _0x26493c;}const _0x55fe71=_0x425596(),_0x4161c8=_0x3e9aa4['id'],_0x2487ce='formatBlock:'+_0x29aa8c,_0x5baaad=this['_setSuggestionData']({'id':_0x55fe71,'type':_0x2487ce,'data':_0x45fff8,'createdAt':new Date(),'authorId':_0x4161c8,'attributes':_0x286f4a});for(const _0x3aa1a5 of _0x4ef423)this['_addSuggestionMarker'](_0x2487ce,_0x55fe71,_0x4161c8,_0x3aa1a5,o['getMultiRangeId']());return _0x5baaad;}['markDeletion'](_0x2aba50,_0x8d8d50=null,_0x5e678a={}){if(_0x2aba50['isCollapsed'])return null;const _0x50bded=this['editor']['plugins']['get']('Users')['me'],_0x3bd17a=new _0x46c3f4(_0x2aba50['start'],_0x2aba50['end']);this['_trackingSessionId']&&(_0x5e678a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5b6d6a,meta:_0x4e5e1e}of this['_findSuggestions'](_0x3bd17a,'insertion'))if(_0x4e5e1e['isOwn']&&!_0x4e5e1e['isNextTo']){if(_0x5b6d6a['isMultiRange']){const _0x845381=_0x5b6d6a['getRanges']()['filter'](_0x2d9977=>'$graveyard'!=_0x2d9977['root']['rootName']);_0x845381['every'](_0x4aa293=>_0x3bd17a['containsRange'](_0x4aa293,!0x0))&&_0x5b6d6a['discard']();if(_0x845381['some'](_0x1c8b08=>_0x1c8b08['containsRange'](_0x3bd17a,!0x0))){const _0x55e9d0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x8d8d50,'accept');return this['forceDefaultExecution'](()=>_0x55e9d0([_0x3bd17a],null,_0x5e678a)),null;}}else{const _0x166a90=_0x3bd17a['getIntersection'](_0x5b6d6a['getFirstRange']());null!==_0x166a90&&_0x5b6d6a['_onDiscard']([_0x166a90],null,_0x5e678a);}}if(_0x3bd17a['detach'](),_0x3bd17a['isCollapsed']||'$graveyard'==_0x3bd17a['root']['rootName'])return null;let _0x3ad0c7=null,_0xb075ea=_0x3bd17a['start'],_0x503366=_0x3bd17a['end'];const _0x3d5266=this['_findSuggestions'](_0x3bd17a,'deletion');for(const {suggestion:_0x481a55,meta:_0x551de9}of _0x3d5266){const _0x42a2c4=this['_model']['createRange'](_0xb075ea,_0x503366);if(_0x551de9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x551de9['containsRangeInObject']&&!_0x551de9['isInsideObject'])){if(_0x481a55['isMultiRange']){if(!Xt(_0x481a55,_0x5e678a))continue;let _0x589c80=!0x0;for(const _0x365efb of _0x481a55['getRanges']()){if(_0x365efb['containsRange'](_0x42a2c4,!0x0))return _0x481a55;_0x42a2c4['containsRange'](_0x365efb)||(_0x589c80=!0x1);}_0x589c80&&_0x481a55['discard']();}else{const _0x3d033c=_0x481a55['getFirstRange']();if(_0x3d033c['containsRange'](_0x42a2c4,!0x0))return _0x481a55;if(!Xt(_0x481a55,_0x5e678a)){_0x42a2c4['containsRange'](_0x3d033c)?_0x481a55['removeMarkers']():_0x3d033c['containsPosition'](_0xb075ea)?_0xb075ea=_0x3d033c['end']:_0x3d033c['containsPosition'](_0x503366)&&(_0x503366=_0x3d033c['start']);continue;}_0xb075ea=_0xb075ea['isBefore'](_0x3d033c['start'])?_0xb075ea:_0x3d033c['start'],_0x503366=_0x503366['isAfter'](_0x3d033c['end'])?_0x503366:_0x3d033c['end'],_0x5e678a=Object['assign']({},_0x481a55['attributes']),_0x3ad0c7?_0x3d033c['start']['isBefore'](_0x3ad0c7['getFirstRange']()['start'])?(_0x3ad0c7['removeMarkers'](),_0x3ad0c7=_0x481a55):_0x481a55['removeMarkers']():_0x3ad0c7=_0x481a55;}}}if(_0x3ad0c7)return this['_setSuggestionRange'](_0x3ad0c7,this['_model']['createRange'](_0xb075ea,_0x503366)),_0x3ad0c7;{const _0x40906b=_0x425596(),_0x33045d=this['_model']['createRange'](_0xb075ea,_0x503366),_0x1f92b0=_0x50bded['id'],_0xe03da3=_0x8d8d50?'deletion:'+_0x8d8d50:'deletion',_0x250c11=this['_setSuggestionData']({'id':_0x40906b,'type':_0xe03da3,'createdAt':new Date(),'authorId':_0x1f92b0,'attributes':_0x5e678a});return this['_addSuggestionMarker'](_0xe03da3,_0x40906b,_0x1f92b0,_0x33045d),_0x250c11;}}['markMultiRangeDeletion'](_0x279bdc,_0x515e6d='multi',_0x4369e5={}){const _0x952f72=this['editor']['plugins']['get']('Users')['me'],_0x45d55f=_0x279bdc['map'](_0x234b08=>new _0x46c3f4(_0x234b08['start'],_0x234b08['end'])),_0x235489=new Set();this['_trackingSessionId']&&(_0x4369e5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x20484d,meta:_0x35f794}of this['_findSuggestions'](_0x45d55f,'insertion'))_0x35f794['isOwn']&&!_0x35f794['isNextTo']&&_0x235489['add'](_0x20484d);for(const _0x22c06f of _0x235489)if(_0x22c06f['isMultiRange']){const _0xc37c87=_0x22c06f['getRanges']();(!_0x22c06f['attributes']||!_0x22c06f['attributes']['skipNestingCheck'])&&(_0xc37c87['every'](_0x5619db=>_0x45d55f['some'](_0xc7c12d=>_0xc7c12d['containsRange'](_0x5619db,!0x0)))&&_0x22c06f['discard']());if(_0x45d55f['every'](_0x5b1da6=>_0xc37c87['some'](_0x2e8f15=>_0x2e8f15['containsRange'](_0x5b1da6,!0x0)))){const _0x5268b3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x515e6d,'accept');return this['forceDefaultExecution'](()=>_0x5268b3(_0x279bdc,null,_0x4369e5)),null;}}else{const _0x1615a2=_0x22c06f['getFirstRange']();_0x45d55f['some'](_0x61293f=>_0x61293f['containsRange'](_0x1615a2,!0x0))&&_0x22c06f['discard']();if(_0x45d55f['every'](_0x3be490=>_0x1615a2['containsRange'](_0x3be490,!0x0))){const _0x3cd1ab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x515e6d,'accept');return this['forceDefaultExecution'](()=>_0x3cd1ab(_0x45d55f,null,_0x4369e5)),null;}}const _0x4a2ddd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x515e6d,'join');let _0x2c00a0=null;for(const _0x492866 of this['getSuggestions']())if(_0x492866['author']['id']==_0x952f72['id']&&_0x492866['isInContent']&&'deletion'==_0x492866['type']&&_0x492866['subType']==_0x515e6d&&Xt(_0x492866,_0x4369e5)&&(_0x4a2ddd(_0x492866['getRanges'](),_0x45d55f)||_0x4a2ddd(_0x45d55f,_0x492866['getRanges']()))){if(_0x2c00a0){if(_0x492866['commentThread']&&_0x492866['commentThread']['length'])continue;for(const _0x588e75 of _0x492866['getRanges']())_0x2c00a0['isIntersectingWithRange'](_0x588e75)||_0x2c00a0['addRange'](_0x588e75);_0x492866['removeMarkers']();}else{_0x2c00a0=_0x492866;for(const _0x3aa8e0 of _0x45d55f)_0x492866['isIntersectingWithRange'](_0x3aa8e0)||_0x492866['addRange'](_0x3aa8e0);}}if(_0x2c00a0)return _0x2c00a0;_0x235489['clear']();for(const {suggestion:_0xfdf857,meta:_0x550543}of this['_findSuggestions'](_0x45d55f,'deletion'))_0x550543['isOwn']&&(this['_mergeNestedSuggestions']||!_0x550543['containsRangeInObject']&&!_0x550543['isInsideObject'])&&Xt(_0xfdf857,_0x4369e5)&&_0x235489['add'](_0xfdf857);for(const _0x3ddfe8 of _0x235489){const _0x1436cd=_0x3ddfe8['getRanges']();if(!_0x4369e5||!_0x4369e5['skipNestingCheck']){if(_0x45d55f['every'](_0x1f0eea=>_0x1436cd['some'](_0x3723cc=>_0x3723cc['containsRange'](_0x1f0eea,!0x0))))return _0x3ddfe8;}(!_0x3ddfe8['attributes']||!_0x3ddfe8['attributes']['skipNestingCheck'])&&(_0x1436cd['every'](_0xca1bc=>_0x45d55f['some'](_0x1ac999=>_0x1ac999['containsRange'](_0xca1bc,!0x0)))&&_0x3ddfe8['discard']());}const _0x182f3f=_0x425596(),_0x30434d=_0x952f72['id'],_0x27142d='deletion:'+_0x515e6d,_0x202ece=this['_setSuggestionData']({'id':_0x182f3f,'type':_0x27142d,'createdAt':new Date(),'authorId':_0x30434d,'attributes':_0x4369e5});for(const _0x179d61 of _0x45d55f)_0x179d61['detach'](),_0x179d61['isCollapsed']||'$graveyard'==_0x179d61['root']['rootName']||this['_addSuggestionMarker'](_0x27142d,_0x182f3f,_0x30434d,_0x179d61,o['getMultiRangeId']());return _0x202ece;}['markAttributeChange'](_0x5f401a,_0x1b9879,_0x25a61c,_0x2561cd,_0x530f4d){if(_0x5f401a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4f2bb3=this['editor']['plugins']['get']('Users')['me']['id'],_0x594c44=Array['from'](this['_suggestions']['values']())['filter'](_0x2ea628=>'attribute'==_0x2ea628['type']&&_0x2ea628['data']['key']==_0x1b9879&&_0x2ea628['isIntersectingWithRange'](_0x5f401a));if(this['_trackingSessionId']&&(_0x530f4d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x12ba0b=this['_findSuggestions'](_0x5f401a,'insertion')['filter'](({meta:_0xa6c844})=>_0xa6c844['isOwn']&&!_0xa6c844['isInsideObject']&&!_0xa6c844['isNextTo'])['map'](({suggestion:_0x1cbdd4})=>_0x1cbdd4);_0x594c44['unshift'](..._0x12ba0b);}const _0x5f5c21=new Map([[_0x5f401a,_0x25a61c]]);for(const _0x4546b2 of _0x594c44){const _0x2d6d07='attribute'==_0x4546b2['type']?_0x4546b2['data']['oldValue']:void 0x0,_0x1bbd1f=_0x4546b2['getFirstRange'](),_0x2683ee=Array['from'](_0x5f5c21['keys']())['find'](_0xe5b978=>_0xe5b978['isIntersecting'](_0x1bbd1f));if(!_0x2683ee)continue;const _0xb6a0df=_0x2683ee['getDifference'](_0x1bbd1f);this['_isBlockAttribute'](_0x1b9879)&&'insertion'==_0x4546b2['type']&&0x0!=_0xb6a0df['length']||(_0x5f5c21['delete'](_0x2683ee),_0xb6a0df['forEach'](_0xab74cc=>{_0x5f5c21['set'](_0xab74cc,_0x25a61c);}),'insertion'!=_0x4546b2['type']&&_0x2d6d07!=_0x2561cd&&_0x5f5c21['set'](_0x2683ee['getIntersection'](_0x1bbd1f),_0x2d6d07));}const _0x556fac=[];for(const [_0x43ec54,_0x3ac330]of _0x5f5c21){const _0xe39979=_0x425596(),_0x54d95c={'key':_0x1b9879,'oldValue':_0x3ac330,'newValue':_0x2561cd};_0x1b9879['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':_0x1b9879});const _0x5e1311=('attribute:'+(_0x1b9879+'|'+Kt({'newValue':_0x2561cd})))['substring'](0x0,0x3c),_0xbeb718=this['_setSuggestionData']({'id':_0xe39979,'type':_0x5e1311,'data':_0x54d95c,'createdAt':new Date(),'authorId':_0x4f2bb3,'attributes':_0x530f4d});_0x556fac['push'](_0xbeb718),this['_addSuggestionMarker'](_0x5e1311,_0xe39979,_0x4f2bb3,_0x43ec54);}return _0x556fac;}['enableDefaultAttributesIntegration'](_0xd2daa9){this['enableCommand'](_0xd2daa9,(_0x347d1c,..._0x40d7fe)=>{this['_recordAttributeChanges'](()=>{_0x347d1c(..._0x40d7fe);});});}['registerBlockAttribute'](_0x204599){this['_blockAttributeKeys']['add'](_0x204599);}['registerInlineAttribute'](_0x280fa0){this['_inlineAttributeKeys']['add'](_0x280fa0);}['startTrackingSession'](_0x263921){return this['_trackingSessionId']=void 0x0!==_0x263921?_0x263921:_0x425596(),this['_trackingSessionId'];}['_getAttributeKey'](_0x39c840){return'attribute'==_0x39c840['type']?_0x39c840['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x312587,_0x18e5c2){const _0x4e9b63=_0x312587['getFirstMarker']();this['_model']['change'](_0x645028=>{_0x645028['updateMarker'](_0x4e9b63,{'range':_0x18e5c2});});}['_addThreadToSuggestion'](_0x528681){const _0x253822=_0x528681['id'],_0x2db64c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x253822)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2db64c,'threadId':_0x253822,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1b66fc=this['_commentsRepository']['getCommentThread'](_0x253822);_0x1b66fc['unbind']('isRemovable'),_0x1b66fc['isRemovable']=!0x1,_0x528681['commentThread']=_0x1b66fc;}['_checkSuggestionCorrectness'](_0x2833ef,_0x1f53f1,_0x465666,_0x1191aa){if(_0x2833ef['type']!=_0x1f53f1||_0x2833ef['subType']!=_0x465666||_0x2833ef['creator']['id']!=_0x1191aa)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x59ef33('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1243e0,_0x52fcd5){const _0x2fb990=_0x1243e0['getFirstRange']();if(_0x52fcd5['isEqual'](_0x2fb990))_0x1243e0['removeMarkers']();else{if(_0x2fb990['containsRange'](_0x52fcd5)){const _0x12574b=this['_model']['createPositionAt'](_0x52fcd5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1243e0,this['_model']['createRange'](_0x2fb990['start'],_0x12574b));const _0xd2c105=_0x425596(),_0x1e5b4d=_0x1243e0['creator']['id'],_0x8305dc=_0x1243e0['type']+':'+_0x1243e0['subType'];this['_setSuggestionData']({'id':_0xd2c105,'type':_0x8305dc,'createdAt':new Date(),'authorId':_0x1e5b4d,'data':_0x1243e0['data'],'attributes':_0x1243e0['attributes']});const _0x8b8aa4=this['_model']['createPositionAt'](_0x52fcd5['end']['parent'],'after'),_0x3661cc=this['_model']['createRange'](_0x8b8aa4,_0x2fb990['end']);this['_addSuggestionMarker'](_0x8305dc,_0xd2c105,_0x1e5b4d,_0x3661cc);}else{if(_0x2fb990['containsPosition'](_0x52fcd5['start'])){const _0x563d9b=this['_model']['createPositionAt'](_0x52fcd5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1243e0,this['_model']['createRange'](_0x2fb990['start'],_0x563d9b));}else{const _0x1f2d4e=this['_model']['createPositionAt'](_0x52fcd5['end']['parent'],'after');this['_setSuggestionRange'](_0x1243e0,this['_model']['createRange'](_0x1f2d4e,_0x2fb990['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x362f87){for(const {suggestion:_0x45b15f,meta:_0x5fe6a}of this['_findSuggestions'](_0x362f87,'insertion')){if(!_0x5fe6a['isOwn'])continue;const _0x3bf2ac=_0x45b15f['getRanges']();for(const _0x543c6a of _0x3bf2ac)if(!_0x362f87['getDifference'](_0x543c6a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x11613e){const _0x34a02c=this['editor']['plugins']['get']('Users')['getUser'](_0x11613e);if(!_0x34a02c)throw new _0x59ef33('track-changes-user-not-found',this);return _0x34a02c;}['_getExternalAuthor'](_0x3f4909){const _0x5820c4=this['editor']['plugins']['get']('Users'),_0x2364ed=_0x5fe91f('external:'+_0x3f4909),_0x2c92f1=_0x5820c4['getUser'](_0x2364ed);return _0x2c92f1||_0x5820c4['addUser']({'id':_0x2364ed,'name':_0x3f4909});}['_createSuggestion'](_0x23cb2c,_0x282b4f,_0x11ce8d,_0xa20fc5,_0x52bdab,_0x434e08){const _0x488ed3=this['_getAuthorFromId'](_0xa20fc5),_0x459c98=this['_suggestionFactory']['buildSuggestion'](_0x23cb2c,_0x282b4f,_0x11ce8d,_0x488ed3,_0x52bdab,_0x14e2f1=>{this['_updateSuggestionData'](_0x11ce8d,{'attributes':_0x14e2f1});const _0x1790d8=this['getSuggestion'](_0x11ce8d);this['_joinWithAdjacentSuggestions'](new Set([_0x1790d8])),this['_refreshSuggestionsChain'](new Set([_0x1790d8]));},_0x434e08);return this['listenTo'](_0x459c98,'accept',()=>{this['_updateSuggestionData'](_0x11ce8d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x459c98,'discard',()=>{this['_updateSuggestionData'](_0x11ce8d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x11ce8d,_0x459c98),this['_suggestionState']['set'](_0x459c98,'notReady'),_0x459c98;}['_splitMarkerName'](_0x10fb82){const _0x26e479=_0x10fb82['split'](':');return{'group':_0x26e479[0x0],'type':_0x26e479[0x1],'subType':_0x26e479['length']>=0x5?_0x26e479[0x2]:null,'id':_0x26e479['length']<0x5?_0x26e479[0x2]:_0x26e479[0x3],'authorId':_0x26e479['length']<0x5?_0x26e479[0x3]:_0x26e479[0x4],'markerCount':0x6==_0x26e479['length']?_0x26e479[0x5]:null};}['_breakSuggestionMarker'](_0x2a2673,_0x44f384,_0x42123c){const _0x28266e=_0x2a2673['getFirstRange'](),_0x6f82eb=_0x28266e['start'],_0x222eca=_0x28266e['end'];this['_setSuggestionRange'](_0x2a2673,this['_model']['createRange'](_0x6f82eb,_0x44f384));const _0x5f286e=_0x425596(),_0x3b6535=_0x2a2673['creator']['id'],_0x430cab=_0x2a2673['type']+(_0x2a2673['subType']?':'+_0x2a2673['subType']:'');this['_setSuggestionData']({'id':_0x5f286e,'type':_0x430cab,'createdAt':new Date(),'authorId':_0x3b6535,'originalSuggestionId':_0x2a2673['_originalSuggestionId']||_0x2a2673['id'],'attributes':_0x2a2673['attributes'],'data':_0x2a2673['data']});const _0x54078a=this['_getAttributeKey'](_0x2a2673);('formatBlock'==_0x2a2673['type']||_0x54078a&&this['_isBlockAttribute'](_0x54078a))&&(_0x42123c=this['_model']['createPositionBefore'](_0x42123c['parent'])),this['_addSuggestionMarker'](_0x430cab,_0x5f286e,_0x3b6535,this['_model']['createRange'](_0x42123c,_0x222eca));}['_findSuggestions'](_0x23669f,_0x3557d9=null){const _0x130e5e=[],_0x46a91d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x23669f)||(_0x23669f=[_0x23669f]);for(const _0x26097f of this['getSuggestions']()){if(!_0x26097f['isInContent'])continue;if(_0x3557d9&&_0x26097f['type']!=_0x3557d9)continue;let _0x23f75e=!0x1;for(const _0x2c5c23 of _0x26097f['getRanges']()){for(const _0x5de159 of _0x23669f){const _0x29e2f6=_0x5de159['start']['isEqual'](_0x2c5c23['end'])||_0x5de159['end']['isEqual'](_0x2c5c23['start']);if(_0x29e2f6||_0x5de159['getIntersection'](_0x2c5c23)){const _0x210b7f=_0x5de159['containsRange'](_0x2c5c23)&&Gt(this['_model']['schema'],_0x2c5c23['start'],_0x5de159),_0x2343a3=_0x2c5c23['containsRange'](_0x5de159)&&Gt(this['_model']['schema'],_0x5de159['start'],_0x2c5c23);_0x130e5e['push']({'suggestion':_0x26097f,'meta':{'isOwn':_0x46a91d==_0x26097f['author'],'isNextTo':_0x29e2f6,'isInsideObject':_0x210b7f,'containsRangeInObject':_0x2343a3}}),_0x23f75e=!0x0;break;}}if(_0x23f75e)break;}}return _0x130e5e;}['_addSuggestionMarker'](_0x49880b,_0x26ebd0,_0x2325ed,_0x1ec48c,_0x16a906){this['_model']['change'](_0x1c6057=>{let _0x5be191='suggestion:'+_0x49880b+':'+_0x26ebd0+':'+_0x2325ed;_0x16a906&&(_0x5be191=_0x5be191+':'+_0x16a906),_0x1c6057['addMarker'](_0x5be191,{'range':_0x1ec48c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4f683e){const _0x3f568d=_0x4f683e['previous'],_0x2ce2a3=_0x4f683e['next'];_0x4f683e['previous']=null,_0x4f683e['next']=null,null!=_0x3f568d&&_0x3f568d['next']==_0x4f683e&&(_0x3f568d['next']=_0x2ce2a3),null!=_0x2ce2a3&&_0x2ce2a3['previous']==_0x4f683e&&(_0x2ce2a3['previous']=_0x3f568d),'ready'==this['_suggestionState']['get'](_0x4f683e)&&(this['_suggestionState']['set'](_0x4f683e,'removed'),this['fire']('suggestionUnloaded',_0x4f683e,_0x3f568d,_0x2ce2a3));}['_setSuggestionData'](_0x2a5d50){const _0x184807=_0x2a5d50['id'],_0x12c0ae=this['addSuggestionData'](_0x2a5d50);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x371614=this['editor']['plugins']['get']('PendingActions'),_0xa64d92=_0x12c0ae['hasComments'],_0x5aa7c9=_0x12c0ae['subType']?_0x12c0ae['type']+':'+_0x12c0ae['subType']:_0x12c0ae['type'],_0x10a5f9=this['editor']['locale'],_0x4c889f=_0x371614['add'](c(_0x10a5f9,'PENDING_ACTION_SUGGESTION')),_0x4ac511={'id':_0x184807,'type':_0x5aa7c9,'hasComments':_0xa64d92,'data':_0x2a5d50['data']||null,'originalSuggestionId':_0x2a5d50['originalSuggestionId']||null,'attributes':_0x12c0ae['attributes']};this['_adapter']['addSuggestion'](_0x4ac511)['then'](_0x4e9be0=>{_0x12c0ae['_saved']=!0x0,_0x371614['remove'](_0x4c889f),_0x4e9be0&&_0x4e9be0['createdAt']&&(this['_suggestions']['get'](_0x184807)['createdAt']=_0x4e9be0['createdAt']);})['catch'](_0x3cdb40=>{throw _0x2aedd9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x12c0ae['discard']();}),_0x12c0ae['stopListening'](),this['_suggestions']['delete'](_0x12c0ae['id']),this['_suggestionState']['delete'](_0x12c0ae),_0x3cdb40;});}return _0x12c0ae;}['_isBlockAttribute'](_0x176c78){return this['_blockAttributeKeys']['has'](_0x176c78);}['_updateSuggestionData'](_0x4bb716,_0x2ea20a){const _0x5dcaf0=this['editor']['plugins']['get']('PendingActions'),_0x302bc9=this['getSuggestion'](_0x4bb716);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x302bc9['_saved']){const _0x515be0=_0x5dcaf0['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4bb716,_0x2ea20a)['then'](()=>{_0x5dcaf0['remove'](_0x515be0);});}else _0x302bc9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4bb716,_0x2ea20a);});}}['_getSuggestionData'](_0xb0cbc8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x59ef33('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xb0cbc8);}['_handleNewSuggestionMarker'](_0x32c06){const {id:_0x472c27,type:_0x3b9868,subType:_0x34a681,authorId:_0xab16f3}=this['_splitMarkerName'](_0x32c06),_0x169f7f=this['_suggestions']['get'](_0x472c27)||this['_createSuggestion'](_0x3b9868,_0x34a681,_0x472c27,_0xab16f3,{});switch(this['_checkSuggestionCorrectness'](_0x169f7f,_0x3b9868,_0x34a681,_0xab16f3),this['_suggestionState']['get'](_0x169f7f)){case'notReady':this['_getSuggestionData'](_0x472c27)['then'](_0x45ea00=>{let _0x1fb5d0=Promise['resolve']();_0x45ea00['hasComments']&&(_0x1fb5d0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x472c27})),_0x1fb5d0['then'](()=>{this['addSuggestionData'](_0x45ea00)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x169f7f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x472c27,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x169f7f,'ready'),this['fire']('suggestionLoaded',_0x169f7f);break;case'ready':this['fire']('suggestionChanged',_0x169f7f);}return _0x169f7f['addMarkerName'](_0x32c06),_0x169f7f;}['_refreshSuggestionsChain'](_0x3da2cb){const _0x518c5b=Array['from'](_0x3da2cb),_0x28f9a5=_0x518c5b['filter'](_0x4c7870=>'attribute'==_0x4c7870['type']);this['_refreshAttributeSuggestionsChain'](_0x28f9a5);const _0x3ce2fa=_0x518c5b['filter'](_0x244ecd=>!_0x244ecd['isMultiRange']&&'attribute'!=_0x244ecd['type']),_0x93356a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x443662=>!_0x443662['isMultiRange']&&'attribute'!=_0x443662['type']),_0x42fff5=_0x93356a['filter'](_0xcab4e1=>!_0x3da2cb['has'](_0xcab4e1)),_0x930aab=new Map(_0x93356a['map'](_0x3109c1=>[_0x3109c1,this['_suggestionFactory']['getSuggestionCallback'](_0x3109c1['type'],_0x3109c1['subType'],'chain')])),_0x35af74=new Map(_0x93356a['map'](_0xae6638=>[_0xae6638,_0xae6638['getFirstRange']()])),_0x37e252=new Set(),_0xf05410=new Set();for(let _0x25a415=0x0;_0x25a415<_0x3ce2fa['length'];_0x25a415++)_0xaf9177(_0x3ce2fa[_0x25a415],_0x3ce2fa,_0x25a415+0x1);for(let _0x217f64=0x0;_0x217f64<_0x3ce2fa['length'];_0x217f64++)_0xaf9177(_0x3ce2fa[_0x217f64],_0x42fff5,0x0);const _0x2df69d=new Set();for(let _0x1f1979=0x0;_0x1f1979<_0x3ce2fa['length'];_0x1f1979++){const _0x346d00=_0x3ce2fa[_0x1f1979];!_0xf05410['has'](_0x346d00)&&_0x346d00['previous']&&(_0x2df69d['add'](_0x346d00['previous']),_0x346d00['previous']['next']===_0x346d00&&(_0x346d00['previous']['next']=null),_0x346d00['previous']=null),!_0x37e252['has'](_0x346d00)&&_0x346d00['next']&&(_0x2df69d['add'](_0x346d00['next']),_0x346d00['next']['previous']===_0x346d00&&(_0x346d00['next']['previous']=null),_0x346d00['next']=null);}function _0xaf9177(_0x4e9fb2,_0x19c56e,_0x258356){for(let _0xf9c1e5=_0x258356;_0xf9c1e5<_0x19c56e['length'];_0xf9c1e5++){const _0x2aeaf1=_0x5af436(_0x4e9fb2,_0x19c56e[_0xf9c1e5]);_0x2aeaf1&&(_0x2aeaf1[0x0]['next']=_0x2aeaf1[0x1],_0x2aeaf1[0x1]['previous']=_0x2aeaf1[0x0],_0x37e252['add'](_0x2aeaf1[0x0]),_0xf05410['add'](_0x2aeaf1[0x1]));}}function _0x5af436(_0x3678bf,_0x27f3cb){if(_0x3678bf['author']['id']!==_0x27f3cb['author']['id'])return null;const _0x2fccf0=_0x930aab['get'](_0x3678bf)(_0x3678bf,_0x27f3cb,_0x35af74['get'](_0x3678bf),_0x35af74['get'](_0x27f3cb));if(!_0x2fccf0)return null;return _0x930aab['get'](_0x27f3cb)(_0x3678bf,_0x27f3cb,_0x35af74['get'](_0x3678bf),_0x35af74['get'](_0x27f3cb))?_0x2fccf0[0x1]['commentThread']&&_0x2fccf0[0x1]['commentThread']['length']?null:_0x2fccf0:null;}_0x2df69d['size']&&this['_refreshSuggestionsChain'](_0x2df69d);}['_refreshAttributeSuggestionsChain'](_0x21ee41){if(0x0==_0x21ee41['length'])return;const _0x36d5af=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55cd43=>'attribute'==_0x55cd43['type']&&_0x55cd43['_isDataLoaded']),_0x3c1f0e=[],_0x3a78a9=new Map();for(const _0x3fde3a of _0x36d5af){const _0x12304d=_0x5fe91f(_0x3fde3a['attributes']);_0x3a78a9['has'](_0x12304d)||(_0x3a78a9['set'](_0x12304d,_0x3c1f0e['length']),_0x3c1f0e['push']([]));const _0x307786=_0x3a78a9['get'](_0x12304d);_0x3c1f0e[_0x307786]['push'](_0x3fde3a);}!(function(){_0x3c1f0e['sort']((_0x564a21,_0x4d0f25)=>{const _0x2a5a6b=_0x564a21[0x0]['createdAt'],_0x34b89b=_0x4d0f25[0x0]['createdAt'];return _0x2a5a6b==_0x34b89b?_0x564a21[0x0]['attributes']['groupId']<_0x4d0f25[0x0]['attributes']['groupId']?-0x1:0x1:_0x2a5a6b<_0x34b89b?-0x1:0x1;});for(const _0x2b0162 of _0x3c1f0e)_0x2b0162['sort']((_0x21dc0b,_0x3a7704)=>_0x21dc0b['id']<_0x3a7704['id']?-0x1:0x1);}());for(let _0x3e901b=0x0;_0x3e901b<_0x3c1f0e['length'];_0x3e901b++){if(0x0==_0x3c1f0e[_0x3e901b]['length'])continue;const _0x5219e6=[];for(let _0x16631e=_0x3e901b+0x1;_0x16631e<_0x3c1f0e['length'];_0x16631e++)0x0!=_0x3c1f0e[_0x16631e]['length']&&_0x39fbbe(_0x3c1f0e[_0x3e901b],_0x3c1f0e[_0x16631e])&&_0x5219e6['push'](_0x16631e);for(const _0x44540b of _0x5219e6)_0x3c1f0e[_0x3e901b]=_0x3c1f0e[_0x3e901b]['concat'](_0x3c1f0e[_0x44540b]),_0x3c1f0e[_0x44540b]=[];}for(const _0x36870f of _0x3c1f0e)for(let _0x23d865=0x0;_0x23d865<_0x36870f['length'];_0x23d865++){const _0xa17925=_0x36870f[_0x23d865+0x1]||null;_0x36870f[_0x23d865]['next']!==_0xa17925&&(_0x36870f[_0x23d865]['next']=_0xa17925);}for(const _0x4c8f9e of _0x3c1f0e)for(let _0x3886f2=0x0;_0x3886f2<_0x4c8f9e['length'];_0x3886f2++){const _0x187d07=_0x4c8f9e[_0x3886f2-0x1]||null;_0x4c8f9e[_0x3886f2]['previous']!==_0x187d07&&(_0x4c8f9e[_0x3886f2]['previous']=_0x187d07);}function _0x39fbbe(_0x232773,_0x1d205e){if(_0x232773[0x0]['attributes']['groupId']!==_0x1d205e[0x0]['attributes']['groupId']&&_0x232773[0x0]['author']!==_0x1d205e[0x0]['author'])return!0x1;if(!function(_0xf4dbd2,_0xfaab6d){if(!_0xf4dbd2['hasComments']&&!_0xfaab6d['hasComments'])return!0x0;if(_0xf4dbd2['hasComments']&&_0xfaab6d['hasComments'])return!0x1;if(_0xf4dbd2['hasComments']&&_0xfaab6d['createdAt']<_0xf4dbd2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xfaab6d['hasComments']&&_0xf4dbd2['createdAt']<_0xfaab6d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x232773[0x0],_0x1d205e[0x0]))return!0x1;const _0x678a0f=Ft(_0x232773[0x0]['attributes'],['groupId','trackingSessionId']),_0x16901d=Ft(_0x1d205e[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5f649a(_0x678a0f,_0x16901d))return!0x1;if(_0x232773[0x0]['attributes']['groupId']==_0x1d205e[0x0]['attributes']['groupId'])return!0x0;if(_0x232773[0x0]['attributes']['trackingSessionId']!==_0x1d205e[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x232773['every'](_0x3ff37c=>_0x1d205e['some'](_0x5b6c1d=>_0x3ff37c['getFirstRange']()['isEqual'](_0x5b6c1d['getFirstRange']())))&&_0x1d205e['every'](_0x21490b=>_0x232773['some'](_0x1f0067=>_0x21490b['getFirstRange']()['isEqual'](_0x1f0067['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3e57e6){const _0x4a03ae=Array['from'](_0x3e57e6),_0xf39ac6=this['getSuggestions']({'skipNotAttached':!0x0}),_0x48b360=_0xf39ac6['filter'](_0x5bbc17=>!_0x3e57e6['has'](_0x5bbc17)),_0xf534cb=new Map(_0x4a03ae['map'](_0x3584c0=>[_0x3584c0,this['_suggestionFactory']['getSuggestionCallback'](_0x3584c0['type'],_0x3584c0['subType'],'join')])),_0x4cb637=new Map(_0xf39ac6['map'](_0x4ea393=>[_0x4ea393,_0x4ea393['getRanges']()]));for(let _0x5c2905=0x0;_0x5c2905<_0x4a03ae['length'];_0x5c2905++){if(_0x2ed1e7(this,_0x4a03ae[_0x5c2905],_0x4a03ae,_0x5c2905+0x1))return!0x0;}for(let _0x2f4ac3=0x0;_0x2f4ac3<_0x4a03ae['length'];_0x2f4ac3++){if(_0x2ed1e7(this,_0x4a03ae[_0x2f4ac3],_0x48b360,0x0))return!0x0;}return!0x1;function _0x2ed1e7(_0x47ae54,_0x531b69,_0x465c60,_0x5c73f4){for(let _0x5f5128=_0x5c73f4;_0x5f5128<_0x465c60['length'];_0x5f5128++){const _0x48d484=_0x465c60[_0x5f5128];if(_0x48d484['type']!==_0x531b69['type']||_0x48d484['author']['id']!==_0x531b69['author']['id']||_0x48d484['subType']!==_0x531b69['subType'])continue;if(!Qt(_0x531b69,_0x48d484))continue;if('attribute'==_0x531b69['type']&&_0x531b69['data']['oldValue']!=_0x48d484['data']['oldValue'])continue;if('attribute'==_0x531b69['type']&&_0x47ae54['_isBlockAttribute'](_0x531b69['data']['key']))continue;if('formatBlock'==_0x531b69['type']){const _0x2b7a72=_0x47ae54['editor']['model'],_0x3664f6=_0x531b69['getContainedElement']();if(_0x3664f6&&(_0x2b7a72['schema']['isObject'](_0x3664f6)||_0x2b7a72['schema']['isLimit'](_0x3664f6)))continue;}const _0x30176c=_0xf534cb['get'](_0x531b69),_0x40d6ea=_0x4cb637['get'](_0x531b69),_0x3e2fed=_0x4cb637['get'](_0x48d484),_0x555b51=_0x531b69['commentThread']&&_0x531b69['commentThread']['length'],_0x241bef=_0x48d484['commentThread']&&_0x48d484['commentThread']['length'];if(!_0x555b51&&_0x30176c(_0x3e2fed,_0x40d6ea))return _0x47ae54['_joinSuggestions'](_0x48d484,_0x531b69),_0x4cb637['delete'](_0x531b69),!0x0;if(!_0x241bef&&_0x30176c(_0x40d6ea,_0x3e2fed))return _0x47ae54['_joinSuggestions'](_0x531b69,_0x48d484),_0x4cb637['delete'](_0x48d484),!0x0;}return!0x1;}}['_joinSuggestions'](_0x575726,_0x6efb21){if(_0x575726['isMultiRange']){for(const _0x4c61a3 of _0x6efb21['getRanges']())_0x575726['addRange'](_0x4c61a3);}else{const _0x59286c=_0x6efb21['getFirstRange']()['end'];this['_setSuggestionRange'](_0x575726,this['_model']['createRange'](_0x575726['getFirstRange']()['start'],_0x59286c));}_0x6efb21['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5c98d5,_0x2ed11f,_0x3647af){const _0x505626=_0x5c98d5['startsWith']('format')||_0x5c98d5['startsWith']('attribute')?'FORMATTING':_0x5c98d5['toUpperCase']();return c(this['editor']['locale'],_0x2ed11f+'_'+_0x505626+'_SUGGESTION_ANNOUNCEMENT',_0x3647af);}['_initAriaMarkerChangeAnnouncements'](){const _0x231480=this['editor'];if(!_0x231480['ui'])return;const {ariaLiveAnnouncer:_0x778f89}=_0x231480['ui'];_0x2612fb(this['_model'],({left:_0x1b3920,entered:_0x2b8024})=>{for(const _0x5e93b9 of _0x1b3920){const {group:_0xe3bdfc,type:_0x3aab3f}=this['_splitMarkerName'](_0x5e93b9['name']);if('suggestion'===_0xe3bdfc){_0x778f89['announce'](this['_getMarkerAnnouncementText'](_0x3aab3f,'LEAVE'));break;}}for(const _0x51b771 of _0x2b8024){const {group:_0x2e7e7f,type:_0x111d0d}=this['_splitMarkerName'](_0x51b771['name']);if('suggestion'===_0x2e7e7f){_0x778f89['announce'](this['_getMarkerAnnouncementText'](_0x111d0d,'ENTER',_0x5c6ede(_0x26049f)));break;}}});}['_processAttributeChanges'](_0xe18709){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5253e9=this['editor'],_0x2a47c0=_0x5253e9['model']['document']['differ']['getChanges']();if(0x0==_0x2a47c0['length'])return!0x1;const _0x1bf5c7=[],_0x5268da=_0x2a47c0['filter'](_0x47ff03=>'attribute'==_0x47ff03['type']),_0x201b1d=_0x2a47c0['filter'](_0x323c9d=>'insert'==_0x323c9d['type']&&'$text'!=_0x323c9d['name']),_0x1b9ef9=_0x2a47c0['filter'](_0x3a668a=>'remove'==_0x3a668a['type']&&'$text'!=_0x3a668a['name']);for(const _0x5315b2 of _0x5268da)_0x1bf5c7['push']({'key':_0x5315b2['attributeKey'],'newValue':_0x5315b2['attributeNewValue'],'oldValue':_0x5315b2['attributeOldValue'],'range':qt(_0x5315b2['range'],_0x5253e9['model'])});for(const _0x45c7f9 of _0x201b1d){const _0x1ffde3=_0x1b9ef9['find'](_0x327377=>_0x327377['position']['isEqual'](_0x45c7f9['position']));_0x1ffde3&&_0x1bf5c7['push']({'key':u,'newValue':_0x45c7f9['name'],'oldValue':_0x1ffde3['name'],'range':_0x5253e9['model']['createRangeOn'](_0x45c7f9['position']['nodeAfter'])});}return 0x0!=_0x1bf5c7['length']&&this['_reduceExistingSuggestions'](_0xe18709,_0x1bf5c7);}['_processAttributeSuggestions'](_0x5b7fa0){let _0x2a2834=!0x1;const _0x3d3565=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5e7a3e=>_0x5e7a3e['data']['newRange']&&_0x5e7a3e['name']['startsWith']('suggestion:attribute:'));for(const _0x104e76 of _0x3d3565){const {subType:_0x43bd60,id:_0x4661cb}=this['_splitMarkerName'](_0x104e76['name']),_0x4b7be7=_0x43bd60['split']('|')[0x0];for(const _0x55ced6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x55ced6['id']!=_0x4661cb&&'attribute'==_0x55ced6['type']&&_0x55ced6['data']&&_0x55ced6['data']['key']==_0x4b7be7&&_0x55ced6['getFirstRange']()['isIntersecting'](_0x104e76['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x55ced6,_0x104e76['data']['newRange'],_0x5b7fa0),_0x2a2834=!0x0);}return _0x2a2834;}['_recordAttributeChanges'](_0x35da46){this['_recordAttributeSuggestions']=!0x0,_0x35da46();}['_isRegisteredAttribute'](_0xf231e3){const _0x468370=this['_isBlockAttribute'](_0xf231e3),_0x18a5d9=this['_inlineAttributeKeys']['has'](_0xf231e3);return _0x468370||_0x18a5d9;}['_reduceExistingSuggestions'](_0x43ef3a,_0x10e5de){if(0x0==_0x10e5de['length'])return!0x1;let _0x44c492=!0x1;for(const _0x33b86d of _0x10e5de){const _0x93162a=this['_findSuggestions'](_0x33b86d['range'],'attribute')['filter'](_0x288560=>!_0x288560['meta']['isNextTo'])['map'](_0x1d44f4=>_0x1d44f4['suggestion']),_0x11761e=_0x5fe91f({'newValue':_0x33b86d['newValue']});_0x93162a['filter'](_0x2df455=>{const [_0x7efe2f,_0x4c1d52]=_0x2df455['subType']['split']('|');return _0x7efe2f==_0x33b86d['key']&&_0x4c1d52!=_0x11761e;})['forEach'](_0x182660=>{this['_reduceSuggestionAttributeRange'](_0x182660,_0x33b86d['range'],_0x43ef3a),_0x44c492=!0x0;});}return _0x44c492;}['_reduceSuggestionAttributeRange'](_0x48a8ed,_0x38a807,_0x12447b){const _0x2a5f8c=_0x48a8ed['getFirstRange']()['getDifference'](_0x38a807);0x0!==_0x2a5f8c['length']?0x1!==_0x2a5f8c['length']?this['_breakSuggestionMarker'](_0x48a8ed,_0x38a807['start'],_0x38a807['end']):this['_setSuggestionRange'](_0x48a8ed,_0x2a5f8c[0x0]):_0x12447b['removeMarker'](_0x48a8ed['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x273baf){this['_editor']=_0x273baf,this['_model']=_0x273baf['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xe267f9,_0x202b77,_0x23eb35,_0x2c7921,_0x56daff,_0x56191e,_0x17e874){return new o(this['_model'],{'type':_0xe267f9,'subType':_0x202b77,'id':_0x23eb35,'originalSuggestionId':_0x17e874,'author':_0x2c7921,'creator':_0x2c7921,'attributes':_0x56daff,'onAttributesChange':_0x56191e,'onAccept':(..._0x2e4d91)=>this['getSuggestionCallback'](_0xe267f9,_0x202b77,'accept')(..._0x2e4d91),'onDiscard':(..._0x158868)=>this['getSuggestionCallback'](_0xe267f9,_0x202b77,'discard')(..._0x158868)});}['registerCustomCallback'](_0x501185,_0x35adc8,_0x5e421d,_0x135e58){const _0x555e8c=_0x501185+':'+_0x35adc8+':'+_0x5e421d;this['_customCallbacks']['set'](_0x555e8c,_0x135e58);}['getSuggestionCallback'](_0xe21dcf,_0x41c97d,_0x574516){const _0x13d0b9=_0xe21dcf+':'+_0x41c97d+':'+_0x574516;return this['_customCallbacks']['get'](_0x13d0b9)||this['_defaultCallbacks']['get'](_0xe21dcf+':'+_0x574516);}['_registerDefaultCallbacks'](){const _0x1451e9=()=>!0x1,_0x1b5630=_0x317fcb=>{_0x317fcb['sort']((_0x4a0b81,_0x56db0f)=>_0x4a0b81['start']['isBefore'](_0x56db0f['start'])?0x1:-0x1),this['_model']['change'](_0x57dd4f=>{for(const _0x39c8e0 of _0x317fcb){let _0x2251c4;_0x2251c4=_0x39c8e0['end']['isAtEnd']&&_0x39c8e0['end']['parent']==_0x39c8e0['start']['nodeAfter']?_0x57dd4f['createSelection'](_0x39c8e0['start']['nodeAfter'],'on'):_0x57dd4f['createSelection'](_0x39c8e0),this['_model']['deleteContent'](_0x2251c4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0xf4df9a=(_0x38431c,_0x2581b0)=>{_0x2581b0&&this['_model']['change'](_0x5239d2=>{const {commandName:_0x5cc00e,commandParams:_0x339003=[]}=_0x2581b0,_0x220ce9=_0x38431c['map'](_0x51b70b=>(Lt(_0x51b70b)&&(_0x51b70b=this['_model']['createRange'](_0x51b70b['end'])),_0x51b70b))['filter'](_0x319d3d=>'$graveyard'!==_0x319d3d['root']['rootName']);if(_0x220ce9['length']<0x1)return;const _0x56f966=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x11f329=>_0x46c3f4['fromRange'](_0x11f329));_0x5239d2['setSelection'](_0x220ce9);for(const _0x1a338b of this['_editor']['commands']['commands']())_0x1a338b['refresh']();_0x339003['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5cc00e,..._0x339003);const _0x1fc53c=_0x56f966['filter'](_0x2bb57e=>'$graveyard'!=_0x2bb57e['root']['rootName']);_0x1fc53c['length']>0x0&&_0x5239d2['setSelection'](_0x1fc53c);for(const _0x53f876 of _0x56f966)_0x53f876['detach']();});},_0x1aef35=(_0x127158,_0x26bb15)=>0x1==_0x127158['length']&&0x1==_0x26bb15['length']&&_0x127158[0x0]['end']['isEqual'](_0x26bb15[0x0]['start']),_0x14bb06=(_0x512ceb,_0x12cb6d,_0x2ab3df,_0x3755ba)=>Wt(_0x512ceb,_0x12cb6d,_0x2ab3df,_0x3755ba)?[_0x512ceb,_0x12cb6d]:Wt(_0x12cb6d,_0x512ceb,_0x3755ba,_0x2ab3df)?[_0x12cb6d,_0x512ceb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1451e9),this['_defaultCallbacks']['set']('insertion:discard',_0x1b5630),this['_defaultCallbacks']['set']('insertion:join',_0x1aef35),this['_defaultCallbacks']['set']('insertion:chain',_0x14bb06),this['_defaultCallbacks']['set']('deletion:accept',_0x1b5630),this['_defaultCallbacks']['set']('deletion:discard',_0x1451e9),this['_defaultCallbacks']['set']('deletion:join',_0x1aef35),this['_defaultCallbacks']['set']('deletion:chain',_0x14bb06),this['_defaultCallbacks']['set']('formatInline:accept',_0xf4df9a),this['_defaultCallbacks']['set']('formatInline:discard',_0x1451e9),this['_defaultCallbacks']['set']('formatInline:join',_0x1aef35),this['_defaultCallbacks']['set']('formatInline:chain',_0x1451e9),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf4df9a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1451e9),this['_defaultCallbacks']['set']('formatBlock:join',_0x1aef35),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1451e9),this['_defaultCallbacks']['set']('attribute:accept',_0x1451e9),this['_defaultCallbacks']['set']('attribute:discard',(_0x4585b3,_0x4b05f3)=>{if(!_0x4b05f3)return;const _0x36ad95=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4cc0a4=>{if(_0x4b05f3['key']==u)for(const _0x2952a8 of _0x4585b3){const _0x453275=_0x2952a8['start']['nodeAfter'],_0x32c40d=_0x4b05f3['oldValue'];_0x4cc0a4['rename'](_0x453275,_0x32c40d);}else{if(_0x36ad95['_isBlockAttribute'](_0x4b05f3['key'])){for(const _0x2e5564 of _0x4585b3)void 0x0!==_0x4b05f3['oldValue']?_0x4cc0a4['setAttribute'](_0x4b05f3['key'],_0x4b05f3['oldValue'],_0x2e5564['start']['nodeAfter']):_0x4cc0a4['removeAttribute'](_0x4b05f3['key'],_0x2e5564['start']['nodeAfter']);}else{for(const _0x468429 of _0x4585b3)_0x4b05f3['oldValue']?_0x4cc0a4['setAttribute'](_0x4b05f3['key'],_0x4b05f3['oldValue'],_0x468429):_0x4cc0a4['removeAttribute'](_0x4b05f3['key'],_0x468429);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1aef35);}}function Gt(_0x50c310,_0x5a8e10,_0xd7ae1b){for(const _0x1e8680 of _0x5a8e10['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1e8680['root']==_0x1e8680)return!0x1;if(!_0xd7ae1b['containsItem'](_0x1e8680))return!0x1;if(_0x50c310['isObject'](_0x1e8680)||_0x50c310['isLimit'](_0x1e8680))return!0x0;}return!0x1;}function Lt(_0x3e26c9){return _0x3e26c9['end']['parent']==_0x3e26c9['start']['nodeAfter']&&_0x3e26c9['end']['isAtStart'];}function Jt(_0x5664c8,_0x46ff6e,_0x1ab524,_0x32823c){const _0xaa731d=_0xe88bfd=>!_0xe88bfd['item']['is']('$textProxy')&&!_0x32823c['isObject'](_0xe88bfd['item']),_0xb16931=_0x5664c8['start']['getLastMatchingPosition'](_0xaa731d),_0x12c253=_0x5664c8['end']['getLastMatchingPosition'](_0xaa731d,{'direction':'backward'});return(!_0x5664c8['start']['isEqual'](_0xb16931)||!_0x5664c8['end']['isEqual'](_0x12c253))&&(_0xb16931['isBefore'](_0x12c253)?_0x1ab524['updateMarker'](_0x46ff6e,{'range':_0x1ab524['createRange'](_0xb16931,_0x12c253)}):_0x1ab524['removeMarker'](_0x46ff6e),!0x0);}function Kt(_0xb68f05){return _0x5fe91f(_0xb68f05);}function Ht(_0xb4dd15){const _0x394e47=_0xb4dd15['start']['nodeAfter'];return _0x394e47&&_0x394e47['is']('element');}function qt(_0x22e5bb,_0x45eabe){return null==_0x22e5bb['end']['nodeBefore']&&_0x22e5bb['end']['parent']==_0x22e5bb['start']['nodeAfter']?zt(_0x22e5bb['start']['nodeAfter'],_0x45eabe):_0x22e5bb;}function zt(_0x38a8ee,_0x3302ba){const _0x34cd44=_0x3302ba['schema']['isObject'](_0x38a8ee)||_0x3302ba['schema']['isSelectable'](_0x38a8ee);return _0x3302ba['createRange'](_0x3302ba['createPositionAt'](_0x38a8ee,'before'),_0x34cd44?_0x3302ba['createPositionAfter'](_0x38a8ee):_0x3302ba['createPositionAt'](_0x38a8ee,'end'));}function Wt(_0x5b05e0,_0x440e76,_0x4059a5,_0x432df1){return!!Qt(_0x5b05e0,_0x440e76)&&_0x4059a5['end']['isEqual'](_0x432df1['start']);}function Qt(_0x9a0c7e,_0x43e1e2){if(!_0x9a0c7e['_isDataLoaded']||!_0x43e1e2['_isDataLoaded'])return!0x1;const _0x5d4001=new Set(Object['keys'](_0x9a0c7e['attributes'])),_0x5598f3=new Set(Object['keys'](_0x43e1e2['attributes']));if(_0x5d4001['delete']('groupId'),_0x5598f3['delete']('groupId'),0x0==_0x5d4001['size']&&0x0==_0x5598f3['size'])return!0x0;if(_0x5d4001['size']!=_0x5598f3['size'])return!0x1;const _0x3857f7={..._0x9a0c7e['attributes']},_0x6ecc2={..._0x43e1e2['attributes']};return delete _0x3857f7['groupId'],delete _0x6ecc2['groupId'],JSON['stringify'](_0x3857f7)==JSON['stringify'](_0x6ecc2);}function Xt(_0x4e3a1c,_0x13bdc3){const _0x15fed7=Yt(_0x4e3a1c['attributes']),_0x17a080=Yt(_0x13bdc3);if(!_0x4e3a1c['_isDataLoaded'])return!0x1;for(const _0x387961 of Object['keys'](_0x17a080))if(!_0x5f649a(_0x15fed7[_0x387961],_0x17a080[_0x387961]))return!0x1;return!0x0;}function Yt(_0x154571){const _0x15a6d2=Object['assign']({},_0x154571);return delete _0x15a6d2['skipNestingCheck'],delete _0x15a6d2['tablePasteChainId'],_0x15a6d2;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x94a634(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4ab889,_0x1b28dd,_0x545fb0,_0x4ea7d6){super(),this['model']=_0x1b28dd,this['view']=_0x545fb0,this['commentThreadController']=_0x4ea7d6,this['_editor']=_0x4ab889,this['_acceptCommand']=_0x4ab889['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4ab889['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x254b0b,_0x27c186)=>_0x254b0b||_0x27c186),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x528d04=>_0x528d04&&this['_editor']['model']['canEditAt'](_0x1b28dd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4b8e00=>_0x4b8e00&&this['_editor']['model']['canEditAt'](_0x1b28dd['getRanges']())),this['_pendingAction']=null,_0x545fb0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x545fb0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x545fb0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x545fb0,'change:isDirty',()=>{_0x545fb0['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 _0xe17478=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xe17478);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x47e455{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x274aa7,_0x5c13c0,_0x4b0064,_0x44acab){super(_0x274aa7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x45977a(_0x274aa7,c(_0x274aa7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5c13c0['authoredAt']),this['bind']('authoredAt')['to'](_0x5c13c0),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',_0x5c13c0,'authoredAt',this,'descriptionParts',(_0x4279bd,_0x22ba6e,_0x25529f)=>{const _0x50189e=_0x25529f['map'](_0x1330ea=>ls(_0x1330ea['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4279bd-0x1,_0x5c13c0['author']['name'],_0x22ba6e?_0x44acab['formatDateTime'](_0x22ba6e):'',new DOMParser()['parseFromString'](_0x50189e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5f56e7(),this['focusTracker']=new _0x1096f0(),this['keystrokes']=new _0x140cea(),this['focusCycler']=new _0x55ed52({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x814dda=>_0x814dda['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5c13c0,this['_localUser']=_0x4b0064,this['_config']=_0x44acab,_0x44acab['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x551d53(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x253d23}=this['_config'];this['commentsListView']=new _0x253d23(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',_0xd1a4f3=>_0xd1a4f3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x24eab9,_0x192623)=>_0x24eab9||!!_0x192623);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2ae98f}=this['_config'],_0x45f19d=new _0x2ae98f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2bb2a4=_0x45f19d['commentInputView'];return _0x45f19d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2bb2a4,'value',(_0x24d195,_0x25c350,_0x3e3f23)=>!!_0x3e3f23||_0x24d195&&!_0x25c350),_0x2bb2a4['on']('submit',(_0x518bbd,_0x4f08a2)=>{this['fire']('addComment',_0x4f08a2),_0x2bb2a4['editor']['setData']('');}),_0x2bb2a4['on']('cancel',()=>this['focus']()),_0x2bb2a4['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x45f19d;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x43137b,_0x58b38f,_0x5c8a07,_0x18917d){super(_0x43137b,_0x58b38f,_0x5c8a07,_0x18917d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x216472=>_0x216472&&_0x216472[0x0]?_0x216472[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x12c0f9,_0x299acd)=>{let _0x45678e='';for(const _0x1a76f0 of _0x12c0f9)_0x45678e+='<p>'+ls(_0x1a76f0['content'],_0x1a76f0['color'])+'</p>';return _0x299acd?_0x45678e:ti(_0x45678e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x18917d['SuggestionView'](_0x43137b,_0x58b38f,{'formatDateTime':_0x18917d['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 _0x3b8a51=this['bindTemplate'],_0x2ac800=[this['suggestionView']];return this['commentsListView']&&_0x2ac800['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2ac800['push'](this['commentThreadInputView']),_0x2ac800['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3b8a51['if']('isActive','ck-suggestion-wrapper--active'),_0x3b8a51['to']('type',_0x46c774=>'ck-suggestion-'+_0x46c774),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':_0x3b8a51['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2ac800};}['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 _0x47e455{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x31180e,_0x54969e,_0x515291){super(_0x31180e),this['_model']=_0x54969e,this['_config']=_0x515291,this['set']('description',''),this['bind']('authoredAt')['to'](_0x54969e),this['acceptButton']=this['_createButton'](c(_0x31180e,'Accept\x20suggestion'),_0x39730c,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x31180e,'Discard\x20suggestion'),_0x2371d9,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x489cea(_0x31180e,_0x54969e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5f56e7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1096f0(),this['keystrokes']=new _0x140cea(),this['focusCycler']=new _0x55ed52({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x57ff07=>_0x57ff07['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x14a2e3=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x14a2e3['innerHTML']=this['description'],this['on']('change:description',(_0x12c29b,_0x500a0e,_0x353917)=>{_0x14a2e3['innerHTML']=_0x353917;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x40fb09=this['bindTemplate'],_0x192d99=[{'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':_0x40fb09['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x40fb09['to']('authoredAt',_0x1c05f3=>this['_config']['formatDateTime'](_0x1c05f3))}]}]},{'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']&&_0x192d99['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':_0x192d99}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3e6caf,_0x162619,_0x5d7d22,_0x4e0b3b,_0x539853){const _0x18d49b=new _0x25c7bb(this['locale']);return _0x18d49b['set']({'label':_0x3e6caf,'icon':_0x162619,'tooltip':!0x0,'tooltipPosition':_0x539853}),_0x18d49b['extendTemplate']({'attributes':{'class':_0x5d7d22}}),_0x18d49b['on']('execute',()=>{this['fire'](_0x4e0b3b,this['_model']['id']);}),_0x18d49b;}['_setupKeyboardNavigation'](){const _0x231226=this['element'];this['keystrokes']['listenTo'](_0x231226);for(const _0x546e8a of this['focusables'])this['focusTracker']['add'](_0x546e8a['element']),this['keystrokes']['listenTo'](_0x546e8a['element']);this['keystrokes']['set']('enter',(_0x412ad1,_0x26a8b0)=>{_0x231226===_0x412ad1['target']&&(this['focusCycler']['focusFirst'](),_0x26a8b0());}),this['keystrokes']['set']('esc',(_0x290846,_0x397aa1)=>{_0x231226!==_0x290846['target']&&(this['focus'](),_0x397aa1());});}}class d extends _0x14dd54{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1818cf,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36488f){super(_0x36488f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4df44d=this['editor']['config'];_0x4df44d['define']('trackChanges.SuggestionThreadView',fe),_0x4df44d['define']('trackChanges.SuggestionView',we),_0x4df44d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4df44d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1c69ab,_0x32eac4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x27b51a,_0x2cf758]of this['_handleControllerBuffer']){const _0x51bf04=this['_suggestionToController']['has'](_0x27b51a);_0x51bf04||_0x2cf758?_0x51bf04&&_0x2cf758&&this['_destroyController'](_0x27b51a):this['_initializeController'](_0x27b51a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1c69ab,_0x32eac4);}['init'](){const _0x1eac54=this['editor'],_0x17ac63=_0x1eac54['plugins']['get']('TrackChangesEditing'),_0x186524=_0x1eac54['plugins']['get']('Annotations'),_0x38db6f=_0x1eac54['plugins']['get']('EditorAnnotations'),_0x35dcee=_0x1eac54['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x38db6f['addSourceCollector'](()=>{const _0x3fb4df=[];for(const [_0x20b560,_0xb9a619]of Array['from'](this['_suggestionToController'])){const _0x24fe47=_0x20b560['getAllAdjacentSuggestions'](),_0x200ae0=[];for(const _0x5466bd of _0x24fe47){if(!_0x5466bd['isInContent'])continue;if(_0x5466bd['isMultiRange']){_0x200ae0['push'](..._0x5466bd['getRanges']());continue;}const _0x38962d=_0x5466bd['getFirstRange']();if(_0x200ae0['length']>0x0){const _0x389b88=_0x200ae0[0x0]['getJoined'](_0x38962d);if(_0x389b88){_0x200ae0[0x0]=_0x389b88;continue;}}_0x200ae0['push'](_0x38962d);}_0x3fb4df['push']([_0xb9a619['view'],_0x200ae0]);}return _0x3fb4df;}),this['listenTo'](_0x17ac63,'suggestionLoaded',(_0x3f3763,_0x23174f)=>{this['listenTo'](_0x23174f,'change:previous',(_0x2abc94,_0x2844e8,_0x337a16,_0x1ccbd3)=>{_0x23174f['isInContent']&&(null==_0x337a16?(this['_updateController'](_0x1ccbd3['head']),this['_handleSuggestionControllerDelayed'](_0x23174f,!0x1)):(this['_updateController'](_0x337a16['head']),null==_0x1ccbd3&&this['_handleSuggestionControllerDelayed'](_0x23174f,!0x0)));}),null!==_0x23174f['previous']?this['_updateController'](_0x23174f['head']):this['_handleSuggestionControllerDelayed'](_0x23174f,!0x1);}),this['listenTo'](_0x17ac63,'suggestionUnloaded',(_0x1c5061,_0x1e39c4,_0x539461)=>{this['stopListening'](_0x1e39c4,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1e39c4),this['_suggestionToController']['has'](_0x1e39c4)&&this['_destroyController'](_0x1e39c4),_0x539461&&this['_updateController'](_0x539461['head']);}),this['listenTo'](_0x17ac63,'suggestionChanged',(_0x252ae1,_0x69e758)=>{this['_updateController'](_0x69e758);}),this['listenTo'](_0x186524,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x35dcee,'addComment',(_0x30b5e5,{threadId:_0x157d67,isFromAdapter:_0x21bd94})=>{if(_0x21bd94||!_0x17ac63['hasSuggestion'](_0x157d67))return;const _0x4519c9=_0x17ac63['getSuggestion'](_0x157d67);this['_suggestionToController']['get'](_0x4519c9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4d9c1c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37d1f6;for(const _0xd936e1 in _0x4d9c1c){const _0x8a306b=_0xd936e1,_0x25c2f3=_0x4d9c1c[_0x8a306b];if('trackChangesLicenseKeyValid'==_0x25c2f3||'trackChangesLicenseKeyInvalid'==_0x25c2f3||'trackChangesLicenseKeyExpired'==_0x25c2f3||'trackChangesLicenseKeyDomainLimit'==_0x25c2f3||'trackChangesLicenseKeyNotAllowed'==_0x25c2f3||'trackChangesLicenseKeyEvaluationLimit'==_0x25c2f3||'trackChangesLicenseKeyTrialLimit'==_0x25c2f3||'trackChangesLicenseKeyUsageLimit'==_0x25c2f3){delete _0x4d9c1c[_0x8a306b],_0x37d1f6=_0x25c2f3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x37d1f6&&_0x4d9c1c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x37d1f6&&_0x4d9c1c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x37d1f6&&_0x4d9c1c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x37d1f6&&_0x4d9c1c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x37d1f6&&_0x4d9c1c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x37d1f6&&_0x4d9c1c['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x37d1f6&&_0x4d9c1c['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x184c58=this['editor']['plugins']['get']('Annotations'),_0x5ebed6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c8ea0=Array['from'](_0x184c58['activeAnnotations'],_0x110c18=>_0x110c18['innerView'])['filter'](_0x30a0f5=>this['_viewToController']['has'](_0x30a0f5)),_0x468937=[];for(const _0x32b317 of _0x2c8ea0){const _0x2e1db2=this['_viewToController']['get'](_0x32b317)['model']['getAllAdjacentSuggestions']();_0x468937['push'](..._0x2e1db2['reduce']((_0x210759,_0x2de7fe)=>[..._0x210759,..._0x2de7fe['getMarkerNames']()],[]));}_0x5ebed6['activeMarkers']=_0x468937;}['_addUIComponentsToFactory'](){const _0x1d9a3a=this['editor'],_0x4c4fbe=_0x1d9a3a['locale'],_0xa8ebde=c(_0x4c4fbe,'Track\x20changes'),_0x3c728c=new _0x451fa8([{'type':'switchbutton','model':new _0x1b5db4({'withText':!0x0,'isToggleable':!0x0,'label':_0xa8ebde,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1b5db4({'withText':!0x0,'label':c(_0x4c4fbe,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b5db4({'withText':!0x0,'label':c(_0x4c4fbe,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b5db4({'withText':!0x0,'label':c(_0x4c4fbe,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b5db4({'withText':!0x0,'label':c(_0x4c4fbe,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1d9a3a['plugins']['has']('TrackChangesPreview')&&_0x3c728c['addMany']([{'type':'separator'},{'type':'button','model':new _0x1b5db4({'withText':!0x0,'label':c(_0x4c4fbe,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4eeacf of _0x3c728c)if(ke(_0x4eeacf)){const _0x4ca43d=_0x1d9a3a['commands']['get'](_0x4eeacf['model']['commandName']);_0x4eeacf['model']['bind']('isOn','isEnabled')['to'](_0x4ca43d,'value','isEnabled');}_0x1d9a3a['ui']['componentFactory']['add']('trackChanges',_0x4cd2b5=>this['_createToolbarButton'](_0x4cd2b5,_0x3c728c,_0xa8ebde)),_0x1d9a3a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x15e59a=>this['_createMenuBarMenu'](_0x15e59a,_0x3c728c,_0xa8ebde));}['_createToolbarButton'](_0x45da26,_0x70f6f6,_0x3579c8){const _0x56dba6=_0x4601f6(_0x45da26,_0x58e476),_0x3ea327=this['editor']['commands']['get']('trackChanges');_0x56dba6['buttonView']['set']({'tooltip':_0x3579c8,'label':_0x3579c8,'icon':_0x67738b}),_0x56dba6['buttonView']['bind']('isOn')['to'](_0x3ea327,'value'),_0x56dba6['buttonView']['on']('execute',()=>{_0x3ea327['execute'](),this['editor']['editing']['view']['focus']();}),_0x57a016(_0x56dba6,_0x70f6f6,{'role':'menu'});const _0x4dae68=[];for(const _0x40277f of _0x70f6f6)ke(_0x40277f)&&_0x4dae68['push'](this['editor']['commands']['get'](_0x40277f['model']['commandName']));const _0x4c2681=_0x56dba6['buttonView'];return _0x4c2681['actionView']['unbind']('isEnabled'),_0x4c2681['arrowView']['unbind']('isEnabled'),_0x4c2681['actionView']['bind']('isEnabled')['to'](_0x3ea327,'isEnabled'),_0x4c2681['arrowView']['bind']('isEnabled')['toMany'](_0x4dae68,'isEnabled',(..._0x117128)=>_0x117128['some'](_0x54389f=>_0x54389f)),_0x56dba6['on']('execute',_0x1d79ec=>{this['editor']['execute'](_0x1d79ec['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x56dba6;}['_createMenuBarMenu'](_0x5bff4d,_0x547d14,_0x47a795){const _0x4714a4=new _0x119290(_0x5bff4d),_0x366855=this['editor']['commands']['get']('trackChanges');_0x4714a4['buttonView']['set']({'label':_0x47a795,'icon':_0x67738b});const _0x5a8572=new _0x1993a3(_0x5bff4d);for(const _0x567594 of _0x547d14){if('separator'==_0x567594['type']){_0x5a8572['items']['add'](new _0x592e22(_0x5bff4d));continue;}const _0x4568cf=new _0x56e372(_0x5bff4d,_0x4714a4),_0x188732=new _0xf6f4cb(_0x5bff4d),_0x5887d0=_0x567594['model'];_0x188732['bind'](...Object['keys'](_0x5887d0))['to'](_0x5887d0),_0x188732['delegate']('execute')['to'](_0x4714a4),_0x188732['on']('execute',()=>{this['editor']['execute'](_0x5887d0['commandName']),this['editor']['editing']['view']['focus']();}),_0x4568cf['children']['add'](_0x188732),_0x5a8572['items']['add'](_0x4568cf);}return _0x4714a4['bind']('isEnabled')['to'](_0x366855,'isEnabled'),_0x4714a4['panelView']['children']['add'](_0x5a8572),_0x4714a4;}['_initializeController'](_0x1979af){const _0x17f844=this['editor'],_0x7682e7=_0x17f844['config'],_0x13299b=_0x17f844['plugins']['get']('Annotations'),_0xd9ee46=_0x17f844['plugins']['get']('CommentsRepository'),_0x427a3d=_0x17f844['plugins']['get']('EditorAnnotations'),_0x23645a=_0x17f844['plugins']['get'](_0x1818cf)['me'],_0x5f1c8c=_0x7682e7['get']('trackChanges')['SuggestionThreadView'],_0x34a753=_0x7682e7['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x28cfae,CommentThreadInputView:_0x27273a}=_0x17f844['plugins']['get']('CommentsUI');let _0x513310,_0x2d32e6,_0x1ed3b7;this['_annotationViews']['has'](_0x1979af['id'])?(_0x2d32e6=this['_annotationViews']['get'](_0x1979af['id']),_0x513310=_0x2d32e6['mainView']):(_0x513310=new _0x5f1c8c(_0x17f844['locale'],_0x1979af,_0x23645a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x7682e7['get']('comments.editorConfig'),'licenseKey':_0x7682e7['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x7682e7['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x7682e7['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x7682e7['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3d9217(_0x7682e7['get']('locale'),_0x17f844['locale']),'CommentView':_0x7682e7['get']('comments')['CommentView'],'CommentsListView':_0x28cfae,'CommentThreadInputView':_0x27273a,'SuggestionView':_0x34a753}),_0x513310['suggestionView']['acceptButton']['on']('execute',()=>{_0x17f844['editing']['view']['focus']();}),_0x513310['suggestionView']['discardButton']['on']('execute',()=>{_0x17f844['editing']['view']['focus']();}),_0x2d32e6=_0x13299b['createAnnotationView'](this['editor']['locale'],_0x513310),_0x2d32e6['bind']('isDirty')['to'](_0x513310,'isDirty'),_0x2d32e6['bind']('length')['to'](_0x513310),_0x2d32e6['bind']('type')['to'](_0x513310,'type',_0x50a1ac=>'suggestion-'+_0x50a1ac),_0x513310['on']('escape',()=>{_0x1ed3b7['fire']('escape');}),this['_annotationViews']['set'](_0x1979af['id'],_0x2d32e6));const _0x59148b=_0xd9ee46['createCommentThreadController'](_0x1979af['commentThread'],_0x513310),_0x5164b8=new pe(_0x17f844,_0x1979af,_0x513310,_0x59148b),_0x1afd23=_0x1979af['getAllAdjacentSuggestions']()['filter'](_0x314a11=>_0x314a11['isInContent']);_0x513310['descriptionParts']=_0x17f844['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1afd23),this['_suggestionToController']['set'](_0x1979af,_0x5164b8),this['_viewToController']['set'](_0x513310,_0x5164b8),_0x1ed3b7=_0x13299b['createAnnotation']({'view':_0x2d32e6,'target':()=>{const _0x2f29e5=[],_0x24120d=_0x1979af['getAllAdjacentSuggestions']()['filter'](_0x2bcf81=>_0x2bcf81['isInContent']);for(const _0x3473f7 of _0x24120d)_0x2f29e5['push'](..._0x3473f7['getMarkers']());return _0x1d920(_0x17f844['editing'],_0x2f29e5);},'type':()=>'suggestion-'+_0x5164b8['view']['type']}),_0xd9ee46['_bindAnnotationToEditors'](_0x513310,_0x1ed3b7),_0x13299b['add'](_0x1ed3b7),_0x427a3d['registerAnnotation'](_0x1ed3b7);}['_destroyController'](_0x77f44a){const _0x45209e=this['editor']['plugins']['get']('CommentsRepository'),_0x4299e4=this['editor']['plugins']['get']('Annotations'),_0x558a3c=this['_suggestionToController']['get'](_0x77f44a),_0x3a7a20=_0x558a3c['view'],_0x590a2b=_0x4299e4['getByInnerView'](_0x3a7a20);_0x45209e['_unbindEditors'](_0x3a7a20),_0x590a2b&&_0x4299e4['remove'](_0x590a2b),this['_suggestionToController']['delete'](_0x77f44a),this['_viewToController']['delete'](_0x3a7a20),_0x558a3c['destroy']();}['_updateController'](_0x37fb8f){if(!_0x37fb8f['isInContent']||!this['_suggestionToController']['has'](_0x37fb8f))return;const _0x20b503=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cc76c=this['_suggestionToController']['get'](_0x37fb8f),_0x2d0c7c=_0x37fb8f['getAllAdjacentSuggestions']();_0x5cc76c['view']['descriptionParts']=_0x20b503['descriptionFactory']['getDescriptions'](_0x2d0c7c);}['destroy'](){for(const _0x46fd41 of this['_suggestionToController']['keys']())this['_destroyController'](_0x46fd41);for(const _0x5c3654 of this['_annotationViews']['values']())_0x5c3654['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x508d9c){return'model'in _0x508d9c;}class k extends _0x14dd54{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x6dec46){this['editor']['plugins']['get'](p)['adapter']=_0x6dec46;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x226d64){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x226d64);}['getSuggestions']({skipNotAttached:_0x1ebc44=!0x1,toJSON:_0x4d2352=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1ebc44,'toJSON':_0x4d2352});}['getSuggestion'](_0x5d105e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5d105e);}}const w=['Pagination'];class T extends _0x14dd54{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x6aba14=this['editor'];if(_0x6aba14['config']['define']('trackChangesData.editorCreator',_0x2bbc8b=>{const _0x315cfd=_0x6aba14['model']['document']['getRootNames']()['reduce']((_0x1c393e,_0x52e334)=>(_0x1c393e[_0x52e334]='',_0x1c393e),{});return _0x6aba14['constructor']['create'](_0x315cfd,_0x2bbc8b);}),'function'!=typeof _0x6aba14['config']['get']('trackChangesData')['editorCreator'])throw new _0x59ef33('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x25c8e2){return N(this['editor'],!0x0,_0x25c8e2);}['getDataWithDiscardedSuggestions'](_0x2d97a9){return N(this['editor'],!0x1,_0x2d97a9);}}class D extends _0x14dd54{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x161b3c){function _0x29813e(_0x318e3d){return _0x318e3d['map'](_0xc02142=>String['fromCharCode'](_0xc02142))['join']('');}super(_0x161b3c),this['result']='end',_0x161b3c[_0x29813e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29813e([0x76,0x69,0x65,0x77])][_0x29813e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29813e([0x61,0x75,0x74,0x6f]),_0x161b3c[_0x29813e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x29813e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29813e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x29813e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x29813e([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x3cbc42){return void 0x0!==_0x3cbc42['getRootsAttributes'];}async function N(_0x100853,_0x349ccc,_0x60352e){const _0x322f1c=_0x4e11c7(_0x100853,w);_0x322f1c['plugins']['push'](p,D),_0x322f1c['rootsAttributes']=Ge(_0x100853)?_0x100853['getRootsAttributes']():void 0x0;const _0x3ff10b=document['createDocumentFragment'](),_0x39c52f=_0x100853['config']['get']('trackChangesData')['editorCreator'],_0x46de53=await _0x39c52f(_0x322f1c,()=>function(_0x1f5733){const _0x417b71=document['createElement']('div');return _0x1f5733['appendChild'](_0x417b71),_0x417b71;}(_0x3ff10b));!function(_0x221267,_0x4ca4b2){const _0x5a0bbc=_0x221267['model']['document']['getRootNames']()['reduce']((_0x298e2f,_0x2ba238)=>(_0x298e2f[_0x2ba238]=_0x221267['data']['get']({'rootName':_0x2ba238}),_0x298e2f),{}),_0x5cb9ea=_0x221267['plugins']['get']('Users')['users']['map'](_0x2b623e=>({'id':_0x2b623e['id'],'name':_0x2b623e['name']})),_0x34af15=_0x221267['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x59c2f7=_0x221267['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x31fbef=_0x4ca4b2['plugins']['get']('Users'),_0x359941=_0x4ca4b2['plugins']['get']('TrackChangesEditing'),_0x4fd26f=_0x4ca4b2['plugins']['get']('CommentsRepository');for(const _0x550111 of _0x4fd26f['getCommentThreads']())_0x550111['remove']();for(const _0x36aae5 of _0x5cb9ea)_0x31fbef['getUser'](_0x36aae5['id'])||_0x31fbef['addUser'](_0x36aae5);_0x31fbef['me']||_0x31fbef['useAnonymousUser']();for(const _0x28dcae of _0x59c2f7)_0x4fd26f['addCommentThread'](_0x28dcae);for(const _0x4ab056 of _0x34af15)_0x359941['addSuggestionData'](_0x4ab056);_0x4ca4b2['data']['set'](_0x5a0bbc);}(_0x100853,_0x46de53),_0x46de53['execute'](_0x349ccc?'acceptAllSuggestions':'discardAllSuggestions');const _0xb8ed71=Ge(_0x46de53)?_0x46de53['getFullData'](_0x60352e):_0x46de53['data']['get'](_0x60352e);return await _0x46de53['destroy'](),_0xb8ed71;}class Me extends _0x47e455{['options'];constructor(_0x5164aa,_0x52f680){super(_0x5164aa),this['options']=_0x52f680,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'](_0x1d0cd7,_0x23360e){if(!this['element'])return;const _0x294bbb=[];for(const [_0x1ec7c0,_0x3eb70c]of _0x1d0cd7){const _0x3d0b43=document['createElement']('div');_0x3d0b43['setAttribute']('data-ck-root-name',_0x1ec7c0),_0x3d0b43['className']=_0x3eb70c['classes']+'\x20ck-track-changes-preview__root-container',_0x3d0b43['innerHTML']=_0x3eb70c['content'],_0x294bbb['push'](_0x3d0b43);}_0x23360e(this['element'],_0x294bbb),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x23b441{constructor(_0x2cc02f){super(_0x2cc02f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x29e2ac=this['editor'],_0x38bada=_0x29e2ac['locale'],_0x42bf59=_0x29e2ac['plugins']['get']('Dialog');let _0x1d0ba5;const _0x11640e=function(_0x278f2f){const _0x1b0cf0={};if('editables'in _0x278f2f['ui']['view']){for(const [_0x411d8c,_0x348da8]of Object['entries'](_0x278f2f['ui']['view']['editables']))_0x1b0cf0[_0x411d8c]=_0x348da8['element'];}else _0x1b0cf0[_0x278f2f['model']['document']['getRootNames']()[0x0]]=_0x278f2f['ui']['view']['editable']['element'];return _0x1b0cf0;}(_0x29e2ac),_0x44f175=function(_0x3b63da){let _0x2771d4=0x0;for(const _0x46ffc3 of Object['values'](_0x3b63da))_0x2771d4=Math['max'](_0x2771d4,_0x46ffc3['getBoundingClientRect']()['width']);let _0x54fdef=0x0;for(const _0x24a349 of Object['values'](_0x3b63da))_0x54fdef+=_0x24a349['getBoundingClientRect']()['height'];const _0x3d45c8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x455745=Math['min'](_0x54fdef,_0x3d45c8);return{'width':_0x2771d4,'height':_0x455745};}(_0x11640e);_0x42bf59['show']({'id':'finalContentPreview','title':c(_0x38bada,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x38bada,{'dialogRects':_0x44f175}),'onHide':()=>{_0x1d0ba5['detachFromDom']();},'onShow':()=>{_0x29e2ac['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x89ffe=>{const _0x4c1d2c=this['_standarizeRootsData'](_0x89ffe,_0x29e2ac,_0x11640e);_0x42bf59['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4c1d2c,_0x29e2ac['config']['get']('trackChanges.preview.renderFunction'));}),_0x1d0ba5=new _0x345048(_0x38bada,[_0x42bf59['view']]),_0x1d0ba5['attachToDom'](),_0x1d0ba5['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x29e2ac['once']('destroy',()=>{_0x1d0ba5['detachFromDom']();});const _0x3da594=_0x42bf59['view']['headerView']['class'];_0x42bf59['view']['headerView']['class']=_0x3da594?_0x3da594+'\x20ck-reset_all':'ck-reset_all',_0x42bf59['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x42bf59['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x557b93=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x593b15=_0x557b93['previewMode'],_0x157bd8={};if('$labels'===_0x593b15){for(const _0x5e0798 of _0x557b93['getMergeFieldsIds']())_0x157bd8[_0x5e0798]=_0x557b93['getLabel'](_0x5e0798)||_0x5e0798;}else{const _0x4931e4='$defaultValues'===_0x593b15?_0x557b93['getDefaultValues']():_0x557b93['getDataSetValues'](_0x593b15,!0x0);for(const _0x362cf2 of Object['entries'](_0x4931e4)){const [_0x703853,_0x25dceb]=_0x362cf2;_0x157bd8[_0x703853]=null!==_0x25dceb?_0x25dceb:_0x557b93['getLabel'](_0x703853)||_0x703853;}}return{'mergeFieldsData':_0x157bd8};}['_standarizeRootsData'](_0x575aaf,_0x51ab2b,_0x4b0584){let _0x4540ec;if('string'==typeof _0x575aaf){const _0x3c620f=_0x51ab2b['model']['document']['getRootNames']()[0x0];_0x4540ec={[_0x3c620f]:_0x575aaf};}else _0x4540ec=_0x575aaf;const _0x44f020=this['_fixMediaEmbeds'](_0x4540ec,_0x51ab2b),_0x59ac46=function(_0x988a09,_0x278176){for(const [_0x4b6a98,_0x4f542c]of _0x988a09)_0x4f542c['classes']=_0x278176[_0x4b6a98]['classList']['value']['replace']('ck-focused','');return _0x988a09;}(this['_sortRoots'](_0x51ab2b)['reduce']((_0x5e7ac3,_0x4a4891)=>(_0x5e7ac3['push']([_0x4a4891,{'content':_0x44f020[_0x4a4891],'classes':''}]),_0x5e7ac3),[]),_0x4b0584);return _0x59ac46;}['_fixMediaEmbeds'](_0x2199d5,_0x591e39){if(!_0x591e39['plugins']['has']('MediaEmbedEditing'))return _0x2199d5;const _0x56ede5=_0x591e39['plugins']['get']('MediaEmbedEditing');for(const [_0x44231c,_0x2eba79]of Object['entries'](_0x2199d5)){const _0x27043e=document['createElement']('div');_0x27043e['innerHTML']=_0x2eba79,(_0x27043e['querySelectorAll']('figure.media')['forEach'](_0x14b2d7=>{const _0x2d22de=_0x14b2d7['querySelector']('oembed');if(_0x2d22de){const _0x346aa9=_0x2d22de['getAttribute']('url');if(_0x346aa9){const _0x5b5b9f=_0x56ede5['registry']['getMediaViewElement'](new _0x328234(_0x591e39['editing']['view']['document']),_0x346aa9,{'elementName':'','renderForEditingView':!0x0}),_0x33c7b3=document['createElement']('div');_0x33c7b3['classList']['add']('ck-media__wrapper'),_0x5b5b9f['render'](_0x33c7b3,_0x591e39['editing']['view']['domConverter']),_0x2d22de['replaceWith'](_0x33c7b3);}}}),_0x2199d5[_0x44231c]=_0x27043e['innerHTML']);}return _0x2199d5;}['_sortRoots'](_0x3b8a2f){if(!function(_0x5b1d0a){return void 0x0!==_0x5b1d0a['getRootsAttributes'];}(_0x3b8a2f))return _0x3b8a2f['model']['document']['getRootNames']();const _0x3da61d=[],_0x945082=new Map();for(const _0x332eea of _0x3b8a2f['model']['document']['getRootNames']()){const _0x84b0ff=_0x3b8a2f['editing']['view']['getDomRoot'](_0x332eea)['getClientRects']()['item'](0x0);_0x3da61d['push'](_0x332eea),_0x945082['set'](_0x332eea,_0x84b0ff);}return _0x3da61d['sort']((_0x3416d3,_0x1e919c)=>{const _0x3759a2=_0x945082['get'](_0x3416d3),_0x1e8147=_0x945082['get'](_0x1e919c);return _0x3759a2['y']-_0x1e8147['y']||_0x3759a2['x']-_0x1e8147['x'];}),_0x3da61d;}}class te extends _0x14dd54{static get['requires'](){return[T,_0x3591b3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37e8ef){super(_0x37e8ef),_0x37e8ef['commands']['add']('previewFinalContent',new re(this['editor'])),_0x37e8ef['config']['define']('trackChanges.preview.renderFunction',(_0x16cdc6,_0x593151)=>{for(const _0x16cfba of _0x593151)_0x16cdc6['appendChild'](_0x16cfba);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x1e86e5,Plugin as _0x577ae7,PendingActions as _0x5b2277}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3bf293,ObservableMixin as _0x4b5d5f,uid as _0x147536,priorities as _0x359a13,insertToPriorityArray as _0x298e16,toArray as _0x5894de,logWarning as _0x2257ec,getEnvKeystrokeText as _0x5670bc,FocusTracker as _0x5d45b2,KeystrokeHandler as _0x5b4e17,Collection as _0x2d3f2d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x42c957,IconCancel as _0x3172ec,IconTrackChanges as _0x263ea4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1a6ad8,View as _0x36af6d,ViewCollection as _0x3d953b,FocusCycler as _0x582a27,ViewModel as _0x41a0e2,createDropdown as _0x49273c,SplitButtonView as _0x4bcb62,addListToDropdown as _0x45854c,MenuBarMenuView as _0x34d256,MenuBarMenuListView as _0x1706ac,ListSeparatorView as _0x475808,MenuBarMenuListItemView as _0x359a6c,MenuBarMenuListItemButtonView as _0x94c5e9,BodyCollection as _0x45ffab,Dialog as _0x19d789}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x671950,hashObject as _0x39cd73,surroundingMarkersDetector as _0x41b32b,FOCUS_ANNOTATION_KEYSTROKE as _0x3938eb,AriaDescriptionView as _0x1c3831,setupThreadKeyboardNavigation as _0x29d324,trimHtml as ti,UserView as _0x46ccea,LateFocusButtonView as _0x51bdbf,getDateTimeFormatter as _0x49779c,getAllMarkersDomElementsSorted as _0x2a17b3,sanitizeEditorConfig as _0x4ffdbb}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x59b063,LiveRange as _0x3a5e87,LivePosition as _0x303748,DowncastWriter as _0x25b75f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x231675,toWidget as _0x185ea5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x27f738,set as _0x178863,isEqual as _0xe83722,unset as _0x359ae2,omit as Ft}from'es-toolkit/compat';import{Delete as _0x5c99b2,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x530fc1}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1a1079}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x1e86e5{['_enabledCommands'];constructor(_0x14c588,_0x25cc5f){super(_0x14c588),this['_enabledCommands']=_0x25cc5f,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 _0x28628c of this['editor']['commands']['commands']())_0x28628c['affectsData']&&!this['_enabledCommands']['has'](_0x28628c)&&_0x28628c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe40638 of this['editor']['commands']['commands']())_0xe40638['affectsData']&&!this['_enabledCommands']['has'](_0xe40638)&&_0xe40638['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x1e86e5{['_suggestions'];constructor(_0x2c6a43,_0x32cc39){super(_0x2c6a43),this['_suggestions']=_0x32cc39,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2717a1){const _0x56d898=this['_suggestions']['get'](_0x2717a1);if(!_0x56d898)throw new _0x3bf293('track-changes-accept-suggestion-not-found',this);const _0x5f2975=_0x56d898['getRanges']();this['editor']['model']['canEditAt'](_0x5f2975)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x56d898);}}class O extends _0x1e86e5{['_suggestions'];constructor(_0x3a92cb,_0x575ca2){super(_0x3a92cb),this['_suggestions']=_0x575ca2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5979b7){const _0x319d2c=this['_suggestions']['get'](_0x5979b7);if(!_0x319d2c)throw new _0x3bf293('track-changes-discard-suggestion-not-found',this);const _0x5a105b=_0x319d2c['getRanges']();this['editor']['model']['canEditAt'](_0x5a105b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x319d2c);}}function ls(_0x25d0a3,_0x741ad){let _0xe1ba3d='';return _0xe1ba3d+=_0x25d0a3['split']('*')['map']((_0x512ae2,_0x5c4344)=>_0x5c4344%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x512ae2)+'</span>':nn(_0x512ae2))['join'](''),_0x741ad&&(_0xe1ba3d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x741ad['value']+'\x22\x20title=\x22'+_0x741ad['title']+'\x22></span>'),_0xe1ba3d;}function nn(_0x283060){const _0x5bc0e2=document['createElement']('span');return _0x5bc0e2['innerText']=_0x283060,_0x5bc0e2['innerHTML'];}function ts(_0x63917f){return _0x63917f['sort']((_0x5b279f,_0x5f5add)=>'deletion'==_0x5b279f['type']&&'deletion'!=_0x5f5add['type']?-0x1:'deletion'!=_0x5b279f['type']&&'deletion'==_0x5f5add['type']?0x1:0x0);}function to(_0x329275,_0x3a7a56){let _0x5b2647,_0x339601=0x0;const _0x502831=[],_0x30090=_0x3a7a56['schema'];for(;_0x339601<_0x329275['length'];){const _0x249992=_0x329275[_0x339601],_0x1b8eec=_0x329275[_0x339601+0x1];_0x5b2647||(_0x5b2647=_0x3a7a56['createPositionBefore'](_0x249992)),on(_0x3a7a56,_0x249992,_0x1b8eec)||(_0x502831['push'](_0x3a7a56['createRange'](_0x5b2647,_0x30090['isObject'](_0x249992)?_0x3a7a56['createPositionAfter'](_0x249992):_0x3a7a56['createPositionAt'](_0x249992,'end'))),_0x5b2647=null),_0x339601++;}return _0x502831;}function on(_0x155d99,_0x297d6c,_0x358255){if(!_0x358255)return!0x1;const _0x18c789=_0x155d99['createPositionAfter'](_0x297d6c),_0x3c9ce0=_0x155d99['createPositionBefore'](_0x358255);return _0x18c789['isTouching'](_0x3c9ce0);}function rs(_0x5bc5e0,_0x71d519,_0x2e2875){for(;_0x2e2875['length'];){const _0x28cc25=_0x2e2875['splice'](0x0,0x64);_0x5bc5e0['change'](()=>{for(const _0x294938 of _0x28cc25)_0x294938['isInContent']&&_0x71d519['execute'](_0x294938['id']);});}}class R extends _0x1e86e5{['_command'];['_suggestions'];constructor(_0x22004,_0x270de6,_0xed9bee){super(_0x22004),this['_command']=_0x270de6,this['_suggestions']=_0xed9bee,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4e585f=Array['from'](this['_suggestions']['values']())['some'](_0x56ccec=>_0x56ccec['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4e585f;}['execute'](){const _0x15ad8a=ts(Array['from'](this['_suggestions']['values']()));for(const _0xa08e4c of _0x15ad8a){const _0x5c57f1=_0xa08e4c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c57f1))return;}rs(this['editor']['model'],this['_command'],_0x15ad8a);}}class E extends _0x1e86e5{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3c0f49,_0x8cad6c,_0x1d20de){super(_0x3c0f49),this['_command']=_0x8cad6c,this['_suggestions']=_0x1d20de,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x46bd7e=this['editor']['model']['document']['selection'],_0xa1f397=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x11eadf,_0x3d246f){const _0x2425a6=Array['from'](_0x11eadf['getRanges']()),_0x4e4f5a=new Set();for(const _0x12a43f of _0x3d246f)if(_0x12a43f['isInContent']){for(const _0xb348a4 of _0x2425a6)for(const _0x2154c0 of _0x12a43f['getRanges']())(_0xb348a4['isIntersecting'](_0x2154c0)||_0x11eadf['isCollapsed']&&!_0x12a43f['isMultiRange']&&_0x12a43f['next']&&_0x2154c0['end']['isTouching'](_0xb348a4['start']))&&_0x4e4f5a['add'](_0x12a43f);}return _0x4e4f5a;}(_0x46bd7e,_0xa1f397),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x401384=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3295f9 of _0x401384){const _0x4b5f0d=_0x3295f9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b5f0d))return;}rs(this['editor']['model'],this['_command'],_0x401384);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4b5d5f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2f862a,_0x1f97c0){super(),this['id']=_0x1f97c0['id'],this['type']=_0x1f97c0['type'],this['subType']=_0x1f97c0['subType']||null,this['author']=_0x1f97c0['author'],this['creator']=_0x1f97c0['creator']||_0x1f97c0['author'],this['isExternal']=Boolean(_0x1f97c0['attributes']&&_0x1f97c0['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1f97c0['originalSuggestionId']||null,this['_model']=_0x2f862a,this['_onAccept']=_0x1f97c0['onAccept'],this['_onDiscard']=_0x1f97c0['onDiscard'],this['_onAttributesChange']=_0x1f97c0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1f97c0['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 _0x2d9610=this;for(;_0x2d9610['previous'];)_0x2d9610=_0x2d9610['previous'];return _0x2d9610;}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'](_0x43e724){this['_markerNames']['add'](_0x43e724);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x470b58=>this['_model']['markers']['get'](_0x470b58))['filter'](_0x1d93dc=>_0x1d93dc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x22ca54=>{for(const _0x45d212 of this['getMarkers']())_0x22ca54['removeMarker'](_0x45d212);}),this['_markerNames']['clear']();}['removeMarker'](_0x5e87f4){this['_model']['change'](_0x535b6e=>{_0x535b6e['removeMarker'](_0x5e87f4);}),this['_markerNames']['delete'](_0x5e87f4);}['addRange'](_0x2e39a7){const _0x1ee3ed='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1ee3ed),this['_model']['change'](_0x1db5d8=>{_0x1db5d8['addMarker'](_0x1ee3ed,{'range':_0x2e39a7,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x416933){for(const _0x12b84d of this['getRanges']())if(_0x12b84d['isIntersecting'](_0x416933))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x434c72=>_0x434c72['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4c03f3,_0x30c253)=>[..._0x4c03f3,..._0x30c253['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3df1bc=this['getRanges']();if(0x1!=_0x3df1bc['length'])return null;const _0x303316=_0x3df1bc[0x0],_0x20ca08=_0x303316['start']['nodeAfter'],_0x2610ce=_0x303316['end']['nodeBefore'];return _0x20ca08 instanceof _0x59b063?_0x20ca08!=_0x2610ce?null:_0x20ca08: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 _0x216136=[];let _0x2dd61c=this['head'];for(;_0x2dd61c;)_0x216136['push'](_0x2dd61c),_0x2dd61c=_0x2dd61c['next'];return _0x216136;}['setAttribute'](_0x1234be,_0x431973){const _0x1e04e8=_0x27f738(this['attributes']);_0x178863(_0x1e04e8,_0x1234be,_0x431973),_0xe83722(_0x1e04e8,this['attributes'])||(this['attributes']=_0x1e04e8,this['_onAttributesChange'](_0x1e04e8));}['removeAttribute'](_0x229aae){const _0x16f4a4=_0x27f738(this['attributes']);_0x359ae2(_0x16f4a4,_0x229aae),_0xe83722(_0x16f4a4,this['attributes'])||(this['attributes']=_0x16f4a4,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 _0x147536()['substr'](0x1,0x5);}}function c(_0xec919f,_0x3ff208,_0x5d693c){const _0x496427=_0xec919f['t'],t=_0xec919f['t'];switch(_0x3ff208){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',_0x5d693c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5d693c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5d693c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5d693c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5d693c);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',_0x5d693c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5d693c);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',_0x5d693c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5d693c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5d693c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5d693c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5d693c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5d693c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5d693c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5d693c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5d693c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5d693c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5d693c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5d693c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5d693c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5d693c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5d693c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5d693c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5d693c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5d693c);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'},_0x5d693c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5d693c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5d693c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5d693c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5d693c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5d693c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5d693c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5d693c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5d693c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5d693c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5d693c);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'},_0x5d693c);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5d693c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5d693c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5d693c);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 _0x496427({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5d693c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x496427({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5d693c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5d693c);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'},_0x5d693c);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'},_0x5d693c);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'},_0x5d693c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3ff208;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x107d3d,_0x3f2f01){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x107d3d,this['_locale']=_0x3f2f01;}['getDescriptions'](_0x447f4c){const _0x43a2f9=[],_0x180834=new Set(),_0x3db9b7=new Set();for(let _0xd2e39e=0x0;_0xd2e39e<_0x447f4c['length'];_0xd2e39e++){const _0x2be7ca=_0x447f4c[_0xd2e39e];if(!_0x2be7ca['isInContent'])continue;const _0xb56d76=this['_handleCustomCallbackDescription'](_0x2be7ca);if(_0xb56d76){if(null!=_0x2be7ca['subType']){if(_0x180834['has'](_0x2be7ca['subType']))continue;_0x180834['add'](_0x2be7ca['subType']);}_0x43a2f9['push'](_0xb56d76);}else{if('attribute'!=_0x2be7ca['type'])'insertion'!=_0x2be7ca['type']&&'deletion'!=_0x2be7ca['type']||this['_handleInsertRemoveSuggestionDescription'](_0x43a2f9,_0x2be7ca,_0x447f4c[_0xd2e39e+0x1]);else{const _0x13c8f8=_0x2be7ca['data']['key'];if(_0x3db9b7['has'](_0x13c8f8))continue;_0x3db9b7['add'](_0x2be7ca['data']['key']),_0x13c8f8==u?this['_handleRenameSuggestionDescription'](_0x43a2f9,_0x2be7ca):this['_handleAttributeSuggestionDescription'](_0x43a2f9,_0x2be7ca);}}}return this['_resolveDescriptionItems'](_0x43a2f9);}['registerDescriptionCallback'](_0x145ae6){this['_customCallbacks']['push'](_0x145ae6);}['registerElementLabel'](_0x374ce2,_0x1fb142,_0x589e10=_0x359a13['normal']){'function'==typeof _0x374ce2?_0x298e16(this['_itemLabelsCallbacks'],{'matchingCallback':_0x374ce2,'label':_0x1fb142,'priority':_0x589e10}):this['_itemLabels']['set'](_0x374ce2,_0x1fb142);}['registerAttributeLabel'](_0x52d5bd,_0x1d0e6b){this['_attributeLabels']['set'](_0x52d5bd,_0x1d0e6b);}['getItemLabel'](_0x328a5f,_0x4a64d8=0x1){let _0x1f001f;for(const _0x61d669 of this['_itemLabelsCallbacks'])if(_0x61d669['matchingCallback'](_0x328a5f)){_0x1f001f=_0x61d669['label'];break;}return _0x1f001f||(_0x1f001f=this['_itemLabels']['get'](_0x328a5f['name'])),_0x1f001f?_0x1f001f(_0x4a64d8):0x1!==_0x4a64d8?_0x4a64d8+'\x20'+_0x328a5f['name']+'s':''+_0x328a5f['name'];}['_addDescriptionItems'](_0x3b03e1,_0x264826){const _0x226430=_0x264826['getFirstRange']()['getWalker'](),_0x4b4188='insertion'==_0x264826['type']?'add':'remove';for(const _0x3c141c of _0x226430){const _0x29b6dd=_0x3c141c['item'],_0x870240=_0x3b03e1[_0x3b03e1['length']-0x1];if(_0x29b6dd['is']('$textProxy'))_0x870240&&_0x870240['type']['indexOf']('Container')>-0x1&&_0x3b03e1['pop'](),_0x870240&&'text'==_0x870240['type']?_0x870240[_0x4b4188]+=_0x29b6dd['data']:_0x3b03e1['push']({'type':'text','add':'add'==_0x4b4188?_0x29b6dd['data']:'','remove':'remove'==_0x4b4188?_0x29b6dd['data']:''});else{if(this['_schema']['isObject'](_0x29b6dd)){const _0x344ea1=_0x29b6dd;if(_0x870240&&_0x870240['type']['indexOf']('Container')>-0x1&&_0x3b03e1['pop'](),'elementEnd'==_0x3c141c['type'])continue;_0x870240&&_0x870240['type']==_0x4b4188+'Object'&&_0x870240['element']['name']==_0x344ea1['name']?_0x870240['quantity']++:_0x3b03e1['push']({'type':_0x4b4188+'Object','element':_0x344ea1,'quantity':0x1}),_0x226430['skip'](_0x590006=>!('elementEnd'==_0x590006['type']&&_0x590006['item']==_0x29b6dd));}else{if(this['_schema']['checkChild'](_0x29b6dd,'$text')||_0x29b6dd['is']('element','softBreak')){const _0x3dbb09=_0x29b6dd;if('add'==_0x4b4188&&'elementStart'==_0x3c141c['type']||'remove'==_0x4b4188&&'elementEnd'==_0x3c141c['type'])continue;if(_0x870240&&-0x1==_0x870240['type']['indexOf']('Container')){'text'==_0x870240['type']&&(_0x870240[_0x4b4188]+='\x0a');continue;}let _0x438a93;if(_0x438a93='add'==_0x4b4188?_0x3dbb09['nextSibling']&&!this['_schema']['isObject'](_0x3dbb09['nextSibling'])?_0x3dbb09['nextSibling']:null:_0x3dbb09['previousSibling']&&!this['_schema']['isObject'](_0x3dbb09['previousSibling'])?_0x3dbb09['previousSibling']:null,_0x3dbb09['isEmpty']||_0x438a93&&_0x438a93['isEmpty']){const _0x24e6cb=_0x438a93&&_0x438a93['isEmpty']?_0x438a93:_0x3dbb09;_0x870240&&_0x870240['type']==_0x4b4188+'EmptyContainer'&&_0x870240['element']['name']==_0x24e6cb['name']?_0x870240['quantity']++:_0x3b03e1['push']({'type':_0x4b4188+'EmptyContainer','element':_0x24e6cb,'quantity':0x1});}else _0x3b03e1['push']({'type':_0x4b4188+'Container','element':_0x3dbb09});}}}}}['_resolveDescriptionItems'](_0x8a2212){const _0x4e24e8=this['_locale'],_0x5450d1=[],_0x1167b9=[],_0x13b2ab=[];for(const _0x283f56 of _0x8a2212)switch(_0x283f56['type']){case'text':if(_0x283f56['add']=_0x283f56['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x283f56['remove']=_0x283f56['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x283f56['add']&&''!=_0x283f56['remove']){_0x5450d1['push']({'type':'replace','content':c(_0x4e24e8,'REPLACE_TEXT',['\x22'+_0x283f56['remove']+'\x22','\x22'+_0x283f56['add']+'\x22'])});continue;}if(null!=_0x283f56['add']['match'](/^ +$/)){_0x5450d1['push']({'type':'insertion','content':c(_0x4e24e8,'*Insert:*\x20%0',c(_0x4e24e8,'ELEMENT_SPACE',_0x283f56['add']['length']))});continue;}if(null!=_0x283f56['remove']['match'](/^ +$/)){_0x5450d1['push']({'type':'deletion','content':c(_0x4e24e8,'*Remove:*\x20%0',c(_0x4e24e8,'ELEMENT_SPACE',_0x283f56['remove']['length']))});continue;}if(''!=_0x283f56['add']){_0x5450d1['push']({'type':'insertion','content':c(_0x4e24e8,'*Insert:*\x20%0','\x22'+_0x283f56['add']+'\x22')});continue;}_0x5450d1['push']({'type':'deletion','content':c(_0x4e24e8,'*Remove:*\x20%0','\x22'+_0x283f56['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5450d1['push']({'type':'insertion','content':c(_0x4e24e8,'*Insert:*\x20%0',this['getItemLabel'](_0x283f56['element'],_0x283f56['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5450d1['push']({'type':'deletion','content':c(_0x4e24e8,'*Remove:*\x20%0',this['getItemLabel'](_0x283f56['element'],_0x283f56['quantity']))});continue;case'addContainer':_0x5450d1['push']({'type':'insertion','content':c(_0x4e24e8,'*Split:*\x20%0',this['getItemLabel'](_0x283f56['element'],_0x283f56['quantity']))});continue;case'removeContainer':_0x5450d1['push']({'type':'deletion','content':c(_0x4e24e8,'*Merge:*\x20%0',this['getItemLabel'](_0x283f56['element'],_0x283f56['quantity']))});continue;case'addFormat':_0x1167b9['push'](_0x283f56['key']);continue;case'removeFormat':_0x13b2ab['push'](_0x283f56['key']);continue;default:_0x5450d1['push'](_0x283f56);}if(_0x1167b9['length']){const _0x374d6a=_0x1167b9['map'](_0x4c1eec=>this['_attributeLabels']['has'](_0x4c1eec)?this['_attributeLabels']['get'](_0x4c1eec):_0x4c1eec)['join'](',\x20');_0x5450d1['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x374d6a)});}if(_0x13b2ab['length']){const _0x547beb=_0x13b2ab['map'](_0x195603=>this['_attributeLabels']['has'](_0x195603)?this['_attributeLabels']['get'](_0x195603):_0x195603)['join'](',\x20');_0x5450d1['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x547beb)});}return _0x5450d1;}['_handleCustomCallbackDescription'](_0x34a698){for(const _0x2572cd of this['_customCallbacks']){const _0x228266=_0x2572cd(_0x34a698);if(_0x228266&&'type'in _0x228266)return _0x228266;}}['_handleAttributeSuggestionDescription'](_0x1d381e,_0x208416){const _0x3a2582=_0x208416['data'],_0xaa9855=void 0x0===_0x3a2582['newValue']?'removeFormat':'addFormat';_0x1d381e['push']({'type':_0xaa9855,'key':_0x3a2582['key']});}['_handleRenameSuggestionDescription'](_0x172ba4,_0x534db0){_0x172ba4['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x534db0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x597dfd,_0x49842e,_0xded55f){if(this['_addDescriptionItems'](_0x597dfd,_0x49842e),_0xded55f&&_0xded55f['getFirstRange']()&&!_0x49842e['getFirstRange']()['end']['isEqual'](_0xded55f['getFirstRange']()['start'])){const _0x5f4732=_0x597dfd[_0x597dfd['length']-0x1],_0x389d86='insertion'==_0x49842e['type']?'add':'remove';_0x5f4732&&'text'==_0x5f4732['type']&&(_0x5f4732[_0x389d86]+='\x0a');}}}class U extends _0x577ae7{['afterInit'](){const _0x1333bb=this['editor'],_0x1a0795=_0x1333bb['plugins']['get']('TrackChangesEditing');_0x1333bb['commands']['get']('showAIAssistant')&&_0x1a0795['enableCommand']('showAIAssistant');}}class V extends _0x577ae7{['afterInit'](){const _0x557280=this['editor'],_0xec852d=_0x557280['locale'];if(!_0x557280['plugins']['has']('AlignmentEditing'))return;const _0x41e2c6=_0x557280['plugins']['get']('TrackChangesEditing');_0x41e2c6['enableDefaultAttributesIntegration']('alignment'),_0x41e2c6['registerBlockAttribute']('alignment'),_0x41e2c6['descriptionFactory']['registerAttributeLabel']('alignment',c(_0xec852d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a9a5b=this['editor'],_0x5a5be3=_0x5a9a5b['locale'];_0x5a9a5b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56c3b5=>{if('formatBlock'!=_0x56c3b5['type'])return;const {data:_0x1afbe1}=_0x56c3b5;if(_0x1afbe1&&'alignment'==_0x1afbe1['commandName']){const _0x4e131a=_0x1afbe1['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x5a5be3,'*Format:*\x20%0',function(_0x5c3a6){switch(_0x5c3a6){case'left':return c(_0x5a5be3,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x5a5be3,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x5a5be3,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x5a5be3,'FORMAT_JUSTIFY_TEXT');}}(_0x4e131a))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x577ae7{['afterInit'](){const _0x3ba60b=this['editor'],_0x250b3b=_0x3ba60b['plugins']['get']('TrackChangesEditing'),_0x51a983=_0x3ba60b['locale'];for(const _0x123971 of Zt){if(!_0x3ba60b['plugins']['has'](_0x123971))continue;const _0x15c958=_0x123971['slice'](0x0,-0x7)['toLowerCase'](),_0x2e6fb2='FORMAT_'+_0x15c958['toUpperCase']();_0x250b3b['enableDefaultAttributesIntegration'](_0x15c958),_0x250b3b['registerInlineAttribute'](_0x15c958),_0x250b3b['descriptionFactory']['registerAttributeLabel'](_0x15c958,c(_0x51a983,_0x2e6fb2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21d6b9=this['editor'],_0x37dfd1=_0x21d6b9['locale'],_0xd7c69d=_0x21d6b9['plugins']['get']('TrackChangesEditing');function _0x2af864(_0x3b76ab,_0x45be6a){_0xd7c69d['descriptionFactory']['registerDescriptionCallback'](_0x55d64b=>{if('formatInline'!=_0x55d64b['type'])return;const {data:_0x34ca1d}=_0x55d64b;return _0x34ca1d&&_0x34ca1d['commandName']===_0x3b76ab?_0x34ca1d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x37dfd1,'*Format:*\x20%0',_0x45be6a)}:{'type':'format','content':c(_0x37dfd1,'*Remove\x20format:*\x20%0',_0x45be6a)}:void 0x0;});}_0x2af864('bold',c(_0x37dfd1,'FORMAT_BOLD')),_0x2af864('italic',c(_0x37dfd1,'FORMAT_ITALIC')),_0x2af864('underline',c(_0x37dfd1,'FORMAT_UNDERLINE')),_0x2af864('code',c(_0x37dfd1,'FORMAT_CODE')),_0x2af864('strikethrough',c(_0x37dfd1,'FORMAT_STRIKETHROUGH')),_0x2af864('subscript',c(_0x37dfd1,'FORMAT_SUBSCRIPT')),_0x2af864('superscript',c(_0x37dfd1,'FORMAT_SUPERSCRIPT'));}}class G extends _0x577ae7{['afterInit'](){const _0x5d321b=this['editor'],_0x29bf56=_0x5d321b['locale'];if(!_0x5d321b['plugins']['has']('BlockQuoteEditing'))return;const _0x9d84ac=_0x5d321b['plugins']['get']('TrackChangesEditing'),_0x1a6cb5=this['editor']['commands']['get']('blockQuote');_0x9d84ac['enableCommand']('blockQuote',(_0x5726a1,_0x82cf2f={})=>{const _0x4e0c88=this['editor']['model']['document']['selection'],_0xc5f788=_0x82cf2f&&void 0x0!==_0x82cf2f['forceValue']?_0x82cf2f['forceValue']:!_0x1a6cb5['value'];let _0x3cd731=[];if(_0xc5f788){const _0x3e7034=Array['from'](_0x4e0c88['getSelectedBlocks']())['filter'](_0x2b7bd8=>oo(_0x2b7bd8)||function(_0x3c8392,_0x48cc06){const _0x524e6f=_0x48cc06['checkChild'](_0x3c8392['parent'],'blockQuote'),_0x3eedbc=_0x48cc06['checkChild'](['$root','blockQuote'],_0x3c8392);return _0x524e6f&&_0x3eedbc;}(_0x2b7bd8,this['editor']['model']['schema']));_0x3cd731=to(_0x3e7034,_0x5d321b['model']);}else{const _0x36f02f=Array['from'](_0x4e0c88['getSelectedBlocks']())['filter'](_0x107283=>oo(_0x107283));_0x3cd731=to(_0x36f02f,_0x5d321b['model']);}_0x5d321b['model']['change'](()=>{for(const _0x181653 of _0x3cd731)_0x9d84ac['markBlockFormat'](_0x181653,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xc5f788}]});});}),_0x9d84ac['descriptionFactory']['registerDescriptionCallback'](_0xdea76b=>{const {data:_0x24fddd}=_0xdea76b;if(_0x24fddd&&'blockQuote'==_0x24fddd['commandName']){const _0x367e18=c(_0x29bf56,'ELEMENT_BLOCK_QUOTE');return _0x24fddd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x29bf56,'*Set\x20format:*\x20%0',_0x367e18)}:{'type':'format','content':c(_0x29bf56,'*Remove\x20format:*\x20%0',_0x367e18)};}});}}function oo(_0x4e266c){return'blockQuote'==_0x4e266c['parent']['name'];}class L extends _0x577ae7{['afterInit'](){const _0x3d5cb5=this['editor'],_0x3dc3f9=_0x3d5cb5['locale'],_0x1a5919=_0x3d5cb5['plugins']['get']('TrackChangesEditing');_0x3d5cb5['plugins']['has']('BookmarkEditing')&&(_0x1a5919['enableCommand']('insertBookmark'),_0x1a5919['enableDefaultAttributesIntegration']('updateBookmark'),_0x1a5919['registerBlockAttribute']('bookmarkId'),_0x1a5919['descriptionFactory']['registerDescriptionCallback'](_0x5b1612=>{if('insertion'!=_0x5b1612['type']&&'deletion'!=_0x5b1612['type']&&'attribute'!=_0x5b1612['type'])return;const _0xdef4ed=_0x5b1612['getContainedElement']();if(null==_0xdef4ed)return;if(!_0xdef4ed['is']('element','bookmark'))return;const _0x33944f=_0xdef4ed['getAttribute']('bookmarkId');if('insertion'==_0x5b1612['type'])return{'type':'insertion','content':c(_0x3dc3f9,'*Insert:*\x20%0','\x22'+_0x33944f+'\x22\x20'+c(_0x3dc3f9,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5b1612['type'])return{'type':'deletion','content':c(_0x3dc3f9,'*Remove:*\x20%0','\x22'+_0x33944f+'\x22\x20'+c(_0x3dc3f9,'ELEMENT_BOOKMARK'))};const {data:_0x3d14d4}=_0x5b1612;if(!_0x3d14d4||'bookmarkId'!=_0x3d14d4['key'])return;return{'type':'format','content':c(_0x3dc3f9,'*Set\x20bookmark:*\x20%0','\x22'+_0x3d14d4['newValue']+'\x22')};}));}}class J extends _0x577ae7{['afterInit'](){const _0x25aa7d=this['editor'];_0x25aa7d['plugins']['has']('CaseChange')&&(_0x25aa7d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x25aa7d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x25aa7d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x577ae7{['afterInit'](){const _0x5d2240=this['editor'];_0x5d2240['commands']['get']('ckbox')&&_0x5d2240['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x577ae7{['afterInit'](){const _0x4da2ec=this['editor'];if(!_0x4da2ec['plugins']['has']('CodeBlock'))return;const _0x2f6da1=_0x4da2ec['plugins']['get']('TrackChangesEditing'),_0x250b04=_0x4da2ec['locale'],_0x60c1db=_0x4da2ec['config']['get']('codeBlock')['languages'],_0x1e58eb=_0x4da2ec['commands']['get']('codeBlock');_0x2f6da1['enableCommand']('indentCodeBlock'),_0x2f6da1['enableCommand']('outdentCodeBlock'),_0x2f6da1['enableCommand']('codeBlock',(_0x2f7ad6,_0x3b03e5={})=>{const _0xf8ded7=_0x4da2ec['model'],_0x1f5206=_0x4da2ec['model']['document']['selection'],_0x3de7d8=_0x3b03e5&&void 0x0!==_0x3b03e5['forceValue']?_0x3b03e5['forceValue']:!_0x1e58eb['value'];let _0x2f9457;_0x3b03e5['language']||(_0x3b03e5['language']=_0x60c1db[0x0]['language']),_0x2f9457=_0x3de7d8?Array['from'](_0x1f5206['getSelectedBlocks']())['filter'](_0x4a5742=>eo(_0x4a5742)||function(_0x26649a,_0xecaa2a){if(_0x26649a['is']('rootElement')||_0xecaa2a['isLimit'](_0x26649a))return!0x1;return _0xecaa2a['checkChild'](_0x26649a['parent'],'codeBlock');}(_0x4a5742,_0xf8ded7['schema'])):Array['from'](_0x1f5206['getSelectedBlocks']())['filter'](_0x1ace0b=>eo(_0x1ace0b));const _0x2b756a=to(_0x2f9457,_0xf8ded7);_0xf8ded7['change'](()=>{for(const _0x26cbfd of _0x2b756a)_0x2f6da1['markBlockFormat'](_0x26cbfd,{'commandName':'codeBlock','commandParams':[{..._0x3b03e5,'forceValue':_0x3de7d8}],'formatGroupId':'blockName'});});}),(_0x2f6da1['descriptionFactory']['registerElementLabel']('codeBlock',_0x273f4c=>c(_0x250b04,'ELEMENT_CODE_BLOCK',_0x273f4c)),_0x2f6da1['descriptionFactory']['registerDescriptionCallback'](_0x491d1b=>{if('formatBlock'!=_0x491d1b['type'])return;const _0x4abaf0=_0x250b04['t'],{data:_0x4d89c6}=_0x491d1b;if(!_0x4d89c6||'codeBlock'!=_0x4d89c6['commandName'])return;const _0x1866d8=_0x4d89c6['commandParams'][0x0]['language'],_0x36828d=_0x4abaf0(_0x60c1db['find'](_0x1596ae=>_0x1596ae['language']===_0x1866d8)['label'])['toLowerCase']();return _0x4d89c6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x250b04,'*Set\x20format:*\x20%0',c(_0x250b04,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x36828d+')')}:{'type':'format','content':c(_0x250b04,'*Remove\x20format:*\x20%0',c(_0x250b04,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x34fdb0){return'codeBlock'==_0x34fdb0['name'];}class q extends _0x577ae7{['afterInit'](){const _0x2ead1f=this['editor'];if(!_0x2ead1f['plugins']['has']('CommentsEditing'))return;_0x2ead1f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x28dfb2,_0x514be6,_0x241703){const _0x40707d=[];for(const _0x12c998 of _0x514be6['getItems']())_0x12c998['hasAttribute'](_0x28dfb2)&&_0x40707d['push'](_0x241703['createRangeOn'](_0x12c998));return _0x40707d;}function Fe(_0x4e1919,_0x4617e5,{showActiveMarker:_0x1f848d=!0x0}={}){const _0x201816=_0x4e1919['plugins']['get']('TrackChangesEditing');return(_0x6f8413,_0x4062b4,_0x5d6ac3)=>{if(!_0x5d6ac3['consumable']['test'](_0x4062b4['markerRange'],_0x6f8413['name']))return;const _0x3fe3e4=_0x4062b4['markerRange']['getWalker'](),_0x1dfd15=_0x4062b4['markerRange']['start'],_0x379231=_0x4e1919['model']['schema'];let _0x540d58=null,_0x5a7eb1=null,_0x91267f=!0x1,_0x19e4df=!0x1;for(const _0x1730e0 of _0x3fe3e4){const _0x252b50=_0x1730e0['item'];_0x91267f=_0x91267f||_0x379231['isContent'](_0x252b50);const _0xbb234e=_0x5d6ac3['mapper']['toViewElement'](_0x252b50);if(_0xbb234e&&_0xbb234e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1730e0['type']&&(_0x379231['isBlock'](_0x252b50)&&!_0x379231['isLimit'](_0x252b50)&&(_0x252b50['nextSibling']||_0x1dfd15['isAtEnd']?_0x540d58&&_0x540d58['parent']==_0x252b50||(_0x540d58=_0x252b50,_0x229a01(_0x1730e0['previousPosition']),_0x19e4df=!0x0):_0x5a7eb1=_0x5a7eb1||_0x1730e0['previousPosition']));}function _0x229a01(_0x1c5dd6){const {id:_0x123573,authorId:_0x53e571}=_0x201816['_splitMarkerName'](_0x4062b4['markerName']),_0x3024bb=_0x5d6ac3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4617e5,'data-suggestion':_0x123573,'data-author-id':_0x53e571}),_0x45a22e=_0x5d6ac3['mapper']['toViewPosition'](_0x1c5dd6);_0x1f848d&&_0x201816['activeMarkers']['includes'](_0x4062b4['markerName'])&&_0x5d6ac3['writer']['addClass']('ck-suggestion-marker--active',_0x3024bb),_0x5d6ac3['writer']['insert'](_0x45a22e,_0x3024bb),_0x5d6ac3['mapper']['bindElementToMarker'](_0x3024bb,_0x4062b4['markerName']);}_0x91267f||_0x19e4df||!_0x5a7eb1||_0x229a01(_0x5a7eb1);};}class z extends _0x577ae7{static get['requires'](){return[_0x5c99b2];}['init'](){const _0x236b80=this['editor'],_0x3ebadc=_0x236b80['plugins']['get']('TrackChangesEditing');_0x3ebadc['enableCommand']('delete');const _0x5c0506=_0x236b80['commands']['get']('deleteForward');_0x3ebadc['enableCommand']('deleteForward',(_0x288142,_0x3da074={})=>{const _0x2e86b4=_0x236b80['model']['createSelection'](_0x236b80['model']['document']['selection']);_0x2e86b4['isCollapsed']&&_0x236b80['model']['modifySelection'](_0x2e86b4,{'direction':'forward','unit':_0x3da074['unit']});const _0x19eea5=_0x2e86b4['getFirstRange'](),_0x4f1c46=_0x3a5e87['fromRange'](_0x19eea5);let _0x3f4861;_0x288142(_0x3da074),_0x3f4861='$graveyard'==_0x4f1c46['root']['rootName']?_0x236b80['model']['createRange'](_0x19eea5['start']):_0x236b80['model']['createRange'](_0x4f1c46['start'],_0x4f1c46['end']),_0x4f1c46['detach'](),_0x236b80['model']['enqueueChange'](_0x5c0506['buffer']['batch'],_0x38b3b7=>{_0x5c0506['buffer']['lock'](),_0x38b3b7['setSelection'](_0x38b3b7['createRange'](_0x3f4861['end'])),_0x5c0506['buffer']['unlock']();});}),_0x236b80['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x236b80,'merge'),{'priority':'high'}),_0x236b80['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x53f76f,_0x30b426,_0x45888f)=>{_0x45888f['options']['showSuggestionHighlights']&&Fe(_0x236b80,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x53f76f,_0x30b426,_0x45888f);},{'priority':'high'}),_0x236b80['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x113a99,_0x59996d,_0x2fce2c)=>{const _0x50a5ef=_0x2fce2c['mapper']['markerNameToElements'](_0x59996d['markerName']);if(_0x50a5ef){for(const _0x397976 of _0x50a5ef)_0x397976['is']('uiElement')&&(_0x2fce2c['mapper']['unbindElementFromMarkerName'](_0x397976,_0x59996d['markerName']),_0x2fce2c['writer']['remove'](_0x397976));}},{'priority':'high'});}}class W extends _0x577ae7{['afterInit'](){const _0x5947a=this['editor'];if(!_0x5947a['plugins']['has']('ListEditing'))return;const _0x2c3729=_0x5947a['locale'],_0x2ac062=_0x5947a['plugins']['get']('TrackChangesEditing'),_0x504352=_0x5947a['plugins']['has']('TodoListEditing'),_0x58f564=!!_0x5947a['config']['get']('list.multiBlock');function _0x351338(_0x5bfcef){return{'type':'format','content':''+c(_0x2c3729,'*Set\x20format:*\x20%0',_0x5bfcef)};}function _0x18e5bd(_0x1768c0){return{'type':'format','content':''+c(_0x2c3729,'*Remove\x20format:*\x20%0',_0x1768c0)};}_0x2ac062['enableDefaultAttributesIntegration']('numberedList'),_0x2ac062['enableDefaultAttributesIntegration']('bulletedList'),_0x2ac062['enableDefaultAttributesIntegration']('customNumberedList'),_0x2ac062['enableDefaultAttributesIntegration']('customBulletedList'),_0x2ac062['enableDefaultAttributesIntegration']('indentList'),_0x2ac062['enableDefaultAttributesIntegration']('outdentList'),_0x2ac062['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2ac062['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2ac062['registerBlockAttribute']('listItemId'),_0x2ac062['registerBlockAttribute']('listType'),_0x2ac062['registerBlockAttribute']('listIndent'),_0x58f564&&(_0x2ac062['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2ac062['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x504352&&(_0x2ac062['enableDefaultAttributesIntegration']('todoList'),_0x2ac062['enableDefaultAttributesIntegration']('checkTodoList'),_0x2ac062['registerBlockAttribute']('todoListChecked'),_0x2ac062['descriptionFactory']['registerDescriptionCallback'](_0x4f4fc0=>{const {data:_0x533794}=_0x4f4fc0;if(_0x533794&&'todoListChecked'==_0x533794['key'])return{'type':'format','content':_0x533794['newValue']?c(_0x2c3729,'*Check\x20item*'):c(_0x2c3729,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x48a8d2=>{if(_0x48a8d2['batch']['isUndo'])return!0x1;let _0x4f1dd0=!0x1;const _0x138a3d=_0x2ac062['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x150369=>'todoListChecked'===_0x2ac062['_getAttributeKey'](_0x150369));for(const _0x41fc09 of _0x138a3d){'todo'!=_0x41fc09['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2ac062['_findSuggestions'](_0x41fc09['getFirstRange'](),'attribute')['find'](_0xfcc173=>'listType'===_0x2ac062['_getAttributeKey'](_0xfcc173['suggestion']))||(_0x48a8d2['removeMarker'](_0x41fc09['getFirstMarker']()),_0x4f1dd0=!0x0));}return _0x4f1dd0;})),_0x2ac062['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x2c3729,'FORMAT_INDENT'));const _0x26ef08={'type':'format','content':''};_0x2ac062['descriptionFactory']['registerDescriptionCallback'](_0xfcf2f9=>{const {data:_0x710e99}=_0xfcf2f9;if(!_0x710e99||'listType'!=_0x710e99['key'])return;let _0x540818=_0xfcf2f9['head'];for(;_0x540818;){if(_0x540818['data']&&(('listStyle'==_0x540818['data']['key']||'listMarkerStyle'==_0x540818['data']['key'])&&(_0x540818['data']['newValue']&&'default'!=_0x540818['data']['newValue']||'default'!=_0x540818['data']['oldValue']&&!_0x710e99['newValue'])||!_0x58f564&&_0x540818['data']['key']==u))return _0x26ef08;_0x540818=_0x540818['next'];}if(null==_0x710e99['newValue'])switch(_0x710e99['oldValue']){case'bulleted':return _0x18e5bd(c(_0x2c3729,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x18e5bd(c(_0x2c3729,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x18e5bd(c(_0x2c3729,'ELEMENT_TODO_LIST'));}switch(_0x710e99['newValue']){case'bulleted':return _0x351338(c(_0x2c3729,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x351338(c(_0x2c3729,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x351338(c(_0x2c3729,'ELEMENT_TODO_LIST'));}}),_0x2ac062['descriptionFactory']['registerDescriptionCallback'](_0x22219f=>{const {data:_0x39662f}=_0x22219f;if(_0x39662f&&'listIndent'==_0x39662f['key'])return null==_0x39662f['newValue']||null==_0x39662f['oldValue']&&0x0==_0x39662f['newValue']?_0x26ef08:void 0x0;}),_0x2ac062['descriptionFactory']['registerDescriptionCallback'](_0x2401c3=>{if('attribute'!=_0x2401c3['type'])return;const {data:_0x2ae760}=_0x2401c3;if(!_0x2ae760||'listItemId'!=_0x2ae760['key'])return;const _0x5dedec=Te(_0x2401c3);return'newValue'==_0x5dedec?{'type':'format','content':c(_0x2c3729,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5dedec?{'type':'format','content':c(_0x2c3729,'*Split:*\x20list\x20item')}:_0x26ef08;}),_0x5947a['model']['document']['registerPostFixer'](_0xbe8130=>this['listItemIdFixer'](_0xbe8130)),_0x5947a['model']['document']['registerPostFixer'](_0x405489=>this['noTrackChangesFixer'](_0x405489)),_0x5947a['model']['document']['on']('change:data',(_0x2f4b90,_0x88f0a1)=>{if(_0x88f0a1['isUndo']||!_0x88f0a1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5e3eaf){if(_0x5e3eaf['batch']['isUndo']||!_0x5e3eaf['batch']['isLocal'])return!0x1;let _0x379355=!0x1;const _0x5752c3=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x216cba=>_0x216cba['data']&&'listItemId'==_0x216cba['data']['key'])['filter'](_0xb19590=>_0xb19590['data']['newValue']&&_0xb19590['data']['oldValue']);for(const _0xc21473 of _0x5752c3)Te(_0xc21473)||(_0x5e3eaf['removeMarker'](_0xc21473['getFirstMarker']()),_0x379355=!0x0);return _0x379355;}['noTrackChangesFixer'](_0x13e51b){if(_0x13e51b['batch']['isUndo']||!_0x13e51b['batch']['isLocal'])return!0x1;const _0x1ddf11=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1ddf11['trackChangesCommand']['value'])return!0x1;let _0x39ff0a=!0x1;const _0xae3428=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4404a2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xb25d2d=>'attribute'==_0xb25d2d['type'])['filter'](_0x600112=>_0xae3428['includes'](_0x600112['attributeKey']));if(0x0==_0x4404a2['length'])return _0x39ff0a;for(const _0x7e6714 of _0x4404a2){const _0x55028a=_0x1ddf11['_findSuggestions'](_0x7e6714['range'],'attribute')['filter'](_0x3cd44b=>!_0x3cd44b['meta']['isNextTo'])['map'](_0xcb4054=>_0xcb4054['suggestion'])['filter'](_0x191dcf=>{const _0x280947=_0x1ddf11['_getAttributeKey'](_0x191dcf);return _0xae3428['includes'](_0x280947);});if(_0x55028a['length']){for(const _0x1fe917 of _0x55028a)_0x13e51b['removeMarker'](_0x1fe917['getFirstMarker']());_0x39ff0a=!0x0;}}return _0x39ff0a;}['assureChains'](){const _0x24f75e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3eae72=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4f6d75;const _0x1643f5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b4d9e=>{if(_0x1b4d9e['data']['oldRange']||!_0x1b4d9e['data']['newRange'])return null;if(!_0x1b4d9e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1ffda8}=_0x24f75e['_splitMarkerName'](_0x1b4d9e['name']);if(!_0x24f75e['hasSuggestion'](_0x1ffda8))return null;const _0x20417c=_0x24f75e['getSuggestion'](_0x1ffda8);return _0x3eae72['includes'](_0x20417c['data']['key']);})['map'](_0x10b8c9=>{const {id:_0x5313f1}=_0x24f75e['_splitMarkerName'](_0x10b8c9['name']),_0xf5f052=_0x24f75e['getSuggestion'](_0x5313f1);return _0x4f6d75=_0xf5f052['attributes']['groupId'],_0xf5f052['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1643f5['size'])return;const _0x2778df=_0x24f75e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40b249=>'attribute'==_0x40b249['type']&&_0x40b249['data']&&_0x3eae72['includes'](_0x40b249['data']['key'])&&_0x40b249['attributes']['groupId']!=_0x4f6d75)['map'](_0x37c393=>({'listItem':_0x37c393['getFirstRange']()['start']['nodeAfter'],'groupId':_0x37c393['attributes']['groupId']})),_0x32a0cb=new Set();for(const {groupId:_0xb246ee,listItem:_0x17dd5a}of _0x2778df)_0x1643f5['has'](_0x17dd5a)&&_0x32a0cb['add'](_0xb246ee);for(const _0x5b71cc of _0x24f75e['getSuggestions']())_0x32a0cb['has'](_0x5b71cc['attributes']['groupId'])&&_0x5b71cc['setAttribute']('groupId',_0x4f6d75);}['_supportLegacySuggestions'](){const _0x5f228a=this['editor'],_0x4c34d6=_0x5f228a['locale'],_0xcfadee=_0x5f228a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xcfadee['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4a10c1,_0x4fe5b7){const _0x226cbb=[];for(let _0x25b3af of _0x4a10c1)_0x25b3af['start']['nodeAfter']===_0x25b3af['end']['parent']&&(_0x25b3af=_0x5f228a['model']['createRange'](_0x5f228a['model']['createPositionAt'](_0x25b3af['start']['nodeAfter'],0x0))),_0x226cbb['push'](_0x25b3af);_0x5f228a['model']['change'](_0x57c0ab=>{const _0x122856=_0x5f228a['model']['document']['selection'],_0x38b97f=Array['from'](_0x122856['getRanges']())['map'](_0x597037=>_0x3a5e87['fromRange'](_0x597037));_0x57c0ab['setSelection'](_0x226cbb),_0x5f228a['commands']['get'](_0x4fe5b7['commandName'])['refresh'](),_0x4fe5b7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5f228a['execute'](_0x4fe5b7['commandName'],..._0x4fe5b7['commandParams']),_0x57c0ab['setSelection'](_0x38b97f);for(const _0xf54159 of _0x38b97f)_0xf54159['detach']();});}),_0xcfadee['descriptionFactory']['registerElementLabel'](function(_0x324c82){const _0x540893=!_0x5f228a['model']['schema']['isObject'](_0x324c82),_0x1c3057=_0x324c82['previousSibling'],_0x82670e=_0x324c82['nextSibling'],_0xa23e91=_0x324c82['getAttribute']('listItemId'),_0x43b81f=!_0x1c3057||_0x1c3057['getAttribute']('listItemId')!==_0xa23e91,_0x30dafc=!_0x82670e||_0x82670e['getAttribute']('listItemId')!==_0xa23e91;return _0x540893&&Boolean(_0xa23e91)&&_0x43b81f&&_0x30dafc;},_0x863b0f=>c(_0x4c34d6,'ELEMENT_LIST_ITEM',_0x863b0f));}['_registerLegacyDescription'](){const _0x542312=this['editor'],_0x30d854=_0x542312['locale'];function _0xa91834(_0x3f095f){const _0x1bf027=_0x542312['commands']['get']('bulletedList')['value'],_0x22fc83=_0x542312['commands']['get']('numberedList')['value'];return'numberedList'===_0x3f095f?_0x1bf027:_0x22fc83;}_0x542312['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4f93d2){if('formatBlock'!=_0x4f93d2['type'])return;const {data:_0x46e0aa}=_0x4f93d2;if(!_0x46e0aa)return;let _0x203d67,_0x1eb523,_0x5ee646,_0x5b1d95;switch(_0x46e0aa['commandName']){case'bulletedList':_0x5ee646=_0x46e0aa['commandParams'][0x0]['forceValue'],_0x5b1d95=_0xa91834(_0x46e0aa['commandName']),_0x203d67=_0x5ee646?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5b1d95&&_0x542312['config']['get']('list.multiBlock')||(_0x203d67='*Change\x20to:*\x20%0'),_0x1eb523={'type':'format','content':c(_0x30d854,_0x203d67,c(_0x30d854,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5ee646=_0x46e0aa['commandParams'][0x0]['forceValue'],_0x5b1d95=_0xa91834(_0x46e0aa['commandName']),_0x203d67=_0x5ee646?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5b1d95&&_0x542312['config']['get']('list.multiBlock')||(_0x203d67='*Change\x20to:*\x20%0'),_0x1eb523={'type':'format','content':c(_0x30d854,_0x203d67,c(_0x30d854,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x203d67='*Indent:*\x20%0',_0x1eb523={'type':'format','content':c(_0x30d854,_0x203d67,c(_0x30d854,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x203d67=function(_0x2a68db){const _0x4bfb92=_0x2a68db['getFirstRange']();let _0x4c630a=_0x4bfb92['start']['nodeAfter'];for(;_0x4c630a&&_0x4bfb92['containsItem'](_0x4c630a);){if(_0x4c630a['getAttribute']('listIndent')>0x0)return!0x1;_0x4c630a=_0x4c630a['nextSibling'];}return!0x0;}(_0x4f93d2)?c(_0x30d854,'*Format:*\x20remove\x20from\x20%0',c(_0x30d854,function(_0x4a2555){return'ELEMENT_'+_0x4a2555['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4f93d2))):c(_0x30d854,'*Outdent:*\x20%0',c(_0x30d854,'ELEMENT_LIST_ITEM')),_0x1eb523={'type':'format','content':_0x203d67};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x46e0aa['multipleBlocks']&&(_0x203d67='*Merge:*\x20%0',_0x1eb523={'type':'deletion','content':c(_0x30d854,_0x203d67,c(_0x30d854,'ELEMENT_LIST_ITEM'))});}return _0x1eb523;});}}function Te(_0x1fb6c4){let _0x183eb5=_0x1fb6c4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x183eb5;){const _0x4273d2=_0x183eb5['getAttribute']('listItemId');if(!_0x4273d2)return!0x1;if(_0x4273d2==_0x1fb6c4['data']['newValue'])return'newValue';if(_0x4273d2==_0x1fb6c4['data']['oldValue'])return'oldValue';_0x183eb5=_0x183eb5['previousSibling'];}return!0x1;}class Se extends _0x577ae7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xeffdae=this['editor']['config']['get']('list.properties'),_0x2a5422=this['editor']['plugins']['get']('TrackChangesEditing');_0xeffdae['styles']&&(_0x2a5422['enableDefaultAttributesIntegration']('listStyle'),_0x2a5422['registerBlockAttribute']('listStyle')),_0xeffdae['reversed']&&(_0x2a5422['enableDefaultAttributesIntegration']('listReversed'),_0x2a5422['registerBlockAttribute']('listReversed')),_0xeffdae['startIndex']&&(_0x2a5422['enableDefaultAttributesIntegration']('listStart'),_0x2a5422['registerBlockAttribute']('listStart'));const _0x1cce8a={'type':'format','content':''};_0x2a5422['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x29fb54=this['editor']['locale'];_0x2a5422['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x29fb54,'FORMAT_LIST_REVERSED')),_0x2a5422['descriptionFactory']['registerDescriptionCallback'](_0x3cd61f=>{const {data:_0x4a29e9}=_0x3cd61f;if(_0x4a29e9&&'listReversed'==_0x4a29e9['key'])return null==_0x4a29e9['newValue']||0x0==_0x4a29e9['newValue']&&null==_0x4a29e9['oldValue']?_0x1cce8a:void 0x0;}),_0x2a5422['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x29fb54,'FORMAT_LIST_START')),_0x2a5422['descriptionFactory']['registerDescriptionCallback'](_0x421aa9=>{const {data:_0x5c7c76}=_0x421aa9;if(_0x5c7c76&&'listStart'==_0x5c7c76['key'])return null==_0x5c7c76['newValue']||0x1==_0x5c7c76['newValue']&&null==_0x5c7c76['oldValue']?_0x1cce8a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3e0488=>{if(_0x3e0488['batch']['isUndo'])return!0x1;let _0x1fab22=!0x1;const _0x8c4348=_0x2a5422['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x368677=>{const _0x5dd125=_0x2a5422['_getAttributeKey'](_0x368677);return'listStart'==_0x5dd125||'listReversed'==_0x5dd125;});for(const _0x314cdb of _0x8c4348){const _0x2ba4a5=_0x314cdb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2ba4a5||'customNumbered'==_0x2ba4a5)continue;_0x2a5422['_findSuggestions'](_0x314cdb['getFirstRange'](),'attribute')['find'](_0x2ceb08=>'listType'==_0x2a5422['_getAttributeKey'](_0x2ceb08['suggestion']))||(_0x3e0488['removeMarker'](_0x314cdb['getFirstMarker']()),_0x1fab22=!0x0);}return _0x1fab22;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x33db75){const _0x692f76=this['editor']['locale'],{data:_0x241472}=_0x33db75,_0x3f4da4={'type':'format','content':''};if(!_0x241472||'listStyle'!=_0x241472['key'])return;if(!_0x241472['oldValue'])return'default'==_0x241472['newValue']?_0x3f4da4:{'type':'format','content':''+c(_0x692f76,'*Set\x20format:*\x20%0',c(_0x692f76,this['_getTranslationKeyForListStyle'](_0x241472['newValue'])))};if(!_0x241472['newValue']){if('default'==_0x241472['oldValue'])return _0x3f4da4;let _0x3a4712=_0x33db75['head'];for(;_0x3a4712;){if(_0x3a4712['data']&&'listType'==_0x3a4712['data']['key']&&_0x3a4712['data']['newValue'])return _0x3f4da4;_0x3a4712=_0x3a4712['next'];}return{'type':'format','content':''+c(_0x692f76,'*Remove\x20format:*\x20%0',c(_0x692f76,this['_getTranslationKeyForListStyle'](_0x241472['oldValue'])))};}if('default'!=_0x241472['newValue'])return{'type':'format','content':''+c(_0x692f76,'*Set\x20format:*\x20%0',c(_0x692f76,this['_getTranslationKeyForListStyle'](_0x241472['newValue'])))};let _0x38d20c=_0x33db75['head'];for(;_0x38d20c;){if(_0x38d20c['data']&&'listType'==_0x38d20c['data']['key']&&_0x38d20c['data']['newValue']&&_0x38d20c['data']['oldValue'])return _0x3f4da4;_0x38d20c=_0x38d20c['next'];}return{'type':'format','content':c(_0x692f76,'*Set\x20format:*\x20%0',c(_0x692f76,'ELEMENT_'+_0x33db75['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3d059d=this['editor'],_0x16e6b2=_0x3d059d['locale'];_0x3d059d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58250e=>{if('formatBlock'!=_0x58250e['type'])return;const {data:_0x2639f7}=_0x58250e;if(!_0x2639f7)return;let _0x796948,_0x3e3fa9;switch(_0x2639f7['commandName']){case'listStyle':_0x796948='*Change\x20to:*\x20%0',_0x3e3fa9={'type':'format','content':c(_0x16e6b2,_0x796948,c(_0x16e6b2,this['_getTranslationKeyForListStyle'](_0x2639f7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x796948=_0x2639f7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3e3fa9={'type':'format','content':c(_0x16e6b2,_0x796948)};break;case'listStart':_0x796948='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3e3fa9={'type':'format','content':c(_0x16e6b2,_0x796948,_0x2639f7['commandParams'][0x0]['startIndex'])};}return _0x3e3fa9;});}['_getTranslationKeyForListStyle'](_0x13ced7){return'ELEMENT_'+function(_0x4984ba){if(_e['includes'](_0x4984ba))return'bulleted';if(Re['includes'](_0x4984ba))return'numbered';return null;}(_0x13ced7)['toUpperCase']()+'_LIST_'+_0x13ced7['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x577ae7{['afterInit'](){const _0x4d2bbd=this['editor'];_0x4d2bbd['commands']['get']('emoji')&&_0x4d2bbd['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x577ae7{static get['requires'](){return[_0x530fc1];}['init'](){const _0x1d6f3d=this['editor'],_0x3063e2=_0x1d6f3d['plugins']['get']('TrackChangesEditing'),_0x257239=_0x1d6f3d['commands']['get']('enter');_0x3063e2['enableCommand']('enter',()=>{_0x1d6f3d['model']['change'](_0x57f702=>{const _0x1bc125=_0x1d6f3d['model']['document']['selection'],_0x382783=_0x1bc125['getFirstPosition'](),_0x3f42dc=_0x3a5e87['fromRange'](_0x1bc125['getFirstRange']());if(_0x257239['enterBlock'](_0x57f702)){const _0x1c924f=_0x1d6f3d['model']['createPositionAt'](_0x382783['parent']['nextSibling'],0x0),_0x47b831=_0x57f702['createRange'](_0x382783,_0x1c924f);_0x3063e2['markInsertion'](_0x47b831);}else _0x57f702['setSelection'](_0x57f702['createRange'](_0x3f42dc['end']));_0x3f42dc['detach'](),_0x257239['fire']('afterExecute',{'writer':_0x57f702});});}),_0x1d6f3d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x1d6f3d,'split'),{'priority':'high'}),_0x1d6f3d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x47f714,_0x3e889a,_0x2ac779)=>{const _0x5afb27=_0x2ac779['mapper']['markerNameToElements'](_0x3e889a['markerName']);if(_0x5afb27){for(const _0x5d6993 of _0x5afb27)_0x5d6993['hasClass']('ck-suggestion-marker-split')&&(_0x2ac779['mapper']['unbindElementFromMarkerName'](_0x5d6993,_0x3e889a['markerName']),_0x2ac779['writer']['remove'](_0x5d6993));}},{'priority':'high'}),_0x1d6f3d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x198909,_0x5970d2,_0x5dcef0)=>{_0x5dcef0['options']['showSuggestionHighlights']&&Fe(_0x1d6f3d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x198909,_0x5970d2,_0x5dcef0);},{'priority':'high'});}}class Z extends _0x577ae7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x401dae=this['editor']['plugins']['get']('TrackChangesEditing');_0x401dae['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x401dae['enableCommand']('findNext'),_0x401dae['enableCommand']('findPrevious'),_0x401dae['enableCommand']('replace'),_0x401dae['enableCommand']('replaceAll');}['handleFindCommand'](_0x2669ce,_0x324b8b,_0x52a9ca={}){const _0x56c4ea=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2669ce(_0x5b851c=>{let _0x4f8376=('string'==typeof _0x324b8b?_0x56c4ea['findByTextCallback'](_0x324b8b,_0x52a9ca):_0x324b8b)(_0x5b851c);Array['isArray'](_0x4f8376)&&(_0x4f8376={'results':_0x4f8376,'searchText':'string'==typeof _0x324b8b?_0x324b8b:''});const _0x55d7b1=_0x4f8376['results']['filter'](_0x57b572=>!0x1===this['_isInDeletionRange'](_0x57b572,_0x5b851c['item']));return{..._0x4f8376,'results':_0x55d7b1};},_0x52a9ca);}['_isInDeletionRange'](_0x252f2c,_0x4484fe){const _0x57d9f0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4484fe,_0x252f2c['start']),this['editor']['model']['createPositionAt'](_0x4484fe,_0x252f2c['end']));for(const _0xb4f928 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x57d9f0['getIntersection'](_0xb4f928['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x577ae7{['afterInit'](){const _0x43781c=this['editor']['locale'],_0x450b8d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1bfa0e,commandName:_0x6578a9}of ro)this['editor']['plugins']['has'](_0x1bfa0e)&&(_0x450b8d['enableDefaultAttributesIntegration'](_0x6578a9),_0x450b8d['registerInlineAttribute'](_0x6578a9));_0x450b8d['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x43781c,'FORMAT_FONT_SIZE')),_0x450b8d['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x43781c,'FORMAT_FONT_FAMILY')),_0x450b8d['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x43781c,'FORMAT_FONT_COLOR')),_0x450b8d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x43781c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36e8ec=this['editor'],_0x50fa8a=_0x36e8ec['locale'];_0x36e8ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b32f5=>{const _0x1bc1a3=_0x50fa8a['t'];if('formatInline'!=_0x4b32f5['type'])return;const {data:_0x468a6f}=_0x4b32f5;if(null!=_0x468a6f){if('fontSize'==_0x468a6f['commandName']){const _0x4e1cef=_0x468a6f['commandParams'][0x0]['value'];if(_0x4e1cef){const _0x2190e1=_0x1bc1a3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2fd64d=>_0x2fd64d['model']==_0x4e1cef)['title'])['toLowerCase']();return{'type':'format','content':c(_0x50fa8a,'*Set\x20font\x20size:*\x20%0',_0x2190e1)};}return{'type':'format','content':c(_0x50fa8a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x468a6f['commandName']){const _0x38228e=_0x468a6f['commandParams'][0x0]['value'];return _0x38228e?{'type':'format','content':c(_0x50fa8a,'*Set\x20font\x20family:*\x20%0',_0x38228e)}:{'type':'format','content':c(_0x50fa8a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x468a6f['commandName']){const _0x2b0c86=_0x468a6f['commandParams'][0x0]['value'];if(_0x2b0c86){const _0x139826=_0x1a6ad8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1e2a64=>_0x1e2a64['model']==_0x2b0c86);let _0x22cf50=_0x2b0c86,_0x55dc7a='';return _0x139826&&(_0x22cf50=_0x139826['label'],_0x55dc7a=_0x1bc1a3(_0x22cf50)['toLowerCase']()),{'type':'format','content':c(_0x50fa8a,'*Set\x20font\x20color:*\x20%0',_0x55dc7a)['trim'](),'color':{'value':_0x2b0c86,'title':_0x55dc7a||_0x22cf50}};}return{'type':'format','content':c(_0x50fa8a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x468a6f['commandName']){const _0x27967b=_0x468a6f['commandParams'][0x0]['value'];if(_0x27967b){const _0x379985=_0x1a6ad8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x311936=>_0x311936['model']==_0x27967b);let _0x210162=_0x27967b,_0x418be2='';return _0x379985&&(_0x210162=_0x379985['label'],_0x418be2=_0x1bc1a3(_0x210162)['toLowerCase']()),{'type':'format','content':c(_0x50fa8a,'*Set\x20font\x20background\x20color:*\x20%0',_0x418be2)['trim'](),'color':{'value':_0x27967b,'title':_0x418be2||_0x210162}};}return{'type':'format','content':c(_0x50fa8a,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x577ae7{['afterInit'](){const _0x37f908=this['editor'],_0x5066b5=_0x37f908['plugins']['get']('TrackChangesEditing'),_0x49d446=_0x37f908['commands']['get']('copyFormat'),_0x8a7fe=_0x37f908['commands']['get']('pasteFormat');_0x49d446&&_0x8a7fe&&(_0x5066b5['enableDefaultAttributesIntegration']('pasteFormat'),_0x5066b5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x103b17=this['editor'],_0x57238e=_0x103b17['locale'];_0x103b17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x466c04=>{if('formatBlock'!=_0x466c04['type']&&'formatInline'!=_0x466c04['type'])return;const {data:_0x345de1}=_0x466c04;if(_0x345de1&&'pasteFormat'===_0x345de1['commandName']){const _0x375a96=[],_0x4f3482=_0x345de1['commandParams'][0x0];for(const [_0x547a4e,_0x3d4b52]of Object['entries'](_0x4f3482))_0x375a96['push'](so(_0x103b17,_0x547a4e,_0x3d4b52));return _0x375a96['length']?{'type':'format','content':c(_0x57238e,'*Set\x20format\x20to:*\x20%0',_0x375a96['join'](',\x20'))}:{'type':'format','content':c(_0x57238e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x89d8d2,_0x315ef3,_0x478f1e){const _0x12a954=_0x89d8d2['locale']['t'],_0x52d316=_0x315ef3['split'](/(?=[A-Z])/)['join']('\x20'),_0x357729=_0x12a954(_0x52d316['charAt'](0x0)['toUpperCase']()+_0x52d316['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x478f1e)return _0x357729;if('fontColor'===_0x315ef3||'fontBackgroundColor'===_0x315ef3){const _0x2d35db=_0x1a6ad8(_0x89d8d2['config']['get']('fontColor.colors'))['find'](_0x15b948=>_0x15b948['model']==_0x478f1e);return _0x357729+'\x20('+(_0x2d35db?_0x12a954(_0x2d35db['label'])['toLowerCase']():_0x478f1e)+')';}if('fontSize'===_0x315ef3&&isNaN(parseFloat(_0x478f1e))){const _0x4d6cf1=_0x89d8d2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x89d8d2['config']['get']('fontSize.options'))['find'](_0x12cb7a=>_0x12cb7a['model']==_0x478f1e);return _0x357729+'\x20('+(_0x4d6cf1?_0x12a954(_0x4d6cf1['title'])['toLowerCase']():_0x478f1e)+')';}return _0x357729+'\x20('+_0x478f1e+')';}class et extends _0x577ae7{['_headingOptions'];['afterInit'](){const _0x9ef821=this['editor'];if(!_0x9ef821['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x9ef821['config']['get']('heading.options');const _0x5e763a=_0x9ef821['locale'],_0xab3b92=_0x9ef821['plugins']['get']('TrackChangesEditing');_0xab3b92['enableDefaultAttributesIntegration']('heading');for(const _0x598285 of this['_headingOptions'])'paragraph'!=_0x598285['model']&&_0xab3b92['descriptionFactory']['registerElementLabel'](_0x598285['model'],_0x310ada=>{const _0x127566=this['_getHeadingLevel'](_0x598285['model']);return null!==_0x127566?_0x35e3f5(_0x310ada,_0x127566):_0x52ed4b(_0x310ada,_0x598285['title']);});function _0x35e3f5(_0x150c95,_0x57688d){return c(_0x5e763a,'ELEMENT_HEADING',[_0x150c95,_0x57688d]);}function _0x52ed4b(_0x11f9b8,_0x2e9099){return c(_0x5e763a,'ELEMENT_HEADING_CUSTOM',[_0x11f9b8,_0x2e9099]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46d97a=this['editor'],_0x8e4c65=_0x46d97a['locale'];function _0x14ca91(_0x37840c,_0x18551c){return c(_0x8e4c65,'ELEMENT_HEADING_CUSTOM',[_0x37840c,_0x18551c]);}_0x46d97a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c1f72=>{if('formatBlock'!=_0x3c1f72['type'])return;const {data:_0x25dfdc}=_0x3c1f72;if(_0x25dfdc&&'heading'==_0x25dfdc['commandName']){const _0xb003f4=_0x25dfdc['commandParams'][0x0]['value'],_0x15ef22=this['_getHeadingLevel'](_0xb003f4);if(null!==_0x15ef22)return{'type':'format','content':c(_0x8e4c65,'*Change\x20to:*\x20%0',(_0x1d2ac0=0x1,_0x25dfd4=_0x15ef22,c(_0x8e4c65,'ELEMENT_HEADING',[_0x1d2ac0,_0x25dfd4])))};const _0x2ff089=this['_headingOptions']['find'](_0x4d5a3d=>_0x4d5a3d['model']===_0xb003f4)['title'];return{'type':'format','content':c(_0x8e4c65,'*Change\x20to:*\x20%0',_0x14ca91(0x1,_0x2ff089))};}var _0x1d2ac0,_0x25dfd4;});}['_getHeadingLevel'](_0x177382){const _0x234db8=_0x177382['match'](/^heading(\d+)/);if(_0x234db8)return _0x234db8[0x1];const _0xa290a3=this['_headingOptions']?.['find'](_0x4d485c=>_0x4d485c['model']==_0x177382);if(_0xa290a3&&_0xa290a3['view']){const _0x43db38=_0xa290a3['view'],_0x51488b=(_0x43db38['name']??_0x43db38)['match'](/^h(\d+)/);if(_0x51488b)return _0x51488b[0x1];}return null;}}class nt extends _0x577ae7{['afterInit'](){const _0x3c0d28=this['editor'];if(!_0x3c0d28['plugins']['has']('HighlightEditing'))return;const _0x11cb11=_0x3c0d28['plugins']['get']('TrackChangesEditing'),_0x364664=_0x3c0d28['locale'];_0x11cb11['enableDefaultAttributesIntegration']('highlight'),_0x11cb11['registerInlineAttribute']('highlight'),_0x11cb11['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x364664,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27d98f=this['editor'],_0x58ce60=_0x27d98f['locale'];_0x27d98f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2221fb=>{if('formatInline'!=_0x2221fb['type'])return;const {data:_0x47e93f}=_0x2221fb;if(_0x47e93f&&'highlight'==_0x47e93f['commandName']){const _0x544071=_0x58ce60['t'],_0x71491c=_0x47e93f['commandParams'][0x0]['value'];if(_0x71491c){const _0x48c2c7=_0x27d98f['config']['get']('highlight.options')['find'](_0x33f243=>_0x33f243['model']==_0x71491c),_0x2ba268=_0x544071(_0x48c2c7['title'])['toLowerCase']();return{'type':'format','content':c(_0x58ce60,'*Set\x20highlight:*\x20%0',_0x2ba268),'color':{'value':_0x48c2c7['color'],'title':_0x48c2c7['title']}};}return{'type':'format','content':c(_0x58ce60,'*Remove\x20highlight*',c(_0x58ce60,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x577ae7{['afterInit'](){const _0x212b98=this['editor'];if(!_0x212b98['plugins']['has']('HorizontalLineEditing'))return;_0x212b98['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2632f2=_0x212b98['plugins']['get']('TrackChangesEditing'),_0x3671c6=_0x212b98['locale'];_0x2632f2['descriptionFactory']['registerElementLabel']('horizontalLine',_0x32dd01=>c(_0x3671c6,'ELEMENT_HORIZONTAL_LINE',_0x32dd01)),_0x212b98['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2dbb46,{writer:_0x4279ec,options:_0xaa9c06})=>{if(!_0xaa9c06['showSuggestionHighlights'])return null;const _0x2fbc0e=_0x4279ec['createContainerElement']('div'),_0x1b558a=_0x4279ec['createEmptyElement']('hr');return _0x4279ec['addClass']('ck-horizontal-line',_0x2fbc0e),_0x4279ec['insert'](_0x4279ec['createPositionAt'](_0x2fbc0e,0x0),_0x1b558a),_0x2fbc0e;},'converterPriority':'high'});}}class ot extends _0x577ae7{['afterInit'](){const _0x5c9469=this['editor'];if(!_0x5c9469['plugins']['has']('HtmlEmbed'))return;const _0x58b4fc=_0x5c9469['plugins']['get']('TrackChangesEditing'),_0x35f889=_0x5c9469['locale'];_0x58b4fc['descriptionFactory']['registerElementLabel']('rawHtml',_0x23d3c5=>c(_0x35f889,'ELEMENT_HTML_EMBED',_0x23d3c5)),_0x58b4fc['enableDefaultAttributesIntegration']('htmlEmbed'),_0x58b4fc['registerBlockAttribute']('value'),_0x58b4fc['descriptionFactory']['registerDescriptionCallback'](_0x15c083=>{if('attribute'!=_0x15c083['type'])return;const {data:_0x2e5f33}=_0x15c083;if(_0x2e5f33&&'value'==_0x2e5f33['key']&&_0x15c083['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x338b28=c(_0x35f889,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x35f889,'*Change\x20%0\x20content*',_0x338b28)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x223c5e=this['editor'],_0x1c75c9=_0x223c5e['locale'];_0x223c5e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cb24b=>{if('formatBlock'!=_0x4cb24b['type'])return;const {data:_0x4a5421}=_0x4cb24b;if(_0x4a5421&&'htmlEmbed'==_0x4a5421['commandName']){const _0x1a0a11=c(_0x1c75c9,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1c75c9,'*Change\x20%0\x20content*',_0x1a0a11)};}});}}class rt extends _0x577ae7{['afterInit'](){const _0x2d221b=this['editor'];if(!_0x2d221b['plugins']['has']('ImageEditing'))return;const _0x5b9a39=_0x2d221b['plugins']['get']('TrackChangesEditing'),_0x42bad2=_0x2d221b['plugins']['get']('ImageUtils'),_0x52f0e6=_0x2d221b['locale'];_0x5b9a39['enableCommand']('insertImage'),_0x5b9a39['descriptionFactory']['registerElementLabel']('imageBlock',_0x1c67a3=>c(_0x52f0e6,'ELEMENT_IMAGE',_0x1c67a3)),_0x5b9a39['descriptionFactory']['registerElementLabel']('imageInline',_0x4ffc51=>c(_0x52f0e6,'ELEMENT_INLINE_IMAGE',_0x4ffc51)),_0x5b9a39['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x52f0e6,'ELEMENT_CAPTION')),_0x2d221b['plugins']['has']('ImageUploadEditing')&&_0x5b9a39['enableCommand']('uploadImage'),_0x2d221b['plugins']['has']('ImageBlockEditing')&&_0x2d221b['plugins']['has']('ImageInlineEditing')&&(_0x5b9a39['enableCommand']('imageTypeInline',(_0x335191,_0x3eafb2)=>{const _0x3275fd=_0x42bad2['getClosestSelectedImageElement'](_0x2d221b['model']['document']['selection']);_0x2d221b['model']['change'](()=>{_0x5b9a39['markBlockFormat'](_0x3275fd,{'commandName':'imageTypeInline','commandParams':[_0x3eafb2]},[],'convertBlockImageToInline');});}),_0x5b9a39['enableCommand']('imageTypeBlock',(_0x4add26,_0x51894d)=>{_0x2d221b['model']['change'](_0x4cefd2=>{let _0x46dee4=_0x42bad2['getClosestSelectedImageElement'](_0x2d221b['model']['document']['selection']),_0x16c6d5=_0x4cefd2['createRangeOn'](_0x46dee4);const _0x41ec38=_0x303748['fromPosition'](_0x16c6d5['start'],'toPrevious'),_0x184870=_0x303748['fromPosition'](_0x16c6d5['end'],'toNext');_0x5b9a39['forceDefaultExecution'](()=>_0x4add26(_0x51894d)),_0x46dee4=_0x42bad2['getClosestSelectedImageElement'](_0x2d221b['model']['document']['selection']),_0x16c6d5=_0x4cefd2['createRangeOn'](_0x46dee4);const _0x139269=_0x4cefd2['createRange'](_0x41ec38,_0x184870);_0x41ec38['detach'](),_0x184870['detach'](),_0x5b9a39['markBlockFormat'](_0x46dee4,{'commandName':'imageTypeInline','commandParams':[_0x51894d]},[],'convertInlineImageToBlock'),_0x139269['start']['isBefore'](_0x16c6d5['start'])&&_0x5b9a39['markInsertion'](_0x4cefd2['createRange'](_0x139269['start'],_0x16c6d5['start']),'convertInlineImageToBlock'),_0x16c6d5['end']['isBefore'](_0x139269['end'])&&_0x5b9a39['markInsertion'](_0x4cefd2['createRange'](_0x16c6d5['end'],_0x139269['end']),'convertInlineImageToBlock');});}),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5b9a39['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3c02db])=>{const _0x57fd14=_0x5b9a39['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x10e745=_0x3c02db['start'],_0xb0fcd0=_0x3c02db['end'];const _0x173a19=_0x2d221b['model']['schema']['getNearestSelectionRange'](_0x10e745,'backward'),_0xb327ca=_0x2d221b['model']['schema']['getNearestSelectionRange'](_0xb0fcd0,'forward');_0x173a19['isCollapsed']&&(_0x10e745=_0x173a19['start']),_0xb327ca['isCollapsed']&&(_0xb0fcd0=_0xb327ca['end']),_0x57fd14([_0x2d221b['model']['createRange'](_0x10e745,_0xb0fcd0)]);}),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x454921),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x454921)),_0x2d221b['plugins']['has']('ImageCaptionEditing')&&(_0x5b9a39['enableCommand']('toggleImageCaption',(_0x577c28,_0x30486a)=>{const _0x771cf0=_0x2d221b['plugins']['get']('ImageCaptionUtils');let _0x128d2e=_0x42bad2['getClosestSelectedImageElement'](_0x2d221b['model']['document']['selection']),_0x194de3=_0x771cf0['getCaptionFromImageModelElement'](_0x128d2e);_0x2d221b['model']['change'](()=>{if(_0x194de3)return void _0x5b9a39['markDeletion'](_0x2d221b['model']['createRangeOn'](_0x194de3));const _0x509203=_0x42bad2['isBlockImage'](_0x128d2e);_0x577c28(_0x30486a),_0x128d2e=_0x42bad2['getClosestSelectedImageElement'](_0x2d221b['model']['document']['selection']),_0x194de3=_0x771cf0['getCaptionFromImageModelElement'](_0x128d2e),_0x5b9a39['markInsertion'](_0x2d221b['model']['createRangeOn'](_0x194de3),_0x509203?null:'imageCaption');});}),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x454921));const _0x361512=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x56ceb6(_0x3caf7c,_0x11a1b5){const _0x5a558b=_0x361512['findIndex'](({type:_0x1bf311,subType:_0x511f77})=>_0x3caf7c['type']==_0x1bf311&&_0x3caf7c['subType']==_0x511f77),_0x4fdcfc=_0x361512['findIndex'](({type:_0xada7b7,subType:_0x40f0fb})=>_0x11a1b5['type']==_0xada7b7&&_0x11a1b5['subType']==_0x40f0fb);if(_0x5a558b<0x0||_0x4fdcfc<0x0)return!0x1;const _0x12d9e4=_0x3caf7c['getFirstRange'](),_0x24154c=_0x11a1b5['getFirstRange']();if((0x0==_0x5a558b||0x1==_0x5a558b)&&0x2==_0x4fdcfc&&_0x12d9e4['isIntersecting'](_0x24154c))return!0x0;if(0x2==_0x5a558b&&0x3==_0x4fdcfc){const _0x23cb3b=_0x5b9a39['_findSuggestions'](_0x12d9e4,'insertion')['filter'](({suggestion:_0x3facbb,meta:_0x24d513})=>_0x24d513['isOwn']&&'convertInlineImageToBlock'==_0x3facbb['subType']);if(_0x23cb3b['length']>0x1&&_0x24154c['end']['isEqual'](_0x12d9e4['start']))return!0x0;if(0x1==_0x23cb3b['length']&&(_0x12d9e4['start']['isEqual'](_0x24154c['end'])||_0x12d9e4['end']['isEqual'](_0x24154c['start'])))return!0x0;}if(0x3==_0x5a558b&&0x3==_0x4fdcfc&&_0x12d9e4['start']['isBefore'](_0x24154c['start'])){const _0x2b464d=_0x12d9e4['end']['nodeAfter'],_0x1044ab=_0x24154c['start']['nodeBefore'];return _0x42bad2['isBlockImage'](_0x2b464d)&&_0x2b464d===_0x1044ab;}return!0x1;}function _0x454921(_0x2df606,_0x5026cd){return _0x56ceb6(_0x2df606,_0x5026cd)?[_0x2df606,_0x5026cd]:_0x56ceb6(_0x5026cd,_0x2df606)?[_0x5026cd,_0x2df606]:null;}_0x2d221b['plugins']['has']('ImageResize')&&(_0x5b9a39['enableDefaultAttributesIntegration']('resizeImage'),_0x5b9a39['registerBlockAttribute']('resizedWidth'),_0x5b9a39['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x52f0e6,'FORMAT_IMAGE_SIZE'))),_0x2d221b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5b9a39['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5b9a39['registerBlockAttribute']('alt')),_0x2d221b['plugins']['has']('PictureEditing')&&(_0x5b9a39['registerBlockAttribute']('sources'),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0x2acd8a=>{if('attribute'!=_0x2acd8a['type'])return;const {data:_0x4fa5e4}=_0x2acd8a;return _0x4fa5e4&&'sources'==_0x4fa5e4['key']?{'type':'format','content':''}:void 0x0;})),_0x2d221b['plugins']['has']('ImageSizeAttributes')&&(_0x5b9a39['registerBlockAttribute']('width'),_0x5b9a39['registerBlockAttribute']('height'),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0x5479d0=>{if('attribute'!=_0x5479d0['type'])return;const {data:_0x453831}=_0x5479d0;return!_0x453831||'width'!=_0x453831['key']&&'height'!=_0x453831['key']?void 0x0:{'type':'format','content':''};})),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0x25bfe4=>{if(!!_0x361512['find'](({type:_0x3a497b,subType:_0x4db878})=>_0x25bfe4['type']==_0x3a497b&&_0x25bfe4['subType']==_0x4db878))return _0x25bfe4['previous']?{}:void 0x0;}),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0x2a5534=>{if('insertion'==_0x2a5534['type']||'deletion'==_0x2a5534['type']){const _0x121ebb=_0x2a5534['getContainedElement']();if(_0x121ebb&&_0x121ebb['is']('element','caption'))return{'type':'insertion'==_0x2a5534['type']?'addObject':'removeObject','element':_0x121ebb,'quantity':0x1};}}),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0xd2386e=>'formatBlock'==_0xd2386e['type']&&'convertInlineImageToBlock'==_0xd2386e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xd2386e['type']&&'convertBlockImageToInline'==_0xd2386e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0x398bd2=>{if('attribute'!=_0x398bd2['type'])return;const {data:_0x3299b0}=_0x398bd2;if(!_0x3299b0||'alt'!=_0x3299b0['key'])return;const _0x534579=_0x3299b0['newValue'];return _0x534579?{'type':'format','content':c(_0x52f0e6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x534579+'\x22')}:{'type':'format','content':c(_0x52f0e6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3be477=this['editor'],_0x34ea13=_0x3be477['locale'];_0x3be477['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30693f=>{if('formatBlock'!=_0x30693f['type']&&'formatInline'!=_0x30693f['type'])return;const {data:_0x274ddd}=_0x30693f;if(_0x274ddd){if('imageTextAlternative'==_0x274ddd['commandName']){const _0x35efd0=_0x274ddd['commandParams'][0x0]['newValue'];return _0x35efd0?{'type':'format','content':c(_0x34ea13,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x35efd0+'\x22')}:{'type':'format','content':c(_0x34ea13,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x274ddd['commandName']){const _0x4e6b65=_0x274ddd['commandParams'][0x0]['width'];return _0x4e6b65?{'type':'format','content':c(_0x34ea13,'*Set\x20image\x20width:*\x20%0',_0x4e6b65)}:{'type':'format','content':c(_0x34ea13,'*Reset\x20image\x20width*')};}}});}}class at extends _0x577ae7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x466565=this['editor']['locale'],_0x59025a=this['editor']['plugins']['get']('TrackChangesEditing');_0x59025a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x59025a['registerBlockAttribute']('src'),_0x59025a['descriptionFactory']['registerDescriptionCallback'](_0x12d17f=>{if('attribute'!=_0x12d17f['type'])return;const {data:_0x347867}=_0x12d17f;return _0x347867&&'src'==_0x347867['key']?_0x347867['newValue']&&_0x347867['oldValue']?{'type':'format','content':c(_0x466565,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4cdb5f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4cdb5f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4cdb5f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4cdb5f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4cdb5f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x597b22=this['editor'],_0x1b0081=_0x597b22['locale'];_0x597b22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7bce68=>{if('formatBlock'!=_0x7bce68['type']&&'formatInline'!=_0x7bce68['type'])return;const {data:_0x14b9b}=_0x7bce68;if(!_0x14b9b||'replaceImageSource'!=_0x14b9b['commandName'])return;return{'type':'format','content':c(_0x1b0081,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x577ae7{['afterInit'](){const _0x563862=this['editor'];if(!_0x563862['plugins']['has']('ImageStyleEditing'))return;const _0x429077=_0x563862['plugins']['get']('TrackChangesEditing'),_0x3b3fb3=_0x563862['plugins']['get']('ImageUtils'),_0x368208={};_0x429077['enableCommand']('imageStyle',(_0x1c7b4e,_0x506783)=>{const _0x48cbc9=_0x563862['plugins']['get']('Users')['me'],_0x2be0dc=_0x563862['commands']['get']('imageStyle');let _0x489ce6=_0x3b3fb3['getClosestSelectedImageElement'](_0x563862['model']['document']['selection']),_0x538ed2=_0x563862['model']['createRangeOn'](_0x489ce6),_0x5643c2=_0x2be0dc['value'];if(_0x5643c2==_0x506783['value'])return;const _0x405699={'commandName':'imageStyle','commandParams':[_0x506783],'formatGroupId':_0x147536()};_0x563862['model']['change'](()=>{if(_0x429077['getSuggestions']()['filter'](_0xea17e7=>_0xea17e7['isInContent']&&_0x48cbc9==_0xea17e7['author']&&('formatBlock'==_0xea17e7['type']||'formatInline'==_0xea17e7['type'])&&('imageStylePreApply'==_0xea17e7['subType']||'imageStylePostApply'==_0xea17e7['subType'])&&_0xea17e7['getFirstRange']()['isEqual'](_0x538ed2))['forEach'](_0x4a62e2=>_0x429077['discardSuggestion'](_0x4a62e2['head'])),_0x489ce6=_0x3b3fb3['getClosestSelectedImageElement'](_0x563862['model']['document']['selection']),_0x538ed2=_0x563862['model']['createRangeOn'](_0x489ce6),_0x2be0dc['refresh'](),_0x563862['commands']['get']('imageTypeInline')['refresh'](),_0x563862['commands']['get']('imageTypeBlock')['refresh'](),_0x5643c2=_0x2be0dc['value'],_0x5643c2!=_0x506783['value'])return _0x3b3fb3['isInlineImage'](_0x489ce6)&&_0x2be0dc['shouldConvertImageType'](_0x506783['value'],_0x489ce6)?(_0x1c7b4e({..._0x506783,'setImageSizes':!0x1}),_0x489ce6=_0x3b3fb3['getClosestSelectedImageElement'](_0x563862['model']['document']['selection']),void _0x429077['markBlockFormat'](_0x489ce6,{..._0x405699,'commandReversedParams':[{'value':_0x5643c2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3b3fb3['isBlockImage'](_0x489ce6)?_0x429077['markBlockFormat'](_0x489ce6,_0x405699,[],'imageStylePostApply'):_0x429077['markInlineFormat'](_0x538ed2,_0x405699,'imageStylePostApply'));});});for(const _0x3d356e of _0x563862['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x368208[_0x3d356e['name']]=_0x3d356e['title']['toLowerCase']();_0x429077['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x429077['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x429077['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x429077['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2d535d])=>{_0x3b3fb3['setImageNaturalSizeAttributes'](_0x2d535d['getContainedElement']());}),_0x429077['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2bc90b,_0x184c2e)=>{_0x429077['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2bc90b,{'commandName':_0x184c2e['commandName'],'commandParams':_0x184c2e['commandReversedParams']});}),_0x429077['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2b6271,_0x3ba11f){if(_0x5e9118(_0x2b6271,_0x3ba11f))return[_0x2b6271,_0x3ba11f];if(_0x5e9118(_0x3ba11f,_0x2b6271))return[_0x3ba11f,_0x2b6271];return null;});const _0x231312=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5e9118(_0x471442,_0x5c2af6){const _0xbc5248=_0x231312['findIndex'](({type:_0x533d08,subType:_0x61cff6})=>_0x471442['type']==_0x533d08&&_0x471442['subType']==_0x61cff6),_0x2a1b37=_0x231312['findIndex'](({type:_0xc9d126,subType:_0x1f315a})=>_0x5c2af6['type']==_0xc9d126&&_0x5c2af6['subType']==_0x1f315a);if(_0xbc5248<0x0||_0x2a1b37<0x0)return!0x1;const _0x550446=_0x471442['getFirstRange'](),_0x2e6094=_0x5c2af6['getFirstRange']();if((0x0==_0xbc5248||0x1==_0xbc5248)&&0x2==_0x2a1b37&&_0x550446['isIntersecting'](_0x2e6094))return!0x0;if(0x2==_0xbc5248&&0x3==_0x2a1b37){const _0x4787ba=_0x429077['_findSuggestions'](_0x550446,'insertion')['filter'](({suggestion:_0x149904,meta:_0xbf7d58})=>_0xbf7d58['isOwn']&&'convertInlineImageToBlock'==_0x149904['subType']);if(_0x4787ba['length']>0x1&&_0x2e6094['end']['isEqual'](_0x550446['start']))return!0x0;if(0x1==_0x4787ba['length']&&(_0x550446['start']['isEqual'](_0x2e6094['end'])||_0x550446['end']['isEqual'](_0x2e6094['start'])))return!0x0;}if(0x3==_0xbc5248&&0x3==_0x2a1b37&&_0x550446['start']['isBefore'](_0x2e6094['start'])){const _0x5ae04c=_0x550446['end']['nodeAfter'],_0x245629=_0x2e6094['start']['nodeBefore'];return _0x3b3fb3['isBlockImage'](_0x5ae04c)&&_0x5ae04c===_0x245629;}return!0x1;}_0x563862['model']['document']['registerPostFixer'](()=>{let _0x2061ec=!0x1;const _0x465fe8=Array['from'](_0x563862['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x102173,data:_0x4440a2}of _0x465fe8){const {group:_0x481da7,type:_0x33104a,subType:_0x4f78d8,id:_0x33ce9e}=_0x429077['_splitMarkerName'](_0x102173);if('suggestion'==_0x481da7&&_0x429077['hasSuggestion'](_0x33ce9e)){if('formatBlock'==_0x33104a&&('imageStylePreApply'==_0x4f78d8||'imageStylePostApply'==_0x4f78d8)){const _0x34cbe6=_0x429077['getSuggestion'](_0x33ce9e);if(_0x4440a2['newRange']){const _0x5a6a87=_0x34cbe6['getFirstRange']()['getContainedElement']();if(_0x3b3fb3['isBlockImage'](_0x5a6a87))continue;_0x429077['discardSuggestion'](_0x34cbe6),_0x2061ec=!0x0;}}if('insertion'==_0x33104a&&'imageCaption'==_0x4f78d8&&!_0x4440a2['newRange']){const _0x283534=_0x429077['getSuggestion'](_0x33ce9e);_0x283534['next']&&_0x283534['next']['isInContent']&&(_0x429077['discardSuggestion'](_0x283534['next']),_0x2061ec=!0x0);}}}return _0x2061ec;}),this['_registerLegacyDescription'](_0x368208);}['_registerLegacyDescription'](_0x5f4fa5){const _0x17732e=this['editor'],_0x5b00ca=_0x17732e['locale'];_0x17732e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c9507=>{if('formatBlock'!=_0x3c9507['type']&&'formatInline'!=_0x3c9507['type'])return;const {data:_0x3c3a04}=_0x3c9507;if(!_0x3c3a04||'imageStyle'!=_0x3c3a04['commandName'])return;const _0x161279=_0x3c3a04['commandParams'][0x0]['value'];return _0x508371('side'===_0x161279?c(_0x5b00ca,'FORMAT_SIDE_IMAGE'):_0x5f4fa5[_0x161279]||_0x161279);function _0x508371(_0x2e7407){return{'type':'format','content':c(_0x5b00ca,'*Format:*\x20%0',_0x2e7407)};}});}}class ut extends _0x577ae7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2f5201){super(_0x2f5201),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x30c698=this['editor'],_0x5d69e2=_0x30c698['commands']['get']('importWord'),_0x1e71d5=_0x30c698['commands']['get']('trackChanges');_0x5d69e2&&(_0x5d69e2['on']('execute',(_0xfd6a9,[,_0x527f6f])=>{this['_trackChangesValueDuringImport']=_0x1e71d5['value'],_0x527f6f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5d69e2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5d69e2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1e71d5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x30c698['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x339552,_0x355ad1){const {suggestions:_0x58e7de}=_0x355ad1,_0x566a0c=this['editor']['commands']['get']('trackChanges'),_0x54f7eb=_0x566a0c['value'];this['_trackChangesValueDuringImport']!==_0x54f7eb&&(_0x566a0c['execute'](),this['_trackChangesExecuted']=!0x0),_0x58e7de&&_0x58e7de['forEach'](({id:_0x4855c0,type:_0x12054a,author:_0x30ad7b,created_at:_0x64b69a})=>{const _0x360680={'id':_0x4855c0,'type':_0x12054a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x30ad7b,'createdAt':_0x64b69a?new Date(_0x64b69a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x360680);});}}class ft extends _0x577ae7{['afterInit'](){const _0x3b6496=this['editor'],_0x355876=_0x3b6496['plugins']['get']('TrackChangesEditing');if(_0x3b6496['plugins']['has']('IndentEditing')&&(_0x355876['enableCommand']('indent'),_0x355876['enableCommand']('outdent')),_0x3b6496['plugins']['has']('IndentBlock')){for(const _0x8db10c of['indentBlock','outdentBlock'])_0x355876['enableDefaultAttributesIntegration'](_0x8db10c);}const _0x5b6b09=_0x3b6496['locale'];_0x355876['registerBlockAttribute']('blockIndent'),_0x355876['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5b6b09,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x300db0=this['editor'],_0x4f46dc=_0x300db0['locale'],_0x134af8=_0x300db0['plugins']['get']('TrackChangesEditing');_0x134af8['descriptionFactory']['registerDescriptionCallback'](_0x3232d5=>{if('formatBlock'!=_0x3232d5['type'])return;const {data:_0x9b9d6c}=_0x3232d5;if(!_0x9b9d6c)return;if('indentBlock'!=_0x9b9d6c['commandName']&&'outdentBlock'!=_0x9b9d6c['commandName'])return;const _0x5abc1b=_0x3232d5['getItems']()[0x0],_0x6867b3=_0x134af8['descriptionFactory']['getItemLabel'](_0x5abc1b);return'indentBlock'==_0x9b9d6c['commandName']?{'type':'format','content':c(_0x4f46dc,'*Indent:*\x20%0',_0x6867b3)}:'outdentBlock'==_0x9b9d6c['commandName']?{'type':'format','content':c(_0x4f46dc,'*Outdent:*\x20%0',_0x6867b3)}:void 0x0;});}}class ht extends _0x577ae7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x577ae7{['afterInit'](){const _0x2869e2=this['editor'];if(!_0x2869e2['plugins']['has']('LinkEditing'))return;const _0x144ae2=_0x2869e2['plugins']['get']('TrackChangesEditing'),_0x1002d7=_0x2869e2['commands']['get']('link');_0x144ae2['enableDefaultAttributesIntegration']('link'),_0x144ae2['enableDefaultAttributesIntegration']('unlink'),_0x144ae2['registerInlineAttribute']('linkHref');for(const _0x43a8c7 of _0x1002d7['manualDecorators'])_0x144ae2['registerInlineAttribute'](_0x43a8c7['id']),_0x144ae2['descriptionFactory']['registerAttributeLabel'](_0x43a8c7['id'],'link\x20('+_0x43a8c7['label']['toLowerCase']()+')');_0x144ae2['descriptionFactory']['registerDescriptionCallback'](_0x3251da=>{if('attribute'!=_0x3251da['type'])return;const {data:_0x52a83b}=_0x3251da;if(!_0x52a83b||'linkHref'!=_0x52a83b['key'])return;const _0x4ac586=_0x52a83b['newValue'],_0x2043a9=_0x2869e2['locale'];return{'type':'format','content':null==_0x4ac586?c(_0x2043a9,'*Remove\x20link*'):c(_0x2043a9,'*Set\x20link:*\x20%0','\x22'+_0x4ac586+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2979b1=this['editor'],_0x413ff7=_0x2979b1['locale'];_0x2979b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x789deb=>{if('formatInline'!=_0x789deb['type'])return;const {data:_0xfdaa15}=_0x789deb;if(_0xfdaa15){if('link'==_0xfdaa15['commandName']){const _0x1e8809=_0xfdaa15['commandParams'][0x0];return{'type':'format','content':c(_0x413ff7,'*Set\x20link:*\x20%0','\x22'+_0x1e8809+'\x22')};}return'unlink'==_0xfdaa15['commandName']?{'type':'format','content':c(_0x413ff7,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x577ae7{['afterInit'](){const _0x1c515d=this['editor'],_0x47f2d6=_0x1c515d['locale'];if(!_0x1c515d['plugins']['has']('LegacyListEditing'))return;const _0x403b71=_0x1c515d['plugins']['get']('TrackChangesEditing'),_0x10bdd3=_0x1c515d['plugins']['has']('LegacyTodoListEditing');function _0x15f939(_0x4fd3f3){return()=>{const _0x4c32d4=_0x1c515d['model']['document']['selection'],_0x5998d6=_0x1c515d['commands']['get'](_0x4fd3f3);if(_0x5998d6['value'])return void _0x1c515d['execute']('paragraph',{});const _0x27f2ee=_0x4fd3f3['slice'](0x0,-0x4),_0x3f9b8a=function(_0x4e6a20,_0x4c6764,_0x4e9d1d){let _0x376ab0=Array['from'](_0x4e6a20)['filter'](_0x541a5d=>function(_0xac1659,_0x45c31f){return _0x45c31f['checkChild'](_0xac1659['parent'],'listItem')&&!_0x45c31f['isObject'](_0xac1659);}(_0x541a5d,_0x4e9d1d));_0x376ab0=_0x376ab0['filter'](_0x59d80b=>!_0x59d80b['is']('element','listItem')||_0x59d80b['getAttribute']('listType')!=_0x4c6764);const _0x4510b2=new Set();for(const _0x1176e7 of _0x376ab0)_0x1176e7['is']('element','listItem')?_0x4510b2['add'](Le(_0x1176e7)):_0x4510b2['add'](_0x1176e7);return Array['from'](_0x4510b2);}(_0x4c32d4['getSelectedBlocks'](),_0x27f2ee,_0x1c515d['model']['schema']);_0x1c515d['model']['change'](()=>{for(const _0x5233e4 of _0x3f9b8a)_0x403b71['markBlockFormat'](_0x5233e4,{'commandName':_0x4fd3f3,'commandParams':[{'forceValue':!_0x5998d6['value']}],'formatGroupId':'blockName'},Ee(_0x5233e4));});};}function _0x29bd2(_0x247bcd){return()=>{const _0x10421a=function(_0x1494f9){let _0x1dc843=Array['from'](_0x1494f9);const _0x502bfa=_0x1dc843['findIndex'](_0x5b2b31=>'listItem'!=_0x5b2b31['name']);return _0x502bfa>-0x1&&(_0x1dc843=_0x1dc843['slice'](0x0,_0x502bfa)),_0x1dc843;}(_0x1c515d['model']['document']['selection']['getSelectedBlocks']()),_0x4a493f=_0x1c515d['model']['createRange'](_0x1c515d['model']['createPositionAt'](_0x10421a[0x0],'before'),_0x1c515d['model']['createPositionAt'](_0x10421a[_0x10421a['length']-0x1],'end'));_0x1c515d['model']['change'](()=>{_0x403b71['markBlockFormat'](_0x4a493f,{'commandName':_0x247bcd,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5b1b3e){const _0x33983e=new Set();for(const _0x307289 of _0x5b1b3e){let _0x26d852=_0x307289['nextSibling'];for(;_0x26d852&&_0x26d852['getAttribute']('listIndent')>_0x307289['getAttribute']('listIndent');)_0x33983e['add'](_0x26d852),_0x26d852=_0x26d852['nextSibling'];}return Array['from'](_0x33983e);}(_0x10421a));});};}_0x403b71['enableCommand']('numberedList',_0x15f939('numberedList')),_0x403b71['enableCommand']('bulletedList',_0x15f939('bulletedList')),_0x10bdd3&&_0x403b71['enableCommand']('todoList',_0x15f939('todoList')),_0x403b71['enableCommand']('indentList',_0x29bd2('indentList')),_0x403b71['enableCommand']('outdentList',_0x29bd2('outdentList')),_0x10bdd3&&_0x403b71['enableCommand']('checkTodoList',()=>{const _0x57ebe2=_0x1c515d['commands']['get']('checkTodoList'),_0x2b5061=Array['from'](_0x57ebe2['_selectedElements']);_0x2b5061['filter'](_0xecf996=>_0xecf996['getAttribute']('todoListChecked')!=_0x57ebe2['value']),_0x1c515d['model']['change'](()=>{for(const _0x351242 of _0x2b5061)_0x403b71['markBlockFormat'](_0x351242,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x57ebe2['value']}]});});}),_0x403b71['descriptionFactory']['registerElementLabel']('listItem',_0x3f2dd2=>c(_0x47f2d6,'ELEMENT_LIST_ITEM',_0x3f2dd2)),_0x403b71['descriptionFactory']['registerDescriptionCallback'](_0x608893=>{if('formatBlock'!=_0x608893['type']&&'formatInline'!=_0x608893['type'])return;const {data:_0x5bee6b}=_0x608893;if(_0x5bee6b){if('numberedList'==_0x5bee6b['commandName']||'bulletedList'==_0x5bee6b['commandName']||'todoList'==_0x5bee6b['commandName'])switch(_0x5bee6b['commandName']['replace']('List','')){case'bulleted':return _0x47f516(c(_0x47f2d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x47f516(c(_0x47f2d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x47f516(c(_0x47f2d6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5bee6b['commandName'])return{'type':'format','content':c(_0x47f2d6,'*Indent:*\x20%0',c(_0x47f2d6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5bee6b['commandName'])return{'type':'format','content':c(_0x47f2d6,'*Outdent:*\x20%0',c(_0x47f2d6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5bee6b['commandName'])return _0x5bee6b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x47f2d6,'*Check\x20item*')}:{'type':'format','content':c(_0x47f2d6,'*Uncheck\x20item*')};}function _0x47f516(_0x61bc59){return{'type':'format','content':c(_0x47f2d6,'*Change\x20to:*\x20%0',_0x61bc59)};}});}}function Le(_0x2750a3){const _0xdb0ab4=_0x2750a3['getAttribute']('listIndent');if(0x0==_0xdb0ab4)return _0x2750a3;let _0x137133=_0x2750a3;for(;_0x2750a3['previousSibling']&&_0x2750a3['previousSibling']['is']('element','listItem');){const _0x47d5e6=_0x2750a3['previousSibling']['getAttribute']('listIndent');if(_0x47d5e6==_0xdb0ab4)_0x137133=_0x2750a3['previousSibling'];else{if(_0x47d5e6<_0xdb0ab4)break;}_0x2750a3=_0x2750a3['previousSibling'];}return _0x137133;}function Ee(_0x43c7bb){const _0x5de819=[];if(_0x43c7bb['is']('element','listItem')&&_0x43c7bb['getAttribute']('listIndent')>0x0){let _0x1fa4a1=_0x43c7bb['nextSibling'];for(;_0x1fa4a1&&'listItem'==_0x1fa4a1['name']&&_0x1fa4a1['getAttribute']('listIndent')==_0x43c7bb['getAttribute']('listIndent');)_0x5de819['push'](_0x1fa4a1),_0x1fa4a1=_0x1fa4a1['nextSibling'];}return _0x5de819;}class Q extends _0x577ae7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5406c9=this['editor']['config']['get']('list.properties'),_0x23743e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5406c9['styles']&&_0x23743e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5406c9['reversed']&&_0x23743e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5406c9['startIndex']&&_0x23743e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x23743e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1f0d5e,_0xe8bd43={}){const _0x345420=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e43b5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x345420['markMultiRangeBlockFormat'](_0x2e43b5,{'commandName':'listStyle','commandParams':[{'type':_0xe8bd43['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5088a3,_0xcf236={}){const _0x5836ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d43e3=this['_getSuggestionBlocks'](_0xa3dada=>_0xa3dada['is']('element','listItem')&&'numbered'===_0xa3dada['getAttribute']('listType'));if(_0x5d43e3['length']<0x1)return;const _0x4140a4=_0x5d43e3['map'](_0x4f71c9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f71c9,'before'),this['editor']['model']['createPositionAt'](_0x4f71c9,0x0)));this['editor']['model']['change'](()=>{_0x5836ae['markMultiRangeBlockFormat'](_0x4140a4,{'commandName':'listReversed','commandParams':[{'reversed':_0xcf236['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3b24e0,_0x216a3c={}){const _0x4c6eff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x514c43=this['_getSuggestionBlocks'](_0x3dd2f3=>_0x3dd2f3['is']('element','listItem')&&'numbered'===_0x3dd2f3['getAttribute']('listType'));if(_0x514c43['length']<0x1)return;const _0x152226=_0x514c43['map'](_0x2efad7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2efad7,'before'),this['editor']['model']['createPositionAt'](_0x2efad7,0x0)));this['editor']['model']['change'](()=>{_0x4c6eff['markMultiRangeBlockFormat'](_0x152226,{'commandName':'listStart','commandParams':[{'startIndex':_0x216a3c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xf730f4){if('formatBlock'!=_0xf730f4['type']&&'formatInline'!=_0xf730f4['type'])return;const _0xa91fd2=this['editor']['locale'],{data:_0x3619d8}=_0xf730f4;if(!_0x3619d8)return;let _0x14f3d1,_0x118a44;switch(_0x3619d8['commandName']){case'listStyle':_0x14f3d1='*Change\x20to:*\x20%0',_0x118a44={'type':'format','content':c(_0xa91fd2,_0x14f3d1,c(_0xa91fd2,this['_getTranslationKeyForListStyle'](_0x3619d8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14f3d1=_0x3619d8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x118a44={'type':'format','content':c(_0xa91fd2,_0x14f3d1)};break;case'listStart':_0x14f3d1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x118a44={'type':'format','content':c(_0xa91fd2,_0x14f3d1,_0x3619d8['commandParams'][0x0]['startIndex'])};}return _0x118a44;}['_getSuggestionBlocksForListStyle'](){const _0xda3105=this['editor']['plugins']['get']('LegacyListUtils');let _0xa88fb2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xa88fb2[0x0]?.['is']('element','listItem')&&_0xa88fb2['unshift'](..._0xda3105['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xa88fb2[_0xa88fb2['length']-0x1]?.['is']('element','listItem')&&_0xa88fb2['push'](..._0xda3105['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xa88fb2=[...new Set(_0xa88fb2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xa88fb2=_0xa88fb2['filter'](_0x55f8c6=>_0x55f8c6['is']('element','listItem'))),_0xa88fb2;}['_getSuggestionBlocks'](_0x58359c){const _0x3c86f3=this['editor']['plugins']['get']('LegacyListUtils');let _0x428476=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x58359c)['map'](_0x2ef31d=>{const _0x3c9a73=this['editor']['model']['createPositionAt'](_0x2ef31d,0x0);return[..._0x3c86f3['getSiblingNodes'](_0x3c9a73,'backward'),..._0x3c86f3['getSiblingNodes'](_0x3c9a73,'forward')];})['flat']();return _0x428476=[...new Set(_0x428476)],_0x428476;}['_getTranslationKeyForListStyle'](_0x301514){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x301514)||'default')['toUpperCase']()+'_LIST_'+_0x301514['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x577ae7{['afterInit'](){const _0x23073e=this['editor'];if(!_0x23073e['plugins']['has']('MediaEmbedEditing'))return;const _0x50e6fc=_0x23073e['plugins']['get']('TrackChangesEditing'),_0x2efd2f=_0x23073e['locale'];_0x50e6fc['enableCommand']('mediaEmbed'),_0x50e6fc['descriptionFactory']['registerElementLabel']('media',_0x252c62=>c(_0x2efd2f,'ELEMENT_MEDIA',_0x252c62)),_0x23073e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3ceda5,{writer:_0x17dbcd,options:_0x2eb470})=>{if(_0x2eb470['showSuggestionHighlights'])return _0x17dbcd['createEmptyElement']('div');},'converterPriority':'high'}),_0x23073e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x29a367,_0x1e31b2,_0x37be25)=>{_0x37be25['options']['showSuggestionHighlights']&&_0x29a367['stop']();},{'priority':'high'});}}class pt extends _0x577ae7{['afterInit'](){const _0x628850=this['editor'];_0x628850['plugins']['has']('MentionEditing')&&_0x628850['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x577ae7{['afterInit'](){const _0x2ae281=this['editor'];if(!_0x2ae281['plugins']['has']('MergeFieldsEditing'))return;const _0x5bdf0f=_0x2ae281['plugins']['get']('TrackChangesEditing'),_0x3b13d9=_0x2ae281['locale'];_0x5bdf0f['enableCommand']('insertMergeField'),_0x5bdf0f['enableCommand']('insertMergeFieldBlock'),_0x5bdf0f['enableCommand']('insertMergeFieldImage'),_0x5bdf0f['descriptionFactory']['registerElementLabel']('mergeField',_0x2cdd6a=>c(_0x3b13d9,'ELEMENT_MERGE_FIELD',_0x2cdd6a)),_0x5bdf0f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4f65cf=>c(_0x3b13d9,'ELEMENT_MERGE_FIELD',_0x4f65cf)),_0x5bdf0f['descriptionFactory']['registerDescriptionCallback'](_0x405df0=>{if('insertion'!=_0x405df0['type']&&'deletion'!=_0x405df0['type'])return;const _0x2d0ea0=_0x405df0['getContainedElement']();if(null==_0x2d0ea0)return;const _0x342d98=_0x2ae281['plugins']['get']('MergeFieldsEditing');let _0x6fcdb3;switch(_0x342d98['getMergeFieldType'](_0x2d0ea0)){case null:return;case'image':{const _0x1d20af=_0x342d98['unwrapAffixes'](_0x2d0ea0['getAttribute']('src'));_0x6fcdb3=_0x342d98['getLabel'](_0x1d20af)||_0x1d20af;break;}default:{const _0x4194b3=_0x2d0ea0['getAttribute']('id');_0x6fcdb3=_0x342d98['getLabel'](_0x4194b3)||_0x4194b3;break;}}return'insertion'==_0x405df0['type']?{'type':'insertion','content':c(_0x3b13d9,'*Insert:*\x20%0','\x22'+_0x6fcdb3+'\x22\x20'+c(_0x3b13d9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3b13d9,'*Remove:*\x20%0','\x22'+_0x6fcdb3+'\x22\x20'+c(_0x3b13d9,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x577ae7{['afterInit'](){const _0x108335=this['editor'],_0x13e700=_0x108335['plugins']['get']('TrackChangesEditing');_0x108335['plugins']['has']('MultiLevelList')&&(_0x13e700['enableDefaultAttributesIntegration']('multiLevelList'),_0x13e700['registerBlockAttribute']('listMarkerStyle'),_0x13e700['descriptionFactory']['registerDescriptionCallback'](_0xdbc52e=>this['handleDescriptions'](_0xdbc52e)));}['handleDescriptions'](_0x211b71){const _0x254191=this['editor']['locale'],{data:_0x4b16e1}=_0x211b71,_0xca4e82={'type':'format','content':''};if(_0x4b16e1&&'listMarkerStyle'==_0x4b16e1['key']){if(!_0x4b16e1['oldValue'])return{'type':'format','content':c(_0x254191,'*Set\x20format:*\x20%0',c(_0x254191,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4b16e1['newValue']+')'};if(!_0x4b16e1['newValue']){let _0x255921=_0x211b71['head'];for(;_0x255921;){if(_0x255921['data']&&'listType'==_0x255921['data']['key']&&_0x255921['data']['newValue'])return _0xca4e82;_0x255921=_0x255921['next'];}return{'type':'format','content':c(_0x254191,'*Remove\x20format:*\x20%0',c(_0x254191,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4b16e1['oldValue']+')'};}}}}class bt extends _0x577ae7{['afterInit'](){const _0x5e2772=this['editor'];if(!_0x5e2772['plugins']['has']('PageBreakEditing'))return;_0x5e2772['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x555ad2=_0x5e2772['plugins']['get']('TrackChangesEditing'),_0x5dc9f2=_0x5e2772['locale'];_0x555ad2['descriptionFactory']['registerElementLabel']('pageBreak',_0x356878=>c(_0x5dc9f2,'ELEMENT_PAGE_BREAK',_0x356878));}}class yt extends _0x577ae7{['afterInit'](){const _0x2c398a=this['editor'];if(!_0x2c398a['plugins']['has']('Paragraph'))return;const _0x4f3614=_0x2c398a['locale'],_0x5f055f=_0x2c398a['plugins']['get']('TrackChangesEditing');_0x5f055f['descriptionFactory']['registerElementLabel']('paragraph',_0x4feced=>c(_0x4f3614,'ELEMENT_PARAGRAPH',_0x4feced)),_0x5f055f['enableDefaultAttributesIntegration']('paragraph'),_0x5f055f['enableCommand']('insertParagraph'),_0x2c398a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2c398a),{'priority':'highest'}),_0x2c398a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4a9710,_0x1e77c5,_0x213b75)=>{_0x213b75['options']['showSuggestionHighlights']&&nr(_0x2c398a,{'showActiveMarker':!0x1})(_0x4a9710,_0x1e77c5,_0x213b75);},{'priority':'highest'});const _0x578d2a=_0x5f055f['descriptionFactory'];_0x578d2a['registerDescriptionCallback'](_0x38b9c0=>{if('insertion'!==_0x38b9c0['type'])return;const {start:_0x5161d0,end:_0x558212}=_0x38b9c0['getFirstRange']();if(!_0x5161d0['isTouching'](_0x558212)||!_0x5161d0['nodeAfter'])return;const _0x261e06=_0x2c398a['model']['schema'],_0x4d9476=_0x5161d0['nodeAfter'];return _0x261e06['isBlock'](_0x4d9476)&&!_0x261e06['isLimit'](_0x4d9476)&&_0x261e06['checkChild'](_0x4d9476,'$text')?{'type':'insertion','content':c(_0x4f3614,'*Insert:*\x20%0',_0x578d2a['getItemLabel'](_0x4d9476,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1df15c=this['editor'],_0x4972ec=_0x1df15c['locale'];_0x1df15c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x169b4d=>{if('formatBlock'!=_0x169b4d['type'])return;const {data:_0x37543b}=_0x169b4d;return _0x37543b&&'paragraph'==_0x37543b['commandName']?{'type':'format','content':c(_0x4972ec,'*Change\x20to:*\x20%0',c(_0x4972ec,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1ba5ab,{showActiveMarker:_0x3ddc6b=!0x0}={}){return(_0x3cc3ab,_0x3afb79,_0x87b40c)=>{const _0x26da06=_0x1ba5ab['plugins']['get']('TrackChangesEditing'),_0x5819b4=_0x3afb79['markerRange']['start'],_0x2113e2=_0x3afb79['markerRange']['end'],_0x19c203=_0x1ba5ab['model']['schema'];if(!_0x5819b4['isTouching'](_0x2113e2)||!_0x5819b4['nodeAfter'])return;const _0x202b43=_0x5819b4['nodeAfter'];if(_0x19c203['isBlock'](_0x202b43)&&!_0x19c203['isLimit'](_0x202b43)&&_0x19c203['checkChild'](_0x202b43,'$text')){if(!_0x87b40c['consumable']['consume'](_0x3afb79['markerRange'],_0x3cc3ab['name']))return;const {id:_0x414043,authorId:_0x35b238}=_0x26da06['_splitMarkerName'](_0x3afb79['markerName']),_0x126f3c=_0x87b40c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x414043,'data-author-id':_0x35b238}),_0x2f2c51=_0x87b40c['mapper']['toViewPosition'](_0x2113e2);_0x3ddc6b&&_0x26da06['activeMarkers']['includes'](_0x3afb79['markerName'])&&_0x87b40c['writer']['addClass']('ck-suggestion-marker--active',_0x126f3c),_0x87b40c['writer']['insert'](_0x2f2c51,_0x126f3c),_0x87b40c['mapper']['bindElementToMarker'](_0x126f3c,_0x3afb79['markerName']);}};}class St extends _0x577ae7{['afterInit'](){const _0x40b035=this['editor'];_0x40b035['commands']['get']('replaceSource')&&_0x40b035['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x577ae7{['afterInit'](){const _0x3754c6=this['editor'];if(!_0x3754c6['plugins']['has']('RemoveFormatEditing'))return;_0x3754c6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4169b2=this['editor'];_0x4169b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x655fad=>{if('formatBlock'!=_0x655fad['type']&&'formatInline'!=_0x655fad['type'])return;const {data:_0x1b8235}=_0x655fad;return _0x1b8235&&'removeFormat'==_0x1b8235['commandName']?{'type':'format','content':c(_0x4169b2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x577ae7{['afterInit'](){const _0x47eea1=this['editor'];if(!_0x47eea1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x19f7bf=_0x47eea1['plugins']['get']('TrackChangesEditing');_0x19f7bf['enableCommand']('goToPreviousRestrictedEditingException'),_0x19f7bf['enableCommand']('goToNextRestrictedEditingException');const _0x2ca051=_0x47eea1['plugins']['get']('RestrictedEditingModeEditing');_0x2ca051['enableCommand']('trackChanges'),_0x2ca051['enableCommand']('acceptSuggestion'),_0x2ca051['enableCommand']('discardSuggestion'),_0x2ca051['enableCommand']('acceptAllSuggestions'),_0x2ca051['enableCommand']('discardAllSuggestions'),_0x2ca051['enableCommand']('acceptSelectedSuggestions'),_0x2ca051['enableCommand']('discardSelectedSuggestions');}}class At extends _0x577ae7{['afterInit'](){const _0x3767cc=this['editor'];if(!_0x3767cc['plugins']['has']('ShiftEnter'))return;const _0x1884bb=_0x3767cc['plugins']['get']('TrackChangesEditing');_0x1884bb['enableCommand']('shiftEnter'),_0x3767cc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3767cc),{'priority':'high'}),_0x3767cc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3767cc),{'priority':'high'}),_0x3767cc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5284fe,_0x484c3e,_0x49aaa4)=>{_0x49aaa4['options']['showSuggestionHighlights']&&je(_0x3767cc,{'showActiveMarker':!0x1})(_0x5284fe,_0x484c3e,_0x49aaa4);}),_0x1884bb['descriptionFactory']['registerElementLabel']('softBreak',_0xc41edc=>c(_0x3767cc['locale'],'ELEMENT_LINE_BREAK',_0xc41edc));}}function je(_0x3290e9,{showActiveMarker:_0x19a3b1=!0x0}={}){return(_0x2c1f8a,_0x266c02,_0x469226)=>{const _0x5d31ac=_0x3290e9['plugins']['get']('TrackChangesEditing');if(!_0x469226['consumable']['test'](_0x266c02['markerRange'],_0x2c1f8a['name']))return;const _0x5101df=_0x3290e9['model'];for(const _0x2d366d of _0x266c02['markerRange']['getItems']()){if(!_0x2d366d['is']('element','softBreak'))continue;const _0x2d03eb='deletion'==_0x266c02['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2c14cc,authorId:_0x13512e}=_0x5d31ac['_splitMarkerName'](_0x266c02['markerName']),_0x63594a=_0x469226['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d03eb,'data-suggestion':_0x2c14cc,'data-author-id':_0x13512e}),_0x28d266=_0x469226['mapper']['toViewPosition'](_0x5101df['createPositionBefore'](_0x2d366d));_0x19a3b1&&_0x5d31ac['activeMarkers']['includes'](_0x266c02['markerName'])&&_0x469226['writer']['addClass']('ck-suggestion-marker--active',_0x63594a),_0x469226['writer']['insert'](_0x28d266,_0x63594a),_0x469226['mapper']['bindElementToMarker'](_0x63594a,_0x266c02['markerName']);}};}class _t extends _0x577ae7{['afterInit'](){const _0x172039=this['editor'],_0x45161d=_0x172039['model'],_0x46f8d8=_0x172039['locale'];if(!_0x172039['plugins']['has']('StandardEditingModeEditing'))return;const _0x102b5a=_0x172039['plugins']['get']('TrackChangesEditing'),_0x1fa80a='restrictedEditingException',_0x1c2e4e=_0x172039['commands']['get'](_0x1fa80a);_0x102b5a['enableCommand'](_0x1fa80a,(_0x160841,_0x1daa7b={})=>{const _0xa9f755=_0x45161d['document']['selection'];if(_0xa9f755['isCollapsed'])return void _0x160841(_0x1daa7b);const _0xec23f5=void 0x0!==_0x1daa7b['forceValue']?_0x1daa7b['forceValue']:!_0x1c2e4e['value'];_0x45161d['change'](()=>{const _0x3624ce=Array['from'](_0xa9f755['getRanges']());for(const _0x5f17ea of _0x3624ce){const _0x21a01b=_0xec23f5?[_0x5f17ea]:io(_0x1fa80a,_0x5f17ea,_0x45161d);for(const _0x4ef508 of _0x21a01b)_0x102b5a['markInlineFormat'](_0x4ef508,{'commandName':_0x1fa80a,'commandParams':[{'forceValue':_0xec23f5}]});}});}),_0x102b5a['descriptionFactory']['registerDescriptionCallback'](_0x3edc9f=>{if('formatBlock'!=_0x3edc9f['type']&&'formatInline'!=_0x3edc9f['type'])return;const {data:_0x1e9c77}=_0x3edc9f;return _0x1e9c77&&_0x1e9c77['commandName']==_0x1fa80a?_0x1e9c77['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x46f8d8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x46f8d8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x577ae7{['afterInit'](){const _0x166570=this['editor'];if(!_0x166570['plugins']['has']('Style')||!_0x166570['plugins']['has']('DataSchema'))return;const _0x2266f0=_0x166570['plugins']['get']('TrackChangesEditing'),_0x168a9a=_0x166570['locale'],_0x43e039=_0x166570['config']['get']('style')||{},_0x565f04=_0x166570['plugins']['get']('GeneralHtmlSupport'),_0x2d3d0d=_0x166570['plugins']['get']('StyleUtils')['normalizeConfig'](_0x166570['plugins']['get']('DataSchema'),_0x43e039['definitions']);_0x2266f0['enableDefaultAttributesIntegration']('style');const _0x33caba=new Set();for(const _0x19d815 of _0x2d3d0d['block']){const _0x352adc=_0x565f04['getGhsAttributeNameForElement'](_0x19d815['element']);_0x33caba['add'](_0x352adc);}const _0x1cec18=new Set();for(const _0x5e4d7a of _0x2d3d0d['inline']){const _0x3d2eaa=_0x565f04['getGhsAttributeNameForElement'](_0x5e4d7a['element']);_0x1cec18['add'](_0x3d2eaa);for(const _0x4f0a19 of _0x5e4d7a['ghsAttributes'])_0x1cec18['add'](_0x4f0a19);}for(const _0x1e15ec of _0x33caba)_0x2266f0['registerBlockAttribute'](_0x1e15ec),_0x2266f0['descriptionFactory']['registerAttributeLabel'](_0x1e15ec,c(_0x168a9a,'FORMAT_STYLE'));for(const _0x4a8bc6 of _0x1cec18)_0x2266f0['registerInlineAttribute'](_0x4a8bc6),_0x2266f0['descriptionFactory']['registerAttributeLabel'](_0x4a8bc6,c(_0x168a9a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15d74d=this['editor'],_0x3d8e9f=_0x15d74d['locale'];_0x15d74d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf01857=>{if('formatBlock'!=_0xf01857['type']&&'formatInline'!=_0xf01857['type'])return;const {data:_0x356df8}=_0xf01857;return _0x356df8&&'style'===_0x356df8['commandName']?_0x356df8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3d8e9f,'*Set\x20format:*\x20%0',_0x356df8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x3d8e9f,'*Remove\x20format:*\x20%0',_0x356df8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x577ae7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x45f30a){super(_0x45f30a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4ac5b3=this['editor'],_0x539c07=_0x4ac5b3['model']['document']['selection'];if(!_0x4ac5b3['plugins']['has']('TableEditing'))return;const _0x6f1c7=_0x4ac5b3['locale'],_0x22060a=_0x4ac5b3['plugins']['get']('TrackChangesEditing'),_0x5ed4c4=_0x4ac5b3['plugins']['get']('TableUtils');_0x22060a['descriptionFactory']['registerElementLabel']('table',_0x1373e7=>c(_0x6f1c7,'ELEMENT_TABLE',_0x1373e7)),this['_setupColumnsRowsFixing'](),_0x22060a['enableCommand']('insertTable'),_0x22060a['enableCommand']('selectTableRow'),_0x22060a['enableCommand']('selectTableColumn');for(const _0x5df13c of['insertTableRowAbove','insertTableRowBelow']){const _0x262182=_0x4ac5b3['commands']['get'](_0x5df13c);_0x22060a['enableCommand'](_0x5df13c,_0x4abc98=>{_0x4ac5b3['model']['change'](_0x389cc0=>{_0x4abc98();const _0x218b5c='above'===_0x262182['order'],_0x37d333=_0x5ed4c4['getSelectionAffectedTableCells'](_0x539c07),_0x2ec529=_0x5ed4c4['getRowIndexes'](_0x37d333),_0x3391d3=_0x218b5c?_0x2ec529['first']-0x1:_0x2ec529['last']+0x1,_0xed1a4b=_0x37d333[0x0]['findAncestor']('table'),_0x48f470=_0x5ed4c4['createTableWalker'](_0xed1a4b,{'startRow':_0x3391d3,'endRow':_0x3391d3}),_0x4f45e0=Array['from'](_0x48f470)['map'](_0xfec156=>_0x389cc0['createRangeOn'](_0xfec156['cell']));_0x22060a['markMultiRangeInsertion'](_0x4f45e0,'tableRow');});});}for(const _0xbad47f of['insertTableColumnLeft','insertTableColumnRight']){const _0x79cb06=_0x4ac5b3['commands']['get'](_0xbad47f);_0x22060a['enableCommand'](_0xbad47f,_0x43041f=>{_0x4ac5b3['model']['change'](_0x2a9418=>{_0x43041f();const _0x58da67='left'===_0x79cb06['order'],_0x3251d2=_0x5ed4c4['getSelectionAffectedTableCells'](_0x539c07),_0x3e9ec7=_0x5ed4c4['getColumnIndexes'](_0x3251d2),_0x3a5623=_0x58da67?_0x3e9ec7['first']-0x1:_0x3e9ec7['last']+0x1,_0x5f3b65=_0x3251d2[0x0]['findAncestor']('table'),_0x530a14=_0x5ed4c4['createTableWalker'](_0x5f3b65,{'startRow':0x0,'column':_0x3a5623,'includeAllSlots':!0x1}),_0x32c2ac=Array['from'](_0x530a14)['map'](_0x36dc1e=>_0x2a9418['createRangeOn'](_0x36dc1e['cell']));_0x22060a['markMultiRangeInsertion'](_0x32c2ac,'tableColumn');});});}for(const _0x38d894 of['removeTableRow','removeTableColumn']){const _0x931bb3=_0x38d894['substr'](0xb),_0x1247ce=_0x931bb3['toLowerCase'](),_0xb32cfc=_0x1247ce['substr'](0x0,0x3)+'span',_0x566fab='table'+_0x931bb3,_0x1a55ec='min'+_0x931bb3,_0x53b3a9='max'+_0x931bb3;_0x22060a['enableCommand'](_0x38d894,()=>{_0x4ac5b3['model']['change'](_0x50eeaf=>{const _0x3aaefd=_0x5ed4c4['getSelectionAffectedTableCells'](_0x539c07),_0x5dd29e=_0x3aaefd[0x0]['findAncestor']('table');let _0x239d66;if('removeTableRow'==_0x38d894){const _0x1399ba=_0x5ed4c4['getRowIndexes'](_0x3aaefd);_0x239d66={'startRow':_0x1399ba['first'],'endRow':_0x1399ba['last'],'includeAllSlots':!0x0};}else{const _0x1d8dd1=_0x5ed4c4['getColumnIndexes'](_0x3aaefd);_0x239d66={'startColumn':_0x1d8dd1['first'],'endColumn':_0x1d8dd1['last'],'includeAllSlots':!0x0};}const _0x2affd1=_0x5ed4c4['createTableWalker'](_0x5dd29e,_0x239d66),_0x275abc=Array['from'](_0x2affd1)['map'](({cell:_0x5dbbf7})=>_0x5dbbf7),_0x146e23=xe(_0x275abc['filter'](_0x123ebe=>_0x123ebe['hasAttribute'](_0xb32cfc))),_0x2cd40d=xe(_0x275abc['filter'](_0x5214f6=>!_0x5214f6['hasAttribute'](_0xb32cfc)))['map'](_0x613ae4=>_0x50eeaf['createRangeOn'](_0x613ae4)),_0x4cea0f=_0x22060a['markMultiRangeDeletion'](_0x2cd40d,_0x566fab);if(_0x4cea0f&&('tableRow'==_0x4cea0f['subType']||'tableColumn'==_0x4cea0f['subType'])){const _0x1addcf=this['_getSuggestionCoords'](_0x4cea0f);for(const _0x10aa57 of _0x146e23){const _0x1d9ce3=_0x50eeaf['createRangeOn'](_0x10aa57),_0x1ca20b=_0x5ed4c4['getCellLocation'](_0x10aa57),_0x252e12=_0x10aa57['getAttribute'](_0xb32cfc)-0x1,_0x56aac3=_0x1addcf[_0x1a55ec],_0x2c1666=_0x1addcf[_0x53b3a9];_0x56aac3<=_0x1ca20b[_0x1247ce]&&_0x1ca20b[_0x1247ce]+_0x252e12<=_0x2c1666&&_0x4cea0f['addRange'](_0x1d9ce3);}}});});}function _0x32b595(_0x4ebbda){const _0x50654a=Array['from'](_0x539c07['getRanges']())['map'](_0x31bcbf=>_0x3a5e87['fromRange'](_0x31bcbf));_0x4ac5b3['model']['change'](_0x2f8b63=>{const _0x2b47fc=_0x2f8b63['batch'];_0x4ebbda=_0x4ebbda['filter'](_0x2a30e5=>'$graveyard'!=_0x2a30e5['root']['rootName']),_0x2f8b63['setSelection'](_0x4ebbda),_0x4ac5b3['commands']['get']('removeTableRow')['refresh'](),_0x4ac5b3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4ac5b3['model']['enqueueChange'](()=>{_0x4ac5b3['model']['enqueueChange'](_0x2b47fc,_0x297126=>{const _0x11942b=_0x50654a['filter'](_0x26af0d=>'$graveyard'!=_0x26af0d['root']['rootName']);_0x11942b['length']>0x0&&_0x297126['setSelection'](_0x11942b);for(const _0x251d41 of _0x50654a)_0x251d41['detach']();});});});}function _0x580c4a(_0x305bfb){_0x4ac5b3['model']['change'](_0x5df0f5=>{const _0x1d7958=Array['from'](_0x539c07['getRanges']())['map'](_0x3e04ea=>_0x3a5e87['fromRange'](_0x3e04ea)),_0x148c25=[];for(const _0x2c88b9 of _0x305bfb)for(const _0x309708 of _0x2c88b9['getItems']({'shallow':!0x0}))_0x148c25['push'](_0x309708);for(const _0x19e084 of _0x148c25)'$graveyard'!=_0x19e084['root']['rootName']&&(_0x5df0f5['setSelection'](_0x5df0f5['createPositionAt'](_0x19e084,0x0)),_0x4ac5b3['commands']['get']('removeTableColumn')['refresh'](),_0x4ac5b3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4d21da=_0x1d7958['filter'](_0x1462b7=>'$graveyard'!=_0x1462b7['root']['rootName']);_0x4d21da['length']>0x0&&_0x5df0f5['setSelection'](_0x4d21da);for(const _0x2b1f82 of _0x1d7958)_0x2b1f82['detach']();});}function _0x125281(_0x494051,_0x538946){return _0x538946['every'](_0x2c0924=>_0x494051['some'](_0xb860f7=>_0xb860f7['end']['isEqual'](_0x2c0924['start'])||_0x2c0924['end']['isEqual'](_0xb860f7['start'])));}function _0x10106e(_0x52dae3,_0x2e4811){return!_0x52dae3['some'](_0x5e4ee3=>_0x2e4811['some'](_0x4a939=>_0x5e4ee3['isIntersecting'](_0x4a939)))&&_0x52dae3['some'](_0x1b7534=>_0x2e4811['some'](_0x3d1e23=>_0x1b7534['end']['isTouching'](_0x3d1e23['start'])));}_0x4ac5b3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a0c3e,_0x25c71a,_0x424cbd)=>{if(!_0x424cbd['options']['showSuggestionHighlights'])return;const _0x22ca0f=_0x25c71a['item'];if(!_0x22ca0f||!_0x22ca0f['is']('element','tableCell'))return;const _0x282c52=_0x424cbd['mapper']['toViewElement'](_0x22ca0f);if(_0x282c52){const {id:_0x5e02fb,authorId:_0x435dc9}=_0x22060a['_splitMarkerName'](_0x25c71a['markerName']);_0x231675(_0x282c52,_0x424cbd['writer'],(_0x5b5d82,_0x2a9ed8,_0x4b11d5)=>{_0x4b11d5['addClass'](_0x5894de(_0x2a9ed8['classes']),_0x5b5d82),_0x4b11d5['setAttribute']('data-suggestion-id',_0x5e02fb,_0x5b5d82),_0x4b11d5['setAttribute']('data-author-id',_0x435dc9,_0x5b5d82);},(_0x3fc512,_0x3399ba,_0x408542)=>{_0x408542['removeClass'](_0x5894de(_0x3399ba['classes']),_0x3fc512),_0x408542['removeAttribute']('data-suggestion-id',_0x3fc512),_0x408542['removeAttribute']('data-author-id',_0x3fc512);});}},{'priority':'highest'}),_0x22060a['descriptionFactory']['registerDescriptionCallback'](_0x3ed7a2=>{if('insertion'!=_0x3ed7a2['type']&&'deletion'!=_0x3ed7a2['type'])return;const _0x106ef8=_0x3ed7a2['getContainedElement']();if(null!=_0x106ef8&&_0x106ef8['is']('element','table')){if('insertion'==_0x3ed7a2['type']){const _0x554a4d=_0x3ed7a2['getItems']()['filter'](_0x6fb1ab=>_0x6fb1ab['is']('$textProxy'))['map'](_0x16d152=>_0x16d152['data']);if(_0x554a4d['length'])return{'type':'insertion','content':c(_0x6f1c7,'*Insert:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x554a4d['join']('\x20')+'\x22'))};}if('deletion'==_0x3ed7a2['type']){const _0xdebf9e=_0x3ed7a2['getItems']()['filter'](_0x2f6624=>_0x2f6624['is']('$textProxy'))['map'](_0x3bc3b5=>_0x3bc3b5['data']);if(_0xdebf9e['length'])return{'type':'deletion','content':c(_0x6f1c7,'*Remove:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xdebf9e['join']('\x20')+'\x22'))};}}}),_0x22060a['descriptionFactory']['registerDescriptionCallback'](_0x4193db=>{if('tableRow'==_0x4193db['subType']){const _0x2f15db=_0x4193db['getItems']()['filter'](_0xaad521=>_0xaad521['is']('$textProxy'))['map'](_0x18a282=>_0x18a282['data']),_0x57c3a2=this['_getSuggestionCoords'](_0x4193db),_0x4e878a=_0x57c3a2['maxRow']-_0x57c3a2['minRow']+0x1;if('insertion'==_0x4193db['type'])return _0x2f15db['length']?{'type':'insertion','content':c(_0x6f1c7,'*Insert:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4e878a,'\x22'+_0x2f15db['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x6f1c7,'*Insert:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_ROW',_0x4e878a))};if('deletion'==_0x4193db['type'])return _0x2f15db['length']?{'type':'deletion','content':c(_0x6f1c7,'*Remove:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4e878a,'\x22'+_0x2f15db['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x6f1c7,'*Remove:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_ROW',_0x4e878a))};}if('tableColumn'==_0x4193db['subType']){const _0x3f264e=_0x4193db['getItems']()['filter'](_0x12903f=>_0x12903f['is']('$textProxy'))['map'](_0x545653=>_0x545653['data']),_0x1990de=this['_getSuggestionCoords'](_0x4193db),_0x34cae3=_0x1990de['maxColumn']-_0x1990de['minColumn']+0x1;if('insertion'==_0x4193db['type'])return _0x3f264e['length']?{'type':'insertion','content':c(_0x6f1c7,'*Insert:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34cae3,'\x22'+_0x3f264e['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x6f1c7,'*Insert:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_COLUMN',_0x34cae3))};if('deletion'==_0x4193db['type'])return _0x3f264e['length']?{'type':'deletion','content':c(_0x6f1c7,'*Remove:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34cae3,'\x22'+_0x3f264e['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x6f1c7,'*Remove:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_COLUMN',_0x34cae3))};}}),_0x22060a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x32b595),_0x22060a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x32b595),_0x22060a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x580c4a),_0x22060a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x580c4a),_0x22060a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x125281),_0x22060a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x125281),_0x22060a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x10106e),_0x22060a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x10106e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2f6d12=this['editor'],_0x143cf9=_0x2f6d12['model']['document']['selection'];return(_0x2f0d7e,_0x51e4a9)=>{_0x2f6d12['model']['change'](_0x4ba888=>{const {commandName:_0xa66126,commandParams:_0x31c232}=_0x51e4a9;let _0x20b5f5=_0x2f0d7e[0x0]['end']['nodeBefore'];_0x31c232&&_0x31c232[0x0]&&!0x1===_0x31c232[0x0]['forceValue']&&(_0x20b5f5=_0x2f0d7e[0x0]['start']['nodeAfter']);const _0x57d748=_0x4ba888['createRangeIn'](_0x20b5f5);if('$graveyard'==_0x57d748['root']['rootName'])return;const _0x3b353b=Array['from'](_0x143cf9['getRanges']())['map'](_0x819014=>_0x3a5e87['fromRange'](_0x819014));_0x4ba888['setSelection'](_0x57d748),_0x2f6d12['commands']['get'](_0xa66126)['refresh'](),_0x31c232['push']({'forceDefaultExecution':!0x0}),_0x2f6d12['execute'](_0xa66126,..._0x31c232);const _0x2393ef=_0x3b353b['filter'](_0x32896a=>'$graveyard'!=_0x32896a['root']['rootName']);_0x2393ef['length']>0x0&&_0x4ba888['setSelection'](_0x2393ef);for(const _0x4f679f of _0x3b353b)_0x4f679f['detach']();});};}['_getCoordsForCells'](_0x2e512c){const _0x5491d7=this['editor']['plugins']['get']('TableUtils');let _0x10a7b8=Number['MAX_SAFE_INTEGER'],_0x1988f8=Number['MIN_SAFE_INTEGER'],_0x3f1856=Number['MAX_SAFE_INTEGER'],_0x5f0488=Number['MIN_SAFE_INTEGER'];for(const _0x37f6e2 of _0x2e512c){if('$graveyard'==_0x37f6e2['root']['rootName'])continue;const {row:_0x5a1b30,column:_0x309435}=_0x5491d7['getCellLocation'](_0x37f6e2),_0x2c391d=_0x37f6e2['hasAttribute']('rowspan')?_0x37f6e2['getAttribute']('rowspan')-0x1:0x0,_0x3bc7b8=_0x37f6e2['hasAttribute']('colspan')?_0x37f6e2['getAttribute']('colspan')-0x1:0x0;_0x10a7b8=_0x5a1b30<_0x10a7b8?_0x5a1b30:_0x10a7b8,_0x1988f8=_0x5a1b30+_0x2c391d>_0x1988f8?_0x5a1b30+_0x2c391d:_0x1988f8,_0x3f1856=_0x309435<_0x3f1856?_0x309435:_0x3f1856,_0x5f0488=_0x309435+_0x3bc7b8>_0x5f0488?_0x309435+_0x3bc7b8:_0x5f0488;}return{'minRow':_0x10a7b8,'maxRow':_0x1988f8,'minColumn':_0x3f1856,'maxColumn':_0x5f0488};}['_setupColumnsRowsFixing'](){const _0xc551a=this['editor'],_0x1206d7=_0xc551a['plugins']['get']('TrackChangesEditing'),_0x1668ba=_0xc551a['plugins']['get']('TableUtils');_0xc551a['model']['document']['on']('change:data',()=>{const _0x509fee=Array['from'](_0xc551a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b3333,data:_0x3ec0f7}of _0x509fee){const {group:_0x8e4cfa,id:_0x3134ba,subType:_0x488d61}=_0x1206d7['_splitMarkerName'](_0x3b3333);if('suggestion'!=_0x8e4cfa)continue;if(null!=_0x3ec0f7['oldRange'])continue;const _0x6eb214=_0x1206d7['getSuggestion'](_0x3134ba);this['_tablePostFixingSubtypes']['includes'](_0x488d61)&&this['_tableSuggestions']['add'](_0x6eb214);}},{'priority':'low'});const _0x2b1225=(_0x393483,_0x826c45)=>{let _0x592e99=!0x1;const _0x22c152=_0x826c45['createRangeOn'](_0x393483),_0x4787be=_0x393483['findAncestor']('table'),_0x45e5bc=_0x1668ba['getCellLocation'](_0x393483);for(const _0xaedc25 of this['_tableSuggestions']){const _0x551296=_0xaedc25['subType'],_0x31b4c1=_0x551296['startsWith']('tablePaste'),_0x5e6eb3=_0x551296['substr'](_0x31b4c1?0xa:0x5),_0x3f70a3=_0x5e6eb3['toLowerCase'](),_0x2d2a96=_0x3f70a3['substr'](0x0,0x3)+'span',_0x5e3063='min'+_0x5e6eb3,_0x457b7b='max'+_0x5e6eb3;if(!_0xaedc25['isInContent'])continue;if(_0x4787be!=_0xaedc25['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xaedc25['isIntersectingWithRange'](_0x22c152))continue;const _0x3e8a83=_0x393483['hasAttribute'](_0x2d2a96)?_0x393483['getAttribute'](_0x2d2a96)-0x1:0x0,_0x5a0f33=this['_getSuggestionCoords'](_0xaedc25),_0x388f6c=_0x5a0f33[_0x5e3063],_0xfa2958=_0x5a0f33[_0x457b7b];_0x388f6c<=_0x45e5bc[_0x3f70a3]&&_0x45e5bc[_0x3f70a3]+_0x3e8a83<=_0xfa2958&&(_0xaedc25['addRange'](_0x22c152),_0x592e99=!0x0);}return _0x592e99;};_0xc551a['model']['document']['registerPostFixer'](_0x2e9727=>{let _0x1e4833=!0x1;for(const _0x20a2ef of _0xc551a['model']['document']['differ']['getChanges']())if('insert'==_0x20a2ef['type']){if('tableRow'==_0x20a2ef['name']){for(const _0x32a1ba of _0x20a2ef['position']['nodeAfter']['getChildren']())_0x1e4833=_0x1e4833||_0x2b1225(_0x32a1ba,_0x2e9727);}else'tableCell'==_0x20a2ef['name']&&(_0x1e4833=_0x1e4833||_0x2b1225(_0x20a2ef['position']['nodeAfter'],_0x2e9727));}return _0x1e4833;});}['_getSuggestionCoords'](_0x125d5e){return this['_getCoordsForCells'](_0x125d5e['getRanges']()['map'](_0x2a87df=>_0x2a87df['start']['nodeAfter']));}}function xe(_0x13889e){return Array['from'](new Set(_0x13889e)['values']());}class Nt extends _0x577ae7{static get['requires'](){return[Ct];}['afterInit'](){const _0x347354=this['editor'],_0x1e463c=_0x347354['model']['document']['selection'],_0x25f0ec=_0x347354['locale'];if(!_0x347354['plugins']['has']('TableEditing'))return;const _0x22346d=_0x347354['plugins']['get']('TrackChangesEditing'),_0xd9ffc0=_0x347354['plugins']['get']('TableUtils'),_0xe9e17f=_0x347354['plugins']['get'](Ct);_0xe9e17f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x22346d['enableCommand']('mergeTableCells',()=>{const _0x4056b1=_0xd9ffc0['getSelectionAffectedTableCells'](_0x347354['model']['document']['selection']);_0x347354['model']['change'](()=>{_0x22346d['markMultiRangeBlockFormat'](_0x4056b1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x347354['commands']['get']('mergeTableCells')['on']('execute',(_0x6eca01,_0x275c47)=>{_0x347354['commands']['get']('trackChanges')['value']&&(_0x275c47['length']>0x0&&_0x275c47[_0x275c47['length']-0x1]&&_0x275c47[_0x275c47['length']-0x1]['forceDefaultExecution']||_0x22346d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x6eca01['stop']());},{'priority':'highest'});for(const _0x1ed8bd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4d38bd=_0x347354['commands']['get'](_0x1ed8bd);_0x22346d['enableCommand'](_0x1ed8bd,()=>{const _0x1ff74e=_0x347354['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x541495=>_0x541495['is']('element','tableCell')),_0x5c54d8=_0x4d38bd['value'];_0x347354['model']['change'](()=>{_0x22346d['markMultiRangeBlockFormat']([_0x1ff74e,_0x5c54d8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3f06b4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x42e9ee=_0x347354['commands']['get'](_0x3f06b4);_0x22346d['enableCommand'](_0x3f06b4,()=>{const _0x298267=_0xd9ffc0['getSelectionAffectedTableCells'](_0x347354['model']['document']['selection'])[0x0],_0xb98314=_0x298267['findAncestor']('table'),{column:_0x12390e,row:_0x1fd7cf}=_0xd9ffc0['getCellLocation'](_0x298267);let _0x431f3b=[];if('horizontally'==_0x42e9ee['direction']){const _0x2ae537=_0xd9ffc0['createTableWalker'](_0xb98314,{'startRow':_0x1fd7cf,'endRow':_0x1fd7cf,'includeAllSlots':!0x0});_0x431f3b=Array['from'](_0x2ae537)['map'](_0x1dd5c2=>_0x1dd5c2['cell']);}else{const _0x248d41=_0xd9ffc0['createTableWalker'](_0xb98314,{'column':_0x12390e,'includeAllSlots':!0x0});_0x431f3b=Array['from'](_0x248d41)['map'](_0x4e97fd=>_0x4e97fd['cell']);}_0x347354['model']['change'](_0x355c97=>{_0x22346d['markBlockFormat'](_0x355c97['createRangeOn'](_0x298267),{'commandName':_0x3f06b4,'commandParams':[]},_0x431f3b,_0x3f06b4);});});}_0x22346d['descriptionFactory']['registerDescriptionCallback'](_0x3e1113=>{if('formatBlock'!=_0x3e1113['type']&&'formatInline'!=_0x3e1113['type'])return;const {data:_0x2fac30}=_0x3e1113;return _0x2fac30&&'mergeTableCells'==_0x2fac30['commandName']?{'type':'format','content':c(_0x25f0ec,'*Merge\x20cells*')}:void 0x0;}),_0x22346d['descriptionFactory']['registerDescriptionCallback'](_0x4dc60c=>{if('formatBlock'!=_0x4dc60c['type']&&'formatInline'!=_0x4dc60c['type'])return;const {data:_0x140299}=_0x4dc60c;return _0x140299?'splitTableCellVertically'==_0x140299['commandName']?{'type':'format','content':c(_0x25f0ec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x140299['commandName']?{'type':'format','content':c(_0x25f0ec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5d68bd=_0xe9e17f['_acceptFormatSuggestionCallbackFactory']();for(const _0x3c8e39 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x22346d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c8e39,'accept',_0x5d68bd);for(const _0x595984 of['splitTableCellVertically','splitTableCellHorizontally'])_0x22346d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x595984,'accept',_0x5d68bd);_0x22346d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x475f1a=>{_0x347354['model']['change'](_0x4a4a67=>{const _0x2c690b=Array['from'](_0x1e463c['getRanges']())['map'](_0x12736e=>_0x3a5e87['fromRange'](_0x12736e));_0x4a4a67['setSelection'](_0x475f1a),_0x347354['commands']['get']('mergeTableCells')['refresh'](),_0x347354['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x47c956=_0x2c690b['filter'](_0x4413a3=>'$graveyard'!=_0x4413a3['root']['rootName']);_0x47c956['length']>0x0&&_0x4a4a67['setSelection'](_0x47c956);for(const _0xdd1280 of _0x2c690b)_0xdd1280['detach']();});});for(const _0x3c0d52 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x465859=_0x347354['commands']['get'](_0x3c0d52);_0x465859['on']('set:isEnabled',(_0x442075,_0x2e2a28,_0xdc49c2)=>{if(_0xdc49c2){const _0x7aa78b=_0x347354['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x47aec6=>_0x47aec6['is']('element','tableCell'));this['_areMergableCells'](_0x465859['value'],_0x7aa78b)||(_0x442075['return']=!0x1,_0x442075['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x44a837=this['editor']['commands']['get']('mergeTableCells'),_0x9bee34=this['editor']['plugins']['get']('TableUtils');if(!_0x44a837['isEnabled'])return!0x1;const _0x3af995=_0x9bee34['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3d0481 of _0x3af995)for(const _0x17af20 of _0x3af995)if(_0x3d0481!=_0x17af20&&!this['_areMergableCells'](_0x3d0481,_0x17af20))return!0x1;return!0x0;}['_areMergableCells'](_0x21daeb,_0x207c8f){const _0x385d39=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dd60f=this['editor']['model']['createRangeOn'](_0x21daeb),_0x5d0e79=this['editor']['model']['createRangeOn'](_0x207c8f),_0xa8c6c3=new Set(),_0x15c288=new Set();for(const _0x13d615 of _0x385d39['getSuggestions']())if(('insertion'==_0x13d615['type']||'deletion'==_0x13d615['type']||'mergeTableCells'==_0x13d615['subType'])&&_0x13d615['isInContent']){for(const _0x2c92a4 of _0x13d615['getRanges']())_0x2c92a4['containsRange'](_0x5dd60f,!0x0)&&_0xa8c6c3['add'](_0x13d615['type']+':'+_0x13d615['author']['id']),_0x2c92a4['containsRange'](_0x5d0e79,!0x0)&&_0x15c288['add'](_0x13d615['type']+':'+_0x13d615['author']['id']);}if(_0xa8c6c3['size']!=_0x15c288['size'])return!0x1;for(const _0x3829a9 of _0xa8c6c3)if(!_0x15c288['has'](_0x3829a9))return!0x1;return!0x0;}}class Dt extends _0x577ae7{static get['requires'](){return[Ct];}['afterInit'](){const _0x11d837=this['editor'];if(!_0x11d837['plugins']['has']('TableEditing'))return;const _0x592ac7=_0x11d837['locale'],_0x2b0229=_0x11d837['plugins']['get']('TrackChangesEditing');_0x2b0229['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2b0229['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2b0229['registerBlockAttribute']('headingRows'),_0x2b0229['registerBlockAttribute']('headingColumns'),_0x2b0229['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x592ac7,'FORMAT_HEADER_ROW')),_0x2b0229['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x592ac7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5b22a3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f0dd1=this['editor']['plugins']['get']('TableUtils'),_0x578104=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1c1f52({showActiveMarker:_0x4fdbac=!0x0,setDataAttribute:_0x2cf2b8=!0x0}={}){return(_0x17d4a8,_0x2dcc72,_0x101f3a)=>{const {type:_0x24da2c,id:_0x2e358e}=_0x5b22a3['_splitMarkerName'](_0x2dcc72['markerName']),_0x8988c=_0x5b22a3['getSuggestion'](_0x2e358e),_0x2cf9a7=_0x8988c['data'];if('formatBlock'!=_0x8988c['type']||!_0x2cf9a7||'setTableColumnHeader'!=_0x2cf9a7['commandName'])return;if(_0x2dcc72['item'])return void _0x17d4a8['stop']();if(!_0x101f3a['consumable']['consume'](_0x2dcc72['markerRange'],_0x17d4a8['name']))return;const _0x1abff4=_0x2dcc72['markerRange']['start']['nodeAfter'],_0x44b970=_0x2dcc72['markerRange']['end']['nodeBefore'],_0x505c65=_0x1abff4['parent']['parent'],{column:_0x56bce4}=_0x5f0dd1['getCellLocation'](_0x1abff4),{column:_0x53be3c}=_0x5f0dd1['getCellLocation'](_0x44b970);for(let _0x1b97d7=_0x56bce4;_0x1b97d7<=_0x53be3c;_0x1b97d7++){const _0x2960b0=_0x5f0dd1['createTableWalker'](_0x505c65,{'column':_0x1b97d7,'includeAllSlots':!0x1});for(const _0x4fdc3b of _0x2960b0){const _0x596b4d=_0x4fdc3b['cell'],_0x1265fb=_0x101f3a['mapper']['toViewElement'](_0x596b4d);_0x101f3a['writer']['addClass']('ck-suggestion-marker-'+_0x24da2c,_0x1265fb),_0x2cf2b8&&_0x101f3a['writer']['setAttribute']('data-suggestion',_0x2e358e,_0x1265fb),_0x101f3a['mapper']['bindElementToMarker'](_0x1265fb,_0x2dcc72['markerName']),_0x4fdbac&&(_0x5b22a3['activeMarkers']['includes'](_0x2dcc72['markerName'])?_0x101f3a['writer']['addClass']('ck-suggestion-marker--active',_0x1265fb):_0x101f3a['writer']['removeClass']('ck-suggestion-marker--active',_0x1265fb));}}};}_0x5b22a3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x578104),_0x5b22a3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x578104),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1c1f52(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f5ccc,_0x46fc50,_0x4f68cc)=>{_0x4f68cc['options']['showSuggestionHighlights']&&_0x1c1f52({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1f5ccc,_0x46fc50,_0x4f68cc);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x46c538,_0xc8ac9e,_0x1ecf1c)=>{const {type:_0x56a7e3,id:_0x15f219}=_0x5b22a3['_splitMarkerName'](_0xc8ac9e['markerName']),_0x3d3405=_0x5b22a3['getSuggestion'](_0x15f219),_0x4f53ba=_0x3d3405['data'];if('formatBlock'!=_0x3d3405['type']||!_0x4f53ba||'setTableColumnHeader'!=_0x4f53ba['commandName'])return;const _0x4c66bc=_0x1ecf1c['mapper']['markerNameToElements'](_0xc8ac9e['markerName']);if(_0x4c66bc){for(const _0x1d013e of _0x4c66bc)_0x1ecf1c['writer']['removeClass']('ck-suggestion-marker-'+_0x56a7e3,_0x1d013e),_0x1ecf1c['writer']['removeClass']('ck-suggestion-marker--active',_0x1d013e),_0x1ecf1c['writer']['removeAttribute']('data-suggestion',_0x1d013e),_0x1ecf1c['mapper']['unbindElementFromMarkerName'](_0x1d013e,_0xc8ac9e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48e251=this['editor'],_0x16b15f=_0x48e251['locale'];function _0x27cc4b(_0x2c7acd){return{'type':'format','content':c(_0x16b15f,'*Format:*\x20%0',_0x2c7acd)};}_0x48e251['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2747d7=>{if('formatBlock'!=_0x2747d7['type'])return;const {data:_0x506546}=_0x2747d7;if(_0x506546){if('setTableRowHeader'==_0x506546['commandName']){const _0x4f115d=_0x506546['commandParams'][0x0]['forceValue'];return _0x27cc4b(c(_0x16b15f,_0x4f115d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x506546['commandName']){const _0x4e94fb=_0x506546['commandParams'][0x0]['forceValue'];return _0x27cc4b(c(_0x16b15f,_0x4e94fb?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x577ae7{['afterInit'](){const _0x2d4cdd=this['editor'],_0x488595=_0x2d4cdd['locale'],_0x15d847=_0x2d4cdd['plugins']['get']('TrackChangesEditing');function _0x59095d(_0x4e896d){return{'type':'format','content':''+c(_0x488595,'*Set\x20table\x20type:*\x20%0',_0x4e896d)};}_0x2d4cdd['plugins']['has']('TableLayout')&&(_0x15d847['enableCommand']('insertTableLayout'),_0x15d847['enableDefaultAttributesIntegration']('tableType'),_0x15d847['registerBlockAttribute']('tableType'),_0x15d847['descriptionFactory']['registerElementLabel'](_0x3e6f9f=>_0x3e6f9f['is']('element','table')&&'layout'===_0x3e6f9f['getAttribute']('tableType'),_0x442728=>c(_0x488595,'ELEMENT_LAYOUT_TABLE',_0x442728)),_0x15d847['descriptionFactory']['registerDescriptionCallback'](_0x5924e8=>{const {data:_0x49a09e}=_0x5924e8;if(_0x49a09e&&'tableType'==_0x49a09e['key'])switch(_0x49a09e['newValue']){case'layout':return _0x59095d(c(_0x488595,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x59095d(c(_0x488595,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x26639e=>[_0x26639e,null]));class $t extends _0x577ae7{static get['requires'](){return[Ct];}['afterInit'](){const _0x482315=this['editor'];if(!_0x482315['plugins']['has']('TableClipboard'))return;const _0x4b7845=_0x482315['plugins']['get']('TrackChangesEditing'),_0x48540a=_0x482315['plugins']['get']('TableUtils'),_0x22ee83=_0x482315['plugins']['get'](Ct),_0xe4392f=_0x482315['plugins']['get']('TableClipboard'),_0x5503f5=_0x482315['plugins']['get']('TableSelection'),_0x1df8d3=_0x482315['plugins']['get'](_0x1a1079);_0x22ee83['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x482315['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x482315['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4a1783=null,_0x288cac=!0x1;_0x1df8d3['on']('contentInsertion',(_0x109d89,_0x33dcbf)=>{_0x288cac='paste'===_0x33dcbf['method'];}),_0x482315['model']['on']('insertContent',(_0x18adb0,_0x215d8a)=>{if(!_0x288cac&&null===_0x5503f5['getSelectedTableCells']())return;const [_0x361e3f,_0x2489e7]=_0x215d8a,_0x4c182f=_0x215d8a[_0x215d8a['length']-0x1];_0x4c182f&&_0x4c182f['forceDefaultExecution']||_0x4b7845['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3449ff,_0x14bfd9,_0x4668bd,_0x5b2f68,_0x4eb0b5){if(_0x14bfd9&&!_0x14bfd9['is']('documentSelection'))return!0x1;const _0x40c5cf=_0x4eb0b5['getTableIfOnlyTableInContent'](_0x3449ff,_0x4668bd);if(!_0x40c5cf||!He(_0x40c5cf,void 0x0,_0x5b2f68))return!0x1;const _0x10578e=_0x5b2f68['getSelectionAffectedTableCells'](_0x4668bd['document']['selection']);if(!_0x10578e['length'])return!0x1;const _0x1ee938=_0x10578e[0x0]['findAncestor']('table'),_0x36ab6d=_0x5b2f68['getRowIndexes'](_0x10578e),_0x32ec32=_0x5b2f68['getColumnIndexes'](_0x10578e),_0x48c56a={'startRow':_0x36ab6d['first'],'endRow':_0x36ab6d['last'],'startColumn':_0x32ec32['first'],'endColumn':_0x32ec32['last']};return 0x1==_0x10578e['length']&&(_0x48c56a['endRow']+=_0x5b2f68['getRows'](_0x40c5cf)-0x1,_0x48c56a['endColumn']+=_0x5b2f68['getColumns'](_0x40c5cf)-0x1),He(_0x1ee938,_0x48c56a,_0x5b2f68);}(_0x361e3f,_0x2489e7,_0x482315['model'],_0x48540a,_0xe4392f)&&(_0x18adb0['stop'](),_0x4a1783={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x482315['model']['change'](()=>{_0x482315['model']['insertContent'](_0x215d8a[0x0],_0x215d8a[0x1],_0x215d8a[0x2],{'forceDefaultExecution':!0x0});const _0x1c6f94=_0x147536(),{rowInsertionRanges:_0x33d819,columnInsertionRanges:_0x36f52b,insertionRanges:_0x114ce6,deletionRanges:_0x30bf25,cells:_0x1a5ce9}=_0x4a1783;_0x33d819['length']&&_0x4b7845['markMultiRangeInsertion'](_0x33d819,'tablePasteRow',{'tablePasteChainId':_0x1c6f94}),_0x36f52b['length']&&_0x4b7845['markMultiRangeInsertion'](_0x36f52b,'tablePasteColumn',{'tablePasteChainId':_0x1c6f94}),_0x114ce6['length']&&(_0x4b7845['markMultiRangeInsertion'](_0x114ce6,'tablePaste',{'tablePasteChainId':_0x1c6f94,'skipNestingCheck':!0x0}),_0x114ce6['forEach'](_0x1db514=>_0x1db514['detach']?.())),_0x30bf25['length']&&(_0x4b7845['markMultiRangeDeletion'](_0x30bf25,'tablePaste',{'tablePasteChainId':_0x1c6f94,'skipNestingCheck':!0x0}),_0x30bf25['forEach'](_0x3dff41=>_0x3dff41['detach']?.()));const _0x4b8304=_0x4b7845['markMultiRangeBlockFormat'](_0x1a5ce9['map'](({element:_0x5833f0})=>_0x5833f0),{'formatGroupId':_0x147536()},[],'tablePasteCell',{'tablePasteChainId':_0x1c6f94});if(_0x4b8304){const _0x26133b=_0x4b8304['getMarkers'](),_0x2d4047=[];for(const {element:_0x28f981,attributes:_0x4610be}of _0x1a5ce9){if(!_0x4610be)continue;const _0x5893d6=_0x482315['model']['createRangeOn'](_0x28f981),_0x2836f6=_0x26133b['find'](_0x424e78=>_0x424e78['getRange']()['isEqual'](_0x5893d6));_0x2836f6&&_0x2d4047['push']([_0x2836f6['name'],_0x4610be]);}_0x2d4047['length']&&_0x4b8304['setAttribute']('markerAttributes',Object['fromEntries'](_0x2d4047));}_0x4a1783=null;}));},{'priority':_0x359a13['high']+0xa}),_0x1df8d3['on']('contentInsertion',()=>{_0x288cac=!0x1;},{'priority':'lowest'}),_0x482315['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3631bc,_0x425a07)=>{const [_0x263c9b,_0x155c79,,_0x1e7e6d]=_0x425a07;if(!_0x4a1783)return;_0x3631bc['stop']();const _0x122ba0=_0x263c9b['cell'],_0x14bb31=_0x155c79,_0x158a98=De(_0x122ba0),_0x2ba8c1=De(_0x14bb31);_0x3631bc['return']=_0x122ba0;let _0x2387b5=null,_0x2e49ff=null;if(_0x2ba8c1||_0x158a98){if(_0x158a98&&!_0x2ba8c1){_0x1e7e6d['remove'](_0x122ba0['getChild'](0x0));for(const _0x467aa0 of Array['from'](_0x14bb31['getChildren']()))_0x1e7e6d['insert'](_0x467aa0,_0x122ba0,'end');const _0x2f4883=_0x4a1783['rowInsertionIndexes']['includes'](_0x263c9b['row']),_0x4c3a66=_0x4a1783['columnInsertionIndexes']['includes'](_0x263c9b['column']);_0x2f4883||_0x4c3a66||(_0x2387b5=_0x3a5e87['fromRange'](_0x1e7e6d['createRangeIn'](_0x122ba0)));}else _0x2ba8c1&&!_0x158a98&&(_0x2e49ff=_0x1e7e6d['createRangeIn'](_0x122ba0));}else{const _0x3025be=_0x1e7e6d['createElement']('tableCellSuggestion'),_0x2db82c=_0x1e7e6d['createElement']('tableCellSuggestion');_0x1e7e6d['wrap'](_0x1e7e6d['createRangeIn'](_0x122ba0),_0x2db82c),_0x1e7e6d['insert'](_0x3025be,_0x122ba0,0x0);for(const _0x25a504 of Array['from'](_0x14bb31['getChildren']()))_0x1e7e6d['insert'](_0x25a504,_0x3025be,'end');_0x2387b5=_0x3a5e87['fromRange'](_0x1e7e6d['createRangeOn'](_0x3025be)),_0x2e49ff=_0x3a5e87['fromRange'](_0x1e7e6d['createRangeOn'](_0x2db82c));}const _0x191292=Array['from'](_0x14bb31['getAttributes']())['filter'](([_0x338087])=>Oe['includes'](_0x338087));_0x4a1783['cells']['push']({'element':_0x122ba0,'attributes':_0x191292['length']?Object['fromEntries'](_0x191292):null}),_0x2387b5&&_0x4a1783['insertionRanges']['push'](_0x2387b5),_0x2e49ff&&_0x4a1783['deletionRanges']['push'](_0x2e49ff);},{'priority':'high'}),_0x48540a['on']('insertColumns',(_0x4975a5,_0x364fb4)=>{const [_0x4c790c,_0x2a9714={}]=_0x364fb4;if(!_0x4a1783)return;const _0x507b5d=_0x2a9714['at']||0x0,_0x228103=_0x2a9714['columns']||0x1;_0x4a1783['columnInsertionIndexes']=new Array(_0x228103)['fill'](_0x507b5d)['map']((_0x83bbd5,_0x2353ed)=>_0x83bbd5+_0x2353ed);for(const {cell:_0x5e069e}of _0x48540a['createTableWalker'](_0x4c790c,{'startColumn':_0x507b5d,'endColumn':_0x507b5d+_0x228103-0x1}))_0x4a1783['columnInsertionRanges']['push'](_0x482315['model']['createRangeOn'](_0x5e069e));},{'priority':'low'}),_0x48540a['on']('insertRows',(_0xc2e3f8,_0x13a7b1)=>{const [_0x376d6c,_0x2c16db={}]=_0x13a7b1;if(!_0x4a1783)return;const _0x277346=_0x2c16db['at']||0x0,_0x445e80=_0x2c16db['rows']||0x1;_0x4a1783['rowInsertionIndexes']=new Array(_0x445e80)['fill'](_0x277346)['map']((_0x5304ec,_0x590a9f)=>_0x5304ec+_0x590a9f);for(const {cell:_0x165aef}of _0x48540a['createTableWalker'](_0x376d6c,{'startRow':_0x277346,'endRow':_0x277346+_0x445e80-0x1}))_0x4a1783['rowInsertionRanges']['push'](_0x482315['model']['createRangeOn'](_0x165aef));},{'priority':'low'}),_0x4b7845['descriptionFactory']['registerDescriptionCallback'](_0x3b6ea4=>{if(_0x3b6ea4['subType']&&_0x3b6ea4['subType']['startsWith']('tablePaste'))return _0x3b6ea4['previous']?{}:{'type':'insertion','content':c(_0x482315['locale'],'*Replace\x20table\x20cells*')};});const _0x2d1b10=()=>!0x1;for(const _0x53d305 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4b7845['_suggestionFactory']['registerCustomCallback']('insertion',_0x53d305,'join',_0x2d1b10),_0x4b7845['_suggestionFactory']['registerCustomCallback']('deletion',_0x53d305,'join',_0x2d1b10),_0x4b7845['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53d305,'join',_0x2d1b10);_0x4b7845['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2d1b10),_0x4b7845['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4e5ead,_0x23103c,_0x434dd4)=>{const _0x464960=_0x4e5ead['map'](_0x32eb01=>_0x32eb01['getContainedElement']())['filter'](_0x5e3f08=>_0x5e3f08),_0x10f492=new Map(_0x464960['map'](_0x4ee15e=>[_0x4ee15e,null]));if(_0x4a1783){for(const {element:_0x4da365,attributes:_0x423135}of _0x4a1783['cells'])_0x423135&&_0x10f492['set'](_0x4da365,_0x423135);}else{if(_0x434dd4&&_0x434dd4['markerAttributes'])for(const [_0x56a5ba,_0x1fedcd]of Object['entries'](_0x434dd4['markerAttributes'])){const _0x570efe=_0x482315['model']['markers']['get'](_0x56a5ba),_0x517013=_0x570efe?_0x570efe['getRange']()['getContainedElement']():null;_0x517013&&_0x10f492['set'](_0x517013,_0x1fedcd);}}_0x482315['model']['change'](_0x4fb462=>{for(const [_0x127890,_0x185169]of _0x10f492)_0x4fb462['setAttributes']({...Ue,..._0x185169},_0x127890);});});const _0x3e7ea8=(_0x20fb9e,_0x124048)=>{_0x4b7845['_suggestionFactory']['registerCustomCallback'](_0x20fb9e,'tablePaste',_0x124048,(_0x35c77b,_0x56803f,_0x3f32ca)=>{_0x482315['model']['change'](_0x44d2c1=>{const _0x4bf245=[];for(const _0x208280 of _0x35c77b){const _0xbbe588=_0x208280['start']['nodeAfter'];_0xbbe588['is']('element','tableCellSuggestion')&&_0x4bf245['push'](_0xbbe588);}_0x4b7845['_suggestionFactory']['getSuggestionCallback'](_0x20fb9e,null,_0x124048)(_0x35c77b,_0x56803f,_0x3f32ca);for(const _0x4366fa of _0x4bf245)'$graveyard'!=_0x4366fa['root']['rootName']&&_0x44d2c1['unwrap'](_0x4366fa);});});};_0x3e7ea8('insertion','accept'),_0x3e7ea8('insertion','discard'),_0x3e7ea8('deletion','accept'),_0x3e7ea8('deletion','discard'),_0x4b7845['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x28ad65=>{const _0x259f3b=_0x28ad65['map'](_0x3da087=>_0x3da087['getContainedElement']()),_0x3156c5=_0x259f3b[0x0]['findAncestor']('table'),{minRow:_0x26020a,maxRow:_0x408add}=_0x22ee83['_getCoordsForCells'](_0x259f3b);_0x48540a['removeRows'](_0x3156c5,{'at':_0x26020a,'rows':_0x408add-_0x26020a+0x1});}),_0x4b7845['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4fac39=>{const _0x4ba7fc=_0x4fac39['map'](_0x43bfef=>_0x43bfef['getContainedElement']()),_0x147018=_0x4ba7fc[0x0]['findAncestor']('table'),{minColumn:_0xaa3fbd,maxColumn:_0x595f5c}=_0x22ee83['_getCoordsForCells'](_0x4ba7fc);_0x48540a['removeColumns'](_0x147018,{'at':_0xaa3fbd,'columns':_0x595f5c-_0xaa3fbd+0x1});});const _0x4244ef=(_0x17ba97,_0x54ec65)=>{if(!_0x54ec65['subType']||!_0x54ec65['subType']['startsWith']('tablePaste'))return;const _0xd6ff20=_0x54ec65['attributes']['tablePasteChainId'],_0x27ce05=_0x4b7845['getSuggestions']()['filter'](_0x4a6eea=>_0x4a6eea['isInContent']&&_0x4a6eea['attributes']&&_0x4a6eea['attributes']['tablePasteChainId']==_0xd6ff20);_0x27ce05['length']&&_0x54ec65['getAllAdjacentSuggestions']()['length']!=_0x27ce05['length']&&_0x27ce05['reduce']((_0x45ef64,_0x5184ac)=>(_0x45ef64['next']=_0x5184ac,_0x5184ac['previous']=_0x45ef64,_0x5184ac));};function _0x44c5b1(_0x11e603,_0x552794=!0x0){const {id:_0x36360a,authorId:_0x3df594}=_0x4b7845['_splitMarkerName'](_0x11e603['markerName']),_0x3bc4cb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xb426c=_0x4b7845['activeMarkers']['includes'](_0x11e603['markerName']);return _0xb426c&&_0x3bc4cb['push']('ck-suggestion-marker--active'),{'classes':_0x3bc4cb,'attributes':{'data-suggestion':_0x36360a,'data-author-id':_0x3df594},'priority':_0xb426c&&_0x552794?0xbc2:0xbb8};}_0x4b7845['on']('suggestionLoaded',_0x4244ef,{'priority':'high'}),_0x4b7845['on']('suggestionUnloaded',_0x4244ef,{'priority':'high'}),_0x482315['model']['document']['registerPostFixer'](()=>{let _0x44c7ba=!0x1;const _0x56bc52=Array['from'](_0x482315['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5dd80c,data:_0x72037}of _0x56bc52){const {group:_0x2689b2,type:_0xb22cc,id:_0x37874b}=_0x4b7845['_splitMarkerName'](_0x5dd80c);if('suggestion'!=_0x2689b2||'deletion'!=_0xb22cc||_0x72037['oldRange'])continue;if(!_0x4b7845['hasSuggestion'](_0x37874b))continue;const _0x39ffef=_0x4b7845['getSuggestion'](_0x37874b)['getRanges'](),_0x279827=_0x482315['plugins']['get']('Users')['me'];for(const _0x442f44 of _0x4b7845['getSuggestions']()){if(!_0x442f44['isInContent']||_0x442f44['author']!=_0x279827)continue;if('formatBlock'!=_0x442f44['type']||'tablePasteCell'!=_0x442f44['subType'])continue;if(_0x442f44['getRanges']()['every'](_0xb0449f=>_0x39ffef['some'](_0x2bb75c=>_0x2bb75c['containsRange'](_0xb0449f,!0x0)))){for(const _0x15c7a8 of _0x442f44['getAllAdjacentSuggestions']())_0x15c7a8['isInContent']&&(_0x15c7a8['discard'](),_0x44c7ba=!0x0);}}}return _0x44c7ba;}),_0x482315['model']['document']['registerPostFixer'](_0x3b976b=>{const _0x2b3876=_0x482315['commands']['get']('redo');if(!_0x2b3876||!_0x2b3876['_createdBatches']['has'](_0x3b976b['batch']))return!0x1;let _0x475018=!0x1;const _0x261858=_0x482315['plugins']['get']('Users')['me'],_0xa4cd5b=_0x482315['model']['document']['differ']['getChanges'](),_0x7f9876=Array['from'](_0x482315['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5e865e,data:_0x49a209})=>{const {group:_0x4881ef,subType:_0x5f55fa,authorId:_0x3faabe}=_0x4b7845['_splitMarkerName'](_0x5e865e);return'suggestion'==_0x4881ef&&'tablePaste'==_0x5f55fa&&_0x3faabe==_0x261858['id']&&!_0x49a209['oldRange'];});for(const _0x51d82b of _0xa4cd5b){if('insert'!=_0x51d82b['type']||'tableCellSuggestion'!=_0x51d82b['name']||0x1!=_0x51d82b['length'])continue;const _0x5ec61e=_0x3b976b['createRange'](_0x51d82b['position'],_0x51d82b['position']['getShiftedBy'](0x1));if(!_0x7f9876['find'](({data:_0x317001})=>_0x317001['newRange']['isEqual'](_0x5ec61e))){for(const {name:_0x2b3e42,data:_0x1d6175}of _0x7f9876)if(_0x5ec61e['containsRange'](_0x1d6175['newRange'])){_0x3b976b['updateMarker'](_0x2b3e42,{'range':_0x5ec61e}),_0x475018=!0x0;break;}}}return _0x475018;}),_0x482315['model']['document']['registerPostFixer'](_0x18ae18=>{let _0x2cc0c6=!0x1;const _0x48b6d8=_0x482315['plugins']['get']('Users')['me'],_0xbf9754=_0x4b7845['getSuggestions']()['filter'](_0x1c2ab0=>_0x1c2ab0['isInContent']&&_0x1c2ab0['author']==_0x48b6d8),_0x13fd81=new Set(),_0x8c564b=new Set();for(const _0x185b4e of _0xbf9754)if('tablePaste'==_0x185b4e['subType'])for(const _0x47c615 of _0x185b4e['getMarkers']()){const _0x49d5d4=_0x47c615['getRange']()['getContainedElement']();if(_0x49d5d4){if(_0x49d5d4['is']('element','tableCellSuggestion')&&De(_0x49d5d4)){_0x185b4e['removeMarker'](_0x47c615['name']),_0x13fd81['add'](_0x49d5d4),_0x2cc0c6=!0x0;const _0x3b391a=_0x49d5d4['nextSibling'],_0x2bc5e5=_0x49d5d4['previousSibling'],_0x9517db=_0x3b391a&&_0x3b391a['is']('element','tableCellSuggestion'),_0x3cf6c9=_0x2bc5e5&&_0x2bc5e5['is']('element','tableCellSuggestion');_0x9517db&&!_0x13fd81['has'](_0x3b391a)&&_0x8c564b['add'](_0x3b391a),_0x3cf6c9&&!_0x13fd81['has'](_0x2bc5e5)&&_0x8c564b['add'](_0x2bc5e5);}else _0x49d5d4['is']('element','paragraph')&&_0x49d5d4['isEmpty']&&(_0x185b4e['removeMarker'](_0x47c615['name']),_0x2cc0c6=!0x0);}}else{if('tablePasteCell'==_0x185b4e['subType']){if(!_0x185b4e['attributes']||!_0x185b4e['attributes']['tablePasteChainId'])continue;const _0x371a45=_0x185b4e['attributes']['markerAttributes'];if(_0x371a45&&Object['keys'](_0x371a45)['length'])continue;const _0x3c7085=_0x185b4e['attributes']['tablePasteChainId'];let _0x39f39d=!0x0,_0x27a8d2=!0x0;for(const _0x12edce of _0xbf9754)if(_0x12edce['subType']&&_0x12edce['subType']['startsWith']('tablePaste')){if(!_0x12edce['attributes']['tablePasteChainId']){_0x27a8d2=!0x1;break;}if(_0x12edce['id']!=_0x185b4e['id']&&_0x12edce['attributes']['tablePasteChainId']==_0x3c7085){_0x39f39d=!0x1;break;}}_0x27a8d2&&_0x39f39d&&(_0x185b4e['removeMarkers'](),_0x2cc0c6=!0x0);}}for(const _0x2e13c of _0x13fd81)_0x18ae18['remove'](_0x2e13c);for(const _0x457320 of _0x8c564b)_0x18ae18['unwrap'](_0x457320);return _0x2cc0c6;}),_0x482315['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x445338=>_0x44c5b1(_0x445338),'converterPriority':'high'}),_0x482315['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x36d93e,_0x218b00)=>_0x218b00['options']['showSuggestionHighlights']?_0x44c5b1(_0x36d93e,!0x1):null,'converterPriority':'high'});const _0x5a594b=_0x482315['editing']['view'];this['listenTo'](_0x5a594b['document'],'clipboardOutput',(_0x4f5ab8,_0x8e1bf7)=>{const _0x369c84=[];for(const _0x592bba of _0x5a594b['createRangeIn'](_0x8e1bf7['content'])['getItems']())_0x592bba['is']('element','suggestion-td')&&_0x369c84['push'](_0x592bba);_0x5a594b['change'](_0x52c30c=>{for(const _0x1175b6 of _0x369c84)_0x52c30c['move'](_0x52c30c['createRangeIn'](_0x1175b6),_0x52c30c['createPositionBefore'](_0x1175b6)),_0x52c30c['remove'](_0x1175b6);});});}}function De(_0x1bffc4){if(_0x1bffc4['isEmpty'])return!0x0;const _0x4d859a=_0x1bffc4['getChild'](0x0);return _0x4d859a['is']('element','paragraph')&&_0x4d859a['isEmpty'];}function He(_0x174139,_0x515151={},_0x4f9ff6){for(const {isAnchor:_0x4afadb,cellHeight:_0x4d045f,cellWidth:_0x5394e3}of _0x4f9ff6['createTableWalker'](_0x174139,{'includeAllSlots':!0x0,..._0x515151}))if(!_0x4afadb||0x1!=_0x4d045f||0x1!=_0x5394e3)return!0x1;return!0x0;}class Bt extends _0x577ae7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x44e2e8=this['editor']['plugins']['get']('TrackChangesEditing');_0x44e2e8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x44e2e8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x44e2e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44e2e8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x44e2e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x44e2e8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3f5745,_0x4a75ea){const _0x6e7c3d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26411e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x50b92e=_0x4a75ea['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5ac6d3=_0x26411e['getColumnGroupElement'](_0x50b92e);let _0x5b104c=_0x5ac6d3?_0x26411e['getTableColumnsWidths'](_0x5ac6d3):null,_0xabc62=_0x50b92e['getAttribute']('tableWidth')||null;const _0x41f834=_0x4a75ea['tableWidth']||_0xabc62,_0x42f5ea=_0x4a75ea['columnWidths']||_0x5b104c,_0x3a4623=this['editor']['plugins']['get']('Users')['me'];for(const _0x9450f4 of _0x6e7c3d['getSuggestions']()){const _0x521f87=_0x9450f4['getContainedElement']();if('resizeTable'===_0x9450f4['subType']&&_0x521f87===_0x50b92e){_0x9450f4['author']!==_0x3a4623&&_0x9450f4['discard']();const _0x1a1d7c=_0x9450f4['data']['commandParams'];_0xabc62=_0x1a1d7c[0x0]['tableWidth'],_0x5b104c=_0x1a1d7c[0x0]['columnWidths'];break;}}_0x3f5745({'table':_0x50b92e,'tableWidth':_0x41f834,'columnWidths':_0x42f5ea}),_0x6e7c3d['markBlockFormat'](_0x50b92e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xabc62,'columnWidths':_0x5b104c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x46f11f){if('formatBlock'!=_0x46f11f['type']&&'formatInline'!=_0x46f11f['type'])return;const {data:_0x2e6c12}=_0x46f11f;if(_0x2e6c12&&'resizeTable'===_0x2e6c12['formatGroupId']){const _0x2a9281='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x2a9281)};}}}class xt extends _0x577ae7{['afterInit'](){const _0x5cff8f=this['editor'];_0x5cff8f['plugins']['has']('Template')&&_0x5cff8f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x577ae7{['afterInit'](){const _0x2aa0ac=this['editor'];if(!_0x2aa0ac['commands']['get']('insertTableOfContents'))return;_0x2aa0ac['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x49b723=_0x2aa0ac['plugins']['get']('TrackChangesEditing'),_0x2ffa7d=_0x2aa0ac['locale'];_0x49b723['descriptionFactory']['registerElementLabel']('tableOfContents',_0x342409=>c(_0x2ffa7d,'ELEMENT_TABLE_OF_CONTENTS',_0x342409));}}class Rt extends _0x577ae7{['afterInit'](){const _0x5d02c8=this['editor'];if(!_0x5d02c8['plugins']['has']('Title'))return;const _0x4327e7=_0x5d02c8['plugins']['get']('TrackChangesEditing');_0x4327e7['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x5d02c8['locale'],'ELEMENT_TITLE')),_0x5d02c8['model']['document']['registerPostFixer'](_0xea1760=>{let _0x204729=!0x1;const _0x33fe4e=Array['from'](_0x5d02c8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x238675,data:_0x34afc0}of _0x33fe4e){const {group:_0x33ae50}=_0x4327e7['_splitMarkerName'](_0x238675);if('suggestion'!==_0x33ae50||!_0x34afc0['newRange'])continue;const _0x120f65=_0x34afc0['newRange'],_0x1fe050=_0x120f65['end']['nodeBefore'];if(!_0x1fe050||!_0x1fe050['is']('element','title-content'))continue;if(!_0x120f65['start']['isTouching'](_0x120f65['end']))continue;const _0xc7d45e=_0x5d02c8['model']['schema']['getNearestSelectionRange'](_0x120f65['end'],'forward');if(_0xc7d45e&&_0xc7d45e['isCollapsed']){const _0x3d8da5=_0xea1760['createRange'](_0x120f65['start'],_0xc7d45e['start']);_0x3d8da5['isEqual'](_0x120f65)||(_0xea1760['updateMarker'](_0x238675,{'range':_0x3d8da5}),_0x204729=!0x0);}_0x204729||(_0xea1760['removeMarker'](_0x238675),_0x204729=!0x0);}return _0x204729;});}}class Tt extends _0x577ae7{['afterInit'](){const _0x2db689=this['editor'],_0xcc23ce=_0x2db689['plugins']['get']('TrackChangesEditing');_0x2db689['plugins']['has']('Uploadcare')&&(_0xcc23ce['enableCommand']('uploadcare'),_0x2db689['plugins']['has']('UploadcareImageEdit')&&(_0xcc23ce['enableCommand']('uploadcareImageEdit'),_0xcc23ce['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xcc23ce['registerBlockAttribute']('uploadcareImageId'),_0xcc23ce['descriptionFactory']['registerDescriptionCallback'](_0x1d0fe1=>{if('attribute'!=_0x1d0fe1['type'])return;const {data:_0x4dd513}=_0x1d0fe1;return _0x4dd513&&'uploadcareImageId'==_0x4dd513['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x577ae7{['afterInit'](){const _0x4dcacf=this['editor'],_0xcb3e45=_0x4dcacf['plugins']['get']('TrackChangesEditing');_0x4dcacf['plugins']['has']('UndoEditing')&&(_0xcb3e45['enableCommand']('undo'),_0xcb3e45['enableCommand']('redo'));}}class Ut extends _0x577ae7{static get['requires'](){return[Ct];}['afterInit'](){const _0xbf0edf=this['editor'];if(!_0xbf0edf['plugins']['has']('TableCaptionEditing'))return;_0xbf0edf['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x577ae7{['tableProperties'];['tableCellProperties'];constructor(_0x2b9df7){super(_0x2b9df7),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 _0x100a4b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x29da46 of this['tableProperties'])_0x100a4b['enableCommand'](_0x29da46,(_0x417037,_0x19182c)=>{const _0x4b1de6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x29da46,[_0x4b1de6],this['tableProperties'],'tableProperties',_0x417037,_0x19182c);});_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x100a4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x651dcc,_0x6585d2)=>this['handleDiscardAction'](this['tableProperties'],_0x651dcc,_0x6585d2)),_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x54644d of this['tableCellProperties'])_0x100a4b['enableCommand'](_0x54644d,(_0x75eea,_0x2dc508)=>{const _0x240419=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x54644d,_0x240419,this['tableCellProperties'],'tableCellProperties',_0x75eea,_0x2dc508);});_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x100a4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4f56c3,_0x2e27aa)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4f56c3,_0x2e27aa)),_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x100a4b['descriptionFactory']['registerDescriptionCallback'](_0x2cf8d1=>this['handleSuggestionDescription'](_0x2cf8d1));}['_handlePropertyChange'](_0x425a08,_0xace2f,_0x2f167b,_0x1e591c,_0x1f6705,_0x6e5ad9){const _0x2914cc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x6e5ad9['batch'],()=>{for(const _0x53ee39 of _0xace2f){if(this['_getSuggestion'](_0x53ee39,_0x1e591c))_0x1f6705(_0x6e5ad9);else{const _0xd8f756={};for(const _0x46fc76 of _0x2f167b){const _0x7c9114=_0x53ee39['getAttribute'](_0x46fc76);void 0x0!==_0x7c9114&&(_0xd8f756[_0x46fc76]=_0x7c9114);}_0x1f6705(_0x6e5ad9),_0x2914cc['markBlockFormat'](_0x53ee39,{'commandParams':[_0xd8f756]},[],_0x1e591c);}}});}['handleDiscardAction'](_0x3dc3f5,_0x2b0ffd,_0x243439){const _0x5afea0=_0x2b0ffd[0x0]['start']['nodeAfter'],_0x43f4b6=_0x243439['commandParams'][0x0];this['editor']['model']['change'](_0x16eea1=>{for(const _0x43385e of _0x3dc3f5)void 0x0!==_0x43f4b6[_0x43385e]?_0x16eea1['setAttribute'](_0x43385e,_0x43f4b6[_0x43385e],_0x5afea0):_0x16eea1['removeAttribute'](_0x43385e,_0x5afea0);});}['handleSuggestionDescription'](_0x31c856){if(_0x31c856['data'])switch(_0x31c856['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x966b90,_0x1ba077){const _0x25c3b0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x44f175 of _0x25c3b0['getSuggestions']({'skipNotAttached':!0x0})){const _0x2f584a=_0x44f175['getContainedElement']();if(_0x44f175['subType']===_0x1ba077&&_0x2f584a===_0x966b90)return _0x44f175;}return null;}}const u='$elementName';class p extends _0x577ae7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x671950,_0x5b2277,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b03d1){super(_0x5b03d1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x574459,_0x3ce543,_0x242d77,_0x13c2d6)=>{this['_model']['change'](()=>{for(const _0x22dec6 of[..._0x13c2d6,..._0x242d77])this['_model']['markers']['has'](_0x22dec6)&&_0x5b03d1['editing']['reconvertMarker'](_0x22dec6);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5b03d1['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x5b03d1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5b03d1['config']['get']('trackChanges.trackFormatChanges'),_0x5b03d1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5b03d1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5b03d1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5e138f=this['editor'],_0x288406=(_0x168a50,_0x4de13a)=>{if('attribute'!=_0x168a50)return'ck-suggestion-marker-'+_0x168a50;const _0xe871c4=_0x4de13a['split']('|')[0x0];return this['_isBlockAttribute'](_0xe871c4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5e138f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1240f8=>{const {id:_0x4363e2,authorId:_0x34cc61,type:_0x496a3d,subType:_0x34672c}=this['_splitMarkerName'](_0x1240f8['markerName']),_0x1b306c=['ck-suggestion-marker',_0x288406(_0x496a3d,_0x34672c)];let _0x47f62b=0xbb8;return this['activeMarkers']['includes'](_0x1240f8['markerName'])&&(_0x1b306c['push']('ck-suggestion-marker--active'),_0x47f62b=0xbc2),'deletion'==_0x496a3d&&(_0x47f62b+=0x5),{'classes':_0x1b306c,'attributes':{'data-suggestion':_0x4363e2,'data-author-id':_0x34cc61},'priority':_0x47f62b};}}),_0x5e138f['conversion']['for']('dataDowncast')['add'](_0x46a0f9=>{_0x46a0f9['on']('addMarker:suggestion',(_0x10556e,_0x466085,_0x279d7c)=>{if(!_0x279d7c['options']['showSuggestionHighlights'])return;const _0x3cd98c=_0x466085['item'];if(!_0x3cd98c)return;const _0x520748=_0x279d7c['mapper']['toViewElement'](_0x3cd98c);_0x5e138f['model']['schema']['isObject'](_0x3cd98c)&&_0x520748&&!_0x520748['getCustomProperty']('widget')&&_0x520748['is']('containerElement')&&_0x185ea5(_0x520748,_0x279d7c['writer']);},{'priority':'high'});}),_0x5e138f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5c6146,_0x5b599e)=>{if(!_0x5b599e['options']['showSuggestionHighlights'])return null;const {id:_0x5b6fdf,authorId:_0x31d5e0,type:_0x1f4112,subType:_0x1eed32}=this['_splitMarkerName'](_0x5c6146['markerName']);return{'classes':['ck-suggestion-marker',_0x288406(_0x1f4112,_0x1eed32)],'priority':0xbb8,'attributes':{'data-suggestion':_0x5b6fdf,'data-author-id':_0x31d5e0}};}});const _0x14de9f=({showActiveMarkers:_0x37cb31=!0x0,isAttributeSuggestion:_0x10716d=!0x1}={})=>(_0x32d08f,_0x1c95e5,_0x4d337e)=>{if(!_0x1c95e5['item'])return;const {id:_0x1365dd,authorId:_0x4779ad}=this['_splitMarkerName'](_0x1c95e5['markerName']);if(_0x10716d){const _0x38e283=this['_suggestions']['get'](_0x1365dd),_0x1ef158=this['_getAttributeKey'](_0x38e283);if(!this['_isBlockAttribute'](_0x1ef158))return;}if(_0x1c95e5['item']['is']('selection'))return void _0x4d337e['consumable']['consume'](_0x1c95e5['item'],_0x32d08f['name']);const _0x3a4c8e=_0x4d337e['mapper']['toViewElement'](_0x1c95e5['item']);if(_0x1c95e5['item']['is']('element')&&_0x5e138f['model']['schema']['isBlock'](_0x1c95e5['item'])&&!_0x3a4c8e['getCustomProperty']('addHighlight')){_0x4d337e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3a4c8e),_0x4d337e['writer']['setAttribute']('data-suggestion',_0x1365dd,_0x3a4c8e),_0x4d337e['writer']['setAttribute']('data-author-id',_0x4779ad,_0x3a4c8e),_0x4d337e['mapper']['bindElementToMarker'](_0x3a4c8e,_0x1c95e5['markerName']),_0x37cb31&&(this['activeMarkers']['includes'](_0x1c95e5['markerName'])?_0x4d337e['writer']['addClass']('ck-suggestion-marker--active',_0x3a4c8e):_0x4d337e['writer']['removeClass']('ck-suggestion-marker--active',_0x3a4c8e));for(const _0x2212b0 of _0x5e138f['model']['createRangeIn'](_0x1c95e5['item'])['getItems']())_0x4d337e['consumable']['consume'](_0x2212b0,_0x32d08f['name']);_0x4d337e['consumable']['consume'](_0x1c95e5['item'],_0x32d08f['name']);}};_0x5e138f['conversion']['for']('dataDowncast')['add'](_0x1e474e=>{_0x1e474e['on']('addMarker:suggestion:formatBlock',(_0x292d39,_0x1a4df9,_0x4f7050)=>{_0x4f7050['options']['showSuggestionHighlights']&&_0x14de9f({'showActiveMarkers':!0x1})(_0x292d39,_0x1a4df9,_0x4f7050);},{'priority':'highest'});}),_0x5e138f['conversion']['for']('dataDowncast')['add'](_0x108e17=>{_0x108e17['on']('addMarker:suggestion:attribute',(_0x319747,_0x58aefd,_0x454d28)=>{_0x454d28['options']['showSuggestionHighlights']&&_0x14de9f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x319747,_0x58aefd,_0x454d28);},{'priority':'highest'});}),_0x5e138f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x13bc4a,_0x354863)=>{if(_0x354863['options']['showSuggestionHighlights']){const {id:_0x5a4563,authorId:_0x2501f5}=this['_splitMarkerName'](_0x13bc4a);return _0x13bc4a['includes'](':split')||_0x13bc4a['includes'](':merge')?{'group':'suggestion','name':_0x13bc4a['substr'](0xb),'attributes':{'data-suggestion':_0x5a4563,'data-author-id':_0x2501f5}}:null;}return{'group':'suggestion','name':_0x13bc4a['substr'](0xb)};}}),_0x5e138f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4b367f,{writer:_0x1cdbc1})=>{let _0x43ce91='suggestion:'+_0x4b367f['getAttribute']('suggestion-type')+':'+_0x4b367f['getAttribute']('id');return _0x4b367f['getAttribute']('marker-count')&&(_0x43ce91+=':'+_0x4b367f['getAttribute']('marker-count')),_0x1cdbc1['createElement']('$marker',{'data-name':_0x43ce91});}}),_0x5e138f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5e138f['conversion']['for']('editingDowncast')['add'](_0x3061d1=>{_0x3061d1['on']('addMarker:suggestion:formatBlock',_0x14de9f(),{'priority':'high'});}),_0x5e138f['conversion']['for']('editingDowncast')['add'](_0x374afe=>{_0x374afe['on']('addMarker:suggestion:attribute',_0x14de9f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5e138f['conversion']['for']('editingDowncast')['add'](_0x5e3a97=>{_0x5e3a97['on']('removeMarker:suggestion:formatBlock',(_0xf1caac,_0x52a823,_0x204e44)=>{const _0x1d446f=_0x204e44['mapper']['markerNameToElements'](_0x52a823['markerName']);if(_0x1d446f){for(const _0x29b015 of _0x1d446f)_0x29b015['getCustomProperty']('addHighlight')||(_0x204e44['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x29b015),_0x204e44['writer']['removeAttribute']('data-suggestion',_0x29b015),_0x204e44['writer']['removeAttribute']('data-author-id',_0x29b015),_0x204e44['mapper']['unbindElementFromMarkerName'](_0x29b015,_0x52a823['markerName']));}},{'priority':'high'});}),_0x5e138f['conversion']['for']('editingDowncast')['add'](_0x131a3b=>{_0x131a3b['on']('removeMarker:suggestion:attribute',(_0x18210f,_0x512445,_0x3db629)=>{const _0x43a3f9=_0x3db629['mapper']['markerNameToElements'](_0x512445['markerName']);if(!_0x43a3f9)return;const {id:_0x525e06}=this['_splitMarkerName'](_0x512445['markerName']),_0x5f031d=this['_suggestions']['get'](_0x525e06),_0x6b5fe1=this['_getAttributeKey'](_0x5f031d);if(this['_isBlockAttribute'](_0x6b5fe1)){for(const _0x9ba0d4 of _0x43a3f9)_0x9ba0d4['getCustomProperty']('addHighlight')||(_0x3db629['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x9ba0d4),_0x3db629['writer']['removeAttribute']('data-suggestion',_0x9ba0d4),_0x3db629['writer']['removeAttribute']('data-author-id',_0x9ba0d4),_0x3db629['mapper']['unbindElementFromMarkerName'](_0x9ba0d4,_0x512445['markerName']));}},{'priority':'high'});}),_0x5e138f['model']['document']['registerPostFixer'](_0x14cfb2=>{let _0x5d0c30=!0x1;const _0x2b2326=Array['from'](_0x5e138f['model']['document']['differ']['getChangedMarkers']()),_0x2714dc=new Set();for(const {name:_0x3422e6,data:_0x2eebdd}of _0x2b2326){const {group:_0x565153,type:_0x453042,subType:_0x3e631a,id:_0x2e84ef}=this['_splitMarkerName'](_0x3422e6);if('suggestion'!==_0x565153)continue;const _0x4f62c6=this['_suggestions']['get'](_0x2e84ef);if(null!=_0x2eebdd['newRange']){'formatInline'==_0x453042&&(_0x5d0c30=_0x5d0c30||Jt(_0x2eebdd['newRange'],_0x3422e6,_0x14cfb2,_0x5e138f['model']['schema']));const _0x2e79cd='attribute'==_0x453042&&this['_isBlockAttribute'](_0x3e631a['split']('|')[0x0]);if(_0x2eebdd['newRange']['isCollapsed']||'$graveyard'==_0x2eebdd['newRange']['root']['rootName']||'formatBlock'==_0x453042&&!Ht(_0x2eebdd['newRange'])||_0x2e79cd&&!Ht(_0x2eebdd['newRange'])||'deletion'==_0x453042&&!(!Lt(_0x24e32a=_0x2eebdd['newRange'])&&!function(_0x5e3662){return _0x5e3662['start']['parent']==_0x5e3662['end']['nodeBefore']&&_0x5e3662['start']['isAtEnd'];}(_0x24e32a)))_0x14cfb2['removeMarker'](_0x3422e6),_0x5d0c30=!0x0;else{if(!_0x4f62c6||!_0x4f62c6['isInContent'])continue;if(_0x2eebdd['newRange']&&_0x2eebdd['oldRange']&&_0x2eebdd['newRange']['isEqual'](_0x2eebdd['oldRange']))continue;_0x2714dc['add'](_0x4f62c6);}}}var _0x24e32a;return _0x2714dc['size']>0x0&&(_0x5d0c30=!!this['_joinWithAdjacentSuggestions'](_0x2714dc)||_0x5d0c30),_0x5d0c30;}),_0x5e138f['model']['document']['registerPostFixer'](_0x1aca30=>{let _0x34e122=!0x1;for(const _0x1abe54 of _0x5e138f['model']['document']['differ']['getChanges']())if('insert'==_0x1abe54['type'])for(const _0x2b7568 of this['_suggestions']['values']()){if(_0x2b7568['isMultiRange']||!_0x2b7568['isInContent'])continue;const _0x221baa='formatBlock'==_0x2b7568['type'],_0xb4aef8=this['_getAttributeKey'](_0x2b7568),_0xac3e00=_0xb4aef8&&this['_isBlockAttribute'](_0xb4aef8);if(!_0x221baa&&!_0xac3e00)continue;const _0x5a6ad7=_0x2b7568['getFirstRange']();if(_0x5a6ad7['start']['parent']!=_0x5a6ad7['end']['parent']&&!_0x5a6ad7['end']['isAtEnd']){const _0x76cd54=_0x5e138f['model']['createPositionAt'](_0x5a6ad7['start']['nodeAfter'],'end'),_0x3383e5=_0x5e138f['model']['createRange'](_0x5a6ad7['start'],_0x76cd54);_0x1aca30['updateMarker'](_0x2b7568['getFirstMarker'](),{'range':_0x3383e5}),_0x34e122=!0x0;}}return _0x34e122;}),_0x5e138f['model']['document']['registerPostFixer'](_0x14fad1=>this['_processAttributeChanges'](_0x14fad1)),_0x5e138f['model']['document']['registerPostFixer'](_0x147510=>!_0x147510['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x147510)),_0x5e138f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5e138f['model']['document']['on']('change:data',(_0x20f509,_0x44042a)=>{if(!_0x44042a['isLocal']||_0x44042a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xa53726=_0x5e138f['model']['document']['differ']['getChanges']();if(0x0==_0xa53726['length'])return;const _0x5b21e1=[],_0x3871fc=_0xa53726['filter'](_0x39676c=>'attribute'==_0x39676c['type']),_0x5491ce=_0xa53726['filter'](_0x2e6b6=>'insert'==_0x2e6b6['type']&&'$text'!=_0x2e6b6['name']);for(const _0x242aff of _0x3871fc)this['_isRegisteredAttribute'](_0x242aff['attributeKey'])&&_0x5b21e1['push']({'key':_0x242aff['attributeKey'],'newValue':_0x242aff['attributeNewValue'],'oldValue':_0x242aff['attributeOldValue'],'range':qt(_0x242aff['range'],_0x5e138f['model'])});for(const _0x212754 of _0x5491ce){if('rename'!=_0x212754['action']&&'refresh'!=_0x212754['action'])continue;const _0x1741bb=zt(_0x212754['position']['nodeAfter'],_0x5e138f['model']),_0x37b56e=_0x212754['before'];'rename'==_0x212754['action']&&_0x5b21e1['push']({'key':u,'newValue':_0x212754['name'],'oldValue':_0x37b56e['name'],'range':_0x1741bb});for(const [_0xa1df9f,_0x544cc6]of _0x37b56e['attributes']){if(!this['_isRegisteredAttribute'](_0xa1df9f))continue;const _0x19de02=_0x212754['attributes']['get'](_0xa1df9f);_0x544cc6!==_0x19de02&&_0x5b21e1['push']({'key':_0xa1df9f,'newValue':_0x19de02,'oldValue':_0x544cc6,'range':_0x1741bb});}for(const [_0x3efc7d,_0x7547fd]of _0x212754['attributes'])this['_isRegisteredAttribute'](_0x3efc7d)&&(_0x37b56e['attributes']['has'](_0x3efc7d)||_0x5b21e1['push']({'key':_0x3efc7d,'newValue':_0x7547fd,'oldValue':null,'range':_0x1741bb}));}0x0!=_0x5b21e1['length']&&_0x5e138f['model']['enqueueChange'](_0x44042a,_0x486860=>{const _0x2d7f24=_0x147536();for(const {range:_0x196255,key:_0x4f7637,oldValue:_0xf6e441,newValue:_0x199714}of _0x5b21e1)this['markAttributeChange'](_0x196255,_0x4f7637,_0xf6e441,_0x199714,{'groupId':_0x2d7f24});this['_reduceExistingSuggestions'](_0x486860,_0x5b21e1);});},{'priority':'lowest'}),_0x5e138f['model']['markers']['on']('update:suggestion',(_0x2bfded,_0xa52872,_0x3b8fea)=>{if(null==_0x3b8fea){const {id:_0x15be2c}=this['_splitMarkerName'](_0xa52872['name']),_0x431b85=this['_suggestions']['get'](_0x15be2c);_0x431b85&&_0x431b85['addMarkerName'](_0xa52872['name']);}}),_0x5e138f['model']['document']['on']('change:data',()=>{const _0x3dd294=Array['from'](_0x5e138f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x476cd7=>'suggestion'===this['_splitMarkerName'](_0x476cd7['name'])['group']);if(0x0===_0x3dd294['length'])return;_0x3dd294['sort']((_0x4ea16b,_0x33cdbe)=>{const _0x2d47cb=_0x4ea16b['data']['oldRange'],_0xf8a3be=_0x33cdbe['data']['oldRange'];return null===_0x2d47cb&&null===_0xf8a3be?0x0:null===_0x2d47cb&&null!==_0xf8a3be?-0x1:null!==_0x2d47cb&&null===_0xf8a3be?0x1:_0x2d47cb['start']['isBefore'](_0xf8a3be['start'])?-0x1:0x1;});const _0x441817=new Set(),_0x1b3d6d=new Set();for(const {name:_0x33c698,data:_0x4f40de}of _0x3dd294){const {id:_0x2f5f56}=this['_splitMarkerName'](_0x33c698);if(null===_0x4f40de['oldRange']){const _0x14ebb3=this['_handleNewSuggestionMarker'](_0x33c698);_0x1b3d6d['add'](_0x14ebb3);}else{const _0x46f77d=this['_suggestions']['get'](_0x2f5f56);null!==_0x4f40de['newRange']||_0x46f77d['isInContent']?(_0x441817['add'](_0x46f77d['head']),_0x1b3d6d['add'](_0x46f77d)):this['_removeSuggestion'](_0x46f77d);}}_0x1b3d6d['size']>0x0&&this['_refreshSuggestionsChain'](_0x1b3d6d);for(const _0x1b4b03 of _0x441817)this['fire']('suggestionChanged',_0x1b4b03);}),_0x5e138f['model']['on']('applyOperation',(_0x10d258,_0x6d558d)=>{const _0x48ab44=_0x6d558d[0x0];if(!this['_suggestions']['size'])return;if(!_0x48ab44['isDocumentOperation'])return;if(_0x48ab44['batch']['isUndo']||!_0x48ab44['batch']['isLocal'])return;let _0x2b07b6,_0x27d1fa;switch(_0x48ab44['type']){case'insert':_0x2b07b6=_0x5e138f['model']['createPositionAt'](_0x48ab44['position']),_0x27d1fa=_0x2b07b6['getShiftedBy'](_0x48ab44['howMany']);break;case'split':_0x2b07b6=_0x5e138f['model']['createPositionAt'](_0x48ab44['splitPosition']),_0x27d1fa=_0x5e138f['model']['createPositionAt'](_0x48ab44['moveTargetPosition']);break;case'move':_0x2b07b6=_0x5e138f['model']['createPositionAt'](_0x48ab44['targetPosition']),_0x27d1fa=_0x2b07b6['getShiftedBy'](_0x48ab44['howMany']);break;default:return;}const _0x9c981b=_0x5e138f['model']['createRange'](_0x2b07b6,_0x27d1fa);_0x5e138f['model']['change'](()=>{for(const {suggestion:_0x29806e,meta:_0x172cac}of this['_findSuggestions'](_0x9c981b)){if(_0x29806e['isMultiRange'])continue;if('formatInline'==_0x29806e['type'])continue;const _0x3a586d=this['_getAttributeKey'](_0x29806e);if(_0x3a586d&&this['_isBlockAttribute'](_0x3a586d)&&'split'!=_0x48ab44['type'])continue;const _0x5fc21d=_0x29806e['data']&&_0x29806e['data']['multipleBlocks'];('formatBlock'!=_0x29806e['type']||'split'==_0x48ab44['type']&&!_0x5fc21d)&&(_0x172cac['containsRangeInObject']||'insertion'==_0x29806e['type']&&_0x172cac['isOwn']||_0x29806e['getFirstRange']()['containsRange'](_0x9c981b)&&this['_breakSuggestionMarker'](_0x29806e,_0x2b07b6,_0x27d1fa));}});},{'priority':'lowest'}),_0x5e138f['model']['on']('deleteContent',(_0xa2badf,_0x3f0c52)=>{const _0x274ed9=_0x3f0c52[0x0],_0x1023b8=_0x3f0c52[0x1];if(_0x1023b8&&_0x1023b8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x274ed9['isCollapsed'])return;const _0x48116c=_0x5e138f['model']['schema'],{start:_0x279467,end:_0x218fb6}=_0x274ed9['getFirstRange'](),_0x46d6ef=_0x279467['nodeAfter']&&_0x48116c['isLimit'](_0x279467['nodeAfter'])?null:_0x48116c['getNearestSelectionRange'](_0x279467,'forward'),_0x26bbf2=_0x218fb6['nodeBefore']&&_0x48116c['isLimit'](_0x218fb6['nodeBefore'])?null:_0x48116c['getNearestSelectionRange'](_0x218fb6,'backward'),_0x1603e9=_0x5e138f['model']['createRange'](_0x46d6ef?_0x46d6ef['start']:_0x279467,_0x26bbf2?_0x26bbf2['end']:_0x218fb6);_0x5e138f['model']['change'](_0x4618cc=>{this['markDeletion'](_0x1603e9);const _0x5bcd1a=_0x5e138f['model']['schema']['getNearestSelectionRange'](_0x1603e9['start']);_0x274ed9['is']('documentSelection')?_0x4618cc['setSelection'](_0x5bcd1a):_0x274ed9['setTo'](_0x5bcd1a);}),_0xa2badf['stop']();},{'priority':_0x359a13['normal']+0xa}),_0x5e138f['model']['on']('insertContent',(_0x59b599,_0x1cb108)=>{const _0x94b0df=_0x1cb108[_0x1cb108['length']-0x1];_0x94b0df&&_0x94b0df['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5e138f['model']['change'](()=>{let _0x7768c4=_0x5e138f['model']['insertContent'](_0x1cb108[0x0],_0x1cb108[0x1],_0x1cb108[0x2],{'forceDefaultExecution':!0x0});if(!_0x7768c4)return;_0x59b599['return']=_0x7768c4['clone']();const _0x3af661=_0x7768c4['end']['nodeBefore'],_0x50b391=_0x5e138f['model']['schema'];_0x3af661&&_0x50b391['isBlock'](_0x3af661)&&!_0x50b391['isObject'](_0x3af661)&&(_0x7768c4=_0x5e138f['model']['createRange'](_0x7768c4['start'],_0x5e138f['model']['createPositionAt'](_0x3af661,'end'))),this['markInsertion'](_0x7768c4);}),_0x59b599['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x566d11=new x(_0x5e138f,this['_suggestions']);_0x5e138f['commands']['add']('acceptSuggestion',_0x566d11),this['enableCommand']('acceptSuggestion');const _0xc1e13d=new O(_0x5e138f,this['_suggestions']);_0x5e138f['commands']['add']('discardSuggestion',_0xc1e13d),this['enableCommand']('discardSuggestion'),_0x5e138f['commands']['add']('acceptAllSuggestions',new R(_0x5e138f,_0x566d11,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5e138f['commands']['add']('discardAllSuggestions',new R(_0x5e138f,_0xc1e13d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5e138f['commands']['add']('acceptSelectedSuggestions',new E(_0x5e138f,_0x566d11,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5e138f['commands']['add']('discardSelectedSuggestions',new E(_0x5e138f,_0xc1e13d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x434d8b=_0x5e138f['plugins']['get']('CommentsRepository');this['listenTo'](_0x434d8b,'addComment',(_0x1760d6,{threadId:_0x535ce3})=>{const _0x11d1ee=this['_suggestions']['get'](_0x535ce3);_0x11d1ee&&_0x11d1ee['commentThread']&&0x1===_0x11d1ee['commentThread']['length']&&this['_updateSuggestionData'](_0x535ce3,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x434d8b,'removeComment',(_0x3f17f9,{threadId:_0x45181f})=>{const _0x3f9d21=this['_suggestions']['get'](_0x45181f);_0x3f9d21&&_0x3f9d21['commentThread']&&!_0x3f9d21['commentThread']['length']&&this['_updateSuggestionData'](_0x45181f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3070d4){const _0x101c3b=_0x21ac9e([0x31,0x6c,0x70,0x6d,0x63,0x4f,0x66,0x49,0x77,0x48,0x73,0x38,0x6a,0x50,0x44,0x41,0x62,0x4d,0x75,0x46,0x53,0x4a,0x45,0x55,0x39,0x57,0x4c,0x56,0x6b,0x30,0x69,0x32,0x5a,0x71,0x64,0x67,0x37,0x74,0x33,0x47,0x34,0x4b,0x36,0x6e,0x6f,0x58,0x68,0x51,0x65,0x7a,0x61,0x43,0x4e,0x79,0x59,0x54,0x78,0x76,0x52,0x72,0x35,0x42]),_0x3efb0f=0x64c1d1b,_0x226d92=0x64b75eb^_0x3efb0f,_0x5f1baa=window[_0x21ac9e([0x44,0x61,0x74,0x65])][_0x21ac9e([0x6e,0x6f,0x77])](),_0x163fea=_0x3070d4[_0x21ac9e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3054cb=new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fa830=>{_0x163fea[_0x21ac9e([0x6f,0x6e,0x63,0x65])](_0x21ac9e([0x72,0x65,0x61,0x64,0x79]),_0x1fa830);}),_0x393004={[_0x21ac9e([0x6b,0x74,0x79])]:_0x21ac9e([0x45,0x43]),[_0x21ac9e([0x75,0x73,0x65])]:_0x21ac9e([0x73,0x69,0x67]),[_0x21ac9e([0x63,0x72,0x76])]:_0x21ac9e([0x50,0x2d,0x32,0x35,0x36]),[_0x21ac9e([0x78])]:_0x21ac9e([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]),[_0x21ac9e([0x79])]:_0x21ac9e([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]),[_0x21ac9e([0x61,0x6c,0x67])]:_0x21ac9e([0x45,0x53,0x32,0x35,0x36])},_0x2947f2=_0x163fea[_0x21ac9e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21ac9e([0x67,0x65,0x74])](_0x21ac9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x68433e(){let _0x1cbb41,_0x26af46=null,_0x320503=null;try{if(_0x2947f2==_0x21ac9e([0x47,0x50,0x4c]))return _0x21ac9e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cbb41=_0x1a4323(),!_0x1cbb41)return _0x21ac9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cbb41[_0x21ac9e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x320503=_0x3efe75(_0x1cbb41[_0x21ac9e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cbb41[_0x21ac9e([0x6a,0x74,0x69])])),await _0x9e1fef()?_0x1b058a()?_0x26864c()?_0x21ac9e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b4c2c()?(_0x1cbb41[_0x21ac9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21ac9e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26af46=_0x84293e(_0x21ac9e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cbb41[_0x21ac9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21ac9e([0x74,0x72,0x69,0x61,0x6c])&&(_0x26af46=_0x84293e(_0x21ac9e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22ad77()):_0x21ac9e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21ac9e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21ac9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x345b14){return _0x21ac9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x26864c(){const _0x34f909=[_0x21ac9e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21ac9e([0x74,0x72,0x69,0x61,0x6c])][_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cbb41[_0x21ac9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f1baa/0x3e8:0xe10*_0x226d92;return _0x1cbb41[_0x21ac9e([0x65,0x78,0x70])]<_0x34f909;}function _0x1b058a(){const _0x29a0d5=_0x1cbb41[_0x21ac9e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x29a0d5)return!0x1;if(_0x29a0d5[_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ac9e([0x2a])))return!0x0;if(_0x29a0d5[_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ac9e([0x54,0x43])))return!0x0;if(_0x29a0d5[_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ac9e([0x52,0x54,0x43]))){if(_0x2090c1())return!0x0;if(_0x615f89()||_0x851004())return!0x0;}return!0x1;}function _0x1b4c2c(){const _0x267ab8=_0x1cbb41[_0x21ac9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x267ab8||0x0==_0x267ab8[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x397e40}=new URL(window[_0x21ac9e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x267ab8[_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x397e40))return!0x0;const _0x84d50e=_0x397e40[_0x21ac9e([0x73,0x70,0x6c,0x69,0x74])](_0x21ac9e([0x2e]));return _0x267ab8[_0x21ac9e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a5235=>_0x1a5235[_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ac9e([0x2a])))[_0x21ac9e([0x6d,0x61,0x70])](_0xa156a6=>_0xa156a6[_0x21ac9e([0x73,0x70,0x6c,0x69,0x74])](_0x21ac9e([0x2e])))[_0x21ac9e([0x73,0x6f,0x6d,0x65])](_0xdab0c5=>_0x84d50e[_0x21ac9e([0x65,0x76,0x65,0x72,0x79])]((_0x1ec56f,_0x1fbb6e)=>_0xdab0c5[_0x1fbb6e]===_0x1ec56f||_0xdab0c5[_0x1fbb6e]===_0x21ac9e([0x2a])));}function _0x22ad77(){return _0x26af46&&_0x320503?new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44623c,_0x7b6f7b)=>{_0x26af46[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x44623c,_0x7b6f7b),_0x320503[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x439c47=>{_0x439c47!=_0x21ac9e([0x56,0x61,0x6c,0x69,0x64])&&_0x44623c(_0x439c47);},_0x7b6f7b);}):_0x26af46||_0x320503||_0x21ac9e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3efe75(_0x131d28,_0x233ff9){return new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x419afe=>{if(_0x479f48())return _0x419afe(_0x21ac9e([0x56,0x61,0x6c,0x69,0x64]));_0x3ace2a(),_0x163fea[_0x21ac9e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21ac9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d1929=!0x1;const _0x2a2748=_0x147536();function _0x5ab9fe(_0x4ae86e){return!!_0x4ae86e&&(typeof _0x4ae86e===_0x21ac9e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ae86e===_0x21ac9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ae86e[_0x21ac9e([0x74,0x68,0x65,0x6e])]===_0x21ac9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ae86e[_0x21ac9e([0x63,0x61,0x74,0x63,0x68])]===_0x21ac9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a81ae(_0x4cb205){_0x47a892(_0x4cb205)[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x1f11eb=>{if(!_0x1f11eb||_0x1f11eb[_0x21ac9e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21ac9e([0x6f,0x6b]))return _0x21ac9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x11fb78(_0x5ab81b(_0x2a2748+_0x233ff9))!=_0x1f11eb[_0x21ac9e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21ac9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21ac9e([0x56,0x61,0x6c,0x69,0x64]);})[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x44ab7b=>(_0x1d200f(),_0x44ab7b),()=>{const _0x31b745=_0x5c5483();return null==_0x31b745?(_0x1d200f(),_0x21ac9e([0x56,0x61,0x6c,0x69,0x64])):_0x21ac9e(_0x5f1baa-_0x31b745>(0x2240991b^_0x3efb0f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x419afe)[_0x21ac9e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x419afe(_0x21ac9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x194fcf=0x67af39b^_0x3efb0f;function _0x1d200f(){const _0x1b6295=_0x21ac9e([0x6c,0x6c,0x63,0x74,0x2d])+_0x11fb78(_0x5ab81b(_0x131d28)),_0x32a43f=_0x36039a(_0x11fb78(window[_0x21ac9e([0x4d,0x61,0x74,0x68])][_0x21ac9e([0x63,0x65,0x69,0x6c])](_0x5f1baa/_0x194fcf)));window[_0x21ac9e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21ac9e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b6295,_0x32a43f);}function _0x5c5483(){const _0x180623=_0x21ac9e([0x6c,0x6c,0x63,0x74,0x2d])+_0x11fb78(_0x5ab81b(_0x131d28)),_0x1b350a=window[_0x21ac9e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21ac9e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x180623);return _0x1b350a?window[_0x21ac9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36039a(_0x1b350a),0x10)*_0x194fcf:null;}function _0x47a892(_0x635836){return new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x423570,_0x3f9cee)=>{_0x635836[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x423570,_0x3f9cee),window[_0x21ac9e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f9cee,0x64dc9db^_0x3efb0f);});}}_0x163fea[_0x21ac9e([0x6f,0x6e])](_0x21ac9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x350570,_0x537050)=>{if(_0x537050[0x0]!=_0x131d28)return _0x419afe(_0x21ac9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x537050[0x1]={..._0x537050[0x1],[_0x21ac9e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a2748};},{[_0x21ac9e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21ac9e([0x68,0x69,0x67,0x68])}),_0x163fea[_0x21ac9e([0x6f,0x6e])](_0x21ac9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ab3b6=>{_0x5ab9fe(_0x3ab3b6[_0x21ac9e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d1929=!0x0,_0x2a81ae(_0x3ab3b6[_0x21ac9e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21ac9e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21ac9e([0x6c,0x6f,0x77])}),_0x3054cb[_0x21ac9e([0x74,0x68,0x65,0x6e])](()=>{_0x3d1929||_0x419afe(_0x21ac9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x479f48(){return _0x163fea[_0x21ac9e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21ac9e([0x76,0x69,0x65,0x77])][_0x21ac9e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21ac9e([0x61,0x75,0x74,0x6f]);}function _0x3ace2a(){_0x163fea[_0x21ac9e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21ac9e([0x76,0x69,0x65,0x77])][_0x21ac9e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21ac9e([0x61,0x75,0x74,0x6f]);}}function _0x84293e(_0x3f9de1){const _0x291898=[new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x111027=>setTimeout(_0x111027,0x64523d7^_0x3efb0f)),_0x3054cb[_0x21ac9e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x196cf8=>{let _0x2ea03d=0x0;_0x163fea[_0x21ac9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ac9e([0x6f,0x6e])](_0x21ac9e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x383b24,_0x6ec7a9)=>{_0x6ec7a9[0x0][_0x21ac9e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ea03d++,_0x2ea03d==(0x64c1ce3^_0x3efb0f)&&(_0x196cf8(),_0x383b24[_0x21ac9e([0x6f,0x66,0x66])]());});}))];return window[_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21ac9e([0x72,0x61,0x63,0x65])](_0x291898)[_0x21ac9e([0x74,0x68,0x65,0x6e])](()=>_0x3f9de1);}async function _0x3108b3(){await _0x3054cb,_0x163fea[_0x21ac9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ac9e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7e989b,_0x163fea[_0x21ac9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ac9e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7e989b,_0x163fea[_0x21ac9e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21ac9e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2090c1(){return _0x30bf92(_0x21ac9e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x164eea(_0x21ac9e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x21ac9e([0x73,0x74,0x61,0x74,0x65])]==_0x21ac9e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x615f89(){return _0x30bf92(_0x21ac9e([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 _0x851004(){return _0x30bf92(_0x21ac9e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x28dd71(_0x35af9f){const _0x170dac=_0x3a2e32();_0x163fea[_0x170dac]=_0x21ac9e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x35af9f,_0x35af9f!=_0x21ac9e([0x56,0x61,0x6c,0x69,0x64])&&_0x3108b3();}function _0x3a2e32(){const _0x2ffcbb=window[_0x21ac9e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21ac9e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21ac9e([0x6e,0x6f,0x77])]())[_0x21ac9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21ac9e([0x2e]),'');let _0x5d6f50=_0x21ac9e([0x6c]);for(let _0x954fa4=0x0;_0x954fa4<_0x2ffcbb[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x954fa4+=0x2){let _0xaeadb0=window[_0x21ac9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ffcbb[_0x21ac9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x954fa4,_0x954fa4+0x2));_0xaeadb0>=_0x101c3b[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xaeadb0-=_0x101c3b[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d6f50+=_0x101c3b[_0xaeadb0];}return _0x5d6f50;}function _0x1a4323(){const _0x43cfbb=_0x2947f2[_0x21ac9e([0x73,0x70,0x6c,0x69,0x74])](_0x21ac9e([0x2e]));if(0x3!=_0x43cfbb[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x286383(_0x43cfbb[0x1]);function _0x286383(_0x1d8b97){const _0x14efbf=_0x500ad8(_0x1d8b97);return _0x14efbf&&_0x4d54c1()?_0x14efbf:null;function _0x4d54c1(){const _0x496776=_0x14efbf[_0x21ac9e([0x6a,0x74,0x69])],_0x254290=window[_0x21ac9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x496776[_0x21ac9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x496776[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23e9e2={..._0x14efbf,[_0x21ac9e([0x6a,0x74,0x69])]:_0x496776[_0x21ac9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x496776[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23e9e2[_0x21ac9e([0x76,0x63])],_0x5ab81b(_0x23e9e2)==_0x254290;}}}async function _0x9e1fef(){let _0x134a72=!0x0;try{const _0x162ce6=_0x2947f2[_0x21ac9e([0x73,0x70,0x6c,0x69,0x74])](_0x21ac9e([0x2e])),[_0xeb6147,_0x16b073,_0x11b421]=_0x162ce6;return _0x2430f8(_0xeb6147),await _0x60d117(_0xeb6147,_0x16b073,_0x11b421),_0x134a72;}catch(_0xd37bba){return!0x1;}function _0x2430f8(_0x3552f2){const _0x3c01a0=_0x500ad8(_0x3552f2);_0x3c01a0&&_0x3c01a0[_0x21ac9e([0x61,0x6c,0x67])]==_0x21ac9e([0x45,0x53,0x32,0x35,0x36])||(_0x134a72=!0x1);}async function _0x60d117(_0x27c24b,_0x62a3dc,_0x5095d9){const _0x6e0922=window[_0x21ac9e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21ac9e([0x66,0x72,0x6f,0x6d])](_0x59911f(_0x5095d9),_0xbc6d0e=>_0xbc6d0e[_0x21ac9e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x27e496=new window[(_0x21ac9e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21ac9e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27c24b+_0x21ac9e([0x2e])+_0x62a3dc),_0x29daa5=window[_0x21ac9e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21ac9e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x29daa5)return;const _0x5a6d03=await _0x29daa5[_0x21ac9e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21ac9e([0x6a,0x77,0x6b]),_0x393004,{[_0x21ac9e([0x6e,0x61,0x6d,0x65])]:_0x21ac9e([0x45,0x43,0x44,0x53,0x41]),[_0x21ac9e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21ac9e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21ac9e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x29daa5[_0x21ac9e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21ac9e([0x6e,0x61,0x6d,0x65])]:_0x21ac9e([0x45,0x43,0x44,0x53,0x41]),[_0x21ac9e([0x68,0x61,0x73,0x68])]:{[_0x21ac9e([0x6e,0x61,0x6d,0x65])]:_0x21ac9e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a6d03,_0x6e0922,_0x27e496)||(_0x134a72=!0x1);}}function _0x500ad8(_0x56e022){return _0x56e022[_0x21ac9e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21ac9e([0x65,0x79]))?JSON[_0x21ac9e([0x70,0x61,0x72,0x73,0x65])](_0x59911f(_0x56e022)):null;}function _0x59911f(_0x29a337){return window[_0x21ac9e([0x61,0x74,0x6f,0x62])](_0x29a337[_0x21ac9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21ac9e([0x2b]))[_0x21ac9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21ac9e([0x2f])));}function _0x5ab81b(_0x27d949){let _0xbb21f1=0x1505;function _0xe2e219(_0x4c0c45){for(let _0x485176=0x0;_0x485176<_0x4c0c45[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x485176++){const _0xec537e=_0x4c0c45[_0x21ac9e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x485176);_0xbb21f1=(_0xbb21f1<<0x5)+_0xbb21f1+_0xec537e,_0xbb21f1&=_0xbb21f1;}}function _0x2cbb52(_0xfb8de7){Array[_0x21ac9e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfb8de7)?_0xfb8de7[_0x21ac9e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2cbb52):_0xfb8de7&&typeof _0xfb8de7==_0x21ac9e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21ac9e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfb8de7)[_0x21ac9e([0x73,0x6f,0x72,0x74])]()[_0x21ac9e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ddbd1,_0x2562c2])=>{_0xe2e219(_0x3ddbd1),_0x2cbb52(_0x2562c2);}):_0xe2e219(window[_0x21ac9e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfb8de7));}return _0x2cbb52(_0x27d949),_0xbb21f1>>>0x0;}function _0x11fb78(_0x50c645){return _0x50c645[_0x21ac9e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21ac9e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21ac9e([0x30]));}function _0x36039a(_0x5edbea){return _0x5edbea[_0x21ac9e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21ac9e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21ac9e([0x6a,0x6f,0x69,0x6e])]('');}function _0x30bf92(_0x679aff){return _0x163fea[_0x21ac9e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x21ac9e([0x68,0x61,0x73])](_0x679aff);}function _0x164eea(_0x4cf371){return _0x163fea[_0x21ac9e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x21ac9e([0x67,0x65,0x74])](_0x4cf371);}function _0x7e989b(){}function _0x21ac9e(_0xdc943){return _0xdc943['map'](_0x255c27=>String['fromCharCode'](_0x255c27))['join']('');}_0x28dd71(await _0x68433e());}(this);}set['adapter'](_0x1770a8){if(this['_adapter'])throw new _0x3bf293('track-changes-adapter-already-set',this);this['_adapter']=_0x1770a8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x56078c=!0x1,toJSON:_0x3ce449=!0x1}={}){const _0x3676fb=[];for(const _0x343e10 of this['_suggestions']['values']())_0x56078c&&!_0x343e10['isInContent']||_0x3676fb['push'](_0x343e10);return _0x3ce449?_0x3676fb['map'](_0x2cf2ea=>_0x2cf2ea['toJSON']()):_0x3676fb;}['getSuggestion'](_0x4659cd){const _0xcd364d=this['_suggestions']['get'](_0x4659cd);if(!_0xcd364d)throw new _0x3bf293('track-changes-suggestion-not-found',this);return _0xcd364d;}['hasSuggestion'](_0x32fd0d){return this['_suggestions']['has'](_0x32fd0d);}['addSuggestionData'](_0x365eb3){const {authorId:_0x493e30,id:_0x4c3f8d,originalSuggestionId:_0x3fa2b8,attributes:_0x52ab35}=_0x365eb3,[_0x14e0d8,_0x21d953]=_0x365eb3['type']['split'](':'),_0x3c9b77=this['_suggestions']['get'](_0x4c3f8d)||this['_createSuggestion'](_0x14e0d8,_0x21d953,_0x4c3f8d,_0x493e30,_0x52ab35,_0x3fa2b8);if(this['_addThreadToSuggestion'](_0x3c9b77),this['_checkSuggestionCorrectness'](_0x3c9b77,_0x14e0d8,_0x21d953||null,_0x493e30),_0x3c9b77['createdAt']=_0x365eb3['createdAt'],_0x3c9b77['_isDataLoaded']=!0x0,_0x52ab35&&_0x52ab35['@external']){const _0x31e79e=_0x52ab35['@external'],_0x338443=this['_getExternalAuthor'](_0x31e79e['authorName']);_0x3c9b77['authoredAt']=_0x31e79e['createdAt'],_0x3c9b77['author']=_0x338443,_0x3c9b77['isExternal']=!0x0;}else _0x3c9b77['authoredAt']=_0x365eb3['createdAt'];switch(_0x365eb3['data']&&(_0x3c9b77['data']=_0x365eb3['data']),_0x365eb3['attributes']&&(_0x3c9b77['attributes']=_0x365eb3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3c9b77['_saved']=!0x0),this['_suggestionState']['get'](_0x3c9b77)){case'notReady':this['_suggestionState']['set'](_0x3c9b77,'dataReady');break;case'markerReady':_0x3c9b77['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3c9b77])),this['_refreshSuggestionsChain'](new Set([_0x3c9b77])),this['_suggestionState']['set'](_0x3c9b77,'ready'),this['fire']('suggestionLoaded',_0x3c9b77)):this['_suggestionState']['set'](_0x3c9b77,'removed');}return _0x3c9b77;}['acceptSuggestion'](_0x3b61a4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x523232 of _0x3b61a4['getAllAdjacentSuggestions']())_0x523232['accept']();});});}['discardSuggestion'](_0x2687a3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1ffa9d of _0x2687a3['getAllAdjacentSuggestions']())_0x1ffa9d['discard']();});});}['enableCommand'](_0x2f2aa9,_0x3c6b97){const _0x117ec1=this['editor']['commands']['get'](_0x2f2aa9);if(!_0x117ec1)throw new _0x3bf293('track-changes-command-not-found',this,{'commandName':_0x2f2aa9});if(this['_enabledCommands']['has'](_0x117ec1))throw new _0x3bf293('track-changes-enable-command-twice',this,{'commandName':_0x2f2aa9});this['_enabledCommands']['add'](_0x117ec1),_0x3c6b97&&_0x117ec1['on']('execute',(_0x148c6c,_0x424681)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x424681['length']>0x0&&_0x424681[_0x424681['length']-0x1]&&_0x424681[_0x424681['length']-0x1]['forceDefaultExecution']?_0x424681['pop']():(_0x148c6c['return']=_0x3c6b97((..._0x2bc981)=>_0x117ec1['execute'](..._0x2bc981,{'forceDefaultExecution':!0x0}),..._0x424681),_0x148c6c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x34749d){let _0x30dd3b,_0x4913d3;const _0x15ce59=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x30dd3b=_0x34749d();}catch(_0x5d66ae){_0x4913d3=_0x5d66ae;}return _0x15ce59||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4913d3&&_0x3bf293['rethrowUnexpectedError'](_0x4913d3,this),_0x30dd3b;}['markInsertion'](_0x267bec,_0x12a1d1=null,_0x12b0c2={}){if(_0x267bec['isCollapsed'])return null;const _0x26e1bf=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x12b0c2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1613ea,meta:_0x5004e8}of this['_findSuggestions'](_0x267bec,'insertion'))if(_0x5004e8['isOwn']){if(!_0x5004e8['isNextTo']){if(_0x5004e8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x1613ea,_0x12b0c2))continue;return _0x1613ea;}if(Xt(_0x1613ea,_0x12b0c2))return _0x1613ea;this['_breakSuggestionMarker'](_0x1613ea,_0x267bec['start'],_0x267bec['end']);break;}if(_0x12a1d1==_0x1613ea['subType']&&Xt(_0x1613ea,_0x12b0c2)){const _0x91a9dc=_0x1613ea['getFirstRange']();return _0x91a9dc['start']['isEqual'](_0x267bec['end'])?this['_setSuggestionRange'](_0x1613ea,this['_model']['createRange'](_0x267bec['start'],_0x91a9dc['end'])):this['_setSuggestionRange'](_0x1613ea,this['_model']['createRange'](_0x91a9dc['start'],_0x267bec['end'])),_0x1613ea;}}const _0x3a6501=_0x147536(),_0x3714b0=_0x26e1bf['id'],_0x13414f=_0x12a1d1?'insertion:'+_0x12a1d1:'insertion',_0x422fba=this['_setSuggestionData']({'id':_0x3a6501,'type':_0x13414f,'createdAt':new Date(),'authorId':_0x3714b0,'attributes':_0x12b0c2});return this['_addSuggestionMarker'](_0x13414f,_0x3a6501,_0x3714b0,_0x267bec),_0x422fba;}['markMultiRangeInsertion'](_0xfdef8a,_0x1e45cc='multi',_0xc6fcdd={}){const _0x3dec98=this['editor']['plugins']['get']('Users')['me'],_0x4bbcda=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1e45cc,'join');this['_trackingSessionId']&&(_0xc6fcdd['trackingSessionId']=this['_trackingSessionId']);for(const _0x2ca147 of this['getSuggestions']())if(_0x2ca147['author']['id']==_0x3dec98['id']&&'insertion'==_0x2ca147['type']&&_0x2ca147['subType']==_0x1e45cc&&Xt(_0x2ca147,_0xc6fcdd)&&(_0x4bbcda(_0x2ca147['getRanges'](),_0xfdef8a)||_0x4bbcda(_0xfdef8a,_0x2ca147['getRanges']()))){for(const _0x25567f of _0xfdef8a)_0x2ca147['addRange'](_0x25567f);return _0x2ca147;}for(const {suggestion:_0x5ad801,meta:_0x4e9e25}of this['_findSuggestions'](_0xfdef8a,'insertion')){if(!_0x4e9e25['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4e9e25['containsRangeInObject'])continue;if(!Xt(_0x5ad801,_0xc6fcdd))continue;let _0x16b7c4=!0x0;for(const _0x5b36dd of _0x5ad801['getRanges']())for(const _0x512f29 of _0xfdef8a)if(!_0x5b36dd['containsRange'](_0x512f29)){_0x16b7c4=!0x1;break;}if(_0x16b7c4)return _0x5ad801;}const _0x5b58ca=_0x147536(),_0x4495dc=_0x3dec98['id'],_0x166edf='insertion:'+_0x1e45cc,_0x1a2709=this['_setSuggestionData']({'id':_0x5b58ca,'type':_0x166edf,'createdAt':new Date(),'authorId':_0x4495dc,'attributes':_0xc6fcdd});for(const _0x5c8aaf of _0xfdef8a)this['_addSuggestionMarker'](_0x166edf,_0x5b58ca,_0x4495dc,_0x5c8aaf,o['getMultiRangeId']());return _0x1a2709;}['markInlineFormat'](_0x1e1877,_0x54bdf2,_0x2b635a=null,_0xc51c6f={}){if(_0x2b635a=_0x2b635a||Kt(_0x54bdf2),_0x1e1877['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xc51c6f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4c2575=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b635a,'accept');return this['forceDefaultExecution'](()=>_0x4c2575([_0x1e1877],_0x54bdf2,_0xc51c6f)),null;}const _0x2b0e09=this['editor']['plugins']['get']('Users')['me'],_0x488eaf=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x22f1f1,meta:_0x28364b}of this['_findSuggestions'](_0x1e1877,'insertion'))_0x28364b['isOwn']&&!_0x28364b['isInsideObject']&&_0x488eaf['push'](..._0x22f1f1['getRanges']());}const _0x5dd9aa=function(_0x46b306,_0x1f1685){const _0x829490=[];for(const _0x578ece of _0x1f1685){const _0x580fa6=_0x46b306['getIntersection'](_0x578ece);_0x580fa6&&_0x829490['push'](_0x580fa6);}return _0x829490;}(_0x1e1877,_0x488eaf),_0x41f26a=function(_0x4bc1f4,_0x4ff136){const _0x113662=[_0x4bc1f4];for(const _0x265261 of _0x4ff136){let _0x4d91e8=0x0;for(;_0x4d91e8<_0x113662['length'];){const _0x56170c=_0x113662[_0x4d91e8]['getDifference'](_0x265261);_0x113662['splice'](_0x4d91e8,0x1,..._0x56170c),_0x4d91e8+=_0x56170c['length'];}}return _0x113662;}(_0x1e1877,_0x488eaf);_0x5dd9aa['length']&&this['_model']['change'](()=>{for(const _0xe4889d of _0x5dd9aa){const _0x3a2af2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b635a,'accept');this['forceDefaultExecution'](()=>_0x3a2af2([_0xe4889d],_0x54bdf2,_0xc51c6f));}});for(const _0x5afd43 of _0x41f26a){let _0x303de1=null,_0x1fed1a=_0x5afd43['start'],_0x28b41d=_0x5afd43['end'];for(const {suggestion:_0x340185,meta:_0x24ee03}of this['_findSuggestions'](_0x5afd43,'formatInline')){if(!_0x24ee03['isOwn'])continue;if(_0x340185['subType']!=_0x2b635a)continue;if(!Xt(_0x340185,_0xc51c6f))continue;const _0x26eda1=_0x340185['getFirstRange']();if(_0x26eda1['containsRange'](_0x5afd43,!0x0))return null;_0x1fed1a=_0x1fed1a['isBefore'](_0x26eda1['start'])?_0x1fed1a:_0x26eda1['start'],_0x28b41d=_0x28b41d['isAfter'](_0x26eda1['end'])?_0x28b41d:_0x26eda1['end'],_0x303de1?_0x26eda1['start']['isBefore'](_0x303de1['getFirstRange']()['start'])?(_0x303de1['removeMarkers'](),_0x303de1=_0x340185):_0x340185['removeMarkers']():_0x303de1=_0x340185;}const _0x50ae13=this['_model']['createRange'](_0x1fed1a,_0x28b41d);if(_0x303de1)this['_setSuggestionRange'](_0x303de1,_0x50ae13);else{const _0x56a034=_0x147536(),_0x377cd5=_0x2b0e09['id'];this['_setSuggestionData']({'id':_0x56a034,'type':'formatInline:'+_0x2b635a,'data':_0x54bdf2,'createdAt':new Date(),'authorId':_0x377cd5,'attributes':_0xc51c6f}),this['_addSuggestionMarker']('formatInline:'+_0x2b635a,_0x56a034,_0x377cd5,_0x50ae13);}}return null;}['markBlockFormat'](_0x1a7c27,_0x5ea497,_0x23973b=[],_0x383d51=null,_0x3ebf49={}){_0x5ea497['formatGroupId']||(_0x5ea497['formatGroupId']=_0x5ea497['commandName']),_0x5ea497['multipleBlocks']=_0x1a7c27['is']('range'),_0x383d51=_0x383d51||Kt(_0x5ea497);const _0x2ff65d=_0x23973b['map'](_0x517873=>zt(_0x517873,this['_model'])),_0x44048b=_0x1a7c27['is']('range')?_0x1a7c27:zt(_0x1a7c27,this['_model']);if(this['_trackingSessionId']&&(_0x3ebf49['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xdcb41e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x383d51,'accept');return this['forceDefaultExecution'](()=>_0xdcb41e([_0x44048b],_0x5ea497,_0x3ebf49)),null;}_0x2ff65d['push'](_0x44048b);let _0x2c3209=!0x0;for(const _0x1e3154 of _0x2ff65d)if(!this['_rangeIsInLocalUserInsertion'](_0x1e3154)){_0x2c3209=!0x1;break;}if(_0x2c3209&&'always'!==this['_trackFormatChanges']){const _0x2666d4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x383d51,'accept');return this['forceDefaultExecution'](()=>_0x2666d4([_0x44048b],_0x5ea497,_0x3ebf49)),null;}let _0x54c7fc=null,_0xd91bf7=_0x44048b['start'],_0x3ec6b6=_0x44048b['end'];for(const {suggestion:_0x1ba8be,meta:_0x515a1c}of this['_findSuggestions'](_0x44048b,'formatBlock')){if(!_0x515a1c['isOwn'])continue;if(_0x515a1c['isNextTo']||_0x515a1c['containsRangeInObject']||_0x515a1c['isInsideObject'])continue;if(_0x1ba8be['data']['formatGroupId']!=_0x5ea497['formatGroupId'])continue;if(!Xt(_0x1ba8be,_0x3ebf49))continue;const _0x4bb180=_0x1ba8be['getFirstRange']();if(_0x1ba8be['subType']==_0x383d51){if(_0x4bb180['containsRange'](_0x44048b,!0x0))return null;_0xd91bf7=_0xd91bf7['isBefore'](_0x4bb180['start'])?_0xd91bf7:_0x4bb180['start'],_0x3ec6b6=_0x3ec6b6['isAfter'](_0x4bb180['end'])?_0x3ec6b6:_0x4bb180['end'],_0x54c7fc?_0x4bb180['start']['isBefore'](_0x54c7fc['getFirstRange']()['start'])?(_0x54c7fc['removeMarkers'](),_0x54c7fc=_0x1ba8be):_0x1ba8be['removeMarkers']():_0x54c7fc=_0x1ba8be;}else{const _0x354b84=_0x44048b['getIntersection'](_0x4bb180);this['_cutOutSuggestionMarker'](_0x1ba8be,_0x354b84);}}const _0x559886=this['editor']['plugins']['get']('Users')['me'],_0x42459b=_0x147536(),_0x64dfc8=_0x559886['id'];if(_0x54c7fc)return this['_setSuggestionRange'](_0x54c7fc,this['_model']['createRange'](_0xd91bf7,_0x3ec6b6)),_0x54c7fc;{const _0x90078f=this['_setSuggestionData']({'id':_0x42459b,'type':'formatBlock:'+_0x383d51,'data':_0x5ea497,'createdAt':new Date(),'authorId':_0x64dfc8,'attributes':_0x3ebf49});return this['_addSuggestionMarker']('formatBlock:'+_0x383d51,_0x42459b,_0x64dfc8,this['_model']['createRange'](_0xd91bf7,_0x3ec6b6)),_0x90078f;}}['markMultiRangeBlockFormat'](_0x175c35,_0x232e32,_0x444ce4=[],_0x502b90=null,_0x19cd2a={}){_0x232e32['formatGroupId']||(_0x232e32['formatGroupId']=_0x232e32['commandName']);const _0x229199=_0x175c35[0x0];_0x232e32['multipleBlocks']=_0x229199['is']('range'),_0x502b90=_0x502b90||Kt(_0x232e32);const _0x4a653a=_0x444ce4['map'](_0x63feaf=>zt(_0x63feaf,this['_model'])),_0xf3c31=_0x229199['is']('range')?_0x175c35:_0x175c35['map'](_0x380759=>zt(_0x380759,this['_model']));if(this['_trackingSessionId']&&(_0x19cd2a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x53af88=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x502b90,'accept');return this['forceDefaultExecution'](()=>_0x53af88(_0xf3c31,_0x232e32,_0x19cd2a)),null;}_0x4a653a['push'](..._0xf3c31);let _0x31dd9a=!0x0;for(const _0x4a9904 of _0x4a653a)if(!this['_rangeIsInLocalUserInsertion'](_0x4a9904)){_0x31dd9a=!0x1;break;}if(_0x31dd9a&&'always'!==this['_trackFormatChanges']){const _0x19344c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x502b90,'accept');return this['forceDefaultExecution'](()=>_0x19344c(_0xf3c31,_0x232e32,_0x19cd2a)),null;}const _0x315da8=this['editor']['plugins']['get']('Users')['me'];for(const _0x24997e of this['getSuggestions']()){if(_0x24997e['author']['id']!=_0x315da8['id'])continue;if('formatBlock'!=_0x24997e['type']||_0x24997e['data']['formatGroupId']!=_0x232e32['formatGroupId'])continue;if(!Xt(_0x24997e,_0x19cd2a))continue;const _0x23db89=_0x24997e['subType']==_0x502b90;for(let _0x3d5be5=0x0;_0x3d5be5<_0xf3c31['length'];_0x3d5be5++){const _0x1f97ce=_0xf3c31[_0x3d5be5];for(const _0x3d53cc of _0x24997e['getMarkers']()){const _0x52ded4=_0x3d53cc['getRange']();if(_0x1f97ce['isEqual'](_0x52ded4)){_0x23db89?(_0xf3c31['splice'](_0x3d5be5,0x1),_0x3d5be5--):_0x24997e['removeMarker'](_0x3d53cc['name']);break;}}}}if(0x0==_0xf3c31['length'])return null;const _0x3165c0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x502b90,'join');for(const _0x348d7 of this['getSuggestions']())if(_0x348d7['author']['id']==_0x315da8['id']&&'formatBlock'==_0x348d7['type']&&_0x348d7['data']['formatGroupId']==_0x232e32['formatGroupId']&&_0x348d7['subType']==_0x502b90&&Xt(_0x348d7,_0x19cd2a)&&(_0x3165c0(_0x348d7['getRanges'](),_0xf3c31)||_0x3165c0(_0xf3c31,_0x348d7['getRanges']()))){for(const _0xb78c5a of _0xf3c31)_0x348d7['addRange'](_0xb78c5a);return _0x348d7;}const _0xa8ab15=_0x147536(),_0x304c8b=_0x315da8['id'],_0x21c324='formatBlock:'+_0x502b90,_0x4d073d=this['_setSuggestionData']({'id':_0xa8ab15,'type':_0x21c324,'data':_0x232e32,'createdAt':new Date(),'authorId':_0x304c8b,'attributes':_0x19cd2a});for(const _0x3319df of _0xf3c31)this['_addSuggestionMarker'](_0x21c324,_0xa8ab15,_0x304c8b,_0x3319df,o['getMultiRangeId']());return _0x4d073d;}['markDeletion'](_0x1bfe80,_0x475d3f=null,_0x2952dd={}){if(_0x1bfe80['isCollapsed'])return null;const _0x2ac5df=this['editor']['plugins']['get']('Users')['me'],_0x1e5e13=new _0x3a5e87(_0x1bfe80['start'],_0x1bfe80['end']);this['_trackingSessionId']&&(_0x2952dd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x18688c,meta:_0x3112c5}of this['_findSuggestions'](_0x1e5e13,'insertion'))if(_0x3112c5['isOwn']&&!_0x3112c5['isNextTo']){if(_0x18688c['isMultiRange']){const _0x400d89=_0x18688c['getRanges']()['filter'](_0x3252fd=>'$graveyard'!=_0x3252fd['root']['rootName']);_0x400d89['every'](_0x5a497b=>_0x1e5e13['containsRange'](_0x5a497b,!0x0))&&_0x18688c['discard']();if(_0x400d89['some'](_0x2bba2b=>_0x2bba2b['containsRange'](_0x1e5e13,!0x0))){const _0x2c615b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x475d3f,'accept');return this['forceDefaultExecution'](()=>_0x2c615b([_0x1e5e13],null,_0x2952dd)),null;}}else{const _0x131962=_0x1e5e13['getIntersection'](_0x18688c['getFirstRange']());null!==_0x131962&&_0x18688c['_onDiscard']([_0x131962],null,_0x2952dd);}}if(_0x1e5e13['detach'](),_0x1e5e13['isCollapsed']||'$graveyard'==_0x1e5e13['root']['rootName'])return null;let _0xa98217=null,_0x3677eb=_0x1e5e13['start'],_0xcfe56b=_0x1e5e13['end'];const _0x3b44cb=this['_findSuggestions'](_0x1e5e13,'deletion');for(const {suggestion:_0x3ce868,meta:_0x434a65}of _0x3b44cb){const _0x1aad77=this['_model']['createRange'](_0x3677eb,_0xcfe56b);if(_0x434a65['isOwn']&&(this['_mergeNestedSuggestions']||!_0x434a65['containsRangeInObject']&&!_0x434a65['isInsideObject'])){if(_0x3ce868['isMultiRange']){if(!Xt(_0x3ce868,_0x2952dd))continue;let _0x31957e=!0x0;for(const _0x32096d of _0x3ce868['getRanges']()){if(_0x32096d['containsRange'](_0x1aad77,!0x0))return _0x3ce868;_0x1aad77['containsRange'](_0x32096d)||(_0x31957e=!0x1);}_0x31957e&&_0x3ce868['discard']();}else{const _0x3b0eaa=_0x3ce868['getFirstRange']();if(_0x3b0eaa['containsRange'](_0x1aad77,!0x0))return _0x3ce868;if(!Xt(_0x3ce868,_0x2952dd)){_0x1aad77['containsRange'](_0x3b0eaa)?_0x3ce868['removeMarkers']():_0x3b0eaa['containsPosition'](_0x3677eb)?_0x3677eb=_0x3b0eaa['end']:_0x3b0eaa['containsPosition'](_0xcfe56b)&&(_0xcfe56b=_0x3b0eaa['start']);continue;}_0x3677eb=_0x3677eb['isBefore'](_0x3b0eaa['start'])?_0x3677eb:_0x3b0eaa['start'],_0xcfe56b=_0xcfe56b['isAfter'](_0x3b0eaa['end'])?_0xcfe56b:_0x3b0eaa['end'],_0x2952dd=Object['assign']({},_0x3ce868['attributes']),_0xa98217?_0x3b0eaa['start']['isBefore'](_0xa98217['getFirstRange']()['start'])?(_0xa98217['removeMarkers'](),_0xa98217=_0x3ce868):_0x3ce868['removeMarkers']():_0xa98217=_0x3ce868;}}}if(_0xa98217)return this['_setSuggestionRange'](_0xa98217,this['_model']['createRange'](_0x3677eb,_0xcfe56b)),_0xa98217;{const _0x39d6e9=_0x147536(),_0x297b44=this['_model']['createRange'](_0x3677eb,_0xcfe56b),_0x35c736=_0x2ac5df['id'],_0x23ccb0=_0x475d3f?'deletion:'+_0x475d3f:'deletion',_0x11ce0e=this['_setSuggestionData']({'id':_0x39d6e9,'type':_0x23ccb0,'createdAt':new Date(),'authorId':_0x35c736,'attributes':_0x2952dd});return this['_addSuggestionMarker'](_0x23ccb0,_0x39d6e9,_0x35c736,_0x297b44),_0x11ce0e;}}['markMultiRangeDeletion'](_0x2a0809,_0x538360='multi',_0x5c27d6={}){const _0x54c8d3=this['editor']['plugins']['get']('Users')['me'],_0x194045=_0x2a0809['map'](_0x5753eb=>new _0x3a5e87(_0x5753eb['start'],_0x5753eb['end'])),_0x2fa9e1=new Set();this['_trackingSessionId']&&(_0x5c27d6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1aaf1f,meta:_0x54609d}of this['_findSuggestions'](_0x194045,'insertion'))_0x54609d['isOwn']&&!_0x54609d['isNextTo']&&_0x2fa9e1['add'](_0x1aaf1f);for(const _0x30fa06 of _0x2fa9e1)if(_0x30fa06['isMultiRange']){const _0x448d8e=_0x30fa06['getRanges']();(!_0x30fa06['attributes']||!_0x30fa06['attributes']['skipNestingCheck'])&&(_0x448d8e['every'](_0x1cdd96=>_0x194045['some'](_0x4c087d=>_0x4c087d['containsRange'](_0x1cdd96,!0x0)))&&_0x30fa06['discard']());if(_0x194045['every'](_0x9e98b0=>_0x448d8e['some'](_0x12c849=>_0x12c849['containsRange'](_0x9e98b0,!0x0)))){const _0x2b00da=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538360,'accept');return this['forceDefaultExecution'](()=>_0x2b00da(_0x2a0809,null,_0x5c27d6)),null;}}else{const _0x4696db=_0x30fa06['getFirstRange']();_0x194045['some'](_0x30a0c6=>_0x30a0c6['containsRange'](_0x4696db,!0x0))&&_0x30fa06['discard']();if(_0x194045['every'](_0x306d2a=>_0x4696db['containsRange'](_0x306d2a,!0x0))){const _0x7f517e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538360,'accept');return this['forceDefaultExecution'](()=>_0x7f517e(_0x194045,null,_0x5c27d6)),null;}}const _0x54bfdb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538360,'join');let _0x58bcb6=null;for(const _0x414119 of this['getSuggestions']())if(_0x414119['author']['id']==_0x54c8d3['id']&&_0x414119['isInContent']&&'deletion'==_0x414119['type']&&_0x414119['subType']==_0x538360&&Xt(_0x414119,_0x5c27d6)&&(_0x54bfdb(_0x414119['getRanges'](),_0x194045)||_0x54bfdb(_0x194045,_0x414119['getRanges']()))){if(_0x58bcb6){if(_0x414119['commentThread']&&_0x414119['commentThread']['length'])continue;for(const _0x2d5035 of _0x414119['getRanges']())_0x58bcb6['isIntersectingWithRange'](_0x2d5035)||_0x58bcb6['addRange'](_0x2d5035);_0x414119['removeMarkers']();}else{_0x58bcb6=_0x414119;for(const _0x46ada8 of _0x194045)_0x414119['isIntersectingWithRange'](_0x46ada8)||_0x414119['addRange'](_0x46ada8);}}if(_0x58bcb6)return _0x58bcb6;_0x2fa9e1['clear']();for(const {suggestion:_0x29b788,meta:_0x46b757}of this['_findSuggestions'](_0x194045,'deletion'))_0x46b757['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46b757['containsRangeInObject']&&!_0x46b757['isInsideObject'])&&Xt(_0x29b788,_0x5c27d6)&&_0x2fa9e1['add'](_0x29b788);for(const _0x5a5fdf of _0x2fa9e1){const _0x57ea14=_0x5a5fdf['getRanges']();if(!_0x5c27d6||!_0x5c27d6['skipNestingCheck']){if(_0x194045['every'](_0x588936=>_0x57ea14['some'](_0x1385d5=>_0x1385d5['containsRange'](_0x588936,!0x0))))return _0x5a5fdf;}(!_0x5a5fdf['attributes']||!_0x5a5fdf['attributes']['skipNestingCheck'])&&(_0x57ea14['every'](_0x487f7c=>_0x194045['some'](_0x559fc2=>_0x559fc2['containsRange'](_0x487f7c,!0x0)))&&_0x5a5fdf['discard']());}const _0x2fe5be=_0x147536(),_0x4d6ebf=_0x54c8d3['id'],_0x128214='deletion:'+_0x538360,_0x2f3c14=this['_setSuggestionData']({'id':_0x2fe5be,'type':_0x128214,'createdAt':new Date(),'authorId':_0x4d6ebf,'attributes':_0x5c27d6});for(const _0x3c746a of _0x194045)_0x3c746a['detach'](),_0x3c746a['isCollapsed']||'$graveyard'==_0x3c746a['root']['rootName']||this['_addSuggestionMarker'](_0x128214,_0x2fe5be,_0x4d6ebf,_0x3c746a,o['getMultiRangeId']());return _0x2f3c14;}['markAttributeChange'](_0x250972,_0x65cb46,_0x3a8666,_0x4dd2de,_0x21b46e){if(_0x250972['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x556583=this['editor']['plugins']['get']('Users')['me']['id'],_0x5649e6=Array['from'](this['_suggestions']['values']())['filter'](_0x454f49=>'attribute'==_0x454f49['type']&&_0x454f49['data']['key']==_0x65cb46&&_0x454f49['isIntersectingWithRange'](_0x250972));if(this['_trackingSessionId']&&(_0x21b46e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x11d016=this['_findSuggestions'](_0x250972,'insertion')['filter'](({meta:_0x326158})=>_0x326158['isOwn']&&!_0x326158['isInsideObject']&&!_0x326158['isNextTo'])['map'](({suggestion:_0x3a3b37})=>_0x3a3b37);_0x5649e6['unshift'](..._0x11d016);}const _0x37eb28=new Map([[_0x250972,_0x3a8666]]);for(const _0x341753 of _0x5649e6){const _0x547274='attribute'==_0x341753['type']?_0x341753['data']['oldValue']:void 0x0,_0x58dcaa=_0x341753['getFirstRange'](),_0x41a9c1=Array['from'](_0x37eb28['keys']())['find'](_0x292c52=>_0x292c52['isIntersecting'](_0x58dcaa));if(!_0x41a9c1)continue;const _0x422f2d=_0x41a9c1['getDifference'](_0x58dcaa);this['_isBlockAttribute'](_0x65cb46)&&'insertion'==_0x341753['type']&&0x0!=_0x422f2d['length']||(_0x37eb28['delete'](_0x41a9c1),_0x422f2d['forEach'](_0x33cbac=>{_0x37eb28['set'](_0x33cbac,_0x3a8666);}),'insertion'!=_0x341753['type']&&_0x547274!=_0x4dd2de&&_0x37eb28['set'](_0x41a9c1['getIntersection'](_0x58dcaa),_0x547274));}const _0x513bbd=[];for(const [_0x2bfc36,_0x3fcc81]of _0x37eb28){const _0xc286de=_0x147536(),_0x5b4f4f={'key':_0x65cb46,'oldValue':_0x3fcc81,'newValue':_0x4dd2de};_0x65cb46['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':_0x65cb46});const _0x9ee8b8=('attribute:'+(_0x65cb46+'|'+Kt({'newValue':_0x4dd2de})))['substring'](0x0,0x3c),_0x114f80=this['_setSuggestionData']({'id':_0xc286de,'type':_0x9ee8b8,'data':_0x5b4f4f,'createdAt':new Date(),'authorId':_0x556583,'attributes':_0x21b46e});_0x513bbd['push'](_0x114f80),this['_addSuggestionMarker'](_0x9ee8b8,_0xc286de,_0x556583,_0x2bfc36);}return _0x513bbd;}['enableDefaultAttributesIntegration'](_0x4fde28){this['enableCommand'](_0x4fde28,(_0x42426a,..._0x46cdfb)=>{this['_recordAttributeChanges'](()=>{_0x42426a(..._0x46cdfb);});});}['registerBlockAttribute'](_0x298102){this['_blockAttributeKeys']['add'](_0x298102);}['registerInlineAttribute'](_0xf02cc0){this['_inlineAttributeKeys']['add'](_0xf02cc0);}['startTrackingSession'](_0x4dbf78){return this['_trackingSessionId']=void 0x0!==_0x4dbf78?_0x4dbf78:_0x147536(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1b7cf4){return'attribute'==_0x1b7cf4['type']?_0x1b7cf4['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x35275a,_0x5ee5c1){const _0x27805d=_0x35275a['getFirstMarker']();this['_model']['change'](_0x1af52b=>{_0x1af52b['updateMarker'](_0x27805d,{'range':_0x5ee5c1});});}['_addThreadToSuggestion'](_0x11d5b1){const _0x2672e1=_0x11d5b1['id'],_0x45c14d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2672e1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x45c14d,'threadId':_0x2672e1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x340ee6=this['_commentsRepository']['getCommentThread'](_0x2672e1);_0x340ee6['unbind']('isRemovable'),_0x340ee6['isRemovable']=!0x1,_0x11d5b1['commentThread']=_0x340ee6;}['_checkSuggestionCorrectness'](_0x19c19c,_0x61229b,_0x2dacfa,_0x288f02){if(_0x19c19c['type']!=_0x61229b||_0x19c19c['subType']!=_0x2dacfa||_0x19c19c['creator']['id']!=_0x288f02)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3bf293('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xed16cc,_0x53a322){const _0x3f3745=_0xed16cc['getFirstRange']();if(_0x53a322['isEqual'](_0x3f3745))_0xed16cc['removeMarkers']();else{if(_0x3f3745['containsRange'](_0x53a322)){const _0xe8686c=this['_model']['createPositionAt'](_0x53a322['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xed16cc,this['_model']['createRange'](_0x3f3745['start'],_0xe8686c));const _0x4341c8=_0x147536(),_0x2b9d1d=_0xed16cc['creator']['id'],_0x28abc6=_0xed16cc['type']+':'+_0xed16cc['subType'];this['_setSuggestionData']({'id':_0x4341c8,'type':_0x28abc6,'createdAt':new Date(),'authorId':_0x2b9d1d,'data':_0xed16cc['data'],'attributes':_0xed16cc['attributes']});const _0x56ca64=this['_model']['createPositionAt'](_0x53a322['end']['parent'],'after'),_0x555098=this['_model']['createRange'](_0x56ca64,_0x3f3745['end']);this['_addSuggestionMarker'](_0x28abc6,_0x4341c8,_0x2b9d1d,_0x555098);}else{if(_0x3f3745['containsPosition'](_0x53a322['start'])){const _0xfed190=this['_model']['createPositionAt'](_0x53a322['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xed16cc,this['_model']['createRange'](_0x3f3745['start'],_0xfed190));}else{const _0x5040e8=this['_model']['createPositionAt'](_0x53a322['end']['parent'],'after');this['_setSuggestionRange'](_0xed16cc,this['_model']['createRange'](_0x5040e8,_0x3f3745['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x67a98e){for(const {suggestion:_0x2072a8,meta:_0x43206f}of this['_findSuggestions'](_0x67a98e,'insertion')){if(!_0x43206f['isOwn'])continue;const _0x28b99a=_0x2072a8['getRanges']();for(const _0x5b4af9 of _0x28b99a)if(!_0x67a98e['getDifference'](_0x5b4af9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x103db7){const _0xe65919=this['editor']['plugins']['get']('Users')['getUser'](_0x103db7);if(!_0xe65919)throw new _0x3bf293('track-changes-user-not-found',this);return _0xe65919;}['_getExternalAuthor'](_0x5cde19){const _0x513464=this['editor']['plugins']['get']('Users'),_0x46d4d2=_0x39cd73('external:'+_0x5cde19),_0x41f5c2=_0x513464['getUser'](_0x46d4d2);return _0x41f5c2||_0x513464['addUser']({'id':_0x46d4d2,'name':_0x5cde19});}['_createSuggestion'](_0x5c1a23,_0x134fca,_0x352144,_0x1df589,_0x5cc4e2,_0x17a195){const _0x51006f=this['_getAuthorFromId'](_0x1df589),_0x628a0a=this['_suggestionFactory']['buildSuggestion'](_0x5c1a23,_0x134fca,_0x352144,_0x51006f,_0x5cc4e2,_0x4e7cb9=>{this['_updateSuggestionData'](_0x352144,{'attributes':_0x4e7cb9});const _0x261619=this['getSuggestion'](_0x352144);this['_joinWithAdjacentSuggestions'](new Set([_0x261619])),this['_refreshSuggestionsChain'](new Set([_0x261619]));},_0x17a195);return this['listenTo'](_0x628a0a,'accept',()=>{this['_updateSuggestionData'](_0x352144,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x628a0a,'discard',()=>{this['_updateSuggestionData'](_0x352144,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x352144,_0x628a0a),this['_suggestionState']['set'](_0x628a0a,'notReady'),_0x628a0a;}['_splitMarkerName'](_0x1ed19e){const _0x23fa78=_0x1ed19e['split'](':');return{'group':_0x23fa78[0x0],'type':_0x23fa78[0x1],'subType':_0x23fa78['length']>=0x5?_0x23fa78[0x2]:null,'id':_0x23fa78['length']<0x5?_0x23fa78[0x2]:_0x23fa78[0x3],'authorId':_0x23fa78['length']<0x5?_0x23fa78[0x3]:_0x23fa78[0x4],'markerCount':0x6==_0x23fa78['length']?_0x23fa78[0x5]:null};}['_breakSuggestionMarker'](_0xba9506,_0x1e332e,_0x2516bd){const _0x3e9df3=_0xba9506['getFirstRange'](),_0x13328a=_0x3e9df3['start'],_0xff918f=_0x3e9df3['end'];this['_setSuggestionRange'](_0xba9506,this['_model']['createRange'](_0x13328a,_0x1e332e));const _0x6fb33f=_0x147536(),_0x42e21f=_0xba9506['creator']['id'],_0x1095a5=_0xba9506['type']+(_0xba9506['subType']?':'+_0xba9506['subType']:'');this['_setSuggestionData']({'id':_0x6fb33f,'type':_0x1095a5,'createdAt':new Date(),'authorId':_0x42e21f,'originalSuggestionId':_0xba9506['_originalSuggestionId']||_0xba9506['id'],'attributes':_0xba9506['attributes'],'data':_0xba9506['data']});const _0x23ead6=this['_getAttributeKey'](_0xba9506);('formatBlock'==_0xba9506['type']||_0x23ead6&&this['_isBlockAttribute'](_0x23ead6))&&(_0x2516bd=this['_model']['createPositionBefore'](_0x2516bd['parent'])),this['_addSuggestionMarker'](_0x1095a5,_0x6fb33f,_0x42e21f,this['_model']['createRange'](_0x2516bd,_0xff918f));}['_findSuggestions'](_0x2af7d5,_0x543bbf=null){const _0x57ebaa=[],_0x42bbbc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2af7d5)||(_0x2af7d5=[_0x2af7d5]);for(const _0x496f92 of this['getSuggestions']()){if(!_0x496f92['isInContent'])continue;if(_0x543bbf&&_0x496f92['type']!=_0x543bbf)continue;let _0x4eb353=!0x1;for(const _0x277252 of _0x496f92['getRanges']()){for(const _0x11eecd of _0x2af7d5){const _0x201adf=_0x11eecd['start']['isEqual'](_0x277252['end'])||_0x11eecd['end']['isEqual'](_0x277252['start']);if(_0x201adf||_0x11eecd['getIntersection'](_0x277252)){const _0x100125=_0x11eecd['containsRange'](_0x277252)&&Gt(this['_model']['schema'],_0x277252['start'],_0x11eecd),_0x3890b4=_0x277252['containsRange'](_0x11eecd)&&Gt(this['_model']['schema'],_0x11eecd['start'],_0x277252);_0x57ebaa['push']({'suggestion':_0x496f92,'meta':{'isOwn':_0x42bbbc==_0x496f92['author'],'isNextTo':_0x201adf,'isInsideObject':_0x100125,'containsRangeInObject':_0x3890b4}}),_0x4eb353=!0x0;break;}}if(_0x4eb353)break;}}return _0x57ebaa;}['_addSuggestionMarker'](_0x4beee0,_0x5acf3d,_0x45e900,_0x3eba63,_0x948f5f){this['_model']['change'](_0x2597a9=>{let _0x4abbb4='suggestion:'+_0x4beee0+':'+_0x5acf3d+':'+_0x45e900;_0x948f5f&&(_0x4abbb4=_0x4abbb4+':'+_0x948f5f),_0x2597a9['addMarker'](_0x4abbb4,{'range':_0x3eba63,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x22a0c7){const _0x8db8d5=_0x22a0c7['previous'],_0xcd6bc6=_0x22a0c7['next'];_0x22a0c7['previous']=null,_0x22a0c7['next']=null,null!=_0x8db8d5&&_0x8db8d5['next']==_0x22a0c7&&(_0x8db8d5['next']=_0xcd6bc6),null!=_0xcd6bc6&&_0xcd6bc6['previous']==_0x22a0c7&&(_0xcd6bc6['previous']=_0x8db8d5),'ready'==this['_suggestionState']['get'](_0x22a0c7)&&(this['_suggestionState']['set'](_0x22a0c7,'removed'),this['fire']('suggestionUnloaded',_0x22a0c7,_0x8db8d5,_0xcd6bc6));}['_setSuggestionData'](_0x381499){const _0xbb5a44=_0x381499['id'],_0x2d483a=this['addSuggestionData'](_0x381499);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x735971=this['editor']['plugins']['get']('PendingActions'),_0x2fb3dc=_0x2d483a['hasComments'],_0x530643=_0x2d483a['subType']?_0x2d483a['type']+':'+_0x2d483a['subType']:_0x2d483a['type'],_0xcfd33c=this['editor']['locale'],_0x3b501d=_0x735971['add'](c(_0xcfd33c,'PENDING_ACTION_SUGGESTION')),_0x423f17={'id':_0xbb5a44,'type':_0x530643,'hasComments':_0x2fb3dc,'data':_0x381499['data']||null,'originalSuggestionId':_0x381499['originalSuggestionId']||null,'attributes':_0x2d483a['attributes']};this['_adapter']['addSuggestion'](_0x423f17)['then'](_0x3a42fa=>{_0x2d483a['_saved']=!0x0,_0x735971['remove'](_0x3b501d),_0x3a42fa&&_0x3a42fa['createdAt']&&(this['_suggestions']['get'](_0xbb5a44)['createdAt']=_0x3a42fa['createdAt']);})['catch'](_0xe2b26b=>{throw _0x2257ec('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2d483a['discard']();}),_0x2d483a['stopListening'](),this['_suggestions']['delete'](_0x2d483a['id']),this['_suggestionState']['delete'](_0x2d483a),_0xe2b26b;});}return _0x2d483a;}['_isBlockAttribute'](_0x4f6afd){return this['_blockAttributeKeys']['has'](_0x4f6afd);}['_updateSuggestionData'](_0x1742b9,_0x4d3c9b){const _0x3f7ed2=this['editor']['plugins']['get']('PendingActions'),_0x457eb3=this['getSuggestion'](_0x1742b9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x457eb3['_saved']){const _0x29b86f=_0x3f7ed2['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1742b9,_0x4d3c9b)['then'](()=>{_0x3f7ed2['remove'](_0x29b86f);});}else _0x457eb3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1742b9,_0x4d3c9b);});}}['_getSuggestionData'](_0x35666a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3bf293('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x35666a);}['_handleNewSuggestionMarker'](_0x1a7997){const {id:_0x53521c,type:_0x443642,subType:_0x147550,authorId:_0x3621f5}=this['_splitMarkerName'](_0x1a7997),_0xfbe6c3=this['_suggestions']['get'](_0x53521c)||this['_createSuggestion'](_0x443642,_0x147550,_0x53521c,_0x3621f5,{});switch(this['_checkSuggestionCorrectness'](_0xfbe6c3,_0x443642,_0x147550,_0x3621f5),this['_suggestionState']['get'](_0xfbe6c3)){case'notReady':this['_getSuggestionData'](_0x53521c)['then'](_0x49cadd=>{let _0x206b0d=Promise['resolve']();_0x49cadd['hasComments']&&(_0x206b0d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x53521c})),_0x206b0d['then'](()=>{this['addSuggestionData'](_0x49cadd)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xfbe6c3,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x53521c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xfbe6c3,'ready'),this['fire']('suggestionLoaded',_0xfbe6c3);break;case'ready':this['fire']('suggestionChanged',_0xfbe6c3);}return _0xfbe6c3['addMarkerName'](_0x1a7997),_0xfbe6c3;}['_refreshSuggestionsChain'](_0x433e91){const _0x2dd316=Array['from'](_0x433e91),_0x25346c=_0x2dd316['filter'](_0x363e62=>'attribute'==_0x363e62['type']);this['_refreshAttributeSuggestionsChain'](_0x25346c);const _0x58b58e=_0x2dd316['filter'](_0x200411=>!_0x200411['isMultiRange']&&'attribute'!=_0x200411['type']),_0x4cce1c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc8bb7c=>!_0xc8bb7c['isMultiRange']&&'attribute'!=_0xc8bb7c['type']),_0x2d6cd7=_0x4cce1c['filter'](_0xd9879b=>!_0x433e91['has'](_0xd9879b)),_0x3131fe=new Map(_0x4cce1c['map'](_0x1c4c11=>[_0x1c4c11,this['_suggestionFactory']['getSuggestionCallback'](_0x1c4c11['type'],_0x1c4c11['subType'],'chain')])),_0x45a970=new Map(_0x4cce1c['map'](_0x1eb19c=>[_0x1eb19c,_0x1eb19c['getFirstRange']()])),_0x34ee7e=new Set(),_0x4acd3a=new Set();for(let _0x340d30=0x0;_0x340d30<_0x58b58e['length'];_0x340d30++)_0x254f4f(_0x58b58e[_0x340d30],_0x58b58e,_0x340d30+0x1);for(let _0x3c6aeb=0x0;_0x3c6aeb<_0x58b58e['length'];_0x3c6aeb++)_0x254f4f(_0x58b58e[_0x3c6aeb],_0x2d6cd7,0x0);const _0x79c226=new Set();for(let _0xe14a3c=0x0;_0xe14a3c<_0x58b58e['length'];_0xe14a3c++){const _0x2db79c=_0x58b58e[_0xe14a3c];!_0x4acd3a['has'](_0x2db79c)&&_0x2db79c['previous']&&(_0x79c226['add'](_0x2db79c['previous']),_0x2db79c['previous']['next']===_0x2db79c&&(_0x2db79c['previous']['next']=null),_0x2db79c['previous']=null),!_0x34ee7e['has'](_0x2db79c)&&_0x2db79c['next']&&(_0x79c226['add'](_0x2db79c['next']),_0x2db79c['next']['previous']===_0x2db79c&&(_0x2db79c['next']['previous']=null),_0x2db79c['next']=null);}function _0x254f4f(_0x306a1e,_0x2cdc21,_0x574d08){for(let _0x3bbd15=_0x574d08;_0x3bbd15<_0x2cdc21['length'];_0x3bbd15++){const _0x2a77f2=_0x237753(_0x306a1e,_0x2cdc21[_0x3bbd15]);_0x2a77f2&&(_0x2a77f2[0x0]['next']=_0x2a77f2[0x1],_0x2a77f2[0x1]['previous']=_0x2a77f2[0x0],_0x34ee7e['add'](_0x2a77f2[0x0]),_0x4acd3a['add'](_0x2a77f2[0x1]));}}function _0x237753(_0x38ebb8,_0x2c5a09){if(_0x38ebb8['author']['id']!==_0x2c5a09['author']['id'])return null;const _0x3ec553=_0x3131fe['get'](_0x38ebb8)(_0x38ebb8,_0x2c5a09,_0x45a970['get'](_0x38ebb8),_0x45a970['get'](_0x2c5a09));if(!_0x3ec553)return null;return _0x3131fe['get'](_0x2c5a09)(_0x38ebb8,_0x2c5a09,_0x45a970['get'](_0x38ebb8),_0x45a970['get'](_0x2c5a09))?_0x3ec553[0x1]['commentThread']&&_0x3ec553[0x1]['commentThread']['length']?null:_0x3ec553:null;}_0x79c226['size']&&this['_refreshSuggestionsChain'](_0x79c226);}['_refreshAttributeSuggestionsChain'](_0x9293a3){if(0x0==_0x9293a3['length'])return;const _0x505196=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f212e=>'attribute'==_0x3f212e['type']&&_0x3f212e['_isDataLoaded']),_0x1146bd=[],_0x42fd31=new Map();for(const _0x358d13 of _0x505196){const _0x1f581e=_0x39cd73(_0x358d13['attributes']);_0x42fd31['has'](_0x1f581e)||(_0x42fd31['set'](_0x1f581e,_0x1146bd['length']),_0x1146bd['push']([]));const _0x5cd51b=_0x42fd31['get'](_0x1f581e);_0x1146bd[_0x5cd51b]['push'](_0x358d13);}!(function(){_0x1146bd['sort']((_0x1b97b4,_0xea855b)=>{const _0x5a7741=_0x1b97b4[0x0]['createdAt'],_0x47107f=_0xea855b[0x0]['createdAt'];return _0x5a7741==_0x47107f?_0x1b97b4[0x0]['attributes']['groupId']<_0xea855b[0x0]['attributes']['groupId']?-0x1:0x1:_0x5a7741<_0x47107f?-0x1:0x1;});for(const _0x28b403 of _0x1146bd)_0x28b403['sort']((_0x52e713,_0x489d5d)=>_0x52e713['id']<_0x489d5d['id']?-0x1:0x1);}());for(let _0x36275b=0x0;_0x36275b<_0x1146bd['length'];_0x36275b++){if(0x0==_0x1146bd[_0x36275b]['length'])continue;const _0x2dee93=[];for(let _0x1fa2d1=_0x36275b+0x1;_0x1fa2d1<_0x1146bd['length'];_0x1fa2d1++)0x0!=_0x1146bd[_0x1fa2d1]['length']&&_0x41ede2(_0x1146bd[_0x36275b],_0x1146bd[_0x1fa2d1])&&_0x2dee93['push'](_0x1fa2d1);for(const _0x37a8c2 of _0x2dee93)_0x1146bd[_0x36275b]=_0x1146bd[_0x36275b]['concat'](_0x1146bd[_0x37a8c2]),_0x1146bd[_0x37a8c2]=[];}for(const _0x681478 of _0x1146bd)for(let _0x6c7353=0x0;_0x6c7353<_0x681478['length'];_0x6c7353++){const _0x4e5469=_0x681478[_0x6c7353+0x1]||null;_0x681478[_0x6c7353]['next']!==_0x4e5469&&(_0x681478[_0x6c7353]['next']=_0x4e5469);}for(const _0x5192e4 of _0x1146bd)for(let _0x274a87=0x0;_0x274a87<_0x5192e4['length'];_0x274a87++){const _0x562d45=_0x5192e4[_0x274a87-0x1]||null;_0x5192e4[_0x274a87]['previous']!==_0x562d45&&(_0x5192e4[_0x274a87]['previous']=_0x562d45);}function _0x41ede2(_0x4b1be4,_0x1b2760){if(_0x4b1be4[0x0]['attributes']['groupId']!==_0x1b2760[0x0]['attributes']['groupId']&&_0x4b1be4[0x0]['author']!==_0x1b2760[0x0]['author'])return!0x1;if(!function(_0x22fd60,_0x3fd50d){if(!_0x22fd60['hasComments']&&!_0x3fd50d['hasComments'])return!0x0;if(_0x22fd60['hasComments']&&_0x3fd50d['hasComments'])return!0x1;if(_0x22fd60['hasComments']&&_0x3fd50d['createdAt']<_0x22fd60['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3fd50d['hasComments']&&_0x22fd60['createdAt']<_0x3fd50d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4b1be4[0x0],_0x1b2760[0x0]))return!0x1;const _0x5325d5=Ft(_0x4b1be4[0x0]['attributes'],['groupId','trackingSessionId']),_0x5db4f3=Ft(_0x1b2760[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xe83722(_0x5325d5,_0x5db4f3))return!0x1;if(_0x4b1be4[0x0]['attributes']['groupId']==_0x1b2760[0x0]['attributes']['groupId'])return!0x0;if(_0x4b1be4[0x0]['attributes']['trackingSessionId']!==_0x1b2760[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4b1be4['every'](_0x4ce521=>_0x1b2760['some'](_0x576824=>_0x4ce521['getFirstRange']()['isEqual'](_0x576824['getFirstRange']())))&&_0x1b2760['every'](_0x19ea71=>_0x4b1be4['some'](_0x4cff40=>_0x19ea71['getFirstRange']()['isEqual'](_0x4cff40['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x21c5f8){const _0x15af51=Array['from'](_0x21c5f8),_0x224512=this['getSuggestions']({'skipNotAttached':!0x0}),_0x96b027=_0x224512['filter'](_0x4a2544=>!_0x21c5f8['has'](_0x4a2544)),_0x4f5cab=new Map(_0x15af51['map'](_0x46fe7c=>[_0x46fe7c,this['_suggestionFactory']['getSuggestionCallback'](_0x46fe7c['type'],_0x46fe7c['subType'],'join')])),_0x3885c0=new Map(_0x224512['map'](_0x449cbb=>[_0x449cbb,_0x449cbb['getRanges']()]));for(let _0x38500c=0x0;_0x38500c<_0x15af51['length'];_0x38500c++){if(_0x3f062e(this,_0x15af51[_0x38500c],_0x15af51,_0x38500c+0x1))return!0x0;}for(let _0x4733c2=0x0;_0x4733c2<_0x15af51['length'];_0x4733c2++){if(_0x3f062e(this,_0x15af51[_0x4733c2],_0x96b027,0x0))return!0x0;}return!0x1;function _0x3f062e(_0x178395,_0x2ef921,_0x3abe5e,_0x2c03ce){for(let _0x4d9753=_0x2c03ce;_0x4d9753<_0x3abe5e['length'];_0x4d9753++){const _0xd4012c=_0x3abe5e[_0x4d9753];if(_0xd4012c['type']!==_0x2ef921['type']||_0xd4012c['author']['id']!==_0x2ef921['author']['id']||_0xd4012c['subType']!==_0x2ef921['subType'])continue;if(!Qt(_0x2ef921,_0xd4012c))continue;if('attribute'==_0x2ef921['type']&&_0x2ef921['data']['oldValue']!=_0xd4012c['data']['oldValue'])continue;if('attribute'==_0x2ef921['type']&&_0x178395['_isBlockAttribute'](_0x2ef921['data']['key']))continue;if('formatBlock'==_0x2ef921['type']){const _0x43d447=_0x178395['editor']['model'],_0x3d2089=_0x2ef921['getContainedElement']();if(_0x3d2089&&(_0x43d447['schema']['isObject'](_0x3d2089)||_0x43d447['schema']['isLimit'](_0x3d2089)))continue;}const _0x507009=_0x4f5cab['get'](_0x2ef921),_0x1b38ea=_0x3885c0['get'](_0x2ef921),_0x29e202=_0x3885c0['get'](_0xd4012c),_0x4ed357=_0x2ef921['commentThread']&&_0x2ef921['commentThread']['length'],_0x5bd5af=_0xd4012c['commentThread']&&_0xd4012c['commentThread']['length'];if(!_0x4ed357&&_0x507009(_0x29e202,_0x1b38ea))return _0x178395['_joinSuggestions'](_0xd4012c,_0x2ef921),_0x3885c0['delete'](_0x2ef921),!0x0;if(!_0x5bd5af&&_0x507009(_0x1b38ea,_0x29e202))return _0x178395['_joinSuggestions'](_0x2ef921,_0xd4012c),_0x3885c0['delete'](_0xd4012c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x8dd2c4,_0x4c97e7){if(_0x8dd2c4['isMultiRange']){for(const _0x1330d2 of _0x4c97e7['getRanges']())_0x8dd2c4['addRange'](_0x1330d2);}else{const _0x170bc0=_0x4c97e7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x8dd2c4,this['_model']['createRange'](_0x8dd2c4['getFirstRange']()['start'],_0x170bc0));}_0x4c97e7['removeMarkers']();}['_getMarkerAnnouncementText'](_0xccb344,_0x10872b,_0xdc40b5){const _0x4d7a82=_0xccb344['startsWith']('format')||_0xccb344['startsWith']('attribute')?'FORMATTING':_0xccb344['toUpperCase']();return c(this['editor']['locale'],_0x10872b+'_'+_0x4d7a82+'_SUGGESTION_ANNOUNCEMENT',_0xdc40b5);}['_initAriaMarkerChangeAnnouncements'](){const _0x41dd59=this['editor'];if(!_0x41dd59['ui'])return;const {ariaLiveAnnouncer:_0x27da15}=_0x41dd59['ui'];_0x41b32b(this['_model'],({left:_0x424d9e,entered:_0x1981e2})=>{for(const _0x186da0 of _0x424d9e){const {group:_0xf9184e,type:_0x5bb957}=this['_splitMarkerName'](_0x186da0['name']);if('suggestion'===_0xf9184e){_0x27da15['announce'](this['_getMarkerAnnouncementText'](_0x5bb957,'LEAVE'));break;}}for(const _0x444e19 of _0x1981e2){const {group:_0x400fed,type:_0x11e71b}=this['_splitMarkerName'](_0x444e19['name']);if('suggestion'===_0x400fed){_0x27da15['announce'](this['_getMarkerAnnouncementText'](_0x11e71b,'ENTER',_0x5670bc(_0x3938eb)));break;}}});}['_processAttributeChanges'](_0x4cba75){if(this['_recordAttributeSuggestions'])return!0x1;const _0xe5b03a=this['editor'],_0x197467=_0xe5b03a['model']['document']['differ']['getChanges']();if(0x0==_0x197467['length'])return!0x1;const _0x144c7f=[],_0x3a24d1=_0x197467['filter'](_0x41362c=>'attribute'==_0x41362c['type']),_0x3204b7=_0x197467['filter'](_0x562db5=>'insert'==_0x562db5['type']&&'$text'!=_0x562db5['name']),_0x4f0a83=_0x197467['filter'](_0x5dd038=>'remove'==_0x5dd038['type']&&'$text'!=_0x5dd038['name']);for(const _0x3257bd of _0x3a24d1)_0x144c7f['push']({'key':_0x3257bd['attributeKey'],'newValue':_0x3257bd['attributeNewValue'],'oldValue':_0x3257bd['attributeOldValue'],'range':qt(_0x3257bd['range'],_0xe5b03a['model'])});for(const _0x2ad83d of _0x3204b7){const _0x1b489f=_0x4f0a83['find'](_0x13a58c=>_0x13a58c['position']['isEqual'](_0x2ad83d['position']));_0x1b489f&&_0x144c7f['push']({'key':u,'newValue':_0x2ad83d['name'],'oldValue':_0x1b489f['name'],'range':_0xe5b03a['model']['createRangeOn'](_0x2ad83d['position']['nodeAfter'])});}return 0x0!=_0x144c7f['length']&&this['_reduceExistingSuggestions'](_0x4cba75,_0x144c7f);}['_processAttributeSuggestions'](_0x3a732e){let _0x520867=!0x1;const _0x4d0ab3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2dffd1=>_0x2dffd1['data']['newRange']&&_0x2dffd1['name']['startsWith']('suggestion:attribute:'));for(const _0x473fed of _0x4d0ab3){const {subType:_0x245e0b,id:_0x3c10ee}=this['_splitMarkerName'](_0x473fed['name']),_0x350aea=_0x245e0b['split']('|')[0x0];for(const _0x2a7988 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2a7988['id']!=_0x3c10ee&&'attribute'==_0x2a7988['type']&&_0x2a7988['data']&&_0x2a7988['data']['key']==_0x350aea&&_0x2a7988['getFirstRange']()['isIntersecting'](_0x473fed['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2a7988,_0x473fed['data']['newRange'],_0x3a732e),_0x520867=!0x0);}return _0x520867;}['_recordAttributeChanges'](_0x6c7569){this['_recordAttributeSuggestions']=!0x0,_0x6c7569();}['_isRegisteredAttribute'](_0x473e0c){const _0x147a67=this['_isBlockAttribute'](_0x473e0c),_0x1a7b17=this['_inlineAttributeKeys']['has'](_0x473e0c);return _0x147a67||_0x1a7b17;}['_reduceExistingSuggestions'](_0x1d444c,_0x54c72c){if(0x0==_0x54c72c['length'])return!0x1;let _0x982332=!0x1;for(const _0x1867d5 of _0x54c72c){const _0x302650=this['_findSuggestions'](_0x1867d5['range'],'attribute')['filter'](_0x4e09fc=>!_0x4e09fc['meta']['isNextTo'])['map'](_0x3da7ad=>_0x3da7ad['suggestion']),_0x4450ad=_0x39cd73({'newValue':_0x1867d5['newValue']});_0x302650['filter'](_0x277e73=>{const [_0x2d0329,_0x4546dc]=_0x277e73['subType']['split']('|');return _0x2d0329==_0x1867d5['key']&&_0x4546dc!=_0x4450ad;})['forEach'](_0x5dbeab=>{this['_reduceSuggestionAttributeRange'](_0x5dbeab,_0x1867d5['range'],_0x1d444c),_0x982332=!0x0;});}return _0x982332;}['_reduceSuggestionAttributeRange'](_0x46a413,_0xb336ce,_0x5c0abd){const _0x3d25fb=_0x46a413['getFirstRange']()['getDifference'](_0xb336ce);0x0!==_0x3d25fb['length']?0x1!==_0x3d25fb['length']?this['_breakSuggestionMarker'](_0x46a413,_0xb336ce['start'],_0xb336ce['end']):this['_setSuggestionRange'](_0x46a413,_0x3d25fb[0x0]):_0x5c0abd['removeMarker'](_0x46a413['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x47fdc6){this['_editor']=_0x47fdc6,this['_model']=_0x47fdc6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x21ec94,_0x17327b,_0x56567c,_0x5bb6a5,_0x4f1ed4,_0x1fe815,_0x19f31b){return new o(this['_model'],{'type':_0x21ec94,'subType':_0x17327b,'id':_0x56567c,'originalSuggestionId':_0x19f31b,'author':_0x5bb6a5,'creator':_0x5bb6a5,'attributes':_0x4f1ed4,'onAttributesChange':_0x1fe815,'onAccept':(..._0x4cc269)=>this['getSuggestionCallback'](_0x21ec94,_0x17327b,'accept')(..._0x4cc269),'onDiscard':(..._0x1daedf)=>this['getSuggestionCallback'](_0x21ec94,_0x17327b,'discard')(..._0x1daedf)});}['registerCustomCallback'](_0x2d40d0,_0x25690e,_0x17c082,_0x32655b){const _0x1a81d1=_0x2d40d0+':'+_0x25690e+':'+_0x17c082;this['_customCallbacks']['set'](_0x1a81d1,_0x32655b);}['getSuggestionCallback'](_0x5f5cc7,_0x8a2ba8,_0x45468d){const _0x5df56f=_0x5f5cc7+':'+_0x8a2ba8+':'+_0x45468d;return this['_customCallbacks']['get'](_0x5df56f)||this['_defaultCallbacks']['get'](_0x5f5cc7+':'+_0x45468d);}['_registerDefaultCallbacks'](){const _0x41f538=()=>!0x1,_0x1b1119=_0x1883c9=>{_0x1883c9['sort']((_0x3f24d9,_0x5c8c34)=>_0x3f24d9['start']['isBefore'](_0x5c8c34['start'])?0x1:-0x1),this['_model']['change'](_0x5aae05=>{for(const _0x57ff7a of _0x1883c9){let _0x9fe6cb;_0x9fe6cb=_0x57ff7a['end']['isAtEnd']&&_0x57ff7a['end']['parent']==_0x57ff7a['start']['nodeAfter']?_0x5aae05['createSelection'](_0x57ff7a['start']['nodeAfter'],'on'):_0x5aae05['createSelection'](_0x57ff7a),this['_model']['deleteContent'](_0x9fe6cb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x189d71=(_0x47befb,_0x579703)=>{_0x579703&&this['_model']['change'](_0x5bf5c6=>{const {commandName:_0x1c2423,commandParams:_0x339aa2=[]}=_0x579703,_0x4aac45=_0x47befb['map'](_0x30adf6=>(Lt(_0x30adf6)&&(_0x30adf6=this['_model']['createRange'](_0x30adf6['end'])),_0x30adf6))['filter'](_0x346846=>'$graveyard'!==_0x346846['root']['rootName']);if(_0x4aac45['length']<0x1)return;const _0xbc5dcc=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x45fd12=>_0x3a5e87['fromRange'](_0x45fd12));_0x5bf5c6['setSelection'](_0x4aac45);for(const _0x3560a2 of this['_editor']['commands']['commands']())_0x3560a2['refresh']();_0x339aa2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1c2423,..._0x339aa2);const _0xb50c2b=_0xbc5dcc['filter'](_0x2d7ba2=>'$graveyard'!=_0x2d7ba2['root']['rootName']);_0xb50c2b['length']>0x0&&_0x5bf5c6['setSelection'](_0xb50c2b);for(const _0x550155 of _0xbc5dcc)_0x550155['detach']();});},_0x1f57de=(_0x2b9e06,_0xe306c1)=>0x1==_0x2b9e06['length']&&0x1==_0xe306c1['length']&&_0x2b9e06[0x0]['end']['isEqual'](_0xe306c1[0x0]['start']),_0x24070c=(_0x5b5b6,_0x41a409,_0x9262d6,_0x1720fe)=>Wt(_0x5b5b6,_0x41a409,_0x9262d6,_0x1720fe)?[_0x5b5b6,_0x41a409]:Wt(_0x41a409,_0x5b5b6,_0x1720fe,_0x9262d6)?[_0x41a409,_0x5b5b6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x41f538),this['_defaultCallbacks']['set']('insertion:discard',_0x1b1119),this['_defaultCallbacks']['set']('insertion:join',_0x1f57de),this['_defaultCallbacks']['set']('insertion:chain',_0x24070c),this['_defaultCallbacks']['set']('deletion:accept',_0x1b1119),this['_defaultCallbacks']['set']('deletion:discard',_0x41f538),this['_defaultCallbacks']['set']('deletion:join',_0x1f57de),this['_defaultCallbacks']['set']('deletion:chain',_0x24070c),this['_defaultCallbacks']['set']('formatInline:accept',_0x189d71),this['_defaultCallbacks']['set']('formatInline:discard',_0x41f538),this['_defaultCallbacks']['set']('formatInline:join',_0x1f57de),this['_defaultCallbacks']['set']('formatInline:chain',_0x41f538),this['_defaultCallbacks']['set']('formatBlock:accept',_0x189d71),this['_defaultCallbacks']['set']('formatBlock:discard',_0x41f538),this['_defaultCallbacks']['set']('formatBlock:join',_0x1f57de),this['_defaultCallbacks']['set']('formatBlock:chain',_0x41f538),this['_defaultCallbacks']['set']('attribute:accept',_0x41f538),this['_defaultCallbacks']['set']('attribute:discard',(_0x501a32,_0x1d11a3)=>{if(!_0x1d11a3)return;const _0x2658a4=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x9e8d8f=>{if(_0x1d11a3['key']==u)for(const _0x3a617a of _0x501a32){const _0x51d45c=_0x3a617a['start']['nodeAfter'],_0x29c7f3=_0x1d11a3['oldValue'];_0x9e8d8f['rename'](_0x51d45c,_0x29c7f3);}else{if(_0x2658a4['_isBlockAttribute'](_0x1d11a3['key'])){for(const _0x337c65 of _0x501a32)void 0x0!==_0x1d11a3['oldValue']?_0x9e8d8f['setAttribute'](_0x1d11a3['key'],_0x1d11a3['oldValue'],_0x337c65['start']['nodeAfter']):_0x9e8d8f['removeAttribute'](_0x1d11a3['key'],_0x337c65['start']['nodeAfter']);}else{for(const _0x4e7a15 of _0x501a32)_0x1d11a3['oldValue']?_0x9e8d8f['setAttribute'](_0x1d11a3['key'],_0x1d11a3['oldValue'],_0x4e7a15):_0x9e8d8f['removeAttribute'](_0x1d11a3['key'],_0x4e7a15);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1f57de);}}function Gt(_0x3b4e06,_0x322ea4,_0x5ef840){for(const _0x5abf7a of _0x322ea4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5abf7a['root']==_0x5abf7a)return!0x1;if(!_0x5ef840['containsItem'](_0x5abf7a))return!0x1;if(_0x3b4e06['isObject'](_0x5abf7a)||_0x3b4e06['isLimit'](_0x5abf7a))return!0x0;}return!0x1;}function Lt(_0x5bcff1){return _0x5bcff1['end']['parent']==_0x5bcff1['start']['nodeAfter']&&_0x5bcff1['end']['isAtStart'];}function Jt(_0x260403,_0x4c2c1e,_0x14558e,_0x2bf64c){const _0x3fa447=_0x155760=>!_0x155760['item']['is']('$textProxy')&&!_0x2bf64c['isObject'](_0x155760['item']),_0x4b24a6=_0x260403['start']['getLastMatchingPosition'](_0x3fa447),_0x5d3fdb=_0x260403['end']['getLastMatchingPosition'](_0x3fa447,{'direction':'backward'});return(!_0x260403['start']['isEqual'](_0x4b24a6)||!_0x260403['end']['isEqual'](_0x5d3fdb))&&(_0x4b24a6['isBefore'](_0x5d3fdb)?_0x14558e['updateMarker'](_0x4c2c1e,{'range':_0x14558e['createRange'](_0x4b24a6,_0x5d3fdb)}):_0x14558e['removeMarker'](_0x4c2c1e),!0x0);}function Kt(_0xf829d7){return _0x39cd73(_0xf829d7);}function Ht(_0x325c41){const _0x13d29e=_0x325c41['start']['nodeAfter'];return _0x13d29e&&_0x13d29e['is']('element');}function qt(_0x4d42ba,_0x2f25b3){return null==_0x4d42ba['end']['nodeBefore']&&_0x4d42ba['end']['parent']==_0x4d42ba['start']['nodeAfter']?zt(_0x4d42ba['start']['nodeAfter'],_0x2f25b3):_0x4d42ba;}function zt(_0xec3da4,_0x3e6b69){const _0x23e275=_0x3e6b69['schema']['isObject'](_0xec3da4)||_0x3e6b69['schema']['isSelectable'](_0xec3da4);return _0x3e6b69['createRange'](_0x3e6b69['createPositionAt'](_0xec3da4,'before'),_0x23e275?_0x3e6b69['createPositionAfter'](_0xec3da4):_0x3e6b69['createPositionAt'](_0xec3da4,'end'));}function Wt(_0x567910,_0x139dc2,_0x4d85fa,_0x1b4b24){return!!Qt(_0x567910,_0x139dc2)&&_0x4d85fa['end']['isEqual'](_0x1b4b24['start']);}function Qt(_0x112e72,_0x364835){if(!_0x112e72['_isDataLoaded']||!_0x364835['_isDataLoaded'])return!0x1;const _0x60adfe=new Set(Object['keys'](_0x112e72['attributes'])),_0x25b6b7=new Set(Object['keys'](_0x364835['attributes']));if(_0x60adfe['delete']('groupId'),_0x25b6b7['delete']('groupId'),0x0==_0x60adfe['size']&&0x0==_0x25b6b7['size'])return!0x0;if(_0x60adfe['size']!=_0x25b6b7['size'])return!0x1;const _0x3ac52b={..._0x112e72['attributes']},_0x5d2e8e={..._0x364835['attributes']};return delete _0x3ac52b['groupId'],delete _0x5d2e8e['groupId'],JSON['stringify'](_0x3ac52b)==JSON['stringify'](_0x5d2e8e);}function Xt(_0x519963,_0x44375c){const _0x2fada2=Yt(_0x519963['attributes']),_0xeb6ed7=Yt(_0x44375c);if(!_0x519963['_isDataLoaded'])return!0x1;for(const _0x52deb4 of Object['keys'](_0xeb6ed7))if(!_0xe83722(_0x2fada2[_0x52deb4],_0xeb6ed7[_0x52deb4]))return!0x1;return!0x0;}function Yt(_0x34ad1f){const _0x2d539c=Object['assign']({},_0x34ad1f);return delete _0x2d539c['skipNestingCheck'],delete _0x2d539c['tablePasteChainId'],_0x2d539c;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4b5d5f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x57c481,_0xfa859d,_0x3d3155,_0x53946c){super(),this['model']=_0xfa859d,this['view']=_0x3d3155,this['commentThreadController']=_0x53946c,this['_editor']=_0x57c481,this['_acceptCommand']=_0x57c481['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x57c481['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x8fcb4f,_0x54cd37)=>_0x8fcb4f||_0x54cd37),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3147b1=>_0x3147b1&&this['_editor']['model']['canEditAt'](_0xfa859d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x153092=>_0x153092&&this['_editor']['model']['canEditAt'](_0xfa859d['getRanges']())),this['_pendingAction']=null,_0x3d3155['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3d3155,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3d3155,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3d3155,'change:isDirty',()=>{_0x3d3155['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 _0x59ad2c=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x59ad2c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x36af6d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x29e354,_0x341ffe,_0x2c87aa,_0x514cb6){super(_0x29e354),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1c3831(_0x29e354,c(_0x29e354,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x341ffe['authoredAt']),this['bind']('authoredAt')['to'](_0x341ffe),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',_0x341ffe,'authoredAt',this,'descriptionParts',(_0x3736fc,_0x352274,_0xadd331)=>{const _0x34a743=_0xadd331['map'](_0x34d6cf=>ls(_0x34d6cf['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3736fc-0x1,_0x341ffe['author']['name'],_0x352274?_0x514cb6['formatDateTime'](_0x352274):'',new DOMParser()['parseFromString'](_0x34a743,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3d953b(),this['focusTracker']=new _0x5d45b2(),this['keystrokes']=new _0x5b4e17(),this['focusCycler']=new _0x582a27({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x404950=>_0x404950['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x341ffe,this['_localUser']=_0x2c87aa,this['_config']=_0x514cb6,_0x514cb6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x29d324(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4f5ba2}=this['_config'];this['commentsListView']=new _0x4f5ba2(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',_0x498c2a=>_0x498c2a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x28844a,_0x49e4a1)=>_0x28844a||!!_0x49e4a1);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5975b0}=this['_config'],_0x341d01=new _0x5975b0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x225800=_0x341d01['commentInputView'];return _0x341d01['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x225800,'value',(_0x2f6a38,_0xedfc16,_0x2af167)=>!!_0x2af167||_0x2f6a38&&!_0xedfc16),_0x225800['on']('submit',(_0x313349,_0x52c544)=>{this['fire']('addComment',_0x52c544),_0x225800['editor']['setData']('');}),_0x225800['on']('cancel',()=>this['focus']()),_0x225800['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x341d01;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x141975,_0x20ea24,_0x52ca5f,_0x563697){super(_0x141975,_0x20ea24,_0x52ca5f,_0x563697),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x59bbf1=>_0x59bbf1&&_0x59bbf1[0x0]?_0x59bbf1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x44d6a9,_0x31f966)=>{let _0x3e3fe9='';for(const _0x46bff9 of _0x44d6a9)_0x3e3fe9+='<p>'+ls(_0x46bff9['content'],_0x46bff9['color'])+'</p>';return _0x31f966?_0x3e3fe9:ti(_0x3e3fe9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x563697['SuggestionView'](_0x141975,_0x20ea24,{'formatDateTime':_0x563697['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 _0x48de17=this['bindTemplate'],_0x56b506=[this['suggestionView']];return this['commentsListView']&&_0x56b506['push'](this['commentsListView']),this['commentThreadInputView']&&_0x56b506['push'](this['commentThreadInputView']),_0x56b506['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x48de17['if']('isActive','ck-suggestion-wrapper--active'),_0x48de17['to']('type',_0x5c3893=>'ck-suggestion-'+_0x5c3893),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':_0x48de17['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x56b506};}['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 _0x36af6d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x46bebe,_0x400aa9,_0x58de6e){super(_0x46bebe),this['_model']=_0x400aa9,this['_config']=_0x58de6e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x400aa9),this['acceptButton']=this['_createButton'](c(_0x46bebe,'Accept\x20suggestion'),_0x42c957,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x46bebe,'Discard\x20suggestion'),_0x3172ec,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x46ccea(_0x46bebe,_0x400aa9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3d953b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5d45b2(),this['keystrokes']=new _0x5b4e17(),this['focusCycler']=new _0x582a27({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x40a38c=>_0x40a38c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3d08e5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3d08e5['innerHTML']=this['description'],this['on']('change:description',(_0x5e7ec7,_0x58f7d5,_0x292dff)=>{_0x3d08e5['innerHTML']=_0x292dff;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2d4a16=this['bindTemplate'],_0x23051=[{'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':_0x2d4a16['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2d4a16['to']('authoredAt',_0xcc2da6=>this['_config']['formatDateTime'](_0xcc2da6))}]}]},{'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']&&_0x23051['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':_0x23051}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x554541,_0x1226a3,_0x24aaee,_0x5c54ed,_0x4a6cad){const _0x30bab1=new _0x51bdbf(this['locale']);return _0x30bab1['set']({'label':_0x554541,'icon':_0x1226a3,'tooltip':!0x0,'tooltipPosition':_0x4a6cad}),_0x30bab1['extendTemplate']({'attributes':{'class':_0x24aaee}}),_0x30bab1['on']('execute',()=>{this['fire'](_0x5c54ed,this['_model']['id']);}),_0x30bab1;}['_setupKeyboardNavigation'](){const _0x386942=this['element'];this['keystrokes']['listenTo'](_0x386942);for(const _0x3956c4 of this['focusables'])this['focusTracker']['add'](_0x3956c4['element']),this['keystrokes']['listenTo'](_0x3956c4['element']);this['keystrokes']['set']('enter',(_0x38251a,_0x1d218b)=>{_0x386942===_0x38251a['target']&&(this['focusCycler']['focusFirst'](),_0x1d218b());}),this['keystrokes']['set']('esc',(_0xfca222,_0x407e14)=>{_0x386942!==_0xfca222['target']&&(this['focus'](),_0x407e14());});}}class d extends _0x577ae7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x671950,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5932df){super(_0x5932df),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1c3e79=this['editor']['config'];_0x1c3e79['define']('trackChanges.SuggestionThreadView',fe),_0x1c3e79['define']('trackChanges.SuggestionView',we),_0x1c3e79['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1c3e79['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x6f86f,_0x38de6e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x50d909,_0x5ee1c0]of this['_handleControllerBuffer']){const _0x4f17f2=this['_suggestionToController']['has'](_0x50d909);_0x4f17f2||_0x5ee1c0?_0x4f17f2&&_0x5ee1c0&&this['_destroyController'](_0x50d909):this['_initializeController'](_0x50d909);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x6f86f,_0x38de6e);}['init'](){const _0x37d4e1=this['editor'],_0x28f6f1=_0x37d4e1['plugins']['get']('TrackChangesEditing'),_0x441c86=_0x37d4e1['plugins']['get']('Annotations'),_0x3e4da1=_0x37d4e1['plugins']['get']('EditorAnnotations'),_0x56af90=_0x37d4e1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3e4da1['addSourceCollector'](()=>{const _0x3eb0d2=[];for(const [_0x135e0e,_0x4b4afa]of Array['from'](this['_suggestionToController'])){const _0x10a08d=_0x135e0e['getAllAdjacentSuggestions'](),_0x3bf145=[];for(const _0x5ae50e of _0x10a08d){if(!_0x5ae50e['isInContent'])continue;if(_0x5ae50e['isMultiRange']){_0x3bf145['push'](..._0x5ae50e['getRanges']());continue;}const _0x571033=_0x5ae50e['getFirstRange']();if(_0x3bf145['length']>0x0){const _0x1db29f=_0x3bf145[0x0]['getJoined'](_0x571033);if(_0x1db29f){_0x3bf145[0x0]=_0x1db29f;continue;}}_0x3bf145['push'](_0x571033);}_0x3eb0d2['push']([_0x4b4afa['view'],_0x3bf145]);}return _0x3eb0d2;}),this['listenTo'](_0x28f6f1,'suggestionLoaded',(_0x3bf0ab,_0x42f33b)=>{this['listenTo'](_0x42f33b,'change:previous',(_0xd260e5,_0x427593,_0x484aad,_0x444cd1)=>{_0x42f33b['isInContent']&&(null==_0x484aad?(this['_updateController'](_0x444cd1['head']),this['_handleSuggestionControllerDelayed'](_0x42f33b,!0x1)):(this['_updateController'](_0x484aad['head']),null==_0x444cd1&&this['_handleSuggestionControllerDelayed'](_0x42f33b,!0x0)));}),null!==_0x42f33b['previous']?this['_updateController'](_0x42f33b['head']):this['_handleSuggestionControllerDelayed'](_0x42f33b,!0x1);}),this['listenTo'](_0x28f6f1,'suggestionUnloaded',(_0x360ed5,_0x389d15,_0x2873f2)=>{this['stopListening'](_0x389d15,'change:previous'),this['_handleControllerBuffer']['delete'](_0x389d15),this['_suggestionToController']['has'](_0x389d15)&&this['_destroyController'](_0x389d15),_0x2873f2&&this['_updateController'](_0x2873f2['head']);}),this['listenTo'](_0x28f6f1,'suggestionChanged',(_0xe49c27,_0x4a557b)=>{this['_updateController'](_0x4a557b);}),this['listenTo'](_0x441c86,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x56af90,'addComment',(_0x3732fb,{threadId:_0x27e912,isFromAdapter:_0x128fd2})=>{if(_0x128fd2||!_0x28f6f1['hasSuggestion'](_0x27e912))return;const _0x44d9a4=_0x28f6f1['getSuggestion'](_0x27e912);this['_suggestionToController']['get'](_0x44d9a4)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1033a1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4aa868;for(const _0x9ceddd in _0x1033a1){const _0xc74963=_0x9ceddd,_0x3e52a5=_0x1033a1[_0xc74963];if('trackChangesLicenseKeyValid'==_0x3e52a5||'trackChangesLicenseKeyInvalid'==_0x3e52a5||'trackChangesLicenseKeyExpired'==_0x3e52a5||'trackChangesLicenseKeyDomainLimit'==_0x3e52a5||'trackChangesLicenseKeyNotAllowed'==_0x3e52a5||'trackChangesLicenseKeyEvaluationLimit'==_0x3e52a5||'trackChangesLicenseKeyTrialLimit'==_0x3e52a5||'trackChangesLicenseKeyUsageLimit'==_0x3e52a5){delete _0x1033a1[_0xc74963],_0x4aa868=_0x3e52a5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4aa868&&_0x1033a1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4aa868&&_0x1033a1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4aa868&&_0x1033a1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4aa868&&_0x1033a1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4aa868&&_0x1033a1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4aa868&&_0x1033a1['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4aa868&&_0x1033a1['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x32897e=this['editor']['plugins']['get']('Annotations'),_0x57d1b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x230aa3=Array['from'](_0x32897e['activeAnnotations'],_0x236283=>_0x236283['innerView'])['filter'](_0x1fd29b=>this['_viewToController']['has'](_0x1fd29b)),_0x35a489=[];for(const _0x218ea3 of _0x230aa3){const _0x3f73ea=this['_viewToController']['get'](_0x218ea3)['model']['getAllAdjacentSuggestions']();_0x35a489['push'](..._0x3f73ea['reduce']((_0x539dd5,_0x51d290)=>[..._0x539dd5,..._0x51d290['getMarkerNames']()],[]));}_0x57d1b4['activeMarkers']=_0x35a489;}['_addUIComponentsToFactory'](){const _0x136072=this['editor'],_0x2a7c36=_0x136072['locale'],_0x57b8ce=c(_0x2a7c36,'Track\x20changes'),_0x95ebcf=new _0x2d3f2d([{'type':'switchbutton','model':new _0x41a0e2({'withText':!0x0,'isToggleable':!0x0,'label':_0x57b8ce,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x41a0e2({'withText':!0x0,'label':c(_0x2a7c36,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41a0e2({'withText':!0x0,'label':c(_0x2a7c36,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41a0e2({'withText':!0x0,'label':c(_0x2a7c36,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41a0e2({'withText':!0x0,'label':c(_0x2a7c36,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x136072['plugins']['has']('TrackChangesPreview')&&_0x95ebcf['addMany']([{'type':'separator'},{'type':'button','model':new _0x41a0e2({'withText':!0x0,'label':c(_0x2a7c36,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x23138a of _0x95ebcf)if(ke(_0x23138a)){const _0xab8266=_0x136072['commands']['get'](_0x23138a['model']['commandName']);_0x23138a['model']['bind']('isOn','isEnabled')['to'](_0xab8266,'value','isEnabled');}_0x136072['ui']['componentFactory']['add']('trackChanges',_0x358d4c=>this['_createToolbarButton'](_0x358d4c,_0x95ebcf,_0x57b8ce)),_0x136072['ui']['componentFactory']['add']('menuBar:trackChanges',_0x265c02=>this['_createMenuBarMenu'](_0x265c02,_0x95ebcf,_0x57b8ce));}['_createToolbarButton'](_0x226952,_0x1b7755,_0x12f993){const _0x5ed9fe=_0x49273c(_0x226952,_0x4bcb62),_0x370265=this['editor']['commands']['get']('trackChanges');_0x5ed9fe['buttonView']['set']({'tooltip':_0x12f993,'label':_0x12f993,'icon':_0x263ea4}),_0x5ed9fe['buttonView']['bind']('isOn')['to'](_0x370265,'value'),_0x5ed9fe['buttonView']['on']('execute',()=>{_0x370265['execute'](),this['editor']['editing']['view']['focus']();}),_0x45854c(_0x5ed9fe,_0x1b7755,{'role':'menu'});const _0x3ce25f=[];for(const _0x1dda72 of _0x1b7755)ke(_0x1dda72)&&_0x3ce25f['push'](this['editor']['commands']['get'](_0x1dda72['model']['commandName']));const _0x52deee=_0x5ed9fe['buttonView'];return _0x52deee['actionView']['unbind']('isEnabled'),_0x52deee['arrowView']['unbind']('isEnabled'),_0x52deee['actionView']['bind']('isEnabled')['to'](_0x370265,'isEnabled'),_0x52deee['arrowView']['bind']('isEnabled')['toMany'](_0x3ce25f,'isEnabled',(..._0x5e3fae)=>_0x5e3fae['some'](_0x4dbbd2=>_0x4dbbd2)),_0x5ed9fe['on']('execute',_0x16c40b=>{this['editor']['execute'](_0x16c40b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5ed9fe;}['_createMenuBarMenu'](_0x170a09,_0x54b259,_0x1f83a3){const _0x9ec330=new _0x34d256(_0x170a09),_0x3eef55=this['editor']['commands']['get']('trackChanges');_0x9ec330['buttonView']['set']({'label':_0x1f83a3,'icon':_0x263ea4});const _0xfbbc50=new _0x1706ac(_0x170a09);for(const _0x57c64d of _0x54b259){if('separator'==_0x57c64d['type']){_0xfbbc50['items']['add'](new _0x475808(_0x170a09));continue;}const _0x1f34ae=new _0x359a6c(_0x170a09,_0x9ec330),_0x1b3661=new _0x94c5e9(_0x170a09),_0x2d782b=_0x57c64d['model'];_0x1b3661['bind'](...Object['keys'](_0x2d782b))['to'](_0x2d782b),_0x1b3661['delegate']('execute')['to'](_0x9ec330),_0x1b3661['on']('execute',()=>{this['editor']['execute'](_0x2d782b['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f34ae['children']['add'](_0x1b3661),_0xfbbc50['items']['add'](_0x1f34ae);}return _0x9ec330['bind']('isEnabled')['to'](_0x3eef55,'isEnabled'),_0x9ec330['panelView']['children']['add'](_0xfbbc50),_0x9ec330;}['_initializeController'](_0x4cff06){const _0x43d20c=this['editor'],_0x275113=_0x43d20c['config'],_0x1e0c2d=_0x43d20c['plugins']['get']('Annotations'),_0x57e144=_0x43d20c['plugins']['get']('CommentsRepository'),_0x16d203=_0x43d20c['plugins']['get']('EditorAnnotations'),_0x207812=_0x43d20c['plugins']['get'](_0x671950)['me'],_0x854e30=_0x275113['get']('trackChanges')['SuggestionThreadView'],_0x3c72f4=_0x275113['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x526acd,CommentThreadInputView:_0x4c503a}=_0x43d20c['plugins']['get']('CommentsUI');let _0x382a48,_0x31b566,_0x3f7580;this['_annotationViews']['has'](_0x4cff06['id'])?(_0x31b566=this['_annotationViews']['get'](_0x4cff06['id']),_0x382a48=_0x31b566['mainView']):(_0x382a48=new _0x854e30(_0x43d20c['locale'],_0x4cff06,_0x207812,{'disableComments':this['_disableComments'],'editorConfig':{..._0x275113['get']('comments.editorConfig'),'licenseKey':_0x275113['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x275113['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x275113['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x275113['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x49779c(_0x275113['get']('locale'),_0x43d20c['locale']),'CommentView':_0x275113['get']('comments')['CommentView'],'CommentsListView':_0x526acd,'CommentThreadInputView':_0x4c503a,'SuggestionView':_0x3c72f4}),_0x382a48['suggestionView']['acceptButton']['on']('execute',()=>{_0x43d20c['editing']['view']['focus']();}),_0x382a48['suggestionView']['discardButton']['on']('execute',()=>{_0x43d20c['editing']['view']['focus']();}),_0x31b566=_0x1e0c2d['createAnnotationView'](this['editor']['locale'],_0x382a48),_0x31b566['bind']('isDirty')['to'](_0x382a48,'isDirty'),_0x31b566['bind']('length')['to'](_0x382a48),_0x31b566['bind']('type')['to'](_0x382a48,'type',_0x55f612=>'suggestion-'+_0x55f612),_0x382a48['on']('escape',()=>{_0x3f7580['fire']('escape');}),this['_annotationViews']['set'](_0x4cff06['id'],_0x31b566));const _0x54cf52=_0x57e144['createCommentThreadController'](_0x4cff06['commentThread'],_0x382a48),_0x4be1ce=new pe(_0x43d20c,_0x4cff06,_0x382a48,_0x54cf52),_0x144ccb=_0x4cff06['getAllAdjacentSuggestions']()['filter'](_0x1e9ec5=>_0x1e9ec5['isInContent']);_0x382a48['descriptionParts']=_0x43d20c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x144ccb),this['_suggestionToController']['set'](_0x4cff06,_0x4be1ce),this['_viewToController']['set'](_0x382a48,_0x4be1ce),_0x3f7580=_0x1e0c2d['createAnnotation']({'view':_0x31b566,'target':()=>{const _0xc18ba0=[],_0x2103b3=_0x4cff06['getAllAdjacentSuggestions']()['filter'](_0x32c4af=>_0x32c4af['isInContent']);for(const _0x3ced5e of _0x2103b3)_0xc18ba0['push'](..._0x3ced5e['getMarkers']());return _0x2a17b3(_0x43d20c['editing'],_0xc18ba0);},'type':()=>'suggestion-'+_0x4be1ce['view']['type']}),_0x57e144['_bindAnnotationToEditors'](_0x382a48,_0x3f7580),_0x1e0c2d['add'](_0x3f7580),_0x16d203['registerAnnotation'](_0x3f7580);}['_destroyController'](_0x5165b2){const _0x57627a=this['editor']['plugins']['get']('CommentsRepository'),_0x34924c=this['editor']['plugins']['get']('Annotations'),_0x20e7d4=this['_suggestionToController']['get'](_0x5165b2),_0x5b823c=_0x20e7d4['view'],_0x48dba1=_0x34924c['getByInnerView'](_0x5b823c);_0x57627a['_unbindEditors'](_0x5b823c),_0x48dba1&&_0x34924c['remove'](_0x48dba1),this['_suggestionToController']['delete'](_0x5165b2),this['_viewToController']['delete'](_0x5b823c),_0x20e7d4['destroy']();}['_updateController'](_0x2bd3b0){if(!_0x2bd3b0['isInContent']||!this['_suggestionToController']['has'](_0x2bd3b0))return;const _0x1cf013=this['editor']['plugins']['get']('TrackChangesEditing'),_0x136ebd=this['_suggestionToController']['get'](_0x2bd3b0),_0x3af3b3=_0x2bd3b0['getAllAdjacentSuggestions']();_0x136ebd['view']['descriptionParts']=_0x1cf013['descriptionFactory']['getDescriptions'](_0x3af3b3);}['destroy'](){for(const _0x425540 of this['_suggestionToController']['keys']())this['_destroyController'](_0x425540);for(const _0x59c1d6 of this['_annotationViews']['values']())_0x59c1d6['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x415bf5){return'model'in _0x415bf5;}class k extends _0x577ae7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x54e559){this['editor']['plugins']['get'](p)['adapter']=_0x54e559;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3a34f5){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3a34f5);}['getSuggestions']({skipNotAttached:_0x33de03=!0x1,toJSON:_0x3ae508=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x33de03,'toJSON':_0x3ae508});}['getSuggestion'](_0x1189da){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1189da);}}const w=['Pagination'];class T extends _0x577ae7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x54afba=this['editor'];if(_0x54afba['config']['define']('trackChangesData.editorCreator',_0x4d98d7=>{const _0x269582=_0x54afba['model']['document']['getRootNames']()['reduce']((_0x2580bb,_0x23d02b)=>(_0x2580bb[_0x23d02b]='',_0x2580bb),{});return _0x54afba['constructor']['create'](_0x269582,_0x4d98d7);}),'function'!=typeof _0x54afba['config']['get']('trackChangesData')['editorCreator'])throw new _0x3bf293('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x227c15){return N(this['editor'],!0x0,_0x227c15);}['getDataWithDiscardedSuggestions'](_0x56c9c4){return N(this['editor'],!0x1,_0x56c9c4);}}class D extends _0x577ae7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x360d4c){function _0x5b6f67(_0x412be8){return _0x412be8['map'](_0x4131a0=>String['fromCharCode'](_0x4131a0))['join']('');}super(_0x360d4c),this['result']='end',_0x360d4c[_0x5b6f67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b6f67([0x76,0x69,0x65,0x77])][_0x5b6f67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b6f67([0x61,0x75,0x74,0x6f]),_0x360d4c[_0x5b6f67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5b6f67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b6f67([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5b6f67([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5b6f67([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0xb43fd5){return void 0x0!==_0xb43fd5['getRootsAttributes'];}async function N(_0x10fb5c,_0x75a82,_0x5736d2){const _0x4ac800=_0x4ffdbb(_0x10fb5c,w);_0x4ac800['plugins']['push'](p,D),_0x4ac800['rootsAttributes']=Ge(_0x10fb5c)?_0x10fb5c['getRootsAttributes']():void 0x0;const _0x44d085=document['createDocumentFragment'](),_0x342375=_0x10fb5c['config']['get']('trackChangesData')['editorCreator'],_0x404d79=await _0x342375(_0x4ac800,()=>function(_0x412052){const _0x32f709=document['createElement']('div');return _0x412052['appendChild'](_0x32f709),_0x32f709;}(_0x44d085));!function(_0x35aaa6,_0x57c0e0){const _0x20cf8b=_0x35aaa6['model']['document']['getRootNames']()['reduce']((_0x4014bb,_0x443e20)=>(_0x4014bb[_0x443e20]=_0x35aaa6['data']['get']({'rootName':_0x443e20}),_0x4014bb),{}),_0x35b5e3=_0x35aaa6['plugins']['get']('Users')['users']['map'](_0x25d6af=>({'id':_0x25d6af['id'],'name':_0x25d6af['name']})),_0x937f1b=_0x35aaa6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5b00d0=_0x35aaa6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xcacdc4=_0x57c0e0['plugins']['get']('Users'),_0x5ad850=_0x57c0e0['plugins']['get']('TrackChangesEditing'),_0x56848c=_0x57c0e0['plugins']['get']('CommentsRepository');for(const _0x6bdaf7 of _0x56848c['getCommentThreads']())_0x6bdaf7['remove']();for(const _0x2ba37a of _0x35b5e3)_0xcacdc4['getUser'](_0x2ba37a['id'])||_0xcacdc4['addUser'](_0x2ba37a);_0xcacdc4['me']||_0xcacdc4['useAnonymousUser']();for(const _0x1bf037 of _0x5b00d0)_0x56848c['addCommentThread'](_0x1bf037);for(const _0x16d656 of _0x937f1b)_0x5ad850['addSuggestionData'](_0x16d656);_0x57c0e0['data']['set'](_0x20cf8b);}(_0x10fb5c,_0x404d79),_0x404d79['execute'](_0x75a82?'acceptAllSuggestions':'discardAllSuggestions');const _0x1c7aaf=Ge(_0x404d79)?_0x404d79['getFullData'](_0x5736d2):_0x404d79['data']['get'](_0x5736d2);return await _0x404d79['destroy'](),_0x1c7aaf;}class Me extends _0x36af6d{['options'];constructor(_0x2d1b4c,_0x12b688){super(_0x2d1b4c),this['options']=_0x12b688,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'](_0x7d7bda,_0x3a0203){if(!this['element'])return;const _0xe57650=[];for(const [_0x29a4b4,_0x44c3f8]of _0x7d7bda){const _0x1d93c1=document['createElement']('div');_0x1d93c1['setAttribute']('data-ck-root-name',_0x29a4b4),_0x1d93c1['className']=_0x44c3f8['classes']+'\x20ck-track-changes-preview__root-container',_0x1d93c1['innerHTML']=_0x44c3f8['content'],_0xe57650['push'](_0x1d93c1);}_0x3a0203(this['element'],_0xe57650),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1e86e5{constructor(_0x11ae00){super(_0x11ae00),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x46c9ad=this['editor'],_0x1839f4=_0x46c9ad['locale'],_0x1364c3=_0x46c9ad['plugins']['get']('Dialog');let _0x414240;const _0x2664ef=function(_0x5ac6be){const _0x486b2c={};if('editables'in _0x5ac6be['ui']['view']){for(const [_0x31eb64,_0x3f7dd1]of Object['entries'](_0x5ac6be['ui']['view']['editables']))_0x486b2c[_0x31eb64]=_0x3f7dd1['element'];}else _0x486b2c[_0x5ac6be['model']['document']['getRootNames']()[0x0]]=_0x5ac6be['ui']['view']['editable']['element'];return _0x486b2c;}(_0x46c9ad),_0x49ee14=function(_0x3d67d7){let _0x3cc67d=0x0;for(const _0x4d34de of Object['values'](_0x3d67d7))_0x3cc67d=Math['max'](_0x3cc67d,_0x4d34de['getBoundingClientRect']()['width']);let _0x2b27e4=0x0;for(const _0x481998 of Object['values'](_0x3d67d7))_0x2b27e4+=_0x481998['getBoundingClientRect']()['height'];const _0x2642ba=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2d1836=Math['min'](_0x2b27e4,_0x2642ba);return{'width':_0x3cc67d,'height':_0x2d1836};}(_0x2664ef);_0x1364c3['show']({'id':'finalContentPreview','title':c(_0x1839f4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1839f4,{'dialogRects':_0x49ee14}),'onHide':()=>{_0x414240['detachFromDom']();},'onShow':()=>{_0x46c9ad['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x247b47=>{const _0x3fb940=this['_standarizeRootsData'](_0x247b47,_0x46c9ad,_0x2664ef);_0x1364c3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3fb940,_0x46c9ad['config']['get']('trackChanges.preview.renderFunction'));}),_0x414240=new _0x45ffab(_0x1839f4,[_0x1364c3['view']]),_0x414240['attachToDom'](),_0x414240['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x46c9ad['once']('destroy',()=>{_0x414240['detachFromDom']();});const _0x38df2f=_0x1364c3['view']['headerView']['class'];_0x1364c3['view']['headerView']['class']=_0x38df2f?_0x38df2f+'\x20ck-reset_all':'ck-reset_all',_0x1364c3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1364c3['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5bc02f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5687e5=_0x5bc02f['previewMode'],_0x2e9253={};if('$labels'===_0x5687e5){for(const _0x48f7dd of _0x5bc02f['getMergeFieldsIds']())_0x2e9253[_0x48f7dd]=_0x5bc02f['getLabel'](_0x48f7dd)||_0x48f7dd;}else{const _0x554e94='$defaultValues'===_0x5687e5?_0x5bc02f['getDefaultValues']():_0x5bc02f['getDataSetValues'](_0x5687e5,!0x0);for(const _0x20c09d of Object['entries'](_0x554e94)){const [_0x2175d3,_0x1eb63b]=_0x20c09d;_0x2e9253[_0x2175d3]=null!==_0x1eb63b?_0x1eb63b:_0x5bc02f['getLabel'](_0x2175d3)||_0x2175d3;}}return{'mergeFieldsData':_0x2e9253};}['_standarizeRootsData'](_0x2596de,_0x9c5839,_0x330593){let _0x4afb3f;if('string'==typeof _0x2596de){const _0x217804=_0x9c5839['model']['document']['getRootNames']()[0x0];_0x4afb3f={[_0x217804]:_0x2596de};}else _0x4afb3f=_0x2596de;const _0x43f6be=this['_fixMediaEmbeds'](_0x4afb3f,_0x9c5839),_0xfc8964=function(_0x5a1502,_0x2a83e6){for(const [_0x22a8f7,_0x591585]of _0x5a1502)_0x591585['classes']=_0x2a83e6[_0x22a8f7]['classList']['value']['replace']('ck-focused','');return _0x5a1502;}(this['_sortRoots'](_0x9c5839)['reduce']((_0x42cbb0,_0x26990d)=>(_0x42cbb0['push']([_0x26990d,{'content':_0x43f6be[_0x26990d],'classes':''}]),_0x42cbb0),[]),_0x330593);return _0xfc8964;}['_fixMediaEmbeds'](_0x54b573,_0x278dae){if(!_0x278dae['plugins']['has']('MediaEmbedEditing'))return _0x54b573;const _0x5417e1=_0x278dae['plugins']['get']('MediaEmbedEditing');for(const [_0x207f9b,_0x128cd1]of Object['entries'](_0x54b573)){const _0x17a1ca=document['createElement']('div');_0x17a1ca['innerHTML']=_0x128cd1,(_0x17a1ca['querySelectorAll']('figure.media')['forEach'](_0x37edf4=>{const _0x5725d9=_0x37edf4['querySelector']('oembed');if(_0x5725d9){const _0x159668=_0x5725d9['getAttribute']('url');if(_0x159668){const _0x45114e=_0x5417e1['registry']['getMediaViewElement'](new _0x25b75f(_0x278dae['editing']['view']['document']),_0x159668,{'elementName':'','renderForEditingView':!0x0}),_0x5555a1=document['createElement']('div');_0x5555a1['classList']['add']('ck-media__wrapper'),_0x45114e['render'](_0x5555a1,_0x278dae['editing']['view']['domConverter']),_0x5725d9['replaceWith'](_0x5555a1);}}}),_0x54b573[_0x207f9b]=_0x17a1ca['innerHTML']);}return _0x54b573;}['_sortRoots'](_0x58bbfd){if(!function(_0x4f96d4){return void 0x0!==_0x4f96d4['getRootsAttributes'];}(_0x58bbfd))return _0x58bbfd['model']['document']['getRootNames']();const _0x35e7a0=[],_0x528f53=new Map();for(const _0x33b93f of _0x58bbfd['model']['document']['getRootNames']()){const _0x4cbc0b=_0x58bbfd['editing']['view']['getDomRoot'](_0x33b93f)['getClientRects']()['item'](0x0);_0x35e7a0['push'](_0x33b93f),_0x528f53['set'](_0x33b93f,_0x4cbc0b);}return _0x35e7a0['sort']((_0x3d16a7,_0x197a90)=>{const _0x3c45e5=_0x528f53['get'](_0x3d16a7),_0x1fc5f5=_0x528f53['get'](_0x197a90);return _0x3c45e5['y']-_0x1fc5f5['y']||_0x3c45e5['x']-_0x1fc5f5['x'];}),_0x35e7a0;}}class te extends _0x577ae7{static get['requires'](){return[T,_0x19d789];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51db9f){super(_0x51db9f),_0x51db9f['commands']['add']('previewFinalContent',new re(this['editor'])),_0x51db9f['config']['define']('trackChanges.preview.renderFunction',(_0x3fcc6b,_0x1780a8)=>{for(const _0x5d3bb8 of _0x1780a8)_0x3fcc6b['appendChild'](_0x5d3bb8);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|