@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240606.0 → 0.0.0-nightly-20240607.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
|
-
_0x25b6b8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x56ea3e,_0x355bcd){super(),this['id']=_0x355bcd['id'],this['type']=_0x355bcd['type'],this['subType']=_0x355bcd['subType']||null,this['author']=_0x355bcd['author'],this['creator']=_0x355bcd['creator']||_0x355bcd['author'],this['isExternal']=Boolean(_0x355bcd['attributes']&&_0x355bcd['attributes']['@external']),this['data']=null,this['_model']=_0x56ea3e,this['_onAccept']=_0x355bcd['onAccept'],this['_onDiscard']=_0x355bcd['onDiscard'],this['_onAttributesChange']=_0x355bcd['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x355bcd['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 _0x45f1cc=this;for(;_0x45f1cc['previous'];)_0x45f1cc=_0x45f1cc['previous'];return _0x45f1cc;}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'](_0x55ea9f){this['_markerNames']['add'](_0x55ea9f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5587f1=>this['_model']['markers']['get'](_0x5587f1))['filter'](_0x352285=>_0x352285);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x27200a=>{for(const _0xc36f0d of this['getMarkers']())_0x27200a['removeMarker'](_0xc36f0d);}),this['_markerNames']['clear']();}['removeMarker'](_0x55aa4d){this['_model']['change'](_0x4071b1=>{_0x4071b1['removeMarker'](_0x55aa4d);}),this['_markerNames']['delete'](_0x55aa4d);}['addRange'](_0xd7d40a){const _0x1a276b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1a276b),this['_model']['change'](_0x62a164=>{_0x62a164['addMarker'](_0x1a276b,{'range':_0xd7d40a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x24bd04){for(const _0x573d98 of this['getRanges']())if(_0x573d98['isIntersecting'](_0x24bd04))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5e3f38=>_0x5e3f38['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3d5e0b,_0x13ed2a)=>[..._0x3d5e0b,..._0x13ed2a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x172ed5=this['getRanges']();if(0x1!=_0x172ed5['length'])return null;const _0xe6a910=_0x172ed5[0x0],_0x92f675=_0xe6a910['start']['nodeAfter'],_0x1efde1=_0xe6a910['end']['nodeBefore'];return _0x92f675 instanceof _0x552b4e?_0x92f675!=_0x1efde1?null:_0x92f675: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 _0x247fd0=[];let _0x46e416=this['head'];for(;_0x46e416;)_0x247fd0['push'](_0x46e416),_0x46e416=_0x46e416['next'];return _0x247fd0;}['setAttribute'](_0x344bc6,_0x5e372a){const _0xb620aa=_0x2a62a4(this['attributes']);_0x140076(_0xb620aa,_0x344bc6,_0x5e372a),_0x28458d(_0xb620aa,this['attributes'])||(this['attributes']=_0xb620aa,this['_onAttributesChange'](_0xb620aa));}['removeAttribute'](_0x5dd2bf){const _0x5d87a7=_0x2a62a4(this['attributes']);_0x305d05(_0x5d87a7,_0x5dd2bf),_0x28458d(_0x5d87a7,this['attributes'])||(this['attributes']=_0x5d87a7,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 _0x4db9f9()['substr'](0x1,0x5);}}function o(_0x1028db,_0x63e70b,_0x24f971){const t=_0x1028db['t'];switch(_0x63e70b){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',_0x24f971);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x24f971);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x24f971);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x24f971);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x24f971);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',_0x24f971);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x24f971);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',_0x24f971);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x24f971);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x24f971);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x24f971);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x24f971);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x24f971);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x24f971);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x24f971);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x24f971);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x24f971);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x24f971);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x24f971);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x24f971);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x24f971);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x24f971);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x24f971);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'},_0x24f971);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x24f971);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x24f971);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x24f971);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x24f971);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x24f971);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'},_0x24f971);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x24f971);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x24f971);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x24f971);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x24f971);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'},_0x24f971);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x24f971);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'},_0x24f971);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'},_0x24f971);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x24f971);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'},_0x24f971);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x24f971);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'},_0x24f971);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x24f971);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x24f971);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'},_0x24f971);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'},_0x24f971);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 _0x63e70b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xe50f38,_0x551d16){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xe50f38,this['_locale']=_0x551d16;}['getDescriptions'](_0x5b9d0b){const _0x5cf9b3=[],_0x56da01=new Set(),_0x573ea6=new Set();for(let _0x5b61e7=0x0;_0x5b61e7<_0x5b9d0b['length'];_0x5b61e7++){const _0x430e89=_0x5b9d0b[_0x5b61e7];if(!_0x430e89['isInContent'])continue;const _0x496e6a=this['_handleCustomCallbackDescription'](_0x430e89);if(_0x496e6a){if(null!=_0x430e89['subType']){if(_0x56da01['has'](_0x430e89['subType']))continue;_0x56da01['add'](_0x430e89['subType']);}_0x5cf9b3['push'](_0x496e6a);}else{if('attribute'!=_0x430e89['type'])'insertion'!=_0x430e89['type']&&'deletion'!=_0x430e89['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5cf9b3,_0x430e89,_0x5b9d0b[_0x5b61e7+0x1]);else{const _0x12eded=_0x430e89['data']['key'];if(_0x573ea6['has'](_0x12eded))continue;_0x573ea6['add'](_0x430e89['data']['key']),_0x12eded==m?this['_handleRenameSuggestionDescription'](_0x5cf9b3,_0x430e89):this['_handleAttributeSuggestionDescription'](_0x5cf9b3,_0x430e89);}}}return this['_resolveDescriptionItems'](_0x5cf9b3);}['registerDescriptionCallback'](_0x6091f){this['_customCallbacks']['push'](_0x6091f);}['registerElementLabel'](_0x44fe42,_0x3e6041,_0x37ce4c=_0x1ab629['normal']){'function'==typeof _0x44fe42?_0x253771(this['_itemLabelsCallbacks'],{'matchingCallback':_0x44fe42,'label':_0x3e6041,'priority':_0x37ce4c}):this['_itemLabels']['set'](_0x44fe42,_0x3e6041);}['registerAttributeLabel'](_0x5ed5f3,_0x118ade){this['_attributeLabels']['set'](_0x5ed5f3,_0x118ade);}['getItemLabel'](_0x10e29d,_0x13f27b=0x1){let _0x1e4567;for(const _0x252af4 of this['_itemLabelsCallbacks'])if(_0x252af4['matchingCallback'](_0x10e29d)){_0x1e4567=_0x252af4['label'];break;}return _0x1e4567||(_0x1e4567=this['_itemLabels']['get'](_0x10e29d['name'])),_0x1e4567?_0x1e4567(_0x13f27b):0x1!==_0x13f27b?_0x13f27b+'\x20'+_0x10e29d['name']+'s':''+_0x10e29d['name'];}['_addDescriptionItems'](_0x120ac1,_0x392591){const _0x32044b=_0x392591['getFirstRange']()['getWalker'](),_0x176e98='insertion'==_0x392591['type']?'add':'remove';for(const _0x4ebc0f of _0x32044b){const _0x3e4a47=_0x4ebc0f['item'],_0x58d3de=_0x120ac1[_0x120ac1['length']-0x1];if(_0x3e4a47['is']('$textProxy'))_0x58d3de&&_0x58d3de['type']['indexOf']('Container')>-0x1&&_0x120ac1['pop'](),_0x58d3de&&'text'==_0x58d3de['type']?_0x58d3de[_0x176e98]+=_0x3e4a47['data']:_0x120ac1['push']({'type':'text','add':'add'==_0x176e98?_0x3e4a47['data']:'','remove':'remove'==_0x176e98?_0x3e4a47['data']:''});else{if(this['_schema']['isObject'](_0x3e4a47)){const _0x3d7592=_0x3e4a47;if(_0x58d3de&&_0x58d3de['type']['indexOf']('Container')>-0x1&&_0x120ac1['pop'](),'elementEnd'==_0x4ebc0f['type'])continue;_0x58d3de&&_0x58d3de['type']==_0x176e98+'Object'&&_0x58d3de['element']['name']==_0x3d7592['name']?_0x58d3de['quantity']++:_0x120ac1['push']({'type':_0x176e98+'Object','element':_0x3d7592,'quantity':0x1}),_0x32044b['skip'](_0x5cad98=>!('elementEnd'==_0x5cad98['type']&&_0x5cad98['item']==_0x3e4a47));}else{if(this['_schema']['checkChild'](_0x3e4a47,'$text')||_0x3e4a47['is']('element','softBreak')){const _0x1a2ce3=_0x3e4a47;if('add'==_0x176e98&&'elementStart'==_0x4ebc0f['type']||'remove'==_0x176e98&&'elementEnd'==_0x4ebc0f['type'])continue;if(_0x58d3de&&-0x1==_0x58d3de['type']['indexOf']('Container')){'text'==_0x58d3de['type']&&(_0x58d3de[_0x176e98]+='\x0a');continue;}let _0x8fac18;if(_0x8fac18='add'==_0x176e98?_0x1a2ce3['nextSibling']&&!this['_schema']['isObject'](_0x1a2ce3['nextSibling'])?_0x1a2ce3['nextSibling']:null:_0x1a2ce3['previousSibling']&&!this['_schema']['isObject'](_0x1a2ce3['previousSibling'])?_0x1a2ce3['previousSibling']:null,_0x1a2ce3['isEmpty']||_0x8fac18&&_0x8fac18['isEmpty']){const _0x3055a1=_0x8fac18&&_0x8fac18['isEmpty']?_0x8fac18:_0x1a2ce3;_0x58d3de&&_0x58d3de['type']==_0x176e98+'EmptyContainer'&&_0x58d3de['element']['name']==_0x3055a1['name']?_0x58d3de['quantity']++:_0x120ac1['push']({'type':_0x176e98+'EmptyContainer','element':_0x3055a1,'quantity':0x1});}else _0x120ac1['push']({'type':_0x176e98+'Container','element':_0x1a2ce3});}}}}}['_resolveDescriptionItems'](_0x85fcb5){const _0xe700bb=this['_locale'],_0x4ee715=[],_0x12bb1a=[],_0x161dab=[];for(const _0x9cbdc2 of _0x85fcb5)switch(_0x9cbdc2['type']){case'text':if(_0x9cbdc2['add']=_0x9cbdc2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x9cbdc2['remove']=_0x9cbdc2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x9cbdc2['add']&&''!=_0x9cbdc2['remove']){_0x4ee715['push']({'type':'replace','content':o(_0xe700bb,'REPLACE_TEXT',['\x22'+_0x9cbdc2['remove']+'\x22','\x22'+_0x9cbdc2['add']+'\x22'])});continue;}if(null!=_0x9cbdc2['add']['match'](/^ +$/)){_0x4ee715['push']({'type':'insertion','content':o(_0xe700bb,'*Insert:*\x20%0',o(_0xe700bb,'ELEMENT_SPACE',_0x9cbdc2['add']['length']))});continue;}if(null!=_0x9cbdc2['remove']['match'](/^ +$/)){_0x4ee715['push']({'type':'deletion','content':o(_0xe700bb,'*Remove:*\x20%0',o(_0xe700bb,'ELEMENT_SPACE',_0x9cbdc2['remove']['length']))});continue;}if(''!=_0x9cbdc2['add']){_0x4ee715['push']({'type':'insertion','content':o(_0xe700bb,'*Insert:*\x20%0','\x22'+_0x9cbdc2['add']+'\x22')});continue;}_0x4ee715['push']({'type':'deletion','content':o(_0xe700bb,'*Remove:*\x20%0','\x22'+_0x9cbdc2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4ee715['push']({'type':'insertion','content':o(_0xe700bb,'*Insert:*\x20%0',this['getItemLabel'](_0x9cbdc2['element'],_0x9cbdc2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4ee715['push']({'type':'deletion','content':o(_0xe700bb,'*Remove:*\x20%0',this['getItemLabel'](_0x9cbdc2['element'],_0x9cbdc2['quantity']))});continue;case'addContainer':_0x4ee715['push']({'type':'insertion','content':o(_0xe700bb,'*Split:*\x20%0',this['getItemLabel'](_0x9cbdc2['element'],_0x9cbdc2['quantity']))});continue;case'removeContainer':_0x4ee715['push']({'type':'deletion','content':o(_0xe700bb,'*Merge:*\x20%0',this['getItemLabel'](_0x9cbdc2['element'],_0x9cbdc2['quantity']))});continue;case'addFormat':_0x12bb1a['push'](_0x9cbdc2['key']);continue;case'removeFormat':_0x161dab['push'](_0x9cbdc2['key']);continue;default:_0x4ee715['push'](_0x9cbdc2);}if(_0x12bb1a['length']){const _0x528747=_0x12bb1a['map'](_0xbc3a60=>this['_attributeLabels']['has'](_0xbc3a60)?this['_attributeLabels']['get'](_0xbc3a60):_0xbc3a60)['join'](',\x20');_0x4ee715['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x528747)});}if(_0x161dab['length']){const _0x25a8c9=_0x161dab['map'](_0x2676ff=>this['_attributeLabels']['has'](_0x2676ff)?this['_attributeLabels']['get'](_0x2676ff):_0x2676ff)['join'](',\x20');_0x4ee715['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x25a8c9)});}return _0x4ee715;}['_handleCustomCallbackDescription'](_0x361bff){for(const _0x4ae48b of this['_customCallbacks']){const _0x5e11bd=_0x4ae48b(_0x361bff);if(_0x5e11bd&&'type'in _0x5e11bd)return _0x5e11bd;}}['_handleAttributeSuggestionDescription'](_0x4b2606,_0x9b1c71){const _0x1e2d88=_0x9b1c71['data'],_0xee236c=void 0x0===_0x1e2d88['newValue']?'removeFormat':'addFormat';_0x4b2606['push']({'type':_0xee236c,'key':_0x1e2d88['key']});}['_handleRenameSuggestionDescription'](_0x1336f3,_0x363c3e){_0x1336f3['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x363c3e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x50a34f,_0x1a1432,_0x12a807){if(this['_addDescriptionItems'](_0x50a34f,_0x1a1432),_0x12a807&&_0x12a807['getFirstRange']()&&!_0x1a1432['getFirstRange']()['end']['isEqual'](_0x12a807['getFirstRange']()['start'])){const _0x526de5=_0x50a34f[_0x50a34f['length']-0x1],_0x3fb3fc='insertion'==_0x1a1432['type']?'add':'remove';_0x526de5&&'text'==_0x526de5['type']&&(_0x526de5[_0x3fb3fc]+='\x0a');}}}class E extends _0x13ee14{['afterInit'](){const _0x8aa2ce=this['editor'],_0x51c090=_0x8aa2ce['plugins']['get']('TrackChangesEditing');_0x8aa2ce['commands']['get']('showAIAssistant')&&_0x51c090['enableCommand']('showAIAssistant');}}class V extends _0x13ee14{['afterInit'](){const _0x464c0a=this['editor'],_0x1eb8a9=_0x464c0a['locale'];if(!_0x464c0a['plugins']['has']('AlignmentEditing'))return;const _0x52b13e=_0x464c0a['plugins']['get']('TrackChangesEditing');_0x52b13e['enableDefaultAttributesIntegration']('alignment'),_0x52b13e['registerBlockAttribute']('alignment'),_0x52b13e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1eb8a9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6bce7e=this['editor'],_0x41f7c9=_0x6bce7e['locale'];_0x6bce7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a64dd=>{if('formatBlock'!=_0x3a64dd['type'])return;const {data:_0x1e611c}=_0x3a64dd;if(_0x1e611c&&'alignment'==_0x1e611c['commandName']){const _0x318f24=_0x1e611c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x41f7c9,'*Format:*\x20%0',function(_0x1e853c){switch(_0x1e853c){case'left':return o(_0x41f7c9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x41f7c9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x41f7c9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x41f7c9,'FORMAT_JUSTIFY_TEXT');}}(_0x318f24))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x13ee14{['afterInit'](){const _0x466fd0=this['editor'],_0x1d5f61=_0x466fd0['plugins']['get']('TrackChangesEditing'),_0x450e65=_0x466fd0['locale'];for(const _0x3c63ca of ti){if(!_0x466fd0['plugins']['has'](_0x3c63ca))continue;const _0x40c26d=_0x3c63ca['slice'](0x0,-0x7)['toLowerCase'](),_0x1c9883='FORMAT_'+_0x40c26d['toUpperCase']();_0x1d5f61['enableDefaultAttributesIntegration'](_0x40c26d),_0x1d5f61['registerInlineAttribute'](_0x40c26d),_0x1d5f61['descriptionFactory']['registerAttributeLabel'](_0x40c26d,o(_0x450e65,_0x1c9883));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x118348=this['editor'],_0x53154e=_0x118348['locale'],_0x1b5829=_0x118348['plugins']['get']('TrackChangesEditing');function _0x56d725(_0x34f842,_0x485134){_0x1b5829['descriptionFactory']['registerDescriptionCallback'](_0x52cc00=>{if('formatInline'!=_0x52cc00['type'])return;const {data:_0x47e624}=_0x52cc00;return _0x47e624&&_0x47e624['commandName']===_0x34f842?_0x47e624['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53154e,'*Format:*\x20%0',_0x485134)}:{'type':'format','content':o(_0x53154e,'*Remove\x20format:*\x20%0',_0x485134)}:void 0x0;});}_0x56d725('bold',o(_0x53154e,'FORMAT_BOLD')),_0x56d725('italic',o(_0x53154e,'FORMAT_ITALIC')),_0x56d725('underline',o(_0x53154e,'FORMAT_UNDERLINE')),_0x56d725('code',o(_0x53154e,'FORMAT_CODE')),_0x56d725('strikethrough',o(_0x53154e,'FORMAT_STRIKETHROUGH')),_0x56d725('subscript',o(_0x53154e,'FORMAT_SUBSCRIPT')),_0x56d725('superscript',o(_0x53154e,'FORMAT_SUPERSCRIPT'));}}class O extends _0x13ee14{['afterInit'](){const _0x479670=this['editor'],_0x13fcf2=_0x479670['locale'];if(!_0x479670['plugins']['has']('BlockQuoteEditing'))return;const _0x395745=_0x479670['plugins']['get']('TrackChangesEditing'),_0xf679e2=this['editor']['commands']['get']('blockQuote');_0x395745['enableCommand']('blockQuote',(_0xc7ba4a,_0xacca05={})=>{const _0x43050e=this['editor']['model']['document']['selection'],_0x2d9110=_0xacca05&&void 0x0!==_0xacca05['forceValue']?_0xacca05['forceValue']:!_0xf679e2['value'];let _0x19c39f=[];if(_0x2d9110){const _0x2cfd38=Array['from'](_0x43050e['getSelectedBlocks']())['filter'](_0x3c20bc=>oo(_0x3c20bc)||function(_0x51e323,_0x292871){const _0x2c6aa7=_0x292871['checkChild'](_0x51e323['parent'],'blockQuote'),_0x7ecb2=_0x292871['checkChild'](['$root','blockQuote'],_0x51e323);return _0x2c6aa7&&_0x7ecb2;}(_0x3c20bc,this['editor']['model']['schema']));_0x19c39f=to(_0x2cfd38,_0x479670['model']);}else{const _0x58834d=Array['from'](_0x43050e['getSelectedBlocks']())['filter'](_0x3f9d90=>oo(_0x3f9d90));_0x19c39f=to(_0x58834d,_0x479670['model']);}_0x479670['model']['change'](()=>{for(const _0xd8627d of _0x19c39f)_0x395745['markBlockFormat'](_0xd8627d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2d9110}]});});}),_0x395745['descriptionFactory']['registerDescriptionCallback'](_0x25e411=>{const {data:_0x455839}=_0x25e411;if(_0x455839&&'blockQuote'==_0x455839['commandName']){const _0x3a2eae=o(_0x13fcf2,'ELEMENT_BLOCK_QUOTE');return _0x455839['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x13fcf2,'*Set\x20format:*\x20%0',_0x3a2eae)}:{'type':'format','content':o(_0x13fcf2,'*Remove\x20format:*\x20%0',_0x3a2eae)};}});}}function oo(_0x2a9914){return'blockQuote'==_0x2a9914['parent']['name'];}class G extends _0x13ee14{['afterInit'](){const _0xf47ad9=this['editor'];_0xf47ad9['plugins']['has']('CaseChange')&&(_0xf47ad9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xf47ad9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xf47ad9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x13ee14{['afterInit'](){const _0x24f7c5=this['editor'];_0x24f7c5['commands']['get']('ckbox')&&_0x24f7c5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x13ee14{['afterInit'](){const _0x24426e=this['editor'];if(!_0x24426e['plugins']['has']('CodeBlock'))return;const _0x477e65=_0x24426e['plugins']['get']('TrackChangesEditing'),_0x15bbd1=_0x24426e['locale'],_0x3939ca=_0x24426e['config']['get']('codeBlock')['languages'],_0x5b81e0=_0x24426e['commands']['get']('codeBlock');_0x477e65['enableCommand']('indentCodeBlock'),_0x477e65['enableCommand']('outdentCodeBlock'),_0x477e65['enableCommand']('codeBlock',(_0x5007bd,_0x391445={})=>{const _0x55cc52=_0x24426e['model'],_0x3944f9=_0x24426e['model']['document']['selection'],_0x3fc4aa=_0x391445&&void 0x0!==_0x391445['forceValue']?_0x391445['forceValue']:!_0x5b81e0['value'];let _0x4f8465;_0x391445['language']||(_0x391445['language']=_0x3939ca[0x0]['language']),_0x4f8465=_0x3fc4aa?Array['from'](_0x3944f9['getSelectedBlocks']())['filter'](_0x2c1bc0=>eo(_0x2c1bc0)||function(_0xc4f9c,_0x14e9c5){if(_0xc4f9c['is']('rootElement')||_0x14e9c5['isLimit'](_0xc4f9c))return!0x1;return _0x14e9c5['checkChild'](_0xc4f9c['parent'],'codeBlock');}(_0x2c1bc0,_0x55cc52['schema'])):Array['from'](_0x3944f9['getSelectedBlocks']())['filter'](_0x2a1890=>eo(_0x2a1890));const _0x4bf2c3=to(_0x4f8465,_0x55cc52);_0x55cc52['change'](()=>{for(const _0x406511 of _0x4bf2c3)_0x477e65['markBlockFormat'](_0x406511,{'commandName':'codeBlock','commandParams':[{..._0x391445,'forceValue':_0x3fc4aa}],'formatGroupId':'blockName'});});}),(_0x477e65['descriptionFactory']['registerElementLabel']('codeBlock',_0x3d5d2f=>o(_0x15bbd1,'ELEMENT_CODE_BLOCK',_0x3d5d2f)),_0x477e65['descriptionFactory']['registerDescriptionCallback'](_0x1cdc6b=>{if('formatBlock'!=_0x1cdc6b['type'])return;const _0x45c14b=_0x15bbd1['t'],{data:_0x41208b}=_0x1cdc6b;if(!_0x41208b||'codeBlock'!=_0x41208b['commandName'])return;const _0x40ec47=_0x41208b['commandParams'][0x0]['language'],_0x1b9945=_0x45c14b(_0x3939ca['find'](_0x16ea02=>_0x16ea02['language']===_0x40ec47)['label'])['toLowerCase']();return _0x41208b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15bbd1,'*Set\x20format:*\x20%0',o(_0x15bbd1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1b9945+')')}:{'type':'format','content':o(_0x15bbd1,'*Remove\x20format:*\x20%0',o(_0x15bbd1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3bb76c){return'codeBlock'==_0x3bb76c['name'];}class H extends _0x13ee14{['afterInit'](){const _0x91f7de=this['editor'];if(!_0x91f7de['plugins']['has']('CommentsEditing'))return;_0x91f7de['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3d58d1,_0x589be0,_0x933aea){const _0x581a16=[];for(const _0x4ebf57 of _0x589be0['getItems']())_0x4ebf57['hasAttribute'](_0x3d58d1)&&_0x581a16['push'](_0x933aea['createRangeOn'](_0x4ebf57));return _0x581a16;}function _e(_0x173458,_0x3e0544,{showActiveMarker:_0x10fc9f=!0x0}={}){const _0x41419c=_0x173458['plugins']['get']('TrackChangesEditing');return(_0x3bbbc9,_0x474207,_0x451e62)=>{if(!_0x451e62['consumable']['test'](_0x474207['markerRange'],_0x3bbbc9['name']))return;const _0x26e656=_0x474207['markerRange']['getWalker'](),_0x368a69=_0x474207['markerRange']['start'],_0x44f238=_0x173458['model']['schema'];let _0x1b822f=null,_0x200e80=null,_0x11f3ab=!0x1,_0xeb965a=!0x1;for(const _0x188505 of _0x26e656){const _0x151f76=_0x188505['item'];_0x11f3ab=_0x11f3ab||_0x44f238['isContent'](_0x151f76);const _0x66dcb1=_0x451e62['mapper']['toViewElement'](_0x151f76);if(_0x66dcb1&&_0x66dcb1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x188505['type']&&(_0x44f238['isBlock'](_0x151f76)&&!_0x44f238['isLimit'](_0x151f76)&&(_0x151f76['nextSibling']||_0x368a69['isAtEnd']?_0x1b822f&&_0x1b822f['parent']==_0x151f76||(_0x1b822f=_0x151f76,_0x260de7(_0x188505['previousPosition']),_0xeb965a=!0x0):_0x200e80=_0x200e80||_0x188505['previousPosition']));}function _0x260de7(_0x427407){const _0x19603f=_0x451e62['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3e0544}),_0x2fbaf4=_0x451e62['mapper']['toViewPosition'](_0x427407);_0x10fc9f&&_0x41419c['activeMarkers']['includes'](_0x474207['markerName'])&&_0x451e62['writer']['addClass']('ck-suggestion-marker--active',_0x19603f),_0x451e62['writer']['insert'](_0x2fbaf4,_0x19603f),_0x451e62['mapper']['bindElementToMarker'](_0x19603f,_0x474207['markerName']);}_0x11f3ab||_0xeb965a||!_0x200e80||_0x260de7(_0x200e80);};}class q extends _0x13ee14{static get['requires'](){return[_0x2e0bcf];}['init'](){const _0x38a65f=this['editor'],_0x4700a7=_0x38a65f['plugins']['get']('TrackChangesEditing');_0x4700a7['enableCommand']('delete');const _0x16de38=_0x38a65f['commands']['get']('deleteForward');_0x4700a7['enableCommand']('deleteForward',(_0x207435,_0x1e3f3b={})=>{const _0x5aa74f=_0x38a65f['model']['createSelection'](_0x38a65f['model']['document']['selection']);_0x5aa74f['isCollapsed']&&_0x38a65f['model']['modifySelection'](_0x5aa74f,{'direction':'forward','unit':_0x1e3f3b['unit']});const _0x1e486c=_0x5aa74f['getFirstRange'](),_0x28d90a=_0x5e3944['fromRange'](_0x1e486c);let _0x220c7e;_0x207435(_0x1e3f3b),_0x220c7e='$graveyard'==_0x28d90a['root']['rootName']?_0x38a65f['model']['createRange'](_0x1e486c['start']):_0x38a65f['model']['createRange'](_0x28d90a['start'],_0x28d90a['end']),_0x28d90a['detach'](),_0x38a65f['model']['enqueueChange'](_0x16de38['buffer']['batch'],_0x55c21d=>{_0x16de38['buffer']['lock'](),_0x55c21d['setSelection'](_0x55c21d['createRange'](_0x220c7e['end'])),_0x16de38['buffer']['unlock']();});}),_0x38a65f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x38a65f,'merge'),{'priority':'high'}),_0x38a65f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2b8de8,_0x1aa233,_0x20a49b)=>{_0x20a49b['options']['showSuggestionHighlights']&&_e(_0x38a65f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2b8de8,_0x1aa233,_0x20a49b);},{'priority':'high'}),_0x38a65f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xc5e781,_0x52ff8a,_0x45af84)=>{const _0x1fe885=_0x45af84['mapper']['markerNameToElements'](_0x52ff8a['markerName']);if(_0x1fe885){for(const _0x58c9b3 of _0x1fe885)_0x58c9b3['is']('uiElement')&&(_0x45af84['mapper']['unbindElementFromMarkerName'](_0x58c9b3,_0x52ff8a['markerName']),_0x45af84['writer']['remove'](_0x58c9b3));}},{'priority':'high'});}}class z extends _0x13ee14{['afterInit'](){const _0x163527=this['editor'];if(!_0x163527['plugins']['has']('ListEditing'))return;const _0x496ca1=_0x163527['locale'],_0x6a805f=_0x163527['plugins']['get']('TrackChangesEditing'),_0x552f34=_0x163527['plugins']['has']('TodoListEditing'),_0x323c7c=!!_0x163527['config']['get']('list.multiBlock');function _0x47ce17(_0x262b65){return{'type':'format','content':''+o(_0x496ca1,'*Set\x20format:*\x20%0',_0x262b65)};}function _0x239306(_0x55bbcc){return{'type':'format','content':''+o(_0x496ca1,'*Remove\x20format:*\x20%0',_0x55bbcc)};}_0x6a805f['enableDefaultAttributesIntegration']('numberedList'),_0x6a805f['enableDefaultAttributesIntegration']('bulletedList'),_0x6a805f['enableDefaultAttributesIntegration']('customNumberedList'),_0x6a805f['enableDefaultAttributesIntegration']('customBulletedList'),_0x6a805f['enableDefaultAttributesIntegration']('indentList'),_0x6a805f['enableDefaultAttributesIntegration']('outdentList'),_0x6a805f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x6a805f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x6a805f['registerBlockAttribute']('listItemId'),_0x6a805f['registerBlockAttribute']('listType'),_0x6a805f['registerBlockAttribute']('listIndent'),_0x323c7c&&(_0x6a805f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x6a805f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x552f34&&(_0x6a805f['enableDefaultAttributesIntegration']('todoList'),_0x6a805f['enableDefaultAttributesIntegration']('checkTodoList'),_0x6a805f['registerBlockAttribute']('todoListChecked'),_0x6a805f['descriptionFactory']['registerDescriptionCallback'](_0x1e673d=>{const {data:_0x1eb045}=_0x1e673d;if(_0x1eb045&&'todoListChecked'==_0x1eb045['key'])return{'type':'format','content':_0x1eb045['newValue']?o(_0x496ca1,'*Check\x20item*'):o(_0x496ca1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2cc94c=>{if(_0x2cc94c['batch']['isUndo'])return!0x1;let _0xc879e3=!0x1;const _0x18697d=_0x6a805f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59ca2b=>'todoListChecked'===_0x6a805f['_getAttributeKey'](_0x59ca2b));for(const _0x277ee8 of _0x18697d){'todo'!=_0x277ee8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x6a805f['_findSuggestions'](_0x277ee8['getFirstRange'](),'attribute')['find'](_0x10d5ec=>'listType'===_0x6a805f['_getAttributeKey'](_0x10d5ec['suggestion']))||(_0x2cc94c['removeMarker'](_0x277ee8['getFirstMarker']()),_0xc879e3=!0x0));}return _0xc879e3;})),_0x6a805f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x496ca1,'FORMAT_INDENT'));const _0x55d2ea={'type':'format','content':''};_0x6a805f['descriptionFactory']['registerDescriptionCallback'](_0x5f30a3=>{const {data:_0x585319}=_0x5f30a3;if(!_0x585319||'listType'!=_0x585319['key'])return;let _0x3c2a59=_0x5f30a3['head'];for(;_0x3c2a59;){if(_0x3c2a59['data']&&(('listStyle'==_0x3c2a59['data']['key']||'listMarkerStyle'==_0x3c2a59['data']['key'])&&(_0x3c2a59['data']['newValue']&&'default'!=_0x3c2a59['data']['newValue']||'default'!=_0x3c2a59['data']['oldValue']&&!_0x585319['newValue'])||!_0x323c7c&&_0x3c2a59['data']['key']==m))return _0x55d2ea;_0x3c2a59=_0x3c2a59['next'];}if(null==_0x585319['newValue'])switch(_0x585319['oldValue']){case'bulleted':return _0x239306(o(_0x496ca1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x239306(o(_0x496ca1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x239306(o(_0x496ca1,'ELEMENT_TODO_LIST'));}switch(_0x585319['newValue']){case'bulleted':return _0x47ce17(o(_0x496ca1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x47ce17(o(_0x496ca1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x47ce17(o(_0x496ca1,'ELEMENT_TODO_LIST'));}}),_0x6a805f['descriptionFactory']['registerDescriptionCallback'](_0x157b17=>{const {data:_0x497a72}=_0x157b17;if(_0x497a72&&'listIndent'==_0x497a72['key'])return null==_0x497a72['newValue']||null==_0x497a72['oldValue']&&0x0==_0x497a72['newValue']?_0x55d2ea:void 0x0;}),_0x6a805f['descriptionFactory']['registerDescriptionCallback'](_0x3c0cb7=>{if('attribute'!=_0x3c0cb7['type'])return;const {data:_0x27b12c}=_0x3c0cb7;if(!_0x27b12c||'listItemId'!=_0x27b12c['key'])return;const _0xf32b21=le(_0x3c0cb7);return'newValue'==_0xf32b21?{'type':'format','content':o(_0x496ca1,'*Merge:*\x20list\x20item')}:'oldValue'==_0xf32b21?{'type':'format','content':o(_0x496ca1,'*Split:*\x20list\x20item')}:_0x55d2ea;}),_0x163527['model']['document']['registerPostFixer'](_0x150094=>this['listItemIdFixer'](_0x150094)),_0x163527['model']['document']['registerPostFixer'](_0x3b8404=>this['noTrackChangesFixer'](_0x3b8404)),_0x163527['model']['document']['registerPostFixer'](_0x19d421=>this['assureChains'](_0x19d421)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xb9372c){if(_0xb9372c['batch']['isUndo']||!_0xb9372c['batch']['isLocal'])return!0x1;let _0x5322e1=!0x1;const _0x22d7b1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4debb3=>_0x4debb3['data']&&'listItemId'==_0x4debb3['data']['key'])['filter'](_0x30ab39=>_0x30ab39['data']['newValue']&&_0x30ab39['data']['oldValue']);for(const _0x1590fe of _0x22d7b1)le(_0x1590fe)||(_0xb9372c['removeMarker'](_0x1590fe['getFirstMarker']()),_0x5322e1=!0x0);return _0x5322e1;}['noTrackChangesFixer'](_0x259a27){if(_0x259a27['batch']['isUndo']||!_0x259a27['batch']['isLocal'])return!0x1;const _0x4381da=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4381da['trackChangesCommand']['value'])return!0x1;let _0x234617=!0x1;const _0x39c435=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2b32e2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4d1a6e=>'attribute'==_0x4d1a6e['type'])['filter'](_0x44562a=>_0x39c435['includes'](_0x44562a['attributeKey']));if(0x0==_0x2b32e2['length'])return _0x234617;for(const _0x3c26bf of _0x2b32e2){const _0x359d8c=_0x4381da['_findSuggestions'](_0x3c26bf['range'],'attribute')['filter'](_0x4250eb=>!_0x4250eb['meta']['isNextTo'])['map'](_0x47977b=>_0x47977b['suggestion'])['filter'](_0x8b962a=>{const _0x235b44=_0x4381da['_getAttributeKey'](_0x8b962a);return _0x39c435['includes'](_0x235b44);});if(_0x359d8c['length']){for(const _0x5c9be9 of _0x359d8c)_0x259a27['removeMarker'](_0x5c9be9['getFirstMarker']());_0x234617=!0x0;}}return _0x234617;}['assureChains'](_0x3ad7b3){if(_0x3ad7b3['batch']['isUndo']||!_0x3ad7b3['batch']['isLocal'])return!0x1;const _0x2a630f=this['editor']['plugins']['get']('TrackChangesEditing');let _0x30787b=!0x1;const _0x3deddc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x56ecfe of _0x2a630f['getSuggestions']({'skipNotAttached':!0x0})){const _0x2453b9=_0x2a630f['_findSuggestions'](_0x56ecfe['getFirstRange'](),'attribute')['map'](_0x3b67b2=>_0x3b67b2['suggestion'])['filter'](_0x2bd6e0=>_0x2bd6e0['data']&&_0x3deddc['includes'](_0x2bd6e0['data']['key']));if(!_0x2453b9['length'])continue;const _0x4bb1a1=_0x2453b9[0x0]['head']['attributes']['groupId'];if(!_0x2453b9['every'](_0x484838=>_0x484838['attributes']['groupId']===_0x4bb1a1)){for(const _0xab7248 of _0x2453b9)_0x49f8cc(_0xab7248,_0x4bb1a1)&&(_0x30787b=!0x0);}}return _0x30787b;function _0x24c079(_0x4814ae,_0x223901){for(const _0x53ed1c of _0x2a630f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4780ef=>'attribute'==_0x4780ef['type']&&_0x4780ef['attributes']['groupId']==_0x4814ae))_0x53ed1c['setAttribute']('groupId',_0x223901);}function _0x49f8cc(_0x4ec3d7,_0x377a9b){let _0x51b32b=_0x4ec3d7['head'],_0x2d0bc4=!0x1;for(;_0x51b32b;)_0x51b32b['attributes']['groupId']!=_0x377a9b&&(_0x24c079(_0x51b32b['attributes']['groupId'],_0x377a9b),_0x51b32b['setAttribute']('groupId',_0x377a9b),_0x2d0bc4=!0x0),_0x51b32b=_0x51b32b['next'];return _0x2d0bc4;}}['_supportLegacySuggestions'](){const _0x4903d7=this['editor'],_0x5ef634=_0x4903d7['locale'],_0x5713f6=_0x4903d7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5713f6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x580ecc,_0x27d7a6){const _0xc597b2=[];for(let _0x58d36f of _0x580ecc)_0x58d36f['start']['nodeAfter']===_0x58d36f['end']['parent']&&(_0x58d36f=_0x4903d7['model']['createRange'](_0x4903d7['model']['createPositionAt'](_0x58d36f['start']['nodeAfter'],0x0))),_0xc597b2['push'](_0x58d36f);_0x4903d7['model']['change'](_0x142fcb=>{const _0x360b7e=_0x4903d7['model']['document']['selection'],_0x37e1be=Array['from'](_0x360b7e['getRanges']())['map'](_0x5c0f89=>_0x5e3944['fromRange'](_0x5c0f89));_0x142fcb['setSelection'](_0xc597b2),_0x4903d7['commands']['get'](_0x27d7a6['commandName'])['refresh'](),_0x27d7a6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4903d7['execute'](_0x27d7a6['commandName'],..._0x27d7a6['commandParams']),_0x142fcb['setSelection'](_0x37e1be);for(const _0x4560dc of _0x37e1be)_0x4560dc['detach']();});}),_0x5713f6['descriptionFactory']['registerElementLabel'](function(_0x267a05){const _0x505ac5=!_0x4903d7['model']['schema']['isObject'](_0x267a05),_0x4e8e77=_0x267a05['previousSibling'],_0x5c5a64=_0x267a05['nextSibling'],_0x5f521a=_0x267a05['getAttribute']('listItemId'),_0xbf5132=!_0x4e8e77||_0x4e8e77['getAttribute']('listItemId')!==_0x5f521a,_0x3f2a3b=!_0x5c5a64||_0x5c5a64['getAttribute']('listItemId')!==_0x5f521a;return _0x505ac5&&Boolean(_0x5f521a)&&_0xbf5132&&_0x3f2a3b;},_0x500492=>o(_0x5ef634,'ELEMENT_LIST_ITEM',_0x500492));}['_registerLegacyDescription'](){const _0x39d29c=this['editor'],_0x5908d8=_0x39d29c['locale'];function _0x1265a6(_0x5b7d85){const _0x4e5c36=_0x39d29c['commands']['get']('bulletedList')['value'],_0x13f9d6=_0x39d29c['commands']['get']('numberedList')['value'];return'numberedList'===_0x5b7d85?_0x4e5c36:_0x13f9d6;}_0x39d29c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x12a97f){if('formatBlock'!=_0x12a97f['type'])return;const {data:_0x16d94a}=_0x12a97f;if(!_0x16d94a)return;let _0x194079,_0x1bcb0d,_0x5407aa,_0x50413a;switch(_0x16d94a['commandName']){case'bulletedList':_0x5407aa=_0x16d94a['commandParams'][0x0]['forceValue'],_0x50413a=_0x1265a6(_0x16d94a['commandName']),_0x194079=_0x5407aa?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x50413a&&_0x39d29c['config']['get']('list.multiBlock')||(_0x194079='*Change\x20to:*\x20%0'),_0x1bcb0d={'type':'format','content':o(_0x5908d8,_0x194079,o(_0x5908d8,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5407aa=_0x16d94a['commandParams'][0x0]['forceValue'],_0x50413a=_0x1265a6(_0x16d94a['commandName']),_0x194079=_0x5407aa?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x50413a&&_0x39d29c['config']['get']('list.multiBlock')||(_0x194079='*Change\x20to:*\x20%0'),_0x1bcb0d={'type':'format','content':o(_0x5908d8,_0x194079,o(_0x5908d8,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x194079='*Indent:*\x20%0',_0x1bcb0d={'type':'format','content':o(_0x5908d8,_0x194079,o(_0x5908d8,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x194079=function(_0x4ed146){const _0x26082d=_0x4ed146['getFirstRange']();let _0x40a092=_0x26082d['start']['nodeAfter'];for(;_0x40a092&&_0x26082d['containsItem'](_0x40a092);){if(_0x40a092['getAttribute']('listIndent')>0x0)return!0x1;_0x40a092=_0x40a092['nextSibling'];}return!0x0;}(_0x12a97f)?o(_0x5908d8,'*Format:*\x20remove\x20from\x20%0',o(_0x5908d8,function(_0x4a25dc){return'ELEMENT_'+_0x4a25dc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x12a97f))):o(_0x5908d8,'*Outdent:*\x20%0',o(_0x5908d8,'ELEMENT_LIST_ITEM')),_0x1bcb0d={'type':'format','content':_0x194079};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x16d94a['multipleBlocks']&&(_0x194079='*Merge:*\x20%0',_0x1bcb0d={'type':'deletion','content':o(_0x5908d8,_0x194079,o(_0x5908d8,'ELEMENT_LIST_ITEM'))});}return _0x1bcb0d;});}}function le(_0x155fb4){let _0x36b659=_0x155fb4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x36b659;){const _0x433344=_0x36b659['getAttribute']('listItemId');if(!_0x433344)return!0x1;if(_0x433344==_0x155fb4['data']['newValue'])return'newValue';if(_0x433344==_0x155fb4['data']['oldValue'])return'oldValue';_0x36b659=_0x36b659['previousSibling'];}return!0x1;}class ue extends _0x13ee14{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1e3caf=this['editor']['config']['get']('list.properties'),_0x184f85=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e3caf['styles']&&(_0x184f85['enableDefaultAttributesIntegration']('listStyle'),_0x184f85['registerBlockAttribute']('listStyle')),_0x1e3caf['reversed']&&(_0x184f85['enableDefaultAttributesIntegration']('listReversed'),_0x184f85['registerBlockAttribute']('listReversed')),_0x1e3caf['startIndex']&&(_0x184f85['enableDefaultAttributesIntegration']('listStart'),_0x184f85['registerBlockAttribute']('listStart'));const _0x23fd44={'type':'format','content':''};_0x184f85['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4f0f4c=this['editor']['locale'];_0x184f85['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4f0f4c,'FORMAT_LIST_REVERSED')),_0x184f85['descriptionFactory']['registerDescriptionCallback'](_0x1c555f=>{const {data:_0x2f17e8}=_0x1c555f;if(_0x2f17e8&&'listReversed'==_0x2f17e8['key'])return null==_0x2f17e8['newValue']||0x0==_0x2f17e8['newValue']&&null==_0x2f17e8['oldValue']?_0x23fd44:void 0x0;}),_0x184f85['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4f0f4c,'FORMAT_LIST_START')),_0x184f85['descriptionFactory']['registerDescriptionCallback'](_0x6b18eb=>{const {data:_0x23f044}=_0x6b18eb;if(_0x23f044&&'listStart'==_0x23f044['key'])return null==_0x23f044['newValue']||0x1==_0x23f044['newValue']&&null==_0x23f044['oldValue']?_0x23fd44:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1fd070=>{if(_0x1fd070['batch']['isUndo'])return!0x1;let _0x2576bd=!0x1;const _0x36d391=_0x184f85['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c8920=>{const _0x3cb8c8=_0x184f85['_getAttributeKey'](_0x5c8920);return'listStart'==_0x3cb8c8||'listReversed'==_0x3cb8c8;});for(const _0x183e81 of _0x36d391){const _0xc5330e=_0x183e81['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xc5330e||'customNumbered'==_0xc5330e)continue;_0x184f85['_findSuggestions'](_0x183e81['getFirstRange'](),'attribute')['find'](_0xc212d3=>'listType'==_0x184f85['_getAttributeKey'](_0xc212d3['suggestion']))||(_0x1fd070['removeMarker'](_0x183e81['getFirstMarker']()),_0x2576bd=!0x0);}return _0x2576bd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1176b0){const _0x47c968=this['editor']['locale'],{data:_0x2e4f69}=_0x1176b0,_0x1f7d37={'type':'format','content':''};if(!_0x2e4f69||'listStyle'!=_0x2e4f69['key'])return;if(!_0x2e4f69['oldValue'])return'default'==_0x2e4f69['newValue']?_0x1f7d37:{'type':'format','content':''+o(_0x47c968,'*Set\x20format:*\x20%0',o(_0x47c968,this['_getTranslationKeyForListStyle'](_0x2e4f69['newValue'])))};if(!_0x2e4f69['newValue']){if('default'==_0x2e4f69['oldValue'])return _0x1f7d37;let _0x4dfa80=_0x1176b0['head'];for(;_0x4dfa80;){if(_0x4dfa80['data']&&'listType'==_0x4dfa80['data']['key']&&_0x4dfa80['data']['newValue'])return _0x1f7d37;_0x4dfa80=_0x4dfa80['next'];}return{'type':'format','content':''+o(_0x47c968,'*Remove\x20format:*\x20%0',o(_0x47c968,this['_getTranslationKeyForListStyle'](_0x2e4f69['oldValue'])))};}if('default'!=_0x2e4f69['newValue'])return{'type':'format','content':''+o(_0x47c968,'*Set\x20format:*\x20%0',o(_0x47c968,this['_getTranslationKeyForListStyle'](_0x2e4f69['newValue'])))};let _0x51df2a=_0x1176b0['head'];for(;_0x51df2a;){if(_0x51df2a['data']&&'listType'==_0x51df2a['data']['key']&&_0x51df2a['data']['newValue']&&_0x51df2a['data']['oldValue'])return _0x1f7d37;_0x51df2a=_0x51df2a['next'];}return{'type':'format','content':o(_0x47c968,'*Set\x20format:*\x20%0',o(_0x47c968,'ELEMENT_'+_0x1176b0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2367ce=this['editor'],_0x23dc9b=_0x2367ce['locale'];_0x2367ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24deba=>{if('formatBlock'!=_0x24deba['type'])return;const {data:_0x370238}=_0x24deba;if(!_0x370238)return;let _0x4dcb17,_0xac5f1f;switch(_0x370238['commandName']){case'listStyle':_0x4dcb17='*Change\x20to:*\x20%0',_0xac5f1f={'type':'format','content':o(_0x23dc9b,_0x4dcb17,o(_0x23dc9b,this['_getTranslationKeyForListStyle'](_0x370238['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4dcb17=_0x370238['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xac5f1f={'type':'format','content':o(_0x23dc9b,_0x4dcb17)};break;case'listStart':_0x4dcb17='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xac5f1f={'type':'format','content':o(_0x23dc9b,_0x4dcb17,_0x370238['commandParams'][0x0]['startIndex'])};}return _0xac5f1f;});}['_getTranslationKeyForListStyle'](_0x5c9e90){return'ELEMENT_'+function(_0x285b90){if(pe['includes'](_0x285b90))return'bulleted';if(ye['includes'](_0x285b90))return'numbered';return null;}(_0x5c9e90)['toUpperCase']()+'_LIST_'+_0x5c9e90['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x13ee14{static get['requires'](){return[_0x261ca4];}['init'](){const _0x402738=this['editor'],_0x369ab8=_0x402738['plugins']['get']('TrackChangesEditing'),_0x4a3aa4=_0x402738['commands']['get']('enter');_0x369ab8['enableCommand']('enter',()=>{_0x402738['model']['change'](_0x36777f=>{const _0x383d15=_0x402738['model']['document']['selection'],_0x5b720d=_0x383d15['getFirstPosition'](),_0x3bd758=_0x5e3944['fromRange'](_0x383d15['getFirstRange']());if(_0x4a3aa4['enterBlock'](_0x36777f)){const _0x2a4b9a=_0x402738['model']['createPositionAt'](_0x5b720d['parent']['nextSibling'],0x0),_0x35f495=_0x36777f['createRange'](_0x5b720d,_0x2a4b9a);_0x369ab8['markInsertion'](_0x35f495);}else _0x36777f['setSelection'](_0x36777f['createRange'](_0x3bd758['end']));_0x3bd758['detach'](),_0x4a3aa4['fire']('afterExecute',{'writer':_0x36777f});});}),_0x402738['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x402738,'split'),{'priority':'high'}),_0x402738['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x17d992,_0x39c471,_0x401285)=>{const _0x4197d8=_0x401285['mapper']['markerNameToElements'](_0x39c471['markerName']);if(_0x4197d8){for(const _0xce06a8 of _0x4197d8)_0xce06a8['hasClass']('ck-suggestion-marker-split')&&(_0x401285['mapper']['unbindElementFromMarkerName'](_0xce06a8,_0x39c471['markerName']),_0x401285['writer']['remove'](_0xce06a8));}},{'priority':'high'}),_0x402738['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x46959a,_0x1f9022,_0x5dbbcf)=>{_0x5dbbcf['options']['showSuggestionHighlights']&&_e(_0x402738,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x46959a,_0x1f9022,_0x5dbbcf);},{'priority':'high'});}}class J extends _0x13ee14{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x551676=this['editor']['plugins']['get']('TrackChangesEditing');_0x551676['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x551676['enableCommand']('findNext'),_0x551676['enableCommand']('findPrevious'),_0x551676['enableCommand']('replace'),_0x551676['enableCommand']('replaceAll');}['handleFindCommand'](_0x3293d1,_0x58fcfb,_0x1e9430={}){const _0x16a6f1=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3293d1(_0x2904a2=>('string'==typeof _0x58fcfb?_0x16a6f1['findByTextCallback'](_0x58fcfb,_0x1e9430):_0x58fcfb)(_0x2904a2)['filter'](_0x27579d=>!0x1===this['_isInDeletionRange'](_0x27579d,_0x2904a2['item'])),_0x1e9430);}['_isInDeletionRange'](_0x1bdee8,_0x2f35e7){const _0x2b249b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2f35e7,_0x1bdee8['start']),this['editor']['model']['createPositionAt'](_0x2f35e7,_0x1bdee8['end']));for(const _0x207868 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2b249b['getIntersection'](_0x207868['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 _0x13ee14{['afterInit'](){const _0x19a7ab=this['editor']['locale'],_0x4b3c7e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x44a169,commandName:_0x3d6384}of ro)this['editor']['plugins']['has'](_0x44a169)&&(_0x4b3c7e['enableDefaultAttributesIntegration'](_0x3d6384),_0x4b3c7e['registerInlineAttribute'](_0x3d6384));_0x19a7ab['t'],_0x4b3c7e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x19a7ab,'FORMAT_FONT_SIZE')),_0x4b3c7e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x19a7ab,'FORMAT_FONT_FAMILY')),_0x4b3c7e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x19a7ab,'FORMAT_FONT_COLOR')),_0x4b3c7e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x19a7ab,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a998c=this['editor'],_0x3e1a3e=_0x2a998c['locale'];_0x2a998c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b8736=>{const _0x1d42a2=_0x3e1a3e['t'];if('formatInline'!=_0x3b8736['type'])return;const {data:_0x5bb47a}=_0x3b8736;if(null!=_0x5bb47a){if('fontSize'==_0x5bb47a['commandName']){const _0x3f165f=_0x5bb47a['commandParams'][0x0]['value'];if(_0x3f165f){const _0x509e15=_0x1d42a2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x139ae7=>_0x139ae7['model']==_0x3f165f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3e1a3e,'*Set\x20font\x20size:*\x20%0',_0x509e15)};}return{'type':'format','content':o(_0x3e1a3e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5bb47a['commandName']){const _0x1984e1=_0x5bb47a['commandParams'][0x0]['value'];return _0x1984e1?{'type':'format','content':o(_0x3e1a3e,'*Set\x20font\x20family:*\x20%0',_0x1984e1)}:{'type':'format','content':o(_0x3e1a3e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5bb47a['commandName']){const _0x328af8=_0x5bb47a['commandParams'][0x0]['value'];if(_0x328af8){const _0x416d87=_0x4020a5(this['editor']['config']['get']('fontColor.colors'))['find'](_0x32c1fe=>_0x32c1fe['model']==_0x328af8);let _0x44e1e1=_0x328af8,_0x294088='';return _0x416d87&&(_0x44e1e1=_0x416d87['label'],_0x294088=_0x1d42a2(_0x44e1e1)['toLowerCase']()),{'type':'format','content':o(_0x3e1a3e,'*Set\x20font\x20color:*\x20%0',_0x294088)['trim'](),'color':{'value':_0x328af8,'title':_0x294088||_0x44e1e1}};}return{'type':'format','content':o(_0x3e1a3e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5bb47a['commandName']){const _0x1a63fe=_0x5bb47a['commandParams'][0x0]['value'];if(_0x1a63fe){const _0xe6bff8=_0x4020a5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x47969f=>_0x47969f['model']==_0x1a63fe);let _0x1e2468=_0x1a63fe,_0x335d99='';return _0xe6bff8&&(_0x1e2468=_0xe6bff8['label'],_0x335d99=_0x1d42a2(_0x1e2468)['toLowerCase']()),{'type':'format','content':o(_0x3e1a3e,'*Set\x20font\x20background\x20color:*\x20%0',_0x335d99)['trim'](),'color':{'value':_0x1a63fe,'title':_0x335d99||_0x1e2468}};}return{'type':'format','content':o(_0x3e1a3e,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x13ee14{['afterInit'](){const _0x467d4c=this['editor'],_0x322213=_0x467d4c['plugins']['get']('TrackChangesEditing'),_0x2ed15e=_0x467d4c['commands']['get']('copyFormat'),_0x1702cc=_0x467d4c['commands']['get']('pasteFormat');_0x2ed15e&&_0x1702cc&&(_0x322213['enableDefaultAttributesIntegration']('pasteFormat'),_0x322213['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x687d5c=this['editor'],_0x22d903=_0x687d5c['locale'];_0x687d5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a9d19=>{if('formatBlock'!=_0x4a9d19['type']&&'formatInline'!=_0x4a9d19['type'])return;const {data:_0x5998ba}=_0x4a9d19;if(_0x5998ba&&'pasteFormat'===_0x5998ba['commandName']){const _0x2a61c3=[],_0x5a81b2=_0x5998ba['commandParams'][0x0];for(const [_0xd9029a,_0x21840e]of Object['entries'](_0x5a81b2))_0x2a61c3['push'](so(_0x687d5c,_0xd9029a,_0x21840e));return _0x2a61c3['length']?{'type':'format','content':o(_0x22d903,'*Set\x20format\x20to:*\x20%0',_0x2a61c3['join'](',\x20'))}:{'type':'format','content':o(_0x22d903,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5424ed,_0x4cf544,_0x47db50){const _0x415478=_0x5424ed['locale']['t'],_0x25db7a=_0x4cf544['split'](/(?=[A-Z])/)['join']('\x20'),_0x4f3fe3=_0x415478(_0x25db7a['charAt'](0x0)['toUpperCase']()+_0x25db7a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x47db50)return _0x4f3fe3;if('fontColor'===_0x4cf544||'fontBackgroundColor'===_0x4cf544){const _0x2f4427=_0x4020a5(_0x5424ed['config']['get']('fontColor.colors'))['find'](_0x137201=>_0x137201['model']==_0x47db50);return _0x4f3fe3+'\x20('+(_0x2f4427?_0x415478(_0x2f4427['label'])['toLowerCase']():_0x47db50)+')';}if('fontSize'===_0x4cf544&&isNaN(parseFloat(_0x47db50))){const _0x11b3b1=_0x5424ed['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5424ed['config']['get']('fontSize.options'))['find'](_0x333ac7=>_0x333ac7['model']==_0x47db50);return _0x4f3fe3+'\x20('+(_0x11b3b1?_0x415478(_0x11b3b1['title'])['toLowerCase']():_0x47db50)+')';}return _0x4f3fe3+'\x20('+_0x47db50+')';}class Y extends _0x13ee14{['_headingOptions'];['afterInit'](){const _0x141efa=this['editor'];if(!_0x141efa['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x141efa['config']['get']('heading.options');const _0x5b6e99=_0x141efa['locale'],_0x3ad671=_0x141efa['plugins']['get']('TrackChangesEditing');_0x3ad671['enableDefaultAttributesIntegration']('heading');for(const _0x305edb of this['_headingOptions'])'paragraph'!=_0x305edb['model']&&_0x3ad671['descriptionFactory']['registerElementLabel'](_0x305edb['model'],_0x54ae9d=>{const _0x291135=this['_getHeadingLevel'](_0x305edb['model']);return null!==_0x291135?_0x3dabb5(_0x54ae9d,_0x291135):_0x4ba924(_0x54ae9d,_0x305edb['title']);});function _0x3dabb5(_0x274125,_0x1b0f0a){return o(_0x5b6e99,'ELEMENT_HEADING',[_0x274125,_0x1b0f0a]);}function _0x4ba924(_0x110b15,_0x22d155){return o(_0x5b6e99,'ELEMENT_HEADING_CUSTOM',[_0x110b15,_0x22d155]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x377a26=this['editor'],_0x2683a6=_0x377a26['locale'];function _0x5d0e38(_0x31ca18,_0x208d40){return o(_0x2683a6,'ELEMENT_HEADING_CUSTOM',[_0x31ca18,_0x208d40]);}_0x377a26['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x490016=>{if('formatBlock'!=_0x490016['type'])return;const {data:_0x48c9d7}=_0x490016;if(_0x48c9d7&&'heading'==_0x48c9d7['commandName']){const _0x5c1a57=_0x48c9d7['commandParams'][0x0]['value'],_0x4e19d8=this['_getHeadingLevel'](_0x5c1a57);if(null!==_0x4e19d8)return{'type':'format','content':o(_0x2683a6,'*Change\x20to:*\x20%0',(_0x11b0db=0x1,_0x3aeeba=_0x4e19d8,o(_0x2683a6,'ELEMENT_HEADING',[_0x11b0db,_0x3aeeba])))};const _0x36a837=this['_headingOptions']['find'](_0x47c51d=>_0x47c51d['model']===_0x5c1a57)['title'];return{'type':'format','content':o(_0x2683a6,'*Change\x20to:*\x20%0',_0x5d0e38(0x1,_0x36a837))};}var _0x11b0db,_0x3aeeba;});}['_getHeadingLevel'](_0x3a51da){const _0x2fad23=_0x3a51da['match'](/^heading(\d+)/);if(_0x2fad23)return _0x2fad23[0x1];const _0x27bffc=this['_headingOptions']?.['find'](_0x2b58ec=>_0x2b58ec['model']==_0x3a51da);if(_0x27bffc&&_0x27bffc['view']){const _0x31e371=_0x27bffc['view'],_0x239812=(_0x31e371['name']??_0x31e371)['match'](/^h(\d+)/);if(_0x239812)return _0x239812[0x1];}return null;}}class Z extends _0x13ee14{['afterInit'](){const _0x117f79=this['editor'];if(!_0x117f79['plugins']['has']('HighlightEditing'))return;const _0x296210=_0x117f79['plugins']['get']('TrackChangesEditing'),_0x3765ff=_0x117f79['locale'];_0x296210['enableDefaultAttributesIntegration']('highlight'),_0x296210['registerInlineAttribute']('highlight'),_0x296210['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3765ff,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e5b48=this['editor'],_0x1a2847=_0x3e5b48['locale'];_0x3e5b48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d8ace=>{if('formatInline'!=_0x2d8ace['type'])return;const {data:_0x48637e}=_0x2d8ace;if(_0x48637e&&'highlight'==_0x48637e['commandName']){const _0x533c95=_0x1a2847['t'],_0x24dbc0=_0x48637e['commandParams'][0x0]['value'];if(_0x24dbc0){const _0x464e4e=_0x3e5b48['config']['get']('highlight.options')['find'](_0x5a87a2=>_0x5a87a2['model']==_0x24dbc0),_0x18a5fc=_0x533c95(_0x464e4e['title'])['toLowerCase']();return{'type':'format','content':o(_0x1a2847,'*Set\x20highlight:*\x20%0',_0x18a5fc),'color':{'value':_0x464e4e['color'],'title':_0x464e4e['title']}};}return{'type':'format','content':o(_0x1a2847,'*Remove\x20highlight*',o(_0x1a2847,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x13ee14{['afterInit'](){const _0x446f5e=this['editor'];if(!_0x446f5e['plugins']['has']('HorizontalLineEditing'))return;_0x446f5e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x268645=_0x446f5e['plugins']['get']('TrackChangesEditing'),_0xf7053f=_0x446f5e['locale'];_0x268645['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3acf4a=>o(_0xf7053f,'ELEMENT_HORIZONTAL_LINE',_0x3acf4a)),_0x446f5e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x394eb6,{writer:_0x1d5533,options:_0x4677d9})=>{if(!_0x4677d9['showSuggestionHighlights'])return null;const _0x202ae3=_0x1d5533['createContainerElement']('div'),_0x4fe46e=_0x1d5533['createEmptyElement']('hr');return _0x1d5533['addClass']('ck-horizontal-line',_0x202ae3),_0x1d5533['insert'](_0x1d5533['createPositionAt'](_0x202ae3,0x0),_0x4fe46e),_0x202ae3;},'converterPriority':'high'});}}class et extends _0x13ee14{['afterInit'](){const _0x590715=this['editor'];if(!_0x590715['plugins']['has']('HtmlEmbed'))return;const _0x4010f2=_0x590715['plugins']['get']('TrackChangesEditing'),_0xda7395=_0x590715['locale'];_0x4010f2['descriptionFactory']['registerElementLabel']('rawHtml',_0x26d327=>o(_0xda7395,'ELEMENT_HTML_EMBED',_0x26d327)),_0x4010f2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4010f2['registerBlockAttribute']('value'),_0x4010f2['descriptionFactory']['registerDescriptionCallback'](_0x10b03e=>{if('attribute'!=_0x10b03e['type'])return;const {data:_0x95218c}=_0x10b03e;if(_0x95218c&&'value'==_0x95218c['key']&&_0x10b03e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1a65bc=o(_0xda7395,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xda7395,'*Change\x20%0\x20content*',_0x1a65bc)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43252d=this['editor'],_0x322e89=_0x43252d['locale'];_0x43252d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f3f4e=>{if('formatBlock'!=_0x3f3f4e['type'])return;const {data:_0x508262}=_0x3f3f4e;if(_0x508262&&'htmlEmbed'==_0x508262['commandName']){const _0x9130f9=o(_0x322e89,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x322e89,'*Change\x20%0\x20content*',_0x9130f9)};}});}}class it extends _0x13ee14{['afterInit'](){const _0x9eee38=this['editor'];if(!_0x9eee38['plugins']['has']('ImageEditing'))return;const _0x41dcbd=_0x9eee38['plugins']['get']('TrackChangesEditing'),_0x57ba57=_0x9eee38['plugins']['get']('ImageUtils'),_0x3e69f3=_0x9eee38['locale'];_0x41dcbd['enableCommand']('insertImage'),_0x41dcbd['descriptionFactory']['registerElementLabel']('imageBlock',_0x35e030=>o(_0x3e69f3,'ELEMENT_IMAGE',_0x35e030)),_0x41dcbd['descriptionFactory']['registerElementLabel']('imageInline',_0x582f4f=>o(_0x3e69f3,'ELEMENT_INLINE_IMAGE',_0x582f4f)),_0x41dcbd['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3e69f3,'ELEMENT_CAPTION')),_0x9eee38['plugins']['has']('ImageUploadEditing')&&_0x41dcbd['enableCommand']('uploadImage'),_0x9eee38['plugins']['has']('ImageBlockEditing')&&_0x9eee38['plugins']['has']('ImageInlineEditing')&&(_0x41dcbd['enableCommand']('imageTypeInline',(_0xc4d094,_0x5b20de)=>{const _0x32c88b=_0x57ba57['getClosestSelectedImageElement'](_0x9eee38['model']['document']['selection']);_0x9eee38['model']['change'](()=>{_0x41dcbd['markBlockFormat'](_0x32c88b,{'commandName':'imageTypeInline','commandParams':[_0x5b20de]},[],'convertBlockImageToInline');});}),_0x41dcbd['enableCommand']('imageTypeBlock',(_0x5266cf,_0x56eddf)=>{_0x9eee38['model']['change'](_0x35dab4=>{let _0x468a2a=_0x57ba57['getClosestSelectedImageElement'](_0x9eee38['model']['document']['selection']),_0xd19954=_0x35dab4['createRangeOn'](_0x468a2a);const _0x59d594=_0x2139f7['fromPosition'](_0xd19954['start'],'toPrevious'),_0x34c4f2=_0x2139f7['fromPosition'](_0xd19954['end'],'toNext');_0x41dcbd['forceDefaultExecution'](()=>_0x5266cf(_0x56eddf)),_0x468a2a=_0x57ba57['getClosestSelectedImageElement'](_0x9eee38['model']['document']['selection']),_0xd19954=_0x35dab4['createRangeOn'](_0x468a2a);const _0x279160=_0x35dab4['createRange'](_0x59d594,_0x34c4f2);_0x59d594['detach'](),_0x34c4f2['detach'](),_0x41dcbd['markBlockFormat'](_0x468a2a,{'commandName':'imageTypeInline','commandParams':[_0x56eddf]},[],'convertInlineImageToBlock'),_0x279160['start']['isBefore'](_0xd19954['start'])&&_0x41dcbd['markInsertion'](_0x35dab4['createRange'](_0x279160['start'],_0xd19954['start']),'convertInlineImageToBlock'),_0xd19954['end']['isBefore'](_0x279160['end'])&&_0x41dcbd['markInsertion'](_0x35dab4['createRange'](_0xd19954['end'],_0x279160['end']),'convertInlineImageToBlock');});}),_0x41dcbd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x41dcbd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x41dcbd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x41dcbd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x41dcbd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x41dcbd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x197fc5])=>{const _0x1ded38=_0x41dcbd['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x990cdc=_0x197fc5['start'],_0x15c318=_0x197fc5['end'];const _0x30e98f=_0x9eee38['model']['schema']['getNearestSelectionRange'](_0x990cdc,'backward'),_0x1efea5=_0x9eee38['model']['schema']['getNearestSelectionRange'](_0x15c318,'forward');_0x30e98f['isCollapsed']&&(_0x990cdc=_0x30e98f['start']),_0x1efea5['isCollapsed']&&(_0x15c318=_0x1efea5['end']),_0x1ded38([_0x9eee38['model']['createRange'](_0x990cdc,_0x15c318)]);}),_0x41dcbd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x421044),_0x41dcbd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x421044)),_0x9eee38['plugins']['has']('ImageCaptionEditing')&&(_0x41dcbd['enableCommand']('toggleImageCaption',(_0x544a7a,_0x31a543)=>{const _0x14e2bf=_0x9eee38['plugins']['get']('ImageCaptionUtils');let _0x4f2cea=_0x57ba57['getClosestSelectedImageElement'](_0x9eee38['model']['document']['selection']),_0x10de12=_0x14e2bf['getCaptionFromImageModelElement'](_0x4f2cea);_0x9eee38['model']['change'](()=>{if(_0x10de12)return void _0x41dcbd['markDeletion'](_0x9eee38['model']['createRangeOn'](_0x10de12));const _0x29944b=_0x57ba57['isBlockImage'](_0x4f2cea);_0x544a7a(_0x31a543),_0x4f2cea=_0x57ba57['getClosestSelectedImageElement'](_0x9eee38['model']['document']['selection']),_0x10de12=_0x14e2bf['getCaptionFromImageModelElement'](_0x4f2cea),_0x41dcbd['markInsertion'](_0x9eee38['model']['createRangeOn'](_0x10de12),_0x29944b?null:'imageCaption');});}),_0x41dcbd['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x421044));const _0x268ffc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x45fe1d(_0x3712da,_0x5ac0aa){const _0x189fb9=_0x268ffc['findIndex'](({type:_0x2d65c7,subType:_0x2cf981})=>_0x3712da['type']==_0x2d65c7&&_0x3712da['subType']==_0x2cf981),_0x9acef6=_0x268ffc['findIndex'](({type:_0x2d2a59,subType:_0x53c112})=>_0x5ac0aa['type']==_0x2d2a59&&_0x5ac0aa['subType']==_0x53c112);if(_0x189fb9<0x0||_0x9acef6<0x0)return!0x1;const _0x1ea0b9=_0x3712da['getFirstRange'](),_0x464aca=_0x5ac0aa['getFirstRange']();if((0x0==_0x189fb9||0x1==_0x189fb9)&&0x2==_0x9acef6&&_0x1ea0b9['isIntersecting'](_0x464aca))return!0x0;if(0x2==_0x189fb9&&0x3==_0x9acef6){const _0x20bc24=_0x41dcbd['_findSuggestions'](_0x1ea0b9,'insertion')['filter'](({suggestion:_0x3dd6cd,meta:_0x33df46})=>_0x33df46['isOwn']&&'convertInlineImageToBlock'==_0x3dd6cd['subType']);if(_0x20bc24['length']>0x1&&_0x464aca['end']['isEqual'](_0x1ea0b9['start']))return!0x0;if(0x1==_0x20bc24['length']&&(_0x1ea0b9['start']['isEqual'](_0x464aca['end'])||_0x1ea0b9['end']['isEqual'](_0x464aca['start'])))return!0x0;}if(0x3==_0x189fb9&&0x3==_0x9acef6&&_0x1ea0b9['start']['isBefore'](_0x464aca['start'])){const _0x25ab0d=_0x1ea0b9['end']['nodeAfter'],_0x3930dd=_0x464aca['start']['nodeBefore'];return _0x57ba57['isBlockImage'](_0x25ab0d)&&_0x25ab0d===_0x3930dd;}return!0x1;}function _0x421044(_0x30cb3b,_0x32d911){return _0x45fe1d(_0x30cb3b,_0x32d911)?[_0x30cb3b,_0x32d911]:_0x45fe1d(_0x32d911,_0x30cb3b)?[_0x32d911,_0x30cb3b]:null;}_0x9eee38['plugins']['has']('ImageResize')&&(_0x41dcbd['enableDefaultAttributesIntegration']('resizeImage'),_0x41dcbd['registerBlockAttribute']('resizedWidth'),_0x41dcbd['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3e69f3,'FORMAT_IMAGE_SIZE'))),_0x9eee38['plugins']['has']('ImageTextAlternativeEditing')&&(_0x41dcbd['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x41dcbd['registerBlockAttribute']('alt')),_0x41dcbd['descriptionFactory']['registerDescriptionCallback'](_0x47be6c=>{if(!!_0x268ffc['find'](({type:_0x50d538,subType:_0x1a5769})=>_0x47be6c['type']==_0x50d538&&_0x47be6c['subType']==_0x1a5769))return _0x47be6c['previous']?{}:void 0x0;}),_0x41dcbd['descriptionFactory']['registerDescriptionCallback'](_0xd77e04=>{if('insertion'==_0xd77e04['type']||'deletion'==_0xd77e04['type']){const _0x3cca93=_0xd77e04['getContainedElement']();if(_0x3cca93&&_0x3cca93['is']('element','caption'))return{'type':'insertion'==_0xd77e04['type']?'addObject':'removeObject','element':_0x3cca93,'quantity':0x1};}}),_0x41dcbd['descriptionFactory']['registerDescriptionCallback'](_0x3adeac=>'formatBlock'==_0x3adeac['type']&&'convertInlineImageToBlock'==_0x3adeac['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3adeac['type']&&'convertBlockImageToInline'==_0x3adeac['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x41dcbd['descriptionFactory']['registerDescriptionCallback'](_0x500fc2=>{if('attribute'!=_0x500fc2['type'])return;const {data:_0x424709}=_0x500fc2;if(!_0x424709||'alt'!=_0x424709['key'])return;const _0x37ff21=_0x424709['newValue'];return _0x37ff21?{'type':'format','content':o(_0x3e69f3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x37ff21+'\x22')}:{'type':'format','content':o(_0x3e69f3,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f1c3d=this['editor'],_0x172172=_0x3f1c3d['locale'];_0x3f1c3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a7ca5=>{if('formatBlock'!=_0x3a7ca5['type']&&'formatInline'!=_0x3a7ca5['type'])return;const {data:_0x430ab9}=_0x3a7ca5;if(_0x430ab9){if('imageTextAlternative'==_0x430ab9['commandName']){const _0x3876b2=_0x430ab9['commandParams'][0x0]['newValue'];return _0x3876b2?{'type':'format','content':o(_0x172172,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3876b2+'\x22')}:{'type':'format','content':o(_0x172172,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x430ab9['commandName']){const _0x5f455b=_0x430ab9['commandParams'][0x0]['width'];return _0x5f455b?{'type':'format','content':o(_0x172172,'*Set\x20image\x20width:*\x20%0',_0x5f455b)}:{'type':'format','content':o(_0x172172,'*Reset\x20image\x20width*')};}}});}}class st extends _0x13ee14{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3a983b=this['editor']['locale'],_0x2eb414=this['editor']['plugins']['get']('TrackChangesEditing');_0x2eb414['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2eb414['registerBlockAttribute']('src'),_0x2eb414['descriptionFactory']['registerDescriptionCallback'](_0x43fbea=>{if('attribute'!=_0x43fbea['type'])return;const {data:_0x40c8a9}=_0x43fbea;return _0x40c8a9&&'src'==_0x40c8a9['key']?_0x40c8a9['newValue']&&_0x40c8a9['oldValue']?{'type':'format','content':o(_0x3a983b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x49670e=this['editor']['plugins']['get']('TrackChangesEditing');_0x49670e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x49670e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49670e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x49670e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e3bb6=this['editor'],_0x31a886=_0x3e3bb6['locale'];_0x3e3bb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c914a=>{if('formatBlock'!=_0x4c914a['type']&&'formatInline'!=_0x4c914a['type'])return;const {data:_0x5297c7}=_0x4c914a;if(!_0x5297c7||'replaceImageSource'!=_0x5297c7['commandName'])return;return{'type':'format','content':o(_0x31a886,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x13ee14{['afterInit'](){const _0x1cb18e=this['editor'];if(!_0x1cb18e['plugins']['has']('ImageStyleEditing'))return;const _0x8d4db3=_0x1cb18e['plugins']['get']('TrackChangesEditing'),_0x1932a7=_0x1cb18e['plugins']['get']('ImageUtils'),_0x45d3aa={};_0x8d4db3['enableCommand']('imageStyle',(_0x4a01fd,_0x1cfc4c)=>{const _0x482d03=_0x1cb18e['plugins']['get']('Users')['me'],_0x538b3c=_0x1cb18e['commands']['get']('imageStyle');let _0x4b35f7=_0x1932a7['getClosestSelectedImageElement'](_0x1cb18e['model']['document']['selection']),_0x2f905b=_0x1cb18e['model']['createRangeOn'](_0x4b35f7),_0x3eca4d=_0x538b3c['value'];if(_0x3eca4d==_0x1cfc4c['value'])return;const _0x22495a={'commandName':'imageStyle','commandParams':[_0x1cfc4c],'formatGroupId':_0x4db9f9()};_0x1cb18e['model']['change'](()=>{if(_0x8d4db3['getSuggestions']()['filter'](_0x5924a=>_0x5924a['isInContent']&&_0x482d03==_0x5924a['author']&&('formatBlock'==_0x5924a['type']||'formatInline'==_0x5924a['type'])&&('imageStylePreApply'==_0x5924a['subType']||'imageStylePostApply'==_0x5924a['subType'])&&_0x5924a['getFirstRange']()['isEqual'](_0x2f905b))['forEach'](_0x58fa37=>_0x8d4db3['discardSuggestion'](_0x58fa37['head'])),_0x4b35f7=_0x1932a7['getClosestSelectedImageElement'](_0x1cb18e['model']['document']['selection']),_0x2f905b=_0x1cb18e['model']['createRangeOn'](_0x4b35f7),_0x538b3c['refresh'](),_0x1cb18e['commands']['get']('imageTypeInline')['refresh'](),_0x1cb18e['commands']['get']('imageTypeBlock')['refresh'](),_0x3eca4d=_0x538b3c['value'],_0x3eca4d!=_0x1cfc4c['value'])return _0x1932a7['isInlineImage'](_0x4b35f7)&&_0x538b3c['shouldConvertImageType'](_0x1cfc4c['value'],_0x4b35f7)?(_0x4a01fd({..._0x1cfc4c,'setImageSizes':!0x1}),_0x4b35f7=_0x1932a7['getClosestSelectedImageElement'](_0x1cb18e['model']['document']['selection']),void _0x8d4db3['markBlockFormat'](_0x4b35f7,{..._0x22495a,'commandReversedParams':[{'value':_0x3eca4d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1932a7['isBlockImage'](_0x4b35f7)?_0x8d4db3['markBlockFormat'](_0x4b35f7,_0x22495a,[],'imageStylePostApply'):_0x8d4db3['markInlineFormat'](_0x2f905b,_0x22495a,'imageStylePostApply'));});});for(const _0x27f4bf of _0x1cb18e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x45d3aa[_0x27f4bf['name']]=_0x27f4bf['title']['toLowerCase']();_0x8d4db3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x8d4db3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x8d4db3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x8d4db3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x13bd91])=>{_0x1932a7['setImageNaturalSizeAttributes'](_0x13bd91['getContainedElement']());}),_0x8d4db3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x247e78,_0x5b74eb)=>{_0x8d4db3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x247e78,{'commandName':_0x5b74eb['commandName'],'commandParams':_0x5b74eb['commandReversedParams']});}),_0x8d4db3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x34363d,_0x3f8329){if(_0x206cf0(_0x34363d,_0x3f8329))return[_0x34363d,_0x3f8329];if(_0x206cf0(_0x3f8329,_0x34363d))return[_0x3f8329,_0x34363d];return null;});const _0x24b462=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x206cf0(_0xc1064f,_0x537b9d){const _0x1605df=_0x24b462['findIndex'](({type:_0x36b834,subType:_0x7c0480})=>_0xc1064f['type']==_0x36b834&&_0xc1064f['subType']==_0x7c0480),_0x4b781b=_0x24b462['findIndex'](({type:_0x3635ab,subType:_0x24a832})=>_0x537b9d['type']==_0x3635ab&&_0x537b9d['subType']==_0x24a832);if(_0x1605df<0x0||_0x4b781b<0x0)return!0x1;const _0xd98c56=_0xc1064f['getFirstRange'](),_0x19782d=_0x537b9d['getFirstRange']();if((0x0==_0x1605df||0x1==_0x1605df)&&0x2==_0x4b781b&&_0xd98c56['isIntersecting'](_0x19782d))return!0x0;if(0x2==_0x1605df&&0x3==_0x4b781b){const _0xee5b85=_0x8d4db3['_findSuggestions'](_0xd98c56,'insertion')['filter'](({suggestion:_0xeb90d5,meta:_0x49deda})=>_0x49deda['isOwn']&&'convertInlineImageToBlock'==_0xeb90d5['subType']);if(_0xee5b85['length']>0x1&&_0x19782d['end']['isEqual'](_0xd98c56['start']))return!0x0;if(0x1==_0xee5b85['length']&&(_0xd98c56['start']['isEqual'](_0x19782d['end'])||_0xd98c56['end']['isEqual'](_0x19782d['start'])))return!0x0;}if(0x3==_0x1605df&&0x3==_0x4b781b&&_0xd98c56['start']['isBefore'](_0x19782d['start'])){const _0x2d2642=_0xd98c56['end']['nodeAfter'],_0x2b1737=_0x19782d['start']['nodeBefore'];return _0x1932a7['isBlockImage'](_0x2d2642)&&_0x2d2642===_0x2b1737;}return!0x1;}_0x1cb18e['model']['document']['registerPostFixer'](()=>{let _0x46f206=!0x1;const _0x799590=Array['from'](_0x1cb18e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x160759,data:_0x1678c9}of _0x799590){const {group:_0x1f036d,type:_0x2ec6d6,subType:_0x7df401,id:_0x2bae23}=_0x8d4db3['_splitMarkerName'](_0x160759);if('suggestion'==_0x1f036d&&_0x8d4db3['hasSuggestion'](_0x2bae23)){if('formatBlock'==_0x2ec6d6&&('imageStylePreApply'==_0x7df401||'imageStylePostApply'==_0x7df401)){const _0x5e57ed=_0x8d4db3['getSuggestion'](_0x2bae23);if(_0x1678c9['newRange']){const _0x377c2f=_0x5e57ed['getFirstRange']()['getContainedElement']();if(_0x1932a7['isBlockImage'](_0x377c2f))continue;_0x8d4db3['discardSuggestion'](_0x5e57ed),_0x46f206=!0x0;}}if('insertion'==_0x2ec6d6&&'imageCaption'==_0x7df401&&!_0x1678c9['newRange']){const _0x5859ec=_0x8d4db3['getSuggestion'](_0x2bae23);_0x5859ec['next']&&_0x5859ec['next']['isInContent']&&(_0x8d4db3['discardSuggestion'](_0x5859ec['next']),_0x46f206=!0x0);}}}return _0x46f206;}),this['_registerLegacyDescription'](_0x45d3aa);}['_registerLegacyDescription'](_0x244af2){const _0x2d02f7=this['editor'],_0x5a6754=_0x2d02f7['locale'];_0x2d02f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36a428=>{if('formatBlock'!=_0x36a428['type']&&'formatInline'!=_0x36a428['type'])return;const {data:_0x5142d0}=_0x36a428;if(!_0x5142d0||'imageStyle'!=_0x5142d0['commandName'])return;const _0x3993b3=_0x5142d0['commandParams'][0x0]['value'];return _0x36bfd3('side'===_0x3993b3?o(_0x5a6754,'FORMAT_SIDE_IMAGE'):_0x244af2[_0x3993b3]||_0x3993b3);function _0x36bfd3(_0x17de8d){return{'type':'format','content':o(_0x5a6754,'*Format:*\x20%0',_0x17de8d)};}});}}class ot extends _0x13ee14{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x284a25){super(_0x284a25),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x26442d=this['editor'],_0xf7c359=_0x26442d['commands']['get']('importWord'),_0x376b3b=_0x26442d['commands']['get']('trackChanges');_0xf7c359&&(_0xf7c359['on']('execute',(_0x7ea6ea,[,_0x51e908])=>{this['_trackChangesValueDuringImport']=_0x376b3b['value'],_0x51e908['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xf7c359,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xf7c359,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x376b3b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x26442d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x49c60a,_0x29a05f){const {suggestions:_0x745a60}=_0x29a05f,_0x26052a=this['editor']['commands']['get']('trackChanges'),_0x1bc093=_0x26052a['value'];this['_trackChangesValueDuringImport']!==_0x1bc093&&(_0x26052a['execute'](),this['_trackChangesExecuted']=!0x0),_0x745a60&&_0x745a60['forEach'](({id:_0x74d14f,type:_0x5a7a80,author:_0x37526c,created_at:_0x559d79})=>{const _0xd5f4ea={'id':_0x74d14f,'type':_0x5a7a80,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x37526c,'createdAt':_0x559d79?new Date(_0x559d79):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xd5f4ea);});}}class rt extends _0x13ee14{['afterInit'](){const _0x405d59=this['editor'],_0xc5e0e=_0x405d59['plugins']['get']('TrackChangesEditing');if(_0x405d59['plugins']['has']('IndentEditing')&&(_0xc5e0e['enableCommand']('indent'),_0xc5e0e['enableCommand']('outdent')),_0x405d59['plugins']['has']('IndentBlock')){for(const _0x1875e3 of['indentBlock','outdentBlock'])_0xc5e0e['enableDefaultAttributesIntegration'](_0x1875e3);}const _0x49901b=_0x405d59['locale'];_0xc5e0e['registerBlockAttribute']('blockIndent'),_0xc5e0e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x49901b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5937ea=this['editor'],_0x15b02e=_0x5937ea['locale'],_0x31fc03=_0x5937ea['plugins']['get']('TrackChangesEditing');_0x31fc03['descriptionFactory']['registerDescriptionCallback'](_0x3b74a8=>{if('formatBlock'!=_0x3b74a8['type'])return;const {data:_0xfa26ea}=_0x3b74a8;if(!_0xfa26ea)return;if('indentBlock'!=_0xfa26ea['commandName']&&'outdentBlock'!=_0xfa26ea['commandName'])return;const _0x4e0cc8=_0x3b74a8['getItems']()[0x0],_0x20a9b5=_0x31fc03['descriptionFactory']['getItemLabel'](_0x4e0cc8);return'indentBlock'==_0xfa26ea['commandName']?{'type':'format','content':o(_0x15b02e,'*Indent:*\x20%0',_0x20a9b5)}:'outdentBlock'==_0xfa26ea['commandName']?{'type':'format','content':o(_0x15b02e,'*Outdent:*\x20%0',_0x20a9b5)}:void 0x0;});}}class at extends _0x13ee14{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x13ee14{['afterInit'](){const _0x507fb6=this['editor'];if(!_0x507fb6['plugins']['has']('LinkEditing'))return;const _0x2faf19=_0x507fb6['plugins']['get']('TrackChangesEditing'),_0x324c7e=_0x507fb6['commands']['get']('link');_0x2faf19['enableDefaultAttributesIntegration']('link'),_0x2faf19['enableDefaultAttributesIntegration']('unlink'),_0x2faf19['registerInlineAttribute']('linkHref');for(const _0x36df70 of _0x324c7e['manualDecorators'])_0x2faf19['registerInlineAttribute'](_0x36df70['id']),_0x2faf19['descriptionFactory']['registerAttributeLabel'](_0x36df70['id'],'link\x20('+_0x36df70['label']['toLowerCase']()+')');_0x2faf19['descriptionFactory']['registerDescriptionCallback'](_0x2f14a2=>{if('attribute'!=_0x2f14a2['type'])return;const {data:_0x1a9047}=_0x2f14a2;if(!_0x1a9047||'linkHref'!=_0x1a9047['key'])return;const _0x2c8d64=_0x1a9047['newValue'],_0x13e24a=_0x507fb6['locale'];return{'type':'format','content':null==_0x2c8d64?o(_0x13e24a,'*Remove\x20link*'):o(_0x13e24a,'*Set\x20link:*\x20%0','\x22'+_0x2c8d64+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47c8e4=this['editor'],_0x58115c=_0x47c8e4['locale'];_0x47c8e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b84a2=>{if('formatInline'!=_0x4b84a2['type'])return;const {data:_0x1efc87}=_0x4b84a2;if(_0x1efc87){if('link'==_0x1efc87['commandName']){const _0x177b2e=_0x1efc87['commandParams'][0x0];return{'type':'format','content':o(_0x58115c,'*Set\x20link:*\x20%0','\x22'+_0x177b2e+'\x22')};}return'unlink'==_0x1efc87['commandName']?{'type':'format','content':o(_0x58115c,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x13ee14{['afterInit'](){const _0x276467=this['editor'],_0x4dec00=_0x276467['locale'];if(!_0x276467['plugins']['has']('LegacyListEditing'))return;const _0x19b3f4=_0x276467['plugins']['get']('TrackChangesEditing'),_0x598aa4=_0x276467['plugins']['has']('LegacyTodoListEditing');function _0x15f9c6(_0x267d08){return()=>{const _0x3d22e5=_0x276467['model']['document']['selection'],_0x1a5637=_0x276467['commands']['get'](_0x267d08);if(_0x1a5637['value'])return void _0x276467['execute']('paragraph',{});const _0x5ae025=_0x267d08['slice'](0x0,-0x4),_0x2f99b2=function(_0x1a9297,_0x3a6954,_0x3d7363){let _0x41e1f3=Array['from'](_0x1a9297)['filter'](_0x4f52af=>function(_0x431d19,_0x670b96){return _0x670b96['checkChild'](_0x431d19['parent'],'listItem')&&!_0x670b96['isObject'](_0x431d19);}(_0x4f52af,_0x3d7363));_0x41e1f3=_0x41e1f3['filter'](_0x2bbaea=>!_0x2bbaea['is']('element','listItem')||_0x2bbaea['getAttribute']('listType')!=_0x3a6954);const _0x4b67f0=new Set();for(const _0x5186d8 of _0x41e1f3)_0x5186d8['is']('element','listItem')?_0x4b67f0['add'](me(_0x5186d8)):_0x4b67f0['add'](_0x5186d8);return Array['from'](_0x4b67f0);}(_0x3d22e5['getSelectedBlocks'](),_0x5ae025,_0x276467['model']['schema']);_0x276467['model']['change'](()=>{for(const _0x35a313 of _0x2f99b2)_0x19b3f4['markBlockFormat'](_0x35a313,{'commandName':_0x267d08,'commandParams':[{'forceValue':!_0x1a5637['value']}],'formatGroupId':'blockName'},fe(_0x35a313));});};}function _0x34837c(_0x528fed){return()=>{const _0x41675d=function(_0x5427b4){let _0x1d2c0c=Array['from'](_0x5427b4);const _0x5e097e=_0x1d2c0c['findIndex'](_0x5671bc=>'listItem'!=_0x5671bc['name']);return _0x5e097e>-0x1&&(_0x1d2c0c=_0x1d2c0c['slice'](0x0,_0x5e097e)),_0x1d2c0c;}(_0x276467['model']['document']['selection']['getSelectedBlocks']()),_0x103955=_0x276467['model']['createRange'](_0x276467['model']['createPositionAt'](_0x41675d[0x0],'before'),_0x276467['model']['createPositionAt'](_0x41675d[_0x41675d['length']-0x1],'end'));_0x276467['model']['change'](()=>{_0x19b3f4['markBlockFormat'](_0x103955,{'commandName':_0x528fed,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5368a5){const _0xdefed1=new Set();for(const _0x3fcc0e of _0x5368a5){let _0x424cb2=_0x3fcc0e['nextSibling'];for(;_0x424cb2&&_0x424cb2['getAttribute']('listIndent')>_0x3fcc0e['getAttribute']('listIndent');)_0xdefed1['add'](_0x424cb2),_0x424cb2=_0x424cb2['nextSibling'];}return Array['from'](_0xdefed1);}(_0x41675d));});};}_0x19b3f4['enableCommand']('numberedList',_0x15f9c6('numberedList')),_0x19b3f4['enableCommand']('bulletedList',_0x15f9c6('bulletedList')),_0x598aa4&&_0x19b3f4['enableCommand']('todoList',_0x15f9c6('todoList')),_0x19b3f4['enableCommand']('indentList',_0x34837c('indentList')),_0x19b3f4['enableCommand']('outdentList',_0x34837c('outdentList')),_0x598aa4&&_0x19b3f4['enableCommand']('checkTodoList',()=>{const _0x2eeb03=_0x276467['commands']['get']('checkTodoList'),_0x525496=Array['from'](_0x2eeb03['_selectedElements']);_0x525496['filter'](_0x2820b4=>_0x2820b4['getAttribute']('todoListChecked')!=_0x2eeb03['value']),_0x276467['model']['change'](()=>{for(const _0x96d5ba of _0x525496)_0x19b3f4['markBlockFormat'](_0x96d5ba,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2eeb03['value']}]});});}),_0x19b3f4['descriptionFactory']['registerElementLabel']('listItem',_0x5a8ac4=>o(_0x4dec00,'ELEMENT_LIST_ITEM',_0x5a8ac4)),_0x19b3f4['descriptionFactory']['registerDescriptionCallback'](_0x765a12=>{if('formatBlock'!=_0x765a12['type']&&'formatInline'!=_0x765a12['type'])return;const {data:_0x535529}=_0x765a12;if(_0x535529){if('numberedList'==_0x535529['commandName']||'bulletedList'==_0x535529['commandName']||'todoList'==_0x535529['commandName'])switch(_0x535529['commandName']['replace']('List','')){case'bulleted':return _0x4a6b37(o(_0x4dec00,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4a6b37(o(_0x4dec00,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4a6b37(o(_0x4dec00,'ELEMENT_TODO_LIST'));}if('indentList'==_0x535529['commandName'])return{'type':'format','content':o(_0x4dec00,'*Indent:*\x20%0',o(_0x4dec00,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x535529['commandName'])return{'type':'format','content':o(_0x4dec00,'*Outdent:*\x20%0',o(_0x4dec00,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x535529['commandName'])return _0x535529['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4dec00,'*Check\x20item*')}:{'type':'format','content':o(_0x4dec00,'*Uncheck\x20item*')};}function _0x4a6b37(_0x2d9c64){return{'type':'format','content':o(_0x4dec00,'*Change\x20to:*\x20%0',_0x2d9c64)};}});}}function me(_0x32c001){const _0x244094=_0x32c001['getAttribute']('listIndent');if(0x0==_0x244094)return _0x32c001;let _0x3cf98f=_0x32c001;for(;_0x32c001['previousSibling']&&_0x32c001['previousSibling']['is']('element','listItem');){const _0x2df39e=_0x32c001['previousSibling']['getAttribute']('listIndent');if(_0x2df39e==_0x244094)_0x3cf98f=_0x32c001['previousSibling'];else{if(_0x2df39e<_0x244094)break;}_0x32c001=_0x32c001['previousSibling'];}return _0x3cf98f;}function fe(_0x3a32a6){const _0x5dbb59=[];if(_0x3a32a6['is']('element','listItem')&&_0x3a32a6['getAttribute']('listIndent')>0x0){let _0x25a885=_0x3a32a6['nextSibling'];for(;_0x25a885&&'listItem'==_0x25a885['name']&&_0x25a885['getAttribute']('listIndent')==_0x3a32a6['getAttribute']('listIndent');)_0x5dbb59['push'](_0x25a885),_0x25a885=_0x25a885['nextSibling'];}return _0x5dbb59;}class K extends _0x13ee14{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5529b9=this['editor']['config']['get']('list.properties'),_0x1327f9=this['editor']['plugins']['get']('TrackChangesEditing');_0x5529b9['styles']&&_0x1327f9['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5529b9['reversed']&&_0x1327f9['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5529b9['startIndex']&&_0x1327f9['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1327f9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xcd1c53,_0x1d88e9={}){const _0x1d84fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59a4dc=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1d84fc['markMultiRangeBlockFormat'](_0x59a4dc,{'commandName':'listStyle','commandParams':[{'type':_0x1d88e9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xb8f8ce,_0x1dffe1={}){const _0x44c188=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58de77=this['_getSuggestionBlocks'](_0x1a8409=>_0x1a8409['is']('element','listItem')&&'numbered'===_0x1a8409['getAttribute']('listType'));if(_0x58de77['length']<0x1)return;const _0x162a64=_0x58de77['map'](_0x192fa7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x192fa7,'before'),this['editor']['model']['createPositionAt'](_0x192fa7,0x0)));this['editor']['model']['change'](()=>{_0x44c188['markMultiRangeBlockFormat'](_0x162a64,{'commandName':'listReversed','commandParams':[{'reversed':_0x1dffe1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x14d13c,_0x47882c={}){const _0x2d1911=this['editor']['plugins']['get']('TrackChangesEditing'),_0x387d86=this['_getSuggestionBlocks'](_0x158293=>_0x158293['is']('element','listItem')&&'numbered'===_0x158293['getAttribute']('listType'));if(_0x387d86['length']<0x1)return;const _0x52ef90=_0x387d86['map'](_0x19d6ea=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x19d6ea,'before'),this['editor']['model']['createPositionAt'](_0x19d6ea,0x0)));this['editor']['model']['change'](()=>{_0x2d1911['markMultiRangeBlockFormat'](_0x52ef90,{'commandName':'listStart','commandParams':[{'startIndex':_0x47882c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x383ec9){if('formatBlock'!=_0x383ec9['type']&&'formatInline'!=_0x383ec9['type'])return;const _0x5e38d9=this['editor']['locale'],{data:_0xfd2b9}=_0x383ec9;if(!_0xfd2b9)return;let _0x179add,_0x530017;switch(_0xfd2b9['commandName']){case'listStyle':_0x179add='*Change\x20to:*\x20%0',_0x530017={'type':'format','content':o(_0x5e38d9,_0x179add,o(_0x5e38d9,this['_getTranslationKeyForListStyle'](_0xfd2b9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x179add=_0xfd2b9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x530017={'type':'format','content':o(_0x5e38d9,_0x179add)};break;case'listStart':_0x179add='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x530017={'type':'format','content':o(_0x5e38d9,_0x179add,_0xfd2b9['commandParams'][0x0]['startIndex'])};}return _0x530017;}['_getSuggestionBlocksForListStyle'](){const _0x4e663a=this['editor']['plugins']['get']('LegacyListUtils');let _0x35ca0f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x35ca0f[0x0]?.['is']('element','listItem')&&_0x35ca0f['unshift'](..._0x4e663a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x35ca0f[_0x35ca0f['length']-0x1]?.['is']('element','listItem')&&_0x35ca0f['push'](..._0x4e663a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x35ca0f=[...new Set(_0x35ca0f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x35ca0f=_0x35ca0f['filter'](_0x300d2e=>_0x300d2e['is']('element','listItem'))),_0x35ca0f;}['_getSuggestionBlocks'](_0x3e662d){const _0x3278a2=this['editor']['plugins']['get']('LegacyListUtils');let _0x12bc70=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3e662d)['map'](_0x16a967=>{const _0x362d3f=this['editor']['model']['createPositionAt'](_0x16a967,0x0);return[..._0x3278a2['getSiblingNodes'](_0x362d3f,'backward'),..._0x3278a2['getSiblingNodes'](_0x362d3f,'forward')];})['flat']();return _0x12bc70=[...new Set(_0x12bc70)],_0x12bc70;}['_getTranslationKeyForListStyle'](_0x196682){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x196682)||'default')['toUpperCase']()+'_LIST_'+_0x196682['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x13ee14{['afterInit'](){const _0x244b57=this['editor'];if(!_0x244b57['plugins']['has']('MediaEmbedEditing'))return;const _0x1a73ee=_0x244b57['plugins']['get']('TrackChangesEditing'),_0x42d5f2=_0x244b57['locale'];_0x1a73ee['enableCommand']('mediaEmbed'),_0x1a73ee['descriptionFactory']['registerElementLabel']('media',_0x17445e=>o(_0x42d5f2,'ELEMENT_MEDIA',_0x17445e)),_0x244b57['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x41e9dc,{writer:_0x5d85cb,options:_0x30c87a})=>{if(_0x30c87a['showSuggestionHighlights'])return _0x5d85cb['createEmptyElement']('div');},'converterPriority':'high'}),_0x244b57['data']['downcastDispatcher']['on']('attribute:url:media',(_0x11fac1,_0x504c61,_0x2a13c8)=>{_0x2a13c8['options']['showSuggestionHighlights']&&_0x11fac1['stop']();},{'priority':'high'});}}class gt extends _0x13ee14{['afterInit'](){const _0x117a5b=this['editor'];_0x117a5b['plugins']['has']('MentionEditing')&&_0x117a5b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x13ee14{['afterInit'](){const _0xec73cb=this['editor'],_0x2fcf22=_0xec73cb['plugins']['get']('TrackChangesEditing');_0xec73cb['plugins']['has']('MultiLevelList')&&(_0x2fcf22['enableDefaultAttributesIntegration']('multiLevelList'),_0x2fcf22['registerBlockAttribute']('listMarkerStyle'),_0x2fcf22['descriptionFactory']['registerDescriptionCallback'](_0x4c4277=>this['handleDescriptions'](_0x4c4277)));}['handleDescriptions'](_0x3f44ec){const _0x251acf=this['editor']['locale'],{data:_0x1b6614}=_0x3f44ec,_0x209acd={'type':'format','content':''};if(_0x1b6614&&'listMarkerStyle'==_0x1b6614['key']){if(!_0x1b6614['oldValue'])return{'type':'format','content':o(_0x251acf,'*Set\x20format:*\x20%0',o(_0x251acf,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1b6614['newValue']+')'};if(!_0x1b6614['newValue']){let _0x29ae41=_0x3f44ec['head'];for(;_0x29ae41;){if(_0x29ae41['data']&&'listType'==_0x29ae41['data']['key']&&_0x29ae41['data']['newValue'])return _0x209acd;_0x29ae41=_0x29ae41['next'];}return{'type':'format','content':o(_0x251acf,'*Remove\x20format:*\x20%0',o(_0x251acf,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1b6614['oldValue']+')'};}}}}class mt extends _0x13ee14{['afterInit'](){const _0x16feaa=this['editor'];if(!_0x16feaa['plugins']['has']('PageBreakEditing'))return;_0x16feaa['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x21ac1b=_0x16feaa['plugins']['get']('TrackChangesEditing'),_0x866d89=_0x16feaa['locale'];_0x21ac1b['descriptionFactory']['registerElementLabel']('pageBreak',_0x10aac5=>o(_0x866d89,'ELEMENT_PAGE_BREAK',_0x10aac5));}}class dt extends _0x13ee14{['afterInit'](){const _0xff8d06=this['editor'];if(!_0xff8d06['plugins']['has']('Paragraph'))return;const _0x19eb41=_0xff8d06['locale'],_0x4c17b1=_0xff8d06['plugins']['get']('TrackChangesEditing');_0x4c17b1['descriptionFactory']['registerElementLabel']('paragraph',_0x4bc57e=>o(_0x19eb41,'ELEMENT_PARAGRAPH',_0x4bc57e)),_0x4c17b1['enableDefaultAttributesIntegration']('paragraph'),_0x4c17b1['enableCommand']('insertParagraph'),_0xff8d06['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xff8d06),{'priority':'highest'}),_0xff8d06['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x30ed4e,_0x5487f7,_0x5aa9f5)=>{_0x5aa9f5['options']['showSuggestionHighlights']&&nr(_0xff8d06,{'showActiveMarker':!0x1})(_0x30ed4e,_0x5487f7,_0x5aa9f5);},{'priority':'highest'});const _0x1bf12a=_0x4c17b1['descriptionFactory'];_0x1bf12a['registerDescriptionCallback'](_0x582a89=>{if('insertion'!==_0x582a89['type'])return;const {start:_0x347e9d,end:_0x247420}=_0x582a89['getFirstRange']();if(!_0x347e9d['isTouching'](_0x247420)||!_0x347e9d['nodeAfter'])return;const _0x10a896=_0xff8d06['model']['schema'],_0x380ce5=_0x347e9d['nodeAfter'];return _0x10a896['isBlock'](_0x380ce5)&&!_0x10a896['isLimit'](_0x380ce5)&&_0x10a896['checkChild'](_0x380ce5,'$text')?{'type':'insertion','content':o(_0x19eb41,'*Insert:*\x20%0',_0x1bf12a['getItemLabel'](_0x380ce5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31ef61=this['editor'],_0x199f04=_0x31ef61['locale'];_0x31ef61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b536d=>{if('formatBlock'!=_0x2b536d['type'])return;const {data:_0x2bbe9d}=_0x2b536d;return _0x2bbe9d&&'paragraph'==_0x2bbe9d['commandName']?{'type':'format','content':o(_0x199f04,'*Change\x20to:*\x20%0',o(_0x199f04,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x51402c,{showActiveMarker:_0x533fe9=!0x0}={}){return(_0x5b43fc,_0x599a52,_0x5b9ff2)=>{const _0x4cd10c=_0x51402c['plugins']['get']('TrackChangesEditing'),_0x1155f7=_0x599a52['markerRange']['start'],_0x58dd74=_0x599a52['markerRange']['end'],_0x455045=_0x51402c['model']['schema'];if(!_0x1155f7['isTouching'](_0x58dd74)||!_0x1155f7['nodeAfter'])return;const _0x1b8a1d=_0x1155f7['nodeAfter'];if(_0x455045['isBlock'](_0x1b8a1d)&&!_0x455045['isLimit'](_0x1b8a1d)&&_0x455045['checkChild'](_0x1b8a1d,'$text')){if(!_0x5b9ff2['consumable']['consume'](_0x599a52['markerRange'],_0x5b43fc['name']))return;const _0x31437b=_0x5b9ff2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x484396=_0x5b9ff2['mapper']['toViewPosition'](_0x58dd74);_0x533fe9&&_0x4cd10c['activeMarkers']['includes'](_0x599a52['markerName'])&&_0x5b9ff2['writer']['addClass']('ck-suggestion-marker--active',_0x31437b),_0x5b9ff2['writer']['insert'](_0x484396,_0x31437b),_0x5b9ff2['mapper']['bindElementToMarker'](_0x31437b,_0x599a52['markerName']);}};}class pt extends _0x13ee14{['afterInit'](){const _0x4adf64=this['editor'];if(!_0x4adf64['plugins']['has']('RemoveFormatEditing'))return;_0x4adf64['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3630d0=this['editor'];_0x3630d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4480f8=>{if('formatBlock'!=_0x4480f8['type']&&'formatInline'!=_0x4480f8['type'])return;const {data:_0x48dea8}=_0x4480f8;return _0x48dea8&&'removeFormat'==_0x48dea8['commandName']?{'type':'format','content':o(_0x3630d0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x13ee14{['afterInit'](){const _0x5b0467=this['editor'];if(!_0x5b0467['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5d05a0=_0x5b0467['plugins']['get']('TrackChangesEditing');_0x5d05a0['enableCommand']('goToPreviousRestrictedEditingException'),_0x5d05a0['enableCommand']('goToNextRestrictedEditingException');const _0x25cfd7=_0x5b0467['plugins']['get']('RestrictedEditingModeEditing');_0x25cfd7['enableCommand']('trackChanges'),_0x25cfd7['enableCommand']('acceptSuggestion'),_0x25cfd7['enableCommand']('discardSuggestion'),_0x25cfd7['enableCommand']('acceptAllSuggestions'),_0x25cfd7['enableCommand']('discardAllSuggestions'),_0x25cfd7['enableCommand']('acceptSelectedSuggestions'),_0x25cfd7['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x13ee14{static get['requires'](){return[_0x5d8ce1];}['init'](){const _0x49b8a3=this['editor'],_0xcdcd79=_0x49b8a3['plugins']['get']('TrackChangesEditing');_0xcdcd79['enableCommand']('shiftEnter'),_0x49b8a3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x49b8a3),{'priority':'high'}),_0x49b8a3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x49b8a3),{'priority':'high'}),_0x49b8a3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a20b1,_0x490b92,_0x2ba72a)=>{_0x2ba72a['options']['showSuggestionHighlights']&&de(_0x49b8a3,{'showActiveMarker':!0x1})(_0x3a20b1,_0x490b92,_0x2ba72a);}),_0xcdcd79['descriptionFactory']['registerElementLabel']('softBreak',_0x3b0fd7=>o(_0x49b8a3['locale'],'ELEMENT_LINE_BREAK',_0x3b0fd7));}}function de(_0x20189e,{showActiveMarker:_0x56ceb5=!0x0}={}){return(_0x310f87,_0x30f559,_0x34abe6)=>{const _0x2d429a=_0x20189e['plugins']['get']('TrackChangesEditing');if(!_0x34abe6['consumable']['test'](_0x30f559['markerRange'],_0x310f87['name']))return;const _0x5825d5=_0x20189e['model'];for(const _0x554865 of _0x30f559['markerRange']['getItems']()){if(!_0x554865['is']('element','softBreak'))continue;const _0x53369f='deletion'==_0x30f559['markerName']['split'](':')[0x1]?'merge':'split',_0x25dca4=_0x34abe6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x53369f}),_0x3a00d1=_0x34abe6['mapper']['toViewPosition'](_0x5825d5['createPositionBefore'](_0x554865));_0x56ceb5&&_0x2d429a['activeMarkers']['includes'](_0x30f559['markerName'])&&_0x34abe6['writer']['addClass']('ck-suggestion-marker--active',_0x25dca4),_0x34abe6['writer']['insert'](_0x3a00d1,_0x25dca4),_0x34abe6['mapper']['bindElementToMarker'](_0x25dca4,_0x30f559['markerName']);}};}class wt extends _0x13ee14{['afterInit'](){const _0x362b81=this['editor'],_0x3a3628=_0x362b81['model'],_0x3ea0f5=_0x362b81['locale'];if(!_0x362b81['plugins']['has']('StandardEditingModeEditing'))return;const _0xacb440=_0x362b81['plugins']['get']('TrackChangesEditing'),_0xf15f3a='restrictedEditingException',_0x4777c1=_0x362b81['commands']['get'](_0xf15f3a);_0xacb440['enableCommand'](_0xf15f3a,(_0x27b996,_0x4521b4={})=>{const _0x3040b5=_0x3a3628['document']['selection'];if(_0x3040b5['isCollapsed'])return void _0x27b996(_0x4521b4);const _0x2d6ee5=void 0x0!==_0x4521b4['forceValue']?_0x4521b4['forceValue']:!_0x4777c1['value'];_0x3a3628['change'](()=>{const _0x40a09e=Array['from'](_0x3040b5['getRanges']());for(const _0x5a01c4 of _0x40a09e){const _0xe3f8b5=_0x2d6ee5?[_0x5a01c4]:io(_0xf15f3a,_0x5a01c4,_0x3a3628);for(const _0x26a339 of _0xe3f8b5)_0xacb440['markInlineFormat'](_0x26a339,{'commandName':_0xf15f3a,'commandParams':[{'forceValue':_0x2d6ee5}]});}});}),_0xacb440['descriptionFactory']['registerDescriptionCallback'](_0x3527e7=>{if('formatBlock'!=_0x3527e7['type']&&'formatInline'!=_0x3527e7['type'])return;const {data:_0x5948c1}=_0x3527e7;return _0x5948c1&&_0x5948c1['commandName']==_0xf15f3a?_0x5948c1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ea0f5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3ea0f5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x13ee14{['afterInit'](){const _0x1e09e0=this['editor'];if(!_0x1e09e0['plugins']['has']('Style')||!_0x1e09e0['plugins']['has']('DataSchema'))return;const _0x334a2a=_0x1e09e0['plugins']['get']('TrackChangesEditing'),_0x571516=_0x1e09e0['locale'],_0x3f6fa8=_0x1e09e0['config']['get']('style')||{},_0x2210e0=_0x1e09e0['plugins']['get']('GeneralHtmlSupport'),_0x5b2c19=_0x1e09e0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1e09e0['plugins']['get']('DataSchema'),_0x3f6fa8['definitions']);_0x334a2a['enableDefaultAttributesIntegration']('style');const _0x1ed5b7=new Set();for(const _0x338bad of _0x5b2c19['block']){const _0x40c6c3=_0x2210e0['getGhsAttributeNameForElement'](_0x338bad['element']);_0x1ed5b7['add'](_0x40c6c3);}const _0x1509f5=new Set();for(const _0x54e84b of _0x5b2c19['inline']){const _0x5af7a3=_0x2210e0['getGhsAttributeNameForElement'](_0x54e84b['element']);_0x1509f5['add'](_0x5af7a3);for(const _0x1e6ec3 of _0x54e84b['ghsAttributes'])_0x1509f5['add'](_0x1e6ec3);}for(const _0x1b171a of _0x1ed5b7)_0x334a2a['registerBlockAttribute'](_0x1b171a),_0x334a2a['descriptionFactory']['registerAttributeLabel'](_0x1b171a,o(_0x571516,'FORMAT_STYLE'));for(const _0x15d684 of _0x1509f5)_0x334a2a['registerInlineAttribute'](_0x15d684),_0x334a2a['descriptionFactory']['registerAttributeLabel'](_0x15d684,o(_0x571516,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe6bbe7=this['editor'],_0x3e6034=_0xe6bbe7['locale'];_0xe6bbe7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59240a=>{if('formatBlock'!=_0x59240a['type']&&'formatInline'!=_0x59240a['type'])return;const {data:_0x1657b6}=_0x59240a;return _0x1657b6&&'style'===_0x1657b6['commandName']?_0x1657b6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e6034,'*Set\x20format:*\x20%0',_0x1657b6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3e6034,'*Remove\x20format:*\x20%0',_0x1657b6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x13ee14{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x24404e){super(_0x24404e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x419b66=this['editor'],_0x4e5870=_0x419b66['model']['document']['selection'];if(!_0x419b66['plugins']['has']('TableEditing'))return;const _0x3f494f=_0x419b66['locale'],_0x3c90e1=_0x419b66['plugins']['get']('TrackChangesEditing'),_0x4b95f5=_0x419b66['plugins']['get']('TableUtils');_0x3c90e1['descriptionFactory']['registerElementLabel']('table',_0x565d22=>o(_0x3f494f,'ELEMENT_TABLE',_0x565d22)),this['_setupColumnsRowsFixing'](),_0x3c90e1['enableCommand']('insertTable'),_0x3c90e1['enableCommand']('selectTableRow'),_0x3c90e1['enableCommand']('selectTableColumn');for(const _0x396054 of['insertTableRowAbove','insertTableRowBelow']){const _0x3939e4=_0x419b66['commands']['get'](_0x396054);_0x3c90e1['enableCommand'](_0x396054,_0x28012a=>{_0x419b66['model']['change'](_0x36628a=>{_0x28012a();const _0x3c4112='above'===_0x3939e4['order'],_0x4c5464=_0x4b95f5['getSelectionAffectedTableCells'](_0x4e5870),_0x289be7=_0x4b95f5['getRowIndexes'](_0x4c5464),_0x410d73=_0x3c4112?_0x289be7['first']-0x1:_0x289be7['last']+0x1,_0x359c61=_0x4c5464[0x0]['findAncestor']('table'),_0x325494=_0x4b95f5['createTableWalker'](_0x359c61,{'startRow':_0x410d73,'endRow':_0x410d73}),_0x41301f=Array['from'](_0x325494)['map'](_0x430660=>_0x36628a['createRangeOn'](_0x430660['cell']));_0x3c90e1['markMultiRangeInsertion'](_0x41301f,'tableRow');});});}for(const _0x64bc7f of['insertTableColumnLeft','insertTableColumnRight']){const _0x366215=_0x419b66['commands']['get'](_0x64bc7f);_0x3c90e1['enableCommand'](_0x64bc7f,_0x1b92aa=>{_0x419b66['model']['change'](_0x597151=>{_0x1b92aa();const _0x2c97b0='left'===_0x366215['order'],_0x3b0e80=_0x4b95f5['getSelectionAffectedTableCells'](_0x4e5870),_0x4ee7fd=_0x4b95f5['getColumnIndexes'](_0x3b0e80),_0x575146=_0x2c97b0?_0x4ee7fd['first']-0x1:_0x4ee7fd['last']+0x1,_0x4c2412=_0x3b0e80[0x0]['findAncestor']('table'),_0x1d0982=_0x4b95f5['createTableWalker'](_0x4c2412,{'startRow':0x0,'column':_0x575146,'includeAllSlots':!0x1}),_0x3ccc3e=Array['from'](_0x1d0982)['map'](_0x487441=>_0x597151['createRangeOn'](_0x487441['cell']));_0x3c90e1['markMultiRangeInsertion'](_0x3ccc3e,'tableColumn');});});}for(const _0x4bb159 of['removeTableRow','removeTableColumn']){const _0x3c3628=_0x4bb159['substr'](0xb),_0x5b1397=_0x3c3628['toLowerCase'](),_0x4e8861=_0x5b1397['substr'](0x0,0x3)+'span',_0x296a50='table'+_0x3c3628,_0x47392b='min'+_0x3c3628,_0x5d10f6='max'+_0x3c3628;_0x3c90e1['enableCommand'](_0x4bb159,()=>{_0x419b66['model']['change'](_0x474538=>{const _0x121239=_0x4b95f5['getSelectionAffectedTableCells'](_0x4e5870),_0x183c22=_0x121239[0x0]['findAncestor']('table');let _0x548a0e;if('removeTableRow'==_0x4bb159){const _0x2a4c78=_0x4b95f5['getRowIndexes'](_0x121239);_0x548a0e={'startRow':_0x2a4c78['first'],'endRow':_0x2a4c78['last'],'includeAllSlots':!0x0};}else{const _0x596dbd=_0x4b95f5['getColumnIndexes'](_0x121239);_0x548a0e={'startColumn':_0x596dbd['first'],'endColumn':_0x596dbd['last'],'includeAllSlots':!0x0};}const _0x496c8e=_0x4b95f5['createTableWalker'](_0x183c22,_0x548a0e),_0xd074b3=Array['from'](_0x496c8e)['map'](({cell:_0x4467a1})=>_0x4467a1),_0x3b92d5=Ee(_0xd074b3['filter'](_0x5a0d25=>_0x5a0d25['hasAttribute'](_0x4e8861))),_0x34bbb3=Ee(_0xd074b3['filter'](_0xa0f829=>!_0xa0f829['hasAttribute'](_0x4e8861)))['map'](_0x3ff9f7=>_0x474538['createRangeOn'](_0x3ff9f7)),_0x22a2e9=_0x3c90e1['markMultiRangeDeletion'](_0x34bbb3,_0x296a50);if(_0x22a2e9&&('tableRow'==_0x22a2e9['subType']||'tableColumn'==_0x22a2e9['subType'])){const _0x511f70=this['_getSuggestionCoords'](_0x22a2e9);for(const _0x5892f7 of _0x3b92d5){const _0x387bad=_0x474538['createRangeOn'](_0x5892f7),_0x287930=_0x4b95f5['getCellLocation'](_0x5892f7),_0x421643=_0x5892f7['getAttribute'](_0x4e8861)-0x1,_0x2cfa01=_0x511f70[_0x47392b],_0x52acea=_0x511f70[_0x5d10f6];_0x2cfa01<=_0x287930[_0x5b1397]&&_0x287930[_0x5b1397]+_0x421643<=_0x52acea&&_0x22a2e9['addRange'](_0x387bad);}}});});}function _0x285bdd(_0x3b20c0){const _0x4bdeac=Array['from'](_0x4e5870['getRanges']())['map'](_0x579ccb=>_0x5e3944['fromRange'](_0x579ccb));_0x419b66['model']['change'](_0x4bced6=>{const _0x4a282c=_0x4bced6['batch'];_0x3b20c0=_0x3b20c0['filter'](_0x56d8b7=>'$graveyard'!=_0x56d8b7['root']['rootName']),_0x4bced6['setSelection'](_0x3b20c0),_0x419b66['commands']['get']('removeTableRow')['refresh'](),_0x419b66['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x419b66['model']['enqueueChange'](()=>{_0x419b66['model']['enqueueChange'](_0x4a282c,_0x47610a=>{const _0x5a9248=_0x4bdeac['filter'](_0x5c2a66=>'$graveyard'!=_0x5c2a66['root']['rootName']);_0x5a9248['length']>0x0&&_0x47610a['setSelection'](_0x5a9248);for(const _0x36322c of _0x4bdeac)_0x36322c['detach']();});});});}function _0x54a096(_0x2d6c0c){_0x419b66['model']['change'](_0x515e5e=>{const _0xab9aeb=Array['from'](_0x4e5870['getRanges']())['map'](_0x29361a=>_0x5e3944['fromRange'](_0x29361a)),_0x220a61=[];for(const _0x242df1 of _0x2d6c0c)for(const _0x2147ee of _0x242df1['getItems']({'shallow':!0x0}))_0x220a61['push'](_0x2147ee);for(const _0x2bac0f of _0x220a61)'$graveyard'!=_0x2bac0f['root']['rootName']&&(_0x515e5e['setSelection'](_0x515e5e['createPositionAt'](_0x2bac0f,0x0)),_0x419b66['commands']['get']('removeTableColumn')['refresh'](),_0x419b66['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1d6745=_0xab9aeb['filter'](_0xa2303b=>'$graveyard'!=_0xa2303b['root']['rootName']);_0x1d6745['length']>0x0&&_0x515e5e['setSelection'](_0x1d6745);for(const _0x39d85c of _0xab9aeb)_0x39d85c['detach']();});}function _0x384480(_0x5af31b,_0x5d498c){return _0x5d498c['every'](_0xdddcc0=>_0x5af31b['some'](_0x249df1=>_0x249df1['end']['isEqual'](_0xdddcc0['start'])||_0xdddcc0['end']['isEqual'](_0x249df1['start'])));}function _0x2078ee(_0x2cdedf,_0x155b55){return!_0x2cdedf['some'](_0x3dd37d=>_0x155b55['some'](_0x3eba44=>_0x3dd37d['isIntersecting'](_0x3eba44)))&&_0x2cdedf['some'](_0x566516=>_0x155b55['some'](_0x4cd4ef=>_0x566516['end']['isTouching'](_0x4cd4ef['start'])));}_0x419b66['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x13025a,_0x366e5a,_0x4c5f38)=>{if(!_0x4c5f38['options']['showSuggestionHighlights'])return;const _0x351e25=_0x366e5a['item'];if(!_0x351e25)return;const _0x1b04be=_0x4c5f38['mapper']['toViewElement'](_0x351e25);function _0x59e523(_0x4e66f0){return Array['isArray'](_0x4e66f0)?_0x4e66f0:[_0x4e66f0];}_0x1b04be&&'tableCell'===_0x351e25['name']&&_0x5d78df(_0x1b04be,_0x4c5f38['writer'],(_0x5c2c1c,_0x2ef42a,_0x5cba49)=>_0x5cba49['addClass'](_0x59e523(_0x2ef42a['classes']),_0x5c2c1c),(_0xf38904,_0x1f2b68,_0x1f9180)=>_0x1f9180['removeClass'](_0x59e523(_0x1f2b68['classes']),_0xf38904));},{'priority':'highest'}),_0x3c90e1['descriptionFactory']['registerDescriptionCallback'](_0x220bd7=>{if('insertion'!=_0x220bd7['type']&&'deletion'!=_0x220bd7['type'])return;const _0xa2c2cb=_0x220bd7['getContainedElement']();if(null!=_0xa2c2cb&&_0xa2c2cb['is']('element','table')){if('insertion'==_0x220bd7['type']){const _0x5e4215=_0x220bd7['getItems']()['filter'](_0x15e5af=>_0x15e5af['is']('$textProxy'))['map'](_0x523a13=>_0x523a13['data']);if(_0x5e4215['length'])return{'type':'insertion','content':o(_0x3f494f,'*Insert:*\x20%0',o(_0x3f494f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5e4215['join']('\x20')+'\x22'))};}if('deletion'==_0x220bd7['type']){const _0x1653f1=_0x220bd7['getItems']()['filter'](_0x3cdeaf=>_0x3cdeaf['is']('$textProxy'))['map'](_0x1630ea=>_0x1630ea['data']);if(_0x1653f1['length'])return{'type':'deletion','content':o(_0x3f494f,'*Remove:*\x20%0',o(_0x3f494f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1653f1['join']('\x20')+'\x22'))};}}}),_0x3c90e1['descriptionFactory']['registerDescriptionCallback'](_0x21892a=>{if('tableRow'==_0x21892a['subType']){const _0x4e9c72=_0x21892a['getItems']()['filter'](_0x2ac416=>_0x2ac416['is']('$textProxy'))['map'](_0x5169c1=>_0x5169c1['data']),_0x5689e4=this['_getSuggestionCoords'](_0x21892a),_0x45fbfc=_0x5689e4['maxRow']-_0x5689e4['minRow']+0x1;if('insertion'==_0x21892a['type'])return _0x4e9c72['length']?{'type':'insertion','content':o(_0x3f494f,'*Insert:*\x20%0',o(_0x3f494f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x45fbfc,'\x22'+_0x4e9c72['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3f494f,'*Insert:*\x20%0',o(_0x3f494f,'ELEMENT_TABLE_ROW',_0x45fbfc))};if('deletion'==_0x21892a['type'])return _0x4e9c72['length']?{'type':'deletion','content':o(_0x3f494f,'*Remove:*\x20%0',o(_0x3f494f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x45fbfc,'\x22'+_0x4e9c72['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3f494f,'*Remove:*\x20%0',o(_0x3f494f,'ELEMENT_TABLE_ROW',_0x45fbfc))};}if('tableColumn'==_0x21892a['subType']){const _0x513426=_0x21892a['getItems']()['filter'](_0x40823c=>_0x40823c['is']('$textProxy'))['map'](_0x54185a=>_0x54185a['data']),_0x1fa0e0=this['_getSuggestionCoords'](_0x21892a),_0x344aa5=_0x1fa0e0['maxColumn']-_0x1fa0e0['minColumn']+0x1;if('insertion'==_0x21892a['type'])return _0x513426['length']?{'type':'insertion','content':o(_0x3f494f,'*Insert:*\x20%0',o(_0x3f494f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x344aa5,'\x22'+_0x513426['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3f494f,'*Insert:*\x20%0',o(_0x3f494f,'ELEMENT_TABLE_COLUMN',_0x344aa5))};if('deletion'==_0x21892a['type'])return _0x513426['length']?{'type':'deletion','content':o(_0x3f494f,'*Remove:*\x20%0',o(_0x3f494f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x344aa5,'\x22'+_0x513426['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3f494f,'*Remove:*\x20%0',o(_0x3f494f,'ELEMENT_TABLE_COLUMN',_0x344aa5))};}}),_0x3c90e1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x285bdd),_0x3c90e1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x285bdd),_0x3c90e1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x54a096),_0x3c90e1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x54a096),_0x3c90e1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x384480),_0x3c90e1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x384480),_0x3c90e1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2078ee),_0x3c90e1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2078ee);}['_acceptFormatSuggestionCallbackFactory'](){const _0x532574=this['editor'],_0x40fc7d=_0x532574['model']['document']['selection'];return(_0x990e61,_0x5b53fd)=>{_0x532574['model']['change'](_0x201833=>{const {commandName:_0x29d216,commandParams:_0x59ba0e}=_0x5b53fd;let _0x3db27b=_0x990e61[0x0]['end']['nodeBefore'];_0x59ba0e&&_0x59ba0e[0x0]&&!0x1===_0x59ba0e[0x0]['forceValue']&&(_0x3db27b=_0x990e61[0x0]['start']['nodeAfter']);const _0x1e1d04=_0x201833['createRangeIn'](_0x3db27b);if('$graveyard'==_0x1e1d04['root']['rootName'])return;const _0x13d982=Array['from'](_0x40fc7d['getRanges']())['map'](_0x14d85f=>_0x5e3944['fromRange'](_0x14d85f));_0x201833['setSelection'](_0x1e1d04),_0x532574['commands']['get'](_0x29d216)['refresh'](),_0x59ba0e['push']({'forceDefaultExecution':!0x0}),_0x532574['execute'](_0x29d216,..._0x59ba0e);const _0x367c2c=_0x13d982['filter'](_0x440942=>'$graveyard'!=_0x440942['root']['rootName']);_0x367c2c['length']>0x0&&_0x201833['setSelection'](_0x367c2c);for(const _0x33f3d1 of _0x13d982)_0x33f3d1['detach']();});};}['_getCoordsForCells'](_0xfa9cf0){const _0x401320=this['editor']['plugins']['get']('TableUtils');let _0x3887f8=Number['MAX_SAFE_INTEGER'],_0x406ddd=Number['MIN_SAFE_INTEGER'],_0x2cbb5d=Number['MAX_SAFE_INTEGER'],_0x536010=Number['MIN_SAFE_INTEGER'];for(const _0x135c6f of _0xfa9cf0){if('$graveyard'==_0x135c6f['root']['rootName'])continue;const {row:_0x513328,column:_0x76f55b}=_0x401320['getCellLocation'](_0x135c6f),_0x2812b2=_0x135c6f['hasAttribute']('rowspan')?_0x135c6f['getAttribute']('rowspan')-0x1:0x0,_0x40f517=_0x135c6f['hasAttribute']('colspan')?_0x135c6f['getAttribute']('colspan')-0x1:0x0;_0x3887f8=_0x513328<_0x3887f8?_0x513328:_0x3887f8,_0x406ddd=_0x513328+_0x2812b2>_0x406ddd?_0x513328+_0x2812b2:_0x406ddd,_0x2cbb5d=_0x76f55b<_0x2cbb5d?_0x76f55b:_0x2cbb5d,_0x536010=_0x76f55b+_0x40f517>_0x536010?_0x76f55b+_0x40f517:_0x536010;}return{'minRow':_0x3887f8,'maxRow':_0x406ddd,'minColumn':_0x2cbb5d,'maxColumn':_0x536010};}['_setupColumnsRowsFixing'](){const _0x4e4edb=this['editor'],_0x14000e=_0x4e4edb['plugins']['get']('TrackChangesEditing'),_0x1188ae=_0x4e4edb['plugins']['get']('TableUtils');_0x4e4edb['model']['document']['on']('change:data',()=>{const _0x1aa6d0=Array['from'](_0x4e4edb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x536747,data:_0x3a6ce0}of _0x1aa6d0){const {group:_0x3d6eb5,id:_0x51a48d,subType:_0xb42eca}=_0x14000e['_splitMarkerName'](_0x536747);if('suggestion'!=_0x3d6eb5)continue;if(null!=_0x3a6ce0['oldRange'])continue;const _0x248d96=_0x14000e['getSuggestion'](_0x51a48d);this['_tablePostFixingSubtypes']['includes'](_0xb42eca)&&this['_tableSuggestions']['add'](_0x248d96);}},{'priority':'low'});const _0x4ef2aa=(_0x9c80ad,_0x1fccae)=>{let _0x368d53=!0x1;const _0x229594=_0x1fccae['createRangeOn'](_0x9c80ad),_0x30cde8=_0x9c80ad['findAncestor']('table'),_0x5de444=_0x1188ae['getCellLocation'](_0x9c80ad);for(const _0x2586b0 of this['_tableSuggestions']){const _0x51a50b=_0x2586b0['subType'],_0x2c4f8e=_0x51a50b['startsWith']('tablePaste'),_0x4fc194=_0x51a50b['substr'](_0x2c4f8e?0xa:0x5),_0x8ffc87=_0x4fc194['toLowerCase'](),_0x90e056=_0x8ffc87['substr'](0x0,0x3)+'span',_0x28e865='min'+_0x4fc194,_0x27df24='max'+_0x4fc194;if(!_0x2586b0['isInContent'])continue;if(_0x30cde8!=_0x2586b0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2586b0['isIntersectingWithRange'](_0x229594))continue;const _0x12c005=_0x9c80ad['hasAttribute'](_0x90e056)?_0x9c80ad['getAttribute'](_0x90e056)-0x1:0x0,_0x532a35=this['_getSuggestionCoords'](_0x2586b0),_0x4b9816=_0x532a35[_0x28e865],_0x5681b7=_0x532a35[_0x27df24];_0x4b9816<=_0x5de444[_0x8ffc87]&&_0x5de444[_0x8ffc87]+_0x12c005<=_0x5681b7&&(_0x2586b0['addRange'](_0x229594),_0x368d53=!0x0);}return _0x368d53;};_0x4e4edb['model']['document']['registerPostFixer'](_0x3f43fb=>{let _0x3e137e=!0x1;for(const _0x4b0f82 of _0x4e4edb['model']['document']['differ']['getChanges']())if('insert'==_0x4b0f82['type']){if('tableRow'==_0x4b0f82['name']){for(const _0x526cc1 of _0x4b0f82['position']['nodeAfter']['getChildren']())_0x3e137e=_0x3e137e||_0x4ef2aa(_0x526cc1,_0x3f43fb);}else'tableCell'==_0x4b0f82['name']&&(_0x3e137e=_0x3e137e||_0x4ef2aa(_0x4b0f82['position']['nodeAfter'],_0x3f43fb));}return _0x3e137e;});}['_getSuggestionCoords'](_0x33c54d){return this['_getCoordsForCells'](_0x33c54d['getRanges']()['map'](_0x3cf663=>_0x3cf663['start']['nodeAfter']));}}function Ee(_0x559395){return Array['from'](new Set(_0x559395)['values']());}class St extends _0x13ee14{static get['requires'](){return[jt];}['afterInit'](){const _0x492114=this['editor'],_0x397427=_0x492114['model']['document']['selection'],_0x5833ab=_0x492114['locale'];if(!_0x492114['plugins']['has']('TableEditing'))return;const _0x2059ee=_0x492114['plugins']['get']('TrackChangesEditing'),_0x485285=_0x492114['plugins']['get']('TableUtils'),_0x14fafb=_0x492114['plugins']['get'](jt);_0x14fafb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2059ee['enableCommand']('mergeTableCells',()=>{const _0x3849c0=_0x485285['getSelectionAffectedTableCells'](_0x492114['model']['document']['selection']);_0x492114['model']['change'](()=>{_0x2059ee['markMultiRangeBlockFormat'](_0x3849c0,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x492114['commands']['get']('mergeTableCells')['on']('execute',(_0x37c7fb,_0x4d9053)=>{_0x492114['commands']['get']('trackChanges')['value']&&(_0x4d9053['length']>0x0&&_0x4d9053[_0x4d9053['length']-0x1]&&_0x4d9053[_0x4d9053['length']-0x1]['forceDefaultExecution']||_0x2059ee['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x37c7fb['stop']());},{'priority':'highest'});for(const _0x259cb1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x178885=_0x492114['commands']['get'](_0x259cb1);_0x2059ee['enableCommand'](_0x259cb1,()=>{const _0x4f13d7=_0x492114['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4d63d1=>_0x4d63d1['is']('element','tableCell')),_0x47be7f=_0x178885['value'];_0x492114['model']['change'](()=>{_0x2059ee['markMultiRangeBlockFormat']([_0x4f13d7,_0x47be7f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x535c6d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x43ebba=_0x492114['commands']['get'](_0x535c6d);_0x2059ee['enableCommand'](_0x535c6d,()=>{const _0x37c3f8=_0x485285['getSelectionAffectedTableCells'](_0x492114['model']['document']['selection'])[0x0],_0x17309d=_0x37c3f8['findAncestor']('table'),{column:_0x4fda09,row:_0x49e5a3}=_0x485285['getCellLocation'](_0x37c3f8);let _0x53d7b5=[];if('horizontally'==_0x43ebba['direction']){const _0x271921=_0x485285['createTableWalker'](_0x17309d,{'startRow':_0x49e5a3,'endRow':_0x49e5a3,'includeAllSlots':!0x0});_0x53d7b5=Array['from'](_0x271921)['map'](_0x39d108=>_0x39d108['cell']);}else{const _0x23aad4=_0x485285['createTableWalker'](_0x17309d,{'column':_0x4fda09,'includeAllSlots':!0x0});_0x53d7b5=Array['from'](_0x23aad4)['map'](_0x3bd3bf=>_0x3bd3bf['cell']);}_0x492114['model']['change'](_0x1dacda=>{_0x2059ee['markBlockFormat'](_0x1dacda['createRangeOn'](_0x37c3f8),{'commandName':_0x535c6d,'commandParams':[]},_0x53d7b5,_0x535c6d);});});}_0x2059ee['descriptionFactory']['registerDescriptionCallback'](_0x8ab287=>{if('formatBlock'!=_0x8ab287['type']&&'formatInline'!=_0x8ab287['type'])return;const {data:_0x414dfa}=_0x8ab287;return _0x414dfa&&'mergeTableCells'==_0x414dfa['commandName']?{'type':'format','content':o(_0x5833ab,'*Merge\x20cells*')}:void 0x0;}),_0x2059ee['descriptionFactory']['registerDescriptionCallback'](_0x34a258=>{if('formatBlock'!=_0x34a258['type']&&'formatInline'!=_0x34a258['type'])return;const {data:_0x378ee7}=_0x34a258;return _0x378ee7?'splitTableCellVertically'==_0x378ee7['commandName']?{'type':'format','content':o(_0x5833ab,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x378ee7['commandName']?{'type':'format','content':o(_0x5833ab,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xa49ec4=_0x14fafb['_acceptFormatSuggestionCallbackFactory']();for(const _0x4bc85d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2059ee['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4bc85d,'accept',_0xa49ec4);for(const _0x4d51c8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2059ee['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d51c8,'accept',_0xa49ec4);_0x2059ee['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x417bd3=>{_0x492114['model']['change'](_0x14eb75=>{const _0x548120=Array['from'](_0x397427['getRanges']())['map'](_0x3e5944=>_0x5e3944['fromRange'](_0x3e5944));_0x14eb75['setSelection'](_0x417bd3),_0x492114['commands']['get']('mergeTableCells')['refresh'](),_0x492114['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x28c4c5=_0x548120['filter'](_0x45cd9e=>'$graveyard'!=_0x45cd9e['root']['rootName']);_0x28c4c5['length']>0x0&&_0x14eb75['setSelection'](_0x28c4c5);for(const _0x7c38b2 of _0x548120)_0x7c38b2['detach']();});});for(const _0x5c6684 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x53aeb7=_0x492114['commands']['get'](_0x5c6684);_0x53aeb7['on']('set:isEnabled',(_0xd43e94,_0x480bd2,_0x1f6e82)=>{if(_0x1f6e82){const _0x24251c=_0x492114['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3334e9=>_0x3334e9['is']('element','tableCell'));this['_areMergableCells'](_0x53aeb7['value'],_0x24251c)||(_0xd43e94['return']=!0x1,_0xd43e94['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1269d9=this['editor']['commands']['get']('mergeTableCells'),_0x472f3b=this['editor']['plugins']['get']('TableUtils');if(!_0x1269d9['isEnabled'])return!0x1;const _0x4db553=_0x472f3b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x359432 of _0x4db553)for(const _0x2ed7af of _0x4db553)if(_0x359432!=_0x2ed7af&&!this['_areMergableCells'](_0x359432,_0x2ed7af))return!0x1;return!0x0;}['_areMergableCells'](_0x5b55f4,_0xd2a8ef){const _0x54543f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34885c=this['editor']['model']['createRangeOn'](_0x5b55f4),_0x23b461=this['editor']['model']['createRangeOn'](_0xd2a8ef),_0x1826ea=new Set(),_0x22b979=new Set();for(const _0x1f3101 of _0x54543f['getSuggestions']())if(('insertion'==_0x1f3101['type']||'deletion'==_0x1f3101['type']||'mergeTableCells'==_0x1f3101['subType'])&&_0x1f3101['isInContent']){for(const _0x152619 of _0x1f3101['getRanges']())_0x152619['containsRange'](_0x34885c,!0x0)&&_0x1826ea['add'](_0x1f3101['type']+':'+_0x1f3101['author']['id']),_0x152619['containsRange'](_0x23b461,!0x0)&&_0x22b979['add'](_0x1f3101['type']+':'+_0x1f3101['author']['id']);}if(_0x1826ea['size']!=_0x22b979['size'])return!0x1;for(const _0x41ad4e of _0x1826ea)if(!_0x22b979['has'](_0x41ad4e))return!0x1;return!0x0;}}class At extends _0x13ee14{static get['requires'](){return[jt];}['afterInit'](){const _0x4c3f9a=this['editor'];if(!_0x4c3f9a['plugins']['has']('TableEditing'))return;const _0x1ea84c=_0x4c3f9a['locale'],_0x52caad=_0x4c3f9a['plugins']['get']('TrackChangesEditing');_0x52caad['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x52caad['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x52caad['registerBlockAttribute']('headingRows'),_0x52caad['registerBlockAttribute']('headingColumns'),_0x52caad['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1ea84c,'FORMAT_HEADER_ROW')),_0x52caad['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1ea84c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2b043f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb6e98a=this['editor']['plugins']['get']('TableUtils'),_0x300987=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x123791({showActiveMarker:_0x4043f9=!0x0,setDataAttribute:_0x320c9b=!0x0}={}){return(_0x287f18,_0x5366d9,_0x5d839f)=>{const {type:_0x3dd637,id:_0x3943bf}=_0x2b043f['_splitMarkerName'](_0x5366d9['markerName']),_0x53b2d1=_0x2b043f['getSuggestion'](_0x3943bf),_0x463f42=_0x53b2d1['data'];if('formatBlock'!=_0x53b2d1['type']||!_0x463f42||'setTableColumnHeader'!=_0x463f42['commandName'])return;if(_0x5366d9['item'])return void _0x287f18['stop']();if(!_0x5d839f['consumable']['consume'](_0x5366d9['markerRange'],_0x287f18['name']))return;const _0x44bf3b=_0x5366d9['markerRange']['start']['nodeAfter'],_0x22df14=_0x5366d9['markerRange']['end']['nodeBefore'],_0x571c59=_0x44bf3b['parent']['parent'],{column:_0x3accae}=_0xb6e98a['getCellLocation'](_0x44bf3b),{column:_0x20118c}=_0xb6e98a['getCellLocation'](_0x22df14);for(let _0x4725ec=_0x3accae;_0x4725ec<=_0x20118c;_0x4725ec++){const _0x109b8d=_0xb6e98a['createTableWalker'](_0x571c59,{'column':_0x4725ec,'includeAllSlots':!0x1});for(const _0x44e5d3 of _0x109b8d){const _0x552238=_0x44e5d3['cell'],_0x446df1=_0x5d839f['mapper']['toViewElement'](_0x552238);_0x5d839f['writer']['addClass']('ck-suggestion-marker-'+_0x3dd637,_0x446df1),_0x320c9b&&_0x5d839f['writer']['setAttribute']('data-suggestion',_0x3943bf,_0x446df1),_0x5d839f['mapper']['bindElementToMarker'](_0x446df1,_0x5366d9['markerName']),_0x4043f9&&(_0x2b043f['activeMarkers']['includes'](_0x5366d9['markerName'])?_0x5d839f['writer']['addClass']('ck-suggestion-marker--active',_0x446df1):_0x5d839f['writer']['removeClass']('ck-suggestion-marker--active',_0x446df1));}}};}_0x2b043f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x300987),_0x2b043f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x300987),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x123791(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x6ebf4f,_0x1c4718,_0x917715)=>{_0x917715['options']['showSuggestionHighlights']&&_0x123791({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x6ebf4f,_0x1c4718,_0x917715);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1fff4d,_0x382189,_0x47089b)=>{const {type:_0x3edbe8,id:_0x33063d}=_0x2b043f['_splitMarkerName'](_0x382189['markerName']),_0x2082fd=_0x2b043f['getSuggestion'](_0x33063d),_0x3144b1=_0x2082fd['data'];if('formatBlock'!=_0x2082fd['type']||!_0x3144b1||'setTableColumnHeader'!=_0x3144b1['commandName'])return;const _0x21f248=_0x47089b['mapper']['markerNameToElements'](_0x382189['markerName']);if(_0x21f248){for(const _0x23867d of _0x21f248)_0x47089b['writer']['removeClass']('ck-suggestion-marker-'+_0x3edbe8,_0x23867d),_0x47089b['writer']['removeClass']('ck-suggestion-marker--active',_0x23867d),_0x47089b['writer']['removeAttribute']('data-suggestion',_0x23867d),_0x47089b['mapper']['unbindElementFromMarkerName'](_0x23867d,_0x382189['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11b93c=this['editor'],_0x53939f=_0x11b93c['locale'];function _0x4ffd9b(_0x5d39d4){return{'type':'format','content':o(_0x53939f,'*Format:*\x20%0',_0x5d39d4)};}_0x11b93c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x469fc7=>{if('formatBlock'!=_0x469fc7['type'])return;const {data:_0x473455}=_0x469fc7;if(_0x473455){if('setTableRowHeader'==_0x473455['commandName']){const _0x4580da=_0x473455['commandParams'][0x0]['forceValue'];return _0x4ffd9b(o(_0x53939f,_0x4580da?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x473455['commandName']){const _0x4cfa0c=_0x473455['commandParams'][0x0]['forceValue'];return _0x4ffd9b(o(_0x53939f,_0x4cfa0c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x4a5abd=>[_0x4a5abd,null]));class It extends _0x13ee14{static get['requires'](){return[jt];}['afterInit'](){const _0xeafb0f=this['editor'];if(!_0xeafb0f['plugins']['has']('TableClipboard'))return;const _0x528689=_0xeafb0f['plugins']['get']('TrackChangesEditing'),_0x174d84=_0xeafb0f['plugins']['get']('TableUtils'),_0x3b73d4=_0xeafb0f['plugins']['get'](jt),_0x4b226a=_0xeafb0f['plugins']['get']('TableClipboard');_0x3b73d4['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xeafb0f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xeafb0f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2ea3cd=null;_0xeafb0f['model']['on']('insertContent',(_0x1fef79,_0x4fb384)=>{const [_0x4023ef,_0x4e4f7]=_0x4fb384,_0x26782a=_0x4fb384[_0x4fb384['length']-0x1];_0x26782a&&_0x26782a['forceDefaultExecution']||_0x528689['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x112240,_0x346b87,_0x2bc3f8,_0x39f103,_0x8935ed){if(_0x346b87&&!_0x346b87['is']('documentSelection'))return!0x1;const _0xe38953=_0x8935ed['getTableIfOnlyTableInContent'](_0x112240,_0x2bc3f8);if(!_0xe38953||!he(_0xe38953,void 0x0,_0x39f103))return!0x1;const _0x5d2508=_0x39f103['getSelectionAffectedTableCells'](_0x2bc3f8['document']['selection']);if(!_0x5d2508['length'])return!0x1;const _0x188076=_0x5d2508[0x0]['findAncestor']('table'),_0x24732e=_0x39f103['getRowIndexes'](_0x5d2508),_0x12a469=_0x39f103['getColumnIndexes'](_0x5d2508),_0x37557e={'startRow':_0x24732e['first'],'endRow':_0x24732e['last'],'startColumn':_0x12a469['first'],'endColumn':_0x12a469['last']};return 0x1==_0x5d2508['length']&&(_0x37557e['endRow']+=_0x39f103['getRows'](_0xe38953)-0x1,_0x37557e['endColumn']+=_0x39f103['getColumns'](_0xe38953)-0x1),he(_0x188076,_0x37557e,_0x39f103);}(_0x4023ef,_0x4e4f7,_0xeafb0f['model'],_0x174d84,_0x4b226a)&&(_0x1fef79['stop'](),_0x2ea3cd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xeafb0f['model']['change'](()=>{_0xeafb0f['model']['insertContent'](_0x4fb384[0x0],_0x4fb384[0x1],_0x4fb384[0x2],{'forceDefaultExecution':!0x0});const _0x1b67ed=_0x4db9f9(),{rowInsertionRanges:_0x331438,columnInsertionRanges:_0x4a0baf,insertionRanges:_0x132104,deletionRanges:_0x112338,cells:_0x46b6a3}=_0x2ea3cd;_0x331438['length']&&_0x528689['markMultiRangeInsertion'](_0x331438,'tablePasteRow',{'tablePasteChainId':_0x1b67ed}),_0x4a0baf['length']&&_0x528689['markMultiRangeInsertion'](_0x4a0baf,'tablePasteColumn',{'tablePasteChainId':_0x1b67ed}),_0x132104['length']&&(_0x528689['markMultiRangeInsertion'](_0x132104,'tablePaste',{'tablePasteChainId':_0x1b67ed,'skipNestingCheck':!0x0}),_0x132104['forEach'](_0x26fe07=>_0x26fe07['detach']?.())),_0x112338['length']&&(_0x528689['markMultiRangeDeletion'](_0x112338,'tablePaste',{'tablePasteChainId':_0x1b67ed,'skipNestingCheck':!0x0}),_0x112338['forEach'](_0xdb8667=>_0xdb8667['detach']?.()));const _0x2dc6c3=_0x528689['markMultiRangeBlockFormat'](_0x46b6a3['map'](({element:_0x315698})=>_0x315698),{'formatGroupId':_0x4db9f9()},[],'tablePasteCell',{'tablePasteChainId':_0x1b67ed});if(_0x2dc6c3){const _0xf6b7=_0x2dc6c3['getMarkers'](),_0x3a8af7=[];for(const {element:_0x2d414f,attributes:_0x236220}of _0x46b6a3){if(!_0x236220)continue;const _0x2fe61c=_0xeafb0f['model']['createRangeOn'](_0x2d414f),_0x1b1243=_0xf6b7['find'](_0x53fed8=>_0x53fed8['getRange']()['isEqual'](_0x2fe61c));_0x1b1243&&_0x3a8af7['push']([_0x1b1243['name'],_0x236220]);}_0x3a8af7['length']&&_0x2dc6c3['setAttribute']('markerAttributes',Object['fromEntries'](_0x3a8af7));}_0x2ea3cd=null;}));},{'priority':_0x1ab629['high']+0xa}),_0xeafb0f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xbca579,_0x8e36aa)=>{const [_0x48b1c9,_0x4291f5,,_0x220f68]=_0x8e36aa;if(!_0x2ea3cd)return;_0xbca579['stop']();const _0x567d9e=_0x48b1c9['cell'],_0x365380=_0x4291f5,_0x495faf=Pe(_0x567d9e),_0x5e39e9=Pe(_0x365380);_0xbca579['return']=_0x567d9e;let _0x33a25a=null,_0x52ebe6=null;if(_0x5e39e9||_0x495faf){if(_0x495faf&&!_0x5e39e9){_0x220f68['remove'](_0x567d9e['getChild'](0x0));for(const _0x521ccd of Array['from'](_0x365380['getChildren']()))_0x220f68['insert'](_0x521ccd,_0x567d9e,'end');const _0x9def21=_0x2ea3cd['rowInsertionIndexes']['includes'](_0x48b1c9['row']),_0x5e7910=_0x2ea3cd['columnInsertionIndexes']['includes'](_0x48b1c9['column']);_0x9def21||_0x5e7910||(_0x33a25a=_0x5e3944['fromRange'](_0x220f68['createRangeIn'](_0x567d9e)));}else _0x5e39e9&&!_0x495faf&&(_0x52ebe6=_0x220f68['createRangeIn'](_0x567d9e));}else{const _0xfe423d=_0x220f68['createElement']('tableCellSuggestion'),_0x6a31c=_0x220f68['createElement']('tableCellSuggestion');_0x220f68['wrap'](_0x220f68['createRangeIn'](_0x567d9e),_0x6a31c),_0x220f68['insert'](_0xfe423d,_0x567d9e,0x0);for(const _0x18a44d of Array['from'](_0x365380['getChildren']()))_0x220f68['insert'](_0x18a44d,_0xfe423d,'end');_0x33a25a=_0x5e3944['fromRange'](_0x220f68['createRangeOn'](_0xfe423d)),_0x52ebe6=_0x5e3944['fromRange'](_0x220f68['createRangeOn'](_0x6a31c));}const _0x516d85=Array['from'](_0x365380['getAttributes']())['filter'](([_0x42387a])=>ge['includes'](_0x42387a));_0x2ea3cd['cells']['push']({'element':_0x567d9e,'attributes':_0x516d85['length']?Object['fromEntries'](_0x516d85):null}),_0x33a25a&&_0x2ea3cd['insertionRanges']['push'](_0x33a25a),_0x52ebe6&&_0x2ea3cd['deletionRanges']['push'](_0x52ebe6);},{'priority':'high'}),_0x174d84['on']('insertColumns',(_0x142b20,_0x134018)=>{const [_0x2e104d,_0x41c871={}]=_0x134018;if(!_0x2ea3cd)return;const _0xa6935c=_0x41c871['at']||0x0,_0x59dafc=_0x41c871['columns']||0x1;_0x2ea3cd['columnInsertionIndexes']=new Array(_0x59dafc)['fill'](_0xa6935c)['map']((_0x585355,_0xc9e268)=>_0x585355+_0xc9e268);for(const {cell:_0x4b8865}of _0x174d84['createTableWalker'](_0x2e104d,{'startColumn':_0xa6935c,'endColumn':_0xa6935c+_0x59dafc-0x1}))_0x2ea3cd['columnInsertionRanges']['push'](_0xeafb0f['model']['createRangeOn'](_0x4b8865));},{'priority':'low'}),_0x174d84['on']('insertRows',(_0x4e00b7,_0x32abd7)=>{const [_0x5254de,_0x27c850={}]=_0x32abd7;if(!_0x2ea3cd)return;const _0x3652c6=_0x27c850['at']||0x0,_0x397eb5=_0x27c850['rows']||0x1;_0x2ea3cd['rowInsertionIndexes']=new Array(_0x397eb5)['fill'](_0x3652c6)['map']((_0x521ac4,_0x47751b)=>_0x521ac4+_0x47751b);for(const {cell:_0x2c0e18}of _0x174d84['createTableWalker'](_0x5254de,{'startRow':_0x3652c6,'endRow':_0x3652c6+_0x397eb5-0x1}))_0x2ea3cd['rowInsertionRanges']['push'](_0xeafb0f['model']['createRangeOn'](_0x2c0e18));},{'priority':'low'}),_0x528689['descriptionFactory']['registerDescriptionCallback'](_0x1a9c50=>{if(_0x1a9c50['subType']&&_0x1a9c50['subType']['startsWith']('tablePaste'))return _0x1a9c50['previous']?{}:{'type':'insertion','content':o(_0xeafb0f['locale'],'*Replace\x20table\x20cells*')};});const _0x87f62e=()=>!0x1;for(const _0x55091b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x528689['_suggestionFactory']['registerCustomCallback']('insertion',_0x55091b,'join',_0x87f62e),_0x528689['_suggestionFactory']['registerCustomCallback']('deletion',_0x55091b,'join',_0x87f62e),_0x528689['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x55091b,'join',_0x87f62e);_0x528689['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x87f62e),_0x528689['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3dbe0a,_0x3af437,_0xd22450)=>{const _0x2ff8f2=_0x3dbe0a['map'](_0x517147=>_0x517147['getContainedElement']())['filter'](_0x506d8b=>_0x506d8b),_0x243062=new Map(_0x2ff8f2['map'](_0x58dfb7=>[_0x58dfb7,null]));if(_0x2ea3cd){for(const {element:_0x46b1d,attributes:_0x5e70c8}of _0x2ea3cd['cells'])_0x5e70c8&&_0x243062['set'](_0x46b1d,_0x5e70c8);}else{if(_0xd22450&&_0xd22450['markerAttributes'])for(const [_0x14f411,_0x275cde]of Object['entries'](_0xd22450['markerAttributes'])){const _0xdacb71=_0xeafb0f['model']['markers']['get'](_0x14f411),_0x27755c=_0xdacb71?_0xdacb71['getRange']()['getContainedElement']():null;_0x27755c&&_0x243062['set'](_0x27755c,_0x275cde);}}_0xeafb0f['model']['change'](_0x160812=>{for(const [_0x5d76db,_0x29d1c3]of _0x243062)_0x160812['setAttributes']({...Ce,..._0x29d1c3},_0x5d76db);});});const _0x4cfcdc=(_0x56e152,_0x5bca47)=>{_0x528689['_suggestionFactory']['registerCustomCallback'](_0x56e152,'tablePaste',_0x5bca47,(_0x3376a0,_0x166c66,_0x160d9d)=>{_0xeafb0f['model']['change'](_0x1fb6e1=>{const _0x5178f9=[];for(const _0x6b2edb of _0x3376a0){const _0x5c09d8=_0x6b2edb['start']['nodeAfter'];_0x5c09d8['is']('element','tableCellSuggestion')&&_0x5178f9['push'](_0x5c09d8);}_0x528689['_suggestionFactory']['getSuggestionCallback'](_0x56e152,null,_0x5bca47)(_0x3376a0,_0x166c66,_0x160d9d);for(const _0x7e1b29 of _0x5178f9)'$graveyard'!=_0x7e1b29['root']['rootName']&&_0x1fb6e1['unwrap'](_0x7e1b29);});});};_0x4cfcdc('insertion','accept'),_0x4cfcdc('insertion','discard'),_0x4cfcdc('deletion','accept'),_0x4cfcdc('deletion','discard'),_0x528689['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2feac5=>{const _0x2ef88b=_0x2feac5['map'](_0x45d0cc=>_0x45d0cc['getContainedElement']()),_0x5248d0=_0x2ef88b[0x0]['findAncestor']('table'),{minRow:_0x5741fe,maxRow:_0x52fcfc}=_0x3b73d4['_getCoordsForCells'](_0x2ef88b);_0x174d84['removeRows'](_0x5248d0,{'at':_0x5741fe,'rows':_0x52fcfc-_0x5741fe+0x1});}),_0x528689['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x280532=>{const _0x314e80=_0x280532['map'](_0x4e5edb=>_0x4e5edb['getContainedElement']()),_0x10f803=_0x314e80[0x0]['findAncestor']('table'),{minColumn:_0x835715,maxColumn:_0x144ab5}=_0x3b73d4['_getCoordsForCells'](_0x314e80);_0x174d84['removeColumns'](_0x10f803,{'at':_0x835715,'columns':_0x144ab5-_0x835715+0x1});});const _0x34bc1b=(_0x44108c,_0x308b52)=>{if(!_0x308b52['subType']||!_0x308b52['subType']['startsWith']('tablePaste'))return;const _0x42fd83=_0x308b52['attributes']['tablePasteChainId'],_0x299c44=_0x528689['getSuggestions']()['filter'](_0x55e024=>_0x55e024['isInContent']&&_0x55e024['attributes']&&_0x55e024['attributes']['tablePasteChainId']==_0x42fd83);_0x299c44['length']&&_0x308b52['getAllAdjacentSuggestions']()['length']!=_0x299c44['length']&&_0x299c44['reduce']((_0x343318,_0x2e812a)=>(_0x343318['next']=_0x2e812a,_0x2e812a['previous']=_0x343318,_0x2e812a));};function _0xc0ca2f(_0x12aa5c,_0x5d6a59=!0x0){const {id:_0x463f30}=_0x528689['_splitMarkerName'](_0x12aa5c['markerName']),_0x2947f4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x57f20d=_0x528689['activeMarkers']['includes'](_0x12aa5c['markerName']);return _0x57f20d&&_0x2947f4['push']('ck-suggestion-marker--active'),{'classes':_0x2947f4,'attributes':{'data-suggestion':_0x463f30},'priority':_0x57f20d&&_0x5d6a59?0xbc2:0xbb8};}_0x528689['on']('suggestionLoaded',_0x34bc1b,{'priority':'high'}),_0x528689['on']('suggestionUnloaded',_0x34bc1b,{'priority':'high'}),_0xeafb0f['model']['document']['registerPostFixer'](()=>{let _0x420b25=!0x1;const _0x50b21c=Array['from'](_0xeafb0f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ec1c1,data:_0x447903}of _0x50b21c){const {group:_0x326f67,type:_0x45793a,id:_0x168765}=_0x528689['_splitMarkerName'](_0x3ec1c1);if('suggestion'!=_0x326f67||'deletion'!=_0x45793a||_0x447903['oldRange'])continue;if(!_0x528689['hasSuggestion'](_0x168765))continue;const _0x3c2fe4=_0x528689['getSuggestion'](_0x168765)['getRanges'](),_0x1e4ee2=_0xeafb0f['plugins']['get']('Users')['me'];for(const _0x23a7ae of _0x528689['getSuggestions']()){if(!_0x23a7ae['isInContent']||_0x23a7ae['author']!=_0x1e4ee2)continue;if('formatBlock'!=_0x23a7ae['type']||'tablePasteCell'!=_0x23a7ae['subType'])continue;if(_0x23a7ae['getRanges']()['every'](_0x3c8afd=>_0x3c2fe4['some'](_0xd5e028=>_0xd5e028['containsRange'](_0x3c8afd,!0x0)))){for(const _0x1f769f of _0x23a7ae['getAllAdjacentSuggestions']())_0x1f769f['isInContent']&&(_0x1f769f['discard'](),_0x420b25=!0x0);}}}return _0x420b25;}),_0xeafb0f['model']['document']['registerPostFixer'](_0x4ba922=>{const _0xe1d85b=_0xeafb0f['commands']['get']('redo');if(!_0xe1d85b||!_0xe1d85b['_createdBatches']['has'](_0x4ba922['batch']))return!0x1;let _0x1f27d6=!0x1;const _0x126e46=_0xeafb0f['plugins']['get']('Users')['me'],_0x45a6be=_0xeafb0f['model']['document']['differ']['getChanges'](),_0x259c36=Array['from'](_0xeafb0f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3690e4,data:_0xdb4cdc})=>{const {group:_0x177860,subType:_0x45b0ae,authorId:_0x19c4d5}=_0x528689['_splitMarkerName'](_0x3690e4);return'suggestion'==_0x177860&&'tablePaste'==_0x45b0ae&&_0x19c4d5==_0x126e46['id']&&!_0xdb4cdc['oldRange'];});for(const _0x44de8a of _0x45a6be){if('insert'!=_0x44de8a['type']||'tableCellSuggestion'!=_0x44de8a['name']||0x1!=_0x44de8a['length'])continue;const _0x138b1e=_0x4ba922['createRange'](_0x44de8a['position'],_0x44de8a['position']['getShiftedBy'](0x1));if(!_0x259c36['find'](({data:_0x5d747c})=>_0x5d747c['newRange']['isEqual'](_0x138b1e))){for(const {name:_0x2bc901,data:_0x51f744}of _0x259c36)if(_0x138b1e['containsRange'](_0x51f744['newRange'])){_0x4ba922['updateMarker'](_0x2bc901,{'range':_0x138b1e}),_0x1f27d6=!0x0;break;}}}return _0x1f27d6;}),_0xeafb0f['model']['document']['registerPostFixer'](_0x349e1c=>{let _0x873643=!0x1;const _0x338b16=_0xeafb0f['plugins']['get']('Users')['me'],_0x4a4e13=_0x528689['getSuggestions']()['filter'](_0x5fe3cc=>_0x5fe3cc['isInContent']&&_0x5fe3cc['author']==_0x338b16),_0x38fcd3=new Set(),_0x19daf3=new Set();for(const _0x1177ae of _0x4a4e13)if('tablePaste'==_0x1177ae['subType'])for(const _0x654c0b of _0x1177ae['getMarkers']()){const _0x22619d=_0x654c0b['getRange']()['getContainedElement']();if(_0x22619d){if(_0x22619d['is']('element','tableCellSuggestion')&&Pe(_0x22619d)){_0x1177ae['removeMarker'](_0x654c0b['name']),_0x38fcd3['add'](_0x22619d),_0x873643=!0x0;const _0x2aace7=_0x22619d['nextSibling'],_0x504e62=_0x22619d['previousSibling'],_0x3b5e42=_0x2aace7&&_0x2aace7['is']('element','tableCellSuggestion'),_0x326a56=_0x504e62&&_0x504e62['is']('element','tableCellSuggestion');_0x3b5e42&&!_0x38fcd3['has'](_0x2aace7)&&_0x19daf3['add'](_0x2aace7),_0x326a56&&!_0x38fcd3['has'](_0x504e62)&&_0x19daf3['add'](_0x504e62);}else _0x22619d['is']('element','paragraph')&&_0x22619d['isEmpty']&&(_0x1177ae['removeMarker'](_0x654c0b['name']),_0x873643=!0x0);}}else{if('tablePasteCell'==_0x1177ae['subType']){if(!_0x1177ae['attributes']||!_0x1177ae['attributes']['tablePasteChainId'])continue;const _0x52cb82=_0x1177ae['attributes']['markerAttributes'];if(_0x52cb82&&Object['keys'](_0x52cb82)['length'])continue;const _0xf95082=_0x1177ae['attributes']['tablePasteChainId'];let _0x148c26=!0x0,_0x4dda6f=!0x0;for(const _0x15be69 of _0x4a4e13)if(_0x15be69['subType']&&_0x15be69['subType']['startsWith']('tablePaste')){if(!_0x15be69['attributes']['tablePasteChainId']){_0x4dda6f=!0x1;break;}if(_0x15be69['id']!=_0x1177ae['id']&&_0x15be69['attributes']['tablePasteChainId']==_0xf95082){_0x148c26=!0x1;break;}}_0x4dda6f&&_0x148c26&&(_0x1177ae['removeMarkers'](),_0x873643=!0x0);}}for(const _0xf690cc of _0x38fcd3)_0x349e1c['remove'](_0xf690cc);for(const _0x2ee523 of _0x19daf3)_0x349e1c['unwrap'](_0x2ee523);return _0x873643;}),_0xeafb0f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x229f34,_0x84103a)=>_0xc0ca2f(_0x229f34),'converterPriority':'high'}),_0xeafb0f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x13f75b,_0x5ea6e6)=>_0x5ea6e6['options']['showSuggestionHighlights']?_0xc0ca2f(_0x13f75b,!0x1):null,'converterPriority':'high'});const _0x97d556=_0xeafb0f['editing']['view'];this['listenTo'](_0x97d556['document'],'clipboardOutput',(_0xb5887c,_0x348777)=>{const _0x28952c=[];for(const _0x3c6f2c of _0x97d556['createRangeIn'](_0x348777['content'])['getItems']())_0x3c6f2c['is']('element','suggestion-td')&&_0x28952c['push'](_0x3c6f2c);_0x97d556['change'](_0x26923e=>{for(const _0x2d6cff of _0x28952c)_0x26923e['move'](_0x26923e['createRangeIn'](_0x2d6cff),_0x26923e['createPositionBefore'](_0x2d6cff)),_0x26923e['remove'](_0x2d6cff);});});}}function Pe(_0x25834f){if(_0x25834f['isEmpty'])return!0x0;const _0x4ad5d8=_0x25834f['getChild'](0x0);return _0x4ad5d8['is']('element','paragraph')&&_0x4ad5d8['isEmpty'];}function he(_0x25813f,_0x13eb0={},_0xe1d399){for(const {isAnchor:_0x2e4122,cellHeight:_0x48b141,cellWidth:_0x3f71f2}of _0xe1d399['createTableWalker'](_0x25813f,{'includeAllSlots':!0x0,..._0x13eb0}))if(!_0x2e4122||0x1!=_0x48b141||0x1!=_0x3f71f2)return!0x1;return!0x0;}class vt extends _0x13ee14{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xee4b8=this['editor']['plugins']['get']('TrackChangesEditing');_0xee4b8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xee4b8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xee4b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xee4b8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xee4b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xee4b8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x46f559,_0x57e9b0){const _0x1e07eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x445e59=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x40a3aa=_0x57e9b0['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4585a3=_0x445e59['getColumnGroupElement'](_0x40a3aa);let _0xfcebd0=_0x4585a3?_0x445e59['getTableColumnsWidths'](_0x4585a3):null,_0x59e2a1=_0x40a3aa['getAttribute']('tableWidth')||null;const _0x2d56ae=_0x57e9b0['tableWidth']||_0x59e2a1,_0xf8d318=_0x57e9b0['columnWidths']||_0xfcebd0,_0x576bbe=this['editor']['plugins']['get']('Users')['me'];for(const _0x5d03da of _0x1e07eb['getSuggestions']()){const _0x3056a9=_0x5d03da['getContainedElement']();if('resizeTable'===_0x5d03da['subType']&&_0x3056a9===_0x40a3aa){_0x5d03da['author']!==_0x576bbe&&_0x5d03da['discard']();const _0x433494=_0x5d03da['data']['commandParams'];_0x59e2a1=_0x433494[0x0]['tableWidth'],_0xfcebd0=_0x433494[0x0]['columnWidths'];break;}}_0x46f559({'table':_0x40a3aa,'tableWidth':_0x2d56ae,'columnWidths':_0xf8d318}),_0x1e07eb['markBlockFormat'](_0x40a3aa,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x59e2a1,'columnWidths':_0xfcebd0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x24dc8e){if('formatBlock'!=_0x24dc8e['type']&&'formatInline'!=_0x24dc8e['type'])return;const {data:_0x19e2c3}=_0x24dc8e;if(_0x19e2c3&&'resizeTable'===_0x19e2c3['formatGroupId']){const _0x207f68='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x207f68)};}}}class Ct extends _0x13ee14{['afterInit'](){const _0x1a0bba=this['editor'];_0x1a0bba['plugins']['has']('Template')&&_0x1a0bba['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x13ee14{['afterInit'](){const _0x37b641=this['editor'];if(!_0x37b641['commands']['get']('insertTableOfContents'))return;_0x37b641['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x42c8e3=_0x37b641['plugins']['get']('TrackChangesEditing'),_0x4aae1d=_0x37b641['locale'];_0x42c8e3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4d93f7=>o(_0x4aae1d,'ELEMENT_TABLE_OF_CONTENTS',_0x4d93f7));}}class Dt extends _0x13ee14{['afterInit'](){const _0x2a090c=this['editor'];if(!_0x2a090c['plugins']['has']('Title'))return;const _0x3acec4=_0x2a090c['plugins']['get']('TrackChangesEditing');_0x3acec4['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2a090c['locale'],'ELEMENT_TITLE')),_0x2a090c['model']['document']['registerPostFixer'](_0x34fddc=>{let _0x27bc42=!0x1;const _0x511a03=Array['from'](_0x2a090c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f4f27,data:_0x112ae6}of _0x511a03){const {group:_0x509a57}=_0x3acec4['_splitMarkerName'](_0x2f4f27);if('suggestion'!==_0x509a57||!_0x112ae6['newRange'])continue;const _0x220c8a=_0x112ae6['newRange'],_0x4d76aa=_0x220c8a['end']['nodeBefore'];if(!_0x4d76aa||!_0x4d76aa['is']('element','title-content'))continue;if(!_0x220c8a['start']['isTouching'](_0x220c8a['end']))continue;const _0x8e07f7=_0x2a090c['model']['schema']['getNearestSelectionRange'](_0x220c8a['end'],'forward');if(_0x8e07f7&&_0x8e07f7['isCollapsed']){const _0x2569ba=_0x34fddc['createRange'](_0x220c8a['start'],_0x8e07f7['start']);_0x2569ba['isEqual'](_0x220c8a)||(_0x34fddc['updateMarker'](_0x2f4f27,{'range':_0x2569ba}),_0x27bc42=!0x0);}_0x27bc42||(_0x34fddc['removeMarker'](_0x2f4f27),_0x27bc42=!0x0);}return _0x27bc42;});}}class Nt extends _0x13ee14{['afterInit'](){const _0x2fb977=this['editor'],_0x41dde7=_0x2fb977['plugins']['get']('TrackChangesEditing');_0x2fb977['plugins']['has']('UndoEditing')&&(_0x41dde7['enableCommand']('undo'),_0x41dde7['enableCommand']('redo'));}}class Mt extends _0x13ee14{static get['requires'](){return[jt];}['afterInit'](){const _0x190efb=this['editor'];if(!_0x190efb['plugins']['has']('TableCaptionEditing'))return;_0x190efb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x13ee14{['tableProperties'];['tableCellProperties'];constructor(_0xddb998){super(_0xddb998),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 _0x3ac6a4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4d8f5a of this['tableProperties'])_0x3ac6a4['enableCommand'](_0x4d8f5a,(_0x283b6d,_0x284619)=>{const _0x43be80=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4d8f5a,[_0x43be80],this['tableProperties'],'tableProperties',_0x283b6d,_0x284619);});_0x3ac6a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3ac6a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ac6a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x16ec8d,_0x41445b)=>this['handleDiscardAction'](this['tableProperties'],_0x16ec8d,_0x41445b)),_0x3ac6a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x482a52 of this['tableCellProperties'])_0x3ac6a4['enableCommand'](_0x482a52,(_0x1cd21f,_0xa0ba8f)=>{const _0x3a89ab=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x482a52,_0x3a89ab,this['tableCellProperties'],'tableCellProperties',_0x1cd21f,_0xa0ba8f);});_0x3ac6a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3ac6a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ac6a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2fb7dc,_0x245696)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2fb7dc,_0x245696)),_0x3ac6a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3ac6a4['descriptionFactory']['registerDescriptionCallback'](_0x499271=>this['handleSuggestionDescription'](_0x499271));}['_handlePropertyChange'](_0x44e646,_0x225423,_0x46d587,_0x2a392f,_0x572655,_0x21ab94){const _0x5a050b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x21ab94['batch'],()=>{for(const _0x9f1cbe of _0x225423){if(this['_getSuggestion'](_0x9f1cbe,_0x2a392f))_0x572655(_0x21ab94);else{const _0x5be23e={};for(const _0x1ec646 of _0x46d587){const _0x1bc8ad=_0x9f1cbe['getAttribute'](_0x1ec646);void 0x0!==_0x1bc8ad&&(_0x5be23e[_0x1ec646]=_0x1bc8ad);}_0x572655(_0x21ab94),_0x5a050b['markBlockFormat'](_0x9f1cbe,{'commandParams':[_0x5be23e]},[],_0x2a392f);}}});}['handleDiscardAction'](_0x1aa704,_0x16d65f,_0x4a0e96){const _0x34998d=_0x16d65f[0x0]['start']['nodeAfter'],_0x787bc=_0x4a0e96['commandParams'][0x0];this['editor']['model']['change'](_0x4e58da=>{for(const _0x3bac85 of _0x1aa704)void 0x0!==_0x787bc[_0x3bac85]?_0x4e58da['setAttribute'](_0x3bac85,_0x787bc[_0x3bac85],_0x34998d):_0x4e58da['removeAttribute'](_0x3bac85,_0x34998d);});}['handleSuggestionDescription'](_0x25a957){if(_0x25a957['data'])switch(_0x25a957['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'](_0x32b135,_0x58f25d){const _0x45eb93=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x26b47c of _0x45eb93['getSuggestions']({'skipNotAttached':!0x0})){const _0x35b36c=_0x26b47c['getContainedElement']();if(_0x26b47c['subType']===_0x58f25d&&_0x35b36c===_0x32b135)return _0x26b47c;}return null;}}const m='$elementName';class p extends _0x13ee14{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2b384d,_0x21222d,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x3fae9a){function _0xa3e6b0(_0x5a55ce){return _0x5a55ce['map'](_0x15093a=>String['fromCharCode'](_0x15093a))['join']('');}super(_0x3fae9a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xdb26ac,_0x2e628f,_0x1e5e1c,_0x3905f5)=>{this['_model']['change'](()=>{for(const _0xed45a0 of[..._0x3905f5,..._0x1e5e1c])this['_model']['markers']['has'](_0xed45a0)&&_0x3fae9a['editing']['reconvertMarker'](_0xed45a0);});}),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']=_0x3fae9a['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(),_0x3fae9a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3fae9a['config']['get']('trackChanges.trackFormatChanges'),_0x3fae9a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3fae9a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x3fae9a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xa3e6b0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xa3e6b0([0x34,0x30,0x34,0x38,0x31,0x32,0x31,0x32]);}['init'](){const _0x3db978=this['editor'],_0x1b9455=(_0x344b2a,_0x3d05f2)=>{if('attribute'!=_0x344b2a)return'ck-suggestion-marker-'+_0x344b2a;const _0x4e389e=_0x3d05f2['split']('|')[0x0];return this['_isBlockAttribute'](_0x4e389e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3db978['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5916ab=>{const {id:_0x1fd71e,type:_0x20514d,subType:_0x383362}=this['_splitMarkerName'](_0x5916ab['markerName']),_0x2e7c27=['ck-suggestion-marker',_0x1b9455(_0x20514d,_0x383362)];let _0x246a75=0xbb8;return this['activeMarkers']['includes'](_0x5916ab['markerName'])&&(_0x2e7c27['push']('ck-suggestion-marker--active'),_0x246a75=0xbc2),'deletion'==_0x20514d&&(_0x246a75+=0x5),{'classes':_0x2e7c27,'attributes':{'data-suggestion':_0x1fd71e},'priority':_0x246a75};}}),_0x3db978['conversion']['for']('dataDowncast')['add'](_0x44869d=>{_0x44869d['on']('addMarker:suggestion',(_0x217dae,_0x454a61,_0x471b1c)=>{if(!_0x471b1c['options']['showSuggestionHighlights'])return;const _0x2259d2=_0x454a61['item'];if(!_0x2259d2)return;const _0x2031fb=_0x471b1c['mapper']['toViewElement'](_0x2259d2);_0x3db978['model']['schema']['isObject'](_0x2259d2)&&_0x2031fb&&!_0x2031fb['getCustomProperty']('widget')&&_0x2031fb['is']('containerElement')&&_0x57f04b(_0x2031fb,_0x471b1c['writer']);},{'priority':'high'});}),_0x3db978['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xe86369,_0xecfa5b)=>{if(!_0xecfa5b['options']['showSuggestionHighlights'])return null;const {type:_0x5e7afb,subType:_0x562cee}=this['_splitMarkerName'](_0xe86369['markerName']);return{'classes':['ck-suggestion-marker',_0x1b9455(_0x5e7afb,_0x562cee)],'priority':0xbb8};}});const _0x23bbf=({showActiveMarkers:_0x48f868=!0x0,isAttributeSuggestion:_0x206e93=!0x1}={})=>(_0x2a27e0,_0x3e5289,_0x163794)=>{if(!_0x3e5289['item'])return;const {id:_0x174507}=this['_splitMarkerName'](_0x3e5289['markerName']);if(_0x206e93){const _0x114b09=this['_suggestions']['get'](_0x174507),_0x308dfe=this['_getAttributeKey'](_0x114b09);if(!this['_isBlockAttribute'](_0x308dfe))return;}if(_0x3e5289['item']['is']('selection'))return void _0x163794['consumable']['consume'](_0x3e5289['item'],_0x2a27e0['name']);const _0x1f80bb=_0x163794['mapper']['toViewElement'](_0x3e5289['item']);if(_0x3e5289['item']['is']('element')&&_0x3db978['model']['schema']['isBlock'](_0x3e5289['item'])&&!_0x1f80bb['getCustomProperty']('addHighlight')){_0x163794['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1f80bb),_0x163794['writer']['setAttribute']('data-suggestion',_0x174507,_0x1f80bb),_0x163794['mapper']['bindElementToMarker'](_0x1f80bb,_0x3e5289['markerName']),_0x48f868&&(this['activeMarkers']['includes'](_0x3e5289['markerName'])?_0x163794['writer']['addClass']('ck-suggestion-marker--active',_0x1f80bb):_0x163794['writer']['removeClass']('ck-suggestion-marker--active',_0x1f80bb));for(const _0x456542 of _0x3db978['model']['createRangeIn'](_0x3e5289['item'])['getItems']())_0x163794['consumable']['consume'](_0x456542,_0x2a27e0['name']);_0x163794['consumable']['consume'](_0x3e5289['item'],_0x2a27e0['name']);}};_0x3db978['conversion']['for']('dataDowncast')['add'](_0x1ffb10=>{_0x1ffb10['on']('addMarker:suggestion:formatBlock',(_0x4b6f12,_0x270513,_0x550bc7)=>{_0x550bc7['options']['showSuggestionHighlights']&&_0x23bbf({'showActiveMarkers':!0x1})(_0x4b6f12,_0x270513,_0x550bc7);},{'priority':'highest'});}),_0x3db978['conversion']['for']('dataDowncast')['add'](_0x30aa00=>{_0x30aa00['on']('addMarker:suggestion:attribute',(_0x29c8a9,_0x242440,_0x12272b)=>{_0x12272b['options']['showSuggestionHighlights']&&_0x23bbf({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x29c8a9,_0x242440,_0x12272b);},{'priority':'highest'});}),_0x3db978['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3c935c,_0x2f3334)=>_0x2f3334['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3c935c['substr'](0xb)}}),_0x3db978['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x10a317,{writer:_0x2524d0})=>{let _0x5938a0='suggestion:'+_0x10a317['getAttribute']('suggestion-type')+':'+_0x10a317['getAttribute']('id');return _0x10a317['getAttribute']('marker-count')&&(_0x5938a0+=':'+_0x10a317['getAttribute']('marker-count')),_0x2524d0['createElement']('$marker',{'data-name':_0x5938a0});}}),_0x3db978['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3db978['conversion']['for']('editingDowncast')['add'](_0x55f783=>{_0x55f783['on']('addMarker:suggestion:formatBlock',_0x23bbf(),{'priority':'high'});}),_0x3db978['conversion']['for']('editingDowncast')['add'](_0x12836b=>{_0x12836b['on']('addMarker:suggestion:attribute',_0x23bbf({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3db978['conversion']['for']('editingDowncast')['add'](_0x49c83f=>{_0x49c83f['on']('removeMarker:suggestion:formatBlock',(_0x22afb4,_0x28fc55,_0x1e5279)=>{const _0x434c5e=_0x1e5279['mapper']['markerNameToElements'](_0x28fc55['markerName']);if(_0x434c5e){for(const _0x2ad9cb of _0x434c5e)_0x2ad9cb['getCustomProperty']('addHighlight')||(_0x1e5279['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ad9cb),_0x1e5279['writer']['removeAttribute']('data-suggestion',_0x2ad9cb),_0x1e5279['mapper']['unbindElementFromMarkerName'](_0x2ad9cb,_0x28fc55['markerName']));}},{'priority':'high'});}),_0x3db978['conversion']['for']('editingDowncast')['add'](_0x469b55=>{_0x469b55['on']('removeMarker:suggestion:attribute',(_0x469107,_0x56f370,_0x438340)=>{const _0x258628=_0x438340['mapper']['markerNameToElements'](_0x56f370['markerName']);if(!_0x258628)return;const {id:_0x42a33e}=this['_splitMarkerName'](_0x56f370['markerName']),_0x4acc45=this['_suggestions']['get'](_0x42a33e),_0x5e3a79=this['_getAttributeKey'](_0x4acc45);if(this['_isBlockAttribute'](_0x5e3a79)){for(const _0x2bf35e of _0x258628)_0x2bf35e['getCustomProperty']('addHighlight')||(_0x438340['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2bf35e),_0x438340['writer']['removeAttribute']('data-suggestion',_0x2bf35e),_0x438340['mapper']['unbindElementFromMarkerName'](_0x2bf35e,_0x56f370['markerName']));}},{'priority':'high'});}),_0x3db978['model']['document']['registerPostFixer'](_0x2430ee=>{let _0xa435cd=!0x1;const _0x59183d=Array['from'](_0x3db978['model']['document']['differ']['getChangedMarkers']()),_0xb9780b=new Set();for(const {name:_0xc71827,data:_0x203d29}of _0x59183d){const {group:_0x3c88bb,type:_0x1923af,subType:_0x5d69a8,id:_0x4631a2}=this['_splitMarkerName'](_0xc71827);if('suggestion'!==_0x3c88bb)continue;const _0x472e33=this['_suggestions']['get'](_0x4631a2);if(null!=_0x203d29['newRange']){'formatInline'==_0x1923af&&(_0xa435cd=_0xa435cd||Et(_0x203d29['newRange'],_0xc71827,_0x2430ee,_0x3db978['model']['schema']));const _0x302ed3='attribute'==_0x1923af&&this['_isBlockAttribute'](_0x5d69a8['split']('|')[0x0]);if(_0x203d29['newRange']['isCollapsed']||'$graveyard'==_0x203d29['newRange']['root']['rootName']||'formatBlock'==_0x1923af&&!Ut(_0x203d29['newRange'])||_0x302ed3&&!Ut(_0x203d29['newRange'])||'deletion'==_0x1923af&&!(!Tt(_0x3ff22c=_0x203d29['newRange'])&&!function(_0x26e0fb){return _0x26e0fb['start']['parent']==_0x26e0fb['end']['nodeBefore']&&_0x26e0fb['start']['isAtEnd'];}(_0x3ff22c)))_0x2430ee['removeMarker'](_0xc71827),_0xa435cd=!0x0;else{if(!_0x472e33||!_0x472e33['isInContent'])continue;_0xb9780b['add'](_0x472e33);}}}var _0x3ff22c;return _0xb9780b['size']>0x0&&(_0xa435cd=!!this['_joinWithAdjacentSuggestions'](_0xb9780b)||_0xa435cd),_0xa435cd;}),_0x3db978['model']['document']['registerPostFixer'](_0x20a54f=>{let _0x36ecd8=!0x1;for(const _0x7e6f81 of _0x3db978['model']['document']['differ']['getChanges']())if('insert'==_0x7e6f81['type'])for(const _0x5eb78e of this['_suggestions']['values']()){if(_0x5eb78e['isMultiRange']||!_0x5eb78e['isInContent'])continue;const _0x499c81='formatBlock'==_0x5eb78e['type'],_0x3cb3f8=this['_getAttributeKey'](_0x5eb78e),_0x18bf0b=_0x3cb3f8&&this['_isBlockAttribute'](_0x3cb3f8);if(!_0x499c81&&!_0x18bf0b)continue;const _0x264843=_0x5eb78e['getFirstRange']();if(_0x264843['start']['parent']!=_0x264843['end']['parent']&&!_0x264843['end']['isAtEnd']){const _0x226178=_0x3db978['model']['createPositionAt'](_0x264843['start']['nodeAfter'],'end'),_0x58da28=_0x3db978['model']['createRange'](_0x264843['start'],_0x226178);_0x20a54f['updateMarker'](_0x5eb78e['getFirstMarker'](),{'range':_0x58da28}),_0x36ecd8=!0x0;}}return _0x36ecd8;}),_0x3db978['model']['document']['registerPostFixer'](_0x1e4739=>this['_processAttributeChanges'](_0x1e4739)),_0x3db978['model']['document']['registerPostFixer'](_0x2582be=>!_0x2582be['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2582be)),_0x3db978['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3db978['model']['document']['on']('change:data',(_0x4da272,_0x23e0fc)=>{if(!_0x23e0fc['isLocal']||_0x23e0fc['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x297beb=_0x3db978['model']['document']['differ']['getChanges']();if(0x0==_0x297beb['length'])return;const _0x466023=[],_0x1bd82a=_0x297beb['filter'](_0x5e1473=>'attribute'==_0x5e1473['type']),_0x4fb928=_0x297beb['filter'](_0x21ac72=>'insert'==_0x21ac72['type']&&'$text'!=_0x21ac72['name']);for(const _0x4bf1e5 of _0x1bd82a)this['_isRegisteredAttribute'](_0x4bf1e5['attributeKey'])&&_0x466023['push']({'key':_0x4bf1e5['attributeKey'],'newValue':_0x4bf1e5['attributeNewValue'],'oldValue':_0x4bf1e5['attributeOldValue'],'range':Ot(_0x4bf1e5['range'],_0x3db978['model'])});for(const _0x3195e5 of _0x4fb928){if('rename'!=_0x3195e5['action']&&'refresh'!=_0x3195e5['action'])continue;const _0x1405e1=Gt(_0x3195e5['position']['nodeAfter'],_0x3db978['model']),_0x2173bf=_0x3195e5['before'];'rename'==_0x3195e5['action']&&_0x466023['push']({'key':m,'newValue':_0x3195e5['name'],'oldValue':_0x2173bf['name'],'range':_0x1405e1});for(const [_0x45aab5,_0x47629d]of _0x2173bf['attributes']){if(!this['_isRegisteredAttribute'](_0x45aab5))continue;const _0x23ef3c=_0x3195e5['attributes']['get'](_0x45aab5);_0x47629d!==_0x23ef3c&&_0x466023['push']({'key':_0x45aab5,'newValue':_0x23ef3c,'oldValue':_0x47629d,'range':_0x1405e1});}for(const [_0x355bfa,_0x10ddb6]of _0x3195e5['attributes'])this['_isRegisteredAttribute'](_0x355bfa)&&(_0x2173bf['attributes']['has'](_0x355bfa)||_0x466023['push']({'key':_0x355bfa,'newValue':_0x10ddb6,'oldValue':null,'range':_0x1405e1}));}0x0!=_0x466023['length']&&_0x3db978['model']['enqueueChange'](_0x23e0fc,_0x457717=>{const _0x3859de=_0x4db9f9();for(const {range:_0x3c8b8e,key:_0x41b36d,oldValue:_0x4143bd,newValue:_0x19eb48}of _0x466023)this['markAttributeChange'](_0x3c8b8e,_0x41b36d,_0x4143bd,_0x19eb48,{'groupId':_0x3859de});this['_reduceExistingSuggestions'](_0x457717,_0x466023);});},{'priority':'lowest'}),_0x3db978['model']['markers']['on']('update:suggestion',(_0x374249,_0x9470b3,_0x121750)=>{if(null==_0x121750){const {id:_0x51378a}=this['_splitMarkerName'](_0x9470b3['name']),_0xea4770=this['_suggestions']['get'](_0x51378a);_0xea4770&&_0xea4770['addMarkerName'](_0x9470b3['name']);}}),_0x3db978['model']['document']['on']('change:data',()=>{const _0x1dc307=Array['from'](_0x3db978['model']['document']['differ']['getChangedMarkers']())['filter'](_0x123450=>'suggestion'===this['_splitMarkerName'](_0x123450['name'])['group']);if(0x0===_0x1dc307['length'])return;_0x1dc307['sort']((_0x598cc1,_0x473d5b)=>{const _0x1851a7=_0x598cc1['data']['oldRange'],_0x4520bf=_0x473d5b['data']['oldRange'];return null===_0x1851a7&&null===_0x4520bf?0x0:null===_0x1851a7&&null!==_0x4520bf?-0x1:null!==_0x1851a7&&null===_0x4520bf?0x1:_0x1851a7['start']['isBefore'](_0x4520bf['start'])?-0x1:0x1;});const _0x5abaf6=new Set(),_0x15ee92=new Set();for(const {name:_0x58646a,data:_0x326c22}of _0x1dc307){const {id:_0x4500c3}=this['_splitMarkerName'](_0x58646a);if(null===_0x326c22['oldRange']){const _0x3b60ad=this['_handleNewSuggestionMarker'](_0x58646a);_0x15ee92['add'](_0x3b60ad);}else{const _0x1ae741=this['_suggestions']['get'](_0x4500c3);null!==_0x326c22['newRange']||_0x1ae741['isInContent']?(_0x5abaf6['add'](_0x1ae741['head']),_0x15ee92['add'](_0x1ae741)):this['_removeSuggestion'](_0x1ae741);}}_0x15ee92['size']>0x0&&this['_refreshSuggestionsChain'](_0x15ee92);for(const _0x2eae30 of _0x5abaf6)this['fire']('suggestionChanged',_0x2eae30);}),_0x3db978['model']['on']('applyOperation',(_0x44b29d,_0x383a1)=>{const _0x2c3e35=_0x383a1[0x0];if(!this['_suggestions']['size'])return;if(!_0x2c3e35['isDocumentOperation'])return;if(_0x2c3e35['batch']['isUndo']||!_0x2c3e35['batch']['isLocal'])return;let _0x245492,_0x56ab66;switch(_0x2c3e35['type']){case'insert':_0x245492=_0x3db978['model']['createPositionAt'](_0x2c3e35['position']),_0x56ab66=_0x245492['getShiftedBy'](_0x2c3e35['howMany']);break;case'split':_0x245492=_0x3db978['model']['createPositionAt'](_0x2c3e35['splitPosition']),_0x56ab66=_0x3db978['model']['createPositionAt'](_0x2c3e35['moveTargetPosition']);break;case'move':_0x245492=_0x3db978['model']['createPositionAt'](_0x2c3e35['targetPosition']),_0x56ab66=_0x245492['getShiftedBy'](_0x2c3e35['howMany']);break;default:return;}const _0x39b3a7=_0x3db978['model']['createRange'](_0x245492,_0x56ab66);_0x3db978['model']['change'](()=>{for(const {suggestion:_0x39d9f7,meta:_0xae08f0}of this['_findSuggestions'](_0x39b3a7)){if(_0x39d9f7['isMultiRange'])continue;if('formatInline'==_0x39d9f7['type'])continue;const _0x39aade=this['_getAttributeKey'](_0x39d9f7);if(_0x39aade&&this['_isBlockAttribute'](_0x39aade)&&'split'!=_0x2c3e35['type'])continue;const _0x27b31d=_0x39d9f7['data']&&_0x39d9f7['data']['multipleBlocks'];('formatBlock'!=_0x39d9f7['type']||'split'==_0x2c3e35['type']&&!_0x27b31d)&&(_0xae08f0['containsRangeInObject']||'insertion'==_0x39d9f7['type']&&_0xae08f0['isOwn']||_0x39d9f7['getFirstRange']()['containsRange'](_0x39b3a7)&&this['_breakSuggestionMarker'](_0x39d9f7,_0x245492,_0x56ab66));}});},{'priority':'lowest'}),_0x3db978['model']['on']('deleteContent',(_0x30abbf,_0x20801c)=>{const _0x1fa40d=_0x20801c[0x0],_0x1e0b1d=_0x20801c[0x1];if(_0x1e0b1d&&_0x1e0b1d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1fa40d['isCollapsed'])return;const _0x5884d6=_0x3db978['model']['schema'],{start:_0x20218d,end:_0x405c8f}=_0x1fa40d['getFirstRange'](),_0x21e3ff=_0x20218d['nodeAfter']&&_0x5884d6['isLimit'](_0x20218d['nodeAfter'])?null:_0x5884d6['getNearestSelectionRange'](_0x20218d,'forward'),_0x4311fc=_0x405c8f['nodeBefore']&&_0x5884d6['isLimit'](_0x405c8f['nodeBefore'])?null:_0x5884d6['getNearestSelectionRange'](_0x405c8f,'backward'),_0x54c4a2=_0x3db978['model']['createRange'](_0x21e3ff?_0x21e3ff['start']:_0x20218d,_0x4311fc?_0x4311fc['end']:_0x405c8f);_0x3db978['model']['change'](_0x534d58=>{this['markDeletion'](_0x54c4a2);const _0x49b6c6=_0x3db978['model']['schema']['getNearestSelectionRange'](_0x54c4a2['start']);_0x1fa40d['is']('documentSelection')?_0x534d58['setSelection'](_0x49b6c6):_0x1fa40d['setTo'](_0x49b6c6);}),_0x30abbf['stop']();},{'priority':_0x1ab629['normal']+0xa}),_0x3db978['model']['on']('insertContent',(_0xca5b96,_0x3e65d4)=>{const _0x3bd720=_0x3e65d4[_0x3e65d4['length']-0x1];_0x3bd720&&_0x3bd720['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3db978['model']['change'](()=>{let _0x19af9d=_0x3db978['model']['insertContent'](_0x3e65d4[0x0],_0x3e65d4[0x1],_0x3e65d4[0x2],{'forceDefaultExecution':!0x0});if(!_0x19af9d)return;_0xca5b96['return']=_0x19af9d['clone']();const _0x1fae48=_0x19af9d['end']['nodeBefore'],_0x98542e=_0x3db978['model']['schema'];_0x1fae48&&_0x98542e['isBlock'](_0x1fae48)&&!_0x98542e['isObject'](_0x1fae48)&&(_0x19af9d=_0x3db978['model']['createRange'](_0x19af9d['start'],_0x3db978['model']['createPositionAt'](_0x1fae48,'end'))),this['markInsertion'](_0x19af9d);}),_0xca5b96['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5e3b66=new $(_0x3db978,this['_suggestions']);_0x3db978['commands']['add']('acceptSuggestion',_0x5e3b66),this['enableCommand']('acceptSuggestion');const _0xc0c315=new B(_0x3db978,this['_suggestions']);_0x3db978['commands']['add']('discardSuggestion',_0xc0c315),this['enableCommand']('discardSuggestion'),_0x3db978['commands']['add']('acceptAllSuggestions',new x(_0x3db978,_0x5e3b66,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3db978['commands']['add']('discardAllSuggestions',new x(_0x3db978,_0xc0c315,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3db978['commands']['add']('acceptSelectedSuggestions',new R(_0x3db978,_0x5e3b66,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3db978['commands']['add']('discardSelectedSuggestions',new R(_0x3db978,_0xc0c315,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x133cc9=_0x3db978['plugins']['get']('CommentsRepository');this['listenTo'](_0x133cc9,'addComment',(_0xb0de2f,{threadId:_0xca432b})=>{const _0x91c8d8=this['_suggestions']['get'](_0xca432b);_0x91c8d8&&_0x91c8d8['commentThread']&&0x1===_0x91c8d8['commentThread']['length']&&this['_updateSuggestionData'](_0xca432b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x133cc9,'removeComment',(_0x280eb0,{threadId:_0x5d00f6})=>{const _0x2db5dc=this['_suggestions']['get'](_0x5d00f6);_0x2db5dc&&_0x2db5dc['commentThread']&&!_0x2db5dc['commentThread']['length']&&this['_updateSuggestionData'](_0x5d00f6,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2910b1){if(this['_adapter'])throw new _0x38738a('track-changes-adapter-already-set',this);this['_adapter']=_0x2910b1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x372ffa=!0x1,toJSON:_0x2d2499=!0x1}={}){const _0x5834fb=[];for(const _0x2555b7 of this['_suggestions']['values']())_0x372ffa&&!_0x2555b7['isInContent']||_0x5834fb['push'](_0x2555b7);return _0x2d2499?_0x5834fb['map'](_0xd61b25=>_0xd61b25['toJSON']()):_0x5834fb;}['getSuggestion'](_0x57d05a){const _0x25affd=this['_suggestions']['get'](_0x57d05a);if(!_0x25affd)throw new _0x38738a('track-changes-suggestion-not-found',this);return _0x25affd;}['hasSuggestion'](_0x1ce712){return this['_suggestions']['has'](_0x1ce712);}['addSuggestionData'](_0x1de901){const {authorId:_0x4d483b,id:_0xcc51c,attributes:_0x5ed1de}=_0x1de901,[_0x4ddf7c,_0x3d990e]=_0x1de901['type']['split'](':'),_0x1ff2d8=this['_suggestions']['get'](_0xcc51c)||this['_createSuggestion'](_0x4ddf7c,_0x3d990e,_0xcc51c,_0x4d483b,_0x5ed1de);if(this['_addThreadToSuggestion'](_0x1ff2d8),this['_checkSuggestionCorrectness'](_0x1ff2d8,_0x4ddf7c,_0x3d990e||null,_0x4d483b),_0x1ff2d8['createdAt']=_0x1de901['createdAt'],_0x1ff2d8['_isDataLoaded']=!0x0,_0x5ed1de&&_0x5ed1de['@external']){const _0x421577=_0x5ed1de['@external'],_0x5ebcca=this['_getExternalAuthor'](_0x421577['authorName']);_0x1ff2d8['authoredAt']=_0x421577['createdAt'],_0x1ff2d8['author']=_0x5ebcca,_0x1ff2d8['isExternal']=!0x0;}else _0x1ff2d8['authoredAt']=_0x1de901['createdAt'];switch(_0x1de901['data']&&(_0x1ff2d8['data']=_0x1de901['data']),_0x1de901['attributes']&&(_0x1ff2d8['attributes']=_0x1de901['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1ff2d8['_saved']=!0x0),this['_suggestionState']['get'](_0x1ff2d8)){case'notReady':this['_suggestionState']['set'](_0x1ff2d8,'dataReady');break;case'markerReady':_0x1ff2d8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1ff2d8])),this['_refreshSuggestionsChain'](new Set([_0x1ff2d8])),this['_suggestionState']['set'](_0x1ff2d8,'ready'),this['fire']('suggestionLoaded',_0x1ff2d8)):this['_suggestionState']['set'](_0x1ff2d8,'removed');}return _0x1ff2d8;}['acceptSuggestion'](_0x30e7cf){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4b1673 of _0x30e7cf['getAllAdjacentSuggestions']())_0x4b1673['accept']();});});}['discardSuggestion'](_0x29114d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3f7704 of _0x29114d['getAllAdjacentSuggestions']())_0x3f7704['discard']();});});}['enableCommand'](_0x57d854,_0x39e435){const _0x2dd5a8=this['editor']['commands']['get'](_0x57d854);if(!_0x2dd5a8)throw new _0x38738a('track-changes-command-not-found',this,{'commandName':_0x57d854});if(this['_enabledCommands']['has'](_0x2dd5a8))throw new _0x38738a('track-changes-enable-command-twice',this,{'commandName':_0x57d854});this['_enabledCommands']['add'](_0x2dd5a8),_0x39e435&&_0x2dd5a8['on']('execute',(_0xfa4030,_0x757d13)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x757d13['length']>0x0&&_0x757d13[_0x757d13['length']-0x1]&&_0x757d13[_0x757d13['length']-0x1]['forceDefaultExecution']?_0x757d13['pop']():(_0xfa4030['return']=_0x39e435((..._0x4af54c)=>_0x2dd5a8['execute'](..._0x4af54c,{'forceDefaultExecution':!0x0}),..._0x757d13),_0xfa4030['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1fee7e){let _0x221cf2,_0x1f87dd;const _0x59d83c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x221cf2=_0x1fee7e();}catch(_0x285309){_0x1f87dd=_0x285309;}return _0x59d83c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1f87dd&&_0x38738a['rethrowUnexpectedError'](_0x1f87dd,this),_0x221cf2;}['markInsertion'](_0x20f4ce,_0x2b097d=null,_0x4d2e1c={}){if(_0x20f4ce['isCollapsed'])return null;const _0x22d104=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xf410e0,meta:_0xbd718c}of this['_findSuggestions'](_0x20f4ce,'insertion'))if(_0xbd718c['isOwn']){if(!_0xbd718c['isNextTo']){if(_0xbd718c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0xf410e0,_0x4d2e1c))continue;return _0xf410e0;}if(Lt(_0xf410e0,_0x4d2e1c))return _0xf410e0;this['_breakSuggestionMarker'](_0xf410e0,_0x20f4ce['start'],_0x20f4ce['end']);break;}if(_0x2b097d==_0xf410e0['subType']&&Lt(_0xf410e0,_0x4d2e1c)){const _0x10cb50=_0xf410e0['getFirstRange']();return _0x10cb50['start']['isEqual'](_0x20f4ce['end'])?this['_setSuggestionRange'](_0xf410e0,this['_model']['createRange'](_0x20f4ce['start'],_0x10cb50['end'])):this['_setSuggestionRange'](_0xf410e0,this['_model']['createRange'](_0x10cb50['start'],_0x20f4ce['end'])),_0xf410e0;}}const _0x2255e9=_0x4db9f9(),_0x3852d9=_0x22d104['id'],_0x16553c=_0x2b097d?'insertion:'+_0x2b097d:'insertion',_0x28c00e=this['_setSuggestionData']({'id':_0x2255e9,'type':_0x16553c,'createdAt':new Date(),'authorId':_0x3852d9,'attributes':_0x4d2e1c});return this['_addSuggestionMarker'](_0x16553c,_0x2255e9,_0x3852d9,_0x20f4ce),_0x28c00e;}['markMultiRangeInsertion'](_0x4afb42,_0x230b5d='multi',_0x3a87a2={}){const _0x149086=this['editor']['plugins']['get']('Users')['me'],_0x3d6ac3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x230b5d,'join');for(const _0x187d96 of this['getSuggestions']())if(_0x187d96['author']['id']==_0x149086['id']&&'insertion'==_0x187d96['type']&&_0x187d96['subType']==_0x230b5d&&Lt(_0x187d96,_0x3a87a2)&&(_0x3d6ac3(_0x187d96['getRanges'](),_0x4afb42)||_0x3d6ac3(_0x4afb42,_0x187d96['getRanges']()))){for(const _0x5c176b of _0x4afb42)_0x187d96['addRange'](_0x5c176b);return _0x187d96;}for(const {suggestion:_0x3b219f,meta:_0x19735d}of this['_findSuggestions'](_0x4afb42,'insertion')){if(!_0x19735d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x19735d['containsRangeInObject'])continue;if(!Lt(_0x3b219f,_0x3a87a2))continue;let _0x1796d7=!0x0;for(const _0xde9c2b of _0x3b219f['getRanges']())for(const _0x2ac06b of _0x4afb42)if(!_0xde9c2b['containsRange'](_0x2ac06b)){_0x1796d7=!0x1;break;}if(_0x1796d7)return _0x3b219f;}const _0x570e21=_0x4db9f9(),_0x3f793c=_0x149086['id'],_0x24be3d='insertion:'+_0x230b5d,_0x40a6ea=this['_setSuggestionData']({'id':_0x570e21,'type':_0x24be3d,'createdAt':new Date(),'authorId':_0x3f793c,'attributes':_0x3a87a2});for(const _0x3e42a7 of _0x4afb42)this['_addSuggestionMarker'](_0x24be3d,_0x570e21,_0x3f793c,_0x3e42a7,u['getMultiRangeId']());return _0x40a6ea;}['markInlineFormat'](_0x9fa647,_0x229916,_0xbfdcd3=null,_0xe2d995={}){if(_0xbfdcd3=_0xbfdcd3||Vt(_0x229916),_0x9fa647['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2bbb8f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xbfdcd3,'accept');return this['forceDefaultExecution'](()=>_0x2bbb8f([_0x9fa647],_0x229916,_0xe2d995)),null;}const _0x24dea6=this['editor']['plugins']['get']('Users')['me'],_0x468b0f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x57db99,meta:_0x1ffba4}of this['_findSuggestions'](_0x9fa647,'insertion'))_0x1ffba4['isOwn']&&!_0x1ffba4['isInsideObject']&&_0x468b0f['push'](..._0x57db99['getRanges']());}const _0x13c69f=function(_0x509b49,_0x38534e){const _0x186be5=[];for(const _0x2ca03d of _0x38534e){const _0x549cb3=_0x509b49['getIntersection'](_0x2ca03d);_0x549cb3&&_0x186be5['push'](_0x549cb3);}return _0x186be5;}(_0x9fa647,_0x468b0f),_0x2db31e=function(_0x42a294,_0x3775b2){const _0x46f7f1=[_0x42a294];for(const _0x502db7 of _0x3775b2){let _0xdbb504=0x0;for(;_0xdbb504<_0x46f7f1['length'];){const _0xb13842=_0x46f7f1[_0xdbb504]['getDifference'](_0x502db7);_0x46f7f1['splice'](_0xdbb504,0x1,..._0xb13842),_0xdbb504+=_0xb13842['length'];}}return _0x46f7f1;}(_0x9fa647,_0x468b0f);_0x13c69f['length']&&this['_model']['change'](()=>{for(const _0x4f6073 of _0x13c69f){const _0x4f515e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xbfdcd3,'accept');this['forceDefaultExecution'](()=>_0x4f515e([_0x4f6073],_0x229916,_0xe2d995));}});for(const _0x479929 of _0x2db31e){let _0x4905a6=null,_0x42db00=_0x479929['start'],_0x3c7e19=_0x479929['end'];for(const {suggestion:_0x4e1714,meta:_0x45c84e}of this['_findSuggestions'](_0x479929,'formatInline')){if(!_0x45c84e['isOwn'])continue;if(_0x4e1714['subType']!=_0xbfdcd3)continue;if(!Lt(_0x4e1714,_0xe2d995))continue;const _0x3f8b54=_0x4e1714['getFirstRange']();if(_0x3f8b54['containsRange'](_0x479929,!0x0))return null;_0x42db00=_0x42db00['isBefore'](_0x3f8b54['start'])?_0x42db00:_0x3f8b54['start'],_0x3c7e19=_0x3c7e19['isAfter'](_0x3f8b54['end'])?_0x3c7e19:_0x3f8b54['end'],_0x4905a6?_0x3f8b54['start']['isBefore'](_0x4905a6['getFirstRange']()['start'])?(_0x4905a6['removeMarkers'](),_0x4905a6=_0x4e1714):_0x4e1714['removeMarkers']():_0x4905a6=_0x4e1714;}const _0xa8db0b=this['_model']['createRange'](_0x42db00,_0x3c7e19);if(_0x4905a6)this['_setSuggestionRange'](_0x4905a6,_0xa8db0b);else{const _0x45a5dd=_0x4db9f9(),_0xc9651e=_0x24dea6['id'];this['_setSuggestionData']({'id':_0x45a5dd,'type':'formatInline:'+_0xbfdcd3,'data':_0x229916,'createdAt':new Date(),'authorId':_0xc9651e,'attributes':_0xe2d995}),this['_addSuggestionMarker']('formatInline:'+_0xbfdcd3,_0x45a5dd,_0xc9651e,_0xa8db0b);}}return null;}['markBlockFormat'](_0x401b6b,_0x271fc7,_0x44f636=[],_0x50c0d0=null,_0x15faaa={}){_0x271fc7['formatGroupId']||(_0x271fc7['formatGroupId']=_0x271fc7['commandName']),_0x271fc7['multipleBlocks']=_0x401b6b['is']('range'),_0x50c0d0=_0x50c0d0||Vt(_0x271fc7);const _0x128385=_0x44f636['map'](_0x12c421=>Gt(_0x12c421,this['_model'])),_0x15f646=_0x401b6b['is']('range')?_0x401b6b:Gt(_0x401b6b,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1bf840=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50c0d0,'accept');return this['forceDefaultExecution'](()=>_0x1bf840([_0x15f646],_0x271fc7,_0x15faaa)),null;}_0x128385['push'](_0x15f646);let _0x3f74f7=!0x0;for(const _0x48e6aa of _0x128385)if(!this['_rangeIsInLocalUserInsertion'](_0x48e6aa)){_0x3f74f7=!0x1;break;}if(_0x3f74f7&&'always'!==this['_trackFormatChanges']){const _0x42f7f4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50c0d0,'accept');return this['forceDefaultExecution'](()=>_0x42f7f4([_0x15f646],_0x271fc7,_0x15faaa)),null;}let _0x1ecf94=null,_0xc590df=_0x15f646['start'],_0x56476f=_0x15f646['end'];for(const {suggestion:_0x2af994,meta:_0x4d82f7}of this['_findSuggestions'](_0x15f646,'formatBlock')){if(!_0x4d82f7['isOwn'])continue;if(_0x4d82f7['isNextTo']||_0x4d82f7['containsRangeInObject']||_0x4d82f7['isInsideObject'])continue;if(_0x2af994['data']['formatGroupId']!=_0x271fc7['formatGroupId'])continue;if(!Lt(_0x2af994,_0x15faaa))continue;const _0x1f4309=_0x2af994['getFirstRange']();if(_0x2af994['subType']==_0x50c0d0){if(_0x1f4309['containsRange'](_0x15f646,!0x0))return null;_0xc590df=_0xc590df['isBefore'](_0x1f4309['start'])?_0xc590df:_0x1f4309['start'],_0x56476f=_0x56476f['isAfter'](_0x1f4309['end'])?_0x56476f:_0x1f4309['end'],_0x1ecf94?_0x1f4309['start']['isBefore'](_0x1ecf94['getFirstRange']()['start'])?(_0x1ecf94['removeMarkers'](),_0x1ecf94=_0x2af994):_0x2af994['removeMarkers']():_0x1ecf94=_0x2af994;}else{const _0x1c9f14=_0x15f646['getIntersection'](_0x1f4309);this['_cutOutSuggestionMarker'](_0x2af994,_0x1c9f14);}}const _0x34fda8=this['editor']['plugins']['get']('Users')['me'],_0x14e3c1=_0x4db9f9(),_0x34ae4e=_0x34fda8['id'];if(_0x1ecf94)return this['_setSuggestionRange'](_0x1ecf94,this['_model']['createRange'](_0xc590df,_0x56476f)),_0x1ecf94;{const _0x5085f1=this['_setSuggestionData']({'id':_0x14e3c1,'type':'formatBlock:'+_0x50c0d0,'data':_0x271fc7,'createdAt':new Date(),'authorId':_0x34ae4e,'attributes':_0x15faaa});return this['_addSuggestionMarker']('formatBlock:'+_0x50c0d0,_0x14e3c1,_0x34ae4e,this['_model']['createRange'](_0xc590df,_0x56476f)),_0x5085f1;}}['markMultiRangeBlockFormat'](_0x5972f5,_0x326687,_0x3484ae=[],_0x3921f4=null,_0xa65844={}){_0x326687['formatGroupId']||(_0x326687['formatGroupId']=_0x326687['commandName']);const _0x31c733=_0x5972f5[0x0];_0x326687['multipleBlocks']=_0x31c733['is']('range'),_0x3921f4=_0x3921f4||Vt(_0x326687);const _0x485a2a=_0x3484ae['map'](_0x188653=>Gt(_0x188653,this['_model'])),_0x36c0ad=_0x31c733['is']('range')?_0x5972f5:_0x5972f5['map'](_0x254968=>Gt(_0x254968,this['_model']));if('never'===this['_trackFormatChanges']){const _0x13bfff=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3921f4,'accept');return this['forceDefaultExecution'](()=>_0x13bfff(_0x36c0ad,_0x326687,_0xa65844)),null;}_0x485a2a['push'](..._0x36c0ad);let _0xb5db00=!0x0;for(const _0x3878d0 of _0x485a2a)if(!this['_rangeIsInLocalUserInsertion'](_0x3878d0)){_0xb5db00=!0x1;break;}if(_0xb5db00&&'always'!==this['_trackFormatChanges']){const _0x5257a9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3921f4,'accept');return this['forceDefaultExecution'](()=>_0x5257a9(_0x36c0ad,_0x326687,_0xa65844)),null;}const _0x43f783=this['editor']['plugins']['get']('Users')['me'];for(const _0x5972d3 of this['getSuggestions']()){if(_0x5972d3['author']['id']!=_0x43f783['id'])continue;if('formatBlock'!=_0x5972d3['type']||_0x5972d3['data']['formatGroupId']!=_0x326687['formatGroupId'])continue;if(!Lt(_0x5972d3,_0xa65844))continue;const _0x2ca619=_0x5972d3['subType']==_0x3921f4;for(let _0x590038=0x0;_0x590038<_0x36c0ad['length'];_0x590038++){const _0x7b0e48=_0x36c0ad[_0x590038];for(const _0x322c8b of _0x5972d3['getMarkers']()){const _0x351cd3=_0x322c8b['getRange']();if(_0x7b0e48['isEqual'](_0x351cd3)){_0x2ca619?(_0x36c0ad['splice'](_0x590038,0x1),_0x590038--):_0x5972d3['removeMarker'](_0x322c8b['name']);break;}}}}if(0x0==_0x36c0ad['length'])return null;const _0x5e1dd1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3921f4,'join');for(const _0x3a8101 of this['getSuggestions']())if(_0x3a8101['author']['id']==_0x43f783['id']&&'formatBlock'==_0x3a8101['type']&&_0x3a8101['data']['formatGroupId']==_0x326687['formatGroupId']&&_0x3a8101['subType']==_0x3921f4&&Lt(_0x3a8101,_0xa65844)&&(_0x5e1dd1(_0x3a8101['getRanges'](),_0x36c0ad)||_0x5e1dd1(_0x36c0ad,_0x3a8101['getRanges']()))){for(const _0x49947f of _0x36c0ad)_0x3a8101['addRange'](_0x49947f);return _0x3a8101;}const _0x40bb13=_0x4db9f9(),_0x4d0864=_0x43f783['id'],_0x3b89ef='formatBlock:'+_0x3921f4,_0x441048=this['_setSuggestionData']({'id':_0x40bb13,'type':_0x3b89ef,'data':_0x326687,'createdAt':new Date(),'authorId':_0x4d0864,'attributes':_0xa65844});for(const _0x2a0ba4 of _0x36c0ad)this['_addSuggestionMarker'](_0x3b89ef,_0x40bb13,_0x4d0864,_0x2a0ba4,u['getMultiRangeId']());return _0x441048;}['markDeletion'](_0xe2ffc2,_0x43cd6f=null,_0x2c0477={}){if(_0xe2ffc2['isCollapsed'])return null;const _0x1f2c0d=this['editor']['plugins']['get']('Users')['me'],_0x49851f=new _0x5e3944(_0xe2ffc2['start'],_0xe2ffc2['end']);for(const {suggestion:_0x5b44a4,meta:_0x556a9e}of this['_findSuggestions'](_0x49851f,'insertion'))if(_0x556a9e['isOwn']&&!_0x556a9e['isNextTo']){if(_0x5b44a4['isMultiRange']){const _0x388b8e=_0x5b44a4['getRanges']()['filter'](_0x3da0d9=>'$graveyard'!=_0x3da0d9['root']['rootName']);_0x388b8e['every'](_0x38557c=>_0x49851f['containsRange'](_0x38557c,!0x0))&&_0x5b44a4['discard']();if(_0x388b8e['some'](_0x5bcf10=>_0x5bcf10['containsRange'](_0x49851f,!0x0))){const _0x82a889=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x43cd6f,'accept');return this['forceDefaultExecution'](()=>_0x82a889([_0x49851f],null,_0x2c0477)),null;}}else{const _0x5088d9=_0x49851f['getIntersection'](_0x5b44a4['getFirstRange']());null!==_0x5088d9&&_0x5b44a4['_onDiscard']([_0x5088d9],null,_0x2c0477);}}if(_0x49851f['detach'](),_0x49851f['isCollapsed']||'$graveyard'==_0x49851f['root']['rootName'])return null;let _0x12f5ab=null,_0xedc878=_0x49851f['start'],_0x3dc5e8=_0x49851f['end'];const _0x3fd61a=this['_findSuggestions'](_0x49851f,'deletion');for(const {suggestion:_0x3ab3a1,meta:_0x59ac9d}of _0x3fd61a){const _0x1c6497=this['_model']['createRange'](_0xedc878,_0x3dc5e8);if(_0x59ac9d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x59ac9d['containsRangeInObject']&&!_0x59ac9d['isInsideObject'])){if(_0x3ab3a1['isMultiRange']){if(!Lt(_0x3ab3a1,_0x2c0477))continue;let _0x4f04a8=!0x0;for(const _0x39f4f7 of _0x3ab3a1['getRanges']()){if(_0x39f4f7['containsRange'](_0x1c6497,!0x0))return _0x3ab3a1;_0x1c6497['containsRange'](_0x39f4f7)||(_0x4f04a8=!0x1);}_0x4f04a8&&_0x3ab3a1['discard']();}else{const _0x466942=_0x3ab3a1['getFirstRange']();if(_0x466942['containsRange'](_0x1c6497,!0x0))return _0x3ab3a1;if(!Lt(_0x3ab3a1,_0x2c0477)){_0x1c6497['containsRange'](_0x466942)?_0x3ab3a1['removeMarkers']():_0x466942['containsPosition'](_0xedc878)?_0xedc878=_0x466942['end']:_0x466942['containsPosition'](_0x3dc5e8)&&(_0x3dc5e8=_0x466942['start']);continue;}_0xedc878=_0xedc878['isBefore'](_0x466942['start'])?_0xedc878:_0x466942['start'],_0x3dc5e8=_0x3dc5e8['isAfter'](_0x466942['end'])?_0x3dc5e8:_0x466942['end'],_0x2c0477=Object['assign']({},_0x3ab3a1['attributes']),_0x12f5ab?_0x466942['start']['isBefore'](_0x12f5ab['getFirstRange']()['start'])?(_0x12f5ab['removeMarkers'](),_0x12f5ab=_0x3ab3a1):_0x3ab3a1['removeMarkers']():_0x12f5ab=_0x3ab3a1;}}}if(_0x12f5ab)return this['_setSuggestionRange'](_0x12f5ab,this['_model']['createRange'](_0xedc878,_0x3dc5e8)),_0x12f5ab;{const _0xb5b164=_0x4db9f9(),_0x5f2b2d=this['_model']['createRange'](_0xedc878,_0x3dc5e8),_0x409f96=_0x1f2c0d['id'],_0x2488f2=_0x43cd6f?'deletion:'+_0x43cd6f:'deletion',_0x564f0e=this['_setSuggestionData']({'id':_0xb5b164,'type':_0x2488f2,'createdAt':new Date(),'authorId':_0x409f96,'attributes':_0x2c0477});return this['_addSuggestionMarker'](_0x2488f2,_0xb5b164,_0x409f96,_0x5f2b2d),_0x564f0e;}}['markMultiRangeDeletion'](_0x2b6c40,_0x5da1dd='multi',_0x11c544={}){const _0x477607=this['editor']['plugins']['get']('Users')['me'],_0x268355=_0x2b6c40['map'](_0x3eded1=>new _0x5e3944(_0x3eded1['start'],_0x3eded1['end'])),_0x34e60a=new Set();for(const {suggestion:_0x52863c,meta:_0x11f2dc}of this['_findSuggestions'](_0x268355,'insertion'))_0x11f2dc['isOwn']&&!_0x11f2dc['isNextTo']&&_0x34e60a['add'](_0x52863c);for(const _0x4dca99 of _0x34e60a)if(_0x4dca99['isMultiRange']){const _0x4a5c88=_0x4dca99['getRanges']();(!_0x4dca99['attributes']||!_0x4dca99['attributes']['skipNestingCheck'])&&(_0x4a5c88['every'](_0x597261=>_0x268355['some'](_0xc546d3=>_0xc546d3['containsRange'](_0x597261,!0x0)))&&_0x4dca99['discard']());if(_0x268355['every'](_0x4f195b=>_0x4a5c88['some'](_0x10521d=>_0x10521d['containsRange'](_0x4f195b,!0x0)))){const _0x435367=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5da1dd,'accept');return this['forceDefaultExecution'](()=>_0x435367(_0x2b6c40,null,_0x11c544)),null;}}else{const _0x574a29=_0x4dca99['getFirstRange']();_0x268355['some'](_0x75af56=>_0x75af56['containsRange'](_0x574a29,!0x0))&&_0x4dca99['discard']();if(_0x268355['every'](_0x44e0c2=>_0x574a29['containsRange'](_0x44e0c2,!0x0))){const _0x44148e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5da1dd,'accept');return this['forceDefaultExecution'](()=>_0x44148e(_0x268355,null,_0x11c544)),null;}}const _0x23a0c3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5da1dd,'join');let _0x15ade8=null;for(const _0x4047d5 of this['getSuggestions']())if(_0x4047d5['author']['id']==_0x477607['id']&&_0x4047d5['isInContent']&&'deletion'==_0x4047d5['type']&&_0x4047d5['subType']==_0x5da1dd&&Lt(_0x4047d5,_0x11c544)&&(_0x23a0c3(_0x4047d5['getRanges'](),_0x268355)||_0x23a0c3(_0x268355,_0x4047d5['getRanges']()))){if(_0x15ade8){if(_0x4047d5['commentThread']&&_0x4047d5['commentThread']['length'])continue;for(const _0x2acb08 of _0x4047d5['getRanges']())_0x15ade8['isIntersectingWithRange'](_0x2acb08)||_0x15ade8['addRange'](_0x2acb08);_0x4047d5['removeMarkers']();}else{_0x15ade8=_0x4047d5;for(const _0x33f8fb of _0x268355)_0x4047d5['isIntersectingWithRange'](_0x33f8fb)||_0x4047d5['addRange'](_0x33f8fb);}}if(_0x15ade8)return _0x15ade8;_0x34e60a['clear']();for(const {suggestion:_0x5be6b3,meta:_0x5ee420}of this['_findSuggestions'](_0x268355,'deletion'))_0x5ee420['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5ee420['containsRangeInObject']&&!_0x5ee420['isInsideObject'])&&Lt(_0x5be6b3,_0x11c544)&&_0x34e60a['add'](_0x5be6b3);for(const _0x158492 of _0x34e60a){const _0x46fc48=_0x158492['getRanges']();if(!_0x11c544||!_0x11c544['skipNestingCheck']){if(_0x268355['every'](_0x47fe33=>_0x46fc48['some'](_0x15bcd4=>_0x15bcd4['containsRange'](_0x47fe33,!0x0))))return _0x158492;}(!_0x158492['attributes']||!_0x158492['attributes']['skipNestingCheck'])&&(_0x46fc48['every'](_0xca2069=>_0x268355['some'](_0x1f8bfa=>_0x1f8bfa['containsRange'](_0xca2069,!0x0)))&&_0x158492['discard']());}const _0x354ef5=_0x4db9f9(),_0x34bf7f=_0x477607['id'],_0x4d66d7='deletion:'+_0x5da1dd,_0x567ccc=this['_setSuggestionData']({'id':_0x354ef5,'type':_0x4d66d7,'createdAt':new Date(),'authorId':_0x34bf7f,'attributes':_0x11c544});for(const _0x38e563 of _0x268355)_0x38e563['detach'](),_0x38e563['isCollapsed']||'$graveyard'==_0x38e563['root']['rootName']||this['_addSuggestionMarker'](_0x4d66d7,_0x354ef5,_0x34bf7f,_0x38e563,u['getMultiRangeId']());return _0x567ccc;}['markAttributeChange'](_0x529fbb,_0x4268b7,_0x196bbb,_0x451825,_0x451c5f){if(_0x529fbb['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x27f1aa=this['editor']['plugins']['get']('Users')['me']['id'],_0x590a21=Array['from'](this['_suggestions']['values']())['filter'](_0x4e44ca=>'attribute'==_0x4e44ca['type']&&_0x4e44ca['data']['key']==_0x4268b7&&_0x4e44ca['isIntersectingWithRange'](_0x529fbb));if('default'===this['_trackFormatChanges']){const _0x29dacd=this['_findSuggestions'](_0x529fbb,'insertion')['filter'](({meta:_0x557f82})=>_0x557f82['isOwn']&&!_0x557f82['isInsideObject']&&!_0x557f82['isNextTo'])['map'](({suggestion:_0x3e05ff})=>_0x3e05ff);_0x590a21['unshift'](..._0x29dacd);}const _0xe875aa=new Map([[_0x529fbb,_0x196bbb]]);for(const _0x36008d of _0x590a21){const _0x4de889='attribute'==_0x36008d['type']?_0x36008d['data']['oldValue']:void 0x0,_0x57d097=_0x36008d['getFirstRange'](),_0x54a3bb=Array['from'](_0xe875aa['keys']())['find'](_0x17839b=>_0x17839b['isIntersecting'](_0x57d097));if(!_0x54a3bb)continue;const _0xbde542=_0x54a3bb['getDifference'](_0x57d097);this['_isBlockAttribute'](_0x4268b7)&&'insertion'==_0x36008d['type']&&0x0!=_0xbde542['length']||(_0xe875aa['delete'](_0x54a3bb),_0xbde542['forEach'](_0x14ae8e=>{_0xe875aa['set'](_0x14ae8e,_0x196bbb);}),'insertion'!=_0x36008d['type']&&_0x4de889!=_0x451825&&_0xe875aa['set'](_0x54a3bb['getIntersection'](_0x57d097),_0x4de889));}const _0x52117b=[];for(const [_0x393f6a,_0x4081a5]of _0xe875aa){const _0x2c0aed=_0x4db9f9(),_0x27dcdc={'key':_0x4268b7,'oldValue':_0x4081a5,'newValue':_0x451825};_0x4268b7['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':_0x4268b7});const _0x3d25c2=('attribute:'+(_0x4268b7+'|'+Vt({'newValue':_0x451825})))['substring'](0x0,0x3c),_0x3af5fc=this['_setSuggestionData']({'id':_0x2c0aed,'type':_0x3d25c2,'data':_0x27dcdc,'createdAt':new Date(),'authorId':_0x27f1aa,'attributes':_0x451c5f});_0x52117b['push'](_0x3af5fc),this['_addSuggestionMarker'](_0x3d25c2,_0x2c0aed,_0x27f1aa,_0x393f6a);}return _0x52117b;}['enableDefaultAttributesIntegration'](_0x1f081b){this['enableCommand'](_0x1f081b,(_0x22a527,..._0x4c2557)=>{this['_recordAttributeChanges'](()=>{_0x22a527(..._0x4c2557);});});}['registerBlockAttribute'](_0x3dbe31){this['_blockAttributeKeys']['add'](_0x3dbe31);}['registerInlineAttribute'](_0x457204){this['_inlineAttributeKeys']['add'](_0x457204);}['_getAttributeKey'](_0x587dbb){return'attribute'==_0x587dbb['type']?_0x587dbb['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x20d901,_0x274e71){const _0x1a9da2=_0x20d901['getFirstMarker']();this['_model']['change'](_0x11d111=>{_0x11d111['updateMarker'](_0x1a9da2,{'range':_0x274e71});});}['_addThreadToSuggestion'](_0x5603d1){const _0x48e481=_0x5603d1['id'],_0x455535=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x48e481)||this['_commentsRepository']['addCommentThread']({'channelId':_0x455535,'threadId':_0x48e481,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x562527=this['_commentsRepository']['getCommentThread'](_0x48e481);_0x562527['unbind']('isRemovable'),_0x562527['isRemovable']=!0x1,_0x5603d1['commentThread']=_0x562527;}['_checkSuggestionCorrectness'](_0x482769,_0x30dde9,_0x222713,_0x5a157e){if(_0x482769['type']!=_0x30dde9||_0x482769['subType']!=_0x222713||_0x482769['creator']['id']!=_0x5a157e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x38738a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x426e6e,_0x2fd9ac){const _0x3fb913=_0x426e6e['getFirstRange']();if(_0x2fd9ac['isEqual'](_0x3fb913))_0x426e6e['removeMarkers']();else{if(_0x3fb913['containsRange'](_0x2fd9ac)){const _0x5ea46f=this['_model']['createPositionAt'](_0x2fd9ac['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x426e6e,this['_model']['createRange'](_0x3fb913['start'],_0x5ea46f));const _0x1d6153=_0x4db9f9(),_0x45bf7e=_0x426e6e['creator']['id'],_0x51ae73=_0x426e6e['type']+':'+_0x426e6e['subType'];this['_setSuggestionData']({'id':_0x1d6153,'type':_0x51ae73,'createdAt':new Date(),'authorId':_0x45bf7e,'data':_0x426e6e['data'],'attributes':_0x426e6e['attributes']});const _0x589bbd=this['_model']['createPositionAt'](_0x2fd9ac['end']['parent'],'after'),_0x420bd7=this['_model']['createRange'](_0x589bbd,_0x3fb913['end']);this['_addSuggestionMarker'](_0x51ae73,_0x1d6153,_0x45bf7e,_0x420bd7);}else{if(_0x3fb913['containsPosition'](_0x2fd9ac['start'])){const _0x22d313=this['_model']['createPositionAt'](_0x2fd9ac['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x426e6e,this['_model']['createRange'](_0x3fb913['start'],_0x22d313));}else{const _0x3d4831=this['_model']['createPositionAt'](_0x2fd9ac['end']['parent'],'after');this['_setSuggestionRange'](_0x426e6e,this['_model']['createRange'](_0x3d4831,_0x3fb913['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1a0e51){for(const {suggestion:_0x30176c,meta:_0x5b5dbd}of this['_findSuggestions'](_0x1a0e51,'insertion')){if(!_0x5b5dbd['isOwn'])continue;const _0x5559e9=_0x30176c['getRanges']();for(const _0x4b7541 of _0x5559e9)if(!_0x1a0e51['getDifference'](_0x4b7541)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4d9d42){const _0x15c9ef=this['editor']['plugins']['get']('Users')['getUser'](_0x4d9d42);if(!_0x15c9ef)throw new _0x38738a('track-changes-user-not-found',this);return _0x15c9ef;}['_getExternalAuthor'](_0x6b9101){const _0x4419d6=this['editor']['plugins']['get']('Users'),_0x2dcea4=_0x40ab8('external:'+_0x6b9101),_0x15fde9=_0x4419d6['getUser'](_0x2dcea4);return _0x15fde9||_0x4419d6['addUser']({'id':_0x2dcea4,'name':_0x6b9101});}['_createSuggestion'](_0x2811dc,_0x2611c1,_0x48f1e1,_0x326317,_0x423010){const _0x4350b5=this['_getAuthorFromId'](_0x326317),_0x3cb7e4=this['_suggestionFactory']['buildSuggestion'](_0x2811dc,_0x2611c1,_0x48f1e1,_0x4350b5,_0x423010,_0x6accc8=>{this['_updateSuggestionData'](_0x48f1e1,{'attributes':_0x6accc8});const _0x11a0d7=this['getSuggestion'](_0x48f1e1);this['_joinWithAdjacentSuggestions'](new Set([_0x11a0d7])),this['_refreshSuggestionsChain'](new Set([_0x11a0d7]));});return this['listenTo'](_0x3cb7e4,'accept',()=>{this['_updateSuggestionData'](_0x48f1e1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3cb7e4,'discard',()=>{this['_updateSuggestionData'](_0x48f1e1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x48f1e1,_0x3cb7e4),this['_suggestionState']['set'](_0x3cb7e4,'notReady'),_0x3cb7e4;}['_splitMarkerName'](_0x15991f){const _0x1d9f29=_0x15991f['split'](':');return{'group':_0x1d9f29[0x0],'type':_0x1d9f29[0x1],'subType':_0x1d9f29['length']>=0x5?_0x1d9f29[0x2]:null,'id':_0x1d9f29['length']<0x5?_0x1d9f29[0x2]:_0x1d9f29[0x3],'authorId':_0x1d9f29['length']<0x5?_0x1d9f29[0x3]:_0x1d9f29[0x4],'markerCount':0x6==_0x1d9f29['length']?_0x1d9f29[0x5]:null};}['_breakSuggestionMarker'](_0x5b2425,_0x16eda5,_0x3a048f){const _0x1bf7f8=_0x5b2425['getFirstRange'](),_0x4a4847=_0x1bf7f8['start'],_0x5126f8=_0x1bf7f8['end'];this['_setSuggestionRange'](_0x5b2425,this['_model']['createRange'](_0x4a4847,_0x16eda5));const _0x12ff85=_0x4db9f9(),_0x41b4a9=_0x5b2425['creator']['id'],_0x500d89=_0x5b2425['type']+(_0x5b2425['subType']?':'+_0x5b2425['subType']:'');this['_setSuggestionData']({'id':_0x12ff85,'type':_0x500d89,'createdAt':new Date(),'authorId':_0x41b4a9,'originalSuggestionId':_0x5b2425['id'],'attributes':_0x5b2425['attributes'],'data':_0x5b2425['data']});const _0x2762c1=this['_getAttributeKey'](_0x5b2425);('formatBlock'==_0x5b2425['type']||_0x2762c1&&this['_isBlockAttribute'](_0x2762c1))&&(_0x3a048f=this['_model']['createPositionBefore'](_0x3a048f['parent'])),this['_addSuggestionMarker'](_0x500d89,_0x12ff85,_0x41b4a9,this['_model']['createRange'](_0x3a048f,_0x5126f8));}['_findSuggestions'](_0x1cb49e,_0x53c32c=null){const _0x1b012b=[],_0x1c39ab=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1cb49e)||(_0x1cb49e=[_0x1cb49e]);for(const _0x57729c of this['getSuggestions']()){if(!_0x57729c['isInContent'])continue;if(_0x53c32c&&_0x57729c['type']!=_0x53c32c)continue;let _0x42753f=!0x1;for(const _0x2bfe72 of _0x57729c['getRanges']()){for(const _0x3fd6f4 of _0x1cb49e){const _0x339fbd=_0x3fd6f4['start']['isEqual'](_0x2bfe72['end'])||_0x3fd6f4['end']['isEqual'](_0x2bfe72['start']);if(_0x339fbd||_0x3fd6f4['getIntersection'](_0x2bfe72)){const _0x45f16a=_0x3fd6f4['containsRange'](_0x2bfe72)&&Rt(this['_model']['schema'],_0x2bfe72['start'],_0x3fd6f4),_0x3d87fe=_0x2bfe72['containsRange'](_0x3fd6f4)&&Rt(this['_model']['schema'],_0x3fd6f4['start'],_0x2bfe72);_0x1b012b['push']({'suggestion':_0x57729c,'meta':{'isOwn':_0x1c39ab==_0x57729c['author'],'isNextTo':_0x339fbd,'isInsideObject':_0x45f16a,'containsRangeInObject':_0x3d87fe}}),_0x42753f=!0x0;break;}}if(_0x42753f)break;}}return _0x1b012b;}['_addSuggestionMarker'](_0x567093,_0x222066,_0xe9e522,_0x533d84,_0x49b859){this['_model']['change'](_0x1e12dd=>{let _0x1a2dda='suggestion:'+_0x567093+':'+_0x222066+':'+_0xe9e522;_0x49b859&&(_0x1a2dda=_0x1a2dda+':'+_0x49b859),_0x1e12dd['addMarker'](_0x1a2dda,{'range':_0x533d84,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x45df9d){const _0x25040b=_0x45df9d['previous'],_0x37b0f7=_0x45df9d['next'];_0x45df9d['previous']=null,_0x45df9d['next']=null,null!=_0x25040b&&_0x25040b['next']==_0x45df9d&&(_0x25040b['next']=_0x37b0f7),null!=_0x37b0f7&&_0x37b0f7['previous']==_0x45df9d&&(_0x37b0f7['previous']=_0x25040b),'ready'==this['_suggestionState']['get'](_0x45df9d)&&(this['_suggestionState']['set'](_0x45df9d,'removed'),this['fire']('suggestionUnloaded',_0x45df9d,_0x25040b,_0x37b0f7));}['_setSuggestionData'](_0x218cc7){const _0x1822fd=_0x218cc7['id'],_0x28e692=this['addSuggestionData'](_0x218cc7);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x35ac4d=this['editor']['plugins']['get']('PendingActions'),_0x3033e4=_0x28e692['hasComments'],_0x9a337a=_0x28e692['subType']?_0x28e692['type']+':'+_0x28e692['subType']:_0x28e692['type'],_0x5a3b5c=this['editor']['locale'],_0x573e15=_0x35ac4d['add'](o(_0x5a3b5c,'PENDING_ACTION_SUGGESTION')),_0x3864f1={'id':_0x1822fd,'type':_0x9a337a,'hasComments':_0x3033e4,'data':_0x218cc7['data']||null,'originalSuggestionId':_0x218cc7['originalSuggestionId']||null,'attributes':_0x28e692['attributes']};this['_adapter']['addSuggestion'](_0x3864f1)['then'](_0x30ad9b=>{_0x28e692['_saved']=!0x0,_0x35ac4d['remove'](_0x573e15),_0x30ad9b&&_0x30ad9b['createdAt']&&(this['_suggestions']['get'](_0x1822fd)['createdAt']=_0x30ad9b['createdAt']);})['catch'](_0x3e2b37=>{throw _0x2a72e0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x28e692['discard']();}),_0x28e692['stopListening'](),this['_suggestions']['delete'](_0x28e692['id']),this['_suggestionState']['delete'](_0x28e692),_0x3e2b37;});}return _0x28e692;}['_isBlockAttribute'](_0x2c09fd){return this['_blockAttributeKeys']['has'](_0x2c09fd);}['_updateSuggestionData'](_0x19b2cf,_0x11117e){const _0x151787=this['editor']['plugins']['get']('PendingActions'),_0x3af75a=this['getSuggestion'](_0x19b2cf);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3af75a['_saved']){const _0x511a5d=_0x151787['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x19b2cf,_0x11117e)['then'](()=>{_0x151787['remove'](_0x511a5d);});}else _0x3af75a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x19b2cf,_0x11117e);});}}['_getSuggestionData'](_0x27ff3c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x38738a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x27ff3c);}['_handleNewSuggestionMarker'](_0xe7cb92){const {id:_0x499f71,type:_0x53ee78,subType:_0x433b23,authorId:_0xf918b6}=this['_splitMarkerName'](_0xe7cb92),_0x1bd0fc=this['_suggestions']['get'](_0x499f71)||this['_createSuggestion'](_0x53ee78,_0x433b23,_0x499f71,_0xf918b6,{});switch(this['_checkSuggestionCorrectness'](_0x1bd0fc,_0x53ee78,_0x433b23,_0xf918b6),this['_suggestionState']['get'](_0x1bd0fc)){case'notReady':this['_getSuggestionData'](_0x499f71)['then'](_0x89b5e5=>{let _0x20342a=Promise['resolve']();_0x89b5e5['hasComments']&&(_0x20342a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x499f71})),_0x20342a['then'](()=>{this['addSuggestionData'](_0x89b5e5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1bd0fc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x499f71,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1bd0fc,'ready'),this['fire']('suggestionLoaded',_0x1bd0fc);break;case'ready':this['fire']('suggestionChanged',_0x1bd0fc);}return _0x1bd0fc['addMarkerName'](_0xe7cb92),_0x1bd0fc;}['_refreshSuggestionsChain'](_0x32d56a){const _0x217981=Array['from'](_0x32d56a),_0x45c16f=_0x217981['filter'](_0x57a5ed=>'attribute'==_0x57a5ed['type']);this['_refreshAttributeSuggestionsChain'](_0x45c16f);const _0x13fbfa=_0x217981['filter'](_0x4d8ba0=>!_0x4d8ba0['isMultiRange']&&'attribute'!=_0x4d8ba0['type']),_0x89f58f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x303163=>!_0x303163['isMultiRange']&&'attribute'!=_0x303163['type']),_0x598c34=_0x89f58f['filter'](_0x410f1a=>!_0x32d56a['has'](_0x410f1a)),_0x1077be=new Map(_0x89f58f['map'](_0x488b8f=>[_0x488b8f,this['_suggestionFactory']['getSuggestionCallback'](_0x488b8f['type'],_0x488b8f['subType'],'chain')])),_0x576ce9=new Map(_0x89f58f['map'](_0x5a965a=>[_0x5a965a,_0x5a965a['getFirstRange']()])),_0x1fafe1=new Set(),_0x5c72e5=new Set();for(let _0x21e2b9=0x0;_0x21e2b9<_0x13fbfa['length'];_0x21e2b9++)_0x490389(_0x13fbfa[_0x21e2b9],_0x13fbfa,_0x21e2b9+0x1);for(let _0xcb9b3d=0x0;_0xcb9b3d<_0x13fbfa['length'];_0xcb9b3d++)_0x490389(_0x13fbfa[_0xcb9b3d],_0x598c34,0x0);const _0x320a94=new Set();for(let _0x3dbbba=0x0;_0x3dbbba<_0x13fbfa['length'];_0x3dbbba++){const _0x56a385=_0x13fbfa[_0x3dbbba];!_0x5c72e5['has'](_0x56a385)&&_0x56a385['previous']&&(_0x320a94['add'](_0x56a385['previous']),_0x56a385['previous']['next']===_0x56a385&&(_0x56a385['previous']['next']=null),_0x56a385['previous']=null),!_0x1fafe1['has'](_0x56a385)&&_0x56a385['next']&&(_0x320a94['add'](_0x56a385['next']),_0x56a385['next']['previous']===_0x56a385&&(_0x56a385['next']['previous']=null),_0x56a385['next']=null);}function _0x490389(_0x5a2178,_0x1906ca,_0x43f45e){for(let _0x4162d0=_0x43f45e;_0x4162d0<_0x1906ca['length'];_0x4162d0++){const _0x3e4978=_0x301b6d(_0x5a2178,_0x1906ca[_0x4162d0]);_0x3e4978&&(_0x3e4978[0x0]['next']=_0x3e4978[0x1],_0x3e4978[0x1]['previous']=_0x3e4978[0x0],_0x1fafe1['add'](_0x3e4978[0x0]),_0x5c72e5['add'](_0x3e4978[0x1]));}}function _0x301b6d(_0x5b5c52,_0x462e1d){if(_0x5b5c52['author']['id']!==_0x462e1d['author']['id'])return null;const _0x26f5bf=_0x1077be['get'](_0x5b5c52)(_0x5b5c52,_0x462e1d,_0x576ce9['get'](_0x5b5c52),_0x576ce9['get'](_0x462e1d));if(!_0x26f5bf)return null;return _0x1077be['get'](_0x462e1d)(_0x5b5c52,_0x462e1d,_0x576ce9['get'](_0x5b5c52),_0x576ce9['get'](_0x462e1d))?_0x26f5bf[0x1]['commentThread']&&_0x26f5bf[0x1]['commentThread']['length']?null:_0x26f5bf:null;}_0x320a94['size']&&this['_refreshSuggestionsChain'](_0x320a94);}['_refreshAttributeSuggestionsChain'](_0x200bf0){if(0x0==_0x200bf0['length'])return;const _0x48ec97=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5eb1bd=>'attribute'==_0x5eb1bd['type']&&_0x5eb1bd['_isDataLoaded']),_0x19d1ad=[],_0x181f64=new Map();for(const _0x36f911 of _0x48ec97){const _0x23dd1c=_0x40ab8(_0x36f911['attributes']);_0x181f64['has'](_0x23dd1c)||(_0x181f64['set'](_0x23dd1c,_0x19d1ad['length']),_0x19d1ad['push']([]));const _0x2cc1aa=_0x181f64['get'](_0x23dd1c);_0x19d1ad[_0x2cc1aa]['push'](_0x36f911);}!(function(){_0x19d1ad['sort']((_0x4be20c,_0x436adb)=>{const _0x4c2990=_0x4be20c[0x0]['createdAt'],_0x172ab2=_0x436adb[0x0]['createdAt'];return _0x4c2990==_0x172ab2?_0x4be20c[0x0]['attributes']['groupId']<_0x436adb[0x0]['attributes']['groupId']?-0x1:0x1:_0x4c2990<_0x172ab2?-0x1:0x1;});for(const _0x5e6fc3 of _0x19d1ad)_0x5e6fc3['sort']((_0x4dbdea,_0x15e438)=>_0x4dbdea['id']<_0x15e438['id']?-0x1:0x1);}());for(let _0x60a9f3=0x0;_0x60a9f3<_0x19d1ad['length'];_0x60a9f3++){if(0x0==_0x19d1ad[_0x60a9f3]['length'])continue;const _0x2b43c7=[];for(let _0x4c0cd0=_0x60a9f3+0x1;_0x4c0cd0<_0x19d1ad['length'];_0x4c0cd0++)0x0!=_0x19d1ad[_0x4c0cd0]['length']&&_0x50662a(_0x19d1ad[_0x60a9f3],_0x19d1ad[_0x4c0cd0])&&_0x2b43c7['push'](_0x4c0cd0);for(const _0x4d51a4 of _0x2b43c7)_0x19d1ad[_0x60a9f3]=_0x19d1ad[_0x60a9f3]['concat'](_0x19d1ad[_0x4d51a4]),_0x19d1ad[_0x4d51a4]=[];}for(const _0x7f8795 of _0x19d1ad)for(let _0x1a8056=0x0;_0x1a8056<_0x7f8795['length'];_0x1a8056++)_0x7f8795[_0x1a8056]['next']=_0x7f8795[_0x1a8056+0x1]||null;for(const _0x56ab57 of _0x19d1ad)for(let _0x1e3b11=0x0;_0x1e3b11<_0x56ab57['length'];_0x1e3b11++)_0x56ab57[_0x1e3b11]['previous']=_0x56ab57[_0x1e3b11-0x1]||null;function _0x50662a(_0xbcbebd,_0x4c1261){if(_0xbcbebd[0x0]['attributes']['groupId']!==_0x4c1261[0x0]['attributes']['groupId']&&_0xbcbebd[0x0]['author']!==_0x4c1261[0x0]['author'])return!0x1;if(!function(_0x2f0696,_0x51f4e6){if(!_0x2f0696['hasComments']&&!_0x51f4e6['hasComments'])return!0x0;if(_0x2f0696['hasComments']&&_0x51f4e6['hasComments'])return!0x1;if(_0x2f0696['hasComments']&&_0x51f4e6['createdAt']<_0x2f0696['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x51f4e6['hasComments']&&_0x2f0696['createdAt']<_0x51f4e6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xbcbebd[0x0],_0x4c1261[0x0]))return!0x1;const _0x36b120=Bt(_0xbcbebd[0x0]['attributes'],'groupId'),_0x3f063c=Bt(_0x4c1261[0x0]['attributes'],'groupId');if(!_0x28458d(_0x36b120,_0x3f063c))return!0x1;return!!_0xbcbebd['every'](_0x1776ab=>_0x4c1261['some'](_0x269bdc=>_0x1776ab['getFirstRange']()['isEqual'](_0x269bdc['getFirstRange']())))&&_0x4c1261['every'](_0x36b9b9=>_0xbcbebd['some'](_0x4cf241=>_0x36b9b9['getFirstRange']()['isEqual'](_0x4cf241['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x511f39){const _0xc7153d=Array['from'](_0x511f39),_0x5bb757=this['getSuggestions']({'skipNotAttached':!0x0}),_0x490a7c=_0x5bb757['filter'](_0x2a3bce=>!_0x511f39['has'](_0x2a3bce)),_0x390cd8=new Map(_0xc7153d['map'](_0x525221=>[_0x525221,this['_suggestionFactory']['getSuggestionCallback'](_0x525221['type'],_0x525221['subType'],'join')])),_0x518d53=new Map(_0x5bb757['map'](_0x137d82=>[_0x137d82,_0x137d82['getRanges']()]));for(let _0x4f522d=0x0;_0x4f522d<_0xc7153d['length'];_0x4f522d++){if(_0x37cd37(this,_0xc7153d[_0x4f522d],_0xc7153d,_0x4f522d+0x1))return!0x0;}for(let _0x23d251=0x0;_0x23d251<_0xc7153d['length'];_0x23d251++){if(_0x37cd37(this,_0xc7153d[_0x23d251],_0x490a7c,0x0))return!0x0;}return!0x1;function _0x37cd37(_0x5c392e,_0x50d31a,_0x5055a7,_0x99d495){for(let _0x244920=_0x99d495;_0x244920<_0x5055a7['length'];_0x244920++){const _0x43de80=_0x5055a7[_0x244920];if(_0x43de80['type']!==_0x50d31a['type']||_0x43de80['author']['id']!==_0x50d31a['author']['id']||_0x43de80['subType']!==_0x50d31a['subType'])continue;if(!Pt(_0x50d31a,_0x43de80,['groupId']))continue;if('attribute'==_0x50d31a['type']&&_0x50d31a['data']['oldValue']!=_0x43de80['data']['oldValue'])continue;if('attribute'==_0x50d31a['type']&&_0x5c392e['_isBlockAttribute'](_0x50d31a['data']['key']))continue;if('formatBlock'==_0x50d31a['type']){const _0xabbfc4=_0x5c392e['editor']['model'],_0x5134b2=_0x50d31a['getContainedElement']();if(_0x5134b2&&(_0xabbfc4['schema']['isObject'](_0x5134b2)||_0xabbfc4['schema']['isLimit'](_0x5134b2)))continue;}const _0x6fcc22=_0x390cd8['get'](_0x50d31a),_0x13f744=_0x518d53['get'](_0x50d31a),_0x46c310=_0x518d53['get'](_0x43de80),_0x2ccc24=_0x50d31a['commentThread']&&_0x50d31a['commentThread']['length'],_0x3a3cc5=_0x43de80['commentThread']&&_0x43de80['commentThread']['length'];if(!_0x2ccc24&&_0x6fcc22(_0x46c310,_0x13f744))return _0x5c392e['_joinSuggestions'](_0x43de80,_0x50d31a),_0x518d53['delete'](_0x50d31a),!0x0;if(!_0x3a3cc5&&_0x6fcc22(_0x13f744,_0x46c310))return _0x5c392e['_joinSuggestions'](_0x50d31a,_0x43de80),_0x518d53['delete'](_0x43de80),!0x0;}return!0x1;}}['_joinSuggestions'](_0x912aa9,_0x455a0d){if(_0x912aa9['isMultiRange']){for(const _0x406590 of _0x455a0d['getRanges']())_0x912aa9['addRange'](_0x406590);}else{const _0x411a4b=_0x455a0d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x912aa9,this['_model']['createRange'](_0x912aa9['getFirstRange']()['start'],_0x411a4b));}_0x455a0d['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4e9cec,_0x4203df){const _0x2c5406=_0x4e9cec['startsWith']('format')||_0x4e9cec['startsWith']('attribute')?'FORMATTING':_0x4e9cec['toUpperCase']();return o(this['editor']['locale'],_0x4203df+'_'+_0x2c5406+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x83e348=this['editor'];if(!_0x83e348['ui'])return;const {ariaLiveAnnouncer:_0x4600dc}=_0x83e348['ui'];_0x4c35e1(this['_model'],({left:_0x1851cc,entered:_0x582a86})=>{for(const _0x53835d of _0x1851cc){const {group:_0x251528,type:_0x1495b4}=this['_splitMarkerName'](_0x53835d['name']);if('suggestion'===_0x251528){_0x4600dc['announce'](this['_getMarkerAnnouncementText'](_0x1495b4,'LEAVE'));break;}}for(const _0x3f294b of _0x582a86){const {group:_0x2f3f7a,type:_0x42cdd9}=this['_splitMarkerName'](_0x3f294b['name']);if('suggestion'===_0x2f3f7a){_0x4600dc['announce'](this['_getMarkerAnnouncementText'](_0x42cdd9,'ENTER'));break;}}});}['_processAttributeChanges'](_0x143e99){if(this['_recordAttributeSuggestions'])return!0x1;const _0x53af10=this['editor'],_0x147379=_0x53af10['model']['document']['differ']['getChanges']();if(0x0==_0x147379['length'])return!0x1;const _0x3c4de7=[],_0x36d5ff=_0x147379['filter'](_0xb3a75e=>'attribute'==_0xb3a75e['type']),_0x264b6a=_0x147379['filter'](_0x30178e=>'insert'==_0x30178e['type']&&'$text'!=_0x30178e['name']),_0xda6b18=_0x147379['filter'](_0x4bd5e1=>'remove'==_0x4bd5e1['type']&&'$text'!=_0x4bd5e1['name']);for(const _0x5cdf5f of _0x36d5ff)_0x3c4de7['push']({'key':_0x5cdf5f['attributeKey'],'newValue':_0x5cdf5f['attributeNewValue'],'oldValue':_0x5cdf5f['attributeOldValue'],'range':Ot(_0x5cdf5f['range'],_0x53af10['model'])});for(const _0x16d5d5 of _0x264b6a){const _0x330dab=_0xda6b18['find'](_0x27afda=>_0x27afda['position']['isEqual'](_0x16d5d5['position']));_0x330dab&&_0x3c4de7['push']({'key':m,'newValue':_0x16d5d5['name'],'oldValue':_0x330dab['name'],'range':_0x53af10['model']['createRangeOn'](_0x16d5d5['position']['nodeAfter'])});}return 0x0!=_0x3c4de7['length']&&this['_reduceExistingSuggestions'](_0x143e99,_0x3c4de7);}['_processAttributeSuggestions'](_0x104a9b){let _0x4e583a=!0x1;const _0x57191a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x495013=>_0x495013['data']['newRange']&&_0x495013['name']['startsWith']('suggestion:attribute:'));for(const _0x3a41cb of _0x57191a){const {subType:_0x301e99,id:_0x59de5f}=this['_splitMarkerName'](_0x3a41cb['name']),_0x2654f1=_0x301e99['split']('|')[0x0];for(const _0x2fa22e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2fa22e['id']!=_0x59de5f&&'attribute'==_0x2fa22e['type']&&_0x2fa22e['data']&&_0x2fa22e['data']['key']==_0x2654f1&&_0x2fa22e['getFirstRange']()['isIntersecting'](_0x3a41cb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2fa22e,_0x3a41cb['data']['newRange'],_0x104a9b),_0x4e583a=!0x0);}return _0x4e583a;}['_recordAttributeChanges'](_0x55bf39){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x55bf39();}['_isRegisteredAttribute'](_0x433ab8){const _0x1ed50c=this['_isBlockAttribute'](_0x433ab8),_0x258633=this['_inlineAttributeKeys']['has'](_0x433ab8);return _0x1ed50c||_0x258633;}['_reduceExistingSuggestions'](_0x41e46d,_0x133077){if(0x0==_0x133077['length'])return!0x1;let _0x3a0641=!0x1;for(const _0x392db6 of _0x133077){const _0x4b2c14=this['_findSuggestions'](_0x392db6['range'],'attribute')['filter'](_0x2c94c3=>!_0x2c94c3['meta']['isNextTo'])['map'](_0x248b05=>_0x248b05['suggestion']),_0x8d349b=_0x40ab8({'newValue':_0x392db6['newValue']});_0x4b2c14['filter'](_0x48e50c=>{const [_0x4cb257,_0x492c05]=_0x48e50c['subType']['split']('|');return _0x4cb257==_0x392db6['key']&&_0x492c05!=_0x8d349b;})['forEach'](_0x5bb67a=>{this['_reduceSuggestionAttributeRange'](_0x5bb67a,_0x392db6['range'],_0x41e46d),_0x3a0641=!0x0;});}return _0x3a0641;}['_reduceSuggestionAttributeRange'](_0x2f93a6,_0x51740d,_0x5343be){const _0x1e8653=_0x2f93a6['getFirstRange']()['getDifference'](_0x51740d);0x0!==_0x1e8653['length']?0x1!==_0x1e8653['length']?this['_breakSuggestionMarker'](_0x2f93a6,_0x51740d['start'],_0x51740d['end']):this['_setSuggestionRange'](_0x2f93a6,_0x1e8653[0x0]):_0x5343be['removeMarker'](_0x2f93a6['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x35f1f9){this['_editor']=_0x35f1f9,this['_model']=_0x35f1f9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x184f38,_0x5c90cf,_0x19edaa,_0x28d430,_0x581e6e,_0x3fcb8c){return new u(this['_model'],{'type':_0x184f38,'subType':_0x5c90cf,'id':_0x19edaa,'author':_0x28d430,'creator':_0x28d430,'attributes':_0x581e6e,'onAttributesChange':_0x3fcb8c,'onAccept':(..._0x573153)=>this['getSuggestionCallback'](_0x184f38,_0x5c90cf,'accept')(..._0x573153),'onDiscard':(..._0x335642)=>this['getSuggestionCallback'](_0x184f38,_0x5c90cf,'discard')(..._0x335642)});}['registerCustomCallback'](_0x340f62,_0x35f616,_0x50badd,_0x35b1ed){const _0x2fd1a6=_0x340f62+':'+_0x35f616+':'+_0x50badd;this['_customCallbacks']['set'](_0x2fd1a6,_0x35b1ed);}['getSuggestionCallback'](_0x8e08aa,_0x4435e9,_0x27973c){const _0x16e86f=_0x8e08aa+':'+_0x4435e9+':'+_0x27973c;return this['_customCallbacks']['get'](_0x16e86f)||this['_defaultCallbacks']['get'](_0x8e08aa+':'+_0x27973c);}['_registerDefaultCallbacks'](){const _0x42f8dd=()=>!0x1,_0x2f13cd=_0x4e5ac0=>{_0x4e5ac0['sort']((_0x452b23,_0x2f99ad)=>_0x452b23['start']['isBefore'](_0x2f99ad['start'])?0x1:-0x1),this['_model']['change'](_0x4e3772=>{for(const _0x407de0 of _0x4e5ac0){let _0x4c3035;_0x4c3035=_0x407de0['end']['isAtEnd']&&_0x407de0['end']['parent']==_0x407de0['start']['nodeAfter']?_0x4e3772['createSelection'](_0x407de0['start']['nodeAfter'],'on'):_0x4e3772['createSelection'](_0x407de0),this['_model']['deleteContent'](_0x4c3035,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2a96f8=(_0x3ccfe2,_0x260d48)=>{_0x260d48&&this['_model']['change'](_0x1198b9=>{const {commandName:_0x581b24,commandParams:_0x1ad924=[]}=_0x260d48,_0x408c21=_0x3ccfe2['map'](_0x3e2e5d=>(Tt(_0x3e2e5d)&&(_0x3e2e5d=this['_model']['createRange'](_0x3e2e5d['end'])),_0x3e2e5d))['filter'](_0x4695ae=>'$graveyard'!==_0x4695ae['root']['rootName']);if(_0x408c21['length']<0x1)return;const _0xee27d2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x196c0e=>_0x5e3944['fromRange'](_0x196c0e));_0x1198b9['setSelection'](_0x408c21);for(const _0x42b883 of this['_editor']['commands']['commands']())_0x42b883['refresh']();_0x1ad924['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x581b24,..._0x1ad924);const _0x24951d=_0xee27d2['filter'](_0x11b97a=>'$graveyard'!=_0x11b97a['root']['rootName']);_0x24951d['length']>0x0&&_0x1198b9['setSelection'](_0x24951d);for(const _0x1ad51b of _0xee27d2)_0x1ad51b['detach']();});},_0xd4ce04=(_0x466c18,_0x6757ec)=>0x1==_0x466c18['length']&&0x1==_0x6757ec['length']&&_0x466c18[0x0]['end']['isEqual'](_0x6757ec[0x0]['start']),_0x31a933=(_0x3b5b02,_0x5923c7,_0xb37fca,_0xd7ed30)=>Ft(_0x3b5b02,_0x5923c7,_0xb37fca,_0xd7ed30,this['_model'])?[_0x3b5b02,_0x5923c7]:Ft(_0x5923c7,_0x3b5b02,_0xd7ed30,_0xb37fca,this['_model'])?[_0x5923c7,_0x3b5b02]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x42f8dd),this['_defaultCallbacks']['set']('insertion:discard',_0x2f13cd),this['_defaultCallbacks']['set']('insertion:join',_0xd4ce04),this['_defaultCallbacks']['set']('insertion:chain',_0x31a933),this['_defaultCallbacks']['set']('deletion:accept',_0x2f13cd),this['_defaultCallbacks']['set']('deletion:discard',_0x42f8dd),this['_defaultCallbacks']['set']('deletion:join',_0xd4ce04),this['_defaultCallbacks']['set']('deletion:chain',_0x31a933),this['_defaultCallbacks']['set']('formatInline:accept',_0x2a96f8),this['_defaultCallbacks']['set']('formatInline:discard',_0x42f8dd),this['_defaultCallbacks']['set']('formatInline:join',_0xd4ce04),this['_defaultCallbacks']['set']('formatInline:chain',_0x42f8dd),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2a96f8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x42f8dd),this['_defaultCallbacks']['set']('formatBlock:join',_0xd4ce04),this['_defaultCallbacks']['set']('formatBlock:chain',_0x42f8dd),this['_defaultCallbacks']['set']('attribute:accept',_0x42f8dd),this['_defaultCallbacks']['set']('attribute:discard',(_0x546c56,_0x55e3d5)=>{if(!_0x55e3d5)return;const _0x51a826=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x460091=>{if(_0x55e3d5['key']==m)for(const _0x495685 of _0x546c56){const _0x372cdb=_0x495685['start']['nodeAfter'],_0x58898f=_0x55e3d5['oldValue'];_0x460091['rename'](_0x372cdb,_0x58898f);}else{if(_0x51a826['_isBlockAttribute'](_0x55e3d5['key'])){for(const _0xd74726 of _0x546c56)void 0x0!==_0x55e3d5['oldValue']?_0x460091['setAttribute'](_0x55e3d5['key'],_0x55e3d5['oldValue'],_0xd74726['start']['nodeAfter']):_0x460091['removeAttribute'](_0x55e3d5['key'],_0xd74726['start']['nodeAfter']);}else{for(const _0x31f4fd of _0x546c56)_0x55e3d5['oldValue']?_0x460091['setAttribute'](_0x55e3d5['key'],_0x55e3d5['oldValue'],_0x31f4fd):_0x460091['removeAttribute'](_0x55e3d5['key'],_0x31f4fd);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xd4ce04);}}function Rt(_0x4c1f64,_0x5ba7aa,_0x1aef58){for(const _0x231a49 of _0x5ba7aa['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x231a49['root']==_0x231a49)return!0x1;if(!_0x1aef58['containsItem'](_0x231a49))return!0x1;if(_0x4c1f64['isObject'](_0x231a49)||_0x4c1f64['isLimit'](_0x231a49))return!0x0;}return!0x1;}function Tt(_0x2fb06f){return _0x2fb06f['end']['parent']==_0x2fb06f['start']['nodeAfter']&&_0x2fb06f['end']['isAtStart'];}function Et(_0x2dc4a2,_0x41c05b,_0x3092e6,_0x3b2344){const _0x552b91=_0x3e9099=>!_0x3e9099['item']['is']('$textProxy')&&!_0x3b2344['isObject'](_0x3e9099['item']),_0x2c904e=_0x2dc4a2['start']['getLastMatchingPosition'](_0x552b91),_0x1a0335=_0x2dc4a2['end']['getLastMatchingPosition'](_0x552b91,{'direction':'backward'});return(!_0x2dc4a2['start']['isEqual'](_0x2c904e)||!_0x2dc4a2['end']['isEqual'](_0x1a0335))&&(_0x2c904e['isBefore'](_0x1a0335)?_0x3092e6['updateMarker'](_0x41c05b,{'range':_0x3092e6['createRange'](_0x2c904e,_0x1a0335)}):_0x3092e6['removeMarker'](_0x41c05b),!0x0);}function Vt(_0x3b27c5){return _0x40ab8(_0x3b27c5);}function Ut(_0x3117bb){const _0x451282=_0x3117bb['start']['nodeAfter'];return _0x451282&&_0x451282['is']('element');}function Ot(_0x598717,_0x3b98a6){return null==_0x598717['end']['nodeBefore']&&_0x598717['end']['parent']==_0x598717['start']['nodeAfter']?Gt(_0x598717['start']['nodeAfter'],_0x3b98a6):_0x598717;}function Gt(_0x1488de,_0x23c8f5){const _0x3106eb=_0x23c8f5['schema']['isObject'](_0x1488de)||_0x23c8f5['schema']['isSelectable'](_0x1488de);return _0x23c8f5['createRange'](_0x23c8f5['createPositionAt'](_0x1488de,'before'),_0x3106eb?_0x23c8f5['createPositionAfter'](_0x1488de):_0x23c8f5['createPositionAt'](_0x1488de,'end'));}function Ft(_0x3aecff,_0x50f292,_0x3a65a6,_0x274b92,_0x19e103){if(!Pt(_0x3aecff,_0x50f292))return!0x1;if(_0x3a65a6['end']['isEqual'](_0x274b92['start']))return!0x0;if(_0x3aecff['type']!=_0x50f292['type'])return!0x1;if(!_0x3a65a6['end']['isTouching'](_0x274b92['start']))return!0x1;const _0x4bebec=_0x19e103['createRange'](_0x3a65a6['end'],_0x274b92['start'])['getWalker']();for(const _0x2b19f3 of _0x4bebec)if(['elementStart','elementEnd']['includes'](_0x2b19f3['type'])&&_0x19e103['schema']['isLimit'](_0x2b19f3['item']))return!0x1;return!0x0;}function Pt(_0x225ff5,_0xf9e6c7,_0x4d44c9=[]){return!(!_0x225ff5['_isDataLoaded']||!_0xf9e6c7['_isDataLoaded'])&&_0x28458d(Bt(_0x225ff5['attributes'],_0x4d44c9),Bt(_0xf9e6c7['attributes'],_0x4d44c9));}function Lt(_0x4e05e4,_0x4293f8){const _0xd1b4f4=Ht(_0x4e05e4['attributes']),_0x55721a=Ht(_0x4293f8);if(!_0x4e05e4['_isDataLoaded'])return!0x1;for(const _0x1e9895 of Object['keys'](_0x55721a))if(!_0x28458d(_0xd1b4f4[_0x1e9895],_0x55721a[_0x1e9895]))return!0x1;return!0x0;}function Ht(_0x4063e1){const _0x306b52=Object['assign']({},_0x4063e1);return delete _0x306b52['skipNestingCheck'],delete _0x306b52['tablePasteChainId'],_0x306b52;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x25b6b8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x87e7ed,_0x5ac9fe,_0x174867,_0xa433ec){super(),this['model']=_0x5ac9fe,this['view']=_0x174867,this['commentThreadController']=_0xa433ec,this['_editor']=_0x87e7ed,this['_acceptCommand']=_0x87e7ed['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x87e7ed['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x29b99a,_0x32d6fb)=>_0x29b99a||_0x32d6fb),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1b51b0=>_0x1b51b0&&this['_editor']['model']['canEditAt'](_0x5ac9fe['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x199ac6=>_0x199ac6&&this['_editor']['model']['canEditAt'](_0x5ac9fe['getRanges']())),this['_pendingAction']=null,_0x174867['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x174867,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x174867,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x174867,'change:isDirty',()=>{_0x174867['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 _0x2c8ba2=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2c8ba2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x236492{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x3a4e7e,_0x2982fc,_0x12568a,_0x16d74f){super(_0x3a4e7e),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x2982fc['authoredAt']),this['bind']('authoredAt')['to'](_0x2982fc),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x2982fc,this['_localUser']=_0x12568a,this['_config']=_0x16d74f,_0x16d74f['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:_0x537635}=this['_config'];this['commentsListView']=new _0x537635(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',_0x2afd5c=>_0x2afd5c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3b031f,_0x1f72da)=>_0x3b031f||!!_0x1f72da);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4c3334}=this['_config'],_0x539ed8=new _0x4c3334(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5d5601=_0x539ed8['commentInputView'];return _0x539ed8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5d5601,'value',(_0x541f7e,_0x1edfb5,_0x5ad662)=>!!_0x5ad662||_0x541f7e&&!_0x1edfb5),_0x5d5601['on']('submit',(_0x3ec5c1,_0x930c07)=>{this['fire']('addComment',_0x930c07),_0x5d5601['editor']['setData']('');}),_0x5d5601['on']('cancel',()=>this['focus']()),_0x5d5601['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x539ed8;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x124e1f,_0x2c3fa2,_0x48175b,_0xc2e538){super(_0x124e1f,_0x2c3fa2,_0x48175b,_0xc2e538),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4366dc=>_0x4366dc&&_0x4366dc[0x0]?_0x4366dc[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x30e7dd,_0x56276a)=>{let _0x1d207d='';for(const _0x3711dd of _0x30e7dd)_0x1d207d+='<p>'+ds(_0x3711dd['content'],_0x3711dd['color'])+'</p>';return _0x56276a?_0x1d207d:_0x300cbf(_0x1d207d,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x124e1f,'Accept\x20suggestion'),_0x4127fe['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x124e1f,'Discard\x20suggestion'),_0x4127fe['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x2f3ad6(_0x124e1f,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0xe87b3e=this['bindTemplate'],_0x338079=[{'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':_0xe87b3e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xe87b3e['to']('authoredAt',_0x3d49a2=>this['_config']['formatDateTime'](_0x3d49a2))}]}]},{'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']&&_0x338079['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1ad6cc={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0xe87b3e['if']('isActive','ck-suggestion-wrapper--active'),_0xe87b3e['to']('type',_0x16c3b8=>'ck-suggestion-'+_0x16c3b8),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':_0x338079}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1ad6cc['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)),_0x1ad6cc;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x213784,_0x2a14b3,_0x5dd6eb)=>{this['_descriptionElement']['innerHTML']=_0x5dd6eb;});}['_createButton'](_0x5806b1,_0x4ef46e,_0x10179d,_0x552f28,_0x413294){const _0x13de66=new _0x21949b(this['locale']);return _0x13de66['set']({'label':_0x5806b1,'icon':_0x4ef46e,'tooltip':!0x0,'tooltipPosition':_0x413294}),_0x13de66['extendTemplate']({'attributes':{'class':_0x10179d}}),_0x13de66['on']('execute',()=>{this['fire'](_0x552f28,this['_model']['id']);}),_0x13de66;}['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(_0xb7c3e1,_0x17b733){let _0x5290cd='';return _0x5290cd+=_0xb7c3e1['split']('*')['map']((_0x6dd625,_0x29218f)=>_0x29218f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x6dd625)+'</span>':us(_0x6dd625))['join'](''),_0x17b733&&(_0x5290cd+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x17b733['value']+'\x22\x20title=\x22'+_0x17b733['title']+'\x22></span>'),_0x5290cd;}function us(_0x148e4d){const _0x50e016=document['createElement']('span');return _0x50e016['innerText']=_0x148e4d,_0x50e016['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 _0x13ee14{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2b384d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x3f1da2){super(_0x3f1da2),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5c8902=this['editor']['config'];_0x5c8902['define']('trackChanges.SuggestionThreadView',ne),_0x5c8902['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5c8902['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x436d60,_0x31a53b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xe14331,_0x2ccf05]of this['_handleControllerBuffer']){const _0x38a688=this['_suggestionToController']['has'](_0xe14331);_0x38a688||_0x2ccf05?_0x38a688&&_0x2ccf05&&this['_destroyController'](_0xe14331):this['_initializeController'](_0xe14331);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x436d60,_0x31a53b);}['init'](){const _0x4f4eae=this['editor'],_0x2a6d91=_0x4f4eae['plugins']['get']('TrackChangesEditing'),_0x50d2c8=_0x4f4eae['plugins']['get']('Annotations'),_0x111bf1=_0x4f4eae['plugins']['get']('EditorAnnotations'),_0x1f4dcc=_0x4f4eae['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x111bf1['addSourceCollector'](()=>{const _0xbb196e=[];for(const [_0x7a9cb9,_0x358233]of Array['from'](this['_suggestionToController'])){const _0x571dd7=_0x7a9cb9['getAllAdjacentSuggestions'](),_0x4e2be0=[];for(const _0x16963f of _0x571dd7){if(!_0x16963f['isInContent'])continue;if(_0x16963f['isMultiRange']){_0x4e2be0['push'](..._0x16963f['getRanges']());continue;}const _0xdb4dc7=_0x16963f['getFirstRange']();if(_0x4e2be0['length']>0x0){const _0x3098e8=_0x4e2be0[0x0]['getJoined'](_0xdb4dc7);if(_0x3098e8){_0x4e2be0[0x0]=_0x3098e8;continue;}}_0x4e2be0['push'](_0xdb4dc7);}_0xbb196e['push']([_0x358233['view'],_0x4e2be0]);}return _0xbb196e;}),this['listenTo'](_0x2a6d91,'suggestionLoaded',(_0x3d1f4c,_0x35c8ca)=>{this['listenTo'](_0x35c8ca,'change:previous',(_0x186fb2,_0x24d596,_0x422f47,_0x50b02f)=>{_0x35c8ca['isInContent']&&(null==_0x422f47?(this['_updateController'](_0x50b02f['head']),this['_handleSuggestionControllerDelayed'](_0x35c8ca,!0x1)):(this['_updateController'](_0x422f47['head']),null==_0x50b02f&&this['_handleSuggestionControllerDelayed'](_0x35c8ca,!0x0)));}),null!==_0x35c8ca['previous']?this['_updateController'](_0x35c8ca['head']):this['_handleSuggestionControllerDelayed'](_0x35c8ca,!0x1);}),this['listenTo'](_0x2a6d91,'suggestionUnloaded',(_0x3f996,_0x1cec3e,_0x78c924)=>{this['stopListening'](_0x1cec3e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1cec3e),this['_suggestionToController']['has'](_0x1cec3e)&&this['_destroyController'](_0x1cec3e),_0x78c924&&this['_updateController'](_0x78c924['head']);}),this['listenTo'](_0x2a6d91,'suggestionChanged',(_0x4ce502,_0x3e1716)=>{this['_updateController'](_0x3e1716);}),this['listenTo'](_0x50d2c8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1f4dcc,'addComment',(_0x216b05,{threadId:_0x2ae743,isFromAdapter:_0x470a53})=>{if(_0x470a53||!_0x2a6d91['hasSuggestion'](_0x2ae743))return;const _0x2aaa7f=_0x2a6d91['getSuggestion'](_0x2ae743);this['_suggestionToController']['get'](_0x2aaa7f)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1b9266=this['editor']['plugins']['get']('Annotations'),_0x2c1d01=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56d510=Array['from'](_0x1b9266['activeAnnotations'],_0x2413a7=>_0x2413a7['innerView'])['filter'](_0x49f019=>this['_viewToController']['has'](_0x49f019)),_0x1ebfd8=[];for(const _0x55a04f of _0x56d510){const _0x52a2f8=this['_viewToController']['get'](_0x55a04f)['model']['getAllAdjacentSuggestions']();_0x1ebfd8['push'](..._0x52a2f8['reduce']((_0x484c82,_0x17e4f9)=>[..._0x484c82,..._0x17e4f9['getMarkerNames']()],[]));}_0x2c1d01['activeMarkers']=_0x1ebfd8;}['_addUIComponentsToFactory'](){const _0x48924f=this['editor'],_0x539901=_0x48924f['locale'],_0x58eb06=o(_0x539901,'Track\x20changes'),_0x596e68=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x58eb06,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x539901,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x539901,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x539901,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x539901,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x24ab14 of _0x596e68)if(ae(_0x24ab14)){const _0x3817e1=_0x48924f['commands']['get'](_0x24ab14['model']['commandName']);_0x24ab14['model']['bind']('isOn','isEnabled')['to'](_0x3817e1,'value','isEnabled');}_0x48924f['ui']['componentFactory']['add']('trackChanges',_0x41716=>this['_createToolbarButton'](_0x41716,_0x596e68,_0x58eb06)),_0x48924f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x25d469=>this['_createMenuBarMenu'](_0x25d469,_0x596e68,_0x58eb06));}['_createToolbarButton'](_0x7e433d,_0x56a787,_0x3052c9){const _0x5732d8=zt(_0x7e433d,Zt),_0x15b31d=this['editor']['commands']['get']('trackChanges');_0x5732d8['buttonView']['set']({'tooltip':_0x3052c9,'label':_0x3052c9,'icon':ie}),_0x5732d8['buttonView']['bind']('isOn')['to'](_0x15b31d,'value'),_0x5732d8['buttonView']['on']('execute',()=>{_0x15b31d['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x5732d8,_0x56a787,{'role':'menu'});const _0x580070=[];for(const _0x224d7f of _0x56a787)ae(_0x224d7f)&&_0x580070['push'](this['editor']['commands']['get'](_0x224d7f['model']['commandName']));const _0x115d14=_0x5732d8['buttonView'];return _0x115d14['actionView']['unbind']('isEnabled'),_0x115d14['arrowView']['unbind']('isEnabled'),_0x115d14['actionView']['bind']('isEnabled')['to'](_0x15b31d,'isEnabled'),_0x115d14['arrowView']['bind']('isEnabled')['toMany'](_0x580070,'isEnabled',(..._0x505d42)=>_0x505d42['some'](_0x2b571a=>_0x2b571a)),_0x5732d8['on']('execute',_0x3cda76=>{this['editor']['execute'](_0x3cda76['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5732d8;}['_createMenuBarMenu'](_0x2b17a7,_0x3d7862,_0x2e0608){const _0x124993=new Kt(_0x2b17a7),_0x3f0697=this['editor']['commands']['get']('trackChanges');_0x124993['buttonView']['set']({'label':_0x2e0608,'icon':ie});const _0x3ffaff=new Qt(_0x2b17a7);for(const _0xe7af9a of _0x3d7862){if('separator'==_0xe7af9a['type']){_0x3ffaff['items']['add'](new Jt(_0x2b17a7));continue;}const _0x501501=new Xt(_0x2b17a7,_0x124993),_0x445595=new Yt(_0x2b17a7),_0x361fa6=_0xe7af9a['model'];_0x445595['bind'](...Object['keys'](_0x361fa6))['to'](_0x361fa6),_0x445595['delegate']('execute')['to'](_0x124993),_0x445595['on']('execute',()=>{this['editor']['execute'](_0x361fa6['commandName']),this['editor']['editing']['view']['focus']();}),_0x501501['children']['add'](_0x445595),_0x3ffaff['items']['add'](_0x501501);}return _0x124993['bind']('isEnabled')['to'](_0x3f0697,'isEnabled'),_0x124993['panelView']['children']['add'](_0x3ffaff),_0x124993;}['_initializeController'](_0x318a60){const _0x11de38=this['editor'],_0x20f44c=_0x11de38['config'],_0x54d789=_0x11de38['plugins']['get']('Annotations'),_0x3e2123=_0x11de38['plugins']['get']('CommentsRepository'),_0x303ccb=_0x11de38['plugins']['get']('EditorAnnotations'),_0x4e1e88=_0x11de38['plugins']['get'](_0x2b384d)['me'],_0x224afb=_0x20f44c['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x1a75d6,CommentThreadInputView:_0x12b3f2}=_0x11de38['plugins']['get']('CommentsUI');let _0x151767,_0x404f2a;this['_annotationViews']['has'](_0x318a60['id'])?(_0x404f2a=this['_annotationViews']['get'](_0x318a60['id']),_0x151767=_0x404f2a['mainView']):(_0x151767=new _0x224afb(_0x11de38['locale'],_0x318a60,_0x4e1e88,{'disableComments':this['_disableComments'],'editorConfig':_0x20f44c['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x20f44c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x20f44c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x20f44c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x152789(_0x20f44c['get']('locale')),'CommentView':_0x20f44c['get']('comments')['CommentView'],'CommentsListView':_0x1a75d6,'CommentThreadInputView':_0x12b3f2}),_0x151767['acceptButton']['on']('execute',()=>{_0x11de38['editing']['view']['focus']();}),_0x151767['discardButton']['on']('execute',()=>{_0x11de38['editing']['view']['focus']();}),_0x404f2a=_0x54d789['createAnnotationView'](this['editor']['locale'],_0x151767),_0x404f2a['bind']('isDirty')['to'](_0x151767,'isDirty'),_0x404f2a['bind']('length')['to'](_0x151767),_0x404f2a['bind']('type')['to'](_0x151767,'type',_0x11d0b2=>'suggestion-'+_0x11d0b2),this['_annotationViews']['set'](_0x318a60['id'],_0x404f2a));const _0x1e714f=_0x3e2123['createCommentThreadController'](_0x318a60['commentThread'],_0x151767),_0x2e17a3=new oe(_0x11de38,_0x318a60,_0x151767,_0x1e714f),_0x4e9810=_0x318a60['getAllAdjacentSuggestions']()['filter'](_0x132ecd=>_0x132ecd['isInContent']);_0x151767['descriptionParts']=_0x11de38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4e9810),this['_suggestionToController']['set'](_0x318a60,_0x2e17a3),this['_viewToController']['set'](_0x151767,_0x2e17a3);const _0x43ac83=_0x54d789['createAnnotation']({'view':_0x404f2a,'target':()=>{const _0x2a943c=[],_0x3e7841=_0x318a60['getAllAdjacentSuggestions']()['filter'](_0x25037a=>_0x25037a['isInContent']);for(const _0xce4fc0 of _0x3e7841)_0x2a943c['push'](..._0xce4fc0['getMarkers']());return _0xd7bafb(_0x11de38['editing'],_0x2a943c);},'type':()=>'suggestion-'+_0x2e17a3['view']['type']});_0x3e2123['_bindAnnotationToEditors'](_0x151767,_0x43ac83),_0x54d789['add'](_0x43ac83),_0x303ccb['registerAnnotation'](_0x43ac83);}['_destroyController'](_0xde31aa){const _0x29de28=this['editor']['plugins']['get']('CommentsRepository'),_0x507a72=this['editor']['plugins']['get']('Annotations'),_0x276c5b=this['_suggestionToController']['get'](_0xde31aa),_0x23b8e0=_0x276c5b['view'],_0x141f41=_0x507a72['getByInnerView'](_0x23b8e0);_0x29de28['_unbindEditors'](_0x23b8e0),_0x141f41&&_0x507a72['remove'](_0x141f41),this['_suggestionToController']['delete'](_0xde31aa),this['_viewToController']['delete'](_0x23b8e0),_0x276c5b['destroy']();}['_updateController'](_0x4df484){if(!_0x4df484['isInContent']||!this['_suggestionToController']['has'](_0x4df484))return;const _0xffef90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ebbdd=this['_suggestionToController']['get'](_0x4df484),_0x974035=_0x4df484['getAllAdjacentSuggestions']();_0x1ebbdd['view']['descriptionParts']=_0xffef90['descriptionFactory']['getDescriptions'](_0x974035);}['destroy'](){for(const _0x153d25 of this['_suggestionToController']['keys']())this['_destroyController'](_0x153d25);for(const _0x4b3065 of this['_annotationViews']['values']())_0x4b3065['mainView']['destroy']();super['destroy']();}}function ae(_0x816238){return'model'in _0x816238;}class k extends _0x13ee14{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x524a0c){this['editor']['plugins']['get'](p)['adapter']=_0x524a0c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2773dd){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2773dd);}['getSuggestions']({skipNotAttached:_0x597c9a=!0x1,toJSON:_0x540cfa=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x597c9a,'toJSON':_0x540cfa});}['getSuggestion'](_0x16b49f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x16b49f);}}const T=['Pagination'];class P extends _0x13ee14{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0xcdf4d5=this['editor'];if(_0xcdf4d5['config']['define']('trackChangesData.editorCreator',_0x244cd2=>{const _0x108223=_0xcdf4d5['model']['document']['getRootNames']()['reduce']((_0x27f4f8,_0x46aa93)=>(_0x27f4f8[_0x46aa93]='',_0x27f4f8),{});return _0xcdf4d5['constructor']['create'](_0x108223,_0x244cd2);}),'function'!=typeof _0xcdf4d5['config']['get']('trackChangesData')['editorCreator'])throw new _0x38738a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xc097ff){return N(this['editor'],!0x0,_0xc097ff);}['getDataWithDiscardedSuggestions'](_0x9866a5){return N(this['editor'],!0x1,_0x9866a5);}}class D extends _0x13ee14{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2ca1b4){super(_0x2ca1b4),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(_0x1bd0e0){return void 0x0!==_0x1bd0e0['getRootsAttributes'];}async function N(_0x1d850a,_0x4a66a0,_0x5a6006){const _0x1012a2=_0x44968d(_0x1d850a,T);_0x1012a2['plugins']['push'](p,D),_0x1012a2['rootsAttributes']=v(_0x1d850a)?_0x1d850a['getRootsAttributes']():void 0x0;const _0x543db5=document['createDocumentFragment'](),_0x461fd8=_0x1d850a['config']['get']('trackChangesData')['editorCreator'],_0x1069da=await _0x461fd8(_0x1012a2,()=>function(_0x4d6f22){const _0x39d14f=document['createElement']('div');return _0x4d6f22['appendChild'](_0x39d14f),_0x39d14f;}(_0x543db5));!function(_0x1ebdd3,_0x29ddfd){const _0x8b5084=_0x1ebdd3['model']['document']['getRootNames']()['reduce']((_0x1a0ae8,_0x26557f)=>(_0x1a0ae8[_0x26557f]=_0x1ebdd3['data']['get']({'rootName':_0x26557f}),_0x1a0ae8),{}),_0x546bcd=_0x1ebdd3['plugins']['get']('Users')['users']['map'](_0x466db2=>({'id':_0x466db2['id'],'name':_0x466db2['name']})),_0x43aa9d=_0x1ebdd3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x342c54=_0x1ebdd3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x119be6=_0x29ddfd['plugins']['get']('Users'),_0x42cf67=_0x29ddfd['plugins']['get']('TrackChangesEditing'),_0xcadf27=_0x29ddfd['plugins']['get']('CommentsRepository');for(const _0x6c0c29 of _0x546bcd)_0x119be6['getUser'](_0x6c0c29['id'])||_0x119be6['addUser'](_0x6c0c29);_0x119be6['me']||_0x119be6['useAnonymousUser']();for(const _0x3ac7df of _0x342c54)_0xcadf27['addCommentThread'](_0x3ac7df);for(const _0x5b0b6b of _0x43aa9d)_0x42cf67['addSuggestionData'](_0x5b0b6b);_0x29ddfd['data']['set'](_0x8b5084);}(_0x1d850a,_0x1069da),_0x1069da['execute'](_0x4a66a0?'acceptAllSuggestions':'discardAllSuggestions');const _0x3a1eab=v(_0x1069da)?_0x1069da['getFullData'](_0x5a6006):_0x1069da['data']['get'](_0x5a6006);return await _0x1069da['destroy'](),_0x3a1eab;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x2195d0,PendingActions as _0x72fa89,icons as _0x5479fd}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x417f34,ObservableMixin as _0x23f0a0,uid as _0x178cde,insertToPriorityArray as _0x1095e2,priorities as _0x46047a,logWarning as _0x41cd1c,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2cbe4e,View as _0x2e678f,ButtonView as _0x1a05a2,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 _0x19909f,hashObject as _0x2f7a2e,surroundingMarkersDetector as _0x5aca81,trimHtml as _0x4facb6,UserView as _0x37726c,getDateTimeFormatter as _0x2f8068,getAllMarkersDomElementsSorted as _0x2ea60a,sanitizeEditorConfig as _0x3d82c6}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x9b17a8,LiveRange as _0x13a6f6,LivePosition as _0x73c9ae}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x58030c,toWidget as _0x4a80e2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1fd017,set as _0x3928b2,isEqual as _0xd50537,unset as _0x57cf00,omit as Bt}from'lodash-es';import{Delete as _0x45a633,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2e4839,ShiftEnter as _0x404d62}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x91e19,_0x4659c6){super(_0x91e19),this['_enabledCommands']=_0x4659c6,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 _0x4abfa0 of this['editor']['commands']['commands']())_0x4abfa0['affectsData']&&!this['_enabledCommands']['has'](_0x4abfa0)&&_0x4abfa0['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x42efff of this['editor']['commands']['commands']())_0x42efff['affectsData']&&!this['_enabledCommands']['has'](_0x42efff)&&_0x42efff['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0xa177f0,_0x23958a){super(_0xa177f0),this['_suggestions']=_0x23958a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f9107){const _0x381ca7=this['_suggestions']['get'](_0x3f9107);if(!_0x381ca7)throw new _0x417f34('track-changes-accept-suggestion-not-found',this);const _0x2460e1=_0x381ca7['getRanges']();this['editor']['model']['canEditAt'](_0x2460e1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x381ca7);}}class B extends ts{['_suggestions'];constructor(_0x142079,_0x4b2ec6){super(_0x142079),this['_suggestions']=_0x4b2ec6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3ea135){const _0x29c36d=this['_suggestions']['get'](_0x3ea135);if(!_0x29c36d)throw new _0x417f34('track-changes-discard-suggestion-not-found',this);const _0xdf4cad=_0x29c36d['getRanges']();this['editor']['model']['canEditAt'](_0xdf4cad)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x29c36d);}}function ss(_0x4998d5){return _0x4998d5['sort']((_0x66745a,_0x85d814)=>'deletion'==_0x66745a['type']&&'deletion'!=_0x85d814['type']?-0x1:'deletion'!=_0x66745a['type']&&'deletion'==_0x85d814['type']?0x1:0x0);}function to(_0x4d08b0,_0x418716){let _0x35d011,_0x4d35f8=0x0;const _0x4b198a=[],_0x1728a9=_0x418716['schema'];for(;_0x4d35f8<_0x4d08b0['length'];){const _0x28be00=_0x4d08b0[_0x4d35f8],_0x48c8c=_0x4d08b0[_0x4d35f8+0x1];_0x35d011||(_0x35d011=_0x418716['createPositionBefore'](_0x28be00)),co(_0x418716,_0x28be00,_0x48c8c)||(_0x4b198a['push'](_0x418716['createRange'](_0x35d011,_0x1728a9['isObject'](_0x28be00)?_0x418716['createPositionAfter'](_0x28be00):_0x418716['createPositionAt'](_0x28be00,'end'))),_0x35d011=null),_0x4d35f8++;}return _0x4b198a;}function co(_0x5b1d7c,_0x1a1d90,_0x41044f){if(!_0x41044f)return!0x1;const _0x1deba4=_0x5b1d7c['createPositionAfter'](_0x1a1d90),_0x1c4c80=_0x5b1d7c['createPositionBefore'](_0x41044f);return _0x1deba4['isTouching'](_0x1c4c80);}function rs(_0x38ba7d,_0x4db28e,_0x2e59df){for(;_0x2e59df['length'];){const _0x338894=_0x2e59df['splice'](0x0,0x64);_0x38ba7d['change'](()=>{for(const _0x485380 of _0x338894)_0x485380['isInContent']&&_0x4db28e['execute'](_0x485380['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x2eb023,_0xdbbe09,_0x82eb81){super(_0x2eb023),this['_command']=_0xdbbe09,this['_suggestions']=_0x82eb81,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x27482a=Array['from'](this['_suggestions']['values']())['some'](_0x1732b9=>_0x1732b9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x27482a;}['execute'](){const _0x5adc61=ss(Array['from'](this['_suggestions']['values']()));for(const _0x383169 of _0x5adc61){const _0x26f6f9=_0x383169['getRanges']();if(!this['editor']['model']['canEditAt'](_0x26f6f9))return;}rs(this['editor']['model'],this['_command'],_0x5adc61);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xf0dc63,_0x12ae71,_0x1f0fea){super(_0xf0dc63),this['_command']=_0x12ae71,this['_suggestions']=_0x1f0fea,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x379356=this['editor']['model']['document']['selection'],_0x20e683=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5e06b1,_0x4c122d){const _0x1f3118=Array['from'](_0x5e06b1['getRanges']()),_0x1614de=new Set();for(const _0x8476ca of _0x4c122d)if(_0x8476ca['isInContent']){for(const _0x5423d4 of _0x1f3118)for(const _0x19ebb1 of _0x8476ca['getRanges']())(_0x5423d4['isIntersecting'](_0x19ebb1)||_0x5e06b1['isCollapsed']&&!_0x8476ca['isMultiRange']&&_0x8476ca['next']&&_0x19ebb1['end']['isTouching'](_0x5423d4['start']))&&_0x1614de['add'](_0x8476ca);}return _0x1614de;}(_0x379356,_0x20e683),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5cb549=ss(Array['from'](this['_selectedSuggestions']));for(const _0x56b8a3 of _0x5cb549){const _0x3b2dae=_0x56b8a3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3b2dae))return;}rs(this['editor']['model'],this['_command'],_0x5cb549);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x23f0a0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x45e26e,_0x5d9764){super(),this['id']=_0x5d9764['id'],this['type']=_0x5d9764['type'],this['subType']=_0x5d9764['subType']||null,this['author']=_0x5d9764['author'],this['creator']=_0x5d9764['creator']||_0x5d9764['author'],this['isExternal']=Boolean(_0x5d9764['attributes']&&_0x5d9764['attributes']['@external']),this['data']=null,this['_model']=_0x45e26e,this['_onAccept']=_0x5d9764['onAccept'],this['_onDiscard']=_0x5d9764['onDiscard'],this['_onAttributesChange']=_0x5d9764['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5d9764['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 _0x599a32=this;for(;_0x599a32['previous'];)_0x599a32=_0x599a32['previous'];return _0x599a32;}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'](_0x1dbe63){this['_markerNames']['add'](_0x1dbe63);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4346ee=>this['_model']['markers']['get'](_0x4346ee))['filter'](_0x51ae8a=>_0x51ae8a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x21cbb4=>{for(const _0x10f0ad of this['getMarkers']())_0x21cbb4['removeMarker'](_0x10f0ad);}),this['_markerNames']['clear']();}['removeMarker'](_0x475f1d){this['_model']['change'](_0x1b8623=>{_0x1b8623['removeMarker'](_0x475f1d);}),this['_markerNames']['delete'](_0x475f1d);}['addRange'](_0x5a5b9c){const _0x56d110='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x56d110),this['_model']['change'](_0x3e89c9=>{_0x3e89c9['addMarker'](_0x56d110,{'range':_0x5a5b9c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x41bd8b){for(const _0x2e2bba of this['getRanges']())if(_0x2e2bba['isIntersecting'](_0x41bd8b))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2456a8=>_0x2456a8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x28ad93,_0x5d27a4)=>[..._0x28ad93,..._0x5d27a4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x214b5a=this['getRanges']();if(0x1!=_0x214b5a['length'])return null;const _0x2703d9=_0x214b5a[0x0],_0xaa82d6=_0x2703d9['start']['nodeAfter'],_0x53bac1=_0x2703d9['end']['nodeBefore'];return _0xaa82d6 instanceof _0x9b17a8?_0xaa82d6!=_0x53bac1?null:_0xaa82d6: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 _0x28d833=[];let _0x561271=this['head'];for(;_0x561271;)_0x28d833['push'](_0x561271),_0x561271=_0x561271['next'];return _0x28d833;}['setAttribute'](_0x2ea981,_0x558902){const _0x4545e0=_0x1fd017(this['attributes']);_0x3928b2(_0x4545e0,_0x2ea981,_0x558902),_0xd50537(_0x4545e0,this['attributes'])||(this['attributes']=_0x4545e0,this['_onAttributesChange'](_0x4545e0));}['removeAttribute'](_0x3a7ab4){const _0x232729=_0x1fd017(this['attributes']);_0x57cf00(_0x232729,_0x3a7ab4),_0xd50537(_0x232729,this['attributes'])||(this['attributes']=_0x232729,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 _0x178cde()['substr'](0x1,0x5);}}function o(_0xa52289,_0x27e647,_0xfa4224){const t=_0xa52289['t'];switch(_0x27e647){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',_0xfa4224);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xfa4224);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xfa4224);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xfa4224);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xfa4224);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',_0xfa4224);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xfa4224);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',_0xfa4224);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xfa4224);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xfa4224);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xfa4224);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xfa4224);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xfa4224);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xfa4224);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xfa4224);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xfa4224);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xfa4224);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xfa4224);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xfa4224);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xfa4224);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xfa4224);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xfa4224);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xfa4224);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'},_0xfa4224);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xfa4224);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xfa4224);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xfa4224);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xfa4224);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xfa4224);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'},_0xfa4224);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xfa4224);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xfa4224);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xfa4224);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xfa4224);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'},_0xfa4224);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xfa4224);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'},_0xfa4224);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'},_0xfa4224);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xfa4224);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'},_0xfa4224);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xfa4224);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'},_0xfa4224);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xfa4224);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xfa4224);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'},_0xfa4224);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'},_0xfa4224);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 _0x27e647;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x46450c,_0x28df08){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x46450c,this['_locale']=_0x28df08;}['getDescriptions'](_0x13d5f5){const _0x526a3e=[],_0x3fe3b9=new Set(),_0x225e29=new Set();for(let _0xe97c4b=0x0;_0xe97c4b<_0x13d5f5['length'];_0xe97c4b++){const _0x5eeeb2=_0x13d5f5[_0xe97c4b];if(!_0x5eeeb2['isInContent'])continue;const _0x5cf91f=this['_handleCustomCallbackDescription'](_0x5eeeb2);if(_0x5cf91f){if(null!=_0x5eeeb2['subType']){if(_0x3fe3b9['has'](_0x5eeeb2['subType']))continue;_0x3fe3b9['add'](_0x5eeeb2['subType']);}_0x526a3e['push'](_0x5cf91f);}else{if('attribute'!=_0x5eeeb2['type'])'insertion'!=_0x5eeeb2['type']&&'deletion'!=_0x5eeeb2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x526a3e,_0x5eeeb2,_0x13d5f5[_0xe97c4b+0x1]);else{const _0x4d2685=_0x5eeeb2['data']['key'];if(_0x225e29['has'](_0x4d2685))continue;_0x225e29['add'](_0x5eeeb2['data']['key']),_0x4d2685==m?this['_handleRenameSuggestionDescription'](_0x526a3e,_0x5eeeb2):this['_handleAttributeSuggestionDescription'](_0x526a3e,_0x5eeeb2);}}}return this['_resolveDescriptionItems'](_0x526a3e);}['registerDescriptionCallback'](_0x5505cc){this['_customCallbacks']['push'](_0x5505cc);}['registerElementLabel'](_0x4fb44d,_0x2fb65b,_0x5c0d41=_0x46047a['normal']){'function'==typeof _0x4fb44d?_0x1095e2(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4fb44d,'label':_0x2fb65b,'priority':_0x5c0d41}):this['_itemLabels']['set'](_0x4fb44d,_0x2fb65b);}['registerAttributeLabel'](_0x326975,_0x433ead){this['_attributeLabels']['set'](_0x326975,_0x433ead);}['getItemLabel'](_0x5040d9,_0x16447c=0x1){let _0x241820;for(const _0x2d030e of this['_itemLabelsCallbacks'])if(_0x2d030e['matchingCallback'](_0x5040d9)){_0x241820=_0x2d030e['label'];break;}return _0x241820||(_0x241820=this['_itemLabels']['get'](_0x5040d9['name'])),_0x241820?_0x241820(_0x16447c):0x1!==_0x16447c?_0x16447c+'\x20'+_0x5040d9['name']+'s':''+_0x5040d9['name'];}['_addDescriptionItems'](_0x6cdede,_0x46de52){const _0x16d9b6=_0x46de52['getFirstRange']()['getWalker'](),_0x39936c='insertion'==_0x46de52['type']?'add':'remove';for(const _0x3b3812 of _0x16d9b6){const _0x18ddb4=_0x3b3812['item'],_0x5dcad2=_0x6cdede[_0x6cdede['length']-0x1];if(_0x18ddb4['is']('$textProxy'))_0x5dcad2&&_0x5dcad2['type']['indexOf']('Container')>-0x1&&_0x6cdede['pop'](),_0x5dcad2&&'text'==_0x5dcad2['type']?_0x5dcad2[_0x39936c]+=_0x18ddb4['data']:_0x6cdede['push']({'type':'text','add':'add'==_0x39936c?_0x18ddb4['data']:'','remove':'remove'==_0x39936c?_0x18ddb4['data']:''});else{if(this['_schema']['isObject'](_0x18ddb4)){const _0x51b304=_0x18ddb4;if(_0x5dcad2&&_0x5dcad2['type']['indexOf']('Container')>-0x1&&_0x6cdede['pop'](),'elementEnd'==_0x3b3812['type'])continue;_0x5dcad2&&_0x5dcad2['type']==_0x39936c+'Object'&&_0x5dcad2['element']['name']==_0x51b304['name']?_0x5dcad2['quantity']++:_0x6cdede['push']({'type':_0x39936c+'Object','element':_0x51b304,'quantity':0x1}),_0x16d9b6['skip'](_0x2bc5bc=>!('elementEnd'==_0x2bc5bc['type']&&_0x2bc5bc['item']==_0x18ddb4));}else{if(this['_schema']['checkChild'](_0x18ddb4,'$text')||_0x18ddb4['is']('element','softBreak')){const _0x598f33=_0x18ddb4;if('add'==_0x39936c&&'elementStart'==_0x3b3812['type']||'remove'==_0x39936c&&'elementEnd'==_0x3b3812['type'])continue;if(_0x5dcad2&&-0x1==_0x5dcad2['type']['indexOf']('Container')){'text'==_0x5dcad2['type']&&(_0x5dcad2[_0x39936c]+='\x0a');continue;}let _0x5702d6;if(_0x5702d6='add'==_0x39936c?_0x598f33['nextSibling']&&!this['_schema']['isObject'](_0x598f33['nextSibling'])?_0x598f33['nextSibling']:null:_0x598f33['previousSibling']&&!this['_schema']['isObject'](_0x598f33['previousSibling'])?_0x598f33['previousSibling']:null,_0x598f33['isEmpty']||_0x5702d6&&_0x5702d6['isEmpty']){const _0x13a511=_0x5702d6&&_0x5702d6['isEmpty']?_0x5702d6:_0x598f33;_0x5dcad2&&_0x5dcad2['type']==_0x39936c+'EmptyContainer'&&_0x5dcad2['element']['name']==_0x13a511['name']?_0x5dcad2['quantity']++:_0x6cdede['push']({'type':_0x39936c+'EmptyContainer','element':_0x13a511,'quantity':0x1});}else _0x6cdede['push']({'type':_0x39936c+'Container','element':_0x598f33});}}}}}['_resolveDescriptionItems'](_0x2b9000){const _0x537375=this['_locale'],_0x5366f5=[],_0x426df3=[],_0x42d72f=[];for(const _0x2e6568 of _0x2b9000)switch(_0x2e6568['type']){case'text':if(_0x2e6568['add']=_0x2e6568['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2e6568['remove']=_0x2e6568['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2e6568['add']&&''!=_0x2e6568['remove']){_0x5366f5['push']({'type':'replace','content':o(_0x537375,'REPLACE_TEXT',['\x22'+_0x2e6568['remove']+'\x22','\x22'+_0x2e6568['add']+'\x22'])});continue;}if(null!=_0x2e6568['add']['match'](/^ +$/)){_0x5366f5['push']({'type':'insertion','content':o(_0x537375,'*Insert:*\x20%0',o(_0x537375,'ELEMENT_SPACE',_0x2e6568['add']['length']))});continue;}if(null!=_0x2e6568['remove']['match'](/^ +$/)){_0x5366f5['push']({'type':'deletion','content':o(_0x537375,'*Remove:*\x20%0',o(_0x537375,'ELEMENT_SPACE',_0x2e6568['remove']['length']))});continue;}if(''!=_0x2e6568['add']){_0x5366f5['push']({'type':'insertion','content':o(_0x537375,'*Insert:*\x20%0','\x22'+_0x2e6568['add']+'\x22')});continue;}_0x5366f5['push']({'type':'deletion','content':o(_0x537375,'*Remove:*\x20%0','\x22'+_0x2e6568['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5366f5['push']({'type':'insertion','content':o(_0x537375,'*Insert:*\x20%0',this['getItemLabel'](_0x2e6568['element'],_0x2e6568['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5366f5['push']({'type':'deletion','content':o(_0x537375,'*Remove:*\x20%0',this['getItemLabel'](_0x2e6568['element'],_0x2e6568['quantity']))});continue;case'addContainer':_0x5366f5['push']({'type':'insertion','content':o(_0x537375,'*Split:*\x20%0',this['getItemLabel'](_0x2e6568['element'],_0x2e6568['quantity']))});continue;case'removeContainer':_0x5366f5['push']({'type':'deletion','content':o(_0x537375,'*Merge:*\x20%0',this['getItemLabel'](_0x2e6568['element'],_0x2e6568['quantity']))});continue;case'addFormat':_0x426df3['push'](_0x2e6568['key']);continue;case'removeFormat':_0x42d72f['push'](_0x2e6568['key']);continue;default:_0x5366f5['push'](_0x2e6568);}if(_0x426df3['length']){const _0x21b524=_0x426df3['map'](_0x57e4ba=>this['_attributeLabels']['has'](_0x57e4ba)?this['_attributeLabels']['get'](_0x57e4ba):_0x57e4ba)['join'](',\x20');_0x5366f5['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x21b524)});}if(_0x42d72f['length']){const _0x187a34=_0x42d72f['map'](_0x44d4b7=>this['_attributeLabels']['has'](_0x44d4b7)?this['_attributeLabels']['get'](_0x44d4b7):_0x44d4b7)['join'](',\x20');_0x5366f5['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x187a34)});}return _0x5366f5;}['_handleCustomCallbackDescription'](_0x255264){for(const _0x574a31 of this['_customCallbacks']){const _0x27c479=_0x574a31(_0x255264);if(_0x27c479&&'type'in _0x27c479)return _0x27c479;}}['_handleAttributeSuggestionDescription'](_0x560c29,_0x2a81e5){const _0x27a637=_0x2a81e5['data'],_0x24db05=void 0x0===_0x27a637['newValue']?'removeFormat':'addFormat';_0x560c29['push']({'type':_0x24db05,'key':_0x27a637['key']});}['_handleRenameSuggestionDescription'](_0x581b69,_0x3a7106){_0x581b69['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3a7106['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x496ac3,_0x3475f9,_0x2d1ce9){if(this['_addDescriptionItems'](_0x496ac3,_0x3475f9),_0x2d1ce9&&_0x2d1ce9['getFirstRange']()&&!_0x3475f9['getFirstRange']()['end']['isEqual'](_0x2d1ce9['getFirstRange']()['start'])){const _0x62e9bf=_0x496ac3[_0x496ac3['length']-0x1],_0x63b210='insertion'==_0x3475f9['type']?'add':'remove';_0x62e9bf&&'text'==_0x62e9bf['type']&&(_0x62e9bf[_0x63b210]+='\x0a');}}}class E extends _0x2195d0{['afterInit'](){const _0x5368cf=this['editor'],_0xe92685=_0x5368cf['plugins']['get']('TrackChangesEditing');_0x5368cf['commands']['get']('showAIAssistant')&&_0xe92685['enableCommand']('showAIAssistant');}}class V extends _0x2195d0{['afterInit'](){const _0x3af9e2=this['editor'],_0x5450d0=_0x3af9e2['locale'];if(!_0x3af9e2['plugins']['has']('AlignmentEditing'))return;const _0x5c7984=_0x3af9e2['plugins']['get']('TrackChangesEditing');_0x5c7984['enableDefaultAttributesIntegration']('alignment'),_0x5c7984['registerBlockAttribute']('alignment'),_0x5c7984['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5450d0,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56d7f5=this['editor'],_0x3437c8=_0x56d7f5['locale'];_0x56d7f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x321b0d=>{if('formatBlock'!=_0x321b0d['type'])return;const {data:_0x2e87d9}=_0x321b0d;if(_0x2e87d9&&'alignment'==_0x2e87d9['commandName']){const _0x4ba5e4=_0x2e87d9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3437c8,'*Format:*\x20%0',function(_0x2fbc7a){switch(_0x2fbc7a){case'left':return o(_0x3437c8,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3437c8,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3437c8,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3437c8,'FORMAT_JUSTIFY_TEXT');}}(_0x4ba5e4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x2195d0{['afterInit'](){const _0x1301df=this['editor'],_0x34b190=_0x1301df['plugins']['get']('TrackChangesEditing'),_0x22e065=_0x1301df['locale'];for(const _0x4ada6a of ti){if(!_0x1301df['plugins']['has'](_0x4ada6a))continue;const _0xb0c0fb=_0x4ada6a['slice'](0x0,-0x7)['toLowerCase'](),_0x4e0371='FORMAT_'+_0xb0c0fb['toUpperCase']();_0x34b190['enableDefaultAttributesIntegration'](_0xb0c0fb),_0x34b190['registerInlineAttribute'](_0xb0c0fb),_0x34b190['descriptionFactory']['registerAttributeLabel'](_0xb0c0fb,o(_0x22e065,_0x4e0371));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcb023e=this['editor'],_0x25db92=_0xcb023e['locale'],_0x1196b6=_0xcb023e['plugins']['get']('TrackChangesEditing');function _0x5c793c(_0x3d04df,_0x395583){_0x1196b6['descriptionFactory']['registerDescriptionCallback'](_0x47b3d4=>{if('formatInline'!=_0x47b3d4['type'])return;const {data:_0x5e5919}=_0x47b3d4;return _0x5e5919&&_0x5e5919['commandName']===_0x3d04df?_0x5e5919['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25db92,'*Format:*\x20%0',_0x395583)}:{'type':'format','content':o(_0x25db92,'*Remove\x20format:*\x20%0',_0x395583)}:void 0x0;});}_0x5c793c('bold',o(_0x25db92,'FORMAT_BOLD')),_0x5c793c('italic',o(_0x25db92,'FORMAT_ITALIC')),_0x5c793c('underline',o(_0x25db92,'FORMAT_UNDERLINE')),_0x5c793c('code',o(_0x25db92,'FORMAT_CODE')),_0x5c793c('strikethrough',o(_0x25db92,'FORMAT_STRIKETHROUGH')),_0x5c793c('subscript',o(_0x25db92,'FORMAT_SUBSCRIPT')),_0x5c793c('superscript',o(_0x25db92,'FORMAT_SUPERSCRIPT'));}}class O extends _0x2195d0{['afterInit'](){const _0x1d4b25=this['editor'],_0x42adcd=_0x1d4b25['locale'];if(!_0x1d4b25['plugins']['has']('BlockQuoteEditing'))return;const _0x2df42d=_0x1d4b25['plugins']['get']('TrackChangesEditing'),_0x66f34e=this['editor']['commands']['get']('blockQuote');_0x2df42d['enableCommand']('blockQuote',(_0x34b8d1,_0x5d36c6={})=>{const _0x2ebb31=this['editor']['model']['document']['selection'],_0x3f22df=_0x5d36c6&&void 0x0!==_0x5d36c6['forceValue']?_0x5d36c6['forceValue']:!_0x66f34e['value'];let _0x5016b1=[];if(_0x3f22df){const _0x3f928f=Array['from'](_0x2ebb31['getSelectedBlocks']())['filter'](_0x37c364=>oo(_0x37c364)||function(_0x309677,_0x38b758){const _0x40d6b2=_0x38b758['checkChild'](_0x309677['parent'],'blockQuote'),_0x212e9b=_0x38b758['checkChild'](['$root','blockQuote'],_0x309677);return _0x40d6b2&&_0x212e9b;}(_0x37c364,this['editor']['model']['schema']));_0x5016b1=to(_0x3f928f,_0x1d4b25['model']);}else{const _0x406f13=Array['from'](_0x2ebb31['getSelectedBlocks']())['filter'](_0x1b2175=>oo(_0x1b2175));_0x5016b1=to(_0x406f13,_0x1d4b25['model']);}_0x1d4b25['model']['change'](()=>{for(const _0x20e1a7 of _0x5016b1)_0x2df42d['markBlockFormat'](_0x20e1a7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3f22df}]});});}),_0x2df42d['descriptionFactory']['registerDescriptionCallback'](_0x135d81=>{const {data:_0x27677b}=_0x135d81;if(_0x27677b&&'blockQuote'==_0x27677b['commandName']){const _0x2f7e35=o(_0x42adcd,'ELEMENT_BLOCK_QUOTE');return _0x27677b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42adcd,'*Set\x20format:*\x20%0',_0x2f7e35)}:{'type':'format','content':o(_0x42adcd,'*Remove\x20format:*\x20%0',_0x2f7e35)};}});}}function oo(_0x196982){return'blockQuote'==_0x196982['parent']['name'];}class G extends _0x2195d0{['afterInit'](){const _0x31444d=this['editor'];_0x31444d['plugins']['has']('CaseChange')&&(_0x31444d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x31444d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x31444d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x2195d0{['afterInit'](){const _0x438594=this['editor'];_0x438594['commands']['get']('ckbox')&&_0x438594['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x2195d0{['afterInit'](){const _0x543cf9=this['editor'];if(!_0x543cf9['plugins']['has']('CodeBlock'))return;const _0x150fa8=_0x543cf9['plugins']['get']('TrackChangesEditing'),_0x511c61=_0x543cf9['locale'],_0x5c4cc1=_0x543cf9['config']['get']('codeBlock')['languages'],_0x256a80=_0x543cf9['commands']['get']('codeBlock');_0x150fa8['enableCommand']('indentCodeBlock'),_0x150fa8['enableCommand']('outdentCodeBlock'),_0x150fa8['enableCommand']('codeBlock',(_0x40681c,_0x602d90={})=>{const _0x43615b=_0x543cf9['model'],_0xcd8bb4=_0x543cf9['model']['document']['selection'],_0x3babf6=_0x602d90&&void 0x0!==_0x602d90['forceValue']?_0x602d90['forceValue']:!_0x256a80['value'];let _0x4b1988;_0x602d90['language']||(_0x602d90['language']=_0x5c4cc1[0x0]['language']),_0x4b1988=_0x3babf6?Array['from'](_0xcd8bb4['getSelectedBlocks']())['filter'](_0x4b7e4f=>eo(_0x4b7e4f)||function(_0x25762d,_0x489e6a){if(_0x25762d['is']('rootElement')||_0x489e6a['isLimit'](_0x25762d))return!0x1;return _0x489e6a['checkChild'](_0x25762d['parent'],'codeBlock');}(_0x4b7e4f,_0x43615b['schema'])):Array['from'](_0xcd8bb4['getSelectedBlocks']())['filter'](_0x10d661=>eo(_0x10d661));const _0x2b5208=to(_0x4b1988,_0x43615b);_0x43615b['change'](()=>{for(const _0x5035e7 of _0x2b5208)_0x150fa8['markBlockFormat'](_0x5035e7,{'commandName':'codeBlock','commandParams':[{..._0x602d90,'forceValue':_0x3babf6}],'formatGroupId':'blockName'});});}),(_0x150fa8['descriptionFactory']['registerElementLabel']('codeBlock',_0x5b5a6c=>o(_0x511c61,'ELEMENT_CODE_BLOCK',_0x5b5a6c)),_0x150fa8['descriptionFactory']['registerDescriptionCallback'](_0x12da8d=>{if('formatBlock'!=_0x12da8d['type'])return;const _0x3ba2cd=_0x511c61['t'],{data:_0x54f239}=_0x12da8d;if(!_0x54f239||'codeBlock'!=_0x54f239['commandName'])return;const _0x5ab356=_0x54f239['commandParams'][0x0]['language'],_0x5dc474=_0x3ba2cd(_0x5c4cc1['find'](_0x3ad642=>_0x3ad642['language']===_0x5ab356)['label'])['toLowerCase']();return _0x54f239['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x511c61,'*Set\x20format:*\x20%0',o(_0x511c61,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5dc474+')')}:{'type':'format','content':o(_0x511c61,'*Remove\x20format:*\x20%0',o(_0x511c61,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4504a4){return'codeBlock'==_0x4504a4['name'];}class H extends _0x2195d0{['afterInit'](){const _0x43a520=this['editor'];if(!_0x43a520['plugins']['has']('CommentsEditing'))return;_0x43a520['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x172dc1,_0xd3e894,_0x2f1ad0){const _0x4463e0=[];for(const _0x6750e3 of _0xd3e894['getItems']())_0x6750e3['hasAttribute'](_0x172dc1)&&_0x4463e0['push'](_0x2f1ad0['createRangeOn'](_0x6750e3));return _0x4463e0;}function _e(_0x2ffa13,_0x237488,{showActiveMarker:_0x2c302d=!0x0}={}){const _0x22b274=_0x2ffa13['plugins']['get']('TrackChangesEditing');return(_0x1cff58,_0x48efe1,_0x3d7b3b)=>{if(!_0x3d7b3b['consumable']['test'](_0x48efe1['markerRange'],_0x1cff58['name']))return;const _0x25c499=_0x48efe1['markerRange']['getWalker'](),_0x87b02e=_0x48efe1['markerRange']['start'],_0x562637=_0x2ffa13['model']['schema'];let _0x48d241=null,_0x2ce797=null,_0x4c0475=!0x1,_0x504346=!0x1;for(const _0x549643 of _0x25c499){const _0x2dd39d=_0x549643['item'];_0x4c0475=_0x4c0475||_0x562637['isContent'](_0x2dd39d);const _0x54e719=_0x3d7b3b['mapper']['toViewElement'](_0x2dd39d);if(_0x54e719&&_0x54e719['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x549643['type']&&(_0x562637['isBlock'](_0x2dd39d)&&!_0x562637['isLimit'](_0x2dd39d)&&(_0x2dd39d['nextSibling']||_0x87b02e['isAtEnd']?_0x48d241&&_0x48d241['parent']==_0x2dd39d||(_0x48d241=_0x2dd39d,_0x17eadd(_0x549643['previousPosition']),_0x504346=!0x0):_0x2ce797=_0x2ce797||_0x549643['previousPosition']));}function _0x17eadd(_0xd9e8b1){const _0x53ecb9=_0x3d7b3b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x237488}),_0x467b87=_0x3d7b3b['mapper']['toViewPosition'](_0xd9e8b1);_0x2c302d&&_0x22b274['activeMarkers']['includes'](_0x48efe1['markerName'])&&_0x3d7b3b['writer']['addClass']('ck-suggestion-marker--active',_0x53ecb9),_0x3d7b3b['writer']['insert'](_0x467b87,_0x53ecb9),_0x3d7b3b['mapper']['bindElementToMarker'](_0x53ecb9,_0x48efe1['markerName']);}_0x4c0475||_0x504346||!_0x2ce797||_0x17eadd(_0x2ce797);};}class q extends _0x2195d0{static get['requires'](){return[_0x45a633];}['init'](){const _0x3709b0=this['editor'],_0x119c81=_0x3709b0['plugins']['get']('TrackChangesEditing');_0x119c81['enableCommand']('delete');const _0x502a01=_0x3709b0['commands']['get']('deleteForward');_0x119c81['enableCommand']('deleteForward',(_0x31f53d,_0x544122={})=>{const _0x4a03ab=_0x3709b0['model']['createSelection'](_0x3709b0['model']['document']['selection']);_0x4a03ab['isCollapsed']&&_0x3709b0['model']['modifySelection'](_0x4a03ab,{'direction':'forward','unit':_0x544122['unit']});const _0x48a5f6=_0x4a03ab['getFirstRange'](),_0x3436c2=_0x13a6f6['fromRange'](_0x48a5f6);let _0x137cb9;_0x31f53d(_0x544122),_0x137cb9='$graveyard'==_0x3436c2['root']['rootName']?_0x3709b0['model']['createRange'](_0x48a5f6['start']):_0x3709b0['model']['createRange'](_0x3436c2['start'],_0x3436c2['end']),_0x3436c2['detach'](),_0x3709b0['model']['enqueueChange'](_0x502a01['buffer']['batch'],_0x5eba54=>{_0x502a01['buffer']['lock'](),_0x5eba54['setSelection'](_0x5eba54['createRange'](_0x137cb9['end'])),_0x502a01['buffer']['unlock']();});}),_0x3709b0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3709b0,'merge'),{'priority':'high'}),_0x3709b0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x98d58e,_0x1857f7,_0x3801c5)=>{_0x3801c5['options']['showSuggestionHighlights']&&_e(_0x3709b0,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x98d58e,_0x1857f7,_0x3801c5);},{'priority':'high'}),_0x3709b0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3e2947,_0x498e1c,_0x1003f3)=>{const _0x360d64=_0x1003f3['mapper']['markerNameToElements'](_0x498e1c['markerName']);if(_0x360d64){for(const _0x3401e9 of _0x360d64)_0x3401e9['is']('uiElement')&&(_0x1003f3['mapper']['unbindElementFromMarkerName'](_0x3401e9,_0x498e1c['markerName']),_0x1003f3['writer']['remove'](_0x3401e9));}},{'priority':'high'});}}class z extends _0x2195d0{['afterInit'](){const _0x33b47e=this['editor'];if(!_0x33b47e['plugins']['has']('ListEditing'))return;const _0x4ef2fa=_0x33b47e['locale'],_0x5cebbd=_0x33b47e['plugins']['get']('TrackChangesEditing'),_0x3fb7db=_0x33b47e['plugins']['has']('TodoListEditing'),_0x4f1e0e=!!_0x33b47e['config']['get']('list.multiBlock');function _0x68521e(_0x1e42a7){return{'type':'format','content':''+o(_0x4ef2fa,'*Set\x20format:*\x20%0',_0x1e42a7)};}function _0x40c1c0(_0x2da9b4){return{'type':'format','content':''+o(_0x4ef2fa,'*Remove\x20format:*\x20%0',_0x2da9b4)};}_0x5cebbd['enableDefaultAttributesIntegration']('numberedList'),_0x5cebbd['enableDefaultAttributesIntegration']('bulletedList'),_0x5cebbd['enableDefaultAttributesIntegration']('customNumberedList'),_0x5cebbd['enableDefaultAttributesIntegration']('customBulletedList'),_0x5cebbd['enableDefaultAttributesIntegration']('indentList'),_0x5cebbd['enableDefaultAttributesIntegration']('outdentList'),_0x5cebbd['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5cebbd['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5cebbd['registerBlockAttribute']('listItemId'),_0x5cebbd['registerBlockAttribute']('listType'),_0x5cebbd['registerBlockAttribute']('listIndent'),_0x4f1e0e&&(_0x5cebbd['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5cebbd['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3fb7db&&(_0x5cebbd['enableDefaultAttributesIntegration']('todoList'),_0x5cebbd['enableDefaultAttributesIntegration']('checkTodoList'),_0x5cebbd['registerBlockAttribute']('todoListChecked'),_0x5cebbd['descriptionFactory']['registerDescriptionCallback'](_0x502bf7=>{const {data:_0x276bb8}=_0x502bf7;if(_0x276bb8&&'todoListChecked'==_0x276bb8['key'])return{'type':'format','content':_0x276bb8['newValue']?o(_0x4ef2fa,'*Check\x20item*'):o(_0x4ef2fa,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4dc5ac=>{if(_0x4dc5ac['batch']['isUndo'])return!0x1;let _0x1f7c95=!0x1;const _0x1de4b3=_0x5cebbd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x504d86=>'todoListChecked'===_0x5cebbd['_getAttributeKey'](_0x504d86));for(const _0x234fc6 of _0x1de4b3){'todo'!=_0x234fc6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5cebbd['_findSuggestions'](_0x234fc6['getFirstRange'](),'attribute')['find'](_0x487c0b=>'listType'===_0x5cebbd['_getAttributeKey'](_0x487c0b['suggestion']))||(_0x4dc5ac['removeMarker'](_0x234fc6['getFirstMarker']()),_0x1f7c95=!0x0));}return _0x1f7c95;})),_0x5cebbd['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4ef2fa,'FORMAT_INDENT'));const _0x3ba61e={'type':'format','content':''};_0x5cebbd['descriptionFactory']['registerDescriptionCallback'](_0xafd5a5=>{const {data:_0x575195}=_0xafd5a5;if(!_0x575195||'listType'!=_0x575195['key'])return;let _0x2c421b=_0xafd5a5['head'];for(;_0x2c421b;){if(_0x2c421b['data']&&(('listStyle'==_0x2c421b['data']['key']||'listMarkerStyle'==_0x2c421b['data']['key'])&&(_0x2c421b['data']['newValue']&&'default'!=_0x2c421b['data']['newValue']||'default'!=_0x2c421b['data']['oldValue']&&!_0x575195['newValue'])||!_0x4f1e0e&&_0x2c421b['data']['key']==m))return _0x3ba61e;_0x2c421b=_0x2c421b['next'];}if(null==_0x575195['newValue'])switch(_0x575195['oldValue']){case'bulleted':return _0x40c1c0(o(_0x4ef2fa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x40c1c0(o(_0x4ef2fa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x40c1c0(o(_0x4ef2fa,'ELEMENT_TODO_LIST'));}switch(_0x575195['newValue']){case'bulleted':return _0x68521e(o(_0x4ef2fa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x68521e(o(_0x4ef2fa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x68521e(o(_0x4ef2fa,'ELEMENT_TODO_LIST'));}}),_0x5cebbd['descriptionFactory']['registerDescriptionCallback'](_0x32562b=>{const {data:_0x167872}=_0x32562b;if(_0x167872&&'listIndent'==_0x167872['key'])return null==_0x167872['newValue']||null==_0x167872['oldValue']&&0x0==_0x167872['newValue']?_0x3ba61e:void 0x0;}),_0x5cebbd['descriptionFactory']['registerDescriptionCallback'](_0x43375a=>{if('attribute'!=_0x43375a['type'])return;const {data:_0x5058f0}=_0x43375a;if(!_0x5058f0||'listItemId'!=_0x5058f0['key'])return;const _0x571320=le(_0x43375a);return'newValue'==_0x571320?{'type':'format','content':o(_0x4ef2fa,'*Merge:*\x20list\x20item')}:'oldValue'==_0x571320?{'type':'format','content':o(_0x4ef2fa,'*Split:*\x20list\x20item')}:_0x3ba61e;}),_0x33b47e['model']['document']['registerPostFixer'](_0x2e3702=>this['listItemIdFixer'](_0x2e3702)),_0x33b47e['model']['document']['registerPostFixer'](_0x4fd79b=>this['noTrackChangesFixer'](_0x4fd79b)),_0x33b47e['model']['document']['registerPostFixer'](_0x4bd52e=>this['assureChains'](_0x4bd52e)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5c0e01){if(_0x5c0e01['batch']['isUndo']||!_0x5c0e01['batch']['isLocal'])return!0x1;let _0x4fad9c=!0x1;const _0x2421e7=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x219f8a=>_0x219f8a['data']&&'listItemId'==_0x219f8a['data']['key'])['filter'](_0x43c52e=>_0x43c52e['data']['newValue']&&_0x43c52e['data']['oldValue']);for(const _0x18112a of _0x2421e7)le(_0x18112a)||(_0x5c0e01['removeMarker'](_0x18112a['getFirstMarker']()),_0x4fad9c=!0x0);return _0x4fad9c;}['noTrackChangesFixer'](_0x2588fc){if(_0x2588fc['batch']['isUndo']||!_0x2588fc['batch']['isLocal'])return!0x1;const _0x204eb7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x204eb7['trackChangesCommand']['value'])return!0x1;let _0x5eab12=!0x1;const _0x5cb419=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2b89d0=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x12ea82=>'attribute'==_0x12ea82['type'])['filter'](_0x21a682=>_0x5cb419['includes'](_0x21a682['attributeKey']));if(0x0==_0x2b89d0['length'])return _0x5eab12;for(const _0x289558 of _0x2b89d0){const _0xf7ea0c=_0x204eb7['_findSuggestions'](_0x289558['range'],'attribute')['filter'](_0x3cfdb0=>!_0x3cfdb0['meta']['isNextTo'])['map'](_0x4d6956=>_0x4d6956['suggestion'])['filter'](_0x47534f=>{const _0x2fb05e=_0x204eb7['_getAttributeKey'](_0x47534f);return _0x5cb419['includes'](_0x2fb05e);});if(_0xf7ea0c['length']){for(const _0xa5c03f of _0xf7ea0c)_0x2588fc['removeMarker'](_0xa5c03f['getFirstMarker']());_0x5eab12=!0x0;}}return _0x5eab12;}['assureChains'](_0x5d8218){if(_0x5d8218['batch']['isUndo']||!_0x5d8218['batch']['isLocal'])return!0x1;const _0x5e87e8=this['editor']['plugins']['get']('TrackChangesEditing');let _0x203287=!0x1;const _0x2daf7b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x504adb of _0x5e87e8['getSuggestions']({'skipNotAttached':!0x0})){const _0x5605de=_0x5e87e8['_findSuggestions'](_0x504adb['getFirstRange'](),'attribute')['map'](_0x1223fd=>_0x1223fd['suggestion'])['filter'](_0x2194c0=>_0x2194c0['data']&&_0x2daf7b['includes'](_0x2194c0['data']['key']));if(!_0x5605de['length'])continue;const _0xdfdbcb=_0x5605de[0x0]['head']['attributes']['groupId'];if(!_0x5605de['every'](_0x12fb09=>_0x12fb09['attributes']['groupId']===_0xdfdbcb)){for(const _0x193db6 of _0x5605de)_0x15812c(_0x193db6,_0xdfdbcb)&&(_0x203287=!0x0);}}return _0x203287;function _0x569d84(_0x4be5e2,_0x3497af){for(const _0xa7fad0 of _0x5e87e8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e2e8d=>'attribute'==_0x1e2e8d['type']&&_0x1e2e8d['attributes']['groupId']==_0x4be5e2))_0xa7fad0['setAttribute']('groupId',_0x3497af);}function _0x15812c(_0x593d65,_0x2f7544){let _0x1345d8=_0x593d65['head'],_0x299055=!0x1;for(;_0x1345d8;)_0x1345d8['attributes']['groupId']!=_0x2f7544&&(_0x569d84(_0x1345d8['attributes']['groupId'],_0x2f7544),_0x1345d8['setAttribute']('groupId',_0x2f7544),_0x299055=!0x0),_0x1345d8=_0x1345d8['next'];return _0x299055;}}['_supportLegacySuggestions'](){const _0x4fff59=this['editor'],_0x4f5279=_0x4fff59['locale'],_0x5c8d02=_0x4fff59['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5c8d02['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x13dec5,_0x7e0d31){const _0x1ee5ed=[];for(let _0x1d0538 of _0x13dec5)_0x1d0538['start']['nodeAfter']===_0x1d0538['end']['parent']&&(_0x1d0538=_0x4fff59['model']['createRange'](_0x4fff59['model']['createPositionAt'](_0x1d0538['start']['nodeAfter'],0x0))),_0x1ee5ed['push'](_0x1d0538);_0x4fff59['model']['change'](_0x333974=>{const _0x24b7ac=_0x4fff59['model']['document']['selection'],_0x157e19=Array['from'](_0x24b7ac['getRanges']())['map'](_0x18e3b3=>_0x13a6f6['fromRange'](_0x18e3b3));_0x333974['setSelection'](_0x1ee5ed),_0x4fff59['commands']['get'](_0x7e0d31['commandName'])['refresh'](),_0x7e0d31['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4fff59['execute'](_0x7e0d31['commandName'],..._0x7e0d31['commandParams']),_0x333974['setSelection'](_0x157e19);for(const _0x33f77b of _0x157e19)_0x33f77b['detach']();});}),_0x5c8d02['descriptionFactory']['registerElementLabel'](function(_0x46181d){const _0x7e82a2=!_0x4fff59['model']['schema']['isObject'](_0x46181d),_0x24139c=_0x46181d['previousSibling'],_0x5508db=_0x46181d['nextSibling'],_0x3aa960=_0x46181d['getAttribute']('listItemId'),_0x362e89=!_0x24139c||_0x24139c['getAttribute']('listItemId')!==_0x3aa960,_0x43be48=!_0x5508db||_0x5508db['getAttribute']('listItemId')!==_0x3aa960;return _0x7e82a2&&Boolean(_0x3aa960)&&_0x362e89&&_0x43be48;},_0x322650=>o(_0x4f5279,'ELEMENT_LIST_ITEM',_0x322650));}['_registerLegacyDescription'](){const _0x21226d=this['editor'],_0x2554aa=_0x21226d['locale'];function _0x1a03a1(_0x3a6875){const _0x599a84=_0x21226d['commands']['get']('bulletedList')['value'],_0x359fe7=_0x21226d['commands']['get']('numberedList')['value'];return'numberedList'===_0x3a6875?_0x599a84:_0x359fe7;}_0x21226d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2d8b74){if('formatBlock'!=_0x2d8b74['type'])return;const {data:_0x5d50e2}=_0x2d8b74;if(!_0x5d50e2)return;let _0x4d258d,_0x536dda,_0x54e268,_0x1465c9;switch(_0x5d50e2['commandName']){case'bulletedList':_0x54e268=_0x5d50e2['commandParams'][0x0]['forceValue'],_0x1465c9=_0x1a03a1(_0x5d50e2['commandName']),_0x4d258d=_0x54e268?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1465c9&&_0x21226d['config']['get']('list.multiBlock')||(_0x4d258d='*Change\x20to:*\x20%0'),_0x536dda={'type':'format','content':o(_0x2554aa,_0x4d258d,o(_0x2554aa,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x54e268=_0x5d50e2['commandParams'][0x0]['forceValue'],_0x1465c9=_0x1a03a1(_0x5d50e2['commandName']),_0x4d258d=_0x54e268?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1465c9&&_0x21226d['config']['get']('list.multiBlock')||(_0x4d258d='*Change\x20to:*\x20%0'),_0x536dda={'type':'format','content':o(_0x2554aa,_0x4d258d,o(_0x2554aa,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4d258d='*Indent:*\x20%0',_0x536dda={'type':'format','content':o(_0x2554aa,_0x4d258d,o(_0x2554aa,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4d258d=function(_0x217a04){const _0x43621f=_0x217a04['getFirstRange']();let _0x53c0dc=_0x43621f['start']['nodeAfter'];for(;_0x53c0dc&&_0x43621f['containsItem'](_0x53c0dc);){if(_0x53c0dc['getAttribute']('listIndent')>0x0)return!0x1;_0x53c0dc=_0x53c0dc['nextSibling'];}return!0x0;}(_0x2d8b74)?o(_0x2554aa,'*Format:*\x20remove\x20from\x20%0',o(_0x2554aa,function(_0x2629ae){return'ELEMENT_'+_0x2629ae['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2d8b74))):o(_0x2554aa,'*Outdent:*\x20%0',o(_0x2554aa,'ELEMENT_LIST_ITEM')),_0x536dda={'type':'format','content':_0x4d258d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5d50e2['multipleBlocks']&&(_0x4d258d='*Merge:*\x20%0',_0x536dda={'type':'deletion','content':o(_0x2554aa,_0x4d258d,o(_0x2554aa,'ELEMENT_LIST_ITEM'))});}return _0x536dda;});}}function le(_0x19c521){let _0x59bc44=_0x19c521['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x59bc44;){const _0x169bae=_0x59bc44['getAttribute']('listItemId');if(!_0x169bae)return!0x1;if(_0x169bae==_0x19c521['data']['newValue'])return'newValue';if(_0x169bae==_0x19c521['data']['oldValue'])return'oldValue';_0x59bc44=_0x59bc44['previousSibling'];}return!0x1;}class ue extends _0x2195d0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2ad7ec=this['editor']['config']['get']('list.properties'),_0x4fcaaf=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ad7ec['styles']&&(_0x4fcaaf['enableDefaultAttributesIntegration']('listStyle'),_0x4fcaaf['registerBlockAttribute']('listStyle')),_0x2ad7ec['reversed']&&(_0x4fcaaf['enableDefaultAttributesIntegration']('listReversed'),_0x4fcaaf['registerBlockAttribute']('listReversed')),_0x2ad7ec['startIndex']&&(_0x4fcaaf['enableDefaultAttributesIntegration']('listStart'),_0x4fcaaf['registerBlockAttribute']('listStart'));const _0x5bb8a9={'type':'format','content':''};_0x4fcaaf['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x52296e=this['editor']['locale'];_0x4fcaaf['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x52296e,'FORMAT_LIST_REVERSED')),_0x4fcaaf['descriptionFactory']['registerDescriptionCallback'](_0xaad854=>{const {data:_0x298919}=_0xaad854;if(_0x298919&&'listReversed'==_0x298919['key'])return null==_0x298919['newValue']||0x0==_0x298919['newValue']&&null==_0x298919['oldValue']?_0x5bb8a9:void 0x0;}),_0x4fcaaf['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x52296e,'FORMAT_LIST_START')),_0x4fcaaf['descriptionFactory']['registerDescriptionCallback'](_0x5b24d0=>{const {data:_0x16a4cc}=_0x5b24d0;if(_0x16a4cc&&'listStart'==_0x16a4cc['key'])return null==_0x16a4cc['newValue']||0x1==_0x16a4cc['newValue']&&null==_0x16a4cc['oldValue']?_0x5bb8a9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4648f5=>{if(_0x4648f5['batch']['isUndo'])return!0x1;let _0xf85029=!0x1;const _0x28f2c2=_0x4fcaaf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2bc33e=>{const _0x1fdd3b=_0x4fcaaf['_getAttributeKey'](_0x2bc33e);return'listStart'==_0x1fdd3b||'listReversed'==_0x1fdd3b;});for(const _0x3c6c52 of _0x28f2c2){const _0x5b1c7b=_0x3c6c52['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5b1c7b||'customNumbered'==_0x5b1c7b)continue;_0x4fcaaf['_findSuggestions'](_0x3c6c52['getFirstRange'](),'attribute')['find'](_0x2ba6cd=>'listType'==_0x4fcaaf['_getAttributeKey'](_0x2ba6cd['suggestion']))||(_0x4648f5['removeMarker'](_0x3c6c52['getFirstMarker']()),_0xf85029=!0x0);}return _0xf85029;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3678ee){const _0x544d9c=this['editor']['locale'],{data:_0x1eee8f}=_0x3678ee,_0x4226d5={'type':'format','content':''};if(!_0x1eee8f||'listStyle'!=_0x1eee8f['key'])return;if(!_0x1eee8f['oldValue'])return'default'==_0x1eee8f['newValue']?_0x4226d5:{'type':'format','content':''+o(_0x544d9c,'*Set\x20format:*\x20%0',o(_0x544d9c,this['_getTranslationKeyForListStyle'](_0x1eee8f['newValue'])))};if(!_0x1eee8f['newValue']){if('default'==_0x1eee8f['oldValue'])return _0x4226d5;let _0x166734=_0x3678ee['head'];for(;_0x166734;){if(_0x166734['data']&&'listType'==_0x166734['data']['key']&&_0x166734['data']['newValue'])return _0x4226d5;_0x166734=_0x166734['next'];}return{'type':'format','content':''+o(_0x544d9c,'*Remove\x20format:*\x20%0',o(_0x544d9c,this['_getTranslationKeyForListStyle'](_0x1eee8f['oldValue'])))};}if('default'!=_0x1eee8f['newValue'])return{'type':'format','content':''+o(_0x544d9c,'*Set\x20format:*\x20%0',o(_0x544d9c,this['_getTranslationKeyForListStyle'](_0x1eee8f['newValue'])))};let _0x434282=_0x3678ee['head'];for(;_0x434282;){if(_0x434282['data']&&'listType'==_0x434282['data']['key']&&_0x434282['data']['newValue']&&_0x434282['data']['oldValue'])return _0x4226d5;_0x434282=_0x434282['next'];}return{'type':'format','content':o(_0x544d9c,'*Set\x20format:*\x20%0',o(_0x544d9c,'ELEMENT_'+_0x3678ee['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5aa922=this['editor'],_0x1f367b=_0x5aa922['locale'];_0x5aa922['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd5f3e0=>{if('formatBlock'!=_0xd5f3e0['type'])return;const {data:_0x65acdb}=_0xd5f3e0;if(!_0x65acdb)return;let _0x57912d,_0x26961b;switch(_0x65acdb['commandName']){case'listStyle':_0x57912d='*Change\x20to:*\x20%0',_0x26961b={'type':'format','content':o(_0x1f367b,_0x57912d,o(_0x1f367b,this['_getTranslationKeyForListStyle'](_0x65acdb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x57912d=_0x65acdb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x26961b={'type':'format','content':o(_0x1f367b,_0x57912d)};break;case'listStart':_0x57912d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x26961b={'type':'format','content':o(_0x1f367b,_0x57912d,_0x65acdb['commandParams'][0x0]['startIndex'])};}return _0x26961b;});}['_getTranslationKeyForListStyle'](_0x517754){return'ELEMENT_'+function(_0x4a05ad){if(pe['includes'](_0x4a05ad))return'bulleted';if(ye['includes'](_0x4a05ad))return'numbered';return null;}(_0x517754)['toUpperCase']()+'_LIST_'+_0x517754['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x2195d0{static get['requires'](){return[_0x2e4839];}['init'](){const _0x431add=this['editor'],_0x130137=_0x431add['plugins']['get']('TrackChangesEditing'),_0x21894e=_0x431add['commands']['get']('enter');_0x130137['enableCommand']('enter',()=>{_0x431add['model']['change'](_0x944190=>{const _0x205ee1=_0x431add['model']['document']['selection'],_0x3f53bd=_0x205ee1['getFirstPosition'](),_0x5dcef1=_0x13a6f6['fromRange'](_0x205ee1['getFirstRange']());if(_0x21894e['enterBlock'](_0x944190)){const _0xa47a77=_0x431add['model']['createPositionAt'](_0x3f53bd['parent']['nextSibling'],0x0),_0x4e8723=_0x944190['createRange'](_0x3f53bd,_0xa47a77);_0x130137['markInsertion'](_0x4e8723);}else _0x944190['setSelection'](_0x944190['createRange'](_0x5dcef1['end']));_0x5dcef1['detach'](),_0x21894e['fire']('afterExecute',{'writer':_0x944190});});}),_0x431add['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x431add,'split'),{'priority':'high'}),_0x431add['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x381192,_0x4ac122,_0x3ec61)=>{const _0x53b4db=_0x3ec61['mapper']['markerNameToElements'](_0x4ac122['markerName']);if(_0x53b4db){for(const _0x58ad2c of _0x53b4db)_0x58ad2c['hasClass']('ck-suggestion-marker-split')&&(_0x3ec61['mapper']['unbindElementFromMarkerName'](_0x58ad2c,_0x4ac122['markerName']),_0x3ec61['writer']['remove'](_0x58ad2c));}},{'priority':'high'}),_0x431add['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x104bfd,_0x5283e2,_0x27ce32)=>{_0x27ce32['options']['showSuggestionHighlights']&&_e(_0x431add,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x104bfd,_0x5283e2,_0x27ce32);},{'priority':'high'});}}class J extends _0x2195d0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3e542b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e542b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3e542b['enableCommand']('findNext'),_0x3e542b['enableCommand']('findPrevious'),_0x3e542b['enableCommand']('replace'),_0x3e542b['enableCommand']('replaceAll');}['handleFindCommand'](_0x4be48e,_0x14e679,_0x21c382={}){const _0x2f7819=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4be48e(_0x56468c=>('string'==typeof _0x14e679?_0x2f7819['findByTextCallback'](_0x14e679,_0x21c382):_0x14e679)(_0x56468c)['filter'](_0x205674=>!0x1===this['_isInDeletionRange'](_0x205674,_0x56468c['item'])),_0x21c382);}['_isInDeletionRange'](_0x5469db,_0x424ba8){const _0x220dd7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x424ba8,_0x5469db['start']),this['editor']['model']['createPositionAt'](_0x424ba8,_0x5469db['end']));for(const _0x18b014 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x220dd7['getIntersection'](_0x18b014['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 _0x2195d0{['afterInit'](){const _0xbac791=this['editor']['locale'],_0x3c1e54=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x52d4e7,commandName:_0x29a1f7}of ro)this['editor']['plugins']['has'](_0x52d4e7)&&(_0x3c1e54['enableDefaultAttributesIntegration'](_0x29a1f7),_0x3c1e54['registerInlineAttribute'](_0x29a1f7));_0xbac791['t'],_0x3c1e54['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xbac791,'FORMAT_FONT_SIZE')),_0x3c1e54['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xbac791,'FORMAT_FONT_FAMILY')),_0x3c1e54['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xbac791,'FORMAT_FONT_COLOR')),_0x3c1e54['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xbac791,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x928ef8=this['editor'],_0x2b3d59=_0x928ef8['locale'];_0x928ef8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fe022=>{const _0x193694=_0x2b3d59['t'];if('formatInline'!=_0x4fe022['type'])return;const {data:_0x1142b2}=_0x4fe022;if(null!=_0x1142b2){if('fontSize'==_0x1142b2['commandName']){const _0x3647db=_0x1142b2['commandParams'][0x0]['value'];if(_0x3647db){const _0x5e63c5=_0x193694(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2d1d43=>_0x2d1d43['model']==_0x3647db)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2b3d59,'*Set\x20font\x20size:*\x20%0',_0x5e63c5)};}return{'type':'format','content':o(_0x2b3d59,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1142b2['commandName']){const _0xa9e6c4=_0x1142b2['commandParams'][0x0]['value'];return _0xa9e6c4?{'type':'format','content':o(_0x2b3d59,'*Set\x20font\x20family:*\x20%0',_0xa9e6c4)}:{'type':'format','content':o(_0x2b3d59,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1142b2['commandName']){const _0x1ed4b2=_0x1142b2['commandParams'][0x0]['value'];if(_0x1ed4b2){const _0x16600c=_0x2cbe4e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1d4c6a=>_0x1d4c6a['model']==_0x1ed4b2);let _0x2d377f=_0x1ed4b2,_0x11b771='';return _0x16600c&&(_0x2d377f=_0x16600c['label'],_0x11b771=_0x193694(_0x2d377f)['toLowerCase']()),{'type':'format','content':o(_0x2b3d59,'*Set\x20font\x20color:*\x20%0',_0x11b771)['trim'](),'color':{'value':_0x1ed4b2,'title':_0x11b771||_0x2d377f}};}return{'type':'format','content':o(_0x2b3d59,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1142b2['commandName']){const _0x428270=_0x1142b2['commandParams'][0x0]['value'];if(_0x428270){const _0x4848ff=_0x2cbe4e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x424be8=>_0x424be8['model']==_0x428270);let _0x4fa698=_0x428270,_0x2d4fdb='';return _0x4848ff&&(_0x4fa698=_0x4848ff['label'],_0x2d4fdb=_0x193694(_0x4fa698)['toLowerCase']()),{'type':'format','content':o(_0x2b3d59,'*Set\x20font\x20background\x20color:*\x20%0',_0x2d4fdb)['trim'](),'color':{'value':_0x428270,'title':_0x2d4fdb||_0x4fa698}};}return{'type':'format','content':o(_0x2b3d59,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x2195d0{['afterInit'](){const _0x1a9419=this['editor'],_0x27d19b=_0x1a9419['plugins']['get']('TrackChangesEditing'),_0x4c4b5f=_0x1a9419['commands']['get']('copyFormat'),_0x3bdaa0=_0x1a9419['commands']['get']('pasteFormat');_0x4c4b5f&&_0x3bdaa0&&(_0x27d19b['enableDefaultAttributesIntegration']('pasteFormat'),_0x27d19b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4c46d7=this['editor'],_0x57c26f=_0x4c46d7['locale'];_0x4c46d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5656ca=>{if('formatBlock'!=_0x5656ca['type']&&'formatInline'!=_0x5656ca['type'])return;const {data:_0x1dee72}=_0x5656ca;if(_0x1dee72&&'pasteFormat'===_0x1dee72['commandName']){const _0x13e796=[],_0x42d555=_0x1dee72['commandParams'][0x0];for(const [_0x54523e,_0x46c625]of Object['entries'](_0x42d555))_0x13e796['push'](so(_0x4c46d7,_0x54523e,_0x46c625));return _0x13e796['length']?{'type':'format','content':o(_0x57c26f,'*Set\x20format\x20to:*\x20%0',_0x13e796['join'](',\x20'))}:{'type':'format','content':o(_0x57c26f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1b4401,_0x5c59bf,_0x1a2e76){const _0x2c01ff=_0x1b4401['locale']['t'],_0x1c2cfe=_0x5c59bf['split'](/(?=[A-Z])/)['join']('\x20'),_0x545936=_0x2c01ff(_0x1c2cfe['charAt'](0x0)['toUpperCase']()+_0x1c2cfe['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1a2e76)return _0x545936;if('fontColor'===_0x5c59bf||'fontBackgroundColor'===_0x5c59bf){const _0x31c06f=_0x2cbe4e(_0x1b4401['config']['get']('fontColor.colors'))['find'](_0x32c55b=>_0x32c55b['model']==_0x1a2e76);return _0x545936+'\x20('+(_0x31c06f?_0x2c01ff(_0x31c06f['label'])['toLowerCase']():_0x1a2e76)+')';}if('fontSize'===_0x5c59bf&&isNaN(parseFloat(_0x1a2e76))){const _0xfc3010=_0x1b4401['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1b4401['config']['get']('fontSize.options'))['find'](_0xc3c2d1=>_0xc3c2d1['model']==_0x1a2e76);return _0x545936+'\x20('+(_0xfc3010?_0x2c01ff(_0xfc3010['title'])['toLowerCase']():_0x1a2e76)+')';}return _0x545936+'\x20('+_0x1a2e76+')';}class Y extends _0x2195d0{['_headingOptions'];['afterInit'](){const _0x5a9572=this['editor'];if(!_0x5a9572['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5a9572['config']['get']('heading.options');const _0x3d0fdf=_0x5a9572['locale'],_0x17f4ef=_0x5a9572['plugins']['get']('TrackChangesEditing');_0x17f4ef['enableDefaultAttributesIntegration']('heading');for(const _0xad1958 of this['_headingOptions'])'paragraph'!=_0xad1958['model']&&_0x17f4ef['descriptionFactory']['registerElementLabel'](_0xad1958['model'],_0x500dd7=>{const _0x37a633=this['_getHeadingLevel'](_0xad1958['model']);return null!==_0x37a633?_0x4f858c(_0x500dd7,_0x37a633):_0x161f02(_0x500dd7,_0xad1958['title']);});function _0x4f858c(_0x46622a,_0x29854e){return o(_0x3d0fdf,'ELEMENT_HEADING',[_0x46622a,_0x29854e]);}function _0x161f02(_0x14127f,_0x2025eb){return o(_0x3d0fdf,'ELEMENT_HEADING_CUSTOM',[_0x14127f,_0x2025eb]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49bfc0=this['editor'],_0x553770=_0x49bfc0['locale'];function _0x5b0343(_0x5b4b0a,_0x567692){return o(_0x553770,'ELEMENT_HEADING_CUSTOM',[_0x5b4b0a,_0x567692]);}_0x49bfc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45e464=>{if('formatBlock'!=_0x45e464['type'])return;const {data:_0x3f2fdb}=_0x45e464;if(_0x3f2fdb&&'heading'==_0x3f2fdb['commandName']){const _0x2633b4=_0x3f2fdb['commandParams'][0x0]['value'],_0x2c8574=this['_getHeadingLevel'](_0x2633b4);if(null!==_0x2c8574)return{'type':'format','content':o(_0x553770,'*Change\x20to:*\x20%0',(_0x24f494=0x1,_0x400ddd=_0x2c8574,o(_0x553770,'ELEMENT_HEADING',[_0x24f494,_0x400ddd])))};const _0x2b4005=this['_headingOptions']['find'](_0x132869=>_0x132869['model']===_0x2633b4)['title'];return{'type':'format','content':o(_0x553770,'*Change\x20to:*\x20%0',_0x5b0343(0x1,_0x2b4005))};}var _0x24f494,_0x400ddd;});}['_getHeadingLevel'](_0x221250){const _0x472503=_0x221250['match'](/^heading(\d+)/);if(_0x472503)return _0x472503[0x1];const _0x4e8d18=this['_headingOptions']?.['find'](_0x20c4c6=>_0x20c4c6['model']==_0x221250);if(_0x4e8d18&&_0x4e8d18['view']){const _0x4d296e=_0x4e8d18['view'],_0x4707ed=(_0x4d296e['name']??_0x4d296e)['match'](/^h(\d+)/);if(_0x4707ed)return _0x4707ed[0x1];}return null;}}class Z extends _0x2195d0{['afterInit'](){const _0x119b32=this['editor'];if(!_0x119b32['plugins']['has']('HighlightEditing'))return;const _0x5499d7=_0x119b32['plugins']['get']('TrackChangesEditing'),_0x2514ed=_0x119b32['locale'];_0x5499d7['enableDefaultAttributesIntegration']('highlight'),_0x5499d7['registerInlineAttribute']('highlight'),_0x5499d7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2514ed,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x238473=this['editor'],_0x1f0e50=_0x238473['locale'];_0x238473['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a7f61=>{if('formatInline'!=_0x3a7f61['type'])return;const {data:_0xc0bb78}=_0x3a7f61;if(_0xc0bb78&&'highlight'==_0xc0bb78['commandName']){const _0x3f120f=_0x1f0e50['t'],_0x39e2ff=_0xc0bb78['commandParams'][0x0]['value'];if(_0x39e2ff){const _0x578a01=_0x238473['config']['get']('highlight.options')['find'](_0x4b9749=>_0x4b9749['model']==_0x39e2ff),_0x306bcb=_0x3f120f(_0x578a01['title'])['toLowerCase']();return{'type':'format','content':o(_0x1f0e50,'*Set\x20highlight:*\x20%0',_0x306bcb),'color':{'value':_0x578a01['color'],'title':_0x578a01['title']}};}return{'type':'format','content':o(_0x1f0e50,'*Remove\x20highlight*',o(_0x1f0e50,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x2195d0{['afterInit'](){const _0x1f0c9d=this['editor'];if(!_0x1f0c9d['plugins']['has']('HorizontalLineEditing'))return;_0x1f0c9d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3b7e13=_0x1f0c9d['plugins']['get']('TrackChangesEditing'),_0x8759d9=_0x1f0c9d['locale'];_0x3b7e13['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2523cd=>o(_0x8759d9,'ELEMENT_HORIZONTAL_LINE',_0x2523cd)),_0x1f0c9d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2c3b5b,{writer:_0x458e1b,options:_0x546f77})=>{if(!_0x546f77['showSuggestionHighlights'])return null;const _0x205a0a=_0x458e1b['createContainerElement']('div'),_0x5b8761=_0x458e1b['createEmptyElement']('hr');return _0x458e1b['addClass']('ck-horizontal-line',_0x205a0a),_0x458e1b['insert'](_0x458e1b['createPositionAt'](_0x205a0a,0x0),_0x5b8761),_0x205a0a;},'converterPriority':'high'});}}class et extends _0x2195d0{['afterInit'](){const _0x408ddf=this['editor'];if(!_0x408ddf['plugins']['has']('HtmlEmbed'))return;const _0x296ee2=_0x408ddf['plugins']['get']('TrackChangesEditing'),_0x269986=_0x408ddf['locale'];_0x296ee2['descriptionFactory']['registerElementLabel']('rawHtml',_0x586ab2=>o(_0x269986,'ELEMENT_HTML_EMBED',_0x586ab2)),_0x296ee2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x296ee2['registerBlockAttribute']('value'),_0x296ee2['descriptionFactory']['registerDescriptionCallback'](_0x20db66=>{if('attribute'!=_0x20db66['type'])return;const {data:_0x2af712}=_0x20db66;if(_0x2af712&&'value'==_0x2af712['key']&&_0x20db66['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x155fa3=o(_0x269986,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x269986,'*Change\x20%0\x20content*',_0x155fa3)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x557a56=this['editor'],_0x37baa9=_0x557a56['locale'];_0x557a56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9b9e13=>{if('formatBlock'!=_0x9b9e13['type'])return;const {data:_0x3fada9}=_0x9b9e13;if(_0x3fada9&&'htmlEmbed'==_0x3fada9['commandName']){const _0x3691ca=o(_0x37baa9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x37baa9,'*Change\x20%0\x20content*',_0x3691ca)};}});}}class it extends _0x2195d0{['afterInit'](){const _0x4dcbef=this['editor'];if(!_0x4dcbef['plugins']['has']('ImageEditing'))return;const _0x59b7af=_0x4dcbef['plugins']['get']('TrackChangesEditing'),_0x1a08ce=_0x4dcbef['plugins']['get']('ImageUtils'),_0x125fa7=_0x4dcbef['locale'];_0x59b7af['enableCommand']('insertImage'),_0x59b7af['descriptionFactory']['registerElementLabel']('imageBlock',_0x39a49a=>o(_0x125fa7,'ELEMENT_IMAGE',_0x39a49a)),_0x59b7af['descriptionFactory']['registerElementLabel']('imageInline',_0x3f1c6f=>o(_0x125fa7,'ELEMENT_INLINE_IMAGE',_0x3f1c6f)),_0x59b7af['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x125fa7,'ELEMENT_CAPTION')),_0x4dcbef['plugins']['has']('ImageUploadEditing')&&_0x59b7af['enableCommand']('uploadImage'),_0x4dcbef['plugins']['has']('ImageBlockEditing')&&_0x4dcbef['plugins']['has']('ImageInlineEditing')&&(_0x59b7af['enableCommand']('imageTypeInline',(_0x56b84b,_0x3e90d9)=>{const _0x18d077=_0x1a08ce['getClosestSelectedImageElement'](_0x4dcbef['model']['document']['selection']);_0x4dcbef['model']['change'](()=>{_0x59b7af['markBlockFormat'](_0x18d077,{'commandName':'imageTypeInline','commandParams':[_0x3e90d9]},[],'convertBlockImageToInline');});}),_0x59b7af['enableCommand']('imageTypeBlock',(_0x2cf377,_0x3a88f1)=>{_0x4dcbef['model']['change'](_0x40eddd=>{let _0x133a09=_0x1a08ce['getClosestSelectedImageElement'](_0x4dcbef['model']['document']['selection']),_0x2f62b1=_0x40eddd['createRangeOn'](_0x133a09);const _0x394a31=_0x73c9ae['fromPosition'](_0x2f62b1['start'],'toPrevious'),_0x5dfe4b=_0x73c9ae['fromPosition'](_0x2f62b1['end'],'toNext');_0x59b7af['forceDefaultExecution'](()=>_0x2cf377(_0x3a88f1)),_0x133a09=_0x1a08ce['getClosestSelectedImageElement'](_0x4dcbef['model']['document']['selection']),_0x2f62b1=_0x40eddd['createRangeOn'](_0x133a09);const _0x35baa3=_0x40eddd['createRange'](_0x394a31,_0x5dfe4b);_0x394a31['detach'](),_0x5dfe4b['detach'](),_0x59b7af['markBlockFormat'](_0x133a09,{'commandName':'imageTypeInline','commandParams':[_0x3a88f1]},[],'convertInlineImageToBlock'),_0x35baa3['start']['isBefore'](_0x2f62b1['start'])&&_0x59b7af['markInsertion'](_0x40eddd['createRange'](_0x35baa3['start'],_0x2f62b1['start']),'convertInlineImageToBlock'),_0x2f62b1['end']['isBefore'](_0x35baa3['end'])&&_0x59b7af['markInsertion'](_0x40eddd['createRange'](_0x2f62b1['end'],_0x35baa3['end']),'convertInlineImageToBlock');});}),_0x59b7af['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x59b7af['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x59b7af['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x59b7af['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x59b7af['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x59b7af['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3aa842])=>{const _0xe5848c=_0x59b7af['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2234fa=_0x3aa842['start'],_0x5a84bc=_0x3aa842['end'];const _0x616a85=_0x4dcbef['model']['schema']['getNearestSelectionRange'](_0x2234fa,'backward'),_0x22b870=_0x4dcbef['model']['schema']['getNearestSelectionRange'](_0x5a84bc,'forward');_0x616a85['isCollapsed']&&(_0x2234fa=_0x616a85['start']),_0x22b870['isCollapsed']&&(_0x5a84bc=_0x22b870['end']),_0xe5848c([_0x4dcbef['model']['createRange'](_0x2234fa,_0x5a84bc)]);}),_0x59b7af['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x37ceba),_0x59b7af['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x37ceba)),_0x4dcbef['plugins']['has']('ImageCaptionEditing')&&(_0x59b7af['enableCommand']('toggleImageCaption',(_0x21726a,_0x399146)=>{const _0x2c871e=_0x4dcbef['plugins']['get']('ImageCaptionUtils');let _0x3c2445=_0x1a08ce['getClosestSelectedImageElement'](_0x4dcbef['model']['document']['selection']),_0x1774b3=_0x2c871e['getCaptionFromImageModelElement'](_0x3c2445);_0x4dcbef['model']['change'](()=>{if(_0x1774b3)return void _0x59b7af['markDeletion'](_0x4dcbef['model']['createRangeOn'](_0x1774b3));const _0x12f288=_0x1a08ce['isBlockImage'](_0x3c2445);_0x21726a(_0x399146),_0x3c2445=_0x1a08ce['getClosestSelectedImageElement'](_0x4dcbef['model']['document']['selection']),_0x1774b3=_0x2c871e['getCaptionFromImageModelElement'](_0x3c2445),_0x59b7af['markInsertion'](_0x4dcbef['model']['createRangeOn'](_0x1774b3),_0x12f288?null:'imageCaption');});}),_0x59b7af['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x37ceba));const _0x2f64eb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x593e49(_0x2736d0,_0x569b33){const _0x136950=_0x2f64eb['findIndex'](({type:_0xb5ec9c,subType:_0x22c206})=>_0x2736d0['type']==_0xb5ec9c&&_0x2736d0['subType']==_0x22c206),_0x32fe0a=_0x2f64eb['findIndex'](({type:_0x23303e,subType:_0x4e32bc})=>_0x569b33['type']==_0x23303e&&_0x569b33['subType']==_0x4e32bc);if(_0x136950<0x0||_0x32fe0a<0x0)return!0x1;const _0x54e537=_0x2736d0['getFirstRange'](),_0x15d1b0=_0x569b33['getFirstRange']();if((0x0==_0x136950||0x1==_0x136950)&&0x2==_0x32fe0a&&_0x54e537['isIntersecting'](_0x15d1b0))return!0x0;if(0x2==_0x136950&&0x3==_0x32fe0a){const _0x21a5af=_0x59b7af['_findSuggestions'](_0x54e537,'insertion')['filter'](({suggestion:_0x1bbb6c,meta:_0x5a841e})=>_0x5a841e['isOwn']&&'convertInlineImageToBlock'==_0x1bbb6c['subType']);if(_0x21a5af['length']>0x1&&_0x15d1b0['end']['isEqual'](_0x54e537['start']))return!0x0;if(0x1==_0x21a5af['length']&&(_0x54e537['start']['isEqual'](_0x15d1b0['end'])||_0x54e537['end']['isEqual'](_0x15d1b0['start'])))return!0x0;}if(0x3==_0x136950&&0x3==_0x32fe0a&&_0x54e537['start']['isBefore'](_0x15d1b0['start'])){const _0x597e4a=_0x54e537['end']['nodeAfter'],_0x59582e=_0x15d1b0['start']['nodeBefore'];return _0x1a08ce['isBlockImage'](_0x597e4a)&&_0x597e4a===_0x59582e;}return!0x1;}function _0x37ceba(_0x2874ee,_0x3ee6fa){return _0x593e49(_0x2874ee,_0x3ee6fa)?[_0x2874ee,_0x3ee6fa]:_0x593e49(_0x3ee6fa,_0x2874ee)?[_0x3ee6fa,_0x2874ee]:null;}_0x4dcbef['plugins']['has']('ImageResize')&&(_0x59b7af['enableDefaultAttributesIntegration']('resizeImage'),_0x59b7af['registerBlockAttribute']('resizedWidth'),_0x59b7af['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x125fa7,'FORMAT_IMAGE_SIZE'))),_0x4dcbef['plugins']['has']('ImageTextAlternativeEditing')&&(_0x59b7af['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x59b7af['registerBlockAttribute']('alt')),_0x59b7af['descriptionFactory']['registerDescriptionCallback'](_0x4484e5=>{if(!!_0x2f64eb['find'](({type:_0x3fa5d2,subType:_0x38f184})=>_0x4484e5['type']==_0x3fa5d2&&_0x4484e5['subType']==_0x38f184))return _0x4484e5['previous']?{}:void 0x0;}),_0x59b7af['descriptionFactory']['registerDescriptionCallback'](_0x251974=>{if('insertion'==_0x251974['type']||'deletion'==_0x251974['type']){const _0x3a8792=_0x251974['getContainedElement']();if(_0x3a8792&&_0x3a8792['is']('element','caption'))return{'type':'insertion'==_0x251974['type']?'addObject':'removeObject','element':_0x3a8792,'quantity':0x1};}}),_0x59b7af['descriptionFactory']['registerDescriptionCallback'](_0x2ecacf=>'formatBlock'==_0x2ecacf['type']&&'convertInlineImageToBlock'==_0x2ecacf['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2ecacf['type']&&'convertBlockImageToInline'==_0x2ecacf['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x59b7af['descriptionFactory']['registerDescriptionCallback'](_0x3864b6=>{if('attribute'!=_0x3864b6['type'])return;const {data:_0x55a443}=_0x3864b6;if(!_0x55a443||'alt'!=_0x55a443['key'])return;const _0x5e6378=_0x55a443['newValue'];return _0x5e6378?{'type':'format','content':o(_0x125fa7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5e6378+'\x22')}:{'type':'format','content':o(_0x125fa7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d4e3a=this['editor'],_0x1527b5=_0x5d4e3a['locale'];_0x5d4e3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58f406=>{if('formatBlock'!=_0x58f406['type']&&'formatInline'!=_0x58f406['type'])return;const {data:_0x508cb2}=_0x58f406;if(_0x508cb2){if('imageTextAlternative'==_0x508cb2['commandName']){const _0xa48d04=_0x508cb2['commandParams'][0x0]['newValue'];return _0xa48d04?{'type':'format','content':o(_0x1527b5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xa48d04+'\x22')}:{'type':'format','content':o(_0x1527b5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x508cb2['commandName']){const _0x116f69=_0x508cb2['commandParams'][0x0]['width'];return _0x116f69?{'type':'format','content':o(_0x1527b5,'*Set\x20image\x20width:*\x20%0',_0x116f69)}:{'type':'format','content':o(_0x1527b5,'*Reset\x20image\x20width*')};}}});}}class st extends _0x2195d0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xe8baea=this['editor']['locale'],_0xb4cb05=this['editor']['plugins']['get']('TrackChangesEditing');_0xb4cb05['enableDefaultAttributesIntegration']('replaceImageSource'),_0xb4cb05['registerBlockAttribute']('src'),_0xb4cb05['descriptionFactory']['registerDescriptionCallback'](_0x313af5=>{if('attribute'!=_0x313af5['type'])return;const {data:_0xb17790}=_0x313af5;return _0xb17790&&'src'==_0xb17790['key']?_0xb17790['newValue']&&_0xb17790['oldValue']?{'type':'format','content':o(_0xe8baea,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3c3d9c=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c3d9c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3c3d9c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c3d9c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3c3d9c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b8878=this['editor'],_0x5b9280=_0x1b8878['locale'];_0x1b8878['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x438a0a=>{if('formatBlock'!=_0x438a0a['type']&&'formatInline'!=_0x438a0a['type'])return;const {data:_0x342df0}=_0x438a0a;if(!_0x342df0||'replaceImageSource'!=_0x342df0['commandName'])return;return{'type':'format','content':o(_0x5b9280,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x2195d0{['afterInit'](){const _0x427633=this['editor'];if(!_0x427633['plugins']['has']('ImageStyleEditing'))return;const _0x547d09=_0x427633['plugins']['get']('TrackChangesEditing'),_0x35d287=_0x427633['plugins']['get']('ImageUtils'),_0x2018d9={};_0x547d09['enableCommand']('imageStyle',(_0x52700c,_0x1a73be)=>{const _0x598ae3=_0x427633['plugins']['get']('Users')['me'],_0xd68e8a=_0x427633['commands']['get']('imageStyle');let _0x50ec95=_0x35d287['getClosestSelectedImageElement'](_0x427633['model']['document']['selection']),_0x30d842=_0x427633['model']['createRangeOn'](_0x50ec95),_0x1943f0=_0xd68e8a['value'];if(_0x1943f0==_0x1a73be['value'])return;const _0x1f5360={'commandName':'imageStyle','commandParams':[_0x1a73be],'formatGroupId':_0x178cde()};_0x427633['model']['change'](()=>{if(_0x547d09['getSuggestions']()['filter'](_0x30b64c=>_0x30b64c['isInContent']&&_0x598ae3==_0x30b64c['author']&&('formatBlock'==_0x30b64c['type']||'formatInline'==_0x30b64c['type'])&&('imageStylePreApply'==_0x30b64c['subType']||'imageStylePostApply'==_0x30b64c['subType'])&&_0x30b64c['getFirstRange']()['isEqual'](_0x30d842))['forEach'](_0x3fa46f=>_0x547d09['discardSuggestion'](_0x3fa46f['head'])),_0x50ec95=_0x35d287['getClosestSelectedImageElement'](_0x427633['model']['document']['selection']),_0x30d842=_0x427633['model']['createRangeOn'](_0x50ec95),_0xd68e8a['refresh'](),_0x427633['commands']['get']('imageTypeInline')['refresh'](),_0x427633['commands']['get']('imageTypeBlock')['refresh'](),_0x1943f0=_0xd68e8a['value'],_0x1943f0!=_0x1a73be['value'])return _0x35d287['isInlineImage'](_0x50ec95)&&_0xd68e8a['shouldConvertImageType'](_0x1a73be['value'],_0x50ec95)?(_0x52700c({..._0x1a73be,'setImageSizes':!0x1}),_0x50ec95=_0x35d287['getClosestSelectedImageElement'](_0x427633['model']['document']['selection']),void _0x547d09['markBlockFormat'](_0x50ec95,{..._0x1f5360,'commandReversedParams':[{'value':_0x1943f0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x35d287['isBlockImage'](_0x50ec95)?_0x547d09['markBlockFormat'](_0x50ec95,_0x1f5360,[],'imageStylePostApply'):_0x547d09['markInlineFormat'](_0x30d842,_0x1f5360,'imageStylePostApply'));});});for(const _0x765c82 of _0x427633['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2018d9[_0x765c82['name']]=_0x765c82['title']['toLowerCase']();_0x547d09['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x547d09['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x547d09['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x547d09['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x16009d])=>{_0x35d287['setImageNaturalSizeAttributes'](_0x16009d['getContainedElement']());}),_0x547d09['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2f2930,_0x38a224)=>{_0x547d09['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2f2930,{'commandName':_0x38a224['commandName'],'commandParams':_0x38a224['commandReversedParams']});}),_0x547d09['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x52890e,_0x345d18){if(_0x3e67c2(_0x52890e,_0x345d18))return[_0x52890e,_0x345d18];if(_0x3e67c2(_0x345d18,_0x52890e))return[_0x345d18,_0x52890e];return null;});const _0x1fdd4f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e67c2(_0x1ace81,_0x329bcf){const _0x32bda9=_0x1fdd4f['findIndex'](({type:_0x3aea71,subType:_0x2e22b7})=>_0x1ace81['type']==_0x3aea71&&_0x1ace81['subType']==_0x2e22b7),_0x126704=_0x1fdd4f['findIndex'](({type:_0x5bb125,subType:_0x517ebe})=>_0x329bcf['type']==_0x5bb125&&_0x329bcf['subType']==_0x517ebe);if(_0x32bda9<0x0||_0x126704<0x0)return!0x1;const _0xe077e=_0x1ace81['getFirstRange'](),_0x4da180=_0x329bcf['getFirstRange']();if((0x0==_0x32bda9||0x1==_0x32bda9)&&0x2==_0x126704&&_0xe077e['isIntersecting'](_0x4da180))return!0x0;if(0x2==_0x32bda9&&0x3==_0x126704){const _0x521959=_0x547d09['_findSuggestions'](_0xe077e,'insertion')['filter'](({suggestion:_0x5cb7d0,meta:_0x59bbad})=>_0x59bbad['isOwn']&&'convertInlineImageToBlock'==_0x5cb7d0['subType']);if(_0x521959['length']>0x1&&_0x4da180['end']['isEqual'](_0xe077e['start']))return!0x0;if(0x1==_0x521959['length']&&(_0xe077e['start']['isEqual'](_0x4da180['end'])||_0xe077e['end']['isEqual'](_0x4da180['start'])))return!0x0;}if(0x3==_0x32bda9&&0x3==_0x126704&&_0xe077e['start']['isBefore'](_0x4da180['start'])){const _0x53bf6b=_0xe077e['end']['nodeAfter'],_0x1a9043=_0x4da180['start']['nodeBefore'];return _0x35d287['isBlockImage'](_0x53bf6b)&&_0x53bf6b===_0x1a9043;}return!0x1;}_0x427633['model']['document']['registerPostFixer'](()=>{let _0x11d0c6=!0x1;const _0x429d2f=Array['from'](_0x427633['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x507124,data:_0x5e2878}of _0x429d2f){const {group:_0x35e0b6,type:_0x2cb532,subType:_0x282d38,id:_0x4976a1}=_0x547d09['_splitMarkerName'](_0x507124);if('suggestion'==_0x35e0b6&&_0x547d09['hasSuggestion'](_0x4976a1)){if('formatBlock'==_0x2cb532&&('imageStylePreApply'==_0x282d38||'imageStylePostApply'==_0x282d38)){const _0x539bff=_0x547d09['getSuggestion'](_0x4976a1);if(_0x5e2878['newRange']){const _0x4435af=_0x539bff['getFirstRange']()['getContainedElement']();if(_0x35d287['isBlockImage'](_0x4435af))continue;_0x547d09['discardSuggestion'](_0x539bff),_0x11d0c6=!0x0;}}if('insertion'==_0x2cb532&&'imageCaption'==_0x282d38&&!_0x5e2878['newRange']){const _0x3b9b6d=_0x547d09['getSuggestion'](_0x4976a1);_0x3b9b6d['next']&&_0x3b9b6d['next']['isInContent']&&(_0x547d09['discardSuggestion'](_0x3b9b6d['next']),_0x11d0c6=!0x0);}}}return _0x11d0c6;}),this['_registerLegacyDescription'](_0x2018d9);}['_registerLegacyDescription'](_0x3d0e10){const _0x2b77ff=this['editor'],_0x3e651b=_0x2b77ff['locale'];_0x2b77ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd42586=>{if('formatBlock'!=_0xd42586['type']&&'formatInline'!=_0xd42586['type'])return;const {data:_0x4d7da3}=_0xd42586;if(!_0x4d7da3||'imageStyle'!=_0x4d7da3['commandName'])return;const _0x1cb4f1=_0x4d7da3['commandParams'][0x0]['value'];return _0x40dc11('side'===_0x1cb4f1?o(_0x3e651b,'FORMAT_SIDE_IMAGE'):_0x3d0e10[_0x1cb4f1]||_0x1cb4f1);function _0x40dc11(_0x42dd2f){return{'type':'format','content':o(_0x3e651b,'*Format:*\x20%0',_0x42dd2f)};}});}}class ot extends _0x2195d0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x38c9bc){super(_0x38c9bc),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xb1db60=this['editor'],_0x5c4740=_0xb1db60['commands']['get']('importWord'),_0x5c5bf8=_0xb1db60['commands']['get']('trackChanges');_0x5c4740&&(_0x5c4740['on']('execute',(_0x3e9716,[,_0xa6d83e])=>{this['_trackChangesValueDuringImport']=_0x5c5bf8['value'],_0xa6d83e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5c4740,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5c4740,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5c5bf8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xb1db60['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4cf6ac,_0x4a8a52){const {suggestions:_0x21c0bb}=_0x4a8a52,_0x19891d=this['editor']['commands']['get']('trackChanges'),_0x365ba7=_0x19891d['value'];this['_trackChangesValueDuringImport']!==_0x365ba7&&(_0x19891d['execute'](),this['_trackChangesExecuted']=!0x0),_0x21c0bb&&_0x21c0bb['forEach'](({id:_0x2cf1a5,type:_0x54494b,author:_0x37cd83,created_at:_0x5c4b21})=>{const _0x40c61e={'id':_0x2cf1a5,'type':_0x54494b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x37cd83,'createdAt':_0x5c4b21?new Date(_0x5c4b21):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x40c61e);});}}class rt extends _0x2195d0{['afterInit'](){const _0x11b60d=this['editor'],_0x35176e=_0x11b60d['plugins']['get']('TrackChangesEditing');if(_0x11b60d['plugins']['has']('IndentEditing')&&(_0x35176e['enableCommand']('indent'),_0x35176e['enableCommand']('outdent')),_0x11b60d['plugins']['has']('IndentBlock')){for(const _0x425ddc of['indentBlock','outdentBlock'])_0x35176e['enableDefaultAttributesIntegration'](_0x425ddc);}const _0x45868f=_0x11b60d['locale'];_0x35176e['registerBlockAttribute']('blockIndent'),_0x35176e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x45868f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f7eb9=this['editor'],_0x22c3dd=_0x4f7eb9['locale'],_0x19f71e=_0x4f7eb9['plugins']['get']('TrackChangesEditing');_0x19f71e['descriptionFactory']['registerDescriptionCallback'](_0x2a5551=>{if('formatBlock'!=_0x2a5551['type'])return;const {data:_0x1ab979}=_0x2a5551;if(!_0x1ab979)return;if('indentBlock'!=_0x1ab979['commandName']&&'outdentBlock'!=_0x1ab979['commandName'])return;const _0x319ed5=_0x2a5551['getItems']()[0x0],_0x2c68fc=_0x19f71e['descriptionFactory']['getItemLabel'](_0x319ed5);return'indentBlock'==_0x1ab979['commandName']?{'type':'format','content':o(_0x22c3dd,'*Indent:*\x20%0',_0x2c68fc)}:'outdentBlock'==_0x1ab979['commandName']?{'type':'format','content':o(_0x22c3dd,'*Outdent:*\x20%0',_0x2c68fc)}:void 0x0;});}}class at extends _0x2195d0{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x2195d0{['afterInit'](){const _0x56a6d3=this['editor'];if(!_0x56a6d3['plugins']['has']('LinkEditing'))return;const _0x2edb64=_0x56a6d3['plugins']['get']('TrackChangesEditing'),_0x2da742=_0x56a6d3['commands']['get']('link');_0x2edb64['enableDefaultAttributesIntegration']('link'),_0x2edb64['enableDefaultAttributesIntegration']('unlink'),_0x2edb64['registerInlineAttribute']('linkHref');for(const _0x2c41ea of _0x2da742['manualDecorators'])_0x2edb64['registerInlineAttribute'](_0x2c41ea['id']),_0x2edb64['descriptionFactory']['registerAttributeLabel'](_0x2c41ea['id'],'link\x20('+_0x2c41ea['label']['toLowerCase']()+')');_0x2edb64['descriptionFactory']['registerDescriptionCallback'](_0x5d3ef7=>{if('attribute'!=_0x5d3ef7['type'])return;const {data:_0x13f8a5}=_0x5d3ef7;if(!_0x13f8a5||'linkHref'!=_0x13f8a5['key'])return;const _0x249d62=_0x13f8a5['newValue'],_0xdc9a5=_0x56a6d3['locale'];return{'type':'format','content':null==_0x249d62?o(_0xdc9a5,'*Remove\x20link*'):o(_0xdc9a5,'*Set\x20link:*\x20%0','\x22'+_0x249d62+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51c660=this['editor'],_0x269dbe=_0x51c660['locale'];_0x51c660['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x571f88=>{if('formatInline'!=_0x571f88['type'])return;const {data:_0x53de05}=_0x571f88;if(_0x53de05){if('link'==_0x53de05['commandName']){const _0x29aaac=_0x53de05['commandParams'][0x0];return{'type':'format','content':o(_0x269dbe,'*Set\x20link:*\x20%0','\x22'+_0x29aaac+'\x22')};}return'unlink'==_0x53de05['commandName']?{'type':'format','content':o(_0x269dbe,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x2195d0{['afterInit'](){const _0x526741=this['editor'],_0x53cc02=_0x526741['locale'];if(!_0x526741['plugins']['has']('LegacyListEditing'))return;const _0x414a72=_0x526741['plugins']['get']('TrackChangesEditing'),_0x4a2b5a=_0x526741['plugins']['has']('LegacyTodoListEditing');function _0x1ad586(_0x36445e){return()=>{const _0x233e51=_0x526741['model']['document']['selection'],_0x4834c3=_0x526741['commands']['get'](_0x36445e);if(_0x4834c3['value'])return void _0x526741['execute']('paragraph',{});const _0x1ce42b=_0x36445e['slice'](0x0,-0x4),_0x1b02b6=function(_0xde70cb,_0xf0a9ef,_0x225828){let _0x26e3e0=Array['from'](_0xde70cb)['filter'](_0x12a91e=>function(_0x2236d1,_0x2be853){return _0x2be853['checkChild'](_0x2236d1['parent'],'listItem')&&!_0x2be853['isObject'](_0x2236d1);}(_0x12a91e,_0x225828));_0x26e3e0=_0x26e3e0['filter'](_0x31f1fd=>!_0x31f1fd['is']('element','listItem')||_0x31f1fd['getAttribute']('listType')!=_0xf0a9ef);const _0xa8822b=new Set();for(const _0x1cc1e0 of _0x26e3e0)_0x1cc1e0['is']('element','listItem')?_0xa8822b['add'](me(_0x1cc1e0)):_0xa8822b['add'](_0x1cc1e0);return Array['from'](_0xa8822b);}(_0x233e51['getSelectedBlocks'](),_0x1ce42b,_0x526741['model']['schema']);_0x526741['model']['change'](()=>{for(const _0x20c79f of _0x1b02b6)_0x414a72['markBlockFormat'](_0x20c79f,{'commandName':_0x36445e,'commandParams':[{'forceValue':!_0x4834c3['value']}],'formatGroupId':'blockName'},fe(_0x20c79f));});};}function _0x30c8e0(_0x41fc4f){return()=>{const _0x368c3e=function(_0x423bca){let _0x1aa9d8=Array['from'](_0x423bca);const _0x1bb0af=_0x1aa9d8['findIndex'](_0x22f876=>'listItem'!=_0x22f876['name']);return _0x1bb0af>-0x1&&(_0x1aa9d8=_0x1aa9d8['slice'](0x0,_0x1bb0af)),_0x1aa9d8;}(_0x526741['model']['document']['selection']['getSelectedBlocks']()),_0x133915=_0x526741['model']['createRange'](_0x526741['model']['createPositionAt'](_0x368c3e[0x0],'before'),_0x526741['model']['createPositionAt'](_0x368c3e[_0x368c3e['length']-0x1],'end'));_0x526741['model']['change'](()=>{_0x414a72['markBlockFormat'](_0x133915,{'commandName':_0x41fc4f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x9d7dc1){const _0x25f9ee=new Set();for(const _0x16c5ec of _0x9d7dc1){let _0x1e5269=_0x16c5ec['nextSibling'];for(;_0x1e5269&&_0x1e5269['getAttribute']('listIndent')>_0x16c5ec['getAttribute']('listIndent');)_0x25f9ee['add'](_0x1e5269),_0x1e5269=_0x1e5269['nextSibling'];}return Array['from'](_0x25f9ee);}(_0x368c3e));});};}_0x414a72['enableCommand']('numberedList',_0x1ad586('numberedList')),_0x414a72['enableCommand']('bulletedList',_0x1ad586('bulletedList')),_0x4a2b5a&&_0x414a72['enableCommand']('todoList',_0x1ad586('todoList')),_0x414a72['enableCommand']('indentList',_0x30c8e0('indentList')),_0x414a72['enableCommand']('outdentList',_0x30c8e0('outdentList')),_0x4a2b5a&&_0x414a72['enableCommand']('checkTodoList',()=>{const _0x31c03c=_0x526741['commands']['get']('checkTodoList'),_0x278ae9=Array['from'](_0x31c03c['_selectedElements']);_0x278ae9['filter'](_0x5da672=>_0x5da672['getAttribute']('todoListChecked')!=_0x31c03c['value']),_0x526741['model']['change'](()=>{for(const _0x587240 of _0x278ae9)_0x414a72['markBlockFormat'](_0x587240,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x31c03c['value']}]});});}),_0x414a72['descriptionFactory']['registerElementLabel']('listItem',_0x1c7a30=>o(_0x53cc02,'ELEMENT_LIST_ITEM',_0x1c7a30)),_0x414a72['descriptionFactory']['registerDescriptionCallback'](_0x1d3062=>{if('formatBlock'!=_0x1d3062['type']&&'formatInline'!=_0x1d3062['type'])return;const {data:_0x3048b1}=_0x1d3062;if(_0x3048b1){if('numberedList'==_0x3048b1['commandName']||'bulletedList'==_0x3048b1['commandName']||'todoList'==_0x3048b1['commandName'])switch(_0x3048b1['commandName']['replace']('List','')){case'bulleted':return _0x4cc4b0(o(_0x53cc02,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4cc4b0(o(_0x53cc02,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4cc4b0(o(_0x53cc02,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3048b1['commandName'])return{'type':'format','content':o(_0x53cc02,'*Indent:*\x20%0',o(_0x53cc02,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3048b1['commandName'])return{'type':'format','content':o(_0x53cc02,'*Outdent:*\x20%0',o(_0x53cc02,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3048b1['commandName'])return _0x3048b1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53cc02,'*Check\x20item*')}:{'type':'format','content':o(_0x53cc02,'*Uncheck\x20item*')};}function _0x4cc4b0(_0x1d4746){return{'type':'format','content':o(_0x53cc02,'*Change\x20to:*\x20%0',_0x1d4746)};}});}}function me(_0x294def){const _0x4d644f=_0x294def['getAttribute']('listIndent');if(0x0==_0x4d644f)return _0x294def;let _0x55c4b2=_0x294def;for(;_0x294def['previousSibling']&&_0x294def['previousSibling']['is']('element','listItem');){const _0x7bdca2=_0x294def['previousSibling']['getAttribute']('listIndent');if(_0x7bdca2==_0x4d644f)_0x55c4b2=_0x294def['previousSibling'];else{if(_0x7bdca2<_0x4d644f)break;}_0x294def=_0x294def['previousSibling'];}return _0x55c4b2;}function fe(_0x5b97b2){const _0x38c787=[];if(_0x5b97b2['is']('element','listItem')&&_0x5b97b2['getAttribute']('listIndent')>0x0){let _0x36885d=_0x5b97b2['nextSibling'];for(;_0x36885d&&'listItem'==_0x36885d['name']&&_0x36885d['getAttribute']('listIndent')==_0x5b97b2['getAttribute']('listIndent');)_0x38c787['push'](_0x36885d),_0x36885d=_0x36885d['nextSibling'];}return _0x38c787;}class K extends _0x2195d0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x97fdb3=this['editor']['config']['get']('list.properties'),_0x29eee5=this['editor']['plugins']['get']('TrackChangesEditing');_0x97fdb3['styles']&&_0x29eee5['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x97fdb3['reversed']&&_0x29eee5['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x97fdb3['startIndex']&&_0x29eee5['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x29eee5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2705a8,_0x264d62={}){const _0x1626f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x511926=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1626f4['markMultiRangeBlockFormat'](_0x511926,{'commandName':'listStyle','commandParams':[{'type':_0x264d62['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4a84dd,_0x1e5c79={}){const _0x5200f7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b7aa6=this['_getSuggestionBlocks'](_0x328547=>_0x328547['is']('element','listItem')&&'numbered'===_0x328547['getAttribute']('listType'));if(_0x2b7aa6['length']<0x1)return;const _0x13f914=_0x2b7aa6['map'](_0x1c59f1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c59f1,'before'),this['editor']['model']['createPositionAt'](_0x1c59f1,0x0)));this['editor']['model']['change'](()=>{_0x5200f7['markMultiRangeBlockFormat'](_0x13f914,{'commandName':'listReversed','commandParams':[{'reversed':_0x1e5c79['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x56d2b6,_0x56db38={}){const _0x1e0626=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29dcc6=this['_getSuggestionBlocks'](_0x5f00f1=>_0x5f00f1['is']('element','listItem')&&'numbered'===_0x5f00f1['getAttribute']('listType'));if(_0x29dcc6['length']<0x1)return;const _0x128635=_0x29dcc6['map'](_0x43eeec=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x43eeec,'before'),this['editor']['model']['createPositionAt'](_0x43eeec,0x0)));this['editor']['model']['change'](()=>{_0x1e0626['markMultiRangeBlockFormat'](_0x128635,{'commandName':'listStart','commandParams':[{'startIndex':_0x56db38['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xe9d20f){if('formatBlock'!=_0xe9d20f['type']&&'formatInline'!=_0xe9d20f['type'])return;const _0x36f3ec=this['editor']['locale'],{data:_0x5edecd}=_0xe9d20f;if(!_0x5edecd)return;let _0x5cd993,_0x1ca034;switch(_0x5edecd['commandName']){case'listStyle':_0x5cd993='*Change\x20to:*\x20%0',_0x1ca034={'type':'format','content':o(_0x36f3ec,_0x5cd993,o(_0x36f3ec,this['_getTranslationKeyForListStyle'](_0x5edecd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5cd993=_0x5edecd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ca034={'type':'format','content':o(_0x36f3ec,_0x5cd993)};break;case'listStart':_0x5cd993='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ca034={'type':'format','content':o(_0x36f3ec,_0x5cd993,_0x5edecd['commandParams'][0x0]['startIndex'])};}return _0x1ca034;}['_getSuggestionBlocksForListStyle'](){const _0x2ec4e9=this['editor']['plugins']['get']('LegacyListUtils');let _0x48cf1f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x48cf1f[0x0]?.['is']('element','listItem')&&_0x48cf1f['unshift'](..._0x2ec4e9['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x48cf1f[_0x48cf1f['length']-0x1]?.['is']('element','listItem')&&_0x48cf1f['push'](..._0x2ec4e9['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x48cf1f=[...new Set(_0x48cf1f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x48cf1f=_0x48cf1f['filter'](_0x415f8c=>_0x415f8c['is']('element','listItem'))),_0x48cf1f;}['_getSuggestionBlocks'](_0x2ab06d){const _0x45979d=this['editor']['plugins']['get']('LegacyListUtils');let _0x5d624a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2ab06d)['map'](_0x3bedd8=>{const _0x169486=this['editor']['model']['createPositionAt'](_0x3bedd8,0x0);return[..._0x45979d['getSiblingNodes'](_0x169486,'backward'),..._0x45979d['getSiblingNodes'](_0x169486,'forward')];})['flat']();return _0x5d624a=[...new Set(_0x5d624a)],_0x5d624a;}['_getTranslationKeyForListStyle'](_0x56186a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x56186a)||'default')['toUpperCase']()+'_LIST_'+_0x56186a['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x2195d0{['afterInit'](){const _0x5d1447=this['editor'];if(!_0x5d1447['plugins']['has']('MediaEmbedEditing'))return;const _0x578982=_0x5d1447['plugins']['get']('TrackChangesEditing'),_0x2abd77=_0x5d1447['locale'];_0x578982['enableCommand']('mediaEmbed'),_0x578982['descriptionFactory']['registerElementLabel']('media',_0x7736d5=>o(_0x2abd77,'ELEMENT_MEDIA',_0x7736d5)),_0x5d1447['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x459e5f,{writer:_0x441f51,options:_0x3eac6b})=>{if(_0x3eac6b['showSuggestionHighlights'])return _0x441f51['createEmptyElement']('div');},'converterPriority':'high'}),_0x5d1447['data']['downcastDispatcher']['on']('attribute:url:media',(_0x238ab1,_0x20f8a5,_0x8f605a)=>{_0x8f605a['options']['showSuggestionHighlights']&&_0x238ab1['stop']();},{'priority':'high'});}}class gt extends _0x2195d0{['afterInit'](){const _0x26d315=this['editor'];_0x26d315['plugins']['has']('MentionEditing')&&_0x26d315['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x2195d0{['afterInit'](){const _0x1db1e8=this['editor'],_0x3b47b6=_0x1db1e8['plugins']['get']('TrackChangesEditing');_0x1db1e8['plugins']['has']('MultiLevelList')&&(_0x3b47b6['enableDefaultAttributesIntegration']('multiLevelList'),_0x3b47b6['registerBlockAttribute']('listMarkerStyle'),_0x3b47b6['descriptionFactory']['registerDescriptionCallback'](_0x38de69=>this['handleDescriptions'](_0x38de69)));}['handleDescriptions'](_0x1bb267){const _0x17136b=this['editor']['locale'],{data:_0x50373c}=_0x1bb267,_0x2d7945={'type':'format','content':''};if(_0x50373c&&'listMarkerStyle'==_0x50373c['key']){if(!_0x50373c['oldValue'])return{'type':'format','content':o(_0x17136b,'*Set\x20format:*\x20%0',o(_0x17136b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x50373c['newValue']+')'};if(!_0x50373c['newValue']){let _0xe53589=_0x1bb267['head'];for(;_0xe53589;){if(_0xe53589['data']&&'listType'==_0xe53589['data']['key']&&_0xe53589['data']['newValue'])return _0x2d7945;_0xe53589=_0xe53589['next'];}return{'type':'format','content':o(_0x17136b,'*Remove\x20format:*\x20%0',o(_0x17136b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x50373c['oldValue']+')'};}}}}class mt extends _0x2195d0{['afterInit'](){const _0x5742b0=this['editor'];if(!_0x5742b0['plugins']['has']('PageBreakEditing'))return;_0x5742b0['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5f782f=_0x5742b0['plugins']['get']('TrackChangesEditing'),_0x4cfbee=_0x5742b0['locale'];_0x5f782f['descriptionFactory']['registerElementLabel']('pageBreak',_0x381ddd=>o(_0x4cfbee,'ELEMENT_PAGE_BREAK',_0x381ddd));}}class dt extends _0x2195d0{['afterInit'](){const _0x1a5822=this['editor'];if(!_0x1a5822['plugins']['has']('Paragraph'))return;const _0x2a3798=_0x1a5822['locale'],_0x3a9441=_0x1a5822['plugins']['get']('TrackChangesEditing');_0x3a9441['descriptionFactory']['registerElementLabel']('paragraph',_0x221aa2=>o(_0x2a3798,'ELEMENT_PARAGRAPH',_0x221aa2)),_0x3a9441['enableDefaultAttributesIntegration']('paragraph'),_0x3a9441['enableCommand']('insertParagraph'),_0x1a5822['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1a5822),{'priority':'highest'}),_0x1a5822['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3e4752,_0x557c73,_0x5828a4)=>{_0x5828a4['options']['showSuggestionHighlights']&&nr(_0x1a5822,{'showActiveMarker':!0x1})(_0x3e4752,_0x557c73,_0x5828a4);},{'priority':'highest'});const _0x338eba=_0x3a9441['descriptionFactory'];_0x338eba['registerDescriptionCallback'](_0x519dc5=>{if('insertion'!==_0x519dc5['type'])return;const {start:_0x1b0308,end:_0xe3c0ca}=_0x519dc5['getFirstRange']();if(!_0x1b0308['isTouching'](_0xe3c0ca)||!_0x1b0308['nodeAfter'])return;const _0x513739=_0x1a5822['model']['schema'],_0x59ad73=_0x1b0308['nodeAfter'];return _0x513739['isBlock'](_0x59ad73)&&!_0x513739['isLimit'](_0x59ad73)&&_0x513739['checkChild'](_0x59ad73,'$text')?{'type':'insertion','content':o(_0x2a3798,'*Insert:*\x20%0',_0x338eba['getItemLabel'](_0x59ad73,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53d946=this['editor'],_0x84da1e=_0x53d946['locale'];_0x53d946['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa82296=>{if('formatBlock'!=_0xa82296['type'])return;const {data:_0x353004}=_0xa82296;return _0x353004&&'paragraph'==_0x353004['commandName']?{'type':'format','content':o(_0x84da1e,'*Change\x20to:*\x20%0',o(_0x84da1e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x270897,{showActiveMarker:_0x41e811=!0x0}={}){return(_0x25e881,_0x4a3ab4,_0x5eb0dc)=>{const _0x1f56df=_0x270897['plugins']['get']('TrackChangesEditing'),_0x414bd5=_0x4a3ab4['markerRange']['start'],_0x23ecf4=_0x4a3ab4['markerRange']['end'],_0x4e92f5=_0x270897['model']['schema'];if(!_0x414bd5['isTouching'](_0x23ecf4)||!_0x414bd5['nodeAfter'])return;const _0x3bb946=_0x414bd5['nodeAfter'];if(_0x4e92f5['isBlock'](_0x3bb946)&&!_0x4e92f5['isLimit'](_0x3bb946)&&_0x4e92f5['checkChild'](_0x3bb946,'$text')){if(!_0x5eb0dc['consumable']['consume'](_0x4a3ab4['markerRange'],_0x25e881['name']))return;const _0x12dbfe=_0x5eb0dc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x1d22dd=_0x5eb0dc['mapper']['toViewPosition'](_0x23ecf4);_0x41e811&&_0x1f56df['activeMarkers']['includes'](_0x4a3ab4['markerName'])&&_0x5eb0dc['writer']['addClass']('ck-suggestion-marker--active',_0x12dbfe),_0x5eb0dc['writer']['insert'](_0x1d22dd,_0x12dbfe),_0x5eb0dc['mapper']['bindElementToMarker'](_0x12dbfe,_0x4a3ab4['markerName']);}};}class pt extends _0x2195d0{['afterInit'](){const _0x3cdc69=this['editor'];if(!_0x3cdc69['plugins']['has']('RemoveFormatEditing'))return;_0x3cdc69['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e93bc=this['editor'];_0x4e93bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e5dd9=>{if('formatBlock'!=_0x5e5dd9['type']&&'formatInline'!=_0x5e5dd9['type'])return;const {data:_0x3e4c2c}=_0x5e5dd9;return _0x3e4c2c&&'removeFormat'==_0x3e4c2c['commandName']?{'type':'format','content':o(_0x4e93bc['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x2195d0{['afterInit'](){const _0x394bae=this['editor'];if(!_0x394bae['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xf9cba8=_0x394bae['plugins']['get']('TrackChangesEditing');_0xf9cba8['enableCommand']('goToPreviousRestrictedEditingException'),_0xf9cba8['enableCommand']('goToNextRestrictedEditingException');const _0x343c65=_0x394bae['plugins']['get']('RestrictedEditingModeEditing');_0x343c65['enableCommand']('trackChanges'),_0x343c65['enableCommand']('acceptSuggestion'),_0x343c65['enableCommand']('discardSuggestion'),_0x343c65['enableCommand']('acceptAllSuggestions'),_0x343c65['enableCommand']('discardAllSuggestions'),_0x343c65['enableCommand']('acceptSelectedSuggestions'),_0x343c65['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x2195d0{static get['requires'](){return[_0x404d62];}['init'](){const _0x3ce7ad=this['editor'],_0x45dd21=_0x3ce7ad['plugins']['get']('TrackChangesEditing');_0x45dd21['enableCommand']('shiftEnter'),_0x3ce7ad['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x3ce7ad),{'priority':'high'}),_0x3ce7ad['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x3ce7ad),{'priority':'high'}),_0x3ce7ad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x425b49,_0x30045e,_0xb4ec99)=>{_0xb4ec99['options']['showSuggestionHighlights']&&de(_0x3ce7ad,{'showActiveMarker':!0x1})(_0x425b49,_0x30045e,_0xb4ec99);}),_0x45dd21['descriptionFactory']['registerElementLabel']('softBreak',_0x24da4f=>o(_0x3ce7ad['locale'],'ELEMENT_LINE_BREAK',_0x24da4f));}}function de(_0x5bb5c4,{showActiveMarker:_0x1c5d9f=!0x0}={}){return(_0x331889,_0x1dc15d,_0x1a3e13)=>{const _0x41f87c=_0x5bb5c4['plugins']['get']('TrackChangesEditing');if(!_0x1a3e13['consumable']['test'](_0x1dc15d['markerRange'],_0x331889['name']))return;const _0x416fc1=_0x5bb5c4['model'];for(const _0x183dff of _0x1dc15d['markerRange']['getItems']()){if(!_0x183dff['is']('element','softBreak'))continue;const _0x40c184='deletion'==_0x1dc15d['markerName']['split'](':')[0x1]?'merge':'split',_0x353fb6=_0x1a3e13['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x40c184}),_0x20158f=_0x1a3e13['mapper']['toViewPosition'](_0x416fc1['createPositionBefore'](_0x183dff));_0x1c5d9f&&_0x41f87c['activeMarkers']['includes'](_0x1dc15d['markerName'])&&_0x1a3e13['writer']['addClass']('ck-suggestion-marker--active',_0x353fb6),_0x1a3e13['writer']['insert'](_0x20158f,_0x353fb6),_0x1a3e13['mapper']['bindElementToMarker'](_0x353fb6,_0x1dc15d['markerName']);}};}class wt extends _0x2195d0{['afterInit'](){const _0x1158df=this['editor'],_0x2a089e=_0x1158df['model'],_0x3bdd46=_0x1158df['locale'];if(!_0x1158df['plugins']['has']('StandardEditingModeEditing'))return;const _0x2f7217=_0x1158df['plugins']['get']('TrackChangesEditing'),_0x44ad8='restrictedEditingException',_0x4ad611=_0x1158df['commands']['get'](_0x44ad8);_0x2f7217['enableCommand'](_0x44ad8,(_0x3caf37,_0xaa698d={})=>{const _0x569eed=_0x2a089e['document']['selection'];if(_0x569eed['isCollapsed'])return void _0x3caf37(_0xaa698d);const _0x527d24=void 0x0!==_0xaa698d['forceValue']?_0xaa698d['forceValue']:!_0x4ad611['value'];_0x2a089e['change'](()=>{const _0x4e8971=Array['from'](_0x569eed['getRanges']());for(const _0x1a5205 of _0x4e8971){const _0x35a131=_0x527d24?[_0x1a5205]:io(_0x44ad8,_0x1a5205,_0x2a089e);for(const _0x2a8d0a of _0x35a131)_0x2f7217['markInlineFormat'](_0x2a8d0a,{'commandName':_0x44ad8,'commandParams':[{'forceValue':_0x527d24}]});}});}),_0x2f7217['descriptionFactory']['registerDescriptionCallback'](_0x2b5e0d=>{if('formatBlock'!=_0x2b5e0d['type']&&'formatInline'!=_0x2b5e0d['type'])return;const {data:_0x586b4b}=_0x2b5e0d;return _0x586b4b&&_0x586b4b['commandName']==_0x44ad8?_0x586b4b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bdd46,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3bdd46,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x2195d0{['afterInit'](){const _0x1bcce4=this['editor'];if(!_0x1bcce4['plugins']['has']('Style')||!_0x1bcce4['plugins']['has']('DataSchema'))return;const _0x45a004=_0x1bcce4['plugins']['get']('TrackChangesEditing'),_0x337ca9=_0x1bcce4['locale'],_0x2cec3a=_0x1bcce4['config']['get']('style')||{},_0x29b358=_0x1bcce4['plugins']['get']('GeneralHtmlSupport'),_0x22a33f=_0x1bcce4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1bcce4['plugins']['get']('DataSchema'),_0x2cec3a['definitions']);_0x45a004['enableDefaultAttributesIntegration']('style');const _0x25481a=new Set();for(const _0x555110 of _0x22a33f['block']){const _0x21fc05=_0x29b358['getGhsAttributeNameForElement'](_0x555110['element']);_0x25481a['add'](_0x21fc05);}const _0x34e4eb=new Set();for(const _0x39ebb0 of _0x22a33f['inline']){const _0x70a690=_0x29b358['getGhsAttributeNameForElement'](_0x39ebb0['element']);_0x34e4eb['add'](_0x70a690);for(const _0x3e2ccd of _0x39ebb0['ghsAttributes'])_0x34e4eb['add'](_0x3e2ccd);}for(const _0x43016f of _0x25481a)_0x45a004['registerBlockAttribute'](_0x43016f),_0x45a004['descriptionFactory']['registerAttributeLabel'](_0x43016f,o(_0x337ca9,'FORMAT_STYLE'));for(const _0xf4a99 of _0x34e4eb)_0x45a004['registerInlineAttribute'](_0xf4a99),_0x45a004['descriptionFactory']['registerAttributeLabel'](_0xf4a99,o(_0x337ca9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57bb06=this['editor'],_0x1cef5b=_0x57bb06['locale'];_0x57bb06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14cfd0=>{if('formatBlock'!=_0x14cfd0['type']&&'formatInline'!=_0x14cfd0['type'])return;const {data:_0x392ab5}=_0x14cfd0;return _0x392ab5&&'style'===_0x392ab5['commandName']?_0x392ab5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1cef5b,'*Set\x20format:*\x20%0',_0x392ab5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1cef5b,'*Remove\x20format:*\x20%0',_0x392ab5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x2195d0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x379555){super(_0x379555),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x34aea4=this['editor'],_0x51ff18=_0x34aea4['model']['document']['selection'];if(!_0x34aea4['plugins']['has']('TableEditing'))return;const _0x5cca23=_0x34aea4['locale'],_0x11264e=_0x34aea4['plugins']['get']('TrackChangesEditing'),_0x28467d=_0x34aea4['plugins']['get']('TableUtils');_0x11264e['descriptionFactory']['registerElementLabel']('table',_0x5a59db=>o(_0x5cca23,'ELEMENT_TABLE',_0x5a59db)),this['_setupColumnsRowsFixing'](),_0x11264e['enableCommand']('insertTable'),_0x11264e['enableCommand']('selectTableRow'),_0x11264e['enableCommand']('selectTableColumn');for(const _0x1c81e0 of['insertTableRowAbove','insertTableRowBelow']){const _0x2ef420=_0x34aea4['commands']['get'](_0x1c81e0);_0x11264e['enableCommand'](_0x1c81e0,_0x57e6f9=>{_0x34aea4['model']['change'](_0x4d2fec=>{_0x57e6f9();const _0x49ec6a='above'===_0x2ef420['order'],_0x4ce8e7=_0x28467d['getSelectionAffectedTableCells'](_0x51ff18),_0x3d6a15=_0x28467d['getRowIndexes'](_0x4ce8e7),_0x5e34ad=_0x49ec6a?_0x3d6a15['first']-0x1:_0x3d6a15['last']+0x1,_0x139e77=_0x4ce8e7[0x0]['findAncestor']('table'),_0x44307e=_0x28467d['createTableWalker'](_0x139e77,{'startRow':_0x5e34ad,'endRow':_0x5e34ad}),_0x2adf73=Array['from'](_0x44307e)['map'](_0x5331f2=>_0x4d2fec['createRangeOn'](_0x5331f2['cell']));_0x11264e['markMultiRangeInsertion'](_0x2adf73,'tableRow');});});}for(const _0x5304f4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x20f60b=_0x34aea4['commands']['get'](_0x5304f4);_0x11264e['enableCommand'](_0x5304f4,_0x1af456=>{_0x34aea4['model']['change'](_0x410c0f=>{_0x1af456();const _0x5903dd='left'===_0x20f60b['order'],_0x511276=_0x28467d['getSelectionAffectedTableCells'](_0x51ff18),_0x2bdd77=_0x28467d['getColumnIndexes'](_0x511276),_0x4e788e=_0x5903dd?_0x2bdd77['first']-0x1:_0x2bdd77['last']+0x1,_0x4ebfe0=_0x511276[0x0]['findAncestor']('table'),_0x22be6f=_0x28467d['createTableWalker'](_0x4ebfe0,{'startRow':0x0,'column':_0x4e788e,'includeAllSlots':!0x1}),_0x2c1317=Array['from'](_0x22be6f)['map'](_0x17c759=>_0x410c0f['createRangeOn'](_0x17c759['cell']));_0x11264e['markMultiRangeInsertion'](_0x2c1317,'tableColumn');});});}for(const _0x42469a of['removeTableRow','removeTableColumn']){const _0x57b385=_0x42469a['substr'](0xb),_0x5a096d=_0x57b385['toLowerCase'](),_0x3f2500=_0x5a096d['substr'](0x0,0x3)+'span',_0xde82c8='table'+_0x57b385,_0x501d31='min'+_0x57b385,_0x372ab0='max'+_0x57b385;_0x11264e['enableCommand'](_0x42469a,()=>{_0x34aea4['model']['change'](_0x1ab1a3=>{const _0x2e62a3=_0x28467d['getSelectionAffectedTableCells'](_0x51ff18),_0x34f1a9=_0x2e62a3[0x0]['findAncestor']('table');let _0x3b1d71;if('removeTableRow'==_0x42469a){const _0x1cbf6a=_0x28467d['getRowIndexes'](_0x2e62a3);_0x3b1d71={'startRow':_0x1cbf6a['first'],'endRow':_0x1cbf6a['last'],'includeAllSlots':!0x0};}else{const _0x1dd7cb=_0x28467d['getColumnIndexes'](_0x2e62a3);_0x3b1d71={'startColumn':_0x1dd7cb['first'],'endColumn':_0x1dd7cb['last'],'includeAllSlots':!0x0};}const _0x19ca89=_0x28467d['createTableWalker'](_0x34f1a9,_0x3b1d71),_0x447e0a=Array['from'](_0x19ca89)['map'](({cell:_0x4d2f30})=>_0x4d2f30),_0x7a3c38=Ee(_0x447e0a['filter'](_0x879ee9=>_0x879ee9['hasAttribute'](_0x3f2500))),_0x41cf68=Ee(_0x447e0a['filter'](_0x393162=>!_0x393162['hasAttribute'](_0x3f2500)))['map'](_0x4ed6e6=>_0x1ab1a3['createRangeOn'](_0x4ed6e6)),_0x16b933=_0x11264e['markMultiRangeDeletion'](_0x41cf68,_0xde82c8);if(_0x16b933&&('tableRow'==_0x16b933['subType']||'tableColumn'==_0x16b933['subType'])){const _0x2d7cd5=this['_getSuggestionCoords'](_0x16b933);for(const _0x175c8a of _0x7a3c38){const _0x38ef3a=_0x1ab1a3['createRangeOn'](_0x175c8a),_0x146e79=_0x28467d['getCellLocation'](_0x175c8a),_0x30692a=_0x175c8a['getAttribute'](_0x3f2500)-0x1,_0x45a6a3=_0x2d7cd5[_0x501d31],_0x378fd8=_0x2d7cd5[_0x372ab0];_0x45a6a3<=_0x146e79[_0x5a096d]&&_0x146e79[_0x5a096d]+_0x30692a<=_0x378fd8&&_0x16b933['addRange'](_0x38ef3a);}}});});}function _0x5c3dc5(_0x47c449){const _0x27e071=Array['from'](_0x51ff18['getRanges']())['map'](_0x397d8b=>_0x13a6f6['fromRange'](_0x397d8b));_0x34aea4['model']['change'](_0x3d60a5=>{const _0x378898=_0x3d60a5['batch'];_0x47c449=_0x47c449['filter'](_0x2cc851=>'$graveyard'!=_0x2cc851['root']['rootName']),_0x3d60a5['setSelection'](_0x47c449),_0x34aea4['commands']['get']('removeTableRow')['refresh'](),_0x34aea4['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x34aea4['model']['enqueueChange'](()=>{_0x34aea4['model']['enqueueChange'](_0x378898,_0x21260a=>{const _0x47434e=_0x27e071['filter'](_0x2d01cc=>'$graveyard'!=_0x2d01cc['root']['rootName']);_0x47434e['length']>0x0&&_0x21260a['setSelection'](_0x47434e);for(const _0x38d8c0 of _0x27e071)_0x38d8c0['detach']();});});});}function _0x345c7c(_0x4e364a){_0x34aea4['model']['change'](_0x262bd9=>{const _0x5d65f4=Array['from'](_0x51ff18['getRanges']())['map'](_0x130cd1=>_0x13a6f6['fromRange'](_0x130cd1)),_0x2d4e37=[];for(const _0x44af5b of _0x4e364a)for(const _0x478661 of _0x44af5b['getItems']({'shallow':!0x0}))_0x2d4e37['push'](_0x478661);for(const _0x5e8a09 of _0x2d4e37)'$graveyard'!=_0x5e8a09['root']['rootName']&&(_0x262bd9['setSelection'](_0x262bd9['createPositionAt'](_0x5e8a09,0x0)),_0x34aea4['commands']['get']('removeTableColumn')['refresh'](),_0x34aea4['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2c5234=_0x5d65f4['filter'](_0x4d7b1b=>'$graveyard'!=_0x4d7b1b['root']['rootName']);_0x2c5234['length']>0x0&&_0x262bd9['setSelection'](_0x2c5234);for(const _0x547f92 of _0x5d65f4)_0x547f92['detach']();});}function _0x3cc9c0(_0x464aa4,_0xbb66a1){return _0xbb66a1['every'](_0x468017=>_0x464aa4['some'](_0x1ccd16=>_0x1ccd16['end']['isEqual'](_0x468017['start'])||_0x468017['end']['isEqual'](_0x1ccd16['start'])));}function _0xea2f55(_0x5d5288,_0x53fc24){return!_0x5d5288['some'](_0x25b45a=>_0x53fc24['some'](_0x12b70d=>_0x25b45a['isIntersecting'](_0x12b70d)))&&_0x5d5288['some'](_0x1038b8=>_0x53fc24['some'](_0x27a1e4=>_0x1038b8['end']['isTouching'](_0x27a1e4['start'])));}_0x34aea4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe0ce4d,_0x69e33,_0x88905)=>{if(!_0x88905['options']['showSuggestionHighlights'])return;const _0x4437cd=_0x69e33['item'];if(!_0x4437cd)return;const _0x501a0c=_0x88905['mapper']['toViewElement'](_0x4437cd);function _0x189e15(_0x41e0da){return Array['isArray'](_0x41e0da)?_0x41e0da:[_0x41e0da];}_0x501a0c&&'tableCell'===_0x4437cd['name']&&_0x58030c(_0x501a0c,_0x88905['writer'],(_0x4a72f4,_0x1159cb,_0xf758cc)=>_0xf758cc['addClass'](_0x189e15(_0x1159cb['classes']),_0x4a72f4),(_0x5347a9,_0x41fd23,_0x116116)=>_0x116116['removeClass'](_0x189e15(_0x41fd23['classes']),_0x5347a9));},{'priority':'highest'}),_0x11264e['descriptionFactory']['registerDescriptionCallback'](_0x1adc29=>{if('insertion'!=_0x1adc29['type']&&'deletion'!=_0x1adc29['type'])return;const _0x4353dc=_0x1adc29['getContainedElement']();if(null!=_0x4353dc&&_0x4353dc['is']('element','table')){if('insertion'==_0x1adc29['type']){const _0x313454=_0x1adc29['getItems']()['filter'](_0x316749=>_0x316749['is']('$textProxy'))['map'](_0x3d2ee2=>_0x3d2ee2['data']);if(_0x313454['length'])return{'type':'insertion','content':o(_0x5cca23,'*Insert:*\x20%0',o(_0x5cca23,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x313454['join']('\x20')+'\x22'))};}if('deletion'==_0x1adc29['type']){const _0xb55c02=_0x1adc29['getItems']()['filter'](_0x54a169=>_0x54a169['is']('$textProxy'))['map'](_0x5425e7=>_0x5425e7['data']);if(_0xb55c02['length'])return{'type':'deletion','content':o(_0x5cca23,'*Remove:*\x20%0',o(_0x5cca23,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xb55c02['join']('\x20')+'\x22'))};}}}),_0x11264e['descriptionFactory']['registerDescriptionCallback'](_0x2e904d=>{if('tableRow'==_0x2e904d['subType']){const _0xfd229=_0x2e904d['getItems']()['filter'](_0x16fdf3=>_0x16fdf3['is']('$textProxy'))['map'](_0x46692c=>_0x46692c['data']),_0x5f2887=this['_getSuggestionCoords'](_0x2e904d),_0x2899b8=_0x5f2887['maxRow']-_0x5f2887['minRow']+0x1;if('insertion'==_0x2e904d['type'])return _0xfd229['length']?{'type':'insertion','content':o(_0x5cca23,'*Insert:*\x20%0',o(_0x5cca23,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2899b8,'\x22'+_0xfd229['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5cca23,'*Insert:*\x20%0',o(_0x5cca23,'ELEMENT_TABLE_ROW',_0x2899b8))};if('deletion'==_0x2e904d['type'])return _0xfd229['length']?{'type':'deletion','content':o(_0x5cca23,'*Remove:*\x20%0',o(_0x5cca23,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2899b8,'\x22'+_0xfd229['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5cca23,'*Remove:*\x20%0',o(_0x5cca23,'ELEMENT_TABLE_ROW',_0x2899b8))};}if('tableColumn'==_0x2e904d['subType']){const _0x118e6e=_0x2e904d['getItems']()['filter'](_0x259391=>_0x259391['is']('$textProxy'))['map'](_0x2c1f92=>_0x2c1f92['data']),_0x3e0e8d=this['_getSuggestionCoords'](_0x2e904d),_0x5958dc=_0x3e0e8d['maxColumn']-_0x3e0e8d['minColumn']+0x1;if('insertion'==_0x2e904d['type'])return _0x118e6e['length']?{'type':'insertion','content':o(_0x5cca23,'*Insert:*\x20%0',o(_0x5cca23,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5958dc,'\x22'+_0x118e6e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5cca23,'*Insert:*\x20%0',o(_0x5cca23,'ELEMENT_TABLE_COLUMN',_0x5958dc))};if('deletion'==_0x2e904d['type'])return _0x118e6e['length']?{'type':'deletion','content':o(_0x5cca23,'*Remove:*\x20%0',o(_0x5cca23,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5958dc,'\x22'+_0x118e6e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5cca23,'*Remove:*\x20%0',o(_0x5cca23,'ELEMENT_TABLE_COLUMN',_0x5958dc))};}}),_0x11264e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5c3dc5),_0x11264e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5c3dc5),_0x11264e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x345c7c),_0x11264e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x345c7c),_0x11264e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3cc9c0),_0x11264e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3cc9c0),_0x11264e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xea2f55),_0x11264e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xea2f55);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5dc804=this['editor'],_0x1f21f4=_0x5dc804['model']['document']['selection'];return(_0x3063c1,_0x47404a)=>{_0x5dc804['model']['change'](_0x46a1bd=>{const {commandName:_0x12f7b9,commandParams:_0x2d9b4a}=_0x47404a;let _0x1797e0=_0x3063c1[0x0]['end']['nodeBefore'];_0x2d9b4a&&_0x2d9b4a[0x0]&&!0x1===_0x2d9b4a[0x0]['forceValue']&&(_0x1797e0=_0x3063c1[0x0]['start']['nodeAfter']);const _0x312b7f=_0x46a1bd['createRangeIn'](_0x1797e0);if('$graveyard'==_0x312b7f['root']['rootName'])return;const _0x1d3005=Array['from'](_0x1f21f4['getRanges']())['map'](_0x525b44=>_0x13a6f6['fromRange'](_0x525b44));_0x46a1bd['setSelection'](_0x312b7f),_0x5dc804['commands']['get'](_0x12f7b9)['refresh'](),_0x2d9b4a['push']({'forceDefaultExecution':!0x0}),_0x5dc804['execute'](_0x12f7b9,..._0x2d9b4a);const _0x4f199e=_0x1d3005['filter'](_0x370a33=>'$graveyard'!=_0x370a33['root']['rootName']);_0x4f199e['length']>0x0&&_0x46a1bd['setSelection'](_0x4f199e);for(const _0x1ea110 of _0x1d3005)_0x1ea110['detach']();});};}['_getCoordsForCells'](_0x40148c){const _0x2d1930=this['editor']['plugins']['get']('TableUtils');let _0x1c8576=Number['MAX_SAFE_INTEGER'],_0x5ce5ef=Number['MIN_SAFE_INTEGER'],_0x2b2ca1=Number['MAX_SAFE_INTEGER'],_0x5995af=Number['MIN_SAFE_INTEGER'];for(const _0x38257f of _0x40148c){if('$graveyard'==_0x38257f['root']['rootName'])continue;const {row:_0x3195c2,column:_0x385d0c}=_0x2d1930['getCellLocation'](_0x38257f),_0x5bc702=_0x38257f['hasAttribute']('rowspan')?_0x38257f['getAttribute']('rowspan')-0x1:0x0,_0x41d185=_0x38257f['hasAttribute']('colspan')?_0x38257f['getAttribute']('colspan')-0x1:0x0;_0x1c8576=_0x3195c2<_0x1c8576?_0x3195c2:_0x1c8576,_0x5ce5ef=_0x3195c2+_0x5bc702>_0x5ce5ef?_0x3195c2+_0x5bc702:_0x5ce5ef,_0x2b2ca1=_0x385d0c<_0x2b2ca1?_0x385d0c:_0x2b2ca1,_0x5995af=_0x385d0c+_0x41d185>_0x5995af?_0x385d0c+_0x41d185:_0x5995af;}return{'minRow':_0x1c8576,'maxRow':_0x5ce5ef,'minColumn':_0x2b2ca1,'maxColumn':_0x5995af};}['_setupColumnsRowsFixing'](){const _0x5e2a7b=this['editor'],_0x4201bd=_0x5e2a7b['plugins']['get']('TrackChangesEditing'),_0x428c31=_0x5e2a7b['plugins']['get']('TableUtils');_0x5e2a7b['model']['document']['on']('change:data',()=>{const _0x58a955=Array['from'](_0x5e2a7b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a3f1f,data:_0x439ba7}of _0x58a955){const {group:_0x5449ca,id:_0x5e1f66,subType:_0x2dc7db}=_0x4201bd['_splitMarkerName'](_0x1a3f1f);if('suggestion'!=_0x5449ca)continue;if(null!=_0x439ba7['oldRange'])continue;const _0x3f9cd2=_0x4201bd['getSuggestion'](_0x5e1f66);this['_tablePostFixingSubtypes']['includes'](_0x2dc7db)&&this['_tableSuggestions']['add'](_0x3f9cd2);}},{'priority':'low'});const _0x3d910f=(_0x9385bb,_0x17ee30)=>{let _0x13e634=!0x1;const _0xf145c6=_0x17ee30['createRangeOn'](_0x9385bb),_0x41a3ad=_0x9385bb['findAncestor']('table'),_0x317641=_0x428c31['getCellLocation'](_0x9385bb);for(const _0x45541b of this['_tableSuggestions']){const _0x390c26=_0x45541b['subType'],_0x5d321d=_0x390c26['startsWith']('tablePaste'),_0x27204b=_0x390c26['substr'](_0x5d321d?0xa:0x5),_0x520d14=_0x27204b['toLowerCase'](),_0x55fe85=_0x520d14['substr'](0x0,0x3)+'span',_0x4cf8a9='min'+_0x27204b,_0x2f6c73='max'+_0x27204b;if(!_0x45541b['isInContent'])continue;if(_0x41a3ad!=_0x45541b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x45541b['isIntersectingWithRange'](_0xf145c6))continue;const _0x1de4a8=_0x9385bb['hasAttribute'](_0x55fe85)?_0x9385bb['getAttribute'](_0x55fe85)-0x1:0x0,_0x53b106=this['_getSuggestionCoords'](_0x45541b),_0x16fcc7=_0x53b106[_0x4cf8a9],_0x3b449a=_0x53b106[_0x2f6c73];_0x16fcc7<=_0x317641[_0x520d14]&&_0x317641[_0x520d14]+_0x1de4a8<=_0x3b449a&&(_0x45541b['addRange'](_0xf145c6),_0x13e634=!0x0);}return _0x13e634;};_0x5e2a7b['model']['document']['registerPostFixer'](_0x59b36c=>{let _0x571812=!0x1;for(const _0x291759 of _0x5e2a7b['model']['document']['differ']['getChanges']())if('insert'==_0x291759['type']){if('tableRow'==_0x291759['name']){for(const _0x28c9bd of _0x291759['position']['nodeAfter']['getChildren']())_0x571812=_0x571812||_0x3d910f(_0x28c9bd,_0x59b36c);}else'tableCell'==_0x291759['name']&&(_0x571812=_0x571812||_0x3d910f(_0x291759['position']['nodeAfter'],_0x59b36c));}return _0x571812;});}['_getSuggestionCoords'](_0x50cddf){return this['_getCoordsForCells'](_0x50cddf['getRanges']()['map'](_0x316e87=>_0x316e87['start']['nodeAfter']));}}function Ee(_0x5bd3db){return Array['from'](new Set(_0x5bd3db)['values']());}class St extends _0x2195d0{static get['requires'](){return[jt];}['afterInit'](){const _0x20bec0=this['editor'],_0xa9f5ea=_0x20bec0['model']['document']['selection'],_0x5653d7=_0x20bec0['locale'];if(!_0x20bec0['plugins']['has']('TableEditing'))return;const _0x1afc57=_0x20bec0['plugins']['get']('TrackChangesEditing'),_0x2a39c8=_0x20bec0['plugins']['get']('TableUtils'),_0x45fd2=_0x20bec0['plugins']['get'](jt);_0x45fd2['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1afc57['enableCommand']('mergeTableCells',()=>{const _0x18c033=_0x2a39c8['getSelectionAffectedTableCells'](_0x20bec0['model']['document']['selection']);_0x20bec0['model']['change'](()=>{_0x1afc57['markMultiRangeBlockFormat'](_0x18c033,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x20bec0['commands']['get']('mergeTableCells')['on']('execute',(_0x135d70,_0x5e5ed3)=>{_0x20bec0['commands']['get']('trackChanges')['value']&&(_0x5e5ed3['length']>0x0&&_0x5e5ed3[_0x5e5ed3['length']-0x1]&&_0x5e5ed3[_0x5e5ed3['length']-0x1]['forceDefaultExecution']||_0x1afc57['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x135d70['stop']());},{'priority':'highest'});for(const _0x29318b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4dfc30=_0x20bec0['commands']['get'](_0x29318b);_0x1afc57['enableCommand'](_0x29318b,()=>{const _0x504072=_0x20bec0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x117d0c=>_0x117d0c['is']('element','tableCell')),_0x12efd6=_0x4dfc30['value'];_0x20bec0['model']['change'](()=>{_0x1afc57['markMultiRangeBlockFormat']([_0x504072,_0x12efd6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x36532e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x457e67=_0x20bec0['commands']['get'](_0x36532e);_0x1afc57['enableCommand'](_0x36532e,()=>{const _0x3a0ca4=_0x2a39c8['getSelectionAffectedTableCells'](_0x20bec0['model']['document']['selection'])[0x0],_0x45476c=_0x3a0ca4['findAncestor']('table'),{column:_0x48436c,row:_0x3aa713}=_0x2a39c8['getCellLocation'](_0x3a0ca4);let _0x392e60=[];if('horizontally'==_0x457e67['direction']){const _0x54ffe6=_0x2a39c8['createTableWalker'](_0x45476c,{'startRow':_0x3aa713,'endRow':_0x3aa713,'includeAllSlots':!0x0});_0x392e60=Array['from'](_0x54ffe6)['map'](_0x55c292=>_0x55c292['cell']);}else{const _0x44b6df=_0x2a39c8['createTableWalker'](_0x45476c,{'column':_0x48436c,'includeAllSlots':!0x0});_0x392e60=Array['from'](_0x44b6df)['map'](_0x3f96d8=>_0x3f96d8['cell']);}_0x20bec0['model']['change'](_0x132e76=>{_0x1afc57['markBlockFormat'](_0x132e76['createRangeOn'](_0x3a0ca4),{'commandName':_0x36532e,'commandParams':[]},_0x392e60,_0x36532e);});});}_0x1afc57['descriptionFactory']['registerDescriptionCallback'](_0x5dc9b0=>{if('formatBlock'!=_0x5dc9b0['type']&&'formatInline'!=_0x5dc9b0['type'])return;const {data:_0x3ef23c}=_0x5dc9b0;return _0x3ef23c&&'mergeTableCells'==_0x3ef23c['commandName']?{'type':'format','content':o(_0x5653d7,'*Merge\x20cells*')}:void 0x0;}),_0x1afc57['descriptionFactory']['registerDescriptionCallback'](_0x13faea=>{if('formatBlock'!=_0x13faea['type']&&'formatInline'!=_0x13faea['type'])return;const {data:_0x2fd2d7}=_0x13faea;return _0x2fd2d7?'splitTableCellVertically'==_0x2fd2d7['commandName']?{'type':'format','content':o(_0x5653d7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2fd2d7['commandName']?{'type':'format','content':o(_0x5653d7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x13c738=_0x45fd2['_acceptFormatSuggestionCallbackFactory']();for(const _0x3d4591 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1afc57['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d4591,'accept',_0x13c738);for(const _0x42c9b6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1afc57['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42c9b6,'accept',_0x13c738);_0x1afc57['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x21609f=>{_0x20bec0['model']['change'](_0x4dbe7d=>{const _0x3013f5=Array['from'](_0xa9f5ea['getRanges']())['map'](_0xbd6f3a=>_0x13a6f6['fromRange'](_0xbd6f3a));_0x4dbe7d['setSelection'](_0x21609f),_0x20bec0['commands']['get']('mergeTableCells')['refresh'](),_0x20bec0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x120ab6=_0x3013f5['filter'](_0x38b9aa=>'$graveyard'!=_0x38b9aa['root']['rootName']);_0x120ab6['length']>0x0&&_0x4dbe7d['setSelection'](_0x120ab6);for(const _0x19257d of _0x3013f5)_0x19257d['detach']();});});for(const _0x584e5c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4fd851=_0x20bec0['commands']['get'](_0x584e5c);_0x4fd851['on']('set:isEnabled',(_0x2ab186,_0x22a82d,_0x23b6dc)=>{if(_0x23b6dc){const _0x3143d4=_0x20bec0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x232216=>_0x232216['is']('element','tableCell'));this['_areMergableCells'](_0x4fd851['value'],_0x3143d4)||(_0x2ab186['return']=!0x1,_0x2ab186['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x56d27d=this['editor']['commands']['get']('mergeTableCells'),_0x5f14e4=this['editor']['plugins']['get']('TableUtils');if(!_0x56d27d['isEnabled'])return!0x1;const _0x3be38b=_0x5f14e4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x29e958 of _0x3be38b)for(const _0x21abf2 of _0x3be38b)if(_0x29e958!=_0x21abf2&&!this['_areMergableCells'](_0x29e958,_0x21abf2))return!0x1;return!0x0;}['_areMergableCells'](_0x29024a,_0x441e4b){const _0x1d4165=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a7af3=this['editor']['model']['createRangeOn'](_0x29024a),_0x133a6b=this['editor']['model']['createRangeOn'](_0x441e4b),_0x7dd0f4=new Set(),_0xf1a48b=new Set();for(const _0x52d028 of _0x1d4165['getSuggestions']())if(('insertion'==_0x52d028['type']||'deletion'==_0x52d028['type']||'mergeTableCells'==_0x52d028['subType'])&&_0x52d028['isInContent']){for(const _0x232d69 of _0x52d028['getRanges']())_0x232d69['containsRange'](_0x2a7af3,!0x0)&&_0x7dd0f4['add'](_0x52d028['type']+':'+_0x52d028['author']['id']),_0x232d69['containsRange'](_0x133a6b,!0x0)&&_0xf1a48b['add'](_0x52d028['type']+':'+_0x52d028['author']['id']);}if(_0x7dd0f4['size']!=_0xf1a48b['size'])return!0x1;for(const _0x2fac36 of _0x7dd0f4)if(!_0xf1a48b['has'](_0x2fac36))return!0x1;return!0x0;}}class At extends _0x2195d0{static get['requires'](){return[jt];}['afterInit'](){const _0x37196c=this['editor'];if(!_0x37196c['plugins']['has']('TableEditing'))return;const _0x13a5af=_0x37196c['locale'],_0x1c8acf=_0x37196c['plugins']['get']('TrackChangesEditing');_0x1c8acf['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1c8acf['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1c8acf['registerBlockAttribute']('headingRows'),_0x1c8acf['registerBlockAttribute']('headingColumns'),_0x1c8acf['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x13a5af,'FORMAT_HEADER_ROW')),_0x1c8acf['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x13a5af,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xb721b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dd940=this['editor']['plugins']['get']('TableUtils'),_0x12b9fa=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x12e117({showActiveMarker:_0x722146=!0x0,setDataAttribute:_0xabb694=!0x0}={}){return(_0x21589f,_0x413f91,_0x513830)=>{const {type:_0x53373f,id:_0xc15f58}=_0xb721b9['_splitMarkerName'](_0x413f91['markerName']),_0x9a8205=_0xb721b9['getSuggestion'](_0xc15f58),_0x2548c1=_0x9a8205['data'];if('formatBlock'!=_0x9a8205['type']||!_0x2548c1||'setTableColumnHeader'!=_0x2548c1['commandName'])return;if(_0x413f91['item'])return void _0x21589f['stop']();if(!_0x513830['consumable']['consume'](_0x413f91['markerRange'],_0x21589f['name']))return;const _0x1f6074=_0x413f91['markerRange']['start']['nodeAfter'],_0x278812=_0x413f91['markerRange']['end']['nodeBefore'],_0x5ca865=_0x1f6074['parent']['parent'],{column:_0x4e91b0}=_0x1dd940['getCellLocation'](_0x1f6074),{column:_0x50179f}=_0x1dd940['getCellLocation'](_0x278812);for(let _0x5f12c4=_0x4e91b0;_0x5f12c4<=_0x50179f;_0x5f12c4++){const _0xf1869d=_0x1dd940['createTableWalker'](_0x5ca865,{'column':_0x5f12c4,'includeAllSlots':!0x1});for(const _0x287496 of _0xf1869d){const _0x50ef05=_0x287496['cell'],_0x3138f9=_0x513830['mapper']['toViewElement'](_0x50ef05);_0x513830['writer']['addClass']('ck-suggestion-marker-'+_0x53373f,_0x3138f9),_0xabb694&&_0x513830['writer']['setAttribute']('data-suggestion',_0xc15f58,_0x3138f9),_0x513830['mapper']['bindElementToMarker'](_0x3138f9,_0x413f91['markerName']),_0x722146&&(_0xb721b9['activeMarkers']['includes'](_0x413f91['markerName'])?_0x513830['writer']['addClass']('ck-suggestion-marker--active',_0x3138f9):_0x513830['writer']['removeClass']('ck-suggestion-marker--active',_0x3138f9));}}};}_0xb721b9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x12b9fa),_0xb721b9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x12b9fa),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x12e117(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x510b78,_0x4d5b22,_0x18fb01)=>{_0x18fb01['options']['showSuggestionHighlights']&&_0x12e117({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x510b78,_0x4d5b22,_0x18fb01);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x357137,_0x41ca46,_0x43db6c)=>{const {type:_0x5cca4a,id:_0x12e500}=_0xb721b9['_splitMarkerName'](_0x41ca46['markerName']),_0x54fe10=_0xb721b9['getSuggestion'](_0x12e500),_0x2aafbd=_0x54fe10['data'];if('formatBlock'!=_0x54fe10['type']||!_0x2aafbd||'setTableColumnHeader'!=_0x2aafbd['commandName'])return;const _0x38ad83=_0x43db6c['mapper']['markerNameToElements'](_0x41ca46['markerName']);if(_0x38ad83){for(const _0x3f0ae3 of _0x38ad83)_0x43db6c['writer']['removeClass']('ck-suggestion-marker-'+_0x5cca4a,_0x3f0ae3),_0x43db6c['writer']['removeClass']('ck-suggestion-marker--active',_0x3f0ae3),_0x43db6c['writer']['removeAttribute']('data-suggestion',_0x3f0ae3),_0x43db6c['mapper']['unbindElementFromMarkerName'](_0x3f0ae3,_0x41ca46['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c368d=this['editor'],_0x3d6440=_0x3c368d['locale'];function _0x3def25(_0x752425){return{'type':'format','content':o(_0x3d6440,'*Format:*\x20%0',_0x752425)};}_0x3c368d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dc666=>{if('formatBlock'!=_0x4dc666['type'])return;const {data:_0x25b6f8}=_0x4dc666;if(_0x25b6f8){if('setTableRowHeader'==_0x25b6f8['commandName']){const _0x1b39b9=_0x25b6f8['commandParams'][0x0]['forceValue'];return _0x3def25(o(_0x3d6440,_0x1b39b9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x25b6f8['commandName']){const _0x4c24cc=_0x25b6f8['commandParams'][0x0]['forceValue'];return _0x3def25(o(_0x3d6440,_0x4c24cc?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x2935ad=>[_0x2935ad,null]));class It extends _0x2195d0{static get['requires'](){return[jt];}['afterInit'](){const _0x367499=this['editor'];if(!_0x367499['plugins']['has']('TableClipboard'))return;const _0x20bbf0=_0x367499['plugins']['get']('TrackChangesEditing'),_0x227683=_0x367499['plugins']['get']('TableUtils'),_0x2488bb=_0x367499['plugins']['get'](jt),_0x4c66ef=_0x367499['plugins']['get']('TableClipboard');_0x2488bb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x367499['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x367499['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1b0c8e=null;_0x367499['model']['on']('insertContent',(_0x395696,_0x418c91)=>{const [_0x47225a,_0x30afd9]=_0x418c91,_0x38df12=_0x418c91[_0x418c91['length']-0x1];_0x38df12&&_0x38df12['forceDefaultExecution']||_0x20bbf0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2a5fc1,_0x138d66,_0x5cc0a4,_0x482faf,_0x33d9c9){if(_0x138d66&&!_0x138d66['is']('documentSelection'))return!0x1;const _0x527418=_0x33d9c9['getTableIfOnlyTableInContent'](_0x2a5fc1,_0x5cc0a4);if(!_0x527418||!he(_0x527418,void 0x0,_0x482faf))return!0x1;const _0x494aa9=_0x482faf['getSelectionAffectedTableCells'](_0x5cc0a4['document']['selection']);if(!_0x494aa9['length'])return!0x1;const _0x572983=_0x494aa9[0x0]['findAncestor']('table'),_0xfebdb7=_0x482faf['getRowIndexes'](_0x494aa9),_0x39490d=_0x482faf['getColumnIndexes'](_0x494aa9),_0x2929fb={'startRow':_0xfebdb7['first'],'endRow':_0xfebdb7['last'],'startColumn':_0x39490d['first'],'endColumn':_0x39490d['last']};return 0x1==_0x494aa9['length']&&(_0x2929fb['endRow']+=_0x482faf['getRows'](_0x527418)-0x1,_0x2929fb['endColumn']+=_0x482faf['getColumns'](_0x527418)-0x1),he(_0x572983,_0x2929fb,_0x482faf);}(_0x47225a,_0x30afd9,_0x367499['model'],_0x227683,_0x4c66ef)&&(_0x395696['stop'](),_0x1b0c8e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x367499['model']['change'](()=>{_0x367499['model']['insertContent'](_0x418c91[0x0],_0x418c91[0x1],_0x418c91[0x2],{'forceDefaultExecution':!0x0});const _0x45c0d1=_0x178cde(),{rowInsertionRanges:_0xd4f3a9,columnInsertionRanges:_0xcbfc3e,insertionRanges:_0x3c37ed,deletionRanges:_0x1c115e,cells:_0x16596b}=_0x1b0c8e;_0xd4f3a9['length']&&_0x20bbf0['markMultiRangeInsertion'](_0xd4f3a9,'tablePasteRow',{'tablePasteChainId':_0x45c0d1}),_0xcbfc3e['length']&&_0x20bbf0['markMultiRangeInsertion'](_0xcbfc3e,'tablePasteColumn',{'tablePasteChainId':_0x45c0d1}),_0x3c37ed['length']&&(_0x20bbf0['markMultiRangeInsertion'](_0x3c37ed,'tablePaste',{'tablePasteChainId':_0x45c0d1,'skipNestingCheck':!0x0}),_0x3c37ed['forEach'](_0xdf087d=>_0xdf087d['detach']?.())),_0x1c115e['length']&&(_0x20bbf0['markMultiRangeDeletion'](_0x1c115e,'tablePaste',{'tablePasteChainId':_0x45c0d1,'skipNestingCheck':!0x0}),_0x1c115e['forEach'](_0x4396cf=>_0x4396cf['detach']?.()));const _0x3733f0=_0x20bbf0['markMultiRangeBlockFormat'](_0x16596b['map'](({element:_0xb56350})=>_0xb56350),{'formatGroupId':_0x178cde()},[],'tablePasteCell',{'tablePasteChainId':_0x45c0d1});if(_0x3733f0){const _0xec0d46=_0x3733f0['getMarkers'](),_0x5e71dc=[];for(const {element:_0x258374,attributes:_0x2bd43d}of _0x16596b){if(!_0x2bd43d)continue;const _0x15ecf7=_0x367499['model']['createRangeOn'](_0x258374),_0x529ca5=_0xec0d46['find'](_0x59d3a1=>_0x59d3a1['getRange']()['isEqual'](_0x15ecf7));_0x529ca5&&_0x5e71dc['push']([_0x529ca5['name'],_0x2bd43d]);}_0x5e71dc['length']&&_0x3733f0['setAttribute']('markerAttributes',Object['fromEntries'](_0x5e71dc));}_0x1b0c8e=null;}));},{'priority':_0x46047a['high']+0xa}),_0x367499['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x11f5d7,_0x553f18)=>{const [_0x140667,_0x394301,,_0x782c9c]=_0x553f18;if(!_0x1b0c8e)return;_0x11f5d7['stop']();const _0x406b42=_0x140667['cell'],_0x3176d0=_0x394301,_0x598577=Pe(_0x406b42),_0x3bbf5b=Pe(_0x3176d0);_0x11f5d7['return']=_0x406b42;let _0x591319=null,_0x9cf2c=null;if(_0x3bbf5b||_0x598577){if(_0x598577&&!_0x3bbf5b){_0x782c9c['remove'](_0x406b42['getChild'](0x0));for(const _0x1d1531 of Array['from'](_0x3176d0['getChildren']()))_0x782c9c['insert'](_0x1d1531,_0x406b42,'end');const _0xac5f96=_0x1b0c8e['rowInsertionIndexes']['includes'](_0x140667['row']),_0x55624d=_0x1b0c8e['columnInsertionIndexes']['includes'](_0x140667['column']);_0xac5f96||_0x55624d||(_0x591319=_0x13a6f6['fromRange'](_0x782c9c['createRangeIn'](_0x406b42)));}else _0x3bbf5b&&!_0x598577&&(_0x9cf2c=_0x782c9c['createRangeIn'](_0x406b42));}else{const _0x4f88ae=_0x782c9c['createElement']('tableCellSuggestion'),_0x40c2ef=_0x782c9c['createElement']('tableCellSuggestion');_0x782c9c['wrap'](_0x782c9c['createRangeIn'](_0x406b42),_0x40c2ef),_0x782c9c['insert'](_0x4f88ae,_0x406b42,0x0);for(const _0x30f04e of Array['from'](_0x3176d0['getChildren']()))_0x782c9c['insert'](_0x30f04e,_0x4f88ae,'end');_0x591319=_0x13a6f6['fromRange'](_0x782c9c['createRangeOn'](_0x4f88ae)),_0x9cf2c=_0x13a6f6['fromRange'](_0x782c9c['createRangeOn'](_0x40c2ef));}const _0x8f0e17=Array['from'](_0x3176d0['getAttributes']())['filter'](([_0xf79b4c])=>ge['includes'](_0xf79b4c));_0x1b0c8e['cells']['push']({'element':_0x406b42,'attributes':_0x8f0e17['length']?Object['fromEntries'](_0x8f0e17):null}),_0x591319&&_0x1b0c8e['insertionRanges']['push'](_0x591319),_0x9cf2c&&_0x1b0c8e['deletionRanges']['push'](_0x9cf2c);},{'priority':'high'}),_0x227683['on']('insertColumns',(_0x304c02,_0x273150)=>{const [_0x142e17,_0x3d33c8={}]=_0x273150;if(!_0x1b0c8e)return;const _0x17a3ea=_0x3d33c8['at']||0x0,_0x42ec4a=_0x3d33c8['columns']||0x1;_0x1b0c8e['columnInsertionIndexes']=new Array(_0x42ec4a)['fill'](_0x17a3ea)['map']((_0x2413cd,_0x46602d)=>_0x2413cd+_0x46602d);for(const {cell:_0x17f2a7}of _0x227683['createTableWalker'](_0x142e17,{'startColumn':_0x17a3ea,'endColumn':_0x17a3ea+_0x42ec4a-0x1}))_0x1b0c8e['columnInsertionRanges']['push'](_0x367499['model']['createRangeOn'](_0x17f2a7));},{'priority':'low'}),_0x227683['on']('insertRows',(_0x5ebeed,_0x4c17ec)=>{const [_0x574095,_0x18fd6f={}]=_0x4c17ec;if(!_0x1b0c8e)return;const _0x4d9b07=_0x18fd6f['at']||0x0,_0x2ec54d=_0x18fd6f['rows']||0x1;_0x1b0c8e['rowInsertionIndexes']=new Array(_0x2ec54d)['fill'](_0x4d9b07)['map']((_0x553d21,_0x12b742)=>_0x553d21+_0x12b742);for(const {cell:_0x41d2b7}of _0x227683['createTableWalker'](_0x574095,{'startRow':_0x4d9b07,'endRow':_0x4d9b07+_0x2ec54d-0x1}))_0x1b0c8e['rowInsertionRanges']['push'](_0x367499['model']['createRangeOn'](_0x41d2b7));},{'priority':'low'}),_0x20bbf0['descriptionFactory']['registerDescriptionCallback'](_0x2ca9a7=>{if(_0x2ca9a7['subType']&&_0x2ca9a7['subType']['startsWith']('tablePaste'))return _0x2ca9a7['previous']?{}:{'type':'insertion','content':o(_0x367499['locale'],'*Replace\x20table\x20cells*')};});const _0x5d920c=()=>!0x1;for(const _0x494b3a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x20bbf0['_suggestionFactory']['registerCustomCallback']('insertion',_0x494b3a,'join',_0x5d920c),_0x20bbf0['_suggestionFactory']['registerCustomCallback']('deletion',_0x494b3a,'join',_0x5d920c),_0x20bbf0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x494b3a,'join',_0x5d920c);_0x20bbf0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5d920c),_0x20bbf0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3d4580,_0x434d17,_0x2c1e76)=>{const _0x3376fb=_0x3d4580['map'](_0x155f73=>_0x155f73['getContainedElement']())['filter'](_0x470945=>_0x470945),_0x552b5d=new Map(_0x3376fb['map'](_0x50c258=>[_0x50c258,null]));if(_0x1b0c8e){for(const {element:_0xdbcb88,attributes:_0x4b0aba}of _0x1b0c8e['cells'])_0x4b0aba&&_0x552b5d['set'](_0xdbcb88,_0x4b0aba);}else{if(_0x2c1e76&&_0x2c1e76['markerAttributes'])for(const [_0x30f0da,_0x387a3f]of Object['entries'](_0x2c1e76['markerAttributes'])){const _0x1152a7=_0x367499['model']['markers']['get'](_0x30f0da),_0x40a169=_0x1152a7?_0x1152a7['getRange']()['getContainedElement']():null;_0x40a169&&_0x552b5d['set'](_0x40a169,_0x387a3f);}}_0x367499['model']['change'](_0x16564e=>{for(const [_0x53bcfd,_0xa0e974]of _0x552b5d)_0x16564e['setAttributes']({...Ce,..._0xa0e974},_0x53bcfd);});});const _0x5a8069=(_0x37d52e,_0x3175ec)=>{_0x20bbf0['_suggestionFactory']['registerCustomCallback'](_0x37d52e,'tablePaste',_0x3175ec,(_0x721c45,_0x1af4d6,_0x4de5c0)=>{_0x367499['model']['change'](_0x2a8868=>{const _0x444f3a=[];for(const _0x2049f8 of _0x721c45){const _0x12ebd=_0x2049f8['start']['nodeAfter'];_0x12ebd['is']('element','tableCellSuggestion')&&_0x444f3a['push'](_0x12ebd);}_0x20bbf0['_suggestionFactory']['getSuggestionCallback'](_0x37d52e,null,_0x3175ec)(_0x721c45,_0x1af4d6,_0x4de5c0);for(const _0x15ca36 of _0x444f3a)'$graveyard'!=_0x15ca36['root']['rootName']&&_0x2a8868['unwrap'](_0x15ca36);});});};_0x5a8069('insertion','accept'),_0x5a8069('insertion','discard'),_0x5a8069('deletion','accept'),_0x5a8069('deletion','discard'),_0x20bbf0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3458ec=>{const _0x1924df=_0x3458ec['map'](_0x1a88a2=>_0x1a88a2['getContainedElement']()),_0x31e9f3=_0x1924df[0x0]['findAncestor']('table'),{minRow:_0x4e6301,maxRow:_0x149695}=_0x2488bb['_getCoordsForCells'](_0x1924df);_0x227683['removeRows'](_0x31e9f3,{'at':_0x4e6301,'rows':_0x149695-_0x4e6301+0x1});}),_0x20bbf0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x487828=>{const _0x38d8c4=_0x487828['map'](_0x463f42=>_0x463f42['getContainedElement']()),_0x56171e=_0x38d8c4[0x0]['findAncestor']('table'),{minColumn:_0x2d90d2,maxColumn:_0x49998b}=_0x2488bb['_getCoordsForCells'](_0x38d8c4);_0x227683['removeColumns'](_0x56171e,{'at':_0x2d90d2,'columns':_0x49998b-_0x2d90d2+0x1});});const _0x1420c6=(_0x2e8438,_0x1f3143)=>{if(!_0x1f3143['subType']||!_0x1f3143['subType']['startsWith']('tablePaste'))return;const _0x5a1035=_0x1f3143['attributes']['tablePasteChainId'],_0x55a090=_0x20bbf0['getSuggestions']()['filter'](_0x4c0820=>_0x4c0820['isInContent']&&_0x4c0820['attributes']&&_0x4c0820['attributes']['tablePasteChainId']==_0x5a1035);_0x55a090['length']&&_0x1f3143['getAllAdjacentSuggestions']()['length']!=_0x55a090['length']&&_0x55a090['reduce']((_0x5f2b9f,_0x38f35d)=>(_0x5f2b9f['next']=_0x38f35d,_0x38f35d['previous']=_0x5f2b9f,_0x38f35d));};function _0x3dbf43(_0x1ec60e,_0x5092af=!0x0){const {id:_0x39fccf}=_0x20bbf0['_splitMarkerName'](_0x1ec60e['markerName']),_0x28c2f5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3b067e=_0x20bbf0['activeMarkers']['includes'](_0x1ec60e['markerName']);return _0x3b067e&&_0x28c2f5['push']('ck-suggestion-marker--active'),{'classes':_0x28c2f5,'attributes':{'data-suggestion':_0x39fccf},'priority':_0x3b067e&&_0x5092af?0xbc2:0xbb8};}_0x20bbf0['on']('suggestionLoaded',_0x1420c6,{'priority':'high'}),_0x20bbf0['on']('suggestionUnloaded',_0x1420c6,{'priority':'high'}),_0x367499['model']['document']['registerPostFixer'](()=>{let _0x4b4e91=!0x1;const _0xebe5d9=Array['from'](_0x367499['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xff1c58,data:_0x4a218f}of _0xebe5d9){const {group:_0x4d32e6,type:_0x4bf385,id:_0x57dd98}=_0x20bbf0['_splitMarkerName'](_0xff1c58);if('suggestion'!=_0x4d32e6||'deletion'!=_0x4bf385||_0x4a218f['oldRange'])continue;if(!_0x20bbf0['hasSuggestion'](_0x57dd98))continue;const _0x4e9604=_0x20bbf0['getSuggestion'](_0x57dd98)['getRanges'](),_0x2bbcb6=_0x367499['plugins']['get']('Users')['me'];for(const _0x363109 of _0x20bbf0['getSuggestions']()){if(!_0x363109['isInContent']||_0x363109['author']!=_0x2bbcb6)continue;if('formatBlock'!=_0x363109['type']||'tablePasteCell'!=_0x363109['subType'])continue;if(_0x363109['getRanges']()['every'](_0x172d8b=>_0x4e9604['some'](_0x3e92bb=>_0x3e92bb['containsRange'](_0x172d8b,!0x0)))){for(const _0x5efcce of _0x363109['getAllAdjacentSuggestions']())_0x5efcce['isInContent']&&(_0x5efcce['discard'](),_0x4b4e91=!0x0);}}}return _0x4b4e91;}),_0x367499['model']['document']['registerPostFixer'](_0x291a52=>{const _0x4068d2=_0x367499['commands']['get']('redo');if(!_0x4068d2||!_0x4068d2['_createdBatches']['has'](_0x291a52['batch']))return!0x1;let _0x668e12=!0x1;const _0x4656af=_0x367499['plugins']['get']('Users')['me'],_0x5bead2=_0x367499['model']['document']['differ']['getChanges'](),_0xf55b93=Array['from'](_0x367499['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x27b134,data:_0x5d2c39})=>{const {group:_0x31a201,subType:_0x7a2c3d,authorId:_0x56ee52}=_0x20bbf0['_splitMarkerName'](_0x27b134);return'suggestion'==_0x31a201&&'tablePaste'==_0x7a2c3d&&_0x56ee52==_0x4656af['id']&&!_0x5d2c39['oldRange'];});for(const _0x563963 of _0x5bead2){if('insert'!=_0x563963['type']||'tableCellSuggestion'!=_0x563963['name']||0x1!=_0x563963['length'])continue;const _0x57abc8=_0x291a52['createRange'](_0x563963['position'],_0x563963['position']['getShiftedBy'](0x1));if(!_0xf55b93['find'](({data:_0x12a50f})=>_0x12a50f['newRange']['isEqual'](_0x57abc8))){for(const {name:_0x4af42b,data:_0x2aec07}of _0xf55b93)if(_0x57abc8['containsRange'](_0x2aec07['newRange'])){_0x291a52['updateMarker'](_0x4af42b,{'range':_0x57abc8}),_0x668e12=!0x0;break;}}}return _0x668e12;}),_0x367499['model']['document']['registerPostFixer'](_0x374c40=>{let _0x450f5e=!0x1;const _0xa39aa9=_0x367499['plugins']['get']('Users')['me'],_0x19b13f=_0x20bbf0['getSuggestions']()['filter'](_0x14a168=>_0x14a168['isInContent']&&_0x14a168['author']==_0xa39aa9),_0x66a566=new Set(),_0x3deced=new Set();for(const _0x225679 of _0x19b13f)if('tablePaste'==_0x225679['subType'])for(const _0x36ef06 of _0x225679['getMarkers']()){const _0x38b1e1=_0x36ef06['getRange']()['getContainedElement']();if(_0x38b1e1){if(_0x38b1e1['is']('element','tableCellSuggestion')&&Pe(_0x38b1e1)){_0x225679['removeMarker'](_0x36ef06['name']),_0x66a566['add'](_0x38b1e1),_0x450f5e=!0x0;const _0x27201c=_0x38b1e1['nextSibling'],_0x53d14d=_0x38b1e1['previousSibling'],_0x19ccc3=_0x27201c&&_0x27201c['is']('element','tableCellSuggestion'),_0x1ee738=_0x53d14d&&_0x53d14d['is']('element','tableCellSuggestion');_0x19ccc3&&!_0x66a566['has'](_0x27201c)&&_0x3deced['add'](_0x27201c),_0x1ee738&&!_0x66a566['has'](_0x53d14d)&&_0x3deced['add'](_0x53d14d);}else _0x38b1e1['is']('element','paragraph')&&_0x38b1e1['isEmpty']&&(_0x225679['removeMarker'](_0x36ef06['name']),_0x450f5e=!0x0);}}else{if('tablePasteCell'==_0x225679['subType']){if(!_0x225679['attributes']||!_0x225679['attributes']['tablePasteChainId'])continue;const _0x42f279=_0x225679['attributes']['markerAttributes'];if(_0x42f279&&Object['keys'](_0x42f279)['length'])continue;const _0x4c75c7=_0x225679['attributes']['tablePasteChainId'];let _0x4fcb26=!0x0,_0x4456b9=!0x0;for(const _0x25d7be of _0x19b13f)if(_0x25d7be['subType']&&_0x25d7be['subType']['startsWith']('tablePaste')){if(!_0x25d7be['attributes']['tablePasteChainId']){_0x4456b9=!0x1;break;}if(_0x25d7be['id']!=_0x225679['id']&&_0x25d7be['attributes']['tablePasteChainId']==_0x4c75c7){_0x4fcb26=!0x1;break;}}_0x4456b9&&_0x4fcb26&&(_0x225679['removeMarkers'](),_0x450f5e=!0x0);}}for(const _0x311e85 of _0x66a566)_0x374c40['remove'](_0x311e85);for(const _0x455781 of _0x3deced)_0x374c40['unwrap'](_0x455781);return _0x450f5e;}),_0x367499['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5b943a,_0x44ffcd)=>_0x3dbf43(_0x5b943a),'converterPriority':'high'}),_0x367499['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3c32a2,_0x57ff3a)=>_0x57ff3a['options']['showSuggestionHighlights']?_0x3dbf43(_0x3c32a2,!0x1):null,'converterPriority':'high'});const _0x229682=_0x367499['editing']['view'];this['listenTo'](_0x229682['document'],'clipboardOutput',(_0x142a53,_0x307703)=>{const _0x33e04c=[];for(const _0x20bf7e of _0x229682['createRangeIn'](_0x307703['content'])['getItems']())_0x20bf7e['is']('element','suggestion-td')&&_0x33e04c['push'](_0x20bf7e);_0x229682['change'](_0x3e3bcb=>{for(const _0x5dd5cd of _0x33e04c)_0x3e3bcb['move'](_0x3e3bcb['createRangeIn'](_0x5dd5cd),_0x3e3bcb['createPositionBefore'](_0x5dd5cd)),_0x3e3bcb['remove'](_0x5dd5cd);});});}}function Pe(_0x5911ae){if(_0x5911ae['isEmpty'])return!0x0;const _0x5af7d6=_0x5911ae['getChild'](0x0);return _0x5af7d6['is']('element','paragraph')&&_0x5af7d6['isEmpty'];}function he(_0x2fea09,_0xc8df37={},_0x30c8c4){for(const {isAnchor:_0x1eff5f,cellHeight:_0x3c3497,cellWidth:_0x241b73}of _0x30c8c4['createTableWalker'](_0x2fea09,{'includeAllSlots':!0x0,..._0xc8df37}))if(!_0x1eff5f||0x1!=_0x3c3497||0x1!=_0x241b73)return!0x1;return!0x0;}class vt extends _0x2195d0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3e492a=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e492a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3e492a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3e492a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3e492a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3e492a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3e492a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1ab7b4,_0x10b22c){const _0x107379=this['editor']['plugins']['get']('TrackChangesEditing'),_0x346d94=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4d0287=_0x10b22c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3f4387=_0x346d94['getColumnGroupElement'](_0x4d0287);let _0x3b13a0=_0x3f4387?_0x346d94['getTableColumnsWidths'](_0x3f4387):null,_0x4b167f=_0x4d0287['getAttribute']('tableWidth')||null;const _0x5f45b3=_0x10b22c['tableWidth']||_0x4b167f,_0x16b7f3=_0x10b22c['columnWidths']||_0x3b13a0,_0x55763a=this['editor']['plugins']['get']('Users')['me'];for(const _0x23d414 of _0x107379['getSuggestions']()){const _0x228ce2=_0x23d414['getContainedElement']();if('resizeTable'===_0x23d414['subType']&&_0x228ce2===_0x4d0287){_0x23d414['author']!==_0x55763a&&_0x23d414['discard']();const _0x42cc82=_0x23d414['data']['commandParams'];_0x4b167f=_0x42cc82[0x0]['tableWidth'],_0x3b13a0=_0x42cc82[0x0]['columnWidths'];break;}}_0x1ab7b4({'table':_0x4d0287,'tableWidth':_0x5f45b3,'columnWidths':_0x16b7f3}),_0x107379['markBlockFormat'](_0x4d0287,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4b167f,'columnWidths':_0x3b13a0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2faef2){if('formatBlock'!=_0x2faef2['type']&&'formatInline'!=_0x2faef2['type'])return;const {data:_0x2c71ad}=_0x2faef2;if(_0x2c71ad&&'resizeTable'===_0x2c71ad['formatGroupId']){const _0xd56d3a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xd56d3a)};}}}class Ct extends _0x2195d0{['afterInit'](){const _0x35cf43=this['editor'];_0x35cf43['plugins']['has']('Template')&&_0x35cf43['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x2195d0{['afterInit'](){const _0x35f8fe=this['editor'];if(!_0x35f8fe['commands']['get']('insertTableOfContents'))return;_0x35f8fe['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xe9633b=_0x35f8fe['plugins']['get']('TrackChangesEditing'),_0x117a3c=_0x35f8fe['locale'];_0xe9633b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5c1968=>o(_0x117a3c,'ELEMENT_TABLE_OF_CONTENTS',_0x5c1968));}}class Dt extends _0x2195d0{['afterInit'](){const _0x2f8504=this['editor'];if(!_0x2f8504['plugins']['has']('Title'))return;const _0x836c33=_0x2f8504['plugins']['get']('TrackChangesEditing');_0x836c33['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2f8504['locale'],'ELEMENT_TITLE')),_0x2f8504['model']['document']['registerPostFixer'](_0x503098=>{let _0x33b26a=!0x1;const _0xc7fad0=Array['from'](_0x2f8504['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15a7ff,data:_0x31cf54}of _0xc7fad0){const {group:_0x4bf731}=_0x836c33['_splitMarkerName'](_0x15a7ff);if('suggestion'!==_0x4bf731||!_0x31cf54['newRange'])continue;const _0x29f4d2=_0x31cf54['newRange'],_0x5f461e=_0x29f4d2['end']['nodeBefore'];if(!_0x5f461e||!_0x5f461e['is']('element','title-content'))continue;if(!_0x29f4d2['start']['isTouching'](_0x29f4d2['end']))continue;const _0x4529e9=_0x2f8504['model']['schema']['getNearestSelectionRange'](_0x29f4d2['end'],'forward');if(_0x4529e9&&_0x4529e9['isCollapsed']){const _0x358d66=_0x503098['createRange'](_0x29f4d2['start'],_0x4529e9['start']);_0x358d66['isEqual'](_0x29f4d2)||(_0x503098['updateMarker'](_0x15a7ff,{'range':_0x358d66}),_0x33b26a=!0x0);}_0x33b26a||(_0x503098['removeMarker'](_0x15a7ff),_0x33b26a=!0x0);}return _0x33b26a;});}}class Nt extends _0x2195d0{['afterInit'](){const _0x1b0cee=this['editor'],_0x1a198d=_0x1b0cee['plugins']['get']('TrackChangesEditing');_0x1b0cee['plugins']['has']('UndoEditing')&&(_0x1a198d['enableCommand']('undo'),_0x1a198d['enableCommand']('redo'));}}class Mt extends _0x2195d0{static get['requires'](){return[jt];}['afterInit'](){const _0x42cb97=this['editor'];if(!_0x42cb97['plugins']['has']('TableCaptionEditing'))return;_0x42cb97['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x2195d0{['tableProperties'];['tableCellProperties'];constructor(_0x253153){super(_0x253153),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 _0x5d65d0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x278ee1 of this['tableProperties'])_0x5d65d0['enableCommand'](_0x278ee1,(_0xe4ec7a,_0x1f24d2)=>{const _0x55c098=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x278ee1,[_0x55c098],this['tableProperties'],'tableProperties',_0xe4ec7a,_0x1f24d2);});_0x5d65d0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5d65d0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d65d0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1075be,_0x3cd586)=>this['handleDiscardAction'](this['tableProperties'],_0x1075be,_0x3cd586)),_0x5d65d0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x21cdf6 of this['tableCellProperties'])_0x5d65d0['enableCommand'](_0x21cdf6,(_0x2c3463,_0x113fa7)=>{const _0x1e6968=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x21cdf6,_0x1e6968,this['tableCellProperties'],'tableCellProperties',_0x2c3463,_0x113fa7);});_0x5d65d0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5d65d0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d65d0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x8f5c73,_0x4d785)=>this['handleDiscardAction'](this['tableCellProperties'],_0x8f5c73,_0x4d785)),_0x5d65d0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5d65d0['descriptionFactory']['registerDescriptionCallback'](_0x57108f=>this['handleSuggestionDescription'](_0x57108f));}['_handlePropertyChange'](_0x4c20c9,_0x370240,_0x2f7c5a,_0x33d510,_0x2cd36f,_0x199562){const _0x2a3add=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x199562['batch'],()=>{for(const _0x1bd77e of _0x370240){if(this['_getSuggestion'](_0x1bd77e,_0x33d510))_0x2cd36f(_0x199562);else{const _0x435691={};for(const _0x140a72 of _0x2f7c5a){const _0x317382=_0x1bd77e['getAttribute'](_0x140a72);void 0x0!==_0x317382&&(_0x435691[_0x140a72]=_0x317382);}_0x2cd36f(_0x199562),_0x2a3add['markBlockFormat'](_0x1bd77e,{'commandParams':[_0x435691]},[],_0x33d510);}}});}['handleDiscardAction'](_0x406752,_0x49f818,_0x40c212){const _0x5a0f44=_0x49f818[0x0]['start']['nodeAfter'],_0x3d449f=_0x40c212['commandParams'][0x0];this['editor']['model']['change'](_0x3de5e9=>{for(const _0x68cb2f of _0x406752)void 0x0!==_0x3d449f[_0x68cb2f]?_0x3de5e9['setAttribute'](_0x68cb2f,_0x3d449f[_0x68cb2f],_0x5a0f44):_0x3de5e9['removeAttribute'](_0x68cb2f,_0x5a0f44);});}['handleSuggestionDescription'](_0x4cb47e){if(_0x4cb47e['data'])switch(_0x4cb47e['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'](_0xb6ab8f,_0x541b5c){const _0x3a3fee=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1fcf42 of _0x3a3fee['getSuggestions']({'skipNotAttached':!0x0})){const _0x124a38=_0x1fcf42['getContainedElement']();if(_0x1fcf42['subType']===_0x541b5c&&_0x124a38===_0xb6ab8f)return _0x1fcf42;}return null;}}const m='$elementName';class p extends _0x2195d0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x19909f,_0x72fa89,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x1a226a){function _0x4dd29d(_0x4b2f6d){return _0x4b2f6d['map'](_0x223963=>String['fromCharCode'](_0x223963))['join']('');}super(_0x1a226a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x119899,_0x498871,_0x31d9f7,_0x890a70)=>{this['_model']['change'](()=>{for(const _0x4c2ab3 of[..._0x890a70,..._0x31d9f7])this['_model']['markers']['has'](_0x4c2ab3)&&_0x1a226a['editing']['reconvertMarker'](_0x4c2ab3);});}),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']=_0x1a226a['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(),_0x1a226a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1a226a['config']['get']('trackChanges.trackFormatChanges'),_0x1a226a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1a226a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1a226a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4dd29d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4dd29d([0x34,0x30,0x34,0x38,0x31,0x32,0x31,0x34]);}['init'](){const _0x2f626e=this['editor'],_0x29cfc4=(_0x4b98af,_0x3c69d9)=>{if('attribute'!=_0x4b98af)return'ck-suggestion-marker-'+_0x4b98af;const _0x2ff575=_0x3c69d9['split']('|')[0x0];return this['_isBlockAttribute'](_0x2ff575)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2f626e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x42c3e8=>{const {id:_0x1fee23,type:_0x421fa5,subType:_0x31fd21}=this['_splitMarkerName'](_0x42c3e8['markerName']),_0x5fb610=['ck-suggestion-marker',_0x29cfc4(_0x421fa5,_0x31fd21)];let _0x26607d=0xbb8;return this['activeMarkers']['includes'](_0x42c3e8['markerName'])&&(_0x5fb610['push']('ck-suggestion-marker--active'),_0x26607d=0xbc2),'deletion'==_0x421fa5&&(_0x26607d+=0x5),{'classes':_0x5fb610,'attributes':{'data-suggestion':_0x1fee23},'priority':_0x26607d};}}),_0x2f626e['conversion']['for']('dataDowncast')['add'](_0x4aceb2=>{_0x4aceb2['on']('addMarker:suggestion',(_0x53148a,_0x3df3a4,_0x36212f)=>{if(!_0x36212f['options']['showSuggestionHighlights'])return;const _0x1b45a3=_0x3df3a4['item'];if(!_0x1b45a3)return;const _0x528bb1=_0x36212f['mapper']['toViewElement'](_0x1b45a3);_0x2f626e['model']['schema']['isObject'](_0x1b45a3)&&_0x528bb1&&!_0x528bb1['getCustomProperty']('widget')&&_0x528bb1['is']('containerElement')&&_0x4a80e2(_0x528bb1,_0x36212f['writer']);},{'priority':'high'});}),_0x2f626e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x551222,_0x2f9564)=>{if(!_0x2f9564['options']['showSuggestionHighlights'])return null;const {type:_0x12caf7,subType:_0x13ec22}=this['_splitMarkerName'](_0x551222['markerName']);return{'classes':['ck-suggestion-marker',_0x29cfc4(_0x12caf7,_0x13ec22)],'priority':0xbb8};}});const _0x4664c4=({showActiveMarkers:_0x394030=!0x0,isAttributeSuggestion:_0x27cdcc=!0x1}={})=>(_0x549b78,_0x580fa8,_0x327426)=>{if(!_0x580fa8['item'])return;const {id:_0x44c822}=this['_splitMarkerName'](_0x580fa8['markerName']);if(_0x27cdcc){const _0xd3087a=this['_suggestions']['get'](_0x44c822),_0x2e728e=this['_getAttributeKey'](_0xd3087a);if(!this['_isBlockAttribute'](_0x2e728e))return;}if(_0x580fa8['item']['is']('selection'))return void _0x327426['consumable']['consume'](_0x580fa8['item'],_0x549b78['name']);const _0x24e5fa=_0x327426['mapper']['toViewElement'](_0x580fa8['item']);if(_0x580fa8['item']['is']('element')&&_0x2f626e['model']['schema']['isBlock'](_0x580fa8['item'])&&!_0x24e5fa['getCustomProperty']('addHighlight')){_0x327426['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x24e5fa),_0x327426['writer']['setAttribute']('data-suggestion',_0x44c822,_0x24e5fa),_0x327426['mapper']['bindElementToMarker'](_0x24e5fa,_0x580fa8['markerName']),_0x394030&&(this['activeMarkers']['includes'](_0x580fa8['markerName'])?_0x327426['writer']['addClass']('ck-suggestion-marker--active',_0x24e5fa):_0x327426['writer']['removeClass']('ck-suggestion-marker--active',_0x24e5fa));for(const _0x21f353 of _0x2f626e['model']['createRangeIn'](_0x580fa8['item'])['getItems']())_0x327426['consumable']['consume'](_0x21f353,_0x549b78['name']);_0x327426['consumable']['consume'](_0x580fa8['item'],_0x549b78['name']);}};_0x2f626e['conversion']['for']('dataDowncast')['add'](_0x433565=>{_0x433565['on']('addMarker:suggestion:formatBlock',(_0x2de175,_0x1c4485,_0x4a18a2)=>{_0x4a18a2['options']['showSuggestionHighlights']&&_0x4664c4({'showActiveMarkers':!0x1})(_0x2de175,_0x1c4485,_0x4a18a2);},{'priority':'highest'});}),_0x2f626e['conversion']['for']('dataDowncast')['add'](_0x339c1f=>{_0x339c1f['on']('addMarker:suggestion:attribute',(_0x33d577,_0x402cb6,_0x1bb4d1)=>{_0x1bb4d1['options']['showSuggestionHighlights']&&_0x4664c4({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x33d577,_0x402cb6,_0x1bb4d1);},{'priority':'highest'});}),_0x2f626e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x577671,_0x5451c9)=>_0x5451c9['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x577671['substr'](0xb)}}),_0x2f626e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e8f65,{writer:_0x8e3d13})=>{let _0x3056ed='suggestion:'+_0x4e8f65['getAttribute']('suggestion-type')+':'+_0x4e8f65['getAttribute']('id');return _0x4e8f65['getAttribute']('marker-count')&&(_0x3056ed+=':'+_0x4e8f65['getAttribute']('marker-count')),_0x8e3d13['createElement']('$marker',{'data-name':_0x3056ed});}}),_0x2f626e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2f626e['conversion']['for']('editingDowncast')['add'](_0x4fdc81=>{_0x4fdc81['on']('addMarker:suggestion:formatBlock',_0x4664c4(),{'priority':'high'});}),_0x2f626e['conversion']['for']('editingDowncast')['add'](_0x2a180a=>{_0x2a180a['on']('addMarker:suggestion:attribute',_0x4664c4({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2f626e['conversion']['for']('editingDowncast')['add'](_0x1ce7c1=>{_0x1ce7c1['on']('removeMarker:suggestion:formatBlock',(_0x4650ad,_0xa9a0c6,_0x17fa48)=>{const _0x3ee56f=_0x17fa48['mapper']['markerNameToElements'](_0xa9a0c6['markerName']);if(_0x3ee56f){for(const _0x38fa5c of _0x3ee56f)_0x38fa5c['getCustomProperty']('addHighlight')||(_0x17fa48['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x38fa5c),_0x17fa48['writer']['removeAttribute']('data-suggestion',_0x38fa5c),_0x17fa48['mapper']['unbindElementFromMarkerName'](_0x38fa5c,_0xa9a0c6['markerName']));}},{'priority':'high'});}),_0x2f626e['conversion']['for']('editingDowncast')['add'](_0x451224=>{_0x451224['on']('removeMarker:suggestion:attribute',(_0x1cf6c4,_0x3d9488,_0x29f6cc)=>{const _0x1c3893=_0x29f6cc['mapper']['markerNameToElements'](_0x3d9488['markerName']);if(!_0x1c3893)return;const {id:_0x1d01f3}=this['_splitMarkerName'](_0x3d9488['markerName']),_0x44af9a=this['_suggestions']['get'](_0x1d01f3),_0x4ba05d=this['_getAttributeKey'](_0x44af9a);if(this['_isBlockAttribute'](_0x4ba05d)){for(const _0x363256 of _0x1c3893)_0x363256['getCustomProperty']('addHighlight')||(_0x29f6cc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x363256),_0x29f6cc['writer']['removeAttribute']('data-suggestion',_0x363256),_0x29f6cc['mapper']['unbindElementFromMarkerName'](_0x363256,_0x3d9488['markerName']));}},{'priority':'high'});}),_0x2f626e['model']['document']['registerPostFixer'](_0x2185b1=>{let _0x55d8f7=!0x1;const _0x1746d5=Array['from'](_0x2f626e['model']['document']['differ']['getChangedMarkers']()),_0x504081=new Set();for(const {name:_0x48e710,data:_0x1a85c6}of _0x1746d5){const {group:_0x1c95d3,type:_0x1617e5,subType:_0x4d69c8,id:_0x387cb4}=this['_splitMarkerName'](_0x48e710);if('suggestion'!==_0x1c95d3)continue;const _0x2f0781=this['_suggestions']['get'](_0x387cb4);if(null!=_0x1a85c6['newRange']){'formatInline'==_0x1617e5&&(_0x55d8f7=_0x55d8f7||Et(_0x1a85c6['newRange'],_0x48e710,_0x2185b1,_0x2f626e['model']['schema']));const _0xa1e21f='attribute'==_0x1617e5&&this['_isBlockAttribute'](_0x4d69c8['split']('|')[0x0]);if(_0x1a85c6['newRange']['isCollapsed']||'$graveyard'==_0x1a85c6['newRange']['root']['rootName']||'formatBlock'==_0x1617e5&&!Ut(_0x1a85c6['newRange'])||_0xa1e21f&&!Ut(_0x1a85c6['newRange'])||'deletion'==_0x1617e5&&!(!Tt(_0x1544ea=_0x1a85c6['newRange'])&&!function(_0x56e7d9){return _0x56e7d9['start']['parent']==_0x56e7d9['end']['nodeBefore']&&_0x56e7d9['start']['isAtEnd'];}(_0x1544ea)))_0x2185b1['removeMarker'](_0x48e710),_0x55d8f7=!0x0;else{if(!_0x2f0781||!_0x2f0781['isInContent'])continue;_0x504081['add'](_0x2f0781);}}}var _0x1544ea;return _0x504081['size']>0x0&&(_0x55d8f7=!!this['_joinWithAdjacentSuggestions'](_0x504081)||_0x55d8f7),_0x55d8f7;}),_0x2f626e['model']['document']['registerPostFixer'](_0x50b558=>{let _0x13c3a0=!0x1;for(const _0x42d701 of _0x2f626e['model']['document']['differ']['getChanges']())if('insert'==_0x42d701['type'])for(const _0x147aa3 of this['_suggestions']['values']()){if(_0x147aa3['isMultiRange']||!_0x147aa3['isInContent'])continue;const _0x3b71f3='formatBlock'==_0x147aa3['type'],_0x1dfc3d=this['_getAttributeKey'](_0x147aa3),_0x845a1c=_0x1dfc3d&&this['_isBlockAttribute'](_0x1dfc3d);if(!_0x3b71f3&&!_0x845a1c)continue;const _0x35b0b9=_0x147aa3['getFirstRange']();if(_0x35b0b9['start']['parent']!=_0x35b0b9['end']['parent']&&!_0x35b0b9['end']['isAtEnd']){const _0x1f3236=_0x2f626e['model']['createPositionAt'](_0x35b0b9['start']['nodeAfter'],'end'),_0x1d5ec7=_0x2f626e['model']['createRange'](_0x35b0b9['start'],_0x1f3236);_0x50b558['updateMarker'](_0x147aa3['getFirstMarker'](),{'range':_0x1d5ec7}),_0x13c3a0=!0x0;}}return _0x13c3a0;}),_0x2f626e['model']['document']['registerPostFixer'](_0x54bb38=>this['_processAttributeChanges'](_0x54bb38)),_0x2f626e['model']['document']['registerPostFixer'](_0x20d96b=>!_0x20d96b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x20d96b)),_0x2f626e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2f626e['model']['document']['on']('change:data',(_0x3306f2,_0x37ccce)=>{if(!_0x37ccce['isLocal']||_0x37ccce['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x18b001=_0x2f626e['model']['document']['differ']['getChanges']();if(0x0==_0x18b001['length'])return;const _0x26b60b=[],_0x2beed1=_0x18b001['filter'](_0x481e13=>'attribute'==_0x481e13['type']),_0x1af49c=_0x18b001['filter'](_0x2558c8=>'insert'==_0x2558c8['type']&&'$text'!=_0x2558c8['name']);for(const _0x5314a0 of _0x2beed1)this['_isRegisteredAttribute'](_0x5314a0['attributeKey'])&&_0x26b60b['push']({'key':_0x5314a0['attributeKey'],'newValue':_0x5314a0['attributeNewValue'],'oldValue':_0x5314a0['attributeOldValue'],'range':Ot(_0x5314a0['range'],_0x2f626e['model'])});for(const _0x1d5fcd of _0x1af49c){if('rename'!=_0x1d5fcd['action']&&'refresh'!=_0x1d5fcd['action'])continue;const _0x5d590d=Gt(_0x1d5fcd['position']['nodeAfter'],_0x2f626e['model']),_0x51b676=_0x1d5fcd['before'];'rename'==_0x1d5fcd['action']&&_0x26b60b['push']({'key':m,'newValue':_0x1d5fcd['name'],'oldValue':_0x51b676['name'],'range':_0x5d590d});for(const [_0x711068,_0xfe2818]of _0x51b676['attributes']){if(!this['_isRegisteredAttribute'](_0x711068))continue;const _0x4bc153=_0x1d5fcd['attributes']['get'](_0x711068);_0xfe2818!==_0x4bc153&&_0x26b60b['push']({'key':_0x711068,'newValue':_0x4bc153,'oldValue':_0xfe2818,'range':_0x5d590d});}for(const [_0x1263c9,_0x134a01]of _0x1d5fcd['attributes'])this['_isRegisteredAttribute'](_0x1263c9)&&(_0x51b676['attributes']['has'](_0x1263c9)||_0x26b60b['push']({'key':_0x1263c9,'newValue':_0x134a01,'oldValue':null,'range':_0x5d590d}));}0x0!=_0x26b60b['length']&&_0x2f626e['model']['enqueueChange'](_0x37ccce,_0x5d6317=>{const _0x1a6d80=_0x178cde();for(const {range:_0x3abf45,key:_0x194701,oldValue:_0x38fcde,newValue:_0x5f4f53}of _0x26b60b)this['markAttributeChange'](_0x3abf45,_0x194701,_0x38fcde,_0x5f4f53,{'groupId':_0x1a6d80});this['_reduceExistingSuggestions'](_0x5d6317,_0x26b60b);});},{'priority':'lowest'}),_0x2f626e['model']['markers']['on']('update:suggestion',(_0xa98b49,_0x5a9166,_0x196e1f)=>{if(null==_0x196e1f){const {id:_0x399c04}=this['_splitMarkerName'](_0x5a9166['name']),_0x54751a=this['_suggestions']['get'](_0x399c04);_0x54751a&&_0x54751a['addMarkerName'](_0x5a9166['name']);}}),_0x2f626e['model']['document']['on']('change:data',()=>{const _0x52041a=Array['from'](_0x2f626e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1f5f31=>'suggestion'===this['_splitMarkerName'](_0x1f5f31['name'])['group']);if(0x0===_0x52041a['length'])return;_0x52041a['sort']((_0x4f122a,_0x2f9930)=>{const _0x15fd38=_0x4f122a['data']['oldRange'],_0x4848ef=_0x2f9930['data']['oldRange'];return null===_0x15fd38&&null===_0x4848ef?0x0:null===_0x15fd38&&null!==_0x4848ef?-0x1:null!==_0x15fd38&&null===_0x4848ef?0x1:_0x15fd38['start']['isBefore'](_0x4848ef['start'])?-0x1:0x1;});const _0x35f78f=new Set(),_0x2fe1fe=new Set();for(const {name:_0x1a5547,data:_0x5771b6}of _0x52041a){const {id:_0x52739e}=this['_splitMarkerName'](_0x1a5547);if(null===_0x5771b6['oldRange']){const _0x370e25=this['_handleNewSuggestionMarker'](_0x1a5547);_0x2fe1fe['add'](_0x370e25);}else{const _0x5d8d12=this['_suggestions']['get'](_0x52739e);null!==_0x5771b6['newRange']||_0x5d8d12['isInContent']?(_0x35f78f['add'](_0x5d8d12['head']),_0x2fe1fe['add'](_0x5d8d12)):this['_removeSuggestion'](_0x5d8d12);}}_0x2fe1fe['size']>0x0&&this['_refreshSuggestionsChain'](_0x2fe1fe);for(const _0x5ed9b1 of _0x35f78f)this['fire']('suggestionChanged',_0x5ed9b1);}),_0x2f626e['model']['on']('applyOperation',(_0x3dc0f7,_0x1dfa79)=>{const _0x14ae38=_0x1dfa79[0x0];if(!this['_suggestions']['size'])return;if(!_0x14ae38['isDocumentOperation'])return;if(_0x14ae38['batch']['isUndo']||!_0x14ae38['batch']['isLocal'])return;let _0x46b13d,_0x56aac1;switch(_0x14ae38['type']){case'insert':_0x46b13d=_0x2f626e['model']['createPositionAt'](_0x14ae38['position']),_0x56aac1=_0x46b13d['getShiftedBy'](_0x14ae38['howMany']);break;case'split':_0x46b13d=_0x2f626e['model']['createPositionAt'](_0x14ae38['splitPosition']),_0x56aac1=_0x2f626e['model']['createPositionAt'](_0x14ae38['moveTargetPosition']);break;case'move':_0x46b13d=_0x2f626e['model']['createPositionAt'](_0x14ae38['targetPosition']),_0x56aac1=_0x46b13d['getShiftedBy'](_0x14ae38['howMany']);break;default:return;}const _0x57481c=_0x2f626e['model']['createRange'](_0x46b13d,_0x56aac1);_0x2f626e['model']['change'](()=>{for(const {suggestion:_0x3c469e,meta:_0x38f77a}of this['_findSuggestions'](_0x57481c)){if(_0x3c469e['isMultiRange'])continue;if('formatInline'==_0x3c469e['type'])continue;const _0x4de91d=this['_getAttributeKey'](_0x3c469e);if(_0x4de91d&&this['_isBlockAttribute'](_0x4de91d)&&'split'!=_0x14ae38['type'])continue;const _0xbc19af=_0x3c469e['data']&&_0x3c469e['data']['multipleBlocks'];('formatBlock'!=_0x3c469e['type']||'split'==_0x14ae38['type']&&!_0xbc19af)&&(_0x38f77a['containsRangeInObject']||'insertion'==_0x3c469e['type']&&_0x38f77a['isOwn']||_0x3c469e['getFirstRange']()['containsRange'](_0x57481c)&&this['_breakSuggestionMarker'](_0x3c469e,_0x46b13d,_0x56aac1));}});},{'priority':'lowest'}),_0x2f626e['model']['on']('deleteContent',(_0x40398b,_0x24aa26)=>{const _0x16aad2=_0x24aa26[0x0],_0x937014=_0x24aa26[0x1];if(_0x937014&&_0x937014['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x16aad2['isCollapsed'])return;const _0x497fef=_0x2f626e['model']['schema'],{start:_0x4d1fc1,end:_0x5b50ba}=_0x16aad2['getFirstRange'](),_0x277694=_0x4d1fc1['nodeAfter']&&_0x497fef['isLimit'](_0x4d1fc1['nodeAfter'])?null:_0x497fef['getNearestSelectionRange'](_0x4d1fc1,'forward'),_0x5d9c13=_0x5b50ba['nodeBefore']&&_0x497fef['isLimit'](_0x5b50ba['nodeBefore'])?null:_0x497fef['getNearestSelectionRange'](_0x5b50ba,'backward'),_0x500f32=_0x2f626e['model']['createRange'](_0x277694?_0x277694['start']:_0x4d1fc1,_0x5d9c13?_0x5d9c13['end']:_0x5b50ba);_0x2f626e['model']['change'](_0x3aa1d4=>{this['markDeletion'](_0x500f32);const _0xf5a482=_0x2f626e['model']['schema']['getNearestSelectionRange'](_0x500f32['start']);_0x16aad2['is']('documentSelection')?_0x3aa1d4['setSelection'](_0xf5a482):_0x16aad2['setTo'](_0xf5a482);}),_0x40398b['stop']();},{'priority':_0x46047a['normal']+0xa}),_0x2f626e['model']['on']('insertContent',(_0x358215,_0x4f6aae)=>{const _0x180270=_0x4f6aae[_0x4f6aae['length']-0x1];_0x180270&&_0x180270['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2f626e['model']['change'](()=>{let _0x227ca3=_0x2f626e['model']['insertContent'](_0x4f6aae[0x0],_0x4f6aae[0x1],_0x4f6aae[0x2],{'forceDefaultExecution':!0x0});if(!_0x227ca3)return;_0x358215['return']=_0x227ca3['clone']();const _0x283702=_0x227ca3['end']['nodeBefore'],_0x2963e3=_0x2f626e['model']['schema'];_0x283702&&_0x2963e3['isBlock'](_0x283702)&&!_0x2963e3['isObject'](_0x283702)&&(_0x227ca3=_0x2f626e['model']['createRange'](_0x227ca3['start'],_0x2f626e['model']['createPositionAt'](_0x283702,'end'))),this['markInsertion'](_0x227ca3);}),_0x358215['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3f1143=new $(_0x2f626e,this['_suggestions']);_0x2f626e['commands']['add']('acceptSuggestion',_0x3f1143),this['enableCommand']('acceptSuggestion');const _0x1cca92=new B(_0x2f626e,this['_suggestions']);_0x2f626e['commands']['add']('discardSuggestion',_0x1cca92),this['enableCommand']('discardSuggestion'),_0x2f626e['commands']['add']('acceptAllSuggestions',new x(_0x2f626e,_0x3f1143,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2f626e['commands']['add']('discardAllSuggestions',new x(_0x2f626e,_0x1cca92,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2f626e['commands']['add']('acceptSelectedSuggestions',new R(_0x2f626e,_0x3f1143,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2f626e['commands']['add']('discardSelectedSuggestions',new R(_0x2f626e,_0x1cca92,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xae9d47=_0x2f626e['plugins']['get']('CommentsRepository');this['listenTo'](_0xae9d47,'addComment',(_0x123e38,{threadId:_0x2da3b5})=>{const _0x3f08ee=this['_suggestions']['get'](_0x2da3b5);_0x3f08ee&&_0x3f08ee['commentThread']&&0x1===_0x3f08ee['commentThread']['length']&&this['_updateSuggestionData'](_0x2da3b5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xae9d47,'removeComment',(_0x53e964,{threadId:_0x1ecaf4})=>{const _0x56524b=this['_suggestions']['get'](_0x1ecaf4);_0x56524b&&_0x56524b['commentThread']&&!_0x56524b['commentThread']['length']&&this['_updateSuggestionData'](_0x1ecaf4,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2e6a3d){if(this['_adapter'])throw new _0x417f34('track-changes-adapter-already-set',this);this['_adapter']=_0x2e6a3d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5132e5=!0x1,toJSON:_0x109f82=!0x1}={}){const _0x34b1db=[];for(const _0x343f27 of this['_suggestions']['values']())_0x5132e5&&!_0x343f27['isInContent']||_0x34b1db['push'](_0x343f27);return _0x109f82?_0x34b1db['map'](_0x2ff4b2=>_0x2ff4b2['toJSON']()):_0x34b1db;}['getSuggestion'](_0x2006b8){const _0xa8d280=this['_suggestions']['get'](_0x2006b8);if(!_0xa8d280)throw new _0x417f34('track-changes-suggestion-not-found',this);return _0xa8d280;}['hasSuggestion'](_0x4c034a){return this['_suggestions']['has'](_0x4c034a);}['addSuggestionData'](_0x9bc0a9){const {authorId:_0x2d8b82,id:_0x4c9eb8,attributes:_0x1e82c7}=_0x9bc0a9,[_0x4c4087,_0x18db16]=_0x9bc0a9['type']['split'](':'),_0x3e22b0=this['_suggestions']['get'](_0x4c9eb8)||this['_createSuggestion'](_0x4c4087,_0x18db16,_0x4c9eb8,_0x2d8b82,_0x1e82c7);if(this['_addThreadToSuggestion'](_0x3e22b0),this['_checkSuggestionCorrectness'](_0x3e22b0,_0x4c4087,_0x18db16||null,_0x2d8b82),_0x3e22b0['createdAt']=_0x9bc0a9['createdAt'],_0x3e22b0['_isDataLoaded']=!0x0,_0x1e82c7&&_0x1e82c7['@external']){const _0xc964b7=_0x1e82c7['@external'],_0xe13fe8=this['_getExternalAuthor'](_0xc964b7['authorName']);_0x3e22b0['authoredAt']=_0xc964b7['createdAt'],_0x3e22b0['author']=_0xe13fe8,_0x3e22b0['isExternal']=!0x0;}else _0x3e22b0['authoredAt']=_0x9bc0a9['createdAt'];switch(_0x9bc0a9['data']&&(_0x3e22b0['data']=_0x9bc0a9['data']),_0x9bc0a9['attributes']&&(_0x3e22b0['attributes']=_0x9bc0a9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3e22b0['_saved']=!0x0),this['_suggestionState']['get'](_0x3e22b0)){case'notReady':this['_suggestionState']['set'](_0x3e22b0,'dataReady');break;case'markerReady':_0x3e22b0['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3e22b0])),this['_refreshSuggestionsChain'](new Set([_0x3e22b0])),this['_suggestionState']['set'](_0x3e22b0,'ready'),this['fire']('suggestionLoaded',_0x3e22b0)):this['_suggestionState']['set'](_0x3e22b0,'removed');}return _0x3e22b0;}['acceptSuggestion'](_0x43b560){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x224230 of _0x43b560['getAllAdjacentSuggestions']())_0x224230['accept']();});});}['discardSuggestion'](_0x13ffe2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x413ed4 of _0x13ffe2['getAllAdjacentSuggestions']())_0x413ed4['discard']();});});}['enableCommand'](_0x46c7cd,_0x10765d){const _0x52410c=this['editor']['commands']['get'](_0x46c7cd);if(!_0x52410c)throw new _0x417f34('track-changes-command-not-found',this,{'commandName':_0x46c7cd});if(this['_enabledCommands']['has'](_0x52410c))throw new _0x417f34('track-changes-enable-command-twice',this,{'commandName':_0x46c7cd});this['_enabledCommands']['add'](_0x52410c),_0x10765d&&_0x52410c['on']('execute',(_0x330c0f,_0x2c642f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2c642f['length']>0x0&&_0x2c642f[_0x2c642f['length']-0x1]&&_0x2c642f[_0x2c642f['length']-0x1]['forceDefaultExecution']?_0x2c642f['pop']():(_0x330c0f['return']=_0x10765d((..._0x3ed131)=>_0x52410c['execute'](..._0x3ed131,{'forceDefaultExecution':!0x0}),..._0x2c642f),_0x330c0f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x41c9e3){let _0x14b3d0,_0xaffc80;const _0x1739be=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x14b3d0=_0x41c9e3();}catch(_0x3d2dee){_0xaffc80=_0x3d2dee;}return _0x1739be||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xaffc80&&_0x417f34['rethrowUnexpectedError'](_0xaffc80,this),_0x14b3d0;}['markInsertion'](_0x2597e7,_0x5f4570=null,_0x567c0f={}){if(_0x2597e7['isCollapsed'])return null;const _0x1d8380=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x9cad9c,meta:_0x44feff}of this['_findSuggestions'](_0x2597e7,'insertion'))if(_0x44feff['isOwn']){if(!_0x44feff['isNextTo']){if(_0x44feff['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x9cad9c,_0x567c0f))continue;return _0x9cad9c;}if(Lt(_0x9cad9c,_0x567c0f))return _0x9cad9c;this['_breakSuggestionMarker'](_0x9cad9c,_0x2597e7['start'],_0x2597e7['end']);break;}if(_0x5f4570==_0x9cad9c['subType']&&Lt(_0x9cad9c,_0x567c0f)){const _0x416a4b=_0x9cad9c['getFirstRange']();return _0x416a4b['start']['isEqual'](_0x2597e7['end'])?this['_setSuggestionRange'](_0x9cad9c,this['_model']['createRange'](_0x2597e7['start'],_0x416a4b['end'])):this['_setSuggestionRange'](_0x9cad9c,this['_model']['createRange'](_0x416a4b['start'],_0x2597e7['end'])),_0x9cad9c;}}const _0x22b269=_0x178cde(),_0x195fba=_0x1d8380['id'],_0x7b6bf=_0x5f4570?'insertion:'+_0x5f4570:'insertion',_0x8f81d6=this['_setSuggestionData']({'id':_0x22b269,'type':_0x7b6bf,'createdAt':new Date(),'authorId':_0x195fba,'attributes':_0x567c0f});return this['_addSuggestionMarker'](_0x7b6bf,_0x22b269,_0x195fba,_0x2597e7),_0x8f81d6;}['markMultiRangeInsertion'](_0x3147cc,_0xaa3719='multi',_0x4113d8={}){const _0x1c83bf=this['editor']['plugins']['get']('Users')['me'],_0x5758c7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xaa3719,'join');for(const _0x4bd9b3 of this['getSuggestions']())if(_0x4bd9b3['author']['id']==_0x1c83bf['id']&&'insertion'==_0x4bd9b3['type']&&_0x4bd9b3['subType']==_0xaa3719&&Lt(_0x4bd9b3,_0x4113d8)&&(_0x5758c7(_0x4bd9b3['getRanges'](),_0x3147cc)||_0x5758c7(_0x3147cc,_0x4bd9b3['getRanges']()))){for(const _0x34fb2a of _0x3147cc)_0x4bd9b3['addRange'](_0x34fb2a);return _0x4bd9b3;}for(const {suggestion:_0x3067a8,meta:_0x18751c}of this['_findSuggestions'](_0x3147cc,'insertion')){if(!_0x18751c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x18751c['containsRangeInObject'])continue;if(!Lt(_0x3067a8,_0x4113d8))continue;let _0xeebc37=!0x0;for(const _0x175ec1 of _0x3067a8['getRanges']())for(const _0x23a0de of _0x3147cc)if(!_0x175ec1['containsRange'](_0x23a0de)){_0xeebc37=!0x1;break;}if(_0xeebc37)return _0x3067a8;}const _0x1f3957=_0x178cde(),_0x53928a=_0x1c83bf['id'],_0x4a4f39='insertion:'+_0xaa3719,_0x59bc24=this['_setSuggestionData']({'id':_0x1f3957,'type':_0x4a4f39,'createdAt':new Date(),'authorId':_0x53928a,'attributes':_0x4113d8});for(const _0x6430b3 of _0x3147cc)this['_addSuggestionMarker'](_0x4a4f39,_0x1f3957,_0x53928a,_0x6430b3,u['getMultiRangeId']());return _0x59bc24;}['markInlineFormat'](_0xc9adce,_0x34f488,_0x4ff9be=null,_0x48d51f={}){if(_0x4ff9be=_0x4ff9be||Vt(_0x34f488),_0xc9adce['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x30163a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4ff9be,'accept');return this['forceDefaultExecution'](()=>_0x30163a([_0xc9adce],_0x34f488,_0x48d51f)),null;}const _0x4d46da=this['editor']['plugins']['get']('Users')['me'],_0x430eaa=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3b147b,meta:_0x114b0f}of this['_findSuggestions'](_0xc9adce,'insertion'))_0x114b0f['isOwn']&&!_0x114b0f['isInsideObject']&&_0x430eaa['push'](..._0x3b147b['getRanges']());}const _0x2438c2=function(_0x4127a7,_0x4cd4e0){const _0x2cb502=[];for(const _0xf46bf7 of _0x4cd4e0){const _0x1f2a47=_0x4127a7['getIntersection'](_0xf46bf7);_0x1f2a47&&_0x2cb502['push'](_0x1f2a47);}return _0x2cb502;}(_0xc9adce,_0x430eaa),_0x3f7fcd=function(_0x3be28c,_0x34d3f9){const _0x19abf0=[_0x3be28c];for(const _0x3ae9d3 of _0x34d3f9){let _0x26f9fb=0x0;for(;_0x26f9fb<_0x19abf0['length'];){const _0x1cf7e2=_0x19abf0[_0x26f9fb]['getDifference'](_0x3ae9d3);_0x19abf0['splice'](_0x26f9fb,0x1,..._0x1cf7e2),_0x26f9fb+=_0x1cf7e2['length'];}}return _0x19abf0;}(_0xc9adce,_0x430eaa);_0x2438c2['length']&&this['_model']['change'](()=>{for(const _0x43d776 of _0x2438c2){const _0x30a531=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4ff9be,'accept');this['forceDefaultExecution'](()=>_0x30a531([_0x43d776],_0x34f488,_0x48d51f));}});for(const _0x38e52e of _0x3f7fcd){let _0x5ac4c9=null,_0x20fb4d=_0x38e52e['start'],_0x1bcafa=_0x38e52e['end'];for(const {suggestion:_0x32f171,meta:_0x3d7c67}of this['_findSuggestions'](_0x38e52e,'formatInline')){if(!_0x3d7c67['isOwn'])continue;if(_0x32f171['subType']!=_0x4ff9be)continue;if(!Lt(_0x32f171,_0x48d51f))continue;const _0x1985af=_0x32f171['getFirstRange']();if(_0x1985af['containsRange'](_0x38e52e,!0x0))return null;_0x20fb4d=_0x20fb4d['isBefore'](_0x1985af['start'])?_0x20fb4d:_0x1985af['start'],_0x1bcafa=_0x1bcafa['isAfter'](_0x1985af['end'])?_0x1bcafa:_0x1985af['end'],_0x5ac4c9?_0x1985af['start']['isBefore'](_0x5ac4c9['getFirstRange']()['start'])?(_0x5ac4c9['removeMarkers'](),_0x5ac4c9=_0x32f171):_0x32f171['removeMarkers']():_0x5ac4c9=_0x32f171;}const _0x45b4e9=this['_model']['createRange'](_0x20fb4d,_0x1bcafa);if(_0x5ac4c9)this['_setSuggestionRange'](_0x5ac4c9,_0x45b4e9);else{const _0x1a05e3=_0x178cde(),_0x4e8742=_0x4d46da['id'];this['_setSuggestionData']({'id':_0x1a05e3,'type':'formatInline:'+_0x4ff9be,'data':_0x34f488,'createdAt':new Date(),'authorId':_0x4e8742,'attributes':_0x48d51f}),this['_addSuggestionMarker']('formatInline:'+_0x4ff9be,_0x1a05e3,_0x4e8742,_0x45b4e9);}}return null;}['markBlockFormat'](_0x25eee9,_0x3f301a,_0x38f86f=[],_0x3d8c6=null,_0x1af46a={}){_0x3f301a['formatGroupId']||(_0x3f301a['formatGroupId']=_0x3f301a['commandName']),_0x3f301a['multipleBlocks']=_0x25eee9['is']('range'),_0x3d8c6=_0x3d8c6||Vt(_0x3f301a);const _0x3df649=_0x38f86f['map'](_0x33ceba=>Gt(_0x33ceba,this['_model'])),_0x38d549=_0x25eee9['is']('range')?_0x25eee9:Gt(_0x25eee9,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3fdb15=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3d8c6,'accept');return this['forceDefaultExecution'](()=>_0x3fdb15([_0x38d549],_0x3f301a,_0x1af46a)),null;}_0x3df649['push'](_0x38d549);let _0x5b5536=!0x0;for(const _0x4a58ab of _0x3df649)if(!this['_rangeIsInLocalUserInsertion'](_0x4a58ab)){_0x5b5536=!0x1;break;}if(_0x5b5536&&'always'!==this['_trackFormatChanges']){const _0x3335b0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3d8c6,'accept');return this['forceDefaultExecution'](()=>_0x3335b0([_0x38d549],_0x3f301a,_0x1af46a)),null;}let _0x4e726e=null,_0x7ac55b=_0x38d549['start'],_0x5af2f7=_0x38d549['end'];for(const {suggestion:_0x5890e2,meta:_0x5ea789}of this['_findSuggestions'](_0x38d549,'formatBlock')){if(!_0x5ea789['isOwn'])continue;if(_0x5ea789['isNextTo']||_0x5ea789['containsRangeInObject']||_0x5ea789['isInsideObject'])continue;if(_0x5890e2['data']['formatGroupId']!=_0x3f301a['formatGroupId'])continue;if(!Lt(_0x5890e2,_0x1af46a))continue;const _0x3b03e2=_0x5890e2['getFirstRange']();if(_0x5890e2['subType']==_0x3d8c6){if(_0x3b03e2['containsRange'](_0x38d549,!0x0))return null;_0x7ac55b=_0x7ac55b['isBefore'](_0x3b03e2['start'])?_0x7ac55b:_0x3b03e2['start'],_0x5af2f7=_0x5af2f7['isAfter'](_0x3b03e2['end'])?_0x5af2f7:_0x3b03e2['end'],_0x4e726e?_0x3b03e2['start']['isBefore'](_0x4e726e['getFirstRange']()['start'])?(_0x4e726e['removeMarkers'](),_0x4e726e=_0x5890e2):_0x5890e2['removeMarkers']():_0x4e726e=_0x5890e2;}else{const _0x3d8e20=_0x38d549['getIntersection'](_0x3b03e2);this['_cutOutSuggestionMarker'](_0x5890e2,_0x3d8e20);}}const _0x5a08c6=this['editor']['plugins']['get']('Users')['me'],_0x49e560=_0x178cde(),_0x1c68f7=_0x5a08c6['id'];if(_0x4e726e)return this['_setSuggestionRange'](_0x4e726e,this['_model']['createRange'](_0x7ac55b,_0x5af2f7)),_0x4e726e;{const _0x29d1b2=this['_setSuggestionData']({'id':_0x49e560,'type':'formatBlock:'+_0x3d8c6,'data':_0x3f301a,'createdAt':new Date(),'authorId':_0x1c68f7,'attributes':_0x1af46a});return this['_addSuggestionMarker']('formatBlock:'+_0x3d8c6,_0x49e560,_0x1c68f7,this['_model']['createRange'](_0x7ac55b,_0x5af2f7)),_0x29d1b2;}}['markMultiRangeBlockFormat'](_0x16c57b,_0x401575,_0x267d0f=[],_0x144d4a=null,_0xc971b9={}){_0x401575['formatGroupId']||(_0x401575['formatGroupId']=_0x401575['commandName']);const _0x127f36=_0x16c57b[0x0];_0x401575['multipleBlocks']=_0x127f36['is']('range'),_0x144d4a=_0x144d4a||Vt(_0x401575);const _0x51ab3f=_0x267d0f['map'](_0x4d46b4=>Gt(_0x4d46b4,this['_model'])),_0x8d31d8=_0x127f36['is']('range')?_0x16c57b:_0x16c57b['map'](_0x50c3ba=>Gt(_0x50c3ba,this['_model']));if('never'===this['_trackFormatChanges']){const _0x316bd9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x144d4a,'accept');return this['forceDefaultExecution'](()=>_0x316bd9(_0x8d31d8,_0x401575,_0xc971b9)),null;}_0x51ab3f['push'](..._0x8d31d8);let _0x3a529f=!0x0;for(const _0x5b8e10 of _0x51ab3f)if(!this['_rangeIsInLocalUserInsertion'](_0x5b8e10)){_0x3a529f=!0x1;break;}if(_0x3a529f&&'always'!==this['_trackFormatChanges']){const _0x3dc515=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x144d4a,'accept');return this['forceDefaultExecution'](()=>_0x3dc515(_0x8d31d8,_0x401575,_0xc971b9)),null;}const _0x306df6=this['editor']['plugins']['get']('Users')['me'];for(const _0x283a0a of this['getSuggestions']()){if(_0x283a0a['author']['id']!=_0x306df6['id'])continue;if('formatBlock'!=_0x283a0a['type']||_0x283a0a['data']['formatGroupId']!=_0x401575['formatGroupId'])continue;if(!Lt(_0x283a0a,_0xc971b9))continue;const _0x8cbe11=_0x283a0a['subType']==_0x144d4a;for(let _0x590621=0x0;_0x590621<_0x8d31d8['length'];_0x590621++){const _0x18964d=_0x8d31d8[_0x590621];for(const _0x436e23 of _0x283a0a['getMarkers']()){const _0x32c414=_0x436e23['getRange']();if(_0x18964d['isEqual'](_0x32c414)){_0x8cbe11?(_0x8d31d8['splice'](_0x590621,0x1),_0x590621--):_0x283a0a['removeMarker'](_0x436e23['name']);break;}}}}if(0x0==_0x8d31d8['length'])return null;const _0x3f3396=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x144d4a,'join');for(const _0x513753 of this['getSuggestions']())if(_0x513753['author']['id']==_0x306df6['id']&&'formatBlock'==_0x513753['type']&&_0x513753['data']['formatGroupId']==_0x401575['formatGroupId']&&_0x513753['subType']==_0x144d4a&&Lt(_0x513753,_0xc971b9)&&(_0x3f3396(_0x513753['getRanges'](),_0x8d31d8)||_0x3f3396(_0x8d31d8,_0x513753['getRanges']()))){for(const _0x37e8a5 of _0x8d31d8)_0x513753['addRange'](_0x37e8a5);return _0x513753;}const _0x1a025b=_0x178cde(),_0xc8eb3=_0x306df6['id'],_0x1f4772='formatBlock:'+_0x144d4a,_0x458fb3=this['_setSuggestionData']({'id':_0x1a025b,'type':_0x1f4772,'data':_0x401575,'createdAt':new Date(),'authorId':_0xc8eb3,'attributes':_0xc971b9});for(const _0x5270f8 of _0x8d31d8)this['_addSuggestionMarker'](_0x1f4772,_0x1a025b,_0xc8eb3,_0x5270f8,u['getMultiRangeId']());return _0x458fb3;}['markDeletion'](_0x5dea56,_0x4cd37f=null,_0x1ef162={}){if(_0x5dea56['isCollapsed'])return null;const _0x13544a=this['editor']['plugins']['get']('Users')['me'],_0xc54b57=new _0x13a6f6(_0x5dea56['start'],_0x5dea56['end']);for(const {suggestion:_0x55e0fb,meta:_0x5af6b3}of this['_findSuggestions'](_0xc54b57,'insertion'))if(_0x5af6b3['isOwn']&&!_0x5af6b3['isNextTo']){if(_0x55e0fb['isMultiRange']){const _0xdcb223=_0x55e0fb['getRanges']()['filter'](_0x2b4210=>'$graveyard'!=_0x2b4210['root']['rootName']);_0xdcb223['every'](_0x4e0a8e=>_0xc54b57['containsRange'](_0x4e0a8e,!0x0))&&_0x55e0fb['discard']();if(_0xdcb223['some'](_0xed5b01=>_0xed5b01['containsRange'](_0xc54b57,!0x0))){const _0x2228f5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cd37f,'accept');return this['forceDefaultExecution'](()=>_0x2228f5([_0xc54b57],null,_0x1ef162)),null;}}else{const _0x5b69f3=_0xc54b57['getIntersection'](_0x55e0fb['getFirstRange']());null!==_0x5b69f3&&_0x55e0fb['_onDiscard']([_0x5b69f3],null,_0x1ef162);}}if(_0xc54b57['detach'](),_0xc54b57['isCollapsed']||'$graveyard'==_0xc54b57['root']['rootName'])return null;let _0x17d6c9=null,_0x7fba66=_0xc54b57['start'],_0x5da947=_0xc54b57['end'];const _0x38ba5b=this['_findSuggestions'](_0xc54b57,'deletion');for(const {suggestion:_0x3c99cf,meta:_0x401df8}of _0x38ba5b){const _0x39a921=this['_model']['createRange'](_0x7fba66,_0x5da947);if(_0x401df8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x401df8['containsRangeInObject']&&!_0x401df8['isInsideObject'])){if(_0x3c99cf['isMultiRange']){if(!Lt(_0x3c99cf,_0x1ef162))continue;let _0x857e70=!0x0;for(const _0x23a903 of _0x3c99cf['getRanges']()){if(_0x23a903['containsRange'](_0x39a921,!0x0))return _0x3c99cf;_0x39a921['containsRange'](_0x23a903)||(_0x857e70=!0x1);}_0x857e70&&_0x3c99cf['discard']();}else{const _0x1faa16=_0x3c99cf['getFirstRange']();if(_0x1faa16['containsRange'](_0x39a921,!0x0))return _0x3c99cf;if(!Lt(_0x3c99cf,_0x1ef162)){_0x39a921['containsRange'](_0x1faa16)?_0x3c99cf['removeMarkers']():_0x1faa16['containsPosition'](_0x7fba66)?_0x7fba66=_0x1faa16['end']:_0x1faa16['containsPosition'](_0x5da947)&&(_0x5da947=_0x1faa16['start']);continue;}_0x7fba66=_0x7fba66['isBefore'](_0x1faa16['start'])?_0x7fba66:_0x1faa16['start'],_0x5da947=_0x5da947['isAfter'](_0x1faa16['end'])?_0x5da947:_0x1faa16['end'],_0x1ef162=Object['assign']({},_0x3c99cf['attributes']),_0x17d6c9?_0x1faa16['start']['isBefore'](_0x17d6c9['getFirstRange']()['start'])?(_0x17d6c9['removeMarkers'](),_0x17d6c9=_0x3c99cf):_0x3c99cf['removeMarkers']():_0x17d6c9=_0x3c99cf;}}}if(_0x17d6c9)return this['_setSuggestionRange'](_0x17d6c9,this['_model']['createRange'](_0x7fba66,_0x5da947)),_0x17d6c9;{const _0x7365da=_0x178cde(),_0x44edc0=this['_model']['createRange'](_0x7fba66,_0x5da947),_0x3bb740=_0x13544a['id'],_0x403025=_0x4cd37f?'deletion:'+_0x4cd37f:'deletion',_0x123682=this['_setSuggestionData']({'id':_0x7365da,'type':_0x403025,'createdAt':new Date(),'authorId':_0x3bb740,'attributes':_0x1ef162});return this['_addSuggestionMarker'](_0x403025,_0x7365da,_0x3bb740,_0x44edc0),_0x123682;}}['markMultiRangeDeletion'](_0x5de787,_0x42fa42='multi',_0x39b89a={}){const _0x4ec1d4=this['editor']['plugins']['get']('Users')['me'],_0x2b244a=_0x5de787['map'](_0x261c37=>new _0x13a6f6(_0x261c37['start'],_0x261c37['end'])),_0x4f2a35=new Set();for(const {suggestion:_0x1e462c,meta:_0x440ff2}of this['_findSuggestions'](_0x2b244a,'insertion'))_0x440ff2['isOwn']&&!_0x440ff2['isNextTo']&&_0x4f2a35['add'](_0x1e462c);for(const _0x3e75b6 of _0x4f2a35)if(_0x3e75b6['isMultiRange']){const _0x4b7884=_0x3e75b6['getRanges']();(!_0x3e75b6['attributes']||!_0x3e75b6['attributes']['skipNestingCheck'])&&(_0x4b7884['every'](_0x11171f=>_0x2b244a['some'](_0x11e35f=>_0x11e35f['containsRange'](_0x11171f,!0x0)))&&_0x3e75b6['discard']());if(_0x2b244a['every'](_0x28e3c4=>_0x4b7884['some'](_0x18bf61=>_0x18bf61['containsRange'](_0x28e3c4,!0x0)))){const _0x13dd6f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42fa42,'accept');return this['forceDefaultExecution'](()=>_0x13dd6f(_0x5de787,null,_0x39b89a)),null;}}else{const _0x402478=_0x3e75b6['getFirstRange']();_0x2b244a['some'](_0x284252=>_0x284252['containsRange'](_0x402478,!0x0))&&_0x3e75b6['discard']();if(_0x2b244a['every'](_0xd025ba=>_0x402478['containsRange'](_0xd025ba,!0x0))){const _0x334d51=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42fa42,'accept');return this['forceDefaultExecution'](()=>_0x334d51(_0x2b244a,null,_0x39b89a)),null;}}const _0x613439=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42fa42,'join');let _0x1f8ed2=null;for(const _0x4be1f6 of this['getSuggestions']())if(_0x4be1f6['author']['id']==_0x4ec1d4['id']&&_0x4be1f6['isInContent']&&'deletion'==_0x4be1f6['type']&&_0x4be1f6['subType']==_0x42fa42&&Lt(_0x4be1f6,_0x39b89a)&&(_0x613439(_0x4be1f6['getRanges'](),_0x2b244a)||_0x613439(_0x2b244a,_0x4be1f6['getRanges']()))){if(_0x1f8ed2){if(_0x4be1f6['commentThread']&&_0x4be1f6['commentThread']['length'])continue;for(const _0x88cb52 of _0x4be1f6['getRanges']())_0x1f8ed2['isIntersectingWithRange'](_0x88cb52)||_0x1f8ed2['addRange'](_0x88cb52);_0x4be1f6['removeMarkers']();}else{_0x1f8ed2=_0x4be1f6;for(const _0x442cc5 of _0x2b244a)_0x4be1f6['isIntersectingWithRange'](_0x442cc5)||_0x4be1f6['addRange'](_0x442cc5);}}if(_0x1f8ed2)return _0x1f8ed2;_0x4f2a35['clear']();for(const {suggestion:_0x46ec1c,meta:_0x402c10}of this['_findSuggestions'](_0x2b244a,'deletion'))_0x402c10['isOwn']&&(this['_mergeNestedSuggestions']||!_0x402c10['containsRangeInObject']&&!_0x402c10['isInsideObject'])&&Lt(_0x46ec1c,_0x39b89a)&&_0x4f2a35['add'](_0x46ec1c);for(const _0x2f34fc of _0x4f2a35){const _0x1c5077=_0x2f34fc['getRanges']();if(!_0x39b89a||!_0x39b89a['skipNestingCheck']){if(_0x2b244a['every'](_0x4f7fcd=>_0x1c5077['some'](_0x4c8e70=>_0x4c8e70['containsRange'](_0x4f7fcd,!0x0))))return _0x2f34fc;}(!_0x2f34fc['attributes']||!_0x2f34fc['attributes']['skipNestingCheck'])&&(_0x1c5077['every'](_0x2d4c3f=>_0x2b244a['some'](_0x535abf=>_0x535abf['containsRange'](_0x2d4c3f,!0x0)))&&_0x2f34fc['discard']());}const _0xedefe7=_0x178cde(),_0x3d92fe=_0x4ec1d4['id'],_0x444992='deletion:'+_0x42fa42,_0x517105=this['_setSuggestionData']({'id':_0xedefe7,'type':_0x444992,'createdAt':new Date(),'authorId':_0x3d92fe,'attributes':_0x39b89a});for(const _0x3326fd of _0x2b244a)_0x3326fd['detach'](),_0x3326fd['isCollapsed']||'$graveyard'==_0x3326fd['root']['rootName']||this['_addSuggestionMarker'](_0x444992,_0xedefe7,_0x3d92fe,_0x3326fd,u['getMultiRangeId']());return _0x517105;}['markAttributeChange'](_0x4917ae,_0x2ba87b,_0x3695e9,_0x100693,_0x3005a9){if(_0x4917ae['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x54a224=this['editor']['plugins']['get']('Users')['me']['id'],_0x28b567=Array['from'](this['_suggestions']['values']())['filter'](_0x16e950=>'attribute'==_0x16e950['type']&&_0x16e950['data']['key']==_0x2ba87b&&_0x16e950['isIntersectingWithRange'](_0x4917ae));if('default'===this['_trackFormatChanges']){const _0x5d027f=this['_findSuggestions'](_0x4917ae,'insertion')['filter'](({meta:_0x31e960})=>_0x31e960['isOwn']&&!_0x31e960['isInsideObject']&&!_0x31e960['isNextTo'])['map'](({suggestion:_0x5d1c0c})=>_0x5d1c0c);_0x28b567['unshift'](..._0x5d027f);}const _0x32926d=new Map([[_0x4917ae,_0x3695e9]]);for(const _0x44df02 of _0x28b567){const _0x59939b='attribute'==_0x44df02['type']?_0x44df02['data']['oldValue']:void 0x0,_0x1b1750=_0x44df02['getFirstRange'](),_0x55071b=Array['from'](_0x32926d['keys']())['find'](_0xa4f076=>_0xa4f076['isIntersecting'](_0x1b1750));if(!_0x55071b)continue;const _0xcf5225=_0x55071b['getDifference'](_0x1b1750);this['_isBlockAttribute'](_0x2ba87b)&&'insertion'==_0x44df02['type']&&0x0!=_0xcf5225['length']||(_0x32926d['delete'](_0x55071b),_0xcf5225['forEach'](_0x12ed78=>{_0x32926d['set'](_0x12ed78,_0x3695e9);}),'insertion'!=_0x44df02['type']&&_0x59939b!=_0x100693&&_0x32926d['set'](_0x55071b['getIntersection'](_0x1b1750),_0x59939b));}const _0x553482=[];for(const [_0x4b5cf9,_0x5d127e]of _0x32926d){const _0x43125a=_0x178cde(),_0x4a79b7={'key':_0x2ba87b,'oldValue':_0x5d127e,'newValue':_0x100693};_0x2ba87b['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':_0x2ba87b});const _0x15b844=('attribute:'+(_0x2ba87b+'|'+Vt({'newValue':_0x100693})))['substring'](0x0,0x3c),_0x552956=this['_setSuggestionData']({'id':_0x43125a,'type':_0x15b844,'data':_0x4a79b7,'createdAt':new Date(),'authorId':_0x54a224,'attributes':_0x3005a9});_0x553482['push'](_0x552956),this['_addSuggestionMarker'](_0x15b844,_0x43125a,_0x54a224,_0x4b5cf9);}return _0x553482;}['enableDefaultAttributesIntegration'](_0x1d4e82){this['enableCommand'](_0x1d4e82,(_0x3718e4,..._0x64e519)=>{this['_recordAttributeChanges'](()=>{_0x3718e4(..._0x64e519);});});}['registerBlockAttribute'](_0x302395){this['_blockAttributeKeys']['add'](_0x302395);}['registerInlineAttribute'](_0x340a92){this['_inlineAttributeKeys']['add'](_0x340a92);}['_getAttributeKey'](_0xed7feb){return'attribute'==_0xed7feb['type']?_0xed7feb['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xd8cd59,_0x444606){const _0x35d2f1=_0xd8cd59['getFirstMarker']();this['_model']['change'](_0x27250e=>{_0x27250e['updateMarker'](_0x35d2f1,{'range':_0x444606});});}['_addThreadToSuggestion'](_0x5beca4){const _0xaa8567=_0x5beca4['id'],_0x32c7d7=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xaa8567)||this['_commentsRepository']['addCommentThread']({'channelId':_0x32c7d7,'threadId':_0xaa8567,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xadca6c=this['_commentsRepository']['getCommentThread'](_0xaa8567);_0xadca6c['unbind']('isRemovable'),_0xadca6c['isRemovable']=!0x1,_0x5beca4['commentThread']=_0xadca6c;}['_checkSuggestionCorrectness'](_0x2976eb,_0x5258e5,_0x8b5467,_0x2d1d49){if(_0x2976eb['type']!=_0x5258e5||_0x2976eb['subType']!=_0x8b5467||_0x2976eb['creator']['id']!=_0x2d1d49)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x417f34('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x10a7d1,_0x5bf68d){const _0x31e83d=_0x10a7d1['getFirstRange']();if(_0x5bf68d['isEqual'](_0x31e83d))_0x10a7d1['removeMarkers']();else{if(_0x31e83d['containsRange'](_0x5bf68d)){const _0x5e705d=this['_model']['createPositionAt'](_0x5bf68d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x10a7d1,this['_model']['createRange'](_0x31e83d['start'],_0x5e705d));const _0x70acc5=_0x178cde(),_0x30795c=_0x10a7d1['creator']['id'],_0x3bebd2=_0x10a7d1['type']+':'+_0x10a7d1['subType'];this['_setSuggestionData']({'id':_0x70acc5,'type':_0x3bebd2,'createdAt':new Date(),'authorId':_0x30795c,'data':_0x10a7d1['data'],'attributes':_0x10a7d1['attributes']});const _0x437073=this['_model']['createPositionAt'](_0x5bf68d['end']['parent'],'after'),_0x44ffa7=this['_model']['createRange'](_0x437073,_0x31e83d['end']);this['_addSuggestionMarker'](_0x3bebd2,_0x70acc5,_0x30795c,_0x44ffa7);}else{if(_0x31e83d['containsPosition'](_0x5bf68d['start'])){const _0x11780d=this['_model']['createPositionAt'](_0x5bf68d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x10a7d1,this['_model']['createRange'](_0x31e83d['start'],_0x11780d));}else{const _0x4ba908=this['_model']['createPositionAt'](_0x5bf68d['end']['parent'],'after');this['_setSuggestionRange'](_0x10a7d1,this['_model']['createRange'](_0x4ba908,_0x31e83d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x7c0114){for(const {suggestion:_0x5c2ec0,meta:_0x31bffd}of this['_findSuggestions'](_0x7c0114,'insertion')){if(!_0x31bffd['isOwn'])continue;const _0x20373a=_0x5c2ec0['getRanges']();for(const _0x52c824 of _0x20373a)if(!_0x7c0114['getDifference'](_0x52c824)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3dd917){const _0x18080d=this['editor']['plugins']['get']('Users')['getUser'](_0x3dd917);if(!_0x18080d)throw new _0x417f34('track-changes-user-not-found',this);return _0x18080d;}['_getExternalAuthor'](_0x1f7a94){const _0x5603f7=this['editor']['plugins']['get']('Users'),_0x5c22ac=_0x2f7a2e('external:'+_0x1f7a94),_0x487438=_0x5603f7['getUser'](_0x5c22ac);return _0x487438||_0x5603f7['addUser']({'id':_0x5c22ac,'name':_0x1f7a94});}['_createSuggestion'](_0x332307,_0x1d224d,_0x3b46b6,_0xd7c667,_0x345853){const _0x5c09a5=this['_getAuthorFromId'](_0xd7c667),_0x548ea1=this['_suggestionFactory']['buildSuggestion'](_0x332307,_0x1d224d,_0x3b46b6,_0x5c09a5,_0x345853,_0x2b0346=>{this['_updateSuggestionData'](_0x3b46b6,{'attributes':_0x2b0346});const _0x52394a=this['getSuggestion'](_0x3b46b6);this['_joinWithAdjacentSuggestions'](new Set([_0x52394a])),this['_refreshSuggestionsChain'](new Set([_0x52394a]));});return this['listenTo'](_0x548ea1,'accept',()=>{this['_updateSuggestionData'](_0x3b46b6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x548ea1,'discard',()=>{this['_updateSuggestionData'](_0x3b46b6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3b46b6,_0x548ea1),this['_suggestionState']['set'](_0x548ea1,'notReady'),_0x548ea1;}['_splitMarkerName'](_0xc3b5ce){const _0x3b4246=_0xc3b5ce['split'](':');return{'group':_0x3b4246[0x0],'type':_0x3b4246[0x1],'subType':_0x3b4246['length']>=0x5?_0x3b4246[0x2]:null,'id':_0x3b4246['length']<0x5?_0x3b4246[0x2]:_0x3b4246[0x3],'authorId':_0x3b4246['length']<0x5?_0x3b4246[0x3]:_0x3b4246[0x4],'markerCount':0x6==_0x3b4246['length']?_0x3b4246[0x5]:null};}['_breakSuggestionMarker'](_0x4881dc,_0x2efb59,_0x34fbaf){const _0x4f13d9=_0x4881dc['getFirstRange'](),_0x28c6a2=_0x4f13d9['start'],_0x2f1649=_0x4f13d9['end'];this['_setSuggestionRange'](_0x4881dc,this['_model']['createRange'](_0x28c6a2,_0x2efb59));const _0x397004=_0x178cde(),_0x18c059=_0x4881dc['creator']['id'],_0x7de2b=_0x4881dc['type']+(_0x4881dc['subType']?':'+_0x4881dc['subType']:'');this['_setSuggestionData']({'id':_0x397004,'type':_0x7de2b,'createdAt':new Date(),'authorId':_0x18c059,'originalSuggestionId':_0x4881dc['id'],'attributes':_0x4881dc['attributes'],'data':_0x4881dc['data']});const _0x32febc=this['_getAttributeKey'](_0x4881dc);('formatBlock'==_0x4881dc['type']||_0x32febc&&this['_isBlockAttribute'](_0x32febc))&&(_0x34fbaf=this['_model']['createPositionBefore'](_0x34fbaf['parent'])),this['_addSuggestionMarker'](_0x7de2b,_0x397004,_0x18c059,this['_model']['createRange'](_0x34fbaf,_0x2f1649));}['_findSuggestions'](_0x2e1aeb,_0x43c7eb=null){const _0x184e03=[],_0x14aa3d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2e1aeb)||(_0x2e1aeb=[_0x2e1aeb]);for(const _0x49376d of this['getSuggestions']()){if(!_0x49376d['isInContent'])continue;if(_0x43c7eb&&_0x49376d['type']!=_0x43c7eb)continue;let _0x57de19=!0x1;for(const _0x42d651 of _0x49376d['getRanges']()){for(const _0x4524b8 of _0x2e1aeb){const _0x4ba3ad=_0x4524b8['start']['isEqual'](_0x42d651['end'])||_0x4524b8['end']['isEqual'](_0x42d651['start']);if(_0x4ba3ad||_0x4524b8['getIntersection'](_0x42d651)){const _0xe69a0b=_0x4524b8['containsRange'](_0x42d651)&&Rt(this['_model']['schema'],_0x42d651['start'],_0x4524b8),_0x3387a5=_0x42d651['containsRange'](_0x4524b8)&&Rt(this['_model']['schema'],_0x4524b8['start'],_0x42d651);_0x184e03['push']({'suggestion':_0x49376d,'meta':{'isOwn':_0x14aa3d==_0x49376d['author'],'isNextTo':_0x4ba3ad,'isInsideObject':_0xe69a0b,'containsRangeInObject':_0x3387a5}}),_0x57de19=!0x0;break;}}if(_0x57de19)break;}}return _0x184e03;}['_addSuggestionMarker'](_0xc12eb7,_0x54405d,_0x3b721f,_0x6e874b,_0x1e8055){this['_model']['change'](_0x1f85ca=>{let _0x9eebc7='suggestion:'+_0xc12eb7+':'+_0x54405d+':'+_0x3b721f;_0x1e8055&&(_0x9eebc7=_0x9eebc7+':'+_0x1e8055),_0x1f85ca['addMarker'](_0x9eebc7,{'range':_0x6e874b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2cbab9){const _0x1e528f=_0x2cbab9['previous'],_0x437ce0=_0x2cbab9['next'];_0x2cbab9['previous']=null,_0x2cbab9['next']=null,null!=_0x1e528f&&_0x1e528f['next']==_0x2cbab9&&(_0x1e528f['next']=_0x437ce0),null!=_0x437ce0&&_0x437ce0['previous']==_0x2cbab9&&(_0x437ce0['previous']=_0x1e528f),'ready'==this['_suggestionState']['get'](_0x2cbab9)&&(this['_suggestionState']['set'](_0x2cbab9,'removed'),this['fire']('suggestionUnloaded',_0x2cbab9,_0x1e528f,_0x437ce0));}['_setSuggestionData'](_0x318e1d){const _0x57df93=_0x318e1d['id'],_0x20524f=this['addSuggestionData'](_0x318e1d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x363389=this['editor']['plugins']['get']('PendingActions'),_0x130d08=_0x20524f['hasComments'],_0x91a197=_0x20524f['subType']?_0x20524f['type']+':'+_0x20524f['subType']:_0x20524f['type'],_0x3fceeb=this['editor']['locale'],_0x26cf00=_0x363389['add'](o(_0x3fceeb,'PENDING_ACTION_SUGGESTION')),_0x29bfec={'id':_0x57df93,'type':_0x91a197,'hasComments':_0x130d08,'data':_0x318e1d['data']||null,'originalSuggestionId':_0x318e1d['originalSuggestionId']||null,'attributes':_0x20524f['attributes']};this['_adapter']['addSuggestion'](_0x29bfec)['then'](_0x2bc7fb=>{_0x20524f['_saved']=!0x0,_0x363389['remove'](_0x26cf00),_0x2bc7fb&&_0x2bc7fb['createdAt']&&(this['_suggestions']['get'](_0x57df93)['createdAt']=_0x2bc7fb['createdAt']);})['catch'](_0x5b68d3=>{throw _0x41cd1c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x20524f['discard']();}),_0x20524f['stopListening'](),this['_suggestions']['delete'](_0x20524f['id']),this['_suggestionState']['delete'](_0x20524f),_0x5b68d3;});}return _0x20524f;}['_isBlockAttribute'](_0x1019b6){return this['_blockAttributeKeys']['has'](_0x1019b6);}['_updateSuggestionData'](_0x482c30,_0x73164a){const _0x110611=this['editor']['plugins']['get']('PendingActions'),_0x5837e2=this['getSuggestion'](_0x482c30);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5837e2['_saved']){const _0x571f2e=_0x110611['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x482c30,_0x73164a)['then'](()=>{_0x110611['remove'](_0x571f2e);});}else _0x5837e2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x482c30,_0x73164a);});}}['_getSuggestionData'](_0xb1ec19){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x417f34('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xb1ec19);}['_handleNewSuggestionMarker'](_0x47cc1a){const {id:_0x516df,type:_0x4b454b,subType:_0x5ab187,authorId:_0x25ce8a}=this['_splitMarkerName'](_0x47cc1a),_0x17cca7=this['_suggestions']['get'](_0x516df)||this['_createSuggestion'](_0x4b454b,_0x5ab187,_0x516df,_0x25ce8a,{});switch(this['_checkSuggestionCorrectness'](_0x17cca7,_0x4b454b,_0x5ab187,_0x25ce8a),this['_suggestionState']['get'](_0x17cca7)){case'notReady':this['_getSuggestionData'](_0x516df)['then'](_0x45773d=>{let _0x2edf17=Promise['resolve']();_0x45773d['hasComments']&&(_0x2edf17=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x516df})),_0x2edf17['then'](()=>{this['addSuggestionData'](_0x45773d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x17cca7,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x516df,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x17cca7,'ready'),this['fire']('suggestionLoaded',_0x17cca7);break;case'ready':this['fire']('suggestionChanged',_0x17cca7);}return _0x17cca7['addMarkerName'](_0x47cc1a),_0x17cca7;}['_refreshSuggestionsChain'](_0xa0f295){const _0x32cdb1=Array['from'](_0xa0f295),_0x423dea=_0x32cdb1['filter'](_0x42f2be=>'attribute'==_0x42f2be['type']);this['_refreshAttributeSuggestionsChain'](_0x423dea);const _0x5911c2=_0x32cdb1['filter'](_0x4dc289=>!_0x4dc289['isMultiRange']&&'attribute'!=_0x4dc289['type']),_0x93e926=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b1aad=>!_0x1b1aad['isMultiRange']&&'attribute'!=_0x1b1aad['type']),_0x46d486=_0x93e926['filter'](_0x174dfa=>!_0xa0f295['has'](_0x174dfa)),_0x44aaa6=new Map(_0x93e926['map'](_0x168c86=>[_0x168c86,this['_suggestionFactory']['getSuggestionCallback'](_0x168c86['type'],_0x168c86['subType'],'chain')])),_0x28bb9d=new Map(_0x93e926['map'](_0x58849d=>[_0x58849d,_0x58849d['getFirstRange']()])),_0x3b4357=new Set(),_0x2ed640=new Set();for(let _0x168abd=0x0;_0x168abd<_0x5911c2['length'];_0x168abd++)_0x18af1e(_0x5911c2[_0x168abd],_0x5911c2,_0x168abd+0x1);for(let _0x3fc349=0x0;_0x3fc349<_0x5911c2['length'];_0x3fc349++)_0x18af1e(_0x5911c2[_0x3fc349],_0x46d486,0x0);const _0x3c71bc=new Set();for(let _0x24c574=0x0;_0x24c574<_0x5911c2['length'];_0x24c574++){const _0x539c23=_0x5911c2[_0x24c574];!_0x2ed640['has'](_0x539c23)&&_0x539c23['previous']&&(_0x3c71bc['add'](_0x539c23['previous']),_0x539c23['previous']['next']===_0x539c23&&(_0x539c23['previous']['next']=null),_0x539c23['previous']=null),!_0x3b4357['has'](_0x539c23)&&_0x539c23['next']&&(_0x3c71bc['add'](_0x539c23['next']),_0x539c23['next']['previous']===_0x539c23&&(_0x539c23['next']['previous']=null),_0x539c23['next']=null);}function _0x18af1e(_0x449e17,_0x3939fd,_0x130d71){for(let _0x1f7bd4=_0x130d71;_0x1f7bd4<_0x3939fd['length'];_0x1f7bd4++){const _0xfea97d=_0x438d3f(_0x449e17,_0x3939fd[_0x1f7bd4]);_0xfea97d&&(_0xfea97d[0x0]['next']=_0xfea97d[0x1],_0xfea97d[0x1]['previous']=_0xfea97d[0x0],_0x3b4357['add'](_0xfea97d[0x0]),_0x2ed640['add'](_0xfea97d[0x1]));}}function _0x438d3f(_0x1a2307,_0x27fc79){if(_0x1a2307['author']['id']!==_0x27fc79['author']['id'])return null;const _0x48f911=_0x44aaa6['get'](_0x1a2307)(_0x1a2307,_0x27fc79,_0x28bb9d['get'](_0x1a2307),_0x28bb9d['get'](_0x27fc79));if(!_0x48f911)return null;return _0x44aaa6['get'](_0x27fc79)(_0x1a2307,_0x27fc79,_0x28bb9d['get'](_0x1a2307),_0x28bb9d['get'](_0x27fc79))?_0x48f911[0x1]['commentThread']&&_0x48f911[0x1]['commentThread']['length']?null:_0x48f911:null;}_0x3c71bc['size']&&this['_refreshSuggestionsChain'](_0x3c71bc);}['_refreshAttributeSuggestionsChain'](_0x2b16a8){if(0x0==_0x2b16a8['length'])return;const _0x38a5a9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f2f13=>'attribute'==_0x3f2f13['type']&&_0x3f2f13['_isDataLoaded']),_0x329306=[],_0x521c41=new Map();for(const _0x8b7fc7 of _0x38a5a9){const _0xa1b7a9=_0x2f7a2e(_0x8b7fc7['attributes']);_0x521c41['has'](_0xa1b7a9)||(_0x521c41['set'](_0xa1b7a9,_0x329306['length']),_0x329306['push']([]));const _0x2529f6=_0x521c41['get'](_0xa1b7a9);_0x329306[_0x2529f6]['push'](_0x8b7fc7);}!(function(){_0x329306['sort']((_0x299c73,_0x4726f)=>{const _0x2f7ff9=_0x299c73[0x0]['createdAt'],_0xf3cbdd=_0x4726f[0x0]['createdAt'];return _0x2f7ff9==_0xf3cbdd?_0x299c73[0x0]['attributes']['groupId']<_0x4726f[0x0]['attributes']['groupId']?-0x1:0x1:_0x2f7ff9<_0xf3cbdd?-0x1:0x1;});for(const _0x396721 of _0x329306)_0x396721['sort']((_0x5975bd,_0xfdf184)=>_0x5975bd['id']<_0xfdf184['id']?-0x1:0x1);}());for(let _0x105660=0x0;_0x105660<_0x329306['length'];_0x105660++){if(0x0==_0x329306[_0x105660]['length'])continue;const _0x27d68d=[];for(let _0x2b5c1e=_0x105660+0x1;_0x2b5c1e<_0x329306['length'];_0x2b5c1e++)0x0!=_0x329306[_0x2b5c1e]['length']&&_0x14efa2(_0x329306[_0x105660],_0x329306[_0x2b5c1e])&&_0x27d68d['push'](_0x2b5c1e);for(const _0x43054d of _0x27d68d)_0x329306[_0x105660]=_0x329306[_0x105660]['concat'](_0x329306[_0x43054d]),_0x329306[_0x43054d]=[];}for(const _0x282143 of _0x329306)for(let _0x217c1b=0x0;_0x217c1b<_0x282143['length'];_0x217c1b++)_0x282143[_0x217c1b]['next']=_0x282143[_0x217c1b+0x1]||null;for(const _0x188b90 of _0x329306)for(let _0x23855b=0x0;_0x23855b<_0x188b90['length'];_0x23855b++)_0x188b90[_0x23855b]['previous']=_0x188b90[_0x23855b-0x1]||null;function _0x14efa2(_0x470d8b,_0x4187c6){if(_0x470d8b[0x0]['attributes']['groupId']!==_0x4187c6[0x0]['attributes']['groupId']&&_0x470d8b[0x0]['author']!==_0x4187c6[0x0]['author'])return!0x1;if(!function(_0x256d19,_0x34cf1e){if(!_0x256d19['hasComments']&&!_0x34cf1e['hasComments'])return!0x0;if(_0x256d19['hasComments']&&_0x34cf1e['hasComments'])return!0x1;if(_0x256d19['hasComments']&&_0x34cf1e['createdAt']<_0x256d19['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x34cf1e['hasComments']&&_0x256d19['createdAt']<_0x34cf1e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x470d8b[0x0],_0x4187c6[0x0]))return!0x1;const _0x303ab4=Bt(_0x470d8b[0x0]['attributes'],'groupId'),_0x30229e=Bt(_0x4187c6[0x0]['attributes'],'groupId');if(!_0xd50537(_0x303ab4,_0x30229e))return!0x1;return!!_0x470d8b['every'](_0x230c43=>_0x4187c6['some'](_0x26fbde=>_0x230c43['getFirstRange']()['isEqual'](_0x26fbde['getFirstRange']())))&&_0x4187c6['every'](_0xd86882=>_0x470d8b['some'](_0x454537=>_0xd86882['getFirstRange']()['isEqual'](_0x454537['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4004bc){const _0x4d1261=Array['from'](_0x4004bc),_0x2ddae1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x58b21c=_0x2ddae1['filter'](_0x3f7f33=>!_0x4004bc['has'](_0x3f7f33)),_0x1d8ccf=new Map(_0x4d1261['map'](_0x48f9d6=>[_0x48f9d6,this['_suggestionFactory']['getSuggestionCallback'](_0x48f9d6['type'],_0x48f9d6['subType'],'join')])),_0x27e998=new Map(_0x2ddae1['map'](_0x32d2fa=>[_0x32d2fa,_0x32d2fa['getRanges']()]));for(let _0x23dc99=0x0;_0x23dc99<_0x4d1261['length'];_0x23dc99++){if(_0x3a164b(this,_0x4d1261[_0x23dc99],_0x4d1261,_0x23dc99+0x1))return!0x0;}for(let _0x38d8aa=0x0;_0x38d8aa<_0x4d1261['length'];_0x38d8aa++){if(_0x3a164b(this,_0x4d1261[_0x38d8aa],_0x58b21c,0x0))return!0x0;}return!0x1;function _0x3a164b(_0xf170b3,_0x3b5ee2,_0x570ebd,_0x2a670a){for(let _0x419fc0=_0x2a670a;_0x419fc0<_0x570ebd['length'];_0x419fc0++){const _0x5891ae=_0x570ebd[_0x419fc0];if(_0x5891ae['type']!==_0x3b5ee2['type']||_0x5891ae['author']['id']!==_0x3b5ee2['author']['id']||_0x5891ae['subType']!==_0x3b5ee2['subType'])continue;if(!Pt(_0x3b5ee2,_0x5891ae,['groupId']))continue;if('attribute'==_0x3b5ee2['type']&&_0x3b5ee2['data']['oldValue']!=_0x5891ae['data']['oldValue'])continue;if('attribute'==_0x3b5ee2['type']&&_0xf170b3['_isBlockAttribute'](_0x3b5ee2['data']['key']))continue;if('formatBlock'==_0x3b5ee2['type']){const _0x328658=_0xf170b3['editor']['model'],_0x535341=_0x3b5ee2['getContainedElement']();if(_0x535341&&(_0x328658['schema']['isObject'](_0x535341)||_0x328658['schema']['isLimit'](_0x535341)))continue;}const _0x143934=_0x1d8ccf['get'](_0x3b5ee2),_0x52d4a4=_0x27e998['get'](_0x3b5ee2),_0xdf6361=_0x27e998['get'](_0x5891ae),_0x5a6e44=_0x3b5ee2['commentThread']&&_0x3b5ee2['commentThread']['length'],_0x577e12=_0x5891ae['commentThread']&&_0x5891ae['commentThread']['length'];if(!_0x5a6e44&&_0x143934(_0xdf6361,_0x52d4a4))return _0xf170b3['_joinSuggestions'](_0x5891ae,_0x3b5ee2),_0x27e998['delete'](_0x3b5ee2),!0x0;if(!_0x577e12&&_0x143934(_0x52d4a4,_0xdf6361))return _0xf170b3['_joinSuggestions'](_0x3b5ee2,_0x5891ae),_0x27e998['delete'](_0x5891ae),!0x0;}return!0x1;}}['_joinSuggestions'](_0x45b528,_0x9bbd72){if(_0x45b528['isMultiRange']){for(const _0x2e855d of _0x9bbd72['getRanges']())_0x45b528['addRange'](_0x2e855d);}else{const _0x36c893=_0x9bbd72['getFirstRange']()['end'];this['_setSuggestionRange'](_0x45b528,this['_model']['createRange'](_0x45b528['getFirstRange']()['start'],_0x36c893));}_0x9bbd72['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2ec137,_0x10eb60){const _0x33634a=_0x2ec137['startsWith']('format')||_0x2ec137['startsWith']('attribute')?'FORMATTING':_0x2ec137['toUpperCase']();return o(this['editor']['locale'],_0x10eb60+'_'+_0x33634a+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0xcaa43d=this['editor'];if(!_0xcaa43d['ui'])return;const {ariaLiveAnnouncer:_0x25958b}=_0xcaa43d['ui'];_0x5aca81(this['_model'],({left:_0x34c481,entered:_0x58a9fa})=>{for(const _0x70a7a of _0x34c481){const {group:_0x169371,type:_0x5ba5b0}=this['_splitMarkerName'](_0x70a7a['name']);if('suggestion'===_0x169371){_0x25958b['announce'](this['_getMarkerAnnouncementText'](_0x5ba5b0,'LEAVE'));break;}}for(const _0x35827f of _0x58a9fa){const {group:_0x2d9f3a,type:_0x4e2fbb}=this['_splitMarkerName'](_0x35827f['name']);if('suggestion'===_0x2d9f3a){_0x25958b['announce'](this['_getMarkerAnnouncementText'](_0x4e2fbb,'ENTER'));break;}}});}['_processAttributeChanges'](_0x160134){if(this['_recordAttributeSuggestions'])return!0x1;const _0x13873e=this['editor'],_0x554bef=_0x13873e['model']['document']['differ']['getChanges']();if(0x0==_0x554bef['length'])return!0x1;const _0x4a3bd8=[],_0x3f2d26=_0x554bef['filter'](_0x4c4e48=>'attribute'==_0x4c4e48['type']),_0x52fa99=_0x554bef['filter'](_0x126551=>'insert'==_0x126551['type']&&'$text'!=_0x126551['name']),_0x3425ec=_0x554bef['filter'](_0x3c1d=>'remove'==_0x3c1d['type']&&'$text'!=_0x3c1d['name']);for(const _0x5877d4 of _0x3f2d26)_0x4a3bd8['push']({'key':_0x5877d4['attributeKey'],'newValue':_0x5877d4['attributeNewValue'],'oldValue':_0x5877d4['attributeOldValue'],'range':Ot(_0x5877d4['range'],_0x13873e['model'])});for(const _0x367185 of _0x52fa99){const _0x2e8c4c=_0x3425ec['find'](_0x262520=>_0x262520['position']['isEqual'](_0x367185['position']));_0x2e8c4c&&_0x4a3bd8['push']({'key':m,'newValue':_0x367185['name'],'oldValue':_0x2e8c4c['name'],'range':_0x13873e['model']['createRangeOn'](_0x367185['position']['nodeAfter'])});}return 0x0!=_0x4a3bd8['length']&&this['_reduceExistingSuggestions'](_0x160134,_0x4a3bd8);}['_processAttributeSuggestions'](_0x5623a9){let _0x4f8053=!0x1;const _0x1bc1b6=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xaa1b8=>_0xaa1b8['data']['newRange']&&_0xaa1b8['name']['startsWith']('suggestion:attribute:'));for(const _0xdffcfa of _0x1bc1b6){const {subType:_0x42fdce,id:_0x5ab3bd}=this['_splitMarkerName'](_0xdffcfa['name']),_0x58a294=_0x42fdce['split']('|')[0x0];for(const _0x39b360 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x39b360['id']!=_0x5ab3bd&&'attribute'==_0x39b360['type']&&_0x39b360['data']&&_0x39b360['data']['key']==_0x58a294&&_0x39b360['getFirstRange']()['isIntersecting'](_0xdffcfa['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x39b360,_0xdffcfa['data']['newRange'],_0x5623a9),_0x4f8053=!0x0);}return _0x4f8053;}['_recordAttributeChanges'](_0x20711d){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x20711d();}['_isRegisteredAttribute'](_0xa0f3f0){const _0x11d51a=this['_isBlockAttribute'](_0xa0f3f0),_0x1b276f=this['_inlineAttributeKeys']['has'](_0xa0f3f0);return _0x11d51a||_0x1b276f;}['_reduceExistingSuggestions'](_0xf8429,_0x500a01){if(0x0==_0x500a01['length'])return!0x1;let _0x37def7=!0x1;for(const _0x1829cd of _0x500a01){const _0x369974=this['_findSuggestions'](_0x1829cd['range'],'attribute')['filter'](_0x234645=>!_0x234645['meta']['isNextTo'])['map'](_0x48079d=>_0x48079d['suggestion']),_0x18a174=_0x2f7a2e({'newValue':_0x1829cd['newValue']});_0x369974['filter'](_0x275bde=>{const [_0x535e2e,_0x13e595]=_0x275bde['subType']['split']('|');return _0x535e2e==_0x1829cd['key']&&_0x13e595!=_0x18a174;})['forEach'](_0x2ed6cc=>{this['_reduceSuggestionAttributeRange'](_0x2ed6cc,_0x1829cd['range'],_0xf8429),_0x37def7=!0x0;});}return _0x37def7;}['_reduceSuggestionAttributeRange'](_0x4e0444,_0x427c58,_0x4ce67f){const _0x1d00c6=_0x4e0444['getFirstRange']()['getDifference'](_0x427c58);0x0!==_0x1d00c6['length']?0x1!==_0x1d00c6['length']?this['_breakSuggestionMarker'](_0x4e0444,_0x427c58['start'],_0x427c58['end']):this['_setSuggestionRange'](_0x4e0444,_0x1d00c6[0x0]):_0x4ce67f['removeMarker'](_0x4e0444['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2cff88){this['_editor']=_0x2cff88,this['_model']=_0x2cff88['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5e1fc1,_0x3c12b6,_0x4f6901,_0x1e846a,_0x12d1ce,_0x52109a){return new u(this['_model'],{'type':_0x5e1fc1,'subType':_0x3c12b6,'id':_0x4f6901,'author':_0x1e846a,'creator':_0x1e846a,'attributes':_0x12d1ce,'onAttributesChange':_0x52109a,'onAccept':(..._0x313ae5)=>this['getSuggestionCallback'](_0x5e1fc1,_0x3c12b6,'accept')(..._0x313ae5),'onDiscard':(..._0x173412)=>this['getSuggestionCallback'](_0x5e1fc1,_0x3c12b6,'discard')(..._0x173412)});}['registerCustomCallback'](_0x1da44b,_0x12dab3,_0x5d7d5b,_0x271c72){const _0x43401b=_0x1da44b+':'+_0x12dab3+':'+_0x5d7d5b;this['_customCallbacks']['set'](_0x43401b,_0x271c72);}['getSuggestionCallback'](_0xbc73fc,_0x4e0a7c,_0x3061c0){const _0x33d681=_0xbc73fc+':'+_0x4e0a7c+':'+_0x3061c0;return this['_customCallbacks']['get'](_0x33d681)||this['_defaultCallbacks']['get'](_0xbc73fc+':'+_0x3061c0);}['_registerDefaultCallbacks'](){const _0x3ea0f9=()=>!0x1,_0xcfa519=_0x5dbbf4=>{_0x5dbbf4['sort']((_0x1e5448,_0x31a4ee)=>_0x1e5448['start']['isBefore'](_0x31a4ee['start'])?0x1:-0x1),this['_model']['change'](_0x15558d=>{for(const _0x49a52d of _0x5dbbf4){let _0x23ff9c;_0x23ff9c=_0x49a52d['end']['isAtEnd']&&_0x49a52d['end']['parent']==_0x49a52d['start']['nodeAfter']?_0x15558d['createSelection'](_0x49a52d['start']['nodeAfter'],'on'):_0x15558d['createSelection'](_0x49a52d),this['_model']['deleteContent'](_0x23ff9c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1df7a3=(_0x1b744c,_0x343857)=>{_0x343857&&this['_model']['change'](_0x39d5c7=>{const {commandName:_0x8d947c,commandParams:_0x12f3d4=[]}=_0x343857,_0x2fe1e0=_0x1b744c['map'](_0x10d30a=>(Tt(_0x10d30a)&&(_0x10d30a=this['_model']['createRange'](_0x10d30a['end'])),_0x10d30a))['filter'](_0xa3211e=>'$graveyard'!==_0xa3211e['root']['rootName']);if(_0x2fe1e0['length']<0x1)return;const _0x2faf8b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x575ab4=>_0x13a6f6['fromRange'](_0x575ab4));_0x39d5c7['setSelection'](_0x2fe1e0);for(const _0x26f7dd of this['_editor']['commands']['commands']())_0x26f7dd['refresh']();_0x12f3d4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x8d947c,..._0x12f3d4);const _0x12f37f=_0x2faf8b['filter'](_0x3fe66f=>'$graveyard'!=_0x3fe66f['root']['rootName']);_0x12f37f['length']>0x0&&_0x39d5c7['setSelection'](_0x12f37f);for(const _0x297280 of _0x2faf8b)_0x297280['detach']();});},_0x21f3e5=(_0x8ebd89,_0x401276)=>0x1==_0x8ebd89['length']&&0x1==_0x401276['length']&&_0x8ebd89[0x0]['end']['isEqual'](_0x401276[0x0]['start']),_0x23bda2=(_0x297c0b,_0x16eea7,_0x525991,_0x3d0e12)=>Ft(_0x297c0b,_0x16eea7,_0x525991,_0x3d0e12,this['_model'])?[_0x297c0b,_0x16eea7]:Ft(_0x16eea7,_0x297c0b,_0x3d0e12,_0x525991,this['_model'])?[_0x16eea7,_0x297c0b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3ea0f9),this['_defaultCallbacks']['set']('insertion:discard',_0xcfa519),this['_defaultCallbacks']['set']('insertion:join',_0x21f3e5),this['_defaultCallbacks']['set']('insertion:chain',_0x23bda2),this['_defaultCallbacks']['set']('deletion:accept',_0xcfa519),this['_defaultCallbacks']['set']('deletion:discard',_0x3ea0f9),this['_defaultCallbacks']['set']('deletion:join',_0x21f3e5),this['_defaultCallbacks']['set']('deletion:chain',_0x23bda2),this['_defaultCallbacks']['set']('formatInline:accept',_0x1df7a3),this['_defaultCallbacks']['set']('formatInline:discard',_0x3ea0f9),this['_defaultCallbacks']['set']('formatInline:join',_0x21f3e5),this['_defaultCallbacks']['set']('formatInline:chain',_0x3ea0f9),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1df7a3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3ea0f9),this['_defaultCallbacks']['set']('formatBlock:join',_0x21f3e5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3ea0f9),this['_defaultCallbacks']['set']('attribute:accept',_0x3ea0f9),this['_defaultCallbacks']['set']('attribute:discard',(_0x42a011,_0x5654b3)=>{if(!_0x5654b3)return;const _0x24ffd7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2af147=>{if(_0x5654b3['key']==m)for(const _0x1181a1 of _0x42a011){const _0x53a837=_0x1181a1['start']['nodeAfter'],_0x31dbe4=_0x5654b3['oldValue'];_0x2af147['rename'](_0x53a837,_0x31dbe4);}else{if(_0x24ffd7['_isBlockAttribute'](_0x5654b3['key'])){for(const _0x1d9eea of _0x42a011)void 0x0!==_0x5654b3['oldValue']?_0x2af147['setAttribute'](_0x5654b3['key'],_0x5654b3['oldValue'],_0x1d9eea['start']['nodeAfter']):_0x2af147['removeAttribute'](_0x5654b3['key'],_0x1d9eea['start']['nodeAfter']);}else{for(const _0x2f9f86 of _0x42a011)_0x5654b3['oldValue']?_0x2af147['setAttribute'](_0x5654b3['key'],_0x5654b3['oldValue'],_0x2f9f86):_0x2af147['removeAttribute'](_0x5654b3['key'],_0x2f9f86);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x21f3e5);}}function Rt(_0x592407,_0x554d7b,_0x5a23b2){for(const _0x4f30e9 of _0x554d7b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4f30e9['root']==_0x4f30e9)return!0x1;if(!_0x5a23b2['containsItem'](_0x4f30e9))return!0x1;if(_0x592407['isObject'](_0x4f30e9)||_0x592407['isLimit'](_0x4f30e9))return!0x0;}return!0x1;}function Tt(_0x36e4ea){return _0x36e4ea['end']['parent']==_0x36e4ea['start']['nodeAfter']&&_0x36e4ea['end']['isAtStart'];}function Et(_0x211c7a,_0x1ade25,_0x1447b3,_0x35eddd){const _0x14a0a6=_0x658832=>!_0x658832['item']['is']('$textProxy')&&!_0x35eddd['isObject'](_0x658832['item']),_0x5b39e0=_0x211c7a['start']['getLastMatchingPosition'](_0x14a0a6),_0xa7084b=_0x211c7a['end']['getLastMatchingPosition'](_0x14a0a6,{'direction':'backward'});return(!_0x211c7a['start']['isEqual'](_0x5b39e0)||!_0x211c7a['end']['isEqual'](_0xa7084b))&&(_0x5b39e0['isBefore'](_0xa7084b)?_0x1447b3['updateMarker'](_0x1ade25,{'range':_0x1447b3['createRange'](_0x5b39e0,_0xa7084b)}):_0x1447b3['removeMarker'](_0x1ade25),!0x0);}function Vt(_0x3f0ba6){return _0x2f7a2e(_0x3f0ba6);}function Ut(_0x286a2b){const _0x1fed2c=_0x286a2b['start']['nodeAfter'];return _0x1fed2c&&_0x1fed2c['is']('element');}function Ot(_0x53a35b,_0x25c443){return null==_0x53a35b['end']['nodeBefore']&&_0x53a35b['end']['parent']==_0x53a35b['start']['nodeAfter']?Gt(_0x53a35b['start']['nodeAfter'],_0x25c443):_0x53a35b;}function Gt(_0xb447c3,_0x39ce7c){const _0x42829d=_0x39ce7c['schema']['isObject'](_0xb447c3)||_0x39ce7c['schema']['isSelectable'](_0xb447c3);return _0x39ce7c['createRange'](_0x39ce7c['createPositionAt'](_0xb447c3,'before'),_0x42829d?_0x39ce7c['createPositionAfter'](_0xb447c3):_0x39ce7c['createPositionAt'](_0xb447c3,'end'));}function Ft(_0x4ffe0b,_0x3c463c,_0x5d9de1,_0x32338a,_0x312809){if(!Pt(_0x4ffe0b,_0x3c463c))return!0x1;if(_0x5d9de1['end']['isEqual'](_0x32338a['start']))return!0x0;if(_0x4ffe0b['type']!=_0x3c463c['type'])return!0x1;if(!_0x5d9de1['end']['isTouching'](_0x32338a['start']))return!0x1;const _0xfb2f10=_0x312809['createRange'](_0x5d9de1['end'],_0x32338a['start'])['getWalker']();for(const _0x1b1e0b of _0xfb2f10)if(['elementStart','elementEnd']['includes'](_0x1b1e0b['type'])&&_0x312809['schema']['isLimit'](_0x1b1e0b['item']))return!0x1;return!0x0;}function Pt(_0x181ef2,_0x580223,_0x592bb8=[]){return!(!_0x181ef2['_isDataLoaded']||!_0x580223['_isDataLoaded'])&&_0xd50537(Bt(_0x181ef2['attributes'],_0x592bb8),Bt(_0x580223['attributes'],_0x592bb8));}function Lt(_0x1e677f,_0x2f1405){const _0x1ea795=Ht(_0x1e677f['attributes']),_0x3e1ba6=Ht(_0x2f1405);if(!_0x1e677f['_isDataLoaded'])return!0x1;for(const _0x13630c of Object['keys'](_0x3e1ba6))if(!_0xd50537(_0x1ea795[_0x13630c],_0x3e1ba6[_0x13630c]))return!0x1;return!0x0;}function Ht(_0x392dc4){const _0x30773e=Object['assign']({},_0x392dc4);return delete _0x30773e['skipNestingCheck'],delete _0x30773e['tablePasteChainId'],_0x30773e;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x23f0a0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x8cd326,_0x5758cc,_0x39054b,_0x137705){super(),this['model']=_0x5758cc,this['view']=_0x39054b,this['commentThreadController']=_0x137705,this['_editor']=_0x8cd326,this['_acceptCommand']=_0x8cd326['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x8cd326['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x47ab90,_0x507001)=>_0x47ab90||_0x507001),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4ba3af=>_0x4ba3af&&this['_editor']['model']['canEditAt'](_0x5758cc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x175c84=>_0x175c84&&this['_editor']['model']['canEditAt'](_0x5758cc['getRanges']())),this['_pendingAction']=null,_0x39054b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x39054b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x39054b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x39054b,'change:isDirty',()=>{_0x39054b['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 _0x2ea224=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2ea224);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x2e678f{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x410238,_0x111acc,_0x393cfc,_0x5a195e){super(_0x410238),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x111acc['authoredAt']),this['bind']('authoredAt')['to'](_0x111acc),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x111acc,this['_localUser']=_0x393cfc,this['_config']=_0x5a195e,_0x5a195e['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:_0x4947da}=this['_config'];this['commentsListView']=new _0x4947da(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',_0x264b4d=>_0x264b4d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xa3b723,_0x5d2d7b)=>_0xa3b723||!!_0x5d2d7b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4c0c48}=this['_config'],_0x5521bc=new _0x4c0c48(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x49fa29=_0x5521bc['commentInputView'];return _0x5521bc['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x49fa29,'value',(_0x384f98,_0x194153,_0x324b5e)=>!!_0x324b5e||_0x384f98&&!_0x194153),_0x49fa29['on']('submit',(_0x490926,_0x4c0019)=>{this['fire']('addComment',_0x4c0019),_0x49fa29['editor']['setData']('');}),_0x49fa29['on']('cancel',()=>this['focus']()),_0x49fa29['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5521bc;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x4423b4,_0x4609dd,_0x747cd3,_0x302064){super(_0x4423b4,_0x4609dd,_0x747cd3,_0x302064),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3fc85b=>_0x3fc85b&&_0x3fc85b[0x0]?_0x3fc85b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5254b3,_0x1edb05)=>{let _0x517c13='';for(const _0x5c53b2 of _0x5254b3)_0x517c13+='<p>'+ds(_0x5c53b2['content'],_0x5c53b2['color'])+'</p>';return _0x1edb05?_0x517c13:_0x4facb6(_0x517c13,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x4423b4,'Accept\x20suggestion'),_0x5479fd['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x4423b4,'Discard\x20suggestion'),_0x5479fd['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x37726c(_0x4423b4,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x6e99b4=this['bindTemplate'],_0x3f8b60=[{'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':_0x6e99b4['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x6e99b4['to']('authoredAt',_0x5434bc=>this['_config']['formatDateTime'](_0x5434bc))}]}]},{'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']&&_0x3f8b60['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x52d6d5={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x6e99b4['if']('isActive','ck-suggestion-wrapper--active'),_0x6e99b4['to']('type',_0x5dfad5=>'ck-suggestion-'+_0x5dfad5),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':_0x3f8b60}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x52d6d5['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)),_0x52d6d5;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x30714e,_0xf62f4,_0x381f19)=>{this['_descriptionElement']['innerHTML']=_0x381f19;});}['_createButton'](_0x22f27f,_0x3f1512,_0x54fd29,_0x2725f9,_0x386320){const _0x5b3cab=new _0x1a05a2(this['locale']);return _0x5b3cab['set']({'label':_0x22f27f,'icon':_0x3f1512,'tooltip':!0x0,'tooltipPosition':_0x386320}),_0x5b3cab['extendTemplate']({'attributes':{'class':_0x54fd29}}),_0x5b3cab['on']('execute',()=>{this['fire'](_0x2725f9,this['_model']['id']);}),_0x5b3cab;}['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(_0x38cfd8,_0x46ede6){let _0xabd0bf='';return _0xabd0bf+=_0x38cfd8['split']('*')['map']((_0xb4856e,_0x6b12e2)=>_0x6b12e2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xb4856e)+'</span>':us(_0xb4856e))['join'](''),_0x46ede6&&(_0xabd0bf+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x46ede6['value']+'\x22\x20title=\x22'+_0x46ede6['title']+'\x22></span>'),_0xabd0bf;}function us(_0x3d2820){const _0x475a36=document['createElement']('span');return _0x475a36['innerText']=_0x3d2820,_0x475a36['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 _0x2195d0{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x19909f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x3bc67d){super(_0x3bc67d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x20ba1a=this['editor']['config'];_0x20ba1a['define']('trackChanges.SuggestionThreadView',ne),_0x20ba1a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x20ba1a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1ec3f9,_0x93e423){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3a5871,_0x3aba85]of this['_handleControllerBuffer']){const _0x5a2136=this['_suggestionToController']['has'](_0x3a5871);_0x5a2136||_0x3aba85?_0x5a2136&&_0x3aba85&&this['_destroyController'](_0x3a5871):this['_initializeController'](_0x3a5871);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1ec3f9,_0x93e423);}['init'](){const _0x4e8f02=this['editor'],_0x33e265=_0x4e8f02['plugins']['get']('TrackChangesEditing'),_0xe41ae8=_0x4e8f02['plugins']['get']('Annotations'),_0x5a8b40=_0x4e8f02['plugins']['get']('EditorAnnotations'),_0x2ee433=_0x4e8f02['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5a8b40['addSourceCollector'](()=>{const _0x127e22=[];for(const [_0x3e1170,_0xcafb1d]of Array['from'](this['_suggestionToController'])){const _0x3b8740=_0x3e1170['getAllAdjacentSuggestions'](),_0x3536aa=[];for(const _0x45d337 of _0x3b8740){if(!_0x45d337['isInContent'])continue;if(_0x45d337['isMultiRange']){_0x3536aa['push'](..._0x45d337['getRanges']());continue;}const _0x1a0083=_0x45d337['getFirstRange']();if(_0x3536aa['length']>0x0){const _0x56d0d5=_0x3536aa[0x0]['getJoined'](_0x1a0083);if(_0x56d0d5){_0x3536aa[0x0]=_0x56d0d5;continue;}}_0x3536aa['push'](_0x1a0083);}_0x127e22['push']([_0xcafb1d['view'],_0x3536aa]);}return _0x127e22;}),this['listenTo'](_0x33e265,'suggestionLoaded',(_0x42c355,_0x365a1a)=>{this['listenTo'](_0x365a1a,'change:previous',(_0x46b24e,_0xe5b103,_0x2ed051,_0x7a9023)=>{_0x365a1a['isInContent']&&(null==_0x2ed051?(this['_updateController'](_0x7a9023['head']),this['_handleSuggestionControllerDelayed'](_0x365a1a,!0x1)):(this['_updateController'](_0x2ed051['head']),null==_0x7a9023&&this['_handleSuggestionControllerDelayed'](_0x365a1a,!0x0)));}),null!==_0x365a1a['previous']?this['_updateController'](_0x365a1a['head']):this['_handleSuggestionControllerDelayed'](_0x365a1a,!0x1);}),this['listenTo'](_0x33e265,'suggestionUnloaded',(_0x16fa21,_0x33ad08,_0x120740)=>{this['stopListening'](_0x33ad08,'change:previous'),this['_handleControllerBuffer']['delete'](_0x33ad08),this['_suggestionToController']['has'](_0x33ad08)&&this['_destroyController'](_0x33ad08),_0x120740&&this['_updateController'](_0x120740['head']);}),this['listenTo'](_0x33e265,'suggestionChanged',(_0x2accd7,_0x3b7380)=>{this['_updateController'](_0x3b7380);}),this['listenTo'](_0xe41ae8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2ee433,'addComment',(_0x413b3b,{threadId:_0x2d4224,isFromAdapter:_0x21912b})=>{if(_0x21912b||!_0x33e265['hasSuggestion'](_0x2d4224))return;const _0x28d24f=_0x33e265['getSuggestion'](_0x2d4224);this['_suggestionToController']['get'](_0x28d24f)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4595a4=this['editor']['plugins']['get']('Annotations'),_0x2dca1e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5951b3=Array['from'](_0x4595a4['activeAnnotations'],_0x38902c=>_0x38902c['innerView'])['filter'](_0x5d3d96=>this['_viewToController']['has'](_0x5d3d96)),_0x56531b=[];for(const _0x4c8a5e of _0x5951b3){const _0x3a53e3=this['_viewToController']['get'](_0x4c8a5e)['model']['getAllAdjacentSuggestions']();_0x56531b['push'](..._0x3a53e3['reduce']((_0x37a014,_0x1776f9)=>[..._0x37a014,..._0x1776f9['getMarkerNames']()],[]));}_0x2dca1e['activeMarkers']=_0x56531b;}['_addUIComponentsToFactory'](){const _0x454709=this['editor'],_0x1c399d=_0x454709['locale'],_0x353d60=o(_0x1c399d,'Track\x20changes'),_0x3755d4=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x353d60,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1c399d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1c399d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1c399d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1c399d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3444be of _0x3755d4)if(ae(_0x3444be)){const _0x3de423=_0x454709['commands']['get'](_0x3444be['model']['commandName']);_0x3444be['model']['bind']('isOn','isEnabled')['to'](_0x3de423,'value','isEnabled');}_0x454709['ui']['componentFactory']['add']('trackChanges',_0x17a222=>this['_createToolbarButton'](_0x17a222,_0x3755d4,_0x353d60)),_0x454709['ui']['componentFactory']['add']('menuBar:trackChanges',_0x56ad66=>this['_createMenuBarMenu'](_0x56ad66,_0x3755d4,_0x353d60));}['_createToolbarButton'](_0x2639cc,_0x31569a,_0x145e50){const _0x4098e5=zt(_0x2639cc,Zt),_0x2ae4c1=this['editor']['commands']['get']('trackChanges');_0x4098e5['buttonView']['set']({'tooltip':_0x145e50,'label':_0x145e50,'icon':ie}),_0x4098e5['buttonView']['bind']('isOn')['to'](_0x2ae4c1,'value'),_0x4098e5['buttonView']['on']('execute',()=>{_0x2ae4c1['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x4098e5,_0x31569a,{'role':'menu'});const _0x1cb0dd=[];for(const _0x2eb35d of _0x31569a)ae(_0x2eb35d)&&_0x1cb0dd['push'](this['editor']['commands']['get'](_0x2eb35d['model']['commandName']));const _0x5cf0e3=_0x4098e5['buttonView'];return _0x5cf0e3['actionView']['unbind']('isEnabled'),_0x5cf0e3['arrowView']['unbind']('isEnabled'),_0x5cf0e3['actionView']['bind']('isEnabled')['to'](_0x2ae4c1,'isEnabled'),_0x5cf0e3['arrowView']['bind']('isEnabled')['toMany'](_0x1cb0dd,'isEnabled',(..._0x5551c5)=>_0x5551c5['some'](_0x4f92dd=>_0x4f92dd)),_0x4098e5['on']('execute',_0x4f7a4f=>{this['editor']['execute'](_0x4f7a4f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4098e5;}['_createMenuBarMenu'](_0x4e38ad,_0x1fd442,_0x1dc236){const _0x5f4d7c=new Kt(_0x4e38ad),_0x3f4ea4=this['editor']['commands']['get']('trackChanges');_0x5f4d7c['buttonView']['set']({'label':_0x1dc236,'icon':ie});const _0x1af965=new Qt(_0x4e38ad);for(const _0x5c9508 of _0x1fd442){if('separator'==_0x5c9508['type']){_0x1af965['items']['add'](new Jt(_0x4e38ad));continue;}const _0x43d100=new Xt(_0x4e38ad,_0x5f4d7c),_0x10fd3c=new Yt(_0x4e38ad),_0x24195d=_0x5c9508['model'];_0x10fd3c['bind'](...Object['keys'](_0x24195d))['to'](_0x24195d),_0x10fd3c['delegate']('execute')['to'](_0x5f4d7c),_0x10fd3c['on']('execute',()=>{this['editor']['execute'](_0x24195d['commandName']),this['editor']['editing']['view']['focus']();}),_0x43d100['children']['add'](_0x10fd3c),_0x1af965['items']['add'](_0x43d100);}return _0x5f4d7c['bind']('isEnabled')['to'](_0x3f4ea4,'isEnabled'),_0x5f4d7c['panelView']['children']['add'](_0x1af965),_0x5f4d7c;}['_initializeController'](_0x1bdb3f){const _0x493f01=this['editor'],_0x58aa51=_0x493f01['config'],_0x4bb994=_0x493f01['plugins']['get']('Annotations'),_0x3acc39=_0x493f01['plugins']['get']('CommentsRepository'),_0x3a1b6d=_0x493f01['plugins']['get']('EditorAnnotations'),_0x57f09b=_0x493f01['plugins']['get'](_0x19909f)['me'],_0x3266f5=_0x58aa51['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4237a2,CommentThreadInputView:_0x301edd}=_0x493f01['plugins']['get']('CommentsUI');let _0x58508a,_0x3631b6;this['_annotationViews']['has'](_0x1bdb3f['id'])?(_0x3631b6=this['_annotationViews']['get'](_0x1bdb3f['id']),_0x58508a=_0x3631b6['mainView']):(_0x58508a=new _0x3266f5(_0x493f01['locale'],_0x1bdb3f,_0x57f09b,{'disableComments':this['_disableComments'],'editorConfig':_0x58aa51['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x58aa51['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x58aa51['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x58aa51['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2f8068(_0x58aa51['get']('locale')),'CommentView':_0x58aa51['get']('comments')['CommentView'],'CommentsListView':_0x4237a2,'CommentThreadInputView':_0x301edd}),_0x58508a['acceptButton']['on']('execute',()=>{_0x493f01['editing']['view']['focus']();}),_0x58508a['discardButton']['on']('execute',()=>{_0x493f01['editing']['view']['focus']();}),_0x3631b6=_0x4bb994['createAnnotationView'](this['editor']['locale'],_0x58508a),_0x3631b6['bind']('isDirty')['to'](_0x58508a,'isDirty'),_0x3631b6['bind']('length')['to'](_0x58508a),_0x3631b6['bind']('type')['to'](_0x58508a,'type',_0x5a8197=>'suggestion-'+_0x5a8197),this['_annotationViews']['set'](_0x1bdb3f['id'],_0x3631b6));const _0x181353=_0x3acc39['createCommentThreadController'](_0x1bdb3f['commentThread'],_0x58508a),_0x50eba2=new oe(_0x493f01,_0x1bdb3f,_0x58508a,_0x181353),_0x4a942b=_0x1bdb3f['getAllAdjacentSuggestions']()['filter'](_0x2a9ae7=>_0x2a9ae7['isInContent']);_0x58508a['descriptionParts']=_0x493f01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4a942b),this['_suggestionToController']['set'](_0x1bdb3f,_0x50eba2),this['_viewToController']['set'](_0x58508a,_0x50eba2);const _0x8f91fb=_0x4bb994['createAnnotation']({'view':_0x3631b6,'target':()=>{const _0x2d5a7b=[],_0x1c6937=_0x1bdb3f['getAllAdjacentSuggestions']()['filter'](_0x544cc7=>_0x544cc7['isInContent']);for(const _0x455599 of _0x1c6937)_0x2d5a7b['push'](..._0x455599['getMarkers']());return _0x2ea60a(_0x493f01['editing'],_0x2d5a7b);},'type':()=>'suggestion-'+_0x50eba2['view']['type']});_0x3acc39['_bindAnnotationToEditors'](_0x58508a,_0x8f91fb),_0x4bb994['add'](_0x8f91fb),_0x3a1b6d['registerAnnotation'](_0x8f91fb);}['_destroyController'](_0x4762e1){const _0x34f627=this['editor']['plugins']['get']('CommentsRepository'),_0x380b80=this['editor']['plugins']['get']('Annotations'),_0x8c4c99=this['_suggestionToController']['get'](_0x4762e1),_0x1800b4=_0x8c4c99['view'],_0x567fc0=_0x380b80['getByInnerView'](_0x1800b4);_0x34f627['_unbindEditors'](_0x1800b4),_0x567fc0&&_0x380b80['remove'](_0x567fc0),this['_suggestionToController']['delete'](_0x4762e1),this['_viewToController']['delete'](_0x1800b4),_0x8c4c99['destroy']();}['_updateController'](_0x4dcba3){if(!_0x4dcba3['isInContent']||!this['_suggestionToController']['has'](_0x4dcba3))return;const _0x935754=this['editor']['plugins']['get']('TrackChangesEditing'),_0x500c7a=this['_suggestionToController']['get'](_0x4dcba3),_0x597be2=_0x4dcba3['getAllAdjacentSuggestions']();_0x500c7a['view']['descriptionParts']=_0x935754['descriptionFactory']['getDescriptions'](_0x597be2);}['destroy'](){for(const _0x3ff4b0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3ff4b0);for(const _0x2d8126 of this['_annotationViews']['values']())_0x2d8126['mainView']['destroy']();super['destroy']();}}function ae(_0x4e6cba){return'model'in _0x4e6cba;}class k extends _0x2195d0{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x36c473){this['editor']['plugins']['get'](p)['adapter']=_0x36c473;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x554833){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x554833);}['getSuggestions']({skipNotAttached:_0x3ba686=!0x1,toJSON:_0x3c2fc9=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3ba686,'toJSON':_0x3c2fc9});}['getSuggestion'](_0x54ec03){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x54ec03);}}const T=['Pagination'];class P extends _0x2195d0{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3c7f19=this['editor'];if(_0x3c7f19['config']['define']('trackChangesData.editorCreator',_0x53a371=>{const _0x4907ec=_0x3c7f19['model']['document']['getRootNames']()['reduce']((_0x1969d1,_0x4c0433)=>(_0x1969d1[_0x4c0433]='',_0x1969d1),{});return _0x3c7f19['constructor']['create'](_0x4907ec,_0x53a371);}),'function'!=typeof _0x3c7f19['config']['get']('trackChangesData')['editorCreator'])throw new _0x417f34('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2a98c2){return N(this['editor'],!0x0,_0x2a98c2);}['getDataWithDiscardedSuggestions'](_0x28b008){return N(this['editor'],!0x1,_0x28b008);}}class D extends _0x2195d0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x30eccd){super(_0x30eccd),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(_0xadc71f){return void 0x0!==_0xadc71f['getRootsAttributes'];}async function N(_0xbc2ad5,_0x3ee1a2,_0x323542){const _0x550804=_0x3d82c6(_0xbc2ad5,T);_0x550804['plugins']['push'](p,D),_0x550804['rootsAttributes']=v(_0xbc2ad5)?_0xbc2ad5['getRootsAttributes']():void 0x0;const _0x8238f5=document['createDocumentFragment'](),_0x521351=_0xbc2ad5['config']['get']('trackChangesData')['editorCreator'],_0x41548c=await _0x521351(_0x550804,()=>function(_0xcc4008){const _0x14fa20=document['createElement']('div');return _0xcc4008['appendChild'](_0x14fa20),_0x14fa20;}(_0x8238f5));!function(_0x3c167a,_0xbde479){const _0x2351d3=_0x3c167a['model']['document']['getRootNames']()['reduce']((_0x47e697,_0x279183)=>(_0x47e697[_0x279183]=_0x3c167a['data']['get']({'rootName':_0x279183}),_0x47e697),{}),_0x89a4e0=_0x3c167a['plugins']['get']('Users')['users']['map'](_0x338b79=>({'id':_0x338b79['id'],'name':_0x338b79['name']})),_0x105250=_0x3c167a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x483e47=_0x3c167a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1c7fbb=_0xbde479['plugins']['get']('Users'),_0x356559=_0xbde479['plugins']['get']('TrackChangesEditing'),_0x5a266d=_0xbde479['plugins']['get']('CommentsRepository');for(const _0x3fe56c of _0x89a4e0)_0x1c7fbb['getUser'](_0x3fe56c['id'])||_0x1c7fbb['addUser'](_0x3fe56c);_0x1c7fbb['me']||_0x1c7fbb['useAnonymousUser']();for(const _0x158def of _0x483e47)_0x5a266d['addCommentThread'](_0x158def);for(const _0x295308 of _0x105250)_0x356559['addSuggestionData'](_0x295308);_0xbde479['data']['set'](_0x2351d3);}(_0xbc2ad5,_0x41548c),_0x41548c['execute'](_0x3ee1a2?'acceptAllSuggestions':'discardAllSuggestions');const _0x332aac=v(_0x41548c)?_0x41548c['getFullData'](_0x323542):_0x41548c['data']['get'](_0x323542);return await _0x41548c['destroy'](),_0x332aac;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|