@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240705.1 → 0.0.0-nightly-20240707.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0xfd7f9a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x351af2,_0x15d135){super(),this['id']=_0x15d135['id'],this['type']=_0x15d135['type'],this['subType']=_0x15d135['subType']||null,this['author']=_0x15d135['author'],this['creator']=_0x15d135['creator']||_0x15d135['author'],this['isExternal']=Boolean(_0x15d135['attributes']&&_0x15d135['attributes']['@external']),this['data']=null,this['_model']=_0x351af2,this['_onAccept']=_0x15d135['onAccept'],this['_onDiscard']=_0x15d135['onDiscard'],this['_onAttributesChange']=_0x15d135['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x15d135['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 _0x489f22=this;for(;_0x489f22['previous'];)_0x489f22=_0x489f22['previous'];return _0x489f22;}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'](_0x33166a){this['_markerNames']['add'](_0x33166a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3fc72f=>this['_model']['markers']['get'](_0x3fc72f))['filter'](_0x281302=>_0x281302);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x441365=>{for(const _0x3f14ea of this['getMarkers']())_0x441365['removeMarker'](_0x3f14ea);}),this['_markerNames']['clear']();}['removeMarker'](_0x3e1cd3){this['_model']['change'](_0x5bde27=>{_0x5bde27['removeMarker'](_0x3e1cd3);}),this['_markerNames']['delete'](_0x3e1cd3);}['addRange'](_0x38efa0){const _0x3c2999='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3c2999),this['_model']['change'](_0x10701b=>{_0x10701b['addMarker'](_0x3c2999,{'range':_0x38efa0,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2f9f8a){for(const _0x1f9182 of this['getRanges']())if(_0x1f9182['isIntersecting'](_0x2f9f8a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x51321e=>_0x51321e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5199d5,_0x160e57)=>[..._0x5199d5,..._0x160e57['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xdbd448=this['getRanges']();if(0x1!=_0xdbd448['length'])return null;const _0x4577ce=_0xdbd448[0x0],_0x595308=_0x4577ce['start']['nodeAfter'],_0x4e71b6=_0x4577ce['end']['nodeBefore'];return _0x595308 instanceof _0x4d3aa6?_0x595308!=_0x4e71b6?null:_0x595308: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 _0x5d9483=[];let _0x1ed475=this['head'];for(;_0x1ed475;)_0x5d9483['push'](_0x1ed475),_0x1ed475=_0x1ed475['next'];return _0x5d9483;}['setAttribute'](_0x143eab,_0x1c6ab1){const _0x48a5c7=_0xfa6c3a(this['attributes']);_0x38fa70(_0x48a5c7,_0x143eab,_0x1c6ab1),_0x2eaac8(_0x48a5c7,this['attributes'])||(this['attributes']=_0x48a5c7,this['_onAttributesChange'](_0x48a5c7));}['removeAttribute'](_0x15a36b){const _0x445553=_0xfa6c3a(this['attributes']);_0x4c2aca(_0x445553,_0x15a36b),_0x2eaac8(_0x445553,this['attributes'])||(this['attributes']=_0x445553,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 _0x418fff()['substr'](0x1,0x5);}}function o(_0x3d82d4,_0x59c1cd,_0x2ff2c0){const t=_0x3d82d4['t'];switch(_0x59c1cd){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',_0x2ff2c0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2ff2c0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2ff2c0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2ff2c0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2ff2c0);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',_0x2ff2c0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2ff2c0);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',_0x2ff2c0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2ff2c0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2ff2c0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2ff2c0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2ff2c0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2ff2c0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2ff2c0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2ff2c0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2ff2c0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2ff2c0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2ff2c0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2ff2c0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2ff2c0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2ff2c0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2ff2c0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2ff2c0);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'},_0x2ff2c0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2ff2c0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2ff2c0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2ff2c0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2ff2c0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2ff2c0);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'},_0x2ff2c0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2ff2c0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2ff2c0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2ff2c0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2ff2c0);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'},_0x2ff2c0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2ff2c0);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'},_0x2ff2c0);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'},_0x2ff2c0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2ff2c0);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'},_0x2ff2c0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2ff2c0);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'},_0x2ff2c0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2ff2c0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2ff2c0);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'},_0x2ff2c0);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'},_0x2ff2c0);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 _0x59c1cd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xe690bd,_0x3105f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xe690bd,this['_locale']=_0x3105f;}['getDescriptions'](_0x46be6a){const _0x57e81d=[],_0x513a4e=new Set(),_0x289719=new Set();for(let _0x41a42a=0x0;_0x41a42a<_0x46be6a['length'];_0x41a42a++){const _0x1d52b1=_0x46be6a[_0x41a42a];if(!_0x1d52b1['isInContent'])continue;const _0x50ac81=this['_handleCustomCallbackDescription'](_0x1d52b1);if(_0x50ac81){if(null!=_0x1d52b1['subType']){if(_0x513a4e['has'](_0x1d52b1['subType']))continue;_0x513a4e['add'](_0x1d52b1['subType']);}_0x57e81d['push'](_0x50ac81);}else{if('attribute'!=_0x1d52b1['type'])'insertion'!=_0x1d52b1['type']&&'deletion'!=_0x1d52b1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x57e81d,_0x1d52b1,_0x46be6a[_0x41a42a+0x1]);else{const _0x1c7c71=_0x1d52b1['data']['key'];if(_0x289719['has'](_0x1c7c71))continue;_0x289719['add'](_0x1d52b1['data']['key']),_0x1c7c71==m?this['_handleRenameSuggestionDescription'](_0x57e81d,_0x1d52b1):this['_handleAttributeSuggestionDescription'](_0x57e81d,_0x1d52b1);}}}return this['_resolveDescriptionItems'](_0x57e81d);}['registerDescriptionCallback'](_0x4dcf69){this['_customCallbacks']['push'](_0x4dcf69);}['registerElementLabel'](_0x17f5ab,_0x483bc9,_0x1150a7=_0x1b86cf['normal']){'function'==typeof _0x17f5ab?_0x4cbe5d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x17f5ab,'label':_0x483bc9,'priority':_0x1150a7}):this['_itemLabels']['set'](_0x17f5ab,_0x483bc9);}['registerAttributeLabel'](_0x431760,_0x2cfff1){this['_attributeLabels']['set'](_0x431760,_0x2cfff1);}['getItemLabel'](_0x185098,_0x2e5eca=0x1){let _0x5c29da;for(const _0x196348 of this['_itemLabelsCallbacks'])if(_0x196348['matchingCallback'](_0x185098)){_0x5c29da=_0x196348['label'];break;}return _0x5c29da||(_0x5c29da=this['_itemLabels']['get'](_0x185098['name'])),_0x5c29da?_0x5c29da(_0x2e5eca):0x1!==_0x2e5eca?_0x2e5eca+'\x20'+_0x185098['name']+'s':''+_0x185098['name'];}['_addDescriptionItems'](_0x582ecd,_0x8dee39){const _0x48b0c2=_0x8dee39['getFirstRange']()['getWalker'](),_0x530dc2='insertion'==_0x8dee39['type']?'add':'remove';for(const _0x5b4b8c of _0x48b0c2){const _0x3f8a42=_0x5b4b8c['item'],_0x35211f=_0x582ecd[_0x582ecd['length']-0x1];if(_0x3f8a42['is']('$textProxy'))_0x35211f&&_0x35211f['type']['indexOf']('Container')>-0x1&&_0x582ecd['pop'](),_0x35211f&&'text'==_0x35211f['type']?_0x35211f[_0x530dc2]+=_0x3f8a42['data']:_0x582ecd['push']({'type':'text','add':'add'==_0x530dc2?_0x3f8a42['data']:'','remove':'remove'==_0x530dc2?_0x3f8a42['data']:''});else{if(this['_schema']['isObject'](_0x3f8a42)){const _0x312dc9=_0x3f8a42;if(_0x35211f&&_0x35211f['type']['indexOf']('Container')>-0x1&&_0x582ecd['pop'](),'elementEnd'==_0x5b4b8c['type'])continue;_0x35211f&&_0x35211f['type']==_0x530dc2+'Object'&&_0x35211f['element']['name']==_0x312dc9['name']?_0x35211f['quantity']++:_0x582ecd['push']({'type':_0x530dc2+'Object','element':_0x312dc9,'quantity':0x1}),_0x48b0c2['skip'](_0x725b79=>!('elementEnd'==_0x725b79['type']&&_0x725b79['item']==_0x3f8a42));}else{if(this['_schema']['checkChild'](_0x3f8a42,'$text')||_0x3f8a42['is']('element','softBreak')){const _0x32f6b6=_0x3f8a42;if('add'==_0x530dc2&&'elementStart'==_0x5b4b8c['type']||'remove'==_0x530dc2&&'elementEnd'==_0x5b4b8c['type'])continue;if(_0x35211f&&-0x1==_0x35211f['type']['indexOf']('Container')){'text'==_0x35211f['type']&&(_0x35211f[_0x530dc2]+='\x0a');continue;}let _0x562cd1;if(_0x562cd1='add'==_0x530dc2?_0x32f6b6['nextSibling']&&!this['_schema']['isObject'](_0x32f6b6['nextSibling'])?_0x32f6b6['nextSibling']:null:_0x32f6b6['previousSibling']&&!this['_schema']['isObject'](_0x32f6b6['previousSibling'])?_0x32f6b6['previousSibling']:null,_0x32f6b6['isEmpty']||_0x562cd1&&_0x562cd1['isEmpty']){const _0x3f18e1=_0x562cd1&&_0x562cd1['isEmpty']?_0x562cd1:_0x32f6b6;_0x35211f&&_0x35211f['type']==_0x530dc2+'EmptyContainer'&&_0x35211f['element']['name']==_0x3f18e1['name']?_0x35211f['quantity']++:_0x582ecd['push']({'type':_0x530dc2+'EmptyContainer','element':_0x3f18e1,'quantity':0x1});}else _0x582ecd['push']({'type':_0x530dc2+'Container','element':_0x32f6b6});}}}}}['_resolveDescriptionItems'](_0x5ad408){const _0x49a3df=this['_locale'],_0x24c884=[],_0x1b6656=[],_0x297e09=[];for(const _0x5f2906 of _0x5ad408)switch(_0x5f2906['type']){case'text':if(_0x5f2906['add']=_0x5f2906['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5f2906['remove']=_0x5f2906['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5f2906['add']&&''!=_0x5f2906['remove']){_0x24c884['push']({'type':'replace','content':o(_0x49a3df,'REPLACE_TEXT',['\x22'+_0x5f2906['remove']+'\x22','\x22'+_0x5f2906['add']+'\x22'])});continue;}if(null!=_0x5f2906['add']['match'](/^ +$/)){_0x24c884['push']({'type':'insertion','content':o(_0x49a3df,'*Insert:*\x20%0',o(_0x49a3df,'ELEMENT_SPACE',_0x5f2906['add']['length']))});continue;}if(null!=_0x5f2906['remove']['match'](/^ +$/)){_0x24c884['push']({'type':'deletion','content':o(_0x49a3df,'*Remove:*\x20%0',o(_0x49a3df,'ELEMENT_SPACE',_0x5f2906['remove']['length']))});continue;}if(''!=_0x5f2906['add']){_0x24c884['push']({'type':'insertion','content':o(_0x49a3df,'*Insert:*\x20%0','\x22'+_0x5f2906['add']+'\x22')});continue;}_0x24c884['push']({'type':'deletion','content':o(_0x49a3df,'*Remove:*\x20%0','\x22'+_0x5f2906['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x24c884['push']({'type':'insertion','content':o(_0x49a3df,'*Insert:*\x20%0',this['getItemLabel'](_0x5f2906['element'],_0x5f2906['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x24c884['push']({'type':'deletion','content':o(_0x49a3df,'*Remove:*\x20%0',this['getItemLabel'](_0x5f2906['element'],_0x5f2906['quantity']))});continue;case'addContainer':_0x24c884['push']({'type':'insertion','content':o(_0x49a3df,'*Split:*\x20%0',this['getItemLabel'](_0x5f2906['element'],_0x5f2906['quantity']))});continue;case'removeContainer':_0x24c884['push']({'type':'deletion','content':o(_0x49a3df,'*Merge:*\x20%0',this['getItemLabel'](_0x5f2906['element'],_0x5f2906['quantity']))});continue;case'addFormat':_0x1b6656['push'](_0x5f2906['key']);continue;case'removeFormat':_0x297e09['push'](_0x5f2906['key']);continue;default:_0x24c884['push'](_0x5f2906);}if(_0x1b6656['length']){const _0x262e93=_0x1b6656['map'](_0x1f588d=>this['_attributeLabels']['has'](_0x1f588d)?this['_attributeLabels']['get'](_0x1f588d):_0x1f588d)['join'](',\x20');_0x24c884['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x262e93)});}if(_0x297e09['length']){const _0x5ac130=_0x297e09['map'](_0x5109c4=>this['_attributeLabels']['has'](_0x5109c4)?this['_attributeLabels']['get'](_0x5109c4):_0x5109c4)['join'](',\x20');_0x24c884['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5ac130)});}return _0x24c884;}['_handleCustomCallbackDescription'](_0x578d74){for(const _0x32f336 of this['_customCallbacks']){const _0x171784=_0x32f336(_0x578d74);if(_0x171784&&'type'in _0x171784)return _0x171784;}}['_handleAttributeSuggestionDescription'](_0x2bafba,_0x297a20){const _0x73e83e=_0x297a20['data'],_0x4c8755=void 0x0===_0x73e83e['newValue']?'removeFormat':'addFormat';_0x2bafba['push']({'type':_0x4c8755,'key':_0x73e83e['key']});}['_handleRenameSuggestionDescription'](_0x2ccc69,_0x43200d){_0x2ccc69['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x43200d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x54f243,_0x1915e4,_0x2fda8e){if(this['_addDescriptionItems'](_0x54f243,_0x1915e4),_0x2fda8e&&_0x2fda8e['getFirstRange']()&&!_0x1915e4['getFirstRange']()['end']['isEqual'](_0x2fda8e['getFirstRange']()['start'])){const _0x41c8b7=_0x54f243[_0x54f243['length']-0x1],_0x4cdf30='insertion'==_0x1915e4['type']?'add':'remove';_0x41c8b7&&'text'==_0x41c8b7['type']&&(_0x41c8b7[_0x4cdf30]+='\x0a');}}}class E extends _0x58f0a6{['afterInit'](){const _0x179db0=this['editor'],_0x200dbf=_0x179db0['plugins']['get']('TrackChangesEditing');_0x179db0['commands']['get']('showAIAssistant')&&_0x200dbf['enableCommand']('showAIAssistant');}}class V extends _0x58f0a6{['afterInit'](){const _0x541a8e=this['editor'],_0x262301=_0x541a8e['locale'];if(!_0x541a8e['plugins']['has']('AlignmentEditing'))return;const _0x42613f=_0x541a8e['plugins']['get']('TrackChangesEditing');_0x42613f['enableDefaultAttributesIntegration']('alignment'),_0x42613f['registerBlockAttribute']('alignment'),_0x42613f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x262301,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf44ccb=this['editor'],_0x55c78a=_0xf44ccb['locale'];_0xf44ccb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x386a8d=>{if('formatBlock'!=_0x386a8d['type'])return;const {data:_0x64ec74}=_0x386a8d;if(_0x64ec74&&'alignment'==_0x64ec74['commandName']){const _0x4a860b=_0x64ec74['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x55c78a,'*Format:*\x20%0',function(_0x25926c){switch(_0x25926c){case'left':return o(_0x55c78a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x55c78a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x55c78a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x55c78a,'FORMAT_JUSTIFY_TEXT');}}(_0x4a860b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x58f0a6{['afterInit'](){const _0x310072=this['editor'],_0x1de020=_0x310072['plugins']['get']('TrackChangesEditing'),_0x54ce61=_0x310072['locale'];for(const _0x25b6a1 of ti){if(!_0x310072['plugins']['has'](_0x25b6a1))continue;const _0x1df24f=_0x25b6a1['slice'](0x0,-0x7)['toLowerCase'](),_0x2c6132='FORMAT_'+_0x1df24f['toUpperCase']();_0x1de020['enableDefaultAttributesIntegration'](_0x1df24f),_0x1de020['registerInlineAttribute'](_0x1df24f),_0x1de020['descriptionFactory']['registerAttributeLabel'](_0x1df24f,o(_0x54ce61,_0x2c6132));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x181565=this['editor'],_0x135414=_0x181565['locale'],_0x3b0fcf=_0x181565['plugins']['get']('TrackChangesEditing');function _0x3f2bda(_0x48f3bc,_0xc4db67){_0x3b0fcf['descriptionFactory']['registerDescriptionCallback'](_0x5f327b=>{if('formatInline'!=_0x5f327b['type'])return;const {data:_0x282664}=_0x5f327b;return _0x282664&&_0x282664['commandName']===_0x48f3bc?_0x282664['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x135414,'*Format:*\x20%0',_0xc4db67)}:{'type':'format','content':o(_0x135414,'*Remove\x20format:*\x20%0',_0xc4db67)}:void 0x0;});}_0x3f2bda('bold',o(_0x135414,'FORMAT_BOLD')),_0x3f2bda('italic',o(_0x135414,'FORMAT_ITALIC')),_0x3f2bda('underline',o(_0x135414,'FORMAT_UNDERLINE')),_0x3f2bda('code',o(_0x135414,'FORMAT_CODE')),_0x3f2bda('strikethrough',o(_0x135414,'FORMAT_STRIKETHROUGH')),_0x3f2bda('subscript',o(_0x135414,'FORMAT_SUBSCRIPT')),_0x3f2bda('superscript',o(_0x135414,'FORMAT_SUPERSCRIPT'));}}class O extends _0x58f0a6{['afterInit'](){const _0x2ab47b=this['editor'],_0x2902e2=_0x2ab47b['locale'];if(!_0x2ab47b['plugins']['has']('BlockQuoteEditing'))return;const _0x2d2906=_0x2ab47b['plugins']['get']('TrackChangesEditing'),_0x4f44db=this['editor']['commands']['get']('blockQuote');_0x2d2906['enableCommand']('blockQuote',(_0x57220e,_0x539035={})=>{const _0x7cabbf=this['editor']['model']['document']['selection'],_0x1c9d49=_0x539035&&void 0x0!==_0x539035['forceValue']?_0x539035['forceValue']:!_0x4f44db['value'];let _0x2c3785=[];if(_0x1c9d49){const _0x52606e=Array['from'](_0x7cabbf['getSelectedBlocks']())['filter'](_0x4c4d17=>oo(_0x4c4d17)||function(_0x40e5ff,_0x419059){const _0x55e01b=_0x419059['checkChild'](_0x40e5ff['parent'],'blockQuote'),_0x3f3bf1=_0x419059['checkChild'](['$root','blockQuote'],_0x40e5ff);return _0x55e01b&&_0x3f3bf1;}(_0x4c4d17,this['editor']['model']['schema']));_0x2c3785=to(_0x52606e,_0x2ab47b['model']);}else{const _0x5e303d=Array['from'](_0x7cabbf['getSelectedBlocks']())['filter'](_0x529d13=>oo(_0x529d13));_0x2c3785=to(_0x5e303d,_0x2ab47b['model']);}_0x2ab47b['model']['change'](()=>{for(const _0x573cb9 of _0x2c3785)_0x2d2906['markBlockFormat'](_0x573cb9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1c9d49}]});});}),_0x2d2906['descriptionFactory']['registerDescriptionCallback'](_0x757f92=>{const {data:_0x3c8901}=_0x757f92;if(_0x3c8901&&'blockQuote'==_0x3c8901['commandName']){const _0x51ea45=o(_0x2902e2,'ELEMENT_BLOCK_QUOTE');return _0x3c8901['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2902e2,'*Set\x20format:*\x20%0',_0x51ea45)}:{'type':'format','content':o(_0x2902e2,'*Remove\x20format:*\x20%0',_0x51ea45)};}});}}function oo(_0x37ad4c){return'blockQuote'==_0x37ad4c['parent']['name'];}class G extends _0x58f0a6{['afterInit'](){const _0x23ae42=this['editor'];_0x23ae42['plugins']['has']('CaseChange')&&(_0x23ae42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x23ae42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x23ae42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x58f0a6{['afterInit'](){const _0x205809=this['editor'];_0x205809['commands']['get']('ckbox')&&_0x205809['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x58f0a6{['afterInit'](){const _0x1e55ad=this['editor'];if(!_0x1e55ad['plugins']['has']('CodeBlock'))return;const _0x38f609=_0x1e55ad['plugins']['get']('TrackChangesEditing'),_0x50220c=_0x1e55ad['locale'],_0x167690=_0x1e55ad['config']['get']('codeBlock')['languages'],_0xabde11=_0x1e55ad['commands']['get']('codeBlock');_0x38f609['enableCommand']('indentCodeBlock'),_0x38f609['enableCommand']('outdentCodeBlock'),_0x38f609['enableCommand']('codeBlock',(_0x27e9be,_0x47141f={})=>{const _0x180449=_0x1e55ad['model'],_0x23cc54=_0x1e55ad['model']['document']['selection'],_0x195435=_0x47141f&&void 0x0!==_0x47141f['forceValue']?_0x47141f['forceValue']:!_0xabde11['value'];let _0xaddde6;_0x47141f['language']||(_0x47141f['language']=_0x167690[0x0]['language']),_0xaddde6=_0x195435?Array['from'](_0x23cc54['getSelectedBlocks']())['filter'](_0x543a71=>eo(_0x543a71)||function(_0x594aff,_0x4394b4){if(_0x594aff['is']('rootElement')||_0x4394b4['isLimit'](_0x594aff))return!0x1;return _0x4394b4['checkChild'](_0x594aff['parent'],'codeBlock');}(_0x543a71,_0x180449['schema'])):Array['from'](_0x23cc54['getSelectedBlocks']())['filter'](_0x5dd762=>eo(_0x5dd762));const _0x39c795=to(_0xaddde6,_0x180449);_0x180449['change'](()=>{for(const _0x368a8f of _0x39c795)_0x38f609['markBlockFormat'](_0x368a8f,{'commandName':'codeBlock','commandParams':[{..._0x47141f,'forceValue':_0x195435}],'formatGroupId':'blockName'});});}),(_0x38f609['descriptionFactory']['registerElementLabel']('codeBlock',_0x50296e=>o(_0x50220c,'ELEMENT_CODE_BLOCK',_0x50296e)),_0x38f609['descriptionFactory']['registerDescriptionCallback'](_0x109309=>{if('formatBlock'!=_0x109309['type'])return;const _0x5966c6=_0x50220c['t'],{data:_0x412a50}=_0x109309;if(!_0x412a50||'codeBlock'!=_0x412a50['commandName'])return;const _0x17b57b=_0x412a50['commandParams'][0x0]['language'],_0x30d4ea=_0x5966c6(_0x167690['find'](_0x260778=>_0x260778['language']===_0x17b57b)['label'])['toLowerCase']();return _0x412a50['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50220c,'*Set\x20format:*\x20%0',o(_0x50220c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x30d4ea+')')}:{'type':'format','content':o(_0x50220c,'*Remove\x20format:*\x20%0',o(_0x50220c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2dd9c9){return'codeBlock'==_0x2dd9c9['name'];}class H extends _0x58f0a6{['afterInit'](){const _0x4d3e75=this['editor'];if(!_0x4d3e75['plugins']['has']('CommentsEditing'))return;_0x4d3e75['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4f66a6,_0x55b1aa,_0x435c53){const _0xeae889=[];for(const _0x918fa9 of _0x55b1aa['getItems']())_0x918fa9['hasAttribute'](_0x4f66a6)&&_0xeae889['push'](_0x435c53['createRangeOn'](_0x918fa9));return _0xeae889;}function _e(_0x1694d7,_0x5ca2ea,{showActiveMarker:_0x5d20bd=!0x0}={}){const _0x3abdda=_0x1694d7['plugins']['get']('TrackChangesEditing');return(_0x241cfd,_0x4feb59,_0x4121d1)=>{if(!_0x4121d1['consumable']['test'](_0x4feb59['markerRange'],_0x241cfd['name']))return;const _0x5a5f18=_0x4feb59['markerRange']['getWalker'](),_0x191e4f=_0x4feb59['markerRange']['start'],_0x459dfd=_0x1694d7['model']['schema'];let _0x42c0ac=null,_0x3c1c76=null,_0x5c4eea=!0x1,_0x5399a9=!0x1;for(const _0x79816c of _0x5a5f18){const _0x4a4f24=_0x79816c['item'];_0x5c4eea=_0x5c4eea||_0x459dfd['isContent'](_0x4a4f24);const _0x407e7f=_0x4121d1['mapper']['toViewElement'](_0x4a4f24);if(_0x407e7f&&_0x407e7f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x79816c['type']&&(_0x459dfd['isBlock'](_0x4a4f24)&&!_0x459dfd['isLimit'](_0x4a4f24)&&(_0x4a4f24['nextSibling']||_0x191e4f['isAtEnd']?_0x42c0ac&&_0x42c0ac['parent']==_0x4a4f24||(_0x42c0ac=_0x4a4f24,_0x4594d1(_0x79816c['previousPosition']),_0x5399a9=!0x0):_0x3c1c76=_0x3c1c76||_0x79816c['previousPosition']));}function _0x4594d1(_0x59b8bf){const _0x3d145c=_0x4121d1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5ca2ea}),_0x23fc0b=_0x4121d1['mapper']['toViewPosition'](_0x59b8bf);_0x5d20bd&&_0x3abdda['activeMarkers']['includes'](_0x4feb59['markerName'])&&_0x4121d1['writer']['addClass']('ck-suggestion-marker--active',_0x3d145c),_0x4121d1['writer']['insert'](_0x23fc0b,_0x3d145c),_0x4121d1['mapper']['bindElementToMarker'](_0x3d145c,_0x4feb59['markerName']);}_0x5c4eea||_0x5399a9||!_0x3c1c76||_0x4594d1(_0x3c1c76);};}class q extends _0x58f0a6{static get['requires'](){return[_0x1026bf];}['init'](){const _0x451aac=this['editor'],_0x90c0d8=_0x451aac['plugins']['get']('TrackChangesEditing');_0x90c0d8['enableCommand']('delete');const _0x177c89=_0x451aac['commands']['get']('deleteForward');_0x90c0d8['enableCommand']('deleteForward',(_0x3a2e53,_0xa71de5={})=>{const _0x49a551=_0x451aac['model']['createSelection'](_0x451aac['model']['document']['selection']);_0x49a551['isCollapsed']&&_0x451aac['model']['modifySelection'](_0x49a551,{'direction':'forward','unit':_0xa71de5['unit']});const _0xc299ff=_0x49a551['getFirstRange'](),_0x63405f=_0x5733e9['fromRange'](_0xc299ff);let _0x1d8dc1;_0x3a2e53(_0xa71de5),_0x1d8dc1='$graveyard'==_0x63405f['root']['rootName']?_0x451aac['model']['createRange'](_0xc299ff['start']):_0x451aac['model']['createRange'](_0x63405f['start'],_0x63405f['end']),_0x63405f['detach'](),_0x451aac['model']['enqueueChange'](_0x177c89['buffer']['batch'],_0x364023=>{_0x177c89['buffer']['lock'](),_0x364023['setSelection'](_0x364023['createRange'](_0x1d8dc1['end'])),_0x177c89['buffer']['unlock']();});}),_0x451aac['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x451aac,'merge'),{'priority':'high'}),_0x451aac['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1f5bae,_0x1e05d6,_0xf6cb12)=>{_0xf6cb12['options']['showSuggestionHighlights']&&_e(_0x451aac,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1f5bae,_0x1e05d6,_0xf6cb12);},{'priority':'high'}),_0x451aac['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1ec578,_0x3ce29a,_0x300657)=>{const _0x4da02d=_0x300657['mapper']['markerNameToElements'](_0x3ce29a['markerName']);if(_0x4da02d){for(const _0x78ebe4 of _0x4da02d)_0x78ebe4['is']('uiElement')&&(_0x300657['mapper']['unbindElementFromMarkerName'](_0x78ebe4,_0x3ce29a['markerName']),_0x300657['writer']['remove'](_0x78ebe4));}},{'priority':'high'});}}class z extends _0x58f0a6{['afterInit'](){const _0x4f1253=this['editor'];if(!_0x4f1253['plugins']['has']('ListEditing'))return;const _0x347890=_0x4f1253['locale'],_0x38b703=_0x4f1253['plugins']['get']('TrackChangesEditing'),_0x52f499=_0x4f1253['plugins']['has']('TodoListEditing'),_0x262e7b=!!_0x4f1253['config']['get']('list.multiBlock');function _0x2caaf5(_0x2f34f5){return{'type':'format','content':''+o(_0x347890,'*Set\x20format:*\x20%0',_0x2f34f5)};}function _0x5ee0a9(_0x50e97f){return{'type':'format','content':''+o(_0x347890,'*Remove\x20format:*\x20%0',_0x50e97f)};}_0x38b703['enableDefaultAttributesIntegration']('numberedList'),_0x38b703['enableDefaultAttributesIntegration']('bulletedList'),_0x38b703['enableDefaultAttributesIntegration']('customNumberedList'),_0x38b703['enableDefaultAttributesIntegration']('customBulletedList'),_0x38b703['enableDefaultAttributesIntegration']('indentList'),_0x38b703['enableDefaultAttributesIntegration']('outdentList'),_0x38b703['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x38b703['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x38b703['registerBlockAttribute']('listItemId'),_0x38b703['registerBlockAttribute']('listType'),_0x38b703['registerBlockAttribute']('listIndent'),_0x262e7b&&(_0x38b703['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x38b703['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x52f499&&(_0x38b703['enableDefaultAttributesIntegration']('todoList'),_0x38b703['enableDefaultAttributesIntegration']('checkTodoList'),_0x38b703['registerBlockAttribute']('todoListChecked'),_0x38b703['descriptionFactory']['registerDescriptionCallback'](_0x13c607=>{const {data:_0x3946af}=_0x13c607;if(_0x3946af&&'todoListChecked'==_0x3946af['key'])return{'type':'format','content':_0x3946af['newValue']?o(_0x347890,'*Check\x20item*'):o(_0x347890,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x34e2da=>{if(_0x34e2da['batch']['isUndo'])return!0x1;let _0x3dcdfa=!0x1;const _0x327282=_0x38b703['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36321a=>'todoListChecked'===_0x38b703['_getAttributeKey'](_0x36321a));for(const _0x21cfb0 of _0x327282){'todo'!=_0x21cfb0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x38b703['_findSuggestions'](_0x21cfb0['getFirstRange'](),'attribute')['find'](_0x6a1690=>'listType'===_0x38b703['_getAttributeKey'](_0x6a1690['suggestion']))||(_0x34e2da['removeMarker'](_0x21cfb0['getFirstMarker']()),_0x3dcdfa=!0x0));}return _0x3dcdfa;})),_0x38b703['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x347890,'FORMAT_INDENT'));const _0x2eee88={'type':'format','content':''};_0x38b703['descriptionFactory']['registerDescriptionCallback'](_0x424afe=>{const {data:_0x5552ef}=_0x424afe;if(!_0x5552ef||'listType'!=_0x5552ef['key'])return;let _0xb5c9db=_0x424afe['head'];for(;_0xb5c9db;){if(_0xb5c9db['data']&&(('listStyle'==_0xb5c9db['data']['key']||'listMarkerStyle'==_0xb5c9db['data']['key'])&&(_0xb5c9db['data']['newValue']&&'default'!=_0xb5c9db['data']['newValue']||'default'!=_0xb5c9db['data']['oldValue']&&!_0x5552ef['newValue'])||!_0x262e7b&&_0xb5c9db['data']['key']==m))return _0x2eee88;_0xb5c9db=_0xb5c9db['next'];}if(null==_0x5552ef['newValue'])switch(_0x5552ef['oldValue']){case'bulleted':return _0x5ee0a9(o(_0x347890,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ee0a9(o(_0x347890,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ee0a9(o(_0x347890,'ELEMENT_TODO_LIST'));}switch(_0x5552ef['newValue']){case'bulleted':return _0x2caaf5(o(_0x347890,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2caaf5(o(_0x347890,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2caaf5(o(_0x347890,'ELEMENT_TODO_LIST'));}}),_0x38b703['descriptionFactory']['registerDescriptionCallback'](_0x2f6af2=>{const {data:_0x351965}=_0x2f6af2;if(_0x351965&&'listIndent'==_0x351965['key'])return null==_0x351965['newValue']||null==_0x351965['oldValue']&&0x0==_0x351965['newValue']?_0x2eee88:void 0x0;}),_0x38b703['descriptionFactory']['registerDescriptionCallback'](_0x2ee014=>{if('attribute'!=_0x2ee014['type'])return;const {data:_0x1e0b07}=_0x2ee014;if(!_0x1e0b07||'listItemId'!=_0x1e0b07['key'])return;const _0x1ddc0f=le(_0x2ee014);return'newValue'==_0x1ddc0f?{'type':'format','content':o(_0x347890,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1ddc0f?{'type':'format','content':o(_0x347890,'*Split:*\x20list\x20item')}:_0x2eee88;}),_0x4f1253['model']['document']['registerPostFixer'](_0x27f6bc=>this['listItemIdFixer'](_0x27f6bc)),_0x4f1253['model']['document']['registerPostFixer'](_0x5abf3b=>this['noTrackChangesFixer'](_0x5abf3b)),_0x4f1253['model']['document']['registerPostFixer'](_0x412553=>this['assureChains'](_0x412553)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4fdec6){if(_0x4fdec6['batch']['isUndo']||!_0x4fdec6['batch']['isLocal'])return!0x1;let _0x2df6f8=!0x1;const _0x5ede68=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dcd2e=>_0x5dcd2e['data']&&'listItemId'==_0x5dcd2e['data']['key'])['filter'](_0x105cb0=>_0x105cb0['data']['newValue']&&_0x105cb0['data']['oldValue']);for(const _0x4e5c17 of _0x5ede68)le(_0x4e5c17)||(_0x4fdec6['removeMarker'](_0x4e5c17['getFirstMarker']()),_0x2df6f8=!0x0);return _0x2df6f8;}['noTrackChangesFixer'](_0x49da89){if(_0x49da89['batch']['isUndo']||!_0x49da89['batch']['isLocal'])return!0x1;const _0x33070d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x33070d['trackChangesCommand']['value'])return!0x1;let _0x257391=!0x1;const _0x4d8202=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x16d7c5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x22acb3=>'attribute'==_0x22acb3['type'])['filter'](_0x50d042=>_0x4d8202['includes'](_0x50d042['attributeKey']));if(0x0==_0x16d7c5['length'])return _0x257391;for(const _0x21c696 of _0x16d7c5){const _0x39b229=_0x33070d['_findSuggestions'](_0x21c696['range'],'attribute')['filter'](_0x33b8ed=>!_0x33b8ed['meta']['isNextTo'])['map'](_0x46e729=>_0x46e729['suggestion'])['filter'](_0x2011d1=>{const _0x64859d=_0x33070d['_getAttributeKey'](_0x2011d1);return _0x4d8202['includes'](_0x64859d);});if(_0x39b229['length']){for(const _0x158eb0 of _0x39b229)_0x49da89['removeMarker'](_0x158eb0['getFirstMarker']());_0x257391=!0x0;}}return _0x257391;}['assureChains'](_0x496952){if(_0x496952['batch']['isUndo']||!_0x496952['batch']['isLocal'])return!0x1;const _0x4cc77d=this['editor']['plugins']['get']('TrackChangesEditing');let _0x496bd9=!0x1;const _0x34e094=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x58e467 of _0x4cc77d['getSuggestions']({'skipNotAttached':!0x0})){const _0x499a0e=_0x4cc77d['_findSuggestions'](_0x58e467['getFirstRange'](),'attribute')['map'](_0x194862=>_0x194862['suggestion'])['filter'](_0x21fdd3=>_0x21fdd3['data']&&_0x34e094['includes'](_0x21fdd3['data']['key']));if(!_0x499a0e['length'])continue;const _0x233973=_0x499a0e[0x0]['head']['attributes']['groupId'];if(!_0x499a0e['every'](_0x1d3d0b=>_0x1d3d0b['attributes']['groupId']===_0x233973)){for(const _0xaf251d of _0x499a0e)_0x1322e4(_0xaf251d,_0x233973)&&(_0x496bd9=!0x0);}}return _0x496bd9;function _0x28b41a(_0x228190,_0x20460e){for(const _0x3be276 of _0x4cc77d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x434252=>'attribute'==_0x434252['type']&&_0x434252['attributes']['groupId']==_0x228190))_0x3be276['setAttribute']('groupId',_0x20460e);}function _0x1322e4(_0x499a20,_0x77b45b){let _0x235d9c=_0x499a20['head'],_0x7d7919=!0x1;for(;_0x235d9c;)_0x235d9c['attributes']['groupId']!=_0x77b45b&&(_0x28b41a(_0x235d9c['attributes']['groupId'],_0x77b45b),_0x235d9c['setAttribute']('groupId',_0x77b45b),_0x7d7919=!0x0),_0x235d9c=_0x235d9c['next'];return _0x7d7919;}}['_supportLegacySuggestions'](){const _0x5a4317=this['editor'],_0x359de8=_0x5a4317['locale'],_0x592927=_0x5a4317['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x592927['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xa34426,_0x12fde5){const _0xed9df4=[];for(let _0x5a8f90 of _0xa34426)_0x5a8f90['start']['nodeAfter']===_0x5a8f90['end']['parent']&&(_0x5a8f90=_0x5a4317['model']['createRange'](_0x5a4317['model']['createPositionAt'](_0x5a8f90['start']['nodeAfter'],0x0))),_0xed9df4['push'](_0x5a8f90);_0x5a4317['model']['change'](_0x1e9666=>{const _0x3d689b=_0x5a4317['model']['document']['selection'],_0x92b51a=Array['from'](_0x3d689b['getRanges']())['map'](_0x4c0972=>_0x5733e9['fromRange'](_0x4c0972));_0x1e9666['setSelection'](_0xed9df4),_0x5a4317['commands']['get'](_0x12fde5['commandName'])['refresh'](),_0x12fde5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5a4317['execute'](_0x12fde5['commandName'],..._0x12fde5['commandParams']),_0x1e9666['setSelection'](_0x92b51a);for(const _0x5c8afd of _0x92b51a)_0x5c8afd['detach']();});}),_0x592927['descriptionFactory']['registerElementLabel'](function(_0x1a6c1d){const _0x14ca87=!_0x5a4317['model']['schema']['isObject'](_0x1a6c1d),_0x240cc0=_0x1a6c1d['previousSibling'],_0x476cb7=_0x1a6c1d['nextSibling'],_0x584730=_0x1a6c1d['getAttribute']('listItemId'),_0x607afa=!_0x240cc0||_0x240cc0['getAttribute']('listItemId')!==_0x584730,_0x26c4f9=!_0x476cb7||_0x476cb7['getAttribute']('listItemId')!==_0x584730;return _0x14ca87&&Boolean(_0x584730)&&_0x607afa&&_0x26c4f9;},_0xb600bc=>o(_0x359de8,'ELEMENT_LIST_ITEM',_0xb600bc));}['_registerLegacyDescription'](){const _0x53e409=this['editor'],_0x87fed6=_0x53e409['locale'];function _0x35e8ad(_0x261454){const _0x2d9eb0=_0x53e409['commands']['get']('bulletedList')['value'],_0x3522d0=_0x53e409['commands']['get']('numberedList')['value'];return'numberedList'===_0x261454?_0x2d9eb0:_0x3522d0;}_0x53e409['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x563c36){if('formatBlock'!=_0x563c36['type'])return;const {data:_0x3404df}=_0x563c36;if(!_0x3404df)return;let _0x540af5,_0xb117ef,_0x399af1,_0x1e3f05;switch(_0x3404df['commandName']){case'bulletedList':_0x399af1=_0x3404df['commandParams'][0x0]['forceValue'],_0x1e3f05=_0x35e8ad(_0x3404df['commandName']),_0x540af5=_0x399af1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1e3f05&&_0x53e409['config']['get']('list.multiBlock')||(_0x540af5='*Change\x20to:*\x20%0'),_0xb117ef={'type':'format','content':o(_0x87fed6,_0x540af5,o(_0x87fed6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x399af1=_0x3404df['commandParams'][0x0]['forceValue'],_0x1e3f05=_0x35e8ad(_0x3404df['commandName']),_0x540af5=_0x399af1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1e3f05&&_0x53e409['config']['get']('list.multiBlock')||(_0x540af5='*Change\x20to:*\x20%0'),_0xb117ef={'type':'format','content':o(_0x87fed6,_0x540af5,o(_0x87fed6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x540af5='*Indent:*\x20%0',_0xb117ef={'type':'format','content':o(_0x87fed6,_0x540af5,o(_0x87fed6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x540af5=function(_0x490498){const _0x5d5fb7=_0x490498['getFirstRange']();let _0x197039=_0x5d5fb7['start']['nodeAfter'];for(;_0x197039&&_0x5d5fb7['containsItem'](_0x197039);){if(_0x197039['getAttribute']('listIndent')>0x0)return!0x1;_0x197039=_0x197039['nextSibling'];}return!0x0;}(_0x563c36)?o(_0x87fed6,'*Format:*\x20remove\x20from\x20%0',o(_0x87fed6,function(_0xba4106){return'ELEMENT_'+_0xba4106['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x563c36))):o(_0x87fed6,'*Outdent:*\x20%0',o(_0x87fed6,'ELEMENT_LIST_ITEM')),_0xb117ef={'type':'format','content':_0x540af5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3404df['multipleBlocks']&&(_0x540af5='*Merge:*\x20%0',_0xb117ef={'type':'deletion','content':o(_0x87fed6,_0x540af5,o(_0x87fed6,'ELEMENT_LIST_ITEM'))});}return _0xb117ef;});}}function le(_0x3f36e0){let _0x1277ab=_0x3f36e0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1277ab;){const _0x83e106=_0x1277ab['getAttribute']('listItemId');if(!_0x83e106)return!0x1;if(_0x83e106==_0x3f36e0['data']['newValue'])return'newValue';if(_0x83e106==_0x3f36e0['data']['oldValue'])return'oldValue';_0x1277ab=_0x1277ab['previousSibling'];}return!0x1;}class ue extends _0x58f0a6{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2bc4a9=this['editor']['config']['get']('list.properties'),_0x2f3c04=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bc4a9['styles']&&(_0x2f3c04['enableDefaultAttributesIntegration']('listStyle'),_0x2f3c04['registerBlockAttribute']('listStyle')),_0x2bc4a9['reversed']&&(_0x2f3c04['enableDefaultAttributesIntegration']('listReversed'),_0x2f3c04['registerBlockAttribute']('listReversed')),_0x2bc4a9['startIndex']&&(_0x2f3c04['enableDefaultAttributesIntegration']('listStart'),_0x2f3c04['registerBlockAttribute']('listStart'));const _0x30828f={'type':'format','content':''};_0x2f3c04['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1c139f=this['editor']['locale'];_0x2f3c04['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1c139f,'FORMAT_LIST_REVERSED')),_0x2f3c04['descriptionFactory']['registerDescriptionCallback'](_0x53dfd9=>{const {data:_0x2980c7}=_0x53dfd9;if(_0x2980c7&&'listReversed'==_0x2980c7['key'])return null==_0x2980c7['newValue']||0x0==_0x2980c7['newValue']&&null==_0x2980c7['oldValue']?_0x30828f:void 0x0;}),_0x2f3c04['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1c139f,'FORMAT_LIST_START')),_0x2f3c04['descriptionFactory']['registerDescriptionCallback'](_0x3d9ed3=>{const {data:_0xbf9151}=_0x3d9ed3;if(_0xbf9151&&'listStart'==_0xbf9151['key'])return null==_0xbf9151['newValue']||0x1==_0xbf9151['newValue']&&null==_0xbf9151['oldValue']?_0x30828f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1227c3=>{if(_0x1227c3['batch']['isUndo'])return!0x1;let _0x41c74d=!0x1;const _0x250374=_0x2f3c04['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41dd53=>{const _0x1a60b7=_0x2f3c04['_getAttributeKey'](_0x41dd53);return'listStart'==_0x1a60b7||'listReversed'==_0x1a60b7;});for(const _0x2951ac of _0x250374){const _0x3fe29b=_0x2951ac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3fe29b||'customNumbered'==_0x3fe29b)continue;_0x2f3c04['_findSuggestions'](_0x2951ac['getFirstRange'](),'attribute')['find'](_0x1361e1=>'listType'==_0x2f3c04['_getAttributeKey'](_0x1361e1['suggestion']))||(_0x1227c3['removeMarker'](_0x2951ac['getFirstMarker']()),_0x41c74d=!0x0);}return _0x41c74d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4fc6e2){const _0xa30589=this['editor']['locale'],{data:_0x35ef56}=_0x4fc6e2,_0x18b351={'type':'format','content':''};if(!_0x35ef56||'listStyle'!=_0x35ef56['key'])return;if(!_0x35ef56['oldValue'])return'default'==_0x35ef56['newValue']?_0x18b351:{'type':'format','content':''+o(_0xa30589,'*Set\x20format:*\x20%0',o(_0xa30589,this['_getTranslationKeyForListStyle'](_0x35ef56['newValue'])))};if(!_0x35ef56['newValue']){if('default'==_0x35ef56['oldValue'])return _0x18b351;let _0x3204fe=_0x4fc6e2['head'];for(;_0x3204fe;){if(_0x3204fe['data']&&'listType'==_0x3204fe['data']['key']&&_0x3204fe['data']['newValue'])return _0x18b351;_0x3204fe=_0x3204fe['next'];}return{'type':'format','content':''+o(_0xa30589,'*Remove\x20format:*\x20%0',o(_0xa30589,this['_getTranslationKeyForListStyle'](_0x35ef56['oldValue'])))};}if('default'!=_0x35ef56['newValue'])return{'type':'format','content':''+o(_0xa30589,'*Set\x20format:*\x20%0',o(_0xa30589,this['_getTranslationKeyForListStyle'](_0x35ef56['newValue'])))};let _0x18aca4=_0x4fc6e2['head'];for(;_0x18aca4;){if(_0x18aca4['data']&&'listType'==_0x18aca4['data']['key']&&_0x18aca4['data']['newValue']&&_0x18aca4['data']['oldValue'])return _0x18b351;_0x18aca4=_0x18aca4['next'];}return{'type':'format','content':o(_0xa30589,'*Set\x20format:*\x20%0',o(_0xa30589,'ELEMENT_'+_0x4fc6e2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xdbaa6c=this['editor'],_0x4b36ec=_0xdbaa6c['locale'];_0xdbaa6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x107166=>{if('formatBlock'!=_0x107166['type'])return;const {data:_0x5c9c0a}=_0x107166;if(!_0x5c9c0a)return;let _0x200c7f,_0x142846;switch(_0x5c9c0a['commandName']){case'listStyle':_0x200c7f='*Change\x20to:*\x20%0',_0x142846={'type':'format','content':o(_0x4b36ec,_0x200c7f,o(_0x4b36ec,this['_getTranslationKeyForListStyle'](_0x5c9c0a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x200c7f=_0x5c9c0a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x142846={'type':'format','content':o(_0x4b36ec,_0x200c7f)};break;case'listStart':_0x200c7f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x142846={'type':'format','content':o(_0x4b36ec,_0x200c7f,_0x5c9c0a['commandParams'][0x0]['startIndex'])};}return _0x142846;});}['_getTranslationKeyForListStyle'](_0xf9d2aa){return'ELEMENT_'+function(_0x2f96bf){if(pe['includes'](_0x2f96bf))return'bulleted';if(ye['includes'](_0x2f96bf))return'numbered';return null;}(_0xf9d2aa)['toUpperCase']()+'_LIST_'+_0xf9d2aa['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x58f0a6{static get['requires'](){return[_0xe8169];}['init'](){const _0x571d63=this['editor'],_0x3559cb=_0x571d63['plugins']['get']('TrackChangesEditing'),_0x420348=_0x571d63['commands']['get']('enter');_0x3559cb['enableCommand']('enter',()=>{_0x571d63['model']['change'](_0x4df972=>{const _0x54908b=_0x571d63['model']['document']['selection'],_0x30752c=_0x54908b['getFirstPosition'](),_0x5b3da0=_0x5733e9['fromRange'](_0x54908b['getFirstRange']());if(_0x420348['enterBlock'](_0x4df972)){const _0x142dbb=_0x571d63['model']['createPositionAt'](_0x30752c['parent']['nextSibling'],0x0),_0x271ed9=_0x4df972['createRange'](_0x30752c,_0x142dbb);_0x3559cb['markInsertion'](_0x271ed9);}else _0x4df972['setSelection'](_0x4df972['createRange'](_0x5b3da0['end']));_0x5b3da0['detach'](),_0x420348['fire']('afterExecute',{'writer':_0x4df972});});}),_0x571d63['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x571d63,'split'),{'priority':'high'}),_0x571d63['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2afb5f,_0x4a4c5c,_0xd32592)=>{const _0x5117f0=_0xd32592['mapper']['markerNameToElements'](_0x4a4c5c['markerName']);if(_0x5117f0){for(const _0x528821 of _0x5117f0)_0x528821['hasClass']('ck-suggestion-marker-split')&&(_0xd32592['mapper']['unbindElementFromMarkerName'](_0x528821,_0x4a4c5c['markerName']),_0xd32592['writer']['remove'](_0x528821));}},{'priority':'high'}),_0x571d63['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1f5fe2,_0x32fc4e,_0x3d6fc5)=>{_0x3d6fc5['options']['showSuggestionHighlights']&&_e(_0x571d63,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1f5fe2,_0x32fc4e,_0x3d6fc5);},{'priority':'high'});}}class J extends _0x58f0a6{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x244905=this['editor']['plugins']['get']('TrackChangesEditing');_0x244905['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x244905['enableCommand']('findNext'),_0x244905['enableCommand']('findPrevious'),_0x244905['enableCommand']('replace'),_0x244905['enableCommand']('replaceAll');}['handleFindCommand'](_0x48f448,_0x3eb6fd,_0x3c66c1={}){const _0x5ece9e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x48f448(_0x2601dd=>{let _0x340535=('string'==typeof _0x3eb6fd?_0x5ece9e['findByTextCallback'](_0x3eb6fd,_0x3c66c1):_0x3eb6fd)(_0x2601dd);Array['isArray'](_0x340535)&&(_0x340535={'results':_0x340535,'searchText':'string'==typeof _0x3eb6fd?_0x3eb6fd:''});const _0x49baae=_0x340535['results']['filter'](_0x2f514a=>!0x1===this['_isInDeletionRange'](_0x2f514a,_0x2601dd['item']));return{..._0x340535,'results':_0x49baae};},_0x3c66c1);}['_isInDeletionRange'](_0x44eceb,_0x36e712){const _0x3b67ae=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36e712,_0x44eceb['start']),this['editor']['model']['createPositionAt'](_0x36e712,_0x44eceb['end']));for(const _0x1f374 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3b67ae['getIntersection'](_0x1f374['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 _0x58f0a6{['afterInit'](){const _0x347498=this['editor']['locale'],_0x400b47=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4a8532,commandName:_0x34aa39}of ro)this['editor']['plugins']['has'](_0x4a8532)&&(_0x400b47['enableDefaultAttributesIntegration'](_0x34aa39),_0x400b47['registerInlineAttribute'](_0x34aa39));_0x400b47['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x347498,'FORMAT_FONT_SIZE')),_0x400b47['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x347498,'FORMAT_FONT_FAMILY')),_0x400b47['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x347498,'FORMAT_FONT_COLOR')),_0x400b47['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x347498,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x118e37=this['editor'],_0x108fd7=_0x118e37['locale'];_0x118e37['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x293019=>{const _0x25279b=_0x108fd7['t'];if('formatInline'!=_0x293019['type'])return;const {data:_0x492901}=_0x293019;if(null!=_0x492901){if('fontSize'==_0x492901['commandName']){const _0x1185a4=_0x492901['commandParams'][0x0]['value'];if(_0x1185a4){const _0x57065f=_0x25279b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1a6503=>_0x1a6503['model']==_0x1185a4)['title'])['toLowerCase']();return{'type':'format','content':o(_0x108fd7,'*Set\x20font\x20size:*\x20%0',_0x57065f)};}return{'type':'format','content':o(_0x108fd7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x492901['commandName']){const _0x3c6500=_0x492901['commandParams'][0x0]['value'];return _0x3c6500?{'type':'format','content':o(_0x108fd7,'*Set\x20font\x20family:*\x20%0',_0x3c6500)}:{'type':'format','content':o(_0x108fd7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x492901['commandName']){const _0x255853=_0x492901['commandParams'][0x0]['value'];if(_0x255853){const _0x284068=_0x3c1555(this['editor']['config']['get']('fontColor.colors'))['find'](_0x334b96=>_0x334b96['model']==_0x255853);let _0x5ec18f=_0x255853,_0x45c4dc='';return _0x284068&&(_0x5ec18f=_0x284068['label'],_0x45c4dc=_0x25279b(_0x5ec18f)['toLowerCase']()),{'type':'format','content':o(_0x108fd7,'*Set\x20font\x20color:*\x20%0',_0x45c4dc)['trim'](),'color':{'value':_0x255853,'title':_0x45c4dc||_0x5ec18f}};}return{'type':'format','content':o(_0x108fd7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x492901['commandName']){const _0x4a6eed=_0x492901['commandParams'][0x0]['value'];if(_0x4a6eed){const _0x132e2c=_0x3c1555(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5f3454=>_0x5f3454['model']==_0x4a6eed);let _0x454db6=_0x4a6eed,_0xe1d967='';return _0x132e2c&&(_0x454db6=_0x132e2c['label'],_0xe1d967=_0x25279b(_0x454db6)['toLowerCase']()),{'type':'format','content':o(_0x108fd7,'*Set\x20font\x20background\x20color:*\x20%0',_0xe1d967)['trim'](),'color':{'value':_0x4a6eed,'title':_0xe1d967||_0x454db6}};}return{'type':'format','content':o(_0x108fd7,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x58f0a6{['afterInit'](){const _0x20dee6=this['editor'],_0x3452f0=_0x20dee6['plugins']['get']('TrackChangesEditing'),_0x4fa26b=_0x20dee6['commands']['get']('copyFormat'),_0x9dfbac=_0x20dee6['commands']['get']('pasteFormat');_0x4fa26b&&_0x9dfbac&&(_0x3452f0['enableDefaultAttributesIntegration']('pasteFormat'),_0x3452f0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x26f964=this['editor'],_0x350864=_0x26f964['locale'];_0x26f964['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x383fb5=>{if('formatBlock'!=_0x383fb5['type']&&'formatInline'!=_0x383fb5['type'])return;const {data:_0x3ff02c}=_0x383fb5;if(_0x3ff02c&&'pasteFormat'===_0x3ff02c['commandName']){const _0x49b258=[],_0x422c95=_0x3ff02c['commandParams'][0x0];for(const [_0x1e661c,_0xcd081e]of Object['entries'](_0x422c95))_0x49b258['push'](so(_0x26f964,_0x1e661c,_0xcd081e));return _0x49b258['length']?{'type':'format','content':o(_0x350864,'*Set\x20format\x20to:*\x20%0',_0x49b258['join'](',\x20'))}:{'type':'format','content':o(_0x350864,'*Remove\x20all\x20formatting*')};}});}}function so(_0x136915,_0x4cb1dc,_0x327316){const _0x8ad40f=_0x136915['locale']['t'],_0x4851af=_0x4cb1dc['split'](/(?=[A-Z])/)['join']('\x20'),_0xa63f92=_0x8ad40f(_0x4851af['charAt'](0x0)['toUpperCase']()+_0x4851af['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x327316)return _0xa63f92;if('fontColor'===_0x4cb1dc||'fontBackgroundColor'===_0x4cb1dc){const _0x570da0=_0x3c1555(_0x136915['config']['get']('fontColor.colors'))['find'](_0xed3008=>_0xed3008['model']==_0x327316);return _0xa63f92+'\x20('+(_0x570da0?_0x8ad40f(_0x570da0['label'])['toLowerCase']():_0x327316)+')';}if('fontSize'===_0x4cb1dc&&isNaN(parseFloat(_0x327316))){const _0x4cb553=_0x136915['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x136915['config']['get']('fontSize.options'))['find'](_0x464e46=>_0x464e46['model']==_0x327316);return _0xa63f92+'\x20('+(_0x4cb553?_0x8ad40f(_0x4cb553['title'])['toLowerCase']():_0x327316)+')';}return _0xa63f92+'\x20('+_0x327316+')';}class Y extends _0x58f0a6{['_headingOptions'];['afterInit'](){const _0x1aeed1=this['editor'];if(!_0x1aeed1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1aeed1['config']['get']('heading.options');const _0x540763=_0x1aeed1['locale'],_0x1dcda0=_0x1aeed1['plugins']['get']('TrackChangesEditing');_0x1dcda0['enableDefaultAttributesIntegration']('heading');for(const _0x117740 of this['_headingOptions'])'paragraph'!=_0x117740['model']&&_0x1dcda0['descriptionFactory']['registerElementLabel'](_0x117740['model'],_0x569ace=>{const _0x595d1c=this['_getHeadingLevel'](_0x117740['model']);return null!==_0x595d1c?_0x4d337e(_0x569ace,_0x595d1c):_0x3194a9(_0x569ace,_0x117740['title']);});function _0x4d337e(_0x4fb2e0,_0x12b331){return o(_0x540763,'ELEMENT_HEADING',[_0x4fb2e0,_0x12b331]);}function _0x3194a9(_0x250640,_0x42a8e1){return o(_0x540763,'ELEMENT_HEADING_CUSTOM',[_0x250640,_0x42a8e1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28e51a=this['editor'],_0x5577af=_0x28e51a['locale'];function _0x408aae(_0x417c52,_0x1d4679){return o(_0x5577af,'ELEMENT_HEADING_CUSTOM',[_0x417c52,_0x1d4679]);}_0x28e51a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53a9fd=>{if('formatBlock'!=_0x53a9fd['type'])return;const {data:_0x2aa98c}=_0x53a9fd;if(_0x2aa98c&&'heading'==_0x2aa98c['commandName']){const _0xbefea0=_0x2aa98c['commandParams'][0x0]['value'],_0x21f471=this['_getHeadingLevel'](_0xbefea0);if(null!==_0x21f471)return{'type':'format','content':o(_0x5577af,'*Change\x20to:*\x20%0',(_0x447af9=0x1,_0x4b9572=_0x21f471,o(_0x5577af,'ELEMENT_HEADING',[_0x447af9,_0x4b9572])))};const _0xf9037e=this['_headingOptions']['find'](_0x27c887=>_0x27c887['model']===_0xbefea0)['title'];return{'type':'format','content':o(_0x5577af,'*Change\x20to:*\x20%0',_0x408aae(0x1,_0xf9037e))};}var _0x447af9,_0x4b9572;});}['_getHeadingLevel'](_0x4ef4e5){const _0x7ab26c=_0x4ef4e5['match'](/^heading(\d+)/);if(_0x7ab26c)return _0x7ab26c[0x1];const _0x2e51e6=this['_headingOptions']?.['find'](_0x434e5e=>_0x434e5e['model']==_0x4ef4e5);if(_0x2e51e6&&_0x2e51e6['view']){const _0x109afc=_0x2e51e6['view'],_0x14d5c4=(_0x109afc['name']??_0x109afc)['match'](/^h(\d+)/);if(_0x14d5c4)return _0x14d5c4[0x1];}return null;}}class Z extends _0x58f0a6{['afterInit'](){const _0x5d846d=this['editor'];if(!_0x5d846d['plugins']['has']('HighlightEditing'))return;const _0x313b0a=_0x5d846d['plugins']['get']('TrackChangesEditing'),_0x2610ae=_0x5d846d['locale'];_0x313b0a['enableDefaultAttributesIntegration']('highlight'),_0x313b0a['registerInlineAttribute']('highlight'),_0x313b0a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2610ae,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25484a=this['editor'],_0x1d8242=_0x25484a['locale'];_0x25484a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f512e=>{if('formatInline'!=_0x2f512e['type'])return;const {data:_0x19e537}=_0x2f512e;if(_0x19e537&&'highlight'==_0x19e537['commandName']){const _0x2acc07=_0x1d8242['t'],_0x35bb96=_0x19e537['commandParams'][0x0]['value'];if(_0x35bb96){const _0x594f98=_0x25484a['config']['get']('highlight.options')['find'](_0x13b3e3=>_0x13b3e3['model']==_0x35bb96),_0x49feaa=_0x2acc07(_0x594f98['title'])['toLowerCase']();return{'type':'format','content':o(_0x1d8242,'*Set\x20highlight:*\x20%0',_0x49feaa),'color':{'value':_0x594f98['color'],'title':_0x594f98['title']}};}return{'type':'format','content':o(_0x1d8242,'*Remove\x20highlight*',o(_0x1d8242,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x58f0a6{['afterInit'](){const _0x152f47=this['editor'];if(!_0x152f47['plugins']['has']('HorizontalLineEditing'))return;_0x152f47['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x57c2b4=_0x152f47['plugins']['get']('TrackChangesEditing'),_0x22d8c4=_0x152f47['locale'];_0x57c2b4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4dddfc=>o(_0x22d8c4,'ELEMENT_HORIZONTAL_LINE',_0x4dddfc)),_0x152f47['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2cd21b,{writer:_0x496d16,options:_0x4dd866})=>{if(!_0x4dd866['showSuggestionHighlights'])return null;const _0x31d6f7=_0x496d16['createContainerElement']('div'),_0x2cdebd=_0x496d16['createEmptyElement']('hr');return _0x496d16['addClass']('ck-horizontal-line',_0x31d6f7),_0x496d16['insert'](_0x496d16['createPositionAt'](_0x31d6f7,0x0),_0x2cdebd),_0x31d6f7;},'converterPriority':'high'});}}class et extends _0x58f0a6{['afterInit'](){const _0x16ef1f=this['editor'];if(!_0x16ef1f['plugins']['has']('HtmlEmbed'))return;const _0x390cf3=_0x16ef1f['plugins']['get']('TrackChangesEditing'),_0x653de1=_0x16ef1f['locale'];_0x390cf3['descriptionFactory']['registerElementLabel']('rawHtml',_0x47faa9=>o(_0x653de1,'ELEMENT_HTML_EMBED',_0x47faa9)),_0x390cf3['enableDefaultAttributesIntegration']('htmlEmbed'),_0x390cf3['registerBlockAttribute']('value'),_0x390cf3['descriptionFactory']['registerDescriptionCallback'](_0xd5d45e=>{if('attribute'!=_0xd5d45e['type'])return;const {data:_0x17d70e}=_0xd5d45e;if(_0x17d70e&&'value'==_0x17d70e['key']&&_0xd5d45e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x336090=o(_0x653de1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x653de1,'*Change\x20%0\x20content*',_0x336090)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x306940=this['editor'],_0xdd1ba2=_0x306940['locale'];_0x306940['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c73ee=>{if('formatBlock'!=_0x1c73ee['type'])return;const {data:_0x507057}=_0x1c73ee;if(_0x507057&&'htmlEmbed'==_0x507057['commandName']){const _0x71335b=o(_0xdd1ba2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xdd1ba2,'*Change\x20%0\x20content*',_0x71335b)};}});}}class it extends _0x58f0a6{['afterInit'](){const _0x1acd6f=this['editor'];if(!_0x1acd6f['plugins']['has']('ImageEditing'))return;const _0x1e1879=_0x1acd6f['plugins']['get']('TrackChangesEditing'),_0x2262d=_0x1acd6f['plugins']['get']('ImageUtils'),_0x1e069a=_0x1acd6f['locale'];_0x1e1879['enableCommand']('insertImage'),_0x1e1879['descriptionFactory']['registerElementLabel']('imageBlock',_0x2adb6d=>o(_0x1e069a,'ELEMENT_IMAGE',_0x2adb6d)),_0x1e1879['descriptionFactory']['registerElementLabel']('imageInline',_0x42e54c=>o(_0x1e069a,'ELEMENT_INLINE_IMAGE',_0x42e54c)),_0x1e1879['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1e069a,'ELEMENT_CAPTION')),_0x1acd6f['plugins']['has']('ImageUploadEditing')&&_0x1e1879['enableCommand']('uploadImage'),_0x1acd6f['plugins']['has']('ImageBlockEditing')&&_0x1acd6f['plugins']['has']('ImageInlineEditing')&&(_0x1e1879['enableCommand']('imageTypeInline',(_0x41a3f0,_0x515b44)=>{const _0x46f436=_0x2262d['getClosestSelectedImageElement'](_0x1acd6f['model']['document']['selection']);_0x1acd6f['model']['change'](()=>{_0x1e1879['markBlockFormat'](_0x46f436,{'commandName':'imageTypeInline','commandParams':[_0x515b44]},[],'convertBlockImageToInline');});}),_0x1e1879['enableCommand']('imageTypeBlock',(_0xda063b,_0x8f8bcb)=>{_0x1acd6f['model']['change'](_0x1d70f4=>{let _0x5589c5=_0x2262d['getClosestSelectedImageElement'](_0x1acd6f['model']['document']['selection']),_0x1e740a=_0x1d70f4['createRangeOn'](_0x5589c5);const _0x405439=_0x3aa60d['fromPosition'](_0x1e740a['start'],'toPrevious'),_0x3fae31=_0x3aa60d['fromPosition'](_0x1e740a['end'],'toNext');_0x1e1879['forceDefaultExecution'](()=>_0xda063b(_0x8f8bcb)),_0x5589c5=_0x2262d['getClosestSelectedImageElement'](_0x1acd6f['model']['document']['selection']),_0x1e740a=_0x1d70f4['createRangeOn'](_0x5589c5);const _0x588791=_0x1d70f4['createRange'](_0x405439,_0x3fae31);_0x405439['detach'](),_0x3fae31['detach'](),_0x1e1879['markBlockFormat'](_0x5589c5,{'commandName':'imageTypeInline','commandParams':[_0x8f8bcb]},[],'convertInlineImageToBlock'),_0x588791['start']['isBefore'](_0x1e740a['start'])&&_0x1e1879['markInsertion'](_0x1d70f4['createRange'](_0x588791['start'],_0x1e740a['start']),'convertInlineImageToBlock'),_0x1e740a['end']['isBefore'](_0x588791['end'])&&_0x1e1879['markInsertion'](_0x1d70f4['createRange'](_0x1e740a['end'],_0x588791['end']),'convertInlineImageToBlock');});}),_0x1e1879['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1e1879['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1e1879['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1e1879['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1e1879['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1e1879['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x39f683])=>{const _0x3dc5b3=_0x1e1879['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x31a371=_0x39f683['start'],_0x3ceb7d=_0x39f683['end'];const _0x4e9d05=_0x1acd6f['model']['schema']['getNearestSelectionRange'](_0x31a371,'backward'),_0x2a476e=_0x1acd6f['model']['schema']['getNearestSelectionRange'](_0x3ceb7d,'forward');_0x4e9d05['isCollapsed']&&(_0x31a371=_0x4e9d05['start']),_0x2a476e['isCollapsed']&&(_0x3ceb7d=_0x2a476e['end']),_0x3dc5b3([_0x1acd6f['model']['createRange'](_0x31a371,_0x3ceb7d)]);}),_0x1e1879['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x580099),_0x1e1879['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x580099)),_0x1acd6f['plugins']['has']('ImageCaptionEditing')&&(_0x1e1879['enableCommand']('toggleImageCaption',(_0x7d1f63,_0x30366c)=>{const _0xaa8c8c=_0x1acd6f['plugins']['get']('ImageCaptionUtils');let _0x50d97a=_0x2262d['getClosestSelectedImageElement'](_0x1acd6f['model']['document']['selection']),_0x27819b=_0xaa8c8c['getCaptionFromImageModelElement'](_0x50d97a);_0x1acd6f['model']['change'](()=>{if(_0x27819b)return void _0x1e1879['markDeletion'](_0x1acd6f['model']['createRangeOn'](_0x27819b));const _0x43c4da=_0x2262d['isBlockImage'](_0x50d97a);_0x7d1f63(_0x30366c),_0x50d97a=_0x2262d['getClosestSelectedImageElement'](_0x1acd6f['model']['document']['selection']),_0x27819b=_0xaa8c8c['getCaptionFromImageModelElement'](_0x50d97a),_0x1e1879['markInsertion'](_0x1acd6f['model']['createRangeOn'](_0x27819b),_0x43c4da?null:'imageCaption');});}),_0x1e1879['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x580099));const _0xf98162=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x525d75(_0x186205,_0x55b023){const _0x1b7cb5=_0xf98162['findIndex'](({type:_0x747f48,subType:_0x23e8cf})=>_0x186205['type']==_0x747f48&&_0x186205['subType']==_0x23e8cf),_0x3a830c=_0xf98162['findIndex'](({type:_0x5b5b21,subType:_0x3c3a8d})=>_0x55b023['type']==_0x5b5b21&&_0x55b023['subType']==_0x3c3a8d);if(_0x1b7cb5<0x0||_0x3a830c<0x0)return!0x1;const _0x3bdfce=_0x186205['getFirstRange'](),_0x4d6c98=_0x55b023['getFirstRange']();if((0x0==_0x1b7cb5||0x1==_0x1b7cb5)&&0x2==_0x3a830c&&_0x3bdfce['isIntersecting'](_0x4d6c98))return!0x0;if(0x2==_0x1b7cb5&&0x3==_0x3a830c){const _0x2e485c=_0x1e1879['_findSuggestions'](_0x3bdfce,'insertion')['filter'](({suggestion:_0x2beb92,meta:_0x3101cf})=>_0x3101cf['isOwn']&&'convertInlineImageToBlock'==_0x2beb92['subType']);if(_0x2e485c['length']>0x1&&_0x4d6c98['end']['isEqual'](_0x3bdfce['start']))return!0x0;if(0x1==_0x2e485c['length']&&(_0x3bdfce['start']['isEqual'](_0x4d6c98['end'])||_0x3bdfce['end']['isEqual'](_0x4d6c98['start'])))return!0x0;}if(0x3==_0x1b7cb5&&0x3==_0x3a830c&&_0x3bdfce['start']['isBefore'](_0x4d6c98['start'])){const _0x137cd5=_0x3bdfce['end']['nodeAfter'],_0x45b1e8=_0x4d6c98['start']['nodeBefore'];return _0x2262d['isBlockImage'](_0x137cd5)&&_0x137cd5===_0x45b1e8;}return!0x1;}function _0x580099(_0x349822,_0x26a631){return _0x525d75(_0x349822,_0x26a631)?[_0x349822,_0x26a631]:_0x525d75(_0x26a631,_0x349822)?[_0x26a631,_0x349822]:null;}_0x1acd6f['plugins']['has']('ImageResize')&&(_0x1e1879['enableDefaultAttributesIntegration']('resizeImage'),_0x1e1879['registerBlockAttribute']('resizedWidth'),_0x1e1879['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1e069a,'FORMAT_IMAGE_SIZE'))),_0x1acd6f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1e1879['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1e1879['registerBlockAttribute']('alt')),_0x1e1879['descriptionFactory']['registerDescriptionCallback'](_0x15324e=>{if(!!_0xf98162['find'](({type:_0x1ed47e,subType:_0x181bdf})=>_0x15324e['type']==_0x1ed47e&&_0x15324e['subType']==_0x181bdf))return _0x15324e['previous']?{}:void 0x0;}),_0x1e1879['descriptionFactory']['registerDescriptionCallback'](_0x33f8b4=>{if('insertion'==_0x33f8b4['type']||'deletion'==_0x33f8b4['type']){const _0x8d9c57=_0x33f8b4['getContainedElement']();if(_0x8d9c57&&_0x8d9c57['is']('element','caption'))return{'type':'insertion'==_0x33f8b4['type']?'addObject':'removeObject','element':_0x8d9c57,'quantity':0x1};}}),_0x1e1879['descriptionFactory']['registerDescriptionCallback'](_0x405d72=>'formatBlock'==_0x405d72['type']&&'convertInlineImageToBlock'==_0x405d72['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x405d72['type']&&'convertBlockImageToInline'==_0x405d72['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1e1879['descriptionFactory']['registerDescriptionCallback'](_0x173e1c=>{if('attribute'!=_0x173e1c['type'])return;const {data:_0x55b952}=_0x173e1c;if(!_0x55b952||'alt'!=_0x55b952['key'])return;const _0x48f314=_0x55b952['newValue'];return _0x48f314?{'type':'format','content':o(_0x1e069a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x48f314+'\x22')}:{'type':'format','content':o(_0x1e069a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26b158=this['editor'],_0x41f4ab=_0x26b158['locale'];_0x26b158['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b4989=>{if('formatBlock'!=_0x4b4989['type']&&'formatInline'!=_0x4b4989['type'])return;const {data:_0x87b71d}=_0x4b4989;if(_0x87b71d){if('imageTextAlternative'==_0x87b71d['commandName']){const _0x1a1654=_0x87b71d['commandParams'][0x0]['newValue'];return _0x1a1654?{'type':'format','content':o(_0x41f4ab,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1a1654+'\x22')}:{'type':'format','content':o(_0x41f4ab,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x87b71d['commandName']){const _0x40be7f=_0x87b71d['commandParams'][0x0]['width'];return _0x40be7f?{'type':'format','content':o(_0x41f4ab,'*Set\x20image\x20width:*\x20%0',_0x40be7f)}:{'type':'format','content':o(_0x41f4ab,'*Reset\x20image\x20width*')};}}});}}class st extends _0x58f0a6{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2cc62c=this['editor']['locale'],_0x33096b=this['editor']['plugins']['get']('TrackChangesEditing');_0x33096b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x33096b['registerBlockAttribute']('src'),_0x33096b['descriptionFactory']['registerDescriptionCallback'](_0x454a83=>{if('attribute'!=_0x454a83['type'])return;const {data:_0x361155}=_0x454a83;return _0x361155&&'src'==_0x361155['key']?_0x361155['newValue']&&_0x361155['oldValue']?{'type':'format','content':o(_0x2cc62c,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x50a54b=this['editor']['plugins']['get']('TrackChangesEditing');_0x50a54b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x50a54b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50a54b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x50a54b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d7b21=this['editor'],_0x27523c=_0x3d7b21['locale'];_0x3d7b21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14c235=>{if('formatBlock'!=_0x14c235['type']&&'formatInline'!=_0x14c235['type'])return;const {data:_0x3f632e}=_0x14c235;if(!_0x3f632e||'replaceImageSource'!=_0x3f632e['commandName'])return;return{'type':'format','content':o(_0x27523c,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x58f0a6{['afterInit'](){const _0xaa5b1a=this['editor'];if(!_0xaa5b1a['plugins']['has']('ImageStyleEditing'))return;const _0x5a68cc=_0xaa5b1a['plugins']['get']('TrackChangesEditing'),_0x30af1f=_0xaa5b1a['plugins']['get']('ImageUtils'),_0xf7b7da={};_0x5a68cc['enableCommand']('imageStyle',(_0x5c3e46,_0x40e918)=>{const _0x284f39=_0xaa5b1a['plugins']['get']('Users')['me'],_0x24b103=_0xaa5b1a['commands']['get']('imageStyle');let _0x322074=_0x30af1f['getClosestSelectedImageElement'](_0xaa5b1a['model']['document']['selection']),_0x4bb804=_0xaa5b1a['model']['createRangeOn'](_0x322074),_0x25562d=_0x24b103['value'];if(_0x25562d==_0x40e918['value'])return;const _0x395a4b={'commandName':'imageStyle','commandParams':[_0x40e918],'formatGroupId':_0x418fff()};_0xaa5b1a['model']['change'](()=>{if(_0x5a68cc['getSuggestions']()['filter'](_0x30627a=>_0x30627a['isInContent']&&_0x284f39==_0x30627a['author']&&('formatBlock'==_0x30627a['type']||'formatInline'==_0x30627a['type'])&&('imageStylePreApply'==_0x30627a['subType']||'imageStylePostApply'==_0x30627a['subType'])&&_0x30627a['getFirstRange']()['isEqual'](_0x4bb804))['forEach'](_0x155bd1=>_0x5a68cc['discardSuggestion'](_0x155bd1['head'])),_0x322074=_0x30af1f['getClosestSelectedImageElement'](_0xaa5b1a['model']['document']['selection']),_0x4bb804=_0xaa5b1a['model']['createRangeOn'](_0x322074),_0x24b103['refresh'](),_0xaa5b1a['commands']['get']('imageTypeInline')['refresh'](),_0xaa5b1a['commands']['get']('imageTypeBlock')['refresh'](),_0x25562d=_0x24b103['value'],_0x25562d!=_0x40e918['value'])return _0x30af1f['isInlineImage'](_0x322074)&&_0x24b103['shouldConvertImageType'](_0x40e918['value'],_0x322074)?(_0x5c3e46({..._0x40e918,'setImageSizes':!0x1}),_0x322074=_0x30af1f['getClosestSelectedImageElement'](_0xaa5b1a['model']['document']['selection']),void _0x5a68cc['markBlockFormat'](_0x322074,{..._0x395a4b,'commandReversedParams':[{'value':_0x25562d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x30af1f['isBlockImage'](_0x322074)?_0x5a68cc['markBlockFormat'](_0x322074,_0x395a4b,[],'imageStylePostApply'):_0x5a68cc['markInlineFormat'](_0x4bb804,_0x395a4b,'imageStylePostApply'));});});for(const _0x468e0b of _0xaa5b1a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xf7b7da[_0x468e0b['name']]=_0x468e0b['title']['toLowerCase']();_0x5a68cc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5a68cc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5a68cc['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5a68cc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3e0b42])=>{_0x30af1f['setImageNaturalSizeAttributes'](_0x3e0b42['getContainedElement']());}),_0x5a68cc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x382884,_0x3fad43)=>{_0x5a68cc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x382884,{'commandName':_0x3fad43['commandName'],'commandParams':_0x3fad43['commandReversedParams']});}),_0x5a68cc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3e0d18,_0x4fe50e){if(_0x2ebe4d(_0x3e0d18,_0x4fe50e))return[_0x3e0d18,_0x4fe50e];if(_0x2ebe4d(_0x4fe50e,_0x3e0d18))return[_0x4fe50e,_0x3e0d18];return null;});const _0x21859e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2ebe4d(_0x53c021,_0x4f9d70){const _0x31692e=_0x21859e['findIndex'](({type:_0x40480a,subType:_0x22b733})=>_0x53c021['type']==_0x40480a&&_0x53c021['subType']==_0x22b733),_0x132c8b=_0x21859e['findIndex'](({type:_0x4b9f13,subType:_0xc47e6c})=>_0x4f9d70['type']==_0x4b9f13&&_0x4f9d70['subType']==_0xc47e6c);if(_0x31692e<0x0||_0x132c8b<0x0)return!0x1;const _0x589baf=_0x53c021['getFirstRange'](),_0x5ca84c=_0x4f9d70['getFirstRange']();if((0x0==_0x31692e||0x1==_0x31692e)&&0x2==_0x132c8b&&_0x589baf['isIntersecting'](_0x5ca84c))return!0x0;if(0x2==_0x31692e&&0x3==_0x132c8b){const _0x47d98b=_0x5a68cc['_findSuggestions'](_0x589baf,'insertion')['filter'](({suggestion:_0x5215a9,meta:_0x235636})=>_0x235636['isOwn']&&'convertInlineImageToBlock'==_0x5215a9['subType']);if(_0x47d98b['length']>0x1&&_0x5ca84c['end']['isEqual'](_0x589baf['start']))return!0x0;if(0x1==_0x47d98b['length']&&(_0x589baf['start']['isEqual'](_0x5ca84c['end'])||_0x589baf['end']['isEqual'](_0x5ca84c['start'])))return!0x0;}if(0x3==_0x31692e&&0x3==_0x132c8b&&_0x589baf['start']['isBefore'](_0x5ca84c['start'])){const _0x5606c6=_0x589baf['end']['nodeAfter'],_0x3d5725=_0x5ca84c['start']['nodeBefore'];return _0x30af1f['isBlockImage'](_0x5606c6)&&_0x5606c6===_0x3d5725;}return!0x1;}_0xaa5b1a['model']['document']['registerPostFixer'](()=>{let _0x513bf6=!0x1;const _0x158450=Array['from'](_0xaa5b1a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xac857c,data:_0x45a6a8}of _0x158450){const {group:_0x23c9de,type:_0x5d321f,subType:_0x364d4a,id:_0x1db96d}=_0x5a68cc['_splitMarkerName'](_0xac857c);if('suggestion'==_0x23c9de&&_0x5a68cc['hasSuggestion'](_0x1db96d)){if('formatBlock'==_0x5d321f&&('imageStylePreApply'==_0x364d4a||'imageStylePostApply'==_0x364d4a)){const _0x431bad=_0x5a68cc['getSuggestion'](_0x1db96d);if(_0x45a6a8['newRange']){const _0x4b6a5c=_0x431bad['getFirstRange']()['getContainedElement']();if(_0x30af1f['isBlockImage'](_0x4b6a5c))continue;_0x5a68cc['discardSuggestion'](_0x431bad),_0x513bf6=!0x0;}}if('insertion'==_0x5d321f&&'imageCaption'==_0x364d4a&&!_0x45a6a8['newRange']){const _0x4c4367=_0x5a68cc['getSuggestion'](_0x1db96d);_0x4c4367['next']&&_0x4c4367['next']['isInContent']&&(_0x5a68cc['discardSuggestion'](_0x4c4367['next']),_0x513bf6=!0x0);}}}return _0x513bf6;}),this['_registerLegacyDescription'](_0xf7b7da);}['_registerLegacyDescription'](_0x2d0327){const _0x52d0ff=this['editor'],_0x36aa8d=_0x52d0ff['locale'];_0x52d0ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x91b0cc=>{if('formatBlock'!=_0x91b0cc['type']&&'formatInline'!=_0x91b0cc['type'])return;const {data:_0x48dcd7}=_0x91b0cc;if(!_0x48dcd7||'imageStyle'!=_0x48dcd7['commandName'])return;const _0x5031c0=_0x48dcd7['commandParams'][0x0]['value'];return _0x598feb('side'===_0x5031c0?o(_0x36aa8d,'FORMAT_SIDE_IMAGE'):_0x2d0327[_0x5031c0]||_0x5031c0);function _0x598feb(_0x379020){return{'type':'format','content':o(_0x36aa8d,'*Format:*\x20%0',_0x379020)};}});}}class ot extends _0x58f0a6{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1b22c3){super(_0x1b22c3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5447ed=this['editor'],_0x2875c1=_0x5447ed['commands']['get']('importWord'),_0x335ffb=_0x5447ed['commands']['get']('trackChanges');_0x2875c1&&(_0x2875c1['on']('execute',(_0x11d870,[,_0x522381])=>{this['_trackChangesValueDuringImport']=_0x335ffb['value'],_0x522381['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2875c1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2875c1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x335ffb['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5447ed['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3471f3,_0xfc2abf){const {suggestions:_0x2e98af}=_0xfc2abf,_0x26cab9=this['editor']['commands']['get']('trackChanges'),_0x141013=_0x26cab9['value'];this['_trackChangesValueDuringImport']!==_0x141013&&(_0x26cab9['execute'](),this['_trackChangesExecuted']=!0x0),_0x2e98af&&_0x2e98af['forEach'](({id:_0x5c8892,type:_0x154464,author:_0x56437c,created_at:_0x564950})=>{const _0x46069e={'id':_0x5c8892,'type':_0x154464,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x56437c,'createdAt':_0x564950?new Date(_0x564950):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x46069e);});}}class rt extends _0x58f0a6{['afterInit'](){const _0x2f622a=this['editor'],_0x56b650=_0x2f622a['plugins']['get']('TrackChangesEditing');if(_0x2f622a['plugins']['has']('IndentEditing')&&(_0x56b650['enableCommand']('indent'),_0x56b650['enableCommand']('outdent')),_0x2f622a['plugins']['has']('IndentBlock')){for(const _0x57a79a of['indentBlock','outdentBlock'])_0x56b650['enableDefaultAttributesIntegration'](_0x57a79a);}const _0x5036a4=_0x2f622a['locale'];_0x56b650['registerBlockAttribute']('blockIndent'),_0x56b650['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5036a4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37ef79=this['editor'],_0x1cf777=_0x37ef79['locale'],_0x2817d7=_0x37ef79['plugins']['get']('TrackChangesEditing');_0x2817d7['descriptionFactory']['registerDescriptionCallback'](_0x236686=>{if('formatBlock'!=_0x236686['type'])return;const {data:_0x4c24b9}=_0x236686;if(!_0x4c24b9)return;if('indentBlock'!=_0x4c24b9['commandName']&&'outdentBlock'!=_0x4c24b9['commandName'])return;const _0x18e22e=_0x236686['getItems']()[0x0],_0x3bd316=_0x2817d7['descriptionFactory']['getItemLabel'](_0x18e22e);return'indentBlock'==_0x4c24b9['commandName']?{'type':'format','content':o(_0x1cf777,'*Indent:*\x20%0',_0x3bd316)}:'outdentBlock'==_0x4c24b9['commandName']?{'type':'format','content':o(_0x1cf777,'*Outdent:*\x20%0',_0x3bd316)}:void 0x0;});}}class at extends _0x58f0a6{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x58f0a6{['afterInit'](){const _0x1016b0=this['editor'];if(!_0x1016b0['plugins']['has']('LinkEditing'))return;const _0x2ceee2=_0x1016b0['plugins']['get']('TrackChangesEditing'),_0x1f92b5=_0x1016b0['commands']['get']('link');_0x2ceee2['enableDefaultAttributesIntegration']('link'),_0x2ceee2['enableDefaultAttributesIntegration']('unlink'),_0x2ceee2['registerInlineAttribute']('linkHref');for(const _0x4235ba of _0x1f92b5['manualDecorators'])_0x2ceee2['registerInlineAttribute'](_0x4235ba['id']),_0x2ceee2['descriptionFactory']['registerAttributeLabel'](_0x4235ba['id'],'link\x20('+_0x4235ba['label']['toLowerCase']()+')');_0x2ceee2['descriptionFactory']['registerDescriptionCallback'](_0x25ecea=>{if('attribute'!=_0x25ecea['type'])return;const {data:_0x47f642}=_0x25ecea;if(!_0x47f642||'linkHref'!=_0x47f642['key'])return;const _0x31559a=_0x47f642['newValue'],_0x11b11c=_0x1016b0['locale'];return{'type':'format','content':null==_0x31559a?o(_0x11b11c,'*Remove\x20link*'):o(_0x11b11c,'*Set\x20link:*\x20%0','\x22'+_0x31559a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x385e28=this['editor'],_0x2c3f05=_0x385e28['locale'];_0x385e28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x297549=>{if('formatInline'!=_0x297549['type'])return;const {data:_0x5af85c}=_0x297549;if(_0x5af85c){if('link'==_0x5af85c['commandName']){const _0x23a003=_0x5af85c['commandParams'][0x0];return{'type':'format','content':o(_0x2c3f05,'*Set\x20link:*\x20%0','\x22'+_0x23a003+'\x22')};}return'unlink'==_0x5af85c['commandName']?{'type':'format','content':o(_0x2c3f05,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x58f0a6{['afterInit'](){const _0x670911=this['editor'],_0xc15009=_0x670911['locale'];if(!_0x670911['plugins']['has']('LegacyListEditing'))return;const _0x18e9f4=_0x670911['plugins']['get']('TrackChangesEditing'),_0x325280=_0x670911['plugins']['has']('LegacyTodoListEditing');function _0x6d1577(_0x5117ca){return()=>{const _0x5373fe=_0x670911['model']['document']['selection'],_0x129069=_0x670911['commands']['get'](_0x5117ca);if(_0x129069['value'])return void _0x670911['execute']('paragraph',{});const _0x36accc=_0x5117ca['slice'](0x0,-0x4),_0x4030c0=function(_0x207f6d,_0xde8349,_0x430cfd){let _0x2cc1b3=Array['from'](_0x207f6d)['filter'](_0x464a23=>function(_0x102858,_0x6380e3){return _0x6380e3['checkChild'](_0x102858['parent'],'listItem')&&!_0x6380e3['isObject'](_0x102858);}(_0x464a23,_0x430cfd));_0x2cc1b3=_0x2cc1b3['filter'](_0x494923=>!_0x494923['is']('element','listItem')||_0x494923['getAttribute']('listType')!=_0xde8349);const _0x511102=new Set();for(const _0x147ec5 of _0x2cc1b3)_0x147ec5['is']('element','listItem')?_0x511102['add'](me(_0x147ec5)):_0x511102['add'](_0x147ec5);return Array['from'](_0x511102);}(_0x5373fe['getSelectedBlocks'](),_0x36accc,_0x670911['model']['schema']);_0x670911['model']['change'](()=>{for(const _0x4debd8 of _0x4030c0)_0x18e9f4['markBlockFormat'](_0x4debd8,{'commandName':_0x5117ca,'commandParams':[{'forceValue':!_0x129069['value']}],'formatGroupId':'blockName'},fe(_0x4debd8));});};}function _0x43caee(_0x551168){return()=>{const _0x2110ff=function(_0x226077){let _0xe5bd7f=Array['from'](_0x226077);const _0x598806=_0xe5bd7f['findIndex'](_0x1f0141=>'listItem'!=_0x1f0141['name']);return _0x598806>-0x1&&(_0xe5bd7f=_0xe5bd7f['slice'](0x0,_0x598806)),_0xe5bd7f;}(_0x670911['model']['document']['selection']['getSelectedBlocks']()),_0x240af2=_0x670911['model']['createRange'](_0x670911['model']['createPositionAt'](_0x2110ff[0x0],'before'),_0x670911['model']['createPositionAt'](_0x2110ff[_0x2110ff['length']-0x1],'end'));_0x670911['model']['change'](()=>{_0x18e9f4['markBlockFormat'](_0x240af2,{'commandName':_0x551168,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5660ec){const _0x336f89=new Set();for(const _0x30ffc6 of _0x5660ec){let _0x19583c=_0x30ffc6['nextSibling'];for(;_0x19583c&&_0x19583c['getAttribute']('listIndent')>_0x30ffc6['getAttribute']('listIndent');)_0x336f89['add'](_0x19583c),_0x19583c=_0x19583c['nextSibling'];}return Array['from'](_0x336f89);}(_0x2110ff));});};}_0x18e9f4['enableCommand']('numberedList',_0x6d1577('numberedList')),_0x18e9f4['enableCommand']('bulletedList',_0x6d1577('bulletedList')),_0x325280&&_0x18e9f4['enableCommand']('todoList',_0x6d1577('todoList')),_0x18e9f4['enableCommand']('indentList',_0x43caee('indentList')),_0x18e9f4['enableCommand']('outdentList',_0x43caee('outdentList')),_0x325280&&_0x18e9f4['enableCommand']('checkTodoList',()=>{const _0x3838b9=_0x670911['commands']['get']('checkTodoList'),_0x15c017=Array['from'](_0x3838b9['_selectedElements']);_0x15c017['filter'](_0x4e5fcd=>_0x4e5fcd['getAttribute']('todoListChecked')!=_0x3838b9['value']),_0x670911['model']['change'](()=>{for(const _0x4c64de of _0x15c017)_0x18e9f4['markBlockFormat'](_0x4c64de,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3838b9['value']}]});});}),_0x18e9f4['descriptionFactory']['registerElementLabel']('listItem',_0x10f5ec=>o(_0xc15009,'ELEMENT_LIST_ITEM',_0x10f5ec)),_0x18e9f4['descriptionFactory']['registerDescriptionCallback'](_0x187cae=>{if('formatBlock'!=_0x187cae['type']&&'formatInline'!=_0x187cae['type'])return;const {data:_0x4d9d5a}=_0x187cae;if(_0x4d9d5a){if('numberedList'==_0x4d9d5a['commandName']||'bulletedList'==_0x4d9d5a['commandName']||'todoList'==_0x4d9d5a['commandName'])switch(_0x4d9d5a['commandName']['replace']('List','')){case'bulleted':return _0xf4535d(o(_0xc15009,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf4535d(o(_0xc15009,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf4535d(o(_0xc15009,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4d9d5a['commandName'])return{'type':'format','content':o(_0xc15009,'*Indent:*\x20%0',o(_0xc15009,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4d9d5a['commandName'])return{'type':'format','content':o(_0xc15009,'*Outdent:*\x20%0',o(_0xc15009,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4d9d5a['commandName'])return _0x4d9d5a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc15009,'*Check\x20item*')}:{'type':'format','content':o(_0xc15009,'*Uncheck\x20item*')};}function _0xf4535d(_0x5a0d90){return{'type':'format','content':o(_0xc15009,'*Change\x20to:*\x20%0',_0x5a0d90)};}});}}function me(_0x24b101){const _0x397ea4=_0x24b101['getAttribute']('listIndent');if(0x0==_0x397ea4)return _0x24b101;let _0x14c6f6=_0x24b101;for(;_0x24b101['previousSibling']&&_0x24b101['previousSibling']['is']('element','listItem');){const _0x1255e8=_0x24b101['previousSibling']['getAttribute']('listIndent');if(_0x1255e8==_0x397ea4)_0x14c6f6=_0x24b101['previousSibling'];else{if(_0x1255e8<_0x397ea4)break;}_0x24b101=_0x24b101['previousSibling'];}return _0x14c6f6;}function fe(_0x19da7){const _0x5f44cb=[];if(_0x19da7['is']('element','listItem')&&_0x19da7['getAttribute']('listIndent')>0x0){let _0x4cdb3f=_0x19da7['nextSibling'];for(;_0x4cdb3f&&'listItem'==_0x4cdb3f['name']&&_0x4cdb3f['getAttribute']('listIndent')==_0x19da7['getAttribute']('listIndent');)_0x5f44cb['push'](_0x4cdb3f),_0x4cdb3f=_0x4cdb3f['nextSibling'];}return _0x5f44cb;}class K extends _0x58f0a6{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x258509=this['editor']['config']['get']('list.properties'),_0x1bfa82=this['editor']['plugins']['get']('TrackChangesEditing');_0x258509['styles']&&_0x1bfa82['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x258509['reversed']&&_0x1bfa82['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x258509['startIndex']&&_0x1bfa82['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1bfa82['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x54bc30,_0x512b7c={}){const _0x26ae33=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c5350=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x26ae33['markMultiRangeBlockFormat'](_0x2c5350,{'commandName':'listStyle','commandParams':[{'type':_0x512b7c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1d7502,_0x52e01f={}){const _0x520c78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9b3e67=this['_getSuggestionBlocks'](_0x39c753=>_0x39c753['is']('element','listItem')&&'numbered'===_0x39c753['getAttribute']('listType'));if(_0x9b3e67['length']<0x1)return;const _0x2a1533=_0x9b3e67['map'](_0x158240=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x158240,'before'),this['editor']['model']['createPositionAt'](_0x158240,0x0)));this['editor']['model']['change'](()=>{_0x520c78['markMultiRangeBlockFormat'](_0x2a1533,{'commandName':'listReversed','commandParams':[{'reversed':_0x52e01f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x16fdd8,_0x2dc82b={}){const _0x422463=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5121b0=this['_getSuggestionBlocks'](_0x1c674e=>_0x1c674e['is']('element','listItem')&&'numbered'===_0x1c674e['getAttribute']('listType'));if(_0x5121b0['length']<0x1)return;const _0x355e2c=_0x5121b0['map'](_0x49b175=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x49b175,'before'),this['editor']['model']['createPositionAt'](_0x49b175,0x0)));this['editor']['model']['change'](()=>{_0x422463['markMultiRangeBlockFormat'](_0x355e2c,{'commandName':'listStart','commandParams':[{'startIndex':_0x2dc82b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x238e33){if('formatBlock'!=_0x238e33['type']&&'formatInline'!=_0x238e33['type'])return;const _0x379132=this['editor']['locale'],{data:_0x53ea8c}=_0x238e33;if(!_0x53ea8c)return;let _0x1f12c3,_0xd7b6c7;switch(_0x53ea8c['commandName']){case'listStyle':_0x1f12c3='*Change\x20to:*\x20%0',_0xd7b6c7={'type':'format','content':o(_0x379132,_0x1f12c3,o(_0x379132,this['_getTranslationKeyForListStyle'](_0x53ea8c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1f12c3=_0x53ea8c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xd7b6c7={'type':'format','content':o(_0x379132,_0x1f12c3)};break;case'listStart':_0x1f12c3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xd7b6c7={'type':'format','content':o(_0x379132,_0x1f12c3,_0x53ea8c['commandParams'][0x0]['startIndex'])};}return _0xd7b6c7;}['_getSuggestionBlocksForListStyle'](){const _0x2e9754=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b8439=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4b8439[0x0]?.['is']('element','listItem')&&_0x4b8439['unshift'](..._0x2e9754['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4b8439[_0x4b8439['length']-0x1]?.['is']('element','listItem')&&_0x4b8439['push'](..._0x2e9754['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4b8439=[...new Set(_0x4b8439)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4b8439=_0x4b8439['filter'](_0xa6d70b=>_0xa6d70b['is']('element','listItem'))),_0x4b8439;}['_getSuggestionBlocks'](_0x48d2df){const _0x5522c0=this['editor']['plugins']['get']('LegacyListUtils');let _0x3cc6b9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x48d2df)['map'](_0x56d052=>{const _0x19f8d7=this['editor']['model']['createPositionAt'](_0x56d052,0x0);return[..._0x5522c0['getSiblingNodes'](_0x19f8d7,'backward'),..._0x5522c0['getSiblingNodes'](_0x19f8d7,'forward')];})['flat']();return _0x3cc6b9=[...new Set(_0x3cc6b9)],_0x3cc6b9;}['_getTranslationKeyForListStyle'](_0x5ae305){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5ae305)||'default')['toUpperCase']()+'_LIST_'+_0x5ae305['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x58f0a6{['afterInit'](){const _0x334a2c=this['editor'];if(!_0x334a2c['plugins']['has']('MediaEmbedEditing'))return;const _0x587fd4=_0x334a2c['plugins']['get']('TrackChangesEditing'),_0x4a0f9e=_0x334a2c['locale'];_0x587fd4['enableCommand']('mediaEmbed'),_0x587fd4['descriptionFactory']['registerElementLabel']('media',_0x5e68b2=>o(_0x4a0f9e,'ELEMENT_MEDIA',_0x5e68b2)),_0x334a2c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1bed4e,{writer:_0x583ca9,options:_0xe3020b})=>{if(_0xe3020b['showSuggestionHighlights'])return _0x583ca9['createEmptyElement']('div');},'converterPriority':'high'}),_0x334a2c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x409a37,_0x4c9f8e,_0x1f4046)=>{_0x1f4046['options']['showSuggestionHighlights']&&_0x409a37['stop']();},{'priority':'high'});}}class gt extends _0x58f0a6{['afterInit'](){const _0x3e076c=this['editor'];_0x3e076c['plugins']['has']('MentionEditing')&&_0x3e076c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x58f0a6{['afterInit'](){const _0x279dc9=this['editor'],_0x251548=_0x279dc9['plugins']['get']('TrackChangesEditing');_0x279dc9['plugins']['has']('MultiLevelList')&&(_0x251548['enableDefaultAttributesIntegration']('multiLevelList'),_0x251548['registerBlockAttribute']('listMarkerStyle'),_0x251548['descriptionFactory']['registerDescriptionCallback'](_0x5aab61=>this['handleDescriptions'](_0x5aab61)));}['handleDescriptions'](_0x713f60){const _0x7dc961=this['editor']['locale'],{data:_0x45e273}=_0x713f60,_0x56792d={'type':'format','content':''};if(_0x45e273&&'listMarkerStyle'==_0x45e273['key']){if(!_0x45e273['oldValue'])return{'type':'format','content':o(_0x7dc961,'*Set\x20format:*\x20%0',o(_0x7dc961,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x45e273['newValue']+')'};if(!_0x45e273['newValue']){let _0x138fa2=_0x713f60['head'];for(;_0x138fa2;){if(_0x138fa2['data']&&'listType'==_0x138fa2['data']['key']&&_0x138fa2['data']['newValue'])return _0x56792d;_0x138fa2=_0x138fa2['next'];}return{'type':'format','content':o(_0x7dc961,'*Remove\x20format:*\x20%0',o(_0x7dc961,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x45e273['oldValue']+')'};}}}}class mt extends _0x58f0a6{['afterInit'](){const _0x2a86f6=this['editor'];if(!_0x2a86f6['plugins']['has']('PageBreakEditing'))return;_0x2a86f6['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x38e524=_0x2a86f6['plugins']['get']('TrackChangesEditing'),_0x443bc5=_0x2a86f6['locale'];_0x38e524['descriptionFactory']['registerElementLabel']('pageBreak',_0x1314f0=>o(_0x443bc5,'ELEMENT_PAGE_BREAK',_0x1314f0));}}class dt extends _0x58f0a6{['afterInit'](){const _0x445caa=this['editor'];if(!_0x445caa['plugins']['has']('Paragraph'))return;const _0x16735c=_0x445caa['locale'],_0x4903c4=_0x445caa['plugins']['get']('TrackChangesEditing');_0x4903c4['descriptionFactory']['registerElementLabel']('paragraph',_0xe4bcaa=>o(_0x16735c,'ELEMENT_PARAGRAPH',_0xe4bcaa)),_0x4903c4['enableDefaultAttributesIntegration']('paragraph'),_0x4903c4['enableCommand']('insertParagraph'),_0x445caa['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x445caa),{'priority':'highest'}),_0x445caa['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x22a056,_0x797145,_0xf293c)=>{_0xf293c['options']['showSuggestionHighlights']&&nr(_0x445caa,{'showActiveMarker':!0x1})(_0x22a056,_0x797145,_0xf293c);},{'priority':'highest'});const _0x26e7f9=_0x4903c4['descriptionFactory'];_0x26e7f9['registerDescriptionCallback'](_0x1b5e8c=>{if('insertion'!==_0x1b5e8c['type'])return;const {start:_0x156f5d,end:_0x28e7ad}=_0x1b5e8c['getFirstRange']();if(!_0x156f5d['isTouching'](_0x28e7ad)||!_0x156f5d['nodeAfter'])return;const _0x2ceee8=_0x445caa['model']['schema'],_0x57c8b3=_0x156f5d['nodeAfter'];return _0x2ceee8['isBlock'](_0x57c8b3)&&!_0x2ceee8['isLimit'](_0x57c8b3)&&_0x2ceee8['checkChild'](_0x57c8b3,'$text')?{'type':'insertion','content':o(_0x16735c,'*Insert:*\x20%0',_0x26e7f9['getItemLabel'](_0x57c8b3,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9334ae=this['editor'],_0x5d92c3=_0x9334ae['locale'];_0x9334ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f296f=>{if('formatBlock'!=_0x2f296f['type'])return;const {data:_0x182983}=_0x2f296f;return _0x182983&&'paragraph'==_0x182983['commandName']?{'type':'format','content':o(_0x5d92c3,'*Change\x20to:*\x20%0',o(_0x5d92c3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2ad440,{showActiveMarker:_0x3513bc=!0x0}={}){return(_0x4645d7,_0x53dcce,_0x1f1833)=>{const _0x438b1e=_0x2ad440['plugins']['get']('TrackChangesEditing'),_0x498cb1=_0x53dcce['markerRange']['start'],_0x4ad16d=_0x53dcce['markerRange']['end'],_0x2d0554=_0x2ad440['model']['schema'];if(!_0x498cb1['isTouching'](_0x4ad16d)||!_0x498cb1['nodeAfter'])return;const _0x3b9913=_0x498cb1['nodeAfter'];if(_0x2d0554['isBlock'](_0x3b9913)&&!_0x2d0554['isLimit'](_0x3b9913)&&_0x2d0554['checkChild'](_0x3b9913,'$text')){if(!_0x1f1833['consumable']['consume'](_0x53dcce['markerRange'],_0x4645d7['name']))return;const _0x16723c=_0x1f1833['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x38410a=_0x1f1833['mapper']['toViewPosition'](_0x4ad16d);_0x3513bc&&_0x438b1e['activeMarkers']['includes'](_0x53dcce['markerName'])&&_0x1f1833['writer']['addClass']('ck-suggestion-marker--active',_0x16723c),_0x1f1833['writer']['insert'](_0x38410a,_0x16723c),_0x1f1833['mapper']['bindElementToMarker'](_0x16723c,_0x53dcce['markerName']);}};}class pt extends _0x58f0a6{['afterInit'](){const _0x4c3c09=this['editor'];if(!_0x4c3c09['plugins']['has']('RemoveFormatEditing'))return;_0x4c3c09['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a42be=this['editor'];_0x2a42be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xec475d=>{if('formatBlock'!=_0xec475d['type']&&'formatInline'!=_0xec475d['type'])return;const {data:_0xcbb41e}=_0xec475d;return _0xcbb41e&&'removeFormat'==_0xcbb41e['commandName']?{'type':'format','content':o(_0x2a42be['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x58f0a6{['afterInit'](){const _0x29f77e=this['editor'];if(!_0x29f77e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4609fb=_0x29f77e['plugins']['get']('TrackChangesEditing');_0x4609fb['enableCommand']('goToPreviousRestrictedEditingException'),_0x4609fb['enableCommand']('goToNextRestrictedEditingException');const _0x33e177=_0x29f77e['plugins']['get']('RestrictedEditingModeEditing');_0x33e177['enableCommand']('trackChanges'),_0x33e177['enableCommand']('acceptSuggestion'),_0x33e177['enableCommand']('discardSuggestion'),_0x33e177['enableCommand']('acceptAllSuggestions'),_0x33e177['enableCommand']('discardAllSuggestions'),_0x33e177['enableCommand']('acceptSelectedSuggestions'),_0x33e177['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x58f0a6{static get['requires'](){return[_0x2dcf41];}['init'](){const _0x15de39=this['editor'],_0x45a5e8=_0x15de39['plugins']['get']('TrackChangesEditing');_0x45a5e8['enableCommand']('shiftEnter'),_0x15de39['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x15de39),{'priority':'high'}),_0x15de39['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x15de39),{'priority':'high'}),_0x15de39['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18bb9d,_0x128247,_0x1cc160)=>{_0x1cc160['options']['showSuggestionHighlights']&&de(_0x15de39,{'showActiveMarker':!0x1})(_0x18bb9d,_0x128247,_0x1cc160);}),_0x45a5e8['descriptionFactory']['registerElementLabel']('softBreak',_0x1756ca=>o(_0x15de39['locale'],'ELEMENT_LINE_BREAK',_0x1756ca));}}function de(_0x139737,{showActiveMarker:_0x572c32=!0x0}={}){return(_0x3b1e4f,_0x16996a,_0x49e72a)=>{const _0x4f330c=_0x139737['plugins']['get']('TrackChangesEditing');if(!_0x49e72a['consumable']['test'](_0x16996a['markerRange'],_0x3b1e4f['name']))return;const _0x517431=_0x139737['model'];for(const _0x77b906 of _0x16996a['markerRange']['getItems']()){if(!_0x77b906['is']('element','softBreak'))continue;const _0x423560='deletion'==_0x16996a['markerName']['split'](':')[0x1]?'merge':'split',_0x46b32f=_0x49e72a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x423560}),_0x461b9d=_0x49e72a['mapper']['toViewPosition'](_0x517431['createPositionBefore'](_0x77b906));_0x572c32&&_0x4f330c['activeMarkers']['includes'](_0x16996a['markerName'])&&_0x49e72a['writer']['addClass']('ck-suggestion-marker--active',_0x46b32f),_0x49e72a['writer']['insert'](_0x461b9d,_0x46b32f),_0x49e72a['mapper']['bindElementToMarker'](_0x46b32f,_0x16996a['markerName']);}};}class wt extends _0x58f0a6{['afterInit'](){const _0xb00969=this['editor'],_0x1698d8=_0xb00969['model'],_0x13a609=_0xb00969['locale'];if(!_0xb00969['plugins']['has']('StandardEditingModeEditing'))return;const _0x1ef085=_0xb00969['plugins']['get']('TrackChangesEditing'),_0x33cb89='restrictedEditingException',_0x466554=_0xb00969['commands']['get'](_0x33cb89);_0x1ef085['enableCommand'](_0x33cb89,(_0x13db76,_0x30b477={})=>{const _0x218a0d=_0x1698d8['document']['selection'];if(_0x218a0d['isCollapsed'])return void _0x13db76(_0x30b477);const _0x36f793=void 0x0!==_0x30b477['forceValue']?_0x30b477['forceValue']:!_0x466554['value'];_0x1698d8['change'](()=>{const _0xdd2ddd=Array['from'](_0x218a0d['getRanges']());for(const _0xcce8d7 of _0xdd2ddd){const _0x29f61c=_0x36f793?[_0xcce8d7]:io(_0x33cb89,_0xcce8d7,_0x1698d8);for(const _0x5895fb of _0x29f61c)_0x1ef085['markInlineFormat'](_0x5895fb,{'commandName':_0x33cb89,'commandParams':[{'forceValue':_0x36f793}]});}});}),_0x1ef085['descriptionFactory']['registerDescriptionCallback'](_0x2790d1=>{if('formatBlock'!=_0x2790d1['type']&&'formatInline'!=_0x2790d1['type'])return;const {data:_0x5ee84e}=_0x2790d1;return _0x5ee84e&&_0x5ee84e['commandName']==_0x33cb89?_0x5ee84e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x13a609,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x13a609,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x58f0a6{['afterInit'](){const _0x1b6866=this['editor'];if(!_0x1b6866['plugins']['has']('Style')||!_0x1b6866['plugins']['has']('DataSchema'))return;const _0x230752=_0x1b6866['plugins']['get']('TrackChangesEditing'),_0xe1fd44=_0x1b6866['locale'],_0xe2e735=_0x1b6866['config']['get']('style')||{},_0x6bbfd5=_0x1b6866['plugins']['get']('GeneralHtmlSupport'),_0x24b8d9=_0x1b6866['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1b6866['plugins']['get']('DataSchema'),_0xe2e735['definitions']);_0x230752['enableDefaultAttributesIntegration']('style');const _0x233b5e=new Set();for(const _0x4c4452 of _0x24b8d9['block']){const _0x1dfeb7=_0x6bbfd5['getGhsAttributeNameForElement'](_0x4c4452['element']);_0x233b5e['add'](_0x1dfeb7);}const _0x1345d3=new Set();for(const _0xfa7906 of _0x24b8d9['inline']){const _0x403eeb=_0x6bbfd5['getGhsAttributeNameForElement'](_0xfa7906['element']);_0x1345d3['add'](_0x403eeb);for(const _0x1352ca of _0xfa7906['ghsAttributes'])_0x1345d3['add'](_0x1352ca);}for(const _0x151335 of _0x233b5e)_0x230752['registerBlockAttribute'](_0x151335),_0x230752['descriptionFactory']['registerAttributeLabel'](_0x151335,o(_0xe1fd44,'FORMAT_STYLE'));for(const _0x21137c of _0x1345d3)_0x230752['registerInlineAttribute'](_0x21137c),_0x230752['descriptionFactory']['registerAttributeLabel'](_0x21137c,o(_0xe1fd44,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x580247=this['editor'],_0x243235=_0x580247['locale'];_0x580247['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57c9d3=>{if('formatBlock'!=_0x57c9d3['type']&&'formatInline'!=_0x57c9d3['type'])return;const {data:_0x48877a}=_0x57c9d3;return _0x48877a&&'style'===_0x48877a['commandName']?_0x48877a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x243235,'*Set\x20format:*\x20%0',_0x48877a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x243235,'*Remove\x20format:*\x20%0',_0x48877a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x58f0a6{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x9a6e13){super(_0x9a6e13),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x7e641e=this['editor'],_0x10e496=_0x7e641e['model']['document']['selection'];if(!_0x7e641e['plugins']['has']('TableEditing'))return;const _0x51e145=_0x7e641e['locale'],_0x47a3cb=_0x7e641e['plugins']['get']('TrackChangesEditing'),_0x3ee84d=_0x7e641e['plugins']['get']('TableUtils');_0x47a3cb['descriptionFactory']['registerElementLabel']('table',_0x543121=>o(_0x51e145,'ELEMENT_TABLE',_0x543121)),this['_setupColumnsRowsFixing'](),_0x47a3cb['enableCommand']('insertTable'),_0x47a3cb['enableCommand']('selectTableRow'),_0x47a3cb['enableCommand']('selectTableColumn');for(const _0x336c66 of['insertTableRowAbove','insertTableRowBelow']){const _0x1cd1b5=_0x7e641e['commands']['get'](_0x336c66);_0x47a3cb['enableCommand'](_0x336c66,_0x5121ca=>{_0x7e641e['model']['change'](_0x2f0e68=>{_0x5121ca();const _0x397b2b='above'===_0x1cd1b5['order'],_0x3750f9=_0x3ee84d['getSelectionAffectedTableCells'](_0x10e496),_0x25f400=_0x3ee84d['getRowIndexes'](_0x3750f9),_0x354d2b=_0x397b2b?_0x25f400['first']-0x1:_0x25f400['last']+0x1,_0x3334f7=_0x3750f9[0x0]['findAncestor']('table'),_0x1e9562=_0x3ee84d['createTableWalker'](_0x3334f7,{'startRow':_0x354d2b,'endRow':_0x354d2b}),_0x1866a6=Array['from'](_0x1e9562)['map'](_0x43b78d=>_0x2f0e68['createRangeOn'](_0x43b78d['cell']));_0x47a3cb['markMultiRangeInsertion'](_0x1866a6,'tableRow');});});}for(const _0x50244d of['insertTableColumnLeft','insertTableColumnRight']){const _0x413e23=_0x7e641e['commands']['get'](_0x50244d);_0x47a3cb['enableCommand'](_0x50244d,_0x5f8c86=>{_0x7e641e['model']['change'](_0x369a91=>{_0x5f8c86();const _0x334deb='left'===_0x413e23['order'],_0x566f63=_0x3ee84d['getSelectionAffectedTableCells'](_0x10e496),_0x52c1a1=_0x3ee84d['getColumnIndexes'](_0x566f63),_0x490c23=_0x334deb?_0x52c1a1['first']-0x1:_0x52c1a1['last']+0x1,_0x17ff1=_0x566f63[0x0]['findAncestor']('table'),_0x2d819a=_0x3ee84d['createTableWalker'](_0x17ff1,{'startRow':0x0,'column':_0x490c23,'includeAllSlots':!0x1}),_0x29ce51=Array['from'](_0x2d819a)['map'](_0x2c52c7=>_0x369a91['createRangeOn'](_0x2c52c7['cell']));_0x47a3cb['markMultiRangeInsertion'](_0x29ce51,'tableColumn');});});}for(const _0x4f1974 of['removeTableRow','removeTableColumn']){const _0x363fa7=_0x4f1974['substr'](0xb),_0x202ff0=_0x363fa7['toLowerCase'](),_0x1282e0=_0x202ff0['substr'](0x0,0x3)+'span',_0x248fc5='table'+_0x363fa7,_0x2d9d48='min'+_0x363fa7,_0x1d4bd7='max'+_0x363fa7;_0x47a3cb['enableCommand'](_0x4f1974,()=>{_0x7e641e['model']['change'](_0x218911=>{const _0x25464b=_0x3ee84d['getSelectionAffectedTableCells'](_0x10e496),_0x19366e=_0x25464b[0x0]['findAncestor']('table');let _0x1d7aca;if('removeTableRow'==_0x4f1974){const _0x36e1b5=_0x3ee84d['getRowIndexes'](_0x25464b);_0x1d7aca={'startRow':_0x36e1b5['first'],'endRow':_0x36e1b5['last'],'includeAllSlots':!0x0};}else{const _0x1f28ea=_0x3ee84d['getColumnIndexes'](_0x25464b);_0x1d7aca={'startColumn':_0x1f28ea['first'],'endColumn':_0x1f28ea['last'],'includeAllSlots':!0x0};}const _0x5ab8c0=_0x3ee84d['createTableWalker'](_0x19366e,_0x1d7aca),_0x32568e=Array['from'](_0x5ab8c0)['map'](({cell:_0x18b0a0})=>_0x18b0a0),_0x1e3d31=Ee(_0x32568e['filter'](_0x2236c0=>_0x2236c0['hasAttribute'](_0x1282e0))),_0x2fa0e8=Ee(_0x32568e['filter'](_0x581a6f=>!_0x581a6f['hasAttribute'](_0x1282e0)))['map'](_0x3eed22=>_0x218911['createRangeOn'](_0x3eed22)),_0x2e1aed=_0x47a3cb['markMultiRangeDeletion'](_0x2fa0e8,_0x248fc5);if(_0x2e1aed&&('tableRow'==_0x2e1aed['subType']||'tableColumn'==_0x2e1aed['subType'])){const _0xa96283=this['_getSuggestionCoords'](_0x2e1aed);for(const _0x7c3915 of _0x1e3d31){const _0x1254f5=_0x218911['createRangeOn'](_0x7c3915),_0x5d7d39=_0x3ee84d['getCellLocation'](_0x7c3915),_0x3efe3e=_0x7c3915['getAttribute'](_0x1282e0)-0x1,_0x375826=_0xa96283[_0x2d9d48],_0xc2ce32=_0xa96283[_0x1d4bd7];_0x375826<=_0x5d7d39[_0x202ff0]&&_0x5d7d39[_0x202ff0]+_0x3efe3e<=_0xc2ce32&&_0x2e1aed['addRange'](_0x1254f5);}}});});}function _0x3e5ba3(_0x25bced){const _0x48639b=Array['from'](_0x10e496['getRanges']())['map'](_0x4ed540=>_0x5733e9['fromRange'](_0x4ed540));_0x7e641e['model']['change'](_0x170276=>{const _0x37ac2d=_0x170276['batch'];_0x25bced=_0x25bced['filter'](_0x3defb0=>'$graveyard'!=_0x3defb0['root']['rootName']),_0x170276['setSelection'](_0x25bced),_0x7e641e['commands']['get']('removeTableRow')['refresh'](),_0x7e641e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x7e641e['model']['enqueueChange'](()=>{_0x7e641e['model']['enqueueChange'](_0x37ac2d,_0x3aa623=>{const _0x3f8cd7=_0x48639b['filter'](_0x42c757=>'$graveyard'!=_0x42c757['root']['rootName']);_0x3f8cd7['length']>0x0&&_0x3aa623['setSelection'](_0x3f8cd7);for(const _0x36a085 of _0x48639b)_0x36a085['detach']();});});});}function _0x1439a3(_0xc44e6c){_0x7e641e['model']['change'](_0x542679=>{const _0x385939=Array['from'](_0x10e496['getRanges']())['map'](_0x357672=>_0x5733e9['fromRange'](_0x357672)),_0x5026e4=[];for(const _0x1b5a30 of _0xc44e6c)for(const _0x84372f of _0x1b5a30['getItems']({'shallow':!0x0}))_0x5026e4['push'](_0x84372f);for(const _0x13b02f of _0x5026e4)'$graveyard'!=_0x13b02f['root']['rootName']&&(_0x542679['setSelection'](_0x542679['createPositionAt'](_0x13b02f,0x0)),_0x7e641e['commands']['get']('removeTableColumn')['refresh'](),_0x7e641e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3daf3f=_0x385939['filter'](_0x10e704=>'$graveyard'!=_0x10e704['root']['rootName']);_0x3daf3f['length']>0x0&&_0x542679['setSelection'](_0x3daf3f);for(const _0x276da5 of _0x385939)_0x276da5['detach']();});}function _0xeed839(_0x3003c7,_0x3f11db){return _0x3f11db['every'](_0x5f23b7=>_0x3003c7['some'](_0x467527=>_0x467527['end']['isEqual'](_0x5f23b7['start'])||_0x5f23b7['end']['isEqual'](_0x467527['start'])));}function _0x3b1b9e(_0x3fe1a9,_0x417ec4){return!_0x3fe1a9['some'](_0x335f88=>_0x417ec4['some'](_0x2746cb=>_0x335f88['isIntersecting'](_0x2746cb)))&&_0x3fe1a9['some'](_0x272767=>_0x417ec4['some'](_0x575c78=>_0x272767['end']['isTouching'](_0x575c78['start'])));}_0x7e641e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2ba89e,_0x118a78,_0x54809d)=>{if(!_0x54809d['options']['showSuggestionHighlights'])return;const _0x3b27ac=_0x118a78['item'];if(!_0x3b27ac)return;const _0x2d6e37=_0x54809d['mapper']['toViewElement'](_0x3b27ac);function _0x3234f9(_0x28ac87){return Array['isArray'](_0x28ac87)?_0x28ac87:[_0x28ac87];}_0x2d6e37&&'tableCell'===_0x3b27ac['name']&&_0x141aef(_0x2d6e37,_0x54809d['writer'],(_0x5ff53d,_0x5ef774,_0x8b71e3)=>_0x8b71e3['addClass'](_0x3234f9(_0x5ef774['classes']),_0x5ff53d),(_0x579d8a,_0x3eca13,_0xea0de2)=>_0xea0de2['removeClass'](_0x3234f9(_0x3eca13['classes']),_0x579d8a));},{'priority':'highest'}),_0x47a3cb['descriptionFactory']['registerDescriptionCallback'](_0x491f91=>{if('insertion'!=_0x491f91['type']&&'deletion'!=_0x491f91['type'])return;const _0x2613b0=_0x491f91['getContainedElement']();if(null!=_0x2613b0&&_0x2613b0['is']('element','table')){if('insertion'==_0x491f91['type']){const _0x5d39ff=_0x491f91['getItems']()['filter'](_0x2a6eeb=>_0x2a6eeb['is']('$textProxy'))['map'](_0x562c0c=>_0x562c0c['data']);if(_0x5d39ff['length'])return{'type':'insertion','content':o(_0x51e145,'*Insert:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5d39ff['join']('\x20')+'\x22'))};}if('deletion'==_0x491f91['type']){const _0x415ed5=_0x491f91['getItems']()['filter'](_0x104479=>_0x104479['is']('$textProxy'))['map'](_0x294b3a=>_0x294b3a['data']);if(_0x415ed5['length'])return{'type':'deletion','content':o(_0x51e145,'*Remove:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x415ed5['join']('\x20')+'\x22'))};}}}),_0x47a3cb['descriptionFactory']['registerDescriptionCallback'](_0x1a40c5=>{if('tableRow'==_0x1a40c5['subType']){const _0x3578dc=_0x1a40c5['getItems']()['filter'](_0xc90cbe=>_0xc90cbe['is']('$textProxy'))['map'](_0x45b82c=>_0x45b82c['data']),_0x2ab8a9=this['_getSuggestionCoords'](_0x1a40c5),_0x2f486f=_0x2ab8a9['maxRow']-_0x2ab8a9['minRow']+0x1;if('insertion'==_0x1a40c5['type'])return _0x3578dc['length']?{'type':'insertion','content':o(_0x51e145,'*Insert:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f486f,'\x22'+_0x3578dc['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x51e145,'*Insert:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_ROW',_0x2f486f))};if('deletion'==_0x1a40c5['type'])return _0x3578dc['length']?{'type':'deletion','content':o(_0x51e145,'*Remove:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f486f,'\x22'+_0x3578dc['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x51e145,'*Remove:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_ROW',_0x2f486f))};}if('tableColumn'==_0x1a40c5['subType']){const _0x4ddd3d=_0x1a40c5['getItems']()['filter'](_0x5b9c11=>_0x5b9c11['is']('$textProxy'))['map'](_0x1513dc=>_0x1513dc['data']),_0xc44296=this['_getSuggestionCoords'](_0x1a40c5),_0x59e192=_0xc44296['maxColumn']-_0xc44296['minColumn']+0x1;if('insertion'==_0x1a40c5['type'])return _0x4ddd3d['length']?{'type':'insertion','content':o(_0x51e145,'*Insert:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x59e192,'\x22'+_0x4ddd3d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x51e145,'*Insert:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_COLUMN',_0x59e192))};if('deletion'==_0x1a40c5['type'])return _0x4ddd3d['length']?{'type':'deletion','content':o(_0x51e145,'*Remove:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x59e192,'\x22'+_0x4ddd3d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x51e145,'*Remove:*\x20%0',o(_0x51e145,'ELEMENT_TABLE_COLUMN',_0x59e192))};}}),_0x47a3cb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3e5ba3),_0x47a3cb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3e5ba3),_0x47a3cb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1439a3),_0x47a3cb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1439a3),_0x47a3cb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xeed839),_0x47a3cb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xeed839),_0x47a3cb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3b1b9e),_0x47a3cb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3b1b9e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x428383=this['editor'],_0x54b8ae=_0x428383['model']['document']['selection'];return(_0x566be4,_0x475dc8)=>{_0x428383['model']['change'](_0x391470=>{const {commandName:_0x3e706c,commandParams:_0xa48890}=_0x475dc8;let _0x1204d1=_0x566be4[0x0]['end']['nodeBefore'];_0xa48890&&_0xa48890[0x0]&&!0x1===_0xa48890[0x0]['forceValue']&&(_0x1204d1=_0x566be4[0x0]['start']['nodeAfter']);const _0x1d072e=_0x391470['createRangeIn'](_0x1204d1);if('$graveyard'==_0x1d072e['root']['rootName'])return;const _0x1ebf3f=Array['from'](_0x54b8ae['getRanges']())['map'](_0xcfae4c=>_0x5733e9['fromRange'](_0xcfae4c));_0x391470['setSelection'](_0x1d072e),_0x428383['commands']['get'](_0x3e706c)['refresh'](),_0xa48890['push']({'forceDefaultExecution':!0x0}),_0x428383['execute'](_0x3e706c,..._0xa48890);const _0x4361a0=_0x1ebf3f['filter'](_0x33d590=>'$graveyard'!=_0x33d590['root']['rootName']);_0x4361a0['length']>0x0&&_0x391470['setSelection'](_0x4361a0);for(const _0x5ec49a of _0x1ebf3f)_0x5ec49a['detach']();});};}['_getCoordsForCells'](_0x4aa918){const _0x42c847=this['editor']['plugins']['get']('TableUtils');let _0x1b3fe2=Number['MAX_SAFE_INTEGER'],_0x5a74ba=Number['MIN_SAFE_INTEGER'],_0x1bd8de=Number['MAX_SAFE_INTEGER'],_0x1924fa=Number['MIN_SAFE_INTEGER'];for(const _0x30bed8 of _0x4aa918){if('$graveyard'==_0x30bed8['root']['rootName'])continue;const {row:_0x1f23bb,column:_0x3d4444}=_0x42c847['getCellLocation'](_0x30bed8),_0x26ddf2=_0x30bed8['hasAttribute']('rowspan')?_0x30bed8['getAttribute']('rowspan')-0x1:0x0,_0xb55e86=_0x30bed8['hasAttribute']('colspan')?_0x30bed8['getAttribute']('colspan')-0x1:0x0;_0x1b3fe2=_0x1f23bb<_0x1b3fe2?_0x1f23bb:_0x1b3fe2,_0x5a74ba=_0x1f23bb+_0x26ddf2>_0x5a74ba?_0x1f23bb+_0x26ddf2:_0x5a74ba,_0x1bd8de=_0x3d4444<_0x1bd8de?_0x3d4444:_0x1bd8de,_0x1924fa=_0x3d4444+_0xb55e86>_0x1924fa?_0x3d4444+_0xb55e86:_0x1924fa;}return{'minRow':_0x1b3fe2,'maxRow':_0x5a74ba,'minColumn':_0x1bd8de,'maxColumn':_0x1924fa};}['_setupColumnsRowsFixing'](){const _0xa3bda0=this['editor'],_0x292516=_0xa3bda0['plugins']['get']('TrackChangesEditing'),_0x486fa6=_0xa3bda0['plugins']['get']('TableUtils');_0xa3bda0['model']['document']['on']('change:data',()=>{const _0x34c1d0=Array['from'](_0xa3bda0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ebc4c,data:_0x5cf7c1}of _0x34c1d0){const {group:_0x1a310e,id:_0x10ddd8,subType:_0x2558de}=_0x292516['_splitMarkerName'](_0x3ebc4c);if('suggestion'!=_0x1a310e)continue;if(null!=_0x5cf7c1['oldRange'])continue;const _0x4da423=_0x292516['getSuggestion'](_0x10ddd8);this['_tablePostFixingSubtypes']['includes'](_0x2558de)&&this['_tableSuggestions']['add'](_0x4da423);}},{'priority':'low'});const _0x253428=(_0x1f0595,_0x2888b4)=>{let _0x24420b=!0x1;const _0xded9df=_0x2888b4['createRangeOn'](_0x1f0595),_0x3d20dc=_0x1f0595['findAncestor']('table'),_0x38c128=_0x486fa6['getCellLocation'](_0x1f0595);for(const _0x39cd3f of this['_tableSuggestions']){const _0x5d829c=_0x39cd3f['subType'],_0x332554=_0x5d829c['startsWith']('tablePaste'),_0x319a86=_0x5d829c['substr'](_0x332554?0xa:0x5),_0xf0938d=_0x319a86['toLowerCase'](),_0x3462f9=_0xf0938d['substr'](0x0,0x3)+'span',_0x48b526='min'+_0x319a86,_0x1d4430='max'+_0x319a86;if(!_0x39cd3f['isInContent'])continue;if(_0x3d20dc!=_0x39cd3f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x39cd3f['isIntersectingWithRange'](_0xded9df))continue;const _0x2230bf=_0x1f0595['hasAttribute'](_0x3462f9)?_0x1f0595['getAttribute'](_0x3462f9)-0x1:0x0,_0x1ba685=this['_getSuggestionCoords'](_0x39cd3f),_0x3e0b0f=_0x1ba685[_0x48b526],_0x41a5fc=_0x1ba685[_0x1d4430];_0x3e0b0f<=_0x38c128[_0xf0938d]&&_0x38c128[_0xf0938d]+_0x2230bf<=_0x41a5fc&&(_0x39cd3f['addRange'](_0xded9df),_0x24420b=!0x0);}return _0x24420b;};_0xa3bda0['model']['document']['registerPostFixer'](_0x2a7bbf=>{let _0x444c3c=!0x1;for(const _0x1b1549 of _0xa3bda0['model']['document']['differ']['getChanges']())if('insert'==_0x1b1549['type']){if('tableRow'==_0x1b1549['name']){for(const _0x55845b of _0x1b1549['position']['nodeAfter']['getChildren']())_0x444c3c=_0x444c3c||_0x253428(_0x55845b,_0x2a7bbf);}else'tableCell'==_0x1b1549['name']&&(_0x444c3c=_0x444c3c||_0x253428(_0x1b1549['position']['nodeAfter'],_0x2a7bbf));}return _0x444c3c;});}['_getSuggestionCoords'](_0x93a769){return this['_getCoordsForCells'](_0x93a769['getRanges']()['map'](_0x622e63=>_0x622e63['start']['nodeAfter']));}}function Ee(_0x319a7c){return Array['from'](new Set(_0x319a7c)['values']());}class St extends _0x58f0a6{static get['requires'](){return[jt];}['afterInit'](){const _0x42ad1a=this['editor'],_0x491b60=_0x42ad1a['model']['document']['selection'],_0x5d3278=_0x42ad1a['locale'];if(!_0x42ad1a['plugins']['has']('TableEditing'))return;const _0x4beb9e=_0x42ad1a['plugins']['get']('TrackChangesEditing'),_0x33d357=_0x42ad1a['plugins']['get']('TableUtils'),_0x203800=_0x42ad1a['plugins']['get'](jt);_0x203800['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4beb9e['enableCommand']('mergeTableCells',()=>{const _0x25a92a=_0x33d357['getSelectionAffectedTableCells'](_0x42ad1a['model']['document']['selection']);_0x42ad1a['model']['change'](()=>{_0x4beb9e['markMultiRangeBlockFormat'](_0x25a92a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x42ad1a['commands']['get']('mergeTableCells')['on']('execute',(_0x40de23,_0x452b5b)=>{_0x42ad1a['commands']['get']('trackChanges')['value']&&(_0x452b5b['length']>0x0&&_0x452b5b[_0x452b5b['length']-0x1]&&_0x452b5b[_0x452b5b['length']-0x1]['forceDefaultExecution']||_0x4beb9e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x40de23['stop']());},{'priority':'highest'});for(const _0x3d7335 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1aecd2=_0x42ad1a['commands']['get'](_0x3d7335);_0x4beb9e['enableCommand'](_0x3d7335,()=>{const _0x372aa1=_0x42ad1a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc66032=>_0xc66032['is']('element','tableCell')),_0x4d434f=_0x1aecd2['value'];_0x42ad1a['model']['change'](()=>{_0x4beb9e['markMultiRangeBlockFormat']([_0x372aa1,_0x4d434f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x18ecea of['splitTableCellVertically','splitTableCellHorizontally']){const _0x13a361=_0x42ad1a['commands']['get'](_0x18ecea);_0x4beb9e['enableCommand'](_0x18ecea,()=>{const _0x14ff5b=_0x33d357['getSelectionAffectedTableCells'](_0x42ad1a['model']['document']['selection'])[0x0],_0x420703=_0x14ff5b['findAncestor']('table'),{column:_0xd50fbc,row:_0x4daa84}=_0x33d357['getCellLocation'](_0x14ff5b);let _0x244acf=[];if('horizontally'==_0x13a361['direction']){const _0x2c900f=_0x33d357['createTableWalker'](_0x420703,{'startRow':_0x4daa84,'endRow':_0x4daa84,'includeAllSlots':!0x0});_0x244acf=Array['from'](_0x2c900f)['map'](_0x3772a2=>_0x3772a2['cell']);}else{const _0xa022d8=_0x33d357['createTableWalker'](_0x420703,{'column':_0xd50fbc,'includeAllSlots':!0x0});_0x244acf=Array['from'](_0xa022d8)['map'](_0x1fe7a3=>_0x1fe7a3['cell']);}_0x42ad1a['model']['change'](_0x15d802=>{_0x4beb9e['markBlockFormat'](_0x15d802['createRangeOn'](_0x14ff5b),{'commandName':_0x18ecea,'commandParams':[]},_0x244acf,_0x18ecea);});});}_0x4beb9e['descriptionFactory']['registerDescriptionCallback'](_0x3e9ee0=>{if('formatBlock'!=_0x3e9ee0['type']&&'formatInline'!=_0x3e9ee0['type'])return;const {data:_0x367ec2}=_0x3e9ee0;return _0x367ec2&&'mergeTableCells'==_0x367ec2['commandName']?{'type':'format','content':o(_0x5d3278,'*Merge\x20cells*')}:void 0x0;}),_0x4beb9e['descriptionFactory']['registerDescriptionCallback'](_0x1a8030=>{if('formatBlock'!=_0x1a8030['type']&&'formatInline'!=_0x1a8030['type'])return;const {data:_0x30cf79}=_0x1a8030;return _0x30cf79?'splitTableCellVertically'==_0x30cf79['commandName']?{'type':'format','content':o(_0x5d3278,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x30cf79['commandName']?{'type':'format','content':o(_0x5d3278,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2c5aa7=_0x203800['_acceptFormatSuggestionCallbackFactory']();for(const _0x3a0d09 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4beb9e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a0d09,'accept',_0x2c5aa7);for(const _0x50cb16 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4beb9e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x50cb16,'accept',_0x2c5aa7);_0x4beb9e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x43adba=>{_0x42ad1a['model']['change'](_0x5aa84b=>{const _0x22b53b=Array['from'](_0x491b60['getRanges']())['map'](_0x443cb4=>_0x5733e9['fromRange'](_0x443cb4));_0x5aa84b['setSelection'](_0x43adba),_0x42ad1a['commands']['get']('mergeTableCells')['refresh'](),_0x42ad1a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x278112=_0x22b53b['filter'](_0x20c9e0=>'$graveyard'!=_0x20c9e0['root']['rootName']);_0x278112['length']>0x0&&_0x5aa84b['setSelection'](_0x278112);for(const _0x4d1c7b of _0x22b53b)_0x4d1c7b['detach']();});});for(const _0x651d27 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x15c493=_0x42ad1a['commands']['get'](_0x651d27);_0x15c493['on']('set:isEnabled',(_0x578fb8,_0x2c17b1,_0xda6e65)=>{if(_0xda6e65){const _0x3cb43f=_0x42ad1a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x522f6e=>_0x522f6e['is']('element','tableCell'));this['_areMergableCells'](_0x15c493['value'],_0x3cb43f)||(_0x578fb8['return']=!0x1,_0x578fb8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x49f937=this['editor']['commands']['get']('mergeTableCells'),_0x26c181=this['editor']['plugins']['get']('TableUtils');if(!_0x49f937['isEnabled'])return!0x1;const _0x5f1371=_0x26c181['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1fcb44 of _0x5f1371)for(const _0x464d3e of _0x5f1371)if(_0x1fcb44!=_0x464d3e&&!this['_areMergableCells'](_0x1fcb44,_0x464d3e))return!0x1;return!0x0;}['_areMergableCells'](_0x272a04,_0xc4ac5d){const _0x3ae51d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x214af6=this['editor']['model']['createRangeOn'](_0x272a04),_0x3ae0e5=this['editor']['model']['createRangeOn'](_0xc4ac5d),_0x46150f=new Set(),_0x4c0747=new Set();for(const _0x30f759 of _0x3ae51d['getSuggestions']())if(('insertion'==_0x30f759['type']||'deletion'==_0x30f759['type']||'mergeTableCells'==_0x30f759['subType'])&&_0x30f759['isInContent']){for(const _0x48fceb of _0x30f759['getRanges']())_0x48fceb['containsRange'](_0x214af6,!0x0)&&_0x46150f['add'](_0x30f759['type']+':'+_0x30f759['author']['id']),_0x48fceb['containsRange'](_0x3ae0e5,!0x0)&&_0x4c0747['add'](_0x30f759['type']+':'+_0x30f759['author']['id']);}if(_0x46150f['size']!=_0x4c0747['size'])return!0x1;for(const _0x1dfaa9 of _0x46150f)if(!_0x4c0747['has'](_0x1dfaa9))return!0x1;return!0x0;}}class At extends _0x58f0a6{static get['requires'](){return[jt];}['afterInit'](){const _0x5c7105=this['editor'];if(!_0x5c7105['plugins']['has']('TableEditing'))return;const _0x77f692=_0x5c7105['locale'],_0xe03d3d=_0x5c7105['plugins']['get']('TrackChangesEditing');_0xe03d3d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xe03d3d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xe03d3d['registerBlockAttribute']('headingRows'),_0xe03d3d['registerBlockAttribute']('headingColumns'),_0xe03d3d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x77f692,'FORMAT_HEADER_ROW')),_0xe03d3d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x77f692,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x121043=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e516e=this['editor']['plugins']['get']('TableUtils'),_0x567189=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3dea16({showActiveMarker:_0x2fa267=!0x0,setDataAttribute:_0x449e5a=!0x0}={}){return(_0x404586,_0x587e42,_0x51b831)=>{const {type:_0x21f117,id:_0x418db7}=_0x121043['_splitMarkerName'](_0x587e42['markerName']),_0x4559cb=_0x121043['getSuggestion'](_0x418db7),_0x575bc2=_0x4559cb['data'];if('formatBlock'!=_0x4559cb['type']||!_0x575bc2||'setTableColumnHeader'!=_0x575bc2['commandName'])return;if(_0x587e42['item'])return void _0x404586['stop']();if(!_0x51b831['consumable']['consume'](_0x587e42['markerRange'],_0x404586['name']))return;const _0x3bc7bb=_0x587e42['markerRange']['start']['nodeAfter'],_0x55726c=_0x587e42['markerRange']['end']['nodeBefore'],_0xbf0c86=_0x3bc7bb['parent']['parent'],{column:_0x30f8f8}=_0x3e516e['getCellLocation'](_0x3bc7bb),{column:_0x28043f}=_0x3e516e['getCellLocation'](_0x55726c);for(let _0x473d7c=_0x30f8f8;_0x473d7c<=_0x28043f;_0x473d7c++){const _0x17bd60=_0x3e516e['createTableWalker'](_0xbf0c86,{'column':_0x473d7c,'includeAllSlots':!0x1});for(const _0xf2cf80 of _0x17bd60){const _0x3c0b94=_0xf2cf80['cell'],_0x3e87aa=_0x51b831['mapper']['toViewElement'](_0x3c0b94);_0x51b831['writer']['addClass']('ck-suggestion-marker-'+_0x21f117,_0x3e87aa),_0x449e5a&&_0x51b831['writer']['setAttribute']('data-suggestion',_0x418db7,_0x3e87aa),_0x51b831['mapper']['bindElementToMarker'](_0x3e87aa,_0x587e42['markerName']),_0x2fa267&&(_0x121043['activeMarkers']['includes'](_0x587e42['markerName'])?_0x51b831['writer']['addClass']('ck-suggestion-marker--active',_0x3e87aa):_0x51b831['writer']['removeClass']('ck-suggestion-marker--active',_0x3e87aa));}}};}_0x121043['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x567189),_0x121043['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x567189),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3dea16(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x967a09,_0x2d94a3,_0x207cec)=>{_0x207cec['options']['showSuggestionHighlights']&&_0x3dea16({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x967a09,_0x2d94a3,_0x207cec);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x48f9bd,_0x5a556d,_0x21ac72)=>{const {type:_0x3b9c89,id:_0x167e4c}=_0x121043['_splitMarkerName'](_0x5a556d['markerName']),_0xef2f64=_0x121043['getSuggestion'](_0x167e4c),_0x5c91b9=_0xef2f64['data'];if('formatBlock'!=_0xef2f64['type']||!_0x5c91b9||'setTableColumnHeader'!=_0x5c91b9['commandName'])return;const _0x5dd796=_0x21ac72['mapper']['markerNameToElements'](_0x5a556d['markerName']);if(_0x5dd796){for(const _0x51fb34 of _0x5dd796)_0x21ac72['writer']['removeClass']('ck-suggestion-marker-'+_0x3b9c89,_0x51fb34),_0x21ac72['writer']['removeClass']('ck-suggestion-marker--active',_0x51fb34),_0x21ac72['writer']['removeAttribute']('data-suggestion',_0x51fb34),_0x21ac72['mapper']['unbindElementFromMarkerName'](_0x51fb34,_0x5a556d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x423781=this['editor'],_0x146421=_0x423781['locale'];function _0x84453f(_0x101c48){return{'type':'format','content':o(_0x146421,'*Format:*\x20%0',_0x101c48)};}_0x423781['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19368d=>{if('formatBlock'!=_0x19368d['type'])return;const {data:_0x3d884f}=_0x19368d;if(_0x3d884f){if('setTableRowHeader'==_0x3d884f['commandName']){const _0x307e9c=_0x3d884f['commandParams'][0x0]['forceValue'];return _0x84453f(o(_0x146421,_0x307e9c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3d884f['commandName']){const _0x45cc48=_0x3d884f['commandParams'][0x0]['forceValue'];return _0x84453f(o(_0x146421,_0x45cc48?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x46e4c5=>[_0x46e4c5,null]));class It extends _0x58f0a6{static get['requires'](){return[jt];}['afterInit'](){const _0x4bf5fc=this['editor'];if(!_0x4bf5fc['plugins']['has']('TableClipboard'))return;const _0x296874=_0x4bf5fc['plugins']['get']('TrackChangesEditing'),_0x508d90=_0x4bf5fc['plugins']['get']('TableUtils'),_0xc5077b=_0x4bf5fc['plugins']['get'](jt),_0x4ac4b1=_0x4bf5fc['plugins']['get']('TableClipboard');_0xc5077b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4bf5fc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4bf5fc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5e7d71=null;_0x4bf5fc['model']['on']('insertContent',(_0x57bfaa,_0x206832)=>{const [_0x13d396,_0x419599]=_0x206832,_0x135921=_0x206832[_0x206832['length']-0x1];_0x135921&&_0x135921['forceDefaultExecution']||_0x296874['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x8f0a3c,_0x1abaec,_0x49c98f,_0x442106,_0x48a131){if(_0x1abaec&&!_0x1abaec['is']('documentSelection'))return!0x1;const _0x2d18b4=_0x48a131['getTableIfOnlyTableInContent'](_0x8f0a3c,_0x49c98f);if(!_0x2d18b4||!he(_0x2d18b4,void 0x0,_0x442106))return!0x1;const _0x400540=_0x442106['getSelectionAffectedTableCells'](_0x49c98f['document']['selection']);if(!_0x400540['length'])return!0x1;const _0x2d9f2d=_0x400540[0x0]['findAncestor']('table'),_0x398456=_0x442106['getRowIndexes'](_0x400540),_0x39a9f=_0x442106['getColumnIndexes'](_0x400540),_0x424642={'startRow':_0x398456['first'],'endRow':_0x398456['last'],'startColumn':_0x39a9f['first'],'endColumn':_0x39a9f['last']};return 0x1==_0x400540['length']&&(_0x424642['endRow']+=_0x442106['getRows'](_0x2d18b4)-0x1,_0x424642['endColumn']+=_0x442106['getColumns'](_0x2d18b4)-0x1),he(_0x2d9f2d,_0x424642,_0x442106);}(_0x13d396,_0x419599,_0x4bf5fc['model'],_0x508d90,_0x4ac4b1)&&(_0x57bfaa['stop'](),_0x5e7d71={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4bf5fc['model']['change'](()=>{_0x4bf5fc['model']['insertContent'](_0x206832[0x0],_0x206832[0x1],_0x206832[0x2],{'forceDefaultExecution':!0x0});const _0x4b82d7=_0x418fff(),{rowInsertionRanges:_0x3edb95,columnInsertionRanges:_0x52faba,insertionRanges:_0x270613,deletionRanges:_0xdbd158,cells:_0x2fcc73}=_0x5e7d71;_0x3edb95['length']&&_0x296874['markMultiRangeInsertion'](_0x3edb95,'tablePasteRow',{'tablePasteChainId':_0x4b82d7}),_0x52faba['length']&&_0x296874['markMultiRangeInsertion'](_0x52faba,'tablePasteColumn',{'tablePasteChainId':_0x4b82d7}),_0x270613['length']&&(_0x296874['markMultiRangeInsertion'](_0x270613,'tablePaste',{'tablePasteChainId':_0x4b82d7,'skipNestingCheck':!0x0}),_0x270613['forEach'](_0x396206=>_0x396206['detach']?.())),_0xdbd158['length']&&(_0x296874['markMultiRangeDeletion'](_0xdbd158,'tablePaste',{'tablePasteChainId':_0x4b82d7,'skipNestingCheck':!0x0}),_0xdbd158['forEach'](_0x4a965e=>_0x4a965e['detach']?.()));const _0x57db78=_0x296874['markMultiRangeBlockFormat'](_0x2fcc73['map'](({element:_0x462fd4})=>_0x462fd4),{'formatGroupId':_0x418fff()},[],'tablePasteCell',{'tablePasteChainId':_0x4b82d7});if(_0x57db78){const _0x4d9dc6=_0x57db78['getMarkers'](),_0x2ceae2=[];for(const {element:_0x2bd5c8,attributes:_0x67847b}of _0x2fcc73){if(!_0x67847b)continue;const _0x1f4122=_0x4bf5fc['model']['createRangeOn'](_0x2bd5c8),_0xcb700=_0x4d9dc6['find'](_0x112b49=>_0x112b49['getRange']()['isEqual'](_0x1f4122));_0xcb700&&_0x2ceae2['push']([_0xcb700['name'],_0x67847b]);}_0x2ceae2['length']&&_0x57db78['setAttribute']('markerAttributes',Object['fromEntries'](_0x2ceae2));}_0x5e7d71=null;}));},{'priority':_0x1b86cf['high']+0xa}),_0x4bf5fc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x542d5d,_0x3666f7)=>{const [_0x2709a2,_0x4e0517,,_0x5c6a06]=_0x3666f7;if(!_0x5e7d71)return;_0x542d5d['stop']();const _0x4d1d48=_0x2709a2['cell'],_0x52f9a2=_0x4e0517,_0x2a969=Pe(_0x4d1d48),_0x5b2f7f=Pe(_0x52f9a2);_0x542d5d['return']=_0x4d1d48;let _0x2e24b1=null,_0x452199=null;if(_0x5b2f7f||_0x2a969){if(_0x2a969&&!_0x5b2f7f){_0x5c6a06['remove'](_0x4d1d48['getChild'](0x0));for(const _0x1f199d of Array['from'](_0x52f9a2['getChildren']()))_0x5c6a06['insert'](_0x1f199d,_0x4d1d48,'end');const _0x295101=_0x5e7d71['rowInsertionIndexes']['includes'](_0x2709a2['row']),_0x2bb31f=_0x5e7d71['columnInsertionIndexes']['includes'](_0x2709a2['column']);_0x295101||_0x2bb31f||(_0x2e24b1=_0x5733e9['fromRange'](_0x5c6a06['createRangeIn'](_0x4d1d48)));}else _0x5b2f7f&&!_0x2a969&&(_0x452199=_0x5c6a06['createRangeIn'](_0x4d1d48));}else{const _0x5c80be=_0x5c6a06['createElement']('tableCellSuggestion'),_0x215093=_0x5c6a06['createElement']('tableCellSuggestion');_0x5c6a06['wrap'](_0x5c6a06['createRangeIn'](_0x4d1d48),_0x215093),_0x5c6a06['insert'](_0x5c80be,_0x4d1d48,0x0);for(const _0x845eee of Array['from'](_0x52f9a2['getChildren']()))_0x5c6a06['insert'](_0x845eee,_0x5c80be,'end');_0x2e24b1=_0x5733e9['fromRange'](_0x5c6a06['createRangeOn'](_0x5c80be)),_0x452199=_0x5733e9['fromRange'](_0x5c6a06['createRangeOn'](_0x215093));}const _0x22131b=Array['from'](_0x52f9a2['getAttributes']())['filter'](([_0x5a57c9])=>ge['includes'](_0x5a57c9));_0x5e7d71['cells']['push']({'element':_0x4d1d48,'attributes':_0x22131b['length']?Object['fromEntries'](_0x22131b):null}),_0x2e24b1&&_0x5e7d71['insertionRanges']['push'](_0x2e24b1),_0x452199&&_0x5e7d71['deletionRanges']['push'](_0x452199);},{'priority':'high'}),_0x508d90['on']('insertColumns',(_0x50a34a,_0xe08e27)=>{const [_0x5196f1,_0x3a4cc7={}]=_0xe08e27;if(!_0x5e7d71)return;const _0x39858f=_0x3a4cc7['at']||0x0,_0x485955=_0x3a4cc7['columns']||0x1;_0x5e7d71['columnInsertionIndexes']=new Array(_0x485955)['fill'](_0x39858f)['map']((_0x28e1fe,_0x28499a)=>_0x28e1fe+_0x28499a);for(const {cell:_0x52f69b}of _0x508d90['createTableWalker'](_0x5196f1,{'startColumn':_0x39858f,'endColumn':_0x39858f+_0x485955-0x1}))_0x5e7d71['columnInsertionRanges']['push'](_0x4bf5fc['model']['createRangeOn'](_0x52f69b));},{'priority':'low'}),_0x508d90['on']('insertRows',(_0x4f67f4,_0x5cb4e1)=>{const [_0x293e5a,_0x5bfef4={}]=_0x5cb4e1;if(!_0x5e7d71)return;const _0x495709=_0x5bfef4['at']||0x0,_0x25da68=_0x5bfef4['rows']||0x1;_0x5e7d71['rowInsertionIndexes']=new Array(_0x25da68)['fill'](_0x495709)['map']((_0x382687,_0x241fd4)=>_0x382687+_0x241fd4);for(const {cell:_0x515443}of _0x508d90['createTableWalker'](_0x293e5a,{'startRow':_0x495709,'endRow':_0x495709+_0x25da68-0x1}))_0x5e7d71['rowInsertionRanges']['push'](_0x4bf5fc['model']['createRangeOn'](_0x515443));},{'priority':'low'}),_0x296874['descriptionFactory']['registerDescriptionCallback'](_0x3a3b10=>{if(_0x3a3b10['subType']&&_0x3a3b10['subType']['startsWith']('tablePaste'))return _0x3a3b10['previous']?{}:{'type':'insertion','content':o(_0x4bf5fc['locale'],'*Replace\x20table\x20cells*')};});const _0x3ee1d8=()=>!0x1;for(const _0x5f340c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x296874['_suggestionFactory']['registerCustomCallback']('insertion',_0x5f340c,'join',_0x3ee1d8),_0x296874['_suggestionFactory']['registerCustomCallback']('deletion',_0x5f340c,'join',_0x3ee1d8),_0x296874['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f340c,'join',_0x3ee1d8);_0x296874['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3ee1d8),_0x296874['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4a4df8,_0x1c4648,_0x3587fe)=>{const _0x571541=_0x4a4df8['map'](_0x3cf783=>_0x3cf783['getContainedElement']())['filter'](_0x57c71f=>_0x57c71f),_0x244c8f=new Map(_0x571541['map'](_0x385e61=>[_0x385e61,null]));if(_0x5e7d71){for(const {element:_0x17fdfc,attributes:_0x16547b}of _0x5e7d71['cells'])_0x16547b&&_0x244c8f['set'](_0x17fdfc,_0x16547b);}else{if(_0x3587fe&&_0x3587fe['markerAttributes'])for(const [_0x230388,_0x41dce3]of Object['entries'](_0x3587fe['markerAttributes'])){const _0x4f2769=_0x4bf5fc['model']['markers']['get'](_0x230388),_0x2754b5=_0x4f2769?_0x4f2769['getRange']()['getContainedElement']():null;_0x2754b5&&_0x244c8f['set'](_0x2754b5,_0x41dce3);}}_0x4bf5fc['model']['change'](_0x591ad3=>{for(const [_0x4dd15a,_0x3c47d1]of _0x244c8f)_0x591ad3['setAttributes']({...Ce,..._0x3c47d1},_0x4dd15a);});});const _0x45adc5=(_0x3cd95b,_0x2cef46)=>{_0x296874['_suggestionFactory']['registerCustomCallback'](_0x3cd95b,'tablePaste',_0x2cef46,(_0x54be94,_0x26ba6e,_0x45d200)=>{_0x4bf5fc['model']['change'](_0x4ef1ae=>{const _0x40e8db=[];for(const _0x42021a of _0x54be94){const _0x431b8e=_0x42021a['start']['nodeAfter'];_0x431b8e['is']('element','tableCellSuggestion')&&_0x40e8db['push'](_0x431b8e);}_0x296874['_suggestionFactory']['getSuggestionCallback'](_0x3cd95b,null,_0x2cef46)(_0x54be94,_0x26ba6e,_0x45d200);for(const _0x4aff66 of _0x40e8db)'$graveyard'!=_0x4aff66['root']['rootName']&&_0x4ef1ae['unwrap'](_0x4aff66);});});};_0x45adc5('insertion','accept'),_0x45adc5('insertion','discard'),_0x45adc5('deletion','accept'),_0x45adc5('deletion','discard'),_0x296874['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1e0f01=>{const _0x31411f=_0x1e0f01['map'](_0x1c811c=>_0x1c811c['getContainedElement']()),_0x176ce0=_0x31411f[0x0]['findAncestor']('table'),{minRow:_0x2a3454,maxRow:_0x36407e}=_0xc5077b['_getCoordsForCells'](_0x31411f);_0x508d90['removeRows'](_0x176ce0,{'at':_0x2a3454,'rows':_0x36407e-_0x2a3454+0x1});}),_0x296874['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x105f1d=>{const _0x3d9ab5=_0x105f1d['map'](_0x2c8454=>_0x2c8454['getContainedElement']()),_0x1d4a53=_0x3d9ab5[0x0]['findAncestor']('table'),{minColumn:_0x2d7b42,maxColumn:_0x296e5f}=_0xc5077b['_getCoordsForCells'](_0x3d9ab5);_0x508d90['removeColumns'](_0x1d4a53,{'at':_0x2d7b42,'columns':_0x296e5f-_0x2d7b42+0x1});});const _0x31afa3=(_0x2b64a8,_0x5ac4d3)=>{if(!_0x5ac4d3['subType']||!_0x5ac4d3['subType']['startsWith']('tablePaste'))return;const _0x1184a4=_0x5ac4d3['attributes']['tablePasteChainId'],_0x338f7a=_0x296874['getSuggestions']()['filter'](_0x20acd6=>_0x20acd6['isInContent']&&_0x20acd6['attributes']&&_0x20acd6['attributes']['tablePasteChainId']==_0x1184a4);_0x338f7a['length']&&_0x5ac4d3['getAllAdjacentSuggestions']()['length']!=_0x338f7a['length']&&_0x338f7a['reduce']((_0xf0a6a0,_0xa98fb0)=>(_0xf0a6a0['next']=_0xa98fb0,_0xa98fb0['previous']=_0xf0a6a0,_0xa98fb0));};function _0x26096b(_0x3e806e,_0x101124=!0x0){const {id:_0x54d290}=_0x296874['_splitMarkerName'](_0x3e806e['markerName']),_0x5e7507=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xfe2a00=_0x296874['activeMarkers']['includes'](_0x3e806e['markerName']);return _0xfe2a00&&_0x5e7507['push']('ck-suggestion-marker--active'),{'classes':_0x5e7507,'attributes':{'data-suggestion':_0x54d290},'priority':_0xfe2a00&&_0x101124?0xbc2:0xbb8};}_0x296874['on']('suggestionLoaded',_0x31afa3,{'priority':'high'}),_0x296874['on']('suggestionUnloaded',_0x31afa3,{'priority':'high'}),_0x4bf5fc['model']['document']['registerPostFixer'](()=>{let _0x3aedae=!0x1;const _0x185ec3=Array['from'](_0x4bf5fc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4bcfe8,data:_0x2c260a}of _0x185ec3){const {group:_0x40ce0d,type:_0x409599,id:_0x1a2337}=_0x296874['_splitMarkerName'](_0x4bcfe8);if('suggestion'!=_0x40ce0d||'deletion'!=_0x409599||_0x2c260a['oldRange'])continue;if(!_0x296874['hasSuggestion'](_0x1a2337))continue;const _0x26358c=_0x296874['getSuggestion'](_0x1a2337)['getRanges'](),_0xb35cdc=_0x4bf5fc['plugins']['get']('Users')['me'];for(const _0x2f7273 of _0x296874['getSuggestions']()){if(!_0x2f7273['isInContent']||_0x2f7273['author']!=_0xb35cdc)continue;if('formatBlock'!=_0x2f7273['type']||'tablePasteCell'!=_0x2f7273['subType'])continue;if(_0x2f7273['getRanges']()['every'](_0xfe50ca=>_0x26358c['some'](_0x5cfe63=>_0x5cfe63['containsRange'](_0xfe50ca,!0x0)))){for(const _0x487a89 of _0x2f7273['getAllAdjacentSuggestions']())_0x487a89['isInContent']&&(_0x487a89['discard'](),_0x3aedae=!0x0);}}}return _0x3aedae;}),_0x4bf5fc['model']['document']['registerPostFixer'](_0x3abe1a=>{const _0x2a0efc=_0x4bf5fc['commands']['get']('redo');if(!_0x2a0efc||!_0x2a0efc['_createdBatches']['has'](_0x3abe1a['batch']))return!0x1;let _0x1c5c8e=!0x1;const _0x388ac5=_0x4bf5fc['plugins']['get']('Users')['me'],_0x5578a0=_0x4bf5fc['model']['document']['differ']['getChanges'](),_0x250da3=Array['from'](_0x4bf5fc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2129a2,data:_0x558ec6})=>{const {group:_0x3ea507,subType:_0x4b039c,authorId:_0xf0724d}=_0x296874['_splitMarkerName'](_0x2129a2);return'suggestion'==_0x3ea507&&'tablePaste'==_0x4b039c&&_0xf0724d==_0x388ac5['id']&&!_0x558ec6['oldRange'];});for(const _0x4081b8 of _0x5578a0){if('insert'!=_0x4081b8['type']||'tableCellSuggestion'!=_0x4081b8['name']||0x1!=_0x4081b8['length'])continue;const _0x47b9b1=_0x3abe1a['createRange'](_0x4081b8['position'],_0x4081b8['position']['getShiftedBy'](0x1));if(!_0x250da3['find'](({data:_0xb0c82a})=>_0xb0c82a['newRange']['isEqual'](_0x47b9b1))){for(const {name:_0x2d9302,data:_0x487b5d}of _0x250da3)if(_0x47b9b1['containsRange'](_0x487b5d['newRange'])){_0x3abe1a['updateMarker'](_0x2d9302,{'range':_0x47b9b1}),_0x1c5c8e=!0x0;break;}}}return _0x1c5c8e;}),_0x4bf5fc['model']['document']['registerPostFixer'](_0x1b67ae=>{let _0x1eae81=!0x1;const _0x26e091=_0x4bf5fc['plugins']['get']('Users')['me'],_0x2b8615=_0x296874['getSuggestions']()['filter'](_0x4eba29=>_0x4eba29['isInContent']&&_0x4eba29['author']==_0x26e091),_0x2ee2f4=new Set(),_0x4c278b=new Set();for(const _0x18ef7e of _0x2b8615)if('tablePaste'==_0x18ef7e['subType'])for(const _0xfbe0bb of _0x18ef7e['getMarkers']()){const _0x1aed5d=_0xfbe0bb['getRange']()['getContainedElement']();if(_0x1aed5d){if(_0x1aed5d['is']('element','tableCellSuggestion')&&Pe(_0x1aed5d)){_0x18ef7e['removeMarker'](_0xfbe0bb['name']),_0x2ee2f4['add'](_0x1aed5d),_0x1eae81=!0x0;const _0x45326e=_0x1aed5d['nextSibling'],_0x234753=_0x1aed5d['previousSibling'],_0x36875a=_0x45326e&&_0x45326e['is']('element','tableCellSuggestion'),_0x568e23=_0x234753&&_0x234753['is']('element','tableCellSuggestion');_0x36875a&&!_0x2ee2f4['has'](_0x45326e)&&_0x4c278b['add'](_0x45326e),_0x568e23&&!_0x2ee2f4['has'](_0x234753)&&_0x4c278b['add'](_0x234753);}else _0x1aed5d['is']('element','paragraph')&&_0x1aed5d['isEmpty']&&(_0x18ef7e['removeMarker'](_0xfbe0bb['name']),_0x1eae81=!0x0);}}else{if('tablePasteCell'==_0x18ef7e['subType']){if(!_0x18ef7e['attributes']||!_0x18ef7e['attributes']['tablePasteChainId'])continue;const _0x1c5c35=_0x18ef7e['attributes']['markerAttributes'];if(_0x1c5c35&&Object['keys'](_0x1c5c35)['length'])continue;const _0x1117d3=_0x18ef7e['attributes']['tablePasteChainId'];let _0x193a41=!0x0,_0x2417f5=!0x0;for(const _0x47ce7f of _0x2b8615)if(_0x47ce7f['subType']&&_0x47ce7f['subType']['startsWith']('tablePaste')){if(!_0x47ce7f['attributes']['tablePasteChainId']){_0x2417f5=!0x1;break;}if(_0x47ce7f['id']!=_0x18ef7e['id']&&_0x47ce7f['attributes']['tablePasteChainId']==_0x1117d3){_0x193a41=!0x1;break;}}_0x2417f5&&_0x193a41&&(_0x18ef7e['removeMarkers'](),_0x1eae81=!0x0);}}for(const _0x314461 of _0x2ee2f4)_0x1b67ae['remove'](_0x314461);for(const _0x164c49 of _0x4c278b)_0x1b67ae['unwrap'](_0x164c49);return _0x1eae81;}),_0x4bf5fc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2c7b2a,_0x44f829)=>_0x26096b(_0x2c7b2a),'converterPriority':'high'}),_0x4bf5fc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x20cddd,_0x3af30f)=>_0x3af30f['options']['showSuggestionHighlights']?_0x26096b(_0x20cddd,!0x1):null,'converterPriority':'high'});const _0x2f440d=_0x4bf5fc['editing']['view'];this['listenTo'](_0x2f440d['document'],'clipboardOutput',(_0xeee4f7,_0x31618c)=>{const _0x236a1b=[];for(const _0x4220c8 of _0x2f440d['createRangeIn'](_0x31618c['content'])['getItems']())_0x4220c8['is']('element','suggestion-td')&&_0x236a1b['push'](_0x4220c8);_0x2f440d['change'](_0xfafcf0=>{for(const _0x31f08f of _0x236a1b)_0xfafcf0['move'](_0xfafcf0['createRangeIn'](_0x31f08f),_0xfafcf0['createPositionBefore'](_0x31f08f)),_0xfafcf0['remove'](_0x31f08f);});});}}function Pe(_0x209899){if(_0x209899['isEmpty'])return!0x0;const _0x43d408=_0x209899['getChild'](0x0);return _0x43d408['is']('element','paragraph')&&_0x43d408['isEmpty'];}function he(_0x31546e,_0x1ed2ca={},_0x12eba1){for(const {isAnchor:_0x46dce4,cellHeight:_0x596b51,cellWidth:_0x3f5e5f}of _0x12eba1['createTableWalker'](_0x31546e,{'includeAllSlots':!0x0,..._0x1ed2ca}))if(!_0x46dce4||0x1!=_0x596b51||0x1!=_0x3f5e5f)return!0x1;return!0x0;}class vt extends _0x58f0a6{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5c5371=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c5371['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5c5371['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5c5371['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c5371['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5c5371['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5c5371['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xe478a,_0x2df9cd){const _0x35eb89=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e1b14=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2579c0=_0x2df9cd['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x687a37=_0x5e1b14['getColumnGroupElement'](_0x2579c0);let _0x40fe46=_0x687a37?_0x5e1b14['getTableColumnsWidths'](_0x687a37):null,_0xcdfce1=_0x2579c0['getAttribute']('tableWidth')||null;const _0x514054=_0x2df9cd['tableWidth']||_0xcdfce1,_0x7388aa=_0x2df9cd['columnWidths']||_0x40fe46,_0x5d8187=this['editor']['plugins']['get']('Users')['me'];for(const _0x28653d of _0x35eb89['getSuggestions']()){const _0x43a364=_0x28653d['getContainedElement']();if('resizeTable'===_0x28653d['subType']&&_0x43a364===_0x2579c0){_0x28653d['author']!==_0x5d8187&&_0x28653d['discard']();const _0x5f2c6b=_0x28653d['data']['commandParams'];_0xcdfce1=_0x5f2c6b[0x0]['tableWidth'],_0x40fe46=_0x5f2c6b[0x0]['columnWidths'];break;}}_0xe478a({'table':_0x2579c0,'tableWidth':_0x514054,'columnWidths':_0x7388aa}),_0x35eb89['markBlockFormat'](_0x2579c0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xcdfce1,'columnWidths':_0x40fe46}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5aaa9c){if('formatBlock'!=_0x5aaa9c['type']&&'formatInline'!=_0x5aaa9c['type'])return;const {data:_0x34dbb3}=_0x5aaa9c;if(_0x34dbb3&&'resizeTable'===_0x34dbb3['formatGroupId']){const _0x7811c5='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x7811c5)};}}}class Ct extends _0x58f0a6{['afterInit'](){const _0x16ab9e=this['editor'];_0x16ab9e['plugins']['has']('Template')&&_0x16ab9e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x58f0a6{['afterInit'](){const _0x460547=this['editor'];if(!_0x460547['commands']['get']('insertTableOfContents'))return;_0x460547['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2fa670=_0x460547['plugins']['get']('TrackChangesEditing'),_0x226dc5=_0x460547['locale'];_0x2fa670['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5bf7fd=>o(_0x226dc5,'ELEMENT_TABLE_OF_CONTENTS',_0x5bf7fd));}}class Dt extends _0x58f0a6{['afterInit'](){const _0x1b1252=this['editor'];if(!_0x1b1252['plugins']['has']('Title'))return;const _0x32d9be=_0x1b1252['plugins']['get']('TrackChangesEditing');_0x32d9be['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1b1252['locale'],'ELEMENT_TITLE')),_0x1b1252['model']['document']['registerPostFixer'](_0x2b6bcc=>{let _0x47f014=!0x1;const _0x368950=Array['from'](_0x1b1252['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2fb5a4,data:_0x319fa9}of _0x368950){const {group:_0x43436b}=_0x32d9be['_splitMarkerName'](_0x2fb5a4);if('suggestion'!==_0x43436b||!_0x319fa9['newRange'])continue;const _0x2b2527=_0x319fa9['newRange'],_0x41caff=_0x2b2527['end']['nodeBefore'];if(!_0x41caff||!_0x41caff['is']('element','title-content'))continue;if(!_0x2b2527['start']['isTouching'](_0x2b2527['end']))continue;const _0x5d6624=_0x1b1252['model']['schema']['getNearestSelectionRange'](_0x2b2527['end'],'forward');if(_0x5d6624&&_0x5d6624['isCollapsed']){const _0x149c59=_0x2b6bcc['createRange'](_0x2b2527['start'],_0x5d6624['start']);_0x149c59['isEqual'](_0x2b2527)||(_0x2b6bcc['updateMarker'](_0x2fb5a4,{'range':_0x149c59}),_0x47f014=!0x0);}_0x47f014||(_0x2b6bcc['removeMarker'](_0x2fb5a4),_0x47f014=!0x0);}return _0x47f014;});}}class Nt extends _0x58f0a6{['afterInit'](){const _0x457dd2=this['editor'],_0x148e63=_0x457dd2['plugins']['get']('TrackChangesEditing');_0x457dd2['plugins']['has']('UndoEditing')&&(_0x148e63['enableCommand']('undo'),_0x148e63['enableCommand']('redo'));}}class Mt extends _0x58f0a6{static get['requires'](){return[jt];}['afterInit'](){const _0x413e9c=this['editor'];if(!_0x413e9c['plugins']['has']('TableCaptionEditing'))return;_0x413e9c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x58f0a6{['tableProperties'];['tableCellProperties'];constructor(_0x1545d0){super(_0x1545d0),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 _0x3fd16d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x98873c of this['tableProperties'])_0x3fd16d['enableCommand'](_0x98873c,(_0x51f670,_0x577df8)=>{const _0x4d4488=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x98873c,[_0x4d4488],this['tableProperties'],'tableProperties',_0x51f670,_0x577df8);});_0x3fd16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3fd16d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fd16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x55f09e,_0x18fd7f)=>this['handleDiscardAction'](this['tableProperties'],_0x55f09e,_0x18fd7f)),_0x3fd16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x49f980 of this['tableCellProperties'])_0x3fd16d['enableCommand'](_0x49f980,(_0x116475,_0x291957)=>{const _0x5d1e38=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x49f980,_0x5d1e38,this['tableCellProperties'],'tableCellProperties',_0x116475,_0x291957);});_0x3fd16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3fd16d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fd16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2f78a5,_0x50392c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2f78a5,_0x50392c)),_0x3fd16d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3fd16d['descriptionFactory']['registerDescriptionCallback'](_0x2c17bc=>this['handleSuggestionDescription'](_0x2c17bc));}['_handlePropertyChange'](_0x30cb7c,_0x11b53a,_0x50c05e,_0x5d42ea,_0x135a44,_0x139a56){const _0x458f9b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x139a56['batch'],()=>{for(const _0x327b38 of _0x11b53a){if(this['_getSuggestion'](_0x327b38,_0x5d42ea))_0x135a44(_0x139a56);else{const _0x485d31={};for(const _0x4b98a6 of _0x50c05e){const _0x52c507=_0x327b38['getAttribute'](_0x4b98a6);void 0x0!==_0x52c507&&(_0x485d31[_0x4b98a6]=_0x52c507);}_0x135a44(_0x139a56),_0x458f9b['markBlockFormat'](_0x327b38,{'commandParams':[_0x485d31]},[],_0x5d42ea);}}});}['handleDiscardAction'](_0x4fa30f,_0x1ae369,_0x101002){const _0x16e70e=_0x1ae369[0x0]['start']['nodeAfter'],_0x9b415c=_0x101002['commandParams'][0x0];this['editor']['model']['change'](_0x1e0b70=>{for(const _0x470fd1 of _0x4fa30f)void 0x0!==_0x9b415c[_0x470fd1]?_0x1e0b70['setAttribute'](_0x470fd1,_0x9b415c[_0x470fd1],_0x16e70e):_0x1e0b70['removeAttribute'](_0x470fd1,_0x16e70e);});}['handleSuggestionDescription'](_0x1326fd){if(_0x1326fd['data'])switch(_0x1326fd['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'](_0x466ebe,_0x24456f){const _0x5ea30e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xf561c6 of _0x5ea30e['getSuggestions']({'skipNotAttached':!0x0})){const _0x383940=_0xf561c6['getContainedElement']();if(_0xf561c6['subType']===_0x24456f&&_0x383940===_0x466ebe)return _0xf561c6;}return null;}}const m='$elementName';class p extends _0x58f0a6{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x7b8d04,_0x34a628,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(_0x34411a){function _0x21753f(_0x106b8b){return _0x106b8b['map'](_0x1d4e3e=>String['fromCharCode'](_0x1d4e3e))['join']('');}super(_0x34411a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2721f2,_0x4aea2c,_0x307b9e,_0x30cfb3)=>{this['_model']['change'](()=>{for(const _0x919f46 of[..._0x30cfb3,..._0x307b9e])this['_model']['markers']['has'](_0x919f46)&&_0x34411a['editing']['reconvertMarker'](_0x919f46);});}),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']=_0x34411a['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(),_0x34411a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x34411a['config']['get']('trackChanges.trackFormatChanges'),_0x34411a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x34411a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x34411a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x21753f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x21753f([0x34,0x30,0x34,0x38,0x31,0x34,0x31,0x30]);}['init'](){const _0x549387=this['editor'],_0x5e2975=(_0x5c22c8,_0x54903e)=>{if('attribute'!=_0x5c22c8)return'ck-suggestion-marker-'+_0x5c22c8;const _0x3c0871=_0x54903e['split']('|')[0x0];return this['_isBlockAttribute'](_0x3c0871)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x549387['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5dee83=>{const {id:_0x4072fc,type:_0x2245d0,subType:_0xb33e28}=this['_splitMarkerName'](_0x5dee83['markerName']),_0x2c2627=['ck-suggestion-marker',_0x5e2975(_0x2245d0,_0xb33e28)];let _0x5832c8=0xbb8;return this['activeMarkers']['includes'](_0x5dee83['markerName'])&&(_0x2c2627['push']('ck-suggestion-marker--active'),_0x5832c8=0xbc2),'deletion'==_0x2245d0&&(_0x5832c8+=0x5),{'classes':_0x2c2627,'attributes':{'data-suggestion':_0x4072fc},'priority':_0x5832c8};}}),_0x549387['conversion']['for']('dataDowncast')['add'](_0x158816=>{_0x158816['on']('addMarker:suggestion',(_0x440e82,_0x2074dc,_0x3c5854)=>{if(!_0x3c5854['options']['showSuggestionHighlights'])return;const _0x17ea79=_0x2074dc['item'];if(!_0x17ea79)return;const _0x3e4ec7=_0x3c5854['mapper']['toViewElement'](_0x17ea79);_0x549387['model']['schema']['isObject'](_0x17ea79)&&_0x3e4ec7&&!_0x3e4ec7['getCustomProperty']('widget')&&_0x3e4ec7['is']('containerElement')&&_0x4fac4f(_0x3e4ec7,_0x3c5854['writer']);},{'priority':'high'});}),_0x549387['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x38e417,_0x29ff08)=>{if(!_0x29ff08['options']['showSuggestionHighlights'])return null;const {type:_0x4e956e,subType:_0x216424}=this['_splitMarkerName'](_0x38e417['markerName']);return{'classes':['ck-suggestion-marker',_0x5e2975(_0x4e956e,_0x216424)],'priority':0xbb8};}});const _0xce4282=({showActiveMarkers:_0x87dcf7=!0x0,isAttributeSuggestion:_0x3e74e2=!0x1}={})=>(_0x361408,_0x49490e,_0x4d211b)=>{if(!_0x49490e['item'])return;const {id:_0x18bbf4}=this['_splitMarkerName'](_0x49490e['markerName']);if(_0x3e74e2){const _0x2925ef=this['_suggestions']['get'](_0x18bbf4),_0x7c97a0=this['_getAttributeKey'](_0x2925ef);if(!this['_isBlockAttribute'](_0x7c97a0))return;}if(_0x49490e['item']['is']('selection'))return void _0x4d211b['consumable']['consume'](_0x49490e['item'],_0x361408['name']);const _0x1f9e16=_0x4d211b['mapper']['toViewElement'](_0x49490e['item']);if(_0x49490e['item']['is']('element')&&_0x549387['model']['schema']['isBlock'](_0x49490e['item'])&&!_0x1f9e16['getCustomProperty']('addHighlight')){_0x4d211b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1f9e16),_0x4d211b['writer']['setAttribute']('data-suggestion',_0x18bbf4,_0x1f9e16),_0x4d211b['mapper']['bindElementToMarker'](_0x1f9e16,_0x49490e['markerName']),_0x87dcf7&&(this['activeMarkers']['includes'](_0x49490e['markerName'])?_0x4d211b['writer']['addClass']('ck-suggestion-marker--active',_0x1f9e16):_0x4d211b['writer']['removeClass']('ck-suggestion-marker--active',_0x1f9e16));for(const _0x359bf5 of _0x549387['model']['createRangeIn'](_0x49490e['item'])['getItems']())_0x4d211b['consumable']['consume'](_0x359bf5,_0x361408['name']);_0x4d211b['consumable']['consume'](_0x49490e['item'],_0x361408['name']);}};_0x549387['conversion']['for']('dataDowncast')['add'](_0x58286f=>{_0x58286f['on']('addMarker:suggestion:formatBlock',(_0x5e68f6,_0x4606aa,_0x28b320)=>{_0x28b320['options']['showSuggestionHighlights']&&_0xce4282({'showActiveMarkers':!0x1})(_0x5e68f6,_0x4606aa,_0x28b320);},{'priority':'highest'});}),_0x549387['conversion']['for']('dataDowncast')['add'](_0x234c31=>{_0x234c31['on']('addMarker:suggestion:attribute',(_0x33c25e,_0x330baf,_0x27fefc)=>{_0x27fefc['options']['showSuggestionHighlights']&&_0xce4282({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x33c25e,_0x330baf,_0x27fefc);},{'priority':'highest'});}),_0x549387['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x11a9aa,_0x1079b8)=>_0x1079b8['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x11a9aa['substr'](0xb)}}),_0x549387['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xf0de0,{writer:_0x36e1a7})=>{let _0x5b3942='suggestion:'+_0xf0de0['getAttribute']('suggestion-type')+':'+_0xf0de0['getAttribute']('id');return _0xf0de0['getAttribute']('marker-count')&&(_0x5b3942+=':'+_0xf0de0['getAttribute']('marker-count')),_0x36e1a7['createElement']('$marker',{'data-name':_0x5b3942});}}),_0x549387['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x549387['conversion']['for']('editingDowncast')['add'](_0x295dd8=>{_0x295dd8['on']('addMarker:suggestion:formatBlock',_0xce4282(),{'priority':'high'});}),_0x549387['conversion']['for']('editingDowncast')['add'](_0x29e947=>{_0x29e947['on']('addMarker:suggestion:attribute',_0xce4282({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x549387['conversion']['for']('editingDowncast')['add'](_0x58ce0d=>{_0x58ce0d['on']('removeMarker:suggestion:formatBlock',(_0x1fbce4,_0x10ed9d,_0x2369d1)=>{const _0x4f5042=_0x2369d1['mapper']['markerNameToElements'](_0x10ed9d['markerName']);if(_0x4f5042){for(const _0x4f0f00 of _0x4f5042)_0x4f0f00['getCustomProperty']('addHighlight')||(_0x2369d1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4f0f00),_0x2369d1['writer']['removeAttribute']('data-suggestion',_0x4f0f00),_0x2369d1['mapper']['unbindElementFromMarkerName'](_0x4f0f00,_0x10ed9d['markerName']));}},{'priority':'high'});}),_0x549387['conversion']['for']('editingDowncast')['add'](_0x4aa505=>{_0x4aa505['on']('removeMarker:suggestion:attribute',(_0x2cd7d0,_0x52e65e,_0x5736b6)=>{const _0x260ba4=_0x5736b6['mapper']['markerNameToElements'](_0x52e65e['markerName']);if(!_0x260ba4)return;const {id:_0x46df11}=this['_splitMarkerName'](_0x52e65e['markerName']),_0x43f77c=this['_suggestions']['get'](_0x46df11),_0x43e8ba=this['_getAttributeKey'](_0x43f77c);if(this['_isBlockAttribute'](_0x43e8ba)){for(const _0xf9c80c of _0x260ba4)_0xf9c80c['getCustomProperty']('addHighlight')||(_0x5736b6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xf9c80c),_0x5736b6['writer']['removeAttribute']('data-suggestion',_0xf9c80c),_0x5736b6['mapper']['unbindElementFromMarkerName'](_0xf9c80c,_0x52e65e['markerName']));}},{'priority':'high'});}),_0x549387['model']['document']['registerPostFixer'](_0x4ad74c=>{let _0x405e96=!0x1;const _0x4fa804=Array['from'](_0x549387['model']['document']['differ']['getChangedMarkers']()),_0x3ff7a7=new Set();for(const {name:_0x5e41f0,data:_0x42322f}of _0x4fa804){const {group:_0xbde331,type:_0x1b13ad,subType:_0x5be8bb,id:_0xcf9f30}=this['_splitMarkerName'](_0x5e41f0);if('suggestion'!==_0xbde331)continue;const _0x9e64d4=this['_suggestions']['get'](_0xcf9f30);if(null!=_0x42322f['newRange']){'formatInline'==_0x1b13ad&&(_0x405e96=_0x405e96||Et(_0x42322f['newRange'],_0x5e41f0,_0x4ad74c,_0x549387['model']['schema']));const _0x3c0d4a='attribute'==_0x1b13ad&&this['_isBlockAttribute'](_0x5be8bb['split']('|')[0x0]);if(_0x42322f['newRange']['isCollapsed']||'$graveyard'==_0x42322f['newRange']['root']['rootName']||'formatBlock'==_0x1b13ad&&!Ut(_0x42322f['newRange'])||_0x3c0d4a&&!Ut(_0x42322f['newRange'])||'deletion'==_0x1b13ad&&!(!Tt(_0x17662a=_0x42322f['newRange'])&&!function(_0x5d881f){return _0x5d881f['start']['parent']==_0x5d881f['end']['nodeBefore']&&_0x5d881f['start']['isAtEnd'];}(_0x17662a)))_0x4ad74c['removeMarker'](_0x5e41f0),_0x405e96=!0x0;else{if(!_0x9e64d4||!_0x9e64d4['isInContent'])continue;_0x3ff7a7['add'](_0x9e64d4);}}}var _0x17662a;return _0x3ff7a7['size']>0x0&&(_0x405e96=!!this['_joinWithAdjacentSuggestions'](_0x3ff7a7)||_0x405e96),_0x405e96;}),_0x549387['model']['document']['registerPostFixer'](_0xb4c36c=>{let _0x208cea=!0x1;for(const _0x3f4642 of _0x549387['model']['document']['differ']['getChanges']())if('insert'==_0x3f4642['type'])for(const _0x4d02ee of this['_suggestions']['values']()){if(_0x4d02ee['isMultiRange']||!_0x4d02ee['isInContent'])continue;const _0x9e8829='formatBlock'==_0x4d02ee['type'],_0x18b9c7=this['_getAttributeKey'](_0x4d02ee),_0x2e7fec=_0x18b9c7&&this['_isBlockAttribute'](_0x18b9c7);if(!_0x9e8829&&!_0x2e7fec)continue;const _0x26bca3=_0x4d02ee['getFirstRange']();if(_0x26bca3['start']['parent']!=_0x26bca3['end']['parent']&&!_0x26bca3['end']['isAtEnd']){const _0x49a153=_0x549387['model']['createPositionAt'](_0x26bca3['start']['nodeAfter'],'end'),_0x521406=_0x549387['model']['createRange'](_0x26bca3['start'],_0x49a153);_0xb4c36c['updateMarker'](_0x4d02ee['getFirstMarker'](),{'range':_0x521406}),_0x208cea=!0x0;}}return _0x208cea;}),_0x549387['model']['document']['registerPostFixer'](_0x4914d7=>this['_processAttributeChanges'](_0x4914d7)),_0x549387['model']['document']['registerPostFixer'](_0x567b69=>!_0x567b69['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x567b69)),_0x549387['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x549387['model']['document']['on']('change:data',(_0x2c0252,_0x533542)=>{if(!_0x533542['isLocal']||_0x533542['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x20e6fc=_0x549387['model']['document']['differ']['getChanges']();if(0x0==_0x20e6fc['length'])return;const _0x2ef1d1=[],_0x48cd53=_0x20e6fc['filter'](_0xc90eb4=>'attribute'==_0xc90eb4['type']),_0x3cf3ba=_0x20e6fc['filter'](_0xafe5fa=>'insert'==_0xafe5fa['type']&&'$text'!=_0xafe5fa['name']);for(const _0x10eb2e of _0x48cd53)this['_isRegisteredAttribute'](_0x10eb2e['attributeKey'])&&_0x2ef1d1['push']({'key':_0x10eb2e['attributeKey'],'newValue':_0x10eb2e['attributeNewValue'],'oldValue':_0x10eb2e['attributeOldValue'],'range':Ot(_0x10eb2e['range'],_0x549387['model'])});for(const _0x35de91 of _0x3cf3ba){if('rename'!=_0x35de91['action']&&'refresh'!=_0x35de91['action'])continue;const _0x1b9def=Gt(_0x35de91['position']['nodeAfter'],_0x549387['model']),_0x4e770e=_0x35de91['before'];'rename'==_0x35de91['action']&&_0x2ef1d1['push']({'key':m,'newValue':_0x35de91['name'],'oldValue':_0x4e770e['name'],'range':_0x1b9def});for(const [_0x49c25e,_0x51deaf]of _0x4e770e['attributes']){if(!this['_isRegisteredAttribute'](_0x49c25e))continue;const _0x28a5fb=_0x35de91['attributes']['get'](_0x49c25e);_0x51deaf!==_0x28a5fb&&_0x2ef1d1['push']({'key':_0x49c25e,'newValue':_0x28a5fb,'oldValue':_0x51deaf,'range':_0x1b9def});}for(const [_0x1bf69e,_0x11b580]of _0x35de91['attributes'])this['_isRegisteredAttribute'](_0x1bf69e)&&(_0x4e770e['attributes']['has'](_0x1bf69e)||_0x2ef1d1['push']({'key':_0x1bf69e,'newValue':_0x11b580,'oldValue':null,'range':_0x1b9def}));}0x0!=_0x2ef1d1['length']&&_0x549387['model']['enqueueChange'](_0x533542,_0x294ff4=>{const _0x4c5eb1=_0x418fff();for(const {range:_0x21a030,key:_0x559817,oldValue:_0x541d23,newValue:_0x1790a8}of _0x2ef1d1)this['markAttributeChange'](_0x21a030,_0x559817,_0x541d23,_0x1790a8,{'groupId':_0x4c5eb1});this['_reduceExistingSuggestions'](_0x294ff4,_0x2ef1d1);});},{'priority':'lowest'}),_0x549387['model']['markers']['on']('update:suggestion',(_0x42c49e,_0x16d022,_0x4080e1)=>{if(null==_0x4080e1){const {id:_0x2b5533}=this['_splitMarkerName'](_0x16d022['name']),_0x575eb4=this['_suggestions']['get'](_0x2b5533);_0x575eb4&&_0x575eb4['addMarkerName'](_0x16d022['name']);}}),_0x549387['model']['document']['on']('change:data',()=>{const _0x3d9126=Array['from'](_0x549387['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3a1b89=>'suggestion'===this['_splitMarkerName'](_0x3a1b89['name'])['group']);if(0x0===_0x3d9126['length'])return;_0x3d9126['sort']((_0x165230,_0x112804)=>{const _0xda610c=_0x165230['data']['oldRange'],_0xec1a9a=_0x112804['data']['oldRange'];return null===_0xda610c&&null===_0xec1a9a?0x0:null===_0xda610c&&null!==_0xec1a9a?-0x1:null!==_0xda610c&&null===_0xec1a9a?0x1:_0xda610c['start']['isBefore'](_0xec1a9a['start'])?-0x1:0x1;});const _0x4653d6=new Set(),_0x1931f0=new Set();for(const {name:_0x21dae,data:_0x714de8}of _0x3d9126){const {id:_0x8946c2}=this['_splitMarkerName'](_0x21dae);if(null===_0x714de8['oldRange']){const _0x151f97=this['_handleNewSuggestionMarker'](_0x21dae);_0x1931f0['add'](_0x151f97);}else{const _0x5b5250=this['_suggestions']['get'](_0x8946c2);null!==_0x714de8['newRange']||_0x5b5250['isInContent']?(_0x4653d6['add'](_0x5b5250['head']),_0x1931f0['add'](_0x5b5250)):this['_removeSuggestion'](_0x5b5250);}}_0x1931f0['size']>0x0&&this['_refreshSuggestionsChain'](_0x1931f0);for(const _0x1e3cd1 of _0x4653d6)this['fire']('suggestionChanged',_0x1e3cd1);}),_0x549387['model']['on']('applyOperation',(_0x5aab90,_0x3d7410)=>{const _0x11f546=_0x3d7410[0x0];if(!this['_suggestions']['size'])return;if(!_0x11f546['isDocumentOperation'])return;if(_0x11f546['batch']['isUndo']||!_0x11f546['batch']['isLocal'])return;let _0x20381,_0x14cd11;switch(_0x11f546['type']){case'insert':_0x20381=_0x549387['model']['createPositionAt'](_0x11f546['position']),_0x14cd11=_0x20381['getShiftedBy'](_0x11f546['howMany']);break;case'split':_0x20381=_0x549387['model']['createPositionAt'](_0x11f546['splitPosition']),_0x14cd11=_0x549387['model']['createPositionAt'](_0x11f546['moveTargetPosition']);break;case'move':_0x20381=_0x549387['model']['createPositionAt'](_0x11f546['targetPosition']),_0x14cd11=_0x20381['getShiftedBy'](_0x11f546['howMany']);break;default:return;}const _0x16d981=_0x549387['model']['createRange'](_0x20381,_0x14cd11);_0x549387['model']['change'](()=>{for(const {suggestion:_0x149b94,meta:_0x452a29}of this['_findSuggestions'](_0x16d981)){if(_0x149b94['isMultiRange'])continue;if('formatInline'==_0x149b94['type'])continue;const _0x92ccd4=this['_getAttributeKey'](_0x149b94);if(_0x92ccd4&&this['_isBlockAttribute'](_0x92ccd4)&&'split'!=_0x11f546['type'])continue;const _0x62fa8d=_0x149b94['data']&&_0x149b94['data']['multipleBlocks'];('formatBlock'!=_0x149b94['type']||'split'==_0x11f546['type']&&!_0x62fa8d)&&(_0x452a29['containsRangeInObject']||'insertion'==_0x149b94['type']&&_0x452a29['isOwn']||_0x149b94['getFirstRange']()['containsRange'](_0x16d981)&&this['_breakSuggestionMarker'](_0x149b94,_0x20381,_0x14cd11));}});},{'priority':'lowest'}),_0x549387['model']['on']('deleteContent',(_0xce034e,_0x3ea8c7)=>{const _0x4b5576=_0x3ea8c7[0x0],_0x188cef=_0x3ea8c7[0x1];if(_0x188cef&&_0x188cef['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4b5576['isCollapsed'])return;const _0x31899=_0x549387['model']['schema'],{start:_0x55a815,end:_0x2b079e}=_0x4b5576['getFirstRange'](),_0xd6ab52=_0x55a815['nodeAfter']&&_0x31899['isLimit'](_0x55a815['nodeAfter'])?null:_0x31899['getNearestSelectionRange'](_0x55a815,'forward'),_0x2008ad=_0x2b079e['nodeBefore']&&_0x31899['isLimit'](_0x2b079e['nodeBefore'])?null:_0x31899['getNearestSelectionRange'](_0x2b079e,'backward'),_0x14affe=_0x549387['model']['createRange'](_0xd6ab52?_0xd6ab52['start']:_0x55a815,_0x2008ad?_0x2008ad['end']:_0x2b079e);_0x549387['model']['change'](_0xb1810f=>{this['markDeletion'](_0x14affe);const _0x2d9fb1=_0x549387['model']['schema']['getNearestSelectionRange'](_0x14affe['start']);_0x4b5576['is']('documentSelection')?_0xb1810f['setSelection'](_0x2d9fb1):_0x4b5576['setTo'](_0x2d9fb1);}),_0xce034e['stop']();},{'priority':_0x1b86cf['normal']+0xa}),_0x549387['model']['on']('insertContent',(_0x52e93d,_0x207245)=>{const _0x4cdfe8=_0x207245[_0x207245['length']-0x1];_0x4cdfe8&&_0x4cdfe8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x549387['model']['change'](()=>{let _0x1938c9=_0x549387['model']['insertContent'](_0x207245[0x0],_0x207245[0x1],_0x207245[0x2],{'forceDefaultExecution':!0x0});if(!_0x1938c9)return;_0x52e93d['return']=_0x1938c9['clone']();const _0x3c87ca=_0x1938c9['end']['nodeBefore'],_0x4958ef=_0x549387['model']['schema'];_0x3c87ca&&_0x4958ef['isBlock'](_0x3c87ca)&&!_0x4958ef['isObject'](_0x3c87ca)&&(_0x1938c9=_0x549387['model']['createRange'](_0x1938c9['start'],_0x549387['model']['createPositionAt'](_0x3c87ca,'end'))),this['markInsertion'](_0x1938c9);}),_0x52e93d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x26c06e=new $(_0x549387,this['_suggestions']);_0x549387['commands']['add']('acceptSuggestion',_0x26c06e),this['enableCommand']('acceptSuggestion');const _0x7de7d=new B(_0x549387,this['_suggestions']);_0x549387['commands']['add']('discardSuggestion',_0x7de7d),this['enableCommand']('discardSuggestion'),_0x549387['commands']['add']('acceptAllSuggestions',new x(_0x549387,_0x26c06e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x549387['commands']['add']('discardAllSuggestions',new x(_0x549387,_0x7de7d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x549387['commands']['add']('acceptSelectedSuggestions',new R(_0x549387,_0x26c06e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x549387['commands']['add']('discardSelectedSuggestions',new R(_0x549387,_0x7de7d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xab3d74=_0x549387['plugins']['get']('CommentsRepository');this['listenTo'](_0xab3d74,'addComment',(_0x278115,{threadId:_0x20636e})=>{const _0x582b1e=this['_suggestions']['get'](_0x20636e);_0x582b1e&&_0x582b1e['commentThread']&&0x1===_0x582b1e['commentThread']['length']&&this['_updateSuggestionData'](_0x20636e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xab3d74,'removeComment',(_0x5e5fcd,{threadId:_0x45c03d})=>{const _0x3d9491=this['_suggestions']['get'](_0x45c03d);_0x3d9491&&_0x3d9491['commentThread']&&!_0x3d9491['commentThread']['length']&&this['_updateSuggestionData'](_0x45c03d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0xd90c73){if(this['_adapter'])throw new _0x5a9654('track-changes-adapter-already-set',this);this['_adapter']=_0xd90c73;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1841e4=!0x1,toJSON:_0x407d1b=!0x1}={}){const _0x489f54=[];for(const _0xe9d19 of this['_suggestions']['values']())_0x1841e4&&!_0xe9d19['isInContent']||_0x489f54['push'](_0xe9d19);return _0x407d1b?_0x489f54['map'](_0x65ee78=>_0x65ee78['toJSON']()):_0x489f54;}['getSuggestion'](_0xcfaf0a){const _0x561561=this['_suggestions']['get'](_0xcfaf0a);if(!_0x561561)throw new _0x5a9654('track-changes-suggestion-not-found',this);return _0x561561;}['hasSuggestion'](_0xc1253e){return this['_suggestions']['has'](_0xc1253e);}['addSuggestionData'](_0x4fe79d){const {authorId:_0xc21c9d,id:_0x57ea6e,attributes:_0x40f5d5}=_0x4fe79d,[_0x16c984,_0x57f70e]=_0x4fe79d['type']['split'](':'),_0x381ad4=this['_suggestions']['get'](_0x57ea6e)||this['_createSuggestion'](_0x16c984,_0x57f70e,_0x57ea6e,_0xc21c9d,_0x40f5d5);if(this['_addThreadToSuggestion'](_0x381ad4),this['_checkSuggestionCorrectness'](_0x381ad4,_0x16c984,_0x57f70e||null,_0xc21c9d),_0x381ad4['createdAt']=_0x4fe79d['createdAt'],_0x381ad4['_isDataLoaded']=!0x0,_0x40f5d5&&_0x40f5d5['@external']){const _0x5533b1=_0x40f5d5['@external'],_0x47a187=this['_getExternalAuthor'](_0x5533b1['authorName']);_0x381ad4['authoredAt']=_0x5533b1['createdAt'],_0x381ad4['author']=_0x47a187,_0x381ad4['isExternal']=!0x0;}else _0x381ad4['authoredAt']=_0x4fe79d['createdAt'];switch(_0x4fe79d['data']&&(_0x381ad4['data']=_0x4fe79d['data']),_0x4fe79d['attributes']&&(_0x381ad4['attributes']=_0x4fe79d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x381ad4['_saved']=!0x0),this['_suggestionState']['get'](_0x381ad4)){case'notReady':this['_suggestionState']['set'](_0x381ad4,'dataReady');break;case'markerReady':_0x381ad4['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x381ad4])),this['_refreshSuggestionsChain'](new Set([_0x381ad4])),this['_suggestionState']['set'](_0x381ad4,'ready'),this['fire']('suggestionLoaded',_0x381ad4)):this['_suggestionState']['set'](_0x381ad4,'removed');}return _0x381ad4;}['acceptSuggestion'](_0x185781){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1bc645 of _0x185781['getAllAdjacentSuggestions']())_0x1bc645['accept']();});});}['discardSuggestion'](_0x411b7c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2ff11d of _0x411b7c['getAllAdjacentSuggestions']())_0x2ff11d['discard']();});});}['enableCommand'](_0x428fb2,_0xe5c7b1){const _0xb9afb7=this['editor']['commands']['get'](_0x428fb2);if(!_0xb9afb7)throw new _0x5a9654('track-changes-command-not-found',this,{'commandName':_0x428fb2});if(this['_enabledCommands']['has'](_0xb9afb7))throw new _0x5a9654('track-changes-enable-command-twice',this,{'commandName':_0x428fb2});this['_enabledCommands']['add'](_0xb9afb7),_0xe5c7b1&&_0xb9afb7['on']('execute',(_0x11afd9,_0x118660)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x118660['length']>0x0&&_0x118660[_0x118660['length']-0x1]&&_0x118660[_0x118660['length']-0x1]['forceDefaultExecution']?_0x118660['pop']():(_0x11afd9['return']=_0xe5c7b1((..._0x4feb88)=>_0xb9afb7['execute'](..._0x4feb88,{'forceDefaultExecution':!0x0}),..._0x118660),_0x11afd9['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x600bf2){let _0x32355f,_0x3ebb1e;const _0x4de598=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x32355f=_0x600bf2();}catch(_0x456595){_0x3ebb1e=_0x456595;}return _0x4de598||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3ebb1e&&_0x5a9654['rethrowUnexpectedError'](_0x3ebb1e,this),_0x32355f;}['markInsertion'](_0x5783ee,_0x3828e5=null,_0x171742={}){if(_0x5783ee['isCollapsed'])return null;const _0x33882e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1937d0,meta:_0xf65684}of this['_findSuggestions'](_0x5783ee,'insertion'))if(_0xf65684['isOwn']){if(!_0xf65684['isNextTo']){if(_0xf65684['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x1937d0,_0x171742))continue;return _0x1937d0;}if(Lt(_0x1937d0,_0x171742))return _0x1937d0;this['_breakSuggestionMarker'](_0x1937d0,_0x5783ee['start'],_0x5783ee['end']);break;}if(_0x3828e5==_0x1937d0['subType']&&Lt(_0x1937d0,_0x171742)){const _0x44baa0=_0x1937d0['getFirstRange']();return _0x44baa0['start']['isEqual'](_0x5783ee['end'])?this['_setSuggestionRange'](_0x1937d0,this['_model']['createRange'](_0x5783ee['start'],_0x44baa0['end'])):this['_setSuggestionRange'](_0x1937d0,this['_model']['createRange'](_0x44baa0['start'],_0x5783ee['end'])),_0x1937d0;}}const _0x439f99=_0x418fff(),_0x4b38a9=_0x33882e['id'],_0x4b7ed6=_0x3828e5?'insertion:'+_0x3828e5:'insertion',_0xad22e=this['_setSuggestionData']({'id':_0x439f99,'type':_0x4b7ed6,'createdAt':new Date(),'authorId':_0x4b38a9,'attributes':_0x171742});return this['_addSuggestionMarker'](_0x4b7ed6,_0x439f99,_0x4b38a9,_0x5783ee),_0xad22e;}['markMultiRangeInsertion'](_0x128991,_0x166c6a='multi',_0x209180={}){const _0x4862dd=this['editor']['plugins']['get']('Users')['me'],_0x41d9e7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x166c6a,'join');for(const _0x25dff9 of this['getSuggestions']())if(_0x25dff9['author']['id']==_0x4862dd['id']&&'insertion'==_0x25dff9['type']&&_0x25dff9['subType']==_0x166c6a&&Lt(_0x25dff9,_0x209180)&&(_0x41d9e7(_0x25dff9['getRanges'](),_0x128991)||_0x41d9e7(_0x128991,_0x25dff9['getRanges']()))){for(const _0x6a64ee of _0x128991)_0x25dff9['addRange'](_0x6a64ee);return _0x25dff9;}for(const {suggestion:_0x449e19,meta:_0x43d954}of this['_findSuggestions'](_0x128991,'insertion')){if(!_0x43d954['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x43d954['containsRangeInObject'])continue;if(!Lt(_0x449e19,_0x209180))continue;let _0x37e646=!0x0;for(const _0x2320f0 of _0x449e19['getRanges']())for(const _0x50fe1d of _0x128991)if(!_0x2320f0['containsRange'](_0x50fe1d)){_0x37e646=!0x1;break;}if(_0x37e646)return _0x449e19;}const _0x338673=_0x418fff(),_0x294cb2=_0x4862dd['id'],_0x5d1133='insertion:'+_0x166c6a,_0x12a476=this['_setSuggestionData']({'id':_0x338673,'type':_0x5d1133,'createdAt':new Date(),'authorId':_0x294cb2,'attributes':_0x209180});for(const _0x3b9f90 of _0x128991)this['_addSuggestionMarker'](_0x5d1133,_0x338673,_0x294cb2,_0x3b9f90,u['getMultiRangeId']());return _0x12a476;}['markInlineFormat'](_0x5475c6,_0xbd1af5,_0x30a63e=null,_0x33ac65={}){if(_0x30a63e=_0x30a63e||Vt(_0xbd1af5),_0x5475c6['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x7bb5ce=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x30a63e,'accept');return this['forceDefaultExecution'](()=>_0x7bb5ce([_0x5475c6],_0xbd1af5,_0x33ac65)),null;}const _0x54e61d=this['editor']['plugins']['get']('Users')['me'],_0x1efe8e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2f44bb,meta:_0x3c8249}of this['_findSuggestions'](_0x5475c6,'insertion'))_0x3c8249['isOwn']&&!_0x3c8249['isInsideObject']&&_0x1efe8e['push'](..._0x2f44bb['getRanges']());}const _0x23fe32=function(_0x310655,_0x1d9d9e){const _0x3852a6=[];for(const _0x56395b of _0x1d9d9e){const _0x44e63b=_0x310655['getIntersection'](_0x56395b);_0x44e63b&&_0x3852a6['push'](_0x44e63b);}return _0x3852a6;}(_0x5475c6,_0x1efe8e),_0x1d87a3=function(_0x559bf3,_0x161e73){const _0x3da065=[_0x559bf3];for(const _0xb0766b of _0x161e73){let _0x26056a=0x0;for(;_0x26056a<_0x3da065['length'];){const _0x4a3d3c=_0x3da065[_0x26056a]['getDifference'](_0xb0766b);_0x3da065['splice'](_0x26056a,0x1,..._0x4a3d3c),_0x26056a+=_0x4a3d3c['length'];}}return _0x3da065;}(_0x5475c6,_0x1efe8e);_0x23fe32['length']&&this['_model']['change'](()=>{for(const _0x59b8f7 of _0x23fe32){const _0x122cbc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x30a63e,'accept');this['forceDefaultExecution'](()=>_0x122cbc([_0x59b8f7],_0xbd1af5,_0x33ac65));}});for(const _0x171d63 of _0x1d87a3){let _0x4ffdaa=null,_0x44c705=_0x171d63['start'],_0x3e0519=_0x171d63['end'];for(const {suggestion:_0x46cbe4,meta:_0x5b813}of this['_findSuggestions'](_0x171d63,'formatInline')){if(!_0x5b813['isOwn'])continue;if(_0x46cbe4['subType']!=_0x30a63e)continue;if(!Lt(_0x46cbe4,_0x33ac65))continue;const _0x2e9202=_0x46cbe4['getFirstRange']();if(_0x2e9202['containsRange'](_0x171d63,!0x0))return null;_0x44c705=_0x44c705['isBefore'](_0x2e9202['start'])?_0x44c705:_0x2e9202['start'],_0x3e0519=_0x3e0519['isAfter'](_0x2e9202['end'])?_0x3e0519:_0x2e9202['end'],_0x4ffdaa?_0x2e9202['start']['isBefore'](_0x4ffdaa['getFirstRange']()['start'])?(_0x4ffdaa['removeMarkers'](),_0x4ffdaa=_0x46cbe4):_0x46cbe4['removeMarkers']():_0x4ffdaa=_0x46cbe4;}const _0x1fcfab=this['_model']['createRange'](_0x44c705,_0x3e0519);if(_0x4ffdaa)this['_setSuggestionRange'](_0x4ffdaa,_0x1fcfab);else{const _0x3f38be=_0x418fff(),_0x3cd668=_0x54e61d['id'];this['_setSuggestionData']({'id':_0x3f38be,'type':'formatInline:'+_0x30a63e,'data':_0xbd1af5,'createdAt':new Date(),'authorId':_0x3cd668,'attributes':_0x33ac65}),this['_addSuggestionMarker']('formatInline:'+_0x30a63e,_0x3f38be,_0x3cd668,_0x1fcfab);}}return null;}['markBlockFormat'](_0xf8562f,_0x2e5e1c,_0x47423b=[],_0x25cd97=null,_0x31e697={}){_0x2e5e1c['formatGroupId']||(_0x2e5e1c['formatGroupId']=_0x2e5e1c['commandName']),_0x2e5e1c['multipleBlocks']=_0xf8562f['is']('range'),_0x25cd97=_0x25cd97||Vt(_0x2e5e1c);const _0x12b4d9=_0x47423b['map'](_0x18a5a4=>Gt(_0x18a5a4,this['_model'])),_0x4c1197=_0xf8562f['is']('range')?_0xf8562f:Gt(_0xf8562f,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1b4a02=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25cd97,'accept');return this['forceDefaultExecution'](()=>_0x1b4a02([_0x4c1197],_0x2e5e1c,_0x31e697)),null;}_0x12b4d9['push'](_0x4c1197);let _0x19be56=!0x0;for(const _0x4486db of _0x12b4d9)if(!this['_rangeIsInLocalUserInsertion'](_0x4486db)){_0x19be56=!0x1;break;}if(_0x19be56&&'always'!==this['_trackFormatChanges']){const _0x5f0577=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25cd97,'accept');return this['forceDefaultExecution'](()=>_0x5f0577([_0x4c1197],_0x2e5e1c,_0x31e697)),null;}let _0x50deac=null,_0x65c1d=_0x4c1197['start'],_0x31acad=_0x4c1197['end'];for(const {suggestion:_0x36a903,meta:_0x22b74c}of this['_findSuggestions'](_0x4c1197,'formatBlock')){if(!_0x22b74c['isOwn'])continue;if(_0x22b74c['isNextTo']||_0x22b74c['containsRangeInObject']||_0x22b74c['isInsideObject'])continue;if(_0x36a903['data']['formatGroupId']!=_0x2e5e1c['formatGroupId'])continue;if(!Lt(_0x36a903,_0x31e697))continue;const _0x554e3b=_0x36a903['getFirstRange']();if(_0x36a903['subType']==_0x25cd97){if(_0x554e3b['containsRange'](_0x4c1197,!0x0))return null;_0x65c1d=_0x65c1d['isBefore'](_0x554e3b['start'])?_0x65c1d:_0x554e3b['start'],_0x31acad=_0x31acad['isAfter'](_0x554e3b['end'])?_0x31acad:_0x554e3b['end'],_0x50deac?_0x554e3b['start']['isBefore'](_0x50deac['getFirstRange']()['start'])?(_0x50deac['removeMarkers'](),_0x50deac=_0x36a903):_0x36a903['removeMarkers']():_0x50deac=_0x36a903;}else{const _0x218a3e=_0x4c1197['getIntersection'](_0x554e3b);this['_cutOutSuggestionMarker'](_0x36a903,_0x218a3e);}}const _0x5e787f=this['editor']['plugins']['get']('Users')['me'],_0x1b29a1=_0x418fff(),_0x5f2a7d=_0x5e787f['id'];if(_0x50deac)return this['_setSuggestionRange'](_0x50deac,this['_model']['createRange'](_0x65c1d,_0x31acad)),_0x50deac;{const _0x4a9848=this['_setSuggestionData']({'id':_0x1b29a1,'type':'formatBlock:'+_0x25cd97,'data':_0x2e5e1c,'createdAt':new Date(),'authorId':_0x5f2a7d,'attributes':_0x31e697});return this['_addSuggestionMarker']('formatBlock:'+_0x25cd97,_0x1b29a1,_0x5f2a7d,this['_model']['createRange'](_0x65c1d,_0x31acad)),_0x4a9848;}}['markMultiRangeBlockFormat'](_0x28a0b5,_0x91045,_0xff2bef=[],_0xfcf0ee=null,_0x208f9a={}){_0x91045['formatGroupId']||(_0x91045['formatGroupId']=_0x91045['commandName']);const _0x1bb207=_0x28a0b5[0x0];_0x91045['multipleBlocks']=_0x1bb207['is']('range'),_0xfcf0ee=_0xfcf0ee||Vt(_0x91045);const _0x5b0998=_0xff2bef['map'](_0x2fd0bd=>Gt(_0x2fd0bd,this['_model'])),_0x2c90c2=_0x1bb207['is']('range')?_0x28a0b5:_0x28a0b5['map'](_0x4d7887=>Gt(_0x4d7887,this['_model']));if('never'===this['_trackFormatChanges']){const _0x23c785=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfcf0ee,'accept');return this['forceDefaultExecution'](()=>_0x23c785(_0x2c90c2,_0x91045,_0x208f9a)),null;}_0x5b0998['push'](..._0x2c90c2);let _0x4b0fae=!0x0;for(const _0x314448 of _0x5b0998)if(!this['_rangeIsInLocalUserInsertion'](_0x314448)){_0x4b0fae=!0x1;break;}if(_0x4b0fae&&'always'!==this['_trackFormatChanges']){const _0x116d19=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfcf0ee,'accept');return this['forceDefaultExecution'](()=>_0x116d19(_0x2c90c2,_0x91045,_0x208f9a)),null;}const _0xc1e183=this['editor']['plugins']['get']('Users')['me'];for(const _0x5b7cd9 of this['getSuggestions']()){if(_0x5b7cd9['author']['id']!=_0xc1e183['id'])continue;if('formatBlock'!=_0x5b7cd9['type']||_0x5b7cd9['data']['formatGroupId']!=_0x91045['formatGroupId'])continue;if(!Lt(_0x5b7cd9,_0x208f9a))continue;const _0x1afac7=_0x5b7cd9['subType']==_0xfcf0ee;for(let _0x22d2b4=0x0;_0x22d2b4<_0x2c90c2['length'];_0x22d2b4++){const _0x2303ef=_0x2c90c2[_0x22d2b4];for(const _0x4b7515 of _0x5b7cd9['getMarkers']()){const _0x419d56=_0x4b7515['getRange']();if(_0x2303ef['isEqual'](_0x419d56)){_0x1afac7?(_0x2c90c2['splice'](_0x22d2b4,0x1),_0x22d2b4--):_0x5b7cd9['removeMarker'](_0x4b7515['name']);break;}}}}if(0x0==_0x2c90c2['length'])return null;const _0x3e1faa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfcf0ee,'join');for(const _0x151022 of this['getSuggestions']())if(_0x151022['author']['id']==_0xc1e183['id']&&'formatBlock'==_0x151022['type']&&_0x151022['data']['formatGroupId']==_0x91045['formatGroupId']&&_0x151022['subType']==_0xfcf0ee&&Lt(_0x151022,_0x208f9a)&&(_0x3e1faa(_0x151022['getRanges'](),_0x2c90c2)||_0x3e1faa(_0x2c90c2,_0x151022['getRanges']()))){for(const _0x3ad893 of _0x2c90c2)_0x151022['addRange'](_0x3ad893);return _0x151022;}const _0x25e145=_0x418fff(),_0x5320bc=_0xc1e183['id'],_0xeddad='formatBlock:'+_0xfcf0ee,_0x5005d4=this['_setSuggestionData']({'id':_0x25e145,'type':_0xeddad,'data':_0x91045,'createdAt':new Date(),'authorId':_0x5320bc,'attributes':_0x208f9a});for(const _0x50f8fa of _0x2c90c2)this['_addSuggestionMarker'](_0xeddad,_0x25e145,_0x5320bc,_0x50f8fa,u['getMultiRangeId']());return _0x5005d4;}['markDeletion'](_0x583dd8,_0x33ab18=null,_0x2742f7={}){if(_0x583dd8['isCollapsed'])return null;const _0x26d0f4=this['editor']['plugins']['get']('Users')['me'],_0x52cf82=new _0x5733e9(_0x583dd8['start'],_0x583dd8['end']);for(const {suggestion:_0x4f4945,meta:_0x312a23}of this['_findSuggestions'](_0x52cf82,'insertion'))if(_0x312a23['isOwn']&&!_0x312a23['isNextTo']){if(_0x4f4945['isMultiRange']){const _0xc2e72f=_0x4f4945['getRanges']()['filter'](_0x5ef72f=>'$graveyard'!=_0x5ef72f['root']['rootName']);_0xc2e72f['every'](_0x9b8df5=>_0x52cf82['containsRange'](_0x9b8df5,!0x0))&&_0x4f4945['discard']();if(_0xc2e72f['some'](_0x1c3dd8=>_0x1c3dd8['containsRange'](_0x52cf82,!0x0))){const _0x4bcd50=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33ab18,'accept');return this['forceDefaultExecution'](()=>_0x4bcd50([_0x52cf82],null,_0x2742f7)),null;}}else{const _0x1c8d4a=_0x52cf82['getIntersection'](_0x4f4945['getFirstRange']());null!==_0x1c8d4a&&_0x4f4945['_onDiscard']([_0x1c8d4a],null,_0x2742f7);}}if(_0x52cf82['detach'](),_0x52cf82['isCollapsed']||'$graveyard'==_0x52cf82['root']['rootName'])return null;let _0x1dd39b=null,_0x313d80=_0x52cf82['start'],_0x17b5be=_0x52cf82['end'];const _0xaf7ec8=this['_findSuggestions'](_0x52cf82,'deletion');for(const {suggestion:_0x515b2c,meta:_0x8be4e5}of _0xaf7ec8){const _0x2f37ea=this['_model']['createRange'](_0x313d80,_0x17b5be);if(_0x8be4e5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x8be4e5['containsRangeInObject']&&!_0x8be4e5['isInsideObject'])){if(_0x515b2c['isMultiRange']){if(!Lt(_0x515b2c,_0x2742f7))continue;let _0x2843b2=!0x0;for(const _0x224c46 of _0x515b2c['getRanges']()){if(_0x224c46['containsRange'](_0x2f37ea,!0x0))return _0x515b2c;_0x2f37ea['containsRange'](_0x224c46)||(_0x2843b2=!0x1);}_0x2843b2&&_0x515b2c['discard']();}else{const _0x253c05=_0x515b2c['getFirstRange']();if(_0x253c05['containsRange'](_0x2f37ea,!0x0))return _0x515b2c;if(!Lt(_0x515b2c,_0x2742f7)){_0x2f37ea['containsRange'](_0x253c05)?_0x515b2c['removeMarkers']():_0x253c05['containsPosition'](_0x313d80)?_0x313d80=_0x253c05['end']:_0x253c05['containsPosition'](_0x17b5be)&&(_0x17b5be=_0x253c05['start']);continue;}_0x313d80=_0x313d80['isBefore'](_0x253c05['start'])?_0x313d80:_0x253c05['start'],_0x17b5be=_0x17b5be['isAfter'](_0x253c05['end'])?_0x17b5be:_0x253c05['end'],_0x2742f7=Object['assign']({},_0x515b2c['attributes']),_0x1dd39b?_0x253c05['start']['isBefore'](_0x1dd39b['getFirstRange']()['start'])?(_0x1dd39b['removeMarkers'](),_0x1dd39b=_0x515b2c):_0x515b2c['removeMarkers']():_0x1dd39b=_0x515b2c;}}}if(_0x1dd39b)return this['_setSuggestionRange'](_0x1dd39b,this['_model']['createRange'](_0x313d80,_0x17b5be)),_0x1dd39b;{const _0x4d721a=_0x418fff(),_0x4b8827=this['_model']['createRange'](_0x313d80,_0x17b5be),_0x432643=_0x26d0f4['id'],_0x34bf4b=_0x33ab18?'deletion:'+_0x33ab18:'deletion',_0x24d78f=this['_setSuggestionData']({'id':_0x4d721a,'type':_0x34bf4b,'createdAt':new Date(),'authorId':_0x432643,'attributes':_0x2742f7});return this['_addSuggestionMarker'](_0x34bf4b,_0x4d721a,_0x432643,_0x4b8827),_0x24d78f;}}['markMultiRangeDeletion'](_0x491f97,_0x4b2252='multi',_0x509fbe={}){const _0x33f1c9=this['editor']['plugins']['get']('Users')['me'],_0x43de74=_0x491f97['map'](_0x146076=>new _0x5733e9(_0x146076['start'],_0x146076['end'])),_0xaf313d=new Set();for(const {suggestion:_0x486bde,meta:_0x52d33a}of this['_findSuggestions'](_0x43de74,'insertion'))_0x52d33a['isOwn']&&!_0x52d33a['isNextTo']&&_0xaf313d['add'](_0x486bde);for(const _0x5d6990 of _0xaf313d)if(_0x5d6990['isMultiRange']){const _0x3597b7=_0x5d6990['getRanges']();(!_0x5d6990['attributes']||!_0x5d6990['attributes']['skipNestingCheck'])&&(_0x3597b7['every'](_0x1d33e9=>_0x43de74['some'](_0x7d44f2=>_0x7d44f2['containsRange'](_0x1d33e9,!0x0)))&&_0x5d6990['discard']());if(_0x43de74['every'](_0x2e98b3=>_0x3597b7['some'](_0x1e9596=>_0x1e9596['containsRange'](_0x2e98b3,!0x0)))){const _0x25bf71=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b2252,'accept');return this['forceDefaultExecution'](()=>_0x25bf71(_0x491f97,null,_0x509fbe)),null;}}else{const _0x278927=_0x5d6990['getFirstRange']();_0x43de74['some'](_0x1f21ac=>_0x1f21ac['containsRange'](_0x278927,!0x0))&&_0x5d6990['discard']();if(_0x43de74['every'](_0x1914e1=>_0x278927['containsRange'](_0x1914e1,!0x0))){const _0x2ccfa1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b2252,'accept');return this['forceDefaultExecution'](()=>_0x2ccfa1(_0x43de74,null,_0x509fbe)),null;}}const _0x310490=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b2252,'join');let _0x362145=null;for(const _0x475eb8 of this['getSuggestions']())if(_0x475eb8['author']['id']==_0x33f1c9['id']&&_0x475eb8['isInContent']&&'deletion'==_0x475eb8['type']&&_0x475eb8['subType']==_0x4b2252&&Lt(_0x475eb8,_0x509fbe)&&(_0x310490(_0x475eb8['getRanges'](),_0x43de74)||_0x310490(_0x43de74,_0x475eb8['getRanges']()))){if(_0x362145){if(_0x475eb8['commentThread']&&_0x475eb8['commentThread']['length'])continue;for(const _0x3f52d9 of _0x475eb8['getRanges']())_0x362145['isIntersectingWithRange'](_0x3f52d9)||_0x362145['addRange'](_0x3f52d9);_0x475eb8['removeMarkers']();}else{_0x362145=_0x475eb8;for(const _0x530e84 of _0x43de74)_0x475eb8['isIntersectingWithRange'](_0x530e84)||_0x475eb8['addRange'](_0x530e84);}}if(_0x362145)return _0x362145;_0xaf313d['clear']();for(const {suggestion:_0x2ea19a,meta:_0x5ce863}of this['_findSuggestions'](_0x43de74,'deletion'))_0x5ce863['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5ce863['containsRangeInObject']&&!_0x5ce863['isInsideObject'])&&Lt(_0x2ea19a,_0x509fbe)&&_0xaf313d['add'](_0x2ea19a);for(const _0x27c9b9 of _0xaf313d){const _0x7203b8=_0x27c9b9['getRanges']();if(!_0x509fbe||!_0x509fbe['skipNestingCheck']){if(_0x43de74['every'](_0x4c086c=>_0x7203b8['some'](_0x17e315=>_0x17e315['containsRange'](_0x4c086c,!0x0))))return _0x27c9b9;}(!_0x27c9b9['attributes']||!_0x27c9b9['attributes']['skipNestingCheck'])&&(_0x7203b8['every'](_0xa818d3=>_0x43de74['some'](_0x749de1=>_0x749de1['containsRange'](_0xa818d3,!0x0)))&&_0x27c9b9['discard']());}const _0x3cd556=_0x418fff(),_0xbbeee1=_0x33f1c9['id'],_0x5a38e3='deletion:'+_0x4b2252,_0x1117e9=this['_setSuggestionData']({'id':_0x3cd556,'type':_0x5a38e3,'createdAt':new Date(),'authorId':_0xbbeee1,'attributes':_0x509fbe});for(const _0x291285 of _0x43de74)_0x291285['detach'](),_0x291285['isCollapsed']||'$graveyard'==_0x291285['root']['rootName']||this['_addSuggestionMarker'](_0x5a38e3,_0x3cd556,_0xbbeee1,_0x291285,u['getMultiRangeId']());return _0x1117e9;}['markAttributeChange'](_0x28aeef,_0x222e25,_0x57aee6,_0x29de7f,_0x54f80e){if(_0x28aeef['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3470d0=this['editor']['plugins']['get']('Users')['me']['id'],_0x3f9aa4=Array['from'](this['_suggestions']['values']())['filter'](_0x3f01fb=>'attribute'==_0x3f01fb['type']&&_0x3f01fb['data']['key']==_0x222e25&&_0x3f01fb['isIntersectingWithRange'](_0x28aeef));if('default'===this['_trackFormatChanges']){const _0xf6e360=this['_findSuggestions'](_0x28aeef,'insertion')['filter'](({meta:_0x40d123})=>_0x40d123['isOwn']&&!_0x40d123['isInsideObject']&&!_0x40d123['isNextTo'])['map'](({suggestion:_0x1011d4})=>_0x1011d4);_0x3f9aa4['unshift'](..._0xf6e360);}const _0x6b2002=new Map([[_0x28aeef,_0x57aee6]]);for(const _0x1f5eba of _0x3f9aa4){const _0xffbc36='attribute'==_0x1f5eba['type']?_0x1f5eba['data']['oldValue']:void 0x0,_0x17da6a=_0x1f5eba['getFirstRange'](),_0x1b2a2c=Array['from'](_0x6b2002['keys']())['find'](_0x5ac84e=>_0x5ac84e['isIntersecting'](_0x17da6a));if(!_0x1b2a2c)continue;const _0x1234fc=_0x1b2a2c['getDifference'](_0x17da6a);this['_isBlockAttribute'](_0x222e25)&&'insertion'==_0x1f5eba['type']&&0x0!=_0x1234fc['length']||(_0x6b2002['delete'](_0x1b2a2c),_0x1234fc['forEach'](_0x3c6108=>{_0x6b2002['set'](_0x3c6108,_0x57aee6);}),'insertion'!=_0x1f5eba['type']&&_0xffbc36!=_0x29de7f&&_0x6b2002['set'](_0x1b2a2c['getIntersection'](_0x17da6a),_0xffbc36));}const _0x36969=[];for(const [_0x19e061,_0x555af2]of _0x6b2002){const _0x3925e2=_0x418fff(),_0x54f66b={'key':_0x222e25,'oldValue':_0x555af2,'newValue':_0x29de7f};_0x222e25['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':_0x222e25});const _0x3e20fe=('attribute:'+(_0x222e25+'|'+Vt({'newValue':_0x29de7f})))['substring'](0x0,0x3c),_0x7a1db5=this['_setSuggestionData']({'id':_0x3925e2,'type':_0x3e20fe,'data':_0x54f66b,'createdAt':new Date(),'authorId':_0x3470d0,'attributes':_0x54f80e});_0x36969['push'](_0x7a1db5),this['_addSuggestionMarker'](_0x3e20fe,_0x3925e2,_0x3470d0,_0x19e061);}return _0x36969;}['enableDefaultAttributesIntegration'](_0x739c6f){this['enableCommand'](_0x739c6f,(_0x49acc7,..._0xbf3663)=>{this['_recordAttributeChanges'](()=>{_0x49acc7(..._0xbf3663);});});}['registerBlockAttribute'](_0x1ee761){this['_blockAttributeKeys']['add'](_0x1ee761);}['registerInlineAttribute'](_0x4562ba){this['_inlineAttributeKeys']['add'](_0x4562ba);}['_getAttributeKey'](_0x51403a){return'attribute'==_0x51403a['type']?_0x51403a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x14e490,_0xf99501){const _0xf7b8af=_0x14e490['getFirstMarker']();this['_model']['change'](_0x5418c1=>{_0x5418c1['updateMarker'](_0xf7b8af,{'range':_0xf99501});});}['_addThreadToSuggestion'](_0xbdfdff){const _0x534bde=_0xbdfdff['id'],_0x646d87=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x534bde)||this['_commentsRepository']['addCommentThread']({'channelId':_0x646d87,'threadId':_0x534bde,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x39076f=this['_commentsRepository']['getCommentThread'](_0x534bde);_0x39076f['unbind']('isRemovable'),_0x39076f['isRemovable']=!0x1,_0xbdfdff['commentThread']=_0x39076f;}['_checkSuggestionCorrectness'](_0x31049a,_0x166db2,_0x919c4b,_0x5a556a){if(_0x31049a['type']!=_0x166db2||_0x31049a['subType']!=_0x919c4b||_0x31049a['creator']['id']!=_0x5a556a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5a9654('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5999e5,_0x46004b){const _0x20e637=_0x5999e5['getFirstRange']();if(_0x46004b['isEqual'](_0x20e637))_0x5999e5['removeMarkers']();else{if(_0x20e637['containsRange'](_0x46004b)){const _0x1a9286=this['_model']['createPositionAt'](_0x46004b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5999e5,this['_model']['createRange'](_0x20e637['start'],_0x1a9286));const _0x40324d=_0x418fff(),_0x172cc1=_0x5999e5['creator']['id'],_0x2ac7f2=_0x5999e5['type']+':'+_0x5999e5['subType'];this['_setSuggestionData']({'id':_0x40324d,'type':_0x2ac7f2,'createdAt':new Date(),'authorId':_0x172cc1,'data':_0x5999e5['data'],'attributes':_0x5999e5['attributes']});const _0x1fd9e8=this['_model']['createPositionAt'](_0x46004b['end']['parent'],'after'),_0x4a32c6=this['_model']['createRange'](_0x1fd9e8,_0x20e637['end']);this['_addSuggestionMarker'](_0x2ac7f2,_0x40324d,_0x172cc1,_0x4a32c6);}else{if(_0x20e637['containsPosition'](_0x46004b['start'])){const _0x1a2d2f=this['_model']['createPositionAt'](_0x46004b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5999e5,this['_model']['createRange'](_0x20e637['start'],_0x1a2d2f));}else{const _0x12d9e7=this['_model']['createPositionAt'](_0x46004b['end']['parent'],'after');this['_setSuggestionRange'](_0x5999e5,this['_model']['createRange'](_0x12d9e7,_0x20e637['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xc069a){for(const {suggestion:_0x5b9c0b,meta:_0x3ecab9}of this['_findSuggestions'](_0xc069a,'insertion')){if(!_0x3ecab9['isOwn'])continue;const _0x384b42=_0x5b9c0b['getRanges']();for(const _0x2d8446 of _0x384b42)if(!_0xc069a['getDifference'](_0x2d8446)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1d9d7b){const _0x454753=this['editor']['plugins']['get']('Users')['getUser'](_0x1d9d7b);if(!_0x454753)throw new _0x5a9654('track-changes-user-not-found',this);return _0x454753;}['_getExternalAuthor'](_0x5029ff){const _0x5e1817=this['editor']['plugins']['get']('Users'),_0x479e62=_0x465ae5('external:'+_0x5029ff),_0x396e0e=_0x5e1817['getUser'](_0x479e62);return _0x396e0e||_0x5e1817['addUser']({'id':_0x479e62,'name':_0x5029ff});}['_createSuggestion'](_0x41d12b,_0x4baef9,_0x308484,_0x767f7e,_0x3a787f){const _0x530e45=this['_getAuthorFromId'](_0x767f7e),_0x3cb1fe=this['_suggestionFactory']['buildSuggestion'](_0x41d12b,_0x4baef9,_0x308484,_0x530e45,_0x3a787f,_0x1a68f2=>{this['_updateSuggestionData'](_0x308484,{'attributes':_0x1a68f2});const _0x445ac2=this['getSuggestion'](_0x308484);this['_joinWithAdjacentSuggestions'](new Set([_0x445ac2])),this['_refreshSuggestionsChain'](new Set([_0x445ac2]));});return this['listenTo'](_0x3cb1fe,'accept',()=>{this['_updateSuggestionData'](_0x308484,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3cb1fe,'discard',()=>{this['_updateSuggestionData'](_0x308484,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x308484,_0x3cb1fe),this['_suggestionState']['set'](_0x3cb1fe,'notReady'),_0x3cb1fe;}['_splitMarkerName'](_0x35d6ce){const _0x2ea071=_0x35d6ce['split'](':');return{'group':_0x2ea071[0x0],'type':_0x2ea071[0x1],'subType':_0x2ea071['length']>=0x5?_0x2ea071[0x2]:null,'id':_0x2ea071['length']<0x5?_0x2ea071[0x2]:_0x2ea071[0x3],'authorId':_0x2ea071['length']<0x5?_0x2ea071[0x3]:_0x2ea071[0x4],'markerCount':0x6==_0x2ea071['length']?_0x2ea071[0x5]:null};}['_breakSuggestionMarker'](_0x174e25,_0x560901,_0x1691ba){const _0x17ae21=_0x174e25['getFirstRange'](),_0x34ab93=_0x17ae21['start'],_0x5b8134=_0x17ae21['end'];this['_setSuggestionRange'](_0x174e25,this['_model']['createRange'](_0x34ab93,_0x560901));const _0x373c35=_0x418fff(),_0x514231=_0x174e25['creator']['id'],_0x14fa6b=_0x174e25['type']+(_0x174e25['subType']?':'+_0x174e25['subType']:'');this['_setSuggestionData']({'id':_0x373c35,'type':_0x14fa6b,'createdAt':new Date(),'authorId':_0x514231,'originalSuggestionId':_0x174e25['id'],'attributes':_0x174e25['attributes'],'data':_0x174e25['data']});const _0x30488c=this['_getAttributeKey'](_0x174e25);('formatBlock'==_0x174e25['type']||_0x30488c&&this['_isBlockAttribute'](_0x30488c))&&(_0x1691ba=this['_model']['createPositionBefore'](_0x1691ba['parent'])),this['_addSuggestionMarker'](_0x14fa6b,_0x373c35,_0x514231,this['_model']['createRange'](_0x1691ba,_0x5b8134));}['_findSuggestions'](_0x5617cf,_0x9c516c=null){const _0x44ec22=[],_0x202781=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5617cf)||(_0x5617cf=[_0x5617cf]);for(const _0x465e59 of this['getSuggestions']()){if(!_0x465e59['isInContent'])continue;if(_0x9c516c&&_0x465e59['type']!=_0x9c516c)continue;let _0x2cbdd9=!0x1;for(const _0x476ae7 of _0x465e59['getRanges']()){for(const _0x550abd of _0x5617cf){const _0x7afb92=_0x550abd['start']['isEqual'](_0x476ae7['end'])||_0x550abd['end']['isEqual'](_0x476ae7['start']);if(_0x7afb92||_0x550abd['getIntersection'](_0x476ae7)){const _0x4273dd=_0x550abd['containsRange'](_0x476ae7)&&Rt(this['_model']['schema'],_0x476ae7['start'],_0x550abd),_0x4a8b16=_0x476ae7['containsRange'](_0x550abd)&&Rt(this['_model']['schema'],_0x550abd['start'],_0x476ae7);_0x44ec22['push']({'suggestion':_0x465e59,'meta':{'isOwn':_0x202781==_0x465e59['author'],'isNextTo':_0x7afb92,'isInsideObject':_0x4273dd,'containsRangeInObject':_0x4a8b16}}),_0x2cbdd9=!0x0;break;}}if(_0x2cbdd9)break;}}return _0x44ec22;}['_addSuggestionMarker'](_0x4dd5b0,_0x3437b2,_0x4a44ba,_0x44132b,_0x1cb409){this['_model']['change'](_0x559a73=>{let _0x284236='suggestion:'+_0x4dd5b0+':'+_0x3437b2+':'+_0x4a44ba;_0x1cb409&&(_0x284236=_0x284236+':'+_0x1cb409),_0x559a73['addMarker'](_0x284236,{'range':_0x44132b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3e0b75){const _0x5062d9=_0x3e0b75['previous'],_0x322cb4=_0x3e0b75['next'];_0x3e0b75['previous']=null,_0x3e0b75['next']=null,null!=_0x5062d9&&_0x5062d9['next']==_0x3e0b75&&(_0x5062d9['next']=_0x322cb4),null!=_0x322cb4&&_0x322cb4['previous']==_0x3e0b75&&(_0x322cb4['previous']=_0x5062d9),'ready'==this['_suggestionState']['get'](_0x3e0b75)&&(this['_suggestionState']['set'](_0x3e0b75,'removed'),this['fire']('suggestionUnloaded',_0x3e0b75,_0x5062d9,_0x322cb4));}['_setSuggestionData'](_0x1d7d22){const _0x5636f2=_0x1d7d22['id'],_0x5da97d=this['addSuggestionData'](_0x1d7d22);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x12fe67=this['editor']['plugins']['get']('PendingActions'),_0x3f314c=_0x5da97d['hasComments'],_0x5d55d8=_0x5da97d['subType']?_0x5da97d['type']+':'+_0x5da97d['subType']:_0x5da97d['type'],_0x134b1d=this['editor']['locale'],_0x4d4ecd=_0x12fe67['add'](o(_0x134b1d,'PENDING_ACTION_SUGGESTION')),_0x2bd24c={'id':_0x5636f2,'type':_0x5d55d8,'hasComments':_0x3f314c,'data':_0x1d7d22['data']||null,'originalSuggestionId':_0x1d7d22['originalSuggestionId']||null,'attributes':_0x5da97d['attributes']};this['_adapter']['addSuggestion'](_0x2bd24c)['then'](_0x32372c=>{_0x5da97d['_saved']=!0x0,_0x12fe67['remove'](_0x4d4ecd),_0x32372c&&_0x32372c['createdAt']&&(this['_suggestions']['get'](_0x5636f2)['createdAt']=_0x32372c['createdAt']);})['catch'](_0x9e806b=>{throw _0x1e47c1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5da97d['discard']();}),_0x5da97d['stopListening'](),this['_suggestions']['delete'](_0x5da97d['id']),this['_suggestionState']['delete'](_0x5da97d),_0x9e806b;});}return _0x5da97d;}['_isBlockAttribute'](_0x161d93){return this['_blockAttributeKeys']['has'](_0x161d93);}['_updateSuggestionData'](_0x2b86b6,_0x59a2a9){const _0x2c44c6=this['editor']['plugins']['get']('PendingActions'),_0x146d89=this['getSuggestion'](_0x2b86b6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x146d89['_saved']){const _0x1bccad=_0x2c44c6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2b86b6,_0x59a2a9)['then'](()=>{_0x2c44c6['remove'](_0x1bccad);});}else _0x146d89['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2b86b6,_0x59a2a9);});}}['_getSuggestionData'](_0x25451b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5a9654('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x25451b);}['_handleNewSuggestionMarker'](_0x4b5190){const {id:_0x2ab630,type:_0x4587ef,subType:_0x1ea687,authorId:_0x4e3eeb}=this['_splitMarkerName'](_0x4b5190),_0x5614b5=this['_suggestions']['get'](_0x2ab630)||this['_createSuggestion'](_0x4587ef,_0x1ea687,_0x2ab630,_0x4e3eeb,{});switch(this['_checkSuggestionCorrectness'](_0x5614b5,_0x4587ef,_0x1ea687,_0x4e3eeb),this['_suggestionState']['get'](_0x5614b5)){case'notReady':this['_getSuggestionData'](_0x2ab630)['then'](_0xdb4887=>{let _0x49e89f=Promise['resolve']();_0xdb4887['hasComments']&&(_0x49e89f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ab630})),_0x49e89f['then'](()=>{this['addSuggestionData'](_0xdb4887)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5614b5,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ab630,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5614b5,'ready'),this['fire']('suggestionLoaded',_0x5614b5);break;case'ready':this['fire']('suggestionChanged',_0x5614b5);}return _0x5614b5['addMarkerName'](_0x4b5190),_0x5614b5;}['_refreshSuggestionsChain'](_0x26e2d3){const _0x1d196e=Array['from'](_0x26e2d3),_0x399a55=_0x1d196e['filter'](_0x483946=>'attribute'==_0x483946['type']);this['_refreshAttributeSuggestionsChain'](_0x399a55);const _0xc6903a=_0x1d196e['filter'](_0x5404aa=>!_0x5404aa['isMultiRange']&&'attribute'!=_0x5404aa['type']),_0xfd2623=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2015dd=>!_0x2015dd['isMultiRange']&&'attribute'!=_0x2015dd['type']),_0xe047e6=_0xfd2623['filter'](_0x53c0be=>!_0x26e2d3['has'](_0x53c0be)),_0x16f9a7=new Map(_0xfd2623['map'](_0x6ab35b=>[_0x6ab35b,this['_suggestionFactory']['getSuggestionCallback'](_0x6ab35b['type'],_0x6ab35b['subType'],'chain')])),_0x593873=new Map(_0xfd2623['map'](_0x4be3fa=>[_0x4be3fa,_0x4be3fa['getFirstRange']()])),_0x49716c=new Set(),_0x300ddb=new Set();for(let _0x120fd4=0x0;_0x120fd4<_0xc6903a['length'];_0x120fd4++)_0x4f4eda(_0xc6903a[_0x120fd4],_0xc6903a,_0x120fd4+0x1);for(let _0x1af13c=0x0;_0x1af13c<_0xc6903a['length'];_0x1af13c++)_0x4f4eda(_0xc6903a[_0x1af13c],_0xe047e6,0x0);const _0x47d710=new Set();for(let _0x33f5f2=0x0;_0x33f5f2<_0xc6903a['length'];_0x33f5f2++){const _0x1fa154=_0xc6903a[_0x33f5f2];!_0x300ddb['has'](_0x1fa154)&&_0x1fa154['previous']&&(_0x47d710['add'](_0x1fa154['previous']),_0x1fa154['previous']['next']===_0x1fa154&&(_0x1fa154['previous']['next']=null),_0x1fa154['previous']=null),!_0x49716c['has'](_0x1fa154)&&_0x1fa154['next']&&(_0x47d710['add'](_0x1fa154['next']),_0x1fa154['next']['previous']===_0x1fa154&&(_0x1fa154['next']['previous']=null),_0x1fa154['next']=null);}function _0x4f4eda(_0x3feadc,_0x3f81fe,_0x3f922e){for(let _0x44cfa7=_0x3f922e;_0x44cfa7<_0x3f81fe['length'];_0x44cfa7++){const _0x58af4c=_0x40eaa3(_0x3feadc,_0x3f81fe[_0x44cfa7]);_0x58af4c&&(_0x58af4c[0x0]['next']=_0x58af4c[0x1],_0x58af4c[0x1]['previous']=_0x58af4c[0x0],_0x49716c['add'](_0x58af4c[0x0]),_0x300ddb['add'](_0x58af4c[0x1]));}}function _0x40eaa3(_0xcd6027,_0x5906ca){if(_0xcd6027['author']['id']!==_0x5906ca['author']['id'])return null;const _0x5767fa=_0x16f9a7['get'](_0xcd6027)(_0xcd6027,_0x5906ca,_0x593873['get'](_0xcd6027),_0x593873['get'](_0x5906ca));if(!_0x5767fa)return null;return _0x16f9a7['get'](_0x5906ca)(_0xcd6027,_0x5906ca,_0x593873['get'](_0xcd6027),_0x593873['get'](_0x5906ca))?_0x5767fa[0x1]['commentThread']&&_0x5767fa[0x1]['commentThread']['length']?null:_0x5767fa:null;}_0x47d710['size']&&this['_refreshSuggestionsChain'](_0x47d710);}['_refreshAttributeSuggestionsChain'](_0x1f0532){if(0x0==_0x1f0532['length'])return;const _0x212cee=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38046e=>'attribute'==_0x38046e['type']&&_0x38046e['_isDataLoaded']),_0xf2edce=[],_0x203737=new Map();for(const _0x28469b of _0x212cee){const _0x1bfb2b=_0x465ae5(_0x28469b['attributes']);_0x203737['has'](_0x1bfb2b)||(_0x203737['set'](_0x1bfb2b,_0xf2edce['length']),_0xf2edce['push']([]));const _0x229551=_0x203737['get'](_0x1bfb2b);_0xf2edce[_0x229551]['push'](_0x28469b);}!(function(){_0xf2edce['sort']((_0x2f1826,_0x3a163b)=>{const _0x2c127d=_0x2f1826[0x0]['createdAt'],_0x35222d=_0x3a163b[0x0]['createdAt'];return _0x2c127d==_0x35222d?_0x2f1826[0x0]['attributes']['groupId']<_0x3a163b[0x0]['attributes']['groupId']?-0x1:0x1:_0x2c127d<_0x35222d?-0x1:0x1;});for(const _0x5ca768 of _0xf2edce)_0x5ca768['sort']((_0x357df8,_0x456c21)=>_0x357df8['id']<_0x456c21['id']?-0x1:0x1);}());for(let _0xc66a89=0x0;_0xc66a89<_0xf2edce['length'];_0xc66a89++){if(0x0==_0xf2edce[_0xc66a89]['length'])continue;const _0x2a6d90=[];for(let _0x39f67e=_0xc66a89+0x1;_0x39f67e<_0xf2edce['length'];_0x39f67e++)0x0!=_0xf2edce[_0x39f67e]['length']&&_0x5def78(_0xf2edce[_0xc66a89],_0xf2edce[_0x39f67e])&&_0x2a6d90['push'](_0x39f67e);for(const _0x437ec6 of _0x2a6d90)_0xf2edce[_0xc66a89]=_0xf2edce[_0xc66a89]['concat'](_0xf2edce[_0x437ec6]),_0xf2edce[_0x437ec6]=[];}for(const _0x1550bf of _0xf2edce)for(let _0x1a00ca=0x0;_0x1a00ca<_0x1550bf['length'];_0x1a00ca++)_0x1550bf[_0x1a00ca]['next']=_0x1550bf[_0x1a00ca+0x1]||null;for(const _0x12f0ad of _0xf2edce)for(let _0x264c66=0x0;_0x264c66<_0x12f0ad['length'];_0x264c66++)_0x12f0ad[_0x264c66]['previous']=_0x12f0ad[_0x264c66-0x1]||null;function _0x5def78(_0x5cdd52,_0x36301f){if(_0x5cdd52[0x0]['attributes']['groupId']!==_0x36301f[0x0]['attributes']['groupId']&&_0x5cdd52[0x0]['author']!==_0x36301f[0x0]['author'])return!0x1;if(!function(_0x3e3d03,_0x489e9e){if(!_0x3e3d03['hasComments']&&!_0x489e9e['hasComments'])return!0x0;if(_0x3e3d03['hasComments']&&_0x489e9e['hasComments'])return!0x1;if(_0x3e3d03['hasComments']&&_0x489e9e['createdAt']<_0x3e3d03['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x489e9e['hasComments']&&_0x3e3d03['createdAt']<_0x489e9e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5cdd52[0x0],_0x36301f[0x0]))return!0x1;const _0x49a5cf=Bt(_0x5cdd52[0x0]['attributes'],'groupId'),_0x4530fc=Bt(_0x36301f[0x0]['attributes'],'groupId');if(!_0x2eaac8(_0x49a5cf,_0x4530fc))return!0x1;return!!_0x5cdd52['every'](_0x4f854a=>_0x36301f['some'](_0x5a19a2=>_0x4f854a['getFirstRange']()['isEqual'](_0x5a19a2['getFirstRange']())))&&_0x36301f['every'](_0x183aaa=>_0x5cdd52['some'](_0x7c6cc9=>_0x183aaa['getFirstRange']()['isEqual'](_0x7c6cc9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1ef4cd){const _0x992d24=Array['from'](_0x1ef4cd),_0x188eae=this['getSuggestions']({'skipNotAttached':!0x0}),_0x50fa12=_0x188eae['filter'](_0x25aecf=>!_0x1ef4cd['has'](_0x25aecf)),_0x242cf7=new Map(_0x992d24['map'](_0x505b2b=>[_0x505b2b,this['_suggestionFactory']['getSuggestionCallback'](_0x505b2b['type'],_0x505b2b['subType'],'join')])),_0x3945d0=new Map(_0x188eae['map'](_0x16a3c7=>[_0x16a3c7,_0x16a3c7['getRanges']()]));for(let _0x19abda=0x0;_0x19abda<_0x992d24['length'];_0x19abda++){if(_0x6e34e2(this,_0x992d24[_0x19abda],_0x992d24,_0x19abda+0x1))return!0x0;}for(let _0x58b593=0x0;_0x58b593<_0x992d24['length'];_0x58b593++){if(_0x6e34e2(this,_0x992d24[_0x58b593],_0x50fa12,0x0))return!0x0;}return!0x1;function _0x6e34e2(_0x30489f,_0x17b88e,_0x2d00ff,_0x585a33){for(let _0xb0e5aa=_0x585a33;_0xb0e5aa<_0x2d00ff['length'];_0xb0e5aa++){const _0x28c2cc=_0x2d00ff[_0xb0e5aa];if(_0x28c2cc['type']!==_0x17b88e['type']||_0x28c2cc['author']['id']!==_0x17b88e['author']['id']||_0x28c2cc['subType']!==_0x17b88e['subType'])continue;if(!Pt(_0x17b88e,_0x28c2cc,['groupId']))continue;if('attribute'==_0x17b88e['type']&&_0x17b88e['data']['oldValue']!=_0x28c2cc['data']['oldValue'])continue;if('attribute'==_0x17b88e['type']&&_0x30489f['_isBlockAttribute'](_0x17b88e['data']['key']))continue;if('formatBlock'==_0x17b88e['type']){const _0xdcd162=_0x30489f['editor']['model'],_0x553979=_0x17b88e['getContainedElement']();if(_0x553979&&(_0xdcd162['schema']['isObject'](_0x553979)||_0xdcd162['schema']['isLimit'](_0x553979)))continue;}const _0x10c387=_0x242cf7['get'](_0x17b88e),_0x3429e1=_0x3945d0['get'](_0x17b88e),_0x1ff3cd=_0x3945d0['get'](_0x28c2cc),_0x502f44=_0x17b88e['commentThread']&&_0x17b88e['commentThread']['length'],_0x5e0754=_0x28c2cc['commentThread']&&_0x28c2cc['commentThread']['length'];if(!_0x502f44&&_0x10c387(_0x1ff3cd,_0x3429e1))return _0x30489f['_joinSuggestions'](_0x28c2cc,_0x17b88e),_0x3945d0['delete'](_0x17b88e),!0x0;if(!_0x5e0754&&_0x10c387(_0x3429e1,_0x1ff3cd))return _0x30489f['_joinSuggestions'](_0x17b88e,_0x28c2cc),_0x3945d0['delete'](_0x28c2cc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1a250a,_0x166e88){if(_0x1a250a['isMultiRange']){for(const _0x429efb of _0x166e88['getRanges']())_0x1a250a['addRange'](_0x429efb);}else{const _0x27f6bb=_0x166e88['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1a250a,this['_model']['createRange'](_0x1a250a['getFirstRange']()['start'],_0x27f6bb));}_0x166e88['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4b7b36,_0x59c8e7){const _0x43c48c=_0x4b7b36['startsWith']('format')||_0x4b7b36['startsWith']('attribute')?'FORMATTING':_0x4b7b36['toUpperCase']();return o(this['editor']['locale'],_0x59c8e7+'_'+_0x43c48c+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4cb117=this['editor'];if(!_0x4cb117['ui'])return;const {ariaLiveAnnouncer:_0x4f3566}=_0x4cb117['ui'];_0x59ec08(this['_model'],({left:_0x5a3bb2,entered:_0x2cd02d})=>{for(const _0xa6d9ac of _0x5a3bb2){const {group:_0x2d3e65,type:_0x3dd6d3}=this['_splitMarkerName'](_0xa6d9ac['name']);if('suggestion'===_0x2d3e65){_0x4f3566['announce'](this['_getMarkerAnnouncementText'](_0x3dd6d3,'LEAVE'));break;}}for(const _0x1721a4 of _0x2cd02d){const {group:_0x2bf02d,type:_0x511cf2}=this['_splitMarkerName'](_0x1721a4['name']);if('suggestion'===_0x2bf02d){_0x4f3566['announce'](this['_getMarkerAnnouncementText'](_0x511cf2,'ENTER'));break;}}});}['_processAttributeChanges'](_0x19dee3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x20e51e=this['editor'],_0x197545=_0x20e51e['model']['document']['differ']['getChanges']();if(0x0==_0x197545['length'])return!0x1;const _0x274c0f=[],_0x3e41f2=_0x197545['filter'](_0x364756=>'attribute'==_0x364756['type']),_0x26bd50=_0x197545['filter'](_0x5bc22a=>'insert'==_0x5bc22a['type']&&'$text'!=_0x5bc22a['name']),_0x5b8703=_0x197545['filter'](_0x139723=>'remove'==_0x139723['type']&&'$text'!=_0x139723['name']);for(const _0x2978af of _0x3e41f2)_0x274c0f['push']({'key':_0x2978af['attributeKey'],'newValue':_0x2978af['attributeNewValue'],'oldValue':_0x2978af['attributeOldValue'],'range':Ot(_0x2978af['range'],_0x20e51e['model'])});for(const _0x41107e of _0x26bd50){const _0x3ce139=_0x5b8703['find'](_0x3e06c2=>_0x3e06c2['position']['isEqual'](_0x41107e['position']));_0x3ce139&&_0x274c0f['push']({'key':m,'newValue':_0x41107e['name'],'oldValue':_0x3ce139['name'],'range':_0x20e51e['model']['createRangeOn'](_0x41107e['position']['nodeAfter'])});}return 0x0!=_0x274c0f['length']&&this['_reduceExistingSuggestions'](_0x19dee3,_0x274c0f);}['_processAttributeSuggestions'](_0x1699d1){let _0x2d87e8=!0x1;const _0x39275f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3f35f3=>_0x3f35f3['data']['newRange']&&_0x3f35f3['name']['startsWith']('suggestion:attribute:'));for(const _0x3674ef of _0x39275f){const {subType:_0x48a6eb,id:_0x266ba2}=this['_splitMarkerName'](_0x3674ef['name']),_0x36ada2=_0x48a6eb['split']('|')[0x0];for(const _0xe8af1b of this['getSuggestions']({'skipNotAttached':!0x0}))_0xe8af1b['id']!=_0x266ba2&&'attribute'==_0xe8af1b['type']&&_0xe8af1b['data']&&_0xe8af1b['data']['key']==_0x36ada2&&_0xe8af1b['getFirstRange']()['isIntersecting'](_0x3674ef['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xe8af1b,_0x3674ef['data']['newRange'],_0x1699d1),_0x2d87e8=!0x0);}return _0x2d87e8;}['_recordAttributeChanges'](_0x4f5fb9){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4f5fb9();}['_isRegisteredAttribute'](_0x45d948){const _0x260264=this['_isBlockAttribute'](_0x45d948),_0x58ef92=this['_inlineAttributeKeys']['has'](_0x45d948);return _0x260264||_0x58ef92;}['_reduceExistingSuggestions'](_0x4de7f1,_0x3de5eb){if(0x0==_0x3de5eb['length'])return!0x1;let _0x1bbf24=!0x1;for(const _0x13796c of _0x3de5eb){const _0x4550fb=this['_findSuggestions'](_0x13796c['range'],'attribute')['filter'](_0x65a4f1=>!_0x65a4f1['meta']['isNextTo'])['map'](_0x41f694=>_0x41f694['suggestion']),_0x31257f=_0x465ae5({'newValue':_0x13796c['newValue']});_0x4550fb['filter'](_0x131165=>{const [_0x17d20e,_0x2cb863]=_0x131165['subType']['split']('|');return _0x17d20e==_0x13796c['key']&&_0x2cb863!=_0x31257f;})['forEach'](_0x332c06=>{this['_reduceSuggestionAttributeRange'](_0x332c06,_0x13796c['range'],_0x4de7f1),_0x1bbf24=!0x0;});}return _0x1bbf24;}['_reduceSuggestionAttributeRange'](_0x332574,_0x2760d0,_0x2a663f){const _0xd0c632=_0x332574['getFirstRange']()['getDifference'](_0x2760d0);0x0!==_0xd0c632['length']?0x1!==_0xd0c632['length']?this['_breakSuggestionMarker'](_0x332574,_0x2760d0['start'],_0x2760d0['end']):this['_setSuggestionRange'](_0x332574,_0xd0c632[0x0]):_0x2a663f['removeMarker'](_0x332574['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x42712d){this['_editor']=_0x42712d,this['_model']=_0x42712d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4cc246,_0x54c4de,_0x56de9d,_0x15a653,_0x47fcda,_0x2247eb){return new u(this['_model'],{'type':_0x4cc246,'subType':_0x54c4de,'id':_0x56de9d,'author':_0x15a653,'creator':_0x15a653,'attributes':_0x47fcda,'onAttributesChange':_0x2247eb,'onAccept':(..._0xb7b425)=>this['getSuggestionCallback'](_0x4cc246,_0x54c4de,'accept')(..._0xb7b425),'onDiscard':(..._0x4d4df6)=>this['getSuggestionCallback'](_0x4cc246,_0x54c4de,'discard')(..._0x4d4df6)});}['registerCustomCallback'](_0x514a62,_0x37e3f6,_0x4d9755,_0x5ec79f){const _0x57fb19=_0x514a62+':'+_0x37e3f6+':'+_0x4d9755;this['_customCallbacks']['set'](_0x57fb19,_0x5ec79f);}['getSuggestionCallback'](_0x55ffea,_0x463c93,_0x2d0280){const _0x3937fb=_0x55ffea+':'+_0x463c93+':'+_0x2d0280;return this['_customCallbacks']['get'](_0x3937fb)||this['_defaultCallbacks']['get'](_0x55ffea+':'+_0x2d0280);}['_registerDefaultCallbacks'](){const _0x5828c5=()=>!0x1,_0xe4a3ca=_0x24dae9=>{_0x24dae9['sort']((_0x3b7045,_0x4d3f43)=>_0x3b7045['start']['isBefore'](_0x4d3f43['start'])?0x1:-0x1),this['_model']['change'](_0x47f32a=>{for(const _0x4f06dc of _0x24dae9){let _0x147f29;_0x147f29=_0x4f06dc['end']['isAtEnd']&&_0x4f06dc['end']['parent']==_0x4f06dc['start']['nodeAfter']?_0x47f32a['createSelection'](_0x4f06dc['start']['nodeAfter'],'on'):_0x47f32a['createSelection'](_0x4f06dc),this['_model']['deleteContent'](_0x147f29,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3e5a6c=(_0x1bbdd2,_0x2e45bd)=>{_0x2e45bd&&this['_model']['change'](_0x5691e4=>{const {commandName:_0x159445,commandParams:_0xb29a3e=[]}=_0x2e45bd,_0x1a76ff=_0x1bbdd2['map'](_0x539df6=>(Tt(_0x539df6)&&(_0x539df6=this['_model']['createRange'](_0x539df6['end'])),_0x539df6))['filter'](_0x35938d=>'$graveyard'!==_0x35938d['root']['rootName']);if(_0x1a76ff['length']<0x1)return;const _0x2abf1d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1611d7=>_0x5733e9['fromRange'](_0x1611d7));_0x5691e4['setSelection'](_0x1a76ff);for(const _0x128b0b of this['_editor']['commands']['commands']())_0x128b0b['refresh']();_0xb29a3e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x159445,..._0xb29a3e);const _0x31c887=_0x2abf1d['filter'](_0x48ab29=>'$graveyard'!=_0x48ab29['root']['rootName']);_0x31c887['length']>0x0&&_0x5691e4['setSelection'](_0x31c887);for(const _0x341e92 of _0x2abf1d)_0x341e92['detach']();});},_0x172c5d=(_0x294ca6,_0x24af1a)=>0x1==_0x294ca6['length']&&0x1==_0x24af1a['length']&&_0x294ca6[0x0]['end']['isEqual'](_0x24af1a[0x0]['start']),_0x499665=(_0x27b3cb,_0xbbecc8,_0x313c5e,_0xb51424)=>Ft(_0x27b3cb,_0xbbecc8,_0x313c5e,_0xb51424,this['_model'])?[_0x27b3cb,_0xbbecc8]:Ft(_0xbbecc8,_0x27b3cb,_0xb51424,_0x313c5e,this['_model'])?[_0xbbecc8,_0x27b3cb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5828c5),this['_defaultCallbacks']['set']('insertion:discard',_0xe4a3ca),this['_defaultCallbacks']['set']('insertion:join',_0x172c5d),this['_defaultCallbacks']['set']('insertion:chain',_0x499665),this['_defaultCallbacks']['set']('deletion:accept',_0xe4a3ca),this['_defaultCallbacks']['set']('deletion:discard',_0x5828c5),this['_defaultCallbacks']['set']('deletion:join',_0x172c5d),this['_defaultCallbacks']['set']('deletion:chain',_0x499665),this['_defaultCallbacks']['set']('formatInline:accept',_0x3e5a6c),this['_defaultCallbacks']['set']('formatInline:discard',_0x5828c5),this['_defaultCallbacks']['set']('formatInline:join',_0x172c5d),this['_defaultCallbacks']['set']('formatInline:chain',_0x5828c5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3e5a6c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5828c5),this['_defaultCallbacks']['set']('formatBlock:join',_0x172c5d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5828c5),this['_defaultCallbacks']['set']('attribute:accept',_0x5828c5),this['_defaultCallbacks']['set']('attribute:discard',(_0x50d4eb,_0x4a1b56)=>{if(!_0x4a1b56)return;const _0x350675=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x9d2a30=>{if(_0x4a1b56['key']==m)for(const _0x1d5d25 of _0x50d4eb){const _0x31ec00=_0x1d5d25['start']['nodeAfter'],_0x212114=_0x4a1b56['oldValue'];_0x9d2a30['rename'](_0x31ec00,_0x212114);}else{if(_0x350675['_isBlockAttribute'](_0x4a1b56['key'])){for(const _0x5c2d76 of _0x50d4eb)void 0x0!==_0x4a1b56['oldValue']?_0x9d2a30['setAttribute'](_0x4a1b56['key'],_0x4a1b56['oldValue'],_0x5c2d76['start']['nodeAfter']):_0x9d2a30['removeAttribute'](_0x4a1b56['key'],_0x5c2d76['start']['nodeAfter']);}else{for(const _0x20261e of _0x50d4eb)_0x4a1b56['oldValue']?_0x9d2a30['setAttribute'](_0x4a1b56['key'],_0x4a1b56['oldValue'],_0x20261e):_0x9d2a30['removeAttribute'](_0x4a1b56['key'],_0x20261e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x172c5d);}}function Rt(_0x39c47c,_0x4429fd,_0x37598e){for(const _0x211275 of _0x4429fd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x211275['root']==_0x211275)return!0x1;if(!_0x37598e['containsItem'](_0x211275))return!0x1;if(_0x39c47c['isObject'](_0x211275)||_0x39c47c['isLimit'](_0x211275))return!0x0;}return!0x1;}function Tt(_0x4f1d84){return _0x4f1d84['end']['parent']==_0x4f1d84['start']['nodeAfter']&&_0x4f1d84['end']['isAtStart'];}function Et(_0x4d7842,_0x4584a5,_0x3a1ce5,_0x2be48f){const _0x27fcc3=_0x5f1083=>!_0x5f1083['item']['is']('$textProxy')&&!_0x2be48f['isObject'](_0x5f1083['item']),_0x5eb357=_0x4d7842['start']['getLastMatchingPosition'](_0x27fcc3),_0xc7497=_0x4d7842['end']['getLastMatchingPosition'](_0x27fcc3,{'direction':'backward'});return(!_0x4d7842['start']['isEqual'](_0x5eb357)||!_0x4d7842['end']['isEqual'](_0xc7497))&&(_0x5eb357['isBefore'](_0xc7497)?_0x3a1ce5['updateMarker'](_0x4584a5,{'range':_0x3a1ce5['createRange'](_0x5eb357,_0xc7497)}):_0x3a1ce5['removeMarker'](_0x4584a5),!0x0);}function Vt(_0x4e3483){return _0x465ae5(_0x4e3483);}function Ut(_0x3be4df){const _0x5107b8=_0x3be4df['start']['nodeAfter'];return _0x5107b8&&_0x5107b8['is']('element');}function Ot(_0x588cc8,_0x36add9){return null==_0x588cc8['end']['nodeBefore']&&_0x588cc8['end']['parent']==_0x588cc8['start']['nodeAfter']?Gt(_0x588cc8['start']['nodeAfter'],_0x36add9):_0x588cc8;}function Gt(_0xaf60de,_0x14c57e){const _0x5804ea=_0x14c57e['schema']['isObject'](_0xaf60de)||_0x14c57e['schema']['isSelectable'](_0xaf60de);return _0x14c57e['createRange'](_0x14c57e['createPositionAt'](_0xaf60de,'before'),_0x5804ea?_0x14c57e['createPositionAfter'](_0xaf60de):_0x14c57e['createPositionAt'](_0xaf60de,'end'));}function Ft(_0x578dbd,_0x36c054,_0x42a199,_0x323b61,_0x300063){if(!Pt(_0x578dbd,_0x36c054))return!0x1;if(_0x42a199['end']['isEqual'](_0x323b61['start']))return!0x0;if(_0x578dbd['type']!=_0x36c054['type'])return!0x1;if(!_0x42a199['end']['isTouching'](_0x323b61['start']))return!0x1;const _0x40dff2=_0x300063['createRange'](_0x42a199['end'],_0x323b61['start'])['getWalker']();for(const _0xfe3396 of _0x40dff2)if(['elementStart','elementEnd']['includes'](_0xfe3396['type'])&&_0x300063['schema']['isLimit'](_0xfe3396['item']))return!0x1;return!0x0;}function Pt(_0x4d9bcb,_0x47c5f7,_0x177be6=[]){return!(!_0x4d9bcb['_isDataLoaded']||!_0x47c5f7['_isDataLoaded'])&&_0x2eaac8(Bt(_0x4d9bcb['attributes'],_0x177be6),Bt(_0x47c5f7['attributes'],_0x177be6));}function Lt(_0x3ed65d,_0x2c4776){const _0x2337bf=Ht(_0x3ed65d['attributes']),_0x323de0=Ht(_0x2c4776);if(!_0x3ed65d['_isDataLoaded'])return!0x1;for(const _0x2ccace of Object['keys'](_0x323de0))if(!_0x2eaac8(_0x2337bf[_0x2ccace],_0x323de0[_0x2ccace]))return!0x1;return!0x0;}function Ht(_0x213cbe){const _0x261367=Object['assign']({},_0x213cbe);return delete _0x261367['skipNestingCheck'],delete _0x261367['tablePasteChainId'],_0x261367;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xfd7f9a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x25f62b,_0x585608,_0x174ef1,_0x49c00d){super(),this['model']=_0x585608,this['view']=_0x174ef1,this['commentThreadController']=_0x49c00d,this['_editor']=_0x25f62b,this['_acceptCommand']=_0x25f62b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x25f62b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x51a9ac,_0x124288)=>_0x51a9ac||_0x124288),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x30a78e=>_0x30a78e&&this['_editor']['model']['canEditAt'](_0x585608['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x7e386=>_0x7e386&&this['_editor']['model']['canEditAt'](_0x585608['getRanges']())),this['_pendingAction']=null,_0x174ef1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x174ef1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x174ef1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x174ef1,'change:isDirty',()=>{_0x174ef1['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 _0x4dcc90=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4dcc90);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x47a888{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x1b59f2,_0x426a8b,_0x256fcb,_0x1ff4f8){super(_0x1b59f2),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x426a8b['authoredAt']),this['bind']('authoredAt')['to'](_0x426a8b),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x426a8b,this['_localUser']=_0x256fcb,this['_config']=_0x1ff4f8,_0x1ff4f8['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:_0x14f9f3}=this['_config'];this['commentsListView']=new _0x14f9f3(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',_0xa4cb63=>_0xa4cb63+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x53e304,_0x501231)=>_0x53e304||!!_0x501231);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x299788}=this['_config'],_0x3da75e=new _0x299788(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x35f8a4=_0x3da75e['commentInputView'];return _0x3da75e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x35f8a4,'value',(_0x544e08,_0x2a81fb,_0x50ae65)=>!!_0x50ae65||_0x544e08&&!_0x2a81fb),_0x35f8a4['on']('submit',(_0x55bfff,_0x9c7a35)=>{this['fire']('addComment',_0x9c7a35),_0x35f8a4['editor']['setData']('');}),_0x35f8a4['on']('cancel',()=>this['focus']()),_0x35f8a4['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3da75e;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x147342,_0x1989cd,_0x22f043,_0x917f12){super(_0x147342,_0x1989cd,_0x22f043,_0x917f12),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5596f0=>_0x5596f0&&_0x5596f0[0x0]?_0x5596f0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3249ff,_0x106cd1)=>{let _0x4628fc='';for(const _0x1ae82b of _0x3249ff)_0x4628fc+='<p>'+ds(_0x1ae82b['content'],_0x1ae82b['color'])+'</p>';return _0x106cd1?_0x4628fc:_0x35d3a3(_0x4628fc,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x147342,'Accept\x20suggestion'),_0x163e57['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x147342,'Discard\x20suggestion'),_0x163e57['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0xbe3cd9(_0x147342,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x56278c=this['bindTemplate'],_0x2861f7=[{'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':_0x56278c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x56278c['to']('authoredAt',_0xa59b5c=>this['_config']['formatDateTime'](_0xa59b5c))}]}]},{'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']&&_0x2861f7['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x42c00f={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x56278c['if']('isActive','ck-suggestion-wrapper--active'),_0x56278c['to']('type',_0xdfa84c=>'ck-suggestion-'+_0xdfa84c),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':_0x2861f7}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x42c00f['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)),_0x42c00f;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x204945,_0xf1004,_0x1267c1)=>{this['_descriptionElement']['innerHTML']=_0x1267c1;});}['_createButton'](_0x3f7a7a,_0x2769d4,_0x59a0c6,_0x13f169,_0x18c9d7){const _0x3a92d7=new _0x2e9c33(this['locale']);return _0x3a92d7['set']({'label':_0x3f7a7a,'icon':_0x2769d4,'tooltip':!0x0,'tooltipPosition':_0x18c9d7}),_0x3a92d7['extendTemplate']({'attributes':{'class':_0x59a0c6}}),_0x3a92d7['on']('execute',()=>{this['fire'](_0x13f169,this['_model']['id']);}),_0x3a92d7;}['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(_0x24927f,_0x24a747){let _0x5aa5ef='';return _0x5aa5ef+=_0x24927f['split']('*')['map']((_0x32a488,_0x3cc661)=>_0x3cc661%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x32a488)+'</span>':us(_0x32a488))['join'](''),_0x24a747&&(_0x5aa5ef+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x24a747['value']+'\x22\x20title=\x22'+_0x24a747['title']+'\x22></span>'),_0x5aa5ef;}function us(_0x459938){const _0x1a2346=document['createElement']('span');return _0x1a2346['innerText']=_0x459938,_0x1a2346['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 _0x58f0a6{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x7b8d04,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4658a5){super(_0x4658a5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4e3cec=this['editor']['config'];_0x4e3cec['define']('trackChanges.SuggestionThreadView',ne),_0x4e3cec['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4e3cec['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x19bc3c,_0x42e484){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4f3164,_0x3f18d9]of this['_handleControllerBuffer']){const _0x594e20=this['_suggestionToController']['has'](_0x4f3164);_0x594e20||_0x3f18d9?_0x594e20&&_0x3f18d9&&this['_destroyController'](_0x4f3164):this['_initializeController'](_0x4f3164);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x19bc3c,_0x42e484);}['init'](){const _0x488b18=this['editor'],_0x211c60=_0x488b18['plugins']['get']('TrackChangesEditing'),_0x24c055=_0x488b18['plugins']['get']('Annotations'),_0x13c4b9=_0x488b18['plugins']['get']('EditorAnnotations'),_0x173a73=_0x488b18['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x13c4b9['addSourceCollector'](()=>{const _0x1723ed=[];for(const [_0x571d4e,_0x5b7a29]of Array['from'](this['_suggestionToController'])){const _0x38c780=_0x571d4e['getAllAdjacentSuggestions'](),_0xfb02e0=[];for(const _0x117f73 of _0x38c780){if(!_0x117f73['isInContent'])continue;if(_0x117f73['isMultiRange']){_0xfb02e0['push'](..._0x117f73['getRanges']());continue;}const _0x39b288=_0x117f73['getFirstRange']();if(_0xfb02e0['length']>0x0){const _0x4161cf=_0xfb02e0[0x0]['getJoined'](_0x39b288);if(_0x4161cf){_0xfb02e0[0x0]=_0x4161cf;continue;}}_0xfb02e0['push'](_0x39b288);}_0x1723ed['push']([_0x5b7a29['view'],_0xfb02e0]);}return _0x1723ed;}),this['listenTo'](_0x211c60,'suggestionLoaded',(_0x5880da,_0x5b5dee)=>{this['listenTo'](_0x5b5dee,'change:previous',(_0x40f7f3,_0x449cfa,_0x32ab5a,_0xfdf653)=>{_0x5b5dee['isInContent']&&(null==_0x32ab5a?(this['_updateController'](_0xfdf653['head']),this['_handleSuggestionControllerDelayed'](_0x5b5dee,!0x1)):(this['_updateController'](_0x32ab5a['head']),null==_0xfdf653&&this['_handleSuggestionControllerDelayed'](_0x5b5dee,!0x0)));}),null!==_0x5b5dee['previous']?this['_updateController'](_0x5b5dee['head']):this['_handleSuggestionControllerDelayed'](_0x5b5dee,!0x1);}),this['listenTo'](_0x211c60,'suggestionUnloaded',(_0x1e56cd,_0x53170e,_0x431ca7)=>{this['stopListening'](_0x53170e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x53170e),this['_suggestionToController']['has'](_0x53170e)&&this['_destroyController'](_0x53170e),_0x431ca7&&this['_updateController'](_0x431ca7['head']);}),this['listenTo'](_0x211c60,'suggestionChanged',(_0x5f3f0d,_0x48132f)=>{this['_updateController'](_0x48132f);}),this['listenTo'](_0x24c055,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x173a73,'addComment',(_0x18d983,{threadId:_0x48ebe1,isFromAdapter:_0x45ffa9})=>{if(_0x45ffa9||!_0x211c60['hasSuggestion'](_0x48ebe1))return;const _0x3e6dcc=_0x211c60['getSuggestion'](_0x48ebe1);this['_suggestionToController']['get'](_0x3e6dcc)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3fc4be=this['editor']['plugins']['get']('Annotations'),_0x3835f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd72eb5=Array['from'](_0x3fc4be['activeAnnotations'],_0x2e04fd=>_0x2e04fd['innerView'])['filter'](_0x38433a=>this['_viewToController']['has'](_0x38433a)),_0x5c7c88=[];for(const _0x189115 of _0xd72eb5){const _0x367845=this['_viewToController']['get'](_0x189115)['model']['getAllAdjacentSuggestions']();_0x5c7c88['push'](..._0x367845['reduce']((_0x536899,_0x580e0c)=>[..._0x536899,..._0x580e0c['getMarkerNames']()],[]));}_0x3835f3['activeMarkers']=_0x5c7c88;}['_addUIComponentsToFactory'](){const _0x3383d5=this['editor'],_0x143c6a=_0x3383d5['locale'],_0x13a2b0=o(_0x143c6a,'Track\x20changes'),_0xc7e874=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x13a2b0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x143c6a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x143c6a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x143c6a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x143c6a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3644c3 of _0xc7e874)if(ae(_0x3644c3)){const _0x3cc29d=_0x3383d5['commands']['get'](_0x3644c3['model']['commandName']);_0x3644c3['model']['bind']('isOn','isEnabled')['to'](_0x3cc29d,'value','isEnabled');}_0x3383d5['ui']['componentFactory']['add']('trackChanges',_0x33821f=>this['_createToolbarButton'](_0x33821f,_0xc7e874,_0x13a2b0)),_0x3383d5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x177b03=>this['_createMenuBarMenu'](_0x177b03,_0xc7e874,_0x13a2b0));}['_createToolbarButton'](_0x1e3bb,_0x5dbf31,_0xb0f7b0){const _0x3f89c0=zt(_0x1e3bb,Zt),_0x4ebe83=this['editor']['commands']['get']('trackChanges');_0x3f89c0['buttonView']['set']({'tooltip':_0xb0f7b0,'label':_0xb0f7b0,'icon':ie}),_0x3f89c0['buttonView']['bind']('isOn')['to'](_0x4ebe83,'value'),_0x3f89c0['buttonView']['on']('execute',()=>{_0x4ebe83['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x3f89c0,_0x5dbf31,{'role':'menu'});const _0x28e22b=[];for(const _0x2d4d32 of _0x5dbf31)ae(_0x2d4d32)&&_0x28e22b['push'](this['editor']['commands']['get'](_0x2d4d32['model']['commandName']));const _0x2a8f53=_0x3f89c0['buttonView'];return _0x2a8f53['actionView']['unbind']('isEnabled'),_0x2a8f53['arrowView']['unbind']('isEnabled'),_0x2a8f53['actionView']['bind']('isEnabled')['to'](_0x4ebe83,'isEnabled'),_0x2a8f53['arrowView']['bind']('isEnabled')['toMany'](_0x28e22b,'isEnabled',(..._0x422616)=>_0x422616['some'](_0x25d892=>_0x25d892)),_0x3f89c0['on']('execute',_0x36df5e=>{this['editor']['execute'](_0x36df5e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3f89c0;}['_createMenuBarMenu'](_0x3714f1,_0x3a462e,_0x2ce0ff){const _0x2375d3=new Kt(_0x3714f1),_0x312d78=this['editor']['commands']['get']('trackChanges');_0x2375d3['buttonView']['set']({'label':_0x2ce0ff,'icon':ie});const _0x238308=new Qt(_0x3714f1);for(const _0x1250f3 of _0x3a462e){if('separator'==_0x1250f3['type']){_0x238308['items']['add'](new Jt(_0x3714f1));continue;}const _0x200955=new Xt(_0x3714f1,_0x2375d3),_0x4197e0=new Yt(_0x3714f1),_0x44c895=_0x1250f3['model'];_0x4197e0['bind'](...Object['keys'](_0x44c895))['to'](_0x44c895),_0x4197e0['delegate']('execute')['to'](_0x2375d3),_0x4197e0['on']('execute',()=>{this['editor']['execute'](_0x44c895['commandName']),this['editor']['editing']['view']['focus']();}),_0x200955['children']['add'](_0x4197e0),_0x238308['items']['add'](_0x200955);}return _0x2375d3['bind']('isEnabled')['to'](_0x312d78,'isEnabled'),_0x2375d3['panelView']['children']['add'](_0x238308),_0x2375d3;}['_initializeController'](_0x1f9b13){const _0x3924ef=this['editor'],_0x2a1b0e=_0x3924ef['config'],_0x2b8548=_0x3924ef['plugins']['get']('Annotations'),_0x4efe2e=_0x3924ef['plugins']['get']('CommentsRepository'),_0xf049cc=_0x3924ef['plugins']['get']('EditorAnnotations'),_0x4899e9=_0x3924ef['plugins']['get'](_0x7b8d04)['me'],_0x1a46f6=_0x2a1b0e['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xc71007,CommentThreadInputView:_0x3cdea3}=_0x3924ef['plugins']['get']('CommentsUI');let _0x1fbe3b,_0x18ea73;this['_annotationViews']['has'](_0x1f9b13['id'])?(_0x18ea73=this['_annotationViews']['get'](_0x1f9b13['id']),_0x1fbe3b=_0x18ea73['mainView']):(_0x1fbe3b=new _0x1a46f6(_0x3924ef['locale'],_0x1f9b13,_0x4899e9,{'disableComments':this['_disableComments'],'editorConfig':_0x2a1b0e['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2a1b0e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2a1b0e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2a1b0e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x14636d(_0x2a1b0e['get']('locale')),'CommentView':_0x2a1b0e['get']('comments')['CommentView'],'CommentsListView':_0xc71007,'CommentThreadInputView':_0x3cdea3}),_0x1fbe3b['acceptButton']['on']('execute',()=>{_0x3924ef['editing']['view']['focus']();}),_0x1fbe3b['discardButton']['on']('execute',()=>{_0x3924ef['editing']['view']['focus']();}),_0x18ea73=_0x2b8548['createAnnotationView'](this['editor']['locale'],_0x1fbe3b),_0x18ea73['bind']('isDirty')['to'](_0x1fbe3b,'isDirty'),_0x18ea73['bind']('length')['to'](_0x1fbe3b),_0x18ea73['bind']('type')['to'](_0x1fbe3b,'type',_0x36985b=>'suggestion-'+_0x36985b),this['_annotationViews']['set'](_0x1f9b13['id'],_0x18ea73));const _0x81d652=_0x4efe2e['createCommentThreadController'](_0x1f9b13['commentThread'],_0x1fbe3b),_0x4e02bd=new oe(_0x3924ef,_0x1f9b13,_0x1fbe3b,_0x81d652),_0x1187ac=_0x1f9b13['getAllAdjacentSuggestions']()['filter'](_0x2fc580=>_0x2fc580['isInContent']);_0x1fbe3b['descriptionParts']=_0x3924ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1187ac),this['_suggestionToController']['set'](_0x1f9b13,_0x4e02bd),this['_viewToController']['set'](_0x1fbe3b,_0x4e02bd);const _0x10fbf5=_0x2b8548['createAnnotation']({'view':_0x18ea73,'target':()=>{const _0x3591c=[],_0x1b34f3=_0x1f9b13['getAllAdjacentSuggestions']()['filter'](_0x2ee034=>_0x2ee034['isInContent']);for(const _0x326aeb of _0x1b34f3)_0x3591c['push'](..._0x326aeb['getMarkers']());return _0x4dd359(_0x3924ef['editing'],_0x3591c);},'type':()=>'suggestion-'+_0x4e02bd['view']['type']});_0x4efe2e['_bindAnnotationToEditors'](_0x1fbe3b,_0x10fbf5),_0x2b8548['add'](_0x10fbf5),_0xf049cc['registerAnnotation'](_0x10fbf5);}['_destroyController'](_0x1c2898){const _0xc23e4a=this['editor']['plugins']['get']('CommentsRepository'),_0xe4047c=this['editor']['plugins']['get']('Annotations'),_0x51ec15=this['_suggestionToController']['get'](_0x1c2898),_0x524ccf=_0x51ec15['view'],_0x305422=_0xe4047c['getByInnerView'](_0x524ccf);_0xc23e4a['_unbindEditors'](_0x524ccf),_0x305422&&_0xe4047c['remove'](_0x305422),this['_suggestionToController']['delete'](_0x1c2898),this['_viewToController']['delete'](_0x524ccf),_0x51ec15['destroy']();}['_updateController'](_0x3f3761){if(!_0x3f3761['isInContent']||!this['_suggestionToController']['has'](_0x3f3761))return;const _0x1b0949=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16aa04=this['_suggestionToController']['get'](_0x3f3761),_0x19c1ff=_0x3f3761['getAllAdjacentSuggestions']();_0x16aa04['view']['descriptionParts']=_0x1b0949['descriptionFactory']['getDescriptions'](_0x19c1ff);}['destroy'](){for(const _0x474937 of this['_suggestionToController']['keys']())this['_destroyController'](_0x474937);for(const _0x1e634d of this['_annotationViews']['values']())_0x1e634d['mainView']['destroy']();super['destroy']();}}function ae(_0x4bdfeb){return'model'in _0x4bdfeb;}class k extends _0x58f0a6{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x49b276){this['editor']['plugins']['get'](p)['adapter']=_0x49b276;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x46c531){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x46c531);}['getSuggestions']({skipNotAttached:_0x82f7e=!0x1,toJSON:_0x22d063=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x82f7e,'toJSON':_0x22d063});}['getSuggestion'](_0x5a0349){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5a0349);}}const T=['Pagination'];class P extends _0x58f0a6{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0xe65e8c=this['editor'];if(_0xe65e8c['config']['define']('trackChangesData.editorCreator',_0x3c661d=>{const _0x54144c=_0xe65e8c['model']['document']['getRootNames']()['reduce']((_0x1fede7,_0x379ba5)=>(_0x1fede7[_0x379ba5]='',_0x1fede7),{});return _0xe65e8c['constructor']['create'](_0x54144c,_0x3c661d);}),'function'!=typeof _0xe65e8c['config']['get']('trackChangesData')['editorCreator'])throw new _0x5a9654('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x577160){return N(this['editor'],!0x0,_0x577160);}['getDataWithDiscardedSuggestions'](_0x599be4){return N(this['editor'],!0x1,_0x599be4);}}class D extends _0x58f0a6{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x24f091){super(_0x24f091),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(_0x4b542a){return void 0x0!==_0x4b542a['getRootsAttributes'];}async function N(_0x1ccfb1,_0x187657,_0x51c120){const _0x279538=_0xb69918(_0x1ccfb1,T);_0x279538['plugins']['push'](p,D),_0x279538['rootsAttributes']=v(_0x1ccfb1)?_0x1ccfb1['getRootsAttributes']():void 0x0;const _0x32c86f=document['createDocumentFragment'](),_0x4413a3=_0x1ccfb1['config']['get']('trackChangesData')['editorCreator'],_0x5b69c6=await _0x4413a3(_0x279538,()=>function(_0x4a851b){const _0x34304e=document['createElement']('div');return _0x4a851b['appendChild'](_0x34304e),_0x34304e;}(_0x32c86f));!function(_0x3dc318,_0x3f4614){const _0x348fa8=_0x3dc318['model']['document']['getRootNames']()['reduce']((_0x504c10,_0x50402b)=>(_0x504c10[_0x50402b]=_0x3dc318['data']['get']({'rootName':_0x50402b}),_0x504c10),{}),_0x11c574=_0x3dc318['plugins']['get']('Users')['users']['map'](_0x32a685=>({'id':_0x32a685['id'],'name':_0x32a685['name']})),_0x30cc14=_0x3dc318['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3c2146=_0x3dc318['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2da67c=_0x3f4614['plugins']['get']('Users'),_0x2d2fa7=_0x3f4614['plugins']['get']('TrackChangesEditing'),_0x382b3c=_0x3f4614['plugins']['get']('CommentsRepository');for(const _0x3429da of _0x11c574)_0x2da67c['getUser'](_0x3429da['id'])||_0x2da67c['addUser'](_0x3429da);_0x2da67c['me']||_0x2da67c['useAnonymousUser']();for(const _0x1d2a4b of _0x3c2146)_0x382b3c['addCommentThread'](_0x1d2a4b);for(const _0x53fc63 of _0x30cc14)_0x2d2fa7['addSuggestionData'](_0x53fc63);_0x3f4614['data']['set'](_0x348fa8);}(_0x1ccfb1,_0x5b69c6),_0x5b69c6['execute'](_0x187657?'acceptAllSuggestions':'discardAllSuggestions');const _0x438bf6=v(_0x5b69c6)?_0x5b69c6['getFullData'](_0x51c120):_0x5b69c6['data']['get'](_0x51c120);return await _0x5b69c6['destroy'](),_0x438bf6;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x1dc395,PendingActions as _0x4d8020,icons as _0x51c65d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x197e78,ObservableMixin as _0x511707,uid as _0x497177,insertToPriorityArray as _0x55dca7,priorities as _0x244548,logWarning as _0xe6849e,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x41c95d,View as _0x1f4890,ButtonView as _0x486fa,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 _0x4c39fc,hashObject as _0x4e2023,surroundingMarkersDetector as _0x19ad9e,trimHtml as _0x21e9b6,UserView as _0x40e36d,getDateTimeFormatter as _0x2f1ee9,getAllMarkersDomElementsSorted as _0x3246a6,sanitizeEditorConfig as _0x2a7688}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3aa03a,LiveRange as _0x5e8b6d,LivePosition as _0x285ecd}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3c8cc7,toWidget as _0x20341e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x129508,set as _0xbec47,isEqual as _0x260467,unset as _0x276a4d,omit as Bt}from'lodash-es';import{Delete as _0x12412c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x46754e,ShiftEnter as _0x5d8131}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x2a5b1a,_0x366009){super(_0x2a5b1a),this['_enabledCommands']=_0x366009,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 _0x5d0367 of this['editor']['commands']['commands']())_0x5d0367['affectsData']&&!this['_enabledCommands']['has'](_0x5d0367)&&_0x5d0367['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe97c4 of this['editor']['commands']['commands']())_0xe97c4['affectsData']&&!this['_enabledCommands']['has'](_0xe97c4)&&_0xe97c4['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x185c9c,_0x3c5f2a){super(_0x185c9c),this['_suggestions']=_0x3c5f2a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1ac74d){const _0x6c84cc=this['_suggestions']['get'](_0x1ac74d);if(!_0x6c84cc)throw new _0x197e78('track-changes-accept-suggestion-not-found',this);const _0x20f109=_0x6c84cc['getRanges']();this['editor']['model']['canEditAt'](_0x20f109)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x6c84cc);}}class B extends ts{['_suggestions'];constructor(_0x2f12bd,_0x20228d){super(_0x2f12bd),this['_suggestions']=_0x20228d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3e38ee){const _0xd63381=this['_suggestions']['get'](_0x3e38ee);if(!_0xd63381)throw new _0x197e78('track-changes-discard-suggestion-not-found',this);const _0x4c071d=_0xd63381['getRanges']();this['editor']['model']['canEditAt'](_0x4c071d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xd63381);}}function ss(_0x2f795f){return _0x2f795f['sort']((_0x334080,_0x70dbd0)=>'deletion'==_0x334080['type']&&'deletion'!=_0x70dbd0['type']?-0x1:'deletion'!=_0x334080['type']&&'deletion'==_0x70dbd0['type']?0x1:0x0);}function to(_0x2cd98c,_0x37345f){let _0x4310db,_0x2e96e1=0x0;const _0x55e3f2=[],_0x5e8d08=_0x37345f['schema'];for(;_0x2e96e1<_0x2cd98c['length'];){const _0x3e590e=_0x2cd98c[_0x2e96e1],_0x83275=_0x2cd98c[_0x2e96e1+0x1];_0x4310db||(_0x4310db=_0x37345f['createPositionBefore'](_0x3e590e)),co(_0x37345f,_0x3e590e,_0x83275)||(_0x55e3f2['push'](_0x37345f['createRange'](_0x4310db,_0x5e8d08['isObject'](_0x3e590e)?_0x37345f['createPositionAfter'](_0x3e590e):_0x37345f['createPositionAt'](_0x3e590e,'end'))),_0x4310db=null),_0x2e96e1++;}return _0x55e3f2;}function co(_0x2f58c4,_0x3d954a,_0x28647c){if(!_0x28647c)return!0x1;const _0x3cb1d6=_0x2f58c4['createPositionAfter'](_0x3d954a),_0x5b11ca=_0x2f58c4['createPositionBefore'](_0x28647c);return _0x3cb1d6['isTouching'](_0x5b11ca);}function rs(_0x9763cd,_0x58fb96,_0x4e7e29){for(;_0x4e7e29['length'];){const _0x5fbd79=_0x4e7e29['splice'](0x0,0x64);_0x9763cd['change'](()=>{for(const _0x1cb44c of _0x5fbd79)_0x1cb44c['isInContent']&&_0x58fb96['execute'](_0x1cb44c['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0xac479a,_0x45ef0c,_0xafcff1){super(_0xac479a),this['_command']=_0x45ef0c,this['_suggestions']=_0xafcff1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x148fbd=Array['from'](this['_suggestions']['values']())['some'](_0x213636=>_0x213636['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x148fbd;}['execute'](){const _0x46f9cd=ss(Array['from'](this['_suggestions']['values']()));for(const _0x38b023 of _0x46f9cd){const _0x1f024c=_0x38b023['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1f024c))return;}rs(this['editor']['model'],this['_command'],_0x46f9cd);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5ed96b,_0x39d921,_0x5923bb){super(_0x5ed96b),this['_command']=_0x39d921,this['_suggestions']=_0x5923bb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xade4db=this['editor']['model']['document']['selection'],_0x143ef6=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x180074,_0x2856fb){const _0x591c02=Array['from'](_0x180074['getRanges']()),_0x3cee45=new Set();for(const _0x3b70e0 of _0x2856fb)if(_0x3b70e0['isInContent']){for(const _0x41b533 of _0x591c02)for(const _0x134575 of _0x3b70e0['getRanges']())(_0x41b533['isIntersecting'](_0x134575)||_0x180074['isCollapsed']&&!_0x3b70e0['isMultiRange']&&_0x3b70e0['next']&&_0x134575['end']['isTouching'](_0x41b533['start']))&&_0x3cee45['add'](_0x3b70e0);}return _0x3cee45;}(_0xade4db,_0x143ef6),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x571778=ss(Array['from'](this['_selectedSuggestions']));for(const _0x55883d of _0x571778){const _0x982c7a=_0x55883d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x982c7a))return;}rs(this['editor']['model'],this['_command'],_0x571778);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x511707(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x31a7c0,_0x12f2bf){super(),this['id']=_0x12f2bf['id'],this['type']=_0x12f2bf['type'],this['subType']=_0x12f2bf['subType']||null,this['author']=_0x12f2bf['author'],this['creator']=_0x12f2bf['creator']||_0x12f2bf['author'],this['isExternal']=Boolean(_0x12f2bf['attributes']&&_0x12f2bf['attributes']['@external']),this['data']=null,this['_model']=_0x31a7c0,this['_onAccept']=_0x12f2bf['onAccept'],this['_onDiscard']=_0x12f2bf['onDiscard'],this['_onAttributesChange']=_0x12f2bf['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x12f2bf['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 _0x398b06=this;for(;_0x398b06['previous'];)_0x398b06=_0x398b06['previous'];return _0x398b06;}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'](_0x53bc8f){this['_markerNames']['add'](_0x53bc8f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x466cb1=>this['_model']['markers']['get'](_0x466cb1))['filter'](_0x5ad094=>_0x5ad094);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x286b38=>{for(const _0x422a4d of this['getMarkers']())_0x286b38['removeMarker'](_0x422a4d);}),this['_markerNames']['clear']();}['removeMarker'](_0x320627){this['_model']['change'](_0x21a9cf=>{_0x21a9cf['removeMarker'](_0x320627);}),this['_markerNames']['delete'](_0x320627);}['addRange'](_0x26ff78){const _0x35d5fc='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x35d5fc),this['_model']['change'](_0x311ece=>{_0x311ece['addMarker'](_0x35d5fc,{'range':_0x26ff78,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x11fa25){for(const _0x27d57b of this['getRanges']())if(_0x27d57b['isIntersecting'](_0x11fa25))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1b7efb=>_0x1b7efb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2bd4ff,_0x26c42d)=>[..._0x2bd4ff,..._0x26c42d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x33db1e=this['getRanges']();if(0x1!=_0x33db1e['length'])return null;const _0x3f7fac=_0x33db1e[0x0],_0x5c1a31=_0x3f7fac['start']['nodeAfter'],_0x508abe=_0x3f7fac['end']['nodeBefore'];return _0x5c1a31 instanceof _0x3aa03a?_0x5c1a31!=_0x508abe?null:_0x5c1a31: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 _0x1bb2ec=[];let _0x2f9082=this['head'];for(;_0x2f9082;)_0x1bb2ec['push'](_0x2f9082),_0x2f9082=_0x2f9082['next'];return _0x1bb2ec;}['setAttribute'](_0x2db040,_0x1edc7c){const _0x5280e7=_0x129508(this['attributes']);_0xbec47(_0x5280e7,_0x2db040,_0x1edc7c),_0x260467(_0x5280e7,this['attributes'])||(this['attributes']=_0x5280e7,this['_onAttributesChange'](_0x5280e7));}['removeAttribute'](_0x113f73){const _0x459f5e=_0x129508(this['attributes']);_0x276a4d(_0x459f5e,_0x113f73),_0x260467(_0x459f5e,this['attributes'])||(this['attributes']=_0x459f5e,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 _0x497177()['substr'](0x1,0x5);}}function o(_0x112b42,_0x521da8,_0x24c27c){const t=_0x112b42['t'];switch(_0x521da8){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',_0x24c27c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x24c27c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x24c27c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x24c27c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x24c27c);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',_0x24c27c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x24c27c);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',_0x24c27c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x24c27c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x24c27c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x24c27c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x24c27c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x24c27c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x24c27c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x24c27c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x24c27c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x24c27c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x24c27c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x24c27c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x24c27c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x24c27c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x24c27c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x24c27c);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'},_0x24c27c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x24c27c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x24c27c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x24c27c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x24c27c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x24c27c);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'},_0x24c27c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x24c27c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x24c27c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x24c27c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x24c27c);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'},_0x24c27c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x24c27c);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'},_0x24c27c);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'},_0x24c27c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x24c27c);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'},_0x24c27c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x24c27c);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'},_0x24c27c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x24c27c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x24c27c);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'},_0x24c27c);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'},_0x24c27c);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 _0x521da8;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x22ea2e,_0x239ee5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x22ea2e,this['_locale']=_0x239ee5;}['getDescriptions'](_0x15c72f){const _0x4a6bae=[],_0x18a28e=new Set(),_0x3adab3=new Set();for(let _0x2893c2=0x0;_0x2893c2<_0x15c72f['length'];_0x2893c2++){const _0x4ed0a1=_0x15c72f[_0x2893c2];if(!_0x4ed0a1['isInContent'])continue;const _0x5fc0cb=this['_handleCustomCallbackDescription'](_0x4ed0a1);if(_0x5fc0cb){if(null!=_0x4ed0a1['subType']){if(_0x18a28e['has'](_0x4ed0a1['subType']))continue;_0x18a28e['add'](_0x4ed0a1['subType']);}_0x4a6bae['push'](_0x5fc0cb);}else{if('attribute'!=_0x4ed0a1['type'])'insertion'!=_0x4ed0a1['type']&&'deletion'!=_0x4ed0a1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4a6bae,_0x4ed0a1,_0x15c72f[_0x2893c2+0x1]);else{const _0x6aee01=_0x4ed0a1['data']['key'];if(_0x3adab3['has'](_0x6aee01))continue;_0x3adab3['add'](_0x4ed0a1['data']['key']),_0x6aee01==m?this['_handleRenameSuggestionDescription'](_0x4a6bae,_0x4ed0a1):this['_handleAttributeSuggestionDescription'](_0x4a6bae,_0x4ed0a1);}}}return this['_resolveDescriptionItems'](_0x4a6bae);}['registerDescriptionCallback'](_0x28464b){this['_customCallbacks']['push'](_0x28464b);}['registerElementLabel'](_0x4a8241,_0x2d0245,_0x1c37ae=_0x244548['normal']){'function'==typeof _0x4a8241?_0x55dca7(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4a8241,'label':_0x2d0245,'priority':_0x1c37ae}):this['_itemLabels']['set'](_0x4a8241,_0x2d0245);}['registerAttributeLabel'](_0x59d627,_0x11921e){this['_attributeLabels']['set'](_0x59d627,_0x11921e);}['getItemLabel'](_0x30ee98,_0x1f2ed5=0x1){let _0x3f2848;for(const _0x123d2d of this['_itemLabelsCallbacks'])if(_0x123d2d['matchingCallback'](_0x30ee98)){_0x3f2848=_0x123d2d['label'];break;}return _0x3f2848||(_0x3f2848=this['_itemLabels']['get'](_0x30ee98['name'])),_0x3f2848?_0x3f2848(_0x1f2ed5):0x1!==_0x1f2ed5?_0x1f2ed5+'\x20'+_0x30ee98['name']+'s':''+_0x30ee98['name'];}['_addDescriptionItems'](_0x24d222,_0x14eb51){const _0x402c2e=_0x14eb51['getFirstRange']()['getWalker'](),_0x385b20='insertion'==_0x14eb51['type']?'add':'remove';for(const _0x5c2a0a of _0x402c2e){const _0x345532=_0x5c2a0a['item'],_0x4d9e9e=_0x24d222[_0x24d222['length']-0x1];if(_0x345532['is']('$textProxy'))_0x4d9e9e&&_0x4d9e9e['type']['indexOf']('Container')>-0x1&&_0x24d222['pop'](),_0x4d9e9e&&'text'==_0x4d9e9e['type']?_0x4d9e9e[_0x385b20]+=_0x345532['data']:_0x24d222['push']({'type':'text','add':'add'==_0x385b20?_0x345532['data']:'','remove':'remove'==_0x385b20?_0x345532['data']:''});else{if(this['_schema']['isObject'](_0x345532)){const _0x19bf90=_0x345532;if(_0x4d9e9e&&_0x4d9e9e['type']['indexOf']('Container')>-0x1&&_0x24d222['pop'](),'elementEnd'==_0x5c2a0a['type'])continue;_0x4d9e9e&&_0x4d9e9e['type']==_0x385b20+'Object'&&_0x4d9e9e['element']['name']==_0x19bf90['name']?_0x4d9e9e['quantity']++:_0x24d222['push']({'type':_0x385b20+'Object','element':_0x19bf90,'quantity':0x1}),_0x402c2e['skip'](_0x1d0f53=>!('elementEnd'==_0x1d0f53['type']&&_0x1d0f53['item']==_0x345532));}else{if(this['_schema']['checkChild'](_0x345532,'$text')||_0x345532['is']('element','softBreak')){const _0x41e93b=_0x345532;if('add'==_0x385b20&&'elementStart'==_0x5c2a0a['type']||'remove'==_0x385b20&&'elementEnd'==_0x5c2a0a['type'])continue;if(_0x4d9e9e&&-0x1==_0x4d9e9e['type']['indexOf']('Container')){'text'==_0x4d9e9e['type']&&(_0x4d9e9e[_0x385b20]+='\x0a');continue;}let _0x3a7a1b;if(_0x3a7a1b='add'==_0x385b20?_0x41e93b['nextSibling']&&!this['_schema']['isObject'](_0x41e93b['nextSibling'])?_0x41e93b['nextSibling']:null:_0x41e93b['previousSibling']&&!this['_schema']['isObject'](_0x41e93b['previousSibling'])?_0x41e93b['previousSibling']:null,_0x41e93b['isEmpty']||_0x3a7a1b&&_0x3a7a1b['isEmpty']){const _0x5bc424=_0x3a7a1b&&_0x3a7a1b['isEmpty']?_0x3a7a1b:_0x41e93b;_0x4d9e9e&&_0x4d9e9e['type']==_0x385b20+'EmptyContainer'&&_0x4d9e9e['element']['name']==_0x5bc424['name']?_0x4d9e9e['quantity']++:_0x24d222['push']({'type':_0x385b20+'EmptyContainer','element':_0x5bc424,'quantity':0x1});}else _0x24d222['push']({'type':_0x385b20+'Container','element':_0x41e93b});}}}}}['_resolveDescriptionItems'](_0x282cff){const _0x18b6d3=this['_locale'],_0x174051=[],_0x1aba94=[],_0x4ba9d0=[];for(const _0x400ff1 of _0x282cff)switch(_0x400ff1['type']){case'text':if(_0x400ff1['add']=_0x400ff1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x400ff1['remove']=_0x400ff1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x400ff1['add']&&''!=_0x400ff1['remove']){_0x174051['push']({'type':'replace','content':o(_0x18b6d3,'REPLACE_TEXT',['\x22'+_0x400ff1['remove']+'\x22','\x22'+_0x400ff1['add']+'\x22'])});continue;}if(null!=_0x400ff1['add']['match'](/^ +$/)){_0x174051['push']({'type':'insertion','content':o(_0x18b6d3,'*Insert:*\x20%0',o(_0x18b6d3,'ELEMENT_SPACE',_0x400ff1['add']['length']))});continue;}if(null!=_0x400ff1['remove']['match'](/^ +$/)){_0x174051['push']({'type':'deletion','content':o(_0x18b6d3,'*Remove:*\x20%0',o(_0x18b6d3,'ELEMENT_SPACE',_0x400ff1['remove']['length']))});continue;}if(''!=_0x400ff1['add']){_0x174051['push']({'type':'insertion','content':o(_0x18b6d3,'*Insert:*\x20%0','\x22'+_0x400ff1['add']+'\x22')});continue;}_0x174051['push']({'type':'deletion','content':o(_0x18b6d3,'*Remove:*\x20%0','\x22'+_0x400ff1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x174051['push']({'type':'insertion','content':o(_0x18b6d3,'*Insert:*\x20%0',this['getItemLabel'](_0x400ff1['element'],_0x400ff1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x174051['push']({'type':'deletion','content':o(_0x18b6d3,'*Remove:*\x20%0',this['getItemLabel'](_0x400ff1['element'],_0x400ff1['quantity']))});continue;case'addContainer':_0x174051['push']({'type':'insertion','content':o(_0x18b6d3,'*Split:*\x20%0',this['getItemLabel'](_0x400ff1['element'],_0x400ff1['quantity']))});continue;case'removeContainer':_0x174051['push']({'type':'deletion','content':o(_0x18b6d3,'*Merge:*\x20%0',this['getItemLabel'](_0x400ff1['element'],_0x400ff1['quantity']))});continue;case'addFormat':_0x1aba94['push'](_0x400ff1['key']);continue;case'removeFormat':_0x4ba9d0['push'](_0x400ff1['key']);continue;default:_0x174051['push'](_0x400ff1);}if(_0x1aba94['length']){const _0x20e320=_0x1aba94['map'](_0x1e3b4f=>this['_attributeLabels']['has'](_0x1e3b4f)?this['_attributeLabels']['get'](_0x1e3b4f):_0x1e3b4f)['join'](',\x20');_0x174051['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x20e320)});}if(_0x4ba9d0['length']){const _0x254a62=_0x4ba9d0['map'](_0x21ef45=>this['_attributeLabels']['has'](_0x21ef45)?this['_attributeLabels']['get'](_0x21ef45):_0x21ef45)['join'](',\x20');_0x174051['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x254a62)});}return _0x174051;}['_handleCustomCallbackDescription'](_0x616727){for(const _0x23c802 of this['_customCallbacks']){const _0x464593=_0x23c802(_0x616727);if(_0x464593&&'type'in _0x464593)return _0x464593;}}['_handleAttributeSuggestionDescription'](_0x5d52cd,_0xdce194){const _0x294c40=_0xdce194['data'],_0xc78441=void 0x0===_0x294c40['newValue']?'removeFormat':'addFormat';_0x5d52cd['push']({'type':_0xc78441,'key':_0x294c40['key']});}['_handleRenameSuggestionDescription'](_0x5517f3,_0x6b0c2f){_0x5517f3['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x6b0c2f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x194ec5,_0x2bbe5c,_0x24eeb1){if(this['_addDescriptionItems'](_0x194ec5,_0x2bbe5c),_0x24eeb1&&_0x24eeb1['getFirstRange']()&&!_0x2bbe5c['getFirstRange']()['end']['isEqual'](_0x24eeb1['getFirstRange']()['start'])){const _0x5af99d=_0x194ec5[_0x194ec5['length']-0x1],_0x30cd92='insertion'==_0x2bbe5c['type']?'add':'remove';_0x5af99d&&'text'==_0x5af99d['type']&&(_0x5af99d[_0x30cd92]+='\x0a');}}}class E extends _0x1dc395{['afterInit'](){const _0x42d222=this['editor'],_0x543137=_0x42d222['plugins']['get']('TrackChangesEditing');_0x42d222['commands']['get']('showAIAssistant')&&_0x543137['enableCommand']('showAIAssistant');}}class V extends _0x1dc395{['afterInit'](){const _0x3d9136=this['editor'],_0x51f5b9=_0x3d9136['locale'];if(!_0x3d9136['plugins']['has']('AlignmentEditing'))return;const _0x4a26b1=_0x3d9136['plugins']['get']('TrackChangesEditing');_0x4a26b1['enableDefaultAttributesIntegration']('alignment'),_0x4a26b1['registerBlockAttribute']('alignment'),_0x4a26b1['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x51f5b9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ae7d6=this['editor'],_0x3dd16f=_0x4ae7d6['locale'];_0x4ae7d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d2203=>{if('formatBlock'!=_0x3d2203['type'])return;const {data:_0x3766fc}=_0x3d2203;if(_0x3766fc&&'alignment'==_0x3766fc['commandName']){const _0x84c3d4=_0x3766fc['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3dd16f,'*Format:*\x20%0',function(_0x3401a4){switch(_0x3401a4){case'left':return o(_0x3dd16f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3dd16f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3dd16f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3dd16f,'FORMAT_JUSTIFY_TEXT');}}(_0x84c3d4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1dc395{['afterInit'](){const _0x210650=this['editor'],_0x288b7f=_0x210650['plugins']['get']('TrackChangesEditing'),_0x2b2ccc=_0x210650['locale'];for(const _0x4a42dd of ti){if(!_0x210650['plugins']['has'](_0x4a42dd))continue;const _0x3337e3=_0x4a42dd['slice'](0x0,-0x7)['toLowerCase'](),_0x1b7f20='FORMAT_'+_0x3337e3['toUpperCase']();_0x288b7f['enableDefaultAttributesIntegration'](_0x3337e3),_0x288b7f['registerInlineAttribute'](_0x3337e3),_0x288b7f['descriptionFactory']['registerAttributeLabel'](_0x3337e3,o(_0x2b2ccc,_0x1b7f20));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcf90d7=this['editor'],_0x3154b4=_0xcf90d7['locale'],_0x9e056b=_0xcf90d7['plugins']['get']('TrackChangesEditing');function _0x435aa7(_0x45e6c7,_0xe8a12c){_0x9e056b['descriptionFactory']['registerDescriptionCallback'](_0x178360=>{if('formatInline'!=_0x178360['type'])return;const {data:_0x9dd1c0}=_0x178360;return _0x9dd1c0&&_0x9dd1c0['commandName']===_0x45e6c7?_0x9dd1c0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3154b4,'*Format:*\x20%0',_0xe8a12c)}:{'type':'format','content':o(_0x3154b4,'*Remove\x20format:*\x20%0',_0xe8a12c)}:void 0x0;});}_0x435aa7('bold',o(_0x3154b4,'FORMAT_BOLD')),_0x435aa7('italic',o(_0x3154b4,'FORMAT_ITALIC')),_0x435aa7('underline',o(_0x3154b4,'FORMAT_UNDERLINE')),_0x435aa7('code',o(_0x3154b4,'FORMAT_CODE')),_0x435aa7('strikethrough',o(_0x3154b4,'FORMAT_STRIKETHROUGH')),_0x435aa7('subscript',o(_0x3154b4,'FORMAT_SUBSCRIPT')),_0x435aa7('superscript',o(_0x3154b4,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1dc395{['afterInit'](){const _0xef3307=this['editor'],_0xb86df6=_0xef3307['locale'];if(!_0xef3307['plugins']['has']('BlockQuoteEditing'))return;const _0x5814f1=_0xef3307['plugins']['get']('TrackChangesEditing'),_0x38c6c0=this['editor']['commands']['get']('blockQuote');_0x5814f1['enableCommand']('blockQuote',(_0x5dfa44,_0x37c0f={})=>{const _0x21fa9e=this['editor']['model']['document']['selection'],_0x50ae3f=_0x37c0f&&void 0x0!==_0x37c0f['forceValue']?_0x37c0f['forceValue']:!_0x38c6c0['value'];let _0x520c20=[];if(_0x50ae3f){const _0x38874b=Array['from'](_0x21fa9e['getSelectedBlocks']())['filter'](_0x41c122=>oo(_0x41c122)||function(_0x586454,_0x2a2b5d){const _0x31547a=_0x2a2b5d['checkChild'](_0x586454['parent'],'blockQuote'),_0xa04d01=_0x2a2b5d['checkChild'](['$root','blockQuote'],_0x586454);return _0x31547a&&_0xa04d01;}(_0x41c122,this['editor']['model']['schema']));_0x520c20=to(_0x38874b,_0xef3307['model']);}else{const _0x30baea=Array['from'](_0x21fa9e['getSelectedBlocks']())['filter'](_0x2d26df=>oo(_0x2d26df));_0x520c20=to(_0x30baea,_0xef3307['model']);}_0xef3307['model']['change'](()=>{for(const _0x43fdaf of _0x520c20)_0x5814f1['markBlockFormat'](_0x43fdaf,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x50ae3f}]});});}),_0x5814f1['descriptionFactory']['registerDescriptionCallback'](_0x4bb417=>{const {data:_0x2e7c2a}=_0x4bb417;if(_0x2e7c2a&&'blockQuote'==_0x2e7c2a['commandName']){const _0x2e733e=o(_0xb86df6,'ELEMENT_BLOCK_QUOTE');return _0x2e7c2a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb86df6,'*Set\x20format:*\x20%0',_0x2e733e)}:{'type':'format','content':o(_0xb86df6,'*Remove\x20format:*\x20%0',_0x2e733e)};}});}}function oo(_0x5b1a72){return'blockQuote'==_0x5b1a72['parent']['name'];}class G extends _0x1dc395{['afterInit'](){const _0x1b6985=this['editor'];_0x1b6985['plugins']['has']('CaseChange')&&(_0x1b6985['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1b6985['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1b6985['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1dc395{['afterInit'](){const _0x5e088a=this['editor'];_0x5e088a['commands']['get']('ckbox')&&_0x5e088a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1dc395{['afterInit'](){const _0x6bdd05=this['editor'];if(!_0x6bdd05['plugins']['has']('CodeBlock'))return;const _0x5ea30c=_0x6bdd05['plugins']['get']('TrackChangesEditing'),_0x2a0ee3=_0x6bdd05['locale'],_0x2243c4=_0x6bdd05['config']['get']('codeBlock')['languages'],_0x4d6fd0=_0x6bdd05['commands']['get']('codeBlock');_0x5ea30c['enableCommand']('indentCodeBlock'),_0x5ea30c['enableCommand']('outdentCodeBlock'),_0x5ea30c['enableCommand']('codeBlock',(_0x28ca17,_0x273f21={})=>{const _0x5fd3c8=_0x6bdd05['model'],_0x17ac18=_0x6bdd05['model']['document']['selection'],_0x23f531=_0x273f21&&void 0x0!==_0x273f21['forceValue']?_0x273f21['forceValue']:!_0x4d6fd0['value'];let _0x2b22ce;_0x273f21['language']||(_0x273f21['language']=_0x2243c4[0x0]['language']),_0x2b22ce=_0x23f531?Array['from'](_0x17ac18['getSelectedBlocks']())['filter'](_0x102510=>eo(_0x102510)||function(_0x427d5f,_0x22f3f7){if(_0x427d5f['is']('rootElement')||_0x22f3f7['isLimit'](_0x427d5f))return!0x1;return _0x22f3f7['checkChild'](_0x427d5f['parent'],'codeBlock');}(_0x102510,_0x5fd3c8['schema'])):Array['from'](_0x17ac18['getSelectedBlocks']())['filter'](_0xe64e75=>eo(_0xe64e75));const _0x57471e=to(_0x2b22ce,_0x5fd3c8);_0x5fd3c8['change'](()=>{for(const _0x3e8968 of _0x57471e)_0x5ea30c['markBlockFormat'](_0x3e8968,{'commandName':'codeBlock','commandParams':[{..._0x273f21,'forceValue':_0x23f531}],'formatGroupId':'blockName'});});}),(_0x5ea30c['descriptionFactory']['registerElementLabel']('codeBlock',_0x1086bf=>o(_0x2a0ee3,'ELEMENT_CODE_BLOCK',_0x1086bf)),_0x5ea30c['descriptionFactory']['registerDescriptionCallback'](_0x54047d=>{if('formatBlock'!=_0x54047d['type'])return;const _0x37cd2b=_0x2a0ee3['t'],{data:_0x11b394}=_0x54047d;if(!_0x11b394||'codeBlock'!=_0x11b394['commandName'])return;const _0x2e7c20=_0x11b394['commandParams'][0x0]['language'],_0x3a1d4a=_0x37cd2b(_0x2243c4['find'](_0x4a8090=>_0x4a8090['language']===_0x2e7c20)['label'])['toLowerCase']();return _0x11b394['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a0ee3,'*Set\x20format:*\x20%0',o(_0x2a0ee3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3a1d4a+')')}:{'type':'format','content':o(_0x2a0ee3,'*Remove\x20format:*\x20%0',o(_0x2a0ee3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xeeec06){return'codeBlock'==_0xeeec06['name'];}class H extends _0x1dc395{['afterInit'](){const _0x597f89=this['editor'];if(!_0x597f89['plugins']['has']('CommentsEditing'))return;_0x597f89['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4d4db3,_0x36fc40,_0x10b0e0){const _0x5bad8d=[];for(const _0x64d0 of _0x36fc40['getItems']())_0x64d0['hasAttribute'](_0x4d4db3)&&_0x5bad8d['push'](_0x10b0e0['createRangeOn'](_0x64d0));return _0x5bad8d;}function _e(_0x3681a0,_0x9fbbb1,{showActiveMarker:_0x2bd2f7=!0x0}={}){const _0x1983a0=_0x3681a0['plugins']['get']('TrackChangesEditing');return(_0x5ade11,_0x2c7526,_0x4201f3)=>{if(!_0x4201f3['consumable']['test'](_0x2c7526['markerRange'],_0x5ade11['name']))return;const _0x413d9a=_0x2c7526['markerRange']['getWalker'](),_0x4a8787=_0x2c7526['markerRange']['start'],_0x5374f0=_0x3681a0['model']['schema'];let _0x195908=null,_0x1cada3=null,_0x12a0d6=!0x1,_0x52fdfc=!0x1;for(const _0xbe86f0 of _0x413d9a){const _0x508cc7=_0xbe86f0['item'];_0x12a0d6=_0x12a0d6||_0x5374f0['isContent'](_0x508cc7);const _0x164137=_0x4201f3['mapper']['toViewElement'](_0x508cc7);if(_0x164137&&_0x164137['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xbe86f0['type']&&(_0x5374f0['isBlock'](_0x508cc7)&&!_0x5374f0['isLimit'](_0x508cc7)&&(_0x508cc7['nextSibling']||_0x4a8787['isAtEnd']?_0x195908&&_0x195908['parent']==_0x508cc7||(_0x195908=_0x508cc7,_0x2011b3(_0xbe86f0['previousPosition']),_0x52fdfc=!0x0):_0x1cada3=_0x1cada3||_0xbe86f0['previousPosition']));}function _0x2011b3(_0x4c3a2a){const _0x3c6305=_0x4201f3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x9fbbb1}),_0x26625f=_0x4201f3['mapper']['toViewPosition'](_0x4c3a2a);_0x2bd2f7&&_0x1983a0['activeMarkers']['includes'](_0x2c7526['markerName'])&&_0x4201f3['writer']['addClass']('ck-suggestion-marker--active',_0x3c6305),_0x4201f3['writer']['insert'](_0x26625f,_0x3c6305),_0x4201f3['mapper']['bindElementToMarker'](_0x3c6305,_0x2c7526['markerName']);}_0x12a0d6||_0x52fdfc||!_0x1cada3||_0x2011b3(_0x1cada3);};}class q extends _0x1dc395{static get['requires'](){return[_0x12412c];}['init'](){const _0x3f1833=this['editor'],_0x5a3120=_0x3f1833['plugins']['get']('TrackChangesEditing');_0x5a3120['enableCommand']('delete');const _0xb31807=_0x3f1833['commands']['get']('deleteForward');_0x5a3120['enableCommand']('deleteForward',(_0x5bd7af,_0x23ae98={})=>{const _0x18ff38=_0x3f1833['model']['createSelection'](_0x3f1833['model']['document']['selection']);_0x18ff38['isCollapsed']&&_0x3f1833['model']['modifySelection'](_0x18ff38,{'direction':'forward','unit':_0x23ae98['unit']});const _0x300af3=_0x18ff38['getFirstRange'](),_0x4dc656=_0x5e8b6d['fromRange'](_0x300af3);let _0x282bbb;_0x5bd7af(_0x23ae98),_0x282bbb='$graveyard'==_0x4dc656['root']['rootName']?_0x3f1833['model']['createRange'](_0x300af3['start']):_0x3f1833['model']['createRange'](_0x4dc656['start'],_0x4dc656['end']),_0x4dc656['detach'](),_0x3f1833['model']['enqueueChange'](_0xb31807['buffer']['batch'],_0x583af3=>{_0xb31807['buffer']['lock'](),_0x583af3['setSelection'](_0x583af3['createRange'](_0x282bbb['end'])),_0xb31807['buffer']['unlock']();});}),_0x3f1833['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3f1833,'merge'),{'priority':'high'}),_0x3f1833['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1fe406,_0x1d97c6,_0x23a16f)=>{_0x23a16f['options']['showSuggestionHighlights']&&_e(_0x3f1833,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1fe406,_0x1d97c6,_0x23a16f);},{'priority':'high'}),_0x3f1833['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3f15ff,_0x567da5,_0x3b6755)=>{const _0x316ab2=_0x3b6755['mapper']['markerNameToElements'](_0x567da5['markerName']);if(_0x316ab2){for(const _0x21ddda of _0x316ab2)_0x21ddda['is']('uiElement')&&(_0x3b6755['mapper']['unbindElementFromMarkerName'](_0x21ddda,_0x567da5['markerName']),_0x3b6755['writer']['remove'](_0x21ddda));}},{'priority':'high'});}}class z extends _0x1dc395{['afterInit'](){const _0x471cae=this['editor'];if(!_0x471cae['plugins']['has']('ListEditing'))return;const _0x283219=_0x471cae['locale'],_0x55aec6=_0x471cae['plugins']['get']('TrackChangesEditing'),_0x286ae4=_0x471cae['plugins']['has']('TodoListEditing'),_0x187a3b=!!_0x471cae['config']['get']('list.multiBlock');function _0x1a28cb(_0x22051d){return{'type':'format','content':''+o(_0x283219,'*Set\x20format:*\x20%0',_0x22051d)};}function _0x177090(_0x1aa3ac){return{'type':'format','content':''+o(_0x283219,'*Remove\x20format:*\x20%0',_0x1aa3ac)};}_0x55aec6['enableDefaultAttributesIntegration']('numberedList'),_0x55aec6['enableDefaultAttributesIntegration']('bulletedList'),_0x55aec6['enableDefaultAttributesIntegration']('customNumberedList'),_0x55aec6['enableDefaultAttributesIntegration']('customBulletedList'),_0x55aec6['enableDefaultAttributesIntegration']('indentList'),_0x55aec6['enableDefaultAttributesIntegration']('outdentList'),_0x55aec6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x55aec6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x55aec6['registerBlockAttribute']('listItemId'),_0x55aec6['registerBlockAttribute']('listType'),_0x55aec6['registerBlockAttribute']('listIndent'),_0x187a3b&&(_0x55aec6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x55aec6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x286ae4&&(_0x55aec6['enableDefaultAttributesIntegration']('todoList'),_0x55aec6['enableDefaultAttributesIntegration']('checkTodoList'),_0x55aec6['registerBlockAttribute']('todoListChecked'),_0x55aec6['descriptionFactory']['registerDescriptionCallback'](_0x2d3f07=>{const {data:_0x2ef5c9}=_0x2d3f07;if(_0x2ef5c9&&'todoListChecked'==_0x2ef5c9['key'])return{'type':'format','content':_0x2ef5c9['newValue']?o(_0x283219,'*Check\x20item*'):o(_0x283219,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x587785=>{if(_0x587785['batch']['isUndo'])return!0x1;let _0xedd77e=!0x1;const _0x4916a5=_0x55aec6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x269754=>'todoListChecked'===_0x55aec6['_getAttributeKey'](_0x269754));for(const _0x5609d3 of _0x4916a5){'todo'!=_0x5609d3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x55aec6['_findSuggestions'](_0x5609d3['getFirstRange'](),'attribute')['find'](_0x369e0d=>'listType'===_0x55aec6['_getAttributeKey'](_0x369e0d['suggestion']))||(_0x587785['removeMarker'](_0x5609d3['getFirstMarker']()),_0xedd77e=!0x0));}return _0xedd77e;})),_0x55aec6['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x283219,'FORMAT_INDENT'));const _0x8f22ec={'type':'format','content':''};_0x55aec6['descriptionFactory']['registerDescriptionCallback'](_0x499bb5=>{const {data:_0x3c24cf}=_0x499bb5;if(!_0x3c24cf||'listType'!=_0x3c24cf['key'])return;let _0x556d89=_0x499bb5['head'];for(;_0x556d89;){if(_0x556d89['data']&&(('listStyle'==_0x556d89['data']['key']||'listMarkerStyle'==_0x556d89['data']['key'])&&(_0x556d89['data']['newValue']&&'default'!=_0x556d89['data']['newValue']||'default'!=_0x556d89['data']['oldValue']&&!_0x3c24cf['newValue'])||!_0x187a3b&&_0x556d89['data']['key']==m))return _0x8f22ec;_0x556d89=_0x556d89['next'];}if(null==_0x3c24cf['newValue'])switch(_0x3c24cf['oldValue']){case'bulleted':return _0x177090(o(_0x283219,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x177090(o(_0x283219,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x177090(o(_0x283219,'ELEMENT_TODO_LIST'));}switch(_0x3c24cf['newValue']){case'bulleted':return _0x1a28cb(o(_0x283219,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a28cb(o(_0x283219,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a28cb(o(_0x283219,'ELEMENT_TODO_LIST'));}}),_0x55aec6['descriptionFactory']['registerDescriptionCallback'](_0xca6346=>{const {data:_0x480f29}=_0xca6346;if(_0x480f29&&'listIndent'==_0x480f29['key'])return null==_0x480f29['newValue']||null==_0x480f29['oldValue']&&0x0==_0x480f29['newValue']?_0x8f22ec:void 0x0;}),_0x55aec6['descriptionFactory']['registerDescriptionCallback'](_0x271b3e=>{if('attribute'!=_0x271b3e['type'])return;const {data:_0x70c9be}=_0x271b3e;if(!_0x70c9be||'listItemId'!=_0x70c9be['key'])return;const _0x4bd986=le(_0x271b3e);return'newValue'==_0x4bd986?{'type':'format','content':o(_0x283219,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4bd986?{'type':'format','content':o(_0x283219,'*Split:*\x20list\x20item')}:_0x8f22ec;}),_0x471cae['model']['document']['registerPostFixer'](_0xb2df3d=>this['listItemIdFixer'](_0xb2df3d)),_0x471cae['model']['document']['registerPostFixer'](_0x2d1604=>this['noTrackChangesFixer'](_0x2d1604)),_0x471cae['model']['document']['registerPostFixer'](_0x24c725=>this['assureChains'](_0x24c725)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x593a92){if(_0x593a92['batch']['isUndo']||!_0x593a92['batch']['isLocal'])return!0x1;let _0x156d31=!0x1;const _0x2b53a2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f2d4b=>_0x3f2d4b['data']&&'listItemId'==_0x3f2d4b['data']['key'])['filter'](_0x49d50c=>_0x49d50c['data']['newValue']&&_0x49d50c['data']['oldValue']);for(const _0x2cdf77 of _0x2b53a2)le(_0x2cdf77)||(_0x593a92['removeMarker'](_0x2cdf77['getFirstMarker']()),_0x156d31=!0x0);return _0x156d31;}['noTrackChangesFixer'](_0x5083d1){if(_0x5083d1['batch']['isUndo']||!_0x5083d1['batch']['isLocal'])return!0x1;const _0x490eb3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x490eb3['trackChangesCommand']['value'])return!0x1;let _0x5f0da9=!0x1;const _0x1eda48=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x50c391=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2b966f=>'attribute'==_0x2b966f['type'])['filter'](_0x42f261=>_0x1eda48['includes'](_0x42f261['attributeKey']));if(0x0==_0x50c391['length'])return _0x5f0da9;for(const _0x31f678 of _0x50c391){const _0x55530d=_0x490eb3['_findSuggestions'](_0x31f678['range'],'attribute')['filter'](_0x145b66=>!_0x145b66['meta']['isNextTo'])['map'](_0x227166=>_0x227166['suggestion'])['filter'](_0x51c7d3=>{const _0x409d3d=_0x490eb3['_getAttributeKey'](_0x51c7d3);return _0x1eda48['includes'](_0x409d3d);});if(_0x55530d['length']){for(const _0x4eff42 of _0x55530d)_0x5083d1['removeMarker'](_0x4eff42['getFirstMarker']());_0x5f0da9=!0x0;}}return _0x5f0da9;}['assureChains'](_0x1fdea9){if(_0x1fdea9['batch']['isUndo']||!_0x1fdea9['batch']['isLocal'])return!0x1;const _0x34b850=this['editor']['plugins']['get']('TrackChangesEditing');let _0xc2e515=!0x1;const _0x57671a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x2086cb of _0x34b850['getSuggestions']({'skipNotAttached':!0x0})){const _0x269075=_0x34b850['_findSuggestions'](_0x2086cb['getFirstRange'](),'attribute')['map'](_0x1c7177=>_0x1c7177['suggestion'])['filter'](_0x5344e5=>_0x5344e5['data']&&_0x57671a['includes'](_0x5344e5['data']['key']));if(!_0x269075['length'])continue;const _0x13b9fd=_0x269075[0x0]['head']['attributes']['groupId'];if(!_0x269075['every'](_0x2433e8=>_0x2433e8['attributes']['groupId']===_0x13b9fd)){for(const _0x1ddb1a of _0x269075)_0x115143(_0x1ddb1a,_0x13b9fd)&&(_0xc2e515=!0x0);}}return _0xc2e515;function _0x16530e(_0x4763ef,_0x3bddee){for(const _0x4f934a of _0x34b850['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3fcaee=>'attribute'==_0x3fcaee['type']&&_0x3fcaee['attributes']['groupId']==_0x4763ef))_0x4f934a['setAttribute']('groupId',_0x3bddee);}function _0x115143(_0x176da9,_0x416771){let _0x1c8ecb=_0x176da9['head'],_0x36ef7d=!0x1;for(;_0x1c8ecb;)_0x1c8ecb['attributes']['groupId']!=_0x416771&&(_0x16530e(_0x1c8ecb['attributes']['groupId'],_0x416771),_0x1c8ecb['setAttribute']('groupId',_0x416771),_0x36ef7d=!0x0),_0x1c8ecb=_0x1c8ecb['next'];return _0x36ef7d;}}['_supportLegacySuggestions'](){const _0x17f3a0=this['editor'],_0x4f66b0=_0x17f3a0['locale'],_0x3a7984=_0x17f3a0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3a7984['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x42d260,_0x3acca5){const _0x28ca9c=[];for(let _0x5e0aca of _0x42d260)_0x5e0aca['start']['nodeAfter']===_0x5e0aca['end']['parent']&&(_0x5e0aca=_0x17f3a0['model']['createRange'](_0x17f3a0['model']['createPositionAt'](_0x5e0aca['start']['nodeAfter'],0x0))),_0x28ca9c['push'](_0x5e0aca);_0x17f3a0['model']['change'](_0x546f9b=>{const _0x2e0387=_0x17f3a0['model']['document']['selection'],_0x5582a3=Array['from'](_0x2e0387['getRanges']())['map'](_0x48f938=>_0x5e8b6d['fromRange'](_0x48f938));_0x546f9b['setSelection'](_0x28ca9c),_0x17f3a0['commands']['get'](_0x3acca5['commandName'])['refresh'](),_0x3acca5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x17f3a0['execute'](_0x3acca5['commandName'],..._0x3acca5['commandParams']),_0x546f9b['setSelection'](_0x5582a3);for(const _0x5cb091 of _0x5582a3)_0x5cb091['detach']();});}),_0x3a7984['descriptionFactory']['registerElementLabel'](function(_0x351877){const _0x7a8643=!_0x17f3a0['model']['schema']['isObject'](_0x351877),_0x1877e9=_0x351877['previousSibling'],_0x20c739=_0x351877['nextSibling'],_0x32036e=_0x351877['getAttribute']('listItemId'),_0x346ea1=!_0x1877e9||_0x1877e9['getAttribute']('listItemId')!==_0x32036e,_0x544a63=!_0x20c739||_0x20c739['getAttribute']('listItemId')!==_0x32036e;return _0x7a8643&&Boolean(_0x32036e)&&_0x346ea1&&_0x544a63;},_0x1978e4=>o(_0x4f66b0,'ELEMENT_LIST_ITEM',_0x1978e4));}['_registerLegacyDescription'](){const _0xef0f3=this['editor'],_0x5ca2de=_0xef0f3['locale'];function _0x5cf5dc(_0xd35b0b){const _0x2cf84b=_0xef0f3['commands']['get']('bulletedList')['value'],_0x1c45f8=_0xef0f3['commands']['get']('numberedList')['value'];return'numberedList'===_0xd35b0b?_0x2cf84b:_0x1c45f8;}_0xef0f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1b318c){if('formatBlock'!=_0x1b318c['type'])return;const {data:_0x5dc2f2}=_0x1b318c;if(!_0x5dc2f2)return;let _0x5ad5a0,_0x2d5db6,_0x5b4110,_0x19b1fe;switch(_0x5dc2f2['commandName']){case'bulletedList':_0x5b4110=_0x5dc2f2['commandParams'][0x0]['forceValue'],_0x19b1fe=_0x5cf5dc(_0x5dc2f2['commandName']),_0x5ad5a0=_0x5b4110?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x19b1fe&&_0xef0f3['config']['get']('list.multiBlock')||(_0x5ad5a0='*Change\x20to:*\x20%0'),_0x2d5db6={'type':'format','content':o(_0x5ca2de,_0x5ad5a0,o(_0x5ca2de,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5b4110=_0x5dc2f2['commandParams'][0x0]['forceValue'],_0x19b1fe=_0x5cf5dc(_0x5dc2f2['commandName']),_0x5ad5a0=_0x5b4110?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x19b1fe&&_0xef0f3['config']['get']('list.multiBlock')||(_0x5ad5a0='*Change\x20to:*\x20%0'),_0x2d5db6={'type':'format','content':o(_0x5ca2de,_0x5ad5a0,o(_0x5ca2de,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5ad5a0='*Indent:*\x20%0',_0x2d5db6={'type':'format','content':o(_0x5ca2de,_0x5ad5a0,o(_0x5ca2de,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5ad5a0=function(_0x3d9a45){const _0x5e6720=_0x3d9a45['getFirstRange']();let _0xcf5f3a=_0x5e6720['start']['nodeAfter'];for(;_0xcf5f3a&&_0x5e6720['containsItem'](_0xcf5f3a);){if(_0xcf5f3a['getAttribute']('listIndent')>0x0)return!0x1;_0xcf5f3a=_0xcf5f3a['nextSibling'];}return!0x0;}(_0x1b318c)?o(_0x5ca2de,'*Format:*\x20remove\x20from\x20%0',o(_0x5ca2de,function(_0x33e256){return'ELEMENT_'+_0x33e256['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1b318c))):o(_0x5ca2de,'*Outdent:*\x20%0',o(_0x5ca2de,'ELEMENT_LIST_ITEM')),_0x2d5db6={'type':'format','content':_0x5ad5a0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5dc2f2['multipleBlocks']&&(_0x5ad5a0='*Merge:*\x20%0',_0x2d5db6={'type':'deletion','content':o(_0x5ca2de,_0x5ad5a0,o(_0x5ca2de,'ELEMENT_LIST_ITEM'))});}return _0x2d5db6;});}}function le(_0x51369d){let _0x4826f5=_0x51369d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4826f5;){const _0x77198=_0x4826f5['getAttribute']('listItemId');if(!_0x77198)return!0x1;if(_0x77198==_0x51369d['data']['newValue'])return'newValue';if(_0x77198==_0x51369d['data']['oldValue'])return'oldValue';_0x4826f5=_0x4826f5['previousSibling'];}return!0x1;}class ue extends _0x1dc395{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x13f388=this['editor']['config']['get']('list.properties'),_0x497656=this['editor']['plugins']['get']('TrackChangesEditing');_0x13f388['styles']&&(_0x497656['enableDefaultAttributesIntegration']('listStyle'),_0x497656['registerBlockAttribute']('listStyle')),_0x13f388['reversed']&&(_0x497656['enableDefaultAttributesIntegration']('listReversed'),_0x497656['registerBlockAttribute']('listReversed')),_0x13f388['startIndex']&&(_0x497656['enableDefaultAttributesIntegration']('listStart'),_0x497656['registerBlockAttribute']('listStart'));const _0x5823c1={'type':'format','content':''};_0x497656['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x582fd6=this['editor']['locale'];_0x497656['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x582fd6,'FORMAT_LIST_REVERSED')),_0x497656['descriptionFactory']['registerDescriptionCallback'](_0x289a29=>{const {data:_0x277418}=_0x289a29;if(_0x277418&&'listReversed'==_0x277418['key'])return null==_0x277418['newValue']||0x0==_0x277418['newValue']&&null==_0x277418['oldValue']?_0x5823c1:void 0x0;}),_0x497656['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x582fd6,'FORMAT_LIST_START')),_0x497656['descriptionFactory']['registerDescriptionCallback'](_0x2b6b82=>{const {data:_0x10c930}=_0x2b6b82;if(_0x10c930&&'listStart'==_0x10c930['key'])return null==_0x10c930['newValue']||0x1==_0x10c930['newValue']&&null==_0x10c930['oldValue']?_0x5823c1:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x108120=>{if(_0x108120['batch']['isUndo'])return!0x1;let _0x236e12=!0x1;const _0x92fb24=_0x497656['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x195516=>{const _0x25bf83=_0x497656['_getAttributeKey'](_0x195516);return'listStart'==_0x25bf83||'listReversed'==_0x25bf83;});for(const _0x16c050 of _0x92fb24){const _0x3a3bb4=_0x16c050['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3a3bb4||'customNumbered'==_0x3a3bb4)continue;_0x497656['_findSuggestions'](_0x16c050['getFirstRange'](),'attribute')['find'](_0xe8e516=>'listType'==_0x497656['_getAttributeKey'](_0xe8e516['suggestion']))||(_0x108120['removeMarker'](_0x16c050['getFirstMarker']()),_0x236e12=!0x0);}return _0x236e12;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1d4ba7){const _0x5d2275=this['editor']['locale'],{data:_0x24b154}=_0x1d4ba7,_0x2dfbd5={'type':'format','content':''};if(!_0x24b154||'listStyle'!=_0x24b154['key'])return;if(!_0x24b154['oldValue'])return'default'==_0x24b154['newValue']?_0x2dfbd5:{'type':'format','content':''+o(_0x5d2275,'*Set\x20format:*\x20%0',o(_0x5d2275,this['_getTranslationKeyForListStyle'](_0x24b154['newValue'])))};if(!_0x24b154['newValue']){if('default'==_0x24b154['oldValue'])return _0x2dfbd5;let _0x24efc4=_0x1d4ba7['head'];for(;_0x24efc4;){if(_0x24efc4['data']&&'listType'==_0x24efc4['data']['key']&&_0x24efc4['data']['newValue'])return _0x2dfbd5;_0x24efc4=_0x24efc4['next'];}return{'type':'format','content':''+o(_0x5d2275,'*Remove\x20format:*\x20%0',o(_0x5d2275,this['_getTranslationKeyForListStyle'](_0x24b154['oldValue'])))};}if('default'!=_0x24b154['newValue'])return{'type':'format','content':''+o(_0x5d2275,'*Set\x20format:*\x20%0',o(_0x5d2275,this['_getTranslationKeyForListStyle'](_0x24b154['newValue'])))};let _0x9bc2d4=_0x1d4ba7['head'];for(;_0x9bc2d4;){if(_0x9bc2d4['data']&&'listType'==_0x9bc2d4['data']['key']&&_0x9bc2d4['data']['newValue']&&_0x9bc2d4['data']['oldValue'])return _0x2dfbd5;_0x9bc2d4=_0x9bc2d4['next'];}return{'type':'format','content':o(_0x5d2275,'*Set\x20format:*\x20%0',o(_0x5d2275,'ELEMENT_'+_0x1d4ba7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x30abc6=this['editor'],_0x16916c=_0x30abc6['locale'];_0x30abc6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39781a=>{if('formatBlock'!=_0x39781a['type'])return;const {data:_0x1aa433}=_0x39781a;if(!_0x1aa433)return;let _0x25d649,_0x2ca966;switch(_0x1aa433['commandName']){case'listStyle':_0x25d649='*Change\x20to:*\x20%0',_0x2ca966={'type':'format','content':o(_0x16916c,_0x25d649,o(_0x16916c,this['_getTranslationKeyForListStyle'](_0x1aa433['commandParams'][0x0]['type'])))};break;case'listReversed':_0x25d649=_0x1aa433['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2ca966={'type':'format','content':o(_0x16916c,_0x25d649)};break;case'listStart':_0x25d649='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2ca966={'type':'format','content':o(_0x16916c,_0x25d649,_0x1aa433['commandParams'][0x0]['startIndex'])};}return _0x2ca966;});}['_getTranslationKeyForListStyle'](_0x346aa9){return'ELEMENT_'+function(_0x23a4a7){if(pe['includes'](_0x23a4a7))return'bulleted';if(ye['includes'](_0x23a4a7))return'numbered';return null;}(_0x346aa9)['toUpperCase']()+'_LIST_'+_0x346aa9['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1dc395{static get['requires'](){return[_0x46754e];}['init'](){const _0x5cb59b=this['editor'],_0x5423a4=_0x5cb59b['plugins']['get']('TrackChangesEditing'),_0x23de0e=_0x5cb59b['commands']['get']('enter');_0x5423a4['enableCommand']('enter',()=>{_0x5cb59b['model']['change'](_0x73d0d8=>{const _0x4f7f48=_0x5cb59b['model']['document']['selection'],_0x28026b=_0x4f7f48['getFirstPosition'](),_0x2de9ed=_0x5e8b6d['fromRange'](_0x4f7f48['getFirstRange']());if(_0x23de0e['enterBlock'](_0x73d0d8)){const _0x2dfcf3=_0x5cb59b['model']['createPositionAt'](_0x28026b['parent']['nextSibling'],0x0),_0x3430d0=_0x73d0d8['createRange'](_0x28026b,_0x2dfcf3);_0x5423a4['markInsertion'](_0x3430d0);}else _0x73d0d8['setSelection'](_0x73d0d8['createRange'](_0x2de9ed['end']));_0x2de9ed['detach'](),_0x23de0e['fire']('afterExecute',{'writer':_0x73d0d8});});}),_0x5cb59b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5cb59b,'split'),{'priority':'high'}),_0x5cb59b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x459f2b,_0x3f05b7,_0x32c48b)=>{const _0x1f56a1=_0x32c48b['mapper']['markerNameToElements'](_0x3f05b7['markerName']);if(_0x1f56a1){for(const _0x122317 of _0x1f56a1)_0x122317['hasClass']('ck-suggestion-marker-split')&&(_0x32c48b['mapper']['unbindElementFromMarkerName'](_0x122317,_0x3f05b7['markerName']),_0x32c48b['writer']['remove'](_0x122317));}},{'priority':'high'}),_0x5cb59b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x43d023,_0x2f975c,_0x5e7758)=>{_0x5e7758['options']['showSuggestionHighlights']&&_e(_0x5cb59b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x43d023,_0x2f975c,_0x5e7758);},{'priority':'high'});}}class J extends _0x1dc395{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5cc413=this['editor']['plugins']['get']('TrackChangesEditing');_0x5cc413['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5cc413['enableCommand']('findNext'),_0x5cc413['enableCommand']('findPrevious'),_0x5cc413['enableCommand']('replace'),_0x5cc413['enableCommand']('replaceAll');}['handleFindCommand'](_0x21ae09,_0x2b27fe,_0x52f427={}){const _0x2059f6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x21ae09(_0x31049a=>{let _0x4ff8d9=('string'==typeof _0x2b27fe?_0x2059f6['findByTextCallback'](_0x2b27fe,_0x52f427):_0x2b27fe)(_0x31049a);Array['isArray'](_0x4ff8d9)&&(_0x4ff8d9={'results':_0x4ff8d9,'searchText':'string'==typeof _0x2b27fe?_0x2b27fe:''});const _0x46efe6=_0x4ff8d9['results']['filter'](_0x3153b7=>!0x1===this['_isInDeletionRange'](_0x3153b7,_0x31049a['item']));return{..._0x4ff8d9,'results':_0x46efe6};},_0x52f427);}['_isInDeletionRange'](_0x1c132b,_0x15a7dd){const _0x23e41d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15a7dd,_0x1c132b['start']),this['editor']['model']['createPositionAt'](_0x15a7dd,_0x1c132b['end']));for(const _0x599d04 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x23e41d['getIntersection'](_0x599d04['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 _0x1dc395{['afterInit'](){const _0x101fbf=this['editor']['locale'],_0x136a69=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xf75fb7,commandName:_0x887a81}of ro)this['editor']['plugins']['has'](_0xf75fb7)&&(_0x136a69['enableDefaultAttributesIntegration'](_0x887a81),_0x136a69['registerInlineAttribute'](_0x887a81));_0x136a69['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x101fbf,'FORMAT_FONT_SIZE')),_0x136a69['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x101fbf,'FORMAT_FONT_FAMILY')),_0x136a69['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x101fbf,'FORMAT_FONT_COLOR')),_0x136a69['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x101fbf,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b8b70=this['editor'],_0x31d049=_0x1b8b70['locale'];_0x1b8b70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33d334=>{const _0x5e7aef=_0x31d049['t'];if('formatInline'!=_0x33d334['type'])return;const {data:_0x11c382}=_0x33d334;if(null!=_0x11c382){if('fontSize'==_0x11c382['commandName']){const _0x52c39c=_0x11c382['commandParams'][0x0]['value'];if(_0x52c39c){const _0x3525df=_0x5e7aef(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4f7b0c=>_0x4f7b0c['model']==_0x52c39c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x31d049,'*Set\x20font\x20size:*\x20%0',_0x3525df)};}return{'type':'format','content':o(_0x31d049,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x11c382['commandName']){const _0x14962b=_0x11c382['commandParams'][0x0]['value'];return _0x14962b?{'type':'format','content':o(_0x31d049,'*Set\x20font\x20family:*\x20%0',_0x14962b)}:{'type':'format','content':o(_0x31d049,'*Reset\x20font\x20family*')};}if('fontColor'==_0x11c382['commandName']){const _0xdf10a0=_0x11c382['commandParams'][0x0]['value'];if(_0xdf10a0){const _0x19e552=_0x41c95d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x500570=>_0x500570['model']==_0xdf10a0);let _0x1a663e=_0xdf10a0,_0x5a4d90='';return _0x19e552&&(_0x1a663e=_0x19e552['label'],_0x5a4d90=_0x5e7aef(_0x1a663e)['toLowerCase']()),{'type':'format','content':o(_0x31d049,'*Set\x20font\x20color:*\x20%0',_0x5a4d90)['trim'](),'color':{'value':_0xdf10a0,'title':_0x5a4d90||_0x1a663e}};}return{'type':'format','content':o(_0x31d049,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x11c382['commandName']){const _0x4b0ed3=_0x11c382['commandParams'][0x0]['value'];if(_0x4b0ed3){const _0x41c6c9=_0x41c95d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x328ea7=>_0x328ea7['model']==_0x4b0ed3);let _0x58ba2e=_0x4b0ed3,_0x1c128f='';return _0x41c6c9&&(_0x58ba2e=_0x41c6c9['label'],_0x1c128f=_0x5e7aef(_0x58ba2e)['toLowerCase']()),{'type':'format','content':o(_0x31d049,'*Set\x20font\x20background\x20color:*\x20%0',_0x1c128f)['trim'](),'color':{'value':_0x4b0ed3,'title':_0x1c128f||_0x58ba2e}};}return{'type':'format','content':o(_0x31d049,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1dc395{['afterInit'](){const _0x4e4d4b=this['editor'],_0x579e9e=_0x4e4d4b['plugins']['get']('TrackChangesEditing'),_0x173ff4=_0x4e4d4b['commands']['get']('copyFormat'),_0x3c2aac=_0x4e4d4b['commands']['get']('pasteFormat');_0x173ff4&&_0x3c2aac&&(_0x579e9e['enableDefaultAttributesIntegration']('pasteFormat'),_0x579e9e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4789ad=this['editor'],_0x184dd9=_0x4789ad['locale'];_0x4789ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50f169=>{if('formatBlock'!=_0x50f169['type']&&'formatInline'!=_0x50f169['type'])return;const {data:_0x2b3db2}=_0x50f169;if(_0x2b3db2&&'pasteFormat'===_0x2b3db2['commandName']){const _0x45be64=[],_0x35cf89=_0x2b3db2['commandParams'][0x0];for(const [_0x21eb75,_0x1ced3b]of Object['entries'](_0x35cf89))_0x45be64['push'](so(_0x4789ad,_0x21eb75,_0x1ced3b));return _0x45be64['length']?{'type':'format','content':o(_0x184dd9,'*Set\x20format\x20to:*\x20%0',_0x45be64['join'](',\x20'))}:{'type':'format','content':o(_0x184dd9,'*Remove\x20all\x20formatting*')};}});}}function so(_0x11d3d8,_0x9cc203,_0x412db0){const _0x15fb38=_0x11d3d8['locale']['t'],_0x2e95bd=_0x9cc203['split'](/(?=[A-Z])/)['join']('\x20'),_0x7d5c69=_0x15fb38(_0x2e95bd['charAt'](0x0)['toUpperCase']()+_0x2e95bd['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x412db0)return _0x7d5c69;if('fontColor'===_0x9cc203||'fontBackgroundColor'===_0x9cc203){const _0x24f98b=_0x41c95d(_0x11d3d8['config']['get']('fontColor.colors'))['find'](_0x559f09=>_0x559f09['model']==_0x412db0);return _0x7d5c69+'\x20('+(_0x24f98b?_0x15fb38(_0x24f98b['label'])['toLowerCase']():_0x412db0)+')';}if('fontSize'===_0x9cc203&&isNaN(parseFloat(_0x412db0))){const _0x249a4d=_0x11d3d8['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x11d3d8['config']['get']('fontSize.options'))['find'](_0x58a1c1=>_0x58a1c1['model']==_0x412db0);return _0x7d5c69+'\x20('+(_0x249a4d?_0x15fb38(_0x249a4d['title'])['toLowerCase']():_0x412db0)+')';}return _0x7d5c69+'\x20('+_0x412db0+')';}class Y extends _0x1dc395{['_headingOptions'];['afterInit'](){const _0x33d9e1=this['editor'];if(!_0x33d9e1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x33d9e1['config']['get']('heading.options');const _0x435d57=_0x33d9e1['locale'],_0x3ee117=_0x33d9e1['plugins']['get']('TrackChangesEditing');_0x3ee117['enableDefaultAttributesIntegration']('heading');for(const _0x27011d of this['_headingOptions'])'paragraph'!=_0x27011d['model']&&_0x3ee117['descriptionFactory']['registerElementLabel'](_0x27011d['model'],_0x3b41d6=>{const _0x4a07c6=this['_getHeadingLevel'](_0x27011d['model']);return null!==_0x4a07c6?_0x3e684e(_0x3b41d6,_0x4a07c6):_0x808f7f(_0x3b41d6,_0x27011d['title']);});function _0x3e684e(_0x47cb69,_0x26c250){return o(_0x435d57,'ELEMENT_HEADING',[_0x47cb69,_0x26c250]);}function _0x808f7f(_0x33bc5d,_0x4ce7a0){return o(_0x435d57,'ELEMENT_HEADING_CUSTOM',[_0x33bc5d,_0x4ce7a0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5853e3=this['editor'],_0x5f0667=_0x5853e3['locale'];function _0x33340a(_0x44714a,_0xcdad7c){return o(_0x5f0667,'ELEMENT_HEADING_CUSTOM',[_0x44714a,_0xcdad7c]);}_0x5853e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57c059=>{if('formatBlock'!=_0x57c059['type'])return;const {data:_0x1570e3}=_0x57c059;if(_0x1570e3&&'heading'==_0x1570e3['commandName']){const _0x27fc39=_0x1570e3['commandParams'][0x0]['value'],_0x1a9b06=this['_getHeadingLevel'](_0x27fc39);if(null!==_0x1a9b06)return{'type':'format','content':o(_0x5f0667,'*Change\x20to:*\x20%0',(_0x33b7b9=0x1,_0x3d19dd=_0x1a9b06,o(_0x5f0667,'ELEMENT_HEADING',[_0x33b7b9,_0x3d19dd])))};const _0x4b4361=this['_headingOptions']['find'](_0x4abbd6=>_0x4abbd6['model']===_0x27fc39)['title'];return{'type':'format','content':o(_0x5f0667,'*Change\x20to:*\x20%0',_0x33340a(0x1,_0x4b4361))};}var _0x33b7b9,_0x3d19dd;});}['_getHeadingLevel'](_0x38996b){const _0x3228c5=_0x38996b['match'](/^heading(\d+)/);if(_0x3228c5)return _0x3228c5[0x1];const _0x347345=this['_headingOptions']?.['find'](_0x16c563=>_0x16c563['model']==_0x38996b);if(_0x347345&&_0x347345['view']){const _0x4fca53=_0x347345['view'],_0x22baaa=(_0x4fca53['name']??_0x4fca53)['match'](/^h(\d+)/);if(_0x22baaa)return _0x22baaa[0x1];}return null;}}class Z extends _0x1dc395{['afterInit'](){const _0xd8530e=this['editor'];if(!_0xd8530e['plugins']['has']('HighlightEditing'))return;const _0x46b8fa=_0xd8530e['plugins']['get']('TrackChangesEditing'),_0x2cb947=_0xd8530e['locale'];_0x46b8fa['enableDefaultAttributesIntegration']('highlight'),_0x46b8fa['registerInlineAttribute']('highlight'),_0x46b8fa['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2cb947,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f4705=this['editor'],_0x345c3d=_0x5f4705['locale'];_0x5f4705['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27655d=>{if('formatInline'!=_0x27655d['type'])return;const {data:_0x13bc16}=_0x27655d;if(_0x13bc16&&'highlight'==_0x13bc16['commandName']){const _0x704f11=_0x345c3d['t'],_0x39f91e=_0x13bc16['commandParams'][0x0]['value'];if(_0x39f91e){const _0x1efa70=_0x5f4705['config']['get']('highlight.options')['find'](_0x5e62fa=>_0x5e62fa['model']==_0x39f91e),_0x30d287=_0x704f11(_0x1efa70['title'])['toLowerCase']();return{'type':'format','content':o(_0x345c3d,'*Set\x20highlight:*\x20%0',_0x30d287),'color':{'value':_0x1efa70['color'],'title':_0x1efa70['title']}};}return{'type':'format','content':o(_0x345c3d,'*Remove\x20highlight*',o(_0x345c3d,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1dc395{['afterInit'](){const _0x5f1f21=this['editor'];if(!_0x5f1f21['plugins']['has']('HorizontalLineEditing'))return;_0x5f1f21['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d2a99=_0x5f1f21['plugins']['get']('TrackChangesEditing'),_0x10f894=_0x5f1f21['locale'];_0x4d2a99['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3d5e59=>o(_0x10f894,'ELEMENT_HORIZONTAL_LINE',_0x3d5e59)),_0x5f1f21['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4738ff,{writer:_0x54be81,options:_0x5090da})=>{if(!_0x5090da['showSuggestionHighlights'])return null;const _0x27607d=_0x54be81['createContainerElement']('div'),_0x169912=_0x54be81['createEmptyElement']('hr');return _0x54be81['addClass']('ck-horizontal-line',_0x27607d),_0x54be81['insert'](_0x54be81['createPositionAt'](_0x27607d,0x0),_0x169912),_0x27607d;},'converterPriority':'high'});}}class et extends _0x1dc395{['afterInit'](){const _0x201d5d=this['editor'];if(!_0x201d5d['plugins']['has']('HtmlEmbed'))return;const _0x49e386=_0x201d5d['plugins']['get']('TrackChangesEditing'),_0x4bf7bd=_0x201d5d['locale'];_0x49e386['descriptionFactory']['registerElementLabel']('rawHtml',_0x1f6c12=>o(_0x4bf7bd,'ELEMENT_HTML_EMBED',_0x1f6c12)),_0x49e386['enableDefaultAttributesIntegration']('htmlEmbed'),_0x49e386['registerBlockAttribute']('value'),_0x49e386['descriptionFactory']['registerDescriptionCallback'](_0x9e5a5c=>{if('attribute'!=_0x9e5a5c['type'])return;const {data:_0x4a43f1}=_0x9e5a5c;if(_0x4a43f1&&'value'==_0x4a43f1['key']&&_0x9e5a5c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x8a0ba3=o(_0x4bf7bd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4bf7bd,'*Change\x20%0\x20content*',_0x8a0ba3)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x420e9a=this['editor'],_0x15d868=_0x420e9a['locale'];_0x420e9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ecd4f=>{if('formatBlock'!=_0x5ecd4f['type'])return;const {data:_0x12ee8a}=_0x5ecd4f;if(_0x12ee8a&&'htmlEmbed'==_0x12ee8a['commandName']){const _0xfbc5c7=o(_0x15d868,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x15d868,'*Change\x20%0\x20content*',_0xfbc5c7)};}});}}class it extends _0x1dc395{['afterInit'](){const _0x1b5a3e=this['editor'];if(!_0x1b5a3e['plugins']['has']('ImageEditing'))return;const _0x1cf449=_0x1b5a3e['plugins']['get']('TrackChangesEditing'),_0x10a04e=_0x1b5a3e['plugins']['get']('ImageUtils'),_0x5ebcea=_0x1b5a3e['locale'];_0x1cf449['enableCommand']('insertImage'),_0x1cf449['descriptionFactory']['registerElementLabel']('imageBlock',_0x1cfafa=>o(_0x5ebcea,'ELEMENT_IMAGE',_0x1cfafa)),_0x1cf449['descriptionFactory']['registerElementLabel']('imageInline',_0x5c9814=>o(_0x5ebcea,'ELEMENT_INLINE_IMAGE',_0x5c9814)),_0x1cf449['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5ebcea,'ELEMENT_CAPTION')),_0x1b5a3e['plugins']['has']('ImageUploadEditing')&&_0x1cf449['enableCommand']('uploadImage'),_0x1b5a3e['plugins']['has']('ImageBlockEditing')&&_0x1b5a3e['plugins']['has']('ImageInlineEditing')&&(_0x1cf449['enableCommand']('imageTypeInline',(_0xa1d91b,_0x20623e)=>{const _0x2f5832=_0x10a04e['getClosestSelectedImageElement'](_0x1b5a3e['model']['document']['selection']);_0x1b5a3e['model']['change'](()=>{_0x1cf449['markBlockFormat'](_0x2f5832,{'commandName':'imageTypeInline','commandParams':[_0x20623e]},[],'convertBlockImageToInline');});}),_0x1cf449['enableCommand']('imageTypeBlock',(_0x222310,_0xa23b50)=>{_0x1b5a3e['model']['change'](_0xdbeb78=>{let _0x2f1307=_0x10a04e['getClosestSelectedImageElement'](_0x1b5a3e['model']['document']['selection']),_0x2e9646=_0xdbeb78['createRangeOn'](_0x2f1307);const _0x3df9dd=_0x285ecd['fromPosition'](_0x2e9646['start'],'toPrevious'),_0x439d72=_0x285ecd['fromPosition'](_0x2e9646['end'],'toNext');_0x1cf449['forceDefaultExecution'](()=>_0x222310(_0xa23b50)),_0x2f1307=_0x10a04e['getClosestSelectedImageElement'](_0x1b5a3e['model']['document']['selection']),_0x2e9646=_0xdbeb78['createRangeOn'](_0x2f1307);const _0x5148ad=_0xdbeb78['createRange'](_0x3df9dd,_0x439d72);_0x3df9dd['detach'](),_0x439d72['detach'](),_0x1cf449['markBlockFormat'](_0x2f1307,{'commandName':'imageTypeInline','commandParams':[_0xa23b50]},[],'convertInlineImageToBlock'),_0x5148ad['start']['isBefore'](_0x2e9646['start'])&&_0x1cf449['markInsertion'](_0xdbeb78['createRange'](_0x5148ad['start'],_0x2e9646['start']),'convertInlineImageToBlock'),_0x2e9646['end']['isBefore'](_0x5148ad['end'])&&_0x1cf449['markInsertion'](_0xdbeb78['createRange'](_0x2e9646['end'],_0x5148ad['end']),'convertInlineImageToBlock');});}),_0x1cf449['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1cf449['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1cf449['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1cf449['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1cf449['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1cf449['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4a216b])=>{const _0x26493d=_0x1cf449['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x59c5a1=_0x4a216b['start'],_0x3546fb=_0x4a216b['end'];const _0x108a92=_0x1b5a3e['model']['schema']['getNearestSelectionRange'](_0x59c5a1,'backward'),_0x5a436b=_0x1b5a3e['model']['schema']['getNearestSelectionRange'](_0x3546fb,'forward');_0x108a92['isCollapsed']&&(_0x59c5a1=_0x108a92['start']),_0x5a436b['isCollapsed']&&(_0x3546fb=_0x5a436b['end']),_0x26493d([_0x1b5a3e['model']['createRange'](_0x59c5a1,_0x3546fb)]);}),_0x1cf449['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5bef74),_0x1cf449['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5bef74)),_0x1b5a3e['plugins']['has']('ImageCaptionEditing')&&(_0x1cf449['enableCommand']('toggleImageCaption',(_0x400b5d,_0x5dd0da)=>{const _0x15a332=_0x1b5a3e['plugins']['get']('ImageCaptionUtils');let _0x17c3d4=_0x10a04e['getClosestSelectedImageElement'](_0x1b5a3e['model']['document']['selection']),_0x57064c=_0x15a332['getCaptionFromImageModelElement'](_0x17c3d4);_0x1b5a3e['model']['change'](()=>{if(_0x57064c)return void _0x1cf449['markDeletion'](_0x1b5a3e['model']['createRangeOn'](_0x57064c));const _0x95697d=_0x10a04e['isBlockImage'](_0x17c3d4);_0x400b5d(_0x5dd0da),_0x17c3d4=_0x10a04e['getClosestSelectedImageElement'](_0x1b5a3e['model']['document']['selection']),_0x57064c=_0x15a332['getCaptionFromImageModelElement'](_0x17c3d4),_0x1cf449['markInsertion'](_0x1b5a3e['model']['createRangeOn'](_0x57064c),_0x95697d?null:'imageCaption');});}),_0x1cf449['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5bef74));const _0x54f73a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xab3a24(_0x4c93d4,_0x530169){const _0x3b9737=_0x54f73a['findIndex'](({type:_0x184dda,subType:_0xfa5e88})=>_0x4c93d4['type']==_0x184dda&&_0x4c93d4['subType']==_0xfa5e88),_0xe305f9=_0x54f73a['findIndex'](({type:_0x4b13b3,subType:_0xee7854})=>_0x530169['type']==_0x4b13b3&&_0x530169['subType']==_0xee7854);if(_0x3b9737<0x0||_0xe305f9<0x0)return!0x1;const _0x536f11=_0x4c93d4['getFirstRange'](),_0x4cf1d2=_0x530169['getFirstRange']();if((0x0==_0x3b9737||0x1==_0x3b9737)&&0x2==_0xe305f9&&_0x536f11['isIntersecting'](_0x4cf1d2))return!0x0;if(0x2==_0x3b9737&&0x3==_0xe305f9){const _0x481e42=_0x1cf449['_findSuggestions'](_0x536f11,'insertion')['filter'](({suggestion:_0x385ab3,meta:_0x5d8f41})=>_0x5d8f41['isOwn']&&'convertInlineImageToBlock'==_0x385ab3['subType']);if(_0x481e42['length']>0x1&&_0x4cf1d2['end']['isEqual'](_0x536f11['start']))return!0x0;if(0x1==_0x481e42['length']&&(_0x536f11['start']['isEqual'](_0x4cf1d2['end'])||_0x536f11['end']['isEqual'](_0x4cf1d2['start'])))return!0x0;}if(0x3==_0x3b9737&&0x3==_0xe305f9&&_0x536f11['start']['isBefore'](_0x4cf1d2['start'])){const _0x1b239a=_0x536f11['end']['nodeAfter'],_0x4dfddf=_0x4cf1d2['start']['nodeBefore'];return _0x10a04e['isBlockImage'](_0x1b239a)&&_0x1b239a===_0x4dfddf;}return!0x1;}function _0x5bef74(_0x7c2086,_0x3a5a2c){return _0xab3a24(_0x7c2086,_0x3a5a2c)?[_0x7c2086,_0x3a5a2c]:_0xab3a24(_0x3a5a2c,_0x7c2086)?[_0x3a5a2c,_0x7c2086]:null;}_0x1b5a3e['plugins']['has']('ImageResize')&&(_0x1cf449['enableDefaultAttributesIntegration']('resizeImage'),_0x1cf449['registerBlockAttribute']('resizedWidth'),_0x1cf449['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5ebcea,'FORMAT_IMAGE_SIZE'))),_0x1b5a3e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1cf449['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1cf449['registerBlockAttribute']('alt')),_0x1cf449['descriptionFactory']['registerDescriptionCallback'](_0x455e3f=>{if(!!_0x54f73a['find'](({type:_0x30f7b0,subType:_0x3ed747})=>_0x455e3f['type']==_0x30f7b0&&_0x455e3f['subType']==_0x3ed747))return _0x455e3f['previous']?{}:void 0x0;}),_0x1cf449['descriptionFactory']['registerDescriptionCallback'](_0x4bdf75=>{if('insertion'==_0x4bdf75['type']||'deletion'==_0x4bdf75['type']){const _0x3d6ac6=_0x4bdf75['getContainedElement']();if(_0x3d6ac6&&_0x3d6ac6['is']('element','caption'))return{'type':'insertion'==_0x4bdf75['type']?'addObject':'removeObject','element':_0x3d6ac6,'quantity':0x1};}}),_0x1cf449['descriptionFactory']['registerDescriptionCallback'](_0x2799d3=>'formatBlock'==_0x2799d3['type']&&'convertInlineImageToBlock'==_0x2799d3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2799d3['type']&&'convertBlockImageToInline'==_0x2799d3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1cf449['descriptionFactory']['registerDescriptionCallback'](_0x59e3db=>{if('attribute'!=_0x59e3db['type'])return;const {data:_0x20425b}=_0x59e3db;if(!_0x20425b||'alt'!=_0x20425b['key'])return;const _0x431a08=_0x20425b['newValue'];return _0x431a08?{'type':'format','content':o(_0x5ebcea,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x431a08+'\x22')}:{'type':'format','content':o(_0x5ebcea,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23dece=this['editor'],_0x16814c=_0x23dece['locale'];_0x23dece['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x130ccd=>{if('formatBlock'!=_0x130ccd['type']&&'formatInline'!=_0x130ccd['type'])return;const {data:_0x3bad32}=_0x130ccd;if(_0x3bad32){if('imageTextAlternative'==_0x3bad32['commandName']){const _0x32a6c6=_0x3bad32['commandParams'][0x0]['newValue'];return _0x32a6c6?{'type':'format','content':o(_0x16814c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x32a6c6+'\x22')}:{'type':'format','content':o(_0x16814c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3bad32['commandName']){const _0x4c19f1=_0x3bad32['commandParams'][0x0]['width'];return _0x4c19f1?{'type':'format','content':o(_0x16814c,'*Set\x20image\x20width:*\x20%0',_0x4c19f1)}:{'type':'format','content':o(_0x16814c,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1dc395{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x55f8f7=this['editor']['locale'],_0x49f7b6=this['editor']['plugins']['get']('TrackChangesEditing');_0x49f7b6['enableDefaultAttributesIntegration']('replaceImageSource'),_0x49f7b6['registerBlockAttribute']('src'),_0x49f7b6['descriptionFactory']['registerDescriptionCallback'](_0x2b478b=>{if('attribute'!=_0x2b478b['type'])return;const {data:_0x1792a3}=_0x2b478b;return _0x1792a3&&'src'==_0x1792a3['key']?_0x1792a3['newValue']&&_0x1792a3['oldValue']?{'type':'format','content':o(_0x55f8f7,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xfe751f=this['editor']['plugins']['get']('TrackChangesEditing');_0xfe751f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xfe751f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xfe751f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xfe751f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49655c=this['editor'],_0x2227f2=_0x49655c['locale'];_0x49655c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xce3d00=>{if('formatBlock'!=_0xce3d00['type']&&'formatInline'!=_0xce3d00['type'])return;const {data:_0x22484e}=_0xce3d00;if(!_0x22484e||'replaceImageSource'!=_0x22484e['commandName'])return;return{'type':'format','content':o(_0x2227f2,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1dc395{['afterInit'](){const _0xad19ec=this['editor'];if(!_0xad19ec['plugins']['has']('ImageStyleEditing'))return;const _0x53a230=_0xad19ec['plugins']['get']('TrackChangesEditing'),_0x19ea52=_0xad19ec['plugins']['get']('ImageUtils'),_0x164724={};_0x53a230['enableCommand']('imageStyle',(_0x4cacd5,_0x218a3d)=>{const _0x4f739b=_0xad19ec['plugins']['get']('Users')['me'],_0xc6df3c=_0xad19ec['commands']['get']('imageStyle');let _0x37325f=_0x19ea52['getClosestSelectedImageElement'](_0xad19ec['model']['document']['selection']),_0x4d1193=_0xad19ec['model']['createRangeOn'](_0x37325f),_0x4be67b=_0xc6df3c['value'];if(_0x4be67b==_0x218a3d['value'])return;const _0x3e0e86={'commandName':'imageStyle','commandParams':[_0x218a3d],'formatGroupId':_0x497177()};_0xad19ec['model']['change'](()=>{if(_0x53a230['getSuggestions']()['filter'](_0x2175cd=>_0x2175cd['isInContent']&&_0x4f739b==_0x2175cd['author']&&('formatBlock'==_0x2175cd['type']||'formatInline'==_0x2175cd['type'])&&('imageStylePreApply'==_0x2175cd['subType']||'imageStylePostApply'==_0x2175cd['subType'])&&_0x2175cd['getFirstRange']()['isEqual'](_0x4d1193))['forEach'](_0x11e8fd=>_0x53a230['discardSuggestion'](_0x11e8fd['head'])),_0x37325f=_0x19ea52['getClosestSelectedImageElement'](_0xad19ec['model']['document']['selection']),_0x4d1193=_0xad19ec['model']['createRangeOn'](_0x37325f),_0xc6df3c['refresh'](),_0xad19ec['commands']['get']('imageTypeInline')['refresh'](),_0xad19ec['commands']['get']('imageTypeBlock')['refresh'](),_0x4be67b=_0xc6df3c['value'],_0x4be67b!=_0x218a3d['value'])return _0x19ea52['isInlineImage'](_0x37325f)&&_0xc6df3c['shouldConvertImageType'](_0x218a3d['value'],_0x37325f)?(_0x4cacd5({..._0x218a3d,'setImageSizes':!0x1}),_0x37325f=_0x19ea52['getClosestSelectedImageElement'](_0xad19ec['model']['document']['selection']),void _0x53a230['markBlockFormat'](_0x37325f,{..._0x3e0e86,'commandReversedParams':[{'value':_0x4be67b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x19ea52['isBlockImage'](_0x37325f)?_0x53a230['markBlockFormat'](_0x37325f,_0x3e0e86,[],'imageStylePostApply'):_0x53a230['markInlineFormat'](_0x4d1193,_0x3e0e86,'imageStylePostApply'));});});for(const _0x49c102 of _0xad19ec['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x164724[_0x49c102['name']]=_0x49c102['title']['toLowerCase']();_0x53a230['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x53a230['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x53a230['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x53a230['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3e1e97])=>{_0x19ea52['setImageNaturalSizeAttributes'](_0x3e1e97['getContainedElement']());}),_0x53a230['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4f1aa4,_0x3904fd)=>{_0x53a230['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4f1aa4,{'commandName':_0x3904fd['commandName'],'commandParams':_0x3904fd['commandReversedParams']});}),_0x53a230['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x409024,_0x5dc40c){if(_0x52afe3(_0x409024,_0x5dc40c))return[_0x409024,_0x5dc40c];if(_0x52afe3(_0x5dc40c,_0x409024))return[_0x5dc40c,_0x409024];return null;});const _0x23e2b2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x52afe3(_0x30bfaa,_0x133545){const _0x565082=_0x23e2b2['findIndex'](({type:_0x56a722,subType:_0x190be2})=>_0x30bfaa['type']==_0x56a722&&_0x30bfaa['subType']==_0x190be2),_0x4a2594=_0x23e2b2['findIndex'](({type:_0x31f651,subType:_0x4fd872})=>_0x133545['type']==_0x31f651&&_0x133545['subType']==_0x4fd872);if(_0x565082<0x0||_0x4a2594<0x0)return!0x1;const _0x11f2c2=_0x30bfaa['getFirstRange'](),_0x559408=_0x133545['getFirstRange']();if((0x0==_0x565082||0x1==_0x565082)&&0x2==_0x4a2594&&_0x11f2c2['isIntersecting'](_0x559408))return!0x0;if(0x2==_0x565082&&0x3==_0x4a2594){const _0x42330c=_0x53a230['_findSuggestions'](_0x11f2c2,'insertion')['filter'](({suggestion:_0x2add80,meta:_0x1e3964})=>_0x1e3964['isOwn']&&'convertInlineImageToBlock'==_0x2add80['subType']);if(_0x42330c['length']>0x1&&_0x559408['end']['isEqual'](_0x11f2c2['start']))return!0x0;if(0x1==_0x42330c['length']&&(_0x11f2c2['start']['isEqual'](_0x559408['end'])||_0x11f2c2['end']['isEqual'](_0x559408['start'])))return!0x0;}if(0x3==_0x565082&&0x3==_0x4a2594&&_0x11f2c2['start']['isBefore'](_0x559408['start'])){const _0x24c04d=_0x11f2c2['end']['nodeAfter'],_0xd5fb1f=_0x559408['start']['nodeBefore'];return _0x19ea52['isBlockImage'](_0x24c04d)&&_0x24c04d===_0xd5fb1f;}return!0x1;}_0xad19ec['model']['document']['registerPostFixer'](()=>{let _0x36f896=!0x1;const _0x352dbb=Array['from'](_0xad19ec['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x484505,data:_0x3a9e58}of _0x352dbb){const {group:_0x395a86,type:_0xc2a2a0,subType:_0x174640,id:_0x8e66aa}=_0x53a230['_splitMarkerName'](_0x484505);if('suggestion'==_0x395a86&&_0x53a230['hasSuggestion'](_0x8e66aa)){if('formatBlock'==_0xc2a2a0&&('imageStylePreApply'==_0x174640||'imageStylePostApply'==_0x174640)){const _0x249927=_0x53a230['getSuggestion'](_0x8e66aa);if(_0x3a9e58['newRange']){const _0x46b850=_0x249927['getFirstRange']()['getContainedElement']();if(_0x19ea52['isBlockImage'](_0x46b850))continue;_0x53a230['discardSuggestion'](_0x249927),_0x36f896=!0x0;}}if('insertion'==_0xc2a2a0&&'imageCaption'==_0x174640&&!_0x3a9e58['newRange']){const _0x21ea41=_0x53a230['getSuggestion'](_0x8e66aa);_0x21ea41['next']&&_0x21ea41['next']['isInContent']&&(_0x53a230['discardSuggestion'](_0x21ea41['next']),_0x36f896=!0x0);}}}return _0x36f896;}),this['_registerLegacyDescription'](_0x164724);}['_registerLegacyDescription'](_0x99db85){const _0xf7ee3a=this['editor'],_0x4f8603=_0xf7ee3a['locale'];_0xf7ee3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28aee4=>{if('formatBlock'!=_0x28aee4['type']&&'formatInline'!=_0x28aee4['type'])return;const {data:_0x4c1006}=_0x28aee4;if(!_0x4c1006||'imageStyle'!=_0x4c1006['commandName'])return;const _0x44a2f6=_0x4c1006['commandParams'][0x0]['value'];return _0xa32046('side'===_0x44a2f6?o(_0x4f8603,'FORMAT_SIDE_IMAGE'):_0x99db85[_0x44a2f6]||_0x44a2f6);function _0xa32046(_0x2bcad5){return{'type':'format','content':o(_0x4f8603,'*Format:*\x20%0',_0x2bcad5)};}});}}class ot extends _0x1dc395{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x30e50e){super(_0x30e50e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x41ec97=this['editor'],_0x1b6e5c=_0x41ec97['commands']['get']('importWord'),_0x257a1f=_0x41ec97['commands']['get']('trackChanges');_0x1b6e5c&&(_0x1b6e5c['on']('execute',(_0x1c2c2e,[,_0x3e3aff])=>{this['_trackChangesValueDuringImport']=_0x257a1f['value'],_0x3e3aff['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1b6e5c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1b6e5c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x257a1f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x41ec97['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5a2fa2,_0x29da1e){const {suggestions:_0x5597c8}=_0x29da1e,_0x11c754=this['editor']['commands']['get']('trackChanges'),_0x191b17=_0x11c754['value'];this['_trackChangesValueDuringImport']!==_0x191b17&&(_0x11c754['execute'](),this['_trackChangesExecuted']=!0x0),_0x5597c8&&_0x5597c8['forEach'](({id:_0x571028,type:_0x5d846b,author:_0x2aea3a,created_at:_0xc7866d})=>{const _0x2cf8f2={'id':_0x571028,'type':_0x5d846b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2aea3a,'createdAt':_0xc7866d?new Date(_0xc7866d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2cf8f2);});}}class rt extends _0x1dc395{['afterInit'](){const _0x41dcba=this['editor'],_0x3842b8=_0x41dcba['plugins']['get']('TrackChangesEditing');if(_0x41dcba['plugins']['has']('IndentEditing')&&(_0x3842b8['enableCommand']('indent'),_0x3842b8['enableCommand']('outdent')),_0x41dcba['plugins']['has']('IndentBlock')){for(const _0x517f77 of['indentBlock','outdentBlock'])_0x3842b8['enableDefaultAttributesIntegration'](_0x517f77);}const _0x479ece=_0x41dcba['locale'];_0x3842b8['registerBlockAttribute']('blockIndent'),_0x3842b8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x479ece,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58a2ee=this['editor'],_0x4d5728=_0x58a2ee['locale'],_0x288655=_0x58a2ee['plugins']['get']('TrackChangesEditing');_0x288655['descriptionFactory']['registerDescriptionCallback'](_0x5a2bd0=>{if('formatBlock'!=_0x5a2bd0['type'])return;const {data:_0x1087d0}=_0x5a2bd0;if(!_0x1087d0)return;if('indentBlock'!=_0x1087d0['commandName']&&'outdentBlock'!=_0x1087d0['commandName'])return;const _0x3e1c78=_0x5a2bd0['getItems']()[0x0],_0x22c93f=_0x288655['descriptionFactory']['getItemLabel'](_0x3e1c78);return'indentBlock'==_0x1087d0['commandName']?{'type':'format','content':o(_0x4d5728,'*Indent:*\x20%0',_0x22c93f)}:'outdentBlock'==_0x1087d0['commandName']?{'type':'format','content':o(_0x4d5728,'*Outdent:*\x20%0',_0x22c93f)}:void 0x0;});}}class at extends _0x1dc395{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1dc395{['afterInit'](){const _0x147d00=this['editor'];if(!_0x147d00['plugins']['has']('LinkEditing'))return;const _0x1b2f01=_0x147d00['plugins']['get']('TrackChangesEditing'),_0x2693bf=_0x147d00['commands']['get']('link');_0x1b2f01['enableDefaultAttributesIntegration']('link'),_0x1b2f01['enableDefaultAttributesIntegration']('unlink'),_0x1b2f01['registerInlineAttribute']('linkHref');for(const _0x328904 of _0x2693bf['manualDecorators'])_0x1b2f01['registerInlineAttribute'](_0x328904['id']),_0x1b2f01['descriptionFactory']['registerAttributeLabel'](_0x328904['id'],'link\x20('+_0x328904['label']['toLowerCase']()+')');_0x1b2f01['descriptionFactory']['registerDescriptionCallback'](_0x2936d5=>{if('attribute'!=_0x2936d5['type'])return;const {data:_0x32ef36}=_0x2936d5;if(!_0x32ef36||'linkHref'!=_0x32ef36['key'])return;const _0x215ebb=_0x32ef36['newValue'],_0x57d38f=_0x147d00['locale'];return{'type':'format','content':null==_0x215ebb?o(_0x57d38f,'*Remove\x20link*'):o(_0x57d38f,'*Set\x20link:*\x20%0','\x22'+_0x215ebb+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20b5d2=this['editor'],_0x1a6fd2=_0x20b5d2['locale'];_0x20b5d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bbaee=>{if('formatInline'!=_0x3bbaee['type'])return;const {data:_0x177aad}=_0x3bbaee;if(_0x177aad){if('link'==_0x177aad['commandName']){const _0xefb095=_0x177aad['commandParams'][0x0];return{'type':'format','content':o(_0x1a6fd2,'*Set\x20link:*\x20%0','\x22'+_0xefb095+'\x22')};}return'unlink'==_0x177aad['commandName']?{'type':'format','content':o(_0x1a6fd2,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1dc395{['afterInit'](){const _0x90924b=this['editor'],_0xf97ccd=_0x90924b['locale'];if(!_0x90924b['plugins']['has']('LegacyListEditing'))return;const _0x44e781=_0x90924b['plugins']['get']('TrackChangesEditing'),_0x272810=_0x90924b['plugins']['has']('LegacyTodoListEditing');function _0x53eb31(_0x2a623d){return()=>{const _0x43b38f=_0x90924b['model']['document']['selection'],_0x225843=_0x90924b['commands']['get'](_0x2a623d);if(_0x225843['value'])return void _0x90924b['execute']('paragraph',{});const _0x265289=_0x2a623d['slice'](0x0,-0x4),_0x17a73a=function(_0x5b8ca1,_0x1e47b6,_0x4a3f7c){let _0x2985dc=Array['from'](_0x5b8ca1)['filter'](_0x3ae1f4=>function(_0x5caa34,_0xf5888d){return _0xf5888d['checkChild'](_0x5caa34['parent'],'listItem')&&!_0xf5888d['isObject'](_0x5caa34);}(_0x3ae1f4,_0x4a3f7c));_0x2985dc=_0x2985dc['filter'](_0x4e4c66=>!_0x4e4c66['is']('element','listItem')||_0x4e4c66['getAttribute']('listType')!=_0x1e47b6);const _0x3411db=new Set();for(const _0x29fdf8 of _0x2985dc)_0x29fdf8['is']('element','listItem')?_0x3411db['add'](me(_0x29fdf8)):_0x3411db['add'](_0x29fdf8);return Array['from'](_0x3411db);}(_0x43b38f['getSelectedBlocks'](),_0x265289,_0x90924b['model']['schema']);_0x90924b['model']['change'](()=>{for(const _0x58b826 of _0x17a73a)_0x44e781['markBlockFormat'](_0x58b826,{'commandName':_0x2a623d,'commandParams':[{'forceValue':!_0x225843['value']}],'formatGroupId':'blockName'},fe(_0x58b826));});};}function _0x124cc3(_0x40081f){return()=>{const _0x2cbb1a=function(_0x4b3565){let _0x12adc2=Array['from'](_0x4b3565);const _0x384c1d=_0x12adc2['findIndex'](_0x48fb51=>'listItem'!=_0x48fb51['name']);return _0x384c1d>-0x1&&(_0x12adc2=_0x12adc2['slice'](0x0,_0x384c1d)),_0x12adc2;}(_0x90924b['model']['document']['selection']['getSelectedBlocks']()),_0x2f30c2=_0x90924b['model']['createRange'](_0x90924b['model']['createPositionAt'](_0x2cbb1a[0x0],'before'),_0x90924b['model']['createPositionAt'](_0x2cbb1a[_0x2cbb1a['length']-0x1],'end'));_0x90924b['model']['change'](()=>{_0x44e781['markBlockFormat'](_0x2f30c2,{'commandName':_0x40081f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2f88b5){const _0x1dbc0a=new Set();for(const _0x23bd49 of _0x2f88b5){let _0x374319=_0x23bd49['nextSibling'];for(;_0x374319&&_0x374319['getAttribute']('listIndent')>_0x23bd49['getAttribute']('listIndent');)_0x1dbc0a['add'](_0x374319),_0x374319=_0x374319['nextSibling'];}return Array['from'](_0x1dbc0a);}(_0x2cbb1a));});};}_0x44e781['enableCommand']('numberedList',_0x53eb31('numberedList')),_0x44e781['enableCommand']('bulletedList',_0x53eb31('bulletedList')),_0x272810&&_0x44e781['enableCommand']('todoList',_0x53eb31('todoList')),_0x44e781['enableCommand']('indentList',_0x124cc3('indentList')),_0x44e781['enableCommand']('outdentList',_0x124cc3('outdentList')),_0x272810&&_0x44e781['enableCommand']('checkTodoList',()=>{const _0x216239=_0x90924b['commands']['get']('checkTodoList'),_0x1695f4=Array['from'](_0x216239['_selectedElements']);_0x1695f4['filter'](_0x442eae=>_0x442eae['getAttribute']('todoListChecked')!=_0x216239['value']),_0x90924b['model']['change'](()=>{for(const _0x10a11e of _0x1695f4)_0x44e781['markBlockFormat'](_0x10a11e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x216239['value']}]});});}),_0x44e781['descriptionFactory']['registerElementLabel']('listItem',_0x5d7661=>o(_0xf97ccd,'ELEMENT_LIST_ITEM',_0x5d7661)),_0x44e781['descriptionFactory']['registerDescriptionCallback'](_0x2db180=>{if('formatBlock'!=_0x2db180['type']&&'formatInline'!=_0x2db180['type'])return;const {data:_0x26375e}=_0x2db180;if(_0x26375e){if('numberedList'==_0x26375e['commandName']||'bulletedList'==_0x26375e['commandName']||'todoList'==_0x26375e['commandName'])switch(_0x26375e['commandName']['replace']('List','')){case'bulleted':return _0x5a65e9(o(_0xf97ccd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5a65e9(o(_0xf97ccd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5a65e9(o(_0xf97ccd,'ELEMENT_TODO_LIST'));}if('indentList'==_0x26375e['commandName'])return{'type':'format','content':o(_0xf97ccd,'*Indent:*\x20%0',o(_0xf97ccd,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x26375e['commandName'])return{'type':'format','content':o(_0xf97ccd,'*Outdent:*\x20%0',o(_0xf97ccd,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x26375e['commandName'])return _0x26375e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf97ccd,'*Check\x20item*')}:{'type':'format','content':o(_0xf97ccd,'*Uncheck\x20item*')};}function _0x5a65e9(_0x235b91){return{'type':'format','content':o(_0xf97ccd,'*Change\x20to:*\x20%0',_0x235b91)};}});}}function me(_0xe33ae5){const _0x1f26fe=_0xe33ae5['getAttribute']('listIndent');if(0x0==_0x1f26fe)return _0xe33ae5;let _0x426104=_0xe33ae5;for(;_0xe33ae5['previousSibling']&&_0xe33ae5['previousSibling']['is']('element','listItem');){const _0x340238=_0xe33ae5['previousSibling']['getAttribute']('listIndent');if(_0x340238==_0x1f26fe)_0x426104=_0xe33ae5['previousSibling'];else{if(_0x340238<_0x1f26fe)break;}_0xe33ae5=_0xe33ae5['previousSibling'];}return _0x426104;}function fe(_0x571164){const _0x27e59e=[];if(_0x571164['is']('element','listItem')&&_0x571164['getAttribute']('listIndent')>0x0){let _0x1d9307=_0x571164['nextSibling'];for(;_0x1d9307&&'listItem'==_0x1d9307['name']&&_0x1d9307['getAttribute']('listIndent')==_0x571164['getAttribute']('listIndent');)_0x27e59e['push'](_0x1d9307),_0x1d9307=_0x1d9307['nextSibling'];}return _0x27e59e;}class K extends _0x1dc395{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2870fc=this['editor']['config']['get']('list.properties'),_0x1cf35a=this['editor']['plugins']['get']('TrackChangesEditing');_0x2870fc['styles']&&_0x1cf35a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2870fc['reversed']&&_0x1cf35a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2870fc['startIndex']&&_0x1cf35a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1cf35a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5dc770,_0x43d04b={}){const _0x26726f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3dfb92=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x26726f['markMultiRangeBlockFormat'](_0x3dfb92,{'commandName':'listStyle','commandParams':[{'type':_0x43d04b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x594971,_0x564cce={}){const _0x13de92=this['editor']['plugins']['get']('TrackChangesEditing'),_0x63b90e=this['_getSuggestionBlocks'](_0xa967ba=>_0xa967ba['is']('element','listItem')&&'numbered'===_0xa967ba['getAttribute']('listType'));if(_0x63b90e['length']<0x1)return;const _0x138e9c=_0x63b90e['map'](_0x286fa1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x286fa1,'before'),this['editor']['model']['createPositionAt'](_0x286fa1,0x0)));this['editor']['model']['change'](()=>{_0x13de92['markMultiRangeBlockFormat'](_0x138e9c,{'commandName':'listReversed','commandParams':[{'reversed':_0x564cce['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x567b53,_0x129572={}){const _0x2c277c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46383a=this['_getSuggestionBlocks'](_0x571c7b=>_0x571c7b['is']('element','listItem')&&'numbered'===_0x571c7b['getAttribute']('listType'));if(_0x46383a['length']<0x1)return;const _0x9feb43=_0x46383a['map'](_0x2e42a8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2e42a8,'before'),this['editor']['model']['createPositionAt'](_0x2e42a8,0x0)));this['editor']['model']['change'](()=>{_0x2c277c['markMultiRangeBlockFormat'](_0x9feb43,{'commandName':'listStart','commandParams':[{'startIndex':_0x129572['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x31f3df){if('formatBlock'!=_0x31f3df['type']&&'formatInline'!=_0x31f3df['type'])return;const _0x3a410f=this['editor']['locale'],{data:_0x1f4811}=_0x31f3df;if(!_0x1f4811)return;let _0x4217b1,_0xaea7cf;switch(_0x1f4811['commandName']){case'listStyle':_0x4217b1='*Change\x20to:*\x20%0',_0xaea7cf={'type':'format','content':o(_0x3a410f,_0x4217b1,o(_0x3a410f,this['_getTranslationKeyForListStyle'](_0x1f4811['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4217b1=_0x1f4811['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xaea7cf={'type':'format','content':o(_0x3a410f,_0x4217b1)};break;case'listStart':_0x4217b1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xaea7cf={'type':'format','content':o(_0x3a410f,_0x4217b1,_0x1f4811['commandParams'][0x0]['startIndex'])};}return _0xaea7cf;}['_getSuggestionBlocksForListStyle'](){const _0x100e8a=this['editor']['plugins']['get']('LegacyListUtils');let _0x43dda1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x43dda1[0x0]?.['is']('element','listItem')&&_0x43dda1['unshift'](..._0x100e8a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x43dda1[_0x43dda1['length']-0x1]?.['is']('element','listItem')&&_0x43dda1['push'](..._0x100e8a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x43dda1=[...new Set(_0x43dda1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x43dda1=_0x43dda1['filter'](_0xa85567=>_0xa85567['is']('element','listItem'))),_0x43dda1;}['_getSuggestionBlocks'](_0x15320c){const _0x44f160=this['editor']['plugins']['get']('LegacyListUtils');let _0x16dea7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x15320c)['map'](_0x351ab9=>{const _0x58cf18=this['editor']['model']['createPositionAt'](_0x351ab9,0x0);return[..._0x44f160['getSiblingNodes'](_0x58cf18,'backward'),..._0x44f160['getSiblingNodes'](_0x58cf18,'forward')];})['flat']();return _0x16dea7=[...new Set(_0x16dea7)],_0x16dea7;}['_getTranslationKeyForListStyle'](_0x1bfd63){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1bfd63)||'default')['toUpperCase']()+'_LIST_'+_0x1bfd63['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1dc395{['afterInit'](){const _0xa2912d=this['editor'];if(!_0xa2912d['plugins']['has']('MediaEmbedEditing'))return;const _0x3218ca=_0xa2912d['plugins']['get']('TrackChangesEditing'),_0x1bf705=_0xa2912d['locale'];_0x3218ca['enableCommand']('mediaEmbed'),_0x3218ca['descriptionFactory']['registerElementLabel']('media',_0x1f35b5=>o(_0x1bf705,'ELEMENT_MEDIA',_0x1f35b5)),_0xa2912d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2bf5a0,{writer:_0x3016f6,options:_0x247706})=>{if(_0x247706['showSuggestionHighlights'])return _0x3016f6['createEmptyElement']('div');},'converterPriority':'high'}),_0xa2912d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4bf915,_0x581d1c,_0x266c86)=>{_0x266c86['options']['showSuggestionHighlights']&&_0x4bf915['stop']();},{'priority':'high'});}}class gt extends _0x1dc395{['afterInit'](){const _0x5eedb0=this['editor'];_0x5eedb0['plugins']['has']('MentionEditing')&&_0x5eedb0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1dc395{['afterInit'](){const _0x43f84b=this['editor'],_0x3a5cb2=_0x43f84b['plugins']['get']('TrackChangesEditing');_0x43f84b['plugins']['has']('MultiLevelList')&&(_0x3a5cb2['enableDefaultAttributesIntegration']('multiLevelList'),_0x3a5cb2['registerBlockAttribute']('listMarkerStyle'),_0x3a5cb2['descriptionFactory']['registerDescriptionCallback'](_0x5ccf15=>this['handleDescriptions'](_0x5ccf15)));}['handleDescriptions'](_0x52739f){const _0x19b3be=this['editor']['locale'],{data:_0x50de3b}=_0x52739f,_0x4e39fb={'type':'format','content':''};if(_0x50de3b&&'listMarkerStyle'==_0x50de3b['key']){if(!_0x50de3b['oldValue'])return{'type':'format','content':o(_0x19b3be,'*Set\x20format:*\x20%0',o(_0x19b3be,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x50de3b['newValue']+')'};if(!_0x50de3b['newValue']){let _0x2a4dd5=_0x52739f['head'];for(;_0x2a4dd5;){if(_0x2a4dd5['data']&&'listType'==_0x2a4dd5['data']['key']&&_0x2a4dd5['data']['newValue'])return _0x4e39fb;_0x2a4dd5=_0x2a4dd5['next'];}return{'type':'format','content':o(_0x19b3be,'*Remove\x20format:*\x20%0',o(_0x19b3be,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x50de3b['oldValue']+')'};}}}}class mt extends _0x1dc395{['afterInit'](){const _0xe784da=this['editor'];if(!_0xe784da['plugins']['has']('PageBreakEditing'))return;_0xe784da['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x27cb57=_0xe784da['plugins']['get']('TrackChangesEditing'),_0x4d788c=_0xe784da['locale'];_0x27cb57['descriptionFactory']['registerElementLabel']('pageBreak',_0x3b0315=>o(_0x4d788c,'ELEMENT_PAGE_BREAK',_0x3b0315));}}class dt extends _0x1dc395{['afterInit'](){const _0x3d08e2=this['editor'];if(!_0x3d08e2['plugins']['has']('Paragraph'))return;const _0x3afb6d=_0x3d08e2['locale'],_0x45d455=_0x3d08e2['plugins']['get']('TrackChangesEditing');_0x45d455['descriptionFactory']['registerElementLabel']('paragraph',_0x10d9c4=>o(_0x3afb6d,'ELEMENT_PARAGRAPH',_0x10d9c4)),_0x45d455['enableDefaultAttributesIntegration']('paragraph'),_0x45d455['enableCommand']('insertParagraph'),_0x3d08e2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3d08e2),{'priority':'highest'}),_0x3d08e2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x207867,_0x3ea4a2,_0x5bdd64)=>{_0x5bdd64['options']['showSuggestionHighlights']&&nr(_0x3d08e2,{'showActiveMarker':!0x1})(_0x207867,_0x3ea4a2,_0x5bdd64);},{'priority':'highest'});const _0x1262d2=_0x45d455['descriptionFactory'];_0x1262d2['registerDescriptionCallback'](_0x41bb06=>{if('insertion'!==_0x41bb06['type'])return;const {start:_0x5e2b20,end:_0xa0abb0}=_0x41bb06['getFirstRange']();if(!_0x5e2b20['isTouching'](_0xa0abb0)||!_0x5e2b20['nodeAfter'])return;const _0x34c60c=_0x3d08e2['model']['schema'],_0x5a4b94=_0x5e2b20['nodeAfter'];return _0x34c60c['isBlock'](_0x5a4b94)&&!_0x34c60c['isLimit'](_0x5a4b94)&&_0x34c60c['checkChild'](_0x5a4b94,'$text')?{'type':'insertion','content':o(_0x3afb6d,'*Insert:*\x20%0',_0x1262d2['getItemLabel'](_0x5a4b94,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x291067=this['editor'],_0x43a637=_0x291067['locale'];_0x291067['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6330c4=>{if('formatBlock'!=_0x6330c4['type'])return;const {data:_0x5eda87}=_0x6330c4;return _0x5eda87&&'paragraph'==_0x5eda87['commandName']?{'type':'format','content':o(_0x43a637,'*Change\x20to:*\x20%0',o(_0x43a637,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3064ba,{showActiveMarker:_0x5bf789=!0x0}={}){return(_0x5686ba,_0x505794,_0x96f0f2)=>{const _0x2b9034=_0x3064ba['plugins']['get']('TrackChangesEditing'),_0x2bf81d=_0x505794['markerRange']['start'],_0x167182=_0x505794['markerRange']['end'],_0x2ce986=_0x3064ba['model']['schema'];if(!_0x2bf81d['isTouching'](_0x167182)||!_0x2bf81d['nodeAfter'])return;const _0x4d99d7=_0x2bf81d['nodeAfter'];if(_0x2ce986['isBlock'](_0x4d99d7)&&!_0x2ce986['isLimit'](_0x4d99d7)&&_0x2ce986['checkChild'](_0x4d99d7,'$text')){if(!_0x96f0f2['consumable']['consume'](_0x505794['markerRange'],_0x5686ba['name']))return;const _0x1f0ae6=_0x96f0f2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5c34c3=_0x96f0f2['mapper']['toViewPosition'](_0x167182);_0x5bf789&&_0x2b9034['activeMarkers']['includes'](_0x505794['markerName'])&&_0x96f0f2['writer']['addClass']('ck-suggestion-marker--active',_0x1f0ae6),_0x96f0f2['writer']['insert'](_0x5c34c3,_0x1f0ae6),_0x96f0f2['mapper']['bindElementToMarker'](_0x1f0ae6,_0x505794['markerName']);}};}class pt extends _0x1dc395{['afterInit'](){const _0x13aaff=this['editor'];if(!_0x13aaff['plugins']['has']('RemoveFormatEditing'))return;_0x13aaff['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a5039=this['editor'];_0x4a5039['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54ea72=>{if('formatBlock'!=_0x54ea72['type']&&'formatInline'!=_0x54ea72['type'])return;const {data:_0x2e5e0d}=_0x54ea72;return _0x2e5e0d&&'removeFormat'==_0x2e5e0d['commandName']?{'type':'format','content':o(_0x4a5039['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1dc395{['afterInit'](){const _0x2e8062=this['editor'];if(!_0x2e8062['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5fab2e=_0x2e8062['plugins']['get']('TrackChangesEditing');_0x5fab2e['enableCommand']('goToPreviousRestrictedEditingException'),_0x5fab2e['enableCommand']('goToNextRestrictedEditingException');const _0x3e77ba=_0x2e8062['plugins']['get']('RestrictedEditingModeEditing');_0x3e77ba['enableCommand']('trackChanges'),_0x3e77ba['enableCommand']('acceptSuggestion'),_0x3e77ba['enableCommand']('discardSuggestion'),_0x3e77ba['enableCommand']('acceptAllSuggestions'),_0x3e77ba['enableCommand']('discardAllSuggestions'),_0x3e77ba['enableCommand']('acceptSelectedSuggestions'),_0x3e77ba['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1dc395{static get['requires'](){return[_0x5d8131];}['init'](){const _0x610504=this['editor'],_0x32850b=_0x610504['plugins']['get']('TrackChangesEditing');_0x32850b['enableCommand']('shiftEnter'),_0x610504['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x610504),{'priority':'high'}),_0x610504['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x610504),{'priority':'high'}),_0x610504['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1d8f7b,_0x4ef0ff,_0x3265cc)=>{_0x3265cc['options']['showSuggestionHighlights']&&de(_0x610504,{'showActiveMarker':!0x1})(_0x1d8f7b,_0x4ef0ff,_0x3265cc);}),_0x32850b['descriptionFactory']['registerElementLabel']('softBreak',_0xa2c83d=>o(_0x610504['locale'],'ELEMENT_LINE_BREAK',_0xa2c83d));}}function de(_0x376a9f,{showActiveMarker:_0x2b4943=!0x0}={}){return(_0x5a5302,_0x678f97,_0x38f457)=>{const _0x2baecb=_0x376a9f['plugins']['get']('TrackChangesEditing');if(!_0x38f457['consumable']['test'](_0x678f97['markerRange'],_0x5a5302['name']))return;const _0x4bb6d4=_0x376a9f['model'];for(const _0x382399 of _0x678f97['markerRange']['getItems']()){if(!_0x382399['is']('element','softBreak'))continue;const _0x1d0e39='deletion'==_0x678f97['markerName']['split'](':')[0x1]?'merge':'split',_0x17ef51=_0x38f457['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1d0e39}),_0x40109c=_0x38f457['mapper']['toViewPosition'](_0x4bb6d4['createPositionBefore'](_0x382399));_0x2b4943&&_0x2baecb['activeMarkers']['includes'](_0x678f97['markerName'])&&_0x38f457['writer']['addClass']('ck-suggestion-marker--active',_0x17ef51),_0x38f457['writer']['insert'](_0x40109c,_0x17ef51),_0x38f457['mapper']['bindElementToMarker'](_0x17ef51,_0x678f97['markerName']);}};}class wt extends _0x1dc395{['afterInit'](){const _0x5800eb=this['editor'],_0x201aa3=_0x5800eb['model'],_0x3974f2=_0x5800eb['locale'];if(!_0x5800eb['plugins']['has']('StandardEditingModeEditing'))return;const _0x1c4bd7=_0x5800eb['plugins']['get']('TrackChangesEditing'),_0x2b46da='restrictedEditingException',_0x4021c8=_0x5800eb['commands']['get'](_0x2b46da);_0x1c4bd7['enableCommand'](_0x2b46da,(_0x23e9a0,_0x5299d2={})=>{const _0x357dc0=_0x201aa3['document']['selection'];if(_0x357dc0['isCollapsed'])return void _0x23e9a0(_0x5299d2);const _0x42a1e5=void 0x0!==_0x5299d2['forceValue']?_0x5299d2['forceValue']:!_0x4021c8['value'];_0x201aa3['change'](()=>{const _0x2ef628=Array['from'](_0x357dc0['getRanges']());for(const _0x50c96a of _0x2ef628){const _0x5f38e1=_0x42a1e5?[_0x50c96a]:io(_0x2b46da,_0x50c96a,_0x201aa3);for(const _0x58c876 of _0x5f38e1)_0x1c4bd7['markInlineFormat'](_0x58c876,{'commandName':_0x2b46da,'commandParams':[{'forceValue':_0x42a1e5}]});}});}),_0x1c4bd7['descriptionFactory']['registerDescriptionCallback'](_0x9712ee=>{if('formatBlock'!=_0x9712ee['type']&&'formatInline'!=_0x9712ee['type'])return;const {data:_0x4587b8}=_0x9712ee;return _0x4587b8&&_0x4587b8['commandName']==_0x2b46da?_0x4587b8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3974f2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3974f2,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1dc395{['afterInit'](){const _0x4b06e5=this['editor'];if(!_0x4b06e5['plugins']['has']('Style')||!_0x4b06e5['plugins']['has']('DataSchema'))return;const _0x45076b=_0x4b06e5['plugins']['get']('TrackChangesEditing'),_0x1645e3=_0x4b06e5['locale'],_0x73f546=_0x4b06e5['config']['get']('style')||{},_0x4a25ba=_0x4b06e5['plugins']['get']('GeneralHtmlSupport'),_0x4e402c=_0x4b06e5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4b06e5['plugins']['get']('DataSchema'),_0x73f546['definitions']);_0x45076b['enableDefaultAttributesIntegration']('style');const _0x1bccdf=new Set();for(const _0x19a950 of _0x4e402c['block']){const _0x49ddb8=_0x4a25ba['getGhsAttributeNameForElement'](_0x19a950['element']);_0x1bccdf['add'](_0x49ddb8);}const _0x2cc712=new Set();for(const _0x304943 of _0x4e402c['inline']){const _0x37673b=_0x4a25ba['getGhsAttributeNameForElement'](_0x304943['element']);_0x2cc712['add'](_0x37673b);for(const _0x57ef08 of _0x304943['ghsAttributes'])_0x2cc712['add'](_0x57ef08);}for(const _0x5921a2 of _0x1bccdf)_0x45076b['registerBlockAttribute'](_0x5921a2),_0x45076b['descriptionFactory']['registerAttributeLabel'](_0x5921a2,o(_0x1645e3,'FORMAT_STYLE'));for(const _0x2b6975 of _0x2cc712)_0x45076b['registerInlineAttribute'](_0x2b6975),_0x45076b['descriptionFactory']['registerAttributeLabel'](_0x2b6975,o(_0x1645e3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x530055=this['editor'],_0x1492d8=_0x530055['locale'];_0x530055['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26a772=>{if('formatBlock'!=_0x26a772['type']&&'formatInline'!=_0x26a772['type'])return;const {data:_0x4e4524}=_0x26a772;return _0x4e4524&&'style'===_0x4e4524['commandName']?_0x4e4524['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1492d8,'*Set\x20format:*\x20%0',_0x4e4524['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1492d8,'*Remove\x20format:*\x20%0',_0x4e4524['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1dc395{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x13d5fb){super(_0x13d5fb),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2fe85c=this['editor'],_0x354777=_0x2fe85c['model']['document']['selection'];if(!_0x2fe85c['plugins']['has']('TableEditing'))return;const _0xdeec4c=_0x2fe85c['locale'],_0x193feb=_0x2fe85c['plugins']['get']('TrackChangesEditing'),_0xd4db1f=_0x2fe85c['plugins']['get']('TableUtils');_0x193feb['descriptionFactory']['registerElementLabel']('table',_0x1f65c3=>o(_0xdeec4c,'ELEMENT_TABLE',_0x1f65c3)),this['_setupColumnsRowsFixing'](),_0x193feb['enableCommand']('insertTable'),_0x193feb['enableCommand']('selectTableRow'),_0x193feb['enableCommand']('selectTableColumn');for(const _0x38bd3a of['insertTableRowAbove','insertTableRowBelow']){const _0x20634c=_0x2fe85c['commands']['get'](_0x38bd3a);_0x193feb['enableCommand'](_0x38bd3a,_0x32b948=>{_0x2fe85c['model']['change'](_0x3cf8d0=>{_0x32b948();const _0x3060c0='above'===_0x20634c['order'],_0x2dfa20=_0xd4db1f['getSelectionAffectedTableCells'](_0x354777),_0x5933d5=_0xd4db1f['getRowIndexes'](_0x2dfa20),_0x262f6e=_0x3060c0?_0x5933d5['first']-0x1:_0x5933d5['last']+0x1,_0x2566bd=_0x2dfa20[0x0]['findAncestor']('table'),_0x5daad2=_0xd4db1f['createTableWalker'](_0x2566bd,{'startRow':_0x262f6e,'endRow':_0x262f6e}),_0x43a7e9=Array['from'](_0x5daad2)['map'](_0x10f12d=>_0x3cf8d0['createRangeOn'](_0x10f12d['cell']));_0x193feb['markMultiRangeInsertion'](_0x43a7e9,'tableRow');});});}for(const _0x18f20e of['insertTableColumnLeft','insertTableColumnRight']){const _0x390f56=_0x2fe85c['commands']['get'](_0x18f20e);_0x193feb['enableCommand'](_0x18f20e,_0x4ce86d=>{_0x2fe85c['model']['change'](_0x4ce9b4=>{_0x4ce86d();const _0x1495e5='left'===_0x390f56['order'],_0x1f84ea=_0xd4db1f['getSelectionAffectedTableCells'](_0x354777),_0x5ba456=_0xd4db1f['getColumnIndexes'](_0x1f84ea),_0x59a9bb=_0x1495e5?_0x5ba456['first']-0x1:_0x5ba456['last']+0x1,_0x3a4051=_0x1f84ea[0x0]['findAncestor']('table'),_0x219850=_0xd4db1f['createTableWalker'](_0x3a4051,{'startRow':0x0,'column':_0x59a9bb,'includeAllSlots':!0x1}),_0x27c7b9=Array['from'](_0x219850)['map'](_0x59c523=>_0x4ce9b4['createRangeOn'](_0x59c523['cell']));_0x193feb['markMultiRangeInsertion'](_0x27c7b9,'tableColumn');});});}for(const _0x1a61e4 of['removeTableRow','removeTableColumn']){const _0x5c74cd=_0x1a61e4['substr'](0xb),_0x5100a1=_0x5c74cd['toLowerCase'](),_0x3ddef0=_0x5100a1['substr'](0x0,0x3)+'span',_0x2219d6='table'+_0x5c74cd,_0x2096fa='min'+_0x5c74cd,_0x22d370='max'+_0x5c74cd;_0x193feb['enableCommand'](_0x1a61e4,()=>{_0x2fe85c['model']['change'](_0x19e06f=>{const _0x4cab89=_0xd4db1f['getSelectionAffectedTableCells'](_0x354777),_0x576939=_0x4cab89[0x0]['findAncestor']('table');let _0x497f90;if('removeTableRow'==_0x1a61e4){const _0x4c74a1=_0xd4db1f['getRowIndexes'](_0x4cab89);_0x497f90={'startRow':_0x4c74a1['first'],'endRow':_0x4c74a1['last'],'includeAllSlots':!0x0};}else{const _0x53c48c=_0xd4db1f['getColumnIndexes'](_0x4cab89);_0x497f90={'startColumn':_0x53c48c['first'],'endColumn':_0x53c48c['last'],'includeAllSlots':!0x0};}const _0x19816d=_0xd4db1f['createTableWalker'](_0x576939,_0x497f90),_0x35b25b=Array['from'](_0x19816d)['map'](({cell:_0x1a29e9})=>_0x1a29e9),_0xb37d8d=Ee(_0x35b25b['filter'](_0x5efa37=>_0x5efa37['hasAttribute'](_0x3ddef0))),_0x5eb4fe=Ee(_0x35b25b['filter'](_0x42f606=>!_0x42f606['hasAttribute'](_0x3ddef0)))['map'](_0xd69fac=>_0x19e06f['createRangeOn'](_0xd69fac)),_0x3107f5=_0x193feb['markMultiRangeDeletion'](_0x5eb4fe,_0x2219d6);if(_0x3107f5&&('tableRow'==_0x3107f5['subType']||'tableColumn'==_0x3107f5['subType'])){const _0x1a1e59=this['_getSuggestionCoords'](_0x3107f5);for(const _0x1c2dae of _0xb37d8d){const _0x310999=_0x19e06f['createRangeOn'](_0x1c2dae),_0x2c7822=_0xd4db1f['getCellLocation'](_0x1c2dae),_0x2ff7d3=_0x1c2dae['getAttribute'](_0x3ddef0)-0x1,_0x55352f=_0x1a1e59[_0x2096fa],_0x22b748=_0x1a1e59[_0x22d370];_0x55352f<=_0x2c7822[_0x5100a1]&&_0x2c7822[_0x5100a1]+_0x2ff7d3<=_0x22b748&&_0x3107f5['addRange'](_0x310999);}}});});}function _0x4b4e08(_0x317a0a){const _0x24205e=Array['from'](_0x354777['getRanges']())['map'](_0x14a2e9=>_0x5e8b6d['fromRange'](_0x14a2e9));_0x2fe85c['model']['change'](_0x3850a6=>{const _0x3e673f=_0x3850a6['batch'];_0x317a0a=_0x317a0a['filter'](_0x2fe47e=>'$graveyard'!=_0x2fe47e['root']['rootName']),_0x3850a6['setSelection'](_0x317a0a),_0x2fe85c['commands']['get']('removeTableRow')['refresh'](),_0x2fe85c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2fe85c['model']['enqueueChange'](()=>{_0x2fe85c['model']['enqueueChange'](_0x3e673f,_0x13f344=>{const _0x39be68=_0x24205e['filter'](_0x5b6da0=>'$graveyard'!=_0x5b6da0['root']['rootName']);_0x39be68['length']>0x0&&_0x13f344['setSelection'](_0x39be68);for(const _0x169d44 of _0x24205e)_0x169d44['detach']();});});});}function _0x3cebc3(_0x35b706){_0x2fe85c['model']['change'](_0x2b0ae1=>{const _0x3a71d4=Array['from'](_0x354777['getRanges']())['map'](_0x5ddd8f=>_0x5e8b6d['fromRange'](_0x5ddd8f)),_0x24dfb3=[];for(const _0x1b647d of _0x35b706)for(const _0x327c8a of _0x1b647d['getItems']({'shallow':!0x0}))_0x24dfb3['push'](_0x327c8a);for(const _0x185b4f of _0x24dfb3)'$graveyard'!=_0x185b4f['root']['rootName']&&(_0x2b0ae1['setSelection'](_0x2b0ae1['createPositionAt'](_0x185b4f,0x0)),_0x2fe85c['commands']['get']('removeTableColumn')['refresh'](),_0x2fe85c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x476be9=_0x3a71d4['filter'](_0x3b9d26=>'$graveyard'!=_0x3b9d26['root']['rootName']);_0x476be9['length']>0x0&&_0x2b0ae1['setSelection'](_0x476be9);for(const _0x14f74f of _0x3a71d4)_0x14f74f['detach']();});}function _0x598b5f(_0x37a17e,_0x2e7e3b){return _0x2e7e3b['every'](_0x432ace=>_0x37a17e['some'](_0x20bed6=>_0x20bed6['end']['isEqual'](_0x432ace['start'])||_0x432ace['end']['isEqual'](_0x20bed6['start'])));}function _0x2d29ba(_0x5e5ec0,_0x400eef){return!_0x5e5ec0['some'](_0x4fff0c=>_0x400eef['some'](_0x13f523=>_0x4fff0c['isIntersecting'](_0x13f523)))&&_0x5e5ec0['some'](_0x4101ac=>_0x400eef['some'](_0x5596a9=>_0x4101ac['end']['isTouching'](_0x5596a9['start'])));}_0x2fe85c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x58a94a,_0x1151a0,_0x4bcd71)=>{if(!_0x4bcd71['options']['showSuggestionHighlights'])return;const _0x8aec=_0x1151a0['item'];if(!_0x8aec)return;const _0x57e893=_0x4bcd71['mapper']['toViewElement'](_0x8aec);function _0x3657e8(_0x48de76){return Array['isArray'](_0x48de76)?_0x48de76:[_0x48de76];}_0x57e893&&'tableCell'===_0x8aec['name']&&_0x3c8cc7(_0x57e893,_0x4bcd71['writer'],(_0x82e1a0,_0x203a05,_0x5ced49)=>_0x5ced49['addClass'](_0x3657e8(_0x203a05['classes']),_0x82e1a0),(_0x639a78,_0x4b0b56,_0x4b70d9)=>_0x4b70d9['removeClass'](_0x3657e8(_0x4b0b56['classes']),_0x639a78));},{'priority':'highest'}),_0x193feb['descriptionFactory']['registerDescriptionCallback'](_0xd1e628=>{if('insertion'!=_0xd1e628['type']&&'deletion'!=_0xd1e628['type'])return;const _0x4b1d6e=_0xd1e628['getContainedElement']();if(null!=_0x4b1d6e&&_0x4b1d6e['is']('element','table')){if('insertion'==_0xd1e628['type']){const _0x1d06fb=_0xd1e628['getItems']()['filter'](_0x389948=>_0x389948['is']('$textProxy'))['map'](_0x20c287=>_0x20c287['data']);if(_0x1d06fb['length'])return{'type':'insertion','content':o(_0xdeec4c,'*Insert:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1d06fb['join']('\x20')+'\x22'))};}if('deletion'==_0xd1e628['type']){const _0x2a88d6=_0xd1e628['getItems']()['filter'](_0x69203a=>_0x69203a['is']('$textProxy'))['map'](_0xcb5a71=>_0xcb5a71['data']);if(_0x2a88d6['length'])return{'type':'deletion','content':o(_0xdeec4c,'*Remove:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2a88d6['join']('\x20')+'\x22'))};}}}),_0x193feb['descriptionFactory']['registerDescriptionCallback'](_0x3ed1ed=>{if('tableRow'==_0x3ed1ed['subType']){const _0xbeea8a=_0x3ed1ed['getItems']()['filter'](_0x517357=>_0x517357['is']('$textProxy'))['map'](_0x561e22=>_0x561e22['data']),_0x2ef747=this['_getSuggestionCoords'](_0x3ed1ed),_0x18d6d7=_0x2ef747['maxRow']-_0x2ef747['minRow']+0x1;if('insertion'==_0x3ed1ed['type'])return _0xbeea8a['length']?{'type':'insertion','content':o(_0xdeec4c,'*Insert:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x18d6d7,'\x22'+_0xbeea8a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xdeec4c,'*Insert:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_ROW',_0x18d6d7))};if('deletion'==_0x3ed1ed['type'])return _0xbeea8a['length']?{'type':'deletion','content':o(_0xdeec4c,'*Remove:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x18d6d7,'\x22'+_0xbeea8a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xdeec4c,'*Remove:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_ROW',_0x18d6d7))};}if('tableColumn'==_0x3ed1ed['subType']){const _0x3a5a3b=_0x3ed1ed['getItems']()['filter'](_0x5c10ad=>_0x5c10ad['is']('$textProxy'))['map'](_0x471114=>_0x471114['data']),_0x4deded=this['_getSuggestionCoords'](_0x3ed1ed),_0x28dd13=_0x4deded['maxColumn']-_0x4deded['minColumn']+0x1;if('insertion'==_0x3ed1ed['type'])return _0x3a5a3b['length']?{'type':'insertion','content':o(_0xdeec4c,'*Insert:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x28dd13,'\x22'+_0x3a5a3b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xdeec4c,'*Insert:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_COLUMN',_0x28dd13))};if('deletion'==_0x3ed1ed['type'])return _0x3a5a3b['length']?{'type':'deletion','content':o(_0xdeec4c,'*Remove:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x28dd13,'\x22'+_0x3a5a3b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xdeec4c,'*Remove:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_COLUMN',_0x28dd13))};}}),_0x193feb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4b4e08),_0x193feb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4b4e08),_0x193feb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3cebc3),_0x193feb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3cebc3),_0x193feb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x598b5f),_0x193feb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x598b5f),_0x193feb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2d29ba),_0x193feb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2d29ba);}['_acceptFormatSuggestionCallbackFactory'](){const _0x6351dd=this['editor'],_0x46bdb0=_0x6351dd['model']['document']['selection'];return(_0x5c40d1,_0x15c8c6)=>{_0x6351dd['model']['change'](_0x2197fc=>{const {commandName:_0x2705a9,commandParams:_0x2394d7}=_0x15c8c6;let _0x21e7db=_0x5c40d1[0x0]['end']['nodeBefore'];_0x2394d7&&_0x2394d7[0x0]&&!0x1===_0x2394d7[0x0]['forceValue']&&(_0x21e7db=_0x5c40d1[0x0]['start']['nodeAfter']);const _0x39c614=_0x2197fc['createRangeIn'](_0x21e7db);if('$graveyard'==_0x39c614['root']['rootName'])return;const _0xe9bc46=Array['from'](_0x46bdb0['getRanges']())['map'](_0x1e7e2e=>_0x5e8b6d['fromRange'](_0x1e7e2e));_0x2197fc['setSelection'](_0x39c614),_0x6351dd['commands']['get'](_0x2705a9)['refresh'](),_0x2394d7['push']({'forceDefaultExecution':!0x0}),_0x6351dd['execute'](_0x2705a9,..._0x2394d7);const _0x3b44a8=_0xe9bc46['filter'](_0x2aa578=>'$graveyard'!=_0x2aa578['root']['rootName']);_0x3b44a8['length']>0x0&&_0x2197fc['setSelection'](_0x3b44a8);for(const _0xff89b1 of _0xe9bc46)_0xff89b1['detach']();});};}['_getCoordsForCells'](_0x4140e0){const _0x9ac02=this['editor']['plugins']['get']('TableUtils');let _0x1873d7=Number['MAX_SAFE_INTEGER'],_0x3aca49=Number['MIN_SAFE_INTEGER'],_0x4792e7=Number['MAX_SAFE_INTEGER'],_0x56b766=Number['MIN_SAFE_INTEGER'];for(const _0x45bea6 of _0x4140e0){if('$graveyard'==_0x45bea6['root']['rootName'])continue;const {row:_0x20dbeb,column:_0x11f2a6}=_0x9ac02['getCellLocation'](_0x45bea6),_0x2c461d=_0x45bea6['hasAttribute']('rowspan')?_0x45bea6['getAttribute']('rowspan')-0x1:0x0,_0x20d1ca=_0x45bea6['hasAttribute']('colspan')?_0x45bea6['getAttribute']('colspan')-0x1:0x0;_0x1873d7=_0x20dbeb<_0x1873d7?_0x20dbeb:_0x1873d7,_0x3aca49=_0x20dbeb+_0x2c461d>_0x3aca49?_0x20dbeb+_0x2c461d:_0x3aca49,_0x4792e7=_0x11f2a6<_0x4792e7?_0x11f2a6:_0x4792e7,_0x56b766=_0x11f2a6+_0x20d1ca>_0x56b766?_0x11f2a6+_0x20d1ca:_0x56b766;}return{'minRow':_0x1873d7,'maxRow':_0x3aca49,'minColumn':_0x4792e7,'maxColumn':_0x56b766};}['_setupColumnsRowsFixing'](){const _0x27fe74=this['editor'],_0x360aa3=_0x27fe74['plugins']['get']('TrackChangesEditing'),_0x2daea4=_0x27fe74['plugins']['get']('TableUtils');_0x27fe74['model']['document']['on']('change:data',()=>{const _0x19391d=Array['from'](_0x27fe74['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x462df1,data:_0x442239}of _0x19391d){const {group:_0x18598b,id:_0x1f855e,subType:_0x83319e}=_0x360aa3['_splitMarkerName'](_0x462df1);if('suggestion'!=_0x18598b)continue;if(null!=_0x442239['oldRange'])continue;const _0x305f2d=_0x360aa3['getSuggestion'](_0x1f855e);this['_tablePostFixingSubtypes']['includes'](_0x83319e)&&this['_tableSuggestions']['add'](_0x305f2d);}},{'priority':'low'});const _0x21748d=(_0x297db4,_0x18d164)=>{let _0x4d45e8=!0x1;const _0x2cd7e1=_0x18d164['createRangeOn'](_0x297db4),_0x3ad485=_0x297db4['findAncestor']('table'),_0x14ace4=_0x2daea4['getCellLocation'](_0x297db4);for(const _0x10f4fb of this['_tableSuggestions']){const _0x1857a4=_0x10f4fb['subType'],_0x3b4652=_0x1857a4['startsWith']('tablePaste'),_0x34233e=_0x1857a4['substr'](_0x3b4652?0xa:0x5),_0x4104e8=_0x34233e['toLowerCase'](),_0x25d69f=_0x4104e8['substr'](0x0,0x3)+'span',_0x977516='min'+_0x34233e,_0xee077c='max'+_0x34233e;if(!_0x10f4fb['isInContent'])continue;if(_0x3ad485!=_0x10f4fb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x10f4fb['isIntersectingWithRange'](_0x2cd7e1))continue;const _0x40ae63=_0x297db4['hasAttribute'](_0x25d69f)?_0x297db4['getAttribute'](_0x25d69f)-0x1:0x0,_0x1c6be3=this['_getSuggestionCoords'](_0x10f4fb),_0x458b4a=_0x1c6be3[_0x977516],_0x4dc258=_0x1c6be3[_0xee077c];_0x458b4a<=_0x14ace4[_0x4104e8]&&_0x14ace4[_0x4104e8]+_0x40ae63<=_0x4dc258&&(_0x10f4fb['addRange'](_0x2cd7e1),_0x4d45e8=!0x0);}return _0x4d45e8;};_0x27fe74['model']['document']['registerPostFixer'](_0xb66777=>{let _0xfa281a=!0x1;for(const _0x1318f0 of _0x27fe74['model']['document']['differ']['getChanges']())if('insert'==_0x1318f0['type']){if('tableRow'==_0x1318f0['name']){for(const _0x244953 of _0x1318f0['position']['nodeAfter']['getChildren']())_0xfa281a=_0xfa281a||_0x21748d(_0x244953,_0xb66777);}else'tableCell'==_0x1318f0['name']&&(_0xfa281a=_0xfa281a||_0x21748d(_0x1318f0['position']['nodeAfter'],_0xb66777));}return _0xfa281a;});}['_getSuggestionCoords'](_0x1525c7){return this['_getCoordsForCells'](_0x1525c7['getRanges']()['map'](_0x38fcba=>_0x38fcba['start']['nodeAfter']));}}function Ee(_0x1977db){return Array['from'](new Set(_0x1977db)['values']());}class St extends _0x1dc395{static get['requires'](){return[jt];}['afterInit'](){const _0x5b190f=this['editor'],_0x1f7e20=_0x5b190f['model']['document']['selection'],_0x54ac6f=_0x5b190f['locale'];if(!_0x5b190f['plugins']['has']('TableEditing'))return;const _0x631ba2=_0x5b190f['plugins']['get']('TrackChangesEditing'),_0x3f6b75=_0x5b190f['plugins']['get']('TableUtils'),_0x3a2c35=_0x5b190f['plugins']['get'](jt);_0x3a2c35['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x631ba2['enableCommand']('mergeTableCells',()=>{const _0x1e713c=_0x3f6b75['getSelectionAffectedTableCells'](_0x5b190f['model']['document']['selection']);_0x5b190f['model']['change'](()=>{_0x631ba2['markMultiRangeBlockFormat'](_0x1e713c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5b190f['commands']['get']('mergeTableCells')['on']('execute',(_0x36c83f,_0x3d16b0)=>{_0x5b190f['commands']['get']('trackChanges')['value']&&(_0x3d16b0['length']>0x0&&_0x3d16b0[_0x3d16b0['length']-0x1]&&_0x3d16b0[_0x3d16b0['length']-0x1]['forceDefaultExecution']||_0x631ba2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x36c83f['stop']());},{'priority':'highest'});for(const _0xd61cc0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x156507=_0x5b190f['commands']['get'](_0xd61cc0);_0x631ba2['enableCommand'](_0xd61cc0,()=>{const _0xefdaea=_0x5b190f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x594ff9=>_0x594ff9['is']('element','tableCell')),_0x2e5516=_0x156507['value'];_0x5b190f['model']['change'](()=>{_0x631ba2['markMultiRangeBlockFormat']([_0xefdaea,_0x2e5516],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1a876a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x8b3335=_0x5b190f['commands']['get'](_0x1a876a);_0x631ba2['enableCommand'](_0x1a876a,()=>{const _0x3247c4=_0x3f6b75['getSelectionAffectedTableCells'](_0x5b190f['model']['document']['selection'])[0x0],_0x4c18f4=_0x3247c4['findAncestor']('table'),{column:_0x2ef5b0,row:_0x191cea}=_0x3f6b75['getCellLocation'](_0x3247c4);let _0xca3e8f=[];if('horizontally'==_0x8b3335['direction']){const _0x20d575=_0x3f6b75['createTableWalker'](_0x4c18f4,{'startRow':_0x191cea,'endRow':_0x191cea,'includeAllSlots':!0x0});_0xca3e8f=Array['from'](_0x20d575)['map'](_0x22ee46=>_0x22ee46['cell']);}else{const _0x224888=_0x3f6b75['createTableWalker'](_0x4c18f4,{'column':_0x2ef5b0,'includeAllSlots':!0x0});_0xca3e8f=Array['from'](_0x224888)['map'](_0x27eee8=>_0x27eee8['cell']);}_0x5b190f['model']['change'](_0x5b6435=>{_0x631ba2['markBlockFormat'](_0x5b6435['createRangeOn'](_0x3247c4),{'commandName':_0x1a876a,'commandParams':[]},_0xca3e8f,_0x1a876a);});});}_0x631ba2['descriptionFactory']['registerDescriptionCallback'](_0x3aa48f=>{if('formatBlock'!=_0x3aa48f['type']&&'formatInline'!=_0x3aa48f['type'])return;const {data:_0x11e16a}=_0x3aa48f;return _0x11e16a&&'mergeTableCells'==_0x11e16a['commandName']?{'type':'format','content':o(_0x54ac6f,'*Merge\x20cells*')}:void 0x0;}),_0x631ba2['descriptionFactory']['registerDescriptionCallback'](_0x50414a=>{if('formatBlock'!=_0x50414a['type']&&'formatInline'!=_0x50414a['type'])return;const {data:_0x254bba}=_0x50414a;return _0x254bba?'splitTableCellVertically'==_0x254bba['commandName']?{'type':'format','content':o(_0x54ac6f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x254bba['commandName']?{'type':'format','content':o(_0x54ac6f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x32f77d=_0x3a2c35['_acceptFormatSuggestionCallbackFactory']();for(const _0x4dae87 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x631ba2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4dae87,'accept',_0x32f77d);for(const _0x10b0a9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x631ba2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10b0a9,'accept',_0x32f77d);_0x631ba2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x338bee=>{_0x5b190f['model']['change'](_0x159e53=>{const _0x1cbd4a=Array['from'](_0x1f7e20['getRanges']())['map'](_0x110184=>_0x5e8b6d['fromRange'](_0x110184));_0x159e53['setSelection'](_0x338bee),_0x5b190f['commands']['get']('mergeTableCells')['refresh'](),_0x5b190f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x583612=_0x1cbd4a['filter'](_0x5251a4=>'$graveyard'!=_0x5251a4['root']['rootName']);_0x583612['length']>0x0&&_0x159e53['setSelection'](_0x583612);for(const _0x475d00 of _0x1cbd4a)_0x475d00['detach']();});});for(const _0x355db7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5173f2=_0x5b190f['commands']['get'](_0x355db7);_0x5173f2['on']('set:isEnabled',(_0x577fa3,_0x127a8e,_0x23bdd7)=>{if(_0x23bdd7){const _0x4083b2=_0x5b190f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5cacec=>_0x5cacec['is']('element','tableCell'));this['_areMergableCells'](_0x5173f2['value'],_0x4083b2)||(_0x577fa3['return']=!0x1,_0x577fa3['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3be64b=this['editor']['commands']['get']('mergeTableCells'),_0xf1adb3=this['editor']['plugins']['get']('TableUtils');if(!_0x3be64b['isEnabled'])return!0x1;const _0x5d491d=_0xf1adb3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2edef8 of _0x5d491d)for(const _0x3ab443 of _0x5d491d)if(_0x2edef8!=_0x3ab443&&!this['_areMergableCells'](_0x2edef8,_0x3ab443))return!0x1;return!0x0;}['_areMergableCells'](_0x22ed41,_0xba5f50){const _0x39f61b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x153c20=this['editor']['model']['createRangeOn'](_0x22ed41),_0x485e4d=this['editor']['model']['createRangeOn'](_0xba5f50),_0x32785e=new Set(),_0x2471b9=new Set();for(const _0x2b9f02 of _0x39f61b['getSuggestions']())if(('insertion'==_0x2b9f02['type']||'deletion'==_0x2b9f02['type']||'mergeTableCells'==_0x2b9f02['subType'])&&_0x2b9f02['isInContent']){for(const _0x1ba1ea of _0x2b9f02['getRanges']())_0x1ba1ea['containsRange'](_0x153c20,!0x0)&&_0x32785e['add'](_0x2b9f02['type']+':'+_0x2b9f02['author']['id']),_0x1ba1ea['containsRange'](_0x485e4d,!0x0)&&_0x2471b9['add'](_0x2b9f02['type']+':'+_0x2b9f02['author']['id']);}if(_0x32785e['size']!=_0x2471b9['size'])return!0x1;for(const _0x3953b4 of _0x32785e)if(!_0x2471b9['has'](_0x3953b4))return!0x1;return!0x0;}}class At extends _0x1dc395{static get['requires'](){return[jt];}['afterInit'](){const _0x3f676c=this['editor'];if(!_0x3f676c['plugins']['has']('TableEditing'))return;const _0x246e76=_0x3f676c['locale'],_0x4d6027=_0x3f676c['plugins']['get']('TrackChangesEditing');_0x4d6027['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4d6027['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4d6027['registerBlockAttribute']('headingRows'),_0x4d6027['registerBlockAttribute']('headingColumns'),_0x4d6027['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x246e76,'FORMAT_HEADER_ROW')),_0x4d6027['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x246e76,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x148266=this['editor']['plugins']['get']('TrackChangesEditing'),_0x424607=this['editor']['plugins']['get']('TableUtils'),_0x112a20=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x122a27({showActiveMarker:_0x2c2949=!0x0,setDataAttribute:_0x4dc322=!0x0}={}){return(_0x9a7294,_0x20d4ed,_0x2871e0)=>{const {type:_0x4301f0,id:_0xa46b16}=_0x148266['_splitMarkerName'](_0x20d4ed['markerName']),_0x23bc37=_0x148266['getSuggestion'](_0xa46b16),_0x37e8a0=_0x23bc37['data'];if('formatBlock'!=_0x23bc37['type']||!_0x37e8a0||'setTableColumnHeader'!=_0x37e8a0['commandName'])return;if(_0x20d4ed['item'])return void _0x9a7294['stop']();if(!_0x2871e0['consumable']['consume'](_0x20d4ed['markerRange'],_0x9a7294['name']))return;const _0x3e425d=_0x20d4ed['markerRange']['start']['nodeAfter'],_0x2b7d2c=_0x20d4ed['markerRange']['end']['nodeBefore'],_0x259219=_0x3e425d['parent']['parent'],{column:_0x16c247}=_0x424607['getCellLocation'](_0x3e425d),{column:_0x10a35d}=_0x424607['getCellLocation'](_0x2b7d2c);for(let _0xff0bf=_0x16c247;_0xff0bf<=_0x10a35d;_0xff0bf++){const _0x31a426=_0x424607['createTableWalker'](_0x259219,{'column':_0xff0bf,'includeAllSlots':!0x1});for(const _0x8cd3f6 of _0x31a426){const _0x93d740=_0x8cd3f6['cell'],_0x3655e8=_0x2871e0['mapper']['toViewElement'](_0x93d740);_0x2871e0['writer']['addClass']('ck-suggestion-marker-'+_0x4301f0,_0x3655e8),_0x4dc322&&_0x2871e0['writer']['setAttribute']('data-suggestion',_0xa46b16,_0x3655e8),_0x2871e0['mapper']['bindElementToMarker'](_0x3655e8,_0x20d4ed['markerName']),_0x2c2949&&(_0x148266['activeMarkers']['includes'](_0x20d4ed['markerName'])?_0x2871e0['writer']['addClass']('ck-suggestion-marker--active',_0x3655e8):_0x2871e0['writer']['removeClass']('ck-suggestion-marker--active',_0x3655e8));}}};}_0x148266['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x112a20),_0x148266['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x112a20),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x122a27(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x586417,_0x5b0b7e,_0x35e830)=>{_0x35e830['options']['showSuggestionHighlights']&&_0x122a27({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x586417,_0x5b0b7e,_0x35e830);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x367373,_0x46d9d7,_0x34fcd2)=>{const {type:_0x4e89c2,id:_0xcc2a38}=_0x148266['_splitMarkerName'](_0x46d9d7['markerName']),_0x1c388a=_0x148266['getSuggestion'](_0xcc2a38),_0x14ac1c=_0x1c388a['data'];if('formatBlock'!=_0x1c388a['type']||!_0x14ac1c||'setTableColumnHeader'!=_0x14ac1c['commandName'])return;const _0xea02e4=_0x34fcd2['mapper']['markerNameToElements'](_0x46d9d7['markerName']);if(_0xea02e4){for(const _0x1070e3 of _0xea02e4)_0x34fcd2['writer']['removeClass']('ck-suggestion-marker-'+_0x4e89c2,_0x1070e3),_0x34fcd2['writer']['removeClass']('ck-suggestion-marker--active',_0x1070e3),_0x34fcd2['writer']['removeAttribute']('data-suggestion',_0x1070e3),_0x34fcd2['mapper']['unbindElementFromMarkerName'](_0x1070e3,_0x46d9d7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1163f5=this['editor'],_0xb91a6d=_0x1163f5['locale'];function _0x378ab4(_0x3db6c1){return{'type':'format','content':o(_0xb91a6d,'*Format:*\x20%0',_0x3db6c1)};}_0x1163f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cc623=>{if('formatBlock'!=_0x3cc623['type'])return;const {data:_0x26d858}=_0x3cc623;if(_0x26d858){if('setTableRowHeader'==_0x26d858['commandName']){const _0x34c153=_0x26d858['commandParams'][0x0]['forceValue'];return _0x378ab4(o(_0xb91a6d,_0x34c153?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x26d858['commandName']){const _0x419021=_0x26d858['commandParams'][0x0]['forceValue'];return _0x378ab4(o(_0xb91a6d,_0x419021?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x22f2c0=>[_0x22f2c0,null]));class It extends _0x1dc395{static get['requires'](){return[jt];}['afterInit'](){const _0x2c2cb8=this['editor'];if(!_0x2c2cb8['plugins']['has']('TableClipboard'))return;const _0x24a07f=_0x2c2cb8['plugins']['get']('TrackChangesEditing'),_0x4a75f3=_0x2c2cb8['plugins']['get']('TableUtils'),_0x16bb1e=_0x2c2cb8['plugins']['get'](jt),_0x3e8329=_0x2c2cb8['plugins']['get']('TableClipboard');_0x16bb1e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2c2cb8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2c2cb8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x48249e=null;_0x2c2cb8['model']['on']('insertContent',(_0x4f1715,_0x292939)=>{const [_0x2822fc,_0x4d1002]=_0x292939,_0x29923d=_0x292939[_0x292939['length']-0x1];_0x29923d&&_0x29923d['forceDefaultExecution']||_0x24a07f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x133c5b,_0x88bf43,_0x5e23a9,_0x545eb3,_0x4a0f9d){if(_0x88bf43&&!_0x88bf43['is']('documentSelection'))return!0x1;const _0x4535ce=_0x4a0f9d['getTableIfOnlyTableInContent'](_0x133c5b,_0x5e23a9);if(!_0x4535ce||!he(_0x4535ce,void 0x0,_0x545eb3))return!0x1;const _0xd71bed=_0x545eb3['getSelectionAffectedTableCells'](_0x5e23a9['document']['selection']);if(!_0xd71bed['length'])return!0x1;const _0x393571=_0xd71bed[0x0]['findAncestor']('table'),_0x4ba26c=_0x545eb3['getRowIndexes'](_0xd71bed),_0x8c0205=_0x545eb3['getColumnIndexes'](_0xd71bed),_0x20bd20={'startRow':_0x4ba26c['first'],'endRow':_0x4ba26c['last'],'startColumn':_0x8c0205['first'],'endColumn':_0x8c0205['last']};return 0x1==_0xd71bed['length']&&(_0x20bd20['endRow']+=_0x545eb3['getRows'](_0x4535ce)-0x1,_0x20bd20['endColumn']+=_0x545eb3['getColumns'](_0x4535ce)-0x1),he(_0x393571,_0x20bd20,_0x545eb3);}(_0x2822fc,_0x4d1002,_0x2c2cb8['model'],_0x4a75f3,_0x3e8329)&&(_0x4f1715['stop'](),_0x48249e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2c2cb8['model']['change'](()=>{_0x2c2cb8['model']['insertContent'](_0x292939[0x0],_0x292939[0x1],_0x292939[0x2],{'forceDefaultExecution':!0x0});const _0x23bd24=_0x497177(),{rowInsertionRanges:_0x5a91d8,columnInsertionRanges:_0x3649f5,insertionRanges:_0x5915d3,deletionRanges:_0x233900,cells:_0x171244}=_0x48249e;_0x5a91d8['length']&&_0x24a07f['markMultiRangeInsertion'](_0x5a91d8,'tablePasteRow',{'tablePasteChainId':_0x23bd24}),_0x3649f5['length']&&_0x24a07f['markMultiRangeInsertion'](_0x3649f5,'tablePasteColumn',{'tablePasteChainId':_0x23bd24}),_0x5915d3['length']&&(_0x24a07f['markMultiRangeInsertion'](_0x5915d3,'tablePaste',{'tablePasteChainId':_0x23bd24,'skipNestingCheck':!0x0}),_0x5915d3['forEach'](_0x4f9748=>_0x4f9748['detach']?.())),_0x233900['length']&&(_0x24a07f['markMultiRangeDeletion'](_0x233900,'tablePaste',{'tablePasteChainId':_0x23bd24,'skipNestingCheck':!0x0}),_0x233900['forEach'](_0x2c12d0=>_0x2c12d0['detach']?.()));const _0x2d55d7=_0x24a07f['markMultiRangeBlockFormat'](_0x171244['map'](({element:_0x544ab4})=>_0x544ab4),{'formatGroupId':_0x497177()},[],'tablePasteCell',{'tablePasteChainId':_0x23bd24});if(_0x2d55d7){const _0x30c2d7=_0x2d55d7['getMarkers'](),_0x5f266b=[];for(const {element:_0x248376,attributes:_0x2f1d9d}of _0x171244){if(!_0x2f1d9d)continue;const _0x20d4d8=_0x2c2cb8['model']['createRangeOn'](_0x248376),_0x55279e=_0x30c2d7['find'](_0x4b558d=>_0x4b558d['getRange']()['isEqual'](_0x20d4d8));_0x55279e&&_0x5f266b['push']([_0x55279e['name'],_0x2f1d9d]);}_0x5f266b['length']&&_0x2d55d7['setAttribute']('markerAttributes',Object['fromEntries'](_0x5f266b));}_0x48249e=null;}));},{'priority':_0x244548['high']+0xa}),_0x2c2cb8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3ba206,_0x20e759)=>{const [_0xe05496,_0xd7fc5,,_0x2654e1]=_0x20e759;if(!_0x48249e)return;_0x3ba206['stop']();const _0x17dbdc=_0xe05496['cell'],_0x2804c4=_0xd7fc5,_0x5392da=Pe(_0x17dbdc),_0x1c4cc4=Pe(_0x2804c4);_0x3ba206['return']=_0x17dbdc;let _0xe79286=null,_0x15bb1d=null;if(_0x1c4cc4||_0x5392da){if(_0x5392da&&!_0x1c4cc4){_0x2654e1['remove'](_0x17dbdc['getChild'](0x0));for(const _0x1e64e2 of Array['from'](_0x2804c4['getChildren']()))_0x2654e1['insert'](_0x1e64e2,_0x17dbdc,'end');const _0x3f6828=_0x48249e['rowInsertionIndexes']['includes'](_0xe05496['row']),_0x45cd9a=_0x48249e['columnInsertionIndexes']['includes'](_0xe05496['column']);_0x3f6828||_0x45cd9a||(_0xe79286=_0x5e8b6d['fromRange'](_0x2654e1['createRangeIn'](_0x17dbdc)));}else _0x1c4cc4&&!_0x5392da&&(_0x15bb1d=_0x2654e1['createRangeIn'](_0x17dbdc));}else{const _0x384afa=_0x2654e1['createElement']('tableCellSuggestion'),_0x501f72=_0x2654e1['createElement']('tableCellSuggestion');_0x2654e1['wrap'](_0x2654e1['createRangeIn'](_0x17dbdc),_0x501f72),_0x2654e1['insert'](_0x384afa,_0x17dbdc,0x0);for(const _0xe0cc3d of Array['from'](_0x2804c4['getChildren']()))_0x2654e1['insert'](_0xe0cc3d,_0x384afa,'end');_0xe79286=_0x5e8b6d['fromRange'](_0x2654e1['createRangeOn'](_0x384afa)),_0x15bb1d=_0x5e8b6d['fromRange'](_0x2654e1['createRangeOn'](_0x501f72));}const _0x4acbf5=Array['from'](_0x2804c4['getAttributes']())['filter'](([_0x567a4b])=>ge['includes'](_0x567a4b));_0x48249e['cells']['push']({'element':_0x17dbdc,'attributes':_0x4acbf5['length']?Object['fromEntries'](_0x4acbf5):null}),_0xe79286&&_0x48249e['insertionRanges']['push'](_0xe79286),_0x15bb1d&&_0x48249e['deletionRanges']['push'](_0x15bb1d);},{'priority':'high'}),_0x4a75f3['on']('insertColumns',(_0x2045b8,_0x4c91e9)=>{const [_0x4ea56a,_0x280cec={}]=_0x4c91e9;if(!_0x48249e)return;const _0x53999d=_0x280cec['at']||0x0,_0x30060e=_0x280cec['columns']||0x1;_0x48249e['columnInsertionIndexes']=new Array(_0x30060e)['fill'](_0x53999d)['map']((_0x394e0e,_0x303c77)=>_0x394e0e+_0x303c77);for(const {cell:_0x3b77fc}of _0x4a75f3['createTableWalker'](_0x4ea56a,{'startColumn':_0x53999d,'endColumn':_0x53999d+_0x30060e-0x1}))_0x48249e['columnInsertionRanges']['push'](_0x2c2cb8['model']['createRangeOn'](_0x3b77fc));},{'priority':'low'}),_0x4a75f3['on']('insertRows',(_0x28745e,_0xdc074e)=>{const [_0x1de614,_0x387d0f={}]=_0xdc074e;if(!_0x48249e)return;const _0x36f0d2=_0x387d0f['at']||0x0,_0x38a84c=_0x387d0f['rows']||0x1;_0x48249e['rowInsertionIndexes']=new Array(_0x38a84c)['fill'](_0x36f0d2)['map']((_0x2b419e,_0x1c7b39)=>_0x2b419e+_0x1c7b39);for(const {cell:_0x34c5c8}of _0x4a75f3['createTableWalker'](_0x1de614,{'startRow':_0x36f0d2,'endRow':_0x36f0d2+_0x38a84c-0x1}))_0x48249e['rowInsertionRanges']['push'](_0x2c2cb8['model']['createRangeOn'](_0x34c5c8));},{'priority':'low'}),_0x24a07f['descriptionFactory']['registerDescriptionCallback'](_0x458885=>{if(_0x458885['subType']&&_0x458885['subType']['startsWith']('tablePaste'))return _0x458885['previous']?{}:{'type':'insertion','content':o(_0x2c2cb8['locale'],'*Replace\x20table\x20cells*')};});const _0x42a273=()=>!0x1;for(const _0x3b43ec of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x24a07f['_suggestionFactory']['registerCustomCallback']('insertion',_0x3b43ec,'join',_0x42a273),_0x24a07f['_suggestionFactory']['registerCustomCallback']('deletion',_0x3b43ec,'join',_0x42a273),_0x24a07f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b43ec,'join',_0x42a273);_0x24a07f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x42a273),_0x24a07f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2bb22b,_0x1eb82e,_0x14977e)=>{const _0x53462c=_0x2bb22b['map'](_0x39f57a=>_0x39f57a['getContainedElement']())['filter'](_0x32fd5f=>_0x32fd5f),_0x3ebf42=new Map(_0x53462c['map'](_0x5bcb35=>[_0x5bcb35,null]));if(_0x48249e){for(const {element:_0x57b9c8,attributes:_0x252f95}of _0x48249e['cells'])_0x252f95&&_0x3ebf42['set'](_0x57b9c8,_0x252f95);}else{if(_0x14977e&&_0x14977e['markerAttributes'])for(const [_0x541527,_0x19b87b]of Object['entries'](_0x14977e['markerAttributes'])){const _0x135a75=_0x2c2cb8['model']['markers']['get'](_0x541527),_0x3c8aa2=_0x135a75?_0x135a75['getRange']()['getContainedElement']():null;_0x3c8aa2&&_0x3ebf42['set'](_0x3c8aa2,_0x19b87b);}}_0x2c2cb8['model']['change'](_0x566e7a=>{for(const [_0x3dbd73,_0x300985]of _0x3ebf42)_0x566e7a['setAttributes']({...Ce,..._0x300985},_0x3dbd73);});});const _0x4a1015=(_0x38c4b3,_0x434dac)=>{_0x24a07f['_suggestionFactory']['registerCustomCallback'](_0x38c4b3,'tablePaste',_0x434dac,(_0x13fb5a,_0x3305bf,_0x29d938)=>{_0x2c2cb8['model']['change'](_0x2aeed6=>{const _0x254ffc=[];for(const _0xb3005 of _0x13fb5a){const _0x7283d9=_0xb3005['start']['nodeAfter'];_0x7283d9['is']('element','tableCellSuggestion')&&_0x254ffc['push'](_0x7283d9);}_0x24a07f['_suggestionFactory']['getSuggestionCallback'](_0x38c4b3,null,_0x434dac)(_0x13fb5a,_0x3305bf,_0x29d938);for(const _0x33ae85 of _0x254ffc)'$graveyard'!=_0x33ae85['root']['rootName']&&_0x2aeed6['unwrap'](_0x33ae85);});});};_0x4a1015('insertion','accept'),_0x4a1015('insertion','discard'),_0x4a1015('deletion','accept'),_0x4a1015('deletion','discard'),_0x24a07f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4ff22a=>{const _0x537f89=_0x4ff22a['map'](_0x142ea3=>_0x142ea3['getContainedElement']()),_0xf3b5f2=_0x537f89[0x0]['findAncestor']('table'),{minRow:_0x380583,maxRow:_0x5dc41d}=_0x16bb1e['_getCoordsForCells'](_0x537f89);_0x4a75f3['removeRows'](_0xf3b5f2,{'at':_0x380583,'rows':_0x5dc41d-_0x380583+0x1});}),_0x24a07f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x39a802=>{const _0x5872c2=_0x39a802['map'](_0x4f9e32=>_0x4f9e32['getContainedElement']()),_0x1c31ca=_0x5872c2[0x0]['findAncestor']('table'),{minColumn:_0x571ec3,maxColumn:_0x38b8a7}=_0x16bb1e['_getCoordsForCells'](_0x5872c2);_0x4a75f3['removeColumns'](_0x1c31ca,{'at':_0x571ec3,'columns':_0x38b8a7-_0x571ec3+0x1});});const _0x37854b=(_0x51fc62,_0x1fa2f0)=>{if(!_0x1fa2f0['subType']||!_0x1fa2f0['subType']['startsWith']('tablePaste'))return;const _0x5e10e8=_0x1fa2f0['attributes']['tablePasteChainId'],_0x287aec=_0x24a07f['getSuggestions']()['filter'](_0xa3ba38=>_0xa3ba38['isInContent']&&_0xa3ba38['attributes']&&_0xa3ba38['attributes']['tablePasteChainId']==_0x5e10e8);_0x287aec['length']&&_0x1fa2f0['getAllAdjacentSuggestions']()['length']!=_0x287aec['length']&&_0x287aec['reduce']((_0x1705d6,_0x3aa1f2)=>(_0x1705d6['next']=_0x3aa1f2,_0x3aa1f2['previous']=_0x1705d6,_0x3aa1f2));};function _0x4f422d(_0x2a6efa,_0x2fa4a0=!0x0){const {id:_0x2fd308}=_0x24a07f['_splitMarkerName'](_0x2a6efa['markerName']),_0x79e5c4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x16045e=_0x24a07f['activeMarkers']['includes'](_0x2a6efa['markerName']);return _0x16045e&&_0x79e5c4['push']('ck-suggestion-marker--active'),{'classes':_0x79e5c4,'attributes':{'data-suggestion':_0x2fd308},'priority':_0x16045e&&_0x2fa4a0?0xbc2:0xbb8};}_0x24a07f['on']('suggestionLoaded',_0x37854b,{'priority':'high'}),_0x24a07f['on']('suggestionUnloaded',_0x37854b,{'priority':'high'}),_0x2c2cb8['model']['document']['registerPostFixer'](()=>{let _0x30ae18=!0x1;const _0x245d75=Array['from'](_0x2c2cb8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54ccad,data:_0xa069a2}of _0x245d75){const {group:_0x24ae93,type:_0x3e223f,id:_0x5e74e0}=_0x24a07f['_splitMarkerName'](_0x54ccad);if('suggestion'!=_0x24ae93||'deletion'!=_0x3e223f||_0xa069a2['oldRange'])continue;if(!_0x24a07f['hasSuggestion'](_0x5e74e0))continue;const _0x5964af=_0x24a07f['getSuggestion'](_0x5e74e0)['getRanges'](),_0x42008d=_0x2c2cb8['plugins']['get']('Users')['me'];for(const _0x41a7a5 of _0x24a07f['getSuggestions']()){if(!_0x41a7a5['isInContent']||_0x41a7a5['author']!=_0x42008d)continue;if('formatBlock'!=_0x41a7a5['type']||'tablePasteCell'!=_0x41a7a5['subType'])continue;if(_0x41a7a5['getRanges']()['every'](_0x115f86=>_0x5964af['some'](_0x27b1b4=>_0x27b1b4['containsRange'](_0x115f86,!0x0)))){for(const _0x191587 of _0x41a7a5['getAllAdjacentSuggestions']())_0x191587['isInContent']&&(_0x191587['discard'](),_0x30ae18=!0x0);}}}return _0x30ae18;}),_0x2c2cb8['model']['document']['registerPostFixer'](_0x4ff48d=>{const _0x4290b5=_0x2c2cb8['commands']['get']('redo');if(!_0x4290b5||!_0x4290b5['_createdBatches']['has'](_0x4ff48d['batch']))return!0x1;let _0xce6ea4=!0x1;const _0x99108a=_0x2c2cb8['plugins']['get']('Users')['me'],_0x279cec=_0x2c2cb8['model']['document']['differ']['getChanges'](),_0x364034=Array['from'](_0x2c2cb8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2cf84c,data:_0x20031a})=>{const {group:_0x2a94c1,subType:_0x21e11e,authorId:_0x11217e}=_0x24a07f['_splitMarkerName'](_0x2cf84c);return'suggestion'==_0x2a94c1&&'tablePaste'==_0x21e11e&&_0x11217e==_0x99108a['id']&&!_0x20031a['oldRange'];});for(const _0x328d6b of _0x279cec){if('insert'!=_0x328d6b['type']||'tableCellSuggestion'!=_0x328d6b['name']||0x1!=_0x328d6b['length'])continue;const _0x7db09c=_0x4ff48d['createRange'](_0x328d6b['position'],_0x328d6b['position']['getShiftedBy'](0x1));if(!_0x364034['find'](({data:_0xfcafaa})=>_0xfcafaa['newRange']['isEqual'](_0x7db09c))){for(const {name:_0x4033e4,data:_0x372528}of _0x364034)if(_0x7db09c['containsRange'](_0x372528['newRange'])){_0x4ff48d['updateMarker'](_0x4033e4,{'range':_0x7db09c}),_0xce6ea4=!0x0;break;}}}return _0xce6ea4;}),_0x2c2cb8['model']['document']['registerPostFixer'](_0x262bf0=>{let _0x54175c=!0x1;const _0x222089=_0x2c2cb8['plugins']['get']('Users')['me'],_0x24322e=_0x24a07f['getSuggestions']()['filter'](_0xfc8fcc=>_0xfc8fcc['isInContent']&&_0xfc8fcc['author']==_0x222089),_0x5972c1=new Set(),_0xc0cd24=new Set();for(const _0x645dc of _0x24322e)if('tablePaste'==_0x645dc['subType'])for(const _0x1b92d0 of _0x645dc['getMarkers']()){const _0x9ab707=_0x1b92d0['getRange']()['getContainedElement']();if(_0x9ab707){if(_0x9ab707['is']('element','tableCellSuggestion')&&Pe(_0x9ab707)){_0x645dc['removeMarker'](_0x1b92d0['name']),_0x5972c1['add'](_0x9ab707),_0x54175c=!0x0;const _0x342f01=_0x9ab707['nextSibling'],_0xd1c0a4=_0x9ab707['previousSibling'],_0x2a0d81=_0x342f01&&_0x342f01['is']('element','tableCellSuggestion'),_0xc6f945=_0xd1c0a4&&_0xd1c0a4['is']('element','tableCellSuggestion');_0x2a0d81&&!_0x5972c1['has'](_0x342f01)&&_0xc0cd24['add'](_0x342f01),_0xc6f945&&!_0x5972c1['has'](_0xd1c0a4)&&_0xc0cd24['add'](_0xd1c0a4);}else _0x9ab707['is']('element','paragraph')&&_0x9ab707['isEmpty']&&(_0x645dc['removeMarker'](_0x1b92d0['name']),_0x54175c=!0x0);}}else{if('tablePasteCell'==_0x645dc['subType']){if(!_0x645dc['attributes']||!_0x645dc['attributes']['tablePasteChainId'])continue;const _0x2464fe=_0x645dc['attributes']['markerAttributes'];if(_0x2464fe&&Object['keys'](_0x2464fe)['length'])continue;const _0x5584b6=_0x645dc['attributes']['tablePasteChainId'];let _0xbe39e7=!0x0,_0x77ac56=!0x0;for(const _0x28900a of _0x24322e)if(_0x28900a['subType']&&_0x28900a['subType']['startsWith']('tablePaste')){if(!_0x28900a['attributes']['tablePasteChainId']){_0x77ac56=!0x1;break;}if(_0x28900a['id']!=_0x645dc['id']&&_0x28900a['attributes']['tablePasteChainId']==_0x5584b6){_0xbe39e7=!0x1;break;}}_0x77ac56&&_0xbe39e7&&(_0x645dc['removeMarkers'](),_0x54175c=!0x0);}}for(const _0x1a53f1 of _0x5972c1)_0x262bf0['remove'](_0x1a53f1);for(const _0x41d9e9 of _0xc0cd24)_0x262bf0['unwrap'](_0x41d9e9);return _0x54175c;}),_0x2c2cb8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3effc8,_0x2d1407)=>_0x4f422d(_0x3effc8),'converterPriority':'high'}),_0x2c2cb8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2c4cbb,_0x352682)=>_0x352682['options']['showSuggestionHighlights']?_0x4f422d(_0x2c4cbb,!0x1):null,'converterPriority':'high'});const _0x17f091=_0x2c2cb8['editing']['view'];this['listenTo'](_0x17f091['document'],'clipboardOutput',(_0x21da5e,_0x4fb20c)=>{const _0x2eed1b=[];for(const _0x929ec9 of _0x17f091['createRangeIn'](_0x4fb20c['content'])['getItems']())_0x929ec9['is']('element','suggestion-td')&&_0x2eed1b['push'](_0x929ec9);_0x17f091['change'](_0x34b3e8=>{for(const _0x11325a of _0x2eed1b)_0x34b3e8['move'](_0x34b3e8['createRangeIn'](_0x11325a),_0x34b3e8['createPositionBefore'](_0x11325a)),_0x34b3e8['remove'](_0x11325a);});});}}function Pe(_0x2e6598){if(_0x2e6598['isEmpty'])return!0x0;const _0x53754d=_0x2e6598['getChild'](0x0);return _0x53754d['is']('element','paragraph')&&_0x53754d['isEmpty'];}function he(_0x2e45b1,_0x402db6={},_0x56a539){for(const {isAnchor:_0x576408,cellHeight:_0x591913,cellWidth:_0x87c432}of _0x56a539['createTableWalker'](_0x2e45b1,{'includeAllSlots':!0x0,..._0x402db6}))if(!_0x576408||0x1!=_0x591913||0x1!=_0x87c432)return!0x1;return!0x0;}class vt extends _0x1dc395{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x135481=this['editor']['plugins']['get']('TrackChangesEditing');_0x135481['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x135481['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x135481['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x135481['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x135481['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x135481['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4e5cae,_0xa84eb4){const _0x3d3d06=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ef8a8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8cb0b7=_0xa84eb4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2db949=_0x1ef8a8['getColumnGroupElement'](_0x8cb0b7);let _0x27d2b7=_0x2db949?_0x1ef8a8['getTableColumnsWidths'](_0x2db949):null,_0x33adf9=_0x8cb0b7['getAttribute']('tableWidth')||null;const _0x1f86b4=_0xa84eb4['tableWidth']||_0x33adf9,_0x76d307=_0xa84eb4['columnWidths']||_0x27d2b7,_0x30039b=this['editor']['plugins']['get']('Users')['me'];for(const _0x4ff4dd of _0x3d3d06['getSuggestions']()){const _0x322ad0=_0x4ff4dd['getContainedElement']();if('resizeTable'===_0x4ff4dd['subType']&&_0x322ad0===_0x8cb0b7){_0x4ff4dd['author']!==_0x30039b&&_0x4ff4dd['discard']();const _0x76172b=_0x4ff4dd['data']['commandParams'];_0x33adf9=_0x76172b[0x0]['tableWidth'],_0x27d2b7=_0x76172b[0x0]['columnWidths'];break;}}_0x4e5cae({'table':_0x8cb0b7,'tableWidth':_0x1f86b4,'columnWidths':_0x76d307}),_0x3d3d06['markBlockFormat'](_0x8cb0b7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x33adf9,'columnWidths':_0x27d2b7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4ae6b0){if('formatBlock'!=_0x4ae6b0['type']&&'formatInline'!=_0x4ae6b0['type'])return;const {data:_0x20bd57}=_0x4ae6b0;if(_0x20bd57&&'resizeTable'===_0x20bd57['formatGroupId']){const _0x8eda95='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x8eda95)};}}}class Ct extends _0x1dc395{['afterInit'](){const _0x4de5e6=this['editor'];_0x4de5e6['plugins']['has']('Template')&&_0x4de5e6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x1dc395{['afterInit'](){const _0x19f4bf=this['editor'];if(!_0x19f4bf['commands']['get']('insertTableOfContents'))return;_0x19f4bf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4ddb6d=_0x19f4bf['plugins']['get']('TrackChangesEditing'),_0x1d1a3e=_0x19f4bf['locale'];_0x4ddb6d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3661fc=>o(_0x1d1a3e,'ELEMENT_TABLE_OF_CONTENTS',_0x3661fc));}}class Dt extends _0x1dc395{['afterInit'](){const _0x58467d=this['editor'];if(!_0x58467d['plugins']['has']('Title'))return;const _0x1d5946=_0x58467d['plugins']['get']('TrackChangesEditing');_0x1d5946['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x58467d['locale'],'ELEMENT_TITLE')),_0x58467d['model']['document']['registerPostFixer'](_0x1a331b=>{let _0x360a6e=!0x1;const _0x2f4157=Array['from'](_0x58467d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c11df,data:_0x42eee6}of _0x2f4157){const {group:_0x347aee}=_0x1d5946['_splitMarkerName'](_0x1c11df);if('suggestion'!==_0x347aee||!_0x42eee6['newRange'])continue;const _0xde7f26=_0x42eee6['newRange'],_0x529839=_0xde7f26['end']['nodeBefore'];if(!_0x529839||!_0x529839['is']('element','title-content'))continue;if(!_0xde7f26['start']['isTouching'](_0xde7f26['end']))continue;const _0x445be4=_0x58467d['model']['schema']['getNearestSelectionRange'](_0xde7f26['end'],'forward');if(_0x445be4&&_0x445be4['isCollapsed']){const _0x3d5722=_0x1a331b['createRange'](_0xde7f26['start'],_0x445be4['start']);_0x3d5722['isEqual'](_0xde7f26)||(_0x1a331b['updateMarker'](_0x1c11df,{'range':_0x3d5722}),_0x360a6e=!0x0);}_0x360a6e||(_0x1a331b['removeMarker'](_0x1c11df),_0x360a6e=!0x0);}return _0x360a6e;});}}class Nt extends _0x1dc395{['afterInit'](){const _0x337845=this['editor'],_0x35b3f8=_0x337845['plugins']['get']('TrackChangesEditing');_0x337845['plugins']['has']('UndoEditing')&&(_0x35b3f8['enableCommand']('undo'),_0x35b3f8['enableCommand']('redo'));}}class Mt extends _0x1dc395{static get['requires'](){return[jt];}['afterInit'](){const _0x517a0a=this['editor'];if(!_0x517a0a['plugins']['has']('TableCaptionEditing'))return;_0x517a0a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1dc395{['tableProperties'];['tableCellProperties'];constructor(_0x250ea6){super(_0x250ea6),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 _0x59a0e7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x44126d of this['tableProperties'])_0x59a0e7['enableCommand'](_0x44126d,(_0x30eab,_0x1fbfaf)=>{const _0x399578=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x44126d,[_0x399578],this['tableProperties'],'tableProperties',_0x30eab,_0x1fbfaf);});_0x59a0e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x59a0e7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59a0e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x500bdf,_0x2def7a)=>this['handleDiscardAction'](this['tableProperties'],_0x500bdf,_0x2def7a)),_0x59a0e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x169ffe of this['tableCellProperties'])_0x59a0e7['enableCommand'](_0x169ffe,(_0x2fb8e4,_0x15cd00)=>{const _0x41ad77=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x169ffe,_0x41ad77,this['tableCellProperties'],'tableCellProperties',_0x2fb8e4,_0x15cd00);});_0x59a0e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x59a0e7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59a0e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x231c28,_0x4f04a0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x231c28,_0x4f04a0)),_0x59a0e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x59a0e7['descriptionFactory']['registerDescriptionCallback'](_0x96e7e5=>this['handleSuggestionDescription'](_0x96e7e5));}['_handlePropertyChange'](_0x119a60,_0x4fd923,_0x14f677,_0x2e23d8,_0x5a9d75,_0x320af9){const _0x25730b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x320af9['batch'],()=>{for(const _0x176570 of _0x4fd923){if(this['_getSuggestion'](_0x176570,_0x2e23d8))_0x5a9d75(_0x320af9);else{const _0x4c9e7a={};for(const _0x4631b0 of _0x14f677){const _0xb03e9e=_0x176570['getAttribute'](_0x4631b0);void 0x0!==_0xb03e9e&&(_0x4c9e7a[_0x4631b0]=_0xb03e9e);}_0x5a9d75(_0x320af9),_0x25730b['markBlockFormat'](_0x176570,{'commandParams':[_0x4c9e7a]},[],_0x2e23d8);}}});}['handleDiscardAction'](_0x592b15,_0x32f9df,_0x36d064){const _0x12e246=_0x32f9df[0x0]['start']['nodeAfter'],_0xb20ca6=_0x36d064['commandParams'][0x0];this['editor']['model']['change'](_0x43ff92=>{for(const _0x2b86da of _0x592b15)void 0x0!==_0xb20ca6[_0x2b86da]?_0x43ff92['setAttribute'](_0x2b86da,_0xb20ca6[_0x2b86da],_0x12e246):_0x43ff92['removeAttribute'](_0x2b86da,_0x12e246);});}['handleSuggestionDescription'](_0x29c252){if(_0x29c252['data'])switch(_0x29c252['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'](_0xce7d14,_0x1b2b10){const _0x7518a1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x50f3a1 of _0x7518a1['getSuggestions']({'skipNotAttached':!0x0})){const _0x592ee4=_0x50f3a1['getContainedElement']();if(_0x50f3a1['subType']===_0x1b2b10&&_0x592ee4===_0xce7d14)return _0x50f3a1;}return null;}}const m='$elementName';class p extends _0x1dc395{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4c39fc,_0x4d8020,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(_0x59cedb){function _0x2e6adc(_0x36b13d){return _0x36b13d['map'](_0x410a29=>String['fromCharCode'](_0x410a29))['join']('');}super(_0x59cedb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x56c57c,_0x19eb21,_0x4bae64,_0x5c169c)=>{this['_model']['change'](()=>{for(const _0x233242 of[..._0x5c169c,..._0x4bae64])this['_model']['markers']['has'](_0x233242)&&_0x59cedb['editing']['reconvertMarker'](_0x233242);});}),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']=_0x59cedb['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(),_0x59cedb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x59cedb['config']['get']('trackChanges.trackFormatChanges'),_0x59cedb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x59cedb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x59cedb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2e6adc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2e6adc([0x34,0x30,0x34,0x38,0x31,0x34,0x31,0x34]);}['init'](){const _0x48f1b7=this['editor'],_0xe8864d=(_0x25d2bc,_0x58e5fc)=>{if('attribute'!=_0x25d2bc)return'ck-suggestion-marker-'+_0x25d2bc;const _0x321bbe=_0x58e5fc['split']('|')[0x0];return this['_isBlockAttribute'](_0x321bbe)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x48f1b7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xd3baaf=>{const {id:_0x349cb9,type:_0xdc05a3,subType:_0x498fff}=this['_splitMarkerName'](_0xd3baaf['markerName']),_0x126cfd=['ck-suggestion-marker',_0xe8864d(_0xdc05a3,_0x498fff)];let _0x4b2624=0xbb8;return this['activeMarkers']['includes'](_0xd3baaf['markerName'])&&(_0x126cfd['push']('ck-suggestion-marker--active'),_0x4b2624=0xbc2),'deletion'==_0xdc05a3&&(_0x4b2624+=0x5),{'classes':_0x126cfd,'attributes':{'data-suggestion':_0x349cb9},'priority':_0x4b2624};}}),_0x48f1b7['conversion']['for']('dataDowncast')['add'](_0x48295b=>{_0x48295b['on']('addMarker:suggestion',(_0x366bab,_0x28224f,_0x55d75c)=>{if(!_0x55d75c['options']['showSuggestionHighlights'])return;const _0x2565c8=_0x28224f['item'];if(!_0x2565c8)return;const _0x25b4e6=_0x55d75c['mapper']['toViewElement'](_0x2565c8);_0x48f1b7['model']['schema']['isObject'](_0x2565c8)&&_0x25b4e6&&!_0x25b4e6['getCustomProperty']('widget')&&_0x25b4e6['is']('containerElement')&&_0x20341e(_0x25b4e6,_0x55d75c['writer']);},{'priority':'high'});}),_0x48f1b7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x65db28,_0x4b81e7)=>{if(!_0x4b81e7['options']['showSuggestionHighlights'])return null;const {type:_0x4ccc0a,subType:_0x822ce3}=this['_splitMarkerName'](_0x65db28['markerName']);return{'classes':['ck-suggestion-marker',_0xe8864d(_0x4ccc0a,_0x822ce3)],'priority':0xbb8};}});const _0xae1a3c=({showActiveMarkers:_0x4bde86=!0x0,isAttributeSuggestion:_0x55b071=!0x1}={})=>(_0x64be0c,_0x516bd3,_0x5744a7)=>{if(!_0x516bd3['item'])return;const {id:_0x4feb77}=this['_splitMarkerName'](_0x516bd3['markerName']);if(_0x55b071){const _0x43d8a2=this['_suggestions']['get'](_0x4feb77),_0xe9790a=this['_getAttributeKey'](_0x43d8a2);if(!this['_isBlockAttribute'](_0xe9790a))return;}if(_0x516bd3['item']['is']('selection'))return void _0x5744a7['consumable']['consume'](_0x516bd3['item'],_0x64be0c['name']);const _0x4235e6=_0x5744a7['mapper']['toViewElement'](_0x516bd3['item']);if(_0x516bd3['item']['is']('element')&&_0x48f1b7['model']['schema']['isBlock'](_0x516bd3['item'])&&!_0x4235e6['getCustomProperty']('addHighlight')){_0x5744a7['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4235e6),_0x5744a7['writer']['setAttribute']('data-suggestion',_0x4feb77,_0x4235e6),_0x5744a7['mapper']['bindElementToMarker'](_0x4235e6,_0x516bd3['markerName']),_0x4bde86&&(this['activeMarkers']['includes'](_0x516bd3['markerName'])?_0x5744a7['writer']['addClass']('ck-suggestion-marker--active',_0x4235e6):_0x5744a7['writer']['removeClass']('ck-suggestion-marker--active',_0x4235e6));for(const _0x25630e of _0x48f1b7['model']['createRangeIn'](_0x516bd3['item'])['getItems']())_0x5744a7['consumable']['consume'](_0x25630e,_0x64be0c['name']);_0x5744a7['consumable']['consume'](_0x516bd3['item'],_0x64be0c['name']);}};_0x48f1b7['conversion']['for']('dataDowncast')['add'](_0x182c64=>{_0x182c64['on']('addMarker:suggestion:formatBlock',(_0x3da0ef,_0x1cfb7c,_0x385140)=>{_0x385140['options']['showSuggestionHighlights']&&_0xae1a3c({'showActiveMarkers':!0x1})(_0x3da0ef,_0x1cfb7c,_0x385140);},{'priority':'highest'});}),_0x48f1b7['conversion']['for']('dataDowncast')['add'](_0x41a22c=>{_0x41a22c['on']('addMarker:suggestion:attribute',(_0x5a16e8,_0x34de91,_0x5e37dc)=>{_0x5e37dc['options']['showSuggestionHighlights']&&_0xae1a3c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5a16e8,_0x34de91,_0x5e37dc);},{'priority':'highest'});}),_0x48f1b7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xdbeeee,_0x289156)=>_0x289156['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xdbeeee['substr'](0xb)}}),_0x48f1b7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1062fa,{writer:_0xf5d55d})=>{let _0x14770a='suggestion:'+_0x1062fa['getAttribute']('suggestion-type')+':'+_0x1062fa['getAttribute']('id');return _0x1062fa['getAttribute']('marker-count')&&(_0x14770a+=':'+_0x1062fa['getAttribute']('marker-count')),_0xf5d55d['createElement']('$marker',{'data-name':_0x14770a});}}),_0x48f1b7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x48f1b7['conversion']['for']('editingDowncast')['add'](_0xce122f=>{_0xce122f['on']('addMarker:suggestion:formatBlock',_0xae1a3c(),{'priority':'high'});}),_0x48f1b7['conversion']['for']('editingDowncast')['add'](_0x11efbc=>{_0x11efbc['on']('addMarker:suggestion:attribute',_0xae1a3c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x48f1b7['conversion']['for']('editingDowncast')['add'](_0x53b6df=>{_0x53b6df['on']('removeMarker:suggestion:formatBlock',(_0x13ec5b,_0x3d878d,_0x522af0)=>{const _0x1d149e=_0x522af0['mapper']['markerNameToElements'](_0x3d878d['markerName']);if(_0x1d149e){for(const _0x4fbc8a of _0x1d149e)_0x4fbc8a['getCustomProperty']('addHighlight')||(_0x522af0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4fbc8a),_0x522af0['writer']['removeAttribute']('data-suggestion',_0x4fbc8a),_0x522af0['mapper']['unbindElementFromMarkerName'](_0x4fbc8a,_0x3d878d['markerName']));}},{'priority':'high'});}),_0x48f1b7['conversion']['for']('editingDowncast')['add'](_0x268381=>{_0x268381['on']('removeMarker:suggestion:attribute',(_0x1f3b91,_0x5de80a,_0x9b9cce)=>{const _0x1e8534=_0x9b9cce['mapper']['markerNameToElements'](_0x5de80a['markerName']);if(!_0x1e8534)return;const {id:_0x51b61c}=this['_splitMarkerName'](_0x5de80a['markerName']),_0x30e0b9=this['_suggestions']['get'](_0x51b61c),_0x10cf55=this['_getAttributeKey'](_0x30e0b9);if(this['_isBlockAttribute'](_0x10cf55)){for(const _0x3506fb of _0x1e8534)_0x3506fb['getCustomProperty']('addHighlight')||(_0x9b9cce['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3506fb),_0x9b9cce['writer']['removeAttribute']('data-suggestion',_0x3506fb),_0x9b9cce['mapper']['unbindElementFromMarkerName'](_0x3506fb,_0x5de80a['markerName']));}},{'priority':'high'});}),_0x48f1b7['model']['document']['registerPostFixer'](_0x18fc04=>{let _0x12103e=!0x1;const _0x57a754=Array['from'](_0x48f1b7['model']['document']['differ']['getChangedMarkers']()),_0x492f11=new Set();for(const {name:_0x409f33,data:_0x268ee9}of _0x57a754){const {group:_0x310ec2,type:_0x3eaf3f,subType:_0x6e7a89,id:_0x10d73b}=this['_splitMarkerName'](_0x409f33);if('suggestion'!==_0x310ec2)continue;const _0x1b4a73=this['_suggestions']['get'](_0x10d73b);if(null!=_0x268ee9['newRange']){'formatInline'==_0x3eaf3f&&(_0x12103e=_0x12103e||Et(_0x268ee9['newRange'],_0x409f33,_0x18fc04,_0x48f1b7['model']['schema']));const _0xa7ee62='attribute'==_0x3eaf3f&&this['_isBlockAttribute'](_0x6e7a89['split']('|')[0x0]);if(_0x268ee9['newRange']['isCollapsed']||'$graveyard'==_0x268ee9['newRange']['root']['rootName']||'formatBlock'==_0x3eaf3f&&!Ut(_0x268ee9['newRange'])||_0xa7ee62&&!Ut(_0x268ee9['newRange'])||'deletion'==_0x3eaf3f&&!(!Tt(_0x3ca4de=_0x268ee9['newRange'])&&!function(_0x303faf){return _0x303faf['start']['parent']==_0x303faf['end']['nodeBefore']&&_0x303faf['start']['isAtEnd'];}(_0x3ca4de)))_0x18fc04['removeMarker'](_0x409f33),_0x12103e=!0x0;else{if(!_0x1b4a73||!_0x1b4a73['isInContent'])continue;_0x492f11['add'](_0x1b4a73);}}}var _0x3ca4de;return _0x492f11['size']>0x0&&(_0x12103e=!!this['_joinWithAdjacentSuggestions'](_0x492f11)||_0x12103e),_0x12103e;}),_0x48f1b7['model']['document']['registerPostFixer'](_0x2f3384=>{let _0x49c404=!0x1;for(const _0x7dc7fb of _0x48f1b7['model']['document']['differ']['getChanges']())if('insert'==_0x7dc7fb['type'])for(const _0x5f2d22 of this['_suggestions']['values']()){if(_0x5f2d22['isMultiRange']||!_0x5f2d22['isInContent'])continue;const _0x5c06a6='formatBlock'==_0x5f2d22['type'],_0x2d9cd6=this['_getAttributeKey'](_0x5f2d22),_0x138d77=_0x2d9cd6&&this['_isBlockAttribute'](_0x2d9cd6);if(!_0x5c06a6&&!_0x138d77)continue;const _0x32c61b=_0x5f2d22['getFirstRange']();if(_0x32c61b['start']['parent']!=_0x32c61b['end']['parent']&&!_0x32c61b['end']['isAtEnd']){const _0x27d141=_0x48f1b7['model']['createPositionAt'](_0x32c61b['start']['nodeAfter'],'end'),_0x1993c4=_0x48f1b7['model']['createRange'](_0x32c61b['start'],_0x27d141);_0x2f3384['updateMarker'](_0x5f2d22['getFirstMarker'](),{'range':_0x1993c4}),_0x49c404=!0x0;}}return _0x49c404;}),_0x48f1b7['model']['document']['registerPostFixer'](_0x1496ea=>this['_processAttributeChanges'](_0x1496ea)),_0x48f1b7['model']['document']['registerPostFixer'](_0x12095b=>!_0x12095b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x12095b)),_0x48f1b7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x48f1b7['model']['document']['on']('change:data',(_0x15722c,_0x57bb62)=>{if(!_0x57bb62['isLocal']||_0x57bb62['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4b9c13=_0x48f1b7['model']['document']['differ']['getChanges']();if(0x0==_0x4b9c13['length'])return;const _0x5731ec=[],_0x242b66=_0x4b9c13['filter'](_0x1ad0d5=>'attribute'==_0x1ad0d5['type']),_0x3c2e18=_0x4b9c13['filter'](_0xdd8b82=>'insert'==_0xdd8b82['type']&&'$text'!=_0xdd8b82['name']);for(const _0x1f37db of _0x242b66)this['_isRegisteredAttribute'](_0x1f37db['attributeKey'])&&_0x5731ec['push']({'key':_0x1f37db['attributeKey'],'newValue':_0x1f37db['attributeNewValue'],'oldValue':_0x1f37db['attributeOldValue'],'range':Ot(_0x1f37db['range'],_0x48f1b7['model'])});for(const _0x3cb5e2 of _0x3c2e18){if('rename'!=_0x3cb5e2['action']&&'refresh'!=_0x3cb5e2['action'])continue;const _0x11fbd8=Gt(_0x3cb5e2['position']['nodeAfter'],_0x48f1b7['model']),_0x5266e6=_0x3cb5e2['before'];'rename'==_0x3cb5e2['action']&&_0x5731ec['push']({'key':m,'newValue':_0x3cb5e2['name'],'oldValue':_0x5266e6['name'],'range':_0x11fbd8});for(const [_0x259239,_0x4e0fc0]of _0x5266e6['attributes']){if(!this['_isRegisteredAttribute'](_0x259239))continue;const _0x517786=_0x3cb5e2['attributes']['get'](_0x259239);_0x4e0fc0!==_0x517786&&_0x5731ec['push']({'key':_0x259239,'newValue':_0x517786,'oldValue':_0x4e0fc0,'range':_0x11fbd8});}for(const [_0x4f7a33,_0x450680]of _0x3cb5e2['attributes'])this['_isRegisteredAttribute'](_0x4f7a33)&&(_0x5266e6['attributes']['has'](_0x4f7a33)||_0x5731ec['push']({'key':_0x4f7a33,'newValue':_0x450680,'oldValue':null,'range':_0x11fbd8}));}0x0!=_0x5731ec['length']&&_0x48f1b7['model']['enqueueChange'](_0x57bb62,_0x2c5cbd=>{const _0xd0e5ed=_0x497177();for(const {range:_0x3fee81,key:_0x1353d1,oldValue:_0x3d810c,newValue:_0x20bd9a}of _0x5731ec)this['markAttributeChange'](_0x3fee81,_0x1353d1,_0x3d810c,_0x20bd9a,{'groupId':_0xd0e5ed});this['_reduceExistingSuggestions'](_0x2c5cbd,_0x5731ec);});},{'priority':'lowest'}),_0x48f1b7['model']['markers']['on']('update:suggestion',(_0x31c0b3,_0x28878f,_0x280580)=>{if(null==_0x280580){const {id:_0x269fe3}=this['_splitMarkerName'](_0x28878f['name']),_0x278a18=this['_suggestions']['get'](_0x269fe3);_0x278a18&&_0x278a18['addMarkerName'](_0x28878f['name']);}}),_0x48f1b7['model']['document']['on']('change:data',()=>{const _0x4a70ec=Array['from'](_0x48f1b7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x508fc9=>'suggestion'===this['_splitMarkerName'](_0x508fc9['name'])['group']);if(0x0===_0x4a70ec['length'])return;_0x4a70ec['sort']((_0x3af4d9,_0x5bb262)=>{const _0x57d54f=_0x3af4d9['data']['oldRange'],_0x3c13be=_0x5bb262['data']['oldRange'];return null===_0x57d54f&&null===_0x3c13be?0x0:null===_0x57d54f&&null!==_0x3c13be?-0x1:null!==_0x57d54f&&null===_0x3c13be?0x1:_0x57d54f['start']['isBefore'](_0x3c13be['start'])?-0x1:0x1;});const _0x418827=new Set(),_0x12ecac=new Set();for(const {name:_0x13511e,data:_0x1b07bf}of _0x4a70ec){const {id:_0x4d2372}=this['_splitMarkerName'](_0x13511e);if(null===_0x1b07bf['oldRange']){const _0x55e9b7=this['_handleNewSuggestionMarker'](_0x13511e);_0x12ecac['add'](_0x55e9b7);}else{const _0x49c69d=this['_suggestions']['get'](_0x4d2372);null!==_0x1b07bf['newRange']||_0x49c69d['isInContent']?(_0x418827['add'](_0x49c69d['head']),_0x12ecac['add'](_0x49c69d)):this['_removeSuggestion'](_0x49c69d);}}_0x12ecac['size']>0x0&&this['_refreshSuggestionsChain'](_0x12ecac);for(const _0x1c0756 of _0x418827)this['fire']('suggestionChanged',_0x1c0756);}),_0x48f1b7['model']['on']('applyOperation',(_0x125cb4,_0x2dd9cb)=>{const _0x56c448=_0x2dd9cb[0x0];if(!this['_suggestions']['size'])return;if(!_0x56c448['isDocumentOperation'])return;if(_0x56c448['batch']['isUndo']||!_0x56c448['batch']['isLocal'])return;let _0x1062cf,_0x349f1e;switch(_0x56c448['type']){case'insert':_0x1062cf=_0x48f1b7['model']['createPositionAt'](_0x56c448['position']),_0x349f1e=_0x1062cf['getShiftedBy'](_0x56c448['howMany']);break;case'split':_0x1062cf=_0x48f1b7['model']['createPositionAt'](_0x56c448['splitPosition']),_0x349f1e=_0x48f1b7['model']['createPositionAt'](_0x56c448['moveTargetPosition']);break;case'move':_0x1062cf=_0x48f1b7['model']['createPositionAt'](_0x56c448['targetPosition']),_0x349f1e=_0x1062cf['getShiftedBy'](_0x56c448['howMany']);break;default:return;}const _0x5ad0f7=_0x48f1b7['model']['createRange'](_0x1062cf,_0x349f1e);_0x48f1b7['model']['change'](()=>{for(const {suggestion:_0x518fd6,meta:_0x46e9bc}of this['_findSuggestions'](_0x5ad0f7)){if(_0x518fd6['isMultiRange'])continue;if('formatInline'==_0x518fd6['type'])continue;const _0x497825=this['_getAttributeKey'](_0x518fd6);if(_0x497825&&this['_isBlockAttribute'](_0x497825)&&'split'!=_0x56c448['type'])continue;const _0x5b000a=_0x518fd6['data']&&_0x518fd6['data']['multipleBlocks'];('formatBlock'!=_0x518fd6['type']||'split'==_0x56c448['type']&&!_0x5b000a)&&(_0x46e9bc['containsRangeInObject']||'insertion'==_0x518fd6['type']&&_0x46e9bc['isOwn']||_0x518fd6['getFirstRange']()['containsRange'](_0x5ad0f7)&&this['_breakSuggestionMarker'](_0x518fd6,_0x1062cf,_0x349f1e));}});},{'priority':'lowest'}),_0x48f1b7['model']['on']('deleteContent',(_0x408003,_0x198001)=>{const _0x1c85ad=_0x198001[0x0],_0x871f7a=_0x198001[0x1];if(_0x871f7a&&_0x871f7a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1c85ad['isCollapsed'])return;const _0x2568e1=_0x48f1b7['model']['schema'],{start:_0x265ddd,end:_0x2012e2}=_0x1c85ad['getFirstRange'](),_0x403abe=_0x265ddd['nodeAfter']&&_0x2568e1['isLimit'](_0x265ddd['nodeAfter'])?null:_0x2568e1['getNearestSelectionRange'](_0x265ddd,'forward'),_0xc30d74=_0x2012e2['nodeBefore']&&_0x2568e1['isLimit'](_0x2012e2['nodeBefore'])?null:_0x2568e1['getNearestSelectionRange'](_0x2012e2,'backward'),_0x211cf0=_0x48f1b7['model']['createRange'](_0x403abe?_0x403abe['start']:_0x265ddd,_0xc30d74?_0xc30d74['end']:_0x2012e2);_0x48f1b7['model']['change'](_0x3d3fff=>{this['markDeletion'](_0x211cf0);const _0x5b0419=_0x48f1b7['model']['schema']['getNearestSelectionRange'](_0x211cf0['start']);_0x1c85ad['is']('documentSelection')?_0x3d3fff['setSelection'](_0x5b0419):_0x1c85ad['setTo'](_0x5b0419);}),_0x408003['stop']();},{'priority':_0x244548['normal']+0xa}),_0x48f1b7['model']['on']('insertContent',(_0x142bf0,_0x23fb1a)=>{const _0x201706=_0x23fb1a[_0x23fb1a['length']-0x1];_0x201706&&_0x201706['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x48f1b7['model']['change'](()=>{let _0x137f48=_0x48f1b7['model']['insertContent'](_0x23fb1a[0x0],_0x23fb1a[0x1],_0x23fb1a[0x2],{'forceDefaultExecution':!0x0});if(!_0x137f48)return;_0x142bf0['return']=_0x137f48['clone']();const _0xdad938=_0x137f48['end']['nodeBefore'],_0x3d1400=_0x48f1b7['model']['schema'];_0xdad938&&_0x3d1400['isBlock'](_0xdad938)&&!_0x3d1400['isObject'](_0xdad938)&&(_0x137f48=_0x48f1b7['model']['createRange'](_0x137f48['start'],_0x48f1b7['model']['createPositionAt'](_0xdad938,'end'))),this['markInsertion'](_0x137f48);}),_0x142bf0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3ccdc7=new $(_0x48f1b7,this['_suggestions']);_0x48f1b7['commands']['add']('acceptSuggestion',_0x3ccdc7),this['enableCommand']('acceptSuggestion');const _0x273d08=new B(_0x48f1b7,this['_suggestions']);_0x48f1b7['commands']['add']('discardSuggestion',_0x273d08),this['enableCommand']('discardSuggestion'),_0x48f1b7['commands']['add']('acceptAllSuggestions',new x(_0x48f1b7,_0x3ccdc7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x48f1b7['commands']['add']('discardAllSuggestions',new x(_0x48f1b7,_0x273d08,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x48f1b7['commands']['add']('acceptSelectedSuggestions',new R(_0x48f1b7,_0x3ccdc7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x48f1b7['commands']['add']('discardSelectedSuggestions',new R(_0x48f1b7,_0x273d08,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x388e92=_0x48f1b7['plugins']['get']('CommentsRepository');this['listenTo'](_0x388e92,'addComment',(_0x40c865,{threadId:_0x679b76})=>{const _0x492d54=this['_suggestions']['get'](_0x679b76);_0x492d54&&_0x492d54['commentThread']&&0x1===_0x492d54['commentThread']['length']&&this['_updateSuggestionData'](_0x679b76,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x388e92,'removeComment',(_0x5d9d28,{threadId:_0x4b4e4})=>{const _0x4c2c95=this['_suggestions']['get'](_0x4b4e4);_0x4c2c95&&_0x4c2c95['commentThread']&&!_0x4c2c95['commentThread']['length']&&this['_updateSuggestionData'](_0x4b4e4,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x48f055){if(this['_adapter'])throw new _0x197e78('track-changes-adapter-already-set',this);this['_adapter']=_0x48f055;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2d3326=!0x1,toJSON:_0x193c25=!0x1}={}){const _0x135529=[];for(const _0xe69911 of this['_suggestions']['values']())_0x2d3326&&!_0xe69911['isInContent']||_0x135529['push'](_0xe69911);return _0x193c25?_0x135529['map'](_0x3c74c1=>_0x3c74c1['toJSON']()):_0x135529;}['getSuggestion'](_0x4529fc){const _0x491b0e=this['_suggestions']['get'](_0x4529fc);if(!_0x491b0e)throw new _0x197e78('track-changes-suggestion-not-found',this);return _0x491b0e;}['hasSuggestion'](_0xd42233){return this['_suggestions']['has'](_0xd42233);}['addSuggestionData'](_0x547c5d){const {authorId:_0x13b5ed,id:_0x1e5a76,attributes:_0x551929}=_0x547c5d,[_0x2a7f0a,_0x146362]=_0x547c5d['type']['split'](':'),_0x3ff055=this['_suggestions']['get'](_0x1e5a76)||this['_createSuggestion'](_0x2a7f0a,_0x146362,_0x1e5a76,_0x13b5ed,_0x551929);if(this['_addThreadToSuggestion'](_0x3ff055),this['_checkSuggestionCorrectness'](_0x3ff055,_0x2a7f0a,_0x146362||null,_0x13b5ed),_0x3ff055['createdAt']=_0x547c5d['createdAt'],_0x3ff055['_isDataLoaded']=!0x0,_0x551929&&_0x551929['@external']){const _0x5f2483=_0x551929['@external'],_0x40285f=this['_getExternalAuthor'](_0x5f2483['authorName']);_0x3ff055['authoredAt']=_0x5f2483['createdAt'],_0x3ff055['author']=_0x40285f,_0x3ff055['isExternal']=!0x0;}else _0x3ff055['authoredAt']=_0x547c5d['createdAt'];switch(_0x547c5d['data']&&(_0x3ff055['data']=_0x547c5d['data']),_0x547c5d['attributes']&&(_0x3ff055['attributes']=_0x547c5d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3ff055['_saved']=!0x0),this['_suggestionState']['get'](_0x3ff055)){case'notReady':this['_suggestionState']['set'](_0x3ff055,'dataReady');break;case'markerReady':_0x3ff055['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3ff055])),this['_refreshSuggestionsChain'](new Set([_0x3ff055])),this['_suggestionState']['set'](_0x3ff055,'ready'),this['fire']('suggestionLoaded',_0x3ff055)):this['_suggestionState']['set'](_0x3ff055,'removed');}return _0x3ff055;}['acceptSuggestion'](_0xf60993){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d5da1 of _0xf60993['getAllAdjacentSuggestions']())_0x3d5da1['accept']();});});}['discardSuggestion'](_0xf3ab2e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x31a8e3 of _0xf3ab2e['getAllAdjacentSuggestions']())_0x31a8e3['discard']();});});}['enableCommand'](_0x5bb543,_0x588dcc){const _0x199782=this['editor']['commands']['get'](_0x5bb543);if(!_0x199782)throw new _0x197e78('track-changes-command-not-found',this,{'commandName':_0x5bb543});if(this['_enabledCommands']['has'](_0x199782))throw new _0x197e78('track-changes-enable-command-twice',this,{'commandName':_0x5bb543});this['_enabledCommands']['add'](_0x199782),_0x588dcc&&_0x199782['on']('execute',(_0x2e2148,_0x51d5c9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x51d5c9['length']>0x0&&_0x51d5c9[_0x51d5c9['length']-0x1]&&_0x51d5c9[_0x51d5c9['length']-0x1]['forceDefaultExecution']?_0x51d5c9['pop']():(_0x2e2148['return']=_0x588dcc((..._0x28c190)=>_0x199782['execute'](..._0x28c190,{'forceDefaultExecution':!0x0}),..._0x51d5c9),_0x2e2148['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x13d4e3){let _0x4e346d,_0x4f578f;const _0x2f0dca=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4e346d=_0x13d4e3();}catch(_0x5f0c5d){_0x4f578f=_0x5f0c5d;}return _0x2f0dca||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4f578f&&_0x197e78['rethrowUnexpectedError'](_0x4f578f,this),_0x4e346d;}['markInsertion'](_0x1815d6,_0x2ee97c=null,_0x5e4eb8={}){if(_0x1815d6['isCollapsed'])return null;const _0x59c7e1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3c21c2,meta:_0x2917af}of this['_findSuggestions'](_0x1815d6,'insertion'))if(_0x2917af['isOwn']){if(!_0x2917af['isNextTo']){if(_0x2917af['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x3c21c2,_0x5e4eb8))continue;return _0x3c21c2;}if(Lt(_0x3c21c2,_0x5e4eb8))return _0x3c21c2;this['_breakSuggestionMarker'](_0x3c21c2,_0x1815d6['start'],_0x1815d6['end']);break;}if(_0x2ee97c==_0x3c21c2['subType']&&Lt(_0x3c21c2,_0x5e4eb8)){const _0x4235d1=_0x3c21c2['getFirstRange']();return _0x4235d1['start']['isEqual'](_0x1815d6['end'])?this['_setSuggestionRange'](_0x3c21c2,this['_model']['createRange'](_0x1815d6['start'],_0x4235d1['end'])):this['_setSuggestionRange'](_0x3c21c2,this['_model']['createRange'](_0x4235d1['start'],_0x1815d6['end'])),_0x3c21c2;}}const _0x1ea876=_0x497177(),_0x19ceab=_0x59c7e1['id'],_0x14cae0=_0x2ee97c?'insertion:'+_0x2ee97c:'insertion',_0x5677de=this['_setSuggestionData']({'id':_0x1ea876,'type':_0x14cae0,'createdAt':new Date(),'authorId':_0x19ceab,'attributes':_0x5e4eb8});return this['_addSuggestionMarker'](_0x14cae0,_0x1ea876,_0x19ceab,_0x1815d6),_0x5677de;}['markMultiRangeInsertion'](_0xdf67eb,_0xcaa47a='multi',_0x169e56={}){const _0x3fd1b0=this['editor']['plugins']['get']('Users')['me'],_0x56d25d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xcaa47a,'join');for(const _0x1dab63 of this['getSuggestions']())if(_0x1dab63['author']['id']==_0x3fd1b0['id']&&'insertion'==_0x1dab63['type']&&_0x1dab63['subType']==_0xcaa47a&&Lt(_0x1dab63,_0x169e56)&&(_0x56d25d(_0x1dab63['getRanges'](),_0xdf67eb)||_0x56d25d(_0xdf67eb,_0x1dab63['getRanges']()))){for(const _0x477ede of _0xdf67eb)_0x1dab63['addRange'](_0x477ede);return _0x1dab63;}for(const {suggestion:_0x246fb4,meta:_0x297e60}of this['_findSuggestions'](_0xdf67eb,'insertion')){if(!_0x297e60['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x297e60['containsRangeInObject'])continue;if(!Lt(_0x246fb4,_0x169e56))continue;let _0x1761e2=!0x0;for(const _0x350275 of _0x246fb4['getRanges']())for(const _0x7473a7 of _0xdf67eb)if(!_0x350275['containsRange'](_0x7473a7)){_0x1761e2=!0x1;break;}if(_0x1761e2)return _0x246fb4;}const _0x22bf03=_0x497177(),_0x1555e0=_0x3fd1b0['id'],_0x5999c1='insertion:'+_0xcaa47a,_0x3ecd14=this['_setSuggestionData']({'id':_0x22bf03,'type':_0x5999c1,'createdAt':new Date(),'authorId':_0x1555e0,'attributes':_0x169e56});for(const _0x4e2107 of _0xdf67eb)this['_addSuggestionMarker'](_0x5999c1,_0x22bf03,_0x1555e0,_0x4e2107,u['getMultiRangeId']());return _0x3ecd14;}['markInlineFormat'](_0x580dd5,_0xe8ced6,_0x4d1a36=null,_0xc7167e={}){if(_0x4d1a36=_0x4d1a36||Vt(_0xe8ced6),_0x580dd5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x35997d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d1a36,'accept');return this['forceDefaultExecution'](()=>_0x35997d([_0x580dd5],_0xe8ced6,_0xc7167e)),null;}const _0x451298=this['editor']['plugins']['get']('Users')['me'],_0x1a7384=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x23f7db,meta:_0x3b219e}of this['_findSuggestions'](_0x580dd5,'insertion'))_0x3b219e['isOwn']&&!_0x3b219e['isInsideObject']&&_0x1a7384['push'](..._0x23f7db['getRanges']());}const _0x26f93d=function(_0x565c8d,_0x3542e6){const _0x2b7df5=[];for(const _0x595de6 of _0x3542e6){const _0x37af1e=_0x565c8d['getIntersection'](_0x595de6);_0x37af1e&&_0x2b7df5['push'](_0x37af1e);}return _0x2b7df5;}(_0x580dd5,_0x1a7384),_0x220ec8=function(_0x3e12e2,_0x3080dd){const _0x2c7a19=[_0x3e12e2];for(const _0x1914a6 of _0x3080dd){let _0x530675=0x0;for(;_0x530675<_0x2c7a19['length'];){const _0x1fb7ac=_0x2c7a19[_0x530675]['getDifference'](_0x1914a6);_0x2c7a19['splice'](_0x530675,0x1,..._0x1fb7ac),_0x530675+=_0x1fb7ac['length'];}}return _0x2c7a19;}(_0x580dd5,_0x1a7384);_0x26f93d['length']&&this['_model']['change'](()=>{for(const _0x3cf59c of _0x26f93d){const _0x38a262=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d1a36,'accept');this['forceDefaultExecution'](()=>_0x38a262([_0x3cf59c],_0xe8ced6,_0xc7167e));}});for(const _0x578725 of _0x220ec8){let _0x133b0f=null,_0x247ea5=_0x578725['start'],_0x3afa62=_0x578725['end'];for(const {suggestion:_0x41453e,meta:_0x4b0bdd}of this['_findSuggestions'](_0x578725,'formatInline')){if(!_0x4b0bdd['isOwn'])continue;if(_0x41453e['subType']!=_0x4d1a36)continue;if(!Lt(_0x41453e,_0xc7167e))continue;const _0x263acf=_0x41453e['getFirstRange']();if(_0x263acf['containsRange'](_0x578725,!0x0))return null;_0x247ea5=_0x247ea5['isBefore'](_0x263acf['start'])?_0x247ea5:_0x263acf['start'],_0x3afa62=_0x3afa62['isAfter'](_0x263acf['end'])?_0x3afa62:_0x263acf['end'],_0x133b0f?_0x263acf['start']['isBefore'](_0x133b0f['getFirstRange']()['start'])?(_0x133b0f['removeMarkers'](),_0x133b0f=_0x41453e):_0x41453e['removeMarkers']():_0x133b0f=_0x41453e;}const _0xfa46ee=this['_model']['createRange'](_0x247ea5,_0x3afa62);if(_0x133b0f)this['_setSuggestionRange'](_0x133b0f,_0xfa46ee);else{const _0x530d98=_0x497177(),_0x195ad6=_0x451298['id'];this['_setSuggestionData']({'id':_0x530d98,'type':'formatInline:'+_0x4d1a36,'data':_0xe8ced6,'createdAt':new Date(),'authorId':_0x195ad6,'attributes':_0xc7167e}),this['_addSuggestionMarker']('formatInline:'+_0x4d1a36,_0x530d98,_0x195ad6,_0xfa46ee);}}return null;}['markBlockFormat'](_0x385710,_0x512cf1,_0x43558c=[],_0x3ef470=null,_0x2d4d87={}){_0x512cf1['formatGroupId']||(_0x512cf1['formatGroupId']=_0x512cf1['commandName']),_0x512cf1['multipleBlocks']=_0x385710['is']('range'),_0x3ef470=_0x3ef470||Vt(_0x512cf1);const _0x429f96=_0x43558c['map'](_0x2d0cbb=>Gt(_0x2d0cbb,this['_model'])),_0x258e73=_0x385710['is']('range')?_0x385710:Gt(_0x385710,this['_model']);if('never'===this['_trackFormatChanges']){const _0x21df8b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ef470,'accept');return this['forceDefaultExecution'](()=>_0x21df8b([_0x258e73],_0x512cf1,_0x2d4d87)),null;}_0x429f96['push'](_0x258e73);let _0x22ebc0=!0x0;for(const _0x53631d of _0x429f96)if(!this['_rangeIsInLocalUserInsertion'](_0x53631d)){_0x22ebc0=!0x1;break;}if(_0x22ebc0&&'always'!==this['_trackFormatChanges']){const _0x4a4743=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ef470,'accept');return this['forceDefaultExecution'](()=>_0x4a4743([_0x258e73],_0x512cf1,_0x2d4d87)),null;}let _0x378f3a=null,_0x2492f8=_0x258e73['start'],_0x3e683e=_0x258e73['end'];for(const {suggestion:_0x16b3b9,meta:_0x504581}of this['_findSuggestions'](_0x258e73,'formatBlock')){if(!_0x504581['isOwn'])continue;if(_0x504581['isNextTo']||_0x504581['containsRangeInObject']||_0x504581['isInsideObject'])continue;if(_0x16b3b9['data']['formatGroupId']!=_0x512cf1['formatGroupId'])continue;if(!Lt(_0x16b3b9,_0x2d4d87))continue;const _0x2dc25b=_0x16b3b9['getFirstRange']();if(_0x16b3b9['subType']==_0x3ef470){if(_0x2dc25b['containsRange'](_0x258e73,!0x0))return null;_0x2492f8=_0x2492f8['isBefore'](_0x2dc25b['start'])?_0x2492f8:_0x2dc25b['start'],_0x3e683e=_0x3e683e['isAfter'](_0x2dc25b['end'])?_0x3e683e:_0x2dc25b['end'],_0x378f3a?_0x2dc25b['start']['isBefore'](_0x378f3a['getFirstRange']()['start'])?(_0x378f3a['removeMarkers'](),_0x378f3a=_0x16b3b9):_0x16b3b9['removeMarkers']():_0x378f3a=_0x16b3b9;}else{const _0x33cdb5=_0x258e73['getIntersection'](_0x2dc25b);this['_cutOutSuggestionMarker'](_0x16b3b9,_0x33cdb5);}}const _0x299b03=this['editor']['plugins']['get']('Users')['me'],_0x6e4010=_0x497177(),_0x5aab72=_0x299b03['id'];if(_0x378f3a)return this['_setSuggestionRange'](_0x378f3a,this['_model']['createRange'](_0x2492f8,_0x3e683e)),_0x378f3a;{const _0x57b9a0=this['_setSuggestionData']({'id':_0x6e4010,'type':'formatBlock:'+_0x3ef470,'data':_0x512cf1,'createdAt':new Date(),'authorId':_0x5aab72,'attributes':_0x2d4d87});return this['_addSuggestionMarker']('formatBlock:'+_0x3ef470,_0x6e4010,_0x5aab72,this['_model']['createRange'](_0x2492f8,_0x3e683e)),_0x57b9a0;}}['markMultiRangeBlockFormat'](_0x494661,_0x33dd9e,_0x2540c0=[],_0x2bca1d=null,_0xab21b5={}){_0x33dd9e['formatGroupId']||(_0x33dd9e['formatGroupId']=_0x33dd9e['commandName']);const _0xbc2315=_0x494661[0x0];_0x33dd9e['multipleBlocks']=_0xbc2315['is']('range'),_0x2bca1d=_0x2bca1d||Vt(_0x33dd9e);const _0x5d0ef0=_0x2540c0['map'](_0x290a0f=>Gt(_0x290a0f,this['_model'])),_0x495869=_0xbc2315['is']('range')?_0x494661:_0x494661['map'](_0x17c5c8=>Gt(_0x17c5c8,this['_model']));if('never'===this['_trackFormatChanges']){const _0x38ef72=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bca1d,'accept');return this['forceDefaultExecution'](()=>_0x38ef72(_0x495869,_0x33dd9e,_0xab21b5)),null;}_0x5d0ef0['push'](..._0x495869);let _0x3122b5=!0x0;for(const _0x17a150 of _0x5d0ef0)if(!this['_rangeIsInLocalUserInsertion'](_0x17a150)){_0x3122b5=!0x1;break;}if(_0x3122b5&&'always'!==this['_trackFormatChanges']){const _0x3d6d7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bca1d,'accept');return this['forceDefaultExecution'](()=>_0x3d6d7f(_0x495869,_0x33dd9e,_0xab21b5)),null;}const _0x4e848e=this['editor']['plugins']['get']('Users')['me'];for(const _0x1b1ba0 of this['getSuggestions']()){if(_0x1b1ba0['author']['id']!=_0x4e848e['id'])continue;if('formatBlock'!=_0x1b1ba0['type']||_0x1b1ba0['data']['formatGroupId']!=_0x33dd9e['formatGroupId'])continue;if(!Lt(_0x1b1ba0,_0xab21b5))continue;const _0x4ae81b=_0x1b1ba0['subType']==_0x2bca1d;for(let _0x53f6d4=0x0;_0x53f6d4<_0x495869['length'];_0x53f6d4++){const _0xe22e91=_0x495869[_0x53f6d4];for(const _0x4efd6c of _0x1b1ba0['getMarkers']()){const _0x5b01f2=_0x4efd6c['getRange']();if(_0xe22e91['isEqual'](_0x5b01f2)){_0x4ae81b?(_0x495869['splice'](_0x53f6d4,0x1),_0x53f6d4--):_0x1b1ba0['removeMarker'](_0x4efd6c['name']);break;}}}}if(0x0==_0x495869['length'])return null;const _0xf83b0f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bca1d,'join');for(const _0x37fe98 of this['getSuggestions']())if(_0x37fe98['author']['id']==_0x4e848e['id']&&'formatBlock'==_0x37fe98['type']&&_0x37fe98['data']['formatGroupId']==_0x33dd9e['formatGroupId']&&_0x37fe98['subType']==_0x2bca1d&&Lt(_0x37fe98,_0xab21b5)&&(_0xf83b0f(_0x37fe98['getRanges'](),_0x495869)||_0xf83b0f(_0x495869,_0x37fe98['getRanges']()))){for(const _0x43e5e5 of _0x495869)_0x37fe98['addRange'](_0x43e5e5);return _0x37fe98;}const _0x561137=_0x497177(),_0x9c6ab7=_0x4e848e['id'],_0xfcab02='formatBlock:'+_0x2bca1d,_0x1c1185=this['_setSuggestionData']({'id':_0x561137,'type':_0xfcab02,'data':_0x33dd9e,'createdAt':new Date(),'authorId':_0x9c6ab7,'attributes':_0xab21b5});for(const _0x1b5687 of _0x495869)this['_addSuggestionMarker'](_0xfcab02,_0x561137,_0x9c6ab7,_0x1b5687,u['getMultiRangeId']());return _0x1c1185;}['markDeletion'](_0x50c0e0,_0x5929a9=null,_0xe745d={}){if(_0x50c0e0['isCollapsed'])return null;const _0x59392=this['editor']['plugins']['get']('Users')['me'],_0x4f6e20=new _0x5e8b6d(_0x50c0e0['start'],_0x50c0e0['end']);for(const {suggestion:_0x34991b,meta:_0x30c37a}of this['_findSuggestions'](_0x4f6e20,'insertion'))if(_0x30c37a['isOwn']&&!_0x30c37a['isNextTo']){if(_0x34991b['isMultiRange']){const _0x23d3ad=_0x34991b['getRanges']()['filter'](_0x4948d6=>'$graveyard'!=_0x4948d6['root']['rootName']);_0x23d3ad['every'](_0xc6def2=>_0x4f6e20['containsRange'](_0xc6def2,!0x0))&&_0x34991b['discard']();if(_0x23d3ad['some'](_0x513ae6=>_0x513ae6['containsRange'](_0x4f6e20,!0x0))){const _0x39267a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5929a9,'accept');return this['forceDefaultExecution'](()=>_0x39267a([_0x4f6e20],null,_0xe745d)),null;}}else{const _0x38f7d1=_0x4f6e20['getIntersection'](_0x34991b['getFirstRange']());null!==_0x38f7d1&&_0x34991b['_onDiscard']([_0x38f7d1],null,_0xe745d);}}if(_0x4f6e20['detach'](),_0x4f6e20['isCollapsed']||'$graveyard'==_0x4f6e20['root']['rootName'])return null;let _0x547bab=null,_0x48c3cf=_0x4f6e20['start'],_0x36ac68=_0x4f6e20['end'];const _0x5791cc=this['_findSuggestions'](_0x4f6e20,'deletion');for(const {suggestion:_0x5080c7,meta:_0x265659}of _0x5791cc){const _0x121908=this['_model']['createRange'](_0x48c3cf,_0x36ac68);if(_0x265659['isOwn']&&(this['_mergeNestedSuggestions']||!_0x265659['containsRangeInObject']&&!_0x265659['isInsideObject'])){if(_0x5080c7['isMultiRange']){if(!Lt(_0x5080c7,_0xe745d))continue;let _0x1bf63b=!0x0;for(const _0x40de9c of _0x5080c7['getRanges']()){if(_0x40de9c['containsRange'](_0x121908,!0x0))return _0x5080c7;_0x121908['containsRange'](_0x40de9c)||(_0x1bf63b=!0x1);}_0x1bf63b&&_0x5080c7['discard']();}else{const _0x26f098=_0x5080c7['getFirstRange']();if(_0x26f098['containsRange'](_0x121908,!0x0))return _0x5080c7;if(!Lt(_0x5080c7,_0xe745d)){_0x121908['containsRange'](_0x26f098)?_0x5080c7['removeMarkers']():_0x26f098['containsPosition'](_0x48c3cf)?_0x48c3cf=_0x26f098['end']:_0x26f098['containsPosition'](_0x36ac68)&&(_0x36ac68=_0x26f098['start']);continue;}_0x48c3cf=_0x48c3cf['isBefore'](_0x26f098['start'])?_0x48c3cf:_0x26f098['start'],_0x36ac68=_0x36ac68['isAfter'](_0x26f098['end'])?_0x36ac68:_0x26f098['end'],_0xe745d=Object['assign']({},_0x5080c7['attributes']),_0x547bab?_0x26f098['start']['isBefore'](_0x547bab['getFirstRange']()['start'])?(_0x547bab['removeMarkers'](),_0x547bab=_0x5080c7):_0x5080c7['removeMarkers']():_0x547bab=_0x5080c7;}}}if(_0x547bab)return this['_setSuggestionRange'](_0x547bab,this['_model']['createRange'](_0x48c3cf,_0x36ac68)),_0x547bab;{const _0x3bb9a6=_0x497177(),_0x4bd28a=this['_model']['createRange'](_0x48c3cf,_0x36ac68),_0x4caa6a=_0x59392['id'],_0x5f5df6=_0x5929a9?'deletion:'+_0x5929a9:'deletion',_0x41c866=this['_setSuggestionData']({'id':_0x3bb9a6,'type':_0x5f5df6,'createdAt':new Date(),'authorId':_0x4caa6a,'attributes':_0xe745d});return this['_addSuggestionMarker'](_0x5f5df6,_0x3bb9a6,_0x4caa6a,_0x4bd28a),_0x41c866;}}['markMultiRangeDeletion'](_0x2dfedf,_0x4a2fa9='multi',_0x221df3={}){const _0x201fae=this['editor']['plugins']['get']('Users')['me'],_0xfd48fd=_0x2dfedf['map'](_0x2dddf9=>new _0x5e8b6d(_0x2dddf9['start'],_0x2dddf9['end'])),_0x481d95=new Set();for(const {suggestion:_0x315b1c,meta:_0x3f9e7e}of this['_findSuggestions'](_0xfd48fd,'insertion'))_0x3f9e7e['isOwn']&&!_0x3f9e7e['isNextTo']&&_0x481d95['add'](_0x315b1c);for(const _0x3de159 of _0x481d95)if(_0x3de159['isMultiRange']){const _0x51225d=_0x3de159['getRanges']();(!_0x3de159['attributes']||!_0x3de159['attributes']['skipNestingCheck'])&&(_0x51225d['every'](_0x30e732=>_0xfd48fd['some'](_0xdeaebe=>_0xdeaebe['containsRange'](_0x30e732,!0x0)))&&_0x3de159['discard']());if(_0xfd48fd['every'](_0xb8a5d0=>_0x51225d['some'](_0x558733=>_0x558733['containsRange'](_0xb8a5d0,!0x0)))){const _0x4bf486=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a2fa9,'accept');return this['forceDefaultExecution'](()=>_0x4bf486(_0x2dfedf,null,_0x221df3)),null;}}else{const _0x1ebb90=_0x3de159['getFirstRange']();_0xfd48fd['some'](_0x42816e=>_0x42816e['containsRange'](_0x1ebb90,!0x0))&&_0x3de159['discard']();if(_0xfd48fd['every'](_0x25999c=>_0x1ebb90['containsRange'](_0x25999c,!0x0))){const _0x231da8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a2fa9,'accept');return this['forceDefaultExecution'](()=>_0x231da8(_0xfd48fd,null,_0x221df3)),null;}}const _0x47ff95=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a2fa9,'join');let _0x14c2a6=null;for(const _0x50c15a of this['getSuggestions']())if(_0x50c15a['author']['id']==_0x201fae['id']&&_0x50c15a['isInContent']&&'deletion'==_0x50c15a['type']&&_0x50c15a['subType']==_0x4a2fa9&&Lt(_0x50c15a,_0x221df3)&&(_0x47ff95(_0x50c15a['getRanges'](),_0xfd48fd)||_0x47ff95(_0xfd48fd,_0x50c15a['getRanges']()))){if(_0x14c2a6){if(_0x50c15a['commentThread']&&_0x50c15a['commentThread']['length'])continue;for(const _0x148212 of _0x50c15a['getRanges']())_0x14c2a6['isIntersectingWithRange'](_0x148212)||_0x14c2a6['addRange'](_0x148212);_0x50c15a['removeMarkers']();}else{_0x14c2a6=_0x50c15a;for(const _0x2f08f0 of _0xfd48fd)_0x50c15a['isIntersectingWithRange'](_0x2f08f0)||_0x50c15a['addRange'](_0x2f08f0);}}if(_0x14c2a6)return _0x14c2a6;_0x481d95['clear']();for(const {suggestion:_0x36948d,meta:_0x1667c0}of this['_findSuggestions'](_0xfd48fd,'deletion'))_0x1667c0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1667c0['containsRangeInObject']&&!_0x1667c0['isInsideObject'])&&Lt(_0x36948d,_0x221df3)&&_0x481d95['add'](_0x36948d);for(const _0x28cf77 of _0x481d95){const _0x32aa96=_0x28cf77['getRanges']();if(!_0x221df3||!_0x221df3['skipNestingCheck']){if(_0xfd48fd['every'](_0x5d811e=>_0x32aa96['some'](_0x3eb46f=>_0x3eb46f['containsRange'](_0x5d811e,!0x0))))return _0x28cf77;}(!_0x28cf77['attributes']||!_0x28cf77['attributes']['skipNestingCheck'])&&(_0x32aa96['every'](_0x5ac1bd=>_0xfd48fd['some'](_0x3b37cd=>_0x3b37cd['containsRange'](_0x5ac1bd,!0x0)))&&_0x28cf77['discard']());}const _0x15b3d5=_0x497177(),_0x505aec=_0x201fae['id'],_0x2afbdd='deletion:'+_0x4a2fa9,_0x423930=this['_setSuggestionData']({'id':_0x15b3d5,'type':_0x2afbdd,'createdAt':new Date(),'authorId':_0x505aec,'attributes':_0x221df3});for(const _0x1afafd of _0xfd48fd)_0x1afafd['detach'](),_0x1afafd['isCollapsed']||'$graveyard'==_0x1afafd['root']['rootName']||this['_addSuggestionMarker'](_0x2afbdd,_0x15b3d5,_0x505aec,_0x1afafd,u['getMultiRangeId']());return _0x423930;}['markAttributeChange'](_0x2ee701,_0x520cab,_0x404d9f,_0x5aa770,_0x32a26b){if(_0x2ee701['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x33908f=this['editor']['plugins']['get']('Users')['me']['id'],_0x53344d=Array['from'](this['_suggestions']['values']())['filter'](_0x321076=>'attribute'==_0x321076['type']&&_0x321076['data']['key']==_0x520cab&&_0x321076['isIntersectingWithRange'](_0x2ee701));if('default'===this['_trackFormatChanges']){const _0x130d96=this['_findSuggestions'](_0x2ee701,'insertion')['filter'](({meta:_0x271eea})=>_0x271eea['isOwn']&&!_0x271eea['isInsideObject']&&!_0x271eea['isNextTo'])['map'](({suggestion:_0x541f57})=>_0x541f57);_0x53344d['unshift'](..._0x130d96);}const _0xbdf234=new Map([[_0x2ee701,_0x404d9f]]);for(const _0x1e30d1 of _0x53344d){const _0x5ebb0f='attribute'==_0x1e30d1['type']?_0x1e30d1['data']['oldValue']:void 0x0,_0x2d2cd4=_0x1e30d1['getFirstRange'](),_0x12e1a4=Array['from'](_0xbdf234['keys']())['find'](_0x26990c=>_0x26990c['isIntersecting'](_0x2d2cd4));if(!_0x12e1a4)continue;const _0x6451fe=_0x12e1a4['getDifference'](_0x2d2cd4);this['_isBlockAttribute'](_0x520cab)&&'insertion'==_0x1e30d1['type']&&0x0!=_0x6451fe['length']||(_0xbdf234['delete'](_0x12e1a4),_0x6451fe['forEach'](_0x5e5826=>{_0xbdf234['set'](_0x5e5826,_0x404d9f);}),'insertion'!=_0x1e30d1['type']&&_0x5ebb0f!=_0x5aa770&&_0xbdf234['set'](_0x12e1a4['getIntersection'](_0x2d2cd4),_0x5ebb0f));}const _0x5ed822=[];for(const [_0x55b040,_0xd8bd8]of _0xbdf234){const _0xd3301e=_0x497177(),_0x13b9fc={'key':_0x520cab,'oldValue':_0xd8bd8,'newValue':_0x5aa770};_0x520cab['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':_0x520cab});const _0x189fc8=('attribute:'+(_0x520cab+'|'+Vt({'newValue':_0x5aa770})))['substring'](0x0,0x3c),_0x239b74=this['_setSuggestionData']({'id':_0xd3301e,'type':_0x189fc8,'data':_0x13b9fc,'createdAt':new Date(),'authorId':_0x33908f,'attributes':_0x32a26b});_0x5ed822['push'](_0x239b74),this['_addSuggestionMarker'](_0x189fc8,_0xd3301e,_0x33908f,_0x55b040);}return _0x5ed822;}['enableDefaultAttributesIntegration'](_0x1de0cc){this['enableCommand'](_0x1de0cc,(_0x2a373f,..._0x28275f)=>{this['_recordAttributeChanges'](()=>{_0x2a373f(..._0x28275f);});});}['registerBlockAttribute'](_0x1caadd){this['_blockAttributeKeys']['add'](_0x1caadd);}['registerInlineAttribute'](_0x22f112){this['_inlineAttributeKeys']['add'](_0x22f112);}['_getAttributeKey'](_0x9e0675){return'attribute'==_0x9e0675['type']?_0x9e0675['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xb63cc5,_0x5e81b7){const _0x180675=_0xb63cc5['getFirstMarker']();this['_model']['change'](_0x4b43af=>{_0x4b43af['updateMarker'](_0x180675,{'range':_0x5e81b7});});}['_addThreadToSuggestion'](_0x206de1){const _0x10245f=_0x206de1['id'],_0x534453=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x10245f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x534453,'threadId':_0x10245f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x12347b=this['_commentsRepository']['getCommentThread'](_0x10245f);_0x12347b['unbind']('isRemovable'),_0x12347b['isRemovable']=!0x1,_0x206de1['commentThread']=_0x12347b;}['_checkSuggestionCorrectness'](_0x232ebb,_0x539b43,_0x32e4ae,_0x41b1c0){if(_0x232ebb['type']!=_0x539b43||_0x232ebb['subType']!=_0x32e4ae||_0x232ebb['creator']['id']!=_0x41b1c0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x197e78('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3dc910,_0x1c2440){const _0x397297=_0x3dc910['getFirstRange']();if(_0x1c2440['isEqual'](_0x397297))_0x3dc910['removeMarkers']();else{if(_0x397297['containsRange'](_0x1c2440)){const _0x56ed1f=this['_model']['createPositionAt'](_0x1c2440['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3dc910,this['_model']['createRange'](_0x397297['start'],_0x56ed1f));const _0x58d23=_0x497177(),_0xb8f8e4=_0x3dc910['creator']['id'],_0x5efaa8=_0x3dc910['type']+':'+_0x3dc910['subType'];this['_setSuggestionData']({'id':_0x58d23,'type':_0x5efaa8,'createdAt':new Date(),'authorId':_0xb8f8e4,'data':_0x3dc910['data'],'attributes':_0x3dc910['attributes']});const _0x2ca62b=this['_model']['createPositionAt'](_0x1c2440['end']['parent'],'after'),_0x1e8dc4=this['_model']['createRange'](_0x2ca62b,_0x397297['end']);this['_addSuggestionMarker'](_0x5efaa8,_0x58d23,_0xb8f8e4,_0x1e8dc4);}else{if(_0x397297['containsPosition'](_0x1c2440['start'])){const _0x2ceac7=this['_model']['createPositionAt'](_0x1c2440['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3dc910,this['_model']['createRange'](_0x397297['start'],_0x2ceac7));}else{const _0x43a388=this['_model']['createPositionAt'](_0x1c2440['end']['parent'],'after');this['_setSuggestionRange'](_0x3dc910,this['_model']['createRange'](_0x43a388,_0x397297['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x26a67c){for(const {suggestion:_0x248bed,meta:_0x3fe686}of this['_findSuggestions'](_0x26a67c,'insertion')){if(!_0x3fe686['isOwn'])continue;const _0x250c76=_0x248bed['getRanges']();for(const _0x1a0296 of _0x250c76)if(!_0x26a67c['getDifference'](_0x1a0296)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x224686){const _0x157b6f=this['editor']['plugins']['get']('Users')['getUser'](_0x224686);if(!_0x157b6f)throw new _0x197e78('track-changes-user-not-found',this);return _0x157b6f;}['_getExternalAuthor'](_0x456d1a){const _0x25c9ce=this['editor']['plugins']['get']('Users'),_0xa5650=_0x4e2023('external:'+_0x456d1a),_0x2adffd=_0x25c9ce['getUser'](_0xa5650);return _0x2adffd||_0x25c9ce['addUser']({'id':_0xa5650,'name':_0x456d1a});}['_createSuggestion'](_0x27e5a9,_0x39d746,_0x2f0446,_0x5ddf97,_0xc2fa0b){const _0x388026=this['_getAuthorFromId'](_0x5ddf97),_0x1d2394=this['_suggestionFactory']['buildSuggestion'](_0x27e5a9,_0x39d746,_0x2f0446,_0x388026,_0xc2fa0b,_0x40fd39=>{this['_updateSuggestionData'](_0x2f0446,{'attributes':_0x40fd39});const _0x1529df=this['getSuggestion'](_0x2f0446);this['_joinWithAdjacentSuggestions'](new Set([_0x1529df])),this['_refreshSuggestionsChain'](new Set([_0x1529df]));});return this['listenTo'](_0x1d2394,'accept',()=>{this['_updateSuggestionData'](_0x2f0446,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1d2394,'discard',()=>{this['_updateSuggestionData'](_0x2f0446,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f0446,_0x1d2394),this['_suggestionState']['set'](_0x1d2394,'notReady'),_0x1d2394;}['_splitMarkerName'](_0x2d536a){const _0x4fc771=_0x2d536a['split'](':');return{'group':_0x4fc771[0x0],'type':_0x4fc771[0x1],'subType':_0x4fc771['length']>=0x5?_0x4fc771[0x2]:null,'id':_0x4fc771['length']<0x5?_0x4fc771[0x2]:_0x4fc771[0x3],'authorId':_0x4fc771['length']<0x5?_0x4fc771[0x3]:_0x4fc771[0x4],'markerCount':0x6==_0x4fc771['length']?_0x4fc771[0x5]:null};}['_breakSuggestionMarker'](_0x554d40,_0x29c630,_0x197047){const _0x2eb36a=_0x554d40['getFirstRange'](),_0xf20e80=_0x2eb36a['start'],_0x53cdfd=_0x2eb36a['end'];this['_setSuggestionRange'](_0x554d40,this['_model']['createRange'](_0xf20e80,_0x29c630));const _0x46078b=_0x497177(),_0x40c824=_0x554d40['creator']['id'],_0x390af0=_0x554d40['type']+(_0x554d40['subType']?':'+_0x554d40['subType']:'');this['_setSuggestionData']({'id':_0x46078b,'type':_0x390af0,'createdAt':new Date(),'authorId':_0x40c824,'originalSuggestionId':_0x554d40['id'],'attributes':_0x554d40['attributes'],'data':_0x554d40['data']});const _0x398f17=this['_getAttributeKey'](_0x554d40);('formatBlock'==_0x554d40['type']||_0x398f17&&this['_isBlockAttribute'](_0x398f17))&&(_0x197047=this['_model']['createPositionBefore'](_0x197047['parent'])),this['_addSuggestionMarker'](_0x390af0,_0x46078b,_0x40c824,this['_model']['createRange'](_0x197047,_0x53cdfd));}['_findSuggestions'](_0x52f13e,_0x3d53aa=null){const _0x226808=[],_0x320b38=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x52f13e)||(_0x52f13e=[_0x52f13e]);for(const _0xf1a5a4 of this['getSuggestions']()){if(!_0xf1a5a4['isInContent'])continue;if(_0x3d53aa&&_0xf1a5a4['type']!=_0x3d53aa)continue;let _0xdd0b9c=!0x1;for(const _0x76a1dc of _0xf1a5a4['getRanges']()){for(const _0x2877db of _0x52f13e){const _0x3f4d0c=_0x2877db['start']['isEqual'](_0x76a1dc['end'])||_0x2877db['end']['isEqual'](_0x76a1dc['start']);if(_0x3f4d0c||_0x2877db['getIntersection'](_0x76a1dc)){const _0x54ccb9=_0x2877db['containsRange'](_0x76a1dc)&&Rt(this['_model']['schema'],_0x76a1dc['start'],_0x2877db),_0x1bd58b=_0x76a1dc['containsRange'](_0x2877db)&&Rt(this['_model']['schema'],_0x2877db['start'],_0x76a1dc);_0x226808['push']({'suggestion':_0xf1a5a4,'meta':{'isOwn':_0x320b38==_0xf1a5a4['author'],'isNextTo':_0x3f4d0c,'isInsideObject':_0x54ccb9,'containsRangeInObject':_0x1bd58b}}),_0xdd0b9c=!0x0;break;}}if(_0xdd0b9c)break;}}return _0x226808;}['_addSuggestionMarker'](_0x3807e8,_0x48a180,_0x278526,_0x5c4a67,_0x58c388){this['_model']['change'](_0x4bf8d2=>{let _0x34ace8='suggestion:'+_0x3807e8+':'+_0x48a180+':'+_0x278526;_0x58c388&&(_0x34ace8=_0x34ace8+':'+_0x58c388),_0x4bf8d2['addMarker'](_0x34ace8,{'range':_0x5c4a67,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4aeb4b){const _0x14d527=_0x4aeb4b['previous'],_0x2d0d81=_0x4aeb4b['next'];_0x4aeb4b['previous']=null,_0x4aeb4b['next']=null,null!=_0x14d527&&_0x14d527['next']==_0x4aeb4b&&(_0x14d527['next']=_0x2d0d81),null!=_0x2d0d81&&_0x2d0d81['previous']==_0x4aeb4b&&(_0x2d0d81['previous']=_0x14d527),'ready'==this['_suggestionState']['get'](_0x4aeb4b)&&(this['_suggestionState']['set'](_0x4aeb4b,'removed'),this['fire']('suggestionUnloaded',_0x4aeb4b,_0x14d527,_0x2d0d81));}['_setSuggestionData'](_0xd9485b){const _0x1af3c1=_0xd9485b['id'],_0x916f78=this['addSuggestionData'](_0xd9485b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x116a4a=this['editor']['plugins']['get']('PendingActions'),_0x5f4d2e=_0x916f78['hasComments'],_0x38ad83=_0x916f78['subType']?_0x916f78['type']+':'+_0x916f78['subType']:_0x916f78['type'],_0x2291c4=this['editor']['locale'],_0x539079=_0x116a4a['add'](o(_0x2291c4,'PENDING_ACTION_SUGGESTION')),_0x48d638={'id':_0x1af3c1,'type':_0x38ad83,'hasComments':_0x5f4d2e,'data':_0xd9485b['data']||null,'originalSuggestionId':_0xd9485b['originalSuggestionId']||null,'attributes':_0x916f78['attributes']};this['_adapter']['addSuggestion'](_0x48d638)['then'](_0x30db0a=>{_0x916f78['_saved']=!0x0,_0x116a4a['remove'](_0x539079),_0x30db0a&&_0x30db0a['createdAt']&&(this['_suggestions']['get'](_0x1af3c1)['createdAt']=_0x30db0a['createdAt']);})['catch'](_0x18a35b=>{throw _0xe6849e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x916f78['discard']();}),_0x916f78['stopListening'](),this['_suggestions']['delete'](_0x916f78['id']),this['_suggestionState']['delete'](_0x916f78),_0x18a35b;});}return _0x916f78;}['_isBlockAttribute'](_0x3b438c){return this['_blockAttributeKeys']['has'](_0x3b438c);}['_updateSuggestionData'](_0x1635d9,_0x17ed8a){const _0x4e2f26=this['editor']['plugins']['get']('PendingActions'),_0xf93d8b=this['getSuggestion'](_0x1635d9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xf93d8b['_saved']){const _0x429b5b=_0x4e2f26['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1635d9,_0x17ed8a)['then'](()=>{_0x4e2f26['remove'](_0x429b5b);});}else _0xf93d8b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1635d9,_0x17ed8a);});}}['_getSuggestionData'](_0x13d1d4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x197e78('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x13d1d4);}['_handleNewSuggestionMarker'](_0x456f64){const {id:_0x1c3ce9,type:_0x3b5473,subType:_0x18cf85,authorId:_0x49e693}=this['_splitMarkerName'](_0x456f64),_0x4d977b=this['_suggestions']['get'](_0x1c3ce9)||this['_createSuggestion'](_0x3b5473,_0x18cf85,_0x1c3ce9,_0x49e693,{});switch(this['_checkSuggestionCorrectness'](_0x4d977b,_0x3b5473,_0x18cf85,_0x49e693),this['_suggestionState']['get'](_0x4d977b)){case'notReady':this['_getSuggestionData'](_0x1c3ce9)['then'](_0x188141=>{let _0x52c515=Promise['resolve']();_0x188141['hasComments']&&(_0x52c515=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1c3ce9})),_0x52c515['then'](()=>{this['addSuggestionData'](_0x188141)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4d977b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1c3ce9,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4d977b,'ready'),this['fire']('suggestionLoaded',_0x4d977b);break;case'ready':this['fire']('suggestionChanged',_0x4d977b);}return _0x4d977b['addMarkerName'](_0x456f64),_0x4d977b;}['_refreshSuggestionsChain'](_0x367a07){const _0x2c0a7f=Array['from'](_0x367a07),_0x4f0f20=_0x2c0a7f['filter'](_0x4c6c9a=>'attribute'==_0x4c6c9a['type']);this['_refreshAttributeSuggestionsChain'](_0x4f0f20);const _0x48a903=_0x2c0a7f['filter'](_0x734fc8=>!_0x734fc8['isMultiRange']&&'attribute'!=_0x734fc8['type']),_0x1b6672=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b721c=>!_0x3b721c['isMultiRange']&&'attribute'!=_0x3b721c['type']),_0x4679d0=_0x1b6672['filter'](_0x4f58d3=>!_0x367a07['has'](_0x4f58d3)),_0x5a2d52=new Map(_0x1b6672['map'](_0x3a4042=>[_0x3a4042,this['_suggestionFactory']['getSuggestionCallback'](_0x3a4042['type'],_0x3a4042['subType'],'chain')])),_0x3868ad=new Map(_0x1b6672['map'](_0x425852=>[_0x425852,_0x425852['getFirstRange']()])),_0x8d0ec0=new Set(),_0x5e87bb=new Set();for(let _0x45fbc0=0x0;_0x45fbc0<_0x48a903['length'];_0x45fbc0++)_0x187f5d(_0x48a903[_0x45fbc0],_0x48a903,_0x45fbc0+0x1);for(let _0x67f33c=0x0;_0x67f33c<_0x48a903['length'];_0x67f33c++)_0x187f5d(_0x48a903[_0x67f33c],_0x4679d0,0x0);const _0x57cc8d=new Set();for(let _0x486d54=0x0;_0x486d54<_0x48a903['length'];_0x486d54++){const _0x2971be=_0x48a903[_0x486d54];!_0x5e87bb['has'](_0x2971be)&&_0x2971be['previous']&&(_0x57cc8d['add'](_0x2971be['previous']),_0x2971be['previous']['next']===_0x2971be&&(_0x2971be['previous']['next']=null),_0x2971be['previous']=null),!_0x8d0ec0['has'](_0x2971be)&&_0x2971be['next']&&(_0x57cc8d['add'](_0x2971be['next']),_0x2971be['next']['previous']===_0x2971be&&(_0x2971be['next']['previous']=null),_0x2971be['next']=null);}function _0x187f5d(_0x2ddbe3,_0xef98a5,_0xe83e2f){for(let _0x475cb4=_0xe83e2f;_0x475cb4<_0xef98a5['length'];_0x475cb4++){const _0x3189d7=_0x381c60(_0x2ddbe3,_0xef98a5[_0x475cb4]);_0x3189d7&&(_0x3189d7[0x0]['next']=_0x3189d7[0x1],_0x3189d7[0x1]['previous']=_0x3189d7[0x0],_0x8d0ec0['add'](_0x3189d7[0x0]),_0x5e87bb['add'](_0x3189d7[0x1]));}}function _0x381c60(_0x29e707,_0x1c1868){if(_0x29e707['author']['id']!==_0x1c1868['author']['id'])return null;const _0x1fee8f=_0x5a2d52['get'](_0x29e707)(_0x29e707,_0x1c1868,_0x3868ad['get'](_0x29e707),_0x3868ad['get'](_0x1c1868));if(!_0x1fee8f)return null;return _0x5a2d52['get'](_0x1c1868)(_0x29e707,_0x1c1868,_0x3868ad['get'](_0x29e707),_0x3868ad['get'](_0x1c1868))?_0x1fee8f[0x1]['commentThread']&&_0x1fee8f[0x1]['commentThread']['length']?null:_0x1fee8f:null;}_0x57cc8d['size']&&this['_refreshSuggestionsChain'](_0x57cc8d);}['_refreshAttributeSuggestionsChain'](_0x368108){if(0x0==_0x368108['length'])return;const _0x8fe40c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c6471=>'attribute'==_0x1c6471['type']&&_0x1c6471['_isDataLoaded']),_0x518792=[],_0x419587=new Map();for(const _0x5e9898 of _0x8fe40c){const _0x45767d=_0x4e2023(_0x5e9898['attributes']);_0x419587['has'](_0x45767d)||(_0x419587['set'](_0x45767d,_0x518792['length']),_0x518792['push']([]));const _0x18eba5=_0x419587['get'](_0x45767d);_0x518792[_0x18eba5]['push'](_0x5e9898);}!(function(){_0x518792['sort']((_0x55a810,_0x1f597f)=>{const _0x3adb52=_0x55a810[0x0]['createdAt'],_0x35eb44=_0x1f597f[0x0]['createdAt'];return _0x3adb52==_0x35eb44?_0x55a810[0x0]['attributes']['groupId']<_0x1f597f[0x0]['attributes']['groupId']?-0x1:0x1:_0x3adb52<_0x35eb44?-0x1:0x1;});for(const _0x284ad0 of _0x518792)_0x284ad0['sort']((_0x1b8550,_0x18790a)=>_0x1b8550['id']<_0x18790a['id']?-0x1:0x1);}());for(let _0x4998e4=0x0;_0x4998e4<_0x518792['length'];_0x4998e4++){if(0x0==_0x518792[_0x4998e4]['length'])continue;const _0x3f31a7=[];for(let _0x141e4a=_0x4998e4+0x1;_0x141e4a<_0x518792['length'];_0x141e4a++)0x0!=_0x518792[_0x141e4a]['length']&&_0x34d332(_0x518792[_0x4998e4],_0x518792[_0x141e4a])&&_0x3f31a7['push'](_0x141e4a);for(const _0x552e3f of _0x3f31a7)_0x518792[_0x4998e4]=_0x518792[_0x4998e4]['concat'](_0x518792[_0x552e3f]),_0x518792[_0x552e3f]=[];}for(const _0x2a4fbc of _0x518792)for(let _0x407726=0x0;_0x407726<_0x2a4fbc['length'];_0x407726++)_0x2a4fbc[_0x407726]['next']=_0x2a4fbc[_0x407726+0x1]||null;for(const _0x41ed84 of _0x518792)for(let _0x406c3e=0x0;_0x406c3e<_0x41ed84['length'];_0x406c3e++)_0x41ed84[_0x406c3e]['previous']=_0x41ed84[_0x406c3e-0x1]||null;function _0x34d332(_0x437db5,_0xd83699){if(_0x437db5[0x0]['attributes']['groupId']!==_0xd83699[0x0]['attributes']['groupId']&&_0x437db5[0x0]['author']!==_0xd83699[0x0]['author'])return!0x1;if(!function(_0x21fefc,_0x44fcc2){if(!_0x21fefc['hasComments']&&!_0x44fcc2['hasComments'])return!0x0;if(_0x21fefc['hasComments']&&_0x44fcc2['hasComments'])return!0x1;if(_0x21fefc['hasComments']&&_0x44fcc2['createdAt']<_0x21fefc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x44fcc2['hasComments']&&_0x21fefc['createdAt']<_0x44fcc2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x437db5[0x0],_0xd83699[0x0]))return!0x1;const _0x4833bc=Bt(_0x437db5[0x0]['attributes'],'groupId'),_0x46733c=Bt(_0xd83699[0x0]['attributes'],'groupId');if(!_0x260467(_0x4833bc,_0x46733c))return!0x1;return!!_0x437db5['every'](_0x251afd=>_0xd83699['some'](_0x1eee83=>_0x251afd['getFirstRange']()['isEqual'](_0x1eee83['getFirstRange']())))&&_0xd83699['every'](_0x559870=>_0x437db5['some'](_0x2b9b18=>_0x559870['getFirstRange']()['isEqual'](_0x2b9b18['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4279d3){const _0x3b7de2=Array['from'](_0x4279d3),_0x2f5a7f=this['getSuggestions']({'skipNotAttached':!0x0}),_0xb8047f=_0x2f5a7f['filter'](_0x56607c=>!_0x4279d3['has'](_0x56607c)),_0x24adf8=new Map(_0x3b7de2['map'](_0x66cf79=>[_0x66cf79,this['_suggestionFactory']['getSuggestionCallback'](_0x66cf79['type'],_0x66cf79['subType'],'join')])),_0x48992f=new Map(_0x2f5a7f['map'](_0x37005d=>[_0x37005d,_0x37005d['getRanges']()]));for(let _0x15cb55=0x0;_0x15cb55<_0x3b7de2['length'];_0x15cb55++){if(_0x1d710d(this,_0x3b7de2[_0x15cb55],_0x3b7de2,_0x15cb55+0x1))return!0x0;}for(let _0x3bb85b=0x0;_0x3bb85b<_0x3b7de2['length'];_0x3bb85b++){if(_0x1d710d(this,_0x3b7de2[_0x3bb85b],_0xb8047f,0x0))return!0x0;}return!0x1;function _0x1d710d(_0x44c8a1,_0x3cdcb4,_0x34b00f,_0xb65255){for(let _0x1c8b18=_0xb65255;_0x1c8b18<_0x34b00f['length'];_0x1c8b18++){const _0x5b8659=_0x34b00f[_0x1c8b18];if(_0x5b8659['type']!==_0x3cdcb4['type']||_0x5b8659['author']['id']!==_0x3cdcb4['author']['id']||_0x5b8659['subType']!==_0x3cdcb4['subType'])continue;if(!Pt(_0x3cdcb4,_0x5b8659,['groupId']))continue;if('attribute'==_0x3cdcb4['type']&&_0x3cdcb4['data']['oldValue']!=_0x5b8659['data']['oldValue'])continue;if('attribute'==_0x3cdcb4['type']&&_0x44c8a1['_isBlockAttribute'](_0x3cdcb4['data']['key']))continue;if('formatBlock'==_0x3cdcb4['type']){const _0x52f7ae=_0x44c8a1['editor']['model'],_0x512f5c=_0x3cdcb4['getContainedElement']();if(_0x512f5c&&(_0x52f7ae['schema']['isObject'](_0x512f5c)||_0x52f7ae['schema']['isLimit'](_0x512f5c)))continue;}const _0x73342b=_0x24adf8['get'](_0x3cdcb4),_0x19b281=_0x48992f['get'](_0x3cdcb4),_0x1ac776=_0x48992f['get'](_0x5b8659),_0x2692ac=_0x3cdcb4['commentThread']&&_0x3cdcb4['commentThread']['length'],_0x3ba61d=_0x5b8659['commentThread']&&_0x5b8659['commentThread']['length'];if(!_0x2692ac&&_0x73342b(_0x1ac776,_0x19b281))return _0x44c8a1['_joinSuggestions'](_0x5b8659,_0x3cdcb4),_0x48992f['delete'](_0x3cdcb4),!0x0;if(!_0x3ba61d&&_0x73342b(_0x19b281,_0x1ac776))return _0x44c8a1['_joinSuggestions'](_0x3cdcb4,_0x5b8659),_0x48992f['delete'](_0x5b8659),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1b461a,_0x5e39da){if(_0x1b461a['isMultiRange']){for(const _0x175fb6 of _0x5e39da['getRanges']())_0x1b461a['addRange'](_0x175fb6);}else{const _0xdfaee0=_0x5e39da['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1b461a,this['_model']['createRange'](_0x1b461a['getFirstRange']()['start'],_0xdfaee0));}_0x5e39da['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2a9432,_0xa8f3d0){const _0x488c5e=_0x2a9432['startsWith']('format')||_0x2a9432['startsWith']('attribute')?'FORMATTING':_0x2a9432['toUpperCase']();return o(this['editor']['locale'],_0xa8f3d0+'_'+_0x488c5e+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x348819=this['editor'];if(!_0x348819['ui'])return;const {ariaLiveAnnouncer:_0x77898}=_0x348819['ui'];_0x19ad9e(this['_model'],({left:_0x558522,entered:_0x1d2cd4})=>{for(const _0x2bf4b3 of _0x558522){const {group:_0x401ee5,type:_0x4d1452}=this['_splitMarkerName'](_0x2bf4b3['name']);if('suggestion'===_0x401ee5){_0x77898['announce'](this['_getMarkerAnnouncementText'](_0x4d1452,'LEAVE'));break;}}for(const _0x2f5e10 of _0x1d2cd4){const {group:_0x1af61b,type:_0x4736da}=this['_splitMarkerName'](_0x2f5e10['name']);if('suggestion'===_0x1af61b){_0x77898['announce'](this['_getMarkerAnnouncementText'](_0x4736da,'ENTER'));break;}}});}['_processAttributeChanges'](_0x57595a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2a9301=this['editor'],_0x353396=_0x2a9301['model']['document']['differ']['getChanges']();if(0x0==_0x353396['length'])return!0x1;const _0x28a7fd=[],_0x329aa8=_0x353396['filter'](_0x14c226=>'attribute'==_0x14c226['type']),_0x5723b5=_0x353396['filter'](_0x45daba=>'insert'==_0x45daba['type']&&'$text'!=_0x45daba['name']),_0x3ec9f8=_0x353396['filter'](_0x2ad434=>'remove'==_0x2ad434['type']&&'$text'!=_0x2ad434['name']);for(const _0x14f7f2 of _0x329aa8)_0x28a7fd['push']({'key':_0x14f7f2['attributeKey'],'newValue':_0x14f7f2['attributeNewValue'],'oldValue':_0x14f7f2['attributeOldValue'],'range':Ot(_0x14f7f2['range'],_0x2a9301['model'])});for(const _0x3aa8ea of _0x5723b5){const _0x31e36c=_0x3ec9f8['find'](_0x47bbc1=>_0x47bbc1['position']['isEqual'](_0x3aa8ea['position']));_0x31e36c&&_0x28a7fd['push']({'key':m,'newValue':_0x3aa8ea['name'],'oldValue':_0x31e36c['name'],'range':_0x2a9301['model']['createRangeOn'](_0x3aa8ea['position']['nodeAfter'])});}return 0x0!=_0x28a7fd['length']&&this['_reduceExistingSuggestions'](_0x57595a,_0x28a7fd);}['_processAttributeSuggestions'](_0x383509){let _0x35429e=!0x1;const _0x1b35b4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x13a851=>_0x13a851['data']['newRange']&&_0x13a851['name']['startsWith']('suggestion:attribute:'));for(const _0x111fa3 of _0x1b35b4){const {subType:_0x234743,id:_0x57479f}=this['_splitMarkerName'](_0x111fa3['name']),_0x22c7b1=_0x234743['split']('|')[0x0];for(const _0x2b674e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2b674e['id']!=_0x57479f&&'attribute'==_0x2b674e['type']&&_0x2b674e['data']&&_0x2b674e['data']['key']==_0x22c7b1&&_0x2b674e['getFirstRange']()['isIntersecting'](_0x111fa3['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2b674e,_0x111fa3['data']['newRange'],_0x383509),_0x35429e=!0x0);}return _0x35429e;}['_recordAttributeChanges'](_0x3b28c9){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x3b28c9();}['_isRegisteredAttribute'](_0x347b84){const _0x4e8dbe=this['_isBlockAttribute'](_0x347b84),_0xc1a10c=this['_inlineAttributeKeys']['has'](_0x347b84);return _0x4e8dbe||_0xc1a10c;}['_reduceExistingSuggestions'](_0x215d32,_0x42f904){if(0x0==_0x42f904['length'])return!0x1;let _0x63a8a=!0x1;for(const _0x3a832f of _0x42f904){const _0x24958f=this['_findSuggestions'](_0x3a832f['range'],'attribute')['filter'](_0x368d80=>!_0x368d80['meta']['isNextTo'])['map'](_0x7bd304=>_0x7bd304['suggestion']),_0x57845a=_0x4e2023({'newValue':_0x3a832f['newValue']});_0x24958f['filter'](_0x2fb499=>{const [_0x3295fc,_0x28b344]=_0x2fb499['subType']['split']('|');return _0x3295fc==_0x3a832f['key']&&_0x28b344!=_0x57845a;})['forEach'](_0x1127e1=>{this['_reduceSuggestionAttributeRange'](_0x1127e1,_0x3a832f['range'],_0x215d32),_0x63a8a=!0x0;});}return _0x63a8a;}['_reduceSuggestionAttributeRange'](_0x13e80f,_0x39fcdd,_0x1fa07a){const _0x2d7543=_0x13e80f['getFirstRange']()['getDifference'](_0x39fcdd);0x0!==_0x2d7543['length']?0x1!==_0x2d7543['length']?this['_breakSuggestionMarker'](_0x13e80f,_0x39fcdd['start'],_0x39fcdd['end']):this['_setSuggestionRange'](_0x13e80f,_0x2d7543[0x0]):_0x1fa07a['removeMarker'](_0x13e80f['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x332aac){this['_editor']=_0x332aac,this['_model']=_0x332aac['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x468584,_0x89569e,_0x153d85,_0x19206d,_0x4a9b4,_0xb69263){return new u(this['_model'],{'type':_0x468584,'subType':_0x89569e,'id':_0x153d85,'author':_0x19206d,'creator':_0x19206d,'attributes':_0x4a9b4,'onAttributesChange':_0xb69263,'onAccept':(..._0x4c6d76)=>this['getSuggestionCallback'](_0x468584,_0x89569e,'accept')(..._0x4c6d76),'onDiscard':(..._0x2e30fb)=>this['getSuggestionCallback'](_0x468584,_0x89569e,'discard')(..._0x2e30fb)});}['registerCustomCallback'](_0x2af31f,_0x1f30a1,_0x5958cb,_0x24d720){const _0x3fad06=_0x2af31f+':'+_0x1f30a1+':'+_0x5958cb;this['_customCallbacks']['set'](_0x3fad06,_0x24d720);}['getSuggestionCallback'](_0x41124e,_0x351550,_0x5df0b8){const _0x43f4fa=_0x41124e+':'+_0x351550+':'+_0x5df0b8;return this['_customCallbacks']['get'](_0x43f4fa)||this['_defaultCallbacks']['get'](_0x41124e+':'+_0x5df0b8);}['_registerDefaultCallbacks'](){const _0x280b94=()=>!0x1,_0x1f18f8=_0x28c605=>{_0x28c605['sort']((_0x32d8c8,_0x45da17)=>_0x32d8c8['start']['isBefore'](_0x45da17['start'])?0x1:-0x1),this['_model']['change'](_0x4f7881=>{for(const _0x2b1917 of _0x28c605){let _0x3e7fbe;_0x3e7fbe=_0x2b1917['end']['isAtEnd']&&_0x2b1917['end']['parent']==_0x2b1917['start']['nodeAfter']?_0x4f7881['createSelection'](_0x2b1917['start']['nodeAfter'],'on'):_0x4f7881['createSelection'](_0x2b1917),this['_model']['deleteContent'](_0x3e7fbe,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x9728c7=(_0x1bdb57,_0x47d379)=>{_0x47d379&&this['_model']['change'](_0x48e1ce=>{const {commandName:_0x40b245,commandParams:_0x552200=[]}=_0x47d379,_0x33b6e7=_0x1bdb57['map'](_0x7e4a88=>(Tt(_0x7e4a88)&&(_0x7e4a88=this['_model']['createRange'](_0x7e4a88['end'])),_0x7e4a88))['filter'](_0x549d3e=>'$graveyard'!==_0x549d3e['root']['rootName']);if(_0x33b6e7['length']<0x1)return;const _0x26c8c9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1106f5=>_0x5e8b6d['fromRange'](_0x1106f5));_0x48e1ce['setSelection'](_0x33b6e7);for(const _0x2fd6e6 of this['_editor']['commands']['commands']())_0x2fd6e6['refresh']();_0x552200['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x40b245,..._0x552200);const _0x5602c5=_0x26c8c9['filter'](_0x103368=>'$graveyard'!=_0x103368['root']['rootName']);_0x5602c5['length']>0x0&&_0x48e1ce['setSelection'](_0x5602c5);for(const _0x175400 of _0x26c8c9)_0x175400['detach']();});},_0x39b9e3=(_0x535ef2,_0x544740)=>0x1==_0x535ef2['length']&&0x1==_0x544740['length']&&_0x535ef2[0x0]['end']['isEqual'](_0x544740[0x0]['start']),_0x923642=(_0x21c874,_0x19dbdd,_0x561fa8,_0x1bbfbb)=>Ft(_0x21c874,_0x19dbdd,_0x561fa8,_0x1bbfbb,this['_model'])?[_0x21c874,_0x19dbdd]:Ft(_0x19dbdd,_0x21c874,_0x1bbfbb,_0x561fa8,this['_model'])?[_0x19dbdd,_0x21c874]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x280b94),this['_defaultCallbacks']['set']('insertion:discard',_0x1f18f8),this['_defaultCallbacks']['set']('insertion:join',_0x39b9e3),this['_defaultCallbacks']['set']('insertion:chain',_0x923642),this['_defaultCallbacks']['set']('deletion:accept',_0x1f18f8),this['_defaultCallbacks']['set']('deletion:discard',_0x280b94),this['_defaultCallbacks']['set']('deletion:join',_0x39b9e3),this['_defaultCallbacks']['set']('deletion:chain',_0x923642),this['_defaultCallbacks']['set']('formatInline:accept',_0x9728c7),this['_defaultCallbacks']['set']('formatInline:discard',_0x280b94),this['_defaultCallbacks']['set']('formatInline:join',_0x39b9e3),this['_defaultCallbacks']['set']('formatInline:chain',_0x280b94),this['_defaultCallbacks']['set']('formatBlock:accept',_0x9728c7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x280b94),this['_defaultCallbacks']['set']('formatBlock:join',_0x39b9e3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x280b94),this['_defaultCallbacks']['set']('attribute:accept',_0x280b94),this['_defaultCallbacks']['set']('attribute:discard',(_0x176f9e,_0x41d946)=>{if(!_0x41d946)return;const _0x25631d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x155373=>{if(_0x41d946['key']==m)for(const _0x13028b of _0x176f9e){const _0x4e71f4=_0x13028b['start']['nodeAfter'],_0x33ecdb=_0x41d946['oldValue'];_0x155373['rename'](_0x4e71f4,_0x33ecdb);}else{if(_0x25631d['_isBlockAttribute'](_0x41d946['key'])){for(const _0x57ae50 of _0x176f9e)void 0x0!==_0x41d946['oldValue']?_0x155373['setAttribute'](_0x41d946['key'],_0x41d946['oldValue'],_0x57ae50['start']['nodeAfter']):_0x155373['removeAttribute'](_0x41d946['key'],_0x57ae50['start']['nodeAfter']);}else{for(const _0x230130 of _0x176f9e)_0x41d946['oldValue']?_0x155373['setAttribute'](_0x41d946['key'],_0x41d946['oldValue'],_0x230130):_0x155373['removeAttribute'](_0x41d946['key'],_0x230130);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x39b9e3);}}function Rt(_0x37b587,_0x5e444c,_0x582e82){for(const _0x26863b of _0x5e444c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x26863b['root']==_0x26863b)return!0x1;if(!_0x582e82['containsItem'](_0x26863b))return!0x1;if(_0x37b587['isObject'](_0x26863b)||_0x37b587['isLimit'](_0x26863b))return!0x0;}return!0x1;}function Tt(_0x161629){return _0x161629['end']['parent']==_0x161629['start']['nodeAfter']&&_0x161629['end']['isAtStart'];}function Et(_0x1cc308,_0x19a97a,_0x1f2edc,_0x1b661a){const _0x353921=_0x4f2da6=>!_0x4f2da6['item']['is']('$textProxy')&&!_0x1b661a['isObject'](_0x4f2da6['item']),_0x441532=_0x1cc308['start']['getLastMatchingPosition'](_0x353921),_0x3aebac=_0x1cc308['end']['getLastMatchingPosition'](_0x353921,{'direction':'backward'});return(!_0x1cc308['start']['isEqual'](_0x441532)||!_0x1cc308['end']['isEqual'](_0x3aebac))&&(_0x441532['isBefore'](_0x3aebac)?_0x1f2edc['updateMarker'](_0x19a97a,{'range':_0x1f2edc['createRange'](_0x441532,_0x3aebac)}):_0x1f2edc['removeMarker'](_0x19a97a),!0x0);}function Vt(_0x21f8af){return _0x4e2023(_0x21f8af);}function Ut(_0x371ffb){const _0x4c92be=_0x371ffb['start']['nodeAfter'];return _0x4c92be&&_0x4c92be['is']('element');}function Ot(_0x1c2244,_0x5b3077){return null==_0x1c2244['end']['nodeBefore']&&_0x1c2244['end']['parent']==_0x1c2244['start']['nodeAfter']?Gt(_0x1c2244['start']['nodeAfter'],_0x5b3077):_0x1c2244;}function Gt(_0x20fc0b,_0x563d97){const _0x571097=_0x563d97['schema']['isObject'](_0x20fc0b)||_0x563d97['schema']['isSelectable'](_0x20fc0b);return _0x563d97['createRange'](_0x563d97['createPositionAt'](_0x20fc0b,'before'),_0x571097?_0x563d97['createPositionAfter'](_0x20fc0b):_0x563d97['createPositionAt'](_0x20fc0b,'end'));}function Ft(_0x593737,_0x192885,_0x483af9,_0x2b0871,_0x2d2310){if(!Pt(_0x593737,_0x192885))return!0x1;if(_0x483af9['end']['isEqual'](_0x2b0871['start']))return!0x0;if(_0x593737['type']!=_0x192885['type'])return!0x1;if(!_0x483af9['end']['isTouching'](_0x2b0871['start']))return!0x1;const _0x228413=_0x2d2310['createRange'](_0x483af9['end'],_0x2b0871['start'])['getWalker']();for(const _0x4b57c1 of _0x228413)if(['elementStart','elementEnd']['includes'](_0x4b57c1['type'])&&_0x2d2310['schema']['isLimit'](_0x4b57c1['item']))return!0x1;return!0x0;}function Pt(_0xd2c644,_0x1bf407,_0x3070a6=[]){return!(!_0xd2c644['_isDataLoaded']||!_0x1bf407['_isDataLoaded'])&&_0x260467(Bt(_0xd2c644['attributes'],_0x3070a6),Bt(_0x1bf407['attributes'],_0x3070a6));}function Lt(_0x55e08a,_0x1f3017){const _0x11e541=Ht(_0x55e08a['attributes']),_0x4f8885=Ht(_0x1f3017);if(!_0x55e08a['_isDataLoaded'])return!0x1;for(const _0x4072aa of Object['keys'](_0x4f8885))if(!_0x260467(_0x11e541[_0x4072aa],_0x4f8885[_0x4072aa]))return!0x1;return!0x0;}function Ht(_0x2ec1bc){const _0x1f75c2=Object['assign']({},_0x2ec1bc);return delete _0x1f75c2['skipNestingCheck'],delete _0x1f75c2['tablePasteChainId'],_0x1f75c2;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x511707(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x596f68,_0x3df1f7,_0x21fbb4,_0x539904){super(),this['model']=_0x3df1f7,this['view']=_0x21fbb4,this['commentThreadController']=_0x539904,this['_editor']=_0x596f68,this['_acceptCommand']=_0x596f68['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x596f68['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2e90d5,_0x2c8f79)=>_0x2e90d5||_0x2c8f79),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x219f98=>_0x219f98&&this['_editor']['model']['canEditAt'](_0x3df1f7['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5737c5=>_0x5737c5&&this['_editor']['model']['canEditAt'](_0x3df1f7['getRanges']())),this['_pendingAction']=null,_0x21fbb4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x21fbb4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x21fbb4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x21fbb4,'change:isDirty',()=>{_0x21fbb4['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 _0xa7fc1=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xa7fc1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x1f4890{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x52a8e3,_0x491105,_0x280839,_0x3b643b){super(_0x52a8e3),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x491105['authoredAt']),this['bind']('authoredAt')['to'](_0x491105),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x491105,this['_localUser']=_0x280839,this['_config']=_0x3b643b,_0x3b643b['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:_0x3948b4}=this['_config'];this['commentsListView']=new _0x3948b4(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',_0x18c064=>_0x18c064+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4fa1ac,_0x5176f0)=>_0x4fa1ac||!!_0x5176f0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1ce6a4}=this['_config'],_0x1e967a=new _0x1ce6a4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xa2af85=_0x1e967a['commentInputView'];return _0x1e967a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xa2af85,'value',(_0xaf7a88,_0x7f5116,_0x2fd538)=>!!_0x2fd538||_0xaf7a88&&!_0x7f5116),_0xa2af85['on']('submit',(_0x48a1be,_0x1cca61)=>{this['fire']('addComment',_0x1cca61),_0xa2af85['editor']['setData']('');}),_0xa2af85['on']('cancel',()=>this['focus']()),_0xa2af85['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1e967a;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x382407,_0x17fbaa,_0x3b9058,_0x38eb76){super(_0x382407,_0x17fbaa,_0x3b9058,_0x38eb76),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3c7cbf=>_0x3c7cbf&&_0x3c7cbf[0x0]?_0x3c7cbf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1c7919,_0x1261b8)=>{let _0x4136ce='';for(const _0x3a4c61 of _0x1c7919)_0x4136ce+='<p>'+ds(_0x3a4c61['content'],_0x3a4c61['color'])+'</p>';return _0x1261b8?_0x4136ce:_0x21e9b6(_0x4136ce,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x382407,'Accept\x20suggestion'),_0x51c65d['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x382407,'Discard\x20suggestion'),_0x51c65d['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x40e36d(_0x382407,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x49e067=this['bindTemplate'],_0x4e9483=[{'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':_0x49e067['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x49e067['to']('authoredAt',_0x4c278f=>this['_config']['formatDateTime'](_0x4c278f))}]}]},{'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']&&_0x4e9483['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x4f6af9={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x49e067['if']('isActive','ck-suggestion-wrapper--active'),_0x49e067['to']('type',_0x33165e=>'ck-suggestion-'+_0x33165e),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':_0x4e9483}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x4f6af9['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)),_0x4f6af9;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x333cdb,_0x1d0915,_0x122ca6)=>{this['_descriptionElement']['innerHTML']=_0x122ca6;});}['_createButton'](_0x203643,_0x49e154,_0x29ed46,_0x5bf671,_0x13a37e){const _0x33a6bf=new _0x486fa(this['locale']);return _0x33a6bf['set']({'label':_0x203643,'icon':_0x49e154,'tooltip':!0x0,'tooltipPosition':_0x13a37e}),_0x33a6bf['extendTemplate']({'attributes':{'class':_0x29ed46}}),_0x33a6bf['on']('execute',()=>{this['fire'](_0x5bf671,this['_model']['id']);}),_0x33a6bf;}['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(_0x56a914,_0x22f2a4){let _0x339f99='';return _0x339f99+=_0x56a914['split']('*')['map']((_0x5cc0f8,_0x3167b3)=>_0x3167b3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5cc0f8)+'</span>':us(_0x5cc0f8))['join'](''),_0x22f2a4&&(_0x339f99+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x22f2a4['value']+'\x22\x20title=\x22'+_0x22f2a4['title']+'\x22></span>'),_0x339f99;}function us(_0x41cbb5){const _0x4f92eb=document['createElement']('span');return _0x4f92eb['innerText']=_0x41cbb5,_0x4f92eb['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 _0x1dc395{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4c39fc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x493d7b){super(_0x493d7b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1df048=this['editor']['config'];_0x1df048['define']('trackChanges.SuggestionThreadView',ne),_0x1df048['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1df048['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1f01a9,_0xca68ce){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x56acbc,_0xfd44a5]of this['_handleControllerBuffer']){const _0x964715=this['_suggestionToController']['has'](_0x56acbc);_0x964715||_0xfd44a5?_0x964715&&_0xfd44a5&&this['_destroyController'](_0x56acbc):this['_initializeController'](_0x56acbc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1f01a9,_0xca68ce);}['init'](){const _0x2e0785=this['editor'],_0x2470e3=_0x2e0785['plugins']['get']('TrackChangesEditing'),_0x56b51d=_0x2e0785['plugins']['get']('Annotations'),_0x49df60=_0x2e0785['plugins']['get']('EditorAnnotations'),_0x376fee=_0x2e0785['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x49df60['addSourceCollector'](()=>{const _0x3368e1=[];for(const [_0x416654,_0x1a4e3e]of Array['from'](this['_suggestionToController'])){const _0x49fe83=_0x416654['getAllAdjacentSuggestions'](),_0x23e79b=[];for(const _0x521829 of _0x49fe83){if(!_0x521829['isInContent'])continue;if(_0x521829['isMultiRange']){_0x23e79b['push'](..._0x521829['getRanges']());continue;}const _0x5cec35=_0x521829['getFirstRange']();if(_0x23e79b['length']>0x0){const _0x42fc36=_0x23e79b[0x0]['getJoined'](_0x5cec35);if(_0x42fc36){_0x23e79b[0x0]=_0x42fc36;continue;}}_0x23e79b['push'](_0x5cec35);}_0x3368e1['push']([_0x1a4e3e['view'],_0x23e79b]);}return _0x3368e1;}),this['listenTo'](_0x2470e3,'suggestionLoaded',(_0x4da607,_0x3e8c81)=>{this['listenTo'](_0x3e8c81,'change:previous',(_0x50a44c,_0x3c28df,_0x10c5ad,_0x1e4611)=>{_0x3e8c81['isInContent']&&(null==_0x10c5ad?(this['_updateController'](_0x1e4611['head']),this['_handleSuggestionControllerDelayed'](_0x3e8c81,!0x1)):(this['_updateController'](_0x10c5ad['head']),null==_0x1e4611&&this['_handleSuggestionControllerDelayed'](_0x3e8c81,!0x0)));}),null!==_0x3e8c81['previous']?this['_updateController'](_0x3e8c81['head']):this['_handleSuggestionControllerDelayed'](_0x3e8c81,!0x1);}),this['listenTo'](_0x2470e3,'suggestionUnloaded',(_0x4fa4e5,_0x29417c,_0x57d68f)=>{this['stopListening'](_0x29417c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x29417c),this['_suggestionToController']['has'](_0x29417c)&&this['_destroyController'](_0x29417c),_0x57d68f&&this['_updateController'](_0x57d68f['head']);}),this['listenTo'](_0x2470e3,'suggestionChanged',(_0x4e0e8c,_0x5a0bd4)=>{this['_updateController'](_0x5a0bd4);}),this['listenTo'](_0x56b51d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x376fee,'addComment',(_0x43f9ac,{threadId:_0x5aa2e5,isFromAdapter:_0x1660fe})=>{if(_0x1660fe||!_0x2470e3['hasSuggestion'](_0x5aa2e5))return;const _0x316a14=_0x2470e3['getSuggestion'](_0x5aa2e5);this['_suggestionToController']['get'](_0x316a14)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x29d363=this['editor']['plugins']['get']('Annotations'),_0x3abde8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51c74c=Array['from'](_0x29d363['activeAnnotations'],_0x5c5c1f=>_0x5c5c1f['innerView'])['filter'](_0x248dc8=>this['_viewToController']['has'](_0x248dc8)),_0x4627dc=[];for(const _0x500fcf of _0x51c74c){const _0x24e6a3=this['_viewToController']['get'](_0x500fcf)['model']['getAllAdjacentSuggestions']();_0x4627dc['push'](..._0x24e6a3['reduce']((_0x62867b,_0x56b7ec)=>[..._0x62867b,..._0x56b7ec['getMarkerNames']()],[]));}_0x3abde8['activeMarkers']=_0x4627dc;}['_addUIComponentsToFactory'](){const _0x24ae49=this['editor'],_0x4c82d4=_0x24ae49['locale'],_0x1687f9=o(_0x4c82d4,'Track\x20changes'),_0x5bed4e=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x1687f9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4c82d4,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4c82d4,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4c82d4,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4c82d4,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1682a6 of _0x5bed4e)if(ae(_0x1682a6)){const _0x555160=_0x24ae49['commands']['get'](_0x1682a6['model']['commandName']);_0x1682a6['model']['bind']('isOn','isEnabled')['to'](_0x555160,'value','isEnabled');}_0x24ae49['ui']['componentFactory']['add']('trackChanges',_0x3d3aa5=>this['_createToolbarButton'](_0x3d3aa5,_0x5bed4e,_0x1687f9)),_0x24ae49['ui']['componentFactory']['add']('menuBar:trackChanges',_0xf4fc06=>this['_createMenuBarMenu'](_0xf4fc06,_0x5bed4e,_0x1687f9));}['_createToolbarButton'](_0x1fe024,_0x817e88,_0x5f0464){const _0x447034=zt(_0x1fe024,Zt),_0x34837c=this['editor']['commands']['get']('trackChanges');_0x447034['buttonView']['set']({'tooltip':_0x5f0464,'label':_0x5f0464,'icon':ie}),_0x447034['buttonView']['bind']('isOn')['to'](_0x34837c,'value'),_0x447034['buttonView']['on']('execute',()=>{_0x34837c['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x447034,_0x817e88,{'role':'menu'});const _0x249ad1=[];for(const _0x5d9a37 of _0x817e88)ae(_0x5d9a37)&&_0x249ad1['push'](this['editor']['commands']['get'](_0x5d9a37['model']['commandName']));const _0x245d9a=_0x447034['buttonView'];return _0x245d9a['actionView']['unbind']('isEnabled'),_0x245d9a['arrowView']['unbind']('isEnabled'),_0x245d9a['actionView']['bind']('isEnabled')['to'](_0x34837c,'isEnabled'),_0x245d9a['arrowView']['bind']('isEnabled')['toMany'](_0x249ad1,'isEnabled',(..._0x22a185)=>_0x22a185['some'](_0x38ab90=>_0x38ab90)),_0x447034['on']('execute',_0x3cd937=>{this['editor']['execute'](_0x3cd937['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x447034;}['_createMenuBarMenu'](_0x522ba8,_0x450230,_0xd818e7){const _0x547ac1=new Kt(_0x522ba8),_0x52e9f0=this['editor']['commands']['get']('trackChanges');_0x547ac1['buttonView']['set']({'label':_0xd818e7,'icon':ie});const _0x44dcf7=new Qt(_0x522ba8);for(const _0x6c5cd3 of _0x450230){if('separator'==_0x6c5cd3['type']){_0x44dcf7['items']['add'](new Jt(_0x522ba8));continue;}const _0x3ae812=new Xt(_0x522ba8,_0x547ac1),_0x4f3d8c=new Yt(_0x522ba8),_0x361b59=_0x6c5cd3['model'];_0x4f3d8c['bind'](...Object['keys'](_0x361b59))['to'](_0x361b59),_0x4f3d8c['delegate']('execute')['to'](_0x547ac1),_0x4f3d8c['on']('execute',()=>{this['editor']['execute'](_0x361b59['commandName']),this['editor']['editing']['view']['focus']();}),_0x3ae812['children']['add'](_0x4f3d8c),_0x44dcf7['items']['add'](_0x3ae812);}return _0x547ac1['bind']('isEnabled')['to'](_0x52e9f0,'isEnabled'),_0x547ac1['panelView']['children']['add'](_0x44dcf7),_0x547ac1;}['_initializeController'](_0x3b0657){const _0x2b92e3=this['editor'],_0x2b135a=_0x2b92e3['config'],_0x391c40=_0x2b92e3['plugins']['get']('Annotations'),_0x305a8e=_0x2b92e3['plugins']['get']('CommentsRepository'),_0x194637=_0x2b92e3['plugins']['get']('EditorAnnotations'),_0x259991=_0x2b92e3['plugins']['get'](_0x4c39fc)['me'],_0x56db93=_0x2b135a['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x36176b,CommentThreadInputView:_0x273553}=_0x2b92e3['plugins']['get']('CommentsUI');let _0x191365,_0x28be54;this['_annotationViews']['has'](_0x3b0657['id'])?(_0x28be54=this['_annotationViews']['get'](_0x3b0657['id']),_0x191365=_0x28be54['mainView']):(_0x191365=new _0x56db93(_0x2b92e3['locale'],_0x3b0657,_0x259991,{'disableComments':this['_disableComments'],'editorConfig':_0x2b135a['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2b135a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2b135a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2b135a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2f1ee9(_0x2b135a['get']('locale')),'CommentView':_0x2b135a['get']('comments')['CommentView'],'CommentsListView':_0x36176b,'CommentThreadInputView':_0x273553}),_0x191365['acceptButton']['on']('execute',()=>{_0x2b92e3['editing']['view']['focus']();}),_0x191365['discardButton']['on']('execute',()=>{_0x2b92e3['editing']['view']['focus']();}),_0x28be54=_0x391c40['createAnnotationView'](this['editor']['locale'],_0x191365),_0x28be54['bind']('isDirty')['to'](_0x191365,'isDirty'),_0x28be54['bind']('length')['to'](_0x191365),_0x28be54['bind']('type')['to'](_0x191365,'type',_0x820a81=>'suggestion-'+_0x820a81),this['_annotationViews']['set'](_0x3b0657['id'],_0x28be54));const _0x50698d=_0x305a8e['createCommentThreadController'](_0x3b0657['commentThread'],_0x191365),_0x500646=new oe(_0x2b92e3,_0x3b0657,_0x191365,_0x50698d),_0xeb0bbf=_0x3b0657['getAllAdjacentSuggestions']()['filter'](_0x2212eb=>_0x2212eb['isInContent']);_0x191365['descriptionParts']=_0x2b92e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xeb0bbf),this['_suggestionToController']['set'](_0x3b0657,_0x500646),this['_viewToController']['set'](_0x191365,_0x500646);const _0x57b55e=_0x391c40['createAnnotation']({'view':_0x28be54,'target':()=>{const _0x4c66fb=[],_0x40c69b=_0x3b0657['getAllAdjacentSuggestions']()['filter'](_0x5687ee=>_0x5687ee['isInContent']);for(const _0x17d71f of _0x40c69b)_0x4c66fb['push'](..._0x17d71f['getMarkers']());return _0x3246a6(_0x2b92e3['editing'],_0x4c66fb);},'type':()=>'suggestion-'+_0x500646['view']['type']});_0x305a8e['_bindAnnotationToEditors'](_0x191365,_0x57b55e),_0x391c40['add'](_0x57b55e),_0x194637['registerAnnotation'](_0x57b55e);}['_destroyController'](_0x272971){const _0x3a6372=this['editor']['plugins']['get']('CommentsRepository'),_0x10d907=this['editor']['plugins']['get']('Annotations'),_0x48b81d=this['_suggestionToController']['get'](_0x272971),_0x3b7c08=_0x48b81d['view'],_0x39c573=_0x10d907['getByInnerView'](_0x3b7c08);_0x3a6372['_unbindEditors'](_0x3b7c08),_0x39c573&&_0x10d907['remove'](_0x39c573),this['_suggestionToController']['delete'](_0x272971),this['_viewToController']['delete'](_0x3b7c08),_0x48b81d['destroy']();}['_updateController'](_0x399145){if(!_0x399145['isInContent']||!this['_suggestionToController']['has'](_0x399145))return;const _0x29a223=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10df2a=this['_suggestionToController']['get'](_0x399145),_0xc99453=_0x399145['getAllAdjacentSuggestions']();_0x10df2a['view']['descriptionParts']=_0x29a223['descriptionFactory']['getDescriptions'](_0xc99453);}['destroy'](){for(const _0x1fd80d of this['_suggestionToController']['keys']())this['_destroyController'](_0x1fd80d);for(const _0x5daf01 of this['_annotationViews']['values']())_0x5daf01['mainView']['destroy']();super['destroy']();}}function ae(_0x257ba7){return'model'in _0x257ba7;}class k extends _0x1dc395{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x135803){this['editor']['plugins']['get'](p)['adapter']=_0x135803;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x55ad8a){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x55ad8a);}['getSuggestions']({skipNotAttached:_0x1ce33d=!0x1,toJSON:_0x122771=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1ce33d,'toJSON':_0x122771});}['getSuggestion'](_0x3a8b72){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3a8b72);}}const T=['Pagination'];class P extends _0x1dc395{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4cf855=this['editor'];if(_0x4cf855['config']['define']('trackChangesData.editorCreator',_0x56afce=>{const _0xd21ab5=_0x4cf855['model']['document']['getRootNames']()['reduce']((_0x1dcb5c,_0x75752)=>(_0x1dcb5c[_0x75752]='',_0x1dcb5c),{});return _0x4cf855['constructor']['create'](_0xd21ab5,_0x56afce);}),'function'!=typeof _0x4cf855['config']['get']('trackChangesData')['editorCreator'])throw new _0x197e78('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xa77037){return N(this['editor'],!0x0,_0xa77037);}['getDataWithDiscardedSuggestions'](_0x479e44){return N(this['editor'],!0x1,_0x479e44);}}class D extends _0x1dc395{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x381159){super(_0x381159),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(_0x3911){return void 0x0!==_0x3911['getRootsAttributes'];}async function N(_0x4b3012,_0x5ac2d4,_0x34f837){const _0x97ce7e=_0x2a7688(_0x4b3012,T);_0x97ce7e['plugins']['push'](p,D),_0x97ce7e['rootsAttributes']=v(_0x4b3012)?_0x4b3012['getRootsAttributes']():void 0x0;const _0x1c4c84=document['createDocumentFragment'](),_0x2f6643=_0x4b3012['config']['get']('trackChangesData')['editorCreator'],_0x5df4ca=await _0x2f6643(_0x97ce7e,()=>function(_0x4120ce){const _0xed45b4=document['createElement']('div');return _0x4120ce['appendChild'](_0xed45b4),_0xed45b4;}(_0x1c4c84));!function(_0x5a430e,_0x36c744){const _0x28ece7=_0x5a430e['model']['document']['getRootNames']()['reduce']((_0x5418b8,_0x4ffad5)=>(_0x5418b8[_0x4ffad5]=_0x5a430e['data']['get']({'rootName':_0x4ffad5}),_0x5418b8),{}),_0x5758d9=_0x5a430e['plugins']['get']('Users')['users']['map'](_0x21eb0b=>({'id':_0x21eb0b['id'],'name':_0x21eb0b['name']})),_0x4687dd=_0x5a430e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x15ce54=_0x5a430e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3fc1d4=_0x36c744['plugins']['get']('Users'),_0x1792e8=_0x36c744['plugins']['get']('TrackChangesEditing'),_0x239f49=_0x36c744['plugins']['get']('CommentsRepository');for(const _0x3bbe04 of _0x5758d9)_0x3fc1d4['getUser'](_0x3bbe04['id'])||_0x3fc1d4['addUser'](_0x3bbe04);_0x3fc1d4['me']||_0x3fc1d4['useAnonymousUser']();for(const _0x81397e of _0x15ce54)_0x239f49['addCommentThread'](_0x81397e);for(const _0x21a017 of _0x4687dd)_0x1792e8['addSuggestionData'](_0x21a017);_0x36c744['data']['set'](_0x28ece7);}(_0x4b3012,_0x5df4ca),_0x5df4ca['execute'](_0x5ac2d4?'acceptAllSuggestions':'discardAllSuggestions');const _0x5c1173=v(_0x5df4ca)?_0x5df4ca['getFullData'](_0x34f837):_0x5df4ca['data']['get'](_0x34f837);return await _0x5df4ca['destroy'](),_0x5c1173;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|