@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240720.0 → 0.0.0-nightly-20240722.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
|
-
_0x28acc2(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x527a38,_0x29e851){super(),this['id']=_0x29e851['id'],this['type']=_0x29e851['type'],this['subType']=_0x29e851['subType']||null,this['author']=_0x29e851['author'],this['creator']=_0x29e851['creator']||_0x29e851['author'],this['isExternal']=Boolean(_0x29e851['attributes']&&_0x29e851['attributes']['@external']),this['data']=null,this['_model']=_0x527a38,this['_onAccept']=_0x29e851['onAccept'],this['_onDiscard']=_0x29e851['onDiscard'],this['_onAttributesChange']=_0x29e851['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x29e851['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 _0xfb778f=this;for(;_0xfb778f['previous'];)_0xfb778f=_0xfb778f['previous'];return _0xfb778f;}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'](_0xb43db7){this['_markerNames']['add'](_0xb43db7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x114598=>this['_model']['markers']['get'](_0x114598))['filter'](_0x4db2e8=>_0x4db2e8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x56ba9e=>{for(const _0x125370 of this['getMarkers']())_0x56ba9e['removeMarker'](_0x125370);}),this['_markerNames']['clear']();}['removeMarker'](_0x5cdb86){this['_model']['change'](_0x48880e=>{_0x48880e['removeMarker'](_0x5cdb86);}),this['_markerNames']['delete'](_0x5cdb86);}['addRange'](_0x340e3a){const _0x1ebf82='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1ebf82),this['_model']['change'](_0x445e50=>{_0x445e50['addMarker'](_0x1ebf82,{'range':_0x340e3a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1659c5){for(const _0xc6905a of this['getRanges']())if(_0xc6905a['isIntersecting'](_0x1659c5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4ed4fb=>_0x4ed4fb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x759ca9,_0x243da0)=>[..._0x759ca9,..._0x243da0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x18294b=this['getRanges']();if(0x1!=_0x18294b['length'])return null;const _0x491d31=_0x18294b[0x0],_0x2017a9=_0x491d31['start']['nodeAfter'],_0x5478e1=_0x491d31['end']['nodeBefore'];return _0x2017a9 instanceof _0x2f484a?_0x2017a9!=_0x5478e1?null:_0x2017a9: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 _0x1b90d5=[];let _0x100a65=this['head'];for(;_0x100a65;)_0x1b90d5['push'](_0x100a65),_0x100a65=_0x100a65['next'];return _0x1b90d5;}['setAttribute'](_0x256aa5,_0x2ca998){const _0x45311f=_0x7c6eac(this['attributes']);_0x3e0bf6(_0x45311f,_0x256aa5,_0x2ca998),_0x35c1e7(_0x45311f,this['attributes'])||(this['attributes']=_0x45311f,this['_onAttributesChange'](_0x45311f));}['removeAttribute'](_0x18acca){const _0x5a57a7=_0x7c6eac(this['attributes']);_0x243a98(_0x5a57a7,_0x18acca),_0x35c1e7(_0x5a57a7,this['attributes'])||(this['attributes']=_0x5a57a7,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 _0x27f732()['substr'](0x1,0x5);}}function o(_0x4b8ce1,_0x4b5646,_0x301d94){const t=_0x4b8ce1['t'];switch(_0x4b5646){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',_0x301d94);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x301d94);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x301d94);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x301d94);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x301d94);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',_0x301d94);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x301d94);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',_0x301d94);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x301d94);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x301d94);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x301d94);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x301d94);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x301d94);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x301d94);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x301d94);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x301d94);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x301d94);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x301d94);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x301d94);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x301d94);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x301d94);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x301d94);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x301d94);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'},_0x301d94);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x301d94);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x301d94);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x301d94);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x301d94);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x301d94);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'},_0x301d94);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x301d94);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x301d94);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x301d94);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x301d94);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'},_0x301d94);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x301d94);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'},_0x301d94);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'},_0x301d94);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x301d94);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'},_0x301d94);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x301d94);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'},_0x301d94);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x301d94);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x301d94);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x301d94);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'},_0x301d94);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'},_0x301d94);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 _0x4b5646;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1824d5,_0x2ad20e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1824d5,this['_locale']=_0x2ad20e;}['getDescriptions'](_0x21bfa9){const _0x2994f0=[],_0x3937b4=new Set(),_0x4052fa=new Set();for(let _0x5c62ba=0x0;_0x5c62ba<_0x21bfa9['length'];_0x5c62ba++){const _0x3c8520=_0x21bfa9[_0x5c62ba];if(!_0x3c8520['isInContent'])continue;const _0x4045f8=this['_handleCustomCallbackDescription'](_0x3c8520);if(_0x4045f8){if(null!=_0x3c8520['subType']){if(_0x3937b4['has'](_0x3c8520['subType']))continue;_0x3937b4['add'](_0x3c8520['subType']);}_0x2994f0['push'](_0x4045f8);}else{if('attribute'!=_0x3c8520['type'])'insertion'!=_0x3c8520['type']&&'deletion'!=_0x3c8520['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2994f0,_0x3c8520,_0x21bfa9[_0x5c62ba+0x1]);else{const _0xcd685=_0x3c8520['data']['key'];if(_0x4052fa['has'](_0xcd685))continue;_0x4052fa['add'](_0x3c8520['data']['key']),_0xcd685==m?this['_handleRenameSuggestionDescription'](_0x2994f0,_0x3c8520):this['_handleAttributeSuggestionDescription'](_0x2994f0,_0x3c8520);}}}return this['_resolveDescriptionItems'](_0x2994f0);}['registerDescriptionCallback'](_0x3d1c3d){this['_customCallbacks']['push'](_0x3d1c3d);}['registerElementLabel'](_0x54b39c,_0x2e4a3b,_0x39fe4e=_0x200434['normal']){'function'==typeof _0x54b39c?_0x3a65c8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x54b39c,'label':_0x2e4a3b,'priority':_0x39fe4e}):this['_itemLabels']['set'](_0x54b39c,_0x2e4a3b);}['registerAttributeLabel'](_0x47e62a,_0x1ba57b){this['_attributeLabels']['set'](_0x47e62a,_0x1ba57b);}['getItemLabel'](_0x587f43,_0x58576c=0x1){let _0x4dad63;for(const _0x54f6c7 of this['_itemLabelsCallbacks'])if(_0x54f6c7['matchingCallback'](_0x587f43)){_0x4dad63=_0x54f6c7['label'];break;}return _0x4dad63||(_0x4dad63=this['_itemLabels']['get'](_0x587f43['name'])),_0x4dad63?_0x4dad63(_0x58576c):0x1!==_0x58576c?_0x58576c+'\x20'+_0x587f43['name']+'s':''+_0x587f43['name'];}['_addDescriptionItems'](_0x458286,_0x4535f1){const _0x2640b8=_0x4535f1['getFirstRange']()['getWalker'](),_0x3915be='insertion'==_0x4535f1['type']?'add':'remove';for(const _0x30b2ad of _0x2640b8){const _0xefcaa2=_0x30b2ad['item'],_0x27a188=_0x458286[_0x458286['length']-0x1];if(_0xefcaa2['is']('$textProxy'))_0x27a188&&_0x27a188['type']['indexOf']('Container')>-0x1&&_0x458286['pop'](),_0x27a188&&'text'==_0x27a188['type']?_0x27a188[_0x3915be]+=_0xefcaa2['data']:_0x458286['push']({'type':'text','add':'add'==_0x3915be?_0xefcaa2['data']:'','remove':'remove'==_0x3915be?_0xefcaa2['data']:''});else{if(this['_schema']['isObject'](_0xefcaa2)){const _0x3f3711=_0xefcaa2;if(_0x27a188&&_0x27a188['type']['indexOf']('Container')>-0x1&&_0x458286['pop'](),'elementEnd'==_0x30b2ad['type'])continue;_0x27a188&&_0x27a188['type']==_0x3915be+'Object'&&_0x27a188['element']['name']==_0x3f3711['name']?_0x27a188['quantity']++:_0x458286['push']({'type':_0x3915be+'Object','element':_0x3f3711,'quantity':0x1}),_0x2640b8['skip'](_0x25243d=>!('elementEnd'==_0x25243d['type']&&_0x25243d['item']==_0xefcaa2));}else{if(this['_schema']['checkChild'](_0xefcaa2,'$text')||_0xefcaa2['is']('element','softBreak')){const _0x298812=_0xefcaa2;if('add'==_0x3915be&&'elementStart'==_0x30b2ad['type']||'remove'==_0x3915be&&'elementEnd'==_0x30b2ad['type'])continue;if(_0x27a188&&-0x1==_0x27a188['type']['indexOf']('Container')){'text'==_0x27a188['type']&&(_0x27a188[_0x3915be]+='\x0a');continue;}let _0x481c51;if(_0x481c51='add'==_0x3915be?_0x298812['nextSibling']&&!this['_schema']['isObject'](_0x298812['nextSibling'])?_0x298812['nextSibling']:null:_0x298812['previousSibling']&&!this['_schema']['isObject'](_0x298812['previousSibling'])?_0x298812['previousSibling']:null,_0x298812['isEmpty']||_0x481c51&&_0x481c51['isEmpty']){const _0x5a6aec=_0x481c51&&_0x481c51['isEmpty']?_0x481c51:_0x298812;_0x27a188&&_0x27a188['type']==_0x3915be+'EmptyContainer'&&_0x27a188['element']['name']==_0x5a6aec['name']?_0x27a188['quantity']++:_0x458286['push']({'type':_0x3915be+'EmptyContainer','element':_0x5a6aec,'quantity':0x1});}else _0x458286['push']({'type':_0x3915be+'Container','element':_0x298812});}}}}}['_resolveDescriptionItems'](_0x36411d){const _0x2e7e7f=this['_locale'],_0x35f22b=[],_0x302294=[],_0x21d1c6=[];for(const _0x130888 of _0x36411d)switch(_0x130888['type']){case'text':if(_0x130888['add']=_0x130888['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x130888['remove']=_0x130888['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x130888['add']&&''!=_0x130888['remove']){_0x35f22b['push']({'type':'replace','content':o(_0x2e7e7f,'REPLACE_TEXT',['\x22'+_0x130888['remove']+'\x22','\x22'+_0x130888['add']+'\x22'])});continue;}if(null!=_0x130888['add']['match'](/^ +$/)){_0x35f22b['push']({'type':'insertion','content':o(_0x2e7e7f,'*Insert:*\x20%0',o(_0x2e7e7f,'ELEMENT_SPACE',_0x130888['add']['length']))});continue;}if(null!=_0x130888['remove']['match'](/^ +$/)){_0x35f22b['push']({'type':'deletion','content':o(_0x2e7e7f,'*Remove:*\x20%0',o(_0x2e7e7f,'ELEMENT_SPACE',_0x130888['remove']['length']))});continue;}if(''!=_0x130888['add']){_0x35f22b['push']({'type':'insertion','content':o(_0x2e7e7f,'*Insert:*\x20%0','\x22'+_0x130888['add']+'\x22')});continue;}_0x35f22b['push']({'type':'deletion','content':o(_0x2e7e7f,'*Remove:*\x20%0','\x22'+_0x130888['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x35f22b['push']({'type':'insertion','content':o(_0x2e7e7f,'*Insert:*\x20%0',this['getItemLabel'](_0x130888['element'],_0x130888['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x35f22b['push']({'type':'deletion','content':o(_0x2e7e7f,'*Remove:*\x20%0',this['getItemLabel'](_0x130888['element'],_0x130888['quantity']))});continue;case'addContainer':_0x35f22b['push']({'type':'insertion','content':o(_0x2e7e7f,'*Split:*\x20%0',this['getItemLabel'](_0x130888['element'],_0x130888['quantity']))});continue;case'removeContainer':_0x35f22b['push']({'type':'deletion','content':o(_0x2e7e7f,'*Merge:*\x20%0',this['getItemLabel'](_0x130888['element'],_0x130888['quantity']))});continue;case'addFormat':_0x302294['push'](_0x130888['key']);continue;case'removeFormat':_0x21d1c6['push'](_0x130888['key']);continue;default:_0x35f22b['push'](_0x130888);}if(_0x302294['length']){const _0x2efde3=_0x302294['map'](_0x2c30d2=>this['_attributeLabels']['has'](_0x2c30d2)?this['_attributeLabels']['get'](_0x2c30d2):_0x2c30d2)['join'](',\x20');_0x35f22b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2efde3)});}if(_0x21d1c6['length']){const _0x3910d3=_0x21d1c6['map'](_0x20d9c3=>this['_attributeLabels']['has'](_0x20d9c3)?this['_attributeLabels']['get'](_0x20d9c3):_0x20d9c3)['join'](',\x20');_0x35f22b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3910d3)});}return _0x35f22b;}['_handleCustomCallbackDescription'](_0x4fdd20){for(const _0x593cc2 of this['_customCallbacks']){const _0x376f75=_0x593cc2(_0x4fdd20);if(_0x376f75&&'type'in _0x376f75)return _0x376f75;}}['_handleAttributeSuggestionDescription'](_0x39f59e,_0x3e50cb){const _0x4e3fe8=_0x3e50cb['data'],_0x5b8680=void 0x0===_0x4e3fe8['newValue']?'removeFormat':'addFormat';_0x39f59e['push']({'type':_0x5b8680,'key':_0x4e3fe8['key']});}['_handleRenameSuggestionDescription'](_0xeace45,_0x55dcb0){_0xeace45['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x55dcb0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5c5cb9,_0x36d6ad,_0x5b475f){if(this['_addDescriptionItems'](_0x5c5cb9,_0x36d6ad),_0x5b475f&&_0x5b475f['getFirstRange']()&&!_0x36d6ad['getFirstRange']()['end']['isEqual'](_0x5b475f['getFirstRange']()['start'])){const _0xf7f75e=_0x5c5cb9[_0x5c5cb9['length']-0x1],_0x1c67e9='insertion'==_0x36d6ad['type']?'add':'remove';_0xf7f75e&&'text'==_0xf7f75e['type']&&(_0xf7f75e[_0x1c67e9]+='\x0a');}}}class E extends _0x15c086{['afterInit'](){const _0x27e100=this['editor'],_0x3edf97=_0x27e100['plugins']['get']('TrackChangesEditing');_0x27e100['commands']['get']('showAIAssistant')&&_0x3edf97['enableCommand']('showAIAssistant');}}class V extends _0x15c086{['afterInit'](){const _0x13fa7f=this['editor'],_0x2176aa=_0x13fa7f['locale'];if(!_0x13fa7f['plugins']['has']('AlignmentEditing'))return;const _0x49bb11=_0x13fa7f['plugins']['get']('TrackChangesEditing');_0x49bb11['enableDefaultAttributesIntegration']('alignment'),_0x49bb11['registerBlockAttribute']('alignment'),_0x49bb11['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2176aa,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x227a75=this['editor'],_0x21a8e2=_0x227a75['locale'];_0x227a75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e1cf4=>{if('formatBlock'!=_0x3e1cf4['type'])return;const {data:_0x4e06b9}=_0x3e1cf4;if(_0x4e06b9&&'alignment'==_0x4e06b9['commandName']){const _0x302574=_0x4e06b9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x21a8e2,'*Format:*\x20%0',function(_0x4a0095){switch(_0x4a0095){case'left':return o(_0x21a8e2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x21a8e2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x21a8e2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x21a8e2,'FORMAT_JUSTIFY_TEXT');}}(_0x302574))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x15c086{['afterInit'](){const _0x210d8f=this['editor'],_0x22b757=_0x210d8f['plugins']['get']('TrackChangesEditing'),_0x2c05f4=_0x210d8f['locale'];for(const _0x1f4de3 of ti){if(!_0x210d8f['plugins']['has'](_0x1f4de3))continue;const _0x13a5f8=_0x1f4de3['slice'](0x0,-0x7)['toLowerCase'](),_0x308bee='FORMAT_'+_0x13a5f8['toUpperCase']();_0x22b757['enableDefaultAttributesIntegration'](_0x13a5f8),_0x22b757['registerInlineAttribute'](_0x13a5f8),_0x22b757['descriptionFactory']['registerAttributeLabel'](_0x13a5f8,o(_0x2c05f4,_0x308bee));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ba040=this['editor'],_0x460c18=_0x2ba040['locale'],_0x4ad2e3=_0x2ba040['plugins']['get']('TrackChangesEditing');function _0x2fba0c(_0x14e53a,_0x2594d1){_0x4ad2e3['descriptionFactory']['registerDescriptionCallback'](_0x2e87d2=>{if('formatInline'!=_0x2e87d2['type'])return;const {data:_0x39bef0}=_0x2e87d2;return _0x39bef0&&_0x39bef0['commandName']===_0x14e53a?_0x39bef0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x460c18,'*Format:*\x20%0',_0x2594d1)}:{'type':'format','content':o(_0x460c18,'*Remove\x20format:*\x20%0',_0x2594d1)}:void 0x0;});}_0x2fba0c('bold',o(_0x460c18,'FORMAT_BOLD')),_0x2fba0c('italic',o(_0x460c18,'FORMAT_ITALIC')),_0x2fba0c('underline',o(_0x460c18,'FORMAT_UNDERLINE')),_0x2fba0c('code',o(_0x460c18,'FORMAT_CODE')),_0x2fba0c('strikethrough',o(_0x460c18,'FORMAT_STRIKETHROUGH')),_0x2fba0c('subscript',o(_0x460c18,'FORMAT_SUBSCRIPT')),_0x2fba0c('superscript',o(_0x460c18,'FORMAT_SUPERSCRIPT'));}}class O extends _0x15c086{['afterInit'](){const _0x354c8e=this['editor'],_0x361b2d=_0x354c8e['locale'];if(!_0x354c8e['plugins']['has']('BlockQuoteEditing'))return;const _0x29474d=_0x354c8e['plugins']['get']('TrackChangesEditing'),_0x39d0ce=this['editor']['commands']['get']('blockQuote');_0x29474d['enableCommand']('blockQuote',(_0x58f5ad,_0x51f327={})=>{const _0x344c41=this['editor']['model']['document']['selection'],_0x2d25a=_0x51f327&&void 0x0!==_0x51f327['forceValue']?_0x51f327['forceValue']:!_0x39d0ce['value'];let _0x6aceca=[];if(_0x2d25a){const _0x2ab31a=Array['from'](_0x344c41['getSelectedBlocks']())['filter'](_0x246e96=>oo(_0x246e96)||function(_0x4e5108,_0xb4b260){const _0x706f7a=_0xb4b260['checkChild'](_0x4e5108['parent'],'blockQuote'),_0x352af2=_0xb4b260['checkChild'](['$root','blockQuote'],_0x4e5108);return _0x706f7a&&_0x352af2;}(_0x246e96,this['editor']['model']['schema']));_0x6aceca=to(_0x2ab31a,_0x354c8e['model']);}else{const _0x5c2c90=Array['from'](_0x344c41['getSelectedBlocks']())['filter'](_0x4aa710=>oo(_0x4aa710));_0x6aceca=to(_0x5c2c90,_0x354c8e['model']);}_0x354c8e['model']['change'](()=>{for(const _0x46f1d4 of _0x6aceca)_0x29474d['markBlockFormat'](_0x46f1d4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2d25a}]});});}),_0x29474d['descriptionFactory']['registerDescriptionCallback'](_0x1a0512=>{const {data:_0x5c2326}=_0x1a0512;if(_0x5c2326&&'blockQuote'==_0x5c2326['commandName']){const _0x9a5e72=o(_0x361b2d,'ELEMENT_BLOCK_QUOTE');return _0x5c2326['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x361b2d,'*Set\x20format:*\x20%0',_0x9a5e72)}:{'type':'format','content':o(_0x361b2d,'*Remove\x20format:*\x20%0',_0x9a5e72)};}});}}function oo(_0x31de90){return'blockQuote'==_0x31de90['parent']['name'];}class G extends _0x15c086{['afterInit'](){const _0x26c532=this['editor'];_0x26c532['plugins']['has']('CaseChange')&&(_0x26c532['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x26c532['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x26c532['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x15c086{['afterInit'](){const _0xd6c662=this['editor'];_0xd6c662['commands']['get']('ckbox')&&_0xd6c662['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x15c086{['afterInit'](){const _0x50bceb=this['editor'];if(!_0x50bceb['plugins']['has']('CodeBlock'))return;const _0x4d275d=_0x50bceb['plugins']['get']('TrackChangesEditing'),_0x684c04=_0x50bceb['locale'],_0xcca2c9=_0x50bceb['config']['get']('codeBlock')['languages'],_0x55770f=_0x50bceb['commands']['get']('codeBlock');_0x4d275d['enableCommand']('indentCodeBlock'),_0x4d275d['enableCommand']('outdentCodeBlock'),_0x4d275d['enableCommand']('codeBlock',(_0x8cf064,_0x2d8640={})=>{const _0x2b1a15=_0x50bceb['model'],_0x2434fc=_0x50bceb['model']['document']['selection'],_0x173698=_0x2d8640&&void 0x0!==_0x2d8640['forceValue']?_0x2d8640['forceValue']:!_0x55770f['value'];let _0x19e9bb;_0x2d8640['language']||(_0x2d8640['language']=_0xcca2c9[0x0]['language']),_0x19e9bb=_0x173698?Array['from'](_0x2434fc['getSelectedBlocks']())['filter'](_0x3dbe19=>eo(_0x3dbe19)||function(_0x55cf80,_0x188a40){if(_0x55cf80['is']('rootElement')||_0x188a40['isLimit'](_0x55cf80))return!0x1;return _0x188a40['checkChild'](_0x55cf80['parent'],'codeBlock');}(_0x3dbe19,_0x2b1a15['schema'])):Array['from'](_0x2434fc['getSelectedBlocks']())['filter'](_0x262ce9=>eo(_0x262ce9));const _0xe28e09=to(_0x19e9bb,_0x2b1a15);_0x2b1a15['change'](()=>{for(const _0x5e1c08 of _0xe28e09)_0x4d275d['markBlockFormat'](_0x5e1c08,{'commandName':'codeBlock','commandParams':[{..._0x2d8640,'forceValue':_0x173698}],'formatGroupId':'blockName'});});}),(_0x4d275d['descriptionFactory']['registerElementLabel']('codeBlock',_0x7040b4=>o(_0x684c04,'ELEMENT_CODE_BLOCK',_0x7040b4)),_0x4d275d['descriptionFactory']['registerDescriptionCallback'](_0x1575d3=>{if('formatBlock'!=_0x1575d3['type'])return;const _0x1ca6a1=_0x684c04['t'],{data:_0x178e30}=_0x1575d3;if(!_0x178e30||'codeBlock'!=_0x178e30['commandName'])return;const _0x4b8570=_0x178e30['commandParams'][0x0]['language'],_0x5ac2c0=_0x1ca6a1(_0xcca2c9['find'](_0x5d73f1=>_0x5d73f1['language']===_0x4b8570)['label'])['toLowerCase']();return _0x178e30['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x684c04,'*Set\x20format:*\x20%0',o(_0x684c04,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5ac2c0+')')}:{'type':'format','content':o(_0x684c04,'*Remove\x20format:*\x20%0',o(_0x684c04,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5b9d04){return'codeBlock'==_0x5b9d04['name'];}class H extends _0x15c086{['afterInit'](){const _0x361ae4=this['editor'];if(!_0x361ae4['plugins']['has']('CommentsEditing'))return;_0x361ae4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5416a0,_0x5e9084,_0x371154){const _0x5df1e6=[];for(const _0x447127 of _0x5e9084['getItems']())_0x447127['hasAttribute'](_0x5416a0)&&_0x5df1e6['push'](_0x371154['createRangeOn'](_0x447127));return _0x5df1e6;}function _e(_0x3ecee3,_0x497817,{showActiveMarker:_0x53f8e6=!0x0}={}){const _0x1f4c0c=_0x3ecee3['plugins']['get']('TrackChangesEditing');return(_0x16bb49,_0x37a22a,_0x5d4d59)=>{if(!_0x5d4d59['consumable']['test'](_0x37a22a['markerRange'],_0x16bb49['name']))return;const _0x256732=_0x37a22a['markerRange']['getWalker'](),_0x243eb8=_0x37a22a['markerRange']['start'],_0x1fcc8d=_0x3ecee3['model']['schema'];let _0x21839a=null,_0x5ac659=null,_0x527a73=!0x1,_0x32b0ce=!0x1;for(const _0x167879 of _0x256732){const _0x355cd8=_0x167879['item'];_0x527a73=_0x527a73||_0x1fcc8d['isContent'](_0x355cd8);const _0x267204=_0x5d4d59['mapper']['toViewElement'](_0x355cd8);if(_0x267204&&_0x267204['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x167879['type']&&(_0x1fcc8d['isBlock'](_0x355cd8)&&!_0x1fcc8d['isLimit'](_0x355cd8)&&(_0x355cd8['nextSibling']||_0x243eb8['isAtEnd']?_0x21839a&&_0x21839a['parent']==_0x355cd8||(_0x21839a=_0x355cd8,_0x3b8203(_0x167879['previousPosition']),_0x32b0ce=!0x0):_0x5ac659=_0x5ac659||_0x167879['previousPosition']));}function _0x3b8203(_0x71f03b){const _0x51b2b2=_0x5d4d59['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x497817}),_0x1f3db8=_0x5d4d59['mapper']['toViewPosition'](_0x71f03b);_0x53f8e6&&_0x1f4c0c['activeMarkers']['includes'](_0x37a22a['markerName'])&&_0x5d4d59['writer']['addClass']('ck-suggestion-marker--active',_0x51b2b2),_0x5d4d59['writer']['insert'](_0x1f3db8,_0x51b2b2),_0x5d4d59['mapper']['bindElementToMarker'](_0x51b2b2,_0x37a22a['markerName']);}_0x527a73||_0x32b0ce||!_0x5ac659||_0x3b8203(_0x5ac659);};}class q extends _0x15c086{static get['requires'](){return[_0x272956];}['init'](){const _0x28e29f=this['editor'],_0x5372cb=_0x28e29f['plugins']['get']('TrackChangesEditing');_0x5372cb['enableCommand']('delete');const _0x56aeac=_0x28e29f['commands']['get']('deleteForward');_0x5372cb['enableCommand']('deleteForward',(_0x250569,_0x1912fa={})=>{const _0x438a40=_0x28e29f['model']['createSelection'](_0x28e29f['model']['document']['selection']);_0x438a40['isCollapsed']&&_0x28e29f['model']['modifySelection'](_0x438a40,{'direction':'forward','unit':_0x1912fa['unit']});const _0x5d9444=_0x438a40['getFirstRange'](),_0x30430c=_0x948f0b['fromRange'](_0x5d9444);let _0x1b2606;_0x250569(_0x1912fa),_0x1b2606='$graveyard'==_0x30430c['root']['rootName']?_0x28e29f['model']['createRange'](_0x5d9444['start']):_0x28e29f['model']['createRange'](_0x30430c['start'],_0x30430c['end']),_0x30430c['detach'](),_0x28e29f['model']['enqueueChange'](_0x56aeac['buffer']['batch'],_0x3d3dde=>{_0x56aeac['buffer']['lock'](),_0x3d3dde['setSelection'](_0x3d3dde['createRange'](_0x1b2606['end'])),_0x56aeac['buffer']['unlock']();});}),_0x28e29f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x28e29f,'merge'),{'priority':'high'}),_0x28e29f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3f6914,_0x15510e,_0x5c038e)=>{_0x5c038e['options']['showSuggestionHighlights']&&_e(_0x28e29f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3f6914,_0x15510e,_0x5c038e);},{'priority':'high'}),_0x28e29f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x6c7b8a,_0x1d8ba5,_0x4907e5)=>{const _0x32794e=_0x4907e5['mapper']['markerNameToElements'](_0x1d8ba5['markerName']);if(_0x32794e){for(const _0x437add of _0x32794e)_0x437add['is']('uiElement')&&(_0x4907e5['mapper']['unbindElementFromMarkerName'](_0x437add,_0x1d8ba5['markerName']),_0x4907e5['writer']['remove'](_0x437add));}},{'priority':'high'});}}class z extends _0x15c086{['afterInit'](){const _0x1b93c9=this['editor'];if(!_0x1b93c9['plugins']['has']('ListEditing'))return;const _0x9d1f74=_0x1b93c9['locale'],_0x339497=_0x1b93c9['plugins']['get']('TrackChangesEditing'),_0x1fcddb=_0x1b93c9['plugins']['has']('TodoListEditing'),_0x4319f4=!!_0x1b93c9['config']['get']('list.multiBlock');function _0x3a3ff7(_0x28c535){return{'type':'format','content':''+o(_0x9d1f74,'*Set\x20format:*\x20%0',_0x28c535)};}function _0x3920de(_0x39021c){return{'type':'format','content':''+o(_0x9d1f74,'*Remove\x20format:*\x20%0',_0x39021c)};}_0x339497['enableDefaultAttributesIntegration']('numberedList'),_0x339497['enableDefaultAttributesIntegration']('bulletedList'),_0x339497['enableDefaultAttributesIntegration']('customNumberedList'),_0x339497['enableDefaultAttributesIntegration']('customBulletedList'),_0x339497['enableDefaultAttributesIntegration']('indentList'),_0x339497['enableDefaultAttributesIntegration']('outdentList'),_0x339497['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x339497['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x339497['registerBlockAttribute']('listItemId'),_0x339497['registerBlockAttribute']('listType'),_0x339497['registerBlockAttribute']('listIndent'),_0x4319f4&&(_0x339497['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x339497['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1fcddb&&(_0x339497['enableDefaultAttributesIntegration']('todoList'),_0x339497['enableDefaultAttributesIntegration']('checkTodoList'),_0x339497['registerBlockAttribute']('todoListChecked'),_0x339497['descriptionFactory']['registerDescriptionCallback'](_0x3f2ebf=>{const {data:_0x21b521}=_0x3f2ebf;if(_0x21b521&&'todoListChecked'==_0x21b521['key'])return{'type':'format','content':_0x21b521['newValue']?o(_0x9d1f74,'*Check\x20item*'):o(_0x9d1f74,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x248df6=>{if(_0x248df6['batch']['isUndo'])return!0x1;let _0xcec665=!0x1;const _0x5b94e6=_0x339497['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fa6af=>'todoListChecked'===_0x339497['_getAttributeKey'](_0x4fa6af));for(const _0x7c45ad of _0x5b94e6){'todo'!=_0x7c45ad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x339497['_findSuggestions'](_0x7c45ad['getFirstRange'](),'attribute')['find'](_0x1b9aee=>'listType'===_0x339497['_getAttributeKey'](_0x1b9aee['suggestion']))||(_0x248df6['removeMarker'](_0x7c45ad['getFirstMarker']()),_0xcec665=!0x0));}return _0xcec665;})),_0x339497['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x9d1f74,'FORMAT_INDENT'));const _0x253873={'type':'format','content':''};_0x339497['descriptionFactory']['registerDescriptionCallback'](_0x335a46=>{const {data:_0x8a42bb}=_0x335a46;if(!_0x8a42bb||'listType'!=_0x8a42bb['key'])return;let _0x179f87=_0x335a46['head'];for(;_0x179f87;){if(_0x179f87['data']&&(('listStyle'==_0x179f87['data']['key']||'listMarkerStyle'==_0x179f87['data']['key'])&&(_0x179f87['data']['newValue']&&'default'!=_0x179f87['data']['newValue']||'default'!=_0x179f87['data']['oldValue']&&!_0x8a42bb['newValue'])||!_0x4319f4&&_0x179f87['data']['key']==m))return _0x253873;_0x179f87=_0x179f87['next'];}if(null==_0x8a42bb['newValue'])switch(_0x8a42bb['oldValue']){case'bulleted':return _0x3920de(o(_0x9d1f74,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3920de(o(_0x9d1f74,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3920de(o(_0x9d1f74,'ELEMENT_TODO_LIST'));}switch(_0x8a42bb['newValue']){case'bulleted':return _0x3a3ff7(o(_0x9d1f74,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a3ff7(o(_0x9d1f74,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a3ff7(o(_0x9d1f74,'ELEMENT_TODO_LIST'));}}),_0x339497['descriptionFactory']['registerDescriptionCallback'](_0x2740dc=>{const {data:_0x3acf10}=_0x2740dc;if(_0x3acf10&&'listIndent'==_0x3acf10['key'])return null==_0x3acf10['newValue']||null==_0x3acf10['oldValue']&&0x0==_0x3acf10['newValue']?_0x253873:void 0x0;}),_0x339497['descriptionFactory']['registerDescriptionCallback'](_0xf4bb59=>{if('attribute'!=_0xf4bb59['type'])return;const {data:_0x10abc9}=_0xf4bb59;if(!_0x10abc9||'listItemId'!=_0x10abc9['key'])return;const _0x2d35cd=le(_0xf4bb59);return'newValue'==_0x2d35cd?{'type':'format','content':o(_0x9d1f74,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2d35cd?{'type':'format','content':o(_0x9d1f74,'*Split:*\x20list\x20item')}:_0x253873;}),_0x1b93c9['model']['document']['registerPostFixer'](_0x26e499=>this['listItemIdFixer'](_0x26e499)),_0x1b93c9['model']['document']['registerPostFixer'](_0xf8713d=>this['noTrackChangesFixer'](_0xf8713d)),_0x1b93c9['model']['document']['registerPostFixer'](_0x467247=>this['assureChains'](_0x467247)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3340c9){if(_0x3340c9['batch']['isUndo']||!_0x3340c9['batch']['isLocal'])return!0x1;let _0x175a99=!0x1;const _0x3b8c59=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x707e67=>_0x707e67['data']&&'listItemId'==_0x707e67['data']['key'])['filter'](_0xd3da7a=>_0xd3da7a['data']['newValue']&&_0xd3da7a['data']['oldValue']);for(const _0x520fd8 of _0x3b8c59)le(_0x520fd8)||(_0x3340c9['removeMarker'](_0x520fd8['getFirstMarker']()),_0x175a99=!0x0);return _0x175a99;}['noTrackChangesFixer'](_0x599f53){if(_0x599f53['batch']['isUndo']||!_0x599f53['batch']['isLocal'])return!0x1;const _0x43b10b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x43b10b['trackChangesCommand']['value'])return!0x1;let _0x1d7223=!0x1;const _0x488ff6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x205b03=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2fe003=>'attribute'==_0x2fe003['type'])['filter'](_0x350698=>_0x488ff6['includes'](_0x350698['attributeKey']));if(0x0==_0x205b03['length'])return _0x1d7223;for(const _0x2cf128 of _0x205b03){const _0x15c044=_0x43b10b['_findSuggestions'](_0x2cf128['range'],'attribute')['filter'](_0x2529a4=>!_0x2529a4['meta']['isNextTo'])['map'](_0x1a670e=>_0x1a670e['suggestion'])['filter'](_0x14d1a5=>{const _0x266892=_0x43b10b['_getAttributeKey'](_0x14d1a5);return _0x488ff6['includes'](_0x266892);});if(_0x15c044['length']){for(const _0x2bcadc of _0x15c044)_0x599f53['removeMarker'](_0x2bcadc['getFirstMarker']());_0x1d7223=!0x0;}}return _0x1d7223;}['assureChains'](_0x4f87fe){if(_0x4f87fe['batch']['isUndo']||!_0x4f87fe['batch']['isLocal'])return!0x1;const _0xdb6400=this['editor']['plugins']['get']('TrackChangesEditing');let _0x24afc4=!0x1;const _0x595371=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x22bd1b of _0xdb6400['getSuggestions']({'skipNotAttached':!0x0})){const _0x5d9d8b=_0xdb6400['_findSuggestions'](_0x22bd1b['getFirstRange'](),'attribute')['map'](_0x239ec0=>_0x239ec0['suggestion'])['filter'](_0x580290=>_0x580290['data']&&_0x595371['includes'](_0x580290['data']['key']));if(!_0x5d9d8b['length'])continue;const _0x1393c3=_0x5d9d8b[0x0]['head']['attributes']['groupId'];if(!_0x5d9d8b['every'](_0x4db98a=>_0x4db98a['attributes']['groupId']===_0x1393c3)){for(const _0x666d34 of _0x5d9d8b)_0x2ec377(_0x666d34,_0x1393c3)&&(_0x24afc4=!0x0);}}return _0x24afc4;function _0x536acf(_0x2eae24,_0x3fe61a){for(const _0x441d8e of _0xdb6400['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1edbee=>'attribute'==_0x1edbee['type']&&_0x1edbee['attributes']['groupId']==_0x2eae24))_0x441d8e['setAttribute']('groupId',_0x3fe61a);}function _0x2ec377(_0x213865,_0x34db90){let _0x11f4c7=_0x213865['head'],_0x5ccbd9=!0x1;for(;_0x11f4c7;)_0x11f4c7['attributes']['groupId']!=_0x34db90&&(_0x536acf(_0x11f4c7['attributes']['groupId'],_0x34db90),_0x11f4c7['setAttribute']('groupId',_0x34db90),_0x5ccbd9=!0x0),_0x11f4c7=_0x11f4c7['next'];return _0x5ccbd9;}}['_supportLegacySuggestions'](){const _0x1db73b=this['editor'],_0x49cf34=_0x1db73b['locale'],_0x5bf134=_0x1db73b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5bf134['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1b9407,_0x2b3576){const _0x2021c7=[];for(let _0x44ad2b of _0x1b9407)_0x44ad2b['start']['nodeAfter']===_0x44ad2b['end']['parent']&&(_0x44ad2b=_0x1db73b['model']['createRange'](_0x1db73b['model']['createPositionAt'](_0x44ad2b['start']['nodeAfter'],0x0))),_0x2021c7['push'](_0x44ad2b);_0x1db73b['model']['change'](_0x401121=>{const _0x4027c0=_0x1db73b['model']['document']['selection'],_0x4926b5=Array['from'](_0x4027c0['getRanges']())['map'](_0x30f910=>_0x948f0b['fromRange'](_0x30f910));_0x401121['setSelection'](_0x2021c7),_0x1db73b['commands']['get'](_0x2b3576['commandName'])['refresh'](),_0x2b3576['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1db73b['execute'](_0x2b3576['commandName'],..._0x2b3576['commandParams']),_0x401121['setSelection'](_0x4926b5);for(const _0x512a9a of _0x4926b5)_0x512a9a['detach']();});}),_0x5bf134['descriptionFactory']['registerElementLabel'](function(_0x3c28fd){const _0x199cd2=!_0x1db73b['model']['schema']['isObject'](_0x3c28fd),_0x5e556f=_0x3c28fd['previousSibling'],_0x3f985b=_0x3c28fd['nextSibling'],_0xa9df96=_0x3c28fd['getAttribute']('listItemId'),_0x1bd253=!_0x5e556f||_0x5e556f['getAttribute']('listItemId')!==_0xa9df96,_0x44aabc=!_0x3f985b||_0x3f985b['getAttribute']('listItemId')!==_0xa9df96;return _0x199cd2&&Boolean(_0xa9df96)&&_0x1bd253&&_0x44aabc;},_0x22a030=>o(_0x49cf34,'ELEMENT_LIST_ITEM',_0x22a030));}['_registerLegacyDescription'](){const _0x346b7c=this['editor'],_0x2c6e8c=_0x346b7c['locale'];function _0x7996f4(_0x2122a6){const _0xdde061=_0x346b7c['commands']['get']('bulletedList')['value'],_0x1487ca=_0x346b7c['commands']['get']('numberedList')['value'];return'numberedList'===_0x2122a6?_0xdde061:_0x1487ca;}_0x346b7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x7d8fa6){if('formatBlock'!=_0x7d8fa6['type'])return;const {data:_0x406d33}=_0x7d8fa6;if(!_0x406d33)return;let _0x2e3de5,_0x3d96eb,_0x2aa7bc,_0x58d991;switch(_0x406d33['commandName']){case'bulletedList':_0x2aa7bc=_0x406d33['commandParams'][0x0]['forceValue'],_0x58d991=_0x7996f4(_0x406d33['commandName']),_0x2e3de5=_0x2aa7bc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x58d991&&_0x346b7c['config']['get']('list.multiBlock')||(_0x2e3de5='*Change\x20to:*\x20%0'),_0x3d96eb={'type':'format','content':o(_0x2c6e8c,_0x2e3de5,o(_0x2c6e8c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2aa7bc=_0x406d33['commandParams'][0x0]['forceValue'],_0x58d991=_0x7996f4(_0x406d33['commandName']),_0x2e3de5=_0x2aa7bc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x58d991&&_0x346b7c['config']['get']('list.multiBlock')||(_0x2e3de5='*Change\x20to:*\x20%0'),_0x3d96eb={'type':'format','content':o(_0x2c6e8c,_0x2e3de5,o(_0x2c6e8c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2e3de5='*Indent:*\x20%0',_0x3d96eb={'type':'format','content':o(_0x2c6e8c,_0x2e3de5,o(_0x2c6e8c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2e3de5=function(_0x5b233b){const _0x2720e9=_0x5b233b['getFirstRange']();let _0xb06ce7=_0x2720e9['start']['nodeAfter'];for(;_0xb06ce7&&_0x2720e9['containsItem'](_0xb06ce7);){if(_0xb06ce7['getAttribute']('listIndent')>0x0)return!0x1;_0xb06ce7=_0xb06ce7['nextSibling'];}return!0x0;}(_0x7d8fa6)?o(_0x2c6e8c,'*Format:*\x20remove\x20from\x20%0',o(_0x2c6e8c,function(_0x376fb9){return'ELEMENT_'+_0x376fb9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x7d8fa6))):o(_0x2c6e8c,'*Outdent:*\x20%0',o(_0x2c6e8c,'ELEMENT_LIST_ITEM')),_0x3d96eb={'type':'format','content':_0x2e3de5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x406d33['multipleBlocks']&&(_0x2e3de5='*Merge:*\x20%0',_0x3d96eb={'type':'deletion','content':o(_0x2c6e8c,_0x2e3de5,o(_0x2c6e8c,'ELEMENT_LIST_ITEM'))});}return _0x3d96eb;});}}function le(_0x9a059d){let _0x28526b=_0x9a059d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x28526b;){const _0x429295=_0x28526b['getAttribute']('listItemId');if(!_0x429295)return!0x1;if(_0x429295==_0x9a059d['data']['newValue'])return'newValue';if(_0x429295==_0x9a059d['data']['oldValue'])return'oldValue';_0x28526b=_0x28526b['previousSibling'];}return!0x1;}class pe extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1a79bb=this['editor']['config']['get']('list.properties'),_0x2cd288=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a79bb['styles']&&(_0x2cd288['enableDefaultAttributesIntegration']('listStyle'),_0x2cd288['registerBlockAttribute']('listStyle')),_0x1a79bb['reversed']&&(_0x2cd288['enableDefaultAttributesIntegration']('listReversed'),_0x2cd288['registerBlockAttribute']('listReversed')),_0x1a79bb['startIndex']&&(_0x2cd288['enableDefaultAttributesIntegration']('listStart'),_0x2cd288['registerBlockAttribute']('listStart'));const _0x19b723={'type':'format','content':''};_0x2cd288['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x21be29=this['editor']['locale'];_0x2cd288['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x21be29,'FORMAT_LIST_REVERSED')),_0x2cd288['descriptionFactory']['registerDescriptionCallback'](_0x245de2=>{const {data:_0x27f83e}=_0x245de2;if(_0x27f83e&&'listReversed'==_0x27f83e['key'])return null==_0x27f83e['newValue']||0x0==_0x27f83e['newValue']&&null==_0x27f83e['oldValue']?_0x19b723:void 0x0;}),_0x2cd288['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x21be29,'FORMAT_LIST_START')),_0x2cd288['descriptionFactory']['registerDescriptionCallback'](_0xae6e6e=>{const {data:_0x25ffbb}=_0xae6e6e;if(_0x25ffbb&&'listStart'==_0x25ffbb['key'])return null==_0x25ffbb['newValue']||0x1==_0x25ffbb['newValue']&&null==_0x25ffbb['oldValue']?_0x19b723:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x51c1ac=>{if(_0x51c1ac['batch']['isUndo'])return!0x1;let _0x54f565=!0x1;const _0x54c7c3=_0x2cd288['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x317207=>{const _0xed1471=_0x2cd288['_getAttributeKey'](_0x317207);return'listStart'==_0xed1471||'listReversed'==_0xed1471;});for(const _0x17219e of _0x54c7c3){const _0x411b67=_0x17219e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x411b67||'customNumbered'==_0x411b67)continue;_0x2cd288['_findSuggestions'](_0x17219e['getFirstRange'](),'attribute')['find'](_0x495e3d=>'listType'==_0x2cd288['_getAttributeKey'](_0x495e3d['suggestion']))||(_0x51c1ac['removeMarker'](_0x17219e['getFirstMarker']()),_0x54f565=!0x0);}return _0x54f565;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x44644a){const _0x129c1e=this['editor']['locale'],{data:_0x469cde}=_0x44644a,_0x581ce4={'type':'format','content':''};if(!_0x469cde||'listStyle'!=_0x469cde['key'])return;if(!_0x469cde['oldValue'])return'default'==_0x469cde['newValue']?_0x581ce4:{'type':'format','content':''+o(_0x129c1e,'*Set\x20format:*\x20%0',o(_0x129c1e,this['_getTranslationKeyForListStyle'](_0x469cde['newValue'])))};if(!_0x469cde['newValue']){if('default'==_0x469cde['oldValue'])return _0x581ce4;let _0x169c03=_0x44644a['head'];for(;_0x169c03;){if(_0x169c03['data']&&'listType'==_0x169c03['data']['key']&&_0x169c03['data']['newValue'])return _0x581ce4;_0x169c03=_0x169c03['next'];}return{'type':'format','content':''+o(_0x129c1e,'*Remove\x20format:*\x20%0',o(_0x129c1e,this['_getTranslationKeyForListStyle'](_0x469cde['oldValue'])))};}if('default'!=_0x469cde['newValue'])return{'type':'format','content':''+o(_0x129c1e,'*Set\x20format:*\x20%0',o(_0x129c1e,this['_getTranslationKeyForListStyle'](_0x469cde['newValue'])))};let _0x973b53=_0x44644a['head'];for(;_0x973b53;){if(_0x973b53['data']&&'listType'==_0x973b53['data']['key']&&_0x973b53['data']['newValue']&&_0x973b53['data']['oldValue'])return _0x581ce4;_0x973b53=_0x973b53['next'];}return{'type':'format','content':o(_0x129c1e,'*Set\x20format:*\x20%0',o(_0x129c1e,'ELEMENT_'+_0x44644a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x17773f=this['editor'],_0x4d41ad=_0x17773f['locale'];_0x17773f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x492886=>{if('formatBlock'!=_0x492886['type'])return;const {data:_0xf45c99}=_0x492886;if(!_0xf45c99)return;let _0x296cf1,_0x360449;switch(_0xf45c99['commandName']){case'listStyle':_0x296cf1='*Change\x20to:*\x20%0',_0x360449={'type':'format','content':o(_0x4d41ad,_0x296cf1,o(_0x4d41ad,this['_getTranslationKeyForListStyle'](_0xf45c99['commandParams'][0x0]['type'])))};break;case'listReversed':_0x296cf1=_0xf45c99['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x360449={'type':'format','content':o(_0x4d41ad,_0x296cf1)};break;case'listStart':_0x296cf1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x360449={'type':'format','content':o(_0x4d41ad,_0x296cf1,_0xf45c99['commandParams'][0x0]['startIndex'])};}return _0x360449;});}['_getTranslationKeyForListStyle'](_0x4f0f61){return'ELEMENT_'+function(_0xd60820){if(ye['includes'](_0xd60820))return'bulleted';if(he['includes'](_0xd60820))return'numbered';return null;}(_0x4f0f61)['toUpperCase']()+'_LIST_'+_0x4f0f61['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],he=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x15c086{static get['requires'](){return[_0x331ec9];}['init'](){const _0x145bdc=this['editor'],_0x26dd5f=_0x145bdc['plugins']['get']('TrackChangesEditing'),_0x1bbfd6=_0x145bdc['commands']['get']('enter');_0x26dd5f['enableCommand']('enter',()=>{_0x145bdc['model']['change'](_0x3e2e5f=>{const _0x2f8f6f=_0x145bdc['model']['document']['selection'],_0x1412ce=_0x2f8f6f['getFirstPosition'](),_0x4a05b7=_0x948f0b['fromRange'](_0x2f8f6f['getFirstRange']());if(_0x1bbfd6['enterBlock'](_0x3e2e5f)){const _0x398739=_0x145bdc['model']['createPositionAt'](_0x1412ce['parent']['nextSibling'],0x0),_0x41a5cf=_0x3e2e5f['createRange'](_0x1412ce,_0x398739);_0x26dd5f['markInsertion'](_0x41a5cf);}else _0x3e2e5f['setSelection'](_0x3e2e5f['createRange'](_0x4a05b7['end']));_0x4a05b7['detach'](),_0x1bbfd6['fire']('afterExecute',{'writer':_0x3e2e5f});});}),_0x145bdc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x145bdc,'split'),{'priority':'high'}),_0x145bdc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x513bff,_0x51ce3d,_0x564e09)=>{const _0x5857fd=_0x564e09['mapper']['markerNameToElements'](_0x51ce3d['markerName']);if(_0x5857fd){for(const _0x5151d4 of _0x5857fd)_0x5151d4['hasClass']('ck-suggestion-marker-split')&&(_0x564e09['mapper']['unbindElementFromMarkerName'](_0x5151d4,_0x51ce3d['markerName']),_0x564e09['writer']['remove'](_0x5151d4));}},{'priority':'high'}),_0x145bdc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x120bdb,_0x13d002,_0x367812)=>{_0x367812['options']['showSuggestionHighlights']&&_e(_0x145bdc,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x120bdb,_0x13d002,_0x367812);},{'priority':'high'});}}class J extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x17a7e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x17a7e3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x17a7e3['enableCommand']('findNext'),_0x17a7e3['enableCommand']('findPrevious'),_0x17a7e3['enableCommand']('replace'),_0x17a7e3['enableCommand']('replaceAll');}['handleFindCommand'](_0x36e7be,_0x186b07,_0x2f9df2={}){const _0x40c6fe=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x36e7be(_0x58718c=>{let _0x28f1f3=('string'==typeof _0x186b07?_0x40c6fe['findByTextCallback'](_0x186b07,_0x2f9df2):_0x186b07)(_0x58718c);Array['isArray'](_0x28f1f3)&&(_0x28f1f3={'results':_0x28f1f3,'searchText':'string'==typeof _0x186b07?_0x186b07:''});const _0x522636=_0x28f1f3['results']['filter'](_0x1f0f77=>!0x1===this['_isInDeletionRange'](_0x1f0f77,_0x58718c['item']));return{..._0x28f1f3,'results':_0x522636};},_0x2f9df2);}['_isInDeletionRange'](_0x104728,_0x15f4f7){const _0x5b3e6f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15f4f7,_0x104728['start']),this['editor']['model']['createPositionAt'](_0x15f4f7,_0x104728['end']));for(const _0x380b52 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5b3e6f['getIntersection'](_0x380b52['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 _0x15c086{['afterInit'](){const _0x8be507=this['editor']['locale'],_0x31dda8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3584e1,commandName:_0x20b10b}of ro)this['editor']['plugins']['has'](_0x3584e1)&&(_0x31dda8['enableDefaultAttributesIntegration'](_0x20b10b),_0x31dda8['registerInlineAttribute'](_0x20b10b));_0x31dda8['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x8be507,'FORMAT_FONT_SIZE')),_0x31dda8['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x8be507,'FORMAT_FONT_FAMILY')),_0x31dda8['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x8be507,'FORMAT_FONT_COLOR')),_0x31dda8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x8be507,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd63c5d=this['editor'],_0x3a1b78=_0xd63c5d['locale'];_0xd63c5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24e15c=>{const _0x5cc437=_0x3a1b78['t'];if('formatInline'!=_0x24e15c['type'])return;const {data:_0x12d6c8}=_0x24e15c;if(null!=_0x12d6c8){if('fontSize'==_0x12d6c8['commandName']){const _0x2abbe4=_0x12d6c8['commandParams'][0x0]['value'];if(_0x2abbe4){const _0x2dfee5=_0x5cc437(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4315aa=>_0x4315aa['model']==_0x2abbe4)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3a1b78,'*Set\x20font\x20size:*\x20%0',_0x2dfee5)};}return{'type':'format','content':o(_0x3a1b78,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x12d6c8['commandName']){const _0x160dcd=_0x12d6c8['commandParams'][0x0]['value'];return _0x160dcd?{'type':'format','content':o(_0x3a1b78,'*Set\x20font\x20family:*\x20%0',_0x160dcd)}:{'type':'format','content':o(_0x3a1b78,'*Reset\x20font\x20family*')};}if('fontColor'==_0x12d6c8['commandName']){const _0xc45c32=_0x12d6c8['commandParams'][0x0]['value'];if(_0xc45c32){const _0xea44c3=_0x4c81bc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x57e583=>_0x57e583['model']==_0xc45c32);let _0x120941=_0xc45c32,_0x4eabed='';return _0xea44c3&&(_0x120941=_0xea44c3['label'],_0x4eabed=_0x5cc437(_0x120941)['toLowerCase']()),{'type':'format','content':o(_0x3a1b78,'*Set\x20font\x20color:*\x20%0',_0x4eabed)['trim'](),'color':{'value':_0xc45c32,'title':_0x4eabed||_0x120941}};}return{'type':'format','content':o(_0x3a1b78,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x12d6c8['commandName']){const _0x15d6c5=_0x12d6c8['commandParams'][0x0]['value'];if(_0x15d6c5){const _0x155ff0=_0x4c81bc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x589f71=>_0x589f71['model']==_0x15d6c5);let _0x5c993c=_0x15d6c5,_0x3ebc02='';return _0x155ff0&&(_0x5c993c=_0x155ff0['label'],_0x3ebc02=_0x5cc437(_0x5c993c)['toLowerCase']()),{'type':'format','content':o(_0x3a1b78,'*Set\x20font\x20background\x20color:*\x20%0',_0x3ebc02)['trim'](),'color':{'value':_0x15d6c5,'title':_0x3ebc02||_0x5c993c}};}return{'type':'format','content':o(_0x3a1b78,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x15c086{['afterInit'](){const _0x3f3f4e=this['editor'],_0x3ea6b5=_0x3f3f4e['plugins']['get']('TrackChangesEditing'),_0xce74f9=_0x3f3f4e['commands']['get']('copyFormat'),_0x5c10e7=_0x3f3f4e['commands']['get']('pasteFormat');_0xce74f9&&_0x5c10e7&&(_0x3ea6b5['enableDefaultAttributesIntegration']('pasteFormat'),_0x3ea6b5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x52b5b6=this['editor'],_0x33eea8=_0x52b5b6['locale'];_0x52b5b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52688d=>{if('formatBlock'!=_0x52688d['type']&&'formatInline'!=_0x52688d['type'])return;const {data:_0x134232}=_0x52688d;if(_0x134232&&'pasteFormat'===_0x134232['commandName']){const _0x137e02=[],_0x9d6696=_0x134232['commandParams'][0x0];for(const [_0x2c22eb,_0x3840d6]of Object['entries'](_0x9d6696))_0x137e02['push'](so(_0x52b5b6,_0x2c22eb,_0x3840d6));return _0x137e02['length']?{'type':'format','content':o(_0x33eea8,'*Set\x20format\x20to:*\x20%0',_0x137e02['join'](',\x20'))}:{'type':'format','content':o(_0x33eea8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x44b419,_0x45b78e,_0x19cdec){const _0x571946=_0x44b419['locale']['t'],_0x417efc=_0x45b78e['split'](/(?=[A-Z])/)['join']('\x20'),_0x154dbf=_0x571946(_0x417efc['charAt'](0x0)['toUpperCase']()+_0x417efc['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x19cdec)return _0x154dbf;if('fontColor'===_0x45b78e||'fontBackgroundColor'===_0x45b78e){const _0x57234e=_0x4c81bc(_0x44b419['config']['get']('fontColor.colors'))['find'](_0x1fd8e5=>_0x1fd8e5['model']==_0x19cdec);return _0x154dbf+'\x20('+(_0x57234e?_0x571946(_0x57234e['label'])['toLowerCase']():_0x19cdec)+')';}if('fontSize'===_0x45b78e&&isNaN(parseFloat(_0x19cdec))){const _0x3e1540=_0x44b419['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x44b419['config']['get']('fontSize.options'))['find'](_0x5c975b=>_0x5c975b['model']==_0x19cdec);return _0x154dbf+'\x20('+(_0x3e1540?_0x571946(_0x3e1540['title'])['toLowerCase']():_0x19cdec)+')';}return _0x154dbf+'\x20('+_0x19cdec+')';}class Y extends _0x15c086{['_headingOptions'];['afterInit'](){const _0x107cb1=this['editor'];if(!_0x107cb1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x107cb1['config']['get']('heading.options');const _0x2b622e=_0x107cb1['locale'],_0x24572c=_0x107cb1['plugins']['get']('TrackChangesEditing');_0x24572c['enableDefaultAttributesIntegration']('heading');for(const _0x34a234 of this['_headingOptions'])'paragraph'!=_0x34a234['model']&&_0x24572c['descriptionFactory']['registerElementLabel'](_0x34a234['model'],_0x35a209=>{const _0x319682=this['_getHeadingLevel'](_0x34a234['model']);return null!==_0x319682?_0x21dbfe(_0x35a209,_0x319682):_0x4c3ade(_0x35a209,_0x34a234['title']);});function _0x21dbfe(_0x5bff93,_0x570d08){return o(_0x2b622e,'ELEMENT_HEADING',[_0x5bff93,_0x570d08]);}function _0x4c3ade(_0x3ed080,_0x357946){return o(_0x2b622e,'ELEMENT_HEADING_CUSTOM',[_0x3ed080,_0x357946]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x551f85=this['editor'],_0x2a86a7=_0x551f85['locale'];function _0x1a5723(_0x3e3309,_0x501479){return o(_0x2a86a7,'ELEMENT_HEADING_CUSTOM',[_0x3e3309,_0x501479]);}_0x551f85['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb43243=>{if('formatBlock'!=_0xb43243['type'])return;const {data:_0x3c4386}=_0xb43243;if(_0x3c4386&&'heading'==_0x3c4386['commandName']){const _0x7fd84c=_0x3c4386['commandParams'][0x0]['value'],_0x35b88b=this['_getHeadingLevel'](_0x7fd84c);if(null!==_0x35b88b)return{'type':'format','content':o(_0x2a86a7,'*Change\x20to:*\x20%0',(_0x4092dc=0x1,_0x54de5e=_0x35b88b,o(_0x2a86a7,'ELEMENT_HEADING',[_0x4092dc,_0x54de5e])))};const _0xb5ce56=this['_headingOptions']['find'](_0x58ab57=>_0x58ab57['model']===_0x7fd84c)['title'];return{'type':'format','content':o(_0x2a86a7,'*Change\x20to:*\x20%0',_0x1a5723(0x1,_0xb5ce56))};}var _0x4092dc,_0x54de5e;});}['_getHeadingLevel'](_0x4a0462){const _0x557519=_0x4a0462['match'](/^heading(\d+)/);if(_0x557519)return _0x557519[0x1];const _0x11f35e=this['_headingOptions']?.['find'](_0x3535b1=>_0x3535b1['model']==_0x4a0462);if(_0x11f35e&&_0x11f35e['view']){const _0x18738b=_0x11f35e['view'],_0x1cd260=(_0x18738b['name']??_0x18738b)['match'](/^h(\d+)/);if(_0x1cd260)return _0x1cd260[0x1];}return null;}}class Z extends _0x15c086{['afterInit'](){const _0x4f57cd=this['editor'];if(!_0x4f57cd['plugins']['has']('HighlightEditing'))return;const _0x5462e8=_0x4f57cd['plugins']['get']('TrackChangesEditing'),_0x3c4090=_0x4f57cd['locale'];_0x5462e8['enableDefaultAttributesIntegration']('highlight'),_0x5462e8['registerInlineAttribute']('highlight'),_0x5462e8['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3c4090,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4664f3=this['editor'],_0x1b860d=_0x4664f3['locale'];_0x4664f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x104c96=>{if('formatInline'!=_0x104c96['type'])return;const {data:_0x4d2e41}=_0x104c96;if(_0x4d2e41&&'highlight'==_0x4d2e41['commandName']){const _0x14a355=_0x1b860d['t'],_0x311bd3=_0x4d2e41['commandParams'][0x0]['value'];if(_0x311bd3){const _0x3dd9d=_0x4664f3['config']['get']('highlight.options')['find'](_0x2c0c35=>_0x2c0c35['model']==_0x311bd3),_0x346f26=_0x14a355(_0x3dd9d['title'])['toLowerCase']();return{'type':'format','content':o(_0x1b860d,'*Set\x20highlight:*\x20%0',_0x346f26),'color':{'value':_0x3dd9d['color'],'title':_0x3dd9d['title']}};}return{'type':'format','content':o(_0x1b860d,'*Remove\x20highlight*',o(_0x1b860d,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x15c086{['afterInit'](){const _0x150f8f=this['editor'];if(!_0x150f8f['plugins']['has']('HorizontalLineEditing'))return;_0x150f8f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xa87649=_0x150f8f['plugins']['get']('TrackChangesEditing'),_0x4dfa5a=_0x150f8f['locale'];_0xa87649['descriptionFactory']['registerElementLabel']('horizontalLine',_0x112724=>o(_0x4dfa5a,'ELEMENT_HORIZONTAL_LINE',_0x112724)),_0x150f8f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xa64e80,{writer:_0x2580ac,options:_0x46c142})=>{if(!_0x46c142['showSuggestionHighlights'])return null;const _0x29281d=_0x2580ac['createContainerElement']('div'),_0x4e2702=_0x2580ac['createEmptyElement']('hr');return _0x2580ac['addClass']('ck-horizontal-line',_0x29281d),_0x2580ac['insert'](_0x2580ac['createPositionAt'](_0x29281d,0x0),_0x4e2702),_0x29281d;},'converterPriority':'high'});}}class et extends _0x15c086{['afterInit'](){const _0x5507ac=this['editor'];if(!_0x5507ac['plugins']['has']('HtmlEmbed'))return;const _0x5413ee=_0x5507ac['plugins']['get']('TrackChangesEditing'),_0x3edce3=_0x5507ac['locale'];_0x5413ee['descriptionFactory']['registerElementLabel']('rawHtml',_0x58ae99=>o(_0x3edce3,'ELEMENT_HTML_EMBED',_0x58ae99)),_0x5413ee['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5413ee['registerBlockAttribute']('value'),_0x5413ee['descriptionFactory']['registerDescriptionCallback'](_0x5620c4=>{if('attribute'!=_0x5620c4['type'])return;const {data:_0x13593f}=_0x5620c4;if(_0x13593f&&'value'==_0x13593f['key']&&_0x5620c4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x553fb0=o(_0x3edce3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3edce3,'*Change\x20%0\x20content*',_0x553fb0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdb2974=this['editor'],_0x2faa40=_0xdb2974['locale'];_0xdb2974['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2af0e1=>{if('formatBlock'!=_0x2af0e1['type'])return;const {data:_0x52a83f}=_0x2af0e1;if(_0x52a83f&&'htmlEmbed'==_0x52a83f['commandName']){const _0x238aea=o(_0x2faa40,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2faa40,'*Change\x20%0\x20content*',_0x238aea)};}});}}class it extends _0x15c086{['afterInit'](){const _0x31b339=this['editor'];if(!_0x31b339['plugins']['has']('ImageEditing'))return;const _0x507c92=_0x31b339['plugins']['get']('TrackChangesEditing'),_0xcc3710=_0x31b339['plugins']['get']('ImageUtils'),_0x1813da=_0x31b339['locale'];_0x507c92['enableCommand']('insertImage'),_0x507c92['descriptionFactory']['registerElementLabel']('imageBlock',_0x5a25d3=>o(_0x1813da,'ELEMENT_IMAGE',_0x5a25d3)),_0x507c92['descriptionFactory']['registerElementLabel']('imageInline',_0x2baad9=>o(_0x1813da,'ELEMENT_INLINE_IMAGE',_0x2baad9)),_0x507c92['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1813da,'ELEMENT_CAPTION')),_0x31b339['plugins']['has']('ImageUploadEditing')&&_0x507c92['enableCommand']('uploadImage'),_0x31b339['plugins']['has']('ImageBlockEditing')&&_0x31b339['plugins']['has']('ImageInlineEditing')&&(_0x507c92['enableCommand']('imageTypeInline',(_0x3ef9c7,_0x1fb237)=>{const _0x383ca2=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']);_0x31b339['model']['change'](()=>{_0x507c92['markBlockFormat'](_0x383ca2,{'commandName':'imageTypeInline','commandParams':[_0x1fb237]},[],'convertBlockImageToInline');});}),_0x507c92['enableCommand']('imageTypeBlock',(_0x569b05,_0x57f567)=>{_0x31b339['model']['change'](_0x108300=>{let _0x595c94=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']),_0x4a2159=_0x108300['createRangeOn'](_0x595c94);const _0x4d4cfa=_0x5337e8['fromPosition'](_0x4a2159['start'],'toPrevious'),_0x335d66=_0x5337e8['fromPosition'](_0x4a2159['end'],'toNext');_0x507c92['forceDefaultExecution'](()=>_0x569b05(_0x57f567)),_0x595c94=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']),_0x4a2159=_0x108300['createRangeOn'](_0x595c94);const _0xaecba0=_0x108300['createRange'](_0x4d4cfa,_0x335d66);_0x4d4cfa['detach'](),_0x335d66['detach'](),_0x507c92['markBlockFormat'](_0x595c94,{'commandName':'imageTypeInline','commandParams':[_0x57f567]},[],'convertInlineImageToBlock'),_0xaecba0['start']['isBefore'](_0x4a2159['start'])&&_0x507c92['markInsertion'](_0x108300['createRange'](_0xaecba0['start'],_0x4a2159['start']),'convertInlineImageToBlock'),_0x4a2159['end']['isBefore'](_0xaecba0['end'])&&_0x507c92['markInsertion'](_0x108300['createRange'](_0x4a2159['end'],_0xaecba0['end']),'convertInlineImageToBlock');});}),_0x507c92['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x507c92['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x507c92['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x507c92['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x507c92['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x507c92['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x54d704])=>{const _0x24236b=_0x507c92['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x21b50f=_0x54d704['start'],_0x57acdd=_0x54d704['end'];const _0x5153fc=_0x31b339['model']['schema']['getNearestSelectionRange'](_0x21b50f,'backward'),_0x10135a=_0x31b339['model']['schema']['getNearestSelectionRange'](_0x57acdd,'forward');_0x5153fc['isCollapsed']&&(_0x21b50f=_0x5153fc['start']),_0x10135a['isCollapsed']&&(_0x57acdd=_0x10135a['end']),_0x24236b([_0x31b339['model']['createRange'](_0x21b50f,_0x57acdd)]);}),_0x507c92['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x689873),_0x507c92['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x689873)),_0x31b339['plugins']['has']('ImageCaptionEditing')&&(_0x507c92['enableCommand']('toggleImageCaption',(_0x196da3,_0x3d2d93)=>{const _0xfe7e52=_0x31b339['plugins']['get']('ImageCaptionUtils');let _0x3ddb79=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']),_0x603b79=_0xfe7e52['getCaptionFromImageModelElement'](_0x3ddb79);_0x31b339['model']['change'](()=>{if(_0x603b79)return void _0x507c92['markDeletion'](_0x31b339['model']['createRangeOn'](_0x603b79));const _0x36f62e=_0xcc3710['isBlockImage'](_0x3ddb79);_0x196da3(_0x3d2d93),_0x3ddb79=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']),_0x603b79=_0xfe7e52['getCaptionFromImageModelElement'](_0x3ddb79),_0x507c92['markInsertion'](_0x31b339['model']['createRangeOn'](_0x603b79),_0x36f62e?null:'imageCaption');});}),_0x507c92['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x689873));const _0x4bca0a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2769db(_0x939b51,_0x194896){const _0x3e49b3=_0x4bca0a['findIndex'](({type:_0x2071be,subType:_0x49023c})=>_0x939b51['type']==_0x2071be&&_0x939b51['subType']==_0x49023c),_0x226455=_0x4bca0a['findIndex'](({type:_0x249dfd,subType:_0x22f256})=>_0x194896['type']==_0x249dfd&&_0x194896['subType']==_0x22f256);if(_0x3e49b3<0x0||_0x226455<0x0)return!0x1;const _0x369fb4=_0x939b51['getFirstRange'](),_0x262798=_0x194896['getFirstRange']();if((0x0==_0x3e49b3||0x1==_0x3e49b3)&&0x2==_0x226455&&_0x369fb4['isIntersecting'](_0x262798))return!0x0;if(0x2==_0x3e49b3&&0x3==_0x226455){const _0x5b368b=_0x507c92['_findSuggestions'](_0x369fb4,'insertion')['filter'](({suggestion:_0x2c4bd8,meta:_0xc988dd})=>_0xc988dd['isOwn']&&'convertInlineImageToBlock'==_0x2c4bd8['subType']);if(_0x5b368b['length']>0x1&&_0x262798['end']['isEqual'](_0x369fb4['start']))return!0x0;if(0x1==_0x5b368b['length']&&(_0x369fb4['start']['isEqual'](_0x262798['end'])||_0x369fb4['end']['isEqual'](_0x262798['start'])))return!0x0;}if(0x3==_0x3e49b3&&0x3==_0x226455&&_0x369fb4['start']['isBefore'](_0x262798['start'])){const _0x13b6a1=_0x369fb4['end']['nodeAfter'],_0x2bf691=_0x262798['start']['nodeBefore'];return _0xcc3710['isBlockImage'](_0x13b6a1)&&_0x13b6a1===_0x2bf691;}return!0x1;}function _0x689873(_0x26e5ce,_0x2a0430){return _0x2769db(_0x26e5ce,_0x2a0430)?[_0x26e5ce,_0x2a0430]:_0x2769db(_0x2a0430,_0x26e5ce)?[_0x2a0430,_0x26e5ce]:null;}_0x31b339['plugins']['has']('ImageResize')&&(_0x507c92['enableDefaultAttributesIntegration']('resizeImage'),_0x507c92['registerBlockAttribute']('resizedWidth'),_0x507c92['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1813da,'FORMAT_IMAGE_SIZE'))),_0x31b339['plugins']['has']('ImageTextAlternativeEditing')&&(_0x507c92['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x507c92['registerBlockAttribute']('alt')),_0x507c92['descriptionFactory']['registerDescriptionCallback'](_0x218c73=>{if(!!_0x4bca0a['find'](({type:_0x461f49,subType:_0x18a8f2})=>_0x218c73['type']==_0x461f49&&_0x218c73['subType']==_0x18a8f2))return _0x218c73['previous']?{}:void 0x0;}),_0x507c92['descriptionFactory']['registerDescriptionCallback'](_0x1eaa55=>{if('insertion'==_0x1eaa55['type']||'deletion'==_0x1eaa55['type']){const _0x17ba4e=_0x1eaa55['getContainedElement']();if(_0x17ba4e&&_0x17ba4e['is']('element','caption'))return{'type':'insertion'==_0x1eaa55['type']?'addObject':'removeObject','element':_0x17ba4e,'quantity':0x1};}}),_0x507c92['descriptionFactory']['registerDescriptionCallback'](_0x11bc7b=>'formatBlock'==_0x11bc7b['type']&&'convertInlineImageToBlock'==_0x11bc7b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x11bc7b['type']&&'convertBlockImageToInline'==_0x11bc7b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x507c92['descriptionFactory']['registerDescriptionCallback'](_0x42e072=>{if('attribute'!=_0x42e072['type'])return;const {data:_0x4c8317}=_0x42e072;if(!_0x4c8317||'alt'!=_0x4c8317['key'])return;const _0x46be88=_0x4c8317['newValue'];return _0x46be88?{'type':'format','content':o(_0x1813da,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x46be88+'\x22')}:{'type':'format','content':o(_0x1813da,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x166dd4=this['editor'],_0x1103c9=_0x166dd4['locale'];_0x166dd4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6d3e08=>{if('formatBlock'!=_0x6d3e08['type']&&'formatInline'!=_0x6d3e08['type'])return;const {data:_0x366bf1}=_0x6d3e08;if(_0x366bf1){if('imageTextAlternative'==_0x366bf1['commandName']){const _0x1f661f=_0x366bf1['commandParams'][0x0]['newValue'];return _0x1f661f?{'type':'format','content':o(_0x1103c9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1f661f+'\x22')}:{'type':'format','content':o(_0x1103c9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x366bf1['commandName']){const _0x257c6f=_0x366bf1['commandParams'][0x0]['width'];return _0x257c6f?{'type':'format','content':o(_0x1103c9,'*Set\x20image\x20width:*\x20%0',_0x257c6f)}:{'type':'format','content':o(_0x1103c9,'*Reset\x20image\x20width*')};}}});}}class st extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1edf4f=this['editor']['locale'],_0x661499=this['editor']['plugins']['get']('TrackChangesEditing');_0x661499['enableDefaultAttributesIntegration']('replaceImageSource'),_0x661499['registerBlockAttribute']('src'),_0x661499['descriptionFactory']['registerDescriptionCallback'](_0x2bbf5e=>{if('attribute'!=_0x2bbf5e['type'])return;const {data:_0x9b951a}=_0x2bbf5e;return _0x9b951a&&'src'==_0x9b951a['key']?_0x9b951a['newValue']&&_0x9b951a['oldValue']?{'type':'format','content':o(_0x1edf4f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5b11d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b11d3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5b11d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b11d3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5b11d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54179e=this['editor'],_0x22054e=_0x54179e['locale'];_0x54179e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x388ea7=>{if('formatBlock'!=_0x388ea7['type']&&'formatInline'!=_0x388ea7['type'])return;const {data:_0x3a4cae}=_0x388ea7;if(!_0x3a4cae||'replaceImageSource'!=_0x3a4cae['commandName'])return;return{'type':'format','content':o(_0x22054e,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x15c086{['afterInit'](){const _0x352768=this['editor'];if(!_0x352768['plugins']['has']('ImageStyleEditing'))return;const _0x42fd59=_0x352768['plugins']['get']('TrackChangesEditing'),_0x2c26fa=_0x352768['plugins']['get']('ImageUtils'),_0x28a5f0={};_0x42fd59['enableCommand']('imageStyle',(_0x11fe1d,_0x7f1bbb)=>{const _0x5e7759=_0x352768['plugins']['get']('Users')['me'],_0x2a436a=_0x352768['commands']['get']('imageStyle');let _0x3abbf2=_0x2c26fa['getClosestSelectedImageElement'](_0x352768['model']['document']['selection']),_0x3a4d75=_0x352768['model']['createRangeOn'](_0x3abbf2),_0xcd7e6a=_0x2a436a['value'];if(_0xcd7e6a==_0x7f1bbb['value'])return;const _0x2cb152={'commandName':'imageStyle','commandParams':[_0x7f1bbb],'formatGroupId':_0x27f732()};_0x352768['model']['change'](()=>{if(_0x42fd59['getSuggestions']()['filter'](_0x120ec1=>_0x120ec1['isInContent']&&_0x5e7759==_0x120ec1['author']&&('formatBlock'==_0x120ec1['type']||'formatInline'==_0x120ec1['type'])&&('imageStylePreApply'==_0x120ec1['subType']||'imageStylePostApply'==_0x120ec1['subType'])&&_0x120ec1['getFirstRange']()['isEqual'](_0x3a4d75))['forEach'](_0x380297=>_0x42fd59['discardSuggestion'](_0x380297['head'])),_0x3abbf2=_0x2c26fa['getClosestSelectedImageElement'](_0x352768['model']['document']['selection']),_0x3a4d75=_0x352768['model']['createRangeOn'](_0x3abbf2),_0x2a436a['refresh'](),_0x352768['commands']['get']('imageTypeInline')['refresh'](),_0x352768['commands']['get']('imageTypeBlock')['refresh'](),_0xcd7e6a=_0x2a436a['value'],_0xcd7e6a!=_0x7f1bbb['value'])return _0x2c26fa['isInlineImage'](_0x3abbf2)&&_0x2a436a['shouldConvertImageType'](_0x7f1bbb['value'],_0x3abbf2)?(_0x11fe1d({..._0x7f1bbb,'setImageSizes':!0x1}),_0x3abbf2=_0x2c26fa['getClosestSelectedImageElement'](_0x352768['model']['document']['selection']),void _0x42fd59['markBlockFormat'](_0x3abbf2,{..._0x2cb152,'commandReversedParams':[{'value':_0xcd7e6a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c26fa['isBlockImage'](_0x3abbf2)?_0x42fd59['markBlockFormat'](_0x3abbf2,_0x2cb152,[],'imageStylePostApply'):_0x42fd59['markInlineFormat'](_0x3a4d75,_0x2cb152,'imageStylePostApply'));});});for(const _0xa5d8ca of _0x352768['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x28a5f0[_0xa5d8ca['name']]=_0xa5d8ca['title']['toLowerCase']();_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x546f57])=>{_0x2c26fa['setImageNaturalSizeAttributes'](_0x546f57['getContainedElement']());}),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2afec7,_0x5f1574)=>{_0x42fd59['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2afec7,{'commandName':_0x5f1574['commandName'],'commandParams':_0x5f1574['commandReversedParams']});}),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4362ab,_0x3fcf30){if(_0x20fcc8(_0x4362ab,_0x3fcf30))return[_0x4362ab,_0x3fcf30];if(_0x20fcc8(_0x3fcf30,_0x4362ab))return[_0x3fcf30,_0x4362ab];return null;});const _0xb3ad41=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x20fcc8(_0x18ca42,_0x27297a){const _0x541dd3=_0xb3ad41['findIndex'](({type:_0x3d2864,subType:_0x5a5a43})=>_0x18ca42['type']==_0x3d2864&&_0x18ca42['subType']==_0x5a5a43),_0x3510a0=_0xb3ad41['findIndex'](({type:_0x1f8674,subType:_0x4b27ce})=>_0x27297a['type']==_0x1f8674&&_0x27297a['subType']==_0x4b27ce);if(_0x541dd3<0x0||_0x3510a0<0x0)return!0x1;const _0x3f8f28=_0x18ca42['getFirstRange'](),_0x58d3ef=_0x27297a['getFirstRange']();if((0x0==_0x541dd3||0x1==_0x541dd3)&&0x2==_0x3510a0&&_0x3f8f28['isIntersecting'](_0x58d3ef))return!0x0;if(0x2==_0x541dd3&&0x3==_0x3510a0){const _0x451c46=_0x42fd59['_findSuggestions'](_0x3f8f28,'insertion')['filter'](({suggestion:_0x52bf23,meta:_0x3f07a4})=>_0x3f07a4['isOwn']&&'convertInlineImageToBlock'==_0x52bf23['subType']);if(_0x451c46['length']>0x1&&_0x58d3ef['end']['isEqual'](_0x3f8f28['start']))return!0x0;if(0x1==_0x451c46['length']&&(_0x3f8f28['start']['isEqual'](_0x58d3ef['end'])||_0x3f8f28['end']['isEqual'](_0x58d3ef['start'])))return!0x0;}if(0x3==_0x541dd3&&0x3==_0x3510a0&&_0x3f8f28['start']['isBefore'](_0x58d3ef['start'])){const _0x503b70=_0x3f8f28['end']['nodeAfter'],_0x52ea17=_0x58d3ef['start']['nodeBefore'];return _0x2c26fa['isBlockImage'](_0x503b70)&&_0x503b70===_0x52ea17;}return!0x1;}_0x352768['model']['document']['registerPostFixer'](()=>{let _0xeeaf2a=!0x1;const _0x101236=Array['from'](_0x352768['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1feacf,data:_0x2de0b3}of _0x101236){const {group:_0x2d34ec,type:_0x38b77f,subType:_0x531f5a,id:_0x2e5f27}=_0x42fd59['_splitMarkerName'](_0x1feacf);if('suggestion'==_0x2d34ec&&_0x42fd59['hasSuggestion'](_0x2e5f27)){if('formatBlock'==_0x38b77f&&('imageStylePreApply'==_0x531f5a||'imageStylePostApply'==_0x531f5a)){const _0x1961d2=_0x42fd59['getSuggestion'](_0x2e5f27);if(_0x2de0b3['newRange']){const _0x1463fb=_0x1961d2['getFirstRange']()['getContainedElement']();if(_0x2c26fa['isBlockImage'](_0x1463fb))continue;_0x42fd59['discardSuggestion'](_0x1961d2),_0xeeaf2a=!0x0;}}if('insertion'==_0x38b77f&&'imageCaption'==_0x531f5a&&!_0x2de0b3['newRange']){const _0x1e9813=_0x42fd59['getSuggestion'](_0x2e5f27);_0x1e9813['next']&&_0x1e9813['next']['isInContent']&&(_0x42fd59['discardSuggestion'](_0x1e9813['next']),_0xeeaf2a=!0x0);}}}return _0xeeaf2a;}),this['_registerLegacyDescription'](_0x28a5f0);}['_registerLegacyDescription'](_0x154d95){const _0x5565b9=this['editor'],_0x1c0805=_0x5565b9['locale'];_0x5565b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e2c7c=>{if('formatBlock'!=_0x3e2c7c['type']&&'formatInline'!=_0x3e2c7c['type'])return;const {data:_0x612bfa}=_0x3e2c7c;if(!_0x612bfa||'imageStyle'!=_0x612bfa['commandName'])return;const _0xb45156=_0x612bfa['commandParams'][0x0]['value'];return _0x5e3cb8('side'===_0xb45156?o(_0x1c0805,'FORMAT_SIDE_IMAGE'):_0x154d95[_0xb45156]||_0xb45156);function _0x5e3cb8(_0x4aa193){return{'type':'format','content':o(_0x1c0805,'*Format:*\x20%0',_0x4aa193)};}});}}class ot extends _0x15c086{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x59fbd1){super(_0x59fbd1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4edce5=this['editor'],_0x3033a7=_0x4edce5['commands']['get']('importWord'),_0x9cbf10=_0x4edce5['commands']['get']('trackChanges');_0x3033a7&&(_0x3033a7['on']('execute',(_0x520a8c,[,_0x3b826b])=>{this['_trackChangesValueDuringImport']=_0x9cbf10['value'],_0x3b826b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3033a7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3033a7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x9cbf10['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4edce5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x423549,_0x52ae7b){const {suggestions:_0x43e8da}=_0x52ae7b,_0x161e82=this['editor']['commands']['get']('trackChanges'),_0xac4f53=_0x161e82['value'];this['_trackChangesValueDuringImport']!==_0xac4f53&&(_0x161e82['execute'](),this['_trackChangesExecuted']=!0x0),_0x43e8da&&_0x43e8da['forEach'](({id:_0x43bf27,type:_0x26eef0,author:_0x16d92a,created_at:_0x54dc6f})=>{const _0xb7d41d={'id':_0x43bf27,'type':_0x26eef0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x16d92a,'createdAt':_0x54dc6f?new Date(_0x54dc6f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb7d41d);});}}class rt extends _0x15c086{['afterInit'](){const _0x4c0fa2=this['editor'],_0x2b23a8=_0x4c0fa2['plugins']['get']('TrackChangesEditing');if(_0x4c0fa2['plugins']['has']('IndentEditing')&&(_0x2b23a8['enableCommand']('indent'),_0x2b23a8['enableCommand']('outdent')),_0x4c0fa2['plugins']['has']('IndentBlock')){for(const _0x42a5d6 of['indentBlock','outdentBlock'])_0x2b23a8['enableDefaultAttributesIntegration'](_0x42a5d6);}const _0x28dc62=_0x4c0fa2['locale'];_0x2b23a8['registerBlockAttribute']('blockIndent'),_0x2b23a8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x28dc62,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x166b5c=this['editor'],_0x4e3f96=_0x166b5c['locale'],_0x3164df=_0x166b5c['plugins']['get']('TrackChangesEditing');_0x3164df['descriptionFactory']['registerDescriptionCallback'](_0x14162e=>{if('formatBlock'!=_0x14162e['type'])return;const {data:_0x5067ed}=_0x14162e;if(!_0x5067ed)return;if('indentBlock'!=_0x5067ed['commandName']&&'outdentBlock'!=_0x5067ed['commandName'])return;const _0x28df0d=_0x14162e['getItems']()[0x0],_0x21b63d=_0x3164df['descriptionFactory']['getItemLabel'](_0x28df0d);return'indentBlock'==_0x5067ed['commandName']?{'type':'format','content':o(_0x4e3f96,'*Indent:*\x20%0',_0x21b63d)}:'outdentBlock'==_0x5067ed['commandName']?{'type':'format','content':o(_0x4e3f96,'*Outdent:*\x20%0',_0x21b63d)}:void 0x0;});}}class at extends _0x15c086{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x15c086{['afterInit'](){const _0xd5b25f=this['editor'];if(!_0xd5b25f['plugins']['has']('LinkEditing'))return;const _0x3f32da=_0xd5b25f['plugins']['get']('TrackChangesEditing'),_0x2b14e8=_0xd5b25f['commands']['get']('link');_0x3f32da['enableDefaultAttributesIntegration']('link'),_0x3f32da['enableDefaultAttributesIntegration']('unlink'),_0x3f32da['registerInlineAttribute']('linkHref');for(const _0x22b218 of _0x2b14e8['manualDecorators'])_0x3f32da['registerInlineAttribute'](_0x22b218['id']),_0x3f32da['descriptionFactory']['registerAttributeLabel'](_0x22b218['id'],'link\x20('+_0x22b218['label']['toLowerCase']()+')');_0x3f32da['descriptionFactory']['registerDescriptionCallback'](_0x5bc176=>{if('attribute'!=_0x5bc176['type'])return;const {data:_0x23a0fd}=_0x5bc176;if(!_0x23a0fd||'linkHref'!=_0x23a0fd['key'])return;const _0x1a3637=_0x23a0fd['newValue'],_0x4e4dcd=_0xd5b25f['locale'];return{'type':'format','content':null==_0x1a3637?o(_0x4e4dcd,'*Remove\x20link*'):o(_0x4e4dcd,'*Set\x20link:*\x20%0','\x22'+_0x1a3637+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55c9c1=this['editor'],_0x5efc6f=_0x55c9c1['locale'];_0x55c9c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x117157=>{if('formatInline'!=_0x117157['type'])return;const {data:_0x3c12e9}=_0x117157;if(_0x3c12e9){if('link'==_0x3c12e9['commandName']){const _0x3e51d0=_0x3c12e9['commandParams'][0x0];return{'type':'format','content':o(_0x5efc6f,'*Set\x20link:*\x20%0','\x22'+_0x3e51d0+'\x22')};}return'unlink'==_0x3c12e9['commandName']?{'type':'format','content':o(_0x5efc6f,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x15c086{['afterInit'](){const _0x1fdcd2=this['editor'],_0xb9edcb=_0x1fdcd2['locale'];if(!_0x1fdcd2['plugins']['has']('LegacyListEditing'))return;const _0x32286d=_0x1fdcd2['plugins']['get']('TrackChangesEditing'),_0x2966a1=_0x1fdcd2['plugins']['has']('LegacyTodoListEditing');function _0x1c4205(_0x3ff8fa){return()=>{const _0x1f1d83=_0x1fdcd2['model']['document']['selection'],_0x184884=_0x1fdcd2['commands']['get'](_0x3ff8fa);if(_0x184884['value'])return void _0x1fdcd2['execute']('paragraph',{});const _0x1be8a8=_0x3ff8fa['slice'](0x0,-0x4),_0x2fdc70=function(_0x3654af,_0x1d0a87,_0x443f3b){let _0x23fb67=Array['from'](_0x3654af)['filter'](_0x528b3a=>function(_0x330caf,_0x55adfb){return _0x55adfb['checkChild'](_0x330caf['parent'],'listItem')&&!_0x55adfb['isObject'](_0x330caf);}(_0x528b3a,_0x443f3b));_0x23fb67=_0x23fb67['filter'](_0x2f6a11=>!_0x2f6a11['is']('element','listItem')||_0x2f6a11['getAttribute']('listType')!=_0x1d0a87);const _0x4ed51e=new Set();for(const _0x2160d7 of _0x23fb67)_0x2160d7['is']('element','listItem')?_0x4ed51e['add'](fe(_0x2160d7)):_0x4ed51e['add'](_0x2160d7);return Array['from'](_0x4ed51e);}(_0x1f1d83['getSelectedBlocks'](),_0x1be8a8,_0x1fdcd2['model']['schema']);_0x1fdcd2['model']['change'](()=>{for(const _0xd3305e of _0x2fdc70)_0x32286d['markBlockFormat'](_0xd3305e,{'commandName':_0x3ff8fa,'commandParams':[{'forceValue':!_0x184884['value']}],'formatGroupId':'blockName'},ue(_0xd3305e));});};}function _0x512129(_0x175b93){return()=>{const _0x5bf4fe=function(_0x4e4290){let _0x52b192=Array['from'](_0x4e4290);const _0xc73900=_0x52b192['findIndex'](_0xcb0cb4=>'listItem'!=_0xcb0cb4['name']);return _0xc73900>-0x1&&(_0x52b192=_0x52b192['slice'](0x0,_0xc73900)),_0x52b192;}(_0x1fdcd2['model']['document']['selection']['getSelectedBlocks']()),_0x29c4cb=_0x1fdcd2['model']['createRange'](_0x1fdcd2['model']['createPositionAt'](_0x5bf4fe[0x0],'before'),_0x1fdcd2['model']['createPositionAt'](_0x5bf4fe[_0x5bf4fe['length']-0x1],'end'));_0x1fdcd2['model']['change'](()=>{_0x32286d['markBlockFormat'](_0x29c4cb,{'commandName':_0x175b93,'commandParams':[],'formatGroupId':'listIndent'},function(_0x596e65){const _0x181289=new Set();for(const _0x5e4857 of _0x596e65){let _0x5dc94e=_0x5e4857['nextSibling'];for(;_0x5dc94e&&_0x5dc94e['getAttribute']('listIndent')>_0x5e4857['getAttribute']('listIndent');)_0x181289['add'](_0x5dc94e),_0x5dc94e=_0x5dc94e['nextSibling'];}return Array['from'](_0x181289);}(_0x5bf4fe));});};}_0x32286d['enableCommand']('numberedList',_0x1c4205('numberedList')),_0x32286d['enableCommand']('bulletedList',_0x1c4205('bulletedList')),_0x2966a1&&_0x32286d['enableCommand']('todoList',_0x1c4205('todoList')),_0x32286d['enableCommand']('indentList',_0x512129('indentList')),_0x32286d['enableCommand']('outdentList',_0x512129('outdentList')),_0x2966a1&&_0x32286d['enableCommand']('checkTodoList',()=>{const _0x26f183=_0x1fdcd2['commands']['get']('checkTodoList'),_0x2bf7bb=Array['from'](_0x26f183['_selectedElements']);_0x2bf7bb['filter'](_0x28b3eb=>_0x28b3eb['getAttribute']('todoListChecked')!=_0x26f183['value']),_0x1fdcd2['model']['change'](()=>{for(const _0xde4f45 of _0x2bf7bb)_0x32286d['markBlockFormat'](_0xde4f45,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x26f183['value']}]});});}),_0x32286d['descriptionFactory']['registerElementLabel']('listItem',_0x1677ec=>o(_0xb9edcb,'ELEMENT_LIST_ITEM',_0x1677ec)),_0x32286d['descriptionFactory']['registerDescriptionCallback'](_0x1ed971=>{if('formatBlock'!=_0x1ed971['type']&&'formatInline'!=_0x1ed971['type'])return;const {data:_0xc2de4d}=_0x1ed971;if(_0xc2de4d){if('numberedList'==_0xc2de4d['commandName']||'bulletedList'==_0xc2de4d['commandName']||'todoList'==_0xc2de4d['commandName'])switch(_0xc2de4d['commandName']['replace']('List','')){case'bulleted':return _0x55bc59(o(_0xb9edcb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55bc59(o(_0xb9edcb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55bc59(o(_0xb9edcb,'ELEMENT_TODO_LIST'));}if('indentList'==_0xc2de4d['commandName'])return{'type':'format','content':o(_0xb9edcb,'*Indent:*\x20%0',o(_0xb9edcb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xc2de4d['commandName'])return{'type':'format','content':o(_0xb9edcb,'*Outdent:*\x20%0',o(_0xb9edcb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xc2de4d['commandName'])return _0xc2de4d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb9edcb,'*Check\x20item*')}:{'type':'format','content':o(_0xb9edcb,'*Uncheck\x20item*')};}function _0x55bc59(_0x3860a1){return{'type':'format','content':o(_0xb9edcb,'*Change\x20to:*\x20%0',_0x3860a1)};}});}}function fe(_0x4713cc){const _0x186350=_0x4713cc['getAttribute']('listIndent');if(0x0==_0x186350)return _0x4713cc;let _0x4c7b4b=_0x4713cc;for(;_0x4713cc['previousSibling']&&_0x4713cc['previousSibling']['is']('element','listItem');){const _0x32ff2a=_0x4713cc['previousSibling']['getAttribute']('listIndent');if(_0x32ff2a==_0x186350)_0x4c7b4b=_0x4713cc['previousSibling'];else{if(_0x32ff2a<_0x186350)break;}_0x4713cc=_0x4713cc['previousSibling'];}return _0x4c7b4b;}function ue(_0x23f063){const _0x355538=[];if(_0x23f063['is']('element','listItem')&&_0x23f063['getAttribute']('listIndent')>0x0){let _0x1433ab=_0x23f063['nextSibling'];for(;_0x1433ab&&'listItem'==_0x1433ab['name']&&_0x1433ab['getAttribute']('listIndent')==_0x23f063['getAttribute']('listIndent');)_0x355538['push'](_0x1433ab),_0x1433ab=_0x1433ab['nextSibling'];}return _0x355538;}class K extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x13f2d9=this['editor']['config']['get']('list.properties'),_0x410b08=this['editor']['plugins']['get']('TrackChangesEditing');_0x13f2d9['styles']&&_0x410b08['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x13f2d9['reversed']&&_0x410b08['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x13f2d9['startIndex']&&_0x410b08['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x410b08['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xcb61ff,_0x46d17d={}){const _0x416761=this['editor']['plugins']['get']('TrackChangesEditing'),_0x538ba1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x416761['markMultiRangeBlockFormat'](_0x538ba1,{'commandName':'listStyle','commandParams':[{'type':_0x46d17d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1c589f,_0x500b2b={}){const _0x18d498=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c8e73=this['_getSuggestionBlocks'](_0x40a3ac=>_0x40a3ac['is']('element','listItem')&&'numbered'===_0x40a3ac['getAttribute']('listType'));if(_0x2c8e73['length']<0x1)return;const _0x49681f=_0x2c8e73['map'](_0x1a8ceb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a8ceb,'before'),this['editor']['model']['createPositionAt'](_0x1a8ceb,0x0)));this['editor']['model']['change'](()=>{_0x18d498['markMultiRangeBlockFormat'](_0x49681f,{'commandName':'listReversed','commandParams':[{'reversed':_0x500b2b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3e2bca,_0x19e3bc={}){const _0x46f8bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x329746=this['_getSuggestionBlocks'](_0x2535e1=>_0x2535e1['is']('element','listItem')&&'numbered'===_0x2535e1['getAttribute']('listType'));if(_0x329746['length']<0x1)return;const _0x4db993=_0x329746['map'](_0xfee5dc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xfee5dc,'before'),this['editor']['model']['createPositionAt'](_0xfee5dc,0x0)));this['editor']['model']['change'](()=>{_0x46f8bc['markMultiRangeBlockFormat'](_0x4db993,{'commandName':'listStart','commandParams':[{'startIndex':_0x19e3bc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x15230c){if('formatBlock'!=_0x15230c['type']&&'formatInline'!=_0x15230c['type'])return;const _0x59bb6a=this['editor']['locale'],{data:_0x213554}=_0x15230c;if(!_0x213554)return;let _0x3bcb90,_0x4c60c6;switch(_0x213554['commandName']){case'listStyle':_0x3bcb90='*Change\x20to:*\x20%0',_0x4c60c6={'type':'format','content':o(_0x59bb6a,_0x3bcb90,o(_0x59bb6a,this['_getTranslationKeyForListStyle'](_0x213554['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bcb90=_0x213554['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4c60c6={'type':'format','content':o(_0x59bb6a,_0x3bcb90)};break;case'listStart':_0x3bcb90='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c60c6={'type':'format','content':o(_0x59bb6a,_0x3bcb90,_0x213554['commandParams'][0x0]['startIndex'])};}return _0x4c60c6;}['_getSuggestionBlocksForListStyle'](){const _0x589735=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a8bd0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5a8bd0[0x0]?.['is']('element','listItem')&&_0x5a8bd0['unshift'](..._0x589735['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5a8bd0[_0x5a8bd0['length']-0x1]?.['is']('element','listItem')&&_0x5a8bd0['push'](..._0x589735['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5a8bd0=[...new Set(_0x5a8bd0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5a8bd0=_0x5a8bd0['filter'](_0x141eb2=>_0x141eb2['is']('element','listItem'))),_0x5a8bd0;}['_getSuggestionBlocks'](_0x79eff2){const _0x13d59e=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e6b3c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x79eff2)['map'](_0x5232fc=>{const _0xd7029=this['editor']['model']['createPositionAt'](_0x5232fc,0x0);return[..._0x13d59e['getSiblingNodes'](_0xd7029,'backward'),..._0x13d59e['getSiblingNodes'](_0xd7029,'forward')];})['flat']();return _0x5e6b3c=[...new Set(_0x5e6b3c)],_0x5e6b3c;}['_getTranslationKeyForListStyle'](_0xca247b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xca247b)||'default')['toUpperCase']()+'_LIST_'+_0xca247b['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x15c086{['afterInit'](){const _0x44fe3c=this['editor'];if(!_0x44fe3c['plugins']['has']('MediaEmbedEditing'))return;const _0x3e763b=_0x44fe3c['plugins']['get']('TrackChangesEditing'),_0x551034=_0x44fe3c['locale'];_0x3e763b['enableCommand']('mediaEmbed'),_0x3e763b['descriptionFactory']['registerElementLabel']('media',_0x3d531f=>o(_0x551034,'ELEMENT_MEDIA',_0x3d531f)),_0x44fe3c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4ef42b,{writer:_0x560508,options:_0x1b9576})=>{if(_0x1b9576['showSuggestionHighlights'])return _0x560508['createEmptyElement']('div');},'converterPriority':'high'}),_0x44fe3c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x13daa7,_0x803f36,_0x209e4d)=>{_0x209e4d['options']['showSuggestionHighlights']&&_0x13daa7['stop']();},{'priority':'high'});}}class gt extends _0x15c086{['afterInit'](){const _0x54a74f=this['editor'];_0x54a74f['plugins']['has']('MentionEditing')&&_0x54a74f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x15c086{['afterInit'](){const _0x220270=this['editor'];if(!_0x220270['commands']['get']('insertMergeField'))return;_0x220270['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x4e6a57=_0x220270['plugins']['get']('TrackChangesEditing'),_0x408e63=_0x220270['locale'];_0x4e6a57['descriptionFactory']['registerElementLabel']('mergeField',_0x83c8f=>o(_0x408e63,'ELEMENT_MERGE_FIELD',_0x83c8f)),_0x4e6a57['descriptionFactory']['registerDescriptionCallback'](_0x2b8b56=>{if('insertion'!=_0x2b8b56['type']&&'deletion'!=_0x2b8b56['type'])return;const _0x380ae0=_0x2b8b56['getContainedElement']();if(null==_0x380ae0)return;if(!_0x380ae0['is']('element','mergeField'))return;const _0x353a3b=_0x220270['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x380ae0['getAttribute']('id'));return'insertion'==_0x2b8b56['type']?{'type':'insertion','content':o(_0x408e63,'*Insert:*\x20%0','\x22'+_0x353a3b+'\x22\x20'+o(_0x408e63,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x408e63,'*Remove:*\x20%0','\x22'+_0x353a3b+'\x22\x20'+o(_0x408e63,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x15c086{['afterInit'](){const _0x5d4546=this['editor'],_0x15c7a1=_0x5d4546['plugins']['get']('TrackChangesEditing');_0x5d4546['plugins']['has']('MultiLevelList')&&(_0x15c7a1['enableDefaultAttributesIntegration']('multiLevelList'),_0x15c7a1['registerBlockAttribute']('listMarkerStyle'),_0x15c7a1['descriptionFactory']['registerDescriptionCallback'](_0x4c50eb=>this['handleDescriptions'](_0x4c50eb)));}['handleDescriptions'](_0x1fc26f){const _0x47948c=this['editor']['locale'],{data:_0x575870}=_0x1fc26f,_0x1accb0={'type':'format','content':''};if(_0x575870&&'listMarkerStyle'==_0x575870['key']){if(!_0x575870['oldValue'])return{'type':'format','content':o(_0x47948c,'*Set\x20format:*\x20%0',o(_0x47948c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x575870['newValue']+')'};if(!_0x575870['newValue']){let _0x43258e=_0x1fc26f['head'];for(;_0x43258e;){if(_0x43258e['data']&&'listType'==_0x43258e['data']['key']&&_0x43258e['data']['newValue'])return _0x1accb0;_0x43258e=_0x43258e['next'];}return{'type':'format','content':o(_0x47948c,'*Remove\x20format:*\x20%0',o(_0x47948c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x575870['oldValue']+')'};}}}}class dt extends _0x15c086{['afterInit'](){const _0x4e979e=this['editor'];if(!_0x4e979e['plugins']['has']('PageBreakEditing'))return;_0x4e979e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xa9194e=_0x4e979e['plugins']['get']('TrackChangesEditing'),_0x24eaf4=_0x4e979e['locale'];_0xa9194e['descriptionFactory']['registerElementLabel']('pageBreak',_0x513054=>o(_0x24eaf4,'ELEMENT_PAGE_BREAK',_0x513054));}}class pt extends _0x15c086{['afterInit'](){const _0x1d5cfa=this['editor'];if(!_0x1d5cfa['plugins']['has']('Paragraph'))return;const _0x1dbffe=_0x1d5cfa['locale'],_0x3ede95=_0x1d5cfa['plugins']['get']('TrackChangesEditing');_0x3ede95['descriptionFactory']['registerElementLabel']('paragraph',_0x26b46e=>o(_0x1dbffe,'ELEMENT_PARAGRAPH',_0x26b46e)),_0x3ede95['enableDefaultAttributesIntegration']('paragraph'),_0x3ede95['enableCommand']('insertParagraph'),_0x1d5cfa['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1d5cfa),{'priority':'highest'}),_0x1d5cfa['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b150e,_0x124365,_0x2695f6)=>{_0x2695f6['options']['showSuggestionHighlights']&&nr(_0x1d5cfa,{'showActiveMarker':!0x1})(_0x1b150e,_0x124365,_0x2695f6);},{'priority':'highest'});const _0x5481a1=_0x3ede95['descriptionFactory'];_0x5481a1['registerDescriptionCallback'](_0x108b75=>{if('insertion'!==_0x108b75['type'])return;const {start:_0x128966,end:_0x548819}=_0x108b75['getFirstRange']();if(!_0x128966['isTouching'](_0x548819)||!_0x128966['nodeAfter'])return;const _0x4e2d9b=_0x1d5cfa['model']['schema'],_0x1a60ff=_0x128966['nodeAfter'];return _0x4e2d9b['isBlock'](_0x1a60ff)&&!_0x4e2d9b['isLimit'](_0x1a60ff)&&_0x4e2d9b['checkChild'](_0x1a60ff,'$text')?{'type':'insertion','content':o(_0x1dbffe,'*Insert:*\x20%0',_0x5481a1['getItemLabel'](_0x1a60ff,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c0fd8=this['editor'],_0x27ab15=_0x4c0fd8['locale'];_0x4c0fd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fd07c=>{if('formatBlock'!=_0x2fd07c['type'])return;const {data:_0x114ac3}=_0x2fd07c;return _0x114ac3&&'paragraph'==_0x114ac3['commandName']?{'type':'format','content':o(_0x27ab15,'*Change\x20to:*\x20%0',o(_0x27ab15,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x45b431,{showActiveMarker:_0x1b8197=!0x0}={}){return(_0x3609ce,_0x59a055,_0x6d5ab3)=>{const _0x2fa1e2=_0x45b431['plugins']['get']('TrackChangesEditing'),_0xf79d08=_0x59a055['markerRange']['start'],_0x372df3=_0x59a055['markerRange']['end'],_0x54b513=_0x45b431['model']['schema'];if(!_0xf79d08['isTouching'](_0x372df3)||!_0xf79d08['nodeAfter'])return;const _0x2adc92=_0xf79d08['nodeAfter'];if(_0x54b513['isBlock'](_0x2adc92)&&!_0x54b513['isLimit'](_0x2adc92)&&_0x54b513['checkChild'](_0x2adc92,'$text')){if(!_0x6d5ab3['consumable']['consume'](_0x59a055['markerRange'],_0x3609ce['name']))return;const _0x43624b=_0x6d5ab3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x399b83=_0x6d5ab3['mapper']['toViewPosition'](_0x372df3);_0x1b8197&&_0x2fa1e2['activeMarkers']['includes'](_0x59a055['markerName'])&&_0x6d5ab3['writer']['addClass']('ck-suggestion-marker--active',_0x43624b),_0x6d5ab3['writer']['insert'](_0x399b83,_0x43624b),_0x6d5ab3['mapper']['bindElementToMarker'](_0x43624b,_0x59a055['markerName']);}};}class kt extends _0x15c086{['afterInit'](){const _0x21a611=this['editor'];if(!_0x21a611['plugins']['has']('RemoveFormatEditing'))return;_0x21a611['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6c2293=this['editor'];_0x6c2293['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56e0da=>{if('formatBlock'!=_0x56e0da['type']&&'formatInline'!=_0x56e0da['type'])return;const {data:_0x248634}=_0x56e0da;return _0x248634&&'removeFormat'==_0x248634['commandName']?{'type':'format','content':o(_0x6c2293['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class bt extends _0x15c086{['afterInit'](){const _0x3f461e=this['editor'];if(!_0x3f461e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1e153d=_0x3f461e['plugins']['get']('TrackChangesEditing');_0x1e153d['enableCommand']('goToPreviousRestrictedEditingException'),_0x1e153d['enableCommand']('goToNextRestrictedEditingException');const _0x3c864f=_0x3f461e['plugins']['get']('RestrictedEditingModeEditing');_0x3c864f['enableCommand']('trackChanges'),_0x3c864f['enableCommand']('acceptSuggestion'),_0x3c864f['enableCommand']('discardSuggestion'),_0x3c864f['enableCommand']('acceptAllSuggestions'),_0x3c864f['enableCommand']('discardAllSuggestions'),_0x3c864f['enableCommand']('acceptSelectedSuggestions'),_0x3c864f['enableCommand']('discardSelectedSuggestions');}}class wt extends _0x15c086{static get['requires'](){return[_0x275f63];}['init'](){const _0x1e8e36=this['editor'],_0x5c4c5b=_0x1e8e36['plugins']['get']('TrackChangesEditing');_0x5c4c5b['enableCommand']('shiftEnter'),_0x1e8e36['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ce(_0x1e8e36),{'priority':'high'}),_0x1e8e36['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ce(_0x1e8e36),{'priority':'high'}),_0x1e8e36['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f7a4c,_0x5911f9,_0x45597f)=>{_0x45597f['options']['showSuggestionHighlights']&&ce(_0x1e8e36,{'showActiveMarker':!0x1})(_0x4f7a4c,_0x5911f9,_0x45597f);}),_0x5c4c5b['descriptionFactory']['registerElementLabel']('softBreak',_0x2d5dd9=>o(_0x1e8e36['locale'],'ELEMENT_LINE_BREAK',_0x2d5dd9));}}function ce(_0xc0ddb3,{showActiveMarker:_0x46c2d4=!0x0}={}){return(_0x219400,_0x51e08c,_0x833b20)=>{const _0x55cf6d=_0xc0ddb3['plugins']['get']('TrackChangesEditing');if(!_0x833b20['consumable']['test'](_0x51e08c['markerRange'],_0x219400['name']))return;const _0x200014=_0xc0ddb3['model'];for(const _0x235998 of _0x51e08c['markerRange']['getItems']()){if(!_0x235998['is']('element','softBreak'))continue;const _0x4c4480='deletion'==_0x51e08c['markerName']['split'](':')[0x1]?'merge':'split',_0x9a30c7=_0x833b20['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c4480}),_0x8f0f71=_0x833b20['mapper']['toViewPosition'](_0x200014['createPositionBefore'](_0x235998));_0x46c2d4&&_0x55cf6d['activeMarkers']['includes'](_0x51e08c['markerName'])&&_0x833b20['writer']['addClass']('ck-suggestion-marker--active',_0x9a30c7),_0x833b20['writer']['insert'](_0x8f0f71,_0x9a30c7),_0x833b20['mapper']['bindElementToMarker'](_0x9a30c7,_0x51e08c['markerName']);}};}class yt extends _0x15c086{['afterInit'](){const _0x3c4407=this['editor'],_0x276daf=_0x3c4407['model'],_0x88d997=_0x3c4407['locale'];if(!_0x3c4407['plugins']['has']('StandardEditingModeEditing'))return;const _0x1d1ad5=_0x3c4407['plugins']['get']('TrackChangesEditing'),_0x18a698='restrictedEditingException',_0x568eb3=_0x3c4407['commands']['get'](_0x18a698);_0x1d1ad5['enableCommand'](_0x18a698,(_0x31b3d7,_0x41c4d9={})=>{const _0x2fbee7=_0x276daf['document']['selection'];if(_0x2fbee7['isCollapsed'])return void _0x31b3d7(_0x41c4d9);const _0x46d711=void 0x0!==_0x41c4d9['forceValue']?_0x41c4d9['forceValue']:!_0x568eb3['value'];_0x276daf['change'](()=>{const _0x2729dc=Array['from'](_0x2fbee7['getRanges']());for(const _0x17d223 of _0x2729dc){const _0x1c9862=_0x46d711?[_0x17d223]:io(_0x18a698,_0x17d223,_0x276daf);for(const _0x370022 of _0x1c9862)_0x1d1ad5['markInlineFormat'](_0x370022,{'commandName':_0x18a698,'commandParams':[{'forceValue':_0x46d711}]});}});}),_0x1d1ad5['descriptionFactory']['registerDescriptionCallback'](_0x18f350=>{if('formatBlock'!=_0x18f350['type']&&'formatInline'!=_0x18f350['type'])return;const {data:_0x55c3d9}=_0x18f350;return _0x55c3d9&&_0x55c3d9['commandName']==_0x18a698?_0x55c3d9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x88d997,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x88d997,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class jt extends _0x15c086{['afterInit'](){const _0xd21aca=this['editor'];if(!_0xd21aca['plugins']['has']('Style')||!_0xd21aca['plugins']['has']('DataSchema'))return;const _0x44547e=_0xd21aca['plugins']['get']('TrackChangesEditing'),_0xad3cb0=_0xd21aca['locale'],_0x305205=_0xd21aca['config']['get']('style')||{},_0x5970ec=_0xd21aca['plugins']['get']('GeneralHtmlSupport'),_0x5a985e=_0xd21aca['plugins']['get']('StyleUtils')['normalizeConfig'](_0xd21aca['plugins']['get']('DataSchema'),_0x305205['definitions']);_0x44547e['enableDefaultAttributesIntegration']('style');const _0x3b5546=new Set();for(const _0x16adc6 of _0x5a985e['block']){const _0xdf298=_0x5970ec['getGhsAttributeNameForElement'](_0x16adc6['element']);_0x3b5546['add'](_0xdf298);}const _0x9a0c83=new Set();for(const _0xe6417 of _0x5a985e['inline']){const _0x2ab127=_0x5970ec['getGhsAttributeNameForElement'](_0xe6417['element']);_0x9a0c83['add'](_0x2ab127);for(const _0x3bb008 of _0xe6417['ghsAttributes'])_0x9a0c83['add'](_0x3bb008);}for(const _0x3cd172 of _0x3b5546)_0x44547e['registerBlockAttribute'](_0x3cd172),_0x44547e['descriptionFactory']['registerAttributeLabel'](_0x3cd172,o(_0xad3cb0,'FORMAT_STYLE'));for(const _0x420b34 of _0x9a0c83)_0x44547e['registerInlineAttribute'](_0x420b34),_0x44547e['descriptionFactory']['registerAttributeLabel'](_0x420b34,o(_0xad3cb0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x329afa=this['editor'],_0x3c9133=_0x329afa['locale'];_0x329afa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3324d9=>{if('formatBlock'!=_0x3324d9['type']&&'formatInline'!=_0x3324d9['type'])return;const {data:_0x2f3164}=_0x3324d9;return _0x2f3164&&'style'===_0x2f3164['commandName']?_0x2f3164['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c9133,'*Set\x20format:*\x20%0',_0x2f3164['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3c9133,'*Remove\x20format:*\x20%0',_0x2f3164['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class St extends _0x15c086{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x594fb1){super(_0x594fb1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x6e1230=this['editor'],_0x4d8240=_0x6e1230['model']['document']['selection'];if(!_0x6e1230['plugins']['has']('TableEditing'))return;const _0xbd3196=_0x6e1230['locale'],_0x48e544=_0x6e1230['plugins']['get']('TrackChangesEditing'),_0x49842d=_0x6e1230['plugins']['get']('TableUtils');_0x48e544['descriptionFactory']['registerElementLabel']('table',_0x5f56e8=>o(_0xbd3196,'ELEMENT_TABLE',_0x5f56e8)),this['_setupColumnsRowsFixing'](),_0x48e544['enableCommand']('insertTable'),_0x48e544['enableCommand']('selectTableRow'),_0x48e544['enableCommand']('selectTableColumn');for(const _0x521d43 of['insertTableRowAbove','insertTableRowBelow']){const _0x587874=_0x6e1230['commands']['get'](_0x521d43);_0x48e544['enableCommand'](_0x521d43,_0x37cfab=>{_0x6e1230['model']['change'](_0x56a873=>{_0x37cfab();const _0x214a84='above'===_0x587874['order'],_0x1fcd9b=_0x49842d['getSelectionAffectedTableCells'](_0x4d8240),_0x3a0107=_0x49842d['getRowIndexes'](_0x1fcd9b),_0x3a6f3b=_0x214a84?_0x3a0107['first']-0x1:_0x3a0107['last']+0x1,_0x98a0e2=_0x1fcd9b[0x0]['findAncestor']('table'),_0x30e119=_0x49842d['createTableWalker'](_0x98a0e2,{'startRow':_0x3a6f3b,'endRow':_0x3a6f3b}),_0x4a3c95=Array['from'](_0x30e119)['map'](_0x53ed9d=>_0x56a873['createRangeOn'](_0x53ed9d['cell']));_0x48e544['markMultiRangeInsertion'](_0x4a3c95,'tableRow');});});}for(const _0x32cf7c of['insertTableColumnLeft','insertTableColumnRight']){const _0x194f54=_0x6e1230['commands']['get'](_0x32cf7c);_0x48e544['enableCommand'](_0x32cf7c,_0x1fac77=>{_0x6e1230['model']['change'](_0x4c4519=>{_0x1fac77();const _0x3c6845='left'===_0x194f54['order'],_0x344674=_0x49842d['getSelectionAffectedTableCells'](_0x4d8240),_0x1c1c8e=_0x49842d['getColumnIndexes'](_0x344674),_0x4e3540=_0x3c6845?_0x1c1c8e['first']-0x1:_0x1c1c8e['last']+0x1,_0x40a970=_0x344674[0x0]['findAncestor']('table'),_0x1ba4a6=_0x49842d['createTableWalker'](_0x40a970,{'startRow':0x0,'column':_0x4e3540,'includeAllSlots':!0x1}),_0x9b5909=Array['from'](_0x1ba4a6)['map'](_0x10bdf0=>_0x4c4519['createRangeOn'](_0x10bdf0['cell']));_0x48e544['markMultiRangeInsertion'](_0x9b5909,'tableColumn');});});}for(const _0x562195 of['removeTableRow','removeTableColumn']){const _0x38edfe=_0x562195['substr'](0xb),_0x4c3a9f=_0x38edfe['toLowerCase'](),_0x5e5a65=_0x4c3a9f['substr'](0x0,0x3)+'span',_0x4fb795='table'+_0x38edfe,_0x77c4be='min'+_0x38edfe,_0x2f7408='max'+_0x38edfe;_0x48e544['enableCommand'](_0x562195,()=>{_0x6e1230['model']['change'](_0x60c7e7=>{const _0x48bdf6=_0x49842d['getSelectionAffectedTableCells'](_0x4d8240),_0xd68e06=_0x48bdf6[0x0]['findAncestor']('table');let _0x5c2273;if('removeTableRow'==_0x562195){const _0x1c1949=_0x49842d['getRowIndexes'](_0x48bdf6);_0x5c2273={'startRow':_0x1c1949['first'],'endRow':_0x1c1949['last'],'includeAllSlots':!0x0};}else{const _0x1ff79a=_0x49842d['getColumnIndexes'](_0x48bdf6);_0x5c2273={'startColumn':_0x1ff79a['first'],'endColumn':_0x1ff79a['last'],'includeAllSlots':!0x0};}const _0xbefabd=_0x49842d['createTableWalker'](_0xd68e06,_0x5c2273),_0x502bc8=Array['from'](_0xbefabd)['map'](({cell:_0x4a16fd})=>_0x4a16fd),_0x502b6d=Ee(_0x502bc8['filter'](_0xd4caff=>_0xd4caff['hasAttribute'](_0x5e5a65))),_0x129750=Ee(_0x502bc8['filter'](_0x34a272=>!_0x34a272['hasAttribute'](_0x5e5a65)))['map'](_0x2e9f07=>_0x60c7e7['createRangeOn'](_0x2e9f07)),_0x154d51=_0x48e544['markMultiRangeDeletion'](_0x129750,_0x4fb795);if(_0x154d51&&('tableRow'==_0x154d51['subType']||'tableColumn'==_0x154d51['subType'])){const _0x3642cc=this['_getSuggestionCoords'](_0x154d51);for(const _0x59ee55 of _0x502b6d){const _0x85a5e1=_0x60c7e7['createRangeOn'](_0x59ee55),_0x23bc0d=_0x49842d['getCellLocation'](_0x59ee55),_0x2b4836=_0x59ee55['getAttribute'](_0x5e5a65)-0x1,_0x546990=_0x3642cc[_0x77c4be],_0x493422=_0x3642cc[_0x2f7408];_0x546990<=_0x23bc0d[_0x4c3a9f]&&_0x23bc0d[_0x4c3a9f]+_0x2b4836<=_0x493422&&_0x154d51['addRange'](_0x85a5e1);}}});});}function _0x2fdfc1(_0x13d2b2){const _0x46f4d3=Array['from'](_0x4d8240['getRanges']())['map'](_0x11ed0d=>_0x948f0b['fromRange'](_0x11ed0d));_0x6e1230['model']['change'](_0x200855=>{const _0x56a53a=_0x200855['batch'];_0x13d2b2=_0x13d2b2['filter'](_0x560d1a=>'$graveyard'!=_0x560d1a['root']['rootName']),_0x200855['setSelection'](_0x13d2b2),_0x6e1230['commands']['get']('removeTableRow')['refresh'](),_0x6e1230['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x6e1230['model']['enqueueChange'](()=>{_0x6e1230['model']['enqueueChange'](_0x56a53a,_0x4479ac=>{const _0x3469b7=_0x46f4d3['filter'](_0x293da2=>'$graveyard'!=_0x293da2['root']['rootName']);_0x3469b7['length']>0x0&&_0x4479ac['setSelection'](_0x3469b7);for(const _0x58f263 of _0x46f4d3)_0x58f263['detach']();});});});}function _0x1ab757(_0x4c8546){_0x6e1230['model']['change'](_0x1cd6e2=>{const _0x4b313e=Array['from'](_0x4d8240['getRanges']())['map'](_0x1d18a2=>_0x948f0b['fromRange'](_0x1d18a2)),_0x109485=[];for(const _0x27608c of _0x4c8546)for(const _0x23ca61 of _0x27608c['getItems']({'shallow':!0x0}))_0x109485['push'](_0x23ca61);for(const _0x3cf7a5 of _0x109485)'$graveyard'!=_0x3cf7a5['root']['rootName']&&(_0x1cd6e2['setSelection'](_0x1cd6e2['createPositionAt'](_0x3cf7a5,0x0)),_0x6e1230['commands']['get']('removeTableColumn')['refresh'](),_0x6e1230['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x42514f=_0x4b313e['filter'](_0x3a7918=>'$graveyard'!=_0x3a7918['root']['rootName']);_0x42514f['length']>0x0&&_0x1cd6e2['setSelection'](_0x42514f);for(const _0x1220c4 of _0x4b313e)_0x1220c4['detach']();});}function _0x8c0f3f(_0x1c58a7,_0x3cd43c){return _0x3cd43c['every'](_0x50e7b9=>_0x1c58a7['some'](_0x2206d0=>_0x2206d0['end']['isEqual'](_0x50e7b9['start'])||_0x50e7b9['end']['isEqual'](_0x2206d0['start'])));}function _0x48352c(_0x1fde33,_0xb0d21e){return!_0x1fde33['some'](_0x30280c=>_0xb0d21e['some'](_0x472503=>_0x30280c['isIntersecting'](_0x472503)))&&_0x1fde33['some'](_0x1b15e8=>_0xb0d21e['some'](_0x4c8fcf=>_0x1b15e8['end']['isTouching'](_0x4c8fcf['start'])));}_0x6e1230['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x55de5f,_0x483b43,_0x3d5a1c)=>{if(!_0x3d5a1c['options']['showSuggestionHighlights'])return;const _0x13c4d2=_0x483b43['item'];if(!_0x13c4d2)return;const _0x256d28=_0x3d5a1c['mapper']['toViewElement'](_0x13c4d2);function _0x40309f(_0x1eac20){return Array['isArray'](_0x1eac20)?_0x1eac20:[_0x1eac20];}_0x256d28&&'tableCell'===_0x13c4d2['name']&&_0x5bea68(_0x256d28,_0x3d5a1c['writer'],(_0x57e2fb,_0x1e08ed,_0x3cb569)=>_0x3cb569['addClass'](_0x40309f(_0x1e08ed['classes']),_0x57e2fb),(_0x21a6ef,_0xd7dbf8,_0x5dcc28)=>_0x5dcc28['removeClass'](_0x40309f(_0xd7dbf8['classes']),_0x21a6ef));},{'priority':'highest'}),_0x48e544['descriptionFactory']['registerDescriptionCallback'](_0x26f49e=>{if('insertion'!=_0x26f49e['type']&&'deletion'!=_0x26f49e['type'])return;const _0x377d8d=_0x26f49e['getContainedElement']();if(null!=_0x377d8d&&_0x377d8d['is']('element','table')){if('insertion'==_0x26f49e['type']){const _0xe84c91=_0x26f49e['getItems']()['filter'](_0x54962d=>_0x54962d['is']('$textProxy'))['map'](_0x2353ea=>_0x2353ea['data']);if(_0xe84c91['length'])return{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xe84c91['join']('\x20')+'\x22'))};}if('deletion'==_0x26f49e['type']){const _0x1fb07=_0x26f49e['getItems']()['filter'](_0xe2fe2=>_0xe2fe2['is']('$textProxy'))['map'](_0x42ffa2=>_0x42ffa2['data']);if(_0x1fb07['length'])return{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1fb07['join']('\x20')+'\x22'))};}}}),_0x48e544['descriptionFactory']['registerDescriptionCallback'](_0x10098d=>{if('tableRow'==_0x10098d['subType']){const _0x213e2c=_0x10098d['getItems']()['filter'](_0x353969=>_0x353969['is']('$textProxy'))['map'](_0x3de28c=>_0x3de28c['data']),_0x53315c=this['_getSuggestionCoords'](_0x10098d),_0x4f79fe=_0x53315c['maxRow']-_0x53315c['minRow']+0x1;if('insertion'==_0x10098d['type'])return _0x213e2c['length']?{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4f79fe,'\x22'+_0x213e2c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_ROW',_0x4f79fe))};if('deletion'==_0x10098d['type'])return _0x213e2c['length']?{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4f79fe,'\x22'+_0x213e2c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_ROW',_0x4f79fe))};}if('tableColumn'==_0x10098d['subType']){const _0x5738fd=_0x10098d['getItems']()['filter'](_0x43f78c=>_0x43f78c['is']('$textProxy'))['map'](_0x15851b=>_0x15851b['data']),_0x2c5c4e=this['_getSuggestionCoords'](_0x10098d),_0x321f8c=_0x2c5c4e['maxColumn']-_0x2c5c4e['minColumn']+0x1;if('insertion'==_0x10098d['type'])return _0x5738fd['length']?{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x321f8c,'\x22'+_0x5738fd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_COLUMN',_0x321f8c))};if('deletion'==_0x10098d['type'])return _0x5738fd['length']?{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x321f8c,'\x22'+_0x5738fd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_COLUMN',_0x321f8c))};}}),_0x48e544['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2fdfc1),_0x48e544['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2fdfc1),_0x48e544['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1ab757),_0x48e544['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1ab757),_0x48e544['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x8c0f3f),_0x48e544['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x8c0f3f),_0x48e544['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x48352c),_0x48e544['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x48352c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x521a9d=this['editor'],_0x309cef=_0x521a9d['model']['document']['selection'];return(_0x5d00f8,_0x1fd0ee)=>{_0x521a9d['model']['change'](_0x406b08=>{const {commandName:_0x4d0781,commandParams:_0x358a6b}=_0x1fd0ee;let _0x1b8901=_0x5d00f8[0x0]['end']['nodeBefore'];_0x358a6b&&_0x358a6b[0x0]&&!0x1===_0x358a6b[0x0]['forceValue']&&(_0x1b8901=_0x5d00f8[0x0]['start']['nodeAfter']);const _0x4d5fc5=_0x406b08['createRangeIn'](_0x1b8901);if('$graveyard'==_0x4d5fc5['root']['rootName'])return;const _0x5cf91e=Array['from'](_0x309cef['getRanges']())['map'](_0x141783=>_0x948f0b['fromRange'](_0x141783));_0x406b08['setSelection'](_0x4d5fc5),_0x521a9d['commands']['get'](_0x4d0781)['refresh'](),_0x358a6b['push']({'forceDefaultExecution':!0x0}),_0x521a9d['execute'](_0x4d0781,..._0x358a6b);const _0x3ea3e0=_0x5cf91e['filter'](_0x8c0484=>'$graveyard'!=_0x8c0484['root']['rootName']);_0x3ea3e0['length']>0x0&&_0x406b08['setSelection'](_0x3ea3e0);for(const _0x273dcf of _0x5cf91e)_0x273dcf['detach']();});};}['_getCoordsForCells'](_0x36eb26){const _0x37dfea=this['editor']['plugins']['get']('TableUtils');let _0x279cc2=Number['MAX_SAFE_INTEGER'],_0x3a8bc2=Number['MIN_SAFE_INTEGER'],_0x489612=Number['MAX_SAFE_INTEGER'],_0x16b1c8=Number['MIN_SAFE_INTEGER'];for(const _0x319440 of _0x36eb26){if('$graveyard'==_0x319440['root']['rootName'])continue;const {row:_0x19b149,column:_0x1c6adc}=_0x37dfea['getCellLocation'](_0x319440),_0x44ff9d=_0x319440['hasAttribute']('rowspan')?_0x319440['getAttribute']('rowspan')-0x1:0x0,_0x350081=_0x319440['hasAttribute']('colspan')?_0x319440['getAttribute']('colspan')-0x1:0x0;_0x279cc2=_0x19b149<_0x279cc2?_0x19b149:_0x279cc2,_0x3a8bc2=_0x19b149+_0x44ff9d>_0x3a8bc2?_0x19b149+_0x44ff9d:_0x3a8bc2,_0x489612=_0x1c6adc<_0x489612?_0x1c6adc:_0x489612,_0x16b1c8=_0x1c6adc+_0x350081>_0x16b1c8?_0x1c6adc+_0x350081:_0x16b1c8;}return{'minRow':_0x279cc2,'maxRow':_0x3a8bc2,'minColumn':_0x489612,'maxColumn':_0x16b1c8};}['_setupColumnsRowsFixing'](){const _0x2b4f10=this['editor'],_0x3a87a4=_0x2b4f10['plugins']['get']('TrackChangesEditing'),_0x20e8ec=_0x2b4f10['plugins']['get']('TableUtils');_0x2b4f10['model']['document']['on']('change:data',()=>{const _0x32179d=Array['from'](_0x2b4f10['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19c8f5,data:_0x11d075}of _0x32179d){const {group:_0x456b88,id:_0x11be1b,subType:_0xac5cb2}=_0x3a87a4['_splitMarkerName'](_0x19c8f5);if('suggestion'!=_0x456b88)continue;if(null!=_0x11d075['oldRange'])continue;const _0x42c52d=_0x3a87a4['getSuggestion'](_0x11be1b);this['_tablePostFixingSubtypes']['includes'](_0xac5cb2)&&this['_tableSuggestions']['add'](_0x42c52d);}},{'priority':'low'});const _0x79deff=(_0x52717c,_0x21b68d)=>{let _0x378159=!0x1;const _0xd42d7c=_0x21b68d['createRangeOn'](_0x52717c),_0x440a1f=_0x52717c['findAncestor']('table'),_0x2c4910=_0x20e8ec['getCellLocation'](_0x52717c);for(const _0x345a2c of this['_tableSuggestions']){const _0x48a2e7=_0x345a2c['subType'],_0x318b21=_0x48a2e7['startsWith']('tablePaste'),_0x3d6c6c=_0x48a2e7['substr'](_0x318b21?0xa:0x5),_0x45f00d=_0x3d6c6c['toLowerCase'](),_0xcec5d=_0x45f00d['substr'](0x0,0x3)+'span',_0xfbc79='min'+_0x3d6c6c,_0x1443c5='max'+_0x3d6c6c;if(!_0x345a2c['isInContent'])continue;if(_0x440a1f!=_0x345a2c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x345a2c['isIntersectingWithRange'](_0xd42d7c))continue;const _0xd0d85=_0x52717c['hasAttribute'](_0xcec5d)?_0x52717c['getAttribute'](_0xcec5d)-0x1:0x0,_0x4e6f85=this['_getSuggestionCoords'](_0x345a2c),_0x38f269=_0x4e6f85[_0xfbc79],_0x121a9e=_0x4e6f85[_0x1443c5];_0x38f269<=_0x2c4910[_0x45f00d]&&_0x2c4910[_0x45f00d]+_0xd0d85<=_0x121a9e&&(_0x345a2c['addRange'](_0xd42d7c),_0x378159=!0x0);}return _0x378159;};_0x2b4f10['model']['document']['registerPostFixer'](_0x5f25f7=>{let _0x5c63f3=!0x1;for(const _0x63e216 of _0x2b4f10['model']['document']['differ']['getChanges']())if('insert'==_0x63e216['type']){if('tableRow'==_0x63e216['name']){for(const _0x4ad809 of _0x63e216['position']['nodeAfter']['getChildren']())_0x5c63f3=_0x5c63f3||_0x79deff(_0x4ad809,_0x5f25f7);}else'tableCell'==_0x63e216['name']&&(_0x5c63f3=_0x5c63f3||_0x79deff(_0x63e216['position']['nodeAfter'],_0x5f25f7));}return _0x5c63f3;});}['_getSuggestionCoords'](_0x5f5334){return this['_getCoordsForCells'](_0x5f5334['getRanges']()['map'](_0x991fdf=>_0x991fdf['start']['nodeAfter']));}}function Ee(_0x1f93b2){return Array['from'](new Set(_0x1f93b2)['values']());}class At extends _0x15c086{static get['requires'](){return[St];}['afterInit'](){const _0x548fa3=this['editor'],_0x44b826=_0x548fa3['model']['document']['selection'],_0x1df8ca=_0x548fa3['locale'];if(!_0x548fa3['plugins']['has']('TableEditing'))return;const _0x3320ec=_0x548fa3['plugins']['get']('TrackChangesEditing'),_0x43cffb=_0x548fa3['plugins']['get']('TableUtils'),_0x3c317e=_0x548fa3['plugins']['get'](St);_0x3c317e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3320ec['enableCommand']('mergeTableCells',()=>{const _0x392f28=_0x43cffb['getSelectionAffectedTableCells'](_0x548fa3['model']['document']['selection']);_0x548fa3['model']['change'](()=>{_0x3320ec['markMultiRangeBlockFormat'](_0x392f28,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x548fa3['commands']['get']('mergeTableCells')['on']('execute',(_0x45e82a,_0x5cb562)=>{_0x548fa3['commands']['get']('trackChanges')['value']&&(_0x5cb562['length']>0x0&&_0x5cb562[_0x5cb562['length']-0x1]&&_0x5cb562[_0x5cb562['length']-0x1]['forceDefaultExecution']||_0x3320ec['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x45e82a['stop']());},{'priority':'highest'});for(const _0x29eb64 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x23fe58=_0x548fa3['commands']['get'](_0x29eb64);_0x3320ec['enableCommand'](_0x29eb64,()=>{const _0x108e05=_0x548fa3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5e3e16=>_0x5e3e16['is']('element','tableCell')),_0x2b8cb8=_0x23fe58['value'];_0x548fa3['model']['change'](()=>{_0x3320ec['markMultiRangeBlockFormat']([_0x108e05,_0x2b8cb8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x13c3f2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3f3e80=_0x548fa3['commands']['get'](_0x13c3f2);_0x3320ec['enableCommand'](_0x13c3f2,()=>{const _0xb9ba00=_0x43cffb['getSelectionAffectedTableCells'](_0x548fa3['model']['document']['selection'])[0x0],_0x1aa5b7=_0xb9ba00['findAncestor']('table'),{column:_0x365c83,row:_0x2bcdbb}=_0x43cffb['getCellLocation'](_0xb9ba00);let _0x2cd545=[];if('horizontally'==_0x3f3e80['direction']){const _0x319442=_0x43cffb['createTableWalker'](_0x1aa5b7,{'startRow':_0x2bcdbb,'endRow':_0x2bcdbb,'includeAllSlots':!0x0});_0x2cd545=Array['from'](_0x319442)['map'](_0x1a1be0=>_0x1a1be0['cell']);}else{const _0x26cffa=_0x43cffb['createTableWalker'](_0x1aa5b7,{'column':_0x365c83,'includeAllSlots':!0x0});_0x2cd545=Array['from'](_0x26cffa)['map'](_0x312c7e=>_0x312c7e['cell']);}_0x548fa3['model']['change'](_0x323bba=>{_0x3320ec['markBlockFormat'](_0x323bba['createRangeOn'](_0xb9ba00),{'commandName':_0x13c3f2,'commandParams':[]},_0x2cd545,_0x13c3f2);});});}_0x3320ec['descriptionFactory']['registerDescriptionCallback'](_0x1d14b2=>{if('formatBlock'!=_0x1d14b2['type']&&'formatInline'!=_0x1d14b2['type'])return;const {data:_0x5456ef}=_0x1d14b2;return _0x5456ef&&'mergeTableCells'==_0x5456ef['commandName']?{'type':'format','content':o(_0x1df8ca,'*Merge\x20cells*')}:void 0x0;}),_0x3320ec['descriptionFactory']['registerDescriptionCallback'](_0x38d970=>{if('formatBlock'!=_0x38d970['type']&&'formatInline'!=_0x38d970['type'])return;const {data:_0xb3b06d}=_0x38d970;return _0xb3b06d?'splitTableCellVertically'==_0xb3b06d['commandName']?{'type':'format','content':o(_0x1df8ca,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xb3b06d['commandName']?{'type':'format','content':o(_0x1df8ca,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x535bd2=_0x3c317e['_acceptFormatSuggestionCallbackFactory']();for(const _0x3cb66f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3320ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3cb66f,'accept',_0x535bd2);for(const _0x4ce1aa of['splitTableCellVertically','splitTableCellHorizontally'])_0x3320ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ce1aa,'accept',_0x535bd2);_0x3320ec['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2ce3ba=>{_0x548fa3['model']['change'](_0x501912=>{const _0x558f58=Array['from'](_0x44b826['getRanges']())['map'](_0x1a36d0=>_0x948f0b['fromRange'](_0x1a36d0));_0x501912['setSelection'](_0x2ce3ba),_0x548fa3['commands']['get']('mergeTableCells')['refresh'](),_0x548fa3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x38b18c=_0x558f58['filter'](_0x50ea1b=>'$graveyard'!=_0x50ea1b['root']['rootName']);_0x38b18c['length']>0x0&&_0x501912['setSelection'](_0x38b18c);for(const _0x3397ea of _0x558f58)_0x3397ea['detach']();});});for(const _0x595a30 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5cc816=_0x548fa3['commands']['get'](_0x595a30);_0x5cc816['on']('set:isEnabled',(_0x2763cf,_0x46c5e9,_0x1b7844)=>{if(_0x1b7844){const _0x176cd3=_0x548fa3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xaf0116=>_0xaf0116['is']('element','tableCell'));this['_areMergableCells'](_0x5cc816['value'],_0x176cd3)||(_0x2763cf['return']=!0x1,_0x2763cf['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4e25d7=this['editor']['commands']['get']('mergeTableCells'),_0x3ace13=this['editor']['plugins']['get']('TableUtils');if(!_0x4e25d7['isEnabled'])return!0x1;const _0x1e5415=_0x3ace13['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x33b1b8 of _0x1e5415)for(const _0x577e90 of _0x1e5415)if(_0x33b1b8!=_0x577e90&&!this['_areMergableCells'](_0x33b1b8,_0x577e90))return!0x1;return!0x0;}['_areMergableCells'](_0x514c29,_0x3229ab){const _0x563535=this['editor']['plugins']['get']('TrackChangesEditing'),_0x70067d=this['editor']['model']['createRangeOn'](_0x514c29),_0x2deb68=this['editor']['model']['createRangeOn'](_0x3229ab),_0x1cc677=new Set(),_0x43fd07=new Set();for(const _0x232aef of _0x563535['getSuggestions']())if(('insertion'==_0x232aef['type']||'deletion'==_0x232aef['type']||'mergeTableCells'==_0x232aef['subType'])&&_0x232aef['isInContent']){for(const _0x6e513e of _0x232aef['getRanges']())_0x6e513e['containsRange'](_0x70067d,!0x0)&&_0x1cc677['add'](_0x232aef['type']+':'+_0x232aef['author']['id']),_0x6e513e['containsRange'](_0x2deb68,!0x0)&&_0x43fd07['add'](_0x232aef['type']+':'+_0x232aef['author']['id']);}if(_0x1cc677['size']!=_0x43fd07['size'])return!0x1;for(const _0x24a844 of _0x1cc677)if(!_0x43fd07['has'](_0x24a844))return!0x1;return!0x0;}}class It extends _0x15c086{static get['requires'](){return[St];}['afterInit'](){const _0x5d452d=this['editor'];if(!_0x5d452d['plugins']['has']('TableEditing'))return;const _0x3df145=_0x5d452d['locale'],_0x38e59d=_0x5d452d['plugins']['get']('TrackChangesEditing');_0x38e59d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x38e59d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x38e59d['registerBlockAttribute']('headingRows'),_0x38e59d['registerBlockAttribute']('headingColumns'),_0x38e59d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3df145,'FORMAT_HEADER_ROW')),_0x38e59d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3df145,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x374207=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d7032=this['editor']['plugins']['get']('TableUtils'),_0x432518=this['editor']['plugins']['get'](St)['_acceptFormatSuggestionCallbackFactory']();function _0x4f02b6({showActiveMarker:_0x3e7212=!0x0,setDataAttribute:_0x4ef56b=!0x0}={}){return(_0xda2eb8,_0x48c6b1,_0x5935ad)=>{const {type:_0x2d19b9,id:_0x44cf0d}=_0x374207['_splitMarkerName'](_0x48c6b1['markerName']),_0x36feeb=_0x374207['getSuggestion'](_0x44cf0d),_0x3b1834=_0x36feeb['data'];if('formatBlock'!=_0x36feeb['type']||!_0x3b1834||'setTableColumnHeader'!=_0x3b1834['commandName'])return;if(_0x48c6b1['item'])return void _0xda2eb8['stop']();if(!_0x5935ad['consumable']['consume'](_0x48c6b1['markerRange'],_0xda2eb8['name']))return;const _0x5243e3=_0x48c6b1['markerRange']['start']['nodeAfter'],_0x2a9b31=_0x48c6b1['markerRange']['end']['nodeBefore'],_0x56e545=_0x5243e3['parent']['parent'],{column:_0x162031}=_0x4d7032['getCellLocation'](_0x5243e3),{column:_0x33d49a}=_0x4d7032['getCellLocation'](_0x2a9b31);for(let _0x5d293d=_0x162031;_0x5d293d<=_0x33d49a;_0x5d293d++){const _0x467287=_0x4d7032['createTableWalker'](_0x56e545,{'column':_0x5d293d,'includeAllSlots':!0x1});for(const _0x2504ef of _0x467287){const _0x27246e=_0x2504ef['cell'],_0x42a63f=_0x5935ad['mapper']['toViewElement'](_0x27246e);_0x5935ad['writer']['addClass']('ck-suggestion-marker-'+_0x2d19b9,_0x42a63f),_0x4ef56b&&_0x5935ad['writer']['setAttribute']('data-suggestion',_0x44cf0d,_0x42a63f),_0x5935ad['mapper']['bindElementToMarker'](_0x42a63f,_0x48c6b1['markerName']),_0x3e7212&&(_0x374207['activeMarkers']['includes'](_0x48c6b1['markerName'])?_0x5935ad['writer']['addClass']('ck-suggestion-marker--active',_0x42a63f):_0x5935ad['writer']['removeClass']('ck-suggestion-marker--active',_0x42a63f));}}};}_0x374207['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x432518),_0x374207['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x432518),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4f02b6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x510127,_0x412712,_0x366a63)=>{_0x366a63['options']['showSuggestionHighlights']&&_0x4f02b6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x510127,_0x412712,_0x366a63);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x44a806,_0x79d738,_0x54c027)=>{const {type:_0x3c5cf9,id:_0x182157}=_0x374207['_splitMarkerName'](_0x79d738['markerName']),_0x2f7541=_0x374207['getSuggestion'](_0x182157),_0x20cc40=_0x2f7541['data'];if('formatBlock'!=_0x2f7541['type']||!_0x20cc40||'setTableColumnHeader'!=_0x20cc40['commandName'])return;const _0x22b253=_0x54c027['mapper']['markerNameToElements'](_0x79d738['markerName']);if(_0x22b253){for(const _0x2e1cad of _0x22b253)_0x54c027['writer']['removeClass']('ck-suggestion-marker-'+_0x3c5cf9,_0x2e1cad),_0x54c027['writer']['removeClass']('ck-suggestion-marker--active',_0x2e1cad),_0x54c027['writer']['removeAttribute']('data-suggestion',_0x2e1cad),_0x54c027['mapper']['unbindElementFromMarkerName'](_0x2e1cad,_0x79d738['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a5287=this['editor'],_0x4dc34e=_0x1a5287['locale'];function _0x1153c3(_0x5e8808){return{'type':'format','content':o(_0x4dc34e,'*Format:*\x20%0',_0x5e8808)};}_0x1a5287['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a7344=>{if('formatBlock'!=_0x4a7344['type'])return;const {data:_0x4c51c2}=_0x4a7344;if(_0x4c51c2){if('setTableRowHeader'==_0x4c51c2['commandName']){const _0x59c008=_0x4c51c2['commandParams'][0x0]['forceValue'];return _0x1153c3(o(_0x4dc34e,_0x59c008?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4c51c2['commandName']){const _0x20de9b=_0x4c51c2['commandParams'][0x0]['forceValue'];return _0x1153c3(o(_0x4dc34e,_0x20de9b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x3ac9a9=>[_0x3ac9a9,null]));class vt extends _0x15c086{static get['requires'](){return[St];}['afterInit'](){const _0x1776ab=this['editor'];if(!_0x1776ab['plugins']['has']('TableClipboard'))return;const _0xfa8e11=_0x1776ab['plugins']['get']('TrackChangesEditing'),_0x4cc8e1=_0x1776ab['plugins']['get']('TableUtils'),_0xa9a577=_0x1776ab['plugins']['get'](St),_0x427397=_0x1776ab['plugins']['get']('TableClipboard');_0xa9a577['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1776ab['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1776ab['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2d3b22=null;_0x1776ab['model']['on']('insertContent',(_0x26017a,_0x324ab7)=>{const [_0x332400,_0x3f50d4]=_0x324ab7,_0x3b3838=_0x324ab7[_0x324ab7['length']-0x1];_0x3b3838&&_0x3b3838['forceDefaultExecution']||_0xfa8e11['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x46754e,_0x325484,_0x4ddbf5,_0xadde56,_0x442013){if(_0x325484&&!_0x325484['is']('documentSelection'))return!0x1;const _0x56e6d5=_0x442013['getTableIfOnlyTableInContent'](_0x46754e,_0x4ddbf5);if(!_0x56e6d5||!we(_0x56e6d5,void 0x0,_0xadde56))return!0x1;const _0x44d147=_0xadde56['getSelectionAffectedTableCells'](_0x4ddbf5['document']['selection']);if(!_0x44d147['length'])return!0x1;const _0x2d77b8=_0x44d147[0x0]['findAncestor']('table'),_0x283439=_0xadde56['getRowIndexes'](_0x44d147),_0x386884=_0xadde56['getColumnIndexes'](_0x44d147),_0x3f5905={'startRow':_0x283439['first'],'endRow':_0x283439['last'],'startColumn':_0x386884['first'],'endColumn':_0x386884['last']};return 0x1==_0x44d147['length']&&(_0x3f5905['endRow']+=_0xadde56['getRows'](_0x56e6d5)-0x1,_0x3f5905['endColumn']+=_0xadde56['getColumns'](_0x56e6d5)-0x1),we(_0x2d77b8,_0x3f5905,_0xadde56);}(_0x332400,_0x3f50d4,_0x1776ab['model'],_0x4cc8e1,_0x427397)&&(_0x26017a['stop'](),_0x2d3b22={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1776ab['model']['change'](()=>{_0x1776ab['model']['insertContent'](_0x324ab7[0x0],_0x324ab7[0x1],_0x324ab7[0x2],{'forceDefaultExecution':!0x0});const _0x598f8f=_0x27f732(),{rowInsertionRanges:_0x29e069,columnInsertionRanges:_0x278bd7,insertionRanges:_0x49dc69,deletionRanges:_0x58811b,cells:_0xc21a9e}=_0x2d3b22;_0x29e069['length']&&_0xfa8e11['markMultiRangeInsertion'](_0x29e069,'tablePasteRow',{'tablePasteChainId':_0x598f8f}),_0x278bd7['length']&&_0xfa8e11['markMultiRangeInsertion'](_0x278bd7,'tablePasteColumn',{'tablePasteChainId':_0x598f8f}),_0x49dc69['length']&&(_0xfa8e11['markMultiRangeInsertion'](_0x49dc69,'tablePaste',{'tablePasteChainId':_0x598f8f,'skipNestingCheck':!0x0}),_0x49dc69['forEach'](_0x54a87a=>_0x54a87a['detach']?.())),_0x58811b['length']&&(_0xfa8e11['markMultiRangeDeletion'](_0x58811b,'tablePaste',{'tablePasteChainId':_0x598f8f,'skipNestingCheck':!0x0}),_0x58811b['forEach'](_0x2ad455=>_0x2ad455['detach']?.()));const _0x3b881c=_0xfa8e11['markMultiRangeBlockFormat'](_0xc21a9e['map'](({element:_0xc60b9c})=>_0xc60b9c),{'formatGroupId':_0x27f732()},[],'tablePasteCell',{'tablePasteChainId':_0x598f8f});if(_0x3b881c){const _0x2deda0=_0x3b881c['getMarkers'](),_0x19ec05=[];for(const {element:_0x39300b,attributes:_0x201370}of _0xc21a9e){if(!_0x201370)continue;const _0x33561c=_0x1776ab['model']['createRangeOn'](_0x39300b),_0x314883=_0x2deda0['find'](_0x367a3c=>_0x367a3c['getRange']()['isEqual'](_0x33561c));_0x314883&&_0x19ec05['push']([_0x314883['name'],_0x201370]);}_0x19ec05['length']&&_0x3b881c['setAttribute']('markerAttributes',Object['fromEntries'](_0x19ec05));}_0x2d3b22=null;}));},{'priority':_0x200434['high']+0xa}),_0x1776ab['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x25aedb,_0x2a5ff1)=>{const [_0x3f4066,_0x302cd6,,_0x5b0500]=_0x2a5ff1;if(!_0x2d3b22)return;_0x25aedb['stop']();const _0x2901be=_0x3f4066['cell'],_0x3b34f4=_0x302cd6,_0x1d803d=Pe(_0x2901be),_0x3e069f=Pe(_0x3b34f4);_0x25aedb['return']=_0x2901be;let _0x474801=null,_0x3712d5=null;if(_0x3e069f||_0x1d803d){if(_0x1d803d&&!_0x3e069f){_0x5b0500['remove'](_0x2901be['getChild'](0x0));for(const _0x5a632a of Array['from'](_0x3b34f4['getChildren']()))_0x5b0500['insert'](_0x5a632a,_0x2901be,'end');const _0x462c8b=_0x2d3b22['rowInsertionIndexes']['includes'](_0x3f4066['row']),_0x416b23=_0x2d3b22['columnInsertionIndexes']['includes'](_0x3f4066['column']);_0x462c8b||_0x416b23||(_0x474801=_0x948f0b['fromRange'](_0x5b0500['createRangeIn'](_0x2901be)));}else _0x3e069f&&!_0x1d803d&&(_0x3712d5=_0x5b0500['createRangeIn'](_0x2901be));}else{const _0x2a6de6=_0x5b0500['createElement']('tableCellSuggestion'),_0x130907=_0x5b0500['createElement']('tableCellSuggestion');_0x5b0500['wrap'](_0x5b0500['createRangeIn'](_0x2901be),_0x130907),_0x5b0500['insert'](_0x2a6de6,_0x2901be,0x0);for(const _0x4be5f0 of Array['from'](_0x3b34f4['getChildren']()))_0x5b0500['insert'](_0x4be5f0,_0x2a6de6,'end');_0x474801=_0x948f0b['fromRange'](_0x5b0500['createRangeOn'](_0x2a6de6)),_0x3712d5=_0x948f0b['fromRange'](_0x5b0500['createRangeOn'](_0x130907));}const _0x11aad6=Array['from'](_0x3b34f4['getAttributes']())['filter'](([_0x41c85a])=>ge['includes'](_0x41c85a));_0x2d3b22['cells']['push']({'element':_0x2901be,'attributes':_0x11aad6['length']?Object['fromEntries'](_0x11aad6):null}),_0x474801&&_0x2d3b22['insertionRanges']['push'](_0x474801),_0x3712d5&&_0x2d3b22['deletionRanges']['push'](_0x3712d5);},{'priority':'high'}),_0x4cc8e1['on']('insertColumns',(_0x1df3ab,_0x35205f)=>{const [_0x56e010,_0x31de98={}]=_0x35205f;if(!_0x2d3b22)return;const _0x5b81f8=_0x31de98['at']||0x0,_0x35a308=_0x31de98['columns']||0x1;_0x2d3b22['columnInsertionIndexes']=new Array(_0x35a308)['fill'](_0x5b81f8)['map']((_0x4a3e61,_0x2bc784)=>_0x4a3e61+_0x2bc784);for(const {cell:_0x490768}of _0x4cc8e1['createTableWalker'](_0x56e010,{'startColumn':_0x5b81f8,'endColumn':_0x5b81f8+_0x35a308-0x1}))_0x2d3b22['columnInsertionRanges']['push'](_0x1776ab['model']['createRangeOn'](_0x490768));},{'priority':'low'}),_0x4cc8e1['on']('insertRows',(_0x1e0eb8,_0xf87303)=>{const [_0x5181e6,_0x34b793={}]=_0xf87303;if(!_0x2d3b22)return;const _0x594414=_0x34b793['at']||0x0,_0x17f725=_0x34b793['rows']||0x1;_0x2d3b22['rowInsertionIndexes']=new Array(_0x17f725)['fill'](_0x594414)['map']((_0xd4439f,_0x483542)=>_0xd4439f+_0x483542);for(const {cell:_0x4a031e}of _0x4cc8e1['createTableWalker'](_0x5181e6,{'startRow':_0x594414,'endRow':_0x594414+_0x17f725-0x1}))_0x2d3b22['rowInsertionRanges']['push'](_0x1776ab['model']['createRangeOn'](_0x4a031e));},{'priority':'low'}),_0xfa8e11['descriptionFactory']['registerDescriptionCallback'](_0x5e6d41=>{if(_0x5e6d41['subType']&&_0x5e6d41['subType']['startsWith']('tablePaste'))return _0x5e6d41['previous']?{}:{'type':'insertion','content':o(_0x1776ab['locale'],'*Replace\x20table\x20cells*')};});const _0x5e4d25=()=>!0x1;for(const _0x19a1ac of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xfa8e11['_suggestionFactory']['registerCustomCallback']('insertion',_0x19a1ac,'join',_0x5e4d25),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('deletion',_0x19a1ac,'join',_0x5e4d25),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x19a1ac,'join',_0x5e4d25);_0xfa8e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5e4d25),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x7d3859,_0x446104,_0x1402c0)=>{const _0x21ad4b=_0x7d3859['map'](_0x506f51=>_0x506f51['getContainedElement']())['filter'](_0x4ee19a=>_0x4ee19a),_0x3c380e=new Map(_0x21ad4b['map'](_0x415a48=>[_0x415a48,null]));if(_0x2d3b22){for(const {element:_0x32b1ed,attributes:_0x5a2fd}of _0x2d3b22['cells'])_0x5a2fd&&_0x3c380e['set'](_0x32b1ed,_0x5a2fd);}else{if(_0x1402c0&&_0x1402c0['markerAttributes'])for(const [_0x2bd4bc,_0x32e1f3]of Object['entries'](_0x1402c0['markerAttributes'])){const _0x1184a9=_0x1776ab['model']['markers']['get'](_0x2bd4bc),_0x3d1aec=_0x1184a9?_0x1184a9['getRange']()['getContainedElement']():null;_0x3d1aec&&_0x3c380e['set'](_0x3d1aec,_0x32e1f3);}}_0x1776ab['model']['change'](_0x1fcbe0=>{for(const [_0x131277,_0xa4d065]of _0x3c380e)_0x1fcbe0['setAttributes']({...Ce,..._0xa4d065},_0x131277);});});const _0x48695e=(_0x122672,_0x369f04)=>{_0xfa8e11['_suggestionFactory']['registerCustomCallback'](_0x122672,'tablePaste',_0x369f04,(_0x5996f1,_0x152919,_0x2ee717)=>{_0x1776ab['model']['change'](_0x1e6e77=>{const _0x58e571=[];for(const _0x2ef86c of _0x5996f1){const _0x410c22=_0x2ef86c['start']['nodeAfter'];_0x410c22['is']('element','tableCellSuggestion')&&_0x58e571['push'](_0x410c22);}_0xfa8e11['_suggestionFactory']['getSuggestionCallback'](_0x122672,null,_0x369f04)(_0x5996f1,_0x152919,_0x2ee717);for(const _0x5c7101 of _0x58e571)'$graveyard'!=_0x5c7101['root']['rootName']&&_0x1e6e77['unwrap'](_0x5c7101);});});};_0x48695e('insertion','accept'),_0x48695e('insertion','discard'),_0x48695e('deletion','accept'),_0x48695e('deletion','discard'),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x7f2e84=>{const _0x2bccf8=_0x7f2e84['map'](_0x491d3e=>_0x491d3e['getContainedElement']()),_0x3e787e=_0x2bccf8[0x0]['findAncestor']('table'),{minRow:_0x4664b4,maxRow:_0x41cce0}=_0xa9a577['_getCoordsForCells'](_0x2bccf8);_0x4cc8e1['removeRows'](_0x3e787e,{'at':_0x4664b4,'rows':_0x41cce0-_0x4664b4+0x1});}),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x58fd1e=>{const _0x59881c=_0x58fd1e['map'](_0x35849f=>_0x35849f['getContainedElement']()),_0x4dbddf=_0x59881c[0x0]['findAncestor']('table'),{minColumn:_0x574981,maxColumn:_0x5dcc59}=_0xa9a577['_getCoordsForCells'](_0x59881c);_0x4cc8e1['removeColumns'](_0x4dbddf,{'at':_0x574981,'columns':_0x5dcc59-_0x574981+0x1});});const _0x41c85f=(_0x5ceac7,_0x2f97e8)=>{if(!_0x2f97e8['subType']||!_0x2f97e8['subType']['startsWith']('tablePaste'))return;const _0x183e96=_0x2f97e8['attributes']['tablePasteChainId'],_0x3f2152=_0xfa8e11['getSuggestions']()['filter'](_0x370436=>_0x370436['isInContent']&&_0x370436['attributes']&&_0x370436['attributes']['tablePasteChainId']==_0x183e96);_0x3f2152['length']&&_0x2f97e8['getAllAdjacentSuggestions']()['length']!=_0x3f2152['length']&&_0x3f2152['reduce']((_0x5afb41,_0x246ce2)=>(_0x5afb41['next']=_0x246ce2,_0x246ce2['previous']=_0x5afb41,_0x246ce2));};function _0x114c9a(_0x129573,_0x47934b=!0x0){const {id:_0x3f675c}=_0xfa8e11['_splitMarkerName'](_0x129573['markerName']),_0x547861=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3868c6=_0xfa8e11['activeMarkers']['includes'](_0x129573['markerName']);return _0x3868c6&&_0x547861['push']('ck-suggestion-marker--active'),{'classes':_0x547861,'attributes':{'data-suggestion':_0x3f675c},'priority':_0x3868c6&&_0x47934b?0xbc2:0xbb8};}_0xfa8e11['on']('suggestionLoaded',_0x41c85f,{'priority':'high'}),_0xfa8e11['on']('suggestionUnloaded',_0x41c85f,{'priority':'high'}),_0x1776ab['model']['document']['registerPostFixer'](()=>{let _0x20808a=!0x1;const _0x49b78b=Array['from'](_0x1776ab['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x289c38,data:_0x7ed752}of _0x49b78b){const {group:_0x4f44ea,type:_0x195b5d,id:_0x31b6f7}=_0xfa8e11['_splitMarkerName'](_0x289c38);if('suggestion'!=_0x4f44ea||'deletion'!=_0x195b5d||_0x7ed752['oldRange'])continue;if(!_0xfa8e11['hasSuggestion'](_0x31b6f7))continue;const _0x51bb1e=_0xfa8e11['getSuggestion'](_0x31b6f7)['getRanges'](),_0x16f5d5=_0x1776ab['plugins']['get']('Users')['me'];for(const _0x316e17 of _0xfa8e11['getSuggestions']()){if(!_0x316e17['isInContent']||_0x316e17['author']!=_0x16f5d5)continue;if('formatBlock'!=_0x316e17['type']||'tablePasteCell'!=_0x316e17['subType'])continue;if(_0x316e17['getRanges']()['every'](_0x44134a=>_0x51bb1e['some'](_0x5a1816=>_0x5a1816['containsRange'](_0x44134a,!0x0)))){for(const _0x318055 of _0x316e17['getAllAdjacentSuggestions']())_0x318055['isInContent']&&(_0x318055['discard'](),_0x20808a=!0x0);}}}return _0x20808a;}),_0x1776ab['model']['document']['registerPostFixer'](_0x5dc406=>{const _0x35bb71=_0x1776ab['commands']['get']('redo');if(!_0x35bb71||!_0x35bb71['_createdBatches']['has'](_0x5dc406['batch']))return!0x1;let _0x57d6d4=!0x1;const _0x2a8cce=_0x1776ab['plugins']['get']('Users')['me'],_0x4e7bde=_0x1776ab['model']['document']['differ']['getChanges'](),_0x19525a=Array['from'](_0x1776ab['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3d11e9,data:_0x15a42a})=>{const {group:_0x1fad4b,subType:_0x52fe55,authorId:_0x24f8e6}=_0xfa8e11['_splitMarkerName'](_0x3d11e9);return'suggestion'==_0x1fad4b&&'tablePaste'==_0x52fe55&&_0x24f8e6==_0x2a8cce['id']&&!_0x15a42a['oldRange'];});for(const _0x4a81f5 of _0x4e7bde){if('insert'!=_0x4a81f5['type']||'tableCellSuggestion'!=_0x4a81f5['name']||0x1!=_0x4a81f5['length'])continue;const _0x305f19=_0x5dc406['createRange'](_0x4a81f5['position'],_0x4a81f5['position']['getShiftedBy'](0x1));if(!_0x19525a['find'](({data:_0x56853b})=>_0x56853b['newRange']['isEqual'](_0x305f19))){for(const {name:_0x3d2466,data:_0x54af6c}of _0x19525a)if(_0x305f19['containsRange'](_0x54af6c['newRange'])){_0x5dc406['updateMarker'](_0x3d2466,{'range':_0x305f19}),_0x57d6d4=!0x0;break;}}}return _0x57d6d4;}),_0x1776ab['model']['document']['registerPostFixer'](_0x4ee4d0=>{let _0x47d0b5=!0x1;const _0x25f779=_0x1776ab['plugins']['get']('Users')['me'],_0x8567c9=_0xfa8e11['getSuggestions']()['filter'](_0x5a64ce=>_0x5a64ce['isInContent']&&_0x5a64ce['author']==_0x25f779),_0x3a73a2=new Set(),_0x1dcd0f=new Set();for(const _0x1019c7 of _0x8567c9)if('tablePaste'==_0x1019c7['subType'])for(const _0xb8bbed of _0x1019c7['getMarkers']()){const _0x511757=_0xb8bbed['getRange']()['getContainedElement']();if(_0x511757){if(_0x511757['is']('element','tableCellSuggestion')&&Pe(_0x511757)){_0x1019c7['removeMarker'](_0xb8bbed['name']),_0x3a73a2['add'](_0x511757),_0x47d0b5=!0x0;const _0x342c02=_0x511757['nextSibling'],_0x4f7ce4=_0x511757['previousSibling'],_0x102bb3=_0x342c02&&_0x342c02['is']('element','tableCellSuggestion'),_0x25fcef=_0x4f7ce4&&_0x4f7ce4['is']('element','tableCellSuggestion');_0x102bb3&&!_0x3a73a2['has'](_0x342c02)&&_0x1dcd0f['add'](_0x342c02),_0x25fcef&&!_0x3a73a2['has'](_0x4f7ce4)&&_0x1dcd0f['add'](_0x4f7ce4);}else _0x511757['is']('element','paragraph')&&_0x511757['isEmpty']&&(_0x1019c7['removeMarker'](_0xb8bbed['name']),_0x47d0b5=!0x0);}}else{if('tablePasteCell'==_0x1019c7['subType']){if(!_0x1019c7['attributes']||!_0x1019c7['attributes']['tablePasteChainId'])continue;const _0x4ac58e=_0x1019c7['attributes']['markerAttributes'];if(_0x4ac58e&&Object['keys'](_0x4ac58e)['length'])continue;const _0x6020d5=_0x1019c7['attributes']['tablePasteChainId'];let _0x37c6a1=!0x0,_0x2ad168=!0x0;for(const _0xe50f3d of _0x8567c9)if(_0xe50f3d['subType']&&_0xe50f3d['subType']['startsWith']('tablePaste')){if(!_0xe50f3d['attributes']['tablePasteChainId']){_0x2ad168=!0x1;break;}if(_0xe50f3d['id']!=_0x1019c7['id']&&_0xe50f3d['attributes']['tablePasteChainId']==_0x6020d5){_0x37c6a1=!0x1;break;}}_0x2ad168&&_0x37c6a1&&(_0x1019c7['removeMarkers'](),_0x47d0b5=!0x0);}}for(const _0x22ff78 of _0x3a73a2)_0x4ee4d0['remove'](_0x22ff78);for(const _0x256fe4 of _0x1dcd0f)_0x4ee4d0['unwrap'](_0x256fe4);return _0x47d0b5;}),_0x1776ab['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3d8e67,_0x23d222)=>_0x114c9a(_0x3d8e67),'converterPriority':'high'}),_0x1776ab['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x38bfd1,_0xd9214d)=>_0xd9214d['options']['showSuggestionHighlights']?_0x114c9a(_0x38bfd1,!0x1):null,'converterPriority':'high'});const _0x576392=_0x1776ab['editing']['view'];this['listenTo'](_0x576392['document'],'clipboardOutput',(_0x225d67,_0x16da3d)=>{const _0x3c4a2c=[];for(const _0x14585b of _0x576392['createRangeIn'](_0x16da3d['content'])['getItems']())_0x14585b['is']('element','suggestion-td')&&_0x3c4a2c['push'](_0x14585b);_0x576392['change'](_0x187b96=>{for(const _0x987471 of _0x3c4a2c)_0x187b96['move'](_0x187b96['createRangeIn'](_0x987471),_0x187b96['createPositionBefore'](_0x987471)),_0x187b96['remove'](_0x987471);});});}}function Pe(_0x2711bf){if(_0x2711bf['isEmpty'])return!0x0;const _0x36973d=_0x2711bf['getChild'](0x0);return _0x36973d['is']('element','paragraph')&&_0x36973d['isEmpty'];}function we(_0x3c19c5,_0x541a0f={},_0x5910bc){for(const {isAnchor:_0x238931,cellHeight:_0x5944b8,cellWidth:_0x1d1fff}of _0x5910bc['createTableWalker'](_0x3c19c5,{'includeAllSlots':!0x0,..._0x541a0f}))if(!_0x238931||0x1!=_0x5944b8||0x1!=_0x1d1fff)return!0x1;return!0x0;}class Ct extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x8cf208=this['editor']['plugins']['get']('TrackChangesEditing');_0x8cf208['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x8cf208['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x8cf208['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8cf208['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x8cf208['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x8cf208['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x10c67a,_0x53d45c){const _0x1520dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b8fa1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x114e0f=_0x53d45c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3f916f=_0x3b8fa1['getColumnGroupElement'](_0x114e0f);let _0x16b42e=_0x3f916f?_0x3b8fa1['getTableColumnsWidths'](_0x3f916f):null,_0x3bad62=_0x114e0f['getAttribute']('tableWidth')||null;const _0x7a0fb9=_0x53d45c['tableWidth']||_0x3bad62,_0x10d53b=_0x53d45c['columnWidths']||_0x16b42e,_0x3a8d8f=this['editor']['plugins']['get']('Users')['me'];for(const _0x119a9f of _0x1520dd['getSuggestions']()){const _0x16dcef=_0x119a9f['getContainedElement']();if('resizeTable'===_0x119a9f['subType']&&_0x16dcef===_0x114e0f){_0x119a9f['author']!==_0x3a8d8f&&_0x119a9f['discard']();const _0x171b86=_0x119a9f['data']['commandParams'];_0x3bad62=_0x171b86[0x0]['tableWidth'],_0x16b42e=_0x171b86[0x0]['columnWidths'];break;}}_0x10c67a({'table':_0x114e0f,'tableWidth':_0x7a0fb9,'columnWidths':_0x10d53b}),_0x1520dd['markBlockFormat'](_0x114e0f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3bad62,'columnWidths':_0x16b42e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x14a7cd){if('formatBlock'!=_0x14a7cd['type']&&'formatInline'!=_0x14a7cd['type'])return;const {data:_0x228bb1}=_0x14a7cd;if(_0x228bb1&&'resizeTable'===_0x228bb1['formatGroupId']){const _0xc030d9='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xc030d9)};}}}class _t extends _0x15c086{['afterInit'](){const _0x41be26=this['editor'];_0x41be26['plugins']['has']('Template')&&_0x41be26['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Dt extends _0x15c086{['afterInit'](){const _0x345313=this['editor'];if(!_0x345313['commands']['get']('insertTableOfContents'))return;_0x345313['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x59afbc=_0x345313['plugins']['get']('TrackChangesEditing'),_0x4fc344=_0x345313['locale'];_0x59afbc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1adcd3=>o(_0x4fc344,'ELEMENT_TABLE_OF_CONTENTS',_0x1adcd3));}}class Nt extends _0x15c086{['afterInit'](){const _0x5733fd=this['editor'];if(!_0x5733fd['plugins']['has']('Title'))return;const _0x629e3=_0x5733fd['plugins']['get']('TrackChangesEditing');_0x629e3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5733fd['locale'],'ELEMENT_TITLE')),_0x5733fd['model']['document']['registerPostFixer'](_0x2b0add=>{let _0x5414ed=!0x1;const _0x21d969=Array['from'](_0x5733fd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15def7,data:_0x22775e}of _0x21d969){const {group:_0x119fb8}=_0x629e3['_splitMarkerName'](_0x15def7);if('suggestion'!==_0x119fb8||!_0x22775e['newRange'])continue;const _0x87296=_0x22775e['newRange'],_0x3f2708=_0x87296['end']['nodeBefore'];if(!_0x3f2708||!_0x3f2708['is']('element','title-content'))continue;if(!_0x87296['start']['isTouching'](_0x87296['end']))continue;const _0xa3a815=_0x5733fd['model']['schema']['getNearestSelectionRange'](_0x87296['end'],'forward');if(_0xa3a815&&_0xa3a815['isCollapsed']){const _0x2f29da=_0x2b0add['createRange'](_0x87296['start'],_0xa3a815['start']);_0x2f29da['isEqual'](_0x87296)||(_0x2b0add['updateMarker'](_0x15def7,{'range':_0x2f29da}),_0x5414ed=!0x0);}_0x5414ed||(_0x2b0add['removeMarker'](_0x15def7),_0x5414ed=!0x0);}return _0x5414ed;});}}class Mt extends _0x15c086{['afterInit'](){const _0x1a0e28=this['editor'],_0x1f6b3d=_0x1a0e28['plugins']['get']('TrackChangesEditing');_0x1a0e28['plugins']['has']('UndoEditing')&&(_0x1f6b3d['enableCommand']('undo'),_0x1f6b3d['enableCommand']('redo'));}}class $t extends _0x15c086{static get['requires'](){return[St];}['afterInit'](){const _0x513057=this['editor'];if(!_0x513057['plugins']['has']('TableCaptionEditing'))return;_0x513057['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Bt extends _0x15c086{['tableProperties'];['tableCellProperties'];constructor(_0x1749ac){super(_0x1749ac),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 _0x51db46=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x477e0d of this['tableProperties'])_0x51db46['enableCommand'](_0x477e0d,(_0x5639c2,_0x2526d2)=>{const _0x591f05=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x477e0d,[_0x591f05],this['tableProperties'],'tableProperties',_0x5639c2,_0x2526d2);});_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x51db46['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4c0e4a,_0x390c67)=>this['handleDiscardAction'](this['tableProperties'],_0x4c0e4a,_0x390c67)),_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x12f8ea of this['tableCellProperties'])_0x51db46['enableCommand'](_0x12f8ea,(_0x433e1d,_0x337ced)=>{const _0x4d18b6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x12f8ea,_0x4d18b6,this['tableCellProperties'],'tableCellProperties',_0x433e1d,_0x337ced);});_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x51db46['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2a76c3,_0x3b9d8f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2a76c3,_0x3b9d8f)),_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x51db46['descriptionFactory']['registerDescriptionCallback'](_0x1fe2ba=>this['handleSuggestionDescription'](_0x1fe2ba));}['_handlePropertyChange'](_0x4c1cd3,_0x5c8068,_0x2f6a94,_0x17c7d3,_0x794cdf,_0x7d7c5b){const _0x12eede=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x7d7c5b['batch'],()=>{for(const _0x103007 of _0x5c8068){if(this['_getSuggestion'](_0x103007,_0x17c7d3))_0x794cdf(_0x7d7c5b);else{const _0x2f61d0={};for(const _0x694e91 of _0x2f6a94){const _0x3c4a44=_0x103007['getAttribute'](_0x694e91);void 0x0!==_0x3c4a44&&(_0x2f61d0[_0x694e91]=_0x3c4a44);}_0x794cdf(_0x7d7c5b),_0x12eede['markBlockFormat'](_0x103007,{'commandParams':[_0x2f61d0]},[],_0x17c7d3);}}});}['handleDiscardAction'](_0x1df6be,_0x64904e,_0x4de6bd){const _0x4eeba5=_0x64904e[0x0]['start']['nodeAfter'],_0x301a4d=_0x4de6bd['commandParams'][0x0];this['editor']['model']['change'](_0x46aa1d=>{for(const _0x1e7e94 of _0x1df6be)void 0x0!==_0x301a4d[_0x1e7e94]?_0x46aa1d['setAttribute'](_0x1e7e94,_0x301a4d[_0x1e7e94],_0x4eeba5):_0x46aa1d['removeAttribute'](_0x1e7e94,_0x4eeba5);});}['handleSuggestionDescription'](_0x3467fc){if(_0x3467fc['data'])switch(_0x3467fc['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'](_0x363863,_0x4f9843){const _0x4e98eb=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x269803 of _0x4e98eb['getSuggestions']({'skipNotAttached':!0x0})){const _0x43ec6b=_0x269803['getContainedElement']();if(_0x269803['subType']===_0x4f9843&&_0x43ec6b===_0x363863)return _0x269803;}return null;}}const m='$elementName';class p extends _0x15c086{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x391bb8,_0x159dc3,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,mt,ct,z,pe,ft,gt,lt,dt,pt,kt,bt,wt,yt,jt,St,At,It,$t,vt,Ct,Dt,Bt,_t,Nt,Mt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x59bd3e){function _0x18f6da(_0x340367){return _0x340367['map'](_0x352fc4=>String['fromCharCode'](_0x352fc4))['join']('');}super(_0x59bd3e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x52d663,_0x1269f9,_0xe452d6,_0x43ce7c)=>{this['_model']['change'](()=>{for(const _0x5e9df7 of[..._0x43ce7c,..._0xe452d6])this['_model']['markers']['has'](_0x5e9df7)&&_0x59bd3e['editing']['reconvertMarker'](_0x5e9df7);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Rt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x59bd3e['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(),_0x59bd3e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x59bd3e['config']['get']('trackChanges.trackFormatChanges'),_0x59bd3e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x59bd3e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x59bd3e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x18f6da([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x18f6da([0x34,0x30,0x34,0x38,0x31,0x34,0x34,0x30]);}['init'](){const _0x94d4b7=this['editor'],_0x1c39c4=(_0x1473a5,_0x575c49)=>{if('attribute'!=_0x1473a5)return'ck-suggestion-marker-'+_0x1473a5;const _0xb4a941=_0x575c49['split']('|')[0x0];return this['_isBlockAttribute'](_0xb4a941)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x94d4b7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x29339e=>{const {id:_0xd05fee,type:_0x1afb79,subType:_0x69d425}=this['_splitMarkerName'](_0x29339e['markerName']),_0x297372=['ck-suggestion-marker',_0x1c39c4(_0x1afb79,_0x69d425)];let _0xeec419=0xbb8;return this['activeMarkers']['includes'](_0x29339e['markerName'])&&(_0x297372['push']('ck-suggestion-marker--active'),_0xeec419=0xbc2),'deletion'==_0x1afb79&&(_0xeec419+=0x5),{'classes':_0x297372,'attributes':{'data-suggestion':_0xd05fee},'priority':_0xeec419};}}),_0x94d4b7['conversion']['for']('dataDowncast')['add'](_0x28c251=>{_0x28c251['on']('addMarker:suggestion',(_0x4d1596,_0x408a58,_0x403b4d)=>{if(!_0x403b4d['options']['showSuggestionHighlights'])return;const _0x29650e=_0x408a58['item'];if(!_0x29650e)return;const _0xed272e=_0x403b4d['mapper']['toViewElement'](_0x29650e);_0x94d4b7['model']['schema']['isObject'](_0x29650e)&&_0xed272e&&!_0xed272e['getCustomProperty']('widget')&&_0xed272e['is']('containerElement')&&_0xb67c89(_0xed272e,_0x403b4d['writer']);},{'priority':'high'});}),_0x94d4b7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x50a6a8,_0x537355)=>{if(!_0x537355['options']['showSuggestionHighlights'])return null;const {type:_0x2174d2,subType:_0x938e79}=this['_splitMarkerName'](_0x50a6a8['markerName']);return{'classes':['ck-suggestion-marker',_0x1c39c4(_0x2174d2,_0x938e79)],'priority':0xbb8};}});const _0xbd3ce9=({showActiveMarkers:_0x1f84f7=!0x0,isAttributeSuggestion:_0x5b25bc=!0x1}={})=>(_0x11b37b,_0x471bbf,_0x1a8df1)=>{if(!_0x471bbf['item'])return;const {id:_0x1de24c}=this['_splitMarkerName'](_0x471bbf['markerName']);if(_0x5b25bc){const _0x21bbc9=this['_suggestions']['get'](_0x1de24c),_0x3e35ce=this['_getAttributeKey'](_0x21bbc9);if(!this['_isBlockAttribute'](_0x3e35ce))return;}if(_0x471bbf['item']['is']('selection'))return void _0x1a8df1['consumable']['consume'](_0x471bbf['item'],_0x11b37b['name']);const _0xab104c=_0x1a8df1['mapper']['toViewElement'](_0x471bbf['item']);if(_0x471bbf['item']['is']('element')&&_0x94d4b7['model']['schema']['isBlock'](_0x471bbf['item'])&&!_0xab104c['getCustomProperty']('addHighlight')){_0x1a8df1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xab104c),_0x1a8df1['writer']['setAttribute']('data-suggestion',_0x1de24c,_0xab104c),_0x1a8df1['mapper']['bindElementToMarker'](_0xab104c,_0x471bbf['markerName']),_0x1f84f7&&(this['activeMarkers']['includes'](_0x471bbf['markerName'])?_0x1a8df1['writer']['addClass']('ck-suggestion-marker--active',_0xab104c):_0x1a8df1['writer']['removeClass']('ck-suggestion-marker--active',_0xab104c));for(const _0x3b6291 of _0x94d4b7['model']['createRangeIn'](_0x471bbf['item'])['getItems']())_0x1a8df1['consumable']['consume'](_0x3b6291,_0x11b37b['name']);_0x1a8df1['consumable']['consume'](_0x471bbf['item'],_0x11b37b['name']);}};_0x94d4b7['conversion']['for']('dataDowncast')['add'](_0x363417=>{_0x363417['on']('addMarker:suggestion:formatBlock',(_0x2caff0,_0x3d2955,_0x5192c3)=>{_0x5192c3['options']['showSuggestionHighlights']&&_0xbd3ce9({'showActiveMarkers':!0x1})(_0x2caff0,_0x3d2955,_0x5192c3);},{'priority':'highest'});}),_0x94d4b7['conversion']['for']('dataDowncast')['add'](_0x2f1f27=>{_0x2f1f27['on']('addMarker:suggestion:attribute',(_0x91d1bc,_0x54566f,_0x400690)=>{_0x400690['options']['showSuggestionHighlights']&&_0xbd3ce9({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x91d1bc,_0x54566f,_0x400690);},{'priority':'highest'});}),_0x94d4b7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3c6320,_0x22fca8)=>_0x22fca8['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3c6320['substr'](0xb)}}),_0x94d4b7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3ad7b0,{writer:_0x1cbe22})=>{let _0x3bf26a='suggestion:'+_0x3ad7b0['getAttribute']('suggestion-type')+':'+_0x3ad7b0['getAttribute']('id');return _0x3ad7b0['getAttribute']('marker-count')&&(_0x3bf26a+=':'+_0x3ad7b0['getAttribute']('marker-count')),_0x1cbe22['createElement']('$marker',{'data-name':_0x3bf26a});}}),_0x94d4b7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x94d4b7['conversion']['for']('editingDowncast')['add'](_0x369b8b=>{_0x369b8b['on']('addMarker:suggestion:formatBlock',_0xbd3ce9(),{'priority':'high'});}),_0x94d4b7['conversion']['for']('editingDowncast')['add'](_0x2bd565=>{_0x2bd565['on']('addMarker:suggestion:attribute',_0xbd3ce9({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x94d4b7['conversion']['for']('editingDowncast')['add'](_0x1dadd1=>{_0x1dadd1['on']('removeMarker:suggestion:formatBlock',(_0xb3da7a,_0x3d76e6,_0x575553)=>{const _0x53ff83=_0x575553['mapper']['markerNameToElements'](_0x3d76e6['markerName']);if(_0x53ff83){for(const _0x3c302f of _0x53ff83)_0x3c302f['getCustomProperty']('addHighlight')||(_0x575553['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c302f),_0x575553['writer']['removeAttribute']('data-suggestion',_0x3c302f),_0x575553['mapper']['unbindElementFromMarkerName'](_0x3c302f,_0x3d76e6['markerName']));}},{'priority':'high'});}),_0x94d4b7['conversion']['for']('editingDowncast')['add'](_0x20187a=>{_0x20187a['on']('removeMarker:suggestion:attribute',(_0x2f5b97,_0x321135,_0x3cadaf)=>{const _0x55268e=_0x3cadaf['mapper']['markerNameToElements'](_0x321135['markerName']);if(!_0x55268e)return;const {id:_0x3ad5e2}=this['_splitMarkerName'](_0x321135['markerName']),_0xc0ddb8=this['_suggestions']['get'](_0x3ad5e2),_0x4d4ae8=this['_getAttributeKey'](_0xc0ddb8);if(this['_isBlockAttribute'](_0x4d4ae8)){for(const _0x348810 of _0x55268e)_0x348810['getCustomProperty']('addHighlight')||(_0x3cadaf['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x348810),_0x3cadaf['writer']['removeAttribute']('data-suggestion',_0x348810),_0x3cadaf['mapper']['unbindElementFromMarkerName'](_0x348810,_0x321135['markerName']));}},{'priority':'high'});}),_0x94d4b7['model']['document']['registerPostFixer'](_0x28fbad=>{let _0x12f5c7=!0x1;const _0xab03d6=Array['from'](_0x94d4b7['model']['document']['differ']['getChangedMarkers']()),_0x11663b=new Set();for(const {name:_0x286172,data:_0x4f41e0}of _0xab03d6){const {group:_0x5a2229,type:_0x298381,subType:_0x4e45f8,id:_0x20733c}=this['_splitMarkerName'](_0x286172);if('suggestion'!==_0x5a2229)continue;const _0x283feb=this['_suggestions']['get'](_0x20733c);if(null!=_0x4f41e0['newRange']){'formatInline'==_0x298381&&(_0x12f5c7=_0x12f5c7||Vt(_0x4f41e0['newRange'],_0x286172,_0x28fbad,_0x94d4b7['model']['schema']));const _0x52725a='attribute'==_0x298381&&this['_isBlockAttribute'](_0x4e45f8['split']('|')[0x0]);if(_0x4f41e0['newRange']['isCollapsed']||'$graveyard'==_0x4f41e0['newRange']['root']['rootName']||'formatBlock'==_0x298381&&!Ot(_0x4f41e0['newRange'])||_0x52725a&&!Ot(_0x4f41e0['newRange'])||'deletion'==_0x298381&&!(!Et(_0x58812b=_0x4f41e0['newRange'])&&!function(_0x8646a2){return _0x8646a2['start']['parent']==_0x8646a2['end']['nodeBefore']&&_0x8646a2['start']['isAtEnd'];}(_0x58812b)))_0x28fbad['removeMarker'](_0x286172),_0x12f5c7=!0x0;else{if(!_0x283feb||!_0x283feb['isInContent'])continue;_0x11663b['add'](_0x283feb);}}}var _0x58812b;return _0x11663b['size']>0x0&&(_0x12f5c7=!!this['_joinWithAdjacentSuggestions'](_0x11663b)||_0x12f5c7),_0x12f5c7;}),_0x94d4b7['model']['document']['registerPostFixer'](_0x56ff24=>{let _0xdc6fd4=!0x1;for(const _0x27a981 of _0x94d4b7['model']['document']['differ']['getChanges']())if('insert'==_0x27a981['type'])for(const _0x3a83c3 of this['_suggestions']['values']()){if(_0x3a83c3['isMultiRange']||!_0x3a83c3['isInContent'])continue;const _0x58e0ea='formatBlock'==_0x3a83c3['type'],_0xdf7c5e=this['_getAttributeKey'](_0x3a83c3),_0x3b1a72=_0xdf7c5e&&this['_isBlockAttribute'](_0xdf7c5e);if(!_0x58e0ea&&!_0x3b1a72)continue;const _0x33582d=_0x3a83c3['getFirstRange']();if(_0x33582d['start']['parent']!=_0x33582d['end']['parent']&&!_0x33582d['end']['isAtEnd']){const _0x450fbf=_0x94d4b7['model']['createPositionAt'](_0x33582d['start']['nodeAfter'],'end'),_0x1e1cf5=_0x94d4b7['model']['createRange'](_0x33582d['start'],_0x450fbf);_0x56ff24['updateMarker'](_0x3a83c3['getFirstMarker'](),{'range':_0x1e1cf5}),_0xdc6fd4=!0x0;}}return _0xdc6fd4;}),_0x94d4b7['model']['document']['registerPostFixer'](_0x424354=>this['_processAttributeChanges'](_0x424354)),_0x94d4b7['model']['document']['registerPostFixer'](_0x5e712a=>!_0x5e712a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5e712a)),_0x94d4b7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x94d4b7['model']['document']['on']('change:data',(_0x177c37,_0x1ae8ca)=>{if(!_0x1ae8ca['isLocal']||_0x1ae8ca['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x465895=_0x94d4b7['model']['document']['differ']['getChanges']();if(0x0==_0x465895['length'])return;const _0xf0cc2e=[],_0x17f03d=_0x465895['filter'](_0x3ad60f=>'attribute'==_0x3ad60f['type']),_0x562041=_0x465895['filter'](_0x14034f=>'insert'==_0x14034f['type']&&'$text'!=_0x14034f['name']);for(const _0x3a3411 of _0x17f03d)this['_isRegisteredAttribute'](_0x3a3411['attributeKey'])&&_0xf0cc2e['push']({'key':_0x3a3411['attributeKey'],'newValue':_0x3a3411['attributeNewValue'],'oldValue':_0x3a3411['attributeOldValue'],'range':Gt(_0x3a3411['range'],_0x94d4b7['model'])});for(const _0x64ec64 of _0x562041){if('rename'!=_0x64ec64['action']&&'refresh'!=_0x64ec64['action'])continue;const _0x494948=Ft(_0x64ec64['position']['nodeAfter'],_0x94d4b7['model']),_0x27aa80=_0x64ec64['before'];'rename'==_0x64ec64['action']&&_0xf0cc2e['push']({'key':m,'newValue':_0x64ec64['name'],'oldValue':_0x27aa80['name'],'range':_0x494948});for(const [_0x7f0e18,_0xb19505]of _0x27aa80['attributes']){if(!this['_isRegisteredAttribute'](_0x7f0e18))continue;const _0x2fb2a2=_0x64ec64['attributes']['get'](_0x7f0e18);_0xb19505!==_0x2fb2a2&&_0xf0cc2e['push']({'key':_0x7f0e18,'newValue':_0x2fb2a2,'oldValue':_0xb19505,'range':_0x494948});}for(const [_0x5c4204,_0x44d9cc]of _0x64ec64['attributes'])this['_isRegisteredAttribute'](_0x5c4204)&&(_0x27aa80['attributes']['has'](_0x5c4204)||_0xf0cc2e['push']({'key':_0x5c4204,'newValue':_0x44d9cc,'oldValue':null,'range':_0x494948}));}0x0!=_0xf0cc2e['length']&&_0x94d4b7['model']['enqueueChange'](_0x1ae8ca,_0x2f81a3=>{const _0x3a90cc=_0x27f732();for(const {range:_0x52acb9,key:_0x56e6e4,oldValue:_0x558a06,newValue:_0x5ec010}of _0xf0cc2e)this['markAttributeChange'](_0x52acb9,_0x56e6e4,_0x558a06,_0x5ec010,{'groupId':_0x3a90cc});this['_reduceExistingSuggestions'](_0x2f81a3,_0xf0cc2e);});},{'priority':'lowest'}),_0x94d4b7['model']['markers']['on']('update:suggestion',(_0x1a0326,_0x38d6a4,_0x5d4bd5)=>{if(null==_0x5d4bd5){const {id:_0x3a0781}=this['_splitMarkerName'](_0x38d6a4['name']),_0x4c80cb=this['_suggestions']['get'](_0x3a0781);_0x4c80cb&&_0x4c80cb['addMarkerName'](_0x38d6a4['name']);}}),_0x94d4b7['model']['document']['on']('change:data',()=>{const _0x4302e5=Array['from'](_0x94d4b7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x205d46=>'suggestion'===this['_splitMarkerName'](_0x205d46['name'])['group']);if(0x0===_0x4302e5['length'])return;_0x4302e5['sort']((_0x352556,_0x3c78b6)=>{const _0xcc33e1=_0x352556['data']['oldRange'],_0x10aa2d=_0x3c78b6['data']['oldRange'];return null===_0xcc33e1&&null===_0x10aa2d?0x0:null===_0xcc33e1&&null!==_0x10aa2d?-0x1:null!==_0xcc33e1&&null===_0x10aa2d?0x1:_0xcc33e1['start']['isBefore'](_0x10aa2d['start'])?-0x1:0x1;});const _0x52db19=new Set(),_0x5d6c39=new Set();for(const {name:_0x46f5b4,data:_0x360d5b}of _0x4302e5){const {id:_0x179bbb}=this['_splitMarkerName'](_0x46f5b4);if(null===_0x360d5b['oldRange']){const _0x5abb1e=this['_handleNewSuggestionMarker'](_0x46f5b4);_0x5d6c39['add'](_0x5abb1e);}else{const _0xa76e69=this['_suggestions']['get'](_0x179bbb);null!==_0x360d5b['newRange']||_0xa76e69['isInContent']?(_0x52db19['add'](_0xa76e69['head']),_0x5d6c39['add'](_0xa76e69)):this['_removeSuggestion'](_0xa76e69);}}_0x5d6c39['size']>0x0&&this['_refreshSuggestionsChain'](_0x5d6c39);for(const _0x3cd0b1 of _0x52db19)this['fire']('suggestionChanged',_0x3cd0b1);}),_0x94d4b7['model']['on']('applyOperation',(_0x4dd8d0,_0x4c4ab8)=>{const _0x18c5b5=_0x4c4ab8[0x0];if(!this['_suggestions']['size'])return;if(!_0x18c5b5['isDocumentOperation'])return;if(_0x18c5b5['batch']['isUndo']||!_0x18c5b5['batch']['isLocal'])return;let _0x2c8b17,_0x31e9f7;switch(_0x18c5b5['type']){case'insert':_0x2c8b17=_0x94d4b7['model']['createPositionAt'](_0x18c5b5['position']),_0x31e9f7=_0x2c8b17['getShiftedBy'](_0x18c5b5['howMany']);break;case'split':_0x2c8b17=_0x94d4b7['model']['createPositionAt'](_0x18c5b5['splitPosition']),_0x31e9f7=_0x94d4b7['model']['createPositionAt'](_0x18c5b5['moveTargetPosition']);break;case'move':_0x2c8b17=_0x94d4b7['model']['createPositionAt'](_0x18c5b5['targetPosition']),_0x31e9f7=_0x2c8b17['getShiftedBy'](_0x18c5b5['howMany']);break;default:return;}const _0x4a08a7=_0x94d4b7['model']['createRange'](_0x2c8b17,_0x31e9f7);_0x94d4b7['model']['change'](()=>{for(const {suggestion:_0x393c20,meta:_0x2365c3}of this['_findSuggestions'](_0x4a08a7)){if(_0x393c20['isMultiRange'])continue;if('formatInline'==_0x393c20['type'])continue;const _0x413634=this['_getAttributeKey'](_0x393c20);if(_0x413634&&this['_isBlockAttribute'](_0x413634)&&'split'!=_0x18c5b5['type'])continue;const _0x3a8f6d=_0x393c20['data']&&_0x393c20['data']['multipleBlocks'];('formatBlock'!=_0x393c20['type']||'split'==_0x18c5b5['type']&&!_0x3a8f6d)&&(_0x2365c3['containsRangeInObject']||'insertion'==_0x393c20['type']&&_0x2365c3['isOwn']||_0x393c20['getFirstRange']()['containsRange'](_0x4a08a7)&&this['_breakSuggestionMarker'](_0x393c20,_0x2c8b17,_0x31e9f7));}});},{'priority':'lowest'}),_0x94d4b7['model']['on']('deleteContent',(_0x4122e0,_0x2b75ae)=>{const _0x249c1a=_0x2b75ae[0x0],_0x2146a5=_0x2b75ae[0x1];if(_0x2146a5&&_0x2146a5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x249c1a['isCollapsed'])return;const _0xf255b4=_0x94d4b7['model']['schema'],{start:_0x3758f6,end:_0xd6020f}=_0x249c1a['getFirstRange'](),_0x502a66=_0x3758f6['nodeAfter']&&_0xf255b4['isLimit'](_0x3758f6['nodeAfter'])?null:_0xf255b4['getNearestSelectionRange'](_0x3758f6,'forward'),_0x3bb1a8=_0xd6020f['nodeBefore']&&_0xf255b4['isLimit'](_0xd6020f['nodeBefore'])?null:_0xf255b4['getNearestSelectionRange'](_0xd6020f,'backward'),_0x34f4b9=_0x94d4b7['model']['createRange'](_0x502a66?_0x502a66['start']:_0x3758f6,_0x3bb1a8?_0x3bb1a8['end']:_0xd6020f);_0x94d4b7['model']['change'](_0xe2e622=>{this['markDeletion'](_0x34f4b9);const _0x23be18=_0x94d4b7['model']['schema']['getNearestSelectionRange'](_0x34f4b9['start']);_0x249c1a['is']('documentSelection')?_0xe2e622['setSelection'](_0x23be18):_0x249c1a['setTo'](_0x23be18);}),_0x4122e0['stop']();},{'priority':_0x200434['normal']+0xa}),_0x94d4b7['model']['on']('insertContent',(_0x46d5b2,_0x874e7b)=>{const _0x61a02b=_0x874e7b[_0x874e7b['length']-0x1];_0x61a02b&&_0x61a02b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x94d4b7['model']['change'](()=>{let _0xd51b01=_0x94d4b7['model']['insertContent'](_0x874e7b[0x0],_0x874e7b[0x1],_0x874e7b[0x2],{'forceDefaultExecution':!0x0});if(!_0xd51b01)return;_0x46d5b2['return']=_0xd51b01['clone']();const _0x2424a6=_0xd51b01['end']['nodeBefore'],_0x447729=_0x94d4b7['model']['schema'];_0x2424a6&&_0x447729['isBlock'](_0x2424a6)&&!_0x447729['isObject'](_0x2424a6)&&(_0xd51b01=_0x94d4b7['model']['createRange'](_0xd51b01['start'],_0x94d4b7['model']['createPositionAt'](_0x2424a6,'end'))),this['markInsertion'](_0xd51b01);}),_0x46d5b2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3a66cf=new $(_0x94d4b7,this['_suggestions']);_0x94d4b7['commands']['add']('acceptSuggestion',_0x3a66cf),this['enableCommand']('acceptSuggestion');const _0x2da8e8=new B(_0x94d4b7,this['_suggestions']);_0x94d4b7['commands']['add']('discardSuggestion',_0x2da8e8),this['enableCommand']('discardSuggestion'),_0x94d4b7['commands']['add']('acceptAllSuggestions',new x(_0x94d4b7,_0x3a66cf,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x94d4b7['commands']['add']('discardAllSuggestions',new x(_0x94d4b7,_0x2da8e8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x94d4b7['commands']['add']('acceptSelectedSuggestions',new R(_0x94d4b7,_0x3a66cf,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x94d4b7['commands']['add']('discardSelectedSuggestions',new R(_0x94d4b7,_0x2da8e8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x251b6d=_0x94d4b7['plugins']['get']('CommentsRepository');this['listenTo'](_0x251b6d,'addComment',(_0x20cb03,{threadId:_0x5ab62e})=>{const _0x23a7c2=this['_suggestions']['get'](_0x5ab62e);_0x23a7c2&&_0x23a7c2['commentThread']&&0x1===_0x23a7c2['commentThread']['length']&&this['_updateSuggestionData'](_0x5ab62e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x251b6d,'removeComment',(_0x213834,{threadId:_0x44c6f2})=>{const _0x4679a6=this['_suggestions']['get'](_0x44c6f2);_0x4679a6&&_0x4679a6['commentThread']&&!_0x4679a6['commentThread']['length']&&this['_updateSuggestionData'](_0x44c6f2,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x38730a){if(this['_adapter'])throw new _0x3cf89a('track-changes-adapter-already-set',this);this['_adapter']=_0x38730a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4b33cd=!0x1,toJSON:_0x1ba277=!0x1}={}){const _0xcc9621=[];for(const _0x42a0aa of this['_suggestions']['values']())_0x4b33cd&&!_0x42a0aa['isInContent']||_0xcc9621['push'](_0x42a0aa);return _0x1ba277?_0xcc9621['map'](_0x5a3f58=>_0x5a3f58['toJSON']()):_0xcc9621;}['getSuggestion'](_0x4d03b2){const _0x1d6a1a=this['_suggestions']['get'](_0x4d03b2);if(!_0x1d6a1a)throw new _0x3cf89a('track-changes-suggestion-not-found',this);return _0x1d6a1a;}['hasSuggestion'](_0x372457){return this['_suggestions']['has'](_0x372457);}['addSuggestionData'](_0x3ba015){const {authorId:_0x20c398,id:_0x40fe65,attributes:_0x4ff887}=_0x3ba015,[_0x3227b8,_0x7c9951]=_0x3ba015['type']['split'](':'),_0x144d78=this['_suggestions']['get'](_0x40fe65)||this['_createSuggestion'](_0x3227b8,_0x7c9951,_0x40fe65,_0x20c398,_0x4ff887);if(this['_addThreadToSuggestion'](_0x144d78),this['_checkSuggestionCorrectness'](_0x144d78,_0x3227b8,_0x7c9951||null,_0x20c398),_0x144d78['createdAt']=_0x3ba015['createdAt'],_0x144d78['_isDataLoaded']=!0x0,_0x4ff887&&_0x4ff887['@external']){const _0x517ff6=_0x4ff887['@external'],_0x576911=this['_getExternalAuthor'](_0x517ff6['authorName']);_0x144d78['authoredAt']=_0x517ff6['createdAt'],_0x144d78['author']=_0x576911,_0x144d78['isExternal']=!0x0;}else _0x144d78['authoredAt']=_0x3ba015['createdAt'];switch(_0x3ba015['data']&&(_0x144d78['data']=_0x3ba015['data']),_0x3ba015['attributes']&&(_0x144d78['attributes']=_0x3ba015['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x144d78['_saved']=!0x0),this['_suggestionState']['get'](_0x144d78)){case'notReady':this['_suggestionState']['set'](_0x144d78,'dataReady');break;case'markerReady':_0x144d78['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x144d78])),this['_refreshSuggestionsChain'](new Set([_0x144d78])),this['_suggestionState']['set'](_0x144d78,'ready'),this['fire']('suggestionLoaded',_0x144d78)):this['_suggestionState']['set'](_0x144d78,'removed');}return _0x144d78;}['acceptSuggestion'](_0x4a0a9a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x29d744 of _0x4a0a9a['getAllAdjacentSuggestions']())_0x29d744['accept']();});});}['discardSuggestion'](_0x53c0f6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x55d8b5 of _0x53c0f6['getAllAdjacentSuggestions']())_0x55d8b5['discard']();});});}['enableCommand'](_0x27c405,_0x300940){const _0x468248=this['editor']['commands']['get'](_0x27c405);if(!_0x468248)throw new _0x3cf89a('track-changes-command-not-found',this,{'commandName':_0x27c405});if(this['_enabledCommands']['has'](_0x468248))throw new _0x3cf89a('track-changes-enable-command-twice',this,{'commandName':_0x27c405});this['_enabledCommands']['add'](_0x468248),_0x300940&&_0x468248['on']('execute',(_0x101e23,_0x3c31d6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3c31d6['length']>0x0&&_0x3c31d6[_0x3c31d6['length']-0x1]&&_0x3c31d6[_0x3c31d6['length']-0x1]['forceDefaultExecution']?_0x3c31d6['pop']():(_0x101e23['return']=_0x300940((..._0x5e1114)=>_0x468248['execute'](..._0x5e1114,{'forceDefaultExecution':!0x0}),..._0x3c31d6),_0x101e23['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5104f9){let _0x557b0f,_0x424f03;const _0x4edbc4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x557b0f=_0x5104f9();}catch(_0x425047){_0x424f03=_0x425047;}return _0x4edbc4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x424f03&&_0x3cf89a['rethrowUnexpectedError'](_0x424f03,this),_0x557b0f;}['markInsertion'](_0x1c4150,_0x5d1100=null,_0xf5a636={}){if(_0x1c4150['isCollapsed'])return null;const _0x551854=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x56ac89,meta:_0x2fdc04}of this['_findSuggestions'](_0x1c4150,'insertion'))if(_0x2fdc04['isOwn']){if(!_0x2fdc04['isNextTo']){if(_0x2fdc04['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ht(_0x56ac89,_0xf5a636))continue;return _0x56ac89;}if(Ht(_0x56ac89,_0xf5a636))return _0x56ac89;this['_breakSuggestionMarker'](_0x56ac89,_0x1c4150['start'],_0x1c4150['end']);break;}if(_0x5d1100==_0x56ac89['subType']&&Ht(_0x56ac89,_0xf5a636)){const _0x418c89=_0x56ac89['getFirstRange']();return _0x418c89['start']['isEqual'](_0x1c4150['end'])?this['_setSuggestionRange'](_0x56ac89,this['_model']['createRange'](_0x1c4150['start'],_0x418c89['end'])):this['_setSuggestionRange'](_0x56ac89,this['_model']['createRange'](_0x418c89['start'],_0x1c4150['end'])),_0x56ac89;}}const _0x4cad8b=_0x27f732(),_0xb2ebe1=_0x551854['id'],_0x36dded=_0x5d1100?'insertion:'+_0x5d1100:'insertion',_0x3d4cb2=this['_setSuggestionData']({'id':_0x4cad8b,'type':_0x36dded,'createdAt':new Date(),'authorId':_0xb2ebe1,'attributes':_0xf5a636});return this['_addSuggestionMarker'](_0x36dded,_0x4cad8b,_0xb2ebe1,_0x1c4150),_0x3d4cb2;}['markMultiRangeInsertion'](_0x148ad3,_0x13b73a='multi',_0x19826f={}){const _0x15b66a=this['editor']['plugins']['get']('Users')['me'],_0x2f1d6c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x13b73a,'join');for(const _0x2fecc5 of this['getSuggestions']())if(_0x2fecc5['author']['id']==_0x15b66a['id']&&'insertion'==_0x2fecc5['type']&&_0x2fecc5['subType']==_0x13b73a&&Ht(_0x2fecc5,_0x19826f)&&(_0x2f1d6c(_0x2fecc5['getRanges'](),_0x148ad3)||_0x2f1d6c(_0x148ad3,_0x2fecc5['getRanges']()))){for(const _0x12ea0f of _0x148ad3)_0x2fecc5['addRange'](_0x12ea0f);return _0x2fecc5;}for(const {suggestion:_0x248ed4,meta:_0x82f324}of this['_findSuggestions'](_0x148ad3,'insertion')){if(!_0x82f324['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x82f324['containsRangeInObject'])continue;if(!Ht(_0x248ed4,_0x19826f))continue;let _0x5b52c4=!0x0;for(const _0x142f12 of _0x248ed4['getRanges']())for(const _0xedd174 of _0x148ad3)if(!_0x142f12['containsRange'](_0xedd174)){_0x5b52c4=!0x1;break;}if(_0x5b52c4)return _0x248ed4;}const _0x932914=_0x27f732(),_0x496647=_0x15b66a['id'],_0x4affae='insertion:'+_0x13b73a,_0x10a18f=this['_setSuggestionData']({'id':_0x932914,'type':_0x4affae,'createdAt':new Date(),'authorId':_0x496647,'attributes':_0x19826f});for(const _0x26386a of _0x148ad3)this['_addSuggestionMarker'](_0x4affae,_0x932914,_0x496647,_0x26386a,u['getMultiRangeId']());return _0x10a18f;}['markInlineFormat'](_0x5e00c1,_0x63cdc4,_0x55d6f1=null,_0x1c429d={}){if(_0x55d6f1=_0x55d6f1||Ut(_0x63cdc4),_0x5e00c1['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x32b848=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x55d6f1,'accept');return this['forceDefaultExecution'](()=>_0x32b848([_0x5e00c1],_0x63cdc4,_0x1c429d)),null;}const _0x149d76=this['editor']['plugins']['get']('Users')['me'],_0x3c833c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1e36e9,meta:_0x4cf433}of this['_findSuggestions'](_0x5e00c1,'insertion'))_0x4cf433['isOwn']&&!_0x4cf433['isInsideObject']&&_0x3c833c['push'](..._0x1e36e9['getRanges']());}const _0x2d5915=function(_0x5df397,_0x59d54b){const _0x5d08ea=[];for(const _0x2be7f1 of _0x59d54b){const _0x4a8156=_0x5df397['getIntersection'](_0x2be7f1);_0x4a8156&&_0x5d08ea['push'](_0x4a8156);}return _0x5d08ea;}(_0x5e00c1,_0x3c833c),_0x4bd0e7=function(_0x28c299,_0x45b14d){const _0x477c7f=[_0x28c299];for(const _0x5e3927 of _0x45b14d){let _0x37feed=0x0;for(;_0x37feed<_0x477c7f['length'];){const _0x1c5517=_0x477c7f[_0x37feed]['getDifference'](_0x5e3927);_0x477c7f['splice'](_0x37feed,0x1,..._0x1c5517),_0x37feed+=_0x1c5517['length'];}}return _0x477c7f;}(_0x5e00c1,_0x3c833c);_0x2d5915['length']&&this['_model']['change'](()=>{for(const _0x2aac7d of _0x2d5915){const _0x155419=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x55d6f1,'accept');this['forceDefaultExecution'](()=>_0x155419([_0x2aac7d],_0x63cdc4,_0x1c429d));}});for(const _0x572312 of _0x4bd0e7){let _0x1ae572=null,_0x36d8c4=_0x572312['start'],_0x3b5731=_0x572312['end'];for(const {suggestion:_0x5a5aa2,meta:_0x5dea3f}of this['_findSuggestions'](_0x572312,'formatInline')){if(!_0x5dea3f['isOwn'])continue;if(_0x5a5aa2['subType']!=_0x55d6f1)continue;if(!Ht(_0x5a5aa2,_0x1c429d))continue;const _0x2464c2=_0x5a5aa2['getFirstRange']();if(_0x2464c2['containsRange'](_0x572312,!0x0))return null;_0x36d8c4=_0x36d8c4['isBefore'](_0x2464c2['start'])?_0x36d8c4:_0x2464c2['start'],_0x3b5731=_0x3b5731['isAfter'](_0x2464c2['end'])?_0x3b5731:_0x2464c2['end'],_0x1ae572?_0x2464c2['start']['isBefore'](_0x1ae572['getFirstRange']()['start'])?(_0x1ae572['removeMarkers'](),_0x1ae572=_0x5a5aa2):_0x5a5aa2['removeMarkers']():_0x1ae572=_0x5a5aa2;}const _0x2a92b7=this['_model']['createRange'](_0x36d8c4,_0x3b5731);if(_0x1ae572)this['_setSuggestionRange'](_0x1ae572,_0x2a92b7);else{const _0x5ea461=_0x27f732(),_0x40967e=_0x149d76['id'];this['_setSuggestionData']({'id':_0x5ea461,'type':'formatInline:'+_0x55d6f1,'data':_0x63cdc4,'createdAt':new Date(),'authorId':_0x40967e,'attributes':_0x1c429d}),this['_addSuggestionMarker']('formatInline:'+_0x55d6f1,_0x5ea461,_0x40967e,_0x2a92b7);}}return null;}['markBlockFormat'](_0x865d46,_0x4fc2a4,_0x395b96=[],_0x132a94=null,_0x255724={}){_0x4fc2a4['formatGroupId']||(_0x4fc2a4['formatGroupId']=_0x4fc2a4['commandName']),_0x4fc2a4['multipleBlocks']=_0x865d46['is']('range'),_0x132a94=_0x132a94||Ut(_0x4fc2a4);const _0xd75b5a=_0x395b96['map'](_0x2e3028=>Ft(_0x2e3028,this['_model'])),_0x429ea1=_0x865d46['is']('range')?_0x865d46:Ft(_0x865d46,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5bfd84=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x132a94,'accept');return this['forceDefaultExecution'](()=>_0x5bfd84([_0x429ea1],_0x4fc2a4,_0x255724)),null;}_0xd75b5a['push'](_0x429ea1);let _0x53c891=!0x0;for(const _0x36eb3d of _0xd75b5a)if(!this['_rangeIsInLocalUserInsertion'](_0x36eb3d)){_0x53c891=!0x1;break;}if(_0x53c891&&'always'!==this['_trackFormatChanges']){const _0x5d3a29=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x132a94,'accept');return this['forceDefaultExecution'](()=>_0x5d3a29([_0x429ea1],_0x4fc2a4,_0x255724)),null;}let _0x2a9e4f=null,_0x51f16a=_0x429ea1['start'],_0x453740=_0x429ea1['end'];for(const {suggestion:_0x367579,meta:_0x4f0de7}of this['_findSuggestions'](_0x429ea1,'formatBlock')){if(!_0x4f0de7['isOwn'])continue;if(_0x4f0de7['isNextTo']||_0x4f0de7['containsRangeInObject']||_0x4f0de7['isInsideObject'])continue;if(_0x367579['data']['formatGroupId']!=_0x4fc2a4['formatGroupId'])continue;if(!Ht(_0x367579,_0x255724))continue;const _0x28783d=_0x367579['getFirstRange']();if(_0x367579['subType']==_0x132a94){if(_0x28783d['containsRange'](_0x429ea1,!0x0))return null;_0x51f16a=_0x51f16a['isBefore'](_0x28783d['start'])?_0x51f16a:_0x28783d['start'],_0x453740=_0x453740['isAfter'](_0x28783d['end'])?_0x453740:_0x28783d['end'],_0x2a9e4f?_0x28783d['start']['isBefore'](_0x2a9e4f['getFirstRange']()['start'])?(_0x2a9e4f['removeMarkers'](),_0x2a9e4f=_0x367579):_0x367579['removeMarkers']():_0x2a9e4f=_0x367579;}else{const _0x2ea643=_0x429ea1['getIntersection'](_0x28783d);this['_cutOutSuggestionMarker'](_0x367579,_0x2ea643);}}const _0x30a668=this['editor']['plugins']['get']('Users')['me'],_0x590db5=_0x27f732(),_0x4b0d38=_0x30a668['id'];if(_0x2a9e4f)return this['_setSuggestionRange'](_0x2a9e4f,this['_model']['createRange'](_0x51f16a,_0x453740)),_0x2a9e4f;{const _0x4b0392=this['_setSuggestionData']({'id':_0x590db5,'type':'formatBlock:'+_0x132a94,'data':_0x4fc2a4,'createdAt':new Date(),'authorId':_0x4b0d38,'attributes':_0x255724});return this['_addSuggestionMarker']('formatBlock:'+_0x132a94,_0x590db5,_0x4b0d38,this['_model']['createRange'](_0x51f16a,_0x453740)),_0x4b0392;}}['markMultiRangeBlockFormat'](_0x132abc,_0x59e136,_0x4775f6=[],_0x38f1d7=null,_0x16b8fa={}){_0x59e136['formatGroupId']||(_0x59e136['formatGroupId']=_0x59e136['commandName']);const _0x381fa0=_0x132abc[0x0];_0x59e136['multipleBlocks']=_0x381fa0['is']('range'),_0x38f1d7=_0x38f1d7||Ut(_0x59e136);const _0x49284e=_0x4775f6['map'](_0x4d0424=>Ft(_0x4d0424,this['_model'])),_0x470cde=_0x381fa0['is']('range')?_0x132abc:_0x132abc['map'](_0x37849b=>Ft(_0x37849b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x385d1e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38f1d7,'accept');return this['forceDefaultExecution'](()=>_0x385d1e(_0x470cde,_0x59e136,_0x16b8fa)),null;}_0x49284e['push'](..._0x470cde);let _0x54e8be=!0x0;for(const _0x5834fe of _0x49284e)if(!this['_rangeIsInLocalUserInsertion'](_0x5834fe)){_0x54e8be=!0x1;break;}if(_0x54e8be&&'always'!==this['_trackFormatChanges']){const _0x4bb09a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38f1d7,'accept');return this['forceDefaultExecution'](()=>_0x4bb09a(_0x470cde,_0x59e136,_0x16b8fa)),null;}const _0xa52e5e=this['editor']['plugins']['get']('Users')['me'];for(const _0x2f25b7 of this['getSuggestions']()){if(_0x2f25b7['author']['id']!=_0xa52e5e['id'])continue;if('formatBlock'!=_0x2f25b7['type']||_0x2f25b7['data']['formatGroupId']!=_0x59e136['formatGroupId'])continue;if(!Ht(_0x2f25b7,_0x16b8fa))continue;const _0x5966e2=_0x2f25b7['subType']==_0x38f1d7;for(let _0x33cbdd=0x0;_0x33cbdd<_0x470cde['length'];_0x33cbdd++){const _0x1bf88a=_0x470cde[_0x33cbdd];for(const _0x297d23 of _0x2f25b7['getMarkers']()){const _0x18cfa2=_0x297d23['getRange']();if(_0x1bf88a['isEqual'](_0x18cfa2)){_0x5966e2?(_0x470cde['splice'](_0x33cbdd,0x1),_0x33cbdd--):_0x2f25b7['removeMarker'](_0x297d23['name']);break;}}}}if(0x0==_0x470cde['length'])return null;const _0xe0193b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38f1d7,'join');for(const _0x193efb of this['getSuggestions']())if(_0x193efb['author']['id']==_0xa52e5e['id']&&'formatBlock'==_0x193efb['type']&&_0x193efb['data']['formatGroupId']==_0x59e136['formatGroupId']&&_0x193efb['subType']==_0x38f1d7&&Ht(_0x193efb,_0x16b8fa)&&(_0xe0193b(_0x193efb['getRanges'](),_0x470cde)||_0xe0193b(_0x470cde,_0x193efb['getRanges']()))){for(const _0x53858a of _0x470cde)_0x193efb['addRange'](_0x53858a);return _0x193efb;}const _0x5dddc8=_0x27f732(),_0x2c4ff0=_0xa52e5e['id'],_0x4e1d21='formatBlock:'+_0x38f1d7,_0x5109d5=this['_setSuggestionData']({'id':_0x5dddc8,'type':_0x4e1d21,'data':_0x59e136,'createdAt':new Date(),'authorId':_0x2c4ff0,'attributes':_0x16b8fa});for(const _0x3658d7 of _0x470cde)this['_addSuggestionMarker'](_0x4e1d21,_0x5dddc8,_0x2c4ff0,_0x3658d7,u['getMultiRangeId']());return _0x5109d5;}['markDeletion'](_0x28ea3b,_0x20155e=null,_0x50caa6={}){if(_0x28ea3b['isCollapsed'])return null;const _0x4123bd=this['editor']['plugins']['get']('Users')['me'],_0x41b6b9=new _0x948f0b(_0x28ea3b['start'],_0x28ea3b['end']);for(const {suggestion:_0x5bf784,meta:_0x294936}of this['_findSuggestions'](_0x41b6b9,'insertion'))if(_0x294936['isOwn']&&!_0x294936['isNextTo']){if(_0x5bf784['isMultiRange']){const _0xc4ef9f=_0x5bf784['getRanges']()['filter'](_0x6b9579=>'$graveyard'!=_0x6b9579['root']['rootName']);_0xc4ef9f['every'](_0x365944=>_0x41b6b9['containsRange'](_0x365944,!0x0))&&_0x5bf784['discard']();if(_0xc4ef9f['some'](_0x38380f=>_0x38380f['containsRange'](_0x41b6b9,!0x0))){const _0x10c56e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x20155e,'accept');return this['forceDefaultExecution'](()=>_0x10c56e([_0x41b6b9],null,_0x50caa6)),null;}}else{const _0x893b2f=_0x41b6b9['getIntersection'](_0x5bf784['getFirstRange']());null!==_0x893b2f&&_0x5bf784['_onDiscard']([_0x893b2f],null,_0x50caa6);}}if(_0x41b6b9['detach'](),_0x41b6b9['isCollapsed']||'$graveyard'==_0x41b6b9['root']['rootName'])return null;let _0x27c88a=null,_0xb7bf3b=_0x41b6b9['start'],_0x3da952=_0x41b6b9['end'];const _0x504ebe=this['_findSuggestions'](_0x41b6b9,'deletion');for(const {suggestion:_0x50abb5,meta:_0x71496b}of _0x504ebe){const _0x1b23e3=this['_model']['createRange'](_0xb7bf3b,_0x3da952);if(_0x71496b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x71496b['containsRangeInObject']&&!_0x71496b['isInsideObject'])){if(_0x50abb5['isMultiRange']){if(!Ht(_0x50abb5,_0x50caa6))continue;let _0x1548b2=!0x0;for(const _0x21bee9 of _0x50abb5['getRanges']()){if(_0x21bee9['containsRange'](_0x1b23e3,!0x0))return _0x50abb5;_0x1b23e3['containsRange'](_0x21bee9)||(_0x1548b2=!0x1);}_0x1548b2&&_0x50abb5['discard']();}else{const _0x54b433=_0x50abb5['getFirstRange']();if(_0x54b433['containsRange'](_0x1b23e3,!0x0))return _0x50abb5;if(!Ht(_0x50abb5,_0x50caa6)){_0x1b23e3['containsRange'](_0x54b433)?_0x50abb5['removeMarkers']():_0x54b433['containsPosition'](_0xb7bf3b)?_0xb7bf3b=_0x54b433['end']:_0x54b433['containsPosition'](_0x3da952)&&(_0x3da952=_0x54b433['start']);continue;}_0xb7bf3b=_0xb7bf3b['isBefore'](_0x54b433['start'])?_0xb7bf3b:_0x54b433['start'],_0x3da952=_0x3da952['isAfter'](_0x54b433['end'])?_0x3da952:_0x54b433['end'],_0x50caa6=Object['assign']({},_0x50abb5['attributes']),_0x27c88a?_0x54b433['start']['isBefore'](_0x27c88a['getFirstRange']()['start'])?(_0x27c88a['removeMarkers'](),_0x27c88a=_0x50abb5):_0x50abb5['removeMarkers']():_0x27c88a=_0x50abb5;}}}if(_0x27c88a)return this['_setSuggestionRange'](_0x27c88a,this['_model']['createRange'](_0xb7bf3b,_0x3da952)),_0x27c88a;{const _0x5a0f22=_0x27f732(),_0x43c526=this['_model']['createRange'](_0xb7bf3b,_0x3da952),_0x234af1=_0x4123bd['id'],_0x205e49=_0x20155e?'deletion:'+_0x20155e:'deletion',_0x12aebe=this['_setSuggestionData']({'id':_0x5a0f22,'type':_0x205e49,'createdAt':new Date(),'authorId':_0x234af1,'attributes':_0x50caa6});return this['_addSuggestionMarker'](_0x205e49,_0x5a0f22,_0x234af1,_0x43c526),_0x12aebe;}}['markMultiRangeDeletion'](_0x39352f,_0x540469='multi',_0x2f737e={}){const _0x16959b=this['editor']['plugins']['get']('Users')['me'],_0x11ac4a=_0x39352f['map'](_0x4586be=>new _0x948f0b(_0x4586be['start'],_0x4586be['end'])),_0x19d072=new Set();for(const {suggestion:_0xb73e79,meta:_0x5c49f4}of this['_findSuggestions'](_0x11ac4a,'insertion'))_0x5c49f4['isOwn']&&!_0x5c49f4['isNextTo']&&_0x19d072['add'](_0xb73e79);for(const _0x24b753 of _0x19d072)if(_0x24b753['isMultiRange']){const _0x34d173=_0x24b753['getRanges']();(!_0x24b753['attributes']||!_0x24b753['attributes']['skipNestingCheck'])&&(_0x34d173['every'](_0x18253b=>_0x11ac4a['some'](_0x424398=>_0x424398['containsRange'](_0x18253b,!0x0)))&&_0x24b753['discard']());if(_0x11ac4a['every'](_0x5a2b3e=>_0x34d173['some'](_0x5ebcd6=>_0x5ebcd6['containsRange'](_0x5a2b3e,!0x0)))){const _0x4b607b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x540469,'accept');return this['forceDefaultExecution'](()=>_0x4b607b(_0x39352f,null,_0x2f737e)),null;}}else{const _0x3a7c87=_0x24b753['getFirstRange']();_0x11ac4a['some'](_0x55d088=>_0x55d088['containsRange'](_0x3a7c87,!0x0))&&_0x24b753['discard']();if(_0x11ac4a['every'](_0x2b47ee=>_0x3a7c87['containsRange'](_0x2b47ee,!0x0))){const _0x47227f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x540469,'accept');return this['forceDefaultExecution'](()=>_0x47227f(_0x11ac4a,null,_0x2f737e)),null;}}const _0x26b6f5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x540469,'join');let _0x4b3b83=null;for(const _0x1579d3 of this['getSuggestions']())if(_0x1579d3['author']['id']==_0x16959b['id']&&_0x1579d3['isInContent']&&'deletion'==_0x1579d3['type']&&_0x1579d3['subType']==_0x540469&&Ht(_0x1579d3,_0x2f737e)&&(_0x26b6f5(_0x1579d3['getRanges'](),_0x11ac4a)||_0x26b6f5(_0x11ac4a,_0x1579d3['getRanges']()))){if(_0x4b3b83){if(_0x1579d3['commentThread']&&_0x1579d3['commentThread']['length'])continue;for(const _0x3803c4 of _0x1579d3['getRanges']())_0x4b3b83['isIntersectingWithRange'](_0x3803c4)||_0x4b3b83['addRange'](_0x3803c4);_0x1579d3['removeMarkers']();}else{_0x4b3b83=_0x1579d3;for(const _0x5b0786 of _0x11ac4a)_0x1579d3['isIntersectingWithRange'](_0x5b0786)||_0x1579d3['addRange'](_0x5b0786);}}if(_0x4b3b83)return _0x4b3b83;_0x19d072['clear']();for(const {suggestion:_0x1cb749,meta:_0x49b3f0}of this['_findSuggestions'](_0x11ac4a,'deletion'))_0x49b3f0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49b3f0['containsRangeInObject']&&!_0x49b3f0['isInsideObject'])&&Ht(_0x1cb749,_0x2f737e)&&_0x19d072['add'](_0x1cb749);for(const _0x1b0a30 of _0x19d072){const _0x59df0e=_0x1b0a30['getRanges']();if(!_0x2f737e||!_0x2f737e['skipNestingCheck']){if(_0x11ac4a['every'](_0x1266ac=>_0x59df0e['some'](_0x59218a=>_0x59218a['containsRange'](_0x1266ac,!0x0))))return _0x1b0a30;}(!_0x1b0a30['attributes']||!_0x1b0a30['attributes']['skipNestingCheck'])&&(_0x59df0e['every'](_0x689c42=>_0x11ac4a['some'](_0xa90a60=>_0xa90a60['containsRange'](_0x689c42,!0x0)))&&_0x1b0a30['discard']());}const _0x3e8bf8=_0x27f732(),_0x350976=_0x16959b['id'],_0x449f00='deletion:'+_0x540469,_0x1b14b6=this['_setSuggestionData']({'id':_0x3e8bf8,'type':_0x449f00,'createdAt':new Date(),'authorId':_0x350976,'attributes':_0x2f737e});for(const _0x383e2d of _0x11ac4a)_0x383e2d['detach'](),_0x383e2d['isCollapsed']||'$graveyard'==_0x383e2d['root']['rootName']||this['_addSuggestionMarker'](_0x449f00,_0x3e8bf8,_0x350976,_0x383e2d,u['getMultiRangeId']());return _0x1b14b6;}['markAttributeChange'](_0x2fecdd,_0x7c2406,_0x3d9c75,_0x2f6a7d,_0x1cd751){if(_0x2fecdd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xe4573e=this['editor']['plugins']['get']('Users')['me']['id'],_0x64a987=Array['from'](this['_suggestions']['values']())['filter'](_0x17eb57=>'attribute'==_0x17eb57['type']&&_0x17eb57['data']['key']==_0x7c2406&&_0x17eb57['isIntersectingWithRange'](_0x2fecdd));if('default'===this['_trackFormatChanges']){const _0x1765a9=this['_findSuggestions'](_0x2fecdd,'insertion')['filter'](({meta:_0x5e7147})=>_0x5e7147['isOwn']&&!_0x5e7147['isInsideObject']&&!_0x5e7147['isNextTo'])['map'](({suggestion:_0x545b94})=>_0x545b94);_0x64a987['unshift'](..._0x1765a9);}const _0x4b9fa2=new Map([[_0x2fecdd,_0x3d9c75]]);for(const _0x1f8722 of _0x64a987){const _0x15a07a='attribute'==_0x1f8722['type']?_0x1f8722['data']['oldValue']:void 0x0,_0x3103db=_0x1f8722['getFirstRange'](),_0x6e3aac=Array['from'](_0x4b9fa2['keys']())['find'](_0x726acb=>_0x726acb['isIntersecting'](_0x3103db));if(!_0x6e3aac)continue;const _0x1555b8=_0x6e3aac['getDifference'](_0x3103db);this['_isBlockAttribute'](_0x7c2406)&&'insertion'==_0x1f8722['type']&&0x0!=_0x1555b8['length']||(_0x4b9fa2['delete'](_0x6e3aac),_0x1555b8['forEach'](_0x512874=>{_0x4b9fa2['set'](_0x512874,_0x3d9c75);}),'insertion'!=_0x1f8722['type']&&_0x15a07a!=_0x2f6a7d&&_0x4b9fa2['set'](_0x6e3aac['getIntersection'](_0x3103db),_0x15a07a));}const _0x5779b5=[];for(const [_0xb35e,_0x510202]of _0x4b9fa2){const _0x237fa6=_0x27f732(),_0x1b8624={'key':_0x7c2406,'oldValue':_0x510202,'newValue':_0x2f6a7d};_0x7c2406['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':_0x7c2406});const _0x297bbb=('attribute:'+(_0x7c2406+'|'+Ut({'newValue':_0x2f6a7d})))['substring'](0x0,0x3c),_0x302b45=this['_setSuggestionData']({'id':_0x237fa6,'type':_0x297bbb,'data':_0x1b8624,'createdAt':new Date(),'authorId':_0xe4573e,'attributes':_0x1cd751});_0x5779b5['push'](_0x302b45),this['_addSuggestionMarker'](_0x297bbb,_0x237fa6,_0xe4573e,_0xb35e);}return _0x5779b5;}['enableDefaultAttributesIntegration'](_0x4f39c4){this['enableCommand'](_0x4f39c4,(_0x12eacf,..._0x233263)=>{this['_recordAttributeChanges'](()=>{_0x12eacf(..._0x233263);});});}['registerBlockAttribute'](_0x5c8873){this['_blockAttributeKeys']['add'](_0x5c8873);}['registerInlineAttribute'](_0x29ca51){this['_inlineAttributeKeys']['add'](_0x29ca51);}['_getAttributeKey'](_0x1431a2){return'attribute'==_0x1431a2['type']?_0x1431a2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x564af1,_0x4e6ec7){const _0x2eca49=_0x564af1['getFirstMarker']();this['_model']['change'](_0x20ebb3=>{_0x20ebb3['updateMarker'](_0x2eca49,{'range':_0x4e6ec7});});}['_addThreadToSuggestion'](_0x31fa31){const _0x4d23ba=_0x31fa31['id'],_0x19fe86=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4d23ba)||this['_commentsRepository']['addCommentThread']({'channelId':_0x19fe86,'threadId':_0x4d23ba,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x92b281=this['_commentsRepository']['getCommentThread'](_0x4d23ba);_0x92b281['unbind']('isRemovable'),_0x92b281['isRemovable']=!0x1,_0x31fa31['commentThread']=_0x92b281;}['_checkSuggestionCorrectness'](_0x8223c5,_0x45c77b,_0x117bc5,_0x56a8a6){if(_0x8223c5['type']!=_0x45c77b||_0x8223c5['subType']!=_0x117bc5||_0x8223c5['creator']['id']!=_0x56a8a6)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3cf89a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x331c61,_0x708a78){const _0x3517b0=_0x331c61['getFirstRange']();if(_0x708a78['isEqual'](_0x3517b0))_0x331c61['removeMarkers']();else{if(_0x3517b0['containsRange'](_0x708a78)){const _0x589bd8=this['_model']['createPositionAt'](_0x708a78['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x331c61,this['_model']['createRange'](_0x3517b0['start'],_0x589bd8));const _0x4d0c2f=_0x27f732(),_0x4ce1ab=_0x331c61['creator']['id'],_0x2eee12=_0x331c61['type']+':'+_0x331c61['subType'];this['_setSuggestionData']({'id':_0x4d0c2f,'type':_0x2eee12,'createdAt':new Date(),'authorId':_0x4ce1ab,'data':_0x331c61['data'],'attributes':_0x331c61['attributes']});const _0x3147ff=this['_model']['createPositionAt'](_0x708a78['end']['parent'],'after'),_0x488879=this['_model']['createRange'](_0x3147ff,_0x3517b0['end']);this['_addSuggestionMarker'](_0x2eee12,_0x4d0c2f,_0x4ce1ab,_0x488879);}else{if(_0x3517b0['containsPosition'](_0x708a78['start'])){const _0x41f493=this['_model']['createPositionAt'](_0x708a78['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x331c61,this['_model']['createRange'](_0x3517b0['start'],_0x41f493));}else{const _0x5d9695=this['_model']['createPositionAt'](_0x708a78['end']['parent'],'after');this['_setSuggestionRange'](_0x331c61,this['_model']['createRange'](_0x5d9695,_0x3517b0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1d37b3){for(const {suggestion:_0x254a8b,meta:_0x3fa44d}of this['_findSuggestions'](_0x1d37b3,'insertion')){if(!_0x3fa44d['isOwn'])continue;const _0x1c5f18=_0x254a8b['getRanges']();for(const _0x55a329 of _0x1c5f18)if(!_0x1d37b3['getDifference'](_0x55a329)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4c0e31){const _0x4abb2b=this['editor']['plugins']['get']('Users')['getUser'](_0x4c0e31);if(!_0x4abb2b)throw new _0x3cf89a('track-changes-user-not-found',this);return _0x4abb2b;}['_getExternalAuthor'](_0x2d6b6b){const _0x4e94e2=this['editor']['plugins']['get']('Users'),_0x15b794=_0x16ce2e('external:'+_0x2d6b6b),_0x365644=_0x4e94e2['getUser'](_0x15b794);return _0x365644||_0x4e94e2['addUser']({'id':_0x15b794,'name':_0x2d6b6b});}['_createSuggestion'](_0x124e38,_0x549704,_0x2f51b4,_0x4acb01,_0x187601){const _0x465fe5=this['_getAuthorFromId'](_0x4acb01),_0x4297c4=this['_suggestionFactory']['buildSuggestion'](_0x124e38,_0x549704,_0x2f51b4,_0x465fe5,_0x187601,_0xaa73bd=>{this['_updateSuggestionData'](_0x2f51b4,{'attributes':_0xaa73bd});const _0x34edcc=this['getSuggestion'](_0x2f51b4);this['_joinWithAdjacentSuggestions'](new Set([_0x34edcc])),this['_refreshSuggestionsChain'](new Set([_0x34edcc]));});return this['listenTo'](_0x4297c4,'accept',()=>{this['_updateSuggestionData'](_0x2f51b4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4297c4,'discard',()=>{this['_updateSuggestionData'](_0x2f51b4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f51b4,_0x4297c4),this['_suggestionState']['set'](_0x4297c4,'notReady'),_0x4297c4;}['_splitMarkerName'](_0x5bd87d){const _0x4f91bb=_0x5bd87d['split'](':');return{'group':_0x4f91bb[0x0],'type':_0x4f91bb[0x1],'subType':_0x4f91bb['length']>=0x5?_0x4f91bb[0x2]:null,'id':_0x4f91bb['length']<0x5?_0x4f91bb[0x2]:_0x4f91bb[0x3],'authorId':_0x4f91bb['length']<0x5?_0x4f91bb[0x3]:_0x4f91bb[0x4],'markerCount':0x6==_0x4f91bb['length']?_0x4f91bb[0x5]:null};}['_breakSuggestionMarker'](_0x3551de,_0x29acad,_0x2f982d){const _0x51ee12=_0x3551de['getFirstRange'](),_0x3168bd=_0x51ee12['start'],_0x32dc87=_0x51ee12['end'];this['_setSuggestionRange'](_0x3551de,this['_model']['createRange'](_0x3168bd,_0x29acad));const _0x554c89=_0x27f732(),_0x455f55=_0x3551de['creator']['id'],_0x4a8301=_0x3551de['type']+(_0x3551de['subType']?':'+_0x3551de['subType']:'');this['_setSuggestionData']({'id':_0x554c89,'type':_0x4a8301,'createdAt':new Date(),'authorId':_0x455f55,'originalSuggestionId':_0x3551de['id'],'attributes':_0x3551de['attributes'],'data':_0x3551de['data']});const _0x213be2=this['_getAttributeKey'](_0x3551de);('formatBlock'==_0x3551de['type']||_0x213be2&&this['_isBlockAttribute'](_0x213be2))&&(_0x2f982d=this['_model']['createPositionBefore'](_0x2f982d['parent'])),this['_addSuggestionMarker'](_0x4a8301,_0x554c89,_0x455f55,this['_model']['createRange'](_0x2f982d,_0x32dc87));}['_findSuggestions'](_0x37f847,_0x1e51dd=null){const _0x48c6f5=[],_0x13747d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x37f847)||(_0x37f847=[_0x37f847]);for(const _0x382e15 of this['getSuggestions']()){if(!_0x382e15['isInContent'])continue;if(_0x1e51dd&&_0x382e15['type']!=_0x1e51dd)continue;let _0x23cce9=!0x1;for(const _0x2f3ccc of _0x382e15['getRanges']()){for(const _0x5f0ff0 of _0x37f847){const _0x28efb2=_0x5f0ff0['start']['isEqual'](_0x2f3ccc['end'])||_0x5f0ff0['end']['isEqual'](_0x2f3ccc['start']);if(_0x28efb2||_0x5f0ff0['getIntersection'](_0x2f3ccc)){const _0x2fe0b3=_0x5f0ff0['containsRange'](_0x2f3ccc)&&Tt(this['_model']['schema'],_0x2f3ccc['start'],_0x5f0ff0),_0x432540=_0x2f3ccc['containsRange'](_0x5f0ff0)&&Tt(this['_model']['schema'],_0x5f0ff0['start'],_0x2f3ccc);_0x48c6f5['push']({'suggestion':_0x382e15,'meta':{'isOwn':_0x13747d==_0x382e15['author'],'isNextTo':_0x28efb2,'isInsideObject':_0x2fe0b3,'containsRangeInObject':_0x432540}}),_0x23cce9=!0x0;break;}}if(_0x23cce9)break;}}return _0x48c6f5;}['_addSuggestionMarker'](_0xfc247a,_0x43fc2,_0x465bbd,_0x3c7b99,_0x3324e1){this['_model']['change'](_0x3774c6=>{let _0x4722ff='suggestion:'+_0xfc247a+':'+_0x43fc2+':'+_0x465bbd;_0x3324e1&&(_0x4722ff=_0x4722ff+':'+_0x3324e1),_0x3774c6['addMarker'](_0x4722ff,{'range':_0x3c7b99,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x59c419){const _0x5c7f0d=_0x59c419['previous'],_0x596487=_0x59c419['next'];_0x59c419['previous']=null,_0x59c419['next']=null,null!=_0x5c7f0d&&_0x5c7f0d['next']==_0x59c419&&(_0x5c7f0d['next']=_0x596487),null!=_0x596487&&_0x596487['previous']==_0x59c419&&(_0x596487['previous']=_0x5c7f0d),'ready'==this['_suggestionState']['get'](_0x59c419)&&(this['_suggestionState']['set'](_0x59c419,'removed'),this['fire']('suggestionUnloaded',_0x59c419,_0x5c7f0d,_0x596487));}['_setSuggestionData'](_0x5cce4c){const _0x153867=_0x5cce4c['id'],_0x308d72=this['addSuggestionData'](_0x5cce4c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1d2cfb=this['editor']['plugins']['get']('PendingActions'),_0x1d21a6=_0x308d72['hasComments'],_0x51d4f3=_0x308d72['subType']?_0x308d72['type']+':'+_0x308d72['subType']:_0x308d72['type'],_0x3c6353=this['editor']['locale'],_0x3c557a=_0x1d2cfb['add'](o(_0x3c6353,'PENDING_ACTION_SUGGESTION')),_0x23b2e8={'id':_0x153867,'type':_0x51d4f3,'hasComments':_0x1d21a6,'data':_0x5cce4c['data']||null,'originalSuggestionId':_0x5cce4c['originalSuggestionId']||null,'attributes':_0x308d72['attributes']};this['_adapter']['addSuggestion'](_0x23b2e8)['then'](_0x1f81ee=>{_0x308d72['_saved']=!0x0,_0x1d2cfb['remove'](_0x3c557a),_0x1f81ee&&_0x1f81ee['createdAt']&&(this['_suggestions']['get'](_0x153867)['createdAt']=_0x1f81ee['createdAt']);})['catch'](_0x4dd813=>{throw _0x227421('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x308d72['discard']();}),_0x308d72['stopListening'](),this['_suggestions']['delete'](_0x308d72['id']),this['_suggestionState']['delete'](_0x308d72),_0x4dd813;});}return _0x308d72;}['_isBlockAttribute'](_0x2e72e7){return this['_blockAttributeKeys']['has'](_0x2e72e7);}['_updateSuggestionData'](_0x18c005,_0x1f7ff1){const _0x36a43a=this['editor']['plugins']['get']('PendingActions'),_0x39f7a5=this['getSuggestion'](_0x18c005);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x39f7a5['_saved']){const _0x4381ff=_0x36a43a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x18c005,_0x1f7ff1)['then'](()=>{_0x36a43a['remove'](_0x4381ff);});}else _0x39f7a5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x18c005,_0x1f7ff1);});}}['_getSuggestionData'](_0x2d78a5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3cf89a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d78a5);}['_handleNewSuggestionMarker'](_0x1e5238){const {id:_0x2ce636,type:_0x3b5de8,subType:_0x1a72d2,authorId:_0x5e1907}=this['_splitMarkerName'](_0x1e5238),_0x1a5716=this['_suggestions']['get'](_0x2ce636)||this['_createSuggestion'](_0x3b5de8,_0x1a72d2,_0x2ce636,_0x5e1907,{});switch(this['_checkSuggestionCorrectness'](_0x1a5716,_0x3b5de8,_0x1a72d2,_0x5e1907),this['_suggestionState']['get'](_0x1a5716)){case'notReady':this['_getSuggestionData'](_0x2ce636)['then'](_0x163d8e=>{let _0x21881b=Promise['resolve']();_0x163d8e['hasComments']&&(_0x21881b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ce636})),_0x21881b['then'](()=>{this['addSuggestionData'](_0x163d8e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1a5716,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ce636,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1a5716,'ready'),this['fire']('suggestionLoaded',_0x1a5716);break;case'ready':this['fire']('suggestionChanged',_0x1a5716);}return _0x1a5716['addMarkerName'](_0x1e5238),_0x1a5716;}['_refreshSuggestionsChain'](_0x310ae2){const _0xf0491e=Array['from'](_0x310ae2),_0x371e66=_0xf0491e['filter'](_0xa1b7fe=>'attribute'==_0xa1b7fe['type']);this['_refreshAttributeSuggestionsChain'](_0x371e66);const _0x4bcfba=_0xf0491e['filter'](_0x3ddd5a=>!_0x3ddd5a['isMultiRange']&&'attribute'!=_0x3ddd5a['type']),_0x7c1dfd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47b83f=>!_0x47b83f['isMultiRange']&&'attribute'!=_0x47b83f['type']),_0x19b7e2=_0x7c1dfd['filter'](_0x36e086=>!_0x310ae2['has'](_0x36e086)),_0x45b991=new Map(_0x7c1dfd['map'](_0x29a946=>[_0x29a946,this['_suggestionFactory']['getSuggestionCallback'](_0x29a946['type'],_0x29a946['subType'],'chain')])),_0x1219ea=new Map(_0x7c1dfd['map'](_0x23d6eb=>[_0x23d6eb,_0x23d6eb['getFirstRange']()])),_0x58f084=new Set(),_0x4634d5=new Set();for(let _0x3d81d5=0x0;_0x3d81d5<_0x4bcfba['length'];_0x3d81d5++)_0x51294a(_0x4bcfba[_0x3d81d5],_0x4bcfba,_0x3d81d5+0x1);for(let _0x32b6da=0x0;_0x32b6da<_0x4bcfba['length'];_0x32b6da++)_0x51294a(_0x4bcfba[_0x32b6da],_0x19b7e2,0x0);const _0x53caeb=new Set();for(let _0x107247=0x0;_0x107247<_0x4bcfba['length'];_0x107247++){const _0x1c46f5=_0x4bcfba[_0x107247];!_0x4634d5['has'](_0x1c46f5)&&_0x1c46f5['previous']&&(_0x53caeb['add'](_0x1c46f5['previous']),_0x1c46f5['previous']['next']===_0x1c46f5&&(_0x1c46f5['previous']['next']=null),_0x1c46f5['previous']=null),!_0x58f084['has'](_0x1c46f5)&&_0x1c46f5['next']&&(_0x53caeb['add'](_0x1c46f5['next']),_0x1c46f5['next']['previous']===_0x1c46f5&&(_0x1c46f5['next']['previous']=null),_0x1c46f5['next']=null);}function _0x51294a(_0x51bc53,_0x395c53,_0x5b1810){for(let _0x488da2=_0x5b1810;_0x488da2<_0x395c53['length'];_0x488da2++){const _0x104517=_0x126e0c(_0x51bc53,_0x395c53[_0x488da2]);_0x104517&&(_0x104517[0x0]['next']=_0x104517[0x1],_0x104517[0x1]['previous']=_0x104517[0x0],_0x58f084['add'](_0x104517[0x0]),_0x4634d5['add'](_0x104517[0x1]));}}function _0x126e0c(_0x443e67,_0x2ee205){if(_0x443e67['author']['id']!==_0x2ee205['author']['id'])return null;const _0x580ce7=_0x45b991['get'](_0x443e67)(_0x443e67,_0x2ee205,_0x1219ea['get'](_0x443e67),_0x1219ea['get'](_0x2ee205));if(!_0x580ce7)return null;return _0x45b991['get'](_0x2ee205)(_0x443e67,_0x2ee205,_0x1219ea['get'](_0x443e67),_0x1219ea['get'](_0x2ee205))?_0x580ce7[0x1]['commentThread']&&_0x580ce7[0x1]['commentThread']['length']?null:_0x580ce7:null;}_0x53caeb['size']&&this['_refreshSuggestionsChain'](_0x53caeb);}['_refreshAttributeSuggestionsChain'](_0x3594c2){if(0x0==_0x3594c2['length'])return;const _0x41e372=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x164e73=>'attribute'==_0x164e73['type']&&_0x164e73['_isDataLoaded']),_0x9f4170=[],_0x39f9c2=new Map();for(const _0x291571 of _0x41e372){const _0x187acb=_0x16ce2e(_0x291571['attributes']);_0x39f9c2['has'](_0x187acb)||(_0x39f9c2['set'](_0x187acb,_0x9f4170['length']),_0x9f4170['push']([]));const _0x3180e6=_0x39f9c2['get'](_0x187acb);_0x9f4170[_0x3180e6]['push'](_0x291571);}!(function(){_0x9f4170['sort']((_0x1e538d,_0x44b4b0)=>{const _0xab9b21=_0x1e538d[0x0]['createdAt'],_0x356653=_0x44b4b0[0x0]['createdAt'];return _0xab9b21==_0x356653?_0x1e538d[0x0]['attributes']['groupId']<_0x44b4b0[0x0]['attributes']['groupId']?-0x1:0x1:_0xab9b21<_0x356653?-0x1:0x1;});for(const _0xda94ec of _0x9f4170)_0xda94ec['sort']((_0x349101,_0x40d1d0)=>_0x349101['id']<_0x40d1d0['id']?-0x1:0x1);}());for(let _0x383f9d=0x0;_0x383f9d<_0x9f4170['length'];_0x383f9d++){if(0x0==_0x9f4170[_0x383f9d]['length'])continue;const _0x4f9e67=[];for(let _0x325cb7=_0x383f9d+0x1;_0x325cb7<_0x9f4170['length'];_0x325cb7++)0x0!=_0x9f4170[_0x325cb7]['length']&&_0x2be887(_0x9f4170[_0x383f9d],_0x9f4170[_0x325cb7])&&_0x4f9e67['push'](_0x325cb7);for(const _0x18d035 of _0x4f9e67)_0x9f4170[_0x383f9d]=_0x9f4170[_0x383f9d]['concat'](_0x9f4170[_0x18d035]),_0x9f4170[_0x18d035]=[];}for(const _0x245236 of _0x9f4170)for(let _0x292598=0x0;_0x292598<_0x245236['length'];_0x292598++)_0x245236[_0x292598]['next']=_0x245236[_0x292598+0x1]||null;for(const _0x23aaed of _0x9f4170)for(let _0x19378b=0x0;_0x19378b<_0x23aaed['length'];_0x19378b++)_0x23aaed[_0x19378b]['previous']=_0x23aaed[_0x19378b-0x1]||null;function _0x2be887(_0x4998d7,_0x13daf7){if(_0x4998d7[0x0]['attributes']['groupId']!==_0x13daf7[0x0]['attributes']['groupId']&&_0x4998d7[0x0]['author']!==_0x13daf7[0x0]['author'])return!0x1;if(!function(_0x445b64,_0x333e1a){if(!_0x445b64['hasComments']&&!_0x333e1a['hasComments'])return!0x0;if(_0x445b64['hasComments']&&_0x333e1a['hasComments'])return!0x1;if(_0x445b64['hasComments']&&_0x333e1a['createdAt']<_0x445b64['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x333e1a['hasComments']&&_0x445b64['createdAt']<_0x333e1a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4998d7[0x0],_0x13daf7[0x0]))return!0x1;const _0x5ec1e3=xt(_0x4998d7[0x0]['attributes'],'groupId'),_0x5ed684=xt(_0x13daf7[0x0]['attributes'],'groupId');if(!_0x35c1e7(_0x5ec1e3,_0x5ed684))return!0x1;return!!_0x4998d7['every'](_0x22a0df=>_0x13daf7['some'](_0x5eb66f=>_0x22a0df['getFirstRange']()['isEqual'](_0x5eb66f['getFirstRange']())))&&_0x13daf7['every'](_0x4f6808=>_0x4998d7['some'](_0x313494=>_0x4f6808['getFirstRange']()['isEqual'](_0x313494['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x582f65){const _0xe4a443=Array['from'](_0x582f65),_0x4bf3eb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x204218=_0x4bf3eb['filter'](_0x29b3b2=>!_0x582f65['has'](_0x29b3b2)),_0x95375f=new Map(_0xe4a443['map'](_0x4a32f5=>[_0x4a32f5,this['_suggestionFactory']['getSuggestionCallback'](_0x4a32f5['type'],_0x4a32f5['subType'],'join')])),_0x357f0e=new Map(_0x4bf3eb['map'](_0x3e56f4=>[_0x3e56f4,_0x3e56f4['getRanges']()]));for(let _0x5666dd=0x0;_0x5666dd<_0xe4a443['length'];_0x5666dd++){if(_0xd1e2d(this,_0xe4a443[_0x5666dd],_0xe4a443,_0x5666dd+0x1))return!0x0;}for(let _0x151bb8=0x0;_0x151bb8<_0xe4a443['length'];_0x151bb8++){if(_0xd1e2d(this,_0xe4a443[_0x151bb8],_0x204218,0x0))return!0x0;}return!0x1;function _0xd1e2d(_0x2c90be,_0x44bc5b,_0x572974,_0x4e0aec){for(let _0x1b3135=_0x4e0aec;_0x1b3135<_0x572974['length'];_0x1b3135++){const _0x5b9bf1=_0x572974[_0x1b3135];if(_0x5b9bf1['type']!==_0x44bc5b['type']||_0x5b9bf1['author']['id']!==_0x44bc5b['author']['id']||_0x5b9bf1['subType']!==_0x44bc5b['subType'])continue;if(!Lt(_0x44bc5b,_0x5b9bf1,['groupId']))continue;if('attribute'==_0x44bc5b['type']&&_0x44bc5b['data']['oldValue']!=_0x5b9bf1['data']['oldValue'])continue;if('attribute'==_0x44bc5b['type']&&_0x2c90be['_isBlockAttribute'](_0x44bc5b['data']['key']))continue;if('formatBlock'==_0x44bc5b['type']){const _0x3f7f2b=_0x2c90be['editor']['model'],_0x555cd5=_0x44bc5b['getContainedElement']();if(_0x555cd5&&(_0x3f7f2b['schema']['isObject'](_0x555cd5)||_0x3f7f2b['schema']['isLimit'](_0x555cd5)))continue;}const _0xb2b16b=_0x95375f['get'](_0x44bc5b),_0x7bcc7b=_0x357f0e['get'](_0x44bc5b),_0xbc1599=_0x357f0e['get'](_0x5b9bf1),_0x45756b=_0x44bc5b['commentThread']&&_0x44bc5b['commentThread']['length'],_0x187759=_0x5b9bf1['commentThread']&&_0x5b9bf1['commentThread']['length'];if(!_0x45756b&&_0xb2b16b(_0xbc1599,_0x7bcc7b))return _0x2c90be['_joinSuggestions'](_0x5b9bf1,_0x44bc5b),_0x357f0e['delete'](_0x44bc5b),!0x0;if(!_0x187759&&_0xb2b16b(_0x7bcc7b,_0xbc1599))return _0x2c90be['_joinSuggestions'](_0x44bc5b,_0x5b9bf1),_0x357f0e['delete'](_0x5b9bf1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x194f0c,_0x33f85c){if(_0x194f0c['isMultiRange']){for(const _0x2d5a0a of _0x33f85c['getRanges']())_0x194f0c['addRange'](_0x2d5a0a);}else{const _0x2c7e86=_0x33f85c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x194f0c,this['_model']['createRange'](_0x194f0c['getFirstRange']()['start'],_0x2c7e86));}_0x33f85c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x58ed0c,_0x421c36){const _0x3b6d0a=_0x58ed0c['startsWith']('format')||_0x58ed0c['startsWith']('attribute')?'FORMATTING':_0x58ed0c['toUpperCase']();return o(this['editor']['locale'],_0x421c36+'_'+_0x3b6d0a+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x50cdb8=this['editor'];if(!_0x50cdb8['ui'])return;const {ariaLiveAnnouncer:_0x3e44d4}=_0x50cdb8['ui'];_0x176339(this['_model'],({left:_0x2586be,entered:_0x145ae5})=>{for(const _0x461035 of _0x2586be){const {group:_0x2b92ce,type:_0x1abc55}=this['_splitMarkerName'](_0x461035['name']);if('suggestion'===_0x2b92ce){_0x3e44d4['announce'](this['_getMarkerAnnouncementText'](_0x1abc55,'LEAVE'));break;}}for(const _0x1c84bb of _0x145ae5){const {group:_0x23721a,type:_0x22a0d7}=this['_splitMarkerName'](_0x1c84bb['name']);if('suggestion'===_0x23721a){_0x3e44d4['announce'](this['_getMarkerAnnouncementText'](_0x22a0d7,'ENTER'));break;}}});}['_processAttributeChanges'](_0x21c35d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x157747=this['editor'],_0x5ee9f1=_0x157747['model']['document']['differ']['getChanges']();if(0x0==_0x5ee9f1['length'])return!0x1;const _0x5c6ddf=[],_0x57553b=_0x5ee9f1['filter'](_0xad71f6=>'attribute'==_0xad71f6['type']),_0x5bf65a=_0x5ee9f1['filter'](_0x4f0bc6=>'insert'==_0x4f0bc6['type']&&'$text'!=_0x4f0bc6['name']),_0x7f8628=_0x5ee9f1['filter'](_0x380809=>'remove'==_0x380809['type']&&'$text'!=_0x380809['name']);for(const _0xd7d778 of _0x57553b)_0x5c6ddf['push']({'key':_0xd7d778['attributeKey'],'newValue':_0xd7d778['attributeNewValue'],'oldValue':_0xd7d778['attributeOldValue'],'range':Gt(_0xd7d778['range'],_0x157747['model'])});for(const _0x184a30 of _0x5bf65a){const _0x28ab45=_0x7f8628['find'](_0xac575c=>_0xac575c['position']['isEqual'](_0x184a30['position']));_0x28ab45&&_0x5c6ddf['push']({'key':m,'newValue':_0x184a30['name'],'oldValue':_0x28ab45['name'],'range':_0x157747['model']['createRangeOn'](_0x184a30['position']['nodeAfter'])});}return 0x0!=_0x5c6ddf['length']&&this['_reduceExistingSuggestions'](_0x21c35d,_0x5c6ddf);}['_processAttributeSuggestions'](_0x475130){let _0x43be03=!0x1;const _0x4e112f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x514f45=>_0x514f45['data']['newRange']&&_0x514f45['name']['startsWith']('suggestion:attribute:'));for(const _0x554de2 of _0x4e112f){const {subType:_0x1a5fa1,id:_0x197112}=this['_splitMarkerName'](_0x554de2['name']),_0x474824=_0x1a5fa1['split']('|')[0x0];for(const _0x31a278 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x31a278['id']!=_0x197112&&'attribute'==_0x31a278['type']&&_0x31a278['data']&&_0x31a278['data']['key']==_0x474824&&_0x31a278['getFirstRange']()['isIntersecting'](_0x554de2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x31a278,_0x554de2['data']['newRange'],_0x475130),_0x43be03=!0x0);}return _0x43be03;}['_recordAttributeChanges'](_0x564bdd){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x564bdd();}['_isRegisteredAttribute'](_0x50c177){const _0xdea71f=this['_isBlockAttribute'](_0x50c177),_0x3fbd25=this['_inlineAttributeKeys']['has'](_0x50c177);return _0xdea71f||_0x3fbd25;}['_reduceExistingSuggestions'](_0x233b30,_0x10fbef){if(0x0==_0x10fbef['length'])return!0x1;let _0x4cc442=!0x1;for(const _0x7688d5 of _0x10fbef){const _0xd53e9b=this['_findSuggestions'](_0x7688d5['range'],'attribute')['filter'](_0x32c4f8=>!_0x32c4f8['meta']['isNextTo'])['map'](_0x2df871=>_0x2df871['suggestion']),_0x4063ab=_0x16ce2e({'newValue':_0x7688d5['newValue']});_0xd53e9b['filter'](_0xc2965c=>{const [_0x324540,_0x5f0e9f]=_0xc2965c['subType']['split']('|');return _0x324540==_0x7688d5['key']&&_0x5f0e9f!=_0x4063ab;})['forEach'](_0x11e603=>{this['_reduceSuggestionAttributeRange'](_0x11e603,_0x7688d5['range'],_0x233b30),_0x4cc442=!0x0;});}return _0x4cc442;}['_reduceSuggestionAttributeRange'](_0x521a91,_0x43b355,_0x52ffca){const _0x568af9=_0x521a91['getFirstRange']()['getDifference'](_0x43b355);0x0!==_0x568af9['length']?0x1!==_0x568af9['length']?this['_breakSuggestionMarker'](_0x521a91,_0x43b355['start'],_0x43b355['end']):this['_setSuggestionRange'](_0x521a91,_0x568af9[0x0]):_0x52ffca['removeMarker'](_0x521a91['getFirstMarker']());}}class Rt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5b18ce){this['_editor']=_0x5b18ce,this['_model']=_0x5b18ce['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x22aaf0,_0x5820d8,_0x58ab72,_0x2df786,_0x4fe11a,_0x47ca31){return new u(this['_model'],{'type':_0x22aaf0,'subType':_0x5820d8,'id':_0x58ab72,'author':_0x2df786,'creator':_0x2df786,'attributes':_0x4fe11a,'onAttributesChange':_0x47ca31,'onAccept':(..._0x2f5d8)=>this['getSuggestionCallback'](_0x22aaf0,_0x5820d8,'accept')(..._0x2f5d8),'onDiscard':(..._0x374bfe)=>this['getSuggestionCallback'](_0x22aaf0,_0x5820d8,'discard')(..._0x374bfe)});}['registerCustomCallback'](_0x20b8cc,_0x24b6ba,_0x9b51c4,_0x422924){const _0x58884c=_0x20b8cc+':'+_0x24b6ba+':'+_0x9b51c4;this['_customCallbacks']['set'](_0x58884c,_0x422924);}['getSuggestionCallback'](_0x512837,_0x53d785,_0x5cfd60){const _0x22ff5d=_0x512837+':'+_0x53d785+':'+_0x5cfd60;return this['_customCallbacks']['get'](_0x22ff5d)||this['_defaultCallbacks']['get'](_0x512837+':'+_0x5cfd60);}['_registerDefaultCallbacks'](){const _0x192011=()=>!0x1,_0xc15e6c=_0x2ee029=>{_0x2ee029['sort']((_0x460087,_0x5390e7)=>_0x460087['start']['isBefore'](_0x5390e7['start'])?0x1:-0x1),this['_model']['change'](_0x17332b=>{for(const _0x1d5a41 of _0x2ee029){let _0x186f2e;_0x186f2e=_0x1d5a41['end']['isAtEnd']&&_0x1d5a41['end']['parent']==_0x1d5a41['start']['nodeAfter']?_0x17332b['createSelection'](_0x1d5a41['start']['nodeAfter'],'on'):_0x17332b['createSelection'](_0x1d5a41),this['_model']['deleteContent'](_0x186f2e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3ac186=(_0x277cc4,_0x16364a)=>{_0x16364a&&this['_model']['change'](_0x36571c=>{const {commandName:_0x31bd68,commandParams:_0x2e707a=[]}=_0x16364a,_0x3e56dc=_0x277cc4['map'](_0x26c59a=>(Et(_0x26c59a)&&(_0x26c59a=this['_model']['createRange'](_0x26c59a['end'])),_0x26c59a))['filter'](_0x4af959=>'$graveyard'!==_0x4af959['root']['rootName']);if(_0x3e56dc['length']<0x1)return;const _0x5af888=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x25444f=>_0x948f0b['fromRange'](_0x25444f));_0x36571c['setSelection'](_0x3e56dc);for(const _0x57e8f2 of this['_editor']['commands']['commands']())_0x57e8f2['refresh']();_0x2e707a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31bd68,..._0x2e707a);const _0x1b3f85=_0x5af888['filter'](_0x37b0fe=>'$graveyard'!=_0x37b0fe['root']['rootName']);_0x1b3f85['length']>0x0&&_0x36571c['setSelection'](_0x1b3f85);for(const _0x204729 of _0x5af888)_0x204729['detach']();});},_0x3eb6ca=(_0xba3be5,_0x109768)=>0x1==_0xba3be5['length']&&0x1==_0x109768['length']&&_0xba3be5[0x0]['end']['isEqual'](_0x109768[0x0]['start']),_0x3cc224=(_0x52dce9,_0x45962e,_0x3dae71,_0x125399)=>Pt(_0x52dce9,_0x45962e,_0x3dae71,_0x125399,this['_model'])?[_0x52dce9,_0x45962e]:Pt(_0x45962e,_0x52dce9,_0x125399,_0x3dae71,this['_model'])?[_0x45962e,_0x52dce9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x192011),this['_defaultCallbacks']['set']('insertion:discard',_0xc15e6c),this['_defaultCallbacks']['set']('insertion:join',_0x3eb6ca),this['_defaultCallbacks']['set']('insertion:chain',_0x3cc224),this['_defaultCallbacks']['set']('deletion:accept',_0xc15e6c),this['_defaultCallbacks']['set']('deletion:discard',_0x192011),this['_defaultCallbacks']['set']('deletion:join',_0x3eb6ca),this['_defaultCallbacks']['set']('deletion:chain',_0x3cc224),this['_defaultCallbacks']['set']('formatInline:accept',_0x3ac186),this['_defaultCallbacks']['set']('formatInline:discard',_0x192011),this['_defaultCallbacks']['set']('formatInline:join',_0x3eb6ca),this['_defaultCallbacks']['set']('formatInline:chain',_0x192011),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3ac186),this['_defaultCallbacks']['set']('formatBlock:discard',_0x192011),this['_defaultCallbacks']['set']('formatBlock:join',_0x3eb6ca),this['_defaultCallbacks']['set']('formatBlock:chain',_0x192011),this['_defaultCallbacks']['set']('attribute:accept',_0x192011),this['_defaultCallbacks']['set']('attribute:discard',(_0x4c8ba2,_0xbb5002)=>{if(!_0xbb5002)return;const _0x24e2a2=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x473aa3=>{if(_0xbb5002['key']==m)for(const _0x25f94d of _0x4c8ba2){const _0x7362e=_0x25f94d['start']['nodeAfter'],_0x392684=_0xbb5002['oldValue'];_0x473aa3['rename'](_0x7362e,_0x392684);}else{if(_0x24e2a2['_isBlockAttribute'](_0xbb5002['key'])){for(const _0x2bd8f3 of _0x4c8ba2)void 0x0!==_0xbb5002['oldValue']?_0x473aa3['setAttribute'](_0xbb5002['key'],_0xbb5002['oldValue'],_0x2bd8f3['start']['nodeAfter']):_0x473aa3['removeAttribute'](_0xbb5002['key'],_0x2bd8f3['start']['nodeAfter']);}else{for(const _0x451334 of _0x4c8ba2)_0xbb5002['oldValue']?_0x473aa3['setAttribute'](_0xbb5002['key'],_0xbb5002['oldValue'],_0x451334):_0x473aa3['removeAttribute'](_0xbb5002['key'],_0x451334);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3eb6ca);}}function Tt(_0x3e74c4,_0x151f99,_0x58bd56){for(const _0x4f0fd1 of _0x151f99['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4f0fd1['root']==_0x4f0fd1)return!0x1;if(!_0x58bd56['containsItem'](_0x4f0fd1))return!0x1;if(_0x3e74c4['isObject'](_0x4f0fd1)||_0x3e74c4['isLimit'](_0x4f0fd1))return!0x0;}return!0x1;}function Et(_0x12832b){return _0x12832b['end']['parent']==_0x12832b['start']['nodeAfter']&&_0x12832b['end']['isAtStart'];}function Vt(_0x46bd26,_0x4e7242,_0x5265b2,_0x19099f){const _0x393fd6=_0x1fdb21=>!_0x1fdb21['item']['is']('$textProxy')&&!_0x19099f['isObject'](_0x1fdb21['item']),_0x54d068=_0x46bd26['start']['getLastMatchingPosition'](_0x393fd6),_0x459a7e=_0x46bd26['end']['getLastMatchingPosition'](_0x393fd6,{'direction':'backward'});return(!_0x46bd26['start']['isEqual'](_0x54d068)||!_0x46bd26['end']['isEqual'](_0x459a7e))&&(_0x54d068['isBefore'](_0x459a7e)?_0x5265b2['updateMarker'](_0x4e7242,{'range':_0x5265b2['createRange'](_0x54d068,_0x459a7e)}):_0x5265b2['removeMarker'](_0x4e7242),!0x0);}function Ut(_0x1edf57){return _0x16ce2e(_0x1edf57);}function Ot(_0x502810){const _0x122f35=_0x502810['start']['nodeAfter'];return _0x122f35&&_0x122f35['is']('element');}function Gt(_0x3a59e1,_0x4b503c){return null==_0x3a59e1['end']['nodeBefore']&&_0x3a59e1['end']['parent']==_0x3a59e1['start']['nodeAfter']?Ft(_0x3a59e1['start']['nodeAfter'],_0x4b503c):_0x3a59e1;}function Ft(_0x5b3967,_0x3b648d){const _0x1a7bfe=_0x3b648d['schema']['isObject'](_0x5b3967)||_0x3b648d['schema']['isSelectable'](_0x5b3967);return _0x3b648d['createRange'](_0x3b648d['createPositionAt'](_0x5b3967,'before'),_0x1a7bfe?_0x3b648d['createPositionAfter'](_0x5b3967):_0x3b648d['createPositionAt'](_0x5b3967,'end'));}function Pt(_0x350c77,_0x1cb857,_0x3261d3,_0x4058f1,_0x561855){if(!Lt(_0x350c77,_0x1cb857))return!0x1;if(_0x3261d3['end']['isEqual'](_0x4058f1['start']))return!0x0;if(_0x350c77['type']!=_0x1cb857['type'])return!0x1;if(!_0x3261d3['end']['isTouching'](_0x4058f1['start']))return!0x1;const _0x14bde8=_0x561855['createRange'](_0x3261d3['end'],_0x4058f1['start'])['getWalker']();for(const _0x147de9 of _0x14bde8)if(['elementStart','elementEnd']['includes'](_0x147de9['type'])&&_0x561855['schema']['isLimit'](_0x147de9['item']))return!0x1;return!0x0;}function Lt(_0x53af9c,_0x5089e2,_0x31cc15=[]){return!(!_0x53af9c['_isDataLoaded']||!_0x5089e2['_isDataLoaded'])&&_0x35c1e7(xt(_0x53af9c['attributes'],_0x31cc15),xt(_0x5089e2['attributes'],_0x31cc15));}function Ht(_0xe97712,_0x166ddf){const _0x2026c5=qt(_0xe97712['attributes']),_0x59b4bd=qt(_0x166ddf);if(!_0xe97712['_isDataLoaded'])return!0x1;for(const _0x306d81 of Object['keys'](_0x59b4bd))if(!_0x35c1e7(_0x2026c5[_0x306d81],_0x59b4bd[_0x306d81]))return!0x1;return!0x0;}function qt(_0x1ee201){const _0x1d81d8=Object['assign']({},_0x1ee201);return delete _0x1d81d8['skipNestingCheck'],delete _0x1d81d8['tablePasteChainId'],_0x1d81d8;}class ne extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x28acc2(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x451d03,_0x15bd4c,_0x54cf53,_0x21a098){super(),this['model']=_0x15bd4c,this['view']=_0x54cf53,this['commentThreadController']=_0x21a098,this['_editor']=_0x451d03,this['_acceptCommand']=_0x451d03['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x451d03['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x454d72,_0x3166ef)=>_0x454d72||_0x3166ef),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2dd03e=>_0x2dd03e&&this['_editor']['model']['canEditAt'](_0x15bd4c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x39c168=>_0x39c168&&this['_editor']['model']['canEditAt'](_0x15bd4c['getRanges']())),this['_pendingAction']=null,_0x54cf53['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x54cf53,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x54cf53,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x54cf53,'change:isDirty',()=>{_0x54cf53['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 _0x512003=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x512003);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x590774{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x473f2e,_0x4e9ed4,_0xa4e79e,_0x1dda9f){super(_0x473f2e),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4e9ed4['authoredAt']),this['bind']('authoredAt')['to'](_0x4e9ed4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4e9ed4,this['_localUser']=_0xa4e79e,this['_config']=_0x1dda9f,_0x1dda9f['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:_0x50c3f5}=this['_config'];this['commentsListView']=new _0x50c3f5(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',_0x444ff7=>_0x444ff7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x255d81,_0x3ae867)=>_0x255d81||!!_0x3ae867);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4258ba}=this['_config'],_0x385962=new _0x4258ba(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x288e80=_0x385962['commentInputView'];return _0x385962['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x288e80,'value',(_0x1ddcec,_0x3f2ee4,_0x3ea583)=>!!_0x3ea583||_0x1ddcec&&!_0x3f2ee4),_0x288e80['on']('submit',(_0x48e84a,_0x16c133)=>{this['fire']('addComment',_0x16c133),_0x288e80['editor']['setData']('');}),_0x288e80['on']('cancel',()=>this['focus']()),_0x288e80['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x385962;}}class ie extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x406c25,_0x39463e,_0x2c38c0,_0x34849c){super(_0x406c25,_0x39463e,_0x2c38c0,_0x34849c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x57cf0f=>_0x57cf0f&&_0x57cf0f[0x0]?_0x57cf0f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5c9960,_0x10d3bc)=>{let _0x2c8ca9='';for(const _0x1e183e of _0x5c9960)_0x2c8ca9+='<p>'+ds(_0x1e183e['content'],_0x1e183e['color'])+'</p>';return _0x10d3bc?_0x2c8ca9:_0x39a1b4(_0x2c8ca9,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x406c25,'Accept\x20suggestion'),_0x5dc603['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x406c25,'Discard\x20suggestion'),_0x5dc603['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x315dbd(_0x406c25,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3b5919=this['bindTemplate'],_0x159a73=[{'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':_0x3b5919['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3b5919['to']('authoredAt',_0x1b09ae=>this['_config']['formatDateTime'](_0x1b09ae))}]}]},{'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']&&_0x159a73['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2e342d={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x3b5919['if']('isActive','ck-suggestion-wrapper--active'),_0x3b5919['to']('type',_0x322722=>'ck-suggestion-'+_0x322722),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':_0x159a73}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2e342d['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)),_0x2e342d;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x187c24,_0x20729f,_0x1c278d)=>{this['_descriptionElement']['innerHTML']=_0x1c278d;});}['_createButton'](_0x1e33a9,_0x12bf7f,_0x28ca25,_0x3838da,_0x22a3de){const _0x45276b=new _0x56024e(this['locale']);return _0x45276b['set']({'label':_0x1e33a9,'icon':_0x12bf7f,'tooltip':!0x0,'tooltipPosition':_0x22a3de}),_0x45276b['extendTemplate']({'attributes':{'class':_0x28ca25}}),_0x45276b['on']('execute',()=>{this['fire'](_0x3838da,this['_model']['id']);}),_0x45276b;}['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(_0x1a7b89,_0x3e200f){let _0x27bc93='';return _0x27bc93+=_0x1a7b89['split']('*')['map']((_0x2cab93,_0x279c8f)=>_0x279c8f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x2cab93)+'</span>':us(_0x2cab93))['join'](''),_0x3e200f&&(_0x27bc93+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3e200f['value']+'\x22\x20title=\x22'+_0x3e200f['title']+'\x22></span>'),_0x27bc93;}function us(_0x17b800){const _0x11b500=document['createElement']('span');return _0x11b500['innerText']=_0x17b800,_0x11b500['innerHTML'];}var ae='<!--\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 _0x15c086{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x391bb8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x112b63){super(_0x112b63),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x40f9fc=this['editor']['config'];_0x40f9fc['define']('trackChanges.SuggestionThreadView',ie),_0x40f9fc['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x40f9fc['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1c7f90,_0x4578c9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4b61ba,_0x19c0d1]of this['_handleControllerBuffer']){const _0x5dc013=this['_suggestionToController']['has'](_0x4b61ba);_0x5dc013||_0x19c0d1?_0x5dc013&&_0x19c0d1&&this['_destroyController'](_0x4b61ba):this['_initializeController'](_0x4b61ba);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1c7f90,_0x4578c9);}['init'](){const _0x45f23c=this['editor'],_0x3865a0=_0x45f23c['plugins']['get']('TrackChangesEditing'),_0x3a5ebf=_0x45f23c['plugins']['get']('Annotations'),_0x563e47=_0x45f23c['plugins']['get']('EditorAnnotations'),_0x4b2b95=_0x45f23c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x563e47['addSourceCollector'](()=>{const _0x562361=[];for(const [_0x1e5fdc,_0xa0f12c]of Array['from'](this['_suggestionToController'])){const _0x26bcb8=_0x1e5fdc['getAllAdjacentSuggestions'](),_0xcc60f1=[];for(const _0x27c338 of _0x26bcb8){if(!_0x27c338['isInContent'])continue;if(_0x27c338['isMultiRange']){_0xcc60f1['push'](..._0x27c338['getRanges']());continue;}const _0x55a6bc=_0x27c338['getFirstRange']();if(_0xcc60f1['length']>0x0){const _0x3cd8c3=_0xcc60f1[0x0]['getJoined'](_0x55a6bc);if(_0x3cd8c3){_0xcc60f1[0x0]=_0x3cd8c3;continue;}}_0xcc60f1['push'](_0x55a6bc);}_0x562361['push']([_0xa0f12c['view'],_0xcc60f1]);}return _0x562361;}),this['listenTo'](_0x3865a0,'suggestionLoaded',(_0x1a8535,_0x475643)=>{this['listenTo'](_0x475643,'change:previous',(_0x248fce,_0x215a3a,_0x219258,_0x2cce6f)=>{_0x475643['isInContent']&&(null==_0x219258?(this['_updateController'](_0x2cce6f['head']),this['_handleSuggestionControllerDelayed'](_0x475643,!0x1)):(this['_updateController'](_0x219258['head']),null==_0x2cce6f&&this['_handleSuggestionControllerDelayed'](_0x475643,!0x0)));}),null!==_0x475643['previous']?this['_updateController'](_0x475643['head']):this['_handleSuggestionControllerDelayed'](_0x475643,!0x1);}),this['listenTo'](_0x3865a0,'suggestionUnloaded',(_0x1baace,_0x4e696e,_0x2ffb95)=>{this['stopListening'](_0x4e696e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4e696e),this['_suggestionToController']['has'](_0x4e696e)&&this['_destroyController'](_0x4e696e),_0x2ffb95&&this['_updateController'](_0x2ffb95['head']);}),this['listenTo'](_0x3865a0,'suggestionChanged',(_0x3420ff,_0x1cef1e)=>{this['_updateController'](_0x1cef1e);}),this['listenTo'](_0x3a5ebf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4b2b95,'addComment',(_0x2ddb26,{threadId:_0x4ada8a,isFromAdapter:_0x4f54e5})=>{if(_0x4f54e5||!_0x3865a0['hasSuggestion'](_0x4ada8a))return;const _0x30e5d8=_0x3865a0['getSuggestion'](_0x4ada8a);this['_suggestionToController']['get'](_0x30e5d8)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0xbea36b=this['editor']['plugins']['get']('Annotations'),_0x2109e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44a015=Array['from'](_0xbea36b['activeAnnotations'],_0xfc64cc=>_0xfc64cc['innerView'])['filter'](_0x193374=>this['_viewToController']['has'](_0x193374)),_0x37f593=[];for(const _0x2bcec1 of _0x44a015){const _0x6f1f3d=this['_viewToController']['get'](_0x2bcec1)['model']['getAllAdjacentSuggestions']();_0x37f593['push'](..._0x6f1f3d['reduce']((_0xb4c9f6,_0x19a46e)=>[..._0xb4c9f6,..._0x19a46e['getMarkerNames']()],[]));}_0x2109e7['activeMarkers']=_0x37f593;}['_addUIComponentsToFactory'](){const _0x737a73=this['editor'],_0x5a4839=_0x737a73['locale'],_0x2bae9b=o(_0x5a4839,'Track\x20changes'),_0x5dc6bc=new Wt([{'type':'switchbutton','model':new _0x3a5c24({'withText':!0x0,'isToggleable':!0x0,'label':_0x2bae9b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3a5c24({'withText':!0x0,'label':o(_0x5a4839,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5c24({'withText':!0x0,'label':o(_0x5a4839,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5c24({'withText':!0x0,'label':o(_0x5a4839,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5c24({'withText':!0x0,'label':o(_0x5a4839,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5b7cf1 of _0x5dc6bc)if(re(_0x5b7cf1)){const _0x14b9cd=_0x737a73['commands']['get'](_0x5b7cf1['model']['commandName']);_0x5b7cf1['model']['bind']('isOn','isEnabled')['to'](_0x14b9cd,'value','isEnabled');}_0x737a73['ui']['componentFactory']['add']('trackChanges',_0x7a322=>this['_createToolbarButton'](_0x7a322,_0x5dc6bc,_0x2bae9b)),_0x737a73['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2d59b0=>this['_createMenuBarMenu'](_0x2d59b0,_0x5dc6bc,_0x2bae9b));}['_createToolbarButton'](_0x1c07c6,_0x5424f2,_0xb88098){const _0x197ac0=Jt(_0x1c07c6,te),_0x4a56db=this['editor']['commands']['get']('trackChanges');_0x197ac0['buttonView']['set']({'tooltip':_0xb88098,'label':_0xb88098,'icon':ae}),_0x197ac0['buttonView']['bind']('isOn')['to'](_0x4a56db,'value'),_0x197ac0['buttonView']['on']('execute',()=>{_0x4a56db['execute'](),this['editor']['editing']['view']['focus']();}),zt(_0x197ac0,_0x5424f2,{'role':'menu'});const _0x2835c8=[];for(const _0x2646b4 of _0x5424f2)re(_0x2646b4)&&_0x2835c8['push'](this['editor']['commands']['get'](_0x2646b4['model']['commandName']));const _0x41c45a=_0x197ac0['buttonView'];return _0x41c45a['actionView']['unbind']('isEnabled'),_0x41c45a['arrowView']['unbind']('isEnabled'),_0x41c45a['actionView']['bind']('isEnabled')['to'](_0x4a56db,'isEnabled'),_0x41c45a['arrowView']['bind']('isEnabled')['toMany'](_0x2835c8,'isEnabled',(..._0x540d2a)=>_0x540d2a['some'](_0x202aba=>_0x202aba)),_0x197ac0['on']('execute',_0x5afe40=>{this['editor']['execute'](_0x5afe40['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x197ac0;}['_createMenuBarMenu'](_0x41fca4,_0x10c032,_0x59c049){const _0x23233f=new Qt(_0x41fca4),_0x4833ce=this['editor']['commands']['get']('trackChanges');_0x23233f['buttonView']['set']({'label':_0x59c049,'icon':ae});const _0x25e8aa=new Xt(_0x41fca4);for(const _0x4e28a3 of _0x10c032){if('separator'==_0x4e28a3['type']){_0x25e8aa['items']['add'](new Kt(_0x41fca4));continue;}const _0x57ed6d=new Yt(_0x41fca4,_0x23233f),_0x2b60f3=new Zt(_0x41fca4),_0x2818f4=_0x4e28a3['model'];_0x2b60f3['bind'](...Object['keys'](_0x2818f4))['to'](_0x2818f4),_0x2b60f3['delegate']('execute')['to'](_0x23233f),_0x2b60f3['on']('execute',()=>{this['editor']['execute'](_0x2818f4['commandName']),this['editor']['editing']['view']['focus']();}),_0x57ed6d['children']['add'](_0x2b60f3),_0x25e8aa['items']['add'](_0x57ed6d);}return _0x23233f['bind']('isEnabled')['to'](_0x4833ce,'isEnabled'),_0x23233f['panelView']['children']['add'](_0x25e8aa),_0x23233f;}['_initializeController'](_0x145d27){const _0x26c094=this['editor'],_0x450936=_0x26c094['config'],_0x11e734=_0x26c094['plugins']['get']('Annotations'),_0x2ae6e8=_0x26c094['plugins']['get']('CommentsRepository'),_0x1b26f0=_0x26c094['plugins']['get']('EditorAnnotations'),_0x349faf=_0x26c094['plugins']['get'](_0x391bb8)['me'],_0x26236f=_0x450936['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x49d520,CommentThreadInputView:_0x4ea307}=_0x26c094['plugins']['get']('CommentsUI');let _0x25a0b1,_0x3df32d;this['_annotationViews']['has'](_0x145d27['id'])?(_0x3df32d=this['_annotationViews']['get'](_0x145d27['id']),_0x25a0b1=_0x3df32d['mainView']):(_0x25a0b1=new _0x26236f(_0x26c094['locale'],_0x145d27,_0x349faf,{'disableComments':this['_disableComments'],'editorConfig':_0x450936['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x450936['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x450936['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x450936['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x14289b(_0x450936['get']('locale')),'CommentView':_0x450936['get']('comments')['CommentView'],'CommentsListView':_0x49d520,'CommentThreadInputView':_0x4ea307}),_0x25a0b1['acceptButton']['on']('execute',()=>{_0x26c094['editing']['view']['focus']();}),_0x25a0b1['discardButton']['on']('execute',()=>{_0x26c094['editing']['view']['focus']();}),_0x3df32d=_0x11e734['createAnnotationView'](this['editor']['locale'],_0x25a0b1),_0x3df32d['bind']('isDirty')['to'](_0x25a0b1,'isDirty'),_0x3df32d['bind']('length')['to'](_0x25a0b1),_0x3df32d['bind']('type')['to'](_0x25a0b1,'type',_0xd491c2=>'suggestion-'+_0xd491c2),this['_annotationViews']['set'](_0x145d27['id'],_0x3df32d));const _0x58a1ea=_0x2ae6e8['createCommentThreadController'](_0x145d27['commentThread'],_0x25a0b1),_0x1bb467=new ne(_0x26c094,_0x145d27,_0x25a0b1,_0x58a1ea),_0xecc650=_0x145d27['getAllAdjacentSuggestions']()['filter'](_0x59d98f=>_0x59d98f['isInContent']);_0x25a0b1['descriptionParts']=_0x26c094['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xecc650),this['_suggestionToController']['set'](_0x145d27,_0x1bb467),this['_viewToController']['set'](_0x25a0b1,_0x1bb467);const _0x1721b6=_0x11e734['createAnnotation']({'view':_0x3df32d,'target':()=>{const _0x4b28f1=[],_0x29eb2b=_0x145d27['getAllAdjacentSuggestions']()['filter'](_0x13298a=>_0x13298a['isInContent']);for(const _0x2988ae of _0x29eb2b)_0x4b28f1['push'](..._0x2988ae['getMarkers']());return _0x492e53(_0x26c094['editing'],_0x4b28f1);},'type':()=>'suggestion-'+_0x1bb467['view']['type']});_0x2ae6e8['_bindAnnotationToEditors'](_0x25a0b1,_0x1721b6),_0x11e734['add'](_0x1721b6),_0x1b26f0['registerAnnotation'](_0x1721b6);}['_destroyController'](_0xee5a5c){const _0x5e5dee=this['editor']['plugins']['get']('CommentsRepository'),_0x4e110e=this['editor']['plugins']['get']('Annotations'),_0x4ef237=this['_suggestionToController']['get'](_0xee5a5c),_0x20ef1d=_0x4ef237['view'],_0x1c06bc=_0x4e110e['getByInnerView'](_0x20ef1d);_0x5e5dee['_unbindEditors'](_0x20ef1d),_0x1c06bc&&_0x4e110e['remove'](_0x1c06bc),this['_suggestionToController']['delete'](_0xee5a5c),this['_viewToController']['delete'](_0x20ef1d),_0x4ef237['destroy']();}['_updateController'](_0x13c8fc){if(!_0x13c8fc['isInContent']||!this['_suggestionToController']['has'](_0x13c8fc))return;const _0x8b4f91=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9c309c=this['_suggestionToController']['get'](_0x13c8fc),_0x4081e6=_0x13c8fc['getAllAdjacentSuggestions']();_0x9c309c['view']['descriptionParts']=_0x8b4f91['descriptionFactory']['getDescriptions'](_0x4081e6);}['destroy'](){for(const _0x33bf6d of this['_suggestionToController']['keys']())this['_destroyController'](_0x33bf6d);for(const _0x464fd1 of this['_annotationViews']['values']())_0x464fd1['mainView']['destroy']();super['destroy']();}}function re(_0x16eaa1){return'model'in _0x16eaa1;}class k extends _0x15c086{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2d440c){this['editor']['plugins']['get'](p)['adapter']=_0x2d440c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x30047d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x30047d);}['getSuggestions']({skipNotAttached:_0xa43110=!0x1,toJSON:_0x580eef=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xa43110,'toJSON':_0x580eef});}['getSuggestion'](_0x359617){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x359617);}}const T=['Pagination'];class P extends _0x15c086{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3948e2=this['editor'];if(_0x3948e2['config']['define']('trackChangesData.editorCreator',_0x54ca34=>{const _0x124aa6=_0x3948e2['model']['document']['getRootNames']()['reduce']((_0x5ee15e,_0x10511e)=>(_0x5ee15e[_0x10511e]='',_0x5ee15e),{});return _0x3948e2['constructor']['create'](_0x124aa6,_0x54ca34);}),'function'!=typeof _0x3948e2['config']['get']('trackChangesData')['editorCreator'])throw new _0x3cf89a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x53fc38){return N(this['editor'],!0x0,_0x53fc38);}['getDataWithDiscardedSuggestions'](_0x283965){return N(this['editor'],!0x1,_0x283965);}}class D extends _0x15c086{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x425ba6){super(_0x425ba6),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(_0x9c1450){return void 0x0!==_0x9c1450['getRootsAttributes'];}async function N(_0x5dcdd7,_0x562bff,_0x2cc14e){const _0x37c0f1=_0x362255(_0x5dcdd7,T);_0x37c0f1['plugins']['push'](p,D),_0x37c0f1['rootsAttributes']=v(_0x5dcdd7)?_0x5dcdd7['getRootsAttributes']():void 0x0;const _0x46f144=document['createDocumentFragment'](),_0x5022fa=_0x5dcdd7['config']['get']('trackChangesData')['editorCreator'],_0x120612=await _0x5022fa(_0x37c0f1,()=>function(_0x39f1dd){const _0x19497c=document['createElement']('div');return _0x39f1dd['appendChild'](_0x19497c),_0x19497c;}(_0x46f144));!function(_0x4c96b9,_0x129472){const _0x146508=_0x4c96b9['model']['document']['getRootNames']()['reduce']((_0x2ab665,_0x5690b7)=>(_0x2ab665[_0x5690b7]=_0x4c96b9['data']['get']({'rootName':_0x5690b7}),_0x2ab665),{}),_0x19ca62=_0x4c96b9['plugins']['get']('Users')['users']['map'](_0x3d7966=>({'id':_0x3d7966['id'],'name':_0x3d7966['name']})),_0x4df581=_0x4c96b9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f19dd=_0x4c96b9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x415d65=_0x129472['plugins']['get']('Users'),_0x3bf561=_0x129472['plugins']['get']('TrackChangesEditing'),_0x5d7102=_0x129472['plugins']['get']('CommentsRepository');for(const _0x2d5aba of _0x19ca62)_0x415d65['getUser'](_0x2d5aba['id'])||_0x415d65['addUser'](_0x2d5aba);_0x415d65['me']||_0x415d65['useAnonymousUser']();for(const _0x47c172 of _0x2f19dd)_0x5d7102['addCommentThread'](_0x47c172);for(const _0x19d0b0 of _0x4df581)_0x3bf561['addSuggestionData'](_0x19d0b0);_0x129472['data']['set'](_0x146508);}(_0x5dcdd7,_0x120612),_0x120612['execute'](_0x562bff?'acceptAllSuggestions':'discardAllSuggestions');const _0x1e0085=v(_0x120612)?_0x120612['getFullData'](_0x2cc14e):_0x120612['data']['get'](_0x2cc14e);return await _0x120612['destroy'](),_0x1e0085;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x47a92c,PendingActions as _0x30474c,icons as _0x3fbc95}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2a50d9,ObservableMixin as _0x1f846b,uid as _0x1e7cf0,insertToPriorityArray as _0x422b84,priorities as _0x1be3ca,logWarning as _0x164dd9,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4c82bb,View as _0x229790,ButtonView as _0x37481b,ViewModel as _0x4e3d92,createDropdown as Jt,SplitButtonView as te,addListToDropdown as zt,MenuBarMenuView as Qt,MenuBarMenuListView as Xt,ListSeparatorView as Kt,MenuBarMenuListItemView as Yt,MenuBarMenuListItemButtonView as Zt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x21e51f,hashObject as _0x44a9e5,surroundingMarkersDetector as _0x23f8b1,trimHtml as _0x3330b2,UserView as _0x45db5d,getDateTimeFormatter as _0x5a35f4,getAllMarkersDomElementsSorted as _0x5e96b9,sanitizeEditorConfig as _0xd14178}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xbc9e80,LiveRange as _0x92b86c,LivePosition as _0x564973}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5835a5,toWidget as _0x5d24ed}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x48c4ec,set as _0x1f6160,isEqual as _0x35aac6,unset as _0x28bace,omit as xt}from'lodash-es';import{Delete as _0x9a5bbc,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4f3985,ShiftEnter as _0x266e79}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0xbc858c,_0x4aaea3){super(_0xbc858c),this['_enabledCommands']=_0x4aaea3,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 _0x1a7a03 of this['editor']['commands']['commands']())_0x1a7a03['affectsData']&&!this['_enabledCommands']['has'](_0x1a7a03)&&_0x1a7a03['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x250878 of this['editor']['commands']['commands']())_0x250878['affectsData']&&!this['_enabledCommands']['has'](_0x250878)&&_0x250878['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x5c6e01,_0x14e58a){super(_0x5c6e01),this['_suggestions']=_0x14e58a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1af7ff){const _0x549f6d=this['_suggestions']['get'](_0x1af7ff);if(!_0x549f6d)throw new _0x2a50d9('track-changes-accept-suggestion-not-found',this);const _0x40f506=_0x549f6d['getRanges']();this['editor']['model']['canEditAt'](_0x40f506)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x549f6d);}}class B extends ts{['_suggestions'];constructor(_0x575942,_0x55a173){super(_0x575942),this['_suggestions']=_0x55a173,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x667635){const _0x5f1464=this['_suggestions']['get'](_0x667635);if(!_0x5f1464)throw new _0x2a50d9('track-changes-discard-suggestion-not-found',this);const _0x1e8190=_0x5f1464['getRanges']();this['editor']['model']['canEditAt'](_0x1e8190)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5f1464);}}function ss(_0x418e77){return _0x418e77['sort']((_0x263c0d,_0x52cce2)=>'deletion'==_0x263c0d['type']&&'deletion'!=_0x52cce2['type']?-0x1:'deletion'!=_0x263c0d['type']&&'deletion'==_0x52cce2['type']?0x1:0x0);}function to(_0x174400,_0x59faaf){let _0x52d4bb,_0x32ceee=0x0;const _0x30e5d6=[],_0x463f55=_0x59faaf['schema'];for(;_0x32ceee<_0x174400['length'];){const _0x4cdd70=_0x174400[_0x32ceee],_0x46be3d=_0x174400[_0x32ceee+0x1];_0x52d4bb||(_0x52d4bb=_0x59faaf['createPositionBefore'](_0x4cdd70)),co(_0x59faaf,_0x4cdd70,_0x46be3d)||(_0x30e5d6['push'](_0x59faaf['createRange'](_0x52d4bb,_0x463f55['isObject'](_0x4cdd70)?_0x59faaf['createPositionAfter'](_0x4cdd70):_0x59faaf['createPositionAt'](_0x4cdd70,'end'))),_0x52d4bb=null),_0x32ceee++;}return _0x30e5d6;}function co(_0x4ceb85,_0x574ce9,_0xd2b424){if(!_0xd2b424)return!0x1;const _0x37d932=_0x4ceb85['createPositionAfter'](_0x574ce9),_0x5ddf04=_0x4ceb85['createPositionBefore'](_0xd2b424);return _0x37d932['isTouching'](_0x5ddf04);}function rs(_0x49bec3,_0x56056f,_0x3f97e8){for(;_0x3f97e8['length'];){const _0x436b98=_0x3f97e8['splice'](0x0,0x64);_0x49bec3['change'](()=>{for(const _0x4cef69 of _0x436b98)_0x4cef69['isInContent']&&_0x56056f['execute'](_0x4cef69['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x5d7b39,_0x146b21,_0x545fc5){super(_0x5d7b39),this['_command']=_0x146b21,this['_suggestions']=_0x545fc5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3ecce3=Array['from'](this['_suggestions']['values']())['some'](_0x15f09d=>_0x15f09d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3ecce3;}['execute'](){const _0x115fcf=ss(Array['from'](this['_suggestions']['values']()));for(const _0x14f016 of _0x115fcf){const _0x39e00e=_0x14f016['getRanges']();if(!this['editor']['model']['canEditAt'](_0x39e00e))return;}rs(this['editor']['model'],this['_command'],_0x115fcf);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x28a144,_0x3adb1b,_0x25d552){super(_0x28a144),this['_command']=_0x3adb1b,this['_suggestions']=_0x25d552,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x548aef=this['editor']['model']['document']['selection'],_0x3cdf71=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x20a295,_0x15e2f8){const _0x676342=Array['from'](_0x20a295['getRanges']()),_0x3f439f=new Set();for(const _0x2fbe43 of _0x15e2f8)if(_0x2fbe43['isInContent']){for(const _0x2350c3 of _0x676342)for(const _0x1b17c6 of _0x2fbe43['getRanges']())(_0x2350c3['isIntersecting'](_0x1b17c6)||_0x20a295['isCollapsed']&&!_0x2fbe43['isMultiRange']&&_0x2fbe43['next']&&_0x1b17c6['end']['isTouching'](_0x2350c3['start']))&&_0x3f439f['add'](_0x2fbe43);}return _0x3f439f;}(_0x548aef,_0x3cdf71),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3addc9=ss(Array['from'](this['_selectedSuggestions']));for(const _0x121b3a of _0x3addc9){const _0x3a40b2=_0x121b3a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3a40b2))return;}rs(this['editor']['model'],this['_command'],_0x3addc9);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1f846b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x14783e,_0x3293aa){super(),this['id']=_0x3293aa['id'],this['type']=_0x3293aa['type'],this['subType']=_0x3293aa['subType']||null,this['author']=_0x3293aa['author'],this['creator']=_0x3293aa['creator']||_0x3293aa['author'],this['isExternal']=Boolean(_0x3293aa['attributes']&&_0x3293aa['attributes']['@external']),this['data']=null,this['_model']=_0x14783e,this['_onAccept']=_0x3293aa['onAccept'],this['_onDiscard']=_0x3293aa['onDiscard'],this['_onAttributesChange']=_0x3293aa['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3293aa['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 _0x4b81c0=this;for(;_0x4b81c0['previous'];)_0x4b81c0=_0x4b81c0['previous'];return _0x4b81c0;}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'](_0xdc0ff5){this['_markerNames']['add'](_0xdc0ff5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1e7466=>this['_model']['markers']['get'](_0x1e7466))['filter'](_0x4dd70a=>_0x4dd70a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3c9412=>{for(const _0x376676 of this['getMarkers']())_0x3c9412['removeMarker'](_0x376676);}),this['_markerNames']['clear']();}['removeMarker'](_0x5cffc2){this['_model']['change'](_0x5a47a3=>{_0x5a47a3['removeMarker'](_0x5cffc2);}),this['_markerNames']['delete'](_0x5cffc2);}['addRange'](_0x459ee3){const _0x48418e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x48418e),this['_model']['change'](_0x277f6c=>{_0x277f6c['addMarker'](_0x48418e,{'range':_0x459ee3,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1d9638){for(const _0x1d34dd of this['getRanges']())if(_0x1d34dd['isIntersecting'](_0x1d9638))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x33cbc9=>_0x33cbc9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x19c35f,_0x28c0fd)=>[..._0x19c35f,..._0x28c0fd['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x192ce3=this['getRanges']();if(0x1!=_0x192ce3['length'])return null;const _0x23bd45=_0x192ce3[0x0],_0x2b768a=_0x23bd45['start']['nodeAfter'],_0x44eeed=_0x23bd45['end']['nodeBefore'];return _0x2b768a instanceof _0xbc9e80?_0x2b768a!=_0x44eeed?null:_0x2b768a: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 _0xbd23d6=[];let _0x25ff11=this['head'];for(;_0x25ff11;)_0xbd23d6['push'](_0x25ff11),_0x25ff11=_0x25ff11['next'];return _0xbd23d6;}['setAttribute'](_0x4ec1c3,_0x513a9c){const _0x2dfc5d=_0x48c4ec(this['attributes']);_0x1f6160(_0x2dfc5d,_0x4ec1c3,_0x513a9c),_0x35aac6(_0x2dfc5d,this['attributes'])||(this['attributes']=_0x2dfc5d,this['_onAttributesChange'](_0x2dfc5d));}['removeAttribute'](_0x21c132){const _0x133725=_0x48c4ec(this['attributes']);_0x28bace(_0x133725,_0x21c132),_0x35aac6(_0x133725,this['attributes'])||(this['attributes']=_0x133725,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 _0x1e7cf0()['substr'](0x1,0x5);}}function o(_0x55b266,_0x465fcb,_0x222ba2){const t=_0x55b266['t'];switch(_0x465fcb){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',_0x222ba2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x222ba2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x222ba2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x222ba2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x222ba2);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',_0x222ba2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x222ba2);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',_0x222ba2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x222ba2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x222ba2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x222ba2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x222ba2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x222ba2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x222ba2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x222ba2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x222ba2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x222ba2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x222ba2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x222ba2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x222ba2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x222ba2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x222ba2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x222ba2);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'},_0x222ba2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x222ba2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x222ba2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x222ba2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x222ba2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x222ba2);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'},_0x222ba2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x222ba2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x222ba2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x222ba2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x222ba2);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'},_0x222ba2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x222ba2);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'},_0x222ba2);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'},_0x222ba2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x222ba2);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'},_0x222ba2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x222ba2);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'},_0x222ba2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x222ba2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x222ba2);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x222ba2);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'},_0x222ba2);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'},_0x222ba2);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 _0x465fcb;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3040e2,_0x2e0386){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3040e2,this['_locale']=_0x2e0386;}['getDescriptions'](_0x5a1c96){const _0x4b2d8e=[],_0x3c4eb8=new Set(),_0x2920d1=new Set();for(let _0x30b47a=0x0;_0x30b47a<_0x5a1c96['length'];_0x30b47a++){const _0x2b82ce=_0x5a1c96[_0x30b47a];if(!_0x2b82ce['isInContent'])continue;const _0x4176b2=this['_handleCustomCallbackDescription'](_0x2b82ce);if(_0x4176b2){if(null!=_0x2b82ce['subType']){if(_0x3c4eb8['has'](_0x2b82ce['subType']))continue;_0x3c4eb8['add'](_0x2b82ce['subType']);}_0x4b2d8e['push'](_0x4176b2);}else{if('attribute'!=_0x2b82ce['type'])'insertion'!=_0x2b82ce['type']&&'deletion'!=_0x2b82ce['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4b2d8e,_0x2b82ce,_0x5a1c96[_0x30b47a+0x1]);else{const _0x368e46=_0x2b82ce['data']['key'];if(_0x2920d1['has'](_0x368e46))continue;_0x2920d1['add'](_0x2b82ce['data']['key']),_0x368e46==m?this['_handleRenameSuggestionDescription'](_0x4b2d8e,_0x2b82ce):this['_handleAttributeSuggestionDescription'](_0x4b2d8e,_0x2b82ce);}}}return this['_resolveDescriptionItems'](_0x4b2d8e);}['registerDescriptionCallback'](_0x423d09){this['_customCallbacks']['push'](_0x423d09);}['registerElementLabel'](_0x4bf0fd,_0x42f3fb,_0x45aa28=_0x1be3ca['normal']){'function'==typeof _0x4bf0fd?_0x422b84(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4bf0fd,'label':_0x42f3fb,'priority':_0x45aa28}):this['_itemLabels']['set'](_0x4bf0fd,_0x42f3fb);}['registerAttributeLabel'](_0x5c584a,_0x29466a){this['_attributeLabels']['set'](_0x5c584a,_0x29466a);}['getItemLabel'](_0x506013,_0x27aada=0x1){let _0x512b67;for(const _0x145fc0 of this['_itemLabelsCallbacks'])if(_0x145fc0['matchingCallback'](_0x506013)){_0x512b67=_0x145fc0['label'];break;}return _0x512b67||(_0x512b67=this['_itemLabels']['get'](_0x506013['name'])),_0x512b67?_0x512b67(_0x27aada):0x1!==_0x27aada?_0x27aada+'\x20'+_0x506013['name']+'s':''+_0x506013['name'];}['_addDescriptionItems'](_0x10b6bb,_0x28fdc4){const _0x5a99f5=_0x28fdc4['getFirstRange']()['getWalker'](),_0x527b1c='insertion'==_0x28fdc4['type']?'add':'remove';for(const _0x260cac of _0x5a99f5){const _0x3cfae8=_0x260cac['item'],_0x490d01=_0x10b6bb[_0x10b6bb['length']-0x1];if(_0x3cfae8['is']('$textProxy'))_0x490d01&&_0x490d01['type']['indexOf']('Container')>-0x1&&_0x10b6bb['pop'](),_0x490d01&&'text'==_0x490d01['type']?_0x490d01[_0x527b1c]+=_0x3cfae8['data']:_0x10b6bb['push']({'type':'text','add':'add'==_0x527b1c?_0x3cfae8['data']:'','remove':'remove'==_0x527b1c?_0x3cfae8['data']:''});else{if(this['_schema']['isObject'](_0x3cfae8)){const _0x4eaf5d=_0x3cfae8;if(_0x490d01&&_0x490d01['type']['indexOf']('Container')>-0x1&&_0x10b6bb['pop'](),'elementEnd'==_0x260cac['type'])continue;_0x490d01&&_0x490d01['type']==_0x527b1c+'Object'&&_0x490d01['element']['name']==_0x4eaf5d['name']?_0x490d01['quantity']++:_0x10b6bb['push']({'type':_0x527b1c+'Object','element':_0x4eaf5d,'quantity':0x1}),_0x5a99f5['skip'](_0x5ca264=>!('elementEnd'==_0x5ca264['type']&&_0x5ca264['item']==_0x3cfae8));}else{if(this['_schema']['checkChild'](_0x3cfae8,'$text')||_0x3cfae8['is']('element','softBreak')){const _0x3bde53=_0x3cfae8;if('add'==_0x527b1c&&'elementStart'==_0x260cac['type']||'remove'==_0x527b1c&&'elementEnd'==_0x260cac['type'])continue;if(_0x490d01&&-0x1==_0x490d01['type']['indexOf']('Container')){'text'==_0x490d01['type']&&(_0x490d01[_0x527b1c]+='\x0a');continue;}let _0x39c7c0;if(_0x39c7c0='add'==_0x527b1c?_0x3bde53['nextSibling']&&!this['_schema']['isObject'](_0x3bde53['nextSibling'])?_0x3bde53['nextSibling']:null:_0x3bde53['previousSibling']&&!this['_schema']['isObject'](_0x3bde53['previousSibling'])?_0x3bde53['previousSibling']:null,_0x3bde53['isEmpty']||_0x39c7c0&&_0x39c7c0['isEmpty']){const _0x28ec5a=_0x39c7c0&&_0x39c7c0['isEmpty']?_0x39c7c0:_0x3bde53;_0x490d01&&_0x490d01['type']==_0x527b1c+'EmptyContainer'&&_0x490d01['element']['name']==_0x28ec5a['name']?_0x490d01['quantity']++:_0x10b6bb['push']({'type':_0x527b1c+'EmptyContainer','element':_0x28ec5a,'quantity':0x1});}else _0x10b6bb['push']({'type':_0x527b1c+'Container','element':_0x3bde53});}}}}}['_resolveDescriptionItems'](_0x22ce61){const _0x1d779c=this['_locale'],_0x35a64e=[],_0x4f896d=[],_0x1c2cbd=[];for(const _0x4c731c of _0x22ce61)switch(_0x4c731c['type']){case'text':if(_0x4c731c['add']=_0x4c731c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4c731c['remove']=_0x4c731c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4c731c['add']&&''!=_0x4c731c['remove']){_0x35a64e['push']({'type':'replace','content':o(_0x1d779c,'REPLACE_TEXT',['\x22'+_0x4c731c['remove']+'\x22','\x22'+_0x4c731c['add']+'\x22'])});continue;}if(null!=_0x4c731c['add']['match'](/^ +$/)){_0x35a64e['push']({'type':'insertion','content':o(_0x1d779c,'*Insert:*\x20%0',o(_0x1d779c,'ELEMENT_SPACE',_0x4c731c['add']['length']))});continue;}if(null!=_0x4c731c['remove']['match'](/^ +$/)){_0x35a64e['push']({'type':'deletion','content':o(_0x1d779c,'*Remove:*\x20%0',o(_0x1d779c,'ELEMENT_SPACE',_0x4c731c['remove']['length']))});continue;}if(''!=_0x4c731c['add']){_0x35a64e['push']({'type':'insertion','content':o(_0x1d779c,'*Insert:*\x20%0','\x22'+_0x4c731c['add']+'\x22')});continue;}_0x35a64e['push']({'type':'deletion','content':o(_0x1d779c,'*Remove:*\x20%0','\x22'+_0x4c731c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x35a64e['push']({'type':'insertion','content':o(_0x1d779c,'*Insert:*\x20%0',this['getItemLabel'](_0x4c731c['element'],_0x4c731c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x35a64e['push']({'type':'deletion','content':o(_0x1d779c,'*Remove:*\x20%0',this['getItemLabel'](_0x4c731c['element'],_0x4c731c['quantity']))});continue;case'addContainer':_0x35a64e['push']({'type':'insertion','content':o(_0x1d779c,'*Split:*\x20%0',this['getItemLabel'](_0x4c731c['element'],_0x4c731c['quantity']))});continue;case'removeContainer':_0x35a64e['push']({'type':'deletion','content':o(_0x1d779c,'*Merge:*\x20%0',this['getItemLabel'](_0x4c731c['element'],_0x4c731c['quantity']))});continue;case'addFormat':_0x4f896d['push'](_0x4c731c['key']);continue;case'removeFormat':_0x1c2cbd['push'](_0x4c731c['key']);continue;default:_0x35a64e['push'](_0x4c731c);}if(_0x4f896d['length']){const _0x3c945b=_0x4f896d['map'](_0x554c9b=>this['_attributeLabels']['has'](_0x554c9b)?this['_attributeLabels']['get'](_0x554c9b):_0x554c9b)['join'](',\x20');_0x35a64e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3c945b)});}if(_0x1c2cbd['length']){const _0xb999f4=_0x1c2cbd['map'](_0x3960a7=>this['_attributeLabels']['has'](_0x3960a7)?this['_attributeLabels']['get'](_0x3960a7):_0x3960a7)['join'](',\x20');_0x35a64e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xb999f4)});}return _0x35a64e;}['_handleCustomCallbackDescription'](_0x59b897){for(const _0x24855a of this['_customCallbacks']){const _0x1bdd16=_0x24855a(_0x59b897);if(_0x1bdd16&&'type'in _0x1bdd16)return _0x1bdd16;}}['_handleAttributeSuggestionDescription'](_0x34924e,_0x33c346){const _0x430cf5=_0x33c346['data'],_0x1cb0f8=void 0x0===_0x430cf5['newValue']?'removeFormat':'addFormat';_0x34924e['push']({'type':_0x1cb0f8,'key':_0x430cf5['key']});}['_handleRenameSuggestionDescription'](_0x2458d9,_0x4de7d8){_0x2458d9['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4de7d8['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x59cd6,_0x461bd7,_0x539fef){if(this['_addDescriptionItems'](_0x59cd6,_0x461bd7),_0x539fef&&_0x539fef['getFirstRange']()&&!_0x461bd7['getFirstRange']()['end']['isEqual'](_0x539fef['getFirstRange']()['start'])){const _0x4c4744=_0x59cd6[_0x59cd6['length']-0x1],_0x544690='insertion'==_0x461bd7['type']?'add':'remove';_0x4c4744&&'text'==_0x4c4744['type']&&(_0x4c4744[_0x544690]+='\x0a');}}}class E extends _0x47a92c{['afterInit'](){const _0x4a33f9=this['editor'],_0x268cc0=_0x4a33f9['plugins']['get']('TrackChangesEditing');_0x4a33f9['commands']['get']('showAIAssistant')&&_0x268cc0['enableCommand']('showAIAssistant');}}class V extends _0x47a92c{['afterInit'](){const _0x2af99c=this['editor'],_0x11d683=_0x2af99c['locale'];if(!_0x2af99c['plugins']['has']('AlignmentEditing'))return;const _0x43d080=_0x2af99c['plugins']['get']('TrackChangesEditing');_0x43d080['enableDefaultAttributesIntegration']('alignment'),_0x43d080['registerBlockAttribute']('alignment'),_0x43d080['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x11d683,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2525f9=this['editor'],_0xcd6daf=_0x2525f9['locale'];_0x2525f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b48ef=>{if('formatBlock'!=_0x5b48ef['type'])return;const {data:_0xa344b0}=_0x5b48ef;if(_0xa344b0&&'alignment'==_0xa344b0['commandName']){const _0x47205e=_0xa344b0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xcd6daf,'*Format:*\x20%0',function(_0x58ab0b){switch(_0x58ab0b){case'left':return o(_0xcd6daf,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xcd6daf,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xcd6daf,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xcd6daf,'FORMAT_JUSTIFY_TEXT');}}(_0x47205e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x47a92c{['afterInit'](){const _0x59f001=this['editor'],_0x4efd17=_0x59f001['plugins']['get']('TrackChangesEditing'),_0x18ab82=_0x59f001['locale'];for(const _0x5e2d45 of ti){if(!_0x59f001['plugins']['has'](_0x5e2d45))continue;const _0x4a4ada=_0x5e2d45['slice'](0x0,-0x7)['toLowerCase'](),_0x3fd1d8='FORMAT_'+_0x4a4ada['toUpperCase']();_0x4efd17['enableDefaultAttributesIntegration'](_0x4a4ada),_0x4efd17['registerInlineAttribute'](_0x4a4ada),_0x4efd17['descriptionFactory']['registerAttributeLabel'](_0x4a4ada,o(_0x18ab82,_0x3fd1d8));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5caee1=this['editor'],_0x2d21c3=_0x5caee1['locale'],_0x2fd7ba=_0x5caee1['plugins']['get']('TrackChangesEditing');function _0x511730(_0x528e58,_0x2e6fb6){_0x2fd7ba['descriptionFactory']['registerDescriptionCallback'](_0x27741d=>{if('formatInline'!=_0x27741d['type'])return;const {data:_0x5cd3f5}=_0x27741d;return _0x5cd3f5&&_0x5cd3f5['commandName']===_0x528e58?_0x5cd3f5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2d21c3,'*Format:*\x20%0',_0x2e6fb6)}:{'type':'format','content':o(_0x2d21c3,'*Remove\x20format:*\x20%0',_0x2e6fb6)}:void 0x0;});}_0x511730('bold',o(_0x2d21c3,'FORMAT_BOLD')),_0x511730('italic',o(_0x2d21c3,'FORMAT_ITALIC')),_0x511730('underline',o(_0x2d21c3,'FORMAT_UNDERLINE')),_0x511730('code',o(_0x2d21c3,'FORMAT_CODE')),_0x511730('strikethrough',o(_0x2d21c3,'FORMAT_STRIKETHROUGH')),_0x511730('subscript',o(_0x2d21c3,'FORMAT_SUBSCRIPT')),_0x511730('superscript',o(_0x2d21c3,'FORMAT_SUPERSCRIPT'));}}class O extends _0x47a92c{['afterInit'](){const _0x1a62b5=this['editor'],_0x2e2b90=_0x1a62b5['locale'];if(!_0x1a62b5['plugins']['has']('BlockQuoteEditing'))return;const _0x173a56=_0x1a62b5['plugins']['get']('TrackChangesEditing'),_0x474eaf=this['editor']['commands']['get']('blockQuote');_0x173a56['enableCommand']('blockQuote',(_0x33e984,_0x13ed9a={})=>{const _0x3b7702=this['editor']['model']['document']['selection'],_0x2ff9cd=_0x13ed9a&&void 0x0!==_0x13ed9a['forceValue']?_0x13ed9a['forceValue']:!_0x474eaf['value'];let _0x398460=[];if(_0x2ff9cd){const _0x16e5fa=Array['from'](_0x3b7702['getSelectedBlocks']())['filter'](_0x3fb600=>oo(_0x3fb600)||function(_0x3daa81,_0xe47574){const _0x57c4e9=_0xe47574['checkChild'](_0x3daa81['parent'],'blockQuote'),_0x26d692=_0xe47574['checkChild'](['$root','blockQuote'],_0x3daa81);return _0x57c4e9&&_0x26d692;}(_0x3fb600,this['editor']['model']['schema']));_0x398460=to(_0x16e5fa,_0x1a62b5['model']);}else{const _0x6f16ce=Array['from'](_0x3b7702['getSelectedBlocks']())['filter'](_0x4530ed=>oo(_0x4530ed));_0x398460=to(_0x6f16ce,_0x1a62b5['model']);}_0x1a62b5['model']['change'](()=>{for(const _0x1b9b04 of _0x398460)_0x173a56['markBlockFormat'](_0x1b9b04,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2ff9cd}]});});}),_0x173a56['descriptionFactory']['registerDescriptionCallback'](_0x1cbc4e=>{const {data:_0x1dd2ec}=_0x1cbc4e;if(_0x1dd2ec&&'blockQuote'==_0x1dd2ec['commandName']){const _0xa67eec=o(_0x2e2b90,'ELEMENT_BLOCK_QUOTE');return _0x1dd2ec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e2b90,'*Set\x20format:*\x20%0',_0xa67eec)}:{'type':'format','content':o(_0x2e2b90,'*Remove\x20format:*\x20%0',_0xa67eec)};}});}}function oo(_0x184279){return'blockQuote'==_0x184279['parent']['name'];}class G extends _0x47a92c{['afterInit'](){const _0x3a8a16=this['editor'];_0x3a8a16['plugins']['has']('CaseChange')&&(_0x3a8a16['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3a8a16['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3a8a16['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x47a92c{['afterInit'](){const _0x2e0595=this['editor'];_0x2e0595['commands']['get']('ckbox')&&_0x2e0595['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x47a92c{['afterInit'](){const _0x52a7c0=this['editor'];if(!_0x52a7c0['plugins']['has']('CodeBlock'))return;const _0x105349=_0x52a7c0['plugins']['get']('TrackChangesEditing'),_0x21aaf3=_0x52a7c0['locale'],_0x51e641=_0x52a7c0['config']['get']('codeBlock')['languages'],_0xd2ae8b=_0x52a7c0['commands']['get']('codeBlock');_0x105349['enableCommand']('indentCodeBlock'),_0x105349['enableCommand']('outdentCodeBlock'),_0x105349['enableCommand']('codeBlock',(_0x406f27,_0x2ed81c={})=>{const _0x25ec35=_0x52a7c0['model'],_0x4e5e9d=_0x52a7c0['model']['document']['selection'],_0x2959f9=_0x2ed81c&&void 0x0!==_0x2ed81c['forceValue']?_0x2ed81c['forceValue']:!_0xd2ae8b['value'];let _0x5ae26c;_0x2ed81c['language']||(_0x2ed81c['language']=_0x51e641[0x0]['language']),_0x5ae26c=_0x2959f9?Array['from'](_0x4e5e9d['getSelectedBlocks']())['filter'](_0x26c454=>eo(_0x26c454)||function(_0x19e187,_0x1d1ad0){if(_0x19e187['is']('rootElement')||_0x1d1ad0['isLimit'](_0x19e187))return!0x1;return _0x1d1ad0['checkChild'](_0x19e187['parent'],'codeBlock');}(_0x26c454,_0x25ec35['schema'])):Array['from'](_0x4e5e9d['getSelectedBlocks']())['filter'](_0x22c76d=>eo(_0x22c76d));const _0x3267b4=to(_0x5ae26c,_0x25ec35);_0x25ec35['change'](()=>{for(const _0x277cb1 of _0x3267b4)_0x105349['markBlockFormat'](_0x277cb1,{'commandName':'codeBlock','commandParams':[{..._0x2ed81c,'forceValue':_0x2959f9}],'formatGroupId':'blockName'});});}),(_0x105349['descriptionFactory']['registerElementLabel']('codeBlock',_0xe5dcd5=>o(_0x21aaf3,'ELEMENT_CODE_BLOCK',_0xe5dcd5)),_0x105349['descriptionFactory']['registerDescriptionCallback'](_0x3168dc=>{if('formatBlock'!=_0x3168dc['type'])return;const _0x27efec=_0x21aaf3['t'],{data:_0x16fa4a}=_0x3168dc;if(!_0x16fa4a||'codeBlock'!=_0x16fa4a['commandName'])return;const _0x271de8=_0x16fa4a['commandParams'][0x0]['language'],_0x3e9030=_0x27efec(_0x51e641['find'](_0x3c1157=>_0x3c1157['language']===_0x271de8)['label'])['toLowerCase']();return _0x16fa4a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x21aaf3,'*Set\x20format:*\x20%0',o(_0x21aaf3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3e9030+')')}:{'type':'format','content':o(_0x21aaf3,'*Remove\x20format:*\x20%0',o(_0x21aaf3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x462630){return'codeBlock'==_0x462630['name'];}class H extends _0x47a92c{['afterInit'](){const _0xc0c311=this['editor'];if(!_0xc0c311['plugins']['has']('CommentsEditing'))return;_0xc0c311['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1a02e2,_0x40f7af,_0x475824){const _0x53031a=[];for(const _0x3fff92 of _0x40f7af['getItems']())_0x3fff92['hasAttribute'](_0x1a02e2)&&_0x53031a['push'](_0x475824['createRangeOn'](_0x3fff92));return _0x53031a;}function _e(_0x424686,_0x1e3ed6,{showActiveMarker:_0x573ef4=!0x0}={}){const _0x266989=_0x424686['plugins']['get']('TrackChangesEditing');return(_0x55a52f,_0x2b0a84,_0x2883c2)=>{if(!_0x2883c2['consumable']['test'](_0x2b0a84['markerRange'],_0x55a52f['name']))return;const _0x158a4b=_0x2b0a84['markerRange']['getWalker'](),_0x5cd884=_0x2b0a84['markerRange']['start'],_0x27d54c=_0x424686['model']['schema'];let _0x2111af=null,_0x18898b=null,_0x86edf8=!0x1,_0x1ec09c=!0x1;for(const _0x25395b of _0x158a4b){const _0x13df5f=_0x25395b['item'];_0x86edf8=_0x86edf8||_0x27d54c['isContent'](_0x13df5f);const _0x5845e7=_0x2883c2['mapper']['toViewElement'](_0x13df5f);if(_0x5845e7&&_0x5845e7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x25395b['type']&&(_0x27d54c['isBlock'](_0x13df5f)&&!_0x27d54c['isLimit'](_0x13df5f)&&(_0x13df5f['nextSibling']||_0x5cd884['isAtEnd']?_0x2111af&&_0x2111af['parent']==_0x13df5f||(_0x2111af=_0x13df5f,_0x4d43c1(_0x25395b['previousPosition']),_0x1ec09c=!0x0):_0x18898b=_0x18898b||_0x25395b['previousPosition']));}function _0x4d43c1(_0x41ff8f){const _0x3b62e4=_0x2883c2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1e3ed6}),_0x264ec5=_0x2883c2['mapper']['toViewPosition'](_0x41ff8f);_0x573ef4&&_0x266989['activeMarkers']['includes'](_0x2b0a84['markerName'])&&_0x2883c2['writer']['addClass']('ck-suggestion-marker--active',_0x3b62e4),_0x2883c2['writer']['insert'](_0x264ec5,_0x3b62e4),_0x2883c2['mapper']['bindElementToMarker'](_0x3b62e4,_0x2b0a84['markerName']);}_0x86edf8||_0x1ec09c||!_0x18898b||_0x4d43c1(_0x18898b);};}class q extends _0x47a92c{static get['requires'](){return[_0x9a5bbc];}['init'](){const _0xf8f6fa=this['editor'],_0x484db0=_0xf8f6fa['plugins']['get']('TrackChangesEditing');_0x484db0['enableCommand']('delete');const _0x5ba555=_0xf8f6fa['commands']['get']('deleteForward');_0x484db0['enableCommand']('deleteForward',(_0xf49584,_0x3cc40e={})=>{const _0x17814d=_0xf8f6fa['model']['createSelection'](_0xf8f6fa['model']['document']['selection']);_0x17814d['isCollapsed']&&_0xf8f6fa['model']['modifySelection'](_0x17814d,{'direction':'forward','unit':_0x3cc40e['unit']});const _0x3bbfd5=_0x17814d['getFirstRange'](),_0x136dcb=_0x92b86c['fromRange'](_0x3bbfd5);let _0x3defa2;_0xf49584(_0x3cc40e),_0x3defa2='$graveyard'==_0x136dcb['root']['rootName']?_0xf8f6fa['model']['createRange'](_0x3bbfd5['start']):_0xf8f6fa['model']['createRange'](_0x136dcb['start'],_0x136dcb['end']),_0x136dcb['detach'](),_0xf8f6fa['model']['enqueueChange'](_0x5ba555['buffer']['batch'],_0x231ef0=>{_0x5ba555['buffer']['lock'](),_0x231ef0['setSelection'](_0x231ef0['createRange'](_0x3defa2['end'])),_0x5ba555['buffer']['unlock']();});}),_0xf8f6fa['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xf8f6fa,'merge'),{'priority':'high'}),_0xf8f6fa['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x219c8e,_0x2c06e8,_0x491d9d)=>{_0x491d9d['options']['showSuggestionHighlights']&&_e(_0xf8f6fa,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x219c8e,_0x2c06e8,_0x491d9d);},{'priority':'high'}),_0xf8f6fa['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x823313,_0x4a7b69,_0x4c9723)=>{const _0x316986=_0x4c9723['mapper']['markerNameToElements'](_0x4a7b69['markerName']);if(_0x316986){for(const _0x549f0d of _0x316986)_0x549f0d['is']('uiElement')&&(_0x4c9723['mapper']['unbindElementFromMarkerName'](_0x549f0d,_0x4a7b69['markerName']),_0x4c9723['writer']['remove'](_0x549f0d));}},{'priority':'high'});}}class z extends _0x47a92c{['afterInit'](){const _0x40c335=this['editor'];if(!_0x40c335['plugins']['has']('ListEditing'))return;const _0x4d40fe=_0x40c335['locale'],_0x34be5f=_0x40c335['plugins']['get']('TrackChangesEditing'),_0xc35a8f=_0x40c335['plugins']['has']('TodoListEditing'),_0x352ecd=!!_0x40c335['config']['get']('list.multiBlock');function _0x315d8e(_0x42b027){return{'type':'format','content':''+o(_0x4d40fe,'*Set\x20format:*\x20%0',_0x42b027)};}function _0xfda681(_0x3e2a02){return{'type':'format','content':''+o(_0x4d40fe,'*Remove\x20format:*\x20%0',_0x3e2a02)};}_0x34be5f['enableDefaultAttributesIntegration']('numberedList'),_0x34be5f['enableDefaultAttributesIntegration']('bulletedList'),_0x34be5f['enableDefaultAttributesIntegration']('customNumberedList'),_0x34be5f['enableDefaultAttributesIntegration']('customBulletedList'),_0x34be5f['enableDefaultAttributesIntegration']('indentList'),_0x34be5f['enableDefaultAttributesIntegration']('outdentList'),_0x34be5f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x34be5f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x34be5f['registerBlockAttribute']('listItemId'),_0x34be5f['registerBlockAttribute']('listType'),_0x34be5f['registerBlockAttribute']('listIndent'),_0x352ecd&&(_0x34be5f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x34be5f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xc35a8f&&(_0x34be5f['enableDefaultAttributesIntegration']('todoList'),_0x34be5f['enableDefaultAttributesIntegration']('checkTodoList'),_0x34be5f['registerBlockAttribute']('todoListChecked'),_0x34be5f['descriptionFactory']['registerDescriptionCallback'](_0x595dbc=>{const {data:_0x4a03a9}=_0x595dbc;if(_0x4a03a9&&'todoListChecked'==_0x4a03a9['key'])return{'type':'format','content':_0x4a03a9['newValue']?o(_0x4d40fe,'*Check\x20item*'):o(_0x4d40fe,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x203c8a=>{if(_0x203c8a['batch']['isUndo'])return!0x1;let _0x48ac19=!0x1;const _0x5964f4=_0x34be5f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x73cbe=>'todoListChecked'===_0x34be5f['_getAttributeKey'](_0x73cbe));for(const _0x286dc9 of _0x5964f4){'todo'!=_0x286dc9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x34be5f['_findSuggestions'](_0x286dc9['getFirstRange'](),'attribute')['find'](_0x577748=>'listType'===_0x34be5f['_getAttributeKey'](_0x577748['suggestion']))||(_0x203c8a['removeMarker'](_0x286dc9['getFirstMarker']()),_0x48ac19=!0x0));}return _0x48ac19;})),_0x34be5f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4d40fe,'FORMAT_INDENT'));const _0x554dd3={'type':'format','content':''};_0x34be5f['descriptionFactory']['registerDescriptionCallback'](_0x3bf3c0=>{const {data:_0x37ac97}=_0x3bf3c0;if(!_0x37ac97||'listType'!=_0x37ac97['key'])return;let _0x35cb4c=_0x3bf3c0['head'];for(;_0x35cb4c;){if(_0x35cb4c['data']&&(('listStyle'==_0x35cb4c['data']['key']||'listMarkerStyle'==_0x35cb4c['data']['key'])&&(_0x35cb4c['data']['newValue']&&'default'!=_0x35cb4c['data']['newValue']||'default'!=_0x35cb4c['data']['oldValue']&&!_0x37ac97['newValue'])||!_0x352ecd&&_0x35cb4c['data']['key']==m))return _0x554dd3;_0x35cb4c=_0x35cb4c['next'];}if(null==_0x37ac97['newValue'])switch(_0x37ac97['oldValue']){case'bulleted':return _0xfda681(o(_0x4d40fe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xfda681(o(_0x4d40fe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xfda681(o(_0x4d40fe,'ELEMENT_TODO_LIST'));}switch(_0x37ac97['newValue']){case'bulleted':return _0x315d8e(o(_0x4d40fe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x315d8e(o(_0x4d40fe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x315d8e(o(_0x4d40fe,'ELEMENT_TODO_LIST'));}}),_0x34be5f['descriptionFactory']['registerDescriptionCallback'](_0x36f9ad=>{const {data:_0x2760d0}=_0x36f9ad;if(_0x2760d0&&'listIndent'==_0x2760d0['key'])return null==_0x2760d0['newValue']||null==_0x2760d0['oldValue']&&0x0==_0x2760d0['newValue']?_0x554dd3:void 0x0;}),_0x34be5f['descriptionFactory']['registerDescriptionCallback'](_0x52e97f=>{if('attribute'!=_0x52e97f['type'])return;const {data:_0x3e72a5}=_0x52e97f;if(!_0x3e72a5||'listItemId'!=_0x3e72a5['key'])return;const _0x548b97=le(_0x52e97f);return'newValue'==_0x548b97?{'type':'format','content':o(_0x4d40fe,'*Merge:*\x20list\x20item')}:'oldValue'==_0x548b97?{'type':'format','content':o(_0x4d40fe,'*Split:*\x20list\x20item')}:_0x554dd3;}),_0x40c335['model']['document']['registerPostFixer'](_0x47fef9=>this['listItemIdFixer'](_0x47fef9)),_0x40c335['model']['document']['registerPostFixer'](_0x125df0=>this['noTrackChangesFixer'](_0x125df0)),_0x40c335['model']['document']['registerPostFixer'](_0x240998=>this['assureChains'](_0x240998)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3f2b37){if(_0x3f2b37['batch']['isUndo']||!_0x3f2b37['batch']['isLocal'])return!0x1;let _0x180f8e=!0x1;const _0x317980=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5189fd=>_0x5189fd['data']&&'listItemId'==_0x5189fd['data']['key'])['filter'](_0x72b69a=>_0x72b69a['data']['newValue']&&_0x72b69a['data']['oldValue']);for(const _0x48371f of _0x317980)le(_0x48371f)||(_0x3f2b37['removeMarker'](_0x48371f['getFirstMarker']()),_0x180f8e=!0x0);return _0x180f8e;}['noTrackChangesFixer'](_0x5245d2){if(_0x5245d2['batch']['isUndo']||!_0x5245d2['batch']['isLocal'])return!0x1;const _0x128274=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x128274['trackChangesCommand']['value'])return!0x1;let _0x3ca2cb=!0x1;const _0x18329e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x7306d1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2d4efb=>'attribute'==_0x2d4efb['type'])['filter'](_0x2589f7=>_0x18329e['includes'](_0x2589f7['attributeKey']));if(0x0==_0x7306d1['length'])return _0x3ca2cb;for(const _0x2cb7b1 of _0x7306d1){const _0x1162c3=_0x128274['_findSuggestions'](_0x2cb7b1['range'],'attribute')['filter'](_0xe0db6d=>!_0xe0db6d['meta']['isNextTo'])['map'](_0x19b564=>_0x19b564['suggestion'])['filter'](_0x39d80b=>{const _0x26cbea=_0x128274['_getAttributeKey'](_0x39d80b);return _0x18329e['includes'](_0x26cbea);});if(_0x1162c3['length']){for(const _0x48f6bd of _0x1162c3)_0x5245d2['removeMarker'](_0x48f6bd['getFirstMarker']());_0x3ca2cb=!0x0;}}return _0x3ca2cb;}['assureChains'](_0x30f31f){if(_0x30f31f['batch']['isUndo']||!_0x30f31f['batch']['isLocal'])return!0x1;const _0x5e027a=this['editor']['plugins']['get']('TrackChangesEditing');let _0x3b6dbd=!0x1;const _0x189c71=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x22238b of _0x5e027a['getSuggestions']({'skipNotAttached':!0x0})){const _0x3cc0b5=_0x5e027a['_findSuggestions'](_0x22238b['getFirstRange'](),'attribute')['map'](_0x3abfc8=>_0x3abfc8['suggestion'])['filter'](_0x107644=>_0x107644['data']&&_0x189c71['includes'](_0x107644['data']['key']));if(!_0x3cc0b5['length'])continue;const _0x4450d4=_0x3cc0b5[0x0]['head']['attributes']['groupId'];if(!_0x3cc0b5['every'](_0x3a3ac0=>_0x3a3ac0['attributes']['groupId']===_0x4450d4)){for(const _0x48eea8 of _0x3cc0b5)_0x18a512(_0x48eea8,_0x4450d4)&&(_0x3b6dbd=!0x0);}}return _0x3b6dbd;function _0x4217f5(_0x642ca1,_0x140b05){for(const _0x1f21af of _0x5e027a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27dbdd=>'attribute'==_0x27dbdd['type']&&_0x27dbdd['attributes']['groupId']==_0x642ca1))_0x1f21af['setAttribute']('groupId',_0x140b05);}function _0x18a512(_0x475312,_0x1b606c){let _0x4f21ef=_0x475312['head'],_0x3afd90=!0x1;for(;_0x4f21ef;)_0x4f21ef['attributes']['groupId']!=_0x1b606c&&(_0x4217f5(_0x4f21ef['attributes']['groupId'],_0x1b606c),_0x4f21ef['setAttribute']('groupId',_0x1b606c),_0x3afd90=!0x0),_0x4f21ef=_0x4f21ef['next'];return _0x3afd90;}}['_supportLegacySuggestions'](){const _0x44a5ac=this['editor'],_0xa03921=_0x44a5ac['locale'],_0xdc00ef=_0x44a5ac['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xdc00ef['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x355626,_0x588d38){const _0xb501e4=[];for(let _0xc3ce48 of _0x355626)_0xc3ce48['start']['nodeAfter']===_0xc3ce48['end']['parent']&&(_0xc3ce48=_0x44a5ac['model']['createRange'](_0x44a5ac['model']['createPositionAt'](_0xc3ce48['start']['nodeAfter'],0x0))),_0xb501e4['push'](_0xc3ce48);_0x44a5ac['model']['change'](_0x2a85a0=>{const _0x4a71b2=_0x44a5ac['model']['document']['selection'],_0x230823=Array['from'](_0x4a71b2['getRanges']())['map'](_0x37fe0=>_0x92b86c['fromRange'](_0x37fe0));_0x2a85a0['setSelection'](_0xb501e4),_0x44a5ac['commands']['get'](_0x588d38['commandName'])['refresh'](),_0x588d38['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x44a5ac['execute'](_0x588d38['commandName'],..._0x588d38['commandParams']),_0x2a85a0['setSelection'](_0x230823);for(const _0x517f6f of _0x230823)_0x517f6f['detach']();});}),_0xdc00ef['descriptionFactory']['registerElementLabel'](function(_0xd43887){const _0x33448e=!_0x44a5ac['model']['schema']['isObject'](_0xd43887),_0x2e3257=_0xd43887['previousSibling'],_0x443b0b=_0xd43887['nextSibling'],_0x241cdd=_0xd43887['getAttribute']('listItemId'),_0x3fbf0d=!_0x2e3257||_0x2e3257['getAttribute']('listItemId')!==_0x241cdd,_0x3d651e=!_0x443b0b||_0x443b0b['getAttribute']('listItemId')!==_0x241cdd;return _0x33448e&&Boolean(_0x241cdd)&&_0x3fbf0d&&_0x3d651e;},_0x5a0ba6=>o(_0xa03921,'ELEMENT_LIST_ITEM',_0x5a0ba6));}['_registerLegacyDescription'](){const _0x422fbd=this['editor'],_0x2d5e16=_0x422fbd['locale'];function _0x4e5352(_0x28b71e){const _0x46d402=_0x422fbd['commands']['get']('bulletedList')['value'],_0x543f3f=_0x422fbd['commands']['get']('numberedList')['value'];return'numberedList'===_0x28b71e?_0x46d402:_0x543f3f;}_0x422fbd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4afc70){if('formatBlock'!=_0x4afc70['type'])return;const {data:_0x1e9b2b}=_0x4afc70;if(!_0x1e9b2b)return;let _0x4cc830,_0x37d923,_0x28c90a,_0x8f6195;switch(_0x1e9b2b['commandName']){case'bulletedList':_0x28c90a=_0x1e9b2b['commandParams'][0x0]['forceValue'],_0x8f6195=_0x4e5352(_0x1e9b2b['commandName']),_0x4cc830=_0x28c90a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x8f6195&&_0x422fbd['config']['get']('list.multiBlock')||(_0x4cc830='*Change\x20to:*\x20%0'),_0x37d923={'type':'format','content':o(_0x2d5e16,_0x4cc830,o(_0x2d5e16,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x28c90a=_0x1e9b2b['commandParams'][0x0]['forceValue'],_0x8f6195=_0x4e5352(_0x1e9b2b['commandName']),_0x4cc830=_0x28c90a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x8f6195&&_0x422fbd['config']['get']('list.multiBlock')||(_0x4cc830='*Change\x20to:*\x20%0'),_0x37d923={'type':'format','content':o(_0x2d5e16,_0x4cc830,o(_0x2d5e16,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4cc830='*Indent:*\x20%0',_0x37d923={'type':'format','content':o(_0x2d5e16,_0x4cc830,o(_0x2d5e16,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4cc830=function(_0x56ce32){const _0x24d619=_0x56ce32['getFirstRange']();let _0x3bc59a=_0x24d619['start']['nodeAfter'];for(;_0x3bc59a&&_0x24d619['containsItem'](_0x3bc59a);){if(_0x3bc59a['getAttribute']('listIndent')>0x0)return!0x1;_0x3bc59a=_0x3bc59a['nextSibling'];}return!0x0;}(_0x4afc70)?o(_0x2d5e16,'*Format:*\x20remove\x20from\x20%0',o(_0x2d5e16,function(_0x13afde){return'ELEMENT_'+_0x13afde['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4afc70))):o(_0x2d5e16,'*Outdent:*\x20%0',o(_0x2d5e16,'ELEMENT_LIST_ITEM')),_0x37d923={'type':'format','content':_0x4cc830};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1e9b2b['multipleBlocks']&&(_0x4cc830='*Merge:*\x20%0',_0x37d923={'type':'deletion','content':o(_0x2d5e16,_0x4cc830,o(_0x2d5e16,'ELEMENT_LIST_ITEM'))});}return _0x37d923;});}}function le(_0x2cc021){let _0x44e114=_0x2cc021['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x44e114;){const _0x25966f=_0x44e114['getAttribute']('listItemId');if(!_0x25966f)return!0x1;if(_0x25966f==_0x2cc021['data']['newValue'])return'newValue';if(_0x25966f==_0x2cc021['data']['oldValue'])return'oldValue';_0x44e114=_0x44e114['previousSibling'];}return!0x1;}class pe extends _0x47a92c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x54af81=this['editor']['config']['get']('list.properties'),_0x3a6884=this['editor']['plugins']['get']('TrackChangesEditing');_0x54af81['styles']&&(_0x3a6884['enableDefaultAttributesIntegration']('listStyle'),_0x3a6884['registerBlockAttribute']('listStyle')),_0x54af81['reversed']&&(_0x3a6884['enableDefaultAttributesIntegration']('listReversed'),_0x3a6884['registerBlockAttribute']('listReversed')),_0x54af81['startIndex']&&(_0x3a6884['enableDefaultAttributesIntegration']('listStart'),_0x3a6884['registerBlockAttribute']('listStart'));const _0x3d799d={'type':'format','content':''};_0x3a6884['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1e7fa9=this['editor']['locale'];_0x3a6884['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1e7fa9,'FORMAT_LIST_REVERSED')),_0x3a6884['descriptionFactory']['registerDescriptionCallback'](_0x421f27=>{const {data:_0x57c06c}=_0x421f27;if(_0x57c06c&&'listReversed'==_0x57c06c['key'])return null==_0x57c06c['newValue']||0x0==_0x57c06c['newValue']&&null==_0x57c06c['oldValue']?_0x3d799d:void 0x0;}),_0x3a6884['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1e7fa9,'FORMAT_LIST_START')),_0x3a6884['descriptionFactory']['registerDescriptionCallback'](_0x29ba72=>{const {data:_0x2052c7}=_0x29ba72;if(_0x2052c7&&'listStart'==_0x2052c7['key'])return null==_0x2052c7['newValue']||0x1==_0x2052c7['newValue']&&null==_0x2052c7['oldValue']?_0x3d799d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x274261=>{if(_0x274261['batch']['isUndo'])return!0x1;let _0x4f4466=!0x1;const _0x448c02=_0x3a6884['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c2dca=>{const _0x313b29=_0x3a6884['_getAttributeKey'](_0x3c2dca);return'listStart'==_0x313b29||'listReversed'==_0x313b29;});for(const _0x4413fe of _0x448c02){const _0x430c9f=_0x4413fe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x430c9f||'customNumbered'==_0x430c9f)continue;_0x3a6884['_findSuggestions'](_0x4413fe['getFirstRange'](),'attribute')['find'](_0x297ee3=>'listType'==_0x3a6884['_getAttributeKey'](_0x297ee3['suggestion']))||(_0x274261['removeMarker'](_0x4413fe['getFirstMarker']()),_0x4f4466=!0x0);}return _0x4f4466;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1447ff){const _0x3260d6=this['editor']['locale'],{data:_0x3c0e9c}=_0x1447ff,_0x4da490={'type':'format','content':''};if(!_0x3c0e9c||'listStyle'!=_0x3c0e9c['key'])return;if(!_0x3c0e9c['oldValue'])return'default'==_0x3c0e9c['newValue']?_0x4da490:{'type':'format','content':''+o(_0x3260d6,'*Set\x20format:*\x20%0',o(_0x3260d6,this['_getTranslationKeyForListStyle'](_0x3c0e9c['newValue'])))};if(!_0x3c0e9c['newValue']){if('default'==_0x3c0e9c['oldValue'])return _0x4da490;let _0x17ba51=_0x1447ff['head'];for(;_0x17ba51;){if(_0x17ba51['data']&&'listType'==_0x17ba51['data']['key']&&_0x17ba51['data']['newValue'])return _0x4da490;_0x17ba51=_0x17ba51['next'];}return{'type':'format','content':''+o(_0x3260d6,'*Remove\x20format:*\x20%0',o(_0x3260d6,this['_getTranslationKeyForListStyle'](_0x3c0e9c['oldValue'])))};}if('default'!=_0x3c0e9c['newValue'])return{'type':'format','content':''+o(_0x3260d6,'*Set\x20format:*\x20%0',o(_0x3260d6,this['_getTranslationKeyForListStyle'](_0x3c0e9c['newValue'])))};let _0x3cbf4f=_0x1447ff['head'];for(;_0x3cbf4f;){if(_0x3cbf4f['data']&&'listType'==_0x3cbf4f['data']['key']&&_0x3cbf4f['data']['newValue']&&_0x3cbf4f['data']['oldValue'])return _0x4da490;_0x3cbf4f=_0x3cbf4f['next'];}return{'type':'format','content':o(_0x3260d6,'*Set\x20format:*\x20%0',o(_0x3260d6,'ELEMENT_'+_0x1447ff['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5aa738=this['editor'],_0x1ab23d=_0x5aa738['locale'];_0x5aa738['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e5b2d=>{if('formatBlock'!=_0x5e5b2d['type'])return;const {data:_0x4e4dc9}=_0x5e5b2d;if(!_0x4e4dc9)return;let _0x3cbe98,_0x10e010;switch(_0x4e4dc9['commandName']){case'listStyle':_0x3cbe98='*Change\x20to:*\x20%0',_0x10e010={'type':'format','content':o(_0x1ab23d,_0x3cbe98,o(_0x1ab23d,this['_getTranslationKeyForListStyle'](_0x4e4dc9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3cbe98=_0x4e4dc9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x10e010={'type':'format','content':o(_0x1ab23d,_0x3cbe98)};break;case'listStart':_0x3cbe98='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x10e010={'type':'format','content':o(_0x1ab23d,_0x3cbe98,_0x4e4dc9['commandParams'][0x0]['startIndex'])};}return _0x10e010;});}['_getTranslationKeyForListStyle'](_0x533701){return'ELEMENT_'+function(_0x4257f5){if(ye['includes'](_0x4257f5))return'bulleted';if(he['includes'](_0x4257f5))return'numbered';return null;}(_0x533701)['toUpperCase']()+'_LIST_'+_0x533701['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],he=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x47a92c{static get['requires'](){return[_0x4f3985];}['init'](){const _0x24135c=this['editor'],_0x2ff49b=_0x24135c['plugins']['get']('TrackChangesEditing'),_0x3b0cce=_0x24135c['commands']['get']('enter');_0x2ff49b['enableCommand']('enter',()=>{_0x24135c['model']['change'](_0x4e8ce1=>{const _0x1e80f9=_0x24135c['model']['document']['selection'],_0x38132a=_0x1e80f9['getFirstPosition'](),_0x275220=_0x92b86c['fromRange'](_0x1e80f9['getFirstRange']());if(_0x3b0cce['enterBlock'](_0x4e8ce1)){const _0x54b976=_0x24135c['model']['createPositionAt'](_0x38132a['parent']['nextSibling'],0x0),_0x395f47=_0x4e8ce1['createRange'](_0x38132a,_0x54b976);_0x2ff49b['markInsertion'](_0x395f47);}else _0x4e8ce1['setSelection'](_0x4e8ce1['createRange'](_0x275220['end']));_0x275220['detach'](),_0x3b0cce['fire']('afterExecute',{'writer':_0x4e8ce1});});}),_0x24135c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x24135c,'split'),{'priority':'high'}),_0x24135c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x42429b,_0x536962,_0x23784a)=>{const _0x95bdd2=_0x23784a['mapper']['markerNameToElements'](_0x536962['markerName']);if(_0x95bdd2){for(const _0x5dc689 of _0x95bdd2)_0x5dc689['hasClass']('ck-suggestion-marker-split')&&(_0x23784a['mapper']['unbindElementFromMarkerName'](_0x5dc689,_0x536962['markerName']),_0x23784a['writer']['remove'](_0x5dc689));}},{'priority':'high'}),_0x24135c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xd6ee35,_0x228138,_0x2a1351)=>{_0x2a1351['options']['showSuggestionHighlights']&&_e(_0x24135c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xd6ee35,_0x228138,_0x2a1351);},{'priority':'high'});}}class J extends _0x47a92c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x48a90c=this['editor']['plugins']['get']('TrackChangesEditing');_0x48a90c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x48a90c['enableCommand']('findNext'),_0x48a90c['enableCommand']('findPrevious'),_0x48a90c['enableCommand']('replace'),_0x48a90c['enableCommand']('replaceAll');}['handleFindCommand'](_0x1d324a,_0x21811d,_0x19d9e1={}){const _0x290f4e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1d324a(_0x297ca8=>{let _0x34bfdc=('string'==typeof _0x21811d?_0x290f4e['findByTextCallback'](_0x21811d,_0x19d9e1):_0x21811d)(_0x297ca8);Array['isArray'](_0x34bfdc)&&(_0x34bfdc={'results':_0x34bfdc,'searchText':'string'==typeof _0x21811d?_0x21811d:''});const _0x5a8edf=_0x34bfdc['results']['filter'](_0x457296=>!0x1===this['_isInDeletionRange'](_0x457296,_0x297ca8['item']));return{..._0x34bfdc,'results':_0x5a8edf};},_0x19d9e1);}['_isInDeletionRange'](_0xbf560a,_0x470bd4){const _0x206208=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x470bd4,_0xbf560a['start']),this['editor']['model']['createPositionAt'](_0x470bd4,_0xbf560a['end']));for(const _0x19909e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x206208['getIntersection'](_0x19909e['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 _0x47a92c{['afterInit'](){const _0x53de56=this['editor']['locale'],_0x547551=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x220a30,commandName:_0x3a9c51}of ro)this['editor']['plugins']['has'](_0x220a30)&&(_0x547551['enableDefaultAttributesIntegration'](_0x3a9c51),_0x547551['registerInlineAttribute'](_0x3a9c51));_0x547551['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x53de56,'FORMAT_FONT_SIZE')),_0x547551['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x53de56,'FORMAT_FONT_FAMILY')),_0x547551['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x53de56,'FORMAT_FONT_COLOR')),_0x547551['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x53de56,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1efefa=this['editor'],_0x57403e=_0x1efefa['locale'];_0x1efefa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39610c=>{const _0xd2da9=_0x57403e['t'];if('formatInline'!=_0x39610c['type'])return;const {data:_0x377fcd}=_0x39610c;if(null!=_0x377fcd){if('fontSize'==_0x377fcd['commandName']){const _0x31515b=_0x377fcd['commandParams'][0x0]['value'];if(_0x31515b){const _0x1fe2c2=_0xd2da9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5cf794=>_0x5cf794['model']==_0x31515b)['title'])['toLowerCase']();return{'type':'format','content':o(_0x57403e,'*Set\x20font\x20size:*\x20%0',_0x1fe2c2)};}return{'type':'format','content':o(_0x57403e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x377fcd['commandName']){const _0x5240ec=_0x377fcd['commandParams'][0x0]['value'];return _0x5240ec?{'type':'format','content':o(_0x57403e,'*Set\x20font\x20family:*\x20%0',_0x5240ec)}:{'type':'format','content':o(_0x57403e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x377fcd['commandName']){const _0x5d93bf=_0x377fcd['commandParams'][0x0]['value'];if(_0x5d93bf){const _0x3647dd=_0x4c82bb(this['editor']['config']['get']('fontColor.colors'))['find'](_0x21bb6b=>_0x21bb6b['model']==_0x5d93bf);let _0x3b7512=_0x5d93bf,_0x315741='';return _0x3647dd&&(_0x3b7512=_0x3647dd['label'],_0x315741=_0xd2da9(_0x3b7512)['toLowerCase']()),{'type':'format','content':o(_0x57403e,'*Set\x20font\x20color:*\x20%0',_0x315741)['trim'](),'color':{'value':_0x5d93bf,'title':_0x315741||_0x3b7512}};}return{'type':'format','content':o(_0x57403e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x377fcd['commandName']){const _0x1c0b31=_0x377fcd['commandParams'][0x0]['value'];if(_0x1c0b31){const _0x2afc0b=_0x4c82bb(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x48e11c=>_0x48e11c['model']==_0x1c0b31);let _0x21456c=_0x1c0b31,_0x4d2004='';return _0x2afc0b&&(_0x21456c=_0x2afc0b['label'],_0x4d2004=_0xd2da9(_0x21456c)['toLowerCase']()),{'type':'format','content':o(_0x57403e,'*Set\x20font\x20background\x20color:*\x20%0',_0x4d2004)['trim'](),'color':{'value':_0x1c0b31,'title':_0x4d2004||_0x21456c}};}return{'type':'format','content':o(_0x57403e,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x47a92c{['afterInit'](){const _0x4b67cf=this['editor'],_0x49466c=_0x4b67cf['plugins']['get']('TrackChangesEditing'),_0xa4e332=_0x4b67cf['commands']['get']('copyFormat'),_0x56dec1=_0x4b67cf['commands']['get']('pasteFormat');_0xa4e332&&_0x56dec1&&(_0x49466c['enableDefaultAttributesIntegration']('pasteFormat'),_0x49466c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x209a1f=this['editor'],_0x5eb63d=_0x209a1f['locale'];_0x209a1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x739abf=>{if('formatBlock'!=_0x739abf['type']&&'formatInline'!=_0x739abf['type'])return;const {data:_0x47bacb}=_0x739abf;if(_0x47bacb&&'pasteFormat'===_0x47bacb['commandName']){const _0x4d2308=[],_0x4a894a=_0x47bacb['commandParams'][0x0];for(const [_0xefd115,_0x454e62]of Object['entries'](_0x4a894a))_0x4d2308['push'](so(_0x209a1f,_0xefd115,_0x454e62));return _0x4d2308['length']?{'type':'format','content':o(_0x5eb63d,'*Set\x20format\x20to:*\x20%0',_0x4d2308['join'](',\x20'))}:{'type':'format','content':o(_0x5eb63d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x575266,_0x287b04,_0x107bd1){const _0x131d32=_0x575266['locale']['t'],_0x3f76e9=_0x287b04['split'](/(?=[A-Z])/)['join']('\x20'),_0x1250c1=_0x131d32(_0x3f76e9['charAt'](0x0)['toUpperCase']()+_0x3f76e9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x107bd1)return _0x1250c1;if('fontColor'===_0x287b04||'fontBackgroundColor'===_0x287b04){const _0x46454f=_0x4c82bb(_0x575266['config']['get']('fontColor.colors'))['find'](_0x1fd9f6=>_0x1fd9f6['model']==_0x107bd1);return _0x1250c1+'\x20('+(_0x46454f?_0x131d32(_0x46454f['label'])['toLowerCase']():_0x107bd1)+')';}if('fontSize'===_0x287b04&&isNaN(parseFloat(_0x107bd1))){const _0x568b08=_0x575266['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x575266['config']['get']('fontSize.options'))['find'](_0x17bd1e=>_0x17bd1e['model']==_0x107bd1);return _0x1250c1+'\x20('+(_0x568b08?_0x131d32(_0x568b08['title'])['toLowerCase']():_0x107bd1)+')';}return _0x1250c1+'\x20('+_0x107bd1+')';}class Y extends _0x47a92c{['_headingOptions'];['afterInit'](){const _0x2d448d=this['editor'];if(!_0x2d448d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2d448d['config']['get']('heading.options');const _0x33de94=_0x2d448d['locale'],_0x343c24=_0x2d448d['plugins']['get']('TrackChangesEditing');_0x343c24['enableDefaultAttributesIntegration']('heading');for(const _0x2668ed of this['_headingOptions'])'paragraph'!=_0x2668ed['model']&&_0x343c24['descriptionFactory']['registerElementLabel'](_0x2668ed['model'],_0x19f3be=>{const _0x13dad0=this['_getHeadingLevel'](_0x2668ed['model']);return null!==_0x13dad0?_0x17c006(_0x19f3be,_0x13dad0):_0xeac37f(_0x19f3be,_0x2668ed['title']);});function _0x17c006(_0x5a8353,_0x2a8904){return o(_0x33de94,'ELEMENT_HEADING',[_0x5a8353,_0x2a8904]);}function _0xeac37f(_0x38b45d,_0x33ac53){return o(_0x33de94,'ELEMENT_HEADING_CUSTOM',[_0x38b45d,_0x33ac53]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c5660=this['editor'],_0x1b4ffd=_0x2c5660['locale'];function _0x383b56(_0x57887b,_0x49b191){return o(_0x1b4ffd,'ELEMENT_HEADING_CUSTOM',[_0x57887b,_0x49b191]);}_0x2c5660['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e0fbf=>{if('formatBlock'!=_0x4e0fbf['type'])return;const {data:_0x42de58}=_0x4e0fbf;if(_0x42de58&&'heading'==_0x42de58['commandName']){const _0x3dcb02=_0x42de58['commandParams'][0x0]['value'],_0x49198e=this['_getHeadingLevel'](_0x3dcb02);if(null!==_0x49198e)return{'type':'format','content':o(_0x1b4ffd,'*Change\x20to:*\x20%0',(_0x5ca737=0x1,_0x53058a=_0x49198e,o(_0x1b4ffd,'ELEMENT_HEADING',[_0x5ca737,_0x53058a])))};const _0x30b6ef=this['_headingOptions']['find'](_0x3fedf2=>_0x3fedf2['model']===_0x3dcb02)['title'];return{'type':'format','content':o(_0x1b4ffd,'*Change\x20to:*\x20%0',_0x383b56(0x1,_0x30b6ef))};}var _0x5ca737,_0x53058a;});}['_getHeadingLevel'](_0x1f6b98){const _0x1dfe7d=_0x1f6b98['match'](/^heading(\d+)/);if(_0x1dfe7d)return _0x1dfe7d[0x1];const _0x49410d=this['_headingOptions']?.['find'](_0x17ed8f=>_0x17ed8f['model']==_0x1f6b98);if(_0x49410d&&_0x49410d['view']){const _0x14aa91=_0x49410d['view'],_0x4c5f86=(_0x14aa91['name']??_0x14aa91)['match'](/^h(\d+)/);if(_0x4c5f86)return _0x4c5f86[0x1];}return null;}}class Z extends _0x47a92c{['afterInit'](){const _0x4f2d9f=this['editor'];if(!_0x4f2d9f['plugins']['has']('HighlightEditing'))return;const _0x4e4b4b=_0x4f2d9f['plugins']['get']('TrackChangesEditing'),_0x224ff2=_0x4f2d9f['locale'];_0x4e4b4b['enableDefaultAttributesIntegration']('highlight'),_0x4e4b4b['registerInlineAttribute']('highlight'),_0x4e4b4b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x224ff2,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x546f7a=this['editor'],_0x1fe383=_0x546f7a['locale'];_0x546f7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37f95a=>{if('formatInline'!=_0x37f95a['type'])return;const {data:_0x45653e}=_0x37f95a;if(_0x45653e&&'highlight'==_0x45653e['commandName']){const _0x2f7355=_0x1fe383['t'],_0x522b9c=_0x45653e['commandParams'][0x0]['value'];if(_0x522b9c){const _0x24e845=_0x546f7a['config']['get']('highlight.options')['find'](_0xa4f34e=>_0xa4f34e['model']==_0x522b9c),_0x5ab4a6=_0x2f7355(_0x24e845['title'])['toLowerCase']();return{'type':'format','content':o(_0x1fe383,'*Set\x20highlight:*\x20%0',_0x5ab4a6),'color':{'value':_0x24e845['color'],'title':_0x24e845['title']}};}return{'type':'format','content':o(_0x1fe383,'*Remove\x20highlight*',o(_0x1fe383,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x47a92c{['afterInit'](){const _0x15e617=this['editor'];if(!_0x15e617['plugins']['has']('HorizontalLineEditing'))return;_0x15e617['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xa3d6ee=_0x15e617['plugins']['get']('TrackChangesEditing'),_0x5f7de0=_0x15e617['locale'];_0xa3d6ee['descriptionFactory']['registerElementLabel']('horizontalLine',_0x256d14=>o(_0x5f7de0,'ELEMENT_HORIZONTAL_LINE',_0x256d14)),_0x15e617['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x155688,{writer:_0x416e36,options:_0x31f7dd})=>{if(!_0x31f7dd['showSuggestionHighlights'])return null;const _0x2d7f75=_0x416e36['createContainerElement']('div'),_0xc8fae=_0x416e36['createEmptyElement']('hr');return _0x416e36['addClass']('ck-horizontal-line',_0x2d7f75),_0x416e36['insert'](_0x416e36['createPositionAt'](_0x2d7f75,0x0),_0xc8fae),_0x2d7f75;},'converterPriority':'high'});}}class et extends _0x47a92c{['afterInit'](){const _0x48db16=this['editor'];if(!_0x48db16['plugins']['has']('HtmlEmbed'))return;const _0xe748cf=_0x48db16['plugins']['get']('TrackChangesEditing'),_0x4f6a0d=_0x48db16['locale'];_0xe748cf['descriptionFactory']['registerElementLabel']('rawHtml',_0x20149a=>o(_0x4f6a0d,'ELEMENT_HTML_EMBED',_0x20149a)),_0xe748cf['enableDefaultAttributesIntegration']('htmlEmbed'),_0xe748cf['registerBlockAttribute']('value'),_0xe748cf['descriptionFactory']['registerDescriptionCallback'](_0x37e95c=>{if('attribute'!=_0x37e95c['type'])return;const {data:_0x7af549}=_0x37e95c;if(_0x7af549&&'value'==_0x7af549['key']&&_0x37e95c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x15ce0f=o(_0x4f6a0d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4f6a0d,'*Change\x20%0\x20content*',_0x15ce0f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcc72ed=this['editor'],_0x2d26dc=_0xcc72ed['locale'];_0xcc72ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9045f4=>{if('formatBlock'!=_0x9045f4['type'])return;const {data:_0x4dff44}=_0x9045f4;if(_0x4dff44&&'htmlEmbed'==_0x4dff44['commandName']){const _0x24f39f=o(_0x2d26dc,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2d26dc,'*Change\x20%0\x20content*',_0x24f39f)};}});}}class it extends _0x47a92c{['afterInit'](){const _0x1535f9=this['editor'];if(!_0x1535f9['plugins']['has']('ImageEditing'))return;const _0x44df32=_0x1535f9['plugins']['get']('TrackChangesEditing'),_0x5d8ec9=_0x1535f9['plugins']['get']('ImageUtils'),_0x3b2ea8=_0x1535f9['locale'];_0x44df32['enableCommand']('insertImage'),_0x44df32['descriptionFactory']['registerElementLabel']('imageBlock',_0x419185=>o(_0x3b2ea8,'ELEMENT_IMAGE',_0x419185)),_0x44df32['descriptionFactory']['registerElementLabel']('imageInline',_0x506696=>o(_0x3b2ea8,'ELEMENT_INLINE_IMAGE',_0x506696)),_0x44df32['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3b2ea8,'ELEMENT_CAPTION')),_0x1535f9['plugins']['has']('ImageUploadEditing')&&_0x44df32['enableCommand']('uploadImage'),_0x1535f9['plugins']['has']('ImageBlockEditing')&&_0x1535f9['plugins']['has']('ImageInlineEditing')&&(_0x44df32['enableCommand']('imageTypeInline',(_0x4ef4d,_0x3af6f3)=>{const _0x138e88=_0x5d8ec9['getClosestSelectedImageElement'](_0x1535f9['model']['document']['selection']);_0x1535f9['model']['change'](()=>{_0x44df32['markBlockFormat'](_0x138e88,{'commandName':'imageTypeInline','commandParams':[_0x3af6f3]},[],'convertBlockImageToInline');});}),_0x44df32['enableCommand']('imageTypeBlock',(_0x3fdf05,_0x36d9ae)=>{_0x1535f9['model']['change'](_0x3e4d1f=>{let _0x3cafa7=_0x5d8ec9['getClosestSelectedImageElement'](_0x1535f9['model']['document']['selection']),_0x4a04f1=_0x3e4d1f['createRangeOn'](_0x3cafa7);const _0x4792c6=_0x564973['fromPosition'](_0x4a04f1['start'],'toPrevious'),_0x2a92a4=_0x564973['fromPosition'](_0x4a04f1['end'],'toNext');_0x44df32['forceDefaultExecution'](()=>_0x3fdf05(_0x36d9ae)),_0x3cafa7=_0x5d8ec9['getClosestSelectedImageElement'](_0x1535f9['model']['document']['selection']),_0x4a04f1=_0x3e4d1f['createRangeOn'](_0x3cafa7);const _0x547b7f=_0x3e4d1f['createRange'](_0x4792c6,_0x2a92a4);_0x4792c6['detach'](),_0x2a92a4['detach'](),_0x44df32['markBlockFormat'](_0x3cafa7,{'commandName':'imageTypeInline','commandParams':[_0x36d9ae]},[],'convertInlineImageToBlock'),_0x547b7f['start']['isBefore'](_0x4a04f1['start'])&&_0x44df32['markInsertion'](_0x3e4d1f['createRange'](_0x547b7f['start'],_0x4a04f1['start']),'convertInlineImageToBlock'),_0x4a04f1['end']['isBefore'](_0x547b7f['end'])&&_0x44df32['markInsertion'](_0x3e4d1f['createRange'](_0x4a04f1['end'],_0x547b7f['end']),'convertInlineImageToBlock');});}),_0x44df32['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x44df32['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x44df32['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x44df32['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x44df32['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x44df32['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2278ee])=>{const _0x5c3b3f=_0x44df32['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1ef240=_0x2278ee['start'],_0x3e3f2b=_0x2278ee['end'];const _0x440da5=_0x1535f9['model']['schema']['getNearestSelectionRange'](_0x1ef240,'backward'),_0x48852d=_0x1535f9['model']['schema']['getNearestSelectionRange'](_0x3e3f2b,'forward');_0x440da5['isCollapsed']&&(_0x1ef240=_0x440da5['start']),_0x48852d['isCollapsed']&&(_0x3e3f2b=_0x48852d['end']),_0x5c3b3f([_0x1535f9['model']['createRange'](_0x1ef240,_0x3e3f2b)]);}),_0x44df32['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1a5cfe),_0x44df32['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1a5cfe)),_0x1535f9['plugins']['has']('ImageCaptionEditing')&&(_0x44df32['enableCommand']('toggleImageCaption',(_0x77bb6d,_0x50de55)=>{const _0x41915e=_0x1535f9['plugins']['get']('ImageCaptionUtils');let _0x433037=_0x5d8ec9['getClosestSelectedImageElement'](_0x1535f9['model']['document']['selection']),_0x4ae566=_0x41915e['getCaptionFromImageModelElement'](_0x433037);_0x1535f9['model']['change'](()=>{if(_0x4ae566)return void _0x44df32['markDeletion'](_0x1535f9['model']['createRangeOn'](_0x4ae566));const _0x283280=_0x5d8ec9['isBlockImage'](_0x433037);_0x77bb6d(_0x50de55),_0x433037=_0x5d8ec9['getClosestSelectedImageElement'](_0x1535f9['model']['document']['selection']),_0x4ae566=_0x41915e['getCaptionFromImageModelElement'](_0x433037),_0x44df32['markInsertion'](_0x1535f9['model']['createRangeOn'](_0x4ae566),_0x283280?null:'imageCaption');});}),_0x44df32['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1a5cfe));const _0x383e28=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2dfd06(_0x44733a,_0x4c259e){const _0x204a3b=_0x383e28['findIndex'](({type:_0x2e0872,subType:_0x61aef7})=>_0x44733a['type']==_0x2e0872&&_0x44733a['subType']==_0x61aef7),_0x245ca0=_0x383e28['findIndex'](({type:_0x5e7cac,subType:_0x452738})=>_0x4c259e['type']==_0x5e7cac&&_0x4c259e['subType']==_0x452738);if(_0x204a3b<0x0||_0x245ca0<0x0)return!0x1;const _0x513299=_0x44733a['getFirstRange'](),_0x2ec875=_0x4c259e['getFirstRange']();if((0x0==_0x204a3b||0x1==_0x204a3b)&&0x2==_0x245ca0&&_0x513299['isIntersecting'](_0x2ec875))return!0x0;if(0x2==_0x204a3b&&0x3==_0x245ca0){const _0x559d3c=_0x44df32['_findSuggestions'](_0x513299,'insertion')['filter'](({suggestion:_0x13af4f,meta:_0x95e218})=>_0x95e218['isOwn']&&'convertInlineImageToBlock'==_0x13af4f['subType']);if(_0x559d3c['length']>0x1&&_0x2ec875['end']['isEqual'](_0x513299['start']))return!0x0;if(0x1==_0x559d3c['length']&&(_0x513299['start']['isEqual'](_0x2ec875['end'])||_0x513299['end']['isEqual'](_0x2ec875['start'])))return!0x0;}if(0x3==_0x204a3b&&0x3==_0x245ca0&&_0x513299['start']['isBefore'](_0x2ec875['start'])){const _0x367664=_0x513299['end']['nodeAfter'],_0x29470d=_0x2ec875['start']['nodeBefore'];return _0x5d8ec9['isBlockImage'](_0x367664)&&_0x367664===_0x29470d;}return!0x1;}function _0x1a5cfe(_0x2bab6b,_0x5b9e7c){return _0x2dfd06(_0x2bab6b,_0x5b9e7c)?[_0x2bab6b,_0x5b9e7c]:_0x2dfd06(_0x5b9e7c,_0x2bab6b)?[_0x5b9e7c,_0x2bab6b]:null;}_0x1535f9['plugins']['has']('ImageResize')&&(_0x44df32['enableDefaultAttributesIntegration']('resizeImage'),_0x44df32['registerBlockAttribute']('resizedWidth'),_0x44df32['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3b2ea8,'FORMAT_IMAGE_SIZE'))),_0x1535f9['plugins']['has']('ImageTextAlternativeEditing')&&(_0x44df32['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x44df32['registerBlockAttribute']('alt')),_0x44df32['descriptionFactory']['registerDescriptionCallback'](_0x225e09=>{if(!!_0x383e28['find'](({type:_0xfd4151,subType:_0x11c602})=>_0x225e09['type']==_0xfd4151&&_0x225e09['subType']==_0x11c602))return _0x225e09['previous']?{}:void 0x0;}),_0x44df32['descriptionFactory']['registerDescriptionCallback'](_0x2c1a10=>{if('insertion'==_0x2c1a10['type']||'deletion'==_0x2c1a10['type']){const _0x38584d=_0x2c1a10['getContainedElement']();if(_0x38584d&&_0x38584d['is']('element','caption'))return{'type':'insertion'==_0x2c1a10['type']?'addObject':'removeObject','element':_0x38584d,'quantity':0x1};}}),_0x44df32['descriptionFactory']['registerDescriptionCallback'](_0x1b8e7e=>'formatBlock'==_0x1b8e7e['type']&&'convertInlineImageToBlock'==_0x1b8e7e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1b8e7e['type']&&'convertBlockImageToInline'==_0x1b8e7e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x44df32['descriptionFactory']['registerDescriptionCallback'](_0xb5fdac=>{if('attribute'!=_0xb5fdac['type'])return;const {data:_0x381327}=_0xb5fdac;if(!_0x381327||'alt'!=_0x381327['key'])return;const _0x4b0379=_0x381327['newValue'];return _0x4b0379?{'type':'format','content':o(_0x3b2ea8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4b0379+'\x22')}:{'type':'format','content':o(_0x3b2ea8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x306cf3=this['editor'],_0x20266b=_0x306cf3['locale'];_0x306cf3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2787de=>{if('formatBlock'!=_0x2787de['type']&&'formatInline'!=_0x2787de['type'])return;const {data:_0x2c397e}=_0x2787de;if(_0x2c397e){if('imageTextAlternative'==_0x2c397e['commandName']){const _0x4ea104=_0x2c397e['commandParams'][0x0]['newValue'];return _0x4ea104?{'type':'format','content':o(_0x20266b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4ea104+'\x22')}:{'type':'format','content':o(_0x20266b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2c397e['commandName']){const _0x49bf29=_0x2c397e['commandParams'][0x0]['width'];return _0x49bf29?{'type':'format','content':o(_0x20266b,'*Set\x20image\x20width:*\x20%0',_0x49bf29)}:{'type':'format','content':o(_0x20266b,'*Reset\x20image\x20width*')};}}});}}class st extends _0x47a92c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x312ba1=this['editor']['locale'],_0x4ae6cc=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ae6cc['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4ae6cc['registerBlockAttribute']('src'),_0x4ae6cc['descriptionFactory']['registerDescriptionCallback'](_0xb7b0b4=>{if('attribute'!=_0xb7b0b4['type'])return;const {data:_0x48eac2}=_0xb7b0b4;return _0x48eac2&&'src'==_0x48eac2['key']?_0x48eac2['newValue']&&_0x48eac2['oldValue']?{'type':'format','content':o(_0x312ba1,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2cfd25=this['editor']['plugins']['get']('TrackChangesEditing');_0x2cfd25['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2cfd25['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2cfd25['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2cfd25['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c7447=this['editor'],_0x194501=_0x5c7447['locale'];_0x5c7447['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ed962=>{if('formatBlock'!=_0x2ed962['type']&&'formatInline'!=_0x2ed962['type'])return;const {data:_0x40f27c}=_0x2ed962;if(!_0x40f27c||'replaceImageSource'!=_0x40f27c['commandName'])return;return{'type':'format','content':o(_0x194501,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x47a92c{['afterInit'](){const _0x23b95a=this['editor'];if(!_0x23b95a['plugins']['has']('ImageStyleEditing'))return;const _0x209ad6=_0x23b95a['plugins']['get']('TrackChangesEditing'),_0x2630b4=_0x23b95a['plugins']['get']('ImageUtils'),_0x176b48={};_0x209ad6['enableCommand']('imageStyle',(_0x3c59f6,_0x3f22d1)=>{const _0xc14b6e=_0x23b95a['plugins']['get']('Users')['me'],_0x31f1d8=_0x23b95a['commands']['get']('imageStyle');let _0x41289a=_0x2630b4['getClosestSelectedImageElement'](_0x23b95a['model']['document']['selection']),_0x377fc6=_0x23b95a['model']['createRangeOn'](_0x41289a),_0x467aeb=_0x31f1d8['value'];if(_0x467aeb==_0x3f22d1['value'])return;const _0x1d9c50={'commandName':'imageStyle','commandParams':[_0x3f22d1],'formatGroupId':_0x1e7cf0()};_0x23b95a['model']['change'](()=>{if(_0x209ad6['getSuggestions']()['filter'](_0x2170aa=>_0x2170aa['isInContent']&&_0xc14b6e==_0x2170aa['author']&&('formatBlock'==_0x2170aa['type']||'formatInline'==_0x2170aa['type'])&&('imageStylePreApply'==_0x2170aa['subType']||'imageStylePostApply'==_0x2170aa['subType'])&&_0x2170aa['getFirstRange']()['isEqual'](_0x377fc6))['forEach'](_0x3181c0=>_0x209ad6['discardSuggestion'](_0x3181c0['head'])),_0x41289a=_0x2630b4['getClosestSelectedImageElement'](_0x23b95a['model']['document']['selection']),_0x377fc6=_0x23b95a['model']['createRangeOn'](_0x41289a),_0x31f1d8['refresh'](),_0x23b95a['commands']['get']('imageTypeInline')['refresh'](),_0x23b95a['commands']['get']('imageTypeBlock')['refresh'](),_0x467aeb=_0x31f1d8['value'],_0x467aeb!=_0x3f22d1['value'])return _0x2630b4['isInlineImage'](_0x41289a)&&_0x31f1d8['shouldConvertImageType'](_0x3f22d1['value'],_0x41289a)?(_0x3c59f6({..._0x3f22d1,'setImageSizes':!0x1}),_0x41289a=_0x2630b4['getClosestSelectedImageElement'](_0x23b95a['model']['document']['selection']),void _0x209ad6['markBlockFormat'](_0x41289a,{..._0x1d9c50,'commandReversedParams':[{'value':_0x467aeb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2630b4['isBlockImage'](_0x41289a)?_0x209ad6['markBlockFormat'](_0x41289a,_0x1d9c50,[],'imageStylePostApply'):_0x209ad6['markInlineFormat'](_0x377fc6,_0x1d9c50,'imageStylePostApply'));});});for(const _0x12f6b1 of _0x23b95a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x176b48[_0x12f6b1['name']]=_0x12f6b1['title']['toLowerCase']();_0x209ad6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x209ad6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x209ad6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x209ad6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x448232])=>{_0x2630b4['setImageNaturalSizeAttributes'](_0x448232['getContainedElement']());}),_0x209ad6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4ddc88,_0x4dd225)=>{_0x209ad6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4ddc88,{'commandName':_0x4dd225['commandName'],'commandParams':_0x4dd225['commandReversedParams']});}),_0x209ad6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x58e966,_0x2e88c0){if(_0x54dabd(_0x58e966,_0x2e88c0))return[_0x58e966,_0x2e88c0];if(_0x54dabd(_0x2e88c0,_0x58e966))return[_0x2e88c0,_0x58e966];return null;});const _0x4ac9dd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x54dabd(_0x26b61b,_0x4e106e){const _0x336013=_0x4ac9dd['findIndex'](({type:_0x50a54b,subType:_0x27da2a})=>_0x26b61b['type']==_0x50a54b&&_0x26b61b['subType']==_0x27da2a),_0x49acd0=_0x4ac9dd['findIndex'](({type:_0x291022,subType:_0x42019c})=>_0x4e106e['type']==_0x291022&&_0x4e106e['subType']==_0x42019c);if(_0x336013<0x0||_0x49acd0<0x0)return!0x1;const _0x16e6b6=_0x26b61b['getFirstRange'](),_0x3a8598=_0x4e106e['getFirstRange']();if((0x0==_0x336013||0x1==_0x336013)&&0x2==_0x49acd0&&_0x16e6b6['isIntersecting'](_0x3a8598))return!0x0;if(0x2==_0x336013&&0x3==_0x49acd0){const _0x5e5ebd=_0x209ad6['_findSuggestions'](_0x16e6b6,'insertion')['filter'](({suggestion:_0x8bfb3d,meta:_0x387f09})=>_0x387f09['isOwn']&&'convertInlineImageToBlock'==_0x8bfb3d['subType']);if(_0x5e5ebd['length']>0x1&&_0x3a8598['end']['isEqual'](_0x16e6b6['start']))return!0x0;if(0x1==_0x5e5ebd['length']&&(_0x16e6b6['start']['isEqual'](_0x3a8598['end'])||_0x16e6b6['end']['isEqual'](_0x3a8598['start'])))return!0x0;}if(0x3==_0x336013&&0x3==_0x49acd0&&_0x16e6b6['start']['isBefore'](_0x3a8598['start'])){const _0x3963d0=_0x16e6b6['end']['nodeAfter'],_0x36abe8=_0x3a8598['start']['nodeBefore'];return _0x2630b4['isBlockImage'](_0x3963d0)&&_0x3963d0===_0x36abe8;}return!0x1;}_0x23b95a['model']['document']['registerPostFixer'](()=>{let _0x5911b3=!0x1;const _0x47f3c8=Array['from'](_0x23b95a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc19363,data:_0x313e37}of _0x47f3c8){const {group:_0x4407fe,type:_0x26d211,subType:_0x13f7ae,id:_0x403eb3}=_0x209ad6['_splitMarkerName'](_0xc19363);if('suggestion'==_0x4407fe&&_0x209ad6['hasSuggestion'](_0x403eb3)){if('formatBlock'==_0x26d211&&('imageStylePreApply'==_0x13f7ae||'imageStylePostApply'==_0x13f7ae)){const _0x367317=_0x209ad6['getSuggestion'](_0x403eb3);if(_0x313e37['newRange']){const _0x1ddb30=_0x367317['getFirstRange']()['getContainedElement']();if(_0x2630b4['isBlockImage'](_0x1ddb30))continue;_0x209ad6['discardSuggestion'](_0x367317),_0x5911b3=!0x0;}}if('insertion'==_0x26d211&&'imageCaption'==_0x13f7ae&&!_0x313e37['newRange']){const _0x5ee05e=_0x209ad6['getSuggestion'](_0x403eb3);_0x5ee05e['next']&&_0x5ee05e['next']['isInContent']&&(_0x209ad6['discardSuggestion'](_0x5ee05e['next']),_0x5911b3=!0x0);}}}return _0x5911b3;}),this['_registerLegacyDescription'](_0x176b48);}['_registerLegacyDescription'](_0x4679e0){const _0x4f6069=this['editor'],_0x15303f=_0x4f6069['locale'];_0x4f6069['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39deb7=>{if('formatBlock'!=_0x39deb7['type']&&'formatInline'!=_0x39deb7['type'])return;const {data:_0xedf971}=_0x39deb7;if(!_0xedf971||'imageStyle'!=_0xedf971['commandName'])return;const _0x84f548=_0xedf971['commandParams'][0x0]['value'];return _0x453bc7('side'===_0x84f548?o(_0x15303f,'FORMAT_SIDE_IMAGE'):_0x4679e0[_0x84f548]||_0x84f548);function _0x453bc7(_0x39dff5){return{'type':'format','content':o(_0x15303f,'*Format:*\x20%0',_0x39dff5)};}});}}class ot extends _0x47a92c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x379d75){super(_0x379d75),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x9d57f7=this['editor'],_0x2c14f4=_0x9d57f7['commands']['get']('importWord'),_0x9a52e0=_0x9d57f7['commands']['get']('trackChanges');_0x2c14f4&&(_0x2c14f4['on']('execute',(_0x77a4fa,[,_0x578b9e])=>{this['_trackChangesValueDuringImport']=_0x9a52e0['value'],_0x578b9e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2c14f4,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2c14f4,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x9a52e0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x9d57f7['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x95755b,_0x10c0ee){const {suggestions:_0x2ee2ad}=_0x10c0ee,_0x9ad9d1=this['editor']['commands']['get']('trackChanges'),_0x2e35c2=_0x9ad9d1['value'];this['_trackChangesValueDuringImport']!==_0x2e35c2&&(_0x9ad9d1['execute'](),this['_trackChangesExecuted']=!0x0),_0x2ee2ad&&_0x2ee2ad['forEach'](({id:_0x6c6180,type:_0x3edd46,author:_0x5a5650,created_at:_0x144c1b})=>{const _0x222c40={'id':_0x6c6180,'type':_0x3edd46,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5a5650,'createdAt':_0x144c1b?new Date(_0x144c1b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x222c40);});}}class rt extends _0x47a92c{['afterInit'](){const _0x33a7c0=this['editor'],_0x1dd559=_0x33a7c0['plugins']['get']('TrackChangesEditing');if(_0x33a7c0['plugins']['has']('IndentEditing')&&(_0x1dd559['enableCommand']('indent'),_0x1dd559['enableCommand']('outdent')),_0x33a7c0['plugins']['has']('IndentBlock')){for(const _0x17d603 of['indentBlock','outdentBlock'])_0x1dd559['enableDefaultAttributesIntegration'](_0x17d603);}const _0x2789f9=_0x33a7c0['locale'];_0x1dd559['registerBlockAttribute']('blockIndent'),_0x1dd559['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2789f9,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36cffb=this['editor'],_0x1994d5=_0x36cffb['locale'],_0x1b53ac=_0x36cffb['plugins']['get']('TrackChangesEditing');_0x1b53ac['descriptionFactory']['registerDescriptionCallback'](_0x2a9ff7=>{if('formatBlock'!=_0x2a9ff7['type'])return;const {data:_0x1abf5c}=_0x2a9ff7;if(!_0x1abf5c)return;if('indentBlock'!=_0x1abf5c['commandName']&&'outdentBlock'!=_0x1abf5c['commandName'])return;const _0x3e6786=_0x2a9ff7['getItems']()[0x0],_0x5051a8=_0x1b53ac['descriptionFactory']['getItemLabel'](_0x3e6786);return'indentBlock'==_0x1abf5c['commandName']?{'type':'format','content':o(_0x1994d5,'*Indent:*\x20%0',_0x5051a8)}:'outdentBlock'==_0x1abf5c['commandName']?{'type':'format','content':o(_0x1994d5,'*Outdent:*\x20%0',_0x5051a8)}:void 0x0;});}}class at extends _0x47a92c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x47a92c{['afterInit'](){const _0x47ee5b=this['editor'];if(!_0x47ee5b['plugins']['has']('LinkEditing'))return;const _0x288169=_0x47ee5b['plugins']['get']('TrackChangesEditing'),_0x26694d=_0x47ee5b['commands']['get']('link');_0x288169['enableDefaultAttributesIntegration']('link'),_0x288169['enableDefaultAttributesIntegration']('unlink'),_0x288169['registerInlineAttribute']('linkHref');for(const _0x19adaa of _0x26694d['manualDecorators'])_0x288169['registerInlineAttribute'](_0x19adaa['id']),_0x288169['descriptionFactory']['registerAttributeLabel'](_0x19adaa['id'],'link\x20('+_0x19adaa['label']['toLowerCase']()+')');_0x288169['descriptionFactory']['registerDescriptionCallback'](_0x5f59b0=>{if('attribute'!=_0x5f59b0['type'])return;const {data:_0x1a85f0}=_0x5f59b0;if(!_0x1a85f0||'linkHref'!=_0x1a85f0['key'])return;const _0x1a622b=_0x1a85f0['newValue'],_0x198bd6=_0x47ee5b['locale'];return{'type':'format','content':null==_0x1a622b?o(_0x198bd6,'*Remove\x20link*'):o(_0x198bd6,'*Set\x20link:*\x20%0','\x22'+_0x1a622b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x813757=this['editor'],_0x4b6075=_0x813757['locale'];_0x813757['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x430eeb=>{if('formatInline'!=_0x430eeb['type'])return;const {data:_0x32e063}=_0x430eeb;if(_0x32e063){if('link'==_0x32e063['commandName']){const _0x368a77=_0x32e063['commandParams'][0x0];return{'type':'format','content':o(_0x4b6075,'*Set\x20link:*\x20%0','\x22'+_0x368a77+'\x22')};}return'unlink'==_0x32e063['commandName']?{'type':'format','content':o(_0x4b6075,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x47a92c{['afterInit'](){const _0x2a033c=this['editor'],_0x161781=_0x2a033c['locale'];if(!_0x2a033c['plugins']['has']('LegacyListEditing'))return;const _0x5ba494=_0x2a033c['plugins']['get']('TrackChangesEditing'),_0x333b54=_0x2a033c['plugins']['has']('LegacyTodoListEditing');function _0x88be25(_0x16341e){return()=>{const _0x386342=_0x2a033c['model']['document']['selection'],_0x2f0630=_0x2a033c['commands']['get'](_0x16341e);if(_0x2f0630['value'])return void _0x2a033c['execute']('paragraph',{});const _0x4d89c2=_0x16341e['slice'](0x0,-0x4),_0x146648=function(_0x46795c,_0x28edb3,_0x15c146){let _0x3abcff=Array['from'](_0x46795c)['filter'](_0x4b5307=>function(_0x114524,_0x36f143){return _0x36f143['checkChild'](_0x114524['parent'],'listItem')&&!_0x36f143['isObject'](_0x114524);}(_0x4b5307,_0x15c146));_0x3abcff=_0x3abcff['filter'](_0xd84156=>!_0xd84156['is']('element','listItem')||_0xd84156['getAttribute']('listType')!=_0x28edb3);const _0x454483=new Set();for(const _0x55b476 of _0x3abcff)_0x55b476['is']('element','listItem')?_0x454483['add'](fe(_0x55b476)):_0x454483['add'](_0x55b476);return Array['from'](_0x454483);}(_0x386342['getSelectedBlocks'](),_0x4d89c2,_0x2a033c['model']['schema']);_0x2a033c['model']['change'](()=>{for(const _0x570345 of _0x146648)_0x5ba494['markBlockFormat'](_0x570345,{'commandName':_0x16341e,'commandParams':[{'forceValue':!_0x2f0630['value']}],'formatGroupId':'blockName'},ue(_0x570345));});};}function _0x16f91f(_0x1f9d4b){return()=>{const _0x47871c=function(_0x390887){let _0x3f6312=Array['from'](_0x390887);const _0x464aac=_0x3f6312['findIndex'](_0x5c3c01=>'listItem'!=_0x5c3c01['name']);return _0x464aac>-0x1&&(_0x3f6312=_0x3f6312['slice'](0x0,_0x464aac)),_0x3f6312;}(_0x2a033c['model']['document']['selection']['getSelectedBlocks']()),_0x56498a=_0x2a033c['model']['createRange'](_0x2a033c['model']['createPositionAt'](_0x47871c[0x0],'before'),_0x2a033c['model']['createPositionAt'](_0x47871c[_0x47871c['length']-0x1],'end'));_0x2a033c['model']['change'](()=>{_0x5ba494['markBlockFormat'](_0x56498a,{'commandName':_0x1f9d4b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1c1514){const _0x25fc34=new Set();for(const _0x419f5a of _0x1c1514){let _0x16bacf=_0x419f5a['nextSibling'];for(;_0x16bacf&&_0x16bacf['getAttribute']('listIndent')>_0x419f5a['getAttribute']('listIndent');)_0x25fc34['add'](_0x16bacf),_0x16bacf=_0x16bacf['nextSibling'];}return Array['from'](_0x25fc34);}(_0x47871c));});};}_0x5ba494['enableCommand']('numberedList',_0x88be25('numberedList')),_0x5ba494['enableCommand']('bulletedList',_0x88be25('bulletedList')),_0x333b54&&_0x5ba494['enableCommand']('todoList',_0x88be25('todoList')),_0x5ba494['enableCommand']('indentList',_0x16f91f('indentList')),_0x5ba494['enableCommand']('outdentList',_0x16f91f('outdentList')),_0x333b54&&_0x5ba494['enableCommand']('checkTodoList',()=>{const _0x17e776=_0x2a033c['commands']['get']('checkTodoList'),_0x470740=Array['from'](_0x17e776['_selectedElements']);_0x470740['filter'](_0x5eaebc=>_0x5eaebc['getAttribute']('todoListChecked')!=_0x17e776['value']),_0x2a033c['model']['change'](()=>{for(const _0x324fcc of _0x470740)_0x5ba494['markBlockFormat'](_0x324fcc,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x17e776['value']}]});});}),_0x5ba494['descriptionFactory']['registerElementLabel']('listItem',_0x1ae314=>o(_0x161781,'ELEMENT_LIST_ITEM',_0x1ae314)),_0x5ba494['descriptionFactory']['registerDescriptionCallback'](_0x50bb91=>{if('formatBlock'!=_0x50bb91['type']&&'formatInline'!=_0x50bb91['type'])return;const {data:_0x3f2572}=_0x50bb91;if(_0x3f2572){if('numberedList'==_0x3f2572['commandName']||'bulletedList'==_0x3f2572['commandName']||'todoList'==_0x3f2572['commandName'])switch(_0x3f2572['commandName']['replace']('List','')){case'bulleted':return _0x44a72c(o(_0x161781,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x44a72c(o(_0x161781,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x44a72c(o(_0x161781,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3f2572['commandName'])return{'type':'format','content':o(_0x161781,'*Indent:*\x20%0',o(_0x161781,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3f2572['commandName'])return{'type':'format','content':o(_0x161781,'*Outdent:*\x20%0',o(_0x161781,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3f2572['commandName'])return _0x3f2572['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x161781,'*Check\x20item*')}:{'type':'format','content':o(_0x161781,'*Uncheck\x20item*')};}function _0x44a72c(_0x473f56){return{'type':'format','content':o(_0x161781,'*Change\x20to:*\x20%0',_0x473f56)};}});}}function fe(_0x3c8785){const _0x12df30=_0x3c8785['getAttribute']('listIndent');if(0x0==_0x12df30)return _0x3c8785;let _0x289ba4=_0x3c8785;for(;_0x3c8785['previousSibling']&&_0x3c8785['previousSibling']['is']('element','listItem');){const _0x533ccc=_0x3c8785['previousSibling']['getAttribute']('listIndent');if(_0x533ccc==_0x12df30)_0x289ba4=_0x3c8785['previousSibling'];else{if(_0x533ccc<_0x12df30)break;}_0x3c8785=_0x3c8785['previousSibling'];}return _0x289ba4;}function ue(_0x2d5b92){const _0x3bca75=[];if(_0x2d5b92['is']('element','listItem')&&_0x2d5b92['getAttribute']('listIndent')>0x0){let _0x34350b=_0x2d5b92['nextSibling'];for(;_0x34350b&&'listItem'==_0x34350b['name']&&_0x34350b['getAttribute']('listIndent')==_0x2d5b92['getAttribute']('listIndent');)_0x3bca75['push'](_0x34350b),_0x34350b=_0x34350b['nextSibling'];}return _0x3bca75;}class K extends _0x47a92c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x33148f=this['editor']['config']['get']('list.properties'),_0x476185=this['editor']['plugins']['get']('TrackChangesEditing');_0x33148f['styles']&&_0x476185['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x33148f['reversed']&&_0x476185['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x33148f['startIndex']&&_0x476185['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x476185['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x8e5af9,_0x61e305={}){const _0xd6fd7d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29f30a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xd6fd7d['markMultiRangeBlockFormat'](_0x29f30a,{'commandName':'listStyle','commandParams':[{'type':_0x61e305['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x441d75,_0xd791cd={}){const _0x12948d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x454cb2=this['_getSuggestionBlocks'](_0x26a016=>_0x26a016['is']('element','listItem')&&'numbered'===_0x26a016['getAttribute']('listType'));if(_0x454cb2['length']<0x1)return;const _0xa8953f=_0x454cb2['map'](_0x388d1c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x388d1c,'before'),this['editor']['model']['createPositionAt'](_0x388d1c,0x0)));this['editor']['model']['change'](()=>{_0x12948d['markMultiRangeBlockFormat'](_0xa8953f,{'commandName':'listReversed','commandParams':[{'reversed':_0xd791cd['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4f6265,_0x1d8fe0={}){const _0x38665c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52dd63=this['_getSuggestionBlocks'](_0xd85761=>_0xd85761['is']('element','listItem')&&'numbered'===_0xd85761['getAttribute']('listType'));if(_0x52dd63['length']<0x1)return;const _0x35c865=_0x52dd63['map'](_0x3a7739=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a7739,'before'),this['editor']['model']['createPositionAt'](_0x3a7739,0x0)));this['editor']['model']['change'](()=>{_0x38665c['markMultiRangeBlockFormat'](_0x35c865,{'commandName':'listStart','commandParams':[{'startIndex':_0x1d8fe0['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xe28184){if('formatBlock'!=_0xe28184['type']&&'formatInline'!=_0xe28184['type'])return;const _0x1bc436=this['editor']['locale'],{data:_0x2aa4a3}=_0xe28184;if(!_0x2aa4a3)return;let _0xac5f39,_0x40d988;switch(_0x2aa4a3['commandName']){case'listStyle':_0xac5f39='*Change\x20to:*\x20%0',_0x40d988={'type':'format','content':o(_0x1bc436,_0xac5f39,o(_0x1bc436,this['_getTranslationKeyForListStyle'](_0x2aa4a3['commandParams'][0x0]['type'])))};break;case'listReversed':_0xac5f39=_0x2aa4a3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x40d988={'type':'format','content':o(_0x1bc436,_0xac5f39)};break;case'listStart':_0xac5f39='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40d988={'type':'format','content':o(_0x1bc436,_0xac5f39,_0x2aa4a3['commandParams'][0x0]['startIndex'])};}return _0x40d988;}['_getSuggestionBlocksForListStyle'](){const _0x56d183=this['editor']['plugins']['get']('LegacyListUtils');let _0xbccfcf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xbccfcf[0x0]?.['is']('element','listItem')&&_0xbccfcf['unshift'](..._0x56d183['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xbccfcf[_0xbccfcf['length']-0x1]?.['is']('element','listItem')&&_0xbccfcf['push'](..._0x56d183['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xbccfcf=[...new Set(_0xbccfcf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xbccfcf=_0xbccfcf['filter'](_0x57d687=>_0x57d687['is']('element','listItem'))),_0xbccfcf;}['_getSuggestionBlocks'](_0x326767){const _0x2999f1=this['editor']['plugins']['get']('LegacyListUtils');let _0x451f52=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x326767)['map'](_0x4e0dc5=>{const _0x2f3b37=this['editor']['model']['createPositionAt'](_0x4e0dc5,0x0);return[..._0x2999f1['getSiblingNodes'](_0x2f3b37,'backward'),..._0x2999f1['getSiblingNodes'](_0x2f3b37,'forward')];})['flat']();return _0x451f52=[...new Set(_0x451f52)],_0x451f52;}['_getTranslationKeyForListStyle'](_0x196e68){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x196e68)||'default')['toUpperCase']()+'_LIST_'+_0x196e68['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x47a92c{['afterInit'](){const _0x2268d6=this['editor'];if(!_0x2268d6['plugins']['has']('MediaEmbedEditing'))return;const _0x45dd07=_0x2268d6['plugins']['get']('TrackChangesEditing'),_0x5b34bf=_0x2268d6['locale'];_0x45dd07['enableCommand']('mediaEmbed'),_0x45dd07['descriptionFactory']['registerElementLabel']('media',_0x2135f6=>o(_0x5b34bf,'ELEMENT_MEDIA',_0x2135f6)),_0x2268d6['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xec0f69,{writer:_0x4f2046,options:_0x5382d3})=>{if(_0x5382d3['showSuggestionHighlights'])return _0x4f2046['createEmptyElement']('div');},'converterPriority':'high'}),_0x2268d6['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4eca1d,_0x33b848,_0x3604f4)=>{_0x3604f4['options']['showSuggestionHighlights']&&_0x4eca1d['stop']();},{'priority':'high'});}}class gt extends _0x47a92c{['afterInit'](){const _0xd9875e=this['editor'];_0xd9875e['plugins']['has']('MentionEditing')&&_0xd9875e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x47a92c{['afterInit'](){const _0x285ac1=this['editor'];if(!_0x285ac1['commands']['get']('insertMergeField'))return;_0x285ac1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x384f35=_0x285ac1['plugins']['get']('TrackChangesEditing'),_0x58542c=_0x285ac1['locale'];_0x384f35['descriptionFactory']['registerElementLabel']('mergeField',_0x2d2d32=>o(_0x58542c,'ELEMENT_MERGE_FIELD',_0x2d2d32)),_0x384f35['descriptionFactory']['registerDescriptionCallback'](_0x39a053=>{if('insertion'!=_0x39a053['type']&&'deletion'!=_0x39a053['type'])return;const _0x28a483=_0x39a053['getContainedElement']();if(null==_0x28a483)return;if(!_0x28a483['is']('element','mergeField'))return;const _0x34e4a3=_0x285ac1['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x28a483['getAttribute']('id'));return'insertion'==_0x39a053['type']?{'type':'insertion','content':o(_0x58542c,'*Insert:*\x20%0','\x22'+_0x34e4a3+'\x22\x20'+o(_0x58542c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x58542c,'*Remove:*\x20%0','\x22'+_0x34e4a3+'\x22\x20'+o(_0x58542c,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x47a92c{['afterInit'](){const _0x1d6802=this['editor'],_0x2597a9=_0x1d6802['plugins']['get']('TrackChangesEditing');_0x1d6802['plugins']['has']('MultiLevelList')&&(_0x2597a9['enableDefaultAttributesIntegration']('multiLevelList'),_0x2597a9['registerBlockAttribute']('listMarkerStyle'),_0x2597a9['descriptionFactory']['registerDescriptionCallback'](_0x1c57e1=>this['handleDescriptions'](_0x1c57e1)));}['handleDescriptions'](_0xd78d50){const _0x314e4e=this['editor']['locale'],{data:_0x4e25ca}=_0xd78d50,_0xd0ad82={'type':'format','content':''};if(_0x4e25ca&&'listMarkerStyle'==_0x4e25ca['key']){if(!_0x4e25ca['oldValue'])return{'type':'format','content':o(_0x314e4e,'*Set\x20format:*\x20%0',o(_0x314e4e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4e25ca['newValue']+')'};if(!_0x4e25ca['newValue']){let _0x3ceaa2=_0xd78d50['head'];for(;_0x3ceaa2;){if(_0x3ceaa2['data']&&'listType'==_0x3ceaa2['data']['key']&&_0x3ceaa2['data']['newValue'])return _0xd0ad82;_0x3ceaa2=_0x3ceaa2['next'];}return{'type':'format','content':o(_0x314e4e,'*Remove\x20format:*\x20%0',o(_0x314e4e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4e25ca['oldValue']+')'};}}}}class dt extends _0x47a92c{['afterInit'](){const _0x178da1=this['editor'];if(!_0x178da1['plugins']['has']('PageBreakEditing'))return;_0x178da1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x402f25=_0x178da1['plugins']['get']('TrackChangesEditing'),_0x2537bf=_0x178da1['locale'];_0x402f25['descriptionFactory']['registerElementLabel']('pageBreak',_0x3bf159=>o(_0x2537bf,'ELEMENT_PAGE_BREAK',_0x3bf159));}}class pt extends _0x47a92c{['afterInit'](){const _0x1486c9=this['editor'];if(!_0x1486c9['plugins']['has']('Paragraph'))return;const _0x37465b=_0x1486c9['locale'],_0x5ca488=_0x1486c9['plugins']['get']('TrackChangesEditing');_0x5ca488['descriptionFactory']['registerElementLabel']('paragraph',_0x2f982c=>o(_0x37465b,'ELEMENT_PARAGRAPH',_0x2f982c)),_0x5ca488['enableDefaultAttributesIntegration']('paragraph'),_0x5ca488['enableCommand']('insertParagraph'),_0x1486c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1486c9),{'priority':'highest'}),_0x1486c9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2a049e,_0x5d2915,_0x2f57c3)=>{_0x2f57c3['options']['showSuggestionHighlights']&&nr(_0x1486c9,{'showActiveMarker':!0x1})(_0x2a049e,_0x5d2915,_0x2f57c3);},{'priority':'highest'});const _0xf573da=_0x5ca488['descriptionFactory'];_0xf573da['registerDescriptionCallback'](_0xdd0188=>{if('insertion'!==_0xdd0188['type'])return;const {start:_0xda6809,end:_0x3d7c44}=_0xdd0188['getFirstRange']();if(!_0xda6809['isTouching'](_0x3d7c44)||!_0xda6809['nodeAfter'])return;const _0x3be3ad=_0x1486c9['model']['schema'],_0x32ea74=_0xda6809['nodeAfter'];return _0x3be3ad['isBlock'](_0x32ea74)&&!_0x3be3ad['isLimit'](_0x32ea74)&&_0x3be3ad['checkChild'](_0x32ea74,'$text')?{'type':'insertion','content':o(_0x37465b,'*Insert:*\x20%0',_0xf573da['getItemLabel'](_0x32ea74,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c5a4e=this['editor'],_0x57e1d3=_0x3c5a4e['locale'];_0x3c5a4e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d9444=>{if('formatBlock'!=_0x5d9444['type'])return;const {data:_0x27d582}=_0x5d9444;return _0x27d582&&'paragraph'==_0x27d582['commandName']?{'type':'format','content':o(_0x57e1d3,'*Change\x20to:*\x20%0',o(_0x57e1d3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x30516b,{showActiveMarker:_0x1948fb=!0x0}={}){return(_0x574945,_0x192afe,_0x3f5745)=>{const _0x11c6d0=_0x30516b['plugins']['get']('TrackChangesEditing'),_0x1a412d=_0x192afe['markerRange']['start'],_0x1b73b9=_0x192afe['markerRange']['end'],_0x1fe335=_0x30516b['model']['schema'];if(!_0x1a412d['isTouching'](_0x1b73b9)||!_0x1a412d['nodeAfter'])return;const _0x5b73a8=_0x1a412d['nodeAfter'];if(_0x1fe335['isBlock'](_0x5b73a8)&&!_0x1fe335['isLimit'](_0x5b73a8)&&_0x1fe335['checkChild'](_0x5b73a8,'$text')){if(!_0x3f5745['consumable']['consume'](_0x192afe['markerRange'],_0x574945['name']))return;const _0x443f4e=_0x3f5745['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0xb5ca87=_0x3f5745['mapper']['toViewPosition'](_0x1b73b9);_0x1948fb&&_0x11c6d0['activeMarkers']['includes'](_0x192afe['markerName'])&&_0x3f5745['writer']['addClass']('ck-suggestion-marker--active',_0x443f4e),_0x3f5745['writer']['insert'](_0xb5ca87,_0x443f4e),_0x3f5745['mapper']['bindElementToMarker'](_0x443f4e,_0x192afe['markerName']);}};}class kt extends _0x47a92c{['afterInit'](){const _0x3322c3=this['editor'];if(!_0x3322c3['plugins']['has']('RemoveFormatEditing'))return;_0x3322c3['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x142e76=this['editor'];_0x142e76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25c6d1=>{if('formatBlock'!=_0x25c6d1['type']&&'formatInline'!=_0x25c6d1['type'])return;const {data:_0x3d580f}=_0x25c6d1;return _0x3d580f&&'removeFormat'==_0x3d580f['commandName']?{'type':'format','content':o(_0x142e76['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class bt extends _0x47a92c{['afterInit'](){const _0x39e9ac=this['editor'];if(!_0x39e9ac['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x26fb9d=_0x39e9ac['plugins']['get']('TrackChangesEditing');_0x26fb9d['enableCommand']('goToPreviousRestrictedEditingException'),_0x26fb9d['enableCommand']('goToNextRestrictedEditingException');const _0x15514b=_0x39e9ac['plugins']['get']('RestrictedEditingModeEditing');_0x15514b['enableCommand']('trackChanges'),_0x15514b['enableCommand']('acceptSuggestion'),_0x15514b['enableCommand']('discardSuggestion'),_0x15514b['enableCommand']('acceptAllSuggestions'),_0x15514b['enableCommand']('discardAllSuggestions'),_0x15514b['enableCommand']('acceptSelectedSuggestions'),_0x15514b['enableCommand']('discardSelectedSuggestions');}}class wt extends _0x47a92c{static get['requires'](){return[_0x266e79];}['init'](){const _0x14fb9c=this['editor'],_0x2feeb1=_0x14fb9c['plugins']['get']('TrackChangesEditing');_0x2feeb1['enableCommand']('shiftEnter'),_0x14fb9c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ce(_0x14fb9c),{'priority':'high'}),_0x14fb9c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ce(_0x14fb9c),{'priority':'high'}),_0x14fb9c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x130308,_0xd33c30,_0x5c46ce)=>{_0x5c46ce['options']['showSuggestionHighlights']&&ce(_0x14fb9c,{'showActiveMarker':!0x1})(_0x130308,_0xd33c30,_0x5c46ce);}),_0x2feeb1['descriptionFactory']['registerElementLabel']('softBreak',_0x19b58f=>o(_0x14fb9c['locale'],'ELEMENT_LINE_BREAK',_0x19b58f));}}function ce(_0x3b4e12,{showActiveMarker:_0x289463=!0x0}={}){return(_0x18af8f,_0xff96be,_0x48498c)=>{const _0x20d1ec=_0x3b4e12['plugins']['get']('TrackChangesEditing');if(!_0x48498c['consumable']['test'](_0xff96be['markerRange'],_0x18af8f['name']))return;const _0x165095=_0x3b4e12['model'];for(const _0x2bce93 of _0xff96be['markerRange']['getItems']()){if(!_0x2bce93['is']('element','softBreak'))continue;const _0xcd5550='deletion'==_0xff96be['markerName']['split'](':')[0x1]?'merge':'split',_0x430335=_0x48498c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcd5550}),_0x2ef6c8=_0x48498c['mapper']['toViewPosition'](_0x165095['createPositionBefore'](_0x2bce93));_0x289463&&_0x20d1ec['activeMarkers']['includes'](_0xff96be['markerName'])&&_0x48498c['writer']['addClass']('ck-suggestion-marker--active',_0x430335),_0x48498c['writer']['insert'](_0x2ef6c8,_0x430335),_0x48498c['mapper']['bindElementToMarker'](_0x430335,_0xff96be['markerName']);}};}class yt extends _0x47a92c{['afterInit'](){const _0x4425cb=this['editor'],_0x224edb=_0x4425cb['model'],_0x10f8a4=_0x4425cb['locale'];if(!_0x4425cb['plugins']['has']('StandardEditingModeEditing'))return;const _0x5ec427=_0x4425cb['plugins']['get']('TrackChangesEditing'),_0x7a2d10='restrictedEditingException',_0x331cd6=_0x4425cb['commands']['get'](_0x7a2d10);_0x5ec427['enableCommand'](_0x7a2d10,(_0x40bc32,_0x154167={})=>{const _0x4209c4=_0x224edb['document']['selection'];if(_0x4209c4['isCollapsed'])return void _0x40bc32(_0x154167);const _0x18ea20=void 0x0!==_0x154167['forceValue']?_0x154167['forceValue']:!_0x331cd6['value'];_0x224edb['change'](()=>{const _0x37346b=Array['from'](_0x4209c4['getRanges']());for(const _0x2f00d9 of _0x37346b){const _0x3fec09=_0x18ea20?[_0x2f00d9]:io(_0x7a2d10,_0x2f00d9,_0x224edb);for(const _0x3fe993 of _0x3fec09)_0x5ec427['markInlineFormat'](_0x3fe993,{'commandName':_0x7a2d10,'commandParams':[{'forceValue':_0x18ea20}]});}});}),_0x5ec427['descriptionFactory']['registerDescriptionCallback'](_0x1eed00=>{if('formatBlock'!=_0x1eed00['type']&&'formatInline'!=_0x1eed00['type'])return;const {data:_0x515314}=_0x1eed00;return _0x515314&&_0x515314['commandName']==_0x7a2d10?_0x515314['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10f8a4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x10f8a4,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class jt extends _0x47a92c{['afterInit'](){const _0x1c6394=this['editor'];if(!_0x1c6394['plugins']['has']('Style')||!_0x1c6394['plugins']['has']('DataSchema'))return;const _0x140a4f=_0x1c6394['plugins']['get']('TrackChangesEditing'),_0x23959d=_0x1c6394['locale'],_0x5ed406=_0x1c6394['config']['get']('style')||{},_0xce346b=_0x1c6394['plugins']['get']('GeneralHtmlSupport'),_0x40e24f=_0x1c6394['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1c6394['plugins']['get']('DataSchema'),_0x5ed406['definitions']);_0x140a4f['enableDefaultAttributesIntegration']('style');const _0x2be9bd=new Set();for(const _0x59c0aa of _0x40e24f['block']){const _0x815389=_0xce346b['getGhsAttributeNameForElement'](_0x59c0aa['element']);_0x2be9bd['add'](_0x815389);}const _0x10e773=new Set();for(const _0x3f2a23 of _0x40e24f['inline']){const _0x4ffd59=_0xce346b['getGhsAttributeNameForElement'](_0x3f2a23['element']);_0x10e773['add'](_0x4ffd59);for(const _0x3847d6 of _0x3f2a23['ghsAttributes'])_0x10e773['add'](_0x3847d6);}for(const _0x3a50dc of _0x2be9bd)_0x140a4f['registerBlockAttribute'](_0x3a50dc),_0x140a4f['descriptionFactory']['registerAttributeLabel'](_0x3a50dc,o(_0x23959d,'FORMAT_STYLE'));for(const _0x11afea of _0x10e773)_0x140a4f['registerInlineAttribute'](_0x11afea),_0x140a4f['descriptionFactory']['registerAttributeLabel'](_0x11afea,o(_0x23959d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f5398=this['editor'],_0x339296=_0x2f5398['locale'];_0x2f5398['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ec3bd=>{if('formatBlock'!=_0x3ec3bd['type']&&'formatInline'!=_0x3ec3bd['type'])return;const {data:_0x3f4e73}=_0x3ec3bd;return _0x3f4e73&&'style'===_0x3f4e73['commandName']?_0x3f4e73['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x339296,'*Set\x20format:*\x20%0',_0x3f4e73['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x339296,'*Remove\x20format:*\x20%0',_0x3f4e73['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class St extends _0x47a92c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3684f8){super(_0x3684f8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x46ae86=this['editor'],_0x37419f=_0x46ae86['model']['document']['selection'];if(!_0x46ae86['plugins']['has']('TableEditing'))return;const _0x136742=_0x46ae86['locale'],_0x1db940=_0x46ae86['plugins']['get']('TrackChangesEditing'),_0x8bd23d=_0x46ae86['plugins']['get']('TableUtils');_0x1db940['descriptionFactory']['registerElementLabel']('table',_0x59110b=>o(_0x136742,'ELEMENT_TABLE',_0x59110b)),this['_setupColumnsRowsFixing'](),_0x1db940['enableCommand']('insertTable'),_0x1db940['enableCommand']('selectTableRow'),_0x1db940['enableCommand']('selectTableColumn');for(const _0x53509f of['insertTableRowAbove','insertTableRowBelow']){const _0x3885a6=_0x46ae86['commands']['get'](_0x53509f);_0x1db940['enableCommand'](_0x53509f,_0x11d988=>{_0x46ae86['model']['change'](_0x5f19d9=>{_0x11d988();const _0x4cc2d3='above'===_0x3885a6['order'],_0x27997a=_0x8bd23d['getSelectionAffectedTableCells'](_0x37419f),_0x13ca8c=_0x8bd23d['getRowIndexes'](_0x27997a),_0x4a8f30=_0x4cc2d3?_0x13ca8c['first']-0x1:_0x13ca8c['last']+0x1,_0x37d406=_0x27997a[0x0]['findAncestor']('table'),_0x277ffa=_0x8bd23d['createTableWalker'](_0x37d406,{'startRow':_0x4a8f30,'endRow':_0x4a8f30}),_0x2e7c99=Array['from'](_0x277ffa)['map'](_0x8885de=>_0x5f19d9['createRangeOn'](_0x8885de['cell']));_0x1db940['markMultiRangeInsertion'](_0x2e7c99,'tableRow');});});}for(const _0x27e9ac of['insertTableColumnLeft','insertTableColumnRight']){const _0xd00c9=_0x46ae86['commands']['get'](_0x27e9ac);_0x1db940['enableCommand'](_0x27e9ac,_0xb9e835=>{_0x46ae86['model']['change'](_0x41e235=>{_0xb9e835();const _0x3678dc='left'===_0xd00c9['order'],_0x1ca1f9=_0x8bd23d['getSelectionAffectedTableCells'](_0x37419f),_0xb809d4=_0x8bd23d['getColumnIndexes'](_0x1ca1f9),_0x2f6feb=_0x3678dc?_0xb809d4['first']-0x1:_0xb809d4['last']+0x1,_0x46e508=_0x1ca1f9[0x0]['findAncestor']('table'),_0x38a454=_0x8bd23d['createTableWalker'](_0x46e508,{'startRow':0x0,'column':_0x2f6feb,'includeAllSlots':!0x1}),_0x547b21=Array['from'](_0x38a454)['map'](_0x4976eb=>_0x41e235['createRangeOn'](_0x4976eb['cell']));_0x1db940['markMultiRangeInsertion'](_0x547b21,'tableColumn');});});}for(const _0x307ff5 of['removeTableRow','removeTableColumn']){const _0x496ebf=_0x307ff5['substr'](0xb),_0x221965=_0x496ebf['toLowerCase'](),_0x4b5fc9=_0x221965['substr'](0x0,0x3)+'span',_0x4726b0='table'+_0x496ebf,_0x5e9b98='min'+_0x496ebf,_0x1099af='max'+_0x496ebf;_0x1db940['enableCommand'](_0x307ff5,()=>{_0x46ae86['model']['change'](_0x10f27f=>{const _0x4bf4dc=_0x8bd23d['getSelectionAffectedTableCells'](_0x37419f),_0x2c6af0=_0x4bf4dc[0x0]['findAncestor']('table');let _0x2db4d4;if('removeTableRow'==_0x307ff5){const _0x47168e=_0x8bd23d['getRowIndexes'](_0x4bf4dc);_0x2db4d4={'startRow':_0x47168e['first'],'endRow':_0x47168e['last'],'includeAllSlots':!0x0};}else{const _0x11d05d=_0x8bd23d['getColumnIndexes'](_0x4bf4dc);_0x2db4d4={'startColumn':_0x11d05d['first'],'endColumn':_0x11d05d['last'],'includeAllSlots':!0x0};}const _0x5a12c1=_0x8bd23d['createTableWalker'](_0x2c6af0,_0x2db4d4),_0x39f036=Array['from'](_0x5a12c1)['map'](({cell:_0x572feb})=>_0x572feb),_0x224163=Ee(_0x39f036['filter'](_0x759b96=>_0x759b96['hasAttribute'](_0x4b5fc9))),_0x44c86d=Ee(_0x39f036['filter'](_0x1fadcb=>!_0x1fadcb['hasAttribute'](_0x4b5fc9)))['map'](_0x5b510a=>_0x10f27f['createRangeOn'](_0x5b510a)),_0x2f78d0=_0x1db940['markMultiRangeDeletion'](_0x44c86d,_0x4726b0);if(_0x2f78d0&&('tableRow'==_0x2f78d0['subType']||'tableColumn'==_0x2f78d0['subType'])){const _0x5c367e=this['_getSuggestionCoords'](_0x2f78d0);for(const _0x53ab4a of _0x224163){const _0x55e893=_0x10f27f['createRangeOn'](_0x53ab4a),_0x216350=_0x8bd23d['getCellLocation'](_0x53ab4a),_0x32cb44=_0x53ab4a['getAttribute'](_0x4b5fc9)-0x1,_0x246fb1=_0x5c367e[_0x5e9b98],_0x2f0a0c=_0x5c367e[_0x1099af];_0x246fb1<=_0x216350[_0x221965]&&_0x216350[_0x221965]+_0x32cb44<=_0x2f0a0c&&_0x2f78d0['addRange'](_0x55e893);}}});});}function _0x723bec(_0x5897cb){const _0xf7671f=Array['from'](_0x37419f['getRanges']())['map'](_0x5cc111=>_0x92b86c['fromRange'](_0x5cc111));_0x46ae86['model']['change'](_0x50c17b=>{const _0x147bcc=_0x50c17b['batch'];_0x5897cb=_0x5897cb['filter'](_0x18810b=>'$graveyard'!=_0x18810b['root']['rootName']),_0x50c17b['setSelection'](_0x5897cb),_0x46ae86['commands']['get']('removeTableRow')['refresh'](),_0x46ae86['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x46ae86['model']['enqueueChange'](()=>{_0x46ae86['model']['enqueueChange'](_0x147bcc,_0x30d4a6=>{const _0x4b00ab=_0xf7671f['filter'](_0x398698=>'$graveyard'!=_0x398698['root']['rootName']);_0x4b00ab['length']>0x0&&_0x30d4a6['setSelection'](_0x4b00ab);for(const _0x299b6c of _0xf7671f)_0x299b6c['detach']();});});});}function _0x18a0c6(_0x30ff6a){_0x46ae86['model']['change'](_0x1ff4e6=>{const _0x4e602c=Array['from'](_0x37419f['getRanges']())['map'](_0x544f28=>_0x92b86c['fromRange'](_0x544f28)),_0x5957e7=[];for(const _0x17d0bd of _0x30ff6a)for(const _0x53571a of _0x17d0bd['getItems']({'shallow':!0x0}))_0x5957e7['push'](_0x53571a);for(const _0x14a41f of _0x5957e7)'$graveyard'!=_0x14a41f['root']['rootName']&&(_0x1ff4e6['setSelection'](_0x1ff4e6['createPositionAt'](_0x14a41f,0x0)),_0x46ae86['commands']['get']('removeTableColumn')['refresh'](),_0x46ae86['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x20f9b5=_0x4e602c['filter'](_0x13526f=>'$graveyard'!=_0x13526f['root']['rootName']);_0x20f9b5['length']>0x0&&_0x1ff4e6['setSelection'](_0x20f9b5);for(const _0x33a34d of _0x4e602c)_0x33a34d['detach']();});}function _0x51571a(_0xa65093,_0x285321){return _0x285321['every'](_0x277daa=>_0xa65093['some'](_0x54257d=>_0x54257d['end']['isEqual'](_0x277daa['start'])||_0x277daa['end']['isEqual'](_0x54257d['start'])));}function _0xe0a3de(_0x2b2a00,_0x358538){return!_0x2b2a00['some'](_0x3dc28b=>_0x358538['some'](_0x2f7b61=>_0x3dc28b['isIntersecting'](_0x2f7b61)))&&_0x2b2a00['some'](_0x5a2ce5=>_0x358538['some'](_0x29ca6f=>_0x5a2ce5['end']['isTouching'](_0x29ca6f['start'])));}_0x46ae86['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x227949,_0x15f8d6,_0x532f57)=>{if(!_0x532f57['options']['showSuggestionHighlights'])return;const _0x3049a5=_0x15f8d6['item'];if(!_0x3049a5)return;const _0x1ba031=_0x532f57['mapper']['toViewElement'](_0x3049a5);function _0x56f9b9(_0x2c926e){return Array['isArray'](_0x2c926e)?_0x2c926e:[_0x2c926e];}_0x1ba031&&'tableCell'===_0x3049a5['name']&&_0x5835a5(_0x1ba031,_0x532f57['writer'],(_0x5af596,_0x3070b1,_0x5273e3)=>_0x5273e3['addClass'](_0x56f9b9(_0x3070b1['classes']),_0x5af596),(_0x32aa24,_0x48028c,_0x9f77ac)=>_0x9f77ac['removeClass'](_0x56f9b9(_0x48028c['classes']),_0x32aa24));},{'priority':'highest'}),_0x1db940['descriptionFactory']['registerDescriptionCallback'](_0x1b6268=>{if('insertion'!=_0x1b6268['type']&&'deletion'!=_0x1b6268['type'])return;const _0x39dfff=_0x1b6268['getContainedElement']();if(null!=_0x39dfff&&_0x39dfff['is']('element','table')){if('insertion'==_0x1b6268['type']){const _0x183fc8=_0x1b6268['getItems']()['filter'](_0x17d876=>_0x17d876['is']('$textProxy'))['map'](_0x25f44a=>_0x25f44a['data']);if(_0x183fc8['length'])return{'type':'insertion','content':o(_0x136742,'*Insert:*\x20%0',o(_0x136742,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x183fc8['join']('\x20')+'\x22'))};}if('deletion'==_0x1b6268['type']){const _0x5e7097=_0x1b6268['getItems']()['filter'](_0x235805=>_0x235805['is']('$textProxy'))['map'](_0x4089ad=>_0x4089ad['data']);if(_0x5e7097['length'])return{'type':'deletion','content':o(_0x136742,'*Remove:*\x20%0',o(_0x136742,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5e7097['join']('\x20')+'\x22'))};}}}),_0x1db940['descriptionFactory']['registerDescriptionCallback'](_0x6d4f3e=>{if('tableRow'==_0x6d4f3e['subType']){const _0x11190b=_0x6d4f3e['getItems']()['filter'](_0x262452=>_0x262452['is']('$textProxy'))['map'](_0x17c8d2=>_0x17c8d2['data']),_0x10578c=this['_getSuggestionCoords'](_0x6d4f3e),_0x5096c0=_0x10578c['maxRow']-_0x10578c['minRow']+0x1;if('insertion'==_0x6d4f3e['type'])return _0x11190b['length']?{'type':'insertion','content':o(_0x136742,'*Insert:*\x20%0',o(_0x136742,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5096c0,'\x22'+_0x11190b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x136742,'*Insert:*\x20%0',o(_0x136742,'ELEMENT_TABLE_ROW',_0x5096c0))};if('deletion'==_0x6d4f3e['type'])return _0x11190b['length']?{'type':'deletion','content':o(_0x136742,'*Remove:*\x20%0',o(_0x136742,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5096c0,'\x22'+_0x11190b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x136742,'*Remove:*\x20%0',o(_0x136742,'ELEMENT_TABLE_ROW',_0x5096c0))};}if('tableColumn'==_0x6d4f3e['subType']){const _0x2bd55e=_0x6d4f3e['getItems']()['filter'](_0x5a5058=>_0x5a5058['is']('$textProxy'))['map'](_0x3f1601=>_0x3f1601['data']),_0x4bc91b=this['_getSuggestionCoords'](_0x6d4f3e),_0xab26e1=_0x4bc91b['maxColumn']-_0x4bc91b['minColumn']+0x1;if('insertion'==_0x6d4f3e['type'])return _0x2bd55e['length']?{'type':'insertion','content':o(_0x136742,'*Insert:*\x20%0',o(_0x136742,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xab26e1,'\x22'+_0x2bd55e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x136742,'*Insert:*\x20%0',o(_0x136742,'ELEMENT_TABLE_COLUMN',_0xab26e1))};if('deletion'==_0x6d4f3e['type'])return _0x2bd55e['length']?{'type':'deletion','content':o(_0x136742,'*Remove:*\x20%0',o(_0x136742,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xab26e1,'\x22'+_0x2bd55e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x136742,'*Remove:*\x20%0',o(_0x136742,'ELEMENT_TABLE_COLUMN',_0xab26e1))};}}),_0x1db940['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x723bec),_0x1db940['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x723bec),_0x1db940['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x18a0c6),_0x1db940['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x18a0c6),_0x1db940['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x51571a),_0x1db940['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x51571a),_0x1db940['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xe0a3de),_0x1db940['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xe0a3de);}['_acceptFormatSuggestionCallbackFactory'](){const _0x38d770=this['editor'],_0x512a18=_0x38d770['model']['document']['selection'];return(_0x139790,_0x47dab1)=>{_0x38d770['model']['change'](_0x22cba2=>{const {commandName:_0x37d637,commandParams:_0x1e3840}=_0x47dab1;let _0x186d8b=_0x139790[0x0]['end']['nodeBefore'];_0x1e3840&&_0x1e3840[0x0]&&!0x1===_0x1e3840[0x0]['forceValue']&&(_0x186d8b=_0x139790[0x0]['start']['nodeAfter']);const _0x3d6dd7=_0x22cba2['createRangeIn'](_0x186d8b);if('$graveyard'==_0x3d6dd7['root']['rootName'])return;const _0x25c3bb=Array['from'](_0x512a18['getRanges']())['map'](_0x30f16c=>_0x92b86c['fromRange'](_0x30f16c));_0x22cba2['setSelection'](_0x3d6dd7),_0x38d770['commands']['get'](_0x37d637)['refresh'](),_0x1e3840['push']({'forceDefaultExecution':!0x0}),_0x38d770['execute'](_0x37d637,..._0x1e3840);const _0x2820bd=_0x25c3bb['filter'](_0x56cb28=>'$graveyard'!=_0x56cb28['root']['rootName']);_0x2820bd['length']>0x0&&_0x22cba2['setSelection'](_0x2820bd);for(const _0x249bee of _0x25c3bb)_0x249bee['detach']();});};}['_getCoordsForCells'](_0x5bce12){const _0x3dc7c8=this['editor']['plugins']['get']('TableUtils');let _0x5742cd=Number['MAX_SAFE_INTEGER'],_0x26b51d=Number['MIN_SAFE_INTEGER'],_0x50052b=Number['MAX_SAFE_INTEGER'],_0x335ce1=Number['MIN_SAFE_INTEGER'];for(const _0x268561 of _0x5bce12){if('$graveyard'==_0x268561['root']['rootName'])continue;const {row:_0x2e5326,column:_0x56a797}=_0x3dc7c8['getCellLocation'](_0x268561),_0x1cfc5b=_0x268561['hasAttribute']('rowspan')?_0x268561['getAttribute']('rowspan')-0x1:0x0,_0x7e7330=_0x268561['hasAttribute']('colspan')?_0x268561['getAttribute']('colspan')-0x1:0x0;_0x5742cd=_0x2e5326<_0x5742cd?_0x2e5326:_0x5742cd,_0x26b51d=_0x2e5326+_0x1cfc5b>_0x26b51d?_0x2e5326+_0x1cfc5b:_0x26b51d,_0x50052b=_0x56a797<_0x50052b?_0x56a797:_0x50052b,_0x335ce1=_0x56a797+_0x7e7330>_0x335ce1?_0x56a797+_0x7e7330:_0x335ce1;}return{'minRow':_0x5742cd,'maxRow':_0x26b51d,'minColumn':_0x50052b,'maxColumn':_0x335ce1};}['_setupColumnsRowsFixing'](){const _0x48a914=this['editor'],_0x43e88b=_0x48a914['plugins']['get']('TrackChangesEditing'),_0x4911bf=_0x48a914['plugins']['get']('TableUtils');_0x48a914['model']['document']['on']('change:data',()=>{const _0x1daba2=Array['from'](_0x48a914['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x37486a,data:_0x41f14d}of _0x1daba2){const {group:_0x43ab35,id:_0x573472,subType:_0x55628f}=_0x43e88b['_splitMarkerName'](_0x37486a);if('suggestion'!=_0x43ab35)continue;if(null!=_0x41f14d['oldRange'])continue;const _0x83fe01=_0x43e88b['getSuggestion'](_0x573472);this['_tablePostFixingSubtypes']['includes'](_0x55628f)&&this['_tableSuggestions']['add'](_0x83fe01);}},{'priority':'low'});const _0x45dbb9=(_0x551815,_0x26ce82)=>{let _0x1158c8=!0x1;const _0x38fa49=_0x26ce82['createRangeOn'](_0x551815),_0x4d3986=_0x551815['findAncestor']('table'),_0xfefaef=_0x4911bf['getCellLocation'](_0x551815);for(const _0x1c1cef of this['_tableSuggestions']){const _0x29ae19=_0x1c1cef['subType'],_0x580f04=_0x29ae19['startsWith']('tablePaste'),_0x3f4d13=_0x29ae19['substr'](_0x580f04?0xa:0x5),_0x62847d=_0x3f4d13['toLowerCase'](),_0x455e46=_0x62847d['substr'](0x0,0x3)+'span',_0x3be66f='min'+_0x3f4d13,_0x4e0250='max'+_0x3f4d13;if(!_0x1c1cef['isInContent'])continue;if(_0x4d3986!=_0x1c1cef['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1c1cef['isIntersectingWithRange'](_0x38fa49))continue;const _0x1cb403=_0x551815['hasAttribute'](_0x455e46)?_0x551815['getAttribute'](_0x455e46)-0x1:0x0,_0x51e1c4=this['_getSuggestionCoords'](_0x1c1cef),_0xcecce9=_0x51e1c4[_0x3be66f],_0x10a338=_0x51e1c4[_0x4e0250];_0xcecce9<=_0xfefaef[_0x62847d]&&_0xfefaef[_0x62847d]+_0x1cb403<=_0x10a338&&(_0x1c1cef['addRange'](_0x38fa49),_0x1158c8=!0x0);}return _0x1158c8;};_0x48a914['model']['document']['registerPostFixer'](_0x567030=>{let _0x10e874=!0x1;for(const _0x3dda6e of _0x48a914['model']['document']['differ']['getChanges']())if('insert'==_0x3dda6e['type']){if('tableRow'==_0x3dda6e['name']){for(const _0x555263 of _0x3dda6e['position']['nodeAfter']['getChildren']())_0x10e874=_0x10e874||_0x45dbb9(_0x555263,_0x567030);}else'tableCell'==_0x3dda6e['name']&&(_0x10e874=_0x10e874||_0x45dbb9(_0x3dda6e['position']['nodeAfter'],_0x567030));}return _0x10e874;});}['_getSuggestionCoords'](_0x5f3a3e){return this['_getCoordsForCells'](_0x5f3a3e['getRanges']()['map'](_0x4e3ee5=>_0x4e3ee5['start']['nodeAfter']));}}function Ee(_0x28dbbf){return Array['from'](new Set(_0x28dbbf)['values']());}class At extends _0x47a92c{static get['requires'](){return[St];}['afterInit'](){const _0x182d04=this['editor'],_0xf4a406=_0x182d04['model']['document']['selection'],_0x2bff41=_0x182d04['locale'];if(!_0x182d04['plugins']['has']('TableEditing'))return;const _0x38af62=_0x182d04['plugins']['get']('TrackChangesEditing'),_0xd3003c=_0x182d04['plugins']['get']('TableUtils'),_0x1751af=_0x182d04['plugins']['get'](St);_0x1751af['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x38af62['enableCommand']('mergeTableCells',()=>{const _0xfab73e=_0xd3003c['getSelectionAffectedTableCells'](_0x182d04['model']['document']['selection']);_0x182d04['model']['change'](()=>{_0x38af62['markMultiRangeBlockFormat'](_0xfab73e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x182d04['commands']['get']('mergeTableCells')['on']('execute',(_0x375ff9,_0xb56cc6)=>{_0x182d04['commands']['get']('trackChanges')['value']&&(_0xb56cc6['length']>0x0&&_0xb56cc6[_0xb56cc6['length']-0x1]&&_0xb56cc6[_0xb56cc6['length']-0x1]['forceDefaultExecution']||_0x38af62['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x375ff9['stop']());},{'priority':'highest'});for(const _0x1f9598 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3bfcce=_0x182d04['commands']['get'](_0x1f9598);_0x38af62['enableCommand'](_0x1f9598,()=>{const _0x27ccbf=_0x182d04['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5cf18a=>_0x5cf18a['is']('element','tableCell')),_0x137c50=_0x3bfcce['value'];_0x182d04['model']['change'](()=>{_0x38af62['markMultiRangeBlockFormat']([_0x27ccbf,_0x137c50],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x580460 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x41d6f3=_0x182d04['commands']['get'](_0x580460);_0x38af62['enableCommand'](_0x580460,()=>{const _0x58b0e7=_0xd3003c['getSelectionAffectedTableCells'](_0x182d04['model']['document']['selection'])[0x0],_0x4335ad=_0x58b0e7['findAncestor']('table'),{column:_0x5d1921,row:_0x7489c4}=_0xd3003c['getCellLocation'](_0x58b0e7);let _0xd3b1ec=[];if('horizontally'==_0x41d6f3['direction']){const _0x4aef70=_0xd3003c['createTableWalker'](_0x4335ad,{'startRow':_0x7489c4,'endRow':_0x7489c4,'includeAllSlots':!0x0});_0xd3b1ec=Array['from'](_0x4aef70)['map'](_0x1aa06d=>_0x1aa06d['cell']);}else{const _0x3cc607=_0xd3003c['createTableWalker'](_0x4335ad,{'column':_0x5d1921,'includeAllSlots':!0x0});_0xd3b1ec=Array['from'](_0x3cc607)['map'](_0x251d63=>_0x251d63['cell']);}_0x182d04['model']['change'](_0x228f00=>{_0x38af62['markBlockFormat'](_0x228f00['createRangeOn'](_0x58b0e7),{'commandName':_0x580460,'commandParams':[]},_0xd3b1ec,_0x580460);});});}_0x38af62['descriptionFactory']['registerDescriptionCallback'](_0x2aa7ed=>{if('formatBlock'!=_0x2aa7ed['type']&&'formatInline'!=_0x2aa7ed['type'])return;const {data:_0xd59036}=_0x2aa7ed;return _0xd59036&&'mergeTableCells'==_0xd59036['commandName']?{'type':'format','content':o(_0x2bff41,'*Merge\x20cells*')}:void 0x0;}),_0x38af62['descriptionFactory']['registerDescriptionCallback'](_0x1db3c2=>{if('formatBlock'!=_0x1db3c2['type']&&'formatInline'!=_0x1db3c2['type'])return;const {data:_0xc4fa2b}=_0x1db3c2;return _0xc4fa2b?'splitTableCellVertically'==_0xc4fa2b['commandName']?{'type':'format','content':o(_0x2bff41,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xc4fa2b['commandName']?{'type':'format','content':o(_0x2bff41,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xea9f90=_0x1751af['_acceptFormatSuggestionCallbackFactory']();for(const _0x8a5de8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x38af62['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x8a5de8,'accept',_0xea9f90);for(const _0x15d004 of['splitTableCellVertically','splitTableCellHorizontally'])_0x38af62['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15d004,'accept',_0xea9f90);_0x38af62['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x11d64f=>{_0x182d04['model']['change'](_0x336c72=>{const _0x2ef40c=Array['from'](_0xf4a406['getRanges']())['map'](_0x2cf8a3=>_0x92b86c['fromRange'](_0x2cf8a3));_0x336c72['setSelection'](_0x11d64f),_0x182d04['commands']['get']('mergeTableCells')['refresh'](),_0x182d04['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x577f8c=_0x2ef40c['filter'](_0x3c70da=>'$graveyard'!=_0x3c70da['root']['rootName']);_0x577f8c['length']>0x0&&_0x336c72['setSelection'](_0x577f8c);for(const _0x58ad0f of _0x2ef40c)_0x58ad0f['detach']();});});for(const _0x68efb5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1400c1=_0x182d04['commands']['get'](_0x68efb5);_0x1400c1['on']('set:isEnabled',(_0x23b9e2,_0x31e38a,_0x333be9)=>{if(_0x333be9){const _0x15670c=_0x182d04['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1add79=>_0x1add79['is']('element','tableCell'));this['_areMergableCells'](_0x1400c1['value'],_0x15670c)||(_0x23b9e2['return']=!0x1,_0x23b9e2['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x596912=this['editor']['commands']['get']('mergeTableCells'),_0x1eb501=this['editor']['plugins']['get']('TableUtils');if(!_0x596912['isEnabled'])return!0x1;const _0x3b793c=_0x1eb501['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x34224d of _0x3b793c)for(const _0x322a89 of _0x3b793c)if(_0x34224d!=_0x322a89&&!this['_areMergableCells'](_0x34224d,_0x322a89))return!0x1;return!0x0;}['_areMergableCells'](_0x4bb834,_0x24b3e8){const _0x276b7d=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf2f5eb=this['editor']['model']['createRangeOn'](_0x4bb834),_0x2b7b80=this['editor']['model']['createRangeOn'](_0x24b3e8),_0x16539b=new Set(),_0x427103=new Set();for(const _0x295f0f of _0x276b7d['getSuggestions']())if(('insertion'==_0x295f0f['type']||'deletion'==_0x295f0f['type']||'mergeTableCells'==_0x295f0f['subType'])&&_0x295f0f['isInContent']){for(const _0x1f31ca of _0x295f0f['getRanges']())_0x1f31ca['containsRange'](_0xf2f5eb,!0x0)&&_0x16539b['add'](_0x295f0f['type']+':'+_0x295f0f['author']['id']),_0x1f31ca['containsRange'](_0x2b7b80,!0x0)&&_0x427103['add'](_0x295f0f['type']+':'+_0x295f0f['author']['id']);}if(_0x16539b['size']!=_0x427103['size'])return!0x1;for(const _0x4c1ba9 of _0x16539b)if(!_0x427103['has'](_0x4c1ba9))return!0x1;return!0x0;}}class It extends _0x47a92c{static get['requires'](){return[St];}['afterInit'](){const _0x39d81a=this['editor'];if(!_0x39d81a['plugins']['has']('TableEditing'))return;const _0x12f08a=_0x39d81a['locale'],_0x56c12c=_0x39d81a['plugins']['get']('TrackChangesEditing');_0x56c12c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x56c12c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x56c12c['registerBlockAttribute']('headingRows'),_0x56c12c['registerBlockAttribute']('headingColumns'),_0x56c12c['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x12f08a,'FORMAT_HEADER_ROW')),_0x56c12c['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x12f08a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5c1a16=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47fa8d=this['editor']['plugins']['get']('TableUtils'),_0x633945=this['editor']['plugins']['get'](St)['_acceptFormatSuggestionCallbackFactory']();function _0x5d98d9({showActiveMarker:_0x3a0e13=!0x0,setDataAttribute:_0x4487cc=!0x0}={}){return(_0x469cc2,_0x55c6d1,_0x317f76)=>{const {type:_0x4c1f30,id:_0x5b398a}=_0x5c1a16['_splitMarkerName'](_0x55c6d1['markerName']),_0x20dca3=_0x5c1a16['getSuggestion'](_0x5b398a),_0x106204=_0x20dca3['data'];if('formatBlock'!=_0x20dca3['type']||!_0x106204||'setTableColumnHeader'!=_0x106204['commandName'])return;if(_0x55c6d1['item'])return void _0x469cc2['stop']();if(!_0x317f76['consumable']['consume'](_0x55c6d1['markerRange'],_0x469cc2['name']))return;const _0x28c552=_0x55c6d1['markerRange']['start']['nodeAfter'],_0x4f6615=_0x55c6d1['markerRange']['end']['nodeBefore'],_0x44b1d9=_0x28c552['parent']['parent'],{column:_0x2c0281}=_0x47fa8d['getCellLocation'](_0x28c552),{column:_0x3bc458}=_0x47fa8d['getCellLocation'](_0x4f6615);for(let _0x389db9=_0x2c0281;_0x389db9<=_0x3bc458;_0x389db9++){const _0xa332c3=_0x47fa8d['createTableWalker'](_0x44b1d9,{'column':_0x389db9,'includeAllSlots':!0x1});for(const _0x7e46ab of _0xa332c3){const _0x4f14dc=_0x7e46ab['cell'],_0x5ac7df=_0x317f76['mapper']['toViewElement'](_0x4f14dc);_0x317f76['writer']['addClass']('ck-suggestion-marker-'+_0x4c1f30,_0x5ac7df),_0x4487cc&&_0x317f76['writer']['setAttribute']('data-suggestion',_0x5b398a,_0x5ac7df),_0x317f76['mapper']['bindElementToMarker'](_0x5ac7df,_0x55c6d1['markerName']),_0x3a0e13&&(_0x5c1a16['activeMarkers']['includes'](_0x55c6d1['markerName'])?_0x317f76['writer']['addClass']('ck-suggestion-marker--active',_0x5ac7df):_0x317f76['writer']['removeClass']('ck-suggestion-marker--active',_0x5ac7df));}}};}_0x5c1a16['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x633945),_0x5c1a16['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x633945),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5d98d9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3870fb,_0x4a2783,_0x4dcadb)=>{_0x4dcadb['options']['showSuggestionHighlights']&&_0x5d98d9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3870fb,_0x4a2783,_0x4dcadb);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5aad77,_0x2635f2,_0x3f731e)=>{const {type:_0x406597,id:_0x2c1940}=_0x5c1a16['_splitMarkerName'](_0x2635f2['markerName']),_0x25fcf8=_0x5c1a16['getSuggestion'](_0x2c1940),_0x5eefc2=_0x25fcf8['data'];if('formatBlock'!=_0x25fcf8['type']||!_0x5eefc2||'setTableColumnHeader'!=_0x5eefc2['commandName'])return;const _0xd94075=_0x3f731e['mapper']['markerNameToElements'](_0x2635f2['markerName']);if(_0xd94075){for(const _0x4f7d0a of _0xd94075)_0x3f731e['writer']['removeClass']('ck-suggestion-marker-'+_0x406597,_0x4f7d0a),_0x3f731e['writer']['removeClass']('ck-suggestion-marker--active',_0x4f7d0a),_0x3f731e['writer']['removeAttribute']('data-suggestion',_0x4f7d0a),_0x3f731e['mapper']['unbindElementFromMarkerName'](_0x4f7d0a,_0x2635f2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d021d=this['editor'],_0x186b38=_0x4d021d['locale'];function _0x1f165b(_0x5e6b87){return{'type':'format','content':o(_0x186b38,'*Format:*\x20%0',_0x5e6b87)};}_0x4d021d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x143734=>{if('formatBlock'!=_0x143734['type'])return;const {data:_0x2540bf}=_0x143734;if(_0x2540bf){if('setTableRowHeader'==_0x2540bf['commandName']){const _0x292aa8=_0x2540bf['commandParams'][0x0]['forceValue'];return _0x1f165b(o(_0x186b38,_0x292aa8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2540bf['commandName']){const _0x3d2578=_0x2540bf['commandParams'][0x0]['forceValue'];return _0x1f165b(o(_0x186b38,_0x3d2578?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x5e97e2=>[_0x5e97e2,null]));class vt extends _0x47a92c{static get['requires'](){return[St];}['afterInit'](){const _0x2faafe=this['editor'];if(!_0x2faafe['plugins']['has']('TableClipboard'))return;const _0x168fee=_0x2faafe['plugins']['get']('TrackChangesEditing'),_0x47f586=_0x2faafe['plugins']['get']('TableUtils'),_0x1d14a3=_0x2faafe['plugins']['get'](St),_0x38ec9d=_0x2faafe['plugins']['get']('TableClipboard');_0x1d14a3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2faafe['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2faafe['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3c0215=null;_0x2faafe['model']['on']('insertContent',(_0x5f3ea8,_0x55b340)=>{const [_0x55e5af,_0x49ab27]=_0x55b340,_0x1f0d8e=_0x55b340[_0x55b340['length']-0x1];_0x1f0d8e&&_0x1f0d8e['forceDefaultExecution']||_0x168fee['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x36a3a8,_0x56ceed,_0x5f3a4a,_0x371a38,_0x21a29e){if(_0x56ceed&&!_0x56ceed['is']('documentSelection'))return!0x1;const _0x17b22a=_0x21a29e['getTableIfOnlyTableInContent'](_0x36a3a8,_0x5f3a4a);if(!_0x17b22a||!we(_0x17b22a,void 0x0,_0x371a38))return!0x1;const _0xafbd5e=_0x371a38['getSelectionAffectedTableCells'](_0x5f3a4a['document']['selection']);if(!_0xafbd5e['length'])return!0x1;const _0x2a2e2f=_0xafbd5e[0x0]['findAncestor']('table'),_0x5337b0=_0x371a38['getRowIndexes'](_0xafbd5e),_0x377426=_0x371a38['getColumnIndexes'](_0xafbd5e),_0x371880={'startRow':_0x5337b0['first'],'endRow':_0x5337b0['last'],'startColumn':_0x377426['first'],'endColumn':_0x377426['last']};return 0x1==_0xafbd5e['length']&&(_0x371880['endRow']+=_0x371a38['getRows'](_0x17b22a)-0x1,_0x371880['endColumn']+=_0x371a38['getColumns'](_0x17b22a)-0x1),we(_0x2a2e2f,_0x371880,_0x371a38);}(_0x55e5af,_0x49ab27,_0x2faafe['model'],_0x47f586,_0x38ec9d)&&(_0x5f3ea8['stop'](),_0x3c0215={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2faafe['model']['change'](()=>{_0x2faafe['model']['insertContent'](_0x55b340[0x0],_0x55b340[0x1],_0x55b340[0x2],{'forceDefaultExecution':!0x0});const _0x578aed=_0x1e7cf0(),{rowInsertionRanges:_0x7dd739,columnInsertionRanges:_0x103546,insertionRanges:_0x509044,deletionRanges:_0x121ddd,cells:_0x4f8c41}=_0x3c0215;_0x7dd739['length']&&_0x168fee['markMultiRangeInsertion'](_0x7dd739,'tablePasteRow',{'tablePasteChainId':_0x578aed}),_0x103546['length']&&_0x168fee['markMultiRangeInsertion'](_0x103546,'tablePasteColumn',{'tablePasteChainId':_0x578aed}),_0x509044['length']&&(_0x168fee['markMultiRangeInsertion'](_0x509044,'tablePaste',{'tablePasteChainId':_0x578aed,'skipNestingCheck':!0x0}),_0x509044['forEach'](_0x1b369a=>_0x1b369a['detach']?.())),_0x121ddd['length']&&(_0x168fee['markMultiRangeDeletion'](_0x121ddd,'tablePaste',{'tablePasteChainId':_0x578aed,'skipNestingCheck':!0x0}),_0x121ddd['forEach'](_0x1a4208=>_0x1a4208['detach']?.()));const _0x1453af=_0x168fee['markMultiRangeBlockFormat'](_0x4f8c41['map'](({element:_0x1b81b8})=>_0x1b81b8),{'formatGroupId':_0x1e7cf0()},[],'tablePasteCell',{'tablePasteChainId':_0x578aed});if(_0x1453af){const _0x40ca44=_0x1453af['getMarkers'](),_0x5e5bb5=[];for(const {element:_0xb02be5,attributes:_0x2dd2f5}of _0x4f8c41){if(!_0x2dd2f5)continue;const _0x1a3147=_0x2faafe['model']['createRangeOn'](_0xb02be5),_0x4b11af=_0x40ca44['find'](_0xdda117=>_0xdda117['getRange']()['isEqual'](_0x1a3147));_0x4b11af&&_0x5e5bb5['push']([_0x4b11af['name'],_0x2dd2f5]);}_0x5e5bb5['length']&&_0x1453af['setAttribute']('markerAttributes',Object['fromEntries'](_0x5e5bb5));}_0x3c0215=null;}));},{'priority':_0x1be3ca['high']+0xa}),_0x2faafe['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x552b0d,_0x2f3a7a)=>{const [_0x2efa27,_0x54c220,,_0x11fff4]=_0x2f3a7a;if(!_0x3c0215)return;_0x552b0d['stop']();const _0x5a83de=_0x2efa27['cell'],_0x2cac68=_0x54c220,_0x45e405=Pe(_0x5a83de),_0x26e1ee=Pe(_0x2cac68);_0x552b0d['return']=_0x5a83de;let _0x197041=null,_0x46356d=null;if(_0x26e1ee||_0x45e405){if(_0x45e405&&!_0x26e1ee){_0x11fff4['remove'](_0x5a83de['getChild'](0x0));for(const _0x4d2e79 of Array['from'](_0x2cac68['getChildren']()))_0x11fff4['insert'](_0x4d2e79,_0x5a83de,'end');const _0x598eca=_0x3c0215['rowInsertionIndexes']['includes'](_0x2efa27['row']),_0x1085ac=_0x3c0215['columnInsertionIndexes']['includes'](_0x2efa27['column']);_0x598eca||_0x1085ac||(_0x197041=_0x92b86c['fromRange'](_0x11fff4['createRangeIn'](_0x5a83de)));}else _0x26e1ee&&!_0x45e405&&(_0x46356d=_0x11fff4['createRangeIn'](_0x5a83de));}else{const _0x2acf41=_0x11fff4['createElement']('tableCellSuggestion'),_0x4a2e85=_0x11fff4['createElement']('tableCellSuggestion');_0x11fff4['wrap'](_0x11fff4['createRangeIn'](_0x5a83de),_0x4a2e85),_0x11fff4['insert'](_0x2acf41,_0x5a83de,0x0);for(const _0x5f652 of Array['from'](_0x2cac68['getChildren']()))_0x11fff4['insert'](_0x5f652,_0x2acf41,'end');_0x197041=_0x92b86c['fromRange'](_0x11fff4['createRangeOn'](_0x2acf41)),_0x46356d=_0x92b86c['fromRange'](_0x11fff4['createRangeOn'](_0x4a2e85));}const _0x503113=Array['from'](_0x2cac68['getAttributes']())['filter'](([_0x460b82])=>ge['includes'](_0x460b82));_0x3c0215['cells']['push']({'element':_0x5a83de,'attributes':_0x503113['length']?Object['fromEntries'](_0x503113):null}),_0x197041&&_0x3c0215['insertionRanges']['push'](_0x197041),_0x46356d&&_0x3c0215['deletionRanges']['push'](_0x46356d);},{'priority':'high'}),_0x47f586['on']('insertColumns',(_0xd499a4,_0x49e9d0)=>{const [_0x3b1a24,_0x17f5aa={}]=_0x49e9d0;if(!_0x3c0215)return;const _0x2559ad=_0x17f5aa['at']||0x0,_0x5cad46=_0x17f5aa['columns']||0x1;_0x3c0215['columnInsertionIndexes']=new Array(_0x5cad46)['fill'](_0x2559ad)['map']((_0x3966c4,_0x5719a8)=>_0x3966c4+_0x5719a8);for(const {cell:_0x3bb943}of _0x47f586['createTableWalker'](_0x3b1a24,{'startColumn':_0x2559ad,'endColumn':_0x2559ad+_0x5cad46-0x1}))_0x3c0215['columnInsertionRanges']['push'](_0x2faafe['model']['createRangeOn'](_0x3bb943));},{'priority':'low'}),_0x47f586['on']('insertRows',(_0x48d84f,_0x2d9806)=>{const [_0x473949,_0x34b5aa={}]=_0x2d9806;if(!_0x3c0215)return;const _0x52fe9a=_0x34b5aa['at']||0x0,_0x3a95d4=_0x34b5aa['rows']||0x1;_0x3c0215['rowInsertionIndexes']=new Array(_0x3a95d4)['fill'](_0x52fe9a)['map']((_0xda2874,_0x6a77b4)=>_0xda2874+_0x6a77b4);for(const {cell:_0x58188f}of _0x47f586['createTableWalker'](_0x473949,{'startRow':_0x52fe9a,'endRow':_0x52fe9a+_0x3a95d4-0x1}))_0x3c0215['rowInsertionRanges']['push'](_0x2faafe['model']['createRangeOn'](_0x58188f));},{'priority':'low'}),_0x168fee['descriptionFactory']['registerDescriptionCallback'](_0x344afa=>{if(_0x344afa['subType']&&_0x344afa['subType']['startsWith']('tablePaste'))return _0x344afa['previous']?{}:{'type':'insertion','content':o(_0x2faafe['locale'],'*Replace\x20table\x20cells*')};});const _0x516793=()=>!0x1;for(const _0x51f2cd of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x168fee['_suggestionFactory']['registerCustomCallback']('insertion',_0x51f2cd,'join',_0x516793),_0x168fee['_suggestionFactory']['registerCustomCallback']('deletion',_0x51f2cd,'join',_0x516793),_0x168fee['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x51f2cd,'join',_0x516793);_0x168fee['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x516793),_0x168fee['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2be6bf,_0x5caa24,_0x192ba4)=>{const _0x4429ee=_0x2be6bf['map'](_0x39e674=>_0x39e674['getContainedElement']())['filter'](_0x537856=>_0x537856),_0x25ddb1=new Map(_0x4429ee['map'](_0x5e87fc=>[_0x5e87fc,null]));if(_0x3c0215){for(const {element:_0x389580,attributes:_0x5a5f86}of _0x3c0215['cells'])_0x5a5f86&&_0x25ddb1['set'](_0x389580,_0x5a5f86);}else{if(_0x192ba4&&_0x192ba4['markerAttributes'])for(const [_0x2b3788,_0x580973]of Object['entries'](_0x192ba4['markerAttributes'])){const _0x4563f6=_0x2faafe['model']['markers']['get'](_0x2b3788),_0xd58f6=_0x4563f6?_0x4563f6['getRange']()['getContainedElement']():null;_0xd58f6&&_0x25ddb1['set'](_0xd58f6,_0x580973);}}_0x2faafe['model']['change'](_0x1b7292=>{for(const [_0x16bbfa,_0x4d0d8a]of _0x25ddb1)_0x1b7292['setAttributes']({...Ce,..._0x4d0d8a},_0x16bbfa);});});const _0x2038a5=(_0x1cbfbe,_0x5626dc)=>{_0x168fee['_suggestionFactory']['registerCustomCallback'](_0x1cbfbe,'tablePaste',_0x5626dc,(_0x493023,_0x2e6dbd,_0x3f8be8)=>{_0x2faafe['model']['change'](_0x42e64d=>{const _0x4774aa=[];for(const _0x3ef50b of _0x493023){const _0x453979=_0x3ef50b['start']['nodeAfter'];_0x453979['is']('element','tableCellSuggestion')&&_0x4774aa['push'](_0x453979);}_0x168fee['_suggestionFactory']['getSuggestionCallback'](_0x1cbfbe,null,_0x5626dc)(_0x493023,_0x2e6dbd,_0x3f8be8);for(const _0xc40d1b of _0x4774aa)'$graveyard'!=_0xc40d1b['root']['rootName']&&_0x42e64d['unwrap'](_0xc40d1b);});});};_0x2038a5('insertion','accept'),_0x2038a5('insertion','discard'),_0x2038a5('deletion','accept'),_0x2038a5('deletion','discard'),_0x168fee['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1e2e5e=>{const _0x225bf2=_0x1e2e5e['map'](_0x1afb45=>_0x1afb45['getContainedElement']()),_0x290a4d=_0x225bf2[0x0]['findAncestor']('table'),{minRow:_0x4bd160,maxRow:_0x163086}=_0x1d14a3['_getCoordsForCells'](_0x225bf2);_0x47f586['removeRows'](_0x290a4d,{'at':_0x4bd160,'rows':_0x163086-_0x4bd160+0x1});}),_0x168fee['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x53b00b=>{const _0x39543c=_0x53b00b['map'](_0x215af9=>_0x215af9['getContainedElement']()),_0x24ca04=_0x39543c[0x0]['findAncestor']('table'),{minColumn:_0x176b09,maxColumn:_0xbcbb79}=_0x1d14a3['_getCoordsForCells'](_0x39543c);_0x47f586['removeColumns'](_0x24ca04,{'at':_0x176b09,'columns':_0xbcbb79-_0x176b09+0x1});});const _0x786546=(_0x43e559,_0x2ac058)=>{if(!_0x2ac058['subType']||!_0x2ac058['subType']['startsWith']('tablePaste'))return;const _0xd7c0e6=_0x2ac058['attributes']['tablePasteChainId'],_0x178759=_0x168fee['getSuggestions']()['filter'](_0x1fe3d0=>_0x1fe3d0['isInContent']&&_0x1fe3d0['attributes']&&_0x1fe3d0['attributes']['tablePasteChainId']==_0xd7c0e6);_0x178759['length']&&_0x2ac058['getAllAdjacentSuggestions']()['length']!=_0x178759['length']&&_0x178759['reduce']((_0x19f2bb,_0xbdff70)=>(_0x19f2bb['next']=_0xbdff70,_0xbdff70['previous']=_0x19f2bb,_0xbdff70));};function _0x3e1a6c(_0x40bb44,_0x573046=!0x0){const {id:_0x3667db}=_0x168fee['_splitMarkerName'](_0x40bb44['markerName']),_0x357f13=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5ea912=_0x168fee['activeMarkers']['includes'](_0x40bb44['markerName']);return _0x5ea912&&_0x357f13['push']('ck-suggestion-marker--active'),{'classes':_0x357f13,'attributes':{'data-suggestion':_0x3667db},'priority':_0x5ea912&&_0x573046?0xbc2:0xbb8};}_0x168fee['on']('suggestionLoaded',_0x786546,{'priority':'high'}),_0x168fee['on']('suggestionUnloaded',_0x786546,{'priority':'high'}),_0x2faafe['model']['document']['registerPostFixer'](()=>{let _0x2cb658=!0x1;const _0x2f2022=Array['from'](_0x2faafe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e6b3f,data:_0x38c666}of _0x2f2022){const {group:_0x8f2aa,type:_0x372a07,id:_0x2bf92e}=_0x168fee['_splitMarkerName'](_0x2e6b3f);if('suggestion'!=_0x8f2aa||'deletion'!=_0x372a07||_0x38c666['oldRange'])continue;if(!_0x168fee['hasSuggestion'](_0x2bf92e))continue;const _0x5d43f6=_0x168fee['getSuggestion'](_0x2bf92e)['getRanges'](),_0x121f17=_0x2faafe['plugins']['get']('Users')['me'];for(const _0x257314 of _0x168fee['getSuggestions']()){if(!_0x257314['isInContent']||_0x257314['author']!=_0x121f17)continue;if('formatBlock'!=_0x257314['type']||'tablePasteCell'!=_0x257314['subType'])continue;if(_0x257314['getRanges']()['every'](_0x14da97=>_0x5d43f6['some'](_0x303a8d=>_0x303a8d['containsRange'](_0x14da97,!0x0)))){for(const _0x41bd79 of _0x257314['getAllAdjacentSuggestions']())_0x41bd79['isInContent']&&(_0x41bd79['discard'](),_0x2cb658=!0x0);}}}return _0x2cb658;}),_0x2faafe['model']['document']['registerPostFixer'](_0x5046a0=>{const _0x394424=_0x2faafe['commands']['get']('redo');if(!_0x394424||!_0x394424['_createdBatches']['has'](_0x5046a0['batch']))return!0x1;let _0x709910=!0x1;const _0x24ce32=_0x2faafe['plugins']['get']('Users')['me'],_0x26c977=_0x2faafe['model']['document']['differ']['getChanges'](),_0x145b78=Array['from'](_0x2faafe['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x133014,data:_0x252c85})=>{const {group:_0xa50bd9,subType:_0x22fe09,authorId:_0x68c1c7}=_0x168fee['_splitMarkerName'](_0x133014);return'suggestion'==_0xa50bd9&&'tablePaste'==_0x22fe09&&_0x68c1c7==_0x24ce32['id']&&!_0x252c85['oldRange'];});for(const _0x5e1b8b of _0x26c977){if('insert'!=_0x5e1b8b['type']||'tableCellSuggestion'!=_0x5e1b8b['name']||0x1!=_0x5e1b8b['length'])continue;const _0x30a946=_0x5046a0['createRange'](_0x5e1b8b['position'],_0x5e1b8b['position']['getShiftedBy'](0x1));if(!_0x145b78['find'](({data:_0x2f4a93})=>_0x2f4a93['newRange']['isEqual'](_0x30a946))){for(const {name:_0x4dbeed,data:_0x22e233}of _0x145b78)if(_0x30a946['containsRange'](_0x22e233['newRange'])){_0x5046a0['updateMarker'](_0x4dbeed,{'range':_0x30a946}),_0x709910=!0x0;break;}}}return _0x709910;}),_0x2faafe['model']['document']['registerPostFixer'](_0x415d12=>{let _0x361452=!0x1;const _0x1915d6=_0x2faafe['plugins']['get']('Users')['me'],_0x47bab9=_0x168fee['getSuggestions']()['filter'](_0x2291b2=>_0x2291b2['isInContent']&&_0x2291b2['author']==_0x1915d6),_0x27e77b=new Set(),_0x26262a=new Set();for(const _0x548159 of _0x47bab9)if('tablePaste'==_0x548159['subType'])for(const _0x398f98 of _0x548159['getMarkers']()){const _0xd367f3=_0x398f98['getRange']()['getContainedElement']();if(_0xd367f3){if(_0xd367f3['is']('element','tableCellSuggestion')&&Pe(_0xd367f3)){_0x548159['removeMarker'](_0x398f98['name']),_0x27e77b['add'](_0xd367f3),_0x361452=!0x0;const _0x3733b8=_0xd367f3['nextSibling'],_0x2c97e6=_0xd367f3['previousSibling'],_0x24654f=_0x3733b8&&_0x3733b8['is']('element','tableCellSuggestion'),_0x36feac=_0x2c97e6&&_0x2c97e6['is']('element','tableCellSuggestion');_0x24654f&&!_0x27e77b['has'](_0x3733b8)&&_0x26262a['add'](_0x3733b8),_0x36feac&&!_0x27e77b['has'](_0x2c97e6)&&_0x26262a['add'](_0x2c97e6);}else _0xd367f3['is']('element','paragraph')&&_0xd367f3['isEmpty']&&(_0x548159['removeMarker'](_0x398f98['name']),_0x361452=!0x0);}}else{if('tablePasteCell'==_0x548159['subType']){if(!_0x548159['attributes']||!_0x548159['attributes']['tablePasteChainId'])continue;const _0x397cd2=_0x548159['attributes']['markerAttributes'];if(_0x397cd2&&Object['keys'](_0x397cd2)['length'])continue;const _0x5c385e=_0x548159['attributes']['tablePasteChainId'];let _0x228655=!0x0,_0x2c31e3=!0x0;for(const _0x1e373b of _0x47bab9)if(_0x1e373b['subType']&&_0x1e373b['subType']['startsWith']('tablePaste')){if(!_0x1e373b['attributes']['tablePasteChainId']){_0x2c31e3=!0x1;break;}if(_0x1e373b['id']!=_0x548159['id']&&_0x1e373b['attributes']['tablePasteChainId']==_0x5c385e){_0x228655=!0x1;break;}}_0x2c31e3&&_0x228655&&(_0x548159['removeMarkers'](),_0x361452=!0x0);}}for(const _0x38a188 of _0x27e77b)_0x415d12['remove'](_0x38a188);for(const _0x38dc15 of _0x26262a)_0x415d12['unwrap'](_0x38dc15);return _0x361452;}),_0x2faafe['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3543db,_0x409742)=>_0x3e1a6c(_0x3543db),'converterPriority':'high'}),_0x2faafe['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x189753,_0x5a8edd)=>_0x5a8edd['options']['showSuggestionHighlights']?_0x3e1a6c(_0x189753,!0x1):null,'converterPriority':'high'});const _0xccf26c=_0x2faafe['editing']['view'];this['listenTo'](_0xccf26c['document'],'clipboardOutput',(_0x43ffb2,_0x45f12e)=>{const _0x52e2b8=[];for(const _0x391341 of _0xccf26c['createRangeIn'](_0x45f12e['content'])['getItems']())_0x391341['is']('element','suggestion-td')&&_0x52e2b8['push'](_0x391341);_0xccf26c['change'](_0xe7e647=>{for(const _0x3bd997 of _0x52e2b8)_0xe7e647['move'](_0xe7e647['createRangeIn'](_0x3bd997),_0xe7e647['createPositionBefore'](_0x3bd997)),_0xe7e647['remove'](_0x3bd997);});});}}function Pe(_0x3e01a7){if(_0x3e01a7['isEmpty'])return!0x0;const _0x31c241=_0x3e01a7['getChild'](0x0);return _0x31c241['is']('element','paragraph')&&_0x31c241['isEmpty'];}function we(_0x2c3964,_0x3d63c2={},_0x515682){for(const {isAnchor:_0x1dc487,cellHeight:_0x47ea20,cellWidth:_0x2013a7}of _0x515682['createTableWalker'](_0x2c3964,{'includeAllSlots':!0x0,..._0x3d63c2}))if(!_0x1dc487||0x1!=_0x47ea20||0x1!=_0x2013a7)return!0x1;return!0x0;}class Ct extends _0x47a92c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x30aa87=this['editor']['plugins']['get']('TrackChangesEditing');_0x30aa87['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x30aa87['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x30aa87['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x30aa87['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x30aa87['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x30aa87['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x24d0f9,_0x301539){const _0x247c7e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbafbce=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x259dbf=_0x301539['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x296015=_0xbafbce['getColumnGroupElement'](_0x259dbf);let _0x5246a7=_0x296015?_0xbafbce['getTableColumnsWidths'](_0x296015):null,_0x2a290c=_0x259dbf['getAttribute']('tableWidth')||null;const _0x53515b=_0x301539['tableWidth']||_0x2a290c,_0x569a63=_0x301539['columnWidths']||_0x5246a7,_0x1a4f6e=this['editor']['plugins']['get']('Users')['me'];for(const _0x130556 of _0x247c7e['getSuggestions']()){const _0x34f80b=_0x130556['getContainedElement']();if('resizeTable'===_0x130556['subType']&&_0x34f80b===_0x259dbf){_0x130556['author']!==_0x1a4f6e&&_0x130556['discard']();const _0x610b5d=_0x130556['data']['commandParams'];_0x2a290c=_0x610b5d[0x0]['tableWidth'],_0x5246a7=_0x610b5d[0x0]['columnWidths'];break;}}_0x24d0f9({'table':_0x259dbf,'tableWidth':_0x53515b,'columnWidths':_0x569a63}),_0x247c7e['markBlockFormat'](_0x259dbf,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2a290c,'columnWidths':_0x5246a7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4c46cf){if('formatBlock'!=_0x4c46cf['type']&&'formatInline'!=_0x4c46cf['type'])return;const {data:_0x1ed24f}=_0x4c46cf;if(_0x1ed24f&&'resizeTable'===_0x1ed24f['formatGroupId']){const _0x335e22='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x335e22)};}}}class _t extends _0x47a92c{['afterInit'](){const _0x3f8105=this['editor'];_0x3f8105['plugins']['has']('Template')&&_0x3f8105['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Dt extends _0x47a92c{['afterInit'](){const _0x5a529e=this['editor'];if(!_0x5a529e['commands']['get']('insertTableOfContents'))return;_0x5a529e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4d6c85=_0x5a529e['plugins']['get']('TrackChangesEditing'),_0x486420=_0x5a529e['locale'];_0x4d6c85['descriptionFactory']['registerElementLabel']('tableOfContents',_0x595f7e=>o(_0x486420,'ELEMENT_TABLE_OF_CONTENTS',_0x595f7e));}}class Nt extends _0x47a92c{['afterInit'](){const _0x4d8fc3=this['editor'];if(!_0x4d8fc3['plugins']['has']('Title'))return;const _0x1c723b=_0x4d8fc3['plugins']['get']('TrackChangesEditing');_0x1c723b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4d8fc3['locale'],'ELEMENT_TITLE')),_0x4d8fc3['model']['document']['registerPostFixer'](_0x4aa620=>{let _0x21550c=!0x1;const _0x5b050f=Array['from'](_0x4d8fc3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x356a04,data:_0x4e248b}of _0x5b050f){const {group:_0x7f1a22}=_0x1c723b['_splitMarkerName'](_0x356a04);if('suggestion'!==_0x7f1a22||!_0x4e248b['newRange'])continue;const _0x35be2c=_0x4e248b['newRange'],_0x146152=_0x35be2c['end']['nodeBefore'];if(!_0x146152||!_0x146152['is']('element','title-content'))continue;if(!_0x35be2c['start']['isTouching'](_0x35be2c['end']))continue;const _0x5ed9a7=_0x4d8fc3['model']['schema']['getNearestSelectionRange'](_0x35be2c['end'],'forward');if(_0x5ed9a7&&_0x5ed9a7['isCollapsed']){const _0x287589=_0x4aa620['createRange'](_0x35be2c['start'],_0x5ed9a7['start']);_0x287589['isEqual'](_0x35be2c)||(_0x4aa620['updateMarker'](_0x356a04,{'range':_0x287589}),_0x21550c=!0x0);}_0x21550c||(_0x4aa620['removeMarker'](_0x356a04),_0x21550c=!0x0);}return _0x21550c;});}}class Mt extends _0x47a92c{['afterInit'](){const _0x4fb053=this['editor'],_0x5bf3fc=_0x4fb053['plugins']['get']('TrackChangesEditing');_0x4fb053['plugins']['has']('UndoEditing')&&(_0x5bf3fc['enableCommand']('undo'),_0x5bf3fc['enableCommand']('redo'));}}class $t extends _0x47a92c{static get['requires'](){return[St];}['afterInit'](){const _0x81c828=this['editor'];if(!_0x81c828['plugins']['has']('TableCaptionEditing'))return;_0x81c828['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Bt extends _0x47a92c{['tableProperties'];['tableCellProperties'];constructor(_0x2595bd){super(_0x2595bd),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 _0x33b4fe=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4e810b of this['tableProperties'])_0x33b4fe['enableCommand'](_0x4e810b,(_0x4b8887,_0x30a1cc)=>{const _0x11dde3=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4e810b,[_0x11dde3],this['tableProperties'],'tableProperties',_0x4b8887,_0x30a1cc);});_0x33b4fe['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x33b4fe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x33b4fe['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2617ff,_0x322503)=>this['handleDiscardAction'](this['tableProperties'],_0x2617ff,_0x322503)),_0x33b4fe['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x52ce63 of this['tableCellProperties'])_0x33b4fe['enableCommand'](_0x52ce63,(_0x57ba0e,_0x147c68)=>{const _0x2080fe=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x52ce63,_0x2080fe,this['tableCellProperties'],'tableCellProperties',_0x57ba0e,_0x147c68);});_0x33b4fe['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x33b4fe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x33b4fe['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x480155,_0x3ed518)=>this['handleDiscardAction'](this['tableCellProperties'],_0x480155,_0x3ed518)),_0x33b4fe['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x33b4fe['descriptionFactory']['registerDescriptionCallback'](_0x4edad7=>this['handleSuggestionDescription'](_0x4edad7));}['_handlePropertyChange'](_0x38fd6f,_0x4c512e,_0x55fb6a,_0x38de65,_0x4b73a7,_0x571103){const _0x247e0c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x571103['batch'],()=>{for(const _0x15c35d of _0x4c512e){if(this['_getSuggestion'](_0x15c35d,_0x38de65))_0x4b73a7(_0x571103);else{const _0x35c4df={};for(const _0x3cc09c of _0x55fb6a){const _0x5bd088=_0x15c35d['getAttribute'](_0x3cc09c);void 0x0!==_0x5bd088&&(_0x35c4df[_0x3cc09c]=_0x5bd088);}_0x4b73a7(_0x571103),_0x247e0c['markBlockFormat'](_0x15c35d,{'commandParams':[_0x35c4df]},[],_0x38de65);}}});}['handleDiscardAction'](_0x54a6f4,_0x2fcbf9,_0x3c4e4e){const _0x546fa1=_0x2fcbf9[0x0]['start']['nodeAfter'],_0x120a8b=_0x3c4e4e['commandParams'][0x0];this['editor']['model']['change'](_0x37c5e8=>{for(const _0x15462d of _0x54a6f4)void 0x0!==_0x120a8b[_0x15462d]?_0x37c5e8['setAttribute'](_0x15462d,_0x120a8b[_0x15462d],_0x546fa1):_0x37c5e8['removeAttribute'](_0x15462d,_0x546fa1);});}['handleSuggestionDescription'](_0x45eacf){if(_0x45eacf['data'])switch(_0x45eacf['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'](_0x581e08,_0x51414a){const _0x222e16=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x23c8f1 of _0x222e16['getSuggestions']({'skipNotAttached':!0x0})){const _0x11a91f=_0x23c8f1['getContainedElement']();if(_0x23c8f1['subType']===_0x51414a&&_0x11a91f===_0x581e08)return _0x23c8f1;}return null;}}const m='$elementName';class p extends _0x47a92c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x21e51f,_0x30474c,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,mt,ct,z,pe,ft,gt,lt,dt,pt,kt,bt,wt,yt,jt,St,At,It,$t,vt,Ct,Dt,Bt,_t,Nt,Mt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x172a4b){function _0x1da737(_0x325a9f){return _0x325a9f['map'](_0x59fe5c=>String['fromCharCode'](_0x59fe5c))['join']('');}super(_0x172a4b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x29222d,_0x4d042d,_0x4ff36c,_0x594d05)=>{this['_model']['change'](()=>{for(const _0x4beada of[..._0x594d05,..._0x4ff36c])this['_model']['markers']['has'](_0x4beada)&&_0x172a4b['editing']['reconvertMarker'](_0x4beada);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Rt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x172a4b['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(),_0x172a4b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x172a4b['config']['get']('trackChanges.trackFormatChanges'),_0x172a4b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x172a4b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x172a4b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1da737([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1da737([0x34,0x30,0x34,0x38,0x31,0x34,0x34,0x34]);}['init'](){const _0xbe090f=this['editor'],_0x3d3a57=(_0x3dc834,_0xe9d707)=>{if('attribute'!=_0x3dc834)return'ck-suggestion-marker-'+_0x3dc834;const _0x2e9968=_0xe9d707['split']('|')[0x0];return this['_isBlockAttribute'](_0x2e9968)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xbe090f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1113fd=>{const {id:_0x4d57f9,type:_0x545365,subType:_0x20c50f}=this['_splitMarkerName'](_0x1113fd['markerName']),_0x5ebb50=['ck-suggestion-marker',_0x3d3a57(_0x545365,_0x20c50f)];let _0x3e2eff=0xbb8;return this['activeMarkers']['includes'](_0x1113fd['markerName'])&&(_0x5ebb50['push']('ck-suggestion-marker--active'),_0x3e2eff=0xbc2),'deletion'==_0x545365&&(_0x3e2eff+=0x5),{'classes':_0x5ebb50,'attributes':{'data-suggestion':_0x4d57f9},'priority':_0x3e2eff};}}),_0xbe090f['conversion']['for']('dataDowncast')['add'](_0x1d2767=>{_0x1d2767['on']('addMarker:suggestion',(_0x5231b5,_0x204c88,_0xa9ccab)=>{if(!_0xa9ccab['options']['showSuggestionHighlights'])return;const _0x9951dd=_0x204c88['item'];if(!_0x9951dd)return;const _0x43b9b2=_0xa9ccab['mapper']['toViewElement'](_0x9951dd);_0xbe090f['model']['schema']['isObject'](_0x9951dd)&&_0x43b9b2&&!_0x43b9b2['getCustomProperty']('widget')&&_0x43b9b2['is']('containerElement')&&_0x5d24ed(_0x43b9b2,_0xa9ccab['writer']);},{'priority':'high'});}),_0xbe090f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4e800b,_0x1d6839)=>{if(!_0x1d6839['options']['showSuggestionHighlights'])return null;const {type:_0x251115,subType:_0x1bcece}=this['_splitMarkerName'](_0x4e800b['markerName']);return{'classes':['ck-suggestion-marker',_0x3d3a57(_0x251115,_0x1bcece)],'priority':0xbb8};}});const _0x1211d0=({showActiveMarkers:_0x5ed127=!0x0,isAttributeSuggestion:_0x5a2c05=!0x1}={})=>(_0x87a7f4,_0x17a920,_0x4c01b5)=>{if(!_0x17a920['item'])return;const {id:_0x218ec5}=this['_splitMarkerName'](_0x17a920['markerName']);if(_0x5a2c05){const _0x18b4e6=this['_suggestions']['get'](_0x218ec5),_0x1aeda5=this['_getAttributeKey'](_0x18b4e6);if(!this['_isBlockAttribute'](_0x1aeda5))return;}if(_0x17a920['item']['is']('selection'))return void _0x4c01b5['consumable']['consume'](_0x17a920['item'],_0x87a7f4['name']);const _0xa4fa7a=_0x4c01b5['mapper']['toViewElement'](_0x17a920['item']);if(_0x17a920['item']['is']('element')&&_0xbe090f['model']['schema']['isBlock'](_0x17a920['item'])&&!_0xa4fa7a['getCustomProperty']('addHighlight')){_0x4c01b5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xa4fa7a),_0x4c01b5['writer']['setAttribute']('data-suggestion',_0x218ec5,_0xa4fa7a),_0x4c01b5['mapper']['bindElementToMarker'](_0xa4fa7a,_0x17a920['markerName']),_0x5ed127&&(this['activeMarkers']['includes'](_0x17a920['markerName'])?_0x4c01b5['writer']['addClass']('ck-suggestion-marker--active',_0xa4fa7a):_0x4c01b5['writer']['removeClass']('ck-suggestion-marker--active',_0xa4fa7a));for(const _0x1587d5 of _0xbe090f['model']['createRangeIn'](_0x17a920['item'])['getItems']())_0x4c01b5['consumable']['consume'](_0x1587d5,_0x87a7f4['name']);_0x4c01b5['consumable']['consume'](_0x17a920['item'],_0x87a7f4['name']);}};_0xbe090f['conversion']['for']('dataDowncast')['add'](_0x36f315=>{_0x36f315['on']('addMarker:suggestion:formatBlock',(_0x315901,_0x229680,_0x50d7ff)=>{_0x50d7ff['options']['showSuggestionHighlights']&&_0x1211d0({'showActiveMarkers':!0x1})(_0x315901,_0x229680,_0x50d7ff);},{'priority':'highest'});}),_0xbe090f['conversion']['for']('dataDowncast')['add'](_0x1ee31f=>{_0x1ee31f['on']('addMarker:suggestion:attribute',(_0x85d1bb,_0x3240e4,_0x11d83c)=>{_0x11d83c['options']['showSuggestionHighlights']&&_0x1211d0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x85d1bb,_0x3240e4,_0x11d83c);},{'priority':'highest'});}),_0xbe090f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5af5a0,_0x5125ff)=>_0x5125ff['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5af5a0['substr'](0xb)}}),_0xbe090f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5d9364,{writer:_0x32e01c})=>{let _0x237950='suggestion:'+_0x5d9364['getAttribute']('suggestion-type')+':'+_0x5d9364['getAttribute']('id');return _0x5d9364['getAttribute']('marker-count')&&(_0x237950+=':'+_0x5d9364['getAttribute']('marker-count')),_0x32e01c['createElement']('$marker',{'data-name':_0x237950});}}),_0xbe090f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xbe090f['conversion']['for']('editingDowncast')['add'](_0x3f183f=>{_0x3f183f['on']('addMarker:suggestion:formatBlock',_0x1211d0(),{'priority':'high'});}),_0xbe090f['conversion']['for']('editingDowncast')['add'](_0x34193f=>{_0x34193f['on']('addMarker:suggestion:attribute',_0x1211d0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xbe090f['conversion']['for']('editingDowncast')['add'](_0x36d029=>{_0x36d029['on']('removeMarker:suggestion:formatBlock',(_0x46155d,_0xdfccef,_0xa11ff9)=>{const _0x2ad4e0=_0xa11ff9['mapper']['markerNameToElements'](_0xdfccef['markerName']);if(_0x2ad4e0){for(const _0x5b9f67 of _0x2ad4e0)_0x5b9f67['getCustomProperty']('addHighlight')||(_0xa11ff9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5b9f67),_0xa11ff9['writer']['removeAttribute']('data-suggestion',_0x5b9f67),_0xa11ff9['mapper']['unbindElementFromMarkerName'](_0x5b9f67,_0xdfccef['markerName']));}},{'priority':'high'});}),_0xbe090f['conversion']['for']('editingDowncast')['add'](_0x390768=>{_0x390768['on']('removeMarker:suggestion:attribute',(_0x463014,_0x45c2c8,_0x32e621)=>{const _0x148471=_0x32e621['mapper']['markerNameToElements'](_0x45c2c8['markerName']);if(!_0x148471)return;const {id:_0x181a7f}=this['_splitMarkerName'](_0x45c2c8['markerName']),_0x550d1c=this['_suggestions']['get'](_0x181a7f),_0xd0bf3=this['_getAttributeKey'](_0x550d1c);if(this['_isBlockAttribute'](_0xd0bf3)){for(const _0x1bffa1 of _0x148471)_0x1bffa1['getCustomProperty']('addHighlight')||(_0x32e621['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1bffa1),_0x32e621['writer']['removeAttribute']('data-suggestion',_0x1bffa1),_0x32e621['mapper']['unbindElementFromMarkerName'](_0x1bffa1,_0x45c2c8['markerName']));}},{'priority':'high'});}),_0xbe090f['model']['document']['registerPostFixer'](_0x180ecd=>{let _0x2953a8=!0x1;const _0x1a55ad=Array['from'](_0xbe090f['model']['document']['differ']['getChangedMarkers']()),_0x53bdca=new Set();for(const {name:_0x270029,data:_0x1780f0}of _0x1a55ad){const {group:_0x1be3e2,type:_0x4cb2e5,subType:_0x2e39ca,id:_0x5f521a}=this['_splitMarkerName'](_0x270029);if('suggestion'!==_0x1be3e2)continue;const _0x4bfd43=this['_suggestions']['get'](_0x5f521a);if(null!=_0x1780f0['newRange']){'formatInline'==_0x4cb2e5&&(_0x2953a8=_0x2953a8||Vt(_0x1780f0['newRange'],_0x270029,_0x180ecd,_0xbe090f['model']['schema']));const _0x1ab189='attribute'==_0x4cb2e5&&this['_isBlockAttribute'](_0x2e39ca['split']('|')[0x0]);if(_0x1780f0['newRange']['isCollapsed']||'$graveyard'==_0x1780f0['newRange']['root']['rootName']||'formatBlock'==_0x4cb2e5&&!Ot(_0x1780f0['newRange'])||_0x1ab189&&!Ot(_0x1780f0['newRange'])||'deletion'==_0x4cb2e5&&!(!Et(_0xc28621=_0x1780f0['newRange'])&&!function(_0x269246){return _0x269246['start']['parent']==_0x269246['end']['nodeBefore']&&_0x269246['start']['isAtEnd'];}(_0xc28621)))_0x180ecd['removeMarker'](_0x270029),_0x2953a8=!0x0;else{if(!_0x4bfd43||!_0x4bfd43['isInContent'])continue;_0x53bdca['add'](_0x4bfd43);}}}var _0xc28621;return _0x53bdca['size']>0x0&&(_0x2953a8=!!this['_joinWithAdjacentSuggestions'](_0x53bdca)||_0x2953a8),_0x2953a8;}),_0xbe090f['model']['document']['registerPostFixer'](_0x1a991a=>{let _0x4a1d94=!0x1;for(const _0x2dde21 of _0xbe090f['model']['document']['differ']['getChanges']())if('insert'==_0x2dde21['type'])for(const _0x5c7e2b of this['_suggestions']['values']()){if(_0x5c7e2b['isMultiRange']||!_0x5c7e2b['isInContent'])continue;const _0x422387='formatBlock'==_0x5c7e2b['type'],_0x53cc36=this['_getAttributeKey'](_0x5c7e2b),_0x474e6e=_0x53cc36&&this['_isBlockAttribute'](_0x53cc36);if(!_0x422387&&!_0x474e6e)continue;const _0x2bdf61=_0x5c7e2b['getFirstRange']();if(_0x2bdf61['start']['parent']!=_0x2bdf61['end']['parent']&&!_0x2bdf61['end']['isAtEnd']){const _0x1243c6=_0xbe090f['model']['createPositionAt'](_0x2bdf61['start']['nodeAfter'],'end'),_0x29fe13=_0xbe090f['model']['createRange'](_0x2bdf61['start'],_0x1243c6);_0x1a991a['updateMarker'](_0x5c7e2b['getFirstMarker'](),{'range':_0x29fe13}),_0x4a1d94=!0x0;}}return _0x4a1d94;}),_0xbe090f['model']['document']['registerPostFixer'](_0x31d71e=>this['_processAttributeChanges'](_0x31d71e)),_0xbe090f['model']['document']['registerPostFixer'](_0x34b46f=>!_0x34b46f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x34b46f)),_0xbe090f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xbe090f['model']['document']['on']('change:data',(_0x5b08d3,_0x1a9f98)=>{if(!_0x1a9f98['isLocal']||_0x1a9f98['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2b24e0=_0xbe090f['model']['document']['differ']['getChanges']();if(0x0==_0x2b24e0['length'])return;const _0x39775c=[],_0x578ab2=_0x2b24e0['filter'](_0x156b99=>'attribute'==_0x156b99['type']),_0x29483d=_0x2b24e0['filter'](_0x2a908c=>'insert'==_0x2a908c['type']&&'$text'!=_0x2a908c['name']);for(const _0xc7fc82 of _0x578ab2)this['_isRegisteredAttribute'](_0xc7fc82['attributeKey'])&&_0x39775c['push']({'key':_0xc7fc82['attributeKey'],'newValue':_0xc7fc82['attributeNewValue'],'oldValue':_0xc7fc82['attributeOldValue'],'range':Gt(_0xc7fc82['range'],_0xbe090f['model'])});for(const _0x573d2d of _0x29483d){if('rename'!=_0x573d2d['action']&&'refresh'!=_0x573d2d['action'])continue;const _0x15e2a5=Ft(_0x573d2d['position']['nodeAfter'],_0xbe090f['model']),_0x2d7fe4=_0x573d2d['before'];'rename'==_0x573d2d['action']&&_0x39775c['push']({'key':m,'newValue':_0x573d2d['name'],'oldValue':_0x2d7fe4['name'],'range':_0x15e2a5});for(const [_0xb0d560,_0x474335]of _0x2d7fe4['attributes']){if(!this['_isRegisteredAttribute'](_0xb0d560))continue;const _0x1fc4f7=_0x573d2d['attributes']['get'](_0xb0d560);_0x474335!==_0x1fc4f7&&_0x39775c['push']({'key':_0xb0d560,'newValue':_0x1fc4f7,'oldValue':_0x474335,'range':_0x15e2a5});}for(const [_0x48fa15,_0x5ad397]of _0x573d2d['attributes'])this['_isRegisteredAttribute'](_0x48fa15)&&(_0x2d7fe4['attributes']['has'](_0x48fa15)||_0x39775c['push']({'key':_0x48fa15,'newValue':_0x5ad397,'oldValue':null,'range':_0x15e2a5}));}0x0!=_0x39775c['length']&&_0xbe090f['model']['enqueueChange'](_0x1a9f98,_0x512111=>{const _0x289630=_0x1e7cf0();for(const {range:_0x1e3a5f,key:_0x66d15a,oldValue:_0x1597df,newValue:_0x4f0747}of _0x39775c)this['markAttributeChange'](_0x1e3a5f,_0x66d15a,_0x1597df,_0x4f0747,{'groupId':_0x289630});this['_reduceExistingSuggestions'](_0x512111,_0x39775c);});},{'priority':'lowest'}),_0xbe090f['model']['markers']['on']('update:suggestion',(_0x2b5664,_0x21e9fc,_0x1c04db)=>{if(null==_0x1c04db){const {id:_0x4856e3}=this['_splitMarkerName'](_0x21e9fc['name']),_0x4255c7=this['_suggestions']['get'](_0x4856e3);_0x4255c7&&_0x4255c7['addMarkerName'](_0x21e9fc['name']);}}),_0xbe090f['model']['document']['on']('change:data',()=>{const _0x344b48=Array['from'](_0xbe090f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5ecaaf=>'suggestion'===this['_splitMarkerName'](_0x5ecaaf['name'])['group']);if(0x0===_0x344b48['length'])return;_0x344b48['sort']((_0x5ec636,_0x5098e4)=>{const _0x1e309e=_0x5ec636['data']['oldRange'],_0x773fad=_0x5098e4['data']['oldRange'];return null===_0x1e309e&&null===_0x773fad?0x0:null===_0x1e309e&&null!==_0x773fad?-0x1:null!==_0x1e309e&&null===_0x773fad?0x1:_0x1e309e['start']['isBefore'](_0x773fad['start'])?-0x1:0x1;});const _0x5f1fa0=new Set(),_0x163f27=new Set();for(const {name:_0x2de749,data:_0x40cdb5}of _0x344b48){const {id:_0x3a9dff}=this['_splitMarkerName'](_0x2de749);if(null===_0x40cdb5['oldRange']){const _0x3ecf75=this['_handleNewSuggestionMarker'](_0x2de749);_0x163f27['add'](_0x3ecf75);}else{const _0x41f291=this['_suggestions']['get'](_0x3a9dff);null!==_0x40cdb5['newRange']||_0x41f291['isInContent']?(_0x5f1fa0['add'](_0x41f291['head']),_0x163f27['add'](_0x41f291)):this['_removeSuggestion'](_0x41f291);}}_0x163f27['size']>0x0&&this['_refreshSuggestionsChain'](_0x163f27);for(const _0x41643e of _0x5f1fa0)this['fire']('suggestionChanged',_0x41643e);}),_0xbe090f['model']['on']('applyOperation',(_0x1ebb22,_0x3ee482)=>{const _0x4dae41=_0x3ee482[0x0];if(!this['_suggestions']['size'])return;if(!_0x4dae41['isDocumentOperation'])return;if(_0x4dae41['batch']['isUndo']||!_0x4dae41['batch']['isLocal'])return;let _0x1c1aa5,_0x4d0ede;switch(_0x4dae41['type']){case'insert':_0x1c1aa5=_0xbe090f['model']['createPositionAt'](_0x4dae41['position']),_0x4d0ede=_0x1c1aa5['getShiftedBy'](_0x4dae41['howMany']);break;case'split':_0x1c1aa5=_0xbe090f['model']['createPositionAt'](_0x4dae41['splitPosition']),_0x4d0ede=_0xbe090f['model']['createPositionAt'](_0x4dae41['moveTargetPosition']);break;case'move':_0x1c1aa5=_0xbe090f['model']['createPositionAt'](_0x4dae41['targetPosition']),_0x4d0ede=_0x1c1aa5['getShiftedBy'](_0x4dae41['howMany']);break;default:return;}const _0x34beb8=_0xbe090f['model']['createRange'](_0x1c1aa5,_0x4d0ede);_0xbe090f['model']['change'](()=>{for(const {suggestion:_0x3058c8,meta:_0x4245e6}of this['_findSuggestions'](_0x34beb8)){if(_0x3058c8['isMultiRange'])continue;if('formatInline'==_0x3058c8['type'])continue;const _0x58a3ff=this['_getAttributeKey'](_0x3058c8);if(_0x58a3ff&&this['_isBlockAttribute'](_0x58a3ff)&&'split'!=_0x4dae41['type'])continue;const _0x586371=_0x3058c8['data']&&_0x3058c8['data']['multipleBlocks'];('formatBlock'!=_0x3058c8['type']||'split'==_0x4dae41['type']&&!_0x586371)&&(_0x4245e6['containsRangeInObject']||'insertion'==_0x3058c8['type']&&_0x4245e6['isOwn']||_0x3058c8['getFirstRange']()['containsRange'](_0x34beb8)&&this['_breakSuggestionMarker'](_0x3058c8,_0x1c1aa5,_0x4d0ede));}});},{'priority':'lowest'}),_0xbe090f['model']['on']('deleteContent',(_0x37ad4f,_0x24a2e7)=>{const _0x271fdc=_0x24a2e7[0x0],_0x5dd676=_0x24a2e7[0x1];if(_0x5dd676&&_0x5dd676['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x271fdc['isCollapsed'])return;const _0x290a9f=_0xbe090f['model']['schema'],{start:_0x70893b,end:_0x3c12e2}=_0x271fdc['getFirstRange'](),_0x3c2fcb=_0x70893b['nodeAfter']&&_0x290a9f['isLimit'](_0x70893b['nodeAfter'])?null:_0x290a9f['getNearestSelectionRange'](_0x70893b,'forward'),_0x2dd83b=_0x3c12e2['nodeBefore']&&_0x290a9f['isLimit'](_0x3c12e2['nodeBefore'])?null:_0x290a9f['getNearestSelectionRange'](_0x3c12e2,'backward'),_0x2b92fa=_0xbe090f['model']['createRange'](_0x3c2fcb?_0x3c2fcb['start']:_0x70893b,_0x2dd83b?_0x2dd83b['end']:_0x3c12e2);_0xbe090f['model']['change'](_0x2dfc1d=>{this['markDeletion'](_0x2b92fa);const _0x3008dd=_0xbe090f['model']['schema']['getNearestSelectionRange'](_0x2b92fa['start']);_0x271fdc['is']('documentSelection')?_0x2dfc1d['setSelection'](_0x3008dd):_0x271fdc['setTo'](_0x3008dd);}),_0x37ad4f['stop']();},{'priority':_0x1be3ca['normal']+0xa}),_0xbe090f['model']['on']('insertContent',(_0x25ee2c,_0x384941)=>{const _0x413c9c=_0x384941[_0x384941['length']-0x1];_0x413c9c&&_0x413c9c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xbe090f['model']['change'](()=>{let _0x1bd185=_0xbe090f['model']['insertContent'](_0x384941[0x0],_0x384941[0x1],_0x384941[0x2],{'forceDefaultExecution':!0x0});if(!_0x1bd185)return;_0x25ee2c['return']=_0x1bd185['clone']();const _0x26b13a=_0x1bd185['end']['nodeBefore'],_0x340e89=_0xbe090f['model']['schema'];_0x26b13a&&_0x340e89['isBlock'](_0x26b13a)&&!_0x340e89['isObject'](_0x26b13a)&&(_0x1bd185=_0xbe090f['model']['createRange'](_0x1bd185['start'],_0xbe090f['model']['createPositionAt'](_0x26b13a,'end'))),this['markInsertion'](_0x1bd185);}),_0x25ee2c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x34ffe0=new $(_0xbe090f,this['_suggestions']);_0xbe090f['commands']['add']('acceptSuggestion',_0x34ffe0),this['enableCommand']('acceptSuggestion');const _0x3f2bf9=new B(_0xbe090f,this['_suggestions']);_0xbe090f['commands']['add']('discardSuggestion',_0x3f2bf9),this['enableCommand']('discardSuggestion'),_0xbe090f['commands']['add']('acceptAllSuggestions',new x(_0xbe090f,_0x34ffe0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xbe090f['commands']['add']('discardAllSuggestions',new x(_0xbe090f,_0x3f2bf9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xbe090f['commands']['add']('acceptSelectedSuggestions',new R(_0xbe090f,_0x34ffe0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xbe090f['commands']['add']('discardSelectedSuggestions',new R(_0xbe090f,_0x3f2bf9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xfc1b36=_0xbe090f['plugins']['get']('CommentsRepository');this['listenTo'](_0xfc1b36,'addComment',(_0x5a29e9,{threadId:_0x2bcee9})=>{const _0x9de1fa=this['_suggestions']['get'](_0x2bcee9);_0x9de1fa&&_0x9de1fa['commentThread']&&0x1===_0x9de1fa['commentThread']['length']&&this['_updateSuggestionData'](_0x2bcee9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xfc1b36,'removeComment',(_0x2d124e,{threadId:_0x29ce92})=>{const _0x4ee1e3=this['_suggestions']['get'](_0x29ce92);_0x4ee1e3&&_0x4ee1e3['commentThread']&&!_0x4ee1e3['commentThread']['length']&&this['_updateSuggestionData'](_0x29ce92,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x49fe4a){if(this['_adapter'])throw new _0x2a50d9('track-changes-adapter-already-set',this);this['_adapter']=_0x49fe4a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1b33a3=!0x1,toJSON:_0x4e13e1=!0x1}={}){const _0x5d83b0=[];for(const _0x52859b of this['_suggestions']['values']())_0x1b33a3&&!_0x52859b['isInContent']||_0x5d83b0['push'](_0x52859b);return _0x4e13e1?_0x5d83b0['map'](_0x4d7599=>_0x4d7599['toJSON']()):_0x5d83b0;}['getSuggestion'](_0x4dade3){const _0x469a57=this['_suggestions']['get'](_0x4dade3);if(!_0x469a57)throw new _0x2a50d9('track-changes-suggestion-not-found',this);return _0x469a57;}['hasSuggestion'](_0x14ccd4){return this['_suggestions']['has'](_0x14ccd4);}['addSuggestionData'](_0xcf76aa){const {authorId:_0x2c59e2,id:_0x311375,attributes:_0x349e8f}=_0xcf76aa,[_0x109ad2,_0x497aa6]=_0xcf76aa['type']['split'](':'),_0x46a649=this['_suggestions']['get'](_0x311375)||this['_createSuggestion'](_0x109ad2,_0x497aa6,_0x311375,_0x2c59e2,_0x349e8f);if(this['_addThreadToSuggestion'](_0x46a649),this['_checkSuggestionCorrectness'](_0x46a649,_0x109ad2,_0x497aa6||null,_0x2c59e2),_0x46a649['createdAt']=_0xcf76aa['createdAt'],_0x46a649['_isDataLoaded']=!0x0,_0x349e8f&&_0x349e8f['@external']){const _0x16eae4=_0x349e8f['@external'],_0x529a1c=this['_getExternalAuthor'](_0x16eae4['authorName']);_0x46a649['authoredAt']=_0x16eae4['createdAt'],_0x46a649['author']=_0x529a1c,_0x46a649['isExternal']=!0x0;}else _0x46a649['authoredAt']=_0xcf76aa['createdAt'];switch(_0xcf76aa['data']&&(_0x46a649['data']=_0xcf76aa['data']),_0xcf76aa['attributes']&&(_0x46a649['attributes']=_0xcf76aa['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x46a649['_saved']=!0x0),this['_suggestionState']['get'](_0x46a649)){case'notReady':this['_suggestionState']['set'](_0x46a649,'dataReady');break;case'markerReady':_0x46a649['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x46a649])),this['_refreshSuggestionsChain'](new Set([_0x46a649])),this['_suggestionState']['set'](_0x46a649,'ready'),this['fire']('suggestionLoaded',_0x46a649)):this['_suggestionState']['set'](_0x46a649,'removed');}return _0x46a649;}['acceptSuggestion'](_0x4609a6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4ea61c of _0x4609a6['getAllAdjacentSuggestions']())_0x4ea61c['accept']();});});}['discardSuggestion'](_0x52e4fb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4f8e4b of _0x52e4fb['getAllAdjacentSuggestions']())_0x4f8e4b['discard']();});});}['enableCommand'](_0x56717c,_0x517678){const _0xecd993=this['editor']['commands']['get'](_0x56717c);if(!_0xecd993)throw new _0x2a50d9('track-changes-command-not-found',this,{'commandName':_0x56717c});if(this['_enabledCommands']['has'](_0xecd993))throw new _0x2a50d9('track-changes-enable-command-twice',this,{'commandName':_0x56717c});this['_enabledCommands']['add'](_0xecd993),_0x517678&&_0xecd993['on']('execute',(_0x4da36d,_0x265d69)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x265d69['length']>0x0&&_0x265d69[_0x265d69['length']-0x1]&&_0x265d69[_0x265d69['length']-0x1]['forceDefaultExecution']?_0x265d69['pop']():(_0x4da36d['return']=_0x517678((..._0x4b1d0b)=>_0xecd993['execute'](..._0x4b1d0b,{'forceDefaultExecution':!0x0}),..._0x265d69),_0x4da36d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x38a044){let _0x28f503,_0x142b6b;const _0x312328=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x28f503=_0x38a044();}catch(_0x43b669){_0x142b6b=_0x43b669;}return _0x312328||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x142b6b&&_0x2a50d9['rethrowUnexpectedError'](_0x142b6b,this),_0x28f503;}['markInsertion'](_0x1770c9,_0x4489b2=null,_0x5194cf={}){if(_0x1770c9['isCollapsed'])return null;const _0x2bb7d5=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x840750,meta:_0x2a6d97}of this['_findSuggestions'](_0x1770c9,'insertion'))if(_0x2a6d97['isOwn']){if(!_0x2a6d97['isNextTo']){if(_0x2a6d97['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ht(_0x840750,_0x5194cf))continue;return _0x840750;}if(Ht(_0x840750,_0x5194cf))return _0x840750;this['_breakSuggestionMarker'](_0x840750,_0x1770c9['start'],_0x1770c9['end']);break;}if(_0x4489b2==_0x840750['subType']&&Ht(_0x840750,_0x5194cf)){const _0x1c7f48=_0x840750['getFirstRange']();return _0x1c7f48['start']['isEqual'](_0x1770c9['end'])?this['_setSuggestionRange'](_0x840750,this['_model']['createRange'](_0x1770c9['start'],_0x1c7f48['end'])):this['_setSuggestionRange'](_0x840750,this['_model']['createRange'](_0x1c7f48['start'],_0x1770c9['end'])),_0x840750;}}const _0x1a12c8=_0x1e7cf0(),_0x652fdf=_0x2bb7d5['id'],_0x2a3447=_0x4489b2?'insertion:'+_0x4489b2:'insertion',_0x33ea35=this['_setSuggestionData']({'id':_0x1a12c8,'type':_0x2a3447,'createdAt':new Date(),'authorId':_0x652fdf,'attributes':_0x5194cf});return this['_addSuggestionMarker'](_0x2a3447,_0x1a12c8,_0x652fdf,_0x1770c9),_0x33ea35;}['markMultiRangeInsertion'](_0x16180e,_0x2119a7='multi',_0x501151={}){const _0x3eccce=this['editor']['plugins']['get']('Users')['me'],_0x5f4d2c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2119a7,'join');for(const _0x5d6d4c of this['getSuggestions']())if(_0x5d6d4c['author']['id']==_0x3eccce['id']&&'insertion'==_0x5d6d4c['type']&&_0x5d6d4c['subType']==_0x2119a7&&Ht(_0x5d6d4c,_0x501151)&&(_0x5f4d2c(_0x5d6d4c['getRanges'](),_0x16180e)||_0x5f4d2c(_0x16180e,_0x5d6d4c['getRanges']()))){for(const _0x1c8dc8 of _0x16180e)_0x5d6d4c['addRange'](_0x1c8dc8);return _0x5d6d4c;}for(const {suggestion:_0x1d262a,meta:_0x5114ad}of this['_findSuggestions'](_0x16180e,'insertion')){if(!_0x5114ad['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5114ad['containsRangeInObject'])continue;if(!Ht(_0x1d262a,_0x501151))continue;let _0x60a84b=!0x0;for(const _0x740db2 of _0x1d262a['getRanges']())for(const _0x42fa53 of _0x16180e)if(!_0x740db2['containsRange'](_0x42fa53)){_0x60a84b=!0x1;break;}if(_0x60a84b)return _0x1d262a;}const _0x9aaec2=_0x1e7cf0(),_0x32f369=_0x3eccce['id'],_0x4053fd='insertion:'+_0x2119a7,_0x232b4c=this['_setSuggestionData']({'id':_0x9aaec2,'type':_0x4053fd,'createdAt':new Date(),'authorId':_0x32f369,'attributes':_0x501151});for(const _0x464cdc of _0x16180e)this['_addSuggestionMarker'](_0x4053fd,_0x9aaec2,_0x32f369,_0x464cdc,u['getMultiRangeId']());return _0x232b4c;}['markInlineFormat'](_0x60a1f5,_0x38c282,_0x2e0683=null,_0x53e019={}){if(_0x2e0683=_0x2e0683||Ut(_0x38c282),_0x60a1f5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5d88da=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2e0683,'accept');return this['forceDefaultExecution'](()=>_0x5d88da([_0x60a1f5],_0x38c282,_0x53e019)),null;}const _0xe354=this['editor']['plugins']['get']('Users')['me'],_0x2b2b59=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4d1aec,meta:_0x43c4a4}of this['_findSuggestions'](_0x60a1f5,'insertion'))_0x43c4a4['isOwn']&&!_0x43c4a4['isInsideObject']&&_0x2b2b59['push'](..._0x4d1aec['getRanges']());}const _0x5e62b8=function(_0x19ac93,_0xcf34f7){const _0x908c06=[];for(const _0x21577b of _0xcf34f7){const _0x1caa1c=_0x19ac93['getIntersection'](_0x21577b);_0x1caa1c&&_0x908c06['push'](_0x1caa1c);}return _0x908c06;}(_0x60a1f5,_0x2b2b59),_0x2a5b89=function(_0x2b4b30,_0x3c2be9){const _0x51d3e3=[_0x2b4b30];for(const _0x59088f of _0x3c2be9){let _0xfb728d=0x0;for(;_0xfb728d<_0x51d3e3['length'];){const _0x1600e0=_0x51d3e3[_0xfb728d]['getDifference'](_0x59088f);_0x51d3e3['splice'](_0xfb728d,0x1,..._0x1600e0),_0xfb728d+=_0x1600e0['length'];}}return _0x51d3e3;}(_0x60a1f5,_0x2b2b59);_0x5e62b8['length']&&this['_model']['change'](()=>{for(const _0x7b2582 of _0x5e62b8){const _0x5b9415=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2e0683,'accept');this['forceDefaultExecution'](()=>_0x5b9415([_0x7b2582],_0x38c282,_0x53e019));}});for(const _0x5aec48 of _0x2a5b89){let _0x47f2c8=null,_0x4c3ff2=_0x5aec48['start'],_0x5277db=_0x5aec48['end'];for(const {suggestion:_0x42d3ff,meta:_0x1827e3}of this['_findSuggestions'](_0x5aec48,'formatInline')){if(!_0x1827e3['isOwn'])continue;if(_0x42d3ff['subType']!=_0x2e0683)continue;if(!Ht(_0x42d3ff,_0x53e019))continue;const _0x4e80aa=_0x42d3ff['getFirstRange']();if(_0x4e80aa['containsRange'](_0x5aec48,!0x0))return null;_0x4c3ff2=_0x4c3ff2['isBefore'](_0x4e80aa['start'])?_0x4c3ff2:_0x4e80aa['start'],_0x5277db=_0x5277db['isAfter'](_0x4e80aa['end'])?_0x5277db:_0x4e80aa['end'],_0x47f2c8?_0x4e80aa['start']['isBefore'](_0x47f2c8['getFirstRange']()['start'])?(_0x47f2c8['removeMarkers'](),_0x47f2c8=_0x42d3ff):_0x42d3ff['removeMarkers']():_0x47f2c8=_0x42d3ff;}const _0x5998c0=this['_model']['createRange'](_0x4c3ff2,_0x5277db);if(_0x47f2c8)this['_setSuggestionRange'](_0x47f2c8,_0x5998c0);else{const _0xdf17d4=_0x1e7cf0(),_0x5ae77b=_0xe354['id'];this['_setSuggestionData']({'id':_0xdf17d4,'type':'formatInline:'+_0x2e0683,'data':_0x38c282,'createdAt':new Date(),'authorId':_0x5ae77b,'attributes':_0x53e019}),this['_addSuggestionMarker']('formatInline:'+_0x2e0683,_0xdf17d4,_0x5ae77b,_0x5998c0);}}return null;}['markBlockFormat'](_0x36f205,_0x482df9,_0x523323=[],_0x46b535=null,_0x80f632={}){_0x482df9['formatGroupId']||(_0x482df9['formatGroupId']=_0x482df9['commandName']),_0x482df9['multipleBlocks']=_0x36f205['is']('range'),_0x46b535=_0x46b535||Ut(_0x482df9);const _0x26b216=_0x523323['map'](_0x172b76=>Ft(_0x172b76,this['_model'])),_0x4a2eb8=_0x36f205['is']('range')?_0x36f205:Ft(_0x36f205,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3b57ab=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x46b535,'accept');return this['forceDefaultExecution'](()=>_0x3b57ab([_0x4a2eb8],_0x482df9,_0x80f632)),null;}_0x26b216['push'](_0x4a2eb8);let _0x17bdb6=!0x0;for(const _0x302582 of _0x26b216)if(!this['_rangeIsInLocalUserInsertion'](_0x302582)){_0x17bdb6=!0x1;break;}if(_0x17bdb6&&'always'!==this['_trackFormatChanges']){const _0x53db28=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x46b535,'accept');return this['forceDefaultExecution'](()=>_0x53db28([_0x4a2eb8],_0x482df9,_0x80f632)),null;}let _0x17f914=null,_0x2176a8=_0x4a2eb8['start'],_0x13b011=_0x4a2eb8['end'];for(const {suggestion:_0x24fe8c,meta:_0x8f10f3}of this['_findSuggestions'](_0x4a2eb8,'formatBlock')){if(!_0x8f10f3['isOwn'])continue;if(_0x8f10f3['isNextTo']||_0x8f10f3['containsRangeInObject']||_0x8f10f3['isInsideObject'])continue;if(_0x24fe8c['data']['formatGroupId']!=_0x482df9['formatGroupId'])continue;if(!Ht(_0x24fe8c,_0x80f632))continue;const _0x53e26a=_0x24fe8c['getFirstRange']();if(_0x24fe8c['subType']==_0x46b535){if(_0x53e26a['containsRange'](_0x4a2eb8,!0x0))return null;_0x2176a8=_0x2176a8['isBefore'](_0x53e26a['start'])?_0x2176a8:_0x53e26a['start'],_0x13b011=_0x13b011['isAfter'](_0x53e26a['end'])?_0x13b011:_0x53e26a['end'],_0x17f914?_0x53e26a['start']['isBefore'](_0x17f914['getFirstRange']()['start'])?(_0x17f914['removeMarkers'](),_0x17f914=_0x24fe8c):_0x24fe8c['removeMarkers']():_0x17f914=_0x24fe8c;}else{const _0x4b993e=_0x4a2eb8['getIntersection'](_0x53e26a);this['_cutOutSuggestionMarker'](_0x24fe8c,_0x4b993e);}}const _0x706e3e=this['editor']['plugins']['get']('Users')['me'],_0x332ee1=_0x1e7cf0(),_0x939ec2=_0x706e3e['id'];if(_0x17f914)return this['_setSuggestionRange'](_0x17f914,this['_model']['createRange'](_0x2176a8,_0x13b011)),_0x17f914;{const _0x3defa4=this['_setSuggestionData']({'id':_0x332ee1,'type':'formatBlock:'+_0x46b535,'data':_0x482df9,'createdAt':new Date(),'authorId':_0x939ec2,'attributes':_0x80f632});return this['_addSuggestionMarker']('formatBlock:'+_0x46b535,_0x332ee1,_0x939ec2,this['_model']['createRange'](_0x2176a8,_0x13b011)),_0x3defa4;}}['markMultiRangeBlockFormat'](_0x57a3eb,_0x21cfd9,_0x20429c=[],_0x188872=null,_0x8c175={}){_0x21cfd9['formatGroupId']||(_0x21cfd9['formatGroupId']=_0x21cfd9['commandName']);const _0x19e55c=_0x57a3eb[0x0];_0x21cfd9['multipleBlocks']=_0x19e55c['is']('range'),_0x188872=_0x188872||Ut(_0x21cfd9);const _0x2b5458=_0x20429c['map'](_0x55559c=>Ft(_0x55559c,this['_model'])),_0x2d9f14=_0x19e55c['is']('range')?_0x57a3eb:_0x57a3eb['map'](_0x271e53=>Ft(_0x271e53,this['_model']));if('never'===this['_trackFormatChanges']){const _0x43c509=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x188872,'accept');return this['forceDefaultExecution'](()=>_0x43c509(_0x2d9f14,_0x21cfd9,_0x8c175)),null;}_0x2b5458['push'](..._0x2d9f14);let _0xa59a58=!0x0;for(const _0x4f8098 of _0x2b5458)if(!this['_rangeIsInLocalUserInsertion'](_0x4f8098)){_0xa59a58=!0x1;break;}if(_0xa59a58&&'always'!==this['_trackFormatChanges']){const _0x5c6526=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x188872,'accept');return this['forceDefaultExecution'](()=>_0x5c6526(_0x2d9f14,_0x21cfd9,_0x8c175)),null;}const _0x6c2cdc=this['editor']['plugins']['get']('Users')['me'];for(const _0xd359c7 of this['getSuggestions']()){if(_0xd359c7['author']['id']!=_0x6c2cdc['id'])continue;if('formatBlock'!=_0xd359c7['type']||_0xd359c7['data']['formatGroupId']!=_0x21cfd9['formatGroupId'])continue;if(!Ht(_0xd359c7,_0x8c175))continue;const _0x5d559b=_0xd359c7['subType']==_0x188872;for(let _0x399852=0x0;_0x399852<_0x2d9f14['length'];_0x399852++){const _0xcf1663=_0x2d9f14[_0x399852];for(const _0x10debf of _0xd359c7['getMarkers']()){const _0x501030=_0x10debf['getRange']();if(_0xcf1663['isEqual'](_0x501030)){_0x5d559b?(_0x2d9f14['splice'](_0x399852,0x1),_0x399852--):_0xd359c7['removeMarker'](_0x10debf['name']);break;}}}}if(0x0==_0x2d9f14['length'])return null;const _0x69c9cd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x188872,'join');for(const _0xb54824 of this['getSuggestions']())if(_0xb54824['author']['id']==_0x6c2cdc['id']&&'formatBlock'==_0xb54824['type']&&_0xb54824['data']['formatGroupId']==_0x21cfd9['formatGroupId']&&_0xb54824['subType']==_0x188872&&Ht(_0xb54824,_0x8c175)&&(_0x69c9cd(_0xb54824['getRanges'](),_0x2d9f14)||_0x69c9cd(_0x2d9f14,_0xb54824['getRanges']()))){for(const _0x73f7a7 of _0x2d9f14)_0xb54824['addRange'](_0x73f7a7);return _0xb54824;}const _0x312ed6=_0x1e7cf0(),_0x5003e7=_0x6c2cdc['id'],_0x1c81dc='formatBlock:'+_0x188872,_0x575703=this['_setSuggestionData']({'id':_0x312ed6,'type':_0x1c81dc,'data':_0x21cfd9,'createdAt':new Date(),'authorId':_0x5003e7,'attributes':_0x8c175});for(const _0x41cb7d of _0x2d9f14)this['_addSuggestionMarker'](_0x1c81dc,_0x312ed6,_0x5003e7,_0x41cb7d,u['getMultiRangeId']());return _0x575703;}['markDeletion'](_0xaf8a17,_0xbb9af6=null,_0x243f4a={}){if(_0xaf8a17['isCollapsed'])return null;const _0x5a2a94=this['editor']['plugins']['get']('Users')['me'],_0x566511=new _0x92b86c(_0xaf8a17['start'],_0xaf8a17['end']);for(const {suggestion:_0x1a2809,meta:_0x1c983b}of this['_findSuggestions'](_0x566511,'insertion'))if(_0x1c983b['isOwn']&&!_0x1c983b['isNextTo']){if(_0x1a2809['isMultiRange']){const _0x195331=_0x1a2809['getRanges']()['filter'](_0x5ea833=>'$graveyard'!=_0x5ea833['root']['rootName']);_0x195331['every'](_0x18653b=>_0x566511['containsRange'](_0x18653b,!0x0))&&_0x1a2809['discard']();if(_0x195331['some'](_0x4e1256=>_0x4e1256['containsRange'](_0x566511,!0x0))){const _0x5e47d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xbb9af6,'accept');return this['forceDefaultExecution'](()=>_0x5e47d6([_0x566511],null,_0x243f4a)),null;}}else{const _0x2a7a63=_0x566511['getIntersection'](_0x1a2809['getFirstRange']());null!==_0x2a7a63&&_0x1a2809['_onDiscard']([_0x2a7a63],null,_0x243f4a);}}if(_0x566511['detach'](),_0x566511['isCollapsed']||'$graveyard'==_0x566511['root']['rootName'])return null;let _0x143648=null,_0x2a096b=_0x566511['start'],_0x5ea1c7=_0x566511['end'];const _0xf7ecd1=this['_findSuggestions'](_0x566511,'deletion');for(const {suggestion:_0x3969b4,meta:_0x28f34f}of _0xf7ecd1){const _0x2af6f9=this['_model']['createRange'](_0x2a096b,_0x5ea1c7);if(_0x28f34f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x28f34f['containsRangeInObject']&&!_0x28f34f['isInsideObject'])){if(_0x3969b4['isMultiRange']){if(!Ht(_0x3969b4,_0x243f4a))continue;let _0x66b0c3=!0x0;for(const _0x13ae7d of _0x3969b4['getRanges']()){if(_0x13ae7d['containsRange'](_0x2af6f9,!0x0))return _0x3969b4;_0x2af6f9['containsRange'](_0x13ae7d)||(_0x66b0c3=!0x1);}_0x66b0c3&&_0x3969b4['discard']();}else{const _0x5feb76=_0x3969b4['getFirstRange']();if(_0x5feb76['containsRange'](_0x2af6f9,!0x0))return _0x3969b4;if(!Ht(_0x3969b4,_0x243f4a)){_0x2af6f9['containsRange'](_0x5feb76)?_0x3969b4['removeMarkers']():_0x5feb76['containsPosition'](_0x2a096b)?_0x2a096b=_0x5feb76['end']:_0x5feb76['containsPosition'](_0x5ea1c7)&&(_0x5ea1c7=_0x5feb76['start']);continue;}_0x2a096b=_0x2a096b['isBefore'](_0x5feb76['start'])?_0x2a096b:_0x5feb76['start'],_0x5ea1c7=_0x5ea1c7['isAfter'](_0x5feb76['end'])?_0x5ea1c7:_0x5feb76['end'],_0x243f4a=Object['assign']({},_0x3969b4['attributes']),_0x143648?_0x5feb76['start']['isBefore'](_0x143648['getFirstRange']()['start'])?(_0x143648['removeMarkers'](),_0x143648=_0x3969b4):_0x3969b4['removeMarkers']():_0x143648=_0x3969b4;}}}if(_0x143648)return this['_setSuggestionRange'](_0x143648,this['_model']['createRange'](_0x2a096b,_0x5ea1c7)),_0x143648;{const _0x461bcd=_0x1e7cf0(),_0x1b54ec=this['_model']['createRange'](_0x2a096b,_0x5ea1c7),_0x523ce4=_0x5a2a94['id'],_0x435505=_0xbb9af6?'deletion:'+_0xbb9af6:'deletion',_0x30ef77=this['_setSuggestionData']({'id':_0x461bcd,'type':_0x435505,'createdAt':new Date(),'authorId':_0x523ce4,'attributes':_0x243f4a});return this['_addSuggestionMarker'](_0x435505,_0x461bcd,_0x523ce4,_0x1b54ec),_0x30ef77;}}['markMultiRangeDeletion'](_0xff79f8,_0x1942bd='multi',_0x5e6a7e={}){const _0x498f38=this['editor']['plugins']['get']('Users')['me'],_0x5454fb=_0xff79f8['map'](_0x41cef1=>new _0x92b86c(_0x41cef1['start'],_0x41cef1['end'])),_0x3b89d2=new Set();for(const {suggestion:_0x378730,meta:_0x5db703}of this['_findSuggestions'](_0x5454fb,'insertion'))_0x5db703['isOwn']&&!_0x5db703['isNextTo']&&_0x3b89d2['add'](_0x378730);for(const _0x36676e of _0x3b89d2)if(_0x36676e['isMultiRange']){const _0x87471=_0x36676e['getRanges']();(!_0x36676e['attributes']||!_0x36676e['attributes']['skipNestingCheck'])&&(_0x87471['every'](_0x2ac75e=>_0x5454fb['some'](_0x4f70af=>_0x4f70af['containsRange'](_0x2ac75e,!0x0)))&&_0x36676e['discard']());if(_0x5454fb['every'](_0x406d83=>_0x87471['some'](_0x24f0dc=>_0x24f0dc['containsRange'](_0x406d83,!0x0)))){const _0x169a1a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1942bd,'accept');return this['forceDefaultExecution'](()=>_0x169a1a(_0xff79f8,null,_0x5e6a7e)),null;}}else{const _0x146817=_0x36676e['getFirstRange']();_0x5454fb['some'](_0x41ef42=>_0x41ef42['containsRange'](_0x146817,!0x0))&&_0x36676e['discard']();if(_0x5454fb['every'](_0x65e280=>_0x146817['containsRange'](_0x65e280,!0x0))){const _0x43d1c7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1942bd,'accept');return this['forceDefaultExecution'](()=>_0x43d1c7(_0x5454fb,null,_0x5e6a7e)),null;}}const _0x6adb9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1942bd,'join');let _0x5eb180=null;for(const _0x2b3430 of this['getSuggestions']())if(_0x2b3430['author']['id']==_0x498f38['id']&&_0x2b3430['isInContent']&&'deletion'==_0x2b3430['type']&&_0x2b3430['subType']==_0x1942bd&&Ht(_0x2b3430,_0x5e6a7e)&&(_0x6adb9(_0x2b3430['getRanges'](),_0x5454fb)||_0x6adb9(_0x5454fb,_0x2b3430['getRanges']()))){if(_0x5eb180){if(_0x2b3430['commentThread']&&_0x2b3430['commentThread']['length'])continue;for(const _0x2e92ae of _0x2b3430['getRanges']())_0x5eb180['isIntersectingWithRange'](_0x2e92ae)||_0x5eb180['addRange'](_0x2e92ae);_0x2b3430['removeMarkers']();}else{_0x5eb180=_0x2b3430;for(const _0x380d0b of _0x5454fb)_0x2b3430['isIntersectingWithRange'](_0x380d0b)||_0x2b3430['addRange'](_0x380d0b);}}if(_0x5eb180)return _0x5eb180;_0x3b89d2['clear']();for(const {suggestion:_0x1e8c7c,meta:_0x524aae}of this['_findSuggestions'](_0x5454fb,'deletion'))_0x524aae['isOwn']&&(this['_mergeNestedSuggestions']||!_0x524aae['containsRangeInObject']&&!_0x524aae['isInsideObject'])&&Ht(_0x1e8c7c,_0x5e6a7e)&&_0x3b89d2['add'](_0x1e8c7c);for(const _0x298ca2 of _0x3b89d2){const _0x2abaa2=_0x298ca2['getRanges']();if(!_0x5e6a7e||!_0x5e6a7e['skipNestingCheck']){if(_0x5454fb['every'](_0x2b73d0=>_0x2abaa2['some'](_0x29fe3d=>_0x29fe3d['containsRange'](_0x2b73d0,!0x0))))return _0x298ca2;}(!_0x298ca2['attributes']||!_0x298ca2['attributes']['skipNestingCheck'])&&(_0x2abaa2['every'](_0x274458=>_0x5454fb['some'](_0x32678f=>_0x32678f['containsRange'](_0x274458,!0x0)))&&_0x298ca2['discard']());}const _0x28f942=_0x1e7cf0(),_0x9d3371=_0x498f38['id'],_0x14a884='deletion:'+_0x1942bd,_0x4c3f9b=this['_setSuggestionData']({'id':_0x28f942,'type':_0x14a884,'createdAt':new Date(),'authorId':_0x9d3371,'attributes':_0x5e6a7e});for(const _0x315c2a of _0x5454fb)_0x315c2a['detach'](),_0x315c2a['isCollapsed']||'$graveyard'==_0x315c2a['root']['rootName']||this['_addSuggestionMarker'](_0x14a884,_0x28f942,_0x9d3371,_0x315c2a,u['getMultiRangeId']());return _0x4c3f9b;}['markAttributeChange'](_0x15ebfd,_0x4b852b,_0x2ba8ae,_0x1c392a,_0x433f96){if(_0x15ebfd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3de510=this['editor']['plugins']['get']('Users')['me']['id'],_0x3fb88c=Array['from'](this['_suggestions']['values']())['filter'](_0x5b2092=>'attribute'==_0x5b2092['type']&&_0x5b2092['data']['key']==_0x4b852b&&_0x5b2092['isIntersectingWithRange'](_0x15ebfd));if('default'===this['_trackFormatChanges']){const _0x570790=this['_findSuggestions'](_0x15ebfd,'insertion')['filter'](({meta:_0x89e03e})=>_0x89e03e['isOwn']&&!_0x89e03e['isInsideObject']&&!_0x89e03e['isNextTo'])['map'](({suggestion:_0x38f10d})=>_0x38f10d);_0x3fb88c['unshift'](..._0x570790);}const _0x1f7728=new Map([[_0x15ebfd,_0x2ba8ae]]);for(const _0x18a8bc of _0x3fb88c){const _0x417d92='attribute'==_0x18a8bc['type']?_0x18a8bc['data']['oldValue']:void 0x0,_0x100281=_0x18a8bc['getFirstRange'](),_0x34f69f=Array['from'](_0x1f7728['keys']())['find'](_0x511db8=>_0x511db8['isIntersecting'](_0x100281));if(!_0x34f69f)continue;const _0x3b5038=_0x34f69f['getDifference'](_0x100281);this['_isBlockAttribute'](_0x4b852b)&&'insertion'==_0x18a8bc['type']&&0x0!=_0x3b5038['length']||(_0x1f7728['delete'](_0x34f69f),_0x3b5038['forEach'](_0x17a4bf=>{_0x1f7728['set'](_0x17a4bf,_0x2ba8ae);}),'insertion'!=_0x18a8bc['type']&&_0x417d92!=_0x1c392a&&_0x1f7728['set'](_0x34f69f['getIntersection'](_0x100281),_0x417d92));}const _0xe8d13c=[];for(const [_0x17f322,_0x24c5fe]of _0x1f7728){const _0x8205e6=_0x1e7cf0(),_0xa2ce53={'key':_0x4b852b,'oldValue':_0x24c5fe,'newValue':_0x1c392a};_0x4b852b['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':_0x4b852b});const _0x15f0be=('attribute:'+(_0x4b852b+'|'+Ut({'newValue':_0x1c392a})))['substring'](0x0,0x3c),_0x2e428e=this['_setSuggestionData']({'id':_0x8205e6,'type':_0x15f0be,'data':_0xa2ce53,'createdAt':new Date(),'authorId':_0x3de510,'attributes':_0x433f96});_0xe8d13c['push'](_0x2e428e),this['_addSuggestionMarker'](_0x15f0be,_0x8205e6,_0x3de510,_0x17f322);}return _0xe8d13c;}['enableDefaultAttributesIntegration'](_0x3d7348){this['enableCommand'](_0x3d7348,(_0x2edf00,..._0x4026e8)=>{this['_recordAttributeChanges'](()=>{_0x2edf00(..._0x4026e8);});});}['registerBlockAttribute'](_0x2b0eae){this['_blockAttributeKeys']['add'](_0x2b0eae);}['registerInlineAttribute'](_0x2d273c){this['_inlineAttributeKeys']['add'](_0x2d273c);}['_getAttributeKey'](_0x8ff78c){return'attribute'==_0x8ff78c['type']?_0x8ff78c['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x46e020,_0x359fd2){const _0x3c7205=_0x46e020['getFirstMarker']();this['_model']['change'](_0x349f7a=>{_0x349f7a['updateMarker'](_0x3c7205,{'range':_0x359fd2});});}['_addThreadToSuggestion'](_0x52371d){const _0x372182=_0x52371d['id'],_0x4c4bdf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x372182)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4c4bdf,'threadId':_0x372182,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xc27642=this['_commentsRepository']['getCommentThread'](_0x372182);_0xc27642['unbind']('isRemovable'),_0xc27642['isRemovable']=!0x1,_0x52371d['commentThread']=_0xc27642;}['_checkSuggestionCorrectness'](_0x236305,_0xb46904,_0xee2ee8,_0x69f4fa){if(_0x236305['type']!=_0xb46904||_0x236305['subType']!=_0xee2ee8||_0x236305['creator']['id']!=_0x69f4fa)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2a50d9('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x390d66,_0x310145){const _0xc43d88=_0x390d66['getFirstRange']();if(_0x310145['isEqual'](_0xc43d88))_0x390d66['removeMarkers']();else{if(_0xc43d88['containsRange'](_0x310145)){const _0x1e1c43=this['_model']['createPositionAt'](_0x310145['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x390d66,this['_model']['createRange'](_0xc43d88['start'],_0x1e1c43));const _0x23142c=_0x1e7cf0(),_0x540164=_0x390d66['creator']['id'],_0x577dd4=_0x390d66['type']+':'+_0x390d66['subType'];this['_setSuggestionData']({'id':_0x23142c,'type':_0x577dd4,'createdAt':new Date(),'authorId':_0x540164,'data':_0x390d66['data'],'attributes':_0x390d66['attributes']});const _0x315d53=this['_model']['createPositionAt'](_0x310145['end']['parent'],'after'),_0x538fcc=this['_model']['createRange'](_0x315d53,_0xc43d88['end']);this['_addSuggestionMarker'](_0x577dd4,_0x23142c,_0x540164,_0x538fcc);}else{if(_0xc43d88['containsPosition'](_0x310145['start'])){const _0x34b18d=this['_model']['createPositionAt'](_0x310145['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x390d66,this['_model']['createRange'](_0xc43d88['start'],_0x34b18d));}else{const _0x269df7=this['_model']['createPositionAt'](_0x310145['end']['parent'],'after');this['_setSuggestionRange'](_0x390d66,this['_model']['createRange'](_0x269df7,_0xc43d88['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x9f8663){for(const {suggestion:_0x133f1d,meta:_0x1a89c1}of this['_findSuggestions'](_0x9f8663,'insertion')){if(!_0x1a89c1['isOwn'])continue;const _0x1d9880=_0x133f1d['getRanges']();for(const _0x2552b4 of _0x1d9880)if(!_0x9f8663['getDifference'](_0x2552b4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x9f9e89){const _0x355c00=this['editor']['plugins']['get']('Users')['getUser'](_0x9f9e89);if(!_0x355c00)throw new _0x2a50d9('track-changes-user-not-found',this);return _0x355c00;}['_getExternalAuthor'](_0x37f136){const _0x16fc7d=this['editor']['plugins']['get']('Users'),_0x193e8d=_0x44a9e5('external:'+_0x37f136),_0x21a682=_0x16fc7d['getUser'](_0x193e8d);return _0x21a682||_0x16fc7d['addUser']({'id':_0x193e8d,'name':_0x37f136});}['_createSuggestion'](_0x4eb777,_0x193875,_0x925850,_0x56d283,_0x8e855c){const _0x1c80bb=this['_getAuthorFromId'](_0x56d283),_0x1f37e1=this['_suggestionFactory']['buildSuggestion'](_0x4eb777,_0x193875,_0x925850,_0x1c80bb,_0x8e855c,_0x2c2cc0=>{this['_updateSuggestionData'](_0x925850,{'attributes':_0x2c2cc0});const _0x341b85=this['getSuggestion'](_0x925850);this['_joinWithAdjacentSuggestions'](new Set([_0x341b85])),this['_refreshSuggestionsChain'](new Set([_0x341b85]));});return this['listenTo'](_0x1f37e1,'accept',()=>{this['_updateSuggestionData'](_0x925850,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1f37e1,'discard',()=>{this['_updateSuggestionData'](_0x925850,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x925850,_0x1f37e1),this['_suggestionState']['set'](_0x1f37e1,'notReady'),_0x1f37e1;}['_splitMarkerName'](_0x2450da){const _0x36c08f=_0x2450da['split'](':');return{'group':_0x36c08f[0x0],'type':_0x36c08f[0x1],'subType':_0x36c08f['length']>=0x5?_0x36c08f[0x2]:null,'id':_0x36c08f['length']<0x5?_0x36c08f[0x2]:_0x36c08f[0x3],'authorId':_0x36c08f['length']<0x5?_0x36c08f[0x3]:_0x36c08f[0x4],'markerCount':0x6==_0x36c08f['length']?_0x36c08f[0x5]:null};}['_breakSuggestionMarker'](_0x5c9cb2,_0x3920a2,_0x3c6e03){const _0x45ee87=_0x5c9cb2['getFirstRange'](),_0x3fe2a0=_0x45ee87['start'],_0x2ff58f=_0x45ee87['end'];this['_setSuggestionRange'](_0x5c9cb2,this['_model']['createRange'](_0x3fe2a0,_0x3920a2));const _0x2daec7=_0x1e7cf0(),_0x491e2f=_0x5c9cb2['creator']['id'],_0x1cc2fd=_0x5c9cb2['type']+(_0x5c9cb2['subType']?':'+_0x5c9cb2['subType']:'');this['_setSuggestionData']({'id':_0x2daec7,'type':_0x1cc2fd,'createdAt':new Date(),'authorId':_0x491e2f,'originalSuggestionId':_0x5c9cb2['id'],'attributes':_0x5c9cb2['attributes'],'data':_0x5c9cb2['data']});const _0x7f142c=this['_getAttributeKey'](_0x5c9cb2);('formatBlock'==_0x5c9cb2['type']||_0x7f142c&&this['_isBlockAttribute'](_0x7f142c))&&(_0x3c6e03=this['_model']['createPositionBefore'](_0x3c6e03['parent'])),this['_addSuggestionMarker'](_0x1cc2fd,_0x2daec7,_0x491e2f,this['_model']['createRange'](_0x3c6e03,_0x2ff58f));}['_findSuggestions'](_0x1c784a,_0x318c5b=null){const _0x55250a=[],_0x43ad96=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1c784a)||(_0x1c784a=[_0x1c784a]);for(const _0x372753 of this['getSuggestions']()){if(!_0x372753['isInContent'])continue;if(_0x318c5b&&_0x372753['type']!=_0x318c5b)continue;let _0x3c32bd=!0x1;for(const _0x3466bf of _0x372753['getRanges']()){for(const _0x550b1d of _0x1c784a){const _0x4fc8f8=_0x550b1d['start']['isEqual'](_0x3466bf['end'])||_0x550b1d['end']['isEqual'](_0x3466bf['start']);if(_0x4fc8f8||_0x550b1d['getIntersection'](_0x3466bf)){const _0x584c0e=_0x550b1d['containsRange'](_0x3466bf)&&Tt(this['_model']['schema'],_0x3466bf['start'],_0x550b1d),_0x558f21=_0x3466bf['containsRange'](_0x550b1d)&&Tt(this['_model']['schema'],_0x550b1d['start'],_0x3466bf);_0x55250a['push']({'suggestion':_0x372753,'meta':{'isOwn':_0x43ad96==_0x372753['author'],'isNextTo':_0x4fc8f8,'isInsideObject':_0x584c0e,'containsRangeInObject':_0x558f21}}),_0x3c32bd=!0x0;break;}}if(_0x3c32bd)break;}}return _0x55250a;}['_addSuggestionMarker'](_0x2294c6,_0x2f2020,_0x49a6eb,_0x2a9de8,_0x4753e4){this['_model']['change'](_0xc13434=>{let _0x482c8a='suggestion:'+_0x2294c6+':'+_0x2f2020+':'+_0x49a6eb;_0x4753e4&&(_0x482c8a=_0x482c8a+':'+_0x4753e4),_0xc13434['addMarker'](_0x482c8a,{'range':_0x2a9de8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x90099){const _0x3d13dc=_0x90099['previous'],_0x36075f=_0x90099['next'];_0x90099['previous']=null,_0x90099['next']=null,null!=_0x3d13dc&&_0x3d13dc['next']==_0x90099&&(_0x3d13dc['next']=_0x36075f),null!=_0x36075f&&_0x36075f['previous']==_0x90099&&(_0x36075f['previous']=_0x3d13dc),'ready'==this['_suggestionState']['get'](_0x90099)&&(this['_suggestionState']['set'](_0x90099,'removed'),this['fire']('suggestionUnloaded',_0x90099,_0x3d13dc,_0x36075f));}['_setSuggestionData'](_0x4c0819){const _0x5ca1fa=_0x4c0819['id'],_0x285b6f=this['addSuggestionData'](_0x4c0819);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5a1a81=this['editor']['plugins']['get']('PendingActions'),_0x335993=_0x285b6f['hasComments'],_0x5305da=_0x285b6f['subType']?_0x285b6f['type']+':'+_0x285b6f['subType']:_0x285b6f['type'],_0x5a5319=this['editor']['locale'],_0x5e4318=_0x5a1a81['add'](o(_0x5a5319,'PENDING_ACTION_SUGGESTION')),_0x2b4b8b={'id':_0x5ca1fa,'type':_0x5305da,'hasComments':_0x335993,'data':_0x4c0819['data']||null,'originalSuggestionId':_0x4c0819['originalSuggestionId']||null,'attributes':_0x285b6f['attributes']};this['_adapter']['addSuggestion'](_0x2b4b8b)['then'](_0xc166dc=>{_0x285b6f['_saved']=!0x0,_0x5a1a81['remove'](_0x5e4318),_0xc166dc&&_0xc166dc['createdAt']&&(this['_suggestions']['get'](_0x5ca1fa)['createdAt']=_0xc166dc['createdAt']);})['catch'](_0x307050=>{throw _0x164dd9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x285b6f['discard']();}),_0x285b6f['stopListening'](),this['_suggestions']['delete'](_0x285b6f['id']),this['_suggestionState']['delete'](_0x285b6f),_0x307050;});}return _0x285b6f;}['_isBlockAttribute'](_0x110dba){return this['_blockAttributeKeys']['has'](_0x110dba);}['_updateSuggestionData'](_0x4b286f,_0x2ba287){const _0x1f8647=this['editor']['plugins']['get']('PendingActions'),_0x47edc0=this['getSuggestion'](_0x4b286f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x47edc0['_saved']){const _0x45ddaa=_0x1f8647['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4b286f,_0x2ba287)['then'](()=>{_0x1f8647['remove'](_0x45ddaa);});}else _0x47edc0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4b286f,_0x2ba287);});}}['_getSuggestionData'](_0x3e5afe){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2a50d9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3e5afe);}['_handleNewSuggestionMarker'](_0xf253d2){const {id:_0x4fb232,type:_0x56d8f7,subType:_0x4f7ca1,authorId:_0x2283f1}=this['_splitMarkerName'](_0xf253d2),_0x23ba60=this['_suggestions']['get'](_0x4fb232)||this['_createSuggestion'](_0x56d8f7,_0x4f7ca1,_0x4fb232,_0x2283f1,{});switch(this['_checkSuggestionCorrectness'](_0x23ba60,_0x56d8f7,_0x4f7ca1,_0x2283f1),this['_suggestionState']['get'](_0x23ba60)){case'notReady':this['_getSuggestionData'](_0x4fb232)['then'](_0x1e059e=>{let _0x1a9e1f=Promise['resolve']();_0x1e059e['hasComments']&&(_0x1a9e1f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4fb232})),_0x1a9e1f['then'](()=>{this['addSuggestionData'](_0x1e059e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x23ba60,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4fb232,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x23ba60,'ready'),this['fire']('suggestionLoaded',_0x23ba60);break;case'ready':this['fire']('suggestionChanged',_0x23ba60);}return _0x23ba60['addMarkerName'](_0xf253d2),_0x23ba60;}['_refreshSuggestionsChain'](_0xb10c8d){const _0x561bae=Array['from'](_0xb10c8d),_0x36b442=_0x561bae['filter'](_0x525f81=>'attribute'==_0x525f81['type']);this['_refreshAttributeSuggestionsChain'](_0x36b442);const _0x41f6e8=_0x561bae['filter'](_0x4502d1=>!_0x4502d1['isMultiRange']&&'attribute'!=_0x4502d1['type']),_0x278a03=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36296e=>!_0x36296e['isMultiRange']&&'attribute'!=_0x36296e['type']),_0x51569e=_0x278a03['filter'](_0x53ed56=>!_0xb10c8d['has'](_0x53ed56)),_0x10e99e=new Map(_0x278a03['map'](_0x18128e=>[_0x18128e,this['_suggestionFactory']['getSuggestionCallback'](_0x18128e['type'],_0x18128e['subType'],'chain')])),_0x4e6d22=new Map(_0x278a03['map'](_0x45a5b5=>[_0x45a5b5,_0x45a5b5['getFirstRange']()])),_0x3cc6a5=new Set(),_0x489964=new Set();for(let _0x2cd2a4=0x0;_0x2cd2a4<_0x41f6e8['length'];_0x2cd2a4++)_0x799854(_0x41f6e8[_0x2cd2a4],_0x41f6e8,_0x2cd2a4+0x1);for(let _0x343ea9=0x0;_0x343ea9<_0x41f6e8['length'];_0x343ea9++)_0x799854(_0x41f6e8[_0x343ea9],_0x51569e,0x0);const _0x2a75b1=new Set();for(let _0x1b8f7d=0x0;_0x1b8f7d<_0x41f6e8['length'];_0x1b8f7d++){const _0x6388e1=_0x41f6e8[_0x1b8f7d];!_0x489964['has'](_0x6388e1)&&_0x6388e1['previous']&&(_0x2a75b1['add'](_0x6388e1['previous']),_0x6388e1['previous']['next']===_0x6388e1&&(_0x6388e1['previous']['next']=null),_0x6388e1['previous']=null),!_0x3cc6a5['has'](_0x6388e1)&&_0x6388e1['next']&&(_0x2a75b1['add'](_0x6388e1['next']),_0x6388e1['next']['previous']===_0x6388e1&&(_0x6388e1['next']['previous']=null),_0x6388e1['next']=null);}function _0x799854(_0x2f4246,_0x3b723f,_0x1b3526){for(let _0x8c40c2=_0x1b3526;_0x8c40c2<_0x3b723f['length'];_0x8c40c2++){const _0x31a2e4=_0x1dbe22(_0x2f4246,_0x3b723f[_0x8c40c2]);_0x31a2e4&&(_0x31a2e4[0x0]['next']=_0x31a2e4[0x1],_0x31a2e4[0x1]['previous']=_0x31a2e4[0x0],_0x3cc6a5['add'](_0x31a2e4[0x0]),_0x489964['add'](_0x31a2e4[0x1]));}}function _0x1dbe22(_0x35e00c,_0x38cd26){if(_0x35e00c['author']['id']!==_0x38cd26['author']['id'])return null;const _0x278e03=_0x10e99e['get'](_0x35e00c)(_0x35e00c,_0x38cd26,_0x4e6d22['get'](_0x35e00c),_0x4e6d22['get'](_0x38cd26));if(!_0x278e03)return null;return _0x10e99e['get'](_0x38cd26)(_0x35e00c,_0x38cd26,_0x4e6d22['get'](_0x35e00c),_0x4e6d22['get'](_0x38cd26))?_0x278e03[0x1]['commentThread']&&_0x278e03[0x1]['commentThread']['length']?null:_0x278e03:null;}_0x2a75b1['size']&&this['_refreshSuggestionsChain'](_0x2a75b1);}['_refreshAttributeSuggestionsChain'](_0x202852){if(0x0==_0x202852['length'])return;const _0x1ef4a0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31068c=>'attribute'==_0x31068c['type']&&_0x31068c['_isDataLoaded']),_0x2dc068=[],_0x38c192=new Map();for(const _0x20f63f of _0x1ef4a0){const _0x11a0d0=_0x44a9e5(_0x20f63f['attributes']);_0x38c192['has'](_0x11a0d0)||(_0x38c192['set'](_0x11a0d0,_0x2dc068['length']),_0x2dc068['push']([]));const _0x686b8f=_0x38c192['get'](_0x11a0d0);_0x2dc068[_0x686b8f]['push'](_0x20f63f);}!(function(){_0x2dc068['sort']((_0x3dcfd7,_0x56119a)=>{const _0x2b6216=_0x3dcfd7[0x0]['createdAt'],_0x4b008a=_0x56119a[0x0]['createdAt'];return _0x2b6216==_0x4b008a?_0x3dcfd7[0x0]['attributes']['groupId']<_0x56119a[0x0]['attributes']['groupId']?-0x1:0x1:_0x2b6216<_0x4b008a?-0x1:0x1;});for(const _0x2d505e of _0x2dc068)_0x2d505e['sort']((_0x198b8d,_0x3fe16c)=>_0x198b8d['id']<_0x3fe16c['id']?-0x1:0x1);}());for(let _0x7842eb=0x0;_0x7842eb<_0x2dc068['length'];_0x7842eb++){if(0x0==_0x2dc068[_0x7842eb]['length'])continue;const _0x19591a=[];for(let _0x1a4048=_0x7842eb+0x1;_0x1a4048<_0x2dc068['length'];_0x1a4048++)0x0!=_0x2dc068[_0x1a4048]['length']&&_0x130192(_0x2dc068[_0x7842eb],_0x2dc068[_0x1a4048])&&_0x19591a['push'](_0x1a4048);for(const _0x3db0e2 of _0x19591a)_0x2dc068[_0x7842eb]=_0x2dc068[_0x7842eb]['concat'](_0x2dc068[_0x3db0e2]),_0x2dc068[_0x3db0e2]=[];}for(const _0x242d3b of _0x2dc068)for(let _0x5659ac=0x0;_0x5659ac<_0x242d3b['length'];_0x5659ac++)_0x242d3b[_0x5659ac]['next']=_0x242d3b[_0x5659ac+0x1]||null;for(const _0x5083d1 of _0x2dc068)for(let _0x3a6e64=0x0;_0x3a6e64<_0x5083d1['length'];_0x3a6e64++)_0x5083d1[_0x3a6e64]['previous']=_0x5083d1[_0x3a6e64-0x1]||null;function _0x130192(_0x17d44e,_0x261261){if(_0x17d44e[0x0]['attributes']['groupId']!==_0x261261[0x0]['attributes']['groupId']&&_0x17d44e[0x0]['author']!==_0x261261[0x0]['author'])return!0x1;if(!function(_0x38d125,_0x52d321){if(!_0x38d125['hasComments']&&!_0x52d321['hasComments'])return!0x0;if(_0x38d125['hasComments']&&_0x52d321['hasComments'])return!0x1;if(_0x38d125['hasComments']&&_0x52d321['createdAt']<_0x38d125['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x52d321['hasComments']&&_0x38d125['createdAt']<_0x52d321['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x17d44e[0x0],_0x261261[0x0]))return!0x1;const _0x5532e8=xt(_0x17d44e[0x0]['attributes'],'groupId'),_0x25b486=xt(_0x261261[0x0]['attributes'],'groupId');if(!_0x35aac6(_0x5532e8,_0x25b486))return!0x1;return!!_0x17d44e['every'](_0x4a1345=>_0x261261['some'](_0x58e770=>_0x4a1345['getFirstRange']()['isEqual'](_0x58e770['getFirstRange']())))&&_0x261261['every'](_0x2fa44f=>_0x17d44e['some'](_0x420523=>_0x2fa44f['getFirstRange']()['isEqual'](_0x420523['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x50222f){const _0x44464c=Array['from'](_0x50222f),_0x43bbf1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x27f8de=_0x43bbf1['filter'](_0x1cea6f=>!_0x50222f['has'](_0x1cea6f)),_0x4420b3=new Map(_0x44464c['map'](_0x30291c=>[_0x30291c,this['_suggestionFactory']['getSuggestionCallback'](_0x30291c['type'],_0x30291c['subType'],'join')])),_0x550467=new Map(_0x43bbf1['map'](_0x20b9b2=>[_0x20b9b2,_0x20b9b2['getRanges']()]));for(let _0x3dfa2e=0x0;_0x3dfa2e<_0x44464c['length'];_0x3dfa2e++){if(_0x511d3b(this,_0x44464c[_0x3dfa2e],_0x44464c,_0x3dfa2e+0x1))return!0x0;}for(let _0x4a8403=0x0;_0x4a8403<_0x44464c['length'];_0x4a8403++){if(_0x511d3b(this,_0x44464c[_0x4a8403],_0x27f8de,0x0))return!0x0;}return!0x1;function _0x511d3b(_0x3308a5,_0x20a4b8,_0x4c5996,_0x32e23f){for(let _0x17af4e=_0x32e23f;_0x17af4e<_0x4c5996['length'];_0x17af4e++){const _0x233bb3=_0x4c5996[_0x17af4e];if(_0x233bb3['type']!==_0x20a4b8['type']||_0x233bb3['author']['id']!==_0x20a4b8['author']['id']||_0x233bb3['subType']!==_0x20a4b8['subType'])continue;if(!Lt(_0x20a4b8,_0x233bb3,['groupId']))continue;if('attribute'==_0x20a4b8['type']&&_0x20a4b8['data']['oldValue']!=_0x233bb3['data']['oldValue'])continue;if('attribute'==_0x20a4b8['type']&&_0x3308a5['_isBlockAttribute'](_0x20a4b8['data']['key']))continue;if('formatBlock'==_0x20a4b8['type']){const _0x5c0dcc=_0x3308a5['editor']['model'],_0x2d70e4=_0x20a4b8['getContainedElement']();if(_0x2d70e4&&(_0x5c0dcc['schema']['isObject'](_0x2d70e4)||_0x5c0dcc['schema']['isLimit'](_0x2d70e4)))continue;}const _0x1fe5aa=_0x4420b3['get'](_0x20a4b8),_0x56e8f7=_0x550467['get'](_0x20a4b8),_0x14bec7=_0x550467['get'](_0x233bb3),_0x14b40d=_0x20a4b8['commentThread']&&_0x20a4b8['commentThread']['length'],_0x32c529=_0x233bb3['commentThread']&&_0x233bb3['commentThread']['length'];if(!_0x14b40d&&_0x1fe5aa(_0x14bec7,_0x56e8f7))return _0x3308a5['_joinSuggestions'](_0x233bb3,_0x20a4b8),_0x550467['delete'](_0x20a4b8),!0x0;if(!_0x32c529&&_0x1fe5aa(_0x56e8f7,_0x14bec7))return _0x3308a5['_joinSuggestions'](_0x20a4b8,_0x233bb3),_0x550467['delete'](_0x233bb3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2b0508,_0x52a4cf){if(_0x2b0508['isMultiRange']){for(const _0x2d5742 of _0x52a4cf['getRanges']())_0x2b0508['addRange'](_0x2d5742);}else{const _0x346d13=_0x52a4cf['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2b0508,this['_model']['createRange'](_0x2b0508['getFirstRange']()['start'],_0x346d13));}_0x52a4cf['removeMarkers']();}['_getMarkerAnnouncementText'](_0x199d09,_0x68511e){const _0x25fcc7=_0x199d09['startsWith']('format')||_0x199d09['startsWith']('attribute')?'FORMATTING':_0x199d09['toUpperCase']();return o(this['editor']['locale'],_0x68511e+'_'+_0x25fcc7+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x1e11e3=this['editor'];if(!_0x1e11e3['ui'])return;const {ariaLiveAnnouncer:_0x212828}=_0x1e11e3['ui'];_0x23f8b1(this['_model'],({left:_0x47d31f,entered:_0xca5128})=>{for(const _0x307d0e of _0x47d31f){const {group:_0x5b5211,type:_0x349cb6}=this['_splitMarkerName'](_0x307d0e['name']);if('suggestion'===_0x5b5211){_0x212828['announce'](this['_getMarkerAnnouncementText'](_0x349cb6,'LEAVE'));break;}}for(const _0x5d99c5 of _0xca5128){const {group:_0x4ebb57,type:_0x2bf416}=this['_splitMarkerName'](_0x5d99c5['name']);if('suggestion'===_0x4ebb57){_0x212828['announce'](this['_getMarkerAnnouncementText'](_0x2bf416,'ENTER'));break;}}});}['_processAttributeChanges'](_0x1be52e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4ece8d=this['editor'],_0x362d6a=_0x4ece8d['model']['document']['differ']['getChanges']();if(0x0==_0x362d6a['length'])return!0x1;const _0x34fd2f=[],_0x2093f7=_0x362d6a['filter'](_0x5e9bf6=>'attribute'==_0x5e9bf6['type']),_0x321d6c=_0x362d6a['filter'](_0x201940=>'insert'==_0x201940['type']&&'$text'!=_0x201940['name']),_0x1ed5f3=_0x362d6a['filter'](_0x31fb45=>'remove'==_0x31fb45['type']&&'$text'!=_0x31fb45['name']);for(const _0x2e8e52 of _0x2093f7)_0x34fd2f['push']({'key':_0x2e8e52['attributeKey'],'newValue':_0x2e8e52['attributeNewValue'],'oldValue':_0x2e8e52['attributeOldValue'],'range':Gt(_0x2e8e52['range'],_0x4ece8d['model'])});for(const _0xe24074 of _0x321d6c){const _0x7ba6da=_0x1ed5f3['find'](_0xdb7d27=>_0xdb7d27['position']['isEqual'](_0xe24074['position']));_0x7ba6da&&_0x34fd2f['push']({'key':m,'newValue':_0xe24074['name'],'oldValue':_0x7ba6da['name'],'range':_0x4ece8d['model']['createRangeOn'](_0xe24074['position']['nodeAfter'])});}return 0x0!=_0x34fd2f['length']&&this['_reduceExistingSuggestions'](_0x1be52e,_0x34fd2f);}['_processAttributeSuggestions'](_0x12a8f3){let _0x2ac6d4=!0x1;const _0x5a8eca=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x29f14a=>_0x29f14a['data']['newRange']&&_0x29f14a['name']['startsWith']('suggestion:attribute:'));for(const _0x53eb58 of _0x5a8eca){const {subType:_0x4b58cc,id:_0xee7eb8}=this['_splitMarkerName'](_0x53eb58['name']),_0x2b5429=_0x4b58cc['split']('|')[0x0];for(const _0x27ce89 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x27ce89['id']!=_0xee7eb8&&'attribute'==_0x27ce89['type']&&_0x27ce89['data']&&_0x27ce89['data']['key']==_0x2b5429&&_0x27ce89['getFirstRange']()['isIntersecting'](_0x53eb58['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x27ce89,_0x53eb58['data']['newRange'],_0x12a8f3),_0x2ac6d4=!0x0);}return _0x2ac6d4;}['_recordAttributeChanges'](_0x5bc42e){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x5bc42e();}['_isRegisteredAttribute'](_0x2319a7){const _0x4e59e0=this['_isBlockAttribute'](_0x2319a7),_0x2147da=this['_inlineAttributeKeys']['has'](_0x2319a7);return _0x4e59e0||_0x2147da;}['_reduceExistingSuggestions'](_0x423a0b,_0x169223){if(0x0==_0x169223['length'])return!0x1;let _0x2df51a=!0x1;for(const _0x5c7238 of _0x169223){const _0x5ab3d7=this['_findSuggestions'](_0x5c7238['range'],'attribute')['filter'](_0x13d254=>!_0x13d254['meta']['isNextTo'])['map'](_0x390b9=>_0x390b9['suggestion']),_0x434f3b=_0x44a9e5({'newValue':_0x5c7238['newValue']});_0x5ab3d7['filter'](_0x33ac35=>{const [_0x340299,_0x5e2c46]=_0x33ac35['subType']['split']('|');return _0x340299==_0x5c7238['key']&&_0x5e2c46!=_0x434f3b;})['forEach'](_0x220ac6=>{this['_reduceSuggestionAttributeRange'](_0x220ac6,_0x5c7238['range'],_0x423a0b),_0x2df51a=!0x0;});}return _0x2df51a;}['_reduceSuggestionAttributeRange'](_0x3925a8,_0x3f6c33,_0x554331){const _0x66847f=_0x3925a8['getFirstRange']()['getDifference'](_0x3f6c33);0x0!==_0x66847f['length']?0x1!==_0x66847f['length']?this['_breakSuggestionMarker'](_0x3925a8,_0x3f6c33['start'],_0x3f6c33['end']):this['_setSuggestionRange'](_0x3925a8,_0x66847f[0x0]):_0x554331['removeMarker'](_0x3925a8['getFirstMarker']());}}class Rt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5b6a36){this['_editor']=_0x5b6a36,this['_model']=_0x5b6a36['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x595dcc,_0xc2bc1a,_0x4a8cae,_0xb09bcf,_0x57292e,_0x3e88d0){return new u(this['_model'],{'type':_0x595dcc,'subType':_0xc2bc1a,'id':_0x4a8cae,'author':_0xb09bcf,'creator':_0xb09bcf,'attributes':_0x57292e,'onAttributesChange':_0x3e88d0,'onAccept':(..._0x5e78ac)=>this['getSuggestionCallback'](_0x595dcc,_0xc2bc1a,'accept')(..._0x5e78ac),'onDiscard':(..._0x1b5812)=>this['getSuggestionCallback'](_0x595dcc,_0xc2bc1a,'discard')(..._0x1b5812)});}['registerCustomCallback'](_0x383bcf,_0x2352e3,_0x15ca49,_0x416e81){const _0x4315e9=_0x383bcf+':'+_0x2352e3+':'+_0x15ca49;this['_customCallbacks']['set'](_0x4315e9,_0x416e81);}['getSuggestionCallback'](_0x3c4649,_0x46c05f,_0x401212){const _0x137740=_0x3c4649+':'+_0x46c05f+':'+_0x401212;return this['_customCallbacks']['get'](_0x137740)||this['_defaultCallbacks']['get'](_0x3c4649+':'+_0x401212);}['_registerDefaultCallbacks'](){const _0x5bc9f2=()=>!0x1,_0x57a0e9=_0x173d98=>{_0x173d98['sort']((_0x103cc6,_0xf1b77e)=>_0x103cc6['start']['isBefore'](_0xf1b77e['start'])?0x1:-0x1),this['_model']['change'](_0x59a749=>{for(const _0x32603f of _0x173d98){let _0x33d216;_0x33d216=_0x32603f['end']['isAtEnd']&&_0x32603f['end']['parent']==_0x32603f['start']['nodeAfter']?_0x59a749['createSelection'](_0x32603f['start']['nodeAfter'],'on'):_0x59a749['createSelection'](_0x32603f),this['_model']['deleteContent'](_0x33d216,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x45b554=(_0x137251,_0x1e4793)=>{_0x1e4793&&this['_model']['change'](_0xd92d47=>{const {commandName:_0x4a9776,commandParams:_0x140f3e=[]}=_0x1e4793,_0x4dac3f=_0x137251['map'](_0x3bc8b4=>(Et(_0x3bc8b4)&&(_0x3bc8b4=this['_model']['createRange'](_0x3bc8b4['end'])),_0x3bc8b4))['filter'](_0x2ec0b0=>'$graveyard'!==_0x2ec0b0['root']['rootName']);if(_0x4dac3f['length']<0x1)return;const _0x46d261=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x42bed2=>_0x92b86c['fromRange'](_0x42bed2));_0xd92d47['setSelection'](_0x4dac3f);for(const _0x1bcd63 of this['_editor']['commands']['commands']())_0x1bcd63['refresh']();_0x140f3e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4a9776,..._0x140f3e);const _0x58a8bf=_0x46d261['filter'](_0x31e1db=>'$graveyard'!=_0x31e1db['root']['rootName']);_0x58a8bf['length']>0x0&&_0xd92d47['setSelection'](_0x58a8bf);for(const _0x9df8aa of _0x46d261)_0x9df8aa['detach']();});},_0x2b9ccb=(_0x11f773,_0x1e082f)=>0x1==_0x11f773['length']&&0x1==_0x1e082f['length']&&_0x11f773[0x0]['end']['isEqual'](_0x1e082f[0x0]['start']),_0x27ea92=(_0x2208e8,_0x16246a,_0x39f142,_0x5b3ba7)=>Pt(_0x2208e8,_0x16246a,_0x39f142,_0x5b3ba7,this['_model'])?[_0x2208e8,_0x16246a]:Pt(_0x16246a,_0x2208e8,_0x5b3ba7,_0x39f142,this['_model'])?[_0x16246a,_0x2208e8]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5bc9f2),this['_defaultCallbacks']['set']('insertion:discard',_0x57a0e9),this['_defaultCallbacks']['set']('insertion:join',_0x2b9ccb),this['_defaultCallbacks']['set']('insertion:chain',_0x27ea92),this['_defaultCallbacks']['set']('deletion:accept',_0x57a0e9),this['_defaultCallbacks']['set']('deletion:discard',_0x5bc9f2),this['_defaultCallbacks']['set']('deletion:join',_0x2b9ccb),this['_defaultCallbacks']['set']('deletion:chain',_0x27ea92),this['_defaultCallbacks']['set']('formatInline:accept',_0x45b554),this['_defaultCallbacks']['set']('formatInline:discard',_0x5bc9f2),this['_defaultCallbacks']['set']('formatInline:join',_0x2b9ccb),this['_defaultCallbacks']['set']('formatInline:chain',_0x5bc9f2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x45b554),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5bc9f2),this['_defaultCallbacks']['set']('formatBlock:join',_0x2b9ccb),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5bc9f2),this['_defaultCallbacks']['set']('attribute:accept',_0x5bc9f2),this['_defaultCallbacks']['set']('attribute:discard',(_0x733f1,_0x565cd4)=>{if(!_0x565cd4)return;const _0x566652=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xe53fb3=>{if(_0x565cd4['key']==m)for(const _0x169e6f of _0x733f1){const _0x6c7a62=_0x169e6f['start']['nodeAfter'],_0x144932=_0x565cd4['oldValue'];_0xe53fb3['rename'](_0x6c7a62,_0x144932);}else{if(_0x566652['_isBlockAttribute'](_0x565cd4['key'])){for(const _0xe3b630 of _0x733f1)void 0x0!==_0x565cd4['oldValue']?_0xe53fb3['setAttribute'](_0x565cd4['key'],_0x565cd4['oldValue'],_0xe3b630['start']['nodeAfter']):_0xe53fb3['removeAttribute'](_0x565cd4['key'],_0xe3b630['start']['nodeAfter']);}else{for(const _0x4919ac of _0x733f1)_0x565cd4['oldValue']?_0xe53fb3['setAttribute'](_0x565cd4['key'],_0x565cd4['oldValue'],_0x4919ac):_0xe53fb3['removeAttribute'](_0x565cd4['key'],_0x4919ac);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2b9ccb);}}function Tt(_0x17c0d1,_0x2e6793,_0x59752f){for(const _0x213459 of _0x2e6793['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x213459['root']==_0x213459)return!0x1;if(!_0x59752f['containsItem'](_0x213459))return!0x1;if(_0x17c0d1['isObject'](_0x213459)||_0x17c0d1['isLimit'](_0x213459))return!0x0;}return!0x1;}function Et(_0x18b12f){return _0x18b12f['end']['parent']==_0x18b12f['start']['nodeAfter']&&_0x18b12f['end']['isAtStart'];}function Vt(_0xa6fe9c,_0x504fe4,_0x49870a,_0x221af1){const _0x13cb41=_0xa39e2f=>!_0xa39e2f['item']['is']('$textProxy')&&!_0x221af1['isObject'](_0xa39e2f['item']),_0x44eda2=_0xa6fe9c['start']['getLastMatchingPosition'](_0x13cb41),_0x20cd17=_0xa6fe9c['end']['getLastMatchingPosition'](_0x13cb41,{'direction':'backward'});return(!_0xa6fe9c['start']['isEqual'](_0x44eda2)||!_0xa6fe9c['end']['isEqual'](_0x20cd17))&&(_0x44eda2['isBefore'](_0x20cd17)?_0x49870a['updateMarker'](_0x504fe4,{'range':_0x49870a['createRange'](_0x44eda2,_0x20cd17)}):_0x49870a['removeMarker'](_0x504fe4),!0x0);}function Ut(_0x47a715){return _0x44a9e5(_0x47a715);}function Ot(_0x2fca1e){const _0x212bc8=_0x2fca1e['start']['nodeAfter'];return _0x212bc8&&_0x212bc8['is']('element');}function Gt(_0x8af30a,_0x339f41){return null==_0x8af30a['end']['nodeBefore']&&_0x8af30a['end']['parent']==_0x8af30a['start']['nodeAfter']?Ft(_0x8af30a['start']['nodeAfter'],_0x339f41):_0x8af30a;}function Ft(_0x2e4409,_0x517473){const _0x5784a3=_0x517473['schema']['isObject'](_0x2e4409)||_0x517473['schema']['isSelectable'](_0x2e4409);return _0x517473['createRange'](_0x517473['createPositionAt'](_0x2e4409,'before'),_0x5784a3?_0x517473['createPositionAfter'](_0x2e4409):_0x517473['createPositionAt'](_0x2e4409,'end'));}function Pt(_0x4a47e6,_0x398c5e,_0x56113b,_0xcdfef2,_0x4fc856){if(!Lt(_0x4a47e6,_0x398c5e))return!0x1;if(_0x56113b['end']['isEqual'](_0xcdfef2['start']))return!0x0;if(_0x4a47e6['type']!=_0x398c5e['type'])return!0x1;if(!_0x56113b['end']['isTouching'](_0xcdfef2['start']))return!0x1;const _0x388544=_0x4fc856['createRange'](_0x56113b['end'],_0xcdfef2['start'])['getWalker']();for(const _0x434233 of _0x388544)if(['elementStart','elementEnd']['includes'](_0x434233['type'])&&_0x4fc856['schema']['isLimit'](_0x434233['item']))return!0x1;return!0x0;}function Lt(_0x215453,_0x37c1d0,_0x25e1f2=[]){return!(!_0x215453['_isDataLoaded']||!_0x37c1d0['_isDataLoaded'])&&_0x35aac6(xt(_0x215453['attributes'],_0x25e1f2),xt(_0x37c1d0['attributes'],_0x25e1f2));}function Ht(_0x4e39bc,_0x16c6d1){const _0x53efee=qt(_0x4e39bc['attributes']),_0x507e2c=qt(_0x16c6d1);if(!_0x4e39bc['_isDataLoaded'])return!0x1;for(const _0x36ab84 of Object['keys'](_0x507e2c))if(!_0x35aac6(_0x53efee[_0x36ab84],_0x507e2c[_0x36ab84]))return!0x1;return!0x0;}function qt(_0x467943){const _0x5d8af9=Object['assign']({},_0x467943);return delete _0x5d8af9['skipNestingCheck'],delete _0x5d8af9['tablePasteChainId'],_0x5d8af9;}class ne extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1f846b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4d902f,_0x27448a,_0x116a46,_0x3a55e7){super(),this['model']=_0x27448a,this['view']=_0x116a46,this['commentThreadController']=_0x3a55e7,this['_editor']=_0x4d902f,this['_acceptCommand']=_0x4d902f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4d902f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3876c5,_0x9e1e33)=>_0x3876c5||_0x9e1e33),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3e2e2f=>_0x3e2e2f&&this['_editor']['model']['canEditAt'](_0x27448a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3df810=>_0x3df810&&this['_editor']['model']['canEditAt'](_0x27448a['getRanges']())),this['_pendingAction']=null,_0x116a46['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x116a46,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x116a46,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x116a46,'change:isDirty',()=>{_0x116a46['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 _0x4257d6=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4257d6);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x229790{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x70adfd,_0x180950,_0x1f4dd8,_0x85f857){super(_0x70adfd),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x180950['authoredAt']),this['bind']('authoredAt')['to'](_0x180950),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x180950,this['_localUser']=_0x1f4dd8,this['_config']=_0x85f857,_0x85f857['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:_0x51bada}=this['_config'];this['commentsListView']=new _0x51bada(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',_0x2e6bea=>_0x2e6bea+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xf27021,_0x4ce78a)=>_0xf27021||!!_0x4ce78a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1c5ef0}=this['_config'],_0x50d034=new _0x1c5ef0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x29d518=_0x50d034['commentInputView'];return _0x50d034['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x29d518,'value',(_0x3c7f0b,_0x30ac2c,_0x10e8a3)=>!!_0x10e8a3||_0x3c7f0b&&!_0x30ac2c),_0x29d518['on']('submit',(_0x253dfc,_0x5d0551)=>{this['fire']('addComment',_0x5d0551),_0x29d518['editor']['setData']('');}),_0x29d518['on']('cancel',()=>this['focus']()),_0x29d518['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x50d034;}}class ie extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x373410,_0x3852ab,_0xa6c021,_0x4f9ea6){super(_0x373410,_0x3852ab,_0xa6c021,_0x4f9ea6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x26f761=>_0x26f761&&_0x26f761[0x0]?_0x26f761[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2305e7,_0x4524dd)=>{let _0x2f28e3='';for(const _0x3849cf of _0x2305e7)_0x2f28e3+='<p>'+ds(_0x3849cf['content'],_0x3849cf['color'])+'</p>';return _0x4524dd?_0x2f28e3:_0x3330b2(_0x2f28e3,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x373410,'Accept\x20suggestion'),_0x3fbc95['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x373410,'Discard\x20suggestion'),_0x3fbc95['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x45db5d(_0x373410,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3cf3f5=this['bindTemplate'],_0x44f79d=[{'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':_0x3cf3f5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3cf3f5['to']('authoredAt',_0x1da117=>this['_config']['formatDateTime'](_0x1da117))}]}]},{'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']&&_0x44f79d['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0xa0a753={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x3cf3f5['if']('isActive','ck-suggestion-wrapper--active'),_0x3cf3f5['to']('type',_0xf71672=>'ck-suggestion-'+_0xf71672),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':_0x44f79d}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0xa0a753['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)),_0xa0a753;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x23381c,_0x23f693,_0x95e311)=>{this['_descriptionElement']['innerHTML']=_0x95e311;});}['_createButton'](_0x219cbf,_0x32480f,_0x208d6a,_0x24bcc0,_0x4b4c2a){const _0x26af7f=new _0x37481b(this['locale']);return _0x26af7f['set']({'label':_0x219cbf,'icon':_0x32480f,'tooltip':!0x0,'tooltipPosition':_0x4b4c2a}),_0x26af7f['extendTemplate']({'attributes':{'class':_0x208d6a}}),_0x26af7f['on']('execute',()=>{this['fire'](_0x24bcc0,this['_model']['id']);}),_0x26af7f;}['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(_0x33ed83,_0x2555e9){let _0x3ef85f='';return _0x3ef85f+=_0x33ed83['split']('*')['map']((_0x2ab9db,_0x32bfb9)=>_0x32bfb9%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x2ab9db)+'</span>':us(_0x2ab9db))['join'](''),_0x2555e9&&(_0x3ef85f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2555e9['value']+'\x22\x20title=\x22'+_0x2555e9['title']+'\x22></span>'),_0x3ef85f;}function us(_0x3e32d9){const _0x13c28a=document['createElement']('span');return _0x13c28a['innerText']=_0x3e32d9,_0x13c28a['innerHTML'];}var ae='<!--\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 _0x47a92c{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x21e51f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x52a443){super(_0x52a443),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x75397=this['editor']['config'];_0x75397['define']('trackChanges.SuggestionThreadView',ie),_0x75397['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x75397['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3ad1de,_0x2b7591){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xb65967,_0x3dfe3b]of this['_handleControllerBuffer']){const _0x2b645f=this['_suggestionToController']['has'](_0xb65967);_0x2b645f||_0x3dfe3b?_0x2b645f&&_0x3dfe3b&&this['_destroyController'](_0xb65967):this['_initializeController'](_0xb65967);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3ad1de,_0x2b7591);}['init'](){const _0x13cf43=this['editor'],_0x7b8928=_0x13cf43['plugins']['get']('TrackChangesEditing'),_0x240520=_0x13cf43['plugins']['get']('Annotations'),_0x41d232=_0x13cf43['plugins']['get']('EditorAnnotations'),_0x4468f2=_0x13cf43['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x41d232['addSourceCollector'](()=>{const _0x537a7b=[];for(const [_0x4b8ea5,_0x30d91e]of Array['from'](this['_suggestionToController'])){const _0x36cd51=_0x4b8ea5['getAllAdjacentSuggestions'](),_0x56beea=[];for(const _0x323e63 of _0x36cd51){if(!_0x323e63['isInContent'])continue;if(_0x323e63['isMultiRange']){_0x56beea['push'](..._0x323e63['getRanges']());continue;}const _0x5440d7=_0x323e63['getFirstRange']();if(_0x56beea['length']>0x0){const _0x80597b=_0x56beea[0x0]['getJoined'](_0x5440d7);if(_0x80597b){_0x56beea[0x0]=_0x80597b;continue;}}_0x56beea['push'](_0x5440d7);}_0x537a7b['push']([_0x30d91e['view'],_0x56beea]);}return _0x537a7b;}),this['listenTo'](_0x7b8928,'suggestionLoaded',(_0x26e946,_0x2bc617)=>{this['listenTo'](_0x2bc617,'change:previous',(_0x4d181a,_0x31d866,_0x486b89,_0x2f2a88)=>{_0x2bc617['isInContent']&&(null==_0x486b89?(this['_updateController'](_0x2f2a88['head']),this['_handleSuggestionControllerDelayed'](_0x2bc617,!0x1)):(this['_updateController'](_0x486b89['head']),null==_0x2f2a88&&this['_handleSuggestionControllerDelayed'](_0x2bc617,!0x0)));}),null!==_0x2bc617['previous']?this['_updateController'](_0x2bc617['head']):this['_handleSuggestionControllerDelayed'](_0x2bc617,!0x1);}),this['listenTo'](_0x7b8928,'suggestionUnloaded',(_0x5a949b,_0x5ed4a9,_0x44f6f8)=>{this['stopListening'](_0x5ed4a9,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5ed4a9),this['_suggestionToController']['has'](_0x5ed4a9)&&this['_destroyController'](_0x5ed4a9),_0x44f6f8&&this['_updateController'](_0x44f6f8['head']);}),this['listenTo'](_0x7b8928,'suggestionChanged',(_0x29f55e,_0x3d4ebf)=>{this['_updateController'](_0x3d4ebf);}),this['listenTo'](_0x240520,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4468f2,'addComment',(_0x22e7f5,{threadId:_0x5247cf,isFromAdapter:_0xc569a})=>{if(_0xc569a||!_0x7b8928['hasSuggestion'](_0x5247cf))return;const _0x87ee8c=_0x7b8928['getSuggestion'](_0x5247cf);this['_suggestionToController']['get'](_0x87ee8c)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4ceb12=this['editor']['plugins']['get']('Annotations'),_0x4625dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x142f09=Array['from'](_0x4ceb12['activeAnnotations'],_0x1c6bbb=>_0x1c6bbb['innerView'])['filter'](_0x3ac09f=>this['_viewToController']['has'](_0x3ac09f)),_0x45c47b=[];for(const _0x345dfa of _0x142f09){const _0x1241a7=this['_viewToController']['get'](_0x345dfa)['model']['getAllAdjacentSuggestions']();_0x45c47b['push'](..._0x1241a7['reduce']((_0x293908,_0x3c6f7c)=>[..._0x293908,..._0x3c6f7c['getMarkerNames']()],[]));}_0x4625dd['activeMarkers']=_0x45c47b;}['_addUIComponentsToFactory'](){const _0xf775e2=this['editor'],_0x1ce861=_0xf775e2['locale'],_0x2dd386=o(_0x1ce861,'Track\x20changes'),_0x395f77=new Wt([{'type':'switchbutton','model':new _0x4e3d92({'withText':!0x0,'isToggleable':!0x0,'label':_0x2dd386,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4e3d92({'withText':!0x0,'label':o(_0x1ce861,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4e3d92({'withText':!0x0,'label':o(_0x1ce861,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4e3d92({'withText':!0x0,'label':o(_0x1ce861,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4e3d92({'withText':!0x0,'label':o(_0x1ce861,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xf10f52 of _0x395f77)if(re(_0xf10f52)){const _0x400515=_0xf775e2['commands']['get'](_0xf10f52['model']['commandName']);_0xf10f52['model']['bind']('isOn','isEnabled')['to'](_0x400515,'value','isEnabled');}_0xf775e2['ui']['componentFactory']['add']('trackChanges',_0xb8496c=>this['_createToolbarButton'](_0xb8496c,_0x395f77,_0x2dd386)),_0xf775e2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1a60c5=>this['_createMenuBarMenu'](_0x1a60c5,_0x395f77,_0x2dd386));}['_createToolbarButton'](_0x2411b7,_0x5df5b6,_0x55de20){const _0x2708b8=Jt(_0x2411b7,te),_0x11886b=this['editor']['commands']['get']('trackChanges');_0x2708b8['buttonView']['set']({'tooltip':_0x55de20,'label':_0x55de20,'icon':ae}),_0x2708b8['buttonView']['bind']('isOn')['to'](_0x11886b,'value'),_0x2708b8['buttonView']['on']('execute',()=>{_0x11886b['execute'](),this['editor']['editing']['view']['focus']();}),zt(_0x2708b8,_0x5df5b6,{'role':'menu'});const _0x4823e8=[];for(const _0x225c14 of _0x5df5b6)re(_0x225c14)&&_0x4823e8['push'](this['editor']['commands']['get'](_0x225c14['model']['commandName']));const _0x532c3c=_0x2708b8['buttonView'];return _0x532c3c['actionView']['unbind']('isEnabled'),_0x532c3c['arrowView']['unbind']('isEnabled'),_0x532c3c['actionView']['bind']('isEnabled')['to'](_0x11886b,'isEnabled'),_0x532c3c['arrowView']['bind']('isEnabled')['toMany'](_0x4823e8,'isEnabled',(..._0x13c2d8)=>_0x13c2d8['some'](_0x40f83c=>_0x40f83c)),_0x2708b8['on']('execute',_0x497e09=>{this['editor']['execute'](_0x497e09['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2708b8;}['_createMenuBarMenu'](_0x290cc1,_0x4cad67,_0x92f855){const _0x4238bd=new Qt(_0x290cc1),_0x590246=this['editor']['commands']['get']('trackChanges');_0x4238bd['buttonView']['set']({'label':_0x92f855,'icon':ae});const _0x192227=new Xt(_0x290cc1);for(const _0x4d8298 of _0x4cad67){if('separator'==_0x4d8298['type']){_0x192227['items']['add'](new Kt(_0x290cc1));continue;}const _0x16b6cf=new Yt(_0x290cc1,_0x4238bd),_0x29e032=new Zt(_0x290cc1),_0x369be7=_0x4d8298['model'];_0x29e032['bind'](...Object['keys'](_0x369be7))['to'](_0x369be7),_0x29e032['delegate']('execute')['to'](_0x4238bd),_0x29e032['on']('execute',()=>{this['editor']['execute'](_0x369be7['commandName']),this['editor']['editing']['view']['focus']();}),_0x16b6cf['children']['add'](_0x29e032),_0x192227['items']['add'](_0x16b6cf);}return _0x4238bd['bind']('isEnabled')['to'](_0x590246,'isEnabled'),_0x4238bd['panelView']['children']['add'](_0x192227),_0x4238bd;}['_initializeController'](_0x34312c){const _0x623807=this['editor'],_0x11acda=_0x623807['config'],_0x5b2090=_0x623807['plugins']['get']('Annotations'),_0x16cf7c=_0x623807['plugins']['get']('CommentsRepository'),_0x12a4af=_0x623807['plugins']['get']('EditorAnnotations'),_0x416bd1=_0x623807['plugins']['get'](_0x21e51f)['me'],_0x44c9d3=_0x11acda['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x157971,CommentThreadInputView:_0xdfe2f}=_0x623807['plugins']['get']('CommentsUI');let _0x34cbb3,_0x4855ac;this['_annotationViews']['has'](_0x34312c['id'])?(_0x4855ac=this['_annotationViews']['get'](_0x34312c['id']),_0x34cbb3=_0x4855ac['mainView']):(_0x34cbb3=new _0x44c9d3(_0x623807['locale'],_0x34312c,_0x416bd1,{'disableComments':this['_disableComments'],'editorConfig':_0x11acda['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x11acda['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x11acda['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x11acda['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5a35f4(_0x11acda['get']('locale')),'CommentView':_0x11acda['get']('comments')['CommentView'],'CommentsListView':_0x157971,'CommentThreadInputView':_0xdfe2f}),_0x34cbb3['acceptButton']['on']('execute',()=>{_0x623807['editing']['view']['focus']();}),_0x34cbb3['discardButton']['on']('execute',()=>{_0x623807['editing']['view']['focus']();}),_0x4855ac=_0x5b2090['createAnnotationView'](this['editor']['locale'],_0x34cbb3),_0x4855ac['bind']('isDirty')['to'](_0x34cbb3,'isDirty'),_0x4855ac['bind']('length')['to'](_0x34cbb3),_0x4855ac['bind']('type')['to'](_0x34cbb3,'type',_0x4893d1=>'suggestion-'+_0x4893d1),this['_annotationViews']['set'](_0x34312c['id'],_0x4855ac));const _0xfeac5c=_0x16cf7c['createCommentThreadController'](_0x34312c['commentThread'],_0x34cbb3),_0x4af7ab=new ne(_0x623807,_0x34312c,_0x34cbb3,_0xfeac5c),_0x41518b=_0x34312c['getAllAdjacentSuggestions']()['filter'](_0x48b01f=>_0x48b01f['isInContent']);_0x34cbb3['descriptionParts']=_0x623807['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x41518b),this['_suggestionToController']['set'](_0x34312c,_0x4af7ab),this['_viewToController']['set'](_0x34cbb3,_0x4af7ab);const _0x1917a2=_0x5b2090['createAnnotation']({'view':_0x4855ac,'target':()=>{const _0x395038=[],_0x5a31c8=_0x34312c['getAllAdjacentSuggestions']()['filter'](_0x5b8786=>_0x5b8786['isInContent']);for(const _0xe06156 of _0x5a31c8)_0x395038['push'](..._0xe06156['getMarkers']());return _0x5e96b9(_0x623807['editing'],_0x395038);},'type':()=>'suggestion-'+_0x4af7ab['view']['type']});_0x16cf7c['_bindAnnotationToEditors'](_0x34cbb3,_0x1917a2),_0x5b2090['add'](_0x1917a2),_0x12a4af['registerAnnotation'](_0x1917a2);}['_destroyController'](_0x1fa099){const _0x5444ac=this['editor']['plugins']['get']('CommentsRepository'),_0x480fe9=this['editor']['plugins']['get']('Annotations'),_0x4f3544=this['_suggestionToController']['get'](_0x1fa099),_0x5a592a=_0x4f3544['view'],_0x34088b=_0x480fe9['getByInnerView'](_0x5a592a);_0x5444ac['_unbindEditors'](_0x5a592a),_0x34088b&&_0x480fe9['remove'](_0x34088b),this['_suggestionToController']['delete'](_0x1fa099),this['_viewToController']['delete'](_0x5a592a),_0x4f3544['destroy']();}['_updateController'](_0xe7b2d4){if(!_0xe7b2d4['isInContent']||!this['_suggestionToController']['has'](_0xe7b2d4))return;const _0x373b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e4cf4=this['_suggestionToController']['get'](_0xe7b2d4),_0x62f68b=_0xe7b2d4['getAllAdjacentSuggestions']();_0x1e4cf4['view']['descriptionParts']=_0x373b2['descriptionFactory']['getDescriptions'](_0x62f68b);}['destroy'](){for(const _0x966a66 of this['_suggestionToController']['keys']())this['_destroyController'](_0x966a66);for(const _0x43d53b of this['_annotationViews']['values']())_0x43d53b['mainView']['destroy']();super['destroy']();}}function re(_0x1122a0){return'model'in _0x1122a0;}class k extends _0x47a92c{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x28db81){this['editor']['plugins']['get'](p)['adapter']=_0x28db81;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x38529f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x38529f);}['getSuggestions']({skipNotAttached:_0xa6c9fe=!0x1,toJSON:_0x16c60b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xa6c9fe,'toJSON':_0x16c60b});}['getSuggestion'](_0x1f36d4){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1f36d4);}}const T=['Pagination'];class P extends _0x47a92c{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x27a25b=this['editor'];if(_0x27a25b['config']['define']('trackChangesData.editorCreator',_0x2d1f91=>{const _0x1c26b1=_0x27a25b['model']['document']['getRootNames']()['reduce']((_0x332656,_0x5103f8)=>(_0x332656[_0x5103f8]='',_0x332656),{});return _0x27a25b['constructor']['create'](_0x1c26b1,_0x2d1f91);}),'function'!=typeof _0x27a25b['config']['get']('trackChangesData')['editorCreator'])throw new _0x2a50d9('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2718e2){return N(this['editor'],!0x0,_0x2718e2);}['getDataWithDiscardedSuggestions'](_0x1ce774){return N(this['editor'],!0x1,_0x1ce774);}}class D extends _0x47a92c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2ef264){super(_0x2ef264),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(_0x54e86b){return void 0x0!==_0x54e86b['getRootsAttributes'];}async function N(_0x2b89c3,_0x581298,_0x6e1b3){const _0xd8e2d4=_0xd14178(_0x2b89c3,T);_0xd8e2d4['plugins']['push'](p,D),_0xd8e2d4['rootsAttributes']=v(_0x2b89c3)?_0x2b89c3['getRootsAttributes']():void 0x0;const _0x9e9843=document['createDocumentFragment'](),_0x415e9f=_0x2b89c3['config']['get']('trackChangesData')['editorCreator'],_0x927a9d=await _0x415e9f(_0xd8e2d4,()=>function(_0x112933){const _0x8cbe59=document['createElement']('div');return _0x112933['appendChild'](_0x8cbe59),_0x8cbe59;}(_0x9e9843));!function(_0x33d7f6,_0x2c00fe){const _0x498eb9=_0x33d7f6['model']['document']['getRootNames']()['reduce']((_0x527ff4,_0x1b029c)=>(_0x527ff4[_0x1b029c]=_0x33d7f6['data']['get']({'rootName':_0x1b029c}),_0x527ff4),{}),_0x3b97e5=_0x33d7f6['plugins']['get']('Users')['users']['map'](_0x2116cd=>({'id':_0x2116cd['id'],'name':_0x2116cd['name']})),_0x2d6cb1=_0x33d7f6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x58a463=_0x33d7f6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x402d73=_0x2c00fe['plugins']['get']('Users'),_0x502a31=_0x2c00fe['plugins']['get']('TrackChangesEditing'),_0x3785d6=_0x2c00fe['plugins']['get']('CommentsRepository');for(const _0x503182 of _0x3b97e5)_0x402d73['getUser'](_0x503182['id'])||_0x402d73['addUser'](_0x503182);_0x402d73['me']||_0x402d73['useAnonymousUser']();for(const _0x2a3f2c of _0x58a463)_0x3785d6['addCommentThread'](_0x2a3f2c);for(const _0x42ba81 of _0x2d6cb1)_0x502a31['addSuggestionData'](_0x42ba81);_0x2c00fe['data']['set'](_0x498eb9);}(_0x2b89c3,_0x927a9d),_0x927a9d['execute'](_0x581298?'acceptAllSuggestions':'discardAllSuggestions');const _0x58745e=v(_0x927a9d)?_0x927a9d['getFullData'](_0x6e1b3):_0x927a9d['data']['get'](_0x6e1b3);return await _0x927a9d['destroy'](),_0x58745e;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|