@ckeditor/ckeditor5-track-changes 45.0.0-alpha.10 → 45.0.0-alpha.11
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
|
-
_0x39691b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xb4513e,_0x4b4111){super(),this['id']=_0x4b4111['id'],this['type']=_0x4b4111['type'],this['subType']=_0x4b4111['subType']||null,this['author']=_0x4b4111['author'],this['creator']=_0x4b4111['creator']||_0x4b4111['author'],this['isExternal']=Boolean(_0x4b4111['attributes']&&_0x4b4111['attributes']['@external']),this['data']=null,this['_model']=_0xb4513e,this['_onAccept']=_0x4b4111['onAccept'],this['_onDiscard']=_0x4b4111['onDiscard'],this['_onAttributesChange']=_0x4b4111['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4b4111['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 _0x563ab9=this;for(;_0x563ab9['previous'];)_0x563ab9=_0x563ab9['previous'];return _0x563ab9;}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'](_0x5d87c1){this['_markerNames']['add'](_0x5d87c1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4b3943=>this['_model']['markers']['get'](_0x4b3943))['filter'](_0x5e5fe2=>_0x5e5fe2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5a058e=>{for(const _0x5a982c of this['getMarkers']())_0x5a058e['removeMarker'](_0x5a982c);}),this['_markerNames']['clear']();}['removeMarker'](_0x56af9d){this['_model']['change'](_0x35373f=>{_0x35373f['removeMarker'](_0x56af9d);}),this['_markerNames']['delete'](_0x56af9d);}['addRange'](_0x4e5cc5){const _0x3a49b5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x3a49b5),this['_model']['change'](_0x36221c=>{_0x36221c['addMarker'](_0x3a49b5,{'range':_0x4e5cc5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3c9372){for(const _0x350bdf of this['getRanges']())if(_0x350bdf['isIntersecting'](_0x3c9372))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x221397=>_0x221397['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4095b2,_0x3ebcff)=>[..._0x4095b2,..._0x3ebcff['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x931ac7=this['getRanges']();if(0x1!=_0x931ac7['length'])return null;const _0x1a5d16=_0x931ac7[0x0],_0x1caf0a=_0x1a5d16['start']['nodeAfter'],_0x1c343b=_0x1a5d16['end']['nodeBefore'];return _0x1caf0a instanceof _0x511b83?_0x1caf0a!=_0x1c343b?null:_0x1caf0a: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 _0x3af6b5=[];let _0x9cad70=this['head'];for(;_0x9cad70;)_0x3af6b5['push'](_0x9cad70),_0x9cad70=_0x9cad70['next'];return _0x3af6b5;}['setAttribute'](_0x20bd7f,_0x2a46ef){const _0x179700=_0xf3a4cd(this['attributes']);_0x50f569(_0x179700,_0x20bd7f,_0x2a46ef),_0xd04f79(_0x179700,this['attributes'])||(this['attributes']=_0x179700,this['_onAttributesChange'](_0x179700));}['removeAttribute'](_0x5cd893){const _0x2a0454=_0xf3a4cd(this['attributes']);_0x55dbd8(_0x2a0454,_0x5cd893),_0xd04f79(_0x2a0454,this['attributes'])||(this['attributes']=_0x2a0454,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 _0x28fc1d()['substr'](0x1,0x5);}}function c(_0x1e114f,_0x1a98a8,_0x4ff36b){const _0x47e60f=_0x1e114f['t'],t=_0x1e114f['t'];switch(_0x1a98a8){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',_0x4ff36b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4ff36b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4ff36b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4ff36b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4ff36b);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',_0x4ff36b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4ff36b);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',_0x4ff36b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4ff36b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4ff36b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4ff36b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4ff36b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4ff36b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4ff36b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4ff36b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4ff36b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4ff36b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4ff36b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4ff36b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4ff36b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4ff36b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4ff36b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4ff36b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4ff36b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4ff36b);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'},_0x4ff36b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4ff36b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4ff36b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4ff36b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4ff36b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4ff36b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4ff36b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4ff36b);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'},_0x4ff36b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4ff36b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4ff36b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4ff36b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4ff36b);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'},_0x4ff36b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4ff36b);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'},_0x4ff36b);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'},_0x4ff36b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4ff36b);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'},_0x4ff36b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4ff36b);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'},_0x4ff36b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4ff36b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4ff36b);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'},_0x4ff36b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4ff36b);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 _0x47e60f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4ff36b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x47e60f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4ff36b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4ff36b);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'},_0x4ff36b);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'},_0x4ff36b);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'},_0x4ff36b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1a98a8;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x42d7c8,_0x34d850){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x42d7c8,this['_locale']=_0x34d850;}['getDescriptions'](_0xd11586){const _0x224220=[],_0x3f5e73=new Set(),_0x299815=new Set();for(let _0x4a07a1=0x0;_0x4a07a1<_0xd11586['length'];_0x4a07a1++){const _0x5ef5d3=_0xd11586[_0x4a07a1];if(!_0x5ef5d3['isInContent'])continue;const _0x5ef287=this['_handleCustomCallbackDescription'](_0x5ef5d3);if(_0x5ef287){if(null!=_0x5ef5d3['subType']){if(_0x3f5e73['has'](_0x5ef5d3['subType']))continue;_0x3f5e73['add'](_0x5ef5d3['subType']);}_0x224220['push'](_0x5ef287);}else{if('attribute'!=_0x5ef5d3['type'])'insertion'!=_0x5ef5d3['type']&&'deletion'!=_0x5ef5d3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x224220,_0x5ef5d3,_0xd11586[_0x4a07a1+0x1]);else{const _0x3578e7=_0x5ef5d3['data']['key'];if(_0x299815['has'](_0x3578e7))continue;_0x299815['add'](_0x5ef5d3['data']['key']),_0x3578e7==u?this['_handleRenameSuggestionDescription'](_0x224220,_0x5ef5d3):this['_handleAttributeSuggestionDescription'](_0x224220,_0x5ef5d3);}}}return this['_resolveDescriptionItems'](_0x224220);}['registerDescriptionCallback'](_0x1b2be1){this['_customCallbacks']['push'](_0x1b2be1);}['registerElementLabel'](_0x148065,_0x54effc,_0x142589=_0x2fc864['normal']){'function'==typeof _0x148065?_0x5d2d4e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x148065,'label':_0x54effc,'priority':_0x142589}):this['_itemLabels']['set'](_0x148065,_0x54effc);}['registerAttributeLabel'](_0x4aa6b0,_0x1bfcc7){this['_attributeLabels']['set'](_0x4aa6b0,_0x1bfcc7);}['getItemLabel'](_0x4464a8,_0x5524aa=0x1){let _0x3e0c92;for(const _0x3137d5 of this['_itemLabelsCallbacks'])if(_0x3137d5['matchingCallback'](_0x4464a8)){_0x3e0c92=_0x3137d5['label'];break;}return _0x3e0c92||(_0x3e0c92=this['_itemLabels']['get'](_0x4464a8['name'])),_0x3e0c92?_0x3e0c92(_0x5524aa):0x1!==_0x5524aa?_0x5524aa+'\x20'+_0x4464a8['name']+'s':''+_0x4464a8['name'];}['_addDescriptionItems'](_0x4f9f31,_0x33237f){const _0x577b42=_0x33237f['getFirstRange']()['getWalker'](),_0x4a9d7c='insertion'==_0x33237f['type']?'add':'remove';for(const _0x45f4c4 of _0x577b42){const _0x41ed4e=_0x45f4c4['item'],_0x244422=_0x4f9f31[_0x4f9f31['length']-0x1];if(_0x41ed4e['is']('$textProxy'))_0x244422&&_0x244422['type']['indexOf']('Container')>-0x1&&_0x4f9f31['pop'](),_0x244422&&'text'==_0x244422['type']?_0x244422[_0x4a9d7c]+=_0x41ed4e['data']:_0x4f9f31['push']({'type':'text','add':'add'==_0x4a9d7c?_0x41ed4e['data']:'','remove':'remove'==_0x4a9d7c?_0x41ed4e['data']:''});else{if(this['_schema']['isObject'](_0x41ed4e)){const _0x243451=_0x41ed4e;if(_0x244422&&_0x244422['type']['indexOf']('Container')>-0x1&&_0x4f9f31['pop'](),'elementEnd'==_0x45f4c4['type'])continue;_0x244422&&_0x244422['type']==_0x4a9d7c+'Object'&&_0x244422['element']['name']==_0x243451['name']?_0x244422['quantity']++:_0x4f9f31['push']({'type':_0x4a9d7c+'Object','element':_0x243451,'quantity':0x1}),_0x577b42['skip'](_0x4383d2=>!('elementEnd'==_0x4383d2['type']&&_0x4383d2['item']==_0x41ed4e));}else{if(this['_schema']['checkChild'](_0x41ed4e,'$text')||_0x41ed4e['is']('element','softBreak')){const _0x3039a9=_0x41ed4e;if('add'==_0x4a9d7c&&'elementStart'==_0x45f4c4['type']||'remove'==_0x4a9d7c&&'elementEnd'==_0x45f4c4['type'])continue;if(_0x244422&&-0x1==_0x244422['type']['indexOf']('Container')){'text'==_0x244422['type']&&(_0x244422[_0x4a9d7c]+='\x0a');continue;}let _0x28b198;if(_0x28b198='add'==_0x4a9d7c?_0x3039a9['nextSibling']&&!this['_schema']['isObject'](_0x3039a9['nextSibling'])?_0x3039a9['nextSibling']:null:_0x3039a9['previousSibling']&&!this['_schema']['isObject'](_0x3039a9['previousSibling'])?_0x3039a9['previousSibling']:null,_0x3039a9['isEmpty']||_0x28b198&&_0x28b198['isEmpty']){const _0x41b81f=_0x28b198&&_0x28b198['isEmpty']?_0x28b198:_0x3039a9;_0x244422&&_0x244422['type']==_0x4a9d7c+'EmptyContainer'&&_0x244422['element']['name']==_0x41b81f['name']?_0x244422['quantity']++:_0x4f9f31['push']({'type':_0x4a9d7c+'EmptyContainer','element':_0x41b81f,'quantity':0x1});}else _0x4f9f31['push']({'type':_0x4a9d7c+'Container','element':_0x3039a9});}}}}}['_resolveDescriptionItems'](_0x3cb75f){const _0x562480=this['_locale'],_0x441f57=[],_0x3b37a9=[],_0x2cc0e1=[];for(const _0x1ff373 of _0x3cb75f)switch(_0x1ff373['type']){case'text':if(_0x1ff373['add']=_0x1ff373['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1ff373['remove']=_0x1ff373['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1ff373['add']&&''!=_0x1ff373['remove']){_0x441f57['push']({'type':'replace','content':c(_0x562480,'REPLACE_TEXT',['\x22'+_0x1ff373['remove']+'\x22','\x22'+_0x1ff373['add']+'\x22'])});continue;}if(null!=_0x1ff373['add']['match'](/^ +$/)){_0x441f57['push']({'type':'insertion','content':c(_0x562480,'*Insert:*\x20%0',c(_0x562480,'ELEMENT_SPACE',_0x1ff373['add']['length']))});continue;}if(null!=_0x1ff373['remove']['match'](/^ +$/)){_0x441f57['push']({'type':'deletion','content':c(_0x562480,'*Remove:*\x20%0',c(_0x562480,'ELEMENT_SPACE',_0x1ff373['remove']['length']))});continue;}if(''!=_0x1ff373['add']){_0x441f57['push']({'type':'insertion','content':c(_0x562480,'*Insert:*\x20%0','\x22'+_0x1ff373['add']+'\x22')});continue;}_0x441f57['push']({'type':'deletion','content':c(_0x562480,'*Remove:*\x20%0','\x22'+_0x1ff373['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x441f57['push']({'type':'insertion','content':c(_0x562480,'*Insert:*\x20%0',this['getItemLabel'](_0x1ff373['element'],_0x1ff373['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x441f57['push']({'type':'deletion','content':c(_0x562480,'*Remove:*\x20%0',this['getItemLabel'](_0x1ff373['element'],_0x1ff373['quantity']))});continue;case'addContainer':_0x441f57['push']({'type':'insertion','content':c(_0x562480,'*Split:*\x20%0',this['getItemLabel'](_0x1ff373['element'],_0x1ff373['quantity']))});continue;case'removeContainer':_0x441f57['push']({'type':'deletion','content':c(_0x562480,'*Merge:*\x20%0',this['getItemLabel'](_0x1ff373['element'],_0x1ff373['quantity']))});continue;case'addFormat':_0x3b37a9['push'](_0x1ff373['key']);continue;case'removeFormat':_0x2cc0e1['push'](_0x1ff373['key']);continue;default:_0x441f57['push'](_0x1ff373);}if(_0x3b37a9['length']){const _0x2811e7=_0x3b37a9['map'](_0x31344d=>this['_attributeLabels']['has'](_0x31344d)?this['_attributeLabels']['get'](_0x31344d):_0x31344d)['join'](',\x20');_0x441f57['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x2811e7)});}if(_0x2cc0e1['length']){const _0x22638a=_0x2cc0e1['map'](_0x481dd6=>this['_attributeLabels']['has'](_0x481dd6)?this['_attributeLabels']['get'](_0x481dd6):_0x481dd6)['join'](',\x20');_0x441f57['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x22638a)});}return _0x441f57;}['_handleCustomCallbackDescription'](_0x41d320){for(const _0x1a442f of this['_customCallbacks']){const _0x4e5826=_0x1a442f(_0x41d320);if(_0x4e5826&&'type'in _0x4e5826)return _0x4e5826;}}['_handleAttributeSuggestionDescription'](_0x203d11,_0x46da5e){const _0x292e0f=_0x46da5e['data'],_0x39e252=void 0x0===_0x292e0f['newValue']?'removeFormat':'addFormat';_0x203d11['push']({'type':_0x39e252,'key':_0x292e0f['key']});}['_handleRenameSuggestionDescription'](_0x52ac68,_0x46c320){_0x52ac68['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x46c320['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1b9388,_0x2aa319,_0x17bb70){if(this['_addDescriptionItems'](_0x1b9388,_0x2aa319),_0x17bb70&&_0x17bb70['getFirstRange']()&&!_0x2aa319['getFirstRange']()['end']['isEqual'](_0x17bb70['getFirstRange']()['start'])){const _0x1e402d=_0x1b9388[_0x1b9388['length']-0x1],_0x88f82b='insertion'==_0x2aa319['type']?'add':'remove';_0x1e402d&&'text'==_0x1e402d['type']&&(_0x1e402d[_0x88f82b]+='\x0a');}}}class U extends _0x51821d{['afterInit'](){const _0x18bbb4=this['editor'],_0x2feede=_0x18bbb4['plugins']['get']('TrackChangesEditing');_0x18bbb4['commands']['get']('showAIAssistant')&&_0x2feede['enableCommand']('showAIAssistant');}}class V extends _0x51821d{['afterInit'](){const _0x2bcc00=this['editor'],_0x1a28ee=_0x2bcc00['locale'];if(!_0x2bcc00['plugins']['has']('AlignmentEditing'))return;const _0x23ba4d=_0x2bcc00['plugins']['get']('TrackChangesEditing');_0x23ba4d['enableDefaultAttributesIntegration']('alignment'),_0x23ba4d['registerBlockAttribute']('alignment'),_0x23ba4d['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x1a28ee,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2056f7=this['editor'],_0x748c56=_0x2056f7['locale'];_0x2056f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41bde8=>{if('formatBlock'!=_0x41bde8['type'])return;const {data:_0x61e7bb}=_0x41bde8;if(_0x61e7bb&&'alignment'==_0x61e7bb['commandName']){const _0x47765b=_0x61e7bb['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x748c56,'*Format:*\x20%0',function(_0x1a4c1b){switch(_0x1a4c1b){case'left':return c(_0x748c56,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x748c56,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x748c56,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x748c56,'FORMAT_JUSTIFY_TEXT');}}(_0x47765b))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x51821d{['afterInit'](){const _0x5d839c=this['editor'],_0x2c3654=_0x5d839c['plugins']['get']('TrackChangesEditing'),_0xb1f83e=_0x5d839c['locale'];for(const _0x28c3e7 of Zt){if(!_0x5d839c['plugins']['has'](_0x28c3e7))continue;const _0x5f560f=_0x28c3e7['slice'](0x0,-0x7)['toLowerCase'](),_0x4aa26c='FORMAT_'+_0x5f560f['toUpperCase']();_0x2c3654['enableDefaultAttributesIntegration'](_0x5f560f),_0x2c3654['registerInlineAttribute'](_0x5f560f),_0x2c3654['descriptionFactory']['registerAttributeLabel'](_0x5f560f,c(_0xb1f83e,_0x4aa26c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x474b5a=this['editor'],_0x54ac48=_0x474b5a['locale'],_0x292cad=_0x474b5a['plugins']['get']('TrackChangesEditing');function _0x1aa9d4(_0x54ed4d,_0x30d2a1){_0x292cad['descriptionFactory']['registerDescriptionCallback'](_0x344e35=>{if('formatInline'!=_0x344e35['type'])return;const {data:_0x1b0581}=_0x344e35;return _0x1b0581&&_0x1b0581['commandName']===_0x54ed4d?_0x1b0581['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x54ac48,'*Format:*\x20%0',_0x30d2a1)}:{'type':'format','content':c(_0x54ac48,'*Remove\x20format:*\x20%0',_0x30d2a1)}:void 0x0;});}_0x1aa9d4('bold',c(_0x54ac48,'FORMAT_BOLD')),_0x1aa9d4('italic',c(_0x54ac48,'FORMAT_ITALIC')),_0x1aa9d4('underline',c(_0x54ac48,'FORMAT_UNDERLINE')),_0x1aa9d4('code',c(_0x54ac48,'FORMAT_CODE')),_0x1aa9d4('strikethrough',c(_0x54ac48,'FORMAT_STRIKETHROUGH')),_0x1aa9d4('subscript',c(_0x54ac48,'FORMAT_SUBSCRIPT')),_0x1aa9d4('superscript',c(_0x54ac48,'FORMAT_SUPERSCRIPT'));}}class G extends _0x51821d{['afterInit'](){const _0x43abad=this['editor'],_0x55261c=_0x43abad['locale'];if(!_0x43abad['plugins']['has']('BlockQuoteEditing'))return;const _0x2e92dd=_0x43abad['plugins']['get']('TrackChangesEditing'),_0x455c7e=this['editor']['commands']['get']('blockQuote');_0x2e92dd['enableCommand']('blockQuote',(_0x478a90,_0x3b37a7={})=>{const _0xbe4a85=this['editor']['model']['document']['selection'],_0x500e7c=_0x3b37a7&&void 0x0!==_0x3b37a7['forceValue']?_0x3b37a7['forceValue']:!_0x455c7e['value'];let _0x1f9188=[];if(_0x500e7c){const _0x2765cf=Array['from'](_0xbe4a85['getSelectedBlocks']())['filter'](_0x5ac696=>oo(_0x5ac696)||function(_0x48a2c9,_0x430e16){const _0x57f4fa=_0x430e16['checkChild'](_0x48a2c9['parent'],'blockQuote'),_0x4f7542=_0x430e16['checkChild'](['$root','blockQuote'],_0x48a2c9);return _0x57f4fa&&_0x4f7542;}(_0x5ac696,this['editor']['model']['schema']));_0x1f9188=to(_0x2765cf,_0x43abad['model']);}else{const _0x52cf90=Array['from'](_0xbe4a85['getSelectedBlocks']())['filter'](_0x1f93e6=>oo(_0x1f93e6));_0x1f9188=to(_0x52cf90,_0x43abad['model']);}_0x43abad['model']['change'](()=>{for(const _0x144146 of _0x1f9188)_0x2e92dd['markBlockFormat'](_0x144146,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x500e7c}]});});}),_0x2e92dd['descriptionFactory']['registerDescriptionCallback'](_0x1669a0=>{const {data:_0x2bfc89}=_0x1669a0;if(_0x2bfc89&&'blockQuote'==_0x2bfc89['commandName']){const _0x76555b=c(_0x55261c,'ELEMENT_BLOCK_QUOTE');return _0x2bfc89['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x55261c,'*Set\x20format:*\x20%0',_0x76555b)}:{'type':'format','content':c(_0x55261c,'*Remove\x20format:*\x20%0',_0x76555b)};}});}}function oo(_0x1c85be){return'blockQuote'==_0x1c85be['parent']['name'];}class L extends _0x51821d{['afterInit'](){const _0x279c26=this['editor'],_0x301dc5=_0x279c26['locale'],_0x25c4fc=_0x279c26['plugins']['get']('TrackChangesEditing');_0x279c26['plugins']['has']('BookmarkEditing')&&(_0x25c4fc['enableCommand']('insertBookmark'),_0x25c4fc['enableDefaultAttributesIntegration']('updateBookmark'),_0x25c4fc['registerBlockAttribute']('bookmarkId'),_0x25c4fc['descriptionFactory']['registerDescriptionCallback'](_0x20e6d4=>{if('insertion'!=_0x20e6d4['type']&&'deletion'!=_0x20e6d4['type']&&'attribute'!=_0x20e6d4['type'])return;const _0x4846ea=_0x20e6d4['getContainedElement']();if(null==_0x4846ea)return;if(!_0x4846ea['is']('element','bookmark'))return;const _0xd8d0a3=_0x4846ea['getAttribute']('bookmarkId');if('insertion'==_0x20e6d4['type'])return{'type':'insertion','content':c(_0x301dc5,'*Insert:*\x20%0','\x22'+_0xd8d0a3+'\x22\x20'+c(_0x301dc5,'ELEMENT_BOOKMARK'))};if('deletion'==_0x20e6d4['type'])return{'type':'deletion','content':c(_0x301dc5,'*Remove:*\x20%0','\x22'+_0xd8d0a3+'\x22\x20'+c(_0x301dc5,'ELEMENT_BOOKMARK'))};const {data:_0x44d072}=_0x20e6d4;if(!_0x44d072||'bookmarkId'!=_0x44d072['key'])return;return{'type':'format','content':c(_0x301dc5,'*Set\x20bookmark:*\x20%0','\x22'+_0x44d072['newValue']+'\x22')};}));}}class J extends _0x51821d{['afterInit'](){const _0x5556d1=this['editor'];_0x5556d1['plugins']['has']('CaseChange')&&(_0x5556d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5556d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5556d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x51821d{['afterInit'](){const _0x66f335=this['editor'];_0x66f335['commands']['get']('ckbox')&&_0x66f335['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x51821d{['afterInit'](){const _0x48f080=this['editor'];if(!_0x48f080['plugins']['has']('CodeBlock'))return;const _0x356f83=_0x48f080['plugins']['get']('TrackChangesEditing'),_0x59eb98=_0x48f080['locale'],_0x50310b=_0x48f080['config']['get']('codeBlock')['languages'],_0xfa1f7f=_0x48f080['commands']['get']('codeBlock');_0x356f83['enableCommand']('indentCodeBlock'),_0x356f83['enableCommand']('outdentCodeBlock'),_0x356f83['enableCommand']('codeBlock',(_0x10fb0a,_0xd1de1d={})=>{const _0x2d3396=_0x48f080['model'],_0x325462=_0x48f080['model']['document']['selection'],_0x4d5317=_0xd1de1d&&void 0x0!==_0xd1de1d['forceValue']?_0xd1de1d['forceValue']:!_0xfa1f7f['value'];let _0x22b5f6;_0xd1de1d['language']||(_0xd1de1d['language']=_0x50310b[0x0]['language']),_0x22b5f6=_0x4d5317?Array['from'](_0x325462['getSelectedBlocks']())['filter'](_0x46bf4d=>eo(_0x46bf4d)||function(_0x3abd10,_0x1baae0){if(_0x3abd10['is']('rootElement')||_0x1baae0['isLimit'](_0x3abd10))return!0x1;return _0x1baae0['checkChild'](_0x3abd10['parent'],'codeBlock');}(_0x46bf4d,_0x2d3396['schema'])):Array['from'](_0x325462['getSelectedBlocks']())['filter'](_0x24e3a4=>eo(_0x24e3a4));const _0x140f39=to(_0x22b5f6,_0x2d3396);_0x2d3396['change'](()=>{for(const _0x579c15 of _0x140f39)_0x356f83['markBlockFormat'](_0x579c15,{'commandName':'codeBlock','commandParams':[{..._0xd1de1d,'forceValue':_0x4d5317}],'formatGroupId':'blockName'});});}),(_0x356f83['descriptionFactory']['registerElementLabel']('codeBlock',_0x3262f9=>c(_0x59eb98,'ELEMENT_CODE_BLOCK',_0x3262f9)),_0x356f83['descriptionFactory']['registerDescriptionCallback'](_0x136c75=>{if('formatBlock'!=_0x136c75['type'])return;const _0x327ae2=_0x59eb98['t'],{data:_0xb1cec2}=_0x136c75;if(!_0xb1cec2||'codeBlock'!=_0xb1cec2['commandName'])return;const _0x3e19ec=_0xb1cec2['commandParams'][0x0]['language'],_0x366efd=_0x327ae2(_0x50310b['find'](_0x2aa9de=>_0x2aa9de['language']===_0x3e19ec)['label'])['toLowerCase']();return _0xb1cec2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x59eb98,'*Set\x20format:*\x20%0',c(_0x59eb98,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x366efd+')')}:{'type':'format','content':c(_0x59eb98,'*Remove\x20format:*\x20%0',c(_0x59eb98,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x17f295){return'codeBlock'==_0x17f295['name'];}class q extends _0x51821d{['afterInit'](){const _0x5edcdb=this['editor'];if(!_0x5edcdb['plugins']['has']('CommentsEditing'))return;_0x5edcdb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x42bf66,_0x176ad7,_0x1f7dfe){const _0x29a8c9=[];for(const _0x4a7a71 of _0x176ad7['getItems']())_0x4a7a71['hasAttribute'](_0x42bf66)&&_0x29a8c9['push'](_0x1f7dfe['createRangeOn'](_0x4a7a71));return _0x29a8c9;}function Fe(_0x4f9de9,_0x341a30,{showActiveMarker:_0x5132ef=!0x0}={}){const _0x18036d=_0x4f9de9['plugins']['get']('TrackChangesEditing');return(_0xa280a4,_0x3febc7,_0x4a1b77)=>{if(!_0x4a1b77['consumable']['test'](_0x3febc7['markerRange'],_0xa280a4['name']))return;const _0x339a93=_0x3febc7['markerRange']['getWalker'](),_0x4cbfe8=_0x3febc7['markerRange']['start'],_0x63dac1=_0x4f9de9['model']['schema'];let _0x17eb88=null,_0x492bb7=null,_0x5d12a5=!0x1,_0x82e41e=!0x1;for(const _0x2415c6 of _0x339a93){const _0x17fb40=_0x2415c6['item'];_0x5d12a5=_0x5d12a5||_0x63dac1['isContent'](_0x17fb40);const _0x355db4=_0x4a1b77['mapper']['toViewElement'](_0x17fb40);if(_0x355db4&&_0x355db4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2415c6['type']&&(_0x63dac1['isBlock'](_0x17fb40)&&!_0x63dac1['isLimit'](_0x17fb40)&&(_0x17fb40['nextSibling']||_0x4cbfe8['isAtEnd']?_0x17eb88&&_0x17eb88['parent']==_0x17fb40||(_0x17eb88=_0x17fb40,_0x48384a(_0x2415c6['previousPosition']),_0x82e41e=!0x0):_0x492bb7=_0x492bb7||_0x2415c6['previousPosition']));}function _0x48384a(_0xf82362){const {authorId:_0x1aa29c}=_0x18036d['_splitMarkerName'](_0x3febc7['markerName']),_0x47830f=_0x4a1b77['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x341a30,'data-author-id':_0x1aa29c}),_0x122e94=_0x4a1b77['mapper']['toViewPosition'](_0xf82362);_0x5132ef&&_0x18036d['activeMarkers']['includes'](_0x3febc7['markerName'])&&_0x4a1b77['writer']['addClass']('ck-suggestion-marker--active',_0x47830f),_0x4a1b77['writer']['insert'](_0x122e94,_0x47830f),_0x4a1b77['mapper']['bindElementToMarker'](_0x47830f,_0x3febc7['markerName']);}_0x5d12a5||_0x82e41e||!_0x492bb7||_0x48384a(_0x492bb7);};}class z extends _0x51821d{static get['requires'](){return[_0x34e06b];}['init'](){const _0x53ab0e=this['editor'],_0x523752=_0x53ab0e['plugins']['get']('TrackChangesEditing');_0x523752['enableCommand']('delete');const _0x3c9d19=_0x53ab0e['commands']['get']('deleteForward');_0x523752['enableCommand']('deleteForward',(_0x3f4750,_0x581a47={})=>{const _0xaade45=_0x53ab0e['model']['createSelection'](_0x53ab0e['model']['document']['selection']);_0xaade45['isCollapsed']&&_0x53ab0e['model']['modifySelection'](_0xaade45,{'direction':'forward','unit':_0x581a47['unit']});const _0x135bfb=_0xaade45['getFirstRange'](),_0x39f2d4=_0x32c262['fromRange'](_0x135bfb);let _0x4c5950;_0x3f4750(_0x581a47),_0x4c5950='$graveyard'==_0x39f2d4['root']['rootName']?_0x53ab0e['model']['createRange'](_0x135bfb['start']):_0x53ab0e['model']['createRange'](_0x39f2d4['start'],_0x39f2d4['end']),_0x39f2d4['detach'](),_0x53ab0e['model']['enqueueChange'](_0x3c9d19['buffer']['batch'],_0xb96a51=>{_0x3c9d19['buffer']['lock'](),_0xb96a51['setSelection'](_0xb96a51['createRange'](_0x4c5950['end'])),_0x3c9d19['buffer']['unlock']();});}),_0x53ab0e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x53ab0e,'merge'),{'priority':'high'}),_0x53ab0e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4f9f76,_0x372ed8,_0x6bdb0c)=>{_0x6bdb0c['options']['showSuggestionHighlights']&&Fe(_0x53ab0e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4f9f76,_0x372ed8,_0x6bdb0c);},{'priority':'high'}),_0x53ab0e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5e446f,_0x3e2246,_0x1432a5)=>{const _0x1626af=_0x1432a5['mapper']['markerNameToElements'](_0x3e2246['markerName']);if(_0x1626af){for(const _0x4a4fdf of _0x1626af)_0x4a4fdf['is']('uiElement')&&(_0x1432a5['mapper']['unbindElementFromMarkerName'](_0x4a4fdf,_0x3e2246['markerName']),_0x1432a5['writer']['remove'](_0x4a4fdf));}},{'priority':'high'});}}class W extends _0x51821d{['afterInit'](){const _0x165870=this['editor'];if(!_0x165870['plugins']['has']('ListEditing'))return;const _0x1c4972=_0x165870['locale'],_0x225804=_0x165870['plugins']['get']('TrackChangesEditing'),_0x2ac509=_0x165870['plugins']['has']('TodoListEditing'),_0x2e0bdc=!!_0x165870['config']['get']('list.multiBlock');function _0x543324(_0x2268a5){return{'type':'format','content':''+c(_0x1c4972,'*Set\x20format:*\x20%0',_0x2268a5)};}function _0x169950(_0x4d17d9){return{'type':'format','content':''+c(_0x1c4972,'*Remove\x20format:*\x20%0',_0x4d17d9)};}_0x225804['enableDefaultAttributesIntegration']('numberedList'),_0x225804['enableDefaultAttributesIntegration']('bulletedList'),_0x225804['enableDefaultAttributesIntegration']('customNumberedList'),_0x225804['enableDefaultAttributesIntegration']('customBulletedList'),_0x225804['enableDefaultAttributesIntegration']('indentList'),_0x225804['enableDefaultAttributesIntegration']('outdentList'),_0x225804['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x225804['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x225804['registerBlockAttribute']('listItemId'),_0x225804['registerBlockAttribute']('listType'),_0x225804['registerBlockAttribute']('listIndent'),_0x2e0bdc&&(_0x225804['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x225804['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2ac509&&(_0x225804['enableDefaultAttributesIntegration']('todoList'),_0x225804['enableDefaultAttributesIntegration']('checkTodoList'),_0x225804['registerBlockAttribute']('todoListChecked'),_0x225804['descriptionFactory']['registerDescriptionCallback'](_0x18dbd0=>{const {data:_0x5b0d89}=_0x18dbd0;if(_0x5b0d89&&'todoListChecked'==_0x5b0d89['key'])return{'type':'format','content':_0x5b0d89['newValue']?c(_0x1c4972,'*Check\x20item*'):c(_0x1c4972,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xb2693d=>{if(_0xb2693d['batch']['isUndo'])return!0x1;let _0xcf6721=!0x1;const _0x40cf43=_0x225804['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35fc1b=>'todoListChecked'===_0x225804['_getAttributeKey'](_0x35fc1b));for(const _0x228789 of _0x40cf43){'todo'!=_0x228789['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x225804['_findSuggestions'](_0x228789['getFirstRange'](),'attribute')['find'](_0x3227a6=>'listType'===_0x225804['_getAttributeKey'](_0x3227a6['suggestion']))||(_0xb2693d['removeMarker'](_0x228789['getFirstMarker']()),_0xcf6721=!0x0));}return _0xcf6721;})),_0x225804['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x1c4972,'FORMAT_INDENT'));const _0x37576f={'type':'format','content':''};_0x225804['descriptionFactory']['registerDescriptionCallback'](_0x35021b=>{const {data:_0x3fed3e}=_0x35021b;if(!_0x3fed3e||'listType'!=_0x3fed3e['key'])return;let _0x7a0d89=_0x35021b['head'];for(;_0x7a0d89;){if(_0x7a0d89['data']&&(('listStyle'==_0x7a0d89['data']['key']||'listMarkerStyle'==_0x7a0d89['data']['key'])&&(_0x7a0d89['data']['newValue']&&'default'!=_0x7a0d89['data']['newValue']||'default'!=_0x7a0d89['data']['oldValue']&&!_0x3fed3e['newValue'])||!_0x2e0bdc&&_0x7a0d89['data']['key']==u))return _0x37576f;_0x7a0d89=_0x7a0d89['next'];}if(null==_0x3fed3e['newValue'])switch(_0x3fed3e['oldValue']){case'bulleted':return _0x169950(c(_0x1c4972,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x169950(c(_0x1c4972,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x169950(c(_0x1c4972,'ELEMENT_TODO_LIST'));}switch(_0x3fed3e['newValue']){case'bulleted':return _0x543324(c(_0x1c4972,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x543324(c(_0x1c4972,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x543324(c(_0x1c4972,'ELEMENT_TODO_LIST'));}}),_0x225804['descriptionFactory']['registerDescriptionCallback'](_0x534736=>{const {data:_0x3c2f49}=_0x534736;if(_0x3c2f49&&'listIndent'==_0x3c2f49['key'])return null==_0x3c2f49['newValue']||null==_0x3c2f49['oldValue']&&0x0==_0x3c2f49['newValue']?_0x37576f:void 0x0;}),_0x225804['descriptionFactory']['registerDescriptionCallback'](_0x5c86a4=>{if('attribute'!=_0x5c86a4['type'])return;const {data:_0x49f048}=_0x5c86a4;if(!_0x49f048||'listItemId'!=_0x49f048['key'])return;const _0xd867f3=Te(_0x5c86a4);return'newValue'==_0xd867f3?{'type':'format','content':c(_0x1c4972,'*Merge:*\x20list\x20item')}:'oldValue'==_0xd867f3?{'type':'format','content':c(_0x1c4972,'*Split:*\x20list\x20item')}:_0x37576f;}),_0x165870['model']['document']['registerPostFixer'](_0x17cb46=>this['listItemIdFixer'](_0x17cb46)),_0x165870['model']['document']['registerPostFixer'](_0x3d78bd=>this['noTrackChangesFixer'](_0x3d78bd)),_0x165870['model']['document']['on']('change:data',(_0x1fa9e6,_0x1888e1)=>{if(_0x1888e1['isUndo']||!_0x1888e1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x249cee){if(_0x249cee['batch']['isUndo']||!_0x249cee['batch']['isLocal'])return!0x1;let _0x11f472=!0x1;const _0x1464a6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ffed7=>_0x4ffed7['data']&&'listItemId'==_0x4ffed7['data']['key'])['filter'](_0x194052=>_0x194052['data']['newValue']&&_0x194052['data']['oldValue']);for(const _0x1c3c1b of _0x1464a6)Te(_0x1c3c1b)||(_0x249cee['removeMarker'](_0x1c3c1b['getFirstMarker']()),_0x11f472=!0x0);return _0x11f472;}['noTrackChangesFixer'](_0x178d2c){if(_0x178d2c['batch']['isUndo']||!_0x178d2c['batch']['isLocal'])return!0x1;const _0x173b9b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x173b9b['trackChangesCommand']['value'])return!0x1;let _0x46c202=!0x1;const _0x1e5ba5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5f0d0c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3a8009=>'attribute'==_0x3a8009['type'])['filter'](_0x5386d3=>_0x1e5ba5['includes'](_0x5386d3['attributeKey']));if(0x0==_0x5f0d0c['length'])return _0x46c202;for(const _0x42e473 of _0x5f0d0c){const _0x1f0af3=_0x173b9b['_findSuggestions'](_0x42e473['range'],'attribute')['filter'](_0x3b6f1a=>!_0x3b6f1a['meta']['isNextTo'])['map'](_0x187535=>_0x187535['suggestion'])['filter'](_0x412ce5=>{const _0x336f45=_0x173b9b['_getAttributeKey'](_0x412ce5);return _0x1e5ba5['includes'](_0x336f45);});if(_0x1f0af3['length']){for(const _0x1c01b9 of _0x1f0af3)_0x178d2c['removeMarker'](_0x1c01b9['getFirstMarker']());_0x46c202=!0x0;}}return _0x46c202;}['assureChains'](){const _0xb6a9bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdbc55e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x46fbe7;const _0x54888c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2c1b4b=>{if(_0x2c1b4b['data']['oldRange']||!_0x2c1b4b['data']['newRange'])return null;if(!_0x2c1b4b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3251ff}=_0xb6a9bf['_splitMarkerName'](_0x2c1b4b['name']);if(!_0xb6a9bf['hasSuggestion'](_0x3251ff))return null;const _0x19a463=_0xb6a9bf['getSuggestion'](_0x3251ff);return _0xdbc55e['includes'](_0x19a463['data']['key']);})['map'](_0x542e8d=>{const {id:_0x398b5f}=_0xb6a9bf['_splitMarkerName'](_0x542e8d['name']),_0x596479=_0xb6a9bf['getSuggestion'](_0x398b5f);return _0x46fbe7=_0x596479['attributes']['groupId'],_0x596479['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x54888c['size'])return;const _0x5c6fc3=_0xb6a9bf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x99ea8=>'attribute'==_0x99ea8['type']&&_0x99ea8['data']&&_0xdbc55e['includes'](_0x99ea8['data']['key'])&&_0x99ea8['attributes']['groupId']!=_0x46fbe7)['map'](_0x259279=>({'listItem':_0x259279['getFirstRange']()['start']['nodeAfter'],'groupId':_0x259279['attributes']['groupId']})),_0x4756d6=new Set();for(const {groupId:_0x2dd2ce,listItem:_0xb5e578}of _0x5c6fc3)_0x54888c['has'](_0xb5e578)&&_0x4756d6['add'](_0x2dd2ce);for(const _0x40dc0d of _0xb6a9bf['getSuggestions']())_0x4756d6['has'](_0x40dc0d['attributes']['groupId'])&&_0x40dc0d['setAttribute']('groupId',_0x46fbe7);}['_supportLegacySuggestions'](){const _0x4323d4=this['editor'],_0x79a36f=_0x4323d4['locale'],_0x41d617=_0x4323d4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x41d617['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x252402,_0x35b59f){const _0x59d9d4=[];for(let _0xe7d44f of _0x252402)_0xe7d44f['start']['nodeAfter']===_0xe7d44f['end']['parent']&&(_0xe7d44f=_0x4323d4['model']['createRange'](_0x4323d4['model']['createPositionAt'](_0xe7d44f['start']['nodeAfter'],0x0))),_0x59d9d4['push'](_0xe7d44f);_0x4323d4['model']['change'](_0x367a78=>{const _0x5b79d6=_0x4323d4['model']['document']['selection'],_0x55cf60=Array['from'](_0x5b79d6['getRanges']())['map'](_0xab2c92=>_0x32c262['fromRange'](_0xab2c92));_0x367a78['setSelection'](_0x59d9d4),_0x4323d4['commands']['get'](_0x35b59f['commandName'])['refresh'](),_0x35b59f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4323d4['execute'](_0x35b59f['commandName'],..._0x35b59f['commandParams']),_0x367a78['setSelection'](_0x55cf60);for(const _0x4b4c66 of _0x55cf60)_0x4b4c66['detach']();});}),_0x41d617['descriptionFactory']['registerElementLabel'](function(_0x1edf8d){const _0x2f2532=!_0x4323d4['model']['schema']['isObject'](_0x1edf8d),_0xac8764=_0x1edf8d['previousSibling'],_0xdeb344=_0x1edf8d['nextSibling'],_0x55784a=_0x1edf8d['getAttribute']('listItemId'),_0x1c5bc6=!_0xac8764||_0xac8764['getAttribute']('listItemId')!==_0x55784a,_0x25f729=!_0xdeb344||_0xdeb344['getAttribute']('listItemId')!==_0x55784a;return _0x2f2532&&Boolean(_0x55784a)&&_0x1c5bc6&&_0x25f729;},_0x4031af=>c(_0x79a36f,'ELEMENT_LIST_ITEM',_0x4031af));}['_registerLegacyDescription'](){const _0x53b8dc=this['editor'],_0x14d2f5=_0x53b8dc['locale'];function _0x3155ff(_0x3f3053){const _0x3dda10=_0x53b8dc['commands']['get']('bulletedList')['value'],_0x645dc2=_0x53b8dc['commands']['get']('numberedList')['value'];return'numberedList'===_0x3f3053?_0x3dda10:_0x645dc2;}_0x53b8dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x25acfe){if('formatBlock'!=_0x25acfe['type'])return;const {data:_0x5395cc}=_0x25acfe;if(!_0x5395cc)return;let _0x2db957,_0x152947,_0x5f5dd8,_0x367cdb;switch(_0x5395cc['commandName']){case'bulletedList':_0x5f5dd8=_0x5395cc['commandParams'][0x0]['forceValue'],_0x367cdb=_0x3155ff(_0x5395cc['commandName']),_0x2db957=_0x5f5dd8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x367cdb&&_0x53b8dc['config']['get']('list.multiBlock')||(_0x2db957='*Change\x20to:*\x20%0'),_0x152947={'type':'format','content':c(_0x14d2f5,_0x2db957,c(_0x14d2f5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5f5dd8=_0x5395cc['commandParams'][0x0]['forceValue'],_0x367cdb=_0x3155ff(_0x5395cc['commandName']),_0x2db957=_0x5f5dd8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x367cdb&&_0x53b8dc['config']['get']('list.multiBlock')||(_0x2db957='*Change\x20to:*\x20%0'),_0x152947={'type':'format','content':c(_0x14d2f5,_0x2db957,c(_0x14d2f5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2db957='*Indent:*\x20%0',_0x152947={'type':'format','content':c(_0x14d2f5,_0x2db957,c(_0x14d2f5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2db957=function(_0x461996){const _0x3f8c4e=_0x461996['getFirstRange']();let _0x44a0f2=_0x3f8c4e['start']['nodeAfter'];for(;_0x44a0f2&&_0x3f8c4e['containsItem'](_0x44a0f2);){if(_0x44a0f2['getAttribute']('listIndent')>0x0)return!0x1;_0x44a0f2=_0x44a0f2['nextSibling'];}return!0x0;}(_0x25acfe)?c(_0x14d2f5,'*Format:*\x20remove\x20from\x20%0',c(_0x14d2f5,function(_0x275c07){return'ELEMENT_'+_0x275c07['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x25acfe))):c(_0x14d2f5,'*Outdent:*\x20%0',c(_0x14d2f5,'ELEMENT_LIST_ITEM')),_0x152947={'type':'format','content':_0x2db957};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5395cc['multipleBlocks']&&(_0x2db957='*Merge:*\x20%0',_0x152947={'type':'deletion','content':c(_0x14d2f5,_0x2db957,c(_0x14d2f5,'ELEMENT_LIST_ITEM'))});}return _0x152947;});}}function Te(_0x59ed32){let _0x434e87=_0x59ed32['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x434e87;){const _0x28c2a8=_0x434e87['getAttribute']('listItemId');if(!_0x28c2a8)return!0x1;if(_0x28c2a8==_0x59ed32['data']['newValue'])return'newValue';if(_0x28c2a8==_0x59ed32['data']['oldValue'])return'oldValue';_0x434e87=_0x434e87['previousSibling'];}return!0x1;}class Se extends _0x51821d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x12af69=this['editor']['config']['get']('list.properties'),_0x28ac8f=this['editor']['plugins']['get']('TrackChangesEditing');_0x12af69['styles']&&(_0x28ac8f['enableDefaultAttributesIntegration']('listStyle'),_0x28ac8f['registerBlockAttribute']('listStyle')),_0x12af69['reversed']&&(_0x28ac8f['enableDefaultAttributesIntegration']('listReversed'),_0x28ac8f['registerBlockAttribute']('listReversed')),_0x12af69['startIndex']&&(_0x28ac8f['enableDefaultAttributesIntegration']('listStart'),_0x28ac8f['registerBlockAttribute']('listStart'));const _0x30de1c={'type':'format','content':''};_0x28ac8f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x340ef7=this['editor']['locale'];_0x28ac8f['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x340ef7,'FORMAT_LIST_REVERSED')),_0x28ac8f['descriptionFactory']['registerDescriptionCallback'](_0x84fc08=>{const {data:_0x37db4b}=_0x84fc08;if(_0x37db4b&&'listReversed'==_0x37db4b['key'])return null==_0x37db4b['newValue']||0x0==_0x37db4b['newValue']&&null==_0x37db4b['oldValue']?_0x30de1c:void 0x0;}),_0x28ac8f['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x340ef7,'FORMAT_LIST_START')),_0x28ac8f['descriptionFactory']['registerDescriptionCallback'](_0x189803=>{const {data:_0x304609}=_0x189803;if(_0x304609&&'listStart'==_0x304609['key'])return null==_0x304609['newValue']||0x1==_0x304609['newValue']&&null==_0x304609['oldValue']?_0x30de1c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1febc8=>{if(_0x1febc8['batch']['isUndo'])return!0x1;let _0x30d147=!0x1;const _0x186d19=_0x28ac8f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49a645=>{const _0x428dc5=_0x28ac8f['_getAttributeKey'](_0x49a645);return'listStart'==_0x428dc5||'listReversed'==_0x428dc5;});for(const _0x5c8a26 of _0x186d19){const _0x166f27=_0x5c8a26['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x166f27||'customNumbered'==_0x166f27)continue;_0x28ac8f['_findSuggestions'](_0x5c8a26['getFirstRange'](),'attribute')['find'](_0x5d0ec3=>'listType'==_0x28ac8f['_getAttributeKey'](_0x5d0ec3['suggestion']))||(_0x1febc8['removeMarker'](_0x5c8a26['getFirstMarker']()),_0x30d147=!0x0);}return _0x30d147;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x13d29b){const _0x4e527f=this['editor']['locale'],{data:_0x1a0883}=_0x13d29b,_0x2001d2={'type':'format','content':''};if(!_0x1a0883||'listStyle'!=_0x1a0883['key'])return;if(!_0x1a0883['oldValue'])return'default'==_0x1a0883['newValue']?_0x2001d2:{'type':'format','content':''+c(_0x4e527f,'*Set\x20format:*\x20%0',c(_0x4e527f,this['_getTranslationKeyForListStyle'](_0x1a0883['newValue'])))};if(!_0x1a0883['newValue']){if('default'==_0x1a0883['oldValue'])return _0x2001d2;let _0x3faf00=_0x13d29b['head'];for(;_0x3faf00;){if(_0x3faf00['data']&&'listType'==_0x3faf00['data']['key']&&_0x3faf00['data']['newValue'])return _0x2001d2;_0x3faf00=_0x3faf00['next'];}return{'type':'format','content':''+c(_0x4e527f,'*Remove\x20format:*\x20%0',c(_0x4e527f,this['_getTranslationKeyForListStyle'](_0x1a0883['oldValue'])))};}if('default'!=_0x1a0883['newValue'])return{'type':'format','content':''+c(_0x4e527f,'*Set\x20format:*\x20%0',c(_0x4e527f,this['_getTranslationKeyForListStyle'](_0x1a0883['newValue'])))};let _0x20bf1d=_0x13d29b['head'];for(;_0x20bf1d;){if(_0x20bf1d['data']&&'listType'==_0x20bf1d['data']['key']&&_0x20bf1d['data']['newValue']&&_0x20bf1d['data']['oldValue'])return _0x2001d2;_0x20bf1d=_0x20bf1d['next'];}return{'type':'format','content':c(_0x4e527f,'*Set\x20format:*\x20%0',c(_0x4e527f,'ELEMENT_'+_0x13d29b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1a814c=this['editor'],_0x3be880=_0x1a814c['locale'];_0x1a814c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ea2e2=>{if('formatBlock'!=_0x5ea2e2['type'])return;const {data:_0x1aacef}=_0x5ea2e2;if(!_0x1aacef)return;let _0x226bf0,_0xd914;switch(_0x1aacef['commandName']){case'listStyle':_0x226bf0='*Change\x20to:*\x20%0',_0xd914={'type':'format','content':c(_0x3be880,_0x226bf0,c(_0x3be880,this['_getTranslationKeyForListStyle'](_0x1aacef['commandParams'][0x0]['type'])))};break;case'listReversed':_0x226bf0=_0x1aacef['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xd914={'type':'format','content':c(_0x3be880,_0x226bf0)};break;case'listStart':_0x226bf0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xd914={'type':'format','content':c(_0x3be880,_0x226bf0,_0x1aacef['commandParams'][0x0]['startIndex'])};}return _0xd914;});}['_getTranslationKeyForListStyle'](_0x4d382c){return'ELEMENT_'+function(_0x32e6b4){if(_e['includes'](_0x32e6b4))return'bulleted';if(Re['includes'](_0x32e6b4))return'numbered';return null;}(_0x4d382c)['toUpperCase']()+'_LIST_'+_0x4d382c['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x51821d{['afterInit'](){const _0x2c8191=this['editor'];_0x2c8191['commands']['get']('emoji')&&_0x2c8191['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x51821d{static get['requires'](){return[_0x40723b];}['init'](){const _0x37a277=this['editor'],_0x20a417=_0x37a277['plugins']['get']('TrackChangesEditing'),_0x1128c1=_0x37a277['commands']['get']('enter');_0x20a417['enableCommand']('enter',()=>{_0x37a277['model']['change'](_0x4814d1=>{const _0x5e55f8=_0x37a277['model']['document']['selection'],_0x1a023d=_0x5e55f8['getFirstPosition'](),_0x4732f4=_0x32c262['fromRange'](_0x5e55f8['getFirstRange']());if(_0x1128c1['enterBlock'](_0x4814d1)){const _0x114d0b=_0x37a277['model']['createPositionAt'](_0x1a023d['parent']['nextSibling'],0x0),_0x5e3709=_0x4814d1['createRange'](_0x1a023d,_0x114d0b);_0x20a417['markInsertion'](_0x5e3709);}else _0x4814d1['setSelection'](_0x4814d1['createRange'](_0x4732f4['end']));_0x4732f4['detach'](),_0x1128c1['fire']('afterExecute',{'writer':_0x4814d1});});}),_0x37a277['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x37a277,'split'),{'priority':'high'}),_0x37a277['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2bf7c8,_0x3e1235,_0xad073f)=>{const _0x53d74c=_0xad073f['mapper']['markerNameToElements'](_0x3e1235['markerName']);if(_0x53d74c){for(const _0x5becf3 of _0x53d74c)_0x5becf3['hasClass']('ck-suggestion-marker-split')&&(_0xad073f['mapper']['unbindElementFromMarkerName'](_0x5becf3,_0x3e1235['markerName']),_0xad073f['writer']['remove'](_0x5becf3));}},{'priority':'high'}),_0x37a277['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x8beb3f,_0x1acab4,_0x49dea6)=>{_0x49dea6['options']['showSuggestionHighlights']&&Fe(_0x37a277,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x8beb3f,_0x1acab4,_0x49dea6);},{'priority':'high'});}}class Z extends _0x51821d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x567466=this['editor']['plugins']['get']('TrackChangesEditing');_0x567466['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x567466['enableCommand']('findNext'),_0x567466['enableCommand']('findPrevious'),_0x567466['enableCommand']('replace'),_0x567466['enableCommand']('replaceAll');}['handleFindCommand'](_0xfde7b3,_0x575afd,_0x202656={}){const _0x2360c4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xfde7b3(_0x1d1e80=>{let _0x46099e=('string'==typeof _0x575afd?_0x2360c4['findByTextCallback'](_0x575afd,_0x202656):_0x575afd)(_0x1d1e80);Array['isArray'](_0x46099e)&&(_0x46099e={'results':_0x46099e,'searchText':'string'==typeof _0x575afd?_0x575afd:''});const _0x147a81=_0x46099e['results']['filter'](_0x5ec82d=>!0x1===this['_isInDeletionRange'](_0x5ec82d,_0x1d1e80['item']));return{..._0x46099e,'results':_0x147a81};},_0x202656);}['_isInDeletionRange'](_0x2d5fd5,_0xba2031){const _0x5edecc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xba2031,_0x2d5fd5['start']),this['editor']['model']['createPositionAt'](_0xba2031,_0x2d5fd5['end']));for(const _0xfb82be of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5edecc['getIntersection'](_0xfb82be['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 _0x51821d{['afterInit'](){const _0x6a444e=this['editor']['locale'],_0x3126fb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x16d53d,commandName:_0x15dc0c}of ro)this['editor']['plugins']['has'](_0x16d53d)&&(_0x3126fb['enableDefaultAttributesIntegration'](_0x15dc0c),_0x3126fb['registerInlineAttribute'](_0x15dc0c));_0x3126fb['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x6a444e,'FORMAT_FONT_SIZE')),_0x3126fb['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x6a444e,'FORMAT_FONT_FAMILY')),_0x3126fb['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x6a444e,'FORMAT_FONT_COLOR')),_0x3126fb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x6a444e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x419d68=this['editor'],_0x476b62=_0x419d68['locale'];_0x419d68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47396c=>{const _0x50f22f=_0x476b62['t'];if('formatInline'!=_0x47396c['type'])return;const {data:_0x8c6478}=_0x47396c;if(null!=_0x8c6478){if('fontSize'==_0x8c6478['commandName']){const _0x421dc8=_0x8c6478['commandParams'][0x0]['value'];if(_0x421dc8){const _0x2a85ff=_0x50f22f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x325c46=>_0x325c46['model']==_0x421dc8)['title'])['toLowerCase']();return{'type':'format','content':c(_0x476b62,'*Set\x20font\x20size:*\x20%0',_0x2a85ff)};}return{'type':'format','content':c(_0x476b62,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x8c6478['commandName']){const _0x86878e=_0x8c6478['commandParams'][0x0]['value'];return _0x86878e?{'type':'format','content':c(_0x476b62,'*Set\x20font\x20family:*\x20%0',_0x86878e)}:{'type':'format','content':c(_0x476b62,'*Reset\x20font\x20family*')};}if('fontColor'==_0x8c6478['commandName']){const _0x547670=_0x8c6478['commandParams'][0x0]['value'];if(_0x547670){const _0x37c09f=_0x74db61(this['editor']['config']['get']('fontColor.colors'))['find'](_0x263c53=>_0x263c53['model']==_0x547670);let _0xb5cbd5=_0x547670,_0x484f83='';return _0x37c09f&&(_0xb5cbd5=_0x37c09f['label'],_0x484f83=_0x50f22f(_0xb5cbd5)['toLowerCase']()),{'type':'format','content':c(_0x476b62,'*Set\x20font\x20color:*\x20%0',_0x484f83)['trim'](),'color':{'value':_0x547670,'title':_0x484f83||_0xb5cbd5}};}return{'type':'format','content':c(_0x476b62,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x8c6478['commandName']){const _0x578d5e=_0x8c6478['commandParams'][0x0]['value'];if(_0x578d5e){const _0x55aac2=_0x74db61(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4a35a5=>_0x4a35a5['model']==_0x578d5e);let _0x29486b=_0x578d5e,_0x44474c='';return _0x55aac2&&(_0x29486b=_0x55aac2['label'],_0x44474c=_0x50f22f(_0x29486b)['toLowerCase']()),{'type':'format','content':c(_0x476b62,'*Set\x20font\x20background\x20color:*\x20%0',_0x44474c)['trim'](),'color':{'value':_0x578d5e,'title':_0x44474c||_0x29486b}};}return{'type':'format','content':c(_0x476b62,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x51821d{['afterInit'](){const _0x206d13=this['editor'],_0x486224=_0x206d13['plugins']['get']('TrackChangesEditing'),_0x43dad2=_0x206d13['commands']['get']('copyFormat'),_0x125a12=_0x206d13['commands']['get']('pasteFormat');_0x43dad2&&_0x125a12&&(_0x486224['enableDefaultAttributesIntegration']('pasteFormat'),_0x486224['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xbbb23c=this['editor'],_0x4c090e=_0xbbb23c['locale'];_0xbbb23c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x374de6=>{if('formatBlock'!=_0x374de6['type']&&'formatInline'!=_0x374de6['type'])return;const {data:_0x4b130e}=_0x374de6;if(_0x4b130e&&'pasteFormat'===_0x4b130e['commandName']){const _0x3e1955=[],_0x1863e9=_0x4b130e['commandParams'][0x0];for(const [_0xdd96cd,_0x1cf4e8]of Object['entries'](_0x1863e9))_0x3e1955['push'](so(_0xbbb23c,_0xdd96cd,_0x1cf4e8));return _0x3e1955['length']?{'type':'format','content':c(_0x4c090e,'*Set\x20format\x20to:*\x20%0',_0x3e1955['join'](',\x20'))}:{'type':'format','content':c(_0x4c090e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4dbbcf,_0x2c4a57,_0x4e2988){const _0x15e4dc=_0x4dbbcf['locale']['t'],_0xbee900=_0x2c4a57['split'](/(?=[A-Z])/)['join']('\x20'),_0x189046=_0x15e4dc(_0xbee900['charAt'](0x0)['toUpperCase']()+_0xbee900['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4e2988)return _0x189046;if('fontColor'===_0x2c4a57||'fontBackgroundColor'===_0x2c4a57){const _0x46a4ee=_0x74db61(_0x4dbbcf['config']['get']('fontColor.colors'))['find'](_0x2f0d55=>_0x2f0d55['model']==_0x4e2988);return _0x189046+'\x20('+(_0x46a4ee?_0x15e4dc(_0x46a4ee['label'])['toLowerCase']():_0x4e2988)+')';}if('fontSize'===_0x2c4a57&&isNaN(parseFloat(_0x4e2988))){const _0x167500=_0x4dbbcf['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4dbbcf['config']['get']('fontSize.options'))['find'](_0x375660=>_0x375660['model']==_0x4e2988);return _0x189046+'\x20('+(_0x167500?_0x15e4dc(_0x167500['title'])['toLowerCase']():_0x4e2988)+')';}return _0x189046+'\x20('+_0x4e2988+')';}class nt extends _0x51821d{['_headingOptions'];['afterInit'](){const _0x2e07f0=this['editor'];if(!_0x2e07f0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2e07f0['config']['get']('heading.options');const _0x3f96d1=_0x2e07f0['locale'],_0xecd926=_0x2e07f0['plugins']['get']('TrackChangesEditing');_0xecd926['enableDefaultAttributesIntegration']('heading');for(const _0x221bff of this['_headingOptions'])'paragraph'!=_0x221bff['model']&&_0xecd926['descriptionFactory']['registerElementLabel'](_0x221bff['model'],_0x291870=>{const _0x4252d0=this['_getHeadingLevel'](_0x221bff['model']);return null!==_0x4252d0?_0x101908(_0x291870,_0x4252d0):_0x3ec5f5(_0x291870,_0x221bff['title']);});function _0x101908(_0x599502,_0x4b9f69){return c(_0x3f96d1,'ELEMENT_HEADING',[_0x599502,_0x4b9f69]);}function _0x3ec5f5(_0x1fc00e,_0x550456){return c(_0x3f96d1,'ELEMENT_HEADING_CUSTOM',[_0x1fc00e,_0x550456]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50cfa4=this['editor'],_0x13761d=_0x50cfa4['locale'];function _0x4fcafd(_0x4ab758,_0x268dcc){return c(_0x13761d,'ELEMENT_HEADING_CUSTOM',[_0x4ab758,_0x268dcc]);}_0x50cfa4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf2a115=>{if('formatBlock'!=_0xf2a115['type'])return;const {data:_0x309de8}=_0xf2a115;if(_0x309de8&&'heading'==_0x309de8['commandName']){const _0x1c1d69=_0x309de8['commandParams'][0x0]['value'],_0xa739b2=this['_getHeadingLevel'](_0x1c1d69);if(null!==_0xa739b2)return{'type':'format','content':c(_0x13761d,'*Change\x20to:*\x20%0',(_0x381b6a=0x1,_0x3f973f=_0xa739b2,c(_0x13761d,'ELEMENT_HEADING',[_0x381b6a,_0x3f973f])))};const _0x21055e=this['_headingOptions']['find'](_0x2f082b=>_0x2f082b['model']===_0x1c1d69)['title'];return{'type':'format','content':c(_0x13761d,'*Change\x20to:*\x20%0',_0x4fcafd(0x1,_0x21055e))};}var _0x381b6a,_0x3f973f;});}['_getHeadingLevel'](_0x25a5dd){const _0x543b44=_0x25a5dd['match'](/^heading(\d+)/);if(_0x543b44)return _0x543b44[0x1];const _0x22c57e=this['_headingOptions']?.['find'](_0x2b3a52=>_0x2b3a52['model']==_0x25a5dd);if(_0x22c57e&&_0x22c57e['view']){const _0x39b897=_0x22c57e['view'],_0x468a47=(_0x39b897['name']??_0x39b897)['match'](/^h(\d+)/);if(_0x468a47)return _0x468a47[0x1];}return null;}}class it extends _0x51821d{['afterInit'](){const _0x1011bd=this['editor'];if(!_0x1011bd['plugins']['has']('HighlightEditing'))return;const _0x2a8b30=_0x1011bd['plugins']['get']('TrackChangesEditing'),_0xf54bab=_0x1011bd['locale'];_0x2a8b30['enableDefaultAttributesIntegration']('highlight'),_0x2a8b30['registerInlineAttribute']('highlight'),_0x2a8b30['descriptionFactory']['registerAttributeLabel']('highlight',c(_0xf54bab,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57f7cc=this['editor'],_0x2c2edb=_0x57f7cc['locale'];_0x57f7cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x96dfc4=>{if('formatInline'!=_0x96dfc4['type'])return;const {data:_0x597375}=_0x96dfc4;if(_0x597375&&'highlight'==_0x597375['commandName']){const _0x372bad=_0x2c2edb['t'],_0x2c9064=_0x597375['commandParams'][0x0]['value'];if(_0x2c9064){const _0x503260=_0x57f7cc['config']['get']('highlight.options')['find'](_0x957d8c=>_0x957d8c['model']==_0x2c9064),_0x361324=_0x372bad(_0x503260['title'])['toLowerCase']();return{'type':'format','content':c(_0x2c2edb,'*Set\x20highlight:*\x20%0',_0x361324),'color':{'value':_0x503260['color'],'title':_0x503260['title']}};}return{'type':'format','content':c(_0x2c2edb,'*Remove\x20highlight*',c(_0x2c2edb,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x51821d{['afterInit'](){const _0x427680=this['editor'];if(!_0x427680['plugins']['has']('HorizontalLineEditing'))return;_0x427680['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3ef51b=_0x427680['plugins']['get']('TrackChangesEditing'),_0x43627a=_0x427680['locale'];_0x3ef51b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x478161=>c(_0x43627a,'ELEMENT_HORIZONTAL_LINE',_0x478161)),_0x427680['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x189f2c,{writer:_0x421892,options:_0x5d677a})=>{if(!_0x5d677a['showSuggestionHighlights'])return null;const _0xf788db=_0x421892['createContainerElement']('div'),_0x212db5=_0x421892['createEmptyElement']('hr');return _0x421892['addClass']('ck-horizontal-line',_0xf788db),_0x421892['insert'](_0x421892['createPositionAt'](_0xf788db,0x0),_0x212db5),_0xf788db;},'converterPriority':'high'});}}class ot extends _0x51821d{['afterInit'](){const _0x4c5035=this['editor'];if(!_0x4c5035['plugins']['has']('HtmlEmbed'))return;const _0x41f884=_0x4c5035['plugins']['get']('TrackChangesEditing'),_0x1fb13a=_0x4c5035['locale'];_0x41f884['descriptionFactory']['registerElementLabel']('rawHtml',_0x1d1466=>c(_0x1fb13a,'ELEMENT_HTML_EMBED',_0x1d1466)),_0x41f884['enableDefaultAttributesIntegration']('htmlEmbed'),_0x41f884['registerBlockAttribute']('value'),_0x41f884['descriptionFactory']['registerDescriptionCallback'](_0x7a1ac7=>{if('attribute'!=_0x7a1ac7['type'])return;const {data:_0x221fc4}=_0x7a1ac7;if(_0x221fc4&&'value'==_0x221fc4['key']&&_0x7a1ac7['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x380159=c(_0x1fb13a,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1fb13a,'*Change\x20%0\x20content*',_0x380159)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2072ea=this['editor'],_0x1a5bbc=_0x2072ea['locale'];_0x2072ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b2f67=>{if('formatBlock'!=_0x3b2f67['type'])return;const {data:_0x528a7e}=_0x3b2f67;if(_0x528a7e&&'htmlEmbed'==_0x528a7e['commandName']){const _0x77a070=c(_0x1a5bbc,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1a5bbc,'*Change\x20%0\x20content*',_0x77a070)};}});}}class rt extends _0x51821d{['afterInit'](){const _0x1529c8=this['editor'];if(!_0x1529c8['plugins']['has']('ImageEditing'))return;const _0x5aa452=_0x1529c8['plugins']['get']('TrackChangesEditing'),_0xb318f7=_0x1529c8['plugins']['get']('ImageUtils'),_0x591c1f=_0x1529c8['locale'];_0x5aa452['enableCommand']('insertImage'),_0x5aa452['descriptionFactory']['registerElementLabel']('imageBlock',_0x50a774=>c(_0x591c1f,'ELEMENT_IMAGE',_0x50a774)),_0x5aa452['descriptionFactory']['registerElementLabel']('imageInline',_0x239402=>c(_0x591c1f,'ELEMENT_INLINE_IMAGE',_0x239402)),_0x5aa452['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x591c1f,'ELEMENT_CAPTION')),_0x1529c8['plugins']['has']('ImageUploadEditing')&&_0x5aa452['enableCommand']('uploadImage'),_0x1529c8['plugins']['has']('ImageBlockEditing')&&_0x1529c8['plugins']['has']('ImageInlineEditing')&&(_0x5aa452['enableCommand']('imageTypeInline',(_0x320fa5,_0x30e36c)=>{const _0x5c9999=_0xb318f7['getClosestSelectedImageElement'](_0x1529c8['model']['document']['selection']);_0x1529c8['model']['change'](()=>{_0x5aa452['markBlockFormat'](_0x5c9999,{'commandName':'imageTypeInline','commandParams':[_0x30e36c]},[],'convertBlockImageToInline');});}),_0x5aa452['enableCommand']('imageTypeBlock',(_0x1ca0de,_0x39c56c)=>{_0x1529c8['model']['change'](_0x4ba6dc=>{let _0x98a88f=_0xb318f7['getClosestSelectedImageElement'](_0x1529c8['model']['document']['selection']),_0x4a5c10=_0x4ba6dc['createRangeOn'](_0x98a88f);const _0x2e67ad=_0x2650f9['fromPosition'](_0x4a5c10['start'],'toPrevious'),_0xd1143=_0x2650f9['fromPosition'](_0x4a5c10['end'],'toNext');_0x5aa452['forceDefaultExecution'](()=>_0x1ca0de(_0x39c56c)),_0x98a88f=_0xb318f7['getClosestSelectedImageElement'](_0x1529c8['model']['document']['selection']),_0x4a5c10=_0x4ba6dc['createRangeOn'](_0x98a88f);const _0x4e05a4=_0x4ba6dc['createRange'](_0x2e67ad,_0xd1143);_0x2e67ad['detach'](),_0xd1143['detach'](),_0x5aa452['markBlockFormat'](_0x98a88f,{'commandName':'imageTypeInline','commandParams':[_0x39c56c]},[],'convertInlineImageToBlock'),_0x4e05a4['start']['isBefore'](_0x4a5c10['start'])&&_0x5aa452['markInsertion'](_0x4ba6dc['createRange'](_0x4e05a4['start'],_0x4a5c10['start']),'convertInlineImageToBlock'),_0x4a5c10['end']['isBefore'](_0x4e05a4['end'])&&_0x5aa452['markInsertion'](_0x4ba6dc['createRange'](_0x4a5c10['end'],_0x4e05a4['end']),'convertInlineImageToBlock');});}),_0x5aa452['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5aa452['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5aa452['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5aa452['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5aa452['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5aa452['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2e9e92])=>{const _0x7e6e0b=_0x5aa452['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x220c45=_0x2e9e92['start'],_0x1ecec3=_0x2e9e92['end'];const _0x2dcfe5=_0x1529c8['model']['schema']['getNearestSelectionRange'](_0x220c45,'backward'),_0x118397=_0x1529c8['model']['schema']['getNearestSelectionRange'](_0x1ecec3,'forward');_0x2dcfe5['isCollapsed']&&(_0x220c45=_0x2dcfe5['start']),_0x118397['isCollapsed']&&(_0x1ecec3=_0x118397['end']),_0x7e6e0b([_0x1529c8['model']['createRange'](_0x220c45,_0x1ecec3)]);}),_0x5aa452['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x362259),_0x5aa452['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x362259)),_0x1529c8['plugins']['has']('ImageCaptionEditing')&&(_0x5aa452['enableCommand']('toggleImageCaption',(_0x450b19,_0x30fb77)=>{const _0x504b87=_0x1529c8['plugins']['get']('ImageCaptionUtils');let _0x2dbc13=_0xb318f7['getClosestSelectedImageElement'](_0x1529c8['model']['document']['selection']),_0x487c33=_0x504b87['getCaptionFromImageModelElement'](_0x2dbc13);_0x1529c8['model']['change'](()=>{if(_0x487c33)return void _0x5aa452['markDeletion'](_0x1529c8['model']['createRangeOn'](_0x487c33));const _0x1d1c66=_0xb318f7['isBlockImage'](_0x2dbc13);_0x450b19(_0x30fb77),_0x2dbc13=_0xb318f7['getClosestSelectedImageElement'](_0x1529c8['model']['document']['selection']),_0x487c33=_0x504b87['getCaptionFromImageModelElement'](_0x2dbc13),_0x5aa452['markInsertion'](_0x1529c8['model']['createRangeOn'](_0x487c33),_0x1d1c66?null:'imageCaption');});}),_0x5aa452['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x362259));const _0x2b3a3a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xa6d5ea(_0x43dfab,_0x259234){const _0x1156f4=_0x2b3a3a['findIndex'](({type:_0x559c40,subType:_0x3b6711})=>_0x43dfab['type']==_0x559c40&&_0x43dfab['subType']==_0x3b6711),_0x4147d6=_0x2b3a3a['findIndex'](({type:_0xce3f1b,subType:_0x3da861})=>_0x259234['type']==_0xce3f1b&&_0x259234['subType']==_0x3da861);if(_0x1156f4<0x0||_0x4147d6<0x0)return!0x1;const _0x18db8a=_0x43dfab['getFirstRange'](),_0x4762e5=_0x259234['getFirstRange']();if((0x0==_0x1156f4||0x1==_0x1156f4)&&0x2==_0x4147d6&&_0x18db8a['isIntersecting'](_0x4762e5))return!0x0;if(0x2==_0x1156f4&&0x3==_0x4147d6){const _0x2389ea=_0x5aa452['_findSuggestions'](_0x18db8a,'insertion')['filter'](({suggestion:_0x54a0ff,meta:_0x173e87})=>_0x173e87['isOwn']&&'convertInlineImageToBlock'==_0x54a0ff['subType']);if(_0x2389ea['length']>0x1&&_0x4762e5['end']['isEqual'](_0x18db8a['start']))return!0x0;if(0x1==_0x2389ea['length']&&(_0x18db8a['start']['isEqual'](_0x4762e5['end'])||_0x18db8a['end']['isEqual'](_0x4762e5['start'])))return!0x0;}if(0x3==_0x1156f4&&0x3==_0x4147d6&&_0x18db8a['start']['isBefore'](_0x4762e5['start'])){const _0x3952b2=_0x18db8a['end']['nodeAfter'],_0x2409cc=_0x4762e5['start']['nodeBefore'];return _0xb318f7['isBlockImage'](_0x3952b2)&&_0x3952b2===_0x2409cc;}return!0x1;}function _0x362259(_0x2d264b,_0x44cb80){return _0xa6d5ea(_0x2d264b,_0x44cb80)?[_0x2d264b,_0x44cb80]:_0xa6d5ea(_0x44cb80,_0x2d264b)?[_0x44cb80,_0x2d264b]:null;}_0x1529c8['plugins']['has']('ImageResize')&&(_0x5aa452['enableDefaultAttributesIntegration']('resizeImage'),_0x5aa452['registerBlockAttribute']('resizedWidth'),_0x5aa452['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x591c1f,'FORMAT_IMAGE_SIZE'))),_0x1529c8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5aa452['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5aa452['registerBlockAttribute']('alt')),_0x1529c8['plugins']['has']('PictureEditing')&&(_0x5aa452['registerBlockAttribute']('sources'),_0x5aa452['descriptionFactory']['registerDescriptionCallback'](_0x1e2246=>{if('attribute'!=_0x1e2246['type'])return;const {data:_0x111a73}=_0x1e2246;return _0x111a73&&'sources'==_0x111a73['key']?{'type':'format','content':''}:void 0x0;})),_0x1529c8['plugins']['has']('ImageSizeAttributes')&&(_0x5aa452['registerBlockAttribute']('width'),_0x5aa452['registerBlockAttribute']('height'),_0x5aa452['descriptionFactory']['registerDescriptionCallback'](_0x1db72c=>{if('attribute'!=_0x1db72c['type'])return;const {data:_0xa06fd3}=_0x1db72c;return!_0xa06fd3||'width'!=_0xa06fd3['key']&&'height'!=_0xa06fd3['key']?void 0x0:{'type':'format','content':''};})),_0x5aa452['descriptionFactory']['registerDescriptionCallback'](_0x1aed9a=>{if(!!_0x2b3a3a['find'](({type:_0x4a2183,subType:_0x3d28bc})=>_0x1aed9a['type']==_0x4a2183&&_0x1aed9a['subType']==_0x3d28bc))return _0x1aed9a['previous']?{}:void 0x0;}),_0x5aa452['descriptionFactory']['registerDescriptionCallback'](_0x51a36a=>{if('insertion'==_0x51a36a['type']||'deletion'==_0x51a36a['type']){const _0x1e97c9=_0x51a36a['getContainedElement']();if(_0x1e97c9&&_0x1e97c9['is']('element','caption'))return{'type':'insertion'==_0x51a36a['type']?'addObject':'removeObject','element':_0x1e97c9,'quantity':0x1};}}),_0x5aa452['descriptionFactory']['registerDescriptionCallback'](_0x1f6d7d=>'formatBlock'==_0x1f6d7d['type']&&'convertInlineImageToBlock'==_0x1f6d7d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1f6d7d['type']&&'convertBlockImageToInline'==_0x1f6d7d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5aa452['descriptionFactory']['registerDescriptionCallback'](_0x4fbdba=>{if('attribute'!=_0x4fbdba['type'])return;const {data:_0x5567f1}=_0x4fbdba;if(!_0x5567f1||'alt'!=_0x5567f1['key'])return;const _0x39d54b=_0x5567f1['newValue'];return _0x39d54b?{'type':'format','content':c(_0x591c1f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x39d54b+'\x22')}:{'type':'format','content':c(_0x591c1f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15e140=this['editor'],_0x1a1be7=_0x15e140['locale'];_0x15e140['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33de78=>{if('formatBlock'!=_0x33de78['type']&&'formatInline'!=_0x33de78['type'])return;const {data:_0x5292ac}=_0x33de78;if(_0x5292ac){if('imageTextAlternative'==_0x5292ac['commandName']){const _0x296c0b=_0x5292ac['commandParams'][0x0]['newValue'];return _0x296c0b?{'type':'format','content':c(_0x1a1be7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x296c0b+'\x22')}:{'type':'format','content':c(_0x1a1be7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5292ac['commandName']){const _0x4cd5d8=_0x5292ac['commandParams'][0x0]['width'];return _0x4cd5d8?{'type':'format','content':c(_0x1a1be7,'*Set\x20image\x20width:*\x20%0',_0x4cd5d8)}:{'type':'format','content':c(_0x1a1be7,'*Reset\x20image\x20width*')};}}});}}class at extends _0x51821d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x13a5f4=this['editor']['locale'],_0x38bdd5=this['editor']['plugins']['get']('TrackChangesEditing');_0x38bdd5['enableDefaultAttributesIntegration']('replaceImageSource'),_0x38bdd5['registerBlockAttribute']('src'),_0x38bdd5['descriptionFactory']['registerDescriptionCallback'](_0x373f79=>{if('attribute'!=_0x373f79['type'])return;const {data:_0x634c00}=_0x373f79;return _0x634c00&&'src'==_0x634c00['key']?_0x634c00['newValue']&&_0x634c00['oldValue']?{'type':'format','content':c(_0x13a5f4,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x24f812=this['editor']['plugins']['get']('TrackChangesEditing');_0x24f812['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x24f812['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x24f812['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x24f812['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39d243=this['editor'],_0x5931fd=_0x39d243['locale'];_0x39d243['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55a603=>{if('formatBlock'!=_0x55a603['type']&&'formatInline'!=_0x55a603['type'])return;const {data:_0x4b3f7a}=_0x55a603;if(!_0x4b3f7a||'replaceImageSource'!=_0x4b3f7a['commandName'])return;return{'type':'format','content':c(_0x5931fd,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x51821d{['afterInit'](){const _0x46412c=this['editor'];if(!_0x46412c['plugins']['has']('ImageStyleEditing'))return;const _0x2688a0=_0x46412c['plugins']['get']('TrackChangesEditing'),_0x395cba=_0x46412c['plugins']['get']('ImageUtils'),_0x291faa={};_0x2688a0['enableCommand']('imageStyle',(_0x58c584,_0x3b88e5)=>{const _0xb005cf=_0x46412c['plugins']['get']('Users')['me'],_0x4bb3a7=_0x46412c['commands']['get']('imageStyle');let _0x5a2462=_0x395cba['getClosestSelectedImageElement'](_0x46412c['model']['document']['selection']),_0x36f86a=_0x46412c['model']['createRangeOn'](_0x5a2462),_0x11eb5d=_0x4bb3a7['value'];if(_0x11eb5d==_0x3b88e5['value'])return;const _0x58677e={'commandName':'imageStyle','commandParams':[_0x3b88e5],'formatGroupId':_0x28fc1d()};_0x46412c['model']['change'](()=>{if(_0x2688a0['getSuggestions']()['filter'](_0x57ba18=>_0x57ba18['isInContent']&&_0xb005cf==_0x57ba18['author']&&('formatBlock'==_0x57ba18['type']||'formatInline'==_0x57ba18['type'])&&('imageStylePreApply'==_0x57ba18['subType']||'imageStylePostApply'==_0x57ba18['subType'])&&_0x57ba18['getFirstRange']()['isEqual'](_0x36f86a))['forEach'](_0x27c7a1=>_0x2688a0['discardSuggestion'](_0x27c7a1['head'])),_0x5a2462=_0x395cba['getClosestSelectedImageElement'](_0x46412c['model']['document']['selection']),_0x36f86a=_0x46412c['model']['createRangeOn'](_0x5a2462),_0x4bb3a7['refresh'](),_0x46412c['commands']['get']('imageTypeInline')['refresh'](),_0x46412c['commands']['get']('imageTypeBlock')['refresh'](),_0x11eb5d=_0x4bb3a7['value'],_0x11eb5d!=_0x3b88e5['value'])return _0x395cba['isInlineImage'](_0x5a2462)&&_0x4bb3a7['shouldConvertImageType'](_0x3b88e5['value'],_0x5a2462)?(_0x58c584({..._0x3b88e5,'setImageSizes':!0x1}),_0x5a2462=_0x395cba['getClosestSelectedImageElement'](_0x46412c['model']['document']['selection']),void _0x2688a0['markBlockFormat'](_0x5a2462,{..._0x58677e,'commandReversedParams':[{'value':_0x11eb5d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x395cba['isBlockImage'](_0x5a2462)?_0x2688a0['markBlockFormat'](_0x5a2462,_0x58677e,[],'imageStylePostApply'):_0x2688a0['markInlineFormat'](_0x36f86a,_0x58677e,'imageStylePostApply'));});});for(const _0x4595bf of _0x46412c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x291faa[_0x4595bf['name']]=_0x4595bf['title']['toLowerCase']();_0x2688a0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2688a0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2688a0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2688a0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3e90f2])=>{_0x395cba['setImageNaturalSizeAttributes'](_0x3e90f2['getContainedElement']());}),_0x2688a0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x560807,_0x3eb2f5)=>{_0x2688a0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x560807,{'commandName':_0x3eb2f5['commandName'],'commandParams':_0x3eb2f5['commandReversedParams']});}),_0x2688a0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x14f1ef,_0x5f2841){if(_0x1f1018(_0x14f1ef,_0x5f2841))return[_0x14f1ef,_0x5f2841];if(_0x1f1018(_0x5f2841,_0x14f1ef))return[_0x5f2841,_0x14f1ef];return null;});const _0x46d172=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1f1018(_0x1342d6,_0x670aa){const _0x2f0a73=_0x46d172['findIndex'](({type:_0x53dec0,subType:_0x501d93})=>_0x1342d6['type']==_0x53dec0&&_0x1342d6['subType']==_0x501d93),_0x5baa1a=_0x46d172['findIndex'](({type:_0x3941e1,subType:_0x3b3f65})=>_0x670aa['type']==_0x3941e1&&_0x670aa['subType']==_0x3b3f65);if(_0x2f0a73<0x0||_0x5baa1a<0x0)return!0x1;const _0x34ae41=_0x1342d6['getFirstRange'](),_0x18745b=_0x670aa['getFirstRange']();if((0x0==_0x2f0a73||0x1==_0x2f0a73)&&0x2==_0x5baa1a&&_0x34ae41['isIntersecting'](_0x18745b))return!0x0;if(0x2==_0x2f0a73&&0x3==_0x5baa1a){const _0x1d6378=_0x2688a0['_findSuggestions'](_0x34ae41,'insertion')['filter'](({suggestion:_0x5dd2fa,meta:_0x27fb90})=>_0x27fb90['isOwn']&&'convertInlineImageToBlock'==_0x5dd2fa['subType']);if(_0x1d6378['length']>0x1&&_0x18745b['end']['isEqual'](_0x34ae41['start']))return!0x0;if(0x1==_0x1d6378['length']&&(_0x34ae41['start']['isEqual'](_0x18745b['end'])||_0x34ae41['end']['isEqual'](_0x18745b['start'])))return!0x0;}if(0x3==_0x2f0a73&&0x3==_0x5baa1a&&_0x34ae41['start']['isBefore'](_0x18745b['start'])){const _0x25fb6e=_0x34ae41['end']['nodeAfter'],_0x1c3b6e=_0x18745b['start']['nodeBefore'];return _0x395cba['isBlockImage'](_0x25fb6e)&&_0x25fb6e===_0x1c3b6e;}return!0x1;}_0x46412c['model']['document']['registerPostFixer'](()=>{let _0x35caa2=!0x1;const _0xf1ee5f=Array['from'](_0x46412c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x65c9c,data:_0x487582}of _0xf1ee5f){const {group:_0x40bdb0,type:_0x10c52b,subType:_0x4ce44b,id:_0x49ee97}=_0x2688a0['_splitMarkerName'](_0x65c9c);if('suggestion'==_0x40bdb0&&_0x2688a0['hasSuggestion'](_0x49ee97)){if('formatBlock'==_0x10c52b&&('imageStylePreApply'==_0x4ce44b||'imageStylePostApply'==_0x4ce44b)){const _0x5cc69d=_0x2688a0['getSuggestion'](_0x49ee97);if(_0x487582['newRange']){const _0x5eb42a=_0x5cc69d['getFirstRange']()['getContainedElement']();if(_0x395cba['isBlockImage'](_0x5eb42a))continue;_0x2688a0['discardSuggestion'](_0x5cc69d),_0x35caa2=!0x0;}}if('insertion'==_0x10c52b&&'imageCaption'==_0x4ce44b&&!_0x487582['newRange']){const _0x3027ed=_0x2688a0['getSuggestion'](_0x49ee97);_0x3027ed['next']&&_0x3027ed['next']['isInContent']&&(_0x2688a0['discardSuggestion'](_0x3027ed['next']),_0x35caa2=!0x0);}}}return _0x35caa2;}),this['_registerLegacyDescription'](_0x291faa);}['_registerLegacyDescription'](_0x35ab2f){const _0x5dd6ab=this['editor'],_0x447753=_0x5dd6ab['locale'];_0x5dd6ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28a057=>{if('formatBlock'!=_0x28a057['type']&&'formatInline'!=_0x28a057['type'])return;const {data:_0x1b0d9c}=_0x28a057;if(!_0x1b0d9c||'imageStyle'!=_0x1b0d9c['commandName'])return;const _0x52012a=_0x1b0d9c['commandParams'][0x0]['value'];return _0x55def9('side'===_0x52012a?c(_0x447753,'FORMAT_SIDE_IMAGE'):_0x35ab2f[_0x52012a]||_0x52012a);function _0x55def9(_0xcdb82b){return{'type':'format','content':c(_0x447753,'*Format:*\x20%0',_0xcdb82b)};}});}}class ut extends _0x51821d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4ccd06){super(_0x4ccd06),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3bd3ba=this['editor'],_0x17a218=_0x3bd3ba['commands']['get']('importWord'),_0x7c8202=_0x3bd3ba['commands']['get']('trackChanges');_0x17a218&&(_0x17a218['on']('execute',(_0x2d94c3,[,_0x305bc6])=>{this['_trackChangesValueDuringImport']=_0x7c8202['value'],_0x305bc6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x17a218,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x17a218,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x7c8202['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3bd3ba['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x226112,_0x4f7408){const {suggestions:_0x142038}=_0x4f7408,_0x3b7e52=this['editor']['commands']['get']('trackChanges'),_0x497fdc=_0x3b7e52['value'];this['_trackChangesValueDuringImport']!==_0x497fdc&&(_0x3b7e52['execute'](),this['_trackChangesExecuted']=!0x0),_0x142038&&_0x142038['forEach'](({id:_0xb98e94,type:_0x1db5f0,author:_0x2a771b,created_at:_0x2eb70a})=>{const _0x557781={'id':_0xb98e94,'type':_0x1db5f0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2a771b,'createdAt':_0x2eb70a?new Date(_0x2eb70a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x557781);});}}class ft extends _0x51821d{['afterInit'](){const _0xc41a80=this['editor'],_0x4d4249=_0xc41a80['plugins']['get']('TrackChangesEditing');if(_0xc41a80['plugins']['has']('IndentEditing')&&(_0x4d4249['enableCommand']('indent'),_0x4d4249['enableCommand']('outdent')),_0xc41a80['plugins']['has']('IndentBlock')){for(const _0x32e666 of['indentBlock','outdentBlock'])_0x4d4249['enableDefaultAttributesIntegration'](_0x32e666);}const _0x5b7cf7=_0xc41a80['locale'];_0x4d4249['registerBlockAttribute']('blockIndent'),_0x4d4249['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5b7cf7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5be503=this['editor'],_0x552a66=_0x5be503['locale'],_0x525ef1=_0x5be503['plugins']['get']('TrackChangesEditing');_0x525ef1['descriptionFactory']['registerDescriptionCallback'](_0x55a776=>{if('formatBlock'!=_0x55a776['type'])return;const {data:_0x131605}=_0x55a776;if(!_0x131605)return;if('indentBlock'!=_0x131605['commandName']&&'outdentBlock'!=_0x131605['commandName'])return;const _0x1eea13=_0x55a776['getItems']()[0x0],_0x1bde3c=_0x525ef1['descriptionFactory']['getItemLabel'](_0x1eea13);return'indentBlock'==_0x131605['commandName']?{'type':'format','content':c(_0x552a66,'*Indent:*\x20%0',_0x1bde3c)}:'outdentBlock'==_0x131605['commandName']?{'type':'format','content':c(_0x552a66,'*Outdent:*\x20%0',_0x1bde3c)}:void 0x0;});}}class ht extends _0x51821d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x51821d{['afterInit'](){const _0x4c9d35=this['editor'];if(!_0x4c9d35['plugins']['has']('LinkEditing'))return;const _0x28d728=_0x4c9d35['plugins']['get']('TrackChangesEditing'),_0x3fd27b=_0x4c9d35['commands']['get']('link');_0x28d728['enableDefaultAttributesIntegration']('link'),_0x28d728['enableDefaultAttributesIntegration']('unlink'),_0x28d728['registerInlineAttribute']('linkHref');for(const _0x12e8d7 of _0x3fd27b['manualDecorators'])_0x28d728['registerInlineAttribute'](_0x12e8d7['id']),_0x28d728['descriptionFactory']['registerAttributeLabel'](_0x12e8d7['id'],'link\x20('+_0x12e8d7['label']['toLowerCase']()+')');_0x28d728['descriptionFactory']['registerDescriptionCallback'](_0x5b9494=>{if('attribute'!=_0x5b9494['type'])return;const {data:_0x3a0941}=_0x5b9494;if(!_0x3a0941||'linkHref'!=_0x3a0941['key'])return;const _0x459f00=_0x3a0941['newValue'],_0x31f4f9=_0x4c9d35['locale'];return{'type':'format','content':null==_0x459f00?c(_0x31f4f9,'*Remove\x20link*'):c(_0x31f4f9,'*Set\x20link:*\x20%0','\x22'+_0x459f00+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58e69a=this['editor'],_0x5e9fac=_0x58e69a['locale'];_0x58e69a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ac053=>{if('formatInline'!=_0x2ac053['type'])return;const {data:_0x15deca}=_0x2ac053;if(_0x15deca){if('link'==_0x15deca['commandName']){const _0x3ea911=_0x15deca['commandParams'][0x0];return{'type':'format','content':c(_0x5e9fac,'*Set\x20link:*\x20%0','\x22'+_0x3ea911+'\x22')};}return'unlink'==_0x15deca['commandName']?{'type':'format','content':c(_0x5e9fac,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x51821d{['afterInit'](){const _0x122f72=this['editor'],_0x9d1e9e=_0x122f72['locale'];if(!_0x122f72['plugins']['has']('LegacyListEditing'))return;const _0x532e3e=_0x122f72['plugins']['get']('TrackChangesEditing'),_0x4950e4=_0x122f72['plugins']['has']('LegacyTodoListEditing');function _0x5cde01(_0x15267b){return()=>{const _0x3d07b8=_0x122f72['model']['document']['selection'],_0x337915=_0x122f72['commands']['get'](_0x15267b);if(_0x337915['value'])return void _0x122f72['execute']('paragraph',{});const _0x10821a=_0x15267b['slice'](0x0,-0x4),_0x27509f=function(_0x48c004,_0x391321,_0xbb5c93){let _0x437571=Array['from'](_0x48c004)['filter'](_0x23d140=>function(_0x57655d,_0x394b53){return _0x394b53['checkChild'](_0x57655d['parent'],'listItem')&&!_0x394b53['isObject'](_0x57655d);}(_0x23d140,_0xbb5c93));_0x437571=_0x437571['filter'](_0x694c1b=>!_0x694c1b['is']('element','listItem')||_0x694c1b['getAttribute']('listType')!=_0x391321);const _0x335039=new Set();for(const _0x3698d9 of _0x437571)_0x3698d9['is']('element','listItem')?_0x335039['add'](Le(_0x3698d9)):_0x335039['add'](_0x3698d9);return Array['from'](_0x335039);}(_0x3d07b8['getSelectedBlocks'](),_0x10821a,_0x122f72['model']['schema']);_0x122f72['model']['change'](()=>{for(const _0x450fb1 of _0x27509f)_0x532e3e['markBlockFormat'](_0x450fb1,{'commandName':_0x15267b,'commandParams':[{'forceValue':!_0x337915['value']}],'formatGroupId':'blockName'},Ee(_0x450fb1));});};}function _0x286c07(_0x34ec31){return()=>{const _0x24cbfe=function(_0x25b64c){let _0x420b6b=Array['from'](_0x25b64c);const _0x442e8c=_0x420b6b['findIndex'](_0x62fc8e=>'listItem'!=_0x62fc8e['name']);return _0x442e8c>-0x1&&(_0x420b6b=_0x420b6b['slice'](0x0,_0x442e8c)),_0x420b6b;}(_0x122f72['model']['document']['selection']['getSelectedBlocks']()),_0x1c2142=_0x122f72['model']['createRange'](_0x122f72['model']['createPositionAt'](_0x24cbfe[0x0],'before'),_0x122f72['model']['createPositionAt'](_0x24cbfe[_0x24cbfe['length']-0x1],'end'));_0x122f72['model']['change'](()=>{_0x532e3e['markBlockFormat'](_0x1c2142,{'commandName':_0x34ec31,'commandParams':[],'formatGroupId':'listIndent'},function(_0x30333a){const _0x3945ae=new Set();for(const _0x5127d7 of _0x30333a){let _0x2d1a77=_0x5127d7['nextSibling'];for(;_0x2d1a77&&_0x2d1a77['getAttribute']('listIndent')>_0x5127d7['getAttribute']('listIndent');)_0x3945ae['add'](_0x2d1a77),_0x2d1a77=_0x2d1a77['nextSibling'];}return Array['from'](_0x3945ae);}(_0x24cbfe));});};}_0x532e3e['enableCommand']('numberedList',_0x5cde01('numberedList')),_0x532e3e['enableCommand']('bulletedList',_0x5cde01('bulletedList')),_0x4950e4&&_0x532e3e['enableCommand']('todoList',_0x5cde01('todoList')),_0x532e3e['enableCommand']('indentList',_0x286c07('indentList')),_0x532e3e['enableCommand']('outdentList',_0x286c07('outdentList')),_0x4950e4&&_0x532e3e['enableCommand']('checkTodoList',()=>{const _0x3d3202=_0x122f72['commands']['get']('checkTodoList'),_0x59c640=Array['from'](_0x3d3202['_selectedElements']);_0x59c640['filter'](_0x3989ec=>_0x3989ec['getAttribute']('todoListChecked')!=_0x3d3202['value']),_0x122f72['model']['change'](()=>{for(const _0x5c67d5 of _0x59c640)_0x532e3e['markBlockFormat'](_0x5c67d5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3d3202['value']}]});});}),_0x532e3e['descriptionFactory']['registerElementLabel']('listItem',_0x15824a=>c(_0x9d1e9e,'ELEMENT_LIST_ITEM',_0x15824a)),_0x532e3e['descriptionFactory']['registerDescriptionCallback'](_0x27d811=>{if('formatBlock'!=_0x27d811['type']&&'formatInline'!=_0x27d811['type'])return;const {data:_0x89e70f}=_0x27d811;if(_0x89e70f){if('numberedList'==_0x89e70f['commandName']||'bulletedList'==_0x89e70f['commandName']||'todoList'==_0x89e70f['commandName'])switch(_0x89e70f['commandName']['replace']('List','')){case'bulleted':return _0x4183ed(c(_0x9d1e9e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4183ed(c(_0x9d1e9e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4183ed(c(_0x9d1e9e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x89e70f['commandName'])return{'type':'format','content':c(_0x9d1e9e,'*Indent:*\x20%0',c(_0x9d1e9e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x89e70f['commandName'])return{'type':'format','content':c(_0x9d1e9e,'*Outdent:*\x20%0',c(_0x9d1e9e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x89e70f['commandName'])return _0x89e70f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x9d1e9e,'*Check\x20item*')}:{'type':'format','content':c(_0x9d1e9e,'*Uncheck\x20item*')};}function _0x4183ed(_0x58644b){return{'type':'format','content':c(_0x9d1e9e,'*Change\x20to:*\x20%0',_0x58644b)};}});}}function Le(_0x5f3dff){const _0x4dbb1f=_0x5f3dff['getAttribute']('listIndent');if(0x0==_0x4dbb1f)return _0x5f3dff;let _0x51aea6=_0x5f3dff;for(;_0x5f3dff['previousSibling']&&_0x5f3dff['previousSibling']['is']('element','listItem');){const _0x251119=_0x5f3dff['previousSibling']['getAttribute']('listIndent');if(_0x251119==_0x4dbb1f)_0x51aea6=_0x5f3dff['previousSibling'];else{if(_0x251119<_0x4dbb1f)break;}_0x5f3dff=_0x5f3dff['previousSibling'];}return _0x51aea6;}function Ee(_0x5d6c56){const _0x1f1bc1=[];if(_0x5d6c56['is']('element','listItem')&&_0x5d6c56['getAttribute']('listIndent')>0x0){let _0x16c2ed=_0x5d6c56['nextSibling'];for(;_0x16c2ed&&'listItem'==_0x16c2ed['name']&&_0x16c2ed['getAttribute']('listIndent')==_0x5d6c56['getAttribute']('listIndent');)_0x1f1bc1['push'](_0x16c2ed),_0x16c2ed=_0x16c2ed['nextSibling'];}return _0x1f1bc1;}class Q extends _0x51821d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x554a7d=this['editor']['config']['get']('list.properties'),_0x413ab8=this['editor']['plugins']['get']('TrackChangesEditing');_0x554a7d['styles']&&_0x413ab8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x554a7d['reversed']&&_0x413ab8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x554a7d['startIndex']&&_0x413ab8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x413ab8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4e4d48,_0x578dee={}){const _0x1e5f0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x153ecd=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1e5f0b['markMultiRangeBlockFormat'](_0x153ecd,{'commandName':'listStyle','commandParams':[{'type':_0x578dee['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3be1cb,_0x3797b1={}){const _0x58f19f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x494dc9=this['_getSuggestionBlocks'](_0x3874f9=>_0x3874f9['is']('element','listItem')&&'numbered'===_0x3874f9['getAttribute']('listType'));if(_0x494dc9['length']<0x1)return;const _0x78db71=_0x494dc9['map'](_0x54986a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54986a,'before'),this['editor']['model']['createPositionAt'](_0x54986a,0x0)));this['editor']['model']['change'](()=>{_0x58f19f['markMultiRangeBlockFormat'](_0x78db71,{'commandName':'listReversed','commandParams':[{'reversed':_0x3797b1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x27f7ee,_0x4d2cd4={}){const _0x4b8dba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5231f1=this['_getSuggestionBlocks'](_0xa097e5=>_0xa097e5['is']('element','listItem')&&'numbered'===_0xa097e5['getAttribute']('listType'));if(_0x5231f1['length']<0x1)return;const _0x26cfb7=_0x5231f1['map'](_0x24926a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24926a,'before'),this['editor']['model']['createPositionAt'](_0x24926a,0x0)));this['editor']['model']['change'](()=>{_0x4b8dba['markMultiRangeBlockFormat'](_0x26cfb7,{'commandName':'listStart','commandParams':[{'startIndex':_0x4d2cd4['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xea779){if('formatBlock'!=_0xea779['type']&&'formatInline'!=_0xea779['type'])return;const _0x1b560a=this['editor']['locale'],{data:_0x44107d}=_0xea779;if(!_0x44107d)return;let _0x4bad3a,_0x5c6f00;switch(_0x44107d['commandName']){case'listStyle':_0x4bad3a='*Change\x20to:*\x20%0',_0x5c6f00={'type':'format','content':c(_0x1b560a,_0x4bad3a,c(_0x1b560a,this['_getTranslationKeyForListStyle'](_0x44107d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4bad3a=_0x44107d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5c6f00={'type':'format','content':c(_0x1b560a,_0x4bad3a)};break;case'listStart':_0x4bad3a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5c6f00={'type':'format','content':c(_0x1b560a,_0x4bad3a,_0x44107d['commandParams'][0x0]['startIndex'])};}return _0x5c6f00;}['_getSuggestionBlocksForListStyle'](){const _0x31d8a6=this['editor']['plugins']['get']('LegacyListUtils');let _0x45fb9c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x45fb9c[0x0]?.['is']('element','listItem')&&_0x45fb9c['unshift'](..._0x31d8a6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x45fb9c[_0x45fb9c['length']-0x1]?.['is']('element','listItem')&&_0x45fb9c['push'](..._0x31d8a6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x45fb9c=[...new Set(_0x45fb9c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x45fb9c=_0x45fb9c['filter'](_0x5af3e0=>_0x5af3e0['is']('element','listItem'))),_0x45fb9c;}['_getSuggestionBlocks'](_0x519fcc){const _0x36472a=this['editor']['plugins']['get']('LegacyListUtils');let _0x7554b3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x519fcc)['map'](_0x22217d=>{const _0x2f21e3=this['editor']['model']['createPositionAt'](_0x22217d,0x0);return[..._0x36472a['getSiblingNodes'](_0x2f21e3,'backward'),..._0x36472a['getSiblingNodes'](_0x2f21e3,'forward')];})['flat']();return _0x7554b3=[...new Set(_0x7554b3)],_0x7554b3;}['_getTranslationKeyForListStyle'](_0x2f454e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2f454e)||'default')['toUpperCase']()+'_LIST_'+_0x2f454e['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x51821d{['afterInit'](){const _0x56bba5=this['editor'];if(!_0x56bba5['plugins']['has']('MediaEmbedEditing'))return;const _0x557fcb=_0x56bba5['plugins']['get']('TrackChangesEditing'),_0x524940=_0x56bba5['locale'];_0x557fcb['enableCommand']('mediaEmbed'),_0x557fcb['descriptionFactory']['registerElementLabel']('media',_0x37b396=>c(_0x524940,'ELEMENT_MEDIA',_0x37b396)),_0x56bba5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1775fc,{writer:_0x30982b,options:_0x255ab8})=>{if(_0x255ab8['showSuggestionHighlights'])return _0x30982b['createEmptyElement']('div');},'converterPriority':'high'}),_0x56bba5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x185d83,_0x40872e,_0x5be1c2)=>{_0x5be1c2['options']['showSuggestionHighlights']&&_0x185d83['stop']();},{'priority':'high'});}}class pt extends _0x51821d{['afterInit'](){const _0x5ba7d2=this['editor'];_0x5ba7d2['plugins']['has']('MentionEditing')&&_0x5ba7d2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x51821d{['afterInit'](){const _0x4e7f55=this['editor'];if(!_0x4e7f55['plugins']['has']('MergeFieldsEditing'))return;const _0x218eb8=_0x4e7f55['plugins']['get']('TrackChangesEditing'),_0x466d67=_0x4e7f55['locale'];_0x218eb8['enableCommand']('insertMergeField'),_0x218eb8['enableCommand']('insertMergeFieldBlock'),_0x218eb8['enableCommand']('insertMergeFieldImage'),_0x218eb8['descriptionFactory']['registerElementLabel']('mergeField',_0x22d549=>c(_0x466d67,'ELEMENT_MERGE_FIELD',_0x22d549)),_0x218eb8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x29dad6=>c(_0x466d67,'ELEMENT_MERGE_FIELD',_0x29dad6)),_0x218eb8['descriptionFactory']['registerDescriptionCallback'](_0xf1356d=>{if('insertion'!=_0xf1356d['type']&&'deletion'!=_0xf1356d['type'])return;const _0x3b162d=_0xf1356d['getContainedElement']();if(null==_0x3b162d)return;const _0x5b72d9=_0x4e7f55['plugins']['get']('MergeFieldsEditing');let _0x54e796;switch(_0x5b72d9['getMergeFieldType'](_0x3b162d)){case null:return;case'image':{const _0x11db97=_0x5b72d9['unwrapAffixes'](_0x3b162d['getAttribute']('src'));_0x54e796=_0x5b72d9['getLabel'](_0x11db97)||_0x11db97;break;}default:{const _0x117f6f=_0x3b162d['getAttribute']('id');_0x54e796=_0x5b72d9['getLabel'](_0x117f6f)||_0x117f6f;break;}}return'insertion'==_0xf1356d['type']?{'type':'insertion','content':c(_0x466d67,'*Insert:*\x20%0','\x22'+_0x54e796+'\x22\x20'+c(_0x466d67,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x466d67,'*Remove:*\x20%0','\x22'+_0x54e796+'\x22\x20'+c(_0x466d67,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x51821d{['afterInit'](){const _0x46ad6b=this['editor'],_0x46d425=_0x46ad6b['plugins']['get']('TrackChangesEditing');_0x46ad6b['plugins']['has']('MultiLevelList')&&(_0x46d425['enableDefaultAttributesIntegration']('multiLevelList'),_0x46d425['registerBlockAttribute']('listMarkerStyle'),_0x46d425['descriptionFactory']['registerDescriptionCallback'](_0x3ed462=>this['handleDescriptions'](_0x3ed462)));}['handleDescriptions'](_0x19bf4f){const _0x8ec946=this['editor']['locale'],{data:_0x26f053}=_0x19bf4f,_0x4dbbd0={'type':'format','content':''};if(_0x26f053&&'listMarkerStyle'==_0x26f053['key']){if(!_0x26f053['oldValue'])return{'type':'format','content':c(_0x8ec946,'*Set\x20format:*\x20%0',c(_0x8ec946,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x26f053['newValue']+')'};if(!_0x26f053['newValue']){let _0x2eded5=_0x19bf4f['head'];for(;_0x2eded5;){if(_0x2eded5['data']&&'listType'==_0x2eded5['data']['key']&&_0x2eded5['data']['newValue'])return _0x4dbbd0;_0x2eded5=_0x2eded5['next'];}return{'type':'format','content':c(_0x8ec946,'*Remove\x20format:*\x20%0',c(_0x8ec946,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x26f053['oldValue']+')'};}}}}class bt extends _0x51821d{['afterInit'](){const _0x344530=this['editor'];if(!_0x344530['plugins']['has']('PageBreakEditing'))return;_0x344530['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x25f54d=_0x344530['plugins']['get']('TrackChangesEditing'),_0x554a48=_0x344530['locale'];_0x25f54d['descriptionFactory']['registerElementLabel']('pageBreak',_0x6ff258=>c(_0x554a48,'ELEMENT_PAGE_BREAK',_0x6ff258));}}class yt extends _0x51821d{['afterInit'](){const _0x3bace7=this['editor'];if(!_0x3bace7['plugins']['has']('Paragraph'))return;const _0x3c3674=_0x3bace7['locale'],_0x2b661b=_0x3bace7['plugins']['get']('TrackChangesEditing');_0x2b661b['descriptionFactory']['registerElementLabel']('paragraph',_0x56f049=>c(_0x3c3674,'ELEMENT_PARAGRAPH',_0x56f049)),_0x2b661b['enableDefaultAttributesIntegration']('paragraph'),_0x2b661b['enableCommand']('insertParagraph'),_0x3bace7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3bace7),{'priority':'highest'}),_0x3bace7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5996e9,_0x3a9d8b,_0x202890)=>{_0x202890['options']['showSuggestionHighlights']&&nr(_0x3bace7,{'showActiveMarker':!0x1})(_0x5996e9,_0x3a9d8b,_0x202890);},{'priority':'highest'});const _0x449df0=_0x2b661b['descriptionFactory'];_0x449df0['registerDescriptionCallback'](_0x813d80=>{if('insertion'!==_0x813d80['type'])return;const {start:_0x118fef,end:_0x1be2bf}=_0x813d80['getFirstRange']();if(!_0x118fef['isTouching'](_0x1be2bf)||!_0x118fef['nodeAfter'])return;const _0x56c57d=_0x3bace7['model']['schema'],_0x31f682=_0x118fef['nodeAfter'];return _0x56c57d['isBlock'](_0x31f682)&&!_0x56c57d['isLimit'](_0x31f682)&&_0x56c57d['checkChild'](_0x31f682,'$text')?{'type':'insertion','content':c(_0x3c3674,'*Insert:*\x20%0',_0x449df0['getItemLabel'](_0x31f682,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xac9256=this['editor'],_0x4a900a=_0xac9256['locale'];_0xac9256['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x200afc=>{if('formatBlock'!=_0x200afc['type'])return;const {data:_0x474bf3}=_0x200afc;return _0x474bf3&&'paragraph'==_0x474bf3['commandName']?{'type':'format','content':c(_0x4a900a,'*Change\x20to:*\x20%0',c(_0x4a900a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x364a03,{showActiveMarker:_0x934e2b=!0x0}={}){return(_0x174016,_0x1c6a17,_0x5962fd)=>{const _0x164a41=_0x364a03['plugins']['get']('TrackChangesEditing'),_0x5ee93f=_0x1c6a17['markerRange']['start'],_0x2dc66f=_0x1c6a17['markerRange']['end'],_0x453265=_0x364a03['model']['schema'];if(!_0x5ee93f['isTouching'](_0x2dc66f)||!_0x5ee93f['nodeAfter'])return;const _0x2f0eaa=_0x5ee93f['nodeAfter'];if(_0x453265['isBlock'](_0x2f0eaa)&&!_0x453265['isLimit'](_0x2f0eaa)&&_0x453265['checkChild'](_0x2f0eaa,'$text')){if(!_0x5962fd['consumable']['consume'](_0x1c6a17['markerRange'],_0x174016['name']))return;const {authorId:_0xaa0b67}=_0x164a41['_splitMarkerName'](_0x1c6a17['markerName']),_0x30f5fc=_0x5962fd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xaa0b67}),_0x5b77e2=_0x5962fd['mapper']['toViewPosition'](_0x2dc66f);_0x934e2b&&_0x164a41['activeMarkers']['includes'](_0x1c6a17['markerName'])&&_0x5962fd['writer']['addClass']('ck-suggestion-marker--active',_0x30f5fc),_0x5962fd['writer']['insert'](_0x5b77e2,_0x30f5fc),_0x5962fd['mapper']['bindElementToMarker'](_0x30f5fc,_0x1c6a17['markerName']);}};}class jt extends _0x51821d{['afterInit'](){const _0xc786b2=this['editor'];_0xc786b2['commands']['get']('replaceSource')&&_0xc786b2['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x51821d{['afterInit'](){const _0x43f021=this['editor'];if(!_0x43f021['plugins']['has']('RemoveFormatEditing'))return;_0x43f021['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x239e84=this['editor'];_0x239e84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x87a971=>{if('formatBlock'!=_0x87a971['type']&&'formatInline'!=_0x87a971['type'])return;const {data:_0x356b34}=_0x87a971;return _0x356b34&&'removeFormat'==_0x356b34['commandName']?{'type':'format','content':c(_0x239e84['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x51821d{['afterInit'](){const _0x12fba8=this['editor'];if(!_0x12fba8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x29a651=_0x12fba8['plugins']['get']('TrackChangesEditing');_0x29a651['enableCommand']('goToPreviousRestrictedEditingException'),_0x29a651['enableCommand']('goToNextRestrictedEditingException');const _0x3aac3b=_0x12fba8['plugins']['get']('RestrictedEditingModeEditing');_0x3aac3b['enableCommand']('trackChanges'),_0x3aac3b['enableCommand']('acceptSuggestion'),_0x3aac3b['enableCommand']('discardSuggestion'),_0x3aac3b['enableCommand']('acceptAllSuggestions'),_0x3aac3b['enableCommand']('discardAllSuggestions'),_0x3aac3b['enableCommand']('acceptSelectedSuggestions'),_0x3aac3b['enableCommand']('discardSelectedSuggestions');}}class It extends _0x51821d{['afterInit'](){const _0x36f1f5=this['editor'];if(!_0x36f1f5['plugins']['has']('ShiftEnter'))return;const _0x44602b=_0x36f1f5['plugins']['get']('TrackChangesEditing');_0x44602b['enableCommand']('shiftEnter'),_0x36f1f5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x36f1f5),{'priority':'high'}),_0x36f1f5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x36f1f5),{'priority':'high'}),_0x36f1f5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1326a0,_0x524134,_0x2bee09)=>{_0x2bee09['options']['showSuggestionHighlights']&&je(_0x36f1f5,{'showActiveMarker':!0x1})(_0x1326a0,_0x524134,_0x2bee09);}),_0x44602b['descriptionFactory']['registerElementLabel']('softBreak',_0x2ba07c=>c(_0x36f1f5['locale'],'ELEMENT_LINE_BREAK',_0x2ba07c));}}function je(_0x109a7e,{showActiveMarker:_0x15409e=!0x0}={}){return(_0x5f3686,_0x354bfc,_0x7b58bb)=>{const _0xdfe739=_0x109a7e['plugins']['get']('TrackChangesEditing');if(!_0x7b58bb['consumable']['test'](_0x354bfc['markerRange'],_0x5f3686['name']))return;const _0x56159d=_0x109a7e['model'];for(const _0x3c63fe of _0x354bfc['markerRange']['getItems']()){if(!_0x3c63fe['is']('element','softBreak'))continue;const _0xcf0b66='deletion'==_0x354bfc['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0xc8be8d}=_0xdfe739['_splitMarkerName'](_0x354bfc['markerName']),_0x494430=_0x7b58bb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcf0b66,'data-author-id':_0xc8be8d}),_0x3c8da6=_0x7b58bb['mapper']['toViewPosition'](_0x56159d['createPositionBefore'](_0x3c63fe));_0x15409e&&_0xdfe739['activeMarkers']['includes'](_0x354bfc['markerName'])&&_0x7b58bb['writer']['addClass']('ck-suggestion-marker--active',_0x494430),_0x7b58bb['writer']['insert'](_0x3c8da6,_0x494430),_0x7b58bb['mapper']['bindElementToMarker'](_0x494430,_0x354bfc['markerName']);}};}class _t extends _0x51821d{['afterInit'](){const _0x16f1ef=this['editor'],_0x49990e=_0x16f1ef['model'],_0x3a11ae=_0x16f1ef['locale'];if(!_0x16f1ef['plugins']['has']('StandardEditingModeEditing'))return;const _0x24c5f6=_0x16f1ef['plugins']['get']('TrackChangesEditing'),_0x23c490='restrictedEditingException',_0x1b2f2c=_0x16f1ef['commands']['get'](_0x23c490);_0x24c5f6['enableCommand'](_0x23c490,(_0x1cf705,_0x33067b={})=>{const _0x2a1b1a=_0x49990e['document']['selection'];if(_0x2a1b1a['isCollapsed'])return void _0x1cf705(_0x33067b);const _0x34090c=void 0x0!==_0x33067b['forceValue']?_0x33067b['forceValue']:!_0x1b2f2c['value'];_0x49990e['change'](()=>{const _0x4fafc7=Array['from'](_0x2a1b1a['getRanges']());for(const _0x36b0be of _0x4fafc7){const _0x2d797c=_0x34090c?[_0x36b0be]:io(_0x23c490,_0x36b0be,_0x49990e);for(const _0x74fe9c of _0x2d797c)_0x24c5f6['markInlineFormat'](_0x74fe9c,{'commandName':_0x23c490,'commandParams':[{'forceValue':_0x34090c}]});}});}),_0x24c5f6['descriptionFactory']['registerDescriptionCallback'](_0x2eb417=>{if('formatBlock'!=_0x2eb417['type']&&'formatInline'!=_0x2eb417['type'])return;const {data:_0x12025d}=_0x2eb417;return _0x12025d&&_0x12025d['commandName']==_0x23c490?_0x12025d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3a11ae,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x3a11ae,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x51821d{['afterInit'](){const _0x855629=this['editor'];if(!_0x855629['plugins']['has']('Style')||!_0x855629['plugins']['has']('DataSchema'))return;const _0x4e41b4=_0x855629['plugins']['get']('TrackChangesEditing'),_0x380ecb=_0x855629['locale'],_0x53a89f=_0x855629['config']['get']('style')||{},_0x3f9324=_0x855629['plugins']['get']('GeneralHtmlSupport'),_0x656262=_0x855629['plugins']['get']('StyleUtils')['normalizeConfig'](_0x855629['plugins']['get']('DataSchema'),_0x53a89f['definitions']);_0x4e41b4['enableDefaultAttributesIntegration']('style');const _0x242541=new Set();for(const _0x49a4d5 of _0x656262['block']){const _0x367dfc=_0x3f9324['getGhsAttributeNameForElement'](_0x49a4d5['element']);_0x242541['add'](_0x367dfc);}const _0x1ecdc3=new Set();for(const _0x2a19e9 of _0x656262['inline']){const _0x52c1ea=_0x3f9324['getGhsAttributeNameForElement'](_0x2a19e9['element']);_0x1ecdc3['add'](_0x52c1ea);for(const _0x15572c of _0x2a19e9['ghsAttributes'])_0x1ecdc3['add'](_0x15572c);}for(const _0xc64c8a of _0x242541)_0x4e41b4['registerBlockAttribute'](_0xc64c8a),_0x4e41b4['descriptionFactory']['registerAttributeLabel'](_0xc64c8a,c(_0x380ecb,'FORMAT_STYLE'));for(const _0x3734dc of _0x1ecdc3)_0x4e41b4['registerInlineAttribute'](_0x3734dc),_0x4e41b4['descriptionFactory']['registerAttributeLabel'](_0x3734dc,c(_0x380ecb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bdfcc=this['editor'],_0x39d8d9=_0x5bdfcc['locale'];_0x5bdfcc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5fb72=>{if('formatBlock'!=_0x5fb72['type']&&'formatInline'!=_0x5fb72['type'])return;const {data:_0x38ab25}=_0x5fb72;return _0x38ab25&&'style'===_0x38ab25['commandName']?_0x38ab25['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x39d8d9,'*Set\x20format:*\x20%0',_0x38ab25['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x39d8d9,'*Remove\x20format:*\x20%0',_0x38ab25['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x51821d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1fcf64){super(_0x1fcf64),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x64fbb0=this['editor'],_0x2ff4bc=_0x64fbb0['model']['document']['selection'];if(!_0x64fbb0['plugins']['has']('TableEditing'))return;const _0xa496bb=_0x64fbb0['locale'],_0x299481=_0x64fbb0['plugins']['get']('TrackChangesEditing'),_0x5d8cab=_0x64fbb0['plugins']['get']('TableUtils');_0x299481['descriptionFactory']['registerElementLabel']('table',_0x553d5f=>c(_0xa496bb,'ELEMENT_TABLE',_0x553d5f)),this['_setupColumnsRowsFixing'](),_0x299481['enableCommand']('insertTable'),_0x299481['enableCommand']('selectTableRow'),_0x299481['enableCommand']('selectTableColumn');for(const _0x5f2b62 of['insertTableRowAbove','insertTableRowBelow']){const _0x1bb469=_0x64fbb0['commands']['get'](_0x5f2b62);_0x299481['enableCommand'](_0x5f2b62,_0x418c98=>{_0x64fbb0['model']['change'](_0x5907a8=>{_0x418c98();const _0x55fb29='above'===_0x1bb469['order'],_0x1eefe7=_0x5d8cab['getSelectionAffectedTableCells'](_0x2ff4bc),_0x50e2c1=_0x5d8cab['getRowIndexes'](_0x1eefe7),_0x527806=_0x55fb29?_0x50e2c1['first']-0x1:_0x50e2c1['last']+0x1,_0x134959=_0x1eefe7[0x0]['findAncestor']('table'),_0x383a2a=_0x5d8cab['createTableWalker'](_0x134959,{'startRow':_0x527806,'endRow':_0x527806}),_0xa70a1d=Array['from'](_0x383a2a)['map'](_0x475910=>_0x5907a8['createRangeOn'](_0x475910['cell']));_0x299481['markMultiRangeInsertion'](_0xa70a1d,'tableRow');});});}for(const _0xac00e4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5e04dd=_0x64fbb0['commands']['get'](_0xac00e4);_0x299481['enableCommand'](_0xac00e4,_0x4f3a40=>{_0x64fbb0['model']['change'](_0x2393a7=>{_0x4f3a40();const _0x41c781='left'===_0x5e04dd['order'],_0x14d52c=_0x5d8cab['getSelectionAffectedTableCells'](_0x2ff4bc),_0xaf4f42=_0x5d8cab['getColumnIndexes'](_0x14d52c),_0x46f195=_0x41c781?_0xaf4f42['first']-0x1:_0xaf4f42['last']+0x1,_0x1b74a4=_0x14d52c[0x0]['findAncestor']('table'),_0x3a28a7=_0x5d8cab['createTableWalker'](_0x1b74a4,{'startRow':0x0,'column':_0x46f195,'includeAllSlots':!0x1}),_0x2afaa4=Array['from'](_0x3a28a7)['map'](_0x4bfae5=>_0x2393a7['createRangeOn'](_0x4bfae5['cell']));_0x299481['markMultiRangeInsertion'](_0x2afaa4,'tableColumn');});});}for(const _0x10d8ba of['removeTableRow','removeTableColumn']){const _0x39f068=_0x10d8ba['substr'](0xb),_0xc56d6=_0x39f068['toLowerCase'](),_0x5f4d93=_0xc56d6['substr'](0x0,0x3)+'span',_0x59beeb='table'+_0x39f068,_0x5226f4='min'+_0x39f068,_0x26f785='max'+_0x39f068;_0x299481['enableCommand'](_0x10d8ba,()=>{_0x64fbb0['model']['change'](_0x529c58=>{const _0x20bc9b=_0x5d8cab['getSelectionAffectedTableCells'](_0x2ff4bc),_0x3c829d=_0x20bc9b[0x0]['findAncestor']('table');let _0x4bdb87;if('removeTableRow'==_0x10d8ba){const _0x568937=_0x5d8cab['getRowIndexes'](_0x20bc9b);_0x4bdb87={'startRow':_0x568937['first'],'endRow':_0x568937['last'],'includeAllSlots':!0x0};}else{const _0x3c8dd5=_0x5d8cab['getColumnIndexes'](_0x20bc9b);_0x4bdb87={'startColumn':_0x3c8dd5['first'],'endColumn':_0x3c8dd5['last'],'includeAllSlots':!0x0};}const _0x3524c1=_0x5d8cab['createTableWalker'](_0x3c829d,_0x4bdb87),_0x7f948=Array['from'](_0x3524c1)['map'](({cell:_0x2caf13})=>_0x2caf13),_0x445b3e=Ne(_0x7f948['filter'](_0x5827cb=>_0x5827cb['hasAttribute'](_0x5f4d93))),_0x163e09=Ne(_0x7f948['filter'](_0x4e4498=>!_0x4e4498['hasAttribute'](_0x5f4d93)))['map'](_0x2f47a0=>_0x529c58['createRangeOn'](_0x2f47a0)),_0x2e3930=_0x299481['markMultiRangeDeletion'](_0x163e09,_0x59beeb);if(_0x2e3930&&('tableRow'==_0x2e3930['subType']||'tableColumn'==_0x2e3930['subType'])){const _0x147c85=this['_getSuggestionCoords'](_0x2e3930);for(const _0x56cd2e of _0x445b3e){const _0x3d4519=_0x529c58['createRangeOn'](_0x56cd2e),_0xc25a10=_0x5d8cab['getCellLocation'](_0x56cd2e),_0x2a9f22=_0x56cd2e['getAttribute'](_0x5f4d93)-0x1,_0x15732b=_0x147c85[_0x5226f4],_0x23656f=_0x147c85[_0x26f785];_0x15732b<=_0xc25a10[_0xc56d6]&&_0xc25a10[_0xc56d6]+_0x2a9f22<=_0x23656f&&_0x2e3930['addRange'](_0x3d4519);}}});});}function _0x4ae348(_0x3cecca){const _0x186ac3=Array['from'](_0x2ff4bc['getRanges']())['map'](_0x2bb40d=>_0x32c262['fromRange'](_0x2bb40d));_0x64fbb0['model']['change'](_0x369485=>{const _0x3b69e1=_0x369485['batch'];_0x3cecca=_0x3cecca['filter'](_0x28c3b7=>'$graveyard'!=_0x28c3b7['root']['rootName']),_0x369485['setSelection'](_0x3cecca),_0x64fbb0['commands']['get']('removeTableRow')['refresh'](),_0x64fbb0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x64fbb0['model']['enqueueChange'](()=>{_0x64fbb0['model']['enqueueChange'](_0x3b69e1,_0x299c29=>{const _0x5c2e7d=_0x186ac3['filter'](_0x52a58e=>'$graveyard'!=_0x52a58e['root']['rootName']);_0x5c2e7d['length']>0x0&&_0x299c29['setSelection'](_0x5c2e7d);for(const _0x51cea4 of _0x186ac3)_0x51cea4['detach']();});});});}function _0x4499c8(_0x28744a){_0x64fbb0['model']['change'](_0x4af7eb=>{const _0x5e094e=Array['from'](_0x2ff4bc['getRanges']())['map'](_0x104486=>_0x32c262['fromRange'](_0x104486)),_0x562513=[];for(const _0xce4142 of _0x28744a)for(const _0x3d0da0 of _0xce4142['getItems']({'shallow':!0x0}))_0x562513['push'](_0x3d0da0);for(const _0x27aaaf of _0x562513)'$graveyard'!=_0x27aaaf['root']['rootName']&&(_0x4af7eb['setSelection'](_0x4af7eb['createPositionAt'](_0x27aaaf,0x0)),_0x64fbb0['commands']['get']('removeTableColumn')['refresh'](),_0x64fbb0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x165de2=_0x5e094e['filter'](_0x3955c8=>'$graveyard'!=_0x3955c8['root']['rootName']);_0x165de2['length']>0x0&&_0x4af7eb['setSelection'](_0x165de2);for(const _0x446a59 of _0x5e094e)_0x446a59['detach']();});}function _0x7337e8(_0x4c75b1,_0xa2088e){return _0xa2088e['every'](_0x3cf7f0=>_0x4c75b1['some'](_0x2cef3e=>_0x2cef3e['end']['isEqual'](_0x3cf7f0['start'])||_0x3cf7f0['end']['isEqual'](_0x2cef3e['start'])));}function _0x5ec437(_0x308d1f,_0x4f07bf){return!_0x308d1f['some'](_0x591e3d=>_0x4f07bf['some'](_0x131bf5=>_0x591e3d['isIntersecting'](_0x131bf5)))&&_0x308d1f['some'](_0x3e044d=>_0x4f07bf['some'](_0x22da23=>_0x3e044d['end']['isTouching'](_0x22da23['start'])));}_0x64fbb0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x79fb79,_0x37fe9e,_0x495342)=>{if(!_0x495342['options']['showSuggestionHighlights'])return;const _0x39d495=_0x37fe9e['item'];if(!_0x39d495)return;const _0x22f703=_0x495342['mapper']['toViewElement'](_0x39d495);function _0x29be75(_0x38d1fe){return Array['isArray'](_0x38d1fe)?_0x38d1fe:[_0x38d1fe];}_0x22f703&&'tableCell'===_0x39d495['name']&&_0x96eb99(_0x22f703,_0x495342['writer'],(_0x49914a,_0x463d70,_0x3f5d8c)=>_0x3f5d8c['addClass'](_0x29be75(_0x463d70['classes']),_0x49914a),(_0x11357a,_0xc25ff2,_0x3d1b0e)=>_0x3d1b0e['removeClass'](_0x29be75(_0xc25ff2['classes']),_0x11357a));},{'priority':'highest'}),_0x299481['descriptionFactory']['registerDescriptionCallback'](_0x211a97=>{if('insertion'!=_0x211a97['type']&&'deletion'!=_0x211a97['type'])return;const _0x1942aa=_0x211a97['getContainedElement']();if(null!=_0x1942aa&&_0x1942aa['is']('element','table')){if('insertion'==_0x211a97['type']){const _0x3b3bd4=_0x211a97['getItems']()['filter'](_0x49b6da=>_0x49b6da['is']('$textProxy'))['map'](_0x452eff=>_0x452eff['data']);if(_0x3b3bd4['length'])return{'type':'insertion','content':c(_0xa496bb,'*Insert:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3b3bd4['join']('\x20')+'\x22'))};}if('deletion'==_0x211a97['type']){const _0x2d35ff=_0x211a97['getItems']()['filter'](_0x36e59a=>_0x36e59a['is']('$textProxy'))['map'](_0x587b4c=>_0x587b4c['data']);if(_0x2d35ff['length'])return{'type':'deletion','content':c(_0xa496bb,'*Remove:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d35ff['join']('\x20')+'\x22'))};}}}),_0x299481['descriptionFactory']['registerDescriptionCallback'](_0x159644=>{if('tableRow'==_0x159644['subType']){const _0x5d7e39=_0x159644['getItems']()['filter'](_0x452954=>_0x452954['is']('$textProxy'))['map'](_0x5b8365=>_0x5b8365['data']),_0x381129=this['_getSuggestionCoords'](_0x159644),_0x3bbfaf=_0x381129['maxRow']-_0x381129['minRow']+0x1;if('insertion'==_0x159644['type'])return _0x5d7e39['length']?{'type':'insertion','content':c(_0xa496bb,'*Insert:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3bbfaf,'\x22'+_0x5d7e39['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xa496bb,'*Insert:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_ROW',_0x3bbfaf))};if('deletion'==_0x159644['type'])return _0x5d7e39['length']?{'type':'deletion','content':c(_0xa496bb,'*Remove:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3bbfaf,'\x22'+_0x5d7e39['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xa496bb,'*Remove:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_ROW',_0x3bbfaf))};}if('tableColumn'==_0x159644['subType']){const _0x5d93ab=_0x159644['getItems']()['filter'](_0x813fd8=>_0x813fd8['is']('$textProxy'))['map'](_0x323299=>_0x323299['data']),_0x106b9f=this['_getSuggestionCoords'](_0x159644),_0x2ef2e0=_0x106b9f['maxColumn']-_0x106b9f['minColumn']+0x1;if('insertion'==_0x159644['type'])return _0x5d93ab['length']?{'type':'insertion','content':c(_0xa496bb,'*Insert:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2ef2e0,'\x22'+_0x5d93ab['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xa496bb,'*Insert:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_COLUMN',_0x2ef2e0))};if('deletion'==_0x159644['type'])return _0x5d93ab['length']?{'type':'deletion','content':c(_0xa496bb,'*Remove:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2ef2e0,'\x22'+_0x5d93ab['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xa496bb,'*Remove:*\x20%0',c(_0xa496bb,'ELEMENT_TABLE_COLUMN',_0x2ef2e0))};}}),_0x299481['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4ae348),_0x299481['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4ae348),_0x299481['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4499c8),_0x299481['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4499c8),_0x299481['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x7337e8),_0x299481['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x7337e8),_0x299481['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5ec437),_0x299481['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5ec437);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1cf9cb=this['editor'],_0x4de1a8=_0x1cf9cb['model']['document']['selection'];return(_0x4be3d8,_0x11750c)=>{_0x1cf9cb['model']['change'](_0x156d01=>{const {commandName:_0x395986,commandParams:_0x57eace}=_0x11750c;let _0x340e27=_0x4be3d8[0x0]['end']['nodeBefore'];_0x57eace&&_0x57eace[0x0]&&!0x1===_0x57eace[0x0]['forceValue']&&(_0x340e27=_0x4be3d8[0x0]['start']['nodeAfter']);const _0x3a3a9d=_0x156d01['createRangeIn'](_0x340e27);if('$graveyard'==_0x3a3a9d['root']['rootName'])return;const _0x36e7b0=Array['from'](_0x4de1a8['getRanges']())['map'](_0x290b5e=>_0x32c262['fromRange'](_0x290b5e));_0x156d01['setSelection'](_0x3a3a9d),_0x1cf9cb['commands']['get'](_0x395986)['refresh'](),_0x57eace['push']({'forceDefaultExecution':!0x0}),_0x1cf9cb['execute'](_0x395986,..._0x57eace);const _0x3bfa0c=_0x36e7b0['filter'](_0x138d5d=>'$graveyard'!=_0x138d5d['root']['rootName']);_0x3bfa0c['length']>0x0&&_0x156d01['setSelection'](_0x3bfa0c);for(const _0x5f22bb of _0x36e7b0)_0x5f22bb['detach']();});};}['_getCoordsForCells'](_0xf6abbf){const _0x44c82b=this['editor']['plugins']['get']('TableUtils');let _0x299ffd=Number['MAX_SAFE_INTEGER'],_0xad55d8=Number['MIN_SAFE_INTEGER'],_0x3894c5=Number['MAX_SAFE_INTEGER'],_0x4022ed=Number['MIN_SAFE_INTEGER'];for(const _0x221995 of _0xf6abbf){if('$graveyard'==_0x221995['root']['rootName'])continue;const {row:_0x3f35c8,column:_0x3168bb}=_0x44c82b['getCellLocation'](_0x221995),_0x23307a=_0x221995['hasAttribute']('rowspan')?_0x221995['getAttribute']('rowspan')-0x1:0x0,_0x354575=_0x221995['hasAttribute']('colspan')?_0x221995['getAttribute']('colspan')-0x1:0x0;_0x299ffd=_0x3f35c8<_0x299ffd?_0x3f35c8:_0x299ffd,_0xad55d8=_0x3f35c8+_0x23307a>_0xad55d8?_0x3f35c8+_0x23307a:_0xad55d8,_0x3894c5=_0x3168bb<_0x3894c5?_0x3168bb:_0x3894c5,_0x4022ed=_0x3168bb+_0x354575>_0x4022ed?_0x3168bb+_0x354575:_0x4022ed;}return{'minRow':_0x299ffd,'maxRow':_0xad55d8,'minColumn':_0x3894c5,'maxColumn':_0x4022ed};}['_setupColumnsRowsFixing'](){const _0x3331f6=this['editor'],_0x3f29f4=_0x3331f6['plugins']['get']('TrackChangesEditing'),_0xc4681d=_0x3331f6['plugins']['get']('TableUtils');_0x3331f6['model']['document']['on']('change:data',()=>{const _0x48ee4e=Array['from'](_0x3331f6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49fed7,data:_0x5d03b0}of _0x48ee4e){const {group:_0x4c6fd4,id:_0x3d2ac4,subType:_0x5a8e88}=_0x3f29f4['_splitMarkerName'](_0x49fed7);if('suggestion'!=_0x4c6fd4)continue;if(null!=_0x5d03b0['oldRange'])continue;const _0x34452c=_0x3f29f4['getSuggestion'](_0x3d2ac4);this['_tablePostFixingSubtypes']['includes'](_0x5a8e88)&&this['_tableSuggestions']['add'](_0x34452c);}},{'priority':'low'});const _0x17fa3d=(_0x3fab86,_0x549de0)=>{let _0x53b02d=!0x1;const _0x394865=_0x549de0['createRangeOn'](_0x3fab86),_0x522de5=_0x3fab86['findAncestor']('table'),_0x33a195=_0xc4681d['getCellLocation'](_0x3fab86);for(const _0x4dff44 of this['_tableSuggestions']){const _0x3f07d9=_0x4dff44['subType'],_0x5b279e=_0x3f07d9['startsWith']('tablePaste'),_0x1a70ed=_0x3f07d9['substr'](_0x5b279e?0xa:0x5),_0x31e8c8=_0x1a70ed['toLowerCase'](),_0x3a7e54=_0x31e8c8['substr'](0x0,0x3)+'span',_0x5e7d87='min'+_0x1a70ed,_0x1a6ff5='max'+_0x1a70ed;if(!_0x4dff44['isInContent'])continue;if(_0x522de5!=_0x4dff44['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4dff44['isIntersectingWithRange'](_0x394865))continue;const _0x1add1b=_0x3fab86['hasAttribute'](_0x3a7e54)?_0x3fab86['getAttribute'](_0x3a7e54)-0x1:0x0,_0x5e962b=this['_getSuggestionCoords'](_0x4dff44),_0x5d787a=_0x5e962b[_0x5e7d87],_0x568b05=_0x5e962b[_0x1a6ff5];_0x5d787a<=_0x33a195[_0x31e8c8]&&_0x33a195[_0x31e8c8]+_0x1add1b<=_0x568b05&&(_0x4dff44['addRange'](_0x394865),_0x53b02d=!0x0);}return _0x53b02d;};_0x3331f6['model']['document']['registerPostFixer'](_0x5e5807=>{let _0x2a3113=!0x1;for(const _0x5a0354 of _0x3331f6['model']['document']['differ']['getChanges']())if('insert'==_0x5a0354['type']){if('tableRow'==_0x5a0354['name']){for(const _0x1e0f45 of _0x5a0354['position']['nodeAfter']['getChildren']())_0x2a3113=_0x2a3113||_0x17fa3d(_0x1e0f45,_0x5e5807);}else'tableCell'==_0x5a0354['name']&&(_0x2a3113=_0x2a3113||_0x17fa3d(_0x5a0354['position']['nodeAfter'],_0x5e5807));}return _0x2a3113;});}['_getSuggestionCoords'](_0x1f6766){return this['_getCoordsForCells'](_0x1f6766['getRanges']()['map'](_0x2d59f8=>_0x2d59f8['start']['nodeAfter']));}}function Ne(_0x4cab12){return Array['from'](new Set(_0x4cab12)['values']());}class Nt extends _0x51821d{static get['requires'](){return[Ct];}['afterInit'](){const _0x20ebdc=this['editor'],_0x3fc174=_0x20ebdc['model']['document']['selection'],_0x41f443=_0x20ebdc['locale'];if(!_0x20ebdc['plugins']['has']('TableEditing'))return;const _0x54c024=_0x20ebdc['plugins']['get']('TrackChangesEditing'),_0x3dc19e=_0x20ebdc['plugins']['get']('TableUtils'),_0x42da07=_0x20ebdc['plugins']['get'](Ct);_0x42da07['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x54c024['enableCommand']('mergeTableCells',()=>{const _0x1de9c6=_0x3dc19e['getSelectionAffectedTableCells'](_0x20ebdc['model']['document']['selection']);_0x20ebdc['model']['change'](()=>{_0x54c024['markMultiRangeBlockFormat'](_0x1de9c6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x20ebdc['commands']['get']('mergeTableCells')['on']('execute',(_0x18f27c,_0xac264d)=>{_0x20ebdc['commands']['get']('trackChanges')['value']&&(_0xac264d['length']>0x0&&_0xac264d[_0xac264d['length']-0x1]&&_0xac264d[_0xac264d['length']-0x1]['forceDefaultExecution']||_0x54c024['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x18f27c['stop']());},{'priority':'highest'});for(const _0x53acc7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x284383=_0x20ebdc['commands']['get'](_0x53acc7);_0x54c024['enableCommand'](_0x53acc7,()=>{const _0x4ec750=_0x20ebdc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x239c34=>_0x239c34['is']('element','tableCell')),_0x45d9e8=_0x284383['value'];_0x20ebdc['model']['change'](()=>{_0x54c024['markMultiRangeBlockFormat']([_0x4ec750,_0x45d9e8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4ce152 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x332ab4=_0x20ebdc['commands']['get'](_0x4ce152);_0x54c024['enableCommand'](_0x4ce152,()=>{const _0x58bc3f=_0x3dc19e['getSelectionAffectedTableCells'](_0x20ebdc['model']['document']['selection'])[0x0],_0x46eda8=_0x58bc3f['findAncestor']('table'),{column:_0x8ce52a,row:_0x56f4f6}=_0x3dc19e['getCellLocation'](_0x58bc3f);let _0x2ca185=[];if('horizontally'==_0x332ab4['direction']){const _0x309eac=_0x3dc19e['createTableWalker'](_0x46eda8,{'startRow':_0x56f4f6,'endRow':_0x56f4f6,'includeAllSlots':!0x0});_0x2ca185=Array['from'](_0x309eac)['map'](_0x49790d=>_0x49790d['cell']);}else{const _0xe3fb43=_0x3dc19e['createTableWalker'](_0x46eda8,{'column':_0x8ce52a,'includeAllSlots':!0x0});_0x2ca185=Array['from'](_0xe3fb43)['map'](_0x4b32e6=>_0x4b32e6['cell']);}_0x20ebdc['model']['change'](_0x132df6=>{_0x54c024['markBlockFormat'](_0x132df6['createRangeOn'](_0x58bc3f),{'commandName':_0x4ce152,'commandParams':[]},_0x2ca185,_0x4ce152);});});}_0x54c024['descriptionFactory']['registerDescriptionCallback'](_0x229661=>{if('formatBlock'!=_0x229661['type']&&'formatInline'!=_0x229661['type'])return;const {data:_0x31d5e5}=_0x229661;return _0x31d5e5&&'mergeTableCells'==_0x31d5e5['commandName']?{'type':'format','content':c(_0x41f443,'*Merge\x20cells*')}:void 0x0;}),_0x54c024['descriptionFactory']['registerDescriptionCallback'](_0x2aff08=>{if('formatBlock'!=_0x2aff08['type']&&'formatInline'!=_0x2aff08['type'])return;const {data:_0x435766}=_0x2aff08;return _0x435766?'splitTableCellVertically'==_0x435766['commandName']?{'type':'format','content':c(_0x41f443,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x435766['commandName']?{'type':'format','content':c(_0x41f443,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x6b2cba=_0x42da07['_acceptFormatSuggestionCallbackFactory']();for(const _0x58f1a1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x54c024['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x58f1a1,'accept',_0x6b2cba);for(const _0x7f9779 of['splitTableCellVertically','splitTableCellHorizontally'])_0x54c024['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x7f9779,'accept',_0x6b2cba);_0x54c024['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x327476=>{_0x20ebdc['model']['change'](_0x441396=>{const _0x518065=Array['from'](_0x3fc174['getRanges']())['map'](_0x31ff9a=>_0x32c262['fromRange'](_0x31ff9a));_0x441396['setSelection'](_0x327476),_0x20ebdc['commands']['get']('mergeTableCells')['refresh'](),_0x20ebdc['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4faa51=_0x518065['filter'](_0x1214d9=>'$graveyard'!=_0x1214d9['root']['rootName']);_0x4faa51['length']>0x0&&_0x441396['setSelection'](_0x4faa51);for(const _0x101a47 of _0x518065)_0x101a47['detach']();});});for(const _0x43dcc9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2055df=_0x20ebdc['commands']['get'](_0x43dcc9);_0x2055df['on']('set:isEnabled',(_0x5eb123,_0x541394,_0x173f13)=>{if(_0x173f13){const _0x5ba949=_0x20ebdc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x597c49=>_0x597c49['is']('element','tableCell'));this['_areMergableCells'](_0x2055df['value'],_0x5ba949)||(_0x5eb123['return']=!0x1,_0x5eb123['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x33b346=this['editor']['commands']['get']('mergeTableCells'),_0x224c8d=this['editor']['plugins']['get']('TableUtils');if(!_0x33b346['isEnabled'])return!0x1;const _0xdc97f9=_0x224c8d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5406f4 of _0xdc97f9)for(const _0x999fb of _0xdc97f9)if(_0x5406f4!=_0x999fb&&!this['_areMergableCells'](_0x5406f4,_0x999fb))return!0x1;return!0x0;}['_areMergableCells'](_0x1ac6bd,_0x339f43){const _0x1a3e9d=this['editor']['plugins']['get']('TrackChangesEditing'),_0xce91a4=this['editor']['model']['createRangeOn'](_0x1ac6bd),_0xa4d2ef=this['editor']['model']['createRangeOn'](_0x339f43),_0x75595a=new Set(),_0x4f89a9=new Set();for(const _0x11286f of _0x1a3e9d['getSuggestions']())if(('insertion'==_0x11286f['type']||'deletion'==_0x11286f['type']||'mergeTableCells'==_0x11286f['subType'])&&_0x11286f['isInContent']){for(const _0x4f2b4d of _0x11286f['getRanges']())_0x4f2b4d['containsRange'](_0xce91a4,!0x0)&&_0x75595a['add'](_0x11286f['type']+':'+_0x11286f['author']['id']),_0x4f2b4d['containsRange'](_0xa4d2ef,!0x0)&&_0x4f89a9['add'](_0x11286f['type']+':'+_0x11286f['author']['id']);}if(_0x75595a['size']!=_0x4f89a9['size'])return!0x1;for(const _0x57e44 of _0x75595a)if(!_0x4f89a9['has'](_0x57e44))return!0x1;return!0x0;}}class Dt extends _0x51821d{static get['requires'](){return[Ct];}['afterInit'](){const _0x44505f=this['editor'];if(!_0x44505f['plugins']['has']('TableEditing'))return;const _0xede646=_0x44505f['locale'],_0x3a4201=_0x44505f['plugins']['get']('TrackChangesEditing');_0x3a4201['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3a4201['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3a4201['registerBlockAttribute']('headingRows'),_0x3a4201['registerBlockAttribute']('headingColumns'),_0x3a4201['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0xede646,'FORMAT_HEADER_ROW')),_0x3a4201['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0xede646,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x56af7b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bfdc3=this['editor']['plugins']['get']('TableUtils'),_0xff02c4=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x30555c({showActiveMarker:_0x226911=!0x0,setDataAttribute:_0x74c914=!0x0}={}){return(_0x2035d7,_0x3ae6f8,_0x3568b4)=>{const {type:_0x5c1eef,id:_0x4ffbee}=_0x56af7b['_splitMarkerName'](_0x3ae6f8['markerName']),_0x36949c=_0x56af7b['getSuggestion'](_0x4ffbee),_0x1851e2=_0x36949c['data'];if('formatBlock'!=_0x36949c['type']||!_0x1851e2||'setTableColumnHeader'!=_0x1851e2['commandName'])return;if(_0x3ae6f8['item'])return void _0x2035d7['stop']();if(!_0x3568b4['consumable']['consume'](_0x3ae6f8['markerRange'],_0x2035d7['name']))return;const _0x299d00=_0x3ae6f8['markerRange']['start']['nodeAfter'],_0x394783=_0x3ae6f8['markerRange']['end']['nodeBefore'],_0x18418c=_0x299d00['parent']['parent'],{column:_0x3dac76}=_0x5bfdc3['getCellLocation'](_0x299d00),{column:_0x54b442}=_0x5bfdc3['getCellLocation'](_0x394783);for(let _0x162d9a=_0x3dac76;_0x162d9a<=_0x54b442;_0x162d9a++){const _0x3c4b9e=_0x5bfdc3['createTableWalker'](_0x18418c,{'column':_0x162d9a,'includeAllSlots':!0x1});for(const _0x16af62 of _0x3c4b9e){const _0x5d0c68=_0x16af62['cell'],_0x6d900c=_0x3568b4['mapper']['toViewElement'](_0x5d0c68);_0x3568b4['writer']['addClass']('ck-suggestion-marker-'+_0x5c1eef,_0x6d900c),_0x74c914&&_0x3568b4['writer']['setAttribute']('data-suggestion',_0x4ffbee,_0x6d900c),_0x3568b4['mapper']['bindElementToMarker'](_0x6d900c,_0x3ae6f8['markerName']),_0x226911&&(_0x56af7b['activeMarkers']['includes'](_0x3ae6f8['markerName'])?_0x3568b4['writer']['addClass']('ck-suggestion-marker--active',_0x6d900c):_0x3568b4['writer']['removeClass']('ck-suggestion-marker--active',_0x6d900c));}}};}_0x56af7b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xff02c4),_0x56af7b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xff02c4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x30555c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x209962,_0x4bdb50,_0x1a923e)=>{_0x1a923e['options']['showSuggestionHighlights']&&_0x30555c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x209962,_0x4bdb50,_0x1a923e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1d03b7,_0x3c8482,_0x4fae59)=>{const {type:_0x1c4377,id:_0x5d46f7}=_0x56af7b['_splitMarkerName'](_0x3c8482['markerName']),_0x4575ae=_0x56af7b['getSuggestion'](_0x5d46f7),_0x5a41fa=_0x4575ae['data'];if('formatBlock'!=_0x4575ae['type']||!_0x5a41fa||'setTableColumnHeader'!=_0x5a41fa['commandName'])return;const _0x50169d=_0x4fae59['mapper']['markerNameToElements'](_0x3c8482['markerName']);if(_0x50169d){for(const _0x10e3e2 of _0x50169d)_0x4fae59['writer']['removeClass']('ck-suggestion-marker-'+_0x1c4377,_0x10e3e2),_0x4fae59['writer']['removeClass']('ck-suggestion-marker--active',_0x10e3e2),_0x4fae59['writer']['removeAttribute']('data-suggestion',_0x10e3e2),_0x4fae59['mapper']['unbindElementFromMarkerName'](_0x10e3e2,_0x3c8482['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x234b91=this['editor'],_0x1d97a7=_0x234b91['locale'];function _0x1da55b(_0x36c0a7){return{'type':'format','content':c(_0x1d97a7,'*Format:*\x20%0',_0x36c0a7)};}_0x234b91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dc15e=>{if('formatBlock'!=_0x5dc15e['type'])return;const {data:_0x4a0c6d}=_0x5dc15e;if(_0x4a0c6d){if('setTableRowHeader'==_0x4a0c6d['commandName']){const _0x2b00c0=_0x4a0c6d['commandParams'][0x0]['forceValue'];return _0x1da55b(c(_0x1d97a7,_0x2b00c0?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4a0c6d['commandName']){const _0x18a060=_0x4a0c6d['commandParams'][0x0]['forceValue'];return _0x1da55b(c(_0x1d97a7,_0x18a060?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x51821d{['afterInit'](){const _0x5d638d=this['editor'],_0x6b4440=_0x5d638d['locale'],_0x49a546=_0x5d638d['plugins']['get']('TrackChangesEditing');function _0x3d29e2(_0x5c5fc2){return{'type':'format','content':''+c(_0x6b4440,'*Set\x20table\x20type:*\x20%0',_0x5c5fc2)};}_0x5d638d['plugins']['has']('TableLayout')&&(_0x49a546['enableCommand']('insertTableLayout'),_0x49a546['enableDefaultAttributesIntegration']('tableType'),_0x49a546['registerBlockAttribute']('tableType'),_0x49a546['descriptionFactory']['registerElementLabel'](_0xe2cec3=>_0xe2cec3['is']('element','table')&&'layout'===_0xe2cec3['getAttribute']('tableType'),_0x57153f=>c(_0x6b4440,'ELEMENT_LAYOUT_TABLE',_0x57153f)),_0x49a546['descriptionFactory']['registerDescriptionCallback'](_0x9bb6c2=>{const {data:_0x490233}=_0x9bb6c2;if(_0x490233&&'tableType'==_0x490233['key'])switch(_0x490233['newValue']){case'layout':return _0x3d29e2(c(_0x6b4440,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3d29e2(c(_0x6b4440,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x2ad92a=>[_0x2ad92a,null]));class $t extends _0x51821d{static get['requires'](){return[Ct];}['afterInit'](){const _0x2f45b3=this['editor'];if(!_0x2f45b3['plugins']['has']('TableClipboard'))return;const _0x391e03=_0x2f45b3['plugins']['get']('TrackChangesEditing'),_0x3e6a5e=_0x2f45b3['plugins']['get']('TableUtils'),_0x2f8d09=_0x2f45b3['plugins']['get'](Ct),_0x3672db=_0x2f45b3['plugins']['get']('TableClipboard'),_0x18c0f9=_0x2f45b3['plugins']['get']('TableSelection'),_0x5e1eb0=_0x2f45b3['plugins']['get'](_0x2d79c0);_0x2f8d09['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2f45b3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2f45b3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x522ad3=null,_0x105be9=!0x1;_0x5e1eb0['on']('contentInsertion',(_0x554eb6,_0x3b948c)=>{_0x105be9='paste'===_0x3b948c['method'];}),_0x2f45b3['model']['on']('insertContent',(_0x3dbaaf,_0x33477f)=>{if(!_0x105be9&&null===_0x18c0f9['getSelectedTableCells']())return;const [_0xff4263,_0xc53288]=_0x33477f,_0x3ab160=_0x33477f[_0x33477f['length']-0x1];_0x3ab160&&_0x3ab160['forceDefaultExecution']||_0x391e03['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x144f4e,_0x4df2f4,_0xefc3d2,_0x29cb8a,_0x3498ab){if(_0x4df2f4&&!_0x4df2f4['is']('documentSelection'))return!0x1;const _0x5a5a5d=_0x3498ab['getTableIfOnlyTableInContent'](_0x144f4e,_0xefc3d2);if(!_0x5a5a5d||!De(_0x5a5a5d,void 0x0,_0x29cb8a))return!0x1;const _0x3ca9d7=_0x29cb8a['getSelectionAffectedTableCells'](_0xefc3d2['document']['selection']);if(!_0x3ca9d7['length'])return!0x1;const _0x3386ae=_0x3ca9d7[0x0]['findAncestor']('table'),_0x46dbd1=_0x29cb8a['getRowIndexes'](_0x3ca9d7),_0x109405=_0x29cb8a['getColumnIndexes'](_0x3ca9d7),_0x28bd58={'startRow':_0x46dbd1['first'],'endRow':_0x46dbd1['last'],'startColumn':_0x109405['first'],'endColumn':_0x109405['last']};return 0x1==_0x3ca9d7['length']&&(_0x28bd58['endRow']+=_0x29cb8a['getRows'](_0x5a5a5d)-0x1,_0x28bd58['endColumn']+=_0x29cb8a['getColumns'](_0x5a5a5d)-0x1),De(_0x3386ae,_0x28bd58,_0x29cb8a);}(_0xff4263,_0xc53288,_0x2f45b3['model'],_0x3e6a5e,_0x3672db)&&(_0x3dbaaf['stop'](),_0x522ad3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2f45b3['model']['change'](()=>{_0x2f45b3['model']['insertContent'](_0x33477f[0x0],_0x33477f[0x1],_0x33477f[0x2],{'forceDefaultExecution':!0x0});const _0x516adb=_0x28fc1d(),{rowInsertionRanges:_0x944161,columnInsertionRanges:_0x21a7d7,insertionRanges:_0x4474b3,deletionRanges:_0x4988f4,cells:_0x3bec74}=_0x522ad3;_0x944161['length']&&_0x391e03['markMultiRangeInsertion'](_0x944161,'tablePasteRow',{'tablePasteChainId':_0x516adb}),_0x21a7d7['length']&&_0x391e03['markMultiRangeInsertion'](_0x21a7d7,'tablePasteColumn',{'tablePasteChainId':_0x516adb}),_0x4474b3['length']&&(_0x391e03['markMultiRangeInsertion'](_0x4474b3,'tablePaste',{'tablePasteChainId':_0x516adb,'skipNestingCheck':!0x0}),_0x4474b3['forEach'](_0x553cfe=>_0x553cfe['detach']?.())),_0x4988f4['length']&&(_0x391e03['markMultiRangeDeletion'](_0x4988f4,'tablePaste',{'tablePasteChainId':_0x516adb,'skipNestingCheck':!0x0}),_0x4988f4['forEach'](_0x46de93=>_0x46de93['detach']?.()));const _0x234561=_0x391e03['markMultiRangeBlockFormat'](_0x3bec74['map'](({element:_0x2f9388})=>_0x2f9388),{'formatGroupId':_0x28fc1d()},[],'tablePasteCell',{'tablePasteChainId':_0x516adb});if(_0x234561){const _0x2fd0e1=_0x234561['getMarkers'](),_0x5afbb7=[];for(const {element:_0x40c583,attributes:_0x254ab7}of _0x3bec74){if(!_0x254ab7)continue;const _0xf6d046=_0x2f45b3['model']['createRangeOn'](_0x40c583),_0x16f5b7=_0x2fd0e1['find'](_0x188a4e=>_0x188a4e['getRange']()['isEqual'](_0xf6d046));_0x16f5b7&&_0x5afbb7['push']([_0x16f5b7['name'],_0x254ab7]);}_0x5afbb7['length']&&_0x234561['setAttribute']('markerAttributes',Object['fromEntries'](_0x5afbb7));}_0x522ad3=null;}));},{'priority':_0x2fc864['high']+0xa}),_0x5e1eb0['on']('contentInsertion',()=>{_0x105be9=!0x1;},{'priority':'lowest'}),_0x2f45b3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1b6f03,_0x3469d7)=>{const [_0x5981ad,_0x571be9,,_0x1df94f]=_0x3469d7;if(!_0x522ad3)return;_0x1b6f03['stop']();const _0x463c7c=_0x5981ad['cell'],_0x30addc=_0x571be9,_0x23b8fd=Ue(_0x463c7c),_0x4707f0=Ue(_0x30addc);_0x1b6f03['return']=_0x463c7c;let _0xb15280=null,_0x94e4b7=null;if(_0x4707f0||_0x23b8fd){if(_0x23b8fd&&!_0x4707f0){_0x1df94f['remove'](_0x463c7c['getChild'](0x0));for(const _0x1f606d of Array['from'](_0x30addc['getChildren']()))_0x1df94f['insert'](_0x1f606d,_0x463c7c,'end');const _0xb54792=_0x522ad3['rowInsertionIndexes']['includes'](_0x5981ad['row']),_0x9ba453=_0x522ad3['columnInsertionIndexes']['includes'](_0x5981ad['column']);_0xb54792||_0x9ba453||(_0xb15280=_0x32c262['fromRange'](_0x1df94f['createRangeIn'](_0x463c7c)));}else _0x4707f0&&!_0x23b8fd&&(_0x94e4b7=_0x1df94f['createRangeIn'](_0x463c7c));}else{const _0x1cedd4=_0x1df94f['createElement']('tableCellSuggestion'),_0x3b7594=_0x1df94f['createElement']('tableCellSuggestion');_0x1df94f['wrap'](_0x1df94f['createRangeIn'](_0x463c7c),_0x3b7594),_0x1df94f['insert'](_0x1cedd4,_0x463c7c,0x0);for(const _0x584965 of Array['from'](_0x30addc['getChildren']()))_0x1df94f['insert'](_0x584965,_0x1cedd4,'end');_0xb15280=_0x32c262['fromRange'](_0x1df94f['createRangeOn'](_0x1cedd4)),_0x94e4b7=_0x32c262['fromRange'](_0x1df94f['createRangeOn'](_0x3b7594));}const _0xcb0b06=Array['from'](_0x30addc['getAttributes']())['filter'](([_0x35c21a])=>xe['includes'](_0x35c21a));_0x522ad3['cells']['push']({'element':_0x463c7c,'attributes':_0xcb0b06['length']?Object['fromEntries'](_0xcb0b06):null}),_0xb15280&&_0x522ad3['insertionRanges']['push'](_0xb15280),_0x94e4b7&&_0x522ad3['deletionRanges']['push'](_0x94e4b7);},{'priority':'high'}),_0x3e6a5e['on']('insertColumns',(_0x5be766,_0x2e8bfb)=>{const [_0x18559b,_0x32533f={}]=_0x2e8bfb;if(!_0x522ad3)return;const _0x389aee=_0x32533f['at']||0x0,_0x5d95df=_0x32533f['columns']||0x1;_0x522ad3['columnInsertionIndexes']=new Array(_0x5d95df)['fill'](_0x389aee)['map']((_0x4cf757,_0x6e3f10)=>_0x4cf757+_0x6e3f10);for(const {cell:_0x363cc4}of _0x3e6a5e['createTableWalker'](_0x18559b,{'startColumn':_0x389aee,'endColumn':_0x389aee+_0x5d95df-0x1}))_0x522ad3['columnInsertionRanges']['push'](_0x2f45b3['model']['createRangeOn'](_0x363cc4));},{'priority':'low'}),_0x3e6a5e['on']('insertRows',(_0x1c6e54,_0x295b0e)=>{const [_0x4ad49d,_0xcbdc1a={}]=_0x295b0e;if(!_0x522ad3)return;const _0x16c3c4=_0xcbdc1a['at']||0x0,_0xa199ba=_0xcbdc1a['rows']||0x1;_0x522ad3['rowInsertionIndexes']=new Array(_0xa199ba)['fill'](_0x16c3c4)['map']((_0x4ff7b5,_0x807019)=>_0x4ff7b5+_0x807019);for(const {cell:_0x118b5b}of _0x3e6a5e['createTableWalker'](_0x4ad49d,{'startRow':_0x16c3c4,'endRow':_0x16c3c4+_0xa199ba-0x1}))_0x522ad3['rowInsertionRanges']['push'](_0x2f45b3['model']['createRangeOn'](_0x118b5b));},{'priority':'low'}),_0x391e03['descriptionFactory']['registerDescriptionCallback'](_0x2f14bb=>{if(_0x2f14bb['subType']&&_0x2f14bb['subType']['startsWith']('tablePaste'))return _0x2f14bb['previous']?{}:{'type':'insertion','content':c(_0x2f45b3['locale'],'*Replace\x20table\x20cells*')};});const _0x8eb5c0=()=>!0x1;for(const _0x4d4293 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x391e03['_suggestionFactory']['registerCustomCallback']('insertion',_0x4d4293,'join',_0x8eb5c0),_0x391e03['_suggestionFactory']['registerCustomCallback']('deletion',_0x4d4293,'join',_0x8eb5c0),_0x391e03['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d4293,'join',_0x8eb5c0);_0x391e03['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x8eb5c0),_0x391e03['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x256ff3,_0x1b82e4,_0x2c5f7e)=>{const _0x2dcb5b=_0x256ff3['map'](_0xb5a432=>_0xb5a432['getContainedElement']())['filter'](_0x119546=>_0x119546),_0x4e6ec8=new Map(_0x2dcb5b['map'](_0x3cd69c=>[_0x3cd69c,null]));if(_0x522ad3){for(const {element:_0x2761e9,attributes:_0x5efe85}of _0x522ad3['cells'])_0x5efe85&&_0x4e6ec8['set'](_0x2761e9,_0x5efe85);}else{if(_0x2c5f7e&&_0x2c5f7e['markerAttributes'])for(const [_0x583f54,_0x938f4a]of Object['entries'](_0x2c5f7e['markerAttributes'])){const _0x19c208=_0x2f45b3['model']['markers']['get'](_0x583f54),_0xd3640e=_0x19c208?_0x19c208['getRange']()['getContainedElement']():null;_0xd3640e&&_0x4e6ec8['set'](_0xd3640e,_0x938f4a);}}_0x2f45b3['model']['change'](_0x455158=>{for(const [_0x255aec,_0x449ec1]of _0x4e6ec8)_0x455158['setAttributes']({...Oe,..._0x449ec1},_0x255aec);});});const _0x40c15d=(_0x1b2a00,_0x15fb98)=>{_0x391e03['_suggestionFactory']['registerCustomCallback'](_0x1b2a00,'tablePaste',_0x15fb98,(_0xba1edf,_0x3595bc,_0x2c22b6)=>{_0x2f45b3['model']['change'](_0x234d47=>{const _0x3e4899=[];for(const _0x4acea4 of _0xba1edf){const _0x4cda51=_0x4acea4['start']['nodeAfter'];_0x4cda51['is']('element','tableCellSuggestion')&&_0x3e4899['push'](_0x4cda51);}_0x391e03['_suggestionFactory']['getSuggestionCallback'](_0x1b2a00,null,_0x15fb98)(_0xba1edf,_0x3595bc,_0x2c22b6);for(const _0xde638f of _0x3e4899)'$graveyard'!=_0xde638f['root']['rootName']&&_0x234d47['unwrap'](_0xde638f);});});};_0x40c15d('insertion','accept'),_0x40c15d('insertion','discard'),_0x40c15d('deletion','accept'),_0x40c15d('deletion','discard'),_0x391e03['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4b6b9b=>{const _0x2125fc=_0x4b6b9b['map'](_0x13ce09=>_0x13ce09['getContainedElement']()),_0x25ccaa=_0x2125fc[0x0]['findAncestor']('table'),{minRow:_0x342a4d,maxRow:_0x4c369a}=_0x2f8d09['_getCoordsForCells'](_0x2125fc);_0x3e6a5e['removeRows'](_0x25ccaa,{'at':_0x342a4d,'rows':_0x4c369a-_0x342a4d+0x1});}),_0x391e03['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2d88a2=>{const _0x576f4f=_0x2d88a2['map'](_0x13fc89=>_0x13fc89['getContainedElement']()),_0x4680a7=_0x576f4f[0x0]['findAncestor']('table'),{minColumn:_0x18afe3,maxColumn:_0xb5cb8a}=_0x2f8d09['_getCoordsForCells'](_0x576f4f);_0x3e6a5e['removeColumns'](_0x4680a7,{'at':_0x18afe3,'columns':_0xb5cb8a-_0x18afe3+0x1});});const _0x54cc0c=(_0x1e133f,_0x4c5b03)=>{if(!_0x4c5b03['subType']||!_0x4c5b03['subType']['startsWith']('tablePaste'))return;const _0x45433b=_0x4c5b03['attributes']['tablePasteChainId'],_0x49a34f=_0x391e03['getSuggestions']()['filter'](_0x33dbd4=>_0x33dbd4['isInContent']&&_0x33dbd4['attributes']&&_0x33dbd4['attributes']['tablePasteChainId']==_0x45433b);_0x49a34f['length']&&_0x4c5b03['getAllAdjacentSuggestions']()['length']!=_0x49a34f['length']&&_0x49a34f['reduce']((_0x2237f4,_0x480ceb)=>(_0x2237f4['next']=_0x480ceb,_0x480ceb['previous']=_0x2237f4,_0x480ceb));};function _0xd22986(_0x56b802,_0x35a15a=!0x0){const {id:_0x2af6e8,authorId:_0x1ddcb4}=_0x391e03['_splitMarkerName'](_0x56b802['markerName']),_0x2d6850=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x448109=_0x391e03['activeMarkers']['includes'](_0x56b802['markerName']);return _0x448109&&_0x2d6850['push']('ck-suggestion-marker--active'),{'classes':_0x2d6850,'attributes':{'data-suggestion':_0x2af6e8,'data-author-id':_0x1ddcb4},'priority':_0x448109&&_0x35a15a?0xbc2:0xbb8};}_0x391e03['on']('suggestionLoaded',_0x54cc0c,{'priority':'high'}),_0x391e03['on']('suggestionUnloaded',_0x54cc0c,{'priority':'high'}),_0x2f45b3['model']['document']['registerPostFixer'](()=>{let _0x56f647=!0x1;const _0x5c2e20=Array['from'](_0x2f45b3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x200ebc,data:_0x2c1ae0}of _0x5c2e20){const {group:_0x2bb903,type:_0x37b0ba,id:_0x17f6ef}=_0x391e03['_splitMarkerName'](_0x200ebc);if('suggestion'!=_0x2bb903||'deletion'!=_0x37b0ba||_0x2c1ae0['oldRange'])continue;if(!_0x391e03['hasSuggestion'](_0x17f6ef))continue;const _0x31c445=_0x391e03['getSuggestion'](_0x17f6ef)['getRanges'](),_0x10cf86=_0x2f45b3['plugins']['get']('Users')['me'];for(const _0xa03a84 of _0x391e03['getSuggestions']()){if(!_0xa03a84['isInContent']||_0xa03a84['author']!=_0x10cf86)continue;if('formatBlock'!=_0xa03a84['type']||'tablePasteCell'!=_0xa03a84['subType'])continue;if(_0xa03a84['getRanges']()['every'](_0x4d97f7=>_0x31c445['some'](_0x44014f=>_0x44014f['containsRange'](_0x4d97f7,!0x0)))){for(const _0x335208 of _0xa03a84['getAllAdjacentSuggestions']())_0x335208['isInContent']&&(_0x335208['discard'](),_0x56f647=!0x0);}}}return _0x56f647;}),_0x2f45b3['model']['document']['registerPostFixer'](_0x167824=>{const _0x27474b=_0x2f45b3['commands']['get']('redo');if(!_0x27474b||!_0x27474b['_createdBatches']['has'](_0x167824['batch']))return!0x1;let _0x3c5a0f=!0x1;const _0x47a1e8=_0x2f45b3['plugins']['get']('Users')['me'],_0x15ae0f=_0x2f45b3['model']['document']['differ']['getChanges'](),_0x25ab99=Array['from'](_0x2f45b3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x294344,data:_0x561d2e})=>{const {group:_0x41e881,subType:_0x144723,authorId:_0x1eed0a}=_0x391e03['_splitMarkerName'](_0x294344);return'suggestion'==_0x41e881&&'tablePaste'==_0x144723&&_0x1eed0a==_0x47a1e8['id']&&!_0x561d2e['oldRange'];});for(const _0x4496b8 of _0x15ae0f){if('insert'!=_0x4496b8['type']||'tableCellSuggestion'!=_0x4496b8['name']||0x1!=_0x4496b8['length'])continue;const _0x341ff7=_0x167824['createRange'](_0x4496b8['position'],_0x4496b8['position']['getShiftedBy'](0x1));if(!_0x25ab99['find'](({data:_0x3be8b0})=>_0x3be8b0['newRange']['isEqual'](_0x341ff7))){for(const {name:_0x1aabea,data:_0x39ff51}of _0x25ab99)if(_0x341ff7['containsRange'](_0x39ff51['newRange'])){_0x167824['updateMarker'](_0x1aabea,{'range':_0x341ff7}),_0x3c5a0f=!0x0;break;}}}return _0x3c5a0f;}),_0x2f45b3['model']['document']['registerPostFixer'](_0x2b6de6=>{let _0x1a6cf8=!0x1;const _0x94b875=_0x2f45b3['plugins']['get']('Users')['me'],_0x251965=_0x391e03['getSuggestions']()['filter'](_0x3ee494=>_0x3ee494['isInContent']&&_0x3ee494['author']==_0x94b875),_0x2dec73=new Set(),_0x1d362a=new Set();for(const _0x19c365 of _0x251965)if('tablePaste'==_0x19c365['subType'])for(const _0x4c7ed2 of _0x19c365['getMarkers']()){const _0x5344d5=_0x4c7ed2['getRange']()['getContainedElement']();if(_0x5344d5){if(_0x5344d5['is']('element','tableCellSuggestion')&&Ue(_0x5344d5)){_0x19c365['removeMarker'](_0x4c7ed2['name']),_0x2dec73['add'](_0x5344d5),_0x1a6cf8=!0x0;const _0x43befd=_0x5344d5['nextSibling'],_0x213309=_0x5344d5['previousSibling'],_0x5c8dd8=_0x43befd&&_0x43befd['is']('element','tableCellSuggestion'),_0x264cb1=_0x213309&&_0x213309['is']('element','tableCellSuggestion');_0x5c8dd8&&!_0x2dec73['has'](_0x43befd)&&_0x1d362a['add'](_0x43befd),_0x264cb1&&!_0x2dec73['has'](_0x213309)&&_0x1d362a['add'](_0x213309);}else _0x5344d5['is']('element','paragraph')&&_0x5344d5['isEmpty']&&(_0x19c365['removeMarker'](_0x4c7ed2['name']),_0x1a6cf8=!0x0);}}else{if('tablePasteCell'==_0x19c365['subType']){if(!_0x19c365['attributes']||!_0x19c365['attributes']['tablePasteChainId'])continue;const _0x2a010d=_0x19c365['attributes']['markerAttributes'];if(_0x2a010d&&Object['keys'](_0x2a010d)['length'])continue;const _0xaa293f=_0x19c365['attributes']['tablePasteChainId'];let _0x4c15a5=!0x0,_0x1912cd=!0x0;for(const _0x106f13 of _0x251965)if(_0x106f13['subType']&&_0x106f13['subType']['startsWith']('tablePaste')){if(!_0x106f13['attributes']['tablePasteChainId']){_0x1912cd=!0x1;break;}if(_0x106f13['id']!=_0x19c365['id']&&_0x106f13['attributes']['tablePasteChainId']==_0xaa293f){_0x4c15a5=!0x1;break;}}_0x1912cd&&_0x4c15a5&&(_0x19c365['removeMarkers'](),_0x1a6cf8=!0x0);}}for(const _0x38862f of _0x2dec73)_0x2b6de6['remove'](_0x38862f);for(const _0x2f5b98 of _0x1d362a)_0x2b6de6['unwrap'](_0x2f5b98);return _0x1a6cf8;}),_0x2f45b3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x29042a=>_0xd22986(_0x29042a),'converterPriority':'high'}),_0x2f45b3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4666e4,_0x2bb3d4)=>_0x2bb3d4['options']['showSuggestionHighlights']?_0xd22986(_0x4666e4,!0x1):null,'converterPriority':'high'});const _0x21ca2f=_0x2f45b3['editing']['view'];this['listenTo'](_0x21ca2f['document'],'clipboardOutput',(_0x286127,_0x324381)=>{const _0x1b5707=[];for(const _0x2c5ec4 of _0x21ca2f['createRangeIn'](_0x324381['content'])['getItems']())_0x2c5ec4['is']('element','suggestion-td')&&_0x1b5707['push'](_0x2c5ec4);_0x21ca2f['change'](_0x28dba9=>{for(const _0x2d0b22 of _0x1b5707)_0x28dba9['move'](_0x28dba9['createRangeIn'](_0x2d0b22),_0x28dba9['createPositionBefore'](_0x2d0b22)),_0x28dba9['remove'](_0x2d0b22);});});}}function Ue(_0x112bd8){if(_0x112bd8['isEmpty'])return!0x0;const _0x53c03e=_0x112bd8['getChild'](0x0);return _0x53c03e['is']('element','paragraph')&&_0x53c03e['isEmpty'];}function De(_0x213e2e,_0x1bd090={},_0x1b5f1c){for(const {isAnchor:_0x46c8e8,cellHeight:_0x3bc210,cellWidth:_0x526567}of _0x1b5f1c['createTableWalker'](_0x213e2e,{'includeAllSlots':!0x0,..._0x1bd090}))if(!_0x46c8e8||0x1!=_0x3bc210||0x1!=_0x526567)return!0x1;return!0x0;}class Bt extends _0x51821d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2f0b26=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f0b26['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2f0b26['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2f0b26['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f0b26['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2f0b26['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2f0b26['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x59f088,_0x232f60){const _0x563447=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdcddb6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2970c9=_0x232f60['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x898723=_0xdcddb6['getColumnGroupElement'](_0x2970c9);let _0x251d9f=_0x898723?_0xdcddb6['getTableColumnsWidths'](_0x898723):null,_0x39c8e0=_0x2970c9['getAttribute']('tableWidth')||null;const _0x474537=_0x232f60['tableWidth']||_0x39c8e0,_0x3a83be=_0x232f60['columnWidths']||_0x251d9f,_0x599b4f=this['editor']['plugins']['get']('Users')['me'];for(const _0x4b543e of _0x563447['getSuggestions']()){const _0x307b77=_0x4b543e['getContainedElement']();if('resizeTable'===_0x4b543e['subType']&&_0x307b77===_0x2970c9){_0x4b543e['author']!==_0x599b4f&&_0x4b543e['discard']();const _0xc43697=_0x4b543e['data']['commandParams'];_0x39c8e0=_0xc43697[0x0]['tableWidth'],_0x251d9f=_0xc43697[0x0]['columnWidths'];break;}}_0x59f088({'table':_0x2970c9,'tableWidth':_0x474537,'columnWidths':_0x3a83be}),_0x563447['markBlockFormat'](_0x2970c9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x39c8e0,'columnWidths':_0x251d9f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x19ad07){if('formatBlock'!=_0x19ad07['type']&&'formatInline'!=_0x19ad07['type'])return;const {data:_0x1b12fd}=_0x19ad07;if(_0x1b12fd&&'resizeTable'===_0x1b12fd['formatGroupId']){const _0x50b2d5='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x50b2d5)};}}}class Ot extends _0x51821d{['afterInit'](){const _0x2700e4=this['editor'];_0x2700e4['plugins']['has']('Template')&&_0x2700e4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x51821d{['afterInit'](){const _0x1ac4d9=this['editor'];if(!_0x1ac4d9['commands']['get']('insertTableOfContents'))return;_0x1ac4d9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x36b9a6=_0x1ac4d9['plugins']['get']('TrackChangesEditing'),_0x5080af=_0x1ac4d9['locale'];_0x36b9a6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x31cd81=>c(_0x5080af,'ELEMENT_TABLE_OF_CONTENTS',_0x31cd81));}}class xt extends _0x51821d{['afterInit'](){const _0x2b8661=this['editor'];if(!_0x2b8661['plugins']['has']('Title'))return;const _0x1c75b5=_0x2b8661['plugins']['get']('TrackChangesEditing');_0x1c75b5['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x2b8661['locale'],'ELEMENT_TITLE')),_0x2b8661['model']['document']['registerPostFixer'](_0x3297d4=>{let _0x4cb383=!0x1;const _0x78026d=Array['from'](_0x2b8661['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9dabde,data:_0x4c51f5}of _0x78026d){const {group:_0x4ef246}=_0x1c75b5['_splitMarkerName'](_0x9dabde);if('suggestion'!==_0x4ef246||!_0x4c51f5['newRange'])continue;const _0x36fb3f=_0x4c51f5['newRange'],_0x45d8f5=_0x36fb3f['end']['nodeBefore'];if(!_0x45d8f5||!_0x45d8f5['is']('element','title-content'))continue;if(!_0x36fb3f['start']['isTouching'](_0x36fb3f['end']))continue;const _0x2178c8=_0x2b8661['model']['schema']['getNearestSelectionRange'](_0x36fb3f['end'],'forward');if(_0x2178c8&&_0x2178c8['isCollapsed']){const _0x56be0d=_0x3297d4['createRange'](_0x36fb3f['start'],_0x2178c8['start']);_0x56be0d['isEqual'](_0x36fb3f)||(_0x3297d4['updateMarker'](_0x9dabde,{'range':_0x56be0d}),_0x4cb383=!0x0);}_0x4cb383||(_0x3297d4['removeMarker'](_0x9dabde),_0x4cb383=!0x0);}return _0x4cb383;});}}class Tt extends _0x51821d{['afterInit'](){const _0x4e15d4=this['editor'],_0x95f600=_0x4e15d4['plugins']['get']('TrackChangesEditing');_0x4e15d4['plugins']['has']('Uploadcare')&&(_0x95f600['enableCommand']('uploadcare'),_0x4e15d4['plugins']['has']('UploadcareImageEdit')&&(_0x95f600['enableCommand']('uploadcareImageEdit'),_0x95f600['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x95f600['registerBlockAttribute']('uploadcareImageId'),_0x95f600['descriptionFactory']['registerDescriptionCallback'](_0x21fb0b=>{if('attribute'!=_0x21fb0b['type'])return;const {data:_0x22a060}=_0x21fb0b;return _0x22a060&&'uploadcareImageId'==_0x22a060['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x51821d{['afterInit'](){const _0x447c0e=this['editor'],_0x275906=_0x447c0e['plugins']['get']('TrackChangesEditing');_0x447c0e['plugins']['has']('UndoEditing')&&(_0x275906['enableCommand']('undo'),_0x275906['enableCommand']('redo'));}}class Ut extends _0x51821d{static get['requires'](){return[Ct];}['afterInit'](){const _0x4fd7fe=this['editor'];if(!_0x4fd7fe['plugins']['has']('TableCaptionEditing'))return;_0x4fd7fe['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x51821d{['tableProperties'];['tableCellProperties'];constructor(_0x2e6ec4){super(_0x2e6ec4),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 _0x5bdc62=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xa5b44a of this['tableProperties'])_0x5bdc62['enableCommand'](_0xa5b44a,(_0x8140c9,_0x421f54)=>{const _0x59d9d0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xa5b44a,[_0x59d9d0],this['tableProperties'],'tableProperties',_0x8140c9,_0x421f54);});_0x5bdc62['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5bdc62['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5bdc62['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x46beea,_0x32f89b)=>this['handleDiscardAction'](this['tableProperties'],_0x46beea,_0x32f89b)),_0x5bdc62['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x36137e of this['tableCellProperties'])_0x5bdc62['enableCommand'](_0x36137e,(_0x524b88,_0x530c1b)=>{const _0x5eccee=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x36137e,_0x5eccee,this['tableCellProperties'],'tableCellProperties',_0x524b88,_0x530c1b);});_0x5bdc62['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5bdc62['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5bdc62['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xf1a601,_0x3d7623)=>this['handleDiscardAction'](this['tableCellProperties'],_0xf1a601,_0x3d7623)),_0x5bdc62['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5bdc62['descriptionFactory']['registerDescriptionCallback'](_0x107100=>this['handleSuggestionDescription'](_0x107100));}['_handlePropertyChange'](_0x4876ad,_0x5e8a1d,_0x2c6a5a,_0x19518f,_0xff9333,_0x65d80e){const _0x4ea770=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x65d80e['batch'],()=>{for(const _0x44f41f of _0x5e8a1d){if(this['_getSuggestion'](_0x44f41f,_0x19518f))_0xff9333(_0x65d80e);else{const _0x22cbce={};for(const _0x16283a of _0x2c6a5a){const _0xecb365=_0x44f41f['getAttribute'](_0x16283a);void 0x0!==_0xecb365&&(_0x22cbce[_0x16283a]=_0xecb365);}_0xff9333(_0x65d80e),_0x4ea770['markBlockFormat'](_0x44f41f,{'commandParams':[_0x22cbce]},[],_0x19518f);}}});}['handleDiscardAction'](_0x57257f,_0x25b66e,_0x51e392){const _0x7f7148=_0x25b66e[0x0]['start']['nodeAfter'],_0x317eb6=_0x51e392['commandParams'][0x0];this['editor']['model']['change'](_0x282013=>{for(const _0x3e97bd of _0x57257f)void 0x0!==_0x317eb6[_0x3e97bd]?_0x282013['setAttribute'](_0x3e97bd,_0x317eb6[_0x3e97bd],_0x7f7148):_0x282013['removeAttribute'](_0x3e97bd,_0x7f7148);});}['handleSuggestionDescription'](_0x59917c){if(_0x59917c['data'])switch(_0x59917c['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'](_0x53b3e1,_0x2e67f4){const _0x229172=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2ea4d3 of _0x229172['getSuggestions']({'skipNotAttached':!0x0})){const _0x2be17c=_0x2ea4d3['getContainedElement']();if(_0x2ea4d3['subType']===_0x2e67f4&&_0x2be17c===_0x53b3e1)return _0x2ea4d3;}return null;}}const u='$elementName';class p extends _0x51821d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x87033f,_0x49b3b8,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x861f50){super(_0x861f50),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x17f97c,_0x30ed1a,_0x45454e,_0x512045)=>{this['_model']['change'](()=>{for(const _0x3bf73d of[..._0x512045,..._0x45454e])this['_model']['markers']['has'](_0x3bf73d)&&_0x861f50['editing']['reconvertMarker'](_0x3bf73d);});}),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']=_0x861f50['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(),_0x861f50['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x861f50['config']['get']('trackChanges.trackFormatChanges'),_0x861f50['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x861f50['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x861f50,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4a3f7c=this['editor'],_0x332782=(_0x1f0b17,_0x3983c1)=>{if('attribute'!=_0x1f0b17)return'ck-suggestion-marker-'+_0x1f0b17;const _0x3832ef=_0x3983c1['split']('|')[0x0];return this['_isBlockAttribute'](_0x3832ef)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4a3f7c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x25f2a0=>{const {id:_0x357484,authorId:_0x596827,type:_0x561a6e,subType:_0x4074f1}=this['_splitMarkerName'](_0x25f2a0['markerName']),_0x154198=['ck-suggestion-marker',_0x332782(_0x561a6e,_0x4074f1)];let _0x121929=0xbb8;return this['activeMarkers']['includes'](_0x25f2a0['markerName'])&&(_0x154198['push']('ck-suggestion-marker--active'),_0x121929=0xbc2),'deletion'==_0x561a6e&&(_0x121929+=0x5),{'classes':_0x154198,'attributes':{'data-suggestion':_0x357484,'data-author-id':_0x596827},'priority':_0x121929};}}),_0x4a3f7c['conversion']['for']('dataDowncast')['add'](_0x47b9cb=>{_0x47b9cb['on']('addMarker:suggestion',(_0x4fb4e7,_0x64f555,_0x5eb7f9)=>{if(!_0x5eb7f9['options']['showSuggestionHighlights'])return;const _0x9b3b1a=_0x64f555['item'];if(!_0x9b3b1a)return;const _0x409ba9=_0x5eb7f9['mapper']['toViewElement'](_0x9b3b1a);_0x4a3f7c['model']['schema']['isObject'](_0x9b3b1a)&&_0x409ba9&&!_0x409ba9['getCustomProperty']('widget')&&_0x409ba9['is']('containerElement')&&_0x31fc42(_0x409ba9,_0x5eb7f9['writer']);},{'priority':'high'});}),_0x4a3f7c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2169f9,_0x48f5d7)=>{if(!_0x48f5d7['options']['showSuggestionHighlights'])return null;const {type:_0x194e61,subType:_0x753a7c}=this['_splitMarkerName'](_0x2169f9['markerName']);return{'classes':['ck-suggestion-marker',_0x332782(_0x194e61,_0x753a7c)],'priority':0xbb8};}});const _0xa8571d=({showActiveMarkers:_0x2f2b8d=!0x0,isAttributeSuggestion:_0x2349a2=!0x1}={})=>(_0x11db07,_0x2c143e,_0x3d178d)=>{if(!_0x2c143e['item'])return;const {id:_0x22a8ab,authorId:_0x2bb512}=this['_splitMarkerName'](_0x2c143e['markerName']);if(_0x2349a2){const _0x31f27a=this['_suggestions']['get'](_0x22a8ab),_0x53e766=this['_getAttributeKey'](_0x31f27a);if(!this['_isBlockAttribute'](_0x53e766))return;}if(_0x2c143e['item']['is']('selection'))return void _0x3d178d['consumable']['consume'](_0x2c143e['item'],_0x11db07['name']);const _0x5bacee=_0x3d178d['mapper']['toViewElement'](_0x2c143e['item']);if(_0x2c143e['item']['is']('element')&&_0x4a3f7c['model']['schema']['isBlock'](_0x2c143e['item'])&&!_0x5bacee['getCustomProperty']('addHighlight')){_0x3d178d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5bacee),_0x3d178d['writer']['setAttribute']('data-suggestion',_0x22a8ab,_0x5bacee),_0x3d178d['writer']['setAttribute']('data-author-id',_0x2bb512,_0x5bacee),_0x3d178d['mapper']['bindElementToMarker'](_0x5bacee,_0x2c143e['markerName']),_0x2f2b8d&&(this['activeMarkers']['includes'](_0x2c143e['markerName'])?_0x3d178d['writer']['addClass']('ck-suggestion-marker--active',_0x5bacee):_0x3d178d['writer']['removeClass']('ck-suggestion-marker--active',_0x5bacee));for(const _0x29115d of _0x4a3f7c['model']['createRangeIn'](_0x2c143e['item'])['getItems']())_0x3d178d['consumable']['consume'](_0x29115d,_0x11db07['name']);_0x3d178d['consumable']['consume'](_0x2c143e['item'],_0x11db07['name']);}};_0x4a3f7c['conversion']['for']('dataDowncast')['add'](_0x17a585=>{_0x17a585['on']('addMarker:suggestion:formatBlock',(_0x490580,_0xc2d6aa,_0x3533c3)=>{_0x3533c3['options']['showSuggestionHighlights']&&_0xa8571d({'showActiveMarkers':!0x1})(_0x490580,_0xc2d6aa,_0x3533c3);},{'priority':'highest'});}),_0x4a3f7c['conversion']['for']('dataDowncast')['add'](_0x17698a=>{_0x17698a['on']('addMarker:suggestion:attribute',(_0x5b4fca,_0x3b4e6c,_0x30f028)=>{_0x30f028['options']['showSuggestionHighlights']&&_0xa8571d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5b4fca,_0x3b4e6c,_0x30f028);},{'priority':'highest'});}),_0x4a3f7c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x35cbd9,_0x423178)=>_0x423178['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x35cbd9['substr'](0xb)}}),_0x4a3f7c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xb9bacb,{writer:_0x47bb24})=>{let _0x53d4a8='suggestion:'+_0xb9bacb['getAttribute']('suggestion-type')+':'+_0xb9bacb['getAttribute']('id');return _0xb9bacb['getAttribute']('marker-count')&&(_0x53d4a8+=':'+_0xb9bacb['getAttribute']('marker-count')),_0x47bb24['createElement']('$marker',{'data-name':_0x53d4a8});}}),_0x4a3f7c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4a3f7c['conversion']['for']('editingDowncast')['add'](_0x536dc4=>{_0x536dc4['on']('addMarker:suggestion:formatBlock',_0xa8571d(),{'priority':'high'});}),_0x4a3f7c['conversion']['for']('editingDowncast')['add'](_0x280c6d=>{_0x280c6d['on']('addMarker:suggestion:attribute',_0xa8571d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4a3f7c['conversion']['for']('editingDowncast')['add'](_0x5e1860=>{_0x5e1860['on']('removeMarker:suggestion:formatBlock',(_0x171374,_0x3f7a99,_0x542409)=>{const _0x3fb7e3=_0x542409['mapper']['markerNameToElements'](_0x3f7a99['markerName']);if(_0x3fb7e3){for(const _0x3dc1be of _0x3fb7e3)_0x3dc1be['getCustomProperty']('addHighlight')||(_0x542409['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3dc1be),_0x542409['writer']['removeAttribute']('data-suggestion',_0x3dc1be),_0x542409['writer']['removeAttribute']('data-author-id',_0x3dc1be),_0x542409['mapper']['unbindElementFromMarkerName'](_0x3dc1be,_0x3f7a99['markerName']));}},{'priority':'high'});}),_0x4a3f7c['conversion']['for']('editingDowncast')['add'](_0x2c21bf=>{_0x2c21bf['on']('removeMarker:suggestion:attribute',(_0x275463,_0x5edf94,_0x865fc5)=>{const _0x5537b6=_0x865fc5['mapper']['markerNameToElements'](_0x5edf94['markerName']);if(!_0x5537b6)return;const {id:_0x42f042}=this['_splitMarkerName'](_0x5edf94['markerName']),_0x70466d=this['_suggestions']['get'](_0x42f042),_0x1e916b=this['_getAttributeKey'](_0x70466d);if(this['_isBlockAttribute'](_0x1e916b)){for(const _0x6c37f of _0x5537b6)_0x6c37f['getCustomProperty']('addHighlight')||(_0x865fc5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x6c37f),_0x865fc5['writer']['removeAttribute']('data-suggestion',_0x6c37f),_0x865fc5['writer']['removeAttribute']('data-author-id',_0x6c37f),_0x865fc5['mapper']['unbindElementFromMarkerName'](_0x6c37f,_0x5edf94['markerName']));}},{'priority':'high'});}),_0x4a3f7c['model']['document']['registerPostFixer'](_0x5e62f1=>{let _0x4aa957=!0x1;const _0x2cf184=Array['from'](_0x4a3f7c['model']['document']['differ']['getChangedMarkers']()),_0x32a451=new Set();for(const {name:_0x17a279,data:_0x5eaf38}of _0x2cf184){const {group:_0x48372a,type:_0x55a41,subType:_0x1e8368,id:_0x2c6612}=this['_splitMarkerName'](_0x17a279);if('suggestion'!==_0x48372a)continue;const _0x5549bc=this['_suggestions']['get'](_0x2c6612);if(null!=_0x5eaf38['newRange']){'formatInline'==_0x55a41&&(_0x4aa957=_0x4aa957||Jt(_0x5eaf38['newRange'],_0x17a279,_0x5e62f1,_0x4a3f7c['model']['schema']));const _0x370dae='attribute'==_0x55a41&&this['_isBlockAttribute'](_0x1e8368['split']('|')[0x0]);if(_0x5eaf38['newRange']['isCollapsed']||'$graveyard'==_0x5eaf38['newRange']['root']['rootName']||'formatBlock'==_0x55a41&&!Ht(_0x5eaf38['newRange'])||_0x370dae&&!Ht(_0x5eaf38['newRange'])||'deletion'==_0x55a41&&!(!Lt(_0x15c41e=_0x5eaf38['newRange'])&&!function(_0x51be36){return _0x51be36['start']['parent']==_0x51be36['end']['nodeBefore']&&_0x51be36['start']['isAtEnd'];}(_0x15c41e)))_0x5e62f1['removeMarker'](_0x17a279),_0x4aa957=!0x0;else{if(!_0x5549bc||!_0x5549bc['isInContent'])continue;if(_0x5eaf38['newRange']&&_0x5eaf38['oldRange']&&_0x5eaf38['newRange']['isEqual'](_0x5eaf38['oldRange']))continue;_0x32a451['add'](_0x5549bc);}}}var _0x15c41e;return _0x32a451['size']>0x0&&(_0x4aa957=!!this['_joinWithAdjacentSuggestions'](_0x32a451)||_0x4aa957),_0x4aa957;}),_0x4a3f7c['model']['document']['registerPostFixer'](_0x4b82f1=>{let _0x2ec4df=!0x1;for(const _0x450fe1 of _0x4a3f7c['model']['document']['differ']['getChanges']())if('insert'==_0x450fe1['type'])for(const _0x162e42 of this['_suggestions']['values']()){if(_0x162e42['isMultiRange']||!_0x162e42['isInContent'])continue;const _0xc2a96c='formatBlock'==_0x162e42['type'],_0xde7a7c=this['_getAttributeKey'](_0x162e42),_0x42b14c=_0xde7a7c&&this['_isBlockAttribute'](_0xde7a7c);if(!_0xc2a96c&&!_0x42b14c)continue;const _0x1a5d6a=_0x162e42['getFirstRange']();if(_0x1a5d6a['start']['parent']!=_0x1a5d6a['end']['parent']&&!_0x1a5d6a['end']['isAtEnd']){const _0x5607e3=_0x4a3f7c['model']['createPositionAt'](_0x1a5d6a['start']['nodeAfter'],'end'),_0x51a0a4=_0x4a3f7c['model']['createRange'](_0x1a5d6a['start'],_0x5607e3);_0x4b82f1['updateMarker'](_0x162e42['getFirstMarker'](),{'range':_0x51a0a4}),_0x2ec4df=!0x0;}}return _0x2ec4df;}),_0x4a3f7c['model']['document']['registerPostFixer'](_0x4b3897=>this['_processAttributeChanges'](_0x4b3897)),_0x4a3f7c['model']['document']['registerPostFixer'](_0x53ae2b=>!_0x53ae2b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x53ae2b)),_0x4a3f7c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4a3f7c['model']['document']['on']('change:data',(_0x1fc79a,_0x22e902)=>{if(!_0x22e902['isLocal']||_0x22e902['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xf422f2=_0x4a3f7c['model']['document']['differ']['getChanges']();if(0x0==_0xf422f2['length'])return;const _0x345c54=[],_0x29b73a=_0xf422f2['filter'](_0x57f604=>'attribute'==_0x57f604['type']),_0x1e5e0a=_0xf422f2['filter'](_0x3f9a14=>'insert'==_0x3f9a14['type']&&'$text'!=_0x3f9a14['name']);for(const _0x4f027f of _0x29b73a)this['_isRegisteredAttribute'](_0x4f027f['attributeKey'])&&_0x345c54['push']({'key':_0x4f027f['attributeKey'],'newValue':_0x4f027f['attributeNewValue'],'oldValue':_0x4f027f['attributeOldValue'],'range':qt(_0x4f027f['range'],_0x4a3f7c['model'])});for(const _0x439273 of _0x1e5e0a){if('rename'!=_0x439273['action']&&'refresh'!=_0x439273['action'])continue;const _0xa7a8e1=zt(_0x439273['position']['nodeAfter'],_0x4a3f7c['model']),_0x28627f=_0x439273['before'];'rename'==_0x439273['action']&&_0x345c54['push']({'key':u,'newValue':_0x439273['name'],'oldValue':_0x28627f['name'],'range':_0xa7a8e1});for(const [_0x359756,_0x5d13bc]of _0x28627f['attributes']){if(!this['_isRegisteredAttribute'](_0x359756))continue;const _0x2defcd=_0x439273['attributes']['get'](_0x359756);_0x5d13bc!==_0x2defcd&&_0x345c54['push']({'key':_0x359756,'newValue':_0x2defcd,'oldValue':_0x5d13bc,'range':_0xa7a8e1});}for(const [_0x5ada9f,_0xa6efcd]of _0x439273['attributes'])this['_isRegisteredAttribute'](_0x5ada9f)&&(_0x28627f['attributes']['has'](_0x5ada9f)||_0x345c54['push']({'key':_0x5ada9f,'newValue':_0xa6efcd,'oldValue':null,'range':_0xa7a8e1}));}0x0!=_0x345c54['length']&&_0x4a3f7c['model']['enqueueChange'](_0x22e902,_0x3a64c1=>{const _0x520f6e=_0x28fc1d();for(const {range:_0x25c4ff,key:_0x444201,oldValue:_0x22d1b2,newValue:_0x1a5fba}of _0x345c54)this['markAttributeChange'](_0x25c4ff,_0x444201,_0x22d1b2,_0x1a5fba,{'groupId':_0x520f6e});this['_reduceExistingSuggestions'](_0x3a64c1,_0x345c54);});},{'priority':'lowest'}),_0x4a3f7c['model']['markers']['on']('update:suggestion',(_0x4d23ad,_0x2736ea,_0x419b41)=>{if(null==_0x419b41){const {id:_0x3804f4}=this['_splitMarkerName'](_0x2736ea['name']),_0x3ac1e3=this['_suggestions']['get'](_0x3804f4);_0x3ac1e3&&_0x3ac1e3['addMarkerName'](_0x2736ea['name']);}}),_0x4a3f7c['model']['document']['on']('change:data',()=>{const _0xb52247=Array['from'](_0x4a3f7c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x14ebd2=>'suggestion'===this['_splitMarkerName'](_0x14ebd2['name'])['group']);if(0x0===_0xb52247['length'])return;_0xb52247['sort']((_0x40a5af,_0x403b1e)=>{const _0x3cdad2=_0x40a5af['data']['oldRange'],_0x58ef35=_0x403b1e['data']['oldRange'];return null===_0x3cdad2&&null===_0x58ef35?0x0:null===_0x3cdad2&&null!==_0x58ef35?-0x1:null!==_0x3cdad2&&null===_0x58ef35?0x1:_0x3cdad2['start']['isBefore'](_0x58ef35['start'])?-0x1:0x1;});const _0x55a9ce=new Set(),_0x402b0c=new Set();for(const {name:_0x42dc10,data:_0x16dd0b}of _0xb52247){const {id:_0x2ba909}=this['_splitMarkerName'](_0x42dc10);if(null===_0x16dd0b['oldRange']){const _0x21f9bb=this['_handleNewSuggestionMarker'](_0x42dc10);_0x402b0c['add'](_0x21f9bb);}else{const _0x357759=this['_suggestions']['get'](_0x2ba909);null!==_0x16dd0b['newRange']||_0x357759['isInContent']?(_0x55a9ce['add'](_0x357759['head']),_0x402b0c['add'](_0x357759)):this['_removeSuggestion'](_0x357759);}}_0x402b0c['size']>0x0&&this['_refreshSuggestionsChain'](_0x402b0c);for(const _0x5aa275 of _0x55a9ce)this['fire']('suggestionChanged',_0x5aa275);}),_0x4a3f7c['model']['on']('applyOperation',(_0x58635e,_0x3b2a28)=>{const _0x378db2=_0x3b2a28[0x0];if(!this['_suggestions']['size'])return;if(!_0x378db2['isDocumentOperation'])return;if(_0x378db2['batch']['isUndo']||!_0x378db2['batch']['isLocal'])return;let _0x14d4ba,_0x46c13a;switch(_0x378db2['type']){case'insert':_0x14d4ba=_0x4a3f7c['model']['createPositionAt'](_0x378db2['position']),_0x46c13a=_0x14d4ba['getShiftedBy'](_0x378db2['howMany']);break;case'split':_0x14d4ba=_0x4a3f7c['model']['createPositionAt'](_0x378db2['splitPosition']),_0x46c13a=_0x4a3f7c['model']['createPositionAt'](_0x378db2['moveTargetPosition']);break;case'move':_0x14d4ba=_0x4a3f7c['model']['createPositionAt'](_0x378db2['targetPosition']),_0x46c13a=_0x14d4ba['getShiftedBy'](_0x378db2['howMany']);break;default:return;}const _0x2164f9=_0x4a3f7c['model']['createRange'](_0x14d4ba,_0x46c13a);_0x4a3f7c['model']['change'](()=>{for(const {suggestion:_0x5c7514,meta:_0x26e2a1}of this['_findSuggestions'](_0x2164f9)){if(_0x5c7514['isMultiRange'])continue;if('formatInline'==_0x5c7514['type'])continue;const _0x2fb1e9=this['_getAttributeKey'](_0x5c7514);if(_0x2fb1e9&&this['_isBlockAttribute'](_0x2fb1e9)&&'split'!=_0x378db2['type'])continue;const _0x3d4f77=_0x5c7514['data']&&_0x5c7514['data']['multipleBlocks'];('formatBlock'!=_0x5c7514['type']||'split'==_0x378db2['type']&&!_0x3d4f77)&&(_0x26e2a1['containsRangeInObject']||'insertion'==_0x5c7514['type']&&_0x26e2a1['isOwn']||_0x5c7514['getFirstRange']()['containsRange'](_0x2164f9)&&this['_breakSuggestionMarker'](_0x5c7514,_0x14d4ba,_0x46c13a));}});},{'priority':'lowest'}),_0x4a3f7c['model']['on']('deleteContent',(_0x443b36,_0xd8bde9)=>{const _0x4574bd=_0xd8bde9[0x0],_0x45f854=_0xd8bde9[0x1];if(_0x45f854&&_0x45f854['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4574bd['isCollapsed'])return;const _0x2ae540=_0x4a3f7c['model']['schema'],{start:_0x3aa72d,end:_0xa6ab36}=_0x4574bd['getFirstRange'](),_0x4d6210=_0x3aa72d['nodeAfter']&&_0x2ae540['isLimit'](_0x3aa72d['nodeAfter'])?null:_0x2ae540['getNearestSelectionRange'](_0x3aa72d,'forward'),_0x43cf0a=_0xa6ab36['nodeBefore']&&_0x2ae540['isLimit'](_0xa6ab36['nodeBefore'])?null:_0x2ae540['getNearestSelectionRange'](_0xa6ab36,'backward'),_0x128bf3=_0x4a3f7c['model']['createRange'](_0x4d6210?_0x4d6210['start']:_0x3aa72d,_0x43cf0a?_0x43cf0a['end']:_0xa6ab36);_0x4a3f7c['model']['change'](_0x33e5db=>{this['markDeletion'](_0x128bf3);const _0xaf549f=_0x4a3f7c['model']['schema']['getNearestSelectionRange'](_0x128bf3['start']);_0x4574bd['is']('documentSelection')?_0x33e5db['setSelection'](_0xaf549f):_0x4574bd['setTo'](_0xaf549f);}),_0x443b36['stop']();},{'priority':_0x2fc864['normal']+0xa}),_0x4a3f7c['model']['on']('insertContent',(_0x3040f7,_0x4d3f64)=>{const _0x213511=_0x4d3f64[_0x4d3f64['length']-0x1];_0x213511&&_0x213511['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4a3f7c['model']['change'](()=>{let _0x539913=_0x4a3f7c['model']['insertContent'](_0x4d3f64[0x0],_0x4d3f64[0x1],_0x4d3f64[0x2],{'forceDefaultExecution':!0x0});if(!_0x539913)return;_0x3040f7['return']=_0x539913['clone']();const _0x1b9743=_0x539913['end']['nodeBefore'],_0x39dcde=_0x4a3f7c['model']['schema'];_0x1b9743&&_0x39dcde['isBlock'](_0x1b9743)&&!_0x39dcde['isObject'](_0x1b9743)&&(_0x539913=_0x4a3f7c['model']['createRange'](_0x539913['start'],_0x4a3f7c['model']['createPositionAt'](_0x1b9743,'end'))),this['markInsertion'](_0x539913);}),_0x3040f7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1153d9=new O(_0x4a3f7c,this['_suggestions']);_0x4a3f7c['commands']['add']('acceptSuggestion',_0x1153d9),this['enableCommand']('acceptSuggestion');const _0x151518=new R(_0x4a3f7c,this['_suggestions']);_0x4a3f7c['commands']['add']('discardSuggestion',_0x151518),this['enableCommand']('discardSuggestion'),_0x4a3f7c['commands']['add']('acceptAllSuggestions',new x(_0x4a3f7c,_0x1153d9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4a3f7c['commands']['add']('discardAllSuggestions',new x(_0x4a3f7c,_0x151518,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4a3f7c['commands']['add']('acceptSelectedSuggestions',new E(_0x4a3f7c,_0x1153d9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4a3f7c['commands']['add']('discardSelectedSuggestions',new E(_0x4a3f7c,_0x151518,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1efe95=_0x4a3f7c['plugins']['get']('CommentsRepository');this['listenTo'](_0x1efe95,'addComment',(_0x564436,{threadId:_0x58606b})=>{const _0x2c1758=this['_suggestions']['get'](_0x58606b);_0x2c1758&&_0x2c1758['commentThread']&&0x1===_0x2c1758['commentThread']['length']&&this['_updateSuggestionData'](_0x58606b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1efe95,'removeComment',(_0x4b286f,{threadId:_0x2a377a})=>{const _0x1864a7=this['_suggestions']['get'](_0x2a377a);_0x1864a7&&_0x1864a7['commentThread']&&!_0x1864a7['commentThread']['length']&&this['_updateSuggestionData'](_0x2a377a,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xd6ae04){const _0x1bf8d=_0xe0a063([0x59,0x79,0x4a,0x43,0x65,0x35,0x36,0x64,0x62,0x6d,0x72,0x39,0x57,0x41,0x58,0x73,0x67,0x53,0x63,0x31,0x49,0x44,0x6b,0x4f,0x71,0x4b,0x6c,0x77,0x52,0x30,0x76,0x75,0x4e,0x68,0x61,0x48,0x66,0x4c,0x32,0x34,0x55,0x37,0x69,0x78,0x51,0x42,0x45,0x38,0x6e,0x47,0x70,0x5a,0x50,0x6a,0x4d,0x6f,0x46,0x7a,0x54,0x74,0x56,0x33]),_0xa516c=0x2e01f40d,_0x11f926=0x2e069025^_0xa516c,_0x424794=window[_0xe0a063([0x44,0x61,0x74,0x65])][_0xe0a063([0x6e,0x6f,0x77])](),_0x31d74e=_0xd6ae04[_0xe0a063([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5bceb6=new window[(_0xe0a063([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1274b5=>{_0x31d74e[_0xe0a063([0x6f,0x6e,0x63,0x65])](_0xe0a063([0x72,0x65,0x61,0x64,0x79]),_0x1274b5);}),_0x247ccc={[_0xe0a063([0x6b,0x74,0x79])]:_0xe0a063([0x45,0x43]),[_0xe0a063([0x75,0x73,0x65])]:_0xe0a063([0x73,0x69,0x67]),[_0xe0a063([0x63,0x72,0x76])]:_0xe0a063([0x50,0x2d,0x32,0x35,0x36]),[_0xe0a063([0x78])]:_0xe0a063([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]),[_0xe0a063([0x79])]:_0xe0a063([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]),[_0xe0a063([0x61,0x6c,0x67])]:_0xe0a063([0x45,0x53,0x32,0x35,0x36])},_0x27562d=_0x31d74e[_0xe0a063([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe0a063([0x67,0x65,0x74])](_0xe0a063([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6a7151(){let _0x1117bf,_0x30b842=null,_0x4af2ab=null;try{if(_0x27562d==_0xe0a063([0x47,0x50,0x4c]))return _0xe0a063([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1117bf=_0x52071a(),!_0x1117bf)return _0xe0a063([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1117bf[_0xe0a063([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4af2ab=_0x4b26c8(_0x1117bf[_0xe0a063([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1117bf[_0xe0a063([0x6a,0x74,0x69])])),await _0x2a5fb2()?_0xbd1b20()?_0x1dbf61()?_0xe0a063([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf05114()?(_0x1117bf[_0xe0a063([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe0a063([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30b842=_0x275d7f(_0xe0a063([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1117bf[_0xe0a063([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe0a063([0x74,0x72,0x69,0x61,0x6c])&&(_0x30b842=_0x275d7f(_0xe0a063([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b6903()):_0xe0a063([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe0a063([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe0a063([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x358414){return _0xe0a063([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1dbf61(){const _0x321279=[_0xe0a063([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe0a063([0x74,0x72,0x69,0x61,0x6c])][_0xe0a063([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1117bf[_0xe0a063([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x424794/0x3e8:0xe10*_0x11f926;return _0x1117bf[_0xe0a063([0x65,0x78,0x70])]<_0x321279;}function _0xbd1b20(){const _0x9a0fef=_0x1117bf[_0xe0a063([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x9a0fef)return!0x1;if(_0x9a0fef[_0xe0a063([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe0a063([0x2a])))return!0x0;if(_0x9a0fef[_0xe0a063([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe0a063([0x54,0x43])))return!0x0;if(_0x9a0fef[_0xe0a063([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe0a063([0x52,0x54,0x43]))){if(_0x404d54())return!0x0;if(_0x36dec7()||_0x4d00ea())return!0x0;}return!0x1;}function _0xf05114(){const _0xceb6f5=_0x1117bf[_0xe0a063([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xceb6f5||0x0==_0xceb6f5[_0xe0a063([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x706b01}=new URL(window[_0xe0a063([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xceb6f5[_0xe0a063([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x706b01))return!0x0;const _0x2b22cc=_0x706b01[_0xe0a063([0x73,0x70,0x6c,0x69,0x74])](_0xe0a063([0x2e]));return _0xceb6f5[_0xe0a063([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a7784=>_0x3a7784[_0xe0a063([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe0a063([0x2a])))[_0xe0a063([0x6d,0x61,0x70])](_0x3260f1=>_0x3260f1[_0xe0a063([0x73,0x70,0x6c,0x69,0x74])](_0xe0a063([0x2e])))[_0xe0a063([0x73,0x6f,0x6d,0x65])](_0x28a499=>_0x2b22cc[_0xe0a063([0x65,0x76,0x65,0x72,0x79])]((_0x129687,_0x4d467e)=>_0x28a499[_0x4d467e]===_0x129687||_0x28a499[_0x4d467e]===_0xe0a063([0x2a])));}function _0x3b6903(){return _0x30b842&&_0x4af2ab?new window[(_0xe0a063([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44ec15,_0x2f9a26)=>{_0x30b842[_0xe0a063([0x74,0x68,0x65,0x6e])](_0x44ec15,_0x2f9a26),_0x4af2ab[_0xe0a063([0x74,0x68,0x65,0x6e])](_0x637f67=>{_0x637f67!=_0xe0a063([0x56,0x61,0x6c,0x69,0x64])&&_0x44ec15(_0x637f67);},_0x2f9a26);}):_0x30b842||_0x4af2ab||_0xe0a063([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4b26c8(_0xe142b6,_0x2dde17){return new window[(_0xe0a063([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e1ef0=>{if(_0x10360c())return _0x4e1ef0(_0xe0a063([0x56,0x61,0x6c,0x69,0x64]));_0x1fe594(),_0x31d74e[_0xe0a063([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe0a063([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5203bc=!0x1;const _0x4d92b8=_0x28fc1d();function _0x4a7064(_0x1f365a){return!!_0x1f365a&&(typeof _0x1f365a===_0xe0a063([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f365a===_0xe0a063([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f365a[_0xe0a063([0x74,0x68,0x65,0x6e])]===_0xe0a063([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f365a[_0xe0a063([0x63,0x61,0x74,0x63,0x68])]===_0xe0a063([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x512fdb(_0x4a32dd){_0x46fdcd(_0x4a32dd)[_0xe0a063([0x74,0x68,0x65,0x6e])](_0x2dc1fb=>{if(!_0x2dc1fb||_0x2dc1fb[_0xe0a063([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe0a063([0x6f,0x6b]))return _0xe0a063([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a546c(_0x1089a2(_0x4d92b8+_0x2dde17))!=_0x2dc1fb[_0xe0a063([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe0a063([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe0a063([0x56,0x61,0x6c,0x69,0x64]);})[_0xe0a063([0x74,0x68,0x65,0x6e])](_0x59c7c1=>(_0x27c46d(),_0x59c7c1),()=>{const _0x121006=_0x4fd9e9();return null==_0x121006?(_0x27c46d(),_0xe0a063([0x56,0x61,0x6c,0x69,0x64])):_0xe0a063(_0x424794-_0x121006>(0xa0d700d^_0xa516c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe0a063([0x74,0x68,0x65,0x6e])](_0x4e1ef0)[_0xe0a063([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e1ef0(_0xe0a063([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15762a=0x2e371a8d^_0xa516c;function _0x27c46d(){const _0x432446=_0xe0a063([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a546c(_0x1089a2(_0xe142b6)),_0x26c94c=_0x5b5337(_0x4a546c(window[_0xe0a063([0x4d,0x61,0x74,0x68])][_0xe0a063([0x63,0x65,0x69,0x6c])](_0x424794/_0x15762a)));window[_0xe0a063([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe0a063([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x432446,_0x26c94c);}function _0x4fd9e9(){const _0x4ca6cd=_0xe0a063([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a546c(_0x1089a2(_0xe142b6)),_0x471a1e=window[_0xe0a063([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe0a063([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ca6cd);return _0x471a1e?window[_0xe0a063([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b5337(_0x471a1e),0x10)*_0x15762a:null;}function _0x46fdcd(_0x524794){return new window[(_0xe0a063([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b0221,_0xb5776d)=>{_0x524794[_0xe0a063([0x74,0x68,0x65,0x6e])](_0x5b0221,_0xb5776d),window[_0xe0a063([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb5776d,0x2e0020cd^_0xa516c);});}}_0x31d74e[_0xe0a063([0x6f,0x6e])](_0xe0a063([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a23b8,_0x333fbd)=>{if(_0x333fbd[0x0]!=_0xe142b6)return _0x4e1ef0(_0xe0a063([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x333fbd[0x1]={..._0x333fbd[0x1],[_0xe0a063([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d92b8};},{[_0xe0a063([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe0a063([0x68,0x69,0x67,0x68])}),_0x31d74e[_0xe0a063([0x6f,0x6e])](_0xe0a063([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x589b46=>{_0x4a7064(_0x589b46[_0xe0a063([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5203bc=!0x0,_0x512fdb(_0x589b46[_0xe0a063([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe0a063([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe0a063([0x6c,0x6f,0x77])}),_0x5bceb6[_0xe0a063([0x74,0x68,0x65,0x6e])](()=>{_0x5203bc||_0x4e1ef0(_0xe0a063([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10360c(){return _0x31d74e[_0xe0a063([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe0a063([0x76,0x69,0x65,0x77])][_0xe0a063([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe0a063([0x61,0x75,0x74,0x6f]);}function _0x1fe594(){_0x31d74e[_0xe0a063([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe0a063([0x76,0x69,0x65,0x77])][_0xe0a063([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe0a063([0x61,0x75,0x74,0x6f]);}}function _0x275d7f(_0x5ca450){const _0x451468=[new window[(_0xe0a063([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f4f3e=>setTimeout(_0x2f4f3e,0x2e08cac1^_0xa516c)),_0x5bceb6[_0xe0a063([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe0a063([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39b9b6=>{let _0x2ced99=0x0;_0x31d74e[_0xe0a063([0x6d,0x6f,0x64,0x65,0x6c])][_0xe0a063([0x6f,0x6e])](_0xe0a063([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3bb770,_0x51d984)=>{_0x51d984[0x0][_0xe0a063([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ced99++,_0x2ced99==(0x2e01f5f5^_0xa516c)&&(_0x39b9b6(),_0x3bb770[_0xe0a063([0x6f,0x66,0x66])]());});}))];return window[_0xe0a063([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe0a063([0x72,0x61,0x63,0x65])](_0x451468)[_0xe0a063([0x74,0x68,0x65,0x6e])](()=>_0x5ca450);}async function _0x2dc773(){await _0x5bceb6,_0x31d74e[_0xe0a063([0x6d,0x6f,0x64,0x65,0x6c])][_0xe0a063([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x21a9f8,_0x31d74e[_0xe0a063([0x6d,0x6f,0x64,0x65,0x6c])][_0xe0a063([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x21a9f8,_0x31d74e[_0xe0a063([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe0a063([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x404d54(){return _0x5f0bf9(_0xe0a063([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3af569(_0xe0a063([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xe0a063([0x73,0x74,0x61,0x74,0x65])]==_0xe0a063([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x36dec7(){return _0x5f0bf9(_0xe0a063([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 _0x4d00ea(){return _0x5f0bf9(_0xe0a063([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x136cf1(_0x115114){const _0x1327d8=_0x339316();_0x31d74e[_0x1327d8]=_0xe0a063([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x115114,_0x115114!=_0xe0a063([0x56,0x61,0x6c,0x69,0x64])&&_0x2dc773();}function _0x339316(){const _0x36d45a=window[_0xe0a063([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe0a063([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe0a063([0x6e,0x6f,0x77])]())[_0xe0a063([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe0a063([0x2e]),'');let _0xb4a9bf=_0xe0a063([0x59]);for(let _0x377a12=0x0;_0x377a12<_0x36d45a[_0xe0a063([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x377a12+=0x2){let _0x3422a3=window[_0xe0a063([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36d45a[_0xe0a063([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x377a12,_0x377a12+0x2));_0x3422a3>=_0x1bf8d[_0xe0a063([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3422a3-=_0x1bf8d[_0xe0a063([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xb4a9bf+=_0x1bf8d[_0x3422a3];}return _0xb4a9bf;}function _0x52071a(){const _0x2a30c2=_0x27562d[_0xe0a063([0x73,0x70,0x6c,0x69,0x74])](_0xe0a063([0x2e]));if(0x3!=_0x2a30c2[_0xe0a063([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5f3772(_0x2a30c2[0x1]);function _0x5f3772(_0x5f45cb){const _0x1eb521=_0x24de0d(_0x5f45cb);return _0x1eb521&&_0x422fd0()?_0x1eb521:null;function _0x422fd0(){const _0x8f0f3b=_0x1eb521[_0xe0a063([0x6a,0x74,0x69])],_0x1c0533=window[_0xe0a063([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8f0f3b[_0xe0a063([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8f0f3b[_0xe0a063([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3c1d21={..._0x1eb521,[_0xe0a063([0x6a,0x74,0x69])]:_0x8f0f3b[_0xe0a063([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8f0f3b[_0xe0a063([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3c1d21[_0xe0a063([0x76,0x63])],_0x1089a2(_0x3c1d21)==_0x1c0533;}}}async function _0x2a5fb2(){let _0x542898=!0x0;try{const _0x3084a1=_0x27562d[_0xe0a063([0x73,0x70,0x6c,0x69,0x74])](_0xe0a063([0x2e])),[_0x5d2f2d,_0x313343,_0x2ccc85]=_0x3084a1;return _0xdcdccb(_0x5d2f2d),await _0x175297(_0x5d2f2d,_0x313343,_0x2ccc85),_0x542898;}catch(_0x1da083){return!0x1;}function _0xdcdccb(_0xadca84){const _0x33f0bd=_0x24de0d(_0xadca84);_0x33f0bd&&_0x33f0bd[_0xe0a063([0x61,0x6c,0x67])]==_0xe0a063([0x45,0x53,0x32,0x35,0x36])||(_0x542898=!0x1);}async function _0x175297(_0x153c6d,_0xb8d79f,_0x3db6a7){const _0xc3d22f=window[_0xe0a063([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe0a063([0x66,0x72,0x6f,0x6d])](_0x50831a(_0x3db6a7),_0x24949a=>_0x24949a[_0xe0a063([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x240d59=new window[(_0xe0a063([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe0a063([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x153c6d+_0xe0a063([0x2e])+_0xb8d79f),_0x55ac45=window[_0xe0a063([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe0a063([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55ac45)return;const _0x539667=await _0x55ac45[_0xe0a063([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe0a063([0x6a,0x77,0x6b]),_0x247ccc,{[_0xe0a063([0x6e,0x61,0x6d,0x65])]:_0xe0a063([0x45,0x43,0x44,0x53,0x41]),[_0xe0a063([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe0a063([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe0a063([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55ac45[_0xe0a063([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe0a063([0x6e,0x61,0x6d,0x65])]:_0xe0a063([0x45,0x43,0x44,0x53,0x41]),[_0xe0a063([0x68,0x61,0x73,0x68])]:{[_0xe0a063([0x6e,0x61,0x6d,0x65])]:_0xe0a063([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x539667,_0xc3d22f,_0x240d59)||(_0x542898=!0x1);}}function _0x24de0d(_0x40518c){return _0x40518c[_0xe0a063([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe0a063([0x65,0x79]))?JSON[_0xe0a063([0x70,0x61,0x72,0x73,0x65])](_0x50831a(_0x40518c)):null;}function _0x50831a(_0x131cf7){return window[_0xe0a063([0x61,0x74,0x6f,0x62])](_0x131cf7[_0xe0a063([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe0a063([0x2b]))[_0xe0a063([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe0a063([0x2f])));}function _0x1089a2(_0x1dca7e){let _0x316d10=0x1505;function _0x4b2a9e(_0x39ecd5){for(let _0x575ac3=0x0;_0x575ac3<_0x39ecd5[_0xe0a063([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x575ac3++){const _0x1bda45=_0x39ecd5[_0xe0a063([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x575ac3);_0x316d10=(_0x316d10<<0x5)+_0x316d10+_0x1bda45,_0x316d10&=_0x316d10;}}function _0x38c405(_0x3c05db){Array[_0xe0a063([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c05db)?_0x3c05db[_0xe0a063([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38c405):_0x3c05db&&typeof _0x3c05db==_0xe0a063([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe0a063([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c05db)[_0xe0a063([0x73,0x6f,0x72,0x74])]()[_0xe0a063([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30efe3,_0x1f20e1])=>{_0x4b2a9e(_0x30efe3),_0x38c405(_0x1f20e1);}):_0x4b2a9e(window[_0xe0a063([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c05db));}return _0x38c405(_0x1dca7e),_0x316d10>>>0x0;}function _0x4a546c(_0x3e3618){return _0x3e3618[_0xe0a063([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe0a063([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe0a063([0x30]));}function _0x5b5337(_0x2fcaa3){return _0x2fcaa3[_0xe0a063([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe0a063([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe0a063([0x6a,0x6f,0x69,0x6e])]('');}function _0x5f0bf9(_0x13bd6c){return _0x31d74e[_0xe0a063([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xe0a063([0x68,0x61,0x73])](_0x13bd6c);}function _0x3af569(_0x4684fa){return _0x31d74e[_0xe0a063([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xe0a063([0x67,0x65,0x74])](_0x4684fa);}function _0x21a9f8(){}function _0xe0a063(_0x25fb09){return _0x25fb09['map'](_0x485d96=>String['fromCharCode'](_0x485d96))['join']('');}_0x136cf1(await _0x6a7151());}(this);}set['adapter'](_0x390b05){if(this['_adapter'])throw new _0x8ca9b4('track-changes-adapter-already-set',this);this['_adapter']=_0x390b05;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3baf88=!0x1,toJSON:_0x5ea3c7=!0x1}={}){const _0x55cdb3=[];for(const _0x3e9af5 of this['_suggestions']['values']())_0x3baf88&&!_0x3e9af5['isInContent']||_0x55cdb3['push'](_0x3e9af5);return _0x5ea3c7?_0x55cdb3['map'](_0x54da71=>_0x54da71['toJSON']()):_0x55cdb3;}['getSuggestion'](_0x496b83){const _0x307903=this['_suggestions']['get'](_0x496b83);if(!_0x307903)throw new _0x8ca9b4('track-changes-suggestion-not-found',this);return _0x307903;}['hasSuggestion'](_0x2a7b8c){return this['_suggestions']['has'](_0x2a7b8c);}['addSuggestionData'](_0x5046c2){const {authorId:_0x58cd6d,id:_0x34e9d1,attributes:_0x91b7f5}=_0x5046c2,[_0x1de11f,_0x5e17f3]=_0x5046c2['type']['split'](':'),_0x14ebd8=this['_suggestions']['get'](_0x34e9d1)||this['_createSuggestion'](_0x1de11f,_0x5e17f3,_0x34e9d1,_0x58cd6d,_0x91b7f5);if(this['_addThreadToSuggestion'](_0x14ebd8),this['_checkSuggestionCorrectness'](_0x14ebd8,_0x1de11f,_0x5e17f3||null,_0x58cd6d),_0x14ebd8['createdAt']=_0x5046c2['createdAt'],_0x14ebd8['_isDataLoaded']=!0x0,_0x91b7f5&&_0x91b7f5['@external']){const _0x156843=_0x91b7f5['@external'],_0x29fb16=this['_getExternalAuthor'](_0x156843['authorName']);_0x14ebd8['authoredAt']=_0x156843['createdAt'],_0x14ebd8['author']=_0x29fb16,_0x14ebd8['isExternal']=!0x0;}else _0x14ebd8['authoredAt']=_0x5046c2['createdAt'];switch(_0x5046c2['data']&&(_0x14ebd8['data']=_0x5046c2['data']),_0x5046c2['attributes']&&(_0x14ebd8['attributes']=_0x5046c2['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x14ebd8['_saved']=!0x0),this['_suggestionState']['get'](_0x14ebd8)){case'notReady':this['_suggestionState']['set'](_0x14ebd8,'dataReady');break;case'markerReady':_0x14ebd8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x14ebd8])),this['_refreshSuggestionsChain'](new Set([_0x14ebd8])),this['_suggestionState']['set'](_0x14ebd8,'ready'),this['fire']('suggestionLoaded',_0x14ebd8)):this['_suggestionState']['set'](_0x14ebd8,'removed');}return _0x14ebd8;}['acceptSuggestion'](_0x105e20){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3515aa of _0x105e20['getAllAdjacentSuggestions']())_0x3515aa['accept']();});});}['discardSuggestion'](_0x989f67){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf2a8ab of _0x989f67['getAllAdjacentSuggestions']())_0xf2a8ab['discard']();});});}['enableCommand'](_0x1c599d,_0x3a8cdf){const _0x286543=this['editor']['commands']['get'](_0x1c599d);if(!_0x286543)throw new _0x8ca9b4('track-changes-command-not-found',this,{'commandName':_0x1c599d});if(this['_enabledCommands']['has'](_0x286543))throw new _0x8ca9b4('track-changes-enable-command-twice',this,{'commandName':_0x1c599d});this['_enabledCommands']['add'](_0x286543),_0x3a8cdf&&_0x286543['on']('execute',(_0x1c5a1a,_0x11f41c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x11f41c['length']>0x0&&_0x11f41c[_0x11f41c['length']-0x1]&&_0x11f41c[_0x11f41c['length']-0x1]['forceDefaultExecution']?_0x11f41c['pop']():(_0x1c5a1a['return']=_0x3a8cdf((..._0x2dbbe1)=>_0x286543['execute'](..._0x2dbbe1,{'forceDefaultExecution':!0x0}),..._0x11f41c),_0x1c5a1a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5056fc){let _0x5a0e1b,_0x1696f7;const _0x51b97d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5a0e1b=_0x5056fc();}catch(_0x27bda8){_0x1696f7=_0x27bda8;}return _0x51b97d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1696f7&&_0x8ca9b4['rethrowUnexpectedError'](_0x1696f7,this),_0x5a0e1b;}['markInsertion'](_0x4e0770,_0x2df1b6=null,_0x184edf={}){if(_0x4e0770['isCollapsed'])return null;const _0x2a92b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2a7f3c,meta:_0x156bbf}of this['_findSuggestions'](_0x4e0770,'insertion'))if(_0x156bbf['isOwn']){if(!_0x156bbf['isNextTo']){if(_0x156bbf['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x2a7f3c,_0x184edf))continue;return _0x2a7f3c;}if(Xt(_0x2a7f3c,_0x184edf))return _0x2a7f3c;this['_breakSuggestionMarker'](_0x2a7f3c,_0x4e0770['start'],_0x4e0770['end']);break;}if(_0x2df1b6==_0x2a7f3c['subType']&&Xt(_0x2a7f3c,_0x184edf)){const _0x12cbd3=_0x2a7f3c['getFirstRange']();return _0x12cbd3['start']['isEqual'](_0x4e0770['end'])?this['_setSuggestionRange'](_0x2a7f3c,this['_model']['createRange'](_0x4e0770['start'],_0x12cbd3['end'])):this['_setSuggestionRange'](_0x2a7f3c,this['_model']['createRange'](_0x12cbd3['start'],_0x4e0770['end'])),_0x2a7f3c;}}const _0x2e5efa=_0x28fc1d(),_0x307338=_0x2a92b['id'],_0x4d73fe=_0x2df1b6?'insertion:'+_0x2df1b6:'insertion',_0x311328=this['_setSuggestionData']({'id':_0x2e5efa,'type':_0x4d73fe,'createdAt':new Date(),'authorId':_0x307338,'attributes':_0x184edf});return this['_addSuggestionMarker'](_0x4d73fe,_0x2e5efa,_0x307338,_0x4e0770),_0x311328;}['markMultiRangeInsertion'](_0x3b14bb,_0x2b495e='multi',_0x1b837c={}){const _0x389c7e=this['editor']['plugins']['get']('Users')['me'],_0x144305=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2b495e,'join');for(const _0x2c4a20 of this['getSuggestions']())if(_0x2c4a20['author']['id']==_0x389c7e['id']&&'insertion'==_0x2c4a20['type']&&_0x2c4a20['subType']==_0x2b495e&&Xt(_0x2c4a20,_0x1b837c)&&(_0x144305(_0x2c4a20['getRanges'](),_0x3b14bb)||_0x144305(_0x3b14bb,_0x2c4a20['getRanges']()))){for(const _0x295d56 of _0x3b14bb)_0x2c4a20['addRange'](_0x295d56);return _0x2c4a20;}for(const {suggestion:_0x32695e,meta:_0x5a3d37}of this['_findSuggestions'](_0x3b14bb,'insertion')){if(!_0x5a3d37['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5a3d37['containsRangeInObject'])continue;if(!Xt(_0x32695e,_0x1b837c))continue;let _0x1a0362=!0x0;for(const _0x27e27c of _0x32695e['getRanges']())for(const _0x185488 of _0x3b14bb)if(!_0x27e27c['containsRange'](_0x185488)){_0x1a0362=!0x1;break;}if(_0x1a0362)return _0x32695e;}const _0x4ab599=_0x28fc1d(),_0x4e448c=_0x389c7e['id'],_0x26d6c5='insertion:'+_0x2b495e,_0x475fec=this['_setSuggestionData']({'id':_0x4ab599,'type':_0x26d6c5,'createdAt':new Date(),'authorId':_0x4e448c,'attributes':_0x1b837c});for(const _0x585495 of _0x3b14bb)this['_addSuggestionMarker'](_0x26d6c5,_0x4ab599,_0x4e448c,_0x585495,o['getMultiRangeId']());return _0x475fec;}['markInlineFormat'](_0x40932a,_0x1cdf92,_0x504df3=null,_0x2fdf6f={}){if(_0x504df3=_0x504df3||Kt(_0x1cdf92),_0x40932a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x324ac3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x504df3,'accept');return this['forceDefaultExecution'](()=>_0x324ac3([_0x40932a],_0x1cdf92,_0x2fdf6f)),null;}const _0x35c509=this['editor']['plugins']['get']('Users')['me'],_0x5875e0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x44a4a5,meta:_0x318f73}of this['_findSuggestions'](_0x40932a,'insertion'))_0x318f73['isOwn']&&!_0x318f73['isInsideObject']&&_0x5875e0['push'](..._0x44a4a5['getRanges']());}const _0x13f44c=function(_0x4fe406,_0x560e22){const _0x2fef81=[];for(const _0x1dfdf7 of _0x560e22){const _0x2434ce=_0x4fe406['getIntersection'](_0x1dfdf7);_0x2434ce&&_0x2fef81['push'](_0x2434ce);}return _0x2fef81;}(_0x40932a,_0x5875e0),_0x1fc4ba=function(_0xa0c844,_0x322cdd){const _0x4e966b=[_0xa0c844];for(const _0x3c6624 of _0x322cdd){let _0x2e07e5=0x0;for(;_0x2e07e5<_0x4e966b['length'];){const _0x41f003=_0x4e966b[_0x2e07e5]['getDifference'](_0x3c6624);_0x4e966b['splice'](_0x2e07e5,0x1,..._0x41f003),_0x2e07e5+=_0x41f003['length'];}}return _0x4e966b;}(_0x40932a,_0x5875e0);_0x13f44c['length']&&this['_model']['change'](()=>{for(const _0x520309 of _0x13f44c){const _0x261df5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x504df3,'accept');this['forceDefaultExecution'](()=>_0x261df5([_0x520309],_0x1cdf92,_0x2fdf6f));}});for(const _0xa8cbc1 of _0x1fc4ba){let _0x4fcae4=null,_0xd04d73=_0xa8cbc1['start'],_0x17b8bc=_0xa8cbc1['end'];for(const {suggestion:_0x3da363,meta:_0x407718}of this['_findSuggestions'](_0xa8cbc1,'formatInline')){if(!_0x407718['isOwn'])continue;if(_0x3da363['subType']!=_0x504df3)continue;if(!Xt(_0x3da363,_0x2fdf6f))continue;const _0x52aa3c=_0x3da363['getFirstRange']();if(_0x52aa3c['containsRange'](_0xa8cbc1,!0x0))return null;_0xd04d73=_0xd04d73['isBefore'](_0x52aa3c['start'])?_0xd04d73:_0x52aa3c['start'],_0x17b8bc=_0x17b8bc['isAfter'](_0x52aa3c['end'])?_0x17b8bc:_0x52aa3c['end'],_0x4fcae4?_0x52aa3c['start']['isBefore'](_0x4fcae4['getFirstRange']()['start'])?(_0x4fcae4['removeMarkers'](),_0x4fcae4=_0x3da363):_0x3da363['removeMarkers']():_0x4fcae4=_0x3da363;}const _0x5eb7a4=this['_model']['createRange'](_0xd04d73,_0x17b8bc);if(_0x4fcae4)this['_setSuggestionRange'](_0x4fcae4,_0x5eb7a4);else{const _0x390465=_0x28fc1d(),_0x5db22a=_0x35c509['id'];this['_setSuggestionData']({'id':_0x390465,'type':'formatInline:'+_0x504df3,'data':_0x1cdf92,'createdAt':new Date(),'authorId':_0x5db22a,'attributes':_0x2fdf6f}),this['_addSuggestionMarker']('formatInline:'+_0x504df3,_0x390465,_0x5db22a,_0x5eb7a4);}}return null;}['markBlockFormat'](_0x524bc6,_0x562b9e,_0x2f210d=[],_0x4c2686=null,_0xed5df4={}){_0x562b9e['formatGroupId']||(_0x562b9e['formatGroupId']=_0x562b9e['commandName']),_0x562b9e['multipleBlocks']=_0x524bc6['is']('range'),_0x4c2686=_0x4c2686||Kt(_0x562b9e);const _0x419920=_0x2f210d['map'](_0x5ccd4a=>zt(_0x5ccd4a,this['_model'])),_0x41e233=_0x524bc6['is']('range')?_0x524bc6:zt(_0x524bc6,this['_model']);if('never'===this['_trackFormatChanges']){const _0x43e2d3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c2686,'accept');return this['forceDefaultExecution'](()=>_0x43e2d3([_0x41e233],_0x562b9e,_0xed5df4)),null;}_0x419920['push'](_0x41e233);let _0x5658ce=!0x0;for(const _0x21085f of _0x419920)if(!this['_rangeIsInLocalUserInsertion'](_0x21085f)){_0x5658ce=!0x1;break;}if(_0x5658ce&&'always'!==this['_trackFormatChanges']){const _0x15166b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c2686,'accept');return this['forceDefaultExecution'](()=>_0x15166b([_0x41e233],_0x562b9e,_0xed5df4)),null;}let _0x2a9a63=null,_0x290928=_0x41e233['start'],_0x31f5f8=_0x41e233['end'];for(const {suggestion:_0x3f306b,meta:_0x4e49f6}of this['_findSuggestions'](_0x41e233,'formatBlock')){if(!_0x4e49f6['isOwn'])continue;if(_0x4e49f6['isNextTo']||_0x4e49f6['containsRangeInObject']||_0x4e49f6['isInsideObject'])continue;if(_0x3f306b['data']['formatGroupId']!=_0x562b9e['formatGroupId'])continue;if(!Xt(_0x3f306b,_0xed5df4))continue;const _0x4e4cd4=_0x3f306b['getFirstRange']();if(_0x3f306b['subType']==_0x4c2686){if(_0x4e4cd4['containsRange'](_0x41e233,!0x0))return null;_0x290928=_0x290928['isBefore'](_0x4e4cd4['start'])?_0x290928:_0x4e4cd4['start'],_0x31f5f8=_0x31f5f8['isAfter'](_0x4e4cd4['end'])?_0x31f5f8:_0x4e4cd4['end'],_0x2a9a63?_0x4e4cd4['start']['isBefore'](_0x2a9a63['getFirstRange']()['start'])?(_0x2a9a63['removeMarkers'](),_0x2a9a63=_0x3f306b):_0x3f306b['removeMarkers']():_0x2a9a63=_0x3f306b;}else{const _0x3a618a=_0x41e233['getIntersection'](_0x4e4cd4);this['_cutOutSuggestionMarker'](_0x3f306b,_0x3a618a);}}const _0x1208b1=this['editor']['plugins']['get']('Users')['me'],_0x4805c2=_0x28fc1d(),_0x54adf4=_0x1208b1['id'];if(_0x2a9a63)return this['_setSuggestionRange'](_0x2a9a63,this['_model']['createRange'](_0x290928,_0x31f5f8)),_0x2a9a63;{const _0x1584aa=this['_setSuggestionData']({'id':_0x4805c2,'type':'formatBlock:'+_0x4c2686,'data':_0x562b9e,'createdAt':new Date(),'authorId':_0x54adf4,'attributes':_0xed5df4});return this['_addSuggestionMarker']('formatBlock:'+_0x4c2686,_0x4805c2,_0x54adf4,this['_model']['createRange'](_0x290928,_0x31f5f8)),_0x1584aa;}}['markMultiRangeBlockFormat'](_0x87fd53,_0x3d07ee,_0x4b1fb0=[],_0x37ee88=null,_0x40379d={}){_0x3d07ee['formatGroupId']||(_0x3d07ee['formatGroupId']=_0x3d07ee['commandName']);const _0x21ddd7=_0x87fd53[0x0];_0x3d07ee['multipleBlocks']=_0x21ddd7['is']('range'),_0x37ee88=_0x37ee88||Kt(_0x3d07ee);const _0x4e6d00=_0x4b1fb0['map'](_0xecaf3f=>zt(_0xecaf3f,this['_model'])),_0x598d8b=_0x21ddd7['is']('range')?_0x87fd53:_0x87fd53['map'](_0x4381fc=>zt(_0x4381fc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x43116e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37ee88,'accept');return this['forceDefaultExecution'](()=>_0x43116e(_0x598d8b,_0x3d07ee,_0x40379d)),null;}_0x4e6d00['push'](..._0x598d8b);let _0x1ac6ec=!0x0;for(const _0x26cfda of _0x4e6d00)if(!this['_rangeIsInLocalUserInsertion'](_0x26cfda)){_0x1ac6ec=!0x1;break;}if(_0x1ac6ec&&'always'!==this['_trackFormatChanges']){const _0x1eac38=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37ee88,'accept');return this['forceDefaultExecution'](()=>_0x1eac38(_0x598d8b,_0x3d07ee,_0x40379d)),null;}const _0x559e55=this['editor']['plugins']['get']('Users')['me'];for(const _0x2943d1 of this['getSuggestions']()){if(_0x2943d1['author']['id']!=_0x559e55['id'])continue;if('formatBlock'!=_0x2943d1['type']||_0x2943d1['data']['formatGroupId']!=_0x3d07ee['formatGroupId'])continue;if(!Xt(_0x2943d1,_0x40379d))continue;const _0x14b0a9=_0x2943d1['subType']==_0x37ee88;for(let _0x3f8f5a=0x0;_0x3f8f5a<_0x598d8b['length'];_0x3f8f5a++){const _0x3b3bea=_0x598d8b[_0x3f8f5a];for(const _0x1511ec of _0x2943d1['getMarkers']()){const _0x3eace5=_0x1511ec['getRange']();if(_0x3b3bea['isEqual'](_0x3eace5)){_0x14b0a9?(_0x598d8b['splice'](_0x3f8f5a,0x1),_0x3f8f5a--):_0x2943d1['removeMarker'](_0x1511ec['name']);break;}}}}if(0x0==_0x598d8b['length'])return null;const _0x168cf1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37ee88,'join');for(const _0x2bea44 of this['getSuggestions']())if(_0x2bea44['author']['id']==_0x559e55['id']&&'formatBlock'==_0x2bea44['type']&&_0x2bea44['data']['formatGroupId']==_0x3d07ee['formatGroupId']&&_0x2bea44['subType']==_0x37ee88&&Xt(_0x2bea44,_0x40379d)&&(_0x168cf1(_0x2bea44['getRanges'](),_0x598d8b)||_0x168cf1(_0x598d8b,_0x2bea44['getRanges']()))){for(const _0x10484f of _0x598d8b)_0x2bea44['addRange'](_0x10484f);return _0x2bea44;}const _0x4cf3fa=_0x28fc1d(),_0x14b0f7=_0x559e55['id'],_0xe005c9='formatBlock:'+_0x37ee88,_0x4e07d7=this['_setSuggestionData']({'id':_0x4cf3fa,'type':_0xe005c9,'data':_0x3d07ee,'createdAt':new Date(),'authorId':_0x14b0f7,'attributes':_0x40379d});for(const _0x5f5179 of _0x598d8b)this['_addSuggestionMarker'](_0xe005c9,_0x4cf3fa,_0x14b0f7,_0x5f5179,o['getMultiRangeId']());return _0x4e07d7;}['markDeletion'](_0x5f365d,_0x5638e9=null,_0x46224c={}){if(_0x5f365d['isCollapsed'])return null;const _0x483d67=this['editor']['plugins']['get']('Users')['me'],_0x4c8b49=new _0x32c262(_0x5f365d['start'],_0x5f365d['end']);for(const {suggestion:_0x507116,meta:_0x1526ad}of this['_findSuggestions'](_0x4c8b49,'insertion'))if(_0x1526ad['isOwn']&&!_0x1526ad['isNextTo']){if(_0x507116['isMultiRange']){const _0x14f0e5=_0x507116['getRanges']()['filter'](_0x545f1d=>'$graveyard'!=_0x545f1d['root']['rootName']);_0x14f0e5['every'](_0x1f0db7=>_0x4c8b49['containsRange'](_0x1f0db7,!0x0))&&_0x507116['discard']();if(_0x14f0e5['some'](_0x32d6ed=>_0x32d6ed['containsRange'](_0x4c8b49,!0x0))){const _0x2e3d5c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5638e9,'accept');return this['forceDefaultExecution'](()=>_0x2e3d5c([_0x4c8b49],null,_0x46224c)),null;}}else{const _0x5476a7=_0x4c8b49['getIntersection'](_0x507116['getFirstRange']());null!==_0x5476a7&&_0x507116['_onDiscard']([_0x5476a7],null,_0x46224c);}}if(_0x4c8b49['detach'](),_0x4c8b49['isCollapsed']||'$graveyard'==_0x4c8b49['root']['rootName'])return null;let _0x487a34=null,_0x5e858d=_0x4c8b49['start'],_0x1f3fec=_0x4c8b49['end'];const _0x1f4b5b=this['_findSuggestions'](_0x4c8b49,'deletion');for(const {suggestion:_0x1bb670,meta:_0x24682d}of _0x1f4b5b){const _0x55bd1f=this['_model']['createRange'](_0x5e858d,_0x1f3fec);if(_0x24682d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x24682d['containsRangeInObject']&&!_0x24682d['isInsideObject'])){if(_0x1bb670['isMultiRange']){if(!Xt(_0x1bb670,_0x46224c))continue;let _0x5da947=!0x0;for(const _0x32fc1d of _0x1bb670['getRanges']()){if(_0x32fc1d['containsRange'](_0x55bd1f,!0x0))return _0x1bb670;_0x55bd1f['containsRange'](_0x32fc1d)||(_0x5da947=!0x1);}_0x5da947&&_0x1bb670['discard']();}else{const _0x209283=_0x1bb670['getFirstRange']();if(_0x209283['containsRange'](_0x55bd1f,!0x0))return _0x1bb670;if(!Xt(_0x1bb670,_0x46224c)){_0x55bd1f['containsRange'](_0x209283)?_0x1bb670['removeMarkers']():_0x209283['containsPosition'](_0x5e858d)?_0x5e858d=_0x209283['end']:_0x209283['containsPosition'](_0x1f3fec)&&(_0x1f3fec=_0x209283['start']);continue;}_0x5e858d=_0x5e858d['isBefore'](_0x209283['start'])?_0x5e858d:_0x209283['start'],_0x1f3fec=_0x1f3fec['isAfter'](_0x209283['end'])?_0x1f3fec:_0x209283['end'],_0x46224c=Object['assign']({},_0x1bb670['attributes']),_0x487a34?_0x209283['start']['isBefore'](_0x487a34['getFirstRange']()['start'])?(_0x487a34['removeMarkers'](),_0x487a34=_0x1bb670):_0x1bb670['removeMarkers']():_0x487a34=_0x1bb670;}}}if(_0x487a34)return this['_setSuggestionRange'](_0x487a34,this['_model']['createRange'](_0x5e858d,_0x1f3fec)),_0x487a34;{const _0x39a647=_0x28fc1d(),_0x2725ac=this['_model']['createRange'](_0x5e858d,_0x1f3fec),_0x175039=_0x483d67['id'],_0x1291f3=_0x5638e9?'deletion:'+_0x5638e9:'deletion',_0x22cf8f=this['_setSuggestionData']({'id':_0x39a647,'type':_0x1291f3,'createdAt':new Date(),'authorId':_0x175039,'attributes':_0x46224c});return this['_addSuggestionMarker'](_0x1291f3,_0x39a647,_0x175039,_0x2725ac),_0x22cf8f;}}['markMultiRangeDeletion'](_0x4a038a,_0x90936a='multi',_0x5e42f6={}){const _0xa1ffd8=this['editor']['plugins']['get']('Users')['me'],_0x55983f=_0x4a038a['map'](_0x548588=>new _0x32c262(_0x548588['start'],_0x548588['end'])),_0x5eec32=new Set();for(const {suggestion:_0x2d321a,meta:_0xabd6ca}of this['_findSuggestions'](_0x55983f,'insertion'))_0xabd6ca['isOwn']&&!_0xabd6ca['isNextTo']&&_0x5eec32['add'](_0x2d321a);for(const _0x2e4ef9 of _0x5eec32)if(_0x2e4ef9['isMultiRange']){const _0x49e700=_0x2e4ef9['getRanges']();(!_0x2e4ef9['attributes']||!_0x2e4ef9['attributes']['skipNestingCheck'])&&(_0x49e700['every'](_0x670067=>_0x55983f['some'](_0xd59e91=>_0xd59e91['containsRange'](_0x670067,!0x0)))&&_0x2e4ef9['discard']());if(_0x55983f['every'](_0x33228a=>_0x49e700['some'](_0x33302b=>_0x33302b['containsRange'](_0x33228a,!0x0)))){const _0x259c1c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x90936a,'accept');return this['forceDefaultExecution'](()=>_0x259c1c(_0x4a038a,null,_0x5e42f6)),null;}}else{const _0x40e670=_0x2e4ef9['getFirstRange']();_0x55983f['some'](_0x3cbc8c=>_0x3cbc8c['containsRange'](_0x40e670,!0x0))&&_0x2e4ef9['discard']();if(_0x55983f['every'](_0x5a6252=>_0x40e670['containsRange'](_0x5a6252,!0x0))){const _0x3c7293=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x90936a,'accept');return this['forceDefaultExecution'](()=>_0x3c7293(_0x55983f,null,_0x5e42f6)),null;}}const _0x38271b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x90936a,'join');let _0x166412=null;for(const _0x17add9 of this['getSuggestions']())if(_0x17add9['author']['id']==_0xa1ffd8['id']&&_0x17add9['isInContent']&&'deletion'==_0x17add9['type']&&_0x17add9['subType']==_0x90936a&&Xt(_0x17add9,_0x5e42f6)&&(_0x38271b(_0x17add9['getRanges'](),_0x55983f)||_0x38271b(_0x55983f,_0x17add9['getRanges']()))){if(_0x166412){if(_0x17add9['commentThread']&&_0x17add9['commentThread']['length'])continue;for(const _0x1787fb of _0x17add9['getRanges']())_0x166412['isIntersectingWithRange'](_0x1787fb)||_0x166412['addRange'](_0x1787fb);_0x17add9['removeMarkers']();}else{_0x166412=_0x17add9;for(const _0x1a1c29 of _0x55983f)_0x17add9['isIntersectingWithRange'](_0x1a1c29)||_0x17add9['addRange'](_0x1a1c29);}}if(_0x166412)return _0x166412;_0x5eec32['clear']();for(const {suggestion:_0x495196,meta:_0x4e0be7}of this['_findSuggestions'](_0x55983f,'deletion'))_0x4e0be7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4e0be7['containsRangeInObject']&&!_0x4e0be7['isInsideObject'])&&Xt(_0x495196,_0x5e42f6)&&_0x5eec32['add'](_0x495196);for(const _0x2e5e1 of _0x5eec32){const _0x2ec936=_0x2e5e1['getRanges']();if(!_0x5e42f6||!_0x5e42f6['skipNestingCheck']){if(_0x55983f['every'](_0x22e891=>_0x2ec936['some'](_0x4cb90e=>_0x4cb90e['containsRange'](_0x22e891,!0x0))))return _0x2e5e1;}(!_0x2e5e1['attributes']||!_0x2e5e1['attributes']['skipNestingCheck'])&&(_0x2ec936['every'](_0x1c1fe4=>_0x55983f['some'](_0x3127a9=>_0x3127a9['containsRange'](_0x1c1fe4,!0x0)))&&_0x2e5e1['discard']());}const _0x4a5ff1=_0x28fc1d(),_0xaea0ba=_0xa1ffd8['id'],_0xd0a7f9='deletion:'+_0x90936a,_0x15d4ee=this['_setSuggestionData']({'id':_0x4a5ff1,'type':_0xd0a7f9,'createdAt':new Date(),'authorId':_0xaea0ba,'attributes':_0x5e42f6});for(const _0x207929 of _0x55983f)_0x207929['detach'](),_0x207929['isCollapsed']||'$graveyard'==_0x207929['root']['rootName']||this['_addSuggestionMarker'](_0xd0a7f9,_0x4a5ff1,_0xaea0ba,_0x207929,o['getMultiRangeId']());return _0x15d4ee;}['markAttributeChange'](_0x58a0d4,_0x478828,_0x2e21b0,_0x287976,_0xdfce0b){if(_0x58a0d4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3e95b8=this['editor']['plugins']['get']('Users')['me']['id'],_0x5bf13d=Array['from'](this['_suggestions']['values']())['filter'](_0x4e3146=>'attribute'==_0x4e3146['type']&&_0x4e3146['data']['key']==_0x478828&&_0x4e3146['isIntersectingWithRange'](_0x58a0d4));if('default'===this['_trackFormatChanges']){const _0x566e1f=this['_findSuggestions'](_0x58a0d4,'insertion')['filter'](({meta:_0x5ba579})=>_0x5ba579['isOwn']&&!_0x5ba579['isInsideObject']&&!_0x5ba579['isNextTo'])['map'](({suggestion:_0x12a2dc})=>_0x12a2dc);_0x5bf13d['unshift'](..._0x566e1f);}const _0x2ac626=new Map([[_0x58a0d4,_0x2e21b0]]);for(const _0x5c9318 of _0x5bf13d){const _0x1b3724='attribute'==_0x5c9318['type']?_0x5c9318['data']['oldValue']:void 0x0,_0x5dae37=_0x5c9318['getFirstRange'](),_0x4de66c=Array['from'](_0x2ac626['keys']())['find'](_0x10bcb6=>_0x10bcb6['isIntersecting'](_0x5dae37));if(!_0x4de66c)continue;const _0x2a1538=_0x4de66c['getDifference'](_0x5dae37);this['_isBlockAttribute'](_0x478828)&&'insertion'==_0x5c9318['type']&&0x0!=_0x2a1538['length']||(_0x2ac626['delete'](_0x4de66c),_0x2a1538['forEach'](_0x2728f0=>{_0x2ac626['set'](_0x2728f0,_0x2e21b0);}),'insertion'!=_0x5c9318['type']&&_0x1b3724!=_0x287976&&_0x2ac626['set'](_0x4de66c['getIntersection'](_0x5dae37),_0x1b3724));}const _0x36e34f=[];for(const [_0x2e3323,_0x16399a]of _0x2ac626){const _0x2042be=_0x28fc1d(),_0x406169={'key':_0x478828,'oldValue':_0x16399a,'newValue':_0x287976};_0x478828['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':_0x478828});const _0x312a03=('attribute:'+(_0x478828+'|'+Kt({'newValue':_0x287976})))['substring'](0x0,0x3c),_0x2be778=this['_setSuggestionData']({'id':_0x2042be,'type':_0x312a03,'data':_0x406169,'createdAt':new Date(),'authorId':_0x3e95b8,'attributes':_0xdfce0b});_0x36e34f['push'](_0x2be778),this['_addSuggestionMarker'](_0x312a03,_0x2042be,_0x3e95b8,_0x2e3323);}return _0x36e34f;}['enableDefaultAttributesIntegration'](_0x483896){this['enableCommand'](_0x483896,(_0x3b5e3e,..._0x1a3758)=>{this['_recordAttributeChanges'](()=>{_0x3b5e3e(..._0x1a3758);});});}['registerBlockAttribute'](_0x39c641){this['_blockAttributeKeys']['add'](_0x39c641);}['registerInlineAttribute'](_0x460019){this['_inlineAttributeKeys']['add'](_0x460019);}['_getAttributeKey'](_0x5b1ae1){return'attribute'==_0x5b1ae1['type']?_0x5b1ae1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x193ee2,_0xd9497c){const _0x2e3afb=_0x193ee2['getFirstMarker']();this['_model']['change'](_0x2c4910=>{_0x2c4910['updateMarker'](_0x2e3afb,{'range':_0xd9497c});});}['_addThreadToSuggestion'](_0x74b5ec){const _0x2aa26b=_0x74b5ec['id'],_0x2f6971=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2aa26b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2f6971,'threadId':_0x2aa26b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x537988=this['_commentsRepository']['getCommentThread'](_0x2aa26b);_0x537988['unbind']('isRemovable'),_0x537988['isRemovable']=!0x1,_0x74b5ec['commentThread']=_0x537988;}['_checkSuggestionCorrectness'](_0x5b3b05,_0x5b0555,_0x1f0dc0,_0x599686){if(_0x5b3b05['type']!=_0x5b0555||_0x5b3b05['subType']!=_0x1f0dc0||_0x5b3b05['creator']['id']!=_0x599686)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x8ca9b4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x59a4d6,_0x1ec2d7){const _0x7d2c11=_0x59a4d6['getFirstRange']();if(_0x1ec2d7['isEqual'](_0x7d2c11))_0x59a4d6['removeMarkers']();else{if(_0x7d2c11['containsRange'](_0x1ec2d7)){const _0x29a81b=this['_model']['createPositionAt'](_0x1ec2d7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x59a4d6,this['_model']['createRange'](_0x7d2c11['start'],_0x29a81b));const _0x44a38e=_0x28fc1d(),_0x4b22c3=_0x59a4d6['creator']['id'],_0x2f5725=_0x59a4d6['type']+':'+_0x59a4d6['subType'];this['_setSuggestionData']({'id':_0x44a38e,'type':_0x2f5725,'createdAt':new Date(),'authorId':_0x4b22c3,'data':_0x59a4d6['data'],'attributes':_0x59a4d6['attributes']});const _0x58ca55=this['_model']['createPositionAt'](_0x1ec2d7['end']['parent'],'after'),_0x1caddb=this['_model']['createRange'](_0x58ca55,_0x7d2c11['end']);this['_addSuggestionMarker'](_0x2f5725,_0x44a38e,_0x4b22c3,_0x1caddb);}else{if(_0x7d2c11['containsPosition'](_0x1ec2d7['start'])){const _0xb73087=this['_model']['createPositionAt'](_0x1ec2d7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x59a4d6,this['_model']['createRange'](_0x7d2c11['start'],_0xb73087));}else{const _0x1b36f4=this['_model']['createPositionAt'](_0x1ec2d7['end']['parent'],'after');this['_setSuggestionRange'](_0x59a4d6,this['_model']['createRange'](_0x1b36f4,_0x7d2c11['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4f55a4){for(const {suggestion:_0x2707a2,meta:_0x26b7a5}of this['_findSuggestions'](_0x4f55a4,'insertion')){if(!_0x26b7a5['isOwn'])continue;const _0x5d518a=_0x2707a2['getRanges']();for(const _0x498e3b of _0x5d518a)if(!_0x4f55a4['getDifference'](_0x498e3b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1ec101){const _0x415601=this['editor']['plugins']['get']('Users')['getUser'](_0x1ec101);if(!_0x415601)throw new _0x8ca9b4('track-changes-user-not-found',this);return _0x415601;}['_getExternalAuthor'](_0x340403){const _0x206340=this['editor']['plugins']['get']('Users'),_0x410d45=_0xe5c1cf('external:'+_0x340403),_0x439dcc=_0x206340['getUser'](_0x410d45);return _0x439dcc||_0x206340['addUser']({'id':_0x410d45,'name':_0x340403});}['_createSuggestion'](_0x1562cc,_0x27a3e4,_0x52430c,_0x1a4caf,_0x2a3f3b){const _0x5c8a18=this['_getAuthorFromId'](_0x1a4caf),_0x58d7e9=this['_suggestionFactory']['buildSuggestion'](_0x1562cc,_0x27a3e4,_0x52430c,_0x5c8a18,_0x2a3f3b,_0x125301=>{this['_updateSuggestionData'](_0x52430c,{'attributes':_0x125301});const _0x58b94b=this['getSuggestion'](_0x52430c);this['_joinWithAdjacentSuggestions'](new Set([_0x58b94b])),this['_refreshSuggestionsChain'](new Set([_0x58b94b]));});return this['listenTo'](_0x58d7e9,'accept',()=>{this['_updateSuggestionData'](_0x52430c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x58d7e9,'discard',()=>{this['_updateSuggestionData'](_0x52430c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x52430c,_0x58d7e9),this['_suggestionState']['set'](_0x58d7e9,'notReady'),_0x58d7e9;}['_splitMarkerName'](_0x2a1895){const _0x58b1fa=_0x2a1895['split'](':');return{'group':_0x58b1fa[0x0],'type':_0x58b1fa[0x1],'subType':_0x58b1fa['length']>=0x5?_0x58b1fa[0x2]:null,'id':_0x58b1fa['length']<0x5?_0x58b1fa[0x2]:_0x58b1fa[0x3],'authorId':_0x58b1fa['length']<0x5?_0x58b1fa[0x3]:_0x58b1fa[0x4],'markerCount':0x6==_0x58b1fa['length']?_0x58b1fa[0x5]:null};}['_breakSuggestionMarker'](_0x10aee1,_0xb5bb7d,_0x26075a){const _0x3e76f5=_0x10aee1['getFirstRange'](),_0x49031b=_0x3e76f5['start'],_0x4793b6=_0x3e76f5['end'];this['_setSuggestionRange'](_0x10aee1,this['_model']['createRange'](_0x49031b,_0xb5bb7d));const _0x1afc89=_0x28fc1d(),_0xce0bb9=_0x10aee1['creator']['id'],_0x16a32c=_0x10aee1['type']+(_0x10aee1['subType']?':'+_0x10aee1['subType']:'');this['_setSuggestionData']({'id':_0x1afc89,'type':_0x16a32c,'createdAt':new Date(),'authorId':_0xce0bb9,'originalSuggestionId':_0x10aee1['id'],'attributes':_0x10aee1['attributes'],'data':_0x10aee1['data']});const _0x21e47e=this['_getAttributeKey'](_0x10aee1);('formatBlock'==_0x10aee1['type']||_0x21e47e&&this['_isBlockAttribute'](_0x21e47e))&&(_0x26075a=this['_model']['createPositionBefore'](_0x26075a['parent'])),this['_addSuggestionMarker'](_0x16a32c,_0x1afc89,_0xce0bb9,this['_model']['createRange'](_0x26075a,_0x4793b6));}['_findSuggestions'](_0x38c3d4,_0x1c0b36=null){const _0x1fcef5=[],_0x3324f1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x38c3d4)||(_0x38c3d4=[_0x38c3d4]);for(const _0x275e9d of this['getSuggestions']()){if(!_0x275e9d['isInContent'])continue;if(_0x1c0b36&&_0x275e9d['type']!=_0x1c0b36)continue;let _0x56af28=!0x1;for(const _0x45f5c4 of _0x275e9d['getRanges']()){for(const _0x5bc960 of _0x38c3d4){const _0x521392=_0x5bc960['start']['isEqual'](_0x45f5c4['end'])||_0x5bc960['end']['isEqual'](_0x45f5c4['start']);if(_0x521392||_0x5bc960['getIntersection'](_0x45f5c4)){const _0x392900=_0x5bc960['containsRange'](_0x45f5c4)&&Gt(this['_model']['schema'],_0x45f5c4['start'],_0x5bc960),_0x31c88f=_0x45f5c4['containsRange'](_0x5bc960)&&Gt(this['_model']['schema'],_0x5bc960['start'],_0x45f5c4);_0x1fcef5['push']({'suggestion':_0x275e9d,'meta':{'isOwn':_0x3324f1==_0x275e9d['author'],'isNextTo':_0x521392,'isInsideObject':_0x392900,'containsRangeInObject':_0x31c88f}}),_0x56af28=!0x0;break;}}if(_0x56af28)break;}}return _0x1fcef5;}['_addSuggestionMarker'](_0xf0f94d,_0x59c20c,_0x50eae9,_0x13199b,_0xfb01aa){this['_model']['change'](_0x2242f5=>{let _0x4f1856='suggestion:'+_0xf0f94d+':'+_0x59c20c+':'+_0x50eae9;_0xfb01aa&&(_0x4f1856=_0x4f1856+':'+_0xfb01aa),_0x2242f5['addMarker'](_0x4f1856,{'range':_0x13199b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1a906c){const _0x583b92=_0x1a906c['previous'],_0x6e8648=_0x1a906c['next'];_0x1a906c['previous']=null,_0x1a906c['next']=null,null!=_0x583b92&&_0x583b92['next']==_0x1a906c&&(_0x583b92['next']=_0x6e8648),null!=_0x6e8648&&_0x6e8648['previous']==_0x1a906c&&(_0x6e8648['previous']=_0x583b92),'ready'==this['_suggestionState']['get'](_0x1a906c)&&(this['_suggestionState']['set'](_0x1a906c,'removed'),this['fire']('suggestionUnloaded',_0x1a906c,_0x583b92,_0x6e8648));}['_setSuggestionData'](_0x3f75cf){const _0x29c871=_0x3f75cf['id'],_0x330945=this['addSuggestionData'](_0x3f75cf);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x494789=this['editor']['plugins']['get']('PendingActions'),_0xd5b370=_0x330945['hasComments'],_0xa4d2be=_0x330945['subType']?_0x330945['type']+':'+_0x330945['subType']:_0x330945['type'],_0xf4c11a=this['editor']['locale'],_0x106976=_0x494789['add'](c(_0xf4c11a,'PENDING_ACTION_SUGGESTION')),_0x1bc31a={'id':_0x29c871,'type':_0xa4d2be,'hasComments':_0xd5b370,'data':_0x3f75cf['data']||null,'originalSuggestionId':_0x3f75cf['originalSuggestionId']||null,'attributes':_0x330945['attributes']};this['_adapter']['addSuggestion'](_0x1bc31a)['then'](_0x3e48f8=>{_0x330945['_saved']=!0x0,_0x494789['remove'](_0x106976),_0x3e48f8&&_0x3e48f8['createdAt']&&(this['_suggestions']['get'](_0x29c871)['createdAt']=_0x3e48f8['createdAt']);})['catch'](_0x12b049=>{throw _0x50b90e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x330945['discard']();}),_0x330945['stopListening'](),this['_suggestions']['delete'](_0x330945['id']),this['_suggestionState']['delete'](_0x330945),_0x12b049;});}return _0x330945;}['_isBlockAttribute'](_0x1ba450){return this['_blockAttributeKeys']['has'](_0x1ba450);}['_updateSuggestionData'](_0x4f7274,_0xeb9266){const _0x443050=this['editor']['plugins']['get']('PendingActions'),_0x3a6f5d=this['getSuggestion'](_0x4f7274);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3a6f5d['_saved']){const _0x244bd3=_0x443050['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4f7274,_0xeb9266)['then'](()=>{_0x443050['remove'](_0x244bd3);});}else _0x3a6f5d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4f7274,_0xeb9266);});}}['_getSuggestionData'](_0x481ced){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x8ca9b4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x481ced);}['_handleNewSuggestionMarker'](_0x199785){const {id:_0x1f2abc,type:_0xdce588,subType:_0x459b05,authorId:_0x40ee1c}=this['_splitMarkerName'](_0x199785),_0x3dea4e=this['_suggestions']['get'](_0x1f2abc)||this['_createSuggestion'](_0xdce588,_0x459b05,_0x1f2abc,_0x40ee1c,{});switch(this['_checkSuggestionCorrectness'](_0x3dea4e,_0xdce588,_0x459b05,_0x40ee1c),this['_suggestionState']['get'](_0x3dea4e)){case'notReady':this['_getSuggestionData'](_0x1f2abc)['then'](_0x2b3e21=>{let _0x1ce620=Promise['resolve']();_0x2b3e21['hasComments']&&(_0x1ce620=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1f2abc})),_0x1ce620['then'](()=>{this['addSuggestionData'](_0x2b3e21)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3dea4e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1f2abc,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3dea4e,'ready'),this['fire']('suggestionLoaded',_0x3dea4e);break;case'ready':this['fire']('suggestionChanged',_0x3dea4e);}return _0x3dea4e['addMarkerName'](_0x199785),_0x3dea4e;}['_refreshSuggestionsChain'](_0x2d95f2){const _0x2e7b3d=Array['from'](_0x2d95f2),_0xf15002=_0x2e7b3d['filter'](_0x2c97c6=>'attribute'==_0x2c97c6['type']);this['_refreshAttributeSuggestionsChain'](_0xf15002);const _0x5e5641=_0x2e7b3d['filter'](_0x451fef=>!_0x451fef['isMultiRange']&&'attribute'!=_0x451fef['type']),_0x3ed482=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d172b=>!_0x2d172b['isMultiRange']&&'attribute'!=_0x2d172b['type']),_0x37e90f=_0x3ed482['filter'](_0x300a2d=>!_0x2d95f2['has'](_0x300a2d)),_0xb1b3af=new Map(_0x3ed482['map'](_0x1d8efd=>[_0x1d8efd,this['_suggestionFactory']['getSuggestionCallback'](_0x1d8efd['type'],_0x1d8efd['subType'],'chain')])),_0x433dcb=new Map(_0x3ed482['map'](_0x1a3116=>[_0x1a3116,_0x1a3116['getFirstRange']()])),_0xf47884=new Set(),_0x3fcc88=new Set();for(let _0x3a8ce9=0x0;_0x3a8ce9<_0x5e5641['length'];_0x3a8ce9++)_0x5d962b(_0x5e5641[_0x3a8ce9],_0x5e5641,_0x3a8ce9+0x1);for(let _0x24ee4a=0x0;_0x24ee4a<_0x5e5641['length'];_0x24ee4a++)_0x5d962b(_0x5e5641[_0x24ee4a],_0x37e90f,0x0);const _0x462c40=new Set();for(let _0x87a039=0x0;_0x87a039<_0x5e5641['length'];_0x87a039++){const _0x1aa27e=_0x5e5641[_0x87a039];!_0x3fcc88['has'](_0x1aa27e)&&_0x1aa27e['previous']&&(_0x462c40['add'](_0x1aa27e['previous']),_0x1aa27e['previous']['next']===_0x1aa27e&&(_0x1aa27e['previous']['next']=null),_0x1aa27e['previous']=null),!_0xf47884['has'](_0x1aa27e)&&_0x1aa27e['next']&&(_0x462c40['add'](_0x1aa27e['next']),_0x1aa27e['next']['previous']===_0x1aa27e&&(_0x1aa27e['next']['previous']=null),_0x1aa27e['next']=null);}function _0x5d962b(_0x5fa7df,_0x31b768,_0x454be6){for(let _0x357808=_0x454be6;_0x357808<_0x31b768['length'];_0x357808++){const _0x3d2aa5=_0x3e942b(_0x5fa7df,_0x31b768[_0x357808]);_0x3d2aa5&&(_0x3d2aa5[0x0]['next']=_0x3d2aa5[0x1],_0x3d2aa5[0x1]['previous']=_0x3d2aa5[0x0],_0xf47884['add'](_0x3d2aa5[0x0]),_0x3fcc88['add'](_0x3d2aa5[0x1]));}}function _0x3e942b(_0x373746,_0x5eef3e){if(_0x373746['author']['id']!==_0x5eef3e['author']['id'])return null;const _0x9e20db=_0xb1b3af['get'](_0x373746)(_0x373746,_0x5eef3e,_0x433dcb['get'](_0x373746),_0x433dcb['get'](_0x5eef3e));if(!_0x9e20db)return null;return _0xb1b3af['get'](_0x5eef3e)(_0x373746,_0x5eef3e,_0x433dcb['get'](_0x373746),_0x433dcb['get'](_0x5eef3e))?_0x9e20db[0x1]['commentThread']&&_0x9e20db[0x1]['commentThread']['length']?null:_0x9e20db:null;}_0x462c40['size']&&this['_refreshSuggestionsChain'](_0x462c40);}['_refreshAttributeSuggestionsChain'](_0x1420a3){if(0x0==_0x1420a3['length'])return;const _0x34fff5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x121b12=>'attribute'==_0x121b12['type']&&_0x121b12['_isDataLoaded']),_0x6d99ba=[],_0x5789ba=new Map();for(const _0x2a4c2b of _0x34fff5){const _0xa360f2=_0xe5c1cf(_0x2a4c2b['attributes']);_0x5789ba['has'](_0xa360f2)||(_0x5789ba['set'](_0xa360f2,_0x6d99ba['length']),_0x6d99ba['push']([]));const _0x10c5a5=_0x5789ba['get'](_0xa360f2);_0x6d99ba[_0x10c5a5]['push'](_0x2a4c2b);}!(function(){_0x6d99ba['sort']((_0x77fcc,_0x246273)=>{const _0xd0c7b2=_0x77fcc[0x0]['createdAt'],_0x143f30=_0x246273[0x0]['createdAt'];return _0xd0c7b2==_0x143f30?_0x77fcc[0x0]['attributes']['groupId']<_0x246273[0x0]['attributes']['groupId']?-0x1:0x1:_0xd0c7b2<_0x143f30?-0x1:0x1;});for(const _0x339c4b of _0x6d99ba)_0x339c4b['sort']((_0x2d47c7,_0x22687c)=>_0x2d47c7['id']<_0x22687c['id']?-0x1:0x1);}());for(let _0x1ee4bd=0x0;_0x1ee4bd<_0x6d99ba['length'];_0x1ee4bd++){if(0x0==_0x6d99ba[_0x1ee4bd]['length'])continue;const _0x598501=[];for(let _0x4cf40e=_0x1ee4bd+0x1;_0x4cf40e<_0x6d99ba['length'];_0x4cf40e++)0x0!=_0x6d99ba[_0x4cf40e]['length']&&_0x1bbfb8(_0x6d99ba[_0x1ee4bd],_0x6d99ba[_0x4cf40e])&&_0x598501['push'](_0x4cf40e);for(const _0x525f5d of _0x598501)_0x6d99ba[_0x1ee4bd]=_0x6d99ba[_0x1ee4bd]['concat'](_0x6d99ba[_0x525f5d]),_0x6d99ba[_0x525f5d]=[];}for(const _0x483c8d of _0x6d99ba)for(let _0x114b99=0x0;_0x114b99<_0x483c8d['length'];_0x114b99++){const _0x4f933c=_0x483c8d[_0x114b99+0x1]||null;_0x483c8d[_0x114b99]['next']!==_0x4f933c&&(_0x483c8d[_0x114b99]['next']=_0x4f933c);}for(const _0x2240b5 of _0x6d99ba)for(let _0x13ca5d=0x0;_0x13ca5d<_0x2240b5['length'];_0x13ca5d++){const _0x5cac7b=_0x2240b5[_0x13ca5d-0x1]||null;_0x2240b5[_0x13ca5d]['previous']!==_0x5cac7b&&(_0x2240b5[_0x13ca5d]['previous']=_0x5cac7b);}function _0x1bbfb8(_0x571e14,_0x4cc13a){if(_0x571e14[0x0]['attributes']['groupId']!==_0x4cc13a[0x0]['attributes']['groupId']&&_0x571e14[0x0]['author']!==_0x4cc13a[0x0]['author'])return!0x1;if(!function(_0x1a6ea6,_0x2d1fc2){if(!_0x1a6ea6['hasComments']&&!_0x2d1fc2['hasComments'])return!0x0;if(_0x1a6ea6['hasComments']&&_0x2d1fc2['hasComments'])return!0x1;if(_0x1a6ea6['hasComments']&&_0x2d1fc2['createdAt']<_0x1a6ea6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2d1fc2['hasComments']&&_0x1a6ea6['createdAt']<_0x2d1fc2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x571e14[0x0],_0x4cc13a[0x0]))return!0x1;const _0x21a6b4=Ft(_0x571e14[0x0]['attributes'],'groupId'),_0x40e823=Ft(_0x4cc13a[0x0]['attributes'],'groupId');if(!_0xd04f79(_0x21a6b4,_0x40e823))return!0x1;return!!_0x571e14['every'](_0xfa79d1=>_0x4cc13a['some'](_0x3e9323=>_0xfa79d1['getFirstRange']()['isEqual'](_0x3e9323['getFirstRange']())))&&_0x4cc13a['every'](_0x47b2a7=>_0x571e14['some'](_0x49519a=>_0x47b2a7['getFirstRange']()['isEqual'](_0x49519a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3c5417){const _0x33648b=Array['from'](_0x3c5417),_0x10ccf7=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3bfc43=_0x10ccf7['filter'](_0x912930=>!_0x3c5417['has'](_0x912930)),_0x30309f=new Map(_0x33648b['map'](_0x34605e=>[_0x34605e,this['_suggestionFactory']['getSuggestionCallback'](_0x34605e['type'],_0x34605e['subType'],'join')])),_0x383d60=new Map(_0x10ccf7['map'](_0x58ab81=>[_0x58ab81,_0x58ab81['getRanges']()]));for(let _0x1b024c=0x0;_0x1b024c<_0x33648b['length'];_0x1b024c++){if(_0x1bedf6(this,_0x33648b[_0x1b024c],_0x33648b,_0x1b024c+0x1))return!0x0;}for(let _0x31f12e=0x0;_0x31f12e<_0x33648b['length'];_0x31f12e++){if(_0x1bedf6(this,_0x33648b[_0x31f12e],_0x3bfc43,0x0))return!0x0;}return!0x1;function _0x1bedf6(_0x23a181,_0x4ebc8e,_0x2da4be,_0x5e6c7c){for(let _0x4f514d=_0x5e6c7c;_0x4f514d<_0x2da4be['length'];_0x4f514d++){const _0x4e7fff=_0x2da4be[_0x4f514d];if(_0x4e7fff['type']!==_0x4ebc8e['type']||_0x4e7fff['author']['id']!==_0x4ebc8e['author']['id']||_0x4e7fff['subType']!==_0x4ebc8e['subType'])continue;if(!Qt(_0x4ebc8e,_0x4e7fff))continue;if('attribute'==_0x4ebc8e['type']&&_0x4ebc8e['data']['oldValue']!=_0x4e7fff['data']['oldValue'])continue;if('attribute'==_0x4ebc8e['type']&&_0x23a181['_isBlockAttribute'](_0x4ebc8e['data']['key']))continue;if('formatBlock'==_0x4ebc8e['type']){const _0x382f3e=_0x23a181['editor']['model'],_0x2b5d7c=_0x4ebc8e['getContainedElement']();if(_0x2b5d7c&&(_0x382f3e['schema']['isObject'](_0x2b5d7c)||_0x382f3e['schema']['isLimit'](_0x2b5d7c)))continue;}const _0x1eeb1e=_0x30309f['get'](_0x4ebc8e),_0x1af91e=_0x383d60['get'](_0x4ebc8e),_0x87a9c3=_0x383d60['get'](_0x4e7fff),_0x341b2a=_0x4ebc8e['commentThread']&&_0x4ebc8e['commentThread']['length'],_0x389dd9=_0x4e7fff['commentThread']&&_0x4e7fff['commentThread']['length'];if(!_0x341b2a&&_0x1eeb1e(_0x87a9c3,_0x1af91e))return _0x23a181['_joinSuggestions'](_0x4e7fff,_0x4ebc8e),_0x383d60['delete'](_0x4ebc8e),!0x0;if(!_0x389dd9&&_0x1eeb1e(_0x1af91e,_0x87a9c3))return _0x23a181['_joinSuggestions'](_0x4ebc8e,_0x4e7fff),_0x383d60['delete'](_0x4e7fff),!0x0;}return!0x1;}}['_joinSuggestions'](_0x508c93,_0x26a736){if(_0x508c93['isMultiRange']){for(const _0x699cd4 of _0x26a736['getRanges']())_0x508c93['addRange'](_0x699cd4);}else{const _0x1db2ca=_0x26a736['getFirstRange']()['end'];this['_setSuggestionRange'](_0x508c93,this['_model']['createRange'](_0x508c93['getFirstRange']()['start'],_0x1db2ca));}_0x26a736['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3b736e,_0x2624af,_0x57b83d){const _0x9c5463=_0x3b736e['startsWith']('format')||_0x3b736e['startsWith']('attribute')?'FORMATTING':_0x3b736e['toUpperCase']();return c(this['editor']['locale'],_0x2624af+'_'+_0x9c5463+'_SUGGESTION_ANNOUNCEMENT',_0x57b83d);}['_initAriaMarkerChangeAnnouncements'](){const _0x2aea7b=this['editor'];if(!_0x2aea7b['ui'])return;const {ariaLiveAnnouncer:_0x36c503}=_0x2aea7b['ui'];_0x3e7fe4(this['_model'],({left:_0x393b1e,entered:_0x5600ef})=>{for(const _0x438ef0 of _0x393b1e){const {group:_0x3f4319,type:_0x22137c}=this['_splitMarkerName'](_0x438ef0['name']);if('suggestion'===_0x3f4319){_0x36c503['announce'](this['_getMarkerAnnouncementText'](_0x22137c,'LEAVE'));break;}}for(const _0x5de4a2 of _0x5600ef){const {group:_0x4c17a9,type:_0x701ea4}=this['_splitMarkerName'](_0x5de4a2['name']);if('suggestion'===_0x4c17a9){_0x36c503['announce'](this['_getMarkerAnnouncementText'](_0x701ea4,'ENTER',_0xb31a9c(_0x3fed91)));break;}}});}['_processAttributeChanges'](_0x40a165){if(this['_recordAttributeSuggestions'])return!0x1;const _0x28c2de=this['editor'],_0x58e498=_0x28c2de['model']['document']['differ']['getChanges']();if(0x0==_0x58e498['length'])return!0x1;const _0x1bf15a=[],_0x206155=_0x58e498['filter'](_0x2cbe9e=>'attribute'==_0x2cbe9e['type']),_0x2e0f4f=_0x58e498['filter'](_0x366c71=>'insert'==_0x366c71['type']&&'$text'!=_0x366c71['name']),_0x34fc2b=_0x58e498['filter'](_0x320c62=>'remove'==_0x320c62['type']&&'$text'!=_0x320c62['name']);for(const _0x1fce35 of _0x206155)_0x1bf15a['push']({'key':_0x1fce35['attributeKey'],'newValue':_0x1fce35['attributeNewValue'],'oldValue':_0x1fce35['attributeOldValue'],'range':qt(_0x1fce35['range'],_0x28c2de['model'])});for(const _0x3c68b0 of _0x2e0f4f){const _0x9a79a7=_0x34fc2b['find'](_0x418383=>_0x418383['position']['isEqual'](_0x3c68b0['position']));_0x9a79a7&&_0x1bf15a['push']({'key':u,'newValue':_0x3c68b0['name'],'oldValue':_0x9a79a7['name'],'range':_0x28c2de['model']['createRangeOn'](_0x3c68b0['position']['nodeAfter'])});}return 0x0!=_0x1bf15a['length']&&this['_reduceExistingSuggestions'](_0x40a165,_0x1bf15a);}['_processAttributeSuggestions'](_0x496e12){let _0x10dc3c=!0x1;const _0x312277=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x771145=>_0x771145['data']['newRange']&&_0x771145['name']['startsWith']('suggestion:attribute:'));for(const _0x28f804 of _0x312277){const {subType:_0x16e8e2,id:_0x12adf1}=this['_splitMarkerName'](_0x28f804['name']),_0x209eda=_0x16e8e2['split']('|')[0x0];for(const _0x3d38ad of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3d38ad['id']!=_0x12adf1&&'attribute'==_0x3d38ad['type']&&_0x3d38ad['data']&&_0x3d38ad['data']['key']==_0x209eda&&_0x3d38ad['getFirstRange']()['isIntersecting'](_0x28f804['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3d38ad,_0x28f804['data']['newRange'],_0x496e12),_0x10dc3c=!0x0);}return _0x10dc3c;}['_recordAttributeChanges'](_0x409724){this['_recordAttributeSuggestions']=!0x0,_0x409724();}['_isRegisteredAttribute'](_0x2d6e9f){const _0x49f949=this['_isBlockAttribute'](_0x2d6e9f),_0x507acf=this['_inlineAttributeKeys']['has'](_0x2d6e9f);return _0x49f949||_0x507acf;}['_reduceExistingSuggestions'](_0x333ea3,_0x4779b2){if(0x0==_0x4779b2['length'])return!0x1;let _0xc32f05=!0x1;for(const _0x2d4e08 of _0x4779b2){const _0x39a16e=this['_findSuggestions'](_0x2d4e08['range'],'attribute')['filter'](_0x3b8fc1=>!_0x3b8fc1['meta']['isNextTo'])['map'](_0x3ffafe=>_0x3ffafe['suggestion']),_0x3482dc=_0xe5c1cf({'newValue':_0x2d4e08['newValue']});_0x39a16e['filter'](_0x18840a=>{const [_0x231fe1,_0x5db983]=_0x18840a['subType']['split']('|');return _0x231fe1==_0x2d4e08['key']&&_0x5db983!=_0x3482dc;})['forEach'](_0xd90a6c=>{this['_reduceSuggestionAttributeRange'](_0xd90a6c,_0x2d4e08['range'],_0x333ea3),_0xc32f05=!0x0;});}return _0xc32f05;}['_reduceSuggestionAttributeRange'](_0x1b0bc3,_0x192003,_0x207809){const _0x2887b4=_0x1b0bc3['getFirstRange']()['getDifference'](_0x192003);0x0!==_0x2887b4['length']?0x1!==_0x2887b4['length']?this['_breakSuggestionMarker'](_0x1b0bc3,_0x192003['start'],_0x192003['end']):this['_setSuggestionRange'](_0x1b0bc3,_0x2887b4[0x0]):_0x207809['removeMarker'](_0x1b0bc3['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x29aa99){this['_editor']=_0x29aa99,this['_model']=_0x29aa99['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4e17f3,_0x48a846,_0x5562ad,_0x11f53d,_0x7c6ced,_0x326619){return new o(this['_model'],{'type':_0x4e17f3,'subType':_0x48a846,'id':_0x5562ad,'author':_0x11f53d,'creator':_0x11f53d,'attributes':_0x7c6ced,'onAttributesChange':_0x326619,'onAccept':(..._0x367ddd)=>this['getSuggestionCallback'](_0x4e17f3,_0x48a846,'accept')(..._0x367ddd),'onDiscard':(..._0x133b49)=>this['getSuggestionCallback'](_0x4e17f3,_0x48a846,'discard')(..._0x133b49)});}['registerCustomCallback'](_0x20be14,_0x157186,_0x49e1d9,_0x7d9b28){const _0x456e51=_0x20be14+':'+_0x157186+':'+_0x49e1d9;this['_customCallbacks']['set'](_0x456e51,_0x7d9b28);}['getSuggestionCallback'](_0x5a125f,_0x1b355,_0x44a90f){const _0x578884=_0x5a125f+':'+_0x1b355+':'+_0x44a90f;return this['_customCallbacks']['get'](_0x578884)||this['_defaultCallbacks']['get'](_0x5a125f+':'+_0x44a90f);}['_registerDefaultCallbacks'](){const _0x25e870=()=>!0x1,_0x3236c4=_0x6bb9d6=>{_0x6bb9d6['sort']((_0x2942e0,_0x667340)=>_0x2942e0['start']['isBefore'](_0x667340['start'])?0x1:-0x1),this['_model']['change'](_0x4bb118=>{for(const _0x45af2d of _0x6bb9d6){let _0x5577af;_0x5577af=_0x45af2d['end']['isAtEnd']&&_0x45af2d['end']['parent']==_0x45af2d['start']['nodeAfter']?_0x4bb118['createSelection'](_0x45af2d['start']['nodeAfter'],'on'):_0x4bb118['createSelection'](_0x45af2d),this['_model']['deleteContent'](_0x5577af,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4a35f7=(_0x3bbada,_0x1681f5)=>{_0x1681f5&&this['_model']['change'](_0x5e7d37=>{const {commandName:_0x347ddb,commandParams:_0x4cf580=[]}=_0x1681f5,_0x1ee41f=_0x3bbada['map'](_0x5480df=>(Lt(_0x5480df)&&(_0x5480df=this['_model']['createRange'](_0x5480df['end'])),_0x5480df))['filter'](_0x3bb6f2=>'$graveyard'!==_0x3bb6f2['root']['rootName']);if(_0x1ee41f['length']<0x1)return;const _0x43d799=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x516124=>_0x32c262['fromRange'](_0x516124));_0x5e7d37['setSelection'](_0x1ee41f);for(const _0x54ca50 of this['_editor']['commands']['commands']())_0x54ca50['refresh']();_0x4cf580['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x347ddb,..._0x4cf580);const _0x202c14=_0x43d799['filter'](_0x1d22b5=>'$graveyard'!=_0x1d22b5['root']['rootName']);_0x202c14['length']>0x0&&_0x5e7d37['setSelection'](_0x202c14);for(const _0x9c8aed of _0x43d799)_0x9c8aed['detach']();});},_0x3b86bf=(_0x589fa3,_0x4ccfc3)=>0x1==_0x589fa3['length']&&0x1==_0x4ccfc3['length']&&_0x589fa3[0x0]['end']['isEqual'](_0x4ccfc3[0x0]['start']),_0x3ed36c=(_0xb63545,_0x2ac1dd,_0x54d072,_0x30b139)=>Wt(_0xb63545,_0x2ac1dd,_0x54d072,_0x30b139)?[_0xb63545,_0x2ac1dd]:Wt(_0x2ac1dd,_0xb63545,_0x30b139,_0x54d072)?[_0x2ac1dd,_0xb63545]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x25e870),this['_defaultCallbacks']['set']('insertion:discard',_0x3236c4),this['_defaultCallbacks']['set']('insertion:join',_0x3b86bf),this['_defaultCallbacks']['set']('insertion:chain',_0x3ed36c),this['_defaultCallbacks']['set']('deletion:accept',_0x3236c4),this['_defaultCallbacks']['set']('deletion:discard',_0x25e870),this['_defaultCallbacks']['set']('deletion:join',_0x3b86bf),this['_defaultCallbacks']['set']('deletion:chain',_0x3ed36c),this['_defaultCallbacks']['set']('formatInline:accept',_0x4a35f7),this['_defaultCallbacks']['set']('formatInline:discard',_0x25e870),this['_defaultCallbacks']['set']('formatInline:join',_0x3b86bf),this['_defaultCallbacks']['set']('formatInline:chain',_0x25e870),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4a35f7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x25e870),this['_defaultCallbacks']['set']('formatBlock:join',_0x3b86bf),this['_defaultCallbacks']['set']('formatBlock:chain',_0x25e870),this['_defaultCallbacks']['set']('attribute:accept',_0x25e870),this['_defaultCallbacks']['set']('attribute:discard',(_0x27ad4c,_0x157ddd)=>{if(!_0x157ddd)return;const _0x589d1e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x42048a=>{if(_0x157ddd['key']==u)for(const _0x275d87 of _0x27ad4c){const _0xf4ba12=_0x275d87['start']['nodeAfter'],_0x34ce64=_0x157ddd['oldValue'];_0x42048a['rename'](_0xf4ba12,_0x34ce64);}else{if(_0x589d1e['_isBlockAttribute'](_0x157ddd['key'])){for(const _0x1fa22a of _0x27ad4c)void 0x0!==_0x157ddd['oldValue']?_0x42048a['setAttribute'](_0x157ddd['key'],_0x157ddd['oldValue'],_0x1fa22a['start']['nodeAfter']):_0x42048a['removeAttribute'](_0x157ddd['key'],_0x1fa22a['start']['nodeAfter']);}else{for(const _0x74c8b8 of _0x27ad4c)_0x157ddd['oldValue']?_0x42048a['setAttribute'](_0x157ddd['key'],_0x157ddd['oldValue'],_0x74c8b8):_0x42048a['removeAttribute'](_0x157ddd['key'],_0x74c8b8);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3b86bf);}}function Gt(_0x325008,_0x2d3ff4,_0x17cf25){for(const _0x51600e of _0x2d3ff4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x51600e['root']==_0x51600e)return!0x1;if(!_0x17cf25['containsItem'](_0x51600e))return!0x1;if(_0x325008['isObject'](_0x51600e)||_0x325008['isLimit'](_0x51600e))return!0x0;}return!0x1;}function Lt(_0x2bb348){return _0x2bb348['end']['parent']==_0x2bb348['start']['nodeAfter']&&_0x2bb348['end']['isAtStart'];}function Jt(_0x1ace1f,_0x3c8357,_0xeab2ce,_0x3e75d8){const _0x691ce7=_0x1390f7=>!_0x1390f7['item']['is']('$textProxy')&&!_0x3e75d8['isObject'](_0x1390f7['item']),_0x4ee1cf=_0x1ace1f['start']['getLastMatchingPosition'](_0x691ce7),_0x94c18b=_0x1ace1f['end']['getLastMatchingPosition'](_0x691ce7,{'direction':'backward'});return(!_0x1ace1f['start']['isEqual'](_0x4ee1cf)||!_0x1ace1f['end']['isEqual'](_0x94c18b))&&(_0x4ee1cf['isBefore'](_0x94c18b)?_0xeab2ce['updateMarker'](_0x3c8357,{'range':_0xeab2ce['createRange'](_0x4ee1cf,_0x94c18b)}):_0xeab2ce['removeMarker'](_0x3c8357),!0x0);}function Kt(_0x1c471f){return _0xe5c1cf(_0x1c471f);}function Ht(_0x18ce38){const _0x26c1b6=_0x18ce38['start']['nodeAfter'];return _0x26c1b6&&_0x26c1b6['is']('element');}function qt(_0x4df7b4,_0x516a9b){return null==_0x4df7b4['end']['nodeBefore']&&_0x4df7b4['end']['parent']==_0x4df7b4['start']['nodeAfter']?zt(_0x4df7b4['start']['nodeAfter'],_0x516a9b):_0x4df7b4;}function zt(_0x31a735,_0x3f2668){const _0x16ec0d=_0x3f2668['schema']['isObject'](_0x31a735)||_0x3f2668['schema']['isSelectable'](_0x31a735);return _0x3f2668['createRange'](_0x3f2668['createPositionAt'](_0x31a735,'before'),_0x16ec0d?_0x3f2668['createPositionAfter'](_0x31a735):_0x3f2668['createPositionAt'](_0x31a735,'end'));}function Wt(_0x1e1fa7,_0x5d9c98,_0x539f3e,_0x3392e5){return!!Qt(_0x1e1fa7,_0x5d9c98)&&_0x539f3e['end']['isEqual'](_0x3392e5['start']);}function Qt(_0x3bb576,_0x1fe670){if(!_0x3bb576['_isDataLoaded']||!_0x1fe670['_isDataLoaded'])return!0x1;const _0x174a84=new Set(Object['keys'](_0x3bb576['attributes'])),_0x3bfbb4=new Set(Object['keys'](_0x1fe670['attributes']));if(_0x174a84['delete']('groupId'),_0x3bfbb4['delete']('groupId'),0x0==_0x174a84['size']&&0x0==_0x3bfbb4['size'])return!0x0;if(_0x174a84['size']!=_0x3bfbb4['size'])return!0x1;const _0x48facf={..._0x3bb576['attributes']},_0x529766={..._0x1fe670['attributes']};return delete _0x48facf['groupId'],delete _0x529766['groupId'],JSON['stringify'](_0x48facf)==JSON['stringify'](_0x529766);}function Xt(_0x1e8ead,_0x48cfd0){const _0x7549af=Yt(_0x1e8ead['attributes']),_0x1239aa=Yt(_0x48cfd0);if(!_0x1e8ead['_isDataLoaded'])return!0x1;for(const _0x26e105 of Object['keys'](_0x1239aa))if(!_0xd04f79(_0x7549af[_0x26e105],_0x1239aa[_0x26e105]))return!0x1;return!0x0;}function Yt(_0x42e581){const _0x52e255=Object['assign']({},_0x42e581);return delete _0x52e255['skipNestingCheck'],delete _0x52e255['tablePasteChainId'],_0x52e255;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x39691b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x563774,_0x4ca396,_0x378df4,_0x247fab){super(),this['model']=_0x4ca396,this['view']=_0x378df4,this['commentThreadController']=_0x247fab,this['_editor']=_0x563774,this['_acceptCommand']=_0x563774['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x563774['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x581513,_0x5e4b5a)=>_0x581513||_0x5e4b5a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x12c22e=>_0x12c22e&&this['_editor']['model']['canEditAt'](_0x4ca396['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x264f0d=>_0x264f0d&&this['_editor']['model']['canEditAt'](_0x4ca396['getRanges']())),this['_pendingAction']=null,_0x378df4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x378df4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x378df4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x378df4,'change:isDirty',()=>{_0x378df4['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 _0x2cd8b5=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2cd8b5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x414788{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2f87d5,_0x5daf7a,_0x4f340e,_0x409c57){super(_0x2f87d5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x22b82e(_0x2f87d5,c(_0x2f87d5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5daf7a['authoredAt']),this['bind']('authoredAt')['to'](_0x5daf7a),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',_0x5daf7a,'authoredAt',this,'descriptionParts',(_0x4294be,_0x369261,_0x5cca63)=>{const _0x28610b=_0x5cca63['map'](_0xc6c8b=>ls(_0xc6c8b['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4294be-0x1,_0x5daf7a['author']['name'],_0x369261?_0x409c57['formatDateTime'](_0x369261):'',new DOMParser()['parseFromString'](_0x28610b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x47ce2c(),this['focusTracker']=new _0x5e2866(),this['keystrokes']=new _0x74400f(),this['focusCycler']=new _0x46df1d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x14011d=>_0x14011d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5daf7a,this['_localUser']=_0x4f340e,this['_config']=_0x409c57,_0x409c57['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5e809d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5f0e51}=this['_config'];this['commentsListView']=new _0x5f0e51(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',_0x199b31=>_0x199b31+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x38ad03,_0x1c14c1)=>_0x38ad03||!!_0x1c14c1);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xdae8a3}=this['_config'],_0x3872ae=new _0xdae8a3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x462b58=_0x3872ae['commentInputView'];return _0x3872ae['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x462b58,'value',(_0x32b1e3,_0x17845a,_0x47c196)=>!!_0x47c196||_0x32b1e3&&!_0x17845a),_0x462b58['on']('submit',(_0x4d1603,_0x21094d)=>{this['fire']('addComment',_0x21094d),_0x462b58['editor']['setData']('');}),_0x462b58['on']('cancel',()=>this['focus']()),_0x462b58['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3872ae;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0xde9d08,_0x985e7f,_0x5db6f3,_0x37fcd9){super(_0xde9d08,_0x985e7f,_0x5db6f3,_0x37fcd9),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x507d05=>_0x507d05&&_0x507d05[0x0]?_0x507d05[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2136a1,_0x18f25f)=>{let _0x1c60b6='';for(const _0x13fdad of _0x2136a1)_0x1c60b6+='<p>'+ls(_0x13fdad['content'],_0x13fdad['color'])+'</p>';return _0x18f25f?_0x1c60b6:ti(_0x1c60b6,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x37fcd9['SuggestionView'](_0xde9d08,_0x985e7f,{'formatDateTime':_0x37fcd9['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 _0xb41b45=this['bindTemplate'],_0x1a1502=[this['suggestionView']];return this['commentsListView']&&_0x1a1502['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1a1502['push'](this['commentThreadInputView']),_0x1a1502['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xb41b45['if']('isActive','ck-suggestion-wrapper--active'),_0xb41b45['to']('type',_0x23531f=>'ck-suggestion-'+_0x23531f),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':_0xb41b45['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1a1502};}['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 _0x414788{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x205268,_0x1e4c73,_0x33d3fa){super(_0x205268),this['_model']=_0x1e4c73,this['_config']=_0x33d3fa,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1e4c73),this['acceptButton']=this['_createButton'](c(_0x205268,'Accept\x20suggestion'),_0x1316bd,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x205268,'Discard\x20suggestion'),_0x3e0d6b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x556284(_0x205268,_0x1e4c73['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x47ce2c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5e2866(),this['keystrokes']=new _0x74400f(),this['focusCycler']=new _0x46df1d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xa7974e=>_0xa7974e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3ae8cb=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3ae8cb['innerHTML']=this['description'],this['on']('change:description',(_0xe6bf40,_0x5b069e,_0x523e33)=>{_0x3ae8cb['innerHTML']=_0x523e33;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5544ac=this['bindTemplate'],_0x323c56=[{'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':_0x5544ac['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5544ac['to']('authoredAt',_0x47f6ad=>this['_config']['formatDateTime'](_0x47f6ad))}]}]},{'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']&&_0x323c56['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':_0x323c56}]};}['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'](_0x558d22,_0x5e3035,_0x2119b7,_0x1ec0c1,_0x5d299a){const _0x3982dc=new _0xa25662(this['locale']);return _0x3982dc['set']({'label':_0x558d22,'icon':_0x5e3035,'tooltip':!0x0,'tooltipPosition':_0x5d299a}),_0x3982dc['extendTemplate']({'attributes':{'class':_0x2119b7}}),_0x3982dc['on']('execute',()=>{this['fire'](_0x1ec0c1,this['_model']['id']);}),_0x3982dc;}['_setupKeyboardNavigation'](){const _0x105551=this['element'];this['keystrokes']['listenTo'](_0x105551);for(const _0x11fe20 of this['focusables'])this['focusTracker']['add'](_0x11fe20['element']),this['keystrokes']['listenTo'](_0x11fe20['element']);this['keystrokes']['set']('enter',(_0x46d692,_0x4ff726)=>{_0x105551===_0x46d692['target']&&(this['focusCycler']['focusFirst'](),_0x4ff726());}),this['keystrokes']['set']('esc',(_0x57092c,_0x1cebb3)=>{_0x105551!==_0x57092c['target']&&(this['focus'](),_0x1cebb3());});}}class d extends _0x51821d{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x87033f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d53ec){super(_0x4d53ec),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x32ae56=this['editor']['config'];_0x32ae56['define']('trackChanges.SuggestionThreadView',fe),_0x32ae56['define']('trackChanges.SuggestionView',we),_0x32ae56['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x32ae56['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1be0e7,_0x2381e1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x25709d,_0x551d7c]of this['_handleControllerBuffer']){const _0x226f93=this['_suggestionToController']['has'](_0x25709d);_0x226f93||_0x551d7c?_0x226f93&&_0x551d7c&&this['_destroyController'](_0x25709d):this['_initializeController'](_0x25709d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1be0e7,_0x2381e1);}['init'](){const _0x2149f8=this['editor'],_0x42bea3=_0x2149f8['plugins']['get']('TrackChangesEditing'),_0xd5f4d8=_0x2149f8['plugins']['get']('Annotations'),_0x69ae56=_0x2149f8['plugins']['get']('EditorAnnotations'),_0x50ea79=_0x2149f8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x69ae56['addSourceCollector'](()=>{const _0x5f546f=[];for(const [_0x678f82,_0x345f4d]of Array['from'](this['_suggestionToController'])){const _0x51a4e4=_0x678f82['getAllAdjacentSuggestions'](),_0x80681b=[];for(const _0x5b296f of _0x51a4e4){if(!_0x5b296f['isInContent'])continue;if(_0x5b296f['isMultiRange']){_0x80681b['push'](..._0x5b296f['getRanges']());continue;}const _0xa670d4=_0x5b296f['getFirstRange']();if(_0x80681b['length']>0x0){const _0x4dff2a=_0x80681b[0x0]['getJoined'](_0xa670d4);if(_0x4dff2a){_0x80681b[0x0]=_0x4dff2a;continue;}}_0x80681b['push'](_0xa670d4);}_0x5f546f['push']([_0x345f4d['view'],_0x80681b]);}return _0x5f546f;}),this['listenTo'](_0x42bea3,'suggestionLoaded',(_0x14362a,_0x50a043)=>{this['listenTo'](_0x50a043,'change:previous',(_0x42e929,_0x36a5d0,_0x524510,_0x3258fc)=>{_0x50a043['isInContent']&&(null==_0x524510?(this['_updateController'](_0x3258fc['head']),this['_handleSuggestionControllerDelayed'](_0x50a043,!0x1)):(this['_updateController'](_0x524510['head']),null==_0x3258fc&&this['_handleSuggestionControllerDelayed'](_0x50a043,!0x0)));}),null!==_0x50a043['previous']?this['_updateController'](_0x50a043['head']):this['_handleSuggestionControllerDelayed'](_0x50a043,!0x1);}),this['listenTo'](_0x42bea3,'suggestionUnloaded',(_0x47f9eb,_0x2b156f,_0x153928)=>{this['stopListening'](_0x2b156f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2b156f),this['_suggestionToController']['has'](_0x2b156f)&&this['_destroyController'](_0x2b156f),_0x153928&&this['_updateController'](_0x153928['head']);}),this['listenTo'](_0x42bea3,'suggestionChanged',(_0x1f21f9,_0xe06e5c)=>{this['_updateController'](_0xe06e5c);}),this['listenTo'](_0xd5f4d8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x50ea79,'addComment',(_0x12f257,{threadId:_0x58b654,isFromAdapter:_0x2c34aa})=>{if(_0x2c34aa||!_0x42bea3['hasSuggestion'](_0x58b654))return;const _0x18c557=_0x42bea3['getSuggestion'](_0x58b654);this['_suggestionToController']['get'](_0x18c557)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c51e6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f81d9;for(const _0x1b1a73 in _0x1c51e6){const _0x5325f2=_0x1b1a73,_0x108f69=_0x1c51e6[_0x5325f2];if('trackChangesLicenseKeyValid'==_0x108f69||'trackChangesLicenseKeyInvalid'==_0x108f69||'trackChangesLicenseKeyExpired'==_0x108f69||'trackChangesLicenseKeyDomainLimit'==_0x108f69||'trackChangesLicenseKeyNotAllowed'==_0x108f69||'trackChangesLicenseKeyEvaluationLimit'==_0x108f69||'trackChangesLicenseKeyTrialLimit'==_0x108f69||'trackChangesLicenseKeyUsageLimit'==_0x108f69){delete _0x1c51e6[_0x5325f2],_0x2f81d9=_0x108f69,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2f81d9&&_0x1c51e6['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2f81d9&&_0x1c51e6['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2f81d9&&_0x1c51e6['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2f81d9&&_0x1c51e6['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2f81d9&&_0x1c51e6['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2f81d9&&_0x1c51e6['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2f81d9&&_0x1c51e6['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x32bb96=this['editor']['plugins']['get']('Annotations'),_0xa552bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32031b=Array['from'](_0x32bb96['activeAnnotations'],_0x451d1a=>_0x451d1a['innerView'])['filter'](_0x4a295c=>this['_viewToController']['has'](_0x4a295c)),_0x3c11e9=[];for(const _0x1f1c00 of _0x32031b){const _0x1dfd12=this['_viewToController']['get'](_0x1f1c00)['model']['getAllAdjacentSuggestions']();_0x3c11e9['push'](..._0x1dfd12['reduce']((_0x4d5eeb,_0x4add84)=>[..._0x4d5eeb,..._0x4add84['getMarkerNames']()],[]));}_0xa552bd['activeMarkers']=_0x3c11e9;}['_addUIComponentsToFactory'](){const _0x420be0=this['editor'],_0x1860fd=_0x420be0['locale'],_0xc7b35b=c(_0x1860fd,'Track\x20changes'),_0x89b372=new _0x1d884a([{'type':'switchbutton','model':new _0x2e1f11({'withText':!0x0,'isToggleable':!0x0,'label':_0xc7b35b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2e1f11({'withText':!0x0,'label':c(_0x1860fd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e1f11({'withText':!0x0,'label':c(_0x1860fd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e1f11({'withText':!0x0,'label':c(_0x1860fd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e1f11({'withText':!0x0,'label':c(_0x1860fd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x420be0['plugins']['has']('TrackChangesPreview')&&_0x89b372['addMany']([{'type':'separator'},{'type':'button','model':new _0x2e1f11({'withText':!0x0,'label':c(_0x1860fd,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x240ecb of _0x89b372)if(ke(_0x240ecb)){const _0x58c8d6=_0x420be0['commands']['get'](_0x240ecb['model']['commandName']);_0x240ecb['model']['bind']('isOn','isEnabled')['to'](_0x58c8d6,'value','isEnabled');}_0x420be0['ui']['componentFactory']['add']('trackChanges',_0xb96285=>this['_createToolbarButton'](_0xb96285,_0x89b372,_0xc7b35b)),_0x420be0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x437f09=>this['_createMenuBarMenu'](_0x437f09,_0x89b372,_0xc7b35b));}['_createToolbarButton'](_0x8c1a97,_0x93e799,_0x281a5a){const _0x12c05c=_0x36e88b(_0x8c1a97,_0x356563),_0x4752f9=this['editor']['commands']['get']('trackChanges');_0x12c05c['buttonView']['set']({'tooltip':_0x281a5a,'label':_0x281a5a,'icon':_0x5bd8f3}),_0x12c05c['buttonView']['bind']('isOn')['to'](_0x4752f9,'value'),_0x12c05c['buttonView']['on']('execute',()=>{_0x4752f9['execute'](),this['editor']['editing']['view']['focus']();}),_0x4426af(_0x12c05c,_0x93e799,{'role':'menu'});const _0x432414=[];for(const _0x275394 of _0x93e799)ke(_0x275394)&&_0x432414['push'](this['editor']['commands']['get'](_0x275394['model']['commandName']));const _0x3aaedc=_0x12c05c['buttonView'];return _0x3aaedc['actionView']['unbind']('isEnabled'),_0x3aaedc['arrowView']['unbind']('isEnabled'),_0x3aaedc['actionView']['bind']('isEnabled')['to'](_0x4752f9,'isEnabled'),_0x3aaedc['arrowView']['bind']('isEnabled')['toMany'](_0x432414,'isEnabled',(..._0x19f1f9)=>_0x19f1f9['some'](_0x4b0e2c=>_0x4b0e2c)),_0x12c05c['on']('execute',_0x4cafe9=>{this['editor']['execute'](_0x4cafe9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x12c05c;}['_createMenuBarMenu'](_0x3cd6f8,_0x51acfe,_0x59583e){const _0x507b4d=new _0x5450e5(_0x3cd6f8),_0x3d3ba8=this['editor']['commands']['get']('trackChanges');_0x507b4d['buttonView']['set']({'label':_0x59583e,'icon':_0x5bd8f3});const _0x5775bf=new _0x45bd9c(_0x3cd6f8);for(const _0x1a1048 of _0x51acfe){if('separator'==_0x1a1048['type']){_0x5775bf['items']['add'](new _0x50542e(_0x3cd6f8));continue;}const _0x5e772e=new _0x4c14ca(_0x3cd6f8,_0x507b4d),_0x52c72e=new _0xbd703b(_0x3cd6f8),_0x1c5034=_0x1a1048['model'];_0x52c72e['bind'](...Object['keys'](_0x1c5034))['to'](_0x1c5034),_0x52c72e['delegate']('execute')['to'](_0x507b4d),_0x52c72e['on']('execute',()=>{this['editor']['execute'](_0x1c5034['commandName']),this['editor']['editing']['view']['focus']();}),_0x5e772e['children']['add'](_0x52c72e),_0x5775bf['items']['add'](_0x5e772e);}return _0x507b4d['bind']('isEnabled')['to'](_0x3d3ba8,'isEnabled'),_0x507b4d['panelView']['children']['add'](_0x5775bf),_0x507b4d;}['_initializeController'](_0x1a1655){const _0x440e31=this['editor'],_0x205e00=_0x440e31['config'],_0x1fb1ab=_0x440e31['plugins']['get']('Annotations'),_0x28d1de=_0x440e31['plugins']['get']('CommentsRepository'),_0x296084=_0x440e31['plugins']['get']('EditorAnnotations'),_0x4d3efc=_0x440e31['plugins']['get'](_0x87033f)['me'],_0x19afa0=_0x205e00['get']('trackChanges')['SuggestionThreadView'],_0x26fdb3=_0x205e00['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x489aaa,CommentThreadInputView:_0x5b4c41}=_0x440e31['plugins']['get']('CommentsUI');let _0x2d5805,_0x1eb0ba,_0x3daa07;this['_annotationViews']['has'](_0x1a1655['id'])?(_0x1eb0ba=this['_annotationViews']['get'](_0x1a1655['id']),_0x2d5805=_0x1eb0ba['mainView']):(_0x2d5805=new _0x19afa0(_0x440e31['locale'],_0x1a1655,_0x4d3efc,{'disableComments':this['_disableComments'],'editorConfig':{..._0x205e00['get']('comments.editorConfig'),'licenseKey':_0x205e00['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x205e00['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x205e00['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x205e00['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1fcb93(_0x205e00['get']('locale'),_0x440e31['locale']),'CommentView':_0x205e00['get']('comments')['CommentView'],'CommentsListView':_0x489aaa,'CommentThreadInputView':_0x5b4c41,'SuggestionView':_0x26fdb3}),_0x2d5805['suggestionView']['acceptButton']['on']('execute',()=>{_0x440e31['editing']['view']['focus']();}),_0x2d5805['suggestionView']['discardButton']['on']('execute',()=>{_0x440e31['editing']['view']['focus']();}),_0x1eb0ba=_0x1fb1ab['createAnnotationView'](this['editor']['locale'],_0x2d5805),_0x1eb0ba['bind']('isDirty')['to'](_0x2d5805,'isDirty'),_0x1eb0ba['bind']('length')['to'](_0x2d5805),_0x1eb0ba['bind']('type')['to'](_0x2d5805,'type',_0x53bb24=>'suggestion-'+_0x53bb24),_0x2d5805['on']('escape',()=>{_0x3daa07['fire']('escape');}),this['_annotationViews']['set'](_0x1a1655['id'],_0x1eb0ba));const _0x5bd20c=_0x28d1de['createCommentThreadController'](_0x1a1655['commentThread'],_0x2d5805),_0x44e719=new pe(_0x440e31,_0x1a1655,_0x2d5805,_0x5bd20c),_0x1cc95f=_0x1a1655['getAllAdjacentSuggestions']()['filter'](_0x27b46c=>_0x27b46c['isInContent']);_0x2d5805['descriptionParts']=_0x440e31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1cc95f),this['_suggestionToController']['set'](_0x1a1655,_0x44e719),this['_viewToController']['set'](_0x2d5805,_0x44e719),_0x3daa07=_0x1fb1ab['createAnnotation']({'view':_0x1eb0ba,'target':()=>{const _0x526469=[],_0x3d8bd8=_0x1a1655['getAllAdjacentSuggestions']()['filter'](_0x5642d5=>_0x5642d5['isInContent']);for(const _0xf7de5 of _0x3d8bd8)_0x526469['push'](..._0xf7de5['getMarkers']());return _0x45a5ac(_0x440e31['editing'],_0x526469);},'type':()=>'suggestion-'+_0x44e719['view']['type']}),_0x28d1de['_bindAnnotationToEditors'](_0x2d5805,_0x3daa07),_0x1fb1ab['add'](_0x3daa07),_0x296084['registerAnnotation'](_0x3daa07);}['_destroyController'](_0xd67bf9){const _0x3468c1=this['editor']['plugins']['get']('CommentsRepository'),_0x4b8570=this['editor']['plugins']['get']('Annotations'),_0x551d1e=this['_suggestionToController']['get'](_0xd67bf9),_0x2c0ca3=_0x551d1e['view'],_0x5a23b6=_0x4b8570['getByInnerView'](_0x2c0ca3);_0x3468c1['_unbindEditors'](_0x2c0ca3),_0x5a23b6&&_0x4b8570['remove'](_0x5a23b6),this['_suggestionToController']['delete'](_0xd67bf9),this['_viewToController']['delete'](_0x2c0ca3),_0x551d1e['destroy']();}['_updateController'](_0x1f5749){if(!_0x1f5749['isInContent']||!this['_suggestionToController']['has'](_0x1f5749))return;const _0x5ed91d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f0cbb=this['_suggestionToController']['get'](_0x1f5749),_0x3d380e=_0x1f5749['getAllAdjacentSuggestions']();_0x3f0cbb['view']['descriptionParts']=_0x5ed91d['descriptionFactory']['getDescriptions'](_0x3d380e);}['destroy'](){for(const _0x32d715 of this['_suggestionToController']['keys']())this['_destroyController'](_0x32d715);for(const _0xc2ecd8 of this['_annotationViews']['values']())_0xc2ecd8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x44ca4c){return'model'in _0x44ca4c;}class k extends _0x51821d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1b103b){this['editor']['plugins']['get'](p)['adapter']=_0x1b103b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x32a8ab){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x32a8ab);}['getSuggestions']({skipNotAttached:_0x28f44e=!0x1,toJSON:_0xbe7ab9=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x28f44e,'toJSON':_0xbe7ab9});}['getSuggestion'](_0x2fccce){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2fccce);}}const w=['Pagination'];class T extends _0x51821d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xb5fe09=this['editor'];if(_0xb5fe09['config']['define']('trackChangesData.editorCreator',_0x73a9af=>{const _0x49d507=_0xb5fe09['model']['document']['getRootNames']()['reduce']((_0x4b680e,_0x5c12ca)=>(_0x4b680e[_0x5c12ca]='',_0x4b680e),{});return _0xb5fe09['constructor']['create'](_0x49d507,_0x73a9af);}),'function'!=typeof _0xb5fe09['config']['get']('trackChangesData')['editorCreator'])throw new _0x8ca9b4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x351789){return N(this['editor'],!0x0,_0x351789);}['getDataWithDiscardedSuggestions'](_0xe48827){return N(this['editor'],!0x1,_0xe48827);}}class D extends _0x51821d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xeca466){function _0x1cdeae(_0x112573){return _0x112573['map'](_0x42430a=>String['fromCharCode'](_0x42430a))['join']('');}super(_0xeca466),this['result']='end',_0xeca466[_0x1cdeae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cdeae([0x76,0x69,0x65,0x77])][_0x1cdeae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1cdeae([0x61,0x75,0x74,0x6f]),_0xeca466[_0x1cdeae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1cdeae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1cdeae([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1cdeae([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1cdeae([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(_0x45f88b){return void 0x0!==_0x45f88b['getRootsAttributes'];}async function N(_0x4a3faf,_0x3e26d8,_0x2566d9){const _0x20fed1=_0x4d1040(_0x4a3faf,w);_0x20fed1['plugins']['push'](p,D),_0x20fed1['rootsAttributes']=Ge(_0x4a3faf)?_0x4a3faf['getRootsAttributes']():void 0x0;const _0x49710f=document['createDocumentFragment'](),_0x250e07=_0x4a3faf['config']['get']('trackChangesData')['editorCreator'],_0x2303ca=await _0x250e07(_0x20fed1,()=>function(_0x1e3cec){const _0x2f5c10=document['createElement']('div');return _0x1e3cec['appendChild'](_0x2f5c10),_0x2f5c10;}(_0x49710f));!function(_0x426f71,_0x1fada7){const _0x3c74ea=_0x426f71['model']['document']['getRootNames']()['reduce']((_0x143b2b,_0x119408)=>(_0x143b2b[_0x119408]=_0x426f71['data']['get']({'rootName':_0x119408}),_0x143b2b),{}),_0x3d1a5e=_0x426f71['plugins']['get']('Users')['users']['map'](_0x6efd26=>({'id':_0x6efd26['id'],'name':_0x6efd26['name']})),_0x4bfaa1=_0x426f71['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x424bc4=_0x426f71['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2bb787=_0x1fada7['plugins']['get']('Users'),_0x58f5fd=_0x1fada7['plugins']['get']('TrackChangesEditing'),_0x3e5142=_0x1fada7['plugins']['get']('CommentsRepository');for(const _0x51b897 of _0x3e5142['getCommentThreads']())_0x51b897['remove']();for(const _0x656170 of _0x3d1a5e)_0x2bb787['getUser'](_0x656170['id'])||_0x2bb787['addUser'](_0x656170);_0x2bb787['me']||_0x2bb787['useAnonymousUser']();for(const _0x7fa7ef of _0x424bc4)_0x3e5142['addCommentThread'](_0x7fa7ef);for(const _0x37e024 of _0x4bfaa1)_0x58f5fd['addSuggestionData'](_0x37e024);_0x1fada7['data']['set'](_0x3c74ea);}(_0x4a3faf,_0x2303ca),_0x2303ca['execute'](_0x3e26d8?'acceptAllSuggestions':'discardAllSuggestions');const _0x4000dd=Ge(_0x2303ca)?_0x2303ca['getFullData'](_0x2566d9):_0x2303ca['data']['get'](_0x2566d9);return await _0x2303ca['destroy'](),_0x4000dd;}class Me extends _0x414788{['options'];constructor(_0x2caa66,_0x5cced3){super(_0x2caa66),this['options']=_0x5cced3,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'](_0x22f690,_0x3b6e02){if(!this['element'])return;const _0x56f77d=[];for(const [_0x18de02,_0x242586]of _0x22f690){const _0x46e204=document['createElement']('div');_0x46e204['setAttribute']('data-ck-root-name',_0x18de02),_0x46e204['className']=_0x242586['classes']+'\x20ck-track-changes-preview__root-container',_0x46e204['innerHTML']=_0x242586['content'],_0x56f77d['push'](_0x46e204);}_0x3b6e02(this['element'],_0x56f77d),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x2da07f{constructor(_0x5bd19f){super(_0x5bd19f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3ac068=this['editor'],_0x5c0f70=_0x3ac068['locale'],_0x233bf=_0x3ac068['plugins']['get']('Dialog');let _0x37dbed;const _0x165588=function(_0x329643){const _0x1f0452={};if('editables'in _0x329643['ui']['view']){for(const [_0x56b498,_0x4fa7c4]of Object['entries'](_0x329643['ui']['view']['editables']))_0x1f0452[_0x56b498]=_0x4fa7c4['element'];}else _0x1f0452[_0x329643['model']['document']['getRootNames']()[0x0]]=_0x329643['ui']['view']['editable']['element'];return _0x1f0452;}(_0x3ac068),_0x2c1cb0=function(_0x11fb93){let _0x1a60b5=0x0;for(const _0x366e75 of Object['values'](_0x11fb93))_0x1a60b5=Math['max'](_0x1a60b5,_0x366e75['getBoundingClientRect']()['width']);let _0x105a9c=0x0;for(const _0x236e95 of Object['values'](_0x11fb93))_0x105a9c+=_0x236e95['getBoundingClientRect']()['height'];const _0x536569=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x30fccc=Math['min'](_0x105a9c,_0x536569);return{'width':_0x1a60b5,'height':_0x30fccc};}(_0x165588);_0x233bf['show']({'id':'finalContentPreview','title':c(_0x5c0f70,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5c0f70,{'dialogRects':_0x2c1cb0}),'onHide':()=>{_0x37dbed['detachFromDom']();},'onShow':()=>{_0x3ac068['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x38bbb2=>{const _0x246c38=this['_standarizeRootsData'](_0x38bbb2,_0x3ac068,_0x165588);_0x233bf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x246c38,_0x3ac068['config']['get']('trackChanges.preview.renderFunction'));}),_0x37dbed=new _0x156b41(_0x5c0f70,[_0x233bf['view']]),_0x37dbed['attachToDom'](),_0x37dbed['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3ac068['once']('destroy',()=>{_0x37dbed['detachFromDom']();});const _0x2f88c3=_0x233bf['view']['headerView']['class'];_0x233bf['view']['headerView']['class']=_0x2f88c3?_0x2f88c3+'\x20ck-reset_all':'ck-reset_all',_0x233bf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x233bf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4de833=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3e8b55=_0x4de833['previewMode'],_0x507260={};if('$labels'===_0x3e8b55){for(const _0x1e50f6 of _0x4de833['getMergeFieldsIds']())_0x507260[_0x1e50f6]=_0x4de833['getLabel'](_0x1e50f6)||_0x1e50f6;}else{const _0x26c04d='$defaultValues'===_0x3e8b55?_0x4de833['getDefaultValues']():_0x4de833['getDataSetValues'](_0x3e8b55,!0x0);for(const _0x31eefc of Object['entries'](_0x26c04d)){const [_0x104ce9,_0x282543]=_0x31eefc;_0x507260[_0x104ce9]=null!==_0x282543?_0x282543:_0x4de833['getLabel'](_0x104ce9)||_0x104ce9;}}return{'mergeFieldsData':_0x507260};}['_standarizeRootsData'](_0x4e4912,_0x4c846b,_0x112d0c){let _0x4ca3e0;if('string'==typeof _0x4e4912){const _0x3aae41=_0x4c846b['model']['document']['getRootNames']()[0x0];_0x4ca3e0={[_0x3aae41]:_0x4e4912};}else _0x4ca3e0=_0x4e4912;const _0x37f9d8=this['_fixMediaEmbeds'](_0x4ca3e0,_0x4c846b),_0x32588b=function(_0x1805f3,_0x47d0ff){for(const [_0x4ba3a8,_0x4f0be3]of _0x1805f3)_0x4f0be3['classes']=_0x47d0ff[_0x4ba3a8]['classList']['value']['replace']('ck-focused','');return _0x1805f3;}(this['_sortRoots'](_0x4c846b)['reduce']((_0x539956,_0xc16598)=>(_0x539956['push']([_0xc16598,{'content':_0x37f9d8[_0xc16598],'classes':''}]),_0x539956),[]),_0x112d0c);return _0x32588b;}['_fixMediaEmbeds'](_0x24c201,_0x420bcc){if(!_0x420bcc['plugins']['has']('MediaEmbedEditing'))return _0x24c201;const _0xb4529c=_0x420bcc['plugins']['get']('MediaEmbedEditing');for(const [_0x404573,_0x49db9d]of Object['entries'](_0x24c201)){const _0x5001ac=document['createElement']('div');_0x5001ac['innerHTML']=_0x49db9d,(_0x5001ac['querySelectorAll']('figure.media')['forEach'](_0x38f435=>{const _0x56755f=_0x38f435['querySelector']('oembed');if(_0x56755f){const _0xfde9d4=_0x56755f['getAttribute']('url');if(_0xfde9d4){const _0x36a2a7=_0xb4529c['registry']['getMediaViewElement'](new _0x403d13(_0x420bcc['editing']['view']['document']),_0xfde9d4,{'elementName':'','renderForEditingView':!0x0}),_0x161933=document['createElement']('div');_0x161933['classList']['add']('ck-media__wrapper'),_0x36a2a7['render'](_0x161933,_0x420bcc['editing']['view']['domConverter']),_0x56755f['replaceWith'](_0x161933);}}}),_0x24c201[_0x404573]=_0x5001ac['innerHTML']);}return _0x24c201;}['_sortRoots'](_0xe037fd){if(!function(_0x4c5d13){return void 0x0!==_0x4c5d13['getRootsAttributes'];}(_0xe037fd))return _0xe037fd['model']['document']['getRootNames']();const _0xee41d4=[],_0x101a86=new Map();for(const _0x39d8a7 of _0xe037fd['model']['document']['getRootNames']()){const _0x4c899d=_0xe037fd['editing']['view']['getDomRoot'](_0x39d8a7)['getClientRects']()['item'](0x0);_0xee41d4['push'](_0x39d8a7),_0x101a86['set'](_0x39d8a7,_0x4c899d);}return _0xee41d4['sort']((_0xf2eb23,_0x4ff5f0)=>{const _0x160373=_0x101a86['get'](_0xf2eb23),_0x415a1e=_0x101a86['get'](_0x4ff5f0);return _0x160373['y']-_0x415a1e['y']||_0x160373['x']-_0x415a1e['x'];}),_0xee41d4;}}class te extends _0x51821d{static get['requires'](){return[T,_0x5b4889];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x480e0b){super(_0x480e0b),_0x480e0b['commands']['add']('previewFinalContent',new re(this['editor'])),_0x480e0b['config']['define']('trackChanges.preview.renderFunction',(_0x6dd7a2,_0x2addba)=>{for(const _0x59bd7f of _0x2addba)_0x6dd7a2['appendChild'](_0x59bd7f);});}}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 _0x5567c6,Plugin as _0x2bb590,PendingActions as _0x47b17f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5240f6,ObservableMixin as _0x3306e3,uid as _0xf1d1da,priorities as _0x5bb012,insertToPriorityArray as _0xbb398a,logWarning as _0x57d13b,getEnvKeystrokeText as _0x132da3,FocusTracker as _0x3b022f,KeystrokeHandler as _0x258157,Collection as _0x460b9d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x389e43,IconCancel as _0x3297e3,IconTrackChanges as _0x54e32c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x5810fc,View as _0x41197b,ViewCollection as _0x31f9e7,FocusCycler as _0x38f6e2,ViewModel as _0x9558c3,createDropdown as _0x1516b7,SplitButtonView as _0x1d75c1,addListToDropdown as _0x41a8eb,MenuBarMenuView as _0x1ad69d,MenuBarMenuListView as _0x232bed,ListSeparatorView as _0xd89dd3,MenuBarMenuListItemView as _0x5370ba,MenuBarMenuListItemButtonView as _0x1c2694,BodyCollection as _0x3e3912,Dialog as _0x5be8af}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x75af00,hashObject as _0x583c01,surroundingMarkersDetector as _0xe0f4f3,FOCUS_ANNOTATION_KEYSTROKE as _0x422745,AriaDescriptionView as _0x132c82,setupThreadKeyboardNavigation as _0x120934,trimHtml as ti,UserView as _0x1e3926,LateFocusButtonView as _0x14e86c,getDateTimeFormatter as _0x488bdc,getAllMarkersDomElementsSorted as _0x5d309a,sanitizeEditorConfig as _0x543b69}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3efdc9,LiveRange as _0x1ffa61,LivePosition as _0x48d435,DowncastWriter as _0x2956df}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2f1c8b,toWidget as _0x300646}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5e28d8,set as _0x5e227b,isEqual as _0x3595e6,unset as _0x3d13f2,omit as Ft}from'es-toolkit/compat';import{Delete as _0x46947c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5b0cbd}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0xcb2e10}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5567c6{['_enabledCommands'];constructor(_0x36d3ab,_0x17341d){super(_0x36d3ab),this['_enabledCommands']=_0x17341d,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 _0x2cc8ad of this['editor']['commands']['commands']())_0x2cc8ad['affectsData']&&!this['_enabledCommands']['has'](_0x2cc8ad)&&_0x2cc8ad['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x381eaa of this['editor']['commands']['commands']())_0x381eaa['affectsData']&&!this['_enabledCommands']['has'](_0x381eaa)&&_0x381eaa['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x5567c6{['_suggestions'];constructor(_0x39a2c7,_0x43ea15){super(_0x39a2c7),this['_suggestions']=_0x43ea15,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x121732){const _0x80c4f=this['_suggestions']['get'](_0x121732);if(!_0x80c4f)throw new _0x5240f6('track-changes-accept-suggestion-not-found',this);const _0x27ec86=_0x80c4f['getRanges']();this['editor']['model']['canEditAt'](_0x27ec86)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x80c4f);}}class R extends _0x5567c6{['_suggestions'];constructor(_0xb4f956,_0x2df8a8){super(_0xb4f956),this['_suggestions']=_0x2df8a8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x371aeb){const _0xe43c24=this['_suggestions']['get'](_0x371aeb);if(!_0xe43c24)throw new _0x5240f6('track-changes-discard-suggestion-not-found',this);const _0x41a26c=_0xe43c24['getRanges']();this['editor']['model']['canEditAt'](_0x41a26c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xe43c24);}}function ls(_0x4d3a51,_0x3f6f78){let _0x215938='';return _0x215938+=_0x4d3a51['split']('*')['map']((_0x485b76,_0x3ef4a7)=>_0x3ef4a7%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x485b76)+'</span>':nn(_0x485b76))['join'](''),_0x3f6f78&&(_0x215938+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3f6f78['value']+'\x22\x20title=\x22'+_0x3f6f78['title']+'\x22></span>'),_0x215938;}function nn(_0x407bcc){const _0x3f43cf=document['createElement']('span');return _0x3f43cf['innerText']=_0x407bcc,_0x3f43cf['innerHTML'];}function ts(_0xca633e){return _0xca633e['sort']((_0x25a55a,_0x180c30)=>'deletion'==_0x25a55a['type']&&'deletion'!=_0x180c30['type']?-0x1:'deletion'!=_0x25a55a['type']&&'deletion'==_0x180c30['type']?0x1:0x0);}function to(_0x34044a,_0x4cebe8){let _0x5585f6,_0x264553=0x0;const _0x2ab6a6=[],_0x5108d9=_0x4cebe8['schema'];for(;_0x264553<_0x34044a['length'];){const _0xd52a27=_0x34044a[_0x264553],_0x11daef=_0x34044a[_0x264553+0x1];_0x5585f6||(_0x5585f6=_0x4cebe8['createPositionBefore'](_0xd52a27)),on(_0x4cebe8,_0xd52a27,_0x11daef)||(_0x2ab6a6['push'](_0x4cebe8['createRange'](_0x5585f6,_0x5108d9['isObject'](_0xd52a27)?_0x4cebe8['createPositionAfter'](_0xd52a27):_0x4cebe8['createPositionAt'](_0xd52a27,'end'))),_0x5585f6=null),_0x264553++;}return _0x2ab6a6;}function on(_0x75d863,_0x16b795,_0x125be){if(!_0x125be)return!0x1;const _0xa70f2d=_0x75d863['createPositionAfter'](_0x16b795),_0x2c4ab1=_0x75d863['createPositionBefore'](_0x125be);return _0xa70f2d['isTouching'](_0x2c4ab1);}function rs(_0x49159b,_0x52fb7f,_0x162ed6){for(;_0x162ed6['length'];){const _0x5ed18f=_0x162ed6['splice'](0x0,0x64);_0x49159b['change'](()=>{for(const _0x56ba87 of _0x5ed18f)_0x56ba87['isInContent']&&_0x52fb7f['execute'](_0x56ba87['id']);});}}class x extends _0x5567c6{['_command'];['_suggestions'];constructor(_0x3e3194,_0x48236e,_0x44716e){super(_0x3e3194),this['_command']=_0x48236e,this['_suggestions']=_0x44716e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5c2eac=Array['from'](this['_suggestions']['values']())['some'](_0x195377=>_0x195377['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5c2eac;}['execute'](){const _0x41634e=ts(Array['from'](this['_suggestions']['values']()));for(const _0x53a466 of _0x41634e){const _0x4d9ed8=_0x53a466['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4d9ed8))return;}rs(this['editor']['model'],this['_command'],_0x41634e);}}class E extends _0x5567c6{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1adb71,_0x4f67de,_0x25af7b){super(_0x1adb71),this['_command']=_0x4f67de,this['_suggestions']=_0x25af7b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4fe61c=this['editor']['model']['document']['selection'],_0x23e6df=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x58df44,_0x3e4800){const _0x36345c=Array['from'](_0x58df44['getRanges']()),_0x58e13e=new Set();for(const _0x580808 of _0x3e4800)if(_0x580808['isInContent']){for(const _0x470412 of _0x36345c)for(const _0x320bec of _0x580808['getRanges']())(_0x470412['isIntersecting'](_0x320bec)||_0x58df44['isCollapsed']&&!_0x580808['isMultiRange']&&_0x580808['next']&&_0x320bec['end']['isTouching'](_0x470412['start']))&&_0x58e13e['add'](_0x580808);}return _0x58e13e;}(_0x4fe61c,_0x23e6df),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x59d4b9=ts(Array['from'](this['_selectedSuggestions']));for(const _0x50a13c of _0x59d4b9){const _0x228bec=_0x50a13c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x228bec))return;}rs(this['editor']['model'],this['_command'],_0x59d4b9);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3306e3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2f8de7,_0x23ce90){super(),this['id']=_0x23ce90['id'],this['type']=_0x23ce90['type'],this['subType']=_0x23ce90['subType']||null,this['author']=_0x23ce90['author'],this['creator']=_0x23ce90['creator']||_0x23ce90['author'],this['isExternal']=Boolean(_0x23ce90['attributes']&&_0x23ce90['attributes']['@external']),this['data']=null,this['_model']=_0x2f8de7,this['_onAccept']=_0x23ce90['onAccept'],this['_onDiscard']=_0x23ce90['onDiscard'],this['_onAttributesChange']=_0x23ce90['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x23ce90['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 _0x150e4b=this;for(;_0x150e4b['previous'];)_0x150e4b=_0x150e4b['previous'];return _0x150e4b;}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'](_0x3b5237){this['_markerNames']['add'](_0x3b5237);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4d6785=>this['_model']['markers']['get'](_0x4d6785))['filter'](_0x29a401=>_0x29a401);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4f0fa6=>{for(const _0x1c272d of this['getMarkers']())_0x4f0fa6['removeMarker'](_0x1c272d);}),this['_markerNames']['clear']();}['removeMarker'](_0x1c87c6){this['_model']['change'](_0x45d5bb=>{_0x45d5bb['removeMarker'](_0x1c87c6);}),this['_markerNames']['delete'](_0x1c87c6);}['addRange'](_0x269616){const _0x55ed6a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x55ed6a),this['_model']['change'](_0x58e391=>{_0x58e391['addMarker'](_0x55ed6a,{'range':_0x269616,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x21edc5){for(const _0x18024f of this['getRanges']())if(_0x18024f['isIntersecting'](_0x21edc5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x21972c=>_0x21972c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3eb8d1,_0x3f58a7)=>[..._0x3eb8d1,..._0x3f58a7['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1cba45=this['getRanges']();if(0x1!=_0x1cba45['length'])return null;const _0x75c9e=_0x1cba45[0x0],_0x19a4bc=_0x75c9e['start']['nodeAfter'],_0x3206da=_0x75c9e['end']['nodeBefore'];return _0x19a4bc instanceof _0x3efdc9?_0x19a4bc!=_0x3206da?null:_0x19a4bc: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 _0xe2d510=[];let _0xc99819=this['head'];for(;_0xc99819;)_0xe2d510['push'](_0xc99819),_0xc99819=_0xc99819['next'];return _0xe2d510;}['setAttribute'](_0xa7d7e,_0x3b33c2){const _0x1b7d1b=_0x5e28d8(this['attributes']);_0x5e227b(_0x1b7d1b,_0xa7d7e,_0x3b33c2),_0x3595e6(_0x1b7d1b,this['attributes'])||(this['attributes']=_0x1b7d1b,this['_onAttributesChange'](_0x1b7d1b));}['removeAttribute'](_0x5cf347){const _0x2656fa=_0x5e28d8(this['attributes']);_0x3d13f2(_0x2656fa,_0x5cf347),_0x3595e6(_0x2656fa,this['attributes'])||(this['attributes']=_0x2656fa,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 _0xf1d1da()['substr'](0x1,0x5);}}function c(_0x2739e6,_0x19cd8e,_0x17dd1c){const _0x55f65d=_0x2739e6['t'],t=_0x2739e6['t'];switch(_0x19cd8e){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',_0x17dd1c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x17dd1c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x17dd1c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x17dd1c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x17dd1c);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',_0x17dd1c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x17dd1c);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',_0x17dd1c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x17dd1c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x17dd1c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x17dd1c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x17dd1c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x17dd1c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x17dd1c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x17dd1c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x17dd1c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x17dd1c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x17dd1c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x17dd1c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x17dd1c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x17dd1c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x17dd1c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x17dd1c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x17dd1c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x17dd1c);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'},_0x17dd1c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x17dd1c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x17dd1c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x17dd1c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x17dd1c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x17dd1c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x17dd1c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x17dd1c);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'},_0x17dd1c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x17dd1c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x17dd1c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x17dd1c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x17dd1c);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'},_0x17dd1c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x17dd1c);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'},_0x17dd1c);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'},_0x17dd1c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x17dd1c);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'},_0x17dd1c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x17dd1c);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'},_0x17dd1c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x17dd1c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x17dd1c);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'},_0x17dd1c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x17dd1c);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 _0x55f65d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x17dd1c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x55f65d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x17dd1c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x17dd1c);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'},_0x17dd1c);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'},_0x17dd1c);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'},_0x17dd1c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x19cd8e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5b469c,_0x224e39){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5b469c,this['_locale']=_0x224e39;}['getDescriptions'](_0x4e6095){const _0x485bea=[],_0x534b2a=new Set(),_0x4960e4=new Set();for(let _0x56a79f=0x0;_0x56a79f<_0x4e6095['length'];_0x56a79f++){const _0x379a77=_0x4e6095[_0x56a79f];if(!_0x379a77['isInContent'])continue;const _0xb49389=this['_handleCustomCallbackDescription'](_0x379a77);if(_0xb49389){if(null!=_0x379a77['subType']){if(_0x534b2a['has'](_0x379a77['subType']))continue;_0x534b2a['add'](_0x379a77['subType']);}_0x485bea['push'](_0xb49389);}else{if('attribute'!=_0x379a77['type'])'insertion'!=_0x379a77['type']&&'deletion'!=_0x379a77['type']||this['_handleInsertRemoveSuggestionDescription'](_0x485bea,_0x379a77,_0x4e6095[_0x56a79f+0x1]);else{const _0x59721d=_0x379a77['data']['key'];if(_0x4960e4['has'](_0x59721d))continue;_0x4960e4['add'](_0x379a77['data']['key']),_0x59721d==u?this['_handleRenameSuggestionDescription'](_0x485bea,_0x379a77):this['_handleAttributeSuggestionDescription'](_0x485bea,_0x379a77);}}}return this['_resolveDescriptionItems'](_0x485bea);}['registerDescriptionCallback'](_0x2fd53a){this['_customCallbacks']['push'](_0x2fd53a);}['registerElementLabel'](_0x55cff5,_0x3ee10f,_0x41a947=_0x5bb012['normal']){'function'==typeof _0x55cff5?_0xbb398a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x55cff5,'label':_0x3ee10f,'priority':_0x41a947}):this['_itemLabels']['set'](_0x55cff5,_0x3ee10f);}['registerAttributeLabel'](_0x4f8366,_0x4df9c8){this['_attributeLabels']['set'](_0x4f8366,_0x4df9c8);}['getItemLabel'](_0x31411e,_0x8ac63b=0x1){let _0x2fd427;for(const _0x33c350 of this['_itemLabelsCallbacks'])if(_0x33c350['matchingCallback'](_0x31411e)){_0x2fd427=_0x33c350['label'];break;}return _0x2fd427||(_0x2fd427=this['_itemLabels']['get'](_0x31411e['name'])),_0x2fd427?_0x2fd427(_0x8ac63b):0x1!==_0x8ac63b?_0x8ac63b+'\x20'+_0x31411e['name']+'s':''+_0x31411e['name'];}['_addDescriptionItems'](_0x31e9d8,_0x43ae3a){const _0x205f9d=_0x43ae3a['getFirstRange']()['getWalker'](),_0x3ec8f5='insertion'==_0x43ae3a['type']?'add':'remove';for(const _0x468513 of _0x205f9d){const _0x12fdad=_0x468513['item'],_0x2d4055=_0x31e9d8[_0x31e9d8['length']-0x1];if(_0x12fdad['is']('$textProxy'))_0x2d4055&&_0x2d4055['type']['indexOf']('Container')>-0x1&&_0x31e9d8['pop'](),_0x2d4055&&'text'==_0x2d4055['type']?_0x2d4055[_0x3ec8f5]+=_0x12fdad['data']:_0x31e9d8['push']({'type':'text','add':'add'==_0x3ec8f5?_0x12fdad['data']:'','remove':'remove'==_0x3ec8f5?_0x12fdad['data']:''});else{if(this['_schema']['isObject'](_0x12fdad)){const _0x15fbb0=_0x12fdad;if(_0x2d4055&&_0x2d4055['type']['indexOf']('Container')>-0x1&&_0x31e9d8['pop'](),'elementEnd'==_0x468513['type'])continue;_0x2d4055&&_0x2d4055['type']==_0x3ec8f5+'Object'&&_0x2d4055['element']['name']==_0x15fbb0['name']?_0x2d4055['quantity']++:_0x31e9d8['push']({'type':_0x3ec8f5+'Object','element':_0x15fbb0,'quantity':0x1}),_0x205f9d['skip'](_0x79048a=>!('elementEnd'==_0x79048a['type']&&_0x79048a['item']==_0x12fdad));}else{if(this['_schema']['checkChild'](_0x12fdad,'$text')||_0x12fdad['is']('element','softBreak')){const _0x26fef6=_0x12fdad;if('add'==_0x3ec8f5&&'elementStart'==_0x468513['type']||'remove'==_0x3ec8f5&&'elementEnd'==_0x468513['type'])continue;if(_0x2d4055&&-0x1==_0x2d4055['type']['indexOf']('Container')){'text'==_0x2d4055['type']&&(_0x2d4055[_0x3ec8f5]+='\x0a');continue;}let _0x311ddb;if(_0x311ddb='add'==_0x3ec8f5?_0x26fef6['nextSibling']&&!this['_schema']['isObject'](_0x26fef6['nextSibling'])?_0x26fef6['nextSibling']:null:_0x26fef6['previousSibling']&&!this['_schema']['isObject'](_0x26fef6['previousSibling'])?_0x26fef6['previousSibling']:null,_0x26fef6['isEmpty']||_0x311ddb&&_0x311ddb['isEmpty']){const _0x32a3b7=_0x311ddb&&_0x311ddb['isEmpty']?_0x311ddb:_0x26fef6;_0x2d4055&&_0x2d4055['type']==_0x3ec8f5+'EmptyContainer'&&_0x2d4055['element']['name']==_0x32a3b7['name']?_0x2d4055['quantity']++:_0x31e9d8['push']({'type':_0x3ec8f5+'EmptyContainer','element':_0x32a3b7,'quantity':0x1});}else _0x31e9d8['push']({'type':_0x3ec8f5+'Container','element':_0x26fef6});}}}}}['_resolveDescriptionItems'](_0x157ba8){const _0x1aaada=this['_locale'],_0x3504d3=[],_0x42f332=[],_0xe53b62=[];for(const _0x347567 of _0x157ba8)switch(_0x347567['type']){case'text':if(_0x347567['add']=_0x347567['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x347567['remove']=_0x347567['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x347567['add']&&''!=_0x347567['remove']){_0x3504d3['push']({'type':'replace','content':c(_0x1aaada,'REPLACE_TEXT',['\x22'+_0x347567['remove']+'\x22','\x22'+_0x347567['add']+'\x22'])});continue;}if(null!=_0x347567['add']['match'](/^ +$/)){_0x3504d3['push']({'type':'insertion','content':c(_0x1aaada,'*Insert:*\x20%0',c(_0x1aaada,'ELEMENT_SPACE',_0x347567['add']['length']))});continue;}if(null!=_0x347567['remove']['match'](/^ +$/)){_0x3504d3['push']({'type':'deletion','content':c(_0x1aaada,'*Remove:*\x20%0',c(_0x1aaada,'ELEMENT_SPACE',_0x347567['remove']['length']))});continue;}if(''!=_0x347567['add']){_0x3504d3['push']({'type':'insertion','content':c(_0x1aaada,'*Insert:*\x20%0','\x22'+_0x347567['add']+'\x22')});continue;}_0x3504d3['push']({'type':'deletion','content':c(_0x1aaada,'*Remove:*\x20%0','\x22'+_0x347567['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3504d3['push']({'type':'insertion','content':c(_0x1aaada,'*Insert:*\x20%0',this['getItemLabel'](_0x347567['element'],_0x347567['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3504d3['push']({'type':'deletion','content':c(_0x1aaada,'*Remove:*\x20%0',this['getItemLabel'](_0x347567['element'],_0x347567['quantity']))});continue;case'addContainer':_0x3504d3['push']({'type':'insertion','content':c(_0x1aaada,'*Split:*\x20%0',this['getItemLabel'](_0x347567['element'],_0x347567['quantity']))});continue;case'removeContainer':_0x3504d3['push']({'type':'deletion','content':c(_0x1aaada,'*Merge:*\x20%0',this['getItemLabel'](_0x347567['element'],_0x347567['quantity']))});continue;case'addFormat':_0x42f332['push'](_0x347567['key']);continue;case'removeFormat':_0xe53b62['push'](_0x347567['key']);continue;default:_0x3504d3['push'](_0x347567);}if(_0x42f332['length']){const _0x478166=_0x42f332['map'](_0x53d10f=>this['_attributeLabels']['has'](_0x53d10f)?this['_attributeLabels']['get'](_0x53d10f):_0x53d10f)['join'](',\x20');_0x3504d3['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x478166)});}if(_0xe53b62['length']){const _0x50f4ef=_0xe53b62['map'](_0x59a176=>this['_attributeLabels']['has'](_0x59a176)?this['_attributeLabels']['get'](_0x59a176):_0x59a176)['join'](',\x20');_0x3504d3['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x50f4ef)});}return _0x3504d3;}['_handleCustomCallbackDescription'](_0x55c3d2){for(const _0x107f42 of this['_customCallbacks']){const _0x47e613=_0x107f42(_0x55c3d2);if(_0x47e613&&'type'in _0x47e613)return _0x47e613;}}['_handleAttributeSuggestionDescription'](_0x697496,_0x5340be){const _0x518797=_0x5340be['data'],_0x5cb370=void 0x0===_0x518797['newValue']?'removeFormat':'addFormat';_0x697496['push']({'type':_0x5cb370,'key':_0x518797['key']});}['_handleRenameSuggestionDescription'](_0xba8eda,_0x323e37){_0xba8eda['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x323e37['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x573f60,_0x403879,_0x4d4c75){if(this['_addDescriptionItems'](_0x573f60,_0x403879),_0x4d4c75&&_0x4d4c75['getFirstRange']()&&!_0x403879['getFirstRange']()['end']['isEqual'](_0x4d4c75['getFirstRange']()['start'])){const _0x2b1e64=_0x573f60[_0x573f60['length']-0x1],_0x34fc96='insertion'==_0x403879['type']?'add':'remove';_0x2b1e64&&'text'==_0x2b1e64['type']&&(_0x2b1e64[_0x34fc96]+='\x0a');}}}class U extends _0x2bb590{['afterInit'](){const _0x13f536=this['editor'],_0x352878=_0x13f536['plugins']['get']('TrackChangesEditing');_0x13f536['commands']['get']('showAIAssistant')&&_0x352878['enableCommand']('showAIAssistant');}}class V extends _0x2bb590{['afterInit'](){const _0x52b836=this['editor'],_0x546f53=_0x52b836['locale'];if(!_0x52b836['plugins']['has']('AlignmentEditing'))return;const _0x4cada1=_0x52b836['plugins']['get']('TrackChangesEditing');_0x4cada1['enableDefaultAttributesIntegration']('alignment'),_0x4cada1['registerBlockAttribute']('alignment'),_0x4cada1['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x546f53,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x452eec=this['editor'],_0x1a3646=_0x452eec['locale'];_0x452eec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x402bf8=>{if('formatBlock'!=_0x402bf8['type'])return;const {data:_0x18053e}=_0x402bf8;if(_0x18053e&&'alignment'==_0x18053e['commandName']){const _0x541726=_0x18053e['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1a3646,'*Format:*\x20%0',function(_0x4f3f32){switch(_0x4f3f32){case'left':return c(_0x1a3646,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1a3646,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1a3646,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1a3646,'FORMAT_JUSTIFY_TEXT');}}(_0x541726))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x2bb590{['afterInit'](){const _0x3b71ae=this['editor'],_0x53aca4=_0x3b71ae['plugins']['get']('TrackChangesEditing'),_0x2f8217=_0x3b71ae['locale'];for(const _0x52234f of Zt){if(!_0x3b71ae['plugins']['has'](_0x52234f))continue;const _0x571567=_0x52234f['slice'](0x0,-0x7)['toLowerCase'](),_0x258f59='FORMAT_'+_0x571567['toUpperCase']();_0x53aca4['enableDefaultAttributesIntegration'](_0x571567),_0x53aca4['registerInlineAttribute'](_0x571567),_0x53aca4['descriptionFactory']['registerAttributeLabel'](_0x571567,c(_0x2f8217,_0x258f59));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51c275=this['editor'],_0x609b25=_0x51c275['locale'],_0x1cb9c3=_0x51c275['plugins']['get']('TrackChangesEditing');function _0x16ba06(_0x8aa36b,_0x2f51d6){_0x1cb9c3['descriptionFactory']['registerDescriptionCallback'](_0x43cec0=>{if('formatInline'!=_0x43cec0['type'])return;const {data:_0x3d7db2}=_0x43cec0;return _0x3d7db2&&_0x3d7db2['commandName']===_0x8aa36b?_0x3d7db2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x609b25,'*Format:*\x20%0',_0x2f51d6)}:{'type':'format','content':c(_0x609b25,'*Remove\x20format:*\x20%0',_0x2f51d6)}:void 0x0;});}_0x16ba06('bold',c(_0x609b25,'FORMAT_BOLD')),_0x16ba06('italic',c(_0x609b25,'FORMAT_ITALIC')),_0x16ba06('underline',c(_0x609b25,'FORMAT_UNDERLINE')),_0x16ba06('code',c(_0x609b25,'FORMAT_CODE')),_0x16ba06('strikethrough',c(_0x609b25,'FORMAT_STRIKETHROUGH')),_0x16ba06('subscript',c(_0x609b25,'FORMAT_SUBSCRIPT')),_0x16ba06('superscript',c(_0x609b25,'FORMAT_SUPERSCRIPT'));}}class G extends _0x2bb590{['afterInit'](){const _0x5483a6=this['editor'],_0x1df1af=_0x5483a6['locale'];if(!_0x5483a6['plugins']['has']('BlockQuoteEditing'))return;const _0x7570ce=_0x5483a6['plugins']['get']('TrackChangesEditing'),_0x6848a7=this['editor']['commands']['get']('blockQuote');_0x7570ce['enableCommand']('blockQuote',(_0x304341,_0x5d6a34={})=>{const _0x16d84e=this['editor']['model']['document']['selection'],_0x5a422d=_0x5d6a34&&void 0x0!==_0x5d6a34['forceValue']?_0x5d6a34['forceValue']:!_0x6848a7['value'];let _0x5a6ef8=[];if(_0x5a422d){const _0xabbc38=Array['from'](_0x16d84e['getSelectedBlocks']())['filter'](_0x1823e2=>oo(_0x1823e2)||function(_0xa6263d,_0x22266e){const _0x16c0a0=_0x22266e['checkChild'](_0xa6263d['parent'],'blockQuote'),_0x1af6cd=_0x22266e['checkChild'](['$root','blockQuote'],_0xa6263d);return _0x16c0a0&&_0x1af6cd;}(_0x1823e2,this['editor']['model']['schema']));_0x5a6ef8=to(_0xabbc38,_0x5483a6['model']);}else{const _0x33295e=Array['from'](_0x16d84e['getSelectedBlocks']())['filter'](_0x243b59=>oo(_0x243b59));_0x5a6ef8=to(_0x33295e,_0x5483a6['model']);}_0x5483a6['model']['change'](()=>{for(const _0x48989e of _0x5a6ef8)_0x7570ce['markBlockFormat'](_0x48989e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5a422d}]});});}),_0x7570ce['descriptionFactory']['registerDescriptionCallback'](_0x1de5c9=>{const {data:_0x2abb42}=_0x1de5c9;if(_0x2abb42&&'blockQuote'==_0x2abb42['commandName']){const _0x18beb6=c(_0x1df1af,'ELEMENT_BLOCK_QUOTE');return _0x2abb42['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1df1af,'*Set\x20format:*\x20%0',_0x18beb6)}:{'type':'format','content':c(_0x1df1af,'*Remove\x20format:*\x20%0',_0x18beb6)};}});}}function oo(_0x5b06fb){return'blockQuote'==_0x5b06fb['parent']['name'];}class L extends _0x2bb590{['afterInit'](){const _0x56b633=this['editor'],_0x62f425=_0x56b633['locale'],_0x36b9d6=_0x56b633['plugins']['get']('TrackChangesEditing');_0x56b633['plugins']['has']('BookmarkEditing')&&(_0x36b9d6['enableCommand']('insertBookmark'),_0x36b9d6['enableDefaultAttributesIntegration']('updateBookmark'),_0x36b9d6['registerBlockAttribute']('bookmarkId'),_0x36b9d6['descriptionFactory']['registerDescriptionCallback'](_0x3feb6e=>{if('insertion'!=_0x3feb6e['type']&&'deletion'!=_0x3feb6e['type']&&'attribute'!=_0x3feb6e['type'])return;const _0x9b6609=_0x3feb6e['getContainedElement']();if(null==_0x9b6609)return;if(!_0x9b6609['is']('element','bookmark'))return;const _0x2e6289=_0x9b6609['getAttribute']('bookmarkId');if('insertion'==_0x3feb6e['type'])return{'type':'insertion','content':c(_0x62f425,'*Insert:*\x20%0','\x22'+_0x2e6289+'\x22\x20'+c(_0x62f425,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3feb6e['type'])return{'type':'deletion','content':c(_0x62f425,'*Remove:*\x20%0','\x22'+_0x2e6289+'\x22\x20'+c(_0x62f425,'ELEMENT_BOOKMARK'))};const {data:_0x4d777a}=_0x3feb6e;if(!_0x4d777a||'bookmarkId'!=_0x4d777a['key'])return;return{'type':'format','content':c(_0x62f425,'*Set\x20bookmark:*\x20%0','\x22'+_0x4d777a['newValue']+'\x22')};}));}}class J extends _0x2bb590{['afterInit'](){const _0x3a6bd9=this['editor'];_0x3a6bd9['plugins']['has']('CaseChange')&&(_0x3a6bd9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3a6bd9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3a6bd9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x2bb590{['afterInit'](){const _0x25d455=this['editor'];_0x25d455['commands']['get']('ckbox')&&_0x25d455['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x2bb590{['afterInit'](){const _0x4ea3b2=this['editor'];if(!_0x4ea3b2['plugins']['has']('CodeBlock'))return;const _0x1a1b4b=_0x4ea3b2['plugins']['get']('TrackChangesEditing'),_0x3c2531=_0x4ea3b2['locale'],_0x876674=_0x4ea3b2['config']['get']('codeBlock')['languages'],_0x355e04=_0x4ea3b2['commands']['get']('codeBlock');_0x1a1b4b['enableCommand']('indentCodeBlock'),_0x1a1b4b['enableCommand']('outdentCodeBlock'),_0x1a1b4b['enableCommand']('codeBlock',(_0x55074f,_0x11922d={})=>{const _0x3cf763=_0x4ea3b2['model'],_0x3caeb5=_0x4ea3b2['model']['document']['selection'],_0x2df7d6=_0x11922d&&void 0x0!==_0x11922d['forceValue']?_0x11922d['forceValue']:!_0x355e04['value'];let _0x11c1cc;_0x11922d['language']||(_0x11922d['language']=_0x876674[0x0]['language']),_0x11c1cc=_0x2df7d6?Array['from'](_0x3caeb5['getSelectedBlocks']())['filter'](_0x47a177=>eo(_0x47a177)||function(_0x28ca03,_0x5e035b){if(_0x28ca03['is']('rootElement')||_0x5e035b['isLimit'](_0x28ca03))return!0x1;return _0x5e035b['checkChild'](_0x28ca03['parent'],'codeBlock');}(_0x47a177,_0x3cf763['schema'])):Array['from'](_0x3caeb5['getSelectedBlocks']())['filter'](_0x106437=>eo(_0x106437));const _0x4fb9a9=to(_0x11c1cc,_0x3cf763);_0x3cf763['change'](()=>{for(const _0x29723c of _0x4fb9a9)_0x1a1b4b['markBlockFormat'](_0x29723c,{'commandName':'codeBlock','commandParams':[{..._0x11922d,'forceValue':_0x2df7d6}],'formatGroupId':'blockName'});});}),(_0x1a1b4b['descriptionFactory']['registerElementLabel']('codeBlock',_0x3481c5=>c(_0x3c2531,'ELEMENT_CODE_BLOCK',_0x3481c5)),_0x1a1b4b['descriptionFactory']['registerDescriptionCallback'](_0x5b2cb7=>{if('formatBlock'!=_0x5b2cb7['type'])return;const _0x38b01a=_0x3c2531['t'],{data:_0x13574d}=_0x5b2cb7;if(!_0x13574d||'codeBlock'!=_0x13574d['commandName'])return;const _0x3771bb=_0x13574d['commandParams'][0x0]['language'],_0x2f79b6=_0x38b01a(_0x876674['find'](_0x11564f=>_0x11564f['language']===_0x3771bb)['label'])['toLowerCase']();return _0x13574d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3c2531,'*Set\x20format:*\x20%0',c(_0x3c2531,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2f79b6+')')}:{'type':'format','content':c(_0x3c2531,'*Remove\x20format:*\x20%0',c(_0x3c2531,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3cecf3){return'codeBlock'==_0x3cecf3['name'];}class q extends _0x2bb590{['afterInit'](){const _0x41bcc5=this['editor'];if(!_0x41bcc5['plugins']['has']('CommentsEditing'))return;_0x41bcc5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x24b5f7,_0x4ebd61,_0x28e3b8){const _0x1756f4=[];for(const _0x426136 of _0x4ebd61['getItems']())_0x426136['hasAttribute'](_0x24b5f7)&&_0x1756f4['push'](_0x28e3b8['createRangeOn'](_0x426136));return _0x1756f4;}function Fe(_0x39e418,_0x574edf,{showActiveMarker:_0x1d1943=!0x0}={}){const _0x45da4c=_0x39e418['plugins']['get']('TrackChangesEditing');return(_0x298b1a,_0x52457a,_0x1c8759)=>{if(!_0x1c8759['consumable']['test'](_0x52457a['markerRange'],_0x298b1a['name']))return;const _0x329adb=_0x52457a['markerRange']['getWalker'](),_0x209d79=_0x52457a['markerRange']['start'],_0xdd4696=_0x39e418['model']['schema'];let _0x4215e4=null,_0x236b6e=null,_0xa15f3d=!0x1,_0x5e3f8b=!0x1;for(const _0x144917 of _0x329adb){const _0x39037d=_0x144917['item'];_0xa15f3d=_0xa15f3d||_0xdd4696['isContent'](_0x39037d);const _0x38d965=_0x1c8759['mapper']['toViewElement'](_0x39037d);if(_0x38d965&&_0x38d965['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x144917['type']&&(_0xdd4696['isBlock'](_0x39037d)&&!_0xdd4696['isLimit'](_0x39037d)&&(_0x39037d['nextSibling']||_0x209d79['isAtEnd']?_0x4215e4&&_0x4215e4['parent']==_0x39037d||(_0x4215e4=_0x39037d,_0x2206ef(_0x144917['previousPosition']),_0x5e3f8b=!0x0):_0x236b6e=_0x236b6e||_0x144917['previousPosition']));}function _0x2206ef(_0xa0bfb9){const {authorId:_0x1050ea}=_0x45da4c['_splitMarkerName'](_0x52457a['markerName']),_0x936cb7=_0x1c8759['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x574edf,'data-author-id':_0x1050ea}),_0x42d1d5=_0x1c8759['mapper']['toViewPosition'](_0xa0bfb9);_0x1d1943&&_0x45da4c['activeMarkers']['includes'](_0x52457a['markerName'])&&_0x1c8759['writer']['addClass']('ck-suggestion-marker--active',_0x936cb7),_0x1c8759['writer']['insert'](_0x42d1d5,_0x936cb7),_0x1c8759['mapper']['bindElementToMarker'](_0x936cb7,_0x52457a['markerName']);}_0xa15f3d||_0x5e3f8b||!_0x236b6e||_0x2206ef(_0x236b6e);};}class z extends _0x2bb590{static get['requires'](){return[_0x46947c];}['init'](){const _0x235aea=this['editor'],_0x3a05fb=_0x235aea['plugins']['get']('TrackChangesEditing');_0x3a05fb['enableCommand']('delete');const _0xdbe71a=_0x235aea['commands']['get']('deleteForward');_0x3a05fb['enableCommand']('deleteForward',(_0x5775fd,_0x35fa63={})=>{const _0x15d0c2=_0x235aea['model']['createSelection'](_0x235aea['model']['document']['selection']);_0x15d0c2['isCollapsed']&&_0x235aea['model']['modifySelection'](_0x15d0c2,{'direction':'forward','unit':_0x35fa63['unit']});const _0x3f69d4=_0x15d0c2['getFirstRange'](),_0x14544d=_0x1ffa61['fromRange'](_0x3f69d4);let _0x3bd92f;_0x5775fd(_0x35fa63),_0x3bd92f='$graveyard'==_0x14544d['root']['rootName']?_0x235aea['model']['createRange'](_0x3f69d4['start']):_0x235aea['model']['createRange'](_0x14544d['start'],_0x14544d['end']),_0x14544d['detach'](),_0x235aea['model']['enqueueChange'](_0xdbe71a['buffer']['batch'],_0x124690=>{_0xdbe71a['buffer']['lock'](),_0x124690['setSelection'](_0x124690['createRange'](_0x3bd92f['end'])),_0xdbe71a['buffer']['unlock']();});}),_0x235aea['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x235aea,'merge'),{'priority':'high'}),_0x235aea['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x54b141,_0x2e6b4b,_0x3a751e)=>{_0x3a751e['options']['showSuggestionHighlights']&&Fe(_0x235aea,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x54b141,_0x2e6b4b,_0x3a751e);},{'priority':'high'}),_0x235aea['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4ddde9,_0x358ec8,_0x30fb49)=>{const _0x24de35=_0x30fb49['mapper']['markerNameToElements'](_0x358ec8['markerName']);if(_0x24de35){for(const _0x3d31ba of _0x24de35)_0x3d31ba['is']('uiElement')&&(_0x30fb49['mapper']['unbindElementFromMarkerName'](_0x3d31ba,_0x358ec8['markerName']),_0x30fb49['writer']['remove'](_0x3d31ba));}},{'priority':'high'});}}class W extends _0x2bb590{['afterInit'](){const _0x2d2a3d=this['editor'];if(!_0x2d2a3d['plugins']['has']('ListEditing'))return;const _0x43534b=_0x2d2a3d['locale'],_0x36a684=_0x2d2a3d['plugins']['get']('TrackChangesEditing'),_0x23838d=_0x2d2a3d['plugins']['has']('TodoListEditing'),_0x5acd98=!!_0x2d2a3d['config']['get']('list.multiBlock');function _0x1f961e(_0x18fdda){return{'type':'format','content':''+c(_0x43534b,'*Set\x20format:*\x20%0',_0x18fdda)};}function _0x2e91cf(_0x5a1bf9){return{'type':'format','content':''+c(_0x43534b,'*Remove\x20format:*\x20%0',_0x5a1bf9)};}_0x36a684['enableDefaultAttributesIntegration']('numberedList'),_0x36a684['enableDefaultAttributesIntegration']('bulletedList'),_0x36a684['enableDefaultAttributesIntegration']('customNumberedList'),_0x36a684['enableDefaultAttributesIntegration']('customBulletedList'),_0x36a684['enableDefaultAttributesIntegration']('indentList'),_0x36a684['enableDefaultAttributesIntegration']('outdentList'),_0x36a684['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x36a684['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x36a684['registerBlockAttribute']('listItemId'),_0x36a684['registerBlockAttribute']('listType'),_0x36a684['registerBlockAttribute']('listIndent'),_0x5acd98&&(_0x36a684['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x36a684['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x23838d&&(_0x36a684['enableDefaultAttributesIntegration']('todoList'),_0x36a684['enableDefaultAttributesIntegration']('checkTodoList'),_0x36a684['registerBlockAttribute']('todoListChecked'),_0x36a684['descriptionFactory']['registerDescriptionCallback'](_0x31e756=>{const {data:_0x323d7e}=_0x31e756;if(_0x323d7e&&'todoListChecked'==_0x323d7e['key'])return{'type':'format','content':_0x323d7e['newValue']?c(_0x43534b,'*Check\x20item*'):c(_0x43534b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x81cc1b=>{if(_0x81cc1b['batch']['isUndo'])return!0x1;let _0x98429a=!0x1;const _0x1d924b=_0x36a684['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25d398=>'todoListChecked'===_0x36a684['_getAttributeKey'](_0x25d398));for(const _0x3805d0 of _0x1d924b){'todo'!=_0x3805d0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x36a684['_findSuggestions'](_0x3805d0['getFirstRange'](),'attribute')['find'](_0x3df757=>'listType'===_0x36a684['_getAttributeKey'](_0x3df757['suggestion']))||(_0x81cc1b['removeMarker'](_0x3805d0['getFirstMarker']()),_0x98429a=!0x0));}return _0x98429a;})),_0x36a684['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x43534b,'FORMAT_INDENT'));const _0x18a588={'type':'format','content':''};_0x36a684['descriptionFactory']['registerDescriptionCallback'](_0x1fbf87=>{const {data:_0x32b37c}=_0x1fbf87;if(!_0x32b37c||'listType'!=_0x32b37c['key'])return;let _0x210d58=_0x1fbf87['head'];for(;_0x210d58;){if(_0x210d58['data']&&(('listStyle'==_0x210d58['data']['key']||'listMarkerStyle'==_0x210d58['data']['key'])&&(_0x210d58['data']['newValue']&&'default'!=_0x210d58['data']['newValue']||'default'!=_0x210d58['data']['oldValue']&&!_0x32b37c['newValue'])||!_0x5acd98&&_0x210d58['data']['key']==u))return _0x18a588;_0x210d58=_0x210d58['next'];}if(null==_0x32b37c['newValue'])switch(_0x32b37c['oldValue']){case'bulleted':return _0x2e91cf(c(_0x43534b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e91cf(c(_0x43534b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e91cf(c(_0x43534b,'ELEMENT_TODO_LIST'));}switch(_0x32b37c['newValue']){case'bulleted':return _0x1f961e(c(_0x43534b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f961e(c(_0x43534b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f961e(c(_0x43534b,'ELEMENT_TODO_LIST'));}}),_0x36a684['descriptionFactory']['registerDescriptionCallback'](_0x5eae27=>{const {data:_0x385f96}=_0x5eae27;if(_0x385f96&&'listIndent'==_0x385f96['key'])return null==_0x385f96['newValue']||null==_0x385f96['oldValue']&&0x0==_0x385f96['newValue']?_0x18a588:void 0x0;}),_0x36a684['descriptionFactory']['registerDescriptionCallback'](_0x9cd83c=>{if('attribute'!=_0x9cd83c['type'])return;const {data:_0x218de3}=_0x9cd83c;if(!_0x218de3||'listItemId'!=_0x218de3['key'])return;const _0x1d3fb1=Te(_0x9cd83c);return'newValue'==_0x1d3fb1?{'type':'format','content':c(_0x43534b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1d3fb1?{'type':'format','content':c(_0x43534b,'*Split:*\x20list\x20item')}:_0x18a588;}),_0x2d2a3d['model']['document']['registerPostFixer'](_0x2a4f3c=>this['listItemIdFixer'](_0x2a4f3c)),_0x2d2a3d['model']['document']['registerPostFixer'](_0x24ea93=>this['noTrackChangesFixer'](_0x24ea93)),_0x2d2a3d['model']['document']['on']('change:data',(_0x206371,_0x75c2de)=>{if(_0x75c2de['isUndo']||!_0x75c2de['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1a0653){if(_0x1a0653['batch']['isUndo']||!_0x1a0653['batch']['isLocal'])return!0x1;let _0x552429=!0x1;const _0x9a58ed=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3bbd5a=>_0x3bbd5a['data']&&'listItemId'==_0x3bbd5a['data']['key'])['filter'](_0x48dee3=>_0x48dee3['data']['newValue']&&_0x48dee3['data']['oldValue']);for(const _0x4d09a3 of _0x9a58ed)Te(_0x4d09a3)||(_0x1a0653['removeMarker'](_0x4d09a3['getFirstMarker']()),_0x552429=!0x0);return _0x552429;}['noTrackChangesFixer'](_0xc64624){if(_0xc64624['batch']['isUndo']||!_0xc64624['batch']['isLocal'])return!0x1;const _0x4b2b8f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4b2b8f['trackChangesCommand']['value'])return!0x1;let _0xe204aa=!0x1;const _0x3252a7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x290529=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x526315=>'attribute'==_0x526315['type'])['filter'](_0x4b534f=>_0x3252a7['includes'](_0x4b534f['attributeKey']));if(0x0==_0x290529['length'])return _0xe204aa;for(const _0x10ff43 of _0x290529){const _0x1e33c3=_0x4b2b8f['_findSuggestions'](_0x10ff43['range'],'attribute')['filter'](_0x3a738c=>!_0x3a738c['meta']['isNextTo'])['map'](_0x54f9b1=>_0x54f9b1['suggestion'])['filter'](_0x1ebfcc=>{const _0x23b447=_0x4b2b8f['_getAttributeKey'](_0x1ebfcc);return _0x3252a7['includes'](_0x23b447);});if(_0x1e33c3['length']){for(const _0x11382b of _0x1e33c3)_0xc64624['removeMarker'](_0x11382b['getFirstMarker']());_0xe204aa=!0x0;}}return _0xe204aa;}['assureChains'](){const _0x2b41c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28d1cd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x562414;const _0x5ca61b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x6c04f0=>{if(_0x6c04f0['data']['oldRange']||!_0x6c04f0['data']['newRange'])return null;if(!_0x6c04f0['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x549257}=_0x2b41c6['_splitMarkerName'](_0x6c04f0['name']);if(!_0x2b41c6['hasSuggestion'](_0x549257))return null;const _0x45faa0=_0x2b41c6['getSuggestion'](_0x549257);return _0x28d1cd['includes'](_0x45faa0['data']['key']);})['map'](_0x1b023b=>{const {id:_0x282254}=_0x2b41c6['_splitMarkerName'](_0x1b023b['name']),_0xcc897=_0x2b41c6['getSuggestion'](_0x282254);return _0x562414=_0xcc897['attributes']['groupId'],_0xcc897['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5ca61b['size'])return;const _0x17bcf7=_0x2b41c6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15e552=>'attribute'==_0x15e552['type']&&_0x15e552['data']&&_0x28d1cd['includes'](_0x15e552['data']['key'])&&_0x15e552['attributes']['groupId']!=_0x562414)['map'](_0x540b2f=>({'listItem':_0x540b2f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x540b2f['attributes']['groupId']})),_0x5d1f55=new Set();for(const {groupId:_0x3b3020,listItem:_0x4bcb50}of _0x17bcf7)_0x5ca61b['has'](_0x4bcb50)&&_0x5d1f55['add'](_0x3b3020);for(const _0x7180b0 of _0x2b41c6['getSuggestions']())_0x5d1f55['has'](_0x7180b0['attributes']['groupId'])&&_0x7180b0['setAttribute']('groupId',_0x562414);}['_supportLegacySuggestions'](){const _0x221845=this['editor'],_0x525450=_0x221845['locale'],_0x34b590=_0x221845['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x34b590['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x592ea3,_0x5e4169){const _0x1ffc31=[];for(let _0x15cf43 of _0x592ea3)_0x15cf43['start']['nodeAfter']===_0x15cf43['end']['parent']&&(_0x15cf43=_0x221845['model']['createRange'](_0x221845['model']['createPositionAt'](_0x15cf43['start']['nodeAfter'],0x0))),_0x1ffc31['push'](_0x15cf43);_0x221845['model']['change'](_0x5b1593=>{const _0x104c63=_0x221845['model']['document']['selection'],_0x42a504=Array['from'](_0x104c63['getRanges']())['map'](_0x48c242=>_0x1ffa61['fromRange'](_0x48c242));_0x5b1593['setSelection'](_0x1ffc31),_0x221845['commands']['get'](_0x5e4169['commandName'])['refresh'](),_0x5e4169['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x221845['execute'](_0x5e4169['commandName'],..._0x5e4169['commandParams']),_0x5b1593['setSelection'](_0x42a504);for(const _0x325dea of _0x42a504)_0x325dea['detach']();});}),_0x34b590['descriptionFactory']['registerElementLabel'](function(_0x29f963){const _0x4e796b=!_0x221845['model']['schema']['isObject'](_0x29f963),_0x94a748=_0x29f963['previousSibling'],_0x466dba=_0x29f963['nextSibling'],_0x20c881=_0x29f963['getAttribute']('listItemId'),_0x58010d=!_0x94a748||_0x94a748['getAttribute']('listItemId')!==_0x20c881,_0xc2feca=!_0x466dba||_0x466dba['getAttribute']('listItemId')!==_0x20c881;return _0x4e796b&&Boolean(_0x20c881)&&_0x58010d&&_0xc2feca;},_0x155d86=>c(_0x525450,'ELEMENT_LIST_ITEM',_0x155d86));}['_registerLegacyDescription'](){const _0x5cd068=this['editor'],_0x5bec46=_0x5cd068['locale'];function _0x58894f(_0x37bd27){const _0x2afc23=_0x5cd068['commands']['get']('bulletedList')['value'],_0x2d2dec=_0x5cd068['commands']['get']('numberedList')['value'];return'numberedList'===_0x37bd27?_0x2afc23:_0x2d2dec;}_0x5cd068['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4b693a){if('formatBlock'!=_0x4b693a['type'])return;const {data:_0x52c6c0}=_0x4b693a;if(!_0x52c6c0)return;let _0xf64d5a,_0x3f99cd,_0x4082c8,_0x2ebed2;switch(_0x52c6c0['commandName']){case'bulletedList':_0x4082c8=_0x52c6c0['commandParams'][0x0]['forceValue'],_0x2ebed2=_0x58894f(_0x52c6c0['commandName']),_0xf64d5a=_0x4082c8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ebed2&&_0x5cd068['config']['get']('list.multiBlock')||(_0xf64d5a='*Change\x20to:*\x20%0'),_0x3f99cd={'type':'format','content':c(_0x5bec46,_0xf64d5a,c(_0x5bec46,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4082c8=_0x52c6c0['commandParams'][0x0]['forceValue'],_0x2ebed2=_0x58894f(_0x52c6c0['commandName']),_0xf64d5a=_0x4082c8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ebed2&&_0x5cd068['config']['get']('list.multiBlock')||(_0xf64d5a='*Change\x20to:*\x20%0'),_0x3f99cd={'type':'format','content':c(_0x5bec46,_0xf64d5a,c(_0x5bec46,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xf64d5a='*Indent:*\x20%0',_0x3f99cd={'type':'format','content':c(_0x5bec46,_0xf64d5a,c(_0x5bec46,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xf64d5a=function(_0x1a135e){const _0x2556e4=_0x1a135e['getFirstRange']();let _0x3c333d=_0x2556e4['start']['nodeAfter'];for(;_0x3c333d&&_0x2556e4['containsItem'](_0x3c333d);){if(_0x3c333d['getAttribute']('listIndent')>0x0)return!0x1;_0x3c333d=_0x3c333d['nextSibling'];}return!0x0;}(_0x4b693a)?c(_0x5bec46,'*Format:*\x20remove\x20from\x20%0',c(_0x5bec46,function(_0x3ede79){return'ELEMENT_'+_0x3ede79['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4b693a))):c(_0x5bec46,'*Outdent:*\x20%0',c(_0x5bec46,'ELEMENT_LIST_ITEM')),_0x3f99cd={'type':'format','content':_0xf64d5a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x52c6c0['multipleBlocks']&&(_0xf64d5a='*Merge:*\x20%0',_0x3f99cd={'type':'deletion','content':c(_0x5bec46,_0xf64d5a,c(_0x5bec46,'ELEMENT_LIST_ITEM'))});}return _0x3f99cd;});}}function Te(_0x549541){let _0x1379af=_0x549541['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1379af;){const _0x30ca75=_0x1379af['getAttribute']('listItemId');if(!_0x30ca75)return!0x1;if(_0x30ca75==_0x549541['data']['newValue'])return'newValue';if(_0x30ca75==_0x549541['data']['oldValue'])return'oldValue';_0x1379af=_0x1379af['previousSibling'];}return!0x1;}class Se extends _0x2bb590{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x58b713=this['editor']['config']['get']('list.properties'),_0x4155b7=this['editor']['plugins']['get']('TrackChangesEditing');_0x58b713['styles']&&(_0x4155b7['enableDefaultAttributesIntegration']('listStyle'),_0x4155b7['registerBlockAttribute']('listStyle')),_0x58b713['reversed']&&(_0x4155b7['enableDefaultAttributesIntegration']('listReversed'),_0x4155b7['registerBlockAttribute']('listReversed')),_0x58b713['startIndex']&&(_0x4155b7['enableDefaultAttributesIntegration']('listStart'),_0x4155b7['registerBlockAttribute']('listStart'));const _0x2ab88f={'type':'format','content':''};_0x4155b7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2c7976=this['editor']['locale'];_0x4155b7['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x2c7976,'FORMAT_LIST_REVERSED')),_0x4155b7['descriptionFactory']['registerDescriptionCallback'](_0x379a35=>{const {data:_0x24b3ff}=_0x379a35;if(_0x24b3ff&&'listReversed'==_0x24b3ff['key'])return null==_0x24b3ff['newValue']||0x0==_0x24b3ff['newValue']&&null==_0x24b3ff['oldValue']?_0x2ab88f:void 0x0;}),_0x4155b7['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x2c7976,'FORMAT_LIST_START')),_0x4155b7['descriptionFactory']['registerDescriptionCallback'](_0x112e3f=>{const {data:_0x4dbcfa}=_0x112e3f;if(_0x4dbcfa&&'listStart'==_0x4dbcfa['key'])return null==_0x4dbcfa['newValue']||0x1==_0x4dbcfa['newValue']&&null==_0x4dbcfa['oldValue']?_0x2ab88f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x849cac=>{if(_0x849cac['batch']['isUndo'])return!0x1;let _0x253d0c=!0x1;const _0xa4d388=_0x4155b7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11c310=>{const _0xc7ce7e=_0x4155b7['_getAttributeKey'](_0x11c310);return'listStart'==_0xc7ce7e||'listReversed'==_0xc7ce7e;});for(const _0xc877e of _0xa4d388){const _0x9a35d1=_0xc877e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x9a35d1||'customNumbered'==_0x9a35d1)continue;_0x4155b7['_findSuggestions'](_0xc877e['getFirstRange'](),'attribute')['find'](_0x5a3b38=>'listType'==_0x4155b7['_getAttributeKey'](_0x5a3b38['suggestion']))||(_0x849cac['removeMarker'](_0xc877e['getFirstMarker']()),_0x253d0c=!0x0);}return _0x253d0c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x40180a){const _0x26998c=this['editor']['locale'],{data:_0x31ff35}=_0x40180a,_0x56162a={'type':'format','content':''};if(!_0x31ff35||'listStyle'!=_0x31ff35['key'])return;if(!_0x31ff35['oldValue'])return'default'==_0x31ff35['newValue']?_0x56162a:{'type':'format','content':''+c(_0x26998c,'*Set\x20format:*\x20%0',c(_0x26998c,this['_getTranslationKeyForListStyle'](_0x31ff35['newValue'])))};if(!_0x31ff35['newValue']){if('default'==_0x31ff35['oldValue'])return _0x56162a;let _0x31a843=_0x40180a['head'];for(;_0x31a843;){if(_0x31a843['data']&&'listType'==_0x31a843['data']['key']&&_0x31a843['data']['newValue'])return _0x56162a;_0x31a843=_0x31a843['next'];}return{'type':'format','content':''+c(_0x26998c,'*Remove\x20format:*\x20%0',c(_0x26998c,this['_getTranslationKeyForListStyle'](_0x31ff35['oldValue'])))};}if('default'!=_0x31ff35['newValue'])return{'type':'format','content':''+c(_0x26998c,'*Set\x20format:*\x20%0',c(_0x26998c,this['_getTranslationKeyForListStyle'](_0x31ff35['newValue'])))};let _0x5d8156=_0x40180a['head'];for(;_0x5d8156;){if(_0x5d8156['data']&&'listType'==_0x5d8156['data']['key']&&_0x5d8156['data']['newValue']&&_0x5d8156['data']['oldValue'])return _0x56162a;_0x5d8156=_0x5d8156['next'];}return{'type':'format','content':c(_0x26998c,'*Set\x20format:*\x20%0',c(_0x26998c,'ELEMENT_'+_0x40180a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x107d7b=this['editor'],_0x1e01ff=_0x107d7b['locale'];_0x107d7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x352bbd=>{if('formatBlock'!=_0x352bbd['type'])return;const {data:_0x1c3060}=_0x352bbd;if(!_0x1c3060)return;let _0x223317,_0x3105a4;switch(_0x1c3060['commandName']){case'listStyle':_0x223317='*Change\x20to:*\x20%0',_0x3105a4={'type':'format','content':c(_0x1e01ff,_0x223317,c(_0x1e01ff,this['_getTranslationKeyForListStyle'](_0x1c3060['commandParams'][0x0]['type'])))};break;case'listReversed':_0x223317=_0x1c3060['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3105a4={'type':'format','content':c(_0x1e01ff,_0x223317)};break;case'listStart':_0x223317='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3105a4={'type':'format','content':c(_0x1e01ff,_0x223317,_0x1c3060['commandParams'][0x0]['startIndex'])};}return _0x3105a4;});}['_getTranslationKeyForListStyle'](_0x534abf){return'ELEMENT_'+function(_0x3dacca){if(_e['includes'](_0x3dacca))return'bulleted';if(Re['includes'](_0x3dacca))return'numbered';return null;}(_0x534abf)['toUpperCase']()+'_LIST_'+_0x534abf['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2bb590{['afterInit'](){const _0x2994c6=this['editor'];_0x2994c6['commands']['get']('emoji')&&_0x2994c6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x2bb590{static get['requires'](){return[_0x5b0cbd];}['init'](){const _0x3bf734=this['editor'],_0x59c5fd=_0x3bf734['plugins']['get']('TrackChangesEditing'),_0x200505=_0x3bf734['commands']['get']('enter');_0x59c5fd['enableCommand']('enter',()=>{_0x3bf734['model']['change'](_0x19b318=>{const _0x4ee193=_0x3bf734['model']['document']['selection'],_0x484731=_0x4ee193['getFirstPosition'](),_0x5a0f75=_0x1ffa61['fromRange'](_0x4ee193['getFirstRange']());if(_0x200505['enterBlock'](_0x19b318)){const _0x107f02=_0x3bf734['model']['createPositionAt'](_0x484731['parent']['nextSibling'],0x0),_0x29de6a=_0x19b318['createRange'](_0x484731,_0x107f02);_0x59c5fd['markInsertion'](_0x29de6a);}else _0x19b318['setSelection'](_0x19b318['createRange'](_0x5a0f75['end']));_0x5a0f75['detach'](),_0x200505['fire']('afterExecute',{'writer':_0x19b318});});}),_0x3bf734['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x3bf734,'split'),{'priority':'high'}),_0x3bf734['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1982e7,_0x285610,_0xa638d1)=>{const _0x265b57=_0xa638d1['mapper']['markerNameToElements'](_0x285610['markerName']);if(_0x265b57){for(const _0x1437c8 of _0x265b57)_0x1437c8['hasClass']('ck-suggestion-marker-split')&&(_0xa638d1['mapper']['unbindElementFromMarkerName'](_0x1437c8,_0x285610['markerName']),_0xa638d1['writer']['remove'](_0x1437c8));}},{'priority':'high'}),_0x3bf734['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x29bc90,_0x42b6e6,_0x442ace)=>{_0x442ace['options']['showSuggestionHighlights']&&Fe(_0x3bf734,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x29bc90,_0x42b6e6,_0x442ace);},{'priority':'high'});}}class Z extends _0x2bb590{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x357010=this['editor']['plugins']['get']('TrackChangesEditing');_0x357010['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x357010['enableCommand']('findNext'),_0x357010['enableCommand']('findPrevious'),_0x357010['enableCommand']('replace'),_0x357010['enableCommand']('replaceAll');}['handleFindCommand'](_0xa93ff2,_0x5ec201,_0x53bcac={}){const _0x8df994=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xa93ff2(_0x28b9b3=>{let _0x15fa41=('string'==typeof _0x5ec201?_0x8df994['findByTextCallback'](_0x5ec201,_0x53bcac):_0x5ec201)(_0x28b9b3);Array['isArray'](_0x15fa41)&&(_0x15fa41={'results':_0x15fa41,'searchText':'string'==typeof _0x5ec201?_0x5ec201:''});const _0x27ce39=_0x15fa41['results']['filter'](_0x345dc9=>!0x1===this['_isInDeletionRange'](_0x345dc9,_0x28b9b3['item']));return{..._0x15fa41,'results':_0x27ce39};},_0x53bcac);}['_isInDeletionRange'](_0x2b1a07,_0x2ecf6e){const _0x1af788=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ecf6e,_0x2b1a07['start']),this['editor']['model']['createPositionAt'](_0x2ecf6e,_0x2b1a07['end']));for(const _0x3a268d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1af788['getIntersection'](_0x3a268d['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 _0x2bb590{['afterInit'](){const _0x4a9e02=this['editor']['locale'],_0x318dd1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x363765,commandName:_0x1ae926}of ro)this['editor']['plugins']['has'](_0x363765)&&(_0x318dd1['enableDefaultAttributesIntegration'](_0x1ae926),_0x318dd1['registerInlineAttribute'](_0x1ae926));_0x318dd1['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x4a9e02,'FORMAT_FONT_SIZE')),_0x318dd1['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x4a9e02,'FORMAT_FONT_FAMILY')),_0x318dd1['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x4a9e02,'FORMAT_FONT_COLOR')),_0x318dd1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x4a9e02,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x97dd88=this['editor'],_0xac877a=_0x97dd88['locale'];_0x97dd88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7d36be=>{const _0x14bc63=_0xac877a['t'];if('formatInline'!=_0x7d36be['type'])return;const {data:_0x2319a3}=_0x7d36be;if(null!=_0x2319a3){if('fontSize'==_0x2319a3['commandName']){const _0x5f57f0=_0x2319a3['commandParams'][0x0]['value'];if(_0x5f57f0){const _0x575a53=_0x14bc63(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x47d3a5=>_0x47d3a5['model']==_0x5f57f0)['title'])['toLowerCase']();return{'type':'format','content':c(_0xac877a,'*Set\x20font\x20size:*\x20%0',_0x575a53)};}return{'type':'format','content':c(_0xac877a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2319a3['commandName']){const _0x2d00a1=_0x2319a3['commandParams'][0x0]['value'];return _0x2d00a1?{'type':'format','content':c(_0xac877a,'*Set\x20font\x20family:*\x20%0',_0x2d00a1)}:{'type':'format','content':c(_0xac877a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2319a3['commandName']){const _0x4469f4=_0x2319a3['commandParams'][0x0]['value'];if(_0x4469f4){const _0xa506a4=_0x5810fc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x132dee=>_0x132dee['model']==_0x4469f4);let _0x52fc04=_0x4469f4,_0x5c9ea3='';return _0xa506a4&&(_0x52fc04=_0xa506a4['label'],_0x5c9ea3=_0x14bc63(_0x52fc04)['toLowerCase']()),{'type':'format','content':c(_0xac877a,'*Set\x20font\x20color:*\x20%0',_0x5c9ea3)['trim'](),'color':{'value':_0x4469f4,'title':_0x5c9ea3||_0x52fc04}};}return{'type':'format','content':c(_0xac877a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2319a3['commandName']){const _0x2ecd8e=_0x2319a3['commandParams'][0x0]['value'];if(_0x2ecd8e){const _0x4398f6=_0x5810fc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2a63a6=>_0x2a63a6['model']==_0x2ecd8e);let _0x3a6f4f=_0x2ecd8e,_0x3ddc6d='';return _0x4398f6&&(_0x3a6f4f=_0x4398f6['label'],_0x3ddc6d=_0x14bc63(_0x3a6f4f)['toLowerCase']()),{'type':'format','content':c(_0xac877a,'*Set\x20font\x20background\x20color:*\x20%0',_0x3ddc6d)['trim'](),'color':{'value':_0x2ecd8e,'title':_0x3ddc6d||_0x3a6f4f}};}return{'type':'format','content':c(_0xac877a,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x2bb590{['afterInit'](){const _0x362c31=this['editor'],_0xe16f35=_0x362c31['plugins']['get']('TrackChangesEditing'),_0x53fad1=_0x362c31['commands']['get']('copyFormat'),_0x14c408=_0x362c31['commands']['get']('pasteFormat');_0x53fad1&&_0x14c408&&(_0xe16f35['enableDefaultAttributesIntegration']('pasteFormat'),_0xe16f35['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1c6e96=this['editor'],_0x297726=_0x1c6e96['locale'];_0x1c6e96['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b1188=>{if('formatBlock'!=_0x5b1188['type']&&'formatInline'!=_0x5b1188['type'])return;const {data:_0x121484}=_0x5b1188;if(_0x121484&&'pasteFormat'===_0x121484['commandName']){const _0x214a8a=[],_0x3ad608=_0x121484['commandParams'][0x0];for(const [_0x4c2d6b,_0x2ae1ad]of Object['entries'](_0x3ad608))_0x214a8a['push'](so(_0x1c6e96,_0x4c2d6b,_0x2ae1ad));return _0x214a8a['length']?{'type':'format','content':c(_0x297726,'*Set\x20format\x20to:*\x20%0',_0x214a8a['join'](',\x20'))}:{'type':'format','content':c(_0x297726,'*Remove\x20all\x20formatting*')};}});}}function so(_0x59c78f,_0x39e2b4,_0xab2468){const _0x2a502b=_0x59c78f['locale']['t'],_0x5ba16b=_0x39e2b4['split'](/(?=[A-Z])/)['join']('\x20'),_0x1b6975=_0x2a502b(_0x5ba16b['charAt'](0x0)['toUpperCase']()+_0x5ba16b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xab2468)return _0x1b6975;if('fontColor'===_0x39e2b4||'fontBackgroundColor'===_0x39e2b4){const _0x54fcec=_0x5810fc(_0x59c78f['config']['get']('fontColor.colors'))['find'](_0x4138cd=>_0x4138cd['model']==_0xab2468);return _0x1b6975+'\x20('+(_0x54fcec?_0x2a502b(_0x54fcec['label'])['toLowerCase']():_0xab2468)+')';}if('fontSize'===_0x39e2b4&&isNaN(parseFloat(_0xab2468))){const _0xd00e30=_0x59c78f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x59c78f['config']['get']('fontSize.options'))['find'](_0xa3c311=>_0xa3c311['model']==_0xab2468);return _0x1b6975+'\x20('+(_0xd00e30?_0x2a502b(_0xd00e30['title'])['toLowerCase']():_0xab2468)+')';}return _0x1b6975+'\x20('+_0xab2468+')';}class nt extends _0x2bb590{['_headingOptions'];['afterInit'](){const _0x11bc18=this['editor'];if(!_0x11bc18['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x11bc18['config']['get']('heading.options');const _0x46f198=_0x11bc18['locale'],_0x1be248=_0x11bc18['plugins']['get']('TrackChangesEditing');_0x1be248['enableDefaultAttributesIntegration']('heading');for(const _0x13fe66 of this['_headingOptions'])'paragraph'!=_0x13fe66['model']&&_0x1be248['descriptionFactory']['registerElementLabel'](_0x13fe66['model'],_0x5c9336=>{const _0x30ec5e=this['_getHeadingLevel'](_0x13fe66['model']);return null!==_0x30ec5e?_0x51152e(_0x5c9336,_0x30ec5e):_0x370d24(_0x5c9336,_0x13fe66['title']);});function _0x51152e(_0x408833,_0x37ed52){return c(_0x46f198,'ELEMENT_HEADING',[_0x408833,_0x37ed52]);}function _0x370d24(_0x4cbbb4,_0x4ab55a){return c(_0x46f198,'ELEMENT_HEADING_CUSTOM',[_0x4cbbb4,_0x4ab55a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30d3a2=this['editor'],_0x494879=_0x30d3a2['locale'];function _0x4abb71(_0x106123,_0x32f131){return c(_0x494879,'ELEMENT_HEADING_CUSTOM',[_0x106123,_0x32f131]);}_0x30d3a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5acbb5=>{if('formatBlock'!=_0x5acbb5['type'])return;const {data:_0x17495a}=_0x5acbb5;if(_0x17495a&&'heading'==_0x17495a['commandName']){const _0x3350df=_0x17495a['commandParams'][0x0]['value'],_0x5e2b6e=this['_getHeadingLevel'](_0x3350df);if(null!==_0x5e2b6e)return{'type':'format','content':c(_0x494879,'*Change\x20to:*\x20%0',(_0x10cbac=0x1,_0x2a54e1=_0x5e2b6e,c(_0x494879,'ELEMENT_HEADING',[_0x10cbac,_0x2a54e1])))};const _0x22628d=this['_headingOptions']['find'](_0x5a5770=>_0x5a5770['model']===_0x3350df)['title'];return{'type':'format','content':c(_0x494879,'*Change\x20to:*\x20%0',_0x4abb71(0x1,_0x22628d))};}var _0x10cbac,_0x2a54e1;});}['_getHeadingLevel'](_0x2f2ccb){const _0x175a8b=_0x2f2ccb['match'](/^heading(\d+)/);if(_0x175a8b)return _0x175a8b[0x1];const _0x4a0ec5=this['_headingOptions']?.['find'](_0x4862c=>_0x4862c['model']==_0x2f2ccb);if(_0x4a0ec5&&_0x4a0ec5['view']){const _0x239669=_0x4a0ec5['view'],_0x3a4b2b=(_0x239669['name']??_0x239669)['match'](/^h(\d+)/);if(_0x3a4b2b)return _0x3a4b2b[0x1];}return null;}}class it extends _0x2bb590{['afterInit'](){const _0xdbc174=this['editor'];if(!_0xdbc174['plugins']['has']('HighlightEditing'))return;const _0x1351ea=_0xdbc174['plugins']['get']('TrackChangesEditing'),_0x15f02e=_0xdbc174['locale'];_0x1351ea['enableDefaultAttributesIntegration']('highlight'),_0x1351ea['registerInlineAttribute']('highlight'),_0x1351ea['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x15f02e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f5d8d=this['editor'],_0x514ca2=_0x1f5d8d['locale'];_0x1f5d8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56a3c6=>{if('formatInline'!=_0x56a3c6['type'])return;const {data:_0x7cc2d0}=_0x56a3c6;if(_0x7cc2d0&&'highlight'==_0x7cc2d0['commandName']){const _0x17fcb3=_0x514ca2['t'],_0xd19967=_0x7cc2d0['commandParams'][0x0]['value'];if(_0xd19967){const _0x14dd61=_0x1f5d8d['config']['get']('highlight.options')['find'](_0x5571b3=>_0x5571b3['model']==_0xd19967),_0x39283c=_0x17fcb3(_0x14dd61['title'])['toLowerCase']();return{'type':'format','content':c(_0x514ca2,'*Set\x20highlight:*\x20%0',_0x39283c),'color':{'value':_0x14dd61['color'],'title':_0x14dd61['title']}};}return{'type':'format','content':c(_0x514ca2,'*Remove\x20highlight*',c(_0x514ca2,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2bb590{['afterInit'](){const _0x1d78e7=this['editor'];if(!_0x1d78e7['plugins']['has']('HorizontalLineEditing'))return;_0x1d78e7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x20edd8=_0x1d78e7['plugins']['get']('TrackChangesEditing'),_0xb04ad3=_0x1d78e7['locale'];_0x20edd8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4aa6d3=>c(_0xb04ad3,'ELEMENT_HORIZONTAL_LINE',_0x4aa6d3)),_0x1d78e7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1f657a,{writer:_0x2b38a3,options:_0x21fcb7})=>{if(!_0x21fcb7['showSuggestionHighlights'])return null;const _0x52d03a=_0x2b38a3['createContainerElement']('div'),_0x23a356=_0x2b38a3['createEmptyElement']('hr');return _0x2b38a3['addClass']('ck-horizontal-line',_0x52d03a),_0x2b38a3['insert'](_0x2b38a3['createPositionAt'](_0x52d03a,0x0),_0x23a356),_0x52d03a;},'converterPriority':'high'});}}class ot extends _0x2bb590{['afterInit'](){const _0x2ac47c=this['editor'];if(!_0x2ac47c['plugins']['has']('HtmlEmbed'))return;const _0x32776d=_0x2ac47c['plugins']['get']('TrackChangesEditing'),_0x59ccab=_0x2ac47c['locale'];_0x32776d['descriptionFactory']['registerElementLabel']('rawHtml',_0x17baa6=>c(_0x59ccab,'ELEMENT_HTML_EMBED',_0x17baa6)),_0x32776d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x32776d['registerBlockAttribute']('value'),_0x32776d['descriptionFactory']['registerDescriptionCallback'](_0x2ed7bd=>{if('attribute'!=_0x2ed7bd['type'])return;const {data:_0x328154}=_0x2ed7bd;if(_0x328154&&'value'==_0x328154['key']&&_0x2ed7bd['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4746ea=c(_0x59ccab,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x59ccab,'*Change\x20%0\x20content*',_0x4746ea)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xaa4444=this['editor'],_0x19b03a=_0xaa4444['locale'];_0xaa4444['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4baa57=>{if('formatBlock'!=_0x4baa57['type'])return;const {data:_0x194313}=_0x4baa57;if(_0x194313&&'htmlEmbed'==_0x194313['commandName']){const _0x4b10d4=c(_0x19b03a,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x19b03a,'*Change\x20%0\x20content*',_0x4b10d4)};}});}}class rt extends _0x2bb590{['afterInit'](){const _0x2b5229=this['editor'];if(!_0x2b5229['plugins']['has']('ImageEditing'))return;const _0x8e6f2d=_0x2b5229['plugins']['get']('TrackChangesEditing'),_0xc6f9da=_0x2b5229['plugins']['get']('ImageUtils'),_0x5aed6e=_0x2b5229['locale'];_0x8e6f2d['enableCommand']('insertImage'),_0x8e6f2d['descriptionFactory']['registerElementLabel']('imageBlock',_0x25e3ad=>c(_0x5aed6e,'ELEMENT_IMAGE',_0x25e3ad)),_0x8e6f2d['descriptionFactory']['registerElementLabel']('imageInline',_0x2ebb59=>c(_0x5aed6e,'ELEMENT_INLINE_IMAGE',_0x2ebb59)),_0x8e6f2d['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x5aed6e,'ELEMENT_CAPTION')),_0x2b5229['plugins']['has']('ImageUploadEditing')&&_0x8e6f2d['enableCommand']('uploadImage'),_0x2b5229['plugins']['has']('ImageBlockEditing')&&_0x2b5229['plugins']['has']('ImageInlineEditing')&&(_0x8e6f2d['enableCommand']('imageTypeInline',(_0x23421b,_0x3a084d)=>{const _0x4b1171=_0xc6f9da['getClosestSelectedImageElement'](_0x2b5229['model']['document']['selection']);_0x2b5229['model']['change'](()=>{_0x8e6f2d['markBlockFormat'](_0x4b1171,{'commandName':'imageTypeInline','commandParams':[_0x3a084d]},[],'convertBlockImageToInline');});}),_0x8e6f2d['enableCommand']('imageTypeBlock',(_0x40b855,_0x296da1)=>{_0x2b5229['model']['change'](_0x431c96=>{let _0x3f5f18=_0xc6f9da['getClosestSelectedImageElement'](_0x2b5229['model']['document']['selection']),_0x3be5a6=_0x431c96['createRangeOn'](_0x3f5f18);const _0x5dbdc6=_0x48d435['fromPosition'](_0x3be5a6['start'],'toPrevious'),_0x308301=_0x48d435['fromPosition'](_0x3be5a6['end'],'toNext');_0x8e6f2d['forceDefaultExecution'](()=>_0x40b855(_0x296da1)),_0x3f5f18=_0xc6f9da['getClosestSelectedImageElement'](_0x2b5229['model']['document']['selection']),_0x3be5a6=_0x431c96['createRangeOn'](_0x3f5f18);const _0x3effc9=_0x431c96['createRange'](_0x5dbdc6,_0x308301);_0x5dbdc6['detach'](),_0x308301['detach'](),_0x8e6f2d['markBlockFormat'](_0x3f5f18,{'commandName':'imageTypeInline','commandParams':[_0x296da1]},[],'convertInlineImageToBlock'),_0x3effc9['start']['isBefore'](_0x3be5a6['start'])&&_0x8e6f2d['markInsertion'](_0x431c96['createRange'](_0x3effc9['start'],_0x3be5a6['start']),'convertInlineImageToBlock'),_0x3be5a6['end']['isBefore'](_0x3effc9['end'])&&_0x8e6f2d['markInsertion'](_0x431c96['createRange'](_0x3be5a6['end'],_0x3effc9['end']),'convertInlineImageToBlock');});}),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8e6f2d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x55e320])=>{const _0x3cf3e5=_0x8e6f2d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x587ea1=_0x55e320['start'],_0x3e0d43=_0x55e320['end'];const _0x26e475=_0x2b5229['model']['schema']['getNearestSelectionRange'](_0x587ea1,'backward'),_0x260654=_0x2b5229['model']['schema']['getNearestSelectionRange'](_0x3e0d43,'forward');_0x26e475['isCollapsed']&&(_0x587ea1=_0x26e475['start']),_0x260654['isCollapsed']&&(_0x3e0d43=_0x260654['end']),_0x3cf3e5([_0x2b5229['model']['createRange'](_0x587ea1,_0x3e0d43)]);}),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x227838),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x227838)),_0x2b5229['plugins']['has']('ImageCaptionEditing')&&(_0x8e6f2d['enableCommand']('toggleImageCaption',(_0x4e7949,_0x51d3c3)=>{const _0x38453f=_0x2b5229['plugins']['get']('ImageCaptionUtils');let _0x5c92d3=_0xc6f9da['getClosestSelectedImageElement'](_0x2b5229['model']['document']['selection']),_0x42531a=_0x38453f['getCaptionFromImageModelElement'](_0x5c92d3);_0x2b5229['model']['change'](()=>{if(_0x42531a)return void _0x8e6f2d['markDeletion'](_0x2b5229['model']['createRangeOn'](_0x42531a));const _0x58b987=_0xc6f9da['isBlockImage'](_0x5c92d3);_0x4e7949(_0x51d3c3),_0x5c92d3=_0xc6f9da['getClosestSelectedImageElement'](_0x2b5229['model']['document']['selection']),_0x42531a=_0x38453f['getCaptionFromImageModelElement'](_0x5c92d3),_0x8e6f2d['markInsertion'](_0x2b5229['model']['createRangeOn'](_0x42531a),_0x58b987?null:'imageCaption');});}),_0x8e6f2d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x227838));const _0x2d283e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x319e10(_0x50cbba,_0x3c5483){const _0x43aed2=_0x2d283e['findIndex'](({type:_0x172e2f,subType:_0x1c5d6c})=>_0x50cbba['type']==_0x172e2f&&_0x50cbba['subType']==_0x1c5d6c),_0x466026=_0x2d283e['findIndex'](({type:_0x283866,subType:_0xfe82c5})=>_0x3c5483['type']==_0x283866&&_0x3c5483['subType']==_0xfe82c5);if(_0x43aed2<0x0||_0x466026<0x0)return!0x1;const _0x523405=_0x50cbba['getFirstRange'](),_0x2ee20c=_0x3c5483['getFirstRange']();if((0x0==_0x43aed2||0x1==_0x43aed2)&&0x2==_0x466026&&_0x523405['isIntersecting'](_0x2ee20c))return!0x0;if(0x2==_0x43aed2&&0x3==_0x466026){const _0x34b005=_0x8e6f2d['_findSuggestions'](_0x523405,'insertion')['filter'](({suggestion:_0x2abe56,meta:_0x2ed40b})=>_0x2ed40b['isOwn']&&'convertInlineImageToBlock'==_0x2abe56['subType']);if(_0x34b005['length']>0x1&&_0x2ee20c['end']['isEqual'](_0x523405['start']))return!0x0;if(0x1==_0x34b005['length']&&(_0x523405['start']['isEqual'](_0x2ee20c['end'])||_0x523405['end']['isEqual'](_0x2ee20c['start'])))return!0x0;}if(0x3==_0x43aed2&&0x3==_0x466026&&_0x523405['start']['isBefore'](_0x2ee20c['start'])){const _0x3e424e=_0x523405['end']['nodeAfter'],_0x4e2fee=_0x2ee20c['start']['nodeBefore'];return _0xc6f9da['isBlockImage'](_0x3e424e)&&_0x3e424e===_0x4e2fee;}return!0x1;}function _0x227838(_0x3fe839,_0x3df23a){return _0x319e10(_0x3fe839,_0x3df23a)?[_0x3fe839,_0x3df23a]:_0x319e10(_0x3df23a,_0x3fe839)?[_0x3df23a,_0x3fe839]:null;}_0x2b5229['plugins']['has']('ImageResize')&&(_0x8e6f2d['enableDefaultAttributesIntegration']('resizeImage'),_0x8e6f2d['registerBlockAttribute']('resizedWidth'),_0x8e6f2d['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x5aed6e,'FORMAT_IMAGE_SIZE'))),_0x2b5229['plugins']['has']('ImageTextAlternativeEditing')&&(_0x8e6f2d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x8e6f2d['registerBlockAttribute']('alt')),_0x2b5229['plugins']['has']('PictureEditing')&&(_0x8e6f2d['registerBlockAttribute']('sources'),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x5e0169=>{if('attribute'!=_0x5e0169['type'])return;const {data:_0x46ec06}=_0x5e0169;return _0x46ec06&&'sources'==_0x46ec06['key']?{'type':'format','content':''}:void 0x0;})),_0x2b5229['plugins']['has']('ImageSizeAttributes')&&(_0x8e6f2d['registerBlockAttribute']('width'),_0x8e6f2d['registerBlockAttribute']('height'),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x4196b5=>{if('attribute'!=_0x4196b5['type'])return;const {data:_0x4158de}=_0x4196b5;return!_0x4158de||'width'!=_0x4158de['key']&&'height'!=_0x4158de['key']?void 0x0:{'type':'format','content':''};})),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x46c169=>{if(!!_0x2d283e['find'](({type:_0x27c045,subType:_0x4933eb})=>_0x46c169['type']==_0x27c045&&_0x46c169['subType']==_0x4933eb))return _0x46c169['previous']?{}:void 0x0;}),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x2c1c4f=>{if('insertion'==_0x2c1c4f['type']||'deletion'==_0x2c1c4f['type']){const _0xe81805=_0x2c1c4f['getContainedElement']();if(_0xe81805&&_0xe81805['is']('element','caption'))return{'type':'insertion'==_0x2c1c4f['type']?'addObject':'removeObject','element':_0xe81805,'quantity':0x1};}}),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x4b7580=>'formatBlock'==_0x4b7580['type']&&'convertInlineImageToBlock'==_0x4b7580['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4b7580['type']&&'convertBlockImageToInline'==_0x4b7580['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8e6f2d['descriptionFactory']['registerDescriptionCallback'](_0x1254c9=>{if('attribute'!=_0x1254c9['type'])return;const {data:_0x3b1354}=_0x1254c9;if(!_0x3b1354||'alt'!=_0x3b1354['key'])return;const _0x3d26ad=_0x3b1354['newValue'];return _0x3d26ad?{'type':'format','content':c(_0x5aed6e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3d26ad+'\x22')}:{'type':'format','content':c(_0x5aed6e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f8427=this['editor'],_0x5c6441=_0x1f8427['locale'];_0x1f8427['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1097d3=>{if('formatBlock'!=_0x1097d3['type']&&'formatInline'!=_0x1097d3['type'])return;const {data:_0x103e5f}=_0x1097d3;if(_0x103e5f){if('imageTextAlternative'==_0x103e5f['commandName']){const _0x3ee365=_0x103e5f['commandParams'][0x0]['newValue'];return _0x3ee365?{'type':'format','content':c(_0x5c6441,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3ee365+'\x22')}:{'type':'format','content':c(_0x5c6441,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x103e5f['commandName']){const _0x381e94=_0x103e5f['commandParams'][0x0]['width'];return _0x381e94?{'type':'format','content':c(_0x5c6441,'*Set\x20image\x20width:*\x20%0',_0x381e94)}:{'type':'format','content':c(_0x5c6441,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2bb590{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1c8615=this['editor']['locale'],_0x7bad04=this['editor']['plugins']['get']('TrackChangesEditing');_0x7bad04['enableDefaultAttributesIntegration']('replaceImageSource'),_0x7bad04['registerBlockAttribute']('src'),_0x7bad04['descriptionFactory']['registerDescriptionCallback'](_0x1d7d03=>{if('attribute'!=_0x1d7d03['type'])return;const {data:_0x207722}=_0x1d7d03;return _0x207722&&'src'==_0x207722['key']?_0x207722['newValue']&&_0x207722['oldValue']?{'type':'format','content':c(_0x1c8615,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x48f460=this['editor']['plugins']['get']('TrackChangesEditing');_0x48f460['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x48f460['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48f460['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x48f460['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x205bf5=this['editor'],_0x4ee123=_0x205bf5['locale'];_0x205bf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11020d=>{if('formatBlock'!=_0x11020d['type']&&'formatInline'!=_0x11020d['type'])return;const {data:_0x2fa72a}=_0x11020d;if(!_0x2fa72a||'replaceImageSource'!=_0x2fa72a['commandName'])return;return{'type':'format','content':c(_0x4ee123,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2bb590{['afterInit'](){const _0x1f11c0=this['editor'];if(!_0x1f11c0['plugins']['has']('ImageStyleEditing'))return;const _0x24fa9f=_0x1f11c0['plugins']['get']('TrackChangesEditing'),_0x371bc9=_0x1f11c0['plugins']['get']('ImageUtils'),_0x33683f={};_0x24fa9f['enableCommand']('imageStyle',(_0x5af442,_0x3fd372)=>{const _0x29e7c1=_0x1f11c0['plugins']['get']('Users')['me'],_0x11ff7a=_0x1f11c0['commands']['get']('imageStyle');let _0x225764=_0x371bc9['getClosestSelectedImageElement'](_0x1f11c0['model']['document']['selection']),_0x17bb65=_0x1f11c0['model']['createRangeOn'](_0x225764),_0x4df0a6=_0x11ff7a['value'];if(_0x4df0a6==_0x3fd372['value'])return;const _0x884144={'commandName':'imageStyle','commandParams':[_0x3fd372],'formatGroupId':_0xf1d1da()};_0x1f11c0['model']['change'](()=>{if(_0x24fa9f['getSuggestions']()['filter'](_0x19ee25=>_0x19ee25['isInContent']&&_0x29e7c1==_0x19ee25['author']&&('formatBlock'==_0x19ee25['type']||'formatInline'==_0x19ee25['type'])&&('imageStylePreApply'==_0x19ee25['subType']||'imageStylePostApply'==_0x19ee25['subType'])&&_0x19ee25['getFirstRange']()['isEqual'](_0x17bb65))['forEach'](_0x465dcb=>_0x24fa9f['discardSuggestion'](_0x465dcb['head'])),_0x225764=_0x371bc9['getClosestSelectedImageElement'](_0x1f11c0['model']['document']['selection']),_0x17bb65=_0x1f11c0['model']['createRangeOn'](_0x225764),_0x11ff7a['refresh'](),_0x1f11c0['commands']['get']('imageTypeInline')['refresh'](),_0x1f11c0['commands']['get']('imageTypeBlock')['refresh'](),_0x4df0a6=_0x11ff7a['value'],_0x4df0a6!=_0x3fd372['value'])return _0x371bc9['isInlineImage'](_0x225764)&&_0x11ff7a['shouldConvertImageType'](_0x3fd372['value'],_0x225764)?(_0x5af442({..._0x3fd372,'setImageSizes':!0x1}),_0x225764=_0x371bc9['getClosestSelectedImageElement'](_0x1f11c0['model']['document']['selection']),void _0x24fa9f['markBlockFormat'](_0x225764,{..._0x884144,'commandReversedParams':[{'value':_0x4df0a6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x371bc9['isBlockImage'](_0x225764)?_0x24fa9f['markBlockFormat'](_0x225764,_0x884144,[],'imageStylePostApply'):_0x24fa9f['markInlineFormat'](_0x17bb65,_0x884144,'imageStylePostApply'));});});for(const _0x5e4617 of _0x1f11c0['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x33683f[_0x5e4617['name']]=_0x5e4617['title']['toLowerCase']();_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x9ab69b])=>{_0x371bc9['setImageNaturalSizeAttributes'](_0x9ab69b['getContainedElement']());}),_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2fa3f7,_0xed4240)=>{_0x24fa9f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2fa3f7,{'commandName':_0xed4240['commandName'],'commandParams':_0xed4240['commandReversedParams']});}),_0x24fa9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3e502f,_0x377ecd){if(_0x30d488(_0x3e502f,_0x377ecd))return[_0x3e502f,_0x377ecd];if(_0x30d488(_0x377ecd,_0x3e502f))return[_0x377ecd,_0x3e502f];return null;});const _0x1d84ea=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x30d488(_0x536174,_0x5105ee){const _0x4a8353=_0x1d84ea['findIndex'](({type:_0x58c96f,subType:_0x2b7398})=>_0x536174['type']==_0x58c96f&&_0x536174['subType']==_0x2b7398),_0x333521=_0x1d84ea['findIndex'](({type:_0x3009aa,subType:_0x45ba0c})=>_0x5105ee['type']==_0x3009aa&&_0x5105ee['subType']==_0x45ba0c);if(_0x4a8353<0x0||_0x333521<0x0)return!0x1;const _0x3cb3d1=_0x536174['getFirstRange'](),_0x4b7af7=_0x5105ee['getFirstRange']();if((0x0==_0x4a8353||0x1==_0x4a8353)&&0x2==_0x333521&&_0x3cb3d1['isIntersecting'](_0x4b7af7))return!0x0;if(0x2==_0x4a8353&&0x3==_0x333521){const _0x3af5e7=_0x24fa9f['_findSuggestions'](_0x3cb3d1,'insertion')['filter'](({suggestion:_0x4f3f6d,meta:_0x1ab104})=>_0x1ab104['isOwn']&&'convertInlineImageToBlock'==_0x4f3f6d['subType']);if(_0x3af5e7['length']>0x1&&_0x4b7af7['end']['isEqual'](_0x3cb3d1['start']))return!0x0;if(0x1==_0x3af5e7['length']&&(_0x3cb3d1['start']['isEqual'](_0x4b7af7['end'])||_0x3cb3d1['end']['isEqual'](_0x4b7af7['start'])))return!0x0;}if(0x3==_0x4a8353&&0x3==_0x333521&&_0x3cb3d1['start']['isBefore'](_0x4b7af7['start'])){const _0x301ba7=_0x3cb3d1['end']['nodeAfter'],_0x177d8c=_0x4b7af7['start']['nodeBefore'];return _0x371bc9['isBlockImage'](_0x301ba7)&&_0x301ba7===_0x177d8c;}return!0x1;}_0x1f11c0['model']['document']['registerPostFixer'](()=>{let _0x4d43e1=!0x1;const _0x14b1cb=Array['from'](_0x1f11c0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x57879c,data:_0x519095}of _0x14b1cb){const {group:_0x1bc34f,type:_0x5f0e70,subType:_0x1a9cbe,id:_0x5854ec}=_0x24fa9f['_splitMarkerName'](_0x57879c);if('suggestion'==_0x1bc34f&&_0x24fa9f['hasSuggestion'](_0x5854ec)){if('formatBlock'==_0x5f0e70&&('imageStylePreApply'==_0x1a9cbe||'imageStylePostApply'==_0x1a9cbe)){const _0x64a248=_0x24fa9f['getSuggestion'](_0x5854ec);if(_0x519095['newRange']){const _0x2b9162=_0x64a248['getFirstRange']()['getContainedElement']();if(_0x371bc9['isBlockImage'](_0x2b9162))continue;_0x24fa9f['discardSuggestion'](_0x64a248),_0x4d43e1=!0x0;}}if('insertion'==_0x5f0e70&&'imageCaption'==_0x1a9cbe&&!_0x519095['newRange']){const _0x479ca8=_0x24fa9f['getSuggestion'](_0x5854ec);_0x479ca8['next']&&_0x479ca8['next']['isInContent']&&(_0x24fa9f['discardSuggestion'](_0x479ca8['next']),_0x4d43e1=!0x0);}}}return _0x4d43e1;}),this['_registerLegacyDescription'](_0x33683f);}['_registerLegacyDescription'](_0x49882e){const _0xdf9ff5=this['editor'],_0x204def=_0xdf9ff5['locale'];_0xdf9ff5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x167233=>{if('formatBlock'!=_0x167233['type']&&'formatInline'!=_0x167233['type'])return;const {data:_0x565596}=_0x167233;if(!_0x565596||'imageStyle'!=_0x565596['commandName'])return;const _0xc5a435=_0x565596['commandParams'][0x0]['value'];return _0x407029('side'===_0xc5a435?c(_0x204def,'FORMAT_SIDE_IMAGE'):_0x49882e[_0xc5a435]||_0xc5a435);function _0x407029(_0x1fa5fe){return{'type':'format','content':c(_0x204def,'*Format:*\x20%0',_0x1fa5fe)};}});}}class ut extends _0x2bb590{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x16ad10){super(_0x16ad10),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x20022b=this['editor'],_0x5367df=_0x20022b['commands']['get']('importWord'),_0x2cdc49=_0x20022b['commands']['get']('trackChanges');_0x5367df&&(_0x5367df['on']('execute',(_0x2b56e4,[,_0x311270])=>{this['_trackChangesValueDuringImport']=_0x2cdc49['value'],_0x311270['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5367df,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5367df,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2cdc49['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x20022b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x178326,_0x44e707){const {suggestions:_0x40811c}=_0x44e707,_0x2df765=this['editor']['commands']['get']('trackChanges'),_0x54144a=_0x2df765['value'];this['_trackChangesValueDuringImport']!==_0x54144a&&(_0x2df765['execute'](),this['_trackChangesExecuted']=!0x0),_0x40811c&&_0x40811c['forEach'](({id:_0x483c5a,type:_0x55ee60,author:_0x310539,created_at:_0x23e728})=>{const _0x2e32f6={'id':_0x483c5a,'type':_0x55ee60,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x310539,'createdAt':_0x23e728?new Date(_0x23e728):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2e32f6);});}}class ft extends _0x2bb590{['afterInit'](){const _0x3867d2=this['editor'],_0x3e5d28=_0x3867d2['plugins']['get']('TrackChangesEditing');if(_0x3867d2['plugins']['has']('IndentEditing')&&(_0x3e5d28['enableCommand']('indent'),_0x3e5d28['enableCommand']('outdent')),_0x3867d2['plugins']['has']('IndentBlock')){for(const _0x25be05 of['indentBlock','outdentBlock'])_0x3e5d28['enableDefaultAttributesIntegration'](_0x25be05);}const _0x27d427=_0x3867d2['locale'];_0x3e5d28['registerBlockAttribute']('blockIndent'),_0x3e5d28['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x27d427,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x243c78=this['editor'],_0x2eac74=_0x243c78['locale'],_0x147127=_0x243c78['plugins']['get']('TrackChangesEditing');_0x147127['descriptionFactory']['registerDescriptionCallback'](_0x36f86c=>{if('formatBlock'!=_0x36f86c['type'])return;const {data:_0x313f00}=_0x36f86c;if(!_0x313f00)return;if('indentBlock'!=_0x313f00['commandName']&&'outdentBlock'!=_0x313f00['commandName'])return;const _0x4677b9=_0x36f86c['getItems']()[0x0],_0x1906de=_0x147127['descriptionFactory']['getItemLabel'](_0x4677b9);return'indentBlock'==_0x313f00['commandName']?{'type':'format','content':c(_0x2eac74,'*Indent:*\x20%0',_0x1906de)}:'outdentBlock'==_0x313f00['commandName']?{'type':'format','content':c(_0x2eac74,'*Outdent:*\x20%0',_0x1906de)}:void 0x0;});}}class ht extends _0x2bb590{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2bb590{['afterInit'](){const _0x2b8530=this['editor'];if(!_0x2b8530['plugins']['has']('LinkEditing'))return;const _0x193e9c=_0x2b8530['plugins']['get']('TrackChangesEditing'),_0x2f8e35=_0x2b8530['commands']['get']('link');_0x193e9c['enableDefaultAttributesIntegration']('link'),_0x193e9c['enableDefaultAttributesIntegration']('unlink'),_0x193e9c['registerInlineAttribute']('linkHref');for(const _0x4ada4c of _0x2f8e35['manualDecorators'])_0x193e9c['registerInlineAttribute'](_0x4ada4c['id']),_0x193e9c['descriptionFactory']['registerAttributeLabel'](_0x4ada4c['id'],'link\x20('+_0x4ada4c['label']['toLowerCase']()+')');_0x193e9c['descriptionFactory']['registerDescriptionCallback'](_0x366348=>{if('attribute'!=_0x366348['type'])return;const {data:_0x170010}=_0x366348;if(!_0x170010||'linkHref'!=_0x170010['key'])return;const _0x17ff1e=_0x170010['newValue'],_0x58129e=_0x2b8530['locale'];return{'type':'format','content':null==_0x17ff1e?c(_0x58129e,'*Remove\x20link*'):c(_0x58129e,'*Set\x20link:*\x20%0','\x22'+_0x17ff1e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ed17a=this['editor'],_0x24aa6c=_0x3ed17a['locale'];_0x3ed17a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fb394=>{if('formatInline'!=_0x4fb394['type'])return;const {data:_0x4b4970}=_0x4fb394;if(_0x4b4970){if('link'==_0x4b4970['commandName']){const _0x266f0c=_0x4b4970['commandParams'][0x0];return{'type':'format','content':c(_0x24aa6c,'*Set\x20link:*\x20%0','\x22'+_0x266f0c+'\x22')};}return'unlink'==_0x4b4970['commandName']?{'type':'format','content':c(_0x24aa6c,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2bb590{['afterInit'](){const _0x2438bd=this['editor'],_0x8d7c3a=_0x2438bd['locale'];if(!_0x2438bd['plugins']['has']('LegacyListEditing'))return;const _0x23e30d=_0x2438bd['plugins']['get']('TrackChangesEditing'),_0x1611a2=_0x2438bd['plugins']['has']('LegacyTodoListEditing');function _0x3c54a2(_0x59172f){return()=>{const _0x3345dc=_0x2438bd['model']['document']['selection'],_0x56b840=_0x2438bd['commands']['get'](_0x59172f);if(_0x56b840['value'])return void _0x2438bd['execute']('paragraph',{});const _0x27be6=_0x59172f['slice'](0x0,-0x4),_0x5c3699=function(_0x2e1a6e,_0x519da2,_0xd750a8){let _0x12c587=Array['from'](_0x2e1a6e)['filter'](_0x11c4c4=>function(_0x1a2cbb,_0x4cbb36){return _0x4cbb36['checkChild'](_0x1a2cbb['parent'],'listItem')&&!_0x4cbb36['isObject'](_0x1a2cbb);}(_0x11c4c4,_0xd750a8));_0x12c587=_0x12c587['filter'](_0xe0a4a=>!_0xe0a4a['is']('element','listItem')||_0xe0a4a['getAttribute']('listType')!=_0x519da2);const _0x65237e=new Set();for(const _0x37a57b of _0x12c587)_0x37a57b['is']('element','listItem')?_0x65237e['add'](Le(_0x37a57b)):_0x65237e['add'](_0x37a57b);return Array['from'](_0x65237e);}(_0x3345dc['getSelectedBlocks'](),_0x27be6,_0x2438bd['model']['schema']);_0x2438bd['model']['change'](()=>{for(const _0x2491b9 of _0x5c3699)_0x23e30d['markBlockFormat'](_0x2491b9,{'commandName':_0x59172f,'commandParams':[{'forceValue':!_0x56b840['value']}],'formatGroupId':'blockName'},Ee(_0x2491b9));});};}function _0x30bea2(_0x3b9b93){return()=>{const _0x41c448=function(_0x4dc598){let _0x3aca53=Array['from'](_0x4dc598);const _0x462bf0=_0x3aca53['findIndex'](_0x27e950=>'listItem'!=_0x27e950['name']);return _0x462bf0>-0x1&&(_0x3aca53=_0x3aca53['slice'](0x0,_0x462bf0)),_0x3aca53;}(_0x2438bd['model']['document']['selection']['getSelectedBlocks']()),_0x97038=_0x2438bd['model']['createRange'](_0x2438bd['model']['createPositionAt'](_0x41c448[0x0],'before'),_0x2438bd['model']['createPositionAt'](_0x41c448[_0x41c448['length']-0x1],'end'));_0x2438bd['model']['change'](()=>{_0x23e30d['markBlockFormat'](_0x97038,{'commandName':_0x3b9b93,'commandParams':[],'formatGroupId':'listIndent'},function(_0x399271){const _0xcfb126=new Set();for(const _0x261498 of _0x399271){let _0xe7ec53=_0x261498['nextSibling'];for(;_0xe7ec53&&_0xe7ec53['getAttribute']('listIndent')>_0x261498['getAttribute']('listIndent');)_0xcfb126['add'](_0xe7ec53),_0xe7ec53=_0xe7ec53['nextSibling'];}return Array['from'](_0xcfb126);}(_0x41c448));});};}_0x23e30d['enableCommand']('numberedList',_0x3c54a2('numberedList')),_0x23e30d['enableCommand']('bulletedList',_0x3c54a2('bulletedList')),_0x1611a2&&_0x23e30d['enableCommand']('todoList',_0x3c54a2('todoList')),_0x23e30d['enableCommand']('indentList',_0x30bea2('indentList')),_0x23e30d['enableCommand']('outdentList',_0x30bea2('outdentList')),_0x1611a2&&_0x23e30d['enableCommand']('checkTodoList',()=>{const _0x2f33c2=_0x2438bd['commands']['get']('checkTodoList'),_0x419537=Array['from'](_0x2f33c2['_selectedElements']);_0x419537['filter'](_0x1441f0=>_0x1441f0['getAttribute']('todoListChecked')!=_0x2f33c2['value']),_0x2438bd['model']['change'](()=>{for(const _0x36812f of _0x419537)_0x23e30d['markBlockFormat'](_0x36812f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2f33c2['value']}]});});}),_0x23e30d['descriptionFactory']['registerElementLabel']('listItem',_0x2499e8=>c(_0x8d7c3a,'ELEMENT_LIST_ITEM',_0x2499e8)),_0x23e30d['descriptionFactory']['registerDescriptionCallback'](_0x1b6119=>{if('formatBlock'!=_0x1b6119['type']&&'formatInline'!=_0x1b6119['type'])return;const {data:_0x208df4}=_0x1b6119;if(_0x208df4){if('numberedList'==_0x208df4['commandName']||'bulletedList'==_0x208df4['commandName']||'todoList'==_0x208df4['commandName'])switch(_0x208df4['commandName']['replace']('List','')){case'bulleted':return _0x2570d3(c(_0x8d7c3a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2570d3(c(_0x8d7c3a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2570d3(c(_0x8d7c3a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x208df4['commandName'])return{'type':'format','content':c(_0x8d7c3a,'*Indent:*\x20%0',c(_0x8d7c3a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x208df4['commandName'])return{'type':'format','content':c(_0x8d7c3a,'*Outdent:*\x20%0',c(_0x8d7c3a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x208df4['commandName'])return _0x208df4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x8d7c3a,'*Check\x20item*')}:{'type':'format','content':c(_0x8d7c3a,'*Uncheck\x20item*')};}function _0x2570d3(_0x43efb6){return{'type':'format','content':c(_0x8d7c3a,'*Change\x20to:*\x20%0',_0x43efb6)};}});}}function Le(_0x49ac59){const _0x61e1ac=_0x49ac59['getAttribute']('listIndent');if(0x0==_0x61e1ac)return _0x49ac59;let _0x518d2e=_0x49ac59;for(;_0x49ac59['previousSibling']&&_0x49ac59['previousSibling']['is']('element','listItem');){const _0x492b31=_0x49ac59['previousSibling']['getAttribute']('listIndent');if(_0x492b31==_0x61e1ac)_0x518d2e=_0x49ac59['previousSibling'];else{if(_0x492b31<_0x61e1ac)break;}_0x49ac59=_0x49ac59['previousSibling'];}return _0x518d2e;}function Ee(_0x2f2854){const _0xa9e57=[];if(_0x2f2854['is']('element','listItem')&&_0x2f2854['getAttribute']('listIndent')>0x0){let _0x3cb503=_0x2f2854['nextSibling'];for(;_0x3cb503&&'listItem'==_0x3cb503['name']&&_0x3cb503['getAttribute']('listIndent')==_0x2f2854['getAttribute']('listIndent');)_0xa9e57['push'](_0x3cb503),_0x3cb503=_0x3cb503['nextSibling'];}return _0xa9e57;}class Q extends _0x2bb590{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x38d55d=this['editor']['config']['get']('list.properties'),_0x5dd738=this['editor']['plugins']['get']('TrackChangesEditing');_0x38d55d['styles']&&_0x5dd738['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x38d55d['reversed']&&_0x5dd738['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x38d55d['startIndex']&&_0x5dd738['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5dd738['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x214724,_0x1da5d7={}){const _0x34353d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x119589=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x34353d['markMultiRangeBlockFormat'](_0x119589,{'commandName':'listStyle','commandParams':[{'type':_0x1da5d7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5bce88,_0x422e94={}){const _0x402556=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25a6cb=this['_getSuggestionBlocks'](_0x3dfa17=>_0x3dfa17['is']('element','listItem')&&'numbered'===_0x3dfa17['getAttribute']('listType'));if(_0x25a6cb['length']<0x1)return;const _0x230331=_0x25a6cb['map'](_0x124b79=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x124b79,'before'),this['editor']['model']['createPositionAt'](_0x124b79,0x0)));this['editor']['model']['change'](()=>{_0x402556['markMultiRangeBlockFormat'](_0x230331,{'commandName':'listReversed','commandParams':[{'reversed':_0x422e94['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x58d686,_0x55bfbf={}){const _0x386fb8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c3968=this['_getSuggestionBlocks'](_0x213d57=>_0x213d57['is']('element','listItem')&&'numbered'===_0x213d57['getAttribute']('listType'));if(_0x3c3968['length']<0x1)return;const _0x5c8401=_0x3c3968['map'](_0x371d2b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x371d2b,'before'),this['editor']['model']['createPositionAt'](_0x371d2b,0x0)));this['editor']['model']['change'](()=>{_0x386fb8['markMultiRangeBlockFormat'](_0x5c8401,{'commandName':'listStart','commandParams':[{'startIndex':_0x55bfbf['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x47a732){if('formatBlock'!=_0x47a732['type']&&'formatInline'!=_0x47a732['type'])return;const _0x1b61e0=this['editor']['locale'],{data:_0xe1ac65}=_0x47a732;if(!_0xe1ac65)return;let _0x1cf6db,_0x1a0e40;switch(_0xe1ac65['commandName']){case'listStyle':_0x1cf6db='*Change\x20to:*\x20%0',_0x1a0e40={'type':'format','content':c(_0x1b61e0,_0x1cf6db,c(_0x1b61e0,this['_getTranslationKeyForListStyle'](_0xe1ac65['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1cf6db=_0xe1ac65['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a0e40={'type':'format','content':c(_0x1b61e0,_0x1cf6db)};break;case'listStart':_0x1cf6db='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a0e40={'type':'format','content':c(_0x1b61e0,_0x1cf6db,_0xe1ac65['commandParams'][0x0]['startIndex'])};}return _0x1a0e40;}['_getSuggestionBlocksForListStyle'](){const _0x14912b=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a782e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5a782e[0x0]?.['is']('element','listItem')&&_0x5a782e['unshift'](..._0x14912b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5a782e[_0x5a782e['length']-0x1]?.['is']('element','listItem')&&_0x5a782e['push'](..._0x14912b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5a782e=[...new Set(_0x5a782e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5a782e=_0x5a782e['filter'](_0x226d67=>_0x226d67['is']('element','listItem'))),_0x5a782e;}['_getSuggestionBlocks'](_0x6dd97){const _0x563990=this['editor']['plugins']['get']('LegacyListUtils');let _0x5d67e4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x6dd97)['map'](_0x5f01d7=>{const _0x4d92a1=this['editor']['model']['createPositionAt'](_0x5f01d7,0x0);return[..._0x563990['getSiblingNodes'](_0x4d92a1,'backward'),..._0x563990['getSiblingNodes'](_0x4d92a1,'forward')];})['flat']();return _0x5d67e4=[...new Set(_0x5d67e4)],_0x5d67e4;}['_getTranslationKeyForListStyle'](_0x41f24f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x41f24f)||'default')['toUpperCase']()+'_LIST_'+_0x41f24f['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2bb590{['afterInit'](){const _0xc1080c=this['editor'];if(!_0xc1080c['plugins']['has']('MediaEmbedEditing'))return;const _0x288314=_0xc1080c['plugins']['get']('TrackChangesEditing'),_0x1ce92f=_0xc1080c['locale'];_0x288314['enableCommand']('mediaEmbed'),_0x288314['descriptionFactory']['registerElementLabel']('media',_0x33580b=>c(_0x1ce92f,'ELEMENT_MEDIA',_0x33580b)),_0xc1080c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x24c8f8,{writer:_0x39dfa4,options:_0x549965})=>{if(_0x549965['showSuggestionHighlights'])return _0x39dfa4['createEmptyElement']('div');},'converterPriority':'high'}),_0xc1080c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x585d5e,_0x1f68e9,_0x24f3c3)=>{_0x24f3c3['options']['showSuggestionHighlights']&&_0x585d5e['stop']();},{'priority':'high'});}}class pt extends _0x2bb590{['afterInit'](){const _0x5580eb=this['editor'];_0x5580eb['plugins']['has']('MentionEditing')&&_0x5580eb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2bb590{['afterInit'](){const _0x57a7b9=this['editor'];if(!_0x57a7b9['plugins']['has']('MergeFieldsEditing'))return;const _0x2b42df=_0x57a7b9['plugins']['get']('TrackChangesEditing'),_0xf64aa0=_0x57a7b9['locale'];_0x2b42df['enableCommand']('insertMergeField'),_0x2b42df['enableCommand']('insertMergeFieldBlock'),_0x2b42df['enableCommand']('insertMergeFieldImage'),_0x2b42df['descriptionFactory']['registerElementLabel']('mergeField',_0x4bf5e3=>c(_0xf64aa0,'ELEMENT_MERGE_FIELD',_0x4bf5e3)),_0x2b42df['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x78ba29=>c(_0xf64aa0,'ELEMENT_MERGE_FIELD',_0x78ba29)),_0x2b42df['descriptionFactory']['registerDescriptionCallback'](_0x8c424=>{if('insertion'!=_0x8c424['type']&&'deletion'!=_0x8c424['type'])return;const _0x16b168=_0x8c424['getContainedElement']();if(null==_0x16b168)return;const _0x5c7149=_0x57a7b9['plugins']['get']('MergeFieldsEditing');let _0x2d48c1;switch(_0x5c7149['getMergeFieldType'](_0x16b168)){case null:return;case'image':{const _0x213ecd=_0x5c7149['unwrapAffixes'](_0x16b168['getAttribute']('src'));_0x2d48c1=_0x5c7149['getLabel'](_0x213ecd)||_0x213ecd;break;}default:{const _0x50d440=_0x16b168['getAttribute']('id');_0x2d48c1=_0x5c7149['getLabel'](_0x50d440)||_0x50d440;break;}}return'insertion'==_0x8c424['type']?{'type':'insertion','content':c(_0xf64aa0,'*Insert:*\x20%0','\x22'+_0x2d48c1+'\x22\x20'+c(_0xf64aa0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0xf64aa0,'*Remove:*\x20%0','\x22'+_0x2d48c1+'\x22\x20'+c(_0xf64aa0,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2bb590{['afterInit'](){const _0x3b652c=this['editor'],_0x34a8ab=_0x3b652c['plugins']['get']('TrackChangesEditing');_0x3b652c['plugins']['has']('MultiLevelList')&&(_0x34a8ab['enableDefaultAttributesIntegration']('multiLevelList'),_0x34a8ab['registerBlockAttribute']('listMarkerStyle'),_0x34a8ab['descriptionFactory']['registerDescriptionCallback'](_0x1b58cd=>this['handleDescriptions'](_0x1b58cd)));}['handleDescriptions'](_0x395fdc){const _0xf474d7=this['editor']['locale'],{data:_0x45f0a6}=_0x395fdc,_0x27f403={'type':'format','content':''};if(_0x45f0a6&&'listMarkerStyle'==_0x45f0a6['key']){if(!_0x45f0a6['oldValue'])return{'type':'format','content':c(_0xf474d7,'*Set\x20format:*\x20%0',c(_0xf474d7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x45f0a6['newValue']+')'};if(!_0x45f0a6['newValue']){let _0x1caa82=_0x395fdc['head'];for(;_0x1caa82;){if(_0x1caa82['data']&&'listType'==_0x1caa82['data']['key']&&_0x1caa82['data']['newValue'])return _0x27f403;_0x1caa82=_0x1caa82['next'];}return{'type':'format','content':c(_0xf474d7,'*Remove\x20format:*\x20%0',c(_0xf474d7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x45f0a6['oldValue']+')'};}}}}class bt extends _0x2bb590{['afterInit'](){const _0x215042=this['editor'];if(!_0x215042['plugins']['has']('PageBreakEditing'))return;_0x215042['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x142b32=_0x215042['plugins']['get']('TrackChangesEditing'),_0x2f3753=_0x215042['locale'];_0x142b32['descriptionFactory']['registerElementLabel']('pageBreak',_0x43e440=>c(_0x2f3753,'ELEMENT_PAGE_BREAK',_0x43e440));}}class yt extends _0x2bb590{['afterInit'](){const _0x14abd3=this['editor'];if(!_0x14abd3['plugins']['has']('Paragraph'))return;const _0x2efabb=_0x14abd3['locale'],_0x26965b=_0x14abd3['plugins']['get']('TrackChangesEditing');_0x26965b['descriptionFactory']['registerElementLabel']('paragraph',_0x256446=>c(_0x2efabb,'ELEMENT_PARAGRAPH',_0x256446)),_0x26965b['enableDefaultAttributesIntegration']('paragraph'),_0x26965b['enableCommand']('insertParagraph'),_0x14abd3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x14abd3),{'priority':'highest'}),_0x14abd3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xbd4651,_0xfd6372,_0x48535b)=>{_0x48535b['options']['showSuggestionHighlights']&&nr(_0x14abd3,{'showActiveMarker':!0x1})(_0xbd4651,_0xfd6372,_0x48535b);},{'priority':'highest'});const _0x6d627b=_0x26965b['descriptionFactory'];_0x6d627b['registerDescriptionCallback'](_0x5e8387=>{if('insertion'!==_0x5e8387['type'])return;const {start:_0x26e8ec,end:_0xd5b9bb}=_0x5e8387['getFirstRange']();if(!_0x26e8ec['isTouching'](_0xd5b9bb)||!_0x26e8ec['nodeAfter'])return;const _0x26f493=_0x14abd3['model']['schema'],_0x5e5a44=_0x26e8ec['nodeAfter'];return _0x26f493['isBlock'](_0x5e5a44)&&!_0x26f493['isLimit'](_0x5e5a44)&&_0x26f493['checkChild'](_0x5e5a44,'$text')?{'type':'insertion','content':c(_0x2efabb,'*Insert:*\x20%0',_0x6d627b['getItemLabel'](_0x5e5a44,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f3eee=this['editor'],_0x394f8e=_0x4f3eee['locale'];_0x4f3eee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbb5c82=>{if('formatBlock'!=_0xbb5c82['type'])return;const {data:_0x4d3d8e}=_0xbb5c82;return _0x4d3d8e&&'paragraph'==_0x4d3d8e['commandName']?{'type':'format','content':c(_0x394f8e,'*Change\x20to:*\x20%0',c(_0x394f8e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x56c30,{showActiveMarker:_0xb94051=!0x0}={}){return(_0x428e14,_0x3b943d,_0x538901)=>{const _0x52d808=_0x56c30['plugins']['get']('TrackChangesEditing'),_0x1cde69=_0x3b943d['markerRange']['start'],_0x3b8af7=_0x3b943d['markerRange']['end'],_0xb49ed7=_0x56c30['model']['schema'];if(!_0x1cde69['isTouching'](_0x3b8af7)||!_0x1cde69['nodeAfter'])return;const _0x1f6cdf=_0x1cde69['nodeAfter'];if(_0xb49ed7['isBlock'](_0x1f6cdf)&&!_0xb49ed7['isLimit'](_0x1f6cdf)&&_0xb49ed7['checkChild'](_0x1f6cdf,'$text')){if(!_0x538901['consumable']['consume'](_0x3b943d['markerRange'],_0x428e14['name']))return;const {authorId:_0x32efa0}=_0x52d808['_splitMarkerName'](_0x3b943d['markerName']),_0x19bd3a=_0x538901['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x32efa0}),_0x6c52b3=_0x538901['mapper']['toViewPosition'](_0x3b8af7);_0xb94051&&_0x52d808['activeMarkers']['includes'](_0x3b943d['markerName'])&&_0x538901['writer']['addClass']('ck-suggestion-marker--active',_0x19bd3a),_0x538901['writer']['insert'](_0x6c52b3,_0x19bd3a),_0x538901['mapper']['bindElementToMarker'](_0x19bd3a,_0x3b943d['markerName']);}};}class jt extends _0x2bb590{['afterInit'](){const _0x1ef589=this['editor'];_0x1ef589['commands']['get']('replaceSource')&&_0x1ef589['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2bb590{['afterInit'](){const _0x4650a6=this['editor'];if(!_0x4650a6['plugins']['has']('RemoveFormatEditing'))return;_0x4650a6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x184154=this['editor'];_0x184154['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x374f43=>{if('formatBlock'!=_0x374f43['type']&&'formatInline'!=_0x374f43['type'])return;const {data:_0x3e4bd1}=_0x374f43;return _0x3e4bd1&&'removeFormat'==_0x3e4bd1['commandName']?{'type':'format','content':c(_0x184154['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x2bb590{['afterInit'](){const _0x489cd4=this['editor'];if(!_0x489cd4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4878b8=_0x489cd4['plugins']['get']('TrackChangesEditing');_0x4878b8['enableCommand']('goToPreviousRestrictedEditingException'),_0x4878b8['enableCommand']('goToNextRestrictedEditingException');const _0x18d81c=_0x489cd4['plugins']['get']('RestrictedEditingModeEditing');_0x18d81c['enableCommand']('trackChanges'),_0x18d81c['enableCommand']('acceptSuggestion'),_0x18d81c['enableCommand']('discardSuggestion'),_0x18d81c['enableCommand']('acceptAllSuggestions'),_0x18d81c['enableCommand']('discardAllSuggestions'),_0x18d81c['enableCommand']('acceptSelectedSuggestions'),_0x18d81c['enableCommand']('discardSelectedSuggestions');}}class It extends _0x2bb590{['afterInit'](){const _0x2c2e1a=this['editor'];if(!_0x2c2e1a['plugins']['has']('ShiftEnter'))return;const _0x30b6dc=_0x2c2e1a['plugins']['get']('TrackChangesEditing');_0x30b6dc['enableCommand']('shiftEnter'),_0x2c2e1a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2c2e1a),{'priority':'high'}),_0x2c2e1a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2c2e1a),{'priority':'high'}),_0x2c2e1a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x44c7c7,_0x23aad9,_0x216262)=>{_0x216262['options']['showSuggestionHighlights']&&je(_0x2c2e1a,{'showActiveMarker':!0x1})(_0x44c7c7,_0x23aad9,_0x216262);}),_0x30b6dc['descriptionFactory']['registerElementLabel']('softBreak',_0x44ab19=>c(_0x2c2e1a['locale'],'ELEMENT_LINE_BREAK',_0x44ab19));}}function je(_0x4929e4,{showActiveMarker:_0x483b0f=!0x0}={}){return(_0x12787b,_0x259b69,_0x10d840)=>{const _0x2dcfe9=_0x4929e4['plugins']['get']('TrackChangesEditing');if(!_0x10d840['consumable']['test'](_0x259b69['markerRange'],_0x12787b['name']))return;const _0x1c8ff6=_0x4929e4['model'];for(const _0x390290 of _0x259b69['markerRange']['getItems']()){if(!_0x390290['is']('element','softBreak'))continue;const _0x3d9083='deletion'==_0x259b69['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x139a22}=_0x2dcfe9['_splitMarkerName'](_0x259b69['markerName']),_0x9992a5=_0x10d840['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d9083,'data-author-id':_0x139a22}),_0x326b6e=_0x10d840['mapper']['toViewPosition'](_0x1c8ff6['createPositionBefore'](_0x390290));_0x483b0f&&_0x2dcfe9['activeMarkers']['includes'](_0x259b69['markerName'])&&_0x10d840['writer']['addClass']('ck-suggestion-marker--active',_0x9992a5),_0x10d840['writer']['insert'](_0x326b6e,_0x9992a5),_0x10d840['mapper']['bindElementToMarker'](_0x9992a5,_0x259b69['markerName']);}};}class _t extends _0x2bb590{['afterInit'](){const _0x4cfd17=this['editor'],_0x2e06da=_0x4cfd17['model'],_0x419b68=_0x4cfd17['locale'];if(!_0x4cfd17['plugins']['has']('StandardEditingModeEditing'))return;const _0x57555b=_0x4cfd17['plugins']['get']('TrackChangesEditing'),_0x4e1468='restrictedEditingException',_0x2717d6=_0x4cfd17['commands']['get'](_0x4e1468);_0x57555b['enableCommand'](_0x4e1468,(_0x14aa28,_0x3da944={})=>{const _0x400694=_0x2e06da['document']['selection'];if(_0x400694['isCollapsed'])return void _0x14aa28(_0x3da944);const _0x58c4b0=void 0x0!==_0x3da944['forceValue']?_0x3da944['forceValue']:!_0x2717d6['value'];_0x2e06da['change'](()=>{const _0x40965f=Array['from'](_0x400694['getRanges']());for(const _0x13f0fb of _0x40965f){const _0x24cc04=_0x58c4b0?[_0x13f0fb]:io(_0x4e1468,_0x13f0fb,_0x2e06da);for(const _0x283877 of _0x24cc04)_0x57555b['markInlineFormat'](_0x283877,{'commandName':_0x4e1468,'commandParams':[{'forceValue':_0x58c4b0}]});}});}),_0x57555b['descriptionFactory']['registerDescriptionCallback'](_0x5e70ae=>{if('formatBlock'!=_0x5e70ae['type']&&'formatInline'!=_0x5e70ae['type'])return;const {data:_0xf259a1}=_0x5e70ae;return _0xf259a1&&_0xf259a1['commandName']==_0x4e1468?_0xf259a1['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x419b68,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x419b68,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x2bb590{['afterInit'](){const _0x5bbfe6=this['editor'];if(!_0x5bbfe6['plugins']['has']('Style')||!_0x5bbfe6['plugins']['has']('DataSchema'))return;const _0x3766cf=_0x5bbfe6['plugins']['get']('TrackChangesEditing'),_0x4dbb52=_0x5bbfe6['locale'],_0x5382d9=_0x5bbfe6['config']['get']('style')||{},_0x1367cf=_0x5bbfe6['plugins']['get']('GeneralHtmlSupport'),_0x28f498=_0x5bbfe6['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5bbfe6['plugins']['get']('DataSchema'),_0x5382d9['definitions']);_0x3766cf['enableDefaultAttributesIntegration']('style');const _0x2a0f5f=new Set();for(const _0x3fbf93 of _0x28f498['block']){const _0x2ef20b=_0x1367cf['getGhsAttributeNameForElement'](_0x3fbf93['element']);_0x2a0f5f['add'](_0x2ef20b);}const _0x3d88bf=new Set();for(const _0x223cee of _0x28f498['inline']){const _0x8c1301=_0x1367cf['getGhsAttributeNameForElement'](_0x223cee['element']);_0x3d88bf['add'](_0x8c1301);for(const _0x529bc7 of _0x223cee['ghsAttributes'])_0x3d88bf['add'](_0x529bc7);}for(const _0x10e26f of _0x2a0f5f)_0x3766cf['registerBlockAttribute'](_0x10e26f),_0x3766cf['descriptionFactory']['registerAttributeLabel'](_0x10e26f,c(_0x4dbb52,'FORMAT_STYLE'));for(const _0x3c5cc6 of _0x3d88bf)_0x3766cf['registerInlineAttribute'](_0x3c5cc6),_0x3766cf['descriptionFactory']['registerAttributeLabel'](_0x3c5cc6,c(_0x4dbb52,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f515a=this['editor'],_0x548fbe=_0x2f515a['locale'];_0x2f515a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19df4e=>{if('formatBlock'!=_0x19df4e['type']&&'formatInline'!=_0x19df4e['type'])return;const {data:_0x20c646}=_0x19df4e;return _0x20c646&&'style'===_0x20c646['commandName']?_0x20c646['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x548fbe,'*Set\x20format:*\x20%0',_0x20c646['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x548fbe,'*Remove\x20format:*\x20%0',_0x20c646['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x2bb590{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5797b7){super(_0x5797b7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x522c32=this['editor'],_0x128782=_0x522c32['model']['document']['selection'];if(!_0x522c32['plugins']['has']('TableEditing'))return;const _0x5ec0cf=_0x522c32['locale'],_0x726ccb=_0x522c32['plugins']['get']('TrackChangesEditing'),_0x1f9859=_0x522c32['plugins']['get']('TableUtils');_0x726ccb['descriptionFactory']['registerElementLabel']('table',_0x5eea06=>c(_0x5ec0cf,'ELEMENT_TABLE',_0x5eea06)),this['_setupColumnsRowsFixing'](),_0x726ccb['enableCommand']('insertTable'),_0x726ccb['enableCommand']('selectTableRow'),_0x726ccb['enableCommand']('selectTableColumn');for(const _0x202cd1 of['insertTableRowAbove','insertTableRowBelow']){const _0xa6e922=_0x522c32['commands']['get'](_0x202cd1);_0x726ccb['enableCommand'](_0x202cd1,_0x9f3e6c=>{_0x522c32['model']['change'](_0x4ad85b=>{_0x9f3e6c();const _0x4dcc29='above'===_0xa6e922['order'],_0x11c56a=_0x1f9859['getSelectionAffectedTableCells'](_0x128782),_0x30250f=_0x1f9859['getRowIndexes'](_0x11c56a),_0x2c3126=_0x4dcc29?_0x30250f['first']-0x1:_0x30250f['last']+0x1,_0x2d02c8=_0x11c56a[0x0]['findAncestor']('table'),_0x59bb21=_0x1f9859['createTableWalker'](_0x2d02c8,{'startRow':_0x2c3126,'endRow':_0x2c3126}),_0x2ebc49=Array['from'](_0x59bb21)['map'](_0x44ce0f=>_0x4ad85b['createRangeOn'](_0x44ce0f['cell']));_0x726ccb['markMultiRangeInsertion'](_0x2ebc49,'tableRow');});});}for(const _0x32bd26 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1744f9=_0x522c32['commands']['get'](_0x32bd26);_0x726ccb['enableCommand'](_0x32bd26,_0x5017a4=>{_0x522c32['model']['change'](_0x50dd77=>{_0x5017a4();const _0x3b81c1='left'===_0x1744f9['order'],_0x298f57=_0x1f9859['getSelectionAffectedTableCells'](_0x128782),_0x5633aa=_0x1f9859['getColumnIndexes'](_0x298f57),_0x59bf1e=_0x3b81c1?_0x5633aa['first']-0x1:_0x5633aa['last']+0x1,_0x24a642=_0x298f57[0x0]['findAncestor']('table'),_0xfd7b56=_0x1f9859['createTableWalker'](_0x24a642,{'startRow':0x0,'column':_0x59bf1e,'includeAllSlots':!0x1}),_0x1df2b1=Array['from'](_0xfd7b56)['map'](_0x315acd=>_0x50dd77['createRangeOn'](_0x315acd['cell']));_0x726ccb['markMultiRangeInsertion'](_0x1df2b1,'tableColumn');});});}for(const _0x42ad40 of['removeTableRow','removeTableColumn']){const _0x305a17=_0x42ad40['substr'](0xb),_0x2b7f19=_0x305a17['toLowerCase'](),_0x1e393d=_0x2b7f19['substr'](0x0,0x3)+'span',_0x1fe65f='table'+_0x305a17,_0x416afe='min'+_0x305a17,_0x15f311='max'+_0x305a17;_0x726ccb['enableCommand'](_0x42ad40,()=>{_0x522c32['model']['change'](_0x315f53=>{const _0x18b6c3=_0x1f9859['getSelectionAffectedTableCells'](_0x128782),_0x2c8b24=_0x18b6c3[0x0]['findAncestor']('table');let _0x59ab45;if('removeTableRow'==_0x42ad40){const _0x11df7f=_0x1f9859['getRowIndexes'](_0x18b6c3);_0x59ab45={'startRow':_0x11df7f['first'],'endRow':_0x11df7f['last'],'includeAllSlots':!0x0};}else{const _0x461034=_0x1f9859['getColumnIndexes'](_0x18b6c3);_0x59ab45={'startColumn':_0x461034['first'],'endColumn':_0x461034['last'],'includeAllSlots':!0x0};}const _0x15e4b0=_0x1f9859['createTableWalker'](_0x2c8b24,_0x59ab45),_0x1cf65a=Array['from'](_0x15e4b0)['map'](({cell:_0x424d87})=>_0x424d87),_0x21940c=Ne(_0x1cf65a['filter'](_0x58bb61=>_0x58bb61['hasAttribute'](_0x1e393d))),_0x6873e8=Ne(_0x1cf65a['filter'](_0x334e83=>!_0x334e83['hasAttribute'](_0x1e393d)))['map'](_0x46609e=>_0x315f53['createRangeOn'](_0x46609e)),_0x607cb0=_0x726ccb['markMultiRangeDeletion'](_0x6873e8,_0x1fe65f);if(_0x607cb0&&('tableRow'==_0x607cb0['subType']||'tableColumn'==_0x607cb0['subType'])){const _0x472e5d=this['_getSuggestionCoords'](_0x607cb0);for(const _0x4fc275 of _0x21940c){const _0x2bd024=_0x315f53['createRangeOn'](_0x4fc275),_0x34cfad=_0x1f9859['getCellLocation'](_0x4fc275),_0x352242=_0x4fc275['getAttribute'](_0x1e393d)-0x1,_0x2a6777=_0x472e5d[_0x416afe],_0x57a66f=_0x472e5d[_0x15f311];_0x2a6777<=_0x34cfad[_0x2b7f19]&&_0x34cfad[_0x2b7f19]+_0x352242<=_0x57a66f&&_0x607cb0['addRange'](_0x2bd024);}}});});}function _0x2c3812(_0x49cc54){const _0x255881=Array['from'](_0x128782['getRanges']())['map'](_0x1b4b99=>_0x1ffa61['fromRange'](_0x1b4b99));_0x522c32['model']['change'](_0x521391=>{const _0x167a9c=_0x521391['batch'];_0x49cc54=_0x49cc54['filter'](_0xda77aa=>'$graveyard'!=_0xda77aa['root']['rootName']),_0x521391['setSelection'](_0x49cc54),_0x522c32['commands']['get']('removeTableRow')['refresh'](),_0x522c32['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x522c32['model']['enqueueChange'](()=>{_0x522c32['model']['enqueueChange'](_0x167a9c,_0x23d8d7=>{const _0x5f5360=_0x255881['filter'](_0xc581f4=>'$graveyard'!=_0xc581f4['root']['rootName']);_0x5f5360['length']>0x0&&_0x23d8d7['setSelection'](_0x5f5360);for(const _0xe129f0 of _0x255881)_0xe129f0['detach']();});});});}function _0x1ea1a2(_0x4f9e1b){_0x522c32['model']['change'](_0x300c00=>{const _0x21648b=Array['from'](_0x128782['getRanges']())['map'](_0x48fe5e=>_0x1ffa61['fromRange'](_0x48fe5e)),_0x42d76c=[];for(const _0x49a2e6 of _0x4f9e1b)for(const _0x4690e0 of _0x49a2e6['getItems']({'shallow':!0x0}))_0x42d76c['push'](_0x4690e0);for(const _0x54a266 of _0x42d76c)'$graveyard'!=_0x54a266['root']['rootName']&&(_0x300c00['setSelection'](_0x300c00['createPositionAt'](_0x54a266,0x0)),_0x522c32['commands']['get']('removeTableColumn')['refresh'](),_0x522c32['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x44fb09=_0x21648b['filter'](_0x4893e7=>'$graveyard'!=_0x4893e7['root']['rootName']);_0x44fb09['length']>0x0&&_0x300c00['setSelection'](_0x44fb09);for(const _0x83b82c of _0x21648b)_0x83b82c['detach']();});}function _0x3f8d96(_0x4c8b35,_0xf58dc4){return _0xf58dc4['every'](_0x2bb4d7=>_0x4c8b35['some'](_0x2b25b8=>_0x2b25b8['end']['isEqual'](_0x2bb4d7['start'])||_0x2bb4d7['end']['isEqual'](_0x2b25b8['start'])));}function _0x18cd88(_0x3b6579,_0x3517fe){return!_0x3b6579['some'](_0x39c96a=>_0x3517fe['some'](_0x42e34a=>_0x39c96a['isIntersecting'](_0x42e34a)))&&_0x3b6579['some'](_0x39634a=>_0x3517fe['some'](_0xf34c00=>_0x39634a['end']['isTouching'](_0xf34c00['start'])));}_0x522c32['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x222a27,_0xe2a297,_0x2488ec)=>{if(!_0x2488ec['options']['showSuggestionHighlights'])return;const _0x553b38=_0xe2a297['item'];if(!_0x553b38)return;const _0x3866c5=_0x2488ec['mapper']['toViewElement'](_0x553b38);function _0xe60d05(_0x55a4b7){return Array['isArray'](_0x55a4b7)?_0x55a4b7:[_0x55a4b7];}_0x3866c5&&'tableCell'===_0x553b38['name']&&_0x2f1c8b(_0x3866c5,_0x2488ec['writer'],(_0x33a8d3,_0x3c05d5,_0x514363)=>_0x514363['addClass'](_0xe60d05(_0x3c05d5['classes']),_0x33a8d3),(_0x74c129,_0x3b32c1,_0x446894)=>_0x446894['removeClass'](_0xe60d05(_0x3b32c1['classes']),_0x74c129));},{'priority':'highest'}),_0x726ccb['descriptionFactory']['registerDescriptionCallback'](_0x4cd3a1=>{if('insertion'!=_0x4cd3a1['type']&&'deletion'!=_0x4cd3a1['type'])return;const _0x44bce0=_0x4cd3a1['getContainedElement']();if(null!=_0x44bce0&&_0x44bce0['is']('element','table')){if('insertion'==_0x4cd3a1['type']){const _0x49deb4=_0x4cd3a1['getItems']()['filter'](_0x218f44=>_0x218f44['is']('$textProxy'))['map'](_0x3db002=>_0x3db002['data']);if(_0x49deb4['length'])return{'type':'insertion','content':c(_0x5ec0cf,'*Insert:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x49deb4['join']('\x20')+'\x22'))};}if('deletion'==_0x4cd3a1['type']){const _0x5498db=_0x4cd3a1['getItems']()['filter'](_0x4a9011=>_0x4a9011['is']('$textProxy'))['map'](_0x2200c4=>_0x2200c4['data']);if(_0x5498db['length'])return{'type':'deletion','content':c(_0x5ec0cf,'*Remove:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5498db['join']('\x20')+'\x22'))};}}}),_0x726ccb['descriptionFactory']['registerDescriptionCallback'](_0x463a2f=>{if('tableRow'==_0x463a2f['subType']){const _0xe82c52=_0x463a2f['getItems']()['filter'](_0x2a8374=>_0x2a8374['is']('$textProxy'))['map'](_0x4bab6b=>_0x4bab6b['data']),_0x512408=this['_getSuggestionCoords'](_0x463a2f),_0xef2488=_0x512408['maxRow']-_0x512408['minRow']+0x1;if('insertion'==_0x463a2f['type'])return _0xe82c52['length']?{'type':'insertion','content':c(_0x5ec0cf,'*Insert:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xef2488,'\x22'+_0xe82c52['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x5ec0cf,'*Insert:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_ROW',_0xef2488))};if('deletion'==_0x463a2f['type'])return _0xe82c52['length']?{'type':'deletion','content':c(_0x5ec0cf,'*Remove:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xef2488,'\x22'+_0xe82c52['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x5ec0cf,'*Remove:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_ROW',_0xef2488))};}if('tableColumn'==_0x463a2f['subType']){const _0x3f9d05=_0x463a2f['getItems']()['filter'](_0x4a1cd5=>_0x4a1cd5['is']('$textProxy'))['map'](_0x7a3e1f=>_0x7a3e1f['data']),_0x2d193f=this['_getSuggestionCoords'](_0x463a2f),_0x3e1de9=_0x2d193f['maxColumn']-_0x2d193f['minColumn']+0x1;if('insertion'==_0x463a2f['type'])return _0x3f9d05['length']?{'type':'insertion','content':c(_0x5ec0cf,'*Insert:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3e1de9,'\x22'+_0x3f9d05['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x5ec0cf,'*Insert:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_COLUMN',_0x3e1de9))};if('deletion'==_0x463a2f['type'])return _0x3f9d05['length']?{'type':'deletion','content':c(_0x5ec0cf,'*Remove:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3e1de9,'\x22'+_0x3f9d05['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x5ec0cf,'*Remove:*\x20%0',c(_0x5ec0cf,'ELEMENT_TABLE_COLUMN',_0x3e1de9))};}}),_0x726ccb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2c3812),_0x726ccb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2c3812),_0x726ccb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1ea1a2),_0x726ccb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1ea1a2),_0x726ccb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3f8d96),_0x726ccb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3f8d96),_0x726ccb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x18cd88),_0x726ccb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x18cd88);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4110db=this['editor'],_0x598b40=_0x4110db['model']['document']['selection'];return(_0x519eb9,_0x5024cb)=>{_0x4110db['model']['change'](_0x436e94=>{const {commandName:_0x5ccddf,commandParams:_0x408ffa}=_0x5024cb;let _0x42baa1=_0x519eb9[0x0]['end']['nodeBefore'];_0x408ffa&&_0x408ffa[0x0]&&!0x1===_0x408ffa[0x0]['forceValue']&&(_0x42baa1=_0x519eb9[0x0]['start']['nodeAfter']);const _0x47f371=_0x436e94['createRangeIn'](_0x42baa1);if('$graveyard'==_0x47f371['root']['rootName'])return;const _0x43f5f6=Array['from'](_0x598b40['getRanges']())['map'](_0xc077d1=>_0x1ffa61['fromRange'](_0xc077d1));_0x436e94['setSelection'](_0x47f371),_0x4110db['commands']['get'](_0x5ccddf)['refresh'](),_0x408ffa['push']({'forceDefaultExecution':!0x0}),_0x4110db['execute'](_0x5ccddf,..._0x408ffa);const _0x3669f4=_0x43f5f6['filter'](_0x26554b=>'$graveyard'!=_0x26554b['root']['rootName']);_0x3669f4['length']>0x0&&_0x436e94['setSelection'](_0x3669f4);for(const _0x343813 of _0x43f5f6)_0x343813['detach']();});};}['_getCoordsForCells'](_0x61f3f){const _0x11d943=this['editor']['plugins']['get']('TableUtils');let _0x42f5df=Number['MAX_SAFE_INTEGER'],_0x5a5d9f=Number['MIN_SAFE_INTEGER'],_0x11c06a=Number['MAX_SAFE_INTEGER'],_0x572662=Number['MIN_SAFE_INTEGER'];for(const _0x4a3e6c of _0x61f3f){if('$graveyard'==_0x4a3e6c['root']['rootName'])continue;const {row:_0x408b94,column:_0x39310d}=_0x11d943['getCellLocation'](_0x4a3e6c),_0x527838=_0x4a3e6c['hasAttribute']('rowspan')?_0x4a3e6c['getAttribute']('rowspan')-0x1:0x0,_0x49ca93=_0x4a3e6c['hasAttribute']('colspan')?_0x4a3e6c['getAttribute']('colspan')-0x1:0x0;_0x42f5df=_0x408b94<_0x42f5df?_0x408b94:_0x42f5df,_0x5a5d9f=_0x408b94+_0x527838>_0x5a5d9f?_0x408b94+_0x527838:_0x5a5d9f,_0x11c06a=_0x39310d<_0x11c06a?_0x39310d:_0x11c06a,_0x572662=_0x39310d+_0x49ca93>_0x572662?_0x39310d+_0x49ca93:_0x572662;}return{'minRow':_0x42f5df,'maxRow':_0x5a5d9f,'minColumn':_0x11c06a,'maxColumn':_0x572662};}['_setupColumnsRowsFixing'](){const _0xde1025=this['editor'],_0x4448f8=_0xde1025['plugins']['get']('TrackChangesEditing'),_0x1c1f8f=_0xde1025['plugins']['get']('TableUtils');_0xde1025['model']['document']['on']('change:data',()=>{const _0x410069=Array['from'](_0xde1025['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f922c,data:_0x1c8245}of _0x410069){const {group:_0x1d3c62,id:_0x2889be,subType:_0x429f7a}=_0x4448f8['_splitMarkerName'](_0x3f922c);if('suggestion'!=_0x1d3c62)continue;if(null!=_0x1c8245['oldRange'])continue;const _0x503dec=_0x4448f8['getSuggestion'](_0x2889be);this['_tablePostFixingSubtypes']['includes'](_0x429f7a)&&this['_tableSuggestions']['add'](_0x503dec);}},{'priority':'low'});const _0x2e1210=(_0x355a87,_0x1ab776)=>{let _0x27063f=!0x1;const _0x1b4334=_0x1ab776['createRangeOn'](_0x355a87),_0x1ab3be=_0x355a87['findAncestor']('table'),_0x3c8032=_0x1c1f8f['getCellLocation'](_0x355a87);for(const _0xc25bb4 of this['_tableSuggestions']){const _0x3dbcdb=_0xc25bb4['subType'],_0x322cc8=_0x3dbcdb['startsWith']('tablePaste'),_0x1f86e0=_0x3dbcdb['substr'](_0x322cc8?0xa:0x5),_0x2de706=_0x1f86e0['toLowerCase'](),_0x19ef23=_0x2de706['substr'](0x0,0x3)+'span',_0x72d34d='min'+_0x1f86e0,_0x11eea9='max'+_0x1f86e0;if(!_0xc25bb4['isInContent'])continue;if(_0x1ab3be!=_0xc25bb4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xc25bb4['isIntersectingWithRange'](_0x1b4334))continue;const _0x987210=_0x355a87['hasAttribute'](_0x19ef23)?_0x355a87['getAttribute'](_0x19ef23)-0x1:0x0,_0x3eff39=this['_getSuggestionCoords'](_0xc25bb4),_0x5d4716=_0x3eff39[_0x72d34d],_0x37c298=_0x3eff39[_0x11eea9];_0x5d4716<=_0x3c8032[_0x2de706]&&_0x3c8032[_0x2de706]+_0x987210<=_0x37c298&&(_0xc25bb4['addRange'](_0x1b4334),_0x27063f=!0x0);}return _0x27063f;};_0xde1025['model']['document']['registerPostFixer'](_0x45a7a4=>{let _0x33f39e=!0x1;for(const _0x26dd6a of _0xde1025['model']['document']['differ']['getChanges']())if('insert'==_0x26dd6a['type']){if('tableRow'==_0x26dd6a['name']){for(const _0x1bf05b of _0x26dd6a['position']['nodeAfter']['getChildren']())_0x33f39e=_0x33f39e||_0x2e1210(_0x1bf05b,_0x45a7a4);}else'tableCell'==_0x26dd6a['name']&&(_0x33f39e=_0x33f39e||_0x2e1210(_0x26dd6a['position']['nodeAfter'],_0x45a7a4));}return _0x33f39e;});}['_getSuggestionCoords'](_0x349515){return this['_getCoordsForCells'](_0x349515['getRanges']()['map'](_0x42adfa=>_0x42adfa['start']['nodeAfter']));}}function Ne(_0x1f5cd0){return Array['from'](new Set(_0x1f5cd0)['values']());}class Nt extends _0x2bb590{static get['requires'](){return[Ct];}['afterInit'](){const _0x51aa70=this['editor'],_0xccbf14=_0x51aa70['model']['document']['selection'],_0x110625=_0x51aa70['locale'];if(!_0x51aa70['plugins']['has']('TableEditing'))return;const _0x5d1f00=_0x51aa70['plugins']['get']('TrackChangesEditing'),_0x18d291=_0x51aa70['plugins']['get']('TableUtils'),_0x3428ed=_0x51aa70['plugins']['get'](Ct);_0x3428ed['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5d1f00['enableCommand']('mergeTableCells',()=>{const _0x28a6de=_0x18d291['getSelectionAffectedTableCells'](_0x51aa70['model']['document']['selection']);_0x51aa70['model']['change'](()=>{_0x5d1f00['markMultiRangeBlockFormat'](_0x28a6de,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x51aa70['commands']['get']('mergeTableCells')['on']('execute',(_0x1d8896,_0x22604f)=>{_0x51aa70['commands']['get']('trackChanges')['value']&&(_0x22604f['length']>0x0&&_0x22604f[_0x22604f['length']-0x1]&&_0x22604f[_0x22604f['length']-0x1]['forceDefaultExecution']||_0x5d1f00['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1d8896['stop']());},{'priority':'highest'});for(const _0x17e1bb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1353b7=_0x51aa70['commands']['get'](_0x17e1bb);_0x5d1f00['enableCommand'](_0x17e1bb,()=>{const _0x138af3=_0x51aa70['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x48d29e=>_0x48d29e['is']('element','tableCell')),_0x331cb5=_0x1353b7['value'];_0x51aa70['model']['change'](()=>{_0x5d1f00['markMultiRangeBlockFormat']([_0x138af3,_0x331cb5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x9a1e1d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x15707f=_0x51aa70['commands']['get'](_0x9a1e1d);_0x5d1f00['enableCommand'](_0x9a1e1d,()=>{const _0x13ea58=_0x18d291['getSelectionAffectedTableCells'](_0x51aa70['model']['document']['selection'])[0x0],_0x20a7da=_0x13ea58['findAncestor']('table'),{column:_0x568448,row:_0x5c9904}=_0x18d291['getCellLocation'](_0x13ea58);let _0x220b1a=[];if('horizontally'==_0x15707f['direction']){const _0x365bd2=_0x18d291['createTableWalker'](_0x20a7da,{'startRow':_0x5c9904,'endRow':_0x5c9904,'includeAllSlots':!0x0});_0x220b1a=Array['from'](_0x365bd2)['map'](_0x499a90=>_0x499a90['cell']);}else{const _0x4532cd=_0x18d291['createTableWalker'](_0x20a7da,{'column':_0x568448,'includeAllSlots':!0x0});_0x220b1a=Array['from'](_0x4532cd)['map'](_0x2a2dac=>_0x2a2dac['cell']);}_0x51aa70['model']['change'](_0x235ad1=>{_0x5d1f00['markBlockFormat'](_0x235ad1['createRangeOn'](_0x13ea58),{'commandName':_0x9a1e1d,'commandParams':[]},_0x220b1a,_0x9a1e1d);});});}_0x5d1f00['descriptionFactory']['registerDescriptionCallback'](_0xee0975=>{if('formatBlock'!=_0xee0975['type']&&'formatInline'!=_0xee0975['type'])return;const {data:_0x20cde5}=_0xee0975;return _0x20cde5&&'mergeTableCells'==_0x20cde5['commandName']?{'type':'format','content':c(_0x110625,'*Merge\x20cells*')}:void 0x0;}),_0x5d1f00['descriptionFactory']['registerDescriptionCallback'](_0x263e15=>{if('formatBlock'!=_0x263e15['type']&&'formatInline'!=_0x263e15['type'])return;const {data:_0x5b23d3}=_0x263e15;return _0x5b23d3?'splitTableCellVertically'==_0x5b23d3['commandName']?{'type':'format','content':c(_0x110625,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5b23d3['commandName']?{'type':'format','content':c(_0x110625,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3473dd=_0x3428ed['_acceptFormatSuggestionCallbackFactory']();for(const _0x173a9a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5d1f00['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x173a9a,'accept',_0x3473dd);for(const _0x1041a2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5d1f00['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1041a2,'accept',_0x3473dd);_0x5d1f00['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4abb6d=>{_0x51aa70['model']['change'](_0x2fbfae=>{const _0xfbeab=Array['from'](_0xccbf14['getRanges']())['map'](_0x33499a=>_0x1ffa61['fromRange'](_0x33499a));_0x2fbfae['setSelection'](_0x4abb6d),_0x51aa70['commands']['get']('mergeTableCells')['refresh'](),_0x51aa70['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2ed8dc=_0xfbeab['filter'](_0x4a8bc0=>'$graveyard'!=_0x4a8bc0['root']['rootName']);_0x2ed8dc['length']>0x0&&_0x2fbfae['setSelection'](_0x2ed8dc);for(const _0x4c0b2b of _0xfbeab)_0x4c0b2b['detach']();});});for(const _0x7c06f9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2cfb40=_0x51aa70['commands']['get'](_0x7c06f9);_0x2cfb40['on']('set:isEnabled',(_0x58610a,_0x196984,_0x238549)=>{if(_0x238549){const _0x2ebb51=_0x51aa70['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x199ad9=>_0x199ad9['is']('element','tableCell'));this['_areMergableCells'](_0x2cfb40['value'],_0x2ebb51)||(_0x58610a['return']=!0x1,_0x58610a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x36bcd4=this['editor']['commands']['get']('mergeTableCells'),_0x107ba4=this['editor']['plugins']['get']('TableUtils');if(!_0x36bcd4['isEnabled'])return!0x1;const _0x303468=_0x107ba4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1d5e2e of _0x303468)for(const _0x361a8c of _0x303468)if(_0x1d5e2e!=_0x361a8c&&!this['_areMergableCells'](_0x1d5e2e,_0x361a8c))return!0x1;return!0x0;}['_areMergableCells'](_0x12657d,_0x5cc18d){const _0x493f22=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4258e7=this['editor']['model']['createRangeOn'](_0x12657d),_0x185453=this['editor']['model']['createRangeOn'](_0x5cc18d),_0x2c1bb5=new Set(),_0x128678=new Set();for(const _0x199ee9 of _0x493f22['getSuggestions']())if(('insertion'==_0x199ee9['type']||'deletion'==_0x199ee9['type']||'mergeTableCells'==_0x199ee9['subType'])&&_0x199ee9['isInContent']){for(const _0x456ca4 of _0x199ee9['getRanges']())_0x456ca4['containsRange'](_0x4258e7,!0x0)&&_0x2c1bb5['add'](_0x199ee9['type']+':'+_0x199ee9['author']['id']),_0x456ca4['containsRange'](_0x185453,!0x0)&&_0x128678['add'](_0x199ee9['type']+':'+_0x199ee9['author']['id']);}if(_0x2c1bb5['size']!=_0x128678['size'])return!0x1;for(const _0x4ff2f6 of _0x2c1bb5)if(!_0x128678['has'](_0x4ff2f6))return!0x1;return!0x0;}}class Dt extends _0x2bb590{static get['requires'](){return[Ct];}['afterInit'](){const _0x571aef=this['editor'];if(!_0x571aef['plugins']['has']('TableEditing'))return;const _0x29de78=_0x571aef['locale'],_0x6a0d7b=_0x571aef['plugins']['get']('TrackChangesEditing');_0x6a0d7b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x6a0d7b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x6a0d7b['registerBlockAttribute']('headingRows'),_0x6a0d7b['registerBlockAttribute']('headingColumns'),_0x6a0d7b['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x29de78,'FORMAT_HEADER_ROW')),_0x6a0d7b['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x29de78,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x26ff37=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc12a74=this['editor']['plugins']['get']('TableUtils'),_0x30c590=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3087f6({showActiveMarker:_0x47ab9e=!0x0,setDataAttribute:_0x1dd799=!0x0}={}){return(_0x5ac270,_0x5eab94,_0xc13486)=>{const {type:_0x1525ee,id:_0x35ec8b}=_0x26ff37['_splitMarkerName'](_0x5eab94['markerName']),_0x457f4c=_0x26ff37['getSuggestion'](_0x35ec8b),_0x5e92ab=_0x457f4c['data'];if('formatBlock'!=_0x457f4c['type']||!_0x5e92ab||'setTableColumnHeader'!=_0x5e92ab['commandName'])return;if(_0x5eab94['item'])return void _0x5ac270['stop']();if(!_0xc13486['consumable']['consume'](_0x5eab94['markerRange'],_0x5ac270['name']))return;const _0x34e8d6=_0x5eab94['markerRange']['start']['nodeAfter'],_0x40915e=_0x5eab94['markerRange']['end']['nodeBefore'],_0x1623e6=_0x34e8d6['parent']['parent'],{column:_0x3be0bd}=_0xc12a74['getCellLocation'](_0x34e8d6),{column:_0x1764a5}=_0xc12a74['getCellLocation'](_0x40915e);for(let _0x219f21=_0x3be0bd;_0x219f21<=_0x1764a5;_0x219f21++){const _0x4a5086=_0xc12a74['createTableWalker'](_0x1623e6,{'column':_0x219f21,'includeAllSlots':!0x1});for(const _0x1d6f6e of _0x4a5086){const _0x165573=_0x1d6f6e['cell'],_0x1ce457=_0xc13486['mapper']['toViewElement'](_0x165573);_0xc13486['writer']['addClass']('ck-suggestion-marker-'+_0x1525ee,_0x1ce457),_0x1dd799&&_0xc13486['writer']['setAttribute']('data-suggestion',_0x35ec8b,_0x1ce457),_0xc13486['mapper']['bindElementToMarker'](_0x1ce457,_0x5eab94['markerName']),_0x47ab9e&&(_0x26ff37['activeMarkers']['includes'](_0x5eab94['markerName'])?_0xc13486['writer']['addClass']('ck-suggestion-marker--active',_0x1ce457):_0xc13486['writer']['removeClass']('ck-suggestion-marker--active',_0x1ce457));}}};}_0x26ff37['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x30c590),_0x26ff37['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x30c590),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3087f6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1eee2b,_0x259437,_0x4432ab)=>{_0x4432ab['options']['showSuggestionHighlights']&&_0x3087f6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1eee2b,_0x259437,_0x4432ab);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1ac48c,_0x109fe9,_0x5752bf)=>{const {type:_0x2a318a,id:_0x2befcb}=_0x26ff37['_splitMarkerName'](_0x109fe9['markerName']),_0x4b28ba=_0x26ff37['getSuggestion'](_0x2befcb),_0x103182=_0x4b28ba['data'];if('formatBlock'!=_0x4b28ba['type']||!_0x103182||'setTableColumnHeader'!=_0x103182['commandName'])return;const _0x4dee17=_0x5752bf['mapper']['markerNameToElements'](_0x109fe9['markerName']);if(_0x4dee17){for(const _0x2bb2fc of _0x4dee17)_0x5752bf['writer']['removeClass']('ck-suggestion-marker-'+_0x2a318a,_0x2bb2fc),_0x5752bf['writer']['removeClass']('ck-suggestion-marker--active',_0x2bb2fc),_0x5752bf['writer']['removeAttribute']('data-suggestion',_0x2bb2fc),_0x5752bf['mapper']['unbindElementFromMarkerName'](_0x2bb2fc,_0x109fe9['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x472152=this['editor'],_0x2092a4=_0x472152['locale'];function _0x5cab9d(_0x146494){return{'type':'format','content':c(_0x2092a4,'*Format:*\x20%0',_0x146494)};}_0x472152['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4aa1f6=>{if('formatBlock'!=_0x4aa1f6['type'])return;const {data:_0x41cce4}=_0x4aa1f6;if(_0x41cce4){if('setTableRowHeader'==_0x41cce4['commandName']){const _0x1a527d=_0x41cce4['commandParams'][0x0]['forceValue'];return _0x5cab9d(c(_0x2092a4,_0x1a527d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x41cce4['commandName']){const _0x4ef3d2=_0x41cce4['commandParams'][0x0]['forceValue'];return _0x5cab9d(c(_0x2092a4,_0x4ef3d2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x2bb590{['afterInit'](){const _0x20b04d=this['editor'],_0x46b8cd=_0x20b04d['locale'],_0x562a18=_0x20b04d['plugins']['get']('TrackChangesEditing');function _0x1816e4(_0x443ff4){return{'type':'format','content':''+c(_0x46b8cd,'*Set\x20table\x20type:*\x20%0',_0x443ff4)};}_0x20b04d['plugins']['has']('TableLayout')&&(_0x562a18['enableCommand']('insertTableLayout'),_0x562a18['enableDefaultAttributesIntegration']('tableType'),_0x562a18['registerBlockAttribute']('tableType'),_0x562a18['descriptionFactory']['registerElementLabel'](_0x550990=>_0x550990['is']('element','table')&&'layout'===_0x550990['getAttribute']('tableType'),_0x33c93a=>c(_0x46b8cd,'ELEMENT_LAYOUT_TABLE',_0x33c93a)),_0x562a18['descriptionFactory']['registerDescriptionCallback'](_0x5a9add=>{const {data:_0x419c8b}=_0x5a9add;if(_0x419c8b&&'tableType'==_0x419c8b['key'])switch(_0x419c8b['newValue']){case'layout':return _0x1816e4(c(_0x46b8cd,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1816e4(c(_0x46b8cd,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x462fb4=>[_0x462fb4,null]));class $t extends _0x2bb590{static get['requires'](){return[Ct];}['afterInit'](){const _0x20fdb1=this['editor'];if(!_0x20fdb1['plugins']['has']('TableClipboard'))return;const _0x3f9826=_0x20fdb1['plugins']['get']('TrackChangesEditing'),_0x574e85=_0x20fdb1['plugins']['get']('TableUtils'),_0x14da41=_0x20fdb1['plugins']['get'](Ct),_0x3a5beb=_0x20fdb1['plugins']['get']('TableClipboard'),_0x529804=_0x20fdb1['plugins']['get']('TableSelection'),_0x25974c=_0x20fdb1['plugins']['get'](_0xcb2e10);_0x14da41['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x20fdb1['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x20fdb1['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4ea661=null,_0x206585=!0x1;_0x25974c['on']('contentInsertion',(_0xae5ad6,_0xcaf540)=>{_0x206585='paste'===_0xcaf540['method'];}),_0x20fdb1['model']['on']('insertContent',(_0xf416cb,_0x123fc1)=>{if(!_0x206585&&null===_0x529804['getSelectedTableCells']())return;const [_0x553361,_0x2c0fe9]=_0x123fc1,_0x3a0722=_0x123fc1[_0x123fc1['length']-0x1];_0x3a0722&&_0x3a0722['forceDefaultExecution']||_0x3f9826['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x6b8d66,_0x26dc81,_0x276d44,_0xf9c2c5,_0x3739a4){if(_0x26dc81&&!_0x26dc81['is']('documentSelection'))return!0x1;const _0x4e93ee=_0x3739a4['getTableIfOnlyTableInContent'](_0x6b8d66,_0x276d44);if(!_0x4e93ee||!De(_0x4e93ee,void 0x0,_0xf9c2c5))return!0x1;const _0x2113cb=_0xf9c2c5['getSelectionAffectedTableCells'](_0x276d44['document']['selection']);if(!_0x2113cb['length'])return!0x1;const _0x2bde71=_0x2113cb[0x0]['findAncestor']('table'),_0x1754a4=_0xf9c2c5['getRowIndexes'](_0x2113cb),_0x278071=_0xf9c2c5['getColumnIndexes'](_0x2113cb),_0x53f8bd={'startRow':_0x1754a4['first'],'endRow':_0x1754a4['last'],'startColumn':_0x278071['first'],'endColumn':_0x278071['last']};return 0x1==_0x2113cb['length']&&(_0x53f8bd['endRow']+=_0xf9c2c5['getRows'](_0x4e93ee)-0x1,_0x53f8bd['endColumn']+=_0xf9c2c5['getColumns'](_0x4e93ee)-0x1),De(_0x2bde71,_0x53f8bd,_0xf9c2c5);}(_0x553361,_0x2c0fe9,_0x20fdb1['model'],_0x574e85,_0x3a5beb)&&(_0xf416cb['stop'](),_0x4ea661={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x20fdb1['model']['change'](()=>{_0x20fdb1['model']['insertContent'](_0x123fc1[0x0],_0x123fc1[0x1],_0x123fc1[0x2],{'forceDefaultExecution':!0x0});const _0x6e25e7=_0xf1d1da(),{rowInsertionRanges:_0x4fa4e4,columnInsertionRanges:_0x1feebb,insertionRanges:_0xa8791f,deletionRanges:_0x2f8fac,cells:_0x3a2cbb}=_0x4ea661;_0x4fa4e4['length']&&_0x3f9826['markMultiRangeInsertion'](_0x4fa4e4,'tablePasteRow',{'tablePasteChainId':_0x6e25e7}),_0x1feebb['length']&&_0x3f9826['markMultiRangeInsertion'](_0x1feebb,'tablePasteColumn',{'tablePasteChainId':_0x6e25e7}),_0xa8791f['length']&&(_0x3f9826['markMultiRangeInsertion'](_0xa8791f,'tablePaste',{'tablePasteChainId':_0x6e25e7,'skipNestingCheck':!0x0}),_0xa8791f['forEach'](_0x61b66=>_0x61b66['detach']?.())),_0x2f8fac['length']&&(_0x3f9826['markMultiRangeDeletion'](_0x2f8fac,'tablePaste',{'tablePasteChainId':_0x6e25e7,'skipNestingCheck':!0x0}),_0x2f8fac['forEach'](_0xf33c0b=>_0xf33c0b['detach']?.()));const _0x44236c=_0x3f9826['markMultiRangeBlockFormat'](_0x3a2cbb['map'](({element:_0xacab36})=>_0xacab36),{'formatGroupId':_0xf1d1da()},[],'tablePasteCell',{'tablePasteChainId':_0x6e25e7});if(_0x44236c){const _0x52b3c2=_0x44236c['getMarkers'](),_0x44834c=[];for(const {element:_0x544f91,attributes:_0x1dbffe}of _0x3a2cbb){if(!_0x1dbffe)continue;const _0x2c9563=_0x20fdb1['model']['createRangeOn'](_0x544f91),_0x2678f6=_0x52b3c2['find'](_0x23b17e=>_0x23b17e['getRange']()['isEqual'](_0x2c9563));_0x2678f6&&_0x44834c['push']([_0x2678f6['name'],_0x1dbffe]);}_0x44834c['length']&&_0x44236c['setAttribute']('markerAttributes',Object['fromEntries'](_0x44834c));}_0x4ea661=null;}));},{'priority':_0x5bb012['high']+0xa}),_0x25974c['on']('contentInsertion',()=>{_0x206585=!0x1;},{'priority':'lowest'}),_0x20fdb1['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xe83edf,_0x31bac7)=>{const [_0x1db3fe,_0x3f87cd,,_0x5f17a5]=_0x31bac7;if(!_0x4ea661)return;_0xe83edf['stop']();const _0x5dd442=_0x1db3fe['cell'],_0xa52da4=_0x3f87cd,_0x3c1059=Ue(_0x5dd442),_0x11ab5f=Ue(_0xa52da4);_0xe83edf['return']=_0x5dd442;let _0x47b43d=null,_0x4e3a8f=null;if(_0x11ab5f||_0x3c1059){if(_0x3c1059&&!_0x11ab5f){_0x5f17a5['remove'](_0x5dd442['getChild'](0x0));for(const _0x470dcd of Array['from'](_0xa52da4['getChildren']()))_0x5f17a5['insert'](_0x470dcd,_0x5dd442,'end');const _0x2ddc44=_0x4ea661['rowInsertionIndexes']['includes'](_0x1db3fe['row']),_0x2b9284=_0x4ea661['columnInsertionIndexes']['includes'](_0x1db3fe['column']);_0x2ddc44||_0x2b9284||(_0x47b43d=_0x1ffa61['fromRange'](_0x5f17a5['createRangeIn'](_0x5dd442)));}else _0x11ab5f&&!_0x3c1059&&(_0x4e3a8f=_0x5f17a5['createRangeIn'](_0x5dd442));}else{const _0x4c4924=_0x5f17a5['createElement']('tableCellSuggestion'),_0x235ffa=_0x5f17a5['createElement']('tableCellSuggestion');_0x5f17a5['wrap'](_0x5f17a5['createRangeIn'](_0x5dd442),_0x235ffa),_0x5f17a5['insert'](_0x4c4924,_0x5dd442,0x0);for(const _0x29a5b0 of Array['from'](_0xa52da4['getChildren']()))_0x5f17a5['insert'](_0x29a5b0,_0x4c4924,'end');_0x47b43d=_0x1ffa61['fromRange'](_0x5f17a5['createRangeOn'](_0x4c4924)),_0x4e3a8f=_0x1ffa61['fromRange'](_0x5f17a5['createRangeOn'](_0x235ffa));}const _0x185d47=Array['from'](_0xa52da4['getAttributes']())['filter'](([_0xc358e9])=>xe['includes'](_0xc358e9));_0x4ea661['cells']['push']({'element':_0x5dd442,'attributes':_0x185d47['length']?Object['fromEntries'](_0x185d47):null}),_0x47b43d&&_0x4ea661['insertionRanges']['push'](_0x47b43d),_0x4e3a8f&&_0x4ea661['deletionRanges']['push'](_0x4e3a8f);},{'priority':'high'}),_0x574e85['on']('insertColumns',(_0x534b9e,_0x8aebaa)=>{const [_0x352f5e,_0x2b2d74={}]=_0x8aebaa;if(!_0x4ea661)return;const _0x7c351=_0x2b2d74['at']||0x0,_0x5403f1=_0x2b2d74['columns']||0x1;_0x4ea661['columnInsertionIndexes']=new Array(_0x5403f1)['fill'](_0x7c351)['map']((_0x5d7b8d,_0x4df1f5)=>_0x5d7b8d+_0x4df1f5);for(const {cell:_0x157e17}of _0x574e85['createTableWalker'](_0x352f5e,{'startColumn':_0x7c351,'endColumn':_0x7c351+_0x5403f1-0x1}))_0x4ea661['columnInsertionRanges']['push'](_0x20fdb1['model']['createRangeOn'](_0x157e17));},{'priority':'low'}),_0x574e85['on']('insertRows',(_0x1604de,_0x3d88ea)=>{const [_0x5f39cd,_0x3bfe74={}]=_0x3d88ea;if(!_0x4ea661)return;const _0x37c402=_0x3bfe74['at']||0x0,_0x3530a6=_0x3bfe74['rows']||0x1;_0x4ea661['rowInsertionIndexes']=new Array(_0x3530a6)['fill'](_0x37c402)['map']((_0x5d2959,_0x739aa1)=>_0x5d2959+_0x739aa1);for(const {cell:_0x199dce}of _0x574e85['createTableWalker'](_0x5f39cd,{'startRow':_0x37c402,'endRow':_0x37c402+_0x3530a6-0x1}))_0x4ea661['rowInsertionRanges']['push'](_0x20fdb1['model']['createRangeOn'](_0x199dce));},{'priority':'low'}),_0x3f9826['descriptionFactory']['registerDescriptionCallback'](_0x20f531=>{if(_0x20f531['subType']&&_0x20f531['subType']['startsWith']('tablePaste'))return _0x20f531['previous']?{}:{'type':'insertion','content':c(_0x20fdb1['locale'],'*Replace\x20table\x20cells*')};});const _0x14e0fd=()=>!0x1;for(const _0x5f4811 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3f9826['_suggestionFactory']['registerCustomCallback']('insertion',_0x5f4811,'join',_0x14e0fd),_0x3f9826['_suggestionFactory']['registerCustomCallback']('deletion',_0x5f4811,'join',_0x14e0fd),_0x3f9826['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f4811,'join',_0x14e0fd);_0x3f9826['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x14e0fd),_0x3f9826['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4c35e4,_0x401d06,_0x3c6b4e)=>{const _0xe55283=_0x4c35e4['map'](_0x21c3c2=>_0x21c3c2['getContainedElement']())['filter'](_0x5c3e92=>_0x5c3e92),_0x8c26bf=new Map(_0xe55283['map'](_0x506c4c=>[_0x506c4c,null]));if(_0x4ea661){for(const {element:_0x3ebe3f,attributes:_0x5129bc}of _0x4ea661['cells'])_0x5129bc&&_0x8c26bf['set'](_0x3ebe3f,_0x5129bc);}else{if(_0x3c6b4e&&_0x3c6b4e['markerAttributes'])for(const [_0x416158,_0x265e35]of Object['entries'](_0x3c6b4e['markerAttributes'])){const _0x46ce20=_0x20fdb1['model']['markers']['get'](_0x416158),_0x1b18ef=_0x46ce20?_0x46ce20['getRange']()['getContainedElement']():null;_0x1b18ef&&_0x8c26bf['set'](_0x1b18ef,_0x265e35);}}_0x20fdb1['model']['change'](_0x25df89=>{for(const [_0x104a7d,_0x5e56d0]of _0x8c26bf)_0x25df89['setAttributes']({...Oe,..._0x5e56d0},_0x104a7d);});});const _0xabd47c=(_0x3c5b50,_0x3b7887)=>{_0x3f9826['_suggestionFactory']['registerCustomCallback'](_0x3c5b50,'tablePaste',_0x3b7887,(_0x4f55e2,_0x21d1f7,_0xbd7902)=>{_0x20fdb1['model']['change'](_0x277568=>{const _0x2624b9=[];for(const _0x354442 of _0x4f55e2){const _0x5eda2b=_0x354442['start']['nodeAfter'];_0x5eda2b['is']('element','tableCellSuggestion')&&_0x2624b9['push'](_0x5eda2b);}_0x3f9826['_suggestionFactory']['getSuggestionCallback'](_0x3c5b50,null,_0x3b7887)(_0x4f55e2,_0x21d1f7,_0xbd7902);for(const _0x42290f of _0x2624b9)'$graveyard'!=_0x42290f['root']['rootName']&&_0x277568['unwrap'](_0x42290f);});});};_0xabd47c('insertion','accept'),_0xabd47c('insertion','discard'),_0xabd47c('deletion','accept'),_0xabd47c('deletion','discard'),_0x3f9826['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x40093d=>{const _0x2b41c9=_0x40093d['map'](_0x572ac3=>_0x572ac3['getContainedElement']()),_0x5a8cf7=_0x2b41c9[0x0]['findAncestor']('table'),{minRow:_0x57d852,maxRow:_0xe7c302}=_0x14da41['_getCoordsForCells'](_0x2b41c9);_0x574e85['removeRows'](_0x5a8cf7,{'at':_0x57d852,'rows':_0xe7c302-_0x57d852+0x1});}),_0x3f9826['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x122850=>{const _0xb86b20=_0x122850['map'](_0x35bc6a=>_0x35bc6a['getContainedElement']()),_0x2ab459=_0xb86b20[0x0]['findAncestor']('table'),{minColumn:_0x523ec3,maxColumn:_0x2c0a4f}=_0x14da41['_getCoordsForCells'](_0xb86b20);_0x574e85['removeColumns'](_0x2ab459,{'at':_0x523ec3,'columns':_0x2c0a4f-_0x523ec3+0x1});});const _0x5a822b=(_0x4862d8,_0x3501bb)=>{if(!_0x3501bb['subType']||!_0x3501bb['subType']['startsWith']('tablePaste'))return;const _0x92eabc=_0x3501bb['attributes']['tablePasteChainId'],_0x4cb3de=_0x3f9826['getSuggestions']()['filter'](_0x271e1e=>_0x271e1e['isInContent']&&_0x271e1e['attributes']&&_0x271e1e['attributes']['tablePasteChainId']==_0x92eabc);_0x4cb3de['length']&&_0x3501bb['getAllAdjacentSuggestions']()['length']!=_0x4cb3de['length']&&_0x4cb3de['reduce']((_0x1b5b85,_0x384c2d)=>(_0x1b5b85['next']=_0x384c2d,_0x384c2d['previous']=_0x1b5b85,_0x384c2d));};function _0x19227d(_0x3a993a,_0x333da3=!0x0){const {id:_0x3360ef,authorId:_0x52a5a6}=_0x3f9826['_splitMarkerName'](_0x3a993a['markerName']),_0x2e50f2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x37b7b6=_0x3f9826['activeMarkers']['includes'](_0x3a993a['markerName']);return _0x37b7b6&&_0x2e50f2['push']('ck-suggestion-marker--active'),{'classes':_0x2e50f2,'attributes':{'data-suggestion':_0x3360ef,'data-author-id':_0x52a5a6},'priority':_0x37b7b6&&_0x333da3?0xbc2:0xbb8};}_0x3f9826['on']('suggestionLoaded',_0x5a822b,{'priority':'high'}),_0x3f9826['on']('suggestionUnloaded',_0x5a822b,{'priority':'high'}),_0x20fdb1['model']['document']['registerPostFixer'](()=>{let _0x3302ac=!0x1;const _0x3d98a2=Array['from'](_0x20fdb1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xfaf791,data:_0x39c2ec}of _0x3d98a2){const {group:_0x3cd685,type:_0x5d2f1f,id:_0x3a7a5a}=_0x3f9826['_splitMarkerName'](_0xfaf791);if('suggestion'!=_0x3cd685||'deletion'!=_0x5d2f1f||_0x39c2ec['oldRange'])continue;if(!_0x3f9826['hasSuggestion'](_0x3a7a5a))continue;const _0x5c6f8f=_0x3f9826['getSuggestion'](_0x3a7a5a)['getRanges'](),_0x11a277=_0x20fdb1['plugins']['get']('Users')['me'];for(const _0x3c0aa0 of _0x3f9826['getSuggestions']()){if(!_0x3c0aa0['isInContent']||_0x3c0aa0['author']!=_0x11a277)continue;if('formatBlock'!=_0x3c0aa0['type']||'tablePasteCell'!=_0x3c0aa0['subType'])continue;if(_0x3c0aa0['getRanges']()['every'](_0x24a1cb=>_0x5c6f8f['some'](_0x43391a=>_0x43391a['containsRange'](_0x24a1cb,!0x0)))){for(const _0x257cd9 of _0x3c0aa0['getAllAdjacentSuggestions']())_0x257cd9['isInContent']&&(_0x257cd9['discard'](),_0x3302ac=!0x0);}}}return _0x3302ac;}),_0x20fdb1['model']['document']['registerPostFixer'](_0x155c69=>{const _0x40cb9c=_0x20fdb1['commands']['get']('redo');if(!_0x40cb9c||!_0x40cb9c['_createdBatches']['has'](_0x155c69['batch']))return!0x1;let _0x21d0c5=!0x1;const _0x17941e=_0x20fdb1['plugins']['get']('Users')['me'],_0x49f85c=_0x20fdb1['model']['document']['differ']['getChanges'](),_0x518b5f=Array['from'](_0x20fdb1['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4489be,data:_0x6d0f72})=>{const {group:_0xaa363a,subType:_0x4d225f,authorId:_0x3aaf2a}=_0x3f9826['_splitMarkerName'](_0x4489be);return'suggestion'==_0xaa363a&&'tablePaste'==_0x4d225f&&_0x3aaf2a==_0x17941e['id']&&!_0x6d0f72['oldRange'];});for(const _0x308d82 of _0x49f85c){if('insert'!=_0x308d82['type']||'tableCellSuggestion'!=_0x308d82['name']||0x1!=_0x308d82['length'])continue;const _0x544619=_0x155c69['createRange'](_0x308d82['position'],_0x308d82['position']['getShiftedBy'](0x1));if(!_0x518b5f['find'](({data:_0x1dd60f})=>_0x1dd60f['newRange']['isEqual'](_0x544619))){for(const {name:_0x20e631,data:_0x1ae972}of _0x518b5f)if(_0x544619['containsRange'](_0x1ae972['newRange'])){_0x155c69['updateMarker'](_0x20e631,{'range':_0x544619}),_0x21d0c5=!0x0;break;}}}return _0x21d0c5;}),_0x20fdb1['model']['document']['registerPostFixer'](_0x5f0996=>{let _0x4ef09f=!0x1;const _0x2a750a=_0x20fdb1['plugins']['get']('Users')['me'],_0x445810=_0x3f9826['getSuggestions']()['filter'](_0x1994ff=>_0x1994ff['isInContent']&&_0x1994ff['author']==_0x2a750a),_0x26e5e5=new Set(),_0x4221fd=new Set();for(const _0x53fd62 of _0x445810)if('tablePaste'==_0x53fd62['subType'])for(const _0x454953 of _0x53fd62['getMarkers']()){const _0x3f18b7=_0x454953['getRange']()['getContainedElement']();if(_0x3f18b7){if(_0x3f18b7['is']('element','tableCellSuggestion')&&Ue(_0x3f18b7)){_0x53fd62['removeMarker'](_0x454953['name']),_0x26e5e5['add'](_0x3f18b7),_0x4ef09f=!0x0;const _0x5035df=_0x3f18b7['nextSibling'],_0x251ea8=_0x3f18b7['previousSibling'],_0x11fcb5=_0x5035df&&_0x5035df['is']('element','tableCellSuggestion'),_0x4e9510=_0x251ea8&&_0x251ea8['is']('element','tableCellSuggestion');_0x11fcb5&&!_0x26e5e5['has'](_0x5035df)&&_0x4221fd['add'](_0x5035df),_0x4e9510&&!_0x26e5e5['has'](_0x251ea8)&&_0x4221fd['add'](_0x251ea8);}else _0x3f18b7['is']('element','paragraph')&&_0x3f18b7['isEmpty']&&(_0x53fd62['removeMarker'](_0x454953['name']),_0x4ef09f=!0x0);}}else{if('tablePasteCell'==_0x53fd62['subType']){if(!_0x53fd62['attributes']||!_0x53fd62['attributes']['tablePasteChainId'])continue;const _0x3ed605=_0x53fd62['attributes']['markerAttributes'];if(_0x3ed605&&Object['keys'](_0x3ed605)['length'])continue;const _0x1d9341=_0x53fd62['attributes']['tablePasteChainId'];let _0x424b32=!0x0,_0x4fde28=!0x0;for(const _0x3ec453 of _0x445810)if(_0x3ec453['subType']&&_0x3ec453['subType']['startsWith']('tablePaste')){if(!_0x3ec453['attributes']['tablePasteChainId']){_0x4fde28=!0x1;break;}if(_0x3ec453['id']!=_0x53fd62['id']&&_0x3ec453['attributes']['tablePasteChainId']==_0x1d9341){_0x424b32=!0x1;break;}}_0x4fde28&&_0x424b32&&(_0x53fd62['removeMarkers'](),_0x4ef09f=!0x0);}}for(const _0xd66e17 of _0x26e5e5)_0x5f0996['remove'](_0xd66e17);for(const _0x5ccc1e of _0x4221fd)_0x5f0996['unwrap'](_0x5ccc1e);return _0x4ef09f;}),_0x20fdb1['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1b7696=>_0x19227d(_0x1b7696),'converterPriority':'high'}),_0x20fdb1['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x24de73,_0x40e8da)=>_0x40e8da['options']['showSuggestionHighlights']?_0x19227d(_0x24de73,!0x1):null,'converterPriority':'high'});const _0x3a2773=_0x20fdb1['editing']['view'];this['listenTo'](_0x3a2773['document'],'clipboardOutput',(_0x155991,_0x38d2c5)=>{const _0x287b9b=[];for(const _0x138975 of _0x3a2773['createRangeIn'](_0x38d2c5['content'])['getItems']())_0x138975['is']('element','suggestion-td')&&_0x287b9b['push'](_0x138975);_0x3a2773['change'](_0x202bba=>{for(const _0x35121f of _0x287b9b)_0x202bba['move'](_0x202bba['createRangeIn'](_0x35121f),_0x202bba['createPositionBefore'](_0x35121f)),_0x202bba['remove'](_0x35121f);});});}}function Ue(_0x1f8b33){if(_0x1f8b33['isEmpty'])return!0x0;const _0x189f87=_0x1f8b33['getChild'](0x0);return _0x189f87['is']('element','paragraph')&&_0x189f87['isEmpty'];}function De(_0x48ec53,_0x1d20d9={},_0x6cbca){for(const {isAnchor:_0x539fad,cellHeight:_0x58fa21,cellWidth:_0x25e117}of _0x6cbca['createTableWalker'](_0x48ec53,{'includeAllSlots':!0x0,..._0x1d20d9}))if(!_0x539fad||0x1!=_0x58fa21||0x1!=_0x25e117)return!0x1;return!0x0;}class Bt extends _0x2bb590{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x15d940=this['editor']['plugins']['get']('TrackChangesEditing');_0x15d940['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x15d940['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x15d940['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15d940['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x15d940['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x15d940['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x27d6ef,_0x2ef9ab){const _0x30e5d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x108652=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x55c64c=_0x2ef9ab['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5d9cc9=_0x108652['getColumnGroupElement'](_0x55c64c);let _0x3a199f=_0x5d9cc9?_0x108652['getTableColumnsWidths'](_0x5d9cc9):null,_0x5a62a8=_0x55c64c['getAttribute']('tableWidth')||null;const _0x5d20c5=_0x2ef9ab['tableWidth']||_0x5a62a8,_0x567c93=_0x2ef9ab['columnWidths']||_0x3a199f,_0x51f4b2=this['editor']['plugins']['get']('Users')['me'];for(const _0x5d1f10 of _0x30e5d8['getSuggestions']()){const _0x3cde61=_0x5d1f10['getContainedElement']();if('resizeTable'===_0x5d1f10['subType']&&_0x3cde61===_0x55c64c){_0x5d1f10['author']!==_0x51f4b2&&_0x5d1f10['discard']();const _0x6a995a=_0x5d1f10['data']['commandParams'];_0x5a62a8=_0x6a995a[0x0]['tableWidth'],_0x3a199f=_0x6a995a[0x0]['columnWidths'];break;}}_0x27d6ef({'table':_0x55c64c,'tableWidth':_0x5d20c5,'columnWidths':_0x567c93}),_0x30e5d8['markBlockFormat'](_0x55c64c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5a62a8,'columnWidths':_0x3a199f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4d2403){if('formatBlock'!=_0x4d2403['type']&&'formatInline'!=_0x4d2403['type'])return;const {data:_0x8f64ec}=_0x4d2403;if(_0x8f64ec&&'resizeTable'===_0x8f64ec['formatGroupId']){const _0x39b9d1='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x39b9d1)};}}}class Ot extends _0x2bb590{['afterInit'](){const _0x5ab29f=this['editor'];_0x5ab29f['plugins']['has']('Template')&&_0x5ab29f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x2bb590{['afterInit'](){const _0x213cbd=this['editor'];if(!_0x213cbd['commands']['get']('insertTableOfContents'))return;_0x213cbd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x447c85=_0x213cbd['plugins']['get']('TrackChangesEditing'),_0x36fbd3=_0x213cbd['locale'];_0x447c85['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3de19e=>c(_0x36fbd3,'ELEMENT_TABLE_OF_CONTENTS',_0x3de19e));}}class xt extends _0x2bb590{['afterInit'](){const _0x51df05=this['editor'];if(!_0x51df05['plugins']['has']('Title'))return;const _0x5d4933=_0x51df05['plugins']['get']('TrackChangesEditing');_0x5d4933['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x51df05['locale'],'ELEMENT_TITLE')),_0x51df05['model']['document']['registerPostFixer'](_0xd34596=>{let _0x5a0eaa=!0x1;const _0x13adcb=Array['from'](_0x51df05['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d2907,data:_0x1d95ea}of _0x13adcb){const {group:_0x2f99b8}=_0x5d4933['_splitMarkerName'](_0x1d2907);if('suggestion'!==_0x2f99b8||!_0x1d95ea['newRange'])continue;const _0x555b53=_0x1d95ea['newRange'],_0x3cec7d=_0x555b53['end']['nodeBefore'];if(!_0x3cec7d||!_0x3cec7d['is']('element','title-content'))continue;if(!_0x555b53['start']['isTouching'](_0x555b53['end']))continue;const _0x84ba61=_0x51df05['model']['schema']['getNearestSelectionRange'](_0x555b53['end'],'forward');if(_0x84ba61&&_0x84ba61['isCollapsed']){const _0x288398=_0xd34596['createRange'](_0x555b53['start'],_0x84ba61['start']);_0x288398['isEqual'](_0x555b53)||(_0xd34596['updateMarker'](_0x1d2907,{'range':_0x288398}),_0x5a0eaa=!0x0);}_0x5a0eaa||(_0xd34596['removeMarker'](_0x1d2907),_0x5a0eaa=!0x0);}return _0x5a0eaa;});}}class Tt extends _0x2bb590{['afterInit'](){const _0x2f4de0=this['editor'],_0x25a202=_0x2f4de0['plugins']['get']('TrackChangesEditing');_0x2f4de0['plugins']['has']('Uploadcare')&&(_0x25a202['enableCommand']('uploadcare'),_0x2f4de0['plugins']['has']('UploadcareImageEdit')&&(_0x25a202['enableCommand']('uploadcareImageEdit'),_0x25a202['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x25a202['registerBlockAttribute']('uploadcareImageId'),_0x25a202['descriptionFactory']['registerDescriptionCallback'](_0x36f496=>{if('attribute'!=_0x36f496['type'])return;const {data:_0x307b14}=_0x36f496;return _0x307b14&&'uploadcareImageId'==_0x307b14['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2bb590{['afterInit'](){const _0x36e797=this['editor'],_0x505c6d=_0x36e797['plugins']['get']('TrackChangesEditing');_0x36e797['plugins']['has']('UndoEditing')&&(_0x505c6d['enableCommand']('undo'),_0x505c6d['enableCommand']('redo'));}}class Ut extends _0x2bb590{static get['requires'](){return[Ct];}['afterInit'](){const _0x1c2751=this['editor'];if(!_0x1c2751['plugins']['has']('TableCaptionEditing'))return;_0x1c2751['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2bb590{['tableProperties'];['tableCellProperties'];constructor(_0x6ba4cc){super(_0x6ba4cc),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 _0x1c3f5a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x6b4e4b of this['tableProperties'])_0x1c3f5a['enableCommand'](_0x6b4e4b,(_0x5cbd56,_0x4be583)=>{const _0xd89f96=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x6b4e4b,[_0xd89f96],this['tableProperties'],'tableProperties',_0x5cbd56,_0x4be583);});_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1c3f5a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x47f3be,_0x41f7f2)=>this['handleDiscardAction'](this['tableProperties'],_0x47f3be,_0x41f7f2)),_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x147cbf of this['tableCellProperties'])_0x1c3f5a['enableCommand'](_0x147cbf,(_0x55d8d7,_0x452cb9)=>{const _0x43460d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x147cbf,_0x43460d,this['tableCellProperties'],'tableCellProperties',_0x55d8d7,_0x452cb9);});_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1c3f5a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4e66df,_0x138490)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4e66df,_0x138490)),_0x1c3f5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1c3f5a['descriptionFactory']['registerDescriptionCallback'](_0x16a93f=>this['handleSuggestionDescription'](_0x16a93f));}['_handlePropertyChange'](_0x2cfc3c,_0x39c54c,_0x5c9f86,_0x354b0e,_0x24f166,_0x200558){const _0x4ce8a2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x200558['batch'],()=>{for(const _0xbc47e8 of _0x39c54c){if(this['_getSuggestion'](_0xbc47e8,_0x354b0e))_0x24f166(_0x200558);else{const _0xe16039={};for(const _0x5a109f of _0x5c9f86){const _0x4fb126=_0xbc47e8['getAttribute'](_0x5a109f);void 0x0!==_0x4fb126&&(_0xe16039[_0x5a109f]=_0x4fb126);}_0x24f166(_0x200558),_0x4ce8a2['markBlockFormat'](_0xbc47e8,{'commandParams':[_0xe16039]},[],_0x354b0e);}}});}['handleDiscardAction'](_0x2206b8,_0x5bed22,_0xa49d15){const _0x5296f1=_0x5bed22[0x0]['start']['nodeAfter'],_0x2b79cc=_0xa49d15['commandParams'][0x0];this['editor']['model']['change'](_0x3961a1=>{for(const _0x3ec600 of _0x2206b8)void 0x0!==_0x2b79cc[_0x3ec600]?_0x3961a1['setAttribute'](_0x3ec600,_0x2b79cc[_0x3ec600],_0x5296f1):_0x3961a1['removeAttribute'](_0x3ec600,_0x5296f1);});}['handleSuggestionDescription'](_0x2a1d05){if(_0x2a1d05['data'])switch(_0x2a1d05['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'](_0x1ead9c,_0x2fdad9){const _0x1e0349=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x351fee of _0x1e0349['getSuggestions']({'skipNotAttached':!0x0})){const _0x211fdc=_0x351fee['getContainedElement']();if(_0x351fee['subType']===_0x2fdad9&&_0x211fdc===_0x1ead9c)return _0x351fee;}return null;}}const u='$elementName';class p extends _0x2bb590{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x75af00,_0x47b17f,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a5da2){super(_0x2a5da2),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5b1384,_0x3d376b,_0x4edd3a,_0x32b39b)=>{this['_model']['change'](()=>{for(const _0x3af580 of[..._0x32b39b,..._0x4edd3a])this['_model']['markers']['has'](_0x3af580)&&_0x2a5da2['editing']['reconvertMarker'](_0x3af580);});}),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']=_0x2a5da2['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(),_0x2a5da2['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2a5da2['config']['get']('trackChanges.trackFormatChanges'),_0x2a5da2['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2a5da2['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2a5da2,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x6095ae=this['editor'],_0x4f470c=(_0x39c894,_0x24fe19)=>{if('attribute'!=_0x39c894)return'ck-suggestion-marker-'+_0x39c894;const _0x3dcefa=_0x24fe19['split']('|')[0x0];return this['_isBlockAttribute'](_0x3dcefa)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x6095ae['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xecef83=>{const {id:_0x19fefd,authorId:_0x4764fc,type:_0x52d0af,subType:_0x1d5317}=this['_splitMarkerName'](_0xecef83['markerName']),_0x488e63=['ck-suggestion-marker',_0x4f470c(_0x52d0af,_0x1d5317)];let _0x4483e0=0xbb8;return this['activeMarkers']['includes'](_0xecef83['markerName'])&&(_0x488e63['push']('ck-suggestion-marker--active'),_0x4483e0=0xbc2),'deletion'==_0x52d0af&&(_0x4483e0+=0x5),{'classes':_0x488e63,'attributes':{'data-suggestion':_0x19fefd,'data-author-id':_0x4764fc},'priority':_0x4483e0};}}),_0x6095ae['conversion']['for']('dataDowncast')['add'](_0x17fcb0=>{_0x17fcb0['on']('addMarker:suggestion',(_0x3c8ef7,_0x432db9,_0x2dd2eb)=>{if(!_0x2dd2eb['options']['showSuggestionHighlights'])return;const _0x2ee1ed=_0x432db9['item'];if(!_0x2ee1ed)return;const _0x1e193d=_0x2dd2eb['mapper']['toViewElement'](_0x2ee1ed);_0x6095ae['model']['schema']['isObject'](_0x2ee1ed)&&_0x1e193d&&!_0x1e193d['getCustomProperty']('widget')&&_0x1e193d['is']('containerElement')&&_0x300646(_0x1e193d,_0x2dd2eb['writer']);},{'priority':'high'});}),_0x6095ae['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3bd867,_0x320b33)=>{if(!_0x320b33['options']['showSuggestionHighlights'])return null;const {type:_0x37a267,subType:_0x360f25}=this['_splitMarkerName'](_0x3bd867['markerName']);return{'classes':['ck-suggestion-marker',_0x4f470c(_0x37a267,_0x360f25)],'priority':0xbb8};}});const _0x4b2e32=({showActiveMarkers:_0x35bec5=!0x0,isAttributeSuggestion:_0x1960d0=!0x1}={})=>(_0x50927d,_0x5c117a,_0x30ed90)=>{if(!_0x5c117a['item'])return;const {id:_0x208c59,authorId:_0x39cf25}=this['_splitMarkerName'](_0x5c117a['markerName']);if(_0x1960d0){const _0x428cf2=this['_suggestions']['get'](_0x208c59),_0x19ba8d=this['_getAttributeKey'](_0x428cf2);if(!this['_isBlockAttribute'](_0x19ba8d))return;}if(_0x5c117a['item']['is']('selection'))return void _0x30ed90['consumable']['consume'](_0x5c117a['item'],_0x50927d['name']);const _0x2643e7=_0x30ed90['mapper']['toViewElement'](_0x5c117a['item']);if(_0x5c117a['item']['is']('element')&&_0x6095ae['model']['schema']['isBlock'](_0x5c117a['item'])&&!_0x2643e7['getCustomProperty']('addHighlight')){_0x30ed90['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2643e7),_0x30ed90['writer']['setAttribute']('data-suggestion',_0x208c59,_0x2643e7),_0x30ed90['writer']['setAttribute']('data-author-id',_0x39cf25,_0x2643e7),_0x30ed90['mapper']['bindElementToMarker'](_0x2643e7,_0x5c117a['markerName']),_0x35bec5&&(this['activeMarkers']['includes'](_0x5c117a['markerName'])?_0x30ed90['writer']['addClass']('ck-suggestion-marker--active',_0x2643e7):_0x30ed90['writer']['removeClass']('ck-suggestion-marker--active',_0x2643e7));for(const _0x4d5576 of _0x6095ae['model']['createRangeIn'](_0x5c117a['item'])['getItems']())_0x30ed90['consumable']['consume'](_0x4d5576,_0x50927d['name']);_0x30ed90['consumable']['consume'](_0x5c117a['item'],_0x50927d['name']);}};_0x6095ae['conversion']['for']('dataDowncast')['add'](_0x391b16=>{_0x391b16['on']('addMarker:suggestion:formatBlock',(_0x4a1f8a,_0x5485c4,_0x5402bf)=>{_0x5402bf['options']['showSuggestionHighlights']&&_0x4b2e32({'showActiveMarkers':!0x1})(_0x4a1f8a,_0x5485c4,_0x5402bf);},{'priority':'highest'});}),_0x6095ae['conversion']['for']('dataDowncast')['add'](_0x1b24a0=>{_0x1b24a0['on']('addMarker:suggestion:attribute',(_0x14b59e,_0x476c5a,_0x2fa983)=>{_0x2fa983['options']['showSuggestionHighlights']&&_0x4b2e32({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x14b59e,_0x476c5a,_0x2fa983);},{'priority':'highest'});}),_0x6095ae['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1f95d4,_0x240d62)=>_0x240d62['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1f95d4['substr'](0xb)}}),_0x6095ae['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x13eda1,{writer:_0x5323c4})=>{let _0x2a69e0='suggestion:'+_0x13eda1['getAttribute']('suggestion-type')+':'+_0x13eda1['getAttribute']('id');return _0x13eda1['getAttribute']('marker-count')&&(_0x2a69e0+=':'+_0x13eda1['getAttribute']('marker-count')),_0x5323c4['createElement']('$marker',{'data-name':_0x2a69e0});}}),_0x6095ae['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x6095ae['conversion']['for']('editingDowncast')['add'](_0x3cb496=>{_0x3cb496['on']('addMarker:suggestion:formatBlock',_0x4b2e32(),{'priority':'high'});}),_0x6095ae['conversion']['for']('editingDowncast')['add'](_0x286c2a=>{_0x286c2a['on']('addMarker:suggestion:attribute',_0x4b2e32({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x6095ae['conversion']['for']('editingDowncast')['add'](_0x4f513c=>{_0x4f513c['on']('removeMarker:suggestion:formatBlock',(_0x2422ef,_0x114df7,_0x297047)=>{const _0x4b8942=_0x297047['mapper']['markerNameToElements'](_0x114df7['markerName']);if(_0x4b8942){for(const _0x537abd of _0x4b8942)_0x537abd['getCustomProperty']('addHighlight')||(_0x297047['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x537abd),_0x297047['writer']['removeAttribute']('data-suggestion',_0x537abd),_0x297047['writer']['removeAttribute']('data-author-id',_0x537abd),_0x297047['mapper']['unbindElementFromMarkerName'](_0x537abd,_0x114df7['markerName']));}},{'priority':'high'});}),_0x6095ae['conversion']['for']('editingDowncast')['add'](_0x5ff2f4=>{_0x5ff2f4['on']('removeMarker:suggestion:attribute',(_0xe33f23,_0x297609,_0x15500d)=>{const _0xa7eea8=_0x15500d['mapper']['markerNameToElements'](_0x297609['markerName']);if(!_0xa7eea8)return;const {id:_0x21f93c}=this['_splitMarkerName'](_0x297609['markerName']),_0x530ced=this['_suggestions']['get'](_0x21f93c),_0x2e4d60=this['_getAttributeKey'](_0x530ced);if(this['_isBlockAttribute'](_0x2e4d60)){for(const _0x4989b9 of _0xa7eea8)_0x4989b9['getCustomProperty']('addHighlight')||(_0x15500d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4989b9),_0x15500d['writer']['removeAttribute']('data-suggestion',_0x4989b9),_0x15500d['writer']['removeAttribute']('data-author-id',_0x4989b9),_0x15500d['mapper']['unbindElementFromMarkerName'](_0x4989b9,_0x297609['markerName']));}},{'priority':'high'});}),_0x6095ae['model']['document']['registerPostFixer'](_0x4f6544=>{let _0x2ede9f=!0x1;const _0x6fe926=Array['from'](_0x6095ae['model']['document']['differ']['getChangedMarkers']()),_0x12357b=new Set();for(const {name:_0x1500e7,data:_0x1cee07}of _0x6fe926){const {group:_0x279c01,type:_0x12d1fe,subType:_0x269d17,id:_0x115ffa}=this['_splitMarkerName'](_0x1500e7);if('suggestion'!==_0x279c01)continue;const _0x2826f7=this['_suggestions']['get'](_0x115ffa);if(null!=_0x1cee07['newRange']){'formatInline'==_0x12d1fe&&(_0x2ede9f=_0x2ede9f||Jt(_0x1cee07['newRange'],_0x1500e7,_0x4f6544,_0x6095ae['model']['schema']));const _0x55e809='attribute'==_0x12d1fe&&this['_isBlockAttribute'](_0x269d17['split']('|')[0x0]);if(_0x1cee07['newRange']['isCollapsed']||'$graveyard'==_0x1cee07['newRange']['root']['rootName']||'formatBlock'==_0x12d1fe&&!Ht(_0x1cee07['newRange'])||_0x55e809&&!Ht(_0x1cee07['newRange'])||'deletion'==_0x12d1fe&&!(!Lt(_0x2743b2=_0x1cee07['newRange'])&&!function(_0x163d48){return _0x163d48['start']['parent']==_0x163d48['end']['nodeBefore']&&_0x163d48['start']['isAtEnd'];}(_0x2743b2)))_0x4f6544['removeMarker'](_0x1500e7),_0x2ede9f=!0x0;else{if(!_0x2826f7||!_0x2826f7['isInContent'])continue;if(_0x1cee07['newRange']&&_0x1cee07['oldRange']&&_0x1cee07['newRange']['isEqual'](_0x1cee07['oldRange']))continue;_0x12357b['add'](_0x2826f7);}}}var _0x2743b2;return _0x12357b['size']>0x0&&(_0x2ede9f=!!this['_joinWithAdjacentSuggestions'](_0x12357b)||_0x2ede9f),_0x2ede9f;}),_0x6095ae['model']['document']['registerPostFixer'](_0x5589fc=>{let _0x382c1f=!0x1;for(const _0x411624 of _0x6095ae['model']['document']['differ']['getChanges']())if('insert'==_0x411624['type'])for(const _0x33258e of this['_suggestions']['values']()){if(_0x33258e['isMultiRange']||!_0x33258e['isInContent'])continue;const _0x2d633c='formatBlock'==_0x33258e['type'],_0x1ce476=this['_getAttributeKey'](_0x33258e),_0x533d86=_0x1ce476&&this['_isBlockAttribute'](_0x1ce476);if(!_0x2d633c&&!_0x533d86)continue;const _0x599c71=_0x33258e['getFirstRange']();if(_0x599c71['start']['parent']!=_0x599c71['end']['parent']&&!_0x599c71['end']['isAtEnd']){const _0x514014=_0x6095ae['model']['createPositionAt'](_0x599c71['start']['nodeAfter'],'end'),_0x4a1dbc=_0x6095ae['model']['createRange'](_0x599c71['start'],_0x514014);_0x5589fc['updateMarker'](_0x33258e['getFirstMarker'](),{'range':_0x4a1dbc}),_0x382c1f=!0x0;}}return _0x382c1f;}),_0x6095ae['model']['document']['registerPostFixer'](_0x196193=>this['_processAttributeChanges'](_0x196193)),_0x6095ae['model']['document']['registerPostFixer'](_0x5c0379=>!_0x5c0379['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5c0379)),_0x6095ae['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x6095ae['model']['document']['on']('change:data',(_0x37cb15,_0x45c4bd)=>{if(!_0x45c4bd['isLocal']||_0x45c4bd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x576701=_0x6095ae['model']['document']['differ']['getChanges']();if(0x0==_0x576701['length'])return;const _0x4088e3=[],_0x270e71=_0x576701['filter'](_0x28096e=>'attribute'==_0x28096e['type']),_0x5da6b9=_0x576701['filter'](_0x136e25=>'insert'==_0x136e25['type']&&'$text'!=_0x136e25['name']);for(const _0x4ff1d9 of _0x270e71)this['_isRegisteredAttribute'](_0x4ff1d9['attributeKey'])&&_0x4088e3['push']({'key':_0x4ff1d9['attributeKey'],'newValue':_0x4ff1d9['attributeNewValue'],'oldValue':_0x4ff1d9['attributeOldValue'],'range':qt(_0x4ff1d9['range'],_0x6095ae['model'])});for(const _0x332d4d of _0x5da6b9){if('rename'!=_0x332d4d['action']&&'refresh'!=_0x332d4d['action'])continue;const _0x260aaa=zt(_0x332d4d['position']['nodeAfter'],_0x6095ae['model']),_0x4ed66b=_0x332d4d['before'];'rename'==_0x332d4d['action']&&_0x4088e3['push']({'key':u,'newValue':_0x332d4d['name'],'oldValue':_0x4ed66b['name'],'range':_0x260aaa});for(const [_0x5a3676,_0x154aad]of _0x4ed66b['attributes']){if(!this['_isRegisteredAttribute'](_0x5a3676))continue;const _0x1cb0c4=_0x332d4d['attributes']['get'](_0x5a3676);_0x154aad!==_0x1cb0c4&&_0x4088e3['push']({'key':_0x5a3676,'newValue':_0x1cb0c4,'oldValue':_0x154aad,'range':_0x260aaa});}for(const [_0x1311bf,_0x4df6bc]of _0x332d4d['attributes'])this['_isRegisteredAttribute'](_0x1311bf)&&(_0x4ed66b['attributes']['has'](_0x1311bf)||_0x4088e3['push']({'key':_0x1311bf,'newValue':_0x4df6bc,'oldValue':null,'range':_0x260aaa}));}0x0!=_0x4088e3['length']&&_0x6095ae['model']['enqueueChange'](_0x45c4bd,_0x4b8e29=>{const _0x5c6600=_0xf1d1da();for(const {range:_0xfa2434,key:_0x29ae5c,oldValue:_0x2582cb,newValue:_0x3925e7}of _0x4088e3)this['markAttributeChange'](_0xfa2434,_0x29ae5c,_0x2582cb,_0x3925e7,{'groupId':_0x5c6600});this['_reduceExistingSuggestions'](_0x4b8e29,_0x4088e3);});},{'priority':'lowest'}),_0x6095ae['model']['markers']['on']('update:suggestion',(_0x59bc7c,_0x280d17,_0x3399d0)=>{if(null==_0x3399d0){const {id:_0x18f125}=this['_splitMarkerName'](_0x280d17['name']),_0x4c174b=this['_suggestions']['get'](_0x18f125);_0x4c174b&&_0x4c174b['addMarkerName'](_0x280d17['name']);}}),_0x6095ae['model']['document']['on']('change:data',()=>{const _0x254e8b=Array['from'](_0x6095ae['model']['document']['differ']['getChangedMarkers']())['filter'](_0x295561=>'suggestion'===this['_splitMarkerName'](_0x295561['name'])['group']);if(0x0===_0x254e8b['length'])return;_0x254e8b['sort']((_0x89e60e,_0x3105fd)=>{const _0x30d807=_0x89e60e['data']['oldRange'],_0x41644b=_0x3105fd['data']['oldRange'];return null===_0x30d807&&null===_0x41644b?0x0:null===_0x30d807&&null!==_0x41644b?-0x1:null!==_0x30d807&&null===_0x41644b?0x1:_0x30d807['start']['isBefore'](_0x41644b['start'])?-0x1:0x1;});const _0x40d554=new Set(),_0x2bd1a2=new Set();for(const {name:_0x4d9eaa,data:_0x499666}of _0x254e8b){const {id:_0x42dce9}=this['_splitMarkerName'](_0x4d9eaa);if(null===_0x499666['oldRange']){const _0x47ee71=this['_handleNewSuggestionMarker'](_0x4d9eaa);_0x2bd1a2['add'](_0x47ee71);}else{const _0x5f07a4=this['_suggestions']['get'](_0x42dce9);null!==_0x499666['newRange']||_0x5f07a4['isInContent']?(_0x40d554['add'](_0x5f07a4['head']),_0x2bd1a2['add'](_0x5f07a4)):this['_removeSuggestion'](_0x5f07a4);}}_0x2bd1a2['size']>0x0&&this['_refreshSuggestionsChain'](_0x2bd1a2);for(const _0x408eaf of _0x40d554)this['fire']('suggestionChanged',_0x408eaf);}),_0x6095ae['model']['on']('applyOperation',(_0x212974,_0x11c783)=>{const _0x5838e5=_0x11c783[0x0];if(!this['_suggestions']['size'])return;if(!_0x5838e5['isDocumentOperation'])return;if(_0x5838e5['batch']['isUndo']||!_0x5838e5['batch']['isLocal'])return;let _0x2bd187,_0x3c1de2;switch(_0x5838e5['type']){case'insert':_0x2bd187=_0x6095ae['model']['createPositionAt'](_0x5838e5['position']),_0x3c1de2=_0x2bd187['getShiftedBy'](_0x5838e5['howMany']);break;case'split':_0x2bd187=_0x6095ae['model']['createPositionAt'](_0x5838e5['splitPosition']),_0x3c1de2=_0x6095ae['model']['createPositionAt'](_0x5838e5['moveTargetPosition']);break;case'move':_0x2bd187=_0x6095ae['model']['createPositionAt'](_0x5838e5['targetPosition']),_0x3c1de2=_0x2bd187['getShiftedBy'](_0x5838e5['howMany']);break;default:return;}const _0x4a153f=_0x6095ae['model']['createRange'](_0x2bd187,_0x3c1de2);_0x6095ae['model']['change'](()=>{for(const {suggestion:_0x1aa1ca,meta:_0x444a05}of this['_findSuggestions'](_0x4a153f)){if(_0x1aa1ca['isMultiRange'])continue;if('formatInline'==_0x1aa1ca['type'])continue;const _0x31ee6e=this['_getAttributeKey'](_0x1aa1ca);if(_0x31ee6e&&this['_isBlockAttribute'](_0x31ee6e)&&'split'!=_0x5838e5['type'])continue;const _0x1dee74=_0x1aa1ca['data']&&_0x1aa1ca['data']['multipleBlocks'];('formatBlock'!=_0x1aa1ca['type']||'split'==_0x5838e5['type']&&!_0x1dee74)&&(_0x444a05['containsRangeInObject']||'insertion'==_0x1aa1ca['type']&&_0x444a05['isOwn']||_0x1aa1ca['getFirstRange']()['containsRange'](_0x4a153f)&&this['_breakSuggestionMarker'](_0x1aa1ca,_0x2bd187,_0x3c1de2));}});},{'priority':'lowest'}),_0x6095ae['model']['on']('deleteContent',(_0x1ca196,_0x129f8c)=>{const _0x5ae466=_0x129f8c[0x0],_0x1d8951=_0x129f8c[0x1];if(_0x1d8951&&_0x1d8951['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5ae466['isCollapsed'])return;const _0x472be6=_0x6095ae['model']['schema'],{start:_0x582134,end:_0x185f4d}=_0x5ae466['getFirstRange'](),_0x411bb7=_0x582134['nodeAfter']&&_0x472be6['isLimit'](_0x582134['nodeAfter'])?null:_0x472be6['getNearestSelectionRange'](_0x582134,'forward'),_0x4834ab=_0x185f4d['nodeBefore']&&_0x472be6['isLimit'](_0x185f4d['nodeBefore'])?null:_0x472be6['getNearestSelectionRange'](_0x185f4d,'backward'),_0x1f02c2=_0x6095ae['model']['createRange'](_0x411bb7?_0x411bb7['start']:_0x582134,_0x4834ab?_0x4834ab['end']:_0x185f4d);_0x6095ae['model']['change'](_0x1b2efb=>{this['markDeletion'](_0x1f02c2);const _0xce7758=_0x6095ae['model']['schema']['getNearestSelectionRange'](_0x1f02c2['start']);_0x5ae466['is']('documentSelection')?_0x1b2efb['setSelection'](_0xce7758):_0x5ae466['setTo'](_0xce7758);}),_0x1ca196['stop']();},{'priority':_0x5bb012['normal']+0xa}),_0x6095ae['model']['on']('insertContent',(_0x102ddd,_0x359023)=>{const _0x15294e=_0x359023[_0x359023['length']-0x1];_0x15294e&&_0x15294e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x6095ae['model']['change'](()=>{let _0x53fe8b=_0x6095ae['model']['insertContent'](_0x359023[0x0],_0x359023[0x1],_0x359023[0x2],{'forceDefaultExecution':!0x0});if(!_0x53fe8b)return;_0x102ddd['return']=_0x53fe8b['clone']();const _0xf68968=_0x53fe8b['end']['nodeBefore'],_0x44e927=_0x6095ae['model']['schema'];_0xf68968&&_0x44e927['isBlock'](_0xf68968)&&!_0x44e927['isObject'](_0xf68968)&&(_0x53fe8b=_0x6095ae['model']['createRange'](_0x53fe8b['start'],_0x6095ae['model']['createPositionAt'](_0xf68968,'end'))),this['markInsertion'](_0x53fe8b);}),_0x102ddd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x45986c=new O(_0x6095ae,this['_suggestions']);_0x6095ae['commands']['add']('acceptSuggestion',_0x45986c),this['enableCommand']('acceptSuggestion');const _0x4ffcdb=new R(_0x6095ae,this['_suggestions']);_0x6095ae['commands']['add']('discardSuggestion',_0x4ffcdb),this['enableCommand']('discardSuggestion'),_0x6095ae['commands']['add']('acceptAllSuggestions',new x(_0x6095ae,_0x45986c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x6095ae['commands']['add']('discardAllSuggestions',new x(_0x6095ae,_0x4ffcdb,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x6095ae['commands']['add']('acceptSelectedSuggestions',new E(_0x6095ae,_0x45986c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x6095ae['commands']['add']('discardSelectedSuggestions',new E(_0x6095ae,_0x4ffcdb,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3efaba=_0x6095ae['plugins']['get']('CommentsRepository');this['listenTo'](_0x3efaba,'addComment',(_0x210f01,{threadId:_0x23af3a})=>{const _0x357dcb=this['_suggestions']['get'](_0x23af3a);_0x357dcb&&_0x357dcb['commentThread']&&0x1===_0x357dcb['commentThread']['length']&&this['_updateSuggestionData'](_0x23af3a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3efaba,'removeComment',(_0x48075e,{threadId:_0x2a7737})=>{const _0x70754a=this['_suggestions']['get'](_0x2a7737);_0x70754a&&_0x70754a['commentThread']&&!_0x70754a['commentThread']['length']&&this['_updateSuggestionData'](_0x2a7737,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xdd0b10){const _0x485ae5=_0x43f50e([0x61,0x70,0x75,0x4e,0x30,0x58,0x74,0x33,0x7a,0x4d,0x44,0x63,0x38,0x42,0x62,0x35,0x45,0x52,0x32,0x5a,0x48,0x36,0x31,0x6a,0x73,0x6d,0x67,0x6c,0x79,0x4f,0x43,0x72,0x53,0x46,0x64,0x69,0x6e,0x49,0x4a,0x78,0x47,0x66,0x56,0x55,0x77,0x59,0x76,0x34,0x4b,0x6b,0x71,0x51,0x50,0x6f,0x57,0x68,0x54,0x4c,0x39,0x37,0x41,0x65]),_0x49f949=0x5cab1adf,_0x493499=0x5cac7e9f^_0x49f949,_0x235259=window[_0x43f50e([0x44,0x61,0x74,0x65])][_0x43f50e([0x6e,0x6f,0x77])](),_0x388fb7=_0xdd0b10[_0x43f50e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x203849=new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38e089=>{_0x388fb7[_0x43f50e([0x6f,0x6e,0x63,0x65])](_0x43f50e([0x72,0x65,0x61,0x64,0x79]),_0x38e089);}),_0x86ef0d={[_0x43f50e([0x6b,0x74,0x79])]:_0x43f50e([0x45,0x43]),[_0x43f50e([0x75,0x73,0x65])]:_0x43f50e([0x73,0x69,0x67]),[_0x43f50e([0x63,0x72,0x76])]:_0x43f50e([0x50,0x2d,0x32,0x35,0x36]),[_0x43f50e([0x78])]:_0x43f50e([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]),[_0x43f50e([0x79])]:_0x43f50e([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]),[_0x43f50e([0x61,0x6c,0x67])]:_0x43f50e([0x45,0x53,0x32,0x35,0x36])},_0x1db57a=_0x388fb7[_0x43f50e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43f50e([0x67,0x65,0x74])](_0x43f50e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x270ddc(){let _0x2e5608,_0x2d3997=null,_0x2768a4=null;try{if(_0x1db57a==_0x43f50e([0x47,0x50,0x4c]))return _0x43f50e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2e5608=_0x824216(),!_0x2e5608)return _0x43f50e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2e5608[_0x43f50e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2768a4=_0x5ceff8(_0x2e5608[_0x43f50e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2e5608[_0x43f50e([0x6a,0x74,0x69])])),await _0x4b11a3()?_0x29eb10()?_0x34713f()?_0x43f50e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1a57ab()?(_0x2e5608[_0x43f50e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43f50e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d3997=_0x3004aa(_0x43f50e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2e5608[_0x43f50e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43f50e([0x74,0x72,0x69,0x61,0x6c])&&(_0x2d3997=_0x3004aa(_0x43f50e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x543328()):_0x43f50e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43f50e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43f50e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x210452){return _0x43f50e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x34713f(){const _0xe28923=[_0x43f50e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43f50e([0x74,0x72,0x69,0x61,0x6c])][_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e5608[_0x43f50e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x235259/0x3e8:0xe10*_0x493499;return _0x2e5608[_0x43f50e([0x65,0x78,0x70])]<_0xe28923;}function _0x29eb10(){const _0x29e6ac=_0x2e5608[_0x43f50e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x29e6ac)return!0x1;if(_0x29e6ac[_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f50e([0x2a])))return!0x0;if(_0x29e6ac[_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f50e([0x54,0x43])))return!0x0;if(_0x29e6ac[_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f50e([0x52,0x54,0x43]))){if(_0x49ba29())return!0x0;if(_0x5223a6()||_0xb1da33())return!0x0;}return!0x1;}function _0x1a57ab(){const _0x2ccb54=_0x2e5608[_0x43f50e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ccb54||0x0==_0x2ccb54[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2f3089}=new URL(window[_0x43f50e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ccb54[_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f3089))return!0x0;const _0x2a87b2=_0x2f3089[_0x43f50e([0x73,0x70,0x6c,0x69,0x74])](_0x43f50e([0x2e]));return _0x2ccb54[_0x43f50e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6562fd=>_0x6562fd[_0x43f50e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f50e([0x2a])))[_0x43f50e([0x6d,0x61,0x70])](_0x6268be=>_0x6268be[_0x43f50e([0x73,0x70,0x6c,0x69,0x74])](_0x43f50e([0x2e])))[_0x43f50e([0x73,0x6f,0x6d,0x65])](_0x4d3014=>_0x2a87b2[_0x43f50e([0x65,0x76,0x65,0x72,0x79])]((_0x2b2c6b,_0x21880a)=>_0x4d3014[_0x21880a]===_0x2b2c6b||_0x4d3014[_0x21880a]===_0x43f50e([0x2a])));}function _0x543328(){return _0x2d3997&&_0x2768a4?new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d9b79,_0x2c5008)=>{_0x2d3997[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x2d9b79,_0x2c5008),_0x2768a4[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x1b2216=>{_0x1b2216!=_0x43f50e([0x56,0x61,0x6c,0x69,0x64])&&_0x2d9b79(_0x1b2216);},_0x2c5008);}):_0x2d3997||_0x2768a4||_0x43f50e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ceff8(_0x590edf,_0x1a8995){return new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dde20=>{if(_0x6f2628())return _0x3dde20(_0x43f50e([0x56,0x61,0x6c,0x69,0x64]));_0x2f1753(),_0x388fb7[_0x43f50e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43f50e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd205c4=!0x1;const _0x1c8c3a=_0xf1d1da();function _0x36cabb(_0x57b6e5){return!!_0x57b6e5&&(typeof _0x57b6e5===_0x43f50e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57b6e5===_0x43f50e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57b6e5[_0x43f50e([0x74,0x68,0x65,0x6e])]===_0x43f50e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57b6e5[_0x43f50e([0x63,0x61,0x74,0x63,0x68])]===_0x43f50e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51dc41(_0x441222){_0x2d51b2(_0x441222)[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x1bb969=>{if(!_0x1bb969||_0x1bb969[_0x43f50e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43f50e([0x6f,0x6b]))return _0x43f50e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57eb94(_0x3e3879(_0x1c8c3a+_0x1a8995))!=_0x1bb969[_0x43f50e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43f50e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43f50e([0x56,0x61,0x6c,0x69,0x64]);})[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x1de6fe=>(_0x2d55c9(),_0x1de6fe),()=>{const _0x2975f2=_0x174b41();return null==_0x2975f2?(_0x2d55c9(),_0x43f50e([0x56,0x61,0x6c,0x69,0x64])):_0x43f50e(_0x235259-_0x2975f2>(0x78a79edf^_0x49f949)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x3dde20)[_0x43f50e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3dde20(_0x43f50e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x301c37=0x5c9df45f^_0x49f949;function _0x2d55c9(){const _0x164aee=_0x43f50e([0x6c,0x6c,0x63,0x74,0x2d])+_0x57eb94(_0x3e3879(_0x590edf)),_0x49ab94=_0x1cab47(_0x57eb94(window[_0x43f50e([0x4d,0x61,0x74,0x68])][_0x43f50e([0x63,0x65,0x69,0x6c])](_0x235259/_0x301c37)));window[_0x43f50e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43f50e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x164aee,_0x49ab94);}function _0x174b41(){const _0x546ca3=_0x43f50e([0x6c,0x6c,0x63,0x74,0x2d])+_0x57eb94(_0x3e3879(_0x590edf)),_0x1398a5=window[_0x43f50e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43f50e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x546ca3);return _0x1398a5?window[_0x43f50e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cab47(_0x1398a5),0x10)*_0x301c37:null;}function _0x2d51b2(_0x377132){return new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e293a,_0x316f79)=>{_0x377132[_0x43f50e([0x74,0x68,0x65,0x6e])](_0x5e293a,_0x316f79),window[_0x43f50e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x316f79,0x5caace1f^_0x49f949);});}}_0x388fb7[_0x43f50e([0x6f,0x6e])](_0x43f50e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51be14,_0x437adc)=>{if(_0x437adc[0x0]!=_0x590edf)return _0x3dde20(_0x43f50e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x437adc[0x1]={..._0x437adc[0x1],[_0x43f50e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c8c3a};},{[_0x43f50e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43f50e([0x68,0x69,0x67,0x68])}),_0x388fb7[_0x43f50e([0x6f,0x6e])](_0x43f50e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x283198=>{_0x36cabb(_0x283198[_0x43f50e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd205c4=!0x0,_0x51dc41(_0x283198[_0x43f50e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43f50e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43f50e([0x6c,0x6f,0x77])}),_0x203849[_0x43f50e([0x74,0x68,0x65,0x6e])](()=>{_0xd205c4||_0x3dde20(_0x43f50e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6f2628(){return _0x388fb7[_0x43f50e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43f50e([0x76,0x69,0x65,0x77])][_0x43f50e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43f50e([0x61,0x75,0x74,0x6f]);}function _0x2f1753(){_0x388fb7[_0x43f50e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43f50e([0x76,0x69,0x65,0x77])][_0x43f50e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43f50e([0x61,0x75,0x74,0x6f]);}}function _0x3004aa(_0x580d81){const _0x5ea525=[new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cbe24=>setTimeout(_0x3cbe24,0x5ca22413^_0x49f949)),_0x203849[_0x43f50e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x454de7=>{let _0x5d8d3e=0x0;_0x388fb7[_0x43f50e([0x6d,0x6f,0x64,0x65,0x6c])][_0x43f50e([0x6f,0x6e])](_0x43f50e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5ea2eb,_0x238ecf)=>{_0x238ecf[0x0][_0x43f50e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d8d3e++,_0x5d8d3e==(0x5cab1b27^_0x49f949)&&(_0x454de7(),_0x5ea2eb[_0x43f50e([0x6f,0x66,0x66])]());});}))];return window[_0x43f50e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43f50e([0x72,0x61,0x63,0x65])](_0x5ea525)[_0x43f50e([0x74,0x68,0x65,0x6e])](()=>_0x580d81);}async function _0x437736(){await _0x203849,_0x388fb7[_0x43f50e([0x6d,0x6f,0x64,0x65,0x6c])][_0x43f50e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8f41e7,_0x388fb7[_0x43f50e([0x6d,0x6f,0x64,0x65,0x6c])][_0x43f50e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8f41e7,_0x388fb7[_0x43f50e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43f50e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x49ba29(){return _0x4c2299(_0x43f50e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1d7250(_0x43f50e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x43f50e([0x73,0x74,0x61,0x74,0x65])]==_0x43f50e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5223a6(){return _0x4c2299(_0x43f50e([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 _0xb1da33(){return _0x4c2299(_0x43f50e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4d37da(_0x25b727){const _0x41b5ea=_0x4f263a();_0x388fb7[_0x41b5ea]=_0x43f50e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x25b727,_0x25b727!=_0x43f50e([0x56,0x61,0x6c,0x69,0x64])&&_0x437736();}function _0x4f263a(){const _0x232996=window[_0x43f50e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43f50e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43f50e([0x6e,0x6f,0x77])]())[_0x43f50e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43f50e([0x2e]),'');let _0xde7f93=_0x43f50e([0x61]);for(let _0x231d52=0x0;_0x231d52<_0x232996[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x231d52+=0x2){let _0x42e55b=window[_0x43f50e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x232996[_0x43f50e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x231d52,_0x231d52+0x2));_0x42e55b>=_0x485ae5[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42e55b-=_0x485ae5[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xde7f93+=_0x485ae5[_0x42e55b];}return _0xde7f93;}function _0x824216(){const _0x591dbd=_0x1db57a[_0x43f50e([0x73,0x70,0x6c,0x69,0x74])](_0x43f50e([0x2e]));if(0x3!=_0x591dbd[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a7ee1(_0x591dbd[0x1]);function _0x5a7ee1(_0x2765b2){const _0x34fc8e=_0x267a6f(_0x2765b2);return _0x34fc8e&&_0xfa0cc2()?_0x34fc8e:null;function _0xfa0cc2(){const _0x2b1dcb=_0x34fc8e[_0x43f50e([0x6a,0x74,0x69])],_0x46c6cb=window[_0x43f50e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b1dcb[_0x43f50e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b1dcb[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f0a55={..._0x34fc8e,[_0x43f50e([0x6a,0x74,0x69])]:_0x2b1dcb[_0x43f50e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b1dcb[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f0a55[_0x43f50e([0x76,0x63])],_0x3e3879(_0x4f0a55)==_0x46c6cb;}}}async function _0x4b11a3(){let _0x594ab7=!0x0;try{const _0x3aa485=_0x1db57a[_0x43f50e([0x73,0x70,0x6c,0x69,0x74])](_0x43f50e([0x2e])),[_0x254df2,_0x2cdb17,_0xbe4a96]=_0x3aa485;return _0x498e18(_0x254df2),await _0x2b0aff(_0x254df2,_0x2cdb17,_0xbe4a96),_0x594ab7;}catch(_0x2ef2e8){return!0x1;}function _0x498e18(_0x2e31b1){const _0x34ca75=_0x267a6f(_0x2e31b1);_0x34ca75&&_0x34ca75[_0x43f50e([0x61,0x6c,0x67])]==_0x43f50e([0x45,0x53,0x32,0x35,0x36])||(_0x594ab7=!0x1);}async function _0x2b0aff(_0x5905be,_0x50851e,_0x1d6b5e){const _0x36a3ab=window[_0x43f50e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43f50e([0x66,0x72,0x6f,0x6d])](_0xc0b2af(_0x1d6b5e),_0x4b346b=>_0x4b346b[_0x43f50e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x408b5f=new window[(_0x43f50e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43f50e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5905be+_0x43f50e([0x2e])+_0x50851e),_0x53c984=window[_0x43f50e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43f50e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53c984)return;const _0x5e045a=await _0x53c984[_0x43f50e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43f50e([0x6a,0x77,0x6b]),_0x86ef0d,{[_0x43f50e([0x6e,0x61,0x6d,0x65])]:_0x43f50e([0x45,0x43,0x44,0x53,0x41]),[_0x43f50e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43f50e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43f50e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53c984[_0x43f50e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43f50e([0x6e,0x61,0x6d,0x65])]:_0x43f50e([0x45,0x43,0x44,0x53,0x41]),[_0x43f50e([0x68,0x61,0x73,0x68])]:{[_0x43f50e([0x6e,0x61,0x6d,0x65])]:_0x43f50e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5e045a,_0x36a3ab,_0x408b5f)||(_0x594ab7=!0x1);}}function _0x267a6f(_0x1a1cae){return _0x1a1cae[_0x43f50e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43f50e([0x65,0x79]))?JSON[_0x43f50e([0x70,0x61,0x72,0x73,0x65])](_0xc0b2af(_0x1a1cae)):null;}function _0xc0b2af(_0x4668e8){return window[_0x43f50e([0x61,0x74,0x6f,0x62])](_0x4668e8[_0x43f50e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43f50e([0x2b]))[_0x43f50e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43f50e([0x2f])));}function _0x3e3879(_0x1bb6ae){let _0x5419df=0x1505;function _0x3636a2(_0x56c5e7){for(let _0x4da4ec=0x0;_0x4da4ec<_0x56c5e7[_0x43f50e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4da4ec++){const _0x1f2001=_0x56c5e7[_0x43f50e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4da4ec);_0x5419df=(_0x5419df<<0x5)+_0x5419df+_0x1f2001,_0x5419df&=_0x5419df;}}function _0x20fd44(_0x3a1a99){Array[_0x43f50e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a1a99)?_0x3a1a99[_0x43f50e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20fd44):_0x3a1a99&&typeof _0x3a1a99==_0x43f50e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43f50e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a1a99)[_0x43f50e([0x73,0x6f,0x72,0x74])]()[_0x43f50e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17f5cc,_0x33b93a])=>{_0x3636a2(_0x17f5cc),_0x20fd44(_0x33b93a);}):_0x3636a2(window[_0x43f50e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a1a99));}return _0x20fd44(_0x1bb6ae),_0x5419df>>>0x0;}function _0x57eb94(_0x4c7be9){return _0x4c7be9[_0x43f50e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43f50e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43f50e([0x30]));}function _0x1cab47(_0x51d799){return _0x51d799[_0x43f50e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43f50e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43f50e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c2299(_0x1b3472){return _0x388fb7[_0x43f50e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x43f50e([0x68,0x61,0x73])](_0x1b3472);}function _0x1d7250(_0x2c5511){return _0x388fb7[_0x43f50e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x43f50e([0x67,0x65,0x74])](_0x2c5511);}function _0x8f41e7(){}function _0x43f50e(_0x52bd22){return _0x52bd22['map'](_0x1e7b25=>String['fromCharCode'](_0x1e7b25))['join']('');}_0x4d37da(await _0x270ddc());}(this);}set['adapter'](_0x18a56c){if(this['_adapter'])throw new _0x5240f6('track-changes-adapter-already-set',this);this['_adapter']=_0x18a56c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3009d9=!0x1,toJSON:_0x57e394=!0x1}={}){const _0x4b72c9=[];for(const _0x253efa of this['_suggestions']['values']())_0x3009d9&&!_0x253efa['isInContent']||_0x4b72c9['push'](_0x253efa);return _0x57e394?_0x4b72c9['map'](_0x477860=>_0x477860['toJSON']()):_0x4b72c9;}['getSuggestion'](_0x1d447c){const _0x2ad9ee=this['_suggestions']['get'](_0x1d447c);if(!_0x2ad9ee)throw new _0x5240f6('track-changes-suggestion-not-found',this);return _0x2ad9ee;}['hasSuggestion'](_0x568a92){return this['_suggestions']['has'](_0x568a92);}['addSuggestionData'](_0x5aad54){const {authorId:_0x3e54f1,id:_0x215ad7,attributes:_0x80c68d}=_0x5aad54,[_0x1544bf,_0x483441]=_0x5aad54['type']['split'](':'),_0x3c8f7c=this['_suggestions']['get'](_0x215ad7)||this['_createSuggestion'](_0x1544bf,_0x483441,_0x215ad7,_0x3e54f1,_0x80c68d);if(this['_addThreadToSuggestion'](_0x3c8f7c),this['_checkSuggestionCorrectness'](_0x3c8f7c,_0x1544bf,_0x483441||null,_0x3e54f1),_0x3c8f7c['createdAt']=_0x5aad54['createdAt'],_0x3c8f7c['_isDataLoaded']=!0x0,_0x80c68d&&_0x80c68d['@external']){const _0xf8053a=_0x80c68d['@external'],_0x74b9c3=this['_getExternalAuthor'](_0xf8053a['authorName']);_0x3c8f7c['authoredAt']=_0xf8053a['createdAt'],_0x3c8f7c['author']=_0x74b9c3,_0x3c8f7c['isExternal']=!0x0;}else _0x3c8f7c['authoredAt']=_0x5aad54['createdAt'];switch(_0x5aad54['data']&&(_0x3c8f7c['data']=_0x5aad54['data']),_0x5aad54['attributes']&&(_0x3c8f7c['attributes']=_0x5aad54['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3c8f7c['_saved']=!0x0),this['_suggestionState']['get'](_0x3c8f7c)){case'notReady':this['_suggestionState']['set'](_0x3c8f7c,'dataReady');break;case'markerReady':_0x3c8f7c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3c8f7c])),this['_refreshSuggestionsChain'](new Set([_0x3c8f7c])),this['_suggestionState']['set'](_0x3c8f7c,'ready'),this['fire']('suggestionLoaded',_0x3c8f7c)):this['_suggestionState']['set'](_0x3c8f7c,'removed');}return _0x3c8f7c;}['acceptSuggestion'](_0x19ad09){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x39deb4 of _0x19ad09['getAllAdjacentSuggestions']())_0x39deb4['accept']();});});}['discardSuggestion'](_0x52b9f5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x35a1bf of _0x52b9f5['getAllAdjacentSuggestions']())_0x35a1bf['discard']();});});}['enableCommand'](_0x2d0ad1,_0x437998){const _0x5714ae=this['editor']['commands']['get'](_0x2d0ad1);if(!_0x5714ae)throw new _0x5240f6('track-changes-command-not-found',this,{'commandName':_0x2d0ad1});if(this['_enabledCommands']['has'](_0x5714ae))throw new _0x5240f6('track-changes-enable-command-twice',this,{'commandName':_0x2d0ad1});this['_enabledCommands']['add'](_0x5714ae),_0x437998&&_0x5714ae['on']('execute',(_0x6d5723,_0x385024)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x385024['length']>0x0&&_0x385024[_0x385024['length']-0x1]&&_0x385024[_0x385024['length']-0x1]['forceDefaultExecution']?_0x385024['pop']():(_0x6d5723['return']=_0x437998((..._0x55e762)=>_0x5714ae['execute'](..._0x55e762,{'forceDefaultExecution':!0x0}),..._0x385024),_0x6d5723['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4293c0){let _0x461126,_0x647ef;const _0x139879=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x461126=_0x4293c0();}catch(_0x1439c3){_0x647ef=_0x1439c3;}return _0x139879||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x647ef&&_0x5240f6['rethrowUnexpectedError'](_0x647ef,this),_0x461126;}['markInsertion'](_0x4ecdd1,_0x3a877c=null,_0x8df20={}){if(_0x4ecdd1['isCollapsed'])return null;const _0x235e3a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x52775f,meta:_0x4915cc}of this['_findSuggestions'](_0x4ecdd1,'insertion'))if(_0x4915cc['isOwn']){if(!_0x4915cc['isNextTo']){if(_0x4915cc['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x52775f,_0x8df20))continue;return _0x52775f;}if(Xt(_0x52775f,_0x8df20))return _0x52775f;this['_breakSuggestionMarker'](_0x52775f,_0x4ecdd1['start'],_0x4ecdd1['end']);break;}if(_0x3a877c==_0x52775f['subType']&&Xt(_0x52775f,_0x8df20)){const _0x271179=_0x52775f['getFirstRange']();return _0x271179['start']['isEqual'](_0x4ecdd1['end'])?this['_setSuggestionRange'](_0x52775f,this['_model']['createRange'](_0x4ecdd1['start'],_0x271179['end'])):this['_setSuggestionRange'](_0x52775f,this['_model']['createRange'](_0x271179['start'],_0x4ecdd1['end'])),_0x52775f;}}const _0x26e7ee=_0xf1d1da(),_0x209170=_0x235e3a['id'],_0x146957=_0x3a877c?'insertion:'+_0x3a877c:'insertion',_0x5222b1=this['_setSuggestionData']({'id':_0x26e7ee,'type':_0x146957,'createdAt':new Date(),'authorId':_0x209170,'attributes':_0x8df20});return this['_addSuggestionMarker'](_0x146957,_0x26e7ee,_0x209170,_0x4ecdd1),_0x5222b1;}['markMultiRangeInsertion'](_0x1d4581,_0x2d465e='multi',_0x1629a3={}){const _0xb7e41c=this['editor']['plugins']['get']('Users')['me'],_0x5e33de=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2d465e,'join');for(const _0x497857 of this['getSuggestions']())if(_0x497857['author']['id']==_0xb7e41c['id']&&'insertion'==_0x497857['type']&&_0x497857['subType']==_0x2d465e&&Xt(_0x497857,_0x1629a3)&&(_0x5e33de(_0x497857['getRanges'](),_0x1d4581)||_0x5e33de(_0x1d4581,_0x497857['getRanges']()))){for(const _0x40db7b of _0x1d4581)_0x497857['addRange'](_0x40db7b);return _0x497857;}for(const {suggestion:_0x54643a,meta:_0x58fc96}of this['_findSuggestions'](_0x1d4581,'insertion')){if(!_0x58fc96['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x58fc96['containsRangeInObject'])continue;if(!Xt(_0x54643a,_0x1629a3))continue;let _0x2aa11a=!0x0;for(const _0x1639ad of _0x54643a['getRanges']())for(const _0x2666c6 of _0x1d4581)if(!_0x1639ad['containsRange'](_0x2666c6)){_0x2aa11a=!0x1;break;}if(_0x2aa11a)return _0x54643a;}const _0x322e4f=_0xf1d1da(),_0x428d4e=_0xb7e41c['id'],_0x43ab2a='insertion:'+_0x2d465e,_0x11476b=this['_setSuggestionData']({'id':_0x322e4f,'type':_0x43ab2a,'createdAt':new Date(),'authorId':_0x428d4e,'attributes':_0x1629a3});for(const _0x4e1c2a of _0x1d4581)this['_addSuggestionMarker'](_0x43ab2a,_0x322e4f,_0x428d4e,_0x4e1c2a,o['getMultiRangeId']());return _0x11476b;}['markInlineFormat'](_0x1666f0,_0xe8850e,_0x130db7=null,_0x3b477e={}){if(_0x130db7=_0x130db7||Kt(_0xe8850e),_0x1666f0['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1f308=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x130db7,'accept');return this['forceDefaultExecution'](()=>_0x1f308([_0x1666f0],_0xe8850e,_0x3b477e)),null;}const _0x50c561=this['editor']['plugins']['get']('Users')['me'],_0x2b8755=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5ab6cc,meta:_0x48b678}of this['_findSuggestions'](_0x1666f0,'insertion'))_0x48b678['isOwn']&&!_0x48b678['isInsideObject']&&_0x2b8755['push'](..._0x5ab6cc['getRanges']());}const _0x320004=function(_0x3bbcb6,_0x2ef1b0){const _0x1fc610=[];for(const _0x3b0d0f of _0x2ef1b0){const _0x3de3dc=_0x3bbcb6['getIntersection'](_0x3b0d0f);_0x3de3dc&&_0x1fc610['push'](_0x3de3dc);}return _0x1fc610;}(_0x1666f0,_0x2b8755),_0x3fd737=function(_0xe38573,_0x3e1d6c){const _0x1d9bd3=[_0xe38573];for(const _0x5e5bcb of _0x3e1d6c){let _0x3c78d9=0x0;for(;_0x3c78d9<_0x1d9bd3['length'];){const _0x5accc6=_0x1d9bd3[_0x3c78d9]['getDifference'](_0x5e5bcb);_0x1d9bd3['splice'](_0x3c78d9,0x1,..._0x5accc6),_0x3c78d9+=_0x5accc6['length'];}}return _0x1d9bd3;}(_0x1666f0,_0x2b8755);_0x320004['length']&&this['_model']['change'](()=>{for(const _0x45a7c0 of _0x320004){const _0x32620e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x130db7,'accept');this['forceDefaultExecution'](()=>_0x32620e([_0x45a7c0],_0xe8850e,_0x3b477e));}});for(const _0x28ab10 of _0x3fd737){let _0xd03085=null,_0x334529=_0x28ab10['start'],_0x447c5e=_0x28ab10['end'];for(const {suggestion:_0x3df24a,meta:_0x35cf78}of this['_findSuggestions'](_0x28ab10,'formatInline')){if(!_0x35cf78['isOwn'])continue;if(_0x3df24a['subType']!=_0x130db7)continue;if(!Xt(_0x3df24a,_0x3b477e))continue;const _0x11257d=_0x3df24a['getFirstRange']();if(_0x11257d['containsRange'](_0x28ab10,!0x0))return null;_0x334529=_0x334529['isBefore'](_0x11257d['start'])?_0x334529:_0x11257d['start'],_0x447c5e=_0x447c5e['isAfter'](_0x11257d['end'])?_0x447c5e:_0x11257d['end'],_0xd03085?_0x11257d['start']['isBefore'](_0xd03085['getFirstRange']()['start'])?(_0xd03085['removeMarkers'](),_0xd03085=_0x3df24a):_0x3df24a['removeMarkers']():_0xd03085=_0x3df24a;}const _0x554e6b=this['_model']['createRange'](_0x334529,_0x447c5e);if(_0xd03085)this['_setSuggestionRange'](_0xd03085,_0x554e6b);else{const _0x468865=_0xf1d1da(),_0x33c39c=_0x50c561['id'];this['_setSuggestionData']({'id':_0x468865,'type':'formatInline:'+_0x130db7,'data':_0xe8850e,'createdAt':new Date(),'authorId':_0x33c39c,'attributes':_0x3b477e}),this['_addSuggestionMarker']('formatInline:'+_0x130db7,_0x468865,_0x33c39c,_0x554e6b);}}return null;}['markBlockFormat'](_0x2c521a,_0x18b9e4,_0x2613eb=[],_0x1310ce=null,_0x28cf9d={}){_0x18b9e4['formatGroupId']||(_0x18b9e4['formatGroupId']=_0x18b9e4['commandName']),_0x18b9e4['multipleBlocks']=_0x2c521a['is']('range'),_0x1310ce=_0x1310ce||Kt(_0x18b9e4);const _0x2609d0=_0x2613eb['map'](_0x1a2091=>zt(_0x1a2091,this['_model'])),_0x30d3c0=_0x2c521a['is']('range')?_0x2c521a:zt(_0x2c521a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x23478d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1310ce,'accept');return this['forceDefaultExecution'](()=>_0x23478d([_0x30d3c0],_0x18b9e4,_0x28cf9d)),null;}_0x2609d0['push'](_0x30d3c0);let _0x31ef43=!0x0;for(const _0x4d9d9a of _0x2609d0)if(!this['_rangeIsInLocalUserInsertion'](_0x4d9d9a)){_0x31ef43=!0x1;break;}if(_0x31ef43&&'always'!==this['_trackFormatChanges']){const _0x20d3a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1310ce,'accept');return this['forceDefaultExecution'](()=>_0x20d3a7([_0x30d3c0],_0x18b9e4,_0x28cf9d)),null;}let _0x492a52=null,_0xe06b5c=_0x30d3c0['start'],_0x26b5ce=_0x30d3c0['end'];for(const {suggestion:_0x5aae6e,meta:_0x10842b}of this['_findSuggestions'](_0x30d3c0,'formatBlock')){if(!_0x10842b['isOwn'])continue;if(_0x10842b['isNextTo']||_0x10842b['containsRangeInObject']||_0x10842b['isInsideObject'])continue;if(_0x5aae6e['data']['formatGroupId']!=_0x18b9e4['formatGroupId'])continue;if(!Xt(_0x5aae6e,_0x28cf9d))continue;const _0x1c08bd=_0x5aae6e['getFirstRange']();if(_0x5aae6e['subType']==_0x1310ce){if(_0x1c08bd['containsRange'](_0x30d3c0,!0x0))return null;_0xe06b5c=_0xe06b5c['isBefore'](_0x1c08bd['start'])?_0xe06b5c:_0x1c08bd['start'],_0x26b5ce=_0x26b5ce['isAfter'](_0x1c08bd['end'])?_0x26b5ce:_0x1c08bd['end'],_0x492a52?_0x1c08bd['start']['isBefore'](_0x492a52['getFirstRange']()['start'])?(_0x492a52['removeMarkers'](),_0x492a52=_0x5aae6e):_0x5aae6e['removeMarkers']():_0x492a52=_0x5aae6e;}else{const _0x19d69d=_0x30d3c0['getIntersection'](_0x1c08bd);this['_cutOutSuggestionMarker'](_0x5aae6e,_0x19d69d);}}const _0x27389b=this['editor']['plugins']['get']('Users')['me'],_0x116216=_0xf1d1da(),_0x440784=_0x27389b['id'];if(_0x492a52)return this['_setSuggestionRange'](_0x492a52,this['_model']['createRange'](_0xe06b5c,_0x26b5ce)),_0x492a52;{const _0x4f906b=this['_setSuggestionData']({'id':_0x116216,'type':'formatBlock:'+_0x1310ce,'data':_0x18b9e4,'createdAt':new Date(),'authorId':_0x440784,'attributes':_0x28cf9d});return this['_addSuggestionMarker']('formatBlock:'+_0x1310ce,_0x116216,_0x440784,this['_model']['createRange'](_0xe06b5c,_0x26b5ce)),_0x4f906b;}}['markMultiRangeBlockFormat'](_0x12680f,_0x2f7ef3,_0x3c7d66=[],_0x11d981=null,_0x1ba9fd={}){_0x2f7ef3['formatGroupId']||(_0x2f7ef3['formatGroupId']=_0x2f7ef3['commandName']);const _0x116c2b=_0x12680f[0x0];_0x2f7ef3['multipleBlocks']=_0x116c2b['is']('range'),_0x11d981=_0x11d981||Kt(_0x2f7ef3);const _0x3b6deb=_0x3c7d66['map'](_0x1614f3=>zt(_0x1614f3,this['_model'])),_0x317c5b=_0x116c2b['is']('range')?_0x12680f:_0x12680f['map'](_0x433488=>zt(_0x433488,this['_model']));if('never'===this['_trackFormatChanges']){const _0x426fa3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11d981,'accept');return this['forceDefaultExecution'](()=>_0x426fa3(_0x317c5b,_0x2f7ef3,_0x1ba9fd)),null;}_0x3b6deb['push'](..._0x317c5b);let _0x52eb01=!0x0;for(const _0x4537f7 of _0x3b6deb)if(!this['_rangeIsInLocalUserInsertion'](_0x4537f7)){_0x52eb01=!0x1;break;}if(_0x52eb01&&'always'!==this['_trackFormatChanges']){const _0x5a191b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11d981,'accept');return this['forceDefaultExecution'](()=>_0x5a191b(_0x317c5b,_0x2f7ef3,_0x1ba9fd)),null;}const _0x5dfb56=this['editor']['plugins']['get']('Users')['me'];for(const _0x4513f4 of this['getSuggestions']()){if(_0x4513f4['author']['id']!=_0x5dfb56['id'])continue;if('formatBlock'!=_0x4513f4['type']||_0x4513f4['data']['formatGroupId']!=_0x2f7ef3['formatGroupId'])continue;if(!Xt(_0x4513f4,_0x1ba9fd))continue;const _0x3895fb=_0x4513f4['subType']==_0x11d981;for(let _0x3014be=0x0;_0x3014be<_0x317c5b['length'];_0x3014be++){const _0xee7090=_0x317c5b[_0x3014be];for(const _0x3d0ce0 of _0x4513f4['getMarkers']()){const _0x48f0f2=_0x3d0ce0['getRange']();if(_0xee7090['isEqual'](_0x48f0f2)){_0x3895fb?(_0x317c5b['splice'](_0x3014be,0x1),_0x3014be--):_0x4513f4['removeMarker'](_0x3d0ce0['name']);break;}}}}if(0x0==_0x317c5b['length'])return null;const _0x114a3a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11d981,'join');for(const _0x50e9b9 of this['getSuggestions']())if(_0x50e9b9['author']['id']==_0x5dfb56['id']&&'formatBlock'==_0x50e9b9['type']&&_0x50e9b9['data']['formatGroupId']==_0x2f7ef3['formatGroupId']&&_0x50e9b9['subType']==_0x11d981&&Xt(_0x50e9b9,_0x1ba9fd)&&(_0x114a3a(_0x50e9b9['getRanges'](),_0x317c5b)||_0x114a3a(_0x317c5b,_0x50e9b9['getRanges']()))){for(const _0x4499e1 of _0x317c5b)_0x50e9b9['addRange'](_0x4499e1);return _0x50e9b9;}const _0x3d6a88=_0xf1d1da(),_0x5a3525=_0x5dfb56['id'],_0x1f12d1='formatBlock:'+_0x11d981,_0x1b6902=this['_setSuggestionData']({'id':_0x3d6a88,'type':_0x1f12d1,'data':_0x2f7ef3,'createdAt':new Date(),'authorId':_0x5a3525,'attributes':_0x1ba9fd});for(const _0x2ac965 of _0x317c5b)this['_addSuggestionMarker'](_0x1f12d1,_0x3d6a88,_0x5a3525,_0x2ac965,o['getMultiRangeId']());return _0x1b6902;}['markDeletion'](_0x1d9fb1,_0x12344b=null,_0x471115={}){if(_0x1d9fb1['isCollapsed'])return null;const _0x40c15f=this['editor']['plugins']['get']('Users')['me'],_0x5e4153=new _0x1ffa61(_0x1d9fb1['start'],_0x1d9fb1['end']);for(const {suggestion:_0x25880d,meta:_0x3bc0dc}of this['_findSuggestions'](_0x5e4153,'insertion'))if(_0x3bc0dc['isOwn']&&!_0x3bc0dc['isNextTo']){if(_0x25880d['isMultiRange']){const _0xb542c9=_0x25880d['getRanges']()['filter'](_0x20b6a6=>'$graveyard'!=_0x20b6a6['root']['rootName']);_0xb542c9['every'](_0x37c3da=>_0x5e4153['containsRange'](_0x37c3da,!0x0))&&_0x25880d['discard']();if(_0xb542c9['some'](_0x24fc7a=>_0x24fc7a['containsRange'](_0x5e4153,!0x0))){const _0x55b2bc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12344b,'accept');return this['forceDefaultExecution'](()=>_0x55b2bc([_0x5e4153],null,_0x471115)),null;}}else{const _0x44a2f1=_0x5e4153['getIntersection'](_0x25880d['getFirstRange']());null!==_0x44a2f1&&_0x25880d['_onDiscard']([_0x44a2f1],null,_0x471115);}}if(_0x5e4153['detach'](),_0x5e4153['isCollapsed']||'$graveyard'==_0x5e4153['root']['rootName'])return null;let _0x1a731e=null,_0x5cb880=_0x5e4153['start'],_0x6af797=_0x5e4153['end'];const _0x5df735=this['_findSuggestions'](_0x5e4153,'deletion');for(const {suggestion:_0x389eeb,meta:_0x1995f1}of _0x5df735){const _0x93ccab=this['_model']['createRange'](_0x5cb880,_0x6af797);if(_0x1995f1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1995f1['containsRangeInObject']&&!_0x1995f1['isInsideObject'])){if(_0x389eeb['isMultiRange']){if(!Xt(_0x389eeb,_0x471115))continue;let _0x222218=!0x0;for(const _0x24de34 of _0x389eeb['getRanges']()){if(_0x24de34['containsRange'](_0x93ccab,!0x0))return _0x389eeb;_0x93ccab['containsRange'](_0x24de34)||(_0x222218=!0x1);}_0x222218&&_0x389eeb['discard']();}else{const _0x571c56=_0x389eeb['getFirstRange']();if(_0x571c56['containsRange'](_0x93ccab,!0x0))return _0x389eeb;if(!Xt(_0x389eeb,_0x471115)){_0x93ccab['containsRange'](_0x571c56)?_0x389eeb['removeMarkers']():_0x571c56['containsPosition'](_0x5cb880)?_0x5cb880=_0x571c56['end']:_0x571c56['containsPosition'](_0x6af797)&&(_0x6af797=_0x571c56['start']);continue;}_0x5cb880=_0x5cb880['isBefore'](_0x571c56['start'])?_0x5cb880:_0x571c56['start'],_0x6af797=_0x6af797['isAfter'](_0x571c56['end'])?_0x6af797:_0x571c56['end'],_0x471115=Object['assign']({},_0x389eeb['attributes']),_0x1a731e?_0x571c56['start']['isBefore'](_0x1a731e['getFirstRange']()['start'])?(_0x1a731e['removeMarkers'](),_0x1a731e=_0x389eeb):_0x389eeb['removeMarkers']():_0x1a731e=_0x389eeb;}}}if(_0x1a731e)return this['_setSuggestionRange'](_0x1a731e,this['_model']['createRange'](_0x5cb880,_0x6af797)),_0x1a731e;{const _0x539ca8=_0xf1d1da(),_0x2c8ef8=this['_model']['createRange'](_0x5cb880,_0x6af797),_0x10c687=_0x40c15f['id'],_0x2c955f=_0x12344b?'deletion:'+_0x12344b:'deletion',_0x13cc9f=this['_setSuggestionData']({'id':_0x539ca8,'type':_0x2c955f,'createdAt':new Date(),'authorId':_0x10c687,'attributes':_0x471115});return this['_addSuggestionMarker'](_0x2c955f,_0x539ca8,_0x10c687,_0x2c8ef8),_0x13cc9f;}}['markMultiRangeDeletion'](_0x2fe096,_0x4240ec='multi',_0x1a5714={}){const _0x58f0ac=this['editor']['plugins']['get']('Users')['me'],_0xbbadb0=_0x2fe096['map'](_0x1f14ff=>new _0x1ffa61(_0x1f14ff['start'],_0x1f14ff['end'])),_0x452a49=new Set();for(const {suggestion:_0x39b6d6,meta:_0x4b469b}of this['_findSuggestions'](_0xbbadb0,'insertion'))_0x4b469b['isOwn']&&!_0x4b469b['isNextTo']&&_0x452a49['add'](_0x39b6d6);for(const _0x5a6b07 of _0x452a49)if(_0x5a6b07['isMultiRange']){const _0xc15b5a=_0x5a6b07['getRanges']();(!_0x5a6b07['attributes']||!_0x5a6b07['attributes']['skipNestingCheck'])&&(_0xc15b5a['every'](_0x4423aa=>_0xbbadb0['some'](_0x2b0fc2=>_0x2b0fc2['containsRange'](_0x4423aa,!0x0)))&&_0x5a6b07['discard']());if(_0xbbadb0['every'](_0x5cdb37=>_0xc15b5a['some'](_0x24f8cf=>_0x24f8cf['containsRange'](_0x5cdb37,!0x0)))){const _0x3b8037=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4240ec,'accept');return this['forceDefaultExecution'](()=>_0x3b8037(_0x2fe096,null,_0x1a5714)),null;}}else{const _0x2442e1=_0x5a6b07['getFirstRange']();_0xbbadb0['some'](_0x455573=>_0x455573['containsRange'](_0x2442e1,!0x0))&&_0x5a6b07['discard']();if(_0xbbadb0['every'](_0x4b8537=>_0x2442e1['containsRange'](_0x4b8537,!0x0))){const _0x34beb8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4240ec,'accept');return this['forceDefaultExecution'](()=>_0x34beb8(_0xbbadb0,null,_0x1a5714)),null;}}const _0x257c97=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4240ec,'join');let _0x51ea57=null;for(const _0x28a33c of this['getSuggestions']())if(_0x28a33c['author']['id']==_0x58f0ac['id']&&_0x28a33c['isInContent']&&'deletion'==_0x28a33c['type']&&_0x28a33c['subType']==_0x4240ec&&Xt(_0x28a33c,_0x1a5714)&&(_0x257c97(_0x28a33c['getRanges'](),_0xbbadb0)||_0x257c97(_0xbbadb0,_0x28a33c['getRanges']()))){if(_0x51ea57){if(_0x28a33c['commentThread']&&_0x28a33c['commentThread']['length'])continue;for(const _0x2bf364 of _0x28a33c['getRanges']())_0x51ea57['isIntersectingWithRange'](_0x2bf364)||_0x51ea57['addRange'](_0x2bf364);_0x28a33c['removeMarkers']();}else{_0x51ea57=_0x28a33c;for(const _0x55716a of _0xbbadb0)_0x28a33c['isIntersectingWithRange'](_0x55716a)||_0x28a33c['addRange'](_0x55716a);}}if(_0x51ea57)return _0x51ea57;_0x452a49['clear']();for(const {suggestion:_0x116137,meta:_0xfd09b7}of this['_findSuggestions'](_0xbbadb0,'deletion'))_0xfd09b7['isOwn']&&(this['_mergeNestedSuggestions']||!_0xfd09b7['containsRangeInObject']&&!_0xfd09b7['isInsideObject'])&&Xt(_0x116137,_0x1a5714)&&_0x452a49['add'](_0x116137);for(const _0x4b488d of _0x452a49){const _0x2788eb=_0x4b488d['getRanges']();if(!_0x1a5714||!_0x1a5714['skipNestingCheck']){if(_0xbbadb0['every'](_0xec7613=>_0x2788eb['some'](_0x1c4b8d=>_0x1c4b8d['containsRange'](_0xec7613,!0x0))))return _0x4b488d;}(!_0x4b488d['attributes']||!_0x4b488d['attributes']['skipNestingCheck'])&&(_0x2788eb['every'](_0x3bc271=>_0xbbadb0['some'](_0x3243c8=>_0x3243c8['containsRange'](_0x3bc271,!0x0)))&&_0x4b488d['discard']());}const _0x4ffb12=_0xf1d1da(),_0x91d58f=_0x58f0ac['id'],_0x436eb4='deletion:'+_0x4240ec,_0x3e3347=this['_setSuggestionData']({'id':_0x4ffb12,'type':_0x436eb4,'createdAt':new Date(),'authorId':_0x91d58f,'attributes':_0x1a5714});for(const _0x570678 of _0xbbadb0)_0x570678['detach'](),_0x570678['isCollapsed']||'$graveyard'==_0x570678['root']['rootName']||this['_addSuggestionMarker'](_0x436eb4,_0x4ffb12,_0x91d58f,_0x570678,o['getMultiRangeId']());return _0x3e3347;}['markAttributeChange'](_0x3addad,_0x2ff42f,_0x423562,_0x506d42,_0x68765a){if(_0x3addad['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x18fb3c=this['editor']['plugins']['get']('Users')['me']['id'],_0x43d39e=Array['from'](this['_suggestions']['values']())['filter'](_0x40d931=>'attribute'==_0x40d931['type']&&_0x40d931['data']['key']==_0x2ff42f&&_0x40d931['isIntersectingWithRange'](_0x3addad));if('default'===this['_trackFormatChanges']){const _0x4365a0=this['_findSuggestions'](_0x3addad,'insertion')['filter'](({meta:_0x224876})=>_0x224876['isOwn']&&!_0x224876['isInsideObject']&&!_0x224876['isNextTo'])['map'](({suggestion:_0x24b5d8})=>_0x24b5d8);_0x43d39e['unshift'](..._0x4365a0);}const _0x4f7339=new Map([[_0x3addad,_0x423562]]);for(const _0x4293cc of _0x43d39e){const _0x313d3e='attribute'==_0x4293cc['type']?_0x4293cc['data']['oldValue']:void 0x0,_0x26ab2c=_0x4293cc['getFirstRange'](),_0xc7f9e1=Array['from'](_0x4f7339['keys']())['find'](_0x18830c=>_0x18830c['isIntersecting'](_0x26ab2c));if(!_0xc7f9e1)continue;const _0x5cddb1=_0xc7f9e1['getDifference'](_0x26ab2c);this['_isBlockAttribute'](_0x2ff42f)&&'insertion'==_0x4293cc['type']&&0x0!=_0x5cddb1['length']||(_0x4f7339['delete'](_0xc7f9e1),_0x5cddb1['forEach'](_0x5110b5=>{_0x4f7339['set'](_0x5110b5,_0x423562);}),'insertion'!=_0x4293cc['type']&&_0x313d3e!=_0x506d42&&_0x4f7339['set'](_0xc7f9e1['getIntersection'](_0x26ab2c),_0x313d3e));}const _0x1890e8=[];for(const [_0x5bd54f,_0x4d9b38]of _0x4f7339){const _0x2fae6b=_0xf1d1da(),_0x253871={'key':_0x2ff42f,'oldValue':_0x4d9b38,'newValue':_0x506d42};_0x2ff42f['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':_0x2ff42f});const _0x59761c=('attribute:'+(_0x2ff42f+'|'+Kt({'newValue':_0x506d42})))['substring'](0x0,0x3c),_0x2f6f5d=this['_setSuggestionData']({'id':_0x2fae6b,'type':_0x59761c,'data':_0x253871,'createdAt':new Date(),'authorId':_0x18fb3c,'attributes':_0x68765a});_0x1890e8['push'](_0x2f6f5d),this['_addSuggestionMarker'](_0x59761c,_0x2fae6b,_0x18fb3c,_0x5bd54f);}return _0x1890e8;}['enableDefaultAttributesIntegration'](_0x550690){this['enableCommand'](_0x550690,(_0x52573f,..._0x404882)=>{this['_recordAttributeChanges'](()=>{_0x52573f(..._0x404882);});});}['registerBlockAttribute'](_0x1b292f){this['_blockAttributeKeys']['add'](_0x1b292f);}['registerInlineAttribute'](_0x92b12e){this['_inlineAttributeKeys']['add'](_0x92b12e);}['_getAttributeKey'](_0x2fb4ad){return'attribute'==_0x2fb4ad['type']?_0x2fb4ad['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x15ee23,_0x56c077){const _0x171850=_0x15ee23['getFirstMarker']();this['_model']['change'](_0x52192e=>{_0x52192e['updateMarker'](_0x171850,{'range':_0x56c077});});}['_addThreadToSuggestion'](_0x3603e6){const _0x55eaa5=_0x3603e6['id'],_0x4015e9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x55eaa5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4015e9,'threadId':_0x55eaa5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2b5329=this['_commentsRepository']['getCommentThread'](_0x55eaa5);_0x2b5329['unbind']('isRemovable'),_0x2b5329['isRemovable']=!0x1,_0x3603e6['commentThread']=_0x2b5329;}['_checkSuggestionCorrectness'](_0x5e2a69,_0x3f8a07,_0x353100,_0x39d00f){if(_0x5e2a69['type']!=_0x3f8a07||_0x5e2a69['subType']!=_0x353100||_0x5e2a69['creator']['id']!=_0x39d00f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5240f6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xbecb32,_0x5437fd){const _0x5ee246=_0xbecb32['getFirstRange']();if(_0x5437fd['isEqual'](_0x5ee246))_0xbecb32['removeMarkers']();else{if(_0x5ee246['containsRange'](_0x5437fd)){const _0x1b038c=this['_model']['createPositionAt'](_0x5437fd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xbecb32,this['_model']['createRange'](_0x5ee246['start'],_0x1b038c));const _0x443625=_0xf1d1da(),_0x505a44=_0xbecb32['creator']['id'],_0x232949=_0xbecb32['type']+':'+_0xbecb32['subType'];this['_setSuggestionData']({'id':_0x443625,'type':_0x232949,'createdAt':new Date(),'authorId':_0x505a44,'data':_0xbecb32['data'],'attributes':_0xbecb32['attributes']});const _0x4f412b=this['_model']['createPositionAt'](_0x5437fd['end']['parent'],'after'),_0x46932b=this['_model']['createRange'](_0x4f412b,_0x5ee246['end']);this['_addSuggestionMarker'](_0x232949,_0x443625,_0x505a44,_0x46932b);}else{if(_0x5ee246['containsPosition'](_0x5437fd['start'])){const _0x3d5a95=this['_model']['createPositionAt'](_0x5437fd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xbecb32,this['_model']['createRange'](_0x5ee246['start'],_0x3d5a95));}else{const _0x1f4b75=this['_model']['createPositionAt'](_0x5437fd['end']['parent'],'after');this['_setSuggestionRange'](_0xbecb32,this['_model']['createRange'](_0x1f4b75,_0x5ee246['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5363c9){for(const {suggestion:_0xa636aa,meta:_0x31a9a9}of this['_findSuggestions'](_0x5363c9,'insertion')){if(!_0x31a9a9['isOwn'])continue;const _0x14482e=_0xa636aa['getRanges']();for(const _0x323b14 of _0x14482e)if(!_0x5363c9['getDifference'](_0x323b14)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3871b1){const _0x4ec554=this['editor']['plugins']['get']('Users')['getUser'](_0x3871b1);if(!_0x4ec554)throw new _0x5240f6('track-changes-user-not-found',this);return _0x4ec554;}['_getExternalAuthor'](_0x226228){const _0x4c30c4=this['editor']['plugins']['get']('Users'),_0x500a49=_0x583c01('external:'+_0x226228),_0x1433ba=_0x4c30c4['getUser'](_0x500a49);return _0x1433ba||_0x4c30c4['addUser']({'id':_0x500a49,'name':_0x226228});}['_createSuggestion'](_0x1fa0f8,_0x469e34,_0x58ecf4,_0x217716,_0x3682ee){const _0x192833=this['_getAuthorFromId'](_0x217716),_0x50d5b0=this['_suggestionFactory']['buildSuggestion'](_0x1fa0f8,_0x469e34,_0x58ecf4,_0x192833,_0x3682ee,_0x13094a=>{this['_updateSuggestionData'](_0x58ecf4,{'attributes':_0x13094a});const _0xca9844=this['getSuggestion'](_0x58ecf4);this['_joinWithAdjacentSuggestions'](new Set([_0xca9844])),this['_refreshSuggestionsChain'](new Set([_0xca9844]));});return this['listenTo'](_0x50d5b0,'accept',()=>{this['_updateSuggestionData'](_0x58ecf4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x50d5b0,'discard',()=>{this['_updateSuggestionData'](_0x58ecf4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x58ecf4,_0x50d5b0),this['_suggestionState']['set'](_0x50d5b0,'notReady'),_0x50d5b0;}['_splitMarkerName'](_0xacb9a2){const _0xc5fb10=_0xacb9a2['split'](':');return{'group':_0xc5fb10[0x0],'type':_0xc5fb10[0x1],'subType':_0xc5fb10['length']>=0x5?_0xc5fb10[0x2]:null,'id':_0xc5fb10['length']<0x5?_0xc5fb10[0x2]:_0xc5fb10[0x3],'authorId':_0xc5fb10['length']<0x5?_0xc5fb10[0x3]:_0xc5fb10[0x4],'markerCount':0x6==_0xc5fb10['length']?_0xc5fb10[0x5]:null};}['_breakSuggestionMarker'](_0x456d3b,_0x45307b,_0x15015a){const _0x29236d=_0x456d3b['getFirstRange'](),_0x4cbbd8=_0x29236d['start'],_0xed9c2f=_0x29236d['end'];this['_setSuggestionRange'](_0x456d3b,this['_model']['createRange'](_0x4cbbd8,_0x45307b));const _0x972158=_0xf1d1da(),_0x2b3c6c=_0x456d3b['creator']['id'],_0x1dd0b3=_0x456d3b['type']+(_0x456d3b['subType']?':'+_0x456d3b['subType']:'');this['_setSuggestionData']({'id':_0x972158,'type':_0x1dd0b3,'createdAt':new Date(),'authorId':_0x2b3c6c,'originalSuggestionId':_0x456d3b['id'],'attributes':_0x456d3b['attributes'],'data':_0x456d3b['data']});const _0x41f70b=this['_getAttributeKey'](_0x456d3b);('formatBlock'==_0x456d3b['type']||_0x41f70b&&this['_isBlockAttribute'](_0x41f70b))&&(_0x15015a=this['_model']['createPositionBefore'](_0x15015a['parent'])),this['_addSuggestionMarker'](_0x1dd0b3,_0x972158,_0x2b3c6c,this['_model']['createRange'](_0x15015a,_0xed9c2f));}['_findSuggestions'](_0x27d08c,_0x29c3aa=null){const _0xff94d2=[],_0x134bf5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x27d08c)||(_0x27d08c=[_0x27d08c]);for(const _0x266f00 of this['getSuggestions']()){if(!_0x266f00['isInContent'])continue;if(_0x29c3aa&&_0x266f00['type']!=_0x29c3aa)continue;let _0xf5611a=!0x1;for(const _0x3f0e0d of _0x266f00['getRanges']()){for(const _0x3b7715 of _0x27d08c){const _0x1dca2f=_0x3b7715['start']['isEqual'](_0x3f0e0d['end'])||_0x3b7715['end']['isEqual'](_0x3f0e0d['start']);if(_0x1dca2f||_0x3b7715['getIntersection'](_0x3f0e0d)){const _0xdfafa9=_0x3b7715['containsRange'](_0x3f0e0d)&&Gt(this['_model']['schema'],_0x3f0e0d['start'],_0x3b7715),_0x1be09a=_0x3f0e0d['containsRange'](_0x3b7715)&&Gt(this['_model']['schema'],_0x3b7715['start'],_0x3f0e0d);_0xff94d2['push']({'suggestion':_0x266f00,'meta':{'isOwn':_0x134bf5==_0x266f00['author'],'isNextTo':_0x1dca2f,'isInsideObject':_0xdfafa9,'containsRangeInObject':_0x1be09a}}),_0xf5611a=!0x0;break;}}if(_0xf5611a)break;}}return _0xff94d2;}['_addSuggestionMarker'](_0x350d0e,_0x42d0b9,_0x4337df,_0x425a33,_0x47adb7){this['_model']['change'](_0x31572b=>{let _0x356965='suggestion:'+_0x350d0e+':'+_0x42d0b9+':'+_0x4337df;_0x47adb7&&(_0x356965=_0x356965+':'+_0x47adb7),_0x31572b['addMarker'](_0x356965,{'range':_0x425a33,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x523bbe){const _0x4bbe03=_0x523bbe['previous'],_0x29d480=_0x523bbe['next'];_0x523bbe['previous']=null,_0x523bbe['next']=null,null!=_0x4bbe03&&_0x4bbe03['next']==_0x523bbe&&(_0x4bbe03['next']=_0x29d480),null!=_0x29d480&&_0x29d480['previous']==_0x523bbe&&(_0x29d480['previous']=_0x4bbe03),'ready'==this['_suggestionState']['get'](_0x523bbe)&&(this['_suggestionState']['set'](_0x523bbe,'removed'),this['fire']('suggestionUnloaded',_0x523bbe,_0x4bbe03,_0x29d480));}['_setSuggestionData'](_0x39cd10){const _0x3db4bd=_0x39cd10['id'],_0x205d03=this['addSuggestionData'](_0x39cd10);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x10432e=this['editor']['plugins']['get']('PendingActions'),_0x43b884=_0x205d03['hasComments'],_0x3ef9f0=_0x205d03['subType']?_0x205d03['type']+':'+_0x205d03['subType']:_0x205d03['type'],_0x5f01f5=this['editor']['locale'],_0x1464ac=_0x10432e['add'](c(_0x5f01f5,'PENDING_ACTION_SUGGESTION')),_0x2febb8={'id':_0x3db4bd,'type':_0x3ef9f0,'hasComments':_0x43b884,'data':_0x39cd10['data']||null,'originalSuggestionId':_0x39cd10['originalSuggestionId']||null,'attributes':_0x205d03['attributes']};this['_adapter']['addSuggestion'](_0x2febb8)['then'](_0x106df5=>{_0x205d03['_saved']=!0x0,_0x10432e['remove'](_0x1464ac),_0x106df5&&_0x106df5['createdAt']&&(this['_suggestions']['get'](_0x3db4bd)['createdAt']=_0x106df5['createdAt']);})['catch'](_0x547fb8=>{throw _0x57d13b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x205d03['discard']();}),_0x205d03['stopListening'](),this['_suggestions']['delete'](_0x205d03['id']),this['_suggestionState']['delete'](_0x205d03),_0x547fb8;});}return _0x205d03;}['_isBlockAttribute'](_0x167f23){return this['_blockAttributeKeys']['has'](_0x167f23);}['_updateSuggestionData'](_0x3a61cf,_0xeecdc5){const _0x50192d=this['editor']['plugins']['get']('PendingActions'),_0x2f1d88=this['getSuggestion'](_0x3a61cf);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2f1d88['_saved']){const _0x473069=_0x50192d['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3a61cf,_0xeecdc5)['then'](()=>{_0x50192d['remove'](_0x473069);});}else _0x2f1d88['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3a61cf,_0xeecdc5);});}}['_getSuggestionData'](_0x5e378a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5240f6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5e378a);}['_handleNewSuggestionMarker'](_0x5cec49){const {id:_0x4feef2,type:_0x8c84f2,subType:_0x3674fc,authorId:_0x16d8ce}=this['_splitMarkerName'](_0x5cec49),_0x41c1a6=this['_suggestions']['get'](_0x4feef2)||this['_createSuggestion'](_0x8c84f2,_0x3674fc,_0x4feef2,_0x16d8ce,{});switch(this['_checkSuggestionCorrectness'](_0x41c1a6,_0x8c84f2,_0x3674fc,_0x16d8ce),this['_suggestionState']['get'](_0x41c1a6)){case'notReady':this['_getSuggestionData'](_0x4feef2)['then'](_0x2abc2f=>{let _0x732e95=Promise['resolve']();_0x2abc2f['hasComments']&&(_0x732e95=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4feef2})),_0x732e95['then'](()=>{this['addSuggestionData'](_0x2abc2f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x41c1a6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4feef2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x41c1a6,'ready'),this['fire']('suggestionLoaded',_0x41c1a6);break;case'ready':this['fire']('suggestionChanged',_0x41c1a6);}return _0x41c1a6['addMarkerName'](_0x5cec49),_0x41c1a6;}['_refreshSuggestionsChain'](_0x5a8802){const _0x5b9e8c=Array['from'](_0x5a8802),_0x344bdc=_0x5b9e8c['filter'](_0x1f90ea=>'attribute'==_0x1f90ea['type']);this['_refreshAttributeSuggestionsChain'](_0x344bdc);const _0x3f8a6b=_0x5b9e8c['filter'](_0x46dd1f=>!_0x46dd1f['isMultiRange']&&'attribute'!=_0x46dd1f['type']),_0x107948=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49ea60=>!_0x49ea60['isMultiRange']&&'attribute'!=_0x49ea60['type']),_0x2c140c=_0x107948['filter'](_0x320fd8=>!_0x5a8802['has'](_0x320fd8)),_0x54734f=new Map(_0x107948['map'](_0x2881a3=>[_0x2881a3,this['_suggestionFactory']['getSuggestionCallback'](_0x2881a3['type'],_0x2881a3['subType'],'chain')])),_0x10927b=new Map(_0x107948['map'](_0x5e348d=>[_0x5e348d,_0x5e348d['getFirstRange']()])),_0x17c954=new Set(),_0x4c0c36=new Set();for(let _0x11937a=0x0;_0x11937a<_0x3f8a6b['length'];_0x11937a++)_0x4dba98(_0x3f8a6b[_0x11937a],_0x3f8a6b,_0x11937a+0x1);for(let _0x588c3c=0x0;_0x588c3c<_0x3f8a6b['length'];_0x588c3c++)_0x4dba98(_0x3f8a6b[_0x588c3c],_0x2c140c,0x0);const _0x16b848=new Set();for(let _0xc455b1=0x0;_0xc455b1<_0x3f8a6b['length'];_0xc455b1++){const _0x56260e=_0x3f8a6b[_0xc455b1];!_0x4c0c36['has'](_0x56260e)&&_0x56260e['previous']&&(_0x16b848['add'](_0x56260e['previous']),_0x56260e['previous']['next']===_0x56260e&&(_0x56260e['previous']['next']=null),_0x56260e['previous']=null),!_0x17c954['has'](_0x56260e)&&_0x56260e['next']&&(_0x16b848['add'](_0x56260e['next']),_0x56260e['next']['previous']===_0x56260e&&(_0x56260e['next']['previous']=null),_0x56260e['next']=null);}function _0x4dba98(_0x49a2c9,_0x1764ce,_0x5a083){for(let _0x225e6e=_0x5a083;_0x225e6e<_0x1764ce['length'];_0x225e6e++){const _0x4c01a6=_0x294c13(_0x49a2c9,_0x1764ce[_0x225e6e]);_0x4c01a6&&(_0x4c01a6[0x0]['next']=_0x4c01a6[0x1],_0x4c01a6[0x1]['previous']=_0x4c01a6[0x0],_0x17c954['add'](_0x4c01a6[0x0]),_0x4c0c36['add'](_0x4c01a6[0x1]));}}function _0x294c13(_0x2dee1f,_0x46d96c){if(_0x2dee1f['author']['id']!==_0x46d96c['author']['id'])return null;const _0x7c1e11=_0x54734f['get'](_0x2dee1f)(_0x2dee1f,_0x46d96c,_0x10927b['get'](_0x2dee1f),_0x10927b['get'](_0x46d96c));if(!_0x7c1e11)return null;return _0x54734f['get'](_0x46d96c)(_0x2dee1f,_0x46d96c,_0x10927b['get'](_0x2dee1f),_0x10927b['get'](_0x46d96c))?_0x7c1e11[0x1]['commentThread']&&_0x7c1e11[0x1]['commentThread']['length']?null:_0x7c1e11:null;}_0x16b848['size']&&this['_refreshSuggestionsChain'](_0x16b848);}['_refreshAttributeSuggestionsChain'](_0x32e053){if(0x0==_0x32e053['length'])return;const _0x37c4e4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d1b4e=>'attribute'==_0x5d1b4e['type']&&_0x5d1b4e['_isDataLoaded']),_0x26df21=[],_0x3d0448=new Map();for(const _0x4107b1 of _0x37c4e4){const _0x234fe3=_0x583c01(_0x4107b1['attributes']);_0x3d0448['has'](_0x234fe3)||(_0x3d0448['set'](_0x234fe3,_0x26df21['length']),_0x26df21['push']([]));const _0x4aa3e6=_0x3d0448['get'](_0x234fe3);_0x26df21[_0x4aa3e6]['push'](_0x4107b1);}!(function(){_0x26df21['sort']((_0x93d018,_0x5d94f5)=>{const _0x390fad=_0x93d018[0x0]['createdAt'],_0x1f9d02=_0x5d94f5[0x0]['createdAt'];return _0x390fad==_0x1f9d02?_0x93d018[0x0]['attributes']['groupId']<_0x5d94f5[0x0]['attributes']['groupId']?-0x1:0x1:_0x390fad<_0x1f9d02?-0x1:0x1;});for(const _0x2b3738 of _0x26df21)_0x2b3738['sort']((_0x3f2559,_0x25a593)=>_0x3f2559['id']<_0x25a593['id']?-0x1:0x1);}());for(let _0x496421=0x0;_0x496421<_0x26df21['length'];_0x496421++){if(0x0==_0x26df21[_0x496421]['length'])continue;const _0x52a9c0=[];for(let _0x15e9dc=_0x496421+0x1;_0x15e9dc<_0x26df21['length'];_0x15e9dc++)0x0!=_0x26df21[_0x15e9dc]['length']&&_0x8fdba9(_0x26df21[_0x496421],_0x26df21[_0x15e9dc])&&_0x52a9c0['push'](_0x15e9dc);for(const _0x2bc53e of _0x52a9c0)_0x26df21[_0x496421]=_0x26df21[_0x496421]['concat'](_0x26df21[_0x2bc53e]),_0x26df21[_0x2bc53e]=[];}for(const _0x120be3 of _0x26df21)for(let _0x1d4905=0x0;_0x1d4905<_0x120be3['length'];_0x1d4905++){const _0x58dcf0=_0x120be3[_0x1d4905+0x1]||null;_0x120be3[_0x1d4905]['next']!==_0x58dcf0&&(_0x120be3[_0x1d4905]['next']=_0x58dcf0);}for(const _0x3f662b of _0x26df21)for(let _0x547fab=0x0;_0x547fab<_0x3f662b['length'];_0x547fab++){const _0x417006=_0x3f662b[_0x547fab-0x1]||null;_0x3f662b[_0x547fab]['previous']!==_0x417006&&(_0x3f662b[_0x547fab]['previous']=_0x417006);}function _0x8fdba9(_0x55461f,_0x1109a8){if(_0x55461f[0x0]['attributes']['groupId']!==_0x1109a8[0x0]['attributes']['groupId']&&_0x55461f[0x0]['author']!==_0x1109a8[0x0]['author'])return!0x1;if(!function(_0x337bcc,_0x2af085){if(!_0x337bcc['hasComments']&&!_0x2af085['hasComments'])return!0x0;if(_0x337bcc['hasComments']&&_0x2af085['hasComments'])return!0x1;if(_0x337bcc['hasComments']&&_0x2af085['createdAt']<_0x337bcc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2af085['hasComments']&&_0x337bcc['createdAt']<_0x2af085['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x55461f[0x0],_0x1109a8[0x0]))return!0x1;const _0x536ff3=Ft(_0x55461f[0x0]['attributes'],'groupId'),_0x4569a3=Ft(_0x1109a8[0x0]['attributes'],'groupId');if(!_0x3595e6(_0x536ff3,_0x4569a3))return!0x1;return!!_0x55461f['every'](_0x40a86f=>_0x1109a8['some'](_0x283506=>_0x40a86f['getFirstRange']()['isEqual'](_0x283506['getFirstRange']())))&&_0x1109a8['every'](_0x4772f9=>_0x55461f['some'](_0x29d0c1=>_0x4772f9['getFirstRange']()['isEqual'](_0x29d0c1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x12ee10){const _0x5e049d=Array['from'](_0x12ee10),_0x325be9=this['getSuggestions']({'skipNotAttached':!0x0}),_0xff817=_0x325be9['filter'](_0x59d338=>!_0x12ee10['has'](_0x59d338)),_0x5d7a60=new Map(_0x5e049d['map'](_0x4b881f=>[_0x4b881f,this['_suggestionFactory']['getSuggestionCallback'](_0x4b881f['type'],_0x4b881f['subType'],'join')])),_0x211a82=new Map(_0x325be9['map'](_0x4c75b6=>[_0x4c75b6,_0x4c75b6['getRanges']()]));for(let _0x29b423=0x0;_0x29b423<_0x5e049d['length'];_0x29b423++){if(_0x2c42c8(this,_0x5e049d[_0x29b423],_0x5e049d,_0x29b423+0x1))return!0x0;}for(let _0x1052c6=0x0;_0x1052c6<_0x5e049d['length'];_0x1052c6++){if(_0x2c42c8(this,_0x5e049d[_0x1052c6],_0xff817,0x0))return!0x0;}return!0x1;function _0x2c42c8(_0x5405c4,_0x569d57,_0xc7fc2f,_0x25bac0){for(let _0x480f24=_0x25bac0;_0x480f24<_0xc7fc2f['length'];_0x480f24++){const _0x459d04=_0xc7fc2f[_0x480f24];if(_0x459d04['type']!==_0x569d57['type']||_0x459d04['author']['id']!==_0x569d57['author']['id']||_0x459d04['subType']!==_0x569d57['subType'])continue;if(!Qt(_0x569d57,_0x459d04))continue;if('attribute'==_0x569d57['type']&&_0x569d57['data']['oldValue']!=_0x459d04['data']['oldValue'])continue;if('attribute'==_0x569d57['type']&&_0x5405c4['_isBlockAttribute'](_0x569d57['data']['key']))continue;if('formatBlock'==_0x569d57['type']){const _0x47e2a2=_0x5405c4['editor']['model'],_0x8e4125=_0x569d57['getContainedElement']();if(_0x8e4125&&(_0x47e2a2['schema']['isObject'](_0x8e4125)||_0x47e2a2['schema']['isLimit'](_0x8e4125)))continue;}const _0x25dc17=_0x5d7a60['get'](_0x569d57),_0xf107fe=_0x211a82['get'](_0x569d57),_0x378487=_0x211a82['get'](_0x459d04),_0x29d8ba=_0x569d57['commentThread']&&_0x569d57['commentThread']['length'],_0x18ba80=_0x459d04['commentThread']&&_0x459d04['commentThread']['length'];if(!_0x29d8ba&&_0x25dc17(_0x378487,_0xf107fe))return _0x5405c4['_joinSuggestions'](_0x459d04,_0x569d57),_0x211a82['delete'](_0x569d57),!0x0;if(!_0x18ba80&&_0x25dc17(_0xf107fe,_0x378487))return _0x5405c4['_joinSuggestions'](_0x569d57,_0x459d04),_0x211a82['delete'](_0x459d04),!0x0;}return!0x1;}}['_joinSuggestions'](_0x578c84,_0x161cd9){if(_0x578c84['isMultiRange']){for(const _0x64be99 of _0x161cd9['getRanges']())_0x578c84['addRange'](_0x64be99);}else{const _0x2efca4=_0x161cd9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x578c84,this['_model']['createRange'](_0x578c84['getFirstRange']()['start'],_0x2efca4));}_0x161cd9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2192ec,_0x361c71,_0x21dbf5){const _0x4cc90d=_0x2192ec['startsWith']('format')||_0x2192ec['startsWith']('attribute')?'FORMATTING':_0x2192ec['toUpperCase']();return c(this['editor']['locale'],_0x361c71+'_'+_0x4cc90d+'_SUGGESTION_ANNOUNCEMENT',_0x21dbf5);}['_initAriaMarkerChangeAnnouncements'](){const _0x117429=this['editor'];if(!_0x117429['ui'])return;const {ariaLiveAnnouncer:_0x4cd528}=_0x117429['ui'];_0xe0f4f3(this['_model'],({left:_0xf52f36,entered:_0x47ac95})=>{for(const _0x490db7 of _0xf52f36){const {group:_0x2665bb,type:_0x4c8f5b}=this['_splitMarkerName'](_0x490db7['name']);if('suggestion'===_0x2665bb){_0x4cd528['announce'](this['_getMarkerAnnouncementText'](_0x4c8f5b,'LEAVE'));break;}}for(const _0x12dde6 of _0x47ac95){const {group:_0xd65bf,type:_0x342ad0}=this['_splitMarkerName'](_0x12dde6['name']);if('suggestion'===_0xd65bf){_0x4cd528['announce'](this['_getMarkerAnnouncementText'](_0x342ad0,'ENTER',_0x132da3(_0x422745)));break;}}});}['_processAttributeChanges'](_0x1a6b97){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3f54e6=this['editor'],_0x4e190b=_0x3f54e6['model']['document']['differ']['getChanges']();if(0x0==_0x4e190b['length'])return!0x1;const _0xdf0879=[],_0x3b0eb6=_0x4e190b['filter'](_0x1aa24a=>'attribute'==_0x1aa24a['type']),_0x324938=_0x4e190b['filter'](_0x1af63d=>'insert'==_0x1af63d['type']&&'$text'!=_0x1af63d['name']),_0xecb653=_0x4e190b['filter'](_0x1ff070=>'remove'==_0x1ff070['type']&&'$text'!=_0x1ff070['name']);for(const _0x4b84c5 of _0x3b0eb6)_0xdf0879['push']({'key':_0x4b84c5['attributeKey'],'newValue':_0x4b84c5['attributeNewValue'],'oldValue':_0x4b84c5['attributeOldValue'],'range':qt(_0x4b84c5['range'],_0x3f54e6['model'])});for(const _0x29c9c7 of _0x324938){const _0x1a08b8=_0xecb653['find'](_0x3938e3=>_0x3938e3['position']['isEqual'](_0x29c9c7['position']));_0x1a08b8&&_0xdf0879['push']({'key':u,'newValue':_0x29c9c7['name'],'oldValue':_0x1a08b8['name'],'range':_0x3f54e6['model']['createRangeOn'](_0x29c9c7['position']['nodeAfter'])});}return 0x0!=_0xdf0879['length']&&this['_reduceExistingSuggestions'](_0x1a6b97,_0xdf0879);}['_processAttributeSuggestions'](_0x573f0e){let _0x50868e=!0x1;const _0x59aa34=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5e4f2a=>_0x5e4f2a['data']['newRange']&&_0x5e4f2a['name']['startsWith']('suggestion:attribute:'));for(const _0x4e4eb9 of _0x59aa34){const {subType:_0x32d392,id:_0x2b772a}=this['_splitMarkerName'](_0x4e4eb9['name']),_0x52fe91=_0x32d392['split']('|')[0x0];for(const _0x20f641 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x20f641['id']!=_0x2b772a&&'attribute'==_0x20f641['type']&&_0x20f641['data']&&_0x20f641['data']['key']==_0x52fe91&&_0x20f641['getFirstRange']()['isIntersecting'](_0x4e4eb9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x20f641,_0x4e4eb9['data']['newRange'],_0x573f0e),_0x50868e=!0x0);}return _0x50868e;}['_recordAttributeChanges'](_0x29a8e0){this['_recordAttributeSuggestions']=!0x0,_0x29a8e0();}['_isRegisteredAttribute'](_0x439a29){const _0x1da11b=this['_isBlockAttribute'](_0x439a29),_0x25f343=this['_inlineAttributeKeys']['has'](_0x439a29);return _0x1da11b||_0x25f343;}['_reduceExistingSuggestions'](_0xf8909f,_0x5796a4){if(0x0==_0x5796a4['length'])return!0x1;let _0x528658=!0x1;for(const _0x50ce31 of _0x5796a4){const _0x407b7a=this['_findSuggestions'](_0x50ce31['range'],'attribute')['filter'](_0x20cfc2=>!_0x20cfc2['meta']['isNextTo'])['map'](_0x1434fe=>_0x1434fe['suggestion']),_0x343d96=_0x583c01({'newValue':_0x50ce31['newValue']});_0x407b7a['filter'](_0x55518e=>{const [_0x2e1d14,_0x5375b0]=_0x55518e['subType']['split']('|');return _0x2e1d14==_0x50ce31['key']&&_0x5375b0!=_0x343d96;})['forEach'](_0x28a26d=>{this['_reduceSuggestionAttributeRange'](_0x28a26d,_0x50ce31['range'],_0xf8909f),_0x528658=!0x0;});}return _0x528658;}['_reduceSuggestionAttributeRange'](_0x1c088a,_0x4e08ec,_0x5f3998){const _0x2d545c=_0x1c088a['getFirstRange']()['getDifference'](_0x4e08ec);0x0!==_0x2d545c['length']?0x1!==_0x2d545c['length']?this['_breakSuggestionMarker'](_0x1c088a,_0x4e08ec['start'],_0x4e08ec['end']):this['_setSuggestionRange'](_0x1c088a,_0x2d545c[0x0]):_0x5f3998['removeMarker'](_0x1c088a['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4b3155){this['_editor']=_0x4b3155,this['_model']=_0x4b3155['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2d9ab8,_0x8605a0,_0x904e8d,_0x5a5a11,_0x3b8d14,_0x10ee85){return new o(this['_model'],{'type':_0x2d9ab8,'subType':_0x8605a0,'id':_0x904e8d,'author':_0x5a5a11,'creator':_0x5a5a11,'attributes':_0x3b8d14,'onAttributesChange':_0x10ee85,'onAccept':(..._0x1d7d7f)=>this['getSuggestionCallback'](_0x2d9ab8,_0x8605a0,'accept')(..._0x1d7d7f),'onDiscard':(..._0x451e25)=>this['getSuggestionCallback'](_0x2d9ab8,_0x8605a0,'discard')(..._0x451e25)});}['registerCustomCallback'](_0x31643f,_0x295edc,_0x300d40,_0x3b4148){const _0xfd8f63=_0x31643f+':'+_0x295edc+':'+_0x300d40;this['_customCallbacks']['set'](_0xfd8f63,_0x3b4148);}['getSuggestionCallback'](_0x13a4f0,_0x361553,_0x33e108){const _0x217170=_0x13a4f0+':'+_0x361553+':'+_0x33e108;return this['_customCallbacks']['get'](_0x217170)||this['_defaultCallbacks']['get'](_0x13a4f0+':'+_0x33e108);}['_registerDefaultCallbacks'](){const _0x546f1a=()=>!0x1,_0x25c361=_0x269db2=>{_0x269db2['sort']((_0x23a948,_0x2a1ef3)=>_0x23a948['start']['isBefore'](_0x2a1ef3['start'])?0x1:-0x1),this['_model']['change'](_0x233adc=>{for(const _0x420cf8 of _0x269db2){let _0x53293b;_0x53293b=_0x420cf8['end']['isAtEnd']&&_0x420cf8['end']['parent']==_0x420cf8['start']['nodeAfter']?_0x233adc['createSelection'](_0x420cf8['start']['nodeAfter'],'on'):_0x233adc['createSelection'](_0x420cf8),this['_model']['deleteContent'](_0x53293b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x23ca87=(_0x2ad4f4,_0x548954)=>{_0x548954&&this['_model']['change'](_0x46fe52=>{const {commandName:_0x491f11,commandParams:_0x470239=[]}=_0x548954,_0x1a29bc=_0x2ad4f4['map'](_0x483181=>(Lt(_0x483181)&&(_0x483181=this['_model']['createRange'](_0x483181['end'])),_0x483181))['filter'](_0x9d92b9=>'$graveyard'!==_0x9d92b9['root']['rootName']);if(_0x1a29bc['length']<0x1)return;const _0x57320a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x95f5e2=>_0x1ffa61['fromRange'](_0x95f5e2));_0x46fe52['setSelection'](_0x1a29bc);for(const _0x47e668 of this['_editor']['commands']['commands']())_0x47e668['refresh']();_0x470239['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x491f11,..._0x470239);const _0x31be26=_0x57320a['filter'](_0x2b9e1a=>'$graveyard'!=_0x2b9e1a['root']['rootName']);_0x31be26['length']>0x0&&_0x46fe52['setSelection'](_0x31be26);for(const _0x3f4f01 of _0x57320a)_0x3f4f01['detach']();});},_0x514ef1=(_0x56208d,_0x34c338)=>0x1==_0x56208d['length']&&0x1==_0x34c338['length']&&_0x56208d[0x0]['end']['isEqual'](_0x34c338[0x0]['start']),_0xcf2aa5=(_0x22107b,_0x5334c8,_0x2199da,_0x13a66c)=>Wt(_0x22107b,_0x5334c8,_0x2199da,_0x13a66c)?[_0x22107b,_0x5334c8]:Wt(_0x5334c8,_0x22107b,_0x13a66c,_0x2199da)?[_0x5334c8,_0x22107b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x546f1a),this['_defaultCallbacks']['set']('insertion:discard',_0x25c361),this['_defaultCallbacks']['set']('insertion:join',_0x514ef1),this['_defaultCallbacks']['set']('insertion:chain',_0xcf2aa5),this['_defaultCallbacks']['set']('deletion:accept',_0x25c361),this['_defaultCallbacks']['set']('deletion:discard',_0x546f1a),this['_defaultCallbacks']['set']('deletion:join',_0x514ef1),this['_defaultCallbacks']['set']('deletion:chain',_0xcf2aa5),this['_defaultCallbacks']['set']('formatInline:accept',_0x23ca87),this['_defaultCallbacks']['set']('formatInline:discard',_0x546f1a),this['_defaultCallbacks']['set']('formatInline:join',_0x514ef1),this['_defaultCallbacks']['set']('formatInline:chain',_0x546f1a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x23ca87),this['_defaultCallbacks']['set']('formatBlock:discard',_0x546f1a),this['_defaultCallbacks']['set']('formatBlock:join',_0x514ef1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x546f1a),this['_defaultCallbacks']['set']('attribute:accept',_0x546f1a),this['_defaultCallbacks']['set']('attribute:discard',(_0x496fe0,_0x1c56ed)=>{if(!_0x1c56ed)return;const _0x1579cb=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5977b=>{if(_0x1c56ed['key']==u)for(const _0x355ba1 of _0x496fe0){const _0x14bd46=_0x355ba1['start']['nodeAfter'],_0x261e58=_0x1c56ed['oldValue'];_0x5977b['rename'](_0x14bd46,_0x261e58);}else{if(_0x1579cb['_isBlockAttribute'](_0x1c56ed['key'])){for(const _0x27487f of _0x496fe0)void 0x0!==_0x1c56ed['oldValue']?_0x5977b['setAttribute'](_0x1c56ed['key'],_0x1c56ed['oldValue'],_0x27487f['start']['nodeAfter']):_0x5977b['removeAttribute'](_0x1c56ed['key'],_0x27487f['start']['nodeAfter']);}else{for(const _0x17d9d7 of _0x496fe0)_0x1c56ed['oldValue']?_0x5977b['setAttribute'](_0x1c56ed['key'],_0x1c56ed['oldValue'],_0x17d9d7):_0x5977b['removeAttribute'](_0x1c56ed['key'],_0x17d9d7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x514ef1);}}function Gt(_0x3c3470,_0x53acf0,_0x513dd0){for(const _0x44c1f9 of _0x53acf0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x44c1f9['root']==_0x44c1f9)return!0x1;if(!_0x513dd0['containsItem'](_0x44c1f9))return!0x1;if(_0x3c3470['isObject'](_0x44c1f9)||_0x3c3470['isLimit'](_0x44c1f9))return!0x0;}return!0x1;}function Lt(_0x58e758){return _0x58e758['end']['parent']==_0x58e758['start']['nodeAfter']&&_0x58e758['end']['isAtStart'];}function Jt(_0x257ce1,_0x232e2c,_0x37a616,_0x302088){const _0x428fd6=_0x8520ad=>!_0x8520ad['item']['is']('$textProxy')&&!_0x302088['isObject'](_0x8520ad['item']),_0x3edc29=_0x257ce1['start']['getLastMatchingPosition'](_0x428fd6),_0x2c7bed=_0x257ce1['end']['getLastMatchingPosition'](_0x428fd6,{'direction':'backward'});return(!_0x257ce1['start']['isEqual'](_0x3edc29)||!_0x257ce1['end']['isEqual'](_0x2c7bed))&&(_0x3edc29['isBefore'](_0x2c7bed)?_0x37a616['updateMarker'](_0x232e2c,{'range':_0x37a616['createRange'](_0x3edc29,_0x2c7bed)}):_0x37a616['removeMarker'](_0x232e2c),!0x0);}function Kt(_0xec6c95){return _0x583c01(_0xec6c95);}function Ht(_0x1e3020){const _0x1ce7f0=_0x1e3020['start']['nodeAfter'];return _0x1ce7f0&&_0x1ce7f0['is']('element');}function qt(_0x5ab007,_0x2442d3){return null==_0x5ab007['end']['nodeBefore']&&_0x5ab007['end']['parent']==_0x5ab007['start']['nodeAfter']?zt(_0x5ab007['start']['nodeAfter'],_0x2442d3):_0x5ab007;}function zt(_0x270633,_0x532b4a){const _0x4bd49b=_0x532b4a['schema']['isObject'](_0x270633)||_0x532b4a['schema']['isSelectable'](_0x270633);return _0x532b4a['createRange'](_0x532b4a['createPositionAt'](_0x270633,'before'),_0x4bd49b?_0x532b4a['createPositionAfter'](_0x270633):_0x532b4a['createPositionAt'](_0x270633,'end'));}function Wt(_0x55fdad,_0x48fb64,_0x3e8c43,_0xf2b21){return!!Qt(_0x55fdad,_0x48fb64)&&_0x3e8c43['end']['isEqual'](_0xf2b21['start']);}function Qt(_0x307626,_0x29463f){if(!_0x307626['_isDataLoaded']||!_0x29463f['_isDataLoaded'])return!0x1;const _0x515967=new Set(Object['keys'](_0x307626['attributes'])),_0x27564f=new Set(Object['keys'](_0x29463f['attributes']));if(_0x515967['delete']('groupId'),_0x27564f['delete']('groupId'),0x0==_0x515967['size']&&0x0==_0x27564f['size'])return!0x0;if(_0x515967['size']!=_0x27564f['size'])return!0x1;const _0x98ca44={..._0x307626['attributes']},_0x4089fd={..._0x29463f['attributes']};return delete _0x98ca44['groupId'],delete _0x4089fd['groupId'],JSON['stringify'](_0x98ca44)==JSON['stringify'](_0x4089fd);}function Xt(_0x450f2d,_0xc47d96){const _0x4ceb7d=Yt(_0x450f2d['attributes']),_0x41daf7=Yt(_0xc47d96);if(!_0x450f2d['_isDataLoaded'])return!0x1;for(const _0xe145f7 of Object['keys'](_0x41daf7))if(!_0x3595e6(_0x4ceb7d[_0xe145f7],_0x41daf7[_0xe145f7]))return!0x1;return!0x0;}function Yt(_0x54e078){const _0x2e5e55=Object['assign']({},_0x54e078);return delete _0x2e5e55['skipNestingCheck'],delete _0x2e5e55['tablePasteChainId'],_0x2e5e55;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3306e3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3a95be,_0x1cdd32,_0x494db8,_0x5bea8b){super(),this['model']=_0x1cdd32,this['view']=_0x494db8,this['commentThreadController']=_0x5bea8b,this['_editor']=_0x3a95be,this['_acceptCommand']=_0x3a95be['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3a95be['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1c324c,_0x8ea5f9)=>_0x1c324c||_0x8ea5f9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x6de691=>_0x6de691&&this['_editor']['model']['canEditAt'](_0x1cdd32['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3d2a14=>_0x3d2a14&&this['_editor']['model']['canEditAt'](_0x1cdd32['getRanges']())),this['_pendingAction']=null,_0x494db8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x494db8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x494db8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x494db8,'change:isDirty',()=>{_0x494db8['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 _0x2f7d3b=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2f7d3b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x41197b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3bcc74,_0x1f74e0,_0x331a82,_0x173a0c){super(_0x3bcc74),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x132c82(_0x3bcc74,c(_0x3bcc74,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1f74e0['authoredAt']),this['bind']('authoredAt')['to'](_0x1f74e0),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',_0x1f74e0,'authoredAt',this,'descriptionParts',(_0x1308e3,_0x501120,_0x771b11)=>{const _0x1c6cbe=_0x771b11['map'](_0x1d5833=>ls(_0x1d5833['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1308e3-0x1,_0x1f74e0['author']['name'],_0x501120?_0x173a0c['formatDateTime'](_0x501120):'',new DOMParser()['parseFromString'](_0x1c6cbe,'text/html')['body']['textContent']]);}),this['focusables']=new _0x31f9e7(),this['focusTracker']=new _0x3b022f(),this['keystrokes']=new _0x258157(),this['focusCycler']=new _0x38f6e2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1a1640=>_0x1a1640['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1f74e0,this['_localUser']=_0x331a82,this['_config']=_0x173a0c,_0x173a0c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x120934(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x49b193}=this['_config'];this['commentsListView']=new _0x49b193(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',_0x4c1e73=>_0x4c1e73+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x620b2a,_0x75707d)=>_0x620b2a||!!_0x75707d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x56552a}=this['_config'],_0x443f50=new _0x56552a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x449dda=_0x443f50['commentInputView'];return _0x443f50['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x449dda,'value',(_0x4dace8,_0x1f48a4,_0x38381b)=>!!_0x38381b||_0x4dace8&&!_0x1f48a4),_0x449dda['on']('submit',(_0x23463d,_0x28b2d4)=>{this['fire']('addComment',_0x28b2d4),_0x449dda['editor']['setData']('');}),_0x449dda['on']('cancel',()=>this['focus']()),_0x449dda['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x443f50;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x366794,_0x4db3b1,_0xa982db,_0x2ede0b){super(_0x366794,_0x4db3b1,_0xa982db,_0x2ede0b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4e3706=>_0x4e3706&&_0x4e3706[0x0]?_0x4e3706[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3a7232,_0x12f616)=>{let _0x2de81e='';for(const _0x350910 of _0x3a7232)_0x2de81e+='<p>'+ls(_0x350910['content'],_0x350910['color'])+'</p>';return _0x12f616?_0x2de81e:ti(_0x2de81e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2ede0b['SuggestionView'](_0x366794,_0x4db3b1,{'formatDateTime':_0x2ede0b['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 _0xad4b73=this['bindTemplate'],_0x190d19=[this['suggestionView']];return this['commentsListView']&&_0x190d19['push'](this['commentsListView']),this['commentThreadInputView']&&_0x190d19['push'](this['commentThreadInputView']),_0x190d19['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xad4b73['if']('isActive','ck-suggestion-wrapper--active'),_0xad4b73['to']('type',_0x58b853=>'ck-suggestion-'+_0x58b853),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':_0xad4b73['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x190d19};}['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 _0x41197b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x8d29d,_0x1618e8,_0x213753){super(_0x8d29d),this['_model']=_0x1618e8,this['_config']=_0x213753,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1618e8),this['acceptButton']=this['_createButton'](c(_0x8d29d,'Accept\x20suggestion'),_0x389e43,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x8d29d,'Discard\x20suggestion'),_0x3297e3,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1e3926(_0x8d29d,_0x1618e8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x31f9e7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3b022f(),this['keystrokes']=new _0x258157(),this['focusCycler']=new _0x38f6e2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4334b9=>_0x4334b9['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x533765=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x533765['innerHTML']=this['description'],this['on']('change:description',(_0x53af44,_0x1a6469,_0x19b2cc)=>{_0x533765['innerHTML']=_0x19b2cc;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x42dd6e=this['bindTemplate'],_0x3ff6e7=[{'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':_0x42dd6e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x42dd6e['to']('authoredAt',_0x2d5135=>this['_config']['formatDateTime'](_0x2d5135))}]}]},{'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']&&_0x3ff6e7['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':_0x3ff6e7}]};}['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'](_0x3c14b6,_0x2d496a,_0x4cbee7,_0x419be1,_0x401a70){const _0x4f0731=new _0x14e86c(this['locale']);return _0x4f0731['set']({'label':_0x3c14b6,'icon':_0x2d496a,'tooltip':!0x0,'tooltipPosition':_0x401a70}),_0x4f0731['extendTemplate']({'attributes':{'class':_0x4cbee7}}),_0x4f0731['on']('execute',()=>{this['fire'](_0x419be1,this['_model']['id']);}),_0x4f0731;}['_setupKeyboardNavigation'](){const _0x26c6c2=this['element'];this['keystrokes']['listenTo'](_0x26c6c2);for(const _0x12948c of this['focusables'])this['focusTracker']['add'](_0x12948c['element']),this['keystrokes']['listenTo'](_0x12948c['element']);this['keystrokes']['set']('enter',(_0x9d4349,_0xc10b97)=>{_0x26c6c2===_0x9d4349['target']&&(this['focusCycler']['focusFirst'](),_0xc10b97());}),this['keystrokes']['set']('esc',(_0x3e2dfe,_0x2851a4)=>{_0x26c6c2!==_0x3e2dfe['target']&&(this['focus'](),_0x2851a4());});}}class d extends _0x2bb590{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x75af00,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x251c62){super(_0x251c62),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xbee52a=this['editor']['config'];_0xbee52a['define']('trackChanges.SuggestionThreadView',fe),_0xbee52a['define']('trackChanges.SuggestionView',we),_0xbee52a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xbee52a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4d2e4b,_0x321445){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3ef7a1,_0x3b1a13]of this['_handleControllerBuffer']){const _0x47d785=this['_suggestionToController']['has'](_0x3ef7a1);_0x47d785||_0x3b1a13?_0x47d785&&_0x3b1a13&&this['_destroyController'](_0x3ef7a1):this['_initializeController'](_0x3ef7a1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4d2e4b,_0x321445);}['init'](){const _0x35ff17=this['editor'],_0xa22dec=_0x35ff17['plugins']['get']('TrackChangesEditing'),_0x4ffddd=_0x35ff17['plugins']['get']('Annotations'),_0x29a220=_0x35ff17['plugins']['get']('EditorAnnotations'),_0x5b8b23=_0x35ff17['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x29a220['addSourceCollector'](()=>{const _0x22c188=[];for(const [_0x4f8740,_0x344246]of Array['from'](this['_suggestionToController'])){const _0x608564=_0x4f8740['getAllAdjacentSuggestions'](),_0xf98d7a=[];for(const _0x4fa088 of _0x608564){if(!_0x4fa088['isInContent'])continue;if(_0x4fa088['isMultiRange']){_0xf98d7a['push'](..._0x4fa088['getRanges']());continue;}const _0x592b3c=_0x4fa088['getFirstRange']();if(_0xf98d7a['length']>0x0){const _0x3acd5f=_0xf98d7a[0x0]['getJoined'](_0x592b3c);if(_0x3acd5f){_0xf98d7a[0x0]=_0x3acd5f;continue;}}_0xf98d7a['push'](_0x592b3c);}_0x22c188['push']([_0x344246['view'],_0xf98d7a]);}return _0x22c188;}),this['listenTo'](_0xa22dec,'suggestionLoaded',(_0x1d1fd7,_0x3833a9)=>{this['listenTo'](_0x3833a9,'change:previous',(_0x5952e1,_0xf4696f,_0x5cec30,_0x3144ab)=>{_0x3833a9['isInContent']&&(null==_0x5cec30?(this['_updateController'](_0x3144ab['head']),this['_handleSuggestionControllerDelayed'](_0x3833a9,!0x1)):(this['_updateController'](_0x5cec30['head']),null==_0x3144ab&&this['_handleSuggestionControllerDelayed'](_0x3833a9,!0x0)));}),null!==_0x3833a9['previous']?this['_updateController'](_0x3833a9['head']):this['_handleSuggestionControllerDelayed'](_0x3833a9,!0x1);}),this['listenTo'](_0xa22dec,'suggestionUnloaded',(_0x4c8b42,_0x113963,_0x3ab9aa)=>{this['stopListening'](_0x113963,'change:previous'),this['_handleControllerBuffer']['delete'](_0x113963),this['_suggestionToController']['has'](_0x113963)&&this['_destroyController'](_0x113963),_0x3ab9aa&&this['_updateController'](_0x3ab9aa['head']);}),this['listenTo'](_0xa22dec,'suggestionChanged',(_0x21dac6,_0x201579)=>{this['_updateController'](_0x201579);}),this['listenTo'](_0x4ffddd,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5b8b23,'addComment',(_0x53f79f,{threadId:_0x54f7c4,isFromAdapter:_0x1f50c0})=>{if(_0x1f50c0||!_0xa22dec['hasSuggestion'](_0x54f7c4))return;const _0x267026=_0xa22dec['getSuggestion'](_0x54f7c4);this['_suggestionToController']['get'](_0x267026)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x25ae85=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5b9e65;for(const _0x55dcc9 in _0x25ae85){const _0x21d0ee=_0x55dcc9,_0x362f19=_0x25ae85[_0x21d0ee];if('trackChangesLicenseKeyValid'==_0x362f19||'trackChangesLicenseKeyInvalid'==_0x362f19||'trackChangesLicenseKeyExpired'==_0x362f19||'trackChangesLicenseKeyDomainLimit'==_0x362f19||'trackChangesLicenseKeyNotAllowed'==_0x362f19||'trackChangesLicenseKeyEvaluationLimit'==_0x362f19||'trackChangesLicenseKeyTrialLimit'==_0x362f19||'trackChangesLicenseKeyUsageLimit'==_0x362f19){delete _0x25ae85[_0x21d0ee],_0x5b9e65=_0x362f19,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5b9e65&&_0x25ae85['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5b9e65&&_0x25ae85['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5b9e65&&_0x25ae85['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5b9e65&&_0x25ae85['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5b9e65&&_0x25ae85['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5b9e65&&_0x25ae85['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5b9e65&&_0x25ae85['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2a5ec8=this['editor']['plugins']['get']('Annotations'),_0x2a12ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x63d188=Array['from'](_0x2a5ec8['activeAnnotations'],_0x35fcd2=>_0x35fcd2['innerView'])['filter'](_0x20fca8=>this['_viewToController']['has'](_0x20fca8)),_0x31afd6=[];for(const _0x3c2184 of _0x63d188){const _0x2e81b8=this['_viewToController']['get'](_0x3c2184)['model']['getAllAdjacentSuggestions']();_0x31afd6['push'](..._0x2e81b8['reduce']((_0x733a8b,_0x1c0527)=>[..._0x733a8b,..._0x1c0527['getMarkerNames']()],[]));}_0x2a12ea['activeMarkers']=_0x31afd6;}['_addUIComponentsToFactory'](){const _0x51adce=this['editor'],_0x112ab2=_0x51adce['locale'],_0x2b1da2=c(_0x112ab2,'Track\x20changes'),_0x5ead97=new _0x460b9d([{'type':'switchbutton','model':new _0x9558c3({'withText':!0x0,'isToggleable':!0x0,'label':_0x2b1da2,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x9558c3({'withText':!0x0,'label':c(_0x112ab2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9558c3({'withText':!0x0,'label':c(_0x112ab2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9558c3({'withText':!0x0,'label':c(_0x112ab2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9558c3({'withText':!0x0,'label':c(_0x112ab2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x51adce['plugins']['has']('TrackChangesPreview')&&_0x5ead97['addMany']([{'type':'separator'},{'type':'button','model':new _0x9558c3({'withText':!0x0,'label':c(_0x112ab2,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x479966 of _0x5ead97)if(ke(_0x479966)){const _0x3ceb3c=_0x51adce['commands']['get'](_0x479966['model']['commandName']);_0x479966['model']['bind']('isOn','isEnabled')['to'](_0x3ceb3c,'value','isEnabled');}_0x51adce['ui']['componentFactory']['add']('trackChanges',_0xf2d2eb=>this['_createToolbarButton'](_0xf2d2eb,_0x5ead97,_0x2b1da2)),_0x51adce['ui']['componentFactory']['add']('menuBar:trackChanges',_0x422e31=>this['_createMenuBarMenu'](_0x422e31,_0x5ead97,_0x2b1da2));}['_createToolbarButton'](_0x881e60,_0x23f5a0,_0x52eea6){const _0x2f8e6b=_0x1516b7(_0x881e60,_0x1d75c1),_0x2a19b0=this['editor']['commands']['get']('trackChanges');_0x2f8e6b['buttonView']['set']({'tooltip':_0x52eea6,'label':_0x52eea6,'icon':_0x54e32c}),_0x2f8e6b['buttonView']['bind']('isOn')['to'](_0x2a19b0,'value'),_0x2f8e6b['buttonView']['on']('execute',()=>{_0x2a19b0['execute'](),this['editor']['editing']['view']['focus']();}),_0x41a8eb(_0x2f8e6b,_0x23f5a0,{'role':'menu'});const _0x1f1899=[];for(const _0x49b44d of _0x23f5a0)ke(_0x49b44d)&&_0x1f1899['push'](this['editor']['commands']['get'](_0x49b44d['model']['commandName']));const _0x31e2d2=_0x2f8e6b['buttonView'];return _0x31e2d2['actionView']['unbind']('isEnabled'),_0x31e2d2['arrowView']['unbind']('isEnabled'),_0x31e2d2['actionView']['bind']('isEnabled')['to'](_0x2a19b0,'isEnabled'),_0x31e2d2['arrowView']['bind']('isEnabled')['toMany'](_0x1f1899,'isEnabled',(..._0x16d41f)=>_0x16d41f['some'](_0x2a17ca=>_0x2a17ca)),_0x2f8e6b['on']('execute',_0x514cba=>{this['editor']['execute'](_0x514cba['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2f8e6b;}['_createMenuBarMenu'](_0x507ae7,_0x16b104,_0x13dae1){const _0x485598=new _0x1ad69d(_0x507ae7),_0x3b9d55=this['editor']['commands']['get']('trackChanges');_0x485598['buttonView']['set']({'label':_0x13dae1,'icon':_0x54e32c});const _0x19cc26=new _0x232bed(_0x507ae7);for(const _0x3c3ae9 of _0x16b104){if('separator'==_0x3c3ae9['type']){_0x19cc26['items']['add'](new _0xd89dd3(_0x507ae7));continue;}const _0x1fc330=new _0x5370ba(_0x507ae7,_0x485598),_0x1b21c5=new _0x1c2694(_0x507ae7),_0x694796=_0x3c3ae9['model'];_0x1b21c5['bind'](...Object['keys'](_0x694796))['to'](_0x694796),_0x1b21c5['delegate']('execute')['to'](_0x485598),_0x1b21c5['on']('execute',()=>{this['editor']['execute'](_0x694796['commandName']),this['editor']['editing']['view']['focus']();}),_0x1fc330['children']['add'](_0x1b21c5),_0x19cc26['items']['add'](_0x1fc330);}return _0x485598['bind']('isEnabled')['to'](_0x3b9d55,'isEnabled'),_0x485598['panelView']['children']['add'](_0x19cc26),_0x485598;}['_initializeController'](_0x1d9b0c){const _0x5cfb03=this['editor'],_0x46a1d5=_0x5cfb03['config'],_0x3550fe=_0x5cfb03['plugins']['get']('Annotations'),_0x543d3c=_0x5cfb03['plugins']['get']('CommentsRepository'),_0x3977c1=_0x5cfb03['plugins']['get']('EditorAnnotations'),_0x361fd7=_0x5cfb03['plugins']['get'](_0x75af00)['me'],_0x34f130=_0x46a1d5['get']('trackChanges')['SuggestionThreadView'],_0x1424dd=_0x46a1d5['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x28e86e,CommentThreadInputView:_0x2f499d}=_0x5cfb03['plugins']['get']('CommentsUI');let _0x1451fa,_0x596fc7,_0x5b1a64;this['_annotationViews']['has'](_0x1d9b0c['id'])?(_0x596fc7=this['_annotationViews']['get'](_0x1d9b0c['id']),_0x1451fa=_0x596fc7['mainView']):(_0x1451fa=new _0x34f130(_0x5cfb03['locale'],_0x1d9b0c,_0x361fd7,{'disableComments':this['_disableComments'],'editorConfig':{..._0x46a1d5['get']('comments.editorConfig'),'licenseKey':_0x46a1d5['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x46a1d5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x46a1d5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x46a1d5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x488bdc(_0x46a1d5['get']('locale'),_0x5cfb03['locale']),'CommentView':_0x46a1d5['get']('comments')['CommentView'],'CommentsListView':_0x28e86e,'CommentThreadInputView':_0x2f499d,'SuggestionView':_0x1424dd}),_0x1451fa['suggestionView']['acceptButton']['on']('execute',()=>{_0x5cfb03['editing']['view']['focus']();}),_0x1451fa['suggestionView']['discardButton']['on']('execute',()=>{_0x5cfb03['editing']['view']['focus']();}),_0x596fc7=_0x3550fe['createAnnotationView'](this['editor']['locale'],_0x1451fa),_0x596fc7['bind']('isDirty')['to'](_0x1451fa,'isDirty'),_0x596fc7['bind']('length')['to'](_0x1451fa),_0x596fc7['bind']('type')['to'](_0x1451fa,'type',_0x6cb0ff=>'suggestion-'+_0x6cb0ff),_0x1451fa['on']('escape',()=>{_0x5b1a64['fire']('escape');}),this['_annotationViews']['set'](_0x1d9b0c['id'],_0x596fc7));const _0x26762f=_0x543d3c['createCommentThreadController'](_0x1d9b0c['commentThread'],_0x1451fa),_0x15ccbe=new pe(_0x5cfb03,_0x1d9b0c,_0x1451fa,_0x26762f),_0x4240d1=_0x1d9b0c['getAllAdjacentSuggestions']()['filter'](_0x441ede=>_0x441ede['isInContent']);_0x1451fa['descriptionParts']=_0x5cfb03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4240d1),this['_suggestionToController']['set'](_0x1d9b0c,_0x15ccbe),this['_viewToController']['set'](_0x1451fa,_0x15ccbe),_0x5b1a64=_0x3550fe['createAnnotation']({'view':_0x596fc7,'target':()=>{const _0x5f160e=[],_0x22412b=_0x1d9b0c['getAllAdjacentSuggestions']()['filter'](_0x434f71=>_0x434f71['isInContent']);for(const _0x407791 of _0x22412b)_0x5f160e['push'](..._0x407791['getMarkers']());return _0x5d309a(_0x5cfb03['editing'],_0x5f160e);},'type':()=>'suggestion-'+_0x15ccbe['view']['type']}),_0x543d3c['_bindAnnotationToEditors'](_0x1451fa,_0x5b1a64),_0x3550fe['add'](_0x5b1a64),_0x3977c1['registerAnnotation'](_0x5b1a64);}['_destroyController'](_0x34f4ce){const _0x19c706=this['editor']['plugins']['get']('CommentsRepository'),_0x70a923=this['editor']['plugins']['get']('Annotations'),_0xb6ebcd=this['_suggestionToController']['get'](_0x34f4ce),_0x56f81d=_0xb6ebcd['view'],_0x5e8768=_0x70a923['getByInnerView'](_0x56f81d);_0x19c706['_unbindEditors'](_0x56f81d),_0x5e8768&&_0x70a923['remove'](_0x5e8768),this['_suggestionToController']['delete'](_0x34f4ce),this['_viewToController']['delete'](_0x56f81d),_0xb6ebcd['destroy']();}['_updateController'](_0x4c3179){if(!_0x4c3179['isInContent']||!this['_suggestionToController']['has'](_0x4c3179))return;const _0x1040f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x374beb=this['_suggestionToController']['get'](_0x4c3179),_0x5b6cbe=_0x4c3179['getAllAdjacentSuggestions']();_0x374beb['view']['descriptionParts']=_0x1040f5['descriptionFactory']['getDescriptions'](_0x5b6cbe);}['destroy'](){for(const _0x15c949 of this['_suggestionToController']['keys']())this['_destroyController'](_0x15c949);for(const _0x49f1bf of this['_annotationViews']['values']())_0x49f1bf['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3413c5){return'model'in _0x3413c5;}class k extends _0x2bb590{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xde153b){this['editor']['plugins']['get'](p)['adapter']=_0xde153b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x39348c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x39348c);}['getSuggestions']({skipNotAttached:_0x109c69=!0x1,toJSON:_0x43cba6=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x109c69,'toJSON':_0x43cba6});}['getSuggestion'](_0x2c155a){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2c155a);}}const w=['Pagination'];class T extends _0x2bb590{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4bd2ad=this['editor'];if(_0x4bd2ad['config']['define']('trackChangesData.editorCreator',_0xb787fd=>{const _0x5ea911=_0x4bd2ad['model']['document']['getRootNames']()['reduce']((_0x5207e9,_0x4b9b27)=>(_0x5207e9[_0x4b9b27]='',_0x5207e9),{});return _0x4bd2ad['constructor']['create'](_0x5ea911,_0xb787fd);}),'function'!=typeof _0x4bd2ad['config']['get']('trackChangesData')['editorCreator'])throw new _0x5240f6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xf5bc36){return N(this['editor'],!0x0,_0xf5bc36);}['getDataWithDiscardedSuggestions'](_0x497244){return N(this['editor'],!0x1,_0x497244);}}class D extends _0x2bb590{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34e002){function _0x16b667(_0x1a472b){return _0x1a472b['map'](_0x37a83b=>String['fromCharCode'](_0x37a83b))['join']('');}super(_0x34e002),this['result']='end',_0x34e002[_0x16b667([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16b667([0x76,0x69,0x65,0x77])][_0x16b667([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16b667([0x61,0x75,0x74,0x6f]),_0x34e002[_0x16b667([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x16b667([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16b667([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x16b667([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x16b667([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(_0x4215ae){return void 0x0!==_0x4215ae['getRootsAttributes'];}async function N(_0x28ea0b,_0xfe52a1,_0x5af0dc){const _0x8b0039=_0x543b69(_0x28ea0b,w);_0x8b0039['plugins']['push'](p,D),_0x8b0039['rootsAttributes']=Ge(_0x28ea0b)?_0x28ea0b['getRootsAttributes']():void 0x0;const _0x53dc4b=document['createDocumentFragment'](),_0x3d5a3d=_0x28ea0b['config']['get']('trackChangesData')['editorCreator'],_0xa65594=await _0x3d5a3d(_0x8b0039,()=>function(_0x2d2a70){const _0x187028=document['createElement']('div');return _0x2d2a70['appendChild'](_0x187028),_0x187028;}(_0x53dc4b));!function(_0x329961,_0x4707fe){const _0x31f07d=_0x329961['model']['document']['getRootNames']()['reduce']((_0x110c33,_0x438163)=>(_0x110c33[_0x438163]=_0x329961['data']['get']({'rootName':_0x438163}),_0x110c33),{}),_0x5bab56=_0x329961['plugins']['get']('Users')['users']['map'](_0xb38bf8=>({'id':_0xb38bf8['id'],'name':_0xb38bf8['name']})),_0x1799f7=_0x329961['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2bd7c3=_0x329961['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2541bd=_0x4707fe['plugins']['get']('Users'),_0x429000=_0x4707fe['plugins']['get']('TrackChangesEditing'),_0x2dac1b=_0x4707fe['plugins']['get']('CommentsRepository');for(const _0x5ef518 of _0x2dac1b['getCommentThreads']())_0x5ef518['remove']();for(const _0x327a42 of _0x5bab56)_0x2541bd['getUser'](_0x327a42['id'])||_0x2541bd['addUser'](_0x327a42);_0x2541bd['me']||_0x2541bd['useAnonymousUser']();for(const _0x570a63 of _0x2bd7c3)_0x2dac1b['addCommentThread'](_0x570a63);for(const _0x152e4b of _0x1799f7)_0x429000['addSuggestionData'](_0x152e4b);_0x4707fe['data']['set'](_0x31f07d);}(_0x28ea0b,_0xa65594),_0xa65594['execute'](_0xfe52a1?'acceptAllSuggestions':'discardAllSuggestions');const _0x1f8fdc=Ge(_0xa65594)?_0xa65594['getFullData'](_0x5af0dc):_0xa65594['data']['get'](_0x5af0dc);return await _0xa65594['destroy'](),_0x1f8fdc;}class Me extends _0x41197b{['options'];constructor(_0x3d4224,_0x516761){super(_0x3d4224),this['options']=_0x516761,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'](_0x43ae76,_0x371e5f){if(!this['element'])return;const _0x3bfb1e=[];for(const [_0x46447e,_0x131d07]of _0x43ae76){const _0x38bdc2=document['createElement']('div');_0x38bdc2['setAttribute']('data-ck-root-name',_0x46447e),_0x38bdc2['className']=_0x131d07['classes']+'\x20ck-track-changes-preview__root-container',_0x38bdc2['innerHTML']=_0x131d07['content'],_0x3bfb1e['push'](_0x38bdc2);}_0x371e5f(this['element'],_0x3bfb1e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5567c6{constructor(_0x3a9573){super(_0x3a9573),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x18b404=this['editor'],_0x3bb335=_0x18b404['locale'],_0x367180=_0x18b404['plugins']['get']('Dialog');let _0x4451c8;const _0x5ae06e=function(_0x44890c){const _0x4fc0d8={};if('editables'in _0x44890c['ui']['view']){for(const [_0x3a3719,_0x5e6ac7]of Object['entries'](_0x44890c['ui']['view']['editables']))_0x4fc0d8[_0x3a3719]=_0x5e6ac7['element'];}else _0x4fc0d8[_0x44890c['model']['document']['getRootNames']()[0x0]]=_0x44890c['ui']['view']['editable']['element'];return _0x4fc0d8;}(_0x18b404),_0x4b74b0=function(_0x4f5d0f){let _0x16f0a4=0x0;for(const _0x3b557b of Object['values'](_0x4f5d0f))_0x16f0a4=Math['max'](_0x16f0a4,_0x3b557b['getBoundingClientRect']()['width']);let _0x17c763=0x0;for(const _0x11328b of Object['values'](_0x4f5d0f))_0x17c763+=_0x11328b['getBoundingClientRect']()['height'];const _0xe0895d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x542765=Math['min'](_0x17c763,_0xe0895d);return{'width':_0x16f0a4,'height':_0x542765};}(_0x5ae06e);_0x367180['show']({'id':'finalContentPreview','title':c(_0x3bb335,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3bb335,{'dialogRects':_0x4b74b0}),'onHide':()=>{_0x4451c8['detachFromDom']();},'onShow':()=>{_0x18b404['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x79047f=>{const _0x41ff70=this['_standarizeRootsData'](_0x79047f,_0x18b404,_0x5ae06e);_0x367180['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x41ff70,_0x18b404['config']['get']('trackChanges.preview.renderFunction'));}),_0x4451c8=new _0x3e3912(_0x3bb335,[_0x367180['view']]),_0x4451c8['attachToDom'](),_0x4451c8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x18b404['once']('destroy',()=>{_0x4451c8['detachFromDom']();});const _0x7eebc2=_0x367180['view']['headerView']['class'];_0x367180['view']['headerView']['class']=_0x7eebc2?_0x7eebc2+'\x20ck-reset_all':'ck-reset_all',_0x367180['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x367180['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3d08f7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x42f300=_0x3d08f7['previewMode'],_0x256bd4={};if('$labels'===_0x42f300){for(const _0x181ff0 of _0x3d08f7['getMergeFieldsIds']())_0x256bd4[_0x181ff0]=_0x3d08f7['getLabel'](_0x181ff0)||_0x181ff0;}else{const _0x4ef488='$defaultValues'===_0x42f300?_0x3d08f7['getDefaultValues']():_0x3d08f7['getDataSetValues'](_0x42f300,!0x0);for(const _0x32f0b3 of Object['entries'](_0x4ef488)){const [_0xb1226d,_0x97ea40]=_0x32f0b3;_0x256bd4[_0xb1226d]=null!==_0x97ea40?_0x97ea40:_0x3d08f7['getLabel'](_0xb1226d)||_0xb1226d;}}return{'mergeFieldsData':_0x256bd4};}['_standarizeRootsData'](_0x561f39,_0x21c64b,_0x38ca24){let _0x150734;if('string'==typeof _0x561f39){const _0x111b40=_0x21c64b['model']['document']['getRootNames']()[0x0];_0x150734={[_0x111b40]:_0x561f39};}else _0x150734=_0x561f39;const _0x2f0504=this['_fixMediaEmbeds'](_0x150734,_0x21c64b),_0x457e31=function(_0x1d79ed,_0x52b465){for(const [_0x3de45c,_0xfa4daa]of _0x1d79ed)_0xfa4daa['classes']=_0x52b465[_0x3de45c]['classList']['value']['replace']('ck-focused','');return _0x1d79ed;}(this['_sortRoots'](_0x21c64b)['reduce']((_0x1450de,_0x56e7a9)=>(_0x1450de['push']([_0x56e7a9,{'content':_0x2f0504[_0x56e7a9],'classes':''}]),_0x1450de),[]),_0x38ca24);return _0x457e31;}['_fixMediaEmbeds'](_0x350a6b,_0x206b03){if(!_0x206b03['plugins']['has']('MediaEmbedEditing'))return _0x350a6b;const _0x3a77f6=_0x206b03['plugins']['get']('MediaEmbedEditing');for(const [_0x119671,_0x58f495]of Object['entries'](_0x350a6b)){const _0x47666c=document['createElement']('div');_0x47666c['innerHTML']=_0x58f495,(_0x47666c['querySelectorAll']('figure.media')['forEach'](_0x5df9a7=>{const _0x1430ca=_0x5df9a7['querySelector']('oembed');if(_0x1430ca){const _0x544c3c=_0x1430ca['getAttribute']('url');if(_0x544c3c){const _0x42458d=_0x3a77f6['registry']['getMediaViewElement'](new _0x2956df(_0x206b03['editing']['view']['document']),_0x544c3c,{'elementName':'','renderForEditingView':!0x0}),_0xfe9823=document['createElement']('div');_0xfe9823['classList']['add']('ck-media__wrapper'),_0x42458d['render'](_0xfe9823,_0x206b03['editing']['view']['domConverter']),_0x1430ca['replaceWith'](_0xfe9823);}}}),_0x350a6b[_0x119671]=_0x47666c['innerHTML']);}return _0x350a6b;}['_sortRoots'](_0x2808ed){if(!function(_0x6f889d){return void 0x0!==_0x6f889d['getRootsAttributes'];}(_0x2808ed))return _0x2808ed['model']['document']['getRootNames']();const _0x4aba4a=[],_0x3ad91d=new Map();for(const _0x56aa85 of _0x2808ed['model']['document']['getRootNames']()){const _0x5b0e0f=_0x2808ed['editing']['view']['getDomRoot'](_0x56aa85)['getClientRects']()['item'](0x0);_0x4aba4a['push'](_0x56aa85),_0x3ad91d['set'](_0x56aa85,_0x5b0e0f);}return _0x4aba4a['sort']((_0x5df94d,_0xad47f3)=>{const _0x277bd9=_0x3ad91d['get'](_0x5df94d),_0x12a2e4=_0x3ad91d['get'](_0xad47f3);return _0x277bd9['y']-_0x12a2e4['y']||_0x277bd9['x']-_0x12a2e4['x'];}),_0x4aba4a;}}class te extends _0x2bb590{static get['requires'](){return[T,_0x5be8af];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a095f){super(_0x1a095f),_0x1a095f['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1a095f['config']['define']('trackChanges.preview.renderFunction',(_0x20b86a,_0x4b93e7)=>{for(const _0x5ca686 of _0x4b93e7)_0x20b86a['appendChild'](_0x5ca686);});}}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};
|