@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240526.0 → 0.0.0-nightly-20240527.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
|
-
_0x5de653(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2ef9db,_0x525a9a){super(),this['id']=_0x525a9a['id'],this['type']=_0x525a9a['type'],this['subType']=_0x525a9a['subType']||null,this['author']=_0x525a9a['author'],this['creator']=_0x525a9a['creator']||_0x525a9a['author'],this['isExternal']=Boolean(_0x525a9a['attributes']&&_0x525a9a['attributes']['@external']),this['data']=null,this['_model']=_0x2ef9db,this['_onAccept']=_0x525a9a['onAccept'],this['_onDiscard']=_0x525a9a['onDiscard'],this['_onAttributesChange']=_0x525a9a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x525a9a['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 _0x1b530f=this;for(;_0x1b530f['previous'];)_0x1b530f=_0x1b530f['previous'];return _0x1b530f;}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'](_0x3be684){this['_markerNames']['add'](_0x3be684);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3537f7=>this['_model']['markers']['get'](_0x3537f7))['filter'](_0x4d038f=>_0x4d038f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xb0d9ef=>{for(const _0x4f3818 of this['getMarkers']())_0xb0d9ef['removeMarker'](_0x4f3818);}),this['_markerNames']['clear']();}['removeMarker'](_0x3b7cfe){this['_model']['change'](_0x46aa5a=>{_0x46aa5a['removeMarker'](_0x3b7cfe);}),this['_markerNames']['delete'](_0x3b7cfe);}['addRange'](_0x1095ee){const _0x72aa67='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x72aa67),this['_model']['change'](_0x8fde35=>{_0x8fde35['addMarker'](_0x72aa67,{'range':_0x1095ee,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x178ba3){for(const _0x2c6446 of this['getRanges']())if(_0x2c6446['isIntersecting'](_0x178ba3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4cebc6=>_0x4cebc6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xfbd1bf,_0x2e74bf)=>[..._0xfbd1bf,..._0x2e74bf['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x26348d=this['getRanges']();if(0x1!=_0x26348d['length'])return null;const _0x5c2f22=_0x26348d[0x0],_0xad68b0=_0x5c2f22['start']['nodeAfter'],_0x47bb41=_0x5c2f22['end']['nodeBefore'];return _0xad68b0 instanceof _0x1009bb?_0xad68b0!=_0x47bb41?null:_0xad68b0: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 _0x3db7a0=[];let _0x29b6b3=this['head'];for(;_0x29b6b3;)_0x3db7a0['push'](_0x29b6b3),_0x29b6b3=_0x29b6b3['next'];return _0x3db7a0;}['setAttribute'](_0x4b80c7,_0x578565){const _0x5ba009=_0x5d8719(this['attributes']);_0x2b757e(_0x5ba009,_0x4b80c7,_0x578565),_0x2e58ee(_0x5ba009,this['attributes'])||(this['attributes']=_0x5ba009,this['_onAttributesChange'](_0x5ba009));}['removeAttribute'](_0x1b9b81){const _0x555bb1=_0x5d8719(this['attributes']);_0x247f31(_0x555bb1,_0x1b9b81),_0x2e58ee(_0x555bb1,this['attributes'])||(this['attributes']=_0x555bb1,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 _0x3f2578()['substr'](0x1,0x5);}}function o(_0x45800e,_0x2291fc,_0x17ec28){const t=_0x45800e['t'];switch(_0x2291fc){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',_0x17ec28);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x17ec28);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x17ec28);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x17ec28);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x17ec28);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',_0x17ec28);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x17ec28);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',_0x17ec28);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x17ec28);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x17ec28);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x17ec28);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x17ec28);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x17ec28);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x17ec28);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x17ec28);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x17ec28);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x17ec28);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x17ec28);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x17ec28);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x17ec28);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x17ec28);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x17ec28);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x17ec28);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'},_0x17ec28);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x17ec28);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x17ec28);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x17ec28);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x17ec28);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x17ec28);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'},_0x17ec28);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x17ec28);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x17ec28);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x17ec28);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x17ec28);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'},_0x17ec28);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x17ec28);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'},_0x17ec28);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'},_0x17ec28);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x17ec28);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'},_0x17ec28);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x17ec28);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'},_0x17ec28);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x17ec28);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x17ec28);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'},_0x17ec28);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'},_0x17ec28);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 _0x2291fc;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4c3cb1,_0x2bdcca){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4c3cb1,this['_locale']=_0x2bdcca;}['getDescriptions'](_0x266b88){const _0x2295c6=[],_0x11d2de=new Set(),_0x88003b=new Set();for(let _0x506a80=0x0;_0x506a80<_0x266b88['length'];_0x506a80++){const _0x4b9a54=_0x266b88[_0x506a80];if(!_0x4b9a54['isInContent'])continue;const _0x2c453b=this['_handleCustomCallbackDescription'](_0x4b9a54);if(_0x2c453b){if(null!=_0x4b9a54['subType']){if(_0x11d2de['has'](_0x4b9a54['subType']))continue;_0x11d2de['add'](_0x4b9a54['subType']);}_0x2295c6['push'](_0x2c453b);}else{if('attribute'!=_0x4b9a54['type'])'insertion'!=_0x4b9a54['type']&&'deletion'!=_0x4b9a54['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2295c6,_0x4b9a54,_0x266b88[_0x506a80+0x1]);else{const _0x138cdb=_0x4b9a54['data']['key'];if(_0x88003b['has'](_0x138cdb))continue;_0x88003b['add'](_0x4b9a54['data']['key']),_0x138cdb==m?this['_handleRenameSuggestionDescription'](_0x2295c6,_0x4b9a54):this['_handleAttributeSuggestionDescription'](_0x2295c6,_0x4b9a54);}}}return this['_resolveDescriptionItems'](_0x2295c6);}['registerDescriptionCallback'](_0xeb005f){this['_customCallbacks']['push'](_0xeb005f);}['registerElementLabel'](_0x30719b,_0x526722,_0x421fb8=_0x4f7b70['normal']){'function'==typeof _0x30719b?_0x51f513(this['_itemLabelsCallbacks'],{'matchingCallback':_0x30719b,'label':_0x526722,'priority':_0x421fb8}):this['_itemLabels']['set'](_0x30719b,_0x526722);}['registerAttributeLabel'](_0x2ca098,_0x5d0e91){this['_attributeLabels']['set'](_0x2ca098,_0x5d0e91);}['getItemLabel'](_0x1c1f66,_0x2c70af=0x1){let _0x413522;for(const _0x4c4499 of this['_itemLabelsCallbacks'])if(_0x4c4499['matchingCallback'](_0x1c1f66)){_0x413522=_0x4c4499['label'];break;}return _0x413522||(_0x413522=this['_itemLabels']['get'](_0x1c1f66['name'])),_0x413522?_0x413522(_0x2c70af):0x1!==_0x2c70af?_0x2c70af+'\x20'+_0x1c1f66['name']+'s':''+_0x1c1f66['name'];}['_addDescriptionItems'](_0x3fb8e4,_0x48e05e){const _0x50b671=_0x48e05e['getFirstRange']()['getWalker'](),_0x2f29cb='insertion'==_0x48e05e['type']?'add':'remove';for(const _0x2371d7 of _0x50b671){const _0xd6c339=_0x2371d7['item'],_0x3e61a2=_0x3fb8e4[_0x3fb8e4['length']-0x1];if(_0xd6c339['is']('$textProxy'))_0x3e61a2&&_0x3e61a2['type']['indexOf']('Container')>-0x1&&_0x3fb8e4['pop'](),_0x3e61a2&&'text'==_0x3e61a2['type']?_0x3e61a2[_0x2f29cb]+=_0xd6c339['data']:_0x3fb8e4['push']({'type':'text','add':'add'==_0x2f29cb?_0xd6c339['data']:'','remove':'remove'==_0x2f29cb?_0xd6c339['data']:''});else{if(this['_schema']['isObject'](_0xd6c339)){const _0x179fb9=_0xd6c339;if(_0x3e61a2&&_0x3e61a2['type']['indexOf']('Container')>-0x1&&_0x3fb8e4['pop'](),'elementEnd'==_0x2371d7['type'])continue;_0x3e61a2&&_0x3e61a2['type']==_0x2f29cb+'Object'&&_0x3e61a2['element']['name']==_0x179fb9['name']?_0x3e61a2['quantity']++:_0x3fb8e4['push']({'type':_0x2f29cb+'Object','element':_0x179fb9,'quantity':0x1}),_0x50b671['skip'](_0x32e6b5=>!('elementEnd'==_0x32e6b5['type']&&_0x32e6b5['item']==_0xd6c339));}else{if(this['_schema']['checkChild'](_0xd6c339,'$text')||_0xd6c339['is']('element','softBreak')){const _0x4112ee=_0xd6c339;if('add'==_0x2f29cb&&'elementStart'==_0x2371d7['type']||'remove'==_0x2f29cb&&'elementEnd'==_0x2371d7['type'])continue;if(_0x3e61a2&&-0x1==_0x3e61a2['type']['indexOf']('Container')){'text'==_0x3e61a2['type']&&(_0x3e61a2[_0x2f29cb]+='\x0a');continue;}let _0x425c15;if(_0x425c15='add'==_0x2f29cb?_0x4112ee['nextSibling']&&!this['_schema']['isObject'](_0x4112ee['nextSibling'])?_0x4112ee['nextSibling']:null:_0x4112ee['previousSibling']&&!this['_schema']['isObject'](_0x4112ee['previousSibling'])?_0x4112ee['previousSibling']:null,_0x4112ee['isEmpty']||_0x425c15&&_0x425c15['isEmpty']){const _0x224782=_0x425c15&&_0x425c15['isEmpty']?_0x425c15:_0x4112ee;_0x3e61a2&&_0x3e61a2['type']==_0x2f29cb+'EmptyContainer'&&_0x3e61a2['element']['name']==_0x224782['name']?_0x3e61a2['quantity']++:_0x3fb8e4['push']({'type':_0x2f29cb+'EmptyContainer','element':_0x224782,'quantity':0x1});}else _0x3fb8e4['push']({'type':_0x2f29cb+'Container','element':_0x4112ee});}}}}}['_resolveDescriptionItems'](_0x5edb01){const _0x1be720=this['_locale'],_0x4b5869=[],_0x575d67=[],_0x46e1ab=[];for(const _0x5a746c of _0x5edb01)switch(_0x5a746c['type']){case'text':if(_0x5a746c['add']=_0x5a746c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5a746c['remove']=_0x5a746c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5a746c['add']&&''!=_0x5a746c['remove']){_0x4b5869['push']({'type':'replace','content':o(_0x1be720,'REPLACE_TEXT',['\x22'+_0x5a746c['remove']+'\x22','\x22'+_0x5a746c['add']+'\x22'])});continue;}if(null!=_0x5a746c['add']['match'](/^ +$/)){_0x4b5869['push']({'type':'insertion','content':o(_0x1be720,'*Insert:*\x20%0',o(_0x1be720,'ELEMENT_SPACE',_0x5a746c['add']['length']))});continue;}if(null!=_0x5a746c['remove']['match'](/^ +$/)){_0x4b5869['push']({'type':'deletion','content':o(_0x1be720,'*Remove:*\x20%0',o(_0x1be720,'ELEMENT_SPACE',_0x5a746c['remove']['length']))});continue;}if(''!=_0x5a746c['add']){_0x4b5869['push']({'type':'insertion','content':o(_0x1be720,'*Insert:*\x20%0','\x22'+_0x5a746c['add']+'\x22')});continue;}_0x4b5869['push']({'type':'deletion','content':o(_0x1be720,'*Remove:*\x20%0','\x22'+_0x5a746c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4b5869['push']({'type':'insertion','content':o(_0x1be720,'*Insert:*\x20%0',this['getItemLabel'](_0x5a746c['element'],_0x5a746c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4b5869['push']({'type':'deletion','content':o(_0x1be720,'*Remove:*\x20%0',this['getItemLabel'](_0x5a746c['element'],_0x5a746c['quantity']))});continue;case'addContainer':_0x4b5869['push']({'type':'insertion','content':o(_0x1be720,'*Split:*\x20%0',this['getItemLabel'](_0x5a746c['element'],_0x5a746c['quantity']))});continue;case'removeContainer':_0x4b5869['push']({'type':'deletion','content':o(_0x1be720,'*Merge:*\x20%0',this['getItemLabel'](_0x5a746c['element'],_0x5a746c['quantity']))});continue;case'addFormat':_0x575d67['push'](_0x5a746c['key']);continue;case'removeFormat':_0x46e1ab['push'](_0x5a746c['key']);continue;default:_0x4b5869['push'](_0x5a746c);}if(_0x575d67['length']){const _0x13ba34=_0x575d67['map'](_0x28c7ec=>this['_attributeLabels']['has'](_0x28c7ec)?this['_attributeLabels']['get'](_0x28c7ec):_0x28c7ec)['join'](',\x20');_0x4b5869['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x13ba34)});}if(_0x46e1ab['length']){const _0x1a0bf5=_0x46e1ab['map'](_0x3695a2=>this['_attributeLabels']['has'](_0x3695a2)?this['_attributeLabels']['get'](_0x3695a2):_0x3695a2)['join'](',\x20');_0x4b5869['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1a0bf5)});}return _0x4b5869;}['_handleCustomCallbackDescription'](_0x8d197d){for(const _0x3565e4 of this['_customCallbacks']){const _0x529dd6=_0x3565e4(_0x8d197d);if(_0x529dd6&&'type'in _0x529dd6)return _0x529dd6;}}['_handleAttributeSuggestionDescription'](_0x3275da,_0x29e96a){const _0x1b107e=_0x29e96a['data'],_0x2850b3=void 0x0===_0x1b107e['newValue']?'removeFormat':'addFormat';_0x3275da['push']({'type':_0x2850b3,'key':_0x1b107e['key']});}['_handleRenameSuggestionDescription'](_0x1b27ce,_0x21948d){_0x1b27ce['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x21948d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4af1dc,_0x3cf2f4,_0x1a80e4){if(this['_addDescriptionItems'](_0x4af1dc,_0x3cf2f4),_0x1a80e4&&_0x1a80e4['getFirstRange']()&&!_0x3cf2f4['getFirstRange']()['end']['isEqual'](_0x1a80e4['getFirstRange']()['start'])){const _0x2ff9ef=_0x4af1dc[_0x4af1dc['length']-0x1],_0x3b829f='insertion'==_0x3cf2f4['type']?'add':'remove';_0x2ff9ef&&'text'==_0x2ff9ef['type']&&(_0x2ff9ef[_0x3b829f]+='\x0a');}}}class E extends _0x43febe{['afterInit'](){const _0x118f48=this['editor'],_0x14c98c=_0x118f48['plugins']['get']('TrackChangesEditing');_0x118f48['commands']['get']('showAIAssistant')&&_0x14c98c['enableCommand']('showAIAssistant');}}class V extends _0x43febe{['afterInit'](){const _0x42722f=this['editor'],_0x4abfe0=_0x42722f['locale'];if(!_0x42722f['plugins']['has']('AlignmentEditing'))return;const _0x48d5dd=_0x42722f['plugins']['get']('TrackChangesEditing');_0x48d5dd['enableDefaultAttributesIntegration']('alignment'),_0x48d5dd['registerBlockAttribute']('alignment'),_0x48d5dd['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4abfe0,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x358eb5=this['editor'],_0x483654=_0x358eb5['locale'];_0x358eb5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d7ec4=>{if('formatBlock'!=_0x1d7ec4['type'])return;const {data:_0x5af505}=_0x1d7ec4;if(_0x5af505&&'alignment'==_0x5af505['commandName']){const _0x5477c5=_0x5af505['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x483654,'*Format:*\x20%0',function(_0x4a93d5){switch(_0x4a93d5){case'left':return o(_0x483654,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x483654,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x483654,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x483654,'FORMAT_JUSTIFY_TEXT');}}(_0x5477c5))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x43febe{['afterInit'](){const _0x2fb77f=this['editor'],_0xf00542=_0x2fb77f['plugins']['get']('TrackChangesEditing'),_0x64c200=_0x2fb77f['locale'];for(const _0x396678 of ti){if(!_0x2fb77f['plugins']['has'](_0x396678))continue;const _0x2ca558=_0x396678['slice'](0x0,-0x7)['toLowerCase'](),_0x54ecbd='FORMAT_'+_0x2ca558['toUpperCase']();_0xf00542['enableDefaultAttributesIntegration'](_0x2ca558),_0xf00542['registerInlineAttribute'](_0x2ca558),_0xf00542['descriptionFactory']['registerAttributeLabel'](_0x2ca558,o(_0x64c200,_0x54ecbd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23e8b5=this['editor'],_0xb54348=_0x23e8b5['locale'],_0x55d49e=_0x23e8b5['plugins']['get']('TrackChangesEditing');function _0x4171b7(_0x1090a9,_0x115ce1){_0x55d49e['descriptionFactory']['registerDescriptionCallback'](_0x4146a9=>{if('formatInline'!=_0x4146a9['type'])return;const {data:_0x51fb92}=_0x4146a9;return _0x51fb92&&_0x51fb92['commandName']===_0x1090a9?_0x51fb92['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb54348,'*Format:*\x20%0',_0x115ce1)}:{'type':'format','content':o(_0xb54348,'*Remove\x20format:*\x20%0',_0x115ce1)}:void 0x0;});}_0x4171b7('bold',o(_0xb54348,'FORMAT_BOLD')),_0x4171b7('italic',o(_0xb54348,'FORMAT_ITALIC')),_0x4171b7('underline',o(_0xb54348,'FORMAT_UNDERLINE')),_0x4171b7('code',o(_0xb54348,'FORMAT_CODE')),_0x4171b7('strikethrough',o(_0xb54348,'FORMAT_STRIKETHROUGH')),_0x4171b7('subscript',o(_0xb54348,'FORMAT_SUBSCRIPT')),_0x4171b7('superscript',o(_0xb54348,'FORMAT_SUPERSCRIPT'));}}class O extends _0x43febe{['afterInit'](){const _0x393f4d=this['editor'],_0x59fd6c=_0x393f4d['locale'];if(!_0x393f4d['plugins']['has']('BlockQuoteEditing'))return;const _0x191e63=_0x393f4d['plugins']['get']('TrackChangesEditing'),_0x5b131c=this['editor']['commands']['get']('blockQuote');_0x191e63['enableCommand']('blockQuote',(_0x53a85a,_0x38330e={})=>{const _0x54490c=this['editor']['model']['document']['selection'],_0x4bfa7e=_0x38330e&&void 0x0!==_0x38330e['forceValue']?_0x38330e['forceValue']:!_0x5b131c['value'];let _0x28dd58=[];if(_0x4bfa7e){const _0x1eadeb=Array['from'](_0x54490c['getSelectedBlocks']())['filter'](_0x177644=>oo(_0x177644)||function(_0x472444,_0x20319a){const _0x54b09b=_0x20319a['checkChild'](_0x472444['parent'],'blockQuote'),_0x225a00=_0x20319a['checkChild'](['$root','blockQuote'],_0x472444);return _0x54b09b&&_0x225a00;}(_0x177644,this['editor']['model']['schema']));_0x28dd58=to(_0x1eadeb,_0x393f4d['model']);}else{const _0x4095cb=Array['from'](_0x54490c['getSelectedBlocks']())['filter'](_0x33a85a=>oo(_0x33a85a));_0x28dd58=to(_0x4095cb,_0x393f4d['model']);}_0x393f4d['model']['change'](()=>{for(const _0x373537 of _0x28dd58)_0x191e63['markBlockFormat'](_0x373537,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4bfa7e}]});});}),_0x191e63['descriptionFactory']['registerDescriptionCallback'](_0x12b279=>{const {data:_0x206845}=_0x12b279;if(_0x206845&&'blockQuote'==_0x206845['commandName']){const _0x265578=o(_0x59fd6c,'ELEMENT_BLOCK_QUOTE');return _0x206845['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59fd6c,'*Set\x20format:*\x20%0',_0x265578)}:{'type':'format','content':o(_0x59fd6c,'*Remove\x20format:*\x20%0',_0x265578)};}});}}function oo(_0x51e8d1){return'blockQuote'==_0x51e8d1['parent']['name'];}class F extends _0x43febe{['afterInit'](){const _0x24e24b=this['editor'];_0x24e24b['plugins']['has']('CaseChange')&&(_0x24e24b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x24e24b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x24e24b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x43febe{['afterInit'](){const _0x3fe1a0=this['editor'];_0x3fe1a0['commands']['get']('ckbox')&&_0x3fe1a0['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x43febe{['afterInit'](){const _0x54b171=this['editor'];if(!_0x54b171['plugins']['has']('CodeBlock'))return;const _0x30a7fb=_0x54b171['plugins']['get']('TrackChangesEditing'),_0x3d88a7=_0x54b171['locale'],_0x5032eb=_0x54b171['config']['get']('codeBlock')['languages'],_0xa59fe0=_0x54b171['commands']['get']('codeBlock');_0x30a7fb['enableCommand']('indentCodeBlock'),_0x30a7fb['enableCommand']('outdentCodeBlock'),_0x30a7fb['enableCommand']('codeBlock',(_0x3522a8,_0x4e2308={})=>{const _0x479216=_0x54b171['model'],_0x2f22f0=_0x54b171['model']['document']['selection'],_0x5bccce=_0x4e2308&&void 0x0!==_0x4e2308['forceValue']?_0x4e2308['forceValue']:!_0xa59fe0['value'];let _0x4e6764;_0x4e2308['language']||(_0x4e2308['language']=_0x5032eb[0x0]['language']),_0x4e6764=_0x5bccce?Array['from'](_0x2f22f0['getSelectedBlocks']())['filter'](_0x231663=>eo(_0x231663)||function(_0x4abbea,_0x2b33cb){if(_0x4abbea['is']('rootElement')||_0x2b33cb['isLimit'](_0x4abbea))return!0x1;return _0x2b33cb['checkChild'](_0x4abbea['parent'],'codeBlock');}(_0x231663,_0x479216['schema'])):Array['from'](_0x2f22f0['getSelectedBlocks']())['filter'](_0x2d7f67=>eo(_0x2d7f67));const _0x235229=to(_0x4e6764,_0x479216);_0x479216['change'](()=>{for(const _0x1b0482 of _0x235229)_0x30a7fb['markBlockFormat'](_0x1b0482,{'commandName':'codeBlock','commandParams':[{..._0x4e2308,'forceValue':_0x5bccce}],'formatGroupId':'blockName'});});}),(_0x30a7fb['descriptionFactory']['registerElementLabel']('codeBlock',_0xfd328f=>o(_0x3d88a7,'ELEMENT_CODE_BLOCK',_0xfd328f)),_0x30a7fb['descriptionFactory']['registerDescriptionCallback'](_0x46dca7=>{if('formatBlock'!=_0x46dca7['type'])return;const _0x484f7d=_0x3d88a7['t'],{data:_0x5cd42c}=_0x46dca7;if(!_0x5cd42c||'codeBlock'!=_0x5cd42c['commandName'])return;const _0x27a3f3=_0x5cd42c['commandParams'][0x0]['language'],_0x14a1bf=_0x484f7d(_0x5032eb['find'](_0x77ee0c=>_0x77ee0c['language']===_0x27a3f3)['label'])['toLowerCase']();return _0x5cd42c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3d88a7,'*Set\x20format:*\x20%0',o(_0x3d88a7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x14a1bf+')')}:{'type':'format','content':o(_0x3d88a7,'*Remove\x20format:*\x20%0',o(_0x3d88a7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x46b532){return'codeBlock'==_0x46b532['name'];}class H extends _0x43febe{['afterInit'](){const _0xf3335e=this['editor'];if(!_0xf3335e['plugins']['has']('CommentsEditing'))return;_0xf3335e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x244301,_0x45ce2c,_0x5d2831){const _0x1e22a5=[];for(const _0xf011ee of _0x45ce2c['getItems']())_0xf011ee['hasAttribute'](_0x244301)&&_0x1e22a5['push'](_0x5d2831['createRangeOn'](_0xf011ee));return _0x1e22a5;}function _e(_0x3d8d3d,_0x530473,{showActiveMarker:_0x48c86c=!0x0}={}){const _0xe1a94c=_0x3d8d3d['plugins']['get']('TrackChangesEditing');return(_0x2cc14e,_0x121c75,_0x249b84)=>{if(!_0x249b84['consumable']['test'](_0x121c75['markerRange'],_0x2cc14e['name']))return;const _0x79fcbe=_0x121c75['markerRange']['getWalker'](),_0x5e5960=_0x121c75['markerRange']['start'],_0x183350=_0x3d8d3d['model']['schema'];let _0x3c0e9a=null,_0x308bc6=null,_0x428dbd=!0x1,_0x519095=!0x1;for(const _0x3c502c of _0x79fcbe){const _0x524d4c=_0x3c502c['item'];_0x428dbd=_0x428dbd||_0x183350['isContent'](_0x524d4c);const _0x3b81d2=_0x249b84['mapper']['toViewElement'](_0x524d4c);if(_0x3b81d2&&_0x3b81d2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3c502c['type']&&(_0x183350['isBlock'](_0x524d4c)&&!_0x183350['isLimit'](_0x524d4c)&&(_0x524d4c['nextSibling']||_0x5e5960['isAtEnd']?_0x3c0e9a&&_0x3c0e9a['parent']==_0x524d4c||(_0x3c0e9a=_0x524d4c,_0x1806f6(_0x3c502c['previousPosition']),_0x519095=!0x0):_0x308bc6=_0x308bc6||_0x3c502c['previousPosition']));}function _0x1806f6(_0x28432d){const _0x5c225f=_0x249b84['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x530473}),_0x2b343b=_0x249b84['mapper']['toViewPosition'](_0x28432d);_0x48c86c&&_0xe1a94c['activeMarkers']['includes'](_0x121c75['markerName'])&&_0x249b84['writer']['addClass']('ck-suggestion-marker--active',_0x5c225f),_0x249b84['writer']['insert'](_0x2b343b,_0x5c225f),_0x249b84['mapper']['bindElementToMarker'](_0x5c225f,_0x121c75['markerName']);}_0x428dbd||_0x519095||!_0x308bc6||_0x1806f6(_0x308bc6);};}class q extends _0x43febe{static get['requires'](){return[_0x9feee2];}['init'](){const _0x2d96cb=this['editor'],_0x558774=_0x2d96cb['plugins']['get']('TrackChangesEditing');_0x558774['enableCommand']('delete');const _0x32604b=_0x2d96cb['commands']['get']('deleteForward');_0x558774['enableCommand']('deleteForward',(_0x96aa75,_0x33f4cb={})=>{const _0x4cefe1=_0x2d96cb['model']['createSelection'](_0x2d96cb['model']['document']['selection']);_0x4cefe1['isCollapsed']&&_0x2d96cb['model']['modifySelection'](_0x4cefe1,{'direction':'forward','unit':_0x33f4cb['unit']});const _0x4497cd=_0x4cefe1['getFirstRange'](),_0x4456d6=_0x249ff9['fromRange'](_0x4497cd);let _0xedfad9;_0x96aa75(_0x33f4cb),_0xedfad9='$graveyard'==_0x4456d6['root']['rootName']?_0x2d96cb['model']['createRange'](_0x4497cd['start']):_0x2d96cb['model']['createRange'](_0x4456d6['start'],_0x4456d6['end']),_0x4456d6['detach'](),_0x2d96cb['model']['enqueueChange'](_0x32604b['buffer']['batch'],_0x3d3b4a=>{_0x32604b['buffer']['lock'](),_0x3d3b4a['setSelection'](_0x3d3b4a['createRange'](_0xedfad9['end'])),_0x32604b['buffer']['unlock']();});}),_0x2d96cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2d96cb,'merge'),{'priority':'high'}),_0x2d96cb['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x40131e,_0x366ec6,_0x2ab07e)=>{_0x2ab07e['options']['showSuggestionHighlights']&&_e(_0x2d96cb,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x40131e,_0x366ec6,_0x2ab07e);},{'priority':'high'}),_0x2d96cb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1f645f,_0x57c2a4,_0x290e7a)=>{const _0x26d85c=_0x290e7a['mapper']['markerNameToElements'](_0x57c2a4['markerName']);if(_0x26d85c){for(const _0x320d75 of _0x26d85c)_0x320d75['is']('uiElement')&&(_0x290e7a['mapper']['unbindElementFromMarkerName'](_0x320d75,_0x57c2a4['markerName']),_0x290e7a['writer']['remove'](_0x320d75));}},{'priority':'high'});}}class z extends _0x43febe{['afterInit'](){const _0x3ec856=this['editor'];if(!_0x3ec856['plugins']['has']('ListEditing'))return;const _0x474f7c=_0x3ec856['locale'],_0x28ea88=_0x3ec856['plugins']['get']('TrackChangesEditing'),_0x4d7e98=_0x3ec856['plugins']['has']('TodoListEditing'),_0x95a76c=!!_0x3ec856['config']['get']('list.multiBlock');function _0x9e4beb(_0x9ca2d9){return{'type':'format','content':''+o(_0x474f7c,'*Set\x20format:*\x20%0',_0x9ca2d9)};}function _0x50b3f7(_0x48e9e9){return{'type':'format','content':''+o(_0x474f7c,'*Remove\x20format:*\x20%0',_0x48e9e9)};}_0x28ea88['enableDefaultAttributesIntegration']('numberedList'),_0x28ea88['enableDefaultAttributesIntegration']('bulletedList'),_0x28ea88['enableDefaultAttributesIntegration']('customNumberedList'),_0x28ea88['enableDefaultAttributesIntegration']('customBulletedList'),_0x28ea88['enableDefaultAttributesIntegration']('indentList'),_0x28ea88['enableDefaultAttributesIntegration']('outdentList'),_0x28ea88['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x28ea88['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x28ea88['registerBlockAttribute']('listItemId'),_0x28ea88['registerBlockAttribute']('listType'),_0x28ea88['registerBlockAttribute']('listIndent'),_0x95a76c&&(_0x28ea88['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x28ea88['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4d7e98&&(_0x28ea88['enableDefaultAttributesIntegration']('todoList'),_0x28ea88['enableDefaultAttributesIntegration']('checkTodoList'),_0x28ea88['registerBlockAttribute']('todoListChecked'),_0x28ea88['descriptionFactory']['registerDescriptionCallback'](_0x3ca812=>{const {data:_0x102b97}=_0x3ca812;if(_0x102b97&&'todoListChecked'==_0x102b97['key'])return{'type':'format','content':_0x102b97['newValue']?o(_0x474f7c,'*Check\x20item*'):o(_0x474f7c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x43403a=>{if(_0x43403a['batch']['isUndo'])return!0x1;let _0x106639=!0x1;const _0xbefb20=_0x28ea88['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xed6c58=>'todoListChecked'===_0x28ea88['_getAttributeKey'](_0xed6c58));for(const _0x3c8acc of _0xbefb20){'todo'!=_0x3c8acc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x28ea88['_findSuggestions'](_0x3c8acc['getFirstRange'](),'attribute')['find'](_0x288b2d=>'listType'===_0x28ea88['_getAttributeKey'](_0x288b2d['suggestion']))||(_0x43403a['removeMarker'](_0x3c8acc['getFirstMarker']()),_0x106639=!0x0));}return _0x106639;})),_0x28ea88['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x474f7c,'FORMAT_INDENT'));const _0x1d9d92={'type':'format','content':''};_0x28ea88['descriptionFactory']['registerDescriptionCallback'](_0x5785f5=>{const {data:_0x146eed}=_0x5785f5;if(!_0x146eed||'listType'!=_0x146eed['key'])return;let _0x274539=_0x5785f5['head'];for(;_0x274539;){if(_0x274539['data']&&(('listStyle'==_0x274539['data']['key']||'listMarkerStyle'==_0x274539['data']['key'])&&(_0x274539['data']['newValue']&&'default'!=_0x274539['data']['newValue']||'default'!=_0x274539['data']['oldValue']&&!_0x146eed['newValue'])||!_0x95a76c&&_0x274539['data']['key']==m))return _0x1d9d92;_0x274539=_0x274539['next'];}if(null==_0x146eed['newValue'])switch(_0x146eed['oldValue']){case'bulleted':return _0x50b3f7(o(_0x474f7c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x50b3f7(o(_0x474f7c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x50b3f7(o(_0x474f7c,'ELEMENT_TODO_LIST'));}switch(_0x146eed['newValue']){case'bulleted':return _0x9e4beb(o(_0x474f7c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9e4beb(o(_0x474f7c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9e4beb(o(_0x474f7c,'ELEMENT_TODO_LIST'));}}),_0x28ea88['descriptionFactory']['registerDescriptionCallback'](_0x333aae=>{const {data:_0x566e38}=_0x333aae;if(_0x566e38&&'listIndent'==_0x566e38['key'])return null==_0x566e38['newValue']||null==_0x566e38['oldValue']&&0x0==_0x566e38['newValue']?_0x1d9d92:void 0x0;}),_0x28ea88['descriptionFactory']['registerDescriptionCallback'](_0x3a4f68=>{if('attribute'!=_0x3a4f68['type'])return;const {data:_0x198f1f}=_0x3a4f68;if(!_0x198f1f||'listItemId'!=_0x198f1f['key'])return;const _0x207bd2=le(_0x3a4f68);return'newValue'==_0x207bd2?{'type':'format','content':o(_0x474f7c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x207bd2?{'type':'format','content':o(_0x474f7c,'*Split:*\x20list\x20item')}:_0x1d9d92;}),_0x3ec856['model']['document']['registerPostFixer'](_0x25d8e1=>this['listItemIdFixer'](_0x25d8e1)),_0x3ec856['model']['document']['registerPostFixer'](_0x496d7a=>this['noTrackChangesFixer'](_0x496d7a)),_0x3ec856['model']['document']['registerPostFixer'](_0x284226=>this['assureChains'](_0x284226)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2edcfe){if(_0x2edcfe['batch']['isUndo']||!_0x2edcfe['batch']['isLocal'])return!0x1;let _0x147b0e=!0x1;const _0x45d232=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33c1de=>_0x33c1de['data']&&'listItemId'==_0x33c1de['data']['key'])['filter'](_0x276499=>_0x276499['data']['newValue']&&_0x276499['data']['oldValue']);for(const _0x27b176 of _0x45d232)le(_0x27b176)||(_0x2edcfe['removeMarker'](_0x27b176['getFirstMarker']()),_0x147b0e=!0x0);return _0x147b0e;}['noTrackChangesFixer'](_0x31c42e){if(_0x31c42e['batch']['isUndo']||!_0x31c42e['batch']['isLocal'])return!0x1;const _0x36d4b0=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x36d4b0['trackChangesCommand']['value'])return!0x1;let _0x3f65d8=!0x1;const _0x30657f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2dbe8e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x370e46=>'attribute'==_0x370e46['type'])['filter'](_0x777c36=>_0x30657f['includes'](_0x777c36['attributeKey']));if(0x0==_0x2dbe8e['length'])return _0x3f65d8;for(const _0x5280bc of _0x2dbe8e){const _0x4d8232=_0x36d4b0['_findSuggestions'](_0x5280bc['range'],'attribute')['filter'](_0x4326e6=>!_0x4326e6['meta']['isNextTo'])['map'](_0x2510c2=>_0x2510c2['suggestion'])['filter'](_0x4d9fbb=>{const _0x10881c=_0x36d4b0['_getAttributeKey'](_0x4d9fbb);return _0x30657f['includes'](_0x10881c);});if(_0x4d8232['length']){for(const _0x29afac of _0x4d8232)_0x31c42e['removeMarker'](_0x29afac['getFirstMarker']());_0x3f65d8=!0x0;}}return _0x3f65d8;}['assureChains'](_0x147a2e){if(_0x147a2e['batch']['isUndo']||!_0x147a2e['batch']['isLocal'])return!0x1;const _0x23f84c=this['editor']['plugins']['get']('TrackChangesEditing');let _0x3aad16=!0x1;const _0x267aac=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x2d353f of _0x23f84c['getSuggestions']({'skipNotAttached':!0x0})){const _0xce2cd0=_0x23f84c['_findSuggestions'](_0x2d353f['getFirstRange'](),'attribute')['map'](_0x54a279=>_0x54a279['suggestion'])['filter'](_0xf1de1c=>_0xf1de1c['data']&&_0x267aac['includes'](_0xf1de1c['data']['key']));if(!_0xce2cd0['length'])continue;const _0x5c3630=_0xce2cd0[0x0]['head']['attributes']['groupId'];if(!_0xce2cd0['every'](_0x28524b=>_0x28524b['attributes']['groupId']===_0x5c3630)){for(const _0x5a4bf8 of _0xce2cd0)_0x4e15e9(_0x5a4bf8,_0x5c3630)&&(_0x3aad16=!0x0);}}return _0x3aad16;function _0x1cd503(_0x5079af,_0x51ac67){for(const _0x5af9b3 of _0x23f84c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc3096c=>'attribute'==_0xc3096c['type']&&_0xc3096c['attributes']['groupId']==_0x5079af))_0x5af9b3['setAttribute']('groupId',_0x51ac67);}function _0x4e15e9(_0x3cb19e,_0xfbc6e9){let _0x37bbfa=_0x3cb19e['head'],_0x459280=!0x1;for(;_0x37bbfa;)_0x37bbfa['attributes']['groupId']!=_0xfbc6e9&&(_0x1cd503(_0x37bbfa['attributes']['groupId'],_0xfbc6e9),_0x37bbfa['setAttribute']('groupId',_0xfbc6e9),_0x459280=!0x0),_0x37bbfa=_0x37bbfa['next'];return _0x459280;}}['_supportLegacySuggestions'](){const _0x353ac1=this['editor'],_0x45b87f=_0x353ac1['locale'],_0x2f6827=_0x353ac1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2f6827['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x107da7,_0x224e26){const _0x342afa=[];for(let _0x3ed261 of _0x107da7)_0x3ed261['start']['nodeAfter']===_0x3ed261['end']['parent']&&(_0x3ed261=_0x353ac1['model']['createRange'](_0x353ac1['model']['createPositionAt'](_0x3ed261['start']['nodeAfter'],0x0))),_0x342afa['push'](_0x3ed261);_0x353ac1['model']['change'](_0x4e0e95=>{const _0x4ae7d8=_0x353ac1['model']['document']['selection'],_0x122e7a=Array['from'](_0x4ae7d8['getRanges']())['map'](_0x312963=>_0x249ff9['fromRange'](_0x312963));_0x4e0e95['setSelection'](_0x342afa),_0x353ac1['commands']['get'](_0x224e26['commandName'])['refresh'](),_0x224e26['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x353ac1['execute'](_0x224e26['commandName'],..._0x224e26['commandParams']),_0x4e0e95['setSelection'](_0x122e7a);for(const _0x246280 of _0x122e7a)_0x246280['detach']();});}),_0x2f6827['descriptionFactory']['registerElementLabel'](function(_0x2b9ccd){const _0x355dc1=!_0x353ac1['model']['schema']['isObject'](_0x2b9ccd),_0x2621c9=_0x2b9ccd['previousSibling'],_0x275c69=_0x2b9ccd['nextSibling'],_0x10a52c=_0x2b9ccd['getAttribute']('listItemId'),_0x4be798=!_0x2621c9||_0x2621c9['getAttribute']('listItemId')!==_0x10a52c,_0x25dfa3=!_0x275c69||_0x275c69['getAttribute']('listItemId')!==_0x10a52c;return _0x355dc1&&Boolean(_0x10a52c)&&_0x4be798&&_0x25dfa3;},_0x987414=>o(_0x45b87f,'ELEMENT_LIST_ITEM',_0x987414));}['_registerLegacyDescription'](){const _0x3d476b=this['editor'],_0x5d6e16=_0x3d476b['locale'];function _0x1b2a28(_0x4db112){const _0x5440d5=_0x3d476b['commands']['get']('bulletedList')['value'],_0x1e9962=_0x3d476b['commands']['get']('numberedList')['value'];return'numberedList'===_0x4db112?_0x5440d5:_0x1e9962;}_0x3d476b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x501387){if('formatBlock'!=_0x501387['type'])return;const {data:_0x31b46b}=_0x501387;if(!_0x31b46b)return;let _0x4e85dd,_0x34a935,_0x58d363,_0x1bf8a0;switch(_0x31b46b['commandName']){case'bulletedList':_0x58d363=_0x31b46b['commandParams'][0x0]['forceValue'],_0x1bf8a0=_0x1b2a28(_0x31b46b['commandName']),_0x4e85dd=_0x58d363?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1bf8a0&&_0x3d476b['config']['get']('list.multiBlock')||(_0x4e85dd='*Change\x20to:*\x20%0'),_0x34a935={'type':'format','content':o(_0x5d6e16,_0x4e85dd,o(_0x5d6e16,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x58d363=_0x31b46b['commandParams'][0x0]['forceValue'],_0x1bf8a0=_0x1b2a28(_0x31b46b['commandName']),_0x4e85dd=_0x58d363?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1bf8a0&&_0x3d476b['config']['get']('list.multiBlock')||(_0x4e85dd='*Change\x20to:*\x20%0'),_0x34a935={'type':'format','content':o(_0x5d6e16,_0x4e85dd,o(_0x5d6e16,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4e85dd='*Indent:*\x20%0',_0x34a935={'type':'format','content':o(_0x5d6e16,_0x4e85dd,o(_0x5d6e16,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4e85dd=function(_0x2edfc0){const _0x4d3930=_0x2edfc0['getFirstRange']();let _0x895194=_0x4d3930['start']['nodeAfter'];for(;_0x895194&&_0x4d3930['containsItem'](_0x895194);){if(_0x895194['getAttribute']('listIndent')>0x0)return!0x1;_0x895194=_0x895194['nextSibling'];}return!0x0;}(_0x501387)?o(_0x5d6e16,'*Format:*\x20remove\x20from\x20%0',o(_0x5d6e16,function(_0x1bae2f){return'ELEMENT_'+_0x1bae2f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x501387))):o(_0x5d6e16,'*Outdent:*\x20%0',o(_0x5d6e16,'ELEMENT_LIST_ITEM')),_0x34a935={'type':'format','content':_0x4e85dd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x31b46b['multipleBlocks']&&(_0x4e85dd='*Merge:*\x20%0',_0x34a935={'type':'deletion','content':o(_0x5d6e16,_0x4e85dd,o(_0x5d6e16,'ELEMENT_LIST_ITEM'))});}return _0x34a935;});}}function le(_0x136a1e){let _0x414188=_0x136a1e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x414188;){const _0x2aaac6=_0x414188['getAttribute']('listItemId');if(!_0x2aaac6)return!0x1;if(_0x2aaac6==_0x136a1e['data']['newValue'])return'newValue';if(_0x2aaac6==_0x136a1e['data']['oldValue'])return'oldValue';_0x414188=_0x414188['previousSibling'];}return!0x1;}class ue extends _0x43febe{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5f1112=this['editor']['config']['get']('list.properties'),_0x7ff1ef=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f1112['styles']&&(_0x7ff1ef['enableDefaultAttributesIntegration']('listStyle'),_0x7ff1ef['registerBlockAttribute']('listStyle')),_0x5f1112['reversed']&&(_0x7ff1ef['enableDefaultAttributesIntegration']('listReversed'),_0x7ff1ef['registerBlockAttribute']('listReversed')),_0x5f1112['startIndex']&&(_0x7ff1ef['enableDefaultAttributesIntegration']('listStart'),_0x7ff1ef['registerBlockAttribute']('listStart'));const _0x30a029={'type':'format','content':''};_0x7ff1ef['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3ac461=this['editor']['locale'];_0x7ff1ef['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3ac461,'FORMAT_LIST_REVERSED')),_0x7ff1ef['descriptionFactory']['registerDescriptionCallback'](_0x4d5813=>{const {data:_0x47d846}=_0x4d5813;if(_0x47d846&&'listReversed'==_0x47d846['key'])return null==_0x47d846['newValue']||0x0==_0x47d846['newValue']&&null==_0x47d846['oldValue']?_0x30a029:void 0x0;}),_0x7ff1ef['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3ac461,'FORMAT_LIST_START')),_0x7ff1ef['descriptionFactory']['registerDescriptionCallback'](_0x5f4e36=>{const {data:_0x560b2d}=_0x5f4e36;if(_0x560b2d&&'listStart'==_0x560b2d['key'])return null==_0x560b2d['newValue']||0x1==_0x560b2d['newValue']&&null==_0x560b2d['oldValue']?_0x30a029:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1ed944=>{if(_0x1ed944['batch']['isUndo'])return!0x1;let _0x402924=!0x1;const _0x414cb8=_0x7ff1ef['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7166ab=>{const _0x31be2f=_0x7ff1ef['_getAttributeKey'](_0x7166ab);return'listStart'==_0x31be2f||'listReversed'==_0x31be2f;});for(const _0x1b7c55 of _0x414cb8){const _0x4f889b=_0x1b7c55['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4f889b||'customNumbered'==_0x4f889b)continue;_0x7ff1ef['_findSuggestions'](_0x1b7c55['getFirstRange'](),'attribute')['find'](_0x221bed=>'listType'==_0x7ff1ef['_getAttributeKey'](_0x221bed['suggestion']))||(_0x1ed944['removeMarker'](_0x1b7c55['getFirstMarker']()),_0x402924=!0x0);}return _0x402924;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xdb7878){const _0x3bce01=this['editor']['locale'],{data:_0x519304}=_0xdb7878,_0x2a7467={'type':'format','content':''};if(!_0x519304||'listStyle'!=_0x519304['key'])return;if(!_0x519304['oldValue'])return'default'==_0x519304['newValue']?_0x2a7467:{'type':'format','content':''+o(_0x3bce01,'*Set\x20format:*\x20%0',o(_0x3bce01,this['_getTranslationKeyForListStyle'](_0x519304['newValue'])))};if(!_0x519304['newValue']){if('default'==_0x519304['oldValue'])return _0x2a7467;let _0x1e3595=_0xdb7878['head'];for(;_0x1e3595;){if(_0x1e3595['data']&&'listType'==_0x1e3595['data']['key']&&_0x1e3595['data']['newValue'])return _0x2a7467;_0x1e3595=_0x1e3595['next'];}return{'type':'format','content':''+o(_0x3bce01,'*Remove\x20format:*\x20%0',o(_0x3bce01,this['_getTranslationKeyForListStyle'](_0x519304['oldValue'])))};}if('default'!=_0x519304['newValue'])return{'type':'format','content':''+o(_0x3bce01,'*Set\x20format:*\x20%0',o(_0x3bce01,this['_getTranslationKeyForListStyle'](_0x519304['newValue'])))};let _0x13e0b5=_0xdb7878['head'];for(;_0x13e0b5;){if(_0x13e0b5['data']&&'listType'==_0x13e0b5['data']['key']&&_0x13e0b5['data']['newValue']&&_0x13e0b5['data']['oldValue'])return _0x2a7467;_0x13e0b5=_0x13e0b5['next'];}return{'type':'format','content':o(_0x3bce01,'*Set\x20format:*\x20%0',o(_0x3bce01,'ELEMENT_'+_0xdb7878['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5deeda=this['editor'],_0x334925=_0x5deeda['locale'];_0x5deeda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1209e1=>{if('formatBlock'!=_0x1209e1['type'])return;const {data:_0xe2311e}=_0x1209e1;if(!_0xe2311e)return;let _0x1872c6,_0x421c7f;switch(_0xe2311e['commandName']){case'listStyle':_0x1872c6='*Change\x20to:*\x20%0',_0x421c7f={'type':'format','content':o(_0x334925,_0x1872c6,o(_0x334925,this['_getTranslationKeyForListStyle'](_0xe2311e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1872c6=_0xe2311e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x421c7f={'type':'format','content':o(_0x334925,_0x1872c6)};break;case'listStart':_0x1872c6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x421c7f={'type':'format','content':o(_0x334925,_0x1872c6,_0xe2311e['commandParams'][0x0]['startIndex'])};}return _0x421c7f;});}['_getTranslationKeyForListStyle'](_0x3b4f04){return'ELEMENT_'+function(_0x5d0a37){if(pe['includes'](_0x5d0a37))return'bulleted';if(ye['includes'](_0x5d0a37))return'numbered';return null;}(_0x3b4f04)['toUpperCase']()+'_LIST_'+_0x3b4f04['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x43febe{static get['requires'](){return[_0x1c6d28];}['init'](){const _0x15c0db=this['editor'],_0x52b447=_0x15c0db['plugins']['get']('TrackChangesEditing'),_0x3e07b2=_0x15c0db['commands']['get']('enter');_0x52b447['enableCommand']('enter',()=>{_0x15c0db['model']['change'](_0x42fa53=>{const _0x2a77da=_0x15c0db['model']['document']['selection'],_0xf1cc1d=_0x2a77da['getFirstPosition'](),_0x832eb4=_0x249ff9['fromRange'](_0x2a77da['getFirstRange']());if(_0x3e07b2['enterBlock'](_0x42fa53)){const _0x45e658=_0x15c0db['model']['createPositionAt'](_0xf1cc1d['parent']['nextSibling'],0x0),_0x3774de=_0x42fa53['createRange'](_0xf1cc1d,_0x45e658);_0x52b447['markInsertion'](_0x3774de);}else _0x42fa53['setSelection'](_0x42fa53['createRange'](_0x832eb4['end']));_0x832eb4['detach'](),_0x3e07b2['fire']('afterExecute',{'writer':_0x42fa53});});}),_0x15c0db['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x15c0db,'split'),{'priority':'high'}),_0x15c0db['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x351abf,_0x252735,_0x4fcef1)=>{const _0x1841cc=_0x4fcef1['mapper']['markerNameToElements'](_0x252735['markerName']);if(_0x1841cc){for(const _0x2ef7a3 of _0x1841cc)_0x2ef7a3['hasClass']('ck-suggestion-marker-split')&&(_0x4fcef1['mapper']['unbindElementFromMarkerName'](_0x2ef7a3,_0x252735['markerName']),_0x4fcef1['writer']['remove'](_0x2ef7a3));}},{'priority':'high'}),_0x15c0db['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1fa66b,_0x5e3a59,_0x3a3182)=>{_0x3a3182['options']['showSuggestionHighlights']&&_e(_0x15c0db,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1fa66b,_0x5e3a59,_0x3a3182);},{'priority':'high'});}}class J extends _0x43febe{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x51c329=this['editor']['plugins']['get']('TrackChangesEditing');_0x51c329['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x51c329['enableCommand']('findNext'),_0x51c329['enableCommand']('findPrevious'),_0x51c329['enableCommand']('replace'),_0x51c329['enableCommand']('replaceAll');}['handleFindCommand'](_0x595846,_0x42b2da,_0x44caad={}){const _0xfe66b6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x595846(_0x1736ff=>('string'==typeof _0x42b2da?_0xfe66b6['findByTextCallback'](_0x42b2da,_0x44caad):_0x42b2da)(_0x1736ff)['filter'](_0x4d5a2=>!0x1===this['_isInDeletionRange'](_0x4d5a2,_0x1736ff['item'])),_0x44caad);}['_isInDeletionRange'](_0x30fde2,_0x2fed36){const _0x2ccae0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2fed36,_0x30fde2['start']),this['editor']['model']['createPositionAt'](_0x2fed36,_0x30fde2['end']));for(const _0x41b669 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2ccae0['getIntersection'](_0x41b669['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 _0x43febe{['afterInit'](){const _0x2dac0d=this['editor']['locale'],_0xd6a0d7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1e39ce,commandName:_0x436cb9}of ro)this['editor']['plugins']['has'](_0x1e39ce)&&(_0xd6a0d7['enableDefaultAttributesIntegration'](_0x436cb9),_0xd6a0d7['registerInlineAttribute'](_0x436cb9));_0x2dac0d['t'],_0xd6a0d7['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2dac0d,'FORMAT_FONT_SIZE')),_0xd6a0d7['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2dac0d,'FORMAT_FONT_FAMILY')),_0xd6a0d7['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2dac0d,'FORMAT_FONT_COLOR')),_0xd6a0d7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2dac0d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2939d4=this['editor'],_0x5b3c6a=_0x2939d4['locale'];_0x2939d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28a331=>{const _0x2baa70=_0x5b3c6a['t'];if('formatInline'!=_0x28a331['type'])return;const {data:_0x4a04ee}=_0x28a331;if(null!=_0x4a04ee){if('fontSize'==_0x4a04ee['commandName']){const _0x16abaf=_0x4a04ee['commandParams'][0x0]['value'];if(_0x16abaf){const _0x3d3fcf=_0x2baa70(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x19517e=>_0x19517e['model']==_0x16abaf)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5b3c6a,'*Set\x20font\x20size:*\x20%0',_0x3d3fcf)};}return{'type':'format','content':o(_0x5b3c6a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4a04ee['commandName']){const _0x20df43=_0x4a04ee['commandParams'][0x0]['value'];return _0x20df43?{'type':'format','content':o(_0x5b3c6a,'*Set\x20font\x20family:*\x20%0',_0x20df43)}:{'type':'format','content':o(_0x5b3c6a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4a04ee['commandName']){const _0x3faacc=_0x4a04ee['commandParams'][0x0]['value'];if(_0x3faacc){const _0x2b8034=_0x42d447(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2747d5=>_0x2747d5['model']==_0x3faacc);let _0x9581d5=_0x3faacc,_0x339734='';return _0x2b8034&&(_0x9581d5=_0x2b8034['label'],_0x339734=_0x2baa70(_0x9581d5)['toLowerCase']()),{'type':'format','content':o(_0x5b3c6a,'*Set\x20font\x20color:*\x20%0',_0x339734)['trim'](),'color':{'value':_0x3faacc,'title':_0x339734||_0x9581d5}};}return{'type':'format','content':o(_0x5b3c6a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4a04ee['commandName']){const _0x44a327=_0x4a04ee['commandParams'][0x0]['value'];if(_0x44a327){const _0x4e9f20=_0x42d447(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x35f91f=>_0x35f91f['model']==_0x44a327);let _0x4eba08=_0x44a327,_0x156657='';return _0x4e9f20&&(_0x4eba08=_0x4e9f20['label'],_0x156657=_0x2baa70(_0x4eba08)['toLowerCase']()),{'type':'format','content':o(_0x5b3c6a,'*Set\x20font\x20background\x20color:*\x20%0',_0x156657)['trim'](),'color':{'value':_0x44a327,'title':_0x156657||_0x4eba08}};}return{'type':'format','content':o(_0x5b3c6a,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x43febe{['afterInit'](){const _0x4daa40=this['editor'],_0x330f94=_0x4daa40['plugins']['get']('TrackChangesEditing'),_0x25ad07=_0x4daa40['commands']['get']('copyFormat'),_0x57d84e=_0x4daa40['commands']['get']('pasteFormat');_0x25ad07&&_0x57d84e&&(_0x330f94['enableDefaultAttributesIntegration']('pasteFormat'),_0x330f94['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x543048=this['editor'],_0x563605=_0x543048['locale'];_0x543048['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42b632=>{if('formatBlock'!=_0x42b632['type']&&'formatInline'!=_0x42b632['type'])return;const {data:_0x554723}=_0x42b632;if(_0x554723&&'pasteFormat'===_0x554723['commandName']){const _0x38a0a7=[],_0x43ba30=_0x554723['commandParams'][0x0];for(const [_0x5710a7,_0x460ea6]of Object['entries'](_0x43ba30))_0x38a0a7['push'](so(_0x543048,_0x5710a7,_0x460ea6));return _0x38a0a7['length']?{'type':'format','content':o(_0x563605,'*Set\x20format\x20to:*\x20%0',_0x38a0a7['join'](',\x20'))}:{'type':'format','content':o(_0x563605,'*Remove\x20all\x20formatting*')};}});}}function so(_0xbeff4d,_0x351c8b,_0x2b1b76){const _0x360043=_0xbeff4d['locale']['t'],_0x99d2c4=_0x351c8b['split'](/(?=[A-Z])/)['join']('\x20'),_0x27d9c9=_0x360043(_0x99d2c4['charAt'](0x0)['toUpperCase']()+_0x99d2c4['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2b1b76)return _0x27d9c9;if('fontColor'===_0x351c8b||'fontBackgroundColor'===_0x351c8b){const _0x3ae676=_0x42d447(_0xbeff4d['config']['get']('fontColor.colors'))['find'](_0x87406a=>_0x87406a['model']==_0x2b1b76);return _0x27d9c9+'\x20('+(_0x3ae676?_0x360043(_0x3ae676['label'])['toLowerCase']():_0x2b1b76)+')';}if('fontSize'===_0x351c8b&&isNaN(parseFloat(_0x2b1b76))){const _0x5ed227=_0xbeff4d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xbeff4d['config']['get']('fontSize.options'))['find'](_0x4cc494=>_0x4cc494['model']==_0x2b1b76);return _0x27d9c9+'\x20('+(_0x5ed227?_0x360043(_0x5ed227['title'])['toLowerCase']():_0x2b1b76)+')';}return _0x27d9c9+'\x20('+_0x2b1b76+')';}class Y extends _0x43febe{['_headingOptions'];['afterInit'](){const _0x183edf=this['editor'];if(!_0x183edf['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x183edf['config']['get']('heading.options');const _0x51f84b=_0x183edf['locale'],_0x26b9bc=_0x183edf['plugins']['get']('TrackChangesEditing');_0x26b9bc['enableDefaultAttributesIntegration']('heading');for(const _0x4cee17 of this['_headingOptions'])'paragraph'!=_0x4cee17['model']&&_0x26b9bc['descriptionFactory']['registerElementLabel'](_0x4cee17['model'],_0x54ca3b=>{const _0x442cd2=this['_getHeadingLevel'](_0x4cee17['model']);return null!==_0x442cd2?_0x2b132e(_0x54ca3b,_0x442cd2):_0x337850(_0x54ca3b,_0x4cee17['title']);});function _0x2b132e(_0x3a610e,_0x5f4f1f){return o(_0x51f84b,'ELEMENT_HEADING',[_0x3a610e,_0x5f4f1f]);}function _0x337850(_0x3fcc5e,_0x30c928){return o(_0x51f84b,'ELEMENT_HEADING_CUSTOM',[_0x3fcc5e,_0x30c928]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24d82b=this['editor'],_0x3ec99b=_0x24d82b['locale'];function _0x123289(_0x33ed4b,_0x59a742){return o(_0x3ec99b,'ELEMENT_HEADING_CUSTOM',[_0x33ed4b,_0x59a742]);}_0x24d82b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13b2ec=>{if('formatBlock'!=_0x13b2ec['type'])return;const {data:_0xe1d12d}=_0x13b2ec;if(_0xe1d12d&&'heading'==_0xe1d12d['commandName']){const _0x597f87=_0xe1d12d['commandParams'][0x0]['value'],_0x101911=this['_getHeadingLevel'](_0x597f87);if(null!==_0x101911)return{'type':'format','content':o(_0x3ec99b,'*Change\x20to:*\x20%0',(_0x57a5ae=0x1,_0x5cda49=_0x101911,o(_0x3ec99b,'ELEMENT_HEADING',[_0x57a5ae,_0x5cda49])))};const _0x57fd45=this['_headingOptions']['find'](_0x42c7f2=>_0x42c7f2['model']===_0x597f87)['title'];return{'type':'format','content':o(_0x3ec99b,'*Change\x20to:*\x20%0',_0x123289(0x1,_0x57fd45))};}var _0x57a5ae,_0x5cda49;});}['_getHeadingLevel'](_0x4563b0){const _0x59c100=_0x4563b0['match'](/^heading(\d+)/);if(_0x59c100)return _0x59c100[0x1];const _0x42bf8d=this['_headingOptions']?.['find'](_0x15dc26=>_0x15dc26['model']==_0x4563b0);if(_0x42bf8d&&_0x42bf8d['view']){const _0x5204b7=_0x42bf8d['view'],_0x1d04d7=(_0x5204b7['name']??_0x5204b7)['match'](/^h(\d+)/);if(_0x1d04d7)return _0x1d04d7[0x1];}return null;}}class Z extends _0x43febe{['afterInit'](){const _0x16f2d3=this['editor'];if(!_0x16f2d3['plugins']['has']('HighlightEditing'))return;const _0x6f8934=_0x16f2d3['plugins']['get']('TrackChangesEditing'),_0x4c1d5e=_0x16f2d3['locale'];_0x6f8934['enableDefaultAttributesIntegration']('highlight'),_0x6f8934['registerInlineAttribute']('highlight'),_0x6f8934['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4c1d5e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43f3aa=this['editor'],_0x5ab911=_0x43f3aa['locale'];_0x43f3aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44ba86=>{if('formatInline'!=_0x44ba86['type'])return;const {data:_0x488952}=_0x44ba86;if(_0x488952&&'highlight'==_0x488952['commandName']){const _0x48b546=_0x5ab911['t'],_0x139f0c=_0x488952['commandParams'][0x0]['value'];if(_0x139f0c){const _0x33c1ca=_0x43f3aa['config']['get']('highlight.options')['find'](_0x59136a=>_0x59136a['model']==_0x139f0c),_0x35ec1a=_0x48b546(_0x33c1ca['title'])['toLowerCase']();return{'type':'format','content':o(_0x5ab911,'*Set\x20highlight:*\x20%0',_0x35ec1a),'color':{'value':_0x33c1ca['color'],'title':_0x33c1ca['title']}};}return{'type':'format','content':o(_0x5ab911,'*Remove\x20highlight*',o(_0x5ab911,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x43febe{['afterInit'](){const _0x5ec440=this['editor'];if(!_0x5ec440['plugins']['has']('HorizontalLineEditing'))return;_0x5ec440['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2655c3=_0x5ec440['plugins']['get']('TrackChangesEditing'),_0x2b71eb=_0x5ec440['locale'];_0x2655c3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4a2db6=>o(_0x2b71eb,'ELEMENT_HORIZONTAL_LINE',_0x4a2db6)),_0x5ec440['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1100f1,{writer:_0x1c9f12,options:_0x12d221})=>{if(!_0x12d221['showSuggestionHighlights'])return null;const _0x3add6c=_0x1c9f12['createContainerElement']('div'),_0x5d37d3=_0x1c9f12['createEmptyElement']('hr');return _0x1c9f12['addClass']('ck-horizontal-line',_0x3add6c),_0x1c9f12['insert'](_0x1c9f12['createPositionAt'](_0x3add6c,0x0),_0x5d37d3),_0x3add6c;},'converterPriority':'high'});}}class et extends _0x43febe{['afterInit'](){const _0x569b72=this['editor'];if(!_0x569b72['plugins']['has']('HtmlEmbed'))return;const _0x68f0e5=_0x569b72['plugins']['get']('TrackChangesEditing'),_0x1f74d9=_0x569b72['locale'];_0x68f0e5['descriptionFactory']['registerElementLabel']('rawHtml',_0x129603=>o(_0x1f74d9,'ELEMENT_HTML_EMBED',_0x129603)),_0x68f0e5['enableDefaultAttributesIntegration']('htmlEmbed'),_0x68f0e5['registerBlockAttribute']('value'),_0x68f0e5['descriptionFactory']['registerDescriptionCallback'](_0x28b814=>{if('attribute'!=_0x28b814['type'])return;const {data:_0x15c55b}=_0x28b814;if(_0x15c55b&&'value'==_0x15c55b['key']&&_0x28b814['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1043ac=o(_0x1f74d9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1f74d9,'*Change\x20%0\x20content*',_0x1043ac)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b5cc0=this['editor'],_0x47d391=_0x5b5cc0['locale'];_0x5b5cc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x310d05=>{if('formatBlock'!=_0x310d05['type'])return;const {data:_0x14b10d}=_0x310d05;if(_0x14b10d&&'htmlEmbed'==_0x14b10d['commandName']){const _0x203c4c=o(_0x47d391,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x47d391,'*Change\x20%0\x20content*',_0x203c4c)};}});}}class it extends _0x43febe{['afterInit'](){const _0x1bfb69=this['editor'];if(!_0x1bfb69['plugins']['has']('ImageEditing'))return;const _0xb27bd3=_0x1bfb69['plugins']['get']('TrackChangesEditing'),_0x4d1642=_0x1bfb69['plugins']['get']('ImageUtils'),_0x1e2728=_0x1bfb69['locale'];_0xb27bd3['enableCommand']('insertImage'),_0xb27bd3['descriptionFactory']['registerElementLabel']('imageBlock',_0xe77333=>o(_0x1e2728,'ELEMENT_IMAGE',_0xe77333)),_0xb27bd3['descriptionFactory']['registerElementLabel']('imageInline',_0x1ece55=>o(_0x1e2728,'ELEMENT_INLINE_IMAGE',_0x1ece55)),_0xb27bd3['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1e2728,'ELEMENT_CAPTION')),_0x1bfb69['plugins']['has']('ImageUploadEditing')&&_0xb27bd3['enableCommand']('uploadImage'),_0x1bfb69['plugins']['has']('ImageBlockEditing')&&_0x1bfb69['plugins']['has']('ImageInlineEditing')&&(_0xb27bd3['enableCommand']('imageTypeInline',(_0x1c2e87,_0x3c0a44)=>{const _0x5c54b7=_0x4d1642['getClosestSelectedImageElement'](_0x1bfb69['model']['document']['selection']);_0x1bfb69['model']['change'](()=>{_0xb27bd3['markBlockFormat'](_0x5c54b7,{'commandName':'imageTypeInline','commandParams':[_0x3c0a44]},[],'convertBlockImageToInline');});}),_0xb27bd3['enableCommand']('imageTypeBlock',(_0x1ebf84,_0xc73b5d)=>{_0x1bfb69['model']['change'](_0x218555=>{let _0x8dc91a=_0x4d1642['getClosestSelectedImageElement'](_0x1bfb69['model']['document']['selection']),_0x4b319d=_0x218555['createRangeOn'](_0x8dc91a);const _0x539e35=_0x4d53a0['fromPosition'](_0x4b319d['start'],'toPrevious'),_0x341229=_0x4d53a0['fromPosition'](_0x4b319d['end'],'toNext');_0xb27bd3['forceDefaultExecution'](()=>_0x1ebf84(_0xc73b5d)),_0x8dc91a=_0x4d1642['getClosestSelectedImageElement'](_0x1bfb69['model']['document']['selection']),_0x4b319d=_0x218555['createRangeOn'](_0x8dc91a);const _0x4d6b28=_0x218555['createRange'](_0x539e35,_0x341229);_0x539e35['detach'](),_0x341229['detach'](),_0xb27bd3['markBlockFormat'](_0x8dc91a,{'commandName':'imageTypeInline','commandParams':[_0xc73b5d]},[],'convertInlineImageToBlock'),_0x4d6b28['start']['isBefore'](_0x4b319d['start'])&&_0xb27bd3['markInsertion'](_0x218555['createRange'](_0x4d6b28['start'],_0x4b319d['start']),'convertInlineImageToBlock'),_0x4b319d['end']['isBefore'](_0x4d6b28['end'])&&_0xb27bd3['markInsertion'](_0x218555['createRange'](_0x4b319d['end'],_0x4d6b28['end']),'convertInlineImageToBlock');});}),_0xb27bd3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xb27bd3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xb27bd3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xb27bd3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xb27bd3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xb27bd3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xc9ae67])=>{const _0x3bc379=_0xb27bd3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x20ebc7=_0xc9ae67['start'],_0x4728c2=_0xc9ae67['end'];const _0x1d60cd=_0x1bfb69['model']['schema']['getNearestSelectionRange'](_0x20ebc7,'backward'),_0x1110cf=_0x1bfb69['model']['schema']['getNearestSelectionRange'](_0x4728c2,'forward');_0x1d60cd['isCollapsed']&&(_0x20ebc7=_0x1d60cd['start']),_0x1110cf['isCollapsed']&&(_0x4728c2=_0x1110cf['end']),_0x3bc379([_0x1bfb69['model']['createRange'](_0x20ebc7,_0x4728c2)]);}),_0xb27bd3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3d3d94),_0xb27bd3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3d3d94)),_0x1bfb69['plugins']['has']('ImageCaptionEditing')&&(_0xb27bd3['enableCommand']('toggleImageCaption',(_0x4cb1c0,_0x440d48)=>{const _0x5807ce=_0x1bfb69['plugins']['get']('ImageCaptionUtils');let _0x19524e=_0x4d1642['getClosestSelectedImageElement'](_0x1bfb69['model']['document']['selection']),_0x460a35=_0x5807ce['getCaptionFromImageModelElement'](_0x19524e);_0x1bfb69['model']['change'](()=>{if(_0x460a35)return void _0xb27bd3['markDeletion'](_0x1bfb69['model']['createRangeOn'](_0x460a35));const _0x40b8c7=_0x4d1642['isBlockImage'](_0x19524e);_0x4cb1c0(_0x440d48),_0x19524e=_0x4d1642['getClosestSelectedImageElement'](_0x1bfb69['model']['document']['selection']),_0x460a35=_0x5807ce['getCaptionFromImageModelElement'](_0x19524e),_0xb27bd3['markInsertion'](_0x1bfb69['model']['createRangeOn'](_0x460a35),_0x40b8c7?null:'imageCaption');});}),_0xb27bd3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3d3d94));const _0x5e9bc6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xa5147c(_0x3f0e05,_0x41143f){const _0x1c9ae6=_0x5e9bc6['findIndex'](({type:_0x13646f,subType:_0x588a7f})=>_0x3f0e05['type']==_0x13646f&&_0x3f0e05['subType']==_0x588a7f),_0x434461=_0x5e9bc6['findIndex'](({type:_0x1f3a03,subType:_0x40c7fb})=>_0x41143f['type']==_0x1f3a03&&_0x41143f['subType']==_0x40c7fb);if(_0x1c9ae6<0x0||_0x434461<0x0)return!0x1;const _0x311936=_0x3f0e05['getFirstRange'](),_0x179c9f=_0x41143f['getFirstRange']();if((0x0==_0x1c9ae6||0x1==_0x1c9ae6)&&0x2==_0x434461&&_0x311936['isIntersecting'](_0x179c9f))return!0x0;if(0x2==_0x1c9ae6&&0x3==_0x434461){const _0x36e0ea=_0xb27bd3['_findSuggestions'](_0x311936,'insertion')['filter'](({suggestion:_0x4cca5e,meta:_0x32b52c})=>_0x32b52c['isOwn']&&'convertInlineImageToBlock'==_0x4cca5e['subType']);if(_0x36e0ea['length']>0x1&&_0x179c9f['end']['isEqual'](_0x311936['start']))return!0x0;if(0x1==_0x36e0ea['length']&&(_0x311936['start']['isEqual'](_0x179c9f['end'])||_0x311936['end']['isEqual'](_0x179c9f['start'])))return!0x0;}if(0x3==_0x1c9ae6&&0x3==_0x434461&&_0x311936['start']['isBefore'](_0x179c9f['start'])){const _0xf3c5fe=_0x311936['end']['nodeAfter'],_0x408f3e=_0x179c9f['start']['nodeBefore'];return _0x4d1642['isBlockImage'](_0xf3c5fe)&&_0xf3c5fe===_0x408f3e;}return!0x1;}function _0x3d3d94(_0x2d6655,_0xedee91){return _0xa5147c(_0x2d6655,_0xedee91)?[_0x2d6655,_0xedee91]:_0xa5147c(_0xedee91,_0x2d6655)?[_0xedee91,_0x2d6655]:null;}_0x1bfb69['plugins']['has']('ImageResize')&&(_0xb27bd3['enableDefaultAttributesIntegration']('resizeImage'),_0xb27bd3['registerBlockAttribute']('resizedWidth'),_0xb27bd3['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1e2728,'FORMAT_IMAGE_SIZE'))),_0x1bfb69['plugins']['has']('ImageTextAlternativeEditing')&&(_0xb27bd3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xb27bd3['registerBlockAttribute']('alt')),_0xb27bd3['descriptionFactory']['registerDescriptionCallback'](_0x18d663=>{if(!!_0x5e9bc6['find'](({type:_0x232df5,subType:_0x59075f})=>_0x18d663['type']==_0x232df5&&_0x18d663['subType']==_0x59075f))return _0x18d663['previous']?{}:void 0x0;}),_0xb27bd3['descriptionFactory']['registerDescriptionCallback'](_0xdc93b8=>{if('insertion'==_0xdc93b8['type']||'deletion'==_0xdc93b8['type']){const _0x3f79d5=_0xdc93b8['getContainedElement']();if(_0x3f79d5&&_0x3f79d5['is']('element','caption'))return{'type':'insertion'==_0xdc93b8['type']?'addObject':'removeObject','element':_0x3f79d5,'quantity':0x1};}}),_0xb27bd3['descriptionFactory']['registerDescriptionCallback'](_0xd97723=>'formatBlock'==_0xd97723['type']&&'convertInlineImageToBlock'==_0xd97723['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xd97723['type']&&'convertBlockImageToInline'==_0xd97723['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xb27bd3['descriptionFactory']['registerDescriptionCallback'](_0x1f4727=>{if('attribute'!=_0x1f4727['type'])return;const {data:_0x47c093}=_0x1f4727;if(!_0x47c093||'alt'!=_0x47c093['key'])return;const _0x435953=_0x47c093['newValue'];return _0x435953?{'type':'format','content':o(_0x1e2728,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x435953+'\x22')}:{'type':'format','content':o(_0x1e2728,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a1822=this['editor'],_0x3a8dc0=_0x4a1822['locale'];_0x4a1822['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3939f6=>{if('formatBlock'!=_0x3939f6['type']&&'formatInline'!=_0x3939f6['type'])return;const {data:_0x27f130}=_0x3939f6;if(_0x27f130){if('imageTextAlternative'==_0x27f130['commandName']){const _0x124961=_0x27f130['commandParams'][0x0]['newValue'];return _0x124961?{'type':'format','content':o(_0x3a8dc0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x124961+'\x22')}:{'type':'format','content':o(_0x3a8dc0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x27f130['commandName']){const _0x151b76=_0x27f130['commandParams'][0x0]['width'];return _0x151b76?{'type':'format','content':o(_0x3a8dc0,'*Set\x20image\x20width:*\x20%0',_0x151b76)}:{'type':'format','content':o(_0x3a8dc0,'*Reset\x20image\x20width*')};}}});}}class st extends _0x43febe{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4cefb2=this['editor']['locale'],_0x5e8aba=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e8aba['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5e8aba['registerBlockAttribute']('src'),_0x5e8aba['descriptionFactory']['registerDescriptionCallback'](_0x43f755=>{if('attribute'!=_0x43f755['type'])return;const {data:_0x138079}=_0x43f755;return _0x138079&&'src'==_0x138079['key']?_0x138079['newValue']&&_0x138079['oldValue']?{'type':'format','content':o(_0x4cefb2,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1d4376=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d4376['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1d4376['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d4376['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1d4376['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b6897=this['editor'],_0x243f09=_0x1b6897['locale'];_0x1b6897['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33b493=>{if('formatBlock'!=_0x33b493['type']&&'formatInline'!=_0x33b493['type'])return;const {data:_0x2bc044}=_0x33b493;if(!_0x2bc044||'replaceImageSource'!=_0x2bc044['commandName'])return;return{'type':'format','content':o(_0x243f09,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x43febe{['afterInit'](){const _0xf3e65c=this['editor'];if(!_0xf3e65c['plugins']['has']('ImageStyleEditing'))return;const _0x1f96ad=_0xf3e65c['plugins']['get']('TrackChangesEditing'),_0x18f5d7=_0xf3e65c['plugins']['get']('ImageUtils'),_0xa413a7={};_0x1f96ad['enableCommand']('imageStyle',(_0x24c2e0,_0xb1157d)=>{const _0x3a7b62=_0xf3e65c['plugins']['get']('Users')['me'],_0x24b4d8=_0xf3e65c['commands']['get']('imageStyle');let _0x2ca085=_0x18f5d7['getClosestSelectedImageElement'](_0xf3e65c['model']['document']['selection']),_0xdac6c8=_0xf3e65c['model']['createRangeOn'](_0x2ca085),_0x3f7b0e=_0x24b4d8['value'];if(_0x3f7b0e==_0xb1157d['value'])return;const _0x2014b7={'commandName':'imageStyle','commandParams':[_0xb1157d],'formatGroupId':_0x3f2578()};_0xf3e65c['model']['change'](()=>{if(_0x1f96ad['getSuggestions']()['filter'](_0x1b6a14=>_0x1b6a14['isInContent']&&_0x3a7b62==_0x1b6a14['author']&&('formatBlock'==_0x1b6a14['type']||'formatInline'==_0x1b6a14['type'])&&('imageStylePreApply'==_0x1b6a14['subType']||'imageStylePostApply'==_0x1b6a14['subType'])&&_0x1b6a14['getFirstRange']()['isEqual'](_0xdac6c8))['forEach'](_0x3cc981=>_0x1f96ad['discardSuggestion'](_0x3cc981['head'])),_0x2ca085=_0x18f5d7['getClosestSelectedImageElement'](_0xf3e65c['model']['document']['selection']),_0xdac6c8=_0xf3e65c['model']['createRangeOn'](_0x2ca085),_0x24b4d8['refresh'](),_0xf3e65c['commands']['get']('imageTypeInline')['refresh'](),_0xf3e65c['commands']['get']('imageTypeBlock')['refresh'](),_0x3f7b0e=_0x24b4d8['value'],_0x3f7b0e!=_0xb1157d['value'])return _0x18f5d7['isInlineImage'](_0x2ca085)&&_0x24b4d8['shouldConvertImageType'](_0xb1157d['value'],_0x2ca085)?(_0x24c2e0({..._0xb1157d,'setImageSizes':!0x1}),_0x2ca085=_0x18f5d7['getClosestSelectedImageElement'](_0xf3e65c['model']['document']['selection']),void _0x1f96ad['markBlockFormat'](_0x2ca085,{..._0x2014b7,'commandReversedParams':[{'value':_0x3f7b0e||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x18f5d7['isBlockImage'](_0x2ca085)?_0x1f96ad['markBlockFormat'](_0x2ca085,_0x2014b7,[],'imageStylePostApply'):_0x1f96ad['markInlineFormat'](_0xdac6c8,_0x2014b7,'imageStylePostApply'));});});for(const _0x54bcda of _0xf3e65c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xa413a7[_0x54bcda['name']]=_0x54bcda['title']['toLowerCase']();_0x1f96ad['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1f96ad['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1f96ad['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1f96ad['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4614af])=>{_0x18f5d7['setImageNaturalSizeAttributes'](_0x4614af['getContainedElement']());}),_0x1f96ad['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x30ef8,_0x2a03b6)=>{_0x1f96ad['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x30ef8,{'commandName':_0x2a03b6['commandName'],'commandParams':_0x2a03b6['commandReversedParams']});}),_0x1f96ad['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x282813,_0x3fdb00){if(_0x15af3a(_0x282813,_0x3fdb00))return[_0x282813,_0x3fdb00];if(_0x15af3a(_0x3fdb00,_0x282813))return[_0x3fdb00,_0x282813];return null;});const _0x1fd723=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x15af3a(_0x46eed5,_0x5811cf){const _0x1576d8=_0x1fd723['findIndex'](({type:_0x4f46dd,subType:_0x369688})=>_0x46eed5['type']==_0x4f46dd&&_0x46eed5['subType']==_0x369688),_0x209c94=_0x1fd723['findIndex'](({type:_0x5cca96,subType:_0x493e76})=>_0x5811cf['type']==_0x5cca96&&_0x5811cf['subType']==_0x493e76);if(_0x1576d8<0x0||_0x209c94<0x0)return!0x1;const _0x2d3472=_0x46eed5['getFirstRange'](),_0x9a6a8f=_0x5811cf['getFirstRange']();if((0x0==_0x1576d8||0x1==_0x1576d8)&&0x2==_0x209c94&&_0x2d3472['isIntersecting'](_0x9a6a8f))return!0x0;if(0x2==_0x1576d8&&0x3==_0x209c94){const _0x5708cf=_0x1f96ad['_findSuggestions'](_0x2d3472,'insertion')['filter'](({suggestion:_0x10346c,meta:_0x146531})=>_0x146531['isOwn']&&'convertInlineImageToBlock'==_0x10346c['subType']);if(_0x5708cf['length']>0x1&&_0x9a6a8f['end']['isEqual'](_0x2d3472['start']))return!0x0;if(0x1==_0x5708cf['length']&&(_0x2d3472['start']['isEqual'](_0x9a6a8f['end'])||_0x2d3472['end']['isEqual'](_0x9a6a8f['start'])))return!0x0;}if(0x3==_0x1576d8&&0x3==_0x209c94&&_0x2d3472['start']['isBefore'](_0x9a6a8f['start'])){const _0x29cad7=_0x2d3472['end']['nodeAfter'],_0x1bae59=_0x9a6a8f['start']['nodeBefore'];return _0x18f5d7['isBlockImage'](_0x29cad7)&&_0x29cad7===_0x1bae59;}return!0x1;}_0xf3e65c['model']['document']['registerPostFixer'](()=>{let _0x3191e2=!0x1;const _0x1f5c5f=Array['from'](_0xf3e65c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x311006,data:_0x4da52d}of _0x1f5c5f){const {group:_0x163fcb,type:_0xf669cf,subType:_0x4bb5ef,id:_0x110ba7}=_0x1f96ad['_splitMarkerName'](_0x311006);if('suggestion'==_0x163fcb&&_0x1f96ad['hasSuggestion'](_0x110ba7)){if('formatBlock'==_0xf669cf&&('imageStylePreApply'==_0x4bb5ef||'imageStylePostApply'==_0x4bb5ef)){const _0x1afab2=_0x1f96ad['getSuggestion'](_0x110ba7);if(_0x4da52d['newRange']){const _0xf856cf=_0x1afab2['getFirstRange']()['getContainedElement']();if(_0x18f5d7['isBlockImage'](_0xf856cf))continue;_0x1f96ad['discardSuggestion'](_0x1afab2),_0x3191e2=!0x0;}}if('insertion'==_0xf669cf&&'imageCaption'==_0x4bb5ef&&!_0x4da52d['newRange']){const _0x3572ea=_0x1f96ad['getSuggestion'](_0x110ba7);_0x3572ea['next']&&_0x3572ea['next']['isInContent']&&(_0x1f96ad['discardSuggestion'](_0x3572ea['next']),_0x3191e2=!0x0);}}}return _0x3191e2;}),this['_registerLegacyDescription'](_0xa413a7);}['_registerLegacyDescription'](_0x3e562a){const _0x2f266f=this['editor'],_0x493640=_0x2f266f['locale'];_0x2f266f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20ca7d=>{if('formatBlock'!=_0x20ca7d['type']&&'formatInline'!=_0x20ca7d['type'])return;const {data:_0x16a36d}=_0x20ca7d;if(!_0x16a36d||'imageStyle'!=_0x16a36d['commandName'])return;const _0xe4114d=_0x16a36d['commandParams'][0x0]['value'];return _0x21f045('side'===_0xe4114d?o(_0x493640,'FORMAT_SIDE_IMAGE'):_0x3e562a[_0xe4114d]||_0xe4114d);function _0x21f045(_0x42fe9e){return{'type':'format','content':o(_0x493640,'*Format:*\x20%0',_0x42fe9e)};}});}}class ot extends _0x43febe{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2c7d7b){super(_0x2c7d7b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x29de72=this['editor'],_0x347831=_0x29de72['commands']['get']('importWord'),_0x34e19b=_0x29de72['commands']['get']('trackChanges');_0x347831&&(_0x347831['on']('execute',(_0x542471,[,_0x353608])=>{this['_trackChangesValueDuringImport']=_0x34e19b['value'],_0x353608['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x347831,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x347831,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x34e19b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x29de72['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x26545a,_0x503f56){const {suggestions:_0x3f1b25}=_0x503f56,_0x3c8461=this['editor']['commands']['get']('trackChanges'),_0x160868=_0x3c8461['value'];this['_trackChangesValueDuringImport']!==_0x160868&&(_0x3c8461['execute'](),this['_trackChangesExecuted']=!0x0),_0x3f1b25&&_0x3f1b25['forEach'](({id:_0xb8951f,type:_0x36fc1f,author:_0x213ada,created_at:_0x323284})=>{const _0x8c7e61={'id':_0xb8951f,'type':_0x36fc1f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x213ada,'createdAt':_0x323284?new Date(_0x323284):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x8c7e61);});}}class rt extends _0x43febe{['afterInit'](){const _0x5749c2=this['editor'],_0x47ef7f=_0x5749c2['plugins']['get']('TrackChangesEditing');if(_0x5749c2['plugins']['has']('IndentEditing')&&(_0x47ef7f['enableCommand']('indent'),_0x47ef7f['enableCommand']('outdent')),_0x5749c2['plugins']['has']('IndentBlock')){for(const _0x35db93 of['indentBlock','outdentBlock'])_0x47ef7f['enableDefaultAttributesIntegration'](_0x35db93);}const _0x3cdbd0=_0x5749c2['locale'];_0x47ef7f['registerBlockAttribute']('blockIndent'),_0x47ef7f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3cdbd0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x548579=this['editor'],_0x3d82cf=_0x548579['locale'],_0xae0d08=_0x548579['plugins']['get']('TrackChangesEditing');_0xae0d08['descriptionFactory']['registerDescriptionCallback'](_0x48cd6c=>{if('formatBlock'!=_0x48cd6c['type'])return;const {data:_0xa6cf65}=_0x48cd6c;if(!_0xa6cf65)return;if('indentBlock'!=_0xa6cf65['commandName']&&'outdentBlock'!=_0xa6cf65['commandName'])return;const _0x27411e=_0x48cd6c['getItems']()[0x0],_0x312a80=_0xae0d08['descriptionFactory']['getItemLabel'](_0x27411e);return'indentBlock'==_0xa6cf65['commandName']?{'type':'format','content':o(_0x3d82cf,'*Indent:*\x20%0',_0x312a80)}:'outdentBlock'==_0xa6cf65['commandName']?{'type':'format','content':o(_0x3d82cf,'*Outdent:*\x20%0',_0x312a80)}:void 0x0;});}}class at extends _0x43febe{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x43febe{['afterInit'](){const _0x57a1e8=this['editor'];if(!_0x57a1e8['plugins']['has']('LinkEditing'))return;const _0xa13786=_0x57a1e8['plugins']['get']('TrackChangesEditing'),_0xe6234d=_0x57a1e8['commands']['get']('link');_0xa13786['enableDefaultAttributesIntegration']('link'),_0xa13786['enableDefaultAttributesIntegration']('unlink'),_0xa13786['registerInlineAttribute']('linkHref');for(const _0x55ed33 of _0xe6234d['manualDecorators'])_0xa13786['registerInlineAttribute'](_0x55ed33['id']),_0xa13786['descriptionFactory']['registerAttributeLabel'](_0x55ed33['id'],'link\x20('+_0x55ed33['label']['toLowerCase']()+')');_0xa13786['descriptionFactory']['registerDescriptionCallback'](_0x41d797=>{if('attribute'!=_0x41d797['type'])return;const {data:_0xfd751c}=_0x41d797;if(!_0xfd751c||'linkHref'!=_0xfd751c['key'])return;const _0xa8f63a=_0xfd751c['newValue'],_0x449413=_0x57a1e8['locale'];return{'type':'format','content':null==_0xa8f63a?o(_0x449413,'*Remove\x20link*'):o(_0x449413,'*Set\x20link:*\x20%0','\x22'+_0xa8f63a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4889f7=this['editor'],_0x16794a=_0x4889f7['locale'];_0x4889f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b1054=>{if('formatInline'!=_0x2b1054['type'])return;const {data:_0x181ead}=_0x2b1054;if(_0x181ead){if('link'==_0x181ead['commandName']){const _0x35c1a6=_0x181ead['commandParams'][0x0];return{'type':'format','content':o(_0x16794a,'*Set\x20link:*\x20%0','\x22'+_0x35c1a6+'\x22')};}return'unlink'==_0x181ead['commandName']?{'type':'format','content':o(_0x16794a,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x43febe{['afterInit'](){const _0x3a6843=this['editor'],_0x5d7372=_0x3a6843['locale'];if(!_0x3a6843['plugins']['has']('LegacyListEditing'))return;const _0x4d7fe2=_0x3a6843['plugins']['get']('TrackChangesEditing'),_0x6b0911=_0x3a6843['plugins']['has']('LegacyTodoListEditing');function _0x2e53e0(_0x39d566){return()=>{const _0x5001f7=_0x3a6843['model']['document']['selection'],_0x219373=_0x3a6843['commands']['get'](_0x39d566);if(_0x219373['value'])return void _0x3a6843['execute']('paragraph',{});const _0x41e8ed=_0x39d566['slice'](0x0,-0x4),_0x1caa32=function(_0x368a8a,_0x3600c1,_0x20e0c5){let _0x2a9807=Array['from'](_0x368a8a)['filter'](_0x39a0d6=>function(_0x3da9c0,_0x6f3189){return _0x6f3189['checkChild'](_0x3da9c0['parent'],'listItem')&&!_0x6f3189['isObject'](_0x3da9c0);}(_0x39a0d6,_0x20e0c5));_0x2a9807=_0x2a9807['filter'](_0x1f611b=>!_0x1f611b['is']('element','listItem')||_0x1f611b['getAttribute']('listType')!=_0x3600c1);const _0x5560b7=new Set();for(const _0x334553 of _0x2a9807)_0x334553['is']('element','listItem')?_0x5560b7['add'](me(_0x334553)):_0x5560b7['add'](_0x334553);return Array['from'](_0x5560b7);}(_0x5001f7['getSelectedBlocks'](),_0x41e8ed,_0x3a6843['model']['schema']);_0x3a6843['model']['change'](()=>{for(const _0x4a8969 of _0x1caa32)_0x4d7fe2['markBlockFormat'](_0x4a8969,{'commandName':_0x39d566,'commandParams':[{'forceValue':!_0x219373['value']}],'formatGroupId':'blockName'},fe(_0x4a8969));});};}function _0x59cc5e(_0x691b34){return()=>{const _0x11f907=function(_0x38406a){let _0x18938f=Array['from'](_0x38406a);const _0x51a063=_0x18938f['findIndex'](_0x1f3450=>'listItem'!=_0x1f3450['name']);return _0x51a063>-0x1&&(_0x18938f=_0x18938f['slice'](0x0,_0x51a063)),_0x18938f;}(_0x3a6843['model']['document']['selection']['getSelectedBlocks']()),_0x45756e=_0x3a6843['model']['createRange'](_0x3a6843['model']['createPositionAt'](_0x11f907[0x0],'before'),_0x3a6843['model']['createPositionAt'](_0x11f907[_0x11f907['length']-0x1],'end'));_0x3a6843['model']['change'](()=>{_0x4d7fe2['markBlockFormat'](_0x45756e,{'commandName':_0x691b34,'commandParams':[],'formatGroupId':'listIndent'},function(_0x112974){const _0x225a07=new Set();for(const _0x49b435 of _0x112974){let _0x4e37c6=_0x49b435['nextSibling'];for(;_0x4e37c6&&_0x4e37c6['getAttribute']('listIndent')>_0x49b435['getAttribute']('listIndent');)_0x225a07['add'](_0x4e37c6),_0x4e37c6=_0x4e37c6['nextSibling'];}return Array['from'](_0x225a07);}(_0x11f907));});};}_0x4d7fe2['enableCommand']('numberedList',_0x2e53e0('numberedList')),_0x4d7fe2['enableCommand']('bulletedList',_0x2e53e0('bulletedList')),_0x6b0911&&_0x4d7fe2['enableCommand']('todoList',_0x2e53e0('todoList')),_0x4d7fe2['enableCommand']('indentList',_0x59cc5e('indentList')),_0x4d7fe2['enableCommand']('outdentList',_0x59cc5e('outdentList')),_0x6b0911&&_0x4d7fe2['enableCommand']('checkTodoList',()=>{const _0x3dbae7=_0x3a6843['commands']['get']('checkTodoList'),_0x1b24d3=Array['from'](_0x3dbae7['_selectedElements']);_0x1b24d3['filter'](_0xc004e5=>_0xc004e5['getAttribute']('todoListChecked')!=_0x3dbae7['value']),_0x3a6843['model']['change'](()=>{for(const _0x357b8d of _0x1b24d3)_0x4d7fe2['markBlockFormat'](_0x357b8d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3dbae7['value']}]});});}),_0x4d7fe2['descriptionFactory']['registerElementLabel']('listItem',_0x59b5ae=>o(_0x5d7372,'ELEMENT_LIST_ITEM',_0x59b5ae)),_0x4d7fe2['descriptionFactory']['registerDescriptionCallback'](_0x3b5d88=>{if('formatBlock'!=_0x3b5d88['type']&&'formatInline'!=_0x3b5d88['type'])return;const {data:_0x1f6587}=_0x3b5d88;if(_0x1f6587){if('numberedList'==_0x1f6587['commandName']||'bulletedList'==_0x1f6587['commandName']||'todoList'==_0x1f6587['commandName'])switch(_0x1f6587['commandName']['replace']('List','')){case'bulleted':return _0x32f8ae(o(_0x5d7372,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x32f8ae(o(_0x5d7372,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x32f8ae(o(_0x5d7372,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1f6587['commandName'])return{'type':'format','content':o(_0x5d7372,'*Indent:*\x20%0',o(_0x5d7372,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1f6587['commandName'])return{'type':'format','content':o(_0x5d7372,'*Outdent:*\x20%0',o(_0x5d7372,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1f6587['commandName'])return _0x1f6587['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d7372,'*Check\x20item*')}:{'type':'format','content':o(_0x5d7372,'*Uncheck\x20item*')};}function _0x32f8ae(_0x344bcd){return{'type':'format','content':o(_0x5d7372,'*Change\x20to:*\x20%0',_0x344bcd)};}});}}function me(_0x1613d8){const _0x5ef98b=_0x1613d8['getAttribute']('listIndent');if(0x0==_0x5ef98b)return _0x1613d8;let _0x142a54=_0x1613d8;for(;_0x1613d8['previousSibling']&&_0x1613d8['previousSibling']['is']('element','listItem');){const _0x4f3178=_0x1613d8['previousSibling']['getAttribute']('listIndent');if(_0x4f3178==_0x5ef98b)_0x142a54=_0x1613d8['previousSibling'];else{if(_0x4f3178<_0x5ef98b)break;}_0x1613d8=_0x1613d8['previousSibling'];}return _0x142a54;}function fe(_0x141cd6){const _0x432730=[];if(_0x141cd6['is']('element','listItem')&&_0x141cd6['getAttribute']('listIndent')>0x0){let _0x25ecba=_0x141cd6['nextSibling'];for(;_0x25ecba&&'listItem'==_0x25ecba['name']&&_0x25ecba['getAttribute']('listIndent')==_0x141cd6['getAttribute']('listIndent');)_0x432730['push'](_0x25ecba),_0x25ecba=_0x25ecba['nextSibling'];}return _0x432730;}class K extends _0x43febe{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x501e8a=this['editor']['config']['get']('list.properties'),_0x744c26=this['editor']['plugins']['get']('TrackChangesEditing');_0x501e8a['styles']&&_0x744c26['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x501e8a['reversed']&&_0x744c26['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x501e8a['startIndex']&&_0x744c26['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x744c26['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3197b4,_0x18478d={}){const _0x372498=this['editor']['plugins']['get']('TrackChangesEditing'),_0x525a3d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x372498['markMultiRangeBlockFormat'](_0x525a3d,{'commandName':'listStyle','commandParams':[{'type':_0x18478d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x209caa,_0xcc8b31={}){const _0x425d20=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7a32aa=this['_getSuggestionBlocks'](_0x4bc737=>_0x4bc737['is']('element','listItem')&&'numbered'===_0x4bc737['getAttribute']('listType'));if(_0x7a32aa['length']<0x1)return;const _0x29429e=_0x7a32aa['map'](_0x48e8c0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x48e8c0,'before'),this['editor']['model']['createPositionAt'](_0x48e8c0,0x0)));this['editor']['model']['change'](()=>{_0x425d20['markMultiRangeBlockFormat'](_0x29429e,{'commandName':'listReversed','commandParams':[{'reversed':_0xcc8b31['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x7890be,_0x9fcb7d={}){const _0x3a1631=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b4e1f=this['_getSuggestionBlocks'](_0x1a6874=>_0x1a6874['is']('element','listItem')&&'numbered'===_0x1a6874['getAttribute']('listType'));if(_0x3b4e1f['length']<0x1)return;const _0x355ca8=_0x3b4e1f['map'](_0x13d37a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x13d37a,'before'),this['editor']['model']['createPositionAt'](_0x13d37a,0x0)));this['editor']['model']['change'](()=>{_0x3a1631['markMultiRangeBlockFormat'](_0x355ca8,{'commandName':'listStart','commandParams':[{'startIndex':_0x9fcb7d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x178266){if('formatBlock'!=_0x178266['type']&&'formatInline'!=_0x178266['type'])return;const _0x2cef12=this['editor']['locale'],{data:_0xd13730}=_0x178266;if(!_0xd13730)return;let _0x4a771c,_0x18dd83;switch(_0xd13730['commandName']){case'listStyle':_0x4a771c='*Change\x20to:*\x20%0',_0x18dd83={'type':'format','content':o(_0x2cef12,_0x4a771c,o(_0x2cef12,this['_getTranslationKeyForListStyle'](_0xd13730['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4a771c=_0xd13730['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x18dd83={'type':'format','content':o(_0x2cef12,_0x4a771c)};break;case'listStart':_0x4a771c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x18dd83={'type':'format','content':o(_0x2cef12,_0x4a771c,_0xd13730['commandParams'][0x0]['startIndex'])};}return _0x18dd83;}['_getSuggestionBlocksForListStyle'](){const _0x366ad5=this['editor']['plugins']['get']('LegacyListUtils');let _0x20789d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x20789d[0x0]?.['is']('element','listItem')&&_0x20789d['unshift'](..._0x366ad5['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x20789d[_0x20789d['length']-0x1]?.['is']('element','listItem')&&_0x20789d['push'](..._0x366ad5['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x20789d=[...new Set(_0x20789d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x20789d=_0x20789d['filter'](_0x110dc4=>_0x110dc4['is']('element','listItem'))),_0x20789d;}['_getSuggestionBlocks'](_0x4fd313){const _0x385c01=this['editor']['plugins']['get']('LegacyListUtils');let _0x553d4e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4fd313)['map'](_0x171ec8=>{const _0x35ce5a=this['editor']['model']['createPositionAt'](_0x171ec8,0x0);return[..._0x385c01['getSiblingNodes'](_0x35ce5a,'backward'),..._0x385c01['getSiblingNodes'](_0x35ce5a,'forward')];})['flat']();return _0x553d4e=[...new Set(_0x553d4e)],_0x553d4e;}['_getTranslationKeyForListStyle'](_0x2bd415){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2bd415)||'default')['toUpperCase']()+'_LIST_'+_0x2bd415['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x43febe{['afterInit'](){const _0x300264=this['editor'];if(!_0x300264['plugins']['has']('MediaEmbedEditing'))return;const _0x1c9a2b=_0x300264['plugins']['get']('TrackChangesEditing'),_0x33b66e=_0x300264['locale'];_0x1c9a2b['enableCommand']('mediaEmbed'),_0x1c9a2b['descriptionFactory']['registerElementLabel']('media',_0x12b015=>o(_0x33b66e,'ELEMENT_MEDIA',_0x12b015)),_0x300264['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4be76c,{writer:_0x1807a6,options:_0x47d770})=>{if(_0x47d770['showSuggestionHighlights'])return _0x1807a6['createEmptyElement']('div');},'converterPriority':'high'}),_0x300264['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5dfb53,_0x3234e2,_0x39e684)=>{_0x39e684['options']['showSuggestionHighlights']&&_0x5dfb53['stop']();},{'priority':'high'});}}class gt extends _0x43febe{['afterInit'](){const _0x12cae0=this['editor'];_0x12cae0['plugins']['has']('MentionEditing')&&_0x12cae0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x43febe{['afterInit'](){const _0x44d3c9=this['editor'],_0x334ad4=_0x44d3c9['plugins']['get']('TrackChangesEditing');_0x44d3c9['plugins']['has']('MultiLevelList')&&(_0x334ad4['enableDefaultAttributesIntegration']('multiLevelList'),_0x334ad4['registerBlockAttribute']('listMarkerStyle'),_0x334ad4['descriptionFactory']['registerDescriptionCallback'](_0x51c854=>this['handleDescriptions'](_0x51c854)));}['handleDescriptions'](_0x23105c){const _0x46a968=this['editor']['locale'],{data:_0x2ed6ee}=_0x23105c,_0x132cb6={'type':'format','content':''};if(_0x2ed6ee&&'listMarkerStyle'==_0x2ed6ee['key']){if(!_0x2ed6ee['oldValue'])return{'type':'format','content':o(_0x46a968,'*Set\x20format:*\x20%0',o(_0x46a968,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2ed6ee['newValue']+')'};if(!_0x2ed6ee['newValue']){let _0x929187=_0x23105c['head'];for(;_0x929187;){if(_0x929187['data']&&'listType'==_0x929187['data']['key']&&_0x929187['data']['newValue'])return _0x132cb6;_0x929187=_0x929187['next'];}return{'type':'format','content':o(_0x46a968,'*Remove\x20format:*\x20%0',o(_0x46a968,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2ed6ee['oldValue']+')'};}}}}class mt extends _0x43febe{['afterInit'](){const _0x434c0a=this['editor'];if(!_0x434c0a['plugins']['has']('PageBreakEditing'))return;_0x434c0a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x367223=_0x434c0a['plugins']['get']('TrackChangesEditing'),_0x2f053c=_0x434c0a['locale'];_0x367223['descriptionFactory']['registerElementLabel']('pageBreak',_0x450177=>o(_0x2f053c,'ELEMENT_PAGE_BREAK',_0x450177));}}class dt extends _0x43febe{['afterInit'](){const _0x4959e8=this['editor'];if(!_0x4959e8['plugins']['has']('Paragraph'))return;const _0x5d45c4=_0x4959e8['locale'],_0x471767=_0x4959e8['plugins']['get']('TrackChangesEditing');_0x471767['descriptionFactory']['registerElementLabel']('paragraph',_0x3a6a37=>o(_0x5d45c4,'ELEMENT_PARAGRAPH',_0x3a6a37)),_0x471767['enableDefaultAttributesIntegration']('paragraph'),_0x471767['enableCommand']('insertParagraph'),_0x4959e8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4959e8),{'priority':'highest'}),_0x4959e8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x13c4e0,_0x1d7ada,_0x26b511)=>{_0x26b511['options']['showSuggestionHighlights']&&nr(_0x4959e8,{'showActiveMarker':!0x1})(_0x13c4e0,_0x1d7ada,_0x26b511);},{'priority':'highest'});const _0xbbbf22=_0x471767['descriptionFactory'];_0xbbbf22['registerDescriptionCallback'](_0x28d4bf=>{if('insertion'!==_0x28d4bf['type'])return;const {start:_0x3e2505,end:_0x2f4494}=_0x28d4bf['getFirstRange']();if(!_0x3e2505['isTouching'](_0x2f4494)||!_0x3e2505['nodeAfter'])return;const _0x4c3d1b=_0x4959e8['model']['schema'],_0x78fab=_0x3e2505['nodeAfter'];return _0x4c3d1b['isBlock'](_0x78fab)&&!_0x4c3d1b['isLimit'](_0x78fab)&&_0x4c3d1b['checkChild'](_0x78fab,'$text')?{'type':'insertion','content':o(_0x5d45c4,'*Insert:*\x20%0',_0xbbbf22['getItemLabel'](_0x78fab,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bf659=this['editor'],_0x3ab871=_0x1bf659['locale'];_0x1bf659['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22c315=>{if('formatBlock'!=_0x22c315['type'])return;const {data:_0x16559c}=_0x22c315;return _0x16559c&&'paragraph'==_0x16559c['commandName']?{'type':'format','content':o(_0x3ab871,'*Change\x20to:*\x20%0',o(_0x3ab871,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5c63ed,{showActiveMarker:_0x3a5cf7=!0x0}={}){return(_0x4d65a,_0x3ed93d,_0x1990d8)=>{const _0xededa5=_0x5c63ed['plugins']['get']('TrackChangesEditing'),_0x4b3ec2=_0x3ed93d['markerRange']['start'],_0x59da53=_0x3ed93d['markerRange']['end'],_0x5b6ec=_0x5c63ed['model']['schema'];if(!_0x4b3ec2['isTouching'](_0x59da53)||!_0x4b3ec2['nodeAfter'])return;const _0x2d5a01=_0x4b3ec2['nodeAfter'];if(_0x5b6ec['isBlock'](_0x2d5a01)&&!_0x5b6ec['isLimit'](_0x2d5a01)&&_0x5b6ec['checkChild'](_0x2d5a01,'$text')){if(!_0x1990d8['consumable']['consume'](_0x3ed93d['markerRange'],_0x4d65a['name']))return;const _0xfd56d=_0x1990d8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x166ce=_0x1990d8['mapper']['toViewPosition'](_0x59da53);_0x3a5cf7&&_0xededa5['activeMarkers']['includes'](_0x3ed93d['markerName'])&&_0x1990d8['writer']['addClass']('ck-suggestion-marker--active',_0xfd56d),_0x1990d8['writer']['insert'](_0x166ce,_0xfd56d),_0x1990d8['mapper']['bindElementToMarker'](_0xfd56d,_0x3ed93d['markerName']);}};}class pt extends _0x43febe{['afterInit'](){const _0x4e2667=this['editor'];if(!_0x4e2667['plugins']['has']('RemoveFormatEditing'))return;_0x4e2667['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x198776=this['editor'];_0x198776['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x702af=>{if('formatBlock'!=_0x702af['type']&&'formatInline'!=_0x702af['type'])return;const {data:_0x30597b}=_0x702af;return _0x30597b&&'removeFormat'==_0x30597b['commandName']?{'type':'format','content':o(_0x198776['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x43febe{['afterInit'](){const _0x5938a1=this['editor'];if(!_0x5938a1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2835b1=_0x5938a1['plugins']['get']('TrackChangesEditing');_0x2835b1['enableCommand']('goToPreviousRestrictedEditingException'),_0x2835b1['enableCommand']('goToNextRestrictedEditingException');const _0x4727b2=_0x5938a1['plugins']['get']('RestrictedEditingModeEditing');_0x4727b2['enableCommand']('trackChanges'),_0x4727b2['enableCommand']('acceptSuggestion'),_0x4727b2['enableCommand']('discardSuggestion'),_0x4727b2['enableCommand']('acceptAllSuggestions'),_0x4727b2['enableCommand']('discardAllSuggestions'),_0x4727b2['enableCommand']('acceptSelectedSuggestions'),_0x4727b2['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x43febe{static get['requires'](){return[_0xfa7d63];}['init'](){const _0x173faf=this['editor'],_0x31ba2d=_0x173faf['plugins']['get']('TrackChangesEditing');_0x31ba2d['enableCommand']('shiftEnter'),_0x173faf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x173faf),{'priority':'high'}),_0x173faf['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x173faf),{'priority':'high'}),_0x173faf['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x35145b,_0x3cc3b6,_0x213a07)=>{_0x213a07['options']['showSuggestionHighlights']&&de(_0x173faf,{'showActiveMarker':!0x1})(_0x35145b,_0x3cc3b6,_0x213a07);}),_0x31ba2d['descriptionFactory']['registerElementLabel']('softBreak',_0x4a587b=>o(_0x173faf['locale'],'ELEMENT_LINE_BREAK',_0x4a587b));}}function de(_0x16139d,{showActiveMarker:_0x2c1e98=!0x0}={}){return(_0x30944e,_0x335694,_0x3ac401)=>{const _0xe947c2=_0x16139d['plugins']['get']('TrackChangesEditing');if(!_0x3ac401['consumable']['test'](_0x335694['markerRange'],_0x30944e['name']))return;const _0x3796b8=_0x16139d['model'];for(const _0x308608 of _0x335694['markerRange']['getItems']()){if(!_0x308608['is']('element','softBreak'))continue;const _0x1e2adc='deletion'==_0x335694['markerName']['split'](':')[0x1]?'merge':'split',_0x2a2529=_0x3ac401['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1e2adc}),_0x3ca27a=_0x3ac401['mapper']['toViewPosition'](_0x3796b8['createPositionBefore'](_0x308608));_0x2c1e98&&_0xe947c2['activeMarkers']['includes'](_0x335694['markerName'])&&_0x3ac401['writer']['addClass']('ck-suggestion-marker--active',_0x2a2529),_0x3ac401['writer']['insert'](_0x3ca27a,_0x2a2529),_0x3ac401['mapper']['bindElementToMarker'](_0x2a2529,_0x335694['markerName']);}};}class wt extends _0x43febe{['afterInit'](){const _0x3c4170=this['editor'],_0x272ef9=_0x3c4170['model'],_0x4ce4cf=_0x3c4170['locale'];if(!_0x3c4170['plugins']['has']('StandardEditingModeEditing'))return;const _0x4b8694=_0x3c4170['plugins']['get']('TrackChangesEditing'),_0x2d32c2='restrictedEditingException',_0x233c52=_0x3c4170['commands']['get'](_0x2d32c2);_0x4b8694['enableCommand'](_0x2d32c2,(_0x10be51,_0x5d30d3={})=>{const _0x419d24=_0x272ef9['document']['selection'];if(_0x419d24['isCollapsed'])return void _0x10be51(_0x5d30d3);const _0x48eab1=void 0x0!==_0x5d30d3['forceValue']?_0x5d30d3['forceValue']:!_0x233c52['value'];_0x272ef9['change'](()=>{const _0x1d9491=Array['from'](_0x419d24['getRanges']());for(const _0x2c0439 of _0x1d9491){const _0x1d3d13=_0x48eab1?[_0x2c0439]:io(_0x2d32c2,_0x2c0439,_0x272ef9);for(const _0x177633 of _0x1d3d13)_0x4b8694['markInlineFormat'](_0x177633,{'commandName':_0x2d32c2,'commandParams':[{'forceValue':_0x48eab1}]});}});}),_0x4b8694['descriptionFactory']['registerDescriptionCallback'](_0x8ea45a=>{if('formatBlock'!=_0x8ea45a['type']&&'formatInline'!=_0x8ea45a['type'])return;const {data:_0x2b611b}=_0x8ea45a;return _0x2b611b&&_0x2b611b['commandName']==_0x2d32c2?_0x2b611b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ce4cf,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4ce4cf,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x43febe{['afterInit'](){const _0x451461=this['editor'];if(!_0x451461['plugins']['has']('Style')||!_0x451461['plugins']['has']('DataSchema'))return;const _0x12d2e4=_0x451461['plugins']['get']('TrackChangesEditing'),_0x14a5a5=_0x451461['locale'],_0x1489ae=_0x451461['config']['get']('style')||{},_0x53932e=_0x451461['plugins']['get']('GeneralHtmlSupport'),_0xc1bf5a=_0x451461['plugins']['get']('StyleUtils')['normalizeConfig'](_0x451461['plugins']['get']('DataSchema'),_0x1489ae['definitions']);_0x12d2e4['enableDefaultAttributesIntegration']('style');const _0x26d7b8=new Set();for(const _0x2066d3 of _0xc1bf5a['block']){const _0x420859=_0x53932e['getGhsAttributeNameForElement'](_0x2066d3['element']);_0x26d7b8['add'](_0x420859);}const _0x105974=new Set();for(const _0x5c6542 of _0xc1bf5a['inline']){const _0x24b66d=_0x53932e['getGhsAttributeNameForElement'](_0x5c6542['element']);_0x105974['add'](_0x24b66d);for(const _0x1d291c of _0x5c6542['ghsAttributes'])_0x105974['add'](_0x1d291c);}for(const _0x19982c of _0x26d7b8)_0x12d2e4['registerBlockAttribute'](_0x19982c),_0x12d2e4['descriptionFactory']['registerAttributeLabel'](_0x19982c,o(_0x14a5a5,'FORMAT_STYLE'));for(const _0xdf1e41 of _0x105974)_0x12d2e4['registerInlineAttribute'](_0xdf1e41),_0x12d2e4['descriptionFactory']['registerAttributeLabel'](_0xdf1e41,o(_0x14a5a5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5049cf=this['editor'],_0x5d0c6d=_0x5049cf['locale'];_0x5049cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cac2b=>{if('formatBlock'!=_0x1cac2b['type']&&'formatInline'!=_0x1cac2b['type'])return;const {data:_0x33dce5}=_0x1cac2b;return _0x33dce5&&'style'===_0x33dce5['commandName']?_0x33dce5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d0c6d,'*Set\x20format:*\x20%0',_0x33dce5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5d0c6d,'*Remove\x20format:*\x20%0',_0x33dce5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x43febe{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x445ab1){super(_0x445ab1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4ebdfd=this['editor'],_0x4a043d=_0x4ebdfd['model']['document']['selection'];if(!_0x4ebdfd['plugins']['has']('TableEditing'))return;const _0x35c6c1=_0x4ebdfd['locale'],_0x2df5ca=_0x4ebdfd['plugins']['get']('TrackChangesEditing'),_0x102948=_0x4ebdfd['plugins']['get']('TableUtils');_0x2df5ca['descriptionFactory']['registerElementLabel']('table',_0x58d5d4=>o(_0x35c6c1,'ELEMENT_TABLE',_0x58d5d4)),this['_setupColumnsRowsFixing'](),_0x2df5ca['enableCommand']('insertTable'),_0x2df5ca['enableCommand']('selectTableRow'),_0x2df5ca['enableCommand']('selectTableColumn');for(const _0x4f4d34 of['insertTableRowAbove','insertTableRowBelow']){const _0x2bad02=_0x4ebdfd['commands']['get'](_0x4f4d34);_0x2df5ca['enableCommand'](_0x4f4d34,_0x33c976=>{_0x4ebdfd['model']['change'](_0x2ee937=>{_0x33c976();const _0x1ee817='above'===_0x2bad02['order'],_0x4e6e66=_0x102948['getSelectionAffectedTableCells'](_0x4a043d),_0x5a3c75=_0x102948['getRowIndexes'](_0x4e6e66),_0xe95d56=_0x1ee817?_0x5a3c75['first']-0x1:_0x5a3c75['last']+0x1,_0x2bbc67=_0x4e6e66[0x0]['findAncestor']('table'),_0x4b5510=_0x102948['createTableWalker'](_0x2bbc67,{'startRow':_0xe95d56,'endRow':_0xe95d56}),_0xc645dc=Array['from'](_0x4b5510)['map'](_0x27642e=>_0x2ee937['createRangeOn'](_0x27642e['cell']));_0x2df5ca['markMultiRangeInsertion'](_0xc645dc,'tableRow');});});}for(const _0x2d210a of['insertTableColumnLeft','insertTableColumnRight']){const _0x7c8e66=_0x4ebdfd['commands']['get'](_0x2d210a);_0x2df5ca['enableCommand'](_0x2d210a,_0x2bd4a8=>{_0x4ebdfd['model']['change'](_0x2d6114=>{_0x2bd4a8();const _0x2e940a='left'===_0x7c8e66['order'],_0x214e9a=_0x102948['getSelectionAffectedTableCells'](_0x4a043d),_0x526b08=_0x102948['getColumnIndexes'](_0x214e9a),_0x3416d3=_0x2e940a?_0x526b08['first']-0x1:_0x526b08['last']+0x1,_0x3fd31b=_0x214e9a[0x0]['findAncestor']('table'),_0x44b848=_0x102948['createTableWalker'](_0x3fd31b,{'startRow':0x0,'column':_0x3416d3,'includeAllSlots':!0x1}),_0x1ba347=Array['from'](_0x44b848)['map'](_0x365f93=>_0x2d6114['createRangeOn'](_0x365f93['cell']));_0x2df5ca['markMultiRangeInsertion'](_0x1ba347,'tableColumn');});});}for(const _0x2428f0 of['removeTableRow','removeTableColumn']){const _0x5923b6=_0x2428f0['substr'](0xb),_0xc26ba5=_0x5923b6['toLowerCase'](),_0x58005f=_0xc26ba5['substr'](0x0,0x3)+'span',_0x4fdd67='table'+_0x5923b6,_0x225cf5='min'+_0x5923b6,_0x248f44='max'+_0x5923b6;_0x2df5ca['enableCommand'](_0x2428f0,()=>{_0x4ebdfd['model']['change'](_0x59debc=>{const _0x4bc9bf=_0x102948['getSelectionAffectedTableCells'](_0x4a043d),_0x4d6633=_0x4bc9bf[0x0]['findAncestor']('table');let _0xe77b5a;if('removeTableRow'==_0x2428f0){const _0x358031=_0x102948['getRowIndexes'](_0x4bc9bf);_0xe77b5a={'startRow':_0x358031['first'],'endRow':_0x358031['last'],'includeAllSlots':!0x0};}else{const _0xe6d034=_0x102948['getColumnIndexes'](_0x4bc9bf);_0xe77b5a={'startColumn':_0xe6d034['first'],'endColumn':_0xe6d034['last'],'includeAllSlots':!0x0};}const _0x298735=_0x102948['createTableWalker'](_0x4d6633,_0xe77b5a),_0x143b55=Array['from'](_0x298735)['map'](({cell:_0x37c912})=>_0x37c912),_0x4cedef=Ee(_0x143b55['filter'](_0x31c21d=>_0x31c21d['hasAttribute'](_0x58005f))),_0x380572=Ee(_0x143b55['filter'](_0x7e8424=>!_0x7e8424['hasAttribute'](_0x58005f)))['map'](_0x2176b0=>_0x59debc['createRangeOn'](_0x2176b0)),_0x2ef0b0=_0x2df5ca['markMultiRangeDeletion'](_0x380572,_0x4fdd67);if(_0x2ef0b0&&('tableRow'==_0x2ef0b0['subType']||'tableColumn'==_0x2ef0b0['subType'])){const _0x36fdb7=this['_getSuggestionCoords'](_0x2ef0b0);for(const _0x3c574b of _0x4cedef){const _0x215642=_0x59debc['createRangeOn'](_0x3c574b),_0x2737b2=_0x102948['getCellLocation'](_0x3c574b),_0xff87e4=_0x3c574b['getAttribute'](_0x58005f)-0x1,_0x9632ed=_0x36fdb7[_0x225cf5],_0x4ccd8a=_0x36fdb7[_0x248f44];_0x9632ed<=_0x2737b2[_0xc26ba5]&&_0x2737b2[_0xc26ba5]+_0xff87e4<=_0x4ccd8a&&_0x2ef0b0['addRange'](_0x215642);}}});});}function _0xf0c6af(_0x56d930){const _0x228a31=Array['from'](_0x4a043d['getRanges']())['map'](_0x2f40ac=>_0x249ff9['fromRange'](_0x2f40ac));_0x4ebdfd['model']['change'](_0x4f9ebf=>{const _0x2656e2=_0x4f9ebf['batch'];_0x56d930=_0x56d930['filter'](_0x4882be=>'$graveyard'!=_0x4882be['root']['rootName']),_0x4f9ebf['setSelection'](_0x56d930),_0x4ebdfd['commands']['get']('removeTableRow')['refresh'](),_0x4ebdfd['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4ebdfd['model']['enqueueChange'](()=>{_0x4ebdfd['model']['enqueueChange'](_0x2656e2,_0xcffff=>{const _0x15f8a2=_0x228a31['filter'](_0x260db6=>'$graveyard'!=_0x260db6['root']['rootName']);_0x15f8a2['length']>0x0&&_0xcffff['setSelection'](_0x15f8a2);for(const _0x5bce73 of _0x228a31)_0x5bce73['detach']();});});});}function _0x32429f(_0x55ba3b){_0x4ebdfd['model']['change'](_0x147181=>{const _0x5ede7c=Array['from'](_0x4a043d['getRanges']())['map'](_0x559474=>_0x249ff9['fromRange'](_0x559474)),_0x315ff0=[];for(const _0x9c66e8 of _0x55ba3b)for(const _0x3c69da of _0x9c66e8['getItems']({'shallow':!0x0}))_0x315ff0['push'](_0x3c69da);for(const _0x531e05 of _0x315ff0)'$graveyard'!=_0x531e05['root']['rootName']&&(_0x147181['setSelection'](_0x147181['createPositionAt'](_0x531e05,0x0)),_0x4ebdfd['commands']['get']('removeTableColumn')['refresh'](),_0x4ebdfd['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x14f088=_0x5ede7c['filter'](_0x586726=>'$graveyard'!=_0x586726['root']['rootName']);_0x14f088['length']>0x0&&_0x147181['setSelection'](_0x14f088);for(const _0x5e843c of _0x5ede7c)_0x5e843c['detach']();});}function _0x2406c9(_0x1af472,_0x4c140c){return _0x4c140c['every'](_0x358278=>_0x1af472['some'](_0x2b4b7c=>_0x2b4b7c['end']['isEqual'](_0x358278['start'])||_0x358278['end']['isEqual'](_0x2b4b7c['start'])));}function _0x554114(_0x3e308f,_0x4ae60c){return _0x3e308f['some'](_0x335b21=>_0x4ae60c['some'](_0xf55029=>_0x335b21['end']['isTouching'](_0xf55029['start'])));}_0x4ebdfd['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x543392,_0x13a3c8,_0x4dd718)=>{if(!_0x4dd718['options']['showSuggestionHighlights'])return;const _0x18cc3c=_0x13a3c8['item'];if(!_0x18cc3c)return;const _0x3cfb78=_0x4dd718['mapper']['toViewElement'](_0x18cc3c);function _0x412aed(_0x27f355){return Array['isArray'](_0x27f355)?_0x27f355:[_0x27f355];}_0x3cfb78&&'tableCell'===_0x18cc3c['name']&&_0x576e2c(_0x3cfb78,_0x4dd718['writer'],(_0x248061,_0x5b1645,_0x54d081)=>_0x54d081['addClass'](_0x412aed(_0x5b1645['classes']),_0x248061),(_0x439777,_0x1a7e26,_0x3005b6)=>_0x3005b6['removeClass'](_0x412aed(_0x1a7e26['classes']),_0x439777));},{'priority':'highest'}),_0x2df5ca['descriptionFactory']['registerDescriptionCallback'](_0x417bcd=>{if('insertion'!=_0x417bcd['type']&&'deletion'!=_0x417bcd['type'])return;const _0x4e6936=_0x417bcd['getContainedElement']();if(null!=_0x4e6936&&_0x4e6936['is']('element','table')){if('insertion'==_0x417bcd['type']){const _0x1fb550=_0x417bcd['getItems']()['filter'](_0x12bdee=>_0x12bdee['is']('$textProxy'))['map'](_0x55be3b=>_0x55be3b['data']);if(_0x1fb550['length'])return{'type':'insertion','content':o(_0x35c6c1,'*Insert:*\x20%0',o(_0x35c6c1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1fb550['join']('\x20')+'\x22'))};}if('deletion'==_0x417bcd['type']){const _0x58e692=_0x417bcd['getItems']()['filter'](_0x5b29d7=>_0x5b29d7['is']('$textProxy'))['map'](_0x39782a=>_0x39782a['data']);if(_0x58e692['length'])return{'type':'deletion','content':o(_0x35c6c1,'*Remove:*\x20%0',o(_0x35c6c1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x58e692['join']('\x20')+'\x22'))};}}}),_0x2df5ca['descriptionFactory']['registerDescriptionCallback'](_0x49022a=>{if('tableRow'==_0x49022a['subType']){const _0x4ef55f=_0x49022a['getItems']()['filter'](_0xb2201e=>_0xb2201e['is']('$textProxy'))['map'](_0x14732e=>_0x14732e['data']),_0x585df9=this['_getSuggestionCoords'](_0x49022a),_0x27013b=_0x585df9['maxRow']-_0x585df9['minRow']+0x1;if('insertion'==_0x49022a['type'])return _0x4ef55f['length']?{'type':'insertion','content':o(_0x35c6c1,'*Insert:*\x20%0',o(_0x35c6c1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x27013b,'\x22'+_0x4ef55f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x35c6c1,'*Insert:*\x20%0',o(_0x35c6c1,'ELEMENT_TABLE_ROW',_0x27013b))};if('deletion'==_0x49022a['type'])return _0x4ef55f['length']?{'type':'deletion','content':o(_0x35c6c1,'*Remove:*\x20%0',o(_0x35c6c1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x27013b,'\x22'+_0x4ef55f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x35c6c1,'*Remove:*\x20%0',o(_0x35c6c1,'ELEMENT_TABLE_ROW',_0x27013b))};}if('tableColumn'==_0x49022a['subType']){const _0x4707ce=_0x49022a['getItems']()['filter'](_0x318a79=>_0x318a79['is']('$textProxy'))['map'](_0x389f83=>_0x389f83['data']),_0x529969=this['_getSuggestionCoords'](_0x49022a),_0x3b9eed=_0x529969['maxColumn']-_0x529969['minColumn']+0x1;if('insertion'==_0x49022a['type'])return _0x4707ce['length']?{'type':'insertion','content':o(_0x35c6c1,'*Insert:*\x20%0',o(_0x35c6c1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b9eed,'\x22'+_0x4707ce['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x35c6c1,'*Insert:*\x20%0',o(_0x35c6c1,'ELEMENT_TABLE_COLUMN',_0x3b9eed))};if('deletion'==_0x49022a['type'])return _0x4707ce['length']?{'type':'deletion','content':o(_0x35c6c1,'*Remove:*\x20%0',o(_0x35c6c1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b9eed,'\x22'+_0x4707ce['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x35c6c1,'*Remove:*\x20%0',o(_0x35c6c1,'ELEMENT_TABLE_COLUMN',_0x3b9eed))};}}),_0x2df5ca['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xf0c6af),_0x2df5ca['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xf0c6af),_0x2df5ca['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x32429f),_0x2df5ca['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x32429f),_0x2df5ca['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2406c9),_0x2df5ca['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2406c9),_0x2df5ca['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x554114),_0x2df5ca['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x554114);}['_acceptFormatSuggestionCallbackFactory'](){const _0x271f14=this['editor'],_0x3694b5=_0x271f14['model']['document']['selection'];return(_0x50b0e5,_0x52ad73)=>{_0x271f14['model']['change'](_0x20437f=>{const {commandName:_0x1347de,commandParams:_0x117215}=_0x52ad73;let _0x50c3eb=_0x50b0e5[0x0]['end']['nodeBefore'];_0x117215&&_0x117215[0x0]&&!0x1===_0x117215[0x0]['forceValue']&&(_0x50c3eb=_0x50b0e5[0x0]['start']['nodeAfter']);const _0x199455=_0x20437f['createRangeIn'](_0x50c3eb);if('$graveyard'==_0x199455['root']['rootName'])return;const _0x4b33e5=Array['from'](_0x3694b5['getRanges']())['map'](_0x33ca11=>_0x249ff9['fromRange'](_0x33ca11));_0x20437f['setSelection'](_0x199455),_0x271f14['commands']['get'](_0x1347de)['refresh'](),_0x117215['push']({'forceDefaultExecution':!0x0}),_0x271f14['execute'](_0x1347de,..._0x117215);const _0x12246e=_0x4b33e5['filter'](_0x2c3393=>'$graveyard'!=_0x2c3393['root']['rootName']);_0x12246e['length']>0x0&&_0x20437f['setSelection'](_0x12246e);for(const _0x2a7233 of _0x4b33e5)_0x2a7233['detach']();});};}['_getCoordsForCells'](_0x1f847e){const _0x5dcfcd=this['editor']['plugins']['get']('TableUtils');let _0x28f05f=Number['MAX_SAFE_INTEGER'],_0x5c9398=Number['MIN_SAFE_INTEGER'],_0x1fc737=Number['MAX_SAFE_INTEGER'],_0x1c47c0=Number['MIN_SAFE_INTEGER'];for(const _0x1523b8 of _0x1f847e){if('$graveyard'==_0x1523b8['root']['rootName'])continue;const {row:_0x24ff10,column:_0x4958fd}=_0x5dcfcd['getCellLocation'](_0x1523b8),_0x486d35=_0x1523b8['hasAttribute']('rowspan')?_0x1523b8['getAttribute']('rowspan')-0x1:0x0,_0x2ce509=_0x1523b8['hasAttribute']('colspan')?_0x1523b8['getAttribute']('colspan')-0x1:0x0;_0x28f05f=_0x24ff10<_0x28f05f?_0x24ff10:_0x28f05f,_0x5c9398=_0x24ff10+_0x486d35>_0x5c9398?_0x24ff10+_0x486d35:_0x5c9398,_0x1fc737=_0x4958fd<_0x1fc737?_0x4958fd:_0x1fc737,_0x1c47c0=_0x4958fd+_0x2ce509>_0x1c47c0?_0x4958fd+_0x2ce509:_0x1c47c0;}return{'minRow':_0x28f05f,'maxRow':_0x5c9398,'minColumn':_0x1fc737,'maxColumn':_0x1c47c0};}['_setupColumnsRowsFixing'](){const _0x4627a0=this['editor'],_0x559c95=_0x4627a0['plugins']['get']('TrackChangesEditing'),_0x4d492a=_0x4627a0['plugins']['get']('TableUtils');_0x4627a0['model']['document']['on']('change:data',()=>{const _0x48dd03=Array['from'](_0x4627a0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d88d6,data:_0x46e0f5}of _0x48dd03){const {group:_0x5b6b72,id:_0xa30e3c,subType:_0x4b042b}=_0x559c95['_splitMarkerName'](_0x4d88d6);if('suggestion'!=_0x5b6b72)continue;if(null!=_0x46e0f5['oldRange'])continue;const _0x5a0ad5=_0x559c95['getSuggestion'](_0xa30e3c);this['_tablePostFixingSubtypes']['includes'](_0x4b042b)&&this['_tableSuggestions']['add'](_0x5a0ad5);}},{'priority':'low'});const _0x217eee=(_0x3e2de8,_0x109634)=>{let _0x42f486=!0x1;const _0x239da4=_0x109634['createRangeOn'](_0x3e2de8),_0x85d30f=_0x3e2de8['findAncestor']('table'),_0x2a5779=_0x4d492a['getCellLocation'](_0x3e2de8);for(const _0x3d6382 of this['_tableSuggestions']){const _0x28e93f=_0x3d6382['subType'],_0x4c3a59=_0x28e93f['startsWith']('tablePaste'),_0x286ffd=_0x28e93f['substr'](_0x4c3a59?0xa:0x5),_0x3a93a6=_0x286ffd['toLowerCase'](),_0x50c883=_0x3a93a6['substr'](0x0,0x3)+'span',_0x453211='min'+_0x286ffd,_0xfbd442='max'+_0x286ffd;if(!_0x3d6382['isInContent'])continue;if(_0x85d30f!=_0x3d6382['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3d6382['isIntersectingWithRange'](_0x239da4))continue;const _0x506511=_0x3e2de8['hasAttribute'](_0x50c883)?_0x3e2de8['getAttribute'](_0x50c883)-0x1:0x0,_0x5c06f1=this['_getSuggestionCoords'](_0x3d6382),_0x59444c=_0x5c06f1[_0x453211],_0x255638=_0x5c06f1[_0xfbd442];_0x59444c<=_0x2a5779[_0x3a93a6]&&_0x2a5779[_0x3a93a6]+_0x506511<=_0x255638&&(_0x3d6382['addRange'](_0x239da4),_0x42f486=!0x0);}return _0x42f486;};_0x4627a0['model']['document']['registerPostFixer'](_0x2510df=>{let _0x370606=!0x1;for(const _0x1ef8b3 of _0x4627a0['model']['document']['differ']['getChanges']())if('insert'==_0x1ef8b3['type']){if('tableRow'==_0x1ef8b3['name']){for(const _0x3a5a5e of _0x1ef8b3['position']['nodeAfter']['getChildren']())_0x370606=_0x370606||_0x217eee(_0x3a5a5e,_0x2510df);}else'tableCell'==_0x1ef8b3['name']&&(_0x370606=_0x370606||_0x217eee(_0x1ef8b3['position']['nodeAfter'],_0x2510df));}return _0x370606;});}['_getSuggestionCoords'](_0x6cbbb2){return this['_getCoordsForCells'](_0x6cbbb2['getRanges']()['map'](_0xcc7047=>_0xcc7047['start']['nodeAfter']));}}function Ee(_0x5cb65f){return Array['from'](new Set(_0x5cb65f)['values']());}class St extends _0x43febe{static get['requires'](){return[jt];}['afterInit'](){const _0x3a4a65=this['editor'],_0x575c68=_0x3a4a65['model']['document']['selection'],_0x33db12=_0x3a4a65['locale'];if(!_0x3a4a65['plugins']['has']('TableEditing'))return;const _0x45eab5=_0x3a4a65['plugins']['get']('TrackChangesEditing'),_0x5e1773=_0x3a4a65['plugins']['get']('TableUtils'),_0x4163d0=_0x3a4a65['plugins']['get'](jt);_0x4163d0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x45eab5['enableCommand']('mergeTableCells',()=>{const _0x6a3943=_0x5e1773['getSelectionAffectedTableCells'](_0x3a4a65['model']['document']['selection']);_0x3a4a65['model']['change'](()=>{_0x45eab5['markMultiRangeBlockFormat'](_0x6a3943,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3a4a65['commands']['get']('mergeTableCells')['on']('execute',(_0x292020,_0xdadb04)=>{_0x3a4a65['commands']['get']('trackChanges')['value']&&(_0xdadb04['length']>0x0&&_0xdadb04[_0xdadb04['length']-0x1]&&_0xdadb04[_0xdadb04['length']-0x1]['forceDefaultExecution']||_0x45eab5['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x292020['stop']());},{'priority':'highest'});for(const _0x444189 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x49b6fd=_0x3a4a65['commands']['get'](_0x444189);_0x45eab5['enableCommand'](_0x444189,()=>{const _0x42c032=_0x3a4a65['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x381169=>_0x381169['is']('element','tableCell')),_0xae86a7=_0x49b6fd['value'];_0x3a4a65['model']['change'](()=>{_0x45eab5['markMultiRangeBlockFormat']([_0x42c032,_0xae86a7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5969b6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xf8264d=_0x3a4a65['commands']['get'](_0x5969b6);_0x45eab5['enableCommand'](_0x5969b6,()=>{const _0x3b9ae3=_0x5e1773['getSelectionAffectedTableCells'](_0x3a4a65['model']['document']['selection'])[0x0],_0x53831d=_0x3b9ae3['findAncestor']('table'),{column:_0x9653b9,row:_0x3412ce}=_0x5e1773['getCellLocation'](_0x3b9ae3);let _0x5f079a=[];if('horizontally'==_0xf8264d['direction']){const _0x45c539=_0x5e1773['createTableWalker'](_0x53831d,{'startRow':_0x3412ce,'endRow':_0x3412ce,'includeAllSlots':!0x0});_0x5f079a=Array['from'](_0x45c539)['map'](_0x2f3550=>_0x2f3550['cell']);}else{const _0x185103=_0x5e1773['createTableWalker'](_0x53831d,{'column':_0x9653b9,'includeAllSlots':!0x0});_0x5f079a=Array['from'](_0x185103)['map'](_0xc333fc=>_0xc333fc['cell']);}_0x3a4a65['model']['change'](_0x317bcb=>{_0x45eab5['markBlockFormat'](_0x317bcb['createRangeOn'](_0x3b9ae3),{'commandName':_0x5969b6,'commandParams':[]},_0x5f079a,_0x5969b6);});});}_0x45eab5['descriptionFactory']['registerDescriptionCallback'](_0x5dc415=>{if('formatBlock'!=_0x5dc415['type']&&'formatInline'!=_0x5dc415['type'])return;const {data:_0x1918dd}=_0x5dc415;return _0x1918dd&&'mergeTableCells'==_0x1918dd['commandName']?{'type':'format','content':o(_0x33db12,'*Merge\x20cells*')}:void 0x0;}),_0x45eab5['descriptionFactory']['registerDescriptionCallback'](_0x555a22=>{if('formatBlock'!=_0x555a22['type']&&'formatInline'!=_0x555a22['type'])return;const {data:_0x3f6422}=_0x555a22;return _0x3f6422?'splitTableCellVertically'==_0x3f6422['commandName']?{'type':'format','content':o(_0x33db12,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3f6422['commandName']?{'type':'format','content':o(_0x33db12,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x14652d=_0x4163d0['_acceptFormatSuggestionCallbackFactory']();for(const _0x539b73 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x45eab5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x539b73,'accept',_0x14652d);for(const _0x2dce94 of['splitTableCellVertically','splitTableCellHorizontally'])_0x45eab5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2dce94,'accept',_0x14652d);_0x45eab5['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1aff58=>{_0x3a4a65['model']['change'](_0x1990bd=>{const _0x2c9ce6=Array['from'](_0x575c68['getRanges']())['map'](_0x9904c7=>_0x249ff9['fromRange'](_0x9904c7));_0x1990bd['setSelection'](_0x1aff58),_0x3a4a65['commands']['get']('mergeTableCells')['refresh'](),_0x3a4a65['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3dff3d=_0x2c9ce6['filter'](_0x345c7d=>'$graveyard'!=_0x345c7d['root']['rootName']);_0x3dff3d['length']>0x0&&_0x1990bd['setSelection'](_0x3dff3d);for(const _0x894216 of _0x2c9ce6)_0x894216['detach']();});});for(const _0x1061df of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4b77e8=_0x3a4a65['commands']['get'](_0x1061df);_0x4b77e8['on']('set:isEnabled',(_0x8e0fb2,_0x4d3533,_0xcf8a)=>{if(_0xcf8a){const _0xd49858=_0x3a4a65['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x299933=>_0x299933['is']('element','tableCell'));this['_areMergableCells'](_0x4b77e8['value'],_0xd49858)||(_0x8e0fb2['return']=!0x1,_0x8e0fb2['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x57693e=this['editor']['commands']['get']('mergeTableCells'),_0x168aa0=this['editor']['plugins']['get']('TableUtils');if(!_0x57693e['isEnabled'])return!0x1;const _0x24a758=_0x168aa0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2ae07c of _0x24a758)for(const _0x346cdd of _0x24a758)if(_0x2ae07c!=_0x346cdd&&!this['_areMergableCells'](_0x2ae07c,_0x346cdd))return!0x1;return!0x0;}['_areMergableCells'](_0x28593d,_0x3f352a){const _0x3f90ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51b91d=this['editor']['model']['createRangeOn'](_0x28593d),_0x204a51=this['editor']['model']['createRangeOn'](_0x3f352a),_0x4c618c=new Set(),_0x308027=new Set();for(const _0x1e38df of _0x3f90ae['getSuggestions']())if(('insertion'==_0x1e38df['type']||'deletion'==_0x1e38df['type']||'mergeTableCells'==_0x1e38df['subType'])&&_0x1e38df['isInContent']){for(const _0x14aacb of _0x1e38df['getRanges']())_0x14aacb['containsRange'](_0x51b91d,!0x0)&&_0x4c618c['add'](_0x1e38df['type']+':'+_0x1e38df['author']['id']),_0x14aacb['containsRange'](_0x204a51,!0x0)&&_0x308027['add'](_0x1e38df['type']+':'+_0x1e38df['author']['id']);}if(_0x4c618c['size']!=_0x308027['size'])return!0x1;for(const _0x403a28 of _0x4c618c)if(!_0x308027['has'](_0x403a28))return!0x1;return!0x0;}}class At extends _0x43febe{static get['requires'](){return[jt];}['afterInit'](){const _0x2bab10=this['editor'];if(!_0x2bab10['plugins']['has']('TableEditing'))return;const _0x3887df=_0x2bab10['locale'],_0x452bfe=_0x2bab10['plugins']['get']('TrackChangesEditing');_0x452bfe['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x452bfe['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x452bfe['registerBlockAttribute']('headingRows'),_0x452bfe['registerBlockAttribute']('headingColumns'),_0x452bfe['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3887df,'FORMAT_HEADER_ROW')),_0x452bfe['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3887df,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xff5341=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4986fb=this['editor']['plugins']['get']('TableUtils'),_0x43a7d9=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x2251b5({showActiveMarker:_0x4c5366=!0x0,setDataAttribute:_0x5672fc=!0x0}={}){return(_0x9324ee,_0x48b9f0,_0x4c81f2)=>{const {type:_0x153de0,id:_0x2a6bb2}=_0xff5341['_splitMarkerName'](_0x48b9f0['markerName']),_0x5cb94e=_0xff5341['getSuggestion'](_0x2a6bb2),_0x1a9a02=_0x5cb94e['data'];if('formatBlock'!=_0x5cb94e['type']||!_0x1a9a02||'setTableColumnHeader'!=_0x1a9a02['commandName'])return;if(_0x48b9f0['item'])return void _0x9324ee['stop']();if(!_0x4c81f2['consumable']['consume'](_0x48b9f0['markerRange'],_0x9324ee['name']))return;const _0x1be1e3=_0x48b9f0['markerRange']['start']['nodeAfter'],_0x35fba1=_0x48b9f0['markerRange']['end']['nodeBefore'],_0x581dd6=_0x1be1e3['parent']['parent'],{column:_0x10ab26}=_0x4986fb['getCellLocation'](_0x1be1e3),{column:_0x50efbd}=_0x4986fb['getCellLocation'](_0x35fba1);for(let _0x117f2f=_0x10ab26;_0x117f2f<=_0x50efbd;_0x117f2f++){const _0x595a1f=_0x4986fb['createTableWalker'](_0x581dd6,{'column':_0x117f2f,'includeAllSlots':!0x1});for(const _0xe601dd of _0x595a1f){const _0x2a3077=_0xe601dd['cell'],_0x38c1ff=_0x4c81f2['mapper']['toViewElement'](_0x2a3077);_0x4c81f2['writer']['addClass']('ck-suggestion-marker-'+_0x153de0,_0x38c1ff),_0x5672fc&&_0x4c81f2['writer']['setAttribute']('data-suggestion',_0x2a6bb2,_0x38c1ff),_0x4c81f2['mapper']['bindElementToMarker'](_0x38c1ff,_0x48b9f0['markerName']),_0x4c5366&&(_0xff5341['activeMarkers']['includes'](_0x48b9f0['markerName'])?_0x4c81f2['writer']['addClass']('ck-suggestion-marker--active',_0x38c1ff):_0x4c81f2['writer']['removeClass']('ck-suggestion-marker--active',_0x38c1ff));}}};}_0xff5341['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x43a7d9),_0xff5341['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x43a7d9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2251b5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x53e189,_0x2fcef5,_0xa61025)=>{_0xa61025['options']['showSuggestionHighlights']&&_0x2251b5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x53e189,_0x2fcef5,_0xa61025);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x26e0cb,_0x54d84a,_0x5204ba)=>{const {type:_0x3e8e2a,id:_0x5dd3e9}=_0xff5341['_splitMarkerName'](_0x54d84a['markerName']),_0x46e5f4=_0xff5341['getSuggestion'](_0x5dd3e9),_0x464181=_0x46e5f4['data'];if('formatBlock'!=_0x46e5f4['type']||!_0x464181||'setTableColumnHeader'!=_0x464181['commandName'])return;const _0x583966=_0x5204ba['mapper']['markerNameToElements'](_0x54d84a['markerName']);if(_0x583966){for(const _0x151ce1 of _0x583966)_0x5204ba['writer']['removeClass']('ck-suggestion-marker-'+_0x3e8e2a,_0x151ce1),_0x5204ba['writer']['removeClass']('ck-suggestion-marker--active',_0x151ce1),_0x5204ba['writer']['removeAttribute']('data-suggestion',_0x151ce1),_0x5204ba['mapper']['unbindElementFromMarkerName'](_0x151ce1,_0x54d84a['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc40b8f=this['editor'],_0x42d405=_0xc40b8f['locale'];function _0x2c48a0(_0x3147f3){return{'type':'format','content':o(_0x42d405,'*Format:*\x20%0',_0x3147f3)};}_0xc40b8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12aa04=>{if('formatBlock'!=_0x12aa04['type'])return;const {data:_0x3b790c}=_0x12aa04;if(_0x3b790c){if('setTableRowHeader'==_0x3b790c['commandName']){const _0x4a2a23=_0x3b790c['commandParams'][0x0]['forceValue'];return _0x2c48a0(o(_0x42d405,_0x4a2a23?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3b790c['commandName']){const _0x4037a1=_0x3b790c['commandParams'][0x0]['forceValue'];return _0x2c48a0(o(_0x42d405,_0x4037a1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x1d3235=>[_0x1d3235,null]));class It extends _0x43febe{static get['requires'](){return[jt];}['afterInit'](){const _0x72fa63=this['editor'];if(!_0x72fa63['plugins']['has']('TableClipboard'))return;const _0x4b81cb=_0x72fa63['plugins']['get']('TrackChangesEditing'),_0x2023e5=_0x72fa63['plugins']['get']('TableUtils'),_0x1898a8=_0x72fa63['plugins']['get'](jt),_0x1f9dd0=_0x72fa63['plugins']['get']('TableClipboard');_0x1898a8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x72fa63['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x72fa63['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4624d9=null;_0x72fa63['model']['on']('insertContent',(_0xd37113,_0xe13e3d)=>{const [_0x17c107,_0x55c2db]=_0xe13e3d,_0x566b96=_0xe13e3d[_0xe13e3d['length']-0x1];_0x566b96&&_0x566b96['forceDefaultExecution']||_0x4b81cb['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1be433,_0x29c0d7,_0x5c69ba,_0x3bac6b,_0x259bf1){if(_0x29c0d7&&!_0x29c0d7['is']('documentSelection'))return!0x1;const _0x19dda9=_0x259bf1['getTableIfOnlyTableInContent'](_0x1be433,_0x5c69ba);if(!_0x19dda9||!he(_0x19dda9,void 0x0,_0x3bac6b))return!0x1;const _0x98b7ee=_0x3bac6b['getSelectionAffectedTableCells'](_0x5c69ba['document']['selection']);if(!_0x98b7ee['length'])return!0x1;const _0x4aab08=_0x98b7ee[0x0]['findAncestor']('table'),_0x1cb1ec=_0x3bac6b['getRowIndexes'](_0x98b7ee),_0x3bf110=_0x3bac6b['getColumnIndexes'](_0x98b7ee),_0x28c816={'startRow':_0x1cb1ec['first'],'endRow':_0x1cb1ec['last'],'startColumn':_0x3bf110['first'],'endColumn':_0x3bf110['last']};return 0x1==_0x98b7ee['length']&&(_0x28c816['endRow']+=_0x3bac6b['getRows'](_0x19dda9)-0x1,_0x28c816['endColumn']+=_0x3bac6b['getColumns'](_0x19dda9)-0x1),he(_0x4aab08,_0x28c816,_0x3bac6b);}(_0x17c107,_0x55c2db,_0x72fa63['model'],_0x2023e5,_0x1f9dd0)&&(_0xd37113['stop'](),_0x4624d9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x72fa63['model']['change'](()=>{_0x72fa63['model']['insertContent'](_0xe13e3d[0x0],_0xe13e3d[0x1],_0xe13e3d[0x2],{'forceDefaultExecution':!0x0});const _0x579ffe=_0x3f2578(),{rowInsertionRanges:_0x51bc7e,columnInsertionRanges:_0x30d8a8,insertionRanges:_0x44a6a8,deletionRanges:_0x5247e2,cells:_0x175079}=_0x4624d9;_0x51bc7e['length']&&_0x4b81cb['markMultiRangeInsertion'](_0x51bc7e,'tablePasteRow',{'tablePasteChainId':_0x579ffe}),_0x30d8a8['length']&&_0x4b81cb['markMultiRangeInsertion'](_0x30d8a8,'tablePasteColumn',{'tablePasteChainId':_0x579ffe}),_0x44a6a8['length']&&(_0x4b81cb['markMultiRangeInsertion'](_0x44a6a8,'tablePaste',{'tablePasteChainId':_0x579ffe,'skipNestingCheck':!0x0}),_0x44a6a8['forEach'](_0x1d7bef=>_0x1d7bef['detach']?.())),_0x5247e2['length']&&(_0x4b81cb['markMultiRangeDeletion'](_0x5247e2,'tablePaste',{'tablePasteChainId':_0x579ffe,'skipNestingCheck':!0x0}),_0x5247e2['forEach'](_0x5e0d7e=>_0x5e0d7e['detach']?.()));const _0x14afd5=_0x4b81cb['markMultiRangeBlockFormat'](_0x175079['map'](({element:_0x2dba9a})=>_0x2dba9a),{'formatGroupId':_0x3f2578()},[],'tablePasteCell',{'tablePasteChainId':_0x579ffe});if(_0x14afd5){const _0x38670c=_0x14afd5['getMarkers'](),_0x467d0e=[];for(const {element:_0x4edb97,attributes:_0x10bd32}of _0x175079){if(!_0x10bd32)continue;const _0x25a4a7=_0x72fa63['model']['createRangeOn'](_0x4edb97),_0xc58862=_0x38670c['find'](_0x5652e4=>_0x5652e4['getRange']()['isEqual'](_0x25a4a7));_0xc58862&&_0x467d0e['push']([_0xc58862['name'],_0x10bd32]);}_0x467d0e['length']&&_0x14afd5['setAttribute']('markerAttributes',Object['fromEntries'](_0x467d0e));}_0x4624d9=null;}));},{'priority':_0x4f7b70['high']+0xa}),_0x72fa63['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x587a67,_0x32cf33)=>{const [_0x318986,_0x5a62dc,,_0x2273bc]=_0x32cf33;if(!_0x4624d9)return;_0x587a67['stop']();const _0x1bdf35=_0x318986['cell'],_0x49a76c=_0x5a62dc,_0x262b9e=Pe(_0x1bdf35),_0x347c06=Pe(_0x49a76c);_0x587a67['return']=_0x1bdf35;let _0x53469d=null,_0x2280e3=null;if(_0x347c06||_0x262b9e){if(_0x262b9e&&!_0x347c06){_0x2273bc['remove'](_0x1bdf35['getChild'](0x0));for(const _0x44537f of Array['from'](_0x49a76c['getChildren']()))_0x2273bc['insert'](_0x44537f,_0x1bdf35,'end');const _0x1fac82=_0x4624d9['rowInsertionIndexes']['includes'](_0x318986['row']),_0x2ebbb1=_0x4624d9['columnInsertionIndexes']['includes'](_0x318986['column']);_0x1fac82||_0x2ebbb1||(_0x53469d=_0x249ff9['fromRange'](_0x2273bc['createRangeIn'](_0x1bdf35)));}else _0x347c06&&!_0x262b9e&&(_0x2280e3=_0x2273bc['createRangeIn'](_0x1bdf35));}else{const _0x5a7b69=_0x2273bc['createElement']('tableCellSuggestion'),_0x69e2c6=_0x2273bc['createElement']('tableCellSuggestion');_0x2273bc['wrap'](_0x2273bc['createRangeIn'](_0x1bdf35),_0x69e2c6),_0x2273bc['insert'](_0x5a7b69,_0x1bdf35,0x0);for(const _0x16e7d4 of Array['from'](_0x49a76c['getChildren']()))_0x2273bc['insert'](_0x16e7d4,_0x5a7b69,'end');_0x53469d=_0x249ff9['fromRange'](_0x2273bc['createRangeOn'](_0x5a7b69)),_0x2280e3=_0x249ff9['fromRange'](_0x2273bc['createRangeOn'](_0x69e2c6));}const _0x2f831a=Array['from'](_0x49a76c['getAttributes']())['filter'](([_0x63f575])=>ge['includes'](_0x63f575));_0x4624d9['cells']['push']({'element':_0x1bdf35,'attributes':_0x2f831a['length']?Object['fromEntries'](_0x2f831a):null}),_0x53469d&&_0x4624d9['insertionRanges']['push'](_0x53469d),_0x2280e3&&_0x4624d9['deletionRanges']['push'](_0x2280e3);},{'priority':'high'}),_0x2023e5['on']('insertColumns',(_0x530e80,_0x447de9)=>{const [_0x138ce0,_0x5d4899={}]=_0x447de9;if(!_0x4624d9)return;const _0x33d98e=_0x5d4899['at']||0x0,_0x1804b7=_0x5d4899['columns']||0x1;_0x4624d9['columnInsertionIndexes']=new Array(_0x1804b7)['fill'](_0x33d98e)['map']((_0x220b7d,_0x101851)=>_0x220b7d+_0x101851);for(const {cell:_0x5f3e17}of _0x2023e5['createTableWalker'](_0x138ce0,{'startColumn':_0x33d98e,'endColumn':_0x33d98e+_0x1804b7-0x1}))_0x4624d9['columnInsertionRanges']['push'](_0x72fa63['model']['createRangeOn'](_0x5f3e17));},{'priority':'low'}),_0x2023e5['on']('insertRows',(_0x192cb9,_0x172bbb)=>{const [_0x3f69c2,_0x18b064={}]=_0x172bbb;if(!_0x4624d9)return;const _0xb192f0=_0x18b064['at']||0x0,_0x18a617=_0x18b064['rows']||0x1;_0x4624d9['rowInsertionIndexes']=new Array(_0x18a617)['fill'](_0xb192f0)['map']((_0xa834a,_0x3f2a14)=>_0xa834a+_0x3f2a14);for(const {cell:_0x58c08a}of _0x2023e5['createTableWalker'](_0x3f69c2,{'startRow':_0xb192f0,'endRow':_0xb192f0+_0x18a617-0x1}))_0x4624d9['rowInsertionRanges']['push'](_0x72fa63['model']['createRangeOn'](_0x58c08a));},{'priority':'low'}),_0x4b81cb['descriptionFactory']['registerDescriptionCallback'](_0x104ff6=>{if(_0x104ff6['subType']&&_0x104ff6['subType']['startsWith']('tablePaste'))return _0x104ff6['previous']?{}:{'type':'insertion','content':o(_0x72fa63['locale'],'*Replace\x20table\x20cells*')};});const _0x3a2866=()=>!0x1;for(const _0x3f2c16 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4b81cb['_suggestionFactory']['registerCustomCallback']('insertion',_0x3f2c16,'join',_0x3a2866),_0x4b81cb['_suggestionFactory']['registerCustomCallback']('deletion',_0x3f2c16,'join',_0x3a2866),_0x4b81cb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f2c16,'join',_0x3a2866);_0x4b81cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3a2866),_0x4b81cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x79692a,_0x18f0d6,_0x2c7048)=>{const _0x459591=_0x79692a['map'](_0x4696f8=>_0x4696f8['getContainedElement']())['filter'](_0x405074=>_0x405074),_0x14ce7d=new Map(_0x459591['map'](_0x9bb10a=>[_0x9bb10a,null]));if(_0x4624d9){for(const {element:_0x7b90a4,attributes:_0xb85a6a}of _0x4624d9['cells'])_0xb85a6a&&_0x14ce7d['set'](_0x7b90a4,_0xb85a6a);}else{if(_0x2c7048&&_0x2c7048['markerAttributes'])for(const [_0x55a18c,_0x513e4e]of Object['entries'](_0x2c7048['markerAttributes'])){const _0x468a0f=_0x72fa63['model']['markers']['get'](_0x55a18c),_0x1dad10=_0x468a0f?_0x468a0f['getRange']()['getContainedElement']():null;_0x1dad10&&_0x14ce7d['set'](_0x1dad10,_0x513e4e);}}_0x72fa63['model']['change'](_0x16ebb9=>{for(const [_0x5cd0f7,_0x57541a]of _0x14ce7d)_0x16ebb9['setAttributes']({...Ce,..._0x57541a},_0x5cd0f7);});});const _0x58af90=(_0x2fbdf4,_0x3f1de0)=>{_0x4b81cb['_suggestionFactory']['registerCustomCallback'](_0x2fbdf4,'tablePaste',_0x3f1de0,(_0x40f615,_0xe08b82,_0x536ca9)=>{_0x72fa63['model']['change'](_0x533587=>{const _0x285d0a=[];for(const _0x478dbe of _0x40f615){const _0x166e12=_0x478dbe['start']['nodeAfter'];_0x166e12['is']('element','tableCellSuggestion')&&_0x285d0a['push'](_0x166e12);}_0x4b81cb['_suggestionFactory']['getSuggestionCallback'](_0x2fbdf4,null,_0x3f1de0)(_0x40f615,_0xe08b82,_0x536ca9);for(const _0x569ac8 of _0x285d0a)'$graveyard'!=_0x569ac8['root']['rootName']&&_0x533587['unwrap'](_0x569ac8);});});};_0x58af90('insertion','accept'),_0x58af90('insertion','discard'),_0x58af90('deletion','accept'),_0x58af90('deletion','discard'),_0x4b81cb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x26fb62=>{const _0x399148=_0x26fb62['map'](_0xfe7836=>_0xfe7836['getContainedElement']()),_0x43326b=_0x399148[0x0]['findAncestor']('table'),{minRow:_0x3fcb0e,maxRow:_0x532904}=_0x1898a8['_getCoordsForCells'](_0x399148);_0x2023e5['removeRows'](_0x43326b,{'at':_0x3fcb0e,'rows':_0x532904-_0x3fcb0e+0x1});}),_0x4b81cb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x58a35e=>{const _0x1ff8dc=_0x58a35e['map'](_0x2711c1=>_0x2711c1['getContainedElement']()),_0x3ec687=_0x1ff8dc[0x0]['findAncestor']('table'),{minColumn:_0x1717fe,maxColumn:_0x202226}=_0x1898a8['_getCoordsForCells'](_0x1ff8dc);_0x2023e5['removeColumns'](_0x3ec687,{'at':_0x1717fe,'columns':_0x202226-_0x1717fe+0x1});});const _0x530aa3=(_0x17802f,_0x53acd4)=>{if(!_0x53acd4['subType']||!_0x53acd4['subType']['startsWith']('tablePaste'))return;const _0x3d1657=_0x53acd4['attributes']['tablePasteChainId'],_0x3ab295=_0x4b81cb['getSuggestions']()['filter'](_0x40bcc3=>_0x40bcc3['isInContent']&&_0x40bcc3['attributes']&&_0x40bcc3['attributes']['tablePasteChainId']==_0x3d1657);_0x3ab295['length']&&_0x53acd4['getAllAdjacentSuggestions']()['length']!=_0x3ab295['length']&&_0x3ab295['reduce']((_0x5cba06,_0x98374b)=>(_0x5cba06['next']=_0x98374b,_0x98374b['previous']=_0x5cba06,_0x98374b));};function _0x375730(_0x1a5324,_0x23de85=!0x0){const {id:_0x1e54e1}=_0x4b81cb['_splitMarkerName'](_0x1a5324['markerName']),_0x1037e9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4ce8cd=_0x4b81cb['activeMarkers']['includes'](_0x1a5324['markerName']);return _0x4ce8cd&&_0x1037e9['push']('ck-suggestion-marker--active'),{'classes':_0x1037e9,'attributes':{'data-suggestion':_0x1e54e1},'priority':_0x4ce8cd&&_0x23de85?0xbc2:0xbb8};}_0x4b81cb['on']('suggestionLoaded',_0x530aa3,{'priority':'high'}),_0x4b81cb['on']('suggestionUnloaded',_0x530aa3,{'priority':'high'}),_0x72fa63['model']['document']['registerPostFixer'](()=>{let _0x2a6f6d=!0x1;const _0x371afa=Array['from'](_0x72fa63['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ef8a2,data:_0x4ec282}of _0x371afa){const {group:_0x26a8f2,type:_0x4eb0f1,id:_0x48dcd7}=_0x4b81cb['_splitMarkerName'](_0x2ef8a2);if('suggestion'!=_0x26a8f2||'deletion'!=_0x4eb0f1||_0x4ec282['oldRange'])continue;if(!_0x4b81cb['hasSuggestion'](_0x48dcd7))continue;const _0x45d0ea=_0x4b81cb['getSuggestion'](_0x48dcd7)['getRanges'](),_0x2d3583=_0x72fa63['plugins']['get']('Users')['me'];for(const _0x2bc128 of _0x4b81cb['getSuggestions']()){if(!_0x2bc128['isInContent']||_0x2bc128['author']!=_0x2d3583)continue;if('formatBlock'!=_0x2bc128['type']||'tablePasteCell'!=_0x2bc128['subType'])continue;if(_0x2bc128['getRanges']()['every'](_0x3a8ef4=>_0x45d0ea['some'](_0x491ff6=>_0x491ff6['containsRange'](_0x3a8ef4,!0x0)))){for(const _0x38f2d4 of _0x2bc128['getAllAdjacentSuggestions']())_0x38f2d4['isInContent']&&(_0x38f2d4['discard'](),_0x2a6f6d=!0x0);}}}return _0x2a6f6d;}),_0x72fa63['model']['document']['registerPostFixer'](_0x1d34ac=>{const _0x127c3c=_0x72fa63['commands']['get']('redo');if(!_0x127c3c||!_0x127c3c['_createdBatches']['has'](_0x1d34ac['batch']))return!0x1;let _0x21223f=!0x1;const _0x2d7a2f=_0x72fa63['plugins']['get']('Users')['me'],_0x4c9212=_0x72fa63['model']['document']['differ']['getChanges'](),_0x724037=Array['from'](_0x72fa63['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5a280e,data:_0x107f7b})=>{const {group:_0x46f95f,subType:_0x1edb8f,authorId:_0x331888}=_0x4b81cb['_splitMarkerName'](_0x5a280e);return'suggestion'==_0x46f95f&&'tablePaste'==_0x1edb8f&&_0x331888==_0x2d7a2f['id']&&!_0x107f7b['oldRange'];});for(const _0x515460 of _0x4c9212){if('insert'!=_0x515460['type']||'tableCellSuggestion'!=_0x515460['name']||0x1!=_0x515460['length'])continue;const _0x211512=_0x1d34ac['createRange'](_0x515460['position'],_0x515460['position']['getShiftedBy'](0x1));if(!_0x724037['find'](({data:_0x2e7ada})=>_0x2e7ada['newRange']['isEqual'](_0x211512))){for(const {name:_0x5c1268,data:_0x443bd2}of _0x724037)if(_0x211512['containsRange'](_0x443bd2['newRange'])){_0x1d34ac['updateMarker'](_0x5c1268,{'range':_0x211512}),_0x21223f=!0x0;break;}}}return _0x21223f;}),_0x72fa63['model']['document']['registerPostFixer'](_0x206517=>{let _0x4c24eb=!0x1;const _0x392335=_0x72fa63['plugins']['get']('Users')['me'],_0x4afbe0=_0x4b81cb['getSuggestions']()['filter'](_0x2dc5f0=>_0x2dc5f0['isInContent']&&_0x2dc5f0['author']==_0x392335),_0x1f29d8=new Set(),_0x4d152f=new Set();for(const _0x427e2e of _0x4afbe0)if('tablePaste'==_0x427e2e['subType'])for(const _0x17b822 of _0x427e2e['getMarkers']()){const _0x3912b1=_0x17b822['getRange']()['getContainedElement']();if(_0x3912b1){if(_0x3912b1['is']('element','tableCellSuggestion')&&Pe(_0x3912b1)){_0x427e2e['removeMarker'](_0x17b822['name']),_0x1f29d8['add'](_0x3912b1),_0x4c24eb=!0x0;const _0x23e911=_0x3912b1['nextSibling'],_0x14217a=_0x3912b1['previousSibling'],_0x47e219=_0x23e911&&_0x23e911['is']('element','tableCellSuggestion'),_0x53e07f=_0x14217a&&_0x14217a['is']('element','tableCellSuggestion');_0x47e219&&!_0x1f29d8['has'](_0x23e911)&&_0x4d152f['add'](_0x23e911),_0x53e07f&&!_0x1f29d8['has'](_0x14217a)&&_0x4d152f['add'](_0x14217a);}else _0x3912b1['is']('element','paragraph')&&_0x3912b1['isEmpty']&&(_0x427e2e['removeMarker'](_0x17b822['name']),_0x4c24eb=!0x0);}}else{if('tablePasteCell'==_0x427e2e['subType']){if(!_0x427e2e['attributes']||!_0x427e2e['attributes']['tablePasteChainId'])continue;const _0x55187e=_0x427e2e['attributes']['markerAttributes'];if(_0x55187e&&Object['keys'](_0x55187e)['length'])continue;const _0x3209fb=_0x427e2e['attributes']['tablePasteChainId'];let _0x1ee547=!0x0,_0x1ec43b=!0x0;for(const _0x276ce0 of _0x4afbe0)if(_0x276ce0['subType']&&_0x276ce0['subType']['startsWith']('tablePaste')){if(!_0x276ce0['attributes']['tablePasteChainId']){_0x1ec43b=!0x1;break;}if(_0x276ce0['id']!=_0x427e2e['id']&&_0x276ce0['attributes']['tablePasteChainId']==_0x3209fb){_0x1ee547=!0x1;break;}}_0x1ec43b&&_0x1ee547&&(_0x427e2e['removeMarkers'](),_0x4c24eb=!0x0);}}for(const _0x2139b7 of _0x1f29d8)_0x206517['remove'](_0x2139b7);for(const _0x21248b of _0x4d152f)_0x206517['unwrap'](_0x21248b);return _0x4c24eb;}),_0x72fa63['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3c68d2,_0x2b7fc1)=>_0x375730(_0x3c68d2),'converterPriority':'high'}),_0x72fa63['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1ba2ac,_0x2afa57)=>_0x2afa57['options']['showSuggestionHighlights']?_0x375730(_0x1ba2ac,!0x1):null,'converterPriority':'high'});const _0x18f77e=_0x72fa63['editing']['view'];this['listenTo'](_0x18f77e['document'],'clipboardOutput',(_0x46e9a5,_0x56cb4c)=>{const _0x11e071=[];for(const _0x30a032 of _0x18f77e['createRangeIn'](_0x56cb4c['content'])['getItems']())_0x30a032['is']('element','suggestion-td')&&_0x11e071['push'](_0x30a032);_0x18f77e['change'](_0x49570f=>{for(const _0x49a531 of _0x11e071)_0x49570f['move'](_0x49570f['createRangeIn'](_0x49a531),_0x49570f['createPositionBefore'](_0x49a531)),_0x49570f['remove'](_0x49a531);});});}}function Pe(_0x2a524e){if(_0x2a524e['isEmpty'])return!0x0;const _0x5b25f2=_0x2a524e['getChild'](0x0);return _0x5b25f2['is']('element','paragraph')&&_0x5b25f2['isEmpty'];}function he(_0x161887,_0x502856={},_0x2c9e8e){for(const {isAnchor:_0x3a3fd4,cellHeight:_0x23be1b,cellWidth:_0x4032ba}of _0x2c9e8e['createTableWalker'](_0x161887,{'includeAllSlots':!0x0,..._0x502856}))if(!_0x3a3fd4||0x1!=_0x23be1b||0x1!=_0x4032ba)return!0x1;return!0x0;}class vt extends _0x43febe{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x278688=this['editor']['plugins']['get']('TrackChangesEditing');_0x278688['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x278688['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x278688['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x278688['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x278688['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x278688['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x298f72,_0xa42965){const _0x718bc6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x123b6e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1e1d63=_0xa42965['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1d5e6a=_0x123b6e['getColumnGroupElement'](_0x1e1d63);let _0x2c6ae3=_0x1d5e6a?_0x123b6e['getTableColumnsWidths'](_0x1d5e6a):null,_0x1ce359=_0x1e1d63['getAttribute']('tableWidth')||null;const _0x55113d=_0xa42965['tableWidth']||_0x1ce359,_0x3a0dbb=_0xa42965['columnWidths']||_0x2c6ae3,_0x2ae166=this['editor']['plugins']['get']('Users')['me'];for(const _0x5216e1 of _0x718bc6['getSuggestions']()){const _0x4eb341=_0x5216e1['getContainedElement']();if('resizeTable'===_0x5216e1['subType']&&_0x4eb341===_0x1e1d63){_0x5216e1['author']!==_0x2ae166&&_0x5216e1['discard']();const _0x3ace82=_0x5216e1['data']['commandParams'];_0x1ce359=_0x3ace82[0x0]['tableWidth'],_0x2c6ae3=_0x3ace82[0x0]['columnWidths'];break;}}_0x298f72({'table':_0x1e1d63,'tableWidth':_0x55113d,'columnWidths':_0x3a0dbb}),_0x718bc6['markBlockFormat'](_0x1e1d63,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1ce359,'columnWidths':_0x2c6ae3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x140e41){if('formatBlock'!=_0x140e41['type']&&'formatInline'!=_0x140e41['type'])return;const {data:_0x706ab}=_0x140e41;if(_0x706ab&&'resizeTable'===_0x706ab['formatGroupId']){const _0x9f8f9d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x9f8f9d)};}}}class _t extends _0x43febe{['afterInit'](){const _0x5612cb=this['editor'];_0x5612cb['plugins']['has']('Template')&&_0x5612cb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x43febe{['afterInit'](){const _0x1137fc=this['editor'];if(!_0x1137fc['commands']['get']('insertTableOfContents'))return;_0x1137fc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x37f8d6=_0x1137fc['plugins']['get']('TrackChangesEditing'),_0x3caabe=_0x1137fc['locale'];_0x37f8d6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x177391=>o(_0x3caabe,'ELEMENT_TABLE_OF_CONTENTS',_0x177391));}}class Dt extends _0x43febe{['afterInit'](){const _0x1c4dc5=this['editor'];if(!_0x1c4dc5['plugins']['has']('Title'))return;const _0x4e8f8d=_0x1c4dc5['plugins']['get']('TrackChangesEditing');_0x4e8f8d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1c4dc5['locale'],'ELEMENT_TITLE')),_0x1c4dc5['model']['document']['registerPostFixer'](_0x369863=>{let _0x55efd0=!0x1;const _0x5321b1=Array['from'](_0x1c4dc5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x312976,data:_0x45195f}of _0x5321b1){const {group:_0x194ace}=_0x4e8f8d['_splitMarkerName'](_0x312976);if('suggestion'!==_0x194ace||!_0x45195f['newRange'])continue;const _0x2daa43=_0x45195f['newRange'],_0x2bc6c0=_0x2daa43['end']['nodeBefore'];if(!_0x2bc6c0||!_0x2bc6c0['is']('element','title-content'))continue;if(!_0x2daa43['start']['isTouching'](_0x2daa43['end']))continue;const _0x1bddeb=_0x1c4dc5['model']['schema']['getNearestSelectionRange'](_0x2daa43['end'],'forward');if(_0x1bddeb&&_0x1bddeb['isCollapsed']){const _0x35b04e=_0x369863['createRange'](_0x2daa43['start'],_0x1bddeb['start']);_0x35b04e['isEqual'](_0x2daa43)||(_0x369863['updateMarker'](_0x312976,{'range':_0x35b04e}),_0x55efd0=!0x0);}_0x55efd0||(_0x369863['removeMarker'](_0x312976),_0x55efd0=!0x0);}return _0x55efd0;});}}class Nt extends _0x43febe{['afterInit'](){const _0x8a298a=this['editor'],_0x32ea3e=_0x8a298a['plugins']['get']('TrackChangesEditing');_0x8a298a['plugins']['has']('UndoEditing')&&(_0x32ea3e['enableCommand']('undo'),_0x32ea3e['enableCommand']('redo'));}}class Mt extends _0x43febe{static get['requires'](){return[jt];}['afterInit'](){const _0x57a029=this['editor'];if(!_0x57a029['plugins']['has']('TableCaptionEditing'))return;_0x57a029['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x43febe{['tableProperties'];['tableCellProperties'];constructor(_0x6098b0){super(_0x6098b0),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 _0x25b5f3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2c74da of this['tableProperties'])_0x25b5f3['enableCommand'](_0x2c74da,(_0x136335,_0x13fc1d)=>{const _0x304c8c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2c74da,[_0x304c8c],this['tableProperties'],'tableProperties',_0x136335,_0x13fc1d);});_0x25b5f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x25b5f3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x25b5f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xd14271,_0xbf959b)=>this['handleDiscardAction'](this['tableProperties'],_0xd14271,_0xbf959b)),_0x25b5f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x235821 of this['tableCellProperties'])_0x25b5f3['enableCommand'](_0x235821,(_0x1d15ed,_0x1f32d3)=>{const _0x58e490=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x235821,_0x58e490,this['tableCellProperties'],'tableCellProperties',_0x1d15ed,_0x1f32d3);});_0x25b5f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x25b5f3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x25b5f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x19cf0b,_0x557ebc)=>this['handleDiscardAction'](this['tableCellProperties'],_0x19cf0b,_0x557ebc)),_0x25b5f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x25b5f3['descriptionFactory']['registerDescriptionCallback'](_0xa59264=>this['handleSuggestionDescription'](_0xa59264));}['_handlePropertyChange'](_0x40d111,_0x130583,_0x324bc5,_0x5560e1,_0x582f28,_0x11d81b){const _0x5103c2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x11d81b['batch'],()=>{for(const _0x159251 of _0x130583){if(this['_getSuggestion'](_0x159251,_0x5560e1))_0x582f28(_0x11d81b);else{const _0x39178d={};for(const _0x46bca4 of _0x324bc5){const _0x302714=_0x159251['getAttribute'](_0x46bca4);void 0x0!==_0x302714&&(_0x39178d[_0x46bca4]=_0x302714);}_0x582f28(_0x11d81b),_0x5103c2['markBlockFormat'](_0x159251,{'commandParams':[_0x39178d]},[],_0x5560e1);}}});}['handleDiscardAction'](_0x1847a2,_0x50de62,_0xd20cc8){const _0x553497=_0x50de62[0x0]['start']['nodeAfter'],_0x3ed8e1=_0xd20cc8['commandParams'][0x0];this['editor']['model']['change'](_0x1e5744=>{for(const _0x263ff2 of _0x1847a2)void 0x0!==_0x3ed8e1[_0x263ff2]?_0x1e5744['setAttribute'](_0x263ff2,_0x3ed8e1[_0x263ff2],_0x553497):_0x1e5744['removeAttribute'](_0x263ff2,_0x553497);});}['handleSuggestionDescription'](_0x1e6a75){if(_0x1e6a75['data'])switch(_0x1e6a75['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'](_0x5a255d,_0x14feed){const _0x32242a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4b0623 of _0x32242a['getSuggestions']({'skipNotAttached':!0x0})){const _0xd3140a=_0x4b0623['getContainedElement']();if(_0x4b0623['subType']===_0x14feed&&_0xd3140a===_0x5a255d)return _0x4b0623;}return null;}}const m='$elementName';class p extends _0x43febe{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3e6dce,_0x41abfb,E,V,U,O,G,F,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,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}constructor(_0x279fc7){function _0x119acd(_0x164f93){return _0x164f93['map'](_0x5452e5=>String['fromCharCode'](_0x5452e5))['join']('');}super(_0x279fc7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x10a493,_0x5348bc,_0x46eee1,_0x5478e1)=>{this['_model']['change'](()=>{for(const _0x290124 of[..._0x5478e1,..._0x46eee1])this['_model']['markers']['has'](_0x290124)&&_0x279fc7['editing']['reconvertMarker'](_0x290124);});}),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']=_0x279fc7['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(),_0x279fc7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x279fc7['config']['get']('trackChanges.trackFormatChanges'),_0x279fc7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x279fc7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x279fc7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x119acd([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x119acd([0x34,0x30,0x34,0x38,0x31,0x30,0x35,0x32]);}['init'](){const _0x8062b9=this['editor'],_0x3f1962=(_0x377337,_0x12fa82)=>{if('attribute'!=_0x377337)return'ck-suggestion-marker-'+_0x377337;const _0x131ca6=_0x12fa82['split']('|')[0x0];return this['_isBlockAttribute'](_0x131ca6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x8062b9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x302846=>{const {id:_0xf1dd74,type:_0x448062,subType:_0x5be07c}=this['_splitMarkerName'](_0x302846['markerName']),_0x2898d8=['ck-suggestion-marker',_0x3f1962(_0x448062,_0x5be07c)];let _0x737c61=0xbb8;return this['activeMarkers']['includes'](_0x302846['markerName'])&&(_0x2898d8['push']('ck-suggestion-marker--active'),_0x737c61=0xbc2),'deletion'==_0x448062&&(_0x737c61+=0x5),{'classes':_0x2898d8,'attributes':{'data-suggestion':_0xf1dd74},'priority':_0x737c61};}}),_0x8062b9['conversion']['for']('dataDowncast')['add'](_0x2b240f=>{_0x2b240f['on']('addMarker:suggestion',(_0x517a65,_0x2a4143,_0x2f0155)=>{if(!_0x2f0155['options']['showSuggestionHighlights'])return;const _0x530fe4=_0x2a4143['item'];if(!_0x530fe4)return;const _0x3858be=_0x2f0155['mapper']['toViewElement'](_0x530fe4);_0x8062b9['model']['schema']['isObject'](_0x530fe4)&&_0x3858be&&!_0x3858be['getCustomProperty']('widget')&&_0x3858be['is']('containerElement')&&_0x4369fc(_0x3858be,_0x2f0155['writer']);},{'priority':'high'});}),_0x8062b9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3407cf,_0x26c500)=>{if(!_0x26c500['options']['showSuggestionHighlights'])return null;const {type:_0x23783c,subType:_0xd28f55}=this['_splitMarkerName'](_0x3407cf['markerName']);return{'classes':['ck-suggestion-marker',_0x3f1962(_0x23783c,_0xd28f55)],'priority':0xbb8};}});const _0x4353a6=({showActiveMarkers:_0x41258e=!0x0,isAttributeSuggestion:_0x2637d0=!0x1}={})=>(_0x5615a4,_0x44d185,_0x5ebdcc)=>{if(!_0x44d185['item'])return;const {id:_0x268674}=this['_splitMarkerName'](_0x44d185['markerName']);if(_0x2637d0){const _0x9716ba=this['_suggestions']['get'](_0x268674),_0x2c9b03=this['_getAttributeKey'](_0x9716ba);if(!this['_isBlockAttribute'](_0x2c9b03))return;}if(_0x44d185['item']['is']('selection'))return void _0x5ebdcc['consumable']['consume'](_0x44d185['item'],_0x5615a4['name']);const _0x9c193=_0x5ebdcc['mapper']['toViewElement'](_0x44d185['item']);if(_0x44d185['item']['is']('element')&&_0x8062b9['model']['schema']['isBlock'](_0x44d185['item'])&&!_0x9c193['getCustomProperty']('addHighlight')){_0x5ebdcc['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x9c193),_0x5ebdcc['writer']['setAttribute']('data-suggestion',_0x268674,_0x9c193),_0x5ebdcc['mapper']['bindElementToMarker'](_0x9c193,_0x44d185['markerName']),_0x41258e&&(this['activeMarkers']['includes'](_0x44d185['markerName'])?_0x5ebdcc['writer']['addClass']('ck-suggestion-marker--active',_0x9c193):_0x5ebdcc['writer']['removeClass']('ck-suggestion-marker--active',_0x9c193));for(const _0x5a7b3c of _0x8062b9['model']['createRangeIn'](_0x44d185['item'])['getItems']())_0x5ebdcc['consumable']['consume'](_0x5a7b3c,_0x5615a4['name']);_0x5ebdcc['consumable']['consume'](_0x44d185['item'],_0x5615a4['name']);}};_0x8062b9['conversion']['for']('dataDowncast')['add'](_0x3158c1=>{_0x3158c1['on']('addMarker:suggestion:formatBlock',(_0x514f02,_0x259d3c,_0x18b6ad)=>{_0x18b6ad['options']['showSuggestionHighlights']&&_0x4353a6({'showActiveMarkers':!0x1})(_0x514f02,_0x259d3c,_0x18b6ad);},{'priority':'highest'});}),_0x8062b9['conversion']['for']('dataDowncast')['add'](_0x239460=>{_0x239460['on']('addMarker:suggestion:attribute',(_0x900f1a,_0x4b647e,_0x168cd8)=>{_0x168cd8['options']['showSuggestionHighlights']&&_0x4353a6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x900f1a,_0x4b647e,_0x168cd8);},{'priority':'highest'});}),_0x8062b9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x33e2da,_0x46479b)=>_0x46479b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x33e2da['substr'](0xb)}}),_0x8062b9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4c4f69,{writer:_0x359378})=>{let _0x463f70='suggestion:'+_0x4c4f69['getAttribute']('suggestion-type')+':'+_0x4c4f69['getAttribute']('id');return _0x4c4f69['getAttribute']('marker-count')&&(_0x463f70+=':'+_0x4c4f69['getAttribute']('marker-count')),_0x359378['createElement']('$marker',{'data-name':_0x463f70});}}),_0x8062b9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x8062b9['conversion']['for']('editingDowncast')['add'](_0x33aba7=>{_0x33aba7['on']('addMarker:suggestion:formatBlock',_0x4353a6(),{'priority':'high'});}),_0x8062b9['conversion']['for']('editingDowncast')['add'](_0x14101a=>{_0x14101a['on']('addMarker:suggestion:attribute',_0x4353a6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x8062b9['conversion']['for']('editingDowncast')['add'](_0x41f1eb=>{_0x41f1eb['on']('removeMarker:suggestion:formatBlock',(_0x263ad1,_0x328b46,_0x5433ec)=>{const _0x43aef1=_0x5433ec['mapper']['markerNameToElements'](_0x328b46['markerName']);if(_0x43aef1){for(const _0x52fde4 of _0x43aef1)_0x52fde4['getCustomProperty']('addHighlight')||(_0x5433ec['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x52fde4),_0x5433ec['writer']['removeAttribute']('data-suggestion',_0x52fde4),_0x5433ec['mapper']['unbindElementFromMarkerName'](_0x52fde4,_0x328b46['markerName']));}},{'priority':'high'});}),_0x8062b9['conversion']['for']('editingDowncast')['add'](_0x349eba=>{_0x349eba['on']('removeMarker:suggestion:attribute',(_0x38b9bd,_0x1ab3fd,_0x489b64)=>{const _0x4626e8=_0x489b64['mapper']['markerNameToElements'](_0x1ab3fd['markerName']);if(!_0x4626e8)return;const {id:_0x3ff1cc}=this['_splitMarkerName'](_0x1ab3fd['markerName']),_0x1bd3c8=this['_suggestions']['get'](_0x3ff1cc),_0x5914b8=this['_getAttributeKey'](_0x1bd3c8);if(this['_isBlockAttribute'](_0x5914b8)){for(const _0x5105f4 of _0x4626e8)_0x5105f4['getCustomProperty']('addHighlight')||(_0x489b64['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5105f4),_0x489b64['writer']['removeAttribute']('data-suggestion',_0x5105f4),_0x489b64['mapper']['unbindElementFromMarkerName'](_0x5105f4,_0x1ab3fd['markerName']));}},{'priority':'high'});}),_0x8062b9['model']['document']['registerPostFixer'](_0x314cbc=>{let _0x2108cf=!0x1;const _0x17e1a7=Array['from'](_0x8062b9['model']['document']['differ']['getChangedMarkers']()),_0x5ebda6=new Set();for(const {name:_0x5c16c6,data:_0x55c053}of _0x17e1a7){const {group:_0x4b6943,type:_0x54eab3,subType:_0x59ba4f,id:_0x1d9cbe}=this['_splitMarkerName'](_0x5c16c6);if('suggestion'!==_0x4b6943)continue;const _0x3bc67a=this['_suggestions']['get'](_0x1d9cbe);if(null!=_0x55c053['newRange']){'formatInline'==_0x54eab3&&(_0x2108cf=_0x2108cf||Et(_0x55c053['newRange'],_0x5c16c6,_0x314cbc,_0x8062b9['model']['schema']));const _0x113262='attribute'==_0x54eab3&&this['_isBlockAttribute'](_0x59ba4f['split']('|')[0x0]);if(_0x55c053['newRange']['isCollapsed']||'$graveyard'==_0x55c053['newRange']['root']['rootName']||'formatBlock'==_0x54eab3&&!Ut(_0x55c053['newRange'])||_0x113262&&!Ut(_0x55c053['newRange'])||'deletion'==_0x54eab3&&!(!Tt(_0xb7ae06=_0x55c053['newRange'])&&!function(_0xb0641d){return _0xb0641d['start']['parent']==_0xb0641d['end']['nodeBefore']&&_0xb0641d['start']['isAtEnd'];}(_0xb7ae06)))_0x314cbc['removeMarker'](_0x5c16c6),_0x2108cf=!0x0;else{if(!_0x3bc67a||!_0x3bc67a['isInContent'])continue;_0x5ebda6['add'](_0x3bc67a);}}}var _0xb7ae06;return _0x5ebda6['size']>0x0&&(_0x2108cf=!!this['_joinWithAdjacentSuggestions'](_0x5ebda6)||_0x2108cf),_0x2108cf;}),_0x8062b9['model']['document']['registerPostFixer'](_0x32ccc3=>{let _0x508502=!0x1;for(const _0x1a8099 of _0x8062b9['model']['document']['differ']['getChanges']())if('insert'==_0x1a8099['type'])for(const _0x52ca55 of this['_suggestions']['values']()){if(_0x52ca55['isMultiRange']||!_0x52ca55['isInContent'])continue;const _0x3aac33='formatBlock'==_0x52ca55['type'],_0x3013ff=this['_getAttributeKey'](_0x52ca55),_0x96790c=_0x3013ff&&this['_isBlockAttribute'](_0x3013ff);if(!_0x3aac33&&!_0x96790c)continue;const _0x14271f=_0x52ca55['getFirstRange']();if(_0x14271f['start']['parent']!=_0x14271f['end']['parent']&&!_0x14271f['end']['isAtEnd']){const _0x16e95e=_0x8062b9['model']['createPositionAt'](_0x14271f['start']['nodeAfter'],'end'),_0x47d9f6=_0x8062b9['model']['createRange'](_0x14271f['start'],_0x16e95e);_0x32ccc3['updateMarker'](_0x52ca55['getFirstMarker'](),{'range':_0x47d9f6}),_0x508502=!0x0;}}return _0x508502;}),_0x8062b9['model']['document']['registerPostFixer'](_0x3678bb=>this['_processAttributeChanges'](_0x3678bb)),_0x8062b9['model']['document']['registerPostFixer'](_0x4750f3=>!_0x4750f3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4750f3)),_0x8062b9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x8062b9['model']['document']['on']('change:data',(_0x1885d2,_0x3a2066)=>{if(!_0x3a2066['isLocal']||_0x3a2066['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x21f475=_0x8062b9['model']['document']['differ']['getChanges']();if(0x0==_0x21f475['length'])return;const _0x411ad4=[],_0x51d96e=_0x21f475['filter'](_0x34c645=>'attribute'==_0x34c645['type']),_0x56ba24=_0x21f475['filter'](_0x5a57c6=>'insert'==_0x5a57c6['type']&&'$text'!=_0x5a57c6['name']),_0x52561d=_0x21f475['filter'](_0x3c2729=>'remove'==_0x3c2729['type']&&'$text'!=_0x3c2729['name']);for(const _0x2738c1 of _0x51d96e)this['_isRegisteredAttribute'](_0x2738c1['attributeKey'])&&_0x411ad4['push']({'key':_0x2738c1['attributeKey'],'newValue':_0x2738c1['attributeNewValue'],'oldValue':_0x2738c1['attributeOldValue'],'range':Ot(_0x2738c1['range'],_0x8062b9['model'])});for(const _0x36369b of _0x56ba24){const _0x7c3139=_0x52561d['find'](_0x17d268=>_0x17d268['_element']===_0x36369b['_element']);if(_0x7c3139){const _0x51c86b=Ft(_0x36369b['position']['nodeAfter'],_0x8062b9['model']);_0x7c3139['name']!==_0x36369b['name']&&_0x411ad4['push']({'key':m,'newValue':_0x36369b['name'],'oldValue':_0x7c3139['name'],'range':_0x51c86b});for(const [_0x3daf3e,_0xbc42bb]of _0x7c3139['attributes']){if(!this['_isRegisteredAttribute'](_0x3daf3e))continue;const _0x40baec=_0x36369b['attributes']['get'](_0x3daf3e);_0xbc42bb!==_0x40baec&&_0x411ad4['push']({'key':_0x3daf3e,'newValue':_0x40baec,'oldValue':_0xbc42bb,'range':_0x51c86b});}for(const [_0xcb1586,_0x39f4de]of _0x36369b['attributes'])this['_isRegisteredAttribute'](_0xcb1586)&&(_0x7c3139['attributes']['has'](_0xcb1586)||_0x411ad4['push']({'key':_0xcb1586,'newValue':_0x39f4de,'oldValue':null,'range':_0x51c86b}));}}0x0!=_0x411ad4['length']&&_0x8062b9['model']['enqueueChange'](_0x3a2066,_0x41dc9a=>{const _0x58b2c2=_0x3f2578();for(const {range:_0x49b13a,key:_0x2aea43,oldValue:_0x3987f6,newValue:_0x2828df}of _0x411ad4)this['markAttributeChange'](_0x49b13a,_0x2aea43,_0x3987f6,_0x2828df,{'groupId':_0x58b2c2});this['_reduceExistingSuggestions'](_0x41dc9a,_0x411ad4);});},{'priority':'lowest'}),_0x8062b9['model']['markers']['on']('update:suggestion',(_0x46253d,_0x4120ca,_0x419203)=>{if(null==_0x419203){const {id:_0x5b4e59}=this['_splitMarkerName'](_0x4120ca['name']),_0xca3108=this['_suggestions']['get'](_0x5b4e59);_0xca3108&&_0xca3108['addMarkerName'](_0x4120ca['name']);}}),_0x8062b9['model']['document']['on']('change:data',()=>{const _0x35a1ce=Array['from'](_0x8062b9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x180b64=>'suggestion'===this['_splitMarkerName'](_0x180b64['name'])['group']);if(0x0===_0x35a1ce['length'])return;_0x35a1ce['sort']((_0xfdc7ca,_0x8d909a)=>{const _0x4457d9=_0xfdc7ca['data']['oldRange'],_0x2d3e41=_0x8d909a['data']['oldRange'];return null===_0x4457d9&&null===_0x2d3e41?0x0:null===_0x4457d9&&null!==_0x2d3e41?-0x1:null!==_0x4457d9&&null===_0x2d3e41?0x1:_0x4457d9['start']['isBefore'](_0x2d3e41['start'])?-0x1:0x1;});const _0x8e14d2=new Set(),_0x416d02=new Set();for(const {name:_0x536da1,data:_0x5d1f9d}of _0x35a1ce){const {id:_0xb80dbf}=this['_splitMarkerName'](_0x536da1);if(null===_0x5d1f9d['oldRange']){const _0xcc5965=this['_handleNewSuggestionMarker'](_0x536da1);_0x416d02['add'](_0xcc5965);}else{const _0xc5a974=this['_suggestions']['get'](_0xb80dbf);null!==_0x5d1f9d['newRange']||_0xc5a974['isInContent']?(_0x8e14d2['add'](_0xc5a974['head']),_0x416d02['add'](_0xc5a974)):this['_removeSuggestion'](_0xc5a974);}}_0x416d02['size']>0x0&&this['_refreshSuggestionsChain'](_0x416d02);for(const _0x10e4ca of _0x8e14d2)this['fire']('suggestionChanged',_0x10e4ca);}),_0x8062b9['model']['on']('applyOperation',(_0x36ecda,_0x44a6a1)=>{const _0x2d3f37=_0x44a6a1[0x0];if(!this['_suggestions']['size'])return;if(!_0x2d3f37['isDocumentOperation'])return;if(_0x2d3f37['batch']['isUndo']||!_0x2d3f37['batch']['isLocal'])return;let _0x92f09a,_0x26c52a;switch(_0x2d3f37['type']){case'insert':_0x92f09a=_0x8062b9['model']['createPositionAt'](_0x2d3f37['position']),_0x26c52a=_0x92f09a['getShiftedBy'](_0x2d3f37['howMany']);break;case'split':_0x92f09a=_0x8062b9['model']['createPositionAt'](_0x2d3f37['splitPosition']),_0x26c52a=_0x8062b9['model']['createPositionAt'](_0x2d3f37['moveTargetPosition']);break;case'move':_0x92f09a=_0x8062b9['model']['createPositionAt'](_0x2d3f37['targetPosition']),_0x26c52a=_0x92f09a['getShiftedBy'](_0x2d3f37['howMany']);break;default:return;}const _0x4db09d=_0x8062b9['model']['createRange'](_0x92f09a,_0x26c52a);_0x8062b9['model']['change'](()=>{for(const {suggestion:_0x2830a7,meta:_0x497bd9}of this['_findSuggestions'](_0x4db09d)){if(_0x2830a7['isMultiRange'])continue;if('formatInline'==_0x2830a7['type'])continue;const _0x5e53de=this['_getAttributeKey'](_0x2830a7);if(_0x5e53de&&this['_isBlockAttribute'](_0x5e53de)&&'split'!=_0x2d3f37['type'])continue;const _0x133ebb=_0x2830a7['data']&&_0x2830a7['data']['multipleBlocks'];('formatBlock'!=_0x2830a7['type']||'split'==_0x2d3f37['type']&&!_0x133ebb)&&(_0x497bd9['containsRangeInObject']||'insertion'==_0x2830a7['type']&&_0x497bd9['isOwn']||_0x2830a7['getFirstRange']()['containsRange'](_0x4db09d)&&this['_breakSuggestionMarker'](_0x2830a7,_0x92f09a,_0x26c52a));}});},{'priority':'lowest'}),_0x8062b9['model']['on']('deleteContent',(_0x27f6e3,_0x251652)=>{const _0x4ac530=_0x251652[0x0],_0x5eb92f=_0x251652[0x1];if(_0x5eb92f&&_0x5eb92f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4ac530['isCollapsed'])return;const _0x2b0af3=_0x8062b9['model']['schema'],{start:_0x5f2122,end:_0x391eb2}=_0x4ac530['getFirstRange'](),_0x5663d0=_0x5f2122['nodeAfter']&&_0x2b0af3['isLimit'](_0x5f2122['nodeAfter'])?null:_0x2b0af3['getNearestSelectionRange'](_0x5f2122,'forward'),_0x75468b=_0x391eb2['nodeBefore']&&_0x2b0af3['isLimit'](_0x391eb2['nodeBefore'])?null:_0x2b0af3['getNearestSelectionRange'](_0x391eb2,'backward'),_0x95296d=_0x8062b9['model']['createRange'](_0x5663d0?_0x5663d0['start']:_0x5f2122,_0x75468b?_0x75468b['end']:_0x391eb2);_0x8062b9['model']['change'](_0x2b035c=>{this['markDeletion'](_0x95296d);const _0x150962=_0x8062b9['model']['schema']['getNearestSelectionRange'](_0x95296d['start']);_0x4ac530['is']('documentSelection')?_0x2b035c['setSelection'](_0x150962):_0x4ac530['setTo'](_0x150962);}),_0x27f6e3['stop']();},{'priority':_0x4f7b70['normal']+0xa}),_0x8062b9['model']['on']('insertContent',(_0x3b90d2,_0x13adf2)=>{const _0x46545e=_0x13adf2[_0x13adf2['length']-0x1];_0x46545e&&_0x46545e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x8062b9['model']['change'](()=>{let _0x14f7f2=_0x8062b9['model']['insertContent'](_0x13adf2[0x0],_0x13adf2[0x1],_0x13adf2[0x2],{'forceDefaultExecution':!0x0});if(!_0x14f7f2)return;_0x3b90d2['return']=_0x14f7f2['clone']();const _0x43143b=_0x14f7f2['end']['nodeBefore'],_0x1da5c5=_0x8062b9['model']['schema'];_0x43143b&&_0x1da5c5['isBlock'](_0x43143b)&&!_0x1da5c5['isObject'](_0x43143b)&&(_0x14f7f2=_0x8062b9['model']['createRange'](_0x14f7f2['start'],_0x8062b9['model']['createPositionAt'](_0x43143b,'end'))),this['markInsertion'](_0x14f7f2);}),_0x3b90d2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x594df7=new $(_0x8062b9,this['_suggestions']);_0x8062b9['commands']['add']('acceptSuggestion',_0x594df7),this['enableCommand']('acceptSuggestion');const _0x162dfe=new B(_0x8062b9,this['_suggestions']);_0x8062b9['commands']['add']('discardSuggestion',_0x162dfe),this['enableCommand']('discardSuggestion'),_0x8062b9['commands']['add']('acceptAllSuggestions',new x(_0x8062b9,_0x594df7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x8062b9['commands']['add']('discardAllSuggestions',new x(_0x8062b9,_0x162dfe,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x8062b9['commands']['add']('acceptSelectedSuggestions',new R(_0x8062b9,_0x594df7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x8062b9['commands']['add']('discardSelectedSuggestions',new R(_0x8062b9,_0x162dfe,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2277ba=_0x8062b9['plugins']['get']('CommentsRepository');this['listenTo'](_0x2277ba,'addComment',(_0x2d06b3,{threadId:_0x4d695b})=>{const _0x2bcf79=this['_suggestions']['get'](_0x4d695b);_0x2bcf79&&_0x2bcf79['commentThread']&&0x1===_0x2bcf79['commentThread']['length']&&this['_updateSuggestionData'](_0x4d695b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2277ba,'removeComment',(_0xcf43c0,{threadId:_0x532e6d})=>{const _0x2f1b44=this['_suggestions']['get'](_0x532e6d);_0x2f1b44&&_0x2f1b44['commentThread']&&!_0x2f1b44['commentThread']['length']&&this['_updateSuggestionData'](_0x532e6d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2b3173){if(this['_adapter'])throw new _0x4dceac('track-changes-adapter-already-set',this);this['_adapter']=_0x2b3173;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2a8476=!0x1,toJSON:_0x48d68c=!0x1}={}){const _0x1c43f7=[];for(const _0x29a7b4 of this['_suggestions']['values']())_0x2a8476&&!_0x29a7b4['isInContent']||_0x1c43f7['push'](_0x29a7b4);return _0x48d68c?_0x1c43f7['map'](_0x5cd650=>_0x5cd650['toJSON']()):_0x1c43f7;}['getSuggestion'](_0x5d01d1){const _0x3b40bc=this['_suggestions']['get'](_0x5d01d1);if(!_0x3b40bc)throw new _0x4dceac('track-changes-suggestion-not-found',this);return _0x3b40bc;}['hasSuggestion'](_0x6603e4){return this['_suggestions']['has'](_0x6603e4);}['addSuggestionData'](_0x3c6128){const {authorId:_0x277340,id:_0x1b7350,attributes:_0x371703}=_0x3c6128,[_0x58b4b6,_0x2c309e]=_0x3c6128['type']['split'](':'),_0x2ff235=this['_suggestions']['get'](_0x1b7350)||this['_createSuggestion'](_0x58b4b6,_0x2c309e,_0x1b7350,_0x277340,_0x371703);if(this['_addThreadToSuggestion'](_0x2ff235),this['_checkSuggestionCorrectness'](_0x2ff235,_0x58b4b6,_0x2c309e||null,_0x277340),_0x2ff235['createdAt']=_0x3c6128['createdAt'],_0x2ff235['_isDataLoaded']=!0x0,_0x371703&&_0x371703['@external']){const _0x336185=_0x371703['@external'],_0x16e86c=this['_getExternalAuthor'](_0x336185['authorName']);_0x2ff235['authoredAt']=_0x336185['createdAt'],_0x2ff235['author']=_0x16e86c,_0x2ff235['isExternal']=!0x0;}else _0x2ff235['authoredAt']=_0x3c6128['createdAt'];switch(_0x3c6128['data']&&(_0x2ff235['data']=_0x3c6128['data']),_0x3c6128['attributes']&&(_0x2ff235['attributes']=_0x3c6128['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2ff235['_saved']=!0x0),this['_suggestionState']['get'](_0x2ff235)){case'notReady':this['_suggestionState']['set'](_0x2ff235,'dataReady');break;case'markerReady':_0x2ff235['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2ff235])),this['_refreshSuggestionsChain'](new Set([_0x2ff235])),this['_suggestionState']['set'](_0x2ff235,'ready'),this['fire']('suggestionLoaded',_0x2ff235)):this['_suggestionState']['set'](_0x2ff235,'removed');}return _0x2ff235;}['acceptSuggestion'](_0x31133a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x301c2c of _0x31133a['getAllAdjacentSuggestions']())_0x301c2c['accept']();});});}['discardSuggestion'](_0x286a0f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x171bdd of _0x286a0f['getAllAdjacentSuggestions']())_0x171bdd['discard']();});});}['enableCommand'](_0x38928e,_0x44af86){const _0x2521c6=this['editor']['commands']['get'](_0x38928e);if(!_0x2521c6)throw new _0x4dceac('track-changes-command-not-found',this,{'commandName':_0x38928e});if(this['_enabledCommands']['has'](_0x2521c6))throw new _0x4dceac('track-changes-enable-command-twice',this,{'commandName':_0x38928e});this['_enabledCommands']['add'](_0x2521c6),_0x44af86&&_0x2521c6['on']('execute',(_0x587530,_0x44af8f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x44af8f['length']>0x0&&_0x44af8f[_0x44af8f['length']-0x1]&&_0x44af8f[_0x44af8f['length']-0x1]['forceDefaultExecution']?_0x44af8f['pop']():(_0x587530['return']=_0x44af86((..._0x3f5b30)=>_0x2521c6['execute'](..._0x3f5b30,{'forceDefaultExecution':!0x0}),..._0x44af8f),_0x587530['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x550e19){let _0xb5498,_0x3dcfa3;const _0x54e34a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xb5498=_0x550e19();}catch(_0x24ad24){_0x3dcfa3=_0x24ad24;}return _0x54e34a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3dcfa3&&_0x4dceac['rethrowUnexpectedError'](_0x3dcfa3,this),_0xb5498;}['markInsertion'](_0x27b60f,_0x55dfd6=null,_0x2aee08={}){if(_0x27b60f['isCollapsed'])return null;const _0x4482e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1d08d3,meta:_0x2b5257}of this['_findSuggestions'](_0x27b60f,'insertion'))if(_0x2b5257['isOwn']){if(!_0x2b5257['isNextTo']){if(_0x2b5257['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x1d08d3,_0x2aee08))continue;return _0x1d08d3;}if(Lt(_0x1d08d3,_0x2aee08))return _0x1d08d3;this['_breakSuggestionMarker'](_0x1d08d3,_0x27b60f['start'],_0x27b60f['end']);break;}if(_0x55dfd6==_0x1d08d3['subType']&&Lt(_0x1d08d3,_0x2aee08)){const _0x829982=_0x1d08d3['getFirstRange']();return _0x829982['start']['isEqual'](_0x27b60f['end'])?this['_setSuggestionRange'](_0x1d08d3,this['_model']['createRange'](_0x27b60f['start'],_0x829982['end'])):this['_setSuggestionRange'](_0x1d08d3,this['_model']['createRange'](_0x829982['start'],_0x27b60f['end'])),_0x1d08d3;}}const _0x4dae37=_0x3f2578(),_0x3977f4=_0x4482e['id'],_0x437100=_0x55dfd6?'insertion:'+_0x55dfd6:'insertion',_0x3b62f7=this['_setSuggestionData']({'id':_0x4dae37,'type':_0x437100,'createdAt':new Date(),'authorId':_0x3977f4,'attributes':_0x2aee08});return this['_addSuggestionMarker'](_0x437100,_0x4dae37,_0x3977f4,_0x27b60f),_0x3b62f7;}['markMultiRangeInsertion'](_0x346a84,_0x54893a='multi',_0x5b51d2={}){const _0x443969=this['editor']['plugins']['get']('Users')['me'],_0x1e9c7b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x54893a,'join');for(const _0x3c7e3c of this['getSuggestions']())if(_0x3c7e3c['author']['id']==_0x443969['id']&&'insertion'==_0x3c7e3c['type']&&_0x3c7e3c['subType']==_0x54893a&&Lt(_0x3c7e3c,_0x5b51d2)&&(_0x1e9c7b(_0x3c7e3c['getRanges'](),_0x346a84)||_0x1e9c7b(_0x346a84,_0x3c7e3c['getRanges']()))){for(const _0x1fe54f of _0x346a84)_0x3c7e3c['addRange'](_0x1fe54f);return _0x3c7e3c;}for(const {suggestion:_0x3eef00,meta:_0x32733b}of this['_findSuggestions'](_0x346a84,'insertion')){if(!_0x32733b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x32733b['containsRangeInObject'])continue;if(!Lt(_0x3eef00,_0x5b51d2))continue;let _0x6ffd7c=!0x0;for(const _0x579461 of _0x3eef00['getRanges']())for(const _0x43f6e9 of _0x346a84)if(!_0x579461['containsRange'](_0x43f6e9)){_0x6ffd7c=!0x1;break;}if(_0x6ffd7c)return _0x3eef00;}const _0x249286=_0x3f2578(),_0x429748=_0x443969['id'],_0x510f5f='insertion:'+_0x54893a,_0x54e7b4=this['_setSuggestionData']({'id':_0x249286,'type':_0x510f5f,'createdAt':new Date(),'authorId':_0x429748,'attributes':_0x5b51d2});for(const _0x490146 of _0x346a84)this['_addSuggestionMarker'](_0x510f5f,_0x249286,_0x429748,_0x490146,u['getMultiRangeId']());return _0x54e7b4;}['markInlineFormat'](_0x5033fd,_0xb0e8c,_0x3e0dc2=null,_0x29a9d5={}){if(_0x3e0dc2=_0x3e0dc2||Vt(_0xb0e8c),_0x5033fd['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x38a724=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3e0dc2,'accept');return this['forceDefaultExecution'](()=>_0x38a724([_0x5033fd],_0xb0e8c,_0x29a9d5)),null;}const _0xfbd686=this['editor']['plugins']['get']('Users')['me'],_0x20dab9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x489052,meta:_0x49a2bb}of this['_findSuggestions'](_0x5033fd,'insertion'))_0x49a2bb['isOwn']&&!_0x49a2bb['isInsideObject']&&_0x20dab9['push'](..._0x489052['getRanges']());}const _0x200f17=function(_0x8158de,_0x40ec60){const _0x590bee=[];for(const _0x24f88b of _0x40ec60){const _0x109bbf=_0x8158de['getIntersection'](_0x24f88b);_0x109bbf&&_0x590bee['push'](_0x109bbf);}return _0x590bee;}(_0x5033fd,_0x20dab9),_0x509247=function(_0x497a4b,_0x5a50eb){const _0x2cbcbf=[_0x497a4b];for(const _0x1354bd of _0x5a50eb){let _0x3b9d60=0x0;for(;_0x3b9d60<_0x2cbcbf['length'];){const _0x53c87a=_0x2cbcbf[_0x3b9d60]['getDifference'](_0x1354bd);_0x2cbcbf['splice'](_0x3b9d60,0x1,..._0x53c87a),_0x3b9d60+=_0x53c87a['length'];}}return _0x2cbcbf;}(_0x5033fd,_0x20dab9);_0x200f17['length']&&this['_model']['change'](()=>{for(const _0x105a27 of _0x200f17){const _0xaeac73=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3e0dc2,'accept');this['forceDefaultExecution'](()=>_0xaeac73([_0x105a27],_0xb0e8c,_0x29a9d5));}});for(const _0x55c154 of _0x509247){let _0x26687d=null,_0x5d1d28=_0x55c154['start'],_0x513392=_0x55c154['end'];for(const {suggestion:_0x3376db,meta:_0x444ec8}of this['_findSuggestions'](_0x55c154,'formatInline')){if(!_0x444ec8['isOwn'])continue;if(_0x3376db['subType']!=_0x3e0dc2)continue;if(!Lt(_0x3376db,_0x29a9d5))continue;const _0x10f491=_0x3376db['getFirstRange']();if(_0x10f491['containsRange'](_0x55c154,!0x0))return null;_0x5d1d28=_0x5d1d28['isBefore'](_0x10f491['start'])?_0x5d1d28:_0x10f491['start'],_0x513392=_0x513392['isAfter'](_0x10f491['end'])?_0x513392:_0x10f491['end'],_0x26687d?_0x10f491['start']['isBefore'](_0x26687d['getFirstRange']()['start'])?(_0x26687d['removeMarkers'](),_0x26687d=_0x3376db):_0x3376db['removeMarkers']():_0x26687d=_0x3376db;}const _0x152194=this['_model']['createRange'](_0x5d1d28,_0x513392);if(_0x26687d)this['_setSuggestionRange'](_0x26687d,_0x152194);else{const _0x44cfbb=_0x3f2578(),_0x1fd4b7=_0xfbd686['id'];this['_setSuggestionData']({'id':_0x44cfbb,'type':'formatInline:'+_0x3e0dc2,'data':_0xb0e8c,'createdAt':new Date(),'authorId':_0x1fd4b7,'attributes':_0x29a9d5}),this['_addSuggestionMarker']('formatInline:'+_0x3e0dc2,_0x44cfbb,_0x1fd4b7,_0x152194);}}return null;}['markBlockFormat'](_0x4c245b,_0x5632ec,_0x2411cc=[],_0x1ae6d6=null,_0x373fc4={}){_0x5632ec['formatGroupId']||(_0x5632ec['formatGroupId']=_0x5632ec['commandName']),_0x5632ec['multipleBlocks']=_0x4c245b['is']('range'),_0x1ae6d6=_0x1ae6d6||Vt(_0x5632ec);const _0x18ab08=_0x2411cc['map'](_0x47e20b=>Ft(_0x47e20b,this['_model'])),_0x4a4cb8=_0x4c245b['is']('range')?_0x4c245b:Ft(_0x4c245b,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3fda34=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ae6d6,'accept');return this['forceDefaultExecution'](()=>_0x3fda34([_0x4a4cb8],_0x5632ec,_0x373fc4)),null;}_0x18ab08['push'](_0x4a4cb8);let _0x4efe73=!0x0;for(const _0x1f2e78 of _0x18ab08)if(!this['_rangeIsInLocalUserInsertion'](_0x1f2e78)){_0x4efe73=!0x1;break;}if(_0x4efe73&&'always'!==this['_trackFormatChanges']){const _0xb25a36=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ae6d6,'accept');return this['forceDefaultExecution'](()=>_0xb25a36([_0x4a4cb8],_0x5632ec,_0x373fc4)),null;}let _0x4d2f67=null,_0x3cd386=_0x4a4cb8['start'],_0x44f166=_0x4a4cb8['end'];for(const {suggestion:_0x308ed7,meta:_0x326dcc}of this['_findSuggestions'](_0x4a4cb8,'formatBlock')){if(!_0x326dcc['isOwn'])continue;if(_0x326dcc['isNextTo']||_0x326dcc['containsRangeInObject']||_0x326dcc['isInsideObject'])continue;if(_0x308ed7['data']['formatGroupId']!=_0x5632ec['formatGroupId'])continue;if(!Lt(_0x308ed7,_0x373fc4))continue;const _0x2495aa=_0x308ed7['getFirstRange']();if(_0x308ed7['subType']==_0x1ae6d6){if(_0x2495aa['containsRange'](_0x4a4cb8,!0x0))return null;_0x3cd386=_0x3cd386['isBefore'](_0x2495aa['start'])?_0x3cd386:_0x2495aa['start'],_0x44f166=_0x44f166['isAfter'](_0x2495aa['end'])?_0x44f166:_0x2495aa['end'],_0x4d2f67?_0x2495aa['start']['isBefore'](_0x4d2f67['getFirstRange']()['start'])?(_0x4d2f67['removeMarkers'](),_0x4d2f67=_0x308ed7):_0x308ed7['removeMarkers']():_0x4d2f67=_0x308ed7;}else{const _0x34eceb=_0x4a4cb8['getIntersection'](_0x2495aa);this['_cutOutSuggestionMarker'](_0x308ed7,_0x34eceb);}}const _0x375c5d=this['editor']['plugins']['get']('Users')['me'],_0x4ebacb=_0x3f2578(),_0x409186=_0x375c5d['id'];if(_0x4d2f67)return this['_setSuggestionRange'](_0x4d2f67,this['_model']['createRange'](_0x3cd386,_0x44f166)),_0x4d2f67;{const _0x5d0af8=this['_setSuggestionData']({'id':_0x4ebacb,'type':'formatBlock:'+_0x1ae6d6,'data':_0x5632ec,'createdAt':new Date(),'authorId':_0x409186,'attributes':_0x373fc4});return this['_addSuggestionMarker']('formatBlock:'+_0x1ae6d6,_0x4ebacb,_0x409186,this['_model']['createRange'](_0x3cd386,_0x44f166)),_0x5d0af8;}}['markMultiRangeBlockFormat'](_0x39b436,_0x349572,_0x1f6227=[],_0x4f8bfe=null,_0x3fbb72={}){_0x349572['formatGroupId']||(_0x349572['formatGroupId']=_0x349572['commandName']);const _0x398241=_0x39b436[0x0];_0x349572['multipleBlocks']=_0x398241['is']('range'),_0x4f8bfe=_0x4f8bfe||Vt(_0x349572);const _0x2c4cfb=_0x1f6227['map'](_0x48319f=>Ft(_0x48319f,this['_model'])),_0x56542a=_0x398241['is']('range')?_0x39b436:_0x39b436['map'](_0x2c451f=>Ft(_0x2c451f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x29b3b3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f8bfe,'accept');return this['forceDefaultExecution'](()=>_0x29b3b3(_0x56542a,_0x349572,_0x3fbb72)),null;}_0x2c4cfb['push'](..._0x56542a);let _0x4fae6f=!0x0;for(const _0x176cca of _0x2c4cfb)if(!this['_rangeIsInLocalUserInsertion'](_0x176cca)){_0x4fae6f=!0x1;break;}if(_0x4fae6f&&'always'!==this['_trackFormatChanges']){const _0x2af383=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f8bfe,'accept');return this['forceDefaultExecution'](()=>_0x2af383(_0x56542a,_0x349572,_0x3fbb72)),null;}const _0xac2c07=this['editor']['plugins']['get']('Users')['me'];for(const _0x5494a2 of this['getSuggestions']()){if(_0x5494a2['author']['id']!=_0xac2c07['id'])continue;if('formatBlock'!=_0x5494a2['type']||_0x5494a2['data']['formatGroupId']!=_0x349572['formatGroupId'])continue;if(!Lt(_0x5494a2,_0x3fbb72))continue;const _0x397cce=_0x5494a2['subType']==_0x4f8bfe;for(let _0x128d0a=0x0;_0x128d0a<_0x56542a['length'];_0x128d0a++){const _0x52b92d=_0x56542a[_0x128d0a];for(const _0x274b62 of _0x5494a2['getMarkers']()){const _0x53a2e0=_0x274b62['getRange']();if(_0x52b92d['isEqual'](_0x53a2e0)){_0x397cce?(_0x56542a['splice'](_0x128d0a,0x1),_0x128d0a--):_0x5494a2['removeMarker'](_0x274b62['name']);break;}}}}if(0x0==_0x56542a['length'])return null;const _0x27febc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f8bfe,'join');for(const _0x5c1949 of this['getSuggestions']())if(_0x5c1949['author']['id']==_0xac2c07['id']&&'formatBlock'==_0x5c1949['type']&&_0x5c1949['data']['formatGroupId']==_0x349572['formatGroupId']&&_0x5c1949['subType']==_0x4f8bfe&&Lt(_0x5c1949,_0x3fbb72)&&(_0x27febc(_0x5c1949['getRanges'](),_0x56542a)||_0x27febc(_0x56542a,_0x5c1949['getRanges']()))){for(const _0xbcfaea of _0x56542a)_0x5c1949['addRange'](_0xbcfaea);return _0x5c1949;}const _0x558be1=_0x3f2578(),_0x2f1d4e=_0xac2c07['id'],_0x3367e0='formatBlock:'+_0x4f8bfe,_0x5898ed=this['_setSuggestionData']({'id':_0x558be1,'type':_0x3367e0,'data':_0x349572,'createdAt':new Date(),'authorId':_0x2f1d4e,'attributes':_0x3fbb72});for(const _0x539c4d of _0x56542a)this['_addSuggestionMarker'](_0x3367e0,_0x558be1,_0x2f1d4e,_0x539c4d,u['getMultiRangeId']());return _0x5898ed;}['markDeletion'](_0x2f12d5,_0x5d6779=null,_0x14d6f8={}){if(_0x2f12d5['isCollapsed'])return null;const _0x1f06a8=this['editor']['plugins']['get']('Users')['me'],_0x2b981b=new _0x249ff9(_0x2f12d5['start'],_0x2f12d5['end']);for(const {suggestion:_0x5e7e61,meta:_0x72ace3}of this['_findSuggestions'](_0x2b981b,'insertion'))if(_0x72ace3['isOwn']&&!_0x72ace3['isNextTo']){if(_0x5e7e61['isMultiRange']){const _0x93563b=_0x5e7e61['getRanges']()['filter'](_0x41e40a=>'$graveyard'!=_0x41e40a['root']['rootName']);_0x93563b['every'](_0x47c4d8=>_0x2b981b['containsRange'](_0x47c4d8,!0x0))&&_0x5e7e61['discard']();if(_0x93563b['some'](_0x39d9b5=>_0x39d9b5['containsRange'](_0x2b981b,!0x0))){const _0x4fd40a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d6779,'accept');return this['forceDefaultExecution'](()=>_0x4fd40a([_0x2b981b],null,_0x14d6f8)),null;}}else{const _0x42202f=_0x2b981b['getIntersection'](_0x5e7e61['getFirstRange']());null!==_0x42202f&&_0x5e7e61['_onDiscard']([_0x42202f],null,_0x14d6f8);}}if(_0x2b981b['detach'](),_0x2b981b['isCollapsed']||'$graveyard'==_0x2b981b['root']['rootName'])return null;let _0x38e8bd=null,_0x35f210=_0x2b981b['start'],_0xf66f2b=_0x2b981b['end'];const _0x24cfad=this['_findSuggestions'](_0x2b981b,'deletion');for(const {suggestion:_0x452c2a,meta:_0xd07b19}of _0x24cfad){const _0x213af7=this['_model']['createRange'](_0x35f210,_0xf66f2b);if(_0xd07b19['isOwn']&&(this['_mergeNestedSuggestions']||!_0xd07b19['containsRangeInObject']&&!_0xd07b19['isInsideObject'])){if(_0x452c2a['isMultiRange']){if(!Lt(_0x452c2a,_0x14d6f8))continue;let _0x3eab56=!0x0;for(const _0x40c1c3 of _0x452c2a['getRanges']()){if(_0x40c1c3['containsRange'](_0x213af7,!0x0))return _0x452c2a;_0x213af7['containsRange'](_0x40c1c3)||(_0x3eab56=!0x1);}_0x3eab56&&_0x452c2a['discard']();}else{const _0x2ce623=_0x452c2a['getFirstRange']();if(_0x2ce623['containsRange'](_0x213af7,!0x0))return _0x452c2a;if(!Lt(_0x452c2a,_0x14d6f8)){_0x213af7['containsRange'](_0x2ce623)?_0x452c2a['removeMarkers']():_0x2ce623['containsPosition'](_0x35f210)?_0x35f210=_0x2ce623['end']:_0x2ce623['containsPosition'](_0xf66f2b)&&(_0xf66f2b=_0x2ce623['start']);continue;}_0x35f210=_0x35f210['isBefore'](_0x2ce623['start'])?_0x35f210:_0x2ce623['start'],_0xf66f2b=_0xf66f2b['isAfter'](_0x2ce623['end'])?_0xf66f2b:_0x2ce623['end'],_0x14d6f8=Object['assign']({},_0x452c2a['attributes']),_0x38e8bd?_0x2ce623['start']['isBefore'](_0x38e8bd['getFirstRange']()['start'])?(_0x38e8bd['removeMarkers'](),_0x38e8bd=_0x452c2a):_0x452c2a['removeMarkers']():_0x38e8bd=_0x452c2a;}}}if(_0x38e8bd)return this['_setSuggestionRange'](_0x38e8bd,this['_model']['createRange'](_0x35f210,_0xf66f2b)),_0x38e8bd;{const _0x43bfc0=_0x3f2578(),_0x3fa61d=this['_model']['createRange'](_0x35f210,_0xf66f2b),_0x556980=_0x1f06a8['id'],_0x101b59=_0x5d6779?'deletion:'+_0x5d6779:'deletion',_0x121852=this['_setSuggestionData']({'id':_0x43bfc0,'type':_0x101b59,'createdAt':new Date(),'authorId':_0x556980,'attributes':_0x14d6f8});return this['_addSuggestionMarker'](_0x101b59,_0x43bfc0,_0x556980,_0x3fa61d),_0x121852;}}['markMultiRangeDeletion'](_0x121106,_0x40b31b='multi',_0x2115dd={}){const _0x52cefe=this['editor']['plugins']['get']('Users')['me'],_0x2fc1c2=_0x121106['map'](_0x4a1337=>new _0x249ff9(_0x4a1337['start'],_0x4a1337['end'])),_0x442d15=new Set();for(const {suggestion:_0x15c136,meta:_0x23bf3e}of this['_findSuggestions'](_0x2fc1c2,'insertion'))_0x23bf3e['isOwn']&&!_0x23bf3e['isNextTo']&&_0x442d15['add'](_0x15c136);for(const _0x38a2a4 of _0x442d15)if(_0x38a2a4['isMultiRange']){const _0x1d8669=_0x38a2a4['getRanges']();(!_0x38a2a4['attributes']||!_0x38a2a4['attributes']['skipNestingCheck'])&&(_0x1d8669['every'](_0x493455=>_0x2fc1c2['some'](_0x195283=>_0x195283['containsRange'](_0x493455,!0x0)))&&_0x38a2a4['discard']());if(_0x2fc1c2['every'](_0x1bd747=>_0x1d8669['some'](_0x32ad36=>_0x32ad36['containsRange'](_0x1bd747,!0x0)))){const _0x18f788=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40b31b,'accept');return this['forceDefaultExecution'](()=>_0x18f788(_0x121106,null,_0x2115dd)),null;}}else{const _0x53dd44=_0x38a2a4['getFirstRange']();_0x2fc1c2['some'](_0x3c6730=>_0x3c6730['containsRange'](_0x53dd44,!0x0))&&_0x38a2a4['discard']();if(_0x2fc1c2['every'](_0x3a2de3=>_0x53dd44['containsRange'](_0x3a2de3,!0x0))){const _0x194fa3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40b31b,'accept');return this['forceDefaultExecution'](()=>_0x194fa3(_0x2fc1c2,null,_0x2115dd)),null;}}const _0x294363=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40b31b,'join');let _0xe0ac8c=null;for(const _0x140c06 of this['getSuggestions']())if(_0x140c06['author']['id']==_0x52cefe['id']&&_0x140c06['isInContent']&&'deletion'==_0x140c06['type']&&_0x140c06['subType']==_0x40b31b&&Lt(_0x140c06,_0x2115dd)&&(_0x294363(_0x140c06['getRanges'](),_0x2fc1c2)||_0x294363(_0x2fc1c2,_0x140c06['getRanges']()))){if(_0xe0ac8c){if(_0x140c06['commentThread']&&_0x140c06['commentThread']['length'])continue;for(const _0x56d23c of _0x140c06['getRanges']())_0xe0ac8c['isIntersectingWithRange'](_0x56d23c)||_0xe0ac8c['addRange'](_0x56d23c);_0x140c06['removeMarkers']();}else{_0xe0ac8c=_0x140c06;for(const _0x294e3f of _0x2fc1c2)_0x140c06['isIntersectingWithRange'](_0x294e3f)||_0x140c06['addRange'](_0x294e3f);}}if(_0xe0ac8c)return _0xe0ac8c;_0x442d15['clear']();for(const {suggestion:_0x21cf86,meta:_0x9c224b}of this['_findSuggestions'](_0x2fc1c2,'deletion'))_0x9c224b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9c224b['containsRangeInObject']&&!_0x9c224b['isInsideObject'])&&Lt(_0x21cf86,_0x2115dd)&&_0x442d15['add'](_0x21cf86);for(const _0x1db8e8 of _0x442d15){const _0x21b015=_0x1db8e8['getRanges']();if(!_0x2115dd||!_0x2115dd['skipNestingCheck']){if(_0x2fc1c2['every'](_0x14b785=>_0x21b015['some'](_0x36df9e=>_0x36df9e['containsRange'](_0x14b785,!0x0))))return _0x1db8e8;}(!_0x1db8e8['attributes']||!_0x1db8e8['attributes']['skipNestingCheck'])&&(_0x21b015['every'](_0x458481=>_0x2fc1c2['some'](_0x47bafa=>_0x47bafa['containsRange'](_0x458481,!0x0)))&&_0x1db8e8['discard']());}const _0x4f4ebf=_0x3f2578(),_0x554df7=_0x52cefe['id'],_0x16c328='deletion:'+_0x40b31b,_0x4f8108=this['_setSuggestionData']({'id':_0x4f4ebf,'type':_0x16c328,'createdAt':new Date(),'authorId':_0x554df7,'attributes':_0x2115dd});for(const _0x1d976f of _0x2fc1c2)_0x1d976f['detach'](),_0x1d976f['isCollapsed']||'$graveyard'==_0x1d976f['root']['rootName']||this['_addSuggestionMarker'](_0x16c328,_0x4f4ebf,_0x554df7,_0x1d976f,u['getMultiRangeId']());return _0x4f8108;}['markAttributeChange'](_0x19a0a9,_0x52c42d,_0x54540f,_0x547df9,_0x27cf4b){if(_0x19a0a9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x88271d=this['editor']['plugins']['get']('Users')['me']['id'],_0x77b8d3=Array['from'](this['_suggestions']['values']())['filter'](_0x452c8b=>'attribute'==_0x452c8b['type']&&_0x452c8b['data']['key']==_0x52c42d&&_0x452c8b['isIntersectingWithRange'](_0x19a0a9));if('default'===this['_trackFormatChanges']){const _0x215ea8=this['_findSuggestions'](_0x19a0a9,'insertion')['filter'](({meta:_0x86f886})=>_0x86f886['isOwn']&&!_0x86f886['isInsideObject']&&!_0x86f886['isNextTo'])['map'](({suggestion:_0xdb778a})=>_0xdb778a);_0x77b8d3['unshift'](..._0x215ea8);}const _0x59d3f7=new Map([[_0x19a0a9,_0x54540f]]);for(const _0x60f8a1 of _0x77b8d3){const _0x3bbb0b='attribute'==_0x60f8a1['type']?_0x60f8a1['data']['oldValue']:void 0x0,_0x358274=_0x60f8a1['getFirstRange'](),_0x14925f=Array['from'](_0x59d3f7['keys']())['find'](_0x29d9ce=>_0x29d9ce['isIntersecting'](_0x358274));if(!_0x14925f)continue;const _0x13624c=_0x14925f['getDifference'](_0x358274);this['_isBlockAttribute'](_0x52c42d)&&'insertion'==_0x60f8a1['type']&&0x0!=_0x13624c['length']||(_0x59d3f7['delete'](_0x14925f),_0x13624c['forEach'](_0xd5045f=>{_0x59d3f7['set'](_0xd5045f,_0x54540f);}),'insertion'!=_0x60f8a1['type']&&_0x3bbb0b!=_0x547df9&&_0x59d3f7['set'](_0x14925f['getIntersection'](_0x358274),_0x3bbb0b));}const _0x5c1369=[];for(const [_0x515b16,_0x4ccada]of _0x59d3f7){const _0x27e19e=_0x3f2578(),_0x37acce={'key':_0x52c42d,'oldValue':_0x4ccada,'newValue':_0x547df9};_0x52c42d['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':_0x52c42d});const _0x46f546=('attribute:'+(_0x52c42d+'|'+Vt({'newValue':_0x547df9})))['substring'](0x0,0x3c),_0xed1859=this['_setSuggestionData']({'id':_0x27e19e,'type':_0x46f546,'data':_0x37acce,'createdAt':new Date(),'authorId':_0x88271d,'attributes':_0x27cf4b});_0x5c1369['push'](_0xed1859),this['_addSuggestionMarker'](_0x46f546,_0x27e19e,_0x88271d,_0x515b16);}return _0x5c1369;}['enableDefaultAttributesIntegration'](_0x1085bb){this['enableCommand'](_0x1085bb,(_0x1f349b,..._0x23854a)=>{this['_recordAttributeChanges'](()=>{_0x1f349b(..._0x23854a);});});}['registerBlockAttribute'](_0x251aaa){this['_blockAttributeKeys']['add'](_0x251aaa);}['registerInlineAttribute'](_0x142b0e){this['_inlineAttributeKeys']['add'](_0x142b0e);}['_getAttributeKey'](_0x1b37a2){return'attribute'==_0x1b37a2['type']?_0x1b37a2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1881cf,_0x5bdee1){const _0x202244=_0x1881cf['getFirstMarker']();this['_model']['change'](_0x4ac6ec=>{_0x4ac6ec['updateMarker'](_0x202244,{'range':_0x5bdee1});});}['_addThreadToSuggestion'](_0xea3a91){const _0x436da8=_0xea3a91['id'],_0x35c4fb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x436da8)||this['_commentsRepository']['addCommentThread']({'channelId':_0x35c4fb,'threadId':_0x436da8,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1fa9f3=this['_commentsRepository']['getCommentThread'](_0x436da8);_0x1fa9f3['unbind']('isRemovable'),_0x1fa9f3['isRemovable']=!0x1,_0xea3a91['commentThread']=_0x1fa9f3;}['_checkSuggestionCorrectness'](_0x19937a,_0x58b85f,_0x1ab77e,_0x243e63){if(_0x19937a['type']!=_0x58b85f||_0x19937a['subType']!=_0x1ab77e||_0x19937a['creator']['id']!=_0x243e63)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4dceac('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4e4b54,_0x7c18c){const _0x24bc78=_0x4e4b54['getFirstRange']();if(_0x7c18c['isEqual'](_0x24bc78))_0x4e4b54['removeMarkers']();else{if(_0x24bc78['containsRange'](_0x7c18c)){const _0x42b27e=this['_model']['createPositionAt'](_0x7c18c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e4b54,this['_model']['createRange'](_0x24bc78['start'],_0x42b27e));const _0xb6cd88=_0x3f2578(),_0x25ea5d=_0x4e4b54['creator']['id'],_0x520163=_0x4e4b54['type']+':'+_0x4e4b54['subType'];this['_setSuggestionData']({'id':_0xb6cd88,'type':_0x520163,'createdAt':new Date(),'authorId':_0x25ea5d,'data':_0x4e4b54['data'],'attributes':_0x4e4b54['attributes']});const _0x19f9a2=this['_model']['createPositionAt'](_0x7c18c['end']['parent'],'after'),_0x2dbae6=this['_model']['createRange'](_0x19f9a2,_0x24bc78['end']);this['_addSuggestionMarker'](_0x520163,_0xb6cd88,_0x25ea5d,_0x2dbae6);}else{if(_0x24bc78['containsPosition'](_0x7c18c['start'])){const _0x4efddb=this['_model']['createPositionAt'](_0x7c18c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e4b54,this['_model']['createRange'](_0x24bc78['start'],_0x4efddb));}else{const _0x20f842=this['_model']['createPositionAt'](_0x7c18c['end']['parent'],'after');this['_setSuggestionRange'](_0x4e4b54,this['_model']['createRange'](_0x20f842,_0x24bc78['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1e7f7b){for(const {suggestion:_0x2c4757,meta:_0x41c9e2}of this['_findSuggestions'](_0x1e7f7b,'insertion')){if(!_0x41c9e2['isOwn'])continue;const _0x186223=_0x2c4757['getRanges']();for(const _0x7992e0 of _0x186223)if(!_0x1e7f7b['getDifference'](_0x7992e0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x48050f){const _0x2ea51c=this['editor']['plugins']['get']('Users')['getUser'](_0x48050f);if(!_0x2ea51c)throw new _0x4dceac('track-changes-user-not-found',this);return _0x2ea51c;}['_getExternalAuthor'](_0xbf6fee){const _0x680508=this['editor']['plugins']['get']('Users'),_0x16f01d=_0x485914('external:'+_0xbf6fee),_0x3983bb=_0x680508['getUser'](_0x16f01d);return _0x3983bb||_0x680508['addUser']({'id':_0x16f01d,'name':_0xbf6fee});}['_createSuggestion'](_0x1ed3b1,_0x202438,_0x405df6,_0x449c90,_0x52861f){const _0x2c30f3=this['_getAuthorFromId'](_0x449c90),_0x13bc80=this['_suggestionFactory']['buildSuggestion'](_0x1ed3b1,_0x202438,_0x405df6,_0x2c30f3,_0x52861f,_0x536262=>{this['_updateSuggestionData'](_0x405df6,{'attributes':_0x536262});const _0x30dc47=this['getSuggestion'](_0x405df6);this['_joinWithAdjacentSuggestions'](new Set([_0x30dc47])),this['_refreshSuggestionsChain'](new Set([_0x30dc47]));});return this['listenTo'](_0x13bc80,'accept',()=>{this['_updateSuggestionData'](_0x405df6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x13bc80,'discard',()=>{this['_updateSuggestionData'](_0x405df6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x405df6,_0x13bc80),this['_suggestionState']['set'](_0x13bc80,'notReady'),_0x13bc80;}['_splitMarkerName'](_0x4a7ed8){const _0x5c11a6=_0x4a7ed8['split'](':');return{'group':_0x5c11a6[0x0],'type':_0x5c11a6[0x1],'subType':_0x5c11a6['length']>=0x5?_0x5c11a6[0x2]:null,'id':_0x5c11a6['length']<0x5?_0x5c11a6[0x2]:_0x5c11a6[0x3],'authorId':_0x5c11a6['length']<0x5?_0x5c11a6[0x3]:_0x5c11a6[0x4],'markerCount':0x6==_0x5c11a6['length']?_0x5c11a6[0x5]:null};}['_breakSuggestionMarker'](_0x37d85d,_0x7f7384,_0x30ac05){const _0x8562a7=_0x37d85d['getFirstRange'](),_0x256593=_0x8562a7['start'],_0x193ea9=_0x8562a7['end'];this['_setSuggestionRange'](_0x37d85d,this['_model']['createRange'](_0x256593,_0x7f7384));const _0x28d144=_0x3f2578(),_0x55b03e=_0x37d85d['creator']['id'],_0x317323=_0x37d85d['type']+(_0x37d85d['subType']?':'+_0x37d85d['subType']:'');this['_setSuggestionData']({'id':_0x28d144,'type':_0x317323,'createdAt':new Date(),'authorId':_0x55b03e,'originalSuggestionId':_0x37d85d['id'],'attributes':_0x37d85d['attributes'],'data':_0x37d85d['data']});const _0x47c339=this['_getAttributeKey'](_0x37d85d);('formatBlock'==_0x37d85d['type']||_0x47c339&&this['_isBlockAttribute'](_0x47c339))&&(_0x30ac05=this['_model']['createPositionBefore'](_0x30ac05['parent'])),this['_addSuggestionMarker'](_0x317323,_0x28d144,_0x55b03e,this['_model']['createRange'](_0x30ac05,_0x193ea9));}['_findSuggestions'](_0xfe873f,_0x3cbb7c=null){const _0x4bc3dc=[],_0x86a0af=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xfe873f)||(_0xfe873f=[_0xfe873f]);for(const _0x43c377 of this['getSuggestions']()){if(!_0x43c377['isInContent'])continue;if(_0x3cbb7c&&_0x43c377['type']!=_0x3cbb7c)continue;let _0x184289=!0x1;for(const _0x17ba07 of _0x43c377['getRanges']()){for(const _0x173b58 of _0xfe873f){const _0x2d0b7d=_0x173b58['start']['isEqual'](_0x17ba07['end'])||_0x173b58['end']['isEqual'](_0x17ba07['start']);if(_0x2d0b7d||_0x173b58['getIntersection'](_0x17ba07)){const _0x2d56a2=_0x173b58['containsRange'](_0x17ba07)&&Rt(this['_model']['schema'],_0x17ba07['start'],_0x173b58),_0x283e8e=_0x17ba07['containsRange'](_0x173b58)&&Rt(this['_model']['schema'],_0x173b58['start'],_0x17ba07);_0x4bc3dc['push']({'suggestion':_0x43c377,'meta':{'isOwn':_0x86a0af==_0x43c377['author'],'isNextTo':_0x2d0b7d,'isInsideObject':_0x2d56a2,'containsRangeInObject':_0x283e8e}}),_0x184289=!0x0;break;}}if(_0x184289)break;}}return _0x4bc3dc;}['_addSuggestionMarker'](_0x1c9aa3,_0x39af33,_0x34b9f8,_0x5b8921,_0x2fe9c6){this['_model']['change'](_0x4ccb2f=>{let _0x549046='suggestion:'+_0x1c9aa3+':'+_0x39af33+':'+_0x34b9f8;_0x2fe9c6&&(_0x549046=_0x549046+':'+_0x2fe9c6),_0x4ccb2f['addMarker'](_0x549046,{'range':_0x5b8921,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x23fc2c){const _0x119471=_0x23fc2c['previous'],_0x36e5e2=_0x23fc2c['next'];_0x23fc2c['previous']=null,_0x23fc2c['next']=null,null!=_0x119471&&_0x119471['next']==_0x23fc2c&&(_0x119471['next']=_0x36e5e2),null!=_0x36e5e2&&_0x36e5e2['previous']==_0x23fc2c&&(_0x36e5e2['previous']=_0x119471),'ready'==this['_suggestionState']['get'](_0x23fc2c)&&(this['_suggestionState']['set'](_0x23fc2c,'removed'),this['fire']('suggestionUnloaded',_0x23fc2c,_0x119471,_0x36e5e2));}['_setSuggestionData'](_0x250695){const _0x315311=_0x250695['id'],_0x48a080=this['addSuggestionData'](_0x250695);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x24c750=this['editor']['plugins']['get']('PendingActions'),_0x5b46d2=_0x48a080['hasComments'],_0x3cb732=_0x48a080['subType']?_0x48a080['type']+':'+_0x48a080['subType']:_0x48a080['type'],_0x15e864=this['editor']['locale'],_0x120844=_0x24c750['add'](o(_0x15e864,'PENDING_ACTION_SUGGESTION')),_0x3e522d={'id':_0x315311,'type':_0x3cb732,'hasComments':_0x5b46d2,'data':_0x250695['data']||null,'originalSuggestionId':_0x250695['originalSuggestionId']||null,'attributes':_0x48a080['attributes']};this['_adapter']['addSuggestion'](_0x3e522d)['then'](_0x13fb6a=>{_0x48a080['_saved']=!0x0,_0x24c750['remove'](_0x120844),_0x13fb6a&&_0x13fb6a['createdAt']&&(this['_suggestions']['get'](_0x315311)['createdAt']=_0x13fb6a['createdAt']);})['catch'](_0x2f40ad=>{throw _0xa0c3ba('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x48a080['discard']();}),_0x48a080['stopListening'](),this['_suggestions']['delete'](_0x48a080['id']),this['_suggestionState']['delete'](_0x48a080),_0x2f40ad;});}return _0x48a080;}['_isBlockAttribute'](_0x5bd092){return this['_blockAttributeKeys']['has'](_0x5bd092);}['_updateSuggestionData'](_0x4c8636,_0x484dcf){const _0x2d0e13=this['editor']['plugins']['get']('PendingActions'),_0x34d4e3=this['getSuggestion'](_0x4c8636);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x34d4e3['_saved']){const _0x3b5e35=_0x2d0e13['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4c8636,_0x484dcf)['then'](()=>{_0x2d0e13['remove'](_0x3b5e35);});}else _0x34d4e3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4c8636,_0x484dcf);});}}['_getSuggestionData'](_0x5d8ab2){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4dceac('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5d8ab2);}['_handleNewSuggestionMarker'](_0xec041a){const {id:_0x45165c,type:_0x23031d,subType:_0x2a8028,authorId:_0x64a019}=this['_splitMarkerName'](_0xec041a),_0x4dd976=this['_suggestions']['get'](_0x45165c)||this['_createSuggestion'](_0x23031d,_0x2a8028,_0x45165c,_0x64a019,{});switch(this['_checkSuggestionCorrectness'](_0x4dd976,_0x23031d,_0x2a8028,_0x64a019),this['_suggestionState']['get'](_0x4dd976)){case'notReady':this['_getSuggestionData'](_0x45165c)['then'](_0x1b9a64=>{let _0x492bc5=Promise['resolve']();_0x1b9a64['hasComments']&&(_0x492bc5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x45165c})),_0x492bc5['then'](()=>{this['addSuggestionData'](_0x1b9a64)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4dd976,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x45165c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4dd976,'ready'),this['fire']('suggestionLoaded',_0x4dd976);break;case'ready':this['fire']('suggestionChanged',_0x4dd976);}return _0x4dd976['addMarkerName'](_0xec041a),_0x4dd976;}['_refreshSuggestionsChain'](_0x171333){const _0x418df9=Array['from'](_0x171333),_0x40821f=_0x418df9['filter'](_0x2ee878=>'attribute'==_0x2ee878['type']);this['_refreshAttributeSuggestionsChain'](_0x40821f);const _0x1cb22d=_0x418df9['filter'](_0x50da80=>!_0x50da80['isMultiRange']&&'attribute'!=_0x50da80['type']),_0x1f52bb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x480231=>!_0x480231['isMultiRange']&&'attribute'!=_0x480231['type']),_0x5e76c3=_0x1f52bb['filter'](_0x2f65d3=>!_0x171333['has'](_0x2f65d3)),_0xd5c9aa=new Map(_0x1f52bb['map'](_0x1de661=>[_0x1de661,this['_suggestionFactory']['getSuggestionCallback'](_0x1de661['type'],_0x1de661['subType'],'chain')])),_0x205ae4=new Map(_0x1f52bb['map'](_0x496106=>[_0x496106,_0x496106['getFirstRange']()])),_0x5d927c=new Set(),_0x3fe5c6=new Set();for(let _0x18d4a6=0x0;_0x18d4a6<_0x1cb22d['length'];_0x18d4a6++)_0xbb8de2(_0x1cb22d[_0x18d4a6],_0x1cb22d,_0x18d4a6+0x1);for(let _0x21298e=0x0;_0x21298e<_0x1cb22d['length'];_0x21298e++)_0xbb8de2(_0x1cb22d[_0x21298e],_0x5e76c3,0x0);const _0x1dd5cd=new Set();for(let _0x928d81=0x0;_0x928d81<_0x1cb22d['length'];_0x928d81++){const _0x516b00=_0x1cb22d[_0x928d81];!_0x3fe5c6['has'](_0x516b00)&&_0x516b00['previous']&&(_0x1dd5cd['add'](_0x516b00['previous']),_0x516b00['previous']['next']===_0x516b00&&(_0x516b00['previous']['next']=null),_0x516b00['previous']=null),!_0x5d927c['has'](_0x516b00)&&_0x516b00['next']&&(_0x1dd5cd['add'](_0x516b00['next']),_0x516b00['next']['previous']===_0x516b00&&(_0x516b00['next']['previous']=null),_0x516b00['next']=null);}function _0xbb8de2(_0x42e21a,_0x31edb0,_0x374c2a){for(let _0x105b58=_0x374c2a;_0x105b58<_0x31edb0['length'];_0x105b58++){const _0xca8534=_0x434f80(_0x42e21a,_0x31edb0[_0x105b58]);_0xca8534&&(_0xca8534[0x0]['next']=_0xca8534[0x1],_0xca8534[0x1]['previous']=_0xca8534[0x0],_0x5d927c['add'](_0xca8534[0x0]),_0x3fe5c6['add'](_0xca8534[0x1]));}}function _0x434f80(_0x339bbe,_0x44fa02){if(_0x339bbe['author']['id']!==_0x44fa02['author']['id'])return null;const _0x4a1ef3=_0xd5c9aa['get'](_0x339bbe)(_0x339bbe,_0x44fa02,_0x205ae4['get'](_0x339bbe),_0x205ae4['get'](_0x44fa02));if(!_0x4a1ef3)return null;return _0xd5c9aa['get'](_0x44fa02)(_0x339bbe,_0x44fa02,_0x205ae4['get'](_0x339bbe),_0x205ae4['get'](_0x44fa02))?_0x4a1ef3[0x1]['commentThread']&&_0x4a1ef3[0x1]['commentThread']['length']?null:_0x4a1ef3:null;}_0x1dd5cd['size']&&this['_refreshSuggestionsChain'](_0x1dd5cd);}['_refreshAttributeSuggestionsChain'](_0x13e0a5){if(0x0==_0x13e0a5['length'])return;const _0x1a6f9e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x203669=>'attribute'==_0x203669['type']&&_0x203669['_isDataLoaded']),_0x326e3a=[],_0x115c2a=new Map();for(const _0x3788bb of _0x1a6f9e){const _0x558b47=_0x485914(_0x3788bb['attributes']);_0x115c2a['has'](_0x558b47)||(_0x115c2a['set'](_0x558b47,_0x326e3a['length']),_0x326e3a['push']([]));const _0x3e3a4e=_0x115c2a['get'](_0x558b47);_0x326e3a[_0x3e3a4e]['push'](_0x3788bb);}!(function(){_0x326e3a['sort']((_0x1a7509,_0x5c7446)=>{const _0x122265=_0x1a7509[0x0]['createdAt'],_0x1d1266=_0x5c7446[0x0]['createdAt'];return _0x122265==_0x1d1266?_0x1a7509[0x0]['attributes']['groupId']<_0x5c7446[0x0]['attributes']['groupId']?-0x1:0x1:_0x122265<_0x1d1266?-0x1:0x1;});for(const _0x54f8b5 of _0x326e3a)_0x54f8b5['sort']((_0x4cae2f,_0x46a87a)=>_0x4cae2f['id']<_0x46a87a['id']?-0x1:0x1);}());for(let _0x56f861=0x0;_0x56f861<_0x326e3a['length'];_0x56f861++){if(0x0==_0x326e3a[_0x56f861]['length'])continue;const _0x2047ca=[];for(let _0x3732d2=_0x56f861+0x1;_0x3732d2<_0x326e3a['length'];_0x3732d2++)0x0!=_0x326e3a[_0x3732d2]['length']&&_0x282646(_0x326e3a[_0x56f861],_0x326e3a[_0x3732d2])&&_0x2047ca['push'](_0x3732d2);for(const _0x1a311d of _0x2047ca)_0x326e3a[_0x56f861]=_0x326e3a[_0x56f861]['concat'](_0x326e3a[_0x1a311d]),_0x326e3a[_0x1a311d]=[];}for(const _0x4a7165 of _0x326e3a)for(let _0x92ae97=0x0;_0x92ae97<_0x4a7165['length'];_0x92ae97++)_0x4a7165[_0x92ae97]['next']=_0x4a7165[_0x92ae97+0x1]||null;for(const _0x133ad7 of _0x326e3a)for(let _0x59643d=0x0;_0x59643d<_0x133ad7['length'];_0x59643d++)_0x133ad7[_0x59643d]['previous']=_0x133ad7[_0x59643d-0x1]||null;function _0x282646(_0x488d99,_0x5f3422){if(_0x488d99[0x0]['attributes']['groupId']!==_0x5f3422[0x0]['attributes']['groupId']&&_0x488d99[0x0]['author']!==_0x5f3422[0x0]['author'])return!0x1;if(!function(_0x30479c,_0x517ae5){if(!_0x30479c['hasComments']&&!_0x517ae5['hasComments'])return!0x0;if(_0x30479c['hasComments']&&_0x517ae5['hasComments'])return!0x1;if(_0x30479c['hasComments']&&_0x517ae5['createdAt']<_0x30479c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x517ae5['hasComments']&&_0x30479c['createdAt']<_0x517ae5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x488d99[0x0],_0x5f3422[0x0]))return!0x1;const _0x210534=Bt(_0x488d99[0x0]['attributes'],'groupId'),_0x348b1=Bt(_0x5f3422[0x0]['attributes'],'groupId');if(!_0x2e58ee(_0x210534,_0x348b1))return!0x1;return!!_0x488d99['every'](_0x1c1384=>_0x5f3422['some'](_0x595525=>_0x1c1384['getFirstRange']()['isEqual'](_0x595525['getFirstRange']())))&&_0x5f3422['every'](_0x500225=>_0x488d99['some'](_0x275c3d=>_0x500225['getFirstRange']()['isEqual'](_0x275c3d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1c285e){const _0x44f454=Array['from'](_0x1c285e),_0x461958=this['getSuggestions']({'skipNotAttached':!0x0}),_0x26468d=_0x461958['filter'](_0x2123b9=>!_0x1c285e['has'](_0x2123b9)),_0x4d0bf8=new Map(_0x44f454['map'](_0x49f66f=>[_0x49f66f,this['_suggestionFactory']['getSuggestionCallback'](_0x49f66f['type'],_0x49f66f['subType'],'join')])),_0x3ec1ad=new Map(_0x461958['map'](_0x336895=>[_0x336895,_0x336895['getRanges']()]));for(let _0x3bebbb=0x0;_0x3bebbb<_0x44f454['length'];_0x3bebbb++){if(_0x19c9fc(this,_0x44f454[_0x3bebbb],_0x44f454,_0x3bebbb+0x1))return!0x0;}for(let _0x5e1f78=0x0;_0x5e1f78<_0x44f454['length'];_0x5e1f78++){if(_0x19c9fc(this,_0x44f454[_0x5e1f78],_0x26468d,0x0))return!0x0;}return!0x1;function _0x19c9fc(_0x1e1c8e,_0x5012a7,_0x41147f,_0x18cfc2){for(let _0x1bcd13=_0x18cfc2;_0x1bcd13<_0x41147f['length'];_0x1bcd13++){const _0x229c9a=_0x41147f[_0x1bcd13];if(_0x229c9a['type']!==_0x5012a7['type']||_0x229c9a['author']['id']!==_0x5012a7['author']['id']||_0x229c9a['subType']!==_0x5012a7['subType'])continue;if(!Pt(_0x5012a7,_0x229c9a,['groupId']))continue;if('attribute'==_0x5012a7['type']&&_0x5012a7['data']['oldValue']!=_0x229c9a['data']['oldValue'])continue;if('attribute'==_0x5012a7['type']&&_0x1e1c8e['_isBlockAttribute'](_0x5012a7['data']['key']))continue;if('formatBlock'==_0x5012a7['type']){const _0x5cb394=_0x1e1c8e['editor']['model'],_0x27ee53=_0x5012a7['getContainedElement']();if(_0x27ee53&&(_0x5cb394['schema']['isObject'](_0x27ee53)||_0x5cb394['schema']['isLimit'](_0x27ee53)))continue;}const _0x2e4b34=_0x4d0bf8['get'](_0x5012a7),_0x154dff=_0x3ec1ad['get'](_0x5012a7),_0x26fa3f=_0x3ec1ad['get'](_0x229c9a),_0x4c9bcb=_0x5012a7['commentThread']&&_0x5012a7['commentThread']['length'],_0x2dcece=_0x229c9a['commentThread']&&_0x229c9a['commentThread']['length'];if(!_0x4c9bcb&&_0x2e4b34(_0x26fa3f,_0x154dff))return _0x1e1c8e['_joinSuggestions'](_0x229c9a,_0x5012a7),_0x3ec1ad['delete'](_0x5012a7),!0x0;if(!_0x2dcece&&_0x2e4b34(_0x154dff,_0x26fa3f))return _0x1e1c8e['_joinSuggestions'](_0x5012a7,_0x229c9a),_0x3ec1ad['delete'](_0x229c9a),!0x0;}return!0x1;}}['_joinSuggestions'](_0xf771f4,_0x280454){if(_0xf771f4['isMultiRange']){for(const _0x32e413 of _0x280454['getRanges']())_0xf771f4['addRange'](_0x32e413);}else{const _0x39dd01=_0x280454['getFirstRange']()['end'];this['_setSuggestionRange'](_0xf771f4,this['_model']['createRange'](_0xf771f4['getFirstRange']()['start'],_0x39dd01));}_0x280454['removeMarkers']();}['_getMarkerAnnouncementText'](_0x416490,_0x4a1397){const _0x365a4b=_0x416490['startsWith']('format')||_0x416490['startsWith']('attribute')?'FORMATTING':_0x416490['toUpperCase']();return o(this['editor']['locale'],_0x4a1397+'_'+_0x365a4b+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4ab6e5=this['editor'];if(!_0x4ab6e5['ui'])return;const {ariaLiveAnnouncer:_0x1d19fe}=_0x4ab6e5['ui'];_0x35b420(this['_model'],({left:_0x324401,entered:_0x39e329})=>{for(const _0x1da14d of _0x324401){const {group:_0x45d0bc,type:_0x380fef}=this['_splitMarkerName'](_0x1da14d['name']);if('suggestion'===_0x45d0bc){_0x1d19fe['announce'](this['_getMarkerAnnouncementText'](_0x380fef,'LEAVE'));break;}}for(const _0x1e9132 of _0x39e329){const {group:_0x1df4e0,type:_0x327166}=this['_splitMarkerName'](_0x1e9132['name']);if('suggestion'===_0x1df4e0){_0x1d19fe['announce'](this['_getMarkerAnnouncementText'](_0x327166,'ENTER'));break;}}});}['_processAttributeChanges'](_0x3afd0e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3bf5ba=this['editor'],_0x3bf83d=_0x3bf5ba['model']['document']['differ']['getChanges']();if(0x0==_0x3bf83d['length'])return!0x1;const _0x3fb7e6=[],_0x360b00=_0x3bf83d['filter'](_0x10df29=>'attribute'==_0x10df29['type']),_0x36fe0f=_0x3bf83d['filter'](_0x382f7b=>'insert'==_0x382f7b['type']&&'$text'!=_0x382f7b['name']),_0x86ea14=_0x3bf83d['filter'](_0x50d53b=>'remove'==_0x50d53b['type']&&'$text'!=_0x50d53b['name']);for(const _0x6c6020 of _0x360b00)_0x3fb7e6['push']({'key':_0x6c6020['attributeKey'],'newValue':_0x6c6020['attributeNewValue'],'oldValue':_0x6c6020['attributeOldValue'],'range':Ot(_0x6c6020['range'],_0x3bf5ba['model'])});for(const _0x5ab8d4 of _0x36fe0f){const _0x2d1097=_0x86ea14['find'](_0x251505=>_0x251505['position']['isEqual'](_0x5ab8d4['position']));_0x2d1097&&_0x3fb7e6['push']({'key':m,'newValue':_0x5ab8d4['name'],'oldValue':_0x2d1097['name'],'range':_0x3bf5ba['model']['createRangeOn'](_0x5ab8d4['position']['nodeAfter'])});}return 0x0!=_0x3fb7e6['length']&&this['_reduceExistingSuggestions'](_0x3afd0e,_0x3fb7e6);}['_processAttributeSuggestions'](_0x323a4a){let _0x2d36e3=!0x1;const _0x36917b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4603bd=>_0x4603bd['data']['newRange']&&_0x4603bd['name']['startsWith']('suggestion:attribute:'));for(const _0x1e9bbd of _0x36917b){const {subType:_0x1288ef,id:_0x49b6f1}=this['_splitMarkerName'](_0x1e9bbd['name']),_0x154891=_0x1288ef['split']('|')[0x0];for(const _0x13ff7d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x13ff7d['id']!=_0x49b6f1&&'attribute'==_0x13ff7d['type']&&_0x13ff7d['data']&&_0x13ff7d['data']['key']==_0x154891&&_0x13ff7d['getFirstRange']()['isIntersecting'](_0x1e9bbd['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x13ff7d,_0x1e9bbd['data']['newRange'],_0x323a4a),_0x2d36e3=!0x0);}return _0x2d36e3;}['_recordAttributeChanges'](_0x2e4d8b){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2e4d8b();}['_isRegisteredAttribute'](_0x3a2c4d){const _0x356119=this['_isBlockAttribute'](_0x3a2c4d),_0x2df8e7=this['_inlineAttributeKeys']['has'](_0x3a2c4d);return _0x356119||_0x2df8e7;}['_reduceExistingSuggestions'](_0x5e6f18,_0x39d9ab){if(0x0==_0x39d9ab['length'])return!0x1;let _0x7a2d68=!0x1;for(const _0x5d481b of _0x39d9ab){const _0x217044=this['_findSuggestions'](_0x5d481b['range'],'attribute')['filter'](_0x2cbf04=>!_0x2cbf04['meta']['isNextTo'])['map'](_0x5a83df=>_0x5a83df['suggestion']),_0x38faee=_0x485914({'newValue':_0x5d481b['newValue']});_0x217044['filter'](_0x5ef72e=>{const [_0x33c3b1,_0x72fae4]=_0x5ef72e['subType']['split']('|');return _0x33c3b1==_0x5d481b['key']&&_0x72fae4!=_0x38faee;})['forEach'](_0x201225=>{this['_reduceSuggestionAttributeRange'](_0x201225,_0x5d481b['range'],_0x5e6f18),_0x7a2d68=!0x0;});}return _0x7a2d68;}['_reduceSuggestionAttributeRange'](_0x2aa4ff,_0x2861a4,_0x234482){const _0x5d1f6e=_0x2aa4ff['getFirstRange']()['getDifference'](_0x2861a4);0x0!==_0x5d1f6e['length']?0x1!==_0x5d1f6e['length']?this['_breakSuggestionMarker'](_0x2aa4ff,_0x2861a4['start'],_0x2861a4['end']):this['_setSuggestionRange'](_0x2aa4ff,_0x5d1f6e[0x0]):_0x234482['removeMarker'](_0x2aa4ff['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1c379d){this['_editor']=_0x1c379d,this['_model']=_0x1c379d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5c9ad8,_0x1ada0b,_0x6f7f36,_0x1b5cda,_0x5d0d52,_0x464839){return new u(this['_model'],{'type':_0x5c9ad8,'subType':_0x1ada0b,'id':_0x6f7f36,'author':_0x1b5cda,'creator':_0x1b5cda,'attributes':_0x5d0d52,'onAttributesChange':_0x464839,'onAccept':(..._0x1a8a44)=>this['getSuggestionCallback'](_0x5c9ad8,_0x1ada0b,'accept')(..._0x1a8a44),'onDiscard':(..._0x1eb03d)=>this['getSuggestionCallback'](_0x5c9ad8,_0x1ada0b,'discard')(..._0x1eb03d)});}['registerCustomCallback'](_0x777524,_0x2b9d54,_0x141d9b,_0x74417){const _0x427339=_0x777524+':'+_0x2b9d54+':'+_0x141d9b;this['_customCallbacks']['set'](_0x427339,_0x74417);}['getSuggestionCallback'](_0xa59c91,_0x2b86a4,_0x35c0e8){const _0x355da1=_0xa59c91+':'+_0x2b86a4+':'+_0x35c0e8;return this['_customCallbacks']['get'](_0x355da1)||this['_defaultCallbacks']['get'](_0xa59c91+':'+_0x35c0e8);}['_registerDefaultCallbacks'](){const _0x47929c=()=>!0x1,_0x5243e0=_0x48e825=>{_0x48e825['sort']((_0x1ccfb4,_0x42ba2d)=>_0x1ccfb4['start']['isBefore'](_0x42ba2d['start'])?0x1:-0x1),this['_model']['change'](_0x5c9008=>{for(const _0x49a8a6 of _0x48e825){let _0x30b168;_0x30b168=_0x49a8a6['end']['isAtEnd']&&_0x49a8a6['end']['parent']==_0x49a8a6['start']['nodeAfter']?_0x5c9008['createSelection'](_0x49a8a6['start']['nodeAfter'],'on'):_0x5c9008['createSelection'](_0x49a8a6),this['_model']['deleteContent'](_0x30b168,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1976f7=(_0x3c0bb7,_0x5f16cf)=>{_0x5f16cf&&this['_model']['change'](_0x1b0bb3=>{const {commandName:_0x4acf5,commandParams:_0xb98d4d=[]}=_0x5f16cf,_0x1f42b5=_0x3c0bb7['map'](_0x590bf=>(Tt(_0x590bf)&&(_0x590bf=this['_model']['createRange'](_0x590bf['end'])),_0x590bf))['filter'](_0x3ebc7b=>'$graveyard'!==_0x3ebc7b['root']['rootName']);if(_0x1f42b5['length']<0x1)return;const _0x31701a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5dadc6=>_0x249ff9['fromRange'](_0x5dadc6));_0x1b0bb3['setSelection'](_0x1f42b5);for(const _0x30c847 of this['_editor']['commands']['commands']())_0x30c847['refresh']();_0xb98d4d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4acf5,..._0xb98d4d);const _0x13fe95=_0x31701a['filter'](_0x2157b8=>'$graveyard'!=_0x2157b8['root']['rootName']);_0x13fe95['length']>0x0&&_0x1b0bb3['setSelection'](_0x13fe95);for(const _0x1ef508 of _0x31701a)_0x1ef508['detach']();});},_0x2f9100=(_0x48d5de,_0x2b5551)=>0x1==_0x48d5de['length']&&0x1==_0x2b5551['length']&&_0x48d5de[0x0]['end']['isEqual'](_0x2b5551[0x0]['start']),_0x387a78=(_0x2b3b75,_0x319f41,_0xbf5fe9,_0x4231ad)=>Gt(_0x2b3b75,_0x319f41,_0xbf5fe9,_0x4231ad,this['_model'])?[_0x2b3b75,_0x319f41]:Gt(_0x319f41,_0x2b3b75,_0x4231ad,_0xbf5fe9,this['_model'])?[_0x319f41,_0x2b3b75]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x47929c),this['_defaultCallbacks']['set']('insertion:discard',_0x5243e0),this['_defaultCallbacks']['set']('insertion:join',_0x2f9100),this['_defaultCallbacks']['set']('insertion:chain',_0x387a78),this['_defaultCallbacks']['set']('deletion:accept',_0x5243e0),this['_defaultCallbacks']['set']('deletion:discard',_0x47929c),this['_defaultCallbacks']['set']('deletion:join',_0x2f9100),this['_defaultCallbacks']['set']('deletion:chain',_0x387a78),this['_defaultCallbacks']['set']('formatInline:accept',_0x1976f7),this['_defaultCallbacks']['set']('formatInline:discard',_0x47929c),this['_defaultCallbacks']['set']('formatInline:join',_0x2f9100),this['_defaultCallbacks']['set']('formatInline:chain',_0x47929c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1976f7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x47929c),this['_defaultCallbacks']['set']('formatBlock:join',_0x2f9100),this['_defaultCallbacks']['set']('formatBlock:chain',_0x47929c),this['_defaultCallbacks']['set']('attribute:accept',_0x47929c),this['_defaultCallbacks']['set']('attribute:discard',(_0x4d3350,_0x1ea95f)=>{if(!_0x1ea95f)return;const _0x565a46=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x379680=>{if(_0x1ea95f['key']==m)for(const _0x5c081f of _0x4d3350){const _0x298c2e=_0x5c081f['start']['nodeAfter'],_0x236f44=_0x1ea95f['oldValue'];_0x379680['rename'](_0x298c2e,_0x236f44);}else{if(_0x565a46['_isBlockAttribute'](_0x1ea95f['key'])){for(const _0x47e292 of _0x4d3350)void 0x0!==_0x1ea95f['oldValue']?_0x379680['setAttribute'](_0x1ea95f['key'],_0x1ea95f['oldValue'],_0x47e292['start']['nodeAfter']):_0x379680['removeAttribute'](_0x1ea95f['key'],_0x47e292['start']['nodeAfter']);}else{for(const _0x28215a of _0x4d3350)_0x1ea95f['oldValue']?_0x379680['setAttribute'](_0x1ea95f['key'],_0x1ea95f['oldValue'],_0x28215a):_0x379680['removeAttribute'](_0x1ea95f['key'],_0x28215a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2f9100);}}function Rt(_0x4a440c,_0x294e63,_0x565981){for(const _0x6de104 of _0x294e63['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x6de104['root']==_0x6de104)return!0x1;if(!_0x565981['containsItem'](_0x6de104))return!0x1;if(_0x4a440c['isObject'](_0x6de104)||_0x4a440c['isLimit'](_0x6de104))return!0x0;}return!0x1;}function Tt(_0x33afbb){return _0x33afbb['end']['parent']==_0x33afbb['start']['nodeAfter']&&_0x33afbb['end']['isAtStart'];}function Et(_0x45fee2,_0x3a56a1,_0x525b20,_0x59f5bd){const _0x23b503=_0x233fa6=>!_0x233fa6['item']['is']('$textProxy')&&!_0x59f5bd['isObject'](_0x233fa6['item']),_0x1a68c7=_0x45fee2['start']['getLastMatchingPosition'](_0x23b503),_0x4d88fa=_0x45fee2['end']['getLastMatchingPosition'](_0x23b503,{'direction':'backward'});return(!_0x45fee2['start']['isEqual'](_0x1a68c7)||!_0x45fee2['end']['isEqual'](_0x4d88fa))&&(_0x1a68c7['isBefore'](_0x4d88fa)?_0x525b20['updateMarker'](_0x3a56a1,{'range':_0x525b20['createRange'](_0x1a68c7,_0x4d88fa)}):_0x525b20['removeMarker'](_0x3a56a1),!0x0);}function Vt(_0x22be0a){return _0x485914(_0x22be0a);}function Ut(_0x5e8de7){const _0x487c61=_0x5e8de7['start']['nodeAfter'];return _0x487c61&&_0x487c61['is']('element');}function Ot(_0x42ed0e,_0x29e41e){return null==_0x42ed0e['end']['nodeBefore']&&_0x42ed0e['end']['parent']==_0x42ed0e['start']['nodeAfter']?Ft(_0x42ed0e['start']['nodeAfter'],_0x29e41e):_0x42ed0e;}function Ft(_0x5e58fe,_0x529881){const _0x2e79e6=_0x529881['schema']['isObject'](_0x5e58fe)||_0x529881['schema']['isSelectable'](_0x5e58fe);return _0x529881['createRange'](_0x529881['createPositionAt'](_0x5e58fe,'before'),_0x2e79e6?_0x529881['createPositionAfter'](_0x5e58fe):_0x529881['createPositionAt'](_0x5e58fe,'end'));}function Gt(_0x471fe0,_0x50b4b2,_0x155c6b,_0x24f5f1,_0xc35f26){if(!Pt(_0x471fe0,_0x50b4b2))return!0x1;if(_0x155c6b['end']['isEqual'](_0x24f5f1['start']))return!0x0;if(_0x471fe0['type']!=_0x50b4b2['type'])return!0x1;if(!_0x155c6b['end']['isTouching'](_0x24f5f1['start']))return!0x1;const _0x217e01=_0xc35f26['createRange'](_0x155c6b['end'],_0x24f5f1['start'])['getWalker']();for(const _0x8c26f0 of _0x217e01)if(['elementStart','elementEnd']['includes'](_0x8c26f0['type'])&&_0xc35f26['schema']['isLimit'](_0x8c26f0['item']))return!0x1;return!0x0;}function Pt(_0x468916,_0x470da2,_0x3ed611=[]){return!(!_0x468916['_isDataLoaded']||!_0x470da2['_isDataLoaded'])&&_0x2e58ee(Bt(_0x468916['attributes'],_0x3ed611),Bt(_0x470da2['attributes'],_0x3ed611));}function Lt(_0x3ce3ee,_0xa430e7){const _0x59bafc=Ht(_0x3ce3ee['attributes']),_0x223a16=Ht(_0xa430e7);if(!_0x3ce3ee['_isDataLoaded'])return!0x1;for(const _0xc602c3 of Object['keys'](_0x223a16))if(!_0x2e58ee(_0x59bafc[_0xc602c3],_0x223a16[_0xc602c3]))return!0x1;return!0x0;}function Ht(_0x1cfaeb){const _0x3e3f31=Object['assign']({},_0x1cfaeb);return delete _0x3e3f31['skipNestingCheck'],delete _0x3e3f31['tablePasteChainId'],_0x3e3f31;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5de653(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xd4b0de,_0xd4e2f8,_0x194d95,_0x1c62ee){super(),this['model']=_0xd4e2f8,this['view']=_0x194d95,this['commentThreadController']=_0x1c62ee,this['_editor']=_0xd4b0de,this['_acceptCommand']=_0xd4b0de['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xd4b0de['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4e3f21,_0x7f7361)=>_0x4e3f21||_0x7f7361),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5bd664=>_0x5bd664&&this['_editor']['model']['canEditAt'](_0xd4e2f8['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x216d09=>_0x216d09&&this['_editor']['model']['canEditAt'](_0xd4e2f8['getRanges']())),this['_pendingAction']=null,_0x194d95['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x194d95,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x194d95,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x194d95,'change:isDirty',()=>{_0x194d95['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 _0x286711=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x286711);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x54f70d{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x44f154,_0x580f22,_0x5587e8,_0x26c393){super(_0x44f154),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x580f22['authoredAt']),this['bind']('authoredAt')['to'](_0x580f22),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x580f22,this['_localUser']=_0x5587e8,this['_config']=_0x26c393,_0x26c393['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:_0x2ee770}=this['_config'];this['commentsListView']=new _0x2ee770(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',_0x7cb6b3=>_0x7cb6b3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x50358a,_0x1fefd3)=>_0x50358a||!!_0x1fefd3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4eff9a}=this['_config'],_0x431724=new _0x4eff9a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2fc739=_0x431724['commentInputView'];return _0x431724['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2fc739,'value',(_0x4e9c1a,_0x2aad99,_0x3ae773)=>!!_0x3ae773||_0x4e9c1a&&!_0x2aad99),_0x2fc739['on']('submit',(_0x526a87,_0x292216)=>{this['fire']('addComment',_0x292216),_0x2fc739['editor']['setData']('');}),_0x2fc739['on']('cancel',()=>this['focus']()),_0x2fc739['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x431724;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x13d94c,_0x31eb4b,_0xa15e77,_0x418f27){super(_0x13d94c,_0x31eb4b,_0xa15e77,_0x418f27),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3d1994=>_0x3d1994&&_0x3d1994[0x0]?_0x3d1994[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x324092,_0x45b74e)=>{let _0x12e1fc='';for(const _0x311923 of _0x324092)_0x12e1fc+='<p>'+ds(_0x311923['content'],_0x311923['color'])+'</p>';return _0x45b74e?_0x12e1fc:_0x52087e(_0x12e1fc,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x13d94c,'Accept\x20suggestion'),_0x444e0f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x13d94c,'Discard\x20suggestion'),_0x444e0f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x7ce399(_0x13d94c,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x16c6b4=this['bindTemplate'],_0x5829a8=[{'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':_0x16c6b4['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x16c6b4['to']('authoredAt',_0x3aa421=>this['_config']['formatDateTime'](_0x3aa421))}]}]},{'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']&&_0x5829a8['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2c18bc={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x16c6b4['if']('isActive','ck-suggestion-wrapper--active'),_0x16c6b4['to']('type',_0x717602=>'ck-suggestion-'+_0x717602),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':_0x5829a8}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2c18bc['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)),_0x2c18bc;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x386a6f,_0x470bd4,_0x4cf0a1)=>{this['_descriptionElement']['innerHTML']=_0x4cf0a1;});}['_createButton'](_0x3eceb4,_0x46e86f,_0x1e0d0b,_0x4ed2b5,_0x47fa36){const _0x19041f=new _0x1185ce(this['locale']);return _0x19041f['set']({'label':_0x3eceb4,'icon':_0x46e86f,'tooltip':!0x0,'tooltipPosition':_0x47fa36}),_0x19041f['extendTemplate']({'attributes':{'class':_0x1e0d0b}}),_0x19041f['on']('execute',()=>{this['fire'](_0x4ed2b5,this['_model']['id']);}),_0x19041f;}['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(_0x42ba7d,_0x1065aa){let _0x2a6d50='';return _0x2a6d50+=_0x42ba7d['split']('*')['map']((_0x5407da,_0x37b5d6)=>_0x37b5d6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5407da)+'</span>':us(_0x5407da))['join'](''),_0x1065aa&&(_0x2a6d50+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1065aa['value']+'\x22\x20title=\x22'+_0x1065aa['title']+'\x22></span>'),_0x2a6d50;}function us(_0x17b3fa){const _0x2e2964=document['createElement']('span');return _0x2e2964['innerText']=_0x17b3fa,_0x2e2964['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 _0x43febe{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3e6dce,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x911def){super(_0x911def),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4f2c5d=this['editor']['config'];_0x4f2c5d['define']('trackChanges.SuggestionThreadView',ne),_0x4f2c5d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4f2c5d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x17ef04,_0x193cb6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x46a114,_0x3f191d]of this['_handleControllerBuffer']){const _0x2d51c9=this['_suggestionToController']['has'](_0x46a114);_0x2d51c9||_0x3f191d?_0x2d51c9&&_0x3f191d&&this['_destroyController'](_0x46a114):this['_initializeController'](_0x46a114);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x17ef04,_0x193cb6);}['init'](){const _0x2458ea=this['editor'],_0x4c4391=_0x2458ea['plugins']['get']('TrackChangesEditing'),_0x2b767e=_0x2458ea['plugins']['get']('Annotations'),_0x32d951=_0x2458ea['plugins']['get']('EditorAnnotations'),_0x1e178c=_0x2458ea['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x32d951['addSourceCollector'](()=>{const _0x568025=[];for(const [_0x2ac68f,_0x4dce76]of Array['from'](this['_suggestionToController'])){const _0xcc015=_0x2ac68f['getAllAdjacentSuggestions'](),_0x33ba0c=[];for(const _0x3bf4f8 of _0xcc015){if(!_0x3bf4f8['isInContent'])continue;if(_0x3bf4f8['isMultiRange']){_0x33ba0c['push'](..._0x3bf4f8['getRanges']());continue;}const _0x4c382c=_0x3bf4f8['getFirstRange']();if(_0x33ba0c['length']>0x0){const _0x5bff90=_0x33ba0c[0x0]['getJoined'](_0x4c382c);if(_0x5bff90){_0x33ba0c[0x0]=_0x5bff90;continue;}}_0x33ba0c['push'](_0x4c382c);}_0x568025['push']([_0x4dce76['view'],_0x33ba0c]);}return _0x568025;}),this['listenTo'](_0x4c4391,'suggestionLoaded',(_0x3c288c,_0x34ee78)=>{this['listenTo'](_0x34ee78,'change:previous',(_0x59c4,_0x2f49ba,_0x8fe12e,_0x538c51)=>{_0x34ee78['isInContent']&&(null==_0x8fe12e?(this['_updateController'](_0x538c51['head']),this['_handleSuggestionControllerDelayed'](_0x34ee78,!0x1)):(this['_updateController'](_0x8fe12e['head']),null==_0x538c51&&this['_handleSuggestionControllerDelayed'](_0x34ee78,!0x0)));}),null!==_0x34ee78['previous']?this['_updateController'](_0x34ee78['head']):this['_handleSuggestionControllerDelayed'](_0x34ee78,!0x1);}),this['listenTo'](_0x4c4391,'suggestionUnloaded',(_0x4e4b7e,_0xea66ef,_0x315962)=>{this['stopListening'](_0xea66ef,'change:previous'),this['_handleControllerBuffer']['delete'](_0xea66ef),this['_suggestionToController']['has'](_0xea66ef)&&this['_destroyController'](_0xea66ef),_0x315962&&this['_updateController'](_0x315962['head']);}),this['listenTo'](_0x4c4391,'suggestionChanged',(_0x433641,_0x32d8c3)=>{this['_updateController'](_0x32d8c3);}),this['listenTo'](_0x2b767e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1e178c,'addComment',(_0x2adbc1,{threadId:_0x57add7,isFromAdapter:_0x27902f})=>{if(_0x27902f||!_0x4c4391['hasSuggestion'](_0x57add7))return;const _0x2ca0b1=_0x4c4391['getSuggestion'](_0x57add7);this['_suggestionToController']['get'](_0x2ca0b1)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4f6856=this['editor']['plugins']['get']('Annotations'),_0x1e77e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47f6bd=Array['from'](_0x4f6856['activeAnnotations'],_0x9f608c=>_0x9f608c['innerView'])['filter'](_0x56d74a=>this['_viewToController']['has'](_0x56d74a)),_0x5c320a=[];for(const _0x2bad86 of _0x47f6bd){const _0xda4b50=this['_viewToController']['get'](_0x2bad86)['model']['getAllAdjacentSuggestions']();_0x5c320a['push'](..._0xda4b50['reduce']((_0x583751,_0x47dca4)=>[..._0x583751,..._0x47dca4['getMarkerNames']()],[]));}_0x1e77e0['activeMarkers']=_0x5c320a;}['_addUIComponentsToFactory'](){const _0x53b126=this['editor'],_0x5b82f8=_0x53b126['locale'],_0x3ffd15=o(_0x5b82f8,'Track\x20changes'),_0x4b3533=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x3ffd15,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b82f8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b82f8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b82f8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b82f8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x36a1de of _0x4b3533)if(ae(_0x36a1de)){const _0x5b9571=_0x53b126['commands']['get'](_0x36a1de['model']['commandName']);_0x36a1de['model']['bind']('isOn','isEnabled')['to'](_0x5b9571,'value','isEnabled');}_0x53b126['ui']['componentFactory']['add']('trackChanges',_0x22d0e2=>this['_createToolbarButton'](_0x22d0e2,_0x4b3533,_0x3ffd15)),_0x53b126['ui']['componentFactory']['add']('menuBar:trackChanges',_0x55e078=>this['_createMenuBarMenu'](_0x55e078,_0x4b3533,_0x3ffd15));}['_createToolbarButton'](_0x4cb165,_0x4fd70b,_0x46db52){const _0x2dd9a6=zt(_0x4cb165,Zt),_0x2c7811=this['editor']['commands']['get']('trackChanges');_0x2dd9a6['buttonView']['set']({'tooltip':_0x46db52,'label':_0x46db52,'icon':ie}),_0x2dd9a6['buttonView']['bind']('isOn')['to'](_0x2c7811,'value'),_0x2dd9a6['buttonView']['on']('execute',()=>{_0x2c7811['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x2dd9a6,_0x4fd70b,{'role':'menu'});const _0x13333f=[];for(const _0xd5ea7 of _0x4fd70b)ae(_0xd5ea7)&&_0x13333f['push'](this['editor']['commands']['get'](_0xd5ea7['model']['commandName']));const _0x2fcaca=_0x2dd9a6['buttonView'];return _0x2fcaca['actionView']['unbind']('isEnabled'),_0x2fcaca['arrowView']['unbind']('isEnabled'),_0x2fcaca['actionView']['bind']('isEnabled')['to'](_0x2c7811,'isEnabled'),_0x2fcaca['arrowView']['bind']('isEnabled')['toMany'](_0x13333f,'isEnabled',(..._0x5c0ac6)=>_0x5c0ac6['some'](_0x157dba=>_0x157dba)),_0x2dd9a6['on']('execute',_0x1e7514=>{this['editor']['execute'](_0x1e7514['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2dd9a6;}['_createMenuBarMenu'](_0x3a9289,_0xccc2ee,_0x5160e3){const _0x3c51b1=new Kt(_0x3a9289),_0x52ee0a=this['editor']['commands']['get']('trackChanges');_0x3c51b1['buttonView']['set']({'label':_0x5160e3,'icon':ie});const _0x5d6f25=new Qt(_0x3a9289);for(const _0xaa0c7c of _0xccc2ee){if('separator'==_0xaa0c7c['type']){_0x5d6f25['items']['add'](new Jt(_0x3a9289));continue;}const _0x3d1889=new Xt(_0x3a9289,_0x3c51b1),_0x3d9f88=new Yt(_0x3a9289),_0x4697ef=_0xaa0c7c['model'];_0x3d9f88['bind'](...Object['keys'](_0x4697ef))['to'](_0x4697ef),_0x3d9f88['delegate']('execute')['to'](_0x3c51b1),_0x3d9f88['on']('execute',()=>{this['editor']['execute'](_0x4697ef['commandName']),this['editor']['editing']['view']['focus']();}),_0x3d1889['children']['add'](_0x3d9f88),_0x5d6f25['items']['add'](_0x3d1889);}return _0x3c51b1['bind']('isEnabled')['to'](_0x52ee0a,'isEnabled'),_0x3c51b1['panelView']['children']['add'](_0x5d6f25),_0x3c51b1;}['_initializeController'](_0x2ad47f){const _0x38ea76=this['editor'],_0x46c606=_0x38ea76['config'],_0x42db5b=_0x38ea76['plugins']['get']('Annotations'),_0x397530=_0x38ea76['plugins']['get']('CommentsRepository'),_0x93a121=_0x38ea76['plugins']['get']('EditorAnnotations'),_0x192d70=_0x38ea76['plugins']['get'](_0x3e6dce)['me'],_0x28247a=_0x46c606['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x39e27c,CommentThreadInputView:_0x10547e}=_0x38ea76['plugins']['get']('CommentsUI');let _0x1d0ec9,_0x1b45fd;this['_annotationViews']['has'](_0x2ad47f['id'])?(_0x1b45fd=this['_annotationViews']['get'](_0x2ad47f['id']),_0x1d0ec9=_0x1b45fd['mainView']):(_0x1d0ec9=new _0x28247a(_0x38ea76['locale'],_0x2ad47f,_0x192d70,{'disableComments':this['_disableComments'],'editorConfig':_0x46c606['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x46c606['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x46c606['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x46c606['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x45e470(_0x46c606['get']('locale')),'CommentView':_0x46c606['get']('comments')['CommentView'],'CommentsListView':_0x39e27c,'CommentThreadInputView':_0x10547e}),_0x1d0ec9['acceptButton']['on']('execute',()=>{_0x38ea76['editing']['view']['focus']();}),_0x1d0ec9['discardButton']['on']('execute',()=>{_0x38ea76['editing']['view']['focus']();}),_0x1b45fd=_0x42db5b['createAnnotationView'](this['editor']['locale'],_0x1d0ec9),_0x1b45fd['bind']('isDirty')['to'](_0x1d0ec9,'isDirty'),_0x1b45fd['bind']('length')['to'](_0x1d0ec9),_0x1b45fd['bind']('type')['to'](_0x1d0ec9,'type',_0x496bff=>'suggestion-'+_0x496bff),this['_annotationViews']['set'](_0x2ad47f['id'],_0x1b45fd));const _0x5bb233=_0x397530['createCommentThreadController'](_0x2ad47f['commentThread'],_0x1d0ec9),_0x27d6b8=new oe(_0x38ea76,_0x2ad47f,_0x1d0ec9,_0x5bb233),_0x3d5853=_0x2ad47f['getAllAdjacentSuggestions']()['filter'](_0x4430e9=>_0x4430e9['isInContent']);_0x1d0ec9['descriptionParts']=_0x38ea76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3d5853),this['_suggestionToController']['set'](_0x2ad47f,_0x27d6b8),this['_viewToController']['set'](_0x1d0ec9,_0x27d6b8);const _0x4e8c8c=_0x42db5b['createAnnotation']({'view':_0x1b45fd,'target':()=>{const _0x2bbad0=[],_0x49d1d1=_0x2ad47f['getAllAdjacentSuggestions']()['filter'](_0x1a18ed=>_0x1a18ed['isInContent']);for(const _0x57fd53 of _0x49d1d1)_0x2bbad0['push'](..._0x57fd53['getMarkers']());return _0x272cb1(_0x38ea76['editing'],_0x2bbad0);},'type':()=>'suggestion-'+_0x27d6b8['view']['type']});_0x397530['_bindAnnotationToEditors'](_0x1d0ec9,_0x4e8c8c),_0x42db5b['add'](_0x4e8c8c),_0x93a121['registerAnnotation'](_0x4e8c8c);}['_destroyController'](_0x768f47){const _0x50ef9f=this['editor']['plugins']['get']('CommentsRepository'),_0x22d74a=this['editor']['plugins']['get']('Annotations'),_0x56a9d0=this['_suggestionToController']['get'](_0x768f47),_0x3f7b3b=_0x56a9d0['view'],_0x59b18e=_0x22d74a['getByInnerView'](_0x3f7b3b);_0x50ef9f['_unbindEditors'](_0x3f7b3b),_0x59b18e&&_0x22d74a['remove'](_0x59b18e),this['_suggestionToController']['delete'](_0x768f47),this['_viewToController']['delete'](_0x3f7b3b),_0x56a9d0['destroy']();}['_updateController'](_0x5945e5){if(!_0x5945e5['isInContent']||!this['_suggestionToController']['has'](_0x5945e5))return;const _0x3fea7d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x242eed=this['_suggestionToController']['get'](_0x5945e5),_0x6b3de2=_0x5945e5['getAllAdjacentSuggestions']();_0x242eed['view']['descriptionParts']=_0x3fea7d['descriptionFactory']['getDescriptions'](_0x6b3de2);}['destroy'](){for(const _0x4ceb1f of this['_suggestionToController']['keys']())this['_destroyController'](_0x4ceb1f);for(const _0x4f277f of this['_annotationViews']['values']())_0x4f277f['mainView']['destroy']();super['destroy']();}}function ae(_0x49553b){return'model'in _0x49553b;}class k extends _0x43febe{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x39c346){this['editor']['plugins']['get'](p)['adapter']=_0x39c346;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x537800){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x537800);}['getSuggestions']({skipNotAttached:_0x3a3368=!0x1,toJSON:_0xbe162d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3a3368,'toJSON':_0xbe162d});}['getSuggestion'](_0x14c6ed){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x14c6ed);}}const T=['Pagination'];class P extends _0x43febe{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x2d3773=this['editor'];if(_0x2d3773['config']['define']('trackChangesData.editorCreator',_0x17ba49=>{const _0x4b0cf0=_0x2d3773['model']['document']['getRootNames']()['reduce']((_0xb52534,_0x365da5)=>(_0xb52534[_0x365da5]='',_0xb52534),{});return _0x2d3773['constructor']['create'](_0x4b0cf0,_0x17ba49);}),'function'!=typeof _0x2d3773['config']['get']('trackChangesData')['editorCreator'])throw new _0x4dceac('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x36ad2f){return N(this['editor'],!0x0,_0x36ad2f);}['getDataWithDiscardedSuggestions'](_0x33d85f){return N(this['editor'],!0x1,_0x33d85f);}}class D extends _0x43febe{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0xe7a1b2){super(_0xe7a1b2),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(_0x367f2f){return void 0x0!==_0x367f2f['getRootsAttributes'];}async function N(_0x5e1cc9,_0x437fe3,_0x1f8be7){const _0x271a5f=_0x582e0e(_0x5e1cc9,T);_0x271a5f['plugins']['push'](p,D),_0x271a5f['rootsAttributes']=v(_0x5e1cc9)?_0x5e1cc9['getRootsAttributes']():void 0x0;const _0x3eb586=document['createDocumentFragment'](),_0x124cdd=_0x5e1cc9['config']['get']('trackChangesData')['editorCreator'],_0xac0dc9=await _0x124cdd(_0x271a5f,()=>function(_0x14d96f){const _0x17f4b5=document['createElement']('div');return _0x14d96f['appendChild'](_0x17f4b5),_0x17f4b5;}(_0x3eb586));!function(_0x5775f9,_0x5518af){const _0x30eeae=_0x5775f9['model']['document']['getRootNames']()['reduce']((_0x590b2d,_0x39396c)=>(_0x590b2d[_0x39396c]=_0x5775f9['data']['get']({'rootName':_0x39396c}),_0x590b2d),{}),_0x12c024=_0x5775f9['plugins']['get']('Users')['users']['map'](_0x42b508=>({'id':_0x42b508['id'],'name':_0x42b508['name']})),_0x525287=_0x5775f9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf1e94d=_0x5775f9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5d1b2a=_0x5518af['plugins']['get']('Users'),_0xbd9d91=_0x5518af['plugins']['get']('TrackChangesEditing'),_0x301963=_0x5518af['plugins']['get']('CommentsRepository');for(const _0x20fb70 of _0x12c024)_0x5d1b2a['getUser'](_0x20fb70['id'])||_0x5d1b2a['addUser'](_0x20fb70);_0x5d1b2a['me']||_0x5d1b2a['useAnonymousUser']();for(const _0x2936dd of _0x525287)_0xbd9d91['addSuggestionData'](_0x2936dd);for(const _0x26b2b1 of _0xf1e94d)_0x301963['addCommentThread'](_0x26b2b1);_0x5518af['data']['set'](_0x30eeae);}(_0x5e1cc9,_0xac0dc9),_0xac0dc9['execute'](_0x437fe3?'acceptAllSuggestions':'discardAllSuggestions');const _0x177669=v(_0xac0dc9)?_0xac0dc9['getFullData'](_0x1f8be7):_0xac0dc9['data']['get'](_0x1f8be7);return await _0xac0dc9['destroy'](),_0x177669;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x576da6,PendingActions as _0x12cc2c,icons as _0x3e8e25}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xdf6052,ObservableMixin as _0x321ac2,uid as _0x5c5ac9,insertToPriorityArray as _0x54f098,priorities as _0x2d5527,logWarning as _0x19329e,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x46e0b2,View as _0x40d4ce,ButtonView as _0xb5ad75,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 _0x4e52c7,hashObject as _0x2794a3,surroundingMarkersDetector as _0x383e54,trimHtml as _0x1f4ec3,UserView as _0x1f4be5,getDateTimeFormatter as _0x5acded,getAllMarkersDomElementsSorted as _0x3ac457,sanitizeEditorConfig as _0xc6a1f9}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1bf6ec,LiveRange as _0x264ebf,LivePosition as _0x309861}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x53c805,toWidget as _0x4092b9}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x53355b,set as _0xfb0b98,isEqual as _0x48fe0,unset as _0xbd86c9,omit as Bt}from'lodash-es';import{Delete as _0x3ffd54,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1589f0,ShiftEnter as _0x5bddde}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x1e13aa,_0x1cfa25){super(_0x1e13aa),this['_enabledCommands']=_0x1cfa25,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 _0x5cc0ae of this['editor']['commands']['commands']())_0x5cc0ae['affectsData']&&!this['_enabledCommands']['has'](_0x5cc0ae)&&_0x5cc0ae['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x44517e of this['editor']['commands']['commands']())_0x44517e['affectsData']&&!this['_enabledCommands']['has'](_0x44517e)&&_0x44517e['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0xbac1b4,_0x2841fb){super(_0xbac1b4),this['_suggestions']=_0x2841fb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4d5d7d){const _0x207685=this['_suggestions']['get'](_0x4d5d7d);if(!_0x207685)throw new _0xdf6052('track-changes-accept-suggestion-not-found',this);const _0x4ce2a0=_0x207685['getRanges']();this['editor']['model']['canEditAt'](_0x4ce2a0)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x207685);}}class B extends ts{['_suggestions'];constructor(_0x473229,_0x49cf82){super(_0x473229),this['_suggestions']=_0x49cf82,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x395415){const _0x51bb7a=this['_suggestions']['get'](_0x395415);if(!_0x51bb7a)throw new _0xdf6052('track-changes-discard-suggestion-not-found',this);const _0x2a3d04=_0x51bb7a['getRanges']();this['editor']['model']['canEditAt'](_0x2a3d04)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x51bb7a);}}function ss(_0x13e9c8){return _0x13e9c8['sort']((_0x4c138b,_0x59a06a)=>'deletion'==_0x4c138b['type']&&'deletion'!=_0x59a06a['type']?-0x1:'deletion'!=_0x4c138b['type']&&'deletion'==_0x59a06a['type']?0x1:0x0);}function to(_0x3fb17d,_0x362f10){let _0xcc6d95,_0x230fe2=0x0;const _0x238b56=[],_0x4aa3eb=_0x362f10['schema'];for(;_0x230fe2<_0x3fb17d['length'];){const _0x798261=_0x3fb17d[_0x230fe2],_0x2b8f28=_0x3fb17d[_0x230fe2+0x1];_0xcc6d95||(_0xcc6d95=_0x362f10['createPositionBefore'](_0x798261)),co(_0x362f10,_0x798261,_0x2b8f28)||(_0x238b56['push'](_0x362f10['createRange'](_0xcc6d95,_0x4aa3eb['isObject'](_0x798261)?_0x362f10['createPositionAfter'](_0x798261):_0x362f10['createPositionAt'](_0x798261,'end'))),_0xcc6d95=null),_0x230fe2++;}return _0x238b56;}function co(_0x1e2c0a,_0x3999ee,_0x32ba71){if(!_0x32ba71)return!0x1;const _0x588080=_0x1e2c0a['createPositionAfter'](_0x3999ee),_0x434150=_0x1e2c0a['createPositionBefore'](_0x32ba71);return _0x588080['isTouching'](_0x434150);}function rs(_0x3ffab1,_0x273c0a,_0x167798){for(;_0x167798['length'];){const _0x3956c4=_0x167798['splice'](0x0,0x64);_0x3ffab1['change'](()=>{for(const _0x33354a of _0x3956c4)_0x33354a['isInContent']&&_0x273c0a['execute'](_0x33354a['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x2fadc5,_0x215f09,_0x57a2cc){super(_0x2fadc5),this['_command']=_0x215f09,this['_suggestions']=_0x57a2cc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x48f330=Array['from'](this['_suggestions']['values']())['some'](_0x1e082f=>_0x1e082f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x48f330;}['execute'](){const _0x15e821=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4faa66 of _0x15e821){const _0xba8f6b=_0x4faa66['getRanges']();if(!this['editor']['model']['canEditAt'](_0xba8f6b))return;}rs(this['editor']['model'],this['_command'],_0x15e821);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3f7f39,_0x2d0dd7,_0x38e3d5){super(_0x3f7f39),this['_command']=_0x2d0dd7,this['_suggestions']=_0x38e3d5,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1ecc87=this['editor']['model']['document']['selection'],_0x5d425c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1712ba,_0x5e893a){const _0x1473f3=Array['from'](_0x1712ba['getRanges']()),_0x31dc19=new Set();for(const _0x3a5784 of _0x5e893a)if(_0x3a5784['isInContent']){for(const _0x28153e of _0x1473f3)for(const _0x2b105d of _0x3a5784['getRanges']())(_0x28153e['isIntersecting'](_0x2b105d)||_0x1712ba['isCollapsed']&&!_0x3a5784['isMultiRange']&&_0x3a5784['next']&&_0x2b105d['end']['isTouching'](_0x28153e['start']))&&_0x31dc19['add'](_0x3a5784);}return _0x31dc19;}(_0x1ecc87,_0x5d425c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x477432=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2f1d8c of _0x477432){const _0x4a046a=_0x2f1d8c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a046a))return;}rs(this['editor']['model'],this['_command'],_0x477432);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x321ac2(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x38f06d,_0x4f3dc5){super(),this['id']=_0x4f3dc5['id'],this['type']=_0x4f3dc5['type'],this['subType']=_0x4f3dc5['subType']||null,this['author']=_0x4f3dc5['author'],this['creator']=_0x4f3dc5['creator']||_0x4f3dc5['author'],this['isExternal']=Boolean(_0x4f3dc5['attributes']&&_0x4f3dc5['attributes']['@external']),this['data']=null,this['_model']=_0x38f06d,this['_onAccept']=_0x4f3dc5['onAccept'],this['_onDiscard']=_0x4f3dc5['onDiscard'],this['_onAttributesChange']=_0x4f3dc5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4f3dc5['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 _0x2b4ec1=this;for(;_0x2b4ec1['previous'];)_0x2b4ec1=_0x2b4ec1['previous'];return _0x2b4ec1;}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'](_0xf3dc14){this['_markerNames']['add'](_0xf3dc14);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xb7e184=>this['_model']['markers']['get'](_0xb7e184))['filter'](_0x2f5ee6=>_0x2f5ee6);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x445c85=>{for(const _0x16a2b1 of this['getMarkers']())_0x445c85['removeMarker'](_0x16a2b1);}),this['_markerNames']['clear']();}['removeMarker'](_0x2fa155){this['_model']['change'](_0x3159f1=>{_0x3159f1['removeMarker'](_0x2fa155);}),this['_markerNames']['delete'](_0x2fa155);}['addRange'](_0x2b7d88){const _0x541979='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x541979),this['_model']['change'](_0x239689=>{_0x239689['addMarker'](_0x541979,{'range':_0x2b7d88,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2e704d){for(const _0x15b09b of this['getRanges']())if(_0x15b09b['isIntersecting'](_0x2e704d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1ab2e8=>_0x1ab2e8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2c744f,_0x20c5ee)=>[..._0x2c744f,..._0x20c5ee['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4971a1=this['getRanges']();if(0x1!=_0x4971a1['length'])return null;const _0x456e83=_0x4971a1[0x0],_0xd46e97=_0x456e83['start']['nodeAfter'],_0x4caa5d=_0x456e83['end']['nodeBefore'];return _0xd46e97 instanceof _0x1bf6ec?_0xd46e97!=_0x4caa5d?null:_0xd46e97: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 _0x300af1=[];let _0x5436df=this['head'];for(;_0x5436df;)_0x300af1['push'](_0x5436df),_0x5436df=_0x5436df['next'];return _0x300af1;}['setAttribute'](_0x1d584c,_0x2d0a82){const _0x46f591=_0x53355b(this['attributes']);_0xfb0b98(_0x46f591,_0x1d584c,_0x2d0a82),_0x48fe0(_0x46f591,this['attributes'])||(this['attributes']=_0x46f591,this['_onAttributesChange'](_0x46f591));}['removeAttribute'](_0x1481b2){const _0x4e2b90=_0x53355b(this['attributes']);_0xbd86c9(_0x4e2b90,_0x1481b2),_0x48fe0(_0x4e2b90,this['attributes'])||(this['attributes']=_0x4e2b90,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 _0x5c5ac9()['substr'](0x1,0x5);}}function o(_0x52cb76,_0x550e4c,_0x4ce580){const t=_0x52cb76['t'];switch(_0x550e4c){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',_0x4ce580);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4ce580);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4ce580);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4ce580);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4ce580);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',_0x4ce580);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4ce580);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',_0x4ce580);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4ce580);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4ce580);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4ce580);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4ce580);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4ce580);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4ce580);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4ce580);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4ce580);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4ce580);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4ce580);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4ce580);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4ce580);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4ce580);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4ce580);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4ce580);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'},_0x4ce580);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4ce580);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4ce580);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4ce580);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4ce580);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4ce580);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'},_0x4ce580);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4ce580);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4ce580);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4ce580);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4ce580);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'},_0x4ce580);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4ce580);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'},_0x4ce580);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'},_0x4ce580);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4ce580);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'},_0x4ce580);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4ce580);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'},_0x4ce580);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4ce580);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4ce580);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'},_0x4ce580);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'},_0x4ce580);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 _0x550e4c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2181e9,_0x5d26c5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2181e9,this['_locale']=_0x5d26c5;}['getDescriptions'](_0x1053a8){const _0x476f52=[],_0x203623=new Set(),_0x15722d=new Set();for(let _0x38a31d=0x0;_0x38a31d<_0x1053a8['length'];_0x38a31d++){const _0x49a72=_0x1053a8[_0x38a31d];if(!_0x49a72['isInContent'])continue;const _0x4388ce=this['_handleCustomCallbackDescription'](_0x49a72);if(_0x4388ce){if(null!=_0x49a72['subType']){if(_0x203623['has'](_0x49a72['subType']))continue;_0x203623['add'](_0x49a72['subType']);}_0x476f52['push'](_0x4388ce);}else{if('attribute'!=_0x49a72['type'])'insertion'!=_0x49a72['type']&&'deletion'!=_0x49a72['type']||this['_handleInsertRemoveSuggestionDescription'](_0x476f52,_0x49a72,_0x1053a8[_0x38a31d+0x1]);else{const _0x43f406=_0x49a72['data']['key'];if(_0x15722d['has'](_0x43f406))continue;_0x15722d['add'](_0x49a72['data']['key']),_0x43f406==m?this['_handleRenameSuggestionDescription'](_0x476f52,_0x49a72):this['_handleAttributeSuggestionDescription'](_0x476f52,_0x49a72);}}}return this['_resolveDescriptionItems'](_0x476f52);}['registerDescriptionCallback'](_0x13cdca){this['_customCallbacks']['push'](_0x13cdca);}['registerElementLabel'](_0x136a54,_0x55cc3c,_0x571170=_0x2d5527['normal']){'function'==typeof _0x136a54?_0x54f098(this['_itemLabelsCallbacks'],{'matchingCallback':_0x136a54,'label':_0x55cc3c,'priority':_0x571170}):this['_itemLabels']['set'](_0x136a54,_0x55cc3c);}['registerAttributeLabel'](_0x780e64,_0x56bf40){this['_attributeLabels']['set'](_0x780e64,_0x56bf40);}['getItemLabel'](_0x35d0b9,_0x16d14d=0x1){let _0x513329;for(const _0x431326 of this['_itemLabelsCallbacks'])if(_0x431326['matchingCallback'](_0x35d0b9)){_0x513329=_0x431326['label'];break;}return _0x513329||(_0x513329=this['_itemLabels']['get'](_0x35d0b9['name'])),_0x513329?_0x513329(_0x16d14d):0x1!==_0x16d14d?_0x16d14d+'\x20'+_0x35d0b9['name']+'s':''+_0x35d0b9['name'];}['_addDescriptionItems'](_0x99ac43,_0x51b517){const _0x3c5e1f=_0x51b517['getFirstRange']()['getWalker'](),_0x2d2001='insertion'==_0x51b517['type']?'add':'remove';for(const _0x495704 of _0x3c5e1f){const _0x873b04=_0x495704['item'],_0x59a327=_0x99ac43[_0x99ac43['length']-0x1];if(_0x873b04['is']('$textProxy'))_0x59a327&&_0x59a327['type']['indexOf']('Container')>-0x1&&_0x99ac43['pop'](),_0x59a327&&'text'==_0x59a327['type']?_0x59a327[_0x2d2001]+=_0x873b04['data']:_0x99ac43['push']({'type':'text','add':'add'==_0x2d2001?_0x873b04['data']:'','remove':'remove'==_0x2d2001?_0x873b04['data']:''});else{if(this['_schema']['isObject'](_0x873b04)){const _0x17e2c7=_0x873b04;if(_0x59a327&&_0x59a327['type']['indexOf']('Container')>-0x1&&_0x99ac43['pop'](),'elementEnd'==_0x495704['type'])continue;_0x59a327&&_0x59a327['type']==_0x2d2001+'Object'&&_0x59a327['element']['name']==_0x17e2c7['name']?_0x59a327['quantity']++:_0x99ac43['push']({'type':_0x2d2001+'Object','element':_0x17e2c7,'quantity':0x1}),_0x3c5e1f['skip'](_0xa264da=>!('elementEnd'==_0xa264da['type']&&_0xa264da['item']==_0x873b04));}else{if(this['_schema']['checkChild'](_0x873b04,'$text')||_0x873b04['is']('element','softBreak')){const _0x56667a=_0x873b04;if('add'==_0x2d2001&&'elementStart'==_0x495704['type']||'remove'==_0x2d2001&&'elementEnd'==_0x495704['type'])continue;if(_0x59a327&&-0x1==_0x59a327['type']['indexOf']('Container')){'text'==_0x59a327['type']&&(_0x59a327[_0x2d2001]+='\x0a');continue;}let _0x118a57;if(_0x118a57='add'==_0x2d2001?_0x56667a['nextSibling']&&!this['_schema']['isObject'](_0x56667a['nextSibling'])?_0x56667a['nextSibling']:null:_0x56667a['previousSibling']&&!this['_schema']['isObject'](_0x56667a['previousSibling'])?_0x56667a['previousSibling']:null,_0x56667a['isEmpty']||_0x118a57&&_0x118a57['isEmpty']){const _0x394e55=_0x118a57&&_0x118a57['isEmpty']?_0x118a57:_0x56667a;_0x59a327&&_0x59a327['type']==_0x2d2001+'EmptyContainer'&&_0x59a327['element']['name']==_0x394e55['name']?_0x59a327['quantity']++:_0x99ac43['push']({'type':_0x2d2001+'EmptyContainer','element':_0x394e55,'quantity':0x1});}else _0x99ac43['push']({'type':_0x2d2001+'Container','element':_0x56667a});}}}}}['_resolveDescriptionItems'](_0x3a93be){const _0x281e97=this['_locale'],_0x6afd74=[],_0x4c4e5f=[],_0x3de4ad=[];for(const _0x5d3055 of _0x3a93be)switch(_0x5d3055['type']){case'text':if(_0x5d3055['add']=_0x5d3055['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5d3055['remove']=_0x5d3055['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5d3055['add']&&''!=_0x5d3055['remove']){_0x6afd74['push']({'type':'replace','content':o(_0x281e97,'REPLACE_TEXT',['\x22'+_0x5d3055['remove']+'\x22','\x22'+_0x5d3055['add']+'\x22'])});continue;}if(null!=_0x5d3055['add']['match'](/^ +$/)){_0x6afd74['push']({'type':'insertion','content':o(_0x281e97,'*Insert:*\x20%0',o(_0x281e97,'ELEMENT_SPACE',_0x5d3055['add']['length']))});continue;}if(null!=_0x5d3055['remove']['match'](/^ +$/)){_0x6afd74['push']({'type':'deletion','content':o(_0x281e97,'*Remove:*\x20%0',o(_0x281e97,'ELEMENT_SPACE',_0x5d3055['remove']['length']))});continue;}if(''!=_0x5d3055['add']){_0x6afd74['push']({'type':'insertion','content':o(_0x281e97,'*Insert:*\x20%0','\x22'+_0x5d3055['add']+'\x22')});continue;}_0x6afd74['push']({'type':'deletion','content':o(_0x281e97,'*Remove:*\x20%0','\x22'+_0x5d3055['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x6afd74['push']({'type':'insertion','content':o(_0x281e97,'*Insert:*\x20%0',this['getItemLabel'](_0x5d3055['element'],_0x5d3055['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x6afd74['push']({'type':'deletion','content':o(_0x281e97,'*Remove:*\x20%0',this['getItemLabel'](_0x5d3055['element'],_0x5d3055['quantity']))});continue;case'addContainer':_0x6afd74['push']({'type':'insertion','content':o(_0x281e97,'*Split:*\x20%0',this['getItemLabel'](_0x5d3055['element'],_0x5d3055['quantity']))});continue;case'removeContainer':_0x6afd74['push']({'type':'deletion','content':o(_0x281e97,'*Merge:*\x20%0',this['getItemLabel'](_0x5d3055['element'],_0x5d3055['quantity']))});continue;case'addFormat':_0x4c4e5f['push'](_0x5d3055['key']);continue;case'removeFormat':_0x3de4ad['push'](_0x5d3055['key']);continue;default:_0x6afd74['push'](_0x5d3055);}if(_0x4c4e5f['length']){const _0x216eff=_0x4c4e5f['map'](_0x30645e=>this['_attributeLabels']['has'](_0x30645e)?this['_attributeLabels']['get'](_0x30645e):_0x30645e)['join'](',\x20');_0x6afd74['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x216eff)});}if(_0x3de4ad['length']){const _0xa17678=_0x3de4ad['map'](_0x2d16d5=>this['_attributeLabels']['has'](_0x2d16d5)?this['_attributeLabels']['get'](_0x2d16d5):_0x2d16d5)['join'](',\x20');_0x6afd74['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xa17678)});}return _0x6afd74;}['_handleCustomCallbackDescription'](_0x411289){for(const _0x12a91b of this['_customCallbacks']){const _0x3b2b93=_0x12a91b(_0x411289);if(_0x3b2b93&&'type'in _0x3b2b93)return _0x3b2b93;}}['_handleAttributeSuggestionDescription'](_0x497f23,_0x9bdf86){const _0x36a66e=_0x9bdf86['data'],_0x2a213b=void 0x0===_0x36a66e['newValue']?'removeFormat':'addFormat';_0x497f23['push']({'type':_0x2a213b,'key':_0x36a66e['key']});}['_handleRenameSuggestionDescription'](_0x2184f0,_0x53354e){_0x2184f0['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x53354e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x424f23,_0x861d1d,_0x663979){if(this['_addDescriptionItems'](_0x424f23,_0x861d1d),_0x663979&&_0x663979['getFirstRange']()&&!_0x861d1d['getFirstRange']()['end']['isEqual'](_0x663979['getFirstRange']()['start'])){const _0x53e987=_0x424f23[_0x424f23['length']-0x1],_0x9229a6='insertion'==_0x861d1d['type']?'add':'remove';_0x53e987&&'text'==_0x53e987['type']&&(_0x53e987[_0x9229a6]+='\x0a');}}}class E extends _0x576da6{['afterInit'](){const _0x412a65=this['editor'],_0x500c51=_0x412a65['plugins']['get']('TrackChangesEditing');_0x412a65['commands']['get']('showAIAssistant')&&_0x500c51['enableCommand']('showAIAssistant');}}class V extends _0x576da6{['afterInit'](){const _0xb09d=this['editor'],_0x31fd00=_0xb09d['locale'];if(!_0xb09d['plugins']['has']('AlignmentEditing'))return;const _0x337c36=_0xb09d['plugins']['get']('TrackChangesEditing');_0x337c36['enableDefaultAttributesIntegration']('alignment'),_0x337c36['registerBlockAttribute']('alignment'),_0x337c36['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x31fd00,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16d65b=this['editor'],_0x2df394=_0x16d65b['locale'];_0x16d65b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17d304=>{if('formatBlock'!=_0x17d304['type'])return;const {data:_0x226f4f}=_0x17d304;if(_0x226f4f&&'alignment'==_0x226f4f['commandName']){const _0x3d2d04=_0x226f4f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2df394,'*Format:*\x20%0',function(_0x31a40a){switch(_0x31a40a){case'left':return o(_0x2df394,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2df394,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2df394,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2df394,'FORMAT_JUSTIFY_TEXT');}}(_0x3d2d04))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x576da6{['afterInit'](){const _0x557a52=this['editor'],_0xceb3eb=_0x557a52['plugins']['get']('TrackChangesEditing'),_0x969d20=_0x557a52['locale'];for(const _0x24d288 of ti){if(!_0x557a52['plugins']['has'](_0x24d288))continue;const _0x4ba221=_0x24d288['slice'](0x0,-0x7)['toLowerCase'](),_0x5698a6='FORMAT_'+_0x4ba221['toUpperCase']();_0xceb3eb['enableDefaultAttributesIntegration'](_0x4ba221),_0xceb3eb['registerInlineAttribute'](_0x4ba221),_0xceb3eb['descriptionFactory']['registerAttributeLabel'](_0x4ba221,o(_0x969d20,_0x5698a6));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a8b1c=this['editor'],_0x1a98fe=_0x2a8b1c['locale'],_0x4f7e98=_0x2a8b1c['plugins']['get']('TrackChangesEditing');function _0x3f572e(_0x6af6d6,_0x3c3fdd){_0x4f7e98['descriptionFactory']['registerDescriptionCallback'](_0x2e757f=>{if('formatInline'!=_0x2e757f['type'])return;const {data:_0xb92db3}=_0x2e757f;return _0xb92db3&&_0xb92db3['commandName']===_0x6af6d6?_0xb92db3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a98fe,'*Format:*\x20%0',_0x3c3fdd)}:{'type':'format','content':o(_0x1a98fe,'*Remove\x20format:*\x20%0',_0x3c3fdd)}:void 0x0;});}_0x3f572e('bold',o(_0x1a98fe,'FORMAT_BOLD')),_0x3f572e('italic',o(_0x1a98fe,'FORMAT_ITALIC')),_0x3f572e('underline',o(_0x1a98fe,'FORMAT_UNDERLINE')),_0x3f572e('code',o(_0x1a98fe,'FORMAT_CODE')),_0x3f572e('strikethrough',o(_0x1a98fe,'FORMAT_STRIKETHROUGH')),_0x3f572e('subscript',o(_0x1a98fe,'FORMAT_SUBSCRIPT')),_0x3f572e('superscript',o(_0x1a98fe,'FORMAT_SUPERSCRIPT'));}}class O extends _0x576da6{['afterInit'](){const _0x1723e4=this['editor'],_0x281a5c=_0x1723e4['locale'];if(!_0x1723e4['plugins']['has']('BlockQuoteEditing'))return;const _0x56b2c5=_0x1723e4['plugins']['get']('TrackChangesEditing'),_0x33dc02=this['editor']['commands']['get']('blockQuote');_0x56b2c5['enableCommand']('blockQuote',(_0x2929e5,_0x94c59a={})=>{const _0x3e3e61=this['editor']['model']['document']['selection'],_0x224bc7=_0x94c59a&&void 0x0!==_0x94c59a['forceValue']?_0x94c59a['forceValue']:!_0x33dc02['value'];let _0xc61b51=[];if(_0x224bc7){const _0x485b7a=Array['from'](_0x3e3e61['getSelectedBlocks']())['filter'](_0x299f58=>oo(_0x299f58)||function(_0x5dd549,_0x572391){const _0x4d30af=_0x572391['checkChild'](_0x5dd549['parent'],'blockQuote'),_0x32b544=_0x572391['checkChild'](['$root','blockQuote'],_0x5dd549);return _0x4d30af&&_0x32b544;}(_0x299f58,this['editor']['model']['schema']));_0xc61b51=to(_0x485b7a,_0x1723e4['model']);}else{const _0x2db8c3=Array['from'](_0x3e3e61['getSelectedBlocks']())['filter'](_0x5779f9=>oo(_0x5779f9));_0xc61b51=to(_0x2db8c3,_0x1723e4['model']);}_0x1723e4['model']['change'](()=>{for(const _0x37f6cb of _0xc61b51)_0x56b2c5['markBlockFormat'](_0x37f6cb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x224bc7}]});});}),_0x56b2c5['descriptionFactory']['registerDescriptionCallback'](_0x1cceae=>{const {data:_0x30819e}=_0x1cceae;if(_0x30819e&&'blockQuote'==_0x30819e['commandName']){const _0x43ebaa=o(_0x281a5c,'ELEMENT_BLOCK_QUOTE');return _0x30819e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x281a5c,'*Set\x20format:*\x20%0',_0x43ebaa)}:{'type':'format','content':o(_0x281a5c,'*Remove\x20format:*\x20%0',_0x43ebaa)};}});}}function oo(_0x3b46a1){return'blockQuote'==_0x3b46a1['parent']['name'];}class F extends _0x576da6{['afterInit'](){const _0x48d475=this['editor'];_0x48d475['plugins']['has']('CaseChange')&&(_0x48d475['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x48d475['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x48d475['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x576da6{['afterInit'](){const _0x44c9df=this['editor'];_0x44c9df['commands']['get']('ckbox')&&_0x44c9df['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x576da6{['afterInit'](){const _0x4be89e=this['editor'];if(!_0x4be89e['plugins']['has']('CodeBlock'))return;const _0x25950d=_0x4be89e['plugins']['get']('TrackChangesEditing'),_0x59bf36=_0x4be89e['locale'],_0x47789d=_0x4be89e['config']['get']('codeBlock')['languages'],_0x2f1741=_0x4be89e['commands']['get']('codeBlock');_0x25950d['enableCommand']('indentCodeBlock'),_0x25950d['enableCommand']('outdentCodeBlock'),_0x25950d['enableCommand']('codeBlock',(_0x4642c7,_0x27efdc={})=>{const _0x384d38=_0x4be89e['model'],_0x12fbba=_0x4be89e['model']['document']['selection'],_0x119dc1=_0x27efdc&&void 0x0!==_0x27efdc['forceValue']?_0x27efdc['forceValue']:!_0x2f1741['value'];let _0xefb02d;_0x27efdc['language']||(_0x27efdc['language']=_0x47789d[0x0]['language']),_0xefb02d=_0x119dc1?Array['from'](_0x12fbba['getSelectedBlocks']())['filter'](_0x2d2fa4=>eo(_0x2d2fa4)||function(_0x26f5f5,_0x3ac029){if(_0x26f5f5['is']('rootElement')||_0x3ac029['isLimit'](_0x26f5f5))return!0x1;return _0x3ac029['checkChild'](_0x26f5f5['parent'],'codeBlock');}(_0x2d2fa4,_0x384d38['schema'])):Array['from'](_0x12fbba['getSelectedBlocks']())['filter'](_0xd150fc=>eo(_0xd150fc));const _0x180e7e=to(_0xefb02d,_0x384d38);_0x384d38['change'](()=>{for(const _0x43ddc4 of _0x180e7e)_0x25950d['markBlockFormat'](_0x43ddc4,{'commandName':'codeBlock','commandParams':[{..._0x27efdc,'forceValue':_0x119dc1}],'formatGroupId':'blockName'});});}),(_0x25950d['descriptionFactory']['registerElementLabel']('codeBlock',_0x4bacc2=>o(_0x59bf36,'ELEMENT_CODE_BLOCK',_0x4bacc2)),_0x25950d['descriptionFactory']['registerDescriptionCallback'](_0x30fb6b=>{if('formatBlock'!=_0x30fb6b['type'])return;const _0x2baacb=_0x59bf36['t'],{data:_0x175935}=_0x30fb6b;if(!_0x175935||'codeBlock'!=_0x175935['commandName'])return;const _0x148eba=_0x175935['commandParams'][0x0]['language'],_0x2fec8e=_0x2baacb(_0x47789d['find'](_0x59d9ef=>_0x59d9ef['language']===_0x148eba)['label'])['toLowerCase']();return _0x175935['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59bf36,'*Set\x20format:*\x20%0',o(_0x59bf36,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2fec8e+')')}:{'type':'format','content':o(_0x59bf36,'*Remove\x20format:*\x20%0',o(_0x59bf36,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x28fdd4){return'codeBlock'==_0x28fdd4['name'];}class H extends _0x576da6{['afterInit'](){const _0x362337=this['editor'];if(!_0x362337['plugins']['has']('CommentsEditing'))return;_0x362337['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x129be,_0x26600e,_0x5100f3){const _0x5c0c0c=[];for(const _0x27b711 of _0x26600e['getItems']())_0x27b711['hasAttribute'](_0x129be)&&_0x5c0c0c['push'](_0x5100f3['createRangeOn'](_0x27b711));return _0x5c0c0c;}function _e(_0x4e73ad,_0x3a16df,{showActiveMarker:_0x521e84=!0x0}={}){const _0x1f72c2=_0x4e73ad['plugins']['get']('TrackChangesEditing');return(_0x49b181,_0x27afc7,_0x2996af)=>{if(!_0x2996af['consumable']['test'](_0x27afc7['markerRange'],_0x49b181['name']))return;const _0x54b7c8=_0x27afc7['markerRange']['getWalker'](),_0x328ca3=_0x27afc7['markerRange']['start'],_0x400d44=_0x4e73ad['model']['schema'];let _0x11dc83=null,_0x24b985=null,_0x39f45b=!0x1,_0x2fa279=!0x1;for(const _0x49f393 of _0x54b7c8){const _0x402476=_0x49f393['item'];_0x39f45b=_0x39f45b||_0x400d44['isContent'](_0x402476);const _0x12eedb=_0x2996af['mapper']['toViewElement'](_0x402476);if(_0x12eedb&&_0x12eedb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x49f393['type']&&(_0x400d44['isBlock'](_0x402476)&&!_0x400d44['isLimit'](_0x402476)&&(_0x402476['nextSibling']||_0x328ca3['isAtEnd']?_0x11dc83&&_0x11dc83['parent']==_0x402476||(_0x11dc83=_0x402476,_0x488913(_0x49f393['previousPosition']),_0x2fa279=!0x0):_0x24b985=_0x24b985||_0x49f393['previousPosition']));}function _0x488913(_0x4384d2){const _0x110aba=_0x2996af['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a16df}),_0xde6b4d=_0x2996af['mapper']['toViewPosition'](_0x4384d2);_0x521e84&&_0x1f72c2['activeMarkers']['includes'](_0x27afc7['markerName'])&&_0x2996af['writer']['addClass']('ck-suggestion-marker--active',_0x110aba),_0x2996af['writer']['insert'](_0xde6b4d,_0x110aba),_0x2996af['mapper']['bindElementToMarker'](_0x110aba,_0x27afc7['markerName']);}_0x39f45b||_0x2fa279||!_0x24b985||_0x488913(_0x24b985);};}class q extends _0x576da6{static get['requires'](){return[_0x3ffd54];}['init'](){const _0x41d89c=this['editor'],_0x314beb=_0x41d89c['plugins']['get']('TrackChangesEditing');_0x314beb['enableCommand']('delete');const _0x25d8b5=_0x41d89c['commands']['get']('deleteForward');_0x314beb['enableCommand']('deleteForward',(_0xd4e59c,_0x4c343e={})=>{const _0x2b10d8=_0x41d89c['model']['createSelection'](_0x41d89c['model']['document']['selection']);_0x2b10d8['isCollapsed']&&_0x41d89c['model']['modifySelection'](_0x2b10d8,{'direction':'forward','unit':_0x4c343e['unit']});const _0x4a5fd6=_0x2b10d8['getFirstRange'](),_0x24bed3=_0x264ebf['fromRange'](_0x4a5fd6);let _0x216a59;_0xd4e59c(_0x4c343e),_0x216a59='$graveyard'==_0x24bed3['root']['rootName']?_0x41d89c['model']['createRange'](_0x4a5fd6['start']):_0x41d89c['model']['createRange'](_0x24bed3['start'],_0x24bed3['end']),_0x24bed3['detach'](),_0x41d89c['model']['enqueueChange'](_0x25d8b5['buffer']['batch'],_0x576056=>{_0x25d8b5['buffer']['lock'](),_0x576056['setSelection'](_0x576056['createRange'](_0x216a59['end'])),_0x25d8b5['buffer']['unlock']();});}),_0x41d89c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x41d89c,'merge'),{'priority':'high'}),_0x41d89c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x13faa5,_0x682201,_0x466b27)=>{_0x466b27['options']['showSuggestionHighlights']&&_e(_0x41d89c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x13faa5,_0x682201,_0x466b27);},{'priority':'high'}),_0x41d89c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3fe78f,_0x32df43,_0x382c8a)=>{const _0x401037=_0x382c8a['mapper']['markerNameToElements'](_0x32df43['markerName']);if(_0x401037){for(const _0x4354d8 of _0x401037)_0x4354d8['is']('uiElement')&&(_0x382c8a['mapper']['unbindElementFromMarkerName'](_0x4354d8,_0x32df43['markerName']),_0x382c8a['writer']['remove'](_0x4354d8));}},{'priority':'high'});}}class z extends _0x576da6{['afterInit'](){const _0x16b687=this['editor'];if(!_0x16b687['plugins']['has']('ListEditing'))return;const _0x181321=_0x16b687['locale'],_0x236153=_0x16b687['plugins']['get']('TrackChangesEditing'),_0x3805b6=_0x16b687['plugins']['has']('TodoListEditing'),_0x57f93b=!!_0x16b687['config']['get']('list.multiBlock');function _0xb3aee3(_0x52899e){return{'type':'format','content':''+o(_0x181321,'*Set\x20format:*\x20%0',_0x52899e)};}function _0x3db7b7(_0x3df5d1){return{'type':'format','content':''+o(_0x181321,'*Remove\x20format:*\x20%0',_0x3df5d1)};}_0x236153['enableDefaultAttributesIntegration']('numberedList'),_0x236153['enableDefaultAttributesIntegration']('bulletedList'),_0x236153['enableDefaultAttributesIntegration']('customNumberedList'),_0x236153['enableDefaultAttributesIntegration']('customBulletedList'),_0x236153['enableDefaultAttributesIntegration']('indentList'),_0x236153['enableDefaultAttributesIntegration']('outdentList'),_0x236153['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x236153['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x236153['registerBlockAttribute']('listItemId'),_0x236153['registerBlockAttribute']('listType'),_0x236153['registerBlockAttribute']('listIndent'),_0x57f93b&&(_0x236153['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x236153['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3805b6&&(_0x236153['enableDefaultAttributesIntegration']('todoList'),_0x236153['enableDefaultAttributesIntegration']('checkTodoList'),_0x236153['registerBlockAttribute']('todoListChecked'),_0x236153['descriptionFactory']['registerDescriptionCallback'](_0x5f215c=>{const {data:_0xf0bb3a}=_0x5f215c;if(_0xf0bb3a&&'todoListChecked'==_0xf0bb3a['key'])return{'type':'format','content':_0xf0bb3a['newValue']?o(_0x181321,'*Check\x20item*'):o(_0x181321,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5ed8d0=>{if(_0x5ed8d0['batch']['isUndo'])return!0x1;let _0x2af0a4=!0x1;const _0x8a248b=_0x236153['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe4876f=>'todoListChecked'===_0x236153['_getAttributeKey'](_0xe4876f));for(const _0x4f8308 of _0x8a248b){'todo'!=_0x4f8308['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x236153['_findSuggestions'](_0x4f8308['getFirstRange'](),'attribute')['find'](_0x2f4909=>'listType'===_0x236153['_getAttributeKey'](_0x2f4909['suggestion']))||(_0x5ed8d0['removeMarker'](_0x4f8308['getFirstMarker']()),_0x2af0a4=!0x0));}return _0x2af0a4;})),_0x236153['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x181321,'FORMAT_INDENT'));const _0x876223={'type':'format','content':''};_0x236153['descriptionFactory']['registerDescriptionCallback'](_0x14aa23=>{const {data:_0x1f7c7a}=_0x14aa23;if(!_0x1f7c7a||'listType'!=_0x1f7c7a['key'])return;let _0x83a2dc=_0x14aa23['head'];for(;_0x83a2dc;){if(_0x83a2dc['data']&&(('listStyle'==_0x83a2dc['data']['key']||'listMarkerStyle'==_0x83a2dc['data']['key'])&&(_0x83a2dc['data']['newValue']&&'default'!=_0x83a2dc['data']['newValue']||'default'!=_0x83a2dc['data']['oldValue']&&!_0x1f7c7a['newValue'])||!_0x57f93b&&_0x83a2dc['data']['key']==m))return _0x876223;_0x83a2dc=_0x83a2dc['next'];}if(null==_0x1f7c7a['newValue'])switch(_0x1f7c7a['oldValue']){case'bulleted':return _0x3db7b7(o(_0x181321,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3db7b7(o(_0x181321,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3db7b7(o(_0x181321,'ELEMENT_TODO_LIST'));}switch(_0x1f7c7a['newValue']){case'bulleted':return _0xb3aee3(o(_0x181321,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb3aee3(o(_0x181321,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb3aee3(o(_0x181321,'ELEMENT_TODO_LIST'));}}),_0x236153['descriptionFactory']['registerDescriptionCallback'](_0x15db7b=>{const {data:_0x82afb2}=_0x15db7b;if(_0x82afb2&&'listIndent'==_0x82afb2['key'])return null==_0x82afb2['newValue']||null==_0x82afb2['oldValue']&&0x0==_0x82afb2['newValue']?_0x876223:void 0x0;}),_0x236153['descriptionFactory']['registerDescriptionCallback'](_0x38c321=>{if('attribute'!=_0x38c321['type'])return;const {data:_0x2e126d}=_0x38c321;if(!_0x2e126d||'listItemId'!=_0x2e126d['key'])return;const _0x5cdd4f=le(_0x38c321);return'newValue'==_0x5cdd4f?{'type':'format','content':o(_0x181321,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5cdd4f?{'type':'format','content':o(_0x181321,'*Split:*\x20list\x20item')}:_0x876223;}),_0x16b687['model']['document']['registerPostFixer'](_0x40657a=>this['listItemIdFixer'](_0x40657a)),_0x16b687['model']['document']['registerPostFixer'](_0x2cb8b4=>this['noTrackChangesFixer'](_0x2cb8b4)),_0x16b687['model']['document']['registerPostFixer'](_0x4cebd7=>this['assureChains'](_0x4cebd7)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x54b71a){if(_0x54b71a['batch']['isUndo']||!_0x54b71a['batch']['isLocal'])return!0x1;let _0xa48c6e=!0x1;const _0x41b78c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23d1da=>_0x23d1da['data']&&'listItemId'==_0x23d1da['data']['key'])['filter'](_0x10ea8c=>_0x10ea8c['data']['newValue']&&_0x10ea8c['data']['oldValue']);for(const _0x11945a of _0x41b78c)le(_0x11945a)||(_0x54b71a['removeMarker'](_0x11945a['getFirstMarker']()),_0xa48c6e=!0x0);return _0xa48c6e;}['noTrackChangesFixer'](_0xa192aa){if(_0xa192aa['batch']['isUndo']||!_0xa192aa['batch']['isLocal'])return!0x1;const _0x182925=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x182925['trackChangesCommand']['value'])return!0x1;let _0x3c3cff=!0x1;const _0x34cad9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xb0e188=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x42efeb=>'attribute'==_0x42efeb['type'])['filter'](_0x5b7ecb=>_0x34cad9['includes'](_0x5b7ecb['attributeKey']));if(0x0==_0xb0e188['length'])return _0x3c3cff;for(const _0x398255 of _0xb0e188){const _0x4e0336=_0x182925['_findSuggestions'](_0x398255['range'],'attribute')['filter'](_0xe5e7b5=>!_0xe5e7b5['meta']['isNextTo'])['map'](_0x6250b2=>_0x6250b2['suggestion'])['filter'](_0x489de1=>{const _0x470624=_0x182925['_getAttributeKey'](_0x489de1);return _0x34cad9['includes'](_0x470624);});if(_0x4e0336['length']){for(const _0x4c89e4 of _0x4e0336)_0xa192aa['removeMarker'](_0x4c89e4['getFirstMarker']());_0x3c3cff=!0x0;}}return _0x3c3cff;}['assureChains'](_0x12d406){if(_0x12d406['batch']['isUndo']||!_0x12d406['batch']['isLocal'])return!0x1;const _0x16c24b=this['editor']['plugins']['get']('TrackChangesEditing');let _0x16b8a4=!0x1;const _0x2dc78c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x4eeeea of _0x16c24b['getSuggestions']({'skipNotAttached':!0x0})){const _0x51c977=_0x16c24b['_findSuggestions'](_0x4eeeea['getFirstRange'](),'attribute')['map'](_0x445ac0=>_0x445ac0['suggestion'])['filter'](_0x49a543=>_0x49a543['data']&&_0x2dc78c['includes'](_0x49a543['data']['key']));if(!_0x51c977['length'])continue;const _0x561a25=_0x51c977[0x0]['head']['attributes']['groupId'];if(!_0x51c977['every'](_0x5133eb=>_0x5133eb['attributes']['groupId']===_0x561a25)){for(const _0x2a7e59 of _0x51c977)_0x2d97a4(_0x2a7e59,_0x561a25)&&(_0x16b8a4=!0x0);}}return _0x16b8a4;function _0x3378b4(_0x53ffc5,_0x37b55f){for(const _0x4326de of _0x16c24b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1440e9=>'attribute'==_0x1440e9['type']&&_0x1440e9['attributes']['groupId']==_0x53ffc5))_0x4326de['setAttribute']('groupId',_0x37b55f);}function _0x2d97a4(_0x57c1f4,_0x19d0e2){let _0x385b0f=_0x57c1f4['head'],_0x2a98c0=!0x1;for(;_0x385b0f;)_0x385b0f['attributes']['groupId']!=_0x19d0e2&&(_0x3378b4(_0x385b0f['attributes']['groupId'],_0x19d0e2),_0x385b0f['setAttribute']('groupId',_0x19d0e2),_0x2a98c0=!0x0),_0x385b0f=_0x385b0f['next'];return _0x2a98c0;}}['_supportLegacySuggestions'](){const _0x2c580e=this['editor'],_0x6dda98=_0x2c580e['locale'],_0x3fc0f2=_0x2c580e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3fc0f2['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5ca484,_0x5ef7e7){const _0x8bc6b8=[];for(let _0x50615c of _0x5ca484)_0x50615c['start']['nodeAfter']===_0x50615c['end']['parent']&&(_0x50615c=_0x2c580e['model']['createRange'](_0x2c580e['model']['createPositionAt'](_0x50615c['start']['nodeAfter'],0x0))),_0x8bc6b8['push'](_0x50615c);_0x2c580e['model']['change'](_0x200f41=>{const _0x16b1f3=_0x2c580e['model']['document']['selection'],_0x21f69a=Array['from'](_0x16b1f3['getRanges']())['map'](_0x479ab7=>_0x264ebf['fromRange'](_0x479ab7));_0x200f41['setSelection'](_0x8bc6b8),_0x2c580e['commands']['get'](_0x5ef7e7['commandName'])['refresh'](),_0x5ef7e7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2c580e['execute'](_0x5ef7e7['commandName'],..._0x5ef7e7['commandParams']),_0x200f41['setSelection'](_0x21f69a);for(const _0x216e65 of _0x21f69a)_0x216e65['detach']();});}),_0x3fc0f2['descriptionFactory']['registerElementLabel'](function(_0x1ffaa2){const _0x43c8ed=!_0x2c580e['model']['schema']['isObject'](_0x1ffaa2),_0x709e48=_0x1ffaa2['previousSibling'],_0x5219aa=_0x1ffaa2['nextSibling'],_0x5a972c=_0x1ffaa2['getAttribute']('listItemId'),_0x5d0c8a=!_0x709e48||_0x709e48['getAttribute']('listItemId')!==_0x5a972c,_0x3ea226=!_0x5219aa||_0x5219aa['getAttribute']('listItemId')!==_0x5a972c;return _0x43c8ed&&Boolean(_0x5a972c)&&_0x5d0c8a&&_0x3ea226;},_0x3fa7c9=>o(_0x6dda98,'ELEMENT_LIST_ITEM',_0x3fa7c9));}['_registerLegacyDescription'](){const _0x2e3085=this['editor'],_0x4db1a2=_0x2e3085['locale'];function _0x507601(_0x4264a7){const _0x406b37=_0x2e3085['commands']['get']('bulletedList')['value'],_0x56d85b=_0x2e3085['commands']['get']('numberedList')['value'];return'numberedList'===_0x4264a7?_0x406b37:_0x56d85b;}_0x2e3085['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2b34f5){if('formatBlock'!=_0x2b34f5['type'])return;const {data:_0x4a0a99}=_0x2b34f5;if(!_0x4a0a99)return;let _0x32bebf,_0x4436bc,_0x516f55,_0x10aa0d;switch(_0x4a0a99['commandName']){case'bulletedList':_0x516f55=_0x4a0a99['commandParams'][0x0]['forceValue'],_0x10aa0d=_0x507601(_0x4a0a99['commandName']),_0x32bebf=_0x516f55?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x10aa0d&&_0x2e3085['config']['get']('list.multiBlock')||(_0x32bebf='*Change\x20to:*\x20%0'),_0x4436bc={'type':'format','content':o(_0x4db1a2,_0x32bebf,o(_0x4db1a2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x516f55=_0x4a0a99['commandParams'][0x0]['forceValue'],_0x10aa0d=_0x507601(_0x4a0a99['commandName']),_0x32bebf=_0x516f55?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x10aa0d&&_0x2e3085['config']['get']('list.multiBlock')||(_0x32bebf='*Change\x20to:*\x20%0'),_0x4436bc={'type':'format','content':o(_0x4db1a2,_0x32bebf,o(_0x4db1a2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x32bebf='*Indent:*\x20%0',_0x4436bc={'type':'format','content':o(_0x4db1a2,_0x32bebf,o(_0x4db1a2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x32bebf=function(_0x32b5d4){const _0x57512e=_0x32b5d4['getFirstRange']();let _0x2d8ee3=_0x57512e['start']['nodeAfter'];for(;_0x2d8ee3&&_0x57512e['containsItem'](_0x2d8ee3);){if(_0x2d8ee3['getAttribute']('listIndent')>0x0)return!0x1;_0x2d8ee3=_0x2d8ee3['nextSibling'];}return!0x0;}(_0x2b34f5)?o(_0x4db1a2,'*Format:*\x20remove\x20from\x20%0',o(_0x4db1a2,function(_0x2a9482){return'ELEMENT_'+_0x2a9482['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2b34f5))):o(_0x4db1a2,'*Outdent:*\x20%0',o(_0x4db1a2,'ELEMENT_LIST_ITEM')),_0x4436bc={'type':'format','content':_0x32bebf};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4a0a99['multipleBlocks']&&(_0x32bebf='*Merge:*\x20%0',_0x4436bc={'type':'deletion','content':o(_0x4db1a2,_0x32bebf,o(_0x4db1a2,'ELEMENT_LIST_ITEM'))});}return _0x4436bc;});}}function le(_0xa80d4e){let _0x135551=_0xa80d4e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x135551;){const _0x2690d1=_0x135551['getAttribute']('listItemId');if(!_0x2690d1)return!0x1;if(_0x2690d1==_0xa80d4e['data']['newValue'])return'newValue';if(_0x2690d1==_0xa80d4e['data']['oldValue'])return'oldValue';_0x135551=_0x135551['previousSibling'];}return!0x1;}class ue extends _0x576da6{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1cf6c8=this['editor']['config']['get']('list.properties'),_0x5a7578=this['editor']['plugins']['get']('TrackChangesEditing');_0x1cf6c8['styles']&&(_0x5a7578['enableDefaultAttributesIntegration']('listStyle'),_0x5a7578['registerBlockAttribute']('listStyle')),_0x1cf6c8['reversed']&&(_0x5a7578['enableDefaultAttributesIntegration']('listReversed'),_0x5a7578['registerBlockAttribute']('listReversed')),_0x1cf6c8['startIndex']&&(_0x5a7578['enableDefaultAttributesIntegration']('listStart'),_0x5a7578['registerBlockAttribute']('listStart'));const _0x1aeb3d={'type':'format','content':''};_0x5a7578['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5aedc0=this['editor']['locale'];_0x5a7578['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5aedc0,'FORMAT_LIST_REVERSED')),_0x5a7578['descriptionFactory']['registerDescriptionCallback'](_0x6b717e=>{const {data:_0xc8ade7}=_0x6b717e;if(_0xc8ade7&&'listReversed'==_0xc8ade7['key'])return null==_0xc8ade7['newValue']||0x0==_0xc8ade7['newValue']&&null==_0xc8ade7['oldValue']?_0x1aeb3d:void 0x0;}),_0x5a7578['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5aedc0,'FORMAT_LIST_START')),_0x5a7578['descriptionFactory']['registerDescriptionCallback'](_0x77e104=>{const {data:_0x2b92aa}=_0x77e104;if(_0x2b92aa&&'listStart'==_0x2b92aa['key'])return null==_0x2b92aa['newValue']||0x1==_0x2b92aa['newValue']&&null==_0x2b92aa['oldValue']?_0x1aeb3d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x9d818d=>{if(_0x9d818d['batch']['isUndo'])return!0x1;let _0x2c8e0c=!0x1;const _0x85c534=_0x5a7578['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6a0168=>{const _0x242c56=_0x5a7578['_getAttributeKey'](_0x6a0168);return'listStart'==_0x242c56||'listReversed'==_0x242c56;});for(const _0x4ca644 of _0x85c534){const _0x560cd0=_0x4ca644['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x560cd0||'customNumbered'==_0x560cd0)continue;_0x5a7578['_findSuggestions'](_0x4ca644['getFirstRange'](),'attribute')['find'](_0xe6e320=>'listType'==_0x5a7578['_getAttributeKey'](_0xe6e320['suggestion']))||(_0x9d818d['removeMarker'](_0x4ca644['getFirstMarker']()),_0x2c8e0c=!0x0);}return _0x2c8e0c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2bbf85){const _0x261294=this['editor']['locale'],{data:_0x7fbfe0}=_0x2bbf85,_0xf07dda={'type':'format','content':''};if(!_0x7fbfe0||'listStyle'!=_0x7fbfe0['key'])return;if(!_0x7fbfe0['oldValue'])return'default'==_0x7fbfe0['newValue']?_0xf07dda:{'type':'format','content':''+o(_0x261294,'*Set\x20format:*\x20%0',o(_0x261294,this['_getTranslationKeyForListStyle'](_0x7fbfe0['newValue'])))};if(!_0x7fbfe0['newValue']){if('default'==_0x7fbfe0['oldValue'])return _0xf07dda;let _0x497008=_0x2bbf85['head'];for(;_0x497008;){if(_0x497008['data']&&'listType'==_0x497008['data']['key']&&_0x497008['data']['newValue'])return _0xf07dda;_0x497008=_0x497008['next'];}return{'type':'format','content':''+o(_0x261294,'*Remove\x20format:*\x20%0',o(_0x261294,this['_getTranslationKeyForListStyle'](_0x7fbfe0['oldValue'])))};}if('default'!=_0x7fbfe0['newValue'])return{'type':'format','content':''+o(_0x261294,'*Set\x20format:*\x20%0',o(_0x261294,this['_getTranslationKeyForListStyle'](_0x7fbfe0['newValue'])))};let _0x39998b=_0x2bbf85['head'];for(;_0x39998b;){if(_0x39998b['data']&&'listType'==_0x39998b['data']['key']&&_0x39998b['data']['newValue']&&_0x39998b['data']['oldValue'])return _0xf07dda;_0x39998b=_0x39998b['next'];}return{'type':'format','content':o(_0x261294,'*Set\x20format:*\x20%0',o(_0x261294,'ELEMENT_'+_0x2bbf85['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2c86cb=this['editor'],_0x1c0d3c=_0x2c86cb['locale'];_0x2c86cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41471a=>{if('formatBlock'!=_0x41471a['type'])return;const {data:_0x188681}=_0x41471a;if(!_0x188681)return;let _0x24bd7a,_0x25ef7b;switch(_0x188681['commandName']){case'listStyle':_0x24bd7a='*Change\x20to:*\x20%0',_0x25ef7b={'type':'format','content':o(_0x1c0d3c,_0x24bd7a,o(_0x1c0d3c,this['_getTranslationKeyForListStyle'](_0x188681['commandParams'][0x0]['type'])))};break;case'listReversed':_0x24bd7a=_0x188681['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x25ef7b={'type':'format','content':o(_0x1c0d3c,_0x24bd7a)};break;case'listStart':_0x24bd7a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x25ef7b={'type':'format','content':o(_0x1c0d3c,_0x24bd7a,_0x188681['commandParams'][0x0]['startIndex'])};}return _0x25ef7b;});}['_getTranslationKeyForListStyle'](_0x3913a4){return'ELEMENT_'+function(_0x49cacf){if(pe['includes'](_0x49cacf))return'bulleted';if(ye['includes'](_0x49cacf))return'numbered';return null;}(_0x3913a4)['toUpperCase']()+'_LIST_'+_0x3913a4['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x576da6{static get['requires'](){return[_0x1589f0];}['init'](){const _0x5bd458=this['editor'],_0x16d308=_0x5bd458['plugins']['get']('TrackChangesEditing'),_0x458f72=_0x5bd458['commands']['get']('enter');_0x16d308['enableCommand']('enter',()=>{_0x5bd458['model']['change'](_0x27692f=>{const _0x2e5a03=_0x5bd458['model']['document']['selection'],_0x1f1b02=_0x2e5a03['getFirstPosition'](),_0x477813=_0x264ebf['fromRange'](_0x2e5a03['getFirstRange']());if(_0x458f72['enterBlock'](_0x27692f)){const _0x5bb0b7=_0x5bd458['model']['createPositionAt'](_0x1f1b02['parent']['nextSibling'],0x0),_0x4fbc72=_0x27692f['createRange'](_0x1f1b02,_0x5bb0b7);_0x16d308['markInsertion'](_0x4fbc72);}else _0x27692f['setSelection'](_0x27692f['createRange'](_0x477813['end']));_0x477813['detach'](),_0x458f72['fire']('afterExecute',{'writer':_0x27692f});});}),_0x5bd458['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5bd458,'split'),{'priority':'high'}),_0x5bd458['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x27c366,_0x518b7c,_0x1a896c)=>{const _0x50190f=_0x1a896c['mapper']['markerNameToElements'](_0x518b7c['markerName']);if(_0x50190f){for(const _0x3b6451 of _0x50190f)_0x3b6451['hasClass']('ck-suggestion-marker-split')&&(_0x1a896c['mapper']['unbindElementFromMarkerName'](_0x3b6451,_0x518b7c['markerName']),_0x1a896c['writer']['remove'](_0x3b6451));}},{'priority':'high'}),_0x5bd458['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x59f5ed,_0x20dccb,_0x33ef57)=>{_0x33ef57['options']['showSuggestionHighlights']&&_e(_0x5bd458,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x59f5ed,_0x20dccb,_0x33ef57);},{'priority':'high'});}}class J extends _0x576da6{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4cab01=this['editor']['plugins']['get']('TrackChangesEditing');_0x4cab01['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4cab01['enableCommand']('findNext'),_0x4cab01['enableCommand']('findPrevious'),_0x4cab01['enableCommand']('replace'),_0x4cab01['enableCommand']('replaceAll');}['handleFindCommand'](_0x320bd7,_0x191086,_0x368f25={}){const _0x4f419b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x320bd7(_0x33c71d=>('string'==typeof _0x191086?_0x4f419b['findByTextCallback'](_0x191086,_0x368f25):_0x191086)(_0x33c71d)['filter'](_0x234d3d=>!0x1===this['_isInDeletionRange'](_0x234d3d,_0x33c71d['item'])),_0x368f25);}['_isInDeletionRange'](_0x226aed,_0x5488e6){const _0x46f626=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5488e6,_0x226aed['start']),this['editor']['model']['createPositionAt'](_0x5488e6,_0x226aed['end']));for(const _0x4b79ba of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x46f626['getIntersection'](_0x4b79ba['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 _0x576da6{['afterInit'](){const _0xf3cc16=this['editor']['locale'],_0x224948=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3c4144,commandName:_0x2b4b2c}of ro)this['editor']['plugins']['has'](_0x3c4144)&&(_0x224948['enableDefaultAttributesIntegration'](_0x2b4b2c),_0x224948['registerInlineAttribute'](_0x2b4b2c));_0xf3cc16['t'],_0x224948['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xf3cc16,'FORMAT_FONT_SIZE')),_0x224948['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xf3cc16,'FORMAT_FONT_FAMILY')),_0x224948['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xf3cc16,'FORMAT_FONT_COLOR')),_0x224948['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xf3cc16,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f029e=this['editor'],_0x4b22f5=_0x3f029e['locale'];_0x3f029e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x456892=>{const _0x2b9fb2=_0x4b22f5['t'];if('formatInline'!=_0x456892['type'])return;const {data:_0x58ec0d}=_0x456892;if(null!=_0x58ec0d){if('fontSize'==_0x58ec0d['commandName']){const _0x254bec=_0x58ec0d['commandParams'][0x0]['value'];if(_0x254bec){const _0x1d87ce=_0x2b9fb2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1f7da3=>_0x1f7da3['model']==_0x254bec)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4b22f5,'*Set\x20font\x20size:*\x20%0',_0x1d87ce)};}return{'type':'format','content':o(_0x4b22f5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x58ec0d['commandName']){const _0x27c403=_0x58ec0d['commandParams'][0x0]['value'];return _0x27c403?{'type':'format','content':o(_0x4b22f5,'*Set\x20font\x20family:*\x20%0',_0x27c403)}:{'type':'format','content':o(_0x4b22f5,'*Reset\x20font\x20family*')};}if('fontColor'==_0x58ec0d['commandName']){const _0x4cd125=_0x58ec0d['commandParams'][0x0]['value'];if(_0x4cd125){const _0x38593e=_0x46e0b2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x41447a=>_0x41447a['model']==_0x4cd125);let _0x303bec=_0x4cd125,_0x48b2d7='';return _0x38593e&&(_0x303bec=_0x38593e['label'],_0x48b2d7=_0x2b9fb2(_0x303bec)['toLowerCase']()),{'type':'format','content':o(_0x4b22f5,'*Set\x20font\x20color:*\x20%0',_0x48b2d7)['trim'](),'color':{'value':_0x4cd125,'title':_0x48b2d7||_0x303bec}};}return{'type':'format','content':o(_0x4b22f5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x58ec0d['commandName']){const _0x2b87b0=_0x58ec0d['commandParams'][0x0]['value'];if(_0x2b87b0){const _0x4c7dc0=_0x46e0b2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x48fe65=>_0x48fe65['model']==_0x2b87b0);let _0x18bb8e=_0x2b87b0,_0x16cdb5='';return _0x4c7dc0&&(_0x18bb8e=_0x4c7dc0['label'],_0x16cdb5=_0x2b9fb2(_0x18bb8e)['toLowerCase']()),{'type':'format','content':o(_0x4b22f5,'*Set\x20font\x20background\x20color:*\x20%0',_0x16cdb5)['trim'](),'color':{'value':_0x2b87b0,'title':_0x16cdb5||_0x18bb8e}};}return{'type':'format','content':o(_0x4b22f5,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x576da6{['afterInit'](){const _0x3125b7=this['editor'],_0x41e2ec=_0x3125b7['plugins']['get']('TrackChangesEditing'),_0x570efb=_0x3125b7['commands']['get']('copyFormat'),_0x3d698d=_0x3125b7['commands']['get']('pasteFormat');_0x570efb&&_0x3d698d&&(_0x41e2ec['enableDefaultAttributesIntegration']('pasteFormat'),_0x41e2ec['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1ed9f3=this['editor'],_0x5c36d6=_0x1ed9f3['locale'];_0x1ed9f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d41b9=>{if('formatBlock'!=_0x3d41b9['type']&&'formatInline'!=_0x3d41b9['type'])return;const {data:_0x1ea4e3}=_0x3d41b9;if(_0x1ea4e3&&'pasteFormat'===_0x1ea4e3['commandName']){const _0x177a58=[],_0x2f1e39=_0x1ea4e3['commandParams'][0x0];for(const [_0x5acef4,_0x169fd7]of Object['entries'](_0x2f1e39))_0x177a58['push'](so(_0x1ed9f3,_0x5acef4,_0x169fd7));return _0x177a58['length']?{'type':'format','content':o(_0x5c36d6,'*Set\x20format\x20to:*\x20%0',_0x177a58['join'](',\x20'))}:{'type':'format','content':o(_0x5c36d6,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5cd22b,_0x10eea2,_0x5ac405){const _0x5ca5ab=_0x5cd22b['locale']['t'],_0x41efe5=_0x10eea2['split'](/(?=[A-Z])/)['join']('\x20'),_0x2d0f6b=_0x5ca5ab(_0x41efe5['charAt'](0x0)['toUpperCase']()+_0x41efe5['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5ac405)return _0x2d0f6b;if('fontColor'===_0x10eea2||'fontBackgroundColor'===_0x10eea2){const _0x381b63=_0x46e0b2(_0x5cd22b['config']['get']('fontColor.colors'))['find'](_0x37e564=>_0x37e564['model']==_0x5ac405);return _0x2d0f6b+'\x20('+(_0x381b63?_0x5ca5ab(_0x381b63['label'])['toLowerCase']():_0x5ac405)+')';}if('fontSize'===_0x10eea2&&isNaN(parseFloat(_0x5ac405))){const _0x58ad8a=_0x5cd22b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5cd22b['config']['get']('fontSize.options'))['find'](_0x26ea90=>_0x26ea90['model']==_0x5ac405);return _0x2d0f6b+'\x20('+(_0x58ad8a?_0x5ca5ab(_0x58ad8a['title'])['toLowerCase']():_0x5ac405)+')';}return _0x2d0f6b+'\x20('+_0x5ac405+')';}class Y extends _0x576da6{['_headingOptions'];['afterInit'](){const _0x5dfca4=this['editor'];if(!_0x5dfca4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5dfca4['config']['get']('heading.options');const _0x23e3ee=_0x5dfca4['locale'],_0x3d07d6=_0x5dfca4['plugins']['get']('TrackChangesEditing');_0x3d07d6['enableDefaultAttributesIntegration']('heading');for(const _0x2382fb of this['_headingOptions'])'paragraph'!=_0x2382fb['model']&&_0x3d07d6['descriptionFactory']['registerElementLabel'](_0x2382fb['model'],_0x16dbf6=>{const _0x490c91=this['_getHeadingLevel'](_0x2382fb['model']);return null!==_0x490c91?_0x441587(_0x16dbf6,_0x490c91):_0x205545(_0x16dbf6,_0x2382fb['title']);});function _0x441587(_0x6ecdec,_0x3668b4){return o(_0x23e3ee,'ELEMENT_HEADING',[_0x6ecdec,_0x3668b4]);}function _0x205545(_0x19a0bb,_0x87def6){return o(_0x23e3ee,'ELEMENT_HEADING_CUSTOM',[_0x19a0bb,_0x87def6]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a6cad=this['editor'],_0xd04352=_0x4a6cad['locale'];function _0x29e701(_0x19565f,_0x46b6b3){return o(_0xd04352,'ELEMENT_HEADING_CUSTOM',[_0x19565f,_0x46b6b3]);}_0x4a6cad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf1b1d7=>{if('formatBlock'!=_0xf1b1d7['type'])return;const {data:_0x5ef0e8}=_0xf1b1d7;if(_0x5ef0e8&&'heading'==_0x5ef0e8['commandName']){const _0xb2bd07=_0x5ef0e8['commandParams'][0x0]['value'],_0x4b2e6a=this['_getHeadingLevel'](_0xb2bd07);if(null!==_0x4b2e6a)return{'type':'format','content':o(_0xd04352,'*Change\x20to:*\x20%0',(_0x26d08f=0x1,_0x334513=_0x4b2e6a,o(_0xd04352,'ELEMENT_HEADING',[_0x26d08f,_0x334513])))};const _0x5a1f19=this['_headingOptions']['find'](_0xcc9cd1=>_0xcc9cd1['model']===_0xb2bd07)['title'];return{'type':'format','content':o(_0xd04352,'*Change\x20to:*\x20%0',_0x29e701(0x1,_0x5a1f19))};}var _0x26d08f,_0x334513;});}['_getHeadingLevel'](_0xa32cbc){const _0xcd7929=_0xa32cbc['match'](/^heading(\d+)/);if(_0xcd7929)return _0xcd7929[0x1];const _0x28e4af=this['_headingOptions']?.['find'](_0xc4cfae=>_0xc4cfae['model']==_0xa32cbc);if(_0x28e4af&&_0x28e4af['view']){const _0x42279f=_0x28e4af['view'],_0x15fb37=(_0x42279f['name']??_0x42279f)['match'](/^h(\d+)/);if(_0x15fb37)return _0x15fb37[0x1];}return null;}}class Z extends _0x576da6{['afterInit'](){const _0x428f84=this['editor'];if(!_0x428f84['plugins']['has']('HighlightEditing'))return;const _0x6dc8e0=_0x428f84['plugins']['get']('TrackChangesEditing'),_0x37549b=_0x428f84['locale'];_0x6dc8e0['enableDefaultAttributesIntegration']('highlight'),_0x6dc8e0['registerInlineAttribute']('highlight'),_0x6dc8e0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x37549b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa2e3e7=this['editor'],_0x3fc1d9=_0xa2e3e7['locale'];_0xa2e3e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f2e00=>{if('formatInline'!=_0x5f2e00['type'])return;const {data:_0x455789}=_0x5f2e00;if(_0x455789&&'highlight'==_0x455789['commandName']){const _0x4f1892=_0x3fc1d9['t'],_0xfebc80=_0x455789['commandParams'][0x0]['value'];if(_0xfebc80){const _0x2ab4c3=_0xa2e3e7['config']['get']('highlight.options')['find'](_0x57931a=>_0x57931a['model']==_0xfebc80),_0x1016a6=_0x4f1892(_0x2ab4c3['title'])['toLowerCase']();return{'type':'format','content':o(_0x3fc1d9,'*Set\x20highlight:*\x20%0',_0x1016a6),'color':{'value':_0x2ab4c3['color'],'title':_0x2ab4c3['title']}};}return{'type':'format','content':o(_0x3fc1d9,'*Remove\x20highlight*',o(_0x3fc1d9,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x576da6{['afterInit'](){const _0x329c1e=this['editor'];if(!_0x329c1e['plugins']['has']('HorizontalLineEditing'))return;_0x329c1e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d81fe=_0x329c1e['plugins']['get']('TrackChangesEditing'),_0xfda98e=_0x329c1e['locale'];_0x4d81fe['descriptionFactory']['registerElementLabel']('horizontalLine',_0x53a9b3=>o(_0xfda98e,'ELEMENT_HORIZONTAL_LINE',_0x53a9b3)),_0x329c1e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1794b7,{writer:_0x51119a,options:_0x2cbdeb})=>{if(!_0x2cbdeb['showSuggestionHighlights'])return null;const _0x59fdb6=_0x51119a['createContainerElement']('div'),_0x3629b0=_0x51119a['createEmptyElement']('hr');return _0x51119a['addClass']('ck-horizontal-line',_0x59fdb6),_0x51119a['insert'](_0x51119a['createPositionAt'](_0x59fdb6,0x0),_0x3629b0),_0x59fdb6;},'converterPriority':'high'});}}class et extends _0x576da6{['afterInit'](){const _0x46a688=this['editor'];if(!_0x46a688['plugins']['has']('HtmlEmbed'))return;const _0x245ebb=_0x46a688['plugins']['get']('TrackChangesEditing'),_0x7ff56d=_0x46a688['locale'];_0x245ebb['descriptionFactory']['registerElementLabel']('rawHtml',_0x8104c7=>o(_0x7ff56d,'ELEMENT_HTML_EMBED',_0x8104c7)),_0x245ebb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x245ebb['registerBlockAttribute']('value'),_0x245ebb['descriptionFactory']['registerDescriptionCallback'](_0x33b653=>{if('attribute'!=_0x33b653['type'])return;const {data:_0x255c30}=_0x33b653;if(_0x255c30&&'value'==_0x255c30['key']&&_0x33b653['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x43b2b6=o(_0x7ff56d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x7ff56d,'*Change\x20%0\x20content*',_0x43b2b6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e3fb1=this['editor'],_0x1d8357=_0x2e3fb1['locale'];_0x2e3fb1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbd7315=>{if('formatBlock'!=_0xbd7315['type'])return;const {data:_0x511caa}=_0xbd7315;if(_0x511caa&&'htmlEmbed'==_0x511caa['commandName']){const _0xbd6e8=o(_0x1d8357,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1d8357,'*Change\x20%0\x20content*',_0xbd6e8)};}});}}class it extends _0x576da6{['afterInit'](){const _0x33524d=this['editor'];if(!_0x33524d['plugins']['has']('ImageEditing'))return;const _0x1aff7b=_0x33524d['plugins']['get']('TrackChangesEditing'),_0x57f391=_0x33524d['plugins']['get']('ImageUtils'),_0x23e691=_0x33524d['locale'];_0x1aff7b['enableCommand']('insertImage'),_0x1aff7b['descriptionFactory']['registerElementLabel']('imageBlock',_0x4917bd=>o(_0x23e691,'ELEMENT_IMAGE',_0x4917bd)),_0x1aff7b['descriptionFactory']['registerElementLabel']('imageInline',_0x2be91a=>o(_0x23e691,'ELEMENT_INLINE_IMAGE',_0x2be91a)),_0x1aff7b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x23e691,'ELEMENT_CAPTION')),_0x33524d['plugins']['has']('ImageUploadEditing')&&_0x1aff7b['enableCommand']('uploadImage'),_0x33524d['plugins']['has']('ImageBlockEditing')&&_0x33524d['plugins']['has']('ImageInlineEditing')&&(_0x1aff7b['enableCommand']('imageTypeInline',(_0x1fda6d,_0x459c9a)=>{const _0x3e1f52=_0x57f391['getClosestSelectedImageElement'](_0x33524d['model']['document']['selection']);_0x33524d['model']['change'](()=>{_0x1aff7b['markBlockFormat'](_0x3e1f52,{'commandName':'imageTypeInline','commandParams':[_0x459c9a]},[],'convertBlockImageToInline');});}),_0x1aff7b['enableCommand']('imageTypeBlock',(_0x51add5,_0x28fc93)=>{_0x33524d['model']['change'](_0x4be474=>{let _0x1ba6f1=_0x57f391['getClosestSelectedImageElement'](_0x33524d['model']['document']['selection']),_0x16a237=_0x4be474['createRangeOn'](_0x1ba6f1);const _0x5ad1c9=_0x309861['fromPosition'](_0x16a237['start'],'toPrevious'),_0x3b6c52=_0x309861['fromPosition'](_0x16a237['end'],'toNext');_0x1aff7b['forceDefaultExecution'](()=>_0x51add5(_0x28fc93)),_0x1ba6f1=_0x57f391['getClosestSelectedImageElement'](_0x33524d['model']['document']['selection']),_0x16a237=_0x4be474['createRangeOn'](_0x1ba6f1);const _0x10fb0e=_0x4be474['createRange'](_0x5ad1c9,_0x3b6c52);_0x5ad1c9['detach'](),_0x3b6c52['detach'](),_0x1aff7b['markBlockFormat'](_0x1ba6f1,{'commandName':'imageTypeInline','commandParams':[_0x28fc93]},[],'convertInlineImageToBlock'),_0x10fb0e['start']['isBefore'](_0x16a237['start'])&&_0x1aff7b['markInsertion'](_0x4be474['createRange'](_0x10fb0e['start'],_0x16a237['start']),'convertInlineImageToBlock'),_0x16a237['end']['isBefore'](_0x10fb0e['end'])&&_0x1aff7b['markInsertion'](_0x4be474['createRange'](_0x16a237['end'],_0x10fb0e['end']),'convertInlineImageToBlock');});}),_0x1aff7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1aff7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1aff7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1aff7b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1aff7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1aff7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1e49f0])=>{const _0x5b49d3=_0x1aff7b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5af57a=_0x1e49f0['start'],_0x19b799=_0x1e49f0['end'];const _0x32792f=_0x33524d['model']['schema']['getNearestSelectionRange'](_0x5af57a,'backward'),_0x5cdeeb=_0x33524d['model']['schema']['getNearestSelectionRange'](_0x19b799,'forward');_0x32792f['isCollapsed']&&(_0x5af57a=_0x32792f['start']),_0x5cdeeb['isCollapsed']&&(_0x19b799=_0x5cdeeb['end']),_0x5b49d3([_0x33524d['model']['createRange'](_0x5af57a,_0x19b799)]);}),_0x1aff7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x32575b),_0x1aff7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x32575b)),_0x33524d['plugins']['has']('ImageCaptionEditing')&&(_0x1aff7b['enableCommand']('toggleImageCaption',(_0x4e7578,_0x3359a9)=>{const _0x45b7cc=_0x33524d['plugins']['get']('ImageCaptionUtils');let _0x7389ed=_0x57f391['getClosestSelectedImageElement'](_0x33524d['model']['document']['selection']),_0x5b2d64=_0x45b7cc['getCaptionFromImageModelElement'](_0x7389ed);_0x33524d['model']['change'](()=>{if(_0x5b2d64)return void _0x1aff7b['markDeletion'](_0x33524d['model']['createRangeOn'](_0x5b2d64));const _0x470747=_0x57f391['isBlockImage'](_0x7389ed);_0x4e7578(_0x3359a9),_0x7389ed=_0x57f391['getClosestSelectedImageElement'](_0x33524d['model']['document']['selection']),_0x5b2d64=_0x45b7cc['getCaptionFromImageModelElement'](_0x7389ed),_0x1aff7b['markInsertion'](_0x33524d['model']['createRangeOn'](_0x5b2d64),_0x470747?null:'imageCaption');});}),_0x1aff7b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x32575b));const _0x4dfafb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x8b2568(_0x43db6b,_0x19c13b){const _0x5a14e2=_0x4dfafb['findIndex'](({type:_0x565691,subType:_0xeb35aa})=>_0x43db6b['type']==_0x565691&&_0x43db6b['subType']==_0xeb35aa),_0x187683=_0x4dfafb['findIndex'](({type:_0x4cb80c,subType:_0x53e5e2})=>_0x19c13b['type']==_0x4cb80c&&_0x19c13b['subType']==_0x53e5e2);if(_0x5a14e2<0x0||_0x187683<0x0)return!0x1;const _0x112fb1=_0x43db6b['getFirstRange'](),_0x71bf89=_0x19c13b['getFirstRange']();if((0x0==_0x5a14e2||0x1==_0x5a14e2)&&0x2==_0x187683&&_0x112fb1['isIntersecting'](_0x71bf89))return!0x0;if(0x2==_0x5a14e2&&0x3==_0x187683){const _0xe8c62b=_0x1aff7b['_findSuggestions'](_0x112fb1,'insertion')['filter'](({suggestion:_0x301c75,meta:_0x52669f})=>_0x52669f['isOwn']&&'convertInlineImageToBlock'==_0x301c75['subType']);if(_0xe8c62b['length']>0x1&&_0x71bf89['end']['isEqual'](_0x112fb1['start']))return!0x0;if(0x1==_0xe8c62b['length']&&(_0x112fb1['start']['isEqual'](_0x71bf89['end'])||_0x112fb1['end']['isEqual'](_0x71bf89['start'])))return!0x0;}if(0x3==_0x5a14e2&&0x3==_0x187683&&_0x112fb1['start']['isBefore'](_0x71bf89['start'])){const _0x39327d=_0x112fb1['end']['nodeAfter'],_0x15ec1f=_0x71bf89['start']['nodeBefore'];return _0x57f391['isBlockImage'](_0x39327d)&&_0x39327d===_0x15ec1f;}return!0x1;}function _0x32575b(_0x39d033,_0x573836){return _0x8b2568(_0x39d033,_0x573836)?[_0x39d033,_0x573836]:_0x8b2568(_0x573836,_0x39d033)?[_0x573836,_0x39d033]:null;}_0x33524d['plugins']['has']('ImageResize')&&(_0x1aff7b['enableDefaultAttributesIntegration']('resizeImage'),_0x1aff7b['registerBlockAttribute']('resizedWidth'),_0x1aff7b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x23e691,'FORMAT_IMAGE_SIZE'))),_0x33524d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1aff7b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1aff7b['registerBlockAttribute']('alt')),_0x1aff7b['descriptionFactory']['registerDescriptionCallback'](_0xf0fd85=>{if(!!_0x4dfafb['find'](({type:_0x283e50,subType:_0x2118cb})=>_0xf0fd85['type']==_0x283e50&&_0xf0fd85['subType']==_0x2118cb))return _0xf0fd85['previous']?{}:void 0x0;}),_0x1aff7b['descriptionFactory']['registerDescriptionCallback'](_0x395f4f=>{if('insertion'==_0x395f4f['type']||'deletion'==_0x395f4f['type']){const _0x172162=_0x395f4f['getContainedElement']();if(_0x172162&&_0x172162['is']('element','caption'))return{'type':'insertion'==_0x395f4f['type']?'addObject':'removeObject','element':_0x172162,'quantity':0x1};}}),_0x1aff7b['descriptionFactory']['registerDescriptionCallback'](_0x594f01=>'formatBlock'==_0x594f01['type']&&'convertInlineImageToBlock'==_0x594f01['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x594f01['type']&&'convertBlockImageToInline'==_0x594f01['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1aff7b['descriptionFactory']['registerDescriptionCallback'](_0x3ba4ea=>{if('attribute'!=_0x3ba4ea['type'])return;const {data:_0x142781}=_0x3ba4ea;if(!_0x142781||'alt'!=_0x142781['key'])return;const _0x425eb5=_0x142781['newValue'];return _0x425eb5?{'type':'format','content':o(_0x23e691,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x425eb5+'\x22')}:{'type':'format','content':o(_0x23e691,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1928a7=this['editor'],_0x6cdc63=_0x1928a7['locale'];_0x1928a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x966f01=>{if('formatBlock'!=_0x966f01['type']&&'formatInline'!=_0x966f01['type'])return;const {data:_0x35bac0}=_0x966f01;if(_0x35bac0){if('imageTextAlternative'==_0x35bac0['commandName']){const _0x44db95=_0x35bac0['commandParams'][0x0]['newValue'];return _0x44db95?{'type':'format','content':o(_0x6cdc63,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44db95+'\x22')}:{'type':'format','content':o(_0x6cdc63,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x35bac0['commandName']){const _0x1a4977=_0x35bac0['commandParams'][0x0]['width'];return _0x1a4977?{'type':'format','content':o(_0x6cdc63,'*Set\x20image\x20width:*\x20%0',_0x1a4977)}:{'type':'format','content':o(_0x6cdc63,'*Reset\x20image\x20width*')};}}});}}class st extends _0x576da6{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3dc7e4=this['editor']['locale'],_0x596dee=this['editor']['plugins']['get']('TrackChangesEditing');_0x596dee['enableDefaultAttributesIntegration']('replaceImageSource'),_0x596dee['registerBlockAttribute']('src'),_0x596dee['descriptionFactory']['registerDescriptionCallback'](_0x5bdb4c=>{if('attribute'!=_0x5bdb4c['type'])return;const {data:_0x28d655}=_0x5bdb4c;return _0x28d655&&'src'==_0x28d655['key']?_0x28d655['newValue']&&_0x28d655['oldValue']?{'type':'format','content':o(_0x3dc7e4,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3b91b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b91b5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3b91b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b91b5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3b91b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58b838=this['editor'],_0x4fe3ba=_0x58b838['locale'];_0x58b838['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a2775=>{if('formatBlock'!=_0x5a2775['type']&&'formatInline'!=_0x5a2775['type'])return;const {data:_0x2ed2c2}=_0x5a2775;if(!_0x2ed2c2||'replaceImageSource'!=_0x2ed2c2['commandName'])return;return{'type':'format','content':o(_0x4fe3ba,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x576da6{['afterInit'](){const _0x57ed82=this['editor'];if(!_0x57ed82['plugins']['has']('ImageStyleEditing'))return;const _0x409e94=_0x57ed82['plugins']['get']('TrackChangesEditing'),_0x1a98e3=_0x57ed82['plugins']['get']('ImageUtils'),_0x1e23ba={};_0x409e94['enableCommand']('imageStyle',(_0x3c31aa,_0x355bc2)=>{const _0x45c51a=_0x57ed82['plugins']['get']('Users')['me'],_0x29f2ab=_0x57ed82['commands']['get']('imageStyle');let _0x3d3c85=_0x1a98e3['getClosestSelectedImageElement'](_0x57ed82['model']['document']['selection']),_0x5b4ce9=_0x57ed82['model']['createRangeOn'](_0x3d3c85),_0x13865f=_0x29f2ab['value'];if(_0x13865f==_0x355bc2['value'])return;const _0x34e5ee={'commandName':'imageStyle','commandParams':[_0x355bc2],'formatGroupId':_0x5c5ac9()};_0x57ed82['model']['change'](()=>{if(_0x409e94['getSuggestions']()['filter'](_0x4b3da0=>_0x4b3da0['isInContent']&&_0x45c51a==_0x4b3da0['author']&&('formatBlock'==_0x4b3da0['type']||'formatInline'==_0x4b3da0['type'])&&('imageStylePreApply'==_0x4b3da0['subType']||'imageStylePostApply'==_0x4b3da0['subType'])&&_0x4b3da0['getFirstRange']()['isEqual'](_0x5b4ce9))['forEach'](_0x22e9ca=>_0x409e94['discardSuggestion'](_0x22e9ca['head'])),_0x3d3c85=_0x1a98e3['getClosestSelectedImageElement'](_0x57ed82['model']['document']['selection']),_0x5b4ce9=_0x57ed82['model']['createRangeOn'](_0x3d3c85),_0x29f2ab['refresh'](),_0x57ed82['commands']['get']('imageTypeInline')['refresh'](),_0x57ed82['commands']['get']('imageTypeBlock')['refresh'](),_0x13865f=_0x29f2ab['value'],_0x13865f!=_0x355bc2['value'])return _0x1a98e3['isInlineImage'](_0x3d3c85)&&_0x29f2ab['shouldConvertImageType'](_0x355bc2['value'],_0x3d3c85)?(_0x3c31aa({..._0x355bc2,'setImageSizes':!0x1}),_0x3d3c85=_0x1a98e3['getClosestSelectedImageElement'](_0x57ed82['model']['document']['selection']),void _0x409e94['markBlockFormat'](_0x3d3c85,{..._0x34e5ee,'commandReversedParams':[{'value':_0x13865f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1a98e3['isBlockImage'](_0x3d3c85)?_0x409e94['markBlockFormat'](_0x3d3c85,_0x34e5ee,[],'imageStylePostApply'):_0x409e94['markInlineFormat'](_0x5b4ce9,_0x34e5ee,'imageStylePostApply'));});});for(const _0x33522b of _0x57ed82['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1e23ba[_0x33522b['name']]=_0x33522b['title']['toLowerCase']();_0x409e94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x409e94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x409e94['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x409e94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3252d9])=>{_0x1a98e3['setImageNaturalSizeAttributes'](_0x3252d9['getContainedElement']());}),_0x409e94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xaef9c6,_0x3bd428)=>{_0x409e94['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xaef9c6,{'commandName':_0x3bd428['commandName'],'commandParams':_0x3bd428['commandReversedParams']});}),_0x409e94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3c3b90,_0x21f38f){if(_0x4378dd(_0x3c3b90,_0x21f38f))return[_0x3c3b90,_0x21f38f];if(_0x4378dd(_0x21f38f,_0x3c3b90))return[_0x21f38f,_0x3c3b90];return null;});const _0x526283=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4378dd(_0x2232d4,_0x281311){const _0x51e815=_0x526283['findIndex'](({type:_0x24bffd,subType:_0x1e49aa})=>_0x2232d4['type']==_0x24bffd&&_0x2232d4['subType']==_0x1e49aa),_0x6e8ceb=_0x526283['findIndex'](({type:_0x459c70,subType:_0x44c83f})=>_0x281311['type']==_0x459c70&&_0x281311['subType']==_0x44c83f);if(_0x51e815<0x0||_0x6e8ceb<0x0)return!0x1;const _0x309a16=_0x2232d4['getFirstRange'](),_0x45d129=_0x281311['getFirstRange']();if((0x0==_0x51e815||0x1==_0x51e815)&&0x2==_0x6e8ceb&&_0x309a16['isIntersecting'](_0x45d129))return!0x0;if(0x2==_0x51e815&&0x3==_0x6e8ceb){const _0x534cb8=_0x409e94['_findSuggestions'](_0x309a16,'insertion')['filter'](({suggestion:_0x53a685,meta:_0xc2e73e})=>_0xc2e73e['isOwn']&&'convertInlineImageToBlock'==_0x53a685['subType']);if(_0x534cb8['length']>0x1&&_0x45d129['end']['isEqual'](_0x309a16['start']))return!0x0;if(0x1==_0x534cb8['length']&&(_0x309a16['start']['isEqual'](_0x45d129['end'])||_0x309a16['end']['isEqual'](_0x45d129['start'])))return!0x0;}if(0x3==_0x51e815&&0x3==_0x6e8ceb&&_0x309a16['start']['isBefore'](_0x45d129['start'])){const _0x4c2bdb=_0x309a16['end']['nodeAfter'],_0x4c4606=_0x45d129['start']['nodeBefore'];return _0x1a98e3['isBlockImage'](_0x4c2bdb)&&_0x4c2bdb===_0x4c4606;}return!0x1;}_0x57ed82['model']['document']['registerPostFixer'](()=>{let _0x5e61b9=!0x1;const _0xfcb164=Array['from'](_0x57ed82['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xde2ef7,data:_0x1ba561}of _0xfcb164){const {group:_0x2ccc4c,type:_0x4ae09e,subType:_0x5996dd,id:_0x1962a0}=_0x409e94['_splitMarkerName'](_0xde2ef7);if('suggestion'==_0x2ccc4c&&_0x409e94['hasSuggestion'](_0x1962a0)){if('formatBlock'==_0x4ae09e&&('imageStylePreApply'==_0x5996dd||'imageStylePostApply'==_0x5996dd)){const _0x380f05=_0x409e94['getSuggestion'](_0x1962a0);if(_0x1ba561['newRange']){const _0x532f55=_0x380f05['getFirstRange']()['getContainedElement']();if(_0x1a98e3['isBlockImage'](_0x532f55))continue;_0x409e94['discardSuggestion'](_0x380f05),_0x5e61b9=!0x0;}}if('insertion'==_0x4ae09e&&'imageCaption'==_0x5996dd&&!_0x1ba561['newRange']){const _0x19d385=_0x409e94['getSuggestion'](_0x1962a0);_0x19d385['next']&&_0x19d385['next']['isInContent']&&(_0x409e94['discardSuggestion'](_0x19d385['next']),_0x5e61b9=!0x0);}}}return _0x5e61b9;}),this['_registerLegacyDescription'](_0x1e23ba);}['_registerLegacyDescription'](_0x26f2a2){const _0x17b30c=this['editor'],_0x68ee30=_0x17b30c['locale'];_0x17b30c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x212c73=>{if('formatBlock'!=_0x212c73['type']&&'formatInline'!=_0x212c73['type'])return;const {data:_0x4c84b3}=_0x212c73;if(!_0x4c84b3||'imageStyle'!=_0x4c84b3['commandName'])return;const _0x4f0c4f=_0x4c84b3['commandParams'][0x0]['value'];return _0x21f8bc('side'===_0x4f0c4f?o(_0x68ee30,'FORMAT_SIDE_IMAGE'):_0x26f2a2[_0x4f0c4f]||_0x4f0c4f);function _0x21f8bc(_0x179923){return{'type':'format','content':o(_0x68ee30,'*Format:*\x20%0',_0x179923)};}});}}class ot extends _0x576da6{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4339c1){super(_0x4339c1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3d251c=this['editor'],_0x4b2b4f=_0x3d251c['commands']['get']('importWord'),_0x274f62=_0x3d251c['commands']['get']('trackChanges');_0x4b2b4f&&(_0x4b2b4f['on']('execute',(_0x56c844,[,_0x5db89b])=>{this['_trackChangesValueDuringImport']=_0x274f62['value'],_0x5db89b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4b2b4f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4b2b4f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x274f62['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3d251c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x8899c6,_0x512daf){const {suggestions:_0x3a44ac}=_0x512daf,_0x91a08b=this['editor']['commands']['get']('trackChanges'),_0x3bb62c=_0x91a08b['value'];this['_trackChangesValueDuringImport']!==_0x3bb62c&&(_0x91a08b['execute'](),this['_trackChangesExecuted']=!0x0),_0x3a44ac&&_0x3a44ac['forEach'](({id:_0x190536,type:_0x215ccf,author:_0x1197e2,created_at:_0x39a52a})=>{const _0x5b166d={'id':_0x190536,'type':_0x215ccf,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1197e2,'createdAt':_0x39a52a?new Date(_0x39a52a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5b166d);});}}class rt extends _0x576da6{['afterInit'](){const _0x224486=this['editor'],_0x19d2c4=_0x224486['plugins']['get']('TrackChangesEditing');if(_0x224486['plugins']['has']('IndentEditing')&&(_0x19d2c4['enableCommand']('indent'),_0x19d2c4['enableCommand']('outdent')),_0x224486['plugins']['has']('IndentBlock')){for(const _0x4ca9bf of['indentBlock','outdentBlock'])_0x19d2c4['enableDefaultAttributesIntegration'](_0x4ca9bf);}const _0x403d88=_0x224486['locale'];_0x19d2c4['registerBlockAttribute']('blockIndent'),_0x19d2c4['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x403d88,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d40cc=this['editor'],_0x445316=_0x2d40cc['locale'],_0x40f901=_0x2d40cc['plugins']['get']('TrackChangesEditing');_0x40f901['descriptionFactory']['registerDescriptionCallback'](_0x20ae31=>{if('formatBlock'!=_0x20ae31['type'])return;const {data:_0x404063}=_0x20ae31;if(!_0x404063)return;if('indentBlock'!=_0x404063['commandName']&&'outdentBlock'!=_0x404063['commandName'])return;const _0x484dc9=_0x20ae31['getItems']()[0x0],_0x21b5bb=_0x40f901['descriptionFactory']['getItemLabel'](_0x484dc9);return'indentBlock'==_0x404063['commandName']?{'type':'format','content':o(_0x445316,'*Indent:*\x20%0',_0x21b5bb)}:'outdentBlock'==_0x404063['commandName']?{'type':'format','content':o(_0x445316,'*Outdent:*\x20%0',_0x21b5bb)}:void 0x0;});}}class at extends _0x576da6{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x576da6{['afterInit'](){const _0x217bc6=this['editor'];if(!_0x217bc6['plugins']['has']('LinkEditing'))return;const _0x56db76=_0x217bc6['plugins']['get']('TrackChangesEditing'),_0x366474=_0x217bc6['commands']['get']('link');_0x56db76['enableDefaultAttributesIntegration']('link'),_0x56db76['enableDefaultAttributesIntegration']('unlink'),_0x56db76['registerInlineAttribute']('linkHref');for(const _0x5cb818 of _0x366474['manualDecorators'])_0x56db76['registerInlineAttribute'](_0x5cb818['id']),_0x56db76['descriptionFactory']['registerAttributeLabel'](_0x5cb818['id'],'link\x20('+_0x5cb818['label']['toLowerCase']()+')');_0x56db76['descriptionFactory']['registerDescriptionCallback'](_0x281e2e=>{if('attribute'!=_0x281e2e['type'])return;const {data:_0x3e8e10}=_0x281e2e;if(!_0x3e8e10||'linkHref'!=_0x3e8e10['key'])return;const _0x799240=_0x3e8e10['newValue'],_0x5396f0=_0x217bc6['locale'];return{'type':'format','content':null==_0x799240?o(_0x5396f0,'*Remove\x20link*'):o(_0x5396f0,'*Set\x20link:*\x20%0','\x22'+_0x799240+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19aa6e=this['editor'],_0x2cad12=_0x19aa6e['locale'];_0x19aa6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bda30=>{if('formatInline'!=_0x2bda30['type'])return;const {data:_0x2ded53}=_0x2bda30;if(_0x2ded53){if('link'==_0x2ded53['commandName']){const _0x295122=_0x2ded53['commandParams'][0x0];return{'type':'format','content':o(_0x2cad12,'*Set\x20link:*\x20%0','\x22'+_0x295122+'\x22')};}return'unlink'==_0x2ded53['commandName']?{'type':'format','content':o(_0x2cad12,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x576da6{['afterInit'](){const _0x511c1e=this['editor'],_0x10fa8e=_0x511c1e['locale'];if(!_0x511c1e['plugins']['has']('LegacyListEditing'))return;const _0x103931=_0x511c1e['plugins']['get']('TrackChangesEditing'),_0x3105b1=_0x511c1e['plugins']['has']('LegacyTodoListEditing');function _0x3251a2(_0x19c59e){return()=>{const _0x513d6d=_0x511c1e['model']['document']['selection'],_0xb90646=_0x511c1e['commands']['get'](_0x19c59e);if(_0xb90646['value'])return void _0x511c1e['execute']('paragraph',{});const _0x4c86a2=_0x19c59e['slice'](0x0,-0x4),_0x28769c=function(_0x1dbc70,_0x2e0675,_0x3fb835){let _0x1951a1=Array['from'](_0x1dbc70)['filter'](_0x36475b=>function(_0x4663f4,_0x4ffd04){return _0x4ffd04['checkChild'](_0x4663f4['parent'],'listItem')&&!_0x4ffd04['isObject'](_0x4663f4);}(_0x36475b,_0x3fb835));_0x1951a1=_0x1951a1['filter'](_0x287b7a=>!_0x287b7a['is']('element','listItem')||_0x287b7a['getAttribute']('listType')!=_0x2e0675);const _0x2556e7=new Set();for(const _0x1ebca0 of _0x1951a1)_0x1ebca0['is']('element','listItem')?_0x2556e7['add'](me(_0x1ebca0)):_0x2556e7['add'](_0x1ebca0);return Array['from'](_0x2556e7);}(_0x513d6d['getSelectedBlocks'](),_0x4c86a2,_0x511c1e['model']['schema']);_0x511c1e['model']['change'](()=>{for(const _0x559b14 of _0x28769c)_0x103931['markBlockFormat'](_0x559b14,{'commandName':_0x19c59e,'commandParams':[{'forceValue':!_0xb90646['value']}],'formatGroupId':'blockName'},fe(_0x559b14));});};}function _0x1330c9(_0x593c77){return()=>{const _0xc36f67=function(_0x42fc2c){let _0x13b632=Array['from'](_0x42fc2c);const _0x1a2ba0=_0x13b632['findIndex'](_0x3d5bf3=>'listItem'!=_0x3d5bf3['name']);return _0x1a2ba0>-0x1&&(_0x13b632=_0x13b632['slice'](0x0,_0x1a2ba0)),_0x13b632;}(_0x511c1e['model']['document']['selection']['getSelectedBlocks']()),_0x20af60=_0x511c1e['model']['createRange'](_0x511c1e['model']['createPositionAt'](_0xc36f67[0x0],'before'),_0x511c1e['model']['createPositionAt'](_0xc36f67[_0xc36f67['length']-0x1],'end'));_0x511c1e['model']['change'](()=>{_0x103931['markBlockFormat'](_0x20af60,{'commandName':_0x593c77,'commandParams':[],'formatGroupId':'listIndent'},function(_0x122b50){const _0x53e020=new Set();for(const _0x4ee0e2 of _0x122b50){let _0x15faf5=_0x4ee0e2['nextSibling'];for(;_0x15faf5&&_0x15faf5['getAttribute']('listIndent')>_0x4ee0e2['getAttribute']('listIndent');)_0x53e020['add'](_0x15faf5),_0x15faf5=_0x15faf5['nextSibling'];}return Array['from'](_0x53e020);}(_0xc36f67));});};}_0x103931['enableCommand']('numberedList',_0x3251a2('numberedList')),_0x103931['enableCommand']('bulletedList',_0x3251a2('bulletedList')),_0x3105b1&&_0x103931['enableCommand']('todoList',_0x3251a2('todoList')),_0x103931['enableCommand']('indentList',_0x1330c9('indentList')),_0x103931['enableCommand']('outdentList',_0x1330c9('outdentList')),_0x3105b1&&_0x103931['enableCommand']('checkTodoList',()=>{const _0x58169c=_0x511c1e['commands']['get']('checkTodoList'),_0x44f2d2=Array['from'](_0x58169c['_selectedElements']);_0x44f2d2['filter'](_0x25e57d=>_0x25e57d['getAttribute']('todoListChecked')!=_0x58169c['value']),_0x511c1e['model']['change'](()=>{for(const _0x5c1df4 of _0x44f2d2)_0x103931['markBlockFormat'](_0x5c1df4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x58169c['value']}]});});}),_0x103931['descriptionFactory']['registerElementLabel']('listItem',_0x885b4f=>o(_0x10fa8e,'ELEMENT_LIST_ITEM',_0x885b4f)),_0x103931['descriptionFactory']['registerDescriptionCallback'](_0x10de7b=>{if('formatBlock'!=_0x10de7b['type']&&'formatInline'!=_0x10de7b['type'])return;const {data:_0x32290b}=_0x10de7b;if(_0x32290b){if('numberedList'==_0x32290b['commandName']||'bulletedList'==_0x32290b['commandName']||'todoList'==_0x32290b['commandName'])switch(_0x32290b['commandName']['replace']('List','')){case'bulleted':return _0x2c82b6(o(_0x10fa8e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c82b6(o(_0x10fa8e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c82b6(o(_0x10fa8e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x32290b['commandName'])return{'type':'format','content':o(_0x10fa8e,'*Indent:*\x20%0',o(_0x10fa8e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x32290b['commandName'])return{'type':'format','content':o(_0x10fa8e,'*Outdent:*\x20%0',o(_0x10fa8e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x32290b['commandName'])return _0x32290b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10fa8e,'*Check\x20item*')}:{'type':'format','content':o(_0x10fa8e,'*Uncheck\x20item*')};}function _0x2c82b6(_0x2c3a88){return{'type':'format','content':o(_0x10fa8e,'*Change\x20to:*\x20%0',_0x2c3a88)};}});}}function me(_0x524e20){const _0x46dcfd=_0x524e20['getAttribute']('listIndent');if(0x0==_0x46dcfd)return _0x524e20;let _0x41f92f=_0x524e20;for(;_0x524e20['previousSibling']&&_0x524e20['previousSibling']['is']('element','listItem');){const _0x276d6c=_0x524e20['previousSibling']['getAttribute']('listIndent');if(_0x276d6c==_0x46dcfd)_0x41f92f=_0x524e20['previousSibling'];else{if(_0x276d6c<_0x46dcfd)break;}_0x524e20=_0x524e20['previousSibling'];}return _0x41f92f;}function fe(_0x5e5b89){const _0x38ea33=[];if(_0x5e5b89['is']('element','listItem')&&_0x5e5b89['getAttribute']('listIndent')>0x0){let _0x15423e=_0x5e5b89['nextSibling'];for(;_0x15423e&&'listItem'==_0x15423e['name']&&_0x15423e['getAttribute']('listIndent')==_0x5e5b89['getAttribute']('listIndent');)_0x38ea33['push'](_0x15423e),_0x15423e=_0x15423e['nextSibling'];}return _0x38ea33;}class K extends _0x576da6{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x46b0c=this['editor']['config']['get']('list.properties'),_0x253d14=this['editor']['plugins']['get']('TrackChangesEditing');_0x46b0c['styles']&&_0x253d14['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x46b0c['reversed']&&_0x253d14['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x46b0c['startIndex']&&_0x253d14['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x253d14['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2f3eaa,_0x102dff={}){const _0x2d1820=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ff11b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2d1820['markMultiRangeBlockFormat'](_0x3ff11b,{'commandName':'listStyle','commandParams':[{'type':_0x102dff['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x34fc31,_0x39c755={}){const _0xffcee5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x325882=this['_getSuggestionBlocks'](_0xa640c9=>_0xa640c9['is']('element','listItem')&&'numbered'===_0xa640c9['getAttribute']('listType'));if(_0x325882['length']<0x1)return;const _0x5ac19e=_0x325882['map'](_0x366eba=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x366eba,'before'),this['editor']['model']['createPositionAt'](_0x366eba,0x0)));this['editor']['model']['change'](()=>{_0xffcee5['markMultiRangeBlockFormat'](_0x5ac19e,{'commandName':'listReversed','commandParams':[{'reversed':_0x39c755['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2f2417,_0x26b7e7={}){const _0x5ea9a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f2244=this['_getSuggestionBlocks'](_0x452277=>_0x452277['is']('element','listItem')&&'numbered'===_0x452277['getAttribute']('listType'));if(_0x1f2244['length']<0x1)return;const _0xc7e16e=_0x1f2244['map'](_0x14f487=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x14f487,'before'),this['editor']['model']['createPositionAt'](_0x14f487,0x0)));this['editor']['model']['change'](()=>{_0x5ea9a0['markMultiRangeBlockFormat'](_0xc7e16e,{'commandName':'listStart','commandParams':[{'startIndex':_0x26b7e7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x15ee3d){if('formatBlock'!=_0x15ee3d['type']&&'formatInline'!=_0x15ee3d['type'])return;const _0x45de4a=this['editor']['locale'],{data:_0x474188}=_0x15ee3d;if(!_0x474188)return;let _0x253c77,_0x297ab6;switch(_0x474188['commandName']){case'listStyle':_0x253c77='*Change\x20to:*\x20%0',_0x297ab6={'type':'format','content':o(_0x45de4a,_0x253c77,o(_0x45de4a,this['_getTranslationKeyForListStyle'](_0x474188['commandParams'][0x0]['type'])))};break;case'listReversed':_0x253c77=_0x474188['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x297ab6={'type':'format','content':o(_0x45de4a,_0x253c77)};break;case'listStart':_0x253c77='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x297ab6={'type':'format','content':o(_0x45de4a,_0x253c77,_0x474188['commandParams'][0x0]['startIndex'])};}return _0x297ab6;}['_getSuggestionBlocksForListStyle'](){const _0x26cc6e=this['editor']['plugins']['get']('LegacyListUtils');let _0x1c58f7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1c58f7[0x0]?.['is']('element','listItem')&&_0x1c58f7['unshift'](..._0x26cc6e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1c58f7[_0x1c58f7['length']-0x1]?.['is']('element','listItem')&&_0x1c58f7['push'](..._0x26cc6e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1c58f7=[...new Set(_0x1c58f7)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1c58f7=_0x1c58f7['filter'](_0x49a15a=>_0x49a15a['is']('element','listItem'))),_0x1c58f7;}['_getSuggestionBlocks'](_0x37bb46){const _0x45a167=this['editor']['plugins']['get']('LegacyListUtils');let _0x5d1103=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x37bb46)['map'](_0x12c48d=>{const _0x6d284b=this['editor']['model']['createPositionAt'](_0x12c48d,0x0);return[..._0x45a167['getSiblingNodes'](_0x6d284b,'backward'),..._0x45a167['getSiblingNodes'](_0x6d284b,'forward')];})['flat']();return _0x5d1103=[...new Set(_0x5d1103)],_0x5d1103;}['_getTranslationKeyForListStyle'](_0xb3a339){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xb3a339)||'default')['toUpperCase']()+'_LIST_'+_0xb3a339['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x576da6{['afterInit'](){const _0x26e06f=this['editor'];if(!_0x26e06f['plugins']['has']('MediaEmbedEditing'))return;const _0xe9788b=_0x26e06f['plugins']['get']('TrackChangesEditing'),_0xb11463=_0x26e06f['locale'];_0xe9788b['enableCommand']('mediaEmbed'),_0xe9788b['descriptionFactory']['registerElementLabel']('media',_0x36b531=>o(_0xb11463,'ELEMENT_MEDIA',_0x36b531)),_0x26e06f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x490806,{writer:_0x4dde56,options:_0x4f37b9})=>{if(_0x4f37b9['showSuggestionHighlights'])return _0x4dde56['createEmptyElement']('div');},'converterPriority':'high'}),_0x26e06f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x37bf98,_0x1343a4,_0x30db99)=>{_0x30db99['options']['showSuggestionHighlights']&&_0x37bf98['stop']();},{'priority':'high'});}}class gt extends _0x576da6{['afterInit'](){const _0x13d2e3=this['editor'];_0x13d2e3['plugins']['has']('MentionEditing')&&_0x13d2e3['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x576da6{['afterInit'](){const _0x292a7a=this['editor'],_0x255ef8=_0x292a7a['plugins']['get']('TrackChangesEditing');_0x292a7a['plugins']['has']('MultiLevelList')&&(_0x255ef8['enableDefaultAttributesIntegration']('multiLevelList'),_0x255ef8['registerBlockAttribute']('listMarkerStyle'),_0x255ef8['descriptionFactory']['registerDescriptionCallback'](_0x5bafdd=>this['handleDescriptions'](_0x5bafdd)));}['handleDescriptions'](_0x3f4b97){const _0x38f05f=this['editor']['locale'],{data:_0x393c76}=_0x3f4b97,_0xce6ed0={'type':'format','content':''};if(_0x393c76&&'listMarkerStyle'==_0x393c76['key']){if(!_0x393c76['oldValue'])return{'type':'format','content':o(_0x38f05f,'*Set\x20format:*\x20%0',o(_0x38f05f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x393c76['newValue']+')'};if(!_0x393c76['newValue']){let _0x9f45f1=_0x3f4b97['head'];for(;_0x9f45f1;){if(_0x9f45f1['data']&&'listType'==_0x9f45f1['data']['key']&&_0x9f45f1['data']['newValue'])return _0xce6ed0;_0x9f45f1=_0x9f45f1['next'];}return{'type':'format','content':o(_0x38f05f,'*Remove\x20format:*\x20%0',o(_0x38f05f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x393c76['oldValue']+')'};}}}}class mt extends _0x576da6{['afterInit'](){const _0x4f32b6=this['editor'];if(!_0x4f32b6['plugins']['has']('PageBreakEditing'))return;_0x4f32b6['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1faaf1=_0x4f32b6['plugins']['get']('TrackChangesEditing'),_0x161409=_0x4f32b6['locale'];_0x1faaf1['descriptionFactory']['registerElementLabel']('pageBreak',_0x31c855=>o(_0x161409,'ELEMENT_PAGE_BREAK',_0x31c855));}}class dt extends _0x576da6{['afterInit'](){const _0x3e831c=this['editor'];if(!_0x3e831c['plugins']['has']('Paragraph'))return;const _0x20c84e=_0x3e831c['locale'],_0x2a3d14=_0x3e831c['plugins']['get']('TrackChangesEditing');_0x2a3d14['descriptionFactory']['registerElementLabel']('paragraph',_0x2dfdbc=>o(_0x20c84e,'ELEMENT_PARAGRAPH',_0x2dfdbc)),_0x2a3d14['enableDefaultAttributesIntegration']('paragraph'),_0x2a3d14['enableCommand']('insertParagraph'),_0x3e831c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3e831c),{'priority':'highest'}),_0x3e831c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x37d93e,_0xfed345,_0x48153d)=>{_0x48153d['options']['showSuggestionHighlights']&&nr(_0x3e831c,{'showActiveMarker':!0x1})(_0x37d93e,_0xfed345,_0x48153d);},{'priority':'highest'});const _0x2003eb=_0x2a3d14['descriptionFactory'];_0x2003eb['registerDescriptionCallback'](_0x113e0b=>{if('insertion'!==_0x113e0b['type'])return;const {start:_0x442f16,end:_0x16a25c}=_0x113e0b['getFirstRange']();if(!_0x442f16['isTouching'](_0x16a25c)||!_0x442f16['nodeAfter'])return;const _0x2708b7=_0x3e831c['model']['schema'],_0xc614c7=_0x442f16['nodeAfter'];return _0x2708b7['isBlock'](_0xc614c7)&&!_0x2708b7['isLimit'](_0xc614c7)&&_0x2708b7['checkChild'](_0xc614c7,'$text')?{'type':'insertion','content':o(_0x20c84e,'*Insert:*\x20%0',_0x2003eb['getItemLabel'](_0xc614c7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x170420=this['editor'],_0x280161=_0x170420['locale'];_0x170420['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b09dc=>{if('formatBlock'!=_0x2b09dc['type'])return;const {data:_0x5f36b4}=_0x2b09dc;return _0x5f36b4&&'paragraph'==_0x5f36b4['commandName']?{'type':'format','content':o(_0x280161,'*Change\x20to:*\x20%0',o(_0x280161,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xb09a90,{showActiveMarker:_0x2551bb=!0x0}={}){return(_0x23bb46,_0x3db97c,_0xa02ce6)=>{const _0x55c570=_0xb09a90['plugins']['get']('TrackChangesEditing'),_0x4d0ff5=_0x3db97c['markerRange']['start'],_0x2512c2=_0x3db97c['markerRange']['end'],_0x1310b5=_0xb09a90['model']['schema'];if(!_0x4d0ff5['isTouching'](_0x2512c2)||!_0x4d0ff5['nodeAfter'])return;const _0x1ea80f=_0x4d0ff5['nodeAfter'];if(_0x1310b5['isBlock'](_0x1ea80f)&&!_0x1310b5['isLimit'](_0x1ea80f)&&_0x1310b5['checkChild'](_0x1ea80f,'$text')){if(!_0xa02ce6['consumable']['consume'](_0x3db97c['markerRange'],_0x23bb46['name']))return;const _0x2d8085=_0xa02ce6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x3c0b4f=_0xa02ce6['mapper']['toViewPosition'](_0x2512c2);_0x2551bb&&_0x55c570['activeMarkers']['includes'](_0x3db97c['markerName'])&&_0xa02ce6['writer']['addClass']('ck-suggestion-marker--active',_0x2d8085),_0xa02ce6['writer']['insert'](_0x3c0b4f,_0x2d8085),_0xa02ce6['mapper']['bindElementToMarker'](_0x2d8085,_0x3db97c['markerName']);}};}class pt extends _0x576da6{['afterInit'](){const _0x569446=this['editor'];if(!_0x569446['plugins']['has']('RemoveFormatEditing'))return;_0x569446['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c4528=this['editor'];_0x2c4528['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c81e2=>{if('formatBlock'!=_0x4c81e2['type']&&'formatInline'!=_0x4c81e2['type'])return;const {data:_0x3dd0d2}=_0x4c81e2;return _0x3dd0d2&&'removeFormat'==_0x3dd0d2['commandName']?{'type':'format','content':o(_0x2c4528['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x576da6{['afterInit'](){const _0x3c24e0=this['editor'];if(!_0x3c24e0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5ca8e1=_0x3c24e0['plugins']['get']('TrackChangesEditing');_0x5ca8e1['enableCommand']('goToPreviousRestrictedEditingException'),_0x5ca8e1['enableCommand']('goToNextRestrictedEditingException');const _0x4d2fd6=_0x3c24e0['plugins']['get']('RestrictedEditingModeEditing');_0x4d2fd6['enableCommand']('trackChanges'),_0x4d2fd6['enableCommand']('acceptSuggestion'),_0x4d2fd6['enableCommand']('discardSuggestion'),_0x4d2fd6['enableCommand']('acceptAllSuggestions'),_0x4d2fd6['enableCommand']('discardAllSuggestions'),_0x4d2fd6['enableCommand']('acceptSelectedSuggestions'),_0x4d2fd6['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x576da6{static get['requires'](){return[_0x5bddde];}['init'](){const _0x544836=this['editor'],_0x24bb1e=_0x544836['plugins']['get']('TrackChangesEditing');_0x24bb1e['enableCommand']('shiftEnter'),_0x544836['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x544836),{'priority':'high'}),_0x544836['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x544836),{'priority':'high'}),_0x544836['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f6664,_0x525706,_0x2185dd)=>{_0x2185dd['options']['showSuggestionHighlights']&&de(_0x544836,{'showActiveMarker':!0x1})(_0x2f6664,_0x525706,_0x2185dd);}),_0x24bb1e['descriptionFactory']['registerElementLabel']('softBreak',_0x2c1453=>o(_0x544836['locale'],'ELEMENT_LINE_BREAK',_0x2c1453));}}function de(_0x15cd23,{showActiveMarker:_0x319aa3=!0x0}={}){return(_0x5ceb2c,_0x19dacc,_0x54d47c)=>{const _0x2ebf24=_0x15cd23['plugins']['get']('TrackChangesEditing');if(!_0x54d47c['consumable']['test'](_0x19dacc['markerRange'],_0x5ceb2c['name']))return;const _0x489ed8=_0x15cd23['model'];for(const _0x462cbd of _0x19dacc['markerRange']['getItems']()){if(!_0x462cbd['is']('element','softBreak'))continue;const _0x510a07='deletion'==_0x19dacc['markerName']['split'](':')[0x1]?'merge':'split',_0x41c347=_0x54d47c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x510a07}),_0x585e82=_0x54d47c['mapper']['toViewPosition'](_0x489ed8['createPositionBefore'](_0x462cbd));_0x319aa3&&_0x2ebf24['activeMarkers']['includes'](_0x19dacc['markerName'])&&_0x54d47c['writer']['addClass']('ck-suggestion-marker--active',_0x41c347),_0x54d47c['writer']['insert'](_0x585e82,_0x41c347),_0x54d47c['mapper']['bindElementToMarker'](_0x41c347,_0x19dacc['markerName']);}};}class wt extends _0x576da6{['afterInit'](){const _0xec01ee=this['editor'],_0x5419c4=_0xec01ee['model'],_0x1b7544=_0xec01ee['locale'];if(!_0xec01ee['plugins']['has']('StandardEditingModeEditing'))return;const _0x467f0e=_0xec01ee['plugins']['get']('TrackChangesEditing'),_0x3477b2='restrictedEditingException',_0x49c9ab=_0xec01ee['commands']['get'](_0x3477b2);_0x467f0e['enableCommand'](_0x3477b2,(_0x4954b6,_0x19b58b={})=>{const _0x191b01=_0x5419c4['document']['selection'];if(_0x191b01['isCollapsed'])return void _0x4954b6(_0x19b58b);const _0xe43fca=void 0x0!==_0x19b58b['forceValue']?_0x19b58b['forceValue']:!_0x49c9ab['value'];_0x5419c4['change'](()=>{const _0x39faf9=Array['from'](_0x191b01['getRanges']());for(const _0x553a9d of _0x39faf9){const _0x5245b5=_0xe43fca?[_0x553a9d]:io(_0x3477b2,_0x553a9d,_0x5419c4);for(const _0xd2190b of _0x5245b5)_0x467f0e['markInlineFormat'](_0xd2190b,{'commandName':_0x3477b2,'commandParams':[{'forceValue':_0xe43fca}]});}});}),_0x467f0e['descriptionFactory']['registerDescriptionCallback'](_0x41e805=>{if('formatBlock'!=_0x41e805['type']&&'formatInline'!=_0x41e805['type'])return;const {data:_0x115fc4}=_0x41e805;return _0x115fc4&&_0x115fc4['commandName']==_0x3477b2?_0x115fc4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b7544,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1b7544,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x576da6{['afterInit'](){const _0x2a9b23=this['editor'];if(!_0x2a9b23['plugins']['has']('Style')||!_0x2a9b23['plugins']['has']('DataSchema'))return;const _0x562699=_0x2a9b23['plugins']['get']('TrackChangesEditing'),_0x5aa1bf=_0x2a9b23['locale'],_0x10f6be=_0x2a9b23['config']['get']('style')||{},_0x427c22=_0x2a9b23['plugins']['get']('GeneralHtmlSupport'),_0x39a7f5=_0x2a9b23['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2a9b23['plugins']['get']('DataSchema'),_0x10f6be['definitions']);_0x562699['enableDefaultAttributesIntegration']('style');const _0x166f54=new Set();for(const _0x10b897 of _0x39a7f5['block']){const _0x1d353c=_0x427c22['getGhsAttributeNameForElement'](_0x10b897['element']);_0x166f54['add'](_0x1d353c);}const _0x55af6a=new Set();for(const _0x214c6e of _0x39a7f5['inline']){const _0x4dcea4=_0x427c22['getGhsAttributeNameForElement'](_0x214c6e['element']);_0x55af6a['add'](_0x4dcea4);for(const _0x1328db of _0x214c6e['ghsAttributes'])_0x55af6a['add'](_0x1328db);}for(const _0x23a865 of _0x166f54)_0x562699['registerBlockAttribute'](_0x23a865),_0x562699['descriptionFactory']['registerAttributeLabel'](_0x23a865,o(_0x5aa1bf,'FORMAT_STYLE'));for(const _0x3a57d4 of _0x55af6a)_0x562699['registerInlineAttribute'](_0x3a57d4),_0x562699['descriptionFactory']['registerAttributeLabel'](_0x3a57d4,o(_0x5aa1bf,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2855de=this['editor'],_0x13b65b=_0x2855de['locale'];_0x2855de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c1488=>{if('formatBlock'!=_0x1c1488['type']&&'formatInline'!=_0x1c1488['type'])return;const {data:_0x5ad288}=_0x1c1488;return _0x5ad288&&'style'===_0x5ad288['commandName']?_0x5ad288['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x13b65b,'*Set\x20format:*\x20%0',_0x5ad288['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x13b65b,'*Remove\x20format:*\x20%0',_0x5ad288['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x576da6{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4a507e){super(_0x4a507e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1f8470=this['editor'],_0x394f0c=_0x1f8470['model']['document']['selection'];if(!_0x1f8470['plugins']['has']('TableEditing'))return;const _0x285565=_0x1f8470['locale'],_0x132338=_0x1f8470['plugins']['get']('TrackChangesEditing'),_0x985871=_0x1f8470['plugins']['get']('TableUtils');_0x132338['descriptionFactory']['registerElementLabel']('table',_0x5a0b11=>o(_0x285565,'ELEMENT_TABLE',_0x5a0b11)),this['_setupColumnsRowsFixing'](),_0x132338['enableCommand']('insertTable'),_0x132338['enableCommand']('selectTableRow'),_0x132338['enableCommand']('selectTableColumn');for(const _0x2b0ee8 of['insertTableRowAbove','insertTableRowBelow']){const _0x27aa6f=_0x1f8470['commands']['get'](_0x2b0ee8);_0x132338['enableCommand'](_0x2b0ee8,_0x1c9a27=>{_0x1f8470['model']['change'](_0x42664a=>{_0x1c9a27();const _0x2b63a6='above'===_0x27aa6f['order'],_0x587aeb=_0x985871['getSelectionAffectedTableCells'](_0x394f0c),_0x4545dc=_0x985871['getRowIndexes'](_0x587aeb),_0x553db2=_0x2b63a6?_0x4545dc['first']-0x1:_0x4545dc['last']+0x1,_0x534d57=_0x587aeb[0x0]['findAncestor']('table'),_0x5f4452=_0x985871['createTableWalker'](_0x534d57,{'startRow':_0x553db2,'endRow':_0x553db2}),_0xa7442e=Array['from'](_0x5f4452)['map'](_0x21d952=>_0x42664a['createRangeOn'](_0x21d952['cell']));_0x132338['markMultiRangeInsertion'](_0xa7442e,'tableRow');});});}for(const _0x24b88e of['insertTableColumnLeft','insertTableColumnRight']){const _0x229217=_0x1f8470['commands']['get'](_0x24b88e);_0x132338['enableCommand'](_0x24b88e,_0x36acb2=>{_0x1f8470['model']['change'](_0x2f1900=>{_0x36acb2();const _0x29d38f='left'===_0x229217['order'],_0x190e46=_0x985871['getSelectionAffectedTableCells'](_0x394f0c),_0x4a6437=_0x985871['getColumnIndexes'](_0x190e46),_0x2a4b54=_0x29d38f?_0x4a6437['first']-0x1:_0x4a6437['last']+0x1,_0x93e2f=_0x190e46[0x0]['findAncestor']('table'),_0x43e69b=_0x985871['createTableWalker'](_0x93e2f,{'startRow':0x0,'column':_0x2a4b54,'includeAllSlots':!0x1}),_0x2e3e67=Array['from'](_0x43e69b)['map'](_0x18965e=>_0x2f1900['createRangeOn'](_0x18965e['cell']));_0x132338['markMultiRangeInsertion'](_0x2e3e67,'tableColumn');});});}for(const _0x1e9daf of['removeTableRow','removeTableColumn']){const _0x843640=_0x1e9daf['substr'](0xb),_0x529bb4=_0x843640['toLowerCase'](),_0x58f3a5=_0x529bb4['substr'](0x0,0x3)+'span',_0x3deb0e='table'+_0x843640,_0x22166f='min'+_0x843640,_0x3cf796='max'+_0x843640;_0x132338['enableCommand'](_0x1e9daf,()=>{_0x1f8470['model']['change'](_0x580ef4=>{const _0x150540=_0x985871['getSelectionAffectedTableCells'](_0x394f0c),_0x46de2c=_0x150540[0x0]['findAncestor']('table');let _0xfb1dfe;if('removeTableRow'==_0x1e9daf){const _0x409e28=_0x985871['getRowIndexes'](_0x150540);_0xfb1dfe={'startRow':_0x409e28['first'],'endRow':_0x409e28['last'],'includeAllSlots':!0x0};}else{const _0x25993e=_0x985871['getColumnIndexes'](_0x150540);_0xfb1dfe={'startColumn':_0x25993e['first'],'endColumn':_0x25993e['last'],'includeAllSlots':!0x0};}const _0x10d744=_0x985871['createTableWalker'](_0x46de2c,_0xfb1dfe),_0x2be8c8=Array['from'](_0x10d744)['map'](({cell:_0x5991a7})=>_0x5991a7),_0x325c97=Ee(_0x2be8c8['filter'](_0x39499a=>_0x39499a['hasAttribute'](_0x58f3a5))),_0x9e8ff8=Ee(_0x2be8c8['filter'](_0x2f13af=>!_0x2f13af['hasAttribute'](_0x58f3a5)))['map'](_0x1ce957=>_0x580ef4['createRangeOn'](_0x1ce957)),_0x4981a6=_0x132338['markMultiRangeDeletion'](_0x9e8ff8,_0x3deb0e);if(_0x4981a6&&('tableRow'==_0x4981a6['subType']||'tableColumn'==_0x4981a6['subType'])){const _0x1bd657=this['_getSuggestionCoords'](_0x4981a6);for(const _0x2c8afd of _0x325c97){const _0x1b82de=_0x580ef4['createRangeOn'](_0x2c8afd),_0x7d59f2=_0x985871['getCellLocation'](_0x2c8afd),_0x477e89=_0x2c8afd['getAttribute'](_0x58f3a5)-0x1,_0x57e9a5=_0x1bd657[_0x22166f],_0x47d094=_0x1bd657[_0x3cf796];_0x57e9a5<=_0x7d59f2[_0x529bb4]&&_0x7d59f2[_0x529bb4]+_0x477e89<=_0x47d094&&_0x4981a6['addRange'](_0x1b82de);}}});});}function _0xd1c52a(_0x4803fa){const _0x462729=Array['from'](_0x394f0c['getRanges']())['map'](_0x1dff4c=>_0x264ebf['fromRange'](_0x1dff4c));_0x1f8470['model']['change'](_0x506273=>{const _0x777fb9=_0x506273['batch'];_0x4803fa=_0x4803fa['filter'](_0x468c4c=>'$graveyard'!=_0x468c4c['root']['rootName']),_0x506273['setSelection'](_0x4803fa),_0x1f8470['commands']['get']('removeTableRow')['refresh'](),_0x1f8470['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1f8470['model']['enqueueChange'](()=>{_0x1f8470['model']['enqueueChange'](_0x777fb9,_0x47a602=>{const _0x285b33=_0x462729['filter'](_0x316a5b=>'$graveyard'!=_0x316a5b['root']['rootName']);_0x285b33['length']>0x0&&_0x47a602['setSelection'](_0x285b33);for(const _0x12cf8f of _0x462729)_0x12cf8f['detach']();});});});}function _0x11d48f(_0x583c21){_0x1f8470['model']['change'](_0x54aeab=>{const _0x38806f=Array['from'](_0x394f0c['getRanges']())['map'](_0x128e65=>_0x264ebf['fromRange'](_0x128e65)),_0x5b01f2=[];for(const _0xbe5785 of _0x583c21)for(const _0x235e82 of _0xbe5785['getItems']({'shallow':!0x0}))_0x5b01f2['push'](_0x235e82);for(const _0x20026c of _0x5b01f2)'$graveyard'!=_0x20026c['root']['rootName']&&(_0x54aeab['setSelection'](_0x54aeab['createPositionAt'](_0x20026c,0x0)),_0x1f8470['commands']['get']('removeTableColumn')['refresh'](),_0x1f8470['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x586fa5=_0x38806f['filter'](_0x43fe0e=>'$graveyard'!=_0x43fe0e['root']['rootName']);_0x586fa5['length']>0x0&&_0x54aeab['setSelection'](_0x586fa5);for(const _0x4c9640 of _0x38806f)_0x4c9640['detach']();});}function _0x2379f0(_0x24ab9f,_0x34d601){return _0x34d601['every'](_0xddb42a=>_0x24ab9f['some'](_0x47ad93=>_0x47ad93['end']['isEqual'](_0xddb42a['start'])||_0xddb42a['end']['isEqual'](_0x47ad93['start'])));}function _0x1f3861(_0x53d179,_0x5295d3){return _0x53d179['some'](_0x319390=>_0x5295d3['some'](_0x4e39b8=>_0x319390['end']['isTouching'](_0x4e39b8['start'])));}_0x1f8470['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe71a3d,_0x5bddbf,_0x53d61d)=>{if(!_0x53d61d['options']['showSuggestionHighlights'])return;const _0x55944d=_0x5bddbf['item'];if(!_0x55944d)return;const _0x26de8a=_0x53d61d['mapper']['toViewElement'](_0x55944d);function _0x4afd91(_0x3d8d18){return Array['isArray'](_0x3d8d18)?_0x3d8d18:[_0x3d8d18];}_0x26de8a&&'tableCell'===_0x55944d['name']&&_0x53c805(_0x26de8a,_0x53d61d['writer'],(_0x376338,_0x139e47,_0x260b27)=>_0x260b27['addClass'](_0x4afd91(_0x139e47['classes']),_0x376338),(_0x31824c,_0x3e67c4,_0xc6e709)=>_0xc6e709['removeClass'](_0x4afd91(_0x3e67c4['classes']),_0x31824c));},{'priority':'highest'}),_0x132338['descriptionFactory']['registerDescriptionCallback'](_0x52244a=>{if('insertion'!=_0x52244a['type']&&'deletion'!=_0x52244a['type'])return;const _0x63d4fe=_0x52244a['getContainedElement']();if(null!=_0x63d4fe&&_0x63d4fe['is']('element','table')){if('insertion'==_0x52244a['type']){const _0x5af341=_0x52244a['getItems']()['filter'](_0x58250f=>_0x58250f['is']('$textProxy'))['map'](_0x161524=>_0x161524['data']);if(_0x5af341['length'])return{'type':'insertion','content':o(_0x285565,'*Insert:*\x20%0',o(_0x285565,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5af341['join']('\x20')+'\x22'))};}if('deletion'==_0x52244a['type']){const _0x5b5142=_0x52244a['getItems']()['filter'](_0x1760a7=>_0x1760a7['is']('$textProxy'))['map'](_0x2d750e=>_0x2d750e['data']);if(_0x5b5142['length'])return{'type':'deletion','content':o(_0x285565,'*Remove:*\x20%0',o(_0x285565,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5b5142['join']('\x20')+'\x22'))};}}}),_0x132338['descriptionFactory']['registerDescriptionCallback'](_0x1ee7cb=>{if('tableRow'==_0x1ee7cb['subType']){const _0x2138d5=_0x1ee7cb['getItems']()['filter'](_0x225c6b=>_0x225c6b['is']('$textProxy'))['map'](_0x5d4481=>_0x5d4481['data']),_0xf04bfd=this['_getSuggestionCoords'](_0x1ee7cb),_0x24e2d6=_0xf04bfd['maxRow']-_0xf04bfd['minRow']+0x1;if('insertion'==_0x1ee7cb['type'])return _0x2138d5['length']?{'type':'insertion','content':o(_0x285565,'*Insert:*\x20%0',o(_0x285565,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x24e2d6,'\x22'+_0x2138d5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x285565,'*Insert:*\x20%0',o(_0x285565,'ELEMENT_TABLE_ROW',_0x24e2d6))};if('deletion'==_0x1ee7cb['type'])return _0x2138d5['length']?{'type':'deletion','content':o(_0x285565,'*Remove:*\x20%0',o(_0x285565,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x24e2d6,'\x22'+_0x2138d5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x285565,'*Remove:*\x20%0',o(_0x285565,'ELEMENT_TABLE_ROW',_0x24e2d6))};}if('tableColumn'==_0x1ee7cb['subType']){const _0x4dcaac=_0x1ee7cb['getItems']()['filter'](_0x36e689=>_0x36e689['is']('$textProxy'))['map'](_0x539449=>_0x539449['data']),_0x23ce47=this['_getSuggestionCoords'](_0x1ee7cb),_0x868c95=_0x23ce47['maxColumn']-_0x23ce47['minColumn']+0x1;if('insertion'==_0x1ee7cb['type'])return _0x4dcaac['length']?{'type':'insertion','content':o(_0x285565,'*Insert:*\x20%0',o(_0x285565,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x868c95,'\x22'+_0x4dcaac['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x285565,'*Insert:*\x20%0',o(_0x285565,'ELEMENT_TABLE_COLUMN',_0x868c95))};if('deletion'==_0x1ee7cb['type'])return _0x4dcaac['length']?{'type':'deletion','content':o(_0x285565,'*Remove:*\x20%0',o(_0x285565,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x868c95,'\x22'+_0x4dcaac['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x285565,'*Remove:*\x20%0',o(_0x285565,'ELEMENT_TABLE_COLUMN',_0x868c95))};}}),_0x132338['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xd1c52a),_0x132338['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xd1c52a),_0x132338['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x11d48f),_0x132338['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x11d48f),_0x132338['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2379f0),_0x132338['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2379f0),_0x132338['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1f3861),_0x132338['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1f3861);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3a90ed=this['editor'],_0x34f3f1=_0x3a90ed['model']['document']['selection'];return(_0x767914,_0x5067cd)=>{_0x3a90ed['model']['change'](_0x6631f4=>{const {commandName:_0x118ad0,commandParams:_0x5d6f14}=_0x5067cd;let _0x15514a=_0x767914[0x0]['end']['nodeBefore'];_0x5d6f14&&_0x5d6f14[0x0]&&!0x1===_0x5d6f14[0x0]['forceValue']&&(_0x15514a=_0x767914[0x0]['start']['nodeAfter']);const _0x1b701f=_0x6631f4['createRangeIn'](_0x15514a);if('$graveyard'==_0x1b701f['root']['rootName'])return;const _0x4d8618=Array['from'](_0x34f3f1['getRanges']())['map'](_0x5a517f=>_0x264ebf['fromRange'](_0x5a517f));_0x6631f4['setSelection'](_0x1b701f),_0x3a90ed['commands']['get'](_0x118ad0)['refresh'](),_0x5d6f14['push']({'forceDefaultExecution':!0x0}),_0x3a90ed['execute'](_0x118ad0,..._0x5d6f14);const _0x3260f3=_0x4d8618['filter'](_0x129277=>'$graveyard'!=_0x129277['root']['rootName']);_0x3260f3['length']>0x0&&_0x6631f4['setSelection'](_0x3260f3);for(const _0x1fc9b6 of _0x4d8618)_0x1fc9b6['detach']();});};}['_getCoordsForCells'](_0x154ceb){const _0x16da21=this['editor']['plugins']['get']('TableUtils');let _0x13c774=Number['MAX_SAFE_INTEGER'],_0x1efb51=Number['MIN_SAFE_INTEGER'],_0x5b1e69=Number['MAX_SAFE_INTEGER'],_0x1a9d0c=Number['MIN_SAFE_INTEGER'];for(const _0x4cc8be of _0x154ceb){if('$graveyard'==_0x4cc8be['root']['rootName'])continue;const {row:_0x47a1fa,column:_0x881069}=_0x16da21['getCellLocation'](_0x4cc8be),_0x1bdc0c=_0x4cc8be['hasAttribute']('rowspan')?_0x4cc8be['getAttribute']('rowspan')-0x1:0x0,_0x455444=_0x4cc8be['hasAttribute']('colspan')?_0x4cc8be['getAttribute']('colspan')-0x1:0x0;_0x13c774=_0x47a1fa<_0x13c774?_0x47a1fa:_0x13c774,_0x1efb51=_0x47a1fa+_0x1bdc0c>_0x1efb51?_0x47a1fa+_0x1bdc0c:_0x1efb51,_0x5b1e69=_0x881069<_0x5b1e69?_0x881069:_0x5b1e69,_0x1a9d0c=_0x881069+_0x455444>_0x1a9d0c?_0x881069+_0x455444:_0x1a9d0c;}return{'minRow':_0x13c774,'maxRow':_0x1efb51,'minColumn':_0x5b1e69,'maxColumn':_0x1a9d0c};}['_setupColumnsRowsFixing'](){const _0x4993e0=this['editor'],_0x1600a9=_0x4993e0['plugins']['get']('TrackChangesEditing'),_0x3bb911=_0x4993e0['plugins']['get']('TableUtils');_0x4993e0['model']['document']['on']('change:data',()=>{const _0x2f4694=Array['from'](_0x4993e0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1176f4,data:_0x236ff2}of _0x2f4694){const {group:_0x29edf3,id:_0x166280,subType:_0x117839}=_0x1600a9['_splitMarkerName'](_0x1176f4);if('suggestion'!=_0x29edf3)continue;if(null!=_0x236ff2['oldRange'])continue;const _0x2536ac=_0x1600a9['getSuggestion'](_0x166280);this['_tablePostFixingSubtypes']['includes'](_0x117839)&&this['_tableSuggestions']['add'](_0x2536ac);}},{'priority':'low'});const _0x29aab9=(_0x23046e,_0x5385c4)=>{let _0x169df0=!0x1;const _0x2435f9=_0x5385c4['createRangeOn'](_0x23046e),_0x2f726f=_0x23046e['findAncestor']('table'),_0x1a7ea4=_0x3bb911['getCellLocation'](_0x23046e);for(const _0x53fa34 of this['_tableSuggestions']){const _0x414b9c=_0x53fa34['subType'],_0x36bfb6=_0x414b9c['startsWith']('tablePaste'),_0x347f25=_0x414b9c['substr'](_0x36bfb6?0xa:0x5),_0x12b966=_0x347f25['toLowerCase'](),_0x22e16f=_0x12b966['substr'](0x0,0x3)+'span',_0x30ec87='min'+_0x347f25,_0x36735d='max'+_0x347f25;if(!_0x53fa34['isInContent'])continue;if(_0x2f726f!=_0x53fa34['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x53fa34['isIntersectingWithRange'](_0x2435f9))continue;const _0x124330=_0x23046e['hasAttribute'](_0x22e16f)?_0x23046e['getAttribute'](_0x22e16f)-0x1:0x0,_0x260afa=this['_getSuggestionCoords'](_0x53fa34),_0x340536=_0x260afa[_0x30ec87],_0x8ce471=_0x260afa[_0x36735d];_0x340536<=_0x1a7ea4[_0x12b966]&&_0x1a7ea4[_0x12b966]+_0x124330<=_0x8ce471&&(_0x53fa34['addRange'](_0x2435f9),_0x169df0=!0x0);}return _0x169df0;};_0x4993e0['model']['document']['registerPostFixer'](_0x1a3c79=>{let _0x34649a=!0x1;for(const _0x557a87 of _0x4993e0['model']['document']['differ']['getChanges']())if('insert'==_0x557a87['type']){if('tableRow'==_0x557a87['name']){for(const _0x1e3006 of _0x557a87['position']['nodeAfter']['getChildren']())_0x34649a=_0x34649a||_0x29aab9(_0x1e3006,_0x1a3c79);}else'tableCell'==_0x557a87['name']&&(_0x34649a=_0x34649a||_0x29aab9(_0x557a87['position']['nodeAfter'],_0x1a3c79));}return _0x34649a;});}['_getSuggestionCoords'](_0x474f49){return this['_getCoordsForCells'](_0x474f49['getRanges']()['map'](_0x50cb17=>_0x50cb17['start']['nodeAfter']));}}function Ee(_0x41b41e){return Array['from'](new Set(_0x41b41e)['values']());}class St extends _0x576da6{static get['requires'](){return[jt];}['afterInit'](){const _0x13eff8=this['editor'],_0x503007=_0x13eff8['model']['document']['selection'],_0x24c0a9=_0x13eff8['locale'];if(!_0x13eff8['plugins']['has']('TableEditing'))return;const _0x5c2485=_0x13eff8['plugins']['get']('TrackChangesEditing'),_0x1ca945=_0x13eff8['plugins']['get']('TableUtils'),_0x13ffd6=_0x13eff8['plugins']['get'](jt);_0x13ffd6['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5c2485['enableCommand']('mergeTableCells',()=>{const _0x3e6d76=_0x1ca945['getSelectionAffectedTableCells'](_0x13eff8['model']['document']['selection']);_0x13eff8['model']['change'](()=>{_0x5c2485['markMultiRangeBlockFormat'](_0x3e6d76,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x13eff8['commands']['get']('mergeTableCells')['on']('execute',(_0x4af3e6,_0x1d5747)=>{_0x13eff8['commands']['get']('trackChanges')['value']&&(_0x1d5747['length']>0x0&&_0x1d5747[_0x1d5747['length']-0x1]&&_0x1d5747[_0x1d5747['length']-0x1]['forceDefaultExecution']||_0x5c2485['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4af3e6['stop']());},{'priority':'highest'});for(const _0x8f021b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x468a68=_0x13eff8['commands']['get'](_0x8f021b);_0x5c2485['enableCommand'](_0x8f021b,()=>{const _0x5a3754=_0x13eff8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x22a899=>_0x22a899['is']('element','tableCell')),_0x46bf68=_0x468a68['value'];_0x13eff8['model']['change'](()=>{_0x5c2485['markMultiRangeBlockFormat']([_0x5a3754,_0x46bf68],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x212f48 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x20b8c1=_0x13eff8['commands']['get'](_0x212f48);_0x5c2485['enableCommand'](_0x212f48,()=>{const _0x3852ff=_0x1ca945['getSelectionAffectedTableCells'](_0x13eff8['model']['document']['selection'])[0x0],_0x2d4b26=_0x3852ff['findAncestor']('table'),{column:_0x33e53f,row:_0x5f5332}=_0x1ca945['getCellLocation'](_0x3852ff);let _0x2d813e=[];if('horizontally'==_0x20b8c1['direction']){const _0x548781=_0x1ca945['createTableWalker'](_0x2d4b26,{'startRow':_0x5f5332,'endRow':_0x5f5332,'includeAllSlots':!0x0});_0x2d813e=Array['from'](_0x548781)['map'](_0xc44bde=>_0xc44bde['cell']);}else{const _0x1df269=_0x1ca945['createTableWalker'](_0x2d4b26,{'column':_0x33e53f,'includeAllSlots':!0x0});_0x2d813e=Array['from'](_0x1df269)['map'](_0x4aa6db=>_0x4aa6db['cell']);}_0x13eff8['model']['change'](_0x58d80e=>{_0x5c2485['markBlockFormat'](_0x58d80e['createRangeOn'](_0x3852ff),{'commandName':_0x212f48,'commandParams':[]},_0x2d813e,_0x212f48);});});}_0x5c2485['descriptionFactory']['registerDescriptionCallback'](_0x227d85=>{if('formatBlock'!=_0x227d85['type']&&'formatInline'!=_0x227d85['type'])return;const {data:_0x5bc87a}=_0x227d85;return _0x5bc87a&&'mergeTableCells'==_0x5bc87a['commandName']?{'type':'format','content':o(_0x24c0a9,'*Merge\x20cells*')}:void 0x0;}),_0x5c2485['descriptionFactory']['registerDescriptionCallback'](_0x322cc7=>{if('formatBlock'!=_0x322cc7['type']&&'formatInline'!=_0x322cc7['type'])return;const {data:_0x11107d}=_0x322cc7;return _0x11107d?'splitTableCellVertically'==_0x11107d['commandName']?{'type':'format','content':o(_0x24c0a9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x11107d['commandName']?{'type':'format','content':o(_0x24c0a9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xa7ef46=_0x13ffd6['_acceptFormatSuggestionCallbackFactory']();for(const _0xb6b11e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5c2485['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xb6b11e,'accept',_0xa7ef46);for(const _0x198396 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5c2485['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x198396,'accept',_0xa7ef46);_0x5c2485['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2c1ce6=>{_0x13eff8['model']['change'](_0x4a8e44=>{const _0xb08579=Array['from'](_0x503007['getRanges']())['map'](_0x2dbcbf=>_0x264ebf['fromRange'](_0x2dbcbf));_0x4a8e44['setSelection'](_0x2c1ce6),_0x13eff8['commands']['get']('mergeTableCells')['refresh'](),_0x13eff8['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5c47ee=_0xb08579['filter'](_0x197373=>'$graveyard'!=_0x197373['root']['rootName']);_0x5c47ee['length']>0x0&&_0x4a8e44['setSelection'](_0x5c47ee);for(const _0x517793 of _0xb08579)_0x517793['detach']();});});for(const _0x5b6703 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x851313=_0x13eff8['commands']['get'](_0x5b6703);_0x851313['on']('set:isEnabled',(_0x1e7d9e,_0x4c687f,_0x590d76)=>{if(_0x590d76){const _0x2e9585=_0x13eff8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x69a4d0=>_0x69a4d0['is']('element','tableCell'));this['_areMergableCells'](_0x851313['value'],_0x2e9585)||(_0x1e7d9e['return']=!0x1,_0x1e7d9e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5cc423=this['editor']['commands']['get']('mergeTableCells'),_0x42ae90=this['editor']['plugins']['get']('TableUtils');if(!_0x5cc423['isEnabled'])return!0x1;const _0x5dc14f=_0x42ae90['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x559129 of _0x5dc14f)for(const _0x4a534d of _0x5dc14f)if(_0x559129!=_0x4a534d&&!this['_areMergableCells'](_0x559129,_0x4a534d))return!0x1;return!0x0;}['_areMergableCells'](_0x3e5558,_0x4d7765){const _0x2ec90e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2546b7=this['editor']['model']['createRangeOn'](_0x3e5558),_0x605975=this['editor']['model']['createRangeOn'](_0x4d7765),_0x15b14b=new Set(),_0x4619b0=new Set();for(const _0x3f8eee of _0x2ec90e['getSuggestions']())if(('insertion'==_0x3f8eee['type']||'deletion'==_0x3f8eee['type']||'mergeTableCells'==_0x3f8eee['subType'])&&_0x3f8eee['isInContent']){for(const _0x1f127c of _0x3f8eee['getRanges']())_0x1f127c['containsRange'](_0x2546b7,!0x0)&&_0x15b14b['add'](_0x3f8eee['type']+':'+_0x3f8eee['author']['id']),_0x1f127c['containsRange'](_0x605975,!0x0)&&_0x4619b0['add'](_0x3f8eee['type']+':'+_0x3f8eee['author']['id']);}if(_0x15b14b['size']!=_0x4619b0['size'])return!0x1;for(const _0x41ab35 of _0x15b14b)if(!_0x4619b0['has'](_0x41ab35))return!0x1;return!0x0;}}class At extends _0x576da6{static get['requires'](){return[jt];}['afterInit'](){const _0x492c5f=this['editor'];if(!_0x492c5f['plugins']['has']('TableEditing'))return;const _0x61619a=_0x492c5f['locale'],_0x1258d6=_0x492c5f['plugins']['get']('TrackChangesEditing');_0x1258d6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1258d6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1258d6['registerBlockAttribute']('headingRows'),_0x1258d6['registerBlockAttribute']('headingColumns'),_0x1258d6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x61619a,'FORMAT_HEADER_ROW')),_0x1258d6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x61619a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x18c944=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58a917=this['editor']['plugins']['get']('TableUtils'),_0x50ed92=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0xc32925({showActiveMarker:_0x15cf80=!0x0,setDataAttribute:_0x108611=!0x0}={}){return(_0x273791,_0x3b1030,_0x451405)=>{const {type:_0x3171ed,id:_0x49c3f3}=_0x18c944['_splitMarkerName'](_0x3b1030['markerName']),_0x4a9323=_0x18c944['getSuggestion'](_0x49c3f3),_0xac823b=_0x4a9323['data'];if('formatBlock'!=_0x4a9323['type']||!_0xac823b||'setTableColumnHeader'!=_0xac823b['commandName'])return;if(_0x3b1030['item'])return void _0x273791['stop']();if(!_0x451405['consumable']['consume'](_0x3b1030['markerRange'],_0x273791['name']))return;const _0x5bed42=_0x3b1030['markerRange']['start']['nodeAfter'],_0x3183af=_0x3b1030['markerRange']['end']['nodeBefore'],_0x3afcf=_0x5bed42['parent']['parent'],{column:_0x5ed028}=_0x58a917['getCellLocation'](_0x5bed42),{column:_0x39ddc1}=_0x58a917['getCellLocation'](_0x3183af);for(let _0x3f232a=_0x5ed028;_0x3f232a<=_0x39ddc1;_0x3f232a++){const _0x4579ff=_0x58a917['createTableWalker'](_0x3afcf,{'column':_0x3f232a,'includeAllSlots':!0x1});for(const _0x1ca628 of _0x4579ff){const _0x1a7f69=_0x1ca628['cell'],_0x555fec=_0x451405['mapper']['toViewElement'](_0x1a7f69);_0x451405['writer']['addClass']('ck-suggestion-marker-'+_0x3171ed,_0x555fec),_0x108611&&_0x451405['writer']['setAttribute']('data-suggestion',_0x49c3f3,_0x555fec),_0x451405['mapper']['bindElementToMarker'](_0x555fec,_0x3b1030['markerName']),_0x15cf80&&(_0x18c944['activeMarkers']['includes'](_0x3b1030['markerName'])?_0x451405['writer']['addClass']('ck-suggestion-marker--active',_0x555fec):_0x451405['writer']['removeClass']('ck-suggestion-marker--active',_0x555fec));}}};}_0x18c944['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x50ed92),_0x18c944['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x50ed92),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xc32925(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c114a,_0x4ec3bf,_0x4bbb7f)=>{_0x4bbb7f['options']['showSuggestionHighlights']&&_0xc32925({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4c114a,_0x4ec3bf,_0x4bbb7f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x188e28,_0x1d0da9,_0xdd4a6d)=>{const {type:_0x3a7b0f,id:_0x194220}=_0x18c944['_splitMarkerName'](_0x1d0da9['markerName']),_0x3a9a1e=_0x18c944['getSuggestion'](_0x194220),_0x28691a=_0x3a9a1e['data'];if('formatBlock'!=_0x3a9a1e['type']||!_0x28691a||'setTableColumnHeader'!=_0x28691a['commandName'])return;const _0x139f92=_0xdd4a6d['mapper']['markerNameToElements'](_0x1d0da9['markerName']);if(_0x139f92){for(const _0x68a5ef of _0x139f92)_0xdd4a6d['writer']['removeClass']('ck-suggestion-marker-'+_0x3a7b0f,_0x68a5ef),_0xdd4a6d['writer']['removeClass']('ck-suggestion-marker--active',_0x68a5ef),_0xdd4a6d['writer']['removeAttribute']('data-suggestion',_0x68a5ef),_0xdd4a6d['mapper']['unbindElementFromMarkerName'](_0x68a5ef,_0x1d0da9['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfd2760=this['editor'],_0x3bec16=_0xfd2760['locale'];function _0x11b08c(_0x41dcbf){return{'type':'format','content':o(_0x3bec16,'*Format:*\x20%0',_0x41dcbf)};}_0xfd2760['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x370146=>{if('formatBlock'!=_0x370146['type'])return;const {data:_0x316db3}=_0x370146;if(_0x316db3){if('setTableRowHeader'==_0x316db3['commandName']){const _0x1cd09d=_0x316db3['commandParams'][0x0]['forceValue'];return _0x11b08c(o(_0x3bec16,_0x1cd09d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x316db3['commandName']){const _0x3a5c4a=_0x316db3['commandParams'][0x0]['forceValue'];return _0x11b08c(o(_0x3bec16,_0x3a5c4a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x2d381c=>[_0x2d381c,null]));class It extends _0x576da6{static get['requires'](){return[jt];}['afterInit'](){const _0x52c76b=this['editor'];if(!_0x52c76b['plugins']['has']('TableClipboard'))return;const _0x496286=_0x52c76b['plugins']['get']('TrackChangesEditing'),_0x1498dd=_0x52c76b['plugins']['get']('TableUtils'),_0x3fd680=_0x52c76b['plugins']['get'](jt),_0x34dafe=_0x52c76b['plugins']['get']('TableClipboard');_0x3fd680['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x52c76b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x52c76b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x49ef85=null;_0x52c76b['model']['on']('insertContent',(_0x3d390a,_0x568dc0)=>{const [_0x400776,_0xc874c]=_0x568dc0,_0x4efaf5=_0x568dc0[_0x568dc0['length']-0x1];_0x4efaf5&&_0x4efaf5['forceDefaultExecution']||_0x496286['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x34945f,_0x10e54a,_0x8eb975,_0x526269,_0x50db61){if(_0x10e54a&&!_0x10e54a['is']('documentSelection'))return!0x1;const _0x8b4831=_0x50db61['getTableIfOnlyTableInContent'](_0x34945f,_0x8eb975);if(!_0x8b4831||!he(_0x8b4831,void 0x0,_0x526269))return!0x1;const _0x338408=_0x526269['getSelectionAffectedTableCells'](_0x8eb975['document']['selection']);if(!_0x338408['length'])return!0x1;const _0x4f75ba=_0x338408[0x0]['findAncestor']('table'),_0x297ce9=_0x526269['getRowIndexes'](_0x338408),_0x5d17b9=_0x526269['getColumnIndexes'](_0x338408),_0x24176b={'startRow':_0x297ce9['first'],'endRow':_0x297ce9['last'],'startColumn':_0x5d17b9['first'],'endColumn':_0x5d17b9['last']};return 0x1==_0x338408['length']&&(_0x24176b['endRow']+=_0x526269['getRows'](_0x8b4831)-0x1,_0x24176b['endColumn']+=_0x526269['getColumns'](_0x8b4831)-0x1),he(_0x4f75ba,_0x24176b,_0x526269);}(_0x400776,_0xc874c,_0x52c76b['model'],_0x1498dd,_0x34dafe)&&(_0x3d390a['stop'](),_0x49ef85={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x52c76b['model']['change'](()=>{_0x52c76b['model']['insertContent'](_0x568dc0[0x0],_0x568dc0[0x1],_0x568dc0[0x2],{'forceDefaultExecution':!0x0});const _0x248f90=_0x5c5ac9(),{rowInsertionRanges:_0x4a408a,columnInsertionRanges:_0x51606f,insertionRanges:_0x52faa8,deletionRanges:_0x5767a5,cells:_0x45046c}=_0x49ef85;_0x4a408a['length']&&_0x496286['markMultiRangeInsertion'](_0x4a408a,'tablePasteRow',{'tablePasteChainId':_0x248f90}),_0x51606f['length']&&_0x496286['markMultiRangeInsertion'](_0x51606f,'tablePasteColumn',{'tablePasteChainId':_0x248f90}),_0x52faa8['length']&&(_0x496286['markMultiRangeInsertion'](_0x52faa8,'tablePaste',{'tablePasteChainId':_0x248f90,'skipNestingCheck':!0x0}),_0x52faa8['forEach'](_0x103bb2=>_0x103bb2['detach']?.())),_0x5767a5['length']&&(_0x496286['markMultiRangeDeletion'](_0x5767a5,'tablePaste',{'tablePasteChainId':_0x248f90,'skipNestingCheck':!0x0}),_0x5767a5['forEach'](_0x5bb680=>_0x5bb680['detach']?.()));const _0x4b87f7=_0x496286['markMultiRangeBlockFormat'](_0x45046c['map'](({element:_0x2640b0})=>_0x2640b0),{'formatGroupId':_0x5c5ac9()},[],'tablePasteCell',{'tablePasteChainId':_0x248f90});if(_0x4b87f7){const _0x3530eb=_0x4b87f7['getMarkers'](),_0xa4567d=[];for(const {element:_0x184ee9,attributes:_0x477854}of _0x45046c){if(!_0x477854)continue;const _0x58dd2d=_0x52c76b['model']['createRangeOn'](_0x184ee9),_0x2c39f1=_0x3530eb['find'](_0x13a2ed=>_0x13a2ed['getRange']()['isEqual'](_0x58dd2d));_0x2c39f1&&_0xa4567d['push']([_0x2c39f1['name'],_0x477854]);}_0xa4567d['length']&&_0x4b87f7['setAttribute']('markerAttributes',Object['fromEntries'](_0xa4567d));}_0x49ef85=null;}));},{'priority':_0x2d5527['high']+0xa}),_0x52c76b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x28e5a9,_0x864ec)=>{const [_0x482c02,_0x43d291,,_0xda8955]=_0x864ec;if(!_0x49ef85)return;_0x28e5a9['stop']();const _0xa53a6=_0x482c02['cell'],_0x16c346=_0x43d291,_0x4eb9e0=Pe(_0xa53a6),_0x505e39=Pe(_0x16c346);_0x28e5a9['return']=_0xa53a6;let _0x57b995=null,_0x36d8da=null;if(_0x505e39||_0x4eb9e0){if(_0x4eb9e0&&!_0x505e39){_0xda8955['remove'](_0xa53a6['getChild'](0x0));for(const _0x25d0fd of Array['from'](_0x16c346['getChildren']()))_0xda8955['insert'](_0x25d0fd,_0xa53a6,'end');const _0x126b52=_0x49ef85['rowInsertionIndexes']['includes'](_0x482c02['row']),_0x26f8d1=_0x49ef85['columnInsertionIndexes']['includes'](_0x482c02['column']);_0x126b52||_0x26f8d1||(_0x57b995=_0x264ebf['fromRange'](_0xda8955['createRangeIn'](_0xa53a6)));}else _0x505e39&&!_0x4eb9e0&&(_0x36d8da=_0xda8955['createRangeIn'](_0xa53a6));}else{const _0x5f3809=_0xda8955['createElement']('tableCellSuggestion'),_0xf6d254=_0xda8955['createElement']('tableCellSuggestion');_0xda8955['wrap'](_0xda8955['createRangeIn'](_0xa53a6),_0xf6d254),_0xda8955['insert'](_0x5f3809,_0xa53a6,0x0);for(const _0x3b09fe of Array['from'](_0x16c346['getChildren']()))_0xda8955['insert'](_0x3b09fe,_0x5f3809,'end');_0x57b995=_0x264ebf['fromRange'](_0xda8955['createRangeOn'](_0x5f3809)),_0x36d8da=_0x264ebf['fromRange'](_0xda8955['createRangeOn'](_0xf6d254));}const _0x35c37b=Array['from'](_0x16c346['getAttributes']())['filter'](([_0x57faa3])=>ge['includes'](_0x57faa3));_0x49ef85['cells']['push']({'element':_0xa53a6,'attributes':_0x35c37b['length']?Object['fromEntries'](_0x35c37b):null}),_0x57b995&&_0x49ef85['insertionRanges']['push'](_0x57b995),_0x36d8da&&_0x49ef85['deletionRanges']['push'](_0x36d8da);},{'priority':'high'}),_0x1498dd['on']('insertColumns',(_0x177d58,_0x10d02e)=>{const [_0x6834e8,_0x1a9386={}]=_0x10d02e;if(!_0x49ef85)return;const _0x240912=_0x1a9386['at']||0x0,_0x1111c7=_0x1a9386['columns']||0x1;_0x49ef85['columnInsertionIndexes']=new Array(_0x1111c7)['fill'](_0x240912)['map']((_0x24351d,_0x30d87b)=>_0x24351d+_0x30d87b);for(const {cell:_0x3ded76}of _0x1498dd['createTableWalker'](_0x6834e8,{'startColumn':_0x240912,'endColumn':_0x240912+_0x1111c7-0x1}))_0x49ef85['columnInsertionRanges']['push'](_0x52c76b['model']['createRangeOn'](_0x3ded76));},{'priority':'low'}),_0x1498dd['on']('insertRows',(_0x52f18e,_0x1ba2aa)=>{const [_0x125cf1,_0x4e6a7f={}]=_0x1ba2aa;if(!_0x49ef85)return;const _0x4f495a=_0x4e6a7f['at']||0x0,_0x1dac03=_0x4e6a7f['rows']||0x1;_0x49ef85['rowInsertionIndexes']=new Array(_0x1dac03)['fill'](_0x4f495a)['map']((_0x5c42e3,_0x5bc994)=>_0x5c42e3+_0x5bc994);for(const {cell:_0xa2f710}of _0x1498dd['createTableWalker'](_0x125cf1,{'startRow':_0x4f495a,'endRow':_0x4f495a+_0x1dac03-0x1}))_0x49ef85['rowInsertionRanges']['push'](_0x52c76b['model']['createRangeOn'](_0xa2f710));},{'priority':'low'}),_0x496286['descriptionFactory']['registerDescriptionCallback'](_0x20b399=>{if(_0x20b399['subType']&&_0x20b399['subType']['startsWith']('tablePaste'))return _0x20b399['previous']?{}:{'type':'insertion','content':o(_0x52c76b['locale'],'*Replace\x20table\x20cells*')};});const _0x35d2e9=()=>!0x1;for(const _0x41fd42 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x496286['_suggestionFactory']['registerCustomCallback']('insertion',_0x41fd42,'join',_0x35d2e9),_0x496286['_suggestionFactory']['registerCustomCallback']('deletion',_0x41fd42,'join',_0x35d2e9),_0x496286['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41fd42,'join',_0x35d2e9);_0x496286['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x35d2e9),_0x496286['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x162e09,_0x37c20f,_0x39c9d2)=>{const _0x489b9e=_0x162e09['map'](_0x35c0b8=>_0x35c0b8['getContainedElement']())['filter'](_0x43410f=>_0x43410f),_0x2903b9=new Map(_0x489b9e['map'](_0x130603=>[_0x130603,null]));if(_0x49ef85){for(const {element:_0x2408ea,attributes:_0x8c8b61}of _0x49ef85['cells'])_0x8c8b61&&_0x2903b9['set'](_0x2408ea,_0x8c8b61);}else{if(_0x39c9d2&&_0x39c9d2['markerAttributes'])for(const [_0x2ebe44,_0x5492bd]of Object['entries'](_0x39c9d2['markerAttributes'])){const _0x363135=_0x52c76b['model']['markers']['get'](_0x2ebe44),_0x5dd0ae=_0x363135?_0x363135['getRange']()['getContainedElement']():null;_0x5dd0ae&&_0x2903b9['set'](_0x5dd0ae,_0x5492bd);}}_0x52c76b['model']['change'](_0xb83b6b=>{for(const [_0xcc1de7,_0xdcf594]of _0x2903b9)_0xb83b6b['setAttributes']({...Ce,..._0xdcf594},_0xcc1de7);});});const _0x1785bb=(_0x123b87,_0x2abb8a)=>{_0x496286['_suggestionFactory']['registerCustomCallback'](_0x123b87,'tablePaste',_0x2abb8a,(_0xfd7890,_0x662a4e,_0x3b1cbe)=>{_0x52c76b['model']['change'](_0x15e250=>{const _0x4191fc=[];for(const _0x11c6d9 of _0xfd7890){const _0x270f95=_0x11c6d9['start']['nodeAfter'];_0x270f95['is']('element','tableCellSuggestion')&&_0x4191fc['push'](_0x270f95);}_0x496286['_suggestionFactory']['getSuggestionCallback'](_0x123b87,null,_0x2abb8a)(_0xfd7890,_0x662a4e,_0x3b1cbe);for(const _0x52b128 of _0x4191fc)'$graveyard'!=_0x52b128['root']['rootName']&&_0x15e250['unwrap'](_0x52b128);});});};_0x1785bb('insertion','accept'),_0x1785bb('insertion','discard'),_0x1785bb('deletion','accept'),_0x1785bb('deletion','discard'),_0x496286['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1b522b=>{const _0x2b4f93=_0x1b522b['map'](_0x41767f=>_0x41767f['getContainedElement']()),_0x1a1c5=_0x2b4f93[0x0]['findAncestor']('table'),{minRow:_0x508db8,maxRow:_0x431251}=_0x3fd680['_getCoordsForCells'](_0x2b4f93);_0x1498dd['removeRows'](_0x1a1c5,{'at':_0x508db8,'rows':_0x431251-_0x508db8+0x1});}),_0x496286['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xa430bf=>{const _0x5ca2ca=_0xa430bf['map'](_0x18494b=>_0x18494b['getContainedElement']()),_0x1916b5=_0x5ca2ca[0x0]['findAncestor']('table'),{minColumn:_0x56705e,maxColumn:_0x4f421b}=_0x3fd680['_getCoordsForCells'](_0x5ca2ca);_0x1498dd['removeColumns'](_0x1916b5,{'at':_0x56705e,'columns':_0x4f421b-_0x56705e+0x1});});const _0x22761e=(_0x16e6a7,_0x4f807a)=>{if(!_0x4f807a['subType']||!_0x4f807a['subType']['startsWith']('tablePaste'))return;const _0x1695b8=_0x4f807a['attributes']['tablePasteChainId'],_0x2af9ea=_0x496286['getSuggestions']()['filter'](_0xdd9f95=>_0xdd9f95['isInContent']&&_0xdd9f95['attributes']&&_0xdd9f95['attributes']['tablePasteChainId']==_0x1695b8);_0x2af9ea['length']&&_0x4f807a['getAllAdjacentSuggestions']()['length']!=_0x2af9ea['length']&&_0x2af9ea['reduce']((_0x24894c,_0xbe64f1)=>(_0x24894c['next']=_0xbe64f1,_0xbe64f1['previous']=_0x24894c,_0xbe64f1));};function _0x27ba49(_0x142d64,_0x4d9512=!0x0){const {id:_0x173909}=_0x496286['_splitMarkerName'](_0x142d64['markerName']),_0x12c928=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5af4e7=_0x496286['activeMarkers']['includes'](_0x142d64['markerName']);return _0x5af4e7&&_0x12c928['push']('ck-suggestion-marker--active'),{'classes':_0x12c928,'attributes':{'data-suggestion':_0x173909},'priority':_0x5af4e7&&_0x4d9512?0xbc2:0xbb8};}_0x496286['on']('suggestionLoaded',_0x22761e,{'priority':'high'}),_0x496286['on']('suggestionUnloaded',_0x22761e,{'priority':'high'}),_0x52c76b['model']['document']['registerPostFixer'](()=>{let _0x5229f0=!0x1;const _0x2a30bc=Array['from'](_0x52c76b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20aa44,data:_0x108210}of _0x2a30bc){const {group:_0x43b2d7,type:_0x2667dd,id:_0x2596f4}=_0x496286['_splitMarkerName'](_0x20aa44);if('suggestion'!=_0x43b2d7||'deletion'!=_0x2667dd||_0x108210['oldRange'])continue;if(!_0x496286['hasSuggestion'](_0x2596f4))continue;const _0x42798d=_0x496286['getSuggestion'](_0x2596f4)['getRanges'](),_0x3e2576=_0x52c76b['plugins']['get']('Users')['me'];for(const _0x4b7449 of _0x496286['getSuggestions']()){if(!_0x4b7449['isInContent']||_0x4b7449['author']!=_0x3e2576)continue;if('formatBlock'!=_0x4b7449['type']||'tablePasteCell'!=_0x4b7449['subType'])continue;if(_0x4b7449['getRanges']()['every'](_0x1c4ad0=>_0x42798d['some'](_0x5641ef=>_0x5641ef['containsRange'](_0x1c4ad0,!0x0)))){for(const _0xc58cf4 of _0x4b7449['getAllAdjacentSuggestions']())_0xc58cf4['isInContent']&&(_0xc58cf4['discard'](),_0x5229f0=!0x0);}}}return _0x5229f0;}),_0x52c76b['model']['document']['registerPostFixer'](_0x551b08=>{const _0x20759b=_0x52c76b['commands']['get']('redo');if(!_0x20759b||!_0x20759b['_createdBatches']['has'](_0x551b08['batch']))return!0x1;let _0x86493a=!0x1;const _0x267f9f=_0x52c76b['plugins']['get']('Users')['me'],_0x523dc6=_0x52c76b['model']['document']['differ']['getChanges'](),_0x13bce7=Array['from'](_0x52c76b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x462c15,data:_0x51de79})=>{const {group:_0x3deeb7,subType:_0x22a759,authorId:_0x50a3cd}=_0x496286['_splitMarkerName'](_0x462c15);return'suggestion'==_0x3deeb7&&'tablePaste'==_0x22a759&&_0x50a3cd==_0x267f9f['id']&&!_0x51de79['oldRange'];});for(const _0x30b77c of _0x523dc6){if('insert'!=_0x30b77c['type']||'tableCellSuggestion'!=_0x30b77c['name']||0x1!=_0x30b77c['length'])continue;const _0x17843c=_0x551b08['createRange'](_0x30b77c['position'],_0x30b77c['position']['getShiftedBy'](0x1));if(!_0x13bce7['find'](({data:_0x24e527})=>_0x24e527['newRange']['isEqual'](_0x17843c))){for(const {name:_0x6c8204,data:_0x177c4d}of _0x13bce7)if(_0x17843c['containsRange'](_0x177c4d['newRange'])){_0x551b08['updateMarker'](_0x6c8204,{'range':_0x17843c}),_0x86493a=!0x0;break;}}}return _0x86493a;}),_0x52c76b['model']['document']['registerPostFixer'](_0x6f83bb=>{let _0x3ba37b=!0x1;const _0x4f4202=_0x52c76b['plugins']['get']('Users')['me'],_0x354ab6=_0x496286['getSuggestions']()['filter'](_0x3afa2b=>_0x3afa2b['isInContent']&&_0x3afa2b['author']==_0x4f4202),_0xf0e992=new Set(),_0x5d2d56=new Set();for(const _0x108450 of _0x354ab6)if('tablePaste'==_0x108450['subType'])for(const _0x4da58d of _0x108450['getMarkers']()){const _0x17206c=_0x4da58d['getRange']()['getContainedElement']();if(_0x17206c){if(_0x17206c['is']('element','tableCellSuggestion')&&Pe(_0x17206c)){_0x108450['removeMarker'](_0x4da58d['name']),_0xf0e992['add'](_0x17206c),_0x3ba37b=!0x0;const _0x388cb4=_0x17206c['nextSibling'],_0x5249d1=_0x17206c['previousSibling'],_0x40d4a4=_0x388cb4&&_0x388cb4['is']('element','tableCellSuggestion'),_0x148d4f=_0x5249d1&&_0x5249d1['is']('element','tableCellSuggestion');_0x40d4a4&&!_0xf0e992['has'](_0x388cb4)&&_0x5d2d56['add'](_0x388cb4),_0x148d4f&&!_0xf0e992['has'](_0x5249d1)&&_0x5d2d56['add'](_0x5249d1);}else _0x17206c['is']('element','paragraph')&&_0x17206c['isEmpty']&&(_0x108450['removeMarker'](_0x4da58d['name']),_0x3ba37b=!0x0);}}else{if('tablePasteCell'==_0x108450['subType']){if(!_0x108450['attributes']||!_0x108450['attributes']['tablePasteChainId'])continue;const _0x2d8c79=_0x108450['attributes']['markerAttributes'];if(_0x2d8c79&&Object['keys'](_0x2d8c79)['length'])continue;const _0x283fc9=_0x108450['attributes']['tablePasteChainId'];let _0x96a9a8=!0x0,_0x2387ad=!0x0;for(const _0x5705bd of _0x354ab6)if(_0x5705bd['subType']&&_0x5705bd['subType']['startsWith']('tablePaste')){if(!_0x5705bd['attributes']['tablePasteChainId']){_0x2387ad=!0x1;break;}if(_0x5705bd['id']!=_0x108450['id']&&_0x5705bd['attributes']['tablePasteChainId']==_0x283fc9){_0x96a9a8=!0x1;break;}}_0x2387ad&&_0x96a9a8&&(_0x108450['removeMarkers'](),_0x3ba37b=!0x0);}}for(const _0xfd1b53 of _0xf0e992)_0x6f83bb['remove'](_0xfd1b53);for(const _0x114014 of _0x5d2d56)_0x6f83bb['unwrap'](_0x114014);return _0x3ba37b;}),_0x52c76b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x262e28,_0xd2a43d)=>_0x27ba49(_0x262e28),'converterPriority':'high'}),_0x52c76b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1272d5,_0x43456d)=>_0x43456d['options']['showSuggestionHighlights']?_0x27ba49(_0x1272d5,!0x1):null,'converterPriority':'high'});const _0x5189f3=_0x52c76b['editing']['view'];this['listenTo'](_0x5189f3['document'],'clipboardOutput',(_0x3326c4,_0x164f61)=>{const _0xf395db=[];for(const _0x2c6dca of _0x5189f3['createRangeIn'](_0x164f61['content'])['getItems']())_0x2c6dca['is']('element','suggestion-td')&&_0xf395db['push'](_0x2c6dca);_0x5189f3['change'](_0x1cf481=>{for(const _0x54daeb of _0xf395db)_0x1cf481['move'](_0x1cf481['createRangeIn'](_0x54daeb),_0x1cf481['createPositionBefore'](_0x54daeb)),_0x1cf481['remove'](_0x54daeb);});});}}function Pe(_0x20328a){if(_0x20328a['isEmpty'])return!0x0;const _0x577284=_0x20328a['getChild'](0x0);return _0x577284['is']('element','paragraph')&&_0x577284['isEmpty'];}function he(_0x3ac358,_0x38a179={},_0x35684b){for(const {isAnchor:_0x617d0b,cellHeight:_0x217f2d,cellWidth:_0xb5c70f}of _0x35684b['createTableWalker'](_0x3ac358,{'includeAllSlots':!0x0,..._0x38a179}))if(!_0x617d0b||0x1!=_0x217f2d||0x1!=_0xb5c70f)return!0x1;return!0x0;}class vt extends _0x576da6{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5a1038=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a1038['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5a1038['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5a1038['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5a1038['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5a1038['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5a1038['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xea545f,_0x31d1b7){const _0x379ec6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48ff5b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x474500=_0x31d1b7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x155d86=_0x48ff5b['getColumnGroupElement'](_0x474500);let _0x31ceba=_0x155d86?_0x48ff5b['getTableColumnsWidths'](_0x155d86):null,_0x51eef6=_0x474500['getAttribute']('tableWidth')||null;const _0x236e84=_0x31d1b7['tableWidth']||_0x51eef6,_0x1a4a20=_0x31d1b7['columnWidths']||_0x31ceba,_0x4b09a1=this['editor']['plugins']['get']('Users')['me'];for(const _0x59bdf8 of _0x379ec6['getSuggestions']()){const _0x3aec8e=_0x59bdf8['getContainedElement']();if('resizeTable'===_0x59bdf8['subType']&&_0x3aec8e===_0x474500){_0x59bdf8['author']!==_0x4b09a1&&_0x59bdf8['discard']();const _0x3bd1e1=_0x59bdf8['data']['commandParams'];_0x51eef6=_0x3bd1e1[0x0]['tableWidth'],_0x31ceba=_0x3bd1e1[0x0]['columnWidths'];break;}}_0xea545f({'table':_0x474500,'tableWidth':_0x236e84,'columnWidths':_0x1a4a20}),_0x379ec6['markBlockFormat'](_0x474500,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x51eef6,'columnWidths':_0x31ceba}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x42be30){if('formatBlock'!=_0x42be30['type']&&'formatInline'!=_0x42be30['type'])return;const {data:_0xfcb3d4}=_0x42be30;if(_0xfcb3d4&&'resizeTable'===_0xfcb3d4['formatGroupId']){const _0x33c422='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x33c422)};}}}class _t extends _0x576da6{['afterInit'](){const _0xa3108e=this['editor'];_0xa3108e['plugins']['has']('Template')&&_0xa3108e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x576da6{['afterInit'](){const _0x2719cd=this['editor'];if(!_0x2719cd['commands']['get']('insertTableOfContents'))return;_0x2719cd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2226b1=_0x2719cd['plugins']['get']('TrackChangesEditing'),_0x20be20=_0x2719cd['locale'];_0x2226b1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x142511=>o(_0x20be20,'ELEMENT_TABLE_OF_CONTENTS',_0x142511));}}class Dt extends _0x576da6{['afterInit'](){const _0x403612=this['editor'];if(!_0x403612['plugins']['has']('Title'))return;const _0x10a25b=_0x403612['plugins']['get']('TrackChangesEditing');_0x10a25b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x403612['locale'],'ELEMENT_TITLE')),_0x403612['model']['document']['registerPostFixer'](_0x139ed0=>{let _0x307272=!0x1;const _0x543504=Array['from'](_0x403612['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1dd756,data:_0x1f8bf5}of _0x543504){const {group:_0x4bb9eb}=_0x10a25b['_splitMarkerName'](_0x1dd756);if('suggestion'!==_0x4bb9eb||!_0x1f8bf5['newRange'])continue;const _0x575383=_0x1f8bf5['newRange'],_0x70378e=_0x575383['end']['nodeBefore'];if(!_0x70378e||!_0x70378e['is']('element','title-content'))continue;if(!_0x575383['start']['isTouching'](_0x575383['end']))continue;const _0x5aeaa1=_0x403612['model']['schema']['getNearestSelectionRange'](_0x575383['end'],'forward');if(_0x5aeaa1&&_0x5aeaa1['isCollapsed']){const _0x1f99f6=_0x139ed0['createRange'](_0x575383['start'],_0x5aeaa1['start']);_0x1f99f6['isEqual'](_0x575383)||(_0x139ed0['updateMarker'](_0x1dd756,{'range':_0x1f99f6}),_0x307272=!0x0);}_0x307272||(_0x139ed0['removeMarker'](_0x1dd756),_0x307272=!0x0);}return _0x307272;});}}class Nt extends _0x576da6{['afterInit'](){const _0x40cad0=this['editor'],_0x4ddd85=_0x40cad0['plugins']['get']('TrackChangesEditing');_0x40cad0['plugins']['has']('UndoEditing')&&(_0x4ddd85['enableCommand']('undo'),_0x4ddd85['enableCommand']('redo'));}}class Mt extends _0x576da6{static get['requires'](){return[jt];}['afterInit'](){const _0x45f407=this['editor'];if(!_0x45f407['plugins']['has']('TableCaptionEditing'))return;_0x45f407['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x576da6{['tableProperties'];['tableCellProperties'];constructor(_0x52a0dc){super(_0x52a0dc),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 _0x1c25ec=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4a574c of this['tableProperties'])_0x1c25ec['enableCommand'](_0x4a574c,(_0x4d9cc0,_0x15f570)=>{const _0x1fe519=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4a574c,[_0x1fe519],this['tableProperties'],'tableProperties',_0x4d9cc0,_0x15f570);});_0x1c25ec['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1c25ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c25ec['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3f9361,_0x21692c)=>this['handleDiscardAction'](this['tableProperties'],_0x3f9361,_0x21692c)),_0x1c25ec['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5dcf6a of this['tableCellProperties'])_0x1c25ec['enableCommand'](_0x5dcf6a,(_0x4f79fa,_0x289bc0)=>{const _0x24cc41=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5dcf6a,_0x24cc41,this['tableCellProperties'],'tableCellProperties',_0x4f79fa,_0x289bc0);});_0x1c25ec['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1c25ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c25ec['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x241836,_0x544667)=>this['handleDiscardAction'](this['tableCellProperties'],_0x241836,_0x544667)),_0x1c25ec['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1c25ec['descriptionFactory']['registerDescriptionCallback'](_0x3378fc=>this['handleSuggestionDescription'](_0x3378fc));}['_handlePropertyChange'](_0x4b6e7b,_0x5f2c0b,_0x12ca02,_0x30449f,_0x37916b,_0x40b9db){const _0x30aec5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x40b9db['batch'],()=>{for(const _0x592e64 of _0x5f2c0b){if(this['_getSuggestion'](_0x592e64,_0x30449f))_0x37916b(_0x40b9db);else{const _0x1f63f7={};for(const _0x23cdbb of _0x12ca02){const _0x10f81a=_0x592e64['getAttribute'](_0x23cdbb);void 0x0!==_0x10f81a&&(_0x1f63f7[_0x23cdbb]=_0x10f81a);}_0x37916b(_0x40b9db),_0x30aec5['markBlockFormat'](_0x592e64,{'commandParams':[_0x1f63f7]},[],_0x30449f);}}});}['handleDiscardAction'](_0x54c281,_0x6e6c5b,_0x3a8712){const _0x2706a2=_0x6e6c5b[0x0]['start']['nodeAfter'],_0x3ac34c=_0x3a8712['commandParams'][0x0];this['editor']['model']['change'](_0x55f856=>{for(const _0x3a7d83 of _0x54c281)void 0x0!==_0x3ac34c[_0x3a7d83]?_0x55f856['setAttribute'](_0x3a7d83,_0x3ac34c[_0x3a7d83],_0x2706a2):_0x55f856['removeAttribute'](_0x3a7d83,_0x2706a2);});}['handleSuggestionDescription'](_0x28677c){if(_0x28677c['data'])switch(_0x28677c['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'](_0x34bd14,_0xa157c9){const _0x157236=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x549cab of _0x157236['getSuggestions']({'skipNotAttached':!0x0})){const _0x1ab9fe=_0x549cab['getContainedElement']();if(_0x549cab['subType']===_0xa157c9&&_0x1ab9fe===_0x34bd14)return _0x549cab;}return null;}}const m='$elementName';class p extends _0x576da6{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4e52c7,_0x12cc2c,E,V,U,O,G,F,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,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}constructor(_0x368daa){function _0x2dd2eb(_0x3102fd){return _0x3102fd['map'](_0x5d7faa=>String['fromCharCode'](_0x5d7faa))['join']('');}super(_0x368daa),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x17461d,_0x26779b,_0x543aa7,_0x5e5ef6)=>{this['_model']['change'](()=>{for(const _0x18b731 of[..._0x5e5ef6,..._0x543aa7])this['_model']['markers']['has'](_0x18b731)&&_0x368daa['editing']['reconvertMarker'](_0x18b731);});}),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']=_0x368daa['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(),_0x368daa['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x368daa['config']['get']('trackChanges.trackFormatChanges'),_0x368daa['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x368daa['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x368daa,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2dd2eb([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2dd2eb([0x34,0x30,0x34,0x38,0x31,0x30,0x35,0x34]);}['init'](){const _0x5096d=this['editor'],_0x2e12cd=(_0x7013b6,_0x1b590c)=>{if('attribute'!=_0x7013b6)return'ck-suggestion-marker-'+_0x7013b6;const _0x27ccf6=_0x1b590c['split']('|')[0x0];return this['_isBlockAttribute'](_0x27ccf6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5096d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1e0ce6=>{const {id:_0x134832,type:_0x16ca42,subType:_0x2a9165}=this['_splitMarkerName'](_0x1e0ce6['markerName']),_0x39922b=['ck-suggestion-marker',_0x2e12cd(_0x16ca42,_0x2a9165)];let _0x17e0cd=0xbb8;return this['activeMarkers']['includes'](_0x1e0ce6['markerName'])&&(_0x39922b['push']('ck-suggestion-marker--active'),_0x17e0cd=0xbc2),'deletion'==_0x16ca42&&(_0x17e0cd+=0x5),{'classes':_0x39922b,'attributes':{'data-suggestion':_0x134832},'priority':_0x17e0cd};}}),_0x5096d['conversion']['for']('dataDowncast')['add'](_0x2a3d40=>{_0x2a3d40['on']('addMarker:suggestion',(_0x337751,_0xb4ff2a,_0x35252b)=>{if(!_0x35252b['options']['showSuggestionHighlights'])return;const _0x4c51b4=_0xb4ff2a['item'];if(!_0x4c51b4)return;const _0x2ec8e1=_0x35252b['mapper']['toViewElement'](_0x4c51b4);_0x5096d['model']['schema']['isObject'](_0x4c51b4)&&_0x2ec8e1&&!_0x2ec8e1['getCustomProperty']('widget')&&_0x2ec8e1['is']('containerElement')&&_0x4092b9(_0x2ec8e1,_0x35252b['writer']);},{'priority':'high'});}),_0x5096d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1f124c,_0x28b351)=>{if(!_0x28b351['options']['showSuggestionHighlights'])return null;const {type:_0x560d53,subType:_0x2d08db}=this['_splitMarkerName'](_0x1f124c['markerName']);return{'classes':['ck-suggestion-marker',_0x2e12cd(_0x560d53,_0x2d08db)],'priority':0xbb8};}});const _0xe71f18=({showActiveMarkers:_0x197554=!0x0,isAttributeSuggestion:_0x20a8a6=!0x1}={})=>(_0x22e039,_0x39d944,_0x22816b)=>{if(!_0x39d944['item'])return;const {id:_0x52150}=this['_splitMarkerName'](_0x39d944['markerName']);if(_0x20a8a6){const _0x13032d=this['_suggestions']['get'](_0x52150),_0x355ca5=this['_getAttributeKey'](_0x13032d);if(!this['_isBlockAttribute'](_0x355ca5))return;}if(_0x39d944['item']['is']('selection'))return void _0x22816b['consumable']['consume'](_0x39d944['item'],_0x22e039['name']);const _0x1379f4=_0x22816b['mapper']['toViewElement'](_0x39d944['item']);if(_0x39d944['item']['is']('element')&&_0x5096d['model']['schema']['isBlock'](_0x39d944['item'])&&!_0x1379f4['getCustomProperty']('addHighlight')){_0x22816b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1379f4),_0x22816b['writer']['setAttribute']('data-suggestion',_0x52150,_0x1379f4),_0x22816b['mapper']['bindElementToMarker'](_0x1379f4,_0x39d944['markerName']),_0x197554&&(this['activeMarkers']['includes'](_0x39d944['markerName'])?_0x22816b['writer']['addClass']('ck-suggestion-marker--active',_0x1379f4):_0x22816b['writer']['removeClass']('ck-suggestion-marker--active',_0x1379f4));for(const _0x2579f9 of _0x5096d['model']['createRangeIn'](_0x39d944['item'])['getItems']())_0x22816b['consumable']['consume'](_0x2579f9,_0x22e039['name']);_0x22816b['consumable']['consume'](_0x39d944['item'],_0x22e039['name']);}};_0x5096d['conversion']['for']('dataDowncast')['add'](_0x2a5394=>{_0x2a5394['on']('addMarker:suggestion:formatBlock',(_0x510c86,_0x548888,_0x55a844)=>{_0x55a844['options']['showSuggestionHighlights']&&_0xe71f18({'showActiveMarkers':!0x1})(_0x510c86,_0x548888,_0x55a844);},{'priority':'highest'});}),_0x5096d['conversion']['for']('dataDowncast')['add'](_0x286b1f=>{_0x286b1f['on']('addMarker:suggestion:attribute',(_0x2d0b1c,_0x2e4952,_0x17b1dc)=>{_0x17b1dc['options']['showSuggestionHighlights']&&_0xe71f18({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2d0b1c,_0x2e4952,_0x17b1dc);},{'priority':'highest'});}),_0x5096d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x57c2b5,_0x2ab03a)=>_0x2ab03a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x57c2b5['substr'](0xb)}}),_0x5096d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xac53c4,{writer:_0x46ab68})=>{let _0x47b591='suggestion:'+_0xac53c4['getAttribute']('suggestion-type')+':'+_0xac53c4['getAttribute']('id');return _0xac53c4['getAttribute']('marker-count')&&(_0x47b591+=':'+_0xac53c4['getAttribute']('marker-count')),_0x46ab68['createElement']('$marker',{'data-name':_0x47b591});}}),_0x5096d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5096d['conversion']['for']('editingDowncast')['add'](_0x28b424=>{_0x28b424['on']('addMarker:suggestion:formatBlock',_0xe71f18(),{'priority':'high'});}),_0x5096d['conversion']['for']('editingDowncast')['add'](_0x130596=>{_0x130596['on']('addMarker:suggestion:attribute',_0xe71f18({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5096d['conversion']['for']('editingDowncast')['add'](_0xc4ac2b=>{_0xc4ac2b['on']('removeMarker:suggestion:formatBlock',(_0x26f798,_0x15da92,_0x2ad08a)=>{const _0x45a13f=_0x2ad08a['mapper']['markerNameToElements'](_0x15da92['markerName']);if(_0x45a13f){for(const _0x5e8149 of _0x45a13f)_0x5e8149['getCustomProperty']('addHighlight')||(_0x2ad08a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5e8149),_0x2ad08a['writer']['removeAttribute']('data-suggestion',_0x5e8149),_0x2ad08a['mapper']['unbindElementFromMarkerName'](_0x5e8149,_0x15da92['markerName']));}},{'priority':'high'});}),_0x5096d['conversion']['for']('editingDowncast')['add'](_0x814981=>{_0x814981['on']('removeMarker:suggestion:attribute',(_0x1057b7,_0xffd44,_0x568fbb)=>{const _0x2c09fc=_0x568fbb['mapper']['markerNameToElements'](_0xffd44['markerName']);if(!_0x2c09fc)return;const {id:_0x2f731c}=this['_splitMarkerName'](_0xffd44['markerName']),_0x4d33e3=this['_suggestions']['get'](_0x2f731c),_0x49da6f=this['_getAttributeKey'](_0x4d33e3);if(this['_isBlockAttribute'](_0x49da6f)){for(const _0x57955e of _0x2c09fc)_0x57955e['getCustomProperty']('addHighlight')||(_0x568fbb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x57955e),_0x568fbb['writer']['removeAttribute']('data-suggestion',_0x57955e),_0x568fbb['mapper']['unbindElementFromMarkerName'](_0x57955e,_0xffd44['markerName']));}},{'priority':'high'});}),_0x5096d['model']['document']['registerPostFixer'](_0x4bfb98=>{let _0x4e8544=!0x1;const _0x3eca3b=Array['from'](_0x5096d['model']['document']['differ']['getChangedMarkers']()),_0x32e705=new Set();for(const {name:_0x243b48,data:_0x15fbb0}of _0x3eca3b){const {group:_0x54a8bb,type:_0x3cb28e,subType:_0x177a95,id:_0x2948ff}=this['_splitMarkerName'](_0x243b48);if('suggestion'!==_0x54a8bb)continue;const _0x271285=this['_suggestions']['get'](_0x2948ff);if(null!=_0x15fbb0['newRange']){'formatInline'==_0x3cb28e&&(_0x4e8544=_0x4e8544||Et(_0x15fbb0['newRange'],_0x243b48,_0x4bfb98,_0x5096d['model']['schema']));const _0x503706='attribute'==_0x3cb28e&&this['_isBlockAttribute'](_0x177a95['split']('|')[0x0]);if(_0x15fbb0['newRange']['isCollapsed']||'$graveyard'==_0x15fbb0['newRange']['root']['rootName']||'formatBlock'==_0x3cb28e&&!Ut(_0x15fbb0['newRange'])||_0x503706&&!Ut(_0x15fbb0['newRange'])||'deletion'==_0x3cb28e&&!(!Tt(_0x51410f=_0x15fbb0['newRange'])&&!function(_0x319ab6){return _0x319ab6['start']['parent']==_0x319ab6['end']['nodeBefore']&&_0x319ab6['start']['isAtEnd'];}(_0x51410f)))_0x4bfb98['removeMarker'](_0x243b48),_0x4e8544=!0x0;else{if(!_0x271285||!_0x271285['isInContent'])continue;_0x32e705['add'](_0x271285);}}}var _0x51410f;return _0x32e705['size']>0x0&&(_0x4e8544=!!this['_joinWithAdjacentSuggestions'](_0x32e705)||_0x4e8544),_0x4e8544;}),_0x5096d['model']['document']['registerPostFixer'](_0xf007d5=>{let _0x368b6b=!0x1;for(const _0x1c2067 of _0x5096d['model']['document']['differ']['getChanges']())if('insert'==_0x1c2067['type'])for(const _0x134ee8 of this['_suggestions']['values']()){if(_0x134ee8['isMultiRange']||!_0x134ee8['isInContent'])continue;const _0x50823f='formatBlock'==_0x134ee8['type'],_0x2b67e3=this['_getAttributeKey'](_0x134ee8),_0x570af2=_0x2b67e3&&this['_isBlockAttribute'](_0x2b67e3);if(!_0x50823f&&!_0x570af2)continue;const _0xe7ae8b=_0x134ee8['getFirstRange']();if(_0xe7ae8b['start']['parent']!=_0xe7ae8b['end']['parent']&&!_0xe7ae8b['end']['isAtEnd']){const _0x5448c2=_0x5096d['model']['createPositionAt'](_0xe7ae8b['start']['nodeAfter'],'end'),_0x2e9a7e=_0x5096d['model']['createRange'](_0xe7ae8b['start'],_0x5448c2);_0xf007d5['updateMarker'](_0x134ee8['getFirstMarker'](),{'range':_0x2e9a7e}),_0x368b6b=!0x0;}}return _0x368b6b;}),_0x5096d['model']['document']['registerPostFixer'](_0x2435ba=>this['_processAttributeChanges'](_0x2435ba)),_0x5096d['model']['document']['registerPostFixer'](_0x22beea=>!_0x22beea['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x22beea)),_0x5096d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5096d['model']['document']['on']('change:data',(_0x377597,_0x341c0d)=>{if(!_0x341c0d['isLocal']||_0x341c0d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1065be=_0x5096d['model']['document']['differ']['getChanges']();if(0x0==_0x1065be['length'])return;const _0x1e9b96=[],_0x101257=_0x1065be['filter'](_0x348790=>'attribute'==_0x348790['type']),_0x29fbe1=_0x1065be['filter'](_0xad13b2=>'insert'==_0xad13b2['type']&&'$text'!=_0xad13b2['name']),_0x4607d4=_0x1065be['filter'](_0x2aced7=>'remove'==_0x2aced7['type']&&'$text'!=_0x2aced7['name']);for(const _0xd3957d of _0x101257)this['_isRegisteredAttribute'](_0xd3957d['attributeKey'])&&_0x1e9b96['push']({'key':_0xd3957d['attributeKey'],'newValue':_0xd3957d['attributeNewValue'],'oldValue':_0xd3957d['attributeOldValue'],'range':Ot(_0xd3957d['range'],_0x5096d['model'])});for(const _0x32a8de of _0x29fbe1){const _0x47ed03=_0x4607d4['find'](_0x9bedb7=>_0x9bedb7['_element']===_0x32a8de['_element']);if(_0x47ed03){const _0x342d4e=Ft(_0x32a8de['position']['nodeAfter'],_0x5096d['model']);_0x47ed03['name']!==_0x32a8de['name']&&_0x1e9b96['push']({'key':m,'newValue':_0x32a8de['name'],'oldValue':_0x47ed03['name'],'range':_0x342d4e});for(const [_0x3b65bf,_0x5a0edb]of _0x47ed03['attributes']){if(!this['_isRegisteredAttribute'](_0x3b65bf))continue;const _0x115af0=_0x32a8de['attributes']['get'](_0x3b65bf);_0x5a0edb!==_0x115af0&&_0x1e9b96['push']({'key':_0x3b65bf,'newValue':_0x115af0,'oldValue':_0x5a0edb,'range':_0x342d4e});}for(const [_0x283311,_0x5a07e8]of _0x32a8de['attributes'])this['_isRegisteredAttribute'](_0x283311)&&(_0x47ed03['attributes']['has'](_0x283311)||_0x1e9b96['push']({'key':_0x283311,'newValue':_0x5a07e8,'oldValue':null,'range':_0x342d4e}));}}0x0!=_0x1e9b96['length']&&_0x5096d['model']['enqueueChange'](_0x341c0d,_0x81d21=>{const _0x25d693=_0x5c5ac9();for(const {range:_0x36ac15,key:_0x260b3c,oldValue:_0x50856b,newValue:_0x2ee4d9}of _0x1e9b96)this['markAttributeChange'](_0x36ac15,_0x260b3c,_0x50856b,_0x2ee4d9,{'groupId':_0x25d693});this['_reduceExistingSuggestions'](_0x81d21,_0x1e9b96);});},{'priority':'lowest'}),_0x5096d['model']['markers']['on']('update:suggestion',(_0x286edf,_0x26bc50,_0x5d9ddb)=>{if(null==_0x5d9ddb){const {id:_0x185ce3}=this['_splitMarkerName'](_0x26bc50['name']),_0x396c86=this['_suggestions']['get'](_0x185ce3);_0x396c86&&_0x396c86['addMarkerName'](_0x26bc50['name']);}}),_0x5096d['model']['document']['on']('change:data',()=>{const _0x164da4=Array['from'](_0x5096d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2adac1=>'suggestion'===this['_splitMarkerName'](_0x2adac1['name'])['group']);if(0x0===_0x164da4['length'])return;_0x164da4['sort']((_0x21c410,_0x3919fa)=>{const _0x33a0c4=_0x21c410['data']['oldRange'],_0x51a885=_0x3919fa['data']['oldRange'];return null===_0x33a0c4&&null===_0x51a885?0x0:null===_0x33a0c4&&null!==_0x51a885?-0x1:null!==_0x33a0c4&&null===_0x51a885?0x1:_0x33a0c4['start']['isBefore'](_0x51a885['start'])?-0x1:0x1;});const _0x1d7edb=new Set(),_0xcbbd4c=new Set();for(const {name:_0x4a50fa,data:_0x5ed5d1}of _0x164da4){const {id:_0xe58881}=this['_splitMarkerName'](_0x4a50fa);if(null===_0x5ed5d1['oldRange']){const _0x4b061e=this['_handleNewSuggestionMarker'](_0x4a50fa);_0xcbbd4c['add'](_0x4b061e);}else{const _0x1d1bc2=this['_suggestions']['get'](_0xe58881);null!==_0x5ed5d1['newRange']||_0x1d1bc2['isInContent']?(_0x1d7edb['add'](_0x1d1bc2['head']),_0xcbbd4c['add'](_0x1d1bc2)):this['_removeSuggestion'](_0x1d1bc2);}}_0xcbbd4c['size']>0x0&&this['_refreshSuggestionsChain'](_0xcbbd4c);for(const _0xec841a of _0x1d7edb)this['fire']('suggestionChanged',_0xec841a);}),_0x5096d['model']['on']('applyOperation',(_0x5a87c3,_0x2e7a6a)=>{const _0x3479f1=_0x2e7a6a[0x0];if(!this['_suggestions']['size'])return;if(!_0x3479f1['isDocumentOperation'])return;if(_0x3479f1['batch']['isUndo']||!_0x3479f1['batch']['isLocal'])return;let _0x2f8d09,_0x5c8741;switch(_0x3479f1['type']){case'insert':_0x2f8d09=_0x5096d['model']['createPositionAt'](_0x3479f1['position']),_0x5c8741=_0x2f8d09['getShiftedBy'](_0x3479f1['howMany']);break;case'split':_0x2f8d09=_0x5096d['model']['createPositionAt'](_0x3479f1['splitPosition']),_0x5c8741=_0x5096d['model']['createPositionAt'](_0x3479f1['moveTargetPosition']);break;case'move':_0x2f8d09=_0x5096d['model']['createPositionAt'](_0x3479f1['targetPosition']),_0x5c8741=_0x2f8d09['getShiftedBy'](_0x3479f1['howMany']);break;default:return;}const _0x2de9e7=_0x5096d['model']['createRange'](_0x2f8d09,_0x5c8741);_0x5096d['model']['change'](()=>{for(const {suggestion:_0x158212,meta:_0x1039dd}of this['_findSuggestions'](_0x2de9e7)){if(_0x158212['isMultiRange'])continue;if('formatInline'==_0x158212['type'])continue;const _0x2b448a=this['_getAttributeKey'](_0x158212);if(_0x2b448a&&this['_isBlockAttribute'](_0x2b448a)&&'split'!=_0x3479f1['type'])continue;const _0x36758f=_0x158212['data']&&_0x158212['data']['multipleBlocks'];('formatBlock'!=_0x158212['type']||'split'==_0x3479f1['type']&&!_0x36758f)&&(_0x1039dd['containsRangeInObject']||'insertion'==_0x158212['type']&&_0x1039dd['isOwn']||_0x158212['getFirstRange']()['containsRange'](_0x2de9e7)&&this['_breakSuggestionMarker'](_0x158212,_0x2f8d09,_0x5c8741));}});},{'priority':'lowest'}),_0x5096d['model']['on']('deleteContent',(_0x1a8117,_0x2ae4d7)=>{const _0x37c5e2=_0x2ae4d7[0x0],_0x5f3177=_0x2ae4d7[0x1];if(_0x5f3177&&_0x5f3177['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x37c5e2['isCollapsed'])return;const _0x5221aa=_0x5096d['model']['schema'],{start:_0x24794d,end:_0x10168b}=_0x37c5e2['getFirstRange'](),_0x2da68d=_0x24794d['nodeAfter']&&_0x5221aa['isLimit'](_0x24794d['nodeAfter'])?null:_0x5221aa['getNearestSelectionRange'](_0x24794d,'forward'),_0x41f328=_0x10168b['nodeBefore']&&_0x5221aa['isLimit'](_0x10168b['nodeBefore'])?null:_0x5221aa['getNearestSelectionRange'](_0x10168b,'backward'),_0x20f3a3=_0x5096d['model']['createRange'](_0x2da68d?_0x2da68d['start']:_0x24794d,_0x41f328?_0x41f328['end']:_0x10168b);_0x5096d['model']['change'](_0x3124ff=>{this['markDeletion'](_0x20f3a3);const _0x2614c2=_0x5096d['model']['schema']['getNearestSelectionRange'](_0x20f3a3['start']);_0x37c5e2['is']('documentSelection')?_0x3124ff['setSelection'](_0x2614c2):_0x37c5e2['setTo'](_0x2614c2);}),_0x1a8117['stop']();},{'priority':_0x2d5527['normal']+0xa}),_0x5096d['model']['on']('insertContent',(_0x282603,_0x195252)=>{const _0x13efd0=_0x195252[_0x195252['length']-0x1];_0x13efd0&&_0x13efd0['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5096d['model']['change'](()=>{let _0x84f306=_0x5096d['model']['insertContent'](_0x195252[0x0],_0x195252[0x1],_0x195252[0x2],{'forceDefaultExecution':!0x0});if(!_0x84f306)return;_0x282603['return']=_0x84f306['clone']();const _0x5a8779=_0x84f306['end']['nodeBefore'],_0x42b9d7=_0x5096d['model']['schema'];_0x5a8779&&_0x42b9d7['isBlock'](_0x5a8779)&&!_0x42b9d7['isObject'](_0x5a8779)&&(_0x84f306=_0x5096d['model']['createRange'](_0x84f306['start'],_0x5096d['model']['createPositionAt'](_0x5a8779,'end'))),this['markInsertion'](_0x84f306);}),_0x282603['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1ee9b2=new $(_0x5096d,this['_suggestions']);_0x5096d['commands']['add']('acceptSuggestion',_0x1ee9b2),this['enableCommand']('acceptSuggestion');const _0x227701=new B(_0x5096d,this['_suggestions']);_0x5096d['commands']['add']('discardSuggestion',_0x227701),this['enableCommand']('discardSuggestion'),_0x5096d['commands']['add']('acceptAllSuggestions',new x(_0x5096d,_0x1ee9b2,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5096d['commands']['add']('discardAllSuggestions',new x(_0x5096d,_0x227701,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5096d['commands']['add']('acceptSelectedSuggestions',new R(_0x5096d,_0x1ee9b2,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5096d['commands']['add']('discardSelectedSuggestions',new R(_0x5096d,_0x227701,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1d3b93=_0x5096d['plugins']['get']('CommentsRepository');this['listenTo'](_0x1d3b93,'addComment',(_0x1030d1,{threadId:_0x135066})=>{const _0x116511=this['_suggestions']['get'](_0x135066);_0x116511&&_0x116511['commentThread']&&0x1===_0x116511['commentThread']['length']&&this['_updateSuggestionData'](_0x135066,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1d3b93,'removeComment',(_0x3e695e,{threadId:_0x337c71})=>{const _0x23f0b8=this['_suggestions']['get'](_0x337c71);_0x23f0b8&&_0x23f0b8['commentThread']&&!_0x23f0b8['commentThread']['length']&&this['_updateSuggestionData'](_0x337c71,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x32f0d8){if(this['_adapter'])throw new _0xdf6052('track-changes-adapter-already-set',this);this['_adapter']=_0x32f0d8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x38356e=!0x1,toJSON:_0x2f408a=!0x1}={}){const _0xf36e5f=[];for(const _0x3a91eb of this['_suggestions']['values']())_0x38356e&&!_0x3a91eb['isInContent']||_0xf36e5f['push'](_0x3a91eb);return _0x2f408a?_0xf36e5f['map'](_0x5edf86=>_0x5edf86['toJSON']()):_0xf36e5f;}['getSuggestion'](_0x5d0149){const _0x16cd2d=this['_suggestions']['get'](_0x5d0149);if(!_0x16cd2d)throw new _0xdf6052('track-changes-suggestion-not-found',this);return _0x16cd2d;}['hasSuggestion'](_0x27f356){return this['_suggestions']['has'](_0x27f356);}['addSuggestionData'](_0x4df461){const {authorId:_0x35bc13,id:_0x3211d5,attributes:_0x563818}=_0x4df461,[_0x35894b,_0x51d120]=_0x4df461['type']['split'](':'),_0x43cae4=this['_suggestions']['get'](_0x3211d5)||this['_createSuggestion'](_0x35894b,_0x51d120,_0x3211d5,_0x35bc13,_0x563818);if(this['_addThreadToSuggestion'](_0x43cae4),this['_checkSuggestionCorrectness'](_0x43cae4,_0x35894b,_0x51d120||null,_0x35bc13),_0x43cae4['createdAt']=_0x4df461['createdAt'],_0x43cae4['_isDataLoaded']=!0x0,_0x563818&&_0x563818['@external']){const _0x575125=_0x563818['@external'],_0x18f3d7=this['_getExternalAuthor'](_0x575125['authorName']);_0x43cae4['authoredAt']=_0x575125['createdAt'],_0x43cae4['author']=_0x18f3d7,_0x43cae4['isExternal']=!0x0;}else _0x43cae4['authoredAt']=_0x4df461['createdAt'];switch(_0x4df461['data']&&(_0x43cae4['data']=_0x4df461['data']),_0x4df461['attributes']&&(_0x43cae4['attributes']=_0x4df461['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x43cae4['_saved']=!0x0),this['_suggestionState']['get'](_0x43cae4)){case'notReady':this['_suggestionState']['set'](_0x43cae4,'dataReady');break;case'markerReady':_0x43cae4['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x43cae4])),this['_refreshSuggestionsChain'](new Set([_0x43cae4])),this['_suggestionState']['set'](_0x43cae4,'ready'),this['fire']('suggestionLoaded',_0x43cae4)):this['_suggestionState']['set'](_0x43cae4,'removed');}return _0x43cae4;}['acceptSuggestion'](_0xa59207){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1437e7 of _0xa59207['getAllAdjacentSuggestions']())_0x1437e7['accept']();});});}['discardSuggestion'](_0x1c43b3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1eb584 of _0x1c43b3['getAllAdjacentSuggestions']())_0x1eb584['discard']();});});}['enableCommand'](_0x1c847f,_0x46b0c7){const _0x43e90f=this['editor']['commands']['get'](_0x1c847f);if(!_0x43e90f)throw new _0xdf6052('track-changes-command-not-found',this,{'commandName':_0x1c847f});if(this['_enabledCommands']['has'](_0x43e90f))throw new _0xdf6052('track-changes-enable-command-twice',this,{'commandName':_0x1c847f});this['_enabledCommands']['add'](_0x43e90f),_0x46b0c7&&_0x43e90f['on']('execute',(_0x1d4e4f,_0x5b828e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5b828e['length']>0x0&&_0x5b828e[_0x5b828e['length']-0x1]&&_0x5b828e[_0x5b828e['length']-0x1]['forceDefaultExecution']?_0x5b828e['pop']():(_0x1d4e4f['return']=_0x46b0c7((..._0x3331fe)=>_0x43e90f['execute'](..._0x3331fe,{'forceDefaultExecution':!0x0}),..._0x5b828e),_0x1d4e4f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1a8db6){let _0x1c1b93,_0x3c1c9a;const _0x2e4211=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1c1b93=_0x1a8db6();}catch(_0x4d6eca){_0x3c1c9a=_0x4d6eca;}return _0x2e4211||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3c1c9a&&_0xdf6052['rethrowUnexpectedError'](_0x3c1c9a,this),_0x1c1b93;}['markInsertion'](_0x442dcd,_0x14ac05=null,_0x29e80f={}){if(_0x442dcd['isCollapsed'])return null;const _0x8af0ab=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x150dfe,meta:_0x693361}of this['_findSuggestions'](_0x442dcd,'insertion'))if(_0x693361['isOwn']){if(!_0x693361['isNextTo']){if(_0x693361['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x150dfe,_0x29e80f))continue;return _0x150dfe;}if(Lt(_0x150dfe,_0x29e80f))return _0x150dfe;this['_breakSuggestionMarker'](_0x150dfe,_0x442dcd['start'],_0x442dcd['end']);break;}if(_0x14ac05==_0x150dfe['subType']&&Lt(_0x150dfe,_0x29e80f)){const _0x33e961=_0x150dfe['getFirstRange']();return _0x33e961['start']['isEqual'](_0x442dcd['end'])?this['_setSuggestionRange'](_0x150dfe,this['_model']['createRange'](_0x442dcd['start'],_0x33e961['end'])):this['_setSuggestionRange'](_0x150dfe,this['_model']['createRange'](_0x33e961['start'],_0x442dcd['end'])),_0x150dfe;}}const _0x2ecfcc=_0x5c5ac9(),_0x33960e=_0x8af0ab['id'],_0x57e637=_0x14ac05?'insertion:'+_0x14ac05:'insertion',_0x1184c4=this['_setSuggestionData']({'id':_0x2ecfcc,'type':_0x57e637,'createdAt':new Date(),'authorId':_0x33960e,'attributes':_0x29e80f});return this['_addSuggestionMarker'](_0x57e637,_0x2ecfcc,_0x33960e,_0x442dcd),_0x1184c4;}['markMultiRangeInsertion'](_0x6d01fb,_0x2df2bd='multi',_0xcdaa3c={}){const _0x17fd83=this['editor']['plugins']['get']('Users')['me'],_0x861af3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2df2bd,'join');for(const _0x4c1c7e of this['getSuggestions']())if(_0x4c1c7e['author']['id']==_0x17fd83['id']&&'insertion'==_0x4c1c7e['type']&&_0x4c1c7e['subType']==_0x2df2bd&&Lt(_0x4c1c7e,_0xcdaa3c)&&(_0x861af3(_0x4c1c7e['getRanges'](),_0x6d01fb)||_0x861af3(_0x6d01fb,_0x4c1c7e['getRanges']()))){for(const _0x50d22f of _0x6d01fb)_0x4c1c7e['addRange'](_0x50d22f);return _0x4c1c7e;}for(const {suggestion:_0x121326,meta:_0x59665d}of this['_findSuggestions'](_0x6d01fb,'insertion')){if(!_0x59665d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x59665d['containsRangeInObject'])continue;if(!Lt(_0x121326,_0xcdaa3c))continue;let _0x6124d=!0x0;for(const _0x22106f of _0x121326['getRanges']())for(const _0x4a4919 of _0x6d01fb)if(!_0x22106f['containsRange'](_0x4a4919)){_0x6124d=!0x1;break;}if(_0x6124d)return _0x121326;}const _0x1fbde0=_0x5c5ac9(),_0x5aeab2=_0x17fd83['id'],_0x25e0f2='insertion:'+_0x2df2bd,_0x199bec=this['_setSuggestionData']({'id':_0x1fbde0,'type':_0x25e0f2,'createdAt':new Date(),'authorId':_0x5aeab2,'attributes':_0xcdaa3c});for(const _0x4af004 of _0x6d01fb)this['_addSuggestionMarker'](_0x25e0f2,_0x1fbde0,_0x5aeab2,_0x4af004,u['getMultiRangeId']());return _0x199bec;}['markInlineFormat'](_0x3bb83b,_0x318b4f,_0xee6a3=null,_0x5251bb={}){if(_0xee6a3=_0xee6a3||Vt(_0x318b4f),_0x3bb83b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2e8c08=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xee6a3,'accept');return this['forceDefaultExecution'](()=>_0x2e8c08([_0x3bb83b],_0x318b4f,_0x5251bb)),null;}const _0x38d49a=this['editor']['plugins']['get']('Users')['me'],_0x4342aa=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x10b5d8,meta:_0x483606}of this['_findSuggestions'](_0x3bb83b,'insertion'))_0x483606['isOwn']&&!_0x483606['isInsideObject']&&_0x4342aa['push'](..._0x10b5d8['getRanges']());}const _0x4dac9d=function(_0x27617e,_0x31daef){const _0x3a0177=[];for(const _0x1abdb5 of _0x31daef){const _0x44df3f=_0x27617e['getIntersection'](_0x1abdb5);_0x44df3f&&_0x3a0177['push'](_0x44df3f);}return _0x3a0177;}(_0x3bb83b,_0x4342aa),_0xe16288=function(_0x48d8f5,_0x51da79){const _0x433f11=[_0x48d8f5];for(const _0xe6223f of _0x51da79){let _0x3aa8fa=0x0;for(;_0x3aa8fa<_0x433f11['length'];){const _0x4e1756=_0x433f11[_0x3aa8fa]['getDifference'](_0xe6223f);_0x433f11['splice'](_0x3aa8fa,0x1,..._0x4e1756),_0x3aa8fa+=_0x4e1756['length'];}}return _0x433f11;}(_0x3bb83b,_0x4342aa);_0x4dac9d['length']&&this['_model']['change'](()=>{for(const _0x342ed3 of _0x4dac9d){const _0xbdaa6b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xee6a3,'accept');this['forceDefaultExecution'](()=>_0xbdaa6b([_0x342ed3],_0x318b4f,_0x5251bb));}});for(const _0x580edd of _0xe16288){let _0x34a758=null,_0x2e9439=_0x580edd['start'],_0x4fa277=_0x580edd['end'];for(const {suggestion:_0x2eb0e4,meta:_0x526461}of this['_findSuggestions'](_0x580edd,'formatInline')){if(!_0x526461['isOwn'])continue;if(_0x2eb0e4['subType']!=_0xee6a3)continue;if(!Lt(_0x2eb0e4,_0x5251bb))continue;const _0xe7b270=_0x2eb0e4['getFirstRange']();if(_0xe7b270['containsRange'](_0x580edd,!0x0))return null;_0x2e9439=_0x2e9439['isBefore'](_0xe7b270['start'])?_0x2e9439:_0xe7b270['start'],_0x4fa277=_0x4fa277['isAfter'](_0xe7b270['end'])?_0x4fa277:_0xe7b270['end'],_0x34a758?_0xe7b270['start']['isBefore'](_0x34a758['getFirstRange']()['start'])?(_0x34a758['removeMarkers'](),_0x34a758=_0x2eb0e4):_0x2eb0e4['removeMarkers']():_0x34a758=_0x2eb0e4;}const _0x4bfd6b=this['_model']['createRange'](_0x2e9439,_0x4fa277);if(_0x34a758)this['_setSuggestionRange'](_0x34a758,_0x4bfd6b);else{const _0x24fe5a=_0x5c5ac9(),_0x477618=_0x38d49a['id'];this['_setSuggestionData']({'id':_0x24fe5a,'type':'formatInline:'+_0xee6a3,'data':_0x318b4f,'createdAt':new Date(),'authorId':_0x477618,'attributes':_0x5251bb}),this['_addSuggestionMarker']('formatInline:'+_0xee6a3,_0x24fe5a,_0x477618,_0x4bfd6b);}}return null;}['markBlockFormat'](_0x24bda3,_0x5619ee,_0x1071e3=[],_0x41a5e9=null,_0x5995db={}){_0x5619ee['formatGroupId']||(_0x5619ee['formatGroupId']=_0x5619ee['commandName']),_0x5619ee['multipleBlocks']=_0x24bda3['is']('range'),_0x41a5e9=_0x41a5e9||Vt(_0x5619ee);const _0x5a24c8=_0x1071e3['map'](_0x58247e=>Ft(_0x58247e,this['_model'])),_0x292051=_0x24bda3['is']('range')?_0x24bda3:Ft(_0x24bda3,this['_model']);if('never'===this['_trackFormatChanges']){const _0x54b71c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41a5e9,'accept');return this['forceDefaultExecution'](()=>_0x54b71c([_0x292051],_0x5619ee,_0x5995db)),null;}_0x5a24c8['push'](_0x292051);let _0x4ad63a=!0x0;for(const _0x1734a1 of _0x5a24c8)if(!this['_rangeIsInLocalUserInsertion'](_0x1734a1)){_0x4ad63a=!0x1;break;}if(_0x4ad63a&&'always'!==this['_trackFormatChanges']){const _0x5396a6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41a5e9,'accept');return this['forceDefaultExecution'](()=>_0x5396a6([_0x292051],_0x5619ee,_0x5995db)),null;}let _0x29dd55=null,_0x1abe6d=_0x292051['start'],_0x1e1d3f=_0x292051['end'];for(const {suggestion:_0x480f65,meta:_0x441329}of this['_findSuggestions'](_0x292051,'formatBlock')){if(!_0x441329['isOwn'])continue;if(_0x441329['isNextTo']||_0x441329['containsRangeInObject']||_0x441329['isInsideObject'])continue;if(_0x480f65['data']['formatGroupId']!=_0x5619ee['formatGroupId'])continue;if(!Lt(_0x480f65,_0x5995db))continue;const _0x37f0b6=_0x480f65['getFirstRange']();if(_0x480f65['subType']==_0x41a5e9){if(_0x37f0b6['containsRange'](_0x292051,!0x0))return null;_0x1abe6d=_0x1abe6d['isBefore'](_0x37f0b6['start'])?_0x1abe6d:_0x37f0b6['start'],_0x1e1d3f=_0x1e1d3f['isAfter'](_0x37f0b6['end'])?_0x1e1d3f:_0x37f0b6['end'],_0x29dd55?_0x37f0b6['start']['isBefore'](_0x29dd55['getFirstRange']()['start'])?(_0x29dd55['removeMarkers'](),_0x29dd55=_0x480f65):_0x480f65['removeMarkers']():_0x29dd55=_0x480f65;}else{const _0xb27a93=_0x292051['getIntersection'](_0x37f0b6);this['_cutOutSuggestionMarker'](_0x480f65,_0xb27a93);}}const _0xe31cc6=this['editor']['plugins']['get']('Users')['me'],_0x2cd91f=_0x5c5ac9(),_0x5b5534=_0xe31cc6['id'];if(_0x29dd55)return this['_setSuggestionRange'](_0x29dd55,this['_model']['createRange'](_0x1abe6d,_0x1e1d3f)),_0x29dd55;{const _0x58df93=this['_setSuggestionData']({'id':_0x2cd91f,'type':'formatBlock:'+_0x41a5e9,'data':_0x5619ee,'createdAt':new Date(),'authorId':_0x5b5534,'attributes':_0x5995db});return this['_addSuggestionMarker']('formatBlock:'+_0x41a5e9,_0x2cd91f,_0x5b5534,this['_model']['createRange'](_0x1abe6d,_0x1e1d3f)),_0x58df93;}}['markMultiRangeBlockFormat'](_0x3c6626,_0xfa9cfd,_0x1fa09d=[],_0x254b99=null,_0x1ed8e0={}){_0xfa9cfd['formatGroupId']||(_0xfa9cfd['formatGroupId']=_0xfa9cfd['commandName']);const _0x2278f8=_0x3c6626[0x0];_0xfa9cfd['multipleBlocks']=_0x2278f8['is']('range'),_0x254b99=_0x254b99||Vt(_0xfa9cfd);const _0xd9212f=_0x1fa09d['map'](_0x24330d=>Ft(_0x24330d,this['_model'])),_0x436c8e=_0x2278f8['is']('range')?_0x3c6626:_0x3c6626['map'](_0x4ada3c=>Ft(_0x4ada3c,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3e33c1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x254b99,'accept');return this['forceDefaultExecution'](()=>_0x3e33c1(_0x436c8e,_0xfa9cfd,_0x1ed8e0)),null;}_0xd9212f['push'](..._0x436c8e);let _0x3fee7d=!0x0;for(const _0x594d40 of _0xd9212f)if(!this['_rangeIsInLocalUserInsertion'](_0x594d40)){_0x3fee7d=!0x1;break;}if(_0x3fee7d&&'always'!==this['_trackFormatChanges']){const _0x4e6f72=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x254b99,'accept');return this['forceDefaultExecution'](()=>_0x4e6f72(_0x436c8e,_0xfa9cfd,_0x1ed8e0)),null;}const _0x3235b1=this['editor']['plugins']['get']('Users')['me'];for(const _0x11e527 of this['getSuggestions']()){if(_0x11e527['author']['id']!=_0x3235b1['id'])continue;if('formatBlock'!=_0x11e527['type']||_0x11e527['data']['formatGroupId']!=_0xfa9cfd['formatGroupId'])continue;if(!Lt(_0x11e527,_0x1ed8e0))continue;const _0x52a925=_0x11e527['subType']==_0x254b99;for(let _0x48cece=0x0;_0x48cece<_0x436c8e['length'];_0x48cece++){const _0x4237a5=_0x436c8e[_0x48cece];for(const _0x38d589 of _0x11e527['getMarkers']()){const _0x51cf14=_0x38d589['getRange']();if(_0x4237a5['isEqual'](_0x51cf14)){_0x52a925?(_0x436c8e['splice'](_0x48cece,0x1),_0x48cece--):_0x11e527['removeMarker'](_0x38d589['name']);break;}}}}if(0x0==_0x436c8e['length'])return null;const _0x2598ae=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x254b99,'join');for(const _0x2c30ec of this['getSuggestions']())if(_0x2c30ec['author']['id']==_0x3235b1['id']&&'formatBlock'==_0x2c30ec['type']&&_0x2c30ec['data']['formatGroupId']==_0xfa9cfd['formatGroupId']&&_0x2c30ec['subType']==_0x254b99&&Lt(_0x2c30ec,_0x1ed8e0)&&(_0x2598ae(_0x2c30ec['getRanges'](),_0x436c8e)||_0x2598ae(_0x436c8e,_0x2c30ec['getRanges']()))){for(const _0x1d463f of _0x436c8e)_0x2c30ec['addRange'](_0x1d463f);return _0x2c30ec;}const _0xd18b49=_0x5c5ac9(),_0x29d920=_0x3235b1['id'],_0x42e6e1='formatBlock:'+_0x254b99,_0x1d94c4=this['_setSuggestionData']({'id':_0xd18b49,'type':_0x42e6e1,'data':_0xfa9cfd,'createdAt':new Date(),'authorId':_0x29d920,'attributes':_0x1ed8e0});for(const _0x5682ba of _0x436c8e)this['_addSuggestionMarker'](_0x42e6e1,_0xd18b49,_0x29d920,_0x5682ba,u['getMultiRangeId']());return _0x1d94c4;}['markDeletion'](_0x4a55c5,_0x27eeda=null,_0x48679c={}){if(_0x4a55c5['isCollapsed'])return null;const _0x34de68=this['editor']['plugins']['get']('Users')['me'],_0x5612de=new _0x264ebf(_0x4a55c5['start'],_0x4a55c5['end']);for(const {suggestion:_0x28befd,meta:_0x5a1e4f}of this['_findSuggestions'](_0x5612de,'insertion'))if(_0x5a1e4f['isOwn']&&!_0x5a1e4f['isNextTo']){if(_0x28befd['isMultiRange']){const _0x4b61d3=_0x28befd['getRanges']()['filter'](_0x34868c=>'$graveyard'!=_0x34868c['root']['rootName']);_0x4b61d3['every'](_0x43b92c=>_0x5612de['containsRange'](_0x43b92c,!0x0))&&_0x28befd['discard']();if(_0x4b61d3['some'](_0x831aaa=>_0x831aaa['containsRange'](_0x5612de,!0x0))){const _0x37fd20=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27eeda,'accept');return this['forceDefaultExecution'](()=>_0x37fd20([_0x5612de],null,_0x48679c)),null;}}else{const _0x37ae89=_0x5612de['getIntersection'](_0x28befd['getFirstRange']());null!==_0x37ae89&&_0x28befd['_onDiscard']([_0x37ae89],null,_0x48679c);}}if(_0x5612de['detach'](),_0x5612de['isCollapsed']||'$graveyard'==_0x5612de['root']['rootName'])return null;let _0x5deca6=null,_0x27712c=_0x5612de['start'],_0x18e051=_0x5612de['end'];const _0x5b9459=this['_findSuggestions'](_0x5612de,'deletion');for(const {suggestion:_0x529cf6,meta:_0x1d50ce}of _0x5b9459){const _0x5b13e1=this['_model']['createRange'](_0x27712c,_0x18e051);if(_0x1d50ce['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1d50ce['containsRangeInObject']&&!_0x1d50ce['isInsideObject'])){if(_0x529cf6['isMultiRange']){if(!Lt(_0x529cf6,_0x48679c))continue;let _0x39b906=!0x0;for(const _0x5599fd of _0x529cf6['getRanges']()){if(_0x5599fd['containsRange'](_0x5b13e1,!0x0))return _0x529cf6;_0x5b13e1['containsRange'](_0x5599fd)||(_0x39b906=!0x1);}_0x39b906&&_0x529cf6['discard']();}else{const _0x3e8560=_0x529cf6['getFirstRange']();if(_0x3e8560['containsRange'](_0x5b13e1,!0x0))return _0x529cf6;if(!Lt(_0x529cf6,_0x48679c)){_0x5b13e1['containsRange'](_0x3e8560)?_0x529cf6['removeMarkers']():_0x3e8560['containsPosition'](_0x27712c)?_0x27712c=_0x3e8560['end']:_0x3e8560['containsPosition'](_0x18e051)&&(_0x18e051=_0x3e8560['start']);continue;}_0x27712c=_0x27712c['isBefore'](_0x3e8560['start'])?_0x27712c:_0x3e8560['start'],_0x18e051=_0x18e051['isAfter'](_0x3e8560['end'])?_0x18e051:_0x3e8560['end'],_0x48679c=Object['assign']({},_0x529cf6['attributes']),_0x5deca6?_0x3e8560['start']['isBefore'](_0x5deca6['getFirstRange']()['start'])?(_0x5deca6['removeMarkers'](),_0x5deca6=_0x529cf6):_0x529cf6['removeMarkers']():_0x5deca6=_0x529cf6;}}}if(_0x5deca6)return this['_setSuggestionRange'](_0x5deca6,this['_model']['createRange'](_0x27712c,_0x18e051)),_0x5deca6;{const _0x563a05=_0x5c5ac9(),_0x3a7cad=this['_model']['createRange'](_0x27712c,_0x18e051),_0x4eee50=_0x34de68['id'],_0x13c9ad=_0x27eeda?'deletion:'+_0x27eeda:'deletion',_0x41a7d4=this['_setSuggestionData']({'id':_0x563a05,'type':_0x13c9ad,'createdAt':new Date(),'authorId':_0x4eee50,'attributes':_0x48679c});return this['_addSuggestionMarker'](_0x13c9ad,_0x563a05,_0x4eee50,_0x3a7cad),_0x41a7d4;}}['markMultiRangeDeletion'](_0x5af981,_0x3d50a1='multi',_0x50e933={}){const _0x449a4c=this['editor']['plugins']['get']('Users')['me'],_0x242500=_0x5af981['map'](_0x48f0a3=>new _0x264ebf(_0x48f0a3['start'],_0x48f0a3['end'])),_0x216110=new Set();for(const {suggestion:_0x40a20a,meta:_0x40637a}of this['_findSuggestions'](_0x242500,'insertion'))_0x40637a['isOwn']&&!_0x40637a['isNextTo']&&_0x216110['add'](_0x40a20a);for(const _0xa4aabd of _0x216110)if(_0xa4aabd['isMultiRange']){const _0x3b425c=_0xa4aabd['getRanges']();(!_0xa4aabd['attributes']||!_0xa4aabd['attributes']['skipNestingCheck'])&&(_0x3b425c['every'](_0x29744e=>_0x242500['some'](_0x5bdcc5=>_0x5bdcc5['containsRange'](_0x29744e,!0x0)))&&_0xa4aabd['discard']());if(_0x242500['every'](_0x485c96=>_0x3b425c['some'](_0xe001cc=>_0xe001cc['containsRange'](_0x485c96,!0x0)))){const _0x2b82ef=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d50a1,'accept');return this['forceDefaultExecution'](()=>_0x2b82ef(_0x5af981,null,_0x50e933)),null;}}else{const _0x27d789=_0xa4aabd['getFirstRange']();_0x242500['some'](_0x16b5fa=>_0x16b5fa['containsRange'](_0x27d789,!0x0))&&_0xa4aabd['discard']();if(_0x242500['every'](_0x18bc63=>_0x27d789['containsRange'](_0x18bc63,!0x0))){const _0x5b4490=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d50a1,'accept');return this['forceDefaultExecution'](()=>_0x5b4490(_0x242500,null,_0x50e933)),null;}}const _0x4859cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d50a1,'join');let _0xf99d57=null;for(const _0x311307 of this['getSuggestions']())if(_0x311307['author']['id']==_0x449a4c['id']&&_0x311307['isInContent']&&'deletion'==_0x311307['type']&&_0x311307['subType']==_0x3d50a1&&Lt(_0x311307,_0x50e933)&&(_0x4859cf(_0x311307['getRanges'](),_0x242500)||_0x4859cf(_0x242500,_0x311307['getRanges']()))){if(_0xf99d57){if(_0x311307['commentThread']&&_0x311307['commentThread']['length'])continue;for(const _0x4e7867 of _0x311307['getRanges']())_0xf99d57['isIntersectingWithRange'](_0x4e7867)||_0xf99d57['addRange'](_0x4e7867);_0x311307['removeMarkers']();}else{_0xf99d57=_0x311307;for(const _0x3d4282 of _0x242500)_0x311307['isIntersectingWithRange'](_0x3d4282)||_0x311307['addRange'](_0x3d4282);}}if(_0xf99d57)return _0xf99d57;_0x216110['clear']();for(const {suggestion:_0x1bc7a7,meta:_0x143758}of this['_findSuggestions'](_0x242500,'deletion'))_0x143758['isOwn']&&(this['_mergeNestedSuggestions']||!_0x143758['containsRangeInObject']&&!_0x143758['isInsideObject'])&&Lt(_0x1bc7a7,_0x50e933)&&_0x216110['add'](_0x1bc7a7);for(const _0x30009e of _0x216110){const _0xf6b91c=_0x30009e['getRanges']();if(!_0x50e933||!_0x50e933['skipNestingCheck']){if(_0x242500['every'](_0xff2aee=>_0xf6b91c['some'](_0x2d05e3=>_0x2d05e3['containsRange'](_0xff2aee,!0x0))))return _0x30009e;}(!_0x30009e['attributes']||!_0x30009e['attributes']['skipNestingCheck'])&&(_0xf6b91c['every'](_0x478a5a=>_0x242500['some'](_0x211802=>_0x211802['containsRange'](_0x478a5a,!0x0)))&&_0x30009e['discard']());}const _0x397f62=_0x5c5ac9(),_0x1944da=_0x449a4c['id'],_0x303188='deletion:'+_0x3d50a1,_0x8928e3=this['_setSuggestionData']({'id':_0x397f62,'type':_0x303188,'createdAt':new Date(),'authorId':_0x1944da,'attributes':_0x50e933});for(const _0x25e063 of _0x242500)_0x25e063['detach'](),_0x25e063['isCollapsed']||'$graveyard'==_0x25e063['root']['rootName']||this['_addSuggestionMarker'](_0x303188,_0x397f62,_0x1944da,_0x25e063,u['getMultiRangeId']());return _0x8928e3;}['markAttributeChange'](_0x1ebb4f,_0x48e3b9,_0x184b18,_0x2a03cf,_0x4268a0){if(_0x1ebb4f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x206625=this['editor']['plugins']['get']('Users')['me']['id'],_0x277011=Array['from'](this['_suggestions']['values']())['filter'](_0xef2e45=>'attribute'==_0xef2e45['type']&&_0xef2e45['data']['key']==_0x48e3b9&&_0xef2e45['isIntersectingWithRange'](_0x1ebb4f));if('default'===this['_trackFormatChanges']){const _0x4c03b8=this['_findSuggestions'](_0x1ebb4f,'insertion')['filter'](({meta:_0x1cc42b})=>_0x1cc42b['isOwn']&&!_0x1cc42b['isInsideObject']&&!_0x1cc42b['isNextTo'])['map'](({suggestion:_0x1fa406})=>_0x1fa406);_0x277011['unshift'](..._0x4c03b8);}const _0x1e3fcf=new Map([[_0x1ebb4f,_0x184b18]]);for(const _0x3de3f5 of _0x277011){const _0xe09e0c='attribute'==_0x3de3f5['type']?_0x3de3f5['data']['oldValue']:void 0x0,_0x15c477=_0x3de3f5['getFirstRange'](),_0x3d2d6e=Array['from'](_0x1e3fcf['keys']())['find'](_0xf76c9=>_0xf76c9['isIntersecting'](_0x15c477));if(!_0x3d2d6e)continue;const _0x225f51=_0x3d2d6e['getDifference'](_0x15c477);this['_isBlockAttribute'](_0x48e3b9)&&'insertion'==_0x3de3f5['type']&&0x0!=_0x225f51['length']||(_0x1e3fcf['delete'](_0x3d2d6e),_0x225f51['forEach'](_0x495827=>{_0x1e3fcf['set'](_0x495827,_0x184b18);}),'insertion'!=_0x3de3f5['type']&&_0xe09e0c!=_0x2a03cf&&_0x1e3fcf['set'](_0x3d2d6e['getIntersection'](_0x15c477),_0xe09e0c));}const _0x41a243=[];for(const [_0x19b940,_0x1289a1]of _0x1e3fcf){const _0x414e88=_0x5c5ac9(),_0x59bfc0={'key':_0x48e3b9,'oldValue':_0x1289a1,'newValue':_0x2a03cf};_0x48e3b9['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':_0x48e3b9});const _0x23c376=('attribute:'+(_0x48e3b9+'|'+Vt({'newValue':_0x2a03cf})))['substring'](0x0,0x3c),_0x1cbef6=this['_setSuggestionData']({'id':_0x414e88,'type':_0x23c376,'data':_0x59bfc0,'createdAt':new Date(),'authorId':_0x206625,'attributes':_0x4268a0});_0x41a243['push'](_0x1cbef6),this['_addSuggestionMarker'](_0x23c376,_0x414e88,_0x206625,_0x19b940);}return _0x41a243;}['enableDefaultAttributesIntegration'](_0xcb3abc){this['enableCommand'](_0xcb3abc,(_0x48fc2c,..._0x572765)=>{this['_recordAttributeChanges'](()=>{_0x48fc2c(..._0x572765);});});}['registerBlockAttribute'](_0x573427){this['_blockAttributeKeys']['add'](_0x573427);}['registerInlineAttribute'](_0x5b748c){this['_inlineAttributeKeys']['add'](_0x5b748c);}['_getAttributeKey'](_0x22fb63){return'attribute'==_0x22fb63['type']?_0x22fb63['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4b1dd8,_0xb56d33){const _0x3976b0=_0x4b1dd8['getFirstMarker']();this['_model']['change'](_0x10073b=>{_0x10073b['updateMarker'](_0x3976b0,{'range':_0xb56d33});});}['_addThreadToSuggestion'](_0x4462cc){const _0x4e681c=_0x4462cc['id'],_0x3ac640=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4e681c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3ac640,'threadId':_0x4e681c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2cd1ed=this['_commentsRepository']['getCommentThread'](_0x4e681c);_0x2cd1ed['unbind']('isRemovable'),_0x2cd1ed['isRemovable']=!0x1,_0x4462cc['commentThread']=_0x2cd1ed;}['_checkSuggestionCorrectness'](_0x31cc30,_0x5c59e7,_0x1d5206,_0xcf7c23){if(_0x31cc30['type']!=_0x5c59e7||_0x31cc30['subType']!=_0x1d5206||_0x31cc30['creator']['id']!=_0xcf7c23)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xdf6052('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3e5c88,_0x6e9f7f){const _0x25f6e1=_0x3e5c88['getFirstRange']();if(_0x6e9f7f['isEqual'](_0x25f6e1))_0x3e5c88['removeMarkers']();else{if(_0x25f6e1['containsRange'](_0x6e9f7f)){const _0x4be851=this['_model']['createPositionAt'](_0x6e9f7f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3e5c88,this['_model']['createRange'](_0x25f6e1['start'],_0x4be851));const _0xb1b7fc=_0x5c5ac9(),_0x16d662=_0x3e5c88['creator']['id'],_0x2dbead=_0x3e5c88['type']+':'+_0x3e5c88['subType'];this['_setSuggestionData']({'id':_0xb1b7fc,'type':_0x2dbead,'createdAt':new Date(),'authorId':_0x16d662,'data':_0x3e5c88['data'],'attributes':_0x3e5c88['attributes']});const _0x48065a=this['_model']['createPositionAt'](_0x6e9f7f['end']['parent'],'after'),_0x434f82=this['_model']['createRange'](_0x48065a,_0x25f6e1['end']);this['_addSuggestionMarker'](_0x2dbead,_0xb1b7fc,_0x16d662,_0x434f82);}else{if(_0x25f6e1['containsPosition'](_0x6e9f7f['start'])){const _0x4bd6b0=this['_model']['createPositionAt'](_0x6e9f7f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3e5c88,this['_model']['createRange'](_0x25f6e1['start'],_0x4bd6b0));}else{const _0x76870=this['_model']['createPositionAt'](_0x6e9f7f['end']['parent'],'after');this['_setSuggestionRange'](_0x3e5c88,this['_model']['createRange'](_0x76870,_0x25f6e1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2df611){for(const {suggestion:_0x1a4c87,meta:_0x4188fe}of this['_findSuggestions'](_0x2df611,'insertion')){if(!_0x4188fe['isOwn'])continue;const _0x83382f=_0x1a4c87['getRanges']();for(const _0x199f16 of _0x83382f)if(!_0x2df611['getDifference'](_0x199f16)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x68a8a2){const _0x42a6b3=this['editor']['plugins']['get']('Users')['getUser'](_0x68a8a2);if(!_0x42a6b3)throw new _0xdf6052('track-changes-user-not-found',this);return _0x42a6b3;}['_getExternalAuthor'](_0xd03dee){const _0x30f63a=this['editor']['plugins']['get']('Users'),_0x57fc91=_0x2794a3('external:'+_0xd03dee),_0x32d9d6=_0x30f63a['getUser'](_0x57fc91);return _0x32d9d6||_0x30f63a['addUser']({'id':_0x57fc91,'name':_0xd03dee});}['_createSuggestion'](_0x214f87,_0x19f489,_0xbb086f,_0x5f59c8,_0x4861c6){const _0x300e34=this['_getAuthorFromId'](_0x5f59c8),_0x44ecbd=this['_suggestionFactory']['buildSuggestion'](_0x214f87,_0x19f489,_0xbb086f,_0x300e34,_0x4861c6,_0x2f7125=>{this['_updateSuggestionData'](_0xbb086f,{'attributes':_0x2f7125});const _0x3265c6=this['getSuggestion'](_0xbb086f);this['_joinWithAdjacentSuggestions'](new Set([_0x3265c6])),this['_refreshSuggestionsChain'](new Set([_0x3265c6]));});return this['listenTo'](_0x44ecbd,'accept',()=>{this['_updateSuggestionData'](_0xbb086f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x44ecbd,'discard',()=>{this['_updateSuggestionData'](_0xbb086f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xbb086f,_0x44ecbd),this['_suggestionState']['set'](_0x44ecbd,'notReady'),_0x44ecbd;}['_splitMarkerName'](_0x3fee53){const _0x459c12=_0x3fee53['split'](':');return{'group':_0x459c12[0x0],'type':_0x459c12[0x1],'subType':_0x459c12['length']>=0x5?_0x459c12[0x2]:null,'id':_0x459c12['length']<0x5?_0x459c12[0x2]:_0x459c12[0x3],'authorId':_0x459c12['length']<0x5?_0x459c12[0x3]:_0x459c12[0x4],'markerCount':0x6==_0x459c12['length']?_0x459c12[0x5]:null};}['_breakSuggestionMarker'](_0x334b8e,_0x5bbfea,_0x2e8ccb){const _0x2dcd0d=_0x334b8e['getFirstRange'](),_0x37a2d6=_0x2dcd0d['start'],_0x3fc937=_0x2dcd0d['end'];this['_setSuggestionRange'](_0x334b8e,this['_model']['createRange'](_0x37a2d6,_0x5bbfea));const _0x3097df=_0x5c5ac9(),_0x48e52a=_0x334b8e['creator']['id'],_0x212fef=_0x334b8e['type']+(_0x334b8e['subType']?':'+_0x334b8e['subType']:'');this['_setSuggestionData']({'id':_0x3097df,'type':_0x212fef,'createdAt':new Date(),'authorId':_0x48e52a,'originalSuggestionId':_0x334b8e['id'],'attributes':_0x334b8e['attributes'],'data':_0x334b8e['data']});const _0x1e71c0=this['_getAttributeKey'](_0x334b8e);('formatBlock'==_0x334b8e['type']||_0x1e71c0&&this['_isBlockAttribute'](_0x1e71c0))&&(_0x2e8ccb=this['_model']['createPositionBefore'](_0x2e8ccb['parent'])),this['_addSuggestionMarker'](_0x212fef,_0x3097df,_0x48e52a,this['_model']['createRange'](_0x2e8ccb,_0x3fc937));}['_findSuggestions'](_0x15cb3e,_0x38acfa=null){const _0x550282=[],_0x4b84b6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x15cb3e)||(_0x15cb3e=[_0x15cb3e]);for(const _0x47f01b of this['getSuggestions']()){if(!_0x47f01b['isInContent'])continue;if(_0x38acfa&&_0x47f01b['type']!=_0x38acfa)continue;let _0x5d37dc=!0x1;for(const _0x5bcb24 of _0x47f01b['getRanges']()){for(const _0x1ded66 of _0x15cb3e){const _0x174ad6=_0x1ded66['start']['isEqual'](_0x5bcb24['end'])||_0x1ded66['end']['isEqual'](_0x5bcb24['start']);if(_0x174ad6||_0x1ded66['getIntersection'](_0x5bcb24)){const _0x3675ea=_0x1ded66['containsRange'](_0x5bcb24)&&Rt(this['_model']['schema'],_0x5bcb24['start'],_0x1ded66),_0x2d6f8d=_0x5bcb24['containsRange'](_0x1ded66)&&Rt(this['_model']['schema'],_0x1ded66['start'],_0x5bcb24);_0x550282['push']({'suggestion':_0x47f01b,'meta':{'isOwn':_0x4b84b6==_0x47f01b['author'],'isNextTo':_0x174ad6,'isInsideObject':_0x3675ea,'containsRangeInObject':_0x2d6f8d}}),_0x5d37dc=!0x0;break;}}if(_0x5d37dc)break;}}return _0x550282;}['_addSuggestionMarker'](_0x251926,_0x9a4c81,_0x13e4ee,_0x42dffa,_0x666179){this['_model']['change'](_0x1ef476=>{let _0x27e50d='suggestion:'+_0x251926+':'+_0x9a4c81+':'+_0x13e4ee;_0x666179&&(_0x27e50d=_0x27e50d+':'+_0x666179),_0x1ef476['addMarker'](_0x27e50d,{'range':_0x42dffa,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x341be3){const _0x135dbe=_0x341be3['previous'],_0x20f828=_0x341be3['next'];_0x341be3['previous']=null,_0x341be3['next']=null,null!=_0x135dbe&&_0x135dbe['next']==_0x341be3&&(_0x135dbe['next']=_0x20f828),null!=_0x20f828&&_0x20f828['previous']==_0x341be3&&(_0x20f828['previous']=_0x135dbe),'ready'==this['_suggestionState']['get'](_0x341be3)&&(this['_suggestionState']['set'](_0x341be3,'removed'),this['fire']('suggestionUnloaded',_0x341be3,_0x135dbe,_0x20f828));}['_setSuggestionData'](_0x5e6575){const _0x571979=_0x5e6575['id'],_0x12d7f2=this['addSuggestionData'](_0x5e6575);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3dd817=this['editor']['plugins']['get']('PendingActions'),_0x46a817=_0x12d7f2['hasComments'],_0x49065e=_0x12d7f2['subType']?_0x12d7f2['type']+':'+_0x12d7f2['subType']:_0x12d7f2['type'],_0x5ed0cc=this['editor']['locale'],_0x1a9c73=_0x3dd817['add'](o(_0x5ed0cc,'PENDING_ACTION_SUGGESTION')),_0x3e5fb6={'id':_0x571979,'type':_0x49065e,'hasComments':_0x46a817,'data':_0x5e6575['data']||null,'originalSuggestionId':_0x5e6575['originalSuggestionId']||null,'attributes':_0x12d7f2['attributes']};this['_adapter']['addSuggestion'](_0x3e5fb6)['then'](_0x5c2a43=>{_0x12d7f2['_saved']=!0x0,_0x3dd817['remove'](_0x1a9c73),_0x5c2a43&&_0x5c2a43['createdAt']&&(this['_suggestions']['get'](_0x571979)['createdAt']=_0x5c2a43['createdAt']);})['catch'](_0x30a318=>{throw _0x19329e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x12d7f2['discard']();}),_0x12d7f2['stopListening'](),this['_suggestions']['delete'](_0x12d7f2['id']),this['_suggestionState']['delete'](_0x12d7f2),_0x30a318;});}return _0x12d7f2;}['_isBlockAttribute'](_0x5d470b){return this['_blockAttributeKeys']['has'](_0x5d470b);}['_updateSuggestionData'](_0x18c1da,_0x58bfc3){const _0x4c754f=this['editor']['plugins']['get']('PendingActions'),_0x280ead=this['getSuggestion'](_0x18c1da);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x280ead['_saved']){const _0x2f78e9=_0x4c754f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x18c1da,_0x58bfc3)['then'](()=>{_0x4c754f['remove'](_0x2f78e9);});}else _0x280ead['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x18c1da,_0x58bfc3);});}}['_getSuggestionData'](_0xa41480){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xdf6052('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xa41480);}['_handleNewSuggestionMarker'](_0x473bd0){const {id:_0x2abe18,type:_0x19ad9a,subType:_0x33e574,authorId:_0x2e8aae}=this['_splitMarkerName'](_0x473bd0),_0x31a550=this['_suggestions']['get'](_0x2abe18)||this['_createSuggestion'](_0x19ad9a,_0x33e574,_0x2abe18,_0x2e8aae,{});switch(this['_checkSuggestionCorrectness'](_0x31a550,_0x19ad9a,_0x33e574,_0x2e8aae),this['_suggestionState']['get'](_0x31a550)){case'notReady':this['_getSuggestionData'](_0x2abe18)['then'](_0x1d8c46=>{let _0x31ca35=Promise['resolve']();_0x1d8c46['hasComments']&&(_0x31ca35=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2abe18})),_0x31ca35['then'](()=>{this['addSuggestionData'](_0x1d8c46)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x31a550,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2abe18,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x31a550,'ready'),this['fire']('suggestionLoaded',_0x31a550);break;case'ready':this['fire']('suggestionChanged',_0x31a550);}return _0x31a550['addMarkerName'](_0x473bd0),_0x31a550;}['_refreshSuggestionsChain'](_0x5b45bb){const _0x6f31fa=Array['from'](_0x5b45bb),_0x5d4ac4=_0x6f31fa['filter'](_0x37f142=>'attribute'==_0x37f142['type']);this['_refreshAttributeSuggestionsChain'](_0x5d4ac4);const _0x91228e=_0x6f31fa['filter'](_0x15cda5=>!_0x15cda5['isMultiRange']&&'attribute'!=_0x15cda5['type']),_0xbbb29f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53ac28=>!_0x53ac28['isMultiRange']&&'attribute'!=_0x53ac28['type']),_0x37cdc4=_0xbbb29f['filter'](_0x250ce8=>!_0x5b45bb['has'](_0x250ce8)),_0x4211a5=new Map(_0xbbb29f['map'](_0xc06be3=>[_0xc06be3,this['_suggestionFactory']['getSuggestionCallback'](_0xc06be3['type'],_0xc06be3['subType'],'chain')])),_0x29217a=new Map(_0xbbb29f['map'](_0x335fc1=>[_0x335fc1,_0x335fc1['getFirstRange']()])),_0x26de07=new Set(),_0x3ab306=new Set();for(let _0x1788e7=0x0;_0x1788e7<_0x91228e['length'];_0x1788e7++)_0x156967(_0x91228e[_0x1788e7],_0x91228e,_0x1788e7+0x1);for(let _0x50b48b=0x0;_0x50b48b<_0x91228e['length'];_0x50b48b++)_0x156967(_0x91228e[_0x50b48b],_0x37cdc4,0x0);const _0x5e525e=new Set();for(let _0x2d2394=0x0;_0x2d2394<_0x91228e['length'];_0x2d2394++){const _0x34275c=_0x91228e[_0x2d2394];!_0x3ab306['has'](_0x34275c)&&_0x34275c['previous']&&(_0x5e525e['add'](_0x34275c['previous']),_0x34275c['previous']['next']===_0x34275c&&(_0x34275c['previous']['next']=null),_0x34275c['previous']=null),!_0x26de07['has'](_0x34275c)&&_0x34275c['next']&&(_0x5e525e['add'](_0x34275c['next']),_0x34275c['next']['previous']===_0x34275c&&(_0x34275c['next']['previous']=null),_0x34275c['next']=null);}function _0x156967(_0x1d152,_0x207b8e,_0x2ef450){for(let _0x11355e=_0x2ef450;_0x11355e<_0x207b8e['length'];_0x11355e++){const _0x5b50d6=_0x2254b3(_0x1d152,_0x207b8e[_0x11355e]);_0x5b50d6&&(_0x5b50d6[0x0]['next']=_0x5b50d6[0x1],_0x5b50d6[0x1]['previous']=_0x5b50d6[0x0],_0x26de07['add'](_0x5b50d6[0x0]),_0x3ab306['add'](_0x5b50d6[0x1]));}}function _0x2254b3(_0x402f43,_0x411657){if(_0x402f43['author']['id']!==_0x411657['author']['id'])return null;const _0x4b65b7=_0x4211a5['get'](_0x402f43)(_0x402f43,_0x411657,_0x29217a['get'](_0x402f43),_0x29217a['get'](_0x411657));if(!_0x4b65b7)return null;return _0x4211a5['get'](_0x411657)(_0x402f43,_0x411657,_0x29217a['get'](_0x402f43),_0x29217a['get'](_0x411657))?_0x4b65b7[0x1]['commentThread']&&_0x4b65b7[0x1]['commentThread']['length']?null:_0x4b65b7:null;}_0x5e525e['size']&&this['_refreshSuggestionsChain'](_0x5e525e);}['_refreshAttributeSuggestionsChain'](_0x5ba392){if(0x0==_0x5ba392['length'])return;const _0x2f0a12=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe3b70c=>'attribute'==_0xe3b70c['type']&&_0xe3b70c['_isDataLoaded']),_0x35c2e1=[],_0x3fe685=new Map();for(const _0x19ffad of _0x2f0a12){const _0x14360a=_0x2794a3(_0x19ffad['attributes']);_0x3fe685['has'](_0x14360a)||(_0x3fe685['set'](_0x14360a,_0x35c2e1['length']),_0x35c2e1['push']([]));const _0x4d2db3=_0x3fe685['get'](_0x14360a);_0x35c2e1[_0x4d2db3]['push'](_0x19ffad);}!(function(){_0x35c2e1['sort']((_0x580456,_0x505cf0)=>{const _0x27465f=_0x580456[0x0]['createdAt'],_0x3e25ce=_0x505cf0[0x0]['createdAt'];return _0x27465f==_0x3e25ce?_0x580456[0x0]['attributes']['groupId']<_0x505cf0[0x0]['attributes']['groupId']?-0x1:0x1:_0x27465f<_0x3e25ce?-0x1:0x1;});for(const _0x41c9a2 of _0x35c2e1)_0x41c9a2['sort']((_0x1ef3fe,_0x2551fd)=>_0x1ef3fe['id']<_0x2551fd['id']?-0x1:0x1);}());for(let _0x449aff=0x0;_0x449aff<_0x35c2e1['length'];_0x449aff++){if(0x0==_0x35c2e1[_0x449aff]['length'])continue;const _0x12ea0f=[];for(let _0x5d2754=_0x449aff+0x1;_0x5d2754<_0x35c2e1['length'];_0x5d2754++)0x0!=_0x35c2e1[_0x5d2754]['length']&&_0x3193b8(_0x35c2e1[_0x449aff],_0x35c2e1[_0x5d2754])&&_0x12ea0f['push'](_0x5d2754);for(const _0x147b75 of _0x12ea0f)_0x35c2e1[_0x449aff]=_0x35c2e1[_0x449aff]['concat'](_0x35c2e1[_0x147b75]),_0x35c2e1[_0x147b75]=[];}for(const _0x58102b of _0x35c2e1)for(let _0x1b0f7e=0x0;_0x1b0f7e<_0x58102b['length'];_0x1b0f7e++)_0x58102b[_0x1b0f7e]['next']=_0x58102b[_0x1b0f7e+0x1]||null;for(const _0x5d10af of _0x35c2e1)for(let _0x2c1783=0x0;_0x2c1783<_0x5d10af['length'];_0x2c1783++)_0x5d10af[_0x2c1783]['previous']=_0x5d10af[_0x2c1783-0x1]||null;function _0x3193b8(_0x46bec8,_0x15761f){if(_0x46bec8[0x0]['attributes']['groupId']!==_0x15761f[0x0]['attributes']['groupId']&&_0x46bec8[0x0]['author']!==_0x15761f[0x0]['author'])return!0x1;if(!function(_0x55740b,_0x1d8e0e){if(!_0x55740b['hasComments']&&!_0x1d8e0e['hasComments'])return!0x0;if(_0x55740b['hasComments']&&_0x1d8e0e['hasComments'])return!0x1;if(_0x55740b['hasComments']&&_0x1d8e0e['createdAt']<_0x55740b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1d8e0e['hasComments']&&_0x55740b['createdAt']<_0x1d8e0e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x46bec8[0x0],_0x15761f[0x0]))return!0x1;const _0x30f2c0=Bt(_0x46bec8[0x0]['attributes'],'groupId'),_0x137d64=Bt(_0x15761f[0x0]['attributes'],'groupId');if(!_0x48fe0(_0x30f2c0,_0x137d64))return!0x1;return!!_0x46bec8['every'](_0x29ba13=>_0x15761f['some'](_0x5c3c28=>_0x29ba13['getFirstRange']()['isEqual'](_0x5c3c28['getFirstRange']())))&&_0x15761f['every'](_0x387e23=>_0x46bec8['some'](_0x11f274=>_0x387e23['getFirstRange']()['isEqual'](_0x11f274['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4a8c71){const _0xd97388=Array['from'](_0x4a8c71),_0x204037=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2bf4d5=_0x204037['filter'](_0x4a12fe=>!_0x4a8c71['has'](_0x4a12fe)),_0x5bb347=new Map(_0xd97388['map'](_0x5b9d4a=>[_0x5b9d4a,this['_suggestionFactory']['getSuggestionCallback'](_0x5b9d4a['type'],_0x5b9d4a['subType'],'join')])),_0x267909=new Map(_0x204037['map'](_0x5f732e=>[_0x5f732e,_0x5f732e['getRanges']()]));for(let _0x2d41e5=0x0;_0x2d41e5<_0xd97388['length'];_0x2d41e5++){if(_0x1f551e(this,_0xd97388[_0x2d41e5],_0xd97388,_0x2d41e5+0x1))return!0x0;}for(let _0x5d9f6d=0x0;_0x5d9f6d<_0xd97388['length'];_0x5d9f6d++){if(_0x1f551e(this,_0xd97388[_0x5d9f6d],_0x2bf4d5,0x0))return!0x0;}return!0x1;function _0x1f551e(_0x5835b0,_0x111b8e,_0x34c033,_0x44a0ce){for(let _0x506d43=_0x44a0ce;_0x506d43<_0x34c033['length'];_0x506d43++){const _0xcfdea8=_0x34c033[_0x506d43];if(_0xcfdea8['type']!==_0x111b8e['type']||_0xcfdea8['author']['id']!==_0x111b8e['author']['id']||_0xcfdea8['subType']!==_0x111b8e['subType'])continue;if(!Pt(_0x111b8e,_0xcfdea8,['groupId']))continue;if('attribute'==_0x111b8e['type']&&_0x111b8e['data']['oldValue']!=_0xcfdea8['data']['oldValue'])continue;if('attribute'==_0x111b8e['type']&&_0x5835b0['_isBlockAttribute'](_0x111b8e['data']['key']))continue;if('formatBlock'==_0x111b8e['type']){const _0x650d56=_0x5835b0['editor']['model'],_0x3ce8bc=_0x111b8e['getContainedElement']();if(_0x3ce8bc&&(_0x650d56['schema']['isObject'](_0x3ce8bc)||_0x650d56['schema']['isLimit'](_0x3ce8bc)))continue;}const _0x3ef6e3=_0x5bb347['get'](_0x111b8e),_0x429022=_0x267909['get'](_0x111b8e),_0x109581=_0x267909['get'](_0xcfdea8),_0x3f8be8=_0x111b8e['commentThread']&&_0x111b8e['commentThread']['length'],_0x105987=_0xcfdea8['commentThread']&&_0xcfdea8['commentThread']['length'];if(!_0x3f8be8&&_0x3ef6e3(_0x109581,_0x429022))return _0x5835b0['_joinSuggestions'](_0xcfdea8,_0x111b8e),_0x267909['delete'](_0x111b8e),!0x0;if(!_0x105987&&_0x3ef6e3(_0x429022,_0x109581))return _0x5835b0['_joinSuggestions'](_0x111b8e,_0xcfdea8),_0x267909['delete'](_0xcfdea8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1a752e,_0x4d2dc5){if(_0x1a752e['isMultiRange']){for(const _0x594d6d of _0x4d2dc5['getRanges']())_0x1a752e['addRange'](_0x594d6d);}else{const _0x3d91b7=_0x4d2dc5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1a752e,this['_model']['createRange'](_0x1a752e['getFirstRange']()['start'],_0x3d91b7));}_0x4d2dc5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x379dc6,_0x1aa66d){const _0x246008=_0x379dc6['startsWith']('format')||_0x379dc6['startsWith']('attribute')?'FORMATTING':_0x379dc6['toUpperCase']();return o(this['editor']['locale'],_0x1aa66d+'_'+_0x246008+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0xa1487c=this['editor'];if(!_0xa1487c['ui'])return;const {ariaLiveAnnouncer:_0x3b2e0e}=_0xa1487c['ui'];_0x383e54(this['_model'],({left:_0x59394c,entered:_0x55e254})=>{for(const _0x546ec5 of _0x59394c){const {group:_0x57aa84,type:_0x5df995}=this['_splitMarkerName'](_0x546ec5['name']);if('suggestion'===_0x57aa84){_0x3b2e0e['announce'](this['_getMarkerAnnouncementText'](_0x5df995,'LEAVE'));break;}}for(const _0x20bdad of _0x55e254){const {group:_0x2c50b5,type:_0x243864}=this['_splitMarkerName'](_0x20bdad['name']);if('suggestion'===_0x2c50b5){_0x3b2e0e['announce'](this['_getMarkerAnnouncementText'](_0x243864,'ENTER'));break;}}});}['_processAttributeChanges'](_0x2fc5f0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x44efac=this['editor'],_0x3ebc82=_0x44efac['model']['document']['differ']['getChanges']();if(0x0==_0x3ebc82['length'])return!0x1;const _0x541486=[],_0x36e373=_0x3ebc82['filter'](_0x5c5720=>'attribute'==_0x5c5720['type']),_0x1edae5=_0x3ebc82['filter'](_0x2d4b45=>'insert'==_0x2d4b45['type']&&'$text'!=_0x2d4b45['name']),_0x42414d=_0x3ebc82['filter'](_0xb0a4a3=>'remove'==_0xb0a4a3['type']&&'$text'!=_0xb0a4a3['name']);for(const _0x1c7770 of _0x36e373)_0x541486['push']({'key':_0x1c7770['attributeKey'],'newValue':_0x1c7770['attributeNewValue'],'oldValue':_0x1c7770['attributeOldValue'],'range':Ot(_0x1c7770['range'],_0x44efac['model'])});for(const _0x944a63 of _0x1edae5){const _0x38a53e=_0x42414d['find'](_0x56889b=>_0x56889b['position']['isEqual'](_0x944a63['position']));_0x38a53e&&_0x541486['push']({'key':m,'newValue':_0x944a63['name'],'oldValue':_0x38a53e['name'],'range':_0x44efac['model']['createRangeOn'](_0x944a63['position']['nodeAfter'])});}return 0x0!=_0x541486['length']&&this['_reduceExistingSuggestions'](_0x2fc5f0,_0x541486);}['_processAttributeSuggestions'](_0x30f270){let _0x3c9b25=!0x1;const _0x28e7e9=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xb59076=>_0xb59076['data']['newRange']&&_0xb59076['name']['startsWith']('suggestion:attribute:'));for(const _0x207ae2 of _0x28e7e9){const {subType:_0x37a4d2,id:_0x167596}=this['_splitMarkerName'](_0x207ae2['name']),_0x365efc=_0x37a4d2['split']('|')[0x0];for(const _0x177702 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x177702['id']!=_0x167596&&'attribute'==_0x177702['type']&&_0x177702['data']&&_0x177702['data']['key']==_0x365efc&&_0x177702['getFirstRange']()['isIntersecting'](_0x207ae2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x177702,_0x207ae2['data']['newRange'],_0x30f270),_0x3c9b25=!0x0);}return _0x3c9b25;}['_recordAttributeChanges'](_0x1a0180){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1a0180();}['_isRegisteredAttribute'](_0x438e8d){const _0x31ac4a=this['_isBlockAttribute'](_0x438e8d),_0x371e17=this['_inlineAttributeKeys']['has'](_0x438e8d);return _0x31ac4a||_0x371e17;}['_reduceExistingSuggestions'](_0x3df004,_0x53ff12){if(0x0==_0x53ff12['length'])return!0x1;let _0x257c73=!0x1;for(const _0x3b3daf of _0x53ff12){const _0x53e679=this['_findSuggestions'](_0x3b3daf['range'],'attribute')['filter'](_0x5a7081=>!_0x5a7081['meta']['isNextTo'])['map'](_0x3ec26e=>_0x3ec26e['suggestion']),_0x85f5b1=_0x2794a3({'newValue':_0x3b3daf['newValue']});_0x53e679['filter'](_0x2ec2=>{const [_0xb644e8,_0x46326a]=_0x2ec2['subType']['split']('|');return _0xb644e8==_0x3b3daf['key']&&_0x46326a!=_0x85f5b1;})['forEach'](_0x43b94b=>{this['_reduceSuggestionAttributeRange'](_0x43b94b,_0x3b3daf['range'],_0x3df004),_0x257c73=!0x0;});}return _0x257c73;}['_reduceSuggestionAttributeRange'](_0x5a7f69,_0x5b6507,_0x372833){const _0xa764a2=_0x5a7f69['getFirstRange']()['getDifference'](_0x5b6507);0x0!==_0xa764a2['length']?0x1!==_0xa764a2['length']?this['_breakSuggestionMarker'](_0x5a7f69,_0x5b6507['start'],_0x5b6507['end']):this['_setSuggestionRange'](_0x5a7f69,_0xa764a2[0x0]):_0x372833['removeMarker'](_0x5a7f69['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4ab8c9){this['_editor']=_0x4ab8c9,this['_model']=_0x4ab8c9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x16fe44,_0x122948,_0x3fef54,_0x3afad9,_0x5d8e9f,_0x28684b){return new u(this['_model'],{'type':_0x16fe44,'subType':_0x122948,'id':_0x3fef54,'author':_0x3afad9,'creator':_0x3afad9,'attributes':_0x5d8e9f,'onAttributesChange':_0x28684b,'onAccept':(..._0x3dd58b)=>this['getSuggestionCallback'](_0x16fe44,_0x122948,'accept')(..._0x3dd58b),'onDiscard':(..._0x520184)=>this['getSuggestionCallback'](_0x16fe44,_0x122948,'discard')(..._0x520184)});}['registerCustomCallback'](_0x143429,_0x4b10d3,_0x5c6267,_0xad873c){const _0x40af03=_0x143429+':'+_0x4b10d3+':'+_0x5c6267;this['_customCallbacks']['set'](_0x40af03,_0xad873c);}['getSuggestionCallback'](_0x1b09eb,_0x4fe76d,_0x48f3f6){const _0x1c776b=_0x1b09eb+':'+_0x4fe76d+':'+_0x48f3f6;return this['_customCallbacks']['get'](_0x1c776b)||this['_defaultCallbacks']['get'](_0x1b09eb+':'+_0x48f3f6);}['_registerDefaultCallbacks'](){const _0x4aa2c6=()=>!0x1,_0x180dc2=_0x5b148a=>{_0x5b148a['sort']((_0x46e889,_0x1e9b40)=>_0x46e889['start']['isBefore'](_0x1e9b40['start'])?0x1:-0x1),this['_model']['change'](_0x5181cf=>{for(const _0x5aae8b of _0x5b148a){let _0x4d1c08;_0x4d1c08=_0x5aae8b['end']['isAtEnd']&&_0x5aae8b['end']['parent']==_0x5aae8b['start']['nodeAfter']?_0x5181cf['createSelection'](_0x5aae8b['start']['nodeAfter'],'on'):_0x5181cf['createSelection'](_0x5aae8b),this['_model']['deleteContent'](_0x4d1c08,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x426510=(_0x8b6163,_0x3021b3)=>{_0x3021b3&&this['_model']['change'](_0x2157d1=>{const {commandName:_0x4299db,commandParams:_0x9ea676=[]}=_0x3021b3,_0x4b7639=_0x8b6163['map'](_0x54fe08=>(Tt(_0x54fe08)&&(_0x54fe08=this['_model']['createRange'](_0x54fe08['end'])),_0x54fe08))['filter'](_0x29f028=>'$graveyard'!==_0x29f028['root']['rootName']);if(_0x4b7639['length']<0x1)return;const _0x2073d3=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x18b482=>_0x264ebf['fromRange'](_0x18b482));_0x2157d1['setSelection'](_0x4b7639);for(const _0x1201f5 of this['_editor']['commands']['commands']())_0x1201f5['refresh']();_0x9ea676['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4299db,..._0x9ea676);const _0x111676=_0x2073d3['filter'](_0x27ae73=>'$graveyard'!=_0x27ae73['root']['rootName']);_0x111676['length']>0x0&&_0x2157d1['setSelection'](_0x111676);for(const _0x49f69c of _0x2073d3)_0x49f69c['detach']();});},_0x2b167f=(_0x58a22c,_0x401924)=>0x1==_0x58a22c['length']&&0x1==_0x401924['length']&&_0x58a22c[0x0]['end']['isEqual'](_0x401924[0x0]['start']),_0x1945c0=(_0x331e2e,_0x54d11f,_0x35e7a0,_0x52676b)=>Gt(_0x331e2e,_0x54d11f,_0x35e7a0,_0x52676b,this['_model'])?[_0x331e2e,_0x54d11f]:Gt(_0x54d11f,_0x331e2e,_0x52676b,_0x35e7a0,this['_model'])?[_0x54d11f,_0x331e2e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4aa2c6),this['_defaultCallbacks']['set']('insertion:discard',_0x180dc2),this['_defaultCallbacks']['set']('insertion:join',_0x2b167f),this['_defaultCallbacks']['set']('insertion:chain',_0x1945c0),this['_defaultCallbacks']['set']('deletion:accept',_0x180dc2),this['_defaultCallbacks']['set']('deletion:discard',_0x4aa2c6),this['_defaultCallbacks']['set']('deletion:join',_0x2b167f),this['_defaultCallbacks']['set']('deletion:chain',_0x1945c0),this['_defaultCallbacks']['set']('formatInline:accept',_0x426510),this['_defaultCallbacks']['set']('formatInline:discard',_0x4aa2c6),this['_defaultCallbacks']['set']('formatInline:join',_0x2b167f),this['_defaultCallbacks']['set']('formatInline:chain',_0x4aa2c6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x426510),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4aa2c6),this['_defaultCallbacks']['set']('formatBlock:join',_0x2b167f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4aa2c6),this['_defaultCallbacks']['set']('attribute:accept',_0x4aa2c6),this['_defaultCallbacks']['set']('attribute:discard',(_0x23c93c,_0x1c3690)=>{if(!_0x1c3690)return;const _0x4f3f3e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5c3ad5=>{if(_0x1c3690['key']==m)for(const _0x8d9b31 of _0x23c93c){const _0xb28a38=_0x8d9b31['start']['nodeAfter'],_0x955cfb=_0x1c3690['oldValue'];_0x5c3ad5['rename'](_0xb28a38,_0x955cfb);}else{if(_0x4f3f3e['_isBlockAttribute'](_0x1c3690['key'])){for(const _0x327833 of _0x23c93c)void 0x0!==_0x1c3690['oldValue']?_0x5c3ad5['setAttribute'](_0x1c3690['key'],_0x1c3690['oldValue'],_0x327833['start']['nodeAfter']):_0x5c3ad5['removeAttribute'](_0x1c3690['key'],_0x327833['start']['nodeAfter']);}else{for(const _0x1f95dd of _0x23c93c)_0x1c3690['oldValue']?_0x5c3ad5['setAttribute'](_0x1c3690['key'],_0x1c3690['oldValue'],_0x1f95dd):_0x5c3ad5['removeAttribute'](_0x1c3690['key'],_0x1f95dd);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2b167f);}}function Rt(_0x552d6c,_0x447198,_0x4ebdbc){for(const _0x49f248 of _0x447198['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x49f248['root']==_0x49f248)return!0x1;if(!_0x4ebdbc['containsItem'](_0x49f248))return!0x1;if(_0x552d6c['isObject'](_0x49f248)||_0x552d6c['isLimit'](_0x49f248))return!0x0;}return!0x1;}function Tt(_0x279b32){return _0x279b32['end']['parent']==_0x279b32['start']['nodeAfter']&&_0x279b32['end']['isAtStart'];}function Et(_0x330b83,_0x4c416b,_0x544632,_0x38f026){const _0x3a73e0=_0x1d7d46=>!_0x1d7d46['item']['is']('$textProxy')&&!_0x38f026['isObject'](_0x1d7d46['item']),_0x3032b8=_0x330b83['start']['getLastMatchingPosition'](_0x3a73e0),_0x2a0828=_0x330b83['end']['getLastMatchingPosition'](_0x3a73e0,{'direction':'backward'});return(!_0x330b83['start']['isEqual'](_0x3032b8)||!_0x330b83['end']['isEqual'](_0x2a0828))&&(_0x3032b8['isBefore'](_0x2a0828)?_0x544632['updateMarker'](_0x4c416b,{'range':_0x544632['createRange'](_0x3032b8,_0x2a0828)}):_0x544632['removeMarker'](_0x4c416b),!0x0);}function Vt(_0x3fa3a9){return _0x2794a3(_0x3fa3a9);}function Ut(_0x469313){const _0x389fdf=_0x469313['start']['nodeAfter'];return _0x389fdf&&_0x389fdf['is']('element');}function Ot(_0xe7bac7,_0x1bce5f){return null==_0xe7bac7['end']['nodeBefore']&&_0xe7bac7['end']['parent']==_0xe7bac7['start']['nodeAfter']?Ft(_0xe7bac7['start']['nodeAfter'],_0x1bce5f):_0xe7bac7;}function Ft(_0x4707d4,_0x142f85){const _0x1397af=_0x142f85['schema']['isObject'](_0x4707d4)||_0x142f85['schema']['isSelectable'](_0x4707d4);return _0x142f85['createRange'](_0x142f85['createPositionAt'](_0x4707d4,'before'),_0x1397af?_0x142f85['createPositionAfter'](_0x4707d4):_0x142f85['createPositionAt'](_0x4707d4,'end'));}function Gt(_0x5a00f2,_0x36fcd4,_0x4b7f6a,_0x5e2c04,_0x58c5fc){if(!Pt(_0x5a00f2,_0x36fcd4))return!0x1;if(_0x4b7f6a['end']['isEqual'](_0x5e2c04['start']))return!0x0;if(_0x5a00f2['type']!=_0x36fcd4['type'])return!0x1;if(!_0x4b7f6a['end']['isTouching'](_0x5e2c04['start']))return!0x1;const _0xd17f6d=_0x58c5fc['createRange'](_0x4b7f6a['end'],_0x5e2c04['start'])['getWalker']();for(const _0x45f792 of _0xd17f6d)if(['elementStart','elementEnd']['includes'](_0x45f792['type'])&&_0x58c5fc['schema']['isLimit'](_0x45f792['item']))return!0x1;return!0x0;}function Pt(_0x5410de,_0xe4a435,_0x5ea225=[]){return!(!_0x5410de['_isDataLoaded']||!_0xe4a435['_isDataLoaded'])&&_0x48fe0(Bt(_0x5410de['attributes'],_0x5ea225),Bt(_0xe4a435['attributes'],_0x5ea225));}function Lt(_0x200fab,_0x66ba95){const _0x341740=Ht(_0x200fab['attributes']),_0xea025=Ht(_0x66ba95);if(!_0x200fab['_isDataLoaded'])return!0x1;for(const _0x4df40d of Object['keys'](_0xea025))if(!_0x48fe0(_0x341740[_0x4df40d],_0xea025[_0x4df40d]))return!0x1;return!0x0;}function Ht(_0x50ec5f){const _0x419d24=Object['assign']({},_0x50ec5f);return delete _0x419d24['skipNestingCheck'],delete _0x419d24['tablePasteChainId'],_0x419d24;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x321ac2(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2ae1f2,_0x329ec0,_0x1c7cde,_0x474cbf){super(),this['model']=_0x329ec0,this['view']=_0x1c7cde,this['commentThreadController']=_0x474cbf,this['_editor']=_0x2ae1f2,this['_acceptCommand']=_0x2ae1f2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2ae1f2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x14bf83,_0x38caf9)=>_0x14bf83||_0x38caf9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x46a1d1=>_0x46a1d1&&this['_editor']['model']['canEditAt'](_0x329ec0['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x35fe0d=>_0x35fe0d&&this['_editor']['model']['canEditAt'](_0x329ec0['getRanges']())),this['_pendingAction']=null,_0x1c7cde['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1c7cde,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1c7cde,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1c7cde,'change:isDirty',()=>{_0x1c7cde['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 _0x7e88b7=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x7e88b7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x40d4ce{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x598374,_0x51e795,_0x100211,_0x5df0b9){super(_0x598374),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x51e795['authoredAt']),this['bind']('authoredAt')['to'](_0x51e795),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x51e795,this['_localUser']=_0x100211,this['_config']=_0x5df0b9,_0x5df0b9['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:_0x567887}=this['_config'];this['commentsListView']=new _0x567887(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',_0x50d421=>_0x50d421+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5539ef,_0x4224e4)=>_0x5539ef||!!_0x4224e4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x55926a}=this['_config'],_0x29b92b=new _0x55926a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x52960f=_0x29b92b['commentInputView'];return _0x29b92b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x52960f,'value',(_0x1f422e,_0x55cd16,_0x400a1c)=>!!_0x400a1c||_0x1f422e&&!_0x55cd16),_0x52960f['on']('submit',(_0x55c8ec,_0x30732b)=>{this['fire']('addComment',_0x30732b),_0x52960f['editor']['setData']('');}),_0x52960f['on']('cancel',()=>this['focus']()),_0x52960f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x29b92b;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x4fcc97,_0x9a67ba,_0x262cf4,_0x1790ed){super(_0x4fcc97,_0x9a67ba,_0x262cf4,_0x1790ed),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2d9228=>_0x2d9228&&_0x2d9228[0x0]?_0x2d9228[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x38cc6b,_0x547cae)=>{let _0x15cc9d='';for(const _0x56a9af of _0x38cc6b)_0x15cc9d+='<p>'+ds(_0x56a9af['content'],_0x56a9af['color'])+'</p>';return _0x547cae?_0x15cc9d:_0x1f4ec3(_0x15cc9d,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x4fcc97,'Accept\x20suggestion'),_0x3e8e25['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x4fcc97,'Discard\x20suggestion'),_0x3e8e25['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x1f4be5(_0x4fcc97,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4e5e6a=this['bindTemplate'],_0x487d38=[{'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':_0x4e5e6a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4e5e6a['to']('authoredAt',_0xf2b448=>this['_config']['formatDateTime'](_0xf2b448))}]}]},{'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']&&_0x487d38['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x3e15a1={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4e5e6a['if']('isActive','ck-suggestion-wrapper--active'),_0x4e5e6a['to']('type',_0x8af933=>'ck-suggestion-'+_0x8af933),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':_0x487d38}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x3e15a1['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)),_0x3e15a1;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x289bc2,_0x4ace89,_0x9f939d)=>{this['_descriptionElement']['innerHTML']=_0x9f939d;});}['_createButton'](_0x2224c8,_0x521d39,_0xebdb18,_0xa9ed30,_0x42e901){const _0x525628=new _0xb5ad75(this['locale']);return _0x525628['set']({'label':_0x2224c8,'icon':_0x521d39,'tooltip':!0x0,'tooltipPosition':_0x42e901}),_0x525628['extendTemplate']({'attributes':{'class':_0xebdb18}}),_0x525628['on']('execute',()=>{this['fire'](_0xa9ed30,this['_model']['id']);}),_0x525628;}['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(_0x5ed924,_0x248042){let _0x5f5c9f='';return _0x5f5c9f+=_0x5ed924['split']('*')['map']((_0x56170c,_0x2c0c6c)=>_0x2c0c6c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x56170c)+'</span>':us(_0x56170c))['join'](''),_0x248042&&(_0x5f5c9f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x248042['value']+'\x22\x20title=\x22'+_0x248042['title']+'\x22></span>'),_0x5f5c9f;}function us(_0x3e9ccc){const _0x4d7b0c=document['createElement']('span');return _0x4d7b0c['innerText']=_0x3e9ccc,_0x4d7b0c['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 _0x576da6{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4e52c7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x39ecc9){super(_0x39ecc9),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xb59443=this['editor']['config'];_0xb59443['define']('trackChanges.SuggestionThreadView',ne),_0xb59443['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xb59443['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x46e5d5,_0x12d673){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4a820f,_0x3b2a1b]of this['_handleControllerBuffer']){const _0x2d3f0d=this['_suggestionToController']['has'](_0x4a820f);_0x2d3f0d||_0x3b2a1b?_0x2d3f0d&&_0x3b2a1b&&this['_destroyController'](_0x4a820f):this['_initializeController'](_0x4a820f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x46e5d5,_0x12d673);}['init'](){const _0xbfc887=this['editor'],_0x5b4428=_0xbfc887['plugins']['get']('TrackChangesEditing'),_0x1ca55d=_0xbfc887['plugins']['get']('Annotations'),_0x3d874c=_0xbfc887['plugins']['get']('EditorAnnotations'),_0x2308cc=_0xbfc887['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3d874c['addSourceCollector'](()=>{const _0x40da49=[];for(const [_0x40e3fd,_0x202993]of Array['from'](this['_suggestionToController'])){const _0x748d6d=_0x40e3fd['getAllAdjacentSuggestions'](),_0x40a5d2=[];for(const _0x47a441 of _0x748d6d){if(!_0x47a441['isInContent'])continue;if(_0x47a441['isMultiRange']){_0x40a5d2['push'](..._0x47a441['getRanges']());continue;}const _0x1944c0=_0x47a441['getFirstRange']();if(_0x40a5d2['length']>0x0){const _0x90b245=_0x40a5d2[0x0]['getJoined'](_0x1944c0);if(_0x90b245){_0x40a5d2[0x0]=_0x90b245;continue;}}_0x40a5d2['push'](_0x1944c0);}_0x40da49['push']([_0x202993['view'],_0x40a5d2]);}return _0x40da49;}),this['listenTo'](_0x5b4428,'suggestionLoaded',(_0x4053ab,_0x5d1069)=>{this['listenTo'](_0x5d1069,'change:previous',(_0x31eed2,_0x437117,_0x5eccc2,_0x53c9f4)=>{_0x5d1069['isInContent']&&(null==_0x5eccc2?(this['_updateController'](_0x53c9f4['head']),this['_handleSuggestionControllerDelayed'](_0x5d1069,!0x1)):(this['_updateController'](_0x5eccc2['head']),null==_0x53c9f4&&this['_handleSuggestionControllerDelayed'](_0x5d1069,!0x0)));}),null!==_0x5d1069['previous']?this['_updateController'](_0x5d1069['head']):this['_handleSuggestionControllerDelayed'](_0x5d1069,!0x1);}),this['listenTo'](_0x5b4428,'suggestionUnloaded',(_0x24c934,_0x3a038a,_0x5d2f27)=>{this['stopListening'](_0x3a038a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3a038a),this['_suggestionToController']['has'](_0x3a038a)&&this['_destroyController'](_0x3a038a),_0x5d2f27&&this['_updateController'](_0x5d2f27['head']);}),this['listenTo'](_0x5b4428,'suggestionChanged',(_0x46b5c1,_0x378ae6)=>{this['_updateController'](_0x378ae6);}),this['listenTo'](_0x1ca55d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2308cc,'addComment',(_0x40f68f,{threadId:_0x5a92a2,isFromAdapter:_0x8f3ad7})=>{if(_0x8f3ad7||!_0x5b4428['hasSuggestion'](_0x5a92a2))return;const _0x3c13a1=_0x5b4428['getSuggestion'](_0x5a92a2);this['_suggestionToController']['get'](_0x3c13a1)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x705c2a=this['editor']['plugins']['get']('Annotations'),_0x945ee2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x323f6b=Array['from'](_0x705c2a['activeAnnotations'],_0x21ce07=>_0x21ce07['innerView'])['filter'](_0x44e331=>this['_viewToController']['has'](_0x44e331)),_0x1d1ee9=[];for(const _0x53d033 of _0x323f6b){const _0x59f3c9=this['_viewToController']['get'](_0x53d033)['model']['getAllAdjacentSuggestions']();_0x1d1ee9['push'](..._0x59f3c9['reduce']((_0x321b0d,_0x133417)=>[..._0x321b0d,..._0x133417['getMarkerNames']()],[]));}_0x945ee2['activeMarkers']=_0x1d1ee9;}['_addUIComponentsToFactory'](){const _0x17a0e7=this['editor'],_0x190f8d=_0x17a0e7['locale'],_0x57c152=o(_0x190f8d,'Track\x20changes'),_0x42ee6a=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x57c152,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x190f8d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x190f8d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x190f8d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x190f8d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x57ce14 of _0x42ee6a)if(ae(_0x57ce14)){const _0x208cc8=_0x17a0e7['commands']['get'](_0x57ce14['model']['commandName']);_0x57ce14['model']['bind']('isOn','isEnabled')['to'](_0x208cc8,'value','isEnabled');}_0x17a0e7['ui']['componentFactory']['add']('trackChanges',_0xdb6d9d=>this['_createToolbarButton'](_0xdb6d9d,_0x42ee6a,_0x57c152)),_0x17a0e7['ui']['componentFactory']['add']('menuBar:trackChanges',_0x58f86a=>this['_createMenuBarMenu'](_0x58f86a,_0x42ee6a,_0x57c152));}['_createToolbarButton'](_0x113117,_0x1e33d9,_0x80c28){const _0x250cfc=zt(_0x113117,Zt),_0x168950=this['editor']['commands']['get']('trackChanges');_0x250cfc['buttonView']['set']({'tooltip':_0x80c28,'label':_0x80c28,'icon':ie}),_0x250cfc['buttonView']['bind']('isOn')['to'](_0x168950,'value'),_0x250cfc['buttonView']['on']('execute',()=>{_0x168950['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x250cfc,_0x1e33d9,{'role':'menu'});const _0x138c8d=[];for(const _0x24dcaa of _0x1e33d9)ae(_0x24dcaa)&&_0x138c8d['push'](this['editor']['commands']['get'](_0x24dcaa['model']['commandName']));const _0x321718=_0x250cfc['buttonView'];return _0x321718['actionView']['unbind']('isEnabled'),_0x321718['arrowView']['unbind']('isEnabled'),_0x321718['actionView']['bind']('isEnabled')['to'](_0x168950,'isEnabled'),_0x321718['arrowView']['bind']('isEnabled')['toMany'](_0x138c8d,'isEnabled',(..._0x31b717)=>_0x31b717['some'](_0x4ee307=>_0x4ee307)),_0x250cfc['on']('execute',_0x2f6330=>{this['editor']['execute'](_0x2f6330['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x250cfc;}['_createMenuBarMenu'](_0x17c6e9,_0x3e769f,_0x366510){const _0x459e5a=new Kt(_0x17c6e9),_0x580bbb=this['editor']['commands']['get']('trackChanges');_0x459e5a['buttonView']['set']({'label':_0x366510,'icon':ie});const _0x58d1a3=new Qt(_0x17c6e9);for(const _0x4c5e03 of _0x3e769f){if('separator'==_0x4c5e03['type']){_0x58d1a3['items']['add'](new Jt(_0x17c6e9));continue;}const _0x6a7b4c=new Xt(_0x17c6e9,_0x459e5a),_0x11ddaf=new Yt(_0x17c6e9),_0x31bbaa=_0x4c5e03['model'];_0x11ddaf['bind'](...Object['keys'](_0x31bbaa))['to'](_0x31bbaa),_0x11ddaf['delegate']('execute')['to'](_0x459e5a),_0x11ddaf['on']('execute',()=>{this['editor']['execute'](_0x31bbaa['commandName']),this['editor']['editing']['view']['focus']();}),_0x6a7b4c['children']['add'](_0x11ddaf),_0x58d1a3['items']['add'](_0x6a7b4c);}return _0x459e5a['bind']('isEnabled')['to'](_0x580bbb,'isEnabled'),_0x459e5a['panelView']['children']['add'](_0x58d1a3),_0x459e5a;}['_initializeController'](_0xaccbf4){const _0x101c02=this['editor'],_0x329c25=_0x101c02['config'],_0xee7a7e=_0x101c02['plugins']['get']('Annotations'),_0x3ad264=_0x101c02['plugins']['get']('CommentsRepository'),_0x34529b=_0x101c02['plugins']['get']('EditorAnnotations'),_0x2cf5ec=_0x101c02['plugins']['get'](_0x4e52c7)['me'],_0x1136a5=_0x329c25['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4087d3,CommentThreadInputView:_0x5cd7d2}=_0x101c02['plugins']['get']('CommentsUI');let _0x3d4955,_0x4161b3;this['_annotationViews']['has'](_0xaccbf4['id'])?(_0x4161b3=this['_annotationViews']['get'](_0xaccbf4['id']),_0x3d4955=_0x4161b3['mainView']):(_0x3d4955=new _0x1136a5(_0x101c02['locale'],_0xaccbf4,_0x2cf5ec,{'disableComments':this['_disableComments'],'editorConfig':_0x329c25['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x329c25['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x329c25['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x329c25['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5acded(_0x329c25['get']('locale')),'CommentView':_0x329c25['get']('comments')['CommentView'],'CommentsListView':_0x4087d3,'CommentThreadInputView':_0x5cd7d2}),_0x3d4955['acceptButton']['on']('execute',()=>{_0x101c02['editing']['view']['focus']();}),_0x3d4955['discardButton']['on']('execute',()=>{_0x101c02['editing']['view']['focus']();}),_0x4161b3=_0xee7a7e['createAnnotationView'](this['editor']['locale'],_0x3d4955),_0x4161b3['bind']('isDirty')['to'](_0x3d4955,'isDirty'),_0x4161b3['bind']('length')['to'](_0x3d4955),_0x4161b3['bind']('type')['to'](_0x3d4955,'type',_0x233c84=>'suggestion-'+_0x233c84),this['_annotationViews']['set'](_0xaccbf4['id'],_0x4161b3));const _0xf8dee5=_0x3ad264['createCommentThreadController'](_0xaccbf4['commentThread'],_0x3d4955),_0x2785be=new oe(_0x101c02,_0xaccbf4,_0x3d4955,_0xf8dee5),_0x3713c3=_0xaccbf4['getAllAdjacentSuggestions']()['filter'](_0xc9ea6d=>_0xc9ea6d['isInContent']);_0x3d4955['descriptionParts']=_0x101c02['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3713c3),this['_suggestionToController']['set'](_0xaccbf4,_0x2785be),this['_viewToController']['set'](_0x3d4955,_0x2785be);const _0x284038=_0xee7a7e['createAnnotation']({'view':_0x4161b3,'target':()=>{const _0x458385=[],_0x295685=_0xaccbf4['getAllAdjacentSuggestions']()['filter'](_0x5ac57f=>_0x5ac57f['isInContent']);for(const _0x3882bf of _0x295685)_0x458385['push'](..._0x3882bf['getMarkers']());return _0x3ac457(_0x101c02['editing'],_0x458385);},'type':()=>'suggestion-'+_0x2785be['view']['type']});_0x3ad264['_bindAnnotationToEditors'](_0x3d4955,_0x284038),_0xee7a7e['add'](_0x284038),_0x34529b['registerAnnotation'](_0x284038);}['_destroyController'](_0xb234e0){const _0x1e5b6b=this['editor']['plugins']['get']('CommentsRepository'),_0x719987=this['editor']['plugins']['get']('Annotations'),_0x54dcc0=this['_suggestionToController']['get'](_0xb234e0),_0x423fab=_0x54dcc0['view'],_0xe267d3=_0x719987['getByInnerView'](_0x423fab);_0x1e5b6b['_unbindEditors'](_0x423fab),_0xe267d3&&_0x719987['remove'](_0xe267d3),this['_suggestionToController']['delete'](_0xb234e0),this['_viewToController']['delete'](_0x423fab),_0x54dcc0['destroy']();}['_updateController'](_0x544f1a){if(!_0x544f1a['isInContent']||!this['_suggestionToController']['has'](_0x544f1a))return;const _0x1bc1ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x120708=this['_suggestionToController']['get'](_0x544f1a),_0x5a0bf6=_0x544f1a['getAllAdjacentSuggestions']();_0x120708['view']['descriptionParts']=_0x1bc1ae['descriptionFactory']['getDescriptions'](_0x5a0bf6);}['destroy'](){for(const _0x405afe of this['_suggestionToController']['keys']())this['_destroyController'](_0x405afe);for(const _0x11ec48 of this['_annotationViews']['values']())_0x11ec48['mainView']['destroy']();super['destroy']();}}function ae(_0x518aa7){return'model'in _0x518aa7;}class k extends _0x576da6{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2f2210){this['editor']['plugins']['get'](p)['adapter']=_0x2f2210;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5077f2){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5077f2);}['getSuggestions']({skipNotAttached:_0x40e9f0=!0x1,toJSON:_0x550f9d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x40e9f0,'toJSON':_0x550f9d});}['getSuggestion'](_0x15c66e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x15c66e);}}const T=['Pagination'];class P extends _0x576da6{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x17f660=this['editor'];if(_0x17f660['config']['define']('trackChangesData.editorCreator',_0x3ce718=>{const _0x2bbd7c=_0x17f660['model']['document']['getRootNames']()['reduce']((_0x130cc5,_0x59d1db)=>(_0x130cc5[_0x59d1db]='',_0x130cc5),{});return _0x17f660['constructor']['create'](_0x2bbd7c,_0x3ce718);}),'function'!=typeof _0x17f660['config']['get']('trackChangesData')['editorCreator'])throw new _0xdf6052('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x54e43c){return N(this['editor'],!0x0,_0x54e43c);}['getDataWithDiscardedSuggestions'](_0xa6f066){return N(this['editor'],!0x1,_0xa6f066);}}class D extends _0x576da6{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x47525b){super(_0x47525b),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(_0x3aba4b){return void 0x0!==_0x3aba4b['getRootsAttributes'];}async function N(_0x19c59b,_0xeed546,_0x202ba4){const _0x3952d6=_0xc6a1f9(_0x19c59b,T);_0x3952d6['plugins']['push'](p,D),_0x3952d6['rootsAttributes']=v(_0x19c59b)?_0x19c59b['getRootsAttributes']():void 0x0;const _0x2cf69f=document['createDocumentFragment'](),_0x3de6f6=_0x19c59b['config']['get']('trackChangesData')['editorCreator'],_0x460134=await _0x3de6f6(_0x3952d6,()=>function(_0x4b9f6a){const _0x5c551a=document['createElement']('div');return _0x4b9f6a['appendChild'](_0x5c551a),_0x5c551a;}(_0x2cf69f));!function(_0x2c62bc,_0x44fb78){const _0x54a1cd=_0x2c62bc['model']['document']['getRootNames']()['reduce']((_0x22f7e3,_0x4bbf42)=>(_0x22f7e3[_0x4bbf42]=_0x2c62bc['data']['get']({'rootName':_0x4bbf42}),_0x22f7e3),{}),_0x19f522=_0x2c62bc['plugins']['get']('Users')['users']['map'](_0x336f0b=>({'id':_0x336f0b['id'],'name':_0x336f0b['name']})),_0x4da583=_0x2c62bc['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x57eb54=_0x2c62bc['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x58d6a5=_0x44fb78['plugins']['get']('Users'),_0x1e99d0=_0x44fb78['plugins']['get']('TrackChangesEditing'),_0x11cc6b=_0x44fb78['plugins']['get']('CommentsRepository');for(const _0x4320b1 of _0x19f522)_0x58d6a5['getUser'](_0x4320b1['id'])||_0x58d6a5['addUser'](_0x4320b1);_0x58d6a5['me']||_0x58d6a5['useAnonymousUser']();for(const _0x2b4b30 of _0x4da583)_0x1e99d0['addSuggestionData'](_0x2b4b30);for(const _0x5a20aa of _0x57eb54)_0x11cc6b['addCommentThread'](_0x5a20aa);_0x44fb78['data']['set'](_0x54a1cd);}(_0x19c59b,_0x460134),_0x460134['execute'](_0xeed546?'acceptAllSuggestions':'discardAllSuggestions');const _0x511126=v(_0x460134)?_0x460134['getFullData'](_0x202ba4):_0x460134['data']['get'](_0x202ba4);return await _0x460134['destroy'](),_0x511126;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|