@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240623.0 → 0.0.0-nightly-20240624.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- 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 ts,Plugin as
|
|
24
|
-
_0xdeb2a1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x357d86,_0x3e2c41){super(),this['id']=_0x3e2c41['id'],this['type']=_0x3e2c41['type'],this['subType']=_0x3e2c41['subType']||null,this['author']=_0x3e2c41['author'],this['creator']=_0x3e2c41['creator']||_0x3e2c41['author'],this['isExternal']=Boolean(_0x3e2c41['attributes']&&_0x3e2c41['attributes']['@external']),this['data']=null,this['_model']=_0x357d86,this['_onAccept']=_0x3e2c41['onAccept'],this['_onDiscard']=_0x3e2c41['onDiscard'],this['_onAttributesChange']=_0x3e2c41['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3e2c41['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 _0x41ff27=this;for(;_0x41ff27['previous'];)_0x41ff27=_0x41ff27['previous'];return _0x41ff27;}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'](_0x1fff89){this['_markerNames']['add'](_0x1fff89);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3c6faf=>this['_model']['markers']['get'](_0x3c6faf))['filter'](_0x5366c9=>_0x5366c9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x7b9f60=>{for(const _0x506d45 of this['getMarkers']())_0x7b9f60['removeMarker'](_0x506d45);}),this['_markerNames']['clear']();}['removeMarker'](_0xa2c75f){this['_model']['change'](_0x4fc6cc=>{_0x4fc6cc['removeMarker'](_0xa2c75f);}),this['_markerNames']['delete'](_0xa2c75f);}['addRange'](_0xc42002){const _0x178da0='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x178da0),this['_model']['change'](_0x51bd2f=>{_0x51bd2f['addMarker'](_0x178da0,{'range':_0xc42002,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x37f2b0){for(const _0x3eb5e6 of this['getRanges']())if(_0x3eb5e6['isIntersecting'](_0x37f2b0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x12e9f4=>_0x12e9f4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4fb0ca,_0x37a749)=>[..._0x4fb0ca,..._0x37a749['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xdf046f=this['getRanges']();if(0x1!=_0xdf046f['length'])return null;const _0x694d5b=_0xdf046f[0x0],_0x4c5412=_0x694d5b['start']['nodeAfter'],_0x4dba9d=_0x694d5b['end']['nodeBefore'];return _0x4c5412 instanceof _0x2cacdf?_0x4c5412!=_0x4dba9d?null:_0x4c5412: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 _0x5ce3aa=[];let _0x333565=this['head'];for(;_0x333565;)_0x5ce3aa['push'](_0x333565),_0x333565=_0x333565['next'];return _0x5ce3aa;}['setAttribute'](_0x57f919,_0x1a4f43){const _0x26f6bf=_0x3180be(this['attributes']);_0x10b3fe(_0x26f6bf,_0x57f919,_0x1a4f43),_0x531065(_0x26f6bf,this['attributes'])||(this['attributes']=_0x26f6bf,this['_onAttributesChange'](_0x26f6bf));}['removeAttribute'](_0x574582){const _0x40b92b=_0x3180be(this['attributes']);_0x313b36(_0x40b92b,_0x574582),_0x531065(_0x40b92b,this['attributes'])||(this['attributes']=_0x40b92b,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 _0x5b0a21()['substr'](0x1,0x5);}}function o(_0x1c1475,_0x5e3a05,_0x14583){const t=_0x1c1475['t'];switch(_0x5e3a05){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'*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',_0x14583);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x14583);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x14583);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x14583);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x14583);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',_0x14583);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x14583);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x14583);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x14583);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x14583);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x14583);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x14583);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x14583);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x14583);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x14583);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x14583);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x14583);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x14583);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x14583);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x14583);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x14583);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x14583);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x14583);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'},_0x14583);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x14583);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x14583);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x14583);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x14583);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x14583);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'},_0x14583);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x14583);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x14583);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x14583);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x14583);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'},_0x14583);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x14583);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'},_0x14583);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'},_0x14583);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x14583);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'},_0x14583);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x14583);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'},_0x14583);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x14583);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x14583);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x14583);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x14583);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x5e3a05;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2ef8d6,_0x47b2c0){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2ef8d6,this['_locale']=_0x47b2c0;}['getDescriptions'](_0x181f2a){const _0x1167f0=[],_0x4a9927=new Set(),_0xfa2e65=new Set();for(let _0x37bc26=0x0;_0x37bc26<_0x181f2a['length'];_0x37bc26++){const _0x370a40=_0x181f2a[_0x37bc26];if(!_0x370a40['isInContent'])continue;const _0x4d77cd=this['_handleCustomCallbackDescription'](_0x370a40);if(_0x4d77cd){if(null!=_0x370a40['subType']){if(_0x4a9927['has'](_0x370a40['subType']))continue;_0x4a9927['add'](_0x370a40['subType']);}_0x1167f0['push'](_0x4d77cd);}else{if('attribute'!=_0x370a40['type'])'insertion'!=_0x370a40['type']&&'deletion'!=_0x370a40['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1167f0,_0x370a40,_0x181f2a[_0x37bc26+0x1]);else{const _0x984361=_0x370a40['data']['key'];if(_0xfa2e65['has'](_0x984361))continue;_0xfa2e65['add'](_0x370a40['data']['key']),_0x984361==m?this['_handleRenameSuggestionDescription'](_0x1167f0,_0x370a40):this['_handleAttributeSuggestionDescription'](_0x1167f0,_0x370a40);}}}return this['_resolveDescriptionItems'](_0x1167f0);}['registerDescriptionCallback'](_0x249163){this['_customCallbacks']['push'](_0x249163);}['registerElementLabel'](_0x15b259,_0x2495ac,_0x5e5247=_0x6320d1['normal']){'function'==typeof _0x15b259?_0x3b5234(this['_itemLabelsCallbacks'],{'matchingCallback':_0x15b259,'label':_0x2495ac,'priority':_0x5e5247}):this['_itemLabels']['set'](_0x15b259,_0x2495ac);}['registerAttributeLabel'](_0x2cf172,_0x1d13e7){this['_attributeLabels']['set'](_0x2cf172,_0x1d13e7);}['getItemLabel'](_0x4f68c5,_0x46697c=0x1){let _0x3c8a2d;for(const _0x114465 of this['_itemLabelsCallbacks'])if(_0x114465['matchingCallback'](_0x4f68c5)){_0x3c8a2d=_0x114465['label'];break;}return _0x3c8a2d||(_0x3c8a2d=this['_itemLabels']['get'](_0x4f68c5['name'])),_0x3c8a2d?_0x3c8a2d(_0x46697c):0x1!==_0x46697c?_0x46697c+'\x20'+_0x4f68c5['name']+'s':''+_0x4f68c5['name'];}['_addDescriptionItems'](_0x3d5cce,_0x4c08f4){const _0x59c206=_0x4c08f4['getFirstRange']()['getWalker'](),_0x5e8194='insertion'==_0x4c08f4['type']?'add':'remove';for(const _0x30bfad of _0x59c206){const _0x346335=_0x30bfad['item'],_0x49ab39=_0x3d5cce[_0x3d5cce['length']-0x1];if(_0x346335['is']('$textProxy'))_0x49ab39&&_0x49ab39['type']['indexOf']('Container')>-0x1&&_0x3d5cce['pop'](),_0x49ab39&&'text'==_0x49ab39['type']?_0x49ab39[_0x5e8194]+=_0x346335['data']:_0x3d5cce['push']({'type':'text','add':'add'==_0x5e8194?_0x346335['data']:'','remove':'remove'==_0x5e8194?_0x346335['data']:''});else{if(this['_schema']['isObject'](_0x346335)){const _0x1bf4d3=_0x346335;if(_0x49ab39&&_0x49ab39['type']['indexOf']('Container')>-0x1&&_0x3d5cce['pop'](),'elementEnd'==_0x30bfad['type'])continue;_0x49ab39&&_0x49ab39['type']==_0x5e8194+'Object'&&_0x49ab39['element']['name']==_0x1bf4d3['name']?_0x49ab39['quantity']++:_0x3d5cce['push']({'type':_0x5e8194+'Object','element':_0x1bf4d3,'quantity':0x1}),_0x59c206['skip'](_0x2ab884=>!('elementEnd'==_0x2ab884['type']&&_0x2ab884['item']==_0x346335));}else{if(this['_schema']['checkChild'](_0x346335,'$text')||_0x346335['is']('element','softBreak')){const _0x415b06=_0x346335;if('add'==_0x5e8194&&'elementStart'==_0x30bfad['type']||'remove'==_0x5e8194&&'elementEnd'==_0x30bfad['type'])continue;if(_0x49ab39&&-0x1==_0x49ab39['type']['indexOf']('Container')){'text'==_0x49ab39['type']&&(_0x49ab39[_0x5e8194]+='\x0a');continue;}let _0xacf975;if(_0xacf975='add'==_0x5e8194?_0x415b06['nextSibling']&&!this['_schema']['isObject'](_0x415b06['nextSibling'])?_0x415b06['nextSibling']:null:_0x415b06['previousSibling']&&!this['_schema']['isObject'](_0x415b06['previousSibling'])?_0x415b06['previousSibling']:null,_0x415b06['isEmpty']||_0xacf975&&_0xacf975['isEmpty']){const _0x4455d3=_0xacf975&&_0xacf975['isEmpty']?_0xacf975:_0x415b06;_0x49ab39&&_0x49ab39['type']==_0x5e8194+'EmptyContainer'&&_0x49ab39['element']['name']==_0x4455d3['name']?_0x49ab39['quantity']++:_0x3d5cce['push']({'type':_0x5e8194+'EmptyContainer','element':_0x4455d3,'quantity':0x1});}else _0x3d5cce['push']({'type':_0x5e8194+'Container','element':_0x415b06});}}}}}['_resolveDescriptionItems'](_0x1f89d8){const _0x3b4c5d=this['_locale'],_0x5010ae=[],_0xf9f583=[],_0x43cd09=[];for(const _0x521f3b of _0x1f89d8)switch(_0x521f3b['type']){case'text':if(_0x521f3b['add']=_0x521f3b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x521f3b['remove']=_0x521f3b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x521f3b['add']&&''!=_0x521f3b['remove']){_0x5010ae['push']({'type':'replace','content':o(_0x3b4c5d,'REPLACE_TEXT',['\x22'+_0x521f3b['remove']+'\x22','\x22'+_0x521f3b['add']+'\x22'])});continue;}if(null!=_0x521f3b['add']['match'](/^ +$/)){_0x5010ae['push']({'type':'insertion','content':o(_0x3b4c5d,'*Insert:*\x20%0',o(_0x3b4c5d,'ELEMENT_SPACE',_0x521f3b['add']['length']))});continue;}if(null!=_0x521f3b['remove']['match'](/^ +$/)){_0x5010ae['push']({'type':'deletion','content':o(_0x3b4c5d,'*Remove:*\x20%0',o(_0x3b4c5d,'ELEMENT_SPACE',_0x521f3b['remove']['length']))});continue;}if(''!=_0x521f3b['add']){_0x5010ae['push']({'type':'insertion','content':o(_0x3b4c5d,'*Insert:*\x20%0','\x22'+_0x521f3b['add']+'\x22')});continue;}_0x5010ae['push']({'type':'deletion','content':o(_0x3b4c5d,'*Remove:*\x20%0','\x22'+_0x521f3b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5010ae['push']({'type':'insertion','content':o(_0x3b4c5d,'*Insert:*\x20%0',this['getItemLabel'](_0x521f3b['element'],_0x521f3b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5010ae['push']({'type':'deletion','content':o(_0x3b4c5d,'*Remove:*\x20%0',this['getItemLabel'](_0x521f3b['element'],_0x521f3b['quantity']))});continue;case'addContainer':_0x5010ae['push']({'type':'insertion','content':o(_0x3b4c5d,'*Split:*\x20%0',this['getItemLabel'](_0x521f3b['element'],_0x521f3b['quantity']))});continue;case'removeContainer':_0x5010ae['push']({'type':'deletion','content':o(_0x3b4c5d,'*Merge:*\x20%0',this['getItemLabel'](_0x521f3b['element'],_0x521f3b['quantity']))});continue;case'addFormat':_0xf9f583['push'](_0x521f3b['key']);continue;case'removeFormat':_0x43cd09['push'](_0x521f3b['key']);continue;default:_0x5010ae['push'](_0x521f3b);}if(_0xf9f583['length']){const _0x171e1c=_0xf9f583['map'](_0x2157e0=>this['_attributeLabels']['has'](_0x2157e0)?this['_attributeLabels']['get'](_0x2157e0):_0x2157e0)['join'](',\x20');_0x5010ae['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x171e1c)});}if(_0x43cd09['length']){const _0x33ca94=_0x43cd09['map'](_0x1d00c4=>this['_attributeLabels']['has'](_0x1d00c4)?this['_attributeLabels']['get'](_0x1d00c4):_0x1d00c4)['join'](',\x20');_0x5010ae['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x33ca94)});}return _0x5010ae;}['_handleCustomCallbackDescription'](_0x241e2d){for(const _0xe46236 of this['_customCallbacks']){const _0xa0262c=_0xe46236(_0x241e2d);if(_0xa0262c&&'type'in _0xa0262c)return _0xa0262c;}}['_handleAttributeSuggestionDescription'](_0x569db2,_0x4d4926){const _0x400c7b=_0x4d4926['data'],_0x483530=void 0x0===_0x400c7b['newValue']?'removeFormat':'addFormat';_0x569db2['push']({'type':_0x483530,'key':_0x400c7b['key']});}['_handleRenameSuggestionDescription'](_0x14a12a,_0xb3a511){_0x14a12a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xb3a511['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x48a4e3,_0x4f3b44,_0x192baf){if(this['_addDescriptionItems'](_0x48a4e3,_0x4f3b44),_0x192baf&&_0x192baf['getFirstRange']()&&!_0x4f3b44['getFirstRange']()['end']['isEqual'](_0x192baf['getFirstRange']()['start'])){const _0x4eb4fc=_0x48a4e3[_0x48a4e3['length']-0x1],_0xef1661='insertion'==_0x4f3b44['type']?'add':'remove';_0x4eb4fc&&'text'==_0x4eb4fc['type']&&(_0x4eb4fc[_0xef1661]+='\x0a');}}}class E extends _0x3557c2{['afterInit'](){const _0x358772=this['editor'],_0x3d6a41=_0x358772['plugins']['get']('TrackChangesEditing');_0x358772['commands']['get']('showAIAssistant')&&_0x3d6a41['enableCommand']('showAIAssistant');}}class V extends _0x3557c2{['afterInit'](){const _0x35eb1b=this['editor'],_0x2b154d=_0x35eb1b['locale'];if(!_0x35eb1b['plugins']['has']('AlignmentEditing'))return;const _0x3051ec=_0x35eb1b['plugins']['get']('TrackChangesEditing');_0x3051ec['enableDefaultAttributesIntegration']('alignment'),_0x3051ec['registerBlockAttribute']('alignment'),_0x3051ec['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2b154d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48899f=this['editor'],_0x3d19d9=_0x48899f['locale'];_0x48899f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x174801=>{if('formatBlock'!=_0x174801['type'])return;const {data:_0x3e2785}=_0x174801;if(_0x3e2785&&'alignment'==_0x3e2785['commandName']){const _0x4c45b9=_0x3e2785['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3d19d9,'*Format:*\x20%0',function(_0x8cecd0){switch(_0x8cecd0){case'left':return o(_0x3d19d9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3d19d9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3d19d9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3d19d9,'FORMAT_JUSTIFY_TEXT');}}(_0x4c45b9))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x3557c2{['afterInit'](){const _0x15f5ab=this['editor'],_0x1aa52e=_0x15f5ab['plugins']['get']('TrackChangesEditing'),_0xc47d7d=_0x15f5ab['locale'];for(const _0x5d2eb6 of ti){if(!_0x15f5ab['plugins']['has'](_0x5d2eb6))continue;const _0x2427fd=_0x5d2eb6['slice'](0x0,-0x7)['toLowerCase'](),_0x1c92d3='FORMAT_'+_0x2427fd['toUpperCase']();_0x1aa52e['enableDefaultAttributesIntegration'](_0x2427fd),_0x1aa52e['registerInlineAttribute'](_0x2427fd),_0x1aa52e['descriptionFactory']['registerAttributeLabel'](_0x2427fd,o(_0xc47d7d,_0x1c92d3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x470600=this['editor'],_0x1dcfc4=_0x470600['locale'],_0x1d6c00=_0x470600['plugins']['get']('TrackChangesEditing');function _0x632c35(_0x429292,_0x21165d){_0x1d6c00['descriptionFactory']['registerDescriptionCallback'](_0x265ecf=>{if('formatInline'!=_0x265ecf['type'])return;const {data:_0x5700a6}=_0x265ecf;return _0x5700a6&&_0x5700a6['commandName']===_0x429292?_0x5700a6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1dcfc4,'*Format:*\x20%0',_0x21165d)}:{'type':'format','content':o(_0x1dcfc4,'*Remove\x20format:*\x20%0',_0x21165d)}:void 0x0;});}_0x632c35('bold',o(_0x1dcfc4,'FORMAT_BOLD')),_0x632c35('italic',o(_0x1dcfc4,'FORMAT_ITALIC')),_0x632c35('underline',o(_0x1dcfc4,'FORMAT_UNDERLINE')),_0x632c35('code',o(_0x1dcfc4,'FORMAT_CODE')),_0x632c35('strikethrough',o(_0x1dcfc4,'FORMAT_STRIKETHROUGH')),_0x632c35('subscript',o(_0x1dcfc4,'FORMAT_SUBSCRIPT')),_0x632c35('superscript',o(_0x1dcfc4,'FORMAT_SUPERSCRIPT'));}}class O extends _0x3557c2{['afterInit'](){const _0xb180c9=this['editor'],_0x228905=_0xb180c9['locale'];if(!_0xb180c9['plugins']['has']('BlockQuoteEditing'))return;const _0x20e39b=_0xb180c9['plugins']['get']('TrackChangesEditing'),_0x379623=this['editor']['commands']['get']('blockQuote');_0x20e39b['enableCommand']('blockQuote',(_0x2ecfb3,_0x457573={})=>{const _0x1cf098=this['editor']['model']['document']['selection'],_0x33ff48=_0x457573&&void 0x0!==_0x457573['forceValue']?_0x457573['forceValue']:!_0x379623['value'];let _0x2ff520=[];if(_0x33ff48){const _0x16deeb=Array['from'](_0x1cf098['getSelectedBlocks']())['filter'](_0x1c6c9b=>oo(_0x1c6c9b)||function(_0x1f0da7,_0x46f399){const _0x4f7f0d=_0x46f399['checkChild'](_0x1f0da7['parent'],'blockQuote'),_0x2113ca=_0x46f399['checkChild'](['$root','blockQuote'],_0x1f0da7);return _0x4f7f0d&&_0x2113ca;}(_0x1c6c9b,this['editor']['model']['schema']));_0x2ff520=to(_0x16deeb,_0xb180c9['model']);}else{const _0x56f1d8=Array['from'](_0x1cf098['getSelectedBlocks']())['filter'](_0x2f85b6=>oo(_0x2f85b6));_0x2ff520=to(_0x56f1d8,_0xb180c9['model']);}_0xb180c9['model']['change'](()=>{for(const _0x52f14f of _0x2ff520)_0x20e39b['markBlockFormat'](_0x52f14f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x33ff48}]});});}),_0x20e39b['descriptionFactory']['registerDescriptionCallback'](_0x141edc=>{const {data:_0x7a31bf}=_0x141edc;if(_0x7a31bf&&'blockQuote'==_0x7a31bf['commandName']){const _0x274a2b=o(_0x228905,'ELEMENT_BLOCK_QUOTE');return _0x7a31bf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x228905,'*Set\x20format:*\x20%0',_0x274a2b)}:{'type':'format','content':o(_0x228905,'*Remove\x20format:*\x20%0',_0x274a2b)};}});}}function oo(_0x4b537c){return'blockQuote'==_0x4b537c['parent']['name'];}class G extends _0x3557c2{['afterInit'](){const _0x5bd426=this['editor'];_0x5bd426['plugins']['has']('CaseChange')&&(_0x5bd426['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5bd426['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5bd426['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x3557c2{['afterInit'](){const _0x191fea=this['editor'];_0x191fea['commands']['get']('ckbox')&&_0x191fea['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x3557c2{['afterInit'](){const _0x4d40e1=this['editor'];if(!_0x4d40e1['plugins']['has']('CodeBlock'))return;const _0x1891eb=_0x4d40e1['plugins']['get']('TrackChangesEditing'),_0x330fcb=_0x4d40e1['locale'],_0x58fc49=_0x4d40e1['config']['get']('codeBlock')['languages'],_0x23e801=_0x4d40e1['commands']['get']('codeBlock');_0x1891eb['enableCommand']('indentCodeBlock'),_0x1891eb['enableCommand']('outdentCodeBlock'),_0x1891eb['enableCommand']('codeBlock',(_0x4506a9,_0x56a152={})=>{const _0x1915dd=_0x4d40e1['model'],_0x2e19b2=_0x4d40e1['model']['document']['selection'],_0x145786=_0x56a152&&void 0x0!==_0x56a152['forceValue']?_0x56a152['forceValue']:!_0x23e801['value'];let _0x20acbd;_0x56a152['language']||(_0x56a152['language']=_0x58fc49[0x0]['language']),_0x20acbd=_0x145786?Array['from'](_0x2e19b2['getSelectedBlocks']())['filter'](_0x515fa4=>eo(_0x515fa4)||function(_0x3a2119,_0x15fed3){if(_0x3a2119['is']('rootElement')||_0x15fed3['isLimit'](_0x3a2119))return!0x1;return _0x15fed3['checkChild'](_0x3a2119['parent'],'codeBlock');}(_0x515fa4,_0x1915dd['schema'])):Array['from'](_0x2e19b2['getSelectedBlocks']())['filter'](_0x9fd4de=>eo(_0x9fd4de));const _0x47f879=to(_0x20acbd,_0x1915dd);_0x1915dd['change'](()=>{for(const _0x3ddf8e of _0x47f879)_0x1891eb['markBlockFormat'](_0x3ddf8e,{'commandName':'codeBlock','commandParams':[{..._0x56a152,'forceValue':_0x145786}],'formatGroupId':'blockName'});});}),(_0x1891eb['descriptionFactory']['registerElementLabel']('codeBlock',_0x56cf36=>o(_0x330fcb,'ELEMENT_CODE_BLOCK',_0x56cf36)),_0x1891eb['descriptionFactory']['registerDescriptionCallback'](_0x1cdae9=>{if('formatBlock'!=_0x1cdae9['type'])return;const _0x52d660=_0x330fcb['t'],{data:_0x1f3365}=_0x1cdae9;if(!_0x1f3365||'codeBlock'!=_0x1f3365['commandName'])return;const _0x54513f=_0x1f3365['commandParams'][0x0]['language'],_0x210f19=_0x52d660(_0x58fc49['find'](_0x392221=>_0x392221['language']===_0x54513f)['label'])['toLowerCase']();return _0x1f3365['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x330fcb,'*Set\x20format:*\x20%0',o(_0x330fcb,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x210f19+')')}:{'type':'format','content':o(_0x330fcb,'*Remove\x20format:*\x20%0',o(_0x330fcb,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2bd04f){return'codeBlock'==_0x2bd04f['name'];}class H extends _0x3557c2{['afterInit'](){const _0x539e61=this['editor'];if(!_0x539e61['plugins']['has']('CommentsEditing'))return;_0x539e61['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4b6473,_0x372d08,_0x18f309){const _0x4d0bfb=[];for(const _0x4ede91 of _0x372d08['getItems']())_0x4ede91['hasAttribute'](_0x4b6473)&&_0x4d0bfb['push'](_0x18f309['createRangeOn'](_0x4ede91));return _0x4d0bfb;}function _e(_0x26e891,_0x2913f7,{showActiveMarker:_0x27d2ca=!0x0}={}){const _0x12175f=_0x26e891['plugins']['get']('TrackChangesEditing');return(_0x1d704f,_0x571878,_0x16b9e4)=>{if(!_0x16b9e4['consumable']['test'](_0x571878['markerRange'],_0x1d704f['name']))return;const _0x54e8d4=_0x571878['markerRange']['getWalker'](),_0x4dc794=_0x571878['markerRange']['start'],_0x4543fa=_0x26e891['model']['schema'];let _0x3e6773=null,_0xe4e3bd=null,_0x13ee96=!0x1,_0x533e87=!0x1;for(const _0x53e3de of _0x54e8d4){const _0x2dacbd=_0x53e3de['item'];_0x13ee96=_0x13ee96||_0x4543fa['isContent'](_0x2dacbd);const _0x18b30e=_0x16b9e4['mapper']['toViewElement'](_0x2dacbd);if(_0x18b30e&&_0x18b30e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x53e3de['type']&&(_0x4543fa['isBlock'](_0x2dacbd)&&!_0x4543fa['isLimit'](_0x2dacbd)&&(_0x2dacbd['nextSibling']||_0x4dc794['isAtEnd']?_0x3e6773&&_0x3e6773['parent']==_0x2dacbd||(_0x3e6773=_0x2dacbd,_0x3d8b67(_0x53e3de['previousPosition']),_0x533e87=!0x0):_0xe4e3bd=_0xe4e3bd||_0x53e3de['previousPosition']));}function _0x3d8b67(_0x26089c){const _0x4a5731=_0x16b9e4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2913f7}),_0x2bdf91=_0x16b9e4['mapper']['toViewPosition'](_0x26089c);_0x27d2ca&&_0x12175f['activeMarkers']['includes'](_0x571878['markerName'])&&_0x16b9e4['writer']['addClass']('ck-suggestion-marker--active',_0x4a5731),_0x16b9e4['writer']['insert'](_0x2bdf91,_0x4a5731),_0x16b9e4['mapper']['bindElementToMarker'](_0x4a5731,_0x571878['markerName']);}_0x13ee96||_0x533e87||!_0xe4e3bd||_0x3d8b67(_0xe4e3bd);};}class q extends _0x3557c2{static get['requires'](){return[_0xdf7ba4];}['init'](){const _0x10b282=this['editor'],_0x89f97b=_0x10b282['plugins']['get']('TrackChangesEditing');_0x89f97b['enableCommand']('delete');const _0x250117=_0x10b282['commands']['get']('deleteForward');_0x89f97b['enableCommand']('deleteForward',(_0x52b8e4,_0x1b27d3={})=>{const _0x50b8bf=_0x10b282['model']['createSelection'](_0x10b282['model']['document']['selection']);_0x50b8bf['isCollapsed']&&_0x10b282['model']['modifySelection'](_0x50b8bf,{'direction':'forward','unit':_0x1b27d3['unit']});const _0x3441cd=_0x50b8bf['getFirstRange'](),_0x2e7635=_0xbaab6f['fromRange'](_0x3441cd);let _0x10ebd1;_0x52b8e4(_0x1b27d3),_0x10ebd1='$graveyard'==_0x2e7635['root']['rootName']?_0x10b282['model']['createRange'](_0x3441cd['start']):_0x10b282['model']['createRange'](_0x2e7635['start'],_0x2e7635['end']),_0x2e7635['detach'](),_0x10b282['model']['enqueueChange'](_0x250117['buffer']['batch'],_0x46725e=>{_0x250117['buffer']['lock'](),_0x46725e['setSelection'](_0x46725e['createRange'](_0x10ebd1['end'])),_0x250117['buffer']['unlock']();});}),_0x10b282['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x10b282,'merge'),{'priority':'high'}),_0x10b282['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4d5a19,_0x46c1bf,_0x553326)=>{_0x553326['options']['showSuggestionHighlights']&&_e(_0x10b282,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4d5a19,_0x46c1bf,_0x553326);},{'priority':'high'}),_0x10b282['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x530448,_0x53feb9,_0x47ca69)=>{const _0x12c5ea=_0x47ca69['mapper']['markerNameToElements'](_0x53feb9['markerName']);if(_0x12c5ea){for(const _0x2c4466 of _0x12c5ea)_0x2c4466['is']('uiElement')&&(_0x47ca69['mapper']['unbindElementFromMarkerName'](_0x2c4466,_0x53feb9['markerName']),_0x47ca69['writer']['remove'](_0x2c4466));}},{'priority':'high'});}}class z extends _0x3557c2{['afterInit'](){const _0x5dca76=this['editor'];if(!_0x5dca76['plugins']['has']('ListEditing'))return;const _0x433973=_0x5dca76['locale'],_0x242079=_0x5dca76['plugins']['get']('TrackChangesEditing'),_0x34b1ba=_0x5dca76['plugins']['has']('TodoListEditing'),_0x1ef214=!!_0x5dca76['config']['get']('list.multiBlock');function _0x5c853c(_0x225b83){return{'type':'format','content':''+o(_0x433973,'*Set\x20format:*\x20%0',_0x225b83)};}function _0x159310(_0xc2f855){return{'type':'format','content':''+o(_0x433973,'*Remove\x20format:*\x20%0',_0xc2f855)};}_0x242079['enableDefaultAttributesIntegration']('numberedList'),_0x242079['enableDefaultAttributesIntegration']('bulletedList'),_0x242079['enableDefaultAttributesIntegration']('customNumberedList'),_0x242079['enableDefaultAttributesIntegration']('customBulletedList'),_0x242079['enableDefaultAttributesIntegration']('indentList'),_0x242079['enableDefaultAttributesIntegration']('outdentList'),_0x242079['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x242079['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x242079['registerBlockAttribute']('listItemId'),_0x242079['registerBlockAttribute']('listType'),_0x242079['registerBlockAttribute']('listIndent'),_0x1ef214&&(_0x242079['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x242079['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x34b1ba&&(_0x242079['enableDefaultAttributesIntegration']('todoList'),_0x242079['enableDefaultAttributesIntegration']('checkTodoList'),_0x242079['registerBlockAttribute']('todoListChecked'),_0x242079['descriptionFactory']['registerDescriptionCallback'](_0x4dcbb9=>{const {data:_0x2b4529}=_0x4dcbb9;if(_0x2b4529&&'todoListChecked'==_0x2b4529['key'])return{'type':'format','content':_0x2b4529['newValue']?o(_0x433973,'*Check\x20item*'):o(_0x433973,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x318264=>{if(_0x318264['batch']['isUndo'])return!0x1;let _0x3e71ed=!0x1;const _0x25594a=_0x242079['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9b5f6=>'todoListChecked'===_0x242079['_getAttributeKey'](_0x9b5f6));for(const _0x629485 of _0x25594a){'todo'!=_0x629485['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x242079['_findSuggestions'](_0x629485['getFirstRange'](),'attribute')['find'](_0x285a0a=>'listType'===_0x242079['_getAttributeKey'](_0x285a0a['suggestion']))||(_0x318264['removeMarker'](_0x629485['getFirstMarker']()),_0x3e71ed=!0x0));}return _0x3e71ed;})),_0x242079['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x433973,'FORMAT_INDENT'));const _0x41ea00={'type':'format','content':''};_0x242079['descriptionFactory']['registerDescriptionCallback'](_0x5ee0d2=>{const {data:_0x272abe}=_0x5ee0d2;if(!_0x272abe||'listType'!=_0x272abe['key'])return;let _0x1fb73f=_0x5ee0d2['head'];for(;_0x1fb73f;){if(_0x1fb73f['data']&&(('listStyle'==_0x1fb73f['data']['key']||'listMarkerStyle'==_0x1fb73f['data']['key'])&&(_0x1fb73f['data']['newValue']&&'default'!=_0x1fb73f['data']['newValue']||'default'!=_0x1fb73f['data']['oldValue']&&!_0x272abe['newValue'])||!_0x1ef214&&_0x1fb73f['data']['key']==m))return _0x41ea00;_0x1fb73f=_0x1fb73f['next'];}if(null==_0x272abe['newValue'])switch(_0x272abe['oldValue']){case'bulleted':return _0x159310(o(_0x433973,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x159310(o(_0x433973,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x159310(o(_0x433973,'ELEMENT_TODO_LIST'));}switch(_0x272abe['newValue']){case'bulleted':return _0x5c853c(o(_0x433973,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c853c(o(_0x433973,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c853c(o(_0x433973,'ELEMENT_TODO_LIST'));}}),_0x242079['descriptionFactory']['registerDescriptionCallback'](_0x1f64ad=>{const {data:_0x20a539}=_0x1f64ad;if(_0x20a539&&'listIndent'==_0x20a539['key'])return null==_0x20a539['newValue']||null==_0x20a539['oldValue']&&0x0==_0x20a539['newValue']?_0x41ea00:void 0x0;}),_0x242079['descriptionFactory']['registerDescriptionCallback'](_0x2ace58=>{if('attribute'!=_0x2ace58['type'])return;const {data:_0x1e0e0f}=_0x2ace58;if(!_0x1e0e0f||'listItemId'!=_0x1e0e0f['key'])return;const _0x315838=le(_0x2ace58);return'newValue'==_0x315838?{'type':'format','content':o(_0x433973,'*Merge:*\x20list\x20item')}:'oldValue'==_0x315838?{'type':'format','content':o(_0x433973,'*Split:*\x20list\x20item')}:_0x41ea00;}),_0x5dca76['model']['document']['registerPostFixer'](_0x53e455=>this['listItemIdFixer'](_0x53e455)),_0x5dca76['model']['document']['registerPostFixer'](_0x2e4dbb=>this['noTrackChangesFixer'](_0x2e4dbb)),_0x5dca76['model']['document']['registerPostFixer'](_0x2a92fe=>this['assureChains'](_0x2a92fe)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4b0559){if(_0x4b0559['batch']['isUndo']||!_0x4b0559['batch']['isLocal'])return!0x1;let _0x4fe025=!0x1;const _0x44215d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf2ae03=>_0xf2ae03['data']&&'listItemId'==_0xf2ae03['data']['key'])['filter'](_0x4cda07=>_0x4cda07['data']['newValue']&&_0x4cda07['data']['oldValue']);for(const _0x197916 of _0x44215d)le(_0x197916)||(_0x4b0559['removeMarker'](_0x197916['getFirstMarker']()),_0x4fe025=!0x0);return _0x4fe025;}['noTrackChangesFixer'](_0x40dcdf){if(_0x40dcdf['batch']['isUndo']||!_0x40dcdf['batch']['isLocal'])return!0x1;const _0x2ae939=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2ae939['trackChangesCommand']['value'])return!0x1;let _0xe2b30d=!0x1;const _0x1a8dae=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3d1457=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4584b3=>'attribute'==_0x4584b3['type'])['filter'](_0x39fa38=>_0x1a8dae['includes'](_0x39fa38['attributeKey']));if(0x0==_0x3d1457['length'])return _0xe2b30d;for(const _0x257f54 of _0x3d1457){const _0x203d9f=_0x2ae939['_findSuggestions'](_0x257f54['range'],'attribute')['filter'](_0xde3713=>!_0xde3713['meta']['isNextTo'])['map'](_0x1f0d48=>_0x1f0d48['suggestion'])['filter'](_0x22db94=>{const _0x40c7bb=_0x2ae939['_getAttributeKey'](_0x22db94);return _0x1a8dae['includes'](_0x40c7bb);});if(_0x203d9f['length']){for(const _0x32f1b7 of _0x203d9f)_0x40dcdf['removeMarker'](_0x32f1b7['getFirstMarker']());_0xe2b30d=!0x0;}}return _0xe2b30d;}['assureChains'](_0xc9fda1){if(_0xc9fda1['batch']['isUndo']||!_0xc9fda1['batch']['isLocal'])return!0x1;const _0x4afbcd=this['editor']['plugins']['get']('TrackChangesEditing');let _0x4f8158=!0x1;const _0x36a8c3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x48d031 of _0x4afbcd['getSuggestions']({'skipNotAttached':!0x0})){const _0x190b7a=_0x4afbcd['_findSuggestions'](_0x48d031['getFirstRange'](),'attribute')['map'](_0x44989e=>_0x44989e['suggestion'])['filter'](_0x5223f8=>_0x5223f8['data']&&_0x36a8c3['includes'](_0x5223f8['data']['key']));if(!_0x190b7a['length'])continue;const _0x8e8e03=_0x190b7a[0x0]['head']['attributes']['groupId'];if(!_0x190b7a['every'](_0x218a2c=>_0x218a2c['attributes']['groupId']===_0x8e8e03)){for(const _0x474795 of _0x190b7a)_0x14d781(_0x474795,_0x8e8e03)&&(_0x4f8158=!0x0);}}return _0x4f8158;function _0x4af8b3(_0x6ed1dc,_0x13f02e){for(const _0x5dd72d of _0x4afbcd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xde6b4b=>'attribute'==_0xde6b4b['type']&&_0xde6b4b['attributes']['groupId']==_0x6ed1dc))_0x5dd72d['setAttribute']('groupId',_0x13f02e);}function _0x14d781(_0x54dc50,_0x33e378){let _0x447aaa=_0x54dc50['head'],_0x23e1d2=!0x1;for(;_0x447aaa;)_0x447aaa['attributes']['groupId']!=_0x33e378&&(_0x4af8b3(_0x447aaa['attributes']['groupId'],_0x33e378),_0x447aaa['setAttribute']('groupId',_0x33e378),_0x23e1d2=!0x0),_0x447aaa=_0x447aaa['next'];return _0x23e1d2;}}['_supportLegacySuggestions'](){const _0x35b6ea=this['editor'],_0x1c75e7=_0x35b6ea['locale'],_0x26cda1=_0x35b6ea['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x26cda1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x56d6a2,_0x3328bc){const _0xa134a9=[];for(let _0x24bd1e of _0x56d6a2)_0x24bd1e['start']['nodeAfter']===_0x24bd1e['end']['parent']&&(_0x24bd1e=_0x35b6ea['model']['createRange'](_0x35b6ea['model']['createPositionAt'](_0x24bd1e['start']['nodeAfter'],0x0))),_0xa134a9['push'](_0x24bd1e);_0x35b6ea['model']['change'](_0x2047f7=>{const _0x506d54=_0x35b6ea['model']['document']['selection'],_0x31252e=Array['from'](_0x506d54['getRanges']())['map'](_0x1d0d4f=>_0xbaab6f['fromRange'](_0x1d0d4f));_0x2047f7['setSelection'](_0xa134a9),_0x35b6ea['commands']['get'](_0x3328bc['commandName'])['refresh'](),_0x3328bc['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x35b6ea['execute'](_0x3328bc['commandName'],..._0x3328bc['commandParams']),_0x2047f7['setSelection'](_0x31252e);for(const _0xdb8994 of _0x31252e)_0xdb8994['detach']();});}),_0x26cda1['descriptionFactory']['registerElementLabel'](function(_0x25f595){const _0x20fb03=!_0x35b6ea['model']['schema']['isObject'](_0x25f595),_0x784c6c=_0x25f595['previousSibling'],_0x2b2d91=_0x25f595['nextSibling'],_0x3c0aec=_0x25f595['getAttribute']('listItemId'),_0x2f4ced=!_0x784c6c||_0x784c6c['getAttribute']('listItemId')!==_0x3c0aec,_0x2d2b7d=!_0x2b2d91||_0x2b2d91['getAttribute']('listItemId')!==_0x3c0aec;return _0x20fb03&&Boolean(_0x3c0aec)&&_0x2f4ced&&_0x2d2b7d;},_0x206a10=>o(_0x1c75e7,'ELEMENT_LIST_ITEM',_0x206a10));}['_registerLegacyDescription'](){const _0x2746e7=this['editor'],_0x5cc10e=_0x2746e7['locale'];function _0x3e776a(_0x3959fd){const _0x575a21=_0x2746e7['commands']['get']('bulletedList')['value'],_0x365707=_0x2746e7['commands']['get']('numberedList')['value'];return'numberedList'===_0x3959fd?_0x575a21:_0x365707;}_0x2746e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x55bc33){if('formatBlock'!=_0x55bc33['type'])return;const {data:_0x179926}=_0x55bc33;if(!_0x179926)return;let _0x87d5b4,_0xc6148f,_0x44653b,_0x2234d8;switch(_0x179926['commandName']){case'bulletedList':_0x44653b=_0x179926['commandParams'][0x0]['forceValue'],_0x2234d8=_0x3e776a(_0x179926['commandName']),_0x87d5b4=_0x44653b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2234d8&&_0x2746e7['config']['get']('list.multiBlock')||(_0x87d5b4='*Change\x20to:*\x20%0'),_0xc6148f={'type':'format','content':o(_0x5cc10e,_0x87d5b4,o(_0x5cc10e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x44653b=_0x179926['commandParams'][0x0]['forceValue'],_0x2234d8=_0x3e776a(_0x179926['commandName']),_0x87d5b4=_0x44653b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2234d8&&_0x2746e7['config']['get']('list.multiBlock')||(_0x87d5b4='*Change\x20to:*\x20%0'),_0xc6148f={'type':'format','content':o(_0x5cc10e,_0x87d5b4,o(_0x5cc10e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x87d5b4='*Indent:*\x20%0',_0xc6148f={'type':'format','content':o(_0x5cc10e,_0x87d5b4,o(_0x5cc10e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x87d5b4=function(_0xa746ed){const _0x4c9c34=_0xa746ed['getFirstRange']();let _0x372c17=_0x4c9c34['start']['nodeAfter'];for(;_0x372c17&&_0x4c9c34['containsItem'](_0x372c17);){if(_0x372c17['getAttribute']('listIndent')>0x0)return!0x1;_0x372c17=_0x372c17['nextSibling'];}return!0x0;}(_0x55bc33)?o(_0x5cc10e,'*Format:*\x20remove\x20from\x20%0',o(_0x5cc10e,function(_0x5a115a){return'ELEMENT_'+_0x5a115a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x55bc33))):o(_0x5cc10e,'*Outdent:*\x20%0',o(_0x5cc10e,'ELEMENT_LIST_ITEM')),_0xc6148f={'type':'format','content':_0x87d5b4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x179926['multipleBlocks']&&(_0x87d5b4='*Merge:*\x20%0',_0xc6148f={'type':'deletion','content':o(_0x5cc10e,_0x87d5b4,o(_0x5cc10e,'ELEMENT_LIST_ITEM'))});}return _0xc6148f;});}}function le(_0x230126){let _0x23bd64=_0x230126['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x23bd64;){const _0x1a862f=_0x23bd64['getAttribute']('listItemId');if(!_0x1a862f)return!0x1;if(_0x1a862f==_0x230126['data']['newValue'])return'newValue';if(_0x1a862f==_0x230126['data']['oldValue'])return'oldValue';_0x23bd64=_0x23bd64['previousSibling'];}return!0x1;}class ue extends _0x3557c2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x454ba5=this['editor']['config']['get']('list.properties'),_0x18630c=this['editor']['plugins']['get']('TrackChangesEditing');_0x454ba5['styles']&&(_0x18630c['enableDefaultAttributesIntegration']('listStyle'),_0x18630c['registerBlockAttribute']('listStyle')),_0x454ba5['reversed']&&(_0x18630c['enableDefaultAttributesIntegration']('listReversed'),_0x18630c['registerBlockAttribute']('listReversed')),_0x454ba5['startIndex']&&(_0x18630c['enableDefaultAttributesIntegration']('listStart'),_0x18630c['registerBlockAttribute']('listStart'));const _0x41e0bd={'type':'format','content':''};_0x18630c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x414aa0=this['editor']['locale'];_0x18630c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x414aa0,'FORMAT_LIST_REVERSED')),_0x18630c['descriptionFactory']['registerDescriptionCallback'](_0x5ea4ba=>{const {data:_0x4add06}=_0x5ea4ba;if(_0x4add06&&'listReversed'==_0x4add06['key'])return null==_0x4add06['newValue']||0x0==_0x4add06['newValue']&&null==_0x4add06['oldValue']?_0x41e0bd:void 0x0;}),_0x18630c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x414aa0,'FORMAT_LIST_START')),_0x18630c['descriptionFactory']['registerDescriptionCallback'](_0x519e0d=>{const {data:_0x26dcfa}=_0x519e0d;if(_0x26dcfa&&'listStart'==_0x26dcfa['key'])return null==_0x26dcfa['newValue']||0x1==_0x26dcfa['newValue']&&null==_0x26dcfa['oldValue']?_0x41e0bd:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1c8a21=>{if(_0x1c8a21['batch']['isUndo'])return!0x1;let _0x27b5d6=!0x1;const _0x462433=_0x18630c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x68c927=>{const _0x3c72ff=_0x18630c['_getAttributeKey'](_0x68c927);return'listStart'==_0x3c72ff||'listReversed'==_0x3c72ff;});for(const _0x4d4771 of _0x462433){const _0x38cb19=_0x4d4771['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x38cb19||'customNumbered'==_0x38cb19)continue;_0x18630c['_findSuggestions'](_0x4d4771['getFirstRange'](),'attribute')['find'](_0x1eab8c=>'listType'==_0x18630c['_getAttributeKey'](_0x1eab8c['suggestion']))||(_0x1c8a21['removeMarker'](_0x4d4771['getFirstMarker']()),_0x27b5d6=!0x0);}return _0x27b5d6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1833d3){const _0x5d40a8=this['editor']['locale'],{data:_0x5e1f47}=_0x1833d3,_0x250d8d={'type':'format','content':''};if(!_0x5e1f47||'listStyle'!=_0x5e1f47['key'])return;if(!_0x5e1f47['oldValue'])return'default'==_0x5e1f47['newValue']?_0x250d8d:{'type':'format','content':''+o(_0x5d40a8,'*Set\x20format:*\x20%0',o(_0x5d40a8,this['_getTranslationKeyForListStyle'](_0x5e1f47['newValue'])))};if(!_0x5e1f47['newValue']){if('default'==_0x5e1f47['oldValue'])return _0x250d8d;let _0x4f9553=_0x1833d3['head'];for(;_0x4f9553;){if(_0x4f9553['data']&&'listType'==_0x4f9553['data']['key']&&_0x4f9553['data']['newValue'])return _0x250d8d;_0x4f9553=_0x4f9553['next'];}return{'type':'format','content':''+o(_0x5d40a8,'*Remove\x20format:*\x20%0',o(_0x5d40a8,this['_getTranslationKeyForListStyle'](_0x5e1f47['oldValue'])))};}if('default'!=_0x5e1f47['newValue'])return{'type':'format','content':''+o(_0x5d40a8,'*Set\x20format:*\x20%0',o(_0x5d40a8,this['_getTranslationKeyForListStyle'](_0x5e1f47['newValue'])))};let _0x15b775=_0x1833d3['head'];for(;_0x15b775;){if(_0x15b775['data']&&'listType'==_0x15b775['data']['key']&&_0x15b775['data']['newValue']&&_0x15b775['data']['oldValue'])return _0x250d8d;_0x15b775=_0x15b775['next'];}return{'type':'format','content':o(_0x5d40a8,'*Set\x20format:*\x20%0',o(_0x5d40a8,'ELEMENT_'+_0x1833d3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x9be0b1=this['editor'],_0x23c4b8=_0x9be0b1['locale'];_0x9be0b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3aee2f=>{if('formatBlock'!=_0x3aee2f['type'])return;const {data:_0x278cb8}=_0x3aee2f;if(!_0x278cb8)return;let _0x3ca13c,_0xd39b2b;switch(_0x278cb8['commandName']){case'listStyle':_0x3ca13c='*Change\x20to:*\x20%0',_0xd39b2b={'type':'format','content':o(_0x23c4b8,_0x3ca13c,o(_0x23c4b8,this['_getTranslationKeyForListStyle'](_0x278cb8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3ca13c=_0x278cb8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xd39b2b={'type':'format','content':o(_0x23c4b8,_0x3ca13c)};break;case'listStart':_0x3ca13c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xd39b2b={'type':'format','content':o(_0x23c4b8,_0x3ca13c,_0x278cb8['commandParams'][0x0]['startIndex'])};}return _0xd39b2b;});}['_getTranslationKeyForListStyle'](_0x5eae77){return'ELEMENT_'+function(_0x1b3506){if(pe['includes'](_0x1b3506))return'bulleted';if(ye['includes'](_0x1b3506))return'numbered';return null;}(_0x5eae77)['toUpperCase']()+'_LIST_'+_0x5eae77['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x3557c2{static get['requires'](){return[_0xc13905];}['init'](){const _0x49fe14=this['editor'],_0xcddd95=_0x49fe14['plugins']['get']('TrackChangesEditing'),_0x32778f=_0x49fe14['commands']['get']('enter');_0xcddd95['enableCommand']('enter',()=>{_0x49fe14['model']['change'](_0x3c00df=>{const _0x1b058d=_0x49fe14['model']['document']['selection'],_0x2170f4=_0x1b058d['getFirstPosition'](),_0x1b8301=_0xbaab6f['fromRange'](_0x1b058d['getFirstRange']());if(_0x32778f['enterBlock'](_0x3c00df)){const _0x366dba=_0x49fe14['model']['createPositionAt'](_0x2170f4['parent']['nextSibling'],0x0),_0x2d49fc=_0x3c00df['createRange'](_0x2170f4,_0x366dba);_0xcddd95['markInsertion'](_0x2d49fc);}else _0x3c00df['setSelection'](_0x3c00df['createRange'](_0x1b8301['end']));_0x1b8301['detach'](),_0x32778f['fire']('afterExecute',{'writer':_0x3c00df});});}),_0x49fe14['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x49fe14,'split'),{'priority':'high'}),_0x49fe14['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x396bd8,_0x42db81,_0x2956ee)=>{const _0x29b14b=_0x2956ee['mapper']['markerNameToElements'](_0x42db81['markerName']);if(_0x29b14b){for(const _0x2df682 of _0x29b14b)_0x2df682['hasClass']('ck-suggestion-marker-split')&&(_0x2956ee['mapper']['unbindElementFromMarkerName'](_0x2df682,_0x42db81['markerName']),_0x2956ee['writer']['remove'](_0x2df682));}},{'priority':'high'}),_0x49fe14['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x47cd4f,_0x58ffda,_0x1b577a)=>{_0x1b577a['options']['showSuggestionHighlights']&&_e(_0x49fe14,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x47cd4f,_0x58ffda,_0x1b577a);},{'priority':'high'});}}class J extends _0x3557c2{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x218175=this['editor']['plugins']['get']('TrackChangesEditing');_0x218175['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x218175['enableCommand']('findNext'),_0x218175['enableCommand']('findPrevious'),_0x218175['enableCommand']('replace'),_0x218175['enableCommand']('replaceAll');}['handleFindCommand'](_0x163edb,_0x3cfe9c,_0x5b2040={}){const _0x5372c1=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x163edb(_0x547bd7=>('string'==typeof _0x3cfe9c?_0x5372c1['findByTextCallback'](_0x3cfe9c,_0x5b2040):_0x3cfe9c)(_0x547bd7)['filter'](_0x1c158c=>!0x1===this['_isInDeletionRange'](_0x1c158c,_0x547bd7['item'])),_0x5b2040);}['_isInDeletionRange'](_0x1e400f,_0x1439d7){const _0x23b964=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1439d7,_0x1e400f['start']),this['editor']['model']['createPositionAt'](_0x1439d7,_0x1e400f['end']));for(const _0x29a0d1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x23b964['getIntersection'](_0x29a0d1['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x3557c2{['afterInit'](){const _0x1d6417=this['editor']['locale'],_0x473dea=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4d61dc,commandName:_0x111f05}of ro)this['editor']['plugins']['has'](_0x4d61dc)&&(_0x473dea['enableDefaultAttributesIntegration'](_0x111f05),_0x473dea['registerInlineAttribute'](_0x111f05));_0x1d6417['t'],_0x473dea['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1d6417,'FORMAT_FONT_SIZE')),_0x473dea['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1d6417,'FORMAT_FONT_FAMILY')),_0x473dea['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1d6417,'FORMAT_FONT_COLOR')),_0x473dea['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1d6417,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4314d3=this['editor'],_0x197a3b=_0x4314d3['locale'];_0x4314d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4798cc=>{const _0x572456=_0x197a3b['t'];if('formatInline'!=_0x4798cc['type'])return;const {data:_0x568a65}=_0x4798cc;if(null!=_0x568a65){if('fontSize'==_0x568a65['commandName']){const _0x31fb3a=_0x568a65['commandParams'][0x0]['value'];if(_0x31fb3a){const _0x1a47af=_0x572456(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x47b464=>_0x47b464['model']==_0x31fb3a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x197a3b,'*Set\x20font\x20size:*\x20%0',_0x1a47af)};}return{'type':'format','content':o(_0x197a3b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x568a65['commandName']){const _0x2a5087=_0x568a65['commandParams'][0x0]['value'];return _0x2a5087?{'type':'format','content':o(_0x197a3b,'*Set\x20font\x20family:*\x20%0',_0x2a5087)}:{'type':'format','content':o(_0x197a3b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x568a65['commandName']){const _0x301550=_0x568a65['commandParams'][0x0]['value'];if(_0x301550){const _0x231b64=_0x3fcba0(this['editor']['config']['get']('fontColor.colors'))['find'](_0xf09522=>_0xf09522['model']==_0x301550);let _0x2b8bdb=_0x301550,_0x5786d4='';return _0x231b64&&(_0x2b8bdb=_0x231b64['label'],_0x5786d4=_0x572456(_0x2b8bdb)['toLowerCase']()),{'type':'format','content':o(_0x197a3b,'*Set\x20font\x20color:*\x20%0',_0x5786d4)['trim'](),'color':{'value':_0x301550,'title':_0x5786d4||_0x2b8bdb}};}return{'type':'format','content':o(_0x197a3b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x568a65['commandName']){const _0x434352=_0x568a65['commandParams'][0x0]['value'];if(_0x434352){const _0x5e79c6=_0x3fcba0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xb3bbb9=>_0xb3bbb9['model']==_0x434352);let _0x389968=_0x434352,_0x277b7f='';return _0x5e79c6&&(_0x389968=_0x5e79c6['label'],_0x277b7f=_0x572456(_0x389968)['toLowerCase']()),{'type':'format','content':o(_0x197a3b,'*Set\x20font\x20background\x20color:*\x20%0',_0x277b7f)['trim'](),'color':{'value':_0x434352,'title':_0x277b7f||_0x389968}};}return{'type':'format','content':o(_0x197a3b,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x3557c2{['afterInit'](){const _0xfe7e05=this['editor'],_0x5017d0=_0xfe7e05['plugins']['get']('TrackChangesEditing'),_0x2c2ae2=_0xfe7e05['commands']['get']('copyFormat'),_0x391358=_0xfe7e05['commands']['get']('pasteFormat');_0x2c2ae2&&_0x391358&&(_0x5017d0['enableDefaultAttributesIntegration']('pasteFormat'),_0x5017d0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x40d08e=this['editor'],_0x48f0b9=_0x40d08e['locale'];_0x40d08e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28e70c=>{if('formatBlock'!=_0x28e70c['type']&&'formatInline'!=_0x28e70c['type'])return;const {data:_0x2acc6a}=_0x28e70c;if(_0x2acc6a&&'pasteFormat'===_0x2acc6a['commandName']){const _0x49c088=[],_0x569575=_0x2acc6a['commandParams'][0x0];for(const [_0x326744,_0x533ffb]of Object['entries'](_0x569575))_0x49c088['push'](so(_0x40d08e,_0x326744,_0x533ffb));return _0x49c088['length']?{'type':'format','content':o(_0x48f0b9,'*Set\x20format\x20to:*\x20%0',_0x49c088['join'](',\x20'))}:{'type':'format','content':o(_0x48f0b9,'*Remove\x20all\x20formatting*')};}});}}function so(_0x22271a,_0x4296c4,_0x3a055e){const _0x54218b=_0x22271a['locale']['t'],_0x516ff0=_0x4296c4['split'](/(?=[A-Z])/)['join']('\x20'),_0x18cce5=_0x54218b(_0x516ff0['charAt'](0x0)['toUpperCase']()+_0x516ff0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3a055e)return _0x18cce5;if('fontColor'===_0x4296c4||'fontBackgroundColor'===_0x4296c4){const _0x12ca3b=_0x3fcba0(_0x22271a['config']['get']('fontColor.colors'))['find'](_0x1f1e10=>_0x1f1e10['model']==_0x3a055e);return _0x18cce5+'\x20('+(_0x12ca3b?_0x54218b(_0x12ca3b['label'])['toLowerCase']():_0x3a055e)+')';}if('fontSize'===_0x4296c4&&isNaN(parseFloat(_0x3a055e))){const _0xf971be=_0x22271a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x22271a['config']['get']('fontSize.options'))['find'](_0x1d151b=>_0x1d151b['model']==_0x3a055e);return _0x18cce5+'\x20('+(_0xf971be?_0x54218b(_0xf971be['title'])['toLowerCase']():_0x3a055e)+')';}return _0x18cce5+'\x20('+_0x3a055e+')';}class Y extends _0x3557c2{['_headingOptions'];['afterInit'](){const _0x56acfd=this['editor'];if(!_0x56acfd['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x56acfd['config']['get']('heading.options');const _0x24488f=_0x56acfd['locale'],_0x384c80=_0x56acfd['plugins']['get']('TrackChangesEditing');_0x384c80['enableDefaultAttributesIntegration']('heading');for(const _0x55754e of this['_headingOptions'])'paragraph'!=_0x55754e['model']&&_0x384c80['descriptionFactory']['registerElementLabel'](_0x55754e['model'],_0x5a0a00=>{const _0x408a53=this['_getHeadingLevel'](_0x55754e['model']);return null!==_0x408a53?_0x1a3f3b(_0x5a0a00,_0x408a53):_0x2ea68c(_0x5a0a00,_0x55754e['title']);});function _0x1a3f3b(_0x270482,_0x203ea8){return o(_0x24488f,'ELEMENT_HEADING',[_0x270482,_0x203ea8]);}function _0x2ea68c(_0x33fee2,_0x427576){return o(_0x24488f,'ELEMENT_HEADING_CUSTOM',[_0x33fee2,_0x427576]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7bd285=this['editor'],_0x3c3536=_0x7bd285['locale'];function _0x54001d(_0xd98605,_0x2b9249){return o(_0x3c3536,'ELEMENT_HEADING_CUSTOM',[_0xd98605,_0x2b9249]);}_0x7bd285['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x361c10=>{if('formatBlock'!=_0x361c10['type'])return;const {data:_0x4e47d7}=_0x361c10;if(_0x4e47d7&&'heading'==_0x4e47d7['commandName']){const _0x14e7e3=_0x4e47d7['commandParams'][0x0]['value'],_0x8f1cb3=this['_getHeadingLevel'](_0x14e7e3);if(null!==_0x8f1cb3)return{'type':'format','content':o(_0x3c3536,'*Change\x20to:*\x20%0',(_0x47c258=0x1,_0x572ea5=_0x8f1cb3,o(_0x3c3536,'ELEMENT_HEADING',[_0x47c258,_0x572ea5])))};const _0x1c4baa=this['_headingOptions']['find'](_0x845e36=>_0x845e36['model']===_0x14e7e3)['title'];return{'type':'format','content':o(_0x3c3536,'*Change\x20to:*\x20%0',_0x54001d(0x1,_0x1c4baa))};}var _0x47c258,_0x572ea5;});}['_getHeadingLevel'](_0x3ca23d){const _0x322dba=_0x3ca23d['match'](/^heading(\d+)/);if(_0x322dba)return _0x322dba[0x1];const _0x3dc290=this['_headingOptions']?.['find'](_0x40e85a=>_0x40e85a['model']==_0x3ca23d);if(_0x3dc290&&_0x3dc290['view']){const _0x3f427e=_0x3dc290['view'],_0x36003c=(_0x3f427e['name']??_0x3f427e)['match'](/^h(\d+)/);if(_0x36003c)return _0x36003c[0x1];}return null;}}class Z extends _0x3557c2{['afterInit'](){const _0x190c19=this['editor'];if(!_0x190c19['plugins']['has']('HighlightEditing'))return;const _0x2ada94=_0x190c19['plugins']['get']('TrackChangesEditing'),_0x183be3=_0x190c19['locale'];_0x2ada94['enableDefaultAttributesIntegration']('highlight'),_0x2ada94['registerInlineAttribute']('highlight'),_0x2ada94['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x183be3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4077ea=this['editor'],_0x3e54b1=_0x4077ea['locale'];_0x4077ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x217950=>{if('formatInline'!=_0x217950['type'])return;const {data:_0x12f5f9}=_0x217950;if(_0x12f5f9&&'highlight'==_0x12f5f9['commandName']){const _0x324a4a=_0x3e54b1['t'],_0x3e8b39=_0x12f5f9['commandParams'][0x0]['value'];if(_0x3e8b39){const _0x55a797=_0x4077ea['config']['get']('highlight.options')['find'](_0xe1f7c0=>_0xe1f7c0['model']==_0x3e8b39),_0x3a6a1d=_0x324a4a(_0x55a797['title'])['toLowerCase']();return{'type':'format','content':o(_0x3e54b1,'*Set\x20highlight:*\x20%0',_0x3a6a1d),'color':{'value':_0x55a797['color'],'title':_0x55a797['title']}};}return{'type':'format','content':o(_0x3e54b1,'*Remove\x20highlight*',o(_0x3e54b1,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x3557c2{['afterInit'](){const _0x57acfe=this['editor'];if(!_0x57acfe['plugins']['has']('HorizontalLineEditing'))return;_0x57acfe['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1bce0c=_0x57acfe['plugins']['get']('TrackChangesEditing'),_0xf9a336=_0x57acfe['locale'];_0x1bce0c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x46b5c6=>o(_0xf9a336,'ELEMENT_HORIZONTAL_LINE',_0x46b5c6)),_0x57acfe['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x15a6a9,{writer:_0x10e8bc,options:_0x378cae})=>{if(!_0x378cae['showSuggestionHighlights'])return null;const _0x372642=_0x10e8bc['createContainerElement']('div'),_0x431942=_0x10e8bc['createEmptyElement']('hr');return _0x10e8bc['addClass']('ck-horizontal-line',_0x372642),_0x10e8bc['insert'](_0x10e8bc['createPositionAt'](_0x372642,0x0),_0x431942),_0x372642;},'converterPriority':'high'});}}class et extends _0x3557c2{['afterInit'](){const _0x4d4d1e=this['editor'];if(!_0x4d4d1e['plugins']['has']('HtmlEmbed'))return;const _0xd801b3=_0x4d4d1e['plugins']['get']('TrackChangesEditing'),_0x256aa3=_0x4d4d1e['locale'];_0xd801b3['descriptionFactory']['registerElementLabel']('rawHtml',_0xdd6391=>o(_0x256aa3,'ELEMENT_HTML_EMBED',_0xdd6391)),_0xd801b3['enableDefaultAttributesIntegration']('htmlEmbed'),_0xd801b3['registerBlockAttribute']('value'),_0xd801b3['descriptionFactory']['registerDescriptionCallback'](_0x4f7c48=>{if('attribute'!=_0x4f7c48['type'])return;const {data:_0x52e857}=_0x4f7c48;if(_0x52e857&&'value'==_0x52e857['key']&&_0x4f7c48['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x55de71=o(_0x256aa3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x256aa3,'*Change\x20%0\x20content*',_0x55de71)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46c5f3=this['editor'],_0x1c4e1e=_0x46c5f3['locale'];_0x46c5f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5efe4a=>{if('formatBlock'!=_0x5efe4a['type'])return;const {data:_0xb8749e}=_0x5efe4a;if(_0xb8749e&&'htmlEmbed'==_0xb8749e['commandName']){const _0x284540=o(_0x1c4e1e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1c4e1e,'*Change\x20%0\x20content*',_0x284540)};}});}}class it extends _0x3557c2{['afterInit'](){const _0x2bed7b=this['editor'];if(!_0x2bed7b['plugins']['has']('ImageEditing'))return;const _0x368a26=_0x2bed7b['plugins']['get']('TrackChangesEditing'),_0xb87fa=_0x2bed7b['plugins']['get']('ImageUtils'),_0x1c13a2=_0x2bed7b['locale'];_0x368a26['enableCommand']('insertImage'),_0x368a26['descriptionFactory']['registerElementLabel']('imageBlock',_0x49def1=>o(_0x1c13a2,'ELEMENT_IMAGE',_0x49def1)),_0x368a26['descriptionFactory']['registerElementLabel']('imageInline',_0x653369=>o(_0x1c13a2,'ELEMENT_INLINE_IMAGE',_0x653369)),_0x368a26['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1c13a2,'ELEMENT_CAPTION')),_0x2bed7b['plugins']['has']('ImageUploadEditing')&&_0x368a26['enableCommand']('uploadImage'),_0x2bed7b['plugins']['has']('ImageBlockEditing')&&_0x2bed7b['plugins']['has']('ImageInlineEditing')&&(_0x368a26['enableCommand']('imageTypeInline',(_0x273251,_0xb45bd9)=>{const _0x39e22c=_0xb87fa['getClosestSelectedImageElement'](_0x2bed7b['model']['document']['selection']);_0x2bed7b['model']['change'](()=>{_0x368a26['markBlockFormat'](_0x39e22c,{'commandName':'imageTypeInline','commandParams':[_0xb45bd9]},[],'convertBlockImageToInline');});}),_0x368a26['enableCommand']('imageTypeBlock',(_0x2fa09e,_0x2fadc6)=>{_0x2bed7b['model']['change'](_0x674381=>{let _0x3ad40c=_0xb87fa['getClosestSelectedImageElement'](_0x2bed7b['model']['document']['selection']),_0x1ca518=_0x674381['createRangeOn'](_0x3ad40c);const _0x21aaaa=_0x357f7f['fromPosition'](_0x1ca518['start'],'toPrevious'),_0x14d5e3=_0x357f7f['fromPosition'](_0x1ca518['end'],'toNext');_0x368a26['forceDefaultExecution'](()=>_0x2fa09e(_0x2fadc6)),_0x3ad40c=_0xb87fa['getClosestSelectedImageElement'](_0x2bed7b['model']['document']['selection']),_0x1ca518=_0x674381['createRangeOn'](_0x3ad40c);const _0x11c702=_0x674381['createRange'](_0x21aaaa,_0x14d5e3);_0x21aaaa['detach'](),_0x14d5e3['detach'](),_0x368a26['markBlockFormat'](_0x3ad40c,{'commandName':'imageTypeInline','commandParams':[_0x2fadc6]},[],'convertInlineImageToBlock'),_0x11c702['start']['isBefore'](_0x1ca518['start'])&&_0x368a26['markInsertion'](_0x674381['createRange'](_0x11c702['start'],_0x1ca518['start']),'convertInlineImageToBlock'),_0x1ca518['end']['isBefore'](_0x11c702['end'])&&_0x368a26['markInsertion'](_0x674381['createRange'](_0x1ca518['end'],_0x11c702['end']),'convertInlineImageToBlock');});}),_0x368a26['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x368a26['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x368a26['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x368a26['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x368a26['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x368a26['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x928f27])=>{const _0x44c9f4=_0x368a26['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3d9c63=_0x928f27['start'],_0x7f3b4f=_0x928f27['end'];const _0x4ea517=_0x2bed7b['model']['schema']['getNearestSelectionRange'](_0x3d9c63,'backward'),_0x533006=_0x2bed7b['model']['schema']['getNearestSelectionRange'](_0x7f3b4f,'forward');_0x4ea517['isCollapsed']&&(_0x3d9c63=_0x4ea517['start']),_0x533006['isCollapsed']&&(_0x7f3b4f=_0x533006['end']),_0x44c9f4([_0x2bed7b['model']['createRange'](_0x3d9c63,_0x7f3b4f)]);}),_0x368a26['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x31c4d4),_0x368a26['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x31c4d4)),_0x2bed7b['plugins']['has']('ImageCaptionEditing')&&(_0x368a26['enableCommand']('toggleImageCaption',(_0x290d45,_0x25cffa)=>{const _0x1e4fa7=_0x2bed7b['plugins']['get']('ImageCaptionUtils');let _0x3b476f=_0xb87fa['getClosestSelectedImageElement'](_0x2bed7b['model']['document']['selection']),_0x5c5ea9=_0x1e4fa7['getCaptionFromImageModelElement'](_0x3b476f);_0x2bed7b['model']['change'](()=>{if(_0x5c5ea9)return void _0x368a26['markDeletion'](_0x2bed7b['model']['createRangeOn'](_0x5c5ea9));const _0x39eddf=_0xb87fa['isBlockImage'](_0x3b476f);_0x290d45(_0x25cffa),_0x3b476f=_0xb87fa['getClosestSelectedImageElement'](_0x2bed7b['model']['document']['selection']),_0x5c5ea9=_0x1e4fa7['getCaptionFromImageModelElement'](_0x3b476f),_0x368a26['markInsertion'](_0x2bed7b['model']['createRangeOn'](_0x5c5ea9),_0x39eddf?null:'imageCaption');});}),_0x368a26['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x31c4d4));const _0x5b8740=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x338531(_0x4c7370,_0x31c5d2){const _0x394c30=_0x5b8740['findIndex'](({type:_0x20330a,subType:_0xff8ec8})=>_0x4c7370['type']==_0x20330a&&_0x4c7370['subType']==_0xff8ec8),_0x328ee1=_0x5b8740['findIndex'](({type:_0x15baff,subType:_0x47252b})=>_0x31c5d2['type']==_0x15baff&&_0x31c5d2['subType']==_0x47252b);if(_0x394c30<0x0||_0x328ee1<0x0)return!0x1;const _0x21c7b7=_0x4c7370['getFirstRange'](),_0x50910e=_0x31c5d2['getFirstRange']();if((0x0==_0x394c30||0x1==_0x394c30)&&0x2==_0x328ee1&&_0x21c7b7['isIntersecting'](_0x50910e))return!0x0;if(0x2==_0x394c30&&0x3==_0x328ee1){const _0x529547=_0x368a26['_findSuggestions'](_0x21c7b7,'insertion')['filter'](({suggestion:_0x52871b,meta:_0xc887c3})=>_0xc887c3['isOwn']&&'convertInlineImageToBlock'==_0x52871b['subType']);if(_0x529547['length']>0x1&&_0x50910e['end']['isEqual'](_0x21c7b7['start']))return!0x0;if(0x1==_0x529547['length']&&(_0x21c7b7['start']['isEqual'](_0x50910e['end'])||_0x21c7b7['end']['isEqual'](_0x50910e['start'])))return!0x0;}if(0x3==_0x394c30&&0x3==_0x328ee1&&_0x21c7b7['start']['isBefore'](_0x50910e['start'])){const _0x24b68f=_0x21c7b7['end']['nodeAfter'],_0x3d90e1=_0x50910e['start']['nodeBefore'];return _0xb87fa['isBlockImage'](_0x24b68f)&&_0x24b68f===_0x3d90e1;}return!0x1;}function _0x31c4d4(_0x113fe5,_0x21b272){return _0x338531(_0x113fe5,_0x21b272)?[_0x113fe5,_0x21b272]:_0x338531(_0x21b272,_0x113fe5)?[_0x21b272,_0x113fe5]:null;}_0x2bed7b['plugins']['has']('ImageResize')&&(_0x368a26['enableDefaultAttributesIntegration']('resizeImage'),_0x368a26['registerBlockAttribute']('resizedWidth'),_0x368a26['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1c13a2,'FORMAT_IMAGE_SIZE'))),_0x2bed7b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x368a26['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x368a26['registerBlockAttribute']('alt')),_0x368a26['descriptionFactory']['registerDescriptionCallback'](_0x248511=>{if(!!_0x5b8740['find'](({type:_0x282a3d,subType:_0x13c26a})=>_0x248511['type']==_0x282a3d&&_0x248511['subType']==_0x13c26a))return _0x248511['previous']?{}:void 0x0;}),_0x368a26['descriptionFactory']['registerDescriptionCallback'](_0x4fade9=>{if('insertion'==_0x4fade9['type']||'deletion'==_0x4fade9['type']){const _0x57db39=_0x4fade9['getContainedElement']();if(_0x57db39&&_0x57db39['is']('element','caption'))return{'type':'insertion'==_0x4fade9['type']?'addObject':'removeObject','element':_0x57db39,'quantity':0x1};}}),_0x368a26['descriptionFactory']['registerDescriptionCallback'](_0x49fe57=>'formatBlock'==_0x49fe57['type']&&'convertInlineImageToBlock'==_0x49fe57['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x49fe57['type']&&'convertBlockImageToInline'==_0x49fe57['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x368a26['descriptionFactory']['registerDescriptionCallback'](_0x96f667=>{if('attribute'!=_0x96f667['type'])return;const {data:_0x5939b5}=_0x96f667;if(!_0x5939b5||'alt'!=_0x5939b5['key'])return;const _0x365981=_0x5939b5['newValue'];return _0x365981?{'type':'format','content':o(_0x1c13a2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x365981+'\x22')}:{'type':'format','content':o(_0x1c13a2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c642a=this['editor'],_0x4750a6=_0x2c642a['locale'];_0x2c642a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5245c8=>{if('formatBlock'!=_0x5245c8['type']&&'formatInline'!=_0x5245c8['type'])return;const {data:_0x552331}=_0x5245c8;if(_0x552331){if('imageTextAlternative'==_0x552331['commandName']){const _0x16e201=_0x552331['commandParams'][0x0]['newValue'];return _0x16e201?{'type':'format','content':o(_0x4750a6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x16e201+'\x22')}:{'type':'format','content':o(_0x4750a6,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x552331['commandName']){const _0x434986=_0x552331['commandParams'][0x0]['width'];return _0x434986?{'type':'format','content':o(_0x4750a6,'*Set\x20image\x20width:*\x20%0',_0x434986)}:{'type':'format','content':o(_0x4750a6,'*Reset\x20image\x20width*')};}}});}}class st extends _0x3557c2{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x49e740=this['editor']['locale'],_0x252dce=this['editor']['plugins']['get']('TrackChangesEditing');_0x252dce['enableDefaultAttributesIntegration']('replaceImageSource'),_0x252dce['registerBlockAttribute']('src'),_0x252dce['descriptionFactory']['registerDescriptionCallback'](_0x5cbc0b=>{if('attribute'!=_0x5cbc0b['type'])return;const {data:_0x3bd93e}=_0x5cbc0b;return _0x3bd93e&&'src'==_0x3bd93e['key']?_0x3bd93e['newValue']&&_0x3bd93e['oldValue']?{'type':'format','content':o(_0x49e740,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x27d9ee=this['editor']['plugins']['get']('TrackChangesEditing');_0x27d9ee['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x27d9ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x27d9ee['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x27d9ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb950b0=this['editor'],_0x3becd7=_0xb950b0['locale'];_0xb950b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a441d=>{if('formatBlock'!=_0x1a441d['type']&&'formatInline'!=_0x1a441d['type'])return;const {data:_0x3be0e8}=_0x1a441d;if(!_0x3be0e8||'replaceImageSource'!=_0x3be0e8['commandName'])return;return{'type':'format','content':o(_0x3becd7,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x3557c2{['afterInit'](){const _0x49ad04=this['editor'];if(!_0x49ad04['plugins']['has']('ImageStyleEditing'))return;const _0x49f987=_0x49ad04['plugins']['get']('TrackChangesEditing'),_0x5e328f=_0x49ad04['plugins']['get']('ImageUtils'),_0x1f699c={};_0x49f987['enableCommand']('imageStyle',(_0x4c0fd9,_0x1fd696)=>{const _0x440a02=_0x49ad04['plugins']['get']('Users')['me'],_0xc87b68=_0x49ad04['commands']['get']('imageStyle');let _0x1e5e0c=_0x5e328f['getClosestSelectedImageElement'](_0x49ad04['model']['document']['selection']),_0x865e08=_0x49ad04['model']['createRangeOn'](_0x1e5e0c),_0x3e5261=_0xc87b68['value'];if(_0x3e5261==_0x1fd696['value'])return;const _0x230254={'commandName':'imageStyle','commandParams':[_0x1fd696],'formatGroupId':_0x5b0a21()};_0x49ad04['model']['change'](()=>{if(_0x49f987['getSuggestions']()['filter'](_0x1825f9=>_0x1825f9['isInContent']&&_0x440a02==_0x1825f9['author']&&('formatBlock'==_0x1825f9['type']||'formatInline'==_0x1825f9['type'])&&('imageStylePreApply'==_0x1825f9['subType']||'imageStylePostApply'==_0x1825f9['subType'])&&_0x1825f9['getFirstRange']()['isEqual'](_0x865e08))['forEach'](_0x4082b0=>_0x49f987['discardSuggestion'](_0x4082b0['head'])),_0x1e5e0c=_0x5e328f['getClosestSelectedImageElement'](_0x49ad04['model']['document']['selection']),_0x865e08=_0x49ad04['model']['createRangeOn'](_0x1e5e0c),_0xc87b68['refresh'](),_0x49ad04['commands']['get']('imageTypeInline')['refresh'](),_0x49ad04['commands']['get']('imageTypeBlock')['refresh'](),_0x3e5261=_0xc87b68['value'],_0x3e5261!=_0x1fd696['value'])return _0x5e328f['isInlineImage'](_0x1e5e0c)&&_0xc87b68['shouldConvertImageType'](_0x1fd696['value'],_0x1e5e0c)?(_0x4c0fd9({..._0x1fd696,'setImageSizes':!0x1}),_0x1e5e0c=_0x5e328f['getClosestSelectedImageElement'](_0x49ad04['model']['document']['selection']),void _0x49f987['markBlockFormat'](_0x1e5e0c,{..._0x230254,'commandReversedParams':[{'value':_0x3e5261||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5e328f['isBlockImage'](_0x1e5e0c)?_0x49f987['markBlockFormat'](_0x1e5e0c,_0x230254,[],'imageStylePostApply'):_0x49f987['markInlineFormat'](_0x865e08,_0x230254,'imageStylePostApply'));});});for(const _0x4d6c4f of _0x49ad04['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1f699c[_0x4d6c4f['name']]=_0x4d6c4f['title']['toLowerCase']();_0x49f987['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x49f987['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x49f987['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x49f987['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xed631a])=>{_0x5e328f['setImageNaturalSizeAttributes'](_0xed631a['getContainedElement']());}),_0x49f987['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x355a84,_0xd9bd5b)=>{_0x49f987['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x355a84,{'commandName':_0xd9bd5b['commandName'],'commandParams':_0xd9bd5b['commandReversedParams']});}),_0x49f987['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x116643,_0x5090f1){if(_0x20ee5e(_0x116643,_0x5090f1))return[_0x116643,_0x5090f1];if(_0x20ee5e(_0x5090f1,_0x116643))return[_0x5090f1,_0x116643];return null;});const _0x2f60e7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x20ee5e(_0x1f319f,_0xe8cf95){const _0xcf9592=_0x2f60e7['findIndex'](({type:_0x22f3c1,subType:_0xf76e9f})=>_0x1f319f['type']==_0x22f3c1&&_0x1f319f['subType']==_0xf76e9f),_0x23cd85=_0x2f60e7['findIndex'](({type:_0x3c2f76,subType:_0x25a424})=>_0xe8cf95['type']==_0x3c2f76&&_0xe8cf95['subType']==_0x25a424);if(_0xcf9592<0x0||_0x23cd85<0x0)return!0x1;const _0x2d09e8=_0x1f319f['getFirstRange'](),_0x45f364=_0xe8cf95['getFirstRange']();if((0x0==_0xcf9592||0x1==_0xcf9592)&&0x2==_0x23cd85&&_0x2d09e8['isIntersecting'](_0x45f364))return!0x0;if(0x2==_0xcf9592&&0x3==_0x23cd85){const _0x52436a=_0x49f987['_findSuggestions'](_0x2d09e8,'insertion')['filter'](({suggestion:_0x12ebe6,meta:_0x1525ee})=>_0x1525ee['isOwn']&&'convertInlineImageToBlock'==_0x12ebe6['subType']);if(_0x52436a['length']>0x1&&_0x45f364['end']['isEqual'](_0x2d09e8['start']))return!0x0;if(0x1==_0x52436a['length']&&(_0x2d09e8['start']['isEqual'](_0x45f364['end'])||_0x2d09e8['end']['isEqual'](_0x45f364['start'])))return!0x0;}if(0x3==_0xcf9592&&0x3==_0x23cd85&&_0x2d09e8['start']['isBefore'](_0x45f364['start'])){const _0x1d8d1d=_0x2d09e8['end']['nodeAfter'],_0x5b4041=_0x45f364['start']['nodeBefore'];return _0x5e328f['isBlockImage'](_0x1d8d1d)&&_0x1d8d1d===_0x5b4041;}return!0x1;}_0x49ad04['model']['document']['registerPostFixer'](()=>{let _0x4da4df=!0x1;const _0x5a3a6a=Array['from'](_0x49ad04['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23fae8,data:_0x5af967}of _0x5a3a6a){const {group:_0x947a79,type:_0x226ef5,subType:_0x53a5ae,id:_0x531653}=_0x49f987['_splitMarkerName'](_0x23fae8);if('suggestion'==_0x947a79&&_0x49f987['hasSuggestion'](_0x531653)){if('formatBlock'==_0x226ef5&&('imageStylePreApply'==_0x53a5ae||'imageStylePostApply'==_0x53a5ae)){const _0x102f84=_0x49f987['getSuggestion'](_0x531653);if(_0x5af967['newRange']){const _0x4c58a3=_0x102f84['getFirstRange']()['getContainedElement']();if(_0x5e328f['isBlockImage'](_0x4c58a3))continue;_0x49f987['discardSuggestion'](_0x102f84),_0x4da4df=!0x0;}}if('insertion'==_0x226ef5&&'imageCaption'==_0x53a5ae&&!_0x5af967['newRange']){const _0xcb69b6=_0x49f987['getSuggestion'](_0x531653);_0xcb69b6['next']&&_0xcb69b6['next']['isInContent']&&(_0x49f987['discardSuggestion'](_0xcb69b6['next']),_0x4da4df=!0x0);}}}return _0x4da4df;}),this['_registerLegacyDescription'](_0x1f699c);}['_registerLegacyDescription'](_0x151673){const _0x4d78d3=this['editor'],_0x3e8e7d=_0x4d78d3['locale'];_0x4d78d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46990b=>{if('formatBlock'!=_0x46990b['type']&&'formatInline'!=_0x46990b['type'])return;const {data:_0x195add}=_0x46990b;if(!_0x195add||'imageStyle'!=_0x195add['commandName'])return;const _0x179148=_0x195add['commandParams'][0x0]['value'];return _0x1e2933('side'===_0x179148?o(_0x3e8e7d,'FORMAT_SIDE_IMAGE'):_0x151673[_0x179148]||_0x179148);function _0x1e2933(_0x209f31){return{'type':'format','content':o(_0x3e8e7d,'*Format:*\x20%0',_0x209f31)};}});}}class ot extends _0x3557c2{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5c615f){super(_0x5c615f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4eb6f5=this['editor'],_0x3162aa=_0x4eb6f5['commands']['get']('importWord'),_0x446b1d=_0x4eb6f5['commands']['get']('trackChanges');_0x3162aa&&(_0x3162aa['on']('execute',(_0x22e3b2,[,_0x401b62])=>{this['_trackChangesValueDuringImport']=_0x446b1d['value'],_0x401b62['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3162aa,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3162aa,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x446b1d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4eb6f5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x141fde,_0x19e7a3){const {suggestions:_0x3b73e3}=_0x19e7a3,_0x31284c=this['editor']['commands']['get']('trackChanges'),_0x47dcc5=_0x31284c['value'];this['_trackChangesValueDuringImport']!==_0x47dcc5&&(_0x31284c['execute'](),this['_trackChangesExecuted']=!0x0),_0x3b73e3&&_0x3b73e3['forEach'](({id:_0x3fa6ca,type:_0x22cfc6,author:_0x2696d4,created_at:_0x478a50})=>{const _0x3c715f={'id':_0x3fa6ca,'type':_0x22cfc6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2696d4,'createdAt':_0x478a50?new Date(_0x478a50):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3c715f);});}}class rt extends _0x3557c2{['afterInit'](){const _0x3fb708=this['editor'],_0x1605e9=_0x3fb708['plugins']['get']('TrackChangesEditing');if(_0x3fb708['plugins']['has']('IndentEditing')&&(_0x1605e9['enableCommand']('indent'),_0x1605e9['enableCommand']('outdent')),_0x3fb708['plugins']['has']('IndentBlock')){for(const _0x2b053f of['indentBlock','outdentBlock'])_0x1605e9['enableDefaultAttributesIntegration'](_0x2b053f);}const _0x1fa914=_0x3fb708['locale'];_0x1605e9['registerBlockAttribute']('blockIndent'),_0x1605e9['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1fa914,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x195e50=this['editor'],_0x3857c9=_0x195e50['locale'],_0x27a7dd=_0x195e50['plugins']['get']('TrackChangesEditing');_0x27a7dd['descriptionFactory']['registerDescriptionCallback'](_0x2c02bb=>{if('formatBlock'!=_0x2c02bb['type'])return;const {data:_0x1165bc}=_0x2c02bb;if(!_0x1165bc)return;if('indentBlock'!=_0x1165bc['commandName']&&'outdentBlock'!=_0x1165bc['commandName'])return;const _0x4c0db4=_0x2c02bb['getItems']()[0x0],_0x3e09e1=_0x27a7dd['descriptionFactory']['getItemLabel'](_0x4c0db4);return'indentBlock'==_0x1165bc['commandName']?{'type':'format','content':o(_0x3857c9,'*Indent:*\x20%0',_0x3e09e1)}:'outdentBlock'==_0x1165bc['commandName']?{'type':'format','content':o(_0x3857c9,'*Outdent:*\x20%0',_0x3e09e1)}:void 0x0;});}}class at extends _0x3557c2{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x3557c2{['afterInit'](){const _0x4e08b1=this['editor'];if(!_0x4e08b1['plugins']['has']('LinkEditing'))return;const _0x2953ca=_0x4e08b1['plugins']['get']('TrackChangesEditing'),_0x4edfe5=_0x4e08b1['commands']['get']('link');_0x2953ca['enableDefaultAttributesIntegration']('link'),_0x2953ca['enableDefaultAttributesIntegration']('unlink'),_0x2953ca['registerInlineAttribute']('linkHref');for(const _0x5cd9f4 of _0x4edfe5['manualDecorators'])_0x2953ca['registerInlineAttribute'](_0x5cd9f4['id']),_0x2953ca['descriptionFactory']['registerAttributeLabel'](_0x5cd9f4['id'],'link\x20('+_0x5cd9f4['label']['toLowerCase']()+')');_0x2953ca['descriptionFactory']['registerDescriptionCallback'](_0x511b49=>{if('attribute'!=_0x511b49['type'])return;const {data:_0x217a7b}=_0x511b49;if(!_0x217a7b||'linkHref'!=_0x217a7b['key'])return;const _0x563071=_0x217a7b['newValue'],_0x23aa41=_0x4e08b1['locale'];return{'type':'format','content':null==_0x563071?o(_0x23aa41,'*Remove\x20link*'):o(_0x23aa41,'*Set\x20link:*\x20%0','\x22'+_0x563071+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a4e03=this['editor'],_0x10b35c=_0x1a4e03['locale'];_0x1a4e03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2532e2=>{if('formatInline'!=_0x2532e2['type'])return;const {data:_0x5b3404}=_0x2532e2;if(_0x5b3404){if('link'==_0x5b3404['commandName']){const _0x45e87d=_0x5b3404['commandParams'][0x0];return{'type':'format','content':o(_0x10b35c,'*Set\x20link:*\x20%0','\x22'+_0x45e87d+'\x22')};}return'unlink'==_0x5b3404['commandName']?{'type':'format','content':o(_0x10b35c,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x3557c2{['afterInit'](){const _0x4bc1ca=this['editor'],_0x88a759=_0x4bc1ca['locale'];if(!_0x4bc1ca['plugins']['has']('LegacyListEditing'))return;const _0x36ea74=_0x4bc1ca['plugins']['get']('TrackChangesEditing'),_0x51d1d0=_0x4bc1ca['plugins']['has']('LegacyTodoListEditing');function _0x45af96(_0x36564a){return()=>{const _0x25a803=_0x4bc1ca['model']['document']['selection'],_0x2d6e5b=_0x4bc1ca['commands']['get'](_0x36564a);if(_0x2d6e5b['value'])return void _0x4bc1ca['execute']('paragraph',{});const _0x21899b=_0x36564a['slice'](0x0,-0x4),_0x93a4be=function(_0x37e95a,_0x53adfb,_0x4f6986){let _0x4e9633=Array['from'](_0x37e95a)['filter'](_0x2ffa5e=>function(_0x577a81,_0x1f0fe2){return _0x1f0fe2['checkChild'](_0x577a81['parent'],'listItem')&&!_0x1f0fe2['isObject'](_0x577a81);}(_0x2ffa5e,_0x4f6986));_0x4e9633=_0x4e9633['filter'](_0x591ad9=>!_0x591ad9['is']('element','listItem')||_0x591ad9['getAttribute']('listType')!=_0x53adfb);const _0x301e9b=new Set();for(const _0x91592e of _0x4e9633)_0x91592e['is']('element','listItem')?_0x301e9b['add'](me(_0x91592e)):_0x301e9b['add'](_0x91592e);return Array['from'](_0x301e9b);}(_0x25a803['getSelectedBlocks'](),_0x21899b,_0x4bc1ca['model']['schema']);_0x4bc1ca['model']['change'](()=>{for(const _0x4dd63c of _0x93a4be)_0x36ea74['markBlockFormat'](_0x4dd63c,{'commandName':_0x36564a,'commandParams':[{'forceValue':!_0x2d6e5b['value']}],'formatGroupId':'blockName'},fe(_0x4dd63c));});};}function _0x50edd8(_0x382207){return()=>{const _0x55e34d=function(_0x40c8c7){let _0x47bc27=Array['from'](_0x40c8c7);const _0x2b7818=_0x47bc27['findIndex'](_0xf3378=>'listItem'!=_0xf3378['name']);return _0x2b7818>-0x1&&(_0x47bc27=_0x47bc27['slice'](0x0,_0x2b7818)),_0x47bc27;}(_0x4bc1ca['model']['document']['selection']['getSelectedBlocks']()),_0x1cc450=_0x4bc1ca['model']['createRange'](_0x4bc1ca['model']['createPositionAt'](_0x55e34d[0x0],'before'),_0x4bc1ca['model']['createPositionAt'](_0x55e34d[_0x55e34d['length']-0x1],'end'));_0x4bc1ca['model']['change'](()=>{_0x36ea74['markBlockFormat'](_0x1cc450,{'commandName':_0x382207,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2c7662){const _0x498125=new Set();for(const _0x2114fd of _0x2c7662){let _0x4579d0=_0x2114fd['nextSibling'];for(;_0x4579d0&&_0x4579d0['getAttribute']('listIndent')>_0x2114fd['getAttribute']('listIndent');)_0x498125['add'](_0x4579d0),_0x4579d0=_0x4579d0['nextSibling'];}return Array['from'](_0x498125);}(_0x55e34d));});};}_0x36ea74['enableCommand']('numberedList',_0x45af96('numberedList')),_0x36ea74['enableCommand']('bulletedList',_0x45af96('bulletedList')),_0x51d1d0&&_0x36ea74['enableCommand']('todoList',_0x45af96('todoList')),_0x36ea74['enableCommand']('indentList',_0x50edd8('indentList')),_0x36ea74['enableCommand']('outdentList',_0x50edd8('outdentList')),_0x51d1d0&&_0x36ea74['enableCommand']('checkTodoList',()=>{const _0x801771=_0x4bc1ca['commands']['get']('checkTodoList'),_0x40b344=Array['from'](_0x801771['_selectedElements']);_0x40b344['filter'](_0x2bb0cb=>_0x2bb0cb['getAttribute']('todoListChecked')!=_0x801771['value']),_0x4bc1ca['model']['change'](()=>{for(const _0x4dcfae of _0x40b344)_0x36ea74['markBlockFormat'](_0x4dcfae,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x801771['value']}]});});}),_0x36ea74['descriptionFactory']['registerElementLabel']('listItem',_0x53f46d=>o(_0x88a759,'ELEMENT_LIST_ITEM',_0x53f46d)),_0x36ea74['descriptionFactory']['registerDescriptionCallback'](_0x490c0c=>{if('formatBlock'!=_0x490c0c['type']&&'formatInline'!=_0x490c0c['type'])return;const {data:_0x2cb21a}=_0x490c0c;if(_0x2cb21a){if('numberedList'==_0x2cb21a['commandName']||'bulletedList'==_0x2cb21a['commandName']||'todoList'==_0x2cb21a['commandName'])switch(_0x2cb21a['commandName']['replace']('List','')){case'bulleted':return _0x2d2785(o(_0x88a759,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2d2785(o(_0x88a759,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2d2785(o(_0x88a759,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2cb21a['commandName'])return{'type':'format','content':o(_0x88a759,'*Indent:*\x20%0',o(_0x88a759,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2cb21a['commandName'])return{'type':'format','content':o(_0x88a759,'*Outdent:*\x20%0',o(_0x88a759,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2cb21a['commandName'])return _0x2cb21a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x88a759,'*Check\x20item*')}:{'type':'format','content':o(_0x88a759,'*Uncheck\x20item*')};}function _0x2d2785(_0x4768bc){return{'type':'format','content':o(_0x88a759,'*Change\x20to:*\x20%0',_0x4768bc)};}});}}function me(_0x523b92){const _0x25de8c=_0x523b92['getAttribute']('listIndent');if(0x0==_0x25de8c)return _0x523b92;let _0x1b2762=_0x523b92;for(;_0x523b92['previousSibling']&&_0x523b92['previousSibling']['is']('element','listItem');){const _0x3ac4d2=_0x523b92['previousSibling']['getAttribute']('listIndent');if(_0x3ac4d2==_0x25de8c)_0x1b2762=_0x523b92['previousSibling'];else{if(_0x3ac4d2<_0x25de8c)break;}_0x523b92=_0x523b92['previousSibling'];}return _0x1b2762;}function fe(_0x9a0ca5){const _0x45d1c6=[];if(_0x9a0ca5['is']('element','listItem')&&_0x9a0ca5['getAttribute']('listIndent')>0x0){let _0x393ef5=_0x9a0ca5['nextSibling'];for(;_0x393ef5&&'listItem'==_0x393ef5['name']&&_0x393ef5['getAttribute']('listIndent')==_0x9a0ca5['getAttribute']('listIndent');)_0x45d1c6['push'](_0x393ef5),_0x393ef5=_0x393ef5['nextSibling'];}return _0x45d1c6;}class K extends _0x3557c2{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x33562f=this['editor']['config']['get']('list.properties'),_0x195f09=this['editor']['plugins']['get']('TrackChangesEditing');_0x33562f['styles']&&_0x195f09['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x33562f['reversed']&&_0x195f09['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x33562f['startIndex']&&_0x195f09['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x195f09['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3fbd83,_0x594116={}){const _0x163c72=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2869d7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x163c72['markMultiRangeBlockFormat'](_0x2869d7,{'commandName':'listStyle','commandParams':[{'type':_0x594116['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x262a7f,_0xf21c23={}){const _0x44f1f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1287ff=this['_getSuggestionBlocks'](_0x23da56=>_0x23da56['is']('element','listItem')&&'numbered'===_0x23da56['getAttribute']('listType'));if(_0x1287ff['length']<0x1)return;const _0x59a829=_0x1287ff['map'](_0x1404eb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1404eb,'before'),this['editor']['model']['createPositionAt'](_0x1404eb,0x0)));this['editor']['model']['change'](()=>{_0x44f1f4['markMultiRangeBlockFormat'](_0x59a829,{'commandName':'listReversed','commandParams':[{'reversed':_0xf21c23['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5bd999,_0x1e725a={}){const _0x2e55b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44d0eb=this['_getSuggestionBlocks'](_0x74aafb=>_0x74aafb['is']('element','listItem')&&'numbered'===_0x74aafb['getAttribute']('listType'));if(_0x44d0eb['length']<0x1)return;const _0x318453=_0x44d0eb['map'](_0xb84917=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xb84917,'before'),this['editor']['model']['createPositionAt'](_0xb84917,0x0)));this['editor']['model']['change'](()=>{_0x2e55b5['markMultiRangeBlockFormat'](_0x318453,{'commandName':'listStart','commandParams':[{'startIndex':_0x1e725a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3816ca){if('formatBlock'!=_0x3816ca['type']&&'formatInline'!=_0x3816ca['type'])return;const _0x44b203=this['editor']['locale'],{data:_0x3a13e4}=_0x3816ca;if(!_0x3a13e4)return;let _0x542052,_0x229471;switch(_0x3a13e4['commandName']){case'listStyle':_0x542052='*Change\x20to:*\x20%0',_0x229471={'type':'format','content':o(_0x44b203,_0x542052,o(_0x44b203,this['_getTranslationKeyForListStyle'](_0x3a13e4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x542052=_0x3a13e4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x229471={'type':'format','content':o(_0x44b203,_0x542052)};break;case'listStart':_0x542052='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x229471={'type':'format','content':o(_0x44b203,_0x542052,_0x3a13e4['commandParams'][0x0]['startIndex'])};}return _0x229471;}['_getSuggestionBlocksForListStyle'](){const _0xc33fbc=this['editor']['plugins']['get']('LegacyListUtils');let _0x599289=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x599289[0x0]?.['is']('element','listItem')&&_0x599289['unshift'](..._0xc33fbc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x599289[_0x599289['length']-0x1]?.['is']('element','listItem')&&_0x599289['push'](..._0xc33fbc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x599289=[...new Set(_0x599289)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x599289=_0x599289['filter'](_0x595b6d=>_0x595b6d['is']('element','listItem'))),_0x599289;}['_getSuggestionBlocks'](_0x574acf){const _0x498aff=this['editor']['plugins']['get']('LegacyListUtils');let _0x4fc968=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x574acf)['map'](_0x8c0f31=>{const _0x2df385=this['editor']['model']['createPositionAt'](_0x8c0f31,0x0);return[..._0x498aff['getSiblingNodes'](_0x2df385,'backward'),..._0x498aff['getSiblingNodes'](_0x2df385,'forward')];})['flat']();return _0x4fc968=[...new Set(_0x4fc968)],_0x4fc968;}['_getTranslationKeyForListStyle'](_0x280e72){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x280e72)||'default')['toUpperCase']()+'_LIST_'+_0x280e72['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x3557c2{['afterInit'](){const _0x33f51a=this['editor'];if(!_0x33f51a['plugins']['has']('MediaEmbedEditing'))return;const _0x533f67=_0x33f51a['plugins']['get']('TrackChangesEditing'),_0x2728ad=_0x33f51a['locale'];_0x533f67['enableCommand']('mediaEmbed'),_0x533f67['descriptionFactory']['registerElementLabel']('media',_0x587b60=>o(_0x2728ad,'ELEMENT_MEDIA',_0x587b60)),_0x33f51a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2e1c58,{writer:_0x37fe91,options:_0x3b5722})=>{if(_0x3b5722['showSuggestionHighlights'])return _0x37fe91['createEmptyElement']('div');},'converterPriority':'high'}),_0x33f51a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4a0659,_0x207a95,_0x1fe01d)=>{_0x1fe01d['options']['showSuggestionHighlights']&&_0x4a0659['stop']();},{'priority':'high'});}}class gt extends _0x3557c2{['afterInit'](){const _0x467c1b=this['editor'];_0x467c1b['plugins']['has']('MentionEditing')&&_0x467c1b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x3557c2{['afterInit'](){const _0x191c83=this['editor'],_0x2f1a3f=_0x191c83['plugins']['get']('TrackChangesEditing');_0x191c83['plugins']['has']('MultiLevelList')&&(_0x2f1a3f['enableDefaultAttributesIntegration']('multiLevelList'),_0x2f1a3f['registerBlockAttribute']('listMarkerStyle'),_0x2f1a3f['descriptionFactory']['registerDescriptionCallback'](_0x2bf4cc=>this['handleDescriptions'](_0x2bf4cc)));}['handleDescriptions'](_0x29de39){const _0xedab4e=this['editor']['locale'],{data:_0x26fda2}=_0x29de39,_0x4f79e4={'type':'format','content':''};if(_0x26fda2&&'listMarkerStyle'==_0x26fda2['key']){if(!_0x26fda2['oldValue'])return{'type':'format','content':o(_0xedab4e,'*Set\x20format:*\x20%0',o(_0xedab4e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x26fda2['newValue']+')'};if(!_0x26fda2['newValue']){let _0x2ce846=_0x29de39['head'];for(;_0x2ce846;){if(_0x2ce846['data']&&'listType'==_0x2ce846['data']['key']&&_0x2ce846['data']['newValue'])return _0x4f79e4;_0x2ce846=_0x2ce846['next'];}return{'type':'format','content':o(_0xedab4e,'*Remove\x20format:*\x20%0',o(_0xedab4e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x26fda2['oldValue']+')'};}}}}class mt extends _0x3557c2{['afterInit'](){const _0x3429e8=this['editor'];if(!_0x3429e8['plugins']['has']('PageBreakEditing'))return;_0x3429e8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x48e897=_0x3429e8['plugins']['get']('TrackChangesEditing'),_0x36bb32=_0x3429e8['locale'];_0x48e897['descriptionFactory']['registerElementLabel']('pageBreak',_0x5143ca=>o(_0x36bb32,'ELEMENT_PAGE_BREAK',_0x5143ca));}}class dt extends _0x3557c2{['afterInit'](){const _0x595bf2=this['editor'];if(!_0x595bf2['plugins']['has']('Paragraph'))return;const _0x5e7554=_0x595bf2['locale'],_0x5d1df7=_0x595bf2['plugins']['get']('TrackChangesEditing');_0x5d1df7['descriptionFactory']['registerElementLabel']('paragraph',_0x2be483=>o(_0x5e7554,'ELEMENT_PARAGRAPH',_0x2be483)),_0x5d1df7['enableDefaultAttributesIntegration']('paragraph'),_0x5d1df7['enableCommand']('insertParagraph'),_0x595bf2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x595bf2),{'priority':'highest'}),_0x595bf2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15d531,_0x5167a0,_0x29159d)=>{_0x29159d['options']['showSuggestionHighlights']&&nr(_0x595bf2,{'showActiveMarker':!0x1})(_0x15d531,_0x5167a0,_0x29159d);},{'priority':'highest'});const _0x249cc8=_0x5d1df7['descriptionFactory'];_0x249cc8['registerDescriptionCallback'](_0x53c57e=>{if('insertion'!==_0x53c57e['type'])return;const {start:_0x529070,end:_0x3e6e4a}=_0x53c57e['getFirstRange']();if(!_0x529070['isTouching'](_0x3e6e4a)||!_0x529070['nodeAfter'])return;const _0x2a8ade=_0x595bf2['model']['schema'],_0xd15ee1=_0x529070['nodeAfter'];return _0x2a8ade['isBlock'](_0xd15ee1)&&!_0x2a8ade['isLimit'](_0xd15ee1)&&_0x2a8ade['checkChild'](_0xd15ee1,'$text')?{'type':'insertion','content':o(_0x5e7554,'*Insert:*\x20%0',_0x249cc8['getItemLabel'](_0xd15ee1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2acb0b=this['editor'],_0x197b15=_0x2acb0b['locale'];_0x2acb0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cbc77=>{if('formatBlock'!=_0x1cbc77['type'])return;const {data:_0x316883}=_0x1cbc77;return _0x316883&&'paragraph'==_0x316883['commandName']?{'type':'format','content':o(_0x197b15,'*Change\x20to:*\x20%0',o(_0x197b15,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2a27a6,{showActiveMarker:_0x2a96ca=!0x0}={}){return(_0x28400d,_0xadbbe6,_0x535c92)=>{const _0x493b61=_0x2a27a6['plugins']['get']('TrackChangesEditing'),_0x3d8f89=_0xadbbe6['markerRange']['start'],_0x5275e8=_0xadbbe6['markerRange']['end'],_0xdd6c22=_0x2a27a6['model']['schema'];if(!_0x3d8f89['isTouching'](_0x5275e8)||!_0x3d8f89['nodeAfter'])return;const _0x103840=_0x3d8f89['nodeAfter'];if(_0xdd6c22['isBlock'](_0x103840)&&!_0xdd6c22['isLimit'](_0x103840)&&_0xdd6c22['checkChild'](_0x103840,'$text')){if(!_0x535c92['consumable']['consume'](_0xadbbe6['markerRange'],_0x28400d['name']))return;const _0x2c624b=_0x535c92['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x48052d=_0x535c92['mapper']['toViewPosition'](_0x5275e8);_0x2a96ca&&_0x493b61['activeMarkers']['includes'](_0xadbbe6['markerName'])&&_0x535c92['writer']['addClass']('ck-suggestion-marker--active',_0x2c624b),_0x535c92['writer']['insert'](_0x48052d,_0x2c624b),_0x535c92['mapper']['bindElementToMarker'](_0x2c624b,_0xadbbe6['markerName']);}};}class pt extends _0x3557c2{['afterInit'](){const _0x5b1d7a=this['editor'];if(!_0x5b1d7a['plugins']['has']('RemoveFormatEditing'))return;_0x5b1d7a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x469509=this['editor'];_0x469509['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51760a=>{if('formatBlock'!=_0x51760a['type']&&'formatInline'!=_0x51760a['type'])return;const {data:_0x5261d5}=_0x51760a;return _0x5261d5&&'removeFormat'==_0x5261d5['commandName']?{'type':'format','content':o(_0x469509['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x3557c2{['afterInit'](){const _0x5d7184=this['editor'];if(!_0x5d7184['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4b5f5b=_0x5d7184['plugins']['get']('TrackChangesEditing');_0x4b5f5b['enableCommand']('goToPreviousRestrictedEditingException'),_0x4b5f5b['enableCommand']('goToNextRestrictedEditingException');const _0x3f9059=_0x5d7184['plugins']['get']('RestrictedEditingModeEditing');_0x3f9059['enableCommand']('trackChanges'),_0x3f9059['enableCommand']('acceptSuggestion'),_0x3f9059['enableCommand']('discardSuggestion'),_0x3f9059['enableCommand']('acceptAllSuggestions'),_0x3f9059['enableCommand']('discardAllSuggestions'),_0x3f9059['enableCommand']('acceptSelectedSuggestions'),_0x3f9059['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x3557c2{static get['requires'](){return[_0x297856];}['init'](){const _0x35dfb6=this['editor'],_0x5f5fd9=_0x35dfb6['plugins']['get']('TrackChangesEditing');_0x5f5fd9['enableCommand']('shiftEnter'),_0x35dfb6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x35dfb6),{'priority':'high'}),_0x35dfb6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x35dfb6),{'priority':'high'}),_0x35dfb6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x150bdf,_0x1d9dee,_0x1027ac)=>{_0x1027ac['options']['showSuggestionHighlights']&&de(_0x35dfb6,{'showActiveMarker':!0x1})(_0x150bdf,_0x1d9dee,_0x1027ac);}),_0x5f5fd9['descriptionFactory']['registerElementLabel']('softBreak',_0x5abf53=>o(_0x35dfb6['locale'],'ELEMENT_LINE_BREAK',_0x5abf53));}}function de(_0x26873b,{showActiveMarker:_0x5d30fc=!0x0}={}){return(_0x400d89,_0x5a9147,_0x4da832)=>{const _0x10c856=_0x26873b['plugins']['get']('TrackChangesEditing');if(!_0x4da832['consumable']['test'](_0x5a9147['markerRange'],_0x400d89['name']))return;const _0x5b152f=_0x26873b['model'];for(const _0x1b97ac of _0x5a9147['markerRange']['getItems']()){if(!_0x1b97ac['is']('element','softBreak'))continue;const _0x2c941b='deletion'==_0x5a9147['markerName']['split'](':')[0x1]?'merge':'split',_0x5c4173=_0x4da832['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c941b}),_0x494f28=_0x4da832['mapper']['toViewPosition'](_0x5b152f['createPositionBefore'](_0x1b97ac));_0x5d30fc&&_0x10c856['activeMarkers']['includes'](_0x5a9147['markerName'])&&_0x4da832['writer']['addClass']('ck-suggestion-marker--active',_0x5c4173),_0x4da832['writer']['insert'](_0x494f28,_0x5c4173),_0x4da832['mapper']['bindElementToMarker'](_0x5c4173,_0x5a9147['markerName']);}};}class wt extends _0x3557c2{['afterInit'](){const _0x4f0b98=this['editor'],_0x473769=_0x4f0b98['model'],_0x42a59f=_0x4f0b98['locale'];if(!_0x4f0b98['plugins']['has']('StandardEditingModeEditing'))return;const _0x43facc=_0x4f0b98['plugins']['get']('TrackChangesEditing'),_0x1ac3cb='restrictedEditingException',_0x322aea=_0x4f0b98['commands']['get'](_0x1ac3cb);_0x43facc['enableCommand'](_0x1ac3cb,(_0x3b5651,_0x23849b={})=>{const _0x5654d4=_0x473769['document']['selection'];if(_0x5654d4['isCollapsed'])return void _0x3b5651(_0x23849b);const _0x46321e=void 0x0!==_0x23849b['forceValue']?_0x23849b['forceValue']:!_0x322aea['value'];_0x473769['change'](()=>{const _0x4512d3=Array['from'](_0x5654d4['getRanges']());for(const _0x415035 of _0x4512d3){const _0x3b8fac=_0x46321e?[_0x415035]:io(_0x1ac3cb,_0x415035,_0x473769);for(const _0x4b6121 of _0x3b8fac)_0x43facc['markInlineFormat'](_0x4b6121,{'commandName':_0x1ac3cb,'commandParams':[{'forceValue':_0x46321e}]});}});}),_0x43facc['descriptionFactory']['registerDescriptionCallback'](_0x3a3f32=>{if('formatBlock'!=_0x3a3f32['type']&&'formatInline'!=_0x3a3f32['type'])return;const {data:_0x58f76e}=_0x3a3f32;return _0x58f76e&&_0x58f76e['commandName']==_0x1ac3cb?_0x58f76e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42a59f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x42a59f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x3557c2{['afterInit'](){const _0x2656e2=this['editor'];if(!_0x2656e2['plugins']['has']('Style')||!_0x2656e2['plugins']['has']('DataSchema'))return;const _0x4274d1=_0x2656e2['plugins']['get']('TrackChangesEditing'),_0x18f6d6=_0x2656e2['locale'],_0x4af8f4=_0x2656e2['config']['get']('style')||{},_0x28d497=_0x2656e2['plugins']['get']('GeneralHtmlSupport'),_0x1fcfac=_0x2656e2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2656e2['plugins']['get']('DataSchema'),_0x4af8f4['definitions']);_0x4274d1['enableDefaultAttributesIntegration']('style');const _0x169005=new Set();for(const _0x2a83a5 of _0x1fcfac['block']){const _0x523cf0=_0x28d497['getGhsAttributeNameForElement'](_0x2a83a5['element']);_0x169005['add'](_0x523cf0);}const _0x11ae07=new Set();for(const _0x35e75a of _0x1fcfac['inline']){const _0x263bc8=_0x28d497['getGhsAttributeNameForElement'](_0x35e75a['element']);_0x11ae07['add'](_0x263bc8);for(const _0x29ece7 of _0x35e75a['ghsAttributes'])_0x11ae07['add'](_0x29ece7);}for(const _0x198a05 of _0x169005)_0x4274d1['registerBlockAttribute'](_0x198a05),_0x4274d1['descriptionFactory']['registerAttributeLabel'](_0x198a05,o(_0x18f6d6,'FORMAT_STYLE'));for(const _0x18584c of _0x11ae07)_0x4274d1['registerInlineAttribute'](_0x18584c),_0x4274d1['descriptionFactory']['registerAttributeLabel'](_0x18584c,o(_0x18f6d6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6adc2a=this['editor'],_0x39d20d=_0x6adc2a['locale'];_0x6adc2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x327765=>{if('formatBlock'!=_0x327765['type']&&'formatInline'!=_0x327765['type'])return;const {data:_0x2de25d}=_0x327765;return _0x2de25d&&'style'===_0x2de25d['commandName']?_0x2de25d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39d20d,'*Set\x20format:*\x20%0',_0x2de25d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x39d20d,'*Remove\x20format:*\x20%0',_0x2de25d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x3557c2{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1a3006){super(_0x1a3006),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x358c7c=this['editor'],_0xfd7314=_0x358c7c['model']['document']['selection'];if(!_0x358c7c['plugins']['has']('TableEditing'))return;const _0x5535df=_0x358c7c['locale'],_0x514e04=_0x358c7c['plugins']['get']('TrackChangesEditing'),_0x1d6578=_0x358c7c['plugins']['get']('TableUtils');_0x514e04['descriptionFactory']['registerElementLabel']('table',_0x557175=>o(_0x5535df,'ELEMENT_TABLE',_0x557175)),this['_setupColumnsRowsFixing'](),_0x514e04['enableCommand']('insertTable'),_0x514e04['enableCommand']('selectTableRow'),_0x514e04['enableCommand']('selectTableColumn');for(const _0x8ea0e6 of['insertTableRowAbove','insertTableRowBelow']){const _0x404002=_0x358c7c['commands']['get'](_0x8ea0e6);_0x514e04['enableCommand'](_0x8ea0e6,_0x41870e=>{_0x358c7c['model']['change'](_0x5b3868=>{_0x41870e();const _0x31575e='above'===_0x404002['order'],_0x2feddb=_0x1d6578['getSelectionAffectedTableCells'](_0xfd7314),_0xa308d0=_0x1d6578['getRowIndexes'](_0x2feddb),_0x5690bc=_0x31575e?_0xa308d0['first']-0x1:_0xa308d0['last']+0x1,_0x4a1c0b=_0x2feddb[0x0]['findAncestor']('table'),_0x12aa0c=_0x1d6578['createTableWalker'](_0x4a1c0b,{'startRow':_0x5690bc,'endRow':_0x5690bc}),_0x35441e=Array['from'](_0x12aa0c)['map'](_0x51bc5f=>_0x5b3868['createRangeOn'](_0x51bc5f['cell']));_0x514e04['markMultiRangeInsertion'](_0x35441e,'tableRow');});});}for(const _0xfdb31c of['insertTableColumnLeft','insertTableColumnRight']){const _0x2012d0=_0x358c7c['commands']['get'](_0xfdb31c);_0x514e04['enableCommand'](_0xfdb31c,_0x847f8a=>{_0x358c7c['model']['change'](_0x2fc28a=>{_0x847f8a();const _0x55b560='left'===_0x2012d0['order'],_0x4d5248=_0x1d6578['getSelectionAffectedTableCells'](_0xfd7314),_0x445e92=_0x1d6578['getColumnIndexes'](_0x4d5248),_0x494240=_0x55b560?_0x445e92['first']-0x1:_0x445e92['last']+0x1,_0x54f5fc=_0x4d5248[0x0]['findAncestor']('table'),_0x32e916=_0x1d6578['createTableWalker'](_0x54f5fc,{'startRow':0x0,'column':_0x494240,'includeAllSlots':!0x1}),_0x355831=Array['from'](_0x32e916)['map'](_0x198d55=>_0x2fc28a['createRangeOn'](_0x198d55['cell']));_0x514e04['markMultiRangeInsertion'](_0x355831,'tableColumn');});});}for(const _0x23698d of['removeTableRow','removeTableColumn']){const _0x5b254f=_0x23698d['substr'](0xb),_0x4a8350=_0x5b254f['toLowerCase'](),_0x317bce=_0x4a8350['substr'](0x0,0x3)+'span',_0x544004='table'+_0x5b254f,_0x3762a0='min'+_0x5b254f,_0x4b06e1='max'+_0x5b254f;_0x514e04['enableCommand'](_0x23698d,()=>{_0x358c7c['model']['change'](_0x3481d1=>{const _0x2ebada=_0x1d6578['getSelectionAffectedTableCells'](_0xfd7314),_0x3f8d74=_0x2ebada[0x0]['findAncestor']('table');let _0x2fec4a;if('removeTableRow'==_0x23698d){const _0x22f1b1=_0x1d6578['getRowIndexes'](_0x2ebada);_0x2fec4a={'startRow':_0x22f1b1['first'],'endRow':_0x22f1b1['last'],'includeAllSlots':!0x0};}else{const _0x3997c1=_0x1d6578['getColumnIndexes'](_0x2ebada);_0x2fec4a={'startColumn':_0x3997c1['first'],'endColumn':_0x3997c1['last'],'includeAllSlots':!0x0};}const _0x48e996=_0x1d6578['createTableWalker'](_0x3f8d74,_0x2fec4a),_0x17ebfe=Array['from'](_0x48e996)['map'](({cell:_0x16d10f})=>_0x16d10f),_0x2c1666=Ee(_0x17ebfe['filter'](_0x4ce0bc=>_0x4ce0bc['hasAttribute'](_0x317bce))),_0x31f5b1=Ee(_0x17ebfe['filter'](_0x5d567d=>!_0x5d567d['hasAttribute'](_0x317bce)))['map'](_0x43c540=>_0x3481d1['createRangeOn'](_0x43c540)),_0x550b46=_0x514e04['markMultiRangeDeletion'](_0x31f5b1,_0x544004);if(_0x550b46&&('tableRow'==_0x550b46['subType']||'tableColumn'==_0x550b46['subType'])){const _0x1a4443=this['_getSuggestionCoords'](_0x550b46);for(const _0x5c3f9a of _0x2c1666){const _0x97ba25=_0x3481d1['createRangeOn'](_0x5c3f9a),_0x48adf3=_0x1d6578['getCellLocation'](_0x5c3f9a),_0x2406d3=_0x5c3f9a['getAttribute'](_0x317bce)-0x1,_0x4715ca=_0x1a4443[_0x3762a0],_0x11eac6=_0x1a4443[_0x4b06e1];_0x4715ca<=_0x48adf3[_0x4a8350]&&_0x48adf3[_0x4a8350]+_0x2406d3<=_0x11eac6&&_0x550b46['addRange'](_0x97ba25);}}});});}function _0x2368b4(_0x19e05e){const _0x55f6a7=Array['from'](_0xfd7314['getRanges']())['map'](_0x21e012=>_0xbaab6f['fromRange'](_0x21e012));_0x358c7c['model']['change'](_0x147b49=>{const _0x2be099=_0x147b49['batch'];_0x19e05e=_0x19e05e['filter'](_0x498530=>'$graveyard'!=_0x498530['root']['rootName']),_0x147b49['setSelection'](_0x19e05e),_0x358c7c['commands']['get']('removeTableRow')['refresh'](),_0x358c7c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x358c7c['model']['enqueueChange'](()=>{_0x358c7c['model']['enqueueChange'](_0x2be099,_0x1eb9ef=>{const _0x4abdc3=_0x55f6a7['filter'](_0x507c6a=>'$graveyard'!=_0x507c6a['root']['rootName']);_0x4abdc3['length']>0x0&&_0x1eb9ef['setSelection'](_0x4abdc3);for(const _0x38d5c0 of _0x55f6a7)_0x38d5c0['detach']();});});});}function _0x12f08e(_0x3b1470){_0x358c7c['model']['change'](_0x27cdeb=>{const _0x35907a=Array['from'](_0xfd7314['getRanges']())['map'](_0x285151=>_0xbaab6f['fromRange'](_0x285151)),_0x3d587e=[];for(const _0x17967f of _0x3b1470)for(const _0x2670d9 of _0x17967f['getItems']({'shallow':!0x0}))_0x3d587e['push'](_0x2670d9);for(const _0x5b86c2 of _0x3d587e)'$graveyard'!=_0x5b86c2['root']['rootName']&&(_0x27cdeb['setSelection'](_0x27cdeb['createPositionAt'](_0x5b86c2,0x0)),_0x358c7c['commands']['get']('removeTableColumn')['refresh'](),_0x358c7c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x108732=_0x35907a['filter'](_0x1c0c1a=>'$graveyard'!=_0x1c0c1a['root']['rootName']);_0x108732['length']>0x0&&_0x27cdeb['setSelection'](_0x108732);for(const _0x571d37 of _0x35907a)_0x571d37['detach']();});}function _0x2af7a4(_0x5478cb,_0x470fc1){return _0x470fc1['every'](_0x1d0b3c=>_0x5478cb['some'](_0x50308a=>_0x50308a['end']['isEqual'](_0x1d0b3c['start'])||_0x1d0b3c['end']['isEqual'](_0x50308a['start'])));}function _0x3154b2(_0xcadfa9,_0x4ff746){return!_0xcadfa9['some'](_0x2ba33d=>_0x4ff746['some'](_0x155e31=>_0x2ba33d['isIntersecting'](_0x155e31)))&&_0xcadfa9['some'](_0x4d6a3f=>_0x4ff746['some'](_0x5f1882=>_0x4d6a3f['end']['isTouching'](_0x5f1882['start'])));}_0x358c7c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x180abf,_0x1f3c54,_0x18abb0)=>{if(!_0x18abb0['options']['showSuggestionHighlights'])return;const _0x237cbb=_0x1f3c54['item'];if(!_0x237cbb)return;const _0xfa5151=_0x18abb0['mapper']['toViewElement'](_0x237cbb);function _0x3e5e91(_0x1e0c34){return Array['isArray'](_0x1e0c34)?_0x1e0c34:[_0x1e0c34];}_0xfa5151&&'tableCell'===_0x237cbb['name']&&_0x5a9acb(_0xfa5151,_0x18abb0['writer'],(_0x71bca1,_0xec7312,_0x55b02e)=>_0x55b02e['addClass'](_0x3e5e91(_0xec7312['classes']),_0x71bca1),(_0x2e1781,_0x33d26e,_0x5de2f4)=>_0x5de2f4['removeClass'](_0x3e5e91(_0x33d26e['classes']),_0x2e1781));},{'priority':'highest'}),_0x514e04['descriptionFactory']['registerDescriptionCallback'](_0x46bec9=>{if('insertion'!=_0x46bec9['type']&&'deletion'!=_0x46bec9['type'])return;const _0xd63d08=_0x46bec9['getContainedElement']();if(null!=_0xd63d08&&_0xd63d08['is']('element','table')){if('insertion'==_0x46bec9['type']){const _0x5c5f2f=_0x46bec9['getItems']()['filter'](_0xa495e3=>_0xa495e3['is']('$textProxy'))['map'](_0x1f23b2=>_0x1f23b2['data']);if(_0x5c5f2f['length'])return{'type':'insertion','content':o(_0x5535df,'*Insert:*\x20%0',o(_0x5535df,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5c5f2f['join']('\x20')+'\x22'))};}if('deletion'==_0x46bec9['type']){const _0x14ec7f=_0x46bec9['getItems']()['filter'](_0x5547c0=>_0x5547c0['is']('$textProxy'))['map'](_0x3f7fa9=>_0x3f7fa9['data']);if(_0x14ec7f['length'])return{'type':'deletion','content':o(_0x5535df,'*Remove:*\x20%0',o(_0x5535df,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x14ec7f['join']('\x20')+'\x22'))};}}}),_0x514e04['descriptionFactory']['registerDescriptionCallback'](_0x47d799=>{if('tableRow'==_0x47d799['subType']){const _0x5b29d5=_0x47d799['getItems']()['filter'](_0x77b3e4=>_0x77b3e4['is']('$textProxy'))['map'](_0x4ab6d6=>_0x4ab6d6['data']),_0x188960=this['_getSuggestionCoords'](_0x47d799),_0x2ddb48=_0x188960['maxRow']-_0x188960['minRow']+0x1;if('insertion'==_0x47d799['type'])return _0x5b29d5['length']?{'type':'insertion','content':o(_0x5535df,'*Insert:*\x20%0',o(_0x5535df,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ddb48,'\x22'+_0x5b29d5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5535df,'*Insert:*\x20%0',o(_0x5535df,'ELEMENT_TABLE_ROW',_0x2ddb48))};if('deletion'==_0x47d799['type'])return _0x5b29d5['length']?{'type':'deletion','content':o(_0x5535df,'*Remove:*\x20%0',o(_0x5535df,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ddb48,'\x22'+_0x5b29d5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5535df,'*Remove:*\x20%0',o(_0x5535df,'ELEMENT_TABLE_ROW',_0x2ddb48))};}if('tableColumn'==_0x47d799['subType']){const _0x15fe0e=_0x47d799['getItems']()['filter'](_0x38cc4c=>_0x38cc4c['is']('$textProxy'))['map'](_0x4f4bfb=>_0x4f4bfb['data']),_0x4c05b6=this['_getSuggestionCoords'](_0x47d799),_0x109dc5=_0x4c05b6['maxColumn']-_0x4c05b6['minColumn']+0x1;if('insertion'==_0x47d799['type'])return _0x15fe0e['length']?{'type':'insertion','content':o(_0x5535df,'*Insert:*\x20%0',o(_0x5535df,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x109dc5,'\x22'+_0x15fe0e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5535df,'*Insert:*\x20%0',o(_0x5535df,'ELEMENT_TABLE_COLUMN',_0x109dc5))};if('deletion'==_0x47d799['type'])return _0x15fe0e['length']?{'type':'deletion','content':o(_0x5535df,'*Remove:*\x20%0',o(_0x5535df,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x109dc5,'\x22'+_0x15fe0e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5535df,'*Remove:*\x20%0',o(_0x5535df,'ELEMENT_TABLE_COLUMN',_0x109dc5))};}}),_0x514e04['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2368b4),_0x514e04['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2368b4),_0x514e04['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x12f08e),_0x514e04['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x12f08e),_0x514e04['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2af7a4),_0x514e04['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2af7a4),_0x514e04['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3154b2),_0x514e04['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3154b2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x356699=this['editor'],_0x2ca087=_0x356699['model']['document']['selection'];return(_0x4a43c2,_0x31e1df)=>{_0x356699['model']['change'](_0x414e56=>{const {commandName:_0x493179,commandParams:_0x120ee9}=_0x31e1df;let _0x5e68ad=_0x4a43c2[0x0]['end']['nodeBefore'];_0x120ee9&&_0x120ee9[0x0]&&!0x1===_0x120ee9[0x0]['forceValue']&&(_0x5e68ad=_0x4a43c2[0x0]['start']['nodeAfter']);const _0x389d0d=_0x414e56['createRangeIn'](_0x5e68ad);if('$graveyard'==_0x389d0d['root']['rootName'])return;const _0x1c1cc9=Array['from'](_0x2ca087['getRanges']())['map'](_0x46d320=>_0xbaab6f['fromRange'](_0x46d320));_0x414e56['setSelection'](_0x389d0d),_0x356699['commands']['get'](_0x493179)['refresh'](),_0x120ee9['push']({'forceDefaultExecution':!0x0}),_0x356699['execute'](_0x493179,..._0x120ee9);const _0x4b4179=_0x1c1cc9['filter'](_0x4ab218=>'$graveyard'!=_0x4ab218['root']['rootName']);_0x4b4179['length']>0x0&&_0x414e56['setSelection'](_0x4b4179);for(const _0x554d36 of _0x1c1cc9)_0x554d36['detach']();});};}['_getCoordsForCells'](_0x4834e3){const _0x19aca7=this['editor']['plugins']['get']('TableUtils');let _0x529782=Number['MAX_SAFE_INTEGER'],_0x36fe52=Number['MIN_SAFE_INTEGER'],_0x22afb1=Number['MAX_SAFE_INTEGER'],_0x350c99=Number['MIN_SAFE_INTEGER'];for(const _0x576fc5 of _0x4834e3){if('$graveyard'==_0x576fc5['root']['rootName'])continue;const {row:_0x3b0dcf,column:_0x1303fe}=_0x19aca7['getCellLocation'](_0x576fc5),_0x4bacc6=_0x576fc5['hasAttribute']('rowspan')?_0x576fc5['getAttribute']('rowspan')-0x1:0x0,_0x70722f=_0x576fc5['hasAttribute']('colspan')?_0x576fc5['getAttribute']('colspan')-0x1:0x0;_0x529782=_0x3b0dcf<_0x529782?_0x3b0dcf:_0x529782,_0x36fe52=_0x3b0dcf+_0x4bacc6>_0x36fe52?_0x3b0dcf+_0x4bacc6:_0x36fe52,_0x22afb1=_0x1303fe<_0x22afb1?_0x1303fe:_0x22afb1,_0x350c99=_0x1303fe+_0x70722f>_0x350c99?_0x1303fe+_0x70722f:_0x350c99;}return{'minRow':_0x529782,'maxRow':_0x36fe52,'minColumn':_0x22afb1,'maxColumn':_0x350c99};}['_setupColumnsRowsFixing'](){const _0x3d5949=this['editor'],_0x376af1=_0x3d5949['plugins']['get']('TrackChangesEditing'),_0x106b7e=_0x3d5949['plugins']['get']('TableUtils');_0x3d5949['model']['document']['on']('change:data',()=>{const _0x59e357=Array['from'](_0x3d5949['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ba281,data:_0x2af958}of _0x59e357){const {group:_0xa5c7ef,id:_0x3e2670,subType:_0x365956}=_0x376af1['_splitMarkerName'](_0x5ba281);if('suggestion'!=_0xa5c7ef)continue;if(null!=_0x2af958['oldRange'])continue;const _0x79d20=_0x376af1['getSuggestion'](_0x3e2670);this['_tablePostFixingSubtypes']['includes'](_0x365956)&&this['_tableSuggestions']['add'](_0x79d20);}},{'priority':'low'});const _0x372e7d=(_0x177b0a,_0x56ef12)=>{let _0x3f23b9=!0x1;const _0x4a8e74=_0x56ef12['createRangeOn'](_0x177b0a),_0x331a46=_0x177b0a['findAncestor']('table'),_0x600841=_0x106b7e['getCellLocation'](_0x177b0a);for(const _0x1aab64 of this['_tableSuggestions']){const _0x461cf6=_0x1aab64['subType'],_0x196bb8=_0x461cf6['startsWith']('tablePaste'),_0x548071=_0x461cf6['substr'](_0x196bb8?0xa:0x5),_0x1c9acd=_0x548071['toLowerCase'](),_0x5bf00a=_0x1c9acd['substr'](0x0,0x3)+'span',_0x2e0701='min'+_0x548071,_0x444d97='max'+_0x548071;if(!_0x1aab64['isInContent'])continue;if(_0x331a46!=_0x1aab64['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1aab64['isIntersectingWithRange'](_0x4a8e74))continue;const _0x331f57=_0x177b0a['hasAttribute'](_0x5bf00a)?_0x177b0a['getAttribute'](_0x5bf00a)-0x1:0x0,_0x2f168a=this['_getSuggestionCoords'](_0x1aab64),_0x4cafa2=_0x2f168a[_0x2e0701],_0x1fc994=_0x2f168a[_0x444d97];_0x4cafa2<=_0x600841[_0x1c9acd]&&_0x600841[_0x1c9acd]+_0x331f57<=_0x1fc994&&(_0x1aab64['addRange'](_0x4a8e74),_0x3f23b9=!0x0);}return _0x3f23b9;};_0x3d5949['model']['document']['registerPostFixer'](_0x44d816=>{let _0x106780=!0x1;for(const _0x23a7a1 of _0x3d5949['model']['document']['differ']['getChanges']())if('insert'==_0x23a7a1['type']){if('tableRow'==_0x23a7a1['name']){for(const _0x2aad5b of _0x23a7a1['position']['nodeAfter']['getChildren']())_0x106780=_0x106780||_0x372e7d(_0x2aad5b,_0x44d816);}else'tableCell'==_0x23a7a1['name']&&(_0x106780=_0x106780||_0x372e7d(_0x23a7a1['position']['nodeAfter'],_0x44d816));}return _0x106780;});}['_getSuggestionCoords'](_0x55e671){return this['_getCoordsForCells'](_0x55e671['getRanges']()['map'](_0x2d5f1a=>_0x2d5f1a['start']['nodeAfter']));}}function Ee(_0x3851ab){return Array['from'](new Set(_0x3851ab)['values']());}class St extends _0x3557c2{static get['requires'](){return[jt];}['afterInit'](){const _0x2088f5=this['editor'],_0x31905d=_0x2088f5['model']['document']['selection'],_0x655d4e=_0x2088f5['locale'];if(!_0x2088f5['plugins']['has']('TableEditing'))return;const _0xa76d14=_0x2088f5['plugins']['get']('TrackChangesEditing'),_0x1c0a99=_0x2088f5['plugins']['get']('TableUtils'),_0x4272cb=_0x2088f5['plugins']['get'](jt);_0x4272cb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xa76d14['enableCommand']('mergeTableCells',()=>{const _0x365015=_0x1c0a99['getSelectionAffectedTableCells'](_0x2088f5['model']['document']['selection']);_0x2088f5['model']['change'](()=>{_0xa76d14['markMultiRangeBlockFormat'](_0x365015,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2088f5['commands']['get']('mergeTableCells')['on']('execute',(_0x338858,_0x141894)=>{_0x2088f5['commands']['get']('trackChanges')['value']&&(_0x141894['length']>0x0&&_0x141894[_0x141894['length']-0x1]&&_0x141894[_0x141894['length']-0x1]['forceDefaultExecution']||_0xa76d14['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x338858['stop']());},{'priority':'highest'});for(const _0x450828 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1dbcef=_0x2088f5['commands']['get'](_0x450828);_0xa76d14['enableCommand'](_0x450828,()=>{const _0x59215a=_0x2088f5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x319cb0=>_0x319cb0['is']('element','tableCell')),_0x4822b7=_0x1dbcef['value'];_0x2088f5['model']['change'](()=>{_0xa76d14['markMultiRangeBlockFormat']([_0x59215a,_0x4822b7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xcbaa7e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x553b48=_0x2088f5['commands']['get'](_0xcbaa7e);_0xa76d14['enableCommand'](_0xcbaa7e,()=>{const _0x3d40c3=_0x1c0a99['getSelectionAffectedTableCells'](_0x2088f5['model']['document']['selection'])[0x0],_0x78d6df=_0x3d40c3['findAncestor']('table'),{column:_0x23a08e,row:_0x41daa9}=_0x1c0a99['getCellLocation'](_0x3d40c3);let _0x3c782b=[];if('horizontally'==_0x553b48['direction']){const _0x47846e=_0x1c0a99['createTableWalker'](_0x78d6df,{'startRow':_0x41daa9,'endRow':_0x41daa9,'includeAllSlots':!0x0});_0x3c782b=Array['from'](_0x47846e)['map'](_0x5d7545=>_0x5d7545['cell']);}else{const _0xbf17cf=_0x1c0a99['createTableWalker'](_0x78d6df,{'column':_0x23a08e,'includeAllSlots':!0x0});_0x3c782b=Array['from'](_0xbf17cf)['map'](_0x384781=>_0x384781['cell']);}_0x2088f5['model']['change'](_0x2235bb=>{_0xa76d14['markBlockFormat'](_0x2235bb['createRangeOn'](_0x3d40c3),{'commandName':_0xcbaa7e,'commandParams':[]},_0x3c782b,_0xcbaa7e);});});}_0xa76d14['descriptionFactory']['registerDescriptionCallback'](_0x44f954=>{if('formatBlock'!=_0x44f954['type']&&'formatInline'!=_0x44f954['type'])return;const {data:_0x504e99}=_0x44f954;return _0x504e99&&'mergeTableCells'==_0x504e99['commandName']?{'type':'format','content':o(_0x655d4e,'*Merge\x20cells*')}:void 0x0;}),_0xa76d14['descriptionFactory']['registerDescriptionCallback'](_0x1cd91f=>{if('formatBlock'!=_0x1cd91f['type']&&'formatInline'!=_0x1cd91f['type'])return;const {data:_0x464e54}=_0x1cd91f;return _0x464e54?'splitTableCellVertically'==_0x464e54['commandName']?{'type':'format','content':o(_0x655d4e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x464e54['commandName']?{'type':'format','content':o(_0x655d4e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1d3724=_0x4272cb['_acceptFormatSuggestionCallbackFactory']();for(const _0x47417b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xa76d14['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47417b,'accept',_0x1d3724);for(const _0x280274 of['splitTableCellVertically','splitTableCellHorizontally'])_0xa76d14['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x280274,'accept',_0x1d3724);_0xa76d14['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x42bdac=>{_0x2088f5['model']['change'](_0x56eddb=>{const _0x1f6b51=Array['from'](_0x31905d['getRanges']())['map'](_0xbad13c=>_0xbaab6f['fromRange'](_0xbad13c));_0x56eddb['setSelection'](_0x42bdac),_0x2088f5['commands']['get']('mergeTableCells')['refresh'](),_0x2088f5['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x42e2fc=_0x1f6b51['filter'](_0x465bba=>'$graveyard'!=_0x465bba['root']['rootName']);_0x42e2fc['length']>0x0&&_0x56eddb['setSelection'](_0x42e2fc);for(const _0x21ee94 of _0x1f6b51)_0x21ee94['detach']();});});for(const _0xc878ec of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5ae016=_0x2088f5['commands']['get'](_0xc878ec);_0x5ae016['on']('set:isEnabled',(_0x5103dc,_0x18d238,_0x1d0a3f)=>{if(_0x1d0a3f){const _0xb0daa1=_0x2088f5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2162de=>_0x2162de['is']('element','tableCell'));this['_areMergableCells'](_0x5ae016['value'],_0xb0daa1)||(_0x5103dc['return']=!0x1,_0x5103dc['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4f260f=this['editor']['commands']['get']('mergeTableCells'),_0x3d412d=this['editor']['plugins']['get']('TableUtils');if(!_0x4f260f['isEnabled'])return!0x1;const _0x297cc4=_0x3d412d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x508fc8 of _0x297cc4)for(const _0x4435e6 of _0x297cc4)if(_0x508fc8!=_0x4435e6&&!this['_areMergableCells'](_0x508fc8,_0x4435e6))return!0x1;return!0x0;}['_areMergableCells'](_0x5d45c4,_0x5f1d8c){const _0x362366=this['editor']['plugins']['get']('TrackChangesEditing'),_0x219998=this['editor']['model']['createRangeOn'](_0x5d45c4),_0x5539fd=this['editor']['model']['createRangeOn'](_0x5f1d8c),_0x21a29c=new Set(),_0x50fe33=new Set();for(const _0x41cd30 of _0x362366['getSuggestions']())if(('insertion'==_0x41cd30['type']||'deletion'==_0x41cd30['type']||'mergeTableCells'==_0x41cd30['subType'])&&_0x41cd30['isInContent']){for(const _0x336a5a of _0x41cd30['getRanges']())_0x336a5a['containsRange'](_0x219998,!0x0)&&_0x21a29c['add'](_0x41cd30['type']+':'+_0x41cd30['author']['id']),_0x336a5a['containsRange'](_0x5539fd,!0x0)&&_0x50fe33['add'](_0x41cd30['type']+':'+_0x41cd30['author']['id']);}if(_0x21a29c['size']!=_0x50fe33['size'])return!0x1;for(const _0x48e459 of _0x21a29c)if(!_0x50fe33['has'](_0x48e459))return!0x1;return!0x0;}}class At extends _0x3557c2{static get['requires'](){return[jt];}['afterInit'](){const _0x126310=this['editor'];if(!_0x126310['plugins']['has']('TableEditing'))return;const _0x22d828=_0x126310['locale'],_0x4e73e4=_0x126310['plugins']['get']('TrackChangesEditing');_0x4e73e4['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4e73e4['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4e73e4['registerBlockAttribute']('headingRows'),_0x4e73e4['registerBlockAttribute']('headingColumns'),_0x4e73e4['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x22d828,'FORMAT_HEADER_ROW')),_0x4e73e4['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x22d828,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2e7a3f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e4a4b=this['editor']['plugins']['get']('TableUtils'),_0x548816=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x37c752({showActiveMarker:_0x35f20d=!0x0,setDataAttribute:_0x35e80b=!0x0}={}){return(_0x5e583e,_0x1abce0,_0x57cafd)=>{const {type:_0x5b97e4,id:_0x15a215}=_0x2e7a3f['_splitMarkerName'](_0x1abce0['markerName']),_0x2cf13b=_0x2e7a3f['getSuggestion'](_0x15a215),_0x48af7a=_0x2cf13b['data'];if('formatBlock'!=_0x2cf13b['type']||!_0x48af7a||'setTableColumnHeader'!=_0x48af7a['commandName'])return;if(_0x1abce0['item'])return void _0x5e583e['stop']();if(!_0x57cafd['consumable']['consume'](_0x1abce0['markerRange'],_0x5e583e['name']))return;const _0x244313=_0x1abce0['markerRange']['start']['nodeAfter'],_0x4961da=_0x1abce0['markerRange']['end']['nodeBefore'],_0x471555=_0x244313['parent']['parent'],{column:_0x364631}=_0x1e4a4b['getCellLocation'](_0x244313),{column:_0x1c0555}=_0x1e4a4b['getCellLocation'](_0x4961da);for(let _0x4d269f=_0x364631;_0x4d269f<=_0x1c0555;_0x4d269f++){const _0x180655=_0x1e4a4b['createTableWalker'](_0x471555,{'column':_0x4d269f,'includeAllSlots':!0x1});for(const _0x4de3d2 of _0x180655){const _0x35f472=_0x4de3d2['cell'],_0x4cba37=_0x57cafd['mapper']['toViewElement'](_0x35f472);_0x57cafd['writer']['addClass']('ck-suggestion-marker-'+_0x5b97e4,_0x4cba37),_0x35e80b&&_0x57cafd['writer']['setAttribute']('data-suggestion',_0x15a215,_0x4cba37),_0x57cafd['mapper']['bindElementToMarker'](_0x4cba37,_0x1abce0['markerName']),_0x35f20d&&(_0x2e7a3f['activeMarkers']['includes'](_0x1abce0['markerName'])?_0x57cafd['writer']['addClass']('ck-suggestion-marker--active',_0x4cba37):_0x57cafd['writer']['removeClass']('ck-suggestion-marker--active',_0x4cba37));}}};}_0x2e7a3f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x548816),_0x2e7a3f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x548816),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x37c752(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x51bc13,_0x3582ca,_0x4ba97b)=>{_0x4ba97b['options']['showSuggestionHighlights']&&_0x37c752({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x51bc13,_0x3582ca,_0x4ba97b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x38868d,_0x3fc27b,_0x1c0c73)=>{const {type:_0x30e358,id:_0x5260db}=_0x2e7a3f['_splitMarkerName'](_0x3fc27b['markerName']),_0x345746=_0x2e7a3f['getSuggestion'](_0x5260db),_0x1d8b07=_0x345746['data'];if('formatBlock'!=_0x345746['type']||!_0x1d8b07||'setTableColumnHeader'!=_0x1d8b07['commandName'])return;const _0x3c59f9=_0x1c0c73['mapper']['markerNameToElements'](_0x3fc27b['markerName']);if(_0x3c59f9){for(const _0x47848f of _0x3c59f9)_0x1c0c73['writer']['removeClass']('ck-suggestion-marker-'+_0x30e358,_0x47848f),_0x1c0c73['writer']['removeClass']('ck-suggestion-marker--active',_0x47848f),_0x1c0c73['writer']['removeAttribute']('data-suggestion',_0x47848f),_0x1c0c73['mapper']['unbindElementFromMarkerName'](_0x47848f,_0x3fc27b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x141915=this['editor'],_0x267735=_0x141915['locale'];function _0x27fc1a(_0x4a4c66){return{'type':'format','content':o(_0x267735,'*Format:*\x20%0',_0x4a4c66)};}_0x141915['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34c7da=>{if('formatBlock'!=_0x34c7da['type'])return;const {data:_0x40bbc8}=_0x34c7da;if(_0x40bbc8){if('setTableRowHeader'==_0x40bbc8['commandName']){const _0x3bff66=_0x40bbc8['commandParams'][0x0]['forceValue'];return _0x27fc1a(o(_0x267735,_0x3bff66?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x40bbc8['commandName']){const _0x3580e4=_0x40bbc8['commandParams'][0x0]['forceValue'];return _0x27fc1a(o(_0x267735,_0x3580e4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x1b8762=>[_0x1b8762,null]));class It extends _0x3557c2{static get['requires'](){return[jt];}['afterInit'](){const _0x37e172=this['editor'];if(!_0x37e172['plugins']['has']('TableClipboard'))return;const _0x529a82=_0x37e172['plugins']['get']('TrackChangesEditing'),_0x10304a=_0x37e172['plugins']['get']('TableUtils'),_0x27472c=_0x37e172['plugins']['get'](jt),_0xf725e3=_0x37e172['plugins']['get']('TableClipboard');_0x27472c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x37e172['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x37e172['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xc0e049=null;_0x37e172['model']['on']('insertContent',(_0x47b843,_0x4c46a7)=>{const [_0x31803a,_0x27065d]=_0x4c46a7,_0xeabbe8=_0x4c46a7[_0x4c46a7['length']-0x1];_0xeabbe8&&_0xeabbe8['forceDefaultExecution']||_0x529a82['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x14de40,_0x32f30a,_0x4b3a6e,_0x5b46d4,_0x51847c){if(_0x32f30a&&!_0x32f30a['is']('documentSelection'))return!0x1;const _0x29d1b1=_0x51847c['getTableIfOnlyTableInContent'](_0x14de40,_0x4b3a6e);if(!_0x29d1b1||!he(_0x29d1b1,void 0x0,_0x5b46d4))return!0x1;const _0x2f2a39=_0x5b46d4['getSelectionAffectedTableCells'](_0x4b3a6e['document']['selection']);if(!_0x2f2a39['length'])return!0x1;const _0x398788=_0x2f2a39[0x0]['findAncestor']('table'),_0x1b9fef=_0x5b46d4['getRowIndexes'](_0x2f2a39),_0x4fe37c=_0x5b46d4['getColumnIndexes'](_0x2f2a39),_0x36e9f1={'startRow':_0x1b9fef['first'],'endRow':_0x1b9fef['last'],'startColumn':_0x4fe37c['first'],'endColumn':_0x4fe37c['last']};return 0x1==_0x2f2a39['length']&&(_0x36e9f1['endRow']+=_0x5b46d4['getRows'](_0x29d1b1)-0x1,_0x36e9f1['endColumn']+=_0x5b46d4['getColumns'](_0x29d1b1)-0x1),he(_0x398788,_0x36e9f1,_0x5b46d4);}(_0x31803a,_0x27065d,_0x37e172['model'],_0x10304a,_0xf725e3)&&(_0x47b843['stop'](),_0xc0e049={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x37e172['model']['change'](()=>{_0x37e172['model']['insertContent'](_0x4c46a7[0x0],_0x4c46a7[0x1],_0x4c46a7[0x2],{'forceDefaultExecution':!0x0});const _0xe892ad=_0x5b0a21(),{rowInsertionRanges:_0x3a51cd,columnInsertionRanges:_0xa65cd6,insertionRanges:_0x6c64bd,deletionRanges:_0x3d2c3b,cells:_0x450b26}=_0xc0e049;_0x3a51cd['length']&&_0x529a82['markMultiRangeInsertion'](_0x3a51cd,'tablePasteRow',{'tablePasteChainId':_0xe892ad}),_0xa65cd6['length']&&_0x529a82['markMultiRangeInsertion'](_0xa65cd6,'tablePasteColumn',{'tablePasteChainId':_0xe892ad}),_0x6c64bd['length']&&(_0x529a82['markMultiRangeInsertion'](_0x6c64bd,'tablePaste',{'tablePasteChainId':_0xe892ad,'skipNestingCheck':!0x0}),_0x6c64bd['forEach'](_0x326a65=>_0x326a65['detach']?.())),_0x3d2c3b['length']&&(_0x529a82['markMultiRangeDeletion'](_0x3d2c3b,'tablePaste',{'tablePasteChainId':_0xe892ad,'skipNestingCheck':!0x0}),_0x3d2c3b['forEach'](_0x375d31=>_0x375d31['detach']?.()));const _0x2f5a73=_0x529a82['markMultiRangeBlockFormat'](_0x450b26['map'](({element:_0x408689})=>_0x408689),{'formatGroupId':_0x5b0a21()},[],'tablePasteCell',{'tablePasteChainId':_0xe892ad});if(_0x2f5a73){const _0x3a8afe=_0x2f5a73['getMarkers'](),_0x29c3a9=[];for(const {element:_0x1f4a65,attributes:_0x4aa2c7}of _0x450b26){if(!_0x4aa2c7)continue;const _0x52e9b9=_0x37e172['model']['createRangeOn'](_0x1f4a65),_0x5dcd5d=_0x3a8afe['find'](_0x38cf7a=>_0x38cf7a['getRange']()['isEqual'](_0x52e9b9));_0x5dcd5d&&_0x29c3a9['push']([_0x5dcd5d['name'],_0x4aa2c7]);}_0x29c3a9['length']&&_0x2f5a73['setAttribute']('markerAttributes',Object['fromEntries'](_0x29c3a9));}_0xc0e049=null;}));},{'priority':_0x6320d1['high']+0xa}),_0x37e172['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x242af5,_0x27b5c7)=>{const [_0x52f008,_0x2b52fa,,_0x4268f0]=_0x27b5c7;if(!_0xc0e049)return;_0x242af5['stop']();const _0x3d5b35=_0x52f008['cell'],_0x50e99c=_0x2b52fa,_0x240696=Pe(_0x3d5b35),_0x42e8f0=Pe(_0x50e99c);_0x242af5['return']=_0x3d5b35;let _0x46cccc=null,_0x55f0ec=null;if(_0x42e8f0||_0x240696){if(_0x240696&&!_0x42e8f0){_0x4268f0['remove'](_0x3d5b35['getChild'](0x0));for(const _0x30ae97 of Array['from'](_0x50e99c['getChildren']()))_0x4268f0['insert'](_0x30ae97,_0x3d5b35,'end');const _0x3dc07e=_0xc0e049['rowInsertionIndexes']['includes'](_0x52f008['row']),_0x502a32=_0xc0e049['columnInsertionIndexes']['includes'](_0x52f008['column']);_0x3dc07e||_0x502a32||(_0x46cccc=_0xbaab6f['fromRange'](_0x4268f0['createRangeIn'](_0x3d5b35)));}else _0x42e8f0&&!_0x240696&&(_0x55f0ec=_0x4268f0['createRangeIn'](_0x3d5b35));}else{const _0x5cc00b=_0x4268f0['createElement']('tableCellSuggestion'),_0x3737ba=_0x4268f0['createElement']('tableCellSuggestion');_0x4268f0['wrap'](_0x4268f0['createRangeIn'](_0x3d5b35),_0x3737ba),_0x4268f0['insert'](_0x5cc00b,_0x3d5b35,0x0);for(const _0x5ba1e5 of Array['from'](_0x50e99c['getChildren']()))_0x4268f0['insert'](_0x5ba1e5,_0x5cc00b,'end');_0x46cccc=_0xbaab6f['fromRange'](_0x4268f0['createRangeOn'](_0x5cc00b)),_0x55f0ec=_0xbaab6f['fromRange'](_0x4268f0['createRangeOn'](_0x3737ba));}const _0x1bf96e=Array['from'](_0x50e99c['getAttributes']())['filter'](([_0x3202bf])=>ge['includes'](_0x3202bf));_0xc0e049['cells']['push']({'element':_0x3d5b35,'attributes':_0x1bf96e['length']?Object['fromEntries'](_0x1bf96e):null}),_0x46cccc&&_0xc0e049['insertionRanges']['push'](_0x46cccc),_0x55f0ec&&_0xc0e049['deletionRanges']['push'](_0x55f0ec);},{'priority':'high'}),_0x10304a['on']('insertColumns',(_0x182f26,_0x520a23)=>{const [_0x3f8928,_0x3137ad={}]=_0x520a23;if(!_0xc0e049)return;const _0x3ff8a1=_0x3137ad['at']||0x0,_0x483bb7=_0x3137ad['columns']||0x1;_0xc0e049['columnInsertionIndexes']=new Array(_0x483bb7)['fill'](_0x3ff8a1)['map']((_0x98a13,_0x3eb2f9)=>_0x98a13+_0x3eb2f9);for(const {cell:_0x1b41a7}of _0x10304a['createTableWalker'](_0x3f8928,{'startColumn':_0x3ff8a1,'endColumn':_0x3ff8a1+_0x483bb7-0x1}))_0xc0e049['columnInsertionRanges']['push'](_0x37e172['model']['createRangeOn'](_0x1b41a7));},{'priority':'low'}),_0x10304a['on']('insertRows',(_0x3ff6a1,_0x4e2099)=>{const [_0x42db4e,_0x1226bd={}]=_0x4e2099;if(!_0xc0e049)return;const _0x5cdc03=_0x1226bd['at']||0x0,_0x3ba91b=_0x1226bd['rows']||0x1;_0xc0e049['rowInsertionIndexes']=new Array(_0x3ba91b)['fill'](_0x5cdc03)['map']((_0xaa4909,_0x3faac4)=>_0xaa4909+_0x3faac4);for(const {cell:_0xf9838b}of _0x10304a['createTableWalker'](_0x42db4e,{'startRow':_0x5cdc03,'endRow':_0x5cdc03+_0x3ba91b-0x1}))_0xc0e049['rowInsertionRanges']['push'](_0x37e172['model']['createRangeOn'](_0xf9838b));},{'priority':'low'}),_0x529a82['descriptionFactory']['registerDescriptionCallback'](_0x5a9d62=>{if(_0x5a9d62['subType']&&_0x5a9d62['subType']['startsWith']('tablePaste'))return _0x5a9d62['previous']?{}:{'type':'insertion','content':o(_0x37e172['locale'],'*Replace\x20table\x20cells*')};});const _0x3363d4=()=>!0x1;for(const _0x18faa2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x529a82['_suggestionFactory']['registerCustomCallback']('insertion',_0x18faa2,'join',_0x3363d4),_0x529a82['_suggestionFactory']['registerCustomCallback']('deletion',_0x18faa2,'join',_0x3363d4),_0x529a82['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x18faa2,'join',_0x3363d4);_0x529a82['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3363d4),_0x529a82['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x54702e,_0x2a8795,_0x562bbc)=>{const _0x264ae9=_0x54702e['map'](_0x2e6c2b=>_0x2e6c2b['getContainedElement']())['filter'](_0x111f21=>_0x111f21),_0x154714=new Map(_0x264ae9['map'](_0x56506b=>[_0x56506b,null]));if(_0xc0e049){for(const {element:_0x3f254c,attributes:_0x514eec}of _0xc0e049['cells'])_0x514eec&&_0x154714['set'](_0x3f254c,_0x514eec);}else{if(_0x562bbc&&_0x562bbc['markerAttributes'])for(const [_0x34a605,_0xfdd17a]of Object['entries'](_0x562bbc['markerAttributes'])){const _0x412ec7=_0x37e172['model']['markers']['get'](_0x34a605),_0x32cc3b=_0x412ec7?_0x412ec7['getRange']()['getContainedElement']():null;_0x32cc3b&&_0x154714['set'](_0x32cc3b,_0xfdd17a);}}_0x37e172['model']['change'](_0x2b8d2c=>{for(const [_0x2bb70a,_0x14a4c7]of _0x154714)_0x2b8d2c['setAttributes']({...Ce,..._0x14a4c7},_0x2bb70a);});});const _0x3e2836=(_0x5ce664,_0x9301d1)=>{_0x529a82['_suggestionFactory']['registerCustomCallback'](_0x5ce664,'tablePaste',_0x9301d1,(_0x282ac8,_0x38c017,_0x36d54d)=>{_0x37e172['model']['change'](_0x3124d7=>{const _0x56d4fc=[];for(const _0x50ccda of _0x282ac8){const _0x104ae7=_0x50ccda['start']['nodeAfter'];_0x104ae7['is']('element','tableCellSuggestion')&&_0x56d4fc['push'](_0x104ae7);}_0x529a82['_suggestionFactory']['getSuggestionCallback'](_0x5ce664,null,_0x9301d1)(_0x282ac8,_0x38c017,_0x36d54d);for(const _0x337c41 of _0x56d4fc)'$graveyard'!=_0x337c41['root']['rootName']&&_0x3124d7['unwrap'](_0x337c41);});});};_0x3e2836('insertion','accept'),_0x3e2836('insertion','discard'),_0x3e2836('deletion','accept'),_0x3e2836('deletion','discard'),_0x529a82['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1527e8=>{const _0x4c3856=_0x1527e8['map'](_0x4f60b9=>_0x4f60b9['getContainedElement']()),_0x5ed1ac=_0x4c3856[0x0]['findAncestor']('table'),{minRow:_0xaeb06,maxRow:_0x43c3bf}=_0x27472c['_getCoordsForCells'](_0x4c3856);_0x10304a['removeRows'](_0x5ed1ac,{'at':_0xaeb06,'rows':_0x43c3bf-_0xaeb06+0x1});}),_0x529a82['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x548cfa=>{const _0x4fca43=_0x548cfa['map'](_0x1ad51d=>_0x1ad51d['getContainedElement']()),_0x7bffab=_0x4fca43[0x0]['findAncestor']('table'),{minColumn:_0x454acf,maxColumn:_0x8c8a8d}=_0x27472c['_getCoordsForCells'](_0x4fca43);_0x10304a['removeColumns'](_0x7bffab,{'at':_0x454acf,'columns':_0x8c8a8d-_0x454acf+0x1});});const _0x5c5eaf=(_0x71c014,_0x59d0f8)=>{if(!_0x59d0f8['subType']||!_0x59d0f8['subType']['startsWith']('tablePaste'))return;const _0x1fb89a=_0x59d0f8['attributes']['tablePasteChainId'],_0x2ea808=_0x529a82['getSuggestions']()['filter'](_0x4934b6=>_0x4934b6['isInContent']&&_0x4934b6['attributes']&&_0x4934b6['attributes']['tablePasteChainId']==_0x1fb89a);_0x2ea808['length']&&_0x59d0f8['getAllAdjacentSuggestions']()['length']!=_0x2ea808['length']&&_0x2ea808['reduce']((_0x122929,_0x14424b)=>(_0x122929['next']=_0x14424b,_0x14424b['previous']=_0x122929,_0x14424b));};function _0x427a55(_0xab9f68,_0x30afee=!0x0){const {id:_0x339470}=_0x529a82['_splitMarkerName'](_0xab9f68['markerName']),_0x1ad57a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3d0801=_0x529a82['activeMarkers']['includes'](_0xab9f68['markerName']);return _0x3d0801&&_0x1ad57a['push']('ck-suggestion-marker--active'),{'classes':_0x1ad57a,'attributes':{'data-suggestion':_0x339470},'priority':_0x3d0801&&_0x30afee?0xbc2:0xbb8};}_0x529a82['on']('suggestionLoaded',_0x5c5eaf,{'priority':'high'}),_0x529a82['on']('suggestionUnloaded',_0x5c5eaf,{'priority':'high'}),_0x37e172['model']['document']['registerPostFixer'](()=>{let _0x5238af=!0x1;const _0x24edba=Array['from'](_0x37e172['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c22cb,data:_0x2e9a60}of _0x24edba){const {group:_0x3348ad,type:_0x6b7ee7,id:_0x43f430}=_0x529a82['_splitMarkerName'](_0x3c22cb);if('suggestion'!=_0x3348ad||'deletion'!=_0x6b7ee7||_0x2e9a60['oldRange'])continue;if(!_0x529a82['hasSuggestion'](_0x43f430))continue;const _0x2f2931=_0x529a82['getSuggestion'](_0x43f430)['getRanges'](),_0x496913=_0x37e172['plugins']['get']('Users')['me'];for(const _0x3499cd of _0x529a82['getSuggestions']()){if(!_0x3499cd['isInContent']||_0x3499cd['author']!=_0x496913)continue;if('formatBlock'!=_0x3499cd['type']||'tablePasteCell'!=_0x3499cd['subType'])continue;if(_0x3499cd['getRanges']()['every'](_0x37c866=>_0x2f2931['some'](_0xa0a1f1=>_0xa0a1f1['containsRange'](_0x37c866,!0x0)))){for(const _0x13b7a8 of _0x3499cd['getAllAdjacentSuggestions']())_0x13b7a8['isInContent']&&(_0x13b7a8['discard'](),_0x5238af=!0x0);}}}return _0x5238af;}),_0x37e172['model']['document']['registerPostFixer'](_0x4fb90c=>{const _0x533888=_0x37e172['commands']['get']('redo');if(!_0x533888||!_0x533888['_createdBatches']['has'](_0x4fb90c['batch']))return!0x1;let _0x3b8e3b=!0x1;const _0x3754d7=_0x37e172['plugins']['get']('Users')['me'],_0x811748=_0x37e172['model']['document']['differ']['getChanges'](),_0x28d44f=Array['from'](_0x37e172['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4134a4,data:_0x40efb4})=>{const {group:_0x41c403,subType:_0x5eda52,authorId:_0x25a039}=_0x529a82['_splitMarkerName'](_0x4134a4);return'suggestion'==_0x41c403&&'tablePaste'==_0x5eda52&&_0x25a039==_0x3754d7['id']&&!_0x40efb4['oldRange'];});for(const _0xce79fc of _0x811748){if('insert'!=_0xce79fc['type']||'tableCellSuggestion'!=_0xce79fc['name']||0x1!=_0xce79fc['length'])continue;const _0xeeac2f=_0x4fb90c['createRange'](_0xce79fc['position'],_0xce79fc['position']['getShiftedBy'](0x1));if(!_0x28d44f['find'](({data:_0x58ab74})=>_0x58ab74['newRange']['isEqual'](_0xeeac2f))){for(const {name:_0x4a8d0e,data:_0x396245}of _0x28d44f)if(_0xeeac2f['containsRange'](_0x396245['newRange'])){_0x4fb90c['updateMarker'](_0x4a8d0e,{'range':_0xeeac2f}),_0x3b8e3b=!0x0;break;}}}return _0x3b8e3b;}),_0x37e172['model']['document']['registerPostFixer'](_0x945569=>{let _0x59b3aa=!0x1;const _0x4e9abb=_0x37e172['plugins']['get']('Users')['me'],_0x39d8ea=_0x529a82['getSuggestions']()['filter'](_0x4c6a59=>_0x4c6a59['isInContent']&&_0x4c6a59['author']==_0x4e9abb),_0x56dc64=new Set(),_0x500efd=new Set();for(const _0x17ae5b of _0x39d8ea)if('tablePaste'==_0x17ae5b['subType'])for(const _0x5d4f10 of _0x17ae5b['getMarkers']()){const _0x53a3cd=_0x5d4f10['getRange']()['getContainedElement']();if(_0x53a3cd){if(_0x53a3cd['is']('element','tableCellSuggestion')&&Pe(_0x53a3cd)){_0x17ae5b['removeMarker'](_0x5d4f10['name']),_0x56dc64['add'](_0x53a3cd),_0x59b3aa=!0x0;const _0x767bd2=_0x53a3cd['nextSibling'],_0x464c3e=_0x53a3cd['previousSibling'],_0x494faa=_0x767bd2&&_0x767bd2['is']('element','tableCellSuggestion'),_0x50eb7e=_0x464c3e&&_0x464c3e['is']('element','tableCellSuggestion');_0x494faa&&!_0x56dc64['has'](_0x767bd2)&&_0x500efd['add'](_0x767bd2),_0x50eb7e&&!_0x56dc64['has'](_0x464c3e)&&_0x500efd['add'](_0x464c3e);}else _0x53a3cd['is']('element','paragraph')&&_0x53a3cd['isEmpty']&&(_0x17ae5b['removeMarker'](_0x5d4f10['name']),_0x59b3aa=!0x0);}}else{if('tablePasteCell'==_0x17ae5b['subType']){if(!_0x17ae5b['attributes']||!_0x17ae5b['attributes']['tablePasteChainId'])continue;const _0x3725b8=_0x17ae5b['attributes']['markerAttributes'];if(_0x3725b8&&Object['keys'](_0x3725b8)['length'])continue;const _0x7e0a61=_0x17ae5b['attributes']['tablePasteChainId'];let _0x823437=!0x0,_0x65d0fe=!0x0;for(const _0x151a3a of _0x39d8ea)if(_0x151a3a['subType']&&_0x151a3a['subType']['startsWith']('tablePaste')){if(!_0x151a3a['attributes']['tablePasteChainId']){_0x65d0fe=!0x1;break;}if(_0x151a3a['id']!=_0x17ae5b['id']&&_0x151a3a['attributes']['tablePasteChainId']==_0x7e0a61){_0x823437=!0x1;break;}}_0x65d0fe&&_0x823437&&(_0x17ae5b['removeMarkers'](),_0x59b3aa=!0x0);}}for(const _0x4d7b0f of _0x56dc64)_0x945569['remove'](_0x4d7b0f);for(const _0x5a3b06 of _0x500efd)_0x945569['unwrap'](_0x5a3b06);return _0x59b3aa;}),_0x37e172['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xf762fc,_0x3f35a7)=>_0x427a55(_0xf762fc),'converterPriority':'high'}),_0x37e172['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x68b727,_0x2e36e7)=>_0x2e36e7['options']['showSuggestionHighlights']?_0x427a55(_0x68b727,!0x1):null,'converterPriority':'high'});const _0x5e0143=_0x37e172['editing']['view'];this['listenTo'](_0x5e0143['document'],'clipboardOutput',(_0x5470e5,_0x302747)=>{const _0x203bc2=[];for(const _0xb54957 of _0x5e0143['createRangeIn'](_0x302747['content'])['getItems']())_0xb54957['is']('element','suggestion-td')&&_0x203bc2['push'](_0xb54957);_0x5e0143['change'](_0x4a4a47=>{for(const _0x1fe004 of _0x203bc2)_0x4a4a47['move'](_0x4a4a47['createRangeIn'](_0x1fe004),_0x4a4a47['createPositionBefore'](_0x1fe004)),_0x4a4a47['remove'](_0x1fe004);});});}}function Pe(_0x5f381b){if(_0x5f381b['isEmpty'])return!0x0;const _0x588964=_0x5f381b['getChild'](0x0);return _0x588964['is']('element','paragraph')&&_0x588964['isEmpty'];}function he(_0x43dd0a,_0x56d8f5={},_0x91249c){for(const {isAnchor:_0x26069e,cellHeight:_0x476864,cellWidth:_0x13a187}of _0x91249c['createTableWalker'](_0x43dd0a,{'includeAllSlots':!0x0,..._0x56d8f5}))if(!_0x26069e||0x1!=_0x476864||0x1!=_0x13a187)return!0x1;return!0x0;}class vt extends _0x3557c2{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x25cbc4=this['editor']['plugins']['get']('TrackChangesEditing');_0x25cbc4['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x25cbc4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x25cbc4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x25cbc4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x25cbc4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x25cbc4['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xd7bae2,_0x2e23be){const _0x85b9c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d4191=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x25736a=_0x2e23be['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4bd9d4=_0x5d4191['getColumnGroupElement'](_0x25736a);let _0x232620=_0x4bd9d4?_0x5d4191['getTableColumnsWidths'](_0x4bd9d4):null,_0x1730dd=_0x25736a['getAttribute']('tableWidth')||null;const _0x3e002f=_0x2e23be['tableWidth']||_0x1730dd,_0x495075=_0x2e23be['columnWidths']||_0x232620,_0x4ef15b=this['editor']['plugins']['get']('Users')['me'];for(const _0x58ebc0 of _0x85b9c['getSuggestions']()){const _0x44946a=_0x58ebc0['getContainedElement']();if('resizeTable'===_0x58ebc0['subType']&&_0x44946a===_0x25736a){_0x58ebc0['author']!==_0x4ef15b&&_0x58ebc0['discard']();const _0x511edd=_0x58ebc0['data']['commandParams'];_0x1730dd=_0x511edd[0x0]['tableWidth'],_0x232620=_0x511edd[0x0]['columnWidths'];break;}}_0xd7bae2({'table':_0x25736a,'tableWidth':_0x3e002f,'columnWidths':_0x495075}),_0x85b9c['markBlockFormat'](_0x25736a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1730dd,'columnWidths':_0x232620}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x17955e){if('formatBlock'!=_0x17955e['type']&&'formatInline'!=_0x17955e['type'])return;const {data:_0x317225}=_0x17955e;if(_0x317225&&'resizeTable'===_0x317225['formatGroupId']){const _0x1ae3b1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1ae3b1)};}}}class Ct extends _0x3557c2{['afterInit'](){const _0x1e9118=this['editor'];_0x1e9118['plugins']['has']('Template')&&_0x1e9118['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x3557c2{['afterInit'](){const _0x43ea1f=this['editor'];if(!_0x43ea1f['commands']['get']('insertTableOfContents'))return;_0x43ea1f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3a8583=_0x43ea1f['plugins']['get']('TrackChangesEditing'),_0x2107d2=_0x43ea1f['locale'];_0x3a8583['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1918f5=>o(_0x2107d2,'ELEMENT_TABLE_OF_CONTENTS',_0x1918f5));}}class Dt extends _0x3557c2{['afterInit'](){const _0x3d38e3=this['editor'];if(!_0x3d38e3['plugins']['has']('Title'))return;const _0x30bdf6=_0x3d38e3['plugins']['get']('TrackChangesEditing');_0x30bdf6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3d38e3['locale'],'ELEMENT_TITLE')),_0x3d38e3['model']['document']['registerPostFixer'](_0x333f53=>{let _0x5f211d=!0x1;const _0x2e41cd=Array['from'](_0x3d38e3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x597194,data:_0xfa05dc}of _0x2e41cd){const {group:_0x518bf5}=_0x30bdf6['_splitMarkerName'](_0x597194);if('suggestion'!==_0x518bf5||!_0xfa05dc['newRange'])continue;const _0x1e74bf=_0xfa05dc['newRange'],_0x28e685=_0x1e74bf['end']['nodeBefore'];if(!_0x28e685||!_0x28e685['is']('element','title-content'))continue;if(!_0x1e74bf['start']['isTouching'](_0x1e74bf['end']))continue;const _0x964dc8=_0x3d38e3['model']['schema']['getNearestSelectionRange'](_0x1e74bf['end'],'forward');if(_0x964dc8&&_0x964dc8['isCollapsed']){const _0x34e866=_0x333f53['createRange'](_0x1e74bf['start'],_0x964dc8['start']);_0x34e866['isEqual'](_0x1e74bf)||(_0x333f53['updateMarker'](_0x597194,{'range':_0x34e866}),_0x5f211d=!0x0);}_0x5f211d||(_0x333f53['removeMarker'](_0x597194),_0x5f211d=!0x0);}return _0x5f211d;});}}class Nt extends _0x3557c2{['afterInit'](){const _0x56d2a9=this['editor'],_0x537055=_0x56d2a9['plugins']['get']('TrackChangesEditing');_0x56d2a9['plugins']['has']('UndoEditing')&&(_0x537055['enableCommand']('undo'),_0x537055['enableCommand']('redo'));}}class Mt extends _0x3557c2{static get['requires'](){return[jt];}['afterInit'](){const _0x32decd=this['editor'];if(!_0x32decd['plugins']['has']('TableCaptionEditing'))return;_0x32decd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x3557c2{['tableProperties'];['tableCellProperties'];constructor(_0x31d000){super(_0x31d000),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';}['afterInit'](){const _0x5410e3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xaa5cf8 of this['tableProperties'])_0x5410e3['enableCommand'](_0xaa5cf8,(_0x2fd1d2,_0xf038b6)=>{const _0x19995d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xaa5cf8,[_0x19995d],this['tableProperties'],'tableProperties',_0x2fd1d2,_0xf038b6);});_0x5410e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5410e3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5410e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1c926d,_0x2e7a27)=>this['handleDiscardAction'](this['tableProperties'],_0x1c926d,_0x2e7a27)),_0x5410e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x46bd04 of this['tableCellProperties'])_0x5410e3['enableCommand'](_0x46bd04,(_0x15b564,_0x1125bb)=>{const _0x1318af=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x46bd04,_0x1318af,this['tableCellProperties'],'tableCellProperties',_0x15b564,_0x1125bb);});_0x5410e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5410e3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5410e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1de753,_0x5e1604)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1de753,_0x5e1604)),_0x5410e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5410e3['descriptionFactory']['registerDescriptionCallback'](_0x5d3400=>this['handleSuggestionDescription'](_0x5d3400));}['_handlePropertyChange'](_0x23c228,_0x54765f,_0x118568,_0x36f484,_0x2da251,_0x429a0e){const _0x3be26e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x429a0e['batch'],()=>{for(const _0x316e33 of _0x54765f){if(this['_getSuggestion'](_0x316e33,_0x36f484))_0x2da251(_0x429a0e);else{const _0x9a22ea={};for(const _0x26933f of _0x118568){const _0x1b482a=_0x316e33['getAttribute'](_0x26933f);void 0x0!==_0x1b482a&&(_0x9a22ea[_0x26933f]=_0x1b482a);}_0x2da251(_0x429a0e),_0x3be26e['markBlockFormat'](_0x316e33,{'commandParams':[_0x9a22ea]},[],_0x36f484);}}});}['handleDiscardAction'](_0x352b8b,_0x34ec99,_0x3e1535){const _0x1bf310=_0x34ec99[0x0]['start']['nodeAfter'],_0xaead5c=_0x3e1535['commandParams'][0x0];this['editor']['model']['change'](_0x1c5f35=>{for(const _0x916fa1 of _0x352b8b)void 0x0!==_0xaead5c[_0x916fa1]?_0x1c5f35['setAttribute'](_0x916fa1,_0xaead5c[_0x916fa1],_0x1bf310):_0x1c5f35['removeAttribute'](_0x916fa1,_0x1bf310);});}['handleSuggestionDescription'](_0x2f03f7){if(_0x2f03f7['data'])switch(_0x2f03f7['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3145e7,_0x50b371){const _0x161593=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x13c047 of _0x161593['getSuggestions']({'skipNotAttached':!0x0})){const _0x548890=_0x13c047['getContainedElement']();if(_0x13c047['subType']===_0x50b371&&_0x548890===_0x3145e7)return _0x13c047;}return null;}}const m='$elementName';class p extends _0x3557c2{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x56c2fc,_0x90b2c1,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x462ea5){function _0x25fa3(_0x877c38){return _0x877c38['map'](_0x50c11c=>String['fromCharCode'](_0x50c11c))['join']('');}super(_0x462ea5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3baa12,_0x1b5f02,_0x2a909a,_0x3734dc)=>{this['_model']['change'](()=>{for(const _0x5bdea2 of[..._0x3734dc,..._0x2a909a])this['_model']['markers']['has'](_0x5bdea2)&&_0x462ea5['editing']['reconvertMarker'](_0x5bdea2);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x462ea5['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x462ea5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x462ea5['config']['get']('trackChanges.trackFormatChanges'),_0x462ea5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x462ea5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x462ea5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x25fa3([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x25fa3([0x34,0x30,0x34,0x38,0x31,0x32,0x34,0x36]);}['init'](){const _0x382556=this['editor'],_0x1cabce=(_0x32ed36,_0x544c1b)=>{if('attribute'!=_0x32ed36)return'ck-suggestion-marker-'+_0x32ed36;const _0x4dcfab=_0x544c1b['split']('|')[0x0];return this['_isBlockAttribute'](_0x4dcfab)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x382556['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x51003a=>{const {id:_0x5d6a15,type:_0x2339ac,subType:_0x499d91}=this['_splitMarkerName'](_0x51003a['markerName']),_0x2742a9=['ck-suggestion-marker',_0x1cabce(_0x2339ac,_0x499d91)];let _0x49f688=0xbb8;return this['activeMarkers']['includes'](_0x51003a['markerName'])&&(_0x2742a9['push']('ck-suggestion-marker--active'),_0x49f688=0xbc2),'deletion'==_0x2339ac&&(_0x49f688+=0x5),{'classes':_0x2742a9,'attributes':{'data-suggestion':_0x5d6a15},'priority':_0x49f688};}}),_0x382556['conversion']['for']('dataDowncast')['add'](_0x543040=>{_0x543040['on']('addMarker:suggestion',(_0xf40f1e,_0x1c01a6,_0x4e7f6f)=>{if(!_0x4e7f6f['options']['showSuggestionHighlights'])return;const _0x32ad80=_0x1c01a6['item'];if(!_0x32ad80)return;const _0x4cd38d=_0x4e7f6f['mapper']['toViewElement'](_0x32ad80);_0x382556['model']['schema']['isObject'](_0x32ad80)&&_0x4cd38d&&!_0x4cd38d['getCustomProperty']('widget')&&_0x4cd38d['is']('containerElement')&&_0x25ca44(_0x4cd38d,_0x4e7f6f['writer']);},{'priority':'high'});}),_0x382556['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x22cce2,_0x192285)=>{if(!_0x192285['options']['showSuggestionHighlights'])return null;const {type:_0x4e47c1,subType:_0x223c66}=this['_splitMarkerName'](_0x22cce2['markerName']);return{'classes':['ck-suggestion-marker',_0x1cabce(_0x4e47c1,_0x223c66)],'priority':0xbb8};}});const _0x3b4db5=({showActiveMarkers:_0x85107e=!0x0,isAttributeSuggestion:_0x1a281e=!0x1}={})=>(_0x53afa3,_0x47bbb9,_0x2fb3cc)=>{if(!_0x47bbb9['item'])return;const {id:_0x117e59}=this['_splitMarkerName'](_0x47bbb9['markerName']);if(_0x1a281e){const _0x299914=this['_suggestions']['get'](_0x117e59),_0x1764e1=this['_getAttributeKey'](_0x299914);if(!this['_isBlockAttribute'](_0x1764e1))return;}if(_0x47bbb9['item']['is']('selection'))return void _0x2fb3cc['consumable']['consume'](_0x47bbb9['item'],_0x53afa3['name']);const _0x49ed25=_0x2fb3cc['mapper']['toViewElement'](_0x47bbb9['item']);if(_0x47bbb9['item']['is']('element')&&_0x382556['model']['schema']['isBlock'](_0x47bbb9['item'])&&!_0x49ed25['getCustomProperty']('addHighlight')){_0x2fb3cc['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x49ed25),_0x2fb3cc['writer']['setAttribute']('data-suggestion',_0x117e59,_0x49ed25),_0x2fb3cc['mapper']['bindElementToMarker'](_0x49ed25,_0x47bbb9['markerName']),_0x85107e&&(this['activeMarkers']['includes'](_0x47bbb9['markerName'])?_0x2fb3cc['writer']['addClass']('ck-suggestion-marker--active',_0x49ed25):_0x2fb3cc['writer']['removeClass']('ck-suggestion-marker--active',_0x49ed25));for(const _0x2cbc93 of _0x382556['model']['createRangeIn'](_0x47bbb9['item'])['getItems']())_0x2fb3cc['consumable']['consume'](_0x2cbc93,_0x53afa3['name']);_0x2fb3cc['consumable']['consume'](_0x47bbb9['item'],_0x53afa3['name']);}};_0x382556['conversion']['for']('dataDowncast')['add'](_0x40ff73=>{_0x40ff73['on']('addMarker:suggestion:formatBlock',(_0x31ed8b,_0x772449,_0x3ffcdc)=>{_0x3ffcdc['options']['showSuggestionHighlights']&&_0x3b4db5({'showActiveMarkers':!0x1})(_0x31ed8b,_0x772449,_0x3ffcdc);},{'priority':'highest'});}),_0x382556['conversion']['for']('dataDowncast')['add'](_0xfb656f=>{_0xfb656f['on']('addMarker:suggestion:attribute',(_0x2136ce,_0x39760c,_0x19d40a)=>{_0x19d40a['options']['showSuggestionHighlights']&&_0x3b4db5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2136ce,_0x39760c,_0x19d40a);},{'priority':'highest'});}),_0x382556['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4989b6,_0x48f539)=>_0x48f539['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4989b6['substr'](0xb)}}),_0x382556['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2971ee,{writer:_0x5d3ec4})=>{let _0x33b4ad='suggestion:'+_0x2971ee['getAttribute']('suggestion-type')+':'+_0x2971ee['getAttribute']('id');return _0x2971ee['getAttribute']('marker-count')&&(_0x33b4ad+=':'+_0x2971ee['getAttribute']('marker-count')),_0x5d3ec4['createElement']('$marker',{'data-name':_0x33b4ad});}}),_0x382556['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x382556['conversion']['for']('editingDowncast')['add'](_0x275344=>{_0x275344['on']('addMarker:suggestion:formatBlock',_0x3b4db5(),{'priority':'high'});}),_0x382556['conversion']['for']('editingDowncast')['add'](_0x5eac2e=>{_0x5eac2e['on']('addMarker:suggestion:attribute',_0x3b4db5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x382556['conversion']['for']('editingDowncast')['add'](_0x4d807d=>{_0x4d807d['on']('removeMarker:suggestion:formatBlock',(_0x8241b3,_0x203e36,_0x38f309)=>{const _0x2d41e5=_0x38f309['mapper']['markerNameToElements'](_0x203e36['markerName']);if(_0x2d41e5){for(const _0x1647b0 of _0x2d41e5)_0x1647b0['getCustomProperty']('addHighlight')||(_0x38f309['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1647b0),_0x38f309['writer']['removeAttribute']('data-suggestion',_0x1647b0),_0x38f309['mapper']['unbindElementFromMarkerName'](_0x1647b0,_0x203e36['markerName']));}},{'priority':'high'});}),_0x382556['conversion']['for']('editingDowncast')['add'](_0x17014f=>{_0x17014f['on']('removeMarker:suggestion:attribute',(_0x4b3378,_0x7f077d,_0x48528f)=>{const _0x4f51f6=_0x48528f['mapper']['markerNameToElements'](_0x7f077d['markerName']);if(!_0x4f51f6)return;const {id:_0x4b1240}=this['_splitMarkerName'](_0x7f077d['markerName']),_0x558c90=this['_suggestions']['get'](_0x4b1240),_0x521d93=this['_getAttributeKey'](_0x558c90);if(this['_isBlockAttribute'](_0x521d93)){for(const _0x4384ff of _0x4f51f6)_0x4384ff['getCustomProperty']('addHighlight')||(_0x48528f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4384ff),_0x48528f['writer']['removeAttribute']('data-suggestion',_0x4384ff),_0x48528f['mapper']['unbindElementFromMarkerName'](_0x4384ff,_0x7f077d['markerName']));}},{'priority':'high'});}),_0x382556['model']['document']['registerPostFixer'](_0xe72258=>{let _0x49d9c1=!0x1;const _0x482d0c=Array['from'](_0x382556['model']['document']['differ']['getChangedMarkers']()),_0x4f9329=new Set();for(const {name:_0x4494bc,data:_0x2de3ad}of _0x482d0c){const {group:_0x3786ee,type:_0x4f96b6,subType:_0x27925f,id:_0x3a5cec}=this['_splitMarkerName'](_0x4494bc);if('suggestion'!==_0x3786ee)continue;const _0x13b14c=this['_suggestions']['get'](_0x3a5cec);if(null!=_0x2de3ad['newRange']){'formatInline'==_0x4f96b6&&(_0x49d9c1=_0x49d9c1||Et(_0x2de3ad['newRange'],_0x4494bc,_0xe72258,_0x382556['model']['schema']));const _0x47f6f2='attribute'==_0x4f96b6&&this['_isBlockAttribute'](_0x27925f['split']('|')[0x0]);if(_0x2de3ad['newRange']['isCollapsed']||'$graveyard'==_0x2de3ad['newRange']['root']['rootName']||'formatBlock'==_0x4f96b6&&!Ut(_0x2de3ad['newRange'])||_0x47f6f2&&!Ut(_0x2de3ad['newRange'])||'deletion'==_0x4f96b6&&!(!Tt(_0x5664f0=_0x2de3ad['newRange'])&&!function(_0x1996b1){return _0x1996b1['start']['parent']==_0x1996b1['end']['nodeBefore']&&_0x1996b1['start']['isAtEnd'];}(_0x5664f0)))_0xe72258['removeMarker'](_0x4494bc),_0x49d9c1=!0x0;else{if(!_0x13b14c||!_0x13b14c['isInContent'])continue;_0x4f9329['add'](_0x13b14c);}}}var _0x5664f0;return _0x4f9329['size']>0x0&&(_0x49d9c1=!!this['_joinWithAdjacentSuggestions'](_0x4f9329)||_0x49d9c1),_0x49d9c1;}),_0x382556['model']['document']['registerPostFixer'](_0x50e919=>{let _0x2c6944=!0x1;for(const _0x225f08 of _0x382556['model']['document']['differ']['getChanges']())if('insert'==_0x225f08['type'])for(const _0x5777e3 of this['_suggestions']['values']()){if(_0x5777e3['isMultiRange']||!_0x5777e3['isInContent'])continue;const _0x48211d='formatBlock'==_0x5777e3['type'],_0x1cab06=this['_getAttributeKey'](_0x5777e3),_0x597550=_0x1cab06&&this['_isBlockAttribute'](_0x1cab06);if(!_0x48211d&&!_0x597550)continue;const _0x285d56=_0x5777e3['getFirstRange']();if(_0x285d56['start']['parent']!=_0x285d56['end']['parent']&&!_0x285d56['end']['isAtEnd']){const _0x3c1dcb=_0x382556['model']['createPositionAt'](_0x285d56['start']['nodeAfter'],'end'),_0x383959=_0x382556['model']['createRange'](_0x285d56['start'],_0x3c1dcb);_0x50e919['updateMarker'](_0x5777e3['getFirstMarker'](),{'range':_0x383959}),_0x2c6944=!0x0;}}return _0x2c6944;}),_0x382556['model']['document']['registerPostFixer'](_0xf29d56=>this['_processAttributeChanges'](_0xf29d56)),_0x382556['model']['document']['registerPostFixer'](_0x3ed6fa=>!_0x3ed6fa['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3ed6fa)),_0x382556['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x382556['model']['document']['on']('change:data',(_0x19e37c,_0x502fac)=>{if(!_0x502fac['isLocal']||_0x502fac['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x585f31=_0x382556['model']['document']['differ']['getChanges']();if(0x0==_0x585f31['length'])return;const _0x1d2e3e=[],_0x122951=_0x585f31['filter'](_0x111ba6=>'attribute'==_0x111ba6['type']),_0x4f3693=_0x585f31['filter'](_0x4e3c45=>'insert'==_0x4e3c45['type']&&'$text'!=_0x4e3c45['name']);for(const _0x21fb1c of _0x122951)this['_isRegisteredAttribute'](_0x21fb1c['attributeKey'])&&_0x1d2e3e['push']({'key':_0x21fb1c['attributeKey'],'newValue':_0x21fb1c['attributeNewValue'],'oldValue':_0x21fb1c['attributeOldValue'],'range':Ot(_0x21fb1c['range'],_0x382556['model'])});for(const _0x50225e of _0x4f3693){if('rename'!=_0x50225e['action']&&'refresh'!=_0x50225e['action'])continue;const _0x48f370=Gt(_0x50225e['position']['nodeAfter'],_0x382556['model']),_0x40b4e5=_0x50225e['before'];'rename'==_0x50225e['action']&&_0x1d2e3e['push']({'key':m,'newValue':_0x50225e['name'],'oldValue':_0x40b4e5['name'],'range':_0x48f370});for(const [_0x3ec69a,_0xf3aebd]of _0x40b4e5['attributes']){if(!this['_isRegisteredAttribute'](_0x3ec69a))continue;const _0x45cba5=_0x50225e['attributes']['get'](_0x3ec69a);_0xf3aebd!==_0x45cba5&&_0x1d2e3e['push']({'key':_0x3ec69a,'newValue':_0x45cba5,'oldValue':_0xf3aebd,'range':_0x48f370});}for(const [_0x2ee52f,_0x243da4]of _0x50225e['attributes'])this['_isRegisteredAttribute'](_0x2ee52f)&&(_0x40b4e5['attributes']['has'](_0x2ee52f)||_0x1d2e3e['push']({'key':_0x2ee52f,'newValue':_0x243da4,'oldValue':null,'range':_0x48f370}));}0x0!=_0x1d2e3e['length']&&_0x382556['model']['enqueueChange'](_0x502fac,_0x398c0e=>{const _0x3be85b=_0x5b0a21();for(const {range:_0x1d3621,key:_0xe88ecf,oldValue:_0x56eabf,newValue:_0x3f2a89}of _0x1d2e3e)this['markAttributeChange'](_0x1d3621,_0xe88ecf,_0x56eabf,_0x3f2a89,{'groupId':_0x3be85b});this['_reduceExistingSuggestions'](_0x398c0e,_0x1d2e3e);});},{'priority':'lowest'}),_0x382556['model']['markers']['on']('update:suggestion',(_0x81d7b7,_0x459698,_0xc3d12c)=>{if(null==_0xc3d12c){const {id:_0x498436}=this['_splitMarkerName'](_0x459698['name']),_0x4685d6=this['_suggestions']['get'](_0x498436);_0x4685d6&&_0x4685d6['addMarkerName'](_0x459698['name']);}}),_0x382556['model']['document']['on']('change:data',()=>{const _0x3bfbf8=Array['from'](_0x382556['model']['document']['differ']['getChangedMarkers']())['filter'](_0x34e72d=>'suggestion'===this['_splitMarkerName'](_0x34e72d['name'])['group']);if(0x0===_0x3bfbf8['length'])return;_0x3bfbf8['sort']((_0x345645,_0x274cbd)=>{const _0x41b40c=_0x345645['data']['oldRange'],_0x184bc2=_0x274cbd['data']['oldRange'];return null===_0x41b40c&&null===_0x184bc2?0x0:null===_0x41b40c&&null!==_0x184bc2?-0x1:null!==_0x41b40c&&null===_0x184bc2?0x1:_0x41b40c['start']['isBefore'](_0x184bc2['start'])?-0x1:0x1;});const _0x4085c1=new Set(),_0x1d7ae0=new Set();for(const {name:_0x29d68f,data:_0x26beec}of _0x3bfbf8){const {id:_0x4fa234}=this['_splitMarkerName'](_0x29d68f);if(null===_0x26beec['oldRange']){const _0x3ad157=this['_handleNewSuggestionMarker'](_0x29d68f);_0x1d7ae0['add'](_0x3ad157);}else{const _0x4b61fb=this['_suggestions']['get'](_0x4fa234);null!==_0x26beec['newRange']||_0x4b61fb['isInContent']?(_0x4085c1['add'](_0x4b61fb['head']),_0x1d7ae0['add'](_0x4b61fb)):this['_removeSuggestion'](_0x4b61fb);}}_0x1d7ae0['size']>0x0&&this['_refreshSuggestionsChain'](_0x1d7ae0);for(const _0x43ee8d of _0x4085c1)this['fire']('suggestionChanged',_0x43ee8d);}),_0x382556['model']['on']('applyOperation',(_0x4cd126,_0x294282)=>{const _0x421104=_0x294282[0x0];if(!this['_suggestions']['size'])return;if(!_0x421104['isDocumentOperation'])return;if(_0x421104['batch']['isUndo']||!_0x421104['batch']['isLocal'])return;let _0x2a68dd,_0x3d64b3;switch(_0x421104['type']){case'insert':_0x2a68dd=_0x382556['model']['createPositionAt'](_0x421104['position']),_0x3d64b3=_0x2a68dd['getShiftedBy'](_0x421104['howMany']);break;case'split':_0x2a68dd=_0x382556['model']['createPositionAt'](_0x421104['splitPosition']),_0x3d64b3=_0x382556['model']['createPositionAt'](_0x421104['moveTargetPosition']);break;case'move':_0x2a68dd=_0x382556['model']['createPositionAt'](_0x421104['targetPosition']),_0x3d64b3=_0x2a68dd['getShiftedBy'](_0x421104['howMany']);break;default:return;}const _0x23bccd=_0x382556['model']['createRange'](_0x2a68dd,_0x3d64b3);_0x382556['model']['change'](()=>{for(const {suggestion:_0x143a0c,meta:_0xc9b9f5}of this['_findSuggestions'](_0x23bccd)){if(_0x143a0c['isMultiRange'])continue;if('formatInline'==_0x143a0c['type'])continue;const _0x1e470d=this['_getAttributeKey'](_0x143a0c);if(_0x1e470d&&this['_isBlockAttribute'](_0x1e470d)&&'split'!=_0x421104['type'])continue;const _0x44e1dd=_0x143a0c['data']&&_0x143a0c['data']['multipleBlocks'];('formatBlock'!=_0x143a0c['type']||'split'==_0x421104['type']&&!_0x44e1dd)&&(_0xc9b9f5['containsRangeInObject']||'insertion'==_0x143a0c['type']&&_0xc9b9f5['isOwn']||_0x143a0c['getFirstRange']()['containsRange'](_0x23bccd)&&this['_breakSuggestionMarker'](_0x143a0c,_0x2a68dd,_0x3d64b3));}});},{'priority':'lowest'}),_0x382556['model']['on']('deleteContent',(_0x46eff0,_0x413c0b)=>{const _0x26b397=_0x413c0b[0x0],_0x13f96b=_0x413c0b[0x1];if(_0x13f96b&&_0x13f96b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x26b397['isCollapsed'])return;const _0x5e1666=_0x382556['model']['schema'],{start:_0x33b7f8,end:_0x6e0586}=_0x26b397['getFirstRange'](),_0x45d5a4=_0x33b7f8['nodeAfter']&&_0x5e1666['isLimit'](_0x33b7f8['nodeAfter'])?null:_0x5e1666['getNearestSelectionRange'](_0x33b7f8,'forward'),_0x548785=_0x6e0586['nodeBefore']&&_0x5e1666['isLimit'](_0x6e0586['nodeBefore'])?null:_0x5e1666['getNearestSelectionRange'](_0x6e0586,'backward'),_0x25e500=_0x382556['model']['createRange'](_0x45d5a4?_0x45d5a4['start']:_0x33b7f8,_0x548785?_0x548785['end']:_0x6e0586);_0x382556['model']['change'](_0x404aed=>{this['markDeletion'](_0x25e500);const _0x337482=_0x382556['model']['schema']['getNearestSelectionRange'](_0x25e500['start']);_0x26b397['is']('documentSelection')?_0x404aed['setSelection'](_0x337482):_0x26b397['setTo'](_0x337482);}),_0x46eff0['stop']();},{'priority':_0x6320d1['normal']+0xa}),_0x382556['model']['on']('insertContent',(_0x3c9507,_0x267649)=>{const _0x27de53=_0x267649[_0x267649['length']-0x1];_0x27de53&&_0x27de53['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x382556['model']['change'](()=>{let _0x5b8d8e=_0x382556['model']['insertContent'](_0x267649[0x0],_0x267649[0x1],_0x267649[0x2],{'forceDefaultExecution':!0x0});if(!_0x5b8d8e)return;_0x3c9507['return']=_0x5b8d8e['clone']();const _0x585696=_0x5b8d8e['end']['nodeBefore'],_0x36e61d=_0x382556['model']['schema'];_0x585696&&_0x36e61d['isBlock'](_0x585696)&&!_0x36e61d['isObject'](_0x585696)&&(_0x5b8d8e=_0x382556['model']['createRange'](_0x5b8d8e['start'],_0x382556['model']['createPositionAt'](_0x585696,'end'))),this['markInsertion'](_0x5b8d8e);}),_0x3c9507['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4cc637=new $(_0x382556,this['_suggestions']);_0x382556['commands']['add']('acceptSuggestion',_0x4cc637),this['enableCommand']('acceptSuggestion');const _0x41d990=new B(_0x382556,this['_suggestions']);_0x382556['commands']['add']('discardSuggestion',_0x41d990),this['enableCommand']('discardSuggestion'),_0x382556['commands']['add']('acceptAllSuggestions',new x(_0x382556,_0x4cc637,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x382556['commands']['add']('discardAllSuggestions',new x(_0x382556,_0x41d990,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x382556['commands']['add']('acceptSelectedSuggestions',new R(_0x382556,_0x4cc637,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x382556['commands']['add']('discardSelectedSuggestions',new R(_0x382556,_0x41d990,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1a8eb8=_0x382556['plugins']['get']('CommentsRepository');this['listenTo'](_0x1a8eb8,'addComment',(_0x31ddba,{threadId:_0x189d4e})=>{const _0x1ee66e=this['_suggestions']['get'](_0x189d4e);_0x1ee66e&&_0x1ee66e['commentThread']&&0x1===_0x1ee66e['commentThread']['length']&&this['_updateSuggestionData'](_0x189d4e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1a8eb8,'removeComment',(_0x12c4c1,{threadId:_0x427ec3})=>{const _0x4ce7c1=this['_suggestions']['get'](_0x427ec3);_0x4ce7c1&&_0x4ce7c1['commentThread']&&!_0x4ce7c1['commentThread']['length']&&this['_updateSuggestionData'](_0x427ec3,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x549455){if(this['_adapter'])throw new _0x1fa0a5('track-changes-adapter-already-set',this);this['_adapter']=_0x549455;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x43e283=!0x1,toJSON:_0x55470f=!0x1}={}){const _0x7cabff=[];for(const _0x3eda47 of this['_suggestions']['values']())_0x43e283&&!_0x3eda47['isInContent']||_0x7cabff['push'](_0x3eda47);return _0x55470f?_0x7cabff['map'](_0x29d9a0=>_0x29d9a0['toJSON']()):_0x7cabff;}['getSuggestion'](_0x15b0fc){const _0x35db81=this['_suggestions']['get'](_0x15b0fc);if(!_0x35db81)throw new _0x1fa0a5('track-changes-suggestion-not-found',this);return _0x35db81;}['hasSuggestion'](_0x44f957){return this['_suggestions']['has'](_0x44f957);}['addSuggestionData'](_0x5bdc24){const {authorId:_0xad845a,id:_0x285f40,attributes:_0x28c823}=_0x5bdc24,[_0x1c03e0,_0xb7d430]=_0x5bdc24['type']['split'](':'),_0x11e30a=this['_suggestions']['get'](_0x285f40)||this['_createSuggestion'](_0x1c03e0,_0xb7d430,_0x285f40,_0xad845a,_0x28c823);if(this['_addThreadToSuggestion'](_0x11e30a),this['_checkSuggestionCorrectness'](_0x11e30a,_0x1c03e0,_0xb7d430||null,_0xad845a),_0x11e30a['createdAt']=_0x5bdc24['createdAt'],_0x11e30a['_isDataLoaded']=!0x0,_0x28c823&&_0x28c823['@external']){const _0x25d3c4=_0x28c823['@external'],_0x1b28b7=this['_getExternalAuthor'](_0x25d3c4['authorName']);_0x11e30a['authoredAt']=_0x25d3c4['createdAt'],_0x11e30a['author']=_0x1b28b7,_0x11e30a['isExternal']=!0x0;}else _0x11e30a['authoredAt']=_0x5bdc24['createdAt'];switch(_0x5bdc24['data']&&(_0x11e30a['data']=_0x5bdc24['data']),_0x5bdc24['attributes']&&(_0x11e30a['attributes']=_0x5bdc24['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x11e30a['_saved']=!0x0),this['_suggestionState']['get'](_0x11e30a)){case'notReady':this['_suggestionState']['set'](_0x11e30a,'dataReady');break;case'markerReady':_0x11e30a['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x11e30a])),this['_refreshSuggestionsChain'](new Set([_0x11e30a])),this['_suggestionState']['set'](_0x11e30a,'ready'),this['fire']('suggestionLoaded',_0x11e30a)):this['_suggestionState']['set'](_0x11e30a,'removed');}return _0x11e30a;}['acceptSuggestion'](_0x2604a6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xd4fa72 of _0x2604a6['getAllAdjacentSuggestions']())_0xd4fa72['accept']();});});}['discardSuggestion'](_0x52271e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x429d7a of _0x52271e['getAllAdjacentSuggestions']())_0x429d7a['discard']();});});}['enableCommand'](_0xb1c27a,_0x4bd87a){const _0x3b59d2=this['editor']['commands']['get'](_0xb1c27a);if(!_0x3b59d2)throw new _0x1fa0a5('track-changes-command-not-found',this,{'commandName':_0xb1c27a});if(this['_enabledCommands']['has'](_0x3b59d2))throw new _0x1fa0a5('track-changes-enable-command-twice',this,{'commandName':_0xb1c27a});this['_enabledCommands']['add'](_0x3b59d2),_0x4bd87a&&_0x3b59d2['on']('execute',(_0x27bce3,_0x383802)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x383802['length']>0x0&&_0x383802[_0x383802['length']-0x1]&&_0x383802[_0x383802['length']-0x1]['forceDefaultExecution']?_0x383802['pop']():(_0x27bce3['return']=_0x4bd87a((..._0x160cba)=>_0x3b59d2['execute'](..._0x160cba,{'forceDefaultExecution':!0x0}),..._0x383802),_0x27bce3['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1cef4a){let _0x1d95a5,_0x4ccf2a;const _0x5dd1e2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1d95a5=_0x1cef4a();}catch(_0x4dad15){_0x4ccf2a=_0x4dad15;}return _0x5dd1e2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4ccf2a&&_0x1fa0a5['rethrowUnexpectedError'](_0x4ccf2a,this),_0x1d95a5;}['markInsertion'](_0x44f8a3,_0x55be40=null,_0x46d00e={}){if(_0x44f8a3['isCollapsed'])return null;const _0x514705=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x48eeee,meta:_0x547c41}of this['_findSuggestions'](_0x44f8a3,'insertion'))if(_0x547c41['isOwn']){if(!_0x547c41['isNextTo']){if(_0x547c41['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x48eeee,_0x46d00e))continue;return _0x48eeee;}if(Lt(_0x48eeee,_0x46d00e))return _0x48eeee;this['_breakSuggestionMarker'](_0x48eeee,_0x44f8a3['start'],_0x44f8a3['end']);break;}if(_0x55be40==_0x48eeee['subType']&&Lt(_0x48eeee,_0x46d00e)){const _0x6e6aa8=_0x48eeee['getFirstRange']();return _0x6e6aa8['start']['isEqual'](_0x44f8a3['end'])?this['_setSuggestionRange'](_0x48eeee,this['_model']['createRange'](_0x44f8a3['start'],_0x6e6aa8['end'])):this['_setSuggestionRange'](_0x48eeee,this['_model']['createRange'](_0x6e6aa8['start'],_0x44f8a3['end'])),_0x48eeee;}}const _0x22f790=_0x5b0a21(),_0x37e511=_0x514705['id'],_0x53cbbf=_0x55be40?'insertion:'+_0x55be40:'insertion',_0x5716f3=this['_setSuggestionData']({'id':_0x22f790,'type':_0x53cbbf,'createdAt':new Date(),'authorId':_0x37e511,'attributes':_0x46d00e});return this['_addSuggestionMarker'](_0x53cbbf,_0x22f790,_0x37e511,_0x44f8a3),_0x5716f3;}['markMultiRangeInsertion'](_0x5d64ad,_0x4640f8='multi',_0x489a07={}){const _0x3e4c35=this['editor']['plugins']['get']('Users')['me'],_0x137325=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4640f8,'join');for(const _0x58ad24 of this['getSuggestions']())if(_0x58ad24['author']['id']==_0x3e4c35['id']&&'insertion'==_0x58ad24['type']&&_0x58ad24['subType']==_0x4640f8&&Lt(_0x58ad24,_0x489a07)&&(_0x137325(_0x58ad24['getRanges'](),_0x5d64ad)||_0x137325(_0x5d64ad,_0x58ad24['getRanges']()))){for(const _0x31ea72 of _0x5d64ad)_0x58ad24['addRange'](_0x31ea72);return _0x58ad24;}for(const {suggestion:_0x228e9f,meta:_0x5a03e2}of this['_findSuggestions'](_0x5d64ad,'insertion')){if(!_0x5a03e2['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5a03e2['containsRangeInObject'])continue;if(!Lt(_0x228e9f,_0x489a07))continue;let _0x364fc6=!0x0;for(const _0x266e7b of _0x228e9f['getRanges']())for(const _0x7b9d77 of _0x5d64ad)if(!_0x266e7b['containsRange'](_0x7b9d77)){_0x364fc6=!0x1;break;}if(_0x364fc6)return _0x228e9f;}const _0x1d5105=_0x5b0a21(),_0x149ed6=_0x3e4c35['id'],_0x3a313e='insertion:'+_0x4640f8,_0x56f9fb=this['_setSuggestionData']({'id':_0x1d5105,'type':_0x3a313e,'createdAt':new Date(),'authorId':_0x149ed6,'attributes':_0x489a07});for(const _0x1f8a47 of _0x5d64ad)this['_addSuggestionMarker'](_0x3a313e,_0x1d5105,_0x149ed6,_0x1f8a47,u['getMultiRangeId']());return _0x56f9fb;}['markInlineFormat'](_0x35427e,_0x452255,_0x12f45c=null,_0x11106b={}){if(_0x12f45c=_0x12f45c||Vt(_0x452255),_0x35427e['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x27086d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x12f45c,'accept');return this['forceDefaultExecution'](()=>_0x27086d([_0x35427e],_0x452255,_0x11106b)),null;}const _0x58558b=this['editor']['plugins']['get']('Users')['me'],_0x2d3fb8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5407c6,meta:_0x4a70e4}of this['_findSuggestions'](_0x35427e,'insertion'))_0x4a70e4['isOwn']&&!_0x4a70e4['isInsideObject']&&_0x2d3fb8['push'](..._0x5407c6['getRanges']());}const _0x691348=function(_0x41692f,_0x3e5476){const _0x3e6a52=[];for(const _0x5068d7 of _0x3e5476){const _0x19289a=_0x41692f['getIntersection'](_0x5068d7);_0x19289a&&_0x3e6a52['push'](_0x19289a);}return _0x3e6a52;}(_0x35427e,_0x2d3fb8),_0x5b8472=function(_0x420565,_0x34a6ae){const _0x13860b=[_0x420565];for(const _0x57c71c of _0x34a6ae){let _0x5dda15=0x0;for(;_0x5dda15<_0x13860b['length'];){const _0x2e34ae=_0x13860b[_0x5dda15]['getDifference'](_0x57c71c);_0x13860b['splice'](_0x5dda15,0x1,..._0x2e34ae),_0x5dda15+=_0x2e34ae['length'];}}return _0x13860b;}(_0x35427e,_0x2d3fb8);_0x691348['length']&&this['_model']['change'](()=>{for(const _0x11796c of _0x691348){const _0x2e450c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x12f45c,'accept');this['forceDefaultExecution'](()=>_0x2e450c([_0x11796c],_0x452255,_0x11106b));}});for(const _0x1bca1a of _0x5b8472){let _0x12672f=null,_0x174c79=_0x1bca1a['start'],_0x522513=_0x1bca1a['end'];for(const {suggestion:_0x429baf,meta:_0x505bf4}of this['_findSuggestions'](_0x1bca1a,'formatInline')){if(!_0x505bf4['isOwn'])continue;if(_0x429baf['subType']!=_0x12f45c)continue;if(!Lt(_0x429baf,_0x11106b))continue;const _0xa1c98e=_0x429baf['getFirstRange']();if(_0xa1c98e['containsRange'](_0x1bca1a,!0x0))return null;_0x174c79=_0x174c79['isBefore'](_0xa1c98e['start'])?_0x174c79:_0xa1c98e['start'],_0x522513=_0x522513['isAfter'](_0xa1c98e['end'])?_0x522513:_0xa1c98e['end'],_0x12672f?_0xa1c98e['start']['isBefore'](_0x12672f['getFirstRange']()['start'])?(_0x12672f['removeMarkers'](),_0x12672f=_0x429baf):_0x429baf['removeMarkers']():_0x12672f=_0x429baf;}const _0x4411e9=this['_model']['createRange'](_0x174c79,_0x522513);if(_0x12672f)this['_setSuggestionRange'](_0x12672f,_0x4411e9);else{const _0x3c1245=_0x5b0a21(),_0x22ecc7=_0x58558b['id'];this['_setSuggestionData']({'id':_0x3c1245,'type':'formatInline:'+_0x12f45c,'data':_0x452255,'createdAt':new Date(),'authorId':_0x22ecc7,'attributes':_0x11106b}),this['_addSuggestionMarker']('formatInline:'+_0x12f45c,_0x3c1245,_0x22ecc7,_0x4411e9);}}return null;}['markBlockFormat'](_0x5def3e,_0x1798fc,_0x1f7857=[],_0x2ab8eb=null,_0xabef7e={}){_0x1798fc['formatGroupId']||(_0x1798fc['formatGroupId']=_0x1798fc['commandName']),_0x1798fc['multipleBlocks']=_0x5def3e['is']('range'),_0x2ab8eb=_0x2ab8eb||Vt(_0x1798fc);const _0x2eafd6=_0x1f7857['map'](_0x5ebf7c=>Gt(_0x5ebf7c,this['_model'])),_0x33f3ed=_0x5def3e['is']('range')?_0x5def3e:Gt(_0x5def3e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3d6806=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ab8eb,'accept');return this['forceDefaultExecution'](()=>_0x3d6806([_0x33f3ed],_0x1798fc,_0xabef7e)),null;}_0x2eafd6['push'](_0x33f3ed);let _0x326eda=!0x0;for(const _0xecec7e of _0x2eafd6)if(!this['_rangeIsInLocalUserInsertion'](_0xecec7e)){_0x326eda=!0x1;break;}if(_0x326eda&&'always'!==this['_trackFormatChanges']){const _0x2d6d42=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ab8eb,'accept');return this['forceDefaultExecution'](()=>_0x2d6d42([_0x33f3ed],_0x1798fc,_0xabef7e)),null;}let _0x39d2fc=null,_0x46e298=_0x33f3ed['start'],_0x57ab45=_0x33f3ed['end'];for(const {suggestion:_0x1be796,meta:_0x4ffa4d}of this['_findSuggestions'](_0x33f3ed,'formatBlock')){if(!_0x4ffa4d['isOwn'])continue;if(_0x4ffa4d['isNextTo']||_0x4ffa4d['containsRangeInObject']||_0x4ffa4d['isInsideObject'])continue;if(_0x1be796['data']['formatGroupId']!=_0x1798fc['formatGroupId'])continue;if(!Lt(_0x1be796,_0xabef7e))continue;const _0x4eff76=_0x1be796['getFirstRange']();if(_0x1be796['subType']==_0x2ab8eb){if(_0x4eff76['containsRange'](_0x33f3ed,!0x0))return null;_0x46e298=_0x46e298['isBefore'](_0x4eff76['start'])?_0x46e298:_0x4eff76['start'],_0x57ab45=_0x57ab45['isAfter'](_0x4eff76['end'])?_0x57ab45:_0x4eff76['end'],_0x39d2fc?_0x4eff76['start']['isBefore'](_0x39d2fc['getFirstRange']()['start'])?(_0x39d2fc['removeMarkers'](),_0x39d2fc=_0x1be796):_0x1be796['removeMarkers']():_0x39d2fc=_0x1be796;}else{const _0x3dd848=_0x33f3ed['getIntersection'](_0x4eff76);this['_cutOutSuggestionMarker'](_0x1be796,_0x3dd848);}}const _0x2b6b0a=this['editor']['plugins']['get']('Users')['me'],_0x2bcdf0=_0x5b0a21(),_0x43374c=_0x2b6b0a['id'];if(_0x39d2fc)return this['_setSuggestionRange'](_0x39d2fc,this['_model']['createRange'](_0x46e298,_0x57ab45)),_0x39d2fc;{const _0x2c1c4c=this['_setSuggestionData']({'id':_0x2bcdf0,'type':'formatBlock:'+_0x2ab8eb,'data':_0x1798fc,'createdAt':new Date(),'authorId':_0x43374c,'attributes':_0xabef7e});return this['_addSuggestionMarker']('formatBlock:'+_0x2ab8eb,_0x2bcdf0,_0x43374c,this['_model']['createRange'](_0x46e298,_0x57ab45)),_0x2c1c4c;}}['markMultiRangeBlockFormat'](_0x5c7fb6,_0x28bd2a,_0x17e696=[],_0x29ccc2=null,_0x42f8b9={}){_0x28bd2a['formatGroupId']||(_0x28bd2a['formatGroupId']=_0x28bd2a['commandName']);const _0x2efb6e=_0x5c7fb6[0x0];_0x28bd2a['multipleBlocks']=_0x2efb6e['is']('range'),_0x29ccc2=_0x29ccc2||Vt(_0x28bd2a);const _0x3694b9=_0x17e696['map'](_0xdacde5=>Gt(_0xdacde5,this['_model'])),_0x51dcdf=_0x2efb6e['is']('range')?_0x5c7fb6:_0x5c7fb6['map'](_0x17f809=>Gt(_0x17f809,this['_model']));if('never'===this['_trackFormatChanges']){const _0x315a3b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29ccc2,'accept');return this['forceDefaultExecution'](()=>_0x315a3b(_0x51dcdf,_0x28bd2a,_0x42f8b9)),null;}_0x3694b9['push'](..._0x51dcdf);let _0x53d376=!0x0;for(const _0x58bc06 of _0x3694b9)if(!this['_rangeIsInLocalUserInsertion'](_0x58bc06)){_0x53d376=!0x1;break;}if(_0x53d376&&'always'!==this['_trackFormatChanges']){const _0x51bd99=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29ccc2,'accept');return this['forceDefaultExecution'](()=>_0x51bd99(_0x51dcdf,_0x28bd2a,_0x42f8b9)),null;}const _0xd3b4c2=this['editor']['plugins']['get']('Users')['me'];for(const _0x2ce365 of this['getSuggestions']()){if(_0x2ce365['author']['id']!=_0xd3b4c2['id'])continue;if('formatBlock'!=_0x2ce365['type']||_0x2ce365['data']['formatGroupId']!=_0x28bd2a['formatGroupId'])continue;if(!Lt(_0x2ce365,_0x42f8b9))continue;const _0x4aadf7=_0x2ce365['subType']==_0x29ccc2;for(let _0x42dbb4=0x0;_0x42dbb4<_0x51dcdf['length'];_0x42dbb4++){const _0x142e4e=_0x51dcdf[_0x42dbb4];for(const _0x42092f of _0x2ce365['getMarkers']()){const _0x2490c6=_0x42092f['getRange']();if(_0x142e4e['isEqual'](_0x2490c6)){_0x4aadf7?(_0x51dcdf['splice'](_0x42dbb4,0x1),_0x42dbb4--):_0x2ce365['removeMarker'](_0x42092f['name']);break;}}}}if(0x0==_0x51dcdf['length'])return null;const _0x38f225=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29ccc2,'join');for(const _0x1e4645 of this['getSuggestions']())if(_0x1e4645['author']['id']==_0xd3b4c2['id']&&'formatBlock'==_0x1e4645['type']&&_0x1e4645['data']['formatGroupId']==_0x28bd2a['formatGroupId']&&_0x1e4645['subType']==_0x29ccc2&&Lt(_0x1e4645,_0x42f8b9)&&(_0x38f225(_0x1e4645['getRanges'](),_0x51dcdf)||_0x38f225(_0x51dcdf,_0x1e4645['getRanges']()))){for(const _0x3cbc75 of _0x51dcdf)_0x1e4645['addRange'](_0x3cbc75);return _0x1e4645;}const _0x51da4a=_0x5b0a21(),_0x287106=_0xd3b4c2['id'],_0x3ef195='formatBlock:'+_0x29ccc2,_0x4a4c8b=this['_setSuggestionData']({'id':_0x51da4a,'type':_0x3ef195,'data':_0x28bd2a,'createdAt':new Date(),'authorId':_0x287106,'attributes':_0x42f8b9});for(const _0x308c37 of _0x51dcdf)this['_addSuggestionMarker'](_0x3ef195,_0x51da4a,_0x287106,_0x308c37,u['getMultiRangeId']());return _0x4a4c8b;}['markDeletion'](_0x25d0fc,_0x3c81bb=null,_0x5753c5={}){if(_0x25d0fc['isCollapsed'])return null;const _0x24690f=this['editor']['plugins']['get']('Users')['me'],_0x59159d=new _0xbaab6f(_0x25d0fc['start'],_0x25d0fc['end']);for(const {suggestion:_0x48dfdb,meta:_0xb39103}of this['_findSuggestions'](_0x59159d,'insertion'))if(_0xb39103['isOwn']&&!_0xb39103['isNextTo']){if(_0x48dfdb['isMultiRange']){const _0x5e6101=_0x48dfdb['getRanges']()['filter'](_0x18cf1a=>'$graveyard'!=_0x18cf1a['root']['rootName']);_0x5e6101['every'](_0xa9b8d8=>_0x59159d['containsRange'](_0xa9b8d8,!0x0))&&_0x48dfdb['discard']();if(_0x5e6101['some'](_0x451b0b=>_0x451b0b['containsRange'](_0x59159d,!0x0))){const _0x9cfdaf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c81bb,'accept');return this['forceDefaultExecution'](()=>_0x9cfdaf([_0x59159d],null,_0x5753c5)),null;}}else{const _0x2ae936=_0x59159d['getIntersection'](_0x48dfdb['getFirstRange']());null!==_0x2ae936&&_0x48dfdb['_onDiscard']([_0x2ae936],null,_0x5753c5);}}if(_0x59159d['detach'](),_0x59159d['isCollapsed']||'$graveyard'==_0x59159d['root']['rootName'])return null;let _0x4e47c4=null,_0xd91392=_0x59159d['start'],_0x1e5359=_0x59159d['end'];const _0x4c3fe0=this['_findSuggestions'](_0x59159d,'deletion');for(const {suggestion:_0x4413d7,meta:_0x163d14}of _0x4c3fe0){const _0x2d989b=this['_model']['createRange'](_0xd91392,_0x1e5359);if(_0x163d14['isOwn']&&(this['_mergeNestedSuggestions']||!_0x163d14['containsRangeInObject']&&!_0x163d14['isInsideObject'])){if(_0x4413d7['isMultiRange']){if(!Lt(_0x4413d7,_0x5753c5))continue;let _0x4ddd77=!0x0;for(const _0x5abb1f of _0x4413d7['getRanges']()){if(_0x5abb1f['containsRange'](_0x2d989b,!0x0))return _0x4413d7;_0x2d989b['containsRange'](_0x5abb1f)||(_0x4ddd77=!0x1);}_0x4ddd77&&_0x4413d7['discard']();}else{const _0x20c527=_0x4413d7['getFirstRange']();if(_0x20c527['containsRange'](_0x2d989b,!0x0))return _0x4413d7;if(!Lt(_0x4413d7,_0x5753c5)){_0x2d989b['containsRange'](_0x20c527)?_0x4413d7['removeMarkers']():_0x20c527['containsPosition'](_0xd91392)?_0xd91392=_0x20c527['end']:_0x20c527['containsPosition'](_0x1e5359)&&(_0x1e5359=_0x20c527['start']);continue;}_0xd91392=_0xd91392['isBefore'](_0x20c527['start'])?_0xd91392:_0x20c527['start'],_0x1e5359=_0x1e5359['isAfter'](_0x20c527['end'])?_0x1e5359:_0x20c527['end'],_0x5753c5=Object['assign']({},_0x4413d7['attributes']),_0x4e47c4?_0x20c527['start']['isBefore'](_0x4e47c4['getFirstRange']()['start'])?(_0x4e47c4['removeMarkers'](),_0x4e47c4=_0x4413d7):_0x4413d7['removeMarkers']():_0x4e47c4=_0x4413d7;}}}if(_0x4e47c4)return this['_setSuggestionRange'](_0x4e47c4,this['_model']['createRange'](_0xd91392,_0x1e5359)),_0x4e47c4;{const _0x42704b=_0x5b0a21(),_0x5dd6fc=this['_model']['createRange'](_0xd91392,_0x1e5359),_0x2576b9=_0x24690f['id'],_0x2874cd=_0x3c81bb?'deletion:'+_0x3c81bb:'deletion',_0x35b629=this['_setSuggestionData']({'id':_0x42704b,'type':_0x2874cd,'createdAt':new Date(),'authorId':_0x2576b9,'attributes':_0x5753c5});return this['_addSuggestionMarker'](_0x2874cd,_0x42704b,_0x2576b9,_0x5dd6fc),_0x35b629;}}['markMultiRangeDeletion'](_0x2bdbad,_0x101fcf='multi',_0x4ca5cf={}){const _0x3b7600=this['editor']['plugins']['get']('Users')['me'],_0x5c818a=_0x2bdbad['map'](_0xdb23e8=>new _0xbaab6f(_0xdb23e8['start'],_0xdb23e8['end'])),_0x239350=new Set();for(const {suggestion:_0x377f49,meta:_0x1c6a97}of this['_findSuggestions'](_0x5c818a,'insertion'))_0x1c6a97['isOwn']&&!_0x1c6a97['isNextTo']&&_0x239350['add'](_0x377f49);for(const _0x5851cb of _0x239350)if(_0x5851cb['isMultiRange']){const _0x494394=_0x5851cb['getRanges']();(!_0x5851cb['attributes']||!_0x5851cb['attributes']['skipNestingCheck'])&&(_0x494394['every'](_0x58c47e=>_0x5c818a['some'](_0x817eb3=>_0x817eb3['containsRange'](_0x58c47e,!0x0)))&&_0x5851cb['discard']());if(_0x5c818a['every'](_0x67d481=>_0x494394['some'](_0x35a5c8=>_0x35a5c8['containsRange'](_0x67d481,!0x0)))){const _0x4a3dfd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x101fcf,'accept');return this['forceDefaultExecution'](()=>_0x4a3dfd(_0x2bdbad,null,_0x4ca5cf)),null;}}else{const _0x557d62=_0x5851cb['getFirstRange']();_0x5c818a['some'](_0x3fb658=>_0x3fb658['containsRange'](_0x557d62,!0x0))&&_0x5851cb['discard']();if(_0x5c818a['every'](_0x13b009=>_0x557d62['containsRange'](_0x13b009,!0x0))){const _0x59ed61=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x101fcf,'accept');return this['forceDefaultExecution'](()=>_0x59ed61(_0x5c818a,null,_0x4ca5cf)),null;}}const _0x29c57a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x101fcf,'join');let _0x191237=null;for(const _0x483e48 of this['getSuggestions']())if(_0x483e48['author']['id']==_0x3b7600['id']&&_0x483e48['isInContent']&&'deletion'==_0x483e48['type']&&_0x483e48['subType']==_0x101fcf&&Lt(_0x483e48,_0x4ca5cf)&&(_0x29c57a(_0x483e48['getRanges'](),_0x5c818a)||_0x29c57a(_0x5c818a,_0x483e48['getRanges']()))){if(_0x191237){if(_0x483e48['commentThread']&&_0x483e48['commentThread']['length'])continue;for(const _0x146ac7 of _0x483e48['getRanges']())_0x191237['isIntersectingWithRange'](_0x146ac7)||_0x191237['addRange'](_0x146ac7);_0x483e48['removeMarkers']();}else{_0x191237=_0x483e48;for(const _0x51d74a of _0x5c818a)_0x483e48['isIntersectingWithRange'](_0x51d74a)||_0x483e48['addRange'](_0x51d74a);}}if(_0x191237)return _0x191237;_0x239350['clear']();for(const {suggestion:_0x5cb15b,meta:_0x1b0f27}of this['_findSuggestions'](_0x5c818a,'deletion'))_0x1b0f27['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1b0f27['containsRangeInObject']&&!_0x1b0f27['isInsideObject'])&&Lt(_0x5cb15b,_0x4ca5cf)&&_0x239350['add'](_0x5cb15b);for(const _0x275bd2 of _0x239350){const _0x2bb495=_0x275bd2['getRanges']();if(!_0x4ca5cf||!_0x4ca5cf['skipNestingCheck']){if(_0x5c818a['every'](_0x3ba44f=>_0x2bb495['some'](_0x3da011=>_0x3da011['containsRange'](_0x3ba44f,!0x0))))return _0x275bd2;}(!_0x275bd2['attributes']||!_0x275bd2['attributes']['skipNestingCheck'])&&(_0x2bb495['every'](_0x298597=>_0x5c818a['some'](_0x2479d1=>_0x2479d1['containsRange'](_0x298597,!0x0)))&&_0x275bd2['discard']());}const _0x5efe2c=_0x5b0a21(),_0x22c6dd=_0x3b7600['id'],_0x4aaf86='deletion:'+_0x101fcf,_0x4b7df7=this['_setSuggestionData']({'id':_0x5efe2c,'type':_0x4aaf86,'createdAt':new Date(),'authorId':_0x22c6dd,'attributes':_0x4ca5cf});for(const _0x3de139 of _0x5c818a)_0x3de139['detach'](),_0x3de139['isCollapsed']||'$graveyard'==_0x3de139['root']['rootName']||this['_addSuggestionMarker'](_0x4aaf86,_0x5efe2c,_0x22c6dd,_0x3de139,u['getMultiRangeId']());return _0x4b7df7;}['markAttributeChange'](_0x3878e,_0x58cd29,_0x463505,_0xe08aa8,_0x54fb48){if(_0x3878e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4c02a7=this['editor']['plugins']['get']('Users')['me']['id'],_0xa91c3f=Array['from'](this['_suggestions']['values']())['filter'](_0x3c426a=>'attribute'==_0x3c426a['type']&&_0x3c426a['data']['key']==_0x58cd29&&_0x3c426a['isIntersectingWithRange'](_0x3878e));if('default'===this['_trackFormatChanges']){const _0x2adccb=this['_findSuggestions'](_0x3878e,'insertion')['filter'](({meta:_0x23308e})=>_0x23308e['isOwn']&&!_0x23308e['isInsideObject']&&!_0x23308e['isNextTo'])['map'](({suggestion:_0x576d09})=>_0x576d09);_0xa91c3f['unshift'](..._0x2adccb);}const _0x4f09b7=new Map([[_0x3878e,_0x463505]]);for(const _0x200e67 of _0xa91c3f){const _0x273c76='attribute'==_0x200e67['type']?_0x200e67['data']['oldValue']:void 0x0,_0x5e1959=_0x200e67['getFirstRange'](),_0x6e7922=Array['from'](_0x4f09b7['keys']())['find'](_0x4b8687=>_0x4b8687['isIntersecting'](_0x5e1959));if(!_0x6e7922)continue;const _0x15f802=_0x6e7922['getDifference'](_0x5e1959);this['_isBlockAttribute'](_0x58cd29)&&'insertion'==_0x200e67['type']&&0x0!=_0x15f802['length']||(_0x4f09b7['delete'](_0x6e7922),_0x15f802['forEach'](_0x59a2a6=>{_0x4f09b7['set'](_0x59a2a6,_0x463505);}),'insertion'!=_0x200e67['type']&&_0x273c76!=_0xe08aa8&&_0x4f09b7['set'](_0x6e7922['getIntersection'](_0x5e1959),_0x273c76));}const _0x579131=[];for(const [_0x33679f,_0x259429]of _0x4f09b7){const _0x4cb798=_0x5b0a21(),_0x2e2e27={'key':_0x58cd29,'oldValue':_0x259429,'newValue':_0xe08aa8};_0x58cd29['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':_0x58cd29});const _0x476e8d=('attribute:'+(_0x58cd29+'|'+Vt({'newValue':_0xe08aa8})))['substring'](0x0,0x3c),_0x12c88b=this['_setSuggestionData']({'id':_0x4cb798,'type':_0x476e8d,'data':_0x2e2e27,'createdAt':new Date(),'authorId':_0x4c02a7,'attributes':_0x54fb48});_0x579131['push'](_0x12c88b),this['_addSuggestionMarker'](_0x476e8d,_0x4cb798,_0x4c02a7,_0x33679f);}return _0x579131;}['enableDefaultAttributesIntegration'](_0xe34f4a){this['enableCommand'](_0xe34f4a,(_0x1d2d2c,..._0x1096c9)=>{this['_recordAttributeChanges'](()=>{_0x1d2d2c(..._0x1096c9);});});}['registerBlockAttribute'](_0x5b2466){this['_blockAttributeKeys']['add'](_0x5b2466);}['registerInlineAttribute'](_0x497d62){this['_inlineAttributeKeys']['add'](_0x497d62);}['_getAttributeKey'](_0x3559d4){return'attribute'==_0x3559d4['type']?_0x3559d4['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x53220f,_0x3723d5){const _0x16953d=_0x53220f['getFirstMarker']();this['_model']['change'](_0x200864=>{_0x200864['updateMarker'](_0x16953d,{'range':_0x3723d5});});}['_addThreadToSuggestion'](_0x3921d9){const _0x1a28a3=_0x3921d9['id'],_0x82e9d9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1a28a3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x82e9d9,'threadId':_0x1a28a3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1a244b=this['_commentsRepository']['getCommentThread'](_0x1a28a3);_0x1a244b['unbind']('isRemovable'),_0x1a244b['isRemovable']=!0x1,_0x3921d9['commentThread']=_0x1a244b;}['_checkSuggestionCorrectness'](_0x4faf59,_0x1b07af,_0x4faa3a,_0x287ace){if(_0x4faf59['type']!=_0x1b07af||_0x4faf59['subType']!=_0x4faa3a||_0x4faf59['creator']['id']!=_0x287ace)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1fa0a5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x542eb4,_0x2f385f){const _0x2add76=_0x542eb4['getFirstRange']();if(_0x2f385f['isEqual'](_0x2add76))_0x542eb4['removeMarkers']();else{if(_0x2add76['containsRange'](_0x2f385f)){const _0xd9c132=this['_model']['createPositionAt'](_0x2f385f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x542eb4,this['_model']['createRange'](_0x2add76['start'],_0xd9c132));const _0x5ef081=_0x5b0a21(),_0x4c2edb=_0x542eb4['creator']['id'],_0x1cef2e=_0x542eb4['type']+':'+_0x542eb4['subType'];this['_setSuggestionData']({'id':_0x5ef081,'type':_0x1cef2e,'createdAt':new Date(),'authorId':_0x4c2edb,'data':_0x542eb4['data'],'attributes':_0x542eb4['attributes']});const _0x41c1e0=this['_model']['createPositionAt'](_0x2f385f['end']['parent'],'after'),_0xfe4918=this['_model']['createRange'](_0x41c1e0,_0x2add76['end']);this['_addSuggestionMarker'](_0x1cef2e,_0x5ef081,_0x4c2edb,_0xfe4918);}else{if(_0x2add76['containsPosition'](_0x2f385f['start'])){const _0x40d279=this['_model']['createPositionAt'](_0x2f385f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x542eb4,this['_model']['createRange'](_0x2add76['start'],_0x40d279));}else{const _0x346045=this['_model']['createPositionAt'](_0x2f385f['end']['parent'],'after');this['_setSuggestionRange'](_0x542eb4,this['_model']['createRange'](_0x346045,_0x2add76['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x540c3c){for(const {suggestion:_0x2b281c,meta:_0x2013bb}of this['_findSuggestions'](_0x540c3c,'insertion')){if(!_0x2013bb['isOwn'])continue;const _0x2b975e=_0x2b281c['getRanges']();for(const _0x3fe320 of _0x2b975e)if(!_0x540c3c['getDifference'](_0x3fe320)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4a680d){const _0x3281fa=this['editor']['plugins']['get']('Users')['getUser'](_0x4a680d);if(!_0x3281fa)throw new _0x1fa0a5('track-changes-user-not-found',this);return _0x3281fa;}['_getExternalAuthor'](_0x46c7e0){const _0x445fbc=this['editor']['plugins']['get']('Users'),_0x48c4e3=_0xc5c95e('external:'+_0x46c7e0),_0x4c4b08=_0x445fbc['getUser'](_0x48c4e3);return _0x4c4b08||_0x445fbc['addUser']({'id':_0x48c4e3,'name':_0x46c7e0});}['_createSuggestion'](_0x227490,_0x271469,_0x442aad,_0x84b4e4,_0x17b80e){const _0x4f476d=this['_getAuthorFromId'](_0x84b4e4),_0x31d7f0=this['_suggestionFactory']['buildSuggestion'](_0x227490,_0x271469,_0x442aad,_0x4f476d,_0x17b80e,_0x4cac6e=>{this['_updateSuggestionData'](_0x442aad,{'attributes':_0x4cac6e});const _0x3109bc=this['getSuggestion'](_0x442aad);this['_joinWithAdjacentSuggestions'](new Set([_0x3109bc])),this['_refreshSuggestionsChain'](new Set([_0x3109bc]));});return this['listenTo'](_0x31d7f0,'accept',()=>{this['_updateSuggestionData'](_0x442aad,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x31d7f0,'discard',()=>{this['_updateSuggestionData'](_0x442aad,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x442aad,_0x31d7f0),this['_suggestionState']['set'](_0x31d7f0,'notReady'),_0x31d7f0;}['_splitMarkerName'](_0x305197){const _0x3c60f8=_0x305197['split'](':');return{'group':_0x3c60f8[0x0],'type':_0x3c60f8[0x1],'subType':_0x3c60f8['length']>=0x5?_0x3c60f8[0x2]:null,'id':_0x3c60f8['length']<0x5?_0x3c60f8[0x2]:_0x3c60f8[0x3],'authorId':_0x3c60f8['length']<0x5?_0x3c60f8[0x3]:_0x3c60f8[0x4],'markerCount':0x6==_0x3c60f8['length']?_0x3c60f8[0x5]:null};}['_breakSuggestionMarker'](_0x256e38,_0x480fa9,_0x3bd793){const _0x5ec6fb=_0x256e38['getFirstRange'](),_0x49696a=_0x5ec6fb['start'],_0xffccb6=_0x5ec6fb['end'];this['_setSuggestionRange'](_0x256e38,this['_model']['createRange'](_0x49696a,_0x480fa9));const _0x3719df=_0x5b0a21(),_0x4b3f22=_0x256e38['creator']['id'],_0x18bf99=_0x256e38['type']+(_0x256e38['subType']?':'+_0x256e38['subType']:'');this['_setSuggestionData']({'id':_0x3719df,'type':_0x18bf99,'createdAt':new Date(),'authorId':_0x4b3f22,'originalSuggestionId':_0x256e38['id'],'attributes':_0x256e38['attributes'],'data':_0x256e38['data']});const _0x8d1310=this['_getAttributeKey'](_0x256e38);('formatBlock'==_0x256e38['type']||_0x8d1310&&this['_isBlockAttribute'](_0x8d1310))&&(_0x3bd793=this['_model']['createPositionBefore'](_0x3bd793['parent'])),this['_addSuggestionMarker'](_0x18bf99,_0x3719df,_0x4b3f22,this['_model']['createRange'](_0x3bd793,_0xffccb6));}['_findSuggestions'](_0x15c8c6,_0x491e33=null){const _0x3deca6=[],_0x48f578=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x15c8c6)||(_0x15c8c6=[_0x15c8c6]);for(const _0x100d8b of this['getSuggestions']()){if(!_0x100d8b['isInContent'])continue;if(_0x491e33&&_0x100d8b['type']!=_0x491e33)continue;let _0x3a9b5e=!0x1;for(const _0x740cfe of _0x100d8b['getRanges']()){for(const _0x3b0ead of _0x15c8c6){const _0x5e0d3a=_0x3b0ead['start']['isEqual'](_0x740cfe['end'])||_0x3b0ead['end']['isEqual'](_0x740cfe['start']);if(_0x5e0d3a||_0x3b0ead['getIntersection'](_0x740cfe)){const _0xfcbb42=_0x3b0ead['containsRange'](_0x740cfe)&&Rt(this['_model']['schema'],_0x740cfe['start'],_0x3b0ead),_0x22eca8=_0x740cfe['containsRange'](_0x3b0ead)&&Rt(this['_model']['schema'],_0x3b0ead['start'],_0x740cfe);_0x3deca6['push']({'suggestion':_0x100d8b,'meta':{'isOwn':_0x48f578==_0x100d8b['author'],'isNextTo':_0x5e0d3a,'isInsideObject':_0xfcbb42,'containsRangeInObject':_0x22eca8}}),_0x3a9b5e=!0x0;break;}}if(_0x3a9b5e)break;}}return _0x3deca6;}['_addSuggestionMarker'](_0xc3f6aa,_0x4157ee,_0x193c75,_0x2d9de2,_0x5112aa){this['_model']['change'](_0x5e769f=>{let _0x16ebc3='suggestion:'+_0xc3f6aa+':'+_0x4157ee+':'+_0x193c75;_0x5112aa&&(_0x16ebc3=_0x16ebc3+':'+_0x5112aa),_0x5e769f['addMarker'](_0x16ebc3,{'range':_0x2d9de2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4a6865){const _0x261ad9=_0x4a6865['previous'],_0x311370=_0x4a6865['next'];_0x4a6865['previous']=null,_0x4a6865['next']=null,null!=_0x261ad9&&_0x261ad9['next']==_0x4a6865&&(_0x261ad9['next']=_0x311370),null!=_0x311370&&_0x311370['previous']==_0x4a6865&&(_0x311370['previous']=_0x261ad9),'ready'==this['_suggestionState']['get'](_0x4a6865)&&(this['_suggestionState']['set'](_0x4a6865,'removed'),this['fire']('suggestionUnloaded',_0x4a6865,_0x261ad9,_0x311370));}['_setSuggestionData'](_0x1d176e){const _0x5e868d=_0x1d176e['id'],_0xa13638=this['addSuggestionData'](_0x1d176e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x56e512=this['editor']['plugins']['get']('PendingActions'),_0x76e112=_0xa13638['hasComments'],_0x3554b0=_0xa13638['subType']?_0xa13638['type']+':'+_0xa13638['subType']:_0xa13638['type'],_0xe6270=this['editor']['locale'],_0x251fb9=_0x56e512['add'](o(_0xe6270,'PENDING_ACTION_SUGGESTION')),_0x95214b={'id':_0x5e868d,'type':_0x3554b0,'hasComments':_0x76e112,'data':_0x1d176e['data']||null,'originalSuggestionId':_0x1d176e['originalSuggestionId']||null,'attributes':_0xa13638['attributes']};this['_adapter']['addSuggestion'](_0x95214b)['then'](_0x393adc=>{_0xa13638['_saved']=!0x0,_0x56e512['remove'](_0x251fb9),_0x393adc&&_0x393adc['createdAt']&&(this['_suggestions']['get'](_0x5e868d)['createdAt']=_0x393adc['createdAt']);})['catch'](_0xac8410=>{throw _0x216893('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xa13638['discard']();}),_0xa13638['stopListening'](),this['_suggestions']['delete'](_0xa13638['id']),this['_suggestionState']['delete'](_0xa13638),_0xac8410;});}return _0xa13638;}['_isBlockAttribute'](_0x27bc05){return this['_blockAttributeKeys']['has'](_0x27bc05);}['_updateSuggestionData'](_0x46365d,_0x2a5ab2){const _0x44a1c8=this['editor']['plugins']['get']('PendingActions'),_0x52c42c=this['getSuggestion'](_0x46365d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x52c42c['_saved']){const _0x1a6876=_0x44a1c8['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x46365d,_0x2a5ab2)['then'](()=>{_0x44a1c8['remove'](_0x1a6876);});}else _0x52c42c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x46365d,_0x2a5ab2);});}}['_getSuggestionData'](_0x4d46a2){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1fa0a5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4d46a2);}['_handleNewSuggestionMarker'](_0x246b14){const {id:_0x360d0a,type:_0x300136,subType:_0x5d6de1,authorId:_0xf90160}=this['_splitMarkerName'](_0x246b14),_0x1f4324=this['_suggestions']['get'](_0x360d0a)||this['_createSuggestion'](_0x300136,_0x5d6de1,_0x360d0a,_0xf90160,{});switch(this['_checkSuggestionCorrectness'](_0x1f4324,_0x300136,_0x5d6de1,_0xf90160),this['_suggestionState']['get'](_0x1f4324)){case'notReady':this['_getSuggestionData'](_0x360d0a)['then'](_0x37f192=>{let _0x44483e=Promise['resolve']();_0x37f192['hasComments']&&(_0x44483e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x360d0a})),_0x44483e['then'](()=>{this['addSuggestionData'](_0x37f192)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1f4324,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x360d0a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1f4324,'ready'),this['fire']('suggestionLoaded',_0x1f4324);break;case'ready':this['fire']('suggestionChanged',_0x1f4324);}return _0x1f4324['addMarkerName'](_0x246b14),_0x1f4324;}['_refreshSuggestionsChain'](_0x3b54d4){const _0x5f4d64=Array['from'](_0x3b54d4),_0x11a575=_0x5f4d64['filter'](_0x298e0c=>'attribute'==_0x298e0c['type']);this['_refreshAttributeSuggestionsChain'](_0x11a575);const _0x51b238=_0x5f4d64['filter'](_0x71d238=>!_0x71d238['isMultiRange']&&'attribute'!=_0x71d238['type']),_0x1d9253=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x172d87=>!_0x172d87['isMultiRange']&&'attribute'!=_0x172d87['type']),_0x4992bb=_0x1d9253['filter'](_0x80de83=>!_0x3b54d4['has'](_0x80de83)),_0x6ec67=new Map(_0x1d9253['map'](_0x2d25a4=>[_0x2d25a4,this['_suggestionFactory']['getSuggestionCallback'](_0x2d25a4['type'],_0x2d25a4['subType'],'chain')])),_0x31a7c7=new Map(_0x1d9253['map'](_0x5cff84=>[_0x5cff84,_0x5cff84['getFirstRange']()])),_0x33ac7d=new Set(),_0x11293d=new Set();for(let _0x29e074=0x0;_0x29e074<_0x51b238['length'];_0x29e074++)_0x57fc68(_0x51b238[_0x29e074],_0x51b238,_0x29e074+0x1);for(let _0x4a09ca=0x0;_0x4a09ca<_0x51b238['length'];_0x4a09ca++)_0x57fc68(_0x51b238[_0x4a09ca],_0x4992bb,0x0);const _0x220bed=new Set();for(let _0x419240=0x0;_0x419240<_0x51b238['length'];_0x419240++){const _0x4eaf58=_0x51b238[_0x419240];!_0x11293d['has'](_0x4eaf58)&&_0x4eaf58['previous']&&(_0x220bed['add'](_0x4eaf58['previous']),_0x4eaf58['previous']['next']===_0x4eaf58&&(_0x4eaf58['previous']['next']=null),_0x4eaf58['previous']=null),!_0x33ac7d['has'](_0x4eaf58)&&_0x4eaf58['next']&&(_0x220bed['add'](_0x4eaf58['next']),_0x4eaf58['next']['previous']===_0x4eaf58&&(_0x4eaf58['next']['previous']=null),_0x4eaf58['next']=null);}function _0x57fc68(_0xaef96,_0x10a24d,_0x221b30){for(let _0x2161c8=_0x221b30;_0x2161c8<_0x10a24d['length'];_0x2161c8++){const _0x2118db=_0x221247(_0xaef96,_0x10a24d[_0x2161c8]);_0x2118db&&(_0x2118db[0x0]['next']=_0x2118db[0x1],_0x2118db[0x1]['previous']=_0x2118db[0x0],_0x33ac7d['add'](_0x2118db[0x0]),_0x11293d['add'](_0x2118db[0x1]));}}function _0x221247(_0x47a4cf,_0x11e425){if(_0x47a4cf['author']['id']!==_0x11e425['author']['id'])return null;const _0x8afec2=_0x6ec67['get'](_0x47a4cf)(_0x47a4cf,_0x11e425,_0x31a7c7['get'](_0x47a4cf),_0x31a7c7['get'](_0x11e425));if(!_0x8afec2)return null;return _0x6ec67['get'](_0x11e425)(_0x47a4cf,_0x11e425,_0x31a7c7['get'](_0x47a4cf),_0x31a7c7['get'](_0x11e425))?_0x8afec2[0x1]['commentThread']&&_0x8afec2[0x1]['commentThread']['length']?null:_0x8afec2:null;}_0x220bed['size']&&this['_refreshSuggestionsChain'](_0x220bed);}['_refreshAttributeSuggestionsChain'](_0x44034c){if(0x0==_0x44034c['length'])return;const _0x215cd5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ddc84=>'attribute'==_0x1ddc84['type']&&_0x1ddc84['_isDataLoaded']),_0x304503=[],_0x450257=new Map();for(const _0x57c11b of _0x215cd5){const _0x4faaee=_0xc5c95e(_0x57c11b['attributes']);_0x450257['has'](_0x4faaee)||(_0x450257['set'](_0x4faaee,_0x304503['length']),_0x304503['push']([]));const _0x404fe5=_0x450257['get'](_0x4faaee);_0x304503[_0x404fe5]['push'](_0x57c11b);}!(function(){_0x304503['sort']((_0x553c5e,_0x1ceceb)=>{const _0x200a88=_0x553c5e[0x0]['createdAt'],_0x4f3ef5=_0x1ceceb[0x0]['createdAt'];return _0x200a88==_0x4f3ef5?_0x553c5e[0x0]['attributes']['groupId']<_0x1ceceb[0x0]['attributes']['groupId']?-0x1:0x1:_0x200a88<_0x4f3ef5?-0x1:0x1;});for(const _0x5c3401 of _0x304503)_0x5c3401['sort']((_0x424870,_0x29dda3)=>_0x424870['id']<_0x29dda3['id']?-0x1:0x1);}());for(let _0x4e6dda=0x0;_0x4e6dda<_0x304503['length'];_0x4e6dda++){if(0x0==_0x304503[_0x4e6dda]['length'])continue;const _0x26140d=[];for(let _0x3ad10c=_0x4e6dda+0x1;_0x3ad10c<_0x304503['length'];_0x3ad10c++)0x0!=_0x304503[_0x3ad10c]['length']&&_0xf68631(_0x304503[_0x4e6dda],_0x304503[_0x3ad10c])&&_0x26140d['push'](_0x3ad10c);for(const _0x8db804 of _0x26140d)_0x304503[_0x4e6dda]=_0x304503[_0x4e6dda]['concat'](_0x304503[_0x8db804]),_0x304503[_0x8db804]=[];}for(const _0x1f972c of _0x304503)for(let _0x3711bc=0x0;_0x3711bc<_0x1f972c['length'];_0x3711bc++)_0x1f972c[_0x3711bc]['next']=_0x1f972c[_0x3711bc+0x1]||null;for(const _0xcb446c of _0x304503)for(let _0x533101=0x0;_0x533101<_0xcb446c['length'];_0x533101++)_0xcb446c[_0x533101]['previous']=_0xcb446c[_0x533101-0x1]||null;function _0xf68631(_0x59dd4d,_0xd71cdb){if(_0x59dd4d[0x0]['attributes']['groupId']!==_0xd71cdb[0x0]['attributes']['groupId']&&_0x59dd4d[0x0]['author']!==_0xd71cdb[0x0]['author'])return!0x1;if(!function(_0x4c7be0,_0x147f5c){if(!_0x4c7be0['hasComments']&&!_0x147f5c['hasComments'])return!0x0;if(_0x4c7be0['hasComments']&&_0x147f5c['hasComments'])return!0x1;if(_0x4c7be0['hasComments']&&_0x147f5c['createdAt']<_0x4c7be0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x147f5c['hasComments']&&_0x4c7be0['createdAt']<_0x147f5c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x59dd4d[0x0],_0xd71cdb[0x0]))return!0x1;const _0x10af26=Bt(_0x59dd4d[0x0]['attributes'],'groupId'),_0x447bef=Bt(_0xd71cdb[0x0]['attributes'],'groupId');if(!_0x531065(_0x10af26,_0x447bef))return!0x1;return!!_0x59dd4d['every'](_0x436a84=>_0xd71cdb['some'](_0x4074e1=>_0x436a84['getFirstRange']()['isEqual'](_0x4074e1['getFirstRange']())))&&_0xd71cdb['every'](_0x57802f=>_0x59dd4d['some'](_0x847a42=>_0x57802f['getFirstRange']()['isEqual'](_0x847a42['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4dff60){const _0x29491a=Array['from'](_0x4dff60),_0x358629=this['getSuggestions']({'skipNotAttached':!0x0}),_0x55580f=_0x358629['filter'](_0x57646f=>!_0x4dff60['has'](_0x57646f)),_0x155b27=new Map(_0x29491a['map'](_0x511a9d=>[_0x511a9d,this['_suggestionFactory']['getSuggestionCallback'](_0x511a9d['type'],_0x511a9d['subType'],'join')])),_0x1fa209=new Map(_0x358629['map'](_0x29fe6=>[_0x29fe6,_0x29fe6['getRanges']()]));for(let _0x33a94d=0x0;_0x33a94d<_0x29491a['length'];_0x33a94d++){if(_0x1fc17e(this,_0x29491a[_0x33a94d],_0x29491a,_0x33a94d+0x1))return!0x0;}for(let _0x36cb1d=0x0;_0x36cb1d<_0x29491a['length'];_0x36cb1d++){if(_0x1fc17e(this,_0x29491a[_0x36cb1d],_0x55580f,0x0))return!0x0;}return!0x1;function _0x1fc17e(_0x17192d,_0x21a921,_0x5aaa6b,_0x4c2f60){for(let _0x54a1d0=_0x4c2f60;_0x54a1d0<_0x5aaa6b['length'];_0x54a1d0++){const _0x396670=_0x5aaa6b[_0x54a1d0];if(_0x396670['type']!==_0x21a921['type']||_0x396670['author']['id']!==_0x21a921['author']['id']||_0x396670['subType']!==_0x21a921['subType'])continue;if(!Pt(_0x21a921,_0x396670,['groupId']))continue;if('attribute'==_0x21a921['type']&&_0x21a921['data']['oldValue']!=_0x396670['data']['oldValue'])continue;if('attribute'==_0x21a921['type']&&_0x17192d['_isBlockAttribute'](_0x21a921['data']['key']))continue;if('formatBlock'==_0x21a921['type']){const _0x34c880=_0x17192d['editor']['model'],_0x4dc13e=_0x21a921['getContainedElement']();if(_0x4dc13e&&(_0x34c880['schema']['isObject'](_0x4dc13e)||_0x34c880['schema']['isLimit'](_0x4dc13e)))continue;}const _0x47fdf6=_0x155b27['get'](_0x21a921),_0x178910=_0x1fa209['get'](_0x21a921),_0x974b51=_0x1fa209['get'](_0x396670),_0x1ce7a5=_0x21a921['commentThread']&&_0x21a921['commentThread']['length'],_0x82be88=_0x396670['commentThread']&&_0x396670['commentThread']['length'];if(!_0x1ce7a5&&_0x47fdf6(_0x974b51,_0x178910))return _0x17192d['_joinSuggestions'](_0x396670,_0x21a921),_0x1fa209['delete'](_0x21a921),!0x0;if(!_0x82be88&&_0x47fdf6(_0x178910,_0x974b51))return _0x17192d['_joinSuggestions'](_0x21a921,_0x396670),_0x1fa209['delete'](_0x396670),!0x0;}return!0x1;}}['_joinSuggestions'](_0x482e87,_0x27dbf2){if(_0x482e87['isMultiRange']){for(const _0x142c70 of _0x27dbf2['getRanges']())_0x482e87['addRange'](_0x142c70);}else{const _0x413dda=_0x27dbf2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x482e87,this['_model']['createRange'](_0x482e87['getFirstRange']()['start'],_0x413dda));}_0x27dbf2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x540ced,_0x36e5ff){const _0x17d189=_0x540ced['startsWith']('format')||_0x540ced['startsWith']('attribute')?'FORMATTING':_0x540ced['toUpperCase']();return o(this['editor']['locale'],_0x36e5ff+'_'+_0x17d189+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0xce857=this['editor'];if(!_0xce857['ui'])return;const {ariaLiveAnnouncer:_0x2ef8ce}=_0xce857['ui'];_0x568d8c(this['_model'],({left:_0x59bcfd,entered:_0x18b0ce})=>{for(const _0x433ecb of _0x59bcfd){const {group:_0x2d3def,type:_0x9cd244}=this['_splitMarkerName'](_0x433ecb['name']);if('suggestion'===_0x2d3def){_0x2ef8ce['announce'](this['_getMarkerAnnouncementText'](_0x9cd244,'LEAVE'));break;}}for(const _0x58f83d of _0x18b0ce){const {group:_0x34e8e4,type:_0xb766ae}=this['_splitMarkerName'](_0x58f83d['name']);if('suggestion'===_0x34e8e4){_0x2ef8ce['announce'](this['_getMarkerAnnouncementText'](_0xb766ae,'ENTER'));break;}}});}['_processAttributeChanges'](_0xee21f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4acd8b=this['editor'],_0x1380d0=_0x4acd8b['model']['document']['differ']['getChanges']();if(0x0==_0x1380d0['length'])return!0x1;const _0x35b59c=[],_0xefcdd0=_0x1380d0['filter'](_0x58f9f5=>'attribute'==_0x58f9f5['type']),_0x1b4218=_0x1380d0['filter'](_0x55d581=>'insert'==_0x55d581['type']&&'$text'!=_0x55d581['name']),_0xc3192b=_0x1380d0['filter'](_0x32ab52=>'remove'==_0x32ab52['type']&&'$text'!=_0x32ab52['name']);for(const _0x474992 of _0xefcdd0)_0x35b59c['push']({'key':_0x474992['attributeKey'],'newValue':_0x474992['attributeNewValue'],'oldValue':_0x474992['attributeOldValue'],'range':Ot(_0x474992['range'],_0x4acd8b['model'])});for(const _0x178043 of _0x1b4218){const _0x52faf6=_0xc3192b['find'](_0xbd452d=>_0xbd452d['position']['isEqual'](_0x178043['position']));_0x52faf6&&_0x35b59c['push']({'key':m,'newValue':_0x178043['name'],'oldValue':_0x52faf6['name'],'range':_0x4acd8b['model']['createRangeOn'](_0x178043['position']['nodeAfter'])});}return 0x0!=_0x35b59c['length']&&this['_reduceExistingSuggestions'](_0xee21f,_0x35b59c);}['_processAttributeSuggestions'](_0x3aae76){let _0x263795=!0x1;const _0x5d0375=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x26cbd7=>_0x26cbd7['data']['newRange']&&_0x26cbd7['name']['startsWith']('suggestion:attribute:'));for(const _0x31b3aa of _0x5d0375){const {subType:_0x17b7b8,id:_0x4b1045}=this['_splitMarkerName'](_0x31b3aa['name']),_0x530476=_0x17b7b8['split']('|')[0x0];for(const _0x35cbca of this['getSuggestions']({'skipNotAttached':!0x0}))_0x35cbca['id']!=_0x4b1045&&'attribute'==_0x35cbca['type']&&_0x35cbca['data']&&_0x35cbca['data']['key']==_0x530476&&_0x35cbca['getFirstRange']()['isIntersecting'](_0x31b3aa['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x35cbca,_0x31b3aa['data']['newRange'],_0x3aae76),_0x263795=!0x0);}return _0x263795;}['_recordAttributeChanges'](_0x30117c){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x30117c();}['_isRegisteredAttribute'](_0x24214a){const _0x404d38=this['_isBlockAttribute'](_0x24214a),_0x2959d1=this['_inlineAttributeKeys']['has'](_0x24214a);return _0x404d38||_0x2959d1;}['_reduceExistingSuggestions'](_0x1b849a,_0x368014){if(0x0==_0x368014['length'])return!0x1;let _0x2f1f0b=!0x1;for(const _0xccb078 of _0x368014){const _0xfea81b=this['_findSuggestions'](_0xccb078['range'],'attribute')['filter'](_0x468bbe=>!_0x468bbe['meta']['isNextTo'])['map'](_0x57fdf3=>_0x57fdf3['suggestion']),_0xee3120=_0xc5c95e({'newValue':_0xccb078['newValue']});_0xfea81b['filter'](_0x799e61=>{const [_0x5ba1ce,_0x214392]=_0x799e61['subType']['split']('|');return _0x5ba1ce==_0xccb078['key']&&_0x214392!=_0xee3120;})['forEach'](_0x3669e2=>{this['_reduceSuggestionAttributeRange'](_0x3669e2,_0xccb078['range'],_0x1b849a),_0x2f1f0b=!0x0;});}return _0x2f1f0b;}['_reduceSuggestionAttributeRange'](_0x4a3c0e,_0x39d7ae,_0x41239c){const _0x208228=_0x4a3c0e['getFirstRange']()['getDifference'](_0x39d7ae);0x0!==_0x208228['length']?0x1!==_0x208228['length']?this['_breakSuggestionMarker'](_0x4a3c0e,_0x39d7ae['start'],_0x39d7ae['end']):this['_setSuggestionRange'](_0x4a3c0e,_0x208228[0x0]):_0x41239c['removeMarker'](_0x4a3c0e['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5b1e15){this['_editor']=_0x5b1e15,this['_model']=_0x5b1e15['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xe52337,_0x36de1f,_0x1633bf,_0x14baef,_0x4c5ade,_0x1da1e7){return new u(this['_model'],{'type':_0xe52337,'subType':_0x36de1f,'id':_0x1633bf,'author':_0x14baef,'creator':_0x14baef,'attributes':_0x4c5ade,'onAttributesChange':_0x1da1e7,'onAccept':(..._0x3f7fe0)=>this['getSuggestionCallback'](_0xe52337,_0x36de1f,'accept')(..._0x3f7fe0),'onDiscard':(..._0xf2cb14)=>this['getSuggestionCallback'](_0xe52337,_0x36de1f,'discard')(..._0xf2cb14)});}['registerCustomCallback'](_0x4589aa,_0x5a16b6,_0x20ead8,_0x403fcf){const _0x5e5fc2=_0x4589aa+':'+_0x5a16b6+':'+_0x20ead8;this['_customCallbacks']['set'](_0x5e5fc2,_0x403fcf);}['getSuggestionCallback'](_0x43e5fd,_0x2e7279,_0x5b43f2){const _0x4207bb=_0x43e5fd+':'+_0x2e7279+':'+_0x5b43f2;return this['_customCallbacks']['get'](_0x4207bb)||this['_defaultCallbacks']['get'](_0x43e5fd+':'+_0x5b43f2);}['_registerDefaultCallbacks'](){const _0x1867d0=()=>!0x1,_0x3b72cc=_0x537739=>{_0x537739['sort']((_0xe6b1de,_0x1fa29b)=>_0xe6b1de['start']['isBefore'](_0x1fa29b['start'])?0x1:-0x1),this['_model']['change'](_0x387b6f=>{for(const _0x2142ba of _0x537739){let _0x568207;_0x568207=_0x2142ba['end']['isAtEnd']&&_0x2142ba['end']['parent']==_0x2142ba['start']['nodeAfter']?_0x387b6f['createSelection'](_0x2142ba['start']['nodeAfter'],'on'):_0x387b6f['createSelection'](_0x2142ba),this['_model']['deleteContent'](_0x568207,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x431d41=(_0x29ea67,_0x3250a1)=>{_0x3250a1&&this['_model']['change'](_0x3b0a9c=>{const {commandName:_0x2b761a,commandParams:_0x21ed67=[]}=_0x3250a1,_0x985c98=_0x29ea67['map'](_0x477783=>(Tt(_0x477783)&&(_0x477783=this['_model']['createRange'](_0x477783['end'])),_0x477783))['filter'](_0x3988f1=>'$graveyard'!==_0x3988f1['root']['rootName']);if(_0x985c98['length']<0x1)return;const _0x203b0d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5232af=>_0xbaab6f['fromRange'](_0x5232af));_0x3b0a9c['setSelection'](_0x985c98);for(const _0x16a24c of this['_editor']['commands']['commands']())_0x16a24c['refresh']();_0x21ed67['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2b761a,..._0x21ed67);const _0xe55eb6=_0x203b0d['filter'](_0x15f5af=>'$graveyard'!=_0x15f5af['root']['rootName']);_0xe55eb6['length']>0x0&&_0x3b0a9c['setSelection'](_0xe55eb6);for(const _0x4cb1e8 of _0x203b0d)_0x4cb1e8['detach']();});},_0x274788=(_0x3c9759,_0x3a2f5d)=>0x1==_0x3c9759['length']&&0x1==_0x3a2f5d['length']&&_0x3c9759[0x0]['end']['isEqual'](_0x3a2f5d[0x0]['start']),_0x4b1cd8=(_0x1a2227,_0x3f6d87,_0x5baf4f,_0x14da95)=>Ft(_0x1a2227,_0x3f6d87,_0x5baf4f,_0x14da95,this['_model'])?[_0x1a2227,_0x3f6d87]:Ft(_0x3f6d87,_0x1a2227,_0x14da95,_0x5baf4f,this['_model'])?[_0x3f6d87,_0x1a2227]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1867d0),this['_defaultCallbacks']['set']('insertion:discard',_0x3b72cc),this['_defaultCallbacks']['set']('insertion:join',_0x274788),this['_defaultCallbacks']['set']('insertion:chain',_0x4b1cd8),this['_defaultCallbacks']['set']('deletion:accept',_0x3b72cc),this['_defaultCallbacks']['set']('deletion:discard',_0x1867d0),this['_defaultCallbacks']['set']('deletion:join',_0x274788),this['_defaultCallbacks']['set']('deletion:chain',_0x4b1cd8),this['_defaultCallbacks']['set']('formatInline:accept',_0x431d41),this['_defaultCallbacks']['set']('formatInline:discard',_0x1867d0),this['_defaultCallbacks']['set']('formatInline:join',_0x274788),this['_defaultCallbacks']['set']('formatInline:chain',_0x1867d0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x431d41),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1867d0),this['_defaultCallbacks']['set']('formatBlock:join',_0x274788),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1867d0),this['_defaultCallbacks']['set']('attribute:accept',_0x1867d0),this['_defaultCallbacks']['set']('attribute:discard',(_0x5ba5e3,_0x4f82ae)=>{if(!_0x4f82ae)return;const _0x24f08c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x33b802=>{if(_0x4f82ae['key']==m)for(const _0xe29b66 of _0x5ba5e3){const _0x2560cd=_0xe29b66['start']['nodeAfter'],_0x596f9d=_0x4f82ae['oldValue'];_0x33b802['rename'](_0x2560cd,_0x596f9d);}else{if(_0x24f08c['_isBlockAttribute'](_0x4f82ae['key'])){for(const _0x43b326 of _0x5ba5e3)void 0x0!==_0x4f82ae['oldValue']?_0x33b802['setAttribute'](_0x4f82ae['key'],_0x4f82ae['oldValue'],_0x43b326['start']['nodeAfter']):_0x33b802['removeAttribute'](_0x4f82ae['key'],_0x43b326['start']['nodeAfter']);}else{for(const _0x290aea of _0x5ba5e3)_0x4f82ae['oldValue']?_0x33b802['setAttribute'](_0x4f82ae['key'],_0x4f82ae['oldValue'],_0x290aea):_0x33b802['removeAttribute'](_0x4f82ae['key'],_0x290aea);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x274788);}}function Rt(_0x382884,_0x410cf1,_0x2b429a){for(const _0x4e0ac4 of _0x410cf1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4e0ac4['root']==_0x4e0ac4)return!0x1;if(!_0x2b429a['containsItem'](_0x4e0ac4))return!0x1;if(_0x382884['isObject'](_0x4e0ac4)||_0x382884['isLimit'](_0x4e0ac4))return!0x0;}return!0x1;}function Tt(_0x2865e7){return _0x2865e7['end']['parent']==_0x2865e7['start']['nodeAfter']&&_0x2865e7['end']['isAtStart'];}function Et(_0x4b3aee,_0x2ea66d,_0x2e8b81,_0x491338){const _0x169be6=_0x1856a2=>!_0x1856a2['item']['is']('$textProxy')&&!_0x491338['isObject'](_0x1856a2['item']),_0x5961cb=_0x4b3aee['start']['getLastMatchingPosition'](_0x169be6),_0x10ee8b=_0x4b3aee['end']['getLastMatchingPosition'](_0x169be6,{'direction':'backward'});return(!_0x4b3aee['start']['isEqual'](_0x5961cb)||!_0x4b3aee['end']['isEqual'](_0x10ee8b))&&(_0x5961cb['isBefore'](_0x10ee8b)?_0x2e8b81['updateMarker'](_0x2ea66d,{'range':_0x2e8b81['createRange'](_0x5961cb,_0x10ee8b)}):_0x2e8b81['removeMarker'](_0x2ea66d),!0x0);}function Vt(_0x25dd85){return _0xc5c95e(_0x25dd85);}function Ut(_0x214d75){const _0x11c76a=_0x214d75['start']['nodeAfter'];return _0x11c76a&&_0x11c76a['is']('element');}function Ot(_0x34b17e,_0x1446a1){return null==_0x34b17e['end']['nodeBefore']&&_0x34b17e['end']['parent']==_0x34b17e['start']['nodeAfter']?Gt(_0x34b17e['start']['nodeAfter'],_0x1446a1):_0x34b17e;}function Gt(_0x11636e,_0x16bfb2){const _0x22d488=_0x16bfb2['schema']['isObject'](_0x11636e)||_0x16bfb2['schema']['isSelectable'](_0x11636e);return _0x16bfb2['createRange'](_0x16bfb2['createPositionAt'](_0x11636e,'before'),_0x22d488?_0x16bfb2['createPositionAfter'](_0x11636e):_0x16bfb2['createPositionAt'](_0x11636e,'end'));}function Ft(_0x5415b6,_0x5926f1,_0x53f165,_0x50a13c,_0x21441a){if(!Pt(_0x5415b6,_0x5926f1))return!0x1;if(_0x53f165['end']['isEqual'](_0x50a13c['start']))return!0x0;if(_0x5415b6['type']!=_0x5926f1['type'])return!0x1;if(!_0x53f165['end']['isTouching'](_0x50a13c['start']))return!0x1;const _0x110f68=_0x21441a['createRange'](_0x53f165['end'],_0x50a13c['start'])['getWalker']();for(const _0xd835e0 of _0x110f68)if(['elementStart','elementEnd']['includes'](_0xd835e0['type'])&&_0x21441a['schema']['isLimit'](_0xd835e0['item']))return!0x1;return!0x0;}function Pt(_0x48f5c8,_0x2af86d,_0x378bcf=[]){return!(!_0x48f5c8['_isDataLoaded']||!_0x2af86d['_isDataLoaded'])&&_0x531065(Bt(_0x48f5c8['attributes'],_0x378bcf),Bt(_0x2af86d['attributes'],_0x378bcf));}function Lt(_0x3e18c4,_0x428000){const _0x470dbc=Ht(_0x3e18c4['attributes']),_0x3000ae=Ht(_0x428000);if(!_0x3e18c4['_isDataLoaded'])return!0x1;for(const _0x4bcef4 of Object['keys'](_0x3000ae))if(!_0x531065(_0x470dbc[_0x4bcef4],_0x3000ae[_0x4bcef4]))return!0x1;return!0x0;}function Ht(_0x567202){const _0x22aece=Object['assign']({},_0x567202);return delete _0x22aece['skipNestingCheck'],delete _0x22aece['tablePasteChainId'],_0x22aece;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xdeb2a1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x226c03,_0x472370,_0x516486,_0x3d93f8){super(),this['model']=_0x472370,this['view']=_0x516486,this['commentThreadController']=_0x3d93f8,this['_editor']=_0x226c03,this['_acceptCommand']=_0x226c03['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x226c03['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x41669c,_0x108bf7)=>_0x41669c||_0x108bf7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x516a2e=>_0x516a2e&&this['_editor']['model']['canEditAt'](_0x472370['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4eeb57=>_0x4eeb57&&this['_editor']['model']['canEditAt'](_0x472370['getRanges']())),this['_pendingAction']=null,_0x516486['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x516486,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x516486,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x516486,'change:isDirty',()=>{_0x516486['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 _0x4cc5ed=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4cc5ed);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x34149b{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x211249,_0x21ef97,_0x54036f,_0x435d86){super(_0x211249),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x21ef97['authoredAt']),this['bind']('authoredAt')['to'](_0x21ef97),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x21ef97,this['_localUser']=_0x54036f,this['_config']=_0x435d86,_0x435d86['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x480177}=this['_config'];this['commentsListView']=new _0x480177(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',_0x1f7f36=>_0x1f7f36+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x131591,_0x4b7afa)=>_0x131591||!!_0x4b7afa);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2c7742}=this['_config'],_0xac7b2c=new _0x2c7742(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3f8b7f=_0xac7b2c['commentInputView'];return _0xac7b2c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3f8b7f,'value',(_0x11d56c,_0x39a406,_0x11f54a)=>!!_0x11f54a||_0x11d56c&&!_0x39a406),_0x3f8b7f['on']('submit',(_0x5b70e1,_0x5da1d0)=>{this['fire']('addComment',_0x5da1d0),_0x3f8b7f['editor']['setData']('');}),_0x3f8b7f['on']('cancel',()=>this['focus']()),_0x3f8b7f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xac7b2c;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x505632,_0x493396,_0x322657,_0x3ee837){super(_0x505632,_0x493396,_0x322657,_0x3ee837),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x16ea40=>_0x16ea40&&_0x16ea40[0x0]?_0x16ea40[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x38e919,_0xf9400a)=>{let _0x364d31='';for(const _0x4db11e of _0x38e919)_0x364d31+='<p>'+ds(_0x4db11e['content'],_0x4db11e['color'])+'</p>';return _0xf9400a?_0x364d31:_0x2c75f0(_0x364d31,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x505632,'Accept\x20suggestion'),_0x572377['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x505632,'Discard\x20suggestion'),_0x572377['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x2b4feb(_0x505632,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x32ba14=this['bindTemplate'],_0x39310c=[{'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']}},{'tag':'time','attributes':{'datetime':_0x32ba14['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x32ba14['to']('authoredAt',_0x4691c6=>this['_config']['formatDateTime'](_0x4691c6))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x39310c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1ae4ed={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x32ba14['if']('isActive','ck-suggestion-wrapper--active'),_0x32ba14['to']('type',_0x1176e1=>'ck-suggestion-'+_0x1176e1),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x39310c}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1ae4ed['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x1ae4ed;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x45de7f,_0x1f2e41,_0x310c40)=>{this['_descriptionElement']['innerHTML']=_0x310c40;});}['_createButton'](_0xee4745,_0x1a54e6,_0x4c3a03,_0x348f56,_0x2a94d4){const _0x570e14=new _0x35d3e3(this['locale']);return _0x570e14['set']({'label':_0xee4745,'icon':_0x1a54e6,'tooltip':!0x0,'tooltipPosition':_0x2a94d4}),_0x570e14['extendTemplate']({'attributes':{'class':_0x4c3a03}}),_0x570e14['on']('execute',()=>{this['fire'](_0x348f56,this['_model']['id']);}),_0x570e14;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x13fc28,_0x4efa46){let _0x2f4fea='';return _0x2f4fea+=_0x13fc28['split']('*')['map']((_0x5a4373,_0x4a568a)=>_0x4a568a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5a4373)+'</span>':us(_0x5a4373))['join'](''),_0x4efa46&&(_0x2f4fea+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4efa46['value']+'\x22\x20title=\x22'+_0x4efa46['title']+'\x22></span>'),_0x2f4fea;}function us(_0x2f41aa){const _0x3b4146=document['createElement']('span');return _0x3b4146['innerText']=_0x2f41aa,_0x3b4146['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x3557c2{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x56c2fc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x3e6291){super(_0x3e6291),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4f1e19=this['editor']['config'];_0x4f1e19['define']('trackChanges.SuggestionThreadView',ne),_0x4f1e19['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4f1e19['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x618b94,_0x56a83c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x7dc61,_0x2d070]of this['_handleControllerBuffer']){const _0xbda4b5=this['_suggestionToController']['has'](_0x7dc61);_0xbda4b5||_0x2d070?_0xbda4b5&&_0x2d070&&this['_destroyController'](_0x7dc61):this['_initializeController'](_0x7dc61);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x618b94,_0x56a83c);}['init'](){const _0xf069dd=this['editor'],_0x273e1f=_0xf069dd['plugins']['get']('TrackChangesEditing'),_0x1d045c=_0xf069dd['plugins']['get']('Annotations'),_0x40b364=_0xf069dd['plugins']['get']('EditorAnnotations'),_0x37527e=_0xf069dd['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x40b364['addSourceCollector'](()=>{const _0x4abe48=[];for(const [_0x33759e,_0x3efb11]of Array['from'](this['_suggestionToController'])){const _0x5eb3a1=_0x33759e['getAllAdjacentSuggestions'](),_0x555a17=[];for(const _0x3e481a of _0x5eb3a1){if(!_0x3e481a['isInContent'])continue;if(_0x3e481a['isMultiRange']){_0x555a17['push'](..._0x3e481a['getRanges']());continue;}const _0x11bbf6=_0x3e481a['getFirstRange']();if(_0x555a17['length']>0x0){const _0x3b1427=_0x555a17[0x0]['getJoined'](_0x11bbf6);if(_0x3b1427){_0x555a17[0x0]=_0x3b1427;continue;}}_0x555a17['push'](_0x11bbf6);}_0x4abe48['push']([_0x3efb11['view'],_0x555a17]);}return _0x4abe48;}),this['listenTo'](_0x273e1f,'suggestionLoaded',(_0xd427eb,_0x3ecd7d)=>{this['listenTo'](_0x3ecd7d,'change:previous',(_0x3eeeb8,_0x5e4355,_0x50eeaa,_0x56562b)=>{_0x3ecd7d['isInContent']&&(null==_0x50eeaa?(this['_updateController'](_0x56562b['head']),this['_handleSuggestionControllerDelayed'](_0x3ecd7d,!0x1)):(this['_updateController'](_0x50eeaa['head']),null==_0x56562b&&this['_handleSuggestionControllerDelayed'](_0x3ecd7d,!0x0)));}),null!==_0x3ecd7d['previous']?this['_updateController'](_0x3ecd7d['head']):this['_handleSuggestionControllerDelayed'](_0x3ecd7d,!0x1);}),this['listenTo'](_0x273e1f,'suggestionUnloaded',(_0x38ab2d,_0x5e5799,_0x1daf4c)=>{this['stopListening'](_0x5e5799,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5e5799),this['_suggestionToController']['has'](_0x5e5799)&&this['_destroyController'](_0x5e5799),_0x1daf4c&&this['_updateController'](_0x1daf4c['head']);}),this['listenTo'](_0x273e1f,'suggestionChanged',(_0x571b14,_0x27ee1c)=>{this['_updateController'](_0x27ee1c);}),this['listenTo'](_0x1d045c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x37527e,'addComment',(_0x4cec19,{threadId:_0x417fe7,isFromAdapter:_0x4a2bee})=>{if(_0x4a2bee||!_0x273e1f['hasSuggestion'](_0x417fe7))return;const _0xac2563=_0x273e1f['getSuggestion'](_0x417fe7);this['_suggestionToController']['get'](_0xac2563)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x45c935=this['editor']['plugins']['get']('Annotations'),_0x16cdea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30ab6f=Array['from'](_0x45c935['activeAnnotations'],_0x30921c=>_0x30921c['innerView'])['filter'](_0x569dcf=>this['_viewToController']['has'](_0x569dcf)),_0x38add1=[];for(const _0x1e1643 of _0x30ab6f){const _0x2f1abf=this['_viewToController']['get'](_0x1e1643)['model']['getAllAdjacentSuggestions']();_0x38add1['push'](..._0x2f1abf['reduce']((_0x12e80b,_0x16a91b)=>[..._0x12e80b,..._0x16a91b['getMarkerNames']()],[]));}_0x16cdea['activeMarkers']=_0x38add1;}['_addUIComponentsToFactory'](){const _0x74ffb2=this['editor'],_0x4819f6=_0x74ffb2['locale'],_0x218b00=o(_0x4819f6,'Track\x20changes'),_0x5b24b0=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x218b00,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4819f6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4819f6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4819f6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4819f6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3b5a1c of _0x5b24b0)if(ae(_0x3b5a1c)){const _0x2a2e65=_0x74ffb2['commands']['get'](_0x3b5a1c['model']['commandName']);_0x3b5a1c['model']['bind']('isOn','isEnabled')['to'](_0x2a2e65,'value','isEnabled');}_0x74ffb2['ui']['componentFactory']['add']('trackChanges',_0x163392=>this['_createToolbarButton'](_0x163392,_0x5b24b0,_0x218b00)),_0x74ffb2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1c2994=>this['_createMenuBarMenu'](_0x1c2994,_0x5b24b0,_0x218b00));}['_createToolbarButton'](_0x388a2e,_0x55e0b7,_0x438fe3){const _0x10c324=zt(_0x388a2e,Zt),_0xd182f6=this['editor']['commands']['get']('trackChanges');_0x10c324['buttonView']['set']({'tooltip':_0x438fe3,'label':_0x438fe3,'icon':ie}),_0x10c324['buttonView']['bind']('isOn')['to'](_0xd182f6,'value'),_0x10c324['buttonView']['on']('execute',()=>{_0xd182f6['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x10c324,_0x55e0b7,{'role':'menu'});const _0xc7afa0=[];for(const _0x2fea56 of _0x55e0b7)ae(_0x2fea56)&&_0xc7afa0['push'](this['editor']['commands']['get'](_0x2fea56['model']['commandName']));const _0x3e0ce1=_0x10c324['buttonView'];return _0x3e0ce1['actionView']['unbind']('isEnabled'),_0x3e0ce1['arrowView']['unbind']('isEnabled'),_0x3e0ce1['actionView']['bind']('isEnabled')['to'](_0xd182f6,'isEnabled'),_0x3e0ce1['arrowView']['bind']('isEnabled')['toMany'](_0xc7afa0,'isEnabled',(..._0xa8cefb)=>_0xa8cefb['some'](_0x15ba2e=>_0x15ba2e)),_0x10c324['on']('execute',_0x1ad4c0=>{this['editor']['execute'](_0x1ad4c0['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x10c324;}['_createMenuBarMenu'](_0x1c00e7,_0x262096,_0xd1e5e5){const _0x2557ef=new Kt(_0x1c00e7),_0x414c96=this['editor']['commands']['get']('trackChanges');_0x2557ef['buttonView']['set']({'label':_0xd1e5e5,'icon':ie});const _0x359a95=new Qt(_0x1c00e7);for(const _0x36a884 of _0x262096){if('separator'==_0x36a884['type']){_0x359a95['items']['add'](new Jt(_0x1c00e7));continue;}const _0x589de5=new Xt(_0x1c00e7,_0x2557ef),_0x25f1d7=new Yt(_0x1c00e7),_0x337863=_0x36a884['model'];_0x25f1d7['bind'](...Object['keys'](_0x337863))['to'](_0x337863),_0x25f1d7['delegate']('execute')['to'](_0x2557ef),_0x25f1d7['on']('execute',()=>{this['editor']['execute'](_0x337863['commandName']),this['editor']['editing']['view']['focus']();}),_0x589de5['children']['add'](_0x25f1d7),_0x359a95['items']['add'](_0x589de5);}return _0x2557ef['bind']('isEnabled')['to'](_0x414c96,'isEnabled'),_0x2557ef['panelView']['children']['add'](_0x359a95),_0x2557ef;}['_initializeController'](_0x5f36df){const _0x48fe0e=this['editor'],_0x5cb8ad=_0x48fe0e['config'],_0x5ccd4e=_0x48fe0e['plugins']['get']('Annotations'),_0xc4f08d=_0x48fe0e['plugins']['get']('CommentsRepository'),_0x4da837=_0x48fe0e['plugins']['get']('EditorAnnotations'),_0x1a6801=_0x48fe0e['plugins']['get'](_0x56c2fc)['me'],_0x378453=_0x5cb8ad['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xd398f2,CommentThreadInputView:_0x5860af}=_0x48fe0e['plugins']['get']('CommentsUI');let _0x557b04,_0x8f69ce;this['_annotationViews']['has'](_0x5f36df['id'])?(_0x8f69ce=this['_annotationViews']['get'](_0x5f36df['id']),_0x557b04=_0x8f69ce['mainView']):(_0x557b04=new _0x378453(_0x48fe0e['locale'],_0x5f36df,_0x1a6801,{'disableComments':this['_disableComments'],'editorConfig':_0x5cb8ad['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5cb8ad['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5cb8ad['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5cb8ad['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x48fdba(_0x5cb8ad['get']('locale')),'CommentView':_0x5cb8ad['get']('comments')['CommentView'],'CommentsListView':_0xd398f2,'CommentThreadInputView':_0x5860af}),_0x557b04['acceptButton']['on']('execute',()=>{_0x48fe0e['editing']['view']['focus']();}),_0x557b04['discardButton']['on']('execute',()=>{_0x48fe0e['editing']['view']['focus']();}),_0x8f69ce=_0x5ccd4e['createAnnotationView'](this['editor']['locale'],_0x557b04),_0x8f69ce['bind']('isDirty')['to'](_0x557b04,'isDirty'),_0x8f69ce['bind']('length')['to'](_0x557b04),_0x8f69ce['bind']('type')['to'](_0x557b04,'type',_0x3d452a=>'suggestion-'+_0x3d452a),this['_annotationViews']['set'](_0x5f36df['id'],_0x8f69ce));const _0x3dd19c=_0xc4f08d['createCommentThreadController'](_0x5f36df['commentThread'],_0x557b04),_0x2539e4=new oe(_0x48fe0e,_0x5f36df,_0x557b04,_0x3dd19c),_0x4e2318=_0x5f36df['getAllAdjacentSuggestions']()['filter'](_0x44c576=>_0x44c576['isInContent']);_0x557b04['descriptionParts']=_0x48fe0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4e2318),this['_suggestionToController']['set'](_0x5f36df,_0x2539e4),this['_viewToController']['set'](_0x557b04,_0x2539e4);const _0xe902da=_0x5ccd4e['createAnnotation']({'view':_0x8f69ce,'target':()=>{const _0x35ef1b=[],_0x58c885=_0x5f36df['getAllAdjacentSuggestions']()['filter'](_0x5d470b=>_0x5d470b['isInContent']);for(const _0x36f271 of _0x58c885)_0x35ef1b['push'](..._0x36f271['getMarkers']());return _0xa2bf9d(_0x48fe0e['editing'],_0x35ef1b);},'type':()=>'suggestion-'+_0x2539e4['view']['type']});_0xc4f08d['_bindAnnotationToEditors'](_0x557b04,_0xe902da),_0x5ccd4e['add'](_0xe902da),_0x4da837['registerAnnotation'](_0xe902da);}['_destroyController'](_0x38a720){const _0x37f0c6=this['editor']['plugins']['get']('CommentsRepository'),_0x3004e1=this['editor']['plugins']['get']('Annotations'),_0x5e51e2=this['_suggestionToController']['get'](_0x38a720),_0x3bff29=_0x5e51e2['view'],_0x4cb111=_0x3004e1['getByInnerView'](_0x3bff29);_0x37f0c6['_unbindEditors'](_0x3bff29),_0x4cb111&&_0x3004e1['remove'](_0x4cb111),this['_suggestionToController']['delete'](_0x38a720),this['_viewToController']['delete'](_0x3bff29),_0x5e51e2['destroy']();}['_updateController'](_0x668ae7){if(!_0x668ae7['isInContent']||!this['_suggestionToController']['has'](_0x668ae7))return;const _0x30ba00=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47462f=this['_suggestionToController']['get'](_0x668ae7),_0xd1f821=_0x668ae7['getAllAdjacentSuggestions']();_0x47462f['view']['descriptionParts']=_0x30ba00['descriptionFactory']['getDescriptions'](_0xd1f821);}['destroy'](){for(const _0x7be7f3 of this['_suggestionToController']['keys']())this['_destroyController'](_0x7be7f3);for(const _0x1ccc12 of this['_annotationViews']['values']())_0x1ccc12['mainView']['destroy']();super['destroy']();}}function ae(_0x335846){return'model'in _0x335846;}class k extends _0x3557c2{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x378309){this['editor']['plugins']['get'](p)['adapter']=_0x378309;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x320d33){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x320d33);}['getSuggestions']({skipNotAttached:_0x2f8143=!0x1,toJSON:_0x5e26d5=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2f8143,'toJSON':_0x5e26d5});}['getSuggestion'](_0x169d22){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x169d22);}}const T=['Pagination'];class P extends _0x3557c2{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4c602c=this['editor'];if(_0x4c602c['config']['define']('trackChangesData.editorCreator',_0x46e0e8=>{const _0x385a79=_0x4c602c['model']['document']['getRootNames']()['reduce']((_0x2316f2,_0x16e4f5)=>(_0x2316f2[_0x16e4f5]='',_0x2316f2),{});return _0x4c602c['constructor']['create'](_0x385a79,_0x46e0e8);}),'function'!=typeof _0x4c602c['config']['get']('trackChangesData')['editorCreator'])throw new _0x1fa0a5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5ebb6b){return N(this['editor'],!0x0,_0x5ebb6b);}['getDataWithDiscardedSuggestions'](_0x4b1b1b){return N(this['editor'],!0x1,_0x4b1b1b);}}class D extends _0x3557c2{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x347b83){super(_0x347b83),this['result']='end';}['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 v(_0x5a1cc1){return void 0x0!==_0x5a1cc1['getRootsAttributes'];}async function N(_0x18af01,_0x566aac,_0x186dcc){const _0x36ec49=_0x2fb797(_0x18af01,T);_0x36ec49['plugins']['push'](p,D),_0x36ec49['rootsAttributes']=v(_0x18af01)?_0x18af01['getRootsAttributes']():void 0x0;const _0x3a05e8=document['createDocumentFragment'](),_0x4145ca=_0x18af01['config']['get']('trackChangesData')['editorCreator'],_0x578de1=await _0x4145ca(_0x36ec49,()=>function(_0x1820de){const _0x21bf4e=document['createElement']('div');return _0x1820de['appendChild'](_0x21bf4e),_0x21bf4e;}(_0x3a05e8));!function(_0x176497,_0x22ef4f){const _0x33919b=_0x176497['model']['document']['getRootNames']()['reduce']((_0x40afdf,_0x484ff4)=>(_0x40afdf[_0x484ff4]=_0x176497['data']['get']({'rootName':_0x484ff4}),_0x40afdf),{}),_0x5b11b9=_0x176497['plugins']['get']('Users')['users']['map'](_0x5534d9=>({'id':_0x5534d9['id'],'name':_0x5534d9['name']})),_0x548d77=_0x176497['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x32a938=_0x176497['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x43a6f9=_0x22ef4f['plugins']['get']('Users'),_0x217400=_0x22ef4f['plugins']['get']('TrackChangesEditing'),_0x51cc8b=_0x22ef4f['plugins']['get']('CommentsRepository');for(const _0x589dc0 of _0x5b11b9)_0x43a6f9['getUser'](_0x589dc0['id'])||_0x43a6f9['addUser'](_0x589dc0);_0x43a6f9['me']||_0x43a6f9['useAnonymousUser']();for(const _0x2268fb of _0x32a938)_0x51cc8b['addCommentThread'](_0x2268fb);for(const _0x3499c9 of _0x548d77)_0x217400['addSuggestionData'](_0x3499c9);_0x22ef4f['data']['set'](_0x33919b);}(_0x18af01,_0x578de1),_0x578de1['execute'](_0x566aac?'acceptAllSuggestions':'discardAllSuggestions');const _0x1a1e9e=v(_0x578de1)?_0x578de1['getFullData'](_0x186dcc):_0x578de1['data']['get'](_0x186dcc);return await _0x578de1['destroy'](),_0x1a1e9e;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x510d68,PendingActions as _0x4aa1aa,icons as _0xdbc382}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x8e966e,ObservableMixin as _0x2ed5b8,uid as _0x5c3a54,insertToPriorityArray as _0x3486e9,priorities as _0x511794,logWarning as _0x26f347,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2b1059,View as _0x5efc42,ButtonView as _0x1b17ab,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x47cb12,hashObject as _0x166b46,surroundingMarkersDetector as _0xdd14e5,trimHtml as _0x5d82ac,UserView as _0x3e8574,getDateTimeFormatter as _0x3059cf,getAllMarkersDomElementsSorted as _0x202835,sanitizeEditorConfig as _0x585d8d}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x210231,LiveRange as _0x1c4270,LivePosition as _0x318b9c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3f97fa,toWidget as _0x4591c1}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x55fab6,set as _0x3119ef,isEqual as _0x4426d6,unset as _0xb9d03,omit as Bt}from'lodash-es';import{Delete as _0x2e489a,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4ad84c,ShiftEnter as _0x4a1986}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0xf6edaf,_0x2fc6fe){super(_0xf6edaf),this['_enabledCommands']=_0x2fc6fe,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 _0x236e0b of this['editor']['commands']['commands']())_0x236e0b['affectsData']&&!this['_enabledCommands']['has'](_0x236e0b)&&_0x236e0b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2b0bd2 of this['editor']['commands']['commands']())_0x2b0bd2['affectsData']&&!this['_enabledCommands']['has'](_0x2b0bd2)&&_0x2b0bd2['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x594b66,_0x2088aa){super(_0x594b66),this['_suggestions']=_0x2088aa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3b52fc){const _0x5094b2=this['_suggestions']['get'](_0x3b52fc);if(!_0x5094b2)throw new _0x8e966e('track-changes-accept-suggestion-not-found',this);const _0xfdb8d2=_0x5094b2['getRanges']();this['editor']['model']['canEditAt'](_0xfdb8d2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5094b2);}}class B extends ts{['_suggestions'];constructor(_0x4d4a28,_0x9f4ceb){super(_0x4d4a28),this['_suggestions']=_0x9f4ceb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x277f45){const _0x37a236=this['_suggestions']['get'](_0x277f45);if(!_0x37a236)throw new _0x8e966e('track-changes-discard-suggestion-not-found',this);const _0x5afa62=_0x37a236['getRanges']();this['editor']['model']['canEditAt'](_0x5afa62)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x37a236);}}function ss(_0x2fa003){return _0x2fa003['sort']((_0x99372e,_0x10f0fe)=>'deletion'==_0x99372e['type']&&'deletion'!=_0x10f0fe['type']?-0x1:'deletion'!=_0x99372e['type']&&'deletion'==_0x10f0fe['type']?0x1:0x0);}function to(_0x119c83,_0x4923ad){let _0x3e3771,_0x39859f=0x0;const _0x4cc675=[],_0x16db10=_0x4923ad['schema'];for(;_0x39859f<_0x119c83['length'];){const _0x2fba40=_0x119c83[_0x39859f],_0x2226d2=_0x119c83[_0x39859f+0x1];_0x3e3771||(_0x3e3771=_0x4923ad['createPositionBefore'](_0x2fba40)),co(_0x4923ad,_0x2fba40,_0x2226d2)||(_0x4cc675['push'](_0x4923ad['createRange'](_0x3e3771,_0x16db10['isObject'](_0x2fba40)?_0x4923ad['createPositionAfter'](_0x2fba40):_0x4923ad['createPositionAt'](_0x2fba40,'end'))),_0x3e3771=null),_0x39859f++;}return _0x4cc675;}function co(_0x11407d,_0x2b4f2d,_0x2672cc){if(!_0x2672cc)return!0x1;const _0x1a8f54=_0x11407d['createPositionAfter'](_0x2b4f2d),_0x274238=_0x11407d['createPositionBefore'](_0x2672cc);return _0x1a8f54['isTouching'](_0x274238);}function rs(_0x1d3364,_0xda0e0f,_0x219172){for(;_0x219172['length'];){const _0x38df65=_0x219172['splice'](0x0,0x64);_0x1d3364['change'](()=>{for(const _0x5f3e13 of _0x38df65)_0x5f3e13['isInContent']&&_0xda0e0f['execute'](_0x5f3e13['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x54640f,_0x3a2ebb,_0xa2240e){super(_0x54640f),this['_command']=_0x3a2ebb,this['_suggestions']=_0xa2240e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3ffb9b=Array['from'](this['_suggestions']['values']())['some'](_0x226e8f=>_0x226e8f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3ffb9b;}['execute'](){const _0x4321a5=ss(Array['from'](this['_suggestions']['values']()));for(const _0x251a13 of _0x4321a5){const _0x2e27df=_0x251a13['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2e27df))return;}rs(this['editor']['model'],this['_command'],_0x4321a5);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xf92d0f,_0x2f7034,_0x52945f){super(_0xf92d0f),this['_command']=_0x2f7034,this['_suggestions']=_0x52945f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x47d2b8=this['editor']['model']['document']['selection'],_0xafcc00=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x58ceea,_0x53bbdb){const _0xcb9789=Array['from'](_0x58ceea['getRanges']()),_0x14da79=new Set();for(const _0x2dfdea of _0x53bbdb)if(_0x2dfdea['isInContent']){for(const _0x21955b of _0xcb9789)for(const _0x3bcdd2 of _0x2dfdea['getRanges']())(_0x21955b['isIntersecting'](_0x3bcdd2)||_0x58ceea['isCollapsed']&&!_0x2dfdea['isMultiRange']&&_0x2dfdea['next']&&_0x3bcdd2['end']['isTouching'](_0x21955b['start']))&&_0x14da79['add'](_0x2dfdea);}return _0x14da79;}(_0x47d2b8,_0xafcc00),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1ef785=ss(Array['from'](this['_selectedSuggestions']));for(const _0x20b020 of _0x1ef785){const _0x9557be=_0x20b020['getRanges']();if(!this['editor']['model']['canEditAt'](_0x9557be))return;}rs(this['editor']['model'],this['_command'],_0x1ef785);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2ed5b8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4dadb3,_0x4e2b80){super(),this['id']=_0x4e2b80['id'],this['type']=_0x4e2b80['type'],this['subType']=_0x4e2b80['subType']||null,this['author']=_0x4e2b80['author'],this['creator']=_0x4e2b80['creator']||_0x4e2b80['author'],this['isExternal']=Boolean(_0x4e2b80['attributes']&&_0x4e2b80['attributes']['@external']),this['data']=null,this['_model']=_0x4dadb3,this['_onAccept']=_0x4e2b80['onAccept'],this['_onDiscard']=_0x4e2b80['onDiscard'],this['_onAttributesChange']=_0x4e2b80['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4e2b80['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 _0x463267=this;for(;_0x463267['previous'];)_0x463267=_0x463267['previous'];return _0x463267;}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'](_0x9b1ed6){this['_markerNames']['add'](_0x9b1ed6);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5e1cee=>this['_model']['markers']['get'](_0x5e1cee))['filter'](_0x247150=>_0x247150);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4a9190=>{for(const _0x8cc932 of this['getMarkers']())_0x4a9190['removeMarker'](_0x8cc932);}),this['_markerNames']['clear']();}['removeMarker'](_0x66d18a){this['_model']['change'](_0x1f20ec=>{_0x1f20ec['removeMarker'](_0x66d18a);}),this['_markerNames']['delete'](_0x66d18a);}['addRange'](_0x1d6ffc){const _0x504c91='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x504c91),this['_model']['change'](_0x9de969=>{_0x9de969['addMarker'](_0x504c91,{'range':_0x1d6ffc,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x551bd9){for(const _0x4dfb3c of this['getRanges']())if(_0x4dfb3c['isIntersecting'](_0x551bd9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2e67e4=>_0x2e67e4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x220b3c,_0x5407b4)=>[..._0x220b3c,..._0x5407b4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x194e64=this['getRanges']();if(0x1!=_0x194e64['length'])return null;const _0x615f51=_0x194e64[0x0],_0x411ab8=_0x615f51['start']['nodeAfter'],_0x17e738=_0x615f51['end']['nodeBefore'];return _0x411ab8 instanceof _0x210231?_0x411ab8!=_0x17e738?null:_0x411ab8: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 _0x3ba3ff=[];let _0x5e960f=this['head'];for(;_0x5e960f;)_0x3ba3ff['push'](_0x5e960f),_0x5e960f=_0x5e960f['next'];return _0x3ba3ff;}['setAttribute'](_0x6486b7,_0xc4308){const _0x2b40f4=_0x55fab6(this['attributes']);_0x3119ef(_0x2b40f4,_0x6486b7,_0xc4308),_0x4426d6(_0x2b40f4,this['attributes'])||(this['attributes']=_0x2b40f4,this['_onAttributesChange'](_0x2b40f4));}['removeAttribute'](_0x1a2023){const _0x4982f0=_0x55fab6(this['attributes']);_0xb9d03(_0x4982f0,_0x1a2023),_0x4426d6(_0x4982f0,this['attributes'])||(this['attributes']=_0x4982f0,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 _0x5c3a54()['substr'](0x1,0x5);}}function o(_0x15a941,_0x5df8dd,_0x804efe){const t=_0x15a941['t'];switch(_0x5df8dd){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'*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',_0x804efe);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x804efe);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x804efe);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x804efe);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x804efe);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',_0x804efe);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x804efe);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x804efe);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x804efe);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x804efe);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x804efe);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x804efe);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x804efe);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x804efe);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x804efe);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x804efe);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x804efe);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x804efe);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x804efe);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x804efe);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x804efe);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x804efe);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x804efe);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'},_0x804efe);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x804efe);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x804efe);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x804efe);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x804efe);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x804efe);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'},_0x804efe);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x804efe);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x804efe);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x804efe);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x804efe);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'},_0x804efe);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x804efe);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'},_0x804efe);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'},_0x804efe);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x804efe);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'},_0x804efe);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x804efe);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'},_0x804efe);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x804efe);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x804efe);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x804efe);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x804efe);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x5df8dd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xcf6e95,_0x47528b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xcf6e95,this['_locale']=_0x47528b;}['getDescriptions'](_0x506aef){const _0x1575e1=[],_0x344323=new Set(),_0x703731=new Set();for(let _0x1cd0ed=0x0;_0x1cd0ed<_0x506aef['length'];_0x1cd0ed++){const _0x4578f4=_0x506aef[_0x1cd0ed];if(!_0x4578f4['isInContent'])continue;const _0x2a92d7=this['_handleCustomCallbackDescription'](_0x4578f4);if(_0x2a92d7){if(null!=_0x4578f4['subType']){if(_0x344323['has'](_0x4578f4['subType']))continue;_0x344323['add'](_0x4578f4['subType']);}_0x1575e1['push'](_0x2a92d7);}else{if('attribute'!=_0x4578f4['type'])'insertion'!=_0x4578f4['type']&&'deletion'!=_0x4578f4['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1575e1,_0x4578f4,_0x506aef[_0x1cd0ed+0x1]);else{const _0xc2a99=_0x4578f4['data']['key'];if(_0x703731['has'](_0xc2a99))continue;_0x703731['add'](_0x4578f4['data']['key']),_0xc2a99==m?this['_handleRenameSuggestionDescription'](_0x1575e1,_0x4578f4):this['_handleAttributeSuggestionDescription'](_0x1575e1,_0x4578f4);}}}return this['_resolveDescriptionItems'](_0x1575e1);}['registerDescriptionCallback'](_0x490c9f){this['_customCallbacks']['push'](_0x490c9f);}['registerElementLabel'](_0x3ca5e3,_0x109f21,_0x182bb1=_0x511794['normal']){'function'==typeof _0x3ca5e3?_0x3486e9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3ca5e3,'label':_0x109f21,'priority':_0x182bb1}):this['_itemLabels']['set'](_0x3ca5e3,_0x109f21);}['registerAttributeLabel'](_0x545c62,_0x4daf92){this['_attributeLabels']['set'](_0x545c62,_0x4daf92);}['getItemLabel'](_0x1fda6e,_0x339245=0x1){let _0x1a629e;for(const _0x13a5e6 of this['_itemLabelsCallbacks'])if(_0x13a5e6['matchingCallback'](_0x1fda6e)){_0x1a629e=_0x13a5e6['label'];break;}return _0x1a629e||(_0x1a629e=this['_itemLabels']['get'](_0x1fda6e['name'])),_0x1a629e?_0x1a629e(_0x339245):0x1!==_0x339245?_0x339245+'\x20'+_0x1fda6e['name']+'s':''+_0x1fda6e['name'];}['_addDescriptionItems'](_0xb82a13,_0x78650e){const _0x417df3=_0x78650e['getFirstRange']()['getWalker'](),_0x106e89='insertion'==_0x78650e['type']?'add':'remove';for(const _0x36e3b1 of _0x417df3){const _0x45f403=_0x36e3b1['item'],_0x4b6aff=_0xb82a13[_0xb82a13['length']-0x1];if(_0x45f403['is']('$textProxy'))_0x4b6aff&&_0x4b6aff['type']['indexOf']('Container')>-0x1&&_0xb82a13['pop'](),_0x4b6aff&&'text'==_0x4b6aff['type']?_0x4b6aff[_0x106e89]+=_0x45f403['data']:_0xb82a13['push']({'type':'text','add':'add'==_0x106e89?_0x45f403['data']:'','remove':'remove'==_0x106e89?_0x45f403['data']:''});else{if(this['_schema']['isObject'](_0x45f403)){const _0x2d61b6=_0x45f403;if(_0x4b6aff&&_0x4b6aff['type']['indexOf']('Container')>-0x1&&_0xb82a13['pop'](),'elementEnd'==_0x36e3b1['type'])continue;_0x4b6aff&&_0x4b6aff['type']==_0x106e89+'Object'&&_0x4b6aff['element']['name']==_0x2d61b6['name']?_0x4b6aff['quantity']++:_0xb82a13['push']({'type':_0x106e89+'Object','element':_0x2d61b6,'quantity':0x1}),_0x417df3['skip'](_0x55af34=>!('elementEnd'==_0x55af34['type']&&_0x55af34['item']==_0x45f403));}else{if(this['_schema']['checkChild'](_0x45f403,'$text')||_0x45f403['is']('element','softBreak')){const _0xb4aed4=_0x45f403;if('add'==_0x106e89&&'elementStart'==_0x36e3b1['type']||'remove'==_0x106e89&&'elementEnd'==_0x36e3b1['type'])continue;if(_0x4b6aff&&-0x1==_0x4b6aff['type']['indexOf']('Container')){'text'==_0x4b6aff['type']&&(_0x4b6aff[_0x106e89]+='\x0a');continue;}let _0x29dd61;if(_0x29dd61='add'==_0x106e89?_0xb4aed4['nextSibling']&&!this['_schema']['isObject'](_0xb4aed4['nextSibling'])?_0xb4aed4['nextSibling']:null:_0xb4aed4['previousSibling']&&!this['_schema']['isObject'](_0xb4aed4['previousSibling'])?_0xb4aed4['previousSibling']:null,_0xb4aed4['isEmpty']||_0x29dd61&&_0x29dd61['isEmpty']){const _0x2bc1f1=_0x29dd61&&_0x29dd61['isEmpty']?_0x29dd61:_0xb4aed4;_0x4b6aff&&_0x4b6aff['type']==_0x106e89+'EmptyContainer'&&_0x4b6aff['element']['name']==_0x2bc1f1['name']?_0x4b6aff['quantity']++:_0xb82a13['push']({'type':_0x106e89+'EmptyContainer','element':_0x2bc1f1,'quantity':0x1});}else _0xb82a13['push']({'type':_0x106e89+'Container','element':_0xb4aed4});}}}}}['_resolveDescriptionItems'](_0x3337ef){const _0x47200d=this['_locale'],_0x1e33a0=[],_0x365d0c=[],_0x57201d=[];for(const _0x894b0e of _0x3337ef)switch(_0x894b0e['type']){case'text':if(_0x894b0e['add']=_0x894b0e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x894b0e['remove']=_0x894b0e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x894b0e['add']&&''!=_0x894b0e['remove']){_0x1e33a0['push']({'type':'replace','content':o(_0x47200d,'REPLACE_TEXT',['\x22'+_0x894b0e['remove']+'\x22','\x22'+_0x894b0e['add']+'\x22'])});continue;}if(null!=_0x894b0e['add']['match'](/^ +$/)){_0x1e33a0['push']({'type':'insertion','content':o(_0x47200d,'*Insert:*\x20%0',o(_0x47200d,'ELEMENT_SPACE',_0x894b0e['add']['length']))});continue;}if(null!=_0x894b0e['remove']['match'](/^ +$/)){_0x1e33a0['push']({'type':'deletion','content':o(_0x47200d,'*Remove:*\x20%0',o(_0x47200d,'ELEMENT_SPACE',_0x894b0e['remove']['length']))});continue;}if(''!=_0x894b0e['add']){_0x1e33a0['push']({'type':'insertion','content':o(_0x47200d,'*Insert:*\x20%0','\x22'+_0x894b0e['add']+'\x22')});continue;}_0x1e33a0['push']({'type':'deletion','content':o(_0x47200d,'*Remove:*\x20%0','\x22'+_0x894b0e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1e33a0['push']({'type':'insertion','content':o(_0x47200d,'*Insert:*\x20%0',this['getItemLabel'](_0x894b0e['element'],_0x894b0e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1e33a0['push']({'type':'deletion','content':o(_0x47200d,'*Remove:*\x20%0',this['getItemLabel'](_0x894b0e['element'],_0x894b0e['quantity']))});continue;case'addContainer':_0x1e33a0['push']({'type':'insertion','content':o(_0x47200d,'*Split:*\x20%0',this['getItemLabel'](_0x894b0e['element'],_0x894b0e['quantity']))});continue;case'removeContainer':_0x1e33a0['push']({'type':'deletion','content':o(_0x47200d,'*Merge:*\x20%0',this['getItemLabel'](_0x894b0e['element'],_0x894b0e['quantity']))});continue;case'addFormat':_0x365d0c['push'](_0x894b0e['key']);continue;case'removeFormat':_0x57201d['push'](_0x894b0e['key']);continue;default:_0x1e33a0['push'](_0x894b0e);}if(_0x365d0c['length']){const _0x4f494b=_0x365d0c['map'](_0x4b54c2=>this['_attributeLabels']['has'](_0x4b54c2)?this['_attributeLabels']['get'](_0x4b54c2):_0x4b54c2)['join'](',\x20');_0x1e33a0['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4f494b)});}if(_0x57201d['length']){const _0x72ee60=_0x57201d['map'](_0x85f748=>this['_attributeLabels']['has'](_0x85f748)?this['_attributeLabels']['get'](_0x85f748):_0x85f748)['join'](',\x20');_0x1e33a0['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x72ee60)});}return _0x1e33a0;}['_handleCustomCallbackDescription'](_0x1daac7){for(const _0x4b7221 of this['_customCallbacks']){const _0xcb4f2f=_0x4b7221(_0x1daac7);if(_0xcb4f2f&&'type'in _0xcb4f2f)return _0xcb4f2f;}}['_handleAttributeSuggestionDescription'](_0x55d321,_0x2bbbd6){const _0x247e3e=_0x2bbbd6['data'],_0x9b50eb=void 0x0===_0x247e3e['newValue']?'removeFormat':'addFormat';_0x55d321['push']({'type':_0x9b50eb,'key':_0x247e3e['key']});}['_handleRenameSuggestionDescription'](_0x30d33b,_0x5723c7){_0x30d33b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5723c7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x210116,_0x4ec0af,_0x463b8f){if(this['_addDescriptionItems'](_0x210116,_0x4ec0af),_0x463b8f&&_0x463b8f['getFirstRange']()&&!_0x4ec0af['getFirstRange']()['end']['isEqual'](_0x463b8f['getFirstRange']()['start'])){const _0xf3302a=_0x210116[_0x210116['length']-0x1],_0x6a6b6a='insertion'==_0x4ec0af['type']?'add':'remove';_0xf3302a&&'text'==_0xf3302a['type']&&(_0xf3302a[_0x6a6b6a]+='\x0a');}}}class E extends _0x510d68{['afterInit'](){const _0x554e59=this['editor'],_0x378e0b=_0x554e59['plugins']['get']('TrackChangesEditing');_0x554e59['commands']['get']('showAIAssistant')&&_0x378e0b['enableCommand']('showAIAssistant');}}class V extends _0x510d68{['afterInit'](){const _0x58108a=this['editor'],_0x216990=_0x58108a['locale'];if(!_0x58108a['plugins']['has']('AlignmentEditing'))return;const _0x47b04=_0x58108a['plugins']['get']('TrackChangesEditing');_0x47b04['enableDefaultAttributesIntegration']('alignment'),_0x47b04['registerBlockAttribute']('alignment'),_0x47b04['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x216990,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b4bce=this['editor'],_0x47bf26=_0x1b4bce['locale'];_0x1b4bce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ab82a=>{if('formatBlock'!=_0x3ab82a['type'])return;const {data:_0x24bcaf}=_0x3ab82a;if(_0x24bcaf&&'alignment'==_0x24bcaf['commandName']){const _0x3cd74c=_0x24bcaf['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x47bf26,'*Format:*\x20%0',function(_0x5cfb72){switch(_0x5cfb72){case'left':return o(_0x47bf26,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x47bf26,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x47bf26,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x47bf26,'FORMAT_JUSTIFY_TEXT');}}(_0x3cd74c))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x510d68{['afterInit'](){const _0x3e4669=this['editor'],_0x2d38a3=_0x3e4669['plugins']['get']('TrackChangesEditing'),_0x3d1593=_0x3e4669['locale'];for(const _0x28a7e5 of ti){if(!_0x3e4669['plugins']['has'](_0x28a7e5))continue;const _0x56fae3=_0x28a7e5['slice'](0x0,-0x7)['toLowerCase'](),_0x4fb893='FORMAT_'+_0x56fae3['toUpperCase']();_0x2d38a3['enableDefaultAttributesIntegration'](_0x56fae3),_0x2d38a3['registerInlineAttribute'](_0x56fae3),_0x2d38a3['descriptionFactory']['registerAttributeLabel'](_0x56fae3,o(_0x3d1593,_0x4fb893));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ee25a=this['editor'],_0x17fb26=_0x5ee25a['locale'],_0x27f89b=_0x5ee25a['plugins']['get']('TrackChangesEditing');function _0x1f5bae(_0x3cf376,_0x26bcac){_0x27f89b['descriptionFactory']['registerDescriptionCallback'](_0x13a8b4=>{if('formatInline'!=_0x13a8b4['type'])return;const {data:_0x30a6ec}=_0x13a8b4;return _0x30a6ec&&_0x30a6ec['commandName']===_0x3cf376?_0x30a6ec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17fb26,'*Format:*\x20%0',_0x26bcac)}:{'type':'format','content':o(_0x17fb26,'*Remove\x20format:*\x20%0',_0x26bcac)}:void 0x0;});}_0x1f5bae('bold',o(_0x17fb26,'FORMAT_BOLD')),_0x1f5bae('italic',o(_0x17fb26,'FORMAT_ITALIC')),_0x1f5bae('underline',o(_0x17fb26,'FORMAT_UNDERLINE')),_0x1f5bae('code',o(_0x17fb26,'FORMAT_CODE')),_0x1f5bae('strikethrough',o(_0x17fb26,'FORMAT_STRIKETHROUGH')),_0x1f5bae('subscript',o(_0x17fb26,'FORMAT_SUBSCRIPT')),_0x1f5bae('superscript',o(_0x17fb26,'FORMAT_SUPERSCRIPT'));}}class O extends _0x510d68{['afterInit'](){const _0x1134fd=this['editor'],_0x3f2c4c=_0x1134fd['locale'];if(!_0x1134fd['plugins']['has']('BlockQuoteEditing'))return;const _0x41b356=_0x1134fd['plugins']['get']('TrackChangesEditing'),_0x15479c=this['editor']['commands']['get']('blockQuote');_0x41b356['enableCommand']('blockQuote',(_0x15d7c4,_0x412f1d={})=>{const _0x96f71c=this['editor']['model']['document']['selection'],_0x35298c=_0x412f1d&&void 0x0!==_0x412f1d['forceValue']?_0x412f1d['forceValue']:!_0x15479c['value'];let _0x253abe=[];if(_0x35298c){const _0x20d39d=Array['from'](_0x96f71c['getSelectedBlocks']())['filter'](_0x156ccd=>oo(_0x156ccd)||function(_0x209a7d,_0x19c2b1){const _0x30f849=_0x19c2b1['checkChild'](_0x209a7d['parent'],'blockQuote'),_0x373564=_0x19c2b1['checkChild'](['$root','blockQuote'],_0x209a7d);return _0x30f849&&_0x373564;}(_0x156ccd,this['editor']['model']['schema']));_0x253abe=to(_0x20d39d,_0x1134fd['model']);}else{const _0xdad010=Array['from'](_0x96f71c['getSelectedBlocks']())['filter'](_0x28c227=>oo(_0x28c227));_0x253abe=to(_0xdad010,_0x1134fd['model']);}_0x1134fd['model']['change'](()=>{for(const _0x5157c5 of _0x253abe)_0x41b356['markBlockFormat'](_0x5157c5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x35298c}]});});}),_0x41b356['descriptionFactory']['registerDescriptionCallback'](_0x1ccfe0=>{const {data:_0x5646e1}=_0x1ccfe0;if(_0x5646e1&&'blockQuote'==_0x5646e1['commandName']){const _0x34bf96=o(_0x3f2c4c,'ELEMENT_BLOCK_QUOTE');return _0x5646e1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f2c4c,'*Set\x20format:*\x20%0',_0x34bf96)}:{'type':'format','content':o(_0x3f2c4c,'*Remove\x20format:*\x20%0',_0x34bf96)};}});}}function oo(_0x45da37){return'blockQuote'==_0x45da37['parent']['name'];}class G extends _0x510d68{['afterInit'](){const _0x5552de=this['editor'];_0x5552de['plugins']['has']('CaseChange')&&(_0x5552de['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5552de['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5552de['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x510d68{['afterInit'](){const _0x2ea902=this['editor'];_0x2ea902['commands']['get']('ckbox')&&_0x2ea902['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x510d68{['afterInit'](){const _0x3b76bd=this['editor'];if(!_0x3b76bd['plugins']['has']('CodeBlock'))return;const _0x3ec491=_0x3b76bd['plugins']['get']('TrackChangesEditing'),_0x50eb48=_0x3b76bd['locale'],_0x3daffc=_0x3b76bd['config']['get']('codeBlock')['languages'],_0x589c7c=_0x3b76bd['commands']['get']('codeBlock');_0x3ec491['enableCommand']('indentCodeBlock'),_0x3ec491['enableCommand']('outdentCodeBlock'),_0x3ec491['enableCommand']('codeBlock',(_0x10ad22,_0x39811c={})=>{const _0x543776=_0x3b76bd['model'],_0x13783f=_0x3b76bd['model']['document']['selection'],_0x54f78f=_0x39811c&&void 0x0!==_0x39811c['forceValue']?_0x39811c['forceValue']:!_0x589c7c['value'];let _0x57fc58;_0x39811c['language']||(_0x39811c['language']=_0x3daffc[0x0]['language']),_0x57fc58=_0x54f78f?Array['from'](_0x13783f['getSelectedBlocks']())['filter'](_0xa2cd05=>eo(_0xa2cd05)||function(_0x38996d,_0x18fa05){if(_0x38996d['is']('rootElement')||_0x18fa05['isLimit'](_0x38996d))return!0x1;return _0x18fa05['checkChild'](_0x38996d['parent'],'codeBlock');}(_0xa2cd05,_0x543776['schema'])):Array['from'](_0x13783f['getSelectedBlocks']())['filter'](_0x3470f6=>eo(_0x3470f6));const _0x217599=to(_0x57fc58,_0x543776);_0x543776['change'](()=>{for(const _0x24e95b of _0x217599)_0x3ec491['markBlockFormat'](_0x24e95b,{'commandName':'codeBlock','commandParams':[{..._0x39811c,'forceValue':_0x54f78f}],'formatGroupId':'blockName'});});}),(_0x3ec491['descriptionFactory']['registerElementLabel']('codeBlock',_0x6034c7=>o(_0x50eb48,'ELEMENT_CODE_BLOCK',_0x6034c7)),_0x3ec491['descriptionFactory']['registerDescriptionCallback'](_0x4abd63=>{if('formatBlock'!=_0x4abd63['type'])return;const _0x3d5731=_0x50eb48['t'],{data:_0x16c27f}=_0x4abd63;if(!_0x16c27f||'codeBlock'!=_0x16c27f['commandName'])return;const _0x3dc75c=_0x16c27f['commandParams'][0x0]['language'],_0x4ec396=_0x3d5731(_0x3daffc['find'](_0x45d577=>_0x45d577['language']===_0x3dc75c)['label'])['toLowerCase']();return _0x16c27f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50eb48,'*Set\x20format:*\x20%0',o(_0x50eb48,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4ec396+')')}:{'type':'format','content':o(_0x50eb48,'*Remove\x20format:*\x20%0',o(_0x50eb48,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x21535d){return'codeBlock'==_0x21535d['name'];}class H extends _0x510d68{['afterInit'](){const _0x2d52a8=this['editor'];if(!_0x2d52a8['plugins']['has']('CommentsEditing'))return;_0x2d52a8['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x377c55,_0x5150ab,_0x12a3c4){const _0x3c8871=[];for(const _0x4ff8d0 of _0x5150ab['getItems']())_0x4ff8d0['hasAttribute'](_0x377c55)&&_0x3c8871['push'](_0x12a3c4['createRangeOn'](_0x4ff8d0));return _0x3c8871;}function _e(_0x22f4d9,_0x1ec622,{showActiveMarker:_0x79b82f=!0x0}={}){const _0x168076=_0x22f4d9['plugins']['get']('TrackChangesEditing');return(_0x2e8f3a,_0x362a97,_0x47aa50)=>{if(!_0x47aa50['consumable']['test'](_0x362a97['markerRange'],_0x2e8f3a['name']))return;const _0xb1be8d=_0x362a97['markerRange']['getWalker'](),_0x17c145=_0x362a97['markerRange']['start'],_0x34a1da=_0x22f4d9['model']['schema'];let _0x3e457d=null,_0x5bc9e7=null,_0x174899=!0x1,_0x5369d6=!0x1;for(const _0x500c45 of _0xb1be8d){const _0x277d4b=_0x500c45['item'];_0x174899=_0x174899||_0x34a1da['isContent'](_0x277d4b);const _0x51b239=_0x47aa50['mapper']['toViewElement'](_0x277d4b);if(_0x51b239&&_0x51b239['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x500c45['type']&&(_0x34a1da['isBlock'](_0x277d4b)&&!_0x34a1da['isLimit'](_0x277d4b)&&(_0x277d4b['nextSibling']||_0x17c145['isAtEnd']?_0x3e457d&&_0x3e457d['parent']==_0x277d4b||(_0x3e457d=_0x277d4b,_0x88f0f4(_0x500c45['previousPosition']),_0x5369d6=!0x0):_0x5bc9e7=_0x5bc9e7||_0x500c45['previousPosition']));}function _0x88f0f4(_0x2d4d9e){const _0xa88dce=_0x47aa50['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1ec622}),_0x320271=_0x47aa50['mapper']['toViewPosition'](_0x2d4d9e);_0x79b82f&&_0x168076['activeMarkers']['includes'](_0x362a97['markerName'])&&_0x47aa50['writer']['addClass']('ck-suggestion-marker--active',_0xa88dce),_0x47aa50['writer']['insert'](_0x320271,_0xa88dce),_0x47aa50['mapper']['bindElementToMarker'](_0xa88dce,_0x362a97['markerName']);}_0x174899||_0x5369d6||!_0x5bc9e7||_0x88f0f4(_0x5bc9e7);};}class q extends _0x510d68{static get['requires'](){return[_0x2e489a];}['init'](){const _0x25cb79=this['editor'],_0x3b29a5=_0x25cb79['plugins']['get']('TrackChangesEditing');_0x3b29a5['enableCommand']('delete');const _0x2f3342=_0x25cb79['commands']['get']('deleteForward');_0x3b29a5['enableCommand']('deleteForward',(_0x300673,_0x55b902={})=>{const _0x54d0de=_0x25cb79['model']['createSelection'](_0x25cb79['model']['document']['selection']);_0x54d0de['isCollapsed']&&_0x25cb79['model']['modifySelection'](_0x54d0de,{'direction':'forward','unit':_0x55b902['unit']});const _0x1e97e2=_0x54d0de['getFirstRange'](),_0x10abcb=_0x1c4270['fromRange'](_0x1e97e2);let _0x7529e9;_0x300673(_0x55b902),_0x7529e9='$graveyard'==_0x10abcb['root']['rootName']?_0x25cb79['model']['createRange'](_0x1e97e2['start']):_0x25cb79['model']['createRange'](_0x10abcb['start'],_0x10abcb['end']),_0x10abcb['detach'](),_0x25cb79['model']['enqueueChange'](_0x2f3342['buffer']['batch'],_0x50f18e=>{_0x2f3342['buffer']['lock'](),_0x50f18e['setSelection'](_0x50f18e['createRange'](_0x7529e9['end'])),_0x2f3342['buffer']['unlock']();});}),_0x25cb79['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x25cb79,'merge'),{'priority':'high'}),_0x25cb79['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x38ba88,_0xce57a8,_0x4d0b93)=>{_0x4d0b93['options']['showSuggestionHighlights']&&_e(_0x25cb79,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x38ba88,_0xce57a8,_0x4d0b93);},{'priority':'high'}),_0x25cb79['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x439a56,_0x54ea37,_0x30cad9)=>{const _0x3db59f=_0x30cad9['mapper']['markerNameToElements'](_0x54ea37['markerName']);if(_0x3db59f){for(const _0x59253b of _0x3db59f)_0x59253b['is']('uiElement')&&(_0x30cad9['mapper']['unbindElementFromMarkerName'](_0x59253b,_0x54ea37['markerName']),_0x30cad9['writer']['remove'](_0x59253b));}},{'priority':'high'});}}class z extends _0x510d68{['afterInit'](){const _0x4fe72d=this['editor'];if(!_0x4fe72d['plugins']['has']('ListEditing'))return;const _0x19d711=_0x4fe72d['locale'],_0x263afe=_0x4fe72d['plugins']['get']('TrackChangesEditing'),_0x1e135c=_0x4fe72d['plugins']['has']('TodoListEditing'),_0x10c6e2=!!_0x4fe72d['config']['get']('list.multiBlock');function _0x165b9c(_0x4605fe){return{'type':'format','content':''+o(_0x19d711,'*Set\x20format:*\x20%0',_0x4605fe)};}function _0x4bb283(_0x4a7c6a){return{'type':'format','content':''+o(_0x19d711,'*Remove\x20format:*\x20%0',_0x4a7c6a)};}_0x263afe['enableDefaultAttributesIntegration']('numberedList'),_0x263afe['enableDefaultAttributesIntegration']('bulletedList'),_0x263afe['enableDefaultAttributesIntegration']('customNumberedList'),_0x263afe['enableDefaultAttributesIntegration']('customBulletedList'),_0x263afe['enableDefaultAttributesIntegration']('indentList'),_0x263afe['enableDefaultAttributesIntegration']('outdentList'),_0x263afe['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x263afe['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x263afe['registerBlockAttribute']('listItemId'),_0x263afe['registerBlockAttribute']('listType'),_0x263afe['registerBlockAttribute']('listIndent'),_0x10c6e2&&(_0x263afe['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x263afe['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1e135c&&(_0x263afe['enableDefaultAttributesIntegration']('todoList'),_0x263afe['enableDefaultAttributesIntegration']('checkTodoList'),_0x263afe['registerBlockAttribute']('todoListChecked'),_0x263afe['descriptionFactory']['registerDescriptionCallback'](_0x597444=>{const {data:_0x3c73f3}=_0x597444;if(_0x3c73f3&&'todoListChecked'==_0x3c73f3['key'])return{'type':'format','content':_0x3c73f3['newValue']?o(_0x19d711,'*Check\x20item*'):o(_0x19d711,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5c0ad6=>{if(_0x5c0ad6['batch']['isUndo'])return!0x1;let _0x3d93e9=!0x1;const _0x315a7c=_0x263afe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x416fc1=>'todoListChecked'===_0x263afe['_getAttributeKey'](_0x416fc1));for(const _0x506a72 of _0x315a7c){'todo'!=_0x506a72['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x263afe['_findSuggestions'](_0x506a72['getFirstRange'](),'attribute')['find'](_0xc06d5d=>'listType'===_0x263afe['_getAttributeKey'](_0xc06d5d['suggestion']))||(_0x5c0ad6['removeMarker'](_0x506a72['getFirstMarker']()),_0x3d93e9=!0x0));}return _0x3d93e9;})),_0x263afe['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x19d711,'FORMAT_INDENT'));const _0x4f2df2={'type':'format','content':''};_0x263afe['descriptionFactory']['registerDescriptionCallback'](_0xfff3ca=>{const {data:_0x24b0d9}=_0xfff3ca;if(!_0x24b0d9||'listType'!=_0x24b0d9['key'])return;let _0x44e1f9=_0xfff3ca['head'];for(;_0x44e1f9;){if(_0x44e1f9['data']&&(('listStyle'==_0x44e1f9['data']['key']||'listMarkerStyle'==_0x44e1f9['data']['key'])&&(_0x44e1f9['data']['newValue']&&'default'!=_0x44e1f9['data']['newValue']||'default'!=_0x44e1f9['data']['oldValue']&&!_0x24b0d9['newValue'])||!_0x10c6e2&&_0x44e1f9['data']['key']==m))return _0x4f2df2;_0x44e1f9=_0x44e1f9['next'];}if(null==_0x24b0d9['newValue'])switch(_0x24b0d9['oldValue']){case'bulleted':return _0x4bb283(o(_0x19d711,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4bb283(o(_0x19d711,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4bb283(o(_0x19d711,'ELEMENT_TODO_LIST'));}switch(_0x24b0d9['newValue']){case'bulleted':return _0x165b9c(o(_0x19d711,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x165b9c(o(_0x19d711,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x165b9c(o(_0x19d711,'ELEMENT_TODO_LIST'));}}),_0x263afe['descriptionFactory']['registerDescriptionCallback'](_0x593606=>{const {data:_0x1060d6}=_0x593606;if(_0x1060d6&&'listIndent'==_0x1060d6['key'])return null==_0x1060d6['newValue']||null==_0x1060d6['oldValue']&&0x0==_0x1060d6['newValue']?_0x4f2df2:void 0x0;}),_0x263afe['descriptionFactory']['registerDescriptionCallback'](_0x5c66fc=>{if('attribute'!=_0x5c66fc['type'])return;const {data:_0x16c9cb}=_0x5c66fc;if(!_0x16c9cb||'listItemId'!=_0x16c9cb['key'])return;const _0x4ae212=le(_0x5c66fc);return'newValue'==_0x4ae212?{'type':'format','content':o(_0x19d711,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4ae212?{'type':'format','content':o(_0x19d711,'*Split:*\x20list\x20item')}:_0x4f2df2;}),_0x4fe72d['model']['document']['registerPostFixer'](_0x5dbddc=>this['listItemIdFixer'](_0x5dbddc)),_0x4fe72d['model']['document']['registerPostFixer'](_0x31a236=>this['noTrackChangesFixer'](_0x31a236)),_0x4fe72d['model']['document']['registerPostFixer'](_0x2d01ef=>this['assureChains'](_0x2d01ef)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x580a34){if(_0x580a34['batch']['isUndo']||!_0x580a34['batch']['isLocal'])return!0x1;let _0x16c0c8=!0x1;const _0x1bf8ac=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x415e47=>_0x415e47['data']&&'listItemId'==_0x415e47['data']['key'])['filter'](_0x3f829c=>_0x3f829c['data']['newValue']&&_0x3f829c['data']['oldValue']);for(const _0x2a20c6 of _0x1bf8ac)le(_0x2a20c6)||(_0x580a34['removeMarker'](_0x2a20c6['getFirstMarker']()),_0x16c0c8=!0x0);return _0x16c0c8;}['noTrackChangesFixer'](_0x27cf04){if(_0x27cf04['batch']['isUndo']||!_0x27cf04['batch']['isLocal'])return!0x1;const _0x29e913=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x29e913['trackChangesCommand']['value'])return!0x1;let _0x55b15c=!0x1;const _0x2f8fa4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x20e086=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5e6bb7=>'attribute'==_0x5e6bb7['type'])['filter'](_0x21f3e6=>_0x2f8fa4['includes'](_0x21f3e6['attributeKey']));if(0x0==_0x20e086['length'])return _0x55b15c;for(const _0x101480 of _0x20e086){const _0x553cfc=_0x29e913['_findSuggestions'](_0x101480['range'],'attribute')['filter'](_0x5d008f=>!_0x5d008f['meta']['isNextTo'])['map'](_0x205b9d=>_0x205b9d['suggestion'])['filter'](_0x5ce50b=>{const _0x389517=_0x29e913['_getAttributeKey'](_0x5ce50b);return _0x2f8fa4['includes'](_0x389517);});if(_0x553cfc['length']){for(const _0x466924 of _0x553cfc)_0x27cf04['removeMarker'](_0x466924['getFirstMarker']());_0x55b15c=!0x0;}}return _0x55b15c;}['assureChains'](_0x4c0754){if(_0x4c0754['batch']['isUndo']||!_0x4c0754['batch']['isLocal'])return!0x1;const _0x28553c=this['editor']['plugins']['get']('TrackChangesEditing');let _0x34cb92=!0x1;const _0x2cde92=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x96bd2f of _0x28553c['getSuggestions']({'skipNotAttached':!0x0})){const _0x2e0955=_0x28553c['_findSuggestions'](_0x96bd2f['getFirstRange'](),'attribute')['map'](_0x5826d6=>_0x5826d6['suggestion'])['filter'](_0x524d38=>_0x524d38['data']&&_0x2cde92['includes'](_0x524d38['data']['key']));if(!_0x2e0955['length'])continue;const _0x2ce2c7=_0x2e0955[0x0]['head']['attributes']['groupId'];if(!_0x2e0955['every'](_0x2ad195=>_0x2ad195['attributes']['groupId']===_0x2ce2c7)){for(const _0x1aab59 of _0x2e0955)_0x351f8e(_0x1aab59,_0x2ce2c7)&&(_0x34cb92=!0x0);}}return _0x34cb92;function _0x4c8bb3(_0x205ca6,_0x2d0440){for(const _0x528a5c of _0x28553c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b40ae=>'attribute'==_0x2b40ae['type']&&_0x2b40ae['attributes']['groupId']==_0x205ca6))_0x528a5c['setAttribute']('groupId',_0x2d0440);}function _0x351f8e(_0x435409,_0x1f9f05){let _0x30579d=_0x435409['head'],_0x5266b3=!0x1;for(;_0x30579d;)_0x30579d['attributes']['groupId']!=_0x1f9f05&&(_0x4c8bb3(_0x30579d['attributes']['groupId'],_0x1f9f05),_0x30579d['setAttribute']('groupId',_0x1f9f05),_0x5266b3=!0x0),_0x30579d=_0x30579d['next'];return _0x5266b3;}}['_supportLegacySuggestions'](){const _0x181a58=this['editor'],_0x3677c2=_0x181a58['locale'],_0x1e0ab7=_0x181a58['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1e0ab7['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1b51f8,_0x41c533){const _0x1b16c7=[];for(let _0x22737c of _0x1b51f8)_0x22737c['start']['nodeAfter']===_0x22737c['end']['parent']&&(_0x22737c=_0x181a58['model']['createRange'](_0x181a58['model']['createPositionAt'](_0x22737c['start']['nodeAfter'],0x0))),_0x1b16c7['push'](_0x22737c);_0x181a58['model']['change'](_0x1c79b5=>{const _0x4ef75b=_0x181a58['model']['document']['selection'],_0x116298=Array['from'](_0x4ef75b['getRanges']())['map'](_0x47f2e4=>_0x1c4270['fromRange'](_0x47f2e4));_0x1c79b5['setSelection'](_0x1b16c7),_0x181a58['commands']['get'](_0x41c533['commandName'])['refresh'](),_0x41c533['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x181a58['execute'](_0x41c533['commandName'],..._0x41c533['commandParams']),_0x1c79b5['setSelection'](_0x116298);for(const _0x876590 of _0x116298)_0x876590['detach']();});}),_0x1e0ab7['descriptionFactory']['registerElementLabel'](function(_0x5b7c28){const _0x4f23ae=!_0x181a58['model']['schema']['isObject'](_0x5b7c28),_0x447c70=_0x5b7c28['previousSibling'],_0x4be78e=_0x5b7c28['nextSibling'],_0x20dd57=_0x5b7c28['getAttribute']('listItemId'),_0x3042d9=!_0x447c70||_0x447c70['getAttribute']('listItemId')!==_0x20dd57,_0x52314c=!_0x4be78e||_0x4be78e['getAttribute']('listItemId')!==_0x20dd57;return _0x4f23ae&&Boolean(_0x20dd57)&&_0x3042d9&&_0x52314c;},_0x16ae3d=>o(_0x3677c2,'ELEMENT_LIST_ITEM',_0x16ae3d));}['_registerLegacyDescription'](){const _0x9cb7df=this['editor'],_0x3adad2=_0x9cb7df['locale'];function _0x30e094(_0x13db8c){const _0x152db5=_0x9cb7df['commands']['get']('bulletedList')['value'],_0x5bc28c=_0x9cb7df['commands']['get']('numberedList')['value'];return'numberedList'===_0x13db8c?_0x152db5:_0x5bc28c;}_0x9cb7df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x340ff4){if('formatBlock'!=_0x340ff4['type'])return;const {data:_0x348cc2}=_0x340ff4;if(!_0x348cc2)return;let _0x179918,_0x29e1ea,_0x3566e3,_0x18b46e;switch(_0x348cc2['commandName']){case'bulletedList':_0x3566e3=_0x348cc2['commandParams'][0x0]['forceValue'],_0x18b46e=_0x30e094(_0x348cc2['commandName']),_0x179918=_0x3566e3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x18b46e&&_0x9cb7df['config']['get']('list.multiBlock')||(_0x179918='*Change\x20to:*\x20%0'),_0x29e1ea={'type':'format','content':o(_0x3adad2,_0x179918,o(_0x3adad2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3566e3=_0x348cc2['commandParams'][0x0]['forceValue'],_0x18b46e=_0x30e094(_0x348cc2['commandName']),_0x179918=_0x3566e3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x18b46e&&_0x9cb7df['config']['get']('list.multiBlock')||(_0x179918='*Change\x20to:*\x20%0'),_0x29e1ea={'type':'format','content':o(_0x3adad2,_0x179918,o(_0x3adad2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x179918='*Indent:*\x20%0',_0x29e1ea={'type':'format','content':o(_0x3adad2,_0x179918,o(_0x3adad2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x179918=function(_0x1ec50f){const _0x27f817=_0x1ec50f['getFirstRange']();let _0x59d3b2=_0x27f817['start']['nodeAfter'];for(;_0x59d3b2&&_0x27f817['containsItem'](_0x59d3b2);){if(_0x59d3b2['getAttribute']('listIndent')>0x0)return!0x1;_0x59d3b2=_0x59d3b2['nextSibling'];}return!0x0;}(_0x340ff4)?o(_0x3adad2,'*Format:*\x20remove\x20from\x20%0',o(_0x3adad2,function(_0x3c32d6){return'ELEMENT_'+_0x3c32d6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x340ff4))):o(_0x3adad2,'*Outdent:*\x20%0',o(_0x3adad2,'ELEMENT_LIST_ITEM')),_0x29e1ea={'type':'format','content':_0x179918};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x348cc2['multipleBlocks']&&(_0x179918='*Merge:*\x20%0',_0x29e1ea={'type':'deletion','content':o(_0x3adad2,_0x179918,o(_0x3adad2,'ELEMENT_LIST_ITEM'))});}return _0x29e1ea;});}}function le(_0x45cb87){let _0x143e9e=_0x45cb87['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x143e9e;){const _0x59d88e=_0x143e9e['getAttribute']('listItemId');if(!_0x59d88e)return!0x1;if(_0x59d88e==_0x45cb87['data']['newValue'])return'newValue';if(_0x59d88e==_0x45cb87['data']['oldValue'])return'oldValue';_0x143e9e=_0x143e9e['previousSibling'];}return!0x1;}class ue extends _0x510d68{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x6b99d=this['editor']['config']['get']('list.properties'),_0x2cd086=this['editor']['plugins']['get']('TrackChangesEditing');_0x6b99d['styles']&&(_0x2cd086['enableDefaultAttributesIntegration']('listStyle'),_0x2cd086['registerBlockAttribute']('listStyle')),_0x6b99d['reversed']&&(_0x2cd086['enableDefaultAttributesIntegration']('listReversed'),_0x2cd086['registerBlockAttribute']('listReversed')),_0x6b99d['startIndex']&&(_0x2cd086['enableDefaultAttributesIntegration']('listStart'),_0x2cd086['registerBlockAttribute']('listStart'));const _0x1ac455={'type':'format','content':''};_0x2cd086['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x23ea18=this['editor']['locale'];_0x2cd086['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x23ea18,'FORMAT_LIST_REVERSED')),_0x2cd086['descriptionFactory']['registerDescriptionCallback'](_0x57d791=>{const {data:_0x902737}=_0x57d791;if(_0x902737&&'listReversed'==_0x902737['key'])return null==_0x902737['newValue']||0x0==_0x902737['newValue']&&null==_0x902737['oldValue']?_0x1ac455:void 0x0;}),_0x2cd086['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x23ea18,'FORMAT_LIST_START')),_0x2cd086['descriptionFactory']['registerDescriptionCallback'](_0x185ae4=>{const {data:_0x2bfe85}=_0x185ae4;if(_0x2bfe85&&'listStart'==_0x2bfe85['key'])return null==_0x2bfe85['newValue']||0x1==_0x2bfe85['newValue']&&null==_0x2bfe85['oldValue']?_0x1ac455:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x57c9a7=>{if(_0x57c9a7['batch']['isUndo'])return!0x1;let _0x2aee19=!0x1;const _0x14cb55=_0x2cd086['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x525263=>{const _0xcafe26=_0x2cd086['_getAttributeKey'](_0x525263);return'listStart'==_0xcafe26||'listReversed'==_0xcafe26;});for(const _0xe9385f of _0x14cb55){const _0x592dcd=_0xe9385f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x592dcd||'customNumbered'==_0x592dcd)continue;_0x2cd086['_findSuggestions'](_0xe9385f['getFirstRange'](),'attribute')['find'](_0x5252bf=>'listType'==_0x2cd086['_getAttributeKey'](_0x5252bf['suggestion']))||(_0x57c9a7['removeMarker'](_0xe9385f['getFirstMarker']()),_0x2aee19=!0x0);}return _0x2aee19;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2884f3){const _0x57c395=this['editor']['locale'],{data:_0xd25aef}=_0x2884f3,_0x1dce3e={'type':'format','content':''};if(!_0xd25aef||'listStyle'!=_0xd25aef['key'])return;if(!_0xd25aef['oldValue'])return'default'==_0xd25aef['newValue']?_0x1dce3e:{'type':'format','content':''+o(_0x57c395,'*Set\x20format:*\x20%0',o(_0x57c395,this['_getTranslationKeyForListStyle'](_0xd25aef['newValue'])))};if(!_0xd25aef['newValue']){if('default'==_0xd25aef['oldValue'])return _0x1dce3e;let _0x27f33=_0x2884f3['head'];for(;_0x27f33;){if(_0x27f33['data']&&'listType'==_0x27f33['data']['key']&&_0x27f33['data']['newValue'])return _0x1dce3e;_0x27f33=_0x27f33['next'];}return{'type':'format','content':''+o(_0x57c395,'*Remove\x20format:*\x20%0',o(_0x57c395,this['_getTranslationKeyForListStyle'](_0xd25aef['oldValue'])))};}if('default'!=_0xd25aef['newValue'])return{'type':'format','content':''+o(_0x57c395,'*Set\x20format:*\x20%0',o(_0x57c395,this['_getTranslationKeyForListStyle'](_0xd25aef['newValue'])))};let _0x13c4cd=_0x2884f3['head'];for(;_0x13c4cd;){if(_0x13c4cd['data']&&'listType'==_0x13c4cd['data']['key']&&_0x13c4cd['data']['newValue']&&_0x13c4cd['data']['oldValue'])return _0x1dce3e;_0x13c4cd=_0x13c4cd['next'];}return{'type':'format','content':o(_0x57c395,'*Set\x20format:*\x20%0',o(_0x57c395,'ELEMENT_'+_0x2884f3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x14d1cc=this['editor'],_0x107ac2=_0x14d1cc['locale'];_0x14d1cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dfcbf=>{if('formatBlock'!=_0x5dfcbf['type'])return;const {data:_0x9f0c65}=_0x5dfcbf;if(!_0x9f0c65)return;let _0x2d46d8,_0x560245;switch(_0x9f0c65['commandName']){case'listStyle':_0x2d46d8='*Change\x20to:*\x20%0',_0x560245={'type':'format','content':o(_0x107ac2,_0x2d46d8,o(_0x107ac2,this['_getTranslationKeyForListStyle'](_0x9f0c65['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2d46d8=_0x9f0c65['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x560245={'type':'format','content':o(_0x107ac2,_0x2d46d8)};break;case'listStart':_0x2d46d8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x560245={'type':'format','content':o(_0x107ac2,_0x2d46d8,_0x9f0c65['commandParams'][0x0]['startIndex'])};}return _0x560245;});}['_getTranslationKeyForListStyle'](_0x58102d){return'ELEMENT_'+function(_0x29b77f){if(pe['includes'](_0x29b77f))return'bulleted';if(ye['includes'](_0x29b77f))return'numbered';return null;}(_0x58102d)['toUpperCase']()+'_LIST_'+_0x58102d['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x510d68{static get['requires'](){return[_0x4ad84c];}['init'](){const _0x8116ea=this['editor'],_0x4de1bd=_0x8116ea['plugins']['get']('TrackChangesEditing'),_0x51b1cf=_0x8116ea['commands']['get']('enter');_0x4de1bd['enableCommand']('enter',()=>{_0x8116ea['model']['change'](_0x14f052=>{const _0x3678b6=_0x8116ea['model']['document']['selection'],_0xefdd6f=_0x3678b6['getFirstPosition'](),_0x53f0ae=_0x1c4270['fromRange'](_0x3678b6['getFirstRange']());if(_0x51b1cf['enterBlock'](_0x14f052)){const _0x4fcd2d=_0x8116ea['model']['createPositionAt'](_0xefdd6f['parent']['nextSibling'],0x0),_0x51cdb8=_0x14f052['createRange'](_0xefdd6f,_0x4fcd2d);_0x4de1bd['markInsertion'](_0x51cdb8);}else _0x14f052['setSelection'](_0x14f052['createRange'](_0x53f0ae['end']));_0x53f0ae['detach'](),_0x51b1cf['fire']('afterExecute',{'writer':_0x14f052});});}),_0x8116ea['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x8116ea,'split'),{'priority':'high'}),_0x8116ea['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x16f166,_0x1ecbe4,_0x35dd5d)=>{const _0x371d83=_0x35dd5d['mapper']['markerNameToElements'](_0x1ecbe4['markerName']);if(_0x371d83){for(const _0x28e4ee of _0x371d83)_0x28e4ee['hasClass']('ck-suggestion-marker-split')&&(_0x35dd5d['mapper']['unbindElementFromMarkerName'](_0x28e4ee,_0x1ecbe4['markerName']),_0x35dd5d['writer']['remove'](_0x28e4ee));}},{'priority':'high'}),_0x8116ea['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3e1d33,_0xc54749,_0x206751)=>{_0x206751['options']['showSuggestionHighlights']&&_e(_0x8116ea,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3e1d33,_0xc54749,_0x206751);},{'priority':'high'});}}class J extends _0x510d68{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5b600a=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b600a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5b600a['enableCommand']('findNext'),_0x5b600a['enableCommand']('findPrevious'),_0x5b600a['enableCommand']('replace'),_0x5b600a['enableCommand']('replaceAll');}['handleFindCommand'](_0x19bc85,_0x462655,_0xe7e0ae={}){const _0x38d372=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x19bc85(_0x577030=>('string'==typeof _0x462655?_0x38d372['findByTextCallback'](_0x462655,_0xe7e0ae):_0x462655)(_0x577030)['filter'](_0x121114=>!0x1===this['_isInDeletionRange'](_0x121114,_0x577030['item'])),_0xe7e0ae);}['_isInDeletionRange'](_0x109ab4,_0x38c285){const _0x588fd2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x38c285,_0x109ab4['start']),this['editor']['model']['createPositionAt'](_0x38c285,_0x109ab4['end']));for(const _0x458f00 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x588fd2['getIntersection'](_0x458f00['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x510d68{['afterInit'](){const _0x4fe957=this['editor']['locale'],_0x5b2115=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5ddae0,commandName:_0x415bb9}of ro)this['editor']['plugins']['has'](_0x5ddae0)&&(_0x5b2115['enableDefaultAttributesIntegration'](_0x415bb9),_0x5b2115['registerInlineAttribute'](_0x415bb9));_0x4fe957['t'],_0x5b2115['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4fe957,'FORMAT_FONT_SIZE')),_0x5b2115['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4fe957,'FORMAT_FONT_FAMILY')),_0x5b2115['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4fe957,'FORMAT_FONT_COLOR')),_0x5b2115['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4fe957,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x168c37=this['editor'],_0x27ed7b=_0x168c37['locale'];_0x168c37['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b202a=>{const _0x55717d=_0x27ed7b['t'];if('formatInline'!=_0x1b202a['type'])return;const {data:_0x19d58c}=_0x1b202a;if(null!=_0x19d58c){if('fontSize'==_0x19d58c['commandName']){const _0x3b6dc1=_0x19d58c['commandParams'][0x0]['value'];if(_0x3b6dc1){const _0x397c1a=_0x55717d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x45d582=>_0x45d582['model']==_0x3b6dc1)['title'])['toLowerCase']();return{'type':'format','content':o(_0x27ed7b,'*Set\x20font\x20size:*\x20%0',_0x397c1a)};}return{'type':'format','content':o(_0x27ed7b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x19d58c['commandName']){const _0x36acd0=_0x19d58c['commandParams'][0x0]['value'];return _0x36acd0?{'type':'format','content':o(_0x27ed7b,'*Set\x20font\x20family:*\x20%0',_0x36acd0)}:{'type':'format','content':o(_0x27ed7b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x19d58c['commandName']){const _0x5d213e=_0x19d58c['commandParams'][0x0]['value'];if(_0x5d213e){const _0x2ec068=_0x2b1059(this['editor']['config']['get']('fontColor.colors'))['find'](_0x216f11=>_0x216f11['model']==_0x5d213e);let _0x48fe53=_0x5d213e,_0x5938da='';return _0x2ec068&&(_0x48fe53=_0x2ec068['label'],_0x5938da=_0x55717d(_0x48fe53)['toLowerCase']()),{'type':'format','content':o(_0x27ed7b,'*Set\x20font\x20color:*\x20%0',_0x5938da)['trim'](),'color':{'value':_0x5d213e,'title':_0x5938da||_0x48fe53}};}return{'type':'format','content':o(_0x27ed7b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x19d58c['commandName']){const _0x200134=_0x19d58c['commandParams'][0x0]['value'];if(_0x200134){const _0x583c07=_0x2b1059(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x23f8df=>_0x23f8df['model']==_0x200134);let _0x3f7fc1=_0x200134,_0x6d1bd3='';return _0x583c07&&(_0x3f7fc1=_0x583c07['label'],_0x6d1bd3=_0x55717d(_0x3f7fc1)['toLowerCase']()),{'type':'format','content':o(_0x27ed7b,'*Set\x20font\x20background\x20color:*\x20%0',_0x6d1bd3)['trim'](),'color':{'value':_0x200134,'title':_0x6d1bd3||_0x3f7fc1}};}return{'type':'format','content':o(_0x27ed7b,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x510d68{['afterInit'](){const _0x3f3394=this['editor'],_0x5f1a4b=_0x3f3394['plugins']['get']('TrackChangesEditing'),_0x4d58c9=_0x3f3394['commands']['get']('copyFormat'),_0x5e4257=_0x3f3394['commands']['get']('pasteFormat');_0x4d58c9&&_0x5e4257&&(_0x5f1a4b['enableDefaultAttributesIntegration']('pasteFormat'),_0x5f1a4b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x353524=this['editor'],_0x273224=_0x353524['locale'];_0x353524['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4db33e=>{if('formatBlock'!=_0x4db33e['type']&&'formatInline'!=_0x4db33e['type'])return;const {data:_0xe42a61}=_0x4db33e;if(_0xe42a61&&'pasteFormat'===_0xe42a61['commandName']){const _0x3dec15=[],_0x34fc5d=_0xe42a61['commandParams'][0x0];for(const [_0x4653b2,_0x12ad94]of Object['entries'](_0x34fc5d))_0x3dec15['push'](so(_0x353524,_0x4653b2,_0x12ad94));return _0x3dec15['length']?{'type':'format','content':o(_0x273224,'*Set\x20format\x20to:*\x20%0',_0x3dec15['join'](',\x20'))}:{'type':'format','content':o(_0x273224,'*Remove\x20all\x20formatting*')};}});}}function so(_0x48c197,_0x1cb5ef,_0xc2fc7){const _0x21f100=_0x48c197['locale']['t'],_0x2dd3b5=_0x1cb5ef['split'](/(?=[A-Z])/)['join']('\x20'),_0x185aba=_0x21f100(_0x2dd3b5['charAt'](0x0)['toUpperCase']()+_0x2dd3b5['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xc2fc7)return _0x185aba;if('fontColor'===_0x1cb5ef||'fontBackgroundColor'===_0x1cb5ef){const _0x212b6e=_0x2b1059(_0x48c197['config']['get']('fontColor.colors'))['find'](_0xaec8f0=>_0xaec8f0['model']==_0xc2fc7);return _0x185aba+'\x20('+(_0x212b6e?_0x21f100(_0x212b6e['label'])['toLowerCase']():_0xc2fc7)+')';}if('fontSize'===_0x1cb5ef&&isNaN(parseFloat(_0xc2fc7))){const _0x5b5a1d=_0x48c197['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x48c197['config']['get']('fontSize.options'))['find'](_0x163fd8=>_0x163fd8['model']==_0xc2fc7);return _0x185aba+'\x20('+(_0x5b5a1d?_0x21f100(_0x5b5a1d['title'])['toLowerCase']():_0xc2fc7)+')';}return _0x185aba+'\x20('+_0xc2fc7+')';}class Y extends _0x510d68{['_headingOptions'];['afterInit'](){const _0x4ff0ae=this['editor'];if(!_0x4ff0ae['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4ff0ae['config']['get']('heading.options');const _0x2e2227=_0x4ff0ae['locale'],_0x4ef971=_0x4ff0ae['plugins']['get']('TrackChangesEditing');_0x4ef971['enableDefaultAttributesIntegration']('heading');for(const _0x22c484 of this['_headingOptions'])'paragraph'!=_0x22c484['model']&&_0x4ef971['descriptionFactory']['registerElementLabel'](_0x22c484['model'],_0x1e3883=>{const _0x8a9402=this['_getHeadingLevel'](_0x22c484['model']);return null!==_0x8a9402?_0x3975f1(_0x1e3883,_0x8a9402):_0x5b8deb(_0x1e3883,_0x22c484['title']);});function _0x3975f1(_0x88be6b,_0x2b97ed){return o(_0x2e2227,'ELEMENT_HEADING',[_0x88be6b,_0x2b97ed]);}function _0x5b8deb(_0xc246b7,_0x85207a){return o(_0x2e2227,'ELEMENT_HEADING_CUSTOM',[_0xc246b7,_0x85207a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3265be=this['editor'],_0x1f086e=_0x3265be['locale'];function _0x5d79b1(_0x32b339,_0x5d09ff){return o(_0x1f086e,'ELEMENT_HEADING_CUSTOM',[_0x32b339,_0x5d09ff]);}_0x3265be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c5057=>{if('formatBlock'!=_0x4c5057['type'])return;const {data:_0x5c6507}=_0x4c5057;if(_0x5c6507&&'heading'==_0x5c6507['commandName']){const _0x3e610e=_0x5c6507['commandParams'][0x0]['value'],_0x2aaea7=this['_getHeadingLevel'](_0x3e610e);if(null!==_0x2aaea7)return{'type':'format','content':o(_0x1f086e,'*Change\x20to:*\x20%0',(_0x1fd46e=0x1,_0x575f58=_0x2aaea7,o(_0x1f086e,'ELEMENT_HEADING',[_0x1fd46e,_0x575f58])))};const _0x36d159=this['_headingOptions']['find'](_0x3ba949=>_0x3ba949['model']===_0x3e610e)['title'];return{'type':'format','content':o(_0x1f086e,'*Change\x20to:*\x20%0',_0x5d79b1(0x1,_0x36d159))};}var _0x1fd46e,_0x575f58;});}['_getHeadingLevel'](_0x5be26f){const _0x5e0a61=_0x5be26f['match'](/^heading(\d+)/);if(_0x5e0a61)return _0x5e0a61[0x1];const _0x17ed23=this['_headingOptions']?.['find'](_0x3cc75f=>_0x3cc75f['model']==_0x5be26f);if(_0x17ed23&&_0x17ed23['view']){const _0x5034b3=_0x17ed23['view'],_0x24376b=(_0x5034b3['name']??_0x5034b3)['match'](/^h(\d+)/);if(_0x24376b)return _0x24376b[0x1];}return null;}}class Z extends _0x510d68{['afterInit'](){const _0x53f3da=this['editor'];if(!_0x53f3da['plugins']['has']('HighlightEditing'))return;const _0x3d730b=_0x53f3da['plugins']['get']('TrackChangesEditing'),_0x2f92b5=_0x53f3da['locale'];_0x3d730b['enableDefaultAttributesIntegration']('highlight'),_0x3d730b['registerInlineAttribute']('highlight'),_0x3d730b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2f92b5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4314c4=this['editor'],_0x60348d=_0x4314c4['locale'];_0x4314c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2929d2=>{if('formatInline'!=_0x2929d2['type'])return;const {data:_0xa3a982}=_0x2929d2;if(_0xa3a982&&'highlight'==_0xa3a982['commandName']){const _0x23a962=_0x60348d['t'],_0x321627=_0xa3a982['commandParams'][0x0]['value'];if(_0x321627){const _0x303e68=_0x4314c4['config']['get']('highlight.options')['find'](_0x141614=>_0x141614['model']==_0x321627),_0x28afbe=_0x23a962(_0x303e68['title'])['toLowerCase']();return{'type':'format','content':o(_0x60348d,'*Set\x20highlight:*\x20%0',_0x28afbe),'color':{'value':_0x303e68['color'],'title':_0x303e68['title']}};}return{'type':'format','content':o(_0x60348d,'*Remove\x20highlight*',o(_0x60348d,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x510d68{['afterInit'](){const _0x7c4b0a=this['editor'];if(!_0x7c4b0a['plugins']['has']('HorizontalLineEditing'))return;_0x7c4b0a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1d28e6=_0x7c4b0a['plugins']['get']('TrackChangesEditing'),_0x53034d=_0x7c4b0a['locale'];_0x1d28e6['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5ceca4=>o(_0x53034d,'ELEMENT_HORIZONTAL_LINE',_0x5ceca4)),_0x7c4b0a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5f22a7,{writer:_0xec6742,options:_0x56d20d})=>{if(!_0x56d20d['showSuggestionHighlights'])return null;const _0x4be296=_0xec6742['createContainerElement']('div'),_0x120102=_0xec6742['createEmptyElement']('hr');return _0xec6742['addClass']('ck-horizontal-line',_0x4be296),_0xec6742['insert'](_0xec6742['createPositionAt'](_0x4be296,0x0),_0x120102),_0x4be296;},'converterPriority':'high'});}}class et extends _0x510d68{['afterInit'](){const _0x31a582=this['editor'];if(!_0x31a582['plugins']['has']('HtmlEmbed'))return;const _0xecb098=_0x31a582['plugins']['get']('TrackChangesEditing'),_0x46e89c=_0x31a582['locale'];_0xecb098['descriptionFactory']['registerElementLabel']('rawHtml',_0x5de8ab=>o(_0x46e89c,'ELEMENT_HTML_EMBED',_0x5de8ab)),_0xecb098['enableDefaultAttributesIntegration']('htmlEmbed'),_0xecb098['registerBlockAttribute']('value'),_0xecb098['descriptionFactory']['registerDescriptionCallback'](_0x2720c0=>{if('attribute'!=_0x2720c0['type'])return;const {data:_0x2b5235}=_0x2720c0;if(_0x2b5235&&'value'==_0x2b5235['key']&&_0x2720c0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x38255d=o(_0x46e89c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x46e89c,'*Change\x20%0\x20content*',_0x38255d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x609db7=this['editor'],_0x473e2c=_0x609db7['locale'];_0x609db7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x474859=>{if('formatBlock'!=_0x474859['type'])return;const {data:_0x455366}=_0x474859;if(_0x455366&&'htmlEmbed'==_0x455366['commandName']){const _0x34a92b=o(_0x473e2c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x473e2c,'*Change\x20%0\x20content*',_0x34a92b)};}});}}class it extends _0x510d68{['afterInit'](){const _0x26e378=this['editor'];if(!_0x26e378['plugins']['has']('ImageEditing'))return;const _0xeaaa55=_0x26e378['plugins']['get']('TrackChangesEditing'),_0x3d04f7=_0x26e378['plugins']['get']('ImageUtils'),_0x466fdf=_0x26e378['locale'];_0xeaaa55['enableCommand']('insertImage'),_0xeaaa55['descriptionFactory']['registerElementLabel']('imageBlock',_0x31be8d=>o(_0x466fdf,'ELEMENT_IMAGE',_0x31be8d)),_0xeaaa55['descriptionFactory']['registerElementLabel']('imageInline',_0x19d1f7=>o(_0x466fdf,'ELEMENT_INLINE_IMAGE',_0x19d1f7)),_0xeaaa55['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x466fdf,'ELEMENT_CAPTION')),_0x26e378['plugins']['has']('ImageUploadEditing')&&_0xeaaa55['enableCommand']('uploadImage'),_0x26e378['plugins']['has']('ImageBlockEditing')&&_0x26e378['plugins']['has']('ImageInlineEditing')&&(_0xeaaa55['enableCommand']('imageTypeInline',(_0x719b62,_0x38251d)=>{const _0x328397=_0x3d04f7['getClosestSelectedImageElement'](_0x26e378['model']['document']['selection']);_0x26e378['model']['change'](()=>{_0xeaaa55['markBlockFormat'](_0x328397,{'commandName':'imageTypeInline','commandParams':[_0x38251d]},[],'convertBlockImageToInline');});}),_0xeaaa55['enableCommand']('imageTypeBlock',(_0x1a7090,_0x357ce0)=>{_0x26e378['model']['change'](_0xa066f9=>{let _0x4e4500=_0x3d04f7['getClosestSelectedImageElement'](_0x26e378['model']['document']['selection']),_0x27bc2f=_0xa066f9['createRangeOn'](_0x4e4500);const _0x10f6dd=_0x318b9c['fromPosition'](_0x27bc2f['start'],'toPrevious'),_0x4a1d0f=_0x318b9c['fromPosition'](_0x27bc2f['end'],'toNext');_0xeaaa55['forceDefaultExecution'](()=>_0x1a7090(_0x357ce0)),_0x4e4500=_0x3d04f7['getClosestSelectedImageElement'](_0x26e378['model']['document']['selection']),_0x27bc2f=_0xa066f9['createRangeOn'](_0x4e4500);const _0x7fcfa1=_0xa066f9['createRange'](_0x10f6dd,_0x4a1d0f);_0x10f6dd['detach'](),_0x4a1d0f['detach'](),_0xeaaa55['markBlockFormat'](_0x4e4500,{'commandName':'imageTypeInline','commandParams':[_0x357ce0]},[],'convertInlineImageToBlock'),_0x7fcfa1['start']['isBefore'](_0x27bc2f['start'])&&_0xeaaa55['markInsertion'](_0xa066f9['createRange'](_0x7fcfa1['start'],_0x27bc2f['start']),'convertInlineImageToBlock'),_0x27bc2f['end']['isBefore'](_0x7fcfa1['end'])&&_0xeaaa55['markInsertion'](_0xa066f9['createRange'](_0x27bc2f['end'],_0x7fcfa1['end']),'convertInlineImageToBlock');});}),_0xeaaa55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xeaaa55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xeaaa55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xeaaa55['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xeaaa55['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xeaaa55['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3718a])=>{const _0x248c5f=_0xeaaa55['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2d77e0=_0x3718a['start'],_0x21efc8=_0x3718a['end'];const _0xf61238=_0x26e378['model']['schema']['getNearestSelectionRange'](_0x2d77e0,'backward'),_0x911d7=_0x26e378['model']['schema']['getNearestSelectionRange'](_0x21efc8,'forward');_0xf61238['isCollapsed']&&(_0x2d77e0=_0xf61238['start']),_0x911d7['isCollapsed']&&(_0x21efc8=_0x911d7['end']),_0x248c5f([_0x26e378['model']['createRange'](_0x2d77e0,_0x21efc8)]);}),_0xeaaa55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2e5796),_0xeaaa55['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2e5796)),_0x26e378['plugins']['has']('ImageCaptionEditing')&&(_0xeaaa55['enableCommand']('toggleImageCaption',(_0x27a8ea,_0x2bc2d1)=>{const _0x184264=_0x26e378['plugins']['get']('ImageCaptionUtils');let _0x5a5c40=_0x3d04f7['getClosestSelectedImageElement'](_0x26e378['model']['document']['selection']),_0x4eeb35=_0x184264['getCaptionFromImageModelElement'](_0x5a5c40);_0x26e378['model']['change'](()=>{if(_0x4eeb35)return void _0xeaaa55['markDeletion'](_0x26e378['model']['createRangeOn'](_0x4eeb35));const _0x5b38be=_0x3d04f7['isBlockImage'](_0x5a5c40);_0x27a8ea(_0x2bc2d1),_0x5a5c40=_0x3d04f7['getClosestSelectedImageElement'](_0x26e378['model']['document']['selection']),_0x4eeb35=_0x184264['getCaptionFromImageModelElement'](_0x5a5c40),_0xeaaa55['markInsertion'](_0x26e378['model']['createRangeOn'](_0x4eeb35),_0x5b38be?null:'imageCaption');});}),_0xeaaa55['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2e5796));const _0x4a5804=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x555843(_0x285861,_0x2ab263){const _0x4f6f36=_0x4a5804['findIndex'](({type:_0x4e18a1,subType:_0x302bee})=>_0x285861['type']==_0x4e18a1&&_0x285861['subType']==_0x302bee),_0x2ebecf=_0x4a5804['findIndex'](({type:_0x19c09b,subType:_0x2b59b3})=>_0x2ab263['type']==_0x19c09b&&_0x2ab263['subType']==_0x2b59b3);if(_0x4f6f36<0x0||_0x2ebecf<0x0)return!0x1;const _0x50c277=_0x285861['getFirstRange'](),_0x1b937c=_0x2ab263['getFirstRange']();if((0x0==_0x4f6f36||0x1==_0x4f6f36)&&0x2==_0x2ebecf&&_0x50c277['isIntersecting'](_0x1b937c))return!0x0;if(0x2==_0x4f6f36&&0x3==_0x2ebecf){const _0x43b543=_0xeaaa55['_findSuggestions'](_0x50c277,'insertion')['filter'](({suggestion:_0x5233ab,meta:_0x10863f})=>_0x10863f['isOwn']&&'convertInlineImageToBlock'==_0x5233ab['subType']);if(_0x43b543['length']>0x1&&_0x1b937c['end']['isEqual'](_0x50c277['start']))return!0x0;if(0x1==_0x43b543['length']&&(_0x50c277['start']['isEqual'](_0x1b937c['end'])||_0x50c277['end']['isEqual'](_0x1b937c['start'])))return!0x0;}if(0x3==_0x4f6f36&&0x3==_0x2ebecf&&_0x50c277['start']['isBefore'](_0x1b937c['start'])){const _0x534853=_0x50c277['end']['nodeAfter'],_0x58bb51=_0x1b937c['start']['nodeBefore'];return _0x3d04f7['isBlockImage'](_0x534853)&&_0x534853===_0x58bb51;}return!0x1;}function _0x2e5796(_0x5051f4,_0x58cefc){return _0x555843(_0x5051f4,_0x58cefc)?[_0x5051f4,_0x58cefc]:_0x555843(_0x58cefc,_0x5051f4)?[_0x58cefc,_0x5051f4]:null;}_0x26e378['plugins']['has']('ImageResize')&&(_0xeaaa55['enableDefaultAttributesIntegration']('resizeImage'),_0xeaaa55['registerBlockAttribute']('resizedWidth'),_0xeaaa55['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x466fdf,'FORMAT_IMAGE_SIZE'))),_0x26e378['plugins']['has']('ImageTextAlternativeEditing')&&(_0xeaaa55['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xeaaa55['registerBlockAttribute']('alt')),_0xeaaa55['descriptionFactory']['registerDescriptionCallback'](_0x5414ca=>{if(!!_0x4a5804['find'](({type:_0x42ae19,subType:_0x3eeeea})=>_0x5414ca['type']==_0x42ae19&&_0x5414ca['subType']==_0x3eeeea))return _0x5414ca['previous']?{}:void 0x0;}),_0xeaaa55['descriptionFactory']['registerDescriptionCallback'](_0x476c13=>{if('insertion'==_0x476c13['type']||'deletion'==_0x476c13['type']){const _0x32b2df=_0x476c13['getContainedElement']();if(_0x32b2df&&_0x32b2df['is']('element','caption'))return{'type':'insertion'==_0x476c13['type']?'addObject':'removeObject','element':_0x32b2df,'quantity':0x1};}}),_0xeaaa55['descriptionFactory']['registerDescriptionCallback'](_0x3d2e37=>'formatBlock'==_0x3d2e37['type']&&'convertInlineImageToBlock'==_0x3d2e37['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3d2e37['type']&&'convertBlockImageToInline'==_0x3d2e37['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xeaaa55['descriptionFactory']['registerDescriptionCallback'](_0x3cc2db=>{if('attribute'!=_0x3cc2db['type'])return;const {data:_0x119fb1}=_0x3cc2db;if(!_0x119fb1||'alt'!=_0x119fb1['key'])return;const _0x5c8a76=_0x119fb1['newValue'];return _0x5c8a76?{'type':'format','content':o(_0x466fdf,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5c8a76+'\x22')}:{'type':'format','content':o(_0x466fdf,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58e9d8=this['editor'],_0x1cb047=_0x58e9d8['locale'];_0x58e9d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35da22=>{if('formatBlock'!=_0x35da22['type']&&'formatInline'!=_0x35da22['type'])return;const {data:_0x54b94d}=_0x35da22;if(_0x54b94d){if('imageTextAlternative'==_0x54b94d['commandName']){const _0x557e79=_0x54b94d['commandParams'][0x0]['newValue'];return _0x557e79?{'type':'format','content':o(_0x1cb047,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x557e79+'\x22')}:{'type':'format','content':o(_0x1cb047,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x54b94d['commandName']){const _0x5e6e60=_0x54b94d['commandParams'][0x0]['width'];return _0x5e6e60?{'type':'format','content':o(_0x1cb047,'*Set\x20image\x20width:*\x20%0',_0x5e6e60)}:{'type':'format','content':o(_0x1cb047,'*Reset\x20image\x20width*')};}}});}}class st extends _0x510d68{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5695a6=this['editor']['locale'],_0x5035c0=this['editor']['plugins']['get']('TrackChangesEditing');_0x5035c0['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5035c0['registerBlockAttribute']('src'),_0x5035c0['descriptionFactory']['registerDescriptionCallback'](_0x4cf100=>{if('attribute'!=_0x4cf100['type'])return;const {data:_0x8895a3}=_0x4cf100;return _0x8895a3&&'src'==_0x8895a3['key']?_0x8895a3['newValue']&&_0x8895a3['oldValue']?{'type':'format','content':o(_0x5695a6,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x277455=this['editor']['plugins']['get']('TrackChangesEditing');_0x277455['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x277455['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x277455['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x277455['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9956b4=this['editor'],_0x514f7d=_0x9956b4['locale'];_0x9956b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b4f71=>{if('formatBlock'!=_0x4b4f71['type']&&'formatInline'!=_0x4b4f71['type'])return;const {data:_0x3a20ac}=_0x4b4f71;if(!_0x3a20ac||'replaceImageSource'!=_0x3a20ac['commandName'])return;return{'type':'format','content':o(_0x514f7d,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x510d68{['afterInit'](){const _0x34e8ed=this['editor'];if(!_0x34e8ed['plugins']['has']('ImageStyleEditing'))return;const _0x5d4916=_0x34e8ed['plugins']['get']('TrackChangesEditing'),_0x2eed96=_0x34e8ed['plugins']['get']('ImageUtils'),_0x49f43d={};_0x5d4916['enableCommand']('imageStyle',(_0x2ef0da,_0x1ed31d)=>{const _0x26cff2=_0x34e8ed['plugins']['get']('Users')['me'],_0x8e9401=_0x34e8ed['commands']['get']('imageStyle');let _0x774449=_0x2eed96['getClosestSelectedImageElement'](_0x34e8ed['model']['document']['selection']),_0x3f42b2=_0x34e8ed['model']['createRangeOn'](_0x774449),_0x4b4c30=_0x8e9401['value'];if(_0x4b4c30==_0x1ed31d['value'])return;const _0xb5a514={'commandName':'imageStyle','commandParams':[_0x1ed31d],'formatGroupId':_0x5c3a54()};_0x34e8ed['model']['change'](()=>{if(_0x5d4916['getSuggestions']()['filter'](_0x502644=>_0x502644['isInContent']&&_0x26cff2==_0x502644['author']&&('formatBlock'==_0x502644['type']||'formatInline'==_0x502644['type'])&&('imageStylePreApply'==_0x502644['subType']||'imageStylePostApply'==_0x502644['subType'])&&_0x502644['getFirstRange']()['isEqual'](_0x3f42b2))['forEach'](_0x496902=>_0x5d4916['discardSuggestion'](_0x496902['head'])),_0x774449=_0x2eed96['getClosestSelectedImageElement'](_0x34e8ed['model']['document']['selection']),_0x3f42b2=_0x34e8ed['model']['createRangeOn'](_0x774449),_0x8e9401['refresh'](),_0x34e8ed['commands']['get']('imageTypeInline')['refresh'](),_0x34e8ed['commands']['get']('imageTypeBlock')['refresh'](),_0x4b4c30=_0x8e9401['value'],_0x4b4c30!=_0x1ed31d['value'])return _0x2eed96['isInlineImage'](_0x774449)&&_0x8e9401['shouldConvertImageType'](_0x1ed31d['value'],_0x774449)?(_0x2ef0da({..._0x1ed31d,'setImageSizes':!0x1}),_0x774449=_0x2eed96['getClosestSelectedImageElement'](_0x34e8ed['model']['document']['selection']),void _0x5d4916['markBlockFormat'](_0x774449,{..._0xb5a514,'commandReversedParams':[{'value':_0x4b4c30||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2eed96['isBlockImage'](_0x774449)?_0x5d4916['markBlockFormat'](_0x774449,_0xb5a514,[],'imageStylePostApply'):_0x5d4916['markInlineFormat'](_0x3f42b2,_0xb5a514,'imageStylePostApply'));});});for(const _0x180640 of _0x34e8ed['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x49f43d[_0x180640['name']]=_0x180640['title']['toLowerCase']();_0x5d4916['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5d4916['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5d4916['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5d4916['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x419d4b])=>{_0x2eed96['setImageNaturalSizeAttributes'](_0x419d4b['getContainedElement']());}),_0x5d4916['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1e1329,_0x349670)=>{_0x5d4916['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1e1329,{'commandName':_0x349670['commandName'],'commandParams':_0x349670['commandReversedParams']});}),_0x5d4916['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x40818f,_0x4cb3f1){if(_0x555b67(_0x40818f,_0x4cb3f1))return[_0x40818f,_0x4cb3f1];if(_0x555b67(_0x4cb3f1,_0x40818f))return[_0x4cb3f1,_0x40818f];return null;});const _0x8bbd26=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x555b67(_0x5a6086,_0x458dbb){const _0x1ce9f9=_0x8bbd26['findIndex'](({type:_0x24cf84,subType:_0x632e0f})=>_0x5a6086['type']==_0x24cf84&&_0x5a6086['subType']==_0x632e0f),_0x20a7f7=_0x8bbd26['findIndex'](({type:_0x5da25d,subType:_0x370532})=>_0x458dbb['type']==_0x5da25d&&_0x458dbb['subType']==_0x370532);if(_0x1ce9f9<0x0||_0x20a7f7<0x0)return!0x1;const _0x3ba0d4=_0x5a6086['getFirstRange'](),_0x3ebe2f=_0x458dbb['getFirstRange']();if((0x0==_0x1ce9f9||0x1==_0x1ce9f9)&&0x2==_0x20a7f7&&_0x3ba0d4['isIntersecting'](_0x3ebe2f))return!0x0;if(0x2==_0x1ce9f9&&0x3==_0x20a7f7){const _0x1d47fc=_0x5d4916['_findSuggestions'](_0x3ba0d4,'insertion')['filter'](({suggestion:_0x56b6ab,meta:_0x487e8e})=>_0x487e8e['isOwn']&&'convertInlineImageToBlock'==_0x56b6ab['subType']);if(_0x1d47fc['length']>0x1&&_0x3ebe2f['end']['isEqual'](_0x3ba0d4['start']))return!0x0;if(0x1==_0x1d47fc['length']&&(_0x3ba0d4['start']['isEqual'](_0x3ebe2f['end'])||_0x3ba0d4['end']['isEqual'](_0x3ebe2f['start'])))return!0x0;}if(0x3==_0x1ce9f9&&0x3==_0x20a7f7&&_0x3ba0d4['start']['isBefore'](_0x3ebe2f['start'])){const _0x16b961=_0x3ba0d4['end']['nodeAfter'],_0x2a9f33=_0x3ebe2f['start']['nodeBefore'];return _0x2eed96['isBlockImage'](_0x16b961)&&_0x16b961===_0x2a9f33;}return!0x1;}_0x34e8ed['model']['document']['registerPostFixer'](()=>{let _0x59fd0a=!0x1;const _0x58a07f=Array['from'](_0x34e8ed['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x196b87,data:_0x41e478}of _0x58a07f){const {group:_0x4e36f5,type:_0x2f63a2,subType:_0x321b64,id:_0x4a2548}=_0x5d4916['_splitMarkerName'](_0x196b87);if('suggestion'==_0x4e36f5&&_0x5d4916['hasSuggestion'](_0x4a2548)){if('formatBlock'==_0x2f63a2&&('imageStylePreApply'==_0x321b64||'imageStylePostApply'==_0x321b64)){const _0x106b80=_0x5d4916['getSuggestion'](_0x4a2548);if(_0x41e478['newRange']){const _0x394ee7=_0x106b80['getFirstRange']()['getContainedElement']();if(_0x2eed96['isBlockImage'](_0x394ee7))continue;_0x5d4916['discardSuggestion'](_0x106b80),_0x59fd0a=!0x0;}}if('insertion'==_0x2f63a2&&'imageCaption'==_0x321b64&&!_0x41e478['newRange']){const _0x4955b0=_0x5d4916['getSuggestion'](_0x4a2548);_0x4955b0['next']&&_0x4955b0['next']['isInContent']&&(_0x5d4916['discardSuggestion'](_0x4955b0['next']),_0x59fd0a=!0x0);}}}return _0x59fd0a;}),this['_registerLegacyDescription'](_0x49f43d);}['_registerLegacyDescription'](_0x107754){const _0xe5938=this['editor'],_0x2f1293=_0xe5938['locale'];_0xe5938['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3836aa=>{if('formatBlock'!=_0x3836aa['type']&&'formatInline'!=_0x3836aa['type'])return;const {data:_0x19445b}=_0x3836aa;if(!_0x19445b||'imageStyle'!=_0x19445b['commandName'])return;const _0x299c87=_0x19445b['commandParams'][0x0]['value'];return _0x1e820d('side'===_0x299c87?o(_0x2f1293,'FORMAT_SIDE_IMAGE'):_0x107754[_0x299c87]||_0x299c87);function _0x1e820d(_0x441c7c){return{'type':'format','content':o(_0x2f1293,'*Format:*\x20%0',_0x441c7c)};}});}}class ot extends _0x510d68{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xb7a017){super(_0xb7a017),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2d7fae=this['editor'],_0x568467=_0x2d7fae['commands']['get']('importWord'),_0x2555e6=_0x2d7fae['commands']['get']('trackChanges');_0x568467&&(_0x568467['on']('execute',(_0x386755,[,_0x18c250])=>{this['_trackChangesValueDuringImport']=_0x2555e6['value'],_0x18c250['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x568467,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x568467,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2555e6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2d7fae['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xe47fc2,_0x590ba6){const {suggestions:_0x5075e8}=_0x590ba6,_0x1d4f37=this['editor']['commands']['get']('trackChanges'),_0x28d171=_0x1d4f37['value'];this['_trackChangesValueDuringImport']!==_0x28d171&&(_0x1d4f37['execute'](),this['_trackChangesExecuted']=!0x0),_0x5075e8&&_0x5075e8['forEach'](({id:_0x2fd385,type:_0xdde9dc,author:_0x3c0255,created_at:_0xa5471})=>{const _0x2ce26a={'id':_0x2fd385,'type':_0xdde9dc,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3c0255,'createdAt':_0xa5471?new Date(_0xa5471):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2ce26a);});}}class rt extends _0x510d68{['afterInit'](){const _0x588d84=this['editor'],_0x5cd63f=_0x588d84['plugins']['get']('TrackChangesEditing');if(_0x588d84['plugins']['has']('IndentEditing')&&(_0x5cd63f['enableCommand']('indent'),_0x5cd63f['enableCommand']('outdent')),_0x588d84['plugins']['has']('IndentBlock')){for(const _0xe1a56d of['indentBlock','outdentBlock'])_0x5cd63f['enableDefaultAttributesIntegration'](_0xe1a56d);}const _0xd7a91e=_0x588d84['locale'];_0x5cd63f['registerBlockAttribute']('blockIndent'),_0x5cd63f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xd7a91e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e613c=this['editor'],_0x55dfd5=_0x5e613c['locale'],_0xf34182=_0x5e613c['plugins']['get']('TrackChangesEditing');_0xf34182['descriptionFactory']['registerDescriptionCallback'](_0x24fd05=>{if('formatBlock'!=_0x24fd05['type'])return;const {data:_0x100b45}=_0x24fd05;if(!_0x100b45)return;if('indentBlock'!=_0x100b45['commandName']&&'outdentBlock'!=_0x100b45['commandName'])return;const _0x3a9131=_0x24fd05['getItems']()[0x0],_0x4d4bbe=_0xf34182['descriptionFactory']['getItemLabel'](_0x3a9131);return'indentBlock'==_0x100b45['commandName']?{'type':'format','content':o(_0x55dfd5,'*Indent:*\x20%0',_0x4d4bbe)}:'outdentBlock'==_0x100b45['commandName']?{'type':'format','content':o(_0x55dfd5,'*Outdent:*\x20%0',_0x4d4bbe)}:void 0x0;});}}class at extends _0x510d68{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x510d68{['afterInit'](){const _0x29e39c=this['editor'];if(!_0x29e39c['plugins']['has']('LinkEditing'))return;const _0x57442e=_0x29e39c['plugins']['get']('TrackChangesEditing'),_0x42068b=_0x29e39c['commands']['get']('link');_0x57442e['enableDefaultAttributesIntegration']('link'),_0x57442e['enableDefaultAttributesIntegration']('unlink'),_0x57442e['registerInlineAttribute']('linkHref');for(const _0x1af316 of _0x42068b['manualDecorators'])_0x57442e['registerInlineAttribute'](_0x1af316['id']),_0x57442e['descriptionFactory']['registerAttributeLabel'](_0x1af316['id'],'link\x20('+_0x1af316['label']['toLowerCase']()+')');_0x57442e['descriptionFactory']['registerDescriptionCallback'](_0x50171c=>{if('attribute'!=_0x50171c['type'])return;const {data:_0x3d1fb7}=_0x50171c;if(!_0x3d1fb7||'linkHref'!=_0x3d1fb7['key'])return;const _0x1dcd54=_0x3d1fb7['newValue'],_0x5c533c=_0x29e39c['locale'];return{'type':'format','content':null==_0x1dcd54?o(_0x5c533c,'*Remove\x20link*'):o(_0x5c533c,'*Set\x20link:*\x20%0','\x22'+_0x1dcd54+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16e843=this['editor'],_0x1d85c4=_0x16e843['locale'];_0x16e843['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3741b3=>{if('formatInline'!=_0x3741b3['type'])return;const {data:_0x1a3a9c}=_0x3741b3;if(_0x1a3a9c){if('link'==_0x1a3a9c['commandName']){const _0x53c05e=_0x1a3a9c['commandParams'][0x0];return{'type':'format','content':o(_0x1d85c4,'*Set\x20link:*\x20%0','\x22'+_0x53c05e+'\x22')};}return'unlink'==_0x1a3a9c['commandName']?{'type':'format','content':o(_0x1d85c4,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x510d68{['afterInit'](){const _0x50235=this['editor'],_0x380111=_0x50235['locale'];if(!_0x50235['plugins']['has']('LegacyListEditing'))return;const _0x2efde7=_0x50235['plugins']['get']('TrackChangesEditing'),_0x219661=_0x50235['plugins']['has']('LegacyTodoListEditing');function _0x4339ec(_0xb02374){return()=>{const _0x2db22a=_0x50235['model']['document']['selection'],_0x28b97d=_0x50235['commands']['get'](_0xb02374);if(_0x28b97d['value'])return void _0x50235['execute']('paragraph',{});const _0x368a40=_0xb02374['slice'](0x0,-0x4),_0x271c09=function(_0x157d51,_0x2171ae,_0x3391c8){let _0x260748=Array['from'](_0x157d51)['filter'](_0x4fe692=>function(_0x3f4145,_0xfb6c6d){return _0xfb6c6d['checkChild'](_0x3f4145['parent'],'listItem')&&!_0xfb6c6d['isObject'](_0x3f4145);}(_0x4fe692,_0x3391c8));_0x260748=_0x260748['filter'](_0x52ff44=>!_0x52ff44['is']('element','listItem')||_0x52ff44['getAttribute']('listType')!=_0x2171ae);const _0x4e2823=new Set();for(const _0x14da5f of _0x260748)_0x14da5f['is']('element','listItem')?_0x4e2823['add'](me(_0x14da5f)):_0x4e2823['add'](_0x14da5f);return Array['from'](_0x4e2823);}(_0x2db22a['getSelectedBlocks'](),_0x368a40,_0x50235['model']['schema']);_0x50235['model']['change'](()=>{for(const _0x3d80c3 of _0x271c09)_0x2efde7['markBlockFormat'](_0x3d80c3,{'commandName':_0xb02374,'commandParams':[{'forceValue':!_0x28b97d['value']}],'formatGroupId':'blockName'},fe(_0x3d80c3));});};}function _0x440cfd(_0x53f218){return()=>{const _0x52d270=function(_0x41cafd){let _0x53e0a6=Array['from'](_0x41cafd);const _0x66a6d5=_0x53e0a6['findIndex'](_0x40ef49=>'listItem'!=_0x40ef49['name']);return _0x66a6d5>-0x1&&(_0x53e0a6=_0x53e0a6['slice'](0x0,_0x66a6d5)),_0x53e0a6;}(_0x50235['model']['document']['selection']['getSelectedBlocks']()),_0x32bb39=_0x50235['model']['createRange'](_0x50235['model']['createPositionAt'](_0x52d270[0x0],'before'),_0x50235['model']['createPositionAt'](_0x52d270[_0x52d270['length']-0x1],'end'));_0x50235['model']['change'](()=>{_0x2efde7['markBlockFormat'](_0x32bb39,{'commandName':_0x53f218,'commandParams':[],'formatGroupId':'listIndent'},function(_0x51bb23){const _0x3f3fbc=new Set();for(const _0x47d6e0 of _0x51bb23){let _0x2d3932=_0x47d6e0['nextSibling'];for(;_0x2d3932&&_0x2d3932['getAttribute']('listIndent')>_0x47d6e0['getAttribute']('listIndent');)_0x3f3fbc['add'](_0x2d3932),_0x2d3932=_0x2d3932['nextSibling'];}return Array['from'](_0x3f3fbc);}(_0x52d270));});};}_0x2efde7['enableCommand']('numberedList',_0x4339ec('numberedList')),_0x2efde7['enableCommand']('bulletedList',_0x4339ec('bulletedList')),_0x219661&&_0x2efde7['enableCommand']('todoList',_0x4339ec('todoList')),_0x2efde7['enableCommand']('indentList',_0x440cfd('indentList')),_0x2efde7['enableCommand']('outdentList',_0x440cfd('outdentList')),_0x219661&&_0x2efde7['enableCommand']('checkTodoList',()=>{const _0x57b5eb=_0x50235['commands']['get']('checkTodoList'),_0x4f1f14=Array['from'](_0x57b5eb['_selectedElements']);_0x4f1f14['filter'](_0x487b2c=>_0x487b2c['getAttribute']('todoListChecked')!=_0x57b5eb['value']),_0x50235['model']['change'](()=>{for(const _0x4b0f34 of _0x4f1f14)_0x2efde7['markBlockFormat'](_0x4b0f34,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x57b5eb['value']}]});});}),_0x2efde7['descriptionFactory']['registerElementLabel']('listItem',_0x391c15=>o(_0x380111,'ELEMENT_LIST_ITEM',_0x391c15)),_0x2efde7['descriptionFactory']['registerDescriptionCallback'](_0x4d977a=>{if('formatBlock'!=_0x4d977a['type']&&'formatInline'!=_0x4d977a['type'])return;const {data:_0x172f49}=_0x4d977a;if(_0x172f49){if('numberedList'==_0x172f49['commandName']||'bulletedList'==_0x172f49['commandName']||'todoList'==_0x172f49['commandName'])switch(_0x172f49['commandName']['replace']('List','')){case'bulleted':return _0x4268f0(o(_0x380111,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4268f0(o(_0x380111,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4268f0(o(_0x380111,'ELEMENT_TODO_LIST'));}if('indentList'==_0x172f49['commandName'])return{'type':'format','content':o(_0x380111,'*Indent:*\x20%0',o(_0x380111,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x172f49['commandName'])return{'type':'format','content':o(_0x380111,'*Outdent:*\x20%0',o(_0x380111,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x172f49['commandName'])return _0x172f49['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x380111,'*Check\x20item*')}:{'type':'format','content':o(_0x380111,'*Uncheck\x20item*')};}function _0x4268f0(_0x423c93){return{'type':'format','content':o(_0x380111,'*Change\x20to:*\x20%0',_0x423c93)};}});}}function me(_0x1b93e8){const _0x55ad75=_0x1b93e8['getAttribute']('listIndent');if(0x0==_0x55ad75)return _0x1b93e8;let _0xd1c0e6=_0x1b93e8;for(;_0x1b93e8['previousSibling']&&_0x1b93e8['previousSibling']['is']('element','listItem');){const _0x435225=_0x1b93e8['previousSibling']['getAttribute']('listIndent');if(_0x435225==_0x55ad75)_0xd1c0e6=_0x1b93e8['previousSibling'];else{if(_0x435225<_0x55ad75)break;}_0x1b93e8=_0x1b93e8['previousSibling'];}return _0xd1c0e6;}function fe(_0x59c2a7){const _0x23883f=[];if(_0x59c2a7['is']('element','listItem')&&_0x59c2a7['getAttribute']('listIndent')>0x0){let _0x4eb303=_0x59c2a7['nextSibling'];for(;_0x4eb303&&'listItem'==_0x4eb303['name']&&_0x4eb303['getAttribute']('listIndent')==_0x59c2a7['getAttribute']('listIndent');)_0x23883f['push'](_0x4eb303),_0x4eb303=_0x4eb303['nextSibling'];}return _0x23883f;}class K extends _0x510d68{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4668c4=this['editor']['config']['get']('list.properties'),_0x55b912=this['editor']['plugins']['get']('TrackChangesEditing');_0x4668c4['styles']&&_0x55b912['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4668c4['reversed']&&_0x55b912['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4668c4['startIndex']&&_0x55b912['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x55b912['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3e1112,_0x2f769f={}){const _0x391feb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17538d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x391feb['markMultiRangeBlockFormat'](_0x17538d,{'commandName':'listStyle','commandParams':[{'type':_0x2f769f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x366e26,_0x27fa38={}){const _0x673a4e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x971e97=this['_getSuggestionBlocks'](_0x1f3b97=>_0x1f3b97['is']('element','listItem')&&'numbered'===_0x1f3b97['getAttribute']('listType'));if(_0x971e97['length']<0x1)return;const _0x2bf0bd=_0x971e97['map'](_0x40d0a6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40d0a6,'before'),this['editor']['model']['createPositionAt'](_0x40d0a6,0x0)));this['editor']['model']['change'](()=>{_0x673a4e['markMultiRangeBlockFormat'](_0x2bf0bd,{'commandName':'listReversed','commandParams':[{'reversed':_0x27fa38['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x134271,_0xb5a1c2={}){const _0x4295fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x220a26=this['_getSuggestionBlocks'](_0x51f484=>_0x51f484['is']('element','listItem')&&'numbered'===_0x51f484['getAttribute']('listType'));if(_0x220a26['length']<0x1)return;const _0x393f27=_0x220a26['map'](_0x30feea=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30feea,'before'),this['editor']['model']['createPositionAt'](_0x30feea,0x0)));this['editor']['model']['change'](()=>{_0x4295fc['markMultiRangeBlockFormat'](_0x393f27,{'commandName':'listStart','commandParams':[{'startIndex':_0xb5a1c2['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x289aad){if('formatBlock'!=_0x289aad['type']&&'formatInline'!=_0x289aad['type'])return;const _0xa0efe=this['editor']['locale'],{data:_0x497be2}=_0x289aad;if(!_0x497be2)return;let _0x385e7e,_0x916135;switch(_0x497be2['commandName']){case'listStyle':_0x385e7e='*Change\x20to:*\x20%0',_0x916135={'type':'format','content':o(_0xa0efe,_0x385e7e,o(_0xa0efe,this['_getTranslationKeyForListStyle'](_0x497be2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x385e7e=_0x497be2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x916135={'type':'format','content':o(_0xa0efe,_0x385e7e)};break;case'listStart':_0x385e7e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x916135={'type':'format','content':o(_0xa0efe,_0x385e7e,_0x497be2['commandParams'][0x0]['startIndex'])};}return _0x916135;}['_getSuggestionBlocksForListStyle'](){const _0xf4e64e=this['editor']['plugins']['get']('LegacyListUtils');let _0x1a8872=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1a8872[0x0]?.['is']('element','listItem')&&_0x1a8872['unshift'](..._0xf4e64e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1a8872[_0x1a8872['length']-0x1]?.['is']('element','listItem')&&_0x1a8872['push'](..._0xf4e64e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1a8872=[...new Set(_0x1a8872)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1a8872=_0x1a8872['filter'](_0x34ecff=>_0x34ecff['is']('element','listItem'))),_0x1a8872;}['_getSuggestionBlocks'](_0x1b4325){const _0x8cfe9d=this['editor']['plugins']['get']('LegacyListUtils');let _0x32c1b1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1b4325)['map'](_0x4e0dd6=>{const _0x14462d=this['editor']['model']['createPositionAt'](_0x4e0dd6,0x0);return[..._0x8cfe9d['getSiblingNodes'](_0x14462d,'backward'),..._0x8cfe9d['getSiblingNodes'](_0x14462d,'forward')];})['flat']();return _0x32c1b1=[...new Set(_0x32c1b1)],_0x32c1b1;}['_getTranslationKeyForListStyle'](_0x523d09){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x523d09)||'default')['toUpperCase']()+'_LIST_'+_0x523d09['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x510d68{['afterInit'](){const _0x87ca14=this['editor'];if(!_0x87ca14['plugins']['has']('MediaEmbedEditing'))return;const _0x43669c=_0x87ca14['plugins']['get']('TrackChangesEditing'),_0x1ddc09=_0x87ca14['locale'];_0x43669c['enableCommand']('mediaEmbed'),_0x43669c['descriptionFactory']['registerElementLabel']('media',_0x1b1425=>o(_0x1ddc09,'ELEMENT_MEDIA',_0x1b1425)),_0x87ca14['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x7ca0cd,{writer:_0x5a4599,options:_0x31b9c8})=>{if(_0x31b9c8['showSuggestionHighlights'])return _0x5a4599['createEmptyElement']('div');},'converterPriority':'high'}),_0x87ca14['data']['downcastDispatcher']['on']('attribute:url:media',(_0xb207ac,_0x29f20b,_0x1ad6ae)=>{_0x1ad6ae['options']['showSuggestionHighlights']&&_0xb207ac['stop']();},{'priority':'high'});}}class gt extends _0x510d68{['afterInit'](){const _0x213e89=this['editor'];_0x213e89['plugins']['has']('MentionEditing')&&_0x213e89['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x510d68{['afterInit'](){const _0x388a89=this['editor'],_0x1b6fbf=_0x388a89['plugins']['get']('TrackChangesEditing');_0x388a89['plugins']['has']('MultiLevelList')&&(_0x1b6fbf['enableDefaultAttributesIntegration']('multiLevelList'),_0x1b6fbf['registerBlockAttribute']('listMarkerStyle'),_0x1b6fbf['descriptionFactory']['registerDescriptionCallback'](_0x31c319=>this['handleDescriptions'](_0x31c319)));}['handleDescriptions'](_0x47ff69){const _0x9965f5=this['editor']['locale'],{data:_0x55f76d}=_0x47ff69,_0x206bf4={'type':'format','content':''};if(_0x55f76d&&'listMarkerStyle'==_0x55f76d['key']){if(!_0x55f76d['oldValue'])return{'type':'format','content':o(_0x9965f5,'*Set\x20format:*\x20%0',o(_0x9965f5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x55f76d['newValue']+')'};if(!_0x55f76d['newValue']){let _0x33b04c=_0x47ff69['head'];for(;_0x33b04c;){if(_0x33b04c['data']&&'listType'==_0x33b04c['data']['key']&&_0x33b04c['data']['newValue'])return _0x206bf4;_0x33b04c=_0x33b04c['next'];}return{'type':'format','content':o(_0x9965f5,'*Remove\x20format:*\x20%0',o(_0x9965f5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x55f76d['oldValue']+')'};}}}}class mt extends _0x510d68{['afterInit'](){const _0x326296=this['editor'];if(!_0x326296['plugins']['has']('PageBreakEditing'))return;_0x326296['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2e72e1=_0x326296['plugins']['get']('TrackChangesEditing'),_0x359379=_0x326296['locale'];_0x2e72e1['descriptionFactory']['registerElementLabel']('pageBreak',_0x780470=>o(_0x359379,'ELEMENT_PAGE_BREAK',_0x780470));}}class dt extends _0x510d68{['afterInit'](){const _0x15b8fd=this['editor'];if(!_0x15b8fd['plugins']['has']('Paragraph'))return;const _0x5b4eaa=_0x15b8fd['locale'],_0x324adb=_0x15b8fd['plugins']['get']('TrackChangesEditing');_0x324adb['descriptionFactory']['registerElementLabel']('paragraph',_0x12429d=>o(_0x5b4eaa,'ELEMENT_PARAGRAPH',_0x12429d)),_0x324adb['enableDefaultAttributesIntegration']('paragraph'),_0x324adb['enableCommand']('insertParagraph'),_0x15b8fd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x15b8fd),{'priority':'highest'}),_0x15b8fd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ed346,_0x2a047c,_0x2589e8)=>{_0x2589e8['options']['showSuggestionHighlights']&&nr(_0x15b8fd,{'showActiveMarker':!0x1})(_0x3ed346,_0x2a047c,_0x2589e8);},{'priority':'highest'});const _0x4c38f3=_0x324adb['descriptionFactory'];_0x4c38f3['registerDescriptionCallback'](_0x5d4255=>{if('insertion'!==_0x5d4255['type'])return;const {start:_0x3e41a7,end:_0x458122}=_0x5d4255['getFirstRange']();if(!_0x3e41a7['isTouching'](_0x458122)||!_0x3e41a7['nodeAfter'])return;const _0x2536ce=_0x15b8fd['model']['schema'],_0x1d533d=_0x3e41a7['nodeAfter'];return _0x2536ce['isBlock'](_0x1d533d)&&!_0x2536ce['isLimit'](_0x1d533d)&&_0x2536ce['checkChild'](_0x1d533d,'$text')?{'type':'insertion','content':o(_0x5b4eaa,'*Insert:*\x20%0',_0x4c38f3['getItemLabel'](_0x1d533d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35bbdf=this['editor'],_0x1adccb=_0x35bbdf['locale'];_0x35bbdf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x420c71=>{if('formatBlock'!=_0x420c71['type'])return;const {data:_0x2a5711}=_0x420c71;return _0x2a5711&&'paragraph'==_0x2a5711['commandName']?{'type':'format','content':o(_0x1adccb,'*Change\x20to:*\x20%0',o(_0x1adccb,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x29d3e6,{showActiveMarker:_0x2762f0=!0x0}={}){return(_0x44d063,_0x17b19c,_0x26b972)=>{const _0x2e7250=_0x29d3e6['plugins']['get']('TrackChangesEditing'),_0x1229c5=_0x17b19c['markerRange']['start'],_0x5029f6=_0x17b19c['markerRange']['end'],_0x773459=_0x29d3e6['model']['schema'];if(!_0x1229c5['isTouching'](_0x5029f6)||!_0x1229c5['nodeAfter'])return;const _0xc256f1=_0x1229c5['nodeAfter'];if(_0x773459['isBlock'](_0xc256f1)&&!_0x773459['isLimit'](_0xc256f1)&&_0x773459['checkChild'](_0xc256f1,'$text')){if(!_0x26b972['consumable']['consume'](_0x17b19c['markerRange'],_0x44d063['name']))return;const _0x532628=_0x26b972['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x296e59=_0x26b972['mapper']['toViewPosition'](_0x5029f6);_0x2762f0&&_0x2e7250['activeMarkers']['includes'](_0x17b19c['markerName'])&&_0x26b972['writer']['addClass']('ck-suggestion-marker--active',_0x532628),_0x26b972['writer']['insert'](_0x296e59,_0x532628),_0x26b972['mapper']['bindElementToMarker'](_0x532628,_0x17b19c['markerName']);}};}class pt extends _0x510d68{['afterInit'](){const _0x40cdca=this['editor'];if(!_0x40cdca['plugins']['has']('RemoveFormatEditing'))return;_0x40cdca['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x332521=this['editor'];_0x332521['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2789d5=>{if('formatBlock'!=_0x2789d5['type']&&'formatInline'!=_0x2789d5['type'])return;const {data:_0x458471}=_0x2789d5;return _0x458471&&'removeFormat'==_0x458471['commandName']?{'type':'format','content':o(_0x332521['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x510d68{['afterInit'](){const _0x216807=this['editor'];if(!_0x216807['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xa30246=_0x216807['plugins']['get']('TrackChangesEditing');_0xa30246['enableCommand']('goToPreviousRestrictedEditingException'),_0xa30246['enableCommand']('goToNextRestrictedEditingException');const _0x1dbcb5=_0x216807['plugins']['get']('RestrictedEditingModeEditing');_0x1dbcb5['enableCommand']('trackChanges'),_0x1dbcb5['enableCommand']('acceptSuggestion'),_0x1dbcb5['enableCommand']('discardSuggestion'),_0x1dbcb5['enableCommand']('acceptAllSuggestions'),_0x1dbcb5['enableCommand']('discardAllSuggestions'),_0x1dbcb5['enableCommand']('acceptSelectedSuggestions'),_0x1dbcb5['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x510d68{static get['requires'](){return[_0x4a1986];}['init'](){const _0x65bbdd=this['editor'],_0x4655cf=_0x65bbdd['plugins']['get']('TrackChangesEditing');_0x4655cf['enableCommand']('shiftEnter'),_0x65bbdd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x65bbdd),{'priority':'high'}),_0x65bbdd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x65bbdd),{'priority':'high'}),_0x65bbdd['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5216da,_0x23b0c5,_0x431cd1)=>{_0x431cd1['options']['showSuggestionHighlights']&&de(_0x65bbdd,{'showActiveMarker':!0x1})(_0x5216da,_0x23b0c5,_0x431cd1);}),_0x4655cf['descriptionFactory']['registerElementLabel']('softBreak',_0x134568=>o(_0x65bbdd['locale'],'ELEMENT_LINE_BREAK',_0x134568));}}function de(_0x58d579,{showActiveMarker:_0x4a5844=!0x0}={}){return(_0xda82cd,_0x468588,_0x586b54)=>{const _0x472ae1=_0x58d579['plugins']['get']('TrackChangesEditing');if(!_0x586b54['consumable']['test'](_0x468588['markerRange'],_0xda82cd['name']))return;const _0x3a5bbf=_0x58d579['model'];for(const _0x465e40 of _0x468588['markerRange']['getItems']()){if(!_0x465e40['is']('element','softBreak'))continue;const _0x518a48='deletion'==_0x468588['markerName']['split'](':')[0x1]?'merge':'split',_0x485770=_0x586b54['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x518a48}),_0x268207=_0x586b54['mapper']['toViewPosition'](_0x3a5bbf['createPositionBefore'](_0x465e40));_0x4a5844&&_0x472ae1['activeMarkers']['includes'](_0x468588['markerName'])&&_0x586b54['writer']['addClass']('ck-suggestion-marker--active',_0x485770),_0x586b54['writer']['insert'](_0x268207,_0x485770),_0x586b54['mapper']['bindElementToMarker'](_0x485770,_0x468588['markerName']);}};}class wt extends _0x510d68{['afterInit'](){const _0x474fdb=this['editor'],_0x1241e5=_0x474fdb['model'],_0x5962c5=_0x474fdb['locale'];if(!_0x474fdb['plugins']['has']('StandardEditingModeEditing'))return;const _0x105181=_0x474fdb['plugins']['get']('TrackChangesEditing'),_0x3d3166='restrictedEditingException',_0x196271=_0x474fdb['commands']['get'](_0x3d3166);_0x105181['enableCommand'](_0x3d3166,(_0x21b526,_0x42f9d6={})=>{const _0x1789b1=_0x1241e5['document']['selection'];if(_0x1789b1['isCollapsed'])return void _0x21b526(_0x42f9d6);const _0x40f52e=void 0x0!==_0x42f9d6['forceValue']?_0x42f9d6['forceValue']:!_0x196271['value'];_0x1241e5['change'](()=>{const _0x1627d0=Array['from'](_0x1789b1['getRanges']());for(const _0x29f7ad of _0x1627d0){const _0x1abbf2=_0x40f52e?[_0x29f7ad]:io(_0x3d3166,_0x29f7ad,_0x1241e5);for(const _0xda74b5 of _0x1abbf2)_0x105181['markInlineFormat'](_0xda74b5,{'commandName':_0x3d3166,'commandParams':[{'forceValue':_0x40f52e}]});}});}),_0x105181['descriptionFactory']['registerDescriptionCallback'](_0x3e90f7=>{if('formatBlock'!=_0x3e90f7['type']&&'formatInline'!=_0x3e90f7['type'])return;const {data:_0x589ffe}=_0x3e90f7;return _0x589ffe&&_0x589ffe['commandName']==_0x3d3166?_0x589ffe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5962c5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5962c5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x510d68{['afterInit'](){const _0xc118=this['editor'];if(!_0xc118['plugins']['has']('Style')||!_0xc118['plugins']['has']('DataSchema'))return;const _0x25a900=_0xc118['plugins']['get']('TrackChangesEditing'),_0xaef970=_0xc118['locale'],_0x54ad84=_0xc118['config']['get']('style')||{},_0x429af7=_0xc118['plugins']['get']('GeneralHtmlSupport'),_0x3fdb98=_0xc118['plugins']['get']('StyleUtils')['normalizeConfig'](_0xc118['plugins']['get']('DataSchema'),_0x54ad84['definitions']);_0x25a900['enableDefaultAttributesIntegration']('style');const _0x21934b=new Set();for(const _0x4443bb of _0x3fdb98['block']){const _0x13f02c=_0x429af7['getGhsAttributeNameForElement'](_0x4443bb['element']);_0x21934b['add'](_0x13f02c);}const _0x4c15b0=new Set();for(const _0x22a120 of _0x3fdb98['inline']){const _0xe66929=_0x429af7['getGhsAttributeNameForElement'](_0x22a120['element']);_0x4c15b0['add'](_0xe66929);for(const _0x4bca81 of _0x22a120['ghsAttributes'])_0x4c15b0['add'](_0x4bca81);}for(const _0x1d0d33 of _0x21934b)_0x25a900['registerBlockAttribute'](_0x1d0d33),_0x25a900['descriptionFactory']['registerAttributeLabel'](_0x1d0d33,o(_0xaef970,'FORMAT_STYLE'));for(const _0xeb1919 of _0x4c15b0)_0x25a900['registerInlineAttribute'](_0xeb1919),_0x25a900['descriptionFactory']['registerAttributeLabel'](_0xeb1919,o(_0xaef970,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x74b239=this['editor'],_0x2a3a27=_0x74b239['locale'];_0x74b239['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x545168=>{if('formatBlock'!=_0x545168['type']&&'formatInline'!=_0x545168['type'])return;const {data:_0x32d790}=_0x545168;return _0x32d790&&'style'===_0x32d790['commandName']?_0x32d790['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a3a27,'*Set\x20format:*\x20%0',_0x32d790['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2a3a27,'*Remove\x20format:*\x20%0',_0x32d790['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x510d68{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3bf777){super(_0x3bf777),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3dfd2f=this['editor'],_0x47ae4f=_0x3dfd2f['model']['document']['selection'];if(!_0x3dfd2f['plugins']['has']('TableEditing'))return;const _0x3203de=_0x3dfd2f['locale'],_0x45f660=_0x3dfd2f['plugins']['get']('TrackChangesEditing'),_0xaa66c8=_0x3dfd2f['plugins']['get']('TableUtils');_0x45f660['descriptionFactory']['registerElementLabel']('table',_0x189230=>o(_0x3203de,'ELEMENT_TABLE',_0x189230)),this['_setupColumnsRowsFixing'](),_0x45f660['enableCommand']('insertTable'),_0x45f660['enableCommand']('selectTableRow'),_0x45f660['enableCommand']('selectTableColumn');for(const _0x12530d of['insertTableRowAbove','insertTableRowBelow']){const _0x4d9dfb=_0x3dfd2f['commands']['get'](_0x12530d);_0x45f660['enableCommand'](_0x12530d,_0x50c468=>{_0x3dfd2f['model']['change'](_0x4fcd48=>{_0x50c468();const _0x740afb='above'===_0x4d9dfb['order'],_0x1fcfa5=_0xaa66c8['getSelectionAffectedTableCells'](_0x47ae4f),_0x49a9f0=_0xaa66c8['getRowIndexes'](_0x1fcfa5),_0x27be98=_0x740afb?_0x49a9f0['first']-0x1:_0x49a9f0['last']+0x1,_0x17ee5b=_0x1fcfa5[0x0]['findAncestor']('table'),_0x46c389=_0xaa66c8['createTableWalker'](_0x17ee5b,{'startRow':_0x27be98,'endRow':_0x27be98}),_0x3a6f82=Array['from'](_0x46c389)['map'](_0x28ae3a=>_0x4fcd48['createRangeOn'](_0x28ae3a['cell']));_0x45f660['markMultiRangeInsertion'](_0x3a6f82,'tableRow');});});}for(const _0x2d0c99 of['insertTableColumnLeft','insertTableColumnRight']){const _0x29ae9f=_0x3dfd2f['commands']['get'](_0x2d0c99);_0x45f660['enableCommand'](_0x2d0c99,_0x387634=>{_0x3dfd2f['model']['change'](_0x265032=>{_0x387634();const _0xeb030='left'===_0x29ae9f['order'],_0x59a9c5=_0xaa66c8['getSelectionAffectedTableCells'](_0x47ae4f),_0x2b1314=_0xaa66c8['getColumnIndexes'](_0x59a9c5),_0xd078ed=_0xeb030?_0x2b1314['first']-0x1:_0x2b1314['last']+0x1,_0x4e1f20=_0x59a9c5[0x0]['findAncestor']('table'),_0x2a9a60=_0xaa66c8['createTableWalker'](_0x4e1f20,{'startRow':0x0,'column':_0xd078ed,'includeAllSlots':!0x1}),_0x268c1e=Array['from'](_0x2a9a60)['map'](_0xda854=>_0x265032['createRangeOn'](_0xda854['cell']));_0x45f660['markMultiRangeInsertion'](_0x268c1e,'tableColumn');});});}for(const _0x2cc297 of['removeTableRow','removeTableColumn']){const _0x2b37fb=_0x2cc297['substr'](0xb),_0x4574bf=_0x2b37fb['toLowerCase'](),_0x4d7a15=_0x4574bf['substr'](0x0,0x3)+'span',_0x491044='table'+_0x2b37fb,_0x1c11e8='min'+_0x2b37fb,_0x1e1612='max'+_0x2b37fb;_0x45f660['enableCommand'](_0x2cc297,()=>{_0x3dfd2f['model']['change'](_0x236e01=>{const _0x329ec9=_0xaa66c8['getSelectionAffectedTableCells'](_0x47ae4f),_0x2ea062=_0x329ec9[0x0]['findAncestor']('table');let _0x3af04e;if('removeTableRow'==_0x2cc297){const _0x1c5d8b=_0xaa66c8['getRowIndexes'](_0x329ec9);_0x3af04e={'startRow':_0x1c5d8b['first'],'endRow':_0x1c5d8b['last'],'includeAllSlots':!0x0};}else{const _0x2c7ff1=_0xaa66c8['getColumnIndexes'](_0x329ec9);_0x3af04e={'startColumn':_0x2c7ff1['first'],'endColumn':_0x2c7ff1['last'],'includeAllSlots':!0x0};}const _0x3be7b2=_0xaa66c8['createTableWalker'](_0x2ea062,_0x3af04e),_0x51ee61=Array['from'](_0x3be7b2)['map'](({cell:_0x6a8c79})=>_0x6a8c79),_0xbd8531=Ee(_0x51ee61['filter'](_0x119907=>_0x119907['hasAttribute'](_0x4d7a15))),_0x3bcd92=Ee(_0x51ee61['filter'](_0x2fa8a9=>!_0x2fa8a9['hasAttribute'](_0x4d7a15)))['map'](_0x48d59d=>_0x236e01['createRangeOn'](_0x48d59d)),_0x2a96c1=_0x45f660['markMultiRangeDeletion'](_0x3bcd92,_0x491044);if(_0x2a96c1&&('tableRow'==_0x2a96c1['subType']||'tableColumn'==_0x2a96c1['subType'])){const _0x4ad4cc=this['_getSuggestionCoords'](_0x2a96c1);for(const _0x382b8c of _0xbd8531){const _0x3907d8=_0x236e01['createRangeOn'](_0x382b8c),_0x1ebaaa=_0xaa66c8['getCellLocation'](_0x382b8c),_0x2d3eb6=_0x382b8c['getAttribute'](_0x4d7a15)-0x1,_0x2c3733=_0x4ad4cc[_0x1c11e8],_0x5bc61f=_0x4ad4cc[_0x1e1612];_0x2c3733<=_0x1ebaaa[_0x4574bf]&&_0x1ebaaa[_0x4574bf]+_0x2d3eb6<=_0x5bc61f&&_0x2a96c1['addRange'](_0x3907d8);}}});});}function _0x83a19b(_0x25ff22){const _0x27f5d1=Array['from'](_0x47ae4f['getRanges']())['map'](_0x3ad9de=>_0x1c4270['fromRange'](_0x3ad9de));_0x3dfd2f['model']['change'](_0x88ef35=>{const _0x568cbf=_0x88ef35['batch'];_0x25ff22=_0x25ff22['filter'](_0x4bc7c8=>'$graveyard'!=_0x4bc7c8['root']['rootName']),_0x88ef35['setSelection'](_0x25ff22),_0x3dfd2f['commands']['get']('removeTableRow')['refresh'](),_0x3dfd2f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3dfd2f['model']['enqueueChange'](()=>{_0x3dfd2f['model']['enqueueChange'](_0x568cbf,_0x1b4792=>{const _0x535336=_0x27f5d1['filter'](_0x42589e=>'$graveyard'!=_0x42589e['root']['rootName']);_0x535336['length']>0x0&&_0x1b4792['setSelection'](_0x535336);for(const _0x468f74 of _0x27f5d1)_0x468f74['detach']();});});});}function _0x18ba7c(_0x18d978){_0x3dfd2f['model']['change'](_0xdc5992=>{const _0x4aa7c8=Array['from'](_0x47ae4f['getRanges']())['map'](_0x2fde49=>_0x1c4270['fromRange'](_0x2fde49)),_0x35fea3=[];for(const _0xb60f4a of _0x18d978)for(const _0x5f24ab of _0xb60f4a['getItems']({'shallow':!0x0}))_0x35fea3['push'](_0x5f24ab);for(const _0x56e16d of _0x35fea3)'$graveyard'!=_0x56e16d['root']['rootName']&&(_0xdc5992['setSelection'](_0xdc5992['createPositionAt'](_0x56e16d,0x0)),_0x3dfd2f['commands']['get']('removeTableColumn')['refresh'](),_0x3dfd2f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x347821=_0x4aa7c8['filter'](_0x104d10=>'$graveyard'!=_0x104d10['root']['rootName']);_0x347821['length']>0x0&&_0xdc5992['setSelection'](_0x347821);for(const _0x169814 of _0x4aa7c8)_0x169814['detach']();});}function _0xb1480d(_0x5a72e2,_0x382d57){return _0x382d57['every'](_0x3e0ad5=>_0x5a72e2['some'](_0x2eab7c=>_0x2eab7c['end']['isEqual'](_0x3e0ad5['start'])||_0x3e0ad5['end']['isEqual'](_0x2eab7c['start'])));}function _0x59d348(_0x576154,_0x5bfcf9){return!_0x576154['some'](_0x1d3742=>_0x5bfcf9['some'](_0x21761a=>_0x1d3742['isIntersecting'](_0x21761a)))&&_0x576154['some'](_0x44a4b0=>_0x5bfcf9['some'](_0x355910=>_0x44a4b0['end']['isTouching'](_0x355910['start'])));}_0x3dfd2f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x23d2f6,_0x50dc64,_0x5da343)=>{if(!_0x5da343['options']['showSuggestionHighlights'])return;const _0x4a068d=_0x50dc64['item'];if(!_0x4a068d)return;const _0x542261=_0x5da343['mapper']['toViewElement'](_0x4a068d);function _0x1912bf(_0x2b1d87){return Array['isArray'](_0x2b1d87)?_0x2b1d87:[_0x2b1d87];}_0x542261&&'tableCell'===_0x4a068d['name']&&_0x3f97fa(_0x542261,_0x5da343['writer'],(_0x35bed9,_0x5ce2d2,_0x24f9bd)=>_0x24f9bd['addClass'](_0x1912bf(_0x5ce2d2['classes']),_0x35bed9),(_0x4dee54,_0x15d482,_0x532cd4)=>_0x532cd4['removeClass'](_0x1912bf(_0x15d482['classes']),_0x4dee54));},{'priority':'highest'}),_0x45f660['descriptionFactory']['registerDescriptionCallback'](_0x8c9ddd=>{if('insertion'!=_0x8c9ddd['type']&&'deletion'!=_0x8c9ddd['type'])return;const _0x38393a=_0x8c9ddd['getContainedElement']();if(null!=_0x38393a&&_0x38393a['is']('element','table')){if('insertion'==_0x8c9ddd['type']){const _0x3cec31=_0x8c9ddd['getItems']()['filter'](_0x256fc9=>_0x256fc9['is']('$textProxy'))['map'](_0x39ec27=>_0x39ec27['data']);if(_0x3cec31['length'])return{'type':'insertion','content':o(_0x3203de,'*Insert:*\x20%0',o(_0x3203de,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3cec31['join']('\x20')+'\x22'))};}if('deletion'==_0x8c9ddd['type']){const _0x5631c2=_0x8c9ddd['getItems']()['filter'](_0x3d29a5=>_0x3d29a5['is']('$textProxy'))['map'](_0x3b1efe=>_0x3b1efe['data']);if(_0x5631c2['length'])return{'type':'deletion','content':o(_0x3203de,'*Remove:*\x20%0',o(_0x3203de,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5631c2['join']('\x20')+'\x22'))};}}}),_0x45f660['descriptionFactory']['registerDescriptionCallback'](_0x201edb=>{if('tableRow'==_0x201edb['subType']){const _0x174c7d=_0x201edb['getItems']()['filter'](_0x93c60a=>_0x93c60a['is']('$textProxy'))['map'](_0x12ef00=>_0x12ef00['data']),_0xdaefde=this['_getSuggestionCoords'](_0x201edb),_0x5cb26e=_0xdaefde['maxRow']-_0xdaefde['minRow']+0x1;if('insertion'==_0x201edb['type'])return _0x174c7d['length']?{'type':'insertion','content':o(_0x3203de,'*Insert:*\x20%0',o(_0x3203de,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cb26e,'\x22'+_0x174c7d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3203de,'*Insert:*\x20%0',o(_0x3203de,'ELEMENT_TABLE_ROW',_0x5cb26e))};if('deletion'==_0x201edb['type'])return _0x174c7d['length']?{'type':'deletion','content':o(_0x3203de,'*Remove:*\x20%0',o(_0x3203de,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cb26e,'\x22'+_0x174c7d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3203de,'*Remove:*\x20%0',o(_0x3203de,'ELEMENT_TABLE_ROW',_0x5cb26e))};}if('tableColumn'==_0x201edb['subType']){const _0x428885=_0x201edb['getItems']()['filter'](_0x269196=>_0x269196['is']('$textProxy'))['map'](_0x3f95f9=>_0x3f95f9['data']),_0x3ae002=this['_getSuggestionCoords'](_0x201edb),_0x1f738f=_0x3ae002['maxColumn']-_0x3ae002['minColumn']+0x1;if('insertion'==_0x201edb['type'])return _0x428885['length']?{'type':'insertion','content':o(_0x3203de,'*Insert:*\x20%0',o(_0x3203de,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1f738f,'\x22'+_0x428885['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3203de,'*Insert:*\x20%0',o(_0x3203de,'ELEMENT_TABLE_COLUMN',_0x1f738f))};if('deletion'==_0x201edb['type'])return _0x428885['length']?{'type':'deletion','content':o(_0x3203de,'*Remove:*\x20%0',o(_0x3203de,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1f738f,'\x22'+_0x428885['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3203de,'*Remove:*\x20%0',o(_0x3203de,'ELEMENT_TABLE_COLUMN',_0x1f738f))};}}),_0x45f660['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x83a19b),_0x45f660['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x83a19b),_0x45f660['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x18ba7c),_0x45f660['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x18ba7c),_0x45f660['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xb1480d),_0x45f660['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xb1480d),_0x45f660['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x59d348),_0x45f660['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x59d348);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5ad6ea=this['editor'],_0x16373e=_0x5ad6ea['model']['document']['selection'];return(_0x1dce04,_0xad8060)=>{_0x5ad6ea['model']['change'](_0x3e71ef=>{const {commandName:_0x168cb8,commandParams:_0xf79cfe}=_0xad8060;let _0x23a9b7=_0x1dce04[0x0]['end']['nodeBefore'];_0xf79cfe&&_0xf79cfe[0x0]&&!0x1===_0xf79cfe[0x0]['forceValue']&&(_0x23a9b7=_0x1dce04[0x0]['start']['nodeAfter']);const _0x120799=_0x3e71ef['createRangeIn'](_0x23a9b7);if('$graveyard'==_0x120799['root']['rootName'])return;const _0x5cd95b=Array['from'](_0x16373e['getRanges']())['map'](_0x44274d=>_0x1c4270['fromRange'](_0x44274d));_0x3e71ef['setSelection'](_0x120799),_0x5ad6ea['commands']['get'](_0x168cb8)['refresh'](),_0xf79cfe['push']({'forceDefaultExecution':!0x0}),_0x5ad6ea['execute'](_0x168cb8,..._0xf79cfe);const _0x1d9f2d=_0x5cd95b['filter'](_0x2e90cf=>'$graveyard'!=_0x2e90cf['root']['rootName']);_0x1d9f2d['length']>0x0&&_0x3e71ef['setSelection'](_0x1d9f2d);for(const _0x3550a0 of _0x5cd95b)_0x3550a0['detach']();});};}['_getCoordsForCells'](_0x2ad192){const _0x334f09=this['editor']['plugins']['get']('TableUtils');let _0x3ce03f=Number['MAX_SAFE_INTEGER'],_0x1f2c70=Number['MIN_SAFE_INTEGER'],_0x4dd781=Number['MAX_SAFE_INTEGER'],_0x50566f=Number['MIN_SAFE_INTEGER'];for(const _0x4ba321 of _0x2ad192){if('$graveyard'==_0x4ba321['root']['rootName'])continue;const {row:_0x40c914,column:_0x49e43a}=_0x334f09['getCellLocation'](_0x4ba321),_0x13b10b=_0x4ba321['hasAttribute']('rowspan')?_0x4ba321['getAttribute']('rowspan')-0x1:0x0,_0x4e4341=_0x4ba321['hasAttribute']('colspan')?_0x4ba321['getAttribute']('colspan')-0x1:0x0;_0x3ce03f=_0x40c914<_0x3ce03f?_0x40c914:_0x3ce03f,_0x1f2c70=_0x40c914+_0x13b10b>_0x1f2c70?_0x40c914+_0x13b10b:_0x1f2c70,_0x4dd781=_0x49e43a<_0x4dd781?_0x49e43a:_0x4dd781,_0x50566f=_0x49e43a+_0x4e4341>_0x50566f?_0x49e43a+_0x4e4341:_0x50566f;}return{'minRow':_0x3ce03f,'maxRow':_0x1f2c70,'minColumn':_0x4dd781,'maxColumn':_0x50566f};}['_setupColumnsRowsFixing'](){const _0x4a6736=this['editor'],_0x26131c=_0x4a6736['plugins']['get']('TrackChangesEditing'),_0x1e75f7=_0x4a6736['plugins']['get']('TableUtils');_0x4a6736['model']['document']['on']('change:data',()=>{const _0x591f1e=Array['from'](_0x4a6736['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x272b4d,data:_0x27104d}of _0x591f1e){const {group:_0x17cc94,id:_0x6c46ab,subType:_0x391384}=_0x26131c['_splitMarkerName'](_0x272b4d);if('suggestion'!=_0x17cc94)continue;if(null!=_0x27104d['oldRange'])continue;const _0x21b27b=_0x26131c['getSuggestion'](_0x6c46ab);this['_tablePostFixingSubtypes']['includes'](_0x391384)&&this['_tableSuggestions']['add'](_0x21b27b);}},{'priority':'low'});const _0x307bbb=(_0x24b465,_0x5e51a1)=>{let _0x2e535e=!0x1;const _0xc57cb0=_0x5e51a1['createRangeOn'](_0x24b465),_0x3b6c17=_0x24b465['findAncestor']('table'),_0x5e3fac=_0x1e75f7['getCellLocation'](_0x24b465);for(const _0x5312fe of this['_tableSuggestions']){const _0x323bef=_0x5312fe['subType'],_0x13e491=_0x323bef['startsWith']('tablePaste'),_0x333fd5=_0x323bef['substr'](_0x13e491?0xa:0x5),_0xd9ef75=_0x333fd5['toLowerCase'](),_0x398733=_0xd9ef75['substr'](0x0,0x3)+'span',_0xa46a5a='min'+_0x333fd5,_0x51e407='max'+_0x333fd5;if(!_0x5312fe['isInContent'])continue;if(_0x3b6c17!=_0x5312fe['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5312fe['isIntersectingWithRange'](_0xc57cb0))continue;const _0x46ea7d=_0x24b465['hasAttribute'](_0x398733)?_0x24b465['getAttribute'](_0x398733)-0x1:0x0,_0x324b48=this['_getSuggestionCoords'](_0x5312fe),_0xa0435c=_0x324b48[_0xa46a5a],_0x2c3971=_0x324b48[_0x51e407];_0xa0435c<=_0x5e3fac[_0xd9ef75]&&_0x5e3fac[_0xd9ef75]+_0x46ea7d<=_0x2c3971&&(_0x5312fe['addRange'](_0xc57cb0),_0x2e535e=!0x0);}return _0x2e535e;};_0x4a6736['model']['document']['registerPostFixer'](_0x21e8df=>{let _0x60ff35=!0x1;for(const _0x589a0f of _0x4a6736['model']['document']['differ']['getChanges']())if('insert'==_0x589a0f['type']){if('tableRow'==_0x589a0f['name']){for(const _0x58e5a6 of _0x589a0f['position']['nodeAfter']['getChildren']())_0x60ff35=_0x60ff35||_0x307bbb(_0x58e5a6,_0x21e8df);}else'tableCell'==_0x589a0f['name']&&(_0x60ff35=_0x60ff35||_0x307bbb(_0x589a0f['position']['nodeAfter'],_0x21e8df));}return _0x60ff35;});}['_getSuggestionCoords'](_0x13c871){return this['_getCoordsForCells'](_0x13c871['getRanges']()['map'](_0x107cb5=>_0x107cb5['start']['nodeAfter']));}}function Ee(_0x33b947){return Array['from'](new Set(_0x33b947)['values']());}class St extends _0x510d68{static get['requires'](){return[jt];}['afterInit'](){const _0x5754d6=this['editor'],_0x328875=_0x5754d6['model']['document']['selection'],_0x588a1d=_0x5754d6['locale'];if(!_0x5754d6['plugins']['has']('TableEditing'))return;const _0x3db2eb=_0x5754d6['plugins']['get']('TrackChangesEditing'),_0x3df639=_0x5754d6['plugins']['get']('TableUtils'),_0x20914d=_0x5754d6['plugins']['get'](jt);_0x20914d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3db2eb['enableCommand']('mergeTableCells',()=>{const _0x5ab884=_0x3df639['getSelectionAffectedTableCells'](_0x5754d6['model']['document']['selection']);_0x5754d6['model']['change'](()=>{_0x3db2eb['markMultiRangeBlockFormat'](_0x5ab884,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5754d6['commands']['get']('mergeTableCells')['on']('execute',(_0x36cea5,_0x3208f0)=>{_0x5754d6['commands']['get']('trackChanges')['value']&&(_0x3208f0['length']>0x0&&_0x3208f0[_0x3208f0['length']-0x1]&&_0x3208f0[_0x3208f0['length']-0x1]['forceDefaultExecution']||_0x3db2eb['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x36cea5['stop']());},{'priority':'highest'});for(const _0x3086f8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4f0b30=_0x5754d6['commands']['get'](_0x3086f8);_0x3db2eb['enableCommand'](_0x3086f8,()=>{const _0x9c324b=_0x5754d6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x7ff924=>_0x7ff924['is']('element','tableCell')),_0x64e02=_0x4f0b30['value'];_0x5754d6['model']['change'](()=>{_0x3db2eb['markMultiRangeBlockFormat']([_0x9c324b,_0x64e02],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x709364 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4ad1b9=_0x5754d6['commands']['get'](_0x709364);_0x3db2eb['enableCommand'](_0x709364,()=>{const _0x510006=_0x3df639['getSelectionAffectedTableCells'](_0x5754d6['model']['document']['selection'])[0x0],_0x52d72a=_0x510006['findAncestor']('table'),{column:_0x1fa23d,row:_0x2246a6}=_0x3df639['getCellLocation'](_0x510006);let _0x4dcb3e=[];if('horizontally'==_0x4ad1b9['direction']){const _0x23c65d=_0x3df639['createTableWalker'](_0x52d72a,{'startRow':_0x2246a6,'endRow':_0x2246a6,'includeAllSlots':!0x0});_0x4dcb3e=Array['from'](_0x23c65d)['map'](_0x592c36=>_0x592c36['cell']);}else{const _0x38c96c=_0x3df639['createTableWalker'](_0x52d72a,{'column':_0x1fa23d,'includeAllSlots':!0x0});_0x4dcb3e=Array['from'](_0x38c96c)['map'](_0x46648d=>_0x46648d['cell']);}_0x5754d6['model']['change'](_0x2dfd26=>{_0x3db2eb['markBlockFormat'](_0x2dfd26['createRangeOn'](_0x510006),{'commandName':_0x709364,'commandParams':[]},_0x4dcb3e,_0x709364);});});}_0x3db2eb['descriptionFactory']['registerDescriptionCallback'](_0x3797af=>{if('formatBlock'!=_0x3797af['type']&&'formatInline'!=_0x3797af['type'])return;const {data:_0x5e8df7}=_0x3797af;return _0x5e8df7&&'mergeTableCells'==_0x5e8df7['commandName']?{'type':'format','content':o(_0x588a1d,'*Merge\x20cells*')}:void 0x0;}),_0x3db2eb['descriptionFactory']['registerDescriptionCallback'](_0xd45ef7=>{if('formatBlock'!=_0xd45ef7['type']&&'formatInline'!=_0xd45ef7['type'])return;const {data:_0x247e9e}=_0xd45ef7;return _0x247e9e?'splitTableCellVertically'==_0x247e9e['commandName']?{'type':'format','content':o(_0x588a1d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x247e9e['commandName']?{'type':'format','content':o(_0x588a1d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x351ddd=_0x20914d['_acceptFormatSuggestionCallbackFactory']();for(const _0x2bb871 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3db2eb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2bb871,'accept',_0x351ddd);for(const _0x1b4036 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3db2eb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b4036,'accept',_0x351ddd);_0x3db2eb['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x42473e=>{_0x5754d6['model']['change'](_0x241f63=>{const _0x5b5c9e=Array['from'](_0x328875['getRanges']())['map'](_0x350c09=>_0x1c4270['fromRange'](_0x350c09));_0x241f63['setSelection'](_0x42473e),_0x5754d6['commands']['get']('mergeTableCells')['refresh'](),_0x5754d6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x37d3f4=_0x5b5c9e['filter'](_0x345717=>'$graveyard'!=_0x345717['root']['rootName']);_0x37d3f4['length']>0x0&&_0x241f63['setSelection'](_0x37d3f4);for(const _0x5814fa of _0x5b5c9e)_0x5814fa['detach']();});});for(const _0x2e30ab of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5770da=_0x5754d6['commands']['get'](_0x2e30ab);_0x5770da['on']('set:isEnabled',(_0x2283aa,_0x8ffb89,_0x3412e1)=>{if(_0x3412e1){const _0x5f3861=_0x5754d6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4bb442=>_0x4bb442['is']('element','tableCell'));this['_areMergableCells'](_0x5770da['value'],_0x5f3861)||(_0x2283aa['return']=!0x1,_0x2283aa['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x180a4b=this['editor']['commands']['get']('mergeTableCells'),_0x714f31=this['editor']['plugins']['get']('TableUtils');if(!_0x180a4b['isEnabled'])return!0x1;const _0x37eab2=_0x714f31['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3fd7d0 of _0x37eab2)for(const _0x421fee of _0x37eab2)if(_0x3fd7d0!=_0x421fee&&!this['_areMergableCells'](_0x3fd7d0,_0x421fee))return!0x1;return!0x0;}['_areMergableCells'](_0x53d655,_0x40b6ec){const _0x48607e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d347a=this['editor']['model']['createRangeOn'](_0x53d655),_0x315c25=this['editor']['model']['createRangeOn'](_0x40b6ec),_0x3ebb18=new Set(),_0x5a710f=new Set();for(const _0x2fcf82 of _0x48607e['getSuggestions']())if(('insertion'==_0x2fcf82['type']||'deletion'==_0x2fcf82['type']||'mergeTableCells'==_0x2fcf82['subType'])&&_0x2fcf82['isInContent']){for(const _0x6c9181 of _0x2fcf82['getRanges']())_0x6c9181['containsRange'](_0x4d347a,!0x0)&&_0x3ebb18['add'](_0x2fcf82['type']+':'+_0x2fcf82['author']['id']),_0x6c9181['containsRange'](_0x315c25,!0x0)&&_0x5a710f['add'](_0x2fcf82['type']+':'+_0x2fcf82['author']['id']);}if(_0x3ebb18['size']!=_0x5a710f['size'])return!0x1;for(const _0x44f0de of _0x3ebb18)if(!_0x5a710f['has'](_0x44f0de))return!0x1;return!0x0;}}class At extends _0x510d68{static get['requires'](){return[jt];}['afterInit'](){const _0x341dad=this['editor'];if(!_0x341dad['plugins']['has']('TableEditing'))return;const _0x3efd0b=_0x341dad['locale'],_0x5c24fb=_0x341dad['plugins']['get']('TrackChangesEditing');_0x5c24fb['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5c24fb['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5c24fb['registerBlockAttribute']('headingRows'),_0x5c24fb['registerBlockAttribute']('headingColumns'),_0x5c24fb['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3efd0b,'FORMAT_HEADER_ROW')),_0x5c24fb['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3efd0b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2f7e09=this['editor']['plugins']['get']('TrackChangesEditing'),_0x521b98=this['editor']['plugins']['get']('TableUtils'),_0x42285d=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3be000({showActiveMarker:_0x2601c1=!0x0,setDataAttribute:_0x1fbda9=!0x0}={}){return(_0x4b11dd,_0xabcd3e,_0x4314fe)=>{const {type:_0x48fd0d,id:_0x1a6ed9}=_0x2f7e09['_splitMarkerName'](_0xabcd3e['markerName']),_0xde631f=_0x2f7e09['getSuggestion'](_0x1a6ed9),_0x50adb8=_0xde631f['data'];if('formatBlock'!=_0xde631f['type']||!_0x50adb8||'setTableColumnHeader'!=_0x50adb8['commandName'])return;if(_0xabcd3e['item'])return void _0x4b11dd['stop']();if(!_0x4314fe['consumable']['consume'](_0xabcd3e['markerRange'],_0x4b11dd['name']))return;const _0x4ea0e3=_0xabcd3e['markerRange']['start']['nodeAfter'],_0x450f39=_0xabcd3e['markerRange']['end']['nodeBefore'],_0x11c3ec=_0x4ea0e3['parent']['parent'],{column:_0x4567e6}=_0x521b98['getCellLocation'](_0x4ea0e3),{column:_0x477777}=_0x521b98['getCellLocation'](_0x450f39);for(let _0x56bba6=_0x4567e6;_0x56bba6<=_0x477777;_0x56bba6++){const _0x54246a=_0x521b98['createTableWalker'](_0x11c3ec,{'column':_0x56bba6,'includeAllSlots':!0x1});for(const _0x511d83 of _0x54246a){const _0x46e2f4=_0x511d83['cell'],_0x57bb58=_0x4314fe['mapper']['toViewElement'](_0x46e2f4);_0x4314fe['writer']['addClass']('ck-suggestion-marker-'+_0x48fd0d,_0x57bb58),_0x1fbda9&&_0x4314fe['writer']['setAttribute']('data-suggestion',_0x1a6ed9,_0x57bb58),_0x4314fe['mapper']['bindElementToMarker'](_0x57bb58,_0xabcd3e['markerName']),_0x2601c1&&(_0x2f7e09['activeMarkers']['includes'](_0xabcd3e['markerName'])?_0x4314fe['writer']['addClass']('ck-suggestion-marker--active',_0x57bb58):_0x4314fe['writer']['removeClass']('ck-suggestion-marker--active',_0x57bb58));}}};}_0x2f7e09['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x42285d),_0x2f7e09['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x42285d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3be000(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x42749b,_0xd49dbc,_0x482241)=>{_0x482241['options']['showSuggestionHighlights']&&_0x3be000({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x42749b,_0xd49dbc,_0x482241);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xe72eea,_0x303cbc,_0x41d9ba)=>{const {type:_0x539c51,id:_0x1ef9bf}=_0x2f7e09['_splitMarkerName'](_0x303cbc['markerName']),_0x2be166=_0x2f7e09['getSuggestion'](_0x1ef9bf),_0x43d90=_0x2be166['data'];if('formatBlock'!=_0x2be166['type']||!_0x43d90||'setTableColumnHeader'!=_0x43d90['commandName'])return;const _0xbfb587=_0x41d9ba['mapper']['markerNameToElements'](_0x303cbc['markerName']);if(_0xbfb587){for(const _0x4b4413 of _0xbfb587)_0x41d9ba['writer']['removeClass']('ck-suggestion-marker-'+_0x539c51,_0x4b4413),_0x41d9ba['writer']['removeClass']('ck-suggestion-marker--active',_0x4b4413),_0x41d9ba['writer']['removeAttribute']('data-suggestion',_0x4b4413),_0x41d9ba['mapper']['unbindElementFromMarkerName'](_0x4b4413,_0x303cbc['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d2885=this['editor'],_0x3472a3=_0x4d2885['locale'];function _0x4b2552(_0x15116b){return{'type':'format','content':o(_0x3472a3,'*Format:*\x20%0',_0x15116b)};}_0x4d2885['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3af48c=>{if('formatBlock'!=_0x3af48c['type'])return;const {data:_0x64dfce}=_0x3af48c;if(_0x64dfce){if('setTableRowHeader'==_0x64dfce['commandName']){const _0x4206f8=_0x64dfce['commandParams'][0x0]['forceValue'];return _0x4b2552(o(_0x3472a3,_0x4206f8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x64dfce['commandName']){const _0x276d2a=_0x64dfce['commandParams'][0x0]['forceValue'];return _0x4b2552(o(_0x3472a3,_0x276d2a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0xa86a1c=>[_0xa86a1c,null]));class It extends _0x510d68{static get['requires'](){return[jt];}['afterInit'](){const _0x41a6ca=this['editor'];if(!_0x41a6ca['plugins']['has']('TableClipboard'))return;const _0x3b9077=_0x41a6ca['plugins']['get']('TrackChangesEditing'),_0x59ffcf=_0x41a6ca['plugins']['get']('TableUtils'),_0x1c211e=_0x41a6ca['plugins']['get'](jt),_0x3ad4cc=_0x41a6ca['plugins']['get']('TableClipboard');_0x1c211e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x41a6ca['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x41a6ca['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x15aa81=null;_0x41a6ca['model']['on']('insertContent',(_0x53629b,_0x333f88)=>{const [_0x1e7412,_0x40d652]=_0x333f88,_0x2c85bb=_0x333f88[_0x333f88['length']-0x1];_0x2c85bb&&_0x2c85bb['forceDefaultExecution']||_0x3b9077['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2e46a8,_0xc1d3b7,_0x164cec,_0x15d799,_0x2f381b){if(_0xc1d3b7&&!_0xc1d3b7['is']('documentSelection'))return!0x1;const _0x97bc4b=_0x2f381b['getTableIfOnlyTableInContent'](_0x2e46a8,_0x164cec);if(!_0x97bc4b||!he(_0x97bc4b,void 0x0,_0x15d799))return!0x1;const _0x1c7a01=_0x15d799['getSelectionAffectedTableCells'](_0x164cec['document']['selection']);if(!_0x1c7a01['length'])return!0x1;const _0x2566d8=_0x1c7a01[0x0]['findAncestor']('table'),_0x2936b0=_0x15d799['getRowIndexes'](_0x1c7a01),_0xd53ce4=_0x15d799['getColumnIndexes'](_0x1c7a01),_0x574876={'startRow':_0x2936b0['first'],'endRow':_0x2936b0['last'],'startColumn':_0xd53ce4['first'],'endColumn':_0xd53ce4['last']};return 0x1==_0x1c7a01['length']&&(_0x574876['endRow']+=_0x15d799['getRows'](_0x97bc4b)-0x1,_0x574876['endColumn']+=_0x15d799['getColumns'](_0x97bc4b)-0x1),he(_0x2566d8,_0x574876,_0x15d799);}(_0x1e7412,_0x40d652,_0x41a6ca['model'],_0x59ffcf,_0x3ad4cc)&&(_0x53629b['stop'](),_0x15aa81={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x41a6ca['model']['change'](()=>{_0x41a6ca['model']['insertContent'](_0x333f88[0x0],_0x333f88[0x1],_0x333f88[0x2],{'forceDefaultExecution':!0x0});const _0x837d57=_0x5c3a54(),{rowInsertionRanges:_0x2fd2f1,columnInsertionRanges:_0x308ff0,insertionRanges:_0x26a924,deletionRanges:_0xa333ec,cells:_0x2d15a0}=_0x15aa81;_0x2fd2f1['length']&&_0x3b9077['markMultiRangeInsertion'](_0x2fd2f1,'tablePasteRow',{'tablePasteChainId':_0x837d57}),_0x308ff0['length']&&_0x3b9077['markMultiRangeInsertion'](_0x308ff0,'tablePasteColumn',{'tablePasteChainId':_0x837d57}),_0x26a924['length']&&(_0x3b9077['markMultiRangeInsertion'](_0x26a924,'tablePaste',{'tablePasteChainId':_0x837d57,'skipNestingCheck':!0x0}),_0x26a924['forEach'](_0x2746e8=>_0x2746e8['detach']?.())),_0xa333ec['length']&&(_0x3b9077['markMultiRangeDeletion'](_0xa333ec,'tablePaste',{'tablePasteChainId':_0x837d57,'skipNestingCheck':!0x0}),_0xa333ec['forEach'](_0x2b5dd6=>_0x2b5dd6['detach']?.()));const _0x52def8=_0x3b9077['markMultiRangeBlockFormat'](_0x2d15a0['map'](({element:_0x25b664})=>_0x25b664),{'formatGroupId':_0x5c3a54()},[],'tablePasteCell',{'tablePasteChainId':_0x837d57});if(_0x52def8){const _0x32c489=_0x52def8['getMarkers'](),_0xc7f3fd=[];for(const {element:_0x58145e,attributes:_0x29d7ab}of _0x2d15a0){if(!_0x29d7ab)continue;const _0x32a2dc=_0x41a6ca['model']['createRangeOn'](_0x58145e),_0x3da78e=_0x32c489['find'](_0x18514a=>_0x18514a['getRange']()['isEqual'](_0x32a2dc));_0x3da78e&&_0xc7f3fd['push']([_0x3da78e['name'],_0x29d7ab]);}_0xc7f3fd['length']&&_0x52def8['setAttribute']('markerAttributes',Object['fromEntries'](_0xc7f3fd));}_0x15aa81=null;}));},{'priority':_0x511794['high']+0xa}),_0x41a6ca['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x44a388,_0x42afc3)=>{const [_0x118ff6,_0x2dd075,,_0x2ce936]=_0x42afc3;if(!_0x15aa81)return;_0x44a388['stop']();const _0x166448=_0x118ff6['cell'],_0xc5293e=_0x2dd075,_0x150494=Pe(_0x166448),_0x3b3ed1=Pe(_0xc5293e);_0x44a388['return']=_0x166448;let _0x132939=null,_0x5b6828=null;if(_0x3b3ed1||_0x150494){if(_0x150494&&!_0x3b3ed1){_0x2ce936['remove'](_0x166448['getChild'](0x0));for(const _0x13a1f6 of Array['from'](_0xc5293e['getChildren']()))_0x2ce936['insert'](_0x13a1f6,_0x166448,'end');const _0x50f4b3=_0x15aa81['rowInsertionIndexes']['includes'](_0x118ff6['row']),_0x1f735a=_0x15aa81['columnInsertionIndexes']['includes'](_0x118ff6['column']);_0x50f4b3||_0x1f735a||(_0x132939=_0x1c4270['fromRange'](_0x2ce936['createRangeIn'](_0x166448)));}else _0x3b3ed1&&!_0x150494&&(_0x5b6828=_0x2ce936['createRangeIn'](_0x166448));}else{const _0x233749=_0x2ce936['createElement']('tableCellSuggestion'),_0x4eab95=_0x2ce936['createElement']('tableCellSuggestion');_0x2ce936['wrap'](_0x2ce936['createRangeIn'](_0x166448),_0x4eab95),_0x2ce936['insert'](_0x233749,_0x166448,0x0);for(const _0x353d07 of Array['from'](_0xc5293e['getChildren']()))_0x2ce936['insert'](_0x353d07,_0x233749,'end');_0x132939=_0x1c4270['fromRange'](_0x2ce936['createRangeOn'](_0x233749)),_0x5b6828=_0x1c4270['fromRange'](_0x2ce936['createRangeOn'](_0x4eab95));}const _0x3d0b58=Array['from'](_0xc5293e['getAttributes']())['filter'](([_0xef82c1])=>ge['includes'](_0xef82c1));_0x15aa81['cells']['push']({'element':_0x166448,'attributes':_0x3d0b58['length']?Object['fromEntries'](_0x3d0b58):null}),_0x132939&&_0x15aa81['insertionRanges']['push'](_0x132939),_0x5b6828&&_0x15aa81['deletionRanges']['push'](_0x5b6828);},{'priority':'high'}),_0x59ffcf['on']('insertColumns',(_0x2d66a2,_0x5f46b4)=>{const [_0x4872f7,_0x54c84f={}]=_0x5f46b4;if(!_0x15aa81)return;const _0x1335a0=_0x54c84f['at']||0x0,_0x25884d=_0x54c84f['columns']||0x1;_0x15aa81['columnInsertionIndexes']=new Array(_0x25884d)['fill'](_0x1335a0)['map']((_0x32784d,_0x340b66)=>_0x32784d+_0x340b66);for(const {cell:_0x29272c}of _0x59ffcf['createTableWalker'](_0x4872f7,{'startColumn':_0x1335a0,'endColumn':_0x1335a0+_0x25884d-0x1}))_0x15aa81['columnInsertionRanges']['push'](_0x41a6ca['model']['createRangeOn'](_0x29272c));},{'priority':'low'}),_0x59ffcf['on']('insertRows',(_0x2e9429,_0x28f584)=>{const [_0x4606c3,_0xc1ebc4={}]=_0x28f584;if(!_0x15aa81)return;const _0x4ca73e=_0xc1ebc4['at']||0x0,_0x5ad20e=_0xc1ebc4['rows']||0x1;_0x15aa81['rowInsertionIndexes']=new Array(_0x5ad20e)['fill'](_0x4ca73e)['map']((_0x45bb7c,_0x598180)=>_0x45bb7c+_0x598180);for(const {cell:_0x42fc3e}of _0x59ffcf['createTableWalker'](_0x4606c3,{'startRow':_0x4ca73e,'endRow':_0x4ca73e+_0x5ad20e-0x1}))_0x15aa81['rowInsertionRanges']['push'](_0x41a6ca['model']['createRangeOn'](_0x42fc3e));},{'priority':'low'}),_0x3b9077['descriptionFactory']['registerDescriptionCallback'](_0x4c7d6e=>{if(_0x4c7d6e['subType']&&_0x4c7d6e['subType']['startsWith']('tablePaste'))return _0x4c7d6e['previous']?{}:{'type':'insertion','content':o(_0x41a6ca['locale'],'*Replace\x20table\x20cells*')};});const _0x3122d6=()=>!0x1;for(const _0x3a3afb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3b9077['_suggestionFactory']['registerCustomCallback']('insertion',_0x3a3afb,'join',_0x3122d6),_0x3b9077['_suggestionFactory']['registerCustomCallback']('deletion',_0x3a3afb,'join',_0x3122d6),_0x3b9077['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a3afb,'join',_0x3122d6);_0x3b9077['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3122d6),_0x3b9077['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x37bd76,_0x1f1e26,_0x49fd80)=>{const _0x386bd4=_0x37bd76['map'](_0x432238=>_0x432238['getContainedElement']())['filter'](_0x4345c2=>_0x4345c2),_0x2e4b1b=new Map(_0x386bd4['map'](_0xe2a52c=>[_0xe2a52c,null]));if(_0x15aa81){for(const {element:_0x235279,attributes:_0x4f3147}of _0x15aa81['cells'])_0x4f3147&&_0x2e4b1b['set'](_0x235279,_0x4f3147);}else{if(_0x49fd80&&_0x49fd80['markerAttributes'])for(const [_0xd1ee83,_0x3e74ca]of Object['entries'](_0x49fd80['markerAttributes'])){const _0x399807=_0x41a6ca['model']['markers']['get'](_0xd1ee83),_0x5ec3e0=_0x399807?_0x399807['getRange']()['getContainedElement']():null;_0x5ec3e0&&_0x2e4b1b['set'](_0x5ec3e0,_0x3e74ca);}}_0x41a6ca['model']['change'](_0x5cc71b=>{for(const [_0x5ac507,_0x4bc02d]of _0x2e4b1b)_0x5cc71b['setAttributes']({...Ce,..._0x4bc02d},_0x5ac507);});});const _0x567a3f=(_0x135acb,_0x61c197)=>{_0x3b9077['_suggestionFactory']['registerCustomCallback'](_0x135acb,'tablePaste',_0x61c197,(_0x3ffd60,_0x22661a,_0x2f52e1)=>{_0x41a6ca['model']['change'](_0xca828b=>{const _0x4ace52=[];for(const _0x1eb7f3 of _0x3ffd60){const _0x1a016f=_0x1eb7f3['start']['nodeAfter'];_0x1a016f['is']('element','tableCellSuggestion')&&_0x4ace52['push'](_0x1a016f);}_0x3b9077['_suggestionFactory']['getSuggestionCallback'](_0x135acb,null,_0x61c197)(_0x3ffd60,_0x22661a,_0x2f52e1);for(const _0x1d6d72 of _0x4ace52)'$graveyard'!=_0x1d6d72['root']['rootName']&&_0xca828b['unwrap'](_0x1d6d72);});});};_0x567a3f('insertion','accept'),_0x567a3f('insertion','discard'),_0x567a3f('deletion','accept'),_0x567a3f('deletion','discard'),_0x3b9077['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x19fa14=>{const _0x792bed=_0x19fa14['map'](_0x5bc070=>_0x5bc070['getContainedElement']()),_0x327eca=_0x792bed[0x0]['findAncestor']('table'),{minRow:_0x46ad40,maxRow:_0x5af15a}=_0x1c211e['_getCoordsForCells'](_0x792bed);_0x59ffcf['removeRows'](_0x327eca,{'at':_0x46ad40,'rows':_0x5af15a-_0x46ad40+0x1});}),_0x3b9077['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x748adb=>{const _0x488f8e=_0x748adb['map'](_0x3002d0=>_0x3002d0['getContainedElement']()),_0x53c8cf=_0x488f8e[0x0]['findAncestor']('table'),{minColumn:_0x491b33,maxColumn:_0x1ca946}=_0x1c211e['_getCoordsForCells'](_0x488f8e);_0x59ffcf['removeColumns'](_0x53c8cf,{'at':_0x491b33,'columns':_0x1ca946-_0x491b33+0x1});});const _0x522e23=(_0x1308ca,_0x24d950)=>{if(!_0x24d950['subType']||!_0x24d950['subType']['startsWith']('tablePaste'))return;const _0x22ec86=_0x24d950['attributes']['tablePasteChainId'],_0x15e420=_0x3b9077['getSuggestions']()['filter'](_0x3c89d3=>_0x3c89d3['isInContent']&&_0x3c89d3['attributes']&&_0x3c89d3['attributes']['tablePasteChainId']==_0x22ec86);_0x15e420['length']&&_0x24d950['getAllAdjacentSuggestions']()['length']!=_0x15e420['length']&&_0x15e420['reduce']((_0xd8b5c4,_0x29567b)=>(_0xd8b5c4['next']=_0x29567b,_0x29567b['previous']=_0xd8b5c4,_0x29567b));};function _0x413854(_0x573cc4,_0x34c7b1=!0x0){const {id:_0x327f05}=_0x3b9077['_splitMarkerName'](_0x573cc4['markerName']),_0x1a9b3f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x56dc0a=_0x3b9077['activeMarkers']['includes'](_0x573cc4['markerName']);return _0x56dc0a&&_0x1a9b3f['push']('ck-suggestion-marker--active'),{'classes':_0x1a9b3f,'attributes':{'data-suggestion':_0x327f05},'priority':_0x56dc0a&&_0x34c7b1?0xbc2:0xbb8};}_0x3b9077['on']('suggestionLoaded',_0x522e23,{'priority':'high'}),_0x3b9077['on']('suggestionUnloaded',_0x522e23,{'priority':'high'}),_0x41a6ca['model']['document']['registerPostFixer'](()=>{let _0xdc8f76=!0x1;const _0x5e091f=Array['from'](_0x41a6ca['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x417d67,data:_0x1ad61d}of _0x5e091f){const {group:_0x330883,type:_0x22047f,id:_0x332aa1}=_0x3b9077['_splitMarkerName'](_0x417d67);if('suggestion'!=_0x330883||'deletion'!=_0x22047f||_0x1ad61d['oldRange'])continue;if(!_0x3b9077['hasSuggestion'](_0x332aa1))continue;const _0x485f69=_0x3b9077['getSuggestion'](_0x332aa1)['getRanges'](),_0x303a06=_0x41a6ca['plugins']['get']('Users')['me'];for(const _0x2d593c of _0x3b9077['getSuggestions']()){if(!_0x2d593c['isInContent']||_0x2d593c['author']!=_0x303a06)continue;if('formatBlock'!=_0x2d593c['type']||'tablePasteCell'!=_0x2d593c['subType'])continue;if(_0x2d593c['getRanges']()['every'](_0x3d589a=>_0x485f69['some'](_0x2c1cd4=>_0x2c1cd4['containsRange'](_0x3d589a,!0x0)))){for(const _0x4254a8 of _0x2d593c['getAllAdjacentSuggestions']())_0x4254a8['isInContent']&&(_0x4254a8['discard'](),_0xdc8f76=!0x0);}}}return _0xdc8f76;}),_0x41a6ca['model']['document']['registerPostFixer'](_0x17056d=>{const _0x5471c4=_0x41a6ca['commands']['get']('redo');if(!_0x5471c4||!_0x5471c4['_createdBatches']['has'](_0x17056d['batch']))return!0x1;let _0x4c2ade=!0x1;const _0x499fd4=_0x41a6ca['plugins']['get']('Users')['me'],_0xa7a8ea=_0x41a6ca['model']['document']['differ']['getChanges'](),_0x28faab=Array['from'](_0x41a6ca['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1e4725,data:_0x25c750})=>{const {group:_0x4f272c,subType:_0x183be7,authorId:_0x6c4c5f}=_0x3b9077['_splitMarkerName'](_0x1e4725);return'suggestion'==_0x4f272c&&'tablePaste'==_0x183be7&&_0x6c4c5f==_0x499fd4['id']&&!_0x25c750['oldRange'];});for(const _0x12404e of _0xa7a8ea){if('insert'!=_0x12404e['type']||'tableCellSuggestion'!=_0x12404e['name']||0x1!=_0x12404e['length'])continue;const _0x58e309=_0x17056d['createRange'](_0x12404e['position'],_0x12404e['position']['getShiftedBy'](0x1));if(!_0x28faab['find'](({data:_0x4dbd91})=>_0x4dbd91['newRange']['isEqual'](_0x58e309))){for(const {name:_0x56ffe8,data:_0xaa0dd1}of _0x28faab)if(_0x58e309['containsRange'](_0xaa0dd1['newRange'])){_0x17056d['updateMarker'](_0x56ffe8,{'range':_0x58e309}),_0x4c2ade=!0x0;break;}}}return _0x4c2ade;}),_0x41a6ca['model']['document']['registerPostFixer'](_0x2eac1b=>{let _0x30a692=!0x1;const _0x46e0e7=_0x41a6ca['plugins']['get']('Users')['me'],_0x30e368=_0x3b9077['getSuggestions']()['filter'](_0x26c34f=>_0x26c34f['isInContent']&&_0x26c34f['author']==_0x46e0e7),_0x5c3a10=new Set(),_0x3d24e5=new Set();for(const _0x57ec55 of _0x30e368)if('tablePaste'==_0x57ec55['subType'])for(const _0x31b10e of _0x57ec55['getMarkers']()){const _0x2617f3=_0x31b10e['getRange']()['getContainedElement']();if(_0x2617f3){if(_0x2617f3['is']('element','tableCellSuggestion')&&Pe(_0x2617f3)){_0x57ec55['removeMarker'](_0x31b10e['name']),_0x5c3a10['add'](_0x2617f3),_0x30a692=!0x0;const _0x23d317=_0x2617f3['nextSibling'],_0x2bba78=_0x2617f3['previousSibling'],_0x56c3b6=_0x23d317&&_0x23d317['is']('element','tableCellSuggestion'),_0x57b529=_0x2bba78&&_0x2bba78['is']('element','tableCellSuggestion');_0x56c3b6&&!_0x5c3a10['has'](_0x23d317)&&_0x3d24e5['add'](_0x23d317),_0x57b529&&!_0x5c3a10['has'](_0x2bba78)&&_0x3d24e5['add'](_0x2bba78);}else _0x2617f3['is']('element','paragraph')&&_0x2617f3['isEmpty']&&(_0x57ec55['removeMarker'](_0x31b10e['name']),_0x30a692=!0x0);}}else{if('tablePasteCell'==_0x57ec55['subType']){if(!_0x57ec55['attributes']||!_0x57ec55['attributes']['tablePasteChainId'])continue;const _0x51cb8b=_0x57ec55['attributes']['markerAttributes'];if(_0x51cb8b&&Object['keys'](_0x51cb8b)['length'])continue;const _0x517c61=_0x57ec55['attributes']['tablePasteChainId'];let _0x4a95e=!0x0,_0x211912=!0x0;for(const _0x5a95be of _0x30e368)if(_0x5a95be['subType']&&_0x5a95be['subType']['startsWith']('tablePaste')){if(!_0x5a95be['attributes']['tablePasteChainId']){_0x211912=!0x1;break;}if(_0x5a95be['id']!=_0x57ec55['id']&&_0x5a95be['attributes']['tablePasteChainId']==_0x517c61){_0x4a95e=!0x1;break;}}_0x211912&&_0x4a95e&&(_0x57ec55['removeMarkers'](),_0x30a692=!0x0);}}for(const _0x9bf609 of _0x5c3a10)_0x2eac1b['remove'](_0x9bf609);for(const _0x86f0a9 of _0x3d24e5)_0x2eac1b['unwrap'](_0x86f0a9);return _0x30a692;}),_0x41a6ca['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x8f05df,_0x404272)=>_0x413854(_0x8f05df),'converterPriority':'high'}),_0x41a6ca['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x395fe1,_0x56442b)=>_0x56442b['options']['showSuggestionHighlights']?_0x413854(_0x395fe1,!0x1):null,'converterPriority':'high'});const _0x1288ec=_0x41a6ca['editing']['view'];this['listenTo'](_0x1288ec['document'],'clipboardOutput',(_0x17538b,_0xac00a0)=>{const _0x3d5fca=[];for(const _0x21c51a of _0x1288ec['createRangeIn'](_0xac00a0['content'])['getItems']())_0x21c51a['is']('element','suggestion-td')&&_0x3d5fca['push'](_0x21c51a);_0x1288ec['change'](_0x58dcdc=>{for(const _0x16ee1f of _0x3d5fca)_0x58dcdc['move'](_0x58dcdc['createRangeIn'](_0x16ee1f),_0x58dcdc['createPositionBefore'](_0x16ee1f)),_0x58dcdc['remove'](_0x16ee1f);});});}}function Pe(_0x2160e7){if(_0x2160e7['isEmpty'])return!0x0;const _0x3a9fa7=_0x2160e7['getChild'](0x0);return _0x3a9fa7['is']('element','paragraph')&&_0x3a9fa7['isEmpty'];}function he(_0x5c969a,_0x169270={},_0x40230a){for(const {isAnchor:_0x5639fc,cellHeight:_0x32127c,cellWidth:_0x5e9340}of _0x40230a['createTableWalker'](_0x5c969a,{'includeAllSlots':!0x0,..._0x169270}))if(!_0x5639fc||0x1!=_0x32127c||0x1!=_0x5e9340)return!0x1;return!0x0;}class vt extends _0x510d68{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xbcc806=this['editor']['plugins']['get']('TrackChangesEditing');_0xbcc806['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xbcc806['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xbcc806['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xbcc806['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xbcc806['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xbcc806['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x27edce,_0x31ef07){const _0x2a12e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x86ec28=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x373333=_0x31ef07['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x496299=_0x86ec28['getColumnGroupElement'](_0x373333);let _0x2e7c72=_0x496299?_0x86ec28['getTableColumnsWidths'](_0x496299):null,_0xb13f1a=_0x373333['getAttribute']('tableWidth')||null;const _0x31fbe7=_0x31ef07['tableWidth']||_0xb13f1a,_0x26d6b7=_0x31ef07['columnWidths']||_0x2e7c72,_0x3a53a6=this['editor']['plugins']['get']('Users')['me'];for(const _0x37bd1d of _0x2a12e5['getSuggestions']()){const _0x37468a=_0x37bd1d['getContainedElement']();if('resizeTable'===_0x37bd1d['subType']&&_0x37468a===_0x373333){_0x37bd1d['author']!==_0x3a53a6&&_0x37bd1d['discard']();const _0x2c8346=_0x37bd1d['data']['commandParams'];_0xb13f1a=_0x2c8346[0x0]['tableWidth'],_0x2e7c72=_0x2c8346[0x0]['columnWidths'];break;}}_0x27edce({'table':_0x373333,'tableWidth':_0x31fbe7,'columnWidths':_0x26d6b7}),_0x2a12e5['markBlockFormat'](_0x373333,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xb13f1a,'columnWidths':_0x2e7c72}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x515a20){if('formatBlock'!=_0x515a20['type']&&'formatInline'!=_0x515a20['type'])return;const {data:_0x2f24b6}=_0x515a20;if(_0x2f24b6&&'resizeTable'===_0x2f24b6['formatGroupId']){const _0x4a1669='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4a1669)};}}}class Ct extends _0x510d68{['afterInit'](){const _0x116ae7=this['editor'];_0x116ae7['plugins']['has']('Template')&&_0x116ae7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x510d68{['afterInit'](){const _0x27adec=this['editor'];if(!_0x27adec['commands']['get']('insertTableOfContents'))return;_0x27adec['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x863fb6=_0x27adec['plugins']['get']('TrackChangesEditing'),_0x2054da=_0x27adec['locale'];_0x863fb6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2b25f8=>o(_0x2054da,'ELEMENT_TABLE_OF_CONTENTS',_0x2b25f8));}}class Dt extends _0x510d68{['afterInit'](){const _0x182e3d=this['editor'];if(!_0x182e3d['plugins']['has']('Title'))return;const _0x3c372b=_0x182e3d['plugins']['get']('TrackChangesEditing');_0x3c372b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x182e3d['locale'],'ELEMENT_TITLE')),_0x182e3d['model']['document']['registerPostFixer'](_0x2aa250=>{let _0x9bf549=!0x1;const _0x30eca2=Array['from'](_0x182e3d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3a4379,data:_0x4cabb6}of _0x30eca2){const {group:_0x2fb334}=_0x3c372b['_splitMarkerName'](_0x3a4379);if('suggestion'!==_0x2fb334||!_0x4cabb6['newRange'])continue;const _0x589e73=_0x4cabb6['newRange'],_0x1b0dd2=_0x589e73['end']['nodeBefore'];if(!_0x1b0dd2||!_0x1b0dd2['is']('element','title-content'))continue;if(!_0x589e73['start']['isTouching'](_0x589e73['end']))continue;const _0x49c1c5=_0x182e3d['model']['schema']['getNearestSelectionRange'](_0x589e73['end'],'forward');if(_0x49c1c5&&_0x49c1c5['isCollapsed']){const _0x1f0dc9=_0x2aa250['createRange'](_0x589e73['start'],_0x49c1c5['start']);_0x1f0dc9['isEqual'](_0x589e73)||(_0x2aa250['updateMarker'](_0x3a4379,{'range':_0x1f0dc9}),_0x9bf549=!0x0);}_0x9bf549||(_0x2aa250['removeMarker'](_0x3a4379),_0x9bf549=!0x0);}return _0x9bf549;});}}class Nt extends _0x510d68{['afterInit'](){const _0x306477=this['editor'],_0x7d516e=_0x306477['plugins']['get']('TrackChangesEditing');_0x306477['plugins']['has']('UndoEditing')&&(_0x7d516e['enableCommand']('undo'),_0x7d516e['enableCommand']('redo'));}}class Mt extends _0x510d68{static get['requires'](){return[jt];}['afterInit'](){const _0x1d07f5=this['editor'];if(!_0x1d07f5['plugins']['has']('TableCaptionEditing'))return;_0x1d07f5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x510d68{['tableProperties'];['tableCellProperties'];constructor(_0x3311c8){super(_0x3311c8),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';}['afterInit'](){const _0xd05f3f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x583090 of this['tableProperties'])_0xd05f3f['enableCommand'](_0x583090,(_0x4e745b,_0x414f68)=>{const _0x3b6b01=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x583090,[_0x3b6b01],this['tableProperties'],'tableProperties',_0x4e745b,_0x414f68);});_0xd05f3f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xd05f3f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd05f3f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3d23a6,_0x59d05b)=>this['handleDiscardAction'](this['tableProperties'],_0x3d23a6,_0x59d05b)),_0xd05f3f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x23cb28 of this['tableCellProperties'])_0xd05f3f['enableCommand'](_0x23cb28,(_0x263f7d,_0x133da9)=>{const _0x222251=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x23cb28,_0x222251,this['tableCellProperties'],'tableCellProperties',_0x263f7d,_0x133da9);});_0xd05f3f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xd05f3f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd05f3f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5f3856,_0x2a1409)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5f3856,_0x2a1409)),_0xd05f3f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xd05f3f['descriptionFactory']['registerDescriptionCallback'](_0x3483d6=>this['handleSuggestionDescription'](_0x3483d6));}['_handlePropertyChange'](_0x4d2f29,_0xcecfda,_0x5a3f37,_0xd76691,_0x411a4b,_0x22637a){const _0x45522c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x22637a['batch'],()=>{for(const _0x1c8e80 of _0xcecfda){if(this['_getSuggestion'](_0x1c8e80,_0xd76691))_0x411a4b(_0x22637a);else{const _0x324c10={};for(const _0x4cce1f of _0x5a3f37){const _0x1fb0b4=_0x1c8e80['getAttribute'](_0x4cce1f);void 0x0!==_0x1fb0b4&&(_0x324c10[_0x4cce1f]=_0x1fb0b4);}_0x411a4b(_0x22637a),_0x45522c['markBlockFormat'](_0x1c8e80,{'commandParams':[_0x324c10]},[],_0xd76691);}}});}['handleDiscardAction'](_0x1a3d43,_0x356594,_0x246f2b){const _0x47da3e=_0x356594[0x0]['start']['nodeAfter'],_0x5840b8=_0x246f2b['commandParams'][0x0];this['editor']['model']['change'](_0x269d70=>{for(const _0x300fc1 of _0x1a3d43)void 0x0!==_0x5840b8[_0x300fc1]?_0x269d70['setAttribute'](_0x300fc1,_0x5840b8[_0x300fc1],_0x47da3e):_0x269d70['removeAttribute'](_0x300fc1,_0x47da3e);});}['handleSuggestionDescription'](_0x466e14){if(_0x466e14['data'])switch(_0x466e14['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x47debe,_0x19e076){const _0x23272d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x56aee0 of _0x23272d['getSuggestions']({'skipNotAttached':!0x0})){const _0x401fe9=_0x56aee0['getContainedElement']();if(_0x56aee0['subType']===_0x19e076&&_0x401fe9===_0x47debe)return _0x56aee0;}return null;}}const m='$elementName';class p extends _0x510d68{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x47cb12,_0x4aa1aa,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x1fe97f){function _0x327694(_0x2bf3b6){return _0x2bf3b6['map'](_0x5f5c37=>String['fromCharCode'](_0x5f5c37))['join']('');}super(_0x1fe97f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x19767f,_0x9150,_0x4881e1,_0x489bc3)=>{this['_model']['change'](()=>{for(const _0x3831ce of[..._0x489bc3,..._0x4881e1])this['_model']['markers']['has'](_0x3831ce)&&_0x1fe97f['editing']['reconvertMarker'](_0x3831ce);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1fe97f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x1fe97f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1fe97f['config']['get']('trackChanges.trackFormatChanges'),_0x1fe97f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1fe97f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1fe97f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x327694([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x327694([0x34,0x30,0x34,0x38,0x31,0x32,0x34,0x38]);}['init'](){const _0x594606=this['editor'],_0x11e37b=(_0x45c7eb,_0x1be80f)=>{if('attribute'!=_0x45c7eb)return'ck-suggestion-marker-'+_0x45c7eb;const _0x3963ef=_0x1be80f['split']('|')[0x0];return this['_isBlockAttribute'](_0x3963ef)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x594606['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xd00b72=>{const {id:_0x2ab9bf,type:_0x18babe,subType:_0x3cd36c}=this['_splitMarkerName'](_0xd00b72['markerName']),_0x5d6f6e=['ck-suggestion-marker',_0x11e37b(_0x18babe,_0x3cd36c)];let _0x1e051c=0xbb8;return this['activeMarkers']['includes'](_0xd00b72['markerName'])&&(_0x5d6f6e['push']('ck-suggestion-marker--active'),_0x1e051c=0xbc2),'deletion'==_0x18babe&&(_0x1e051c+=0x5),{'classes':_0x5d6f6e,'attributes':{'data-suggestion':_0x2ab9bf},'priority':_0x1e051c};}}),_0x594606['conversion']['for']('dataDowncast')['add'](_0x2ac064=>{_0x2ac064['on']('addMarker:suggestion',(_0xdecd93,_0x5bb258,_0x4e4c9c)=>{if(!_0x4e4c9c['options']['showSuggestionHighlights'])return;const _0x11db6c=_0x5bb258['item'];if(!_0x11db6c)return;const _0x21cc88=_0x4e4c9c['mapper']['toViewElement'](_0x11db6c);_0x594606['model']['schema']['isObject'](_0x11db6c)&&_0x21cc88&&!_0x21cc88['getCustomProperty']('widget')&&_0x21cc88['is']('containerElement')&&_0x4591c1(_0x21cc88,_0x4e4c9c['writer']);},{'priority':'high'});}),_0x594606['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2dcfaf,_0x2ae139)=>{if(!_0x2ae139['options']['showSuggestionHighlights'])return null;const {type:_0x341808,subType:_0x515f96}=this['_splitMarkerName'](_0x2dcfaf['markerName']);return{'classes':['ck-suggestion-marker',_0x11e37b(_0x341808,_0x515f96)],'priority':0xbb8};}});const _0x2d84a2=({showActiveMarkers:_0x2eb405=!0x0,isAttributeSuggestion:_0x2b6a16=!0x1}={})=>(_0x5f2c1d,_0x38f003,_0x294145)=>{if(!_0x38f003['item'])return;const {id:_0x23a159}=this['_splitMarkerName'](_0x38f003['markerName']);if(_0x2b6a16){const _0x18a2ec=this['_suggestions']['get'](_0x23a159),_0x1eca6c=this['_getAttributeKey'](_0x18a2ec);if(!this['_isBlockAttribute'](_0x1eca6c))return;}if(_0x38f003['item']['is']('selection'))return void _0x294145['consumable']['consume'](_0x38f003['item'],_0x5f2c1d['name']);const _0x230124=_0x294145['mapper']['toViewElement'](_0x38f003['item']);if(_0x38f003['item']['is']('element')&&_0x594606['model']['schema']['isBlock'](_0x38f003['item'])&&!_0x230124['getCustomProperty']('addHighlight')){_0x294145['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x230124),_0x294145['writer']['setAttribute']('data-suggestion',_0x23a159,_0x230124),_0x294145['mapper']['bindElementToMarker'](_0x230124,_0x38f003['markerName']),_0x2eb405&&(this['activeMarkers']['includes'](_0x38f003['markerName'])?_0x294145['writer']['addClass']('ck-suggestion-marker--active',_0x230124):_0x294145['writer']['removeClass']('ck-suggestion-marker--active',_0x230124));for(const _0x266899 of _0x594606['model']['createRangeIn'](_0x38f003['item'])['getItems']())_0x294145['consumable']['consume'](_0x266899,_0x5f2c1d['name']);_0x294145['consumable']['consume'](_0x38f003['item'],_0x5f2c1d['name']);}};_0x594606['conversion']['for']('dataDowncast')['add'](_0x2662a1=>{_0x2662a1['on']('addMarker:suggestion:formatBlock',(_0x518bd6,_0x6d7a0e,_0x17fe7c)=>{_0x17fe7c['options']['showSuggestionHighlights']&&_0x2d84a2({'showActiveMarkers':!0x1})(_0x518bd6,_0x6d7a0e,_0x17fe7c);},{'priority':'highest'});}),_0x594606['conversion']['for']('dataDowncast')['add'](_0x251e79=>{_0x251e79['on']('addMarker:suggestion:attribute',(_0x4fced7,_0xf44e02,_0x583734)=>{_0x583734['options']['showSuggestionHighlights']&&_0x2d84a2({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4fced7,_0xf44e02,_0x583734);},{'priority':'highest'});}),_0x594606['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5de5e4,_0x3d7255)=>_0x3d7255['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5de5e4['substr'](0xb)}}),_0x594606['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x323191,{writer:_0x2aed0e})=>{let _0x5781b2='suggestion:'+_0x323191['getAttribute']('suggestion-type')+':'+_0x323191['getAttribute']('id');return _0x323191['getAttribute']('marker-count')&&(_0x5781b2+=':'+_0x323191['getAttribute']('marker-count')),_0x2aed0e['createElement']('$marker',{'data-name':_0x5781b2});}}),_0x594606['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x594606['conversion']['for']('editingDowncast')['add'](_0x16f8dc=>{_0x16f8dc['on']('addMarker:suggestion:formatBlock',_0x2d84a2(),{'priority':'high'});}),_0x594606['conversion']['for']('editingDowncast')['add'](_0xd56eb=>{_0xd56eb['on']('addMarker:suggestion:attribute',_0x2d84a2({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x594606['conversion']['for']('editingDowncast')['add'](_0x45cd31=>{_0x45cd31['on']('removeMarker:suggestion:formatBlock',(_0x5ca57c,_0x32d2a4,_0x3004d3)=>{const _0x340719=_0x3004d3['mapper']['markerNameToElements'](_0x32d2a4['markerName']);if(_0x340719){for(const _0x438267 of _0x340719)_0x438267['getCustomProperty']('addHighlight')||(_0x3004d3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x438267),_0x3004d3['writer']['removeAttribute']('data-suggestion',_0x438267),_0x3004d3['mapper']['unbindElementFromMarkerName'](_0x438267,_0x32d2a4['markerName']));}},{'priority':'high'});}),_0x594606['conversion']['for']('editingDowncast')['add'](_0xe64596=>{_0xe64596['on']('removeMarker:suggestion:attribute',(_0x12f874,_0x3d8268,_0x32bf53)=>{const _0x35a68a=_0x32bf53['mapper']['markerNameToElements'](_0x3d8268['markerName']);if(!_0x35a68a)return;const {id:_0x4eb8fd}=this['_splitMarkerName'](_0x3d8268['markerName']),_0x1d2af3=this['_suggestions']['get'](_0x4eb8fd),_0x3e6089=this['_getAttributeKey'](_0x1d2af3);if(this['_isBlockAttribute'](_0x3e6089)){for(const _0x1b10f8 of _0x35a68a)_0x1b10f8['getCustomProperty']('addHighlight')||(_0x32bf53['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1b10f8),_0x32bf53['writer']['removeAttribute']('data-suggestion',_0x1b10f8),_0x32bf53['mapper']['unbindElementFromMarkerName'](_0x1b10f8,_0x3d8268['markerName']));}},{'priority':'high'});}),_0x594606['model']['document']['registerPostFixer'](_0x3fb19a=>{let _0x5f3c43=!0x1;const _0x4f2b4f=Array['from'](_0x594606['model']['document']['differ']['getChangedMarkers']()),_0x3a3023=new Set();for(const {name:_0x40ef15,data:_0x3cc1b1}of _0x4f2b4f){const {group:_0x5d639b,type:_0x2a1e9b,subType:_0x2c8e80,id:_0x3ec4f6}=this['_splitMarkerName'](_0x40ef15);if('suggestion'!==_0x5d639b)continue;const _0x5da2fc=this['_suggestions']['get'](_0x3ec4f6);if(null!=_0x3cc1b1['newRange']){'formatInline'==_0x2a1e9b&&(_0x5f3c43=_0x5f3c43||Et(_0x3cc1b1['newRange'],_0x40ef15,_0x3fb19a,_0x594606['model']['schema']));const _0x96580b='attribute'==_0x2a1e9b&&this['_isBlockAttribute'](_0x2c8e80['split']('|')[0x0]);if(_0x3cc1b1['newRange']['isCollapsed']||'$graveyard'==_0x3cc1b1['newRange']['root']['rootName']||'formatBlock'==_0x2a1e9b&&!Ut(_0x3cc1b1['newRange'])||_0x96580b&&!Ut(_0x3cc1b1['newRange'])||'deletion'==_0x2a1e9b&&!(!Tt(_0x2a39b5=_0x3cc1b1['newRange'])&&!function(_0x37eec7){return _0x37eec7['start']['parent']==_0x37eec7['end']['nodeBefore']&&_0x37eec7['start']['isAtEnd'];}(_0x2a39b5)))_0x3fb19a['removeMarker'](_0x40ef15),_0x5f3c43=!0x0;else{if(!_0x5da2fc||!_0x5da2fc['isInContent'])continue;_0x3a3023['add'](_0x5da2fc);}}}var _0x2a39b5;return _0x3a3023['size']>0x0&&(_0x5f3c43=!!this['_joinWithAdjacentSuggestions'](_0x3a3023)||_0x5f3c43),_0x5f3c43;}),_0x594606['model']['document']['registerPostFixer'](_0x254062=>{let _0x2f3cea=!0x1;for(const _0x5a5d3a of _0x594606['model']['document']['differ']['getChanges']())if('insert'==_0x5a5d3a['type'])for(const _0x43621d of this['_suggestions']['values']()){if(_0x43621d['isMultiRange']||!_0x43621d['isInContent'])continue;const _0x2007a8='formatBlock'==_0x43621d['type'],_0x5c7be2=this['_getAttributeKey'](_0x43621d),_0x550ded=_0x5c7be2&&this['_isBlockAttribute'](_0x5c7be2);if(!_0x2007a8&&!_0x550ded)continue;const _0x2699ae=_0x43621d['getFirstRange']();if(_0x2699ae['start']['parent']!=_0x2699ae['end']['parent']&&!_0x2699ae['end']['isAtEnd']){const _0x2c5b57=_0x594606['model']['createPositionAt'](_0x2699ae['start']['nodeAfter'],'end'),_0x51fe17=_0x594606['model']['createRange'](_0x2699ae['start'],_0x2c5b57);_0x254062['updateMarker'](_0x43621d['getFirstMarker'](),{'range':_0x51fe17}),_0x2f3cea=!0x0;}}return _0x2f3cea;}),_0x594606['model']['document']['registerPostFixer'](_0x196df7=>this['_processAttributeChanges'](_0x196df7)),_0x594606['model']['document']['registerPostFixer'](_0x18fb64=>!_0x18fb64['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x18fb64)),_0x594606['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x594606['model']['document']['on']('change:data',(_0x116429,_0x23e5ca)=>{if(!_0x23e5ca['isLocal']||_0x23e5ca['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x21c4ff=_0x594606['model']['document']['differ']['getChanges']();if(0x0==_0x21c4ff['length'])return;const _0x58bad5=[],_0x3de4e6=_0x21c4ff['filter'](_0x51a034=>'attribute'==_0x51a034['type']),_0x32e7ef=_0x21c4ff['filter'](_0x476084=>'insert'==_0x476084['type']&&'$text'!=_0x476084['name']);for(const _0xa1f252 of _0x3de4e6)this['_isRegisteredAttribute'](_0xa1f252['attributeKey'])&&_0x58bad5['push']({'key':_0xa1f252['attributeKey'],'newValue':_0xa1f252['attributeNewValue'],'oldValue':_0xa1f252['attributeOldValue'],'range':Ot(_0xa1f252['range'],_0x594606['model'])});for(const _0x183f12 of _0x32e7ef){if('rename'!=_0x183f12['action']&&'refresh'!=_0x183f12['action'])continue;const _0x4a6fd5=Gt(_0x183f12['position']['nodeAfter'],_0x594606['model']),_0x10acea=_0x183f12['before'];'rename'==_0x183f12['action']&&_0x58bad5['push']({'key':m,'newValue':_0x183f12['name'],'oldValue':_0x10acea['name'],'range':_0x4a6fd5});for(const [_0x217712,_0x2e7dfc]of _0x10acea['attributes']){if(!this['_isRegisteredAttribute'](_0x217712))continue;const _0x1ae5ea=_0x183f12['attributes']['get'](_0x217712);_0x2e7dfc!==_0x1ae5ea&&_0x58bad5['push']({'key':_0x217712,'newValue':_0x1ae5ea,'oldValue':_0x2e7dfc,'range':_0x4a6fd5});}for(const [_0x265686,_0x49e7bd]of _0x183f12['attributes'])this['_isRegisteredAttribute'](_0x265686)&&(_0x10acea['attributes']['has'](_0x265686)||_0x58bad5['push']({'key':_0x265686,'newValue':_0x49e7bd,'oldValue':null,'range':_0x4a6fd5}));}0x0!=_0x58bad5['length']&&_0x594606['model']['enqueueChange'](_0x23e5ca,_0x307580=>{const _0xa34901=_0x5c3a54();for(const {range:_0x4e890d,key:_0x4ae34e,oldValue:_0x1e0f0b,newValue:_0x38aedc}of _0x58bad5)this['markAttributeChange'](_0x4e890d,_0x4ae34e,_0x1e0f0b,_0x38aedc,{'groupId':_0xa34901});this['_reduceExistingSuggestions'](_0x307580,_0x58bad5);});},{'priority':'lowest'}),_0x594606['model']['markers']['on']('update:suggestion',(_0x49ebbf,_0x2772b4,_0x20d2ab)=>{if(null==_0x20d2ab){const {id:_0xa6caa7}=this['_splitMarkerName'](_0x2772b4['name']),_0x3d7835=this['_suggestions']['get'](_0xa6caa7);_0x3d7835&&_0x3d7835['addMarkerName'](_0x2772b4['name']);}}),_0x594606['model']['document']['on']('change:data',()=>{const _0x3985db=Array['from'](_0x594606['model']['document']['differ']['getChangedMarkers']())['filter'](_0x144b9f=>'suggestion'===this['_splitMarkerName'](_0x144b9f['name'])['group']);if(0x0===_0x3985db['length'])return;_0x3985db['sort']((_0x314f5a,_0x3ec9ef)=>{const _0x320286=_0x314f5a['data']['oldRange'],_0x4b5baf=_0x3ec9ef['data']['oldRange'];return null===_0x320286&&null===_0x4b5baf?0x0:null===_0x320286&&null!==_0x4b5baf?-0x1:null!==_0x320286&&null===_0x4b5baf?0x1:_0x320286['start']['isBefore'](_0x4b5baf['start'])?-0x1:0x1;});const _0x56c410=new Set(),_0x51a059=new Set();for(const {name:_0x1a0587,data:_0x2500a0}of _0x3985db){const {id:_0x4c52b9}=this['_splitMarkerName'](_0x1a0587);if(null===_0x2500a0['oldRange']){const _0x5641e4=this['_handleNewSuggestionMarker'](_0x1a0587);_0x51a059['add'](_0x5641e4);}else{const _0x5537f0=this['_suggestions']['get'](_0x4c52b9);null!==_0x2500a0['newRange']||_0x5537f0['isInContent']?(_0x56c410['add'](_0x5537f0['head']),_0x51a059['add'](_0x5537f0)):this['_removeSuggestion'](_0x5537f0);}}_0x51a059['size']>0x0&&this['_refreshSuggestionsChain'](_0x51a059);for(const _0x5b58a4 of _0x56c410)this['fire']('suggestionChanged',_0x5b58a4);}),_0x594606['model']['on']('applyOperation',(_0x1b300a,_0x1b015b)=>{const _0x554374=_0x1b015b[0x0];if(!this['_suggestions']['size'])return;if(!_0x554374['isDocumentOperation'])return;if(_0x554374['batch']['isUndo']||!_0x554374['batch']['isLocal'])return;let _0x549f8d,_0x490dbc;switch(_0x554374['type']){case'insert':_0x549f8d=_0x594606['model']['createPositionAt'](_0x554374['position']),_0x490dbc=_0x549f8d['getShiftedBy'](_0x554374['howMany']);break;case'split':_0x549f8d=_0x594606['model']['createPositionAt'](_0x554374['splitPosition']),_0x490dbc=_0x594606['model']['createPositionAt'](_0x554374['moveTargetPosition']);break;case'move':_0x549f8d=_0x594606['model']['createPositionAt'](_0x554374['targetPosition']),_0x490dbc=_0x549f8d['getShiftedBy'](_0x554374['howMany']);break;default:return;}const _0x12a598=_0x594606['model']['createRange'](_0x549f8d,_0x490dbc);_0x594606['model']['change'](()=>{for(const {suggestion:_0xc7706d,meta:_0x3d17c6}of this['_findSuggestions'](_0x12a598)){if(_0xc7706d['isMultiRange'])continue;if('formatInline'==_0xc7706d['type'])continue;const _0x167f21=this['_getAttributeKey'](_0xc7706d);if(_0x167f21&&this['_isBlockAttribute'](_0x167f21)&&'split'!=_0x554374['type'])continue;const _0x39f586=_0xc7706d['data']&&_0xc7706d['data']['multipleBlocks'];('formatBlock'!=_0xc7706d['type']||'split'==_0x554374['type']&&!_0x39f586)&&(_0x3d17c6['containsRangeInObject']||'insertion'==_0xc7706d['type']&&_0x3d17c6['isOwn']||_0xc7706d['getFirstRange']()['containsRange'](_0x12a598)&&this['_breakSuggestionMarker'](_0xc7706d,_0x549f8d,_0x490dbc));}});},{'priority':'lowest'}),_0x594606['model']['on']('deleteContent',(_0x2e6e39,_0xc19bec)=>{const _0x29ce24=_0xc19bec[0x0],_0x3bb7ab=_0xc19bec[0x1];if(_0x3bb7ab&&_0x3bb7ab['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x29ce24['isCollapsed'])return;const _0x5f0d56=_0x594606['model']['schema'],{start:_0x4eb1ff,end:_0x54e5c4}=_0x29ce24['getFirstRange'](),_0x5f0919=_0x4eb1ff['nodeAfter']&&_0x5f0d56['isLimit'](_0x4eb1ff['nodeAfter'])?null:_0x5f0d56['getNearestSelectionRange'](_0x4eb1ff,'forward'),_0x3aca7d=_0x54e5c4['nodeBefore']&&_0x5f0d56['isLimit'](_0x54e5c4['nodeBefore'])?null:_0x5f0d56['getNearestSelectionRange'](_0x54e5c4,'backward'),_0x35a5b8=_0x594606['model']['createRange'](_0x5f0919?_0x5f0919['start']:_0x4eb1ff,_0x3aca7d?_0x3aca7d['end']:_0x54e5c4);_0x594606['model']['change'](_0x3d123e=>{this['markDeletion'](_0x35a5b8);const _0x21ba9a=_0x594606['model']['schema']['getNearestSelectionRange'](_0x35a5b8['start']);_0x29ce24['is']('documentSelection')?_0x3d123e['setSelection'](_0x21ba9a):_0x29ce24['setTo'](_0x21ba9a);}),_0x2e6e39['stop']();},{'priority':_0x511794['normal']+0xa}),_0x594606['model']['on']('insertContent',(_0x56d9c1,_0x5e3735)=>{const _0x1b11c3=_0x5e3735[_0x5e3735['length']-0x1];_0x1b11c3&&_0x1b11c3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x594606['model']['change'](()=>{let _0x40f9a9=_0x594606['model']['insertContent'](_0x5e3735[0x0],_0x5e3735[0x1],_0x5e3735[0x2],{'forceDefaultExecution':!0x0});if(!_0x40f9a9)return;_0x56d9c1['return']=_0x40f9a9['clone']();const _0x34d1d3=_0x40f9a9['end']['nodeBefore'],_0x62ccea=_0x594606['model']['schema'];_0x34d1d3&&_0x62ccea['isBlock'](_0x34d1d3)&&!_0x62ccea['isObject'](_0x34d1d3)&&(_0x40f9a9=_0x594606['model']['createRange'](_0x40f9a9['start'],_0x594606['model']['createPositionAt'](_0x34d1d3,'end'))),this['markInsertion'](_0x40f9a9);}),_0x56d9c1['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x435b7b=new $(_0x594606,this['_suggestions']);_0x594606['commands']['add']('acceptSuggestion',_0x435b7b),this['enableCommand']('acceptSuggestion');const _0x8ab5f2=new B(_0x594606,this['_suggestions']);_0x594606['commands']['add']('discardSuggestion',_0x8ab5f2),this['enableCommand']('discardSuggestion'),_0x594606['commands']['add']('acceptAllSuggestions',new x(_0x594606,_0x435b7b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x594606['commands']['add']('discardAllSuggestions',new x(_0x594606,_0x8ab5f2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x594606['commands']['add']('acceptSelectedSuggestions',new R(_0x594606,_0x435b7b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x594606['commands']['add']('discardSelectedSuggestions',new R(_0x594606,_0x8ab5f2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3abde2=_0x594606['plugins']['get']('CommentsRepository');this['listenTo'](_0x3abde2,'addComment',(_0xc69c36,{threadId:_0x3d7103})=>{const _0x22f60a=this['_suggestions']['get'](_0x3d7103);_0x22f60a&&_0x22f60a['commentThread']&&0x1===_0x22f60a['commentThread']['length']&&this['_updateSuggestionData'](_0x3d7103,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3abde2,'removeComment',(_0x1e7dd4,{threadId:_0x1fba33})=>{const _0x30a375=this['_suggestions']['get'](_0x1fba33);_0x30a375&&_0x30a375['commentThread']&&!_0x30a375['commentThread']['length']&&this['_updateSuggestionData'](_0x1fba33,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1cdf9f){if(this['_adapter'])throw new _0x8e966e('track-changes-adapter-already-set',this);this['_adapter']=_0x1cdf9f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xecca2d=!0x1,toJSON:_0x450a25=!0x1}={}){const _0x58beac=[];for(const _0x3e0f5f of this['_suggestions']['values']())_0xecca2d&&!_0x3e0f5f['isInContent']||_0x58beac['push'](_0x3e0f5f);return _0x450a25?_0x58beac['map'](_0x11147d=>_0x11147d['toJSON']()):_0x58beac;}['getSuggestion'](_0x47686f){const _0x2e577e=this['_suggestions']['get'](_0x47686f);if(!_0x2e577e)throw new _0x8e966e('track-changes-suggestion-not-found',this);return _0x2e577e;}['hasSuggestion'](_0xd689d5){return this['_suggestions']['has'](_0xd689d5);}['addSuggestionData'](_0x12f90c){const {authorId:_0x2048b1,id:_0x159042,attributes:_0x4c93ae}=_0x12f90c,[_0x56f857,_0x49ce3c]=_0x12f90c['type']['split'](':'),_0x2a956b=this['_suggestions']['get'](_0x159042)||this['_createSuggestion'](_0x56f857,_0x49ce3c,_0x159042,_0x2048b1,_0x4c93ae);if(this['_addThreadToSuggestion'](_0x2a956b),this['_checkSuggestionCorrectness'](_0x2a956b,_0x56f857,_0x49ce3c||null,_0x2048b1),_0x2a956b['createdAt']=_0x12f90c['createdAt'],_0x2a956b['_isDataLoaded']=!0x0,_0x4c93ae&&_0x4c93ae['@external']){const _0x209d4c=_0x4c93ae['@external'],_0x5d181a=this['_getExternalAuthor'](_0x209d4c['authorName']);_0x2a956b['authoredAt']=_0x209d4c['createdAt'],_0x2a956b['author']=_0x5d181a,_0x2a956b['isExternal']=!0x0;}else _0x2a956b['authoredAt']=_0x12f90c['createdAt'];switch(_0x12f90c['data']&&(_0x2a956b['data']=_0x12f90c['data']),_0x12f90c['attributes']&&(_0x2a956b['attributes']=_0x12f90c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2a956b['_saved']=!0x0),this['_suggestionState']['get'](_0x2a956b)){case'notReady':this['_suggestionState']['set'](_0x2a956b,'dataReady');break;case'markerReady':_0x2a956b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2a956b])),this['_refreshSuggestionsChain'](new Set([_0x2a956b])),this['_suggestionState']['set'](_0x2a956b,'ready'),this['fire']('suggestionLoaded',_0x2a956b)):this['_suggestionState']['set'](_0x2a956b,'removed');}return _0x2a956b;}['acceptSuggestion'](_0x360272){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5a9805 of _0x360272['getAllAdjacentSuggestions']())_0x5a9805['accept']();});});}['discardSuggestion'](_0x23a7fd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x116b04 of _0x23a7fd['getAllAdjacentSuggestions']())_0x116b04['discard']();});});}['enableCommand'](_0x290484,_0x278a7e){const _0x27a771=this['editor']['commands']['get'](_0x290484);if(!_0x27a771)throw new _0x8e966e('track-changes-command-not-found',this,{'commandName':_0x290484});if(this['_enabledCommands']['has'](_0x27a771))throw new _0x8e966e('track-changes-enable-command-twice',this,{'commandName':_0x290484});this['_enabledCommands']['add'](_0x27a771),_0x278a7e&&_0x27a771['on']('execute',(_0x38dba5,_0x29ce65)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x29ce65['length']>0x0&&_0x29ce65[_0x29ce65['length']-0x1]&&_0x29ce65[_0x29ce65['length']-0x1]['forceDefaultExecution']?_0x29ce65['pop']():(_0x38dba5['return']=_0x278a7e((..._0x3e0191)=>_0x27a771['execute'](..._0x3e0191,{'forceDefaultExecution':!0x0}),..._0x29ce65),_0x38dba5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x322dad){let _0x5c63c3,_0x204c8f;const _0x463f07=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5c63c3=_0x322dad();}catch(_0x2f578e){_0x204c8f=_0x2f578e;}return _0x463f07||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x204c8f&&_0x8e966e['rethrowUnexpectedError'](_0x204c8f,this),_0x5c63c3;}['markInsertion'](_0x461f0e,_0x5489c8=null,_0x19106c={}){if(_0x461f0e['isCollapsed'])return null;const _0x46dc80=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x541126,meta:_0x242a66}of this['_findSuggestions'](_0x461f0e,'insertion'))if(_0x242a66['isOwn']){if(!_0x242a66['isNextTo']){if(_0x242a66['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x541126,_0x19106c))continue;return _0x541126;}if(Lt(_0x541126,_0x19106c))return _0x541126;this['_breakSuggestionMarker'](_0x541126,_0x461f0e['start'],_0x461f0e['end']);break;}if(_0x5489c8==_0x541126['subType']&&Lt(_0x541126,_0x19106c)){const _0x3e8da7=_0x541126['getFirstRange']();return _0x3e8da7['start']['isEqual'](_0x461f0e['end'])?this['_setSuggestionRange'](_0x541126,this['_model']['createRange'](_0x461f0e['start'],_0x3e8da7['end'])):this['_setSuggestionRange'](_0x541126,this['_model']['createRange'](_0x3e8da7['start'],_0x461f0e['end'])),_0x541126;}}const _0xf695a7=_0x5c3a54(),_0x28be5d=_0x46dc80['id'],_0x3d6f68=_0x5489c8?'insertion:'+_0x5489c8:'insertion',_0x5520df=this['_setSuggestionData']({'id':_0xf695a7,'type':_0x3d6f68,'createdAt':new Date(),'authorId':_0x28be5d,'attributes':_0x19106c});return this['_addSuggestionMarker'](_0x3d6f68,_0xf695a7,_0x28be5d,_0x461f0e),_0x5520df;}['markMultiRangeInsertion'](_0x24d3c4,_0x2f0b84='multi',_0x245b2f={}){const _0x3282fa=this['editor']['plugins']['get']('Users')['me'],_0x2668c3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2f0b84,'join');for(const _0x4418ec of this['getSuggestions']())if(_0x4418ec['author']['id']==_0x3282fa['id']&&'insertion'==_0x4418ec['type']&&_0x4418ec['subType']==_0x2f0b84&&Lt(_0x4418ec,_0x245b2f)&&(_0x2668c3(_0x4418ec['getRanges'](),_0x24d3c4)||_0x2668c3(_0x24d3c4,_0x4418ec['getRanges']()))){for(const _0x4ad5ba of _0x24d3c4)_0x4418ec['addRange'](_0x4ad5ba);return _0x4418ec;}for(const {suggestion:_0x36c933,meta:_0x5db1f5}of this['_findSuggestions'](_0x24d3c4,'insertion')){if(!_0x5db1f5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5db1f5['containsRangeInObject'])continue;if(!Lt(_0x36c933,_0x245b2f))continue;let _0xb5bba4=!0x0;for(const _0x476c25 of _0x36c933['getRanges']())for(const _0x21e2d8 of _0x24d3c4)if(!_0x476c25['containsRange'](_0x21e2d8)){_0xb5bba4=!0x1;break;}if(_0xb5bba4)return _0x36c933;}const _0x3ab650=_0x5c3a54(),_0x449742=_0x3282fa['id'],_0x1f6437='insertion:'+_0x2f0b84,_0x24fc33=this['_setSuggestionData']({'id':_0x3ab650,'type':_0x1f6437,'createdAt':new Date(),'authorId':_0x449742,'attributes':_0x245b2f});for(const _0x45f635 of _0x24d3c4)this['_addSuggestionMarker'](_0x1f6437,_0x3ab650,_0x449742,_0x45f635,u['getMultiRangeId']());return _0x24fc33;}['markInlineFormat'](_0x29b74e,_0x1bfb87,_0x561824=null,_0x4b7da8={}){if(_0x561824=_0x561824||Vt(_0x1bfb87),_0x29b74e['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2e9b96=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x561824,'accept');return this['forceDefaultExecution'](()=>_0x2e9b96([_0x29b74e],_0x1bfb87,_0x4b7da8)),null;}const _0xc815d9=this['editor']['plugins']['get']('Users')['me'],_0x262ede=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x52a3b3,meta:_0x82056e}of this['_findSuggestions'](_0x29b74e,'insertion'))_0x82056e['isOwn']&&!_0x82056e['isInsideObject']&&_0x262ede['push'](..._0x52a3b3['getRanges']());}const _0x127bb6=function(_0x49cd01,_0x42a690){const _0x44002f=[];for(const _0x3b3c7f of _0x42a690){const _0x108246=_0x49cd01['getIntersection'](_0x3b3c7f);_0x108246&&_0x44002f['push'](_0x108246);}return _0x44002f;}(_0x29b74e,_0x262ede),_0x31a636=function(_0x2cc8fc,_0x4c4ec3){const _0x3122dd=[_0x2cc8fc];for(const _0x49e79b of _0x4c4ec3){let _0x3d7b2d=0x0;for(;_0x3d7b2d<_0x3122dd['length'];){const _0x409908=_0x3122dd[_0x3d7b2d]['getDifference'](_0x49e79b);_0x3122dd['splice'](_0x3d7b2d,0x1,..._0x409908),_0x3d7b2d+=_0x409908['length'];}}return _0x3122dd;}(_0x29b74e,_0x262ede);_0x127bb6['length']&&this['_model']['change'](()=>{for(const _0x108e21 of _0x127bb6){const _0x20f1d1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x561824,'accept');this['forceDefaultExecution'](()=>_0x20f1d1([_0x108e21],_0x1bfb87,_0x4b7da8));}});for(const _0x48e526 of _0x31a636){let _0x1da221=null,_0x4fbe34=_0x48e526['start'],_0x5a02ed=_0x48e526['end'];for(const {suggestion:_0xb6eadc,meta:_0x44c296}of this['_findSuggestions'](_0x48e526,'formatInline')){if(!_0x44c296['isOwn'])continue;if(_0xb6eadc['subType']!=_0x561824)continue;if(!Lt(_0xb6eadc,_0x4b7da8))continue;const _0x2e2586=_0xb6eadc['getFirstRange']();if(_0x2e2586['containsRange'](_0x48e526,!0x0))return null;_0x4fbe34=_0x4fbe34['isBefore'](_0x2e2586['start'])?_0x4fbe34:_0x2e2586['start'],_0x5a02ed=_0x5a02ed['isAfter'](_0x2e2586['end'])?_0x5a02ed:_0x2e2586['end'],_0x1da221?_0x2e2586['start']['isBefore'](_0x1da221['getFirstRange']()['start'])?(_0x1da221['removeMarkers'](),_0x1da221=_0xb6eadc):_0xb6eadc['removeMarkers']():_0x1da221=_0xb6eadc;}const _0x5d8678=this['_model']['createRange'](_0x4fbe34,_0x5a02ed);if(_0x1da221)this['_setSuggestionRange'](_0x1da221,_0x5d8678);else{const _0x1b8056=_0x5c3a54(),_0x2926e3=_0xc815d9['id'];this['_setSuggestionData']({'id':_0x1b8056,'type':'formatInline:'+_0x561824,'data':_0x1bfb87,'createdAt':new Date(),'authorId':_0x2926e3,'attributes':_0x4b7da8}),this['_addSuggestionMarker']('formatInline:'+_0x561824,_0x1b8056,_0x2926e3,_0x5d8678);}}return null;}['markBlockFormat'](_0x48ef8e,_0x4d9e8f,_0x4767a8=[],_0x1b7058=null,_0x5d1af0={}){_0x4d9e8f['formatGroupId']||(_0x4d9e8f['formatGroupId']=_0x4d9e8f['commandName']),_0x4d9e8f['multipleBlocks']=_0x48ef8e['is']('range'),_0x1b7058=_0x1b7058||Vt(_0x4d9e8f);const _0x51de43=_0x4767a8['map'](_0x511b9b=>Gt(_0x511b9b,this['_model'])),_0x49584b=_0x48ef8e['is']('range')?_0x48ef8e:Gt(_0x48ef8e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2ffa52=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b7058,'accept');return this['forceDefaultExecution'](()=>_0x2ffa52([_0x49584b],_0x4d9e8f,_0x5d1af0)),null;}_0x51de43['push'](_0x49584b);let _0x1bb0f8=!0x0;for(const _0x1a844f of _0x51de43)if(!this['_rangeIsInLocalUserInsertion'](_0x1a844f)){_0x1bb0f8=!0x1;break;}if(_0x1bb0f8&&'always'!==this['_trackFormatChanges']){const _0x10c3ac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b7058,'accept');return this['forceDefaultExecution'](()=>_0x10c3ac([_0x49584b],_0x4d9e8f,_0x5d1af0)),null;}let _0x198e10=null,_0x327616=_0x49584b['start'],_0x1bf74f=_0x49584b['end'];for(const {suggestion:_0xafdbea,meta:_0x353dc1}of this['_findSuggestions'](_0x49584b,'formatBlock')){if(!_0x353dc1['isOwn'])continue;if(_0x353dc1['isNextTo']||_0x353dc1['containsRangeInObject']||_0x353dc1['isInsideObject'])continue;if(_0xafdbea['data']['formatGroupId']!=_0x4d9e8f['formatGroupId'])continue;if(!Lt(_0xafdbea,_0x5d1af0))continue;const _0x5255b4=_0xafdbea['getFirstRange']();if(_0xafdbea['subType']==_0x1b7058){if(_0x5255b4['containsRange'](_0x49584b,!0x0))return null;_0x327616=_0x327616['isBefore'](_0x5255b4['start'])?_0x327616:_0x5255b4['start'],_0x1bf74f=_0x1bf74f['isAfter'](_0x5255b4['end'])?_0x1bf74f:_0x5255b4['end'],_0x198e10?_0x5255b4['start']['isBefore'](_0x198e10['getFirstRange']()['start'])?(_0x198e10['removeMarkers'](),_0x198e10=_0xafdbea):_0xafdbea['removeMarkers']():_0x198e10=_0xafdbea;}else{const _0x2d2b3e=_0x49584b['getIntersection'](_0x5255b4);this['_cutOutSuggestionMarker'](_0xafdbea,_0x2d2b3e);}}const _0x252777=this['editor']['plugins']['get']('Users')['me'],_0x20e883=_0x5c3a54(),_0x509e01=_0x252777['id'];if(_0x198e10)return this['_setSuggestionRange'](_0x198e10,this['_model']['createRange'](_0x327616,_0x1bf74f)),_0x198e10;{const _0x239c29=this['_setSuggestionData']({'id':_0x20e883,'type':'formatBlock:'+_0x1b7058,'data':_0x4d9e8f,'createdAt':new Date(),'authorId':_0x509e01,'attributes':_0x5d1af0});return this['_addSuggestionMarker']('formatBlock:'+_0x1b7058,_0x20e883,_0x509e01,this['_model']['createRange'](_0x327616,_0x1bf74f)),_0x239c29;}}['markMultiRangeBlockFormat'](_0x10edbf,_0x310724,_0x392a27=[],_0x3bacbc=null,_0x3778dc={}){_0x310724['formatGroupId']||(_0x310724['formatGroupId']=_0x310724['commandName']);const _0x234301=_0x10edbf[0x0];_0x310724['multipleBlocks']=_0x234301['is']('range'),_0x3bacbc=_0x3bacbc||Vt(_0x310724);const _0x5d4a75=_0x392a27['map'](_0x33ffe7=>Gt(_0x33ffe7,this['_model'])),_0x5a31ea=_0x234301['is']('range')?_0x10edbf:_0x10edbf['map'](_0x8297b6=>Gt(_0x8297b6,this['_model']));if('never'===this['_trackFormatChanges']){const _0x271226=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3bacbc,'accept');return this['forceDefaultExecution'](()=>_0x271226(_0x5a31ea,_0x310724,_0x3778dc)),null;}_0x5d4a75['push'](..._0x5a31ea);let _0x5b4fe4=!0x0;for(const _0x3a0447 of _0x5d4a75)if(!this['_rangeIsInLocalUserInsertion'](_0x3a0447)){_0x5b4fe4=!0x1;break;}if(_0x5b4fe4&&'always'!==this['_trackFormatChanges']){const _0x2be6b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3bacbc,'accept');return this['forceDefaultExecution'](()=>_0x2be6b5(_0x5a31ea,_0x310724,_0x3778dc)),null;}const _0xb8693b=this['editor']['plugins']['get']('Users')['me'];for(const _0x3177f2 of this['getSuggestions']()){if(_0x3177f2['author']['id']!=_0xb8693b['id'])continue;if('formatBlock'!=_0x3177f2['type']||_0x3177f2['data']['formatGroupId']!=_0x310724['formatGroupId'])continue;if(!Lt(_0x3177f2,_0x3778dc))continue;const _0x1e6dc5=_0x3177f2['subType']==_0x3bacbc;for(let _0x326592=0x0;_0x326592<_0x5a31ea['length'];_0x326592++){const _0xedf1ae=_0x5a31ea[_0x326592];for(const _0xc5d25b of _0x3177f2['getMarkers']()){const _0x399660=_0xc5d25b['getRange']();if(_0xedf1ae['isEqual'](_0x399660)){_0x1e6dc5?(_0x5a31ea['splice'](_0x326592,0x1),_0x326592--):_0x3177f2['removeMarker'](_0xc5d25b['name']);break;}}}}if(0x0==_0x5a31ea['length'])return null;const _0x196f12=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3bacbc,'join');for(const _0x40966e of this['getSuggestions']())if(_0x40966e['author']['id']==_0xb8693b['id']&&'formatBlock'==_0x40966e['type']&&_0x40966e['data']['formatGroupId']==_0x310724['formatGroupId']&&_0x40966e['subType']==_0x3bacbc&&Lt(_0x40966e,_0x3778dc)&&(_0x196f12(_0x40966e['getRanges'](),_0x5a31ea)||_0x196f12(_0x5a31ea,_0x40966e['getRanges']()))){for(const _0x322c66 of _0x5a31ea)_0x40966e['addRange'](_0x322c66);return _0x40966e;}const _0x31fa5e=_0x5c3a54(),_0x16708a=_0xb8693b['id'],_0x47511c='formatBlock:'+_0x3bacbc,_0x212482=this['_setSuggestionData']({'id':_0x31fa5e,'type':_0x47511c,'data':_0x310724,'createdAt':new Date(),'authorId':_0x16708a,'attributes':_0x3778dc});for(const _0x1309a4 of _0x5a31ea)this['_addSuggestionMarker'](_0x47511c,_0x31fa5e,_0x16708a,_0x1309a4,u['getMultiRangeId']());return _0x212482;}['markDeletion'](_0x52857c,_0x17a7b2=null,_0x1b607f={}){if(_0x52857c['isCollapsed'])return null;const _0x234cfd=this['editor']['plugins']['get']('Users')['me'],_0x537f0a=new _0x1c4270(_0x52857c['start'],_0x52857c['end']);for(const {suggestion:_0x9a577e,meta:_0x79a065}of this['_findSuggestions'](_0x537f0a,'insertion'))if(_0x79a065['isOwn']&&!_0x79a065['isNextTo']){if(_0x9a577e['isMultiRange']){const _0x51bf03=_0x9a577e['getRanges']()['filter'](_0x419dad=>'$graveyard'!=_0x419dad['root']['rootName']);_0x51bf03['every'](_0xc15f4b=>_0x537f0a['containsRange'](_0xc15f4b,!0x0))&&_0x9a577e['discard']();if(_0x51bf03['some'](_0x99d6bb=>_0x99d6bb['containsRange'](_0x537f0a,!0x0))){const _0x3ab68f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17a7b2,'accept');return this['forceDefaultExecution'](()=>_0x3ab68f([_0x537f0a],null,_0x1b607f)),null;}}else{const _0x1c1f88=_0x537f0a['getIntersection'](_0x9a577e['getFirstRange']());null!==_0x1c1f88&&_0x9a577e['_onDiscard']([_0x1c1f88],null,_0x1b607f);}}if(_0x537f0a['detach'](),_0x537f0a['isCollapsed']||'$graveyard'==_0x537f0a['root']['rootName'])return null;let _0x58e86b=null,_0x2a3af9=_0x537f0a['start'],_0x174fc8=_0x537f0a['end'];const _0xc6ed1e=this['_findSuggestions'](_0x537f0a,'deletion');for(const {suggestion:_0x39d1c8,meta:_0x503712}of _0xc6ed1e){const _0x1edb33=this['_model']['createRange'](_0x2a3af9,_0x174fc8);if(_0x503712['isOwn']&&(this['_mergeNestedSuggestions']||!_0x503712['containsRangeInObject']&&!_0x503712['isInsideObject'])){if(_0x39d1c8['isMultiRange']){if(!Lt(_0x39d1c8,_0x1b607f))continue;let _0x4f7a57=!0x0;for(const _0x16cb13 of _0x39d1c8['getRanges']()){if(_0x16cb13['containsRange'](_0x1edb33,!0x0))return _0x39d1c8;_0x1edb33['containsRange'](_0x16cb13)||(_0x4f7a57=!0x1);}_0x4f7a57&&_0x39d1c8['discard']();}else{const _0x2294d3=_0x39d1c8['getFirstRange']();if(_0x2294d3['containsRange'](_0x1edb33,!0x0))return _0x39d1c8;if(!Lt(_0x39d1c8,_0x1b607f)){_0x1edb33['containsRange'](_0x2294d3)?_0x39d1c8['removeMarkers']():_0x2294d3['containsPosition'](_0x2a3af9)?_0x2a3af9=_0x2294d3['end']:_0x2294d3['containsPosition'](_0x174fc8)&&(_0x174fc8=_0x2294d3['start']);continue;}_0x2a3af9=_0x2a3af9['isBefore'](_0x2294d3['start'])?_0x2a3af9:_0x2294d3['start'],_0x174fc8=_0x174fc8['isAfter'](_0x2294d3['end'])?_0x174fc8:_0x2294d3['end'],_0x1b607f=Object['assign']({},_0x39d1c8['attributes']),_0x58e86b?_0x2294d3['start']['isBefore'](_0x58e86b['getFirstRange']()['start'])?(_0x58e86b['removeMarkers'](),_0x58e86b=_0x39d1c8):_0x39d1c8['removeMarkers']():_0x58e86b=_0x39d1c8;}}}if(_0x58e86b)return this['_setSuggestionRange'](_0x58e86b,this['_model']['createRange'](_0x2a3af9,_0x174fc8)),_0x58e86b;{const _0x231810=_0x5c3a54(),_0x19b35d=this['_model']['createRange'](_0x2a3af9,_0x174fc8),_0x3a9a55=_0x234cfd['id'],_0x9b0603=_0x17a7b2?'deletion:'+_0x17a7b2:'deletion',_0x1a4d7d=this['_setSuggestionData']({'id':_0x231810,'type':_0x9b0603,'createdAt':new Date(),'authorId':_0x3a9a55,'attributes':_0x1b607f});return this['_addSuggestionMarker'](_0x9b0603,_0x231810,_0x3a9a55,_0x19b35d),_0x1a4d7d;}}['markMultiRangeDeletion'](_0x4eb7e6,_0x346129='multi',_0x2d8e2c={}){const _0x3f0bb7=this['editor']['plugins']['get']('Users')['me'],_0x48f1fa=_0x4eb7e6['map'](_0x475aaa=>new _0x1c4270(_0x475aaa['start'],_0x475aaa['end'])),_0x49790d=new Set();for(const {suggestion:_0x5c51e6,meta:_0x138170}of this['_findSuggestions'](_0x48f1fa,'insertion'))_0x138170['isOwn']&&!_0x138170['isNextTo']&&_0x49790d['add'](_0x5c51e6);for(const _0x18de93 of _0x49790d)if(_0x18de93['isMultiRange']){const _0x14ac5d=_0x18de93['getRanges']();(!_0x18de93['attributes']||!_0x18de93['attributes']['skipNestingCheck'])&&(_0x14ac5d['every'](_0x384ede=>_0x48f1fa['some'](_0x433c8e=>_0x433c8e['containsRange'](_0x384ede,!0x0)))&&_0x18de93['discard']());if(_0x48f1fa['every'](_0x3491dd=>_0x14ac5d['some'](_0x5b563e=>_0x5b563e['containsRange'](_0x3491dd,!0x0)))){const _0x93a01c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x346129,'accept');return this['forceDefaultExecution'](()=>_0x93a01c(_0x4eb7e6,null,_0x2d8e2c)),null;}}else{const _0x2da508=_0x18de93['getFirstRange']();_0x48f1fa['some'](_0x890ace=>_0x890ace['containsRange'](_0x2da508,!0x0))&&_0x18de93['discard']();if(_0x48f1fa['every'](_0xb3d293=>_0x2da508['containsRange'](_0xb3d293,!0x0))){const _0x38516b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x346129,'accept');return this['forceDefaultExecution'](()=>_0x38516b(_0x48f1fa,null,_0x2d8e2c)),null;}}const _0x40e625=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x346129,'join');let _0x27e43e=null;for(const _0x1ded8d of this['getSuggestions']())if(_0x1ded8d['author']['id']==_0x3f0bb7['id']&&_0x1ded8d['isInContent']&&'deletion'==_0x1ded8d['type']&&_0x1ded8d['subType']==_0x346129&&Lt(_0x1ded8d,_0x2d8e2c)&&(_0x40e625(_0x1ded8d['getRanges'](),_0x48f1fa)||_0x40e625(_0x48f1fa,_0x1ded8d['getRanges']()))){if(_0x27e43e){if(_0x1ded8d['commentThread']&&_0x1ded8d['commentThread']['length'])continue;for(const _0x4648b6 of _0x1ded8d['getRanges']())_0x27e43e['isIntersectingWithRange'](_0x4648b6)||_0x27e43e['addRange'](_0x4648b6);_0x1ded8d['removeMarkers']();}else{_0x27e43e=_0x1ded8d;for(const _0xd40dc0 of _0x48f1fa)_0x1ded8d['isIntersectingWithRange'](_0xd40dc0)||_0x1ded8d['addRange'](_0xd40dc0);}}if(_0x27e43e)return _0x27e43e;_0x49790d['clear']();for(const {suggestion:_0x4d5f68,meta:_0x2e9da0}of this['_findSuggestions'](_0x48f1fa,'deletion'))_0x2e9da0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2e9da0['containsRangeInObject']&&!_0x2e9da0['isInsideObject'])&&Lt(_0x4d5f68,_0x2d8e2c)&&_0x49790d['add'](_0x4d5f68);for(const _0x25167a of _0x49790d){const _0x21de9e=_0x25167a['getRanges']();if(!_0x2d8e2c||!_0x2d8e2c['skipNestingCheck']){if(_0x48f1fa['every'](_0x5902ff=>_0x21de9e['some'](_0x1cdfdf=>_0x1cdfdf['containsRange'](_0x5902ff,!0x0))))return _0x25167a;}(!_0x25167a['attributes']||!_0x25167a['attributes']['skipNestingCheck'])&&(_0x21de9e['every'](_0x41f947=>_0x48f1fa['some'](_0x2ce151=>_0x2ce151['containsRange'](_0x41f947,!0x0)))&&_0x25167a['discard']());}const _0x419271=_0x5c3a54(),_0x15617b=_0x3f0bb7['id'],_0x4238d1='deletion:'+_0x346129,_0x40c62c=this['_setSuggestionData']({'id':_0x419271,'type':_0x4238d1,'createdAt':new Date(),'authorId':_0x15617b,'attributes':_0x2d8e2c});for(const _0xc80798 of _0x48f1fa)_0xc80798['detach'](),_0xc80798['isCollapsed']||'$graveyard'==_0xc80798['root']['rootName']||this['_addSuggestionMarker'](_0x4238d1,_0x419271,_0x15617b,_0xc80798,u['getMultiRangeId']());return _0x40c62c;}['markAttributeChange'](_0x19b00,_0x10a9f0,_0x218fb1,_0x349fab,_0xea098b){if(_0x19b00['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x505a6b=this['editor']['plugins']['get']('Users')['me']['id'],_0x316ca0=Array['from'](this['_suggestions']['values']())['filter'](_0x57b617=>'attribute'==_0x57b617['type']&&_0x57b617['data']['key']==_0x10a9f0&&_0x57b617['isIntersectingWithRange'](_0x19b00));if('default'===this['_trackFormatChanges']){const _0x29a202=this['_findSuggestions'](_0x19b00,'insertion')['filter'](({meta:_0x251cdf})=>_0x251cdf['isOwn']&&!_0x251cdf['isInsideObject']&&!_0x251cdf['isNextTo'])['map'](({suggestion:_0x1ea723})=>_0x1ea723);_0x316ca0['unshift'](..._0x29a202);}const _0x694409=new Map([[_0x19b00,_0x218fb1]]);for(const _0x4207c6 of _0x316ca0){const _0x14d524='attribute'==_0x4207c6['type']?_0x4207c6['data']['oldValue']:void 0x0,_0x4077b0=_0x4207c6['getFirstRange'](),_0x3a9708=Array['from'](_0x694409['keys']())['find'](_0x21b966=>_0x21b966['isIntersecting'](_0x4077b0));if(!_0x3a9708)continue;const _0xd90452=_0x3a9708['getDifference'](_0x4077b0);this['_isBlockAttribute'](_0x10a9f0)&&'insertion'==_0x4207c6['type']&&0x0!=_0xd90452['length']||(_0x694409['delete'](_0x3a9708),_0xd90452['forEach'](_0xf6a177=>{_0x694409['set'](_0xf6a177,_0x218fb1);}),'insertion'!=_0x4207c6['type']&&_0x14d524!=_0x349fab&&_0x694409['set'](_0x3a9708['getIntersection'](_0x4077b0),_0x14d524));}const _0x5d12e4=[];for(const [_0x389979,_0x5b2728]of _0x694409){const _0x56aa9f=_0x5c3a54(),_0x297ae6={'key':_0x10a9f0,'oldValue':_0x5b2728,'newValue':_0x349fab};_0x10a9f0['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':_0x10a9f0});const _0x34dbda=('attribute:'+(_0x10a9f0+'|'+Vt({'newValue':_0x349fab})))['substring'](0x0,0x3c),_0x1980d2=this['_setSuggestionData']({'id':_0x56aa9f,'type':_0x34dbda,'data':_0x297ae6,'createdAt':new Date(),'authorId':_0x505a6b,'attributes':_0xea098b});_0x5d12e4['push'](_0x1980d2),this['_addSuggestionMarker'](_0x34dbda,_0x56aa9f,_0x505a6b,_0x389979);}return _0x5d12e4;}['enableDefaultAttributesIntegration'](_0x448beb){this['enableCommand'](_0x448beb,(_0x1e7022,..._0xe1850a)=>{this['_recordAttributeChanges'](()=>{_0x1e7022(..._0xe1850a);});});}['registerBlockAttribute'](_0x186c6b){this['_blockAttributeKeys']['add'](_0x186c6b);}['registerInlineAttribute'](_0x917660){this['_inlineAttributeKeys']['add'](_0x917660);}['_getAttributeKey'](_0xa5939c){return'attribute'==_0xa5939c['type']?_0xa5939c['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x54ed11,_0x10ad9a){const _0x917899=_0x54ed11['getFirstMarker']();this['_model']['change'](_0x5d1ef9=>{_0x5d1ef9['updateMarker'](_0x917899,{'range':_0x10ad9a});});}['_addThreadToSuggestion'](_0x33ac25){const _0x3339c0=_0x33ac25['id'],_0xe73c0d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3339c0)||this['_commentsRepository']['addCommentThread']({'channelId':_0xe73c0d,'threadId':_0x3339c0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x41cf55=this['_commentsRepository']['getCommentThread'](_0x3339c0);_0x41cf55['unbind']('isRemovable'),_0x41cf55['isRemovable']=!0x1,_0x33ac25['commentThread']=_0x41cf55;}['_checkSuggestionCorrectness'](_0x388a18,_0x1f0c6a,_0x530dcd,_0x3115ef){if(_0x388a18['type']!=_0x1f0c6a||_0x388a18['subType']!=_0x530dcd||_0x388a18['creator']['id']!=_0x3115ef)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x8e966e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xb9111,_0x4af143){const _0x426aaa=_0xb9111['getFirstRange']();if(_0x4af143['isEqual'](_0x426aaa))_0xb9111['removeMarkers']();else{if(_0x426aaa['containsRange'](_0x4af143)){const _0x14452d=this['_model']['createPositionAt'](_0x4af143['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xb9111,this['_model']['createRange'](_0x426aaa['start'],_0x14452d));const _0x43076e=_0x5c3a54(),_0x30a8f0=_0xb9111['creator']['id'],_0x1ab38b=_0xb9111['type']+':'+_0xb9111['subType'];this['_setSuggestionData']({'id':_0x43076e,'type':_0x1ab38b,'createdAt':new Date(),'authorId':_0x30a8f0,'data':_0xb9111['data'],'attributes':_0xb9111['attributes']});const _0x67edcd=this['_model']['createPositionAt'](_0x4af143['end']['parent'],'after'),_0x3d93ac=this['_model']['createRange'](_0x67edcd,_0x426aaa['end']);this['_addSuggestionMarker'](_0x1ab38b,_0x43076e,_0x30a8f0,_0x3d93ac);}else{if(_0x426aaa['containsPosition'](_0x4af143['start'])){const _0x1eb058=this['_model']['createPositionAt'](_0x4af143['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xb9111,this['_model']['createRange'](_0x426aaa['start'],_0x1eb058));}else{const _0x427374=this['_model']['createPositionAt'](_0x4af143['end']['parent'],'after');this['_setSuggestionRange'](_0xb9111,this['_model']['createRange'](_0x427374,_0x426aaa['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x29c5f8){for(const {suggestion:_0x4ab5cf,meta:_0x1c9942}of this['_findSuggestions'](_0x29c5f8,'insertion')){if(!_0x1c9942['isOwn'])continue;const _0x5b9db2=_0x4ab5cf['getRanges']();for(const _0x30d2bf of _0x5b9db2)if(!_0x29c5f8['getDifference'](_0x30d2bf)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x13bcbb){const _0x194a49=this['editor']['plugins']['get']('Users')['getUser'](_0x13bcbb);if(!_0x194a49)throw new _0x8e966e('track-changes-user-not-found',this);return _0x194a49;}['_getExternalAuthor'](_0x135285){const _0x5b0c5f=this['editor']['plugins']['get']('Users'),_0x53ffb5=_0x166b46('external:'+_0x135285),_0x2b55f4=_0x5b0c5f['getUser'](_0x53ffb5);return _0x2b55f4||_0x5b0c5f['addUser']({'id':_0x53ffb5,'name':_0x135285});}['_createSuggestion'](_0x43ac5e,_0x41cd8a,_0x47f917,_0x70e77a,_0x4657ef){const _0xb0c5e5=this['_getAuthorFromId'](_0x70e77a),_0x3f500b=this['_suggestionFactory']['buildSuggestion'](_0x43ac5e,_0x41cd8a,_0x47f917,_0xb0c5e5,_0x4657ef,_0x4c40c8=>{this['_updateSuggestionData'](_0x47f917,{'attributes':_0x4c40c8});const _0xadb7f8=this['getSuggestion'](_0x47f917);this['_joinWithAdjacentSuggestions'](new Set([_0xadb7f8])),this['_refreshSuggestionsChain'](new Set([_0xadb7f8]));});return this['listenTo'](_0x3f500b,'accept',()=>{this['_updateSuggestionData'](_0x47f917,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3f500b,'discard',()=>{this['_updateSuggestionData'](_0x47f917,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x47f917,_0x3f500b),this['_suggestionState']['set'](_0x3f500b,'notReady'),_0x3f500b;}['_splitMarkerName'](_0x57e37a){const _0xdfc8b2=_0x57e37a['split'](':');return{'group':_0xdfc8b2[0x0],'type':_0xdfc8b2[0x1],'subType':_0xdfc8b2['length']>=0x5?_0xdfc8b2[0x2]:null,'id':_0xdfc8b2['length']<0x5?_0xdfc8b2[0x2]:_0xdfc8b2[0x3],'authorId':_0xdfc8b2['length']<0x5?_0xdfc8b2[0x3]:_0xdfc8b2[0x4],'markerCount':0x6==_0xdfc8b2['length']?_0xdfc8b2[0x5]:null};}['_breakSuggestionMarker'](_0x38fdd2,_0xb0e929,_0x55ca23){const _0xd4f883=_0x38fdd2['getFirstRange'](),_0x171764=_0xd4f883['start'],_0x374a9c=_0xd4f883['end'];this['_setSuggestionRange'](_0x38fdd2,this['_model']['createRange'](_0x171764,_0xb0e929));const _0x1f9453=_0x5c3a54(),_0x1628af=_0x38fdd2['creator']['id'],_0xb610d1=_0x38fdd2['type']+(_0x38fdd2['subType']?':'+_0x38fdd2['subType']:'');this['_setSuggestionData']({'id':_0x1f9453,'type':_0xb610d1,'createdAt':new Date(),'authorId':_0x1628af,'originalSuggestionId':_0x38fdd2['id'],'attributes':_0x38fdd2['attributes'],'data':_0x38fdd2['data']});const _0x408d65=this['_getAttributeKey'](_0x38fdd2);('formatBlock'==_0x38fdd2['type']||_0x408d65&&this['_isBlockAttribute'](_0x408d65))&&(_0x55ca23=this['_model']['createPositionBefore'](_0x55ca23['parent'])),this['_addSuggestionMarker'](_0xb610d1,_0x1f9453,_0x1628af,this['_model']['createRange'](_0x55ca23,_0x374a9c));}['_findSuggestions'](_0x364369,_0x5b359f=null){const _0x5372ab=[],_0x1a10c1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x364369)||(_0x364369=[_0x364369]);for(const _0x133c0f of this['getSuggestions']()){if(!_0x133c0f['isInContent'])continue;if(_0x5b359f&&_0x133c0f['type']!=_0x5b359f)continue;let _0x295d96=!0x1;for(const _0x4a6852 of _0x133c0f['getRanges']()){for(const _0x3cd199 of _0x364369){const _0x286e29=_0x3cd199['start']['isEqual'](_0x4a6852['end'])||_0x3cd199['end']['isEqual'](_0x4a6852['start']);if(_0x286e29||_0x3cd199['getIntersection'](_0x4a6852)){const _0x5413c6=_0x3cd199['containsRange'](_0x4a6852)&&Rt(this['_model']['schema'],_0x4a6852['start'],_0x3cd199),_0x26e868=_0x4a6852['containsRange'](_0x3cd199)&&Rt(this['_model']['schema'],_0x3cd199['start'],_0x4a6852);_0x5372ab['push']({'suggestion':_0x133c0f,'meta':{'isOwn':_0x1a10c1==_0x133c0f['author'],'isNextTo':_0x286e29,'isInsideObject':_0x5413c6,'containsRangeInObject':_0x26e868}}),_0x295d96=!0x0;break;}}if(_0x295d96)break;}}return _0x5372ab;}['_addSuggestionMarker'](_0xd9f37d,_0xbed2f6,_0x14501b,_0xb9be3e,_0x3d63ba){this['_model']['change'](_0x54a889=>{let _0x39a590='suggestion:'+_0xd9f37d+':'+_0xbed2f6+':'+_0x14501b;_0x3d63ba&&(_0x39a590=_0x39a590+':'+_0x3d63ba),_0x54a889['addMarker'](_0x39a590,{'range':_0xb9be3e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x18cffc){const _0x286253=_0x18cffc['previous'],_0x2fe947=_0x18cffc['next'];_0x18cffc['previous']=null,_0x18cffc['next']=null,null!=_0x286253&&_0x286253['next']==_0x18cffc&&(_0x286253['next']=_0x2fe947),null!=_0x2fe947&&_0x2fe947['previous']==_0x18cffc&&(_0x2fe947['previous']=_0x286253),'ready'==this['_suggestionState']['get'](_0x18cffc)&&(this['_suggestionState']['set'](_0x18cffc,'removed'),this['fire']('suggestionUnloaded',_0x18cffc,_0x286253,_0x2fe947));}['_setSuggestionData'](_0x1e3f05){const _0x4592b9=_0x1e3f05['id'],_0x4e2db3=this['addSuggestionData'](_0x1e3f05);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x264f7b=this['editor']['plugins']['get']('PendingActions'),_0x3080ed=_0x4e2db3['hasComments'],_0x5ed7a7=_0x4e2db3['subType']?_0x4e2db3['type']+':'+_0x4e2db3['subType']:_0x4e2db3['type'],_0x19b29b=this['editor']['locale'],_0x1651a5=_0x264f7b['add'](o(_0x19b29b,'PENDING_ACTION_SUGGESTION')),_0x36b247={'id':_0x4592b9,'type':_0x5ed7a7,'hasComments':_0x3080ed,'data':_0x1e3f05['data']||null,'originalSuggestionId':_0x1e3f05['originalSuggestionId']||null,'attributes':_0x4e2db3['attributes']};this['_adapter']['addSuggestion'](_0x36b247)['then'](_0x156b7a=>{_0x4e2db3['_saved']=!0x0,_0x264f7b['remove'](_0x1651a5),_0x156b7a&&_0x156b7a['createdAt']&&(this['_suggestions']['get'](_0x4592b9)['createdAt']=_0x156b7a['createdAt']);})['catch'](_0x4eabf5=>{throw _0x26f347('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4e2db3['discard']();}),_0x4e2db3['stopListening'](),this['_suggestions']['delete'](_0x4e2db3['id']),this['_suggestionState']['delete'](_0x4e2db3),_0x4eabf5;});}return _0x4e2db3;}['_isBlockAttribute'](_0x343997){return this['_blockAttributeKeys']['has'](_0x343997);}['_updateSuggestionData'](_0x42f938,_0x5bc7be){const _0x562298=this['editor']['plugins']['get']('PendingActions'),_0x9621be=this['getSuggestion'](_0x42f938);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x9621be['_saved']){const _0x56ef52=_0x562298['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x42f938,_0x5bc7be)['then'](()=>{_0x562298['remove'](_0x56ef52);});}else _0x9621be['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x42f938,_0x5bc7be);});}}['_getSuggestionData'](_0x12e04e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x8e966e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x12e04e);}['_handleNewSuggestionMarker'](_0x137210){const {id:_0x6386ae,type:_0x30a254,subType:_0xd1f0ea,authorId:_0x4f5272}=this['_splitMarkerName'](_0x137210),_0x563157=this['_suggestions']['get'](_0x6386ae)||this['_createSuggestion'](_0x30a254,_0xd1f0ea,_0x6386ae,_0x4f5272,{});switch(this['_checkSuggestionCorrectness'](_0x563157,_0x30a254,_0xd1f0ea,_0x4f5272),this['_suggestionState']['get'](_0x563157)){case'notReady':this['_getSuggestionData'](_0x6386ae)['then'](_0x1b32bd=>{let _0x5810a9=Promise['resolve']();_0x1b32bd['hasComments']&&(_0x5810a9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x6386ae})),_0x5810a9['then'](()=>{this['addSuggestionData'](_0x1b32bd)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x563157,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x6386ae,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x563157,'ready'),this['fire']('suggestionLoaded',_0x563157);break;case'ready':this['fire']('suggestionChanged',_0x563157);}return _0x563157['addMarkerName'](_0x137210),_0x563157;}['_refreshSuggestionsChain'](_0x17bbc9){const _0x3465a8=Array['from'](_0x17bbc9),_0x587bd5=_0x3465a8['filter'](_0x159b59=>'attribute'==_0x159b59['type']);this['_refreshAttributeSuggestionsChain'](_0x587bd5);const _0x25ecb6=_0x3465a8['filter'](_0x1addbd=>!_0x1addbd['isMultiRange']&&'attribute'!=_0x1addbd['type']),_0x5e86f6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18d010=>!_0x18d010['isMultiRange']&&'attribute'!=_0x18d010['type']),_0x554da8=_0x5e86f6['filter'](_0xb417e2=>!_0x17bbc9['has'](_0xb417e2)),_0x1ce378=new Map(_0x5e86f6['map'](_0x378422=>[_0x378422,this['_suggestionFactory']['getSuggestionCallback'](_0x378422['type'],_0x378422['subType'],'chain')])),_0x155853=new Map(_0x5e86f6['map'](_0xfd44=>[_0xfd44,_0xfd44['getFirstRange']()])),_0x3560df=new Set(),_0x53792d=new Set();for(let _0x3db324=0x0;_0x3db324<_0x25ecb6['length'];_0x3db324++)_0x741959(_0x25ecb6[_0x3db324],_0x25ecb6,_0x3db324+0x1);for(let _0x469967=0x0;_0x469967<_0x25ecb6['length'];_0x469967++)_0x741959(_0x25ecb6[_0x469967],_0x554da8,0x0);const _0x4ce71d=new Set();for(let _0x5aece7=0x0;_0x5aece7<_0x25ecb6['length'];_0x5aece7++){const _0x42cbea=_0x25ecb6[_0x5aece7];!_0x53792d['has'](_0x42cbea)&&_0x42cbea['previous']&&(_0x4ce71d['add'](_0x42cbea['previous']),_0x42cbea['previous']['next']===_0x42cbea&&(_0x42cbea['previous']['next']=null),_0x42cbea['previous']=null),!_0x3560df['has'](_0x42cbea)&&_0x42cbea['next']&&(_0x4ce71d['add'](_0x42cbea['next']),_0x42cbea['next']['previous']===_0x42cbea&&(_0x42cbea['next']['previous']=null),_0x42cbea['next']=null);}function _0x741959(_0x116d4e,_0xedb1c4,_0x487f29){for(let _0x2dff98=_0x487f29;_0x2dff98<_0xedb1c4['length'];_0x2dff98++){const _0xdaeeb3=_0x450381(_0x116d4e,_0xedb1c4[_0x2dff98]);_0xdaeeb3&&(_0xdaeeb3[0x0]['next']=_0xdaeeb3[0x1],_0xdaeeb3[0x1]['previous']=_0xdaeeb3[0x0],_0x3560df['add'](_0xdaeeb3[0x0]),_0x53792d['add'](_0xdaeeb3[0x1]));}}function _0x450381(_0x32cc02,_0x3622db){if(_0x32cc02['author']['id']!==_0x3622db['author']['id'])return null;const _0x4eb82d=_0x1ce378['get'](_0x32cc02)(_0x32cc02,_0x3622db,_0x155853['get'](_0x32cc02),_0x155853['get'](_0x3622db));if(!_0x4eb82d)return null;return _0x1ce378['get'](_0x3622db)(_0x32cc02,_0x3622db,_0x155853['get'](_0x32cc02),_0x155853['get'](_0x3622db))?_0x4eb82d[0x1]['commentThread']&&_0x4eb82d[0x1]['commentThread']['length']?null:_0x4eb82d:null;}_0x4ce71d['size']&&this['_refreshSuggestionsChain'](_0x4ce71d);}['_refreshAttributeSuggestionsChain'](_0x2e7389){if(0x0==_0x2e7389['length'])return;const _0x4bac3d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2696eb=>'attribute'==_0x2696eb['type']&&_0x2696eb['_isDataLoaded']),_0x39e73a=[],_0x7a774f=new Map();for(const _0x33b3f6 of _0x4bac3d){const _0x2ce21e=_0x166b46(_0x33b3f6['attributes']);_0x7a774f['has'](_0x2ce21e)||(_0x7a774f['set'](_0x2ce21e,_0x39e73a['length']),_0x39e73a['push']([]));const _0x2de380=_0x7a774f['get'](_0x2ce21e);_0x39e73a[_0x2de380]['push'](_0x33b3f6);}!(function(){_0x39e73a['sort']((_0x44b356,_0x566f50)=>{const _0xe9a3a6=_0x44b356[0x0]['createdAt'],_0x49a25d=_0x566f50[0x0]['createdAt'];return _0xe9a3a6==_0x49a25d?_0x44b356[0x0]['attributes']['groupId']<_0x566f50[0x0]['attributes']['groupId']?-0x1:0x1:_0xe9a3a6<_0x49a25d?-0x1:0x1;});for(const _0x4cd136 of _0x39e73a)_0x4cd136['sort']((_0x48b895,_0x57c4ba)=>_0x48b895['id']<_0x57c4ba['id']?-0x1:0x1);}());for(let _0x5e189c=0x0;_0x5e189c<_0x39e73a['length'];_0x5e189c++){if(0x0==_0x39e73a[_0x5e189c]['length'])continue;const _0x16f7a9=[];for(let _0x4eb409=_0x5e189c+0x1;_0x4eb409<_0x39e73a['length'];_0x4eb409++)0x0!=_0x39e73a[_0x4eb409]['length']&&_0x157579(_0x39e73a[_0x5e189c],_0x39e73a[_0x4eb409])&&_0x16f7a9['push'](_0x4eb409);for(const _0x5a1385 of _0x16f7a9)_0x39e73a[_0x5e189c]=_0x39e73a[_0x5e189c]['concat'](_0x39e73a[_0x5a1385]),_0x39e73a[_0x5a1385]=[];}for(const _0x2d160 of _0x39e73a)for(let _0x336f28=0x0;_0x336f28<_0x2d160['length'];_0x336f28++)_0x2d160[_0x336f28]['next']=_0x2d160[_0x336f28+0x1]||null;for(const _0x19d602 of _0x39e73a)for(let _0x4a3bd5=0x0;_0x4a3bd5<_0x19d602['length'];_0x4a3bd5++)_0x19d602[_0x4a3bd5]['previous']=_0x19d602[_0x4a3bd5-0x1]||null;function _0x157579(_0x505e47,_0x2e8b7e){if(_0x505e47[0x0]['attributes']['groupId']!==_0x2e8b7e[0x0]['attributes']['groupId']&&_0x505e47[0x0]['author']!==_0x2e8b7e[0x0]['author'])return!0x1;if(!function(_0x6f4e7e,_0xd34169){if(!_0x6f4e7e['hasComments']&&!_0xd34169['hasComments'])return!0x0;if(_0x6f4e7e['hasComments']&&_0xd34169['hasComments'])return!0x1;if(_0x6f4e7e['hasComments']&&_0xd34169['createdAt']<_0x6f4e7e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xd34169['hasComments']&&_0x6f4e7e['createdAt']<_0xd34169['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x505e47[0x0],_0x2e8b7e[0x0]))return!0x1;const _0x38ce5c=Bt(_0x505e47[0x0]['attributes'],'groupId'),_0x530be7=Bt(_0x2e8b7e[0x0]['attributes'],'groupId');if(!_0x4426d6(_0x38ce5c,_0x530be7))return!0x1;return!!_0x505e47['every'](_0x447979=>_0x2e8b7e['some'](_0x596237=>_0x447979['getFirstRange']()['isEqual'](_0x596237['getFirstRange']())))&&_0x2e8b7e['every'](_0x3ab609=>_0x505e47['some'](_0x2741a5=>_0x3ab609['getFirstRange']()['isEqual'](_0x2741a5['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5b2105){const _0x557371=Array['from'](_0x5b2105),_0x29fbf4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x19c06c=_0x29fbf4['filter'](_0x35e002=>!_0x5b2105['has'](_0x35e002)),_0xdcab85=new Map(_0x557371['map'](_0x168b6c=>[_0x168b6c,this['_suggestionFactory']['getSuggestionCallback'](_0x168b6c['type'],_0x168b6c['subType'],'join')])),_0x18788c=new Map(_0x29fbf4['map'](_0xeb38b8=>[_0xeb38b8,_0xeb38b8['getRanges']()]));for(let _0x13f53b=0x0;_0x13f53b<_0x557371['length'];_0x13f53b++){if(_0x58a88d(this,_0x557371[_0x13f53b],_0x557371,_0x13f53b+0x1))return!0x0;}for(let _0x984c5c=0x0;_0x984c5c<_0x557371['length'];_0x984c5c++){if(_0x58a88d(this,_0x557371[_0x984c5c],_0x19c06c,0x0))return!0x0;}return!0x1;function _0x58a88d(_0x4b52ec,_0x43fab4,_0x48d76e,_0x594377){for(let _0x3d6b42=_0x594377;_0x3d6b42<_0x48d76e['length'];_0x3d6b42++){const _0x4a901f=_0x48d76e[_0x3d6b42];if(_0x4a901f['type']!==_0x43fab4['type']||_0x4a901f['author']['id']!==_0x43fab4['author']['id']||_0x4a901f['subType']!==_0x43fab4['subType'])continue;if(!Pt(_0x43fab4,_0x4a901f,['groupId']))continue;if('attribute'==_0x43fab4['type']&&_0x43fab4['data']['oldValue']!=_0x4a901f['data']['oldValue'])continue;if('attribute'==_0x43fab4['type']&&_0x4b52ec['_isBlockAttribute'](_0x43fab4['data']['key']))continue;if('formatBlock'==_0x43fab4['type']){const _0x2db112=_0x4b52ec['editor']['model'],_0x558bd6=_0x43fab4['getContainedElement']();if(_0x558bd6&&(_0x2db112['schema']['isObject'](_0x558bd6)||_0x2db112['schema']['isLimit'](_0x558bd6)))continue;}const _0x333a6=_0xdcab85['get'](_0x43fab4),_0x225f6f=_0x18788c['get'](_0x43fab4),_0x50ec74=_0x18788c['get'](_0x4a901f),_0x1a75ea=_0x43fab4['commentThread']&&_0x43fab4['commentThread']['length'],_0x3937d6=_0x4a901f['commentThread']&&_0x4a901f['commentThread']['length'];if(!_0x1a75ea&&_0x333a6(_0x50ec74,_0x225f6f))return _0x4b52ec['_joinSuggestions'](_0x4a901f,_0x43fab4),_0x18788c['delete'](_0x43fab4),!0x0;if(!_0x3937d6&&_0x333a6(_0x225f6f,_0x50ec74))return _0x4b52ec['_joinSuggestions'](_0x43fab4,_0x4a901f),_0x18788c['delete'](_0x4a901f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4420a5,_0x450d38){if(_0x4420a5['isMultiRange']){for(const _0x464b6c of _0x450d38['getRanges']())_0x4420a5['addRange'](_0x464b6c);}else{const _0x388272=_0x450d38['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4420a5,this['_model']['createRange'](_0x4420a5['getFirstRange']()['start'],_0x388272));}_0x450d38['removeMarkers']();}['_getMarkerAnnouncementText'](_0x403cb8,_0x3d15ec){const _0x5ca967=_0x403cb8['startsWith']('format')||_0x403cb8['startsWith']('attribute')?'FORMATTING':_0x403cb8['toUpperCase']();return o(this['editor']['locale'],_0x3d15ec+'_'+_0x5ca967+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x36b9ca=this['editor'];if(!_0x36b9ca['ui'])return;const {ariaLiveAnnouncer:_0x5e9e8}=_0x36b9ca['ui'];_0xdd14e5(this['_model'],({left:_0x4bc7d5,entered:_0x3bd33e})=>{for(const _0x1d29bd of _0x4bc7d5){const {group:_0x57c502,type:_0x419f22}=this['_splitMarkerName'](_0x1d29bd['name']);if('suggestion'===_0x57c502){_0x5e9e8['announce'](this['_getMarkerAnnouncementText'](_0x419f22,'LEAVE'));break;}}for(const _0x399e94 of _0x3bd33e){const {group:_0x1aacd5,type:_0x516f5b}=this['_splitMarkerName'](_0x399e94['name']);if('suggestion'===_0x1aacd5){_0x5e9e8['announce'](this['_getMarkerAnnouncementText'](_0x516f5b,'ENTER'));break;}}});}['_processAttributeChanges'](_0x56b932){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4aa56c=this['editor'],_0x2dad3d=_0x4aa56c['model']['document']['differ']['getChanges']();if(0x0==_0x2dad3d['length'])return!0x1;const _0x291040=[],_0x130ed3=_0x2dad3d['filter'](_0x38bf65=>'attribute'==_0x38bf65['type']),_0xdae7eb=_0x2dad3d['filter'](_0x5cf8c8=>'insert'==_0x5cf8c8['type']&&'$text'!=_0x5cf8c8['name']),_0x9f3bd=_0x2dad3d['filter'](_0x53f73e=>'remove'==_0x53f73e['type']&&'$text'!=_0x53f73e['name']);for(const _0x1774ee of _0x130ed3)_0x291040['push']({'key':_0x1774ee['attributeKey'],'newValue':_0x1774ee['attributeNewValue'],'oldValue':_0x1774ee['attributeOldValue'],'range':Ot(_0x1774ee['range'],_0x4aa56c['model'])});for(const _0xd63ceb of _0xdae7eb){const _0x2a0845=_0x9f3bd['find'](_0x1dfabb=>_0x1dfabb['position']['isEqual'](_0xd63ceb['position']));_0x2a0845&&_0x291040['push']({'key':m,'newValue':_0xd63ceb['name'],'oldValue':_0x2a0845['name'],'range':_0x4aa56c['model']['createRangeOn'](_0xd63ceb['position']['nodeAfter'])});}return 0x0!=_0x291040['length']&&this['_reduceExistingSuggestions'](_0x56b932,_0x291040);}['_processAttributeSuggestions'](_0x40d2b4){let _0xaaa0f6=!0x1;const _0x160d09=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3f71fd=>_0x3f71fd['data']['newRange']&&_0x3f71fd['name']['startsWith']('suggestion:attribute:'));for(const _0x12af8d of _0x160d09){const {subType:_0xb49d25,id:_0x96cbd6}=this['_splitMarkerName'](_0x12af8d['name']),_0xcf85b7=_0xb49d25['split']('|')[0x0];for(const _0xb47391 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xb47391['id']!=_0x96cbd6&&'attribute'==_0xb47391['type']&&_0xb47391['data']&&_0xb47391['data']['key']==_0xcf85b7&&_0xb47391['getFirstRange']()['isIntersecting'](_0x12af8d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xb47391,_0x12af8d['data']['newRange'],_0x40d2b4),_0xaaa0f6=!0x0);}return _0xaaa0f6;}['_recordAttributeChanges'](_0x58a1d8){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x58a1d8();}['_isRegisteredAttribute'](_0x10d0f8){const _0x17f25b=this['_isBlockAttribute'](_0x10d0f8),_0x126cad=this['_inlineAttributeKeys']['has'](_0x10d0f8);return _0x17f25b||_0x126cad;}['_reduceExistingSuggestions'](_0x3a93e5,_0x5001f8){if(0x0==_0x5001f8['length'])return!0x1;let _0x22a36c=!0x1;for(const _0x1b9f1d of _0x5001f8){const _0x1b3823=this['_findSuggestions'](_0x1b9f1d['range'],'attribute')['filter'](_0x464e99=>!_0x464e99['meta']['isNextTo'])['map'](_0x5bfd73=>_0x5bfd73['suggestion']),_0xaf443f=_0x166b46({'newValue':_0x1b9f1d['newValue']});_0x1b3823['filter'](_0x2e7e3b=>{const [_0x7e245b,_0x30c206]=_0x2e7e3b['subType']['split']('|');return _0x7e245b==_0x1b9f1d['key']&&_0x30c206!=_0xaf443f;})['forEach'](_0x17aebb=>{this['_reduceSuggestionAttributeRange'](_0x17aebb,_0x1b9f1d['range'],_0x3a93e5),_0x22a36c=!0x0;});}return _0x22a36c;}['_reduceSuggestionAttributeRange'](_0xe9a6b4,_0x3ce8a4,_0x774b0d){const _0x15a225=_0xe9a6b4['getFirstRange']()['getDifference'](_0x3ce8a4);0x0!==_0x15a225['length']?0x1!==_0x15a225['length']?this['_breakSuggestionMarker'](_0xe9a6b4,_0x3ce8a4['start'],_0x3ce8a4['end']):this['_setSuggestionRange'](_0xe9a6b4,_0x15a225[0x0]):_0x774b0d['removeMarker'](_0xe9a6b4['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x57aa52){this['_editor']=_0x57aa52,this['_model']=_0x57aa52['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x401f48,_0x42c2f9,_0x1f19ca,_0x531e7d,_0x83ece2,_0x3407b8){return new u(this['_model'],{'type':_0x401f48,'subType':_0x42c2f9,'id':_0x1f19ca,'author':_0x531e7d,'creator':_0x531e7d,'attributes':_0x83ece2,'onAttributesChange':_0x3407b8,'onAccept':(..._0x4e01bf)=>this['getSuggestionCallback'](_0x401f48,_0x42c2f9,'accept')(..._0x4e01bf),'onDiscard':(..._0x2087c6)=>this['getSuggestionCallback'](_0x401f48,_0x42c2f9,'discard')(..._0x2087c6)});}['registerCustomCallback'](_0x428442,_0x2e24fd,_0x30033c,_0x26f746){const _0xb00793=_0x428442+':'+_0x2e24fd+':'+_0x30033c;this['_customCallbacks']['set'](_0xb00793,_0x26f746);}['getSuggestionCallback'](_0x2274dd,_0x369ce7,_0x9a0069){const _0x5e4735=_0x2274dd+':'+_0x369ce7+':'+_0x9a0069;return this['_customCallbacks']['get'](_0x5e4735)||this['_defaultCallbacks']['get'](_0x2274dd+':'+_0x9a0069);}['_registerDefaultCallbacks'](){const _0x537369=()=>!0x1,_0x4c1a2e=_0x4b79d3=>{_0x4b79d3['sort']((_0x3cef80,_0x4c503f)=>_0x3cef80['start']['isBefore'](_0x4c503f['start'])?0x1:-0x1),this['_model']['change'](_0x203aae=>{for(const _0x501f94 of _0x4b79d3){let _0x8357f2;_0x8357f2=_0x501f94['end']['isAtEnd']&&_0x501f94['end']['parent']==_0x501f94['start']['nodeAfter']?_0x203aae['createSelection'](_0x501f94['start']['nodeAfter'],'on'):_0x203aae['createSelection'](_0x501f94),this['_model']['deleteContent'](_0x8357f2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xcd5260=(_0xf205e3,_0x4dae04)=>{_0x4dae04&&this['_model']['change'](_0x169736=>{const {commandName:_0x55f719,commandParams:_0x34f291=[]}=_0x4dae04,_0x59a389=_0xf205e3['map'](_0x2eb127=>(Tt(_0x2eb127)&&(_0x2eb127=this['_model']['createRange'](_0x2eb127['end'])),_0x2eb127))['filter'](_0x3865d7=>'$graveyard'!==_0x3865d7['root']['rootName']);if(_0x59a389['length']<0x1)return;const _0x419f7d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x37c575=>_0x1c4270['fromRange'](_0x37c575));_0x169736['setSelection'](_0x59a389);for(const _0x524a48 of this['_editor']['commands']['commands']())_0x524a48['refresh']();_0x34f291['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x55f719,..._0x34f291);const _0x535a45=_0x419f7d['filter'](_0x53d64e=>'$graveyard'!=_0x53d64e['root']['rootName']);_0x535a45['length']>0x0&&_0x169736['setSelection'](_0x535a45);for(const _0x2de58d of _0x419f7d)_0x2de58d['detach']();});},_0x36c6dc=(_0xbd50ab,_0x1c7e33)=>0x1==_0xbd50ab['length']&&0x1==_0x1c7e33['length']&&_0xbd50ab[0x0]['end']['isEqual'](_0x1c7e33[0x0]['start']),_0xe39a15=(_0x586b66,_0x13d409,_0x10a7fd,_0x519c53)=>Ft(_0x586b66,_0x13d409,_0x10a7fd,_0x519c53,this['_model'])?[_0x586b66,_0x13d409]:Ft(_0x13d409,_0x586b66,_0x519c53,_0x10a7fd,this['_model'])?[_0x13d409,_0x586b66]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x537369),this['_defaultCallbacks']['set']('insertion:discard',_0x4c1a2e),this['_defaultCallbacks']['set']('insertion:join',_0x36c6dc),this['_defaultCallbacks']['set']('insertion:chain',_0xe39a15),this['_defaultCallbacks']['set']('deletion:accept',_0x4c1a2e),this['_defaultCallbacks']['set']('deletion:discard',_0x537369),this['_defaultCallbacks']['set']('deletion:join',_0x36c6dc),this['_defaultCallbacks']['set']('deletion:chain',_0xe39a15),this['_defaultCallbacks']['set']('formatInline:accept',_0xcd5260),this['_defaultCallbacks']['set']('formatInline:discard',_0x537369),this['_defaultCallbacks']['set']('formatInline:join',_0x36c6dc),this['_defaultCallbacks']['set']('formatInline:chain',_0x537369),this['_defaultCallbacks']['set']('formatBlock:accept',_0xcd5260),this['_defaultCallbacks']['set']('formatBlock:discard',_0x537369),this['_defaultCallbacks']['set']('formatBlock:join',_0x36c6dc),this['_defaultCallbacks']['set']('formatBlock:chain',_0x537369),this['_defaultCallbacks']['set']('attribute:accept',_0x537369),this['_defaultCallbacks']['set']('attribute:discard',(_0x18f3c1,_0x582a74)=>{if(!_0x582a74)return;const _0x128f22=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x317ef0=>{if(_0x582a74['key']==m)for(const _0x24ea3a of _0x18f3c1){const _0x520f4e=_0x24ea3a['start']['nodeAfter'],_0x2b1ef5=_0x582a74['oldValue'];_0x317ef0['rename'](_0x520f4e,_0x2b1ef5);}else{if(_0x128f22['_isBlockAttribute'](_0x582a74['key'])){for(const _0x14046d of _0x18f3c1)void 0x0!==_0x582a74['oldValue']?_0x317ef0['setAttribute'](_0x582a74['key'],_0x582a74['oldValue'],_0x14046d['start']['nodeAfter']):_0x317ef0['removeAttribute'](_0x582a74['key'],_0x14046d['start']['nodeAfter']);}else{for(const _0xe58e76 of _0x18f3c1)_0x582a74['oldValue']?_0x317ef0['setAttribute'](_0x582a74['key'],_0x582a74['oldValue'],_0xe58e76):_0x317ef0['removeAttribute'](_0x582a74['key'],_0xe58e76);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x36c6dc);}}function Rt(_0x4f0630,_0x10b2b8,_0x31ea00){for(const _0xa17292 of _0x10b2b8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xa17292['root']==_0xa17292)return!0x1;if(!_0x31ea00['containsItem'](_0xa17292))return!0x1;if(_0x4f0630['isObject'](_0xa17292)||_0x4f0630['isLimit'](_0xa17292))return!0x0;}return!0x1;}function Tt(_0x1b16cf){return _0x1b16cf['end']['parent']==_0x1b16cf['start']['nodeAfter']&&_0x1b16cf['end']['isAtStart'];}function Et(_0xa0a070,_0xd9c85d,_0x1c20e9,_0x49b88a){const _0x249342=_0x1de185=>!_0x1de185['item']['is']('$textProxy')&&!_0x49b88a['isObject'](_0x1de185['item']),_0x3a7b3e=_0xa0a070['start']['getLastMatchingPosition'](_0x249342),_0x2b1d26=_0xa0a070['end']['getLastMatchingPosition'](_0x249342,{'direction':'backward'});return(!_0xa0a070['start']['isEqual'](_0x3a7b3e)||!_0xa0a070['end']['isEqual'](_0x2b1d26))&&(_0x3a7b3e['isBefore'](_0x2b1d26)?_0x1c20e9['updateMarker'](_0xd9c85d,{'range':_0x1c20e9['createRange'](_0x3a7b3e,_0x2b1d26)}):_0x1c20e9['removeMarker'](_0xd9c85d),!0x0);}function Vt(_0xef6fa0){return _0x166b46(_0xef6fa0);}function Ut(_0x1e1a59){const _0xde5a65=_0x1e1a59['start']['nodeAfter'];return _0xde5a65&&_0xde5a65['is']('element');}function Ot(_0x4bcb69,_0x45a29f){return null==_0x4bcb69['end']['nodeBefore']&&_0x4bcb69['end']['parent']==_0x4bcb69['start']['nodeAfter']?Gt(_0x4bcb69['start']['nodeAfter'],_0x45a29f):_0x4bcb69;}function Gt(_0x570d25,_0x1a3df6){const _0x20eb35=_0x1a3df6['schema']['isObject'](_0x570d25)||_0x1a3df6['schema']['isSelectable'](_0x570d25);return _0x1a3df6['createRange'](_0x1a3df6['createPositionAt'](_0x570d25,'before'),_0x20eb35?_0x1a3df6['createPositionAfter'](_0x570d25):_0x1a3df6['createPositionAt'](_0x570d25,'end'));}function Ft(_0x383ead,_0xd2661f,_0x29abbf,_0xba19e8,_0x5eea87){if(!Pt(_0x383ead,_0xd2661f))return!0x1;if(_0x29abbf['end']['isEqual'](_0xba19e8['start']))return!0x0;if(_0x383ead['type']!=_0xd2661f['type'])return!0x1;if(!_0x29abbf['end']['isTouching'](_0xba19e8['start']))return!0x1;const _0x17b25c=_0x5eea87['createRange'](_0x29abbf['end'],_0xba19e8['start'])['getWalker']();for(const _0x389c3b of _0x17b25c)if(['elementStart','elementEnd']['includes'](_0x389c3b['type'])&&_0x5eea87['schema']['isLimit'](_0x389c3b['item']))return!0x1;return!0x0;}function Pt(_0x232181,_0x20d6b4,_0x1a14ac=[]){return!(!_0x232181['_isDataLoaded']||!_0x20d6b4['_isDataLoaded'])&&_0x4426d6(Bt(_0x232181['attributes'],_0x1a14ac),Bt(_0x20d6b4['attributes'],_0x1a14ac));}function Lt(_0x2e15f2,_0x187eed){const _0xc81fa6=Ht(_0x2e15f2['attributes']),_0x38dd1d=Ht(_0x187eed);if(!_0x2e15f2['_isDataLoaded'])return!0x1;for(const _0x55906f of Object['keys'](_0x38dd1d))if(!_0x4426d6(_0xc81fa6[_0x55906f],_0x38dd1d[_0x55906f]))return!0x1;return!0x0;}function Ht(_0x1a8f63){const _0x5ed4d6=Object['assign']({},_0x1a8f63);return delete _0x5ed4d6['skipNestingCheck'],delete _0x5ed4d6['tablePasteChainId'],_0x5ed4d6;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2ed5b8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x359c4f,_0xc66625,_0x2ece30,_0x1c1046){super(),this['model']=_0xc66625,this['view']=_0x2ece30,this['commentThreadController']=_0x1c1046,this['_editor']=_0x359c4f,this['_acceptCommand']=_0x359c4f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x359c4f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1a36cd,_0x17442f)=>_0x1a36cd||_0x17442f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4e61ad=>_0x4e61ad&&this['_editor']['model']['canEditAt'](_0xc66625['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xa24e22=>_0xa24e22&&this['_editor']['model']['canEditAt'](_0xc66625['getRanges']())),this['_pendingAction']=null,_0x2ece30['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2ece30,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2ece30,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2ece30,'change:isDirty',()=>{_0x2ece30['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 _0x17660c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x17660c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x5efc42{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x15f082,_0x5552df,_0x4dccef,_0x4d9014){super(_0x15f082),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5552df['authoredAt']),this['bind']('authoredAt')['to'](_0x5552df),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5552df,this['_localUser']=_0x4dccef,this['_config']=_0x4d9014,_0x4d9014['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2d3c61}=this['_config'];this['commentsListView']=new _0x2d3c61(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',_0xf7cf7d=>_0xf7cf7d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4935dc,_0x284bea)=>_0x4935dc||!!_0x284bea);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x316b29}=this['_config'],_0x4af31d=new _0x316b29(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x318ef7=_0x4af31d['commentInputView'];return _0x4af31d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x318ef7,'value',(_0x4dc952,_0x48e62a,_0xc5a9a5)=>!!_0xc5a9a5||_0x4dc952&&!_0x48e62a),_0x318ef7['on']('submit',(_0x246a3c,_0x299497)=>{this['fire']('addComment',_0x299497),_0x318ef7['editor']['setData']('');}),_0x318ef7['on']('cancel',()=>this['focus']()),_0x318ef7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4af31d;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x17ea48,_0x1d2317,_0x486825,_0x19da8e){super(_0x17ea48,_0x1d2317,_0x486825,_0x19da8e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xc399d6=>_0xc399d6&&_0xc399d6[0x0]?_0xc399d6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2389d1,_0x12a3bd)=>{let _0x3f8dd6='';for(const _0xb8367 of _0x2389d1)_0x3f8dd6+='<p>'+ds(_0xb8367['content'],_0xb8367['color'])+'</p>';return _0x12a3bd?_0x3f8dd6:_0x5d82ac(_0x3f8dd6,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x17ea48,'Accept\x20suggestion'),_0xdbc382['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x17ea48,'Discard\x20suggestion'),_0xdbc382['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3e8574(_0x17ea48,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x384b3b=this['bindTemplate'],_0x163d39=[{'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']}},{'tag':'time','attributes':{'datetime':_0x384b3b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x384b3b['to']('authoredAt',_0x5a34f1=>this['_config']['formatDateTime'](_0x5a34f1))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x163d39['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x240879={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x384b3b['if']('isActive','ck-suggestion-wrapper--active'),_0x384b3b['to']('type',_0x38a090=>'ck-suggestion-'+_0x38a090),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x163d39}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x240879['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x240879;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x259f23,_0x2c45cf,_0x561629)=>{this['_descriptionElement']['innerHTML']=_0x561629;});}['_createButton'](_0x24b944,_0x28bba3,_0x1407e0,_0x21ab7a,_0x426b85){const _0x1bc3ab=new _0x1b17ab(this['locale']);return _0x1bc3ab['set']({'label':_0x24b944,'icon':_0x28bba3,'tooltip':!0x0,'tooltipPosition':_0x426b85}),_0x1bc3ab['extendTemplate']({'attributes':{'class':_0x1407e0}}),_0x1bc3ab['on']('execute',()=>{this['fire'](_0x21ab7a,this['_model']['id']);}),_0x1bc3ab;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x247248,_0x5530ae){let _0x5ea07a='';return _0x5ea07a+=_0x247248['split']('*')['map']((_0x359491,_0x35ac31)=>_0x35ac31%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x359491)+'</span>':us(_0x359491))['join'](''),_0x5530ae&&(_0x5ea07a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5530ae['value']+'\x22\x20title=\x22'+_0x5530ae['title']+'\x22></span>'),_0x5ea07a;}function us(_0x5e2eb9){const _0xb7ec54=document['createElement']('span');return _0xb7ec54['innerText']=_0x5e2eb9,_0xb7ec54['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x510d68{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x47cb12,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x36610e){super(_0x36610e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1e4018=this['editor']['config'];_0x1e4018['define']('trackChanges.SuggestionThreadView',ne),_0x1e4018['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1e4018['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2fcfd0,_0x401de2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x59d905,_0x20ea64]of this['_handleControllerBuffer']){const _0x3454cc=this['_suggestionToController']['has'](_0x59d905);_0x3454cc||_0x20ea64?_0x3454cc&&_0x20ea64&&this['_destroyController'](_0x59d905):this['_initializeController'](_0x59d905);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2fcfd0,_0x401de2);}['init'](){const _0xe632d2=this['editor'],_0x11ebe1=_0xe632d2['plugins']['get']('TrackChangesEditing'),_0x53acd2=_0xe632d2['plugins']['get']('Annotations'),_0x4763f9=_0xe632d2['plugins']['get']('EditorAnnotations'),_0x43cc92=_0xe632d2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4763f9['addSourceCollector'](()=>{const _0x7286a4=[];for(const [_0x17d0ba,_0x5a1e8a]of Array['from'](this['_suggestionToController'])){const _0x75fbdc=_0x17d0ba['getAllAdjacentSuggestions'](),_0x190e17=[];for(const _0xce7269 of _0x75fbdc){if(!_0xce7269['isInContent'])continue;if(_0xce7269['isMultiRange']){_0x190e17['push'](..._0xce7269['getRanges']());continue;}const _0x572b97=_0xce7269['getFirstRange']();if(_0x190e17['length']>0x0){const _0x29b62a=_0x190e17[0x0]['getJoined'](_0x572b97);if(_0x29b62a){_0x190e17[0x0]=_0x29b62a;continue;}}_0x190e17['push'](_0x572b97);}_0x7286a4['push']([_0x5a1e8a['view'],_0x190e17]);}return _0x7286a4;}),this['listenTo'](_0x11ebe1,'suggestionLoaded',(_0xa28718,_0x537729)=>{this['listenTo'](_0x537729,'change:previous',(_0x3be86c,_0x3f6aac,_0x55db68,_0x4de8cc)=>{_0x537729['isInContent']&&(null==_0x55db68?(this['_updateController'](_0x4de8cc['head']),this['_handleSuggestionControllerDelayed'](_0x537729,!0x1)):(this['_updateController'](_0x55db68['head']),null==_0x4de8cc&&this['_handleSuggestionControllerDelayed'](_0x537729,!0x0)));}),null!==_0x537729['previous']?this['_updateController'](_0x537729['head']):this['_handleSuggestionControllerDelayed'](_0x537729,!0x1);}),this['listenTo'](_0x11ebe1,'suggestionUnloaded',(_0x410753,_0xed343a,_0x36b208)=>{this['stopListening'](_0xed343a,'change:previous'),this['_handleControllerBuffer']['delete'](_0xed343a),this['_suggestionToController']['has'](_0xed343a)&&this['_destroyController'](_0xed343a),_0x36b208&&this['_updateController'](_0x36b208['head']);}),this['listenTo'](_0x11ebe1,'suggestionChanged',(_0x25cb94,_0x5c766a)=>{this['_updateController'](_0x5c766a);}),this['listenTo'](_0x53acd2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x43cc92,'addComment',(_0x44479e,{threadId:_0x845311,isFromAdapter:_0x3846bc})=>{if(_0x3846bc||!_0x11ebe1['hasSuggestion'](_0x845311))return;const _0x282d7c=_0x11ebe1['getSuggestion'](_0x845311);this['_suggestionToController']['get'](_0x282d7c)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0xa80a07=this['editor']['plugins']['get']('Annotations'),_0x46cd54=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40035b=Array['from'](_0xa80a07['activeAnnotations'],_0xe0afd3=>_0xe0afd3['innerView'])['filter'](_0x33c5b8=>this['_viewToController']['has'](_0x33c5b8)),_0x33d798=[];for(const _0x3da0d8 of _0x40035b){const _0x246209=this['_viewToController']['get'](_0x3da0d8)['model']['getAllAdjacentSuggestions']();_0x33d798['push'](..._0x246209['reduce']((_0x34222d,_0x524a07)=>[..._0x34222d,..._0x524a07['getMarkerNames']()],[]));}_0x46cd54['activeMarkers']=_0x33d798;}['_addUIComponentsToFactory'](){const _0x2bd021=this['editor'],_0x532ee6=_0x2bd021['locale'],_0x51a48c=o(_0x532ee6,'Track\x20changes'),_0x4d9a65=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x51a48c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x532ee6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x532ee6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x532ee6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x532ee6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x47a6d2 of _0x4d9a65)if(ae(_0x47a6d2)){const _0x31362a=_0x2bd021['commands']['get'](_0x47a6d2['model']['commandName']);_0x47a6d2['model']['bind']('isOn','isEnabled')['to'](_0x31362a,'value','isEnabled');}_0x2bd021['ui']['componentFactory']['add']('trackChanges',_0x5527e0=>this['_createToolbarButton'](_0x5527e0,_0x4d9a65,_0x51a48c)),_0x2bd021['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5d400b=>this['_createMenuBarMenu'](_0x5d400b,_0x4d9a65,_0x51a48c));}['_createToolbarButton'](_0xddd96d,_0x462996,_0x3dd4ba){const _0x4857ef=zt(_0xddd96d,Zt),_0x52c4a4=this['editor']['commands']['get']('trackChanges');_0x4857ef['buttonView']['set']({'tooltip':_0x3dd4ba,'label':_0x3dd4ba,'icon':ie}),_0x4857ef['buttonView']['bind']('isOn')['to'](_0x52c4a4,'value'),_0x4857ef['buttonView']['on']('execute',()=>{_0x52c4a4['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x4857ef,_0x462996,{'role':'menu'});const _0x3e3a52=[];for(const _0x286738 of _0x462996)ae(_0x286738)&&_0x3e3a52['push'](this['editor']['commands']['get'](_0x286738['model']['commandName']));const _0x2e93e8=_0x4857ef['buttonView'];return _0x2e93e8['actionView']['unbind']('isEnabled'),_0x2e93e8['arrowView']['unbind']('isEnabled'),_0x2e93e8['actionView']['bind']('isEnabled')['to'](_0x52c4a4,'isEnabled'),_0x2e93e8['arrowView']['bind']('isEnabled')['toMany'](_0x3e3a52,'isEnabled',(..._0x30b8ba)=>_0x30b8ba['some'](_0xf7cea7=>_0xf7cea7)),_0x4857ef['on']('execute',_0x4b0604=>{this['editor']['execute'](_0x4b0604['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4857ef;}['_createMenuBarMenu'](_0x2c07da,_0x2b4d3f,_0x518532){const _0x3b0465=new Kt(_0x2c07da),_0x21fc9d=this['editor']['commands']['get']('trackChanges');_0x3b0465['buttonView']['set']({'label':_0x518532,'icon':ie});const _0x23db12=new Qt(_0x2c07da);for(const _0x6a3e0a of _0x2b4d3f){if('separator'==_0x6a3e0a['type']){_0x23db12['items']['add'](new Jt(_0x2c07da));continue;}const _0xf4f296=new Xt(_0x2c07da,_0x3b0465),_0x13a4ab=new Yt(_0x2c07da),_0x3339f4=_0x6a3e0a['model'];_0x13a4ab['bind'](...Object['keys'](_0x3339f4))['to'](_0x3339f4),_0x13a4ab['delegate']('execute')['to'](_0x3b0465),_0x13a4ab['on']('execute',()=>{this['editor']['execute'](_0x3339f4['commandName']),this['editor']['editing']['view']['focus']();}),_0xf4f296['children']['add'](_0x13a4ab),_0x23db12['items']['add'](_0xf4f296);}return _0x3b0465['bind']('isEnabled')['to'](_0x21fc9d,'isEnabled'),_0x3b0465['panelView']['children']['add'](_0x23db12),_0x3b0465;}['_initializeController'](_0x1c5b22){const _0x1cb958=this['editor'],_0x201247=_0x1cb958['config'],_0xa8e548=_0x1cb958['plugins']['get']('Annotations'),_0x428f0d=_0x1cb958['plugins']['get']('CommentsRepository'),_0x354fd5=_0x1cb958['plugins']['get']('EditorAnnotations'),_0xb40dee=_0x1cb958['plugins']['get'](_0x47cb12)['me'],_0x18c3a4=_0x201247['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x28530b,CommentThreadInputView:_0x33a452}=_0x1cb958['plugins']['get']('CommentsUI');let _0x1f054f,_0xce2422;this['_annotationViews']['has'](_0x1c5b22['id'])?(_0xce2422=this['_annotationViews']['get'](_0x1c5b22['id']),_0x1f054f=_0xce2422['mainView']):(_0x1f054f=new _0x18c3a4(_0x1cb958['locale'],_0x1c5b22,_0xb40dee,{'disableComments':this['_disableComments'],'editorConfig':_0x201247['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x201247['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x201247['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x201247['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3059cf(_0x201247['get']('locale')),'CommentView':_0x201247['get']('comments')['CommentView'],'CommentsListView':_0x28530b,'CommentThreadInputView':_0x33a452}),_0x1f054f['acceptButton']['on']('execute',()=>{_0x1cb958['editing']['view']['focus']();}),_0x1f054f['discardButton']['on']('execute',()=>{_0x1cb958['editing']['view']['focus']();}),_0xce2422=_0xa8e548['createAnnotationView'](this['editor']['locale'],_0x1f054f),_0xce2422['bind']('isDirty')['to'](_0x1f054f,'isDirty'),_0xce2422['bind']('length')['to'](_0x1f054f),_0xce2422['bind']('type')['to'](_0x1f054f,'type',_0x256161=>'suggestion-'+_0x256161),this['_annotationViews']['set'](_0x1c5b22['id'],_0xce2422));const _0x3a0b19=_0x428f0d['createCommentThreadController'](_0x1c5b22['commentThread'],_0x1f054f),_0x53f9c1=new oe(_0x1cb958,_0x1c5b22,_0x1f054f,_0x3a0b19),_0x1bd87c=_0x1c5b22['getAllAdjacentSuggestions']()['filter'](_0x547d6c=>_0x547d6c['isInContent']);_0x1f054f['descriptionParts']=_0x1cb958['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1bd87c),this['_suggestionToController']['set'](_0x1c5b22,_0x53f9c1),this['_viewToController']['set'](_0x1f054f,_0x53f9c1);const _0x4f8bd1=_0xa8e548['createAnnotation']({'view':_0xce2422,'target':()=>{const _0x302cf6=[],_0x49b7e0=_0x1c5b22['getAllAdjacentSuggestions']()['filter'](_0x4d24a0=>_0x4d24a0['isInContent']);for(const _0x227b5e of _0x49b7e0)_0x302cf6['push'](..._0x227b5e['getMarkers']());return _0x202835(_0x1cb958['editing'],_0x302cf6);},'type':()=>'suggestion-'+_0x53f9c1['view']['type']});_0x428f0d['_bindAnnotationToEditors'](_0x1f054f,_0x4f8bd1),_0xa8e548['add'](_0x4f8bd1),_0x354fd5['registerAnnotation'](_0x4f8bd1);}['_destroyController'](_0x5933e7){const _0x506492=this['editor']['plugins']['get']('CommentsRepository'),_0xa292b1=this['editor']['plugins']['get']('Annotations'),_0x39f2c8=this['_suggestionToController']['get'](_0x5933e7),_0x5849db=_0x39f2c8['view'],_0x16b257=_0xa292b1['getByInnerView'](_0x5849db);_0x506492['_unbindEditors'](_0x5849db),_0x16b257&&_0xa292b1['remove'](_0x16b257),this['_suggestionToController']['delete'](_0x5933e7),this['_viewToController']['delete'](_0x5849db),_0x39f2c8['destroy']();}['_updateController'](_0x12ddac){if(!_0x12ddac['isInContent']||!this['_suggestionToController']['has'](_0x12ddac))return;const _0x4bec1f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bf7c6=this['_suggestionToController']['get'](_0x12ddac),_0x376383=_0x12ddac['getAllAdjacentSuggestions']();_0x3bf7c6['view']['descriptionParts']=_0x4bec1f['descriptionFactory']['getDescriptions'](_0x376383);}['destroy'](){for(const _0x29866a of this['_suggestionToController']['keys']())this['_destroyController'](_0x29866a);for(const _0x3fc798 of this['_annotationViews']['values']())_0x3fc798['mainView']['destroy']();super['destroy']();}}function ae(_0x1ca2e6){return'model'in _0x1ca2e6;}class k extends _0x510d68{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x494774){this['editor']['plugins']['get'](p)['adapter']=_0x494774;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2a265d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2a265d);}['getSuggestions']({skipNotAttached:_0x441d4a=!0x1,toJSON:_0x149e12=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x441d4a,'toJSON':_0x149e12});}['getSuggestion'](_0x525d13){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x525d13);}}const T=['Pagination'];class P extends _0x510d68{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x26dbce=this['editor'];if(_0x26dbce['config']['define']('trackChangesData.editorCreator',_0x37195a=>{const _0x117eb2=_0x26dbce['model']['document']['getRootNames']()['reduce']((_0x4a7d92,_0x3a9752)=>(_0x4a7d92[_0x3a9752]='',_0x4a7d92),{});return _0x26dbce['constructor']['create'](_0x117eb2,_0x37195a);}),'function'!=typeof _0x26dbce['config']['get']('trackChangesData')['editorCreator'])throw new _0x8e966e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1eb3b3){return N(this['editor'],!0x0,_0x1eb3b3);}['getDataWithDiscardedSuggestions'](_0x10c4d5){return N(this['editor'],!0x1,_0x10c4d5);}}class D extends _0x510d68{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x20d25e){super(_0x20d25e),this['result']='end';}['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 v(_0x3458c2){return void 0x0!==_0x3458c2['getRootsAttributes'];}async function N(_0xa21e71,_0x16d6b4,_0x3d702d){const _0x2eb7c6=_0x585d8d(_0xa21e71,T);_0x2eb7c6['plugins']['push'](p,D),_0x2eb7c6['rootsAttributes']=v(_0xa21e71)?_0xa21e71['getRootsAttributes']():void 0x0;const _0x53dd7c=document['createDocumentFragment'](),_0x76e020=_0xa21e71['config']['get']('trackChangesData')['editorCreator'],_0x39c06a=await _0x76e020(_0x2eb7c6,()=>function(_0x36aabe){const _0x2838be=document['createElement']('div');return _0x36aabe['appendChild'](_0x2838be),_0x2838be;}(_0x53dd7c));!function(_0x2c2177,_0x524080){const _0x33e638=_0x2c2177['model']['document']['getRootNames']()['reduce']((_0xe6355f,_0x5ea38f)=>(_0xe6355f[_0x5ea38f]=_0x2c2177['data']['get']({'rootName':_0x5ea38f}),_0xe6355f),{}),_0x3674c6=_0x2c2177['plugins']['get']('Users')['users']['map'](_0x392da8=>({'id':_0x392da8['id'],'name':_0x392da8['name']})),_0xfa0326=_0x2c2177['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x47a679=_0x2c2177['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xdce3dc=_0x524080['plugins']['get']('Users'),_0x1eb40e=_0x524080['plugins']['get']('TrackChangesEditing'),_0x1dcbfd=_0x524080['plugins']['get']('CommentsRepository');for(const _0x13d829 of _0x3674c6)_0xdce3dc['getUser'](_0x13d829['id'])||_0xdce3dc['addUser'](_0x13d829);_0xdce3dc['me']||_0xdce3dc['useAnonymousUser']();for(const _0x2f3752 of _0x47a679)_0x1dcbfd['addCommentThread'](_0x2f3752);for(const _0x2c7b51 of _0xfa0326)_0x1eb40e['addSuggestionData'](_0x2c7b51);_0x524080['data']['set'](_0x33e638);}(_0xa21e71,_0x39c06a),_0x39c06a['execute'](_0x16d6b4?'acceptAllSuggestions':'discardAllSuggestions');const _0x41511f=v(_0x39c06a)?_0x39c06a['getFullData'](_0x3d702d):_0x39c06a['data']['get'](_0x3d702d);return await _0x39c06a['destroy'](),_0x41511f;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|