@ckeditor/ckeditor5-track-changes 42.0.0-alpha.15 → 42.0.0-alpha.16
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
|
-
_0x4dfe9c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4969d4,_0x525a89){super(),this['id']=_0x525a89['id'],this['type']=_0x525a89['type'],this['subType']=_0x525a89['subType']||null,this['author']=_0x525a89['author'],this['creator']=_0x525a89['creator']||_0x525a89['author'],this['isExternal']=Boolean(_0x525a89['attributes']&&_0x525a89['attributes']['@external']),this['data']=null,this['_model']=_0x4969d4,this['_onAccept']=_0x525a89['onAccept'],this['_onDiscard']=_0x525a89['onDiscard'],this['_onAttributesChange']=_0x525a89['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x525a89['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 _0x36fbed=this;for(;_0x36fbed['previous'];)_0x36fbed=_0x36fbed['previous'];return _0x36fbed;}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'](_0x72ac65){this['_markerNames']['add'](_0x72ac65);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x472239=>this['_model']['markers']['get'](_0x472239))['filter'](_0x2b55fe=>_0x2b55fe);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x332754=>{for(const _0x4f2ef8 of this['getMarkers']())_0x332754['removeMarker'](_0x4f2ef8);}),this['_markerNames']['clear']();}['removeMarker'](_0x38de51){this['_model']['change'](_0x2fdf2c=>{_0x2fdf2c['removeMarker'](_0x38de51);}),this['_markerNames']['delete'](_0x38de51);}['addRange'](_0x135a35){const _0x2511fe='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2511fe),this['_model']['change'](_0x24e8f2=>{_0x24e8f2['addMarker'](_0x2511fe,{'range':_0x135a35,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x52e2cc){for(const _0x344cbe of this['getRanges']())if(_0x344cbe['isIntersecting'](_0x52e2cc))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x26111d=>_0x26111d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5eefb4,_0x328c96)=>[..._0x5eefb4,..._0x328c96['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x194903=this['getRanges']();if(0x1!=_0x194903['length'])return null;const _0x39a734=_0x194903[0x0],_0x42c674=_0x39a734['start']['nodeAfter'],_0x33c4da=_0x39a734['end']['nodeBefore'];return _0x42c674 instanceof _0x563dac?_0x42c674!=_0x33c4da?null:_0x42c674: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 _0x25cea2=[];let _0x21dfe2=this['head'];for(;_0x21dfe2;)_0x25cea2['push'](_0x21dfe2),_0x21dfe2=_0x21dfe2['next'];return _0x25cea2;}['setAttribute'](_0x529610,_0x441bfd){const _0x268d0e=_0x3a03e7(this['attributes']);_0x431207(_0x268d0e,_0x529610,_0x441bfd),_0x54a4a1(_0x268d0e,this['attributes'])||(this['attributes']=_0x268d0e,this['_onAttributesChange'](_0x268d0e));}['removeAttribute'](_0x50d498){const _0x5dd172=_0x3a03e7(this['attributes']);_0x905daf(_0x5dd172,_0x50d498),_0x54a4a1(_0x5dd172,this['attributes'])||(this['attributes']=_0x5dd172,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 _0x13ae16()['substr'](0x1,0x5);}}function o(_0x4601e7,_0x15416c,_0x2d2d19){const t=_0x4601e7['t'];switch(_0x15416c){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',_0x2d2d19);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2d2d19);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2d2d19);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2d2d19);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2d2d19);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',_0x2d2d19);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2d2d19);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',_0x2d2d19);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2d2d19);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2d2d19);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2d2d19);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2d2d19);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2d2d19);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2d2d19);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2d2d19);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2d2d19);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2d2d19);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2d2d19);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2d2d19);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2d2d19);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2d2d19);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2d2d19);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2d2d19);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'},_0x2d2d19);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2d2d19);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2d2d19);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2d2d19);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2d2d19);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2d2d19);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'},_0x2d2d19);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2d2d19);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2d2d19);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2d2d19);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2d2d19);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'},_0x2d2d19);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2d2d19);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'},_0x2d2d19);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'},_0x2d2d19);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2d2d19);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'},_0x2d2d19);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2d2d19);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'},_0x2d2d19);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2d2d19);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2d2d19);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'},_0x2d2d19);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'},_0x2d2d19);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 _0x15416c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2e9cc9,_0x5c8c51){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2e9cc9,this['_locale']=_0x5c8c51;}['getDescriptions'](_0x4327c8){const _0x1af76b=[],_0x136e4d=new Set(),_0x31bb44=new Set();for(let _0x2e56bf=0x0;_0x2e56bf<_0x4327c8['length'];_0x2e56bf++){const _0x1f3cdb=_0x4327c8[_0x2e56bf];if(!_0x1f3cdb['isInContent'])continue;const _0xf08c41=this['_handleCustomCallbackDescription'](_0x1f3cdb);if(_0xf08c41){if(null!=_0x1f3cdb['subType']){if(_0x136e4d['has'](_0x1f3cdb['subType']))continue;_0x136e4d['add'](_0x1f3cdb['subType']);}_0x1af76b['push'](_0xf08c41);}else{if('attribute'!=_0x1f3cdb['type'])'insertion'!=_0x1f3cdb['type']&&'deletion'!=_0x1f3cdb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1af76b,_0x1f3cdb,_0x4327c8[_0x2e56bf+0x1]);else{const _0x1787b6=_0x1f3cdb['data']['key'];if(_0x31bb44['has'](_0x1787b6))continue;_0x31bb44['add'](_0x1f3cdb['data']['key']),_0x1787b6==m?this['_handleRenameSuggestionDescription'](_0x1af76b,_0x1f3cdb):this['_handleAttributeSuggestionDescription'](_0x1af76b,_0x1f3cdb);}}}return this['_resolveDescriptionItems'](_0x1af76b);}['registerDescriptionCallback'](_0x405e0a){this['_customCallbacks']['push'](_0x405e0a);}['registerElementLabel'](_0x7a05b5,_0x37e296,_0xaae5c5=_0x2ab9ee['normal']){'function'==typeof _0x7a05b5?_0x5155dc(this['_itemLabelsCallbacks'],{'matchingCallback':_0x7a05b5,'label':_0x37e296,'priority':_0xaae5c5}):this['_itemLabels']['set'](_0x7a05b5,_0x37e296);}['registerAttributeLabel'](_0xe91f35,_0x19e9f1){this['_attributeLabels']['set'](_0xe91f35,_0x19e9f1);}['getItemLabel'](_0x3374ea,_0x1ffef8=0x1){let _0x532519;for(const _0x20d94c of this['_itemLabelsCallbacks'])if(_0x20d94c['matchingCallback'](_0x3374ea)){_0x532519=_0x20d94c['label'];break;}return _0x532519||(_0x532519=this['_itemLabels']['get'](_0x3374ea['name'])),_0x532519?_0x532519(_0x1ffef8):0x1!==_0x1ffef8?_0x1ffef8+'\x20'+_0x3374ea['name']+'s':''+_0x3374ea['name'];}['_addDescriptionItems'](_0x2a41a6,_0x34656f){const _0x3e600c=_0x34656f['getFirstRange']()['getWalker'](),_0x34b491='insertion'==_0x34656f['type']?'add':'remove';for(const _0x30d76a of _0x3e600c){const _0x3fb73f=_0x30d76a['item'],_0xe34fec=_0x2a41a6[_0x2a41a6['length']-0x1];if(_0x3fb73f['is']('$textProxy'))_0xe34fec&&_0xe34fec['type']['indexOf']('Container')>-0x1&&_0x2a41a6['pop'](),_0xe34fec&&'text'==_0xe34fec['type']?_0xe34fec[_0x34b491]+=_0x3fb73f['data']:_0x2a41a6['push']({'type':'text','add':'add'==_0x34b491?_0x3fb73f['data']:'','remove':'remove'==_0x34b491?_0x3fb73f['data']:''});else{if(this['_schema']['isObject'](_0x3fb73f)){const _0x1862d4=_0x3fb73f;if(_0xe34fec&&_0xe34fec['type']['indexOf']('Container')>-0x1&&_0x2a41a6['pop'](),'elementEnd'==_0x30d76a['type'])continue;_0xe34fec&&_0xe34fec['type']==_0x34b491+'Object'&&_0xe34fec['element']['name']==_0x1862d4['name']?_0xe34fec['quantity']++:_0x2a41a6['push']({'type':_0x34b491+'Object','element':_0x1862d4,'quantity':0x1}),_0x3e600c['skip'](_0x91d1ab=>!('elementEnd'==_0x91d1ab['type']&&_0x91d1ab['item']==_0x3fb73f));}else{if(this['_schema']['checkChild'](_0x3fb73f,'$text')||_0x3fb73f['is']('element','softBreak')){const _0x4e51b4=_0x3fb73f;if('add'==_0x34b491&&'elementStart'==_0x30d76a['type']||'remove'==_0x34b491&&'elementEnd'==_0x30d76a['type'])continue;if(_0xe34fec&&-0x1==_0xe34fec['type']['indexOf']('Container')){'text'==_0xe34fec['type']&&(_0xe34fec[_0x34b491]+='\x0a');continue;}let _0xa3b97e;if(_0xa3b97e='add'==_0x34b491?_0x4e51b4['nextSibling']&&!this['_schema']['isObject'](_0x4e51b4['nextSibling'])?_0x4e51b4['nextSibling']:null:_0x4e51b4['previousSibling']&&!this['_schema']['isObject'](_0x4e51b4['previousSibling'])?_0x4e51b4['previousSibling']:null,_0x4e51b4['isEmpty']||_0xa3b97e&&_0xa3b97e['isEmpty']){const _0x481f6d=_0xa3b97e&&_0xa3b97e['isEmpty']?_0xa3b97e:_0x4e51b4;_0xe34fec&&_0xe34fec['type']==_0x34b491+'EmptyContainer'&&_0xe34fec['element']['name']==_0x481f6d['name']?_0xe34fec['quantity']++:_0x2a41a6['push']({'type':_0x34b491+'EmptyContainer','element':_0x481f6d,'quantity':0x1});}else _0x2a41a6['push']({'type':_0x34b491+'Container','element':_0x4e51b4});}}}}}['_resolveDescriptionItems'](_0x6dd6f8){const _0x42af67=this['_locale'],_0x8925c9=[],_0x561f4d=[],_0x7abf25=[];for(const _0x50257f of _0x6dd6f8)switch(_0x50257f['type']){case'text':if(_0x50257f['add']=_0x50257f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x50257f['remove']=_0x50257f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x50257f['add']&&''!=_0x50257f['remove']){_0x8925c9['push']({'type':'replace','content':o(_0x42af67,'REPLACE_TEXT',['\x22'+_0x50257f['remove']+'\x22','\x22'+_0x50257f['add']+'\x22'])});continue;}if(null!=_0x50257f['add']['match'](/^ +$/)){_0x8925c9['push']({'type':'insertion','content':o(_0x42af67,'*Insert:*\x20%0',o(_0x42af67,'ELEMENT_SPACE',_0x50257f['add']['length']))});continue;}if(null!=_0x50257f['remove']['match'](/^ +$/)){_0x8925c9['push']({'type':'deletion','content':o(_0x42af67,'*Remove:*\x20%0',o(_0x42af67,'ELEMENT_SPACE',_0x50257f['remove']['length']))});continue;}if(''!=_0x50257f['add']){_0x8925c9['push']({'type':'insertion','content':o(_0x42af67,'*Insert:*\x20%0','\x22'+_0x50257f['add']+'\x22')});continue;}_0x8925c9['push']({'type':'deletion','content':o(_0x42af67,'*Remove:*\x20%0','\x22'+_0x50257f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x8925c9['push']({'type':'insertion','content':o(_0x42af67,'*Insert:*\x20%0',this['getItemLabel'](_0x50257f['element'],_0x50257f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x8925c9['push']({'type':'deletion','content':o(_0x42af67,'*Remove:*\x20%0',this['getItemLabel'](_0x50257f['element'],_0x50257f['quantity']))});continue;case'addContainer':_0x8925c9['push']({'type':'insertion','content':o(_0x42af67,'*Split:*\x20%0',this['getItemLabel'](_0x50257f['element'],_0x50257f['quantity']))});continue;case'removeContainer':_0x8925c9['push']({'type':'deletion','content':o(_0x42af67,'*Merge:*\x20%0',this['getItemLabel'](_0x50257f['element'],_0x50257f['quantity']))});continue;case'addFormat':_0x561f4d['push'](_0x50257f['key']);continue;case'removeFormat':_0x7abf25['push'](_0x50257f['key']);continue;default:_0x8925c9['push'](_0x50257f);}if(_0x561f4d['length']){const _0x3232e6=_0x561f4d['map'](_0x41175e=>this['_attributeLabels']['has'](_0x41175e)?this['_attributeLabels']['get'](_0x41175e):_0x41175e)['join'](',\x20');_0x8925c9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3232e6)});}if(_0x7abf25['length']){const _0x549e88=_0x7abf25['map'](_0x28ab1c=>this['_attributeLabels']['has'](_0x28ab1c)?this['_attributeLabels']['get'](_0x28ab1c):_0x28ab1c)['join'](',\x20');_0x8925c9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x549e88)});}return _0x8925c9;}['_handleCustomCallbackDescription'](_0x514a28){for(const _0x3cf89f of this['_customCallbacks']){const _0x598484=_0x3cf89f(_0x514a28);if(_0x598484&&'type'in _0x598484)return _0x598484;}}['_handleAttributeSuggestionDescription'](_0x4c7d7d,_0x33fe53){const _0x51bd85=_0x33fe53['data'],_0x65db01=void 0x0===_0x51bd85['newValue']?'removeFormat':'addFormat';_0x4c7d7d['push']({'type':_0x65db01,'key':_0x51bd85['key']});}['_handleRenameSuggestionDescription'](_0x457c02,_0xddea77){_0x457c02['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xddea77['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4b6d0c,_0x9fcb5f,_0x5e7e40){if(this['_addDescriptionItems'](_0x4b6d0c,_0x9fcb5f),_0x5e7e40&&_0x5e7e40['getFirstRange']()&&!_0x9fcb5f['getFirstRange']()['end']['isEqual'](_0x5e7e40['getFirstRange']()['start'])){const _0x520d1d=_0x4b6d0c[_0x4b6d0c['length']-0x1],_0x137d7b='insertion'==_0x9fcb5f['type']?'add':'remove';_0x520d1d&&'text'==_0x520d1d['type']&&(_0x520d1d[_0x137d7b]+='\x0a');}}}class E extends _0x41d95f{['afterInit'](){const _0x4304cb=this['editor'],_0x50dda2=_0x4304cb['plugins']['get']('TrackChangesEditing');_0x4304cb['commands']['get']('showAIAssistant')&&_0x50dda2['enableCommand']('showAIAssistant');}}class V extends _0x41d95f{['afterInit'](){const _0x5d1b4a=this['editor'],_0x2384c5=_0x5d1b4a['locale'];if(!_0x5d1b4a['plugins']['has']('AlignmentEditing'))return;const _0x38a742=_0x5d1b4a['plugins']['get']('TrackChangesEditing');_0x38a742['enableDefaultAttributesIntegration']('alignment'),_0x38a742['registerBlockAttribute']('alignment'),_0x38a742['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2384c5,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dc41c=this['editor'],_0x2caad9=_0x1dc41c['locale'];_0x1dc41c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ebd01=>{if('formatBlock'!=_0x5ebd01['type'])return;const {data:_0x5b8a8b}=_0x5ebd01;if(_0x5b8a8b&&'alignment'==_0x5b8a8b['commandName']){const _0xb5db5d=_0x5b8a8b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2caad9,'*Format:*\x20%0',function(_0x4c5b70){switch(_0x4c5b70){case'left':return o(_0x2caad9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2caad9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2caad9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2caad9,'FORMAT_JUSTIFY_TEXT');}}(_0xb5db5d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x41d95f{['afterInit'](){const _0x176d19=this['editor'],_0x164121=_0x176d19['plugins']['get']('TrackChangesEditing'),_0x35a23c=_0x176d19['locale'];for(const _0x2e7680 of ti){if(!_0x176d19['plugins']['has'](_0x2e7680))continue;const _0x47b8fc=_0x2e7680['slice'](0x0,-0x7)['toLowerCase'](),_0x97dfd5='FORMAT_'+_0x47b8fc['toUpperCase']();_0x164121['enableDefaultAttributesIntegration'](_0x47b8fc),_0x164121['registerInlineAttribute'](_0x47b8fc),_0x164121['descriptionFactory']['registerAttributeLabel'](_0x47b8fc,o(_0x35a23c,_0x97dfd5));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d445b=this['editor'],_0x2de984=_0x5d445b['locale'],_0x6fd2dc=_0x5d445b['plugins']['get']('TrackChangesEditing');function _0x58ea67(_0x23233e,_0x1dbaeb){_0x6fd2dc['descriptionFactory']['registerDescriptionCallback'](_0x487d94=>{if('formatInline'!=_0x487d94['type'])return;const {data:_0x3d74e5}=_0x487d94;return _0x3d74e5&&_0x3d74e5['commandName']===_0x23233e?_0x3d74e5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2de984,'*Format:*\x20%0',_0x1dbaeb)}:{'type':'format','content':o(_0x2de984,'*Remove\x20format:*\x20%0',_0x1dbaeb)}:void 0x0;});}_0x58ea67('bold',o(_0x2de984,'FORMAT_BOLD')),_0x58ea67('italic',o(_0x2de984,'FORMAT_ITALIC')),_0x58ea67('underline',o(_0x2de984,'FORMAT_UNDERLINE')),_0x58ea67('code',o(_0x2de984,'FORMAT_CODE')),_0x58ea67('strikethrough',o(_0x2de984,'FORMAT_STRIKETHROUGH')),_0x58ea67('subscript',o(_0x2de984,'FORMAT_SUBSCRIPT')),_0x58ea67('superscript',o(_0x2de984,'FORMAT_SUPERSCRIPT'));}}class O extends _0x41d95f{['afterInit'](){const _0x1baaa7=this['editor'],_0x6be2c0=_0x1baaa7['locale'];if(!_0x1baaa7['plugins']['has']('BlockQuoteEditing'))return;const _0x974eaf=_0x1baaa7['plugins']['get']('TrackChangesEditing'),_0x7b10f3=this['editor']['commands']['get']('blockQuote');_0x974eaf['enableCommand']('blockQuote',(_0x338da3,_0x431212={})=>{const _0x5c8ed7=this['editor']['model']['document']['selection'],_0xaadca2=_0x431212&&void 0x0!==_0x431212['forceValue']?_0x431212['forceValue']:!_0x7b10f3['value'];let _0x4363cf=[];if(_0xaadca2){const _0x3fa4c5=Array['from'](_0x5c8ed7['getSelectedBlocks']())['filter'](_0x421283=>oo(_0x421283)||function(_0x3e7bd4,_0x18d595){const _0x309710=_0x18d595['checkChild'](_0x3e7bd4['parent'],'blockQuote'),_0x13426f=_0x18d595['checkChild'](['$root','blockQuote'],_0x3e7bd4);return _0x309710&&_0x13426f;}(_0x421283,this['editor']['model']['schema']));_0x4363cf=to(_0x3fa4c5,_0x1baaa7['model']);}else{const _0x10e27b=Array['from'](_0x5c8ed7['getSelectedBlocks']())['filter'](_0x309a4e=>oo(_0x309a4e));_0x4363cf=to(_0x10e27b,_0x1baaa7['model']);}_0x1baaa7['model']['change'](()=>{for(const _0xdba4ec of _0x4363cf)_0x974eaf['markBlockFormat'](_0xdba4ec,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xaadca2}]});});}),_0x974eaf['descriptionFactory']['registerDescriptionCallback'](_0x48c242=>{const {data:_0x4b41f4}=_0x48c242;if(_0x4b41f4&&'blockQuote'==_0x4b41f4['commandName']){const _0x4b6b6b=o(_0x6be2c0,'ELEMENT_BLOCK_QUOTE');return _0x4b41f4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6be2c0,'*Set\x20format:*\x20%0',_0x4b6b6b)}:{'type':'format','content':o(_0x6be2c0,'*Remove\x20format:*\x20%0',_0x4b6b6b)};}});}}function oo(_0x4d6673){return'blockQuote'==_0x4d6673['parent']['name'];}class G extends _0x41d95f{['afterInit'](){const _0x5b5a46=this['editor'];_0x5b5a46['plugins']['has']('CaseChange')&&(_0x5b5a46['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5b5a46['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5b5a46['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x41d95f{['afterInit'](){const _0x12dd4a=this['editor'];_0x12dd4a['commands']['get']('ckbox')&&_0x12dd4a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x41d95f{['afterInit'](){const _0x142a93=this['editor'];if(!_0x142a93['plugins']['has']('CodeBlock'))return;const _0x4d812e=_0x142a93['plugins']['get']('TrackChangesEditing'),_0x28c9ad=_0x142a93['locale'],_0x3fcc5a=_0x142a93['config']['get']('codeBlock')['languages'],_0x1804f3=_0x142a93['commands']['get']('codeBlock');_0x4d812e['enableCommand']('indentCodeBlock'),_0x4d812e['enableCommand']('outdentCodeBlock'),_0x4d812e['enableCommand']('codeBlock',(_0x56c150,_0x1b11cc={})=>{const _0x51c79b=_0x142a93['model'],_0x57b78b=_0x142a93['model']['document']['selection'],_0x124324=_0x1b11cc&&void 0x0!==_0x1b11cc['forceValue']?_0x1b11cc['forceValue']:!_0x1804f3['value'];let _0x4dd039;_0x1b11cc['language']||(_0x1b11cc['language']=_0x3fcc5a[0x0]['language']),_0x4dd039=_0x124324?Array['from'](_0x57b78b['getSelectedBlocks']())['filter'](_0x1196bf=>eo(_0x1196bf)||function(_0x44da83,_0x459b33){if(_0x44da83['is']('rootElement')||_0x459b33['isLimit'](_0x44da83))return!0x1;return _0x459b33['checkChild'](_0x44da83['parent'],'codeBlock');}(_0x1196bf,_0x51c79b['schema'])):Array['from'](_0x57b78b['getSelectedBlocks']())['filter'](_0x1e4de1=>eo(_0x1e4de1));const _0x32fd05=to(_0x4dd039,_0x51c79b);_0x51c79b['change'](()=>{for(const _0x1cf7c0 of _0x32fd05)_0x4d812e['markBlockFormat'](_0x1cf7c0,{'commandName':'codeBlock','commandParams':[{..._0x1b11cc,'forceValue':_0x124324}],'formatGroupId':'blockName'});});}),(_0x4d812e['descriptionFactory']['registerElementLabel']('codeBlock',_0x411ffc=>o(_0x28c9ad,'ELEMENT_CODE_BLOCK',_0x411ffc)),_0x4d812e['descriptionFactory']['registerDescriptionCallback'](_0x29fb5a=>{if('formatBlock'!=_0x29fb5a['type'])return;const _0x43bf84=_0x28c9ad['t'],{data:_0x57e886}=_0x29fb5a;if(!_0x57e886||'codeBlock'!=_0x57e886['commandName'])return;const _0x3f2eb5=_0x57e886['commandParams'][0x0]['language'],_0x47ac91=_0x43bf84(_0x3fcc5a['find'](_0x1da3c9=>_0x1da3c9['language']===_0x3f2eb5)['label'])['toLowerCase']();return _0x57e886['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28c9ad,'*Set\x20format:*\x20%0',o(_0x28c9ad,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x47ac91+')')}:{'type':'format','content':o(_0x28c9ad,'*Remove\x20format:*\x20%0',o(_0x28c9ad,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2cb8cb){return'codeBlock'==_0x2cb8cb['name'];}class H extends _0x41d95f{['afterInit'](){const _0x10e808=this['editor'];if(!_0x10e808['plugins']['has']('CommentsEditing'))return;_0x10e808['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4bb8fe,_0x419417,_0x36cf59){const _0x469b1=[];for(const _0x5d6c52 of _0x419417['getItems']())_0x5d6c52['hasAttribute'](_0x4bb8fe)&&_0x469b1['push'](_0x36cf59['createRangeOn'](_0x5d6c52));return _0x469b1;}function _e(_0x1eb437,_0x4efa8,{showActiveMarker:_0x94b885=!0x0}={}){const _0xffcc25=_0x1eb437['plugins']['get']('TrackChangesEditing');return(_0x209374,_0x15b062,_0x1f107e)=>{if(!_0x1f107e['consumable']['test'](_0x15b062['markerRange'],_0x209374['name']))return;const _0x41839e=_0x15b062['markerRange']['getWalker'](),_0x2ad910=_0x15b062['markerRange']['start'],_0x1f7cde=_0x1eb437['model']['schema'];let _0x92ad6e=null,_0x232fca=null,_0x2b0bc6=!0x1,_0x568dd9=!0x1;for(const _0x2d7c8d of _0x41839e){const _0xffad98=_0x2d7c8d['item'];_0x2b0bc6=_0x2b0bc6||_0x1f7cde['isContent'](_0xffad98);const _0x24f9f7=_0x1f107e['mapper']['toViewElement'](_0xffad98);if(_0x24f9f7&&_0x24f9f7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d7c8d['type']&&(_0x1f7cde['isBlock'](_0xffad98)&&!_0x1f7cde['isLimit'](_0xffad98)&&(_0xffad98['nextSibling']||_0x2ad910['isAtEnd']?_0x92ad6e&&_0x92ad6e['parent']==_0xffad98||(_0x92ad6e=_0xffad98,_0x29bc3c(_0x2d7c8d['previousPosition']),_0x568dd9=!0x0):_0x232fca=_0x232fca||_0x2d7c8d['previousPosition']));}function _0x29bc3c(_0x4b2523){const _0x37023d=_0x1f107e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4efa8}),_0x36c70a=_0x1f107e['mapper']['toViewPosition'](_0x4b2523);_0x94b885&&_0xffcc25['activeMarkers']['includes'](_0x15b062['markerName'])&&_0x1f107e['writer']['addClass']('ck-suggestion-marker--active',_0x37023d),_0x1f107e['writer']['insert'](_0x36c70a,_0x37023d),_0x1f107e['mapper']['bindElementToMarker'](_0x37023d,_0x15b062['markerName']);}_0x2b0bc6||_0x568dd9||!_0x232fca||_0x29bc3c(_0x232fca);};}class q extends _0x41d95f{static get['requires'](){return[_0x2fd1ea];}['init'](){const _0x4c4c2d=this['editor'],_0x639c03=_0x4c4c2d['plugins']['get']('TrackChangesEditing');_0x639c03['enableCommand']('delete');const _0xab92f1=_0x4c4c2d['commands']['get']('deleteForward');_0x639c03['enableCommand']('deleteForward',(_0x3d5d65,_0x1cd6f8={})=>{const _0x5731da=_0x4c4c2d['model']['createSelection'](_0x4c4c2d['model']['document']['selection']);_0x5731da['isCollapsed']&&_0x4c4c2d['model']['modifySelection'](_0x5731da,{'direction':'forward','unit':_0x1cd6f8['unit']});const _0x3625b9=_0x5731da['getFirstRange'](),_0xc42e94=_0x25d98f['fromRange'](_0x3625b9);let _0x168c76;_0x3d5d65(_0x1cd6f8),_0x168c76='$graveyard'==_0xc42e94['root']['rootName']?_0x4c4c2d['model']['createRange'](_0x3625b9['start']):_0x4c4c2d['model']['createRange'](_0xc42e94['start'],_0xc42e94['end']),_0xc42e94['detach'](),_0x4c4c2d['model']['enqueueChange'](_0xab92f1['buffer']['batch'],_0x27042b=>{_0xab92f1['buffer']['lock'](),_0x27042b['setSelection'](_0x27042b['createRange'](_0x168c76['end'])),_0xab92f1['buffer']['unlock']();});}),_0x4c4c2d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4c4c2d,'merge'),{'priority':'high'}),_0x4c4c2d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x16e08a,_0x1e943e,_0x4521da)=>{_0x4521da['options']['showSuggestionHighlights']&&_e(_0x4c4c2d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x16e08a,_0x1e943e,_0x4521da);},{'priority':'high'}),_0x4c4c2d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xb73933,_0x2bd08f,_0x113df8)=>{const _0x111c12=_0x113df8['mapper']['markerNameToElements'](_0x2bd08f['markerName']);if(_0x111c12){for(const _0x441108 of _0x111c12)_0x441108['is']('uiElement')&&(_0x113df8['mapper']['unbindElementFromMarkerName'](_0x441108,_0x2bd08f['markerName']),_0x113df8['writer']['remove'](_0x441108));}},{'priority':'high'});}}class z extends _0x41d95f{['afterInit'](){const _0x3f6673=this['editor'];if(!_0x3f6673['plugins']['has']('ListEditing'))return;const _0x44f05d=_0x3f6673['locale'],_0x184fbf=_0x3f6673['plugins']['get']('TrackChangesEditing'),_0x21a068=_0x3f6673['plugins']['has']('TodoListEditing'),_0x1f2263=!!_0x3f6673['config']['get']('list.multiBlock');function _0x24c42c(_0x432166){return{'type':'format','content':''+o(_0x44f05d,'*Set\x20format:*\x20%0',_0x432166)};}function _0x4063e3(_0x4809ac){return{'type':'format','content':''+o(_0x44f05d,'*Remove\x20format:*\x20%0',_0x4809ac)};}_0x184fbf['enableDefaultAttributesIntegration']('numberedList'),_0x184fbf['enableDefaultAttributesIntegration']('bulletedList'),_0x184fbf['enableDefaultAttributesIntegration']('customNumberedList'),_0x184fbf['enableDefaultAttributesIntegration']('customBulletedList'),_0x184fbf['enableDefaultAttributesIntegration']('indentList'),_0x184fbf['enableDefaultAttributesIntegration']('outdentList'),_0x184fbf['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x184fbf['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x184fbf['registerBlockAttribute']('listItemId'),_0x184fbf['registerBlockAttribute']('listType'),_0x184fbf['registerBlockAttribute']('listIndent'),_0x1f2263&&(_0x184fbf['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x184fbf['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x21a068&&(_0x184fbf['enableDefaultAttributesIntegration']('todoList'),_0x184fbf['enableDefaultAttributesIntegration']('checkTodoList'),_0x184fbf['registerBlockAttribute']('todoListChecked'),_0x184fbf['descriptionFactory']['registerDescriptionCallback'](_0x362520=>{const {data:_0xbdafda}=_0x362520;if(_0xbdafda&&'todoListChecked'==_0xbdafda['key'])return{'type':'format','content':_0xbdafda['newValue']?o(_0x44f05d,'*Check\x20item*'):o(_0x44f05d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3ddc0d=>{if(_0x3ddc0d['batch']['isUndo'])return!0x1;let _0x2ceb65=!0x1;const _0x37aec7=_0x184fbf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x280688=>'todoListChecked'===_0x184fbf['_getAttributeKey'](_0x280688));for(const _0x5d5661 of _0x37aec7){'todo'!=_0x5d5661['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x184fbf['_findSuggestions'](_0x5d5661['getFirstRange'](),'attribute')['find'](_0x250e91=>'listType'===_0x184fbf['_getAttributeKey'](_0x250e91['suggestion']))||(_0x3ddc0d['removeMarker'](_0x5d5661['getFirstMarker']()),_0x2ceb65=!0x0));}return _0x2ceb65;})),_0x184fbf['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x44f05d,'FORMAT_INDENT'));const _0x527011={'type':'format','content':''};_0x184fbf['descriptionFactory']['registerDescriptionCallback'](_0x3e7e42=>{const {data:_0x2539d3}=_0x3e7e42;if(!_0x2539d3||'listType'!=_0x2539d3['key'])return;let _0x1855bc=_0x3e7e42['head'];for(;_0x1855bc;){if(_0x1855bc['data']&&(('listStyle'==_0x1855bc['data']['key']||'listMarkerStyle'==_0x1855bc['data']['key'])&&(_0x1855bc['data']['newValue']&&'default'!=_0x1855bc['data']['newValue']||'default'!=_0x1855bc['data']['oldValue']&&!_0x2539d3['newValue'])||!_0x1f2263&&_0x1855bc['data']['key']==m))return _0x527011;_0x1855bc=_0x1855bc['next'];}if(null==_0x2539d3['newValue'])switch(_0x2539d3['oldValue']){case'bulleted':return _0x4063e3(o(_0x44f05d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4063e3(o(_0x44f05d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4063e3(o(_0x44f05d,'ELEMENT_TODO_LIST'));}switch(_0x2539d3['newValue']){case'bulleted':return _0x24c42c(o(_0x44f05d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x24c42c(o(_0x44f05d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x24c42c(o(_0x44f05d,'ELEMENT_TODO_LIST'));}}),_0x184fbf['descriptionFactory']['registerDescriptionCallback'](_0xd6fa45=>{const {data:_0x2f60f2}=_0xd6fa45;if(_0x2f60f2&&'listIndent'==_0x2f60f2['key'])return null==_0x2f60f2['newValue']||null==_0x2f60f2['oldValue']&&0x0==_0x2f60f2['newValue']?_0x527011:void 0x0;}),_0x184fbf['descriptionFactory']['registerDescriptionCallback'](_0x375588=>{if('attribute'!=_0x375588['type'])return;const {data:_0x27c15e}=_0x375588;if(!_0x27c15e||'listItemId'!=_0x27c15e['key'])return;const _0x4d85e6=le(_0x375588);return'newValue'==_0x4d85e6?{'type':'format','content':o(_0x44f05d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4d85e6?{'type':'format','content':o(_0x44f05d,'*Split:*\x20list\x20item')}:_0x527011;}),_0x3f6673['model']['document']['registerPostFixer'](_0x199df0=>this['listItemIdFixer'](_0x199df0)),_0x3f6673['model']['document']['registerPostFixer'](_0x879407=>this['noTrackChangesFixer'](_0x879407)),_0x3f6673['model']['document']['registerPostFixer'](_0x50fe3b=>this['assureChains'](_0x50fe3b)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x52165f){if(_0x52165f['batch']['isUndo']||!_0x52165f['batch']['isLocal'])return!0x1;let _0x5da403=!0x1;const _0x34bd59=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a6e62=>_0x1a6e62['data']&&'listItemId'==_0x1a6e62['data']['key'])['filter'](_0x32bd75=>_0x32bd75['data']['newValue']&&_0x32bd75['data']['oldValue']);for(const _0x5b041a of _0x34bd59)le(_0x5b041a)||(_0x52165f['removeMarker'](_0x5b041a['getFirstMarker']()),_0x5da403=!0x0);return _0x5da403;}['noTrackChangesFixer'](_0x2e33af){if(_0x2e33af['batch']['isUndo']||!_0x2e33af['batch']['isLocal'])return!0x1;const _0x58398a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x58398a['trackChangesCommand']['value'])return!0x1;let _0x3bcdb4=!0x1;const _0x21d79d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xdbc771=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x245fc7=>'attribute'==_0x245fc7['type'])['filter'](_0x27f54a=>_0x21d79d['includes'](_0x27f54a['attributeKey']));if(0x0==_0xdbc771['length'])return _0x3bcdb4;for(const _0xbcf7ba of _0xdbc771){const _0x252fe8=_0x58398a['_findSuggestions'](_0xbcf7ba['range'],'attribute')['filter'](_0x27b8b1=>!_0x27b8b1['meta']['isNextTo'])['map'](_0x24d54b=>_0x24d54b['suggestion'])['filter'](_0x34e984=>{const _0x5e897a=_0x58398a['_getAttributeKey'](_0x34e984);return _0x21d79d['includes'](_0x5e897a);});if(_0x252fe8['length']){for(const _0x5c9419 of _0x252fe8)_0x2e33af['removeMarker'](_0x5c9419['getFirstMarker']());_0x3bcdb4=!0x0;}}return _0x3bcdb4;}['assureChains'](_0x26bf52){if(_0x26bf52['batch']['isUndo']||!_0x26bf52['batch']['isLocal'])return!0x1;const _0x57a8c0=this['editor']['plugins']['get']('TrackChangesEditing');let _0x3c8fd5=!0x1;const _0x2a7168=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5f90f0 of _0x57a8c0['getSuggestions']({'skipNotAttached':!0x0})){const _0x358fe3=_0x57a8c0['_findSuggestions'](_0x5f90f0['getFirstRange'](),'attribute')['map'](_0x4cfe1b=>_0x4cfe1b['suggestion'])['filter'](_0x2fdd59=>_0x2fdd59['data']&&_0x2a7168['includes'](_0x2fdd59['data']['key']));if(!_0x358fe3['length'])continue;const _0x4bc466=_0x358fe3[0x0]['head']['attributes']['groupId'];if(!_0x358fe3['every'](_0x3c3b4f=>_0x3c3b4f['attributes']['groupId']===_0x4bc466)){for(const _0x4502db of _0x358fe3)_0x471394(_0x4502db,_0x4bc466)&&(_0x3c8fd5=!0x0);}}return _0x3c8fd5;function _0x23b776(_0x563e23,_0x161094){for(const _0x175eb8 of _0x57a8c0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51806a=>'attribute'==_0x51806a['type']&&_0x51806a['attributes']['groupId']==_0x563e23))_0x175eb8['setAttribute']('groupId',_0x161094);}function _0x471394(_0x848848,_0xf3eaf3){let _0x43573c=_0x848848['head'],_0x546c98=!0x1;for(;_0x43573c;)_0x43573c['attributes']['groupId']!=_0xf3eaf3&&(_0x23b776(_0x43573c['attributes']['groupId'],_0xf3eaf3),_0x43573c['setAttribute']('groupId',_0xf3eaf3),_0x546c98=!0x0),_0x43573c=_0x43573c['next'];return _0x546c98;}}['_supportLegacySuggestions'](){const _0x5032fa=this['editor'],_0x33e3ed=_0x5032fa['locale'],_0x38e7d9=_0x5032fa['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x38e7d9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x45773e,_0x384b8b){const _0x1b1d14=[];for(let _0x37c630 of _0x45773e)_0x37c630['start']['nodeAfter']===_0x37c630['end']['parent']&&(_0x37c630=_0x5032fa['model']['createRange'](_0x5032fa['model']['createPositionAt'](_0x37c630['start']['nodeAfter'],0x0))),_0x1b1d14['push'](_0x37c630);_0x5032fa['model']['change'](_0x5f171b=>{const _0xc6e6ab=_0x5032fa['model']['document']['selection'],_0x2bded2=Array['from'](_0xc6e6ab['getRanges']())['map'](_0x2dc4ea=>_0x25d98f['fromRange'](_0x2dc4ea));_0x5f171b['setSelection'](_0x1b1d14),_0x5032fa['commands']['get'](_0x384b8b['commandName'])['refresh'](),_0x384b8b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5032fa['execute'](_0x384b8b['commandName'],..._0x384b8b['commandParams']),_0x5f171b['setSelection'](_0x2bded2);for(const _0x36e710 of _0x2bded2)_0x36e710['detach']();});}),_0x38e7d9['descriptionFactory']['registerElementLabel'](function(_0x4e8260){const _0x583e75=!_0x5032fa['model']['schema']['isObject'](_0x4e8260),_0x181cd4=_0x4e8260['previousSibling'],_0x5789cc=_0x4e8260['nextSibling'],_0x343425=_0x4e8260['getAttribute']('listItemId'),_0x1c2f81=!_0x181cd4||_0x181cd4['getAttribute']('listItemId')!==_0x343425,_0x541fa0=!_0x5789cc||_0x5789cc['getAttribute']('listItemId')!==_0x343425;return _0x583e75&&Boolean(_0x343425)&&_0x1c2f81&&_0x541fa0;},_0x3b6ebe=>o(_0x33e3ed,'ELEMENT_LIST_ITEM',_0x3b6ebe));}['_registerLegacyDescription'](){const _0x18f894=this['editor'],_0x1c8216=_0x18f894['locale'];function _0x26339e(_0x1f0dd1){const _0x122318=_0x18f894['commands']['get']('bulletedList')['value'],_0x59c131=_0x18f894['commands']['get']('numberedList')['value'];return'numberedList'===_0x1f0dd1?_0x122318:_0x59c131;}_0x18f894['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x165d55){if('formatBlock'!=_0x165d55['type'])return;const {data:_0x22290c}=_0x165d55;if(!_0x22290c)return;let _0x34dc9c,_0x591167,_0x227505,_0x206ce0;switch(_0x22290c['commandName']){case'bulletedList':_0x227505=_0x22290c['commandParams'][0x0]['forceValue'],_0x206ce0=_0x26339e(_0x22290c['commandName']),_0x34dc9c=_0x227505?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x206ce0&&_0x18f894['config']['get']('list.multiBlock')||(_0x34dc9c='*Change\x20to:*\x20%0'),_0x591167={'type':'format','content':o(_0x1c8216,_0x34dc9c,o(_0x1c8216,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x227505=_0x22290c['commandParams'][0x0]['forceValue'],_0x206ce0=_0x26339e(_0x22290c['commandName']),_0x34dc9c=_0x227505?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x206ce0&&_0x18f894['config']['get']('list.multiBlock')||(_0x34dc9c='*Change\x20to:*\x20%0'),_0x591167={'type':'format','content':o(_0x1c8216,_0x34dc9c,o(_0x1c8216,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x34dc9c='*Indent:*\x20%0',_0x591167={'type':'format','content':o(_0x1c8216,_0x34dc9c,o(_0x1c8216,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x34dc9c=function(_0x46d5eb){const _0x5cba67=_0x46d5eb['getFirstRange']();let _0x5ee1bd=_0x5cba67['start']['nodeAfter'];for(;_0x5ee1bd&&_0x5cba67['containsItem'](_0x5ee1bd);){if(_0x5ee1bd['getAttribute']('listIndent')>0x0)return!0x1;_0x5ee1bd=_0x5ee1bd['nextSibling'];}return!0x0;}(_0x165d55)?o(_0x1c8216,'*Format:*\x20remove\x20from\x20%0',o(_0x1c8216,function(_0x362d67){return'ELEMENT_'+_0x362d67['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x165d55))):o(_0x1c8216,'*Outdent:*\x20%0',o(_0x1c8216,'ELEMENT_LIST_ITEM')),_0x591167={'type':'format','content':_0x34dc9c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x22290c['multipleBlocks']&&(_0x34dc9c='*Merge:*\x20%0',_0x591167={'type':'deletion','content':o(_0x1c8216,_0x34dc9c,o(_0x1c8216,'ELEMENT_LIST_ITEM'))});}return _0x591167;});}}function le(_0x5d90c9){let _0x34f248=_0x5d90c9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x34f248;){const _0x351ef7=_0x34f248['getAttribute']('listItemId');if(!_0x351ef7)return!0x1;if(_0x351ef7==_0x5d90c9['data']['newValue'])return'newValue';if(_0x351ef7==_0x5d90c9['data']['oldValue'])return'oldValue';_0x34f248=_0x34f248['previousSibling'];}return!0x1;}class ue extends _0x41d95f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x503377=this['editor']['config']['get']('list.properties'),_0x40bd10=this['editor']['plugins']['get']('TrackChangesEditing');_0x503377['styles']&&(_0x40bd10['enableDefaultAttributesIntegration']('listStyle'),_0x40bd10['registerBlockAttribute']('listStyle')),_0x503377['reversed']&&(_0x40bd10['enableDefaultAttributesIntegration']('listReversed'),_0x40bd10['registerBlockAttribute']('listReversed')),_0x503377['startIndex']&&(_0x40bd10['enableDefaultAttributesIntegration']('listStart'),_0x40bd10['registerBlockAttribute']('listStart'));const _0x406c7f={'type':'format','content':''};_0x40bd10['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xa650a6=this['editor']['locale'];_0x40bd10['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xa650a6,'FORMAT_LIST_REVERSED')),_0x40bd10['descriptionFactory']['registerDescriptionCallback'](_0x3d61b6=>{const {data:_0x2779b9}=_0x3d61b6;if(_0x2779b9&&'listReversed'==_0x2779b9['key'])return null==_0x2779b9['newValue']||0x0==_0x2779b9['newValue']&&null==_0x2779b9['oldValue']?_0x406c7f:void 0x0;}),_0x40bd10['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xa650a6,'FORMAT_LIST_START')),_0x40bd10['descriptionFactory']['registerDescriptionCallback'](_0x5ba7bf=>{const {data:_0x5edcd1}=_0x5ba7bf;if(_0x5edcd1&&'listStart'==_0x5edcd1['key'])return null==_0x5edcd1['newValue']||0x1==_0x5edcd1['newValue']&&null==_0x5edcd1['oldValue']?_0x406c7f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x38e604=>{if(_0x38e604['batch']['isUndo'])return!0x1;let _0x278e40=!0x1;const _0x5c8ab4=_0x40bd10['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x344cb8=>{const _0x123d18=_0x40bd10['_getAttributeKey'](_0x344cb8);return'listStart'==_0x123d18||'listReversed'==_0x123d18;});for(const _0x17adc4 of _0x5c8ab4){const _0x16e10e=_0x17adc4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x16e10e||'customNumbered'==_0x16e10e)continue;_0x40bd10['_findSuggestions'](_0x17adc4['getFirstRange'](),'attribute')['find'](_0x38830f=>'listType'==_0x40bd10['_getAttributeKey'](_0x38830f['suggestion']))||(_0x38e604['removeMarker'](_0x17adc4['getFirstMarker']()),_0x278e40=!0x0);}return _0x278e40;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4a3229){const _0x5c0886=this['editor']['locale'],{data:_0x4c79cd}=_0x4a3229,_0xea94d9={'type':'format','content':''};if(!_0x4c79cd||'listStyle'!=_0x4c79cd['key'])return;if(!_0x4c79cd['oldValue'])return'default'==_0x4c79cd['newValue']?_0xea94d9:{'type':'format','content':''+o(_0x5c0886,'*Set\x20format:*\x20%0',o(_0x5c0886,this['_getTranslationKeyForListStyle'](_0x4c79cd['newValue'])))};if(!_0x4c79cd['newValue']){if('default'==_0x4c79cd['oldValue'])return _0xea94d9;let _0x2e447c=_0x4a3229['head'];for(;_0x2e447c;){if(_0x2e447c['data']&&'listType'==_0x2e447c['data']['key']&&_0x2e447c['data']['newValue'])return _0xea94d9;_0x2e447c=_0x2e447c['next'];}return{'type':'format','content':''+o(_0x5c0886,'*Remove\x20format:*\x20%0',o(_0x5c0886,this['_getTranslationKeyForListStyle'](_0x4c79cd['oldValue'])))};}if('default'!=_0x4c79cd['newValue'])return{'type':'format','content':''+o(_0x5c0886,'*Set\x20format:*\x20%0',o(_0x5c0886,this['_getTranslationKeyForListStyle'](_0x4c79cd['newValue'])))};let _0x13330c=_0x4a3229['head'];for(;_0x13330c;){if(_0x13330c['data']&&'listType'==_0x13330c['data']['key']&&_0x13330c['data']['newValue']&&_0x13330c['data']['oldValue'])return _0xea94d9;_0x13330c=_0x13330c['next'];}return{'type':'format','content':o(_0x5c0886,'*Set\x20format:*\x20%0',o(_0x5c0886,'ELEMENT_'+_0x4a3229['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2c0e0d=this['editor'],_0x4843c2=_0x2c0e0d['locale'];_0x2c0e0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x198f0b=>{if('formatBlock'!=_0x198f0b['type'])return;const {data:_0x46f2c7}=_0x198f0b;if(!_0x46f2c7)return;let _0x2352c7,_0x5214d1;switch(_0x46f2c7['commandName']){case'listStyle':_0x2352c7='*Change\x20to:*\x20%0',_0x5214d1={'type':'format','content':o(_0x4843c2,_0x2352c7,o(_0x4843c2,this['_getTranslationKeyForListStyle'](_0x46f2c7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2352c7=_0x46f2c7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5214d1={'type':'format','content':o(_0x4843c2,_0x2352c7)};break;case'listStart':_0x2352c7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5214d1={'type':'format','content':o(_0x4843c2,_0x2352c7,_0x46f2c7['commandParams'][0x0]['startIndex'])};}return _0x5214d1;});}['_getTranslationKeyForListStyle'](_0x3f4747){return'ELEMENT_'+function(_0x331694){if(pe['includes'](_0x331694))return'bulleted';if(ye['includes'](_0x331694))return'numbered';return null;}(_0x3f4747)['toUpperCase']()+'_LIST_'+_0x3f4747['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x41d95f{static get['requires'](){return[_0x48dd6f];}['init'](){const _0x4d9992=this['editor'],_0x3415b9=_0x4d9992['plugins']['get']('TrackChangesEditing'),_0x13ac8a=_0x4d9992['commands']['get']('enter');_0x3415b9['enableCommand']('enter',()=>{_0x4d9992['model']['change'](_0xc91fdf=>{const _0x12bdac=_0x4d9992['model']['document']['selection'],_0x542571=_0x12bdac['getFirstPosition'](),_0x42f1ec=_0x25d98f['fromRange'](_0x12bdac['getFirstRange']());if(_0x13ac8a['enterBlock'](_0xc91fdf)){const _0x252f82=_0x4d9992['model']['createPositionAt'](_0x542571['parent']['nextSibling'],0x0),_0x4382e9=_0xc91fdf['createRange'](_0x542571,_0x252f82);_0x3415b9['markInsertion'](_0x4382e9);}else _0xc91fdf['setSelection'](_0xc91fdf['createRange'](_0x42f1ec['end']));_0x42f1ec['detach'](),_0x13ac8a['fire']('afterExecute',{'writer':_0xc91fdf});});}),_0x4d9992['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4d9992,'split'),{'priority':'high'}),_0x4d9992['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x70c43d,_0x8e4b6f,_0x5454f1)=>{const _0x1ab2e2=_0x5454f1['mapper']['markerNameToElements'](_0x8e4b6f['markerName']);if(_0x1ab2e2){for(const _0x4d4406 of _0x1ab2e2)_0x4d4406['hasClass']('ck-suggestion-marker-split')&&(_0x5454f1['mapper']['unbindElementFromMarkerName'](_0x4d4406,_0x8e4b6f['markerName']),_0x5454f1['writer']['remove'](_0x4d4406));}},{'priority':'high'}),_0x4d9992['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x49f974,_0x11d886,_0x325de5)=>{_0x325de5['options']['showSuggestionHighlights']&&_e(_0x4d9992,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x49f974,_0x11d886,_0x325de5);},{'priority':'high'});}}class J extends _0x41d95f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2b0343=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b0343['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2b0343['enableCommand']('findNext'),_0x2b0343['enableCommand']('findPrevious'),_0x2b0343['enableCommand']('replace'),_0x2b0343['enableCommand']('replaceAll');}['handleFindCommand'](_0x5b3ceb,_0x1f96ee,_0x2a3e75={}){const _0xba447e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5b3ceb(_0x2220a5=>('string'==typeof _0x1f96ee?_0xba447e['findByTextCallback'](_0x1f96ee,_0x2a3e75):_0x1f96ee)(_0x2220a5)['filter'](_0x5005ce=>!0x1===this['_isInDeletionRange'](_0x5005ce,_0x2220a5['item'])),_0x2a3e75);}['_isInDeletionRange'](_0x1cb6a4,_0x1b9395){const _0x4cc644=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b9395,_0x1cb6a4['start']),this['editor']['model']['createPositionAt'](_0x1b9395,_0x1cb6a4['end']));for(const _0x328251 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4cc644['getIntersection'](_0x328251['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 _0x41d95f{['afterInit'](){const _0x5a4ddd=this['editor']['locale'],_0x53ed85=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x17ab27,commandName:_0x3cecf4}of ro)this['editor']['plugins']['has'](_0x17ab27)&&(_0x53ed85['enableDefaultAttributesIntegration'](_0x3cecf4),_0x53ed85['registerInlineAttribute'](_0x3cecf4));_0x5a4ddd['t'],_0x53ed85['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5a4ddd,'FORMAT_FONT_SIZE')),_0x53ed85['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5a4ddd,'FORMAT_FONT_FAMILY')),_0x53ed85['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5a4ddd,'FORMAT_FONT_COLOR')),_0x53ed85['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5a4ddd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x63a554=this['editor'],_0x4c8aa1=_0x63a554['locale'];_0x63a554['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd4e164=>{const _0x20ed13=_0x4c8aa1['t'];if('formatInline'!=_0xd4e164['type'])return;const {data:_0x4e2d9c}=_0xd4e164;if(null!=_0x4e2d9c){if('fontSize'==_0x4e2d9c['commandName']){const _0x1eb53d=_0x4e2d9c['commandParams'][0x0]['value'];if(_0x1eb53d){const _0x366385=_0x20ed13(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x39a062=>_0x39a062['model']==_0x1eb53d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4c8aa1,'*Set\x20font\x20size:*\x20%0',_0x366385)};}return{'type':'format','content':o(_0x4c8aa1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4e2d9c['commandName']){const _0x1ae06c=_0x4e2d9c['commandParams'][0x0]['value'];return _0x1ae06c?{'type':'format','content':o(_0x4c8aa1,'*Set\x20font\x20family:*\x20%0',_0x1ae06c)}:{'type':'format','content':o(_0x4c8aa1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4e2d9c['commandName']){const _0x34522d=_0x4e2d9c['commandParams'][0x0]['value'];if(_0x34522d){const _0x41b297=_0x25faac(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1201a9=>_0x1201a9['model']==_0x34522d);let _0x2ddb9f=_0x34522d,_0x42dafa='';return _0x41b297&&(_0x2ddb9f=_0x41b297['label'],_0x42dafa=_0x20ed13(_0x2ddb9f)['toLowerCase']()),{'type':'format','content':o(_0x4c8aa1,'*Set\x20font\x20color:*\x20%0',_0x42dafa)['trim'](),'color':{'value':_0x34522d,'title':_0x42dafa||_0x2ddb9f}};}return{'type':'format','content':o(_0x4c8aa1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4e2d9c['commandName']){const _0x1d2273=_0x4e2d9c['commandParams'][0x0]['value'];if(_0x1d2273){const _0x37897a=_0x25faac(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x24414d=>_0x24414d['model']==_0x1d2273);let _0xf584b3=_0x1d2273,_0x10c0ca='';return _0x37897a&&(_0xf584b3=_0x37897a['label'],_0x10c0ca=_0x20ed13(_0xf584b3)['toLowerCase']()),{'type':'format','content':o(_0x4c8aa1,'*Set\x20font\x20background\x20color:*\x20%0',_0x10c0ca)['trim'](),'color':{'value':_0x1d2273,'title':_0x10c0ca||_0xf584b3}};}return{'type':'format','content':o(_0x4c8aa1,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x41d95f{['afterInit'](){const _0x17d422=this['editor'],_0x46a4db=_0x17d422['plugins']['get']('TrackChangesEditing'),_0x36cf7f=_0x17d422['commands']['get']('copyFormat'),_0x32043b=_0x17d422['commands']['get']('pasteFormat');_0x36cf7f&&_0x32043b&&(_0x46a4db['enableDefaultAttributesIntegration']('pasteFormat'),_0x46a4db['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2a476d=this['editor'],_0x3f52ca=_0x2a476d['locale'];_0x2a476d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b2ff4=>{if('formatBlock'!=_0x2b2ff4['type']&&'formatInline'!=_0x2b2ff4['type'])return;const {data:_0xcf631f}=_0x2b2ff4;if(_0xcf631f&&'pasteFormat'===_0xcf631f['commandName']){const _0x314aab=[],_0x907533=_0xcf631f['commandParams'][0x0];for(const [_0x393c35,_0x3a21bc]of Object['entries'](_0x907533))_0x314aab['push'](so(_0x2a476d,_0x393c35,_0x3a21bc));return _0x314aab['length']?{'type':'format','content':o(_0x3f52ca,'*Set\x20format\x20to:*\x20%0',_0x314aab['join'](',\x20'))}:{'type':'format','content':o(_0x3f52ca,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2fa2b0,_0x5ef272,_0xd1fce9){const _0x593bc9=_0x2fa2b0['locale']['t'],_0x190a82=_0x5ef272['split'](/(?=[A-Z])/)['join']('\x20'),_0xb94532=_0x593bc9(_0x190a82['charAt'](0x0)['toUpperCase']()+_0x190a82['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xd1fce9)return _0xb94532;if('fontColor'===_0x5ef272||'fontBackgroundColor'===_0x5ef272){const _0x59a1ff=_0x25faac(_0x2fa2b0['config']['get']('fontColor.colors'))['find'](_0xfff937=>_0xfff937['model']==_0xd1fce9);return _0xb94532+'\x20('+(_0x59a1ff?_0x593bc9(_0x59a1ff['label'])['toLowerCase']():_0xd1fce9)+')';}if('fontSize'===_0x5ef272&&isNaN(parseFloat(_0xd1fce9))){const _0x2cab12=_0x2fa2b0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2fa2b0['config']['get']('fontSize.options'))['find'](_0x44ac56=>_0x44ac56['model']==_0xd1fce9);return _0xb94532+'\x20('+(_0x2cab12?_0x593bc9(_0x2cab12['title'])['toLowerCase']():_0xd1fce9)+')';}return _0xb94532+'\x20('+_0xd1fce9+')';}class Y extends _0x41d95f{['_headingOptions'];['afterInit'](){const _0xc36e3e=this['editor'];if(!_0xc36e3e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xc36e3e['config']['get']('heading.options');const _0x2e1716=_0xc36e3e['locale'],_0x5bde96=_0xc36e3e['plugins']['get']('TrackChangesEditing');_0x5bde96['enableDefaultAttributesIntegration']('heading');for(const _0x473db0 of this['_headingOptions'])'paragraph'!=_0x473db0['model']&&_0x5bde96['descriptionFactory']['registerElementLabel'](_0x473db0['model'],_0x3e06ec=>{const _0x2f80ed=this['_getHeadingLevel'](_0x473db0['model']);return null!==_0x2f80ed?_0x2ecab6(_0x3e06ec,_0x2f80ed):_0xbefb79(_0x3e06ec,_0x473db0['title']);});function _0x2ecab6(_0xc9a705,_0x4abb74){return o(_0x2e1716,'ELEMENT_HEADING',[_0xc9a705,_0x4abb74]);}function _0xbefb79(_0xaef173,_0x1d804a){return o(_0x2e1716,'ELEMENT_HEADING_CUSTOM',[_0xaef173,_0x1d804a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x598718=this['editor'],_0x5317bc=_0x598718['locale'];function _0x23c0b5(_0x1e98fb,_0x596117){return o(_0x5317bc,'ELEMENT_HEADING_CUSTOM',[_0x1e98fb,_0x596117]);}_0x598718['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a0f37=>{if('formatBlock'!=_0x2a0f37['type'])return;const {data:_0x15486c}=_0x2a0f37;if(_0x15486c&&'heading'==_0x15486c['commandName']){const _0x1f640d=_0x15486c['commandParams'][0x0]['value'],_0x3a2a63=this['_getHeadingLevel'](_0x1f640d);if(null!==_0x3a2a63)return{'type':'format','content':o(_0x5317bc,'*Change\x20to:*\x20%0',(_0x3bfba8=0x1,_0x2c2167=_0x3a2a63,o(_0x5317bc,'ELEMENT_HEADING',[_0x3bfba8,_0x2c2167])))};const _0x4db230=this['_headingOptions']['find'](_0x233a14=>_0x233a14['model']===_0x1f640d)['title'];return{'type':'format','content':o(_0x5317bc,'*Change\x20to:*\x20%0',_0x23c0b5(0x1,_0x4db230))};}var _0x3bfba8,_0x2c2167;});}['_getHeadingLevel'](_0x2e6b06){const _0x2839bb=_0x2e6b06['match'](/^heading(\d+)/);if(_0x2839bb)return _0x2839bb[0x1];const _0x5c7dab=this['_headingOptions']?.['find'](_0x1d7bda=>_0x1d7bda['model']==_0x2e6b06);if(_0x5c7dab&&_0x5c7dab['view']){const _0x2ffe33=_0x5c7dab['view'],_0x56c17f=(_0x2ffe33['name']??_0x2ffe33)['match'](/^h(\d+)/);if(_0x56c17f)return _0x56c17f[0x1];}return null;}}class Z extends _0x41d95f{['afterInit'](){const _0x414c60=this['editor'];if(!_0x414c60['plugins']['has']('HighlightEditing'))return;const _0xaa12d9=_0x414c60['plugins']['get']('TrackChangesEditing'),_0x25e04d=_0x414c60['locale'];_0xaa12d9['enableDefaultAttributesIntegration']('highlight'),_0xaa12d9['registerInlineAttribute']('highlight'),_0xaa12d9['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x25e04d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5afbc0=this['editor'],_0x9994a3=_0x5afbc0['locale'];_0x5afbc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb37666=>{if('formatInline'!=_0xb37666['type'])return;const {data:_0x4a7bb0}=_0xb37666;if(_0x4a7bb0&&'highlight'==_0x4a7bb0['commandName']){const _0x2895db=_0x9994a3['t'],_0x3e238f=_0x4a7bb0['commandParams'][0x0]['value'];if(_0x3e238f){const _0x382f8b=_0x5afbc0['config']['get']('highlight.options')['find'](_0x4d1390=>_0x4d1390['model']==_0x3e238f),_0x5ae75b=_0x2895db(_0x382f8b['title'])['toLowerCase']();return{'type':'format','content':o(_0x9994a3,'*Set\x20highlight:*\x20%0',_0x5ae75b),'color':{'value':_0x382f8b['color'],'title':_0x382f8b['title']}};}return{'type':'format','content':o(_0x9994a3,'*Remove\x20highlight*',o(_0x9994a3,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x41d95f{['afterInit'](){const _0x171567=this['editor'];if(!_0x171567['plugins']['has']('HorizontalLineEditing'))return;_0x171567['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x50d0f7=_0x171567['plugins']['get']('TrackChangesEditing'),_0x92d6d9=_0x171567['locale'];_0x50d0f7['descriptionFactory']['registerElementLabel']('horizontalLine',_0x18ab86=>o(_0x92d6d9,'ELEMENT_HORIZONTAL_LINE',_0x18ab86)),_0x171567['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5222a2,{writer:_0x58ae04,options:_0x16d15e})=>{if(!_0x16d15e['showSuggestionHighlights'])return null;const _0x2a2d46=_0x58ae04['createContainerElement']('div'),_0x15dbc5=_0x58ae04['createEmptyElement']('hr');return _0x58ae04['addClass']('ck-horizontal-line',_0x2a2d46),_0x58ae04['insert'](_0x58ae04['createPositionAt'](_0x2a2d46,0x0),_0x15dbc5),_0x2a2d46;},'converterPriority':'high'});}}class et extends _0x41d95f{['afterInit'](){const _0x2f84d8=this['editor'];if(!_0x2f84d8['plugins']['has']('HtmlEmbed'))return;const _0x2e65e9=_0x2f84d8['plugins']['get']('TrackChangesEditing'),_0x1a53f5=_0x2f84d8['locale'];_0x2e65e9['descriptionFactory']['registerElementLabel']('rawHtml',_0x5ddf6e=>o(_0x1a53f5,'ELEMENT_HTML_EMBED',_0x5ddf6e)),_0x2e65e9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2e65e9['registerBlockAttribute']('value'),_0x2e65e9['descriptionFactory']['registerDescriptionCallback'](_0x58a77d=>{if('attribute'!=_0x58a77d['type'])return;const {data:_0x3c9133}=_0x58a77d;if(_0x3c9133&&'value'==_0x3c9133['key']&&_0x58a77d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x50ac3c=o(_0x1a53f5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1a53f5,'*Change\x20%0\x20content*',_0x50ac3c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29b7be=this['editor'],_0x3cd52c=_0x29b7be['locale'];_0x29b7be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c4a69=>{if('formatBlock'!=_0x5c4a69['type'])return;const {data:_0xcb4eae}=_0x5c4a69;if(_0xcb4eae&&'htmlEmbed'==_0xcb4eae['commandName']){const _0x3e4fe5=o(_0x3cd52c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3cd52c,'*Change\x20%0\x20content*',_0x3e4fe5)};}});}}class it extends _0x41d95f{['afterInit'](){const _0x45bd3f=this['editor'];if(!_0x45bd3f['plugins']['has']('ImageEditing'))return;const _0xf71a37=_0x45bd3f['plugins']['get']('TrackChangesEditing'),_0x381f07=_0x45bd3f['plugins']['get']('ImageUtils'),_0x172332=_0x45bd3f['locale'];_0xf71a37['enableCommand']('insertImage'),_0xf71a37['descriptionFactory']['registerElementLabel']('imageBlock',_0x12d933=>o(_0x172332,'ELEMENT_IMAGE',_0x12d933)),_0xf71a37['descriptionFactory']['registerElementLabel']('imageInline',_0x476591=>o(_0x172332,'ELEMENT_INLINE_IMAGE',_0x476591)),_0xf71a37['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x172332,'ELEMENT_CAPTION')),_0x45bd3f['plugins']['has']('ImageUploadEditing')&&_0xf71a37['enableCommand']('uploadImage'),_0x45bd3f['plugins']['has']('ImageBlockEditing')&&_0x45bd3f['plugins']['has']('ImageInlineEditing')&&(_0xf71a37['enableCommand']('imageTypeInline',(_0x175a26,_0x362f21)=>{const _0x3585d0=_0x381f07['getClosestSelectedImageElement'](_0x45bd3f['model']['document']['selection']);_0x45bd3f['model']['change'](()=>{_0xf71a37['markBlockFormat'](_0x3585d0,{'commandName':'imageTypeInline','commandParams':[_0x362f21]},[],'convertBlockImageToInline');});}),_0xf71a37['enableCommand']('imageTypeBlock',(_0x197216,_0x6b5fea)=>{_0x45bd3f['model']['change'](_0x132f19=>{let _0x40d5e0=_0x381f07['getClosestSelectedImageElement'](_0x45bd3f['model']['document']['selection']),_0x2e3226=_0x132f19['createRangeOn'](_0x40d5e0);const _0x4380c8=_0x144a89['fromPosition'](_0x2e3226['start'],'toPrevious'),_0x541bdf=_0x144a89['fromPosition'](_0x2e3226['end'],'toNext');_0xf71a37['forceDefaultExecution'](()=>_0x197216(_0x6b5fea)),_0x40d5e0=_0x381f07['getClosestSelectedImageElement'](_0x45bd3f['model']['document']['selection']),_0x2e3226=_0x132f19['createRangeOn'](_0x40d5e0);const _0x34e584=_0x132f19['createRange'](_0x4380c8,_0x541bdf);_0x4380c8['detach'](),_0x541bdf['detach'](),_0xf71a37['markBlockFormat'](_0x40d5e0,{'commandName':'imageTypeInline','commandParams':[_0x6b5fea]},[],'convertInlineImageToBlock'),_0x34e584['start']['isBefore'](_0x2e3226['start'])&&_0xf71a37['markInsertion'](_0x132f19['createRange'](_0x34e584['start'],_0x2e3226['start']),'convertInlineImageToBlock'),_0x2e3226['end']['isBefore'](_0x34e584['end'])&&_0xf71a37['markInsertion'](_0x132f19['createRange'](_0x2e3226['end'],_0x34e584['end']),'convertInlineImageToBlock');});}),_0xf71a37['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xf71a37['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xf71a37['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xf71a37['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xf71a37['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xf71a37['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4493c4])=>{const _0x3053c0=_0xf71a37['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x26011e=_0x4493c4['start'],_0x4053d6=_0x4493c4['end'];const _0x5ef3d0=_0x45bd3f['model']['schema']['getNearestSelectionRange'](_0x26011e,'backward'),_0x5f164f=_0x45bd3f['model']['schema']['getNearestSelectionRange'](_0x4053d6,'forward');_0x5ef3d0['isCollapsed']&&(_0x26011e=_0x5ef3d0['start']),_0x5f164f['isCollapsed']&&(_0x4053d6=_0x5f164f['end']),_0x3053c0([_0x45bd3f['model']['createRange'](_0x26011e,_0x4053d6)]);}),_0xf71a37['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4ad6f3),_0xf71a37['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4ad6f3)),_0x45bd3f['plugins']['has']('ImageCaptionEditing')&&(_0xf71a37['enableCommand']('toggleImageCaption',(_0x42c8e8,_0xa1a289)=>{const _0x33d3b4=_0x45bd3f['plugins']['get']('ImageCaptionUtils');let _0x2659a6=_0x381f07['getClosestSelectedImageElement'](_0x45bd3f['model']['document']['selection']),_0x157d15=_0x33d3b4['getCaptionFromImageModelElement'](_0x2659a6);_0x45bd3f['model']['change'](()=>{if(_0x157d15)return void _0xf71a37['markDeletion'](_0x45bd3f['model']['createRangeOn'](_0x157d15));const _0x28e416=_0x381f07['isBlockImage'](_0x2659a6);_0x42c8e8(_0xa1a289),_0x2659a6=_0x381f07['getClosestSelectedImageElement'](_0x45bd3f['model']['document']['selection']),_0x157d15=_0x33d3b4['getCaptionFromImageModelElement'](_0x2659a6),_0xf71a37['markInsertion'](_0x45bd3f['model']['createRangeOn'](_0x157d15),_0x28e416?null:'imageCaption');});}),_0xf71a37['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4ad6f3));const _0x6a4513=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5af977(_0x5904d5,_0x1389db){const _0x3f20e4=_0x6a4513['findIndex'](({type:_0xe95bf4,subType:_0x8f25d4})=>_0x5904d5['type']==_0xe95bf4&&_0x5904d5['subType']==_0x8f25d4),_0x525c23=_0x6a4513['findIndex'](({type:_0x45c9d6,subType:_0x5663c0})=>_0x1389db['type']==_0x45c9d6&&_0x1389db['subType']==_0x5663c0);if(_0x3f20e4<0x0||_0x525c23<0x0)return!0x1;const _0x321d2c=_0x5904d5['getFirstRange'](),_0x27badc=_0x1389db['getFirstRange']();if((0x0==_0x3f20e4||0x1==_0x3f20e4)&&0x2==_0x525c23&&_0x321d2c['isIntersecting'](_0x27badc))return!0x0;if(0x2==_0x3f20e4&&0x3==_0x525c23){const _0x55364d=_0xf71a37['_findSuggestions'](_0x321d2c,'insertion')['filter'](({suggestion:_0x71ab5a,meta:_0xcb5052})=>_0xcb5052['isOwn']&&'convertInlineImageToBlock'==_0x71ab5a['subType']);if(_0x55364d['length']>0x1&&_0x27badc['end']['isEqual'](_0x321d2c['start']))return!0x0;if(0x1==_0x55364d['length']&&(_0x321d2c['start']['isEqual'](_0x27badc['end'])||_0x321d2c['end']['isEqual'](_0x27badc['start'])))return!0x0;}if(0x3==_0x3f20e4&&0x3==_0x525c23&&_0x321d2c['start']['isBefore'](_0x27badc['start'])){const _0x877f10=_0x321d2c['end']['nodeAfter'],_0x5e5f65=_0x27badc['start']['nodeBefore'];return _0x381f07['isBlockImage'](_0x877f10)&&_0x877f10===_0x5e5f65;}return!0x1;}function _0x4ad6f3(_0x27eab3,_0x362ecb){return _0x5af977(_0x27eab3,_0x362ecb)?[_0x27eab3,_0x362ecb]:_0x5af977(_0x362ecb,_0x27eab3)?[_0x362ecb,_0x27eab3]:null;}_0x45bd3f['plugins']['has']('ImageResize')&&(_0xf71a37['enableDefaultAttributesIntegration']('resizeImage'),_0xf71a37['registerBlockAttribute']('resizedWidth'),_0xf71a37['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x172332,'FORMAT_IMAGE_SIZE'))),_0x45bd3f['plugins']['has']('ImageTextAlternativeEditing')&&(_0xf71a37['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xf71a37['registerBlockAttribute']('alt')),_0xf71a37['descriptionFactory']['registerDescriptionCallback'](_0x17af55=>{if(!!_0x6a4513['find'](({type:_0x3ae4a8,subType:_0x5d1834})=>_0x17af55['type']==_0x3ae4a8&&_0x17af55['subType']==_0x5d1834))return _0x17af55['previous']?{}:void 0x0;}),_0xf71a37['descriptionFactory']['registerDescriptionCallback'](_0x436385=>{if('insertion'==_0x436385['type']||'deletion'==_0x436385['type']){const _0x3a066e=_0x436385['getContainedElement']();if(_0x3a066e&&_0x3a066e['is']('element','caption'))return{'type':'insertion'==_0x436385['type']?'addObject':'removeObject','element':_0x3a066e,'quantity':0x1};}}),_0xf71a37['descriptionFactory']['registerDescriptionCallback'](_0x19bc27=>'formatBlock'==_0x19bc27['type']&&'convertInlineImageToBlock'==_0x19bc27['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x19bc27['type']&&'convertBlockImageToInline'==_0x19bc27['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xf71a37['descriptionFactory']['registerDescriptionCallback'](_0x3af5fc=>{if('attribute'!=_0x3af5fc['type'])return;const {data:_0x37ddc2}=_0x3af5fc;if(!_0x37ddc2||'alt'!=_0x37ddc2['key'])return;const _0x981ced=_0x37ddc2['newValue'];return _0x981ced?{'type':'format','content':o(_0x172332,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x981ced+'\x22')}:{'type':'format','content':o(_0x172332,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3391b1=this['editor'],_0x2c2d10=_0x3391b1['locale'];_0x3391b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x496db3=>{if('formatBlock'!=_0x496db3['type']&&'formatInline'!=_0x496db3['type'])return;const {data:_0x466fbc}=_0x496db3;if(_0x466fbc){if('imageTextAlternative'==_0x466fbc['commandName']){const _0x55dac6=_0x466fbc['commandParams'][0x0]['newValue'];return _0x55dac6?{'type':'format','content':o(_0x2c2d10,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x55dac6+'\x22')}:{'type':'format','content':o(_0x2c2d10,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x466fbc['commandName']){const _0x113284=_0x466fbc['commandParams'][0x0]['width'];return _0x113284?{'type':'format','content':o(_0x2c2d10,'*Set\x20image\x20width:*\x20%0',_0x113284)}:{'type':'format','content':o(_0x2c2d10,'*Reset\x20image\x20width*')};}}});}}class st extends _0x41d95f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x145a99=this['editor']['locale'],_0x591855=this['editor']['plugins']['get']('TrackChangesEditing');_0x591855['enableDefaultAttributesIntegration']('replaceImageSource'),_0x591855['registerBlockAttribute']('src'),_0x591855['descriptionFactory']['registerDescriptionCallback'](_0x408981=>{if('attribute'!=_0x408981['type'])return;const {data:_0x196eb9}=_0x408981;return _0x196eb9&&'src'==_0x196eb9['key']?_0x196eb9['newValue']&&_0x196eb9['oldValue']?{'type':'format','content':o(_0x145a99,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x100e36=this['editor']['plugins']['get']('TrackChangesEditing');_0x100e36['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x100e36['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x100e36['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x100e36['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf26d7=this['editor'],_0x35634a=_0xf26d7['locale'];_0xf26d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21bcee=>{if('formatBlock'!=_0x21bcee['type']&&'formatInline'!=_0x21bcee['type'])return;const {data:_0x19c8cb}=_0x21bcee;if(!_0x19c8cb||'replaceImageSource'!=_0x19c8cb['commandName'])return;return{'type':'format','content':o(_0x35634a,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x41d95f{['afterInit'](){const _0x2d14ab=this['editor'];if(!_0x2d14ab['plugins']['has']('ImageStyleEditing'))return;const _0x4b978b=_0x2d14ab['plugins']['get']('TrackChangesEditing'),_0x25224c=_0x2d14ab['plugins']['get']('ImageUtils'),_0x372eef={};_0x4b978b['enableCommand']('imageStyle',(_0x2be868,_0x3cd7e4)=>{const _0x2fba2f=_0x2d14ab['plugins']['get']('Users')['me'],_0x566362=_0x2d14ab['commands']['get']('imageStyle');let _0xf0e0dc=_0x25224c['getClosestSelectedImageElement'](_0x2d14ab['model']['document']['selection']),_0x3ccd90=_0x2d14ab['model']['createRangeOn'](_0xf0e0dc),_0x5c9b30=_0x566362['value'];if(_0x5c9b30==_0x3cd7e4['value'])return;const _0x516c6b={'commandName':'imageStyle','commandParams':[_0x3cd7e4],'formatGroupId':_0x13ae16()};_0x2d14ab['model']['change'](()=>{if(_0x4b978b['getSuggestions']()['filter'](_0x51defb=>_0x51defb['isInContent']&&_0x2fba2f==_0x51defb['author']&&('formatBlock'==_0x51defb['type']||'formatInline'==_0x51defb['type'])&&('imageStylePreApply'==_0x51defb['subType']||'imageStylePostApply'==_0x51defb['subType'])&&_0x51defb['getFirstRange']()['isEqual'](_0x3ccd90))['forEach'](_0x1e2c16=>_0x4b978b['discardSuggestion'](_0x1e2c16['head'])),_0xf0e0dc=_0x25224c['getClosestSelectedImageElement'](_0x2d14ab['model']['document']['selection']),_0x3ccd90=_0x2d14ab['model']['createRangeOn'](_0xf0e0dc),_0x566362['refresh'](),_0x2d14ab['commands']['get']('imageTypeInline')['refresh'](),_0x2d14ab['commands']['get']('imageTypeBlock')['refresh'](),_0x5c9b30=_0x566362['value'],_0x5c9b30!=_0x3cd7e4['value'])return _0x25224c['isInlineImage'](_0xf0e0dc)&&_0x566362['shouldConvertImageType'](_0x3cd7e4['value'],_0xf0e0dc)?(_0x2be868({..._0x3cd7e4,'setImageSizes':!0x1}),_0xf0e0dc=_0x25224c['getClosestSelectedImageElement'](_0x2d14ab['model']['document']['selection']),void _0x4b978b['markBlockFormat'](_0xf0e0dc,{..._0x516c6b,'commandReversedParams':[{'value':_0x5c9b30||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x25224c['isBlockImage'](_0xf0e0dc)?_0x4b978b['markBlockFormat'](_0xf0e0dc,_0x516c6b,[],'imageStylePostApply'):_0x4b978b['markInlineFormat'](_0x3ccd90,_0x516c6b,'imageStylePostApply'));});});for(const _0x2939df of _0x2d14ab['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x372eef[_0x2939df['name']]=_0x2939df['title']['toLowerCase']();_0x4b978b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4b978b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4b978b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4b978b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x18af41])=>{_0x25224c['setImageNaturalSizeAttributes'](_0x18af41['getContainedElement']());}),_0x4b978b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x51b281,_0x265ef8)=>{_0x4b978b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x51b281,{'commandName':_0x265ef8['commandName'],'commandParams':_0x265ef8['commandReversedParams']});}),_0x4b978b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1aed62,_0x4d9ff2){if(_0x35cd54(_0x1aed62,_0x4d9ff2))return[_0x1aed62,_0x4d9ff2];if(_0x35cd54(_0x4d9ff2,_0x1aed62))return[_0x4d9ff2,_0x1aed62];return null;});const _0x5a3c2f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x35cd54(_0x12826b,_0x2863dc){const _0x3b3ee1=_0x5a3c2f['findIndex'](({type:_0xe2f60f,subType:_0x46efdc})=>_0x12826b['type']==_0xe2f60f&&_0x12826b['subType']==_0x46efdc),_0x3b4264=_0x5a3c2f['findIndex'](({type:_0xc6cd9f,subType:_0x7f1164})=>_0x2863dc['type']==_0xc6cd9f&&_0x2863dc['subType']==_0x7f1164);if(_0x3b3ee1<0x0||_0x3b4264<0x0)return!0x1;const _0x3db4a4=_0x12826b['getFirstRange'](),_0x583a37=_0x2863dc['getFirstRange']();if((0x0==_0x3b3ee1||0x1==_0x3b3ee1)&&0x2==_0x3b4264&&_0x3db4a4['isIntersecting'](_0x583a37))return!0x0;if(0x2==_0x3b3ee1&&0x3==_0x3b4264){const _0x3a3731=_0x4b978b['_findSuggestions'](_0x3db4a4,'insertion')['filter'](({suggestion:_0x50f2cf,meta:_0x431b76})=>_0x431b76['isOwn']&&'convertInlineImageToBlock'==_0x50f2cf['subType']);if(_0x3a3731['length']>0x1&&_0x583a37['end']['isEqual'](_0x3db4a4['start']))return!0x0;if(0x1==_0x3a3731['length']&&(_0x3db4a4['start']['isEqual'](_0x583a37['end'])||_0x3db4a4['end']['isEqual'](_0x583a37['start'])))return!0x0;}if(0x3==_0x3b3ee1&&0x3==_0x3b4264&&_0x3db4a4['start']['isBefore'](_0x583a37['start'])){const _0x223865=_0x3db4a4['end']['nodeAfter'],_0x55bda6=_0x583a37['start']['nodeBefore'];return _0x25224c['isBlockImage'](_0x223865)&&_0x223865===_0x55bda6;}return!0x1;}_0x2d14ab['model']['document']['registerPostFixer'](()=>{let _0x4180b6=!0x1;const _0x16ebac=Array['from'](_0x2d14ab['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ab987,data:_0x4368c7}of _0x16ebac){const {group:_0x122b3b,type:_0x1a0879,subType:_0x5462fd,id:_0x14b702}=_0x4b978b['_splitMarkerName'](_0x5ab987);if('suggestion'==_0x122b3b&&_0x4b978b['hasSuggestion'](_0x14b702)){if('formatBlock'==_0x1a0879&&('imageStylePreApply'==_0x5462fd||'imageStylePostApply'==_0x5462fd)){const _0x319a10=_0x4b978b['getSuggestion'](_0x14b702);if(_0x4368c7['newRange']){const _0x19a66f=_0x319a10['getFirstRange']()['getContainedElement']();if(_0x25224c['isBlockImage'](_0x19a66f))continue;_0x4b978b['discardSuggestion'](_0x319a10),_0x4180b6=!0x0;}}if('insertion'==_0x1a0879&&'imageCaption'==_0x5462fd&&!_0x4368c7['newRange']){const _0x4dab71=_0x4b978b['getSuggestion'](_0x14b702);_0x4dab71['next']&&_0x4dab71['next']['isInContent']&&(_0x4b978b['discardSuggestion'](_0x4dab71['next']),_0x4180b6=!0x0);}}}return _0x4180b6;}),this['_registerLegacyDescription'](_0x372eef);}['_registerLegacyDescription'](_0x196906){const _0x1f571e=this['editor'],_0x3a92f5=_0x1f571e['locale'];_0x1f571e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x367643=>{if('formatBlock'!=_0x367643['type']&&'formatInline'!=_0x367643['type'])return;const {data:_0x149913}=_0x367643;if(!_0x149913||'imageStyle'!=_0x149913['commandName'])return;const _0x5019b6=_0x149913['commandParams'][0x0]['value'];return _0x2434b7('side'===_0x5019b6?o(_0x3a92f5,'FORMAT_SIDE_IMAGE'):_0x196906[_0x5019b6]||_0x5019b6);function _0x2434b7(_0x151d5b){return{'type':'format','content':o(_0x3a92f5,'*Format:*\x20%0',_0x151d5b)};}});}}class ot extends _0x41d95f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x524fff){super(_0x524fff),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x49d17e=this['editor'],_0x3b39d2=_0x49d17e['commands']['get']('importWord'),_0x59181f=_0x49d17e['commands']['get']('trackChanges');_0x3b39d2&&(_0x3b39d2['on']('execute',(_0x5a775d,[,_0xbd3baa])=>{this['_trackChangesValueDuringImport']=_0x59181f['value'],_0xbd3baa['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3b39d2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3b39d2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x59181f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x49d17e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x466798,_0x33038b){const {suggestions:_0x197f47}=_0x33038b,_0x21c766=this['editor']['commands']['get']('trackChanges'),_0x1bd8e7=_0x21c766['value'];this['_trackChangesValueDuringImport']!==_0x1bd8e7&&(_0x21c766['execute'](),this['_trackChangesExecuted']=!0x0),_0x197f47&&_0x197f47['forEach'](({id:_0x9e368c,type:_0x21ae54,author:_0x40f6c3,created_at:_0x468c9a})=>{const _0x53265c={'id':_0x9e368c,'type':_0x21ae54,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x40f6c3,'createdAt':_0x468c9a?new Date(_0x468c9a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x53265c);});}}class rt extends _0x41d95f{['afterInit'](){const _0x51e5b9=this['editor'],_0x2eb641=_0x51e5b9['plugins']['get']('TrackChangesEditing');if(_0x51e5b9['plugins']['has']('IndentEditing')&&(_0x2eb641['enableCommand']('indent'),_0x2eb641['enableCommand']('outdent')),_0x51e5b9['plugins']['has']('IndentBlock')){for(const _0x453f79 of['indentBlock','outdentBlock'])_0x2eb641['enableDefaultAttributesIntegration'](_0x453f79);}const _0x4cfa91=_0x51e5b9['locale'];_0x2eb641['registerBlockAttribute']('blockIndent'),_0x2eb641['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4cfa91,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ba6d3=this['editor'],_0x1e6f7e=_0x4ba6d3['locale'],_0xad11ad=_0x4ba6d3['plugins']['get']('TrackChangesEditing');_0xad11ad['descriptionFactory']['registerDescriptionCallback'](_0x5bf6f1=>{if('formatBlock'!=_0x5bf6f1['type'])return;const {data:_0x38da57}=_0x5bf6f1;if(!_0x38da57)return;if('indentBlock'!=_0x38da57['commandName']&&'outdentBlock'!=_0x38da57['commandName'])return;const _0x4135d8=_0x5bf6f1['getItems']()[0x0],_0x30b01c=_0xad11ad['descriptionFactory']['getItemLabel'](_0x4135d8);return'indentBlock'==_0x38da57['commandName']?{'type':'format','content':o(_0x1e6f7e,'*Indent:*\x20%0',_0x30b01c)}:'outdentBlock'==_0x38da57['commandName']?{'type':'format','content':o(_0x1e6f7e,'*Outdent:*\x20%0',_0x30b01c)}:void 0x0;});}}class at extends _0x41d95f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x41d95f{['afterInit'](){const _0x163723=this['editor'];if(!_0x163723['plugins']['has']('LinkEditing'))return;const _0x11ba17=_0x163723['plugins']['get']('TrackChangesEditing'),_0x40990c=_0x163723['commands']['get']('link');_0x11ba17['enableDefaultAttributesIntegration']('link'),_0x11ba17['enableDefaultAttributesIntegration']('unlink'),_0x11ba17['registerInlineAttribute']('linkHref');for(const _0x286b62 of _0x40990c['manualDecorators'])_0x11ba17['registerInlineAttribute'](_0x286b62['id']),_0x11ba17['descriptionFactory']['registerAttributeLabel'](_0x286b62['id'],'link\x20('+_0x286b62['label']['toLowerCase']()+')');_0x11ba17['descriptionFactory']['registerDescriptionCallback'](_0x2388d8=>{if('attribute'!=_0x2388d8['type'])return;const {data:_0x57cc20}=_0x2388d8;if(!_0x57cc20||'linkHref'!=_0x57cc20['key'])return;const _0x1a56f0=_0x57cc20['newValue'],_0x2152ec=_0x163723['locale'];return{'type':'format','content':null==_0x1a56f0?o(_0x2152ec,'*Remove\x20link*'):o(_0x2152ec,'*Set\x20link:*\x20%0','\x22'+_0x1a56f0+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f7d59=this['editor'],_0xe059d0=_0x3f7d59['locale'];_0x3f7d59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd00dbd=>{if('formatInline'!=_0xd00dbd['type'])return;const {data:_0x4c7130}=_0xd00dbd;if(_0x4c7130){if('link'==_0x4c7130['commandName']){const _0x2c1069=_0x4c7130['commandParams'][0x0];return{'type':'format','content':o(_0xe059d0,'*Set\x20link:*\x20%0','\x22'+_0x2c1069+'\x22')};}return'unlink'==_0x4c7130['commandName']?{'type':'format','content':o(_0xe059d0,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x41d95f{['afterInit'](){const _0x1510e3=this['editor'],_0x367e7d=_0x1510e3['locale'];if(!_0x1510e3['plugins']['has']('LegacyListEditing'))return;const _0x244075=_0x1510e3['plugins']['get']('TrackChangesEditing'),_0x168fe6=_0x1510e3['plugins']['has']('LegacyTodoListEditing');function _0x458694(_0x41d09f){return()=>{const _0xdda1f=_0x1510e3['model']['document']['selection'],_0x55a6df=_0x1510e3['commands']['get'](_0x41d09f);if(_0x55a6df['value'])return void _0x1510e3['execute']('paragraph',{});const _0x35d188=_0x41d09f['slice'](0x0,-0x4),_0x295e02=function(_0x5a62ac,_0x3d014e,_0x15c9ad){let _0x57dc5b=Array['from'](_0x5a62ac)['filter'](_0x2ab704=>function(_0x96e260,_0xc68593){return _0xc68593['checkChild'](_0x96e260['parent'],'listItem')&&!_0xc68593['isObject'](_0x96e260);}(_0x2ab704,_0x15c9ad));_0x57dc5b=_0x57dc5b['filter'](_0x51c5a7=>!_0x51c5a7['is']('element','listItem')||_0x51c5a7['getAttribute']('listType')!=_0x3d014e);const _0x5709ac=new Set();for(const _0x39e95b of _0x57dc5b)_0x39e95b['is']('element','listItem')?_0x5709ac['add'](me(_0x39e95b)):_0x5709ac['add'](_0x39e95b);return Array['from'](_0x5709ac);}(_0xdda1f['getSelectedBlocks'](),_0x35d188,_0x1510e3['model']['schema']);_0x1510e3['model']['change'](()=>{for(const _0xd3831e of _0x295e02)_0x244075['markBlockFormat'](_0xd3831e,{'commandName':_0x41d09f,'commandParams':[{'forceValue':!_0x55a6df['value']}],'formatGroupId':'blockName'},fe(_0xd3831e));});};}function _0x2c87e2(_0x4e77eb){return()=>{const _0x40dd5a=function(_0x1177c5){let _0x56af37=Array['from'](_0x1177c5);const _0x21d3c5=_0x56af37['findIndex'](_0x2e3470=>'listItem'!=_0x2e3470['name']);return _0x21d3c5>-0x1&&(_0x56af37=_0x56af37['slice'](0x0,_0x21d3c5)),_0x56af37;}(_0x1510e3['model']['document']['selection']['getSelectedBlocks']()),_0x512427=_0x1510e3['model']['createRange'](_0x1510e3['model']['createPositionAt'](_0x40dd5a[0x0],'before'),_0x1510e3['model']['createPositionAt'](_0x40dd5a[_0x40dd5a['length']-0x1],'end'));_0x1510e3['model']['change'](()=>{_0x244075['markBlockFormat'](_0x512427,{'commandName':_0x4e77eb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x52b4cc){const _0x2006be=new Set();for(const _0x29a25f of _0x52b4cc){let _0x3fbb39=_0x29a25f['nextSibling'];for(;_0x3fbb39&&_0x3fbb39['getAttribute']('listIndent')>_0x29a25f['getAttribute']('listIndent');)_0x2006be['add'](_0x3fbb39),_0x3fbb39=_0x3fbb39['nextSibling'];}return Array['from'](_0x2006be);}(_0x40dd5a));});};}_0x244075['enableCommand']('numberedList',_0x458694('numberedList')),_0x244075['enableCommand']('bulletedList',_0x458694('bulletedList')),_0x168fe6&&_0x244075['enableCommand']('todoList',_0x458694('todoList')),_0x244075['enableCommand']('indentList',_0x2c87e2('indentList')),_0x244075['enableCommand']('outdentList',_0x2c87e2('outdentList')),_0x168fe6&&_0x244075['enableCommand']('checkTodoList',()=>{const _0x154108=_0x1510e3['commands']['get']('checkTodoList'),_0x4c49c1=Array['from'](_0x154108['_selectedElements']);_0x4c49c1['filter'](_0x13dd9b=>_0x13dd9b['getAttribute']('todoListChecked')!=_0x154108['value']),_0x1510e3['model']['change'](()=>{for(const _0x5dfe68 of _0x4c49c1)_0x244075['markBlockFormat'](_0x5dfe68,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x154108['value']}]});});}),_0x244075['descriptionFactory']['registerElementLabel']('listItem',_0x1edbd9=>o(_0x367e7d,'ELEMENT_LIST_ITEM',_0x1edbd9)),_0x244075['descriptionFactory']['registerDescriptionCallback'](_0x4fdfe7=>{if('formatBlock'!=_0x4fdfe7['type']&&'formatInline'!=_0x4fdfe7['type'])return;const {data:_0x1c6d66}=_0x4fdfe7;if(_0x1c6d66){if('numberedList'==_0x1c6d66['commandName']||'bulletedList'==_0x1c6d66['commandName']||'todoList'==_0x1c6d66['commandName'])switch(_0x1c6d66['commandName']['replace']('List','')){case'bulleted':return _0x212b44(o(_0x367e7d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x212b44(o(_0x367e7d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x212b44(o(_0x367e7d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1c6d66['commandName'])return{'type':'format','content':o(_0x367e7d,'*Indent:*\x20%0',o(_0x367e7d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1c6d66['commandName'])return{'type':'format','content':o(_0x367e7d,'*Outdent:*\x20%0',o(_0x367e7d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1c6d66['commandName'])return _0x1c6d66['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x367e7d,'*Check\x20item*')}:{'type':'format','content':o(_0x367e7d,'*Uncheck\x20item*')};}function _0x212b44(_0x3398a9){return{'type':'format','content':o(_0x367e7d,'*Change\x20to:*\x20%0',_0x3398a9)};}});}}function me(_0x2c7dd4){const _0x41d4b3=_0x2c7dd4['getAttribute']('listIndent');if(0x0==_0x41d4b3)return _0x2c7dd4;let _0x4178a0=_0x2c7dd4;for(;_0x2c7dd4['previousSibling']&&_0x2c7dd4['previousSibling']['is']('element','listItem');){const _0x4d8345=_0x2c7dd4['previousSibling']['getAttribute']('listIndent');if(_0x4d8345==_0x41d4b3)_0x4178a0=_0x2c7dd4['previousSibling'];else{if(_0x4d8345<_0x41d4b3)break;}_0x2c7dd4=_0x2c7dd4['previousSibling'];}return _0x4178a0;}function fe(_0x45878e){const _0xcfc691=[];if(_0x45878e['is']('element','listItem')&&_0x45878e['getAttribute']('listIndent')>0x0){let _0x2bd917=_0x45878e['nextSibling'];for(;_0x2bd917&&'listItem'==_0x2bd917['name']&&_0x2bd917['getAttribute']('listIndent')==_0x45878e['getAttribute']('listIndent');)_0xcfc691['push'](_0x2bd917),_0x2bd917=_0x2bd917['nextSibling'];}return _0xcfc691;}class K extends _0x41d95f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x295692=this['editor']['config']['get']('list.properties'),_0x21565=this['editor']['plugins']['get']('TrackChangesEditing');_0x295692['styles']&&_0x21565['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x295692['reversed']&&_0x21565['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x295692['startIndex']&&_0x21565['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x21565['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1a8130,_0x306838={}){const _0x1bdb10=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bfac2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1bdb10['markMultiRangeBlockFormat'](_0x1bfac2,{'commandName':'listStyle','commandParams':[{'type':_0x306838['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3edbce,_0x360463={}){const _0x3a5eac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36306c=this['_getSuggestionBlocks'](_0x28e448=>_0x28e448['is']('element','listItem')&&'numbered'===_0x28e448['getAttribute']('listType'));if(_0x36306c['length']<0x1)return;const _0x1b5eba=_0x36306c['map'](_0x3ef637=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3ef637,'before'),this['editor']['model']['createPositionAt'](_0x3ef637,0x0)));this['editor']['model']['change'](()=>{_0x3a5eac['markMultiRangeBlockFormat'](_0x1b5eba,{'commandName':'listReversed','commandParams':[{'reversed':_0x360463['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2a7ac,_0x59a46e={}){const _0x4e8623=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39eed8=this['_getSuggestionBlocks'](_0x262650=>_0x262650['is']('element','listItem')&&'numbered'===_0x262650['getAttribute']('listType'));if(_0x39eed8['length']<0x1)return;const _0x2b5d5a=_0x39eed8['map'](_0x40568f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40568f,'before'),this['editor']['model']['createPositionAt'](_0x40568f,0x0)));this['editor']['model']['change'](()=>{_0x4e8623['markMultiRangeBlockFormat'](_0x2b5d5a,{'commandName':'listStart','commandParams':[{'startIndex':_0x59a46e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xc9c628){if('formatBlock'!=_0xc9c628['type']&&'formatInline'!=_0xc9c628['type'])return;const _0x273d14=this['editor']['locale'],{data:_0x23031b}=_0xc9c628;if(!_0x23031b)return;let _0x51fa59,_0x5eaeee;switch(_0x23031b['commandName']){case'listStyle':_0x51fa59='*Change\x20to:*\x20%0',_0x5eaeee={'type':'format','content':o(_0x273d14,_0x51fa59,o(_0x273d14,this['_getTranslationKeyForListStyle'](_0x23031b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x51fa59=_0x23031b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5eaeee={'type':'format','content':o(_0x273d14,_0x51fa59)};break;case'listStart':_0x51fa59='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5eaeee={'type':'format','content':o(_0x273d14,_0x51fa59,_0x23031b['commandParams'][0x0]['startIndex'])};}return _0x5eaeee;}['_getSuggestionBlocksForListStyle'](){const _0x3ca6ac=this['editor']['plugins']['get']('LegacyListUtils');let _0x5ca0f6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5ca0f6[0x0]?.['is']('element','listItem')&&_0x5ca0f6['unshift'](..._0x3ca6ac['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5ca0f6[_0x5ca0f6['length']-0x1]?.['is']('element','listItem')&&_0x5ca0f6['push'](..._0x3ca6ac['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5ca0f6=[...new Set(_0x5ca0f6)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5ca0f6=_0x5ca0f6['filter'](_0x3ccdc6=>_0x3ccdc6['is']('element','listItem'))),_0x5ca0f6;}['_getSuggestionBlocks'](_0x1fcc54){const _0x5db629=this['editor']['plugins']['get']('LegacyListUtils');let _0x38fa5f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1fcc54)['map'](_0x4d902c=>{const _0x444abb=this['editor']['model']['createPositionAt'](_0x4d902c,0x0);return[..._0x5db629['getSiblingNodes'](_0x444abb,'backward'),..._0x5db629['getSiblingNodes'](_0x444abb,'forward')];})['flat']();return _0x38fa5f=[...new Set(_0x38fa5f)],_0x38fa5f;}['_getTranslationKeyForListStyle'](_0x2a48cd){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2a48cd)||'default')['toUpperCase']()+'_LIST_'+_0x2a48cd['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x41d95f{['afterInit'](){const _0x2982fa=this['editor'];if(!_0x2982fa['plugins']['has']('MediaEmbedEditing'))return;const _0x5d159a=_0x2982fa['plugins']['get']('TrackChangesEditing'),_0x20d3ac=_0x2982fa['locale'];_0x5d159a['enableCommand']('mediaEmbed'),_0x5d159a['descriptionFactory']['registerElementLabel']('media',_0x5f231c=>o(_0x20d3ac,'ELEMENT_MEDIA',_0x5f231c)),_0x2982fa['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xecab1c,{writer:_0x319ea2,options:_0x57b09d})=>{if(_0x57b09d['showSuggestionHighlights'])return _0x319ea2['createEmptyElement']('div');},'converterPriority':'high'}),_0x2982fa['data']['downcastDispatcher']['on']('attribute:url:media',(_0x563b66,_0x4e99d9,_0x5913f4)=>{_0x5913f4['options']['showSuggestionHighlights']&&_0x563b66['stop']();},{'priority':'high'});}}class gt extends _0x41d95f{['afterInit'](){const _0x5cc739=this['editor'];_0x5cc739['plugins']['has']('MentionEditing')&&_0x5cc739['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x41d95f{['afterInit'](){const _0x1a63fb=this['editor'],_0x575ed1=_0x1a63fb['plugins']['get']('TrackChangesEditing');_0x1a63fb['plugins']['has']('MultiLevelList')&&(_0x575ed1['enableDefaultAttributesIntegration']('multiLevelList'),_0x575ed1['registerBlockAttribute']('listMarkerStyle'),_0x575ed1['descriptionFactory']['registerDescriptionCallback'](_0x51afc1=>this['handleDescriptions'](_0x51afc1)));}['handleDescriptions'](_0x271034){const _0x27326b=this['editor']['locale'],{data:_0x544573}=_0x271034,_0x414695={'type':'format','content':''};if(_0x544573&&'listMarkerStyle'==_0x544573['key']){if(!_0x544573['oldValue'])return{'type':'format','content':o(_0x27326b,'*Set\x20format:*\x20%0',o(_0x27326b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x544573['newValue']+')'};if(!_0x544573['newValue']){let _0x50e95a=_0x271034['head'];for(;_0x50e95a;){if(_0x50e95a['data']&&'listType'==_0x50e95a['data']['key']&&_0x50e95a['data']['newValue'])return _0x414695;_0x50e95a=_0x50e95a['next'];}return{'type':'format','content':o(_0x27326b,'*Remove\x20format:*\x20%0',o(_0x27326b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x544573['oldValue']+')'};}}}}class mt extends _0x41d95f{['afterInit'](){const _0x14be8a=this['editor'];if(!_0x14be8a['plugins']['has']('PageBreakEditing'))return;_0x14be8a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5b009d=_0x14be8a['plugins']['get']('TrackChangesEditing'),_0x113596=_0x14be8a['locale'];_0x5b009d['descriptionFactory']['registerElementLabel']('pageBreak',_0x3b1da5=>o(_0x113596,'ELEMENT_PAGE_BREAK',_0x3b1da5));}}class dt extends _0x41d95f{['afterInit'](){const _0x178fcb=this['editor'];if(!_0x178fcb['plugins']['has']('Paragraph'))return;const _0x557449=_0x178fcb['locale'],_0x2e583a=_0x178fcb['plugins']['get']('TrackChangesEditing');_0x2e583a['descriptionFactory']['registerElementLabel']('paragraph',_0x380096=>o(_0x557449,'ELEMENT_PARAGRAPH',_0x380096)),_0x2e583a['enableDefaultAttributesIntegration']('paragraph'),_0x2e583a['enableCommand']('insertParagraph'),_0x178fcb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x178fcb),{'priority':'highest'}),_0x178fcb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x23f679,_0x42c5c1,_0x2bab52)=>{_0x2bab52['options']['showSuggestionHighlights']&&nr(_0x178fcb,{'showActiveMarker':!0x1})(_0x23f679,_0x42c5c1,_0x2bab52);},{'priority':'highest'});const _0x1ef8c2=_0x2e583a['descriptionFactory'];_0x1ef8c2['registerDescriptionCallback'](_0x152e80=>{if('insertion'!==_0x152e80['type'])return;const {start:_0x1eb681,end:_0x20d8f7}=_0x152e80['getFirstRange']();if(!_0x1eb681['isTouching'](_0x20d8f7)||!_0x1eb681['nodeAfter'])return;const _0xa9042c=_0x178fcb['model']['schema'],_0x36b327=_0x1eb681['nodeAfter'];return _0xa9042c['isBlock'](_0x36b327)&&!_0xa9042c['isLimit'](_0x36b327)&&_0xa9042c['checkChild'](_0x36b327,'$text')?{'type':'insertion','content':o(_0x557449,'*Insert:*\x20%0',_0x1ef8c2['getItemLabel'](_0x36b327,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a005b=this['editor'],_0x3c3abe=_0x5a005b['locale'];_0x5a005b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1424ec=>{if('formatBlock'!=_0x1424ec['type'])return;const {data:_0x4813ff}=_0x1424ec;return _0x4813ff&&'paragraph'==_0x4813ff['commandName']?{'type':'format','content':o(_0x3c3abe,'*Change\x20to:*\x20%0',o(_0x3c3abe,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1d4038,{showActiveMarker:_0x3e593f=!0x0}={}){return(_0x4cea4b,_0x20315c,_0x580b95)=>{const _0x4c7458=_0x1d4038['plugins']['get']('TrackChangesEditing'),_0x5e4222=_0x20315c['markerRange']['start'],_0x22bcda=_0x20315c['markerRange']['end'],_0xc78103=_0x1d4038['model']['schema'];if(!_0x5e4222['isTouching'](_0x22bcda)||!_0x5e4222['nodeAfter'])return;const _0x2ef793=_0x5e4222['nodeAfter'];if(_0xc78103['isBlock'](_0x2ef793)&&!_0xc78103['isLimit'](_0x2ef793)&&_0xc78103['checkChild'](_0x2ef793,'$text')){if(!_0x580b95['consumable']['consume'](_0x20315c['markerRange'],_0x4cea4b['name']))return;const _0x1a9e4e=_0x580b95['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x46a75b=_0x580b95['mapper']['toViewPosition'](_0x22bcda);_0x3e593f&&_0x4c7458['activeMarkers']['includes'](_0x20315c['markerName'])&&_0x580b95['writer']['addClass']('ck-suggestion-marker--active',_0x1a9e4e),_0x580b95['writer']['insert'](_0x46a75b,_0x1a9e4e),_0x580b95['mapper']['bindElementToMarker'](_0x1a9e4e,_0x20315c['markerName']);}};}class pt extends _0x41d95f{['afterInit'](){const _0x4dc482=this['editor'];if(!_0x4dc482['plugins']['has']('RemoveFormatEditing'))return;_0x4dc482['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x467190=this['editor'];_0x467190['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32ba9c=>{if('formatBlock'!=_0x32ba9c['type']&&'formatInline'!=_0x32ba9c['type'])return;const {data:_0x4a9c4d}=_0x32ba9c;return _0x4a9c4d&&'removeFormat'==_0x4a9c4d['commandName']?{'type':'format','content':o(_0x467190['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x41d95f{['afterInit'](){const _0x2e8767=this['editor'];if(!_0x2e8767['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5e4a09=_0x2e8767['plugins']['get']('TrackChangesEditing');_0x5e4a09['enableCommand']('goToPreviousRestrictedEditingException'),_0x5e4a09['enableCommand']('goToNextRestrictedEditingException');const _0x4c00cd=_0x2e8767['plugins']['get']('RestrictedEditingModeEditing');_0x4c00cd['enableCommand']('trackChanges'),_0x4c00cd['enableCommand']('acceptSuggestion'),_0x4c00cd['enableCommand']('discardSuggestion'),_0x4c00cd['enableCommand']('acceptAllSuggestions'),_0x4c00cd['enableCommand']('discardAllSuggestions'),_0x4c00cd['enableCommand']('acceptSelectedSuggestions'),_0x4c00cd['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x41d95f{static get['requires'](){return[_0x47f0e0];}['init'](){const _0x41535f=this['editor'],_0x443d41=_0x41535f['plugins']['get']('TrackChangesEditing');_0x443d41['enableCommand']('shiftEnter'),_0x41535f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x41535f),{'priority':'high'}),_0x41535f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x41535f),{'priority':'high'}),_0x41535f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x22a40e,_0xde448f,_0x5667be)=>{_0x5667be['options']['showSuggestionHighlights']&&de(_0x41535f,{'showActiveMarker':!0x1})(_0x22a40e,_0xde448f,_0x5667be);}),_0x443d41['descriptionFactory']['registerElementLabel']('softBreak',_0xa3900c=>o(_0x41535f['locale'],'ELEMENT_LINE_BREAK',_0xa3900c));}}function de(_0x491dff,{showActiveMarker:_0x545f01=!0x0}={}){return(_0x3e0544,_0x2fd865,_0x1079a8)=>{const _0xb94b24=_0x491dff['plugins']['get']('TrackChangesEditing');if(!_0x1079a8['consumable']['test'](_0x2fd865['markerRange'],_0x3e0544['name']))return;const _0x43922c=_0x491dff['model'];for(const _0xe048c1 of _0x2fd865['markerRange']['getItems']()){if(!_0xe048c1['is']('element','softBreak'))continue;const _0x726c97='deletion'==_0x2fd865['markerName']['split'](':')[0x1]?'merge':'split',_0x4492f8=_0x1079a8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x726c97}),_0x130aab=_0x1079a8['mapper']['toViewPosition'](_0x43922c['createPositionBefore'](_0xe048c1));_0x545f01&&_0xb94b24['activeMarkers']['includes'](_0x2fd865['markerName'])&&_0x1079a8['writer']['addClass']('ck-suggestion-marker--active',_0x4492f8),_0x1079a8['writer']['insert'](_0x130aab,_0x4492f8),_0x1079a8['mapper']['bindElementToMarker'](_0x4492f8,_0x2fd865['markerName']);}};}class wt extends _0x41d95f{['afterInit'](){const _0x3332ea=this['editor'],_0x4e0965=_0x3332ea['model'],_0x443c2b=_0x3332ea['locale'];if(!_0x3332ea['plugins']['has']('StandardEditingModeEditing'))return;const _0x30cfa9=_0x3332ea['plugins']['get']('TrackChangesEditing'),_0x31f5a5='restrictedEditingException',_0x172f31=_0x3332ea['commands']['get'](_0x31f5a5);_0x30cfa9['enableCommand'](_0x31f5a5,(_0xc4bcc5,_0x144be4={})=>{const _0x2a4f45=_0x4e0965['document']['selection'];if(_0x2a4f45['isCollapsed'])return void _0xc4bcc5(_0x144be4);const _0x3919d6=void 0x0!==_0x144be4['forceValue']?_0x144be4['forceValue']:!_0x172f31['value'];_0x4e0965['change'](()=>{const _0x1186fc=Array['from'](_0x2a4f45['getRanges']());for(const _0x21d0dc of _0x1186fc){const _0x1625e8=_0x3919d6?[_0x21d0dc]:io(_0x31f5a5,_0x21d0dc,_0x4e0965);for(const _0x499326 of _0x1625e8)_0x30cfa9['markInlineFormat'](_0x499326,{'commandName':_0x31f5a5,'commandParams':[{'forceValue':_0x3919d6}]});}});}),_0x30cfa9['descriptionFactory']['registerDescriptionCallback'](_0x876b6a=>{if('formatBlock'!=_0x876b6a['type']&&'formatInline'!=_0x876b6a['type'])return;const {data:_0x7a60c8}=_0x876b6a;return _0x7a60c8&&_0x7a60c8['commandName']==_0x31f5a5?_0x7a60c8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x443c2b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x443c2b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x41d95f{['afterInit'](){const _0x484f3c=this['editor'];if(!_0x484f3c['plugins']['has']('Style')||!_0x484f3c['plugins']['has']('DataSchema'))return;const _0x1338ae=_0x484f3c['plugins']['get']('TrackChangesEditing'),_0xf3d520=_0x484f3c['locale'],_0x252511=_0x484f3c['config']['get']('style')||{},_0x3146ae=_0x484f3c['plugins']['get']('GeneralHtmlSupport'),_0xabb4f6=_0x484f3c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x484f3c['plugins']['get']('DataSchema'),_0x252511['definitions']);_0x1338ae['enableDefaultAttributesIntegration']('style');const _0x25578c=new Set();for(const _0x39d6f0 of _0xabb4f6['block']){const _0x388997=_0x3146ae['getGhsAttributeNameForElement'](_0x39d6f0['element']);_0x25578c['add'](_0x388997);}const _0x348d2d=new Set();for(const _0x464071 of _0xabb4f6['inline']){const _0x36588b=_0x3146ae['getGhsAttributeNameForElement'](_0x464071['element']);_0x348d2d['add'](_0x36588b);for(const _0x2ea7eb of _0x464071['ghsAttributes'])_0x348d2d['add'](_0x2ea7eb);}for(const _0x2b93e2 of _0x25578c)_0x1338ae['registerBlockAttribute'](_0x2b93e2),_0x1338ae['descriptionFactory']['registerAttributeLabel'](_0x2b93e2,o(_0xf3d520,'FORMAT_STYLE'));for(const _0x15bc06 of _0x348d2d)_0x1338ae['registerInlineAttribute'](_0x15bc06),_0x1338ae['descriptionFactory']['registerAttributeLabel'](_0x15bc06,o(_0xf3d520,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fc545=this['editor'],_0x143c2a=_0x4fc545['locale'];_0x4fc545['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb3a1ab=>{if('formatBlock'!=_0xb3a1ab['type']&&'formatInline'!=_0xb3a1ab['type'])return;const {data:_0xa5cd4e}=_0xb3a1ab;return _0xa5cd4e&&'style'===_0xa5cd4e['commandName']?_0xa5cd4e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x143c2a,'*Set\x20format:*\x20%0',_0xa5cd4e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x143c2a,'*Remove\x20format:*\x20%0',_0xa5cd4e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x41d95f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2148de){super(_0x2148de),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5f61be=this['editor'],_0xe7b6a1=_0x5f61be['model']['document']['selection'];if(!_0x5f61be['plugins']['has']('TableEditing'))return;const _0x501f36=_0x5f61be['locale'],_0x101416=_0x5f61be['plugins']['get']('TrackChangesEditing'),_0x533485=_0x5f61be['plugins']['get']('TableUtils');_0x101416['descriptionFactory']['registerElementLabel']('table',_0x1b67e2=>o(_0x501f36,'ELEMENT_TABLE',_0x1b67e2)),this['_setupColumnsRowsFixing'](),_0x101416['enableCommand']('insertTable'),_0x101416['enableCommand']('selectTableRow'),_0x101416['enableCommand']('selectTableColumn');for(const _0x137677 of['insertTableRowAbove','insertTableRowBelow']){const _0x5dfb1d=_0x5f61be['commands']['get'](_0x137677);_0x101416['enableCommand'](_0x137677,_0x5d9358=>{_0x5f61be['model']['change'](_0x193858=>{_0x5d9358();const _0x50892b='above'===_0x5dfb1d['order'],_0x4ba2a1=_0x533485['getSelectionAffectedTableCells'](_0xe7b6a1),_0x54edb5=_0x533485['getRowIndexes'](_0x4ba2a1),_0x1e3878=_0x50892b?_0x54edb5['first']-0x1:_0x54edb5['last']+0x1,_0x460a6e=_0x4ba2a1[0x0]['findAncestor']('table'),_0x7f9707=_0x533485['createTableWalker'](_0x460a6e,{'startRow':_0x1e3878,'endRow':_0x1e3878}),_0x5297b6=Array['from'](_0x7f9707)['map'](_0x6cb25=>_0x193858['createRangeOn'](_0x6cb25['cell']));_0x101416['markMultiRangeInsertion'](_0x5297b6,'tableRow');});});}for(const _0x3db8a1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3afd62=_0x5f61be['commands']['get'](_0x3db8a1);_0x101416['enableCommand'](_0x3db8a1,_0x4c98da=>{_0x5f61be['model']['change'](_0x1e9ffd=>{_0x4c98da();const _0x3a2319='left'===_0x3afd62['order'],_0x3b9586=_0x533485['getSelectionAffectedTableCells'](_0xe7b6a1),_0x346798=_0x533485['getColumnIndexes'](_0x3b9586),_0x8910a1=_0x3a2319?_0x346798['first']-0x1:_0x346798['last']+0x1,_0x32cd74=_0x3b9586[0x0]['findAncestor']('table'),_0x1ec527=_0x533485['createTableWalker'](_0x32cd74,{'startRow':0x0,'column':_0x8910a1,'includeAllSlots':!0x1}),_0x3c2945=Array['from'](_0x1ec527)['map'](_0x1c8842=>_0x1e9ffd['createRangeOn'](_0x1c8842['cell']));_0x101416['markMultiRangeInsertion'](_0x3c2945,'tableColumn');});});}for(const _0x9aa00e of['removeTableRow','removeTableColumn']){const _0x12f66b=_0x9aa00e['substr'](0xb),_0xa15f09=_0x12f66b['toLowerCase'](),_0x34838c=_0xa15f09['substr'](0x0,0x3)+'span',_0x1f8eeb='table'+_0x12f66b,_0x5b0fc5='min'+_0x12f66b,_0x30b25b='max'+_0x12f66b;_0x101416['enableCommand'](_0x9aa00e,()=>{_0x5f61be['model']['change'](_0x336f5e=>{const _0x15104b=_0x533485['getSelectionAffectedTableCells'](_0xe7b6a1),_0x19bf29=_0x15104b[0x0]['findAncestor']('table');let _0x514e9f;if('removeTableRow'==_0x9aa00e){const _0x13492=_0x533485['getRowIndexes'](_0x15104b);_0x514e9f={'startRow':_0x13492['first'],'endRow':_0x13492['last'],'includeAllSlots':!0x0};}else{const _0x4aa76f=_0x533485['getColumnIndexes'](_0x15104b);_0x514e9f={'startColumn':_0x4aa76f['first'],'endColumn':_0x4aa76f['last'],'includeAllSlots':!0x0};}const _0x399365=_0x533485['createTableWalker'](_0x19bf29,_0x514e9f),_0x2a3698=Array['from'](_0x399365)['map'](({cell:_0xfa55bb})=>_0xfa55bb),_0x158ad8=Ee(_0x2a3698['filter'](_0x1a9734=>_0x1a9734['hasAttribute'](_0x34838c))),_0x190863=Ee(_0x2a3698['filter'](_0x55e781=>!_0x55e781['hasAttribute'](_0x34838c)))['map'](_0x58fe76=>_0x336f5e['createRangeOn'](_0x58fe76)),_0x16a4e7=_0x101416['markMultiRangeDeletion'](_0x190863,_0x1f8eeb);if(_0x16a4e7&&('tableRow'==_0x16a4e7['subType']||'tableColumn'==_0x16a4e7['subType'])){const _0x4f97ea=this['_getSuggestionCoords'](_0x16a4e7);for(const _0x412317 of _0x158ad8){const _0x529e61=_0x336f5e['createRangeOn'](_0x412317),_0x22feb8=_0x533485['getCellLocation'](_0x412317),_0x12685f=_0x412317['getAttribute'](_0x34838c)-0x1,_0x436dab=_0x4f97ea[_0x5b0fc5],_0x18413e=_0x4f97ea[_0x30b25b];_0x436dab<=_0x22feb8[_0xa15f09]&&_0x22feb8[_0xa15f09]+_0x12685f<=_0x18413e&&_0x16a4e7['addRange'](_0x529e61);}}});});}function _0x47ccce(_0x4a6bcf){const _0x403fbe=Array['from'](_0xe7b6a1['getRanges']())['map'](_0x2378e5=>_0x25d98f['fromRange'](_0x2378e5));_0x5f61be['model']['change'](_0x573c91=>{const _0x3fdf79=_0x573c91['batch'];_0x4a6bcf=_0x4a6bcf['filter'](_0x5a4fa7=>'$graveyard'!=_0x5a4fa7['root']['rootName']),_0x573c91['setSelection'](_0x4a6bcf),_0x5f61be['commands']['get']('removeTableRow')['refresh'](),_0x5f61be['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5f61be['model']['enqueueChange'](()=>{_0x5f61be['model']['enqueueChange'](_0x3fdf79,_0x37c4eb=>{const _0xa403f8=_0x403fbe['filter'](_0x21e197=>'$graveyard'!=_0x21e197['root']['rootName']);_0xa403f8['length']>0x0&&_0x37c4eb['setSelection'](_0xa403f8);for(const _0x5b8e4f of _0x403fbe)_0x5b8e4f['detach']();});});});}function _0xff4399(_0x23b92a){_0x5f61be['model']['change'](_0x5ae302=>{const _0x3b7588=Array['from'](_0xe7b6a1['getRanges']())['map'](_0x100b84=>_0x25d98f['fromRange'](_0x100b84)),_0x3be444=[];for(const _0x296c97 of _0x23b92a)for(const _0x459c0b of _0x296c97['getItems']({'shallow':!0x0}))_0x3be444['push'](_0x459c0b);for(const _0x352189 of _0x3be444)'$graveyard'!=_0x352189['root']['rootName']&&(_0x5ae302['setSelection'](_0x5ae302['createPositionAt'](_0x352189,0x0)),_0x5f61be['commands']['get']('removeTableColumn')['refresh'](),_0x5f61be['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x445c37=_0x3b7588['filter'](_0x2aedb6=>'$graveyard'!=_0x2aedb6['root']['rootName']);_0x445c37['length']>0x0&&_0x5ae302['setSelection'](_0x445c37);for(const _0x30a2c2 of _0x3b7588)_0x30a2c2['detach']();});}function _0x21d904(_0x55c779,_0xae4b38){return _0xae4b38['every'](_0x280023=>_0x55c779['some'](_0x5bb525=>_0x5bb525['end']['isEqual'](_0x280023['start'])||_0x280023['end']['isEqual'](_0x5bb525['start'])));}function _0x56b17a(_0x57e6b9,_0x17625f){return!_0x57e6b9['some'](_0x6c16a4=>_0x17625f['some'](_0x504bab=>_0x6c16a4['isIntersecting'](_0x504bab)))&&_0x57e6b9['some'](_0x13c9b2=>_0x17625f['some'](_0x263d59=>_0x13c9b2['end']['isTouching'](_0x263d59['start'])));}_0x5f61be['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x33e0d7,_0x3c6f98,_0x548e4e)=>{if(!_0x548e4e['options']['showSuggestionHighlights'])return;const _0x24c945=_0x3c6f98['item'];if(!_0x24c945)return;const _0x1c7aa9=_0x548e4e['mapper']['toViewElement'](_0x24c945);function _0x293d0a(_0x28e6b4){return Array['isArray'](_0x28e6b4)?_0x28e6b4:[_0x28e6b4];}_0x1c7aa9&&'tableCell'===_0x24c945['name']&&_0x22cbc5(_0x1c7aa9,_0x548e4e['writer'],(_0x10006c,_0x5a4124,_0x339d7e)=>_0x339d7e['addClass'](_0x293d0a(_0x5a4124['classes']),_0x10006c),(_0x21d64b,_0x3ec313,_0x35d511)=>_0x35d511['removeClass'](_0x293d0a(_0x3ec313['classes']),_0x21d64b));},{'priority':'highest'}),_0x101416['descriptionFactory']['registerDescriptionCallback'](_0xa9853c=>{if('insertion'!=_0xa9853c['type']&&'deletion'!=_0xa9853c['type'])return;const _0x2cbee5=_0xa9853c['getContainedElement']();if(null!=_0x2cbee5&&_0x2cbee5['is']('element','table')){if('insertion'==_0xa9853c['type']){const _0x4b5d41=_0xa9853c['getItems']()['filter'](_0xd83bfd=>_0xd83bfd['is']('$textProxy'))['map'](_0x250166=>_0x250166['data']);if(_0x4b5d41['length'])return{'type':'insertion','content':o(_0x501f36,'*Insert:*\x20%0',o(_0x501f36,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4b5d41['join']('\x20')+'\x22'))};}if('deletion'==_0xa9853c['type']){const _0xae8f4d=_0xa9853c['getItems']()['filter'](_0x2e4427=>_0x2e4427['is']('$textProxy'))['map'](_0xe4322a=>_0xe4322a['data']);if(_0xae8f4d['length'])return{'type':'deletion','content':o(_0x501f36,'*Remove:*\x20%0',o(_0x501f36,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xae8f4d['join']('\x20')+'\x22'))};}}}),_0x101416['descriptionFactory']['registerDescriptionCallback'](_0x56d726=>{if('tableRow'==_0x56d726['subType']){const _0x5b53c0=_0x56d726['getItems']()['filter'](_0x27272a=>_0x27272a['is']('$textProxy'))['map'](_0x7f3338=>_0x7f3338['data']),_0x49db1d=this['_getSuggestionCoords'](_0x56d726),_0x59b30f=_0x49db1d['maxRow']-_0x49db1d['minRow']+0x1;if('insertion'==_0x56d726['type'])return _0x5b53c0['length']?{'type':'insertion','content':o(_0x501f36,'*Insert:*\x20%0',o(_0x501f36,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x59b30f,'\x22'+_0x5b53c0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x501f36,'*Insert:*\x20%0',o(_0x501f36,'ELEMENT_TABLE_ROW',_0x59b30f))};if('deletion'==_0x56d726['type'])return _0x5b53c0['length']?{'type':'deletion','content':o(_0x501f36,'*Remove:*\x20%0',o(_0x501f36,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x59b30f,'\x22'+_0x5b53c0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x501f36,'*Remove:*\x20%0',o(_0x501f36,'ELEMENT_TABLE_ROW',_0x59b30f))};}if('tableColumn'==_0x56d726['subType']){const _0x4a139a=_0x56d726['getItems']()['filter'](_0x46c52a=>_0x46c52a['is']('$textProxy'))['map'](_0x44067b=>_0x44067b['data']),_0x2a1c38=this['_getSuggestionCoords'](_0x56d726),_0x5b50f4=_0x2a1c38['maxColumn']-_0x2a1c38['minColumn']+0x1;if('insertion'==_0x56d726['type'])return _0x4a139a['length']?{'type':'insertion','content':o(_0x501f36,'*Insert:*\x20%0',o(_0x501f36,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5b50f4,'\x22'+_0x4a139a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x501f36,'*Insert:*\x20%0',o(_0x501f36,'ELEMENT_TABLE_COLUMN',_0x5b50f4))};if('deletion'==_0x56d726['type'])return _0x4a139a['length']?{'type':'deletion','content':o(_0x501f36,'*Remove:*\x20%0',o(_0x501f36,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5b50f4,'\x22'+_0x4a139a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x501f36,'*Remove:*\x20%0',o(_0x501f36,'ELEMENT_TABLE_COLUMN',_0x5b50f4))};}}),_0x101416['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x47ccce),_0x101416['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x47ccce),_0x101416['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xff4399),_0x101416['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xff4399),_0x101416['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x21d904),_0x101416['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x21d904),_0x101416['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x56b17a),_0x101416['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x56b17a);}['_acceptFormatSuggestionCallbackFactory'](){const _0xa51321=this['editor'],_0x4b4e13=_0xa51321['model']['document']['selection'];return(_0x1ce64e,_0x361735)=>{_0xa51321['model']['change'](_0x2adb24=>{const {commandName:_0xfe269e,commandParams:_0x29809a}=_0x361735;let _0xb26046=_0x1ce64e[0x0]['end']['nodeBefore'];_0x29809a&&_0x29809a[0x0]&&!0x1===_0x29809a[0x0]['forceValue']&&(_0xb26046=_0x1ce64e[0x0]['start']['nodeAfter']);const _0x238633=_0x2adb24['createRangeIn'](_0xb26046);if('$graveyard'==_0x238633['root']['rootName'])return;const _0x16e42e=Array['from'](_0x4b4e13['getRanges']())['map'](_0x44b989=>_0x25d98f['fromRange'](_0x44b989));_0x2adb24['setSelection'](_0x238633),_0xa51321['commands']['get'](_0xfe269e)['refresh'](),_0x29809a['push']({'forceDefaultExecution':!0x0}),_0xa51321['execute'](_0xfe269e,..._0x29809a);const _0xc0da47=_0x16e42e['filter'](_0x1f15cd=>'$graveyard'!=_0x1f15cd['root']['rootName']);_0xc0da47['length']>0x0&&_0x2adb24['setSelection'](_0xc0da47);for(const _0x1989ce of _0x16e42e)_0x1989ce['detach']();});};}['_getCoordsForCells'](_0x134070){const _0x38d711=this['editor']['plugins']['get']('TableUtils');let _0x4910b7=Number['MAX_SAFE_INTEGER'],_0xb8ab5=Number['MIN_SAFE_INTEGER'],_0x168a3d=Number['MAX_SAFE_INTEGER'],_0x1b6def=Number['MIN_SAFE_INTEGER'];for(const _0x189597 of _0x134070){if('$graveyard'==_0x189597['root']['rootName'])continue;const {row:_0x4fab0c,column:_0x355da0}=_0x38d711['getCellLocation'](_0x189597),_0x4df267=_0x189597['hasAttribute']('rowspan')?_0x189597['getAttribute']('rowspan')-0x1:0x0,_0x2e5a3b=_0x189597['hasAttribute']('colspan')?_0x189597['getAttribute']('colspan')-0x1:0x0;_0x4910b7=_0x4fab0c<_0x4910b7?_0x4fab0c:_0x4910b7,_0xb8ab5=_0x4fab0c+_0x4df267>_0xb8ab5?_0x4fab0c+_0x4df267:_0xb8ab5,_0x168a3d=_0x355da0<_0x168a3d?_0x355da0:_0x168a3d,_0x1b6def=_0x355da0+_0x2e5a3b>_0x1b6def?_0x355da0+_0x2e5a3b:_0x1b6def;}return{'minRow':_0x4910b7,'maxRow':_0xb8ab5,'minColumn':_0x168a3d,'maxColumn':_0x1b6def};}['_setupColumnsRowsFixing'](){const _0x19940c=this['editor'],_0x1174b4=_0x19940c['plugins']['get']('TrackChangesEditing'),_0x41c268=_0x19940c['plugins']['get']('TableUtils');_0x19940c['model']['document']['on']('change:data',()=>{const _0x33f102=Array['from'](_0x19940c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x18cfe9,data:_0x571d73}of _0x33f102){const {group:_0x1a229e,id:_0x12945f,subType:_0x243c18}=_0x1174b4['_splitMarkerName'](_0x18cfe9);if('suggestion'!=_0x1a229e)continue;if(null!=_0x571d73['oldRange'])continue;const _0x36763a=_0x1174b4['getSuggestion'](_0x12945f);this['_tablePostFixingSubtypes']['includes'](_0x243c18)&&this['_tableSuggestions']['add'](_0x36763a);}},{'priority':'low'});const _0x235234=(_0x1d703f,_0x2b4830)=>{let _0x5eb703=!0x1;const _0x240d15=_0x2b4830['createRangeOn'](_0x1d703f),_0x3c0665=_0x1d703f['findAncestor']('table'),_0x30870a=_0x41c268['getCellLocation'](_0x1d703f);for(const _0x28edaf of this['_tableSuggestions']){const _0x4e551e=_0x28edaf['subType'],_0x6c8071=_0x4e551e['startsWith']('tablePaste'),_0x4e1af5=_0x4e551e['substr'](_0x6c8071?0xa:0x5),_0x21baaf=_0x4e1af5['toLowerCase'](),_0x19f109=_0x21baaf['substr'](0x0,0x3)+'span',_0x5ca4db='min'+_0x4e1af5,_0xdf55b6='max'+_0x4e1af5;if(!_0x28edaf['isInContent'])continue;if(_0x3c0665!=_0x28edaf['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x28edaf['isIntersectingWithRange'](_0x240d15))continue;const _0x1f97ff=_0x1d703f['hasAttribute'](_0x19f109)?_0x1d703f['getAttribute'](_0x19f109)-0x1:0x0,_0x3993c0=this['_getSuggestionCoords'](_0x28edaf),_0x43c483=_0x3993c0[_0x5ca4db],_0x41c823=_0x3993c0[_0xdf55b6];_0x43c483<=_0x30870a[_0x21baaf]&&_0x30870a[_0x21baaf]+_0x1f97ff<=_0x41c823&&(_0x28edaf['addRange'](_0x240d15),_0x5eb703=!0x0);}return _0x5eb703;};_0x19940c['model']['document']['registerPostFixer'](_0xa854d8=>{let _0x1969f5=!0x1;for(const _0x524d58 of _0x19940c['model']['document']['differ']['getChanges']())if('insert'==_0x524d58['type']){if('tableRow'==_0x524d58['name']){for(const _0x9de32 of _0x524d58['position']['nodeAfter']['getChildren']())_0x1969f5=_0x1969f5||_0x235234(_0x9de32,_0xa854d8);}else'tableCell'==_0x524d58['name']&&(_0x1969f5=_0x1969f5||_0x235234(_0x524d58['position']['nodeAfter'],_0xa854d8));}return _0x1969f5;});}['_getSuggestionCoords'](_0xf521ac){return this['_getCoordsForCells'](_0xf521ac['getRanges']()['map'](_0x4fff4a=>_0x4fff4a['start']['nodeAfter']));}}function Ee(_0x1d292a){return Array['from'](new Set(_0x1d292a)['values']());}class St extends _0x41d95f{static get['requires'](){return[jt];}['afterInit'](){const _0x3d91cd=this['editor'],_0x32baa5=_0x3d91cd['model']['document']['selection'],_0x2b8b37=_0x3d91cd['locale'];if(!_0x3d91cd['plugins']['has']('TableEditing'))return;const _0x5c364f=_0x3d91cd['plugins']['get']('TrackChangesEditing'),_0x8d8cd2=_0x3d91cd['plugins']['get']('TableUtils'),_0x2ff03f=_0x3d91cd['plugins']['get'](jt);_0x2ff03f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5c364f['enableCommand']('mergeTableCells',()=>{const _0x221ba7=_0x8d8cd2['getSelectionAffectedTableCells'](_0x3d91cd['model']['document']['selection']);_0x3d91cd['model']['change'](()=>{_0x5c364f['markMultiRangeBlockFormat'](_0x221ba7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3d91cd['commands']['get']('mergeTableCells')['on']('execute',(_0x373168,_0x16d3db)=>{_0x3d91cd['commands']['get']('trackChanges')['value']&&(_0x16d3db['length']>0x0&&_0x16d3db[_0x16d3db['length']-0x1]&&_0x16d3db[_0x16d3db['length']-0x1]['forceDefaultExecution']||_0x5c364f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x373168['stop']());},{'priority':'highest'});for(const _0x3157e7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4212fb=_0x3d91cd['commands']['get'](_0x3157e7);_0x5c364f['enableCommand'](_0x3157e7,()=>{const _0x24f209=_0x3d91cd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2cb16b=>_0x2cb16b['is']('element','tableCell')),_0x5c5652=_0x4212fb['value'];_0x3d91cd['model']['change'](()=>{_0x5c364f['markMultiRangeBlockFormat']([_0x24f209,_0x5c5652],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xde6cf7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2d506c=_0x3d91cd['commands']['get'](_0xde6cf7);_0x5c364f['enableCommand'](_0xde6cf7,()=>{const _0x26ca85=_0x8d8cd2['getSelectionAffectedTableCells'](_0x3d91cd['model']['document']['selection'])[0x0],_0x553e9c=_0x26ca85['findAncestor']('table'),{column:_0x5a8940,row:_0x5b03de}=_0x8d8cd2['getCellLocation'](_0x26ca85);let _0x33d614=[];if('horizontally'==_0x2d506c['direction']){const _0x834903=_0x8d8cd2['createTableWalker'](_0x553e9c,{'startRow':_0x5b03de,'endRow':_0x5b03de,'includeAllSlots':!0x0});_0x33d614=Array['from'](_0x834903)['map'](_0x1a39e3=>_0x1a39e3['cell']);}else{const _0x321e05=_0x8d8cd2['createTableWalker'](_0x553e9c,{'column':_0x5a8940,'includeAllSlots':!0x0});_0x33d614=Array['from'](_0x321e05)['map'](_0x2ccdd7=>_0x2ccdd7['cell']);}_0x3d91cd['model']['change'](_0x1ced78=>{_0x5c364f['markBlockFormat'](_0x1ced78['createRangeOn'](_0x26ca85),{'commandName':_0xde6cf7,'commandParams':[]},_0x33d614,_0xde6cf7);});});}_0x5c364f['descriptionFactory']['registerDescriptionCallback'](_0x2983d9=>{if('formatBlock'!=_0x2983d9['type']&&'formatInline'!=_0x2983d9['type'])return;const {data:_0xb7bb0e}=_0x2983d9;return _0xb7bb0e&&'mergeTableCells'==_0xb7bb0e['commandName']?{'type':'format','content':o(_0x2b8b37,'*Merge\x20cells*')}:void 0x0;}),_0x5c364f['descriptionFactory']['registerDescriptionCallback'](_0x489590=>{if('formatBlock'!=_0x489590['type']&&'formatInline'!=_0x489590['type'])return;const {data:_0x385c6a}=_0x489590;return _0x385c6a?'splitTableCellVertically'==_0x385c6a['commandName']?{'type':'format','content':o(_0x2b8b37,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x385c6a['commandName']?{'type':'format','content':o(_0x2b8b37,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3c3396=_0x2ff03f['_acceptFormatSuggestionCallbackFactory']();for(const _0x1a381d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5c364f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1a381d,'accept',_0x3c3396);for(const _0x1ea14d of['splitTableCellVertically','splitTableCellHorizontally'])_0x5c364f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ea14d,'accept',_0x3c3396);_0x5c364f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x228c54=>{_0x3d91cd['model']['change'](_0x4db04a=>{const _0x17450f=Array['from'](_0x32baa5['getRanges']())['map'](_0x528190=>_0x25d98f['fromRange'](_0x528190));_0x4db04a['setSelection'](_0x228c54),_0x3d91cd['commands']['get']('mergeTableCells')['refresh'](),_0x3d91cd['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1d85a1=_0x17450f['filter'](_0x560cdf=>'$graveyard'!=_0x560cdf['root']['rootName']);_0x1d85a1['length']>0x0&&_0x4db04a['setSelection'](_0x1d85a1);for(const _0x10d295 of _0x17450f)_0x10d295['detach']();});});for(const _0x15a826 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3c01d7=_0x3d91cd['commands']['get'](_0x15a826);_0x3c01d7['on']('set:isEnabled',(_0x2e386b,_0x4965bc,_0x5a17cb)=>{if(_0x5a17cb){const _0x16f411=_0x3d91cd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x55b954=>_0x55b954['is']('element','tableCell'));this['_areMergableCells'](_0x3c01d7['value'],_0x16f411)||(_0x2e386b['return']=!0x1,_0x2e386b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x358412=this['editor']['commands']['get']('mergeTableCells'),_0x54bc63=this['editor']['plugins']['get']('TableUtils');if(!_0x358412['isEnabled'])return!0x1;const _0xaea1ef=_0x54bc63['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x150507 of _0xaea1ef)for(const _0x5258a2 of _0xaea1ef)if(_0x150507!=_0x5258a2&&!this['_areMergableCells'](_0x150507,_0x5258a2))return!0x1;return!0x0;}['_areMergableCells'](_0x24077f,_0x4f34d3){const _0xa144c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x898941=this['editor']['model']['createRangeOn'](_0x24077f),_0x54f36e=this['editor']['model']['createRangeOn'](_0x4f34d3),_0x4b873e=new Set(),_0x4a4ce0=new Set();for(const _0x5f0e42 of _0xa144c0['getSuggestions']())if(('insertion'==_0x5f0e42['type']||'deletion'==_0x5f0e42['type']||'mergeTableCells'==_0x5f0e42['subType'])&&_0x5f0e42['isInContent']){for(const _0x1f412b of _0x5f0e42['getRanges']())_0x1f412b['containsRange'](_0x898941,!0x0)&&_0x4b873e['add'](_0x5f0e42['type']+':'+_0x5f0e42['author']['id']),_0x1f412b['containsRange'](_0x54f36e,!0x0)&&_0x4a4ce0['add'](_0x5f0e42['type']+':'+_0x5f0e42['author']['id']);}if(_0x4b873e['size']!=_0x4a4ce0['size'])return!0x1;for(const _0x5c69e6 of _0x4b873e)if(!_0x4a4ce0['has'](_0x5c69e6))return!0x1;return!0x0;}}class At extends _0x41d95f{static get['requires'](){return[jt];}['afterInit'](){const _0x25c05b=this['editor'];if(!_0x25c05b['plugins']['has']('TableEditing'))return;const _0x5283a=_0x25c05b['locale'],_0x93da33=_0x25c05b['plugins']['get']('TrackChangesEditing');_0x93da33['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x93da33['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x93da33['registerBlockAttribute']('headingRows'),_0x93da33['registerBlockAttribute']('headingColumns'),_0x93da33['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5283a,'FORMAT_HEADER_ROW')),_0x93da33['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5283a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1e545f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3448cf=this['editor']['plugins']['get']('TableUtils'),_0x59b196=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x4a7665({showActiveMarker:_0x58acba=!0x0,setDataAttribute:_0x367e46=!0x0}={}){return(_0xb1b43f,_0x31869f,_0x5950f8)=>{const {type:_0x3d08d3,id:_0x3c24fd}=_0x1e545f['_splitMarkerName'](_0x31869f['markerName']),_0x477f07=_0x1e545f['getSuggestion'](_0x3c24fd),_0x2310d5=_0x477f07['data'];if('formatBlock'!=_0x477f07['type']||!_0x2310d5||'setTableColumnHeader'!=_0x2310d5['commandName'])return;if(_0x31869f['item'])return void _0xb1b43f['stop']();if(!_0x5950f8['consumable']['consume'](_0x31869f['markerRange'],_0xb1b43f['name']))return;const _0x38956e=_0x31869f['markerRange']['start']['nodeAfter'],_0x11aafb=_0x31869f['markerRange']['end']['nodeBefore'],_0x746f0b=_0x38956e['parent']['parent'],{column:_0x4dbc13}=_0x3448cf['getCellLocation'](_0x38956e),{column:_0x329424}=_0x3448cf['getCellLocation'](_0x11aafb);for(let _0x2b8852=_0x4dbc13;_0x2b8852<=_0x329424;_0x2b8852++){const _0x318698=_0x3448cf['createTableWalker'](_0x746f0b,{'column':_0x2b8852,'includeAllSlots':!0x1});for(const _0x80abcb of _0x318698){const _0x4528aa=_0x80abcb['cell'],_0x4ff321=_0x5950f8['mapper']['toViewElement'](_0x4528aa);_0x5950f8['writer']['addClass']('ck-suggestion-marker-'+_0x3d08d3,_0x4ff321),_0x367e46&&_0x5950f8['writer']['setAttribute']('data-suggestion',_0x3c24fd,_0x4ff321),_0x5950f8['mapper']['bindElementToMarker'](_0x4ff321,_0x31869f['markerName']),_0x58acba&&(_0x1e545f['activeMarkers']['includes'](_0x31869f['markerName'])?_0x5950f8['writer']['addClass']('ck-suggestion-marker--active',_0x4ff321):_0x5950f8['writer']['removeClass']('ck-suggestion-marker--active',_0x4ff321));}}};}_0x1e545f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x59b196),_0x1e545f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x59b196),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4a7665(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x7ea7da,_0x36d610,_0x48d3f1)=>{_0x48d3f1['options']['showSuggestionHighlights']&&_0x4a7665({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x7ea7da,_0x36d610,_0x48d3f1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x300c05,_0x258f7e,_0x2f99bb)=>{const {type:_0x5de9d1,id:_0x57c719}=_0x1e545f['_splitMarkerName'](_0x258f7e['markerName']),_0x269ea=_0x1e545f['getSuggestion'](_0x57c719),_0x4999c3=_0x269ea['data'];if('formatBlock'!=_0x269ea['type']||!_0x4999c3||'setTableColumnHeader'!=_0x4999c3['commandName'])return;const _0x225469=_0x2f99bb['mapper']['markerNameToElements'](_0x258f7e['markerName']);if(_0x225469){for(const _0x59c35d of _0x225469)_0x2f99bb['writer']['removeClass']('ck-suggestion-marker-'+_0x5de9d1,_0x59c35d),_0x2f99bb['writer']['removeClass']('ck-suggestion-marker--active',_0x59c35d),_0x2f99bb['writer']['removeAttribute']('data-suggestion',_0x59c35d),_0x2f99bb['mapper']['unbindElementFromMarkerName'](_0x59c35d,_0x258f7e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x492f44=this['editor'],_0x3776e9=_0x492f44['locale'];function _0x3d8334(_0x5d34ad){return{'type':'format','content':o(_0x3776e9,'*Format:*\x20%0',_0x5d34ad)};}_0x492f44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x195ed5=>{if('formatBlock'!=_0x195ed5['type'])return;const {data:_0x293eeb}=_0x195ed5;if(_0x293eeb){if('setTableRowHeader'==_0x293eeb['commandName']){const _0x101c8a=_0x293eeb['commandParams'][0x0]['forceValue'];return _0x3d8334(o(_0x3776e9,_0x101c8a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x293eeb['commandName']){const _0x4d8350=_0x293eeb['commandParams'][0x0]['forceValue'];return _0x3d8334(o(_0x3776e9,_0x4d8350?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x21917a=>[_0x21917a,null]));class It extends _0x41d95f{static get['requires'](){return[jt];}['afterInit'](){const _0x3fd068=this['editor'];if(!_0x3fd068['plugins']['has']('TableClipboard'))return;const _0x32cec2=_0x3fd068['plugins']['get']('TrackChangesEditing'),_0x59e055=_0x3fd068['plugins']['get']('TableUtils'),_0x44e005=_0x3fd068['plugins']['get'](jt),_0x5b5edb=_0x3fd068['plugins']['get']('TableClipboard');_0x44e005['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3fd068['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3fd068['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5eb79c=null;_0x3fd068['model']['on']('insertContent',(_0x3c86f1,_0x1445cb)=>{const [_0x102384,_0x320290]=_0x1445cb,_0x1afb63=_0x1445cb[_0x1445cb['length']-0x1];_0x1afb63&&_0x1afb63['forceDefaultExecution']||_0x32cec2['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1aee33,_0x48f272,_0x292151,_0x47f011,_0x874919){if(_0x48f272&&!_0x48f272['is']('documentSelection'))return!0x1;const _0x346f45=_0x874919['getTableIfOnlyTableInContent'](_0x1aee33,_0x292151);if(!_0x346f45||!he(_0x346f45,void 0x0,_0x47f011))return!0x1;const _0xdc9944=_0x47f011['getSelectionAffectedTableCells'](_0x292151['document']['selection']);if(!_0xdc9944['length'])return!0x1;const _0xf30b8b=_0xdc9944[0x0]['findAncestor']('table'),_0x3055a8=_0x47f011['getRowIndexes'](_0xdc9944),_0x10fd3f=_0x47f011['getColumnIndexes'](_0xdc9944),_0x27680f={'startRow':_0x3055a8['first'],'endRow':_0x3055a8['last'],'startColumn':_0x10fd3f['first'],'endColumn':_0x10fd3f['last']};return 0x1==_0xdc9944['length']&&(_0x27680f['endRow']+=_0x47f011['getRows'](_0x346f45)-0x1,_0x27680f['endColumn']+=_0x47f011['getColumns'](_0x346f45)-0x1),he(_0xf30b8b,_0x27680f,_0x47f011);}(_0x102384,_0x320290,_0x3fd068['model'],_0x59e055,_0x5b5edb)&&(_0x3c86f1['stop'](),_0x5eb79c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3fd068['model']['change'](()=>{_0x3fd068['model']['insertContent'](_0x1445cb[0x0],_0x1445cb[0x1],_0x1445cb[0x2],{'forceDefaultExecution':!0x0});const _0x55a057=_0x13ae16(),{rowInsertionRanges:_0x527b41,columnInsertionRanges:_0x2128f1,insertionRanges:_0x43b2e0,deletionRanges:_0x6214ec,cells:_0x50d4b7}=_0x5eb79c;_0x527b41['length']&&_0x32cec2['markMultiRangeInsertion'](_0x527b41,'tablePasteRow',{'tablePasteChainId':_0x55a057}),_0x2128f1['length']&&_0x32cec2['markMultiRangeInsertion'](_0x2128f1,'tablePasteColumn',{'tablePasteChainId':_0x55a057}),_0x43b2e0['length']&&(_0x32cec2['markMultiRangeInsertion'](_0x43b2e0,'tablePaste',{'tablePasteChainId':_0x55a057,'skipNestingCheck':!0x0}),_0x43b2e0['forEach'](_0x4584a2=>_0x4584a2['detach']?.())),_0x6214ec['length']&&(_0x32cec2['markMultiRangeDeletion'](_0x6214ec,'tablePaste',{'tablePasteChainId':_0x55a057,'skipNestingCheck':!0x0}),_0x6214ec['forEach'](_0x3db43a=>_0x3db43a['detach']?.()));const _0x210841=_0x32cec2['markMultiRangeBlockFormat'](_0x50d4b7['map'](({element:_0x3f7a45})=>_0x3f7a45),{'formatGroupId':_0x13ae16()},[],'tablePasteCell',{'tablePasteChainId':_0x55a057});if(_0x210841){const _0xdda9a=_0x210841['getMarkers'](),_0x259ff8=[];for(const {element:_0x47e061,attributes:_0x21c38d}of _0x50d4b7){if(!_0x21c38d)continue;const _0x2df04b=_0x3fd068['model']['createRangeOn'](_0x47e061),_0x2364c8=_0xdda9a['find'](_0x43c943=>_0x43c943['getRange']()['isEqual'](_0x2df04b));_0x2364c8&&_0x259ff8['push']([_0x2364c8['name'],_0x21c38d]);}_0x259ff8['length']&&_0x210841['setAttribute']('markerAttributes',Object['fromEntries'](_0x259ff8));}_0x5eb79c=null;}));},{'priority':_0x2ab9ee['high']+0xa}),_0x3fd068['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2838f4,_0x2da368)=>{const [_0x4beb17,_0x57cbdf,,_0xd6c2a0]=_0x2da368;if(!_0x5eb79c)return;_0x2838f4['stop']();const _0x22b324=_0x4beb17['cell'],_0x1d099c=_0x57cbdf,_0x4518b9=Pe(_0x22b324),_0x8693aa=Pe(_0x1d099c);_0x2838f4['return']=_0x22b324;let _0x5d5111=null,_0x14096d=null;if(_0x8693aa||_0x4518b9){if(_0x4518b9&&!_0x8693aa){_0xd6c2a0['remove'](_0x22b324['getChild'](0x0));for(const _0x4c3121 of Array['from'](_0x1d099c['getChildren']()))_0xd6c2a0['insert'](_0x4c3121,_0x22b324,'end');const _0x66374b=_0x5eb79c['rowInsertionIndexes']['includes'](_0x4beb17['row']),_0x15cc93=_0x5eb79c['columnInsertionIndexes']['includes'](_0x4beb17['column']);_0x66374b||_0x15cc93||(_0x5d5111=_0x25d98f['fromRange'](_0xd6c2a0['createRangeIn'](_0x22b324)));}else _0x8693aa&&!_0x4518b9&&(_0x14096d=_0xd6c2a0['createRangeIn'](_0x22b324));}else{const _0x62fca8=_0xd6c2a0['createElement']('tableCellSuggestion'),_0x48fa33=_0xd6c2a0['createElement']('tableCellSuggestion');_0xd6c2a0['wrap'](_0xd6c2a0['createRangeIn'](_0x22b324),_0x48fa33),_0xd6c2a0['insert'](_0x62fca8,_0x22b324,0x0);for(const _0x71005e of Array['from'](_0x1d099c['getChildren']()))_0xd6c2a0['insert'](_0x71005e,_0x62fca8,'end');_0x5d5111=_0x25d98f['fromRange'](_0xd6c2a0['createRangeOn'](_0x62fca8)),_0x14096d=_0x25d98f['fromRange'](_0xd6c2a0['createRangeOn'](_0x48fa33));}const _0x11b8e7=Array['from'](_0x1d099c['getAttributes']())['filter'](([_0x40928a])=>ge['includes'](_0x40928a));_0x5eb79c['cells']['push']({'element':_0x22b324,'attributes':_0x11b8e7['length']?Object['fromEntries'](_0x11b8e7):null}),_0x5d5111&&_0x5eb79c['insertionRanges']['push'](_0x5d5111),_0x14096d&&_0x5eb79c['deletionRanges']['push'](_0x14096d);},{'priority':'high'}),_0x59e055['on']('insertColumns',(_0x19b6f0,_0x2724ae)=>{const [_0x5ac6c9,_0x4a1edf={}]=_0x2724ae;if(!_0x5eb79c)return;const _0x5d62d5=_0x4a1edf['at']||0x0,_0x1bbf3d=_0x4a1edf['columns']||0x1;_0x5eb79c['columnInsertionIndexes']=new Array(_0x1bbf3d)['fill'](_0x5d62d5)['map']((_0x2411c0,_0x337304)=>_0x2411c0+_0x337304);for(const {cell:_0x5acccd}of _0x59e055['createTableWalker'](_0x5ac6c9,{'startColumn':_0x5d62d5,'endColumn':_0x5d62d5+_0x1bbf3d-0x1}))_0x5eb79c['columnInsertionRanges']['push'](_0x3fd068['model']['createRangeOn'](_0x5acccd));},{'priority':'low'}),_0x59e055['on']('insertRows',(_0xc7df9,_0x48c613)=>{const [_0x1be8ee,_0x30f236={}]=_0x48c613;if(!_0x5eb79c)return;const _0x2b7d60=_0x30f236['at']||0x0,_0x3b59bf=_0x30f236['rows']||0x1;_0x5eb79c['rowInsertionIndexes']=new Array(_0x3b59bf)['fill'](_0x2b7d60)['map']((_0x37df89,_0x5b4b90)=>_0x37df89+_0x5b4b90);for(const {cell:_0x160a8e}of _0x59e055['createTableWalker'](_0x1be8ee,{'startRow':_0x2b7d60,'endRow':_0x2b7d60+_0x3b59bf-0x1}))_0x5eb79c['rowInsertionRanges']['push'](_0x3fd068['model']['createRangeOn'](_0x160a8e));},{'priority':'low'}),_0x32cec2['descriptionFactory']['registerDescriptionCallback'](_0x3268bd=>{if(_0x3268bd['subType']&&_0x3268bd['subType']['startsWith']('tablePaste'))return _0x3268bd['previous']?{}:{'type':'insertion','content':o(_0x3fd068['locale'],'*Replace\x20table\x20cells*')};});const _0x439b29=()=>!0x1;for(const _0x421e9b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x32cec2['_suggestionFactory']['registerCustomCallback']('insertion',_0x421e9b,'join',_0x439b29),_0x32cec2['_suggestionFactory']['registerCustomCallback']('deletion',_0x421e9b,'join',_0x439b29),_0x32cec2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x421e9b,'join',_0x439b29);_0x32cec2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x439b29),_0x32cec2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xefb2a,_0x433c9d,_0x558417)=>{const _0xdd6ce9=_0xefb2a['map'](_0x4f7e78=>_0x4f7e78['getContainedElement']())['filter'](_0x4aa372=>_0x4aa372),_0x690249=new Map(_0xdd6ce9['map'](_0x520f7e=>[_0x520f7e,null]));if(_0x5eb79c){for(const {element:_0x460e3d,attributes:_0x4f9c34}of _0x5eb79c['cells'])_0x4f9c34&&_0x690249['set'](_0x460e3d,_0x4f9c34);}else{if(_0x558417&&_0x558417['markerAttributes'])for(const [_0x23d4cb,_0xa458ae]of Object['entries'](_0x558417['markerAttributes'])){const _0x530b56=_0x3fd068['model']['markers']['get'](_0x23d4cb),_0x1bed8d=_0x530b56?_0x530b56['getRange']()['getContainedElement']():null;_0x1bed8d&&_0x690249['set'](_0x1bed8d,_0xa458ae);}}_0x3fd068['model']['change'](_0x4a7e8b=>{for(const [_0x551ef0,_0x365033]of _0x690249)_0x4a7e8b['setAttributes']({...Ce,..._0x365033},_0x551ef0);});});const _0xb7eafd=(_0x1af6be,_0x444888)=>{_0x32cec2['_suggestionFactory']['registerCustomCallback'](_0x1af6be,'tablePaste',_0x444888,(_0x53581f,_0x5f454d,_0x20cd07)=>{_0x3fd068['model']['change'](_0x34cedc=>{const _0x5dc8a1=[];for(const _0x4930e7 of _0x53581f){const _0x5421d6=_0x4930e7['start']['nodeAfter'];_0x5421d6['is']('element','tableCellSuggestion')&&_0x5dc8a1['push'](_0x5421d6);}_0x32cec2['_suggestionFactory']['getSuggestionCallback'](_0x1af6be,null,_0x444888)(_0x53581f,_0x5f454d,_0x20cd07);for(const _0x47d7b6 of _0x5dc8a1)'$graveyard'!=_0x47d7b6['root']['rootName']&&_0x34cedc['unwrap'](_0x47d7b6);});});};_0xb7eafd('insertion','accept'),_0xb7eafd('insertion','discard'),_0xb7eafd('deletion','accept'),_0xb7eafd('deletion','discard'),_0x32cec2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4600d9=>{const _0x53667e=_0x4600d9['map'](_0x5324d8=>_0x5324d8['getContainedElement']()),_0x26390f=_0x53667e[0x0]['findAncestor']('table'),{minRow:_0x32896c,maxRow:_0x22c561}=_0x44e005['_getCoordsForCells'](_0x53667e);_0x59e055['removeRows'](_0x26390f,{'at':_0x32896c,'rows':_0x22c561-_0x32896c+0x1});}),_0x32cec2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x10f3b2=>{const _0x1548fc=_0x10f3b2['map'](_0x2e7d0f=>_0x2e7d0f['getContainedElement']()),_0x54b83c=_0x1548fc[0x0]['findAncestor']('table'),{minColumn:_0x99d452,maxColumn:_0x3bce2b}=_0x44e005['_getCoordsForCells'](_0x1548fc);_0x59e055['removeColumns'](_0x54b83c,{'at':_0x99d452,'columns':_0x3bce2b-_0x99d452+0x1});});const _0x279411=(_0x113770,_0x3bf301)=>{if(!_0x3bf301['subType']||!_0x3bf301['subType']['startsWith']('tablePaste'))return;const _0xb1fbb2=_0x3bf301['attributes']['tablePasteChainId'],_0x191aee=_0x32cec2['getSuggestions']()['filter'](_0x84bd8d=>_0x84bd8d['isInContent']&&_0x84bd8d['attributes']&&_0x84bd8d['attributes']['tablePasteChainId']==_0xb1fbb2);_0x191aee['length']&&_0x3bf301['getAllAdjacentSuggestions']()['length']!=_0x191aee['length']&&_0x191aee['reduce']((_0x3c17ed,_0x4ab9ff)=>(_0x3c17ed['next']=_0x4ab9ff,_0x4ab9ff['previous']=_0x3c17ed,_0x4ab9ff));};function _0x4bf241(_0x2df168,_0xd56f44=!0x0){const {id:_0x36b987}=_0x32cec2['_splitMarkerName'](_0x2df168['markerName']),_0x4c0a85=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x28c0fb=_0x32cec2['activeMarkers']['includes'](_0x2df168['markerName']);return _0x28c0fb&&_0x4c0a85['push']('ck-suggestion-marker--active'),{'classes':_0x4c0a85,'attributes':{'data-suggestion':_0x36b987},'priority':_0x28c0fb&&_0xd56f44?0xbc2:0xbb8};}_0x32cec2['on']('suggestionLoaded',_0x279411,{'priority':'high'}),_0x32cec2['on']('suggestionUnloaded',_0x279411,{'priority':'high'}),_0x3fd068['model']['document']['registerPostFixer'](()=>{let _0x37339a=!0x1;const _0x1f4600=Array['from'](_0x3fd068['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x6f5006,data:_0x1342e6}of _0x1f4600){const {group:_0x135eb6,type:_0x37f198,id:_0x33e389}=_0x32cec2['_splitMarkerName'](_0x6f5006);if('suggestion'!=_0x135eb6||'deletion'!=_0x37f198||_0x1342e6['oldRange'])continue;if(!_0x32cec2['hasSuggestion'](_0x33e389))continue;const _0x55992b=_0x32cec2['getSuggestion'](_0x33e389)['getRanges'](),_0x5ddf73=_0x3fd068['plugins']['get']('Users')['me'];for(const _0x39ae35 of _0x32cec2['getSuggestions']()){if(!_0x39ae35['isInContent']||_0x39ae35['author']!=_0x5ddf73)continue;if('formatBlock'!=_0x39ae35['type']||'tablePasteCell'!=_0x39ae35['subType'])continue;if(_0x39ae35['getRanges']()['every'](_0x144809=>_0x55992b['some'](_0x131165=>_0x131165['containsRange'](_0x144809,!0x0)))){for(const _0x883a5f of _0x39ae35['getAllAdjacentSuggestions']())_0x883a5f['isInContent']&&(_0x883a5f['discard'](),_0x37339a=!0x0);}}}return _0x37339a;}),_0x3fd068['model']['document']['registerPostFixer'](_0x5899b3=>{const _0x15ecee=_0x3fd068['commands']['get']('redo');if(!_0x15ecee||!_0x15ecee['_createdBatches']['has'](_0x5899b3['batch']))return!0x1;let _0x3e0a89=!0x1;const _0x4edb94=_0x3fd068['plugins']['get']('Users')['me'],_0x24b162=_0x3fd068['model']['document']['differ']['getChanges'](),_0x1cfef4=Array['from'](_0x3fd068['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3972e6,data:_0x45b17b})=>{const {group:_0x1e0827,subType:_0x21f93f,authorId:_0x4ead3c}=_0x32cec2['_splitMarkerName'](_0x3972e6);return'suggestion'==_0x1e0827&&'tablePaste'==_0x21f93f&&_0x4ead3c==_0x4edb94['id']&&!_0x45b17b['oldRange'];});for(const _0x54ced8 of _0x24b162){if('insert'!=_0x54ced8['type']||'tableCellSuggestion'!=_0x54ced8['name']||0x1!=_0x54ced8['length'])continue;const _0x430ca5=_0x5899b3['createRange'](_0x54ced8['position'],_0x54ced8['position']['getShiftedBy'](0x1));if(!_0x1cfef4['find'](({data:_0x581520})=>_0x581520['newRange']['isEqual'](_0x430ca5))){for(const {name:_0x54335a,data:_0x22de87}of _0x1cfef4)if(_0x430ca5['containsRange'](_0x22de87['newRange'])){_0x5899b3['updateMarker'](_0x54335a,{'range':_0x430ca5}),_0x3e0a89=!0x0;break;}}}return _0x3e0a89;}),_0x3fd068['model']['document']['registerPostFixer'](_0x345dc0=>{let _0x180f48=!0x1;const _0x1176f2=_0x3fd068['plugins']['get']('Users')['me'],_0x371b2e=_0x32cec2['getSuggestions']()['filter'](_0x32c7a0=>_0x32c7a0['isInContent']&&_0x32c7a0['author']==_0x1176f2),_0x48bb06=new Set(),_0x5943e6=new Set();for(const _0x30a798 of _0x371b2e)if('tablePaste'==_0x30a798['subType'])for(const _0x54cd55 of _0x30a798['getMarkers']()){const _0x31ff5=_0x54cd55['getRange']()['getContainedElement']();if(_0x31ff5){if(_0x31ff5['is']('element','tableCellSuggestion')&&Pe(_0x31ff5)){_0x30a798['removeMarker'](_0x54cd55['name']),_0x48bb06['add'](_0x31ff5),_0x180f48=!0x0;const _0x25e39a=_0x31ff5['nextSibling'],_0x896699=_0x31ff5['previousSibling'],_0x25e4c0=_0x25e39a&&_0x25e39a['is']('element','tableCellSuggestion'),_0x2ec922=_0x896699&&_0x896699['is']('element','tableCellSuggestion');_0x25e4c0&&!_0x48bb06['has'](_0x25e39a)&&_0x5943e6['add'](_0x25e39a),_0x2ec922&&!_0x48bb06['has'](_0x896699)&&_0x5943e6['add'](_0x896699);}else _0x31ff5['is']('element','paragraph')&&_0x31ff5['isEmpty']&&(_0x30a798['removeMarker'](_0x54cd55['name']),_0x180f48=!0x0);}}else{if('tablePasteCell'==_0x30a798['subType']){if(!_0x30a798['attributes']||!_0x30a798['attributes']['tablePasteChainId'])continue;const _0x53c76a=_0x30a798['attributes']['markerAttributes'];if(_0x53c76a&&Object['keys'](_0x53c76a)['length'])continue;const _0x23ccd2=_0x30a798['attributes']['tablePasteChainId'];let _0xc975c7=!0x0,_0x27f1e0=!0x0;for(const _0x10017a of _0x371b2e)if(_0x10017a['subType']&&_0x10017a['subType']['startsWith']('tablePaste')){if(!_0x10017a['attributes']['tablePasteChainId']){_0x27f1e0=!0x1;break;}if(_0x10017a['id']!=_0x30a798['id']&&_0x10017a['attributes']['tablePasteChainId']==_0x23ccd2){_0xc975c7=!0x1;break;}}_0x27f1e0&&_0xc975c7&&(_0x30a798['removeMarkers'](),_0x180f48=!0x0);}}for(const _0x3de453 of _0x48bb06)_0x345dc0['remove'](_0x3de453);for(const _0x58f674 of _0x5943e6)_0x345dc0['unwrap'](_0x58f674);return _0x180f48;}),_0x3fd068['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1ac101,_0x3bc30a)=>_0x4bf241(_0x1ac101),'converterPriority':'high'}),_0x3fd068['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x440794,_0x492f59)=>_0x492f59['options']['showSuggestionHighlights']?_0x4bf241(_0x440794,!0x1):null,'converterPriority':'high'});const _0x318fd8=_0x3fd068['editing']['view'];this['listenTo'](_0x318fd8['document'],'clipboardOutput',(_0x3c19c5,_0x168eda)=>{const _0x2123cb=[];for(const _0x40bd78 of _0x318fd8['createRangeIn'](_0x168eda['content'])['getItems']())_0x40bd78['is']('element','suggestion-td')&&_0x2123cb['push'](_0x40bd78);_0x318fd8['change'](_0x34d021=>{for(const _0xf60d8c of _0x2123cb)_0x34d021['move'](_0x34d021['createRangeIn'](_0xf60d8c),_0x34d021['createPositionBefore'](_0xf60d8c)),_0x34d021['remove'](_0xf60d8c);});});}}function Pe(_0x5856c4){if(_0x5856c4['isEmpty'])return!0x0;const _0x506c69=_0x5856c4['getChild'](0x0);return _0x506c69['is']('element','paragraph')&&_0x506c69['isEmpty'];}function he(_0xa65c04,_0x5dde4d={},_0x1f7070){for(const {isAnchor:_0xaa0ef,cellHeight:_0x9bf892,cellWidth:_0x2fc01c}of _0x1f7070['createTableWalker'](_0xa65c04,{'includeAllSlots':!0x0,..._0x5dde4d}))if(!_0xaa0ef||0x1!=_0x9bf892||0x1!=_0x2fc01c)return!0x1;return!0x0;}class vt extends _0x41d95f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5be3eb=this['editor']['plugins']['get']('TrackChangesEditing');_0x5be3eb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5be3eb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5be3eb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5be3eb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5be3eb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5be3eb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3eaa18,_0x27f40d){const _0x434d83=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15793f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xbabf00=_0x27f40d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x10234d=_0x15793f['getColumnGroupElement'](_0xbabf00);let _0x166f6b=_0x10234d?_0x15793f['getTableColumnsWidths'](_0x10234d):null,_0x26f92a=_0xbabf00['getAttribute']('tableWidth')||null;const _0xc15688=_0x27f40d['tableWidth']||_0x26f92a,_0x319f68=_0x27f40d['columnWidths']||_0x166f6b,_0x4ed535=this['editor']['plugins']['get']('Users')['me'];for(const _0x2b5108 of _0x434d83['getSuggestions']()){const _0x219783=_0x2b5108['getContainedElement']();if('resizeTable'===_0x2b5108['subType']&&_0x219783===_0xbabf00){_0x2b5108['author']!==_0x4ed535&&_0x2b5108['discard']();const _0x3f7c9c=_0x2b5108['data']['commandParams'];_0x26f92a=_0x3f7c9c[0x0]['tableWidth'],_0x166f6b=_0x3f7c9c[0x0]['columnWidths'];break;}}_0x3eaa18({'table':_0xbabf00,'tableWidth':_0xc15688,'columnWidths':_0x319f68}),_0x434d83['markBlockFormat'](_0xbabf00,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x26f92a,'columnWidths':_0x166f6b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5b7354){if('formatBlock'!=_0x5b7354['type']&&'formatInline'!=_0x5b7354['type'])return;const {data:_0x223abf}=_0x5b7354;if(_0x223abf&&'resizeTable'===_0x223abf['formatGroupId']){const _0x3c7f9b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3c7f9b)};}}}class Ct extends _0x41d95f{['afterInit'](){const _0x3e1a74=this['editor'];_0x3e1a74['plugins']['has']('Template')&&_0x3e1a74['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x41d95f{['afterInit'](){const _0x1bf5e6=this['editor'];if(!_0x1bf5e6['commands']['get']('insertTableOfContents'))return;_0x1bf5e6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x42b1a6=_0x1bf5e6['plugins']['get']('TrackChangesEditing'),_0x4d00bd=_0x1bf5e6['locale'];_0x42b1a6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3b1712=>o(_0x4d00bd,'ELEMENT_TABLE_OF_CONTENTS',_0x3b1712));}}class Dt extends _0x41d95f{['afterInit'](){const _0x2ed9b7=this['editor'];if(!_0x2ed9b7['plugins']['has']('Title'))return;const _0x476777=_0x2ed9b7['plugins']['get']('TrackChangesEditing');_0x476777['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2ed9b7['locale'],'ELEMENT_TITLE')),_0x2ed9b7['model']['document']['registerPostFixer'](_0x3092ac=>{let _0x43f44d=!0x1;const _0x433971=Array['from'](_0x2ed9b7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x345915,data:_0x1d0420}of _0x433971){const {group:_0x51a205}=_0x476777['_splitMarkerName'](_0x345915);if('suggestion'!==_0x51a205||!_0x1d0420['newRange'])continue;const _0x323115=_0x1d0420['newRange'],_0x5fab69=_0x323115['end']['nodeBefore'];if(!_0x5fab69||!_0x5fab69['is']('element','title-content'))continue;if(!_0x323115['start']['isTouching'](_0x323115['end']))continue;const _0x381bbe=_0x2ed9b7['model']['schema']['getNearestSelectionRange'](_0x323115['end'],'forward');if(_0x381bbe&&_0x381bbe['isCollapsed']){const _0x2a2bd1=_0x3092ac['createRange'](_0x323115['start'],_0x381bbe['start']);_0x2a2bd1['isEqual'](_0x323115)||(_0x3092ac['updateMarker'](_0x345915,{'range':_0x2a2bd1}),_0x43f44d=!0x0);}_0x43f44d||(_0x3092ac['removeMarker'](_0x345915),_0x43f44d=!0x0);}return _0x43f44d;});}}class Nt extends _0x41d95f{['afterInit'](){const _0x19ca09=this['editor'],_0x111028=_0x19ca09['plugins']['get']('TrackChangesEditing');_0x19ca09['plugins']['has']('UndoEditing')&&(_0x111028['enableCommand']('undo'),_0x111028['enableCommand']('redo'));}}class Mt extends _0x41d95f{static get['requires'](){return[jt];}['afterInit'](){const _0x308299=this['editor'];if(!_0x308299['plugins']['has']('TableCaptionEditing'))return;_0x308299['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x41d95f{['tableProperties'];['tableCellProperties'];constructor(_0x4b9d52){super(_0x4b9d52),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 _0x4c9345=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x51eb75 of this['tableProperties'])_0x4c9345['enableCommand'](_0x51eb75,(_0x138baa,_0x1d81f8)=>{const _0x5d4897=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x51eb75,[_0x5d4897],this['tableProperties'],'tableProperties',_0x138baa,_0x1d81f8);});_0x4c9345['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4c9345['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c9345['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x247cb4,_0x3bdea9)=>this['handleDiscardAction'](this['tableProperties'],_0x247cb4,_0x3bdea9)),_0x4c9345['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x49150c of this['tableCellProperties'])_0x4c9345['enableCommand'](_0x49150c,(_0x54b0f9,_0x491afe)=>{const _0x418df3=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x49150c,_0x418df3,this['tableCellProperties'],'tableCellProperties',_0x54b0f9,_0x491afe);});_0x4c9345['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4c9345['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c9345['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x45f358,_0x54f987)=>this['handleDiscardAction'](this['tableCellProperties'],_0x45f358,_0x54f987)),_0x4c9345['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4c9345['descriptionFactory']['registerDescriptionCallback'](_0x3ced95=>this['handleSuggestionDescription'](_0x3ced95));}['_handlePropertyChange'](_0x40e251,_0x460f7f,_0x505454,_0x22bb69,_0x41b67a,_0x578555){const _0x27881b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x578555['batch'],()=>{for(const _0x2553d3 of _0x460f7f){if(this['_getSuggestion'](_0x2553d3,_0x22bb69))_0x41b67a(_0x578555);else{const _0x10e485={};for(const _0x57028b of _0x505454){const _0x39200d=_0x2553d3['getAttribute'](_0x57028b);void 0x0!==_0x39200d&&(_0x10e485[_0x57028b]=_0x39200d);}_0x41b67a(_0x578555),_0x27881b['markBlockFormat'](_0x2553d3,{'commandParams':[_0x10e485]},[],_0x22bb69);}}});}['handleDiscardAction'](_0x573a5c,_0x199ed9,_0x3004c9){const _0x1ffe17=_0x199ed9[0x0]['start']['nodeAfter'],_0x173a0b=_0x3004c9['commandParams'][0x0];this['editor']['model']['change'](_0x47132d=>{for(const _0x1f6729 of _0x573a5c)void 0x0!==_0x173a0b[_0x1f6729]?_0x47132d['setAttribute'](_0x1f6729,_0x173a0b[_0x1f6729],_0x1ffe17):_0x47132d['removeAttribute'](_0x1f6729,_0x1ffe17);});}['handleSuggestionDescription'](_0x207d23){if(_0x207d23['data'])switch(_0x207d23['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'](_0x2d77f6,_0x447123){const _0x51d0f9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4ad27d of _0x51d0f9['getSuggestions']({'skipNotAttached':!0x0})){const _0x5334d4=_0x4ad27d['getContainedElement']();if(_0x4ad27d['subType']===_0x447123&&_0x5334d4===_0x2d77f6)return _0x4ad27d;}return null;}}const m='$elementName';class p extends _0x41d95f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x50b342,_0x2f7dd4,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(_0x17a676){function _0x5485fc(_0x2fdf57){return _0x2fdf57['map'](_0x9092db=>String['fromCharCode'](_0x9092db))['join']('');}super(_0x17a676),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x274e60,_0x3349c8,_0x4c16f7,_0x2c925a)=>{this['_model']['change'](()=>{for(const _0x51dea9 of[..._0x2c925a,..._0x4c16f7])this['_model']['markers']['has'](_0x51dea9)&&_0x17a676['editing']['reconvertMarker'](_0x51dea9);});}),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']=_0x17a676['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(),_0x17a676['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x17a676['config']['get']('trackChanges.trackFormatChanges'),_0x17a676['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x17a676['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x17a676,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x5485fc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5485fc([0x34,0x30,0x34,0x38,0x31,0x32,0x34,0x30]);}['init'](){const _0x1a08c8=this['editor'],_0x5b3b0b=(_0x2edb11,_0x409b8c)=>{if('attribute'!=_0x2edb11)return'ck-suggestion-marker-'+_0x2edb11;const _0x2470b8=_0x409b8c['split']('|')[0x0];return this['_isBlockAttribute'](_0x2470b8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1a08c8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3743ac=>{const {id:_0x39f8b2,type:_0x3e1973,subType:_0x119b41}=this['_splitMarkerName'](_0x3743ac['markerName']),_0x3b27da=['ck-suggestion-marker',_0x5b3b0b(_0x3e1973,_0x119b41)];let _0x5a6d1a=0xbb8;return this['activeMarkers']['includes'](_0x3743ac['markerName'])&&(_0x3b27da['push']('ck-suggestion-marker--active'),_0x5a6d1a=0xbc2),'deletion'==_0x3e1973&&(_0x5a6d1a+=0x5),{'classes':_0x3b27da,'attributes':{'data-suggestion':_0x39f8b2},'priority':_0x5a6d1a};}}),_0x1a08c8['conversion']['for']('dataDowncast')['add'](_0x2543de=>{_0x2543de['on']('addMarker:suggestion',(_0x463f61,_0x3c339e,_0x201e6e)=>{if(!_0x201e6e['options']['showSuggestionHighlights'])return;const _0x23e981=_0x3c339e['item'];if(!_0x23e981)return;const _0x3d7228=_0x201e6e['mapper']['toViewElement'](_0x23e981);_0x1a08c8['model']['schema']['isObject'](_0x23e981)&&_0x3d7228&&!_0x3d7228['getCustomProperty']('widget')&&_0x3d7228['is']('containerElement')&&_0x86663d(_0x3d7228,_0x201e6e['writer']);},{'priority':'high'});}),_0x1a08c8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x38d54b,_0x29d11d)=>{if(!_0x29d11d['options']['showSuggestionHighlights'])return null;const {type:_0x304727,subType:_0x2ef763}=this['_splitMarkerName'](_0x38d54b['markerName']);return{'classes':['ck-suggestion-marker',_0x5b3b0b(_0x304727,_0x2ef763)],'priority':0xbb8};}});const _0x47df21=({showActiveMarkers:_0x38326b=!0x0,isAttributeSuggestion:_0x5619b7=!0x1}={})=>(_0x1a7bb9,_0x2f80fe,_0x5c6871)=>{if(!_0x2f80fe['item'])return;const {id:_0x33cd90}=this['_splitMarkerName'](_0x2f80fe['markerName']);if(_0x5619b7){const _0x56605d=this['_suggestions']['get'](_0x33cd90),_0x15d5f1=this['_getAttributeKey'](_0x56605d);if(!this['_isBlockAttribute'](_0x15d5f1))return;}if(_0x2f80fe['item']['is']('selection'))return void _0x5c6871['consumable']['consume'](_0x2f80fe['item'],_0x1a7bb9['name']);const _0x355b98=_0x5c6871['mapper']['toViewElement'](_0x2f80fe['item']);if(_0x2f80fe['item']['is']('element')&&_0x1a08c8['model']['schema']['isBlock'](_0x2f80fe['item'])&&!_0x355b98['getCustomProperty']('addHighlight')){_0x5c6871['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x355b98),_0x5c6871['writer']['setAttribute']('data-suggestion',_0x33cd90,_0x355b98),_0x5c6871['mapper']['bindElementToMarker'](_0x355b98,_0x2f80fe['markerName']),_0x38326b&&(this['activeMarkers']['includes'](_0x2f80fe['markerName'])?_0x5c6871['writer']['addClass']('ck-suggestion-marker--active',_0x355b98):_0x5c6871['writer']['removeClass']('ck-suggestion-marker--active',_0x355b98));for(const _0x2abf84 of _0x1a08c8['model']['createRangeIn'](_0x2f80fe['item'])['getItems']())_0x5c6871['consumable']['consume'](_0x2abf84,_0x1a7bb9['name']);_0x5c6871['consumable']['consume'](_0x2f80fe['item'],_0x1a7bb9['name']);}};_0x1a08c8['conversion']['for']('dataDowncast')['add'](_0xfda30c=>{_0xfda30c['on']('addMarker:suggestion:formatBlock',(_0x2e1f73,_0x168272,_0x4043b5)=>{_0x4043b5['options']['showSuggestionHighlights']&&_0x47df21({'showActiveMarkers':!0x1})(_0x2e1f73,_0x168272,_0x4043b5);},{'priority':'highest'});}),_0x1a08c8['conversion']['for']('dataDowncast')['add'](_0x251a88=>{_0x251a88['on']('addMarker:suggestion:attribute',(_0x5bcf27,_0x12f1e3,_0xc196e7)=>{_0xc196e7['options']['showSuggestionHighlights']&&_0x47df21({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5bcf27,_0x12f1e3,_0xc196e7);},{'priority':'highest'});}),_0x1a08c8['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4c15e4,_0x2885f9)=>_0x2885f9['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4c15e4['substr'](0xb)}}),_0x1a08c8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x32df01,{writer:_0xd65c53})=>{let _0x1e9600='suggestion:'+_0x32df01['getAttribute']('suggestion-type')+':'+_0x32df01['getAttribute']('id');return _0x32df01['getAttribute']('marker-count')&&(_0x1e9600+=':'+_0x32df01['getAttribute']('marker-count')),_0xd65c53['createElement']('$marker',{'data-name':_0x1e9600});}}),_0x1a08c8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1a08c8['conversion']['for']('editingDowncast')['add'](_0x539a41=>{_0x539a41['on']('addMarker:suggestion:formatBlock',_0x47df21(),{'priority':'high'});}),_0x1a08c8['conversion']['for']('editingDowncast')['add'](_0x94badc=>{_0x94badc['on']('addMarker:suggestion:attribute',_0x47df21({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1a08c8['conversion']['for']('editingDowncast')['add'](_0x550ca9=>{_0x550ca9['on']('removeMarker:suggestion:formatBlock',(_0x4850ac,_0x5a6aaf,_0x219b94)=>{const _0x11e085=_0x219b94['mapper']['markerNameToElements'](_0x5a6aaf['markerName']);if(_0x11e085){for(const _0x433bdf of _0x11e085)_0x433bdf['getCustomProperty']('addHighlight')||(_0x219b94['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x433bdf),_0x219b94['writer']['removeAttribute']('data-suggestion',_0x433bdf),_0x219b94['mapper']['unbindElementFromMarkerName'](_0x433bdf,_0x5a6aaf['markerName']));}},{'priority':'high'});}),_0x1a08c8['conversion']['for']('editingDowncast')['add'](_0x3613aa=>{_0x3613aa['on']('removeMarker:suggestion:attribute',(_0x3489ab,_0x40297c,_0xa349da)=>{const _0x4c696f=_0xa349da['mapper']['markerNameToElements'](_0x40297c['markerName']);if(!_0x4c696f)return;const {id:_0x24316f}=this['_splitMarkerName'](_0x40297c['markerName']),_0x5a6bd1=this['_suggestions']['get'](_0x24316f),_0x59ed45=this['_getAttributeKey'](_0x5a6bd1);if(this['_isBlockAttribute'](_0x59ed45)){for(const _0x4c5452 of _0x4c696f)_0x4c5452['getCustomProperty']('addHighlight')||(_0xa349da['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4c5452),_0xa349da['writer']['removeAttribute']('data-suggestion',_0x4c5452),_0xa349da['mapper']['unbindElementFromMarkerName'](_0x4c5452,_0x40297c['markerName']));}},{'priority':'high'});}),_0x1a08c8['model']['document']['registerPostFixer'](_0x22b325=>{let _0x25087e=!0x1;const _0x2cf06f=Array['from'](_0x1a08c8['model']['document']['differ']['getChangedMarkers']()),_0x2ad344=new Set();for(const {name:_0xe8ba95,data:_0x1c1379}of _0x2cf06f){const {group:_0xa66810,type:_0x189da6,subType:_0xba6b08,id:_0x5d4726}=this['_splitMarkerName'](_0xe8ba95);if('suggestion'!==_0xa66810)continue;const _0x34dc96=this['_suggestions']['get'](_0x5d4726);if(null!=_0x1c1379['newRange']){'formatInline'==_0x189da6&&(_0x25087e=_0x25087e||Et(_0x1c1379['newRange'],_0xe8ba95,_0x22b325,_0x1a08c8['model']['schema']));const _0x573923='attribute'==_0x189da6&&this['_isBlockAttribute'](_0xba6b08['split']('|')[0x0]);if(_0x1c1379['newRange']['isCollapsed']||'$graveyard'==_0x1c1379['newRange']['root']['rootName']||'formatBlock'==_0x189da6&&!Ut(_0x1c1379['newRange'])||_0x573923&&!Ut(_0x1c1379['newRange'])||'deletion'==_0x189da6&&!(!Tt(_0x5585e7=_0x1c1379['newRange'])&&!function(_0x58739a){return _0x58739a['start']['parent']==_0x58739a['end']['nodeBefore']&&_0x58739a['start']['isAtEnd'];}(_0x5585e7)))_0x22b325['removeMarker'](_0xe8ba95),_0x25087e=!0x0;else{if(!_0x34dc96||!_0x34dc96['isInContent'])continue;_0x2ad344['add'](_0x34dc96);}}}var _0x5585e7;return _0x2ad344['size']>0x0&&(_0x25087e=!!this['_joinWithAdjacentSuggestions'](_0x2ad344)||_0x25087e),_0x25087e;}),_0x1a08c8['model']['document']['registerPostFixer'](_0x5f25fb=>{let _0x122bd3=!0x1;for(const _0x42d91f of _0x1a08c8['model']['document']['differ']['getChanges']())if('insert'==_0x42d91f['type'])for(const _0x3cd1eb of this['_suggestions']['values']()){if(_0x3cd1eb['isMultiRange']||!_0x3cd1eb['isInContent'])continue;const _0xa04607='formatBlock'==_0x3cd1eb['type'],_0x588089=this['_getAttributeKey'](_0x3cd1eb),_0x1c4e1f=_0x588089&&this['_isBlockAttribute'](_0x588089);if(!_0xa04607&&!_0x1c4e1f)continue;const _0x4797d9=_0x3cd1eb['getFirstRange']();if(_0x4797d9['start']['parent']!=_0x4797d9['end']['parent']&&!_0x4797d9['end']['isAtEnd']){const _0x1b8d17=_0x1a08c8['model']['createPositionAt'](_0x4797d9['start']['nodeAfter'],'end'),_0x505a58=_0x1a08c8['model']['createRange'](_0x4797d9['start'],_0x1b8d17);_0x5f25fb['updateMarker'](_0x3cd1eb['getFirstMarker'](),{'range':_0x505a58}),_0x122bd3=!0x0;}}return _0x122bd3;}),_0x1a08c8['model']['document']['registerPostFixer'](_0x137b24=>this['_processAttributeChanges'](_0x137b24)),_0x1a08c8['model']['document']['registerPostFixer'](_0x3e9828=>!_0x3e9828['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3e9828)),_0x1a08c8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1a08c8['model']['document']['on']('change:data',(_0x483956,_0x22ad26)=>{if(!_0x22ad26['isLocal']||_0x22ad26['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x505731=_0x1a08c8['model']['document']['differ']['getChanges']();if(0x0==_0x505731['length'])return;const _0x3935dc=[],_0x1f59cc=_0x505731['filter'](_0x46740d=>'attribute'==_0x46740d['type']),_0x4f94d9=_0x505731['filter'](_0xe60b5b=>'insert'==_0xe60b5b['type']&&'$text'!=_0xe60b5b['name']);for(const _0x58697a of _0x1f59cc)this['_isRegisteredAttribute'](_0x58697a['attributeKey'])&&_0x3935dc['push']({'key':_0x58697a['attributeKey'],'newValue':_0x58697a['attributeNewValue'],'oldValue':_0x58697a['attributeOldValue'],'range':Ot(_0x58697a['range'],_0x1a08c8['model'])});for(const _0x132379 of _0x4f94d9){if('rename'!=_0x132379['action']&&'refresh'!=_0x132379['action'])continue;const _0x100591=Gt(_0x132379['position']['nodeAfter'],_0x1a08c8['model']),_0x2f45d1=_0x132379['before'];'rename'==_0x132379['action']&&_0x3935dc['push']({'key':m,'newValue':_0x132379['name'],'oldValue':_0x2f45d1['name'],'range':_0x100591});for(const [_0x4b2c03,_0x13fb73]of _0x2f45d1['attributes']){if(!this['_isRegisteredAttribute'](_0x4b2c03))continue;const _0x361ec5=_0x132379['attributes']['get'](_0x4b2c03);_0x13fb73!==_0x361ec5&&_0x3935dc['push']({'key':_0x4b2c03,'newValue':_0x361ec5,'oldValue':_0x13fb73,'range':_0x100591});}for(const [_0x105da3,_0x6539e]of _0x132379['attributes'])this['_isRegisteredAttribute'](_0x105da3)&&(_0x2f45d1['attributes']['has'](_0x105da3)||_0x3935dc['push']({'key':_0x105da3,'newValue':_0x6539e,'oldValue':null,'range':_0x100591}));}0x0!=_0x3935dc['length']&&_0x1a08c8['model']['enqueueChange'](_0x22ad26,_0xa21dd4=>{const _0x32a793=_0x13ae16();for(const {range:_0x22c4c8,key:_0x551081,oldValue:_0x55e31d,newValue:_0x7472e1}of _0x3935dc)this['markAttributeChange'](_0x22c4c8,_0x551081,_0x55e31d,_0x7472e1,{'groupId':_0x32a793});this['_reduceExistingSuggestions'](_0xa21dd4,_0x3935dc);});},{'priority':'lowest'}),_0x1a08c8['model']['markers']['on']('update:suggestion',(_0x4fac81,_0x433b85,_0x5c53a3)=>{if(null==_0x5c53a3){const {id:_0x3b917b}=this['_splitMarkerName'](_0x433b85['name']),_0x26a2f2=this['_suggestions']['get'](_0x3b917b);_0x26a2f2&&_0x26a2f2['addMarkerName'](_0x433b85['name']);}}),_0x1a08c8['model']['document']['on']('change:data',()=>{const _0x2e5095=Array['from'](_0x1a08c8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x54c451=>'suggestion'===this['_splitMarkerName'](_0x54c451['name'])['group']);if(0x0===_0x2e5095['length'])return;_0x2e5095['sort']((_0x4d7bb1,_0xb020a1)=>{const _0x264f51=_0x4d7bb1['data']['oldRange'],_0x202842=_0xb020a1['data']['oldRange'];return null===_0x264f51&&null===_0x202842?0x0:null===_0x264f51&&null!==_0x202842?-0x1:null!==_0x264f51&&null===_0x202842?0x1:_0x264f51['start']['isBefore'](_0x202842['start'])?-0x1:0x1;});const _0x1bb9d5=new Set(),_0x27e822=new Set();for(const {name:_0x2e2537,data:_0x52690c}of _0x2e5095){const {id:_0x80565d}=this['_splitMarkerName'](_0x2e2537);if(null===_0x52690c['oldRange']){const _0x1ce51a=this['_handleNewSuggestionMarker'](_0x2e2537);_0x27e822['add'](_0x1ce51a);}else{const _0xddfdec=this['_suggestions']['get'](_0x80565d);null!==_0x52690c['newRange']||_0xddfdec['isInContent']?(_0x1bb9d5['add'](_0xddfdec['head']),_0x27e822['add'](_0xddfdec)):this['_removeSuggestion'](_0xddfdec);}}_0x27e822['size']>0x0&&this['_refreshSuggestionsChain'](_0x27e822);for(const _0xdea8f2 of _0x1bb9d5)this['fire']('suggestionChanged',_0xdea8f2);}),_0x1a08c8['model']['on']('applyOperation',(_0x150976,_0x5bd5e9)=>{const _0x5d5e95=_0x5bd5e9[0x0];if(!this['_suggestions']['size'])return;if(!_0x5d5e95['isDocumentOperation'])return;if(_0x5d5e95['batch']['isUndo']||!_0x5d5e95['batch']['isLocal'])return;let _0x1327cf,_0x1ce16d;switch(_0x5d5e95['type']){case'insert':_0x1327cf=_0x1a08c8['model']['createPositionAt'](_0x5d5e95['position']),_0x1ce16d=_0x1327cf['getShiftedBy'](_0x5d5e95['howMany']);break;case'split':_0x1327cf=_0x1a08c8['model']['createPositionAt'](_0x5d5e95['splitPosition']),_0x1ce16d=_0x1a08c8['model']['createPositionAt'](_0x5d5e95['moveTargetPosition']);break;case'move':_0x1327cf=_0x1a08c8['model']['createPositionAt'](_0x5d5e95['targetPosition']),_0x1ce16d=_0x1327cf['getShiftedBy'](_0x5d5e95['howMany']);break;default:return;}const _0x49b1a9=_0x1a08c8['model']['createRange'](_0x1327cf,_0x1ce16d);_0x1a08c8['model']['change'](()=>{for(const {suggestion:_0x29f60d,meta:_0x5f5ccb}of this['_findSuggestions'](_0x49b1a9)){if(_0x29f60d['isMultiRange'])continue;if('formatInline'==_0x29f60d['type'])continue;const _0x13be50=this['_getAttributeKey'](_0x29f60d);if(_0x13be50&&this['_isBlockAttribute'](_0x13be50)&&'split'!=_0x5d5e95['type'])continue;const _0xc00c90=_0x29f60d['data']&&_0x29f60d['data']['multipleBlocks'];('formatBlock'!=_0x29f60d['type']||'split'==_0x5d5e95['type']&&!_0xc00c90)&&(_0x5f5ccb['containsRangeInObject']||'insertion'==_0x29f60d['type']&&_0x5f5ccb['isOwn']||_0x29f60d['getFirstRange']()['containsRange'](_0x49b1a9)&&this['_breakSuggestionMarker'](_0x29f60d,_0x1327cf,_0x1ce16d));}});},{'priority':'lowest'}),_0x1a08c8['model']['on']('deleteContent',(_0x1089d4,_0x10e449)=>{const _0x2ce178=_0x10e449[0x0],_0x272240=_0x10e449[0x1];if(_0x272240&&_0x272240['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2ce178['isCollapsed'])return;const _0x1a589e=_0x1a08c8['model']['schema'],{start:_0x2d967a,end:_0x5e821e}=_0x2ce178['getFirstRange'](),_0x58f8ce=_0x2d967a['nodeAfter']&&_0x1a589e['isLimit'](_0x2d967a['nodeAfter'])?null:_0x1a589e['getNearestSelectionRange'](_0x2d967a,'forward'),_0x309c8f=_0x5e821e['nodeBefore']&&_0x1a589e['isLimit'](_0x5e821e['nodeBefore'])?null:_0x1a589e['getNearestSelectionRange'](_0x5e821e,'backward'),_0x5e5bf9=_0x1a08c8['model']['createRange'](_0x58f8ce?_0x58f8ce['start']:_0x2d967a,_0x309c8f?_0x309c8f['end']:_0x5e821e);_0x1a08c8['model']['change'](_0x57a4fb=>{this['markDeletion'](_0x5e5bf9);const _0x8e02=_0x1a08c8['model']['schema']['getNearestSelectionRange'](_0x5e5bf9['start']);_0x2ce178['is']('documentSelection')?_0x57a4fb['setSelection'](_0x8e02):_0x2ce178['setTo'](_0x8e02);}),_0x1089d4['stop']();},{'priority':_0x2ab9ee['normal']+0xa}),_0x1a08c8['model']['on']('insertContent',(_0x207f10,_0x4e40f4)=>{const _0x566f4e=_0x4e40f4[_0x4e40f4['length']-0x1];_0x566f4e&&_0x566f4e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1a08c8['model']['change'](()=>{let _0x341c1a=_0x1a08c8['model']['insertContent'](_0x4e40f4[0x0],_0x4e40f4[0x1],_0x4e40f4[0x2],{'forceDefaultExecution':!0x0});if(!_0x341c1a)return;_0x207f10['return']=_0x341c1a['clone']();const _0x1e839c=_0x341c1a['end']['nodeBefore'],_0x52a7b0=_0x1a08c8['model']['schema'];_0x1e839c&&_0x52a7b0['isBlock'](_0x1e839c)&&!_0x52a7b0['isObject'](_0x1e839c)&&(_0x341c1a=_0x1a08c8['model']['createRange'](_0x341c1a['start'],_0x1a08c8['model']['createPositionAt'](_0x1e839c,'end'))),this['markInsertion'](_0x341c1a);}),_0x207f10['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x53f472=new $(_0x1a08c8,this['_suggestions']);_0x1a08c8['commands']['add']('acceptSuggestion',_0x53f472),this['enableCommand']('acceptSuggestion');const _0x2dff7e=new B(_0x1a08c8,this['_suggestions']);_0x1a08c8['commands']['add']('discardSuggestion',_0x2dff7e),this['enableCommand']('discardSuggestion'),_0x1a08c8['commands']['add']('acceptAllSuggestions',new x(_0x1a08c8,_0x53f472,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1a08c8['commands']['add']('discardAllSuggestions',new x(_0x1a08c8,_0x2dff7e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1a08c8['commands']['add']('acceptSelectedSuggestions',new R(_0x1a08c8,_0x53f472,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1a08c8['commands']['add']('discardSelectedSuggestions',new R(_0x1a08c8,_0x2dff7e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x523cc7=_0x1a08c8['plugins']['get']('CommentsRepository');this['listenTo'](_0x523cc7,'addComment',(_0x405e2f,{threadId:_0x39dd4e})=>{const _0x2e95c3=this['_suggestions']['get'](_0x39dd4e);_0x2e95c3&&_0x2e95c3['commentThread']&&0x1===_0x2e95c3['commentThread']['length']&&this['_updateSuggestionData'](_0x39dd4e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x523cc7,'removeComment',(_0x4e92d1,{threadId:_0x514530})=>{const _0x59a450=this['_suggestions']['get'](_0x514530);_0x59a450&&_0x59a450['commentThread']&&!_0x59a450['commentThread']['length']&&this['_updateSuggestionData'](_0x514530,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x104e22){if(this['_adapter'])throw new _0x207006('track-changes-adapter-already-set',this);this['_adapter']=_0x104e22;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x56ea16=!0x1,toJSON:_0x123c6f=!0x1}={}){const _0x5e62ba=[];for(const _0x25942c of this['_suggestions']['values']())_0x56ea16&&!_0x25942c['isInContent']||_0x5e62ba['push'](_0x25942c);return _0x123c6f?_0x5e62ba['map'](_0x50ea02=>_0x50ea02['toJSON']()):_0x5e62ba;}['getSuggestion'](_0x1a6dae){const _0x514b14=this['_suggestions']['get'](_0x1a6dae);if(!_0x514b14)throw new _0x207006('track-changes-suggestion-not-found',this);return _0x514b14;}['hasSuggestion'](_0x41d1e8){return this['_suggestions']['has'](_0x41d1e8);}['addSuggestionData'](_0x49b487){const {authorId:_0xab87b0,id:_0x1ee73e,attributes:_0x315563}=_0x49b487,[_0x1d114a,_0x14b1a9]=_0x49b487['type']['split'](':'),_0x2a5fd7=this['_suggestions']['get'](_0x1ee73e)||this['_createSuggestion'](_0x1d114a,_0x14b1a9,_0x1ee73e,_0xab87b0,_0x315563);if(this['_addThreadToSuggestion'](_0x2a5fd7),this['_checkSuggestionCorrectness'](_0x2a5fd7,_0x1d114a,_0x14b1a9||null,_0xab87b0),_0x2a5fd7['createdAt']=_0x49b487['createdAt'],_0x2a5fd7['_isDataLoaded']=!0x0,_0x315563&&_0x315563['@external']){const _0x35e53a=_0x315563['@external'],_0x20f9f1=this['_getExternalAuthor'](_0x35e53a['authorName']);_0x2a5fd7['authoredAt']=_0x35e53a['createdAt'],_0x2a5fd7['author']=_0x20f9f1,_0x2a5fd7['isExternal']=!0x0;}else _0x2a5fd7['authoredAt']=_0x49b487['createdAt'];switch(_0x49b487['data']&&(_0x2a5fd7['data']=_0x49b487['data']),_0x49b487['attributes']&&(_0x2a5fd7['attributes']=_0x49b487['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2a5fd7['_saved']=!0x0),this['_suggestionState']['get'](_0x2a5fd7)){case'notReady':this['_suggestionState']['set'](_0x2a5fd7,'dataReady');break;case'markerReady':_0x2a5fd7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2a5fd7])),this['_refreshSuggestionsChain'](new Set([_0x2a5fd7])),this['_suggestionState']['set'](_0x2a5fd7,'ready'),this['fire']('suggestionLoaded',_0x2a5fd7)):this['_suggestionState']['set'](_0x2a5fd7,'removed');}return _0x2a5fd7;}['acceptSuggestion'](_0xb3ede1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x103508 of _0xb3ede1['getAllAdjacentSuggestions']())_0x103508['accept']();});});}['discardSuggestion'](_0x61c6db){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x537be9 of _0x61c6db['getAllAdjacentSuggestions']())_0x537be9['discard']();});});}['enableCommand'](_0x533343,_0x4a6e83){const _0x25045b=this['editor']['commands']['get'](_0x533343);if(!_0x25045b)throw new _0x207006('track-changes-command-not-found',this,{'commandName':_0x533343});if(this['_enabledCommands']['has'](_0x25045b))throw new _0x207006('track-changes-enable-command-twice',this,{'commandName':_0x533343});this['_enabledCommands']['add'](_0x25045b),_0x4a6e83&&_0x25045b['on']('execute',(_0x4ddd6c,_0x5bf342)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5bf342['length']>0x0&&_0x5bf342[_0x5bf342['length']-0x1]&&_0x5bf342[_0x5bf342['length']-0x1]['forceDefaultExecution']?_0x5bf342['pop']():(_0x4ddd6c['return']=_0x4a6e83((..._0x5be8a9)=>_0x25045b['execute'](..._0x5be8a9,{'forceDefaultExecution':!0x0}),..._0x5bf342),_0x4ddd6c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3788ed){let _0x334bae,_0x44ea93;const _0x35b388=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x334bae=_0x3788ed();}catch(_0x2613f1){_0x44ea93=_0x2613f1;}return _0x35b388||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x44ea93&&_0x207006['rethrowUnexpectedError'](_0x44ea93,this),_0x334bae;}['markInsertion'](_0x3c2b59,_0x4e9d45=null,_0x257b73={}){if(_0x3c2b59['isCollapsed'])return null;const _0x2d8156=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1e2519,meta:_0x428534}of this['_findSuggestions'](_0x3c2b59,'insertion'))if(_0x428534['isOwn']){if(!_0x428534['isNextTo']){if(_0x428534['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x1e2519,_0x257b73))continue;return _0x1e2519;}if(Lt(_0x1e2519,_0x257b73))return _0x1e2519;this['_breakSuggestionMarker'](_0x1e2519,_0x3c2b59['start'],_0x3c2b59['end']);break;}if(_0x4e9d45==_0x1e2519['subType']&&Lt(_0x1e2519,_0x257b73)){const _0x4a8711=_0x1e2519['getFirstRange']();return _0x4a8711['start']['isEqual'](_0x3c2b59['end'])?this['_setSuggestionRange'](_0x1e2519,this['_model']['createRange'](_0x3c2b59['start'],_0x4a8711['end'])):this['_setSuggestionRange'](_0x1e2519,this['_model']['createRange'](_0x4a8711['start'],_0x3c2b59['end'])),_0x1e2519;}}const _0x4505bd=_0x13ae16(),_0x518f2c=_0x2d8156['id'],_0xe358d3=_0x4e9d45?'insertion:'+_0x4e9d45:'insertion',_0x2f4725=this['_setSuggestionData']({'id':_0x4505bd,'type':_0xe358d3,'createdAt':new Date(),'authorId':_0x518f2c,'attributes':_0x257b73});return this['_addSuggestionMarker'](_0xe358d3,_0x4505bd,_0x518f2c,_0x3c2b59),_0x2f4725;}['markMultiRangeInsertion'](_0x4291ef,_0x1920a5='multi',_0x48dbec={}){const _0x21f01a=this['editor']['plugins']['get']('Users')['me'],_0x301a5a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1920a5,'join');for(const _0x26f875 of this['getSuggestions']())if(_0x26f875['author']['id']==_0x21f01a['id']&&'insertion'==_0x26f875['type']&&_0x26f875['subType']==_0x1920a5&&Lt(_0x26f875,_0x48dbec)&&(_0x301a5a(_0x26f875['getRanges'](),_0x4291ef)||_0x301a5a(_0x4291ef,_0x26f875['getRanges']()))){for(const _0xc1923d of _0x4291ef)_0x26f875['addRange'](_0xc1923d);return _0x26f875;}for(const {suggestion:_0x5e9ed7,meta:_0x672646}of this['_findSuggestions'](_0x4291ef,'insertion')){if(!_0x672646['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x672646['containsRangeInObject'])continue;if(!Lt(_0x5e9ed7,_0x48dbec))continue;let _0x11dfd0=!0x0;for(const _0x198af5 of _0x5e9ed7['getRanges']())for(const _0x1ef5b6 of _0x4291ef)if(!_0x198af5['containsRange'](_0x1ef5b6)){_0x11dfd0=!0x1;break;}if(_0x11dfd0)return _0x5e9ed7;}const _0x31fca4=_0x13ae16(),_0x424e5f=_0x21f01a['id'],_0x178988='insertion:'+_0x1920a5,_0x32b768=this['_setSuggestionData']({'id':_0x31fca4,'type':_0x178988,'createdAt':new Date(),'authorId':_0x424e5f,'attributes':_0x48dbec});for(const _0x510056 of _0x4291ef)this['_addSuggestionMarker'](_0x178988,_0x31fca4,_0x424e5f,_0x510056,u['getMultiRangeId']());return _0x32b768;}['markInlineFormat'](_0x312dbd,_0x58efeb,_0x592766=null,_0x3addc9={}){if(_0x592766=_0x592766||Vt(_0x58efeb),_0x312dbd['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1e3758=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x592766,'accept');return this['forceDefaultExecution'](()=>_0x1e3758([_0x312dbd],_0x58efeb,_0x3addc9)),null;}const _0x202f1f=this['editor']['plugins']['get']('Users')['me'],_0x70e68c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x473127,meta:_0x29a94b}of this['_findSuggestions'](_0x312dbd,'insertion'))_0x29a94b['isOwn']&&!_0x29a94b['isInsideObject']&&_0x70e68c['push'](..._0x473127['getRanges']());}const _0x1492e2=function(_0x3f5384,_0x1a2b7b){const _0x419905=[];for(const _0x1a566d of _0x1a2b7b){const _0x523168=_0x3f5384['getIntersection'](_0x1a566d);_0x523168&&_0x419905['push'](_0x523168);}return _0x419905;}(_0x312dbd,_0x70e68c),_0x5ce9b0=function(_0x1e127e,_0x93f951){const _0x34b6da=[_0x1e127e];for(const _0x4a6ad7 of _0x93f951){let _0xeb562=0x0;for(;_0xeb562<_0x34b6da['length'];){const _0x54469d=_0x34b6da[_0xeb562]['getDifference'](_0x4a6ad7);_0x34b6da['splice'](_0xeb562,0x1,..._0x54469d),_0xeb562+=_0x54469d['length'];}}return _0x34b6da;}(_0x312dbd,_0x70e68c);_0x1492e2['length']&&this['_model']['change'](()=>{for(const _0xf5e93a of _0x1492e2){const _0x43adc9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x592766,'accept');this['forceDefaultExecution'](()=>_0x43adc9([_0xf5e93a],_0x58efeb,_0x3addc9));}});for(const _0x30a5b2 of _0x5ce9b0){let _0x36f520=null,_0x466a74=_0x30a5b2['start'],_0x1f8ab8=_0x30a5b2['end'];for(const {suggestion:_0x34a1dc,meta:_0x5bd13f}of this['_findSuggestions'](_0x30a5b2,'formatInline')){if(!_0x5bd13f['isOwn'])continue;if(_0x34a1dc['subType']!=_0x592766)continue;if(!Lt(_0x34a1dc,_0x3addc9))continue;const _0x9cc255=_0x34a1dc['getFirstRange']();if(_0x9cc255['containsRange'](_0x30a5b2,!0x0))return null;_0x466a74=_0x466a74['isBefore'](_0x9cc255['start'])?_0x466a74:_0x9cc255['start'],_0x1f8ab8=_0x1f8ab8['isAfter'](_0x9cc255['end'])?_0x1f8ab8:_0x9cc255['end'],_0x36f520?_0x9cc255['start']['isBefore'](_0x36f520['getFirstRange']()['start'])?(_0x36f520['removeMarkers'](),_0x36f520=_0x34a1dc):_0x34a1dc['removeMarkers']():_0x36f520=_0x34a1dc;}const _0xd36ad5=this['_model']['createRange'](_0x466a74,_0x1f8ab8);if(_0x36f520)this['_setSuggestionRange'](_0x36f520,_0xd36ad5);else{const _0x5de01d=_0x13ae16(),_0x34ed71=_0x202f1f['id'];this['_setSuggestionData']({'id':_0x5de01d,'type':'formatInline:'+_0x592766,'data':_0x58efeb,'createdAt':new Date(),'authorId':_0x34ed71,'attributes':_0x3addc9}),this['_addSuggestionMarker']('formatInline:'+_0x592766,_0x5de01d,_0x34ed71,_0xd36ad5);}}return null;}['markBlockFormat'](_0x4854ae,_0x1b4770,_0x49a25e=[],_0x3b4e12=null,_0x46d42b={}){_0x1b4770['formatGroupId']||(_0x1b4770['formatGroupId']=_0x1b4770['commandName']),_0x1b4770['multipleBlocks']=_0x4854ae['is']('range'),_0x3b4e12=_0x3b4e12||Vt(_0x1b4770);const _0x11b699=_0x49a25e['map'](_0x2fc5d2=>Gt(_0x2fc5d2,this['_model'])),_0x2a0cd4=_0x4854ae['is']('range')?_0x4854ae:Gt(_0x4854ae,this['_model']);if('never'===this['_trackFormatChanges']){const _0x39cfc9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b4e12,'accept');return this['forceDefaultExecution'](()=>_0x39cfc9([_0x2a0cd4],_0x1b4770,_0x46d42b)),null;}_0x11b699['push'](_0x2a0cd4);let _0x3f3c46=!0x0;for(const _0x4b36bc of _0x11b699)if(!this['_rangeIsInLocalUserInsertion'](_0x4b36bc)){_0x3f3c46=!0x1;break;}if(_0x3f3c46&&'always'!==this['_trackFormatChanges']){const _0x3a3e2f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b4e12,'accept');return this['forceDefaultExecution'](()=>_0x3a3e2f([_0x2a0cd4],_0x1b4770,_0x46d42b)),null;}let _0x582b66=null,_0x5f29cf=_0x2a0cd4['start'],_0x47643d=_0x2a0cd4['end'];for(const {suggestion:_0x3308e1,meta:_0x2e934d}of this['_findSuggestions'](_0x2a0cd4,'formatBlock')){if(!_0x2e934d['isOwn'])continue;if(_0x2e934d['isNextTo']||_0x2e934d['containsRangeInObject']||_0x2e934d['isInsideObject'])continue;if(_0x3308e1['data']['formatGroupId']!=_0x1b4770['formatGroupId'])continue;if(!Lt(_0x3308e1,_0x46d42b))continue;const _0x20c6de=_0x3308e1['getFirstRange']();if(_0x3308e1['subType']==_0x3b4e12){if(_0x20c6de['containsRange'](_0x2a0cd4,!0x0))return null;_0x5f29cf=_0x5f29cf['isBefore'](_0x20c6de['start'])?_0x5f29cf:_0x20c6de['start'],_0x47643d=_0x47643d['isAfter'](_0x20c6de['end'])?_0x47643d:_0x20c6de['end'],_0x582b66?_0x20c6de['start']['isBefore'](_0x582b66['getFirstRange']()['start'])?(_0x582b66['removeMarkers'](),_0x582b66=_0x3308e1):_0x3308e1['removeMarkers']():_0x582b66=_0x3308e1;}else{const _0x392257=_0x2a0cd4['getIntersection'](_0x20c6de);this['_cutOutSuggestionMarker'](_0x3308e1,_0x392257);}}const _0x313b8b=this['editor']['plugins']['get']('Users')['me'],_0x130c92=_0x13ae16(),_0x2f4b14=_0x313b8b['id'];if(_0x582b66)return this['_setSuggestionRange'](_0x582b66,this['_model']['createRange'](_0x5f29cf,_0x47643d)),_0x582b66;{const _0x25e32c=this['_setSuggestionData']({'id':_0x130c92,'type':'formatBlock:'+_0x3b4e12,'data':_0x1b4770,'createdAt':new Date(),'authorId':_0x2f4b14,'attributes':_0x46d42b});return this['_addSuggestionMarker']('formatBlock:'+_0x3b4e12,_0x130c92,_0x2f4b14,this['_model']['createRange'](_0x5f29cf,_0x47643d)),_0x25e32c;}}['markMultiRangeBlockFormat'](_0x88e34,_0x243ae1,_0x5c1d4f=[],_0xe55183=null,_0x3c3d23={}){_0x243ae1['formatGroupId']||(_0x243ae1['formatGroupId']=_0x243ae1['commandName']);const _0x1b6ab7=_0x88e34[0x0];_0x243ae1['multipleBlocks']=_0x1b6ab7['is']('range'),_0xe55183=_0xe55183||Vt(_0x243ae1);const _0x5a2cb8=_0x5c1d4f['map'](_0x4f4344=>Gt(_0x4f4344,this['_model'])),_0x529dfe=_0x1b6ab7['is']('range')?_0x88e34:_0x88e34['map'](_0x288ceb=>Gt(_0x288ceb,this['_model']));if('never'===this['_trackFormatChanges']){const _0x35fdf0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe55183,'accept');return this['forceDefaultExecution'](()=>_0x35fdf0(_0x529dfe,_0x243ae1,_0x3c3d23)),null;}_0x5a2cb8['push'](..._0x529dfe);let _0x1b5916=!0x0;for(const _0x31aa17 of _0x5a2cb8)if(!this['_rangeIsInLocalUserInsertion'](_0x31aa17)){_0x1b5916=!0x1;break;}if(_0x1b5916&&'always'!==this['_trackFormatChanges']){const _0x3b40a2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe55183,'accept');return this['forceDefaultExecution'](()=>_0x3b40a2(_0x529dfe,_0x243ae1,_0x3c3d23)),null;}const _0x2df1e2=this['editor']['plugins']['get']('Users')['me'];for(const _0x2150f1 of this['getSuggestions']()){if(_0x2150f1['author']['id']!=_0x2df1e2['id'])continue;if('formatBlock'!=_0x2150f1['type']||_0x2150f1['data']['formatGroupId']!=_0x243ae1['formatGroupId'])continue;if(!Lt(_0x2150f1,_0x3c3d23))continue;const _0x2b9803=_0x2150f1['subType']==_0xe55183;for(let _0x41d4a3=0x0;_0x41d4a3<_0x529dfe['length'];_0x41d4a3++){const _0x3a6c9e=_0x529dfe[_0x41d4a3];for(const _0x39d21f of _0x2150f1['getMarkers']()){const _0x5f717d=_0x39d21f['getRange']();if(_0x3a6c9e['isEqual'](_0x5f717d)){_0x2b9803?(_0x529dfe['splice'](_0x41d4a3,0x1),_0x41d4a3--):_0x2150f1['removeMarker'](_0x39d21f['name']);break;}}}}if(0x0==_0x529dfe['length'])return null;const _0x3902d3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe55183,'join');for(const _0x2c3665 of this['getSuggestions']())if(_0x2c3665['author']['id']==_0x2df1e2['id']&&'formatBlock'==_0x2c3665['type']&&_0x2c3665['data']['formatGroupId']==_0x243ae1['formatGroupId']&&_0x2c3665['subType']==_0xe55183&&Lt(_0x2c3665,_0x3c3d23)&&(_0x3902d3(_0x2c3665['getRanges'](),_0x529dfe)||_0x3902d3(_0x529dfe,_0x2c3665['getRanges']()))){for(const _0x1ae844 of _0x529dfe)_0x2c3665['addRange'](_0x1ae844);return _0x2c3665;}const _0x2682c3=_0x13ae16(),_0x2db421=_0x2df1e2['id'],_0x3659b1='formatBlock:'+_0xe55183,_0x2bd218=this['_setSuggestionData']({'id':_0x2682c3,'type':_0x3659b1,'data':_0x243ae1,'createdAt':new Date(),'authorId':_0x2db421,'attributes':_0x3c3d23});for(const _0x56a9d2 of _0x529dfe)this['_addSuggestionMarker'](_0x3659b1,_0x2682c3,_0x2db421,_0x56a9d2,u['getMultiRangeId']());return _0x2bd218;}['markDeletion'](_0x224b4b,_0x28ce51=null,_0x37dfc3={}){if(_0x224b4b['isCollapsed'])return null;const _0x449b1c=this['editor']['plugins']['get']('Users')['me'],_0x86f8de=new _0x25d98f(_0x224b4b['start'],_0x224b4b['end']);for(const {suggestion:_0xfb2a1c,meta:_0x1c2fb1}of this['_findSuggestions'](_0x86f8de,'insertion'))if(_0x1c2fb1['isOwn']&&!_0x1c2fb1['isNextTo']){if(_0xfb2a1c['isMultiRange']){const _0x3b408e=_0xfb2a1c['getRanges']()['filter'](_0x32b419=>'$graveyard'!=_0x32b419['root']['rootName']);_0x3b408e['every'](_0xa4f70c=>_0x86f8de['containsRange'](_0xa4f70c,!0x0))&&_0xfb2a1c['discard']();if(_0x3b408e['some'](_0x53cec1=>_0x53cec1['containsRange'](_0x86f8de,!0x0))){const _0x37480a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28ce51,'accept');return this['forceDefaultExecution'](()=>_0x37480a([_0x86f8de],null,_0x37dfc3)),null;}}else{const _0x3373fe=_0x86f8de['getIntersection'](_0xfb2a1c['getFirstRange']());null!==_0x3373fe&&_0xfb2a1c['_onDiscard']([_0x3373fe],null,_0x37dfc3);}}if(_0x86f8de['detach'](),_0x86f8de['isCollapsed']||'$graveyard'==_0x86f8de['root']['rootName'])return null;let _0x2a5963=null,_0x169c54=_0x86f8de['start'],_0x1b6c6c=_0x86f8de['end'];const _0x16d046=this['_findSuggestions'](_0x86f8de,'deletion');for(const {suggestion:_0x5ebb06,meta:_0x1618e9}of _0x16d046){const _0x1e1442=this['_model']['createRange'](_0x169c54,_0x1b6c6c);if(_0x1618e9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1618e9['containsRangeInObject']&&!_0x1618e9['isInsideObject'])){if(_0x5ebb06['isMultiRange']){if(!Lt(_0x5ebb06,_0x37dfc3))continue;let _0x2b6a98=!0x0;for(const _0xfed4e9 of _0x5ebb06['getRanges']()){if(_0xfed4e9['containsRange'](_0x1e1442,!0x0))return _0x5ebb06;_0x1e1442['containsRange'](_0xfed4e9)||(_0x2b6a98=!0x1);}_0x2b6a98&&_0x5ebb06['discard']();}else{const _0x20771b=_0x5ebb06['getFirstRange']();if(_0x20771b['containsRange'](_0x1e1442,!0x0))return _0x5ebb06;if(!Lt(_0x5ebb06,_0x37dfc3)){_0x1e1442['containsRange'](_0x20771b)?_0x5ebb06['removeMarkers']():_0x20771b['containsPosition'](_0x169c54)?_0x169c54=_0x20771b['end']:_0x20771b['containsPosition'](_0x1b6c6c)&&(_0x1b6c6c=_0x20771b['start']);continue;}_0x169c54=_0x169c54['isBefore'](_0x20771b['start'])?_0x169c54:_0x20771b['start'],_0x1b6c6c=_0x1b6c6c['isAfter'](_0x20771b['end'])?_0x1b6c6c:_0x20771b['end'],_0x37dfc3=Object['assign']({},_0x5ebb06['attributes']),_0x2a5963?_0x20771b['start']['isBefore'](_0x2a5963['getFirstRange']()['start'])?(_0x2a5963['removeMarkers'](),_0x2a5963=_0x5ebb06):_0x5ebb06['removeMarkers']():_0x2a5963=_0x5ebb06;}}}if(_0x2a5963)return this['_setSuggestionRange'](_0x2a5963,this['_model']['createRange'](_0x169c54,_0x1b6c6c)),_0x2a5963;{const _0x3a4aea=_0x13ae16(),_0x3558e6=this['_model']['createRange'](_0x169c54,_0x1b6c6c),_0x5538aa=_0x449b1c['id'],_0x4b2df8=_0x28ce51?'deletion:'+_0x28ce51:'deletion',_0x113455=this['_setSuggestionData']({'id':_0x3a4aea,'type':_0x4b2df8,'createdAt':new Date(),'authorId':_0x5538aa,'attributes':_0x37dfc3});return this['_addSuggestionMarker'](_0x4b2df8,_0x3a4aea,_0x5538aa,_0x3558e6),_0x113455;}}['markMultiRangeDeletion'](_0x7d2fe9,_0x2b8db7='multi',_0x5ce1d5={}){const _0x43917d=this['editor']['plugins']['get']('Users')['me'],_0x409467=_0x7d2fe9['map'](_0x5a1730=>new _0x25d98f(_0x5a1730['start'],_0x5a1730['end'])),_0x30a7b2=new Set();for(const {suggestion:_0x232093,meta:_0x1b3d07}of this['_findSuggestions'](_0x409467,'insertion'))_0x1b3d07['isOwn']&&!_0x1b3d07['isNextTo']&&_0x30a7b2['add'](_0x232093);for(const _0x45d70a of _0x30a7b2)if(_0x45d70a['isMultiRange']){const _0x1a12be=_0x45d70a['getRanges']();(!_0x45d70a['attributes']||!_0x45d70a['attributes']['skipNestingCheck'])&&(_0x1a12be['every'](_0x22b209=>_0x409467['some'](_0x458cc2=>_0x458cc2['containsRange'](_0x22b209,!0x0)))&&_0x45d70a['discard']());if(_0x409467['every'](_0x2eb933=>_0x1a12be['some'](_0x4f832e=>_0x4f832e['containsRange'](_0x2eb933,!0x0)))){const _0x17dfe3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b8db7,'accept');return this['forceDefaultExecution'](()=>_0x17dfe3(_0x7d2fe9,null,_0x5ce1d5)),null;}}else{const _0x2acb40=_0x45d70a['getFirstRange']();_0x409467['some'](_0x21dde4=>_0x21dde4['containsRange'](_0x2acb40,!0x0))&&_0x45d70a['discard']();if(_0x409467['every'](_0x461cc1=>_0x2acb40['containsRange'](_0x461cc1,!0x0))){const _0x5dad6e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b8db7,'accept');return this['forceDefaultExecution'](()=>_0x5dad6e(_0x409467,null,_0x5ce1d5)),null;}}const _0x46df84=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b8db7,'join');let _0x38fae0=null;for(const _0x18fce6 of this['getSuggestions']())if(_0x18fce6['author']['id']==_0x43917d['id']&&_0x18fce6['isInContent']&&'deletion'==_0x18fce6['type']&&_0x18fce6['subType']==_0x2b8db7&&Lt(_0x18fce6,_0x5ce1d5)&&(_0x46df84(_0x18fce6['getRanges'](),_0x409467)||_0x46df84(_0x409467,_0x18fce6['getRanges']()))){if(_0x38fae0){if(_0x18fce6['commentThread']&&_0x18fce6['commentThread']['length'])continue;for(const _0x37aa44 of _0x18fce6['getRanges']())_0x38fae0['isIntersectingWithRange'](_0x37aa44)||_0x38fae0['addRange'](_0x37aa44);_0x18fce6['removeMarkers']();}else{_0x38fae0=_0x18fce6;for(const _0x40fe50 of _0x409467)_0x18fce6['isIntersectingWithRange'](_0x40fe50)||_0x18fce6['addRange'](_0x40fe50);}}if(_0x38fae0)return _0x38fae0;_0x30a7b2['clear']();for(const {suggestion:_0x23066e,meta:_0x2493f3}of this['_findSuggestions'](_0x409467,'deletion'))_0x2493f3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2493f3['containsRangeInObject']&&!_0x2493f3['isInsideObject'])&&Lt(_0x23066e,_0x5ce1d5)&&_0x30a7b2['add'](_0x23066e);for(const _0x24b966 of _0x30a7b2){const _0x1b2865=_0x24b966['getRanges']();if(!_0x5ce1d5||!_0x5ce1d5['skipNestingCheck']){if(_0x409467['every'](_0x45de86=>_0x1b2865['some'](_0x11f482=>_0x11f482['containsRange'](_0x45de86,!0x0))))return _0x24b966;}(!_0x24b966['attributes']||!_0x24b966['attributes']['skipNestingCheck'])&&(_0x1b2865['every'](_0x2dfc67=>_0x409467['some'](_0x4a7b15=>_0x4a7b15['containsRange'](_0x2dfc67,!0x0)))&&_0x24b966['discard']());}const _0xb04c94=_0x13ae16(),_0x5ad2b=_0x43917d['id'],_0x475cf2='deletion:'+_0x2b8db7,_0x208a3b=this['_setSuggestionData']({'id':_0xb04c94,'type':_0x475cf2,'createdAt':new Date(),'authorId':_0x5ad2b,'attributes':_0x5ce1d5});for(const _0x4ab763 of _0x409467)_0x4ab763['detach'](),_0x4ab763['isCollapsed']||'$graveyard'==_0x4ab763['root']['rootName']||this['_addSuggestionMarker'](_0x475cf2,_0xb04c94,_0x5ad2b,_0x4ab763,u['getMultiRangeId']());return _0x208a3b;}['markAttributeChange'](_0x2acc16,_0x1d18fa,_0x35e2a5,_0x185cfd,_0x3c382f){if(_0x2acc16['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3b29ff=this['editor']['plugins']['get']('Users')['me']['id'],_0x200a9a=Array['from'](this['_suggestions']['values']())['filter'](_0x349af5=>'attribute'==_0x349af5['type']&&_0x349af5['data']['key']==_0x1d18fa&&_0x349af5['isIntersectingWithRange'](_0x2acc16));if('default'===this['_trackFormatChanges']){const _0xee9baf=this['_findSuggestions'](_0x2acc16,'insertion')['filter'](({meta:_0x306ab0})=>_0x306ab0['isOwn']&&!_0x306ab0['isInsideObject']&&!_0x306ab0['isNextTo'])['map'](({suggestion:_0x144cc9})=>_0x144cc9);_0x200a9a['unshift'](..._0xee9baf);}const _0x55f81e=new Map([[_0x2acc16,_0x35e2a5]]);for(const _0x3229b4 of _0x200a9a){const _0x20e390='attribute'==_0x3229b4['type']?_0x3229b4['data']['oldValue']:void 0x0,_0xc7770b=_0x3229b4['getFirstRange'](),_0x3fb5a1=Array['from'](_0x55f81e['keys']())['find'](_0x48d542=>_0x48d542['isIntersecting'](_0xc7770b));if(!_0x3fb5a1)continue;const _0x59e96e=_0x3fb5a1['getDifference'](_0xc7770b);this['_isBlockAttribute'](_0x1d18fa)&&'insertion'==_0x3229b4['type']&&0x0!=_0x59e96e['length']||(_0x55f81e['delete'](_0x3fb5a1),_0x59e96e['forEach'](_0x264ab1=>{_0x55f81e['set'](_0x264ab1,_0x35e2a5);}),'insertion'!=_0x3229b4['type']&&_0x20e390!=_0x185cfd&&_0x55f81e['set'](_0x3fb5a1['getIntersection'](_0xc7770b),_0x20e390));}const _0x179000=[];for(const [_0x1edf8a,_0x1389e9]of _0x55f81e){const _0x27de97=_0x13ae16(),_0x5f4af2={'key':_0x1d18fa,'oldValue':_0x1389e9,'newValue':_0x185cfd};_0x1d18fa['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':_0x1d18fa});const _0x5c7cf2=('attribute:'+(_0x1d18fa+'|'+Vt({'newValue':_0x185cfd})))['substring'](0x0,0x3c),_0x1a758e=this['_setSuggestionData']({'id':_0x27de97,'type':_0x5c7cf2,'data':_0x5f4af2,'createdAt':new Date(),'authorId':_0x3b29ff,'attributes':_0x3c382f});_0x179000['push'](_0x1a758e),this['_addSuggestionMarker'](_0x5c7cf2,_0x27de97,_0x3b29ff,_0x1edf8a);}return _0x179000;}['enableDefaultAttributesIntegration'](_0xd3c4cb){this['enableCommand'](_0xd3c4cb,(_0x24cc18,..._0x41cded)=>{this['_recordAttributeChanges'](()=>{_0x24cc18(..._0x41cded);});});}['registerBlockAttribute'](_0x5661e8){this['_blockAttributeKeys']['add'](_0x5661e8);}['registerInlineAttribute'](_0x3bd6ff){this['_inlineAttributeKeys']['add'](_0x3bd6ff);}['_getAttributeKey'](_0x2c5ac8){return'attribute'==_0x2c5ac8['type']?_0x2c5ac8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2fba10,_0x1127fa){const _0x3d8ba7=_0x2fba10['getFirstMarker']();this['_model']['change'](_0x4a4dd8=>{_0x4a4dd8['updateMarker'](_0x3d8ba7,{'range':_0x1127fa});});}['_addThreadToSuggestion'](_0x2591a7){const _0xa25dca=_0x2591a7['id'],_0x1aeea8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xa25dca)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1aeea8,'threadId':_0xa25dca,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x159633=this['_commentsRepository']['getCommentThread'](_0xa25dca);_0x159633['unbind']('isRemovable'),_0x159633['isRemovable']=!0x1,_0x2591a7['commentThread']=_0x159633;}['_checkSuggestionCorrectness'](_0x1c41c4,_0x58e96b,_0x75db3b,_0x15c56b){if(_0x1c41c4['type']!=_0x58e96b||_0x1c41c4['subType']!=_0x75db3b||_0x1c41c4['creator']['id']!=_0x15c56b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x207006('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5846bd,_0x2a902a){const _0x3e9d31=_0x5846bd['getFirstRange']();if(_0x2a902a['isEqual'](_0x3e9d31))_0x5846bd['removeMarkers']();else{if(_0x3e9d31['containsRange'](_0x2a902a)){const _0x30c3d8=this['_model']['createPositionAt'](_0x2a902a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5846bd,this['_model']['createRange'](_0x3e9d31['start'],_0x30c3d8));const _0x3f20b6=_0x13ae16(),_0x136e15=_0x5846bd['creator']['id'],_0x35ac12=_0x5846bd['type']+':'+_0x5846bd['subType'];this['_setSuggestionData']({'id':_0x3f20b6,'type':_0x35ac12,'createdAt':new Date(),'authorId':_0x136e15,'data':_0x5846bd['data'],'attributes':_0x5846bd['attributes']});const _0x40a4de=this['_model']['createPositionAt'](_0x2a902a['end']['parent'],'after'),_0x358e06=this['_model']['createRange'](_0x40a4de,_0x3e9d31['end']);this['_addSuggestionMarker'](_0x35ac12,_0x3f20b6,_0x136e15,_0x358e06);}else{if(_0x3e9d31['containsPosition'](_0x2a902a['start'])){const _0x186ef9=this['_model']['createPositionAt'](_0x2a902a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5846bd,this['_model']['createRange'](_0x3e9d31['start'],_0x186ef9));}else{const _0x52a6ff=this['_model']['createPositionAt'](_0x2a902a['end']['parent'],'after');this['_setSuggestionRange'](_0x5846bd,this['_model']['createRange'](_0x52a6ff,_0x3e9d31['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x14ab81){for(const {suggestion:_0x7cc064,meta:_0x449b24}of this['_findSuggestions'](_0x14ab81,'insertion')){if(!_0x449b24['isOwn'])continue;const _0x2fef2a=_0x7cc064['getRanges']();for(const _0x43f363 of _0x2fef2a)if(!_0x14ab81['getDifference'](_0x43f363)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x55eeac){const _0x58e04c=this['editor']['plugins']['get']('Users')['getUser'](_0x55eeac);if(!_0x58e04c)throw new _0x207006('track-changes-user-not-found',this);return _0x58e04c;}['_getExternalAuthor'](_0x2d36b8){const _0x7b391c=this['editor']['plugins']['get']('Users'),_0x815b6=_0x5bc6c0('external:'+_0x2d36b8),_0x1df535=_0x7b391c['getUser'](_0x815b6);return _0x1df535||_0x7b391c['addUser']({'id':_0x815b6,'name':_0x2d36b8});}['_createSuggestion'](_0x4320df,_0x427e03,_0x57a1af,_0x36b0e7,_0x3d54ca){const _0x1afe41=this['_getAuthorFromId'](_0x36b0e7),_0x4e4417=this['_suggestionFactory']['buildSuggestion'](_0x4320df,_0x427e03,_0x57a1af,_0x1afe41,_0x3d54ca,_0x1f63cf=>{this['_updateSuggestionData'](_0x57a1af,{'attributes':_0x1f63cf});const _0x5762af=this['getSuggestion'](_0x57a1af);this['_joinWithAdjacentSuggestions'](new Set([_0x5762af])),this['_refreshSuggestionsChain'](new Set([_0x5762af]));});return this['listenTo'](_0x4e4417,'accept',()=>{this['_updateSuggestionData'](_0x57a1af,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4e4417,'discard',()=>{this['_updateSuggestionData'](_0x57a1af,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x57a1af,_0x4e4417),this['_suggestionState']['set'](_0x4e4417,'notReady'),_0x4e4417;}['_splitMarkerName'](_0x19ee47){const _0x10f4fb=_0x19ee47['split'](':');return{'group':_0x10f4fb[0x0],'type':_0x10f4fb[0x1],'subType':_0x10f4fb['length']>=0x5?_0x10f4fb[0x2]:null,'id':_0x10f4fb['length']<0x5?_0x10f4fb[0x2]:_0x10f4fb[0x3],'authorId':_0x10f4fb['length']<0x5?_0x10f4fb[0x3]:_0x10f4fb[0x4],'markerCount':0x6==_0x10f4fb['length']?_0x10f4fb[0x5]:null};}['_breakSuggestionMarker'](_0x106363,_0x35667c,_0x5277fd){const _0x3547fb=_0x106363['getFirstRange'](),_0x4fffbb=_0x3547fb['start'],_0x5113ba=_0x3547fb['end'];this['_setSuggestionRange'](_0x106363,this['_model']['createRange'](_0x4fffbb,_0x35667c));const _0xc5e8d4=_0x13ae16(),_0x4cb788=_0x106363['creator']['id'],_0x1e40d7=_0x106363['type']+(_0x106363['subType']?':'+_0x106363['subType']:'');this['_setSuggestionData']({'id':_0xc5e8d4,'type':_0x1e40d7,'createdAt':new Date(),'authorId':_0x4cb788,'originalSuggestionId':_0x106363['id'],'attributes':_0x106363['attributes'],'data':_0x106363['data']});const _0x39c352=this['_getAttributeKey'](_0x106363);('formatBlock'==_0x106363['type']||_0x39c352&&this['_isBlockAttribute'](_0x39c352))&&(_0x5277fd=this['_model']['createPositionBefore'](_0x5277fd['parent'])),this['_addSuggestionMarker'](_0x1e40d7,_0xc5e8d4,_0x4cb788,this['_model']['createRange'](_0x5277fd,_0x5113ba));}['_findSuggestions'](_0x560553,_0x34c6cc=null){const _0x5b5a38=[],_0x324ae0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x560553)||(_0x560553=[_0x560553]);for(const _0x51dd35 of this['getSuggestions']()){if(!_0x51dd35['isInContent'])continue;if(_0x34c6cc&&_0x51dd35['type']!=_0x34c6cc)continue;let _0xbaf936=!0x1;for(const _0xded619 of _0x51dd35['getRanges']()){for(const _0xe089cd of _0x560553){const _0x3ace0e=_0xe089cd['start']['isEqual'](_0xded619['end'])||_0xe089cd['end']['isEqual'](_0xded619['start']);if(_0x3ace0e||_0xe089cd['getIntersection'](_0xded619)){const _0x217167=_0xe089cd['containsRange'](_0xded619)&&Rt(this['_model']['schema'],_0xded619['start'],_0xe089cd),_0x3d235b=_0xded619['containsRange'](_0xe089cd)&&Rt(this['_model']['schema'],_0xe089cd['start'],_0xded619);_0x5b5a38['push']({'suggestion':_0x51dd35,'meta':{'isOwn':_0x324ae0==_0x51dd35['author'],'isNextTo':_0x3ace0e,'isInsideObject':_0x217167,'containsRangeInObject':_0x3d235b}}),_0xbaf936=!0x0;break;}}if(_0xbaf936)break;}}return _0x5b5a38;}['_addSuggestionMarker'](_0x905d00,_0x239eca,_0x3b37c6,_0x404d29,_0x4bee22){this['_model']['change'](_0x3ce9b9=>{let _0x3646fc='suggestion:'+_0x905d00+':'+_0x239eca+':'+_0x3b37c6;_0x4bee22&&(_0x3646fc=_0x3646fc+':'+_0x4bee22),_0x3ce9b9['addMarker'](_0x3646fc,{'range':_0x404d29,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xf3e617){const _0x243bfc=_0xf3e617['previous'],_0x311774=_0xf3e617['next'];_0xf3e617['previous']=null,_0xf3e617['next']=null,null!=_0x243bfc&&_0x243bfc['next']==_0xf3e617&&(_0x243bfc['next']=_0x311774),null!=_0x311774&&_0x311774['previous']==_0xf3e617&&(_0x311774['previous']=_0x243bfc),'ready'==this['_suggestionState']['get'](_0xf3e617)&&(this['_suggestionState']['set'](_0xf3e617,'removed'),this['fire']('suggestionUnloaded',_0xf3e617,_0x243bfc,_0x311774));}['_setSuggestionData'](_0x41ace3){const _0x5ee8fa=_0x41ace3['id'],_0x898048=this['addSuggestionData'](_0x41ace3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x34bae7=this['editor']['plugins']['get']('PendingActions'),_0x577dcb=_0x898048['hasComments'],_0x1ac8ed=_0x898048['subType']?_0x898048['type']+':'+_0x898048['subType']:_0x898048['type'],_0x3a07b9=this['editor']['locale'],_0x4da519=_0x34bae7['add'](o(_0x3a07b9,'PENDING_ACTION_SUGGESTION')),_0x565017={'id':_0x5ee8fa,'type':_0x1ac8ed,'hasComments':_0x577dcb,'data':_0x41ace3['data']||null,'originalSuggestionId':_0x41ace3['originalSuggestionId']||null,'attributes':_0x898048['attributes']};this['_adapter']['addSuggestion'](_0x565017)['then'](_0x76d915=>{_0x898048['_saved']=!0x0,_0x34bae7['remove'](_0x4da519),_0x76d915&&_0x76d915['createdAt']&&(this['_suggestions']['get'](_0x5ee8fa)['createdAt']=_0x76d915['createdAt']);})['catch'](_0x245903=>{throw _0x5e6fa3('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x898048['discard']();}),_0x898048['stopListening'](),this['_suggestions']['delete'](_0x898048['id']),this['_suggestionState']['delete'](_0x898048),_0x245903;});}return _0x898048;}['_isBlockAttribute'](_0x5c201d){return this['_blockAttributeKeys']['has'](_0x5c201d);}['_updateSuggestionData'](_0x166267,_0x24eadc){const _0x53e7a6=this['editor']['plugins']['get']('PendingActions'),_0x11a61a=this['getSuggestion'](_0x166267);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x11a61a['_saved']){const _0x127fff=_0x53e7a6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x166267,_0x24eadc)['then'](()=>{_0x53e7a6['remove'](_0x127fff);});}else _0x11a61a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x166267,_0x24eadc);});}}['_getSuggestionData'](_0x459313){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x207006('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x459313);}['_handleNewSuggestionMarker'](_0x533980){const {id:_0x549659,type:_0x3ecf8f,subType:_0x299f57,authorId:_0x195480}=this['_splitMarkerName'](_0x533980),_0x1123fc=this['_suggestions']['get'](_0x549659)||this['_createSuggestion'](_0x3ecf8f,_0x299f57,_0x549659,_0x195480,{});switch(this['_checkSuggestionCorrectness'](_0x1123fc,_0x3ecf8f,_0x299f57,_0x195480),this['_suggestionState']['get'](_0x1123fc)){case'notReady':this['_getSuggestionData'](_0x549659)['then'](_0x552eae=>{let _0x259499=Promise['resolve']();_0x552eae['hasComments']&&(_0x259499=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x549659})),_0x259499['then'](()=>{this['addSuggestionData'](_0x552eae)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1123fc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x549659,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1123fc,'ready'),this['fire']('suggestionLoaded',_0x1123fc);break;case'ready':this['fire']('suggestionChanged',_0x1123fc);}return _0x1123fc['addMarkerName'](_0x533980),_0x1123fc;}['_refreshSuggestionsChain'](_0x12d09a){const _0x306c6e=Array['from'](_0x12d09a),_0xdc48d9=_0x306c6e['filter'](_0x52f434=>'attribute'==_0x52f434['type']);this['_refreshAttributeSuggestionsChain'](_0xdc48d9);const _0x34c29a=_0x306c6e['filter'](_0x7553d6=>!_0x7553d6['isMultiRange']&&'attribute'!=_0x7553d6['type']),_0x37d5d6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22198d=>!_0x22198d['isMultiRange']&&'attribute'!=_0x22198d['type']),_0x414a25=_0x37d5d6['filter'](_0x6eb2ff=>!_0x12d09a['has'](_0x6eb2ff)),_0x136119=new Map(_0x37d5d6['map'](_0x47fce5=>[_0x47fce5,this['_suggestionFactory']['getSuggestionCallback'](_0x47fce5['type'],_0x47fce5['subType'],'chain')])),_0x306f90=new Map(_0x37d5d6['map'](_0x460cbf=>[_0x460cbf,_0x460cbf['getFirstRange']()])),_0x140c88=new Set(),_0xadfcf9=new Set();for(let _0x1766b4=0x0;_0x1766b4<_0x34c29a['length'];_0x1766b4++)_0x4b6cb6(_0x34c29a[_0x1766b4],_0x34c29a,_0x1766b4+0x1);for(let _0x105bca=0x0;_0x105bca<_0x34c29a['length'];_0x105bca++)_0x4b6cb6(_0x34c29a[_0x105bca],_0x414a25,0x0);const _0x564334=new Set();for(let _0xb1aa62=0x0;_0xb1aa62<_0x34c29a['length'];_0xb1aa62++){const _0x9fabe2=_0x34c29a[_0xb1aa62];!_0xadfcf9['has'](_0x9fabe2)&&_0x9fabe2['previous']&&(_0x564334['add'](_0x9fabe2['previous']),_0x9fabe2['previous']['next']===_0x9fabe2&&(_0x9fabe2['previous']['next']=null),_0x9fabe2['previous']=null),!_0x140c88['has'](_0x9fabe2)&&_0x9fabe2['next']&&(_0x564334['add'](_0x9fabe2['next']),_0x9fabe2['next']['previous']===_0x9fabe2&&(_0x9fabe2['next']['previous']=null),_0x9fabe2['next']=null);}function _0x4b6cb6(_0x4de5a6,_0xd9182b,_0x162656){for(let _0x4d0ab2=_0x162656;_0x4d0ab2<_0xd9182b['length'];_0x4d0ab2++){const _0x53fbc8=_0xac707d(_0x4de5a6,_0xd9182b[_0x4d0ab2]);_0x53fbc8&&(_0x53fbc8[0x0]['next']=_0x53fbc8[0x1],_0x53fbc8[0x1]['previous']=_0x53fbc8[0x0],_0x140c88['add'](_0x53fbc8[0x0]),_0xadfcf9['add'](_0x53fbc8[0x1]));}}function _0xac707d(_0x1949b9,_0x5b33bf){if(_0x1949b9['author']['id']!==_0x5b33bf['author']['id'])return null;const _0x596219=_0x136119['get'](_0x1949b9)(_0x1949b9,_0x5b33bf,_0x306f90['get'](_0x1949b9),_0x306f90['get'](_0x5b33bf));if(!_0x596219)return null;return _0x136119['get'](_0x5b33bf)(_0x1949b9,_0x5b33bf,_0x306f90['get'](_0x1949b9),_0x306f90['get'](_0x5b33bf))?_0x596219[0x1]['commentThread']&&_0x596219[0x1]['commentThread']['length']?null:_0x596219:null;}_0x564334['size']&&this['_refreshSuggestionsChain'](_0x564334);}['_refreshAttributeSuggestionsChain'](_0x10f12c){if(0x0==_0x10f12c['length'])return;const _0x415be9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x517c31=>'attribute'==_0x517c31['type']&&_0x517c31['_isDataLoaded']),_0x33698d=[],_0x44f000=new Map();for(const _0x2fe21a of _0x415be9){const _0x3abdc7=_0x5bc6c0(_0x2fe21a['attributes']);_0x44f000['has'](_0x3abdc7)||(_0x44f000['set'](_0x3abdc7,_0x33698d['length']),_0x33698d['push']([]));const _0x4ed506=_0x44f000['get'](_0x3abdc7);_0x33698d[_0x4ed506]['push'](_0x2fe21a);}!(function(){_0x33698d['sort']((_0x49959c,_0x331634)=>{const _0x4f42dc=_0x49959c[0x0]['createdAt'],_0x532590=_0x331634[0x0]['createdAt'];return _0x4f42dc==_0x532590?_0x49959c[0x0]['attributes']['groupId']<_0x331634[0x0]['attributes']['groupId']?-0x1:0x1:_0x4f42dc<_0x532590?-0x1:0x1;});for(const _0x10f857 of _0x33698d)_0x10f857['sort']((_0xbb439f,_0x147761)=>_0xbb439f['id']<_0x147761['id']?-0x1:0x1);}());for(let _0x5071c2=0x0;_0x5071c2<_0x33698d['length'];_0x5071c2++){if(0x0==_0x33698d[_0x5071c2]['length'])continue;const _0x3dff96=[];for(let _0x33cf16=_0x5071c2+0x1;_0x33cf16<_0x33698d['length'];_0x33cf16++)0x0!=_0x33698d[_0x33cf16]['length']&&_0x595474(_0x33698d[_0x5071c2],_0x33698d[_0x33cf16])&&_0x3dff96['push'](_0x33cf16);for(const _0x5a4a12 of _0x3dff96)_0x33698d[_0x5071c2]=_0x33698d[_0x5071c2]['concat'](_0x33698d[_0x5a4a12]),_0x33698d[_0x5a4a12]=[];}for(const _0x9bb47f of _0x33698d)for(let _0xa75ac6=0x0;_0xa75ac6<_0x9bb47f['length'];_0xa75ac6++)_0x9bb47f[_0xa75ac6]['next']=_0x9bb47f[_0xa75ac6+0x1]||null;for(const _0x92801d of _0x33698d)for(let _0x2c44a1=0x0;_0x2c44a1<_0x92801d['length'];_0x2c44a1++)_0x92801d[_0x2c44a1]['previous']=_0x92801d[_0x2c44a1-0x1]||null;function _0x595474(_0x261a7d,_0x141fc0){if(_0x261a7d[0x0]['attributes']['groupId']!==_0x141fc0[0x0]['attributes']['groupId']&&_0x261a7d[0x0]['author']!==_0x141fc0[0x0]['author'])return!0x1;if(!function(_0x4d6bb6,_0x36f779){if(!_0x4d6bb6['hasComments']&&!_0x36f779['hasComments'])return!0x0;if(_0x4d6bb6['hasComments']&&_0x36f779['hasComments'])return!0x1;if(_0x4d6bb6['hasComments']&&_0x36f779['createdAt']<_0x4d6bb6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x36f779['hasComments']&&_0x4d6bb6['createdAt']<_0x36f779['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x261a7d[0x0],_0x141fc0[0x0]))return!0x1;const _0x3afc12=Bt(_0x261a7d[0x0]['attributes'],'groupId'),_0x53512d=Bt(_0x141fc0[0x0]['attributes'],'groupId');if(!_0x54a4a1(_0x3afc12,_0x53512d))return!0x1;return!!_0x261a7d['every'](_0x3353e2=>_0x141fc0['some'](_0x30cf43=>_0x3353e2['getFirstRange']()['isEqual'](_0x30cf43['getFirstRange']())))&&_0x141fc0['every'](_0xe97db9=>_0x261a7d['some'](_0x264d81=>_0xe97db9['getFirstRange']()['isEqual'](_0x264d81['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1aeb55){const _0x1d1fbe=Array['from'](_0x1aeb55),_0x38bd62=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3f469d=_0x38bd62['filter'](_0x3c6176=>!_0x1aeb55['has'](_0x3c6176)),_0x557322=new Map(_0x1d1fbe['map'](_0x589de8=>[_0x589de8,this['_suggestionFactory']['getSuggestionCallback'](_0x589de8['type'],_0x589de8['subType'],'join')])),_0x4ad809=new Map(_0x38bd62['map'](_0x565ccc=>[_0x565ccc,_0x565ccc['getRanges']()]));for(let _0x43885b=0x0;_0x43885b<_0x1d1fbe['length'];_0x43885b++){if(_0x3b2109(this,_0x1d1fbe[_0x43885b],_0x1d1fbe,_0x43885b+0x1))return!0x0;}for(let _0x4209fa=0x0;_0x4209fa<_0x1d1fbe['length'];_0x4209fa++){if(_0x3b2109(this,_0x1d1fbe[_0x4209fa],_0x3f469d,0x0))return!0x0;}return!0x1;function _0x3b2109(_0x51a26,_0x1c7cc9,_0x19a4ba,_0xb0ecff){for(let _0x36e824=_0xb0ecff;_0x36e824<_0x19a4ba['length'];_0x36e824++){const _0x3d025d=_0x19a4ba[_0x36e824];if(_0x3d025d['type']!==_0x1c7cc9['type']||_0x3d025d['author']['id']!==_0x1c7cc9['author']['id']||_0x3d025d['subType']!==_0x1c7cc9['subType'])continue;if(!Pt(_0x1c7cc9,_0x3d025d,['groupId']))continue;if('attribute'==_0x1c7cc9['type']&&_0x1c7cc9['data']['oldValue']!=_0x3d025d['data']['oldValue'])continue;if('attribute'==_0x1c7cc9['type']&&_0x51a26['_isBlockAttribute'](_0x1c7cc9['data']['key']))continue;if('formatBlock'==_0x1c7cc9['type']){const _0xe00bda=_0x51a26['editor']['model'],_0x191b2f=_0x1c7cc9['getContainedElement']();if(_0x191b2f&&(_0xe00bda['schema']['isObject'](_0x191b2f)||_0xe00bda['schema']['isLimit'](_0x191b2f)))continue;}const _0x330b50=_0x557322['get'](_0x1c7cc9),_0x1e2b15=_0x4ad809['get'](_0x1c7cc9),_0x1adf78=_0x4ad809['get'](_0x3d025d),_0x45e213=_0x1c7cc9['commentThread']&&_0x1c7cc9['commentThread']['length'],_0x340449=_0x3d025d['commentThread']&&_0x3d025d['commentThread']['length'];if(!_0x45e213&&_0x330b50(_0x1adf78,_0x1e2b15))return _0x51a26['_joinSuggestions'](_0x3d025d,_0x1c7cc9),_0x4ad809['delete'](_0x1c7cc9),!0x0;if(!_0x340449&&_0x330b50(_0x1e2b15,_0x1adf78))return _0x51a26['_joinSuggestions'](_0x1c7cc9,_0x3d025d),_0x4ad809['delete'](_0x3d025d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x13b1f0,_0x203f1d){if(_0x13b1f0['isMultiRange']){for(const _0x48c04f of _0x203f1d['getRanges']())_0x13b1f0['addRange'](_0x48c04f);}else{const _0x1eac52=_0x203f1d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x13b1f0,this['_model']['createRange'](_0x13b1f0['getFirstRange']()['start'],_0x1eac52));}_0x203f1d['removeMarkers']();}['_getMarkerAnnouncementText'](_0x44b8fd,_0x556152){const _0x5d0bf0=_0x44b8fd['startsWith']('format')||_0x44b8fd['startsWith']('attribute')?'FORMATTING':_0x44b8fd['toUpperCase']();return o(this['editor']['locale'],_0x556152+'_'+_0x5d0bf0+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x13e697=this['editor'];if(!_0x13e697['ui'])return;const {ariaLiveAnnouncer:_0x39614d}=_0x13e697['ui'];_0xd5573c(this['_model'],({left:_0x2c1405,entered:_0x1a2d00})=>{for(const _0x4f18b8 of _0x2c1405){const {group:_0x2602a5,type:_0x434ef1}=this['_splitMarkerName'](_0x4f18b8['name']);if('suggestion'===_0x2602a5){_0x39614d['announce'](this['_getMarkerAnnouncementText'](_0x434ef1,'LEAVE'));break;}}for(const _0x4ab944 of _0x1a2d00){const {group:_0x2faf5a,type:_0x456c5e}=this['_splitMarkerName'](_0x4ab944['name']);if('suggestion'===_0x2faf5a){_0x39614d['announce'](this['_getMarkerAnnouncementText'](_0x456c5e,'ENTER'));break;}}});}['_processAttributeChanges'](_0x2353a1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5537a1=this['editor'],_0x33a7ce=_0x5537a1['model']['document']['differ']['getChanges']();if(0x0==_0x33a7ce['length'])return!0x1;const _0xbc5320=[],_0x3ca22f=_0x33a7ce['filter'](_0x2f86a6=>'attribute'==_0x2f86a6['type']),_0x1ee575=_0x33a7ce['filter'](_0x3cca1c=>'insert'==_0x3cca1c['type']&&'$text'!=_0x3cca1c['name']),_0x275f32=_0x33a7ce['filter'](_0x39d5cf=>'remove'==_0x39d5cf['type']&&'$text'!=_0x39d5cf['name']);for(const _0x2ac2fd of _0x3ca22f)_0xbc5320['push']({'key':_0x2ac2fd['attributeKey'],'newValue':_0x2ac2fd['attributeNewValue'],'oldValue':_0x2ac2fd['attributeOldValue'],'range':Ot(_0x2ac2fd['range'],_0x5537a1['model'])});for(const _0x8f461e of _0x1ee575){const _0x3b8e32=_0x275f32['find'](_0x5eb4d4=>_0x5eb4d4['position']['isEqual'](_0x8f461e['position']));_0x3b8e32&&_0xbc5320['push']({'key':m,'newValue':_0x8f461e['name'],'oldValue':_0x3b8e32['name'],'range':_0x5537a1['model']['createRangeOn'](_0x8f461e['position']['nodeAfter'])});}return 0x0!=_0xbc5320['length']&&this['_reduceExistingSuggestions'](_0x2353a1,_0xbc5320);}['_processAttributeSuggestions'](_0x1af284){let _0x178f25=!0x1;const _0x1fa2b5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2451af=>_0x2451af['data']['newRange']&&_0x2451af['name']['startsWith']('suggestion:attribute:'));for(const _0x4e337e of _0x1fa2b5){const {subType:_0x8eb0bf,id:_0x2f127}=this['_splitMarkerName'](_0x4e337e['name']),_0x252f2f=_0x8eb0bf['split']('|')[0x0];for(const _0x3aec97 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3aec97['id']!=_0x2f127&&'attribute'==_0x3aec97['type']&&_0x3aec97['data']&&_0x3aec97['data']['key']==_0x252f2f&&_0x3aec97['getFirstRange']()['isIntersecting'](_0x4e337e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3aec97,_0x4e337e['data']['newRange'],_0x1af284),_0x178f25=!0x0);}return _0x178f25;}['_recordAttributeChanges'](_0x19b911){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x19b911();}['_isRegisteredAttribute'](_0x1b54a0){const _0x4c559e=this['_isBlockAttribute'](_0x1b54a0),_0x2be038=this['_inlineAttributeKeys']['has'](_0x1b54a0);return _0x4c559e||_0x2be038;}['_reduceExistingSuggestions'](_0x40caa0,_0x4ef658){if(0x0==_0x4ef658['length'])return!0x1;let _0x25a38e=!0x1;for(const _0x2819aa of _0x4ef658){const _0x3994bc=this['_findSuggestions'](_0x2819aa['range'],'attribute')['filter'](_0x564411=>!_0x564411['meta']['isNextTo'])['map'](_0x59d863=>_0x59d863['suggestion']),_0x4902df=_0x5bc6c0({'newValue':_0x2819aa['newValue']});_0x3994bc['filter'](_0x1ae2e3=>{const [_0x8a1e91,_0x4444ae]=_0x1ae2e3['subType']['split']('|');return _0x8a1e91==_0x2819aa['key']&&_0x4444ae!=_0x4902df;})['forEach'](_0x4fa878=>{this['_reduceSuggestionAttributeRange'](_0x4fa878,_0x2819aa['range'],_0x40caa0),_0x25a38e=!0x0;});}return _0x25a38e;}['_reduceSuggestionAttributeRange'](_0x46461b,_0x23eb58,_0x35255a){const _0x56896f=_0x46461b['getFirstRange']()['getDifference'](_0x23eb58);0x0!==_0x56896f['length']?0x1!==_0x56896f['length']?this['_breakSuggestionMarker'](_0x46461b,_0x23eb58['start'],_0x23eb58['end']):this['_setSuggestionRange'](_0x46461b,_0x56896f[0x0]):_0x35255a['removeMarker'](_0x46461b['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1dd4b2){this['_editor']=_0x1dd4b2,this['_model']=_0x1dd4b2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x24032e,_0x19e0bd,_0x4ea44c,_0x38b994,_0x5aa563,_0x171ebb){return new u(this['_model'],{'type':_0x24032e,'subType':_0x19e0bd,'id':_0x4ea44c,'author':_0x38b994,'creator':_0x38b994,'attributes':_0x5aa563,'onAttributesChange':_0x171ebb,'onAccept':(..._0x2595d5)=>this['getSuggestionCallback'](_0x24032e,_0x19e0bd,'accept')(..._0x2595d5),'onDiscard':(..._0x5a9ec6)=>this['getSuggestionCallback'](_0x24032e,_0x19e0bd,'discard')(..._0x5a9ec6)});}['registerCustomCallback'](_0xe4b925,_0xc85fb4,_0xc36ac7,_0x497d5b){const _0x3c7c9a=_0xe4b925+':'+_0xc85fb4+':'+_0xc36ac7;this['_customCallbacks']['set'](_0x3c7c9a,_0x497d5b);}['getSuggestionCallback'](_0x23c74f,_0xd0c59a,_0x3dea7b){const _0x51c38b=_0x23c74f+':'+_0xd0c59a+':'+_0x3dea7b;return this['_customCallbacks']['get'](_0x51c38b)||this['_defaultCallbacks']['get'](_0x23c74f+':'+_0x3dea7b);}['_registerDefaultCallbacks'](){const _0x3ac29f=()=>!0x1,_0x2a0dea=_0x36ac08=>{_0x36ac08['sort']((_0x3e629d,_0x5c1ae2)=>_0x3e629d['start']['isBefore'](_0x5c1ae2['start'])?0x1:-0x1),this['_model']['change'](_0x36e83c=>{for(const _0x1b9e8c of _0x36ac08){let _0x57361d;_0x57361d=_0x1b9e8c['end']['isAtEnd']&&_0x1b9e8c['end']['parent']==_0x1b9e8c['start']['nodeAfter']?_0x36e83c['createSelection'](_0x1b9e8c['start']['nodeAfter'],'on'):_0x36e83c['createSelection'](_0x1b9e8c),this['_model']['deleteContent'](_0x57361d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1cb19f=(_0x24acb1,_0x53dba7)=>{_0x53dba7&&this['_model']['change'](_0x5ca7fe=>{const {commandName:_0x45efaa,commandParams:_0x3ba5cb=[]}=_0x53dba7,_0x24a22d=_0x24acb1['map'](_0x5924d0=>(Tt(_0x5924d0)&&(_0x5924d0=this['_model']['createRange'](_0x5924d0['end'])),_0x5924d0))['filter'](_0x147bd7=>'$graveyard'!==_0x147bd7['root']['rootName']);if(_0x24a22d['length']<0x1)return;const _0x1bddc6=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x35de21=>_0x25d98f['fromRange'](_0x35de21));_0x5ca7fe['setSelection'](_0x24a22d);for(const _0xb5a80 of this['_editor']['commands']['commands']())_0xb5a80['refresh']();_0x3ba5cb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x45efaa,..._0x3ba5cb);const _0x3db141=_0x1bddc6['filter'](_0x1e1d61=>'$graveyard'!=_0x1e1d61['root']['rootName']);_0x3db141['length']>0x0&&_0x5ca7fe['setSelection'](_0x3db141);for(const _0x20588d of _0x1bddc6)_0x20588d['detach']();});},_0x4a9723=(_0x2c3fcc,_0x33b60d)=>0x1==_0x2c3fcc['length']&&0x1==_0x33b60d['length']&&_0x2c3fcc[0x0]['end']['isEqual'](_0x33b60d[0x0]['start']),_0x41836e=(_0x502075,_0xcec5af,_0x305497,_0x81689d)=>Ft(_0x502075,_0xcec5af,_0x305497,_0x81689d,this['_model'])?[_0x502075,_0xcec5af]:Ft(_0xcec5af,_0x502075,_0x81689d,_0x305497,this['_model'])?[_0xcec5af,_0x502075]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3ac29f),this['_defaultCallbacks']['set']('insertion:discard',_0x2a0dea),this['_defaultCallbacks']['set']('insertion:join',_0x4a9723),this['_defaultCallbacks']['set']('insertion:chain',_0x41836e),this['_defaultCallbacks']['set']('deletion:accept',_0x2a0dea),this['_defaultCallbacks']['set']('deletion:discard',_0x3ac29f),this['_defaultCallbacks']['set']('deletion:join',_0x4a9723),this['_defaultCallbacks']['set']('deletion:chain',_0x41836e),this['_defaultCallbacks']['set']('formatInline:accept',_0x1cb19f),this['_defaultCallbacks']['set']('formatInline:discard',_0x3ac29f),this['_defaultCallbacks']['set']('formatInline:join',_0x4a9723),this['_defaultCallbacks']['set']('formatInline:chain',_0x3ac29f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1cb19f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3ac29f),this['_defaultCallbacks']['set']('formatBlock:join',_0x4a9723),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3ac29f),this['_defaultCallbacks']['set']('attribute:accept',_0x3ac29f),this['_defaultCallbacks']['set']('attribute:discard',(_0x529e3a,_0x1d6c0a)=>{if(!_0x1d6c0a)return;const _0x40ee7b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x21d12f=>{if(_0x1d6c0a['key']==m)for(const _0x59c9f6 of _0x529e3a){const _0x34b558=_0x59c9f6['start']['nodeAfter'],_0x2a5980=_0x1d6c0a['oldValue'];_0x21d12f['rename'](_0x34b558,_0x2a5980);}else{if(_0x40ee7b['_isBlockAttribute'](_0x1d6c0a['key'])){for(const _0xaf3fad of _0x529e3a)void 0x0!==_0x1d6c0a['oldValue']?_0x21d12f['setAttribute'](_0x1d6c0a['key'],_0x1d6c0a['oldValue'],_0xaf3fad['start']['nodeAfter']):_0x21d12f['removeAttribute'](_0x1d6c0a['key'],_0xaf3fad['start']['nodeAfter']);}else{for(const _0x3d4d79 of _0x529e3a)_0x1d6c0a['oldValue']?_0x21d12f['setAttribute'](_0x1d6c0a['key'],_0x1d6c0a['oldValue'],_0x3d4d79):_0x21d12f['removeAttribute'](_0x1d6c0a['key'],_0x3d4d79);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4a9723);}}function Rt(_0x539597,_0x1d1d47,_0x4a25a2){for(const _0x75cfe8 of _0x1d1d47['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x75cfe8['root']==_0x75cfe8)return!0x1;if(!_0x4a25a2['containsItem'](_0x75cfe8))return!0x1;if(_0x539597['isObject'](_0x75cfe8)||_0x539597['isLimit'](_0x75cfe8))return!0x0;}return!0x1;}function Tt(_0x13dcbb){return _0x13dcbb['end']['parent']==_0x13dcbb['start']['nodeAfter']&&_0x13dcbb['end']['isAtStart'];}function Et(_0x5ad2e9,_0x2089ff,_0x347baf,_0x12d176){const _0x393c33=_0x3e032a=>!_0x3e032a['item']['is']('$textProxy')&&!_0x12d176['isObject'](_0x3e032a['item']),_0x1065cd=_0x5ad2e9['start']['getLastMatchingPosition'](_0x393c33),_0x48b0da=_0x5ad2e9['end']['getLastMatchingPosition'](_0x393c33,{'direction':'backward'});return(!_0x5ad2e9['start']['isEqual'](_0x1065cd)||!_0x5ad2e9['end']['isEqual'](_0x48b0da))&&(_0x1065cd['isBefore'](_0x48b0da)?_0x347baf['updateMarker'](_0x2089ff,{'range':_0x347baf['createRange'](_0x1065cd,_0x48b0da)}):_0x347baf['removeMarker'](_0x2089ff),!0x0);}function Vt(_0x4f994b){return _0x5bc6c0(_0x4f994b);}function Ut(_0x4a33d4){const _0x4859cb=_0x4a33d4['start']['nodeAfter'];return _0x4859cb&&_0x4859cb['is']('element');}function Ot(_0x86c22f,_0x11e3c4){return null==_0x86c22f['end']['nodeBefore']&&_0x86c22f['end']['parent']==_0x86c22f['start']['nodeAfter']?Gt(_0x86c22f['start']['nodeAfter'],_0x11e3c4):_0x86c22f;}function Gt(_0x36aa4b,_0x299d41){const _0x1e8aa5=_0x299d41['schema']['isObject'](_0x36aa4b)||_0x299d41['schema']['isSelectable'](_0x36aa4b);return _0x299d41['createRange'](_0x299d41['createPositionAt'](_0x36aa4b,'before'),_0x1e8aa5?_0x299d41['createPositionAfter'](_0x36aa4b):_0x299d41['createPositionAt'](_0x36aa4b,'end'));}function Ft(_0x5c87fc,_0x3ab768,_0x5f1b45,_0x29d99d,_0x309aae){if(!Pt(_0x5c87fc,_0x3ab768))return!0x1;if(_0x5f1b45['end']['isEqual'](_0x29d99d['start']))return!0x0;if(_0x5c87fc['type']!=_0x3ab768['type'])return!0x1;if(!_0x5f1b45['end']['isTouching'](_0x29d99d['start']))return!0x1;const _0x30062c=_0x309aae['createRange'](_0x5f1b45['end'],_0x29d99d['start'])['getWalker']();for(const _0x30e74a of _0x30062c)if(['elementStart','elementEnd']['includes'](_0x30e74a['type'])&&_0x309aae['schema']['isLimit'](_0x30e74a['item']))return!0x1;return!0x0;}function Pt(_0x575bd7,_0x49156a,_0x3ed643=[]){return!(!_0x575bd7['_isDataLoaded']||!_0x49156a['_isDataLoaded'])&&_0x54a4a1(Bt(_0x575bd7['attributes'],_0x3ed643),Bt(_0x49156a['attributes'],_0x3ed643));}function Lt(_0x3d4851,_0x233b72){const _0x3845ce=Ht(_0x3d4851['attributes']),_0x7e7eef=Ht(_0x233b72);if(!_0x3d4851['_isDataLoaded'])return!0x1;for(const _0x37fbbb of Object['keys'](_0x7e7eef))if(!_0x54a4a1(_0x3845ce[_0x37fbbb],_0x7e7eef[_0x37fbbb]))return!0x1;return!0x0;}function Ht(_0xd3e863){const _0x31cd7e=Object['assign']({},_0xd3e863);return delete _0x31cd7e['skipNestingCheck'],delete _0x31cd7e['tablePasteChainId'],_0x31cd7e;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4dfe9c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x21da28,_0x137884,_0xf57975,_0x5b56e7){super(),this['model']=_0x137884,this['view']=_0xf57975,this['commentThreadController']=_0x5b56e7,this['_editor']=_0x21da28,this['_acceptCommand']=_0x21da28['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x21da28['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x369907,_0x8165e8)=>_0x369907||_0x8165e8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x37e6d2=>_0x37e6d2&&this['_editor']['model']['canEditAt'](_0x137884['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x28b47b=>_0x28b47b&&this['_editor']['model']['canEditAt'](_0x137884['getRanges']())),this['_pendingAction']=null,_0xf57975['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xf57975,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xf57975,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xf57975,'change:isDirty',()=>{_0xf57975['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 _0x434a24=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x434a24);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x518383{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x12ec26,_0x13fbad,_0x362ed0,_0x360358){super(_0x12ec26),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x13fbad['authoredAt']),this['bind']('authoredAt')['to'](_0x13fbad),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x13fbad,this['_localUser']=_0x362ed0,this['_config']=_0x360358,_0x360358['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:_0x270b59}=this['_config'];this['commentsListView']=new _0x270b59(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',_0x40eabb=>_0x40eabb+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x164977,_0x32c304)=>_0x164977||!!_0x32c304);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x586151}=this['_config'],_0x8d8e5b=new _0x586151(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x585701=_0x8d8e5b['commentInputView'];return _0x8d8e5b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x585701,'value',(_0x38ce25,_0x166815,_0x3bb6db)=>!!_0x3bb6db||_0x38ce25&&!_0x166815),_0x585701['on']('submit',(_0x2718a8,_0x117501)=>{this['fire']('addComment',_0x117501),_0x585701['editor']['setData']('');}),_0x585701['on']('cancel',()=>this['focus']()),_0x585701['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x8d8e5b;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x3a65b1,_0x29c751,_0x4255bc,_0x4ecd7e){super(_0x3a65b1,_0x29c751,_0x4255bc,_0x4ecd7e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x49b9da=>_0x49b9da&&_0x49b9da[0x0]?_0x49b9da[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x12a438,_0x101f70)=>{let _0x2b2929='';for(const _0x47a171 of _0x12a438)_0x2b2929+='<p>'+ds(_0x47a171['content'],_0x47a171['color'])+'</p>';return _0x101f70?_0x2b2929:_0x72a0f7(_0x2b2929,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x3a65b1,'Accept\x20suggestion'),_0x5f1fcd['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x3a65b1,'Discard\x20suggestion'),_0x5f1fcd['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x4fb7bd(_0x3a65b1,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3c9def=this['bindTemplate'],_0x48890c=[{'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':_0x3c9def['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3c9def['to']('authoredAt',_0x5c6f61=>this['_config']['formatDateTime'](_0x5c6f61))}]}]},{'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']&&_0x48890c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x59523d={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x3c9def['if']('isActive','ck-suggestion-wrapper--active'),_0x3c9def['to']('type',_0x319d3a=>'ck-suggestion-'+_0x319d3a),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':_0x48890c}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x59523d['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)),_0x59523d;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x330804,_0x5db226,_0xaeb21b)=>{this['_descriptionElement']['innerHTML']=_0xaeb21b;});}['_createButton'](_0x30645c,_0x51f9cf,_0x3423e2,_0x5895e3,_0x24ba18){const _0x3322c1=new _0x47b1fa(this['locale']);return _0x3322c1['set']({'label':_0x30645c,'icon':_0x51f9cf,'tooltip':!0x0,'tooltipPosition':_0x24ba18}),_0x3322c1['extendTemplate']({'attributes':{'class':_0x3423e2}}),_0x3322c1['on']('execute',()=>{this['fire'](_0x5895e3,this['_model']['id']);}),_0x3322c1;}['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(_0x1ac282,_0x3b2195){let _0x3c449f='';return _0x3c449f+=_0x1ac282['split']('*')['map']((_0x2ea62a,_0x1fd2cb)=>_0x1fd2cb%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x2ea62a)+'</span>':us(_0x2ea62a))['join'](''),_0x3b2195&&(_0x3c449f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3b2195['value']+'\x22\x20title=\x22'+_0x3b2195['title']+'\x22></span>'),_0x3c449f;}function us(_0x5106ca){const _0x477b04=document['createElement']('span');return _0x477b04['innerText']=_0x5106ca,_0x477b04['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 _0x41d95f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x50b342,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2153fa){super(_0x2153fa),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4331fe=this['editor']['config'];_0x4331fe['define']('trackChanges.SuggestionThreadView',ne),_0x4331fe['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4331fe['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x148654,_0x42f5ab){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1cb778,_0x5ab242]of this['_handleControllerBuffer']){const _0x3a75b4=this['_suggestionToController']['has'](_0x1cb778);_0x3a75b4||_0x5ab242?_0x3a75b4&&_0x5ab242&&this['_destroyController'](_0x1cb778):this['_initializeController'](_0x1cb778);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x148654,_0x42f5ab);}['init'](){const _0xfde69c=this['editor'],_0x188210=_0xfde69c['plugins']['get']('TrackChangesEditing'),_0x29ebb7=_0xfde69c['plugins']['get']('Annotations'),_0x4960ab=_0xfde69c['plugins']['get']('EditorAnnotations'),_0x5ee993=_0xfde69c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4960ab['addSourceCollector'](()=>{const _0x2a5a87=[];for(const [_0x545f04,_0x5498f4]of Array['from'](this['_suggestionToController'])){const _0x43bf91=_0x545f04['getAllAdjacentSuggestions'](),_0x16b81e=[];for(const _0x5a3b46 of _0x43bf91){if(!_0x5a3b46['isInContent'])continue;if(_0x5a3b46['isMultiRange']){_0x16b81e['push'](..._0x5a3b46['getRanges']());continue;}const _0x252838=_0x5a3b46['getFirstRange']();if(_0x16b81e['length']>0x0){const _0x3df15f=_0x16b81e[0x0]['getJoined'](_0x252838);if(_0x3df15f){_0x16b81e[0x0]=_0x3df15f;continue;}}_0x16b81e['push'](_0x252838);}_0x2a5a87['push']([_0x5498f4['view'],_0x16b81e]);}return _0x2a5a87;}),this['listenTo'](_0x188210,'suggestionLoaded',(_0x3014ed,_0x5dd7f5)=>{this['listenTo'](_0x5dd7f5,'change:previous',(_0x370579,_0x1fc23f,_0x3089c9,_0x3632b3)=>{_0x5dd7f5['isInContent']&&(null==_0x3089c9?(this['_updateController'](_0x3632b3['head']),this['_handleSuggestionControllerDelayed'](_0x5dd7f5,!0x1)):(this['_updateController'](_0x3089c9['head']),null==_0x3632b3&&this['_handleSuggestionControllerDelayed'](_0x5dd7f5,!0x0)));}),null!==_0x5dd7f5['previous']?this['_updateController'](_0x5dd7f5['head']):this['_handleSuggestionControllerDelayed'](_0x5dd7f5,!0x1);}),this['listenTo'](_0x188210,'suggestionUnloaded',(_0x36be05,_0x4fd656,_0x4c83fd)=>{this['stopListening'](_0x4fd656,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4fd656),this['_suggestionToController']['has'](_0x4fd656)&&this['_destroyController'](_0x4fd656),_0x4c83fd&&this['_updateController'](_0x4c83fd['head']);}),this['listenTo'](_0x188210,'suggestionChanged',(_0x5a2416,_0xca4a67)=>{this['_updateController'](_0xca4a67);}),this['listenTo'](_0x29ebb7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5ee993,'addComment',(_0x142223,{threadId:_0x419b6f,isFromAdapter:_0x2e2473})=>{if(_0x2e2473||!_0x188210['hasSuggestion'](_0x419b6f))return;const _0x347ebb=_0x188210['getSuggestion'](_0x419b6f);this['_suggestionToController']['get'](_0x347ebb)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4f431a=this['editor']['plugins']['get']('Annotations'),_0x375a94=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34cc11=Array['from'](_0x4f431a['activeAnnotations'],_0x376581=>_0x376581['innerView'])['filter'](_0x30850e=>this['_viewToController']['has'](_0x30850e)),_0x1ca842=[];for(const _0x4a4c96 of _0x34cc11){const _0x290423=this['_viewToController']['get'](_0x4a4c96)['model']['getAllAdjacentSuggestions']();_0x1ca842['push'](..._0x290423['reduce']((_0x13cad4,_0x58f3d8)=>[..._0x13cad4,..._0x58f3d8['getMarkerNames']()],[]));}_0x375a94['activeMarkers']=_0x1ca842;}['_addUIComponentsToFactory'](){const _0x57b088=this['editor'],_0x14128f=_0x57b088['locale'],_0x4d08f0=o(_0x14128f,'Track\x20changes'),_0x330848=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x4d08f0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x14128f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x14128f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x14128f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x14128f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x593045 of _0x330848)if(ae(_0x593045)){const _0x4f82ed=_0x57b088['commands']['get'](_0x593045['model']['commandName']);_0x593045['model']['bind']('isOn','isEnabled')['to'](_0x4f82ed,'value','isEnabled');}_0x57b088['ui']['componentFactory']['add']('trackChanges',_0x5dc7ef=>this['_createToolbarButton'](_0x5dc7ef,_0x330848,_0x4d08f0)),_0x57b088['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2899e4=>this['_createMenuBarMenu'](_0x2899e4,_0x330848,_0x4d08f0));}['_createToolbarButton'](_0x26acb9,_0x2eb905,_0x51c252){const _0x596f97=zt(_0x26acb9,Zt),_0x23fecf=this['editor']['commands']['get']('trackChanges');_0x596f97['buttonView']['set']({'tooltip':_0x51c252,'label':_0x51c252,'icon':ie}),_0x596f97['buttonView']['bind']('isOn')['to'](_0x23fecf,'value'),_0x596f97['buttonView']['on']('execute',()=>{_0x23fecf['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x596f97,_0x2eb905,{'role':'menu'});const _0x9e5ee2=[];for(const _0x10b3e5 of _0x2eb905)ae(_0x10b3e5)&&_0x9e5ee2['push'](this['editor']['commands']['get'](_0x10b3e5['model']['commandName']));const _0x38f699=_0x596f97['buttonView'];return _0x38f699['actionView']['unbind']('isEnabled'),_0x38f699['arrowView']['unbind']('isEnabled'),_0x38f699['actionView']['bind']('isEnabled')['to'](_0x23fecf,'isEnabled'),_0x38f699['arrowView']['bind']('isEnabled')['toMany'](_0x9e5ee2,'isEnabled',(..._0x3e12a4)=>_0x3e12a4['some'](_0x213c83=>_0x213c83)),_0x596f97['on']('execute',_0x418747=>{this['editor']['execute'](_0x418747['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x596f97;}['_createMenuBarMenu'](_0x2521be,_0x3b2250,_0x3d0e5f){const _0x3e186b=new Kt(_0x2521be),_0x6e724e=this['editor']['commands']['get']('trackChanges');_0x3e186b['buttonView']['set']({'label':_0x3d0e5f,'icon':ie});const _0x448d24=new Qt(_0x2521be);for(const _0x2a2921 of _0x3b2250){if('separator'==_0x2a2921['type']){_0x448d24['items']['add'](new Jt(_0x2521be));continue;}const _0x190745=new Xt(_0x2521be,_0x3e186b),_0x4a7f99=new Yt(_0x2521be),_0x4b624c=_0x2a2921['model'];_0x4a7f99['bind'](...Object['keys'](_0x4b624c))['to'](_0x4b624c),_0x4a7f99['delegate']('execute')['to'](_0x3e186b),_0x4a7f99['on']('execute',()=>{this['editor']['execute'](_0x4b624c['commandName']),this['editor']['editing']['view']['focus']();}),_0x190745['children']['add'](_0x4a7f99),_0x448d24['items']['add'](_0x190745);}return _0x3e186b['bind']('isEnabled')['to'](_0x6e724e,'isEnabled'),_0x3e186b['panelView']['children']['add'](_0x448d24),_0x3e186b;}['_initializeController'](_0x14a767){const _0x52523a=this['editor'],_0xed0f9b=_0x52523a['config'],_0x1c758e=_0x52523a['plugins']['get']('Annotations'),_0x6d7464=_0x52523a['plugins']['get']('CommentsRepository'),_0xa89188=_0x52523a['plugins']['get']('EditorAnnotations'),_0xad791f=_0x52523a['plugins']['get'](_0x50b342)['me'],_0x39db68=_0xed0f9b['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3d6075,CommentThreadInputView:_0xdd0555}=_0x52523a['plugins']['get']('CommentsUI');let _0x35acb2,_0x1721d3;this['_annotationViews']['has'](_0x14a767['id'])?(_0x1721d3=this['_annotationViews']['get'](_0x14a767['id']),_0x35acb2=_0x1721d3['mainView']):(_0x35acb2=new _0x39db68(_0x52523a['locale'],_0x14a767,_0xad791f,{'disableComments':this['_disableComments'],'editorConfig':_0xed0f9b['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xed0f9b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xed0f9b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xed0f9b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5c9986(_0xed0f9b['get']('locale')),'CommentView':_0xed0f9b['get']('comments')['CommentView'],'CommentsListView':_0x3d6075,'CommentThreadInputView':_0xdd0555}),_0x35acb2['acceptButton']['on']('execute',()=>{_0x52523a['editing']['view']['focus']();}),_0x35acb2['discardButton']['on']('execute',()=>{_0x52523a['editing']['view']['focus']();}),_0x1721d3=_0x1c758e['createAnnotationView'](this['editor']['locale'],_0x35acb2),_0x1721d3['bind']('isDirty')['to'](_0x35acb2,'isDirty'),_0x1721d3['bind']('length')['to'](_0x35acb2),_0x1721d3['bind']('type')['to'](_0x35acb2,'type',_0x13bc4f=>'suggestion-'+_0x13bc4f),this['_annotationViews']['set'](_0x14a767['id'],_0x1721d3));const _0x4178b7=_0x6d7464['createCommentThreadController'](_0x14a767['commentThread'],_0x35acb2),_0x3ab634=new oe(_0x52523a,_0x14a767,_0x35acb2,_0x4178b7),_0x1114e8=_0x14a767['getAllAdjacentSuggestions']()['filter'](_0x1bacd5=>_0x1bacd5['isInContent']);_0x35acb2['descriptionParts']=_0x52523a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1114e8),this['_suggestionToController']['set'](_0x14a767,_0x3ab634),this['_viewToController']['set'](_0x35acb2,_0x3ab634);const _0x221a87=_0x1c758e['createAnnotation']({'view':_0x1721d3,'target':()=>{const _0x90285c=[],_0x3d968f=_0x14a767['getAllAdjacentSuggestions']()['filter'](_0x4c78a1=>_0x4c78a1['isInContent']);for(const _0x8f6824 of _0x3d968f)_0x90285c['push'](..._0x8f6824['getMarkers']());return _0x4afb05(_0x52523a['editing'],_0x90285c);},'type':()=>'suggestion-'+_0x3ab634['view']['type']});_0x6d7464['_bindAnnotationToEditors'](_0x35acb2,_0x221a87),_0x1c758e['add'](_0x221a87),_0xa89188['registerAnnotation'](_0x221a87);}['_destroyController'](_0x4145cc){const _0x258c81=this['editor']['plugins']['get']('CommentsRepository'),_0x41eb93=this['editor']['plugins']['get']('Annotations'),_0x166c53=this['_suggestionToController']['get'](_0x4145cc),_0x718f19=_0x166c53['view'],_0x753bbe=_0x41eb93['getByInnerView'](_0x718f19);_0x258c81['_unbindEditors'](_0x718f19),_0x753bbe&&_0x41eb93['remove'](_0x753bbe),this['_suggestionToController']['delete'](_0x4145cc),this['_viewToController']['delete'](_0x718f19),_0x166c53['destroy']();}['_updateController'](_0x4b9e4d){if(!_0x4b9e4d['isInContent']||!this['_suggestionToController']['has'](_0x4b9e4d))return;const _0x26161a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf26391=this['_suggestionToController']['get'](_0x4b9e4d),_0x55b374=_0x4b9e4d['getAllAdjacentSuggestions']();_0xf26391['view']['descriptionParts']=_0x26161a['descriptionFactory']['getDescriptions'](_0x55b374);}['destroy'](){for(const _0x49ae72 of this['_suggestionToController']['keys']())this['_destroyController'](_0x49ae72);for(const _0x1e0389 of this['_annotationViews']['values']())_0x1e0389['mainView']['destroy']();super['destroy']();}}function ae(_0x5570aa){return'model'in _0x5570aa;}class k extends _0x41d95f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x37f605){this['editor']['plugins']['get'](p)['adapter']=_0x37f605;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xc12078){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xc12078);}['getSuggestions']({skipNotAttached:_0x1535fb=!0x1,toJSON:_0x156416=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1535fb,'toJSON':_0x156416});}['getSuggestion'](_0x139723){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x139723);}}const T=['Pagination'];class P extends _0x41d95f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x32602d=this['editor'];if(_0x32602d['config']['define']('trackChangesData.editorCreator',_0x5d1379=>{const _0x77345f=_0x32602d['model']['document']['getRootNames']()['reduce']((_0x2bd781,_0x1e63fd)=>(_0x2bd781[_0x1e63fd]='',_0x2bd781),{});return _0x32602d['constructor']['create'](_0x77345f,_0x5d1379);}),'function'!=typeof _0x32602d['config']['get']('trackChangesData')['editorCreator'])throw new _0x207006('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x15d2d0){return N(this['editor'],!0x0,_0x15d2d0);}['getDataWithDiscardedSuggestions'](_0x35c35d){return N(this['editor'],!0x1,_0x35c35d);}}class D extends _0x41d95f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x82cbbe){super(_0x82cbbe),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(_0x551174){return void 0x0!==_0x551174['getRootsAttributes'];}async function N(_0x4a9c6d,_0x11cc97,_0x53fa1){const _0x25bfa2=_0x1434c2(_0x4a9c6d,T);_0x25bfa2['plugins']['push'](p,D),_0x25bfa2['rootsAttributes']=v(_0x4a9c6d)?_0x4a9c6d['getRootsAttributes']():void 0x0;const _0x188465=document['createDocumentFragment'](),_0x1b2c88=_0x4a9c6d['config']['get']('trackChangesData')['editorCreator'],_0x140dd6=await _0x1b2c88(_0x25bfa2,()=>function(_0x38d9d8){const _0x47f841=document['createElement']('div');return _0x38d9d8['appendChild'](_0x47f841),_0x47f841;}(_0x188465));!function(_0x57a0c9,_0x2fa6e5){const _0x126f86=_0x57a0c9['model']['document']['getRootNames']()['reduce']((_0x564604,_0x3201d8)=>(_0x564604[_0x3201d8]=_0x57a0c9['data']['get']({'rootName':_0x3201d8}),_0x564604),{}),_0x48b021=_0x57a0c9['plugins']['get']('Users')['users']['map'](_0x15bda0=>({'id':_0x15bda0['id'],'name':_0x15bda0['name']})),_0x3a286e=_0x57a0c9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3bedda=_0x57a0c9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x46f485=_0x2fa6e5['plugins']['get']('Users'),_0x4ed418=_0x2fa6e5['plugins']['get']('TrackChangesEditing'),_0x212842=_0x2fa6e5['plugins']['get']('CommentsRepository');for(const _0x5c64cc of _0x48b021)_0x46f485['getUser'](_0x5c64cc['id'])||_0x46f485['addUser'](_0x5c64cc);_0x46f485['me']||_0x46f485['useAnonymousUser']();for(const _0x1d5d18 of _0x3bedda)_0x212842['addCommentThread'](_0x1d5d18);for(const _0x51d69f of _0x3a286e)_0x4ed418['addSuggestionData'](_0x51d69f);_0x2fa6e5['data']['set'](_0x126f86);}(_0x4a9c6d,_0x140dd6),_0x140dd6['execute'](_0x11cc97?'acceptAllSuggestions':'discardAllSuggestions');const _0x3ba101=v(_0x140dd6)?_0x140dd6['getFullData'](_0x53fa1):_0x140dd6['data']['get'](_0x53fa1);return await _0x140dd6['destroy'](),_0x3ba101;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x1fe610,PendingActions as _0x48bd59,icons as _0x10cb34}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1a825e,ObservableMixin as _0x34c921,uid as _0x3acd04,insertToPriorityArray as _0x2af68a,priorities as _0x676e80,logWarning as _0x337233,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x426160,View as _0x894f2,ButtonView as _0x18e281,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 _0xe4de3,hashObject as _0x2c90af,surroundingMarkersDetector as _0x1093b2,trimHtml as _0x559799,UserView as _0x2b1933,getDateTimeFormatter as _0x1c3191,getAllMarkersDomElementsSorted as _0x51f1d7,sanitizeEditorConfig as _0x1b00e7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x26f6fb,LiveRange as _0x59eb41,LivePosition as _0x39b482}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2c4a49,toWidget as _0x37cdab}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x18c502,set as _0x2a29b3,isEqual as _0x4c4279,unset as _0x4b09ca,omit as Bt}from'lodash-es';import{Delete as _0x4bcd59,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1b5a6e,ShiftEnter as _0x4c04e3}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0xf20e49,_0x37da66){super(_0xf20e49),this['_enabledCommands']=_0x37da66,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 _0x1c4732 of this['editor']['commands']['commands']())_0x1c4732['affectsData']&&!this['_enabledCommands']['has'](_0x1c4732)&&_0x1c4732['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1f2ae3 of this['editor']['commands']['commands']())_0x1f2ae3['affectsData']&&!this['_enabledCommands']['has'](_0x1f2ae3)&&_0x1f2ae3['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x1747d6,_0x465c89){super(_0x1747d6),this['_suggestions']=_0x465c89,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x597cc8){const _0x49a279=this['_suggestions']['get'](_0x597cc8);if(!_0x49a279)throw new _0x1a825e('track-changes-accept-suggestion-not-found',this);const _0xb82b07=_0x49a279['getRanges']();this['editor']['model']['canEditAt'](_0xb82b07)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x49a279);}}class B extends ts{['_suggestions'];constructor(_0x4a3eb9,_0x3fa997){super(_0x4a3eb9),this['_suggestions']=_0x3fa997,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2d3abc){const _0x49597e=this['_suggestions']['get'](_0x2d3abc);if(!_0x49597e)throw new _0x1a825e('track-changes-discard-suggestion-not-found',this);const _0x3d581=_0x49597e['getRanges']();this['editor']['model']['canEditAt'](_0x3d581)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x49597e);}}function ss(_0x3f3803){return _0x3f3803['sort']((_0x570dc9,_0x26b711)=>'deletion'==_0x570dc9['type']&&'deletion'!=_0x26b711['type']?-0x1:'deletion'!=_0x570dc9['type']&&'deletion'==_0x26b711['type']?0x1:0x0);}function to(_0xd1ce40,_0x8d12fe){let _0x278936,_0x2b632a=0x0;const _0x4445d9=[],_0xf83309=_0x8d12fe['schema'];for(;_0x2b632a<_0xd1ce40['length'];){const _0x3d50b2=_0xd1ce40[_0x2b632a],_0x2d3696=_0xd1ce40[_0x2b632a+0x1];_0x278936||(_0x278936=_0x8d12fe['createPositionBefore'](_0x3d50b2)),co(_0x8d12fe,_0x3d50b2,_0x2d3696)||(_0x4445d9['push'](_0x8d12fe['createRange'](_0x278936,_0xf83309['isObject'](_0x3d50b2)?_0x8d12fe['createPositionAfter'](_0x3d50b2):_0x8d12fe['createPositionAt'](_0x3d50b2,'end'))),_0x278936=null),_0x2b632a++;}return _0x4445d9;}function co(_0x8fc779,_0x382cb2,_0x232aee){if(!_0x232aee)return!0x1;const _0x4b3260=_0x8fc779['createPositionAfter'](_0x382cb2),_0x4f2ea7=_0x8fc779['createPositionBefore'](_0x232aee);return _0x4b3260['isTouching'](_0x4f2ea7);}function rs(_0x50f3fa,_0x2664a0,_0x1a50f0){for(;_0x1a50f0['length'];){const _0x245797=_0x1a50f0['splice'](0x0,0x64);_0x50f3fa['change'](()=>{for(const _0x5a84e9 of _0x245797)_0x5a84e9['isInContent']&&_0x2664a0['execute'](_0x5a84e9['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x13c964,_0x27219e,_0x246db5){super(_0x13c964),this['_command']=_0x27219e,this['_suggestions']=_0x246db5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5bc59d=Array['from'](this['_suggestions']['values']())['some'](_0x28ea0e=>_0x28ea0e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5bc59d;}['execute'](){const _0x11c266=ss(Array['from'](this['_suggestions']['values']()));for(const _0x50896f of _0x11c266){const _0x1b6437=_0x50896f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1b6437))return;}rs(this['editor']['model'],this['_command'],_0x11c266);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1dac92,_0x4f3606,_0x24a2d7){super(_0x1dac92),this['_command']=_0x4f3606,this['_suggestions']=_0x24a2d7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x497d36=this['editor']['model']['document']['selection'],_0x8d0132=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x586c00,_0x4ea710){const _0x193bea=Array['from'](_0x586c00['getRanges']()),_0x114f7c=new Set();for(const _0x19fc6d of _0x4ea710)if(_0x19fc6d['isInContent']){for(const _0x25719c of _0x193bea)for(const _0x2da628 of _0x19fc6d['getRanges']())(_0x25719c['isIntersecting'](_0x2da628)||_0x586c00['isCollapsed']&&!_0x19fc6d['isMultiRange']&&_0x19fc6d['next']&&_0x2da628['end']['isTouching'](_0x25719c['start']))&&_0x114f7c['add'](_0x19fc6d);}return _0x114f7c;}(_0x497d36,_0x8d0132),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x322238=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2013bf of _0x322238){const _0x2092e6=_0x2013bf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2092e6))return;}rs(this['editor']['model'],this['_command'],_0x322238);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x34c921(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5e88f8,_0x4e7ec0){super(),this['id']=_0x4e7ec0['id'],this['type']=_0x4e7ec0['type'],this['subType']=_0x4e7ec0['subType']||null,this['author']=_0x4e7ec0['author'],this['creator']=_0x4e7ec0['creator']||_0x4e7ec0['author'],this['isExternal']=Boolean(_0x4e7ec0['attributes']&&_0x4e7ec0['attributes']['@external']),this['data']=null,this['_model']=_0x5e88f8,this['_onAccept']=_0x4e7ec0['onAccept'],this['_onDiscard']=_0x4e7ec0['onDiscard'],this['_onAttributesChange']=_0x4e7ec0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4e7ec0['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 _0x46d6c4=this;for(;_0x46d6c4['previous'];)_0x46d6c4=_0x46d6c4['previous'];return _0x46d6c4;}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'](_0x324fdd){this['_markerNames']['add'](_0x324fdd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1c71c2=>this['_model']['markers']['get'](_0x1c71c2))['filter'](_0x155459=>_0x155459);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x151c0d=>{for(const _0x6a107e of this['getMarkers']())_0x151c0d['removeMarker'](_0x6a107e);}),this['_markerNames']['clear']();}['removeMarker'](_0x299205){this['_model']['change'](_0x5c7122=>{_0x5c7122['removeMarker'](_0x299205);}),this['_markerNames']['delete'](_0x299205);}['addRange'](_0x570c52){const _0x4286ef='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4286ef),this['_model']['change'](_0x877749=>{_0x877749['addMarker'](_0x4286ef,{'range':_0x570c52,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1beaaa){for(const _0x48c4ed of this['getRanges']())if(_0x48c4ed['isIntersecting'](_0x1beaaa))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1a7c62=>_0x1a7c62['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x335cd5,_0x2c1ab8)=>[..._0x335cd5,..._0x2c1ab8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4aba95=this['getRanges']();if(0x1!=_0x4aba95['length'])return null;const _0x30dd35=_0x4aba95[0x0],_0x5a7ba5=_0x30dd35['start']['nodeAfter'],_0x4f6feb=_0x30dd35['end']['nodeBefore'];return _0x5a7ba5 instanceof _0x26f6fb?_0x5a7ba5!=_0x4f6feb?null:_0x5a7ba5: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 _0x246aec=[];let _0x33a6d9=this['head'];for(;_0x33a6d9;)_0x246aec['push'](_0x33a6d9),_0x33a6d9=_0x33a6d9['next'];return _0x246aec;}['setAttribute'](_0x331af2,_0x421357){const _0x5ba7ab=_0x18c502(this['attributes']);_0x2a29b3(_0x5ba7ab,_0x331af2,_0x421357),_0x4c4279(_0x5ba7ab,this['attributes'])||(this['attributes']=_0x5ba7ab,this['_onAttributesChange'](_0x5ba7ab));}['removeAttribute'](_0x457d2e){const _0x1e6ab8=_0x18c502(this['attributes']);_0x4b09ca(_0x1e6ab8,_0x457d2e),_0x4c4279(_0x1e6ab8,this['attributes'])||(this['attributes']=_0x1e6ab8,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 _0x3acd04()['substr'](0x1,0x5);}}function o(_0x45123f,_0x5297b8,_0x2209ae){const t=_0x45123f['t'];switch(_0x5297b8){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',_0x2209ae);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2209ae);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2209ae);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2209ae);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2209ae);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',_0x2209ae);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2209ae);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',_0x2209ae);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2209ae);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2209ae);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2209ae);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2209ae);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2209ae);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2209ae);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2209ae);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2209ae);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2209ae);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2209ae);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2209ae);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2209ae);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2209ae);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2209ae);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2209ae);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'},_0x2209ae);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2209ae);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2209ae);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2209ae);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2209ae);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2209ae);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'},_0x2209ae);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2209ae);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2209ae);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2209ae);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2209ae);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'},_0x2209ae);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2209ae);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'},_0x2209ae);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'},_0x2209ae);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2209ae);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'},_0x2209ae);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2209ae);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'},_0x2209ae);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2209ae);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2209ae);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'},_0x2209ae);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'},_0x2209ae);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 _0x5297b8;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x389121,_0x810560){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x389121,this['_locale']=_0x810560;}['getDescriptions'](_0xe82c75){const _0x3f8f8b=[],_0x317904=new Set(),_0x2fb531=new Set();for(let _0x3dd35b=0x0;_0x3dd35b<_0xe82c75['length'];_0x3dd35b++){const _0x4b5aeb=_0xe82c75[_0x3dd35b];if(!_0x4b5aeb['isInContent'])continue;const _0x2042a8=this['_handleCustomCallbackDescription'](_0x4b5aeb);if(_0x2042a8){if(null!=_0x4b5aeb['subType']){if(_0x317904['has'](_0x4b5aeb['subType']))continue;_0x317904['add'](_0x4b5aeb['subType']);}_0x3f8f8b['push'](_0x2042a8);}else{if('attribute'!=_0x4b5aeb['type'])'insertion'!=_0x4b5aeb['type']&&'deletion'!=_0x4b5aeb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3f8f8b,_0x4b5aeb,_0xe82c75[_0x3dd35b+0x1]);else{const _0x3a3ebe=_0x4b5aeb['data']['key'];if(_0x2fb531['has'](_0x3a3ebe))continue;_0x2fb531['add'](_0x4b5aeb['data']['key']),_0x3a3ebe==m?this['_handleRenameSuggestionDescription'](_0x3f8f8b,_0x4b5aeb):this['_handleAttributeSuggestionDescription'](_0x3f8f8b,_0x4b5aeb);}}}return this['_resolveDescriptionItems'](_0x3f8f8b);}['registerDescriptionCallback'](_0x120012){this['_customCallbacks']['push'](_0x120012);}['registerElementLabel'](_0x55d70d,_0x26e706,_0x24119b=_0x676e80['normal']){'function'==typeof _0x55d70d?_0x2af68a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x55d70d,'label':_0x26e706,'priority':_0x24119b}):this['_itemLabels']['set'](_0x55d70d,_0x26e706);}['registerAttributeLabel'](_0x50d764,_0x478faf){this['_attributeLabels']['set'](_0x50d764,_0x478faf);}['getItemLabel'](_0x5627cf,_0x25352d=0x1){let _0x2353bf;for(const _0x103900 of this['_itemLabelsCallbacks'])if(_0x103900['matchingCallback'](_0x5627cf)){_0x2353bf=_0x103900['label'];break;}return _0x2353bf||(_0x2353bf=this['_itemLabels']['get'](_0x5627cf['name'])),_0x2353bf?_0x2353bf(_0x25352d):0x1!==_0x25352d?_0x25352d+'\x20'+_0x5627cf['name']+'s':''+_0x5627cf['name'];}['_addDescriptionItems'](_0x34bb6f,_0xb99549){const _0x215ef3=_0xb99549['getFirstRange']()['getWalker'](),_0x1a3143='insertion'==_0xb99549['type']?'add':'remove';for(const _0x87899d of _0x215ef3){const _0x12609e=_0x87899d['item'],_0x5466f6=_0x34bb6f[_0x34bb6f['length']-0x1];if(_0x12609e['is']('$textProxy'))_0x5466f6&&_0x5466f6['type']['indexOf']('Container')>-0x1&&_0x34bb6f['pop'](),_0x5466f6&&'text'==_0x5466f6['type']?_0x5466f6[_0x1a3143]+=_0x12609e['data']:_0x34bb6f['push']({'type':'text','add':'add'==_0x1a3143?_0x12609e['data']:'','remove':'remove'==_0x1a3143?_0x12609e['data']:''});else{if(this['_schema']['isObject'](_0x12609e)){const _0x1912ac=_0x12609e;if(_0x5466f6&&_0x5466f6['type']['indexOf']('Container')>-0x1&&_0x34bb6f['pop'](),'elementEnd'==_0x87899d['type'])continue;_0x5466f6&&_0x5466f6['type']==_0x1a3143+'Object'&&_0x5466f6['element']['name']==_0x1912ac['name']?_0x5466f6['quantity']++:_0x34bb6f['push']({'type':_0x1a3143+'Object','element':_0x1912ac,'quantity':0x1}),_0x215ef3['skip'](_0xdd41cb=>!('elementEnd'==_0xdd41cb['type']&&_0xdd41cb['item']==_0x12609e));}else{if(this['_schema']['checkChild'](_0x12609e,'$text')||_0x12609e['is']('element','softBreak')){const _0xb2bd13=_0x12609e;if('add'==_0x1a3143&&'elementStart'==_0x87899d['type']||'remove'==_0x1a3143&&'elementEnd'==_0x87899d['type'])continue;if(_0x5466f6&&-0x1==_0x5466f6['type']['indexOf']('Container')){'text'==_0x5466f6['type']&&(_0x5466f6[_0x1a3143]+='\x0a');continue;}let _0x447183;if(_0x447183='add'==_0x1a3143?_0xb2bd13['nextSibling']&&!this['_schema']['isObject'](_0xb2bd13['nextSibling'])?_0xb2bd13['nextSibling']:null:_0xb2bd13['previousSibling']&&!this['_schema']['isObject'](_0xb2bd13['previousSibling'])?_0xb2bd13['previousSibling']:null,_0xb2bd13['isEmpty']||_0x447183&&_0x447183['isEmpty']){const _0x52d98b=_0x447183&&_0x447183['isEmpty']?_0x447183:_0xb2bd13;_0x5466f6&&_0x5466f6['type']==_0x1a3143+'EmptyContainer'&&_0x5466f6['element']['name']==_0x52d98b['name']?_0x5466f6['quantity']++:_0x34bb6f['push']({'type':_0x1a3143+'EmptyContainer','element':_0x52d98b,'quantity':0x1});}else _0x34bb6f['push']({'type':_0x1a3143+'Container','element':_0xb2bd13});}}}}}['_resolveDescriptionItems'](_0x1ac7f3){const _0x4225ab=this['_locale'],_0x5965db=[],_0x1dab9a=[],_0x2e301c=[];for(const _0x240298 of _0x1ac7f3)switch(_0x240298['type']){case'text':if(_0x240298['add']=_0x240298['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x240298['remove']=_0x240298['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x240298['add']&&''!=_0x240298['remove']){_0x5965db['push']({'type':'replace','content':o(_0x4225ab,'REPLACE_TEXT',['\x22'+_0x240298['remove']+'\x22','\x22'+_0x240298['add']+'\x22'])});continue;}if(null!=_0x240298['add']['match'](/^ +$/)){_0x5965db['push']({'type':'insertion','content':o(_0x4225ab,'*Insert:*\x20%0',o(_0x4225ab,'ELEMENT_SPACE',_0x240298['add']['length']))});continue;}if(null!=_0x240298['remove']['match'](/^ +$/)){_0x5965db['push']({'type':'deletion','content':o(_0x4225ab,'*Remove:*\x20%0',o(_0x4225ab,'ELEMENT_SPACE',_0x240298['remove']['length']))});continue;}if(''!=_0x240298['add']){_0x5965db['push']({'type':'insertion','content':o(_0x4225ab,'*Insert:*\x20%0','\x22'+_0x240298['add']+'\x22')});continue;}_0x5965db['push']({'type':'deletion','content':o(_0x4225ab,'*Remove:*\x20%0','\x22'+_0x240298['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5965db['push']({'type':'insertion','content':o(_0x4225ab,'*Insert:*\x20%0',this['getItemLabel'](_0x240298['element'],_0x240298['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5965db['push']({'type':'deletion','content':o(_0x4225ab,'*Remove:*\x20%0',this['getItemLabel'](_0x240298['element'],_0x240298['quantity']))});continue;case'addContainer':_0x5965db['push']({'type':'insertion','content':o(_0x4225ab,'*Split:*\x20%0',this['getItemLabel'](_0x240298['element'],_0x240298['quantity']))});continue;case'removeContainer':_0x5965db['push']({'type':'deletion','content':o(_0x4225ab,'*Merge:*\x20%0',this['getItemLabel'](_0x240298['element'],_0x240298['quantity']))});continue;case'addFormat':_0x1dab9a['push'](_0x240298['key']);continue;case'removeFormat':_0x2e301c['push'](_0x240298['key']);continue;default:_0x5965db['push'](_0x240298);}if(_0x1dab9a['length']){const _0x132729=_0x1dab9a['map'](_0x2a14aa=>this['_attributeLabels']['has'](_0x2a14aa)?this['_attributeLabels']['get'](_0x2a14aa):_0x2a14aa)['join'](',\x20');_0x5965db['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x132729)});}if(_0x2e301c['length']){const _0x7b869=_0x2e301c['map'](_0x2faf6b=>this['_attributeLabels']['has'](_0x2faf6b)?this['_attributeLabels']['get'](_0x2faf6b):_0x2faf6b)['join'](',\x20');_0x5965db['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x7b869)});}return _0x5965db;}['_handleCustomCallbackDescription'](_0x2633db){for(const _0x139c1d of this['_customCallbacks']){const _0x9cfc44=_0x139c1d(_0x2633db);if(_0x9cfc44&&'type'in _0x9cfc44)return _0x9cfc44;}}['_handleAttributeSuggestionDescription'](_0x38a51d,_0x5d775b){const _0x2e5872=_0x5d775b['data'],_0x4cfa9c=void 0x0===_0x2e5872['newValue']?'removeFormat':'addFormat';_0x38a51d['push']({'type':_0x4cfa9c,'key':_0x2e5872['key']});}['_handleRenameSuggestionDescription'](_0x40971a,_0x2fb2e9){_0x40971a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2fb2e9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2c2b30,_0x3c197f,_0x411a04){if(this['_addDescriptionItems'](_0x2c2b30,_0x3c197f),_0x411a04&&_0x411a04['getFirstRange']()&&!_0x3c197f['getFirstRange']()['end']['isEqual'](_0x411a04['getFirstRange']()['start'])){const _0x3689fd=_0x2c2b30[_0x2c2b30['length']-0x1],_0x33971f='insertion'==_0x3c197f['type']?'add':'remove';_0x3689fd&&'text'==_0x3689fd['type']&&(_0x3689fd[_0x33971f]+='\x0a');}}}class E extends _0x1fe610{['afterInit'](){const _0x3b28a5=this['editor'],_0xc6d4d6=_0x3b28a5['plugins']['get']('TrackChangesEditing');_0x3b28a5['commands']['get']('showAIAssistant')&&_0xc6d4d6['enableCommand']('showAIAssistant');}}class V extends _0x1fe610{['afterInit'](){const _0x9e3e2a=this['editor'],_0x56f44d=_0x9e3e2a['locale'];if(!_0x9e3e2a['plugins']['has']('AlignmentEditing'))return;const _0x30a005=_0x9e3e2a['plugins']['get']('TrackChangesEditing');_0x30a005['enableDefaultAttributesIntegration']('alignment'),_0x30a005['registerBlockAttribute']('alignment'),_0x30a005['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x56f44d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b1a42=this['editor'],_0x2c2d59=_0x5b1a42['locale'];_0x5b1a42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bbd36=>{if('formatBlock'!=_0x1bbd36['type'])return;const {data:_0x54daed}=_0x1bbd36;if(_0x54daed&&'alignment'==_0x54daed['commandName']){const _0x5a81dc=_0x54daed['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2c2d59,'*Format:*\x20%0',function(_0x1c8a8c){switch(_0x1c8a8c){case'left':return o(_0x2c2d59,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2c2d59,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2c2d59,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2c2d59,'FORMAT_JUSTIFY_TEXT');}}(_0x5a81dc))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1fe610{['afterInit'](){const _0x94eec3=this['editor'],_0x34d55b=_0x94eec3['plugins']['get']('TrackChangesEditing'),_0x136374=_0x94eec3['locale'];for(const _0x1a25d6 of ti){if(!_0x94eec3['plugins']['has'](_0x1a25d6))continue;const _0x45c75e=_0x1a25d6['slice'](0x0,-0x7)['toLowerCase'](),_0x5578a1='FORMAT_'+_0x45c75e['toUpperCase']();_0x34d55b['enableDefaultAttributesIntegration'](_0x45c75e),_0x34d55b['registerInlineAttribute'](_0x45c75e),_0x34d55b['descriptionFactory']['registerAttributeLabel'](_0x45c75e,o(_0x136374,_0x5578a1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e3eb7=this['editor'],_0x124916=_0x5e3eb7['locale'],_0x432d07=_0x5e3eb7['plugins']['get']('TrackChangesEditing');function _0x22f18f(_0x1aa364,_0xd93771){_0x432d07['descriptionFactory']['registerDescriptionCallback'](_0x163743=>{if('formatInline'!=_0x163743['type'])return;const {data:_0x873736}=_0x163743;return _0x873736&&_0x873736['commandName']===_0x1aa364?_0x873736['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x124916,'*Format:*\x20%0',_0xd93771)}:{'type':'format','content':o(_0x124916,'*Remove\x20format:*\x20%0',_0xd93771)}:void 0x0;});}_0x22f18f('bold',o(_0x124916,'FORMAT_BOLD')),_0x22f18f('italic',o(_0x124916,'FORMAT_ITALIC')),_0x22f18f('underline',o(_0x124916,'FORMAT_UNDERLINE')),_0x22f18f('code',o(_0x124916,'FORMAT_CODE')),_0x22f18f('strikethrough',o(_0x124916,'FORMAT_STRIKETHROUGH')),_0x22f18f('subscript',o(_0x124916,'FORMAT_SUBSCRIPT')),_0x22f18f('superscript',o(_0x124916,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1fe610{['afterInit'](){const _0xb714ed=this['editor'],_0x44a017=_0xb714ed['locale'];if(!_0xb714ed['plugins']['has']('BlockQuoteEditing'))return;const _0x500c70=_0xb714ed['plugins']['get']('TrackChangesEditing'),_0x1a4000=this['editor']['commands']['get']('blockQuote');_0x500c70['enableCommand']('blockQuote',(_0x4c5ceb,_0x422491={})=>{const _0x298873=this['editor']['model']['document']['selection'],_0x44b191=_0x422491&&void 0x0!==_0x422491['forceValue']?_0x422491['forceValue']:!_0x1a4000['value'];let _0x15a04a=[];if(_0x44b191){const _0x1cff2c=Array['from'](_0x298873['getSelectedBlocks']())['filter'](_0x30fb59=>oo(_0x30fb59)||function(_0x5dd6a0,_0x20512d){const _0x4055da=_0x20512d['checkChild'](_0x5dd6a0['parent'],'blockQuote'),_0x340b82=_0x20512d['checkChild'](['$root','blockQuote'],_0x5dd6a0);return _0x4055da&&_0x340b82;}(_0x30fb59,this['editor']['model']['schema']));_0x15a04a=to(_0x1cff2c,_0xb714ed['model']);}else{const _0x584fc5=Array['from'](_0x298873['getSelectedBlocks']())['filter'](_0x5e054d=>oo(_0x5e054d));_0x15a04a=to(_0x584fc5,_0xb714ed['model']);}_0xb714ed['model']['change'](()=>{for(const _0xc4f0b6 of _0x15a04a)_0x500c70['markBlockFormat'](_0xc4f0b6,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x44b191}]});});}),_0x500c70['descriptionFactory']['registerDescriptionCallback'](_0x485522=>{const {data:_0x301963}=_0x485522;if(_0x301963&&'blockQuote'==_0x301963['commandName']){const _0x4d1772=o(_0x44a017,'ELEMENT_BLOCK_QUOTE');return _0x301963['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44a017,'*Set\x20format:*\x20%0',_0x4d1772)}:{'type':'format','content':o(_0x44a017,'*Remove\x20format:*\x20%0',_0x4d1772)};}});}}function oo(_0x585179){return'blockQuote'==_0x585179['parent']['name'];}class G extends _0x1fe610{['afterInit'](){const _0x56e91e=this['editor'];_0x56e91e['plugins']['has']('CaseChange')&&(_0x56e91e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x56e91e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x56e91e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1fe610{['afterInit'](){const _0x589da9=this['editor'];_0x589da9['commands']['get']('ckbox')&&_0x589da9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1fe610{['afterInit'](){const _0x43c2e9=this['editor'];if(!_0x43c2e9['plugins']['has']('CodeBlock'))return;const _0x1eff2e=_0x43c2e9['plugins']['get']('TrackChangesEditing'),_0x40b894=_0x43c2e9['locale'],_0x38b68b=_0x43c2e9['config']['get']('codeBlock')['languages'],_0x13bebf=_0x43c2e9['commands']['get']('codeBlock');_0x1eff2e['enableCommand']('indentCodeBlock'),_0x1eff2e['enableCommand']('outdentCodeBlock'),_0x1eff2e['enableCommand']('codeBlock',(_0x462490,_0x47130b={})=>{const _0x113212=_0x43c2e9['model'],_0x430882=_0x43c2e9['model']['document']['selection'],_0xb2e76c=_0x47130b&&void 0x0!==_0x47130b['forceValue']?_0x47130b['forceValue']:!_0x13bebf['value'];let _0xca0ade;_0x47130b['language']||(_0x47130b['language']=_0x38b68b[0x0]['language']),_0xca0ade=_0xb2e76c?Array['from'](_0x430882['getSelectedBlocks']())['filter'](_0x470edd=>eo(_0x470edd)||function(_0x56c3cb,_0x2330cd){if(_0x56c3cb['is']('rootElement')||_0x2330cd['isLimit'](_0x56c3cb))return!0x1;return _0x2330cd['checkChild'](_0x56c3cb['parent'],'codeBlock');}(_0x470edd,_0x113212['schema'])):Array['from'](_0x430882['getSelectedBlocks']())['filter'](_0x5675ac=>eo(_0x5675ac));const _0x468f01=to(_0xca0ade,_0x113212);_0x113212['change'](()=>{for(const _0x3e9bc4 of _0x468f01)_0x1eff2e['markBlockFormat'](_0x3e9bc4,{'commandName':'codeBlock','commandParams':[{..._0x47130b,'forceValue':_0xb2e76c}],'formatGroupId':'blockName'});});}),(_0x1eff2e['descriptionFactory']['registerElementLabel']('codeBlock',_0x2c54d2=>o(_0x40b894,'ELEMENT_CODE_BLOCK',_0x2c54d2)),_0x1eff2e['descriptionFactory']['registerDescriptionCallback'](_0x354c38=>{if('formatBlock'!=_0x354c38['type'])return;const _0x29caf4=_0x40b894['t'],{data:_0x2e4b01}=_0x354c38;if(!_0x2e4b01||'codeBlock'!=_0x2e4b01['commandName'])return;const _0x176081=_0x2e4b01['commandParams'][0x0]['language'],_0x1debb4=_0x29caf4(_0x38b68b['find'](_0x1fafc2=>_0x1fafc2['language']===_0x176081)['label'])['toLowerCase']();return _0x2e4b01['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40b894,'*Set\x20format:*\x20%0',o(_0x40b894,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1debb4+')')}:{'type':'format','content':o(_0x40b894,'*Remove\x20format:*\x20%0',o(_0x40b894,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5a8d81){return'codeBlock'==_0x5a8d81['name'];}class H extends _0x1fe610{['afterInit'](){const _0x397d81=this['editor'];if(!_0x397d81['plugins']['has']('CommentsEditing'))return;_0x397d81['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2af0bb,_0xbb22d3,_0x54272d){const _0x3c161d=[];for(const _0x27e14f of _0xbb22d3['getItems']())_0x27e14f['hasAttribute'](_0x2af0bb)&&_0x3c161d['push'](_0x54272d['createRangeOn'](_0x27e14f));return _0x3c161d;}function _e(_0x14ea56,_0x58d03f,{showActiveMarker:_0x5975d5=!0x0}={}){const _0x3f9a8d=_0x14ea56['plugins']['get']('TrackChangesEditing');return(_0x2c0727,_0x552627,_0x200c7e)=>{if(!_0x200c7e['consumable']['test'](_0x552627['markerRange'],_0x2c0727['name']))return;const _0x162e79=_0x552627['markerRange']['getWalker'](),_0x3885bb=_0x552627['markerRange']['start'],_0xbc4c69=_0x14ea56['model']['schema'];let _0x366d86=null,_0x136488=null,_0x52d261=!0x1,_0x22427c=!0x1;for(const _0x312b7f of _0x162e79){const _0x5319e4=_0x312b7f['item'];_0x52d261=_0x52d261||_0xbc4c69['isContent'](_0x5319e4);const _0x481af1=_0x200c7e['mapper']['toViewElement'](_0x5319e4);if(_0x481af1&&_0x481af1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x312b7f['type']&&(_0xbc4c69['isBlock'](_0x5319e4)&&!_0xbc4c69['isLimit'](_0x5319e4)&&(_0x5319e4['nextSibling']||_0x3885bb['isAtEnd']?_0x366d86&&_0x366d86['parent']==_0x5319e4||(_0x366d86=_0x5319e4,_0x5b4103(_0x312b7f['previousPosition']),_0x22427c=!0x0):_0x136488=_0x136488||_0x312b7f['previousPosition']));}function _0x5b4103(_0xba0147){const _0x2daaa0=_0x200c7e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58d03f}),_0x1f4150=_0x200c7e['mapper']['toViewPosition'](_0xba0147);_0x5975d5&&_0x3f9a8d['activeMarkers']['includes'](_0x552627['markerName'])&&_0x200c7e['writer']['addClass']('ck-suggestion-marker--active',_0x2daaa0),_0x200c7e['writer']['insert'](_0x1f4150,_0x2daaa0),_0x200c7e['mapper']['bindElementToMarker'](_0x2daaa0,_0x552627['markerName']);}_0x52d261||_0x22427c||!_0x136488||_0x5b4103(_0x136488);};}class q extends _0x1fe610{static get['requires'](){return[_0x4bcd59];}['init'](){const _0xaf4a5f=this['editor'],_0x333ccb=_0xaf4a5f['plugins']['get']('TrackChangesEditing');_0x333ccb['enableCommand']('delete');const _0xe4d0fb=_0xaf4a5f['commands']['get']('deleteForward');_0x333ccb['enableCommand']('deleteForward',(_0x44477d,_0x296edf={})=>{const _0x138716=_0xaf4a5f['model']['createSelection'](_0xaf4a5f['model']['document']['selection']);_0x138716['isCollapsed']&&_0xaf4a5f['model']['modifySelection'](_0x138716,{'direction':'forward','unit':_0x296edf['unit']});const _0x24fa4b=_0x138716['getFirstRange'](),_0x6066f2=_0x59eb41['fromRange'](_0x24fa4b);let _0x26b35e;_0x44477d(_0x296edf),_0x26b35e='$graveyard'==_0x6066f2['root']['rootName']?_0xaf4a5f['model']['createRange'](_0x24fa4b['start']):_0xaf4a5f['model']['createRange'](_0x6066f2['start'],_0x6066f2['end']),_0x6066f2['detach'](),_0xaf4a5f['model']['enqueueChange'](_0xe4d0fb['buffer']['batch'],_0x56b8ec=>{_0xe4d0fb['buffer']['lock'](),_0x56b8ec['setSelection'](_0x56b8ec['createRange'](_0x26b35e['end'])),_0xe4d0fb['buffer']['unlock']();});}),_0xaf4a5f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xaf4a5f,'merge'),{'priority':'high'}),_0xaf4a5f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4db7c4,_0xe67104,_0x52c048)=>{_0x52c048['options']['showSuggestionHighlights']&&_e(_0xaf4a5f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4db7c4,_0xe67104,_0x52c048);},{'priority':'high'}),_0xaf4a5f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x154630,_0x2e2450,_0x20c62f)=>{const _0x1d62fc=_0x20c62f['mapper']['markerNameToElements'](_0x2e2450['markerName']);if(_0x1d62fc){for(const _0x171a58 of _0x1d62fc)_0x171a58['is']('uiElement')&&(_0x20c62f['mapper']['unbindElementFromMarkerName'](_0x171a58,_0x2e2450['markerName']),_0x20c62f['writer']['remove'](_0x171a58));}},{'priority':'high'});}}class z extends _0x1fe610{['afterInit'](){const _0x7a3a25=this['editor'];if(!_0x7a3a25['plugins']['has']('ListEditing'))return;const _0x311db9=_0x7a3a25['locale'],_0x3ba95d=_0x7a3a25['plugins']['get']('TrackChangesEditing'),_0x223f91=_0x7a3a25['plugins']['has']('TodoListEditing'),_0x203183=!!_0x7a3a25['config']['get']('list.multiBlock');function _0x41c802(_0x289349){return{'type':'format','content':''+o(_0x311db9,'*Set\x20format:*\x20%0',_0x289349)};}function _0x4d2090(_0x25c8b2){return{'type':'format','content':''+o(_0x311db9,'*Remove\x20format:*\x20%0',_0x25c8b2)};}_0x3ba95d['enableDefaultAttributesIntegration']('numberedList'),_0x3ba95d['enableDefaultAttributesIntegration']('bulletedList'),_0x3ba95d['enableDefaultAttributesIntegration']('customNumberedList'),_0x3ba95d['enableDefaultAttributesIntegration']('customBulletedList'),_0x3ba95d['enableDefaultAttributesIntegration']('indentList'),_0x3ba95d['enableDefaultAttributesIntegration']('outdentList'),_0x3ba95d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3ba95d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3ba95d['registerBlockAttribute']('listItemId'),_0x3ba95d['registerBlockAttribute']('listType'),_0x3ba95d['registerBlockAttribute']('listIndent'),_0x203183&&(_0x3ba95d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3ba95d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x223f91&&(_0x3ba95d['enableDefaultAttributesIntegration']('todoList'),_0x3ba95d['enableDefaultAttributesIntegration']('checkTodoList'),_0x3ba95d['registerBlockAttribute']('todoListChecked'),_0x3ba95d['descriptionFactory']['registerDescriptionCallback'](_0xe30e1c=>{const {data:_0x493915}=_0xe30e1c;if(_0x493915&&'todoListChecked'==_0x493915['key'])return{'type':'format','content':_0x493915['newValue']?o(_0x311db9,'*Check\x20item*'):o(_0x311db9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1d22e5=>{if(_0x1d22e5['batch']['isUndo'])return!0x1;let _0x5e6801=!0x1;const _0x57c46f=_0x3ba95d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a48d6=>'todoListChecked'===_0x3ba95d['_getAttributeKey'](_0x2a48d6));for(const _0x14257a of _0x57c46f){'todo'!=_0x14257a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3ba95d['_findSuggestions'](_0x14257a['getFirstRange'](),'attribute')['find'](_0x3f321d=>'listType'===_0x3ba95d['_getAttributeKey'](_0x3f321d['suggestion']))||(_0x1d22e5['removeMarker'](_0x14257a['getFirstMarker']()),_0x5e6801=!0x0));}return _0x5e6801;})),_0x3ba95d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x311db9,'FORMAT_INDENT'));const _0x255e95={'type':'format','content':''};_0x3ba95d['descriptionFactory']['registerDescriptionCallback'](_0xce3d94=>{const {data:_0x374701}=_0xce3d94;if(!_0x374701||'listType'!=_0x374701['key'])return;let _0x344420=_0xce3d94['head'];for(;_0x344420;){if(_0x344420['data']&&(('listStyle'==_0x344420['data']['key']||'listMarkerStyle'==_0x344420['data']['key'])&&(_0x344420['data']['newValue']&&'default'!=_0x344420['data']['newValue']||'default'!=_0x344420['data']['oldValue']&&!_0x374701['newValue'])||!_0x203183&&_0x344420['data']['key']==m))return _0x255e95;_0x344420=_0x344420['next'];}if(null==_0x374701['newValue'])switch(_0x374701['oldValue']){case'bulleted':return _0x4d2090(o(_0x311db9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4d2090(o(_0x311db9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4d2090(o(_0x311db9,'ELEMENT_TODO_LIST'));}switch(_0x374701['newValue']){case'bulleted':return _0x41c802(o(_0x311db9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x41c802(o(_0x311db9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x41c802(o(_0x311db9,'ELEMENT_TODO_LIST'));}}),_0x3ba95d['descriptionFactory']['registerDescriptionCallback'](_0x48ba2b=>{const {data:_0x4759ed}=_0x48ba2b;if(_0x4759ed&&'listIndent'==_0x4759ed['key'])return null==_0x4759ed['newValue']||null==_0x4759ed['oldValue']&&0x0==_0x4759ed['newValue']?_0x255e95:void 0x0;}),_0x3ba95d['descriptionFactory']['registerDescriptionCallback'](_0xd776f3=>{if('attribute'!=_0xd776f3['type'])return;const {data:_0x6f14c6}=_0xd776f3;if(!_0x6f14c6||'listItemId'!=_0x6f14c6['key'])return;const _0x4415e6=le(_0xd776f3);return'newValue'==_0x4415e6?{'type':'format','content':o(_0x311db9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4415e6?{'type':'format','content':o(_0x311db9,'*Split:*\x20list\x20item')}:_0x255e95;}),_0x7a3a25['model']['document']['registerPostFixer'](_0x83f88a=>this['listItemIdFixer'](_0x83f88a)),_0x7a3a25['model']['document']['registerPostFixer'](_0x2b1598=>this['noTrackChangesFixer'](_0x2b1598)),_0x7a3a25['model']['document']['registerPostFixer'](_0x28736b=>this['assureChains'](_0x28736b)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x158e95){if(_0x158e95['batch']['isUndo']||!_0x158e95['batch']['isLocal'])return!0x1;let _0x3cc0ed=!0x1;const _0x40c4e1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1435f3=>_0x1435f3['data']&&'listItemId'==_0x1435f3['data']['key'])['filter'](_0x4e78e0=>_0x4e78e0['data']['newValue']&&_0x4e78e0['data']['oldValue']);for(const _0x22b531 of _0x40c4e1)le(_0x22b531)||(_0x158e95['removeMarker'](_0x22b531['getFirstMarker']()),_0x3cc0ed=!0x0);return _0x3cc0ed;}['noTrackChangesFixer'](_0x2d743e){if(_0x2d743e['batch']['isUndo']||!_0x2d743e['batch']['isLocal'])return!0x1;const _0x390b9a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x390b9a['trackChangesCommand']['value'])return!0x1;let _0x2fc5cf=!0x1;const _0x3ae2b1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1beb27=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4fa35f=>'attribute'==_0x4fa35f['type'])['filter'](_0x4bd980=>_0x3ae2b1['includes'](_0x4bd980['attributeKey']));if(0x0==_0x1beb27['length'])return _0x2fc5cf;for(const _0x3df56d of _0x1beb27){const _0xaa427d=_0x390b9a['_findSuggestions'](_0x3df56d['range'],'attribute')['filter'](_0x57640b=>!_0x57640b['meta']['isNextTo'])['map'](_0x14c558=>_0x14c558['suggestion'])['filter'](_0x4c9086=>{const _0x651975=_0x390b9a['_getAttributeKey'](_0x4c9086);return _0x3ae2b1['includes'](_0x651975);});if(_0xaa427d['length']){for(const _0x3923c0 of _0xaa427d)_0x2d743e['removeMarker'](_0x3923c0['getFirstMarker']());_0x2fc5cf=!0x0;}}return _0x2fc5cf;}['assureChains'](_0x2d9d30){if(_0x2d9d30['batch']['isUndo']||!_0x2d9d30['batch']['isLocal'])return!0x1;const _0x38ddd0=this['editor']['plugins']['get']('TrackChangesEditing');let _0x2d1c8c=!0x1;const _0x507e3e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x53f3e0 of _0x38ddd0['getSuggestions']({'skipNotAttached':!0x0})){const _0x569711=_0x38ddd0['_findSuggestions'](_0x53f3e0['getFirstRange'](),'attribute')['map'](_0x157a45=>_0x157a45['suggestion'])['filter'](_0x1e3ca9=>_0x1e3ca9['data']&&_0x507e3e['includes'](_0x1e3ca9['data']['key']));if(!_0x569711['length'])continue;const _0x53e0b2=_0x569711[0x0]['head']['attributes']['groupId'];if(!_0x569711['every'](_0x4c8429=>_0x4c8429['attributes']['groupId']===_0x53e0b2)){for(const _0x4a4ad3 of _0x569711)_0x599846(_0x4a4ad3,_0x53e0b2)&&(_0x2d1c8c=!0x0);}}return _0x2d1c8c;function _0x1190cb(_0x385d55,_0xbf6b3a){for(const _0x575d53 of _0x38ddd0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x460f87=>'attribute'==_0x460f87['type']&&_0x460f87['attributes']['groupId']==_0x385d55))_0x575d53['setAttribute']('groupId',_0xbf6b3a);}function _0x599846(_0x5c7520,_0x44a703){let _0x441225=_0x5c7520['head'],_0x4dc1c2=!0x1;for(;_0x441225;)_0x441225['attributes']['groupId']!=_0x44a703&&(_0x1190cb(_0x441225['attributes']['groupId'],_0x44a703),_0x441225['setAttribute']('groupId',_0x44a703),_0x4dc1c2=!0x0),_0x441225=_0x441225['next'];return _0x4dc1c2;}}['_supportLegacySuggestions'](){const _0x50062f=this['editor'],_0x54b617=_0x50062f['locale'],_0x4a64f7=_0x50062f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4a64f7['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5a8abc,_0x4a7a25){const _0x59d2ef=[];for(let _0x4d1884 of _0x5a8abc)_0x4d1884['start']['nodeAfter']===_0x4d1884['end']['parent']&&(_0x4d1884=_0x50062f['model']['createRange'](_0x50062f['model']['createPositionAt'](_0x4d1884['start']['nodeAfter'],0x0))),_0x59d2ef['push'](_0x4d1884);_0x50062f['model']['change'](_0x2846c4=>{const _0x5dc7ed=_0x50062f['model']['document']['selection'],_0x19c19c=Array['from'](_0x5dc7ed['getRanges']())['map'](_0x8b0ef7=>_0x59eb41['fromRange'](_0x8b0ef7));_0x2846c4['setSelection'](_0x59d2ef),_0x50062f['commands']['get'](_0x4a7a25['commandName'])['refresh'](),_0x4a7a25['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x50062f['execute'](_0x4a7a25['commandName'],..._0x4a7a25['commandParams']),_0x2846c4['setSelection'](_0x19c19c);for(const _0x2e47b3 of _0x19c19c)_0x2e47b3['detach']();});}),_0x4a64f7['descriptionFactory']['registerElementLabel'](function(_0x1fada5){const _0x44b011=!_0x50062f['model']['schema']['isObject'](_0x1fada5),_0x20143d=_0x1fada5['previousSibling'],_0x34ea6e=_0x1fada5['nextSibling'],_0x212f02=_0x1fada5['getAttribute']('listItemId'),_0x423dd1=!_0x20143d||_0x20143d['getAttribute']('listItemId')!==_0x212f02,_0x39fe25=!_0x34ea6e||_0x34ea6e['getAttribute']('listItemId')!==_0x212f02;return _0x44b011&&Boolean(_0x212f02)&&_0x423dd1&&_0x39fe25;},_0x188bb7=>o(_0x54b617,'ELEMENT_LIST_ITEM',_0x188bb7));}['_registerLegacyDescription'](){const _0xa27aed=this['editor'],_0x4fb17f=_0xa27aed['locale'];function _0xf617c6(_0x1f5362){const _0x7157ec=_0xa27aed['commands']['get']('bulletedList')['value'],_0x2905dc=_0xa27aed['commands']['get']('numberedList')['value'];return'numberedList'===_0x1f5362?_0x7157ec:_0x2905dc;}_0xa27aed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x440220){if('formatBlock'!=_0x440220['type'])return;const {data:_0x596cc1}=_0x440220;if(!_0x596cc1)return;let _0x54d1a5,_0x1c53ed,_0x3f625a,_0xbd8aaf;switch(_0x596cc1['commandName']){case'bulletedList':_0x3f625a=_0x596cc1['commandParams'][0x0]['forceValue'],_0xbd8aaf=_0xf617c6(_0x596cc1['commandName']),_0x54d1a5=_0x3f625a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xbd8aaf&&_0xa27aed['config']['get']('list.multiBlock')||(_0x54d1a5='*Change\x20to:*\x20%0'),_0x1c53ed={'type':'format','content':o(_0x4fb17f,_0x54d1a5,o(_0x4fb17f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3f625a=_0x596cc1['commandParams'][0x0]['forceValue'],_0xbd8aaf=_0xf617c6(_0x596cc1['commandName']),_0x54d1a5=_0x3f625a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xbd8aaf&&_0xa27aed['config']['get']('list.multiBlock')||(_0x54d1a5='*Change\x20to:*\x20%0'),_0x1c53ed={'type':'format','content':o(_0x4fb17f,_0x54d1a5,o(_0x4fb17f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x54d1a5='*Indent:*\x20%0',_0x1c53ed={'type':'format','content':o(_0x4fb17f,_0x54d1a5,o(_0x4fb17f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x54d1a5=function(_0x8ccb80){const _0x184584=_0x8ccb80['getFirstRange']();let _0x3afcd8=_0x184584['start']['nodeAfter'];for(;_0x3afcd8&&_0x184584['containsItem'](_0x3afcd8);){if(_0x3afcd8['getAttribute']('listIndent')>0x0)return!0x1;_0x3afcd8=_0x3afcd8['nextSibling'];}return!0x0;}(_0x440220)?o(_0x4fb17f,'*Format:*\x20remove\x20from\x20%0',o(_0x4fb17f,function(_0x422e4a){return'ELEMENT_'+_0x422e4a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x440220))):o(_0x4fb17f,'*Outdent:*\x20%0',o(_0x4fb17f,'ELEMENT_LIST_ITEM')),_0x1c53ed={'type':'format','content':_0x54d1a5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x596cc1['multipleBlocks']&&(_0x54d1a5='*Merge:*\x20%0',_0x1c53ed={'type':'deletion','content':o(_0x4fb17f,_0x54d1a5,o(_0x4fb17f,'ELEMENT_LIST_ITEM'))});}return _0x1c53ed;});}}function le(_0x1f6405){let _0x1eb9fa=_0x1f6405['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1eb9fa;){const _0x3b3c3c=_0x1eb9fa['getAttribute']('listItemId');if(!_0x3b3c3c)return!0x1;if(_0x3b3c3c==_0x1f6405['data']['newValue'])return'newValue';if(_0x3b3c3c==_0x1f6405['data']['oldValue'])return'oldValue';_0x1eb9fa=_0x1eb9fa['previousSibling'];}return!0x1;}class ue extends _0x1fe610{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x17a194=this['editor']['config']['get']('list.properties'),_0x15884b=this['editor']['plugins']['get']('TrackChangesEditing');_0x17a194['styles']&&(_0x15884b['enableDefaultAttributesIntegration']('listStyle'),_0x15884b['registerBlockAttribute']('listStyle')),_0x17a194['reversed']&&(_0x15884b['enableDefaultAttributesIntegration']('listReversed'),_0x15884b['registerBlockAttribute']('listReversed')),_0x17a194['startIndex']&&(_0x15884b['enableDefaultAttributesIntegration']('listStart'),_0x15884b['registerBlockAttribute']('listStart'));const _0x2e9f46={'type':'format','content':''};_0x15884b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ed375=this['editor']['locale'];_0x15884b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4ed375,'FORMAT_LIST_REVERSED')),_0x15884b['descriptionFactory']['registerDescriptionCallback'](_0x1131a4=>{const {data:_0x44d6b6}=_0x1131a4;if(_0x44d6b6&&'listReversed'==_0x44d6b6['key'])return null==_0x44d6b6['newValue']||0x0==_0x44d6b6['newValue']&&null==_0x44d6b6['oldValue']?_0x2e9f46:void 0x0;}),_0x15884b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4ed375,'FORMAT_LIST_START')),_0x15884b['descriptionFactory']['registerDescriptionCallback'](_0x3a9f74=>{const {data:_0x28c085}=_0x3a9f74;if(_0x28c085&&'listStart'==_0x28c085['key'])return null==_0x28c085['newValue']||0x1==_0x28c085['newValue']&&null==_0x28c085['oldValue']?_0x2e9f46:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x452ebd=>{if(_0x452ebd['batch']['isUndo'])return!0x1;let _0x435358=!0x1;const _0x1235e1=_0x15884b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x373c00=>{const _0x46adad=_0x15884b['_getAttributeKey'](_0x373c00);return'listStart'==_0x46adad||'listReversed'==_0x46adad;});for(const _0x3fb9d6 of _0x1235e1){const _0x18c956=_0x3fb9d6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x18c956||'customNumbered'==_0x18c956)continue;_0x15884b['_findSuggestions'](_0x3fb9d6['getFirstRange'](),'attribute')['find'](_0x450fa1=>'listType'==_0x15884b['_getAttributeKey'](_0x450fa1['suggestion']))||(_0x452ebd['removeMarker'](_0x3fb9d6['getFirstMarker']()),_0x435358=!0x0);}return _0x435358;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x440642){const _0x53c01a=this['editor']['locale'],{data:_0x4085bf}=_0x440642,_0x3bd946={'type':'format','content':''};if(!_0x4085bf||'listStyle'!=_0x4085bf['key'])return;if(!_0x4085bf['oldValue'])return'default'==_0x4085bf['newValue']?_0x3bd946:{'type':'format','content':''+o(_0x53c01a,'*Set\x20format:*\x20%0',o(_0x53c01a,this['_getTranslationKeyForListStyle'](_0x4085bf['newValue'])))};if(!_0x4085bf['newValue']){if('default'==_0x4085bf['oldValue'])return _0x3bd946;let _0x407906=_0x440642['head'];for(;_0x407906;){if(_0x407906['data']&&'listType'==_0x407906['data']['key']&&_0x407906['data']['newValue'])return _0x3bd946;_0x407906=_0x407906['next'];}return{'type':'format','content':''+o(_0x53c01a,'*Remove\x20format:*\x20%0',o(_0x53c01a,this['_getTranslationKeyForListStyle'](_0x4085bf['oldValue'])))};}if('default'!=_0x4085bf['newValue'])return{'type':'format','content':''+o(_0x53c01a,'*Set\x20format:*\x20%0',o(_0x53c01a,this['_getTranslationKeyForListStyle'](_0x4085bf['newValue'])))};let _0x361877=_0x440642['head'];for(;_0x361877;){if(_0x361877['data']&&'listType'==_0x361877['data']['key']&&_0x361877['data']['newValue']&&_0x361877['data']['oldValue'])return _0x3bd946;_0x361877=_0x361877['next'];}return{'type':'format','content':o(_0x53c01a,'*Set\x20format:*\x20%0',o(_0x53c01a,'ELEMENT_'+_0x440642['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x27f503=this['editor'],_0x34af43=_0x27f503['locale'];_0x27f503['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a8cad=>{if('formatBlock'!=_0x1a8cad['type'])return;const {data:_0x12b07c}=_0x1a8cad;if(!_0x12b07c)return;let _0xaf9595,_0x15673e;switch(_0x12b07c['commandName']){case'listStyle':_0xaf9595='*Change\x20to:*\x20%0',_0x15673e={'type':'format','content':o(_0x34af43,_0xaf9595,o(_0x34af43,this['_getTranslationKeyForListStyle'](_0x12b07c['commandParams'][0x0]['type'])))};break;case'listReversed':_0xaf9595=_0x12b07c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x15673e={'type':'format','content':o(_0x34af43,_0xaf9595)};break;case'listStart':_0xaf9595='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x15673e={'type':'format','content':o(_0x34af43,_0xaf9595,_0x12b07c['commandParams'][0x0]['startIndex'])};}return _0x15673e;});}['_getTranslationKeyForListStyle'](_0x82c624){return'ELEMENT_'+function(_0x4d88a9){if(pe['includes'](_0x4d88a9))return'bulleted';if(ye['includes'](_0x4d88a9))return'numbered';return null;}(_0x82c624)['toUpperCase']()+'_LIST_'+_0x82c624['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1fe610{static get['requires'](){return[_0x1b5a6e];}['init'](){const _0x2edf18=this['editor'],_0x271e08=_0x2edf18['plugins']['get']('TrackChangesEditing'),_0xe761df=_0x2edf18['commands']['get']('enter');_0x271e08['enableCommand']('enter',()=>{_0x2edf18['model']['change'](_0x3abf44=>{const _0x539cf4=_0x2edf18['model']['document']['selection'],_0x3ade3f=_0x539cf4['getFirstPosition'](),_0xb1d751=_0x59eb41['fromRange'](_0x539cf4['getFirstRange']());if(_0xe761df['enterBlock'](_0x3abf44)){const _0x4da25f=_0x2edf18['model']['createPositionAt'](_0x3ade3f['parent']['nextSibling'],0x0),_0x58af80=_0x3abf44['createRange'](_0x3ade3f,_0x4da25f);_0x271e08['markInsertion'](_0x58af80);}else _0x3abf44['setSelection'](_0x3abf44['createRange'](_0xb1d751['end']));_0xb1d751['detach'](),_0xe761df['fire']('afterExecute',{'writer':_0x3abf44});});}),_0x2edf18['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2edf18,'split'),{'priority':'high'}),_0x2edf18['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x524f87,_0x43bf4c,_0x110c91)=>{const _0x2aa67c=_0x110c91['mapper']['markerNameToElements'](_0x43bf4c['markerName']);if(_0x2aa67c){for(const _0x37861a of _0x2aa67c)_0x37861a['hasClass']('ck-suggestion-marker-split')&&(_0x110c91['mapper']['unbindElementFromMarkerName'](_0x37861a,_0x43bf4c['markerName']),_0x110c91['writer']['remove'](_0x37861a));}},{'priority':'high'}),_0x2edf18['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c1ab5,_0x56dca7,_0x125a44)=>{_0x125a44['options']['showSuggestionHighlights']&&_e(_0x2edf18,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3c1ab5,_0x56dca7,_0x125a44);},{'priority':'high'});}}class J extends _0x1fe610{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xac32ec=this['editor']['plugins']['get']('TrackChangesEditing');_0xac32ec['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xac32ec['enableCommand']('findNext'),_0xac32ec['enableCommand']('findPrevious'),_0xac32ec['enableCommand']('replace'),_0xac32ec['enableCommand']('replaceAll');}['handleFindCommand'](_0x11e38d,_0x153d47,_0x293afa={}){const _0x5a7399=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x11e38d(_0x3d2186=>('string'==typeof _0x153d47?_0x5a7399['findByTextCallback'](_0x153d47,_0x293afa):_0x153d47)(_0x3d2186)['filter'](_0x552d6e=>!0x1===this['_isInDeletionRange'](_0x552d6e,_0x3d2186['item'])),_0x293afa);}['_isInDeletionRange'](_0x31f1b3,_0x54eb06){const _0x364486=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54eb06,_0x31f1b3['start']),this['editor']['model']['createPositionAt'](_0x54eb06,_0x31f1b3['end']));for(const _0x23bd56 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x364486['getIntersection'](_0x23bd56['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 _0x1fe610{['afterInit'](){const _0x24e8b9=this['editor']['locale'],_0x2afc09=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x65326f,commandName:_0x2c5679}of ro)this['editor']['plugins']['has'](_0x65326f)&&(_0x2afc09['enableDefaultAttributesIntegration'](_0x2c5679),_0x2afc09['registerInlineAttribute'](_0x2c5679));_0x24e8b9['t'],_0x2afc09['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x24e8b9,'FORMAT_FONT_SIZE')),_0x2afc09['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x24e8b9,'FORMAT_FONT_FAMILY')),_0x2afc09['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x24e8b9,'FORMAT_FONT_COLOR')),_0x2afc09['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x24e8b9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30225f=this['editor'],_0x52a312=_0x30225f['locale'];_0x30225f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x142525=>{const _0xf373db=_0x52a312['t'];if('formatInline'!=_0x142525['type'])return;const {data:_0x62f0ea}=_0x142525;if(null!=_0x62f0ea){if('fontSize'==_0x62f0ea['commandName']){const _0x525b4e=_0x62f0ea['commandParams'][0x0]['value'];if(_0x525b4e){const _0x561f00=_0xf373db(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x286693=>_0x286693['model']==_0x525b4e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x52a312,'*Set\x20font\x20size:*\x20%0',_0x561f00)};}return{'type':'format','content':o(_0x52a312,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x62f0ea['commandName']){const _0x2d7441=_0x62f0ea['commandParams'][0x0]['value'];return _0x2d7441?{'type':'format','content':o(_0x52a312,'*Set\x20font\x20family:*\x20%0',_0x2d7441)}:{'type':'format','content':o(_0x52a312,'*Reset\x20font\x20family*')};}if('fontColor'==_0x62f0ea['commandName']){const _0x432458=_0x62f0ea['commandParams'][0x0]['value'];if(_0x432458){const _0x2c4e14=_0x426160(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1a1e89=>_0x1a1e89['model']==_0x432458);let _0x265e33=_0x432458,_0xa49589='';return _0x2c4e14&&(_0x265e33=_0x2c4e14['label'],_0xa49589=_0xf373db(_0x265e33)['toLowerCase']()),{'type':'format','content':o(_0x52a312,'*Set\x20font\x20color:*\x20%0',_0xa49589)['trim'](),'color':{'value':_0x432458,'title':_0xa49589||_0x265e33}};}return{'type':'format','content':o(_0x52a312,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x62f0ea['commandName']){const _0x5ad0fe=_0x62f0ea['commandParams'][0x0]['value'];if(_0x5ad0fe){const _0x55b315=_0x426160(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3e1ba7=>_0x3e1ba7['model']==_0x5ad0fe);let _0x491840=_0x5ad0fe,_0x43b8b2='';return _0x55b315&&(_0x491840=_0x55b315['label'],_0x43b8b2=_0xf373db(_0x491840)['toLowerCase']()),{'type':'format','content':o(_0x52a312,'*Set\x20font\x20background\x20color:*\x20%0',_0x43b8b2)['trim'](),'color':{'value':_0x5ad0fe,'title':_0x43b8b2||_0x491840}};}return{'type':'format','content':o(_0x52a312,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1fe610{['afterInit'](){const _0x396565=this['editor'],_0x47856e=_0x396565['plugins']['get']('TrackChangesEditing'),_0x562696=_0x396565['commands']['get']('copyFormat'),_0x3fa370=_0x396565['commands']['get']('pasteFormat');_0x562696&&_0x3fa370&&(_0x47856e['enableDefaultAttributesIntegration']('pasteFormat'),_0x47856e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x16bf59=this['editor'],_0x5445bf=_0x16bf59['locale'];_0x16bf59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8eccc7=>{if('formatBlock'!=_0x8eccc7['type']&&'formatInline'!=_0x8eccc7['type'])return;const {data:_0xc55535}=_0x8eccc7;if(_0xc55535&&'pasteFormat'===_0xc55535['commandName']){const _0x11835f=[],_0x3ee865=_0xc55535['commandParams'][0x0];for(const [_0x3cbe6d,_0x71bd5e]of Object['entries'](_0x3ee865))_0x11835f['push'](so(_0x16bf59,_0x3cbe6d,_0x71bd5e));return _0x11835f['length']?{'type':'format','content':o(_0x5445bf,'*Set\x20format\x20to:*\x20%0',_0x11835f['join'](',\x20'))}:{'type':'format','content':o(_0x5445bf,'*Remove\x20all\x20formatting*')};}});}}function so(_0x19a360,_0x335979,_0x20c248){const _0x4b262a=_0x19a360['locale']['t'],_0x4674d3=_0x335979['split'](/(?=[A-Z])/)['join']('\x20'),_0x59fb00=_0x4b262a(_0x4674d3['charAt'](0x0)['toUpperCase']()+_0x4674d3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x20c248)return _0x59fb00;if('fontColor'===_0x335979||'fontBackgroundColor'===_0x335979){const _0x3a7374=_0x426160(_0x19a360['config']['get']('fontColor.colors'))['find'](_0x19084a=>_0x19084a['model']==_0x20c248);return _0x59fb00+'\x20('+(_0x3a7374?_0x4b262a(_0x3a7374['label'])['toLowerCase']():_0x20c248)+')';}if('fontSize'===_0x335979&&isNaN(parseFloat(_0x20c248))){const _0xd4ce73=_0x19a360['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x19a360['config']['get']('fontSize.options'))['find'](_0x42871a=>_0x42871a['model']==_0x20c248);return _0x59fb00+'\x20('+(_0xd4ce73?_0x4b262a(_0xd4ce73['title'])['toLowerCase']():_0x20c248)+')';}return _0x59fb00+'\x20('+_0x20c248+')';}class Y extends _0x1fe610{['_headingOptions'];['afterInit'](){const _0x277d85=this['editor'];if(!_0x277d85['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x277d85['config']['get']('heading.options');const _0x3385db=_0x277d85['locale'],_0x46b308=_0x277d85['plugins']['get']('TrackChangesEditing');_0x46b308['enableDefaultAttributesIntegration']('heading');for(const _0x6e9be7 of this['_headingOptions'])'paragraph'!=_0x6e9be7['model']&&_0x46b308['descriptionFactory']['registerElementLabel'](_0x6e9be7['model'],_0x3c303e=>{const _0x3ff574=this['_getHeadingLevel'](_0x6e9be7['model']);return null!==_0x3ff574?_0x595ac6(_0x3c303e,_0x3ff574):_0x1ffd72(_0x3c303e,_0x6e9be7['title']);});function _0x595ac6(_0x2cbf17,_0x1632b3){return o(_0x3385db,'ELEMENT_HEADING',[_0x2cbf17,_0x1632b3]);}function _0x1ffd72(_0xd3f148,_0x3f658f){return o(_0x3385db,'ELEMENT_HEADING_CUSTOM',[_0xd3f148,_0x3f658f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33bfe3=this['editor'],_0x47bb99=_0x33bfe3['locale'];function _0x42e5ac(_0x5ce9ee,_0x43c801){return o(_0x47bb99,'ELEMENT_HEADING_CUSTOM',[_0x5ce9ee,_0x43c801]);}_0x33bfe3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f4bfd=>{if('formatBlock'!=_0x1f4bfd['type'])return;const {data:_0x144bad}=_0x1f4bfd;if(_0x144bad&&'heading'==_0x144bad['commandName']){const _0x3eeba0=_0x144bad['commandParams'][0x0]['value'],_0x6381ba=this['_getHeadingLevel'](_0x3eeba0);if(null!==_0x6381ba)return{'type':'format','content':o(_0x47bb99,'*Change\x20to:*\x20%0',(_0xcf23a4=0x1,_0x48e598=_0x6381ba,o(_0x47bb99,'ELEMENT_HEADING',[_0xcf23a4,_0x48e598])))};const _0xa0238a=this['_headingOptions']['find'](_0x1bb21f=>_0x1bb21f['model']===_0x3eeba0)['title'];return{'type':'format','content':o(_0x47bb99,'*Change\x20to:*\x20%0',_0x42e5ac(0x1,_0xa0238a))};}var _0xcf23a4,_0x48e598;});}['_getHeadingLevel'](_0x24bf1e){const _0x43b13e=_0x24bf1e['match'](/^heading(\d+)/);if(_0x43b13e)return _0x43b13e[0x1];const _0x5af821=this['_headingOptions']?.['find'](_0x2838fe=>_0x2838fe['model']==_0x24bf1e);if(_0x5af821&&_0x5af821['view']){const _0x412e5b=_0x5af821['view'],_0x2c234f=(_0x412e5b['name']??_0x412e5b)['match'](/^h(\d+)/);if(_0x2c234f)return _0x2c234f[0x1];}return null;}}class Z extends _0x1fe610{['afterInit'](){const _0x1bd2a8=this['editor'];if(!_0x1bd2a8['plugins']['has']('HighlightEditing'))return;const _0x4b5ebd=_0x1bd2a8['plugins']['get']('TrackChangesEditing'),_0x284c29=_0x1bd2a8['locale'];_0x4b5ebd['enableDefaultAttributesIntegration']('highlight'),_0x4b5ebd['registerInlineAttribute']('highlight'),_0x4b5ebd['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x284c29,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a4ca0=this['editor'],_0x832f7a=_0x2a4ca0['locale'];_0x2a4ca0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53b50c=>{if('formatInline'!=_0x53b50c['type'])return;const {data:_0x4b91c9}=_0x53b50c;if(_0x4b91c9&&'highlight'==_0x4b91c9['commandName']){const _0x27549d=_0x832f7a['t'],_0x56b704=_0x4b91c9['commandParams'][0x0]['value'];if(_0x56b704){const _0x4f546f=_0x2a4ca0['config']['get']('highlight.options')['find'](_0x37db10=>_0x37db10['model']==_0x56b704),_0x525d0d=_0x27549d(_0x4f546f['title'])['toLowerCase']();return{'type':'format','content':o(_0x832f7a,'*Set\x20highlight:*\x20%0',_0x525d0d),'color':{'value':_0x4f546f['color'],'title':_0x4f546f['title']}};}return{'type':'format','content':o(_0x832f7a,'*Remove\x20highlight*',o(_0x832f7a,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1fe610{['afterInit'](){const _0x30824f=this['editor'];if(!_0x30824f['plugins']['has']('HorizontalLineEditing'))return;_0x30824f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5884bb=_0x30824f['plugins']['get']('TrackChangesEditing'),_0x190acf=_0x30824f['locale'];_0x5884bb['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2c077e=>o(_0x190acf,'ELEMENT_HORIZONTAL_LINE',_0x2c077e)),_0x30824f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x19c2ec,{writer:_0x4cb409,options:_0x4186e2})=>{if(!_0x4186e2['showSuggestionHighlights'])return null;const _0x46fbe3=_0x4cb409['createContainerElement']('div'),_0x4291a8=_0x4cb409['createEmptyElement']('hr');return _0x4cb409['addClass']('ck-horizontal-line',_0x46fbe3),_0x4cb409['insert'](_0x4cb409['createPositionAt'](_0x46fbe3,0x0),_0x4291a8),_0x46fbe3;},'converterPriority':'high'});}}class et extends _0x1fe610{['afterInit'](){const _0xa127db=this['editor'];if(!_0xa127db['plugins']['has']('HtmlEmbed'))return;const _0x3d5d58=_0xa127db['plugins']['get']('TrackChangesEditing'),_0x23fa7b=_0xa127db['locale'];_0x3d5d58['descriptionFactory']['registerElementLabel']('rawHtml',_0xd46839=>o(_0x23fa7b,'ELEMENT_HTML_EMBED',_0xd46839)),_0x3d5d58['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3d5d58['registerBlockAttribute']('value'),_0x3d5d58['descriptionFactory']['registerDescriptionCallback'](_0x351653=>{if('attribute'!=_0x351653['type'])return;const {data:_0x147458}=_0x351653;if(_0x147458&&'value'==_0x147458['key']&&_0x351653['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x180155=o(_0x23fa7b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x23fa7b,'*Change\x20%0\x20content*',_0x180155)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x588f37=this['editor'],_0x8b86ed=_0x588f37['locale'];_0x588f37['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34952a=>{if('formatBlock'!=_0x34952a['type'])return;const {data:_0x215e9f}=_0x34952a;if(_0x215e9f&&'htmlEmbed'==_0x215e9f['commandName']){const _0x5e9362=o(_0x8b86ed,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x8b86ed,'*Change\x20%0\x20content*',_0x5e9362)};}});}}class it extends _0x1fe610{['afterInit'](){const _0x102a80=this['editor'];if(!_0x102a80['plugins']['has']('ImageEditing'))return;const _0x3f93bd=_0x102a80['plugins']['get']('TrackChangesEditing'),_0xf433ca=_0x102a80['plugins']['get']('ImageUtils'),_0x22f483=_0x102a80['locale'];_0x3f93bd['enableCommand']('insertImage'),_0x3f93bd['descriptionFactory']['registerElementLabel']('imageBlock',_0xfaa732=>o(_0x22f483,'ELEMENT_IMAGE',_0xfaa732)),_0x3f93bd['descriptionFactory']['registerElementLabel']('imageInline',_0x221716=>o(_0x22f483,'ELEMENT_INLINE_IMAGE',_0x221716)),_0x3f93bd['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x22f483,'ELEMENT_CAPTION')),_0x102a80['plugins']['has']('ImageUploadEditing')&&_0x3f93bd['enableCommand']('uploadImage'),_0x102a80['plugins']['has']('ImageBlockEditing')&&_0x102a80['plugins']['has']('ImageInlineEditing')&&(_0x3f93bd['enableCommand']('imageTypeInline',(_0x513d83,_0x4ff3f8)=>{const _0x27a4c3=_0xf433ca['getClosestSelectedImageElement'](_0x102a80['model']['document']['selection']);_0x102a80['model']['change'](()=>{_0x3f93bd['markBlockFormat'](_0x27a4c3,{'commandName':'imageTypeInline','commandParams':[_0x4ff3f8]},[],'convertBlockImageToInline');});}),_0x3f93bd['enableCommand']('imageTypeBlock',(_0x5112fe,_0x42adf8)=>{_0x102a80['model']['change'](_0x1faa38=>{let _0xbf4cd9=_0xf433ca['getClosestSelectedImageElement'](_0x102a80['model']['document']['selection']),_0x58e622=_0x1faa38['createRangeOn'](_0xbf4cd9);const _0x882bdd=_0x39b482['fromPosition'](_0x58e622['start'],'toPrevious'),_0x35d3fd=_0x39b482['fromPosition'](_0x58e622['end'],'toNext');_0x3f93bd['forceDefaultExecution'](()=>_0x5112fe(_0x42adf8)),_0xbf4cd9=_0xf433ca['getClosestSelectedImageElement'](_0x102a80['model']['document']['selection']),_0x58e622=_0x1faa38['createRangeOn'](_0xbf4cd9);const _0x231236=_0x1faa38['createRange'](_0x882bdd,_0x35d3fd);_0x882bdd['detach'](),_0x35d3fd['detach'](),_0x3f93bd['markBlockFormat'](_0xbf4cd9,{'commandName':'imageTypeInline','commandParams':[_0x42adf8]},[],'convertInlineImageToBlock'),_0x231236['start']['isBefore'](_0x58e622['start'])&&_0x3f93bd['markInsertion'](_0x1faa38['createRange'](_0x231236['start'],_0x58e622['start']),'convertInlineImageToBlock'),_0x58e622['end']['isBefore'](_0x231236['end'])&&_0x3f93bd['markInsertion'](_0x1faa38['createRange'](_0x58e622['end'],_0x231236['end']),'convertInlineImageToBlock');});}),_0x3f93bd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3f93bd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3f93bd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3f93bd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3f93bd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3f93bd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5541d9])=>{const _0x1790a7=_0x3f93bd['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x8f7c3d=_0x5541d9['start'],_0x329d9a=_0x5541d9['end'];const _0x206fdd=_0x102a80['model']['schema']['getNearestSelectionRange'](_0x8f7c3d,'backward'),_0xa7eaf2=_0x102a80['model']['schema']['getNearestSelectionRange'](_0x329d9a,'forward');_0x206fdd['isCollapsed']&&(_0x8f7c3d=_0x206fdd['start']),_0xa7eaf2['isCollapsed']&&(_0x329d9a=_0xa7eaf2['end']),_0x1790a7([_0x102a80['model']['createRange'](_0x8f7c3d,_0x329d9a)]);}),_0x3f93bd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3c5e78),_0x3f93bd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3c5e78)),_0x102a80['plugins']['has']('ImageCaptionEditing')&&(_0x3f93bd['enableCommand']('toggleImageCaption',(_0x487806,_0x2d7fb4)=>{const _0x54674b=_0x102a80['plugins']['get']('ImageCaptionUtils');let _0x502f29=_0xf433ca['getClosestSelectedImageElement'](_0x102a80['model']['document']['selection']),_0x3bc945=_0x54674b['getCaptionFromImageModelElement'](_0x502f29);_0x102a80['model']['change'](()=>{if(_0x3bc945)return void _0x3f93bd['markDeletion'](_0x102a80['model']['createRangeOn'](_0x3bc945));const _0xf90c3d=_0xf433ca['isBlockImage'](_0x502f29);_0x487806(_0x2d7fb4),_0x502f29=_0xf433ca['getClosestSelectedImageElement'](_0x102a80['model']['document']['selection']),_0x3bc945=_0x54674b['getCaptionFromImageModelElement'](_0x502f29),_0x3f93bd['markInsertion'](_0x102a80['model']['createRangeOn'](_0x3bc945),_0xf90c3d?null:'imageCaption');});}),_0x3f93bd['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3c5e78));const _0x1aa511=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f5f55(_0x41e549,_0xfbe263){const _0xbb8e1d=_0x1aa511['findIndex'](({type:_0x41a9e6,subType:_0x25d97f})=>_0x41e549['type']==_0x41a9e6&&_0x41e549['subType']==_0x25d97f),_0x70480e=_0x1aa511['findIndex'](({type:_0x237bca,subType:_0x463234})=>_0xfbe263['type']==_0x237bca&&_0xfbe263['subType']==_0x463234);if(_0xbb8e1d<0x0||_0x70480e<0x0)return!0x1;const _0x390c6c=_0x41e549['getFirstRange'](),_0x4365ea=_0xfbe263['getFirstRange']();if((0x0==_0xbb8e1d||0x1==_0xbb8e1d)&&0x2==_0x70480e&&_0x390c6c['isIntersecting'](_0x4365ea))return!0x0;if(0x2==_0xbb8e1d&&0x3==_0x70480e){const _0x59b2d1=_0x3f93bd['_findSuggestions'](_0x390c6c,'insertion')['filter'](({suggestion:_0x18443d,meta:_0x1d8dc7})=>_0x1d8dc7['isOwn']&&'convertInlineImageToBlock'==_0x18443d['subType']);if(_0x59b2d1['length']>0x1&&_0x4365ea['end']['isEqual'](_0x390c6c['start']))return!0x0;if(0x1==_0x59b2d1['length']&&(_0x390c6c['start']['isEqual'](_0x4365ea['end'])||_0x390c6c['end']['isEqual'](_0x4365ea['start'])))return!0x0;}if(0x3==_0xbb8e1d&&0x3==_0x70480e&&_0x390c6c['start']['isBefore'](_0x4365ea['start'])){const _0x3c652a=_0x390c6c['end']['nodeAfter'],_0x986d97=_0x4365ea['start']['nodeBefore'];return _0xf433ca['isBlockImage'](_0x3c652a)&&_0x3c652a===_0x986d97;}return!0x1;}function _0x3c5e78(_0x3a741c,_0xc58915){return _0x4f5f55(_0x3a741c,_0xc58915)?[_0x3a741c,_0xc58915]:_0x4f5f55(_0xc58915,_0x3a741c)?[_0xc58915,_0x3a741c]:null;}_0x102a80['plugins']['has']('ImageResize')&&(_0x3f93bd['enableDefaultAttributesIntegration']('resizeImage'),_0x3f93bd['registerBlockAttribute']('resizedWidth'),_0x3f93bd['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x22f483,'FORMAT_IMAGE_SIZE'))),_0x102a80['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3f93bd['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3f93bd['registerBlockAttribute']('alt')),_0x3f93bd['descriptionFactory']['registerDescriptionCallback'](_0x5ef3a5=>{if(!!_0x1aa511['find'](({type:_0x230c68,subType:_0x457089})=>_0x5ef3a5['type']==_0x230c68&&_0x5ef3a5['subType']==_0x457089))return _0x5ef3a5['previous']?{}:void 0x0;}),_0x3f93bd['descriptionFactory']['registerDescriptionCallback'](_0x4b1af7=>{if('insertion'==_0x4b1af7['type']||'deletion'==_0x4b1af7['type']){const _0x2e7cc5=_0x4b1af7['getContainedElement']();if(_0x2e7cc5&&_0x2e7cc5['is']('element','caption'))return{'type':'insertion'==_0x4b1af7['type']?'addObject':'removeObject','element':_0x2e7cc5,'quantity':0x1};}}),_0x3f93bd['descriptionFactory']['registerDescriptionCallback'](_0x442468=>'formatBlock'==_0x442468['type']&&'convertInlineImageToBlock'==_0x442468['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x442468['type']&&'convertBlockImageToInline'==_0x442468['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3f93bd['descriptionFactory']['registerDescriptionCallback'](_0x412c9d=>{if('attribute'!=_0x412c9d['type'])return;const {data:_0xd6a2be}=_0x412c9d;if(!_0xd6a2be||'alt'!=_0xd6a2be['key'])return;const _0xf5c2c0=_0xd6a2be['newValue'];return _0xf5c2c0?{'type':'format','content':o(_0x22f483,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xf5c2c0+'\x22')}:{'type':'format','content':o(_0x22f483,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x110d06=this['editor'],_0xf9bb6d=_0x110d06['locale'];_0x110d06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c9b38=>{if('formatBlock'!=_0x3c9b38['type']&&'formatInline'!=_0x3c9b38['type'])return;const {data:_0x1e2d32}=_0x3c9b38;if(_0x1e2d32){if('imageTextAlternative'==_0x1e2d32['commandName']){const _0x164406=_0x1e2d32['commandParams'][0x0]['newValue'];return _0x164406?{'type':'format','content':o(_0xf9bb6d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x164406+'\x22')}:{'type':'format','content':o(_0xf9bb6d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1e2d32['commandName']){const _0x4747e2=_0x1e2d32['commandParams'][0x0]['width'];return _0x4747e2?{'type':'format','content':o(_0xf9bb6d,'*Set\x20image\x20width:*\x20%0',_0x4747e2)}:{'type':'format','content':o(_0xf9bb6d,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1fe610{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x27465f=this['editor']['locale'],_0x1b6d6a=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b6d6a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1b6d6a['registerBlockAttribute']('src'),_0x1b6d6a['descriptionFactory']['registerDescriptionCallback'](_0x53502c=>{if('attribute'!=_0x53502c['type'])return;const {data:_0x4b978d}=_0x53502c;return _0x4b978d&&'src'==_0x4b978d['key']?_0x4b978d['newValue']&&_0x4b978d['oldValue']?{'type':'format','content':o(_0x27465f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x57543a=this['editor']['plugins']['get']('TrackChangesEditing');_0x57543a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x57543a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x57543a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x57543a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dd52f=this['editor'],_0x1562d4=_0x3dd52f['locale'];_0x3dd52f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36243d=>{if('formatBlock'!=_0x36243d['type']&&'formatInline'!=_0x36243d['type'])return;const {data:_0x5cdeaf}=_0x36243d;if(!_0x5cdeaf||'replaceImageSource'!=_0x5cdeaf['commandName'])return;return{'type':'format','content':o(_0x1562d4,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1fe610{['afterInit'](){const _0x51bf1a=this['editor'];if(!_0x51bf1a['plugins']['has']('ImageStyleEditing'))return;const _0x174798=_0x51bf1a['plugins']['get']('TrackChangesEditing'),_0x3fb0bf=_0x51bf1a['plugins']['get']('ImageUtils'),_0x233bcd={};_0x174798['enableCommand']('imageStyle',(_0x2f60bd,_0x62a88e)=>{const _0x22d0be=_0x51bf1a['plugins']['get']('Users')['me'],_0x34ec03=_0x51bf1a['commands']['get']('imageStyle');let _0x1eb966=_0x3fb0bf['getClosestSelectedImageElement'](_0x51bf1a['model']['document']['selection']),_0x4c88b3=_0x51bf1a['model']['createRangeOn'](_0x1eb966),_0x2b6c39=_0x34ec03['value'];if(_0x2b6c39==_0x62a88e['value'])return;const _0x53280d={'commandName':'imageStyle','commandParams':[_0x62a88e],'formatGroupId':_0x3acd04()};_0x51bf1a['model']['change'](()=>{if(_0x174798['getSuggestions']()['filter'](_0x52ce83=>_0x52ce83['isInContent']&&_0x22d0be==_0x52ce83['author']&&('formatBlock'==_0x52ce83['type']||'formatInline'==_0x52ce83['type'])&&('imageStylePreApply'==_0x52ce83['subType']||'imageStylePostApply'==_0x52ce83['subType'])&&_0x52ce83['getFirstRange']()['isEqual'](_0x4c88b3))['forEach'](_0x1c874a=>_0x174798['discardSuggestion'](_0x1c874a['head'])),_0x1eb966=_0x3fb0bf['getClosestSelectedImageElement'](_0x51bf1a['model']['document']['selection']),_0x4c88b3=_0x51bf1a['model']['createRangeOn'](_0x1eb966),_0x34ec03['refresh'](),_0x51bf1a['commands']['get']('imageTypeInline')['refresh'](),_0x51bf1a['commands']['get']('imageTypeBlock')['refresh'](),_0x2b6c39=_0x34ec03['value'],_0x2b6c39!=_0x62a88e['value'])return _0x3fb0bf['isInlineImage'](_0x1eb966)&&_0x34ec03['shouldConvertImageType'](_0x62a88e['value'],_0x1eb966)?(_0x2f60bd({..._0x62a88e,'setImageSizes':!0x1}),_0x1eb966=_0x3fb0bf['getClosestSelectedImageElement'](_0x51bf1a['model']['document']['selection']),void _0x174798['markBlockFormat'](_0x1eb966,{..._0x53280d,'commandReversedParams':[{'value':_0x2b6c39||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3fb0bf['isBlockImage'](_0x1eb966)?_0x174798['markBlockFormat'](_0x1eb966,_0x53280d,[],'imageStylePostApply'):_0x174798['markInlineFormat'](_0x4c88b3,_0x53280d,'imageStylePostApply'));});});for(const _0x493900 of _0x51bf1a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x233bcd[_0x493900['name']]=_0x493900['title']['toLowerCase']();_0x174798['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x174798['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x174798['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x174798['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x24855e])=>{_0x3fb0bf['setImageNaturalSizeAttributes'](_0x24855e['getContainedElement']());}),_0x174798['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x54e16f,_0x5df236)=>{_0x174798['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x54e16f,{'commandName':_0x5df236['commandName'],'commandParams':_0x5df236['commandReversedParams']});}),_0x174798['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x49117d,_0x1a1249){if(_0x2816bc(_0x49117d,_0x1a1249))return[_0x49117d,_0x1a1249];if(_0x2816bc(_0x1a1249,_0x49117d))return[_0x1a1249,_0x49117d];return null;});const _0x429c95=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2816bc(_0x257f56,_0x43ed1f){const _0x33c70d=_0x429c95['findIndex'](({type:_0x462532,subType:_0x31ed37})=>_0x257f56['type']==_0x462532&&_0x257f56['subType']==_0x31ed37),_0x5913ee=_0x429c95['findIndex'](({type:_0x27610d,subType:_0x47e72a})=>_0x43ed1f['type']==_0x27610d&&_0x43ed1f['subType']==_0x47e72a);if(_0x33c70d<0x0||_0x5913ee<0x0)return!0x1;const _0xafce6a=_0x257f56['getFirstRange'](),_0x3e2112=_0x43ed1f['getFirstRange']();if((0x0==_0x33c70d||0x1==_0x33c70d)&&0x2==_0x5913ee&&_0xafce6a['isIntersecting'](_0x3e2112))return!0x0;if(0x2==_0x33c70d&&0x3==_0x5913ee){const _0x370c2c=_0x174798['_findSuggestions'](_0xafce6a,'insertion')['filter'](({suggestion:_0x564950,meta:_0x71ac09})=>_0x71ac09['isOwn']&&'convertInlineImageToBlock'==_0x564950['subType']);if(_0x370c2c['length']>0x1&&_0x3e2112['end']['isEqual'](_0xafce6a['start']))return!0x0;if(0x1==_0x370c2c['length']&&(_0xafce6a['start']['isEqual'](_0x3e2112['end'])||_0xafce6a['end']['isEqual'](_0x3e2112['start'])))return!0x0;}if(0x3==_0x33c70d&&0x3==_0x5913ee&&_0xafce6a['start']['isBefore'](_0x3e2112['start'])){const _0x348c71=_0xafce6a['end']['nodeAfter'],_0x8cc2dc=_0x3e2112['start']['nodeBefore'];return _0x3fb0bf['isBlockImage'](_0x348c71)&&_0x348c71===_0x8cc2dc;}return!0x1;}_0x51bf1a['model']['document']['registerPostFixer'](()=>{let _0x1ad5be=!0x1;const _0x50f210=Array['from'](_0x51bf1a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x324d32,data:_0x16c9b6}of _0x50f210){const {group:_0x3f3652,type:_0x4ef37c,subType:_0x2d723d,id:_0x543cb2}=_0x174798['_splitMarkerName'](_0x324d32);if('suggestion'==_0x3f3652&&_0x174798['hasSuggestion'](_0x543cb2)){if('formatBlock'==_0x4ef37c&&('imageStylePreApply'==_0x2d723d||'imageStylePostApply'==_0x2d723d)){const _0x1285b5=_0x174798['getSuggestion'](_0x543cb2);if(_0x16c9b6['newRange']){const _0x495e75=_0x1285b5['getFirstRange']()['getContainedElement']();if(_0x3fb0bf['isBlockImage'](_0x495e75))continue;_0x174798['discardSuggestion'](_0x1285b5),_0x1ad5be=!0x0;}}if('insertion'==_0x4ef37c&&'imageCaption'==_0x2d723d&&!_0x16c9b6['newRange']){const _0x33cb62=_0x174798['getSuggestion'](_0x543cb2);_0x33cb62['next']&&_0x33cb62['next']['isInContent']&&(_0x174798['discardSuggestion'](_0x33cb62['next']),_0x1ad5be=!0x0);}}}return _0x1ad5be;}),this['_registerLegacyDescription'](_0x233bcd);}['_registerLegacyDescription'](_0x3f5d6b){const _0x152ee7=this['editor'],_0x369914=_0x152ee7['locale'];_0x152ee7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f4a98=>{if('formatBlock'!=_0x4f4a98['type']&&'formatInline'!=_0x4f4a98['type'])return;const {data:_0x39f85f}=_0x4f4a98;if(!_0x39f85f||'imageStyle'!=_0x39f85f['commandName'])return;const _0x30f602=_0x39f85f['commandParams'][0x0]['value'];return _0x16e09d('side'===_0x30f602?o(_0x369914,'FORMAT_SIDE_IMAGE'):_0x3f5d6b[_0x30f602]||_0x30f602);function _0x16e09d(_0x4a0ea2){return{'type':'format','content':o(_0x369914,'*Format:*\x20%0',_0x4a0ea2)};}});}}class ot extends _0x1fe610{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1090c8){super(_0x1090c8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x565a77=this['editor'],_0x42f928=_0x565a77['commands']['get']('importWord'),_0x33b2fc=_0x565a77['commands']['get']('trackChanges');_0x42f928&&(_0x42f928['on']('execute',(_0x186a26,[,_0xc89fb3])=>{this['_trackChangesValueDuringImport']=_0x33b2fc['value'],_0xc89fb3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x42f928,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x42f928,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x33b2fc['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x565a77['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2937b8,_0x358158){const {suggestions:_0x169cc1}=_0x358158,_0x13acdb=this['editor']['commands']['get']('trackChanges'),_0x4094c5=_0x13acdb['value'];this['_trackChangesValueDuringImport']!==_0x4094c5&&(_0x13acdb['execute'](),this['_trackChangesExecuted']=!0x0),_0x169cc1&&_0x169cc1['forEach'](({id:_0x3c9286,type:_0x39f257,author:_0xec8aa0,created_at:_0xda7e89})=>{const _0x5e2136={'id':_0x3c9286,'type':_0x39f257,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xec8aa0,'createdAt':_0xda7e89?new Date(_0xda7e89):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5e2136);});}}class rt extends _0x1fe610{['afterInit'](){const _0x2a4b59=this['editor'],_0x12c4ba=_0x2a4b59['plugins']['get']('TrackChangesEditing');if(_0x2a4b59['plugins']['has']('IndentEditing')&&(_0x12c4ba['enableCommand']('indent'),_0x12c4ba['enableCommand']('outdent')),_0x2a4b59['plugins']['has']('IndentBlock')){for(const _0x1d77f6 of['indentBlock','outdentBlock'])_0x12c4ba['enableDefaultAttributesIntegration'](_0x1d77f6);}const _0x51eb9e=_0x2a4b59['locale'];_0x12c4ba['registerBlockAttribute']('blockIndent'),_0x12c4ba['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x51eb9e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20f6da=this['editor'],_0x5ddae9=_0x20f6da['locale'],_0x352a29=_0x20f6da['plugins']['get']('TrackChangesEditing');_0x352a29['descriptionFactory']['registerDescriptionCallback'](_0x2cf14c=>{if('formatBlock'!=_0x2cf14c['type'])return;const {data:_0x18c2f3}=_0x2cf14c;if(!_0x18c2f3)return;if('indentBlock'!=_0x18c2f3['commandName']&&'outdentBlock'!=_0x18c2f3['commandName'])return;const _0x44611a=_0x2cf14c['getItems']()[0x0],_0x31f801=_0x352a29['descriptionFactory']['getItemLabel'](_0x44611a);return'indentBlock'==_0x18c2f3['commandName']?{'type':'format','content':o(_0x5ddae9,'*Indent:*\x20%0',_0x31f801)}:'outdentBlock'==_0x18c2f3['commandName']?{'type':'format','content':o(_0x5ddae9,'*Outdent:*\x20%0',_0x31f801)}:void 0x0;});}}class at extends _0x1fe610{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1fe610{['afterInit'](){const _0x1dd68d=this['editor'];if(!_0x1dd68d['plugins']['has']('LinkEditing'))return;const _0xba4144=_0x1dd68d['plugins']['get']('TrackChangesEditing'),_0x2f3118=_0x1dd68d['commands']['get']('link');_0xba4144['enableDefaultAttributesIntegration']('link'),_0xba4144['enableDefaultAttributesIntegration']('unlink'),_0xba4144['registerInlineAttribute']('linkHref');for(const _0x570047 of _0x2f3118['manualDecorators'])_0xba4144['registerInlineAttribute'](_0x570047['id']),_0xba4144['descriptionFactory']['registerAttributeLabel'](_0x570047['id'],'link\x20('+_0x570047['label']['toLowerCase']()+')');_0xba4144['descriptionFactory']['registerDescriptionCallback'](_0xf10bce=>{if('attribute'!=_0xf10bce['type'])return;const {data:_0x3860c8}=_0xf10bce;if(!_0x3860c8||'linkHref'!=_0x3860c8['key'])return;const _0x4c5d3e=_0x3860c8['newValue'],_0x1abfed=_0x1dd68d['locale'];return{'type':'format','content':null==_0x4c5d3e?o(_0x1abfed,'*Remove\x20link*'):o(_0x1abfed,'*Set\x20link:*\x20%0','\x22'+_0x4c5d3e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x367d26=this['editor'],_0x407c46=_0x367d26['locale'];_0x367d26['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1602ea=>{if('formatInline'!=_0x1602ea['type'])return;const {data:_0x501a04}=_0x1602ea;if(_0x501a04){if('link'==_0x501a04['commandName']){const _0x5638b8=_0x501a04['commandParams'][0x0];return{'type':'format','content':o(_0x407c46,'*Set\x20link:*\x20%0','\x22'+_0x5638b8+'\x22')};}return'unlink'==_0x501a04['commandName']?{'type':'format','content':o(_0x407c46,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1fe610{['afterInit'](){const _0x21eaf8=this['editor'],_0x2962d4=_0x21eaf8['locale'];if(!_0x21eaf8['plugins']['has']('LegacyListEditing'))return;const _0x475db8=_0x21eaf8['plugins']['get']('TrackChangesEditing'),_0x51f254=_0x21eaf8['plugins']['has']('LegacyTodoListEditing');function _0x124572(_0x3855d3){return()=>{const _0x4b4525=_0x21eaf8['model']['document']['selection'],_0x5c9fd4=_0x21eaf8['commands']['get'](_0x3855d3);if(_0x5c9fd4['value'])return void _0x21eaf8['execute']('paragraph',{});const _0x5d9101=_0x3855d3['slice'](0x0,-0x4),_0x2cad8d=function(_0x21e131,_0x464d3f,_0x5c73b6){let _0x272b7e=Array['from'](_0x21e131)['filter'](_0x18e016=>function(_0x55fc39,_0x116e2e){return _0x116e2e['checkChild'](_0x55fc39['parent'],'listItem')&&!_0x116e2e['isObject'](_0x55fc39);}(_0x18e016,_0x5c73b6));_0x272b7e=_0x272b7e['filter'](_0x29df67=>!_0x29df67['is']('element','listItem')||_0x29df67['getAttribute']('listType')!=_0x464d3f);const _0x233a6e=new Set();for(const _0x58d9d1 of _0x272b7e)_0x58d9d1['is']('element','listItem')?_0x233a6e['add'](me(_0x58d9d1)):_0x233a6e['add'](_0x58d9d1);return Array['from'](_0x233a6e);}(_0x4b4525['getSelectedBlocks'](),_0x5d9101,_0x21eaf8['model']['schema']);_0x21eaf8['model']['change'](()=>{for(const _0x5c6539 of _0x2cad8d)_0x475db8['markBlockFormat'](_0x5c6539,{'commandName':_0x3855d3,'commandParams':[{'forceValue':!_0x5c9fd4['value']}],'formatGroupId':'blockName'},fe(_0x5c6539));});};}function _0x1ef15c(_0x26021e){return()=>{const _0x4bc893=function(_0x3db09a){let _0xfaf6b6=Array['from'](_0x3db09a);const _0x4c337d=_0xfaf6b6['findIndex'](_0x410e9a=>'listItem'!=_0x410e9a['name']);return _0x4c337d>-0x1&&(_0xfaf6b6=_0xfaf6b6['slice'](0x0,_0x4c337d)),_0xfaf6b6;}(_0x21eaf8['model']['document']['selection']['getSelectedBlocks']()),_0x2a9bf3=_0x21eaf8['model']['createRange'](_0x21eaf8['model']['createPositionAt'](_0x4bc893[0x0],'before'),_0x21eaf8['model']['createPositionAt'](_0x4bc893[_0x4bc893['length']-0x1],'end'));_0x21eaf8['model']['change'](()=>{_0x475db8['markBlockFormat'](_0x2a9bf3,{'commandName':_0x26021e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4f98c1){const _0x4a9490=new Set();for(const _0x564db8 of _0x4f98c1){let _0x2cd1c8=_0x564db8['nextSibling'];for(;_0x2cd1c8&&_0x2cd1c8['getAttribute']('listIndent')>_0x564db8['getAttribute']('listIndent');)_0x4a9490['add'](_0x2cd1c8),_0x2cd1c8=_0x2cd1c8['nextSibling'];}return Array['from'](_0x4a9490);}(_0x4bc893));});};}_0x475db8['enableCommand']('numberedList',_0x124572('numberedList')),_0x475db8['enableCommand']('bulletedList',_0x124572('bulletedList')),_0x51f254&&_0x475db8['enableCommand']('todoList',_0x124572('todoList')),_0x475db8['enableCommand']('indentList',_0x1ef15c('indentList')),_0x475db8['enableCommand']('outdentList',_0x1ef15c('outdentList')),_0x51f254&&_0x475db8['enableCommand']('checkTodoList',()=>{const _0x2cf865=_0x21eaf8['commands']['get']('checkTodoList'),_0x39cba5=Array['from'](_0x2cf865['_selectedElements']);_0x39cba5['filter'](_0x816664=>_0x816664['getAttribute']('todoListChecked')!=_0x2cf865['value']),_0x21eaf8['model']['change'](()=>{for(const _0x5954aa of _0x39cba5)_0x475db8['markBlockFormat'](_0x5954aa,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2cf865['value']}]});});}),_0x475db8['descriptionFactory']['registerElementLabel']('listItem',_0xd05bc2=>o(_0x2962d4,'ELEMENT_LIST_ITEM',_0xd05bc2)),_0x475db8['descriptionFactory']['registerDescriptionCallback'](_0x2be6cf=>{if('formatBlock'!=_0x2be6cf['type']&&'formatInline'!=_0x2be6cf['type'])return;const {data:_0x211a74}=_0x2be6cf;if(_0x211a74){if('numberedList'==_0x211a74['commandName']||'bulletedList'==_0x211a74['commandName']||'todoList'==_0x211a74['commandName'])switch(_0x211a74['commandName']['replace']('List','')){case'bulleted':return _0x304808(o(_0x2962d4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x304808(o(_0x2962d4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x304808(o(_0x2962d4,'ELEMENT_TODO_LIST'));}if('indentList'==_0x211a74['commandName'])return{'type':'format','content':o(_0x2962d4,'*Indent:*\x20%0',o(_0x2962d4,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x211a74['commandName'])return{'type':'format','content':o(_0x2962d4,'*Outdent:*\x20%0',o(_0x2962d4,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x211a74['commandName'])return _0x211a74['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2962d4,'*Check\x20item*')}:{'type':'format','content':o(_0x2962d4,'*Uncheck\x20item*')};}function _0x304808(_0x3cb7b5){return{'type':'format','content':o(_0x2962d4,'*Change\x20to:*\x20%0',_0x3cb7b5)};}});}}function me(_0x511c1d){const _0x36c289=_0x511c1d['getAttribute']('listIndent');if(0x0==_0x36c289)return _0x511c1d;let _0x8ba58f=_0x511c1d;for(;_0x511c1d['previousSibling']&&_0x511c1d['previousSibling']['is']('element','listItem');){const _0x12bece=_0x511c1d['previousSibling']['getAttribute']('listIndent');if(_0x12bece==_0x36c289)_0x8ba58f=_0x511c1d['previousSibling'];else{if(_0x12bece<_0x36c289)break;}_0x511c1d=_0x511c1d['previousSibling'];}return _0x8ba58f;}function fe(_0x5a4d19){const _0x536a78=[];if(_0x5a4d19['is']('element','listItem')&&_0x5a4d19['getAttribute']('listIndent')>0x0){let _0xc84d33=_0x5a4d19['nextSibling'];for(;_0xc84d33&&'listItem'==_0xc84d33['name']&&_0xc84d33['getAttribute']('listIndent')==_0x5a4d19['getAttribute']('listIndent');)_0x536a78['push'](_0xc84d33),_0xc84d33=_0xc84d33['nextSibling'];}return _0x536a78;}class K extends _0x1fe610{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3b8121=this['editor']['config']['get']('list.properties'),_0xde8187=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b8121['styles']&&_0xde8187['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3b8121['reversed']&&_0xde8187['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3b8121['startIndex']&&_0xde8187['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xde8187['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x50dc55,_0x43ee67={}){const _0x45a474=this['editor']['plugins']['get']('TrackChangesEditing'),_0x386f5b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x45a474['markMultiRangeBlockFormat'](_0x386f5b,{'commandName':'listStyle','commandParams':[{'type':_0x43ee67['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x7268a6,_0x3af6f7={}){const _0xf66c3e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x456d03=this['_getSuggestionBlocks'](_0x487aa3=>_0x487aa3['is']('element','listItem')&&'numbered'===_0x487aa3['getAttribute']('listType'));if(_0x456d03['length']<0x1)return;const _0x543fb9=_0x456d03['map'](_0x37f019=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x37f019,'before'),this['editor']['model']['createPositionAt'](_0x37f019,0x0)));this['editor']['model']['change'](()=>{_0xf66c3e['markMultiRangeBlockFormat'](_0x543fb9,{'commandName':'listReversed','commandParams':[{'reversed':_0x3af6f7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x59e269,_0x90e67b={}){const _0x514007=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a17be=this['_getSuggestionBlocks'](_0x3dad57=>_0x3dad57['is']('element','listItem')&&'numbered'===_0x3dad57['getAttribute']('listType'));if(_0x5a17be['length']<0x1)return;const _0xd8121d=_0x5a17be['map'](_0x41dd8c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x41dd8c,'before'),this['editor']['model']['createPositionAt'](_0x41dd8c,0x0)));this['editor']['model']['change'](()=>{_0x514007['markMultiRangeBlockFormat'](_0xd8121d,{'commandName':'listStart','commandParams':[{'startIndex':_0x90e67b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x461255){if('formatBlock'!=_0x461255['type']&&'formatInline'!=_0x461255['type'])return;const _0x353225=this['editor']['locale'],{data:_0x55188a}=_0x461255;if(!_0x55188a)return;let _0x543565,_0xdda925;switch(_0x55188a['commandName']){case'listStyle':_0x543565='*Change\x20to:*\x20%0',_0xdda925={'type':'format','content':o(_0x353225,_0x543565,o(_0x353225,this['_getTranslationKeyForListStyle'](_0x55188a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x543565=_0x55188a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xdda925={'type':'format','content':o(_0x353225,_0x543565)};break;case'listStart':_0x543565='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xdda925={'type':'format','content':o(_0x353225,_0x543565,_0x55188a['commandParams'][0x0]['startIndex'])};}return _0xdda925;}['_getSuggestionBlocksForListStyle'](){const _0x28b4de=this['editor']['plugins']['get']('LegacyListUtils');let _0x17ac36=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x17ac36[0x0]?.['is']('element','listItem')&&_0x17ac36['unshift'](..._0x28b4de['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x17ac36[_0x17ac36['length']-0x1]?.['is']('element','listItem')&&_0x17ac36['push'](..._0x28b4de['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x17ac36=[...new Set(_0x17ac36)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x17ac36=_0x17ac36['filter'](_0xbf0800=>_0xbf0800['is']('element','listItem'))),_0x17ac36;}['_getSuggestionBlocks'](_0x3ee401){const _0x4d1be1=this['editor']['plugins']['get']('LegacyListUtils');let _0x88f26=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3ee401)['map'](_0x412eab=>{const _0x1500d0=this['editor']['model']['createPositionAt'](_0x412eab,0x0);return[..._0x4d1be1['getSiblingNodes'](_0x1500d0,'backward'),..._0x4d1be1['getSiblingNodes'](_0x1500d0,'forward')];})['flat']();return _0x88f26=[...new Set(_0x88f26)],_0x88f26;}['_getTranslationKeyForListStyle'](_0x4d932c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4d932c)||'default')['toUpperCase']()+'_LIST_'+_0x4d932c['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1fe610{['afterInit'](){const _0x5299e1=this['editor'];if(!_0x5299e1['plugins']['has']('MediaEmbedEditing'))return;const _0x37f39b=_0x5299e1['plugins']['get']('TrackChangesEditing'),_0x2ea9de=_0x5299e1['locale'];_0x37f39b['enableCommand']('mediaEmbed'),_0x37f39b['descriptionFactory']['registerElementLabel']('media',_0x257f42=>o(_0x2ea9de,'ELEMENT_MEDIA',_0x257f42)),_0x5299e1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2739c7,{writer:_0x260c76,options:_0x4aa591})=>{if(_0x4aa591['showSuggestionHighlights'])return _0x260c76['createEmptyElement']('div');},'converterPriority':'high'}),_0x5299e1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x473d9b,_0x1d8e82,_0x5c34c1)=>{_0x5c34c1['options']['showSuggestionHighlights']&&_0x473d9b['stop']();},{'priority':'high'});}}class gt extends _0x1fe610{['afterInit'](){const _0x56d9bd=this['editor'];_0x56d9bd['plugins']['has']('MentionEditing')&&_0x56d9bd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1fe610{['afterInit'](){const _0x40e33b=this['editor'],_0x266dfc=_0x40e33b['plugins']['get']('TrackChangesEditing');_0x40e33b['plugins']['has']('MultiLevelList')&&(_0x266dfc['enableDefaultAttributesIntegration']('multiLevelList'),_0x266dfc['registerBlockAttribute']('listMarkerStyle'),_0x266dfc['descriptionFactory']['registerDescriptionCallback'](_0x49060d=>this['handleDescriptions'](_0x49060d)));}['handleDescriptions'](_0x24639d){const _0x176ce7=this['editor']['locale'],{data:_0x679c7e}=_0x24639d,_0x18c877={'type':'format','content':''};if(_0x679c7e&&'listMarkerStyle'==_0x679c7e['key']){if(!_0x679c7e['oldValue'])return{'type':'format','content':o(_0x176ce7,'*Set\x20format:*\x20%0',o(_0x176ce7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x679c7e['newValue']+')'};if(!_0x679c7e['newValue']){let _0x4b45f4=_0x24639d['head'];for(;_0x4b45f4;){if(_0x4b45f4['data']&&'listType'==_0x4b45f4['data']['key']&&_0x4b45f4['data']['newValue'])return _0x18c877;_0x4b45f4=_0x4b45f4['next'];}return{'type':'format','content':o(_0x176ce7,'*Remove\x20format:*\x20%0',o(_0x176ce7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x679c7e['oldValue']+')'};}}}}class mt extends _0x1fe610{['afterInit'](){const _0x205617=this['editor'];if(!_0x205617['plugins']['has']('PageBreakEditing'))return;_0x205617['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x270cf0=_0x205617['plugins']['get']('TrackChangesEditing'),_0x5102d8=_0x205617['locale'];_0x270cf0['descriptionFactory']['registerElementLabel']('pageBreak',_0x359570=>o(_0x5102d8,'ELEMENT_PAGE_BREAK',_0x359570));}}class dt extends _0x1fe610{['afterInit'](){const _0x4e8407=this['editor'];if(!_0x4e8407['plugins']['has']('Paragraph'))return;const _0x4360c9=_0x4e8407['locale'],_0x2b2ffc=_0x4e8407['plugins']['get']('TrackChangesEditing');_0x2b2ffc['descriptionFactory']['registerElementLabel']('paragraph',_0x2b199d=>o(_0x4360c9,'ELEMENT_PARAGRAPH',_0x2b199d)),_0x2b2ffc['enableDefaultAttributesIntegration']('paragraph'),_0x2b2ffc['enableCommand']('insertParagraph'),_0x4e8407['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4e8407),{'priority':'highest'}),_0x4e8407['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5a5098,_0x34a000,_0x3fc4f2)=>{_0x3fc4f2['options']['showSuggestionHighlights']&&nr(_0x4e8407,{'showActiveMarker':!0x1})(_0x5a5098,_0x34a000,_0x3fc4f2);},{'priority':'highest'});const _0x53252c=_0x2b2ffc['descriptionFactory'];_0x53252c['registerDescriptionCallback'](_0x55f0f9=>{if('insertion'!==_0x55f0f9['type'])return;const {start:_0x306964,end:_0x349e62}=_0x55f0f9['getFirstRange']();if(!_0x306964['isTouching'](_0x349e62)||!_0x306964['nodeAfter'])return;const _0x5cb076=_0x4e8407['model']['schema'],_0x5316e8=_0x306964['nodeAfter'];return _0x5cb076['isBlock'](_0x5316e8)&&!_0x5cb076['isLimit'](_0x5316e8)&&_0x5cb076['checkChild'](_0x5316e8,'$text')?{'type':'insertion','content':o(_0x4360c9,'*Insert:*\x20%0',_0x53252c['getItemLabel'](_0x5316e8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd552aa=this['editor'],_0x25a835=_0xd552aa['locale'];_0xd552aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dacff=>{if('formatBlock'!=_0x2dacff['type'])return;const {data:_0x69eaa4}=_0x2dacff;return _0x69eaa4&&'paragraph'==_0x69eaa4['commandName']?{'type':'format','content':o(_0x25a835,'*Change\x20to:*\x20%0',o(_0x25a835,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2ae03b,{showActiveMarker:_0x4d4b11=!0x0}={}){return(_0x28d0b3,_0xa5d40f,_0x8f4a46)=>{const _0x143d4a=_0x2ae03b['plugins']['get']('TrackChangesEditing'),_0x4fa909=_0xa5d40f['markerRange']['start'],_0x3320cc=_0xa5d40f['markerRange']['end'],_0x4749b1=_0x2ae03b['model']['schema'];if(!_0x4fa909['isTouching'](_0x3320cc)||!_0x4fa909['nodeAfter'])return;const _0x135c85=_0x4fa909['nodeAfter'];if(_0x4749b1['isBlock'](_0x135c85)&&!_0x4749b1['isLimit'](_0x135c85)&&_0x4749b1['checkChild'](_0x135c85,'$text')){if(!_0x8f4a46['consumable']['consume'](_0xa5d40f['markerRange'],_0x28d0b3['name']))return;const _0x48dcac=_0x8f4a46['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x545417=_0x8f4a46['mapper']['toViewPosition'](_0x3320cc);_0x4d4b11&&_0x143d4a['activeMarkers']['includes'](_0xa5d40f['markerName'])&&_0x8f4a46['writer']['addClass']('ck-suggestion-marker--active',_0x48dcac),_0x8f4a46['writer']['insert'](_0x545417,_0x48dcac),_0x8f4a46['mapper']['bindElementToMarker'](_0x48dcac,_0xa5d40f['markerName']);}};}class pt extends _0x1fe610{['afterInit'](){const _0x57524b=this['editor'];if(!_0x57524b['plugins']['has']('RemoveFormatEditing'))return;_0x57524b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x171604=this['editor'];_0x171604['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fc4cb=>{if('formatBlock'!=_0x3fc4cb['type']&&'formatInline'!=_0x3fc4cb['type'])return;const {data:_0x27ec3f}=_0x3fc4cb;return _0x27ec3f&&'removeFormat'==_0x27ec3f['commandName']?{'type':'format','content':o(_0x171604['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1fe610{['afterInit'](){const _0x5cf888=this['editor'];if(!_0x5cf888['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x6b11ae=_0x5cf888['plugins']['get']('TrackChangesEditing');_0x6b11ae['enableCommand']('goToPreviousRestrictedEditingException'),_0x6b11ae['enableCommand']('goToNextRestrictedEditingException');const _0x207043=_0x5cf888['plugins']['get']('RestrictedEditingModeEditing');_0x207043['enableCommand']('trackChanges'),_0x207043['enableCommand']('acceptSuggestion'),_0x207043['enableCommand']('discardSuggestion'),_0x207043['enableCommand']('acceptAllSuggestions'),_0x207043['enableCommand']('discardAllSuggestions'),_0x207043['enableCommand']('acceptSelectedSuggestions'),_0x207043['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1fe610{static get['requires'](){return[_0x4c04e3];}['init'](){const _0x174dce=this['editor'],_0x3cf040=_0x174dce['plugins']['get']('TrackChangesEditing');_0x3cf040['enableCommand']('shiftEnter'),_0x174dce['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x174dce),{'priority':'high'}),_0x174dce['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x174dce),{'priority':'high'}),_0x174dce['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x100541,_0x531e50,_0x46fd11)=>{_0x46fd11['options']['showSuggestionHighlights']&&de(_0x174dce,{'showActiveMarker':!0x1})(_0x100541,_0x531e50,_0x46fd11);}),_0x3cf040['descriptionFactory']['registerElementLabel']('softBreak',_0x4c10db=>o(_0x174dce['locale'],'ELEMENT_LINE_BREAK',_0x4c10db));}}function de(_0x1bef11,{showActiveMarker:_0x1780d1=!0x0}={}){return(_0x43a6e4,_0xdbbb3e,_0x1e3da6)=>{const _0x2359ad=_0x1bef11['plugins']['get']('TrackChangesEditing');if(!_0x1e3da6['consumable']['test'](_0xdbbb3e['markerRange'],_0x43a6e4['name']))return;const _0x5e5fe2=_0x1bef11['model'];for(const _0x39b7f6 of _0xdbbb3e['markerRange']['getItems']()){if(!_0x39b7f6['is']('element','softBreak'))continue;const _0xdd6e3b='deletion'==_0xdbbb3e['markerName']['split'](':')[0x1]?'merge':'split',_0x4c8145=_0x1e3da6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xdd6e3b}),_0x3c04b5=_0x1e3da6['mapper']['toViewPosition'](_0x5e5fe2['createPositionBefore'](_0x39b7f6));_0x1780d1&&_0x2359ad['activeMarkers']['includes'](_0xdbbb3e['markerName'])&&_0x1e3da6['writer']['addClass']('ck-suggestion-marker--active',_0x4c8145),_0x1e3da6['writer']['insert'](_0x3c04b5,_0x4c8145),_0x1e3da6['mapper']['bindElementToMarker'](_0x4c8145,_0xdbbb3e['markerName']);}};}class wt extends _0x1fe610{['afterInit'](){const _0x265c5f=this['editor'],_0x3f10ca=_0x265c5f['model'],_0x188e45=_0x265c5f['locale'];if(!_0x265c5f['plugins']['has']('StandardEditingModeEditing'))return;const _0x1bd0c1=_0x265c5f['plugins']['get']('TrackChangesEditing'),_0x1fb97b='restrictedEditingException',_0x2567e9=_0x265c5f['commands']['get'](_0x1fb97b);_0x1bd0c1['enableCommand'](_0x1fb97b,(_0x5e424f,_0x4259a0={})=>{const _0x37941c=_0x3f10ca['document']['selection'];if(_0x37941c['isCollapsed'])return void _0x5e424f(_0x4259a0);const _0x229b13=void 0x0!==_0x4259a0['forceValue']?_0x4259a0['forceValue']:!_0x2567e9['value'];_0x3f10ca['change'](()=>{const _0x33aedf=Array['from'](_0x37941c['getRanges']());for(const _0xa98e1 of _0x33aedf){const _0x44a217=_0x229b13?[_0xa98e1]:io(_0x1fb97b,_0xa98e1,_0x3f10ca);for(const _0x5d9a1a of _0x44a217)_0x1bd0c1['markInlineFormat'](_0x5d9a1a,{'commandName':_0x1fb97b,'commandParams':[{'forceValue':_0x229b13}]});}});}),_0x1bd0c1['descriptionFactory']['registerDescriptionCallback'](_0x5aa463=>{if('formatBlock'!=_0x5aa463['type']&&'formatInline'!=_0x5aa463['type'])return;const {data:_0x509ec1}=_0x5aa463;return _0x509ec1&&_0x509ec1['commandName']==_0x1fb97b?_0x509ec1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x188e45,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x188e45,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1fe610{['afterInit'](){const _0x453163=this['editor'];if(!_0x453163['plugins']['has']('Style')||!_0x453163['plugins']['has']('DataSchema'))return;const _0x450f1e=_0x453163['plugins']['get']('TrackChangesEditing'),_0x347a7d=_0x453163['locale'],_0x4d3b33=_0x453163['config']['get']('style')||{},_0x159520=_0x453163['plugins']['get']('GeneralHtmlSupport'),_0x118563=_0x453163['plugins']['get']('StyleUtils')['normalizeConfig'](_0x453163['plugins']['get']('DataSchema'),_0x4d3b33['definitions']);_0x450f1e['enableDefaultAttributesIntegration']('style');const _0x57343e=new Set();for(const _0x1f8dfd of _0x118563['block']){const _0x21f761=_0x159520['getGhsAttributeNameForElement'](_0x1f8dfd['element']);_0x57343e['add'](_0x21f761);}const _0x27324f=new Set();for(const _0x29add5 of _0x118563['inline']){const _0x1393b5=_0x159520['getGhsAttributeNameForElement'](_0x29add5['element']);_0x27324f['add'](_0x1393b5);for(const _0x40c045 of _0x29add5['ghsAttributes'])_0x27324f['add'](_0x40c045);}for(const _0x2ce2c9 of _0x57343e)_0x450f1e['registerBlockAttribute'](_0x2ce2c9),_0x450f1e['descriptionFactory']['registerAttributeLabel'](_0x2ce2c9,o(_0x347a7d,'FORMAT_STYLE'));for(const _0x182d72 of _0x27324f)_0x450f1e['registerInlineAttribute'](_0x182d72),_0x450f1e['descriptionFactory']['registerAttributeLabel'](_0x182d72,o(_0x347a7d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c1f78=this['editor'],_0x4f3f55=_0x5c1f78['locale'];_0x5c1f78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4becbc=>{if('formatBlock'!=_0x4becbc['type']&&'formatInline'!=_0x4becbc['type'])return;const {data:_0x3c66c3}=_0x4becbc;return _0x3c66c3&&'style'===_0x3c66c3['commandName']?_0x3c66c3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f3f55,'*Set\x20format:*\x20%0',_0x3c66c3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4f3f55,'*Remove\x20format:*\x20%0',_0x3c66c3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1fe610{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5b804b){super(_0x5b804b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2fdf09=this['editor'],_0x1f3f76=_0x2fdf09['model']['document']['selection'];if(!_0x2fdf09['plugins']['has']('TableEditing'))return;const _0x47caa3=_0x2fdf09['locale'],_0x44da92=_0x2fdf09['plugins']['get']('TrackChangesEditing'),_0x30862e=_0x2fdf09['plugins']['get']('TableUtils');_0x44da92['descriptionFactory']['registerElementLabel']('table',_0x17297b=>o(_0x47caa3,'ELEMENT_TABLE',_0x17297b)),this['_setupColumnsRowsFixing'](),_0x44da92['enableCommand']('insertTable'),_0x44da92['enableCommand']('selectTableRow'),_0x44da92['enableCommand']('selectTableColumn');for(const _0x1d0408 of['insertTableRowAbove','insertTableRowBelow']){const _0x1e2f66=_0x2fdf09['commands']['get'](_0x1d0408);_0x44da92['enableCommand'](_0x1d0408,_0x13e72a=>{_0x2fdf09['model']['change'](_0x275e68=>{_0x13e72a();const _0x7f6374='above'===_0x1e2f66['order'],_0x36918b=_0x30862e['getSelectionAffectedTableCells'](_0x1f3f76),_0x44bd11=_0x30862e['getRowIndexes'](_0x36918b),_0x182e03=_0x7f6374?_0x44bd11['first']-0x1:_0x44bd11['last']+0x1,_0x73fc13=_0x36918b[0x0]['findAncestor']('table'),_0x35f36f=_0x30862e['createTableWalker'](_0x73fc13,{'startRow':_0x182e03,'endRow':_0x182e03}),_0xbf8d9f=Array['from'](_0x35f36f)['map'](_0x5077ab=>_0x275e68['createRangeOn'](_0x5077ab['cell']));_0x44da92['markMultiRangeInsertion'](_0xbf8d9f,'tableRow');});});}for(const _0x38f9a7 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3e1d71=_0x2fdf09['commands']['get'](_0x38f9a7);_0x44da92['enableCommand'](_0x38f9a7,_0x32d7ef=>{_0x2fdf09['model']['change'](_0x24cccc=>{_0x32d7ef();const _0x3df8d7='left'===_0x3e1d71['order'],_0xf49bac=_0x30862e['getSelectionAffectedTableCells'](_0x1f3f76),_0x877584=_0x30862e['getColumnIndexes'](_0xf49bac),_0x2e96e3=_0x3df8d7?_0x877584['first']-0x1:_0x877584['last']+0x1,_0x10b337=_0xf49bac[0x0]['findAncestor']('table'),_0x176d81=_0x30862e['createTableWalker'](_0x10b337,{'startRow':0x0,'column':_0x2e96e3,'includeAllSlots':!0x1}),_0x56eee3=Array['from'](_0x176d81)['map'](_0x164493=>_0x24cccc['createRangeOn'](_0x164493['cell']));_0x44da92['markMultiRangeInsertion'](_0x56eee3,'tableColumn');});});}for(const _0x13eeed of['removeTableRow','removeTableColumn']){const _0xb55405=_0x13eeed['substr'](0xb),_0x3c463a=_0xb55405['toLowerCase'](),_0x3601f6=_0x3c463a['substr'](0x0,0x3)+'span',_0x432907='table'+_0xb55405,_0x4f37eb='min'+_0xb55405,_0x4976d7='max'+_0xb55405;_0x44da92['enableCommand'](_0x13eeed,()=>{_0x2fdf09['model']['change'](_0x3a41d3=>{const _0x161b1c=_0x30862e['getSelectionAffectedTableCells'](_0x1f3f76),_0x509877=_0x161b1c[0x0]['findAncestor']('table');let _0x501123;if('removeTableRow'==_0x13eeed){const _0x5eb39f=_0x30862e['getRowIndexes'](_0x161b1c);_0x501123={'startRow':_0x5eb39f['first'],'endRow':_0x5eb39f['last'],'includeAllSlots':!0x0};}else{const _0x2862c3=_0x30862e['getColumnIndexes'](_0x161b1c);_0x501123={'startColumn':_0x2862c3['first'],'endColumn':_0x2862c3['last'],'includeAllSlots':!0x0};}const _0x297311=_0x30862e['createTableWalker'](_0x509877,_0x501123),_0x286030=Array['from'](_0x297311)['map'](({cell:_0x4c50b9})=>_0x4c50b9),_0x4d27f9=Ee(_0x286030['filter'](_0x32903c=>_0x32903c['hasAttribute'](_0x3601f6))),_0x3ab70f=Ee(_0x286030['filter'](_0x3a6c77=>!_0x3a6c77['hasAttribute'](_0x3601f6)))['map'](_0x151e38=>_0x3a41d3['createRangeOn'](_0x151e38)),_0x4f6977=_0x44da92['markMultiRangeDeletion'](_0x3ab70f,_0x432907);if(_0x4f6977&&('tableRow'==_0x4f6977['subType']||'tableColumn'==_0x4f6977['subType'])){const _0xc5f61a=this['_getSuggestionCoords'](_0x4f6977);for(const _0x335cb9 of _0x4d27f9){const _0xab1091=_0x3a41d3['createRangeOn'](_0x335cb9),_0x30221c=_0x30862e['getCellLocation'](_0x335cb9),_0x18d10e=_0x335cb9['getAttribute'](_0x3601f6)-0x1,_0x176cf3=_0xc5f61a[_0x4f37eb],_0x4b6abd=_0xc5f61a[_0x4976d7];_0x176cf3<=_0x30221c[_0x3c463a]&&_0x30221c[_0x3c463a]+_0x18d10e<=_0x4b6abd&&_0x4f6977['addRange'](_0xab1091);}}});});}function _0x5c473b(_0x266f3e){const _0x8aa13a=Array['from'](_0x1f3f76['getRanges']())['map'](_0x3c9c85=>_0x59eb41['fromRange'](_0x3c9c85));_0x2fdf09['model']['change'](_0x352590=>{const _0x45c2a7=_0x352590['batch'];_0x266f3e=_0x266f3e['filter'](_0x1db0f0=>'$graveyard'!=_0x1db0f0['root']['rootName']),_0x352590['setSelection'](_0x266f3e),_0x2fdf09['commands']['get']('removeTableRow')['refresh'](),_0x2fdf09['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2fdf09['model']['enqueueChange'](()=>{_0x2fdf09['model']['enqueueChange'](_0x45c2a7,_0x2e6841=>{const _0x351630=_0x8aa13a['filter'](_0x223788=>'$graveyard'!=_0x223788['root']['rootName']);_0x351630['length']>0x0&&_0x2e6841['setSelection'](_0x351630);for(const _0x3a3aee of _0x8aa13a)_0x3a3aee['detach']();});});});}function _0x368e0a(_0x227675){_0x2fdf09['model']['change'](_0x101562=>{const _0x1f6691=Array['from'](_0x1f3f76['getRanges']())['map'](_0x2ca44e=>_0x59eb41['fromRange'](_0x2ca44e)),_0x29c8dc=[];for(const _0x53920c of _0x227675)for(const _0x202834 of _0x53920c['getItems']({'shallow':!0x0}))_0x29c8dc['push'](_0x202834);for(const _0x377fba of _0x29c8dc)'$graveyard'!=_0x377fba['root']['rootName']&&(_0x101562['setSelection'](_0x101562['createPositionAt'](_0x377fba,0x0)),_0x2fdf09['commands']['get']('removeTableColumn')['refresh'](),_0x2fdf09['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x163dcf=_0x1f6691['filter'](_0xd3bea9=>'$graveyard'!=_0xd3bea9['root']['rootName']);_0x163dcf['length']>0x0&&_0x101562['setSelection'](_0x163dcf);for(const _0x52d0f4 of _0x1f6691)_0x52d0f4['detach']();});}function _0x2f4d42(_0x1f429c,_0x381a7b){return _0x381a7b['every'](_0x1895f0=>_0x1f429c['some'](_0x4c8a6e=>_0x4c8a6e['end']['isEqual'](_0x1895f0['start'])||_0x1895f0['end']['isEqual'](_0x4c8a6e['start'])));}function _0x47798c(_0xa0be4c,_0x7d63a2){return!_0xa0be4c['some'](_0x2209c5=>_0x7d63a2['some'](_0x4eb42f=>_0x2209c5['isIntersecting'](_0x4eb42f)))&&_0xa0be4c['some'](_0x37063c=>_0x7d63a2['some'](_0x1affed=>_0x37063c['end']['isTouching'](_0x1affed['start'])));}_0x2fdf09['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2333f1,_0x1009ae,_0x5ec048)=>{if(!_0x5ec048['options']['showSuggestionHighlights'])return;const _0x1bc33b=_0x1009ae['item'];if(!_0x1bc33b)return;const _0x8b0413=_0x5ec048['mapper']['toViewElement'](_0x1bc33b);function _0x11aafc(_0x1b3a55){return Array['isArray'](_0x1b3a55)?_0x1b3a55:[_0x1b3a55];}_0x8b0413&&'tableCell'===_0x1bc33b['name']&&_0x2c4a49(_0x8b0413,_0x5ec048['writer'],(_0x55a033,_0x39d3b4,_0x768ec3)=>_0x768ec3['addClass'](_0x11aafc(_0x39d3b4['classes']),_0x55a033),(_0x133927,_0x5dbf94,_0x8f33ef)=>_0x8f33ef['removeClass'](_0x11aafc(_0x5dbf94['classes']),_0x133927));},{'priority':'highest'}),_0x44da92['descriptionFactory']['registerDescriptionCallback'](_0x4ce1e7=>{if('insertion'!=_0x4ce1e7['type']&&'deletion'!=_0x4ce1e7['type'])return;const _0x17ba32=_0x4ce1e7['getContainedElement']();if(null!=_0x17ba32&&_0x17ba32['is']('element','table')){if('insertion'==_0x4ce1e7['type']){const _0x4636dc=_0x4ce1e7['getItems']()['filter'](_0x3350dc=>_0x3350dc['is']('$textProxy'))['map'](_0x41e804=>_0x41e804['data']);if(_0x4636dc['length'])return{'type':'insertion','content':o(_0x47caa3,'*Insert:*\x20%0',o(_0x47caa3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4636dc['join']('\x20')+'\x22'))};}if('deletion'==_0x4ce1e7['type']){const _0x11716a=_0x4ce1e7['getItems']()['filter'](_0x1d8b38=>_0x1d8b38['is']('$textProxy'))['map'](_0x3c9d32=>_0x3c9d32['data']);if(_0x11716a['length'])return{'type':'deletion','content':o(_0x47caa3,'*Remove:*\x20%0',o(_0x47caa3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x11716a['join']('\x20')+'\x22'))};}}}),_0x44da92['descriptionFactory']['registerDescriptionCallback'](_0x5e41b8=>{if('tableRow'==_0x5e41b8['subType']){const _0x1d85ad=_0x5e41b8['getItems']()['filter'](_0xd67c9e=>_0xd67c9e['is']('$textProxy'))['map'](_0x19eeee=>_0x19eeee['data']),_0xefc4f2=this['_getSuggestionCoords'](_0x5e41b8),_0x116f2e=_0xefc4f2['maxRow']-_0xefc4f2['minRow']+0x1;if('insertion'==_0x5e41b8['type'])return _0x1d85ad['length']?{'type':'insertion','content':o(_0x47caa3,'*Insert:*\x20%0',o(_0x47caa3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x116f2e,'\x22'+_0x1d85ad['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x47caa3,'*Insert:*\x20%0',o(_0x47caa3,'ELEMENT_TABLE_ROW',_0x116f2e))};if('deletion'==_0x5e41b8['type'])return _0x1d85ad['length']?{'type':'deletion','content':o(_0x47caa3,'*Remove:*\x20%0',o(_0x47caa3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x116f2e,'\x22'+_0x1d85ad['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x47caa3,'*Remove:*\x20%0',o(_0x47caa3,'ELEMENT_TABLE_ROW',_0x116f2e))};}if('tableColumn'==_0x5e41b8['subType']){const _0x158acf=_0x5e41b8['getItems']()['filter'](_0x5b4f7f=>_0x5b4f7f['is']('$textProxy'))['map'](_0x1456c1=>_0x1456c1['data']),_0x1ec90c=this['_getSuggestionCoords'](_0x5e41b8),_0x4580eb=_0x1ec90c['maxColumn']-_0x1ec90c['minColumn']+0x1;if('insertion'==_0x5e41b8['type'])return _0x158acf['length']?{'type':'insertion','content':o(_0x47caa3,'*Insert:*\x20%0',o(_0x47caa3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4580eb,'\x22'+_0x158acf['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x47caa3,'*Insert:*\x20%0',o(_0x47caa3,'ELEMENT_TABLE_COLUMN',_0x4580eb))};if('deletion'==_0x5e41b8['type'])return _0x158acf['length']?{'type':'deletion','content':o(_0x47caa3,'*Remove:*\x20%0',o(_0x47caa3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4580eb,'\x22'+_0x158acf['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x47caa3,'*Remove:*\x20%0',o(_0x47caa3,'ELEMENT_TABLE_COLUMN',_0x4580eb))};}}),_0x44da92['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5c473b),_0x44da92['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5c473b),_0x44da92['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x368e0a),_0x44da92['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x368e0a),_0x44da92['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2f4d42),_0x44da92['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2f4d42),_0x44da92['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x47798c),_0x44da92['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x47798c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3bcf97=this['editor'],_0x52ae7c=_0x3bcf97['model']['document']['selection'];return(_0x33082c,_0x1c8bca)=>{_0x3bcf97['model']['change'](_0x31acf7=>{const {commandName:_0x30c260,commandParams:_0x44b772}=_0x1c8bca;let _0x48292e=_0x33082c[0x0]['end']['nodeBefore'];_0x44b772&&_0x44b772[0x0]&&!0x1===_0x44b772[0x0]['forceValue']&&(_0x48292e=_0x33082c[0x0]['start']['nodeAfter']);const _0x33cff8=_0x31acf7['createRangeIn'](_0x48292e);if('$graveyard'==_0x33cff8['root']['rootName'])return;const _0x3b2dc0=Array['from'](_0x52ae7c['getRanges']())['map'](_0x4fe52b=>_0x59eb41['fromRange'](_0x4fe52b));_0x31acf7['setSelection'](_0x33cff8),_0x3bcf97['commands']['get'](_0x30c260)['refresh'](),_0x44b772['push']({'forceDefaultExecution':!0x0}),_0x3bcf97['execute'](_0x30c260,..._0x44b772);const _0x4febbb=_0x3b2dc0['filter'](_0xd2480a=>'$graveyard'!=_0xd2480a['root']['rootName']);_0x4febbb['length']>0x0&&_0x31acf7['setSelection'](_0x4febbb);for(const _0x3e2347 of _0x3b2dc0)_0x3e2347['detach']();});};}['_getCoordsForCells'](_0x30506f){const _0x24901f=this['editor']['plugins']['get']('TableUtils');let _0x53a42b=Number['MAX_SAFE_INTEGER'],_0x1fc721=Number['MIN_SAFE_INTEGER'],_0xf5dc00=Number['MAX_SAFE_INTEGER'],_0x5c4c35=Number['MIN_SAFE_INTEGER'];for(const _0x2bf6f8 of _0x30506f){if('$graveyard'==_0x2bf6f8['root']['rootName'])continue;const {row:_0x18ba3c,column:_0x7521d6}=_0x24901f['getCellLocation'](_0x2bf6f8),_0x30b600=_0x2bf6f8['hasAttribute']('rowspan')?_0x2bf6f8['getAttribute']('rowspan')-0x1:0x0,_0x46c3ca=_0x2bf6f8['hasAttribute']('colspan')?_0x2bf6f8['getAttribute']('colspan')-0x1:0x0;_0x53a42b=_0x18ba3c<_0x53a42b?_0x18ba3c:_0x53a42b,_0x1fc721=_0x18ba3c+_0x30b600>_0x1fc721?_0x18ba3c+_0x30b600:_0x1fc721,_0xf5dc00=_0x7521d6<_0xf5dc00?_0x7521d6:_0xf5dc00,_0x5c4c35=_0x7521d6+_0x46c3ca>_0x5c4c35?_0x7521d6+_0x46c3ca:_0x5c4c35;}return{'minRow':_0x53a42b,'maxRow':_0x1fc721,'minColumn':_0xf5dc00,'maxColumn':_0x5c4c35};}['_setupColumnsRowsFixing'](){const _0x3b8744=this['editor'],_0x262a39=_0x3b8744['plugins']['get']('TrackChangesEditing'),_0x168387=_0x3b8744['plugins']['get']('TableUtils');_0x3b8744['model']['document']['on']('change:data',()=>{const _0x6bc8b8=Array['from'](_0x3b8744['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35d306,data:_0x5dcadc}of _0x6bc8b8){const {group:_0x411750,id:_0x21cdc9,subType:_0x44b909}=_0x262a39['_splitMarkerName'](_0x35d306);if('suggestion'!=_0x411750)continue;if(null!=_0x5dcadc['oldRange'])continue;const _0x2defa2=_0x262a39['getSuggestion'](_0x21cdc9);this['_tablePostFixingSubtypes']['includes'](_0x44b909)&&this['_tableSuggestions']['add'](_0x2defa2);}},{'priority':'low'});const _0x3f6f6b=(_0x56b701,_0x34d2b0)=>{let _0x19b7d7=!0x1;const _0x590e19=_0x34d2b0['createRangeOn'](_0x56b701),_0x30b49c=_0x56b701['findAncestor']('table'),_0x3dd510=_0x168387['getCellLocation'](_0x56b701);for(const _0xa2ec64 of this['_tableSuggestions']){const _0xc2f0b6=_0xa2ec64['subType'],_0x3660b0=_0xc2f0b6['startsWith']('tablePaste'),_0x4763c5=_0xc2f0b6['substr'](_0x3660b0?0xa:0x5),_0x1ac7e0=_0x4763c5['toLowerCase'](),_0x130aba=_0x1ac7e0['substr'](0x0,0x3)+'span',_0x1fbe88='min'+_0x4763c5,_0x446537='max'+_0x4763c5;if(!_0xa2ec64['isInContent'])continue;if(_0x30b49c!=_0xa2ec64['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xa2ec64['isIntersectingWithRange'](_0x590e19))continue;const _0x529221=_0x56b701['hasAttribute'](_0x130aba)?_0x56b701['getAttribute'](_0x130aba)-0x1:0x0,_0x4e0b87=this['_getSuggestionCoords'](_0xa2ec64),_0x11ca34=_0x4e0b87[_0x1fbe88],_0xaab929=_0x4e0b87[_0x446537];_0x11ca34<=_0x3dd510[_0x1ac7e0]&&_0x3dd510[_0x1ac7e0]+_0x529221<=_0xaab929&&(_0xa2ec64['addRange'](_0x590e19),_0x19b7d7=!0x0);}return _0x19b7d7;};_0x3b8744['model']['document']['registerPostFixer'](_0x141f33=>{let _0x323e1f=!0x1;for(const _0xdb1e30 of _0x3b8744['model']['document']['differ']['getChanges']())if('insert'==_0xdb1e30['type']){if('tableRow'==_0xdb1e30['name']){for(const _0x4da5d5 of _0xdb1e30['position']['nodeAfter']['getChildren']())_0x323e1f=_0x323e1f||_0x3f6f6b(_0x4da5d5,_0x141f33);}else'tableCell'==_0xdb1e30['name']&&(_0x323e1f=_0x323e1f||_0x3f6f6b(_0xdb1e30['position']['nodeAfter'],_0x141f33));}return _0x323e1f;});}['_getSuggestionCoords'](_0x275fbb){return this['_getCoordsForCells'](_0x275fbb['getRanges']()['map'](_0xf46180=>_0xf46180['start']['nodeAfter']));}}function Ee(_0x58f03d){return Array['from'](new Set(_0x58f03d)['values']());}class St extends _0x1fe610{static get['requires'](){return[jt];}['afterInit'](){const _0x17b2f4=this['editor'],_0x2d8c0d=_0x17b2f4['model']['document']['selection'],_0x3bf493=_0x17b2f4['locale'];if(!_0x17b2f4['plugins']['has']('TableEditing'))return;const _0xe00715=_0x17b2f4['plugins']['get']('TrackChangesEditing'),_0x24cff1=_0x17b2f4['plugins']['get']('TableUtils'),_0x1120c9=_0x17b2f4['plugins']['get'](jt);_0x1120c9['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xe00715['enableCommand']('mergeTableCells',()=>{const _0x3785c5=_0x24cff1['getSelectionAffectedTableCells'](_0x17b2f4['model']['document']['selection']);_0x17b2f4['model']['change'](()=>{_0xe00715['markMultiRangeBlockFormat'](_0x3785c5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x17b2f4['commands']['get']('mergeTableCells')['on']('execute',(_0x48db50,_0x5db367)=>{_0x17b2f4['commands']['get']('trackChanges')['value']&&(_0x5db367['length']>0x0&&_0x5db367[_0x5db367['length']-0x1]&&_0x5db367[_0x5db367['length']-0x1]['forceDefaultExecution']||_0xe00715['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x48db50['stop']());},{'priority':'highest'});for(const _0x16149a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x454e49=_0x17b2f4['commands']['get'](_0x16149a);_0xe00715['enableCommand'](_0x16149a,()=>{const _0xd2d32=_0x17b2f4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x959aef=>_0x959aef['is']('element','tableCell')),_0x3fd5d6=_0x454e49['value'];_0x17b2f4['model']['change'](()=>{_0xe00715['markMultiRangeBlockFormat']([_0xd2d32,_0x3fd5d6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3c2474 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x70738f=_0x17b2f4['commands']['get'](_0x3c2474);_0xe00715['enableCommand'](_0x3c2474,()=>{const _0x4182db=_0x24cff1['getSelectionAffectedTableCells'](_0x17b2f4['model']['document']['selection'])[0x0],_0x125fc4=_0x4182db['findAncestor']('table'),{column:_0x1e0d0d,row:_0x5eccc2}=_0x24cff1['getCellLocation'](_0x4182db);let _0x49fb1c=[];if('horizontally'==_0x70738f['direction']){const _0x369813=_0x24cff1['createTableWalker'](_0x125fc4,{'startRow':_0x5eccc2,'endRow':_0x5eccc2,'includeAllSlots':!0x0});_0x49fb1c=Array['from'](_0x369813)['map'](_0x4d6cf3=>_0x4d6cf3['cell']);}else{const _0x103b77=_0x24cff1['createTableWalker'](_0x125fc4,{'column':_0x1e0d0d,'includeAllSlots':!0x0});_0x49fb1c=Array['from'](_0x103b77)['map'](_0x414820=>_0x414820['cell']);}_0x17b2f4['model']['change'](_0x3f7f8e=>{_0xe00715['markBlockFormat'](_0x3f7f8e['createRangeOn'](_0x4182db),{'commandName':_0x3c2474,'commandParams':[]},_0x49fb1c,_0x3c2474);});});}_0xe00715['descriptionFactory']['registerDescriptionCallback'](_0x4b2db6=>{if('formatBlock'!=_0x4b2db6['type']&&'formatInline'!=_0x4b2db6['type'])return;const {data:_0x4032cb}=_0x4b2db6;return _0x4032cb&&'mergeTableCells'==_0x4032cb['commandName']?{'type':'format','content':o(_0x3bf493,'*Merge\x20cells*')}:void 0x0;}),_0xe00715['descriptionFactory']['registerDescriptionCallback'](_0x3e40f6=>{if('formatBlock'!=_0x3e40f6['type']&&'formatInline'!=_0x3e40f6['type'])return;const {data:_0x575e5f}=_0x3e40f6;return _0x575e5f?'splitTableCellVertically'==_0x575e5f['commandName']?{'type':'format','content':o(_0x3bf493,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x575e5f['commandName']?{'type':'format','content':o(_0x3bf493,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x7883f1=_0x1120c9['_acceptFormatSuggestionCallbackFactory']();for(const _0x554ff8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xe00715['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x554ff8,'accept',_0x7883f1);for(const _0x46b118 of['splitTableCellVertically','splitTableCellHorizontally'])_0xe00715['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x46b118,'accept',_0x7883f1);_0xe00715['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1b03ce=>{_0x17b2f4['model']['change'](_0x26ce7a=>{const _0x10977b=Array['from'](_0x2d8c0d['getRanges']())['map'](_0x35c59d=>_0x59eb41['fromRange'](_0x35c59d));_0x26ce7a['setSelection'](_0x1b03ce),_0x17b2f4['commands']['get']('mergeTableCells')['refresh'](),_0x17b2f4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5eb9d2=_0x10977b['filter'](_0x42a3cf=>'$graveyard'!=_0x42a3cf['root']['rootName']);_0x5eb9d2['length']>0x0&&_0x26ce7a['setSelection'](_0x5eb9d2);for(const _0x2e1a7d of _0x10977b)_0x2e1a7d['detach']();});});for(const _0x34509d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2df7b0=_0x17b2f4['commands']['get'](_0x34509d);_0x2df7b0['on']('set:isEnabled',(_0x58a49b,_0x401476,_0x2729cd)=>{if(_0x2729cd){const _0x51bf0d=_0x17b2f4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd1bf09=>_0xd1bf09['is']('element','tableCell'));this['_areMergableCells'](_0x2df7b0['value'],_0x51bf0d)||(_0x58a49b['return']=!0x1,_0x58a49b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x260e84=this['editor']['commands']['get']('mergeTableCells'),_0x90c86b=this['editor']['plugins']['get']('TableUtils');if(!_0x260e84['isEnabled'])return!0x1;const _0x547002=_0x90c86b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x324032 of _0x547002)for(const _0x5bdd90 of _0x547002)if(_0x324032!=_0x5bdd90&&!this['_areMergableCells'](_0x324032,_0x5bdd90))return!0x1;return!0x0;}['_areMergableCells'](_0x8654c5,_0x2e5b62){const _0xc41e1f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ef73d=this['editor']['model']['createRangeOn'](_0x8654c5),_0x298000=this['editor']['model']['createRangeOn'](_0x2e5b62),_0x1fc009=new Set(),_0x4e6197=new Set();for(const _0x43a484 of _0xc41e1f['getSuggestions']())if(('insertion'==_0x43a484['type']||'deletion'==_0x43a484['type']||'mergeTableCells'==_0x43a484['subType'])&&_0x43a484['isInContent']){for(const _0xdefc57 of _0x43a484['getRanges']())_0xdefc57['containsRange'](_0x4ef73d,!0x0)&&_0x1fc009['add'](_0x43a484['type']+':'+_0x43a484['author']['id']),_0xdefc57['containsRange'](_0x298000,!0x0)&&_0x4e6197['add'](_0x43a484['type']+':'+_0x43a484['author']['id']);}if(_0x1fc009['size']!=_0x4e6197['size'])return!0x1;for(const _0x1d7c2f of _0x1fc009)if(!_0x4e6197['has'](_0x1d7c2f))return!0x1;return!0x0;}}class At extends _0x1fe610{static get['requires'](){return[jt];}['afterInit'](){const _0x4ba3ac=this['editor'];if(!_0x4ba3ac['plugins']['has']('TableEditing'))return;const _0x143529=_0x4ba3ac['locale'],_0x40ff40=_0x4ba3ac['plugins']['get']('TrackChangesEditing');_0x40ff40['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x40ff40['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x40ff40['registerBlockAttribute']('headingRows'),_0x40ff40['registerBlockAttribute']('headingColumns'),_0x40ff40['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x143529,'FORMAT_HEADER_ROW')),_0x40ff40['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x143529,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x57d703=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f30f1=this['editor']['plugins']['get']('TableUtils'),_0x4dabf1=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x5f0d62({showActiveMarker:_0x15bf47=!0x0,setDataAttribute:_0x1c7d74=!0x0}={}){return(_0x384304,_0x57bcc7,_0x5d253c)=>{const {type:_0x18f5e1,id:_0x20479c}=_0x57d703['_splitMarkerName'](_0x57bcc7['markerName']),_0xb14566=_0x57d703['getSuggestion'](_0x20479c),_0xbb0549=_0xb14566['data'];if('formatBlock'!=_0xb14566['type']||!_0xbb0549||'setTableColumnHeader'!=_0xbb0549['commandName'])return;if(_0x57bcc7['item'])return void _0x384304['stop']();if(!_0x5d253c['consumable']['consume'](_0x57bcc7['markerRange'],_0x384304['name']))return;const _0x23acac=_0x57bcc7['markerRange']['start']['nodeAfter'],_0x2a23e6=_0x57bcc7['markerRange']['end']['nodeBefore'],_0x242414=_0x23acac['parent']['parent'],{column:_0xf47037}=_0x3f30f1['getCellLocation'](_0x23acac),{column:_0x3cd3d0}=_0x3f30f1['getCellLocation'](_0x2a23e6);for(let _0x4fd823=_0xf47037;_0x4fd823<=_0x3cd3d0;_0x4fd823++){const _0x3e309a=_0x3f30f1['createTableWalker'](_0x242414,{'column':_0x4fd823,'includeAllSlots':!0x1});for(const _0x1387f5 of _0x3e309a){const _0x25e24e=_0x1387f5['cell'],_0x119b93=_0x5d253c['mapper']['toViewElement'](_0x25e24e);_0x5d253c['writer']['addClass']('ck-suggestion-marker-'+_0x18f5e1,_0x119b93),_0x1c7d74&&_0x5d253c['writer']['setAttribute']('data-suggestion',_0x20479c,_0x119b93),_0x5d253c['mapper']['bindElementToMarker'](_0x119b93,_0x57bcc7['markerName']),_0x15bf47&&(_0x57d703['activeMarkers']['includes'](_0x57bcc7['markerName'])?_0x5d253c['writer']['addClass']('ck-suggestion-marker--active',_0x119b93):_0x5d253c['writer']['removeClass']('ck-suggestion-marker--active',_0x119b93));}}};}_0x57d703['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4dabf1),_0x57d703['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4dabf1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5f0d62(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4165ac,_0x5b6e6b,_0x2c0d6e)=>{_0x2c0d6e['options']['showSuggestionHighlights']&&_0x5f0d62({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4165ac,_0x5b6e6b,_0x2c0d6e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xd9dc9,_0x33c0ad,_0x48644f)=>{const {type:_0x116012,id:_0x438850}=_0x57d703['_splitMarkerName'](_0x33c0ad['markerName']),_0x596fb1=_0x57d703['getSuggestion'](_0x438850),_0x401a34=_0x596fb1['data'];if('formatBlock'!=_0x596fb1['type']||!_0x401a34||'setTableColumnHeader'!=_0x401a34['commandName'])return;const _0x192c4d=_0x48644f['mapper']['markerNameToElements'](_0x33c0ad['markerName']);if(_0x192c4d){for(const _0x2a6dc0 of _0x192c4d)_0x48644f['writer']['removeClass']('ck-suggestion-marker-'+_0x116012,_0x2a6dc0),_0x48644f['writer']['removeClass']('ck-suggestion-marker--active',_0x2a6dc0),_0x48644f['writer']['removeAttribute']('data-suggestion',_0x2a6dc0),_0x48644f['mapper']['unbindElementFromMarkerName'](_0x2a6dc0,_0x33c0ad['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a160f=this['editor'],_0x519b47=_0x5a160f['locale'];function _0x6a60ae(_0xd4e49d){return{'type':'format','content':o(_0x519b47,'*Format:*\x20%0',_0xd4e49d)};}_0x5a160f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe013f9=>{if('formatBlock'!=_0xe013f9['type'])return;const {data:_0xf1d488}=_0xe013f9;if(_0xf1d488){if('setTableRowHeader'==_0xf1d488['commandName']){const _0x15b083=_0xf1d488['commandParams'][0x0]['forceValue'];return _0x6a60ae(o(_0x519b47,_0x15b083?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xf1d488['commandName']){const _0x469b90=_0xf1d488['commandParams'][0x0]['forceValue'];return _0x6a60ae(o(_0x519b47,_0x469b90?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x55df15=>[_0x55df15,null]));class It extends _0x1fe610{static get['requires'](){return[jt];}['afterInit'](){const _0x52ceb6=this['editor'];if(!_0x52ceb6['plugins']['has']('TableClipboard'))return;const _0x5cdae3=_0x52ceb6['plugins']['get']('TrackChangesEditing'),_0x37de72=_0x52ceb6['plugins']['get']('TableUtils'),_0x279e2f=_0x52ceb6['plugins']['get'](jt),_0x1ebbff=_0x52ceb6['plugins']['get']('TableClipboard');_0x279e2f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x52ceb6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x52ceb6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1887a3=null;_0x52ceb6['model']['on']('insertContent',(_0x4b09f4,_0x473941)=>{const [_0x32207a,_0x34f3b6]=_0x473941,_0x469481=_0x473941[_0x473941['length']-0x1];_0x469481&&_0x469481['forceDefaultExecution']||_0x5cdae3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5d806e,_0x45c89d,_0x3c437e,_0x15f847,_0x698290){if(_0x45c89d&&!_0x45c89d['is']('documentSelection'))return!0x1;const _0x1ddbe7=_0x698290['getTableIfOnlyTableInContent'](_0x5d806e,_0x3c437e);if(!_0x1ddbe7||!he(_0x1ddbe7,void 0x0,_0x15f847))return!0x1;const _0x4f4d48=_0x15f847['getSelectionAffectedTableCells'](_0x3c437e['document']['selection']);if(!_0x4f4d48['length'])return!0x1;const _0x4fedb7=_0x4f4d48[0x0]['findAncestor']('table'),_0x368b98=_0x15f847['getRowIndexes'](_0x4f4d48),_0x5c7592=_0x15f847['getColumnIndexes'](_0x4f4d48),_0x5a4456={'startRow':_0x368b98['first'],'endRow':_0x368b98['last'],'startColumn':_0x5c7592['first'],'endColumn':_0x5c7592['last']};return 0x1==_0x4f4d48['length']&&(_0x5a4456['endRow']+=_0x15f847['getRows'](_0x1ddbe7)-0x1,_0x5a4456['endColumn']+=_0x15f847['getColumns'](_0x1ddbe7)-0x1),he(_0x4fedb7,_0x5a4456,_0x15f847);}(_0x32207a,_0x34f3b6,_0x52ceb6['model'],_0x37de72,_0x1ebbff)&&(_0x4b09f4['stop'](),_0x1887a3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x52ceb6['model']['change'](()=>{_0x52ceb6['model']['insertContent'](_0x473941[0x0],_0x473941[0x1],_0x473941[0x2],{'forceDefaultExecution':!0x0});const _0x2cfdee=_0x3acd04(),{rowInsertionRanges:_0x542b02,columnInsertionRanges:_0x4dca3c,insertionRanges:_0xd9cbe5,deletionRanges:_0x5a1df8,cells:_0x1c3fe2}=_0x1887a3;_0x542b02['length']&&_0x5cdae3['markMultiRangeInsertion'](_0x542b02,'tablePasteRow',{'tablePasteChainId':_0x2cfdee}),_0x4dca3c['length']&&_0x5cdae3['markMultiRangeInsertion'](_0x4dca3c,'tablePasteColumn',{'tablePasteChainId':_0x2cfdee}),_0xd9cbe5['length']&&(_0x5cdae3['markMultiRangeInsertion'](_0xd9cbe5,'tablePaste',{'tablePasteChainId':_0x2cfdee,'skipNestingCheck':!0x0}),_0xd9cbe5['forEach'](_0x4deef0=>_0x4deef0['detach']?.())),_0x5a1df8['length']&&(_0x5cdae3['markMultiRangeDeletion'](_0x5a1df8,'tablePaste',{'tablePasteChainId':_0x2cfdee,'skipNestingCheck':!0x0}),_0x5a1df8['forEach'](_0x15c910=>_0x15c910['detach']?.()));const _0x36f5f2=_0x5cdae3['markMultiRangeBlockFormat'](_0x1c3fe2['map'](({element:_0x54d6a})=>_0x54d6a),{'formatGroupId':_0x3acd04()},[],'tablePasteCell',{'tablePasteChainId':_0x2cfdee});if(_0x36f5f2){const _0x25556c=_0x36f5f2['getMarkers'](),_0x55b833=[];for(const {element:_0x450767,attributes:_0x59aaad}of _0x1c3fe2){if(!_0x59aaad)continue;const _0xc808fd=_0x52ceb6['model']['createRangeOn'](_0x450767),_0x47815c=_0x25556c['find'](_0x184368=>_0x184368['getRange']()['isEqual'](_0xc808fd));_0x47815c&&_0x55b833['push']([_0x47815c['name'],_0x59aaad]);}_0x55b833['length']&&_0x36f5f2['setAttribute']('markerAttributes',Object['fromEntries'](_0x55b833));}_0x1887a3=null;}));},{'priority':_0x676e80['high']+0xa}),_0x52ceb6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3609f4,_0x49ff11)=>{const [_0x206352,_0x216151,,_0x3a8530]=_0x49ff11;if(!_0x1887a3)return;_0x3609f4['stop']();const _0x83f212=_0x206352['cell'],_0x1a67c0=_0x216151,_0x5681ec=Pe(_0x83f212),_0x4e32f4=Pe(_0x1a67c0);_0x3609f4['return']=_0x83f212;let _0x272c98=null,_0x39970a=null;if(_0x4e32f4||_0x5681ec){if(_0x5681ec&&!_0x4e32f4){_0x3a8530['remove'](_0x83f212['getChild'](0x0));for(const _0x2c7a7d of Array['from'](_0x1a67c0['getChildren']()))_0x3a8530['insert'](_0x2c7a7d,_0x83f212,'end');const _0x31e516=_0x1887a3['rowInsertionIndexes']['includes'](_0x206352['row']),_0x1432c7=_0x1887a3['columnInsertionIndexes']['includes'](_0x206352['column']);_0x31e516||_0x1432c7||(_0x272c98=_0x59eb41['fromRange'](_0x3a8530['createRangeIn'](_0x83f212)));}else _0x4e32f4&&!_0x5681ec&&(_0x39970a=_0x3a8530['createRangeIn'](_0x83f212));}else{const _0x36f373=_0x3a8530['createElement']('tableCellSuggestion'),_0x2a9429=_0x3a8530['createElement']('tableCellSuggestion');_0x3a8530['wrap'](_0x3a8530['createRangeIn'](_0x83f212),_0x2a9429),_0x3a8530['insert'](_0x36f373,_0x83f212,0x0);for(const _0x293153 of Array['from'](_0x1a67c0['getChildren']()))_0x3a8530['insert'](_0x293153,_0x36f373,'end');_0x272c98=_0x59eb41['fromRange'](_0x3a8530['createRangeOn'](_0x36f373)),_0x39970a=_0x59eb41['fromRange'](_0x3a8530['createRangeOn'](_0x2a9429));}const _0x19e02f=Array['from'](_0x1a67c0['getAttributes']())['filter'](([_0x44bb9c])=>ge['includes'](_0x44bb9c));_0x1887a3['cells']['push']({'element':_0x83f212,'attributes':_0x19e02f['length']?Object['fromEntries'](_0x19e02f):null}),_0x272c98&&_0x1887a3['insertionRanges']['push'](_0x272c98),_0x39970a&&_0x1887a3['deletionRanges']['push'](_0x39970a);},{'priority':'high'}),_0x37de72['on']('insertColumns',(_0x9c9945,_0x4b8a1)=>{const [_0x4af150,_0x5a1d5b={}]=_0x4b8a1;if(!_0x1887a3)return;const _0x372131=_0x5a1d5b['at']||0x0,_0x2cc82f=_0x5a1d5b['columns']||0x1;_0x1887a3['columnInsertionIndexes']=new Array(_0x2cc82f)['fill'](_0x372131)['map']((_0x10b17e,_0x306c9c)=>_0x10b17e+_0x306c9c);for(const {cell:_0x1c0669}of _0x37de72['createTableWalker'](_0x4af150,{'startColumn':_0x372131,'endColumn':_0x372131+_0x2cc82f-0x1}))_0x1887a3['columnInsertionRanges']['push'](_0x52ceb6['model']['createRangeOn'](_0x1c0669));},{'priority':'low'}),_0x37de72['on']('insertRows',(_0x38084d,_0x5f4070)=>{const [_0x49672b,_0x136075={}]=_0x5f4070;if(!_0x1887a3)return;const _0x593470=_0x136075['at']||0x0,_0x41d69a=_0x136075['rows']||0x1;_0x1887a3['rowInsertionIndexes']=new Array(_0x41d69a)['fill'](_0x593470)['map']((_0x388b44,_0x374e4b)=>_0x388b44+_0x374e4b);for(const {cell:_0x403edc}of _0x37de72['createTableWalker'](_0x49672b,{'startRow':_0x593470,'endRow':_0x593470+_0x41d69a-0x1}))_0x1887a3['rowInsertionRanges']['push'](_0x52ceb6['model']['createRangeOn'](_0x403edc));},{'priority':'low'}),_0x5cdae3['descriptionFactory']['registerDescriptionCallback'](_0x578605=>{if(_0x578605['subType']&&_0x578605['subType']['startsWith']('tablePaste'))return _0x578605['previous']?{}:{'type':'insertion','content':o(_0x52ceb6['locale'],'*Replace\x20table\x20cells*')};});const _0x2101f2=()=>!0x1;for(const _0x2d7159 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5cdae3['_suggestionFactory']['registerCustomCallback']('insertion',_0x2d7159,'join',_0x2101f2),_0x5cdae3['_suggestionFactory']['registerCustomCallback']('deletion',_0x2d7159,'join',_0x2101f2),_0x5cdae3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d7159,'join',_0x2101f2);_0x5cdae3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2101f2),_0x5cdae3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x106051,_0x4acb83,_0xba5492)=>{const _0x2ba827=_0x106051['map'](_0x1e20ed=>_0x1e20ed['getContainedElement']())['filter'](_0x2a810b=>_0x2a810b),_0x243c95=new Map(_0x2ba827['map'](_0x299445=>[_0x299445,null]));if(_0x1887a3){for(const {element:_0xacdad7,attributes:_0x4840fb}of _0x1887a3['cells'])_0x4840fb&&_0x243c95['set'](_0xacdad7,_0x4840fb);}else{if(_0xba5492&&_0xba5492['markerAttributes'])for(const [_0x4c75f6,_0x577104]of Object['entries'](_0xba5492['markerAttributes'])){const _0x5d60fa=_0x52ceb6['model']['markers']['get'](_0x4c75f6),_0x3a9348=_0x5d60fa?_0x5d60fa['getRange']()['getContainedElement']():null;_0x3a9348&&_0x243c95['set'](_0x3a9348,_0x577104);}}_0x52ceb6['model']['change'](_0x17d305=>{for(const [_0x1a5e7f,_0x487e45]of _0x243c95)_0x17d305['setAttributes']({...Ce,..._0x487e45},_0x1a5e7f);});});const _0x3750ab=(_0x51dedd,_0x36f1d2)=>{_0x5cdae3['_suggestionFactory']['registerCustomCallback'](_0x51dedd,'tablePaste',_0x36f1d2,(_0x30c6f5,_0x17511c,_0x43aa2e)=>{_0x52ceb6['model']['change'](_0x3bfc31=>{const _0x497a58=[];for(const _0x3fc8ec of _0x30c6f5){const _0x28b80a=_0x3fc8ec['start']['nodeAfter'];_0x28b80a['is']('element','tableCellSuggestion')&&_0x497a58['push'](_0x28b80a);}_0x5cdae3['_suggestionFactory']['getSuggestionCallback'](_0x51dedd,null,_0x36f1d2)(_0x30c6f5,_0x17511c,_0x43aa2e);for(const _0x2c28f5 of _0x497a58)'$graveyard'!=_0x2c28f5['root']['rootName']&&_0x3bfc31['unwrap'](_0x2c28f5);});});};_0x3750ab('insertion','accept'),_0x3750ab('insertion','discard'),_0x3750ab('deletion','accept'),_0x3750ab('deletion','discard'),_0x5cdae3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x30ee9b=>{const _0x563bcb=_0x30ee9b['map'](_0x103272=>_0x103272['getContainedElement']()),_0x4dabc6=_0x563bcb[0x0]['findAncestor']('table'),{minRow:_0x3704c5,maxRow:_0x1ab1b4}=_0x279e2f['_getCoordsForCells'](_0x563bcb);_0x37de72['removeRows'](_0x4dabc6,{'at':_0x3704c5,'rows':_0x1ab1b4-_0x3704c5+0x1});}),_0x5cdae3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x265039=>{const _0x21fcd5=_0x265039['map'](_0x5b748c=>_0x5b748c['getContainedElement']()),_0x597102=_0x21fcd5[0x0]['findAncestor']('table'),{minColumn:_0x5632b0,maxColumn:_0x1792b3}=_0x279e2f['_getCoordsForCells'](_0x21fcd5);_0x37de72['removeColumns'](_0x597102,{'at':_0x5632b0,'columns':_0x1792b3-_0x5632b0+0x1});});const _0x37b24d=(_0x22b51c,_0x58f8e1)=>{if(!_0x58f8e1['subType']||!_0x58f8e1['subType']['startsWith']('tablePaste'))return;const _0x3d91c8=_0x58f8e1['attributes']['tablePasteChainId'],_0x306589=_0x5cdae3['getSuggestions']()['filter'](_0x1b0a45=>_0x1b0a45['isInContent']&&_0x1b0a45['attributes']&&_0x1b0a45['attributes']['tablePasteChainId']==_0x3d91c8);_0x306589['length']&&_0x58f8e1['getAllAdjacentSuggestions']()['length']!=_0x306589['length']&&_0x306589['reduce']((_0x370127,_0x55c89c)=>(_0x370127['next']=_0x55c89c,_0x55c89c['previous']=_0x370127,_0x55c89c));};function _0x3f06db(_0x58000b,_0x329acd=!0x0){const {id:_0x5a39d9}=_0x5cdae3['_splitMarkerName'](_0x58000b['markerName']),_0x5ca163=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4657fb=_0x5cdae3['activeMarkers']['includes'](_0x58000b['markerName']);return _0x4657fb&&_0x5ca163['push']('ck-suggestion-marker--active'),{'classes':_0x5ca163,'attributes':{'data-suggestion':_0x5a39d9},'priority':_0x4657fb&&_0x329acd?0xbc2:0xbb8};}_0x5cdae3['on']('suggestionLoaded',_0x37b24d,{'priority':'high'}),_0x5cdae3['on']('suggestionUnloaded',_0x37b24d,{'priority':'high'}),_0x52ceb6['model']['document']['registerPostFixer'](()=>{let _0x37fa6f=!0x1;const _0xd0a72e=Array['from'](_0x52ceb6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2600e3,data:_0x3308e1}of _0xd0a72e){const {group:_0x1bdc58,type:_0x1e99d9,id:_0x473e0d}=_0x5cdae3['_splitMarkerName'](_0x2600e3);if('suggestion'!=_0x1bdc58||'deletion'!=_0x1e99d9||_0x3308e1['oldRange'])continue;if(!_0x5cdae3['hasSuggestion'](_0x473e0d))continue;const _0x4112dd=_0x5cdae3['getSuggestion'](_0x473e0d)['getRanges'](),_0x295fed=_0x52ceb6['plugins']['get']('Users')['me'];for(const _0x1a2e24 of _0x5cdae3['getSuggestions']()){if(!_0x1a2e24['isInContent']||_0x1a2e24['author']!=_0x295fed)continue;if('formatBlock'!=_0x1a2e24['type']||'tablePasteCell'!=_0x1a2e24['subType'])continue;if(_0x1a2e24['getRanges']()['every'](_0x127f81=>_0x4112dd['some'](_0x4e1e0b=>_0x4e1e0b['containsRange'](_0x127f81,!0x0)))){for(const _0xeb7e7b of _0x1a2e24['getAllAdjacentSuggestions']())_0xeb7e7b['isInContent']&&(_0xeb7e7b['discard'](),_0x37fa6f=!0x0);}}}return _0x37fa6f;}),_0x52ceb6['model']['document']['registerPostFixer'](_0x5fdf09=>{const _0x435fd4=_0x52ceb6['commands']['get']('redo');if(!_0x435fd4||!_0x435fd4['_createdBatches']['has'](_0x5fdf09['batch']))return!0x1;let _0x5b770b=!0x1;const _0x5e10b3=_0x52ceb6['plugins']['get']('Users')['me'],_0xf92b71=_0x52ceb6['model']['document']['differ']['getChanges'](),_0x2f8ef8=Array['from'](_0x52ceb6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x276d83,data:_0x103fbb})=>{const {group:_0x1af93b,subType:_0x920017,authorId:_0x1c5f1b}=_0x5cdae3['_splitMarkerName'](_0x276d83);return'suggestion'==_0x1af93b&&'tablePaste'==_0x920017&&_0x1c5f1b==_0x5e10b3['id']&&!_0x103fbb['oldRange'];});for(const _0x1c3cfd of _0xf92b71){if('insert'!=_0x1c3cfd['type']||'tableCellSuggestion'!=_0x1c3cfd['name']||0x1!=_0x1c3cfd['length'])continue;const _0x1a7389=_0x5fdf09['createRange'](_0x1c3cfd['position'],_0x1c3cfd['position']['getShiftedBy'](0x1));if(!_0x2f8ef8['find'](({data:_0x16a252})=>_0x16a252['newRange']['isEqual'](_0x1a7389))){for(const {name:_0x846a3f,data:_0x74d44c}of _0x2f8ef8)if(_0x1a7389['containsRange'](_0x74d44c['newRange'])){_0x5fdf09['updateMarker'](_0x846a3f,{'range':_0x1a7389}),_0x5b770b=!0x0;break;}}}return _0x5b770b;}),_0x52ceb6['model']['document']['registerPostFixer'](_0x4bb41c=>{let _0x5bbbbd=!0x1;const _0x4a5b1e=_0x52ceb6['plugins']['get']('Users')['me'],_0x4d9a15=_0x5cdae3['getSuggestions']()['filter'](_0x1a63d5=>_0x1a63d5['isInContent']&&_0x1a63d5['author']==_0x4a5b1e),_0x5aedab=new Set(),_0x2e116e=new Set();for(const _0x24564f of _0x4d9a15)if('tablePaste'==_0x24564f['subType'])for(const _0x3da0cd of _0x24564f['getMarkers']()){const _0x5655ec=_0x3da0cd['getRange']()['getContainedElement']();if(_0x5655ec){if(_0x5655ec['is']('element','tableCellSuggestion')&&Pe(_0x5655ec)){_0x24564f['removeMarker'](_0x3da0cd['name']),_0x5aedab['add'](_0x5655ec),_0x5bbbbd=!0x0;const _0x106fdb=_0x5655ec['nextSibling'],_0x5a7e59=_0x5655ec['previousSibling'],_0x470bc3=_0x106fdb&&_0x106fdb['is']('element','tableCellSuggestion'),_0x1f79f3=_0x5a7e59&&_0x5a7e59['is']('element','tableCellSuggestion');_0x470bc3&&!_0x5aedab['has'](_0x106fdb)&&_0x2e116e['add'](_0x106fdb),_0x1f79f3&&!_0x5aedab['has'](_0x5a7e59)&&_0x2e116e['add'](_0x5a7e59);}else _0x5655ec['is']('element','paragraph')&&_0x5655ec['isEmpty']&&(_0x24564f['removeMarker'](_0x3da0cd['name']),_0x5bbbbd=!0x0);}}else{if('tablePasteCell'==_0x24564f['subType']){if(!_0x24564f['attributes']||!_0x24564f['attributes']['tablePasteChainId'])continue;const _0x369e45=_0x24564f['attributes']['markerAttributes'];if(_0x369e45&&Object['keys'](_0x369e45)['length'])continue;const _0x105738=_0x24564f['attributes']['tablePasteChainId'];let _0x52b5d3=!0x0,_0x41ca9b=!0x0;for(const _0x5dafa7 of _0x4d9a15)if(_0x5dafa7['subType']&&_0x5dafa7['subType']['startsWith']('tablePaste')){if(!_0x5dafa7['attributes']['tablePasteChainId']){_0x41ca9b=!0x1;break;}if(_0x5dafa7['id']!=_0x24564f['id']&&_0x5dafa7['attributes']['tablePasteChainId']==_0x105738){_0x52b5d3=!0x1;break;}}_0x41ca9b&&_0x52b5d3&&(_0x24564f['removeMarkers'](),_0x5bbbbd=!0x0);}}for(const _0xbd7ff8 of _0x5aedab)_0x4bb41c['remove'](_0xbd7ff8);for(const _0x107b36 of _0x2e116e)_0x4bb41c['unwrap'](_0x107b36);return _0x5bbbbd;}),_0x52ceb6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x241c84,_0x512d20)=>_0x3f06db(_0x241c84),'converterPriority':'high'}),_0x52ceb6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1cb02d,_0x309cc4)=>_0x309cc4['options']['showSuggestionHighlights']?_0x3f06db(_0x1cb02d,!0x1):null,'converterPriority':'high'});const _0x2a02e9=_0x52ceb6['editing']['view'];this['listenTo'](_0x2a02e9['document'],'clipboardOutput',(_0x5512c3,_0x7d5694)=>{const _0x255f1c=[];for(const _0x3924ca of _0x2a02e9['createRangeIn'](_0x7d5694['content'])['getItems']())_0x3924ca['is']('element','suggestion-td')&&_0x255f1c['push'](_0x3924ca);_0x2a02e9['change'](_0x264c45=>{for(const _0x2a69b6 of _0x255f1c)_0x264c45['move'](_0x264c45['createRangeIn'](_0x2a69b6),_0x264c45['createPositionBefore'](_0x2a69b6)),_0x264c45['remove'](_0x2a69b6);});});}}function Pe(_0x22e3ef){if(_0x22e3ef['isEmpty'])return!0x0;const _0x3360b7=_0x22e3ef['getChild'](0x0);return _0x3360b7['is']('element','paragraph')&&_0x3360b7['isEmpty'];}function he(_0x5d320b,_0x74093a={},_0x6c107f){for(const {isAnchor:_0x53f317,cellHeight:_0x5e87a0,cellWidth:_0x462bfb}of _0x6c107f['createTableWalker'](_0x5d320b,{'includeAllSlots':!0x0,..._0x74093a}))if(!_0x53f317||0x1!=_0x5e87a0||0x1!=_0x462bfb)return!0x1;return!0x0;}class vt extends _0x1fe610{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x23f58f=this['editor']['plugins']['get']('TrackChangesEditing');_0x23f58f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x23f58f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x23f58f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x23f58f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x23f58f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x23f58f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x114092,_0x3878fd){const _0x1da7f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c9c34=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3e259f=_0x3878fd['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x512438=_0x3c9c34['getColumnGroupElement'](_0x3e259f);let _0x4776b1=_0x512438?_0x3c9c34['getTableColumnsWidths'](_0x512438):null,_0x46907e=_0x3e259f['getAttribute']('tableWidth')||null;const _0x1c838f=_0x3878fd['tableWidth']||_0x46907e,_0x3bcc84=_0x3878fd['columnWidths']||_0x4776b1,_0x5132f3=this['editor']['plugins']['get']('Users')['me'];for(const _0x2647d8 of _0x1da7f8['getSuggestions']()){const _0x32cbbd=_0x2647d8['getContainedElement']();if('resizeTable'===_0x2647d8['subType']&&_0x32cbbd===_0x3e259f){_0x2647d8['author']!==_0x5132f3&&_0x2647d8['discard']();const _0x1316ec=_0x2647d8['data']['commandParams'];_0x46907e=_0x1316ec[0x0]['tableWidth'],_0x4776b1=_0x1316ec[0x0]['columnWidths'];break;}}_0x114092({'table':_0x3e259f,'tableWidth':_0x1c838f,'columnWidths':_0x3bcc84}),_0x1da7f8['markBlockFormat'](_0x3e259f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x46907e,'columnWidths':_0x4776b1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x472e34){if('formatBlock'!=_0x472e34['type']&&'formatInline'!=_0x472e34['type'])return;const {data:_0x1bea2c}=_0x472e34;if(_0x1bea2c&&'resizeTable'===_0x1bea2c['formatGroupId']){const _0x4230d0='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4230d0)};}}}class Ct extends _0x1fe610{['afterInit'](){const _0x31e5da=this['editor'];_0x31e5da['plugins']['has']('Template')&&_0x31e5da['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x1fe610{['afterInit'](){const _0x3a0683=this['editor'];if(!_0x3a0683['commands']['get']('insertTableOfContents'))return;_0x3a0683['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3cc8ec=_0x3a0683['plugins']['get']('TrackChangesEditing'),_0x382eaa=_0x3a0683['locale'];_0x3cc8ec['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4bc288=>o(_0x382eaa,'ELEMENT_TABLE_OF_CONTENTS',_0x4bc288));}}class Dt extends _0x1fe610{['afterInit'](){const _0x35e187=this['editor'];if(!_0x35e187['plugins']['has']('Title'))return;const _0x5e1cf4=_0x35e187['plugins']['get']('TrackChangesEditing');_0x5e1cf4['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x35e187['locale'],'ELEMENT_TITLE')),_0x35e187['model']['document']['registerPostFixer'](_0x52eb62=>{let _0x19ae8c=!0x1;const _0x19759f=Array['from'](_0x35e187['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x552ac2,data:_0x5042d6}of _0x19759f){const {group:_0x48b520}=_0x5e1cf4['_splitMarkerName'](_0x552ac2);if('suggestion'!==_0x48b520||!_0x5042d6['newRange'])continue;const _0x3bd899=_0x5042d6['newRange'],_0x139fac=_0x3bd899['end']['nodeBefore'];if(!_0x139fac||!_0x139fac['is']('element','title-content'))continue;if(!_0x3bd899['start']['isTouching'](_0x3bd899['end']))continue;const _0x32b751=_0x35e187['model']['schema']['getNearestSelectionRange'](_0x3bd899['end'],'forward');if(_0x32b751&&_0x32b751['isCollapsed']){const _0x1190ee=_0x52eb62['createRange'](_0x3bd899['start'],_0x32b751['start']);_0x1190ee['isEqual'](_0x3bd899)||(_0x52eb62['updateMarker'](_0x552ac2,{'range':_0x1190ee}),_0x19ae8c=!0x0);}_0x19ae8c||(_0x52eb62['removeMarker'](_0x552ac2),_0x19ae8c=!0x0);}return _0x19ae8c;});}}class Nt extends _0x1fe610{['afterInit'](){const _0x1c80d0=this['editor'],_0x42ccb1=_0x1c80d0['plugins']['get']('TrackChangesEditing');_0x1c80d0['plugins']['has']('UndoEditing')&&(_0x42ccb1['enableCommand']('undo'),_0x42ccb1['enableCommand']('redo'));}}class Mt extends _0x1fe610{static get['requires'](){return[jt];}['afterInit'](){const _0x308729=this['editor'];if(!_0x308729['plugins']['has']('TableCaptionEditing'))return;_0x308729['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1fe610{['tableProperties'];['tableCellProperties'];constructor(_0x58120d){super(_0x58120d),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 _0x157348=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3990df of this['tableProperties'])_0x157348['enableCommand'](_0x3990df,(_0x19d4d8,_0x186878)=>{const _0x2c8269=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3990df,[_0x2c8269],this['tableProperties'],'tableProperties',_0x19d4d8,_0x186878);});_0x157348['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x157348['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x157348['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x51c9c7,_0x1188e5)=>this['handleDiscardAction'](this['tableProperties'],_0x51c9c7,_0x1188e5)),_0x157348['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x47a5b2 of this['tableCellProperties'])_0x157348['enableCommand'](_0x47a5b2,(_0x1bbcc5,_0x3a9c18)=>{const _0x272d80=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x47a5b2,_0x272d80,this['tableCellProperties'],'tableCellProperties',_0x1bbcc5,_0x3a9c18);});_0x157348['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x157348['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x157348['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x557c5b,_0x428c32)=>this['handleDiscardAction'](this['tableCellProperties'],_0x557c5b,_0x428c32)),_0x157348['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x157348['descriptionFactory']['registerDescriptionCallback'](_0x567377=>this['handleSuggestionDescription'](_0x567377));}['_handlePropertyChange'](_0x1d5367,_0x37e21b,_0x7a7e75,_0x162024,_0x47feb9,_0x19efd0){const _0x200c0f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x19efd0['batch'],()=>{for(const _0x4a8350 of _0x37e21b){if(this['_getSuggestion'](_0x4a8350,_0x162024))_0x47feb9(_0x19efd0);else{const _0x48a140={};for(const _0x16941b of _0x7a7e75){const _0x4ff752=_0x4a8350['getAttribute'](_0x16941b);void 0x0!==_0x4ff752&&(_0x48a140[_0x16941b]=_0x4ff752);}_0x47feb9(_0x19efd0),_0x200c0f['markBlockFormat'](_0x4a8350,{'commandParams':[_0x48a140]},[],_0x162024);}}});}['handleDiscardAction'](_0x2db960,_0xcc9125,_0x116e67){const _0x141a86=_0xcc9125[0x0]['start']['nodeAfter'],_0x5f59bf=_0x116e67['commandParams'][0x0];this['editor']['model']['change'](_0x2e34f3=>{for(const _0x3c97c3 of _0x2db960)void 0x0!==_0x5f59bf[_0x3c97c3]?_0x2e34f3['setAttribute'](_0x3c97c3,_0x5f59bf[_0x3c97c3],_0x141a86):_0x2e34f3['removeAttribute'](_0x3c97c3,_0x141a86);});}['handleSuggestionDescription'](_0x2d2a2d){if(_0x2d2a2d['data'])switch(_0x2d2a2d['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'](_0x36fbdd,_0x5556dc){const _0x4d0cab=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3dedeb of _0x4d0cab['getSuggestions']({'skipNotAttached':!0x0})){const _0x4efd4f=_0x3dedeb['getContainedElement']();if(_0x3dedeb['subType']===_0x5556dc&&_0x4efd4f===_0x36fbdd)return _0x3dedeb;}return null;}}const m='$elementName';class p extends _0x1fe610{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xe4de3,_0x48bd59,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(_0x1b052d){function _0x46a5d8(_0x4c7d1c){return _0x4c7d1c['map'](_0x5515b5=>String['fromCharCode'](_0x5515b5))['join']('');}super(_0x1b052d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5e09eb,_0x54c369,_0x5e25fc,_0xe128d1)=>{this['_model']['change'](()=>{for(const _0x2dad3c of[..._0xe128d1,..._0x5e25fc])this['_model']['markers']['has'](_0x2dad3c)&&_0x1b052d['editing']['reconvertMarker'](_0x2dad3c);});}),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']=_0x1b052d['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(),_0x1b052d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1b052d['config']['get']('trackChanges.trackFormatChanges'),_0x1b052d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1b052d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1b052d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x46a5d8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x46a5d8([0x34,0x30,0x34,0x38,0x31,0x32,0x34,0x32]);}['init'](){const _0x55fd89=this['editor'],_0x33610b=(_0x103af6,_0x32053b)=>{if('attribute'!=_0x103af6)return'ck-suggestion-marker-'+_0x103af6;const _0x10c7f1=_0x32053b['split']('|')[0x0];return this['_isBlockAttribute'](_0x10c7f1)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x55fd89['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x41e359=>{const {id:_0x4a34c8,type:_0x4dd510,subType:_0x5f48fc}=this['_splitMarkerName'](_0x41e359['markerName']),_0x1dd5c7=['ck-suggestion-marker',_0x33610b(_0x4dd510,_0x5f48fc)];let _0x3155ae=0xbb8;return this['activeMarkers']['includes'](_0x41e359['markerName'])&&(_0x1dd5c7['push']('ck-suggestion-marker--active'),_0x3155ae=0xbc2),'deletion'==_0x4dd510&&(_0x3155ae+=0x5),{'classes':_0x1dd5c7,'attributes':{'data-suggestion':_0x4a34c8},'priority':_0x3155ae};}}),_0x55fd89['conversion']['for']('dataDowncast')['add'](_0x26818d=>{_0x26818d['on']('addMarker:suggestion',(_0x5ba5ae,_0x2684e2,_0x1823b8)=>{if(!_0x1823b8['options']['showSuggestionHighlights'])return;const _0xd76a58=_0x2684e2['item'];if(!_0xd76a58)return;const _0x406398=_0x1823b8['mapper']['toViewElement'](_0xd76a58);_0x55fd89['model']['schema']['isObject'](_0xd76a58)&&_0x406398&&!_0x406398['getCustomProperty']('widget')&&_0x406398['is']('containerElement')&&_0x37cdab(_0x406398,_0x1823b8['writer']);},{'priority':'high'});}),_0x55fd89['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x37b5b2,_0x1b2265)=>{if(!_0x1b2265['options']['showSuggestionHighlights'])return null;const {type:_0x52a943,subType:_0x2bb39b}=this['_splitMarkerName'](_0x37b5b2['markerName']);return{'classes':['ck-suggestion-marker',_0x33610b(_0x52a943,_0x2bb39b)],'priority':0xbb8};}});const _0x49a767=({showActiveMarkers:_0xc53137=!0x0,isAttributeSuggestion:_0x560bc5=!0x1}={})=>(_0xbfc6f8,_0x24d3fd,_0x61746e)=>{if(!_0x24d3fd['item'])return;const {id:_0x3aa54f}=this['_splitMarkerName'](_0x24d3fd['markerName']);if(_0x560bc5){const _0x1f7cef=this['_suggestions']['get'](_0x3aa54f),_0x48a490=this['_getAttributeKey'](_0x1f7cef);if(!this['_isBlockAttribute'](_0x48a490))return;}if(_0x24d3fd['item']['is']('selection'))return void _0x61746e['consumable']['consume'](_0x24d3fd['item'],_0xbfc6f8['name']);const _0x2e48d0=_0x61746e['mapper']['toViewElement'](_0x24d3fd['item']);if(_0x24d3fd['item']['is']('element')&&_0x55fd89['model']['schema']['isBlock'](_0x24d3fd['item'])&&!_0x2e48d0['getCustomProperty']('addHighlight')){_0x61746e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2e48d0),_0x61746e['writer']['setAttribute']('data-suggestion',_0x3aa54f,_0x2e48d0),_0x61746e['mapper']['bindElementToMarker'](_0x2e48d0,_0x24d3fd['markerName']),_0xc53137&&(this['activeMarkers']['includes'](_0x24d3fd['markerName'])?_0x61746e['writer']['addClass']('ck-suggestion-marker--active',_0x2e48d0):_0x61746e['writer']['removeClass']('ck-suggestion-marker--active',_0x2e48d0));for(const _0x22be8f of _0x55fd89['model']['createRangeIn'](_0x24d3fd['item'])['getItems']())_0x61746e['consumable']['consume'](_0x22be8f,_0xbfc6f8['name']);_0x61746e['consumable']['consume'](_0x24d3fd['item'],_0xbfc6f8['name']);}};_0x55fd89['conversion']['for']('dataDowncast')['add'](_0x36685f=>{_0x36685f['on']('addMarker:suggestion:formatBlock',(_0x5b3164,_0x23e0a1,_0x1cb8ca)=>{_0x1cb8ca['options']['showSuggestionHighlights']&&_0x49a767({'showActiveMarkers':!0x1})(_0x5b3164,_0x23e0a1,_0x1cb8ca);},{'priority':'highest'});}),_0x55fd89['conversion']['for']('dataDowncast')['add'](_0x16004d=>{_0x16004d['on']('addMarker:suggestion:attribute',(_0x18bed7,_0x3a2c92,_0x59ba3b)=>{_0x59ba3b['options']['showSuggestionHighlights']&&_0x49a767({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x18bed7,_0x3a2c92,_0x59ba3b);},{'priority':'highest'});}),_0x55fd89['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x22feac,_0x5d5623)=>_0x5d5623['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x22feac['substr'](0xb)}}),_0x55fd89['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x156b0a,{writer:_0x202d0b})=>{let _0x46a401='suggestion:'+_0x156b0a['getAttribute']('suggestion-type')+':'+_0x156b0a['getAttribute']('id');return _0x156b0a['getAttribute']('marker-count')&&(_0x46a401+=':'+_0x156b0a['getAttribute']('marker-count')),_0x202d0b['createElement']('$marker',{'data-name':_0x46a401});}}),_0x55fd89['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x55fd89['conversion']['for']('editingDowncast')['add'](_0x7fab4f=>{_0x7fab4f['on']('addMarker:suggestion:formatBlock',_0x49a767(),{'priority':'high'});}),_0x55fd89['conversion']['for']('editingDowncast')['add'](_0x1e2d9b=>{_0x1e2d9b['on']('addMarker:suggestion:attribute',_0x49a767({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x55fd89['conversion']['for']('editingDowncast')['add'](_0x8204c8=>{_0x8204c8['on']('removeMarker:suggestion:formatBlock',(_0x2ecc87,_0x4b5f66,_0x59650e)=>{const _0x340e0d=_0x59650e['mapper']['markerNameToElements'](_0x4b5f66['markerName']);if(_0x340e0d){for(const _0x56a325 of _0x340e0d)_0x56a325['getCustomProperty']('addHighlight')||(_0x59650e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x56a325),_0x59650e['writer']['removeAttribute']('data-suggestion',_0x56a325),_0x59650e['mapper']['unbindElementFromMarkerName'](_0x56a325,_0x4b5f66['markerName']));}},{'priority':'high'});}),_0x55fd89['conversion']['for']('editingDowncast')['add'](_0x1c97b0=>{_0x1c97b0['on']('removeMarker:suggestion:attribute',(_0x154d1c,_0x1ccb21,_0x95031d)=>{const _0x49e3f6=_0x95031d['mapper']['markerNameToElements'](_0x1ccb21['markerName']);if(!_0x49e3f6)return;const {id:_0x433620}=this['_splitMarkerName'](_0x1ccb21['markerName']),_0x199fe8=this['_suggestions']['get'](_0x433620),_0x538716=this['_getAttributeKey'](_0x199fe8);if(this['_isBlockAttribute'](_0x538716)){for(const _0x5b368c of _0x49e3f6)_0x5b368c['getCustomProperty']('addHighlight')||(_0x95031d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5b368c),_0x95031d['writer']['removeAttribute']('data-suggestion',_0x5b368c),_0x95031d['mapper']['unbindElementFromMarkerName'](_0x5b368c,_0x1ccb21['markerName']));}},{'priority':'high'});}),_0x55fd89['model']['document']['registerPostFixer'](_0x5cdfd1=>{let _0x4f4339=!0x1;const _0xd9fb96=Array['from'](_0x55fd89['model']['document']['differ']['getChangedMarkers']()),_0x510a9b=new Set();for(const {name:_0x10d880,data:_0x10f776}of _0xd9fb96){const {group:_0xfbf2e3,type:_0x340b60,subType:_0x4783eb,id:_0x42a248}=this['_splitMarkerName'](_0x10d880);if('suggestion'!==_0xfbf2e3)continue;const _0x34ac01=this['_suggestions']['get'](_0x42a248);if(null!=_0x10f776['newRange']){'formatInline'==_0x340b60&&(_0x4f4339=_0x4f4339||Et(_0x10f776['newRange'],_0x10d880,_0x5cdfd1,_0x55fd89['model']['schema']));const _0x5dea6c='attribute'==_0x340b60&&this['_isBlockAttribute'](_0x4783eb['split']('|')[0x0]);if(_0x10f776['newRange']['isCollapsed']||'$graveyard'==_0x10f776['newRange']['root']['rootName']||'formatBlock'==_0x340b60&&!Ut(_0x10f776['newRange'])||_0x5dea6c&&!Ut(_0x10f776['newRange'])||'deletion'==_0x340b60&&!(!Tt(_0x516de5=_0x10f776['newRange'])&&!function(_0x30a1b2){return _0x30a1b2['start']['parent']==_0x30a1b2['end']['nodeBefore']&&_0x30a1b2['start']['isAtEnd'];}(_0x516de5)))_0x5cdfd1['removeMarker'](_0x10d880),_0x4f4339=!0x0;else{if(!_0x34ac01||!_0x34ac01['isInContent'])continue;_0x510a9b['add'](_0x34ac01);}}}var _0x516de5;return _0x510a9b['size']>0x0&&(_0x4f4339=!!this['_joinWithAdjacentSuggestions'](_0x510a9b)||_0x4f4339),_0x4f4339;}),_0x55fd89['model']['document']['registerPostFixer'](_0x321842=>{let _0x26d879=!0x1;for(const _0x1cd794 of _0x55fd89['model']['document']['differ']['getChanges']())if('insert'==_0x1cd794['type'])for(const _0x39822d of this['_suggestions']['values']()){if(_0x39822d['isMultiRange']||!_0x39822d['isInContent'])continue;const _0x44ddfe='formatBlock'==_0x39822d['type'],_0x2cba20=this['_getAttributeKey'](_0x39822d),_0x54a354=_0x2cba20&&this['_isBlockAttribute'](_0x2cba20);if(!_0x44ddfe&&!_0x54a354)continue;const _0xba1064=_0x39822d['getFirstRange']();if(_0xba1064['start']['parent']!=_0xba1064['end']['parent']&&!_0xba1064['end']['isAtEnd']){const _0x4fdd61=_0x55fd89['model']['createPositionAt'](_0xba1064['start']['nodeAfter'],'end'),_0x39779b=_0x55fd89['model']['createRange'](_0xba1064['start'],_0x4fdd61);_0x321842['updateMarker'](_0x39822d['getFirstMarker'](),{'range':_0x39779b}),_0x26d879=!0x0;}}return _0x26d879;}),_0x55fd89['model']['document']['registerPostFixer'](_0x9afb6b=>this['_processAttributeChanges'](_0x9afb6b)),_0x55fd89['model']['document']['registerPostFixer'](_0x2b2646=>!_0x2b2646['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2b2646)),_0x55fd89['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x55fd89['model']['document']['on']('change:data',(_0x389255,_0xc23a63)=>{if(!_0xc23a63['isLocal']||_0xc23a63['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2e2c8a=_0x55fd89['model']['document']['differ']['getChanges']();if(0x0==_0x2e2c8a['length'])return;const _0x5be75a=[],_0x5628fe=_0x2e2c8a['filter'](_0x55363a=>'attribute'==_0x55363a['type']),_0x4a3cba=_0x2e2c8a['filter'](_0x1c2f98=>'insert'==_0x1c2f98['type']&&'$text'!=_0x1c2f98['name']);for(const _0x5f018b of _0x5628fe)this['_isRegisteredAttribute'](_0x5f018b['attributeKey'])&&_0x5be75a['push']({'key':_0x5f018b['attributeKey'],'newValue':_0x5f018b['attributeNewValue'],'oldValue':_0x5f018b['attributeOldValue'],'range':Ot(_0x5f018b['range'],_0x55fd89['model'])});for(const _0x2f1305 of _0x4a3cba){if('rename'!=_0x2f1305['action']&&'refresh'!=_0x2f1305['action'])continue;const _0x50245e=Gt(_0x2f1305['position']['nodeAfter'],_0x55fd89['model']),_0xf59abc=_0x2f1305['before'];'rename'==_0x2f1305['action']&&_0x5be75a['push']({'key':m,'newValue':_0x2f1305['name'],'oldValue':_0xf59abc['name'],'range':_0x50245e});for(const [_0x10d484,_0x13dac4]of _0xf59abc['attributes']){if(!this['_isRegisteredAttribute'](_0x10d484))continue;const _0x3f9686=_0x2f1305['attributes']['get'](_0x10d484);_0x13dac4!==_0x3f9686&&_0x5be75a['push']({'key':_0x10d484,'newValue':_0x3f9686,'oldValue':_0x13dac4,'range':_0x50245e});}for(const [_0x4ec1de,_0x1a0219]of _0x2f1305['attributes'])this['_isRegisteredAttribute'](_0x4ec1de)&&(_0xf59abc['attributes']['has'](_0x4ec1de)||_0x5be75a['push']({'key':_0x4ec1de,'newValue':_0x1a0219,'oldValue':null,'range':_0x50245e}));}0x0!=_0x5be75a['length']&&_0x55fd89['model']['enqueueChange'](_0xc23a63,_0x2c3df3=>{const _0x17928a=_0x3acd04();for(const {range:_0x46882c,key:_0x17d872,oldValue:_0x5557f8,newValue:_0x594a7f}of _0x5be75a)this['markAttributeChange'](_0x46882c,_0x17d872,_0x5557f8,_0x594a7f,{'groupId':_0x17928a});this['_reduceExistingSuggestions'](_0x2c3df3,_0x5be75a);});},{'priority':'lowest'}),_0x55fd89['model']['markers']['on']('update:suggestion',(_0x70ef9a,_0x1d82a3,_0x520e64)=>{if(null==_0x520e64){const {id:_0x3c7d7a}=this['_splitMarkerName'](_0x1d82a3['name']),_0x5ea6cc=this['_suggestions']['get'](_0x3c7d7a);_0x5ea6cc&&_0x5ea6cc['addMarkerName'](_0x1d82a3['name']);}}),_0x55fd89['model']['document']['on']('change:data',()=>{const _0x57bf97=Array['from'](_0x55fd89['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1fd052=>'suggestion'===this['_splitMarkerName'](_0x1fd052['name'])['group']);if(0x0===_0x57bf97['length'])return;_0x57bf97['sort']((_0x28e044,_0x595230)=>{const _0x360bb8=_0x28e044['data']['oldRange'],_0x560315=_0x595230['data']['oldRange'];return null===_0x360bb8&&null===_0x560315?0x0:null===_0x360bb8&&null!==_0x560315?-0x1:null!==_0x360bb8&&null===_0x560315?0x1:_0x360bb8['start']['isBefore'](_0x560315['start'])?-0x1:0x1;});const _0x292040=new Set(),_0x2c1017=new Set();for(const {name:_0x192527,data:_0x5b6ec7}of _0x57bf97){const {id:_0x1fca62}=this['_splitMarkerName'](_0x192527);if(null===_0x5b6ec7['oldRange']){const _0x224120=this['_handleNewSuggestionMarker'](_0x192527);_0x2c1017['add'](_0x224120);}else{const _0xc5e53d=this['_suggestions']['get'](_0x1fca62);null!==_0x5b6ec7['newRange']||_0xc5e53d['isInContent']?(_0x292040['add'](_0xc5e53d['head']),_0x2c1017['add'](_0xc5e53d)):this['_removeSuggestion'](_0xc5e53d);}}_0x2c1017['size']>0x0&&this['_refreshSuggestionsChain'](_0x2c1017);for(const _0x2b92f7 of _0x292040)this['fire']('suggestionChanged',_0x2b92f7);}),_0x55fd89['model']['on']('applyOperation',(_0x2a6c5e,_0x52edd0)=>{const _0x291478=_0x52edd0[0x0];if(!this['_suggestions']['size'])return;if(!_0x291478['isDocumentOperation'])return;if(_0x291478['batch']['isUndo']||!_0x291478['batch']['isLocal'])return;let _0x2bfe4a,_0x2186f3;switch(_0x291478['type']){case'insert':_0x2bfe4a=_0x55fd89['model']['createPositionAt'](_0x291478['position']),_0x2186f3=_0x2bfe4a['getShiftedBy'](_0x291478['howMany']);break;case'split':_0x2bfe4a=_0x55fd89['model']['createPositionAt'](_0x291478['splitPosition']),_0x2186f3=_0x55fd89['model']['createPositionAt'](_0x291478['moveTargetPosition']);break;case'move':_0x2bfe4a=_0x55fd89['model']['createPositionAt'](_0x291478['targetPosition']),_0x2186f3=_0x2bfe4a['getShiftedBy'](_0x291478['howMany']);break;default:return;}const _0x13081e=_0x55fd89['model']['createRange'](_0x2bfe4a,_0x2186f3);_0x55fd89['model']['change'](()=>{for(const {suggestion:_0x2b7332,meta:_0x1bce5c}of this['_findSuggestions'](_0x13081e)){if(_0x2b7332['isMultiRange'])continue;if('formatInline'==_0x2b7332['type'])continue;const _0x1529be=this['_getAttributeKey'](_0x2b7332);if(_0x1529be&&this['_isBlockAttribute'](_0x1529be)&&'split'!=_0x291478['type'])continue;const _0x5c061c=_0x2b7332['data']&&_0x2b7332['data']['multipleBlocks'];('formatBlock'!=_0x2b7332['type']||'split'==_0x291478['type']&&!_0x5c061c)&&(_0x1bce5c['containsRangeInObject']||'insertion'==_0x2b7332['type']&&_0x1bce5c['isOwn']||_0x2b7332['getFirstRange']()['containsRange'](_0x13081e)&&this['_breakSuggestionMarker'](_0x2b7332,_0x2bfe4a,_0x2186f3));}});},{'priority':'lowest'}),_0x55fd89['model']['on']('deleteContent',(_0x380dd4,_0x525983)=>{const _0x36624a=_0x525983[0x0],_0x459ca6=_0x525983[0x1];if(_0x459ca6&&_0x459ca6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x36624a['isCollapsed'])return;const _0x37237c=_0x55fd89['model']['schema'],{start:_0x2475de,end:_0x2d7e93}=_0x36624a['getFirstRange'](),_0xd79cbd=_0x2475de['nodeAfter']&&_0x37237c['isLimit'](_0x2475de['nodeAfter'])?null:_0x37237c['getNearestSelectionRange'](_0x2475de,'forward'),_0x3bace7=_0x2d7e93['nodeBefore']&&_0x37237c['isLimit'](_0x2d7e93['nodeBefore'])?null:_0x37237c['getNearestSelectionRange'](_0x2d7e93,'backward'),_0x59b5b9=_0x55fd89['model']['createRange'](_0xd79cbd?_0xd79cbd['start']:_0x2475de,_0x3bace7?_0x3bace7['end']:_0x2d7e93);_0x55fd89['model']['change'](_0xd58d89=>{this['markDeletion'](_0x59b5b9);const _0x43868f=_0x55fd89['model']['schema']['getNearestSelectionRange'](_0x59b5b9['start']);_0x36624a['is']('documentSelection')?_0xd58d89['setSelection'](_0x43868f):_0x36624a['setTo'](_0x43868f);}),_0x380dd4['stop']();},{'priority':_0x676e80['normal']+0xa}),_0x55fd89['model']['on']('insertContent',(_0x5b9b68,_0x25d7d4)=>{const _0x5175dd=_0x25d7d4[_0x25d7d4['length']-0x1];_0x5175dd&&_0x5175dd['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x55fd89['model']['change'](()=>{let _0x1b2319=_0x55fd89['model']['insertContent'](_0x25d7d4[0x0],_0x25d7d4[0x1],_0x25d7d4[0x2],{'forceDefaultExecution':!0x0});if(!_0x1b2319)return;_0x5b9b68['return']=_0x1b2319['clone']();const _0x44c002=_0x1b2319['end']['nodeBefore'],_0x40301f=_0x55fd89['model']['schema'];_0x44c002&&_0x40301f['isBlock'](_0x44c002)&&!_0x40301f['isObject'](_0x44c002)&&(_0x1b2319=_0x55fd89['model']['createRange'](_0x1b2319['start'],_0x55fd89['model']['createPositionAt'](_0x44c002,'end'))),this['markInsertion'](_0x1b2319);}),_0x5b9b68['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3af8a6=new $(_0x55fd89,this['_suggestions']);_0x55fd89['commands']['add']('acceptSuggestion',_0x3af8a6),this['enableCommand']('acceptSuggestion');const _0x3e860b=new B(_0x55fd89,this['_suggestions']);_0x55fd89['commands']['add']('discardSuggestion',_0x3e860b),this['enableCommand']('discardSuggestion'),_0x55fd89['commands']['add']('acceptAllSuggestions',new x(_0x55fd89,_0x3af8a6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x55fd89['commands']['add']('discardAllSuggestions',new x(_0x55fd89,_0x3e860b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x55fd89['commands']['add']('acceptSelectedSuggestions',new R(_0x55fd89,_0x3af8a6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x55fd89['commands']['add']('discardSelectedSuggestions',new R(_0x55fd89,_0x3e860b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2671fc=_0x55fd89['plugins']['get']('CommentsRepository');this['listenTo'](_0x2671fc,'addComment',(_0x20175f,{threadId:_0x1ed9d0})=>{const _0x14270d=this['_suggestions']['get'](_0x1ed9d0);_0x14270d&&_0x14270d['commentThread']&&0x1===_0x14270d['commentThread']['length']&&this['_updateSuggestionData'](_0x1ed9d0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2671fc,'removeComment',(_0x314054,{threadId:_0x4eec1a})=>{const _0x428af5=this['_suggestions']['get'](_0x4eec1a);_0x428af5&&_0x428af5['commentThread']&&!_0x428af5['commentThread']['length']&&this['_updateSuggestionData'](_0x4eec1a,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x24078b){if(this['_adapter'])throw new _0x1a825e('track-changes-adapter-already-set',this);this['_adapter']=_0x24078b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x394b1e=!0x1,toJSON:_0x4ac0f3=!0x1}={}){const _0x518a48=[];for(const _0x39430a of this['_suggestions']['values']())_0x394b1e&&!_0x39430a['isInContent']||_0x518a48['push'](_0x39430a);return _0x4ac0f3?_0x518a48['map'](_0x11c48f=>_0x11c48f['toJSON']()):_0x518a48;}['getSuggestion'](_0x28b208){const _0x4acecd=this['_suggestions']['get'](_0x28b208);if(!_0x4acecd)throw new _0x1a825e('track-changes-suggestion-not-found',this);return _0x4acecd;}['hasSuggestion'](_0x1ae686){return this['_suggestions']['has'](_0x1ae686);}['addSuggestionData'](_0x3cc662){const {authorId:_0x1cbd70,id:_0x1792fe,attributes:_0x34b0aa}=_0x3cc662,[_0x333802,_0x587ce6]=_0x3cc662['type']['split'](':'),_0x529369=this['_suggestions']['get'](_0x1792fe)||this['_createSuggestion'](_0x333802,_0x587ce6,_0x1792fe,_0x1cbd70,_0x34b0aa);if(this['_addThreadToSuggestion'](_0x529369),this['_checkSuggestionCorrectness'](_0x529369,_0x333802,_0x587ce6||null,_0x1cbd70),_0x529369['createdAt']=_0x3cc662['createdAt'],_0x529369['_isDataLoaded']=!0x0,_0x34b0aa&&_0x34b0aa['@external']){const _0x2d9a0e=_0x34b0aa['@external'],_0x55b595=this['_getExternalAuthor'](_0x2d9a0e['authorName']);_0x529369['authoredAt']=_0x2d9a0e['createdAt'],_0x529369['author']=_0x55b595,_0x529369['isExternal']=!0x0;}else _0x529369['authoredAt']=_0x3cc662['createdAt'];switch(_0x3cc662['data']&&(_0x529369['data']=_0x3cc662['data']),_0x3cc662['attributes']&&(_0x529369['attributes']=_0x3cc662['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x529369['_saved']=!0x0),this['_suggestionState']['get'](_0x529369)){case'notReady':this['_suggestionState']['set'](_0x529369,'dataReady');break;case'markerReady':_0x529369['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x529369])),this['_refreshSuggestionsChain'](new Set([_0x529369])),this['_suggestionState']['set'](_0x529369,'ready'),this['fire']('suggestionLoaded',_0x529369)):this['_suggestionState']['set'](_0x529369,'removed');}return _0x529369;}['acceptSuggestion'](_0x1ae95c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ed429 of _0x1ae95c['getAllAdjacentSuggestions']())_0x5ed429['accept']();});});}['discardSuggestion'](_0x44b7a8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x508fcc of _0x44b7a8['getAllAdjacentSuggestions']())_0x508fcc['discard']();});});}['enableCommand'](_0x1c1bb0,_0x1edc04){const _0x115c4f=this['editor']['commands']['get'](_0x1c1bb0);if(!_0x115c4f)throw new _0x1a825e('track-changes-command-not-found',this,{'commandName':_0x1c1bb0});if(this['_enabledCommands']['has'](_0x115c4f))throw new _0x1a825e('track-changes-enable-command-twice',this,{'commandName':_0x1c1bb0});this['_enabledCommands']['add'](_0x115c4f),_0x1edc04&&_0x115c4f['on']('execute',(_0x2b1417,_0x32eaf8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x32eaf8['length']>0x0&&_0x32eaf8[_0x32eaf8['length']-0x1]&&_0x32eaf8[_0x32eaf8['length']-0x1]['forceDefaultExecution']?_0x32eaf8['pop']():(_0x2b1417['return']=_0x1edc04((..._0x2e1654)=>_0x115c4f['execute'](..._0x2e1654,{'forceDefaultExecution':!0x0}),..._0x32eaf8),_0x2b1417['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4acd82){let _0x436c88,_0x21ffa6;const _0x2b3113=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x436c88=_0x4acd82();}catch(_0x3c60d7){_0x21ffa6=_0x3c60d7;}return _0x2b3113||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x21ffa6&&_0x1a825e['rethrowUnexpectedError'](_0x21ffa6,this),_0x436c88;}['markInsertion'](_0x596a79,_0x1561e3=null,_0x10b811={}){if(_0x596a79['isCollapsed'])return null;const _0x5d10e4=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1ba0ab,meta:_0x1f7a91}of this['_findSuggestions'](_0x596a79,'insertion'))if(_0x1f7a91['isOwn']){if(!_0x1f7a91['isNextTo']){if(_0x1f7a91['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x1ba0ab,_0x10b811))continue;return _0x1ba0ab;}if(Lt(_0x1ba0ab,_0x10b811))return _0x1ba0ab;this['_breakSuggestionMarker'](_0x1ba0ab,_0x596a79['start'],_0x596a79['end']);break;}if(_0x1561e3==_0x1ba0ab['subType']&&Lt(_0x1ba0ab,_0x10b811)){const _0x448c85=_0x1ba0ab['getFirstRange']();return _0x448c85['start']['isEqual'](_0x596a79['end'])?this['_setSuggestionRange'](_0x1ba0ab,this['_model']['createRange'](_0x596a79['start'],_0x448c85['end'])):this['_setSuggestionRange'](_0x1ba0ab,this['_model']['createRange'](_0x448c85['start'],_0x596a79['end'])),_0x1ba0ab;}}const _0x2aceb7=_0x3acd04(),_0x2618d9=_0x5d10e4['id'],_0x3e7270=_0x1561e3?'insertion:'+_0x1561e3:'insertion',_0x1894ac=this['_setSuggestionData']({'id':_0x2aceb7,'type':_0x3e7270,'createdAt':new Date(),'authorId':_0x2618d9,'attributes':_0x10b811});return this['_addSuggestionMarker'](_0x3e7270,_0x2aceb7,_0x2618d9,_0x596a79),_0x1894ac;}['markMultiRangeInsertion'](_0x3b1295,_0x4c1176='multi',_0x1313bc={}){const _0x269955=this['editor']['plugins']['get']('Users')['me'],_0x2e9790=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4c1176,'join');for(const _0x241feb of this['getSuggestions']())if(_0x241feb['author']['id']==_0x269955['id']&&'insertion'==_0x241feb['type']&&_0x241feb['subType']==_0x4c1176&&Lt(_0x241feb,_0x1313bc)&&(_0x2e9790(_0x241feb['getRanges'](),_0x3b1295)||_0x2e9790(_0x3b1295,_0x241feb['getRanges']()))){for(const _0x343a0c of _0x3b1295)_0x241feb['addRange'](_0x343a0c);return _0x241feb;}for(const {suggestion:_0x267f46,meta:_0x2a8deb}of this['_findSuggestions'](_0x3b1295,'insertion')){if(!_0x2a8deb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2a8deb['containsRangeInObject'])continue;if(!Lt(_0x267f46,_0x1313bc))continue;let _0x11e155=!0x0;for(const _0x11b70f of _0x267f46['getRanges']())for(const _0x55692b of _0x3b1295)if(!_0x11b70f['containsRange'](_0x55692b)){_0x11e155=!0x1;break;}if(_0x11e155)return _0x267f46;}const _0x2890f2=_0x3acd04(),_0x266a99=_0x269955['id'],_0x561d84='insertion:'+_0x4c1176,_0x372bf6=this['_setSuggestionData']({'id':_0x2890f2,'type':_0x561d84,'createdAt':new Date(),'authorId':_0x266a99,'attributes':_0x1313bc});for(const _0xc9b825 of _0x3b1295)this['_addSuggestionMarker'](_0x561d84,_0x2890f2,_0x266a99,_0xc9b825,u['getMultiRangeId']());return _0x372bf6;}['markInlineFormat'](_0x4916e6,_0x19ed7d,_0x2d4220=null,_0x48130d={}){if(_0x2d4220=_0x2d4220||Vt(_0x19ed7d),_0x4916e6['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3c6a49=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2d4220,'accept');return this['forceDefaultExecution'](()=>_0x3c6a49([_0x4916e6],_0x19ed7d,_0x48130d)),null;}const _0x4537c9=this['editor']['plugins']['get']('Users')['me'],_0x461d70=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x27e156,meta:_0x28ecdd}of this['_findSuggestions'](_0x4916e6,'insertion'))_0x28ecdd['isOwn']&&!_0x28ecdd['isInsideObject']&&_0x461d70['push'](..._0x27e156['getRanges']());}const _0x576185=function(_0x398a9d,_0x34aa27){const _0x55919b=[];for(const _0x2b9ab2 of _0x34aa27){const _0x5dca81=_0x398a9d['getIntersection'](_0x2b9ab2);_0x5dca81&&_0x55919b['push'](_0x5dca81);}return _0x55919b;}(_0x4916e6,_0x461d70),_0x5652f9=function(_0x547b1e,_0x548f8a){const _0x16dca3=[_0x547b1e];for(const _0x36d881 of _0x548f8a){let _0x3e1ade=0x0;for(;_0x3e1ade<_0x16dca3['length'];){const _0x3dd260=_0x16dca3[_0x3e1ade]['getDifference'](_0x36d881);_0x16dca3['splice'](_0x3e1ade,0x1,..._0x3dd260),_0x3e1ade+=_0x3dd260['length'];}}return _0x16dca3;}(_0x4916e6,_0x461d70);_0x576185['length']&&this['_model']['change'](()=>{for(const _0xd05f97 of _0x576185){const _0x68dd1b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2d4220,'accept');this['forceDefaultExecution'](()=>_0x68dd1b([_0xd05f97],_0x19ed7d,_0x48130d));}});for(const _0x47f25e of _0x5652f9){let _0x1db91b=null,_0x4b646e=_0x47f25e['start'],_0x26de5c=_0x47f25e['end'];for(const {suggestion:_0x284e44,meta:_0x17d7a0}of this['_findSuggestions'](_0x47f25e,'formatInline')){if(!_0x17d7a0['isOwn'])continue;if(_0x284e44['subType']!=_0x2d4220)continue;if(!Lt(_0x284e44,_0x48130d))continue;const _0x580434=_0x284e44['getFirstRange']();if(_0x580434['containsRange'](_0x47f25e,!0x0))return null;_0x4b646e=_0x4b646e['isBefore'](_0x580434['start'])?_0x4b646e:_0x580434['start'],_0x26de5c=_0x26de5c['isAfter'](_0x580434['end'])?_0x26de5c:_0x580434['end'],_0x1db91b?_0x580434['start']['isBefore'](_0x1db91b['getFirstRange']()['start'])?(_0x1db91b['removeMarkers'](),_0x1db91b=_0x284e44):_0x284e44['removeMarkers']():_0x1db91b=_0x284e44;}const _0x3a8665=this['_model']['createRange'](_0x4b646e,_0x26de5c);if(_0x1db91b)this['_setSuggestionRange'](_0x1db91b,_0x3a8665);else{const _0x219e9d=_0x3acd04(),_0x4566ef=_0x4537c9['id'];this['_setSuggestionData']({'id':_0x219e9d,'type':'formatInline:'+_0x2d4220,'data':_0x19ed7d,'createdAt':new Date(),'authorId':_0x4566ef,'attributes':_0x48130d}),this['_addSuggestionMarker']('formatInline:'+_0x2d4220,_0x219e9d,_0x4566ef,_0x3a8665);}}return null;}['markBlockFormat'](_0x3230a0,_0x3fb615,_0x275e02=[],_0x33f1d6=null,_0x4f082b={}){_0x3fb615['formatGroupId']||(_0x3fb615['formatGroupId']=_0x3fb615['commandName']),_0x3fb615['multipleBlocks']=_0x3230a0['is']('range'),_0x33f1d6=_0x33f1d6||Vt(_0x3fb615);const _0x3b24da=_0x275e02['map'](_0x56dbd9=>Gt(_0x56dbd9,this['_model'])),_0x32bebf=_0x3230a0['is']('range')?_0x3230a0:Gt(_0x3230a0,this['_model']);if('never'===this['_trackFormatChanges']){const _0x319665=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33f1d6,'accept');return this['forceDefaultExecution'](()=>_0x319665([_0x32bebf],_0x3fb615,_0x4f082b)),null;}_0x3b24da['push'](_0x32bebf);let _0x5257f8=!0x0;for(const _0x4516d4 of _0x3b24da)if(!this['_rangeIsInLocalUserInsertion'](_0x4516d4)){_0x5257f8=!0x1;break;}if(_0x5257f8&&'always'!==this['_trackFormatChanges']){const _0x5e710a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33f1d6,'accept');return this['forceDefaultExecution'](()=>_0x5e710a([_0x32bebf],_0x3fb615,_0x4f082b)),null;}let _0x37e56f=null,_0x5c4183=_0x32bebf['start'],_0x3047ee=_0x32bebf['end'];for(const {suggestion:_0x246d34,meta:_0x3193ad}of this['_findSuggestions'](_0x32bebf,'formatBlock')){if(!_0x3193ad['isOwn'])continue;if(_0x3193ad['isNextTo']||_0x3193ad['containsRangeInObject']||_0x3193ad['isInsideObject'])continue;if(_0x246d34['data']['formatGroupId']!=_0x3fb615['formatGroupId'])continue;if(!Lt(_0x246d34,_0x4f082b))continue;const _0x208257=_0x246d34['getFirstRange']();if(_0x246d34['subType']==_0x33f1d6){if(_0x208257['containsRange'](_0x32bebf,!0x0))return null;_0x5c4183=_0x5c4183['isBefore'](_0x208257['start'])?_0x5c4183:_0x208257['start'],_0x3047ee=_0x3047ee['isAfter'](_0x208257['end'])?_0x3047ee:_0x208257['end'],_0x37e56f?_0x208257['start']['isBefore'](_0x37e56f['getFirstRange']()['start'])?(_0x37e56f['removeMarkers'](),_0x37e56f=_0x246d34):_0x246d34['removeMarkers']():_0x37e56f=_0x246d34;}else{const _0x181ac7=_0x32bebf['getIntersection'](_0x208257);this['_cutOutSuggestionMarker'](_0x246d34,_0x181ac7);}}const _0x49efeb=this['editor']['plugins']['get']('Users')['me'],_0x181760=_0x3acd04(),_0x460121=_0x49efeb['id'];if(_0x37e56f)return this['_setSuggestionRange'](_0x37e56f,this['_model']['createRange'](_0x5c4183,_0x3047ee)),_0x37e56f;{const _0x2d5e05=this['_setSuggestionData']({'id':_0x181760,'type':'formatBlock:'+_0x33f1d6,'data':_0x3fb615,'createdAt':new Date(),'authorId':_0x460121,'attributes':_0x4f082b});return this['_addSuggestionMarker']('formatBlock:'+_0x33f1d6,_0x181760,_0x460121,this['_model']['createRange'](_0x5c4183,_0x3047ee)),_0x2d5e05;}}['markMultiRangeBlockFormat'](_0x26d0d8,_0x4392f3,_0x1745f9=[],_0x4f7c6d=null,_0x47c886={}){_0x4392f3['formatGroupId']||(_0x4392f3['formatGroupId']=_0x4392f3['commandName']);const _0x4b356e=_0x26d0d8[0x0];_0x4392f3['multipleBlocks']=_0x4b356e['is']('range'),_0x4f7c6d=_0x4f7c6d||Vt(_0x4392f3);const _0x1b3050=_0x1745f9['map'](_0x4111f1=>Gt(_0x4111f1,this['_model'])),_0x253e90=_0x4b356e['is']('range')?_0x26d0d8:_0x26d0d8['map'](_0xed04f5=>Gt(_0xed04f5,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1e3baf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f7c6d,'accept');return this['forceDefaultExecution'](()=>_0x1e3baf(_0x253e90,_0x4392f3,_0x47c886)),null;}_0x1b3050['push'](..._0x253e90);let _0x54fca1=!0x0;for(const _0x46af21 of _0x1b3050)if(!this['_rangeIsInLocalUserInsertion'](_0x46af21)){_0x54fca1=!0x1;break;}if(_0x54fca1&&'always'!==this['_trackFormatChanges']){const _0x468ea6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f7c6d,'accept');return this['forceDefaultExecution'](()=>_0x468ea6(_0x253e90,_0x4392f3,_0x47c886)),null;}const _0x31b239=this['editor']['plugins']['get']('Users')['me'];for(const _0x4fbafa of this['getSuggestions']()){if(_0x4fbafa['author']['id']!=_0x31b239['id'])continue;if('formatBlock'!=_0x4fbafa['type']||_0x4fbafa['data']['formatGroupId']!=_0x4392f3['formatGroupId'])continue;if(!Lt(_0x4fbafa,_0x47c886))continue;const _0x337935=_0x4fbafa['subType']==_0x4f7c6d;for(let _0x2c1808=0x0;_0x2c1808<_0x253e90['length'];_0x2c1808++){const _0x31d928=_0x253e90[_0x2c1808];for(const _0x5333b4 of _0x4fbafa['getMarkers']()){const _0x2b751e=_0x5333b4['getRange']();if(_0x31d928['isEqual'](_0x2b751e)){_0x337935?(_0x253e90['splice'](_0x2c1808,0x1),_0x2c1808--):_0x4fbafa['removeMarker'](_0x5333b4['name']);break;}}}}if(0x0==_0x253e90['length'])return null;const _0x3ec029=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f7c6d,'join');for(const _0x221c83 of this['getSuggestions']())if(_0x221c83['author']['id']==_0x31b239['id']&&'formatBlock'==_0x221c83['type']&&_0x221c83['data']['formatGroupId']==_0x4392f3['formatGroupId']&&_0x221c83['subType']==_0x4f7c6d&&Lt(_0x221c83,_0x47c886)&&(_0x3ec029(_0x221c83['getRanges'](),_0x253e90)||_0x3ec029(_0x253e90,_0x221c83['getRanges']()))){for(const _0x2b4d64 of _0x253e90)_0x221c83['addRange'](_0x2b4d64);return _0x221c83;}const _0x368ced=_0x3acd04(),_0xf6af6=_0x31b239['id'],_0x552d2a='formatBlock:'+_0x4f7c6d,_0x49fc8d=this['_setSuggestionData']({'id':_0x368ced,'type':_0x552d2a,'data':_0x4392f3,'createdAt':new Date(),'authorId':_0xf6af6,'attributes':_0x47c886});for(const _0x57e84d of _0x253e90)this['_addSuggestionMarker'](_0x552d2a,_0x368ced,_0xf6af6,_0x57e84d,u['getMultiRangeId']());return _0x49fc8d;}['markDeletion'](_0x47620f,_0x4ec685=null,_0x4f94a3={}){if(_0x47620f['isCollapsed'])return null;const _0x23b31e=this['editor']['plugins']['get']('Users')['me'],_0x4cbf5b=new _0x59eb41(_0x47620f['start'],_0x47620f['end']);for(const {suggestion:_0x220436,meta:_0x19d089}of this['_findSuggestions'](_0x4cbf5b,'insertion'))if(_0x19d089['isOwn']&&!_0x19d089['isNextTo']){if(_0x220436['isMultiRange']){const _0x2a5ca7=_0x220436['getRanges']()['filter'](_0x537cf5=>'$graveyard'!=_0x537cf5['root']['rootName']);_0x2a5ca7['every'](_0x5737c0=>_0x4cbf5b['containsRange'](_0x5737c0,!0x0))&&_0x220436['discard']();if(_0x2a5ca7['some'](_0x247dc3=>_0x247dc3['containsRange'](_0x4cbf5b,!0x0))){const _0x1ad09a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4ec685,'accept');return this['forceDefaultExecution'](()=>_0x1ad09a([_0x4cbf5b],null,_0x4f94a3)),null;}}else{const _0x17aff0=_0x4cbf5b['getIntersection'](_0x220436['getFirstRange']());null!==_0x17aff0&&_0x220436['_onDiscard']([_0x17aff0],null,_0x4f94a3);}}if(_0x4cbf5b['detach'](),_0x4cbf5b['isCollapsed']||'$graveyard'==_0x4cbf5b['root']['rootName'])return null;let _0x53f996=null,_0x2bb6fa=_0x4cbf5b['start'],_0x4328fa=_0x4cbf5b['end'];const _0x5ed337=this['_findSuggestions'](_0x4cbf5b,'deletion');for(const {suggestion:_0x1a2ee9,meta:_0x368d08}of _0x5ed337){const _0x405c48=this['_model']['createRange'](_0x2bb6fa,_0x4328fa);if(_0x368d08['isOwn']&&(this['_mergeNestedSuggestions']||!_0x368d08['containsRangeInObject']&&!_0x368d08['isInsideObject'])){if(_0x1a2ee9['isMultiRange']){if(!Lt(_0x1a2ee9,_0x4f94a3))continue;let _0x459785=!0x0;for(const _0x6eedd6 of _0x1a2ee9['getRanges']()){if(_0x6eedd6['containsRange'](_0x405c48,!0x0))return _0x1a2ee9;_0x405c48['containsRange'](_0x6eedd6)||(_0x459785=!0x1);}_0x459785&&_0x1a2ee9['discard']();}else{const _0x3ebe91=_0x1a2ee9['getFirstRange']();if(_0x3ebe91['containsRange'](_0x405c48,!0x0))return _0x1a2ee9;if(!Lt(_0x1a2ee9,_0x4f94a3)){_0x405c48['containsRange'](_0x3ebe91)?_0x1a2ee9['removeMarkers']():_0x3ebe91['containsPosition'](_0x2bb6fa)?_0x2bb6fa=_0x3ebe91['end']:_0x3ebe91['containsPosition'](_0x4328fa)&&(_0x4328fa=_0x3ebe91['start']);continue;}_0x2bb6fa=_0x2bb6fa['isBefore'](_0x3ebe91['start'])?_0x2bb6fa:_0x3ebe91['start'],_0x4328fa=_0x4328fa['isAfter'](_0x3ebe91['end'])?_0x4328fa:_0x3ebe91['end'],_0x4f94a3=Object['assign']({},_0x1a2ee9['attributes']),_0x53f996?_0x3ebe91['start']['isBefore'](_0x53f996['getFirstRange']()['start'])?(_0x53f996['removeMarkers'](),_0x53f996=_0x1a2ee9):_0x1a2ee9['removeMarkers']():_0x53f996=_0x1a2ee9;}}}if(_0x53f996)return this['_setSuggestionRange'](_0x53f996,this['_model']['createRange'](_0x2bb6fa,_0x4328fa)),_0x53f996;{const _0x3118d3=_0x3acd04(),_0x233951=this['_model']['createRange'](_0x2bb6fa,_0x4328fa),_0x3634e2=_0x23b31e['id'],_0x4cdeb1=_0x4ec685?'deletion:'+_0x4ec685:'deletion',_0x12cd5b=this['_setSuggestionData']({'id':_0x3118d3,'type':_0x4cdeb1,'createdAt':new Date(),'authorId':_0x3634e2,'attributes':_0x4f94a3});return this['_addSuggestionMarker'](_0x4cdeb1,_0x3118d3,_0x3634e2,_0x233951),_0x12cd5b;}}['markMultiRangeDeletion'](_0xba31e6,_0x20c216='multi',_0x1b13f2={}){const _0x395b1f=this['editor']['plugins']['get']('Users')['me'],_0x4cbf91=_0xba31e6['map'](_0x85f18b=>new _0x59eb41(_0x85f18b['start'],_0x85f18b['end'])),_0x2fd58d=new Set();for(const {suggestion:_0x43d648,meta:_0x264d9f}of this['_findSuggestions'](_0x4cbf91,'insertion'))_0x264d9f['isOwn']&&!_0x264d9f['isNextTo']&&_0x2fd58d['add'](_0x43d648);for(const _0x6464fc of _0x2fd58d)if(_0x6464fc['isMultiRange']){const _0x37154c=_0x6464fc['getRanges']();(!_0x6464fc['attributes']||!_0x6464fc['attributes']['skipNestingCheck'])&&(_0x37154c['every'](_0x4a32cd=>_0x4cbf91['some'](_0x2567ec=>_0x2567ec['containsRange'](_0x4a32cd,!0x0)))&&_0x6464fc['discard']());if(_0x4cbf91['every'](_0x1d0c60=>_0x37154c['some'](_0x25e517=>_0x25e517['containsRange'](_0x1d0c60,!0x0)))){const _0x190be1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x20c216,'accept');return this['forceDefaultExecution'](()=>_0x190be1(_0xba31e6,null,_0x1b13f2)),null;}}else{const _0x4dbeaf=_0x6464fc['getFirstRange']();_0x4cbf91['some'](_0x282166=>_0x282166['containsRange'](_0x4dbeaf,!0x0))&&_0x6464fc['discard']();if(_0x4cbf91['every'](_0x2579d3=>_0x4dbeaf['containsRange'](_0x2579d3,!0x0))){const _0x4f54e8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x20c216,'accept');return this['forceDefaultExecution'](()=>_0x4f54e8(_0x4cbf91,null,_0x1b13f2)),null;}}const _0x2b340d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x20c216,'join');let _0x37c18f=null;for(const _0x2af8ca of this['getSuggestions']())if(_0x2af8ca['author']['id']==_0x395b1f['id']&&_0x2af8ca['isInContent']&&'deletion'==_0x2af8ca['type']&&_0x2af8ca['subType']==_0x20c216&&Lt(_0x2af8ca,_0x1b13f2)&&(_0x2b340d(_0x2af8ca['getRanges'](),_0x4cbf91)||_0x2b340d(_0x4cbf91,_0x2af8ca['getRanges']()))){if(_0x37c18f){if(_0x2af8ca['commentThread']&&_0x2af8ca['commentThread']['length'])continue;for(const _0x38aa6b of _0x2af8ca['getRanges']())_0x37c18f['isIntersectingWithRange'](_0x38aa6b)||_0x37c18f['addRange'](_0x38aa6b);_0x2af8ca['removeMarkers']();}else{_0x37c18f=_0x2af8ca;for(const _0xf3827a of _0x4cbf91)_0x2af8ca['isIntersectingWithRange'](_0xf3827a)||_0x2af8ca['addRange'](_0xf3827a);}}if(_0x37c18f)return _0x37c18f;_0x2fd58d['clear']();for(const {suggestion:_0x27a05f,meta:_0x4802e3}of this['_findSuggestions'](_0x4cbf91,'deletion'))_0x4802e3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4802e3['containsRangeInObject']&&!_0x4802e3['isInsideObject'])&&Lt(_0x27a05f,_0x1b13f2)&&_0x2fd58d['add'](_0x27a05f);for(const _0x11d086 of _0x2fd58d){const _0x1b08b8=_0x11d086['getRanges']();if(!_0x1b13f2||!_0x1b13f2['skipNestingCheck']){if(_0x4cbf91['every'](_0x178d22=>_0x1b08b8['some'](_0x47db2e=>_0x47db2e['containsRange'](_0x178d22,!0x0))))return _0x11d086;}(!_0x11d086['attributes']||!_0x11d086['attributes']['skipNestingCheck'])&&(_0x1b08b8['every'](_0x3c08f1=>_0x4cbf91['some'](_0x27fecd=>_0x27fecd['containsRange'](_0x3c08f1,!0x0)))&&_0x11d086['discard']());}const _0x368034=_0x3acd04(),_0x322609=_0x395b1f['id'],_0x4c09c6='deletion:'+_0x20c216,_0x271abb=this['_setSuggestionData']({'id':_0x368034,'type':_0x4c09c6,'createdAt':new Date(),'authorId':_0x322609,'attributes':_0x1b13f2});for(const _0x28558f of _0x4cbf91)_0x28558f['detach'](),_0x28558f['isCollapsed']||'$graveyard'==_0x28558f['root']['rootName']||this['_addSuggestionMarker'](_0x4c09c6,_0x368034,_0x322609,_0x28558f,u['getMultiRangeId']());return _0x271abb;}['markAttributeChange'](_0x324483,_0x4db796,_0x302534,_0x4ea102,_0x5e9b1d){if(_0x324483['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xb21cc5=this['editor']['plugins']['get']('Users')['me']['id'],_0x58d11f=Array['from'](this['_suggestions']['values']())['filter'](_0x276066=>'attribute'==_0x276066['type']&&_0x276066['data']['key']==_0x4db796&&_0x276066['isIntersectingWithRange'](_0x324483));if('default'===this['_trackFormatChanges']){const _0x3d6ade=this['_findSuggestions'](_0x324483,'insertion')['filter'](({meta:_0x396d74})=>_0x396d74['isOwn']&&!_0x396d74['isInsideObject']&&!_0x396d74['isNextTo'])['map'](({suggestion:_0x311087})=>_0x311087);_0x58d11f['unshift'](..._0x3d6ade);}const _0x3f1344=new Map([[_0x324483,_0x302534]]);for(const _0x5c88e0 of _0x58d11f){const _0x19e55b='attribute'==_0x5c88e0['type']?_0x5c88e0['data']['oldValue']:void 0x0,_0xcd5fbf=_0x5c88e0['getFirstRange'](),_0x140750=Array['from'](_0x3f1344['keys']())['find'](_0x594ad2=>_0x594ad2['isIntersecting'](_0xcd5fbf));if(!_0x140750)continue;const _0x39b4c9=_0x140750['getDifference'](_0xcd5fbf);this['_isBlockAttribute'](_0x4db796)&&'insertion'==_0x5c88e0['type']&&0x0!=_0x39b4c9['length']||(_0x3f1344['delete'](_0x140750),_0x39b4c9['forEach'](_0x5dff27=>{_0x3f1344['set'](_0x5dff27,_0x302534);}),'insertion'!=_0x5c88e0['type']&&_0x19e55b!=_0x4ea102&&_0x3f1344['set'](_0x140750['getIntersection'](_0xcd5fbf),_0x19e55b));}const _0x4c1d9e=[];for(const [_0x2d5a32,_0x1d98c5]of _0x3f1344){const _0x57142d=_0x3acd04(),_0x34fd34={'key':_0x4db796,'oldValue':_0x1d98c5,'newValue':_0x4ea102};_0x4db796['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':_0x4db796});const _0x5933fb=('attribute:'+(_0x4db796+'|'+Vt({'newValue':_0x4ea102})))['substring'](0x0,0x3c),_0x3c9da6=this['_setSuggestionData']({'id':_0x57142d,'type':_0x5933fb,'data':_0x34fd34,'createdAt':new Date(),'authorId':_0xb21cc5,'attributes':_0x5e9b1d});_0x4c1d9e['push'](_0x3c9da6),this['_addSuggestionMarker'](_0x5933fb,_0x57142d,_0xb21cc5,_0x2d5a32);}return _0x4c1d9e;}['enableDefaultAttributesIntegration'](_0x24f803){this['enableCommand'](_0x24f803,(_0x11d7be,..._0x10d337)=>{this['_recordAttributeChanges'](()=>{_0x11d7be(..._0x10d337);});});}['registerBlockAttribute'](_0x3366ea){this['_blockAttributeKeys']['add'](_0x3366ea);}['registerInlineAttribute'](_0x46ac50){this['_inlineAttributeKeys']['add'](_0x46ac50);}['_getAttributeKey'](_0x3380f2){return'attribute'==_0x3380f2['type']?_0x3380f2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x48e70a,_0x29abf3){const _0xb3357b=_0x48e70a['getFirstMarker']();this['_model']['change'](_0x46992d=>{_0x46992d['updateMarker'](_0xb3357b,{'range':_0x29abf3});});}['_addThreadToSuggestion'](_0x3219da){const _0x3bd6f1=_0x3219da['id'],_0x592ee3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3bd6f1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x592ee3,'threadId':_0x3bd6f1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2570a3=this['_commentsRepository']['getCommentThread'](_0x3bd6f1);_0x2570a3['unbind']('isRemovable'),_0x2570a3['isRemovable']=!0x1,_0x3219da['commentThread']=_0x2570a3;}['_checkSuggestionCorrectness'](_0x17c0ab,_0x33e609,_0x338ba0,_0x29282f){if(_0x17c0ab['type']!=_0x33e609||_0x17c0ab['subType']!=_0x338ba0||_0x17c0ab['creator']['id']!=_0x29282f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1a825e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x322ef8,_0x2f8d3e){const _0x2181ab=_0x322ef8['getFirstRange']();if(_0x2f8d3e['isEqual'](_0x2181ab))_0x322ef8['removeMarkers']();else{if(_0x2181ab['containsRange'](_0x2f8d3e)){const _0x38381a=this['_model']['createPositionAt'](_0x2f8d3e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x322ef8,this['_model']['createRange'](_0x2181ab['start'],_0x38381a));const _0x2b6b4c=_0x3acd04(),_0x22f9bd=_0x322ef8['creator']['id'],_0x501d0e=_0x322ef8['type']+':'+_0x322ef8['subType'];this['_setSuggestionData']({'id':_0x2b6b4c,'type':_0x501d0e,'createdAt':new Date(),'authorId':_0x22f9bd,'data':_0x322ef8['data'],'attributes':_0x322ef8['attributes']});const _0x333e8e=this['_model']['createPositionAt'](_0x2f8d3e['end']['parent'],'after'),_0x213580=this['_model']['createRange'](_0x333e8e,_0x2181ab['end']);this['_addSuggestionMarker'](_0x501d0e,_0x2b6b4c,_0x22f9bd,_0x213580);}else{if(_0x2181ab['containsPosition'](_0x2f8d3e['start'])){const _0xe32c67=this['_model']['createPositionAt'](_0x2f8d3e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x322ef8,this['_model']['createRange'](_0x2181ab['start'],_0xe32c67));}else{const _0x3d10e1=this['_model']['createPositionAt'](_0x2f8d3e['end']['parent'],'after');this['_setSuggestionRange'](_0x322ef8,this['_model']['createRange'](_0x3d10e1,_0x2181ab['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x483e1){for(const {suggestion:_0x40abad,meta:_0x17bae0}of this['_findSuggestions'](_0x483e1,'insertion')){if(!_0x17bae0['isOwn'])continue;const _0x270ebb=_0x40abad['getRanges']();for(const _0x476c21 of _0x270ebb)if(!_0x483e1['getDifference'](_0x476c21)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xcc729c){const _0x419d19=this['editor']['plugins']['get']('Users')['getUser'](_0xcc729c);if(!_0x419d19)throw new _0x1a825e('track-changes-user-not-found',this);return _0x419d19;}['_getExternalAuthor'](_0x128caf){const _0x3eaf8f=this['editor']['plugins']['get']('Users'),_0x5de536=_0x2c90af('external:'+_0x128caf),_0x5895eb=_0x3eaf8f['getUser'](_0x5de536);return _0x5895eb||_0x3eaf8f['addUser']({'id':_0x5de536,'name':_0x128caf});}['_createSuggestion'](_0x1f1313,_0x5d22a3,_0x2ed200,_0x3fb652,_0x3f9d1c){const _0x57008c=this['_getAuthorFromId'](_0x3fb652),_0x1a9de9=this['_suggestionFactory']['buildSuggestion'](_0x1f1313,_0x5d22a3,_0x2ed200,_0x57008c,_0x3f9d1c,_0x43f987=>{this['_updateSuggestionData'](_0x2ed200,{'attributes':_0x43f987});const _0x487cdb=this['getSuggestion'](_0x2ed200);this['_joinWithAdjacentSuggestions'](new Set([_0x487cdb])),this['_refreshSuggestionsChain'](new Set([_0x487cdb]));});return this['listenTo'](_0x1a9de9,'accept',()=>{this['_updateSuggestionData'](_0x2ed200,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1a9de9,'discard',()=>{this['_updateSuggestionData'](_0x2ed200,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2ed200,_0x1a9de9),this['_suggestionState']['set'](_0x1a9de9,'notReady'),_0x1a9de9;}['_splitMarkerName'](_0x4101e2){const _0x56f9d3=_0x4101e2['split'](':');return{'group':_0x56f9d3[0x0],'type':_0x56f9d3[0x1],'subType':_0x56f9d3['length']>=0x5?_0x56f9d3[0x2]:null,'id':_0x56f9d3['length']<0x5?_0x56f9d3[0x2]:_0x56f9d3[0x3],'authorId':_0x56f9d3['length']<0x5?_0x56f9d3[0x3]:_0x56f9d3[0x4],'markerCount':0x6==_0x56f9d3['length']?_0x56f9d3[0x5]:null};}['_breakSuggestionMarker'](_0x412e86,_0x5ca8b3,_0x34f3e2){const _0x17e557=_0x412e86['getFirstRange'](),_0x42b8d0=_0x17e557['start'],_0x23ed2f=_0x17e557['end'];this['_setSuggestionRange'](_0x412e86,this['_model']['createRange'](_0x42b8d0,_0x5ca8b3));const _0x1114eb=_0x3acd04(),_0x2b7d90=_0x412e86['creator']['id'],_0x545a5e=_0x412e86['type']+(_0x412e86['subType']?':'+_0x412e86['subType']:'');this['_setSuggestionData']({'id':_0x1114eb,'type':_0x545a5e,'createdAt':new Date(),'authorId':_0x2b7d90,'originalSuggestionId':_0x412e86['id'],'attributes':_0x412e86['attributes'],'data':_0x412e86['data']});const _0x526094=this['_getAttributeKey'](_0x412e86);('formatBlock'==_0x412e86['type']||_0x526094&&this['_isBlockAttribute'](_0x526094))&&(_0x34f3e2=this['_model']['createPositionBefore'](_0x34f3e2['parent'])),this['_addSuggestionMarker'](_0x545a5e,_0x1114eb,_0x2b7d90,this['_model']['createRange'](_0x34f3e2,_0x23ed2f));}['_findSuggestions'](_0x1a342f,_0x1a2654=null){const _0x44ea88=[],_0x45904e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1a342f)||(_0x1a342f=[_0x1a342f]);for(const _0xb50996 of this['getSuggestions']()){if(!_0xb50996['isInContent'])continue;if(_0x1a2654&&_0xb50996['type']!=_0x1a2654)continue;let _0x881e50=!0x1;for(const _0x21be5a of _0xb50996['getRanges']()){for(const _0x416fd4 of _0x1a342f){const _0x2475b8=_0x416fd4['start']['isEqual'](_0x21be5a['end'])||_0x416fd4['end']['isEqual'](_0x21be5a['start']);if(_0x2475b8||_0x416fd4['getIntersection'](_0x21be5a)){const _0x40d1cc=_0x416fd4['containsRange'](_0x21be5a)&&Rt(this['_model']['schema'],_0x21be5a['start'],_0x416fd4),_0x2ee4e4=_0x21be5a['containsRange'](_0x416fd4)&&Rt(this['_model']['schema'],_0x416fd4['start'],_0x21be5a);_0x44ea88['push']({'suggestion':_0xb50996,'meta':{'isOwn':_0x45904e==_0xb50996['author'],'isNextTo':_0x2475b8,'isInsideObject':_0x40d1cc,'containsRangeInObject':_0x2ee4e4}}),_0x881e50=!0x0;break;}}if(_0x881e50)break;}}return _0x44ea88;}['_addSuggestionMarker'](_0x441b44,_0x8816ba,_0x5725bc,_0x329007,_0x24674f){this['_model']['change'](_0x3c5fe4=>{let _0x51c8dd='suggestion:'+_0x441b44+':'+_0x8816ba+':'+_0x5725bc;_0x24674f&&(_0x51c8dd=_0x51c8dd+':'+_0x24674f),_0x3c5fe4['addMarker'](_0x51c8dd,{'range':_0x329007,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x238db4){const _0x504c99=_0x238db4['previous'],_0x4abe1f=_0x238db4['next'];_0x238db4['previous']=null,_0x238db4['next']=null,null!=_0x504c99&&_0x504c99['next']==_0x238db4&&(_0x504c99['next']=_0x4abe1f),null!=_0x4abe1f&&_0x4abe1f['previous']==_0x238db4&&(_0x4abe1f['previous']=_0x504c99),'ready'==this['_suggestionState']['get'](_0x238db4)&&(this['_suggestionState']['set'](_0x238db4,'removed'),this['fire']('suggestionUnloaded',_0x238db4,_0x504c99,_0x4abe1f));}['_setSuggestionData'](_0x5ebb4b){const _0x1444d7=_0x5ebb4b['id'],_0x5a2241=this['addSuggestionData'](_0x5ebb4b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4f4d6e=this['editor']['plugins']['get']('PendingActions'),_0x2a6fa8=_0x5a2241['hasComments'],_0x55184e=_0x5a2241['subType']?_0x5a2241['type']+':'+_0x5a2241['subType']:_0x5a2241['type'],_0x489d9d=this['editor']['locale'],_0x4ab2a8=_0x4f4d6e['add'](o(_0x489d9d,'PENDING_ACTION_SUGGESTION')),_0x491074={'id':_0x1444d7,'type':_0x55184e,'hasComments':_0x2a6fa8,'data':_0x5ebb4b['data']||null,'originalSuggestionId':_0x5ebb4b['originalSuggestionId']||null,'attributes':_0x5a2241['attributes']};this['_adapter']['addSuggestion'](_0x491074)['then'](_0x3d4d4d=>{_0x5a2241['_saved']=!0x0,_0x4f4d6e['remove'](_0x4ab2a8),_0x3d4d4d&&_0x3d4d4d['createdAt']&&(this['_suggestions']['get'](_0x1444d7)['createdAt']=_0x3d4d4d['createdAt']);})['catch'](_0x1c32ea=>{throw _0x337233('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5a2241['discard']();}),_0x5a2241['stopListening'](),this['_suggestions']['delete'](_0x5a2241['id']),this['_suggestionState']['delete'](_0x5a2241),_0x1c32ea;});}return _0x5a2241;}['_isBlockAttribute'](_0x112da1){return this['_blockAttributeKeys']['has'](_0x112da1);}['_updateSuggestionData'](_0x45c974,_0x45aa09){const _0x1844c0=this['editor']['plugins']['get']('PendingActions'),_0x1c601e=this['getSuggestion'](_0x45c974);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1c601e['_saved']){const _0x469a2b=_0x1844c0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x45c974,_0x45aa09)['then'](()=>{_0x1844c0['remove'](_0x469a2b);});}else _0x1c601e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x45c974,_0x45aa09);});}}['_getSuggestionData'](_0x14470e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1a825e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x14470e);}['_handleNewSuggestionMarker'](_0x35a445){const {id:_0x334715,type:_0x169c2a,subType:_0x5ab6f4,authorId:_0x15fd87}=this['_splitMarkerName'](_0x35a445),_0x78341c=this['_suggestions']['get'](_0x334715)||this['_createSuggestion'](_0x169c2a,_0x5ab6f4,_0x334715,_0x15fd87,{});switch(this['_checkSuggestionCorrectness'](_0x78341c,_0x169c2a,_0x5ab6f4,_0x15fd87),this['_suggestionState']['get'](_0x78341c)){case'notReady':this['_getSuggestionData'](_0x334715)['then'](_0x54af95=>{let _0x2a924d=Promise['resolve']();_0x54af95['hasComments']&&(_0x2a924d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x334715})),_0x2a924d['then'](()=>{this['addSuggestionData'](_0x54af95)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x78341c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x334715,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x78341c,'ready'),this['fire']('suggestionLoaded',_0x78341c);break;case'ready':this['fire']('suggestionChanged',_0x78341c);}return _0x78341c['addMarkerName'](_0x35a445),_0x78341c;}['_refreshSuggestionsChain'](_0x9e52b0){const _0x4a7937=Array['from'](_0x9e52b0),_0x38c364=_0x4a7937['filter'](_0x5f0962=>'attribute'==_0x5f0962['type']);this['_refreshAttributeSuggestionsChain'](_0x38c364);const _0x4f6d71=_0x4a7937['filter'](_0x2e819d=>!_0x2e819d['isMultiRange']&&'attribute'!=_0x2e819d['type']),_0x3808ae=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2071c9=>!_0x2071c9['isMultiRange']&&'attribute'!=_0x2071c9['type']),_0x462ffe=_0x3808ae['filter'](_0x219c38=>!_0x9e52b0['has'](_0x219c38)),_0x143ab7=new Map(_0x3808ae['map'](_0x14ece2=>[_0x14ece2,this['_suggestionFactory']['getSuggestionCallback'](_0x14ece2['type'],_0x14ece2['subType'],'chain')])),_0x248b12=new Map(_0x3808ae['map'](_0x2da2c8=>[_0x2da2c8,_0x2da2c8['getFirstRange']()])),_0x528b8f=new Set(),_0x1968b9=new Set();for(let _0x25ec86=0x0;_0x25ec86<_0x4f6d71['length'];_0x25ec86++)_0x3676ed(_0x4f6d71[_0x25ec86],_0x4f6d71,_0x25ec86+0x1);for(let _0x1df3d4=0x0;_0x1df3d4<_0x4f6d71['length'];_0x1df3d4++)_0x3676ed(_0x4f6d71[_0x1df3d4],_0x462ffe,0x0);const _0x197c37=new Set();for(let _0x3a4f57=0x0;_0x3a4f57<_0x4f6d71['length'];_0x3a4f57++){const _0x194cce=_0x4f6d71[_0x3a4f57];!_0x1968b9['has'](_0x194cce)&&_0x194cce['previous']&&(_0x197c37['add'](_0x194cce['previous']),_0x194cce['previous']['next']===_0x194cce&&(_0x194cce['previous']['next']=null),_0x194cce['previous']=null),!_0x528b8f['has'](_0x194cce)&&_0x194cce['next']&&(_0x197c37['add'](_0x194cce['next']),_0x194cce['next']['previous']===_0x194cce&&(_0x194cce['next']['previous']=null),_0x194cce['next']=null);}function _0x3676ed(_0x5d37f5,_0x40a3aa,_0x325289){for(let _0x3911f9=_0x325289;_0x3911f9<_0x40a3aa['length'];_0x3911f9++){const _0x899608=_0x177895(_0x5d37f5,_0x40a3aa[_0x3911f9]);_0x899608&&(_0x899608[0x0]['next']=_0x899608[0x1],_0x899608[0x1]['previous']=_0x899608[0x0],_0x528b8f['add'](_0x899608[0x0]),_0x1968b9['add'](_0x899608[0x1]));}}function _0x177895(_0x57a8bd,_0x234a1f){if(_0x57a8bd['author']['id']!==_0x234a1f['author']['id'])return null;const _0x33e18a=_0x143ab7['get'](_0x57a8bd)(_0x57a8bd,_0x234a1f,_0x248b12['get'](_0x57a8bd),_0x248b12['get'](_0x234a1f));if(!_0x33e18a)return null;return _0x143ab7['get'](_0x234a1f)(_0x57a8bd,_0x234a1f,_0x248b12['get'](_0x57a8bd),_0x248b12['get'](_0x234a1f))?_0x33e18a[0x1]['commentThread']&&_0x33e18a[0x1]['commentThread']['length']?null:_0x33e18a:null;}_0x197c37['size']&&this['_refreshSuggestionsChain'](_0x197c37);}['_refreshAttributeSuggestionsChain'](_0x470772){if(0x0==_0x470772['length'])return;const _0x59c95a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x237d6d=>'attribute'==_0x237d6d['type']&&_0x237d6d['_isDataLoaded']),_0x5e5775=[],_0x1a5cb0=new Map();for(const _0x3ef4e2 of _0x59c95a){const _0x42812a=_0x2c90af(_0x3ef4e2['attributes']);_0x1a5cb0['has'](_0x42812a)||(_0x1a5cb0['set'](_0x42812a,_0x5e5775['length']),_0x5e5775['push']([]));const _0x4e9b18=_0x1a5cb0['get'](_0x42812a);_0x5e5775[_0x4e9b18]['push'](_0x3ef4e2);}!(function(){_0x5e5775['sort']((_0xe61c81,_0x159f56)=>{const _0x247c2e=_0xe61c81[0x0]['createdAt'],_0x480d1e=_0x159f56[0x0]['createdAt'];return _0x247c2e==_0x480d1e?_0xe61c81[0x0]['attributes']['groupId']<_0x159f56[0x0]['attributes']['groupId']?-0x1:0x1:_0x247c2e<_0x480d1e?-0x1:0x1;});for(const _0x4d8e01 of _0x5e5775)_0x4d8e01['sort']((_0x359d8f,_0xdf6d21)=>_0x359d8f['id']<_0xdf6d21['id']?-0x1:0x1);}());for(let _0x22df0a=0x0;_0x22df0a<_0x5e5775['length'];_0x22df0a++){if(0x0==_0x5e5775[_0x22df0a]['length'])continue;const _0x53cc77=[];for(let _0x3b89d7=_0x22df0a+0x1;_0x3b89d7<_0x5e5775['length'];_0x3b89d7++)0x0!=_0x5e5775[_0x3b89d7]['length']&&_0x5e0f0f(_0x5e5775[_0x22df0a],_0x5e5775[_0x3b89d7])&&_0x53cc77['push'](_0x3b89d7);for(const _0x3623e3 of _0x53cc77)_0x5e5775[_0x22df0a]=_0x5e5775[_0x22df0a]['concat'](_0x5e5775[_0x3623e3]),_0x5e5775[_0x3623e3]=[];}for(const _0x3d8f64 of _0x5e5775)for(let _0x4f18b5=0x0;_0x4f18b5<_0x3d8f64['length'];_0x4f18b5++)_0x3d8f64[_0x4f18b5]['next']=_0x3d8f64[_0x4f18b5+0x1]||null;for(const _0x1d1858 of _0x5e5775)for(let _0x429a11=0x0;_0x429a11<_0x1d1858['length'];_0x429a11++)_0x1d1858[_0x429a11]['previous']=_0x1d1858[_0x429a11-0x1]||null;function _0x5e0f0f(_0x4c42c6,_0x1cccbf){if(_0x4c42c6[0x0]['attributes']['groupId']!==_0x1cccbf[0x0]['attributes']['groupId']&&_0x4c42c6[0x0]['author']!==_0x1cccbf[0x0]['author'])return!0x1;if(!function(_0xde8754,_0x17b65c){if(!_0xde8754['hasComments']&&!_0x17b65c['hasComments'])return!0x0;if(_0xde8754['hasComments']&&_0x17b65c['hasComments'])return!0x1;if(_0xde8754['hasComments']&&_0x17b65c['createdAt']<_0xde8754['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x17b65c['hasComments']&&_0xde8754['createdAt']<_0x17b65c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4c42c6[0x0],_0x1cccbf[0x0]))return!0x1;const _0x4a642d=Bt(_0x4c42c6[0x0]['attributes'],'groupId'),_0x2873f8=Bt(_0x1cccbf[0x0]['attributes'],'groupId');if(!_0x4c4279(_0x4a642d,_0x2873f8))return!0x1;return!!_0x4c42c6['every'](_0x20a898=>_0x1cccbf['some'](_0x53955f=>_0x20a898['getFirstRange']()['isEqual'](_0x53955f['getFirstRange']())))&&_0x1cccbf['every'](_0x2520ce=>_0x4c42c6['some'](_0x2196ca=>_0x2520ce['getFirstRange']()['isEqual'](_0x2196ca['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3ee147){const _0x3e789d=Array['from'](_0x3ee147),_0x161ac9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3355b8=_0x161ac9['filter'](_0x50ea6e=>!_0x3ee147['has'](_0x50ea6e)),_0x20b335=new Map(_0x3e789d['map'](_0xab9a01=>[_0xab9a01,this['_suggestionFactory']['getSuggestionCallback'](_0xab9a01['type'],_0xab9a01['subType'],'join')])),_0x197e50=new Map(_0x161ac9['map'](_0x1d7bd6=>[_0x1d7bd6,_0x1d7bd6['getRanges']()]));for(let _0x214295=0x0;_0x214295<_0x3e789d['length'];_0x214295++){if(_0x2bd42f(this,_0x3e789d[_0x214295],_0x3e789d,_0x214295+0x1))return!0x0;}for(let _0x5b45a1=0x0;_0x5b45a1<_0x3e789d['length'];_0x5b45a1++){if(_0x2bd42f(this,_0x3e789d[_0x5b45a1],_0x3355b8,0x0))return!0x0;}return!0x1;function _0x2bd42f(_0x148d0e,_0x5b704b,_0x3c5e95,_0x5356bc){for(let _0x49eab8=_0x5356bc;_0x49eab8<_0x3c5e95['length'];_0x49eab8++){const _0x4e7ff0=_0x3c5e95[_0x49eab8];if(_0x4e7ff0['type']!==_0x5b704b['type']||_0x4e7ff0['author']['id']!==_0x5b704b['author']['id']||_0x4e7ff0['subType']!==_0x5b704b['subType'])continue;if(!Pt(_0x5b704b,_0x4e7ff0,['groupId']))continue;if('attribute'==_0x5b704b['type']&&_0x5b704b['data']['oldValue']!=_0x4e7ff0['data']['oldValue'])continue;if('attribute'==_0x5b704b['type']&&_0x148d0e['_isBlockAttribute'](_0x5b704b['data']['key']))continue;if('formatBlock'==_0x5b704b['type']){const _0x5ee75e=_0x148d0e['editor']['model'],_0x80ea4e=_0x5b704b['getContainedElement']();if(_0x80ea4e&&(_0x5ee75e['schema']['isObject'](_0x80ea4e)||_0x5ee75e['schema']['isLimit'](_0x80ea4e)))continue;}const _0x244091=_0x20b335['get'](_0x5b704b),_0x61e77c=_0x197e50['get'](_0x5b704b),_0x14bcd1=_0x197e50['get'](_0x4e7ff0),_0xb176f5=_0x5b704b['commentThread']&&_0x5b704b['commentThread']['length'],_0x3c813b=_0x4e7ff0['commentThread']&&_0x4e7ff0['commentThread']['length'];if(!_0xb176f5&&_0x244091(_0x14bcd1,_0x61e77c))return _0x148d0e['_joinSuggestions'](_0x4e7ff0,_0x5b704b),_0x197e50['delete'](_0x5b704b),!0x0;if(!_0x3c813b&&_0x244091(_0x61e77c,_0x14bcd1))return _0x148d0e['_joinSuggestions'](_0x5b704b,_0x4e7ff0),_0x197e50['delete'](_0x4e7ff0),!0x0;}return!0x1;}}['_joinSuggestions'](_0xa5c46,_0x29e6f7){if(_0xa5c46['isMultiRange']){for(const _0x4f2f9f of _0x29e6f7['getRanges']())_0xa5c46['addRange'](_0x4f2f9f);}else{const _0x436597=_0x29e6f7['getFirstRange']()['end'];this['_setSuggestionRange'](_0xa5c46,this['_model']['createRange'](_0xa5c46['getFirstRange']()['start'],_0x436597));}_0x29e6f7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4bb165,_0x67082c){const _0x45762b=_0x4bb165['startsWith']('format')||_0x4bb165['startsWith']('attribute')?'FORMATTING':_0x4bb165['toUpperCase']();return o(this['editor']['locale'],_0x67082c+'_'+_0x45762b+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x1f438d=this['editor'];if(!_0x1f438d['ui'])return;const {ariaLiveAnnouncer:_0x558ebe}=_0x1f438d['ui'];_0x1093b2(this['_model'],({left:_0x1227b5,entered:_0x280a36})=>{for(const _0x279866 of _0x1227b5){const {group:_0x2ade1e,type:_0x1ef201}=this['_splitMarkerName'](_0x279866['name']);if('suggestion'===_0x2ade1e){_0x558ebe['announce'](this['_getMarkerAnnouncementText'](_0x1ef201,'LEAVE'));break;}}for(const _0x5c886f of _0x280a36){const {group:_0x32e813,type:_0x428471}=this['_splitMarkerName'](_0x5c886f['name']);if('suggestion'===_0x32e813){_0x558ebe['announce'](this['_getMarkerAnnouncementText'](_0x428471,'ENTER'));break;}}});}['_processAttributeChanges'](_0x3d2005){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5a4de3=this['editor'],_0x1f4bf5=_0x5a4de3['model']['document']['differ']['getChanges']();if(0x0==_0x1f4bf5['length'])return!0x1;const _0x2b589e=[],_0x403691=_0x1f4bf5['filter'](_0x47e052=>'attribute'==_0x47e052['type']),_0x2fe631=_0x1f4bf5['filter'](_0x271ec0=>'insert'==_0x271ec0['type']&&'$text'!=_0x271ec0['name']),_0x399c90=_0x1f4bf5['filter'](_0x5210ac=>'remove'==_0x5210ac['type']&&'$text'!=_0x5210ac['name']);for(const _0x1fb558 of _0x403691)_0x2b589e['push']({'key':_0x1fb558['attributeKey'],'newValue':_0x1fb558['attributeNewValue'],'oldValue':_0x1fb558['attributeOldValue'],'range':Ot(_0x1fb558['range'],_0x5a4de3['model'])});for(const _0x2eb460 of _0x2fe631){const _0x3c395e=_0x399c90['find'](_0x4bb9d3=>_0x4bb9d3['position']['isEqual'](_0x2eb460['position']));_0x3c395e&&_0x2b589e['push']({'key':m,'newValue':_0x2eb460['name'],'oldValue':_0x3c395e['name'],'range':_0x5a4de3['model']['createRangeOn'](_0x2eb460['position']['nodeAfter'])});}return 0x0!=_0x2b589e['length']&&this['_reduceExistingSuggestions'](_0x3d2005,_0x2b589e);}['_processAttributeSuggestions'](_0x4abdd5){let _0x214da4=!0x1;const _0x2a068c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x30bef8=>_0x30bef8['data']['newRange']&&_0x30bef8['name']['startsWith']('suggestion:attribute:'));for(const _0x307dfc of _0x2a068c){const {subType:_0x3afe2d,id:_0x53c743}=this['_splitMarkerName'](_0x307dfc['name']),_0x421c88=_0x3afe2d['split']('|')[0x0];for(const _0x4a1125 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4a1125['id']!=_0x53c743&&'attribute'==_0x4a1125['type']&&_0x4a1125['data']&&_0x4a1125['data']['key']==_0x421c88&&_0x4a1125['getFirstRange']()['isIntersecting'](_0x307dfc['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4a1125,_0x307dfc['data']['newRange'],_0x4abdd5),_0x214da4=!0x0);}return _0x214da4;}['_recordAttributeChanges'](_0x32c024){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x32c024();}['_isRegisteredAttribute'](_0x39e91e){const _0x259935=this['_isBlockAttribute'](_0x39e91e),_0x157b5c=this['_inlineAttributeKeys']['has'](_0x39e91e);return _0x259935||_0x157b5c;}['_reduceExistingSuggestions'](_0x175d1a,_0x53396f){if(0x0==_0x53396f['length'])return!0x1;let _0xd619ac=!0x1;for(const _0x390ff8 of _0x53396f){const _0x1ddb32=this['_findSuggestions'](_0x390ff8['range'],'attribute')['filter'](_0x2ae601=>!_0x2ae601['meta']['isNextTo'])['map'](_0x13d99a=>_0x13d99a['suggestion']),_0x35b0ae=_0x2c90af({'newValue':_0x390ff8['newValue']});_0x1ddb32['filter'](_0xfa938a=>{const [_0x4252c1,_0x4ccef9]=_0xfa938a['subType']['split']('|');return _0x4252c1==_0x390ff8['key']&&_0x4ccef9!=_0x35b0ae;})['forEach'](_0x40072f=>{this['_reduceSuggestionAttributeRange'](_0x40072f,_0x390ff8['range'],_0x175d1a),_0xd619ac=!0x0;});}return _0xd619ac;}['_reduceSuggestionAttributeRange'](_0x389ec4,_0x591a46,_0x3d4dab){const _0x3bad9d=_0x389ec4['getFirstRange']()['getDifference'](_0x591a46);0x0!==_0x3bad9d['length']?0x1!==_0x3bad9d['length']?this['_breakSuggestionMarker'](_0x389ec4,_0x591a46['start'],_0x591a46['end']):this['_setSuggestionRange'](_0x389ec4,_0x3bad9d[0x0]):_0x3d4dab['removeMarker'](_0x389ec4['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x889607){this['_editor']=_0x889607,this['_model']=_0x889607['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1e0037,_0x12509c,_0x5cdb51,_0x5029bf,_0x124e54,_0x4c2304){return new u(this['_model'],{'type':_0x1e0037,'subType':_0x12509c,'id':_0x5cdb51,'author':_0x5029bf,'creator':_0x5029bf,'attributes':_0x124e54,'onAttributesChange':_0x4c2304,'onAccept':(..._0x31b5e6)=>this['getSuggestionCallback'](_0x1e0037,_0x12509c,'accept')(..._0x31b5e6),'onDiscard':(..._0x4597c5)=>this['getSuggestionCallback'](_0x1e0037,_0x12509c,'discard')(..._0x4597c5)});}['registerCustomCallback'](_0x4121e0,_0x139eba,_0xd745a5,_0x116cb8){const _0x308d3f=_0x4121e0+':'+_0x139eba+':'+_0xd745a5;this['_customCallbacks']['set'](_0x308d3f,_0x116cb8);}['getSuggestionCallback'](_0x4603a5,_0x1f45e8,_0x51baa0){const _0x3e7712=_0x4603a5+':'+_0x1f45e8+':'+_0x51baa0;return this['_customCallbacks']['get'](_0x3e7712)||this['_defaultCallbacks']['get'](_0x4603a5+':'+_0x51baa0);}['_registerDefaultCallbacks'](){const _0x36e3a6=()=>!0x1,_0x2a5802=_0x1717fd=>{_0x1717fd['sort']((_0x40e547,_0x1f4556)=>_0x40e547['start']['isBefore'](_0x1f4556['start'])?0x1:-0x1),this['_model']['change'](_0x1d8cfa=>{for(const _0x29b80e of _0x1717fd){let _0x2c49b2;_0x2c49b2=_0x29b80e['end']['isAtEnd']&&_0x29b80e['end']['parent']==_0x29b80e['start']['nodeAfter']?_0x1d8cfa['createSelection'](_0x29b80e['start']['nodeAfter'],'on'):_0x1d8cfa['createSelection'](_0x29b80e),this['_model']['deleteContent'](_0x2c49b2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5e9af0=(_0x2d5c2a,_0x3d6c91)=>{_0x3d6c91&&this['_model']['change'](_0x5efc48=>{const {commandName:_0x1aa54c,commandParams:_0x167ee1=[]}=_0x3d6c91,_0x270408=_0x2d5c2a['map'](_0x312a16=>(Tt(_0x312a16)&&(_0x312a16=this['_model']['createRange'](_0x312a16['end'])),_0x312a16))['filter'](_0x1009c2=>'$graveyard'!==_0x1009c2['root']['rootName']);if(_0x270408['length']<0x1)return;const _0x23fa59=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xc1c57a=>_0x59eb41['fromRange'](_0xc1c57a));_0x5efc48['setSelection'](_0x270408);for(const _0x27c30c of this['_editor']['commands']['commands']())_0x27c30c['refresh']();_0x167ee1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1aa54c,..._0x167ee1);const _0x3540b3=_0x23fa59['filter'](_0x4be7ea=>'$graveyard'!=_0x4be7ea['root']['rootName']);_0x3540b3['length']>0x0&&_0x5efc48['setSelection'](_0x3540b3);for(const _0x2ca2a6 of _0x23fa59)_0x2ca2a6['detach']();});},_0x662a2a=(_0x970a70,_0x130eba)=>0x1==_0x970a70['length']&&0x1==_0x130eba['length']&&_0x970a70[0x0]['end']['isEqual'](_0x130eba[0x0]['start']),_0x534428=(_0x58e287,_0x2e5394,_0x28cb39,_0x339247)=>Ft(_0x58e287,_0x2e5394,_0x28cb39,_0x339247,this['_model'])?[_0x58e287,_0x2e5394]:Ft(_0x2e5394,_0x58e287,_0x339247,_0x28cb39,this['_model'])?[_0x2e5394,_0x58e287]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x36e3a6),this['_defaultCallbacks']['set']('insertion:discard',_0x2a5802),this['_defaultCallbacks']['set']('insertion:join',_0x662a2a),this['_defaultCallbacks']['set']('insertion:chain',_0x534428),this['_defaultCallbacks']['set']('deletion:accept',_0x2a5802),this['_defaultCallbacks']['set']('deletion:discard',_0x36e3a6),this['_defaultCallbacks']['set']('deletion:join',_0x662a2a),this['_defaultCallbacks']['set']('deletion:chain',_0x534428),this['_defaultCallbacks']['set']('formatInline:accept',_0x5e9af0),this['_defaultCallbacks']['set']('formatInline:discard',_0x36e3a6),this['_defaultCallbacks']['set']('formatInline:join',_0x662a2a),this['_defaultCallbacks']['set']('formatInline:chain',_0x36e3a6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5e9af0),this['_defaultCallbacks']['set']('formatBlock:discard',_0x36e3a6),this['_defaultCallbacks']['set']('formatBlock:join',_0x662a2a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x36e3a6),this['_defaultCallbacks']['set']('attribute:accept',_0x36e3a6),this['_defaultCallbacks']['set']('attribute:discard',(_0x4bad60,_0x1269ed)=>{if(!_0x1269ed)return;const _0xe401=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x206e99=>{if(_0x1269ed['key']==m)for(const _0x4cb8f7 of _0x4bad60){const _0x2cb6de=_0x4cb8f7['start']['nodeAfter'],_0x46e4a1=_0x1269ed['oldValue'];_0x206e99['rename'](_0x2cb6de,_0x46e4a1);}else{if(_0xe401['_isBlockAttribute'](_0x1269ed['key'])){for(const _0x232940 of _0x4bad60)void 0x0!==_0x1269ed['oldValue']?_0x206e99['setAttribute'](_0x1269ed['key'],_0x1269ed['oldValue'],_0x232940['start']['nodeAfter']):_0x206e99['removeAttribute'](_0x1269ed['key'],_0x232940['start']['nodeAfter']);}else{for(const _0x38931d of _0x4bad60)_0x1269ed['oldValue']?_0x206e99['setAttribute'](_0x1269ed['key'],_0x1269ed['oldValue'],_0x38931d):_0x206e99['removeAttribute'](_0x1269ed['key'],_0x38931d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x662a2a);}}function Rt(_0x44065b,_0x1a9f5c,_0x5182cb){for(const _0x3dda5d of _0x1a9f5c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3dda5d['root']==_0x3dda5d)return!0x1;if(!_0x5182cb['containsItem'](_0x3dda5d))return!0x1;if(_0x44065b['isObject'](_0x3dda5d)||_0x44065b['isLimit'](_0x3dda5d))return!0x0;}return!0x1;}function Tt(_0x2448b1){return _0x2448b1['end']['parent']==_0x2448b1['start']['nodeAfter']&&_0x2448b1['end']['isAtStart'];}function Et(_0xf32079,_0x48bce0,_0x7d273b,_0x39107d){const _0x4c5397=_0x566d47=>!_0x566d47['item']['is']('$textProxy')&&!_0x39107d['isObject'](_0x566d47['item']),_0x435aa1=_0xf32079['start']['getLastMatchingPosition'](_0x4c5397),_0x294852=_0xf32079['end']['getLastMatchingPosition'](_0x4c5397,{'direction':'backward'});return(!_0xf32079['start']['isEqual'](_0x435aa1)||!_0xf32079['end']['isEqual'](_0x294852))&&(_0x435aa1['isBefore'](_0x294852)?_0x7d273b['updateMarker'](_0x48bce0,{'range':_0x7d273b['createRange'](_0x435aa1,_0x294852)}):_0x7d273b['removeMarker'](_0x48bce0),!0x0);}function Vt(_0x33abcb){return _0x2c90af(_0x33abcb);}function Ut(_0x52b8f4){const _0x275214=_0x52b8f4['start']['nodeAfter'];return _0x275214&&_0x275214['is']('element');}function Ot(_0x2c4093,_0x1ab118){return null==_0x2c4093['end']['nodeBefore']&&_0x2c4093['end']['parent']==_0x2c4093['start']['nodeAfter']?Gt(_0x2c4093['start']['nodeAfter'],_0x1ab118):_0x2c4093;}function Gt(_0x101807,_0x516cc9){const _0x11b6c4=_0x516cc9['schema']['isObject'](_0x101807)||_0x516cc9['schema']['isSelectable'](_0x101807);return _0x516cc9['createRange'](_0x516cc9['createPositionAt'](_0x101807,'before'),_0x11b6c4?_0x516cc9['createPositionAfter'](_0x101807):_0x516cc9['createPositionAt'](_0x101807,'end'));}function Ft(_0x11622d,_0x33d764,_0x27721b,_0x323a8a,_0x4f1edb){if(!Pt(_0x11622d,_0x33d764))return!0x1;if(_0x27721b['end']['isEqual'](_0x323a8a['start']))return!0x0;if(_0x11622d['type']!=_0x33d764['type'])return!0x1;if(!_0x27721b['end']['isTouching'](_0x323a8a['start']))return!0x1;const _0x33a1d1=_0x4f1edb['createRange'](_0x27721b['end'],_0x323a8a['start'])['getWalker']();for(const _0x340627 of _0x33a1d1)if(['elementStart','elementEnd']['includes'](_0x340627['type'])&&_0x4f1edb['schema']['isLimit'](_0x340627['item']))return!0x1;return!0x0;}function Pt(_0x4d007d,_0x4f4664,_0x502641=[]){return!(!_0x4d007d['_isDataLoaded']||!_0x4f4664['_isDataLoaded'])&&_0x4c4279(Bt(_0x4d007d['attributes'],_0x502641),Bt(_0x4f4664['attributes'],_0x502641));}function Lt(_0x39c399,_0x4a1375){const _0x5e5008=Ht(_0x39c399['attributes']),_0x2b59a0=Ht(_0x4a1375);if(!_0x39c399['_isDataLoaded'])return!0x1;for(const _0xeabba2 of Object['keys'](_0x2b59a0))if(!_0x4c4279(_0x5e5008[_0xeabba2],_0x2b59a0[_0xeabba2]))return!0x1;return!0x0;}function Ht(_0x1bce8b){const _0x44ac8c=Object['assign']({},_0x1bce8b);return delete _0x44ac8c['skipNestingCheck'],delete _0x44ac8c['tablePasteChainId'],_0x44ac8c;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x34c921(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3cec20,_0x28f433,_0x1465e9,_0x4526cc){super(),this['model']=_0x28f433,this['view']=_0x1465e9,this['commentThreadController']=_0x4526cc,this['_editor']=_0x3cec20,this['_acceptCommand']=_0x3cec20['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3cec20['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3f827f,_0x1c4ced)=>_0x3f827f||_0x1c4ced),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x235675=>_0x235675&&this['_editor']['model']['canEditAt'](_0x28f433['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x17b002=>_0x17b002&&this['_editor']['model']['canEditAt'](_0x28f433['getRanges']())),this['_pendingAction']=null,_0x1465e9['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1465e9,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1465e9,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1465e9,'change:isDirty',()=>{_0x1465e9['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 _0x5efe8a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5efe8a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x894f2{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x2ac46f,_0x5d04dd,_0x552187,_0x31c057){super(_0x2ac46f),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d04dd['authoredAt']),this['bind']('authoredAt')['to'](_0x5d04dd),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5d04dd,this['_localUser']=_0x552187,this['_config']=_0x31c057,_0x31c057['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:_0x544504}=this['_config'];this['commentsListView']=new _0x544504(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',_0xaf7151=>_0xaf7151+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x315620,_0x406366)=>_0x315620||!!_0x406366);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x55e82c}=this['_config'],_0x54def1=new _0x55e82c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x15e3b8=_0x54def1['commentInputView'];return _0x54def1['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x15e3b8,'value',(_0x176dec,_0x3fe261,_0x56060f)=>!!_0x56060f||_0x176dec&&!_0x3fe261),_0x15e3b8['on']('submit',(_0x2cb106,_0x47801b)=>{this['fire']('addComment',_0x47801b),_0x15e3b8['editor']['setData']('');}),_0x15e3b8['on']('cancel',()=>this['focus']()),_0x15e3b8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x54def1;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5dd662,_0x26853b,_0x3c159f,_0x1fcd1c){super(_0x5dd662,_0x26853b,_0x3c159f,_0x1fcd1c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4bddee=>_0x4bddee&&_0x4bddee[0x0]?_0x4bddee[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x567d15,_0x392f05)=>{let _0x12498b='';for(const _0x3b746d of _0x567d15)_0x12498b+='<p>'+ds(_0x3b746d['content'],_0x3b746d['color'])+'</p>';return _0x392f05?_0x12498b:_0x559799(_0x12498b,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5dd662,'Accept\x20suggestion'),_0x10cb34['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5dd662,'Discard\x20suggestion'),_0x10cb34['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x2b1933(_0x5dd662,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x520071=this['bindTemplate'],_0x35b81d=[{'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':_0x520071['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x520071['to']('authoredAt',_0x4ecb64=>this['_config']['formatDateTime'](_0x4ecb64))}]}]},{'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']&&_0x35b81d['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x4312cf={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x520071['if']('isActive','ck-suggestion-wrapper--active'),_0x520071['to']('type',_0x3347cf=>'ck-suggestion-'+_0x3347cf),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':_0x35b81d}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x4312cf['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)),_0x4312cf;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x381adf,_0x37fa00,_0x1b1db1)=>{this['_descriptionElement']['innerHTML']=_0x1b1db1;});}['_createButton'](_0xfe08d7,_0x250e71,_0x573163,_0x3c6ae0,_0x20fb80){const _0x439c1d=new _0x18e281(this['locale']);return _0x439c1d['set']({'label':_0xfe08d7,'icon':_0x250e71,'tooltip':!0x0,'tooltipPosition':_0x20fb80}),_0x439c1d['extendTemplate']({'attributes':{'class':_0x573163}}),_0x439c1d['on']('execute',()=>{this['fire'](_0x3c6ae0,this['_model']['id']);}),_0x439c1d;}['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(_0x1f9e50,_0x5c0fc1){let _0x5935b3='';return _0x5935b3+=_0x1f9e50['split']('*')['map']((_0xcde9b1,_0x547674)=>_0x547674%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xcde9b1)+'</span>':us(_0xcde9b1))['join'](''),_0x5c0fc1&&(_0x5935b3+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5c0fc1['value']+'\x22\x20title=\x22'+_0x5c0fc1['title']+'\x22></span>'),_0x5935b3;}function us(_0xbf5a3e){const _0x2b07fd=document['createElement']('span');return _0x2b07fd['innerText']=_0xbf5a3e,_0x2b07fd['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 _0x1fe610{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xe4de3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x21a783){super(_0x21a783),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x399e0c=this['editor']['config'];_0x399e0c['define']('trackChanges.SuggestionThreadView',ne),_0x399e0c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x399e0c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x11a854,_0x224328){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xdfa993,_0xc3fafe]of this['_handleControllerBuffer']){const _0x510ed7=this['_suggestionToController']['has'](_0xdfa993);_0x510ed7||_0xc3fafe?_0x510ed7&&_0xc3fafe&&this['_destroyController'](_0xdfa993):this['_initializeController'](_0xdfa993);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x11a854,_0x224328);}['init'](){const _0x4fb0cf=this['editor'],_0x317f85=_0x4fb0cf['plugins']['get']('TrackChangesEditing'),_0x118bb9=_0x4fb0cf['plugins']['get']('Annotations'),_0x32285f=_0x4fb0cf['plugins']['get']('EditorAnnotations'),_0x42f36b=_0x4fb0cf['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x32285f['addSourceCollector'](()=>{const _0xeab0fb=[];for(const [_0x352a14,_0x225b53]of Array['from'](this['_suggestionToController'])){const _0x78b56f=_0x352a14['getAllAdjacentSuggestions'](),_0x41c5b2=[];for(const _0x80751 of _0x78b56f){if(!_0x80751['isInContent'])continue;if(_0x80751['isMultiRange']){_0x41c5b2['push'](..._0x80751['getRanges']());continue;}const _0x3bc90a=_0x80751['getFirstRange']();if(_0x41c5b2['length']>0x0){const _0x38947c=_0x41c5b2[0x0]['getJoined'](_0x3bc90a);if(_0x38947c){_0x41c5b2[0x0]=_0x38947c;continue;}}_0x41c5b2['push'](_0x3bc90a);}_0xeab0fb['push']([_0x225b53['view'],_0x41c5b2]);}return _0xeab0fb;}),this['listenTo'](_0x317f85,'suggestionLoaded',(_0x2da90f,_0x2a566c)=>{this['listenTo'](_0x2a566c,'change:previous',(_0x37d0ca,_0x1c38eb,_0x20988a,_0x300e76)=>{_0x2a566c['isInContent']&&(null==_0x20988a?(this['_updateController'](_0x300e76['head']),this['_handleSuggestionControllerDelayed'](_0x2a566c,!0x1)):(this['_updateController'](_0x20988a['head']),null==_0x300e76&&this['_handleSuggestionControllerDelayed'](_0x2a566c,!0x0)));}),null!==_0x2a566c['previous']?this['_updateController'](_0x2a566c['head']):this['_handleSuggestionControllerDelayed'](_0x2a566c,!0x1);}),this['listenTo'](_0x317f85,'suggestionUnloaded',(_0x19ab05,_0xae6bea,_0x2d632d)=>{this['stopListening'](_0xae6bea,'change:previous'),this['_handleControllerBuffer']['delete'](_0xae6bea),this['_suggestionToController']['has'](_0xae6bea)&&this['_destroyController'](_0xae6bea),_0x2d632d&&this['_updateController'](_0x2d632d['head']);}),this['listenTo'](_0x317f85,'suggestionChanged',(_0x46543d,_0x11e568)=>{this['_updateController'](_0x11e568);}),this['listenTo'](_0x118bb9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x42f36b,'addComment',(_0x3ffade,{threadId:_0x44aa3a,isFromAdapter:_0x31c956})=>{if(_0x31c956||!_0x317f85['hasSuggestion'](_0x44aa3a))return;const _0x581fc8=_0x317f85['getSuggestion'](_0x44aa3a);this['_suggestionToController']['get'](_0x581fc8)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x587171=this['editor']['plugins']['get']('Annotations'),_0x43135c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x121285=Array['from'](_0x587171['activeAnnotations'],_0x4add62=>_0x4add62['innerView'])['filter'](_0x2d0bf6=>this['_viewToController']['has'](_0x2d0bf6)),_0x17e2fc=[];for(const _0x3f9c18 of _0x121285){const _0x4bc812=this['_viewToController']['get'](_0x3f9c18)['model']['getAllAdjacentSuggestions']();_0x17e2fc['push'](..._0x4bc812['reduce']((_0x4f8816,_0x3b8c7d)=>[..._0x4f8816,..._0x3b8c7d['getMarkerNames']()],[]));}_0x43135c['activeMarkers']=_0x17e2fc;}['_addUIComponentsToFactory'](){const _0x2a14f9=this['editor'],_0x2f65c2=_0x2a14f9['locale'],_0x142773=o(_0x2f65c2,'Track\x20changes'),_0x284079=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x142773,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2f65c2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2f65c2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2f65c2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2f65c2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x17be3c of _0x284079)if(ae(_0x17be3c)){const _0x59a4f7=_0x2a14f9['commands']['get'](_0x17be3c['model']['commandName']);_0x17be3c['model']['bind']('isOn','isEnabled')['to'](_0x59a4f7,'value','isEnabled');}_0x2a14f9['ui']['componentFactory']['add']('trackChanges',_0x22f86a=>this['_createToolbarButton'](_0x22f86a,_0x284079,_0x142773)),_0x2a14f9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x47f43e=>this['_createMenuBarMenu'](_0x47f43e,_0x284079,_0x142773));}['_createToolbarButton'](_0x161817,_0xce4346,_0x713487){const _0xd59c91=zt(_0x161817,Zt),_0x29546a=this['editor']['commands']['get']('trackChanges');_0xd59c91['buttonView']['set']({'tooltip':_0x713487,'label':_0x713487,'icon':ie}),_0xd59c91['buttonView']['bind']('isOn')['to'](_0x29546a,'value'),_0xd59c91['buttonView']['on']('execute',()=>{_0x29546a['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0xd59c91,_0xce4346,{'role':'menu'});const _0x42217d=[];for(const _0x2359b8 of _0xce4346)ae(_0x2359b8)&&_0x42217d['push'](this['editor']['commands']['get'](_0x2359b8['model']['commandName']));const _0x4e5118=_0xd59c91['buttonView'];return _0x4e5118['actionView']['unbind']('isEnabled'),_0x4e5118['arrowView']['unbind']('isEnabled'),_0x4e5118['actionView']['bind']('isEnabled')['to'](_0x29546a,'isEnabled'),_0x4e5118['arrowView']['bind']('isEnabled')['toMany'](_0x42217d,'isEnabled',(..._0x1e7161)=>_0x1e7161['some'](_0x51ae68=>_0x51ae68)),_0xd59c91['on']('execute',_0x2ffb7f=>{this['editor']['execute'](_0x2ffb7f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xd59c91;}['_createMenuBarMenu'](_0x5c4302,_0x5c5846,_0x3cb9f2){const _0x5dd8cf=new Kt(_0x5c4302),_0x5d0166=this['editor']['commands']['get']('trackChanges');_0x5dd8cf['buttonView']['set']({'label':_0x3cb9f2,'icon':ie});const _0x16b338=new Qt(_0x5c4302);for(const _0x27bc28 of _0x5c5846){if('separator'==_0x27bc28['type']){_0x16b338['items']['add'](new Jt(_0x5c4302));continue;}const _0x453e76=new Xt(_0x5c4302,_0x5dd8cf),_0x41d194=new Yt(_0x5c4302),_0x609526=_0x27bc28['model'];_0x41d194['bind'](...Object['keys'](_0x609526))['to'](_0x609526),_0x41d194['delegate']('execute')['to'](_0x5dd8cf),_0x41d194['on']('execute',()=>{this['editor']['execute'](_0x609526['commandName']),this['editor']['editing']['view']['focus']();}),_0x453e76['children']['add'](_0x41d194),_0x16b338['items']['add'](_0x453e76);}return _0x5dd8cf['bind']('isEnabled')['to'](_0x5d0166,'isEnabled'),_0x5dd8cf['panelView']['children']['add'](_0x16b338),_0x5dd8cf;}['_initializeController'](_0x16428a){const _0x3ffcd6=this['editor'],_0x1569c3=_0x3ffcd6['config'],_0x114e6d=_0x3ffcd6['plugins']['get']('Annotations'),_0x2f7f6d=_0x3ffcd6['plugins']['get']('CommentsRepository'),_0x3a5066=_0x3ffcd6['plugins']['get']('EditorAnnotations'),_0x4fe1ab=_0x3ffcd6['plugins']['get'](_0xe4de3)['me'],_0x187906=_0x1569c3['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3bfd82,CommentThreadInputView:_0x47d976}=_0x3ffcd6['plugins']['get']('CommentsUI');let _0x2df63f,_0x37b61b;this['_annotationViews']['has'](_0x16428a['id'])?(_0x37b61b=this['_annotationViews']['get'](_0x16428a['id']),_0x2df63f=_0x37b61b['mainView']):(_0x2df63f=new _0x187906(_0x3ffcd6['locale'],_0x16428a,_0x4fe1ab,{'disableComments':this['_disableComments'],'editorConfig':_0x1569c3['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1569c3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1569c3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1569c3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1c3191(_0x1569c3['get']('locale')),'CommentView':_0x1569c3['get']('comments')['CommentView'],'CommentsListView':_0x3bfd82,'CommentThreadInputView':_0x47d976}),_0x2df63f['acceptButton']['on']('execute',()=>{_0x3ffcd6['editing']['view']['focus']();}),_0x2df63f['discardButton']['on']('execute',()=>{_0x3ffcd6['editing']['view']['focus']();}),_0x37b61b=_0x114e6d['createAnnotationView'](this['editor']['locale'],_0x2df63f),_0x37b61b['bind']('isDirty')['to'](_0x2df63f,'isDirty'),_0x37b61b['bind']('length')['to'](_0x2df63f),_0x37b61b['bind']('type')['to'](_0x2df63f,'type',_0x18053=>'suggestion-'+_0x18053),this['_annotationViews']['set'](_0x16428a['id'],_0x37b61b));const _0x47ef4e=_0x2f7f6d['createCommentThreadController'](_0x16428a['commentThread'],_0x2df63f),_0x5a36f9=new oe(_0x3ffcd6,_0x16428a,_0x2df63f,_0x47ef4e),_0x24d578=_0x16428a['getAllAdjacentSuggestions']()['filter'](_0x36b75=>_0x36b75['isInContent']);_0x2df63f['descriptionParts']=_0x3ffcd6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x24d578),this['_suggestionToController']['set'](_0x16428a,_0x5a36f9),this['_viewToController']['set'](_0x2df63f,_0x5a36f9);const _0xd583de=_0x114e6d['createAnnotation']({'view':_0x37b61b,'target':()=>{const _0x245831=[],_0x1eda0f=_0x16428a['getAllAdjacentSuggestions']()['filter'](_0x21ab1f=>_0x21ab1f['isInContent']);for(const _0xb29cfb of _0x1eda0f)_0x245831['push'](..._0xb29cfb['getMarkers']());return _0x51f1d7(_0x3ffcd6['editing'],_0x245831);},'type':()=>'suggestion-'+_0x5a36f9['view']['type']});_0x2f7f6d['_bindAnnotationToEditors'](_0x2df63f,_0xd583de),_0x114e6d['add'](_0xd583de),_0x3a5066['registerAnnotation'](_0xd583de);}['_destroyController'](_0x58dbb5){const _0x512f75=this['editor']['plugins']['get']('CommentsRepository'),_0x2a4b81=this['editor']['plugins']['get']('Annotations'),_0x264540=this['_suggestionToController']['get'](_0x58dbb5),_0x17068e=_0x264540['view'],_0x4d1ae7=_0x2a4b81['getByInnerView'](_0x17068e);_0x512f75['_unbindEditors'](_0x17068e),_0x4d1ae7&&_0x2a4b81['remove'](_0x4d1ae7),this['_suggestionToController']['delete'](_0x58dbb5),this['_viewToController']['delete'](_0x17068e),_0x264540['destroy']();}['_updateController'](_0x4fcf26){if(!_0x4fcf26['isInContent']||!this['_suggestionToController']['has'](_0x4fcf26))return;const _0xf007a2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x210140=this['_suggestionToController']['get'](_0x4fcf26),_0xad8d30=_0x4fcf26['getAllAdjacentSuggestions']();_0x210140['view']['descriptionParts']=_0xf007a2['descriptionFactory']['getDescriptions'](_0xad8d30);}['destroy'](){for(const _0x19f67f of this['_suggestionToController']['keys']())this['_destroyController'](_0x19f67f);for(const _0x1d7b8f of this['_annotationViews']['values']())_0x1d7b8f['mainView']['destroy']();super['destroy']();}}function ae(_0x525484){return'model'in _0x525484;}class k extends _0x1fe610{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2fadbe){this['editor']['plugins']['get'](p)['adapter']=_0x2fadbe;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4a0eb1){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4a0eb1);}['getSuggestions']({skipNotAttached:_0x53e8b0=!0x1,toJSON:_0x51832f=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x53e8b0,'toJSON':_0x51832f});}['getSuggestion'](_0x5db681){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5db681);}}const T=['Pagination'];class P extends _0x1fe610{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x52f83f=this['editor'];if(_0x52f83f['config']['define']('trackChangesData.editorCreator',_0x278f25=>{const _0x2296fb=_0x52f83f['model']['document']['getRootNames']()['reduce']((_0x45cb70,_0x2ccfa2)=>(_0x45cb70[_0x2ccfa2]='',_0x45cb70),{});return _0x52f83f['constructor']['create'](_0x2296fb,_0x278f25);}),'function'!=typeof _0x52f83f['config']['get']('trackChangesData')['editorCreator'])throw new _0x1a825e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x35b51a){return N(this['editor'],!0x0,_0x35b51a);}['getDataWithDiscardedSuggestions'](_0x5d135a){return N(this['editor'],!0x1,_0x5d135a);}}class D extends _0x1fe610{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4a4925){super(_0x4a4925),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(_0xf65b7a){return void 0x0!==_0xf65b7a['getRootsAttributes'];}async function N(_0x2fb3b5,_0x9fb9b8,_0x47d247){const _0x58329b=_0x1b00e7(_0x2fb3b5,T);_0x58329b['plugins']['push'](p,D),_0x58329b['rootsAttributes']=v(_0x2fb3b5)?_0x2fb3b5['getRootsAttributes']():void 0x0;const _0x31caac=document['createDocumentFragment'](),_0x2c3385=_0x2fb3b5['config']['get']('trackChangesData')['editorCreator'],_0x59e3e1=await _0x2c3385(_0x58329b,()=>function(_0xbbc852){const _0x5aec24=document['createElement']('div');return _0xbbc852['appendChild'](_0x5aec24),_0x5aec24;}(_0x31caac));!function(_0x160ca2,_0x4cb782){const _0x7218e3=_0x160ca2['model']['document']['getRootNames']()['reduce']((_0x13d514,_0x10222d)=>(_0x13d514[_0x10222d]=_0x160ca2['data']['get']({'rootName':_0x10222d}),_0x13d514),{}),_0x2968d1=_0x160ca2['plugins']['get']('Users')['users']['map'](_0x4e9b8d=>({'id':_0x4e9b8d['id'],'name':_0x4e9b8d['name']})),_0x175ce0=_0x160ca2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x218a0b=_0x160ca2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3ad1aa=_0x4cb782['plugins']['get']('Users'),_0x4a3a08=_0x4cb782['plugins']['get']('TrackChangesEditing'),_0x58cf40=_0x4cb782['plugins']['get']('CommentsRepository');for(const _0x3d2417 of _0x2968d1)_0x3ad1aa['getUser'](_0x3d2417['id'])||_0x3ad1aa['addUser'](_0x3d2417);_0x3ad1aa['me']||_0x3ad1aa['useAnonymousUser']();for(const _0x5d80d7 of _0x218a0b)_0x58cf40['addCommentThread'](_0x5d80d7);for(const _0x4b1cf7 of _0x175ce0)_0x4a3a08['addSuggestionData'](_0x4b1cf7);_0x4cb782['data']['set'](_0x7218e3);}(_0x2fb3b5,_0x59e3e1),_0x59e3e1['execute'](_0x9fb9b8?'acceptAllSuggestions':'discardAllSuggestions');const _0xc41c20=v(_0x59e3e1)?_0x59e3e1['getFullData'](_0x47d247):_0x59e3e1['data']['get'](_0x47d247);return await _0x59e3e1['destroy'](),_0xc41c20;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|