@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240729.0 → 0.0.0-nightly-20240730.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 +10 -10
- 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
|
-
_0x1bac3e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4dd4cd,_0x56dd29){super(),this['id']=_0x56dd29['id'],this['type']=_0x56dd29['type'],this['subType']=_0x56dd29['subType']||null,this['author']=_0x56dd29['author'],this['creator']=_0x56dd29['creator']||_0x56dd29['author'],this['isExternal']=Boolean(_0x56dd29['attributes']&&_0x56dd29['attributes']['@external']),this['data']=null,this['_model']=_0x4dd4cd,this['_onAccept']=_0x56dd29['onAccept'],this['_onDiscard']=_0x56dd29['onDiscard'],this['_onAttributesChange']=_0x56dd29['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x56dd29['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 _0x1de70d=this;for(;_0x1de70d['previous'];)_0x1de70d=_0x1de70d['previous'];return _0x1de70d;}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'](_0x1a6f98){this['_markerNames']['add'](_0x1a6f98);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x563472=>this['_model']['markers']['get'](_0x563472))['filter'](_0x304e5e=>_0x304e5e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xf43456=>{for(const _0x1412d9 of this['getMarkers']())_0xf43456['removeMarker'](_0x1412d9);}),this['_markerNames']['clear']();}['removeMarker'](_0x4bec0c){this['_model']['change'](_0x646aff=>{_0x646aff['removeMarker'](_0x4bec0c);}),this['_markerNames']['delete'](_0x4bec0c);}['addRange'](_0x5b742a){const _0x2d93ea='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2d93ea),this['_model']['change'](_0xf5873=>{_0xf5873['addMarker'](_0x2d93ea,{'range':_0x5b742a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x201384){for(const _0x564709 of this['getRanges']())if(_0x564709['isIntersecting'](_0x201384))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x325025=>_0x325025['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x12c26a,_0x5038e3)=>[..._0x12c26a,..._0x5038e3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x7143a6=this['getRanges']();if(0x1!=_0x7143a6['length'])return null;const _0xe9b34b=_0x7143a6[0x0],_0x5453f0=_0xe9b34b['start']['nodeAfter'],_0x38cfc8=_0xe9b34b['end']['nodeBefore'];return _0x5453f0 instanceof _0xcfeee5?_0x5453f0!=_0x38cfc8?null:_0x5453f0: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 _0x4ccd59=[];let _0xa86d54=this['head'];for(;_0xa86d54;)_0x4ccd59['push'](_0xa86d54),_0xa86d54=_0xa86d54['next'];return _0x4ccd59;}['setAttribute'](_0x26c420,_0x1a96a8){const _0x555d4=_0x513d9c(this['attributes']);_0x21177d(_0x555d4,_0x26c420,_0x1a96a8),_0x591e85(_0x555d4,this['attributes'])||(this['attributes']=_0x555d4,this['_onAttributesChange'](_0x555d4));}['removeAttribute'](_0x4c7474){const _0x469b78=_0x513d9c(this['attributes']);_0x1f8cc9(_0x469b78,_0x4c7474),_0x591e85(_0x469b78,this['attributes'])||(this['attributes']=_0x469b78,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 _0x3bcbe6()['substr'](0x1,0x5);}}function o(_0x4874f3,_0x17323e,_0x55fda3){const t=_0x4874f3['t'];switch(_0x17323e){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',_0x55fda3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x55fda3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x55fda3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x55fda3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x55fda3);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',_0x55fda3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x55fda3);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',_0x55fda3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x55fda3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x55fda3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x55fda3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x55fda3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x55fda3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x55fda3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x55fda3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x55fda3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x55fda3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x55fda3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x55fda3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x55fda3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x55fda3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x55fda3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x55fda3);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'},_0x55fda3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x55fda3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x55fda3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x55fda3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x55fda3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x55fda3);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'},_0x55fda3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x55fda3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x55fda3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x55fda3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x55fda3);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'},_0x55fda3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x55fda3);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'},_0x55fda3);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'},_0x55fda3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x55fda3);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'},_0x55fda3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x55fda3);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'},_0x55fda3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x55fda3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x55fda3);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'},_0x55fda3);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'},_0x55fda3);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'},_0x55fda3);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 _0x17323e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3b942d,_0x11ca18){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3b942d,this['_locale']=_0x11ca18;}['getDescriptions'](_0x44abbd){const _0x5e811a=[],_0x407203=new Set(),_0x15b7a4=new Set();for(let _0x10d902=0x0;_0x10d902<_0x44abbd['length'];_0x10d902++){const _0x52dd79=_0x44abbd[_0x10d902];if(!_0x52dd79['isInContent'])continue;const _0x3b38e2=this['_handleCustomCallbackDescription'](_0x52dd79);if(_0x3b38e2){if(null!=_0x52dd79['subType']){if(_0x407203['has'](_0x52dd79['subType']))continue;_0x407203['add'](_0x52dd79['subType']);}_0x5e811a['push'](_0x3b38e2);}else{if('attribute'!=_0x52dd79['type'])'insertion'!=_0x52dd79['type']&&'deletion'!=_0x52dd79['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5e811a,_0x52dd79,_0x44abbd[_0x10d902+0x1]);else{const _0x1d5ac4=_0x52dd79['data']['key'];if(_0x15b7a4['has'](_0x1d5ac4))continue;_0x15b7a4['add'](_0x52dd79['data']['key']),_0x1d5ac4==m?this['_handleRenameSuggestionDescription'](_0x5e811a,_0x52dd79):this['_handleAttributeSuggestionDescription'](_0x5e811a,_0x52dd79);}}}return this['_resolveDescriptionItems'](_0x5e811a);}['registerDescriptionCallback'](_0x1d8445){this['_customCallbacks']['push'](_0x1d8445);}['registerElementLabel'](_0x51431c,_0x47eece,_0x2b082a=_0x3efeb5['normal']){'function'==typeof _0x51431c?_0x42b445(this['_itemLabelsCallbacks'],{'matchingCallback':_0x51431c,'label':_0x47eece,'priority':_0x2b082a}):this['_itemLabels']['set'](_0x51431c,_0x47eece);}['registerAttributeLabel'](_0x2c418e,_0x1e0a9f){this['_attributeLabels']['set'](_0x2c418e,_0x1e0a9f);}['getItemLabel'](_0x3cc249,_0x3ef30a=0x1){let _0x330a2d;for(const _0x405058 of this['_itemLabelsCallbacks'])if(_0x405058['matchingCallback'](_0x3cc249)){_0x330a2d=_0x405058['label'];break;}return _0x330a2d||(_0x330a2d=this['_itemLabels']['get'](_0x3cc249['name'])),_0x330a2d?_0x330a2d(_0x3ef30a):0x1!==_0x3ef30a?_0x3ef30a+'\x20'+_0x3cc249['name']+'s':''+_0x3cc249['name'];}['_addDescriptionItems'](_0x243947,_0x345672){const _0x20cf13=_0x345672['getFirstRange']()['getWalker'](),_0x21c99f='insertion'==_0x345672['type']?'add':'remove';for(const _0x156fd3 of _0x20cf13){const _0x423ddb=_0x156fd3['item'],_0x52a3ef=_0x243947[_0x243947['length']-0x1];if(_0x423ddb['is']('$textProxy'))_0x52a3ef&&_0x52a3ef['type']['indexOf']('Container')>-0x1&&_0x243947['pop'](),_0x52a3ef&&'text'==_0x52a3ef['type']?_0x52a3ef[_0x21c99f]+=_0x423ddb['data']:_0x243947['push']({'type':'text','add':'add'==_0x21c99f?_0x423ddb['data']:'','remove':'remove'==_0x21c99f?_0x423ddb['data']:''});else{if(this['_schema']['isObject'](_0x423ddb)){const _0x9815e=_0x423ddb;if(_0x52a3ef&&_0x52a3ef['type']['indexOf']('Container')>-0x1&&_0x243947['pop'](),'elementEnd'==_0x156fd3['type'])continue;_0x52a3ef&&_0x52a3ef['type']==_0x21c99f+'Object'&&_0x52a3ef['element']['name']==_0x9815e['name']?_0x52a3ef['quantity']++:_0x243947['push']({'type':_0x21c99f+'Object','element':_0x9815e,'quantity':0x1}),_0x20cf13['skip'](_0x5a3550=>!('elementEnd'==_0x5a3550['type']&&_0x5a3550['item']==_0x423ddb));}else{if(this['_schema']['checkChild'](_0x423ddb,'$text')||_0x423ddb['is']('element','softBreak')){const _0x4dff89=_0x423ddb;if('add'==_0x21c99f&&'elementStart'==_0x156fd3['type']||'remove'==_0x21c99f&&'elementEnd'==_0x156fd3['type'])continue;if(_0x52a3ef&&-0x1==_0x52a3ef['type']['indexOf']('Container')){'text'==_0x52a3ef['type']&&(_0x52a3ef[_0x21c99f]+='\x0a');continue;}let _0x3356d2;if(_0x3356d2='add'==_0x21c99f?_0x4dff89['nextSibling']&&!this['_schema']['isObject'](_0x4dff89['nextSibling'])?_0x4dff89['nextSibling']:null:_0x4dff89['previousSibling']&&!this['_schema']['isObject'](_0x4dff89['previousSibling'])?_0x4dff89['previousSibling']:null,_0x4dff89['isEmpty']||_0x3356d2&&_0x3356d2['isEmpty']){const _0x1eb1c2=_0x3356d2&&_0x3356d2['isEmpty']?_0x3356d2:_0x4dff89;_0x52a3ef&&_0x52a3ef['type']==_0x21c99f+'EmptyContainer'&&_0x52a3ef['element']['name']==_0x1eb1c2['name']?_0x52a3ef['quantity']++:_0x243947['push']({'type':_0x21c99f+'EmptyContainer','element':_0x1eb1c2,'quantity':0x1});}else _0x243947['push']({'type':_0x21c99f+'Container','element':_0x4dff89});}}}}}['_resolveDescriptionItems'](_0x182c43){const _0x3e18e0=this['_locale'],_0x925217=[],_0x251ca9=[],_0x639e89=[];for(const _0xa13184 of _0x182c43)switch(_0xa13184['type']){case'text':if(_0xa13184['add']=_0xa13184['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xa13184['remove']=_0xa13184['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xa13184['add']&&''!=_0xa13184['remove']){_0x925217['push']({'type':'replace','content':o(_0x3e18e0,'REPLACE_TEXT',['\x22'+_0xa13184['remove']+'\x22','\x22'+_0xa13184['add']+'\x22'])});continue;}if(null!=_0xa13184['add']['match'](/^ +$/)){_0x925217['push']({'type':'insertion','content':o(_0x3e18e0,'*Insert:*\x20%0',o(_0x3e18e0,'ELEMENT_SPACE',_0xa13184['add']['length']))});continue;}if(null!=_0xa13184['remove']['match'](/^ +$/)){_0x925217['push']({'type':'deletion','content':o(_0x3e18e0,'*Remove:*\x20%0',o(_0x3e18e0,'ELEMENT_SPACE',_0xa13184['remove']['length']))});continue;}if(''!=_0xa13184['add']){_0x925217['push']({'type':'insertion','content':o(_0x3e18e0,'*Insert:*\x20%0','\x22'+_0xa13184['add']+'\x22')});continue;}_0x925217['push']({'type':'deletion','content':o(_0x3e18e0,'*Remove:*\x20%0','\x22'+_0xa13184['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x925217['push']({'type':'insertion','content':o(_0x3e18e0,'*Insert:*\x20%0',this['getItemLabel'](_0xa13184['element'],_0xa13184['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x925217['push']({'type':'deletion','content':o(_0x3e18e0,'*Remove:*\x20%0',this['getItemLabel'](_0xa13184['element'],_0xa13184['quantity']))});continue;case'addContainer':_0x925217['push']({'type':'insertion','content':o(_0x3e18e0,'*Split:*\x20%0',this['getItemLabel'](_0xa13184['element'],_0xa13184['quantity']))});continue;case'removeContainer':_0x925217['push']({'type':'deletion','content':o(_0x3e18e0,'*Merge:*\x20%0',this['getItemLabel'](_0xa13184['element'],_0xa13184['quantity']))});continue;case'addFormat':_0x251ca9['push'](_0xa13184['key']);continue;case'removeFormat':_0x639e89['push'](_0xa13184['key']);continue;default:_0x925217['push'](_0xa13184);}if(_0x251ca9['length']){const _0x86a249=_0x251ca9['map'](_0x542c3d=>this['_attributeLabels']['has'](_0x542c3d)?this['_attributeLabels']['get'](_0x542c3d):_0x542c3d)['join'](',\x20');_0x925217['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x86a249)});}if(_0x639e89['length']){const _0x398ff9=_0x639e89['map'](_0x3fe056=>this['_attributeLabels']['has'](_0x3fe056)?this['_attributeLabels']['get'](_0x3fe056):_0x3fe056)['join'](',\x20');_0x925217['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x398ff9)});}return _0x925217;}['_handleCustomCallbackDescription'](_0x9776c2){for(const _0x590430 of this['_customCallbacks']){const _0xd8c671=_0x590430(_0x9776c2);if(_0xd8c671&&'type'in _0xd8c671)return _0xd8c671;}}['_handleAttributeSuggestionDescription'](_0x103768,_0x3c08c6){const _0x2612a6=_0x3c08c6['data'],_0x2a69f8=void 0x0===_0x2612a6['newValue']?'removeFormat':'addFormat';_0x103768['push']({'type':_0x2a69f8,'key':_0x2612a6['key']});}['_handleRenameSuggestionDescription'](_0x4ae0ea,_0x472b46){_0x4ae0ea['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x472b46['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x30201b,_0x1efba3,_0x3ef383){if(this['_addDescriptionItems'](_0x30201b,_0x1efba3),_0x3ef383&&_0x3ef383['getFirstRange']()&&!_0x1efba3['getFirstRange']()['end']['isEqual'](_0x3ef383['getFirstRange']()['start'])){const _0x1caba4=_0x30201b[_0x30201b['length']-0x1],_0xfaf48a='insertion'==_0x1efba3['type']?'add':'remove';_0x1caba4&&'text'==_0x1caba4['type']&&(_0x1caba4[_0xfaf48a]+='\x0a');}}}class E extends _0x4751ae{['afterInit'](){const _0x29bbe8=this['editor'],_0x43cf81=_0x29bbe8['plugins']['get']('TrackChangesEditing');_0x29bbe8['commands']['get']('showAIAssistant')&&_0x43cf81['enableCommand']('showAIAssistant');}}class O extends _0x4751ae{['afterInit'](){const _0x522417=this['editor'],_0x328a87=_0x522417['locale'];if(!_0x522417['plugins']['has']('AlignmentEditing'))return;const _0x58f0dd=_0x522417['plugins']['get']('TrackChangesEditing');_0x58f0dd['enableDefaultAttributesIntegration']('alignment'),_0x58f0dd['registerBlockAttribute']('alignment'),_0x58f0dd['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x328a87,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33a903=this['editor'],_0x596421=_0x33a903['locale'];_0x33a903['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x579bb3=>{if('formatBlock'!=_0x579bb3['type'])return;const {data:_0x5620f3}=_0x579bb3;if(_0x5620f3&&'alignment'==_0x5620f3['commandName']){const _0x2272fb=_0x5620f3['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x596421,'*Format:*\x20%0',function(_0x40bc74){switch(_0x40bc74){case'left':return o(_0x596421,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x596421,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x596421,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x596421,'FORMAT_JUSTIFY_TEXT');}}(_0x2272fb))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x4751ae{['afterInit'](){const _0x5893cd=this['editor'],_0x5b5da8=_0x5893cd['plugins']['get']('TrackChangesEditing'),_0x3abd32=_0x5893cd['locale'];for(const _0x2211e7 of ti){if(!_0x5893cd['plugins']['has'](_0x2211e7))continue;const _0x34b7f9=_0x2211e7['slice'](0x0,-0x7)['toLowerCase'](),_0x283e16='FORMAT_'+_0x34b7f9['toUpperCase']();_0x5b5da8['enableDefaultAttributesIntegration'](_0x34b7f9),_0x5b5da8['registerInlineAttribute'](_0x34b7f9),_0x5b5da8['descriptionFactory']['registerAttributeLabel'](_0x34b7f9,o(_0x3abd32,_0x283e16));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a41aa=this['editor'],_0x4d3cac=_0x2a41aa['locale'],_0x28f88b=_0x2a41aa['plugins']['get']('TrackChangesEditing');function _0x3af597(_0x3d9a71,_0x289efd){_0x28f88b['descriptionFactory']['registerDescriptionCallback'](_0x44a36d=>{if('formatInline'!=_0x44a36d['type'])return;const {data:_0x39437b}=_0x44a36d;return _0x39437b&&_0x39437b['commandName']===_0x3d9a71?_0x39437b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d3cac,'*Format:*\x20%0',_0x289efd)}:{'type':'format','content':o(_0x4d3cac,'*Remove\x20format:*\x20%0',_0x289efd)}:void 0x0;});}_0x3af597('bold',o(_0x4d3cac,'FORMAT_BOLD')),_0x3af597('italic',o(_0x4d3cac,'FORMAT_ITALIC')),_0x3af597('underline',o(_0x4d3cac,'FORMAT_UNDERLINE')),_0x3af597('code',o(_0x4d3cac,'FORMAT_CODE')),_0x3af597('strikethrough',o(_0x4d3cac,'FORMAT_STRIKETHROUGH')),_0x3af597('subscript',o(_0x4d3cac,'FORMAT_SUBSCRIPT')),_0x3af597('superscript',o(_0x4d3cac,'FORMAT_SUPERSCRIPT'));}}class U extends _0x4751ae{['afterInit'](){const _0x4cc031=this['editor'],_0x5277fd=_0x4cc031['locale'];if(!_0x4cc031['plugins']['has']('BlockQuoteEditing'))return;const _0x1d5cfb=_0x4cc031['plugins']['get']('TrackChangesEditing'),_0x570200=this['editor']['commands']['get']('blockQuote');_0x1d5cfb['enableCommand']('blockQuote',(_0x4c41ee,_0x18238d={})=>{const _0x4987e3=this['editor']['model']['document']['selection'],_0x3f682c=_0x18238d&&void 0x0!==_0x18238d['forceValue']?_0x18238d['forceValue']:!_0x570200['value'];let _0x49d62f=[];if(_0x3f682c){const _0xfc31ab=Array['from'](_0x4987e3['getSelectedBlocks']())['filter'](_0x18ba44=>oo(_0x18ba44)||function(_0x3789df,_0x401122){const _0x4ead87=_0x401122['checkChild'](_0x3789df['parent'],'blockQuote'),_0x42c004=_0x401122['checkChild'](['$root','blockQuote'],_0x3789df);return _0x4ead87&&_0x42c004;}(_0x18ba44,this['editor']['model']['schema']));_0x49d62f=to(_0xfc31ab,_0x4cc031['model']);}else{const _0x569d12=Array['from'](_0x4987e3['getSelectedBlocks']())['filter'](_0x5044cf=>oo(_0x5044cf));_0x49d62f=to(_0x569d12,_0x4cc031['model']);}_0x4cc031['model']['change'](()=>{for(const _0x37839a of _0x49d62f)_0x1d5cfb['markBlockFormat'](_0x37839a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3f682c}]});});}),_0x1d5cfb['descriptionFactory']['registerDescriptionCallback'](_0x2e70c5=>{const {data:_0x4060ee}=_0x2e70c5;if(_0x4060ee&&'blockQuote'==_0x4060ee['commandName']){const _0x33f2d2=o(_0x5277fd,'ELEMENT_BLOCK_QUOTE');return _0x4060ee['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5277fd,'*Set\x20format:*\x20%0',_0x33f2d2)}:{'type':'format','content':o(_0x5277fd,'*Remove\x20format:*\x20%0',_0x33f2d2)};}});}}function oo(_0x4e8e25){return'blockQuote'==_0x4e8e25['parent']['name'];}class G extends _0x4751ae{['afterInit'](){const _0x322055=this['editor'];_0x322055['plugins']['has']('CaseChange')&&(_0x322055['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x322055['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x322055['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x4751ae{['afterInit'](){const _0x19ebe0=this['editor'];_0x19ebe0['commands']['get']('ckbox')&&_0x19ebe0['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4751ae{['afterInit'](){const _0x31c926=this['editor'];if(!_0x31c926['plugins']['has']('CodeBlock'))return;const _0x18ec17=_0x31c926['plugins']['get']('TrackChangesEditing'),_0x4a105d=_0x31c926['locale'],_0x48468e=_0x31c926['config']['get']('codeBlock')['languages'],_0x5b3878=_0x31c926['commands']['get']('codeBlock');_0x18ec17['enableCommand']('indentCodeBlock'),_0x18ec17['enableCommand']('outdentCodeBlock'),_0x18ec17['enableCommand']('codeBlock',(_0x3ecdbf,_0x497f8b={})=>{const _0xc467a9=_0x31c926['model'],_0x52c99a=_0x31c926['model']['document']['selection'],_0x3adf09=_0x497f8b&&void 0x0!==_0x497f8b['forceValue']?_0x497f8b['forceValue']:!_0x5b3878['value'];let _0x4268f6;_0x497f8b['language']||(_0x497f8b['language']=_0x48468e[0x0]['language']),_0x4268f6=_0x3adf09?Array['from'](_0x52c99a['getSelectedBlocks']())['filter'](_0x1243b6=>eo(_0x1243b6)||function(_0x17e51a,_0x5091d3){if(_0x17e51a['is']('rootElement')||_0x5091d3['isLimit'](_0x17e51a))return!0x1;return _0x5091d3['checkChild'](_0x17e51a['parent'],'codeBlock');}(_0x1243b6,_0xc467a9['schema'])):Array['from'](_0x52c99a['getSelectedBlocks']())['filter'](_0x3ff06d=>eo(_0x3ff06d));const _0x2cfc34=to(_0x4268f6,_0xc467a9);_0xc467a9['change'](()=>{for(const _0x43d348 of _0x2cfc34)_0x18ec17['markBlockFormat'](_0x43d348,{'commandName':'codeBlock','commandParams':[{..._0x497f8b,'forceValue':_0x3adf09}],'formatGroupId':'blockName'});});}),(_0x18ec17['descriptionFactory']['registerElementLabel']('codeBlock',_0x2b3568=>o(_0x4a105d,'ELEMENT_CODE_BLOCK',_0x2b3568)),_0x18ec17['descriptionFactory']['registerDescriptionCallback'](_0xabc65c=>{if('formatBlock'!=_0xabc65c['type'])return;const _0x36866f=_0x4a105d['t'],{data:_0xcdea74}=_0xabc65c;if(!_0xcdea74||'codeBlock'!=_0xcdea74['commandName'])return;const _0x14e0ef=_0xcdea74['commandParams'][0x0]['language'],_0x64b323=_0x36866f(_0x48468e['find'](_0x371785=>_0x371785['language']===_0x14e0ef)['label'])['toLowerCase']();return _0xcdea74['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a105d,'*Set\x20format:*\x20%0',o(_0x4a105d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x64b323+')')}:{'type':'format','content':o(_0x4a105d,'*Remove\x20format:*\x20%0',o(_0x4a105d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x562632){return'codeBlock'==_0x562632['name'];}class H extends _0x4751ae{['afterInit'](){const _0x11fa27=this['editor'];if(!_0x11fa27['plugins']['has']('CommentsEditing'))return;_0x11fa27['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x184e4b,_0x1a0dd0,_0x153067){const _0xf52839=[];for(const _0x46bde8 of _0x1a0dd0['getItems']())_0x46bde8['hasAttribute'](_0x184e4b)&&_0xf52839['push'](_0x153067['createRangeOn'](_0x46bde8));return _0xf52839;}function _e(_0x53327c,_0x16b8c6,{showActiveMarker:_0xf8c8c6=!0x0}={}){const _0x2469bb=_0x53327c['plugins']['get']('TrackChangesEditing');return(_0x2b80e4,_0x28fa5d,_0x557f23)=>{if(!_0x557f23['consumable']['test'](_0x28fa5d['markerRange'],_0x2b80e4['name']))return;const _0x4d5b4c=_0x28fa5d['markerRange']['getWalker'](),_0xbebe5=_0x28fa5d['markerRange']['start'],_0x9499fe=_0x53327c['model']['schema'];let _0x75ba5=null,_0x2095c9=null,_0xf27af=!0x1,_0x48fbc7=!0x1;for(const _0x1aa433 of _0x4d5b4c){const _0x12be9b=_0x1aa433['item'];_0xf27af=_0xf27af||_0x9499fe['isContent'](_0x12be9b);const _0x4a13a6=_0x557f23['mapper']['toViewElement'](_0x12be9b);if(_0x4a13a6&&_0x4a13a6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1aa433['type']&&(_0x9499fe['isBlock'](_0x12be9b)&&!_0x9499fe['isLimit'](_0x12be9b)&&(_0x12be9b['nextSibling']||_0xbebe5['isAtEnd']?_0x75ba5&&_0x75ba5['parent']==_0x12be9b||(_0x75ba5=_0x12be9b,_0x351344(_0x1aa433['previousPosition']),_0x48fbc7=!0x0):_0x2095c9=_0x2095c9||_0x1aa433['previousPosition']));}function _0x351344(_0x2541a1){const _0x46e4ba=_0x557f23['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x16b8c6}),_0x1f7c08=_0x557f23['mapper']['toViewPosition'](_0x2541a1);_0xf8c8c6&&_0x2469bb['activeMarkers']['includes'](_0x28fa5d['markerName'])&&_0x557f23['writer']['addClass']('ck-suggestion-marker--active',_0x46e4ba),_0x557f23['writer']['insert'](_0x1f7c08,_0x46e4ba),_0x557f23['mapper']['bindElementToMarker'](_0x46e4ba,_0x28fa5d['markerName']);}_0xf27af||_0x48fbc7||!_0x2095c9||_0x351344(_0x2095c9);};}class J extends _0x4751ae{static get['requires'](){return[_0x143569];}['init'](){const _0x16d60e=this['editor'],_0x28fa79=_0x16d60e['plugins']['get']('TrackChangesEditing');_0x28fa79['enableCommand']('delete');const _0x1fd857=_0x16d60e['commands']['get']('deleteForward');_0x28fa79['enableCommand']('deleteForward',(_0x365d57,_0x5197d2={})=>{const _0x215aa8=_0x16d60e['model']['createSelection'](_0x16d60e['model']['document']['selection']);_0x215aa8['isCollapsed']&&_0x16d60e['model']['modifySelection'](_0x215aa8,{'direction':'forward','unit':_0x5197d2['unit']});const _0x52f162=_0x215aa8['getFirstRange'](),_0x16f4ec=_0x8f1c09['fromRange'](_0x52f162);let _0xfbe0ec;_0x365d57(_0x5197d2),_0xfbe0ec='$graveyard'==_0x16f4ec['root']['rootName']?_0x16d60e['model']['createRange'](_0x52f162['start']):_0x16d60e['model']['createRange'](_0x16f4ec['start'],_0x16f4ec['end']),_0x16f4ec['detach'](),_0x16d60e['model']['enqueueChange'](_0x1fd857['buffer']['batch'],_0x3eb150=>{_0x1fd857['buffer']['lock'](),_0x3eb150['setSelection'](_0x3eb150['createRange'](_0xfbe0ec['end'])),_0x1fd857['buffer']['unlock']();});}),_0x16d60e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x16d60e,'merge'),{'priority':'high'}),_0x16d60e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x9dbb42,_0x39028b,_0x54b22a)=>{_0x54b22a['options']['showSuggestionHighlights']&&_e(_0x16d60e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x9dbb42,_0x39028b,_0x54b22a);},{'priority':'high'}),_0x16d60e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5a5de7,_0x41349b,_0x54c218)=>{const _0x225ea3=_0x54c218['mapper']['markerNameToElements'](_0x41349b['markerName']);if(_0x225ea3){for(const _0x4a0fa4 of _0x225ea3)_0x4a0fa4['is']('uiElement')&&(_0x54c218['mapper']['unbindElementFromMarkerName'](_0x4a0fa4,_0x41349b['markerName']),_0x54c218['writer']['remove'](_0x4a0fa4));}},{'priority':'high'});}}class q extends _0x4751ae{['afterInit'](){const _0x18f9e5=this['editor'];if(!_0x18f9e5['plugins']['has']('ListEditing'))return;const _0x1640a9=_0x18f9e5['locale'],_0x547d89=_0x18f9e5['plugins']['get']('TrackChangesEditing'),_0x2fd296=_0x18f9e5['plugins']['has']('TodoListEditing'),_0x40378a=!!_0x18f9e5['config']['get']('list.multiBlock');function _0x34258d(_0x35b74a){return{'type':'format','content':''+o(_0x1640a9,'*Set\x20format:*\x20%0',_0x35b74a)};}function _0xf2bead(_0x344963){return{'type':'format','content':''+o(_0x1640a9,'*Remove\x20format:*\x20%0',_0x344963)};}_0x547d89['enableDefaultAttributesIntegration']('numberedList'),_0x547d89['enableDefaultAttributesIntegration']('bulletedList'),_0x547d89['enableDefaultAttributesIntegration']('customNumberedList'),_0x547d89['enableDefaultAttributesIntegration']('customBulletedList'),_0x547d89['enableDefaultAttributesIntegration']('indentList'),_0x547d89['enableDefaultAttributesIntegration']('outdentList'),_0x547d89['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x547d89['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x547d89['registerBlockAttribute']('listItemId'),_0x547d89['registerBlockAttribute']('listType'),_0x547d89['registerBlockAttribute']('listIndent'),_0x40378a&&(_0x547d89['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x547d89['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2fd296&&(_0x547d89['enableDefaultAttributesIntegration']('todoList'),_0x547d89['enableDefaultAttributesIntegration']('checkTodoList'),_0x547d89['registerBlockAttribute']('todoListChecked'),_0x547d89['descriptionFactory']['registerDescriptionCallback'](_0x2ef0c2=>{const {data:_0x440a08}=_0x2ef0c2;if(_0x440a08&&'todoListChecked'==_0x440a08['key'])return{'type':'format','content':_0x440a08['newValue']?o(_0x1640a9,'*Check\x20item*'):o(_0x1640a9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x57615c=>{if(_0x57615c['batch']['isUndo'])return!0x1;let _0x6575b5=!0x1;const _0x53ed34=_0x547d89['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c8969=>'todoListChecked'===_0x547d89['_getAttributeKey'](_0x4c8969));for(const _0x573010 of _0x53ed34){'todo'!=_0x573010['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x547d89['_findSuggestions'](_0x573010['getFirstRange'](),'attribute')['find'](_0x3de9bd=>'listType'===_0x547d89['_getAttributeKey'](_0x3de9bd['suggestion']))||(_0x57615c['removeMarker'](_0x573010['getFirstMarker']()),_0x6575b5=!0x0));}return _0x6575b5;})),_0x547d89['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1640a9,'FORMAT_INDENT'));const _0xc5bf14={'type':'format','content':''};_0x547d89['descriptionFactory']['registerDescriptionCallback'](_0x5a8e62=>{const {data:_0x314238}=_0x5a8e62;if(!_0x314238||'listType'!=_0x314238['key'])return;let _0x43c118=_0x5a8e62['head'];for(;_0x43c118;){if(_0x43c118['data']&&(('listStyle'==_0x43c118['data']['key']||'listMarkerStyle'==_0x43c118['data']['key'])&&(_0x43c118['data']['newValue']&&'default'!=_0x43c118['data']['newValue']||'default'!=_0x43c118['data']['oldValue']&&!_0x314238['newValue'])||!_0x40378a&&_0x43c118['data']['key']==m))return _0xc5bf14;_0x43c118=_0x43c118['next'];}if(null==_0x314238['newValue'])switch(_0x314238['oldValue']){case'bulleted':return _0xf2bead(o(_0x1640a9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf2bead(o(_0x1640a9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf2bead(o(_0x1640a9,'ELEMENT_TODO_LIST'));}switch(_0x314238['newValue']){case'bulleted':return _0x34258d(o(_0x1640a9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34258d(o(_0x1640a9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34258d(o(_0x1640a9,'ELEMENT_TODO_LIST'));}}),_0x547d89['descriptionFactory']['registerDescriptionCallback'](_0x260131=>{const {data:_0x173322}=_0x260131;if(_0x173322&&'listIndent'==_0x173322['key'])return null==_0x173322['newValue']||null==_0x173322['oldValue']&&0x0==_0x173322['newValue']?_0xc5bf14:void 0x0;}),_0x547d89['descriptionFactory']['registerDescriptionCallback'](_0x45c5f0=>{if('attribute'!=_0x45c5f0['type'])return;const {data:_0x376993}=_0x45c5f0;if(!_0x376993||'listItemId'!=_0x376993['key'])return;const _0x5644a7=le(_0x45c5f0);return'newValue'==_0x5644a7?{'type':'format','content':o(_0x1640a9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5644a7?{'type':'format','content':o(_0x1640a9,'*Split:*\x20list\x20item')}:_0xc5bf14;}),_0x18f9e5['model']['document']['registerPostFixer'](_0x1d7e31=>this['listItemIdFixer'](_0x1d7e31)),_0x18f9e5['model']['document']['registerPostFixer'](_0x455e7d=>this['noTrackChangesFixer'](_0x455e7d)),_0x18f9e5['model']['document']['on']('change:data',(_0x57ae5e,_0x375895)=>{if(_0x375895['isUndo']||!_0x375895['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3abb33){if(_0x3abb33['batch']['isUndo']||!_0x3abb33['batch']['isLocal'])return!0x1;let _0x7bac92=!0x1;const _0x4a92c6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e3e39=>_0x3e3e39['data']&&'listItemId'==_0x3e3e39['data']['key'])['filter'](_0x5ba49d=>_0x5ba49d['data']['newValue']&&_0x5ba49d['data']['oldValue']);for(const _0x5eb73a of _0x4a92c6)le(_0x5eb73a)||(_0x3abb33['removeMarker'](_0x5eb73a['getFirstMarker']()),_0x7bac92=!0x0);return _0x7bac92;}['noTrackChangesFixer'](_0x36c723){if(_0x36c723['batch']['isUndo']||!_0x36c723['batch']['isLocal'])return!0x1;const _0x494bde=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x494bde['trackChangesCommand']['value'])return!0x1;let _0x5b627c=!0x1;const _0x412186=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5ed7c1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x18e679=>'attribute'==_0x18e679['type'])['filter'](_0x136b5b=>_0x412186['includes'](_0x136b5b['attributeKey']));if(0x0==_0x5ed7c1['length'])return _0x5b627c;for(const _0x4eacf4 of _0x5ed7c1){const _0x2199fa=_0x494bde['_findSuggestions'](_0x4eacf4['range'],'attribute')['filter'](_0x27c3e0=>!_0x27c3e0['meta']['isNextTo'])['map'](_0x53d692=>_0x53d692['suggestion'])['filter'](_0x4f7a63=>{const _0x95d0af=_0x494bde['_getAttributeKey'](_0x4f7a63);return _0x412186['includes'](_0x95d0af);});if(_0x2199fa['length']){for(const _0x5b76e1 of _0x2199fa)_0x36c723['removeMarker'](_0x5b76e1['getFirstMarker']());_0x5b627c=!0x0;}}return _0x5b627c;}['assureChains'](){const _0xf5f974=this['editor']['plugins']['get']('TrackChangesEditing'),_0x854045=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1bec79;const _0x4d4b3e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2ccc8b=>{if(_0x2ccc8b['data']['oldRange']||!_0x2ccc8b['data']['newRange'])return null;if(!_0x2ccc8b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x16b4a2}=_0xf5f974['_splitMarkerName'](_0x2ccc8b['name']);if(!_0xf5f974['hasSuggestion'](_0x16b4a2))return null;const _0x249020=_0xf5f974['getSuggestion'](_0x16b4a2);return _0x854045['includes'](_0x249020['data']['key']);})['map'](_0x37cc6f=>{const {id:_0x5ecef3}=_0xf5f974['_splitMarkerName'](_0x37cc6f['name']),_0x12d748=_0xf5f974['getSuggestion'](_0x5ecef3);return _0x1bec79=_0x12d748['attributes']['groupId'],_0x12d748['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4d4b3e['size'])return;const _0x50e764=_0xf5f974['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3fca7c=>'attribute'==_0x3fca7c['type']&&_0x3fca7c['data']&&_0x854045['includes'](_0x3fca7c['data']['key'])&&_0x3fca7c['attributes']['groupId']!=_0x1bec79)['map'](_0x1ae70e=>({'listItem':_0x1ae70e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1ae70e['attributes']['groupId']})),_0x384147=new Set();for(const {groupId:_0x6a49cf,listItem:_0xa4cd51}of _0x50e764)_0x4d4b3e['has'](_0xa4cd51)&&_0x384147['add'](_0x6a49cf);for(const _0x8c8def of _0xf5f974['getSuggestions']())_0x384147['has'](_0x8c8def['attributes']['groupId'])&&_0x8c8def['setAttribute']('groupId',_0x1bec79);}['_supportLegacySuggestions'](){const _0x1885c0=this['editor'],_0x3d9a0b=_0x1885c0['locale'],_0x11677b=_0x1885c0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x11677b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4ddf0e,_0x15dfc5){const _0x211b01=[];for(let _0x268e88 of _0x4ddf0e)_0x268e88['start']['nodeAfter']===_0x268e88['end']['parent']&&(_0x268e88=_0x1885c0['model']['createRange'](_0x1885c0['model']['createPositionAt'](_0x268e88['start']['nodeAfter'],0x0))),_0x211b01['push'](_0x268e88);_0x1885c0['model']['change'](_0x5f1f4b=>{const _0x49cd3e=_0x1885c0['model']['document']['selection'],_0x4a2073=Array['from'](_0x49cd3e['getRanges']())['map'](_0xecb5ec=>_0x8f1c09['fromRange'](_0xecb5ec));_0x5f1f4b['setSelection'](_0x211b01),_0x1885c0['commands']['get'](_0x15dfc5['commandName'])['refresh'](),_0x15dfc5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1885c0['execute'](_0x15dfc5['commandName'],..._0x15dfc5['commandParams']),_0x5f1f4b['setSelection'](_0x4a2073);for(const _0x34e56b of _0x4a2073)_0x34e56b['detach']();});}),_0x11677b['descriptionFactory']['registerElementLabel'](function(_0x1293a0){const _0x41de68=!_0x1885c0['model']['schema']['isObject'](_0x1293a0),_0x120eb9=_0x1293a0['previousSibling'],_0x3ae0dd=_0x1293a0['nextSibling'],_0x5d0ec6=_0x1293a0['getAttribute']('listItemId'),_0x4fabd2=!_0x120eb9||_0x120eb9['getAttribute']('listItemId')!==_0x5d0ec6,_0x183df8=!_0x3ae0dd||_0x3ae0dd['getAttribute']('listItemId')!==_0x5d0ec6;return _0x41de68&&Boolean(_0x5d0ec6)&&_0x4fabd2&&_0x183df8;},_0x2e6a2e=>o(_0x3d9a0b,'ELEMENT_LIST_ITEM',_0x2e6a2e));}['_registerLegacyDescription'](){const _0x1b6b07=this['editor'],_0x23467b=_0x1b6b07['locale'];function _0x5e29d2(_0x212dbf){const _0x17385d=_0x1b6b07['commands']['get']('bulletedList')['value'],_0x2148a2=_0x1b6b07['commands']['get']('numberedList')['value'];return'numberedList'===_0x212dbf?_0x17385d:_0x2148a2;}_0x1b6b07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x199cff){if('formatBlock'!=_0x199cff['type'])return;const {data:_0x30c62b}=_0x199cff;if(!_0x30c62b)return;let _0x1a9dff,_0x51a447,_0x41c0bd,_0xb36580;switch(_0x30c62b['commandName']){case'bulletedList':_0x41c0bd=_0x30c62b['commandParams'][0x0]['forceValue'],_0xb36580=_0x5e29d2(_0x30c62b['commandName']),_0x1a9dff=_0x41c0bd?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb36580&&_0x1b6b07['config']['get']('list.multiBlock')||(_0x1a9dff='*Change\x20to:*\x20%0'),_0x51a447={'type':'format','content':o(_0x23467b,_0x1a9dff,o(_0x23467b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x41c0bd=_0x30c62b['commandParams'][0x0]['forceValue'],_0xb36580=_0x5e29d2(_0x30c62b['commandName']),_0x1a9dff=_0x41c0bd?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb36580&&_0x1b6b07['config']['get']('list.multiBlock')||(_0x1a9dff='*Change\x20to:*\x20%0'),_0x51a447={'type':'format','content':o(_0x23467b,_0x1a9dff,o(_0x23467b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1a9dff='*Indent:*\x20%0',_0x51a447={'type':'format','content':o(_0x23467b,_0x1a9dff,o(_0x23467b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1a9dff=function(_0x302b92){const _0x8143a4=_0x302b92['getFirstRange']();let _0x4892c7=_0x8143a4['start']['nodeAfter'];for(;_0x4892c7&&_0x8143a4['containsItem'](_0x4892c7);){if(_0x4892c7['getAttribute']('listIndent')>0x0)return!0x1;_0x4892c7=_0x4892c7['nextSibling'];}return!0x0;}(_0x199cff)?o(_0x23467b,'*Format:*\x20remove\x20from\x20%0',o(_0x23467b,function(_0x327301){return'ELEMENT_'+_0x327301['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x199cff))):o(_0x23467b,'*Outdent:*\x20%0',o(_0x23467b,'ELEMENT_LIST_ITEM')),_0x51a447={'type':'format','content':_0x1a9dff};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x30c62b['multipleBlocks']&&(_0x1a9dff='*Merge:*\x20%0',_0x51a447={'type':'deletion','content':o(_0x23467b,_0x1a9dff,o(_0x23467b,'ELEMENT_LIST_ITEM'))});}return _0x51a447;});}}function le(_0x1f319a){let _0x27cfd2=_0x1f319a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x27cfd2;){const _0xee447a=_0x27cfd2['getAttribute']('listItemId');if(!_0xee447a)return!0x1;if(_0xee447a==_0x1f319a['data']['newValue'])return'newValue';if(_0xee447a==_0x1f319a['data']['oldValue'])return'oldValue';_0x27cfd2=_0x27cfd2['previousSibling'];}return!0x1;}class pe extends _0x4751ae{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x584da9=this['editor']['config']['get']('list.properties'),_0x11c2d8=this['editor']['plugins']['get']('TrackChangesEditing');_0x584da9['styles']&&(_0x11c2d8['enableDefaultAttributesIntegration']('listStyle'),_0x11c2d8['registerBlockAttribute']('listStyle')),_0x584da9['reversed']&&(_0x11c2d8['enableDefaultAttributesIntegration']('listReversed'),_0x11c2d8['registerBlockAttribute']('listReversed')),_0x584da9['startIndex']&&(_0x11c2d8['enableDefaultAttributesIntegration']('listStart'),_0x11c2d8['registerBlockAttribute']('listStart'));const _0x4708c8={'type':'format','content':''};_0x11c2d8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x31945d=this['editor']['locale'];_0x11c2d8['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x31945d,'FORMAT_LIST_REVERSED')),_0x11c2d8['descriptionFactory']['registerDescriptionCallback'](_0x373c56=>{const {data:_0x1e1f24}=_0x373c56;if(_0x1e1f24&&'listReversed'==_0x1e1f24['key'])return null==_0x1e1f24['newValue']||0x0==_0x1e1f24['newValue']&&null==_0x1e1f24['oldValue']?_0x4708c8:void 0x0;}),_0x11c2d8['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x31945d,'FORMAT_LIST_START')),_0x11c2d8['descriptionFactory']['registerDescriptionCallback'](_0x81effd=>{const {data:_0x4bdf29}=_0x81effd;if(_0x4bdf29&&'listStart'==_0x4bdf29['key'])return null==_0x4bdf29['newValue']||0x1==_0x4bdf29['newValue']&&null==_0x4bdf29['oldValue']?_0x4708c8:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4737c3=>{if(_0x4737c3['batch']['isUndo'])return!0x1;let _0x162f1f=!0x1;const _0x135b51=_0x11c2d8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4450b0=>{const _0x15dd5c=_0x11c2d8['_getAttributeKey'](_0x4450b0);return'listStart'==_0x15dd5c||'listReversed'==_0x15dd5c;});for(const _0x20d55e of _0x135b51){const _0x36aecc=_0x20d55e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x36aecc||'customNumbered'==_0x36aecc)continue;_0x11c2d8['_findSuggestions'](_0x20d55e['getFirstRange'](),'attribute')['find'](_0x5564a6=>'listType'==_0x11c2d8['_getAttributeKey'](_0x5564a6['suggestion']))||(_0x4737c3['removeMarker'](_0x20d55e['getFirstMarker']()),_0x162f1f=!0x0);}return _0x162f1f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x273c0a){const _0x8d92c5=this['editor']['locale'],{data:_0x367552}=_0x273c0a,_0x5b6e08={'type':'format','content':''};if(!_0x367552||'listStyle'!=_0x367552['key'])return;if(!_0x367552['oldValue'])return'default'==_0x367552['newValue']?_0x5b6e08:{'type':'format','content':''+o(_0x8d92c5,'*Set\x20format:*\x20%0',o(_0x8d92c5,this['_getTranslationKeyForListStyle'](_0x367552['newValue'])))};if(!_0x367552['newValue']){if('default'==_0x367552['oldValue'])return _0x5b6e08;let _0x3e52cb=_0x273c0a['head'];for(;_0x3e52cb;){if(_0x3e52cb['data']&&'listType'==_0x3e52cb['data']['key']&&_0x3e52cb['data']['newValue'])return _0x5b6e08;_0x3e52cb=_0x3e52cb['next'];}return{'type':'format','content':''+o(_0x8d92c5,'*Remove\x20format:*\x20%0',o(_0x8d92c5,this['_getTranslationKeyForListStyle'](_0x367552['oldValue'])))};}if('default'!=_0x367552['newValue'])return{'type':'format','content':''+o(_0x8d92c5,'*Set\x20format:*\x20%0',o(_0x8d92c5,this['_getTranslationKeyForListStyle'](_0x367552['newValue'])))};let _0x135bb9=_0x273c0a['head'];for(;_0x135bb9;){if(_0x135bb9['data']&&'listType'==_0x135bb9['data']['key']&&_0x135bb9['data']['newValue']&&_0x135bb9['data']['oldValue'])return _0x5b6e08;_0x135bb9=_0x135bb9['next'];}return{'type':'format','content':o(_0x8d92c5,'*Set\x20format:*\x20%0',o(_0x8d92c5,'ELEMENT_'+_0x273c0a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x526cba=this['editor'],_0x5b8331=_0x526cba['locale'];_0x526cba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12199e=>{if('formatBlock'!=_0x12199e['type'])return;const {data:_0x230541}=_0x12199e;if(!_0x230541)return;let _0x1666ff,_0x54b776;switch(_0x230541['commandName']){case'listStyle':_0x1666ff='*Change\x20to:*\x20%0',_0x54b776={'type':'format','content':o(_0x5b8331,_0x1666ff,o(_0x5b8331,this['_getTranslationKeyForListStyle'](_0x230541['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1666ff=_0x230541['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x54b776={'type':'format','content':o(_0x5b8331,_0x1666ff)};break;case'listStart':_0x1666ff='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x54b776={'type':'format','content':o(_0x5b8331,_0x1666ff,_0x230541['commandParams'][0x0]['startIndex'])};}return _0x54b776;});}['_getTranslationKeyForListStyle'](_0x4d2ca6){return'ELEMENT_'+function(_0x11fe53){if(ye['includes'](_0x11fe53))return'bulleted';if(he['includes'](_0x11fe53))return'numbered';return null;}(_0x4d2ca6)['toUpperCase']()+'_LIST_'+_0x4d2ca6['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],he=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class K extends _0x4751ae{static get['requires'](){return[_0x43100f];}['init'](){const _0x398813=this['editor'],_0x15c044=_0x398813['plugins']['get']('TrackChangesEditing'),_0x5766d6=_0x398813['commands']['get']('enter');_0x15c044['enableCommand']('enter',()=>{_0x398813['model']['change'](_0x858536=>{const _0x1db791=_0x398813['model']['document']['selection'],_0x3ea1e9=_0x1db791['getFirstPosition'](),_0x25019e=_0x8f1c09['fromRange'](_0x1db791['getFirstRange']());if(_0x5766d6['enterBlock'](_0x858536)){const _0x1c8ac1=_0x398813['model']['createPositionAt'](_0x3ea1e9['parent']['nextSibling'],0x0),_0x289b14=_0x858536['createRange'](_0x3ea1e9,_0x1c8ac1);_0x15c044['markInsertion'](_0x289b14);}else _0x858536['setSelection'](_0x858536['createRange'](_0x25019e['end']));_0x25019e['detach'](),_0x5766d6['fire']('afterExecute',{'writer':_0x858536});});}),_0x398813['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x398813,'split'),{'priority':'high'}),_0x398813['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3b2423,_0x36aa04,_0x217dc7)=>{const _0x19bd83=_0x217dc7['mapper']['markerNameToElements'](_0x36aa04['markerName']);if(_0x19bd83){for(const _0x47d5e2 of _0x19bd83)_0x47d5e2['hasClass']('ck-suggestion-marker-split')&&(_0x217dc7['mapper']['unbindElementFromMarkerName'](_0x47d5e2,_0x36aa04['markerName']),_0x217dc7['writer']['remove'](_0x47d5e2));}},{'priority':'high'}),_0x398813['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2f0175,_0x5ccf17,_0x1b4641)=>{_0x1b4641['options']['showSuggestionHighlights']&&_e(_0x398813,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2f0175,_0x5ccf17,_0x1b4641);},{'priority':'high'});}}class W extends _0x4751ae{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x38bcad=this['editor']['plugins']['get']('TrackChangesEditing');_0x38bcad['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x38bcad['enableCommand']('findNext'),_0x38bcad['enableCommand']('findPrevious'),_0x38bcad['enableCommand']('replace'),_0x38bcad['enableCommand']('replaceAll');}['handleFindCommand'](_0x5c213c,_0x4dbb7c,_0x4c79c7={}){const _0x2c0021=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5c213c(_0x264c0b=>{let _0xf2509a=('string'==typeof _0x4dbb7c?_0x2c0021['findByTextCallback'](_0x4dbb7c,_0x4c79c7):_0x4dbb7c)(_0x264c0b);Array['isArray'](_0xf2509a)&&(_0xf2509a={'results':_0xf2509a,'searchText':'string'==typeof _0x4dbb7c?_0x4dbb7c:''});const _0x202579=_0xf2509a['results']['filter'](_0x3fbce0=>!0x1===this['_isInDeletionRange'](_0x3fbce0,_0x264c0b['item']));return{..._0xf2509a,'results':_0x202579};},_0x4c79c7);}['_isInDeletionRange'](_0x18f4af,_0x48f9d7){const _0x4a3475=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x48f9d7,_0x18f4af['start']),this['editor']['model']['createPositionAt'](_0x48f9d7,_0x18f4af['end']));for(const _0xc30a2f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4a3475['getIntersection'](_0xc30a2f['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 _0x4751ae{['afterInit'](){const _0xfed46=this['editor']['locale'],_0x1eb0e7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5aa0e6,commandName:_0x37a9f4}of ro)this['editor']['plugins']['has'](_0x5aa0e6)&&(_0x1eb0e7['enableDefaultAttributesIntegration'](_0x37a9f4),_0x1eb0e7['registerInlineAttribute'](_0x37a9f4));_0x1eb0e7['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xfed46,'FORMAT_FONT_SIZE')),_0x1eb0e7['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xfed46,'FORMAT_FONT_FAMILY')),_0x1eb0e7['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xfed46,'FORMAT_FONT_COLOR')),_0x1eb0e7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xfed46,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25f782=this['editor'],_0x5c0c61=_0x25f782['locale'];_0x25f782['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbec858=>{const _0x240964=_0x5c0c61['t'];if('formatInline'!=_0xbec858['type'])return;const {data:_0x33e9d1}=_0xbec858;if(null!=_0x33e9d1){if('fontSize'==_0x33e9d1['commandName']){const _0x2062dd=_0x33e9d1['commandParams'][0x0]['value'];if(_0x2062dd){const _0x3ead29=_0x240964(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5b1bf1=>_0x5b1bf1['model']==_0x2062dd)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5c0c61,'*Set\x20font\x20size:*\x20%0',_0x3ead29)};}return{'type':'format','content':o(_0x5c0c61,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x33e9d1['commandName']){const _0x51f643=_0x33e9d1['commandParams'][0x0]['value'];return _0x51f643?{'type':'format','content':o(_0x5c0c61,'*Set\x20font\x20family:*\x20%0',_0x51f643)}:{'type':'format','content':o(_0x5c0c61,'*Reset\x20font\x20family*')};}if('fontColor'==_0x33e9d1['commandName']){const _0x5e06fd=_0x33e9d1['commandParams'][0x0]['value'];if(_0x5e06fd){const _0xcae6fd=_0x2ad27f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4e183a=>_0x4e183a['model']==_0x5e06fd);let _0x3d9380=_0x5e06fd,_0x5ee674='';return _0xcae6fd&&(_0x3d9380=_0xcae6fd['label'],_0x5ee674=_0x240964(_0x3d9380)['toLowerCase']()),{'type':'format','content':o(_0x5c0c61,'*Set\x20font\x20color:*\x20%0',_0x5ee674)['trim'](),'color':{'value':_0x5e06fd,'title':_0x5ee674||_0x3d9380}};}return{'type':'format','content':o(_0x5c0c61,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x33e9d1['commandName']){const _0x532670=_0x33e9d1['commandParams'][0x0]['value'];if(_0x532670){const _0x1a8b82=_0x2ad27f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x43c4d9=>_0x43c4d9['model']==_0x532670);let _0x2f1247=_0x532670,_0x8e992f='';return _0x1a8b82&&(_0x2f1247=_0x1a8b82['label'],_0x8e992f=_0x240964(_0x2f1247)['toLowerCase']()),{'type':'format','content':o(_0x5c0c61,'*Set\x20font\x20background\x20color:*\x20%0',_0x8e992f)['trim'](),'color':{'value':_0x532670,'title':_0x8e992f||_0x2f1247}};}return{'type':'format','content':o(_0x5c0c61,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4751ae{['afterInit'](){const _0x5b294e=this['editor'],_0x1cd88c=_0x5b294e['plugins']['get']('TrackChangesEditing'),_0x3e7680=_0x5b294e['commands']['get']('copyFormat'),_0x4620ff=_0x5b294e['commands']['get']('pasteFormat');_0x3e7680&&_0x4620ff&&(_0x1cd88c['enableDefaultAttributesIntegration']('pasteFormat'),_0x1cd88c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x29b6d8=this['editor'],_0x2d398b=_0x29b6d8['locale'];_0x29b6d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19beb4=>{if('formatBlock'!=_0x19beb4['type']&&'formatInline'!=_0x19beb4['type'])return;const {data:_0x4dac2d}=_0x19beb4;if(_0x4dac2d&&'pasteFormat'===_0x4dac2d['commandName']){const _0x4b2753=[],_0x554daf=_0x4dac2d['commandParams'][0x0];for(const [_0x20d9c5,_0x3be50b]of Object['entries'](_0x554daf))_0x4b2753['push'](so(_0x29b6d8,_0x20d9c5,_0x3be50b));return _0x4b2753['length']?{'type':'format','content':o(_0x2d398b,'*Set\x20format\x20to:*\x20%0',_0x4b2753['join'](',\x20'))}:{'type':'format','content':o(_0x2d398b,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5d8bf0,_0x32aa4f,_0x52ce8a){const _0x39ae7e=_0x5d8bf0['locale']['t'],_0x1c1fee=_0x32aa4f['split'](/(?=[A-Z])/)['join']('\x20'),_0x1bf5d0=_0x39ae7e(_0x1c1fee['charAt'](0x0)['toUpperCase']()+_0x1c1fee['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x52ce8a)return _0x1bf5d0;if('fontColor'===_0x32aa4f||'fontBackgroundColor'===_0x32aa4f){const _0x1da825=_0x2ad27f(_0x5d8bf0['config']['get']('fontColor.colors'))['find'](_0x44da86=>_0x44da86['model']==_0x52ce8a);return _0x1bf5d0+'\x20('+(_0x1da825?_0x39ae7e(_0x1da825['label'])['toLowerCase']():_0x52ce8a)+')';}if('fontSize'===_0x32aa4f&&isNaN(parseFloat(_0x52ce8a))){const _0x1186a1=_0x5d8bf0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5d8bf0['config']['get']('fontSize.options'))['find'](_0x159005=>_0x159005['model']==_0x52ce8a);return _0x1bf5d0+'\x20('+(_0x1186a1?_0x39ae7e(_0x1186a1['title'])['toLowerCase']():_0x52ce8a)+')';}return _0x1bf5d0+'\x20('+_0x52ce8a+')';}class Y extends _0x4751ae{['_headingOptions'];['afterInit'](){const _0x3c82bf=this['editor'];if(!_0x3c82bf['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3c82bf['config']['get']('heading.options');const _0x4b4db4=_0x3c82bf['locale'],_0x1b1674=_0x3c82bf['plugins']['get']('TrackChangesEditing');_0x1b1674['enableDefaultAttributesIntegration']('heading');for(const _0x5b5ae9 of this['_headingOptions'])'paragraph'!=_0x5b5ae9['model']&&_0x1b1674['descriptionFactory']['registerElementLabel'](_0x5b5ae9['model'],_0x31c7df=>{const _0x1493ae=this['_getHeadingLevel'](_0x5b5ae9['model']);return null!==_0x1493ae?_0x47d092(_0x31c7df,_0x1493ae):_0x560049(_0x31c7df,_0x5b5ae9['title']);});function _0x47d092(_0x4ff808,_0x2575d3){return o(_0x4b4db4,'ELEMENT_HEADING',[_0x4ff808,_0x2575d3]);}function _0x560049(_0x477d82,_0x164eec){return o(_0x4b4db4,'ELEMENT_HEADING_CUSTOM',[_0x477d82,_0x164eec]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x479c68=this['editor'],_0x4f4903=_0x479c68['locale'];function _0xe1b41(_0x11398f,_0x1e3c1e){return o(_0x4f4903,'ELEMENT_HEADING_CUSTOM',[_0x11398f,_0x1e3c1e]);}_0x479c68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdfea0d=>{if('formatBlock'!=_0xdfea0d['type'])return;const {data:_0x491b61}=_0xdfea0d;if(_0x491b61&&'heading'==_0x491b61['commandName']){const _0x1b94d4=_0x491b61['commandParams'][0x0]['value'],_0xbf083a=this['_getHeadingLevel'](_0x1b94d4);if(null!==_0xbf083a)return{'type':'format','content':o(_0x4f4903,'*Change\x20to:*\x20%0',(_0x24d38d=0x1,_0x2cca46=_0xbf083a,o(_0x4f4903,'ELEMENT_HEADING',[_0x24d38d,_0x2cca46])))};const _0x1111fe=this['_headingOptions']['find'](_0x8ca3af=>_0x8ca3af['model']===_0x1b94d4)['title'];return{'type':'format','content':o(_0x4f4903,'*Change\x20to:*\x20%0',_0xe1b41(0x1,_0x1111fe))};}var _0x24d38d,_0x2cca46;});}['_getHeadingLevel'](_0x50266a){const _0x347130=_0x50266a['match'](/^heading(\d+)/);if(_0x347130)return _0x347130[0x1];const _0x528edf=this['_headingOptions']?.['find'](_0x1d0b6f=>_0x1d0b6f['model']==_0x50266a);if(_0x528edf&&_0x528edf['view']){const _0x295703=_0x528edf['view'],_0x54a3ae=(_0x295703['name']??_0x295703)['match'](/^h(\d+)/);if(_0x54a3ae)return _0x54a3ae[0x1];}return null;}}class Z extends _0x4751ae{['afterInit'](){const _0x53549f=this['editor'];if(!_0x53549f['plugins']['has']('HighlightEditing'))return;const _0x155c1e=_0x53549f['plugins']['get']('TrackChangesEditing'),_0x5d9049=_0x53549f['locale'];_0x155c1e['enableDefaultAttributesIntegration']('highlight'),_0x155c1e['registerInlineAttribute']('highlight'),_0x155c1e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5d9049,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27e4e1=this['editor'],_0x552fb3=_0x27e4e1['locale'];_0x27e4e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bd1b5=>{if('formatInline'!=_0x2bd1b5['type'])return;const {data:_0x10fada}=_0x2bd1b5;if(_0x10fada&&'highlight'==_0x10fada['commandName']){const _0x5195f0=_0x552fb3['t'],_0x4c9262=_0x10fada['commandParams'][0x0]['value'];if(_0x4c9262){const _0xa79f58=_0x27e4e1['config']['get']('highlight.options')['find'](_0x1d517f=>_0x1d517f['model']==_0x4c9262),_0x77fb45=_0x5195f0(_0xa79f58['title'])['toLowerCase']();return{'type':'format','content':o(_0x552fb3,'*Set\x20highlight:*\x20%0',_0x77fb45),'color':{'value':_0xa79f58['color'],'title':_0xa79f58['title']}};}return{'type':'format','content':o(_0x552fb3,'*Remove\x20highlight*',o(_0x552fb3,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4751ae{['afterInit'](){const _0x4def9b=this['editor'];if(!_0x4def9b['plugins']['has']('HorizontalLineEditing'))return;_0x4def9b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x256163=_0x4def9b['plugins']['get']('TrackChangesEditing'),_0x42a811=_0x4def9b['locale'];_0x256163['descriptionFactory']['registerElementLabel']('horizontalLine',_0x253948=>o(_0x42a811,'ELEMENT_HORIZONTAL_LINE',_0x253948)),_0x4def9b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5a0aee,{writer:_0x342279,options:_0x26ec12})=>{if(!_0x26ec12['showSuggestionHighlights'])return null;const _0x3f5f19=_0x342279['createContainerElement']('div'),_0x5b7871=_0x342279['createEmptyElement']('hr');return _0x342279['addClass']('ck-horizontal-line',_0x3f5f19),_0x342279['insert'](_0x342279['createPositionAt'](_0x3f5f19,0x0),_0x5b7871),_0x3f5f19;},'converterPriority':'high'});}}class et extends _0x4751ae{['afterInit'](){const _0x5d8e9b=this['editor'];if(!_0x5d8e9b['plugins']['has']('HtmlEmbed'))return;const _0x181119=_0x5d8e9b['plugins']['get']('TrackChangesEditing'),_0x15967c=_0x5d8e9b['locale'];_0x181119['descriptionFactory']['registerElementLabel']('rawHtml',_0x520d77=>o(_0x15967c,'ELEMENT_HTML_EMBED',_0x520d77)),_0x181119['enableDefaultAttributesIntegration']('htmlEmbed'),_0x181119['registerBlockAttribute']('value'),_0x181119['descriptionFactory']['registerDescriptionCallback'](_0x492266=>{if('attribute'!=_0x492266['type'])return;const {data:_0x4ab58c}=_0x492266;if(_0x4ab58c&&'value'==_0x4ab58c['key']&&_0x492266['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2da3b9=o(_0x15967c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x15967c,'*Change\x20%0\x20content*',_0x2da3b9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bf6e6=this['editor'],_0x4414b1=_0x4bf6e6['locale'];_0x4bf6e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x392ea4=>{if('formatBlock'!=_0x392ea4['type'])return;const {data:_0x3e53b2}=_0x392ea4;if(_0x3e53b2&&'htmlEmbed'==_0x3e53b2['commandName']){const _0x3df9ba=o(_0x4414b1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4414b1,'*Change\x20%0\x20content*',_0x3df9ba)};}});}}class it extends _0x4751ae{['afterInit'](){const _0x52ad1f=this['editor'];if(!_0x52ad1f['plugins']['has']('ImageEditing'))return;const _0x3fa2c2=_0x52ad1f['plugins']['get']('TrackChangesEditing'),_0x1e0de4=_0x52ad1f['plugins']['get']('ImageUtils'),_0x16905c=_0x52ad1f['locale'];_0x3fa2c2['enableCommand']('insertImage'),_0x3fa2c2['descriptionFactory']['registerElementLabel']('imageBlock',_0x4a1cb1=>o(_0x16905c,'ELEMENT_IMAGE',_0x4a1cb1)),_0x3fa2c2['descriptionFactory']['registerElementLabel']('imageInline',_0x34b63d=>o(_0x16905c,'ELEMENT_INLINE_IMAGE',_0x34b63d)),_0x3fa2c2['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x16905c,'ELEMENT_CAPTION')),_0x52ad1f['plugins']['has']('ImageUploadEditing')&&_0x3fa2c2['enableCommand']('uploadImage'),_0x52ad1f['plugins']['has']('ImageBlockEditing')&&_0x52ad1f['plugins']['has']('ImageInlineEditing')&&(_0x3fa2c2['enableCommand']('imageTypeInline',(_0x12764e,_0x11b30a)=>{const _0x1334a1=_0x1e0de4['getClosestSelectedImageElement'](_0x52ad1f['model']['document']['selection']);_0x52ad1f['model']['change'](()=>{_0x3fa2c2['markBlockFormat'](_0x1334a1,{'commandName':'imageTypeInline','commandParams':[_0x11b30a]},[],'convertBlockImageToInline');});}),_0x3fa2c2['enableCommand']('imageTypeBlock',(_0x46b49b,_0x410173)=>{_0x52ad1f['model']['change'](_0x28cd93=>{let _0x11f16b=_0x1e0de4['getClosestSelectedImageElement'](_0x52ad1f['model']['document']['selection']),_0x11adf1=_0x28cd93['createRangeOn'](_0x11f16b);const _0x5e77cc=_0x4667b3['fromPosition'](_0x11adf1['start'],'toPrevious'),_0x11f06c=_0x4667b3['fromPosition'](_0x11adf1['end'],'toNext');_0x3fa2c2['forceDefaultExecution'](()=>_0x46b49b(_0x410173)),_0x11f16b=_0x1e0de4['getClosestSelectedImageElement'](_0x52ad1f['model']['document']['selection']),_0x11adf1=_0x28cd93['createRangeOn'](_0x11f16b);const _0x46a75f=_0x28cd93['createRange'](_0x5e77cc,_0x11f06c);_0x5e77cc['detach'](),_0x11f06c['detach'](),_0x3fa2c2['markBlockFormat'](_0x11f16b,{'commandName':'imageTypeInline','commandParams':[_0x410173]},[],'convertInlineImageToBlock'),_0x46a75f['start']['isBefore'](_0x11adf1['start'])&&_0x3fa2c2['markInsertion'](_0x28cd93['createRange'](_0x46a75f['start'],_0x11adf1['start']),'convertInlineImageToBlock'),_0x11adf1['end']['isBefore'](_0x46a75f['end'])&&_0x3fa2c2['markInsertion'](_0x28cd93['createRange'](_0x11adf1['end'],_0x46a75f['end']),'convertInlineImageToBlock');});}),_0x3fa2c2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3fa2c2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3fa2c2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3fa2c2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3fa2c2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3fa2c2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4c551d])=>{const _0xf9d2de=_0x3fa2c2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x25d8e3=_0x4c551d['start'],_0x1ca2ec=_0x4c551d['end'];const _0x10fd70=_0x52ad1f['model']['schema']['getNearestSelectionRange'](_0x25d8e3,'backward'),_0x1c0a6e=_0x52ad1f['model']['schema']['getNearestSelectionRange'](_0x1ca2ec,'forward');_0x10fd70['isCollapsed']&&(_0x25d8e3=_0x10fd70['start']),_0x1c0a6e['isCollapsed']&&(_0x1ca2ec=_0x1c0a6e['end']),_0xf9d2de([_0x52ad1f['model']['createRange'](_0x25d8e3,_0x1ca2ec)]);}),_0x3fa2c2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x287d98),_0x3fa2c2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x287d98)),_0x52ad1f['plugins']['has']('ImageCaptionEditing')&&(_0x3fa2c2['enableCommand']('toggleImageCaption',(_0x5c9f43,_0xcf6f68)=>{const _0x9daaca=_0x52ad1f['plugins']['get']('ImageCaptionUtils');let _0x421ca0=_0x1e0de4['getClosestSelectedImageElement'](_0x52ad1f['model']['document']['selection']),_0x274075=_0x9daaca['getCaptionFromImageModelElement'](_0x421ca0);_0x52ad1f['model']['change'](()=>{if(_0x274075)return void _0x3fa2c2['markDeletion'](_0x52ad1f['model']['createRangeOn'](_0x274075));const _0x4b0eb2=_0x1e0de4['isBlockImage'](_0x421ca0);_0x5c9f43(_0xcf6f68),_0x421ca0=_0x1e0de4['getClosestSelectedImageElement'](_0x52ad1f['model']['document']['selection']),_0x274075=_0x9daaca['getCaptionFromImageModelElement'](_0x421ca0),_0x3fa2c2['markInsertion'](_0x52ad1f['model']['createRangeOn'](_0x274075),_0x4b0eb2?null:'imageCaption');});}),_0x3fa2c2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x287d98));const _0x2ad374=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x43f959(_0x1281d6,_0x6bf921){const _0x25dab4=_0x2ad374['findIndex'](({type:_0x2f0b8f,subType:_0x1ab6a7})=>_0x1281d6['type']==_0x2f0b8f&&_0x1281d6['subType']==_0x1ab6a7),_0x103e49=_0x2ad374['findIndex'](({type:_0x41df0e,subType:_0x3b71ae})=>_0x6bf921['type']==_0x41df0e&&_0x6bf921['subType']==_0x3b71ae);if(_0x25dab4<0x0||_0x103e49<0x0)return!0x1;const _0x261179=_0x1281d6['getFirstRange'](),_0x44240f=_0x6bf921['getFirstRange']();if((0x0==_0x25dab4||0x1==_0x25dab4)&&0x2==_0x103e49&&_0x261179['isIntersecting'](_0x44240f))return!0x0;if(0x2==_0x25dab4&&0x3==_0x103e49){const _0x2eb56b=_0x3fa2c2['_findSuggestions'](_0x261179,'insertion')['filter'](({suggestion:_0x2dc902,meta:_0xd9056b})=>_0xd9056b['isOwn']&&'convertInlineImageToBlock'==_0x2dc902['subType']);if(_0x2eb56b['length']>0x1&&_0x44240f['end']['isEqual'](_0x261179['start']))return!0x0;if(0x1==_0x2eb56b['length']&&(_0x261179['start']['isEqual'](_0x44240f['end'])||_0x261179['end']['isEqual'](_0x44240f['start'])))return!0x0;}if(0x3==_0x25dab4&&0x3==_0x103e49&&_0x261179['start']['isBefore'](_0x44240f['start'])){const _0x1462e0=_0x261179['end']['nodeAfter'],_0xa6f600=_0x44240f['start']['nodeBefore'];return _0x1e0de4['isBlockImage'](_0x1462e0)&&_0x1462e0===_0xa6f600;}return!0x1;}function _0x287d98(_0x20b567,_0x244576){return _0x43f959(_0x20b567,_0x244576)?[_0x20b567,_0x244576]:_0x43f959(_0x244576,_0x20b567)?[_0x244576,_0x20b567]:null;}_0x52ad1f['plugins']['has']('ImageResize')&&(_0x3fa2c2['enableDefaultAttributesIntegration']('resizeImage'),_0x3fa2c2['registerBlockAttribute']('resizedWidth'),_0x3fa2c2['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x16905c,'FORMAT_IMAGE_SIZE'))),_0x52ad1f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3fa2c2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3fa2c2['registerBlockAttribute']('alt')),_0x3fa2c2['descriptionFactory']['registerDescriptionCallback'](_0x1435b5=>{if(!!_0x2ad374['find'](({type:_0x25873e,subType:_0xf24953})=>_0x1435b5['type']==_0x25873e&&_0x1435b5['subType']==_0xf24953))return _0x1435b5['previous']?{}:void 0x0;}),_0x3fa2c2['descriptionFactory']['registerDescriptionCallback'](_0x25fc38=>{if('insertion'==_0x25fc38['type']||'deletion'==_0x25fc38['type']){const _0x40dab5=_0x25fc38['getContainedElement']();if(_0x40dab5&&_0x40dab5['is']('element','caption'))return{'type':'insertion'==_0x25fc38['type']?'addObject':'removeObject','element':_0x40dab5,'quantity':0x1};}}),_0x3fa2c2['descriptionFactory']['registerDescriptionCallback'](_0x17cbc1=>'formatBlock'==_0x17cbc1['type']&&'convertInlineImageToBlock'==_0x17cbc1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x17cbc1['type']&&'convertBlockImageToInline'==_0x17cbc1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3fa2c2['descriptionFactory']['registerDescriptionCallback'](_0x55dc64=>{if('attribute'!=_0x55dc64['type'])return;const {data:_0x84ddb4}=_0x55dc64;if(!_0x84ddb4||'alt'!=_0x84ddb4['key'])return;const _0x2c1e08=_0x84ddb4['newValue'];return _0x2c1e08?{'type':'format','content':o(_0x16905c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c1e08+'\x22')}:{'type':'format','content':o(_0x16905c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x715ddd=this['editor'],_0x5aeb33=_0x715ddd['locale'];_0x715ddd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf603f0=>{if('formatBlock'!=_0xf603f0['type']&&'formatInline'!=_0xf603f0['type'])return;const {data:_0x22ad8a}=_0xf603f0;if(_0x22ad8a){if('imageTextAlternative'==_0x22ad8a['commandName']){const _0x4335ba=_0x22ad8a['commandParams'][0x0]['newValue'];return _0x4335ba?{'type':'format','content':o(_0x5aeb33,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4335ba+'\x22')}:{'type':'format','content':o(_0x5aeb33,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x22ad8a['commandName']){const _0x49b764=_0x22ad8a['commandParams'][0x0]['width'];return _0x49b764?{'type':'format','content':o(_0x5aeb33,'*Set\x20image\x20width:*\x20%0',_0x49b764)}:{'type':'format','content':o(_0x5aeb33,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4751ae{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x35f468=this['editor']['locale'],_0x19d123=this['editor']['plugins']['get']('TrackChangesEditing');_0x19d123['enableDefaultAttributesIntegration']('replaceImageSource'),_0x19d123['registerBlockAttribute']('src'),_0x19d123['descriptionFactory']['registerDescriptionCallback'](_0x50d02f=>{if('attribute'!=_0x50d02f['type'])return;const {data:_0x205afd}=_0x50d02f;return _0x205afd&&'src'==_0x205afd['key']?_0x205afd['newValue']&&_0x205afd['oldValue']?{'type':'format','content':o(_0x35f468,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3ffc37=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ffc37['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3ffc37['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ffc37['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3ffc37['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26a1f7=this['editor'],_0x41c5f6=_0x26a1f7['locale'];_0x26a1f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31b016=>{if('formatBlock'!=_0x31b016['type']&&'formatInline'!=_0x31b016['type'])return;const {data:_0x52c2fc}=_0x31b016;if(!_0x52c2fc||'replaceImageSource'!=_0x52c2fc['commandName'])return;return{'type':'format','content':o(_0x41c5f6,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4751ae{['afterInit'](){const _0x19441b=this['editor'];if(!_0x19441b['plugins']['has']('ImageStyleEditing'))return;const _0x10b7a8=_0x19441b['plugins']['get']('TrackChangesEditing'),_0x19d5d3=_0x19441b['plugins']['get']('ImageUtils'),_0x379ea3={};_0x10b7a8['enableCommand']('imageStyle',(_0x7f5e93,_0x12a97a)=>{const _0x429729=_0x19441b['plugins']['get']('Users')['me'],_0x5aaeca=_0x19441b['commands']['get']('imageStyle');let _0x446e48=_0x19d5d3['getClosestSelectedImageElement'](_0x19441b['model']['document']['selection']),_0x9e4fb2=_0x19441b['model']['createRangeOn'](_0x446e48),_0xccb511=_0x5aaeca['value'];if(_0xccb511==_0x12a97a['value'])return;const _0x247bd9={'commandName':'imageStyle','commandParams':[_0x12a97a],'formatGroupId':_0x3bcbe6()};_0x19441b['model']['change'](()=>{if(_0x10b7a8['getSuggestions']()['filter'](_0x4a17b0=>_0x4a17b0['isInContent']&&_0x429729==_0x4a17b0['author']&&('formatBlock'==_0x4a17b0['type']||'formatInline'==_0x4a17b0['type'])&&('imageStylePreApply'==_0x4a17b0['subType']||'imageStylePostApply'==_0x4a17b0['subType'])&&_0x4a17b0['getFirstRange']()['isEqual'](_0x9e4fb2))['forEach'](_0x309be8=>_0x10b7a8['discardSuggestion'](_0x309be8['head'])),_0x446e48=_0x19d5d3['getClosestSelectedImageElement'](_0x19441b['model']['document']['selection']),_0x9e4fb2=_0x19441b['model']['createRangeOn'](_0x446e48),_0x5aaeca['refresh'](),_0x19441b['commands']['get']('imageTypeInline')['refresh'](),_0x19441b['commands']['get']('imageTypeBlock')['refresh'](),_0xccb511=_0x5aaeca['value'],_0xccb511!=_0x12a97a['value'])return _0x19d5d3['isInlineImage'](_0x446e48)&&_0x5aaeca['shouldConvertImageType'](_0x12a97a['value'],_0x446e48)?(_0x7f5e93({..._0x12a97a,'setImageSizes':!0x1}),_0x446e48=_0x19d5d3['getClosestSelectedImageElement'](_0x19441b['model']['document']['selection']),void _0x10b7a8['markBlockFormat'](_0x446e48,{..._0x247bd9,'commandReversedParams':[{'value':_0xccb511||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x19d5d3['isBlockImage'](_0x446e48)?_0x10b7a8['markBlockFormat'](_0x446e48,_0x247bd9,[],'imageStylePostApply'):_0x10b7a8['markInlineFormat'](_0x9e4fb2,_0x247bd9,'imageStylePostApply'));});});for(const _0x1ad5a2 of _0x19441b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x379ea3[_0x1ad5a2['name']]=_0x1ad5a2['title']['toLowerCase']();_0x10b7a8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x10b7a8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x10b7a8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x10b7a8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xc54ee3])=>{_0x19d5d3['setImageNaturalSizeAttributes'](_0xc54ee3['getContainedElement']());}),_0x10b7a8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x100c42,_0xaa88aa)=>{_0x10b7a8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x100c42,{'commandName':_0xaa88aa['commandName'],'commandParams':_0xaa88aa['commandReversedParams']});}),_0x10b7a8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x73d044,_0x260a15){if(_0x1dbc64(_0x73d044,_0x260a15))return[_0x73d044,_0x260a15];if(_0x1dbc64(_0x260a15,_0x73d044))return[_0x260a15,_0x73d044];return null;});const _0x391743=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1dbc64(_0x515902,_0x48f3e9){const _0x10dd0c=_0x391743['findIndex'](({type:_0x26c747,subType:_0x2d5579})=>_0x515902['type']==_0x26c747&&_0x515902['subType']==_0x2d5579),_0x2e5b30=_0x391743['findIndex'](({type:_0xe4a6d7,subType:_0x5e22e1})=>_0x48f3e9['type']==_0xe4a6d7&&_0x48f3e9['subType']==_0x5e22e1);if(_0x10dd0c<0x0||_0x2e5b30<0x0)return!0x1;const _0x48a822=_0x515902['getFirstRange'](),_0x11f7be=_0x48f3e9['getFirstRange']();if((0x0==_0x10dd0c||0x1==_0x10dd0c)&&0x2==_0x2e5b30&&_0x48a822['isIntersecting'](_0x11f7be))return!0x0;if(0x2==_0x10dd0c&&0x3==_0x2e5b30){const _0x3982eb=_0x10b7a8['_findSuggestions'](_0x48a822,'insertion')['filter'](({suggestion:_0x43981b,meta:_0x97de1b})=>_0x97de1b['isOwn']&&'convertInlineImageToBlock'==_0x43981b['subType']);if(_0x3982eb['length']>0x1&&_0x11f7be['end']['isEqual'](_0x48a822['start']))return!0x0;if(0x1==_0x3982eb['length']&&(_0x48a822['start']['isEqual'](_0x11f7be['end'])||_0x48a822['end']['isEqual'](_0x11f7be['start'])))return!0x0;}if(0x3==_0x10dd0c&&0x3==_0x2e5b30&&_0x48a822['start']['isBefore'](_0x11f7be['start'])){const _0x319052=_0x48a822['end']['nodeAfter'],_0x6366ca=_0x11f7be['start']['nodeBefore'];return _0x19d5d3['isBlockImage'](_0x319052)&&_0x319052===_0x6366ca;}return!0x1;}_0x19441b['model']['document']['registerPostFixer'](()=>{let _0x4d9c28=!0x1;const _0x2a0261=Array['from'](_0x19441b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3edb7f,data:_0x3c6810}of _0x2a0261){const {group:_0x281270,type:_0x2d92a9,subType:_0x209f34,id:_0x3ddafd}=_0x10b7a8['_splitMarkerName'](_0x3edb7f);if('suggestion'==_0x281270&&_0x10b7a8['hasSuggestion'](_0x3ddafd)){if('formatBlock'==_0x2d92a9&&('imageStylePreApply'==_0x209f34||'imageStylePostApply'==_0x209f34)){const _0x3be656=_0x10b7a8['getSuggestion'](_0x3ddafd);if(_0x3c6810['newRange']){const _0x59c1a2=_0x3be656['getFirstRange']()['getContainedElement']();if(_0x19d5d3['isBlockImage'](_0x59c1a2))continue;_0x10b7a8['discardSuggestion'](_0x3be656),_0x4d9c28=!0x0;}}if('insertion'==_0x2d92a9&&'imageCaption'==_0x209f34&&!_0x3c6810['newRange']){const _0xbb4435=_0x10b7a8['getSuggestion'](_0x3ddafd);_0xbb4435['next']&&_0xbb4435['next']['isInContent']&&(_0x10b7a8['discardSuggestion'](_0xbb4435['next']),_0x4d9c28=!0x0);}}}return _0x4d9c28;}),this['_registerLegacyDescription'](_0x379ea3);}['_registerLegacyDescription'](_0x4d660c){const _0x15404c=this['editor'],_0x576b40=_0x15404c['locale'];_0x15404c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3416a9=>{if('formatBlock'!=_0x3416a9['type']&&'formatInline'!=_0x3416a9['type'])return;const {data:_0x88dbd6}=_0x3416a9;if(!_0x88dbd6||'imageStyle'!=_0x88dbd6['commandName'])return;const _0x7dbf9b=_0x88dbd6['commandParams'][0x0]['value'];return _0x1b121b('side'===_0x7dbf9b?o(_0x576b40,'FORMAT_SIDE_IMAGE'):_0x4d660c[_0x7dbf9b]||_0x7dbf9b);function _0x1b121b(_0xdb357b){return{'type':'format','content':o(_0x576b40,'*Format:*\x20%0',_0xdb357b)};}});}}class ot extends _0x4751ae{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4b21ae){super(_0x4b21ae),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4f7a09=this['editor'],_0x1e27c9=_0x4f7a09['commands']['get']('importWord'),_0x4df430=_0x4f7a09['commands']['get']('trackChanges');_0x1e27c9&&(_0x1e27c9['on']('execute',(_0x21768f,[,_0x5e3ac5])=>{this['_trackChangesValueDuringImport']=_0x4df430['value'],_0x5e3ac5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1e27c9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1e27c9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4df430['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4f7a09['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xd94d1c,_0x12e3c8){const {suggestions:_0x5567f6}=_0x12e3c8,_0x2411f6=this['editor']['commands']['get']('trackChanges'),_0x29deeb=_0x2411f6['value'];this['_trackChangesValueDuringImport']!==_0x29deeb&&(_0x2411f6['execute'](),this['_trackChangesExecuted']=!0x0),_0x5567f6&&_0x5567f6['forEach'](({id:_0x61bda2,type:_0x14c5f1,author:_0x1c730b,created_at:_0xf3257a})=>{const _0x2315ee={'id':_0x61bda2,'type':_0x14c5f1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1c730b,'createdAt':_0xf3257a?new Date(_0xf3257a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2315ee);});}}class rt extends _0x4751ae{['afterInit'](){const _0x186bd7=this['editor'],_0x1de6a0=_0x186bd7['plugins']['get']('TrackChangesEditing');if(_0x186bd7['plugins']['has']('IndentEditing')&&(_0x1de6a0['enableCommand']('indent'),_0x1de6a0['enableCommand']('outdent')),_0x186bd7['plugins']['has']('IndentBlock')){for(const _0x12395f of['indentBlock','outdentBlock'])_0x1de6a0['enableDefaultAttributesIntegration'](_0x12395f);}const _0x49ba22=_0x186bd7['locale'];_0x1de6a0['registerBlockAttribute']('blockIndent'),_0x1de6a0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x49ba22,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41acf9=this['editor'],_0x20cd72=_0x41acf9['locale'],_0x41a513=_0x41acf9['plugins']['get']('TrackChangesEditing');_0x41a513['descriptionFactory']['registerDescriptionCallback'](_0x343edb=>{if('formatBlock'!=_0x343edb['type'])return;const {data:_0x4824cc}=_0x343edb;if(!_0x4824cc)return;if('indentBlock'!=_0x4824cc['commandName']&&'outdentBlock'!=_0x4824cc['commandName'])return;const _0x56c57e=_0x343edb['getItems']()[0x0],_0x1e9551=_0x41a513['descriptionFactory']['getItemLabel'](_0x56c57e);return'indentBlock'==_0x4824cc['commandName']?{'type':'format','content':o(_0x20cd72,'*Indent:*\x20%0',_0x1e9551)}:'outdentBlock'==_0x4824cc['commandName']?{'type':'format','content':o(_0x20cd72,'*Outdent:*\x20%0',_0x1e9551)}:void 0x0;});}}class at extends _0x4751ae{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4751ae{['afterInit'](){const _0x5ab425=this['editor'];if(!_0x5ab425['plugins']['has']('LinkEditing'))return;const _0x1afa9c=_0x5ab425['plugins']['get']('TrackChangesEditing'),_0x2cba14=_0x5ab425['commands']['get']('link');_0x1afa9c['enableDefaultAttributesIntegration']('link'),_0x1afa9c['enableDefaultAttributesIntegration']('unlink'),_0x1afa9c['registerInlineAttribute']('linkHref');for(const _0x5a7d14 of _0x2cba14['manualDecorators'])_0x1afa9c['registerInlineAttribute'](_0x5a7d14['id']),_0x1afa9c['descriptionFactory']['registerAttributeLabel'](_0x5a7d14['id'],'link\x20('+_0x5a7d14['label']['toLowerCase']()+')');_0x1afa9c['descriptionFactory']['registerDescriptionCallback'](_0x2f4e98=>{if('attribute'!=_0x2f4e98['type'])return;const {data:_0x38d57d}=_0x2f4e98;if(!_0x38d57d||'linkHref'!=_0x38d57d['key'])return;const _0x23a727=_0x38d57d['newValue'],_0x4ccd7f=_0x5ab425['locale'];return{'type':'format','content':null==_0x23a727?o(_0x4ccd7f,'*Remove\x20link*'):o(_0x4ccd7f,'*Set\x20link:*\x20%0','\x22'+_0x23a727+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a93e9=this['editor'],_0x117b28=_0x2a93e9['locale'];_0x2a93e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32b98a=>{if('formatInline'!=_0x32b98a['type'])return;const {data:_0x54625f}=_0x32b98a;if(_0x54625f){if('link'==_0x54625f['commandName']){const _0x4b03c0=_0x54625f['commandParams'][0x0];return{'type':'format','content':o(_0x117b28,'*Set\x20link:*\x20%0','\x22'+_0x4b03c0+'\x22')};}return'unlink'==_0x54625f['commandName']?{'type':'format','content':o(_0x117b28,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4751ae{['afterInit'](){const _0x530dd4=this['editor'],_0x4cd75e=_0x530dd4['locale'];if(!_0x530dd4['plugins']['has']('LegacyListEditing'))return;const _0x1adc3b=_0x530dd4['plugins']['get']('TrackChangesEditing'),_0x5e3f81=_0x530dd4['plugins']['has']('LegacyTodoListEditing');function _0x21dfa9(_0xaee73a){return()=>{const _0x3b2bd=_0x530dd4['model']['document']['selection'],_0x39b0bc=_0x530dd4['commands']['get'](_0xaee73a);if(_0x39b0bc['value'])return void _0x530dd4['execute']('paragraph',{});const _0x16de7c=_0xaee73a['slice'](0x0,-0x4),_0x10721e=function(_0x3abb82,_0x29261a,_0x20df3d){let _0x3b0749=Array['from'](_0x3abb82)['filter'](_0x329d33=>function(_0x24b9c5,_0x4e53d9){return _0x4e53d9['checkChild'](_0x24b9c5['parent'],'listItem')&&!_0x4e53d9['isObject'](_0x24b9c5);}(_0x329d33,_0x20df3d));_0x3b0749=_0x3b0749['filter'](_0x3080aa=>!_0x3080aa['is']('element','listItem')||_0x3080aa['getAttribute']('listType')!=_0x29261a);const _0xf84961=new Set();for(const _0x4fa8cd of _0x3b0749)_0x4fa8cd['is']('element','listItem')?_0xf84961['add'](fe(_0x4fa8cd)):_0xf84961['add'](_0x4fa8cd);return Array['from'](_0xf84961);}(_0x3b2bd['getSelectedBlocks'](),_0x16de7c,_0x530dd4['model']['schema']);_0x530dd4['model']['change'](()=>{for(const _0x53a898 of _0x10721e)_0x1adc3b['markBlockFormat'](_0x53a898,{'commandName':_0xaee73a,'commandParams':[{'forceValue':!_0x39b0bc['value']}],'formatGroupId':'blockName'},ue(_0x53a898));});};}function _0x53498d(_0x4d8770){return()=>{const _0x19b4a7=function(_0x17a3e6){let _0x2e9a4c=Array['from'](_0x17a3e6);const _0x5963e6=_0x2e9a4c['findIndex'](_0x4fbec5=>'listItem'!=_0x4fbec5['name']);return _0x5963e6>-0x1&&(_0x2e9a4c=_0x2e9a4c['slice'](0x0,_0x5963e6)),_0x2e9a4c;}(_0x530dd4['model']['document']['selection']['getSelectedBlocks']()),_0x28be9e=_0x530dd4['model']['createRange'](_0x530dd4['model']['createPositionAt'](_0x19b4a7[0x0],'before'),_0x530dd4['model']['createPositionAt'](_0x19b4a7[_0x19b4a7['length']-0x1],'end'));_0x530dd4['model']['change'](()=>{_0x1adc3b['markBlockFormat'](_0x28be9e,{'commandName':_0x4d8770,'commandParams':[],'formatGroupId':'listIndent'},function(_0x351421){const _0x42e551=new Set();for(const _0x1dbf71 of _0x351421){let _0x48246c=_0x1dbf71['nextSibling'];for(;_0x48246c&&_0x48246c['getAttribute']('listIndent')>_0x1dbf71['getAttribute']('listIndent');)_0x42e551['add'](_0x48246c),_0x48246c=_0x48246c['nextSibling'];}return Array['from'](_0x42e551);}(_0x19b4a7));});};}_0x1adc3b['enableCommand']('numberedList',_0x21dfa9('numberedList')),_0x1adc3b['enableCommand']('bulletedList',_0x21dfa9('bulletedList')),_0x5e3f81&&_0x1adc3b['enableCommand']('todoList',_0x21dfa9('todoList')),_0x1adc3b['enableCommand']('indentList',_0x53498d('indentList')),_0x1adc3b['enableCommand']('outdentList',_0x53498d('outdentList')),_0x5e3f81&&_0x1adc3b['enableCommand']('checkTodoList',()=>{const _0x345d3f=_0x530dd4['commands']['get']('checkTodoList'),_0x30192d=Array['from'](_0x345d3f['_selectedElements']);_0x30192d['filter'](_0x53f0ac=>_0x53f0ac['getAttribute']('todoListChecked')!=_0x345d3f['value']),_0x530dd4['model']['change'](()=>{for(const _0x3c97f1 of _0x30192d)_0x1adc3b['markBlockFormat'](_0x3c97f1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x345d3f['value']}]});});}),_0x1adc3b['descriptionFactory']['registerElementLabel']('listItem',_0x45346a=>o(_0x4cd75e,'ELEMENT_LIST_ITEM',_0x45346a)),_0x1adc3b['descriptionFactory']['registerDescriptionCallback'](_0x188035=>{if('formatBlock'!=_0x188035['type']&&'formatInline'!=_0x188035['type'])return;const {data:_0x5ba0b1}=_0x188035;if(_0x5ba0b1){if('numberedList'==_0x5ba0b1['commandName']||'bulletedList'==_0x5ba0b1['commandName']||'todoList'==_0x5ba0b1['commandName'])switch(_0x5ba0b1['commandName']['replace']('List','')){case'bulleted':return _0xea100f(o(_0x4cd75e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xea100f(o(_0x4cd75e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xea100f(o(_0x4cd75e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5ba0b1['commandName'])return{'type':'format','content':o(_0x4cd75e,'*Indent:*\x20%0',o(_0x4cd75e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5ba0b1['commandName'])return{'type':'format','content':o(_0x4cd75e,'*Outdent:*\x20%0',o(_0x4cd75e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5ba0b1['commandName'])return _0x5ba0b1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cd75e,'*Check\x20item*')}:{'type':'format','content':o(_0x4cd75e,'*Uncheck\x20item*')};}function _0xea100f(_0x434e05){return{'type':'format','content':o(_0x4cd75e,'*Change\x20to:*\x20%0',_0x434e05)};}});}}function fe(_0x598509){const _0x5586b1=_0x598509['getAttribute']('listIndent');if(0x0==_0x5586b1)return _0x598509;let _0x114769=_0x598509;for(;_0x598509['previousSibling']&&_0x598509['previousSibling']['is']('element','listItem');){const _0x4ccfd3=_0x598509['previousSibling']['getAttribute']('listIndent');if(_0x4ccfd3==_0x5586b1)_0x114769=_0x598509['previousSibling'];else{if(_0x4ccfd3<_0x5586b1)break;}_0x598509=_0x598509['previousSibling'];}return _0x114769;}function ue(_0x548b9d){const _0x487eec=[];if(_0x548b9d['is']('element','listItem')&&_0x548b9d['getAttribute']('listIndent')>0x0){let _0x22f014=_0x548b9d['nextSibling'];for(;_0x22f014&&'listItem'==_0x22f014['name']&&_0x22f014['getAttribute']('listIndent')==_0x548b9d['getAttribute']('listIndent');)_0x487eec['push'](_0x22f014),_0x22f014=_0x22f014['nextSibling'];}return _0x487eec;}class z extends _0x4751ae{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x49e389=this['editor']['config']['get']('list.properties'),_0x2e8291=this['editor']['plugins']['get']('TrackChangesEditing');_0x49e389['styles']&&_0x2e8291['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x49e389['reversed']&&_0x2e8291['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x49e389['startIndex']&&_0x2e8291['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2e8291['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x175fe2,_0x1a6353={}){const _0x1c07f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ea12c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1c07f5['markMultiRangeBlockFormat'](_0x1ea12c,{'commandName':'listStyle','commandParams':[{'type':_0x1a6353['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x50e849,_0x39f3b3={}){const _0x54929d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d1f5f=this['_getSuggestionBlocks'](_0x12346a=>_0x12346a['is']('element','listItem')&&'numbered'===_0x12346a['getAttribute']('listType'));if(_0x3d1f5f['length']<0x1)return;const _0x2acbd5=_0x3d1f5f['map'](_0x1fa411=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1fa411,'before'),this['editor']['model']['createPositionAt'](_0x1fa411,0x0)));this['editor']['model']['change'](()=>{_0x54929d['markMultiRangeBlockFormat'](_0x2acbd5,{'commandName':'listReversed','commandParams':[{'reversed':_0x39f3b3['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1e32a4,_0x48482e={}){const _0xe79dc0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b4992=this['_getSuggestionBlocks'](_0x3b6136=>_0x3b6136['is']('element','listItem')&&'numbered'===_0x3b6136['getAttribute']('listType'));if(_0x5b4992['length']<0x1)return;const _0x295420=_0x5b4992['map'](_0xf7453b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xf7453b,'before'),this['editor']['model']['createPositionAt'](_0xf7453b,0x0)));this['editor']['model']['change'](()=>{_0xe79dc0['markMultiRangeBlockFormat'](_0x295420,{'commandName':'listStart','commandParams':[{'startIndex':_0x48482e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x261d9f){if('formatBlock'!=_0x261d9f['type']&&'formatInline'!=_0x261d9f['type'])return;const _0xb42be5=this['editor']['locale'],{data:_0x2a8e8d}=_0x261d9f;if(!_0x2a8e8d)return;let _0x204e5a,_0x130826;switch(_0x2a8e8d['commandName']){case'listStyle':_0x204e5a='*Change\x20to:*\x20%0',_0x130826={'type':'format','content':o(_0xb42be5,_0x204e5a,o(_0xb42be5,this['_getTranslationKeyForListStyle'](_0x2a8e8d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x204e5a=_0x2a8e8d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x130826={'type':'format','content':o(_0xb42be5,_0x204e5a)};break;case'listStart':_0x204e5a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x130826={'type':'format','content':o(_0xb42be5,_0x204e5a,_0x2a8e8d['commandParams'][0x0]['startIndex'])};}return _0x130826;}['_getSuggestionBlocksForListStyle'](){const _0x28c2e1=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c9bb0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4c9bb0[0x0]?.['is']('element','listItem')&&_0x4c9bb0['unshift'](..._0x28c2e1['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4c9bb0[_0x4c9bb0['length']-0x1]?.['is']('element','listItem')&&_0x4c9bb0['push'](..._0x28c2e1['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4c9bb0=[...new Set(_0x4c9bb0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4c9bb0=_0x4c9bb0['filter'](_0x3bc1a6=>_0x3bc1a6['is']('element','listItem'))),_0x4c9bb0;}['_getSuggestionBlocks'](_0x446662){const _0xe5456=this['editor']['plugins']['get']('LegacyListUtils');let _0x49d3dd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x446662)['map'](_0x4d9280=>{const _0x5c77de=this['editor']['model']['createPositionAt'](_0x4d9280,0x0);return[..._0xe5456['getSiblingNodes'](_0x5c77de,'backward'),..._0xe5456['getSiblingNodes'](_0x5c77de,'forward')];})['flat']();return _0x49d3dd=[...new Set(_0x49d3dd)],_0x49d3dd;}['_getTranslationKeyForListStyle'](_0x3e9647){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3e9647)||'default')['toUpperCase']()+'_LIST_'+_0x3e9647['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4751ae{['afterInit'](){const _0x50a194=this['editor'];if(!_0x50a194['plugins']['has']('MediaEmbedEditing'))return;const _0xada087=_0x50a194['plugins']['get']('TrackChangesEditing'),_0x170be1=_0x50a194['locale'];_0xada087['enableCommand']('mediaEmbed'),_0xada087['descriptionFactory']['registerElementLabel']('media',_0x127410=>o(_0x170be1,'ELEMENT_MEDIA',_0x127410)),_0x50a194['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3dc0a1,{writer:_0x3565cc,options:_0x494f13})=>{if(_0x494f13['showSuggestionHighlights'])return _0x3565cc['createEmptyElement']('div');},'converterPriority':'high'}),_0x50a194['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2c80f7,_0x5eab41,_0x3060ad)=>{_0x3060ad['options']['showSuggestionHighlights']&&_0x2c80f7['stop']();},{'priority':'high'});}}class gt extends _0x4751ae{['afterInit'](){const _0x5317ef=this['editor'];_0x5317ef['plugins']['has']('MentionEditing')&&_0x5317ef['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4751ae{['afterInit'](){const _0x30a7fa=this['editor'];if(!_0x30a7fa['commands']['get']('insertMergeField'))return;_0x30a7fa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x445ed9=_0x30a7fa['plugins']['get']('TrackChangesEditing'),_0x1d58dc=_0x30a7fa['locale'];_0x445ed9['descriptionFactory']['registerElementLabel']('mergeField',_0x1c7e32=>o(_0x1d58dc,'ELEMENT_MERGE_FIELD',_0x1c7e32)),_0x445ed9['descriptionFactory']['registerDescriptionCallback'](_0x44247f=>{if('insertion'!=_0x44247f['type']&&'deletion'!=_0x44247f['type'])return;const _0xed9116=_0x44247f['getContainedElement']();if(null==_0xed9116)return;if(!_0xed9116['is']('element','mergeField'))return;const _0x349838=_0x30a7fa['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xed9116['getAttribute']('id'));return'insertion'==_0x44247f['type']?{'type':'insertion','content':o(_0x1d58dc,'*Insert:*\x20%0','\x22'+_0x349838+'\x22\x20'+o(_0x1d58dc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1d58dc,'*Remove:*\x20%0','\x22'+_0x349838+'\x22\x20'+o(_0x1d58dc,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x4751ae{['afterInit'](){const _0x582c7f=this['editor'],_0x3a1c4d=_0x582c7f['plugins']['get']('TrackChangesEditing');_0x582c7f['plugins']['has']('MultiLevelList')&&(_0x3a1c4d['enableDefaultAttributesIntegration']('multiLevelList'),_0x3a1c4d['registerBlockAttribute']('listMarkerStyle'),_0x3a1c4d['descriptionFactory']['registerDescriptionCallback'](_0x3575b0=>this['handleDescriptions'](_0x3575b0)));}['handleDescriptions'](_0xf3e493){const _0x4e725d=this['editor']['locale'],{data:_0x190e08}=_0xf3e493,_0x21c3c9={'type':'format','content':''};if(_0x190e08&&'listMarkerStyle'==_0x190e08['key']){if(!_0x190e08['oldValue'])return{'type':'format','content':o(_0x4e725d,'*Set\x20format:*\x20%0',o(_0x4e725d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x190e08['newValue']+')'};if(!_0x190e08['newValue']){let _0xc08ce2=_0xf3e493['head'];for(;_0xc08ce2;){if(_0xc08ce2['data']&&'listType'==_0xc08ce2['data']['key']&&_0xc08ce2['data']['newValue'])return _0x21c3c9;_0xc08ce2=_0xc08ce2['next'];}return{'type':'format','content':o(_0x4e725d,'*Remove\x20format:*\x20%0',o(_0x4e725d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x190e08['oldValue']+')'};}}}}class dt extends _0x4751ae{['afterInit'](){const _0x1e5ae2=this['editor'];if(!_0x1e5ae2['plugins']['has']('PageBreakEditing'))return;_0x1e5ae2['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3e658c=_0x1e5ae2['plugins']['get']('TrackChangesEditing'),_0x1288be=_0x1e5ae2['locale'];_0x3e658c['descriptionFactory']['registerElementLabel']('pageBreak',_0x52db01=>o(_0x1288be,'ELEMENT_PAGE_BREAK',_0x52db01));}}class pt extends _0x4751ae{['afterInit'](){const _0xd214ec=this['editor'];if(!_0xd214ec['plugins']['has']('Paragraph'))return;const _0xc6ce40=_0xd214ec['locale'],_0xb978=_0xd214ec['plugins']['get']('TrackChangesEditing');_0xb978['descriptionFactory']['registerElementLabel']('paragraph',_0x135ecf=>o(_0xc6ce40,'ELEMENT_PARAGRAPH',_0x135ecf)),_0xb978['enableDefaultAttributesIntegration']('paragraph'),_0xb978['enableCommand']('insertParagraph'),_0xd214ec['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xd214ec),{'priority':'highest'}),_0xd214ec['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x48332f,_0x17f1c2,_0x51e3a7)=>{_0x51e3a7['options']['showSuggestionHighlights']&&nr(_0xd214ec,{'showActiveMarker':!0x1})(_0x48332f,_0x17f1c2,_0x51e3a7);},{'priority':'highest'});const _0x3af0ef=_0xb978['descriptionFactory'];_0x3af0ef['registerDescriptionCallback'](_0x4b9e57=>{if('insertion'!==_0x4b9e57['type'])return;const {start:_0x4defa4,end:_0x540073}=_0x4b9e57['getFirstRange']();if(!_0x4defa4['isTouching'](_0x540073)||!_0x4defa4['nodeAfter'])return;const _0xb17ed0=_0xd214ec['model']['schema'],_0x360c9d=_0x4defa4['nodeAfter'];return _0xb17ed0['isBlock'](_0x360c9d)&&!_0xb17ed0['isLimit'](_0x360c9d)&&_0xb17ed0['checkChild'](_0x360c9d,'$text')?{'type':'insertion','content':o(_0xc6ce40,'*Insert:*\x20%0',_0x3af0ef['getItemLabel'](_0x360c9d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28131d=this['editor'],_0x5291c7=_0x28131d['locale'];_0x28131d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ca2d5=>{if('formatBlock'!=_0x4ca2d5['type'])return;const {data:_0x2b2da0}=_0x4ca2d5;return _0x2b2da0&&'paragraph'==_0x2b2da0['commandName']?{'type':'format','content':o(_0x5291c7,'*Change\x20to:*\x20%0',o(_0x5291c7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4c2c59,{showActiveMarker:_0x5c4fef=!0x0}={}){return(_0x3c9c05,_0x51b3d4,_0x1b597d)=>{const _0x4a7041=_0x4c2c59['plugins']['get']('TrackChangesEditing'),_0x57cd45=_0x51b3d4['markerRange']['start'],_0x2c01fc=_0x51b3d4['markerRange']['end'],_0x504b13=_0x4c2c59['model']['schema'];if(!_0x57cd45['isTouching'](_0x2c01fc)||!_0x57cd45['nodeAfter'])return;const _0x4a5970=_0x57cd45['nodeAfter'];if(_0x504b13['isBlock'](_0x4a5970)&&!_0x504b13['isLimit'](_0x4a5970)&&_0x504b13['checkChild'](_0x4a5970,'$text')){if(!_0x1b597d['consumable']['consume'](_0x51b3d4['markerRange'],_0x3c9c05['name']))return;const _0x597e3f=_0x1b597d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0xdba397=_0x1b597d['mapper']['toViewPosition'](_0x2c01fc);_0x5c4fef&&_0x4a7041['activeMarkers']['includes'](_0x51b3d4['markerName'])&&_0x1b597d['writer']['addClass']('ck-suggestion-marker--active',_0x597e3f),_0x1b597d['writer']['insert'](_0xdba397,_0x597e3f),_0x1b597d['mapper']['bindElementToMarker'](_0x597e3f,_0x51b3d4['markerName']);}};}class kt extends _0x4751ae{['afterInit'](){const _0x1b4df6=this['editor'];if(!_0x1b4df6['plugins']['has']('RemoveFormatEditing'))return;_0x1b4df6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc19f64=this['editor'];_0xc19f64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5abb4=>{if('formatBlock'!=_0x5abb4['type']&&'formatInline'!=_0x5abb4['type'])return;const {data:_0x1b2893}=_0x5abb4;return _0x1b2893&&'removeFormat'==_0x1b2893['commandName']?{'type':'format','content':o(_0xc19f64['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class bt extends _0x4751ae{['afterInit'](){const _0x6fa973=this['editor'];if(!_0x6fa973['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x96ba49=_0x6fa973['plugins']['get']('TrackChangesEditing');_0x96ba49['enableCommand']('goToPreviousRestrictedEditingException'),_0x96ba49['enableCommand']('goToNextRestrictedEditingException');const _0x3c7956=_0x6fa973['plugins']['get']('RestrictedEditingModeEditing');_0x3c7956['enableCommand']('trackChanges'),_0x3c7956['enableCommand']('acceptSuggestion'),_0x3c7956['enableCommand']('discardSuggestion'),_0x3c7956['enableCommand']('acceptAllSuggestions'),_0x3c7956['enableCommand']('discardAllSuggestions'),_0x3c7956['enableCommand']('acceptSelectedSuggestions'),_0x3c7956['enableCommand']('discardSelectedSuggestions');}}class wt extends _0x4751ae{static get['requires'](){return[_0x1c6adc];}['init'](){const _0x34d94=this['editor'],_0x368d78=_0x34d94['plugins']['get']('TrackChangesEditing');_0x368d78['enableCommand']('shiftEnter'),_0x34d94['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ce(_0x34d94),{'priority':'high'}),_0x34d94['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ce(_0x34d94),{'priority':'high'}),_0x34d94['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5b26ff,_0x585f64,_0x218f66)=>{_0x218f66['options']['showSuggestionHighlights']&&ce(_0x34d94,{'showActiveMarker':!0x1})(_0x5b26ff,_0x585f64,_0x218f66);}),_0x368d78['descriptionFactory']['registerElementLabel']('softBreak',_0xac3bd5=>o(_0x34d94['locale'],'ELEMENT_LINE_BREAK',_0xac3bd5));}}function ce(_0x290aa1,{showActiveMarker:_0x4190e6=!0x0}={}){return(_0x246a90,_0xd0b247,_0x4985a5)=>{const _0x49dbaf=_0x290aa1['plugins']['get']('TrackChangesEditing');if(!_0x4985a5['consumable']['test'](_0xd0b247['markerRange'],_0x246a90['name']))return;const _0x1afd4c=_0x290aa1['model'];for(const _0x388b0a of _0xd0b247['markerRange']['getItems']()){if(!_0x388b0a['is']('element','softBreak'))continue;const _0x31f479='deletion'==_0xd0b247['markerName']['split'](':')[0x1]?'merge':'split',_0x2edde5=_0x4985a5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31f479}),_0x3a704c=_0x4985a5['mapper']['toViewPosition'](_0x1afd4c['createPositionBefore'](_0x388b0a));_0x4190e6&&_0x49dbaf['activeMarkers']['includes'](_0xd0b247['markerName'])&&_0x4985a5['writer']['addClass']('ck-suggestion-marker--active',_0x2edde5),_0x4985a5['writer']['insert'](_0x3a704c,_0x2edde5),_0x4985a5['mapper']['bindElementToMarker'](_0x2edde5,_0xd0b247['markerName']);}};}class yt extends _0x4751ae{['afterInit'](){const _0xea320f=this['editor'],_0x12630a=_0xea320f['model'],_0x5a1add=_0xea320f['locale'];if(!_0xea320f['plugins']['has']('StandardEditingModeEditing'))return;const _0x578af3=_0xea320f['plugins']['get']('TrackChangesEditing'),_0x50eb73='restrictedEditingException',_0x5961cb=_0xea320f['commands']['get'](_0x50eb73);_0x578af3['enableCommand'](_0x50eb73,(_0x4de92a,_0x523112={})=>{const _0x14e2e2=_0x12630a['document']['selection'];if(_0x14e2e2['isCollapsed'])return void _0x4de92a(_0x523112);const _0x505bcb=void 0x0!==_0x523112['forceValue']?_0x523112['forceValue']:!_0x5961cb['value'];_0x12630a['change'](()=>{const _0x1b8e4f=Array['from'](_0x14e2e2['getRanges']());for(const _0x51ef43 of _0x1b8e4f){const _0x1a13e9=_0x505bcb?[_0x51ef43]:io(_0x50eb73,_0x51ef43,_0x12630a);for(const _0x2ba8fa of _0x1a13e9)_0x578af3['markInlineFormat'](_0x2ba8fa,{'commandName':_0x50eb73,'commandParams':[{'forceValue':_0x505bcb}]});}});}),_0x578af3['descriptionFactory']['registerDescriptionCallback'](_0x4522e0=>{if('formatBlock'!=_0x4522e0['type']&&'formatInline'!=_0x4522e0['type'])return;const {data:_0x1ffef4}=_0x4522e0;return _0x1ffef4&&_0x1ffef4['commandName']==_0x50eb73?_0x1ffef4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a1add,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5a1add,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class jt extends _0x4751ae{['afterInit'](){const _0x18e3fd=this['editor'];if(!_0x18e3fd['plugins']['has']('Style')||!_0x18e3fd['plugins']['has']('DataSchema'))return;const _0x4c6624=_0x18e3fd['plugins']['get']('TrackChangesEditing'),_0x2c28d6=_0x18e3fd['locale'],_0xe4353b=_0x18e3fd['config']['get']('style')||{},_0x1ef742=_0x18e3fd['plugins']['get']('GeneralHtmlSupport'),_0xac0da8=_0x18e3fd['plugins']['get']('StyleUtils')['normalizeConfig'](_0x18e3fd['plugins']['get']('DataSchema'),_0xe4353b['definitions']);_0x4c6624['enableDefaultAttributesIntegration']('style');const _0x2712ce=new Set();for(const _0x26da58 of _0xac0da8['block']){const _0x25adf7=_0x1ef742['getGhsAttributeNameForElement'](_0x26da58['element']);_0x2712ce['add'](_0x25adf7);}const _0x28cb5a=new Set();for(const _0x1091ea of _0xac0da8['inline']){const _0xb89a36=_0x1ef742['getGhsAttributeNameForElement'](_0x1091ea['element']);_0x28cb5a['add'](_0xb89a36);for(const _0x18d851 of _0x1091ea['ghsAttributes'])_0x28cb5a['add'](_0x18d851);}for(const _0x4e56ea of _0x2712ce)_0x4c6624['registerBlockAttribute'](_0x4e56ea),_0x4c6624['descriptionFactory']['registerAttributeLabel'](_0x4e56ea,o(_0x2c28d6,'FORMAT_STYLE'));for(const _0x1b2b23 of _0x28cb5a)_0x4c6624['registerInlineAttribute'](_0x1b2b23),_0x4c6624['descriptionFactory']['registerAttributeLabel'](_0x1b2b23,o(_0x2c28d6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b9b05=this['editor'],_0x3aecf0=_0x3b9b05['locale'];_0x3b9b05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f9bc9=>{if('formatBlock'!=_0x4f9bc9['type']&&'formatInline'!=_0x4f9bc9['type'])return;const {data:_0x26a735}=_0x4f9bc9;return _0x26a735&&'style'===_0x26a735['commandName']?_0x26a735['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3aecf0,'*Set\x20format:*\x20%0',_0x26a735['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3aecf0,'*Remove\x20format:*\x20%0',_0x26a735['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class St extends _0x4751ae{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3fb733){super(_0x3fb733),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1cc1fd=this['editor'],_0x45fc66=_0x1cc1fd['model']['document']['selection'];if(!_0x1cc1fd['plugins']['has']('TableEditing'))return;const _0x3df258=_0x1cc1fd['locale'],_0x2443af=_0x1cc1fd['plugins']['get']('TrackChangesEditing'),_0x5f3f36=_0x1cc1fd['plugins']['get']('TableUtils');_0x2443af['descriptionFactory']['registerElementLabel']('table',_0x2d404c=>o(_0x3df258,'ELEMENT_TABLE',_0x2d404c)),this['_setupColumnsRowsFixing'](),_0x2443af['enableCommand']('insertTable'),_0x2443af['enableCommand']('selectTableRow'),_0x2443af['enableCommand']('selectTableColumn');for(const _0x557f07 of['insertTableRowAbove','insertTableRowBelow']){const _0x22e7e5=_0x1cc1fd['commands']['get'](_0x557f07);_0x2443af['enableCommand'](_0x557f07,_0x1ce252=>{_0x1cc1fd['model']['change'](_0x7caeb4=>{_0x1ce252();const _0x20ed97='above'===_0x22e7e5['order'],_0x4d7cbb=_0x5f3f36['getSelectionAffectedTableCells'](_0x45fc66),_0x4a6661=_0x5f3f36['getRowIndexes'](_0x4d7cbb),_0x42dac9=_0x20ed97?_0x4a6661['first']-0x1:_0x4a6661['last']+0x1,_0xa4e2ed=_0x4d7cbb[0x0]['findAncestor']('table'),_0xd29773=_0x5f3f36['createTableWalker'](_0xa4e2ed,{'startRow':_0x42dac9,'endRow':_0x42dac9}),_0x57fad=Array['from'](_0xd29773)['map'](_0x1dced7=>_0x7caeb4['createRangeOn'](_0x1dced7['cell']));_0x2443af['markMultiRangeInsertion'](_0x57fad,'tableRow');});});}for(const _0x25370a of['insertTableColumnLeft','insertTableColumnRight']){const _0x268348=_0x1cc1fd['commands']['get'](_0x25370a);_0x2443af['enableCommand'](_0x25370a,_0x4e74c0=>{_0x1cc1fd['model']['change'](_0xe776d9=>{_0x4e74c0();const _0x47820d='left'===_0x268348['order'],_0x3ed225=_0x5f3f36['getSelectionAffectedTableCells'](_0x45fc66),_0x18030=_0x5f3f36['getColumnIndexes'](_0x3ed225),_0x781a5b=_0x47820d?_0x18030['first']-0x1:_0x18030['last']+0x1,_0x1758bb=_0x3ed225[0x0]['findAncestor']('table'),_0x447e45=_0x5f3f36['createTableWalker'](_0x1758bb,{'startRow':0x0,'column':_0x781a5b,'includeAllSlots':!0x1}),_0x4d66a8=Array['from'](_0x447e45)['map'](_0x5b6cf9=>_0xe776d9['createRangeOn'](_0x5b6cf9['cell']));_0x2443af['markMultiRangeInsertion'](_0x4d66a8,'tableColumn');});});}for(const _0x4556a5 of['removeTableRow','removeTableColumn']){const _0x3d2ba9=_0x4556a5['substr'](0xb),_0x307242=_0x3d2ba9['toLowerCase'](),_0x4c8fc7=_0x307242['substr'](0x0,0x3)+'span',_0x412acc='table'+_0x3d2ba9,_0x9df7d1='min'+_0x3d2ba9,_0x15026a='max'+_0x3d2ba9;_0x2443af['enableCommand'](_0x4556a5,()=>{_0x1cc1fd['model']['change'](_0x2fc7d8=>{const _0x16b7cf=_0x5f3f36['getSelectionAffectedTableCells'](_0x45fc66),_0x679302=_0x16b7cf[0x0]['findAncestor']('table');let _0xa8d6ac;if('removeTableRow'==_0x4556a5){const _0x8e2886=_0x5f3f36['getRowIndexes'](_0x16b7cf);_0xa8d6ac={'startRow':_0x8e2886['first'],'endRow':_0x8e2886['last'],'includeAllSlots':!0x0};}else{const _0x236f43=_0x5f3f36['getColumnIndexes'](_0x16b7cf);_0xa8d6ac={'startColumn':_0x236f43['first'],'endColumn':_0x236f43['last'],'includeAllSlots':!0x0};}const _0x22459f=_0x5f3f36['createTableWalker'](_0x679302,_0xa8d6ac),_0x48fc7e=Array['from'](_0x22459f)['map'](({cell:_0x38662c})=>_0x38662c),_0x44b8d3=Ee(_0x48fc7e['filter'](_0x49a06f=>_0x49a06f['hasAttribute'](_0x4c8fc7))),_0x49d2be=Ee(_0x48fc7e['filter'](_0x4c3155=>!_0x4c3155['hasAttribute'](_0x4c8fc7)))['map'](_0xaf69bb=>_0x2fc7d8['createRangeOn'](_0xaf69bb)),_0x12be47=_0x2443af['markMultiRangeDeletion'](_0x49d2be,_0x412acc);if(_0x12be47&&('tableRow'==_0x12be47['subType']||'tableColumn'==_0x12be47['subType'])){const _0x427b6f=this['_getSuggestionCoords'](_0x12be47);for(const _0x2ef5ab of _0x44b8d3){const _0x281f76=_0x2fc7d8['createRangeOn'](_0x2ef5ab),_0x3b87f3=_0x5f3f36['getCellLocation'](_0x2ef5ab),_0x3abc3d=_0x2ef5ab['getAttribute'](_0x4c8fc7)-0x1,_0x22b621=_0x427b6f[_0x9df7d1],_0x1c5723=_0x427b6f[_0x15026a];_0x22b621<=_0x3b87f3[_0x307242]&&_0x3b87f3[_0x307242]+_0x3abc3d<=_0x1c5723&&_0x12be47['addRange'](_0x281f76);}}});});}function _0x4c15ff(_0x5c4e39){const _0x415aff=Array['from'](_0x45fc66['getRanges']())['map'](_0x3fa854=>_0x8f1c09['fromRange'](_0x3fa854));_0x1cc1fd['model']['change'](_0x1e8dcc=>{const _0x208d29=_0x1e8dcc['batch'];_0x5c4e39=_0x5c4e39['filter'](_0x4ab2a0=>'$graveyard'!=_0x4ab2a0['root']['rootName']),_0x1e8dcc['setSelection'](_0x5c4e39),_0x1cc1fd['commands']['get']('removeTableRow')['refresh'](),_0x1cc1fd['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1cc1fd['model']['enqueueChange'](()=>{_0x1cc1fd['model']['enqueueChange'](_0x208d29,_0x1547d4=>{const _0x3773ca=_0x415aff['filter'](_0x80fd65=>'$graveyard'!=_0x80fd65['root']['rootName']);_0x3773ca['length']>0x0&&_0x1547d4['setSelection'](_0x3773ca);for(const _0x401e0c of _0x415aff)_0x401e0c['detach']();});});});}function _0x352b7a(_0x19d299){_0x1cc1fd['model']['change'](_0x4e0e90=>{const _0x3c8c65=Array['from'](_0x45fc66['getRanges']())['map'](_0xbe81d8=>_0x8f1c09['fromRange'](_0xbe81d8)),_0x26c9cb=[];for(const _0x4ce0e3 of _0x19d299)for(const _0x67ff5c of _0x4ce0e3['getItems']({'shallow':!0x0}))_0x26c9cb['push'](_0x67ff5c);for(const _0x18a4f4 of _0x26c9cb)'$graveyard'!=_0x18a4f4['root']['rootName']&&(_0x4e0e90['setSelection'](_0x4e0e90['createPositionAt'](_0x18a4f4,0x0)),_0x1cc1fd['commands']['get']('removeTableColumn')['refresh'](),_0x1cc1fd['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x48481d=_0x3c8c65['filter'](_0xd395bd=>'$graveyard'!=_0xd395bd['root']['rootName']);_0x48481d['length']>0x0&&_0x4e0e90['setSelection'](_0x48481d);for(const _0xe7ec85 of _0x3c8c65)_0xe7ec85['detach']();});}function _0x5c2b8a(_0x187ee6,_0x61d899){return _0x61d899['every'](_0x145608=>_0x187ee6['some'](_0x1f9b8f=>_0x1f9b8f['end']['isEqual'](_0x145608['start'])||_0x145608['end']['isEqual'](_0x1f9b8f['start'])));}function _0x2e6df9(_0x472081,_0x27ad92){return!_0x472081['some'](_0x553df8=>_0x27ad92['some'](_0x7b43e9=>_0x553df8['isIntersecting'](_0x7b43e9)))&&_0x472081['some'](_0x513bc0=>_0x27ad92['some'](_0x17a857=>_0x513bc0['end']['isTouching'](_0x17a857['start'])));}_0x1cc1fd['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x532dd5,_0x52c4e5,_0xd13a3a)=>{if(!_0xd13a3a['options']['showSuggestionHighlights'])return;const _0x25fb2d=_0x52c4e5['item'];if(!_0x25fb2d)return;const _0x26cc67=_0xd13a3a['mapper']['toViewElement'](_0x25fb2d);function _0x51d62e(_0x3a6224){return Array['isArray'](_0x3a6224)?_0x3a6224:[_0x3a6224];}_0x26cc67&&'tableCell'===_0x25fb2d['name']&&_0x1172f0(_0x26cc67,_0xd13a3a['writer'],(_0x516f39,_0x398f2d,_0x34ef5b)=>_0x34ef5b['addClass'](_0x51d62e(_0x398f2d['classes']),_0x516f39),(_0x43a954,_0x53fc6d,_0x5e0fa9)=>_0x5e0fa9['removeClass'](_0x51d62e(_0x53fc6d['classes']),_0x43a954));},{'priority':'highest'}),_0x2443af['descriptionFactory']['registerDescriptionCallback'](_0x198c71=>{if('insertion'!=_0x198c71['type']&&'deletion'!=_0x198c71['type'])return;const _0x5a9e4c=_0x198c71['getContainedElement']();if(null!=_0x5a9e4c&&_0x5a9e4c['is']('element','table')){if('insertion'==_0x198c71['type']){const _0x413c70=_0x198c71['getItems']()['filter'](_0x6e0b92=>_0x6e0b92['is']('$textProxy'))['map'](_0x33423e=>_0x33423e['data']);if(_0x413c70['length'])return{'type':'insertion','content':o(_0x3df258,'*Insert:*\x20%0',o(_0x3df258,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x413c70['join']('\x20')+'\x22'))};}if('deletion'==_0x198c71['type']){const _0x41a082=_0x198c71['getItems']()['filter'](_0x33c297=>_0x33c297['is']('$textProxy'))['map'](_0x2f3211=>_0x2f3211['data']);if(_0x41a082['length'])return{'type':'deletion','content':o(_0x3df258,'*Remove:*\x20%0',o(_0x3df258,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x41a082['join']('\x20')+'\x22'))};}}}),_0x2443af['descriptionFactory']['registerDescriptionCallback'](_0x91dc8a=>{if('tableRow'==_0x91dc8a['subType']){const _0x5ed2c2=_0x91dc8a['getItems']()['filter'](_0x2cd02b=>_0x2cd02b['is']('$textProxy'))['map'](_0x31bb9e=>_0x31bb9e['data']),_0x25cee1=this['_getSuggestionCoords'](_0x91dc8a),_0x46ed76=_0x25cee1['maxRow']-_0x25cee1['minRow']+0x1;if('insertion'==_0x91dc8a['type'])return _0x5ed2c2['length']?{'type':'insertion','content':o(_0x3df258,'*Insert:*\x20%0',o(_0x3df258,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x46ed76,'\x22'+_0x5ed2c2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3df258,'*Insert:*\x20%0',o(_0x3df258,'ELEMENT_TABLE_ROW',_0x46ed76))};if('deletion'==_0x91dc8a['type'])return _0x5ed2c2['length']?{'type':'deletion','content':o(_0x3df258,'*Remove:*\x20%0',o(_0x3df258,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x46ed76,'\x22'+_0x5ed2c2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3df258,'*Remove:*\x20%0',o(_0x3df258,'ELEMENT_TABLE_ROW',_0x46ed76))};}if('tableColumn'==_0x91dc8a['subType']){const _0x258ab9=_0x91dc8a['getItems']()['filter'](_0x218583=>_0x218583['is']('$textProxy'))['map'](_0x28e84a=>_0x28e84a['data']),_0x227a69=this['_getSuggestionCoords'](_0x91dc8a),_0x59b20a=_0x227a69['maxColumn']-_0x227a69['minColumn']+0x1;if('insertion'==_0x91dc8a['type'])return _0x258ab9['length']?{'type':'insertion','content':o(_0x3df258,'*Insert:*\x20%0',o(_0x3df258,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x59b20a,'\x22'+_0x258ab9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3df258,'*Insert:*\x20%0',o(_0x3df258,'ELEMENT_TABLE_COLUMN',_0x59b20a))};if('deletion'==_0x91dc8a['type'])return _0x258ab9['length']?{'type':'deletion','content':o(_0x3df258,'*Remove:*\x20%0',o(_0x3df258,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x59b20a,'\x22'+_0x258ab9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3df258,'*Remove:*\x20%0',o(_0x3df258,'ELEMENT_TABLE_COLUMN',_0x59b20a))};}}),_0x2443af['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4c15ff),_0x2443af['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4c15ff),_0x2443af['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x352b7a),_0x2443af['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x352b7a),_0x2443af['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5c2b8a),_0x2443af['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5c2b8a),_0x2443af['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2e6df9),_0x2443af['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2e6df9);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2c2b5b=this['editor'],_0x452046=_0x2c2b5b['model']['document']['selection'];return(_0x594acf,_0x85a5b5)=>{_0x2c2b5b['model']['change'](_0x7ae200=>{const {commandName:_0x395292,commandParams:_0x408b4f}=_0x85a5b5;let _0x4a3cfc=_0x594acf[0x0]['end']['nodeBefore'];_0x408b4f&&_0x408b4f[0x0]&&!0x1===_0x408b4f[0x0]['forceValue']&&(_0x4a3cfc=_0x594acf[0x0]['start']['nodeAfter']);const _0x4f8400=_0x7ae200['createRangeIn'](_0x4a3cfc);if('$graveyard'==_0x4f8400['root']['rootName'])return;const _0xf6e16c=Array['from'](_0x452046['getRanges']())['map'](_0x49c207=>_0x8f1c09['fromRange'](_0x49c207));_0x7ae200['setSelection'](_0x4f8400),_0x2c2b5b['commands']['get'](_0x395292)['refresh'](),_0x408b4f['push']({'forceDefaultExecution':!0x0}),_0x2c2b5b['execute'](_0x395292,..._0x408b4f);const _0x55edf7=_0xf6e16c['filter'](_0x231d31=>'$graveyard'!=_0x231d31['root']['rootName']);_0x55edf7['length']>0x0&&_0x7ae200['setSelection'](_0x55edf7);for(const _0x135a1c of _0xf6e16c)_0x135a1c['detach']();});};}['_getCoordsForCells'](_0x312934){const _0x265749=this['editor']['plugins']['get']('TableUtils');let _0x218bb5=Number['MAX_SAFE_INTEGER'],_0x4b6047=Number['MIN_SAFE_INTEGER'],_0x195b6a=Number['MAX_SAFE_INTEGER'],_0x49ae1b=Number['MIN_SAFE_INTEGER'];for(const _0x3743cb of _0x312934){if('$graveyard'==_0x3743cb['root']['rootName'])continue;const {row:_0x7f7a98,column:_0x138a50}=_0x265749['getCellLocation'](_0x3743cb),_0x1378d6=_0x3743cb['hasAttribute']('rowspan')?_0x3743cb['getAttribute']('rowspan')-0x1:0x0,_0x528e01=_0x3743cb['hasAttribute']('colspan')?_0x3743cb['getAttribute']('colspan')-0x1:0x0;_0x218bb5=_0x7f7a98<_0x218bb5?_0x7f7a98:_0x218bb5,_0x4b6047=_0x7f7a98+_0x1378d6>_0x4b6047?_0x7f7a98+_0x1378d6:_0x4b6047,_0x195b6a=_0x138a50<_0x195b6a?_0x138a50:_0x195b6a,_0x49ae1b=_0x138a50+_0x528e01>_0x49ae1b?_0x138a50+_0x528e01:_0x49ae1b;}return{'minRow':_0x218bb5,'maxRow':_0x4b6047,'minColumn':_0x195b6a,'maxColumn':_0x49ae1b};}['_setupColumnsRowsFixing'](){const _0x13e5b7=this['editor'],_0x5e9872=_0x13e5b7['plugins']['get']('TrackChangesEditing'),_0x4807c3=_0x13e5b7['plugins']['get']('TableUtils');_0x13e5b7['model']['document']['on']('change:data',()=>{const _0x5b391e=Array['from'](_0x13e5b7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a937c,data:_0x142a25}of _0x5b391e){const {group:_0x24eab9,id:_0x5b8bc6,subType:_0x181c7c}=_0x5e9872['_splitMarkerName'](_0x1a937c);if('suggestion'!=_0x24eab9)continue;if(null!=_0x142a25['oldRange'])continue;const _0x569d7b=_0x5e9872['getSuggestion'](_0x5b8bc6);this['_tablePostFixingSubtypes']['includes'](_0x181c7c)&&this['_tableSuggestions']['add'](_0x569d7b);}},{'priority':'low'});const _0x31518b=(_0x22d5d9,_0x89d8)=>{let _0x4afb0a=!0x1;const _0x4d811f=_0x89d8['createRangeOn'](_0x22d5d9),_0x26f01b=_0x22d5d9['findAncestor']('table'),_0x4defd8=_0x4807c3['getCellLocation'](_0x22d5d9);for(const _0x51ffc4 of this['_tableSuggestions']){const _0x1303ff=_0x51ffc4['subType'],_0x103b15=_0x1303ff['startsWith']('tablePaste'),_0x50aca2=_0x1303ff['substr'](_0x103b15?0xa:0x5),_0x3a5dca=_0x50aca2['toLowerCase'](),_0x3e242d=_0x3a5dca['substr'](0x0,0x3)+'span',_0x44957b='min'+_0x50aca2,_0xa68e05='max'+_0x50aca2;if(!_0x51ffc4['isInContent'])continue;if(_0x26f01b!=_0x51ffc4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x51ffc4['isIntersectingWithRange'](_0x4d811f))continue;const _0x51fc64=_0x22d5d9['hasAttribute'](_0x3e242d)?_0x22d5d9['getAttribute'](_0x3e242d)-0x1:0x0,_0x1682ff=this['_getSuggestionCoords'](_0x51ffc4),_0x10bb33=_0x1682ff[_0x44957b],_0x119215=_0x1682ff[_0xa68e05];_0x10bb33<=_0x4defd8[_0x3a5dca]&&_0x4defd8[_0x3a5dca]+_0x51fc64<=_0x119215&&(_0x51ffc4['addRange'](_0x4d811f),_0x4afb0a=!0x0);}return _0x4afb0a;};_0x13e5b7['model']['document']['registerPostFixer'](_0x1475ee=>{let _0x45c558=!0x1;for(const _0x559c30 of _0x13e5b7['model']['document']['differ']['getChanges']())if('insert'==_0x559c30['type']){if('tableRow'==_0x559c30['name']){for(const _0x5726cf of _0x559c30['position']['nodeAfter']['getChildren']())_0x45c558=_0x45c558||_0x31518b(_0x5726cf,_0x1475ee);}else'tableCell'==_0x559c30['name']&&(_0x45c558=_0x45c558||_0x31518b(_0x559c30['position']['nodeAfter'],_0x1475ee));}return _0x45c558;});}['_getSuggestionCoords'](_0x1cc72b){return this['_getCoordsForCells'](_0x1cc72b['getRanges']()['map'](_0x29cb29=>_0x29cb29['start']['nodeAfter']));}}function Ee(_0x1d3d92){return Array['from'](new Set(_0x1d3d92)['values']());}class At extends _0x4751ae{static get['requires'](){return[St];}['afterInit'](){const _0x32bb94=this['editor'],_0x306b4c=_0x32bb94['model']['document']['selection'],_0x35fd05=_0x32bb94['locale'];if(!_0x32bb94['plugins']['has']('TableEditing'))return;const _0x23e7f2=_0x32bb94['plugins']['get']('TrackChangesEditing'),_0x31d383=_0x32bb94['plugins']['get']('TableUtils'),_0x5b2271=_0x32bb94['plugins']['get'](St);_0x5b2271['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x23e7f2['enableCommand']('mergeTableCells',()=>{const _0x1c79ea=_0x31d383['getSelectionAffectedTableCells'](_0x32bb94['model']['document']['selection']);_0x32bb94['model']['change'](()=>{_0x23e7f2['markMultiRangeBlockFormat'](_0x1c79ea,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x32bb94['commands']['get']('mergeTableCells')['on']('execute',(_0x32dda9,_0x2bcfc5)=>{_0x32bb94['commands']['get']('trackChanges')['value']&&(_0x2bcfc5['length']>0x0&&_0x2bcfc5[_0x2bcfc5['length']-0x1]&&_0x2bcfc5[_0x2bcfc5['length']-0x1]['forceDefaultExecution']||_0x23e7f2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x32dda9['stop']());},{'priority':'highest'});for(const _0x39c5b1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2ce964=_0x32bb94['commands']['get'](_0x39c5b1);_0x23e7f2['enableCommand'](_0x39c5b1,()=>{const _0x5130ea=_0x32bb94['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x35a351=>_0x35a351['is']('element','tableCell')),_0x447432=_0x2ce964['value'];_0x32bb94['model']['change'](()=>{_0x23e7f2['markMultiRangeBlockFormat']([_0x5130ea,_0x447432],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1bdea1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x6d472c=_0x32bb94['commands']['get'](_0x1bdea1);_0x23e7f2['enableCommand'](_0x1bdea1,()=>{const _0x1e0f2a=_0x31d383['getSelectionAffectedTableCells'](_0x32bb94['model']['document']['selection'])[0x0],_0x258836=_0x1e0f2a['findAncestor']('table'),{column:_0x430147,row:_0x1fef08}=_0x31d383['getCellLocation'](_0x1e0f2a);let _0x47fbad=[];if('horizontally'==_0x6d472c['direction']){const _0x4a2a4d=_0x31d383['createTableWalker'](_0x258836,{'startRow':_0x1fef08,'endRow':_0x1fef08,'includeAllSlots':!0x0});_0x47fbad=Array['from'](_0x4a2a4d)['map'](_0x37abfc=>_0x37abfc['cell']);}else{const _0x8f5553=_0x31d383['createTableWalker'](_0x258836,{'column':_0x430147,'includeAllSlots':!0x0});_0x47fbad=Array['from'](_0x8f5553)['map'](_0x536c95=>_0x536c95['cell']);}_0x32bb94['model']['change'](_0x33d8c4=>{_0x23e7f2['markBlockFormat'](_0x33d8c4['createRangeOn'](_0x1e0f2a),{'commandName':_0x1bdea1,'commandParams':[]},_0x47fbad,_0x1bdea1);});});}_0x23e7f2['descriptionFactory']['registerDescriptionCallback'](_0xec51a1=>{if('formatBlock'!=_0xec51a1['type']&&'formatInline'!=_0xec51a1['type'])return;const {data:_0x2d72f5}=_0xec51a1;return _0x2d72f5&&'mergeTableCells'==_0x2d72f5['commandName']?{'type':'format','content':o(_0x35fd05,'*Merge\x20cells*')}:void 0x0;}),_0x23e7f2['descriptionFactory']['registerDescriptionCallback'](_0x45504c=>{if('formatBlock'!=_0x45504c['type']&&'formatInline'!=_0x45504c['type'])return;const {data:_0x37cdea}=_0x45504c;return _0x37cdea?'splitTableCellVertically'==_0x37cdea['commandName']?{'type':'format','content':o(_0x35fd05,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x37cdea['commandName']?{'type':'format','content':o(_0x35fd05,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x12b473=_0x5b2271['_acceptFormatSuggestionCallbackFactory']();for(const _0x3d1346 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x23e7f2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d1346,'accept',_0x12b473);for(const _0x45536c of['splitTableCellVertically','splitTableCellHorizontally'])_0x23e7f2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45536c,'accept',_0x12b473);_0x23e7f2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4986af=>{_0x32bb94['model']['change'](_0x2e874b=>{const _0x24a635=Array['from'](_0x306b4c['getRanges']())['map'](_0x37e1b2=>_0x8f1c09['fromRange'](_0x37e1b2));_0x2e874b['setSelection'](_0x4986af),_0x32bb94['commands']['get']('mergeTableCells')['refresh'](),_0x32bb94['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2fb77a=_0x24a635['filter'](_0x32fa59=>'$graveyard'!=_0x32fa59['root']['rootName']);_0x2fb77a['length']>0x0&&_0x2e874b['setSelection'](_0x2fb77a);for(const _0x4459ab of _0x24a635)_0x4459ab['detach']();});});for(const _0x2bcf35 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xdf4d88=_0x32bb94['commands']['get'](_0x2bcf35);_0xdf4d88['on']('set:isEnabled',(_0xb26283,_0x32fcaa,_0x4e223b)=>{if(_0x4e223b){const _0x4bbffd=_0x32bb94['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5dc648=>_0x5dc648['is']('element','tableCell'));this['_areMergableCells'](_0xdf4d88['value'],_0x4bbffd)||(_0xb26283['return']=!0x1,_0xb26283['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x38e55f=this['editor']['commands']['get']('mergeTableCells'),_0x5f41ea=this['editor']['plugins']['get']('TableUtils');if(!_0x38e55f['isEnabled'])return!0x1;const _0x2c38df=_0x5f41ea['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x57ce8e of _0x2c38df)for(const _0x3cdd0f of _0x2c38df)if(_0x57ce8e!=_0x3cdd0f&&!this['_areMergableCells'](_0x57ce8e,_0x3cdd0f))return!0x1;return!0x0;}['_areMergableCells'](_0x25bd5f,_0xde6c23){const _0x4943bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d69aa=this['editor']['model']['createRangeOn'](_0x25bd5f),_0x41de16=this['editor']['model']['createRangeOn'](_0xde6c23),_0x225d5e=new Set(),_0x43efce=new Set();for(const _0x45d006 of _0x4943bc['getSuggestions']())if(('insertion'==_0x45d006['type']||'deletion'==_0x45d006['type']||'mergeTableCells'==_0x45d006['subType'])&&_0x45d006['isInContent']){for(const _0x134374 of _0x45d006['getRanges']())_0x134374['containsRange'](_0x1d69aa,!0x0)&&_0x225d5e['add'](_0x45d006['type']+':'+_0x45d006['author']['id']),_0x134374['containsRange'](_0x41de16,!0x0)&&_0x43efce['add'](_0x45d006['type']+':'+_0x45d006['author']['id']);}if(_0x225d5e['size']!=_0x43efce['size'])return!0x1;for(const _0x4f355b of _0x225d5e)if(!_0x43efce['has'](_0x4f355b))return!0x1;return!0x0;}}class It extends _0x4751ae{static get['requires'](){return[St];}['afterInit'](){const _0x12919c=this['editor'];if(!_0x12919c['plugins']['has']('TableEditing'))return;const _0x19cc80=_0x12919c['locale'],_0x5db2ca=_0x12919c['plugins']['get']('TrackChangesEditing');_0x5db2ca['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5db2ca['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5db2ca['registerBlockAttribute']('headingRows'),_0x5db2ca['registerBlockAttribute']('headingColumns'),_0x5db2ca['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x19cc80,'FORMAT_HEADER_ROW')),_0x5db2ca['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x19cc80,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3bbb8a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x200af1=this['editor']['plugins']['get']('TableUtils'),_0x10bda5=this['editor']['plugins']['get'](St)['_acceptFormatSuggestionCallbackFactory']();function _0x5491c2({showActiveMarker:_0x3edc63=!0x0,setDataAttribute:_0x1c800b=!0x0}={}){return(_0x350beb,_0x903b45,_0x5674a5)=>{const {type:_0x575377,id:_0x37107f}=_0x3bbb8a['_splitMarkerName'](_0x903b45['markerName']),_0x5c0524=_0x3bbb8a['getSuggestion'](_0x37107f),_0x3df836=_0x5c0524['data'];if('formatBlock'!=_0x5c0524['type']||!_0x3df836||'setTableColumnHeader'!=_0x3df836['commandName'])return;if(_0x903b45['item'])return void _0x350beb['stop']();if(!_0x5674a5['consumable']['consume'](_0x903b45['markerRange'],_0x350beb['name']))return;const _0x50e551=_0x903b45['markerRange']['start']['nodeAfter'],_0x2349d3=_0x903b45['markerRange']['end']['nodeBefore'],_0x5e3a93=_0x50e551['parent']['parent'],{column:_0x56cbd7}=_0x200af1['getCellLocation'](_0x50e551),{column:_0x201058}=_0x200af1['getCellLocation'](_0x2349d3);for(let _0x30cc8f=_0x56cbd7;_0x30cc8f<=_0x201058;_0x30cc8f++){const _0x5451d6=_0x200af1['createTableWalker'](_0x5e3a93,{'column':_0x30cc8f,'includeAllSlots':!0x1});for(const _0x3ea9fd of _0x5451d6){const _0x389f55=_0x3ea9fd['cell'],_0x502164=_0x5674a5['mapper']['toViewElement'](_0x389f55);_0x5674a5['writer']['addClass']('ck-suggestion-marker-'+_0x575377,_0x502164),_0x1c800b&&_0x5674a5['writer']['setAttribute']('data-suggestion',_0x37107f,_0x502164),_0x5674a5['mapper']['bindElementToMarker'](_0x502164,_0x903b45['markerName']),_0x3edc63&&(_0x3bbb8a['activeMarkers']['includes'](_0x903b45['markerName'])?_0x5674a5['writer']['addClass']('ck-suggestion-marker--active',_0x502164):_0x5674a5['writer']['removeClass']('ck-suggestion-marker--active',_0x502164));}}};}_0x3bbb8a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x10bda5),_0x3bbb8a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x10bda5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5491c2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c8093,_0x318402,_0x4549ab)=>{_0x4549ab['options']['showSuggestionHighlights']&&_0x5491c2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4c8093,_0x318402,_0x4549ab);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xf54ba9,_0x483729,_0x4035a9)=>{const {type:_0x3b711b,id:_0x5510ee}=_0x3bbb8a['_splitMarkerName'](_0x483729['markerName']),_0x18312e=_0x3bbb8a['getSuggestion'](_0x5510ee),_0xe4d049=_0x18312e['data'];if('formatBlock'!=_0x18312e['type']||!_0xe4d049||'setTableColumnHeader'!=_0xe4d049['commandName'])return;const _0x28fe57=_0x4035a9['mapper']['markerNameToElements'](_0x483729['markerName']);if(_0x28fe57){for(const _0x351def of _0x28fe57)_0x4035a9['writer']['removeClass']('ck-suggestion-marker-'+_0x3b711b,_0x351def),_0x4035a9['writer']['removeClass']('ck-suggestion-marker--active',_0x351def),_0x4035a9['writer']['removeAttribute']('data-suggestion',_0x351def),_0x4035a9['mapper']['unbindElementFromMarkerName'](_0x351def,_0x483729['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b58f8=this['editor'],_0x56892a=_0x1b58f8['locale'];function _0x3be6a8(_0x33b5fe){return{'type':'format','content':o(_0x56892a,'*Format:*\x20%0',_0x33b5fe)};}_0x1b58f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x263684=>{if('formatBlock'!=_0x263684['type'])return;const {data:_0x409c7e}=_0x263684;if(_0x409c7e){if('setTableRowHeader'==_0x409c7e['commandName']){const _0x89bbbc=_0x409c7e['commandParams'][0x0]['forceValue'];return _0x3be6a8(o(_0x56892a,_0x89bbbc?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x409c7e['commandName']){const _0x5aa3ac=_0x409c7e['commandParams'][0x0]['forceValue'];return _0x3be6a8(o(_0x56892a,_0x5aa3ac?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x341a25=>[_0x341a25,null]));class vt extends _0x4751ae{static get['requires'](){return[St];}['afterInit'](){const _0x59b7fc=this['editor'];if(!_0x59b7fc['plugins']['has']('TableClipboard'))return;const _0x196687=_0x59b7fc['plugins']['get']('TrackChangesEditing'),_0x5c494d=_0x59b7fc['plugins']['get']('TableUtils'),_0x2cf775=_0x59b7fc['plugins']['get'](St),_0x29d4b1=_0x59b7fc['plugins']['get']('TableClipboard');_0x2cf775['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x59b7fc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x59b7fc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x392e7c=null;_0x59b7fc['model']['on']('insertContent',(_0x2f12d8,_0x239104)=>{const [_0x268c10,_0x15401e]=_0x239104,_0x2568fb=_0x239104[_0x239104['length']-0x1];_0x2568fb&&_0x2568fb['forceDefaultExecution']||_0x196687['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x17291c,_0x5765dc,_0x521b6e,_0x235324,_0x519fef){if(_0x5765dc&&!_0x5765dc['is']('documentSelection'))return!0x1;const _0x838788=_0x519fef['getTableIfOnlyTableInContent'](_0x17291c,_0x521b6e);if(!_0x838788||!we(_0x838788,void 0x0,_0x235324))return!0x1;const _0x5aaf63=_0x235324['getSelectionAffectedTableCells'](_0x521b6e['document']['selection']);if(!_0x5aaf63['length'])return!0x1;const _0x574e55=_0x5aaf63[0x0]['findAncestor']('table'),_0x59ba07=_0x235324['getRowIndexes'](_0x5aaf63),_0x5e092b=_0x235324['getColumnIndexes'](_0x5aaf63),_0x3fa731={'startRow':_0x59ba07['first'],'endRow':_0x59ba07['last'],'startColumn':_0x5e092b['first'],'endColumn':_0x5e092b['last']};return 0x1==_0x5aaf63['length']&&(_0x3fa731['endRow']+=_0x235324['getRows'](_0x838788)-0x1,_0x3fa731['endColumn']+=_0x235324['getColumns'](_0x838788)-0x1),we(_0x574e55,_0x3fa731,_0x235324);}(_0x268c10,_0x15401e,_0x59b7fc['model'],_0x5c494d,_0x29d4b1)&&(_0x2f12d8['stop'](),_0x392e7c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x59b7fc['model']['change'](()=>{_0x59b7fc['model']['insertContent'](_0x239104[0x0],_0x239104[0x1],_0x239104[0x2],{'forceDefaultExecution':!0x0});const _0x443e48=_0x3bcbe6(),{rowInsertionRanges:_0x5e3a24,columnInsertionRanges:_0x5e1aa0,insertionRanges:_0x9e177c,deletionRanges:_0x2f2550,cells:_0x215880}=_0x392e7c;_0x5e3a24['length']&&_0x196687['markMultiRangeInsertion'](_0x5e3a24,'tablePasteRow',{'tablePasteChainId':_0x443e48}),_0x5e1aa0['length']&&_0x196687['markMultiRangeInsertion'](_0x5e1aa0,'tablePasteColumn',{'tablePasteChainId':_0x443e48}),_0x9e177c['length']&&(_0x196687['markMultiRangeInsertion'](_0x9e177c,'tablePaste',{'tablePasteChainId':_0x443e48,'skipNestingCheck':!0x0}),_0x9e177c['forEach'](_0x472d62=>_0x472d62['detach']?.())),_0x2f2550['length']&&(_0x196687['markMultiRangeDeletion'](_0x2f2550,'tablePaste',{'tablePasteChainId':_0x443e48,'skipNestingCheck':!0x0}),_0x2f2550['forEach'](_0x3b1731=>_0x3b1731['detach']?.()));const _0x4e8131=_0x196687['markMultiRangeBlockFormat'](_0x215880['map'](({element:_0xb4fd37})=>_0xb4fd37),{'formatGroupId':_0x3bcbe6()},[],'tablePasteCell',{'tablePasteChainId':_0x443e48});if(_0x4e8131){const _0x304b04=_0x4e8131['getMarkers'](),_0x4008a5=[];for(const {element:_0x3b4240,attributes:_0xb47202}of _0x215880){if(!_0xb47202)continue;const _0x3c4a7c=_0x59b7fc['model']['createRangeOn'](_0x3b4240),_0x2751b2=_0x304b04['find'](_0x4cc638=>_0x4cc638['getRange']()['isEqual'](_0x3c4a7c));_0x2751b2&&_0x4008a5['push']([_0x2751b2['name'],_0xb47202]);}_0x4008a5['length']&&_0x4e8131['setAttribute']('markerAttributes',Object['fromEntries'](_0x4008a5));}_0x392e7c=null;}));},{'priority':_0x3efeb5['high']+0xa}),_0x59b7fc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4f59e1,_0x2b8997)=>{const [_0x41680a,_0x399667,,_0x83574c]=_0x2b8997;if(!_0x392e7c)return;_0x4f59e1['stop']();const _0x3cf46a=_0x41680a['cell'],_0x1ca04d=_0x399667,_0x3b6790=Pe(_0x3cf46a),_0x2205ac=Pe(_0x1ca04d);_0x4f59e1['return']=_0x3cf46a;let _0x9d3b8=null,_0x32f10d=null;if(_0x2205ac||_0x3b6790){if(_0x3b6790&&!_0x2205ac){_0x83574c['remove'](_0x3cf46a['getChild'](0x0));for(const _0x5d70a7 of Array['from'](_0x1ca04d['getChildren']()))_0x83574c['insert'](_0x5d70a7,_0x3cf46a,'end');const _0x2573cc=_0x392e7c['rowInsertionIndexes']['includes'](_0x41680a['row']),_0x41114b=_0x392e7c['columnInsertionIndexes']['includes'](_0x41680a['column']);_0x2573cc||_0x41114b||(_0x9d3b8=_0x8f1c09['fromRange'](_0x83574c['createRangeIn'](_0x3cf46a)));}else _0x2205ac&&!_0x3b6790&&(_0x32f10d=_0x83574c['createRangeIn'](_0x3cf46a));}else{const _0x2d99b7=_0x83574c['createElement']('tableCellSuggestion'),_0x399e24=_0x83574c['createElement']('tableCellSuggestion');_0x83574c['wrap'](_0x83574c['createRangeIn'](_0x3cf46a),_0x399e24),_0x83574c['insert'](_0x2d99b7,_0x3cf46a,0x0);for(const _0x5bcfff of Array['from'](_0x1ca04d['getChildren']()))_0x83574c['insert'](_0x5bcfff,_0x2d99b7,'end');_0x9d3b8=_0x8f1c09['fromRange'](_0x83574c['createRangeOn'](_0x2d99b7)),_0x32f10d=_0x8f1c09['fromRange'](_0x83574c['createRangeOn'](_0x399e24));}const _0x135c57=Array['from'](_0x1ca04d['getAttributes']())['filter'](([_0x234838])=>ge['includes'](_0x234838));_0x392e7c['cells']['push']({'element':_0x3cf46a,'attributes':_0x135c57['length']?Object['fromEntries'](_0x135c57):null}),_0x9d3b8&&_0x392e7c['insertionRanges']['push'](_0x9d3b8),_0x32f10d&&_0x392e7c['deletionRanges']['push'](_0x32f10d);},{'priority':'high'}),_0x5c494d['on']('insertColumns',(_0x5c2245,_0x105306)=>{const [_0x466967,_0x2da74d={}]=_0x105306;if(!_0x392e7c)return;const _0x1ac4e4=_0x2da74d['at']||0x0,_0x3f8872=_0x2da74d['columns']||0x1;_0x392e7c['columnInsertionIndexes']=new Array(_0x3f8872)['fill'](_0x1ac4e4)['map']((_0x2bad5d,_0x213fa0)=>_0x2bad5d+_0x213fa0);for(const {cell:_0x4920bc}of _0x5c494d['createTableWalker'](_0x466967,{'startColumn':_0x1ac4e4,'endColumn':_0x1ac4e4+_0x3f8872-0x1}))_0x392e7c['columnInsertionRanges']['push'](_0x59b7fc['model']['createRangeOn'](_0x4920bc));},{'priority':'low'}),_0x5c494d['on']('insertRows',(_0x35f241,_0x3f5a16)=>{const [_0x2a43e8,_0x466a96={}]=_0x3f5a16;if(!_0x392e7c)return;const _0x18cc42=_0x466a96['at']||0x0,_0x22b6ba=_0x466a96['rows']||0x1;_0x392e7c['rowInsertionIndexes']=new Array(_0x22b6ba)['fill'](_0x18cc42)['map']((_0x1793b5,_0x47ea11)=>_0x1793b5+_0x47ea11);for(const {cell:_0x16eca3}of _0x5c494d['createTableWalker'](_0x2a43e8,{'startRow':_0x18cc42,'endRow':_0x18cc42+_0x22b6ba-0x1}))_0x392e7c['rowInsertionRanges']['push'](_0x59b7fc['model']['createRangeOn'](_0x16eca3));},{'priority':'low'}),_0x196687['descriptionFactory']['registerDescriptionCallback'](_0x195ef0=>{if(_0x195ef0['subType']&&_0x195ef0['subType']['startsWith']('tablePaste'))return _0x195ef0['previous']?{}:{'type':'insertion','content':o(_0x59b7fc['locale'],'*Replace\x20table\x20cells*')};});const _0x1f2eea=()=>!0x1;for(const _0x365428 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x196687['_suggestionFactory']['registerCustomCallback']('insertion',_0x365428,'join',_0x1f2eea),_0x196687['_suggestionFactory']['registerCustomCallback']('deletion',_0x365428,'join',_0x1f2eea),_0x196687['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x365428,'join',_0x1f2eea);_0x196687['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1f2eea),_0x196687['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc8bae2,_0x3d1a25,_0x4ef53c)=>{const _0x3ef4bf=_0xc8bae2['map'](_0x4290c7=>_0x4290c7['getContainedElement']())['filter'](_0x20252a=>_0x20252a),_0x2c9749=new Map(_0x3ef4bf['map'](_0x3e181a=>[_0x3e181a,null]));if(_0x392e7c){for(const {element:_0x533445,attributes:_0x56ccda}of _0x392e7c['cells'])_0x56ccda&&_0x2c9749['set'](_0x533445,_0x56ccda);}else{if(_0x4ef53c&&_0x4ef53c['markerAttributes'])for(const [_0x3c9979,_0x511164]of Object['entries'](_0x4ef53c['markerAttributes'])){const _0x29f248=_0x59b7fc['model']['markers']['get'](_0x3c9979),_0x14929b=_0x29f248?_0x29f248['getRange']()['getContainedElement']():null;_0x14929b&&_0x2c9749['set'](_0x14929b,_0x511164);}}_0x59b7fc['model']['change'](_0x363ca2=>{for(const [_0x27107b,_0x3f3f79]of _0x2c9749)_0x363ca2['setAttributes']({...Ce,..._0x3f3f79},_0x27107b);});});const _0x319249=(_0x23ea08,_0x2fd9f6)=>{_0x196687['_suggestionFactory']['registerCustomCallback'](_0x23ea08,'tablePaste',_0x2fd9f6,(_0xab1815,_0x35a01d,_0x343c26)=>{_0x59b7fc['model']['change'](_0x573eab=>{const _0x1d84b3=[];for(const _0x592eb2 of _0xab1815){const _0x3474ae=_0x592eb2['start']['nodeAfter'];_0x3474ae['is']('element','tableCellSuggestion')&&_0x1d84b3['push'](_0x3474ae);}_0x196687['_suggestionFactory']['getSuggestionCallback'](_0x23ea08,null,_0x2fd9f6)(_0xab1815,_0x35a01d,_0x343c26);for(const _0x3bbb25 of _0x1d84b3)'$graveyard'!=_0x3bbb25['root']['rootName']&&_0x573eab['unwrap'](_0x3bbb25);});});};_0x319249('insertion','accept'),_0x319249('insertion','discard'),_0x319249('deletion','accept'),_0x319249('deletion','discard'),_0x196687['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xb95485=>{const _0xd121a=_0xb95485['map'](_0xf9aa6=>_0xf9aa6['getContainedElement']()),_0xbba29c=_0xd121a[0x0]['findAncestor']('table'),{minRow:_0x5162ae,maxRow:_0x439b02}=_0x2cf775['_getCoordsForCells'](_0xd121a);_0x5c494d['removeRows'](_0xbba29c,{'at':_0x5162ae,'rows':_0x439b02-_0x5162ae+0x1});}),_0x196687['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2dc947=>{const _0x51632b=_0x2dc947['map'](_0x2b949a=>_0x2b949a['getContainedElement']()),_0x5ddb7d=_0x51632b[0x0]['findAncestor']('table'),{minColumn:_0x5ad5fa,maxColumn:_0x2ff273}=_0x2cf775['_getCoordsForCells'](_0x51632b);_0x5c494d['removeColumns'](_0x5ddb7d,{'at':_0x5ad5fa,'columns':_0x2ff273-_0x5ad5fa+0x1});});const _0x1b38b7=(_0x2f7daf,_0x99d81e)=>{if(!_0x99d81e['subType']||!_0x99d81e['subType']['startsWith']('tablePaste'))return;const _0x4286d2=_0x99d81e['attributes']['tablePasteChainId'],_0x1688d4=_0x196687['getSuggestions']()['filter'](_0x2b1a26=>_0x2b1a26['isInContent']&&_0x2b1a26['attributes']&&_0x2b1a26['attributes']['tablePasteChainId']==_0x4286d2);_0x1688d4['length']&&_0x99d81e['getAllAdjacentSuggestions']()['length']!=_0x1688d4['length']&&_0x1688d4['reduce']((_0x4f157c,_0x4d1f39)=>(_0x4f157c['next']=_0x4d1f39,_0x4d1f39['previous']=_0x4f157c,_0x4d1f39));};function _0x262ced(_0x3a7e5c,_0x37a6c5=!0x0){const {id:_0x4c8b07}=_0x196687['_splitMarkerName'](_0x3a7e5c['markerName']),_0x200956=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5a4a7b=_0x196687['activeMarkers']['includes'](_0x3a7e5c['markerName']);return _0x5a4a7b&&_0x200956['push']('ck-suggestion-marker--active'),{'classes':_0x200956,'attributes':{'data-suggestion':_0x4c8b07},'priority':_0x5a4a7b&&_0x37a6c5?0xbc2:0xbb8};}_0x196687['on']('suggestionLoaded',_0x1b38b7,{'priority':'high'}),_0x196687['on']('suggestionUnloaded',_0x1b38b7,{'priority':'high'}),_0x59b7fc['model']['document']['registerPostFixer'](()=>{let _0x27f144=!0x1;const _0x167133=Array['from'](_0x59b7fc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d1d04,data:_0x54b32c}of _0x167133){const {group:_0x4efc8e,type:_0x4a03fe,id:_0x3067fa}=_0x196687['_splitMarkerName'](_0x4d1d04);if('suggestion'!=_0x4efc8e||'deletion'!=_0x4a03fe||_0x54b32c['oldRange'])continue;if(!_0x196687['hasSuggestion'](_0x3067fa))continue;const _0x51b922=_0x196687['getSuggestion'](_0x3067fa)['getRanges'](),_0xe17297=_0x59b7fc['plugins']['get']('Users')['me'];for(const _0x40e01c of _0x196687['getSuggestions']()){if(!_0x40e01c['isInContent']||_0x40e01c['author']!=_0xe17297)continue;if('formatBlock'!=_0x40e01c['type']||'tablePasteCell'!=_0x40e01c['subType'])continue;if(_0x40e01c['getRanges']()['every'](_0x5875cf=>_0x51b922['some'](_0xc48407=>_0xc48407['containsRange'](_0x5875cf,!0x0)))){for(const _0x319242 of _0x40e01c['getAllAdjacentSuggestions']())_0x319242['isInContent']&&(_0x319242['discard'](),_0x27f144=!0x0);}}}return _0x27f144;}),_0x59b7fc['model']['document']['registerPostFixer'](_0x5e5677=>{const _0x1d0a63=_0x59b7fc['commands']['get']('redo');if(!_0x1d0a63||!_0x1d0a63['_createdBatches']['has'](_0x5e5677['batch']))return!0x1;let _0x3fb6fe=!0x1;const _0x504169=_0x59b7fc['plugins']['get']('Users')['me'],_0x429d21=_0x59b7fc['model']['document']['differ']['getChanges'](),_0x3158da=Array['from'](_0x59b7fc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x78b968,data:_0x19ddc0})=>{const {group:_0x51bf1f,subType:_0x2075ec,authorId:_0x419fb4}=_0x196687['_splitMarkerName'](_0x78b968);return'suggestion'==_0x51bf1f&&'tablePaste'==_0x2075ec&&_0x419fb4==_0x504169['id']&&!_0x19ddc0['oldRange'];});for(const _0x443769 of _0x429d21){if('insert'!=_0x443769['type']||'tableCellSuggestion'!=_0x443769['name']||0x1!=_0x443769['length'])continue;const _0xbfcf63=_0x5e5677['createRange'](_0x443769['position'],_0x443769['position']['getShiftedBy'](0x1));if(!_0x3158da['find'](({data:_0x29bc27})=>_0x29bc27['newRange']['isEqual'](_0xbfcf63))){for(const {name:_0x33a5f3,data:_0x3f2a79}of _0x3158da)if(_0xbfcf63['containsRange'](_0x3f2a79['newRange'])){_0x5e5677['updateMarker'](_0x33a5f3,{'range':_0xbfcf63}),_0x3fb6fe=!0x0;break;}}}return _0x3fb6fe;}),_0x59b7fc['model']['document']['registerPostFixer'](_0x5268aa=>{let _0xe6c14b=!0x1;const _0x29ad2a=_0x59b7fc['plugins']['get']('Users')['me'],_0x3642c5=_0x196687['getSuggestions']()['filter'](_0x5a3edc=>_0x5a3edc['isInContent']&&_0x5a3edc['author']==_0x29ad2a),_0x554758=new Set(),_0x1d6277=new Set();for(const _0x14f590 of _0x3642c5)if('tablePaste'==_0x14f590['subType'])for(const _0x461e8d of _0x14f590['getMarkers']()){const _0x860b98=_0x461e8d['getRange']()['getContainedElement']();if(_0x860b98){if(_0x860b98['is']('element','tableCellSuggestion')&&Pe(_0x860b98)){_0x14f590['removeMarker'](_0x461e8d['name']),_0x554758['add'](_0x860b98),_0xe6c14b=!0x0;const _0x219d69=_0x860b98['nextSibling'],_0x315114=_0x860b98['previousSibling'],_0x1ebda2=_0x219d69&&_0x219d69['is']('element','tableCellSuggestion'),_0x109395=_0x315114&&_0x315114['is']('element','tableCellSuggestion');_0x1ebda2&&!_0x554758['has'](_0x219d69)&&_0x1d6277['add'](_0x219d69),_0x109395&&!_0x554758['has'](_0x315114)&&_0x1d6277['add'](_0x315114);}else _0x860b98['is']('element','paragraph')&&_0x860b98['isEmpty']&&(_0x14f590['removeMarker'](_0x461e8d['name']),_0xe6c14b=!0x0);}}else{if('tablePasteCell'==_0x14f590['subType']){if(!_0x14f590['attributes']||!_0x14f590['attributes']['tablePasteChainId'])continue;const _0x1d2a34=_0x14f590['attributes']['markerAttributes'];if(_0x1d2a34&&Object['keys'](_0x1d2a34)['length'])continue;const _0x331cd0=_0x14f590['attributes']['tablePasteChainId'];let _0x4f6eaa=!0x0,_0xf30122=!0x0;for(const _0x3dcb6e of _0x3642c5)if(_0x3dcb6e['subType']&&_0x3dcb6e['subType']['startsWith']('tablePaste')){if(!_0x3dcb6e['attributes']['tablePasteChainId']){_0xf30122=!0x1;break;}if(_0x3dcb6e['id']!=_0x14f590['id']&&_0x3dcb6e['attributes']['tablePasteChainId']==_0x331cd0){_0x4f6eaa=!0x1;break;}}_0xf30122&&_0x4f6eaa&&(_0x14f590['removeMarkers'](),_0xe6c14b=!0x0);}}for(const _0x4e8662 of _0x554758)_0x5268aa['remove'](_0x4e8662);for(const _0x38d8ff of _0x1d6277)_0x5268aa['unwrap'](_0x38d8ff);return _0xe6c14b;}),_0x59b7fc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x298484,_0x1d1fca)=>_0x262ced(_0x298484),'converterPriority':'high'}),_0x59b7fc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1237db,_0x3afefc)=>_0x3afefc['options']['showSuggestionHighlights']?_0x262ced(_0x1237db,!0x1):null,'converterPriority':'high'});const _0x1f842b=_0x59b7fc['editing']['view'];this['listenTo'](_0x1f842b['document'],'clipboardOutput',(_0x24092a,_0x8a3ad1)=>{const _0x4ff165=[];for(const _0x47d87c of _0x1f842b['createRangeIn'](_0x8a3ad1['content'])['getItems']())_0x47d87c['is']('element','suggestion-td')&&_0x4ff165['push'](_0x47d87c);_0x1f842b['change'](_0x529255=>{for(const _0x4ae8c7 of _0x4ff165)_0x529255['move'](_0x529255['createRangeIn'](_0x4ae8c7),_0x529255['createPositionBefore'](_0x4ae8c7)),_0x529255['remove'](_0x4ae8c7);});});}}function Pe(_0x145085){if(_0x145085['isEmpty'])return!0x0;const _0x4f7531=_0x145085['getChild'](0x0);return _0x4f7531['is']('element','paragraph')&&_0x4f7531['isEmpty'];}function we(_0x3d4cfd,_0x2c38f6={},_0x3d7f88){for(const {isAnchor:_0x35c5c1,cellHeight:_0x1eb379,cellWidth:_0x20ab49}of _0x3d7f88['createTableWalker'](_0x3d4cfd,{'includeAllSlots':!0x0,..._0x2c38f6}))if(!_0x35c5c1||0x1!=_0x1eb379||0x1!=_0x20ab49)return!0x1;return!0x0;}class Ct extends _0x4751ae{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x21e53b=this['editor']['plugins']['get']('TrackChangesEditing');_0x21e53b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x21e53b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x21e53b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x21e53b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x21e53b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x21e53b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x448647,_0x4949af){const _0x945e6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d8fd8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x500d49=_0x4949af['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5cb5e9=_0x3d8fd8['getColumnGroupElement'](_0x500d49);let _0x2a64b5=_0x5cb5e9?_0x3d8fd8['getTableColumnsWidths'](_0x5cb5e9):null,_0x4f669c=_0x500d49['getAttribute']('tableWidth')||null;const _0x56bd44=_0x4949af['tableWidth']||_0x4f669c,_0x184db9=_0x4949af['columnWidths']||_0x2a64b5,_0x4310ff=this['editor']['plugins']['get']('Users')['me'];for(const _0x4f5886 of _0x945e6a['getSuggestions']()){const _0x2b66e6=_0x4f5886['getContainedElement']();if('resizeTable'===_0x4f5886['subType']&&_0x2b66e6===_0x500d49){_0x4f5886['author']!==_0x4310ff&&_0x4f5886['discard']();const _0x433769=_0x4f5886['data']['commandParams'];_0x4f669c=_0x433769[0x0]['tableWidth'],_0x2a64b5=_0x433769[0x0]['columnWidths'];break;}}_0x448647({'table':_0x500d49,'tableWidth':_0x56bd44,'columnWidths':_0x184db9}),_0x945e6a['markBlockFormat'](_0x500d49,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4f669c,'columnWidths':_0x2a64b5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1c9a46){if('formatBlock'!=_0x1c9a46['type']&&'formatInline'!=_0x1c9a46['type'])return;const {data:_0x567b28}=_0x1c9a46;if(_0x567b28&&'resizeTable'===_0x567b28['formatGroupId']){const _0x33ebb3='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x33ebb3)};}}}class _t extends _0x4751ae{['afterInit'](){const _0x630f05=this['editor'];_0x630f05['plugins']['has']('Template')&&_0x630f05['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Nt extends _0x4751ae{['afterInit'](){const _0x11d78e=this['editor'];if(!_0x11d78e['commands']['get']('insertTableOfContents'))return;_0x11d78e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1b85c4=_0x11d78e['plugins']['get']('TrackChangesEditing'),_0x4ad100=_0x11d78e['locale'];_0x1b85c4['descriptionFactory']['registerElementLabel']('tableOfContents',_0xbe2176=>o(_0x4ad100,'ELEMENT_TABLE_OF_CONTENTS',_0xbe2176));}}class Dt extends _0x4751ae{['afterInit'](){const _0x4d3449=this['editor'];if(!_0x4d3449['plugins']['has']('Title'))return;const _0x590bed=_0x4d3449['plugins']['get']('TrackChangesEditing');_0x590bed['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4d3449['locale'],'ELEMENT_TITLE')),_0x4d3449['model']['document']['registerPostFixer'](_0x44d28f=>{let _0x118808=!0x1;const _0x5884f2=Array['from'](_0x4d3449['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d7902,data:_0x1b6c37}of _0x5884f2){const {group:_0x2aba75}=_0x590bed['_splitMarkerName'](_0x1d7902);if('suggestion'!==_0x2aba75||!_0x1b6c37['newRange'])continue;const _0x29f116=_0x1b6c37['newRange'],_0x343c3a=_0x29f116['end']['nodeBefore'];if(!_0x343c3a||!_0x343c3a['is']('element','title-content'))continue;if(!_0x29f116['start']['isTouching'](_0x29f116['end']))continue;const _0x19df97=_0x4d3449['model']['schema']['getNearestSelectionRange'](_0x29f116['end'],'forward');if(_0x19df97&&_0x19df97['isCollapsed']){const _0x5d7fda=_0x44d28f['createRange'](_0x29f116['start'],_0x19df97['start']);_0x5d7fda['isEqual'](_0x29f116)||(_0x44d28f['updateMarker'](_0x1d7902,{'range':_0x5d7fda}),_0x118808=!0x0);}_0x118808||(_0x44d28f['removeMarker'](_0x1d7902),_0x118808=!0x0);}return _0x118808;});}}class Mt extends _0x4751ae{['afterInit'](){const _0x9c86d6=this['editor'],_0x54143f=_0x9c86d6['plugins']['get']('TrackChangesEditing');_0x9c86d6['plugins']['has']('UndoEditing')&&(_0x54143f['enableCommand']('undo'),_0x54143f['enableCommand']('redo'));}}class $t extends _0x4751ae{static get['requires'](){return[St];}['afterInit'](){const _0x3527f4=this['editor'];if(!_0x3527f4['plugins']['has']('TableCaptionEditing'))return;_0x3527f4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Bt extends _0x4751ae{['tableProperties'];['tableCellProperties'];constructor(_0x306e91){super(_0x306e91),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 _0xf88a83=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x427224 of this['tableProperties'])_0xf88a83['enableCommand'](_0x427224,(_0x7b3238,_0x285f4e)=>{const _0x51d5c1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x427224,[_0x51d5c1],this['tableProperties'],'tableProperties',_0x7b3238,_0x285f4e);});_0xf88a83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xf88a83['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf88a83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3bb884,_0x18ed1a)=>this['handleDiscardAction'](this['tableProperties'],_0x3bb884,_0x18ed1a)),_0xf88a83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1263aa of this['tableCellProperties'])_0xf88a83['enableCommand'](_0x1263aa,(_0x1295f3,_0x5c59d9)=>{const _0x33e3bb=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1263aa,_0x33e3bb,this['tableCellProperties'],'tableCellProperties',_0x1295f3,_0x5c59d9);});_0xf88a83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xf88a83['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf88a83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x139000,_0x8e2885)=>this['handleDiscardAction'](this['tableCellProperties'],_0x139000,_0x8e2885)),_0xf88a83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xf88a83['descriptionFactory']['registerDescriptionCallback'](_0x269467=>this['handleSuggestionDescription'](_0x269467));}['_handlePropertyChange'](_0x4a0ad0,_0x5e9511,_0x8b572d,_0x928435,_0x112c76,_0x1c7bdd){const _0x16f41f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1c7bdd['batch'],()=>{for(const _0x815448 of _0x5e9511){if(this['_getSuggestion'](_0x815448,_0x928435))_0x112c76(_0x1c7bdd);else{const _0x413010={};for(const _0x90e9ba of _0x8b572d){const _0xe06be=_0x815448['getAttribute'](_0x90e9ba);void 0x0!==_0xe06be&&(_0x413010[_0x90e9ba]=_0xe06be);}_0x112c76(_0x1c7bdd),_0x16f41f['markBlockFormat'](_0x815448,{'commandParams':[_0x413010]},[],_0x928435);}}});}['handleDiscardAction'](_0x55ffc2,_0x3d5146,_0xfd7d2){const _0x10f69e=_0x3d5146[0x0]['start']['nodeAfter'],_0x30cdf1=_0xfd7d2['commandParams'][0x0];this['editor']['model']['change'](_0x1474ee=>{for(const _0x17c3b0 of _0x55ffc2)void 0x0!==_0x30cdf1[_0x17c3b0]?_0x1474ee['setAttribute'](_0x17c3b0,_0x30cdf1[_0x17c3b0],_0x10f69e):_0x1474ee['removeAttribute'](_0x17c3b0,_0x10f69e);});}['handleSuggestionDescription'](_0x1522b3){if(_0x1522b3['data'])switch(_0x1522b3['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'](_0x273baa,_0x4eec8f){const _0x569596=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x457122 of _0x569596['getSuggestions']({'skipNotAttached':!0x0})){const _0x420551=_0x457122['getContainedElement']();if(_0x457122['subType']===_0x4eec8f&&_0x420551===_0x273baa)return _0x457122;}return null;}}const m='$elementName';class p extends _0x4751ae{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5c5163,_0x514b10,E,O,V,U,F,G,L,H,J,K,W,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,z,mt,ct,q,pe,ft,gt,lt,dt,pt,kt,bt,wt,yt,jt,St,At,It,$t,vt,Ct,Nt,Bt,_t,Dt,Mt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x40e131){function _0x2593bd(_0x3b61a8){return _0x3b61a8['map'](_0x1bbdbf=>String['fromCharCode'](_0x1bbdbf))['join']('');}super(_0x40e131),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2e8157,_0x31c382,_0x311ec0,_0x9d6c8a)=>{this['_model']['change'](()=>{for(const _0x3cf4bd of[..._0x9d6c8a,..._0x311ec0])this['_model']['markers']['has'](_0x3cf4bd)&&_0x40e131['editing']['reconvertMarker'](_0x3cf4bd);});}),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']=_0x40e131['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(),_0x40e131['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x40e131['config']['get']('trackChanges.trackFormatChanges'),_0x40e131['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x40e131['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x40e131,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2593bd([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2593bd([0x34,0x30,0x34,0x38,0x31,0x34,0x35,0x38]);}['init'](){const _0x3a95a2=this['editor'],_0x1a74cb=(_0x1265fb,_0x30af7d)=>{if('attribute'!=_0x1265fb)return'ck-suggestion-marker-'+_0x1265fb;const _0x3409f3=_0x30af7d['split']('|')[0x0];return this['_isBlockAttribute'](_0x3409f3)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3a95a2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x547acb=>{const {id:_0x57f427,type:_0x589e6e,subType:_0x398c84}=this['_splitMarkerName'](_0x547acb['markerName']),_0x1905fd=['ck-suggestion-marker',_0x1a74cb(_0x589e6e,_0x398c84)];let _0x477982=0xbb8;return this['activeMarkers']['includes'](_0x547acb['markerName'])&&(_0x1905fd['push']('ck-suggestion-marker--active'),_0x477982=0xbc2),'deletion'==_0x589e6e&&(_0x477982+=0x5),{'classes':_0x1905fd,'attributes':{'data-suggestion':_0x57f427},'priority':_0x477982};}}),_0x3a95a2['conversion']['for']('dataDowncast')['add'](_0x38c2ce=>{_0x38c2ce['on']('addMarker:suggestion',(_0x2e1f6a,_0x558e6e,_0x7058d6)=>{if(!_0x7058d6['options']['showSuggestionHighlights'])return;const _0x4a92f3=_0x558e6e['item'];if(!_0x4a92f3)return;const _0x48d386=_0x7058d6['mapper']['toViewElement'](_0x4a92f3);_0x3a95a2['model']['schema']['isObject'](_0x4a92f3)&&_0x48d386&&!_0x48d386['getCustomProperty']('widget')&&_0x48d386['is']('containerElement')&&_0x9ae20e(_0x48d386,_0x7058d6['writer']);},{'priority':'high'});}),_0x3a95a2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5da437,_0x1b1b36)=>{if(!_0x1b1b36['options']['showSuggestionHighlights'])return null;const {type:_0x2c890f,subType:_0x2f8769}=this['_splitMarkerName'](_0x5da437['markerName']);return{'classes':['ck-suggestion-marker',_0x1a74cb(_0x2c890f,_0x2f8769)],'priority':0xbb8};}});const _0x50d88b=({showActiveMarkers:_0x373a3b=!0x0,isAttributeSuggestion:_0x34d7c3=!0x1}={})=>(_0x41dbcd,_0x3ac3c4,_0x5e89b1)=>{if(!_0x3ac3c4['item'])return;const {id:_0x3a54f0}=this['_splitMarkerName'](_0x3ac3c4['markerName']);if(_0x34d7c3){const _0x32d440=this['_suggestions']['get'](_0x3a54f0),_0x48e1fc=this['_getAttributeKey'](_0x32d440);if(!this['_isBlockAttribute'](_0x48e1fc))return;}if(_0x3ac3c4['item']['is']('selection'))return void _0x5e89b1['consumable']['consume'](_0x3ac3c4['item'],_0x41dbcd['name']);const _0x54c9ee=_0x5e89b1['mapper']['toViewElement'](_0x3ac3c4['item']);if(_0x3ac3c4['item']['is']('element')&&_0x3a95a2['model']['schema']['isBlock'](_0x3ac3c4['item'])&&!_0x54c9ee['getCustomProperty']('addHighlight')){_0x5e89b1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x54c9ee),_0x5e89b1['writer']['setAttribute']('data-suggestion',_0x3a54f0,_0x54c9ee),_0x5e89b1['mapper']['bindElementToMarker'](_0x54c9ee,_0x3ac3c4['markerName']),_0x373a3b&&(this['activeMarkers']['includes'](_0x3ac3c4['markerName'])?_0x5e89b1['writer']['addClass']('ck-suggestion-marker--active',_0x54c9ee):_0x5e89b1['writer']['removeClass']('ck-suggestion-marker--active',_0x54c9ee));for(const _0x380844 of _0x3a95a2['model']['createRangeIn'](_0x3ac3c4['item'])['getItems']())_0x5e89b1['consumable']['consume'](_0x380844,_0x41dbcd['name']);_0x5e89b1['consumable']['consume'](_0x3ac3c4['item'],_0x41dbcd['name']);}};_0x3a95a2['conversion']['for']('dataDowncast')['add'](_0xfd39ea=>{_0xfd39ea['on']('addMarker:suggestion:formatBlock',(_0x48aab4,_0x10f130,_0xca7765)=>{_0xca7765['options']['showSuggestionHighlights']&&_0x50d88b({'showActiveMarkers':!0x1})(_0x48aab4,_0x10f130,_0xca7765);},{'priority':'highest'});}),_0x3a95a2['conversion']['for']('dataDowncast')['add'](_0x4e6471=>{_0x4e6471['on']('addMarker:suggestion:attribute',(_0x43ec8c,_0x2071a9,_0x4233b8)=>{_0x4233b8['options']['showSuggestionHighlights']&&_0x50d88b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x43ec8c,_0x2071a9,_0x4233b8);},{'priority':'highest'});}),_0x3a95a2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xfdc68f,_0x2257be)=>_0x2257be['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xfdc68f['substr'](0xb)}}),_0x3a95a2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x259434,{writer:_0x232811})=>{let _0x499ced='suggestion:'+_0x259434['getAttribute']('suggestion-type')+':'+_0x259434['getAttribute']('id');return _0x259434['getAttribute']('marker-count')&&(_0x499ced+=':'+_0x259434['getAttribute']('marker-count')),_0x232811['createElement']('$marker',{'data-name':_0x499ced});}}),_0x3a95a2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3a95a2['conversion']['for']('editingDowncast')['add'](_0x28d8eb=>{_0x28d8eb['on']('addMarker:suggestion:formatBlock',_0x50d88b(),{'priority':'high'});}),_0x3a95a2['conversion']['for']('editingDowncast')['add'](_0x317381=>{_0x317381['on']('addMarker:suggestion:attribute',_0x50d88b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3a95a2['conversion']['for']('editingDowncast')['add'](_0x5cdc85=>{_0x5cdc85['on']('removeMarker:suggestion:formatBlock',(_0x52a22a,_0x50ed,_0x17912b)=>{const _0x8a86ff=_0x17912b['mapper']['markerNameToElements'](_0x50ed['markerName']);if(_0x8a86ff){for(const _0x4f35e5 of _0x8a86ff)_0x4f35e5['getCustomProperty']('addHighlight')||(_0x17912b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4f35e5),_0x17912b['writer']['removeAttribute']('data-suggestion',_0x4f35e5),_0x17912b['mapper']['unbindElementFromMarkerName'](_0x4f35e5,_0x50ed['markerName']));}},{'priority':'high'});}),_0x3a95a2['conversion']['for']('editingDowncast')['add'](_0x412643=>{_0x412643['on']('removeMarker:suggestion:attribute',(_0x108fb4,_0x5efd3a,_0x10a11c)=>{const _0x2f9b29=_0x10a11c['mapper']['markerNameToElements'](_0x5efd3a['markerName']);if(!_0x2f9b29)return;const {id:_0x297c09}=this['_splitMarkerName'](_0x5efd3a['markerName']),_0x320bc3=this['_suggestions']['get'](_0x297c09),_0x3deb1b=this['_getAttributeKey'](_0x320bc3);if(this['_isBlockAttribute'](_0x3deb1b)){for(const _0x168c25 of _0x2f9b29)_0x168c25['getCustomProperty']('addHighlight')||(_0x10a11c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x168c25),_0x10a11c['writer']['removeAttribute']('data-suggestion',_0x168c25),_0x10a11c['mapper']['unbindElementFromMarkerName'](_0x168c25,_0x5efd3a['markerName']));}},{'priority':'high'});}),_0x3a95a2['model']['document']['registerPostFixer'](_0x1c2dc8=>{let _0x10d84f=!0x1;const _0x453dd7=Array['from'](_0x3a95a2['model']['document']['differ']['getChangedMarkers']()),_0x3df9a7=new Set();for(const {name:_0x202a5c,data:_0x4c2e33}of _0x453dd7){const {group:_0x678e4,type:_0x3de9e6,subType:_0x21bbef,id:_0x232bcd}=this['_splitMarkerName'](_0x202a5c);if('suggestion'!==_0x678e4)continue;const _0x19d9eb=this['_suggestions']['get'](_0x232bcd);if(null!=_0x4c2e33['newRange']){'formatInline'==_0x3de9e6&&(_0x10d84f=_0x10d84f||Ot(_0x4c2e33['newRange'],_0x202a5c,_0x1c2dc8,_0x3a95a2['model']['schema']));const _0x3ad9e2='attribute'==_0x3de9e6&&this['_isBlockAttribute'](_0x21bbef['split']('|')[0x0]);if(_0x4c2e33['newRange']['isCollapsed']||'$graveyard'==_0x4c2e33['newRange']['root']['rootName']||'formatBlock'==_0x3de9e6&&!Ut(_0x4c2e33['newRange'])||_0x3ad9e2&&!Ut(_0x4c2e33['newRange'])||'deletion'==_0x3de9e6&&!(!Et(_0x22a235=_0x4c2e33['newRange'])&&!function(_0x122119){return _0x122119['start']['parent']==_0x122119['end']['nodeBefore']&&_0x122119['start']['isAtEnd'];}(_0x22a235)))_0x1c2dc8['removeMarker'](_0x202a5c),_0x10d84f=!0x0;else{if(!_0x19d9eb||!_0x19d9eb['isInContent'])continue;if(_0x4c2e33['newRange']&&_0x4c2e33['oldRange']&&_0x4c2e33['newRange']['isEqual'](_0x4c2e33['oldRange']))continue;_0x3df9a7['add'](_0x19d9eb);}}}var _0x22a235;return _0x3df9a7['size']>0x0&&(_0x10d84f=!!this['_joinWithAdjacentSuggestions'](_0x3df9a7)||_0x10d84f),_0x10d84f;}),_0x3a95a2['model']['document']['registerPostFixer'](_0x532441=>{let _0x39e29e=!0x1;for(const _0x1bdd20 of _0x3a95a2['model']['document']['differ']['getChanges']())if('insert'==_0x1bdd20['type'])for(const _0x5c5416 of this['_suggestions']['values']()){if(_0x5c5416['isMultiRange']||!_0x5c5416['isInContent'])continue;const _0x2b64ab='formatBlock'==_0x5c5416['type'],_0x3b19c7=this['_getAttributeKey'](_0x5c5416),_0x2b9371=_0x3b19c7&&this['_isBlockAttribute'](_0x3b19c7);if(!_0x2b64ab&&!_0x2b9371)continue;const _0x23d8a2=_0x5c5416['getFirstRange']();if(_0x23d8a2['start']['parent']!=_0x23d8a2['end']['parent']&&!_0x23d8a2['end']['isAtEnd']){const _0x337650=_0x3a95a2['model']['createPositionAt'](_0x23d8a2['start']['nodeAfter'],'end'),_0xfc08b4=_0x3a95a2['model']['createRange'](_0x23d8a2['start'],_0x337650);_0x532441['updateMarker'](_0x5c5416['getFirstMarker'](),{'range':_0xfc08b4}),_0x39e29e=!0x0;}}return _0x39e29e;}),_0x3a95a2['model']['document']['registerPostFixer'](_0x83fd52=>this['_processAttributeChanges'](_0x83fd52)),_0x3a95a2['model']['document']['registerPostFixer'](_0x4a4a86=>!_0x4a4a86['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4a4a86)),_0x3a95a2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3a95a2['model']['document']['on']('change:data',(_0x209680,_0x48b97b)=>{if(!_0x48b97b['isLocal']||_0x48b97b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x142234=_0x3a95a2['model']['document']['differ']['getChanges']();if(0x0==_0x142234['length'])return;const _0x333b92=[],_0x407719=_0x142234['filter'](_0x1e1abd=>'attribute'==_0x1e1abd['type']),_0x437d2b=_0x142234['filter'](_0x597d92=>'insert'==_0x597d92['type']&&'$text'!=_0x597d92['name']);for(const _0x2cecae of _0x407719)this['_isRegisteredAttribute'](_0x2cecae['attributeKey'])&&_0x333b92['push']({'key':_0x2cecae['attributeKey'],'newValue':_0x2cecae['attributeNewValue'],'oldValue':_0x2cecae['attributeOldValue'],'range':Gt(_0x2cecae['range'],_0x3a95a2['model'])});for(const _0x4ca35b of _0x437d2b){if('rename'!=_0x4ca35b['action']&&'refresh'!=_0x4ca35b['action'])continue;const _0x379a61=Ft(_0x4ca35b['position']['nodeAfter'],_0x3a95a2['model']),_0x1b2b75=_0x4ca35b['before'];'rename'==_0x4ca35b['action']&&_0x333b92['push']({'key':m,'newValue':_0x4ca35b['name'],'oldValue':_0x1b2b75['name'],'range':_0x379a61});for(const [_0xc0b829,_0x1e23e6]of _0x1b2b75['attributes']){if(!this['_isRegisteredAttribute'](_0xc0b829))continue;const _0x583624=_0x4ca35b['attributes']['get'](_0xc0b829);_0x1e23e6!==_0x583624&&_0x333b92['push']({'key':_0xc0b829,'newValue':_0x583624,'oldValue':_0x1e23e6,'range':_0x379a61});}for(const [_0xec2aca,_0xcbfc49]of _0x4ca35b['attributes'])this['_isRegisteredAttribute'](_0xec2aca)&&(_0x1b2b75['attributes']['has'](_0xec2aca)||_0x333b92['push']({'key':_0xec2aca,'newValue':_0xcbfc49,'oldValue':null,'range':_0x379a61}));}0x0!=_0x333b92['length']&&_0x3a95a2['model']['enqueueChange'](_0x48b97b,_0x3802b4=>{const _0x5c1d00=_0x3bcbe6();for(const {range:_0xae6c63,key:_0x114383,oldValue:_0x52b863,newValue:_0x1d3dd4}of _0x333b92)this['markAttributeChange'](_0xae6c63,_0x114383,_0x52b863,_0x1d3dd4,{'groupId':_0x5c1d00});this['_reduceExistingSuggestions'](_0x3802b4,_0x333b92);});},{'priority':'lowest'}),_0x3a95a2['model']['markers']['on']('update:suggestion',(_0x36f70a,_0x2306c0,_0x4021c2)=>{if(null==_0x4021c2){const {id:_0xd51dc}=this['_splitMarkerName'](_0x2306c0['name']),_0x32e6be=this['_suggestions']['get'](_0xd51dc);_0x32e6be&&_0x32e6be['addMarkerName'](_0x2306c0['name']);}}),_0x3a95a2['model']['document']['on']('change:data',()=>{const _0x51a419=Array['from'](_0x3a95a2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x24cb98=>'suggestion'===this['_splitMarkerName'](_0x24cb98['name'])['group']);if(0x0===_0x51a419['length'])return;_0x51a419['sort']((_0xeafaf1,_0x392f9f)=>{const _0x317aa5=_0xeafaf1['data']['oldRange'],_0x3f8339=_0x392f9f['data']['oldRange'];return null===_0x317aa5&&null===_0x3f8339?0x0:null===_0x317aa5&&null!==_0x3f8339?-0x1:null!==_0x317aa5&&null===_0x3f8339?0x1:_0x317aa5['start']['isBefore'](_0x3f8339['start'])?-0x1:0x1;});const _0x33377c=new Set(),_0x1027c5=new Set();for(const {name:_0x3bb923,data:_0x499c1c}of _0x51a419){const {id:_0x1c0ecb}=this['_splitMarkerName'](_0x3bb923);if(null===_0x499c1c['oldRange']){const _0x1ff25d=this['_handleNewSuggestionMarker'](_0x3bb923);_0x1027c5['add'](_0x1ff25d);}else{const _0x49a2e9=this['_suggestions']['get'](_0x1c0ecb);null!==_0x499c1c['newRange']||_0x49a2e9['isInContent']?(_0x33377c['add'](_0x49a2e9['head']),_0x1027c5['add'](_0x49a2e9)):this['_removeSuggestion'](_0x49a2e9);}}_0x1027c5['size']>0x0&&this['_refreshSuggestionsChain'](_0x1027c5);for(const _0x51d331 of _0x33377c)this['fire']('suggestionChanged',_0x51d331);}),_0x3a95a2['model']['on']('applyOperation',(_0x409ec5,_0x213f62)=>{const _0x394a26=_0x213f62[0x0];if(!this['_suggestions']['size'])return;if(!_0x394a26['isDocumentOperation'])return;if(_0x394a26['batch']['isUndo']||!_0x394a26['batch']['isLocal'])return;let _0x385151,_0x622bf5;switch(_0x394a26['type']){case'insert':_0x385151=_0x3a95a2['model']['createPositionAt'](_0x394a26['position']),_0x622bf5=_0x385151['getShiftedBy'](_0x394a26['howMany']);break;case'split':_0x385151=_0x3a95a2['model']['createPositionAt'](_0x394a26['splitPosition']),_0x622bf5=_0x3a95a2['model']['createPositionAt'](_0x394a26['moveTargetPosition']);break;case'move':_0x385151=_0x3a95a2['model']['createPositionAt'](_0x394a26['targetPosition']),_0x622bf5=_0x385151['getShiftedBy'](_0x394a26['howMany']);break;default:return;}const _0x4bb960=_0x3a95a2['model']['createRange'](_0x385151,_0x622bf5);_0x3a95a2['model']['change'](()=>{for(const {suggestion:_0x1580b3,meta:_0x204305}of this['_findSuggestions'](_0x4bb960)){if(_0x1580b3['isMultiRange'])continue;if('formatInline'==_0x1580b3['type'])continue;const _0x1267e5=this['_getAttributeKey'](_0x1580b3);if(_0x1267e5&&this['_isBlockAttribute'](_0x1267e5)&&'split'!=_0x394a26['type'])continue;const _0x4eb19b=_0x1580b3['data']&&_0x1580b3['data']['multipleBlocks'];('formatBlock'!=_0x1580b3['type']||'split'==_0x394a26['type']&&!_0x4eb19b)&&(_0x204305['containsRangeInObject']||'insertion'==_0x1580b3['type']&&_0x204305['isOwn']||_0x1580b3['getFirstRange']()['containsRange'](_0x4bb960)&&this['_breakSuggestionMarker'](_0x1580b3,_0x385151,_0x622bf5));}});},{'priority':'lowest'}),_0x3a95a2['model']['on']('deleteContent',(_0x3efdd5,_0x57ebda)=>{const _0x42a204=_0x57ebda[0x0],_0x5f3bef=_0x57ebda[0x1];if(_0x5f3bef&&_0x5f3bef['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x42a204['isCollapsed'])return;const _0x467b11=_0x3a95a2['model']['schema'],{start:_0x14c007,end:_0xfdf1f5}=_0x42a204['getFirstRange'](),_0x2bb218=_0x14c007['nodeAfter']&&_0x467b11['isLimit'](_0x14c007['nodeAfter'])?null:_0x467b11['getNearestSelectionRange'](_0x14c007,'forward'),_0x9b0412=_0xfdf1f5['nodeBefore']&&_0x467b11['isLimit'](_0xfdf1f5['nodeBefore'])?null:_0x467b11['getNearestSelectionRange'](_0xfdf1f5,'backward'),_0x5c6586=_0x3a95a2['model']['createRange'](_0x2bb218?_0x2bb218['start']:_0x14c007,_0x9b0412?_0x9b0412['end']:_0xfdf1f5);_0x3a95a2['model']['change'](_0x2e1d50=>{this['markDeletion'](_0x5c6586);const _0x1fada1=_0x3a95a2['model']['schema']['getNearestSelectionRange'](_0x5c6586['start']);_0x42a204['is']('documentSelection')?_0x2e1d50['setSelection'](_0x1fada1):_0x42a204['setTo'](_0x1fada1);}),_0x3efdd5['stop']();},{'priority':_0x3efeb5['normal']+0xa}),_0x3a95a2['model']['on']('insertContent',(_0x260fff,_0x6dff96)=>{const _0x133706=_0x6dff96[_0x6dff96['length']-0x1];_0x133706&&_0x133706['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3a95a2['model']['change'](()=>{let _0x183b88=_0x3a95a2['model']['insertContent'](_0x6dff96[0x0],_0x6dff96[0x1],_0x6dff96[0x2],{'forceDefaultExecution':!0x0});if(!_0x183b88)return;_0x260fff['return']=_0x183b88['clone']();const _0x4876d9=_0x183b88['end']['nodeBefore'],_0x2658e2=_0x3a95a2['model']['schema'];_0x4876d9&&_0x2658e2['isBlock'](_0x4876d9)&&!_0x2658e2['isObject'](_0x4876d9)&&(_0x183b88=_0x3a95a2['model']['createRange'](_0x183b88['start'],_0x3a95a2['model']['createPositionAt'](_0x4876d9,'end'))),this['markInsertion'](_0x183b88);}),_0x260fff['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5bf8de=new $(_0x3a95a2,this['_suggestions']);_0x3a95a2['commands']['add']('acceptSuggestion',_0x5bf8de),this['enableCommand']('acceptSuggestion');const _0x1bd0c9=new B(_0x3a95a2,this['_suggestions']);_0x3a95a2['commands']['add']('discardSuggestion',_0x1bd0c9),this['enableCommand']('discardSuggestion'),_0x3a95a2['commands']['add']('acceptAllSuggestions',new x(_0x3a95a2,_0x5bf8de,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3a95a2['commands']['add']('discardAllSuggestions',new x(_0x3a95a2,_0x1bd0c9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3a95a2['commands']['add']('acceptSelectedSuggestions',new R(_0x3a95a2,_0x5bf8de,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3a95a2['commands']['add']('discardSelectedSuggestions',new R(_0x3a95a2,_0x1bd0c9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x844cd5=_0x3a95a2['plugins']['get']('CommentsRepository');this['listenTo'](_0x844cd5,'addComment',(_0xc7f944,{threadId:_0x326b1e})=>{const _0x45ce30=this['_suggestions']['get'](_0x326b1e);_0x45ce30&&_0x45ce30['commentThread']&&0x1===_0x45ce30['commentThread']['length']&&this['_updateSuggestionData'](_0x326b1e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x844cd5,'removeComment',(_0x47982c,{threadId:_0x231882})=>{const _0x296181=this['_suggestions']['get'](_0x231882);_0x296181&&_0x296181['commentThread']&&!_0x296181['commentThread']['length']&&this['_updateSuggestionData'](_0x231882,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0xedc2bb){if(this['_adapter'])throw new _0x3e1be4('track-changes-adapter-already-set',this);this['_adapter']=_0xedc2bb;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x25fe09=!0x1,toJSON:_0x42911e=!0x1}={}){const _0x20f1a8=[];for(const _0x3710b2 of this['_suggestions']['values']())_0x25fe09&&!_0x3710b2['isInContent']||_0x20f1a8['push'](_0x3710b2);return _0x42911e?_0x20f1a8['map'](_0x1bbacd=>_0x1bbacd['toJSON']()):_0x20f1a8;}['getSuggestion'](_0x136981){const _0x20c3d7=this['_suggestions']['get'](_0x136981);if(!_0x20c3d7)throw new _0x3e1be4('track-changes-suggestion-not-found',this);return _0x20c3d7;}['hasSuggestion'](_0xa0f36b){return this['_suggestions']['has'](_0xa0f36b);}['addSuggestionData'](_0x4f0cac){const {authorId:_0x30fbb7,id:_0x3eac57,attributes:_0x37d220}=_0x4f0cac,[_0x247f34,_0x49fca2]=_0x4f0cac['type']['split'](':'),_0x44b59b=this['_suggestions']['get'](_0x3eac57)||this['_createSuggestion'](_0x247f34,_0x49fca2,_0x3eac57,_0x30fbb7,_0x37d220);if(this['_addThreadToSuggestion'](_0x44b59b),this['_checkSuggestionCorrectness'](_0x44b59b,_0x247f34,_0x49fca2||null,_0x30fbb7),_0x44b59b['createdAt']=_0x4f0cac['createdAt'],_0x44b59b['_isDataLoaded']=!0x0,_0x37d220&&_0x37d220['@external']){const _0xe4e734=_0x37d220['@external'],_0x415fc6=this['_getExternalAuthor'](_0xe4e734['authorName']);_0x44b59b['authoredAt']=_0xe4e734['createdAt'],_0x44b59b['author']=_0x415fc6,_0x44b59b['isExternal']=!0x0;}else _0x44b59b['authoredAt']=_0x4f0cac['createdAt'];switch(_0x4f0cac['data']&&(_0x44b59b['data']=_0x4f0cac['data']),_0x4f0cac['attributes']&&(_0x44b59b['attributes']=_0x4f0cac['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x44b59b['_saved']=!0x0),this['_suggestionState']['get'](_0x44b59b)){case'notReady':this['_suggestionState']['set'](_0x44b59b,'dataReady');break;case'markerReady':_0x44b59b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x44b59b])),this['_refreshSuggestionsChain'](new Set([_0x44b59b])),this['_suggestionState']['set'](_0x44b59b,'ready'),this['fire']('suggestionLoaded',_0x44b59b)):this['_suggestionState']['set'](_0x44b59b,'removed');}return _0x44b59b;}['acceptSuggestion'](_0x1cd6ea){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x36207e of _0x1cd6ea['getAllAdjacentSuggestions']())_0x36207e['accept']();});});}['discardSuggestion'](_0x8effe){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x52c766 of _0x8effe['getAllAdjacentSuggestions']())_0x52c766['discard']();});});}['enableCommand'](_0x5db311,_0x59942f){const _0x57faaf=this['editor']['commands']['get'](_0x5db311);if(!_0x57faaf)throw new _0x3e1be4('track-changes-command-not-found',this,{'commandName':_0x5db311});if(this['_enabledCommands']['has'](_0x57faaf))throw new _0x3e1be4('track-changes-enable-command-twice',this,{'commandName':_0x5db311});this['_enabledCommands']['add'](_0x57faaf),_0x59942f&&_0x57faaf['on']('execute',(_0x36d7cd,_0x4dc7c3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4dc7c3['length']>0x0&&_0x4dc7c3[_0x4dc7c3['length']-0x1]&&_0x4dc7c3[_0x4dc7c3['length']-0x1]['forceDefaultExecution']?_0x4dc7c3['pop']():(_0x36d7cd['return']=_0x59942f((..._0x218ada)=>_0x57faaf['execute'](..._0x218ada,{'forceDefaultExecution':!0x0}),..._0x4dc7c3),_0x36d7cd['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4fd2a8){let _0x1db18d,_0x3325ef;const _0x3d6b12=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1db18d=_0x4fd2a8();}catch(_0x433183){_0x3325ef=_0x433183;}return _0x3d6b12||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3325ef&&_0x3e1be4['rethrowUnexpectedError'](_0x3325ef,this),_0x1db18d;}['markInsertion'](_0x5a6fa5,_0x438f25=null,_0x22b584={}){if(_0x5a6fa5['isCollapsed'])return null;const _0x2f22a9=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4ce718,meta:_0x2806ed}of this['_findSuggestions'](_0x5a6fa5,'insertion'))if(_0x2806ed['isOwn']){if(!_0x2806ed['isNextTo']){if(_0x2806ed['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ht(_0x4ce718,_0x22b584))continue;return _0x4ce718;}if(Ht(_0x4ce718,_0x22b584))return _0x4ce718;this['_breakSuggestionMarker'](_0x4ce718,_0x5a6fa5['start'],_0x5a6fa5['end']);break;}if(_0x438f25==_0x4ce718['subType']&&Ht(_0x4ce718,_0x22b584)){const _0x4e2d8c=_0x4ce718['getFirstRange']();return _0x4e2d8c['start']['isEqual'](_0x5a6fa5['end'])?this['_setSuggestionRange'](_0x4ce718,this['_model']['createRange'](_0x5a6fa5['start'],_0x4e2d8c['end'])):this['_setSuggestionRange'](_0x4ce718,this['_model']['createRange'](_0x4e2d8c['start'],_0x5a6fa5['end'])),_0x4ce718;}}const _0x5312cb=_0x3bcbe6(),_0x4ccf44=_0x2f22a9['id'],_0x5c42ba=_0x438f25?'insertion:'+_0x438f25:'insertion',_0x182486=this['_setSuggestionData']({'id':_0x5312cb,'type':_0x5c42ba,'createdAt':new Date(),'authorId':_0x4ccf44,'attributes':_0x22b584});return this['_addSuggestionMarker'](_0x5c42ba,_0x5312cb,_0x4ccf44,_0x5a6fa5),_0x182486;}['markMultiRangeInsertion'](_0x5b5155,_0x351460='multi',_0x388483={}){const _0x21ea7c=this['editor']['plugins']['get']('Users')['me'],_0x36c052=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x351460,'join');for(const _0x486913 of this['getSuggestions']())if(_0x486913['author']['id']==_0x21ea7c['id']&&'insertion'==_0x486913['type']&&_0x486913['subType']==_0x351460&&Ht(_0x486913,_0x388483)&&(_0x36c052(_0x486913['getRanges'](),_0x5b5155)||_0x36c052(_0x5b5155,_0x486913['getRanges']()))){for(const _0x10b5d7 of _0x5b5155)_0x486913['addRange'](_0x10b5d7);return _0x486913;}for(const {suggestion:_0x1b33a5,meta:_0x33fab4}of this['_findSuggestions'](_0x5b5155,'insertion')){if(!_0x33fab4['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x33fab4['containsRangeInObject'])continue;if(!Ht(_0x1b33a5,_0x388483))continue;let _0x3e9b55=!0x0;for(const _0x4e9f55 of _0x1b33a5['getRanges']())for(const _0x3cc9cd of _0x5b5155)if(!_0x4e9f55['containsRange'](_0x3cc9cd)){_0x3e9b55=!0x1;break;}if(_0x3e9b55)return _0x1b33a5;}const _0x30e0c2=_0x3bcbe6(),_0xf59cf5=_0x21ea7c['id'],_0x490ea7='insertion:'+_0x351460,_0x4ed9fb=this['_setSuggestionData']({'id':_0x30e0c2,'type':_0x490ea7,'createdAt':new Date(),'authorId':_0xf59cf5,'attributes':_0x388483});for(const _0x4055dd of _0x5b5155)this['_addSuggestionMarker'](_0x490ea7,_0x30e0c2,_0xf59cf5,_0x4055dd,u['getMultiRangeId']());return _0x4ed9fb;}['markInlineFormat'](_0xa58db5,_0x1f3d84,_0x13d443=null,_0x2ae6e9={}){if(_0x13d443=_0x13d443||Vt(_0x1f3d84),_0xa58db5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2534fd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13d443,'accept');return this['forceDefaultExecution'](()=>_0x2534fd([_0xa58db5],_0x1f3d84,_0x2ae6e9)),null;}const _0x270af1=this['editor']['plugins']['get']('Users')['me'],_0x3287da=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1406b0,meta:_0x22d142}of this['_findSuggestions'](_0xa58db5,'insertion'))_0x22d142['isOwn']&&!_0x22d142['isInsideObject']&&_0x3287da['push'](..._0x1406b0['getRanges']());}const _0x586621=function(_0x57ed61,_0x30fd2e){const _0x228751=[];for(const _0x42055b of _0x30fd2e){const _0x279e9c=_0x57ed61['getIntersection'](_0x42055b);_0x279e9c&&_0x228751['push'](_0x279e9c);}return _0x228751;}(_0xa58db5,_0x3287da),_0x3b7b74=function(_0x54159c,_0x24cdd2){const _0x45d683=[_0x54159c];for(const _0x371e62 of _0x24cdd2){let _0x518f74=0x0;for(;_0x518f74<_0x45d683['length'];){const _0x59d156=_0x45d683[_0x518f74]['getDifference'](_0x371e62);_0x45d683['splice'](_0x518f74,0x1,..._0x59d156),_0x518f74+=_0x59d156['length'];}}return _0x45d683;}(_0xa58db5,_0x3287da);_0x586621['length']&&this['_model']['change'](()=>{for(const _0x106a19 of _0x586621){const _0x404b7f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13d443,'accept');this['forceDefaultExecution'](()=>_0x404b7f([_0x106a19],_0x1f3d84,_0x2ae6e9));}});for(const _0xca6894 of _0x3b7b74){let _0x1552e4=null,_0x1ea5c3=_0xca6894['start'],_0x40d3dd=_0xca6894['end'];for(const {suggestion:_0x3799b9,meta:_0x2dec99}of this['_findSuggestions'](_0xca6894,'formatInline')){if(!_0x2dec99['isOwn'])continue;if(_0x3799b9['subType']!=_0x13d443)continue;if(!Ht(_0x3799b9,_0x2ae6e9))continue;const _0x2015e1=_0x3799b9['getFirstRange']();if(_0x2015e1['containsRange'](_0xca6894,!0x0))return null;_0x1ea5c3=_0x1ea5c3['isBefore'](_0x2015e1['start'])?_0x1ea5c3:_0x2015e1['start'],_0x40d3dd=_0x40d3dd['isAfter'](_0x2015e1['end'])?_0x40d3dd:_0x2015e1['end'],_0x1552e4?_0x2015e1['start']['isBefore'](_0x1552e4['getFirstRange']()['start'])?(_0x1552e4['removeMarkers'](),_0x1552e4=_0x3799b9):_0x3799b9['removeMarkers']():_0x1552e4=_0x3799b9;}const _0xde13fa=this['_model']['createRange'](_0x1ea5c3,_0x40d3dd);if(_0x1552e4)this['_setSuggestionRange'](_0x1552e4,_0xde13fa);else{const _0x59a70c=_0x3bcbe6(),_0x5b9951=_0x270af1['id'];this['_setSuggestionData']({'id':_0x59a70c,'type':'formatInline:'+_0x13d443,'data':_0x1f3d84,'createdAt':new Date(),'authorId':_0x5b9951,'attributes':_0x2ae6e9}),this['_addSuggestionMarker']('formatInline:'+_0x13d443,_0x59a70c,_0x5b9951,_0xde13fa);}}return null;}['markBlockFormat'](_0x3c6037,_0x35236e,_0x4c3c29=[],_0x2fcdfc=null,_0x48d722={}){_0x35236e['formatGroupId']||(_0x35236e['formatGroupId']=_0x35236e['commandName']),_0x35236e['multipleBlocks']=_0x3c6037['is']('range'),_0x2fcdfc=_0x2fcdfc||Vt(_0x35236e);const _0xaac287=_0x4c3c29['map'](_0x10f79b=>Ft(_0x10f79b,this['_model'])),_0x41dcd7=_0x3c6037['is']('range')?_0x3c6037:Ft(_0x3c6037,this['_model']);if('never'===this['_trackFormatChanges']){const _0x45e2af=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2fcdfc,'accept');return this['forceDefaultExecution'](()=>_0x45e2af([_0x41dcd7],_0x35236e,_0x48d722)),null;}_0xaac287['push'](_0x41dcd7);let _0x16d9a7=!0x0;for(const _0x22193c of _0xaac287)if(!this['_rangeIsInLocalUserInsertion'](_0x22193c)){_0x16d9a7=!0x1;break;}if(_0x16d9a7&&'always'!==this['_trackFormatChanges']){const _0x38bb39=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2fcdfc,'accept');return this['forceDefaultExecution'](()=>_0x38bb39([_0x41dcd7],_0x35236e,_0x48d722)),null;}let _0x3dd258=null,_0x27181c=_0x41dcd7['start'],_0x4f2319=_0x41dcd7['end'];for(const {suggestion:_0x4f72df,meta:_0x47fc89}of this['_findSuggestions'](_0x41dcd7,'formatBlock')){if(!_0x47fc89['isOwn'])continue;if(_0x47fc89['isNextTo']||_0x47fc89['containsRangeInObject']||_0x47fc89['isInsideObject'])continue;if(_0x4f72df['data']['formatGroupId']!=_0x35236e['formatGroupId'])continue;if(!Ht(_0x4f72df,_0x48d722))continue;const _0x4a9610=_0x4f72df['getFirstRange']();if(_0x4f72df['subType']==_0x2fcdfc){if(_0x4a9610['containsRange'](_0x41dcd7,!0x0))return null;_0x27181c=_0x27181c['isBefore'](_0x4a9610['start'])?_0x27181c:_0x4a9610['start'],_0x4f2319=_0x4f2319['isAfter'](_0x4a9610['end'])?_0x4f2319:_0x4a9610['end'],_0x3dd258?_0x4a9610['start']['isBefore'](_0x3dd258['getFirstRange']()['start'])?(_0x3dd258['removeMarkers'](),_0x3dd258=_0x4f72df):_0x4f72df['removeMarkers']():_0x3dd258=_0x4f72df;}else{const _0x409c75=_0x41dcd7['getIntersection'](_0x4a9610);this['_cutOutSuggestionMarker'](_0x4f72df,_0x409c75);}}const _0x5a5a91=this['editor']['plugins']['get']('Users')['me'],_0x23e440=_0x3bcbe6(),_0x5d8b1d=_0x5a5a91['id'];if(_0x3dd258)return this['_setSuggestionRange'](_0x3dd258,this['_model']['createRange'](_0x27181c,_0x4f2319)),_0x3dd258;{const _0xc3aa7e=this['_setSuggestionData']({'id':_0x23e440,'type':'formatBlock:'+_0x2fcdfc,'data':_0x35236e,'createdAt':new Date(),'authorId':_0x5d8b1d,'attributes':_0x48d722});return this['_addSuggestionMarker']('formatBlock:'+_0x2fcdfc,_0x23e440,_0x5d8b1d,this['_model']['createRange'](_0x27181c,_0x4f2319)),_0xc3aa7e;}}['markMultiRangeBlockFormat'](_0x4c3bab,_0x1218d3,_0x5381c5=[],_0xb2b3a6=null,_0x2246e9={}){_0x1218d3['formatGroupId']||(_0x1218d3['formatGroupId']=_0x1218d3['commandName']);const _0x3432a3=_0x4c3bab[0x0];_0x1218d3['multipleBlocks']=_0x3432a3['is']('range'),_0xb2b3a6=_0xb2b3a6||Vt(_0x1218d3);const _0x2976ed=_0x5381c5['map'](_0x35fee7=>Ft(_0x35fee7,this['_model'])),_0x5750ce=_0x3432a3['is']('range')?_0x4c3bab:_0x4c3bab['map'](_0xf4caac=>Ft(_0xf4caac,this['_model']));if('never'===this['_trackFormatChanges']){const _0x9d27a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb2b3a6,'accept');return this['forceDefaultExecution'](()=>_0x9d27a7(_0x5750ce,_0x1218d3,_0x2246e9)),null;}_0x2976ed['push'](..._0x5750ce);let _0x4d6d99=!0x0;for(const _0x448eee of _0x2976ed)if(!this['_rangeIsInLocalUserInsertion'](_0x448eee)){_0x4d6d99=!0x1;break;}if(_0x4d6d99&&'always'!==this['_trackFormatChanges']){const _0x353574=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb2b3a6,'accept');return this['forceDefaultExecution'](()=>_0x353574(_0x5750ce,_0x1218d3,_0x2246e9)),null;}const _0x507075=this['editor']['plugins']['get']('Users')['me'];for(const _0x22d833 of this['getSuggestions']()){if(_0x22d833['author']['id']!=_0x507075['id'])continue;if('formatBlock'!=_0x22d833['type']||_0x22d833['data']['formatGroupId']!=_0x1218d3['formatGroupId'])continue;if(!Ht(_0x22d833,_0x2246e9))continue;const _0x20762a=_0x22d833['subType']==_0xb2b3a6;for(let _0x53e635=0x0;_0x53e635<_0x5750ce['length'];_0x53e635++){const _0x138ab4=_0x5750ce[_0x53e635];for(const _0x3a226c of _0x22d833['getMarkers']()){const _0x576b9e=_0x3a226c['getRange']();if(_0x138ab4['isEqual'](_0x576b9e)){_0x20762a?(_0x5750ce['splice'](_0x53e635,0x1),_0x53e635--):_0x22d833['removeMarker'](_0x3a226c['name']);break;}}}}if(0x0==_0x5750ce['length'])return null;const _0x324a92=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb2b3a6,'join');for(const _0x10172f of this['getSuggestions']())if(_0x10172f['author']['id']==_0x507075['id']&&'formatBlock'==_0x10172f['type']&&_0x10172f['data']['formatGroupId']==_0x1218d3['formatGroupId']&&_0x10172f['subType']==_0xb2b3a6&&Ht(_0x10172f,_0x2246e9)&&(_0x324a92(_0x10172f['getRanges'](),_0x5750ce)||_0x324a92(_0x5750ce,_0x10172f['getRanges']()))){for(const _0x295d06 of _0x5750ce)_0x10172f['addRange'](_0x295d06);return _0x10172f;}const _0x53fe79=_0x3bcbe6(),_0x421412=_0x507075['id'],_0xff12f2='formatBlock:'+_0xb2b3a6,_0x3720fa=this['_setSuggestionData']({'id':_0x53fe79,'type':_0xff12f2,'data':_0x1218d3,'createdAt':new Date(),'authorId':_0x421412,'attributes':_0x2246e9});for(const _0x25e5e6 of _0x5750ce)this['_addSuggestionMarker'](_0xff12f2,_0x53fe79,_0x421412,_0x25e5e6,u['getMultiRangeId']());return _0x3720fa;}['markDeletion'](_0x2f745f,_0x47dae4=null,_0x27b3db={}){if(_0x2f745f['isCollapsed'])return null;const _0x2a9e2e=this['editor']['plugins']['get']('Users')['me'],_0x2e1e1c=new _0x8f1c09(_0x2f745f['start'],_0x2f745f['end']);for(const {suggestion:_0x30b1db,meta:_0x5270af}of this['_findSuggestions'](_0x2e1e1c,'insertion'))if(_0x5270af['isOwn']&&!_0x5270af['isNextTo']){if(_0x30b1db['isMultiRange']){const _0x421f69=_0x30b1db['getRanges']()['filter'](_0x21e7eb=>'$graveyard'!=_0x21e7eb['root']['rootName']);_0x421f69['every'](_0x4f1513=>_0x2e1e1c['containsRange'](_0x4f1513,!0x0))&&_0x30b1db['discard']();if(_0x421f69['some'](_0x540d5=>_0x540d5['containsRange'](_0x2e1e1c,!0x0))){const _0x2f795d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47dae4,'accept');return this['forceDefaultExecution'](()=>_0x2f795d([_0x2e1e1c],null,_0x27b3db)),null;}}else{const _0x389fe9=_0x2e1e1c['getIntersection'](_0x30b1db['getFirstRange']());null!==_0x389fe9&&_0x30b1db['_onDiscard']([_0x389fe9],null,_0x27b3db);}}if(_0x2e1e1c['detach'](),_0x2e1e1c['isCollapsed']||'$graveyard'==_0x2e1e1c['root']['rootName'])return null;let _0x2d1ab3=null,_0x321d0c=_0x2e1e1c['start'],_0x222861=_0x2e1e1c['end'];const _0xc410e5=this['_findSuggestions'](_0x2e1e1c,'deletion');for(const {suggestion:_0xcbdbec,meta:_0x47086b}of _0xc410e5){const _0x485954=this['_model']['createRange'](_0x321d0c,_0x222861);if(_0x47086b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x47086b['containsRangeInObject']&&!_0x47086b['isInsideObject'])){if(_0xcbdbec['isMultiRange']){if(!Ht(_0xcbdbec,_0x27b3db))continue;let _0x18198d=!0x0;for(const _0x241714 of _0xcbdbec['getRanges']()){if(_0x241714['containsRange'](_0x485954,!0x0))return _0xcbdbec;_0x485954['containsRange'](_0x241714)||(_0x18198d=!0x1);}_0x18198d&&_0xcbdbec['discard']();}else{const _0x39af6c=_0xcbdbec['getFirstRange']();if(_0x39af6c['containsRange'](_0x485954,!0x0))return _0xcbdbec;if(!Ht(_0xcbdbec,_0x27b3db)){_0x485954['containsRange'](_0x39af6c)?_0xcbdbec['removeMarkers']():_0x39af6c['containsPosition'](_0x321d0c)?_0x321d0c=_0x39af6c['end']:_0x39af6c['containsPosition'](_0x222861)&&(_0x222861=_0x39af6c['start']);continue;}_0x321d0c=_0x321d0c['isBefore'](_0x39af6c['start'])?_0x321d0c:_0x39af6c['start'],_0x222861=_0x222861['isAfter'](_0x39af6c['end'])?_0x222861:_0x39af6c['end'],_0x27b3db=Object['assign']({},_0xcbdbec['attributes']),_0x2d1ab3?_0x39af6c['start']['isBefore'](_0x2d1ab3['getFirstRange']()['start'])?(_0x2d1ab3['removeMarkers'](),_0x2d1ab3=_0xcbdbec):_0xcbdbec['removeMarkers']():_0x2d1ab3=_0xcbdbec;}}}if(_0x2d1ab3)return this['_setSuggestionRange'](_0x2d1ab3,this['_model']['createRange'](_0x321d0c,_0x222861)),_0x2d1ab3;{const _0x2da978=_0x3bcbe6(),_0x4d1992=this['_model']['createRange'](_0x321d0c,_0x222861),_0x9ec2bc=_0x2a9e2e['id'],_0x2a552d=_0x47dae4?'deletion:'+_0x47dae4:'deletion',_0x2f8c8f=this['_setSuggestionData']({'id':_0x2da978,'type':_0x2a552d,'createdAt':new Date(),'authorId':_0x9ec2bc,'attributes':_0x27b3db});return this['_addSuggestionMarker'](_0x2a552d,_0x2da978,_0x9ec2bc,_0x4d1992),_0x2f8c8f;}}['markMultiRangeDeletion'](_0x283ce1,_0x5f3af2='multi',_0x5ddc10={}){const _0x1d07cd=this['editor']['plugins']['get']('Users')['me'],_0x30eede=_0x283ce1['map'](_0x58d40e=>new _0x8f1c09(_0x58d40e['start'],_0x58d40e['end'])),_0x468278=new Set();for(const {suggestion:_0x1359b1,meta:_0x31688f}of this['_findSuggestions'](_0x30eede,'insertion'))_0x31688f['isOwn']&&!_0x31688f['isNextTo']&&_0x468278['add'](_0x1359b1);for(const _0x37a54d of _0x468278)if(_0x37a54d['isMultiRange']){const _0x231570=_0x37a54d['getRanges']();(!_0x37a54d['attributes']||!_0x37a54d['attributes']['skipNestingCheck'])&&(_0x231570['every'](_0x19fbf5=>_0x30eede['some'](_0x2f75e1=>_0x2f75e1['containsRange'](_0x19fbf5,!0x0)))&&_0x37a54d['discard']());if(_0x30eede['every'](_0x35ee92=>_0x231570['some'](_0x4f3f35=>_0x4f3f35['containsRange'](_0x35ee92,!0x0)))){const _0x399b74=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f3af2,'accept');return this['forceDefaultExecution'](()=>_0x399b74(_0x283ce1,null,_0x5ddc10)),null;}}else{const _0x536318=_0x37a54d['getFirstRange']();_0x30eede['some'](_0x10cf01=>_0x10cf01['containsRange'](_0x536318,!0x0))&&_0x37a54d['discard']();if(_0x30eede['every'](_0x36ba56=>_0x536318['containsRange'](_0x36ba56,!0x0))){const _0x36f7aa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f3af2,'accept');return this['forceDefaultExecution'](()=>_0x36f7aa(_0x30eede,null,_0x5ddc10)),null;}}const _0x1d932f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f3af2,'join');let _0x41b97d=null;for(const _0x4a47d0 of this['getSuggestions']())if(_0x4a47d0['author']['id']==_0x1d07cd['id']&&_0x4a47d0['isInContent']&&'deletion'==_0x4a47d0['type']&&_0x4a47d0['subType']==_0x5f3af2&&Ht(_0x4a47d0,_0x5ddc10)&&(_0x1d932f(_0x4a47d0['getRanges'](),_0x30eede)||_0x1d932f(_0x30eede,_0x4a47d0['getRanges']()))){if(_0x41b97d){if(_0x4a47d0['commentThread']&&_0x4a47d0['commentThread']['length'])continue;for(const _0x22601f of _0x4a47d0['getRanges']())_0x41b97d['isIntersectingWithRange'](_0x22601f)||_0x41b97d['addRange'](_0x22601f);_0x4a47d0['removeMarkers']();}else{_0x41b97d=_0x4a47d0;for(const _0x809cc of _0x30eede)_0x4a47d0['isIntersectingWithRange'](_0x809cc)||_0x4a47d0['addRange'](_0x809cc);}}if(_0x41b97d)return _0x41b97d;_0x468278['clear']();for(const {suggestion:_0x3b3ba5,meta:_0x4adffb}of this['_findSuggestions'](_0x30eede,'deletion'))_0x4adffb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4adffb['containsRangeInObject']&&!_0x4adffb['isInsideObject'])&&Ht(_0x3b3ba5,_0x5ddc10)&&_0x468278['add'](_0x3b3ba5);for(const _0x2a473b of _0x468278){const _0x57f9e5=_0x2a473b['getRanges']();if(!_0x5ddc10||!_0x5ddc10['skipNestingCheck']){if(_0x30eede['every'](_0x226206=>_0x57f9e5['some'](_0x21a574=>_0x21a574['containsRange'](_0x226206,!0x0))))return _0x2a473b;}(!_0x2a473b['attributes']||!_0x2a473b['attributes']['skipNestingCheck'])&&(_0x57f9e5['every'](_0x2e1c19=>_0x30eede['some'](_0x109dc5=>_0x109dc5['containsRange'](_0x2e1c19,!0x0)))&&_0x2a473b['discard']());}const _0x308a65=_0x3bcbe6(),_0x420d67=_0x1d07cd['id'],_0x29db47='deletion:'+_0x5f3af2,_0x26aeea=this['_setSuggestionData']({'id':_0x308a65,'type':_0x29db47,'createdAt':new Date(),'authorId':_0x420d67,'attributes':_0x5ddc10});for(const _0x132e49 of _0x30eede)_0x132e49['detach'](),_0x132e49['isCollapsed']||'$graveyard'==_0x132e49['root']['rootName']||this['_addSuggestionMarker'](_0x29db47,_0x308a65,_0x420d67,_0x132e49,u['getMultiRangeId']());return _0x26aeea;}['markAttributeChange'](_0x493554,_0x3f416b,_0x2768fa,_0xc17cfa,_0x14fa4f){if(_0x493554['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xf9cde4=this['editor']['plugins']['get']('Users')['me']['id'],_0x226848=Array['from'](this['_suggestions']['values']())['filter'](_0x6ef4ae=>'attribute'==_0x6ef4ae['type']&&_0x6ef4ae['data']['key']==_0x3f416b&&_0x6ef4ae['isIntersectingWithRange'](_0x493554));if('default'===this['_trackFormatChanges']){const _0x597c18=this['_findSuggestions'](_0x493554,'insertion')['filter'](({meta:_0x58d782})=>_0x58d782['isOwn']&&!_0x58d782['isInsideObject']&&!_0x58d782['isNextTo'])['map'](({suggestion:_0x411cc2})=>_0x411cc2);_0x226848['unshift'](..._0x597c18);}const _0x3d5f19=new Map([[_0x493554,_0x2768fa]]);for(const _0x3cbb24 of _0x226848){const _0x5e4ce7='attribute'==_0x3cbb24['type']?_0x3cbb24['data']['oldValue']:void 0x0,_0x372f9b=_0x3cbb24['getFirstRange'](),_0x39db49=Array['from'](_0x3d5f19['keys']())['find'](_0x1dcc9e=>_0x1dcc9e['isIntersecting'](_0x372f9b));if(!_0x39db49)continue;const _0x313f51=_0x39db49['getDifference'](_0x372f9b);this['_isBlockAttribute'](_0x3f416b)&&'insertion'==_0x3cbb24['type']&&0x0!=_0x313f51['length']||(_0x3d5f19['delete'](_0x39db49),_0x313f51['forEach'](_0x1f6942=>{_0x3d5f19['set'](_0x1f6942,_0x2768fa);}),'insertion'!=_0x3cbb24['type']&&_0x5e4ce7!=_0xc17cfa&&_0x3d5f19['set'](_0x39db49['getIntersection'](_0x372f9b),_0x5e4ce7));}const _0xb47d7=[];for(const [_0x3835ac,_0xd453b0]of _0x3d5f19){const _0x2f3bbc=_0x3bcbe6(),_0x5ef194={'key':_0x3f416b,'oldValue':_0xd453b0,'newValue':_0xc17cfa};_0x3f416b['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':_0x3f416b});const _0x2f4e6b=('attribute:'+(_0x3f416b+'|'+Vt({'newValue':_0xc17cfa})))['substring'](0x0,0x3c),_0xde5c8b=this['_setSuggestionData']({'id':_0x2f3bbc,'type':_0x2f4e6b,'data':_0x5ef194,'createdAt':new Date(),'authorId':_0xf9cde4,'attributes':_0x14fa4f});_0xb47d7['push'](_0xde5c8b),this['_addSuggestionMarker'](_0x2f4e6b,_0x2f3bbc,_0xf9cde4,_0x3835ac);}return _0xb47d7;}['enableDefaultAttributesIntegration'](_0x5b5c20){this['enableCommand'](_0x5b5c20,(_0x41aa55,..._0x3f9608)=>{this['_recordAttributeChanges'](()=>{_0x41aa55(..._0x3f9608);});});}['registerBlockAttribute'](_0x4b2bcc){this['_blockAttributeKeys']['add'](_0x4b2bcc);}['registerInlineAttribute'](_0x43d738){this['_inlineAttributeKeys']['add'](_0x43d738);}['_getAttributeKey'](_0x2631c1){return'attribute'==_0x2631c1['type']?_0x2631c1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2578aa,_0x444a44){const _0x548485=_0x2578aa['getFirstMarker']();this['_model']['change'](_0x5b76c0=>{_0x5b76c0['updateMarker'](_0x548485,{'range':_0x444a44});});}['_addThreadToSuggestion'](_0x1aa42c){const _0x206a4e=_0x1aa42c['id'],_0x4914cb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x206a4e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4914cb,'threadId':_0x206a4e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x58389b=this['_commentsRepository']['getCommentThread'](_0x206a4e);_0x58389b['unbind']('isRemovable'),_0x58389b['isRemovable']=!0x1,_0x1aa42c['commentThread']=_0x58389b;}['_checkSuggestionCorrectness'](_0x36102c,_0x80dca4,_0x175a51,_0x1a082a){if(_0x36102c['type']!=_0x80dca4||_0x36102c['subType']!=_0x175a51||_0x36102c['creator']['id']!=_0x1a082a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3e1be4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x227098,_0x40bb0d){const _0x165dc2=_0x227098['getFirstRange']();if(_0x40bb0d['isEqual'](_0x165dc2))_0x227098['removeMarkers']();else{if(_0x165dc2['containsRange'](_0x40bb0d)){const _0x1fe4dc=this['_model']['createPositionAt'](_0x40bb0d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x227098,this['_model']['createRange'](_0x165dc2['start'],_0x1fe4dc));const _0x368866=_0x3bcbe6(),_0x84229a=_0x227098['creator']['id'],_0x4cf1cf=_0x227098['type']+':'+_0x227098['subType'];this['_setSuggestionData']({'id':_0x368866,'type':_0x4cf1cf,'createdAt':new Date(),'authorId':_0x84229a,'data':_0x227098['data'],'attributes':_0x227098['attributes']});const _0x2adbc4=this['_model']['createPositionAt'](_0x40bb0d['end']['parent'],'after'),_0x5945b4=this['_model']['createRange'](_0x2adbc4,_0x165dc2['end']);this['_addSuggestionMarker'](_0x4cf1cf,_0x368866,_0x84229a,_0x5945b4);}else{if(_0x165dc2['containsPosition'](_0x40bb0d['start'])){const _0xd8e121=this['_model']['createPositionAt'](_0x40bb0d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x227098,this['_model']['createRange'](_0x165dc2['start'],_0xd8e121));}else{const _0x4b2b1a=this['_model']['createPositionAt'](_0x40bb0d['end']['parent'],'after');this['_setSuggestionRange'](_0x227098,this['_model']['createRange'](_0x4b2b1a,_0x165dc2['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x418786){for(const {suggestion:_0x13415a,meta:_0x27bbb1}of this['_findSuggestions'](_0x418786,'insertion')){if(!_0x27bbb1['isOwn'])continue;const _0x55c60f=_0x13415a['getRanges']();for(const _0x5dfa9f of _0x55c60f)if(!_0x418786['getDifference'](_0x5dfa9f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4bb95e){const _0x2679e5=this['editor']['plugins']['get']('Users')['getUser'](_0x4bb95e);if(!_0x2679e5)throw new _0x3e1be4('track-changes-user-not-found',this);return _0x2679e5;}['_getExternalAuthor'](_0x25ff49){const _0x565f23=this['editor']['plugins']['get']('Users'),_0x5bea3a=_0x541be4('external:'+_0x25ff49),_0x32854c=_0x565f23['getUser'](_0x5bea3a);return _0x32854c||_0x565f23['addUser']({'id':_0x5bea3a,'name':_0x25ff49});}['_createSuggestion'](_0x5964bf,_0x114818,_0x556190,_0x3695ce,_0x8eb8ba){const _0x120734=this['_getAuthorFromId'](_0x3695ce),_0xd66306=this['_suggestionFactory']['buildSuggestion'](_0x5964bf,_0x114818,_0x556190,_0x120734,_0x8eb8ba,_0x5654c4=>{this['_updateSuggestionData'](_0x556190,{'attributes':_0x5654c4});const _0x31543=this['getSuggestion'](_0x556190);this['_joinWithAdjacentSuggestions'](new Set([_0x31543])),this['_refreshSuggestionsChain'](new Set([_0x31543]));});return this['listenTo'](_0xd66306,'accept',()=>{this['_updateSuggestionData'](_0x556190,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xd66306,'discard',()=>{this['_updateSuggestionData'](_0x556190,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x556190,_0xd66306),this['_suggestionState']['set'](_0xd66306,'notReady'),_0xd66306;}['_splitMarkerName'](_0x445cf3){const _0x16f584=_0x445cf3['split'](':');return{'group':_0x16f584[0x0],'type':_0x16f584[0x1],'subType':_0x16f584['length']>=0x5?_0x16f584[0x2]:null,'id':_0x16f584['length']<0x5?_0x16f584[0x2]:_0x16f584[0x3],'authorId':_0x16f584['length']<0x5?_0x16f584[0x3]:_0x16f584[0x4],'markerCount':0x6==_0x16f584['length']?_0x16f584[0x5]:null};}['_breakSuggestionMarker'](_0x227143,_0xc67e41,_0x13e0c9){const _0x124782=_0x227143['getFirstRange'](),_0x81f75a=_0x124782['start'],_0x28e499=_0x124782['end'];this['_setSuggestionRange'](_0x227143,this['_model']['createRange'](_0x81f75a,_0xc67e41));const _0x3250f4=_0x3bcbe6(),_0x241628=_0x227143['creator']['id'],_0x2df4be=_0x227143['type']+(_0x227143['subType']?':'+_0x227143['subType']:'');this['_setSuggestionData']({'id':_0x3250f4,'type':_0x2df4be,'createdAt':new Date(),'authorId':_0x241628,'originalSuggestionId':_0x227143['id'],'attributes':_0x227143['attributes'],'data':_0x227143['data']});const _0x1b9e6b=this['_getAttributeKey'](_0x227143);('formatBlock'==_0x227143['type']||_0x1b9e6b&&this['_isBlockAttribute'](_0x1b9e6b))&&(_0x13e0c9=this['_model']['createPositionBefore'](_0x13e0c9['parent'])),this['_addSuggestionMarker'](_0x2df4be,_0x3250f4,_0x241628,this['_model']['createRange'](_0x13e0c9,_0x28e499));}['_findSuggestions'](_0x135ad6,_0x2951e8=null){const _0x52e68b=[],_0x3a94e9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x135ad6)||(_0x135ad6=[_0x135ad6]);for(const _0x4b43d4 of this['getSuggestions']()){if(!_0x4b43d4['isInContent'])continue;if(_0x2951e8&&_0x4b43d4['type']!=_0x2951e8)continue;let _0x57cb25=!0x1;for(const _0x662d42 of _0x4b43d4['getRanges']()){for(const _0x22ce44 of _0x135ad6){const _0x3537a5=_0x22ce44['start']['isEqual'](_0x662d42['end'])||_0x22ce44['end']['isEqual'](_0x662d42['start']);if(_0x3537a5||_0x22ce44['getIntersection'](_0x662d42)){const _0x297889=_0x22ce44['containsRange'](_0x662d42)&&Tt(this['_model']['schema'],_0x662d42['start'],_0x22ce44),_0x3975b4=_0x662d42['containsRange'](_0x22ce44)&&Tt(this['_model']['schema'],_0x22ce44['start'],_0x662d42);_0x52e68b['push']({'suggestion':_0x4b43d4,'meta':{'isOwn':_0x3a94e9==_0x4b43d4['author'],'isNextTo':_0x3537a5,'isInsideObject':_0x297889,'containsRangeInObject':_0x3975b4}}),_0x57cb25=!0x0;break;}}if(_0x57cb25)break;}}return _0x52e68b;}['_addSuggestionMarker'](_0x4a2ce4,_0x58e326,_0x300ea0,_0x2aaa31,_0x152a90){this['_model']['change'](_0x676002=>{let _0x259a8f='suggestion:'+_0x4a2ce4+':'+_0x58e326+':'+_0x300ea0;_0x152a90&&(_0x259a8f=_0x259a8f+':'+_0x152a90),_0x676002['addMarker'](_0x259a8f,{'range':_0x2aaa31,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3329b5){const _0x475c0a=_0x3329b5['previous'],_0x3a0eaf=_0x3329b5['next'];_0x3329b5['previous']=null,_0x3329b5['next']=null,null!=_0x475c0a&&_0x475c0a['next']==_0x3329b5&&(_0x475c0a['next']=_0x3a0eaf),null!=_0x3a0eaf&&_0x3a0eaf['previous']==_0x3329b5&&(_0x3a0eaf['previous']=_0x475c0a),'ready'==this['_suggestionState']['get'](_0x3329b5)&&(this['_suggestionState']['set'](_0x3329b5,'removed'),this['fire']('suggestionUnloaded',_0x3329b5,_0x475c0a,_0x3a0eaf));}['_setSuggestionData'](_0x322814){const _0x17dbc6=_0x322814['id'],_0x402767=this['addSuggestionData'](_0x322814);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5b2939=this['editor']['plugins']['get']('PendingActions'),_0x5d524a=_0x402767['hasComments'],_0x1aa1b8=_0x402767['subType']?_0x402767['type']+':'+_0x402767['subType']:_0x402767['type'],_0x5e9395=this['editor']['locale'],_0x3d9c6c=_0x5b2939['add'](o(_0x5e9395,'PENDING_ACTION_SUGGESTION')),_0xf770c8={'id':_0x17dbc6,'type':_0x1aa1b8,'hasComments':_0x5d524a,'data':_0x322814['data']||null,'originalSuggestionId':_0x322814['originalSuggestionId']||null,'attributes':_0x402767['attributes']};this['_adapter']['addSuggestion'](_0xf770c8)['then'](_0x555676=>{_0x402767['_saved']=!0x0,_0x5b2939['remove'](_0x3d9c6c),_0x555676&&_0x555676['createdAt']&&(this['_suggestions']['get'](_0x17dbc6)['createdAt']=_0x555676['createdAt']);})['catch'](_0x579b8b=>{throw _0x9965d2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x402767['discard']();}),_0x402767['stopListening'](),this['_suggestions']['delete'](_0x402767['id']),this['_suggestionState']['delete'](_0x402767),_0x579b8b;});}return _0x402767;}['_isBlockAttribute'](_0x1af066){return this['_blockAttributeKeys']['has'](_0x1af066);}['_updateSuggestionData'](_0x101b64,_0x5d7c7e){const _0x3d6e4e=this['editor']['plugins']['get']('PendingActions'),_0x5405e0=this['getSuggestion'](_0x101b64);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5405e0['_saved']){const _0x3221f1=_0x3d6e4e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x101b64,_0x5d7c7e)['then'](()=>{_0x3d6e4e['remove'](_0x3221f1);});}else _0x5405e0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x101b64,_0x5d7c7e);});}}['_getSuggestionData'](_0x3613d9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3e1be4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3613d9);}['_handleNewSuggestionMarker'](_0x39382e){const {id:_0x1aaf01,type:_0x5f24cf,subType:_0x5411c5,authorId:_0x52c0c8}=this['_splitMarkerName'](_0x39382e),_0x1f36bc=this['_suggestions']['get'](_0x1aaf01)||this['_createSuggestion'](_0x5f24cf,_0x5411c5,_0x1aaf01,_0x52c0c8,{});switch(this['_checkSuggestionCorrectness'](_0x1f36bc,_0x5f24cf,_0x5411c5,_0x52c0c8),this['_suggestionState']['get'](_0x1f36bc)){case'notReady':this['_getSuggestionData'](_0x1aaf01)['then'](_0x894d6f=>{let _0x318969=Promise['resolve']();_0x894d6f['hasComments']&&(_0x318969=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1aaf01})),_0x318969['then'](()=>{this['addSuggestionData'](_0x894d6f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1f36bc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1aaf01,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1f36bc,'ready'),this['fire']('suggestionLoaded',_0x1f36bc);break;case'ready':this['fire']('suggestionChanged',_0x1f36bc);}return _0x1f36bc['addMarkerName'](_0x39382e),_0x1f36bc;}['_refreshSuggestionsChain'](_0x5f15fe){const _0x36474a=Array['from'](_0x5f15fe),_0x3596ab=_0x36474a['filter'](_0x49b05d=>'attribute'==_0x49b05d['type']);this['_refreshAttributeSuggestionsChain'](_0x3596ab);const _0x200441=_0x36474a['filter'](_0x29751c=>!_0x29751c['isMultiRange']&&'attribute'!=_0x29751c['type']),_0x5a2f6a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cb74f=>!_0x1cb74f['isMultiRange']&&'attribute'!=_0x1cb74f['type']),_0x2e0528=_0x5a2f6a['filter'](_0x9b15c=>!_0x5f15fe['has'](_0x9b15c)),_0x18619f=new Map(_0x5a2f6a['map'](_0x5bd679=>[_0x5bd679,this['_suggestionFactory']['getSuggestionCallback'](_0x5bd679['type'],_0x5bd679['subType'],'chain')])),_0x3fc42b=new Map(_0x5a2f6a['map'](_0x564359=>[_0x564359,_0x564359['getFirstRange']()])),_0x87394b=new Set(),_0x5e99a8=new Set();for(let _0x547597=0x0;_0x547597<_0x200441['length'];_0x547597++)_0x5d9b2f(_0x200441[_0x547597],_0x200441,_0x547597+0x1);for(let _0x57986f=0x0;_0x57986f<_0x200441['length'];_0x57986f++)_0x5d9b2f(_0x200441[_0x57986f],_0x2e0528,0x0);const _0x527936=new Set();for(let _0x548a1b=0x0;_0x548a1b<_0x200441['length'];_0x548a1b++){const _0x5e6eb1=_0x200441[_0x548a1b];!_0x5e99a8['has'](_0x5e6eb1)&&_0x5e6eb1['previous']&&(_0x527936['add'](_0x5e6eb1['previous']),_0x5e6eb1['previous']['next']===_0x5e6eb1&&(_0x5e6eb1['previous']['next']=null),_0x5e6eb1['previous']=null),!_0x87394b['has'](_0x5e6eb1)&&_0x5e6eb1['next']&&(_0x527936['add'](_0x5e6eb1['next']),_0x5e6eb1['next']['previous']===_0x5e6eb1&&(_0x5e6eb1['next']['previous']=null),_0x5e6eb1['next']=null);}function _0x5d9b2f(_0x383d53,_0x647b82,_0x543b20){for(let _0x413cb0=_0x543b20;_0x413cb0<_0x647b82['length'];_0x413cb0++){const _0x39685e=_0xe0088(_0x383d53,_0x647b82[_0x413cb0]);_0x39685e&&(_0x39685e[0x0]['next']=_0x39685e[0x1],_0x39685e[0x1]['previous']=_0x39685e[0x0],_0x87394b['add'](_0x39685e[0x0]),_0x5e99a8['add'](_0x39685e[0x1]));}}function _0xe0088(_0x3173b7,_0x179b0a){if(_0x3173b7['author']['id']!==_0x179b0a['author']['id'])return null;const _0x1561df=_0x18619f['get'](_0x3173b7)(_0x3173b7,_0x179b0a,_0x3fc42b['get'](_0x3173b7),_0x3fc42b['get'](_0x179b0a));if(!_0x1561df)return null;return _0x18619f['get'](_0x179b0a)(_0x3173b7,_0x179b0a,_0x3fc42b['get'](_0x3173b7),_0x3fc42b['get'](_0x179b0a))?_0x1561df[0x1]['commentThread']&&_0x1561df[0x1]['commentThread']['length']?null:_0x1561df:null;}_0x527936['size']&&this['_refreshSuggestionsChain'](_0x527936);}['_refreshAttributeSuggestionsChain'](_0x3304c5){if(0x0==_0x3304c5['length'])return;const _0x493f5c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5212c3=>'attribute'==_0x5212c3['type']&&_0x5212c3['_isDataLoaded']),_0x5a7a88=[],_0x33f259=new Map();for(const _0x2fb6ff of _0x493f5c){const _0x25a9f8=_0x541be4(_0x2fb6ff['attributes']);_0x33f259['has'](_0x25a9f8)||(_0x33f259['set'](_0x25a9f8,_0x5a7a88['length']),_0x5a7a88['push']([]));const _0x1e3091=_0x33f259['get'](_0x25a9f8);_0x5a7a88[_0x1e3091]['push'](_0x2fb6ff);}!(function(){_0x5a7a88['sort']((_0xcedd22,_0x2d19fe)=>{const _0x48e41f=_0xcedd22[0x0]['createdAt'],_0xdba86e=_0x2d19fe[0x0]['createdAt'];return _0x48e41f==_0xdba86e?_0xcedd22[0x0]['attributes']['groupId']<_0x2d19fe[0x0]['attributes']['groupId']?-0x1:0x1:_0x48e41f<_0xdba86e?-0x1:0x1;});for(const _0x44ac26 of _0x5a7a88)_0x44ac26['sort']((_0x3b6c4e,_0x478b77)=>_0x3b6c4e['id']<_0x478b77['id']?-0x1:0x1);}());for(let _0x1b8772=0x0;_0x1b8772<_0x5a7a88['length'];_0x1b8772++){if(0x0==_0x5a7a88[_0x1b8772]['length'])continue;const _0x437d3e=[];for(let _0x2065e4=_0x1b8772+0x1;_0x2065e4<_0x5a7a88['length'];_0x2065e4++)0x0!=_0x5a7a88[_0x2065e4]['length']&&_0x567d31(_0x5a7a88[_0x1b8772],_0x5a7a88[_0x2065e4])&&_0x437d3e['push'](_0x2065e4);for(const _0x15a473 of _0x437d3e)_0x5a7a88[_0x1b8772]=_0x5a7a88[_0x1b8772]['concat'](_0x5a7a88[_0x15a473]),_0x5a7a88[_0x15a473]=[];}for(const _0x4d9c41 of _0x5a7a88)for(let _0x216047=0x0;_0x216047<_0x4d9c41['length'];_0x216047++){const _0x55d176=_0x4d9c41[_0x216047+0x1]||null;_0x4d9c41[_0x216047]['next']!==_0x55d176&&(_0x4d9c41[_0x216047]['next']=_0x55d176);}for(const _0x27c71c of _0x5a7a88)for(let _0x3b3a78=0x0;_0x3b3a78<_0x27c71c['length'];_0x3b3a78++){const _0x1b8d2b=_0x27c71c[_0x3b3a78-0x1]||null;_0x27c71c[_0x3b3a78]['previous']!==_0x1b8d2b&&(_0x27c71c[_0x3b3a78]['previous']=_0x1b8d2b);}function _0x567d31(_0x5b04d9,_0x4658d4){if(_0x5b04d9[0x0]['attributes']['groupId']!==_0x4658d4[0x0]['attributes']['groupId']&&_0x5b04d9[0x0]['author']!==_0x4658d4[0x0]['author'])return!0x1;if(!function(_0x995cd7,_0x55d9c9){if(!_0x995cd7['hasComments']&&!_0x55d9c9['hasComments'])return!0x0;if(_0x995cd7['hasComments']&&_0x55d9c9['hasComments'])return!0x1;if(_0x995cd7['hasComments']&&_0x55d9c9['createdAt']<_0x995cd7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x55d9c9['hasComments']&&_0x995cd7['createdAt']<_0x55d9c9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5b04d9[0x0],_0x4658d4[0x0]))return!0x1;const _0xc7c7fc=xt(_0x5b04d9[0x0]['attributes'],'groupId'),_0x59a9db=xt(_0x4658d4[0x0]['attributes'],'groupId');if(!_0x591e85(_0xc7c7fc,_0x59a9db))return!0x1;return!!_0x5b04d9['every'](_0x233210=>_0x4658d4['some'](_0x42543c=>_0x233210['getFirstRange']()['isEqual'](_0x42543c['getFirstRange']())))&&_0x4658d4['every'](_0x3d0f69=>_0x5b04d9['some'](_0xa18537=>_0x3d0f69['getFirstRange']()['isEqual'](_0xa18537['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1de44c){const _0x1210a4=Array['from'](_0x1de44c),_0x442762=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2cf056=_0x442762['filter'](_0x28903a=>!_0x1de44c['has'](_0x28903a)),_0x3da225=new Map(_0x1210a4['map'](_0x544b19=>[_0x544b19,this['_suggestionFactory']['getSuggestionCallback'](_0x544b19['type'],_0x544b19['subType'],'join')])),_0x58ee00=new Map(_0x442762['map'](_0x1e52c9=>[_0x1e52c9,_0x1e52c9['getRanges']()]));for(let _0x5f5a1f=0x0;_0x5f5a1f<_0x1210a4['length'];_0x5f5a1f++){if(_0x5ec2f4(this,_0x1210a4[_0x5f5a1f],_0x1210a4,_0x5f5a1f+0x1))return!0x0;}for(let _0x3d59ec=0x0;_0x3d59ec<_0x1210a4['length'];_0x3d59ec++){if(_0x5ec2f4(this,_0x1210a4[_0x3d59ec],_0x2cf056,0x0))return!0x0;}return!0x1;function _0x5ec2f4(_0x3b6e35,_0x446a1b,_0x1df5f7,_0x47f9ca){for(let _0x243aed=_0x47f9ca;_0x243aed<_0x1df5f7['length'];_0x243aed++){const _0x1f7abf=_0x1df5f7[_0x243aed];if(_0x1f7abf['type']!==_0x446a1b['type']||_0x1f7abf['author']['id']!==_0x446a1b['author']['id']||_0x1f7abf['subType']!==_0x446a1b['subType'])continue;if(!Lt(_0x446a1b,_0x1f7abf))continue;if('attribute'==_0x446a1b['type']&&_0x446a1b['data']['oldValue']!=_0x1f7abf['data']['oldValue'])continue;if('attribute'==_0x446a1b['type']&&_0x3b6e35['_isBlockAttribute'](_0x446a1b['data']['key']))continue;if('formatBlock'==_0x446a1b['type']){const _0x561cc6=_0x3b6e35['editor']['model'],_0x23a5f8=_0x446a1b['getContainedElement']();if(_0x23a5f8&&(_0x561cc6['schema']['isObject'](_0x23a5f8)||_0x561cc6['schema']['isLimit'](_0x23a5f8)))continue;}const _0x12213b=_0x3da225['get'](_0x446a1b),_0x1186ff=_0x58ee00['get'](_0x446a1b),_0x4e9308=_0x58ee00['get'](_0x1f7abf),_0x28ab12=_0x446a1b['commentThread']&&_0x446a1b['commentThread']['length'],_0x47b7f8=_0x1f7abf['commentThread']&&_0x1f7abf['commentThread']['length'];if(!_0x28ab12&&_0x12213b(_0x4e9308,_0x1186ff))return _0x3b6e35['_joinSuggestions'](_0x1f7abf,_0x446a1b),_0x58ee00['delete'](_0x446a1b),!0x0;if(!_0x47b7f8&&_0x12213b(_0x1186ff,_0x4e9308))return _0x3b6e35['_joinSuggestions'](_0x446a1b,_0x1f7abf),_0x58ee00['delete'](_0x1f7abf),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4769d,_0x46e175){if(_0x4769d['isMultiRange']){for(const _0x30e320 of _0x46e175['getRanges']())_0x4769d['addRange'](_0x30e320);}else{const _0x5ce0b4=_0x46e175['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4769d,this['_model']['createRange'](_0x4769d['getFirstRange']()['start'],_0x5ce0b4));}_0x46e175['removeMarkers']();}['_getMarkerAnnouncementText'](_0x449d45,_0x2045aa){const _0xa7963a=_0x449d45['startsWith']('format')||_0x449d45['startsWith']('attribute')?'FORMATTING':_0x449d45['toUpperCase']();return o(this['editor']['locale'],_0x2045aa+'_'+_0xa7963a+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4f0953=this['editor'];if(!_0x4f0953['ui'])return;const {ariaLiveAnnouncer:_0x40cc7c}=_0x4f0953['ui'];_0x1ce0e4(this['_model'],({left:_0x858c60,entered:_0x13b68e})=>{for(const _0xd060fe of _0x858c60){const {group:_0x25678a,type:_0x53561c}=this['_splitMarkerName'](_0xd060fe['name']);if('suggestion'===_0x25678a){_0x40cc7c['announce'](this['_getMarkerAnnouncementText'](_0x53561c,'LEAVE'));break;}}for(const _0x45da0e of _0x13b68e){const {group:_0x18fdc0,type:_0x2b44cd}=this['_splitMarkerName'](_0x45da0e['name']);if('suggestion'===_0x18fdc0){_0x40cc7c['announce'](this['_getMarkerAnnouncementText'](_0x2b44cd,'ENTER'));break;}}});}['_processAttributeChanges'](_0x2bfb01){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4eb37a=this['editor'],_0x513f93=_0x4eb37a['model']['document']['differ']['getChanges']();if(0x0==_0x513f93['length'])return!0x1;const _0xfa7306=[],_0xbb2fea=_0x513f93['filter'](_0x5097e2=>'attribute'==_0x5097e2['type']),_0x4b79f8=_0x513f93['filter'](_0x2f5d52=>'insert'==_0x2f5d52['type']&&'$text'!=_0x2f5d52['name']),_0x1dc434=_0x513f93['filter'](_0x3cac35=>'remove'==_0x3cac35['type']&&'$text'!=_0x3cac35['name']);for(const _0x4739f1 of _0xbb2fea)_0xfa7306['push']({'key':_0x4739f1['attributeKey'],'newValue':_0x4739f1['attributeNewValue'],'oldValue':_0x4739f1['attributeOldValue'],'range':Gt(_0x4739f1['range'],_0x4eb37a['model'])});for(const _0x51e0cc of _0x4b79f8){const _0x474ce7=_0x1dc434['find'](_0x20c362=>_0x20c362['position']['isEqual'](_0x51e0cc['position']));_0x474ce7&&_0xfa7306['push']({'key':m,'newValue':_0x51e0cc['name'],'oldValue':_0x474ce7['name'],'range':_0x4eb37a['model']['createRangeOn'](_0x51e0cc['position']['nodeAfter'])});}return 0x0!=_0xfa7306['length']&&this['_reduceExistingSuggestions'](_0x2bfb01,_0xfa7306);}['_processAttributeSuggestions'](_0xfc71aa){let _0x8de19a=!0x1;const _0x399b96=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4a4549=>_0x4a4549['data']['newRange']&&_0x4a4549['name']['startsWith']('suggestion:attribute:'));for(const _0x1c4ef5 of _0x399b96){const {subType:_0x3369dc,id:_0x46e8f7}=this['_splitMarkerName'](_0x1c4ef5['name']),_0x395d47=_0x3369dc['split']('|')[0x0];for(const _0x2a39bb of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2a39bb['id']!=_0x46e8f7&&'attribute'==_0x2a39bb['type']&&_0x2a39bb['data']&&_0x2a39bb['data']['key']==_0x395d47&&_0x2a39bb['getFirstRange']()['isIntersecting'](_0x1c4ef5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2a39bb,_0x1c4ef5['data']['newRange'],_0xfc71aa),_0x8de19a=!0x0);}return _0x8de19a;}['_recordAttributeChanges'](_0x404761){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x404761();}['_isRegisteredAttribute'](_0x51874b){const _0x2cfb5a=this['_isBlockAttribute'](_0x51874b),_0x48684c=this['_inlineAttributeKeys']['has'](_0x51874b);return _0x2cfb5a||_0x48684c;}['_reduceExistingSuggestions'](_0x2909c6,_0x3671fe){if(0x0==_0x3671fe['length'])return!0x1;let _0x2c8149=!0x1;for(const _0x4c602b of _0x3671fe){const _0x32f283=this['_findSuggestions'](_0x4c602b['range'],'attribute')['filter'](_0x49a820=>!_0x49a820['meta']['isNextTo'])['map'](_0x2778d8=>_0x2778d8['suggestion']),_0xd995ec=_0x541be4({'newValue':_0x4c602b['newValue']});_0x32f283['filter'](_0x2b0d2d=>{const [_0x5a9474,_0x6faddb]=_0x2b0d2d['subType']['split']('|');return _0x5a9474==_0x4c602b['key']&&_0x6faddb!=_0xd995ec;})['forEach'](_0x15f95e=>{this['_reduceSuggestionAttributeRange'](_0x15f95e,_0x4c602b['range'],_0x2909c6),_0x2c8149=!0x0;});}return _0x2c8149;}['_reduceSuggestionAttributeRange'](_0x53ae58,_0x39078d,_0xea4dfc){const _0x8edcde=_0x53ae58['getFirstRange']()['getDifference'](_0x39078d);0x0!==_0x8edcde['length']?0x1!==_0x8edcde['length']?this['_breakSuggestionMarker'](_0x53ae58,_0x39078d['start'],_0x39078d['end']):this['_setSuggestionRange'](_0x53ae58,_0x8edcde[0x0]):_0xea4dfc['removeMarker'](_0x53ae58['getFirstMarker']());}}class Rt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x30c2d9){this['_editor']=_0x30c2d9,this['_model']=_0x30c2d9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x58f626,_0x43e5c6,_0x3270f1,_0x4cd59,_0x3bd977,_0x385472){return new u(this['_model'],{'type':_0x58f626,'subType':_0x43e5c6,'id':_0x3270f1,'author':_0x4cd59,'creator':_0x4cd59,'attributes':_0x3bd977,'onAttributesChange':_0x385472,'onAccept':(..._0x51f526)=>this['getSuggestionCallback'](_0x58f626,_0x43e5c6,'accept')(..._0x51f526),'onDiscard':(..._0x245a89)=>this['getSuggestionCallback'](_0x58f626,_0x43e5c6,'discard')(..._0x245a89)});}['registerCustomCallback'](_0x3147f7,_0x159404,_0x204251,_0x4106e8){const _0x32e0dd=_0x3147f7+':'+_0x159404+':'+_0x204251;this['_customCallbacks']['set'](_0x32e0dd,_0x4106e8);}['getSuggestionCallback'](_0x3c9178,_0x2d358b,_0x560ca0){const _0x1251f1=_0x3c9178+':'+_0x2d358b+':'+_0x560ca0;return this['_customCallbacks']['get'](_0x1251f1)||this['_defaultCallbacks']['get'](_0x3c9178+':'+_0x560ca0);}['_registerDefaultCallbacks'](){const _0xe69426=()=>!0x1,_0x488f4a=_0x23141c=>{_0x23141c['sort']((_0x4e8235,_0x32c990)=>_0x4e8235['start']['isBefore'](_0x32c990['start'])?0x1:-0x1),this['_model']['change'](_0x1deed2=>{for(const _0x55270b of _0x23141c){let _0x50ea30;_0x50ea30=_0x55270b['end']['isAtEnd']&&_0x55270b['end']['parent']==_0x55270b['start']['nodeAfter']?_0x1deed2['createSelection'](_0x55270b['start']['nodeAfter'],'on'):_0x1deed2['createSelection'](_0x55270b),this['_model']['deleteContent'](_0x50ea30,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x552063=(_0xb69d50,_0x593ea1)=>{_0x593ea1&&this['_model']['change'](_0x327db5=>{const {commandName:_0x1e5bf2,commandParams:_0x190ad=[]}=_0x593ea1,_0x18b1b3=_0xb69d50['map'](_0xd9604c=>(Et(_0xd9604c)&&(_0xd9604c=this['_model']['createRange'](_0xd9604c['end'])),_0xd9604c))['filter'](_0x500746=>'$graveyard'!==_0x500746['root']['rootName']);if(_0x18b1b3['length']<0x1)return;const _0x28f695=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5a981d=>_0x8f1c09['fromRange'](_0x5a981d));_0x327db5['setSelection'](_0x18b1b3);for(const _0x495810 of this['_editor']['commands']['commands']())_0x495810['refresh']();_0x190ad['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1e5bf2,..._0x190ad);const _0x4b1537=_0x28f695['filter'](_0x458324=>'$graveyard'!=_0x458324['root']['rootName']);_0x4b1537['length']>0x0&&_0x327db5['setSelection'](_0x4b1537);for(const _0x2c39f5 of _0x28f695)_0x2c39f5['detach']();});},_0xe88b57=(_0x216f79,_0xb1dc3a)=>0x1==_0x216f79['length']&&0x1==_0xb1dc3a['length']&&_0x216f79[0x0]['end']['isEqual'](_0xb1dc3a[0x0]['start']),_0x34926c=(_0x1d42d7,_0x8820b2,_0x1b1ff4,_0xbfbf20)=>Pt(_0x1d42d7,_0x8820b2,_0x1b1ff4,_0xbfbf20,this['_model'])?[_0x1d42d7,_0x8820b2]:Pt(_0x8820b2,_0x1d42d7,_0xbfbf20,_0x1b1ff4,this['_model'])?[_0x8820b2,_0x1d42d7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xe69426),this['_defaultCallbacks']['set']('insertion:discard',_0x488f4a),this['_defaultCallbacks']['set']('insertion:join',_0xe88b57),this['_defaultCallbacks']['set']('insertion:chain',_0x34926c),this['_defaultCallbacks']['set']('deletion:accept',_0x488f4a),this['_defaultCallbacks']['set']('deletion:discard',_0xe69426),this['_defaultCallbacks']['set']('deletion:join',_0xe88b57),this['_defaultCallbacks']['set']('deletion:chain',_0x34926c),this['_defaultCallbacks']['set']('formatInline:accept',_0x552063),this['_defaultCallbacks']['set']('formatInline:discard',_0xe69426),this['_defaultCallbacks']['set']('formatInline:join',_0xe88b57),this['_defaultCallbacks']['set']('formatInline:chain',_0xe69426),this['_defaultCallbacks']['set']('formatBlock:accept',_0x552063),this['_defaultCallbacks']['set']('formatBlock:discard',_0xe69426),this['_defaultCallbacks']['set']('formatBlock:join',_0xe88b57),this['_defaultCallbacks']['set']('formatBlock:chain',_0xe69426),this['_defaultCallbacks']['set']('attribute:accept',_0xe69426),this['_defaultCallbacks']['set']('attribute:discard',(_0x56348e,_0x1b3c2f)=>{if(!_0x1b3c2f)return;const _0x29648c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x40860a=>{if(_0x1b3c2f['key']==m)for(const _0x5075b6 of _0x56348e){const _0x104d5f=_0x5075b6['start']['nodeAfter'],_0x1df202=_0x1b3c2f['oldValue'];_0x40860a['rename'](_0x104d5f,_0x1df202);}else{if(_0x29648c['_isBlockAttribute'](_0x1b3c2f['key'])){for(const _0x38eed6 of _0x56348e)void 0x0!==_0x1b3c2f['oldValue']?_0x40860a['setAttribute'](_0x1b3c2f['key'],_0x1b3c2f['oldValue'],_0x38eed6['start']['nodeAfter']):_0x40860a['removeAttribute'](_0x1b3c2f['key'],_0x38eed6['start']['nodeAfter']);}else{for(const _0xa5fd3f of _0x56348e)_0x1b3c2f['oldValue']?_0x40860a['setAttribute'](_0x1b3c2f['key'],_0x1b3c2f['oldValue'],_0xa5fd3f):_0x40860a['removeAttribute'](_0x1b3c2f['key'],_0xa5fd3f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xe88b57);}}function Tt(_0x41f189,_0x1304b5,_0x547658){for(const _0x1c12a6 of _0x1304b5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1c12a6['root']==_0x1c12a6)return!0x1;if(!_0x547658['containsItem'](_0x1c12a6))return!0x1;if(_0x41f189['isObject'](_0x1c12a6)||_0x41f189['isLimit'](_0x1c12a6))return!0x0;}return!0x1;}function Et(_0xe55ea1){return _0xe55ea1['end']['parent']==_0xe55ea1['start']['nodeAfter']&&_0xe55ea1['end']['isAtStart'];}function Ot(_0x4f4edb,_0xac5097,_0x394ff2,_0x99e131){const _0x20d9b7=_0xda431f=>!_0xda431f['item']['is']('$textProxy')&&!_0x99e131['isObject'](_0xda431f['item']),_0x10341d=_0x4f4edb['start']['getLastMatchingPosition'](_0x20d9b7),_0x270b0d=_0x4f4edb['end']['getLastMatchingPosition'](_0x20d9b7,{'direction':'backward'});return(!_0x4f4edb['start']['isEqual'](_0x10341d)||!_0x4f4edb['end']['isEqual'](_0x270b0d))&&(_0x10341d['isBefore'](_0x270b0d)?_0x394ff2['updateMarker'](_0xac5097,{'range':_0x394ff2['createRange'](_0x10341d,_0x270b0d)}):_0x394ff2['removeMarker'](_0xac5097),!0x0);}function Vt(_0x1c4a01){return _0x541be4(_0x1c4a01);}function Ut(_0x32e296){const _0x205b72=_0x32e296['start']['nodeAfter'];return _0x205b72&&_0x205b72['is']('element');}function Gt(_0x1958f1,_0x5706b1){return null==_0x1958f1['end']['nodeBefore']&&_0x1958f1['end']['parent']==_0x1958f1['start']['nodeAfter']?Ft(_0x1958f1['start']['nodeAfter'],_0x5706b1):_0x1958f1;}function Ft(_0x18f160,_0xe6d8cb){const _0x114a38=_0xe6d8cb['schema']['isObject'](_0x18f160)||_0xe6d8cb['schema']['isSelectable'](_0x18f160);return _0xe6d8cb['createRange'](_0xe6d8cb['createPositionAt'](_0x18f160,'before'),_0x114a38?_0xe6d8cb['createPositionAfter'](_0x18f160):_0xe6d8cb['createPositionAt'](_0x18f160,'end'));}function Pt(_0x36b57f,_0x1248bb,_0x441748,_0x3c775a,_0x4c8fa){if(!Lt(_0x36b57f,_0x1248bb))return!0x1;if(_0x441748['end']['isEqual'](_0x3c775a['start']))return!0x0;if(_0x36b57f['type']!=_0x1248bb['type'])return!0x1;if(!_0x441748['end']['isTouching'](_0x3c775a['start']))return!0x1;const _0x4a6d15=_0x4c8fa['createRange'](_0x441748['end'],_0x3c775a['start'])['getWalker']();for(const _0x193855 of _0x4a6d15)if(['elementStart','elementEnd']['includes'](_0x193855['type'])&&_0x4c8fa['schema']['isLimit'](_0x193855['item']))return!0x1;return!0x0;}function Lt(_0x4082f3,_0x3dc97b){if(!_0x4082f3['_isDataLoaded']||!_0x3dc97b['_isDataLoaded'])return!0x1;const _0x1c4a60=new Set(Object['keys'](_0x4082f3['attributes'])),_0x4cabda=new Set(Object['keys'](_0x3dc97b['attributes']));if(_0x1c4a60['delete']('groupId'),_0x4cabda['delete']('groupId'),0x0==_0x1c4a60['size']&&0x0==_0x4cabda['size'])return!0x0;if(_0x1c4a60['size']!=_0x4cabda['size'])return!0x1;const _0x37fb1b={..._0x4082f3['attributes']},_0x13ce52={..._0x3dc97b['attributes']};return delete _0x37fb1b['groupId'],delete _0x13ce52['groupId'],JSON['stringify'](_0x37fb1b)==JSON['stringify'](_0x13ce52);}function Ht(_0x1a9f31,_0xdfe916){const _0x20bde4=Jt(_0x1a9f31['attributes']),_0x5f3a81=Jt(_0xdfe916);if(!_0x1a9f31['_isDataLoaded'])return!0x1;for(const _0x2c7cde of Object['keys'](_0x5f3a81))if(!_0x591e85(_0x20bde4[_0x2c7cde],_0x5f3a81[_0x2c7cde]))return!0x1;return!0x0;}function Jt(_0x5b6511){const _0x4cb7fe=Object['assign']({},_0x5b6511);return delete _0x4cb7fe['skipNestingCheck'],delete _0x4cb7fe['tablePasteChainId'],_0x4cb7fe;}class ne extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1bac3e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x46f311,_0x3ec225,_0x21d98a,_0x5a3659){super(),this['model']=_0x3ec225,this['view']=_0x21d98a,this['commentThreadController']=_0x5a3659,this['_editor']=_0x46f311,this['_acceptCommand']=_0x46f311['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x46f311['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2369a0,_0x5041a5)=>_0x2369a0||_0x5041a5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2516ba=>_0x2516ba&&this['_editor']['model']['canEditAt'](_0x3ec225['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x101725=>_0x101725&&this['_editor']['model']['canEditAt'](_0x3ec225['getRanges']())),this['_pendingAction']=null,_0x21d98a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x21d98a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x21d98a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x21d98a,'change:isDirty',()=>{_0x21d98a['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 _0x5d41db=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5d41db);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x1e8c0e{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x3d9d1e,_0xb148f4,_0x7d043b,_0x2b6d7d){super(_0x3d9d1e),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0xb148f4['authoredAt']),this['bind']('authoredAt')['to'](_0xb148f4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0xb148f4,this['_localUser']=_0x7d043b,this['_config']=_0x2b6d7d,_0x2b6d7d['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:_0xcb101b}=this['_config'];this['commentsListView']=new _0xcb101b(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',_0x4fb9bb=>_0x4fb9bb+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1a5ce7,_0x56030c)=>_0x1a5ce7||!!_0x56030c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x16f31f}=this['_config'],_0x22e339=new _0x16f31f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2ba2b3=_0x22e339['commentInputView'];return _0x22e339['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2ba2b3,'value',(_0x4b7023,_0x3235f4,_0x549d68)=>!!_0x549d68||_0x4b7023&&!_0x3235f4),_0x2ba2b3['on']('submit',(_0x367b06,_0x180bd7)=>{this['fire']('addComment',_0x180bd7),_0x2ba2b3['editor']['setData']('');}),_0x2ba2b3['on']('cancel',()=>this['focus']()),_0x2ba2b3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x22e339;}}class ie extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x4613ee,_0x4fcc3a,_0x4ed48c,_0x48d3f8){super(_0x4613ee,_0x4fcc3a,_0x4ed48c,_0x48d3f8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x21de8b=>_0x21de8b&&_0x21de8b[0x0]?_0x21de8b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1471ef,_0x4a2cb1)=>{let _0x4cd415='';for(const _0x3184f7 of _0x1471ef)_0x4cd415+='<p>'+ds(_0x3184f7['content'],_0x3184f7['color'])+'</p>';return _0x4a2cb1?_0x4cd415:_0x40a896(_0x4cd415,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x4613ee,'Accept\x20suggestion'),_0x39d0a8['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x4613ee,'Discard\x20suggestion'),_0x39d0a8['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x417c4a(_0x4613ee,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x48d4e6=this['bindTemplate'],_0x680f43=[{'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':_0x48d4e6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x48d4e6['to']('authoredAt',_0x3fb732=>this['_config']['formatDateTime'](_0x3fb732))}]}]},{'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']&&_0x680f43['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x535fd0={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x48d4e6['if']('isActive','ck-suggestion-wrapper--active'),_0x48d4e6['to']('type',_0x3f2126=>'ck-suggestion-'+_0x3f2126),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':_0x680f43}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x535fd0['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)),_0x535fd0;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x4789b5,_0x2c47af,_0x3d964e)=>{this['_descriptionElement']['innerHTML']=_0x3d964e;});}['_createButton'](_0x138faf,_0x531ee3,_0x5372a5,_0x544a42,_0x737a00){const _0x3c4519=new _0x2ff45f(this['locale']);return _0x3c4519['set']({'label':_0x138faf,'icon':_0x531ee3,'tooltip':!0x0,'tooltipPosition':_0x737a00}),_0x3c4519['extendTemplate']({'attributes':{'class':_0x5372a5}}),_0x3c4519['on']('execute',()=>{this['fire'](_0x544a42,this['_model']['id']);}),_0x3c4519;}['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(_0x3537bb,_0x229ed9){let _0x18ef51='';return _0x18ef51+=_0x3537bb['split']('*')['map']((_0x1c9f9b,_0x3ff2c3)=>_0x3ff2c3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x1c9f9b)+'</span>':us(_0x1c9f9b))['join'](''),_0x229ed9&&(_0x18ef51+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x229ed9['value']+'\x22\x20title=\x22'+_0x229ed9['title']+'\x22></span>'),_0x18ef51;}function us(_0x58f5bb){const _0x33ca89=document['createElement']('span');return _0x33ca89['innerText']=_0x58f5bb,_0x33ca89['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 _0x4751ae{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5c5163,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x34e9e7){super(_0x34e9e7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x408824=this['editor']['config'];_0x408824['define']('trackChanges.SuggestionThreadView',ie),_0x408824['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x408824['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x54a30d,_0xad26de){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x22f0f4,_0x4a6c1d]of this['_handleControllerBuffer']){const _0x17bdf7=this['_suggestionToController']['has'](_0x22f0f4);_0x17bdf7||_0x4a6c1d?_0x17bdf7&&_0x4a6c1d&&this['_destroyController'](_0x22f0f4):this['_initializeController'](_0x22f0f4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x54a30d,_0xad26de);}['init'](){const _0x5dec7d=this['editor'],_0x2ab9d8=_0x5dec7d['plugins']['get']('TrackChangesEditing'),_0x201418=_0x5dec7d['plugins']['get']('Annotations'),_0x1d7d89=_0x5dec7d['plugins']['get']('EditorAnnotations'),_0x2726e=_0x5dec7d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1d7d89['addSourceCollector'](()=>{const _0x4c732f=[];for(const [_0x1699c4,_0x5a2488]of Array['from'](this['_suggestionToController'])){const _0x4d6b00=_0x1699c4['getAllAdjacentSuggestions'](),_0x372df3=[];for(const _0x4ab1dd of _0x4d6b00){if(!_0x4ab1dd['isInContent'])continue;if(_0x4ab1dd['isMultiRange']){_0x372df3['push'](..._0x4ab1dd['getRanges']());continue;}const _0x57fe49=_0x4ab1dd['getFirstRange']();if(_0x372df3['length']>0x0){const _0x191c9a=_0x372df3[0x0]['getJoined'](_0x57fe49);if(_0x191c9a){_0x372df3[0x0]=_0x191c9a;continue;}}_0x372df3['push'](_0x57fe49);}_0x4c732f['push']([_0x5a2488['view'],_0x372df3]);}return _0x4c732f;}),this['listenTo'](_0x2ab9d8,'suggestionLoaded',(_0x414bbd,_0x1499d5)=>{this['listenTo'](_0x1499d5,'change:previous',(_0x595b0c,_0x2eb0f7,_0x3dacfd,_0x30ad94)=>{_0x1499d5['isInContent']&&(null==_0x3dacfd?(this['_updateController'](_0x30ad94['head']),this['_handleSuggestionControllerDelayed'](_0x1499d5,!0x1)):(this['_updateController'](_0x3dacfd['head']),null==_0x30ad94&&this['_handleSuggestionControllerDelayed'](_0x1499d5,!0x0)));}),null!==_0x1499d5['previous']?this['_updateController'](_0x1499d5['head']):this['_handleSuggestionControllerDelayed'](_0x1499d5,!0x1);}),this['listenTo'](_0x2ab9d8,'suggestionUnloaded',(_0xa23bee,_0x4a3f09,_0xbaa940)=>{this['stopListening'](_0x4a3f09,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4a3f09),this['_suggestionToController']['has'](_0x4a3f09)&&this['_destroyController'](_0x4a3f09),_0xbaa940&&this['_updateController'](_0xbaa940['head']);}),this['listenTo'](_0x2ab9d8,'suggestionChanged',(_0x4912a6,_0x201db6)=>{this['_updateController'](_0x201db6);}),this['listenTo'](_0x201418,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2726e,'addComment',(_0x2bb781,{threadId:_0x4b8e4e,isFromAdapter:_0x497922})=>{if(_0x497922||!_0x2ab9d8['hasSuggestion'](_0x4b8e4e))return;const _0x4b5ce9=_0x2ab9d8['getSuggestion'](_0x4b8e4e);this['_suggestionToController']['get'](_0x4b5ce9)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x55f124=this['editor']['plugins']['get']('Annotations'),_0x2f9d1b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b94e2=Array['from'](_0x55f124['activeAnnotations'],_0x17e596=>_0x17e596['innerView'])['filter'](_0x575d5a=>this['_viewToController']['has'](_0x575d5a)),_0x2d4b56=[];for(const _0x58ac28 of _0x1b94e2){const _0x63ca1c=this['_viewToController']['get'](_0x58ac28)['model']['getAllAdjacentSuggestions']();_0x2d4b56['push'](..._0x63ca1c['reduce']((_0x2edeb7,_0x55953a)=>[..._0x2edeb7,..._0x55953a['getMarkerNames']()],[]));}_0x2f9d1b['activeMarkers']=_0x2d4b56;}['_addUIComponentsToFactory'](){const _0x1bcd2a=this['editor'],_0x67b510=_0x1bcd2a['locale'],_0x34989b=o(_0x67b510,'Track\x20changes'),_0x42f2d8=new Wt([{'type':'switchbutton','model':new _0x2ca3a4({'withText':!0x0,'isToggleable':!0x0,'label':_0x34989b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2ca3a4({'withText':!0x0,'label':o(_0x67b510,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ca3a4({'withText':!0x0,'label':o(_0x67b510,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ca3a4({'withText':!0x0,'label':o(_0x67b510,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ca3a4({'withText':!0x0,'label':o(_0x67b510,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x4b61a3 of _0x42f2d8)if(re(_0x4b61a3)){const _0x25fcba=_0x1bcd2a['commands']['get'](_0x4b61a3['model']['commandName']);_0x4b61a3['model']['bind']('isOn','isEnabled')['to'](_0x25fcba,'value','isEnabled');}_0x1bcd2a['ui']['componentFactory']['add']('trackChanges',_0x787cf1=>this['_createToolbarButton'](_0x787cf1,_0x42f2d8,_0x34989b)),_0x1bcd2a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2d12dd=>this['_createMenuBarMenu'](_0x2d12dd,_0x42f2d8,_0x34989b));}['_createToolbarButton'](_0x3edc09,_0x2870e3,_0x49352b){const _0x1c66b5=zt(_0x3edc09,te),_0x3acec4=this['editor']['commands']['get']('trackChanges');_0x1c66b5['buttonView']['set']({'tooltip':_0x49352b,'label':_0x49352b,'icon':ae}),_0x1c66b5['buttonView']['bind']('isOn')['to'](_0x3acec4,'value'),_0x1c66b5['buttonView']['on']('execute',()=>{_0x3acec4['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1c66b5,_0x2870e3,{'role':'menu'});const _0x4df3f4=[];for(const _0x16ce80 of _0x2870e3)re(_0x16ce80)&&_0x4df3f4['push'](this['editor']['commands']['get'](_0x16ce80['model']['commandName']));const _0x33a282=_0x1c66b5['buttonView'];return _0x33a282['actionView']['unbind']('isEnabled'),_0x33a282['arrowView']['unbind']('isEnabled'),_0x33a282['actionView']['bind']('isEnabled')['to'](_0x3acec4,'isEnabled'),_0x33a282['arrowView']['bind']('isEnabled')['toMany'](_0x4df3f4,'isEnabled',(..._0x199c2e)=>_0x199c2e['some'](_0x4477dd=>_0x4477dd)),_0x1c66b5['on']('execute',_0x307833=>{this['editor']['execute'](_0x307833['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1c66b5;}['_createMenuBarMenu'](_0xf54b2c,_0x33413c,_0x55c2ad){const _0x78512e=new Qt(_0xf54b2c),_0x51e8ac=this['editor']['commands']['get']('trackChanges');_0x78512e['buttonView']['set']({'label':_0x55c2ad,'icon':ae});const _0x696db3=new Xt(_0xf54b2c);for(const _0x4c4115 of _0x33413c){if('separator'==_0x4c4115['type']){_0x696db3['items']['add'](new Kt(_0xf54b2c));continue;}const _0x3062e7=new Yt(_0xf54b2c,_0x78512e),_0x19259d=new Zt(_0xf54b2c),_0x3f860f=_0x4c4115['model'];_0x19259d['bind'](...Object['keys'](_0x3f860f))['to'](_0x3f860f),_0x19259d['delegate']('execute')['to'](_0x78512e),_0x19259d['on']('execute',()=>{this['editor']['execute'](_0x3f860f['commandName']),this['editor']['editing']['view']['focus']();}),_0x3062e7['children']['add'](_0x19259d),_0x696db3['items']['add'](_0x3062e7);}return _0x78512e['bind']('isEnabled')['to'](_0x51e8ac,'isEnabled'),_0x78512e['panelView']['children']['add'](_0x696db3),_0x78512e;}['_initializeController'](_0x2b8e9e){const _0x87d3c9=this['editor'],_0x3a57ea=_0x87d3c9['config'],_0x454902=_0x87d3c9['plugins']['get']('Annotations'),_0x468032=_0x87d3c9['plugins']['get']('CommentsRepository'),_0x15d648=_0x87d3c9['plugins']['get']('EditorAnnotations'),_0x5753f3=_0x87d3c9['plugins']['get'](_0x5c5163)['me'],_0x2c2459=_0x3a57ea['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x5799ca,CommentThreadInputView:_0x5329ab}=_0x87d3c9['plugins']['get']('CommentsUI');let _0x33ad4d,_0x3c111b;this['_annotationViews']['has'](_0x2b8e9e['id'])?(_0x3c111b=this['_annotationViews']['get'](_0x2b8e9e['id']),_0x33ad4d=_0x3c111b['mainView']):(_0x33ad4d=new _0x2c2459(_0x87d3c9['locale'],_0x2b8e9e,_0x5753f3,{'disableComments':this['_disableComments'],'editorConfig':_0x3a57ea['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3a57ea['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3a57ea['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3a57ea['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x108a80(_0x3a57ea['get']('locale')),'CommentView':_0x3a57ea['get']('comments')['CommentView'],'CommentsListView':_0x5799ca,'CommentThreadInputView':_0x5329ab}),_0x33ad4d['acceptButton']['on']('execute',()=>{_0x87d3c9['editing']['view']['focus']();}),_0x33ad4d['discardButton']['on']('execute',()=>{_0x87d3c9['editing']['view']['focus']();}),_0x3c111b=_0x454902['createAnnotationView'](this['editor']['locale'],_0x33ad4d),_0x3c111b['bind']('isDirty')['to'](_0x33ad4d,'isDirty'),_0x3c111b['bind']('length')['to'](_0x33ad4d),_0x3c111b['bind']('type')['to'](_0x33ad4d,'type',_0x1d8a43=>'suggestion-'+_0x1d8a43),this['_annotationViews']['set'](_0x2b8e9e['id'],_0x3c111b));const _0x57fe41=_0x468032['createCommentThreadController'](_0x2b8e9e['commentThread'],_0x33ad4d),_0x105470=new ne(_0x87d3c9,_0x2b8e9e,_0x33ad4d,_0x57fe41),_0x4012f3=_0x2b8e9e['getAllAdjacentSuggestions']()['filter'](_0x568f01=>_0x568f01['isInContent']);_0x33ad4d['descriptionParts']=_0x87d3c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4012f3),this['_suggestionToController']['set'](_0x2b8e9e,_0x105470),this['_viewToController']['set'](_0x33ad4d,_0x105470);const _0x332b4b=_0x454902['createAnnotation']({'view':_0x3c111b,'target':()=>{const _0x206748=[],_0x53e9e8=_0x2b8e9e['getAllAdjacentSuggestions']()['filter'](_0x2e6cfa=>_0x2e6cfa['isInContent']);for(const _0x251241 of _0x53e9e8)_0x206748['push'](..._0x251241['getMarkers']());return _0xea3437(_0x87d3c9['editing'],_0x206748);},'type':()=>'suggestion-'+_0x105470['view']['type']});_0x468032['_bindAnnotationToEditors'](_0x33ad4d,_0x332b4b),_0x454902['add'](_0x332b4b),_0x15d648['registerAnnotation'](_0x332b4b);}['_destroyController'](_0x209da6){const _0x3e4ad4=this['editor']['plugins']['get']('CommentsRepository'),_0x44f897=this['editor']['plugins']['get']('Annotations'),_0x2a6ed6=this['_suggestionToController']['get'](_0x209da6),_0x4483a3=_0x2a6ed6['view'],_0x359143=_0x44f897['getByInnerView'](_0x4483a3);_0x3e4ad4['_unbindEditors'](_0x4483a3),_0x359143&&_0x44f897['remove'](_0x359143),this['_suggestionToController']['delete'](_0x209da6),this['_viewToController']['delete'](_0x4483a3),_0x2a6ed6['destroy']();}['_updateController'](_0x2222a9){if(!_0x2222a9['isInContent']||!this['_suggestionToController']['has'](_0x2222a9))return;const _0xf1df3f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cef07=this['_suggestionToController']['get'](_0x2222a9),_0x38bbc3=_0x2222a9['getAllAdjacentSuggestions']();_0x3cef07['view']['descriptionParts']=_0xf1df3f['descriptionFactory']['getDescriptions'](_0x38bbc3);}['destroy'](){for(const _0x2fa7cd of this['_suggestionToController']['keys']())this['_destroyController'](_0x2fa7cd);for(const _0x242e62 of this['_annotationViews']['values']())_0x242e62['mainView']['destroy']();super['destroy']();}}function re(_0x1a453e){return'model'in _0x1a453e;}class k extends _0x4751ae{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5c600c){this['editor']['plugins']['get'](p)['adapter']=_0x5c600c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x19ccbb){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x19ccbb);}['getSuggestions']({skipNotAttached:_0xba5f35=!0x1,toJSON:_0x13643d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xba5f35,'toJSON':_0x13643d});}['getSuggestion'](_0x403b30){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x403b30);}}const T=['Pagination'];class P extends _0x4751ae{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x476395=this['editor'];if(_0x476395['config']['define']('trackChangesData.editorCreator',_0x440c8e=>{const _0xa128b9=_0x476395['model']['document']['getRootNames']()['reduce']((_0x4b2bb2,_0x1bc754)=>(_0x4b2bb2[_0x1bc754]='',_0x4b2bb2),{});return _0x476395['constructor']['create'](_0xa128b9,_0x440c8e);}),'function'!=typeof _0x476395['config']['get']('trackChangesData')['editorCreator'])throw new _0x3e1be4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x224c3a){return N(this['editor'],!0x0,_0x224c3a);}['getDataWithDiscardedSuggestions'](_0x1d97cf){return N(this['editor'],!0x1,_0x1d97cf);}}class D extends _0x4751ae{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x408f8c){super(_0x408f8c),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(_0x2cc967){return void 0x0!==_0x2cc967['getRootsAttributes'];}async function N(_0x209a64,_0x3a63b7,_0x19ce72){const _0x47ba86=_0x1f6189(_0x209a64,T);_0x47ba86['plugins']['push'](p,D),_0x47ba86['rootsAttributes']=v(_0x209a64)?_0x209a64['getRootsAttributes']():void 0x0;const _0x2d0921=document['createDocumentFragment'](),_0x5036ec=_0x209a64['config']['get']('trackChangesData')['editorCreator'],_0x21e90c=await _0x5036ec(_0x47ba86,()=>function(_0xb55ae4){const _0x32ccf3=document['createElement']('div');return _0xb55ae4['appendChild'](_0x32ccf3),_0x32ccf3;}(_0x2d0921));!function(_0x5cfd0c,_0x510dd2){const _0x3a7dec=_0x5cfd0c['model']['document']['getRootNames']()['reduce']((_0x2d6d7e,_0x5735da)=>(_0x2d6d7e[_0x5735da]=_0x5cfd0c['data']['get']({'rootName':_0x5735da}),_0x2d6d7e),{}),_0x5981d5=_0x5cfd0c['plugins']['get']('Users')['users']['map'](_0x204400=>({'id':_0x204400['id'],'name':_0x204400['name']})),_0x306bc8=_0x5cfd0c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x177b12=_0x5cfd0c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2c6c1b=_0x510dd2['plugins']['get']('Users'),_0x4b6601=_0x510dd2['plugins']['get']('TrackChangesEditing'),_0x3131d7=_0x510dd2['plugins']['get']('CommentsRepository');for(const _0x12bde1 of _0x5981d5)_0x2c6c1b['getUser'](_0x12bde1['id'])||_0x2c6c1b['addUser'](_0x12bde1);_0x2c6c1b['me']||_0x2c6c1b['useAnonymousUser']();for(const _0x50d469 of _0x177b12)_0x3131d7['addCommentThread'](_0x50d469);for(const _0x1549cf of _0x306bc8)_0x4b6601['addSuggestionData'](_0x1549cf);_0x510dd2['data']['set'](_0x3a7dec);}(_0x209a64,_0x21e90c),_0x21e90c['execute'](_0x3a63b7?'acceptAllSuggestions':'discardAllSuggestions');const _0x30990c=v(_0x21e90c)?_0x21e90c['getFullData'](_0x19ce72):_0x21e90c['data']['get'](_0x19ce72);return await _0x21e90c['destroy'](),_0x30990c;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x588c48,PendingActions as _0x5a468c,icons as _0x10de14}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x52ebd1,ObservableMixin as _0x380ad6,uid as _0x417a0e,insertToPriorityArray as _0x441f29,priorities as _0x4cefce,logWarning as _0x33f568,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x34c877,View as _0x4f4ff0,ButtonView as _0x383d10,ViewModel as _0x58351e,createDropdown as zt,SplitButtonView as te,addListToDropdown as qt,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 _0x1944ad,hashObject as _0x3262f6,surroundingMarkersDetector as _0x117e0a,trimHtml as _0x5bf010,UserView as _0xf3e1ff,getDateTimeFormatter as _0x104744,getAllMarkersDomElementsSorted as _0x318fbe,sanitizeEditorConfig as _0x5d1e00}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x23670a,LiveRange as _0x32fb4b,LivePosition as _0xc29440}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2bf57d,toWidget as _0x568ea0}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1d5a14,set as _0x29028d,isEqual as _0x4cb47d,unset as _0x52d117,omit as xt}from'lodash-es';import{Delete as _0x55fba1,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5ac7bf,ShiftEnter as _0x571644}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x2f3619,_0x577c85){super(_0x2f3619),this['_enabledCommands']=_0x577c85,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 _0x399e60 of this['editor']['commands']['commands']())_0x399e60['affectsData']&&!this['_enabledCommands']['has'](_0x399e60)&&_0x399e60['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x587d5e of this['editor']['commands']['commands']())_0x587d5e['affectsData']&&!this['_enabledCommands']['has'](_0x587d5e)&&_0x587d5e['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x5e295d,_0x27b7c1){super(_0x5e295d),this['_suggestions']=_0x27b7c1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x495da9){const _0x1382bc=this['_suggestions']['get'](_0x495da9);if(!_0x1382bc)throw new _0x52ebd1('track-changes-accept-suggestion-not-found',this);const _0x563036=_0x1382bc['getRanges']();this['editor']['model']['canEditAt'](_0x563036)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1382bc);}}class B extends ts{['_suggestions'];constructor(_0x5b1323,_0x5d55e9){super(_0x5b1323),this['_suggestions']=_0x5d55e9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x34d768){const _0x2a6302=this['_suggestions']['get'](_0x34d768);if(!_0x2a6302)throw new _0x52ebd1('track-changes-discard-suggestion-not-found',this);const _0x5f1e0a=_0x2a6302['getRanges']();this['editor']['model']['canEditAt'](_0x5f1e0a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2a6302);}}function ss(_0x55088b){return _0x55088b['sort']((_0x35a709,_0x339999)=>'deletion'==_0x35a709['type']&&'deletion'!=_0x339999['type']?-0x1:'deletion'!=_0x35a709['type']&&'deletion'==_0x339999['type']?0x1:0x0);}function to(_0x2fa237,_0x38afa1){let _0x370947,_0x3bea33=0x0;const _0x541372=[],_0x260b0f=_0x38afa1['schema'];for(;_0x3bea33<_0x2fa237['length'];){const _0x2dae50=_0x2fa237[_0x3bea33],_0x2f929a=_0x2fa237[_0x3bea33+0x1];_0x370947||(_0x370947=_0x38afa1['createPositionBefore'](_0x2dae50)),co(_0x38afa1,_0x2dae50,_0x2f929a)||(_0x541372['push'](_0x38afa1['createRange'](_0x370947,_0x260b0f['isObject'](_0x2dae50)?_0x38afa1['createPositionAfter'](_0x2dae50):_0x38afa1['createPositionAt'](_0x2dae50,'end'))),_0x370947=null),_0x3bea33++;}return _0x541372;}function co(_0x54e8cc,_0x4ccadc,_0x287296){if(!_0x287296)return!0x1;const _0x3f7e41=_0x54e8cc['createPositionAfter'](_0x4ccadc),_0x32f9ba=_0x54e8cc['createPositionBefore'](_0x287296);return _0x3f7e41['isTouching'](_0x32f9ba);}function rs(_0x5bbc55,_0x249539,_0x540982){for(;_0x540982['length'];){const _0x1d83a0=_0x540982['splice'](0x0,0x64);_0x5bbc55['change'](()=>{for(const _0x1f1581 of _0x1d83a0)_0x1f1581['isInContent']&&_0x249539['execute'](_0x1f1581['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x367a21,_0xe4c8b,_0x426596){super(_0x367a21),this['_command']=_0xe4c8b,this['_suggestions']=_0x426596,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2d4b80=Array['from'](this['_suggestions']['values']())['some'](_0x9bfd73=>_0x9bfd73['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2d4b80;}['execute'](){const _0x4854fc=ss(Array['from'](this['_suggestions']['values']()));for(const _0x36ccff of _0x4854fc){const _0x224fb5=_0x36ccff['getRanges']();if(!this['editor']['model']['canEditAt'](_0x224fb5))return;}rs(this['editor']['model'],this['_command'],_0x4854fc);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x13fd68,_0x1ee706,_0x9547ac){super(_0x13fd68),this['_command']=_0x1ee706,this['_suggestions']=_0x9547ac,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2be527=this['editor']['model']['document']['selection'],_0x52ecfe=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x16998b,_0x555b8c){const _0x517b6a=Array['from'](_0x16998b['getRanges']()),_0x6d4e8b=new Set();for(const _0x5b0475 of _0x555b8c)if(_0x5b0475['isInContent']){for(const _0x3bbaa1 of _0x517b6a)for(const _0x569cd7 of _0x5b0475['getRanges']())(_0x3bbaa1['isIntersecting'](_0x569cd7)||_0x16998b['isCollapsed']&&!_0x5b0475['isMultiRange']&&_0x5b0475['next']&&_0x569cd7['end']['isTouching'](_0x3bbaa1['start']))&&_0x6d4e8b['add'](_0x5b0475);}return _0x6d4e8b;}(_0x2be527,_0x52ecfe),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x275855=ss(Array['from'](this['_selectedSuggestions']));for(const _0x31cf58 of _0x275855){const _0x11597d=_0x31cf58['getRanges']();if(!this['editor']['model']['canEditAt'](_0x11597d))return;}rs(this['editor']['model'],this['_command'],_0x275855);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x380ad6(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1b08ab,_0x45883f){super(),this['id']=_0x45883f['id'],this['type']=_0x45883f['type'],this['subType']=_0x45883f['subType']||null,this['author']=_0x45883f['author'],this['creator']=_0x45883f['creator']||_0x45883f['author'],this['isExternal']=Boolean(_0x45883f['attributes']&&_0x45883f['attributes']['@external']),this['data']=null,this['_model']=_0x1b08ab,this['_onAccept']=_0x45883f['onAccept'],this['_onDiscard']=_0x45883f['onDiscard'],this['_onAttributesChange']=_0x45883f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x45883f['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 _0x1cbaab=this;for(;_0x1cbaab['previous'];)_0x1cbaab=_0x1cbaab['previous'];return _0x1cbaab;}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'](_0x3723cd){this['_markerNames']['add'](_0x3723cd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4200e7=>this['_model']['markers']['get'](_0x4200e7))['filter'](_0x289156=>_0x289156);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x22ab1d=>{for(const _0x214840 of this['getMarkers']())_0x22ab1d['removeMarker'](_0x214840);}),this['_markerNames']['clear']();}['removeMarker'](_0x39d874){this['_model']['change'](_0x38804c=>{_0x38804c['removeMarker'](_0x39d874);}),this['_markerNames']['delete'](_0x39d874);}['addRange'](_0x307eb1){const _0x4d2f39='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4d2f39),this['_model']['change'](_0x79c835=>{_0x79c835['addMarker'](_0x4d2f39,{'range':_0x307eb1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4b3115){for(const _0x37296b of this['getRanges']())if(_0x37296b['isIntersecting'](_0x4b3115))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xb276b1=>_0xb276b1['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x531c7a,_0x29d556)=>[..._0x531c7a,..._0x29d556['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2a057b=this['getRanges']();if(0x1!=_0x2a057b['length'])return null;const _0x165ad8=_0x2a057b[0x0],_0x52003a=_0x165ad8['start']['nodeAfter'],_0x5bf398=_0x165ad8['end']['nodeBefore'];return _0x52003a instanceof _0x23670a?_0x52003a!=_0x5bf398?null:_0x52003a: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 _0x6d66e4=[];let _0x3c2dbe=this['head'];for(;_0x3c2dbe;)_0x6d66e4['push'](_0x3c2dbe),_0x3c2dbe=_0x3c2dbe['next'];return _0x6d66e4;}['setAttribute'](_0x4d6aa8,_0x15a7b1){const _0xdd7e74=_0x1d5a14(this['attributes']);_0x29028d(_0xdd7e74,_0x4d6aa8,_0x15a7b1),_0x4cb47d(_0xdd7e74,this['attributes'])||(this['attributes']=_0xdd7e74,this['_onAttributesChange'](_0xdd7e74));}['removeAttribute'](_0x46ed27){const _0xa07371=_0x1d5a14(this['attributes']);_0x52d117(_0xa07371,_0x46ed27),_0x4cb47d(_0xa07371,this['attributes'])||(this['attributes']=_0xa07371,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 _0x417a0e()['substr'](0x1,0x5);}}function o(_0x52a8b5,_0x438c02,_0x5820aa){const t=_0x52a8b5['t'];switch(_0x438c02){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',_0x5820aa);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5820aa);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5820aa);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5820aa);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5820aa);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',_0x5820aa);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5820aa);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',_0x5820aa);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5820aa);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5820aa);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5820aa);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5820aa);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5820aa);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5820aa);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5820aa);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5820aa);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5820aa);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5820aa);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5820aa);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5820aa);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5820aa);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5820aa);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5820aa);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'},_0x5820aa);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5820aa);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5820aa);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5820aa);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5820aa);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5820aa);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'},_0x5820aa);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5820aa);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5820aa);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5820aa);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5820aa);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'},_0x5820aa);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5820aa);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'},_0x5820aa);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'},_0x5820aa);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5820aa);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'},_0x5820aa);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5820aa);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'},_0x5820aa);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5820aa);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5820aa);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'},_0x5820aa);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'},_0x5820aa);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'},_0x5820aa);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 _0x438c02;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4ca994,_0x298877){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4ca994,this['_locale']=_0x298877;}['getDescriptions'](_0x24a9e0){const _0x4491f6=[],_0x5f1ef6=new Set(),_0x1b93c9=new Set();for(let _0x4e4b5f=0x0;_0x4e4b5f<_0x24a9e0['length'];_0x4e4b5f++){const _0x294178=_0x24a9e0[_0x4e4b5f];if(!_0x294178['isInContent'])continue;const _0x3f58e4=this['_handleCustomCallbackDescription'](_0x294178);if(_0x3f58e4){if(null!=_0x294178['subType']){if(_0x5f1ef6['has'](_0x294178['subType']))continue;_0x5f1ef6['add'](_0x294178['subType']);}_0x4491f6['push'](_0x3f58e4);}else{if('attribute'!=_0x294178['type'])'insertion'!=_0x294178['type']&&'deletion'!=_0x294178['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4491f6,_0x294178,_0x24a9e0[_0x4e4b5f+0x1]);else{const _0x176c4d=_0x294178['data']['key'];if(_0x1b93c9['has'](_0x176c4d))continue;_0x1b93c9['add'](_0x294178['data']['key']),_0x176c4d==m?this['_handleRenameSuggestionDescription'](_0x4491f6,_0x294178):this['_handleAttributeSuggestionDescription'](_0x4491f6,_0x294178);}}}return this['_resolveDescriptionItems'](_0x4491f6);}['registerDescriptionCallback'](_0x2f878f){this['_customCallbacks']['push'](_0x2f878f);}['registerElementLabel'](_0x146ca0,_0x594cf2,_0x54fa10=_0x4cefce['normal']){'function'==typeof _0x146ca0?_0x441f29(this['_itemLabelsCallbacks'],{'matchingCallback':_0x146ca0,'label':_0x594cf2,'priority':_0x54fa10}):this['_itemLabels']['set'](_0x146ca0,_0x594cf2);}['registerAttributeLabel'](_0x1dc160,_0x4f1290){this['_attributeLabels']['set'](_0x1dc160,_0x4f1290);}['getItemLabel'](_0x4e3535,_0x226d22=0x1){let _0x3f6ee2;for(const _0x1f3b7e of this['_itemLabelsCallbacks'])if(_0x1f3b7e['matchingCallback'](_0x4e3535)){_0x3f6ee2=_0x1f3b7e['label'];break;}return _0x3f6ee2||(_0x3f6ee2=this['_itemLabels']['get'](_0x4e3535['name'])),_0x3f6ee2?_0x3f6ee2(_0x226d22):0x1!==_0x226d22?_0x226d22+'\x20'+_0x4e3535['name']+'s':''+_0x4e3535['name'];}['_addDescriptionItems'](_0x388417,_0x230e85){const _0x555593=_0x230e85['getFirstRange']()['getWalker'](),_0x5d4a85='insertion'==_0x230e85['type']?'add':'remove';for(const _0x38c944 of _0x555593){const _0xb4227f=_0x38c944['item'],_0xcc3bb7=_0x388417[_0x388417['length']-0x1];if(_0xb4227f['is']('$textProxy'))_0xcc3bb7&&_0xcc3bb7['type']['indexOf']('Container')>-0x1&&_0x388417['pop'](),_0xcc3bb7&&'text'==_0xcc3bb7['type']?_0xcc3bb7[_0x5d4a85]+=_0xb4227f['data']:_0x388417['push']({'type':'text','add':'add'==_0x5d4a85?_0xb4227f['data']:'','remove':'remove'==_0x5d4a85?_0xb4227f['data']:''});else{if(this['_schema']['isObject'](_0xb4227f)){const _0x23d5d0=_0xb4227f;if(_0xcc3bb7&&_0xcc3bb7['type']['indexOf']('Container')>-0x1&&_0x388417['pop'](),'elementEnd'==_0x38c944['type'])continue;_0xcc3bb7&&_0xcc3bb7['type']==_0x5d4a85+'Object'&&_0xcc3bb7['element']['name']==_0x23d5d0['name']?_0xcc3bb7['quantity']++:_0x388417['push']({'type':_0x5d4a85+'Object','element':_0x23d5d0,'quantity':0x1}),_0x555593['skip'](_0x30c9f7=>!('elementEnd'==_0x30c9f7['type']&&_0x30c9f7['item']==_0xb4227f));}else{if(this['_schema']['checkChild'](_0xb4227f,'$text')||_0xb4227f['is']('element','softBreak')){const _0x37d7de=_0xb4227f;if('add'==_0x5d4a85&&'elementStart'==_0x38c944['type']||'remove'==_0x5d4a85&&'elementEnd'==_0x38c944['type'])continue;if(_0xcc3bb7&&-0x1==_0xcc3bb7['type']['indexOf']('Container')){'text'==_0xcc3bb7['type']&&(_0xcc3bb7[_0x5d4a85]+='\x0a');continue;}let _0x5a51f4;if(_0x5a51f4='add'==_0x5d4a85?_0x37d7de['nextSibling']&&!this['_schema']['isObject'](_0x37d7de['nextSibling'])?_0x37d7de['nextSibling']:null:_0x37d7de['previousSibling']&&!this['_schema']['isObject'](_0x37d7de['previousSibling'])?_0x37d7de['previousSibling']:null,_0x37d7de['isEmpty']||_0x5a51f4&&_0x5a51f4['isEmpty']){const _0x2ad07a=_0x5a51f4&&_0x5a51f4['isEmpty']?_0x5a51f4:_0x37d7de;_0xcc3bb7&&_0xcc3bb7['type']==_0x5d4a85+'EmptyContainer'&&_0xcc3bb7['element']['name']==_0x2ad07a['name']?_0xcc3bb7['quantity']++:_0x388417['push']({'type':_0x5d4a85+'EmptyContainer','element':_0x2ad07a,'quantity':0x1});}else _0x388417['push']({'type':_0x5d4a85+'Container','element':_0x37d7de});}}}}}['_resolveDescriptionItems'](_0x2b83a5){const _0x3756dc=this['_locale'],_0x162dfd=[],_0x1aff72=[],_0x5aef04=[];for(const _0x17775a of _0x2b83a5)switch(_0x17775a['type']){case'text':if(_0x17775a['add']=_0x17775a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x17775a['remove']=_0x17775a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x17775a['add']&&''!=_0x17775a['remove']){_0x162dfd['push']({'type':'replace','content':o(_0x3756dc,'REPLACE_TEXT',['\x22'+_0x17775a['remove']+'\x22','\x22'+_0x17775a['add']+'\x22'])});continue;}if(null!=_0x17775a['add']['match'](/^ +$/)){_0x162dfd['push']({'type':'insertion','content':o(_0x3756dc,'*Insert:*\x20%0',o(_0x3756dc,'ELEMENT_SPACE',_0x17775a['add']['length']))});continue;}if(null!=_0x17775a['remove']['match'](/^ +$/)){_0x162dfd['push']({'type':'deletion','content':o(_0x3756dc,'*Remove:*\x20%0',o(_0x3756dc,'ELEMENT_SPACE',_0x17775a['remove']['length']))});continue;}if(''!=_0x17775a['add']){_0x162dfd['push']({'type':'insertion','content':o(_0x3756dc,'*Insert:*\x20%0','\x22'+_0x17775a['add']+'\x22')});continue;}_0x162dfd['push']({'type':'deletion','content':o(_0x3756dc,'*Remove:*\x20%0','\x22'+_0x17775a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x162dfd['push']({'type':'insertion','content':o(_0x3756dc,'*Insert:*\x20%0',this['getItemLabel'](_0x17775a['element'],_0x17775a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x162dfd['push']({'type':'deletion','content':o(_0x3756dc,'*Remove:*\x20%0',this['getItemLabel'](_0x17775a['element'],_0x17775a['quantity']))});continue;case'addContainer':_0x162dfd['push']({'type':'insertion','content':o(_0x3756dc,'*Split:*\x20%0',this['getItemLabel'](_0x17775a['element'],_0x17775a['quantity']))});continue;case'removeContainer':_0x162dfd['push']({'type':'deletion','content':o(_0x3756dc,'*Merge:*\x20%0',this['getItemLabel'](_0x17775a['element'],_0x17775a['quantity']))});continue;case'addFormat':_0x1aff72['push'](_0x17775a['key']);continue;case'removeFormat':_0x5aef04['push'](_0x17775a['key']);continue;default:_0x162dfd['push'](_0x17775a);}if(_0x1aff72['length']){const _0xbf45b4=_0x1aff72['map'](_0x1b3d36=>this['_attributeLabels']['has'](_0x1b3d36)?this['_attributeLabels']['get'](_0x1b3d36):_0x1b3d36)['join'](',\x20');_0x162dfd['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xbf45b4)});}if(_0x5aef04['length']){const _0x3e0581=_0x5aef04['map'](_0x257a07=>this['_attributeLabels']['has'](_0x257a07)?this['_attributeLabels']['get'](_0x257a07):_0x257a07)['join'](',\x20');_0x162dfd['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3e0581)});}return _0x162dfd;}['_handleCustomCallbackDescription'](_0x5d0c2f){for(const _0x44413b of this['_customCallbacks']){const _0x7cb67d=_0x44413b(_0x5d0c2f);if(_0x7cb67d&&'type'in _0x7cb67d)return _0x7cb67d;}}['_handleAttributeSuggestionDescription'](_0x4a88cf,_0x1a99b7){const _0x3be619=_0x1a99b7['data'],_0x3f55c6=void 0x0===_0x3be619['newValue']?'removeFormat':'addFormat';_0x4a88cf['push']({'type':_0x3f55c6,'key':_0x3be619['key']});}['_handleRenameSuggestionDescription'](_0x45040a,_0x5c37f9){_0x45040a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5c37f9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5ac059,_0x3605e0,_0x28cb81){if(this['_addDescriptionItems'](_0x5ac059,_0x3605e0),_0x28cb81&&_0x28cb81['getFirstRange']()&&!_0x3605e0['getFirstRange']()['end']['isEqual'](_0x28cb81['getFirstRange']()['start'])){const _0x290c55=_0x5ac059[_0x5ac059['length']-0x1],_0x2d36bf='insertion'==_0x3605e0['type']?'add':'remove';_0x290c55&&'text'==_0x290c55['type']&&(_0x290c55[_0x2d36bf]+='\x0a');}}}class E extends _0x588c48{['afterInit'](){const _0x439951=this['editor'],_0x35ddc0=_0x439951['plugins']['get']('TrackChangesEditing');_0x439951['commands']['get']('showAIAssistant')&&_0x35ddc0['enableCommand']('showAIAssistant');}}class O extends _0x588c48{['afterInit'](){const _0x137e70=this['editor'],_0x55a054=_0x137e70['locale'];if(!_0x137e70['plugins']['has']('AlignmentEditing'))return;const _0x2263ad=_0x137e70['plugins']['get']('TrackChangesEditing');_0x2263ad['enableDefaultAttributesIntegration']('alignment'),_0x2263ad['registerBlockAttribute']('alignment'),_0x2263ad['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x55a054,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb850cb=this['editor'],_0x445c25=_0xb850cb['locale'];_0xb850cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x538486=>{if('formatBlock'!=_0x538486['type'])return;const {data:_0x44bcf9}=_0x538486;if(_0x44bcf9&&'alignment'==_0x44bcf9['commandName']){const _0x521e5d=_0x44bcf9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x445c25,'*Format:*\x20%0',function(_0x43abb1){switch(_0x43abb1){case'left':return o(_0x445c25,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x445c25,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x445c25,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x445c25,'FORMAT_JUSTIFY_TEXT');}}(_0x521e5d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x588c48{['afterInit'](){const _0x24b465=this['editor'],_0x2531da=_0x24b465['plugins']['get']('TrackChangesEditing'),_0x59743b=_0x24b465['locale'];for(const _0xc47dac of ti){if(!_0x24b465['plugins']['has'](_0xc47dac))continue;const _0x2023e0=_0xc47dac['slice'](0x0,-0x7)['toLowerCase'](),_0x549f49='FORMAT_'+_0x2023e0['toUpperCase']();_0x2531da['enableDefaultAttributesIntegration'](_0x2023e0),_0x2531da['registerInlineAttribute'](_0x2023e0),_0x2531da['descriptionFactory']['registerAttributeLabel'](_0x2023e0,o(_0x59743b,_0x549f49));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1eb933=this['editor'],_0x27f65f=_0x1eb933['locale'],_0x104141=_0x1eb933['plugins']['get']('TrackChangesEditing');function _0x3103e8(_0x3daf7f,_0x4d6ccc){_0x104141['descriptionFactory']['registerDescriptionCallback'](_0x4a61af=>{if('formatInline'!=_0x4a61af['type'])return;const {data:_0x42216d}=_0x4a61af;return _0x42216d&&_0x42216d['commandName']===_0x3daf7f?_0x42216d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27f65f,'*Format:*\x20%0',_0x4d6ccc)}:{'type':'format','content':o(_0x27f65f,'*Remove\x20format:*\x20%0',_0x4d6ccc)}:void 0x0;});}_0x3103e8('bold',o(_0x27f65f,'FORMAT_BOLD')),_0x3103e8('italic',o(_0x27f65f,'FORMAT_ITALIC')),_0x3103e8('underline',o(_0x27f65f,'FORMAT_UNDERLINE')),_0x3103e8('code',o(_0x27f65f,'FORMAT_CODE')),_0x3103e8('strikethrough',o(_0x27f65f,'FORMAT_STRIKETHROUGH')),_0x3103e8('subscript',o(_0x27f65f,'FORMAT_SUBSCRIPT')),_0x3103e8('superscript',o(_0x27f65f,'FORMAT_SUPERSCRIPT'));}}class U extends _0x588c48{['afterInit'](){const _0x30a3a0=this['editor'],_0x587d54=_0x30a3a0['locale'];if(!_0x30a3a0['plugins']['has']('BlockQuoteEditing'))return;const _0x51d1ee=_0x30a3a0['plugins']['get']('TrackChangesEditing'),_0xa03962=this['editor']['commands']['get']('blockQuote');_0x51d1ee['enableCommand']('blockQuote',(_0x8b1576,_0x398ab4={})=>{const _0x38f74d=this['editor']['model']['document']['selection'],_0x408d29=_0x398ab4&&void 0x0!==_0x398ab4['forceValue']?_0x398ab4['forceValue']:!_0xa03962['value'];let _0x2d6e65=[];if(_0x408d29){const _0x51e0f3=Array['from'](_0x38f74d['getSelectedBlocks']())['filter'](_0x4c0c0b=>oo(_0x4c0c0b)||function(_0x4e4eb2,_0x414cff){const _0x2ffe54=_0x414cff['checkChild'](_0x4e4eb2['parent'],'blockQuote'),_0x4d29e6=_0x414cff['checkChild'](['$root','blockQuote'],_0x4e4eb2);return _0x2ffe54&&_0x4d29e6;}(_0x4c0c0b,this['editor']['model']['schema']));_0x2d6e65=to(_0x51e0f3,_0x30a3a0['model']);}else{const _0x59fb58=Array['from'](_0x38f74d['getSelectedBlocks']())['filter'](_0xa18987=>oo(_0xa18987));_0x2d6e65=to(_0x59fb58,_0x30a3a0['model']);}_0x30a3a0['model']['change'](()=>{for(const _0x3b063b of _0x2d6e65)_0x51d1ee['markBlockFormat'](_0x3b063b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x408d29}]});});}),_0x51d1ee['descriptionFactory']['registerDescriptionCallback'](_0x3fdfdc=>{const {data:_0x498344}=_0x3fdfdc;if(_0x498344&&'blockQuote'==_0x498344['commandName']){const _0x4e1f97=o(_0x587d54,'ELEMENT_BLOCK_QUOTE');return _0x498344['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x587d54,'*Set\x20format:*\x20%0',_0x4e1f97)}:{'type':'format','content':o(_0x587d54,'*Remove\x20format:*\x20%0',_0x4e1f97)};}});}}function oo(_0x388d28){return'blockQuote'==_0x388d28['parent']['name'];}class G extends _0x588c48{['afterInit'](){const _0x4bbc23=this['editor'];_0x4bbc23['plugins']['has']('CaseChange')&&(_0x4bbc23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4bbc23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4bbc23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x588c48{['afterInit'](){const _0x2c53c8=this['editor'];_0x2c53c8['commands']['get']('ckbox')&&_0x2c53c8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x588c48{['afterInit'](){const _0x116c9f=this['editor'];if(!_0x116c9f['plugins']['has']('CodeBlock'))return;const _0x100dff=_0x116c9f['plugins']['get']('TrackChangesEditing'),_0x367376=_0x116c9f['locale'],_0x133fbc=_0x116c9f['config']['get']('codeBlock')['languages'],_0x582050=_0x116c9f['commands']['get']('codeBlock');_0x100dff['enableCommand']('indentCodeBlock'),_0x100dff['enableCommand']('outdentCodeBlock'),_0x100dff['enableCommand']('codeBlock',(_0x5da352,_0x5c44f5={})=>{const _0x268840=_0x116c9f['model'],_0x4c05cc=_0x116c9f['model']['document']['selection'],_0x5d8905=_0x5c44f5&&void 0x0!==_0x5c44f5['forceValue']?_0x5c44f5['forceValue']:!_0x582050['value'];let _0x4e8963;_0x5c44f5['language']||(_0x5c44f5['language']=_0x133fbc[0x0]['language']),_0x4e8963=_0x5d8905?Array['from'](_0x4c05cc['getSelectedBlocks']())['filter'](_0x40d12c=>eo(_0x40d12c)||function(_0x30f97c,_0x39055b){if(_0x30f97c['is']('rootElement')||_0x39055b['isLimit'](_0x30f97c))return!0x1;return _0x39055b['checkChild'](_0x30f97c['parent'],'codeBlock');}(_0x40d12c,_0x268840['schema'])):Array['from'](_0x4c05cc['getSelectedBlocks']())['filter'](_0x168c3c=>eo(_0x168c3c));const _0x32b072=to(_0x4e8963,_0x268840);_0x268840['change'](()=>{for(const _0x4c1db1 of _0x32b072)_0x100dff['markBlockFormat'](_0x4c1db1,{'commandName':'codeBlock','commandParams':[{..._0x5c44f5,'forceValue':_0x5d8905}],'formatGroupId':'blockName'});});}),(_0x100dff['descriptionFactory']['registerElementLabel']('codeBlock',_0x392604=>o(_0x367376,'ELEMENT_CODE_BLOCK',_0x392604)),_0x100dff['descriptionFactory']['registerDescriptionCallback'](_0x17dade=>{if('formatBlock'!=_0x17dade['type'])return;const _0x23fc7e=_0x367376['t'],{data:_0x32e09c}=_0x17dade;if(!_0x32e09c||'codeBlock'!=_0x32e09c['commandName'])return;const _0x577766=_0x32e09c['commandParams'][0x0]['language'],_0x50979a=_0x23fc7e(_0x133fbc['find'](_0x19f9f5=>_0x19f9f5['language']===_0x577766)['label'])['toLowerCase']();return _0x32e09c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x367376,'*Set\x20format:*\x20%0',o(_0x367376,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x50979a+')')}:{'type':'format','content':o(_0x367376,'*Remove\x20format:*\x20%0',o(_0x367376,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2e016a){return'codeBlock'==_0x2e016a['name'];}class H extends _0x588c48{['afterInit'](){const _0x12eae1=this['editor'];if(!_0x12eae1['plugins']['has']('CommentsEditing'))return;_0x12eae1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1ebea4,_0x4339db,_0x16156d){const _0x3e250c=[];for(const _0x329094 of _0x4339db['getItems']())_0x329094['hasAttribute'](_0x1ebea4)&&_0x3e250c['push'](_0x16156d['createRangeOn'](_0x329094));return _0x3e250c;}function _e(_0x4fe73a,_0x276e6e,{showActiveMarker:_0x1253ff=!0x0}={}){const _0x964c00=_0x4fe73a['plugins']['get']('TrackChangesEditing');return(_0x867371,_0x18e741,_0x13fa80)=>{if(!_0x13fa80['consumable']['test'](_0x18e741['markerRange'],_0x867371['name']))return;const _0x166c70=_0x18e741['markerRange']['getWalker'](),_0x37694d=_0x18e741['markerRange']['start'],_0x14b04c=_0x4fe73a['model']['schema'];let _0x5d7ddc=null,_0xdce133=null,_0x2c92ae=!0x1,_0x4415e7=!0x1;for(const _0x20265e of _0x166c70){const _0x391b87=_0x20265e['item'];_0x2c92ae=_0x2c92ae||_0x14b04c['isContent'](_0x391b87);const _0x36e52f=_0x13fa80['mapper']['toViewElement'](_0x391b87);if(_0x36e52f&&_0x36e52f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x20265e['type']&&(_0x14b04c['isBlock'](_0x391b87)&&!_0x14b04c['isLimit'](_0x391b87)&&(_0x391b87['nextSibling']||_0x37694d['isAtEnd']?_0x5d7ddc&&_0x5d7ddc['parent']==_0x391b87||(_0x5d7ddc=_0x391b87,_0x89a0b4(_0x20265e['previousPosition']),_0x4415e7=!0x0):_0xdce133=_0xdce133||_0x20265e['previousPosition']));}function _0x89a0b4(_0x48733b){const _0x2449b1=_0x13fa80['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x276e6e}),_0x52a829=_0x13fa80['mapper']['toViewPosition'](_0x48733b);_0x1253ff&&_0x964c00['activeMarkers']['includes'](_0x18e741['markerName'])&&_0x13fa80['writer']['addClass']('ck-suggestion-marker--active',_0x2449b1),_0x13fa80['writer']['insert'](_0x52a829,_0x2449b1),_0x13fa80['mapper']['bindElementToMarker'](_0x2449b1,_0x18e741['markerName']);}_0x2c92ae||_0x4415e7||!_0xdce133||_0x89a0b4(_0xdce133);};}class J extends _0x588c48{static get['requires'](){return[_0x55fba1];}['init'](){const _0x3d291b=this['editor'],_0x4a5e5d=_0x3d291b['plugins']['get']('TrackChangesEditing');_0x4a5e5d['enableCommand']('delete');const _0x560dad=_0x3d291b['commands']['get']('deleteForward');_0x4a5e5d['enableCommand']('deleteForward',(_0x4c5025,_0x741fbb={})=>{const _0x50f55b=_0x3d291b['model']['createSelection'](_0x3d291b['model']['document']['selection']);_0x50f55b['isCollapsed']&&_0x3d291b['model']['modifySelection'](_0x50f55b,{'direction':'forward','unit':_0x741fbb['unit']});const _0x13440d=_0x50f55b['getFirstRange'](),_0x7fe322=_0x32fb4b['fromRange'](_0x13440d);let _0x167564;_0x4c5025(_0x741fbb),_0x167564='$graveyard'==_0x7fe322['root']['rootName']?_0x3d291b['model']['createRange'](_0x13440d['start']):_0x3d291b['model']['createRange'](_0x7fe322['start'],_0x7fe322['end']),_0x7fe322['detach'](),_0x3d291b['model']['enqueueChange'](_0x560dad['buffer']['batch'],_0x1c90dc=>{_0x560dad['buffer']['lock'](),_0x1c90dc['setSelection'](_0x1c90dc['createRange'](_0x167564['end'])),_0x560dad['buffer']['unlock']();});}),_0x3d291b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3d291b,'merge'),{'priority':'high'}),_0x3d291b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4e5414,_0x4adf5a,_0x5f5777)=>{_0x5f5777['options']['showSuggestionHighlights']&&_e(_0x3d291b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4e5414,_0x4adf5a,_0x5f5777);},{'priority':'high'}),_0x3d291b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x25d100,_0x6528be,_0x4d76a1)=>{const _0x190a61=_0x4d76a1['mapper']['markerNameToElements'](_0x6528be['markerName']);if(_0x190a61){for(const _0x424eca of _0x190a61)_0x424eca['is']('uiElement')&&(_0x4d76a1['mapper']['unbindElementFromMarkerName'](_0x424eca,_0x6528be['markerName']),_0x4d76a1['writer']['remove'](_0x424eca));}},{'priority':'high'});}}class q extends _0x588c48{['afterInit'](){const _0x17268f=this['editor'];if(!_0x17268f['plugins']['has']('ListEditing'))return;const _0x43774e=_0x17268f['locale'],_0x168251=_0x17268f['plugins']['get']('TrackChangesEditing'),_0x2ee2ff=_0x17268f['plugins']['has']('TodoListEditing'),_0x17b074=!!_0x17268f['config']['get']('list.multiBlock');function _0x140598(_0x39d962){return{'type':'format','content':''+o(_0x43774e,'*Set\x20format:*\x20%0',_0x39d962)};}function _0x88fe25(_0x2b01d0){return{'type':'format','content':''+o(_0x43774e,'*Remove\x20format:*\x20%0',_0x2b01d0)};}_0x168251['enableDefaultAttributesIntegration']('numberedList'),_0x168251['enableDefaultAttributesIntegration']('bulletedList'),_0x168251['enableDefaultAttributesIntegration']('customNumberedList'),_0x168251['enableDefaultAttributesIntegration']('customBulletedList'),_0x168251['enableDefaultAttributesIntegration']('indentList'),_0x168251['enableDefaultAttributesIntegration']('outdentList'),_0x168251['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x168251['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x168251['registerBlockAttribute']('listItemId'),_0x168251['registerBlockAttribute']('listType'),_0x168251['registerBlockAttribute']('listIndent'),_0x17b074&&(_0x168251['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x168251['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2ee2ff&&(_0x168251['enableDefaultAttributesIntegration']('todoList'),_0x168251['enableDefaultAttributesIntegration']('checkTodoList'),_0x168251['registerBlockAttribute']('todoListChecked'),_0x168251['descriptionFactory']['registerDescriptionCallback'](_0x1fee2c=>{const {data:_0x3fbccd}=_0x1fee2c;if(_0x3fbccd&&'todoListChecked'==_0x3fbccd['key'])return{'type':'format','content':_0x3fbccd['newValue']?o(_0x43774e,'*Check\x20item*'):o(_0x43774e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x317917=>{if(_0x317917['batch']['isUndo'])return!0x1;let _0x53a9bb=!0x1;const _0x5928b9=_0x168251['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e2ab9=>'todoListChecked'===_0x168251['_getAttributeKey'](_0x3e2ab9));for(const _0x123054 of _0x5928b9){'todo'!=_0x123054['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x168251['_findSuggestions'](_0x123054['getFirstRange'](),'attribute')['find'](_0x1077b3=>'listType'===_0x168251['_getAttributeKey'](_0x1077b3['suggestion']))||(_0x317917['removeMarker'](_0x123054['getFirstMarker']()),_0x53a9bb=!0x0));}return _0x53a9bb;})),_0x168251['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x43774e,'FORMAT_INDENT'));const _0x225c6e={'type':'format','content':''};_0x168251['descriptionFactory']['registerDescriptionCallback'](_0x283641=>{const {data:_0x4a6056}=_0x283641;if(!_0x4a6056||'listType'!=_0x4a6056['key'])return;let _0x183388=_0x283641['head'];for(;_0x183388;){if(_0x183388['data']&&(('listStyle'==_0x183388['data']['key']||'listMarkerStyle'==_0x183388['data']['key'])&&(_0x183388['data']['newValue']&&'default'!=_0x183388['data']['newValue']||'default'!=_0x183388['data']['oldValue']&&!_0x4a6056['newValue'])||!_0x17b074&&_0x183388['data']['key']==m))return _0x225c6e;_0x183388=_0x183388['next'];}if(null==_0x4a6056['newValue'])switch(_0x4a6056['oldValue']){case'bulleted':return _0x88fe25(o(_0x43774e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x88fe25(o(_0x43774e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x88fe25(o(_0x43774e,'ELEMENT_TODO_LIST'));}switch(_0x4a6056['newValue']){case'bulleted':return _0x140598(o(_0x43774e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x140598(o(_0x43774e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x140598(o(_0x43774e,'ELEMENT_TODO_LIST'));}}),_0x168251['descriptionFactory']['registerDescriptionCallback'](_0x26ea94=>{const {data:_0x16fe4b}=_0x26ea94;if(_0x16fe4b&&'listIndent'==_0x16fe4b['key'])return null==_0x16fe4b['newValue']||null==_0x16fe4b['oldValue']&&0x0==_0x16fe4b['newValue']?_0x225c6e:void 0x0;}),_0x168251['descriptionFactory']['registerDescriptionCallback'](_0x134715=>{if('attribute'!=_0x134715['type'])return;const {data:_0xcf99d8}=_0x134715;if(!_0xcf99d8||'listItemId'!=_0xcf99d8['key'])return;const _0x167333=le(_0x134715);return'newValue'==_0x167333?{'type':'format','content':o(_0x43774e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x167333?{'type':'format','content':o(_0x43774e,'*Split:*\x20list\x20item')}:_0x225c6e;}),_0x17268f['model']['document']['registerPostFixer'](_0x14faf2=>this['listItemIdFixer'](_0x14faf2)),_0x17268f['model']['document']['registerPostFixer'](_0x447dc0=>this['noTrackChangesFixer'](_0x447dc0)),_0x17268f['model']['document']['on']('change:data',(_0x49adbf,_0x5d60f7)=>{if(_0x5d60f7['isUndo']||!_0x5d60f7['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5dab21){if(_0x5dab21['batch']['isUndo']||!_0x5dab21['batch']['isLocal'])return!0x1;let _0x45cd4c=!0x1;const _0x5625f1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34105d=>_0x34105d['data']&&'listItemId'==_0x34105d['data']['key'])['filter'](_0x4c9cbc=>_0x4c9cbc['data']['newValue']&&_0x4c9cbc['data']['oldValue']);for(const _0x35e595 of _0x5625f1)le(_0x35e595)||(_0x5dab21['removeMarker'](_0x35e595['getFirstMarker']()),_0x45cd4c=!0x0);return _0x45cd4c;}['noTrackChangesFixer'](_0x54fd13){if(_0x54fd13['batch']['isUndo']||!_0x54fd13['batch']['isLocal'])return!0x1;const _0x276da7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x276da7['trackChangesCommand']['value'])return!0x1;let _0x36c33b=!0x1;const _0xec87f3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xabe8a7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x41b38a=>'attribute'==_0x41b38a['type'])['filter'](_0x59e4fa=>_0xec87f3['includes'](_0x59e4fa['attributeKey']));if(0x0==_0xabe8a7['length'])return _0x36c33b;for(const _0x31e2ca of _0xabe8a7){const _0x5c613b=_0x276da7['_findSuggestions'](_0x31e2ca['range'],'attribute')['filter'](_0x4d0377=>!_0x4d0377['meta']['isNextTo'])['map'](_0x15d6d2=>_0x15d6d2['suggestion'])['filter'](_0x65e2a5=>{const _0x5bd4f9=_0x276da7['_getAttributeKey'](_0x65e2a5);return _0xec87f3['includes'](_0x5bd4f9);});if(_0x5c613b['length']){for(const _0x423456 of _0x5c613b)_0x54fd13['removeMarker'](_0x423456['getFirstMarker']());_0x36c33b=!0x0;}}return _0x36c33b;}['assureChains'](){const _0x192650=this['editor']['plugins']['get']('TrackChangesEditing'),_0x89842f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3ca45a;const _0x1f3f91=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3b0fd3=>{if(_0x3b0fd3['data']['oldRange']||!_0x3b0fd3['data']['newRange'])return null;if(!_0x3b0fd3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2e14f9}=_0x192650['_splitMarkerName'](_0x3b0fd3['name']);if(!_0x192650['hasSuggestion'](_0x2e14f9))return null;const _0x2a845c=_0x192650['getSuggestion'](_0x2e14f9);return _0x89842f['includes'](_0x2a845c['data']['key']);})['map'](_0x14a72a=>{const {id:_0x3ae224}=_0x192650['_splitMarkerName'](_0x14a72a['name']),_0x3b7baf=_0x192650['getSuggestion'](_0x3ae224);return _0x3ca45a=_0x3b7baf['attributes']['groupId'],_0x3b7baf['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1f3f91['size'])return;const _0x3d31dc=_0x192650['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1de7ee=>'attribute'==_0x1de7ee['type']&&_0x1de7ee['data']&&_0x89842f['includes'](_0x1de7ee['data']['key'])&&_0x1de7ee['attributes']['groupId']!=_0x3ca45a)['map'](_0x3f01b3=>({'listItem':_0x3f01b3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3f01b3['attributes']['groupId']})),_0x3f0b3d=new Set();for(const {groupId:_0x5540e1,listItem:_0x1e068a}of _0x3d31dc)_0x1f3f91['has'](_0x1e068a)&&_0x3f0b3d['add'](_0x5540e1);for(const _0xd2abbd of _0x192650['getSuggestions']())_0x3f0b3d['has'](_0xd2abbd['attributes']['groupId'])&&_0xd2abbd['setAttribute']('groupId',_0x3ca45a);}['_supportLegacySuggestions'](){const _0x15d2a6=this['editor'],_0x16271e=_0x15d2a6['locale'],_0x3301b5=_0x15d2a6['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3301b5['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1ef690,_0x2d3771){const _0x3d5a2a=[];for(let _0xec16b6 of _0x1ef690)_0xec16b6['start']['nodeAfter']===_0xec16b6['end']['parent']&&(_0xec16b6=_0x15d2a6['model']['createRange'](_0x15d2a6['model']['createPositionAt'](_0xec16b6['start']['nodeAfter'],0x0))),_0x3d5a2a['push'](_0xec16b6);_0x15d2a6['model']['change'](_0x44db55=>{const _0x1d3581=_0x15d2a6['model']['document']['selection'],_0x2b057e=Array['from'](_0x1d3581['getRanges']())['map'](_0xe2e9bd=>_0x32fb4b['fromRange'](_0xe2e9bd));_0x44db55['setSelection'](_0x3d5a2a),_0x15d2a6['commands']['get'](_0x2d3771['commandName'])['refresh'](),_0x2d3771['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x15d2a6['execute'](_0x2d3771['commandName'],..._0x2d3771['commandParams']),_0x44db55['setSelection'](_0x2b057e);for(const _0x1a1078 of _0x2b057e)_0x1a1078['detach']();});}),_0x3301b5['descriptionFactory']['registerElementLabel'](function(_0x24f70b){const _0x28ef3f=!_0x15d2a6['model']['schema']['isObject'](_0x24f70b),_0x2a9ba3=_0x24f70b['previousSibling'],_0x34f5ed=_0x24f70b['nextSibling'],_0xac9c5d=_0x24f70b['getAttribute']('listItemId'),_0x29efd4=!_0x2a9ba3||_0x2a9ba3['getAttribute']('listItemId')!==_0xac9c5d,_0x40ee71=!_0x34f5ed||_0x34f5ed['getAttribute']('listItemId')!==_0xac9c5d;return _0x28ef3f&&Boolean(_0xac9c5d)&&_0x29efd4&&_0x40ee71;},_0x15ffb5=>o(_0x16271e,'ELEMENT_LIST_ITEM',_0x15ffb5));}['_registerLegacyDescription'](){const _0xc1e10e=this['editor'],_0x315fb2=_0xc1e10e['locale'];function _0x70e21f(_0x80848){const _0x134f0a=_0xc1e10e['commands']['get']('bulletedList')['value'],_0x1e341e=_0xc1e10e['commands']['get']('numberedList')['value'];return'numberedList'===_0x80848?_0x134f0a:_0x1e341e;}_0xc1e10e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x384c28){if('formatBlock'!=_0x384c28['type'])return;const {data:_0x19695a}=_0x384c28;if(!_0x19695a)return;let _0x4c5b0d,_0xdf8c70,_0x5af248,_0x16ff5b;switch(_0x19695a['commandName']){case'bulletedList':_0x5af248=_0x19695a['commandParams'][0x0]['forceValue'],_0x16ff5b=_0x70e21f(_0x19695a['commandName']),_0x4c5b0d=_0x5af248?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x16ff5b&&_0xc1e10e['config']['get']('list.multiBlock')||(_0x4c5b0d='*Change\x20to:*\x20%0'),_0xdf8c70={'type':'format','content':o(_0x315fb2,_0x4c5b0d,o(_0x315fb2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5af248=_0x19695a['commandParams'][0x0]['forceValue'],_0x16ff5b=_0x70e21f(_0x19695a['commandName']),_0x4c5b0d=_0x5af248?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x16ff5b&&_0xc1e10e['config']['get']('list.multiBlock')||(_0x4c5b0d='*Change\x20to:*\x20%0'),_0xdf8c70={'type':'format','content':o(_0x315fb2,_0x4c5b0d,o(_0x315fb2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4c5b0d='*Indent:*\x20%0',_0xdf8c70={'type':'format','content':o(_0x315fb2,_0x4c5b0d,o(_0x315fb2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4c5b0d=function(_0x8ae945){const _0x58d47b=_0x8ae945['getFirstRange']();let _0x14b86d=_0x58d47b['start']['nodeAfter'];for(;_0x14b86d&&_0x58d47b['containsItem'](_0x14b86d);){if(_0x14b86d['getAttribute']('listIndent')>0x0)return!0x1;_0x14b86d=_0x14b86d['nextSibling'];}return!0x0;}(_0x384c28)?o(_0x315fb2,'*Format:*\x20remove\x20from\x20%0',o(_0x315fb2,function(_0x2e0cd7){return'ELEMENT_'+_0x2e0cd7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x384c28))):o(_0x315fb2,'*Outdent:*\x20%0',o(_0x315fb2,'ELEMENT_LIST_ITEM')),_0xdf8c70={'type':'format','content':_0x4c5b0d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x19695a['multipleBlocks']&&(_0x4c5b0d='*Merge:*\x20%0',_0xdf8c70={'type':'deletion','content':o(_0x315fb2,_0x4c5b0d,o(_0x315fb2,'ELEMENT_LIST_ITEM'))});}return _0xdf8c70;});}}function le(_0xcea2e5){let _0x106cac=_0xcea2e5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x106cac;){const _0x8ea183=_0x106cac['getAttribute']('listItemId');if(!_0x8ea183)return!0x1;if(_0x8ea183==_0xcea2e5['data']['newValue'])return'newValue';if(_0x8ea183==_0xcea2e5['data']['oldValue'])return'oldValue';_0x106cac=_0x106cac['previousSibling'];}return!0x1;}class pe extends _0x588c48{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2fb2a9=this['editor']['config']['get']('list.properties'),_0x789308=this['editor']['plugins']['get']('TrackChangesEditing');_0x2fb2a9['styles']&&(_0x789308['enableDefaultAttributesIntegration']('listStyle'),_0x789308['registerBlockAttribute']('listStyle')),_0x2fb2a9['reversed']&&(_0x789308['enableDefaultAttributesIntegration']('listReversed'),_0x789308['registerBlockAttribute']('listReversed')),_0x2fb2a9['startIndex']&&(_0x789308['enableDefaultAttributesIntegration']('listStart'),_0x789308['registerBlockAttribute']('listStart'));const _0x56d6ce={'type':'format','content':''};_0x789308['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xb356a0=this['editor']['locale'];_0x789308['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xb356a0,'FORMAT_LIST_REVERSED')),_0x789308['descriptionFactory']['registerDescriptionCallback'](_0x57348f=>{const {data:_0x3c3ca7}=_0x57348f;if(_0x3c3ca7&&'listReversed'==_0x3c3ca7['key'])return null==_0x3c3ca7['newValue']||0x0==_0x3c3ca7['newValue']&&null==_0x3c3ca7['oldValue']?_0x56d6ce:void 0x0;}),_0x789308['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xb356a0,'FORMAT_LIST_START')),_0x789308['descriptionFactory']['registerDescriptionCallback'](_0x54c1ec=>{const {data:_0x285c3b}=_0x54c1ec;if(_0x285c3b&&'listStart'==_0x285c3b['key'])return null==_0x285c3b['newValue']||0x1==_0x285c3b['newValue']&&null==_0x285c3b['oldValue']?_0x56d6ce:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xb451f3=>{if(_0xb451f3['batch']['isUndo'])return!0x1;let _0xd58f29=!0x1;const _0x2f56d0=_0x789308['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b3753=>{const _0xc1851=_0x789308['_getAttributeKey'](_0x1b3753);return'listStart'==_0xc1851||'listReversed'==_0xc1851;});for(const _0x237589 of _0x2f56d0){const _0xad23bc=_0x237589['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xad23bc||'customNumbered'==_0xad23bc)continue;_0x789308['_findSuggestions'](_0x237589['getFirstRange'](),'attribute')['find'](_0x3ef8f1=>'listType'==_0x789308['_getAttributeKey'](_0x3ef8f1['suggestion']))||(_0xb451f3['removeMarker'](_0x237589['getFirstMarker']()),_0xd58f29=!0x0);}return _0xd58f29;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x35fef7){const _0x4ea040=this['editor']['locale'],{data:_0x4d075a}=_0x35fef7,_0x1e8fd2={'type':'format','content':''};if(!_0x4d075a||'listStyle'!=_0x4d075a['key'])return;if(!_0x4d075a['oldValue'])return'default'==_0x4d075a['newValue']?_0x1e8fd2:{'type':'format','content':''+o(_0x4ea040,'*Set\x20format:*\x20%0',o(_0x4ea040,this['_getTranslationKeyForListStyle'](_0x4d075a['newValue'])))};if(!_0x4d075a['newValue']){if('default'==_0x4d075a['oldValue'])return _0x1e8fd2;let _0x560a84=_0x35fef7['head'];for(;_0x560a84;){if(_0x560a84['data']&&'listType'==_0x560a84['data']['key']&&_0x560a84['data']['newValue'])return _0x1e8fd2;_0x560a84=_0x560a84['next'];}return{'type':'format','content':''+o(_0x4ea040,'*Remove\x20format:*\x20%0',o(_0x4ea040,this['_getTranslationKeyForListStyle'](_0x4d075a['oldValue'])))};}if('default'!=_0x4d075a['newValue'])return{'type':'format','content':''+o(_0x4ea040,'*Set\x20format:*\x20%0',o(_0x4ea040,this['_getTranslationKeyForListStyle'](_0x4d075a['newValue'])))};let _0x52b9f7=_0x35fef7['head'];for(;_0x52b9f7;){if(_0x52b9f7['data']&&'listType'==_0x52b9f7['data']['key']&&_0x52b9f7['data']['newValue']&&_0x52b9f7['data']['oldValue'])return _0x1e8fd2;_0x52b9f7=_0x52b9f7['next'];}return{'type':'format','content':o(_0x4ea040,'*Set\x20format:*\x20%0',o(_0x4ea040,'ELEMENT_'+_0x35fef7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2d82e1=this['editor'],_0x2448cc=_0x2d82e1['locale'];_0x2d82e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d181b=>{if('formatBlock'!=_0x2d181b['type'])return;const {data:_0x54343d}=_0x2d181b;if(!_0x54343d)return;let _0x1b3bdf,_0x12bd02;switch(_0x54343d['commandName']){case'listStyle':_0x1b3bdf='*Change\x20to:*\x20%0',_0x12bd02={'type':'format','content':o(_0x2448cc,_0x1b3bdf,o(_0x2448cc,this['_getTranslationKeyForListStyle'](_0x54343d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b3bdf=_0x54343d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x12bd02={'type':'format','content':o(_0x2448cc,_0x1b3bdf)};break;case'listStart':_0x1b3bdf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x12bd02={'type':'format','content':o(_0x2448cc,_0x1b3bdf,_0x54343d['commandParams'][0x0]['startIndex'])};}return _0x12bd02;});}['_getTranslationKeyForListStyle'](_0x4f36de){return'ELEMENT_'+function(_0x56f4f0){if(ye['includes'](_0x56f4f0))return'bulleted';if(he['includes'](_0x56f4f0))return'numbered';return null;}(_0x4f36de)['toUpperCase']()+'_LIST_'+_0x4f36de['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],he=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class K extends _0x588c48{static get['requires'](){return[_0x5ac7bf];}['init'](){const _0x4a649a=this['editor'],_0x469834=_0x4a649a['plugins']['get']('TrackChangesEditing'),_0xafe4c5=_0x4a649a['commands']['get']('enter');_0x469834['enableCommand']('enter',()=>{_0x4a649a['model']['change'](_0x205e40=>{const _0x3967e4=_0x4a649a['model']['document']['selection'],_0x4e0002=_0x3967e4['getFirstPosition'](),_0x5a64de=_0x32fb4b['fromRange'](_0x3967e4['getFirstRange']());if(_0xafe4c5['enterBlock'](_0x205e40)){const _0x5ceff1=_0x4a649a['model']['createPositionAt'](_0x4e0002['parent']['nextSibling'],0x0),_0x33e7e8=_0x205e40['createRange'](_0x4e0002,_0x5ceff1);_0x469834['markInsertion'](_0x33e7e8);}else _0x205e40['setSelection'](_0x205e40['createRange'](_0x5a64de['end']));_0x5a64de['detach'](),_0xafe4c5['fire']('afterExecute',{'writer':_0x205e40});});}),_0x4a649a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4a649a,'split'),{'priority':'high'}),_0x4a649a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x39c7a0,_0x6b8305,_0x38f437)=>{const _0x1cdd72=_0x38f437['mapper']['markerNameToElements'](_0x6b8305['markerName']);if(_0x1cdd72){for(const _0x3cce0b of _0x1cdd72)_0x3cce0b['hasClass']('ck-suggestion-marker-split')&&(_0x38f437['mapper']['unbindElementFromMarkerName'](_0x3cce0b,_0x6b8305['markerName']),_0x38f437['writer']['remove'](_0x3cce0b));}},{'priority':'high'}),_0x4a649a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x211887,_0x4fc798,_0x10eedc)=>{_0x10eedc['options']['showSuggestionHighlights']&&_e(_0x4a649a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x211887,_0x4fc798,_0x10eedc);},{'priority':'high'});}}class W extends _0x588c48{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x148944=this['editor']['plugins']['get']('TrackChangesEditing');_0x148944['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x148944['enableCommand']('findNext'),_0x148944['enableCommand']('findPrevious'),_0x148944['enableCommand']('replace'),_0x148944['enableCommand']('replaceAll');}['handleFindCommand'](_0x272e89,_0x42d71a,_0x30b2a4={}){const _0x2deac1=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x272e89(_0x1674f8=>{let _0x5c1871=('string'==typeof _0x42d71a?_0x2deac1['findByTextCallback'](_0x42d71a,_0x30b2a4):_0x42d71a)(_0x1674f8);Array['isArray'](_0x5c1871)&&(_0x5c1871={'results':_0x5c1871,'searchText':'string'==typeof _0x42d71a?_0x42d71a:''});const _0x3c52be=_0x5c1871['results']['filter'](_0x19dd51=>!0x1===this['_isInDeletionRange'](_0x19dd51,_0x1674f8['item']));return{..._0x5c1871,'results':_0x3c52be};},_0x30b2a4);}['_isInDeletionRange'](_0x24c0bb,_0x54f598){const _0x4bde85=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54f598,_0x24c0bb['start']),this['editor']['model']['createPositionAt'](_0x54f598,_0x24c0bb['end']));for(const _0x2f7d4a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4bde85['getIntersection'](_0x2f7d4a['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 _0x588c48{['afterInit'](){const _0x529205=this['editor']['locale'],_0x1dc76b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4b1d03,commandName:_0x41929c}of ro)this['editor']['plugins']['has'](_0x4b1d03)&&(_0x1dc76b['enableDefaultAttributesIntegration'](_0x41929c),_0x1dc76b['registerInlineAttribute'](_0x41929c));_0x1dc76b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x529205,'FORMAT_FONT_SIZE')),_0x1dc76b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x529205,'FORMAT_FONT_FAMILY')),_0x1dc76b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x529205,'FORMAT_FONT_COLOR')),_0x1dc76b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x529205,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a33ec=this['editor'],_0x3b3d94=_0x4a33ec['locale'];_0x4a33ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d4ebe=>{const _0x4ab6be=_0x3b3d94['t'];if('formatInline'!=_0x1d4ebe['type'])return;const {data:_0x5daa51}=_0x1d4ebe;if(null!=_0x5daa51){if('fontSize'==_0x5daa51['commandName']){const _0x317131=_0x5daa51['commandParams'][0x0]['value'];if(_0x317131){const _0x384c69=_0x4ab6be(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x500172=>_0x500172['model']==_0x317131)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3b3d94,'*Set\x20font\x20size:*\x20%0',_0x384c69)};}return{'type':'format','content':o(_0x3b3d94,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5daa51['commandName']){const _0x311820=_0x5daa51['commandParams'][0x0]['value'];return _0x311820?{'type':'format','content':o(_0x3b3d94,'*Set\x20font\x20family:*\x20%0',_0x311820)}:{'type':'format','content':o(_0x3b3d94,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5daa51['commandName']){const _0x438958=_0x5daa51['commandParams'][0x0]['value'];if(_0x438958){const _0x449d55=_0x34c877(this['editor']['config']['get']('fontColor.colors'))['find'](_0x44954a=>_0x44954a['model']==_0x438958);let _0x1b6004=_0x438958,_0x37f303='';return _0x449d55&&(_0x1b6004=_0x449d55['label'],_0x37f303=_0x4ab6be(_0x1b6004)['toLowerCase']()),{'type':'format','content':o(_0x3b3d94,'*Set\x20font\x20color:*\x20%0',_0x37f303)['trim'](),'color':{'value':_0x438958,'title':_0x37f303||_0x1b6004}};}return{'type':'format','content':o(_0x3b3d94,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5daa51['commandName']){const _0xec446d=_0x5daa51['commandParams'][0x0]['value'];if(_0xec446d){const _0x21b448=_0x34c877(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x31dda8=>_0x31dda8['model']==_0xec446d);let _0x3ff151=_0xec446d,_0x188f10='';return _0x21b448&&(_0x3ff151=_0x21b448['label'],_0x188f10=_0x4ab6be(_0x3ff151)['toLowerCase']()),{'type':'format','content':o(_0x3b3d94,'*Set\x20font\x20background\x20color:*\x20%0',_0x188f10)['trim'](),'color':{'value':_0xec446d,'title':_0x188f10||_0x3ff151}};}return{'type':'format','content':o(_0x3b3d94,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x588c48{['afterInit'](){const _0x431f59=this['editor'],_0x142189=_0x431f59['plugins']['get']('TrackChangesEditing'),_0x3ef6a6=_0x431f59['commands']['get']('copyFormat'),_0x264103=_0x431f59['commands']['get']('pasteFormat');_0x3ef6a6&&_0x264103&&(_0x142189['enableDefaultAttributesIntegration']('pasteFormat'),_0x142189['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x201000=this['editor'],_0x255180=_0x201000['locale'];_0x201000['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29365f=>{if('formatBlock'!=_0x29365f['type']&&'formatInline'!=_0x29365f['type'])return;const {data:_0x2dfd30}=_0x29365f;if(_0x2dfd30&&'pasteFormat'===_0x2dfd30['commandName']){const _0x561a38=[],_0x30b5b3=_0x2dfd30['commandParams'][0x0];for(const [_0xa8f158,_0x332bde]of Object['entries'](_0x30b5b3))_0x561a38['push'](so(_0x201000,_0xa8f158,_0x332bde));return _0x561a38['length']?{'type':'format','content':o(_0x255180,'*Set\x20format\x20to:*\x20%0',_0x561a38['join'](',\x20'))}:{'type':'format','content':o(_0x255180,'*Remove\x20all\x20formatting*')};}});}}function so(_0xd8466d,_0x220ca,_0x223be4){const _0x4d1ed4=_0xd8466d['locale']['t'],_0xdd295a=_0x220ca['split'](/(?=[A-Z])/)['join']('\x20'),_0x200b4f=_0x4d1ed4(_0xdd295a['charAt'](0x0)['toUpperCase']()+_0xdd295a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x223be4)return _0x200b4f;if('fontColor'===_0x220ca||'fontBackgroundColor'===_0x220ca){const _0x1a876c=_0x34c877(_0xd8466d['config']['get']('fontColor.colors'))['find'](_0x4dd3d9=>_0x4dd3d9['model']==_0x223be4);return _0x200b4f+'\x20('+(_0x1a876c?_0x4d1ed4(_0x1a876c['label'])['toLowerCase']():_0x223be4)+')';}if('fontSize'===_0x220ca&&isNaN(parseFloat(_0x223be4))){const _0x237c5f=_0xd8466d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xd8466d['config']['get']('fontSize.options'))['find'](_0x1555ef=>_0x1555ef['model']==_0x223be4);return _0x200b4f+'\x20('+(_0x237c5f?_0x4d1ed4(_0x237c5f['title'])['toLowerCase']():_0x223be4)+')';}return _0x200b4f+'\x20('+_0x223be4+')';}class Y extends _0x588c48{['_headingOptions'];['afterInit'](){const _0x2b34f7=this['editor'];if(!_0x2b34f7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2b34f7['config']['get']('heading.options');const _0x521686=_0x2b34f7['locale'],_0x159397=_0x2b34f7['plugins']['get']('TrackChangesEditing');_0x159397['enableDefaultAttributesIntegration']('heading');for(const _0x5d1ebd of this['_headingOptions'])'paragraph'!=_0x5d1ebd['model']&&_0x159397['descriptionFactory']['registerElementLabel'](_0x5d1ebd['model'],_0x2c1f33=>{const _0x640444=this['_getHeadingLevel'](_0x5d1ebd['model']);return null!==_0x640444?_0x5fd6fa(_0x2c1f33,_0x640444):_0x3d46db(_0x2c1f33,_0x5d1ebd['title']);});function _0x5fd6fa(_0x321aa6,_0x4697dd){return o(_0x521686,'ELEMENT_HEADING',[_0x321aa6,_0x4697dd]);}function _0x3d46db(_0x41e8a0,_0x56171e){return o(_0x521686,'ELEMENT_HEADING_CUSTOM',[_0x41e8a0,_0x56171e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x500130=this['editor'],_0x4e3325=_0x500130['locale'];function _0x19b7f1(_0x1c20dc,_0x579a93){return o(_0x4e3325,'ELEMENT_HEADING_CUSTOM',[_0x1c20dc,_0x579a93]);}_0x500130['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30e8dd=>{if('formatBlock'!=_0x30e8dd['type'])return;const {data:_0x2e647d}=_0x30e8dd;if(_0x2e647d&&'heading'==_0x2e647d['commandName']){const _0x2d28c2=_0x2e647d['commandParams'][0x0]['value'],_0x5967fe=this['_getHeadingLevel'](_0x2d28c2);if(null!==_0x5967fe)return{'type':'format','content':o(_0x4e3325,'*Change\x20to:*\x20%0',(_0x500ab8=0x1,_0x426a06=_0x5967fe,o(_0x4e3325,'ELEMENT_HEADING',[_0x500ab8,_0x426a06])))};const _0x647093=this['_headingOptions']['find'](_0x37a6ff=>_0x37a6ff['model']===_0x2d28c2)['title'];return{'type':'format','content':o(_0x4e3325,'*Change\x20to:*\x20%0',_0x19b7f1(0x1,_0x647093))};}var _0x500ab8,_0x426a06;});}['_getHeadingLevel'](_0x143d21){const _0x8401c2=_0x143d21['match'](/^heading(\d+)/);if(_0x8401c2)return _0x8401c2[0x1];const _0x2866b6=this['_headingOptions']?.['find'](_0x3808b9=>_0x3808b9['model']==_0x143d21);if(_0x2866b6&&_0x2866b6['view']){const _0x30c39d=_0x2866b6['view'],_0x5ef200=(_0x30c39d['name']??_0x30c39d)['match'](/^h(\d+)/);if(_0x5ef200)return _0x5ef200[0x1];}return null;}}class Z extends _0x588c48{['afterInit'](){const _0xbb86de=this['editor'];if(!_0xbb86de['plugins']['has']('HighlightEditing'))return;const _0x20ac44=_0xbb86de['plugins']['get']('TrackChangesEditing'),_0x6529e6=_0xbb86de['locale'];_0x20ac44['enableDefaultAttributesIntegration']('highlight'),_0x20ac44['registerInlineAttribute']('highlight'),_0x20ac44['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x6529e6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x114fc6=this['editor'],_0x48a1c6=_0x114fc6['locale'];_0x114fc6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178824=>{if('formatInline'!=_0x178824['type'])return;const {data:_0x242813}=_0x178824;if(_0x242813&&'highlight'==_0x242813['commandName']){const _0x3de493=_0x48a1c6['t'],_0x19cb10=_0x242813['commandParams'][0x0]['value'];if(_0x19cb10){const _0x12da85=_0x114fc6['config']['get']('highlight.options')['find'](_0x50a763=>_0x50a763['model']==_0x19cb10),_0x4193a6=_0x3de493(_0x12da85['title'])['toLowerCase']();return{'type':'format','content':o(_0x48a1c6,'*Set\x20highlight:*\x20%0',_0x4193a6),'color':{'value':_0x12da85['color'],'title':_0x12da85['title']}};}return{'type':'format','content':o(_0x48a1c6,'*Remove\x20highlight*',o(_0x48a1c6,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x588c48{['afterInit'](){const _0x3f79d2=this['editor'];if(!_0x3f79d2['plugins']['has']('HorizontalLineEditing'))return;_0x3f79d2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x274946=_0x3f79d2['plugins']['get']('TrackChangesEditing'),_0x529cdf=_0x3f79d2['locale'];_0x274946['descriptionFactory']['registerElementLabel']('horizontalLine',_0x214584=>o(_0x529cdf,'ELEMENT_HORIZONTAL_LINE',_0x214584)),_0x3f79d2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x78c463,{writer:_0x4d2a9b,options:_0x1c2d0a})=>{if(!_0x1c2d0a['showSuggestionHighlights'])return null;const _0x49c53f=_0x4d2a9b['createContainerElement']('div'),_0x5977c6=_0x4d2a9b['createEmptyElement']('hr');return _0x4d2a9b['addClass']('ck-horizontal-line',_0x49c53f),_0x4d2a9b['insert'](_0x4d2a9b['createPositionAt'](_0x49c53f,0x0),_0x5977c6),_0x49c53f;},'converterPriority':'high'});}}class et extends _0x588c48{['afterInit'](){const _0x27565a=this['editor'];if(!_0x27565a['plugins']['has']('HtmlEmbed'))return;const _0x3f9978=_0x27565a['plugins']['get']('TrackChangesEditing'),_0x395b0b=_0x27565a['locale'];_0x3f9978['descriptionFactory']['registerElementLabel']('rawHtml',_0x12e94f=>o(_0x395b0b,'ELEMENT_HTML_EMBED',_0x12e94f)),_0x3f9978['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3f9978['registerBlockAttribute']('value'),_0x3f9978['descriptionFactory']['registerDescriptionCallback'](_0x32632f=>{if('attribute'!=_0x32632f['type'])return;const {data:_0x515b7e}=_0x32632f;if(_0x515b7e&&'value'==_0x515b7e['key']&&_0x32632f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xe818ec=o(_0x395b0b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x395b0b,'*Change\x20%0\x20content*',_0xe818ec)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2db0e5=this['editor'],_0x2fab9c=_0x2db0e5['locale'];_0x2db0e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10d88f=>{if('formatBlock'!=_0x10d88f['type'])return;const {data:_0x180bc4}=_0x10d88f;if(_0x180bc4&&'htmlEmbed'==_0x180bc4['commandName']){const _0x380223=o(_0x2fab9c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2fab9c,'*Change\x20%0\x20content*',_0x380223)};}});}}class it extends _0x588c48{['afterInit'](){const _0x503a1c=this['editor'];if(!_0x503a1c['plugins']['has']('ImageEditing'))return;const _0x20dcd7=_0x503a1c['plugins']['get']('TrackChangesEditing'),_0x1acc9d=_0x503a1c['plugins']['get']('ImageUtils'),_0x1bd6dc=_0x503a1c['locale'];_0x20dcd7['enableCommand']('insertImage'),_0x20dcd7['descriptionFactory']['registerElementLabel']('imageBlock',_0xb6ba3c=>o(_0x1bd6dc,'ELEMENT_IMAGE',_0xb6ba3c)),_0x20dcd7['descriptionFactory']['registerElementLabel']('imageInline',_0x40c240=>o(_0x1bd6dc,'ELEMENT_INLINE_IMAGE',_0x40c240)),_0x20dcd7['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1bd6dc,'ELEMENT_CAPTION')),_0x503a1c['plugins']['has']('ImageUploadEditing')&&_0x20dcd7['enableCommand']('uploadImage'),_0x503a1c['plugins']['has']('ImageBlockEditing')&&_0x503a1c['plugins']['has']('ImageInlineEditing')&&(_0x20dcd7['enableCommand']('imageTypeInline',(_0x243082,_0x113880)=>{const _0x138295=_0x1acc9d['getClosestSelectedImageElement'](_0x503a1c['model']['document']['selection']);_0x503a1c['model']['change'](()=>{_0x20dcd7['markBlockFormat'](_0x138295,{'commandName':'imageTypeInline','commandParams':[_0x113880]},[],'convertBlockImageToInline');});}),_0x20dcd7['enableCommand']('imageTypeBlock',(_0x3a7046,_0x35215a)=>{_0x503a1c['model']['change'](_0x4bc679=>{let _0x38005e=_0x1acc9d['getClosestSelectedImageElement'](_0x503a1c['model']['document']['selection']),_0x30c4ef=_0x4bc679['createRangeOn'](_0x38005e);const _0x1f5753=_0xc29440['fromPosition'](_0x30c4ef['start'],'toPrevious'),_0x2e7c1c=_0xc29440['fromPosition'](_0x30c4ef['end'],'toNext');_0x20dcd7['forceDefaultExecution'](()=>_0x3a7046(_0x35215a)),_0x38005e=_0x1acc9d['getClosestSelectedImageElement'](_0x503a1c['model']['document']['selection']),_0x30c4ef=_0x4bc679['createRangeOn'](_0x38005e);const _0x537dc3=_0x4bc679['createRange'](_0x1f5753,_0x2e7c1c);_0x1f5753['detach'](),_0x2e7c1c['detach'](),_0x20dcd7['markBlockFormat'](_0x38005e,{'commandName':'imageTypeInline','commandParams':[_0x35215a]},[],'convertInlineImageToBlock'),_0x537dc3['start']['isBefore'](_0x30c4ef['start'])&&_0x20dcd7['markInsertion'](_0x4bc679['createRange'](_0x537dc3['start'],_0x30c4ef['start']),'convertInlineImageToBlock'),_0x30c4ef['end']['isBefore'](_0x537dc3['end'])&&_0x20dcd7['markInsertion'](_0x4bc679['createRange'](_0x30c4ef['end'],_0x537dc3['end']),'convertInlineImageToBlock');});}),_0x20dcd7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x20dcd7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x20dcd7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x20dcd7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x20dcd7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x20dcd7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x144ef5])=>{const _0xf614bf=_0x20dcd7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xea8b57=_0x144ef5['start'],_0x150675=_0x144ef5['end'];const _0x240ae3=_0x503a1c['model']['schema']['getNearestSelectionRange'](_0xea8b57,'backward'),_0x56a97b=_0x503a1c['model']['schema']['getNearestSelectionRange'](_0x150675,'forward');_0x240ae3['isCollapsed']&&(_0xea8b57=_0x240ae3['start']),_0x56a97b['isCollapsed']&&(_0x150675=_0x56a97b['end']),_0xf614bf([_0x503a1c['model']['createRange'](_0xea8b57,_0x150675)]);}),_0x20dcd7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xdd112b),_0x20dcd7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xdd112b)),_0x503a1c['plugins']['has']('ImageCaptionEditing')&&(_0x20dcd7['enableCommand']('toggleImageCaption',(_0x336513,_0x149e16)=>{const _0x2cea68=_0x503a1c['plugins']['get']('ImageCaptionUtils');let _0x1d20e1=_0x1acc9d['getClosestSelectedImageElement'](_0x503a1c['model']['document']['selection']),_0x88a350=_0x2cea68['getCaptionFromImageModelElement'](_0x1d20e1);_0x503a1c['model']['change'](()=>{if(_0x88a350)return void _0x20dcd7['markDeletion'](_0x503a1c['model']['createRangeOn'](_0x88a350));const _0x2e0ae0=_0x1acc9d['isBlockImage'](_0x1d20e1);_0x336513(_0x149e16),_0x1d20e1=_0x1acc9d['getClosestSelectedImageElement'](_0x503a1c['model']['document']['selection']),_0x88a350=_0x2cea68['getCaptionFromImageModelElement'](_0x1d20e1),_0x20dcd7['markInsertion'](_0x503a1c['model']['createRangeOn'](_0x88a350),_0x2e0ae0?null:'imageCaption');});}),_0x20dcd7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xdd112b));const _0x2ef4ec=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x203f34(_0x493e10,_0x1d311d){const _0x18c6dc=_0x2ef4ec['findIndex'](({type:_0x231bd6,subType:_0x2115be})=>_0x493e10['type']==_0x231bd6&&_0x493e10['subType']==_0x2115be),_0x8bb2e2=_0x2ef4ec['findIndex'](({type:_0x3b88af,subType:_0x5b4c9c})=>_0x1d311d['type']==_0x3b88af&&_0x1d311d['subType']==_0x5b4c9c);if(_0x18c6dc<0x0||_0x8bb2e2<0x0)return!0x1;const _0x34a3f5=_0x493e10['getFirstRange'](),_0x50129c=_0x1d311d['getFirstRange']();if((0x0==_0x18c6dc||0x1==_0x18c6dc)&&0x2==_0x8bb2e2&&_0x34a3f5['isIntersecting'](_0x50129c))return!0x0;if(0x2==_0x18c6dc&&0x3==_0x8bb2e2){const _0x23459c=_0x20dcd7['_findSuggestions'](_0x34a3f5,'insertion')['filter'](({suggestion:_0x5e9bb5,meta:_0x4a71c9})=>_0x4a71c9['isOwn']&&'convertInlineImageToBlock'==_0x5e9bb5['subType']);if(_0x23459c['length']>0x1&&_0x50129c['end']['isEqual'](_0x34a3f5['start']))return!0x0;if(0x1==_0x23459c['length']&&(_0x34a3f5['start']['isEqual'](_0x50129c['end'])||_0x34a3f5['end']['isEqual'](_0x50129c['start'])))return!0x0;}if(0x3==_0x18c6dc&&0x3==_0x8bb2e2&&_0x34a3f5['start']['isBefore'](_0x50129c['start'])){const _0xb1abeb=_0x34a3f5['end']['nodeAfter'],_0x2e7b39=_0x50129c['start']['nodeBefore'];return _0x1acc9d['isBlockImage'](_0xb1abeb)&&_0xb1abeb===_0x2e7b39;}return!0x1;}function _0xdd112b(_0x3fb525,_0x18f377){return _0x203f34(_0x3fb525,_0x18f377)?[_0x3fb525,_0x18f377]:_0x203f34(_0x18f377,_0x3fb525)?[_0x18f377,_0x3fb525]:null;}_0x503a1c['plugins']['has']('ImageResize')&&(_0x20dcd7['enableDefaultAttributesIntegration']('resizeImage'),_0x20dcd7['registerBlockAttribute']('resizedWidth'),_0x20dcd7['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1bd6dc,'FORMAT_IMAGE_SIZE'))),_0x503a1c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x20dcd7['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x20dcd7['registerBlockAttribute']('alt')),_0x20dcd7['descriptionFactory']['registerDescriptionCallback'](_0x50d88b=>{if(!!_0x2ef4ec['find'](({type:_0x793280,subType:_0x13a353})=>_0x50d88b['type']==_0x793280&&_0x50d88b['subType']==_0x13a353))return _0x50d88b['previous']?{}:void 0x0;}),_0x20dcd7['descriptionFactory']['registerDescriptionCallback'](_0x2425d8=>{if('insertion'==_0x2425d8['type']||'deletion'==_0x2425d8['type']){const _0x3bc7ea=_0x2425d8['getContainedElement']();if(_0x3bc7ea&&_0x3bc7ea['is']('element','caption'))return{'type':'insertion'==_0x2425d8['type']?'addObject':'removeObject','element':_0x3bc7ea,'quantity':0x1};}}),_0x20dcd7['descriptionFactory']['registerDescriptionCallback'](_0x3b96c9=>'formatBlock'==_0x3b96c9['type']&&'convertInlineImageToBlock'==_0x3b96c9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3b96c9['type']&&'convertBlockImageToInline'==_0x3b96c9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x20dcd7['descriptionFactory']['registerDescriptionCallback'](_0x1b9dfa=>{if('attribute'!=_0x1b9dfa['type'])return;const {data:_0x2d8a8d}=_0x1b9dfa;if(!_0x2d8a8d||'alt'!=_0x2d8a8d['key'])return;const _0x3d2224=_0x2d8a8d['newValue'];return _0x3d2224?{'type':'format','content':o(_0x1bd6dc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3d2224+'\x22')}:{'type':'format','content':o(_0x1bd6dc,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb9298c=this['editor'],_0x242be5=_0xb9298c['locale'];_0xb9298c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45adb4=>{if('formatBlock'!=_0x45adb4['type']&&'formatInline'!=_0x45adb4['type'])return;const {data:_0x22cb0d}=_0x45adb4;if(_0x22cb0d){if('imageTextAlternative'==_0x22cb0d['commandName']){const _0x4f73e4=_0x22cb0d['commandParams'][0x0]['newValue'];return _0x4f73e4?{'type':'format','content':o(_0x242be5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4f73e4+'\x22')}:{'type':'format','content':o(_0x242be5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x22cb0d['commandName']){const _0x37eb24=_0x22cb0d['commandParams'][0x0]['width'];return _0x37eb24?{'type':'format','content':o(_0x242be5,'*Set\x20image\x20width:*\x20%0',_0x37eb24)}:{'type':'format','content':o(_0x242be5,'*Reset\x20image\x20width*')};}}});}}class st extends _0x588c48{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1dffe7=this['editor']['locale'],_0x4c84b1=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c84b1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4c84b1['registerBlockAttribute']('src'),_0x4c84b1['descriptionFactory']['registerDescriptionCallback'](_0x2c304f=>{if('attribute'!=_0x2c304f['type'])return;const {data:_0x3eeb91}=_0x2c304f;return _0x3eeb91&&'src'==_0x3eeb91['key']?_0x3eeb91['newValue']&&_0x3eeb91['oldValue']?{'type':'format','content':o(_0x1dffe7,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1f671d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f671d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1f671d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f671d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1f671d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x587924=this['editor'],_0x263900=_0x587924['locale'];_0x587924['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a5053=>{if('formatBlock'!=_0x3a5053['type']&&'formatInline'!=_0x3a5053['type'])return;const {data:_0x7ef231}=_0x3a5053;if(!_0x7ef231||'replaceImageSource'!=_0x7ef231['commandName'])return;return{'type':'format','content':o(_0x263900,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x588c48{['afterInit'](){const _0x5524c7=this['editor'];if(!_0x5524c7['plugins']['has']('ImageStyleEditing'))return;const _0x1b7e31=_0x5524c7['plugins']['get']('TrackChangesEditing'),_0x124313=_0x5524c7['plugins']['get']('ImageUtils'),_0x442a8b={};_0x1b7e31['enableCommand']('imageStyle',(_0x36b347,_0xc1abc1)=>{const _0xb8d91d=_0x5524c7['plugins']['get']('Users')['me'],_0x28c620=_0x5524c7['commands']['get']('imageStyle');let _0x35e74d=_0x124313['getClosestSelectedImageElement'](_0x5524c7['model']['document']['selection']),_0x1fb195=_0x5524c7['model']['createRangeOn'](_0x35e74d),_0x392ccc=_0x28c620['value'];if(_0x392ccc==_0xc1abc1['value'])return;const _0x4cf4de={'commandName':'imageStyle','commandParams':[_0xc1abc1],'formatGroupId':_0x417a0e()};_0x5524c7['model']['change'](()=>{if(_0x1b7e31['getSuggestions']()['filter'](_0x45f0c=>_0x45f0c['isInContent']&&_0xb8d91d==_0x45f0c['author']&&('formatBlock'==_0x45f0c['type']||'formatInline'==_0x45f0c['type'])&&('imageStylePreApply'==_0x45f0c['subType']||'imageStylePostApply'==_0x45f0c['subType'])&&_0x45f0c['getFirstRange']()['isEqual'](_0x1fb195))['forEach'](_0x209650=>_0x1b7e31['discardSuggestion'](_0x209650['head'])),_0x35e74d=_0x124313['getClosestSelectedImageElement'](_0x5524c7['model']['document']['selection']),_0x1fb195=_0x5524c7['model']['createRangeOn'](_0x35e74d),_0x28c620['refresh'](),_0x5524c7['commands']['get']('imageTypeInline')['refresh'](),_0x5524c7['commands']['get']('imageTypeBlock')['refresh'](),_0x392ccc=_0x28c620['value'],_0x392ccc!=_0xc1abc1['value'])return _0x124313['isInlineImage'](_0x35e74d)&&_0x28c620['shouldConvertImageType'](_0xc1abc1['value'],_0x35e74d)?(_0x36b347({..._0xc1abc1,'setImageSizes':!0x1}),_0x35e74d=_0x124313['getClosestSelectedImageElement'](_0x5524c7['model']['document']['selection']),void _0x1b7e31['markBlockFormat'](_0x35e74d,{..._0x4cf4de,'commandReversedParams':[{'value':_0x392ccc||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x124313['isBlockImage'](_0x35e74d)?_0x1b7e31['markBlockFormat'](_0x35e74d,_0x4cf4de,[],'imageStylePostApply'):_0x1b7e31['markInlineFormat'](_0x1fb195,_0x4cf4de,'imageStylePostApply'));});});for(const _0xeda5d7 of _0x5524c7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x442a8b[_0xeda5d7['name']]=_0xeda5d7['title']['toLowerCase']();_0x1b7e31['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1b7e31['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1b7e31['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1b7e31['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x565940])=>{_0x124313['setImageNaturalSizeAttributes'](_0x565940['getContainedElement']());}),_0x1b7e31['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x99f9c2,_0x39a4a0)=>{_0x1b7e31['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x99f9c2,{'commandName':_0x39a4a0['commandName'],'commandParams':_0x39a4a0['commandReversedParams']});}),_0x1b7e31['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x9cdc6,_0x575c85){if(_0x19a487(_0x9cdc6,_0x575c85))return[_0x9cdc6,_0x575c85];if(_0x19a487(_0x575c85,_0x9cdc6))return[_0x575c85,_0x9cdc6];return null;});const _0x3ef3b1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x19a487(_0x2a7d6a,_0x3674fa){const _0x46fe79=_0x3ef3b1['findIndex'](({type:_0x2861ac,subType:_0x46bf7e})=>_0x2a7d6a['type']==_0x2861ac&&_0x2a7d6a['subType']==_0x46bf7e),_0x5b9806=_0x3ef3b1['findIndex'](({type:_0x4b6168,subType:_0x10dd7c})=>_0x3674fa['type']==_0x4b6168&&_0x3674fa['subType']==_0x10dd7c);if(_0x46fe79<0x0||_0x5b9806<0x0)return!0x1;const _0x407480=_0x2a7d6a['getFirstRange'](),_0x573835=_0x3674fa['getFirstRange']();if((0x0==_0x46fe79||0x1==_0x46fe79)&&0x2==_0x5b9806&&_0x407480['isIntersecting'](_0x573835))return!0x0;if(0x2==_0x46fe79&&0x3==_0x5b9806){const _0x596930=_0x1b7e31['_findSuggestions'](_0x407480,'insertion')['filter'](({suggestion:_0x411e78,meta:_0x4c94f1})=>_0x4c94f1['isOwn']&&'convertInlineImageToBlock'==_0x411e78['subType']);if(_0x596930['length']>0x1&&_0x573835['end']['isEqual'](_0x407480['start']))return!0x0;if(0x1==_0x596930['length']&&(_0x407480['start']['isEqual'](_0x573835['end'])||_0x407480['end']['isEqual'](_0x573835['start'])))return!0x0;}if(0x3==_0x46fe79&&0x3==_0x5b9806&&_0x407480['start']['isBefore'](_0x573835['start'])){const _0x136b10=_0x407480['end']['nodeAfter'],_0x587e5e=_0x573835['start']['nodeBefore'];return _0x124313['isBlockImage'](_0x136b10)&&_0x136b10===_0x587e5e;}return!0x1;}_0x5524c7['model']['document']['registerPostFixer'](()=>{let _0x2a8966=!0x1;const _0x3843a6=Array['from'](_0x5524c7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bffe6,data:_0x5e1273}of _0x3843a6){const {group:_0x54a821,type:_0x1913b0,subType:_0x4585ab,id:_0x352c9e}=_0x1b7e31['_splitMarkerName'](_0x1bffe6);if('suggestion'==_0x54a821&&_0x1b7e31['hasSuggestion'](_0x352c9e)){if('formatBlock'==_0x1913b0&&('imageStylePreApply'==_0x4585ab||'imageStylePostApply'==_0x4585ab)){const _0x41decd=_0x1b7e31['getSuggestion'](_0x352c9e);if(_0x5e1273['newRange']){const _0x39f84a=_0x41decd['getFirstRange']()['getContainedElement']();if(_0x124313['isBlockImage'](_0x39f84a))continue;_0x1b7e31['discardSuggestion'](_0x41decd),_0x2a8966=!0x0;}}if('insertion'==_0x1913b0&&'imageCaption'==_0x4585ab&&!_0x5e1273['newRange']){const _0x39e9ea=_0x1b7e31['getSuggestion'](_0x352c9e);_0x39e9ea['next']&&_0x39e9ea['next']['isInContent']&&(_0x1b7e31['discardSuggestion'](_0x39e9ea['next']),_0x2a8966=!0x0);}}}return _0x2a8966;}),this['_registerLegacyDescription'](_0x442a8b);}['_registerLegacyDescription'](_0x33af15){const _0x30f5b5=this['editor'],_0x486744=_0x30f5b5['locale'];_0x30f5b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x497836=>{if('formatBlock'!=_0x497836['type']&&'formatInline'!=_0x497836['type'])return;const {data:_0x35ec80}=_0x497836;if(!_0x35ec80||'imageStyle'!=_0x35ec80['commandName'])return;const _0x56bda8=_0x35ec80['commandParams'][0x0]['value'];return _0x1317a0('side'===_0x56bda8?o(_0x486744,'FORMAT_SIDE_IMAGE'):_0x33af15[_0x56bda8]||_0x56bda8);function _0x1317a0(_0x5b82f0){return{'type':'format','content':o(_0x486744,'*Format:*\x20%0',_0x5b82f0)};}});}}class ot extends _0x588c48{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x10e3cb){super(_0x10e3cb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1b5128=this['editor'],_0x441391=_0x1b5128['commands']['get']('importWord'),_0x5dc60b=_0x1b5128['commands']['get']('trackChanges');_0x441391&&(_0x441391['on']('execute',(_0x4629b4,[,_0x1f8ccc])=>{this['_trackChangesValueDuringImport']=_0x5dc60b['value'],_0x1f8ccc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x441391,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x441391,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5dc60b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1b5128['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4260de,_0x33bca3){const {suggestions:_0x23cb38}=_0x33bca3,_0x445964=this['editor']['commands']['get']('trackChanges'),_0x56a600=_0x445964['value'];this['_trackChangesValueDuringImport']!==_0x56a600&&(_0x445964['execute'](),this['_trackChangesExecuted']=!0x0),_0x23cb38&&_0x23cb38['forEach'](({id:_0x5a8140,type:_0x36da16,author:_0x58f974,created_at:_0x3c71db})=>{const _0x7eb339={'id':_0x5a8140,'type':_0x36da16,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x58f974,'createdAt':_0x3c71db?new Date(_0x3c71db):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x7eb339);});}}class rt extends _0x588c48{['afterInit'](){const _0x50768b=this['editor'],_0x322142=_0x50768b['plugins']['get']('TrackChangesEditing');if(_0x50768b['plugins']['has']('IndentEditing')&&(_0x322142['enableCommand']('indent'),_0x322142['enableCommand']('outdent')),_0x50768b['plugins']['has']('IndentBlock')){for(const _0x1d6eac of['indentBlock','outdentBlock'])_0x322142['enableDefaultAttributesIntegration'](_0x1d6eac);}const _0x15bb49=_0x50768b['locale'];_0x322142['registerBlockAttribute']('blockIndent'),_0x322142['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x15bb49,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x263001=this['editor'],_0x53ca3f=_0x263001['locale'],_0x99ab9b=_0x263001['plugins']['get']('TrackChangesEditing');_0x99ab9b['descriptionFactory']['registerDescriptionCallback'](_0x4c6b8d=>{if('formatBlock'!=_0x4c6b8d['type'])return;const {data:_0x319c51}=_0x4c6b8d;if(!_0x319c51)return;if('indentBlock'!=_0x319c51['commandName']&&'outdentBlock'!=_0x319c51['commandName'])return;const _0x20a951=_0x4c6b8d['getItems']()[0x0],_0x12a4de=_0x99ab9b['descriptionFactory']['getItemLabel'](_0x20a951);return'indentBlock'==_0x319c51['commandName']?{'type':'format','content':o(_0x53ca3f,'*Indent:*\x20%0',_0x12a4de)}:'outdentBlock'==_0x319c51['commandName']?{'type':'format','content':o(_0x53ca3f,'*Outdent:*\x20%0',_0x12a4de)}:void 0x0;});}}class at extends _0x588c48{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x588c48{['afterInit'](){const _0x273eda=this['editor'];if(!_0x273eda['plugins']['has']('LinkEditing'))return;const _0x4a47da=_0x273eda['plugins']['get']('TrackChangesEditing'),_0x230a94=_0x273eda['commands']['get']('link');_0x4a47da['enableDefaultAttributesIntegration']('link'),_0x4a47da['enableDefaultAttributesIntegration']('unlink'),_0x4a47da['registerInlineAttribute']('linkHref');for(const _0x841cc5 of _0x230a94['manualDecorators'])_0x4a47da['registerInlineAttribute'](_0x841cc5['id']),_0x4a47da['descriptionFactory']['registerAttributeLabel'](_0x841cc5['id'],'link\x20('+_0x841cc5['label']['toLowerCase']()+')');_0x4a47da['descriptionFactory']['registerDescriptionCallback'](_0x4bcc09=>{if('attribute'!=_0x4bcc09['type'])return;const {data:_0x372551}=_0x4bcc09;if(!_0x372551||'linkHref'!=_0x372551['key'])return;const _0x5eb97e=_0x372551['newValue'],_0x549469=_0x273eda['locale'];return{'type':'format','content':null==_0x5eb97e?o(_0x549469,'*Remove\x20link*'):o(_0x549469,'*Set\x20link:*\x20%0','\x22'+_0x5eb97e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b2a3f=this['editor'],_0x4a1587=_0x4b2a3f['locale'];_0x4b2a3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dc41c=>{if('formatInline'!=_0x1dc41c['type'])return;const {data:_0x444d60}=_0x1dc41c;if(_0x444d60){if('link'==_0x444d60['commandName']){const _0x5a74e0=_0x444d60['commandParams'][0x0];return{'type':'format','content':o(_0x4a1587,'*Set\x20link:*\x20%0','\x22'+_0x5a74e0+'\x22')};}return'unlink'==_0x444d60['commandName']?{'type':'format','content':o(_0x4a1587,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x588c48{['afterInit'](){const _0x1d3c50=this['editor'],_0x44a9d2=_0x1d3c50['locale'];if(!_0x1d3c50['plugins']['has']('LegacyListEditing'))return;const _0x42fd63=_0x1d3c50['plugins']['get']('TrackChangesEditing'),_0x4f8930=_0x1d3c50['plugins']['has']('LegacyTodoListEditing');function _0x317947(_0x239196){return()=>{const _0x3b839f=_0x1d3c50['model']['document']['selection'],_0x1432a9=_0x1d3c50['commands']['get'](_0x239196);if(_0x1432a9['value'])return void _0x1d3c50['execute']('paragraph',{});const _0xd3d2f1=_0x239196['slice'](0x0,-0x4),_0x5ac6ed=function(_0x2f5f91,_0xc3078d,_0x506e90){let _0x194b20=Array['from'](_0x2f5f91)['filter'](_0x357813=>function(_0xcb2ecd,_0x547074){return _0x547074['checkChild'](_0xcb2ecd['parent'],'listItem')&&!_0x547074['isObject'](_0xcb2ecd);}(_0x357813,_0x506e90));_0x194b20=_0x194b20['filter'](_0x1fe5b2=>!_0x1fe5b2['is']('element','listItem')||_0x1fe5b2['getAttribute']('listType')!=_0xc3078d);const _0xdff065=new Set();for(const _0x3966e0 of _0x194b20)_0x3966e0['is']('element','listItem')?_0xdff065['add'](fe(_0x3966e0)):_0xdff065['add'](_0x3966e0);return Array['from'](_0xdff065);}(_0x3b839f['getSelectedBlocks'](),_0xd3d2f1,_0x1d3c50['model']['schema']);_0x1d3c50['model']['change'](()=>{for(const _0x19fc02 of _0x5ac6ed)_0x42fd63['markBlockFormat'](_0x19fc02,{'commandName':_0x239196,'commandParams':[{'forceValue':!_0x1432a9['value']}],'formatGroupId':'blockName'},ue(_0x19fc02));});};}function _0x1c5636(_0x322ed4){return()=>{const _0x216a97=function(_0x4215e4){let _0x24d848=Array['from'](_0x4215e4);const _0x1d2ce7=_0x24d848['findIndex'](_0x17ca5c=>'listItem'!=_0x17ca5c['name']);return _0x1d2ce7>-0x1&&(_0x24d848=_0x24d848['slice'](0x0,_0x1d2ce7)),_0x24d848;}(_0x1d3c50['model']['document']['selection']['getSelectedBlocks']()),_0x164d40=_0x1d3c50['model']['createRange'](_0x1d3c50['model']['createPositionAt'](_0x216a97[0x0],'before'),_0x1d3c50['model']['createPositionAt'](_0x216a97[_0x216a97['length']-0x1],'end'));_0x1d3c50['model']['change'](()=>{_0x42fd63['markBlockFormat'](_0x164d40,{'commandName':_0x322ed4,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2cd78e){const _0x516b39=new Set();for(const _0x54ae8a of _0x2cd78e){let _0x4da185=_0x54ae8a['nextSibling'];for(;_0x4da185&&_0x4da185['getAttribute']('listIndent')>_0x54ae8a['getAttribute']('listIndent');)_0x516b39['add'](_0x4da185),_0x4da185=_0x4da185['nextSibling'];}return Array['from'](_0x516b39);}(_0x216a97));});};}_0x42fd63['enableCommand']('numberedList',_0x317947('numberedList')),_0x42fd63['enableCommand']('bulletedList',_0x317947('bulletedList')),_0x4f8930&&_0x42fd63['enableCommand']('todoList',_0x317947('todoList')),_0x42fd63['enableCommand']('indentList',_0x1c5636('indentList')),_0x42fd63['enableCommand']('outdentList',_0x1c5636('outdentList')),_0x4f8930&&_0x42fd63['enableCommand']('checkTodoList',()=>{const _0x5cde1b=_0x1d3c50['commands']['get']('checkTodoList'),_0x1f2376=Array['from'](_0x5cde1b['_selectedElements']);_0x1f2376['filter'](_0x19097b=>_0x19097b['getAttribute']('todoListChecked')!=_0x5cde1b['value']),_0x1d3c50['model']['change'](()=>{for(const _0x4c97cd of _0x1f2376)_0x42fd63['markBlockFormat'](_0x4c97cd,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5cde1b['value']}]});});}),_0x42fd63['descriptionFactory']['registerElementLabel']('listItem',_0x2c9e57=>o(_0x44a9d2,'ELEMENT_LIST_ITEM',_0x2c9e57)),_0x42fd63['descriptionFactory']['registerDescriptionCallback'](_0x134db1=>{if('formatBlock'!=_0x134db1['type']&&'formatInline'!=_0x134db1['type'])return;const {data:_0x38e9f6}=_0x134db1;if(_0x38e9f6){if('numberedList'==_0x38e9f6['commandName']||'bulletedList'==_0x38e9f6['commandName']||'todoList'==_0x38e9f6['commandName'])switch(_0x38e9f6['commandName']['replace']('List','')){case'bulleted':return _0x2ae692(o(_0x44a9d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ae692(o(_0x44a9d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ae692(o(_0x44a9d2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x38e9f6['commandName'])return{'type':'format','content':o(_0x44a9d2,'*Indent:*\x20%0',o(_0x44a9d2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x38e9f6['commandName'])return{'type':'format','content':o(_0x44a9d2,'*Outdent:*\x20%0',o(_0x44a9d2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x38e9f6['commandName'])return _0x38e9f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44a9d2,'*Check\x20item*')}:{'type':'format','content':o(_0x44a9d2,'*Uncheck\x20item*')};}function _0x2ae692(_0x20e3d3){return{'type':'format','content':o(_0x44a9d2,'*Change\x20to:*\x20%0',_0x20e3d3)};}});}}function fe(_0x3da52c){const _0x29dfe3=_0x3da52c['getAttribute']('listIndent');if(0x0==_0x29dfe3)return _0x3da52c;let _0x200274=_0x3da52c;for(;_0x3da52c['previousSibling']&&_0x3da52c['previousSibling']['is']('element','listItem');){const _0x1ba5dc=_0x3da52c['previousSibling']['getAttribute']('listIndent');if(_0x1ba5dc==_0x29dfe3)_0x200274=_0x3da52c['previousSibling'];else{if(_0x1ba5dc<_0x29dfe3)break;}_0x3da52c=_0x3da52c['previousSibling'];}return _0x200274;}function ue(_0x489ca0){const _0x39d359=[];if(_0x489ca0['is']('element','listItem')&&_0x489ca0['getAttribute']('listIndent')>0x0){let _0xef4d8=_0x489ca0['nextSibling'];for(;_0xef4d8&&'listItem'==_0xef4d8['name']&&_0xef4d8['getAttribute']('listIndent')==_0x489ca0['getAttribute']('listIndent');)_0x39d359['push'](_0xef4d8),_0xef4d8=_0xef4d8['nextSibling'];}return _0x39d359;}class z extends _0x588c48{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x562822=this['editor']['config']['get']('list.properties'),_0x25b059=this['editor']['plugins']['get']('TrackChangesEditing');_0x562822['styles']&&_0x25b059['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x562822['reversed']&&_0x25b059['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x562822['startIndex']&&_0x25b059['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x25b059['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x531254,_0x24d8f8={}){const _0x5d6cd7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2102ac=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5d6cd7['markMultiRangeBlockFormat'](_0x2102ac,{'commandName':'listStyle','commandParams':[{'type':_0x24d8f8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x51407c,_0x574260={}){const _0x132155=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18145a=this['_getSuggestionBlocks'](_0x2daba2=>_0x2daba2['is']('element','listItem')&&'numbered'===_0x2daba2['getAttribute']('listType'));if(_0x18145a['length']<0x1)return;const _0x3a3518=_0x18145a['map'](_0x269162=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x269162,'before'),this['editor']['model']['createPositionAt'](_0x269162,0x0)));this['editor']['model']['change'](()=>{_0x132155['markMultiRangeBlockFormat'](_0x3a3518,{'commandName':'listReversed','commandParams':[{'reversed':_0x574260['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x548367,_0x1d1a79={}){const _0x23e1f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4746dd=this['_getSuggestionBlocks'](_0x1e7249=>_0x1e7249['is']('element','listItem')&&'numbered'===_0x1e7249['getAttribute']('listType'));if(_0x4746dd['length']<0x1)return;const _0x3fa484=_0x4746dd['map'](_0x4db079=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4db079,'before'),this['editor']['model']['createPositionAt'](_0x4db079,0x0)));this['editor']['model']['change'](()=>{_0x23e1f3['markMultiRangeBlockFormat'](_0x3fa484,{'commandName':'listStart','commandParams':[{'startIndex':_0x1d1a79['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xb16613){if('formatBlock'!=_0xb16613['type']&&'formatInline'!=_0xb16613['type'])return;const _0x258804=this['editor']['locale'],{data:_0xd5a2a4}=_0xb16613;if(!_0xd5a2a4)return;let _0x14f985,_0x5715bf;switch(_0xd5a2a4['commandName']){case'listStyle':_0x14f985='*Change\x20to:*\x20%0',_0x5715bf={'type':'format','content':o(_0x258804,_0x14f985,o(_0x258804,this['_getTranslationKeyForListStyle'](_0xd5a2a4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14f985=_0xd5a2a4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5715bf={'type':'format','content':o(_0x258804,_0x14f985)};break;case'listStart':_0x14f985='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5715bf={'type':'format','content':o(_0x258804,_0x14f985,_0xd5a2a4['commandParams'][0x0]['startIndex'])};}return _0x5715bf;}['_getSuggestionBlocksForListStyle'](){const _0x80f7d0=this['editor']['plugins']['get']('LegacyListUtils');let _0x40aefc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x40aefc[0x0]?.['is']('element','listItem')&&_0x40aefc['unshift'](..._0x80f7d0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x40aefc[_0x40aefc['length']-0x1]?.['is']('element','listItem')&&_0x40aefc['push'](..._0x80f7d0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x40aefc=[...new Set(_0x40aefc)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x40aefc=_0x40aefc['filter'](_0x400df0=>_0x400df0['is']('element','listItem'))),_0x40aefc;}['_getSuggestionBlocks'](_0x52d0d6){const _0x41d8c3=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c2168=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x52d0d6)['map'](_0x4526a0=>{const _0x41f865=this['editor']['model']['createPositionAt'](_0x4526a0,0x0);return[..._0x41d8c3['getSiblingNodes'](_0x41f865,'backward'),..._0x41d8c3['getSiblingNodes'](_0x41f865,'forward')];})['flat']();return _0x4c2168=[...new Set(_0x4c2168)],_0x4c2168;}['_getTranslationKeyForListStyle'](_0x21f23e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x21f23e)||'default')['toUpperCase']()+'_LIST_'+_0x21f23e['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x588c48{['afterInit'](){const _0x25330e=this['editor'];if(!_0x25330e['plugins']['has']('MediaEmbedEditing'))return;const _0x441997=_0x25330e['plugins']['get']('TrackChangesEditing'),_0x555951=_0x25330e['locale'];_0x441997['enableCommand']('mediaEmbed'),_0x441997['descriptionFactory']['registerElementLabel']('media',_0x5486a2=>o(_0x555951,'ELEMENT_MEDIA',_0x5486a2)),_0x25330e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x58bd6e,{writer:_0x23c3f6,options:_0x4fbad9})=>{if(_0x4fbad9['showSuggestionHighlights'])return _0x23c3f6['createEmptyElement']('div');},'converterPriority':'high'}),_0x25330e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1911c6,_0x5ec34a,_0x1e03e6)=>{_0x1e03e6['options']['showSuggestionHighlights']&&_0x1911c6['stop']();},{'priority':'high'});}}class gt extends _0x588c48{['afterInit'](){const _0x3e2f5a=this['editor'];_0x3e2f5a['plugins']['has']('MentionEditing')&&_0x3e2f5a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x588c48{['afterInit'](){const _0xb7f34b=this['editor'];if(!_0xb7f34b['commands']['get']('insertMergeField'))return;_0xb7f34b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x8d4c97=_0xb7f34b['plugins']['get']('TrackChangesEditing'),_0x4cc5a9=_0xb7f34b['locale'];_0x8d4c97['descriptionFactory']['registerElementLabel']('mergeField',_0x2a7604=>o(_0x4cc5a9,'ELEMENT_MERGE_FIELD',_0x2a7604)),_0x8d4c97['descriptionFactory']['registerDescriptionCallback'](_0x51388c=>{if('insertion'!=_0x51388c['type']&&'deletion'!=_0x51388c['type'])return;const _0x405a01=_0x51388c['getContainedElement']();if(null==_0x405a01)return;if(!_0x405a01['is']('element','mergeField'))return;const _0x31c0b5=_0xb7f34b['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x405a01['getAttribute']('id'));return'insertion'==_0x51388c['type']?{'type':'insertion','content':o(_0x4cc5a9,'*Insert:*\x20%0','\x22'+_0x31c0b5+'\x22\x20'+o(_0x4cc5a9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4cc5a9,'*Remove:*\x20%0','\x22'+_0x31c0b5+'\x22\x20'+o(_0x4cc5a9,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x588c48{['afterInit'](){const _0x3bb7a6=this['editor'],_0x481a22=_0x3bb7a6['plugins']['get']('TrackChangesEditing');_0x3bb7a6['plugins']['has']('MultiLevelList')&&(_0x481a22['enableDefaultAttributesIntegration']('multiLevelList'),_0x481a22['registerBlockAttribute']('listMarkerStyle'),_0x481a22['descriptionFactory']['registerDescriptionCallback'](_0x373550=>this['handleDescriptions'](_0x373550)));}['handleDescriptions'](_0x1c8d35){const _0x226a9a=this['editor']['locale'],{data:_0x1835b4}=_0x1c8d35,_0x5a4377={'type':'format','content':''};if(_0x1835b4&&'listMarkerStyle'==_0x1835b4['key']){if(!_0x1835b4['oldValue'])return{'type':'format','content':o(_0x226a9a,'*Set\x20format:*\x20%0',o(_0x226a9a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1835b4['newValue']+')'};if(!_0x1835b4['newValue']){let _0xcf30f7=_0x1c8d35['head'];for(;_0xcf30f7;){if(_0xcf30f7['data']&&'listType'==_0xcf30f7['data']['key']&&_0xcf30f7['data']['newValue'])return _0x5a4377;_0xcf30f7=_0xcf30f7['next'];}return{'type':'format','content':o(_0x226a9a,'*Remove\x20format:*\x20%0',o(_0x226a9a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1835b4['oldValue']+')'};}}}}class dt extends _0x588c48{['afterInit'](){const _0x36bd52=this['editor'];if(!_0x36bd52['plugins']['has']('PageBreakEditing'))return;_0x36bd52['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2d7424=_0x36bd52['plugins']['get']('TrackChangesEditing'),_0x3399ee=_0x36bd52['locale'];_0x2d7424['descriptionFactory']['registerElementLabel']('pageBreak',_0x50bbc9=>o(_0x3399ee,'ELEMENT_PAGE_BREAK',_0x50bbc9));}}class pt extends _0x588c48{['afterInit'](){const _0x5cc113=this['editor'];if(!_0x5cc113['plugins']['has']('Paragraph'))return;const _0x7466ad=_0x5cc113['locale'],_0x53830e=_0x5cc113['plugins']['get']('TrackChangesEditing');_0x53830e['descriptionFactory']['registerElementLabel']('paragraph',_0x1a8d95=>o(_0x7466ad,'ELEMENT_PARAGRAPH',_0x1a8d95)),_0x53830e['enableDefaultAttributesIntegration']('paragraph'),_0x53830e['enableCommand']('insertParagraph'),_0x5cc113['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5cc113),{'priority':'highest'}),_0x5cc113['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4319d4,_0x37f02a,_0x1be12c)=>{_0x1be12c['options']['showSuggestionHighlights']&&nr(_0x5cc113,{'showActiveMarker':!0x1})(_0x4319d4,_0x37f02a,_0x1be12c);},{'priority':'highest'});const _0x1d737b=_0x53830e['descriptionFactory'];_0x1d737b['registerDescriptionCallback'](_0x528573=>{if('insertion'!==_0x528573['type'])return;const {start:_0x49c878,end:_0x3e3c9d}=_0x528573['getFirstRange']();if(!_0x49c878['isTouching'](_0x3e3c9d)||!_0x49c878['nodeAfter'])return;const _0x48ec03=_0x5cc113['model']['schema'],_0x277d99=_0x49c878['nodeAfter'];return _0x48ec03['isBlock'](_0x277d99)&&!_0x48ec03['isLimit'](_0x277d99)&&_0x48ec03['checkChild'](_0x277d99,'$text')?{'type':'insertion','content':o(_0x7466ad,'*Insert:*\x20%0',_0x1d737b['getItemLabel'](_0x277d99,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x165224=this['editor'],_0x18e8ff=_0x165224['locale'];_0x165224['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20051e=>{if('formatBlock'!=_0x20051e['type'])return;const {data:_0x403348}=_0x20051e;return _0x403348&&'paragraph'==_0x403348['commandName']?{'type':'format','content':o(_0x18e8ff,'*Change\x20to:*\x20%0',o(_0x18e8ff,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x226f82,{showActiveMarker:_0x456070=!0x0}={}){return(_0xbd431d,_0x267739,_0x4faf04)=>{const _0x5c5c9e=_0x226f82['plugins']['get']('TrackChangesEditing'),_0x51e1b6=_0x267739['markerRange']['start'],_0x20e583=_0x267739['markerRange']['end'],_0x5139d3=_0x226f82['model']['schema'];if(!_0x51e1b6['isTouching'](_0x20e583)||!_0x51e1b6['nodeAfter'])return;const _0x23cc5c=_0x51e1b6['nodeAfter'];if(_0x5139d3['isBlock'](_0x23cc5c)&&!_0x5139d3['isLimit'](_0x23cc5c)&&_0x5139d3['checkChild'](_0x23cc5c,'$text')){if(!_0x4faf04['consumable']['consume'](_0x267739['markerRange'],_0xbd431d['name']))return;const _0x1aa17f=_0x4faf04['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x20aaa5=_0x4faf04['mapper']['toViewPosition'](_0x20e583);_0x456070&&_0x5c5c9e['activeMarkers']['includes'](_0x267739['markerName'])&&_0x4faf04['writer']['addClass']('ck-suggestion-marker--active',_0x1aa17f),_0x4faf04['writer']['insert'](_0x20aaa5,_0x1aa17f),_0x4faf04['mapper']['bindElementToMarker'](_0x1aa17f,_0x267739['markerName']);}};}class kt extends _0x588c48{['afterInit'](){const _0x2b6fbd=this['editor'];if(!_0x2b6fbd['plugins']['has']('RemoveFormatEditing'))return;_0x2b6fbd['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1042e6=this['editor'];_0x1042e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15692f=>{if('formatBlock'!=_0x15692f['type']&&'formatInline'!=_0x15692f['type'])return;const {data:_0x5251f7}=_0x15692f;return _0x5251f7&&'removeFormat'==_0x5251f7['commandName']?{'type':'format','content':o(_0x1042e6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class bt extends _0x588c48{['afterInit'](){const _0x1df0dc=this['editor'];if(!_0x1df0dc['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1a42ca=_0x1df0dc['plugins']['get']('TrackChangesEditing');_0x1a42ca['enableCommand']('goToPreviousRestrictedEditingException'),_0x1a42ca['enableCommand']('goToNextRestrictedEditingException');const _0x4b7160=_0x1df0dc['plugins']['get']('RestrictedEditingModeEditing');_0x4b7160['enableCommand']('trackChanges'),_0x4b7160['enableCommand']('acceptSuggestion'),_0x4b7160['enableCommand']('discardSuggestion'),_0x4b7160['enableCommand']('acceptAllSuggestions'),_0x4b7160['enableCommand']('discardAllSuggestions'),_0x4b7160['enableCommand']('acceptSelectedSuggestions'),_0x4b7160['enableCommand']('discardSelectedSuggestions');}}class wt extends _0x588c48{static get['requires'](){return[_0x571644];}['init'](){const _0x256138=this['editor'],_0x4ac089=_0x256138['plugins']['get']('TrackChangesEditing');_0x4ac089['enableCommand']('shiftEnter'),_0x256138['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ce(_0x256138),{'priority':'high'}),_0x256138['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ce(_0x256138),{'priority':'high'}),_0x256138['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x39a1b2,_0x1d3189,_0x39809f)=>{_0x39809f['options']['showSuggestionHighlights']&&ce(_0x256138,{'showActiveMarker':!0x1})(_0x39a1b2,_0x1d3189,_0x39809f);}),_0x4ac089['descriptionFactory']['registerElementLabel']('softBreak',_0x33966a=>o(_0x256138['locale'],'ELEMENT_LINE_BREAK',_0x33966a));}}function ce(_0x3dba72,{showActiveMarker:_0x1fbb43=!0x0}={}){return(_0x4ce6ab,_0x8f9a10,_0x1c24b3)=>{const _0x46cdf3=_0x3dba72['plugins']['get']('TrackChangesEditing');if(!_0x1c24b3['consumable']['test'](_0x8f9a10['markerRange'],_0x4ce6ab['name']))return;const _0x30229e=_0x3dba72['model'];for(const _0xdc0555 of _0x8f9a10['markerRange']['getItems']()){if(!_0xdc0555['is']('element','softBreak'))continue;const _0x50f400='deletion'==_0x8f9a10['markerName']['split'](':')[0x1]?'merge':'split',_0x11c832=_0x1c24b3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50f400}),_0x27ce87=_0x1c24b3['mapper']['toViewPosition'](_0x30229e['createPositionBefore'](_0xdc0555));_0x1fbb43&&_0x46cdf3['activeMarkers']['includes'](_0x8f9a10['markerName'])&&_0x1c24b3['writer']['addClass']('ck-suggestion-marker--active',_0x11c832),_0x1c24b3['writer']['insert'](_0x27ce87,_0x11c832),_0x1c24b3['mapper']['bindElementToMarker'](_0x11c832,_0x8f9a10['markerName']);}};}class yt extends _0x588c48{['afterInit'](){const _0x385110=this['editor'],_0x11d86b=_0x385110['model'],_0x5ae5d9=_0x385110['locale'];if(!_0x385110['plugins']['has']('StandardEditingModeEditing'))return;const _0x3f681a=_0x385110['plugins']['get']('TrackChangesEditing'),_0x44fa4c='restrictedEditingException',_0x65ada9=_0x385110['commands']['get'](_0x44fa4c);_0x3f681a['enableCommand'](_0x44fa4c,(_0x48f6a6,_0x3a0df3={})=>{const _0x4e6e40=_0x11d86b['document']['selection'];if(_0x4e6e40['isCollapsed'])return void _0x48f6a6(_0x3a0df3);const _0x54ec30=void 0x0!==_0x3a0df3['forceValue']?_0x3a0df3['forceValue']:!_0x65ada9['value'];_0x11d86b['change'](()=>{const _0x2aea03=Array['from'](_0x4e6e40['getRanges']());for(const _0x144a3b of _0x2aea03){const _0x50343d=_0x54ec30?[_0x144a3b]:io(_0x44fa4c,_0x144a3b,_0x11d86b);for(const _0x2d1024 of _0x50343d)_0x3f681a['markInlineFormat'](_0x2d1024,{'commandName':_0x44fa4c,'commandParams':[{'forceValue':_0x54ec30}]});}});}),_0x3f681a['descriptionFactory']['registerDescriptionCallback'](_0x2d9b55=>{if('formatBlock'!=_0x2d9b55['type']&&'formatInline'!=_0x2d9b55['type'])return;const {data:_0x197576}=_0x2d9b55;return _0x197576&&_0x197576['commandName']==_0x44fa4c?_0x197576['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ae5d9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5ae5d9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class jt extends _0x588c48{['afterInit'](){const _0x32a5d0=this['editor'];if(!_0x32a5d0['plugins']['has']('Style')||!_0x32a5d0['plugins']['has']('DataSchema'))return;const _0x2c2f5d=_0x32a5d0['plugins']['get']('TrackChangesEditing'),_0x807c0a=_0x32a5d0['locale'],_0x4afc55=_0x32a5d0['config']['get']('style')||{},_0x3cf9ca=_0x32a5d0['plugins']['get']('GeneralHtmlSupport'),_0x4f9210=_0x32a5d0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x32a5d0['plugins']['get']('DataSchema'),_0x4afc55['definitions']);_0x2c2f5d['enableDefaultAttributesIntegration']('style');const _0x2de920=new Set();for(const _0x4eae16 of _0x4f9210['block']){const _0x3da37e=_0x3cf9ca['getGhsAttributeNameForElement'](_0x4eae16['element']);_0x2de920['add'](_0x3da37e);}const _0x2f60c9=new Set();for(const _0x40c1f1 of _0x4f9210['inline']){const _0x59f389=_0x3cf9ca['getGhsAttributeNameForElement'](_0x40c1f1['element']);_0x2f60c9['add'](_0x59f389);for(const _0x2741bc of _0x40c1f1['ghsAttributes'])_0x2f60c9['add'](_0x2741bc);}for(const _0x218319 of _0x2de920)_0x2c2f5d['registerBlockAttribute'](_0x218319),_0x2c2f5d['descriptionFactory']['registerAttributeLabel'](_0x218319,o(_0x807c0a,'FORMAT_STYLE'));for(const _0x317042 of _0x2f60c9)_0x2c2f5d['registerInlineAttribute'](_0x317042),_0x2c2f5d['descriptionFactory']['registerAttributeLabel'](_0x317042,o(_0x807c0a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x376b29=this['editor'],_0x21de81=_0x376b29['locale'];_0x376b29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45acd3=>{if('formatBlock'!=_0x45acd3['type']&&'formatInline'!=_0x45acd3['type'])return;const {data:_0xdff9f5}=_0x45acd3;return _0xdff9f5&&'style'===_0xdff9f5['commandName']?_0xdff9f5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x21de81,'*Set\x20format:*\x20%0',_0xdff9f5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x21de81,'*Remove\x20format:*\x20%0',_0xdff9f5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class St extends _0x588c48{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x233297){super(_0x233297),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x12319f=this['editor'],_0x10dfe8=_0x12319f['model']['document']['selection'];if(!_0x12319f['plugins']['has']('TableEditing'))return;const _0x170580=_0x12319f['locale'],_0x331135=_0x12319f['plugins']['get']('TrackChangesEditing'),_0x353fdc=_0x12319f['plugins']['get']('TableUtils');_0x331135['descriptionFactory']['registerElementLabel']('table',_0x455b04=>o(_0x170580,'ELEMENT_TABLE',_0x455b04)),this['_setupColumnsRowsFixing'](),_0x331135['enableCommand']('insertTable'),_0x331135['enableCommand']('selectTableRow'),_0x331135['enableCommand']('selectTableColumn');for(const _0x3fa413 of['insertTableRowAbove','insertTableRowBelow']){const _0x15354d=_0x12319f['commands']['get'](_0x3fa413);_0x331135['enableCommand'](_0x3fa413,_0x2fc508=>{_0x12319f['model']['change'](_0x12f714=>{_0x2fc508();const _0xcf36d0='above'===_0x15354d['order'],_0x2cdc55=_0x353fdc['getSelectionAffectedTableCells'](_0x10dfe8),_0x58fe41=_0x353fdc['getRowIndexes'](_0x2cdc55),_0x53efa0=_0xcf36d0?_0x58fe41['first']-0x1:_0x58fe41['last']+0x1,_0x11c4a3=_0x2cdc55[0x0]['findAncestor']('table'),_0x9e06e8=_0x353fdc['createTableWalker'](_0x11c4a3,{'startRow':_0x53efa0,'endRow':_0x53efa0}),_0x4a6f40=Array['from'](_0x9e06e8)['map'](_0x4c895a=>_0x12f714['createRangeOn'](_0x4c895a['cell']));_0x331135['markMultiRangeInsertion'](_0x4a6f40,'tableRow');});});}for(const _0x2c92c2 of['insertTableColumnLeft','insertTableColumnRight']){const _0xe42f85=_0x12319f['commands']['get'](_0x2c92c2);_0x331135['enableCommand'](_0x2c92c2,_0x4ccc0f=>{_0x12319f['model']['change'](_0x2b3321=>{_0x4ccc0f();const _0x36d7d7='left'===_0xe42f85['order'],_0x35c3b9=_0x353fdc['getSelectionAffectedTableCells'](_0x10dfe8),_0x1786cb=_0x353fdc['getColumnIndexes'](_0x35c3b9),_0x11054d=_0x36d7d7?_0x1786cb['first']-0x1:_0x1786cb['last']+0x1,_0x725967=_0x35c3b9[0x0]['findAncestor']('table'),_0x4c908b=_0x353fdc['createTableWalker'](_0x725967,{'startRow':0x0,'column':_0x11054d,'includeAllSlots':!0x1}),_0xc94c82=Array['from'](_0x4c908b)['map'](_0x491727=>_0x2b3321['createRangeOn'](_0x491727['cell']));_0x331135['markMultiRangeInsertion'](_0xc94c82,'tableColumn');});});}for(const _0x388ff5 of['removeTableRow','removeTableColumn']){const _0x32a694=_0x388ff5['substr'](0xb),_0x20a337=_0x32a694['toLowerCase'](),_0x6c8a2f=_0x20a337['substr'](0x0,0x3)+'span',_0xeb124e='table'+_0x32a694,_0x3b6f6e='min'+_0x32a694,_0x337773='max'+_0x32a694;_0x331135['enableCommand'](_0x388ff5,()=>{_0x12319f['model']['change'](_0x3873ce=>{const _0x3f3b62=_0x353fdc['getSelectionAffectedTableCells'](_0x10dfe8),_0x33755f=_0x3f3b62[0x0]['findAncestor']('table');let _0x278f05;if('removeTableRow'==_0x388ff5){const _0x73b1a2=_0x353fdc['getRowIndexes'](_0x3f3b62);_0x278f05={'startRow':_0x73b1a2['first'],'endRow':_0x73b1a2['last'],'includeAllSlots':!0x0};}else{const _0x229d5d=_0x353fdc['getColumnIndexes'](_0x3f3b62);_0x278f05={'startColumn':_0x229d5d['first'],'endColumn':_0x229d5d['last'],'includeAllSlots':!0x0};}const _0x588425=_0x353fdc['createTableWalker'](_0x33755f,_0x278f05),_0x36cf48=Array['from'](_0x588425)['map'](({cell:_0x4fa7f0})=>_0x4fa7f0),_0x1eb402=Ee(_0x36cf48['filter'](_0x2a1bb2=>_0x2a1bb2['hasAttribute'](_0x6c8a2f))),_0x3f4089=Ee(_0x36cf48['filter'](_0x26d707=>!_0x26d707['hasAttribute'](_0x6c8a2f)))['map'](_0xeaf7ce=>_0x3873ce['createRangeOn'](_0xeaf7ce)),_0x2a83f6=_0x331135['markMultiRangeDeletion'](_0x3f4089,_0xeb124e);if(_0x2a83f6&&('tableRow'==_0x2a83f6['subType']||'tableColumn'==_0x2a83f6['subType'])){const _0x30aa17=this['_getSuggestionCoords'](_0x2a83f6);for(const _0x221de5 of _0x1eb402){const _0x33bcb5=_0x3873ce['createRangeOn'](_0x221de5),_0x18528b=_0x353fdc['getCellLocation'](_0x221de5),_0x37b7df=_0x221de5['getAttribute'](_0x6c8a2f)-0x1,_0x158145=_0x30aa17[_0x3b6f6e],_0x20f3ac=_0x30aa17[_0x337773];_0x158145<=_0x18528b[_0x20a337]&&_0x18528b[_0x20a337]+_0x37b7df<=_0x20f3ac&&_0x2a83f6['addRange'](_0x33bcb5);}}});});}function _0x5e3eb1(_0x49f4c4){const _0x16c796=Array['from'](_0x10dfe8['getRanges']())['map'](_0x2fa43a=>_0x32fb4b['fromRange'](_0x2fa43a));_0x12319f['model']['change'](_0x5d74f6=>{const _0x380fd7=_0x5d74f6['batch'];_0x49f4c4=_0x49f4c4['filter'](_0x12d331=>'$graveyard'!=_0x12d331['root']['rootName']),_0x5d74f6['setSelection'](_0x49f4c4),_0x12319f['commands']['get']('removeTableRow')['refresh'](),_0x12319f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x12319f['model']['enqueueChange'](()=>{_0x12319f['model']['enqueueChange'](_0x380fd7,_0x13b40e=>{const _0x48d780=_0x16c796['filter'](_0x4e0999=>'$graveyard'!=_0x4e0999['root']['rootName']);_0x48d780['length']>0x0&&_0x13b40e['setSelection'](_0x48d780);for(const _0x17a4da of _0x16c796)_0x17a4da['detach']();});});});}function _0x1cd007(_0x2b41c5){_0x12319f['model']['change'](_0xccaf69=>{const _0x52e93c=Array['from'](_0x10dfe8['getRanges']())['map'](_0x203345=>_0x32fb4b['fromRange'](_0x203345)),_0x2b1152=[];for(const _0x338183 of _0x2b41c5)for(const _0x2d9375 of _0x338183['getItems']({'shallow':!0x0}))_0x2b1152['push'](_0x2d9375);for(const _0x3034aa of _0x2b1152)'$graveyard'!=_0x3034aa['root']['rootName']&&(_0xccaf69['setSelection'](_0xccaf69['createPositionAt'](_0x3034aa,0x0)),_0x12319f['commands']['get']('removeTableColumn')['refresh'](),_0x12319f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x31d28c=_0x52e93c['filter'](_0x510edb=>'$graveyard'!=_0x510edb['root']['rootName']);_0x31d28c['length']>0x0&&_0xccaf69['setSelection'](_0x31d28c);for(const _0xdf34f1 of _0x52e93c)_0xdf34f1['detach']();});}function _0x4b33b0(_0x403957,_0x38d8bc){return _0x38d8bc['every'](_0x1f60bf=>_0x403957['some'](_0x3b0505=>_0x3b0505['end']['isEqual'](_0x1f60bf['start'])||_0x1f60bf['end']['isEqual'](_0x3b0505['start'])));}function _0x28d48f(_0x2c30ea,_0x84e9f3){return!_0x2c30ea['some'](_0x16e16d=>_0x84e9f3['some'](_0x56e5c7=>_0x16e16d['isIntersecting'](_0x56e5c7)))&&_0x2c30ea['some'](_0x38d12d=>_0x84e9f3['some'](_0x5dfc27=>_0x38d12d['end']['isTouching'](_0x5dfc27['start'])));}_0x12319f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xeb7257,_0x3545aa,_0x25d44f)=>{if(!_0x25d44f['options']['showSuggestionHighlights'])return;const _0x348cb6=_0x3545aa['item'];if(!_0x348cb6)return;const _0x3b587e=_0x25d44f['mapper']['toViewElement'](_0x348cb6);function _0x323447(_0x48614d){return Array['isArray'](_0x48614d)?_0x48614d:[_0x48614d];}_0x3b587e&&'tableCell'===_0x348cb6['name']&&_0x2bf57d(_0x3b587e,_0x25d44f['writer'],(_0x134469,_0x5a2abe,_0x1cbb62)=>_0x1cbb62['addClass'](_0x323447(_0x5a2abe['classes']),_0x134469),(_0xb9947d,_0x5500b8,_0x24a751)=>_0x24a751['removeClass'](_0x323447(_0x5500b8['classes']),_0xb9947d));},{'priority':'highest'}),_0x331135['descriptionFactory']['registerDescriptionCallback'](_0x576f23=>{if('insertion'!=_0x576f23['type']&&'deletion'!=_0x576f23['type'])return;const _0x3c920c=_0x576f23['getContainedElement']();if(null!=_0x3c920c&&_0x3c920c['is']('element','table')){if('insertion'==_0x576f23['type']){const _0x3d6540=_0x576f23['getItems']()['filter'](_0x124462=>_0x124462['is']('$textProxy'))['map'](_0x50406b=>_0x50406b['data']);if(_0x3d6540['length'])return{'type':'insertion','content':o(_0x170580,'*Insert:*\x20%0',o(_0x170580,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3d6540['join']('\x20')+'\x22'))};}if('deletion'==_0x576f23['type']){const _0xa77246=_0x576f23['getItems']()['filter'](_0x3aa2f4=>_0x3aa2f4['is']('$textProxy'))['map'](_0x1a05ed=>_0x1a05ed['data']);if(_0xa77246['length'])return{'type':'deletion','content':o(_0x170580,'*Remove:*\x20%0',o(_0x170580,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xa77246['join']('\x20')+'\x22'))};}}}),_0x331135['descriptionFactory']['registerDescriptionCallback'](_0x40620e=>{if('tableRow'==_0x40620e['subType']){const _0x3921d5=_0x40620e['getItems']()['filter'](_0x4dbb3c=>_0x4dbb3c['is']('$textProxy'))['map'](_0x3ca99a=>_0x3ca99a['data']),_0x1ab821=this['_getSuggestionCoords'](_0x40620e),_0x295d6c=_0x1ab821['maxRow']-_0x1ab821['minRow']+0x1;if('insertion'==_0x40620e['type'])return _0x3921d5['length']?{'type':'insertion','content':o(_0x170580,'*Insert:*\x20%0',o(_0x170580,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x295d6c,'\x22'+_0x3921d5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x170580,'*Insert:*\x20%0',o(_0x170580,'ELEMENT_TABLE_ROW',_0x295d6c))};if('deletion'==_0x40620e['type'])return _0x3921d5['length']?{'type':'deletion','content':o(_0x170580,'*Remove:*\x20%0',o(_0x170580,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x295d6c,'\x22'+_0x3921d5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x170580,'*Remove:*\x20%0',o(_0x170580,'ELEMENT_TABLE_ROW',_0x295d6c))};}if('tableColumn'==_0x40620e['subType']){const _0x34371f=_0x40620e['getItems']()['filter'](_0x4b77cd=>_0x4b77cd['is']('$textProxy'))['map'](_0x522aff=>_0x522aff['data']),_0x5c7008=this['_getSuggestionCoords'](_0x40620e),_0x5598d2=_0x5c7008['maxColumn']-_0x5c7008['minColumn']+0x1;if('insertion'==_0x40620e['type'])return _0x34371f['length']?{'type':'insertion','content':o(_0x170580,'*Insert:*\x20%0',o(_0x170580,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5598d2,'\x22'+_0x34371f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x170580,'*Insert:*\x20%0',o(_0x170580,'ELEMENT_TABLE_COLUMN',_0x5598d2))};if('deletion'==_0x40620e['type'])return _0x34371f['length']?{'type':'deletion','content':o(_0x170580,'*Remove:*\x20%0',o(_0x170580,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5598d2,'\x22'+_0x34371f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x170580,'*Remove:*\x20%0',o(_0x170580,'ELEMENT_TABLE_COLUMN',_0x5598d2))};}}),_0x331135['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5e3eb1),_0x331135['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5e3eb1),_0x331135['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1cd007),_0x331135['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1cd007),_0x331135['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4b33b0),_0x331135['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4b33b0),_0x331135['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x28d48f),_0x331135['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x28d48f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5ad48a=this['editor'],_0x4c6689=_0x5ad48a['model']['document']['selection'];return(_0x51569a,_0x3b4c12)=>{_0x5ad48a['model']['change'](_0x46b8ba=>{const {commandName:_0x379e72,commandParams:_0x581695}=_0x3b4c12;let _0x1e113b=_0x51569a[0x0]['end']['nodeBefore'];_0x581695&&_0x581695[0x0]&&!0x1===_0x581695[0x0]['forceValue']&&(_0x1e113b=_0x51569a[0x0]['start']['nodeAfter']);const _0x4bcecb=_0x46b8ba['createRangeIn'](_0x1e113b);if('$graveyard'==_0x4bcecb['root']['rootName'])return;const _0x451a48=Array['from'](_0x4c6689['getRanges']())['map'](_0x4ef938=>_0x32fb4b['fromRange'](_0x4ef938));_0x46b8ba['setSelection'](_0x4bcecb),_0x5ad48a['commands']['get'](_0x379e72)['refresh'](),_0x581695['push']({'forceDefaultExecution':!0x0}),_0x5ad48a['execute'](_0x379e72,..._0x581695);const _0x5a6816=_0x451a48['filter'](_0x4b9f5f=>'$graveyard'!=_0x4b9f5f['root']['rootName']);_0x5a6816['length']>0x0&&_0x46b8ba['setSelection'](_0x5a6816);for(const _0x233da0 of _0x451a48)_0x233da0['detach']();});};}['_getCoordsForCells'](_0x4184c9){const _0x1c8424=this['editor']['plugins']['get']('TableUtils');let _0x1e4d3d=Number['MAX_SAFE_INTEGER'],_0x2c68b1=Number['MIN_SAFE_INTEGER'],_0x5b4079=Number['MAX_SAFE_INTEGER'],_0xc4cbb8=Number['MIN_SAFE_INTEGER'];for(const _0x2b9dc0 of _0x4184c9){if('$graveyard'==_0x2b9dc0['root']['rootName'])continue;const {row:_0x4cab30,column:_0x1d3fc9}=_0x1c8424['getCellLocation'](_0x2b9dc0),_0x58c6e3=_0x2b9dc0['hasAttribute']('rowspan')?_0x2b9dc0['getAttribute']('rowspan')-0x1:0x0,_0x21a4d2=_0x2b9dc0['hasAttribute']('colspan')?_0x2b9dc0['getAttribute']('colspan')-0x1:0x0;_0x1e4d3d=_0x4cab30<_0x1e4d3d?_0x4cab30:_0x1e4d3d,_0x2c68b1=_0x4cab30+_0x58c6e3>_0x2c68b1?_0x4cab30+_0x58c6e3:_0x2c68b1,_0x5b4079=_0x1d3fc9<_0x5b4079?_0x1d3fc9:_0x5b4079,_0xc4cbb8=_0x1d3fc9+_0x21a4d2>_0xc4cbb8?_0x1d3fc9+_0x21a4d2:_0xc4cbb8;}return{'minRow':_0x1e4d3d,'maxRow':_0x2c68b1,'minColumn':_0x5b4079,'maxColumn':_0xc4cbb8};}['_setupColumnsRowsFixing'](){const _0x4c45d0=this['editor'],_0x5d8b69=_0x4c45d0['plugins']['get']('TrackChangesEditing'),_0x3f317f=_0x4c45d0['plugins']['get']('TableUtils');_0x4c45d0['model']['document']['on']('change:data',()=>{const _0x885a00=Array['from'](_0x4c45d0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x334891,data:_0x50b529}of _0x885a00){const {group:_0x47ff88,id:_0x3c73df,subType:_0x57e336}=_0x5d8b69['_splitMarkerName'](_0x334891);if('suggestion'!=_0x47ff88)continue;if(null!=_0x50b529['oldRange'])continue;const _0x17d652=_0x5d8b69['getSuggestion'](_0x3c73df);this['_tablePostFixingSubtypes']['includes'](_0x57e336)&&this['_tableSuggestions']['add'](_0x17d652);}},{'priority':'low'});const _0x1d0944=(_0x4f12d1,_0x38f386)=>{let _0x118727=!0x1;const _0x435374=_0x38f386['createRangeOn'](_0x4f12d1),_0x14d902=_0x4f12d1['findAncestor']('table'),_0x3e270e=_0x3f317f['getCellLocation'](_0x4f12d1);for(const _0x449c30 of this['_tableSuggestions']){const _0x361cdd=_0x449c30['subType'],_0x30f543=_0x361cdd['startsWith']('tablePaste'),_0x5b5c97=_0x361cdd['substr'](_0x30f543?0xa:0x5),_0x38d616=_0x5b5c97['toLowerCase'](),_0x4f9c88=_0x38d616['substr'](0x0,0x3)+'span',_0x58f7fc='min'+_0x5b5c97,_0x279bc9='max'+_0x5b5c97;if(!_0x449c30['isInContent'])continue;if(_0x14d902!=_0x449c30['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x449c30['isIntersectingWithRange'](_0x435374))continue;const _0x3d589b=_0x4f12d1['hasAttribute'](_0x4f9c88)?_0x4f12d1['getAttribute'](_0x4f9c88)-0x1:0x0,_0x27fef9=this['_getSuggestionCoords'](_0x449c30),_0x6a0489=_0x27fef9[_0x58f7fc],_0x5717c3=_0x27fef9[_0x279bc9];_0x6a0489<=_0x3e270e[_0x38d616]&&_0x3e270e[_0x38d616]+_0x3d589b<=_0x5717c3&&(_0x449c30['addRange'](_0x435374),_0x118727=!0x0);}return _0x118727;};_0x4c45d0['model']['document']['registerPostFixer'](_0xb89625=>{let _0x555ef2=!0x1;for(const _0x46c5f2 of _0x4c45d0['model']['document']['differ']['getChanges']())if('insert'==_0x46c5f2['type']){if('tableRow'==_0x46c5f2['name']){for(const _0x1fec13 of _0x46c5f2['position']['nodeAfter']['getChildren']())_0x555ef2=_0x555ef2||_0x1d0944(_0x1fec13,_0xb89625);}else'tableCell'==_0x46c5f2['name']&&(_0x555ef2=_0x555ef2||_0x1d0944(_0x46c5f2['position']['nodeAfter'],_0xb89625));}return _0x555ef2;});}['_getSuggestionCoords'](_0x2c2efa){return this['_getCoordsForCells'](_0x2c2efa['getRanges']()['map'](_0x4560a3=>_0x4560a3['start']['nodeAfter']));}}function Ee(_0x3d0b59){return Array['from'](new Set(_0x3d0b59)['values']());}class At extends _0x588c48{static get['requires'](){return[St];}['afterInit'](){const _0x49d5a4=this['editor'],_0x4324ef=_0x49d5a4['model']['document']['selection'],_0x953f65=_0x49d5a4['locale'];if(!_0x49d5a4['plugins']['has']('TableEditing'))return;const _0x126755=_0x49d5a4['plugins']['get']('TrackChangesEditing'),_0x1499f7=_0x49d5a4['plugins']['get']('TableUtils'),_0x18811c=_0x49d5a4['plugins']['get'](St);_0x18811c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x126755['enableCommand']('mergeTableCells',()=>{const _0x119f5a=_0x1499f7['getSelectionAffectedTableCells'](_0x49d5a4['model']['document']['selection']);_0x49d5a4['model']['change'](()=>{_0x126755['markMultiRangeBlockFormat'](_0x119f5a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x49d5a4['commands']['get']('mergeTableCells')['on']('execute',(_0x2fa997,_0x2a610e)=>{_0x49d5a4['commands']['get']('trackChanges')['value']&&(_0x2a610e['length']>0x0&&_0x2a610e[_0x2a610e['length']-0x1]&&_0x2a610e[_0x2a610e['length']-0x1]['forceDefaultExecution']||_0x126755['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2fa997['stop']());},{'priority':'highest'});for(const _0x15fc8a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3b2575=_0x49d5a4['commands']['get'](_0x15fc8a);_0x126755['enableCommand'](_0x15fc8a,()=>{const _0x576c1f=_0x49d5a4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x529c8a=>_0x529c8a['is']('element','tableCell')),_0x27cc9c=_0x3b2575['value'];_0x49d5a4['model']['change'](()=>{_0x126755['markMultiRangeBlockFormat']([_0x576c1f,_0x27cc9c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x328260 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x14f226=_0x49d5a4['commands']['get'](_0x328260);_0x126755['enableCommand'](_0x328260,()=>{const _0x2aaf0f=_0x1499f7['getSelectionAffectedTableCells'](_0x49d5a4['model']['document']['selection'])[0x0],_0x1d5c6a=_0x2aaf0f['findAncestor']('table'),{column:_0x5afd8e,row:_0x44498e}=_0x1499f7['getCellLocation'](_0x2aaf0f);let _0x27845e=[];if('horizontally'==_0x14f226['direction']){const _0x474817=_0x1499f7['createTableWalker'](_0x1d5c6a,{'startRow':_0x44498e,'endRow':_0x44498e,'includeAllSlots':!0x0});_0x27845e=Array['from'](_0x474817)['map'](_0x49b3b8=>_0x49b3b8['cell']);}else{const _0x57c99e=_0x1499f7['createTableWalker'](_0x1d5c6a,{'column':_0x5afd8e,'includeAllSlots':!0x0});_0x27845e=Array['from'](_0x57c99e)['map'](_0x16cb24=>_0x16cb24['cell']);}_0x49d5a4['model']['change'](_0x50c491=>{_0x126755['markBlockFormat'](_0x50c491['createRangeOn'](_0x2aaf0f),{'commandName':_0x328260,'commandParams':[]},_0x27845e,_0x328260);});});}_0x126755['descriptionFactory']['registerDescriptionCallback'](_0x460ae2=>{if('formatBlock'!=_0x460ae2['type']&&'formatInline'!=_0x460ae2['type'])return;const {data:_0xdba80c}=_0x460ae2;return _0xdba80c&&'mergeTableCells'==_0xdba80c['commandName']?{'type':'format','content':o(_0x953f65,'*Merge\x20cells*')}:void 0x0;}),_0x126755['descriptionFactory']['registerDescriptionCallback'](_0x2449d8=>{if('formatBlock'!=_0x2449d8['type']&&'formatInline'!=_0x2449d8['type'])return;const {data:_0x1e5296}=_0x2449d8;return _0x1e5296?'splitTableCellVertically'==_0x1e5296['commandName']?{'type':'format','content':o(_0x953f65,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1e5296['commandName']?{'type':'format','content':o(_0x953f65,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4a3766=_0x18811c['_acceptFormatSuggestionCallbackFactory']();for(const _0x4fb12e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x126755['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4fb12e,'accept',_0x4a3766);for(const _0x3aeedd of['splitTableCellVertically','splitTableCellHorizontally'])_0x126755['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3aeedd,'accept',_0x4a3766);_0x126755['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x806d96=>{_0x49d5a4['model']['change'](_0x16155f=>{const _0x1c912c=Array['from'](_0x4324ef['getRanges']())['map'](_0x24d058=>_0x32fb4b['fromRange'](_0x24d058));_0x16155f['setSelection'](_0x806d96),_0x49d5a4['commands']['get']('mergeTableCells')['refresh'](),_0x49d5a4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4210dd=_0x1c912c['filter'](_0x439180=>'$graveyard'!=_0x439180['root']['rootName']);_0x4210dd['length']>0x0&&_0x16155f['setSelection'](_0x4210dd);for(const _0x15e87d of _0x1c912c)_0x15e87d['detach']();});});for(const _0x4a1067 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x13853f=_0x49d5a4['commands']['get'](_0x4a1067);_0x13853f['on']('set:isEnabled',(_0x499935,_0x3a7c44,_0x232d7a)=>{if(_0x232d7a){const _0x548f84=_0x49d5a4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2de4c8=>_0x2de4c8['is']('element','tableCell'));this['_areMergableCells'](_0x13853f['value'],_0x548f84)||(_0x499935['return']=!0x1,_0x499935['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2f3379=this['editor']['commands']['get']('mergeTableCells'),_0x246e40=this['editor']['plugins']['get']('TableUtils');if(!_0x2f3379['isEnabled'])return!0x1;const _0x3c108e=_0x246e40['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1d98ce of _0x3c108e)for(const _0x115f60 of _0x3c108e)if(_0x1d98ce!=_0x115f60&&!this['_areMergableCells'](_0x1d98ce,_0x115f60))return!0x1;return!0x0;}['_areMergableCells'](_0x2abccf,_0x40cd3){const _0x3186d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44b927=this['editor']['model']['createRangeOn'](_0x2abccf),_0x52398a=this['editor']['model']['createRangeOn'](_0x40cd3),_0x22b5d0=new Set(),_0x4a61f2=new Set();for(const _0x398e64 of _0x3186d8['getSuggestions']())if(('insertion'==_0x398e64['type']||'deletion'==_0x398e64['type']||'mergeTableCells'==_0x398e64['subType'])&&_0x398e64['isInContent']){for(const _0x119151 of _0x398e64['getRanges']())_0x119151['containsRange'](_0x44b927,!0x0)&&_0x22b5d0['add'](_0x398e64['type']+':'+_0x398e64['author']['id']),_0x119151['containsRange'](_0x52398a,!0x0)&&_0x4a61f2['add'](_0x398e64['type']+':'+_0x398e64['author']['id']);}if(_0x22b5d0['size']!=_0x4a61f2['size'])return!0x1;for(const _0xf74cdb of _0x22b5d0)if(!_0x4a61f2['has'](_0xf74cdb))return!0x1;return!0x0;}}class It extends _0x588c48{static get['requires'](){return[St];}['afterInit'](){const _0x38537d=this['editor'];if(!_0x38537d['plugins']['has']('TableEditing'))return;const _0x22d927=_0x38537d['locale'],_0x415bb8=_0x38537d['plugins']['get']('TrackChangesEditing');_0x415bb8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x415bb8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x415bb8['registerBlockAttribute']('headingRows'),_0x415bb8['registerBlockAttribute']('headingColumns'),_0x415bb8['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x22d927,'FORMAT_HEADER_ROW')),_0x415bb8['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x22d927,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1f7d19=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f621e=this['editor']['plugins']['get']('TableUtils'),_0x178ee8=this['editor']['plugins']['get'](St)['_acceptFormatSuggestionCallbackFactory']();function _0x1be857({showActiveMarker:_0x5a273b=!0x0,setDataAttribute:_0x1dad6b=!0x0}={}){return(_0x416806,_0x1099cc,_0x5eb2d1)=>{const {type:_0x4bf84a,id:_0x3a4334}=_0x1f7d19['_splitMarkerName'](_0x1099cc['markerName']),_0x504648=_0x1f7d19['getSuggestion'](_0x3a4334),_0x369f94=_0x504648['data'];if('formatBlock'!=_0x504648['type']||!_0x369f94||'setTableColumnHeader'!=_0x369f94['commandName'])return;if(_0x1099cc['item'])return void _0x416806['stop']();if(!_0x5eb2d1['consumable']['consume'](_0x1099cc['markerRange'],_0x416806['name']))return;const _0x4ee999=_0x1099cc['markerRange']['start']['nodeAfter'],_0x455da5=_0x1099cc['markerRange']['end']['nodeBefore'],_0x3840f7=_0x4ee999['parent']['parent'],{column:_0x489227}=_0x4f621e['getCellLocation'](_0x4ee999),{column:_0x1d0766}=_0x4f621e['getCellLocation'](_0x455da5);for(let _0x348835=_0x489227;_0x348835<=_0x1d0766;_0x348835++){const _0x8a434f=_0x4f621e['createTableWalker'](_0x3840f7,{'column':_0x348835,'includeAllSlots':!0x1});for(const _0x4ac148 of _0x8a434f){const _0x3783cc=_0x4ac148['cell'],_0x1e1cd0=_0x5eb2d1['mapper']['toViewElement'](_0x3783cc);_0x5eb2d1['writer']['addClass']('ck-suggestion-marker-'+_0x4bf84a,_0x1e1cd0),_0x1dad6b&&_0x5eb2d1['writer']['setAttribute']('data-suggestion',_0x3a4334,_0x1e1cd0),_0x5eb2d1['mapper']['bindElementToMarker'](_0x1e1cd0,_0x1099cc['markerName']),_0x5a273b&&(_0x1f7d19['activeMarkers']['includes'](_0x1099cc['markerName'])?_0x5eb2d1['writer']['addClass']('ck-suggestion-marker--active',_0x1e1cd0):_0x5eb2d1['writer']['removeClass']('ck-suggestion-marker--active',_0x1e1cd0));}}};}_0x1f7d19['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x178ee8),_0x1f7d19['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x178ee8),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1be857(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3ddc48,_0x30e924,_0x1ef3e7)=>{_0x1ef3e7['options']['showSuggestionHighlights']&&_0x1be857({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3ddc48,_0x30e924,_0x1ef3e7);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x56bc84,_0xb0ddb7,_0x242674)=>{const {type:_0x354a38,id:_0x4a53ec}=_0x1f7d19['_splitMarkerName'](_0xb0ddb7['markerName']),_0x5f0620=_0x1f7d19['getSuggestion'](_0x4a53ec),_0x187a65=_0x5f0620['data'];if('formatBlock'!=_0x5f0620['type']||!_0x187a65||'setTableColumnHeader'!=_0x187a65['commandName'])return;const _0x37524f=_0x242674['mapper']['markerNameToElements'](_0xb0ddb7['markerName']);if(_0x37524f){for(const _0x5b01ed of _0x37524f)_0x242674['writer']['removeClass']('ck-suggestion-marker-'+_0x354a38,_0x5b01ed),_0x242674['writer']['removeClass']('ck-suggestion-marker--active',_0x5b01ed),_0x242674['writer']['removeAttribute']('data-suggestion',_0x5b01ed),_0x242674['mapper']['unbindElementFromMarkerName'](_0x5b01ed,_0xb0ddb7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bd278=this['editor'],_0x859b40=_0x5bd278['locale'];function _0x3eae96(_0x1a80ff){return{'type':'format','content':o(_0x859b40,'*Format:*\x20%0',_0x1a80ff)};}_0x5bd278['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x802de6=>{if('formatBlock'!=_0x802de6['type'])return;const {data:_0x49f65d}=_0x802de6;if(_0x49f65d){if('setTableRowHeader'==_0x49f65d['commandName']){const _0x9006c0=_0x49f65d['commandParams'][0x0]['forceValue'];return _0x3eae96(o(_0x859b40,_0x9006c0?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x49f65d['commandName']){const _0x57aa9f=_0x49f65d['commandParams'][0x0]['forceValue'];return _0x3eae96(o(_0x859b40,_0x57aa9f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x26f3ee=>[_0x26f3ee,null]));class vt extends _0x588c48{static get['requires'](){return[St];}['afterInit'](){const _0x53eabd=this['editor'];if(!_0x53eabd['plugins']['has']('TableClipboard'))return;const _0x36366a=_0x53eabd['plugins']['get']('TrackChangesEditing'),_0x247016=_0x53eabd['plugins']['get']('TableUtils'),_0x23227e=_0x53eabd['plugins']['get'](St),_0x2b5c4f=_0x53eabd['plugins']['get']('TableClipboard');_0x23227e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x53eabd['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x53eabd['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x158bd1=null;_0x53eabd['model']['on']('insertContent',(_0x2d3d8b,_0x2cb440)=>{const [_0x380527,_0x378c19]=_0x2cb440,_0x444794=_0x2cb440[_0x2cb440['length']-0x1];_0x444794&&_0x444794['forceDefaultExecution']||_0x36366a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x37c211,_0x508a29,_0x54db07,_0x273e4a,_0x33a4be){if(_0x508a29&&!_0x508a29['is']('documentSelection'))return!0x1;const _0x2232ba=_0x33a4be['getTableIfOnlyTableInContent'](_0x37c211,_0x54db07);if(!_0x2232ba||!we(_0x2232ba,void 0x0,_0x273e4a))return!0x1;const _0x1af808=_0x273e4a['getSelectionAffectedTableCells'](_0x54db07['document']['selection']);if(!_0x1af808['length'])return!0x1;const _0x58837b=_0x1af808[0x0]['findAncestor']('table'),_0x3352e1=_0x273e4a['getRowIndexes'](_0x1af808),_0x319bc7=_0x273e4a['getColumnIndexes'](_0x1af808),_0x14d2db={'startRow':_0x3352e1['first'],'endRow':_0x3352e1['last'],'startColumn':_0x319bc7['first'],'endColumn':_0x319bc7['last']};return 0x1==_0x1af808['length']&&(_0x14d2db['endRow']+=_0x273e4a['getRows'](_0x2232ba)-0x1,_0x14d2db['endColumn']+=_0x273e4a['getColumns'](_0x2232ba)-0x1),we(_0x58837b,_0x14d2db,_0x273e4a);}(_0x380527,_0x378c19,_0x53eabd['model'],_0x247016,_0x2b5c4f)&&(_0x2d3d8b['stop'](),_0x158bd1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x53eabd['model']['change'](()=>{_0x53eabd['model']['insertContent'](_0x2cb440[0x0],_0x2cb440[0x1],_0x2cb440[0x2],{'forceDefaultExecution':!0x0});const _0x586fe5=_0x417a0e(),{rowInsertionRanges:_0x18eae4,columnInsertionRanges:_0x10fee8,insertionRanges:_0x2b5015,deletionRanges:_0x57f6ed,cells:_0x157afb}=_0x158bd1;_0x18eae4['length']&&_0x36366a['markMultiRangeInsertion'](_0x18eae4,'tablePasteRow',{'tablePasteChainId':_0x586fe5}),_0x10fee8['length']&&_0x36366a['markMultiRangeInsertion'](_0x10fee8,'tablePasteColumn',{'tablePasteChainId':_0x586fe5}),_0x2b5015['length']&&(_0x36366a['markMultiRangeInsertion'](_0x2b5015,'tablePaste',{'tablePasteChainId':_0x586fe5,'skipNestingCheck':!0x0}),_0x2b5015['forEach'](_0x448724=>_0x448724['detach']?.())),_0x57f6ed['length']&&(_0x36366a['markMultiRangeDeletion'](_0x57f6ed,'tablePaste',{'tablePasteChainId':_0x586fe5,'skipNestingCheck':!0x0}),_0x57f6ed['forEach'](_0x32658a=>_0x32658a['detach']?.()));const _0x4d6f5d=_0x36366a['markMultiRangeBlockFormat'](_0x157afb['map'](({element:_0x27c7f1})=>_0x27c7f1),{'formatGroupId':_0x417a0e()},[],'tablePasteCell',{'tablePasteChainId':_0x586fe5});if(_0x4d6f5d){const _0xf50e07=_0x4d6f5d['getMarkers'](),_0xce3129=[];for(const {element:_0x5c5b8f,attributes:_0x225480}of _0x157afb){if(!_0x225480)continue;const _0x381c8f=_0x53eabd['model']['createRangeOn'](_0x5c5b8f),_0xb30a7b=_0xf50e07['find'](_0x52f333=>_0x52f333['getRange']()['isEqual'](_0x381c8f));_0xb30a7b&&_0xce3129['push']([_0xb30a7b['name'],_0x225480]);}_0xce3129['length']&&_0x4d6f5d['setAttribute']('markerAttributes',Object['fromEntries'](_0xce3129));}_0x158bd1=null;}));},{'priority':_0x4cefce['high']+0xa}),_0x53eabd['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1565b5,_0x5f6b3f)=>{const [_0x21423e,_0x12ca64,,_0x36566c]=_0x5f6b3f;if(!_0x158bd1)return;_0x1565b5['stop']();const _0x456b2c=_0x21423e['cell'],_0x14500c=_0x12ca64,_0x3330eb=Pe(_0x456b2c),_0x31a201=Pe(_0x14500c);_0x1565b5['return']=_0x456b2c;let _0x3c460a=null,_0x20c94a=null;if(_0x31a201||_0x3330eb){if(_0x3330eb&&!_0x31a201){_0x36566c['remove'](_0x456b2c['getChild'](0x0));for(const _0x4a32d9 of Array['from'](_0x14500c['getChildren']()))_0x36566c['insert'](_0x4a32d9,_0x456b2c,'end');const _0x4051fd=_0x158bd1['rowInsertionIndexes']['includes'](_0x21423e['row']),_0x1e5326=_0x158bd1['columnInsertionIndexes']['includes'](_0x21423e['column']);_0x4051fd||_0x1e5326||(_0x3c460a=_0x32fb4b['fromRange'](_0x36566c['createRangeIn'](_0x456b2c)));}else _0x31a201&&!_0x3330eb&&(_0x20c94a=_0x36566c['createRangeIn'](_0x456b2c));}else{const _0x3d4c6b=_0x36566c['createElement']('tableCellSuggestion'),_0x23eff4=_0x36566c['createElement']('tableCellSuggestion');_0x36566c['wrap'](_0x36566c['createRangeIn'](_0x456b2c),_0x23eff4),_0x36566c['insert'](_0x3d4c6b,_0x456b2c,0x0);for(const _0x5de3e3 of Array['from'](_0x14500c['getChildren']()))_0x36566c['insert'](_0x5de3e3,_0x3d4c6b,'end');_0x3c460a=_0x32fb4b['fromRange'](_0x36566c['createRangeOn'](_0x3d4c6b)),_0x20c94a=_0x32fb4b['fromRange'](_0x36566c['createRangeOn'](_0x23eff4));}const _0x48259c=Array['from'](_0x14500c['getAttributes']())['filter'](([_0x53412e])=>ge['includes'](_0x53412e));_0x158bd1['cells']['push']({'element':_0x456b2c,'attributes':_0x48259c['length']?Object['fromEntries'](_0x48259c):null}),_0x3c460a&&_0x158bd1['insertionRanges']['push'](_0x3c460a),_0x20c94a&&_0x158bd1['deletionRanges']['push'](_0x20c94a);},{'priority':'high'}),_0x247016['on']('insertColumns',(_0x333217,_0x2ef9f4)=>{const [_0x2e6880,_0x53807d={}]=_0x2ef9f4;if(!_0x158bd1)return;const _0xa481ac=_0x53807d['at']||0x0,_0x16d933=_0x53807d['columns']||0x1;_0x158bd1['columnInsertionIndexes']=new Array(_0x16d933)['fill'](_0xa481ac)['map']((_0x3e3488,_0x14e110)=>_0x3e3488+_0x14e110);for(const {cell:_0x184e0a}of _0x247016['createTableWalker'](_0x2e6880,{'startColumn':_0xa481ac,'endColumn':_0xa481ac+_0x16d933-0x1}))_0x158bd1['columnInsertionRanges']['push'](_0x53eabd['model']['createRangeOn'](_0x184e0a));},{'priority':'low'}),_0x247016['on']('insertRows',(_0x49daad,_0x5060dd)=>{const [_0x443366,_0x359526={}]=_0x5060dd;if(!_0x158bd1)return;const _0x28aa1b=_0x359526['at']||0x0,_0x1dcee3=_0x359526['rows']||0x1;_0x158bd1['rowInsertionIndexes']=new Array(_0x1dcee3)['fill'](_0x28aa1b)['map']((_0x52b290,_0x555dfe)=>_0x52b290+_0x555dfe);for(const {cell:_0x58da8a}of _0x247016['createTableWalker'](_0x443366,{'startRow':_0x28aa1b,'endRow':_0x28aa1b+_0x1dcee3-0x1}))_0x158bd1['rowInsertionRanges']['push'](_0x53eabd['model']['createRangeOn'](_0x58da8a));},{'priority':'low'}),_0x36366a['descriptionFactory']['registerDescriptionCallback'](_0x376d60=>{if(_0x376d60['subType']&&_0x376d60['subType']['startsWith']('tablePaste'))return _0x376d60['previous']?{}:{'type':'insertion','content':o(_0x53eabd['locale'],'*Replace\x20table\x20cells*')};});const _0x3d5f53=()=>!0x1;for(const _0xe558d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x36366a['_suggestionFactory']['registerCustomCallback']('insertion',_0xe558d,'join',_0x3d5f53),_0x36366a['_suggestionFactory']['registerCustomCallback']('deletion',_0xe558d,'join',_0x3d5f53),_0x36366a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe558d,'join',_0x3d5f53);_0x36366a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3d5f53),_0x36366a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x516bea,_0x1f2c5d,_0x238a1f)=>{const _0x24bdf1=_0x516bea['map'](_0x41377c=>_0x41377c['getContainedElement']())['filter'](_0x1d1e6d=>_0x1d1e6d),_0x25403b=new Map(_0x24bdf1['map'](_0x19c214=>[_0x19c214,null]));if(_0x158bd1){for(const {element:_0x31dd3a,attributes:_0x670b5b}of _0x158bd1['cells'])_0x670b5b&&_0x25403b['set'](_0x31dd3a,_0x670b5b);}else{if(_0x238a1f&&_0x238a1f['markerAttributes'])for(const [_0x489d48,_0xc2a43c]of Object['entries'](_0x238a1f['markerAttributes'])){const _0x16e2b6=_0x53eabd['model']['markers']['get'](_0x489d48),_0x5aea01=_0x16e2b6?_0x16e2b6['getRange']()['getContainedElement']():null;_0x5aea01&&_0x25403b['set'](_0x5aea01,_0xc2a43c);}}_0x53eabd['model']['change'](_0x1b83eb=>{for(const [_0xdaac25,_0x3f9484]of _0x25403b)_0x1b83eb['setAttributes']({...Ce,..._0x3f9484},_0xdaac25);});});const _0x31436f=(_0x30972e,_0x2c9138)=>{_0x36366a['_suggestionFactory']['registerCustomCallback'](_0x30972e,'tablePaste',_0x2c9138,(_0x405a9c,_0x2c4959,_0x2a5daa)=>{_0x53eabd['model']['change'](_0x43e039=>{const _0x460254=[];for(const _0x23796c of _0x405a9c){const _0x49db89=_0x23796c['start']['nodeAfter'];_0x49db89['is']('element','tableCellSuggestion')&&_0x460254['push'](_0x49db89);}_0x36366a['_suggestionFactory']['getSuggestionCallback'](_0x30972e,null,_0x2c9138)(_0x405a9c,_0x2c4959,_0x2a5daa);for(const _0x5e3a0f of _0x460254)'$graveyard'!=_0x5e3a0f['root']['rootName']&&_0x43e039['unwrap'](_0x5e3a0f);});});};_0x31436f('insertion','accept'),_0x31436f('insertion','discard'),_0x31436f('deletion','accept'),_0x31436f('deletion','discard'),_0x36366a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x33ff04=>{const _0x28269d=_0x33ff04['map'](_0x5c2b9a=>_0x5c2b9a['getContainedElement']()),_0x4c2136=_0x28269d[0x0]['findAncestor']('table'),{minRow:_0x23a5c8,maxRow:_0x2e9574}=_0x23227e['_getCoordsForCells'](_0x28269d);_0x247016['removeRows'](_0x4c2136,{'at':_0x23a5c8,'rows':_0x2e9574-_0x23a5c8+0x1});}),_0x36366a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3e1f90=>{const _0x1c0042=_0x3e1f90['map'](_0x1987bb=>_0x1987bb['getContainedElement']()),_0x5dec68=_0x1c0042[0x0]['findAncestor']('table'),{minColumn:_0x15a097,maxColumn:_0x5bf7ae}=_0x23227e['_getCoordsForCells'](_0x1c0042);_0x247016['removeColumns'](_0x5dec68,{'at':_0x15a097,'columns':_0x5bf7ae-_0x15a097+0x1});});const _0x12fff7=(_0x2138b6,_0x1e776e)=>{if(!_0x1e776e['subType']||!_0x1e776e['subType']['startsWith']('tablePaste'))return;const _0xba4bba=_0x1e776e['attributes']['tablePasteChainId'],_0x36662f=_0x36366a['getSuggestions']()['filter'](_0x32a8aa=>_0x32a8aa['isInContent']&&_0x32a8aa['attributes']&&_0x32a8aa['attributes']['tablePasteChainId']==_0xba4bba);_0x36662f['length']&&_0x1e776e['getAllAdjacentSuggestions']()['length']!=_0x36662f['length']&&_0x36662f['reduce']((_0x425b3a,_0x4f4eff)=>(_0x425b3a['next']=_0x4f4eff,_0x4f4eff['previous']=_0x425b3a,_0x4f4eff));};function _0x20cdcb(_0x2bb203,_0x3c327d=!0x0){const {id:_0x2daa33}=_0x36366a['_splitMarkerName'](_0x2bb203['markerName']),_0x721897=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3d5883=_0x36366a['activeMarkers']['includes'](_0x2bb203['markerName']);return _0x3d5883&&_0x721897['push']('ck-suggestion-marker--active'),{'classes':_0x721897,'attributes':{'data-suggestion':_0x2daa33},'priority':_0x3d5883&&_0x3c327d?0xbc2:0xbb8};}_0x36366a['on']('suggestionLoaded',_0x12fff7,{'priority':'high'}),_0x36366a['on']('suggestionUnloaded',_0x12fff7,{'priority':'high'}),_0x53eabd['model']['document']['registerPostFixer'](()=>{let _0x5ab95c=!0x1;const _0x38dbca=Array['from'](_0x53eabd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27a93a,data:_0x313e37}of _0x38dbca){const {group:_0x111ed5,type:_0x52c8bc,id:_0x2df753}=_0x36366a['_splitMarkerName'](_0x27a93a);if('suggestion'!=_0x111ed5||'deletion'!=_0x52c8bc||_0x313e37['oldRange'])continue;if(!_0x36366a['hasSuggestion'](_0x2df753))continue;const _0x5eacc9=_0x36366a['getSuggestion'](_0x2df753)['getRanges'](),_0x477e95=_0x53eabd['plugins']['get']('Users')['me'];for(const _0xbd821e of _0x36366a['getSuggestions']()){if(!_0xbd821e['isInContent']||_0xbd821e['author']!=_0x477e95)continue;if('formatBlock'!=_0xbd821e['type']||'tablePasteCell'!=_0xbd821e['subType'])continue;if(_0xbd821e['getRanges']()['every'](_0x107b13=>_0x5eacc9['some'](_0x504337=>_0x504337['containsRange'](_0x107b13,!0x0)))){for(const _0x354aab of _0xbd821e['getAllAdjacentSuggestions']())_0x354aab['isInContent']&&(_0x354aab['discard'](),_0x5ab95c=!0x0);}}}return _0x5ab95c;}),_0x53eabd['model']['document']['registerPostFixer'](_0xd1894=>{const _0x5eaa0c=_0x53eabd['commands']['get']('redo');if(!_0x5eaa0c||!_0x5eaa0c['_createdBatches']['has'](_0xd1894['batch']))return!0x1;let _0xa5ccce=!0x1;const _0x62b6cd=_0x53eabd['plugins']['get']('Users')['me'],_0x3da657=_0x53eabd['model']['document']['differ']['getChanges'](),_0x1b1b77=Array['from'](_0x53eabd['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x10b4d8,data:_0x52e506})=>{const {group:_0x2c061f,subType:_0x4cf0af,authorId:_0x297da9}=_0x36366a['_splitMarkerName'](_0x10b4d8);return'suggestion'==_0x2c061f&&'tablePaste'==_0x4cf0af&&_0x297da9==_0x62b6cd['id']&&!_0x52e506['oldRange'];});for(const _0x7390ef of _0x3da657){if('insert'!=_0x7390ef['type']||'tableCellSuggestion'!=_0x7390ef['name']||0x1!=_0x7390ef['length'])continue;const _0x5ca507=_0xd1894['createRange'](_0x7390ef['position'],_0x7390ef['position']['getShiftedBy'](0x1));if(!_0x1b1b77['find'](({data:_0x3f09a4})=>_0x3f09a4['newRange']['isEqual'](_0x5ca507))){for(const {name:_0x42fc81,data:_0xf32493}of _0x1b1b77)if(_0x5ca507['containsRange'](_0xf32493['newRange'])){_0xd1894['updateMarker'](_0x42fc81,{'range':_0x5ca507}),_0xa5ccce=!0x0;break;}}}return _0xa5ccce;}),_0x53eabd['model']['document']['registerPostFixer'](_0x38949f=>{let _0x286c21=!0x1;const _0x48686d=_0x53eabd['plugins']['get']('Users')['me'],_0x23d78b=_0x36366a['getSuggestions']()['filter'](_0x4a2f3c=>_0x4a2f3c['isInContent']&&_0x4a2f3c['author']==_0x48686d),_0x30203b=new Set(),_0x29867b=new Set();for(const _0x3f6782 of _0x23d78b)if('tablePaste'==_0x3f6782['subType'])for(const _0x3e7e01 of _0x3f6782['getMarkers']()){const _0x3f0114=_0x3e7e01['getRange']()['getContainedElement']();if(_0x3f0114){if(_0x3f0114['is']('element','tableCellSuggestion')&&Pe(_0x3f0114)){_0x3f6782['removeMarker'](_0x3e7e01['name']),_0x30203b['add'](_0x3f0114),_0x286c21=!0x0;const _0x3f410c=_0x3f0114['nextSibling'],_0x3e1010=_0x3f0114['previousSibling'],_0x4032b6=_0x3f410c&&_0x3f410c['is']('element','tableCellSuggestion'),_0x29fbc8=_0x3e1010&&_0x3e1010['is']('element','tableCellSuggestion');_0x4032b6&&!_0x30203b['has'](_0x3f410c)&&_0x29867b['add'](_0x3f410c),_0x29fbc8&&!_0x30203b['has'](_0x3e1010)&&_0x29867b['add'](_0x3e1010);}else _0x3f0114['is']('element','paragraph')&&_0x3f0114['isEmpty']&&(_0x3f6782['removeMarker'](_0x3e7e01['name']),_0x286c21=!0x0);}}else{if('tablePasteCell'==_0x3f6782['subType']){if(!_0x3f6782['attributes']||!_0x3f6782['attributes']['tablePasteChainId'])continue;const _0x421187=_0x3f6782['attributes']['markerAttributes'];if(_0x421187&&Object['keys'](_0x421187)['length'])continue;const _0x358658=_0x3f6782['attributes']['tablePasteChainId'];let _0x400b72=!0x0,_0x4e7e06=!0x0;for(const _0x5581ba of _0x23d78b)if(_0x5581ba['subType']&&_0x5581ba['subType']['startsWith']('tablePaste')){if(!_0x5581ba['attributes']['tablePasteChainId']){_0x4e7e06=!0x1;break;}if(_0x5581ba['id']!=_0x3f6782['id']&&_0x5581ba['attributes']['tablePasteChainId']==_0x358658){_0x400b72=!0x1;break;}}_0x4e7e06&&_0x400b72&&(_0x3f6782['removeMarkers'](),_0x286c21=!0x0);}}for(const _0x4a98d9 of _0x30203b)_0x38949f['remove'](_0x4a98d9);for(const _0x382d3f of _0x29867b)_0x38949f['unwrap'](_0x382d3f);return _0x286c21;}),_0x53eabd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x33dec3,_0x2d78db)=>_0x20cdcb(_0x33dec3),'converterPriority':'high'}),_0x53eabd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x56b65d,_0xea3ef)=>_0xea3ef['options']['showSuggestionHighlights']?_0x20cdcb(_0x56b65d,!0x1):null,'converterPriority':'high'});const _0xb36ee1=_0x53eabd['editing']['view'];this['listenTo'](_0xb36ee1['document'],'clipboardOutput',(_0x4abb4e,_0xffd3a7)=>{const _0xf21d2a=[];for(const _0xe0d8cb of _0xb36ee1['createRangeIn'](_0xffd3a7['content'])['getItems']())_0xe0d8cb['is']('element','suggestion-td')&&_0xf21d2a['push'](_0xe0d8cb);_0xb36ee1['change'](_0x52d52f=>{for(const _0x4a190d of _0xf21d2a)_0x52d52f['move'](_0x52d52f['createRangeIn'](_0x4a190d),_0x52d52f['createPositionBefore'](_0x4a190d)),_0x52d52f['remove'](_0x4a190d);});});}}function Pe(_0x1bac56){if(_0x1bac56['isEmpty'])return!0x0;const _0x546876=_0x1bac56['getChild'](0x0);return _0x546876['is']('element','paragraph')&&_0x546876['isEmpty'];}function we(_0xca6bb0,_0x3ed939={},_0x387438){for(const {isAnchor:_0x22f302,cellHeight:_0x1e56f5,cellWidth:_0x514390}of _0x387438['createTableWalker'](_0xca6bb0,{'includeAllSlots':!0x0,..._0x3ed939}))if(!_0x22f302||0x1!=_0x1e56f5||0x1!=_0x514390)return!0x1;return!0x0;}class Ct extends _0x588c48{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x491966=this['editor']['plugins']['get']('TrackChangesEditing');_0x491966['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x491966['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x491966['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x491966['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x491966['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x491966['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x28ad98,_0x31b604){const _0x3ff975=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37670e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3a5cb1=_0x31b604['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5522b5=_0x37670e['getColumnGroupElement'](_0x3a5cb1);let _0x3b6a1a=_0x5522b5?_0x37670e['getTableColumnsWidths'](_0x5522b5):null,_0x3bd386=_0x3a5cb1['getAttribute']('tableWidth')||null;const _0x446f0c=_0x31b604['tableWidth']||_0x3bd386,_0x18a77b=_0x31b604['columnWidths']||_0x3b6a1a,_0x2f0641=this['editor']['plugins']['get']('Users')['me'];for(const _0x5eb7df of _0x3ff975['getSuggestions']()){const _0x50bb4f=_0x5eb7df['getContainedElement']();if('resizeTable'===_0x5eb7df['subType']&&_0x50bb4f===_0x3a5cb1){_0x5eb7df['author']!==_0x2f0641&&_0x5eb7df['discard']();const _0x17dbdd=_0x5eb7df['data']['commandParams'];_0x3bd386=_0x17dbdd[0x0]['tableWidth'],_0x3b6a1a=_0x17dbdd[0x0]['columnWidths'];break;}}_0x28ad98({'table':_0x3a5cb1,'tableWidth':_0x446f0c,'columnWidths':_0x18a77b}),_0x3ff975['markBlockFormat'](_0x3a5cb1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3bd386,'columnWidths':_0x3b6a1a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x386d50){if('formatBlock'!=_0x386d50['type']&&'formatInline'!=_0x386d50['type'])return;const {data:_0xbab568}=_0x386d50;if(_0xbab568&&'resizeTable'===_0xbab568['formatGroupId']){const _0x28d6b5='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x28d6b5)};}}}class _t extends _0x588c48{['afterInit'](){const _0x45e44d=this['editor'];_0x45e44d['plugins']['has']('Template')&&_0x45e44d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Nt extends _0x588c48{['afterInit'](){const _0x2e9b5a=this['editor'];if(!_0x2e9b5a['commands']['get']('insertTableOfContents'))return;_0x2e9b5a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2fcbb5=_0x2e9b5a['plugins']['get']('TrackChangesEditing'),_0xa46eec=_0x2e9b5a['locale'];_0x2fcbb5['descriptionFactory']['registerElementLabel']('tableOfContents',_0xfcb2af=>o(_0xa46eec,'ELEMENT_TABLE_OF_CONTENTS',_0xfcb2af));}}class Dt extends _0x588c48{['afterInit'](){const _0x1641bc=this['editor'];if(!_0x1641bc['plugins']['has']('Title'))return;const _0x3c2ae1=_0x1641bc['plugins']['get']('TrackChangesEditing');_0x3c2ae1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1641bc['locale'],'ELEMENT_TITLE')),_0x1641bc['model']['document']['registerPostFixer'](_0xa2a050=>{let _0x1ea023=!0x1;const _0x1b8a99=Array['from'](_0x1641bc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x294b9a,data:_0x1ce91e}of _0x1b8a99){const {group:_0x387c85}=_0x3c2ae1['_splitMarkerName'](_0x294b9a);if('suggestion'!==_0x387c85||!_0x1ce91e['newRange'])continue;const _0x2934c4=_0x1ce91e['newRange'],_0x2ddc06=_0x2934c4['end']['nodeBefore'];if(!_0x2ddc06||!_0x2ddc06['is']('element','title-content'))continue;if(!_0x2934c4['start']['isTouching'](_0x2934c4['end']))continue;const _0x32cdb1=_0x1641bc['model']['schema']['getNearestSelectionRange'](_0x2934c4['end'],'forward');if(_0x32cdb1&&_0x32cdb1['isCollapsed']){const _0x36ffc7=_0xa2a050['createRange'](_0x2934c4['start'],_0x32cdb1['start']);_0x36ffc7['isEqual'](_0x2934c4)||(_0xa2a050['updateMarker'](_0x294b9a,{'range':_0x36ffc7}),_0x1ea023=!0x0);}_0x1ea023||(_0xa2a050['removeMarker'](_0x294b9a),_0x1ea023=!0x0);}return _0x1ea023;});}}class Mt extends _0x588c48{['afterInit'](){const _0x59e7d0=this['editor'],_0x1a4dca=_0x59e7d0['plugins']['get']('TrackChangesEditing');_0x59e7d0['plugins']['has']('UndoEditing')&&(_0x1a4dca['enableCommand']('undo'),_0x1a4dca['enableCommand']('redo'));}}class $t extends _0x588c48{static get['requires'](){return[St];}['afterInit'](){const _0xa2953f=this['editor'];if(!_0xa2953f['plugins']['has']('TableCaptionEditing'))return;_0xa2953f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Bt extends _0x588c48{['tableProperties'];['tableCellProperties'];constructor(_0x2796a8){super(_0x2796a8),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 _0x369722=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x93c155 of this['tableProperties'])_0x369722['enableCommand'](_0x93c155,(_0x3e7b13,_0x163ccc)=>{const _0x3e32d7=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x93c155,[_0x3e32d7],this['tableProperties'],'tableProperties',_0x3e7b13,_0x163ccc);});_0x369722['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x369722['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x369722['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xcde084,_0x34b31f)=>this['handleDiscardAction'](this['tableProperties'],_0xcde084,_0x34b31f)),_0x369722['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x35d21a of this['tableCellProperties'])_0x369722['enableCommand'](_0x35d21a,(_0x274c83,_0x2d2d6a)=>{const _0x52b651=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x35d21a,_0x52b651,this['tableCellProperties'],'tableCellProperties',_0x274c83,_0x2d2d6a);});_0x369722['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x369722['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x369722['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x117b85,_0x60b0cf)=>this['handleDiscardAction'](this['tableCellProperties'],_0x117b85,_0x60b0cf)),_0x369722['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x369722['descriptionFactory']['registerDescriptionCallback'](_0x25cb0d=>this['handleSuggestionDescription'](_0x25cb0d));}['_handlePropertyChange'](_0x4a7932,_0x47d8e1,_0x155bc5,_0x2cfd92,_0x5c773e,_0x1b45ec){const _0x4fe874=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1b45ec['batch'],()=>{for(const _0x311c45 of _0x47d8e1){if(this['_getSuggestion'](_0x311c45,_0x2cfd92))_0x5c773e(_0x1b45ec);else{const _0x59862d={};for(const _0x4da2b4 of _0x155bc5){const _0x35754c=_0x311c45['getAttribute'](_0x4da2b4);void 0x0!==_0x35754c&&(_0x59862d[_0x4da2b4]=_0x35754c);}_0x5c773e(_0x1b45ec),_0x4fe874['markBlockFormat'](_0x311c45,{'commandParams':[_0x59862d]},[],_0x2cfd92);}}});}['handleDiscardAction'](_0x33afc9,_0x177f64,_0x3d6444){const _0x35a65c=_0x177f64[0x0]['start']['nodeAfter'],_0x1100e5=_0x3d6444['commandParams'][0x0];this['editor']['model']['change'](_0x3306e1=>{for(const _0x48cd7f of _0x33afc9)void 0x0!==_0x1100e5[_0x48cd7f]?_0x3306e1['setAttribute'](_0x48cd7f,_0x1100e5[_0x48cd7f],_0x35a65c):_0x3306e1['removeAttribute'](_0x48cd7f,_0x35a65c);});}['handleSuggestionDescription'](_0x125c5a){if(_0x125c5a['data'])switch(_0x125c5a['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'](_0x27e229,_0x3f0ba6){const _0x1c0741=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x12927e of _0x1c0741['getSuggestions']({'skipNotAttached':!0x0})){const _0x19eafc=_0x12927e['getContainedElement']();if(_0x12927e['subType']===_0x3f0ba6&&_0x19eafc===_0x27e229)return _0x12927e;}return null;}}const m='$elementName';class p extends _0x588c48{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1944ad,_0x5a468c,E,O,V,U,F,G,L,H,J,K,W,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,z,mt,ct,q,pe,ft,gt,lt,dt,pt,kt,bt,wt,yt,jt,St,At,It,$t,vt,Ct,Nt,Bt,_t,Dt,Mt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x53d85){function _0x2a82ec(_0x541a5b){return _0x541a5b['map'](_0x3a5ffd=>String['fromCharCode'](_0x3a5ffd))['join']('');}super(_0x53d85),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3034f6,_0x258d5f,_0x3521bf,_0x1ac74a)=>{this['_model']['change'](()=>{for(const _0x5279a9 of[..._0x1ac74a,..._0x3521bf])this['_model']['markers']['has'](_0x5279a9)&&_0x53d85['editing']['reconvertMarker'](_0x5279a9);});}),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']=_0x53d85['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(),_0x53d85['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x53d85['config']['get']('trackChanges.trackFormatChanges'),_0x53d85['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x53d85['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x53d85,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2a82ec([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2a82ec([0x34,0x30,0x34,0x38,0x31,0x34,0x36,0x30]);}['init'](){const _0xd823bd=this['editor'],_0x1213dc=(_0x464c07,_0x10d39e)=>{if('attribute'!=_0x464c07)return'ck-suggestion-marker-'+_0x464c07;const _0x570582=_0x10d39e['split']('|')[0x0];return this['_isBlockAttribute'](_0x570582)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xd823bd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x57b6eb=>{const {id:_0x5a2f13,type:_0x2898db,subType:_0x257d09}=this['_splitMarkerName'](_0x57b6eb['markerName']),_0x510825=['ck-suggestion-marker',_0x1213dc(_0x2898db,_0x257d09)];let _0x44b23d=0xbb8;return this['activeMarkers']['includes'](_0x57b6eb['markerName'])&&(_0x510825['push']('ck-suggestion-marker--active'),_0x44b23d=0xbc2),'deletion'==_0x2898db&&(_0x44b23d+=0x5),{'classes':_0x510825,'attributes':{'data-suggestion':_0x5a2f13},'priority':_0x44b23d};}}),_0xd823bd['conversion']['for']('dataDowncast')['add'](_0x2eb2d0=>{_0x2eb2d0['on']('addMarker:suggestion',(_0x5e39f7,_0x316744,_0x58da94)=>{if(!_0x58da94['options']['showSuggestionHighlights'])return;const _0x45b091=_0x316744['item'];if(!_0x45b091)return;const _0x52d28d=_0x58da94['mapper']['toViewElement'](_0x45b091);_0xd823bd['model']['schema']['isObject'](_0x45b091)&&_0x52d28d&&!_0x52d28d['getCustomProperty']('widget')&&_0x52d28d['is']('containerElement')&&_0x568ea0(_0x52d28d,_0x58da94['writer']);},{'priority':'high'});}),_0xd823bd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x357889,_0x32f207)=>{if(!_0x32f207['options']['showSuggestionHighlights'])return null;const {type:_0x431c1a,subType:_0x41d8b0}=this['_splitMarkerName'](_0x357889['markerName']);return{'classes':['ck-suggestion-marker',_0x1213dc(_0x431c1a,_0x41d8b0)],'priority':0xbb8};}});const _0x4d34a2=({showActiveMarkers:_0x19727e=!0x0,isAttributeSuggestion:_0x33a053=!0x1}={})=>(_0x4837fe,_0x4aadc0,_0x28b8c8)=>{if(!_0x4aadc0['item'])return;const {id:_0x5bcaac}=this['_splitMarkerName'](_0x4aadc0['markerName']);if(_0x33a053){const _0x2ee632=this['_suggestions']['get'](_0x5bcaac),_0x510ca5=this['_getAttributeKey'](_0x2ee632);if(!this['_isBlockAttribute'](_0x510ca5))return;}if(_0x4aadc0['item']['is']('selection'))return void _0x28b8c8['consumable']['consume'](_0x4aadc0['item'],_0x4837fe['name']);const _0x591996=_0x28b8c8['mapper']['toViewElement'](_0x4aadc0['item']);if(_0x4aadc0['item']['is']('element')&&_0xd823bd['model']['schema']['isBlock'](_0x4aadc0['item'])&&!_0x591996['getCustomProperty']('addHighlight')){_0x28b8c8['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x591996),_0x28b8c8['writer']['setAttribute']('data-suggestion',_0x5bcaac,_0x591996),_0x28b8c8['mapper']['bindElementToMarker'](_0x591996,_0x4aadc0['markerName']),_0x19727e&&(this['activeMarkers']['includes'](_0x4aadc0['markerName'])?_0x28b8c8['writer']['addClass']('ck-suggestion-marker--active',_0x591996):_0x28b8c8['writer']['removeClass']('ck-suggestion-marker--active',_0x591996));for(const _0x57080f of _0xd823bd['model']['createRangeIn'](_0x4aadc0['item'])['getItems']())_0x28b8c8['consumable']['consume'](_0x57080f,_0x4837fe['name']);_0x28b8c8['consumable']['consume'](_0x4aadc0['item'],_0x4837fe['name']);}};_0xd823bd['conversion']['for']('dataDowncast')['add'](_0x229eb0=>{_0x229eb0['on']('addMarker:suggestion:formatBlock',(_0x2bff44,_0x4a59f,_0x2b0e21)=>{_0x2b0e21['options']['showSuggestionHighlights']&&_0x4d34a2({'showActiveMarkers':!0x1})(_0x2bff44,_0x4a59f,_0x2b0e21);},{'priority':'highest'});}),_0xd823bd['conversion']['for']('dataDowncast')['add'](_0x32110d=>{_0x32110d['on']('addMarker:suggestion:attribute',(_0x2dca5f,_0x1839ca,_0x2aca10)=>{_0x2aca10['options']['showSuggestionHighlights']&&_0x4d34a2({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2dca5f,_0x1839ca,_0x2aca10);},{'priority':'highest'});}),_0xd823bd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x214ca3,_0x4e10bb)=>_0x4e10bb['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x214ca3['substr'](0xb)}}),_0xd823bd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3ad0e6,{writer:_0x5c414c})=>{let _0xe90f8a='suggestion:'+_0x3ad0e6['getAttribute']('suggestion-type')+':'+_0x3ad0e6['getAttribute']('id');return _0x3ad0e6['getAttribute']('marker-count')&&(_0xe90f8a+=':'+_0x3ad0e6['getAttribute']('marker-count')),_0x5c414c['createElement']('$marker',{'data-name':_0xe90f8a});}}),_0xd823bd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xd823bd['conversion']['for']('editingDowncast')['add'](_0x1f4ae6=>{_0x1f4ae6['on']('addMarker:suggestion:formatBlock',_0x4d34a2(),{'priority':'high'});}),_0xd823bd['conversion']['for']('editingDowncast')['add'](_0xdc550a=>{_0xdc550a['on']('addMarker:suggestion:attribute',_0x4d34a2({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xd823bd['conversion']['for']('editingDowncast')['add'](_0x3fb32a=>{_0x3fb32a['on']('removeMarker:suggestion:formatBlock',(_0x120d0,_0x32497c,_0x557e13)=>{const _0x3ed238=_0x557e13['mapper']['markerNameToElements'](_0x32497c['markerName']);if(_0x3ed238){for(const _0x4b2bb1 of _0x3ed238)_0x4b2bb1['getCustomProperty']('addHighlight')||(_0x557e13['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4b2bb1),_0x557e13['writer']['removeAttribute']('data-suggestion',_0x4b2bb1),_0x557e13['mapper']['unbindElementFromMarkerName'](_0x4b2bb1,_0x32497c['markerName']));}},{'priority':'high'});}),_0xd823bd['conversion']['for']('editingDowncast')['add'](_0x1806de=>{_0x1806de['on']('removeMarker:suggestion:attribute',(_0x3100d3,_0x2e4a23,_0x5c3373)=>{const _0x5489a6=_0x5c3373['mapper']['markerNameToElements'](_0x2e4a23['markerName']);if(!_0x5489a6)return;const {id:_0xe995e7}=this['_splitMarkerName'](_0x2e4a23['markerName']),_0x340954=this['_suggestions']['get'](_0xe995e7),_0x4589cc=this['_getAttributeKey'](_0x340954);if(this['_isBlockAttribute'](_0x4589cc)){for(const _0x54d185 of _0x5489a6)_0x54d185['getCustomProperty']('addHighlight')||(_0x5c3373['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x54d185),_0x5c3373['writer']['removeAttribute']('data-suggestion',_0x54d185),_0x5c3373['mapper']['unbindElementFromMarkerName'](_0x54d185,_0x2e4a23['markerName']));}},{'priority':'high'});}),_0xd823bd['model']['document']['registerPostFixer'](_0x42b263=>{let _0x45f6dd=!0x1;const _0x14e85f=Array['from'](_0xd823bd['model']['document']['differ']['getChangedMarkers']()),_0x3c7b6b=new Set();for(const {name:_0x364000,data:_0x3a9f70}of _0x14e85f){const {group:_0x4bfec1,type:_0x12f9bd,subType:_0x41a0e2,id:_0x5a0fb3}=this['_splitMarkerName'](_0x364000);if('suggestion'!==_0x4bfec1)continue;const _0x1c1731=this['_suggestions']['get'](_0x5a0fb3);if(null!=_0x3a9f70['newRange']){'formatInline'==_0x12f9bd&&(_0x45f6dd=_0x45f6dd||Ot(_0x3a9f70['newRange'],_0x364000,_0x42b263,_0xd823bd['model']['schema']));const _0x5ef1f2='attribute'==_0x12f9bd&&this['_isBlockAttribute'](_0x41a0e2['split']('|')[0x0]);if(_0x3a9f70['newRange']['isCollapsed']||'$graveyard'==_0x3a9f70['newRange']['root']['rootName']||'formatBlock'==_0x12f9bd&&!Ut(_0x3a9f70['newRange'])||_0x5ef1f2&&!Ut(_0x3a9f70['newRange'])||'deletion'==_0x12f9bd&&!(!Et(_0xb6029d=_0x3a9f70['newRange'])&&!function(_0x1d3f43){return _0x1d3f43['start']['parent']==_0x1d3f43['end']['nodeBefore']&&_0x1d3f43['start']['isAtEnd'];}(_0xb6029d)))_0x42b263['removeMarker'](_0x364000),_0x45f6dd=!0x0;else{if(!_0x1c1731||!_0x1c1731['isInContent'])continue;if(_0x3a9f70['newRange']&&_0x3a9f70['oldRange']&&_0x3a9f70['newRange']['isEqual'](_0x3a9f70['oldRange']))continue;_0x3c7b6b['add'](_0x1c1731);}}}var _0xb6029d;return _0x3c7b6b['size']>0x0&&(_0x45f6dd=!!this['_joinWithAdjacentSuggestions'](_0x3c7b6b)||_0x45f6dd),_0x45f6dd;}),_0xd823bd['model']['document']['registerPostFixer'](_0x55e796=>{let _0x5f154d=!0x1;for(const _0x5112e7 of _0xd823bd['model']['document']['differ']['getChanges']())if('insert'==_0x5112e7['type'])for(const _0x309f80 of this['_suggestions']['values']()){if(_0x309f80['isMultiRange']||!_0x309f80['isInContent'])continue;const _0x3baa4b='formatBlock'==_0x309f80['type'],_0x3269fb=this['_getAttributeKey'](_0x309f80),_0x33a6b3=_0x3269fb&&this['_isBlockAttribute'](_0x3269fb);if(!_0x3baa4b&&!_0x33a6b3)continue;const _0x22ecb5=_0x309f80['getFirstRange']();if(_0x22ecb5['start']['parent']!=_0x22ecb5['end']['parent']&&!_0x22ecb5['end']['isAtEnd']){const _0x1290af=_0xd823bd['model']['createPositionAt'](_0x22ecb5['start']['nodeAfter'],'end'),_0x1bde3e=_0xd823bd['model']['createRange'](_0x22ecb5['start'],_0x1290af);_0x55e796['updateMarker'](_0x309f80['getFirstMarker'](),{'range':_0x1bde3e}),_0x5f154d=!0x0;}}return _0x5f154d;}),_0xd823bd['model']['document']['registerPostFixer'](_0x417742=>this['_processAttributeChanges'](_0x417742)),_0xd823bd['model']['document']['registerPostFixer'](_0xe4994e=>!_0xe4994e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xe4994e)),_0xd823bd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xd823bd['model']['document']['on']('change:data',(_0x31aec9,_0x558187)=>{if(!_0x558187['isLocal']||_0x558187['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x57001c=_0xd823bd['model']['document']['differ']['getChanges']();if(0x0==_0x57001c['length'])return;const _0x19b924=[],_0x231074=_0x57001c['filter'](_0x286ead=>'attribute'==_0x286ead['type']),_0x52ebcc=_0x57001c['filter'](_0x202320=>'insert'==_0x202320['type']&&'$text'!=_0x202320['name']);for(const _0x463fbf of _0x231074)this['_isRegisteredAttribute'](_0x463fbf['attributeKey'])&&_0x19b924['push']({'key':_0x463fbf['attributeKey'],'newValue':_0x463fbf['attributeNewValue'],'oldValue':_0x463fbf['attributeOldValue'],'range':Gt(_0x463fbf['range'],_0xd823bd['model'])});for(const _0x250061 of _0x52ebcc){if('rename'!=_0x250061['action']&&'refresh'!=_0x250061['action'])continue;const _0x640605=Ft(_0x250061['position']['nodeAfter'],_0xd823bd['model']),_0x4e2264=_0x250061['before'];'rename'==_0x250061['action']&&_0x19b924['push']({'key':m,'newValue':_0x250061['name'],'oldValue':_0x4e2264['name'],'range':_0x640605});for(const [_0x35be3b,_0xe8d82d]of _0x4e2264['attributes']){if(!this['_isRegisteredAttribute'](_0x35be3b))continue;const _0x5e2a=_0x250061['attributes']['get'](_0x35be3b);_0xe8d82d!==_0x5e2a&&_0x19b924['push']({'key':_0x35be3b,'newValue':_0x5e2a,'oldValue':_0xe8d82d,'range':_0x640605});}for(const [_0x135eee,_0x4b0f3a]of _0x250061['attributes'])this['_isRegisteredAttribute'](_0x135eee)&&(_0x4e2264['attributes']['has'](_0x135eee)||_0x19b924['push']({'key':_0x135eee,'newValue':_0x4b0f3a,'oldValue':null,'range':_0x640605}));}0x0!=_0x19b924['length']&&_0xd823bd['model']['enqueueChange'](_0x558187,_0x327d6c=>{const _0x4db977=_0x417a0e();for(const {range:_0x37d95a,key:_0x26122f,oldValue:_0x5bcfff,newValue:_0x12e816}of _0x19b924)this['markAttributeChange'](_0x37d95a,_0x26122f,_0x5bcfff,_0x12e816,{'groupId':_0x4db977});this['_reduceExistingSuggestions'](_0x327d6c,_0x19b924);});},{'priority':'lowest'}),_0xd823bd['model']['markers']['on']('update:suggestion',(_0x114fca,_0x4b4900,_0x48798e)=>{if(null==_0x48798e){const {id:_0x423872}=this['_splitMarkerName'](_0x4b4900['name']),_0x132e02=this['_suggestions']['get'](_0x423872);_0x132e02&&_0x132e02['addMarkerName'](_0x4b4900['name']);}}),_0xd823bd['model']['document']['on']('change:data',()=>{const _0x1825ee=Array['from'](_0xd823bd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3484c5=>'suggestion'===this['_splitMarkerName'](_0x3484c5['name'])['group']);if(0x0===_0x1825ee['length'])return;_0x1825ee['sort']((_0x2b6783,_0x59298d)=>{const _0x230ac9=_0x2b6783['data']['oldRange'],_0x15596d=_0x59298d['data']['oldRange'];return null===_0x230ac9&&null===_0x15596d?0x0:null===_0x230ac9&&null!==_0x15596d?-0x1:null!==_0x230ac9&&null===_0x15596d?0x1:_0x230ac9['start']['isBefore'](_0x15596d['start'])?-0x1:0x1;});const _0x23c59f=new Set(),_0x1c1872=new Set();for(const {name:_0x1349a,data:_0x29cc30}of _0x1825ee){const {id:_0x22c3b9}=this['_splitMarkerName'](_0x1349a);if(null===_0x29cc30['oldRange']){const _0x2ed68a=this['_handleNewSuggestionMarker'](_0x1349a);_0x1c1872['add'](_0x2ed68a);}else{const _0x304492=this['_suggestions']['get'](_0x22c3b9);null!==_0x29cc30['newRange']||_0x304492['isInContent']?(_0x23c59f['add'](_0x304492['head']),_0x1c1872['add'](_0x304492)):this['_removeSuggestion'](_0x304492);}}_0x1c1872['size']>0x0&&this['_refreshSuggestionsChain'](_0x1c1872);for(const _0x3fa66a of _0x23c59f)this['fire']('suggestionChanged',_0x3fa66a);}),_0xd823bd['model']['on']('applyOperation',(_0x11aaa3,_0x5d8da3)=>{const _0x6aa717=_0x5d8da3[0x0];if(!this['_suggestions']['size'])return;if(!_0x6aa717['isDocumentOperation'])return;if(_0x6aa717['batch']['isUndo']||!_0x6aa717['batch']['isLocal'])return;let _0x34cd23,_0x334366;switch(_0x6aa717['type']){case'insert':_0x34cd23=_0xd823bd['model']['createPositionAt'](_0x6aa717['position']),_0x334366=_0x34cd23['getShiftedBy'](_0x6aa717['howMany']);break;case'split':_0x34cd23=_0xd823bd['model']['createPositionAt'](_0x6aa717['splitPosition']),_0x334366=_0xd823bd['model']['createPositionAt'](_0x6aa717['moveTargetPosition']);break;case'move':_0x34cd23=_0xd823bd['model']['createPositionAt'](_0x6aa717['targetPosition']),_0x334366=_0x34cd23['getShiftedBy'](_0x6aa717['howMany']);break;default:return;}const _0x47c4e1=_0xd823bd['model']['createRange'](_0x34cd23,_0x334366);_0xd823bd['model']['change'](()=>{for(const {suggestion:_0x4932e3,meta:_0x21c839}of this['_findSuggestions'](_0x47c4e1)){if(_0x4932e3['isMultiRange'])continue;if('formatInline'==_0x4932e3['type'])continue;const _0x196f8a=this['_getAttributeKey'](_0x4932e3);if(_0x196f8a&&this['_isBlockAttribute'](_0x196f8a)&&'split'!=_0x6aa717['type'])continue;const _0x23dc29=_0x4932e3['data']&&_0x4932e3['data']['multipleBlocks'];('formatBlock'!=_0x4932e3['type']||'split'==_0x6aa717['type']&&!_0x23dc29)&&(_0x21c839['containsRangeInObject']||'insertion'==_0x4932e3['type']&&_0x21c839['isOwn']||_0x4932e3['getFirstRange']()['containsRange'](_0x47c4e1)&&this['_breakSuggestionMarker'](_0x4932e3,_0x34cd23,_0x334366));}});},{'priority':'lowest'}),_0xd823bd['model']['on']('deleteContent',(_0x2471e2,_0x598170)=>{const _0xee3043=_0x598170[0x0],_0xbc5e35=_0x598170[0x1];if(_0xbc5e35&&_0xbc5e35['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xee3043['isCollapsed'])return;const _0x1305d6=_0xd823bd['model']['schema'],{start:_0x346f80,end:_0x217928}=_0xee3043['getFirstRange'](),_0x467ce5=_0x346f80['nodeAfter']&&_0x1305d6['isLimit'](_0x346f80['nodeAfter'])?null:_0x1305d6['getNearestSelectionRange'](_0x346f80,'forward'),_0xdf1622=_0x217928['nodeBefore']&&_0x1305d6['isLimit'](_0x217928['nodeBefore'])?null:_0x1305d6['getNearestSelectionRange'](_0x217928,'backward'),_0x1d2624=_0xd823bd['model']['createRange'](_0x467ce5?_0x467ce5['start']:_0x346f80,_0xdf1622?_0xdf1622['end']:_0x217928);_0xd823bd['model']['change'](_0x3c4d0e=>{this['markDeletion'](_0x1d2624);const _0x1b0601=_0xd823bd['model']['schema']['getNearestSelectionRange'](_0x1d2624['start']);_0xee3043['is']('documentSelection')?_0x3c4d0e['setSelection'](_0x1b0601):_0xee3043['setTo'](_0x1b0601);}),_0x2471e2['stop']();},{'priority':_0x4cefce['normal']+0xa}),_0xd823bd['model']['on']('insertContent',(_0x3804b1,_0xb1d8f7)=>{const _0x2f5f83=_0xb1d8f7[_0xb1d8f7['length']-0x1];_0x2f5f83&&_0x2f5f83['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xd823bd['model']['change'](()=>{let _0x1810a2=_0xd823bd['model']['insertContent'](_0xb1d8f7[0x0],_0xb1d8f7[0x1],_0xb1d8f7[0x2],{'forceDefaultExecution':!0x0});if(!_0x1810a2)return;_0x3804b1['return']=_0x1810a2['clone']();const _0x594ef3=_0x1810a2['end']['nodeBefore'],_0x13d0fe=_0xd823bd['model']['schema'];_0x594ef3&&_0x13d0fe['isBlock'](_0x594ef3)&&!_0x13d0fe['isObject'](_0x594ef3)&&(_0x1810a2=_0xd823bd['model']['createRange'](_0x1810a2['start'],_0xd823bd['model']['createPositionAt'](_0x594ef3,'end'))),this['markInsertion'](_0x1810a2);}),_0x3804b1['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x247b91=new $(_0xd823bd,this['_suggestions']);_0xd823bd['commands']['add']('acceptSuggestion',_0x247b91),this['enableCommand']('acceptSuggestion');const _0x16f051=new B(_0xd823bd,this['_suggestions']);_0xd823bd['commands']['add']('discardSuggestion',_0x16f051),this['enableCommand']('discardSuggestion'),_0xd823bd['commands']['add']('acceptAllSuggestions',new x(_0xd823bd,_0x247b91,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xd823bd['commands']['add']('discardAllSuggestions',new x(_0xd823bd,_0x16f051,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xd823bd['commands']['add']('acceptSelectedSuggestions',new R(_0xd823bd,_0x247b91,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xd823bd['commands']['add']('discardSelectedSuggestions',new R(_0xd823bd,_0x16f051,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x57284b=_0xd823bd['plugins']['get']('CommentsRepository');this['listenTo'](_0x57284b,'addComment',(_0x182c5d,{threadId:_0x4dace4})=>{const _0x44ed82=this['_suggestions']['get'](_0x4dace4);_0x44ed82&&_0x44ed82['commentThread']&&0x1===_0x44ed82['commentThread']['length']&&this['_updateSuggestionData'](_0x4dace4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x57284b,'removeComment',(_0x112afa,{threadId:_0x10844f})=>{const _0x406572=this['_suggestions']['get'](_0x10844f);_0x406572&&_0x406572['commentThread']&&!_0x406572['commentThread']['length']&&this['_updateSuggestionData'](_0x10844f,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x504b14){if(this['_adapter'])throw new _0x52ebd1('track-changes-adapter-already-set',this);this['_adapter']=_0x504b14;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x13b1de=!0x1,toJSON:_0x29d3cd=!0x1}={}){const _0x4d133a=[];for(const _0xe4cd26 of this['_suggestions']['values']())_0x13b1de&&!_0xe4cd26['isInContent']||_0x4d133a['push'](_0xe4cd26);return _0x29d3cd?_0x4d133a['map'](_0x242bf3=>_0x242bf3['toJSON']()):_0x4d133a;}['getSuggestion'](_0x23839b){const _0x3b9d14=this['_suggestions']['get'](_0x23839b);if(!_0x3b9d14)throw new _0x52ebd1('track-changes-suggestion-not-found',this);return _0x3b9d14;}['hasSuggestion'](_0x1d558e){return this['_suggestions']['has'](_0x1d558e);}['addSuggestionData'](_0x1a8069){const {authorId:_0x5e716c,id:_0xfd4705,attributes:_0x56765f}=_0x1a8069,[_0x102b6a,_0x3163b9]=_0x1a8069['type']['split'](':'),_0x48cc33=this['_suggestions']['get'](_0xfd4705)||this['_createSuggestion'](_0x102b6a,_0x3163b9,_0xfd4705,_0x5e716c,_0x56765f);if(this['_addThreadToSuggestion'](_0x48cc33),this['_checkSuggestionCorrectness'](_0x48cc33,_0x102b6a,_0x3163b9||null,_0x5e716c),_0x48cc33['createdAt']=_0x1a8069['createdAt'],_0x48cc33['_isDataLoaded']=!0x0,_0x56765f&&_0x56765f['@external']){const _0x106234=_0x56765f['@external'],_0x44ce10=this['_getExternalAuthor'](_0x106234['authorName']);_0x48cc33['authoredAt']=_0x106234['createdAt'],_0x48cc33['author']=_0x44ce10,_0x48cc33['isExternal']=!0x0;}else _0x48cc33['authoredAt']=_0x1a8069['createdAt'];switch(_0x1a8069['data']&&(_0x48cc33['data']=_0x1a8069['data']),_0x1a8069['attributes']&&(_0x48cc33['attributes']=_0x1a8069['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x48cc33['_saved']=!0x0),this['_suggestionState']['get'](_0x48cc33)){case'notReady':this['_suggestionState']['set'](_0x48cc33,'dataReady');break;case'markerReady':_0x48cc33['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x48cc33])),this['_refreshSuggestionsChain'](new Set([_0x48cc33])),this['_suggestionState']['set'](_0x48cc33,'ready'),this['fire']('suggestionLoaded',_0x48cc33)):this['_suggestionState']['set'](_0x48cc33,'removed');}return _0x48cc33;}['acceptSuggestion'](_0x47fbc8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xb5b995 of _0x47fbc8['getAllAdjacentSuggestions']())_0xb5b995['accept']();});});}['discardSuggestion'](_0x4594ba){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4a8165 of _0x4594ba['getAllAdjacentSuggestions']())_0x4a8165['discard']();});});}['enableCommand'](_0x57c706,_0x6ceea3){const _0x56a6ee=this['editor']['commands']['get'](_0x57c706);if(!_0x56a6ee)throw new _0x52ebd1('track-changes-command-not-found',this,{'commandName':_0x57c706});if(this['_enabledCommands']['has'](_0x56a6ee))throw new _0x52ebd1('track-changes-enable-command-twice',this,{'commandName':_0x57c706});this['_enabledCommands']['add'](_0x56a6ee),_0x6ceea3&&_0x56a6ee['on']('execute',(_0x2aed62,_0x496fb6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x496fb6['length']>0x0&&_0x496fb6[_0x496fb6['length']-0x1]&&_0x496fb6[_0x496fb6['length']-0x1]['forceDefaultExecution']?_0x496fb6['pop']():(_0x2aed62['return']=_0x6ceea3((..._0x1f7bef)=>_0x56a6ee['execute'](..._0x1f7bef,{'forceDefaultExecution':!0x0}),..._0x496fb6),_0x2aed62['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3ed3cc){let _0xcc2c1a,_0x436eeb;const _0x5f18d3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xcc2c1a=_0x3ed3cc();}catch(_0x153e2a){_0x436eeb=_0x153e2a;}return _0x5f18d3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x436eeb&&_0x52ebd1['rethrowUnexpectedError'](_0x436eeb,this),_0xcc2c1a;}['markInsertion'](_0x1ba73c,_0x390a68=null,_0xe989b1={}){if(_0x1ba73c['isCollapsed'])return null;const _0xdd6af0=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5d72cf,meta:_0x3ee0e9}of this['_findSuggestions'](_0x1ba73c,'insertion'))if(_0x3ee0e9['isOwn']){if(!_0x3ee0e9['isNextTo']){if(_0x3ee0e9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ht(_0x5d72cf,_0xe989b1))continue;return _0x5d72cf;}if(Ht(_0x5d72cf,_0xe989b1))return _0x5d72cf;this['_breakSuggestionMarker'](_0x5d72cf,_0x1ba73c['start'],_0x1ba73c['end']);break;}if(_0x390a68==_0x5d72cf['subType']&&Ht(_0x5d72cf,_0xe989b1)){const _0x115471=_0x5d72cf['getFirstRange']();return _0x115471['start']['isEqual'](_0x1ba73c['end'])?this['_setSuggestionRange'](_0x5d72cf,this['_model']['createRange'](_0x1ba73c['start'],_0x115471['end'])):this['_setSuggestionRange'](_0x5d72cf,this['_model']['createRange'](_0x115471['start'],_0x1ba73c['end'])),_0x5d72cf;}}const _0x5c5368=_0x417a0e(),_0x56b4fc=_0xdd6af0['id'],_0x2cab7e=_0x390a68?'insertion:'+_0x390a68:'insertion',_0x39762f=this['_setSuggestionData']({'id':_0x5c5368,'type':_0x2cab7e,'createdAt':new Date(),'authorId':_0x56b4fc,'attributes':_0xe989b1});return this['_addSuggestionMarker'](_0x2cab7e,_0x5c5368,_0x56b4fc,_0x1ba73c),_0x39762f;}['markMultiRangeInsertion'](_0x434a2b,_0x4b3b26='multi',_0x48392f={}){const _0x488695=this['editor']['plugins']['get']('Users')['me'],_0x56a8d2=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4b3b26,'join');for(const _0x248a91 of this['getSuggestions']())if(_0x248a91['author']['id']==_0x488695['id']&&'insertion'==_0x248a91['type']&&_0x248a91['subType']==_0x4b3b26&&Ht(_0x248a91,_0x48392f)&&(_0x56a8d2(_0x248a91['getRanges'](),_0x434a2b)||_0x56a8d2(_0x434a2b,_0x248a91['getRanges']()))){for(const _0x4736f4 of _0x434a2b)_0x248a91['addRange'](_0x4736f4);return _0x248a91;}for(const {suggestion:_0x33b3a2,meta:_0x59692e}of this['_findSuggestions'](_0x434a2b,'insertion')){if(!_0x59692e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x59692e['containsRangeInObject'])continue;if(!Ht(_0x33b3a2,_0x48392f))continue;let _0x473387=!0x0;for(const _0x172f7b of _0x33b3a2['getRanges']())for(const _0xd243c6 of _0x434a2b)if(!_0x172f7b['containsRange'](_0xd243c6)){_0x473387=!0x1;break;}if(_0x473387)return _0x33b3a2;}const _0x5a1173=_0x417a0e(),_0x1855f5=_0x488695['id'],_0x56a23d='insertion:'+_0x4b3b26,_0x4479fe=this['_setSuggestionData']({'id':_0x5a1173,'type':_0x56a23d,'createdAt':new Date(),'authorId':_0x1855f5,'attributes':_0x48392f});for(const _0x2679de of _0x434a2b)this['_addSuggestionMarker'](_0x56a23d,_0x5a1173,_0x1855f5,_0x2679de,u['getMultiRangeId']());return _0x4479fe;}['markInlineFormat'](_0x29ade4,_0x29064f,_0x2b020d=null,_0x16b026={}){if(_0x2b020d=_0x2b020d||Vt(_0x29064f),_0x29ade4['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x434c68=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b020d,'accept');return this['forceDefaultExecution'](()=>_0x434c68([_0x29ade4],_0x29064f,_0x16b026)),null;}const _0x243889=this['editor']['plugins']['get']('Users')['me'],_0x2138f8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x39dfc4,meta:_0x5c49a6}of this['_findSuggestions'](_0x29ade4,'insertion'))_0x5c49a6['isOwn']&&!_0x5c49a6['isInsideObject']&&_0x2138f8['push'](..._0x39dfc4['getRanges']());}const _0x47e7f4=function(_0x3746ff,_0x6c69c){const _0x142132=[];for(const _0x2f988f of _0x6c69c){const _0x30c1fe=_0x3746ff['getIntersection'](_0x2f988f);_0x30c1fe&&_0x142132['push'](_0x30c1fe);}return _0x142132;}(_0x29ade4,_0x2138f8),_0x50530f=function(_0x1fa03e,_0x1596a1){const _0x33faf6=[_0x1fa03e];for(const _0x4c584d of _0x1596a1){let _0x44ebea=0x0;for(;_0x44ebea<_0x33faf6['length'];){const _0x3f51b0=_0x33faf6[_0x44ebea]['getDifference'](_0x4c584d);_0x33faf6['splice'](_0x44ebea,0x1,..._0x3f51b0),_0x44ebea+=_0x3f51b0['length'];}}return _0x33faf6;}(_0x29ade4,_0x2138f8);_0x47e7f4['length']&&this['_model']['change'](()=>{for(const _0x12c766 of _0x47e7f4){const _0x170fe5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b020d,'accept');this['forceDefaultExecution'](()=>_0x170fe5([_0x12c766],_0x29064f,_0x16b026));}});for(const _0x423098 of _0x50530f){let _0x4b39fc=null,_0x539793=_0x423098['start'],_0x263b0c=_0x423098['end'];for(const {suggestion:_0x23c6df,meta:_0x2e4738}of this['_findSuggestions'](_0x423098,'formatInline')){if(!_0x2e4738['isOwn'])continue;if(_0x23c6df['subType']!=_0x2b020d)continue;if(!Ht(_0x23c6df,_0x16b026))continue;const _0x231d42=_0x23c6df['getFirstRange']();if(_0x231d42['containsRange'](_0x423098,!0x0))return null;_0x539793=_0x539793['isBefore'](_0x231d42['start'])?_0x539793:_0x231d42['start'],_0x263b0c=_0x263b0c['isAfter'](_0x231d42['end'])?_0x263b0c:_0x231d42['end'],_0x4b39fc?_0x231d42['start']['isBefore'](_0x4b39fc['getFirstRange']()['start'])?(_0x4b39fc['removeMarkers'](),_0x4b39fc=_0x23c6df):_0x23c6df['removeMarkers']():_0x4b39fc=_0x23c6df;}const _0x4445b4=this['_model']['createRange'](_0x539793,_0x263b0c);if(_0x4b39fc)this['_setSuggestionRange'](_0x4b39fc,_0x4445b4);else{const _0x346ca7=_0x417a0e(),_0x4cb2c1=_0x243889['id'];this['_setSuggestionData']({'id':_0x346ca7,'type':'formatInline:'+_0x2b020d,'data':_0x29064f,'createdAt':new Date(),'authorId':_0x4cb2c1,'attributes':_0x16b026}),this['_addSuggestionMarker']('formatInline:'+_0x2b020d,_0x346ca7,_0x4cb2c1,_0x4445b4);}}return null;}['markBlockFormat'](_0x2e48af,_0x4e464b,_0x542210=[],_0x23e03b=null,_0x16285e={}){_0x4e464b['formatGroupId']||(_0x4e464b['formatGroupId']=_0x4e464b['commandName']),_0x4e464b['multipleBlocks']=_0x2e48af['is']('range'),_0x23e03b=_0x23e03b||Vt(_0x4e464b);const _0x6daee0=_0x542210['map'](_0x3c2db5=>Ft(_0x3c2db5,this['_model'])),_0x10bb7f=_0x2e48af['is']('range')?_0x2e48af:Ft(_0x2e48af,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5e40ac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23e03b,'accept');return this['forceDefaultExecution'](()=>_0x5e40ac([_0x10bb7f],_0x4e464b,_0x16285e)),null;}_0x6daee0['push'](_0x10bb7f);let _0x3fb694=!0x0;for(const _0x53f1e6 of _0x6daee0)if(!this['_rangeIsInLocalUserInsertion'](_0x53f1e6)){_0x3fb694=!0x1;break;}if(_0x3fb694&&'always'!==this['_trackFormatChanges']){const _0xc0a398=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23e03b,'accept');return this['forceDefaultExecution'](()=>_0xc0a398([_0x10bb7f],_0x4e464b,_0x16285e)),null;}let _0x3babc2=null,_0x3eab98=_0x10bb7f['start'],_0x423ffe=_0x10bb7f['end'];for(const {suggestion:_0xa6e10f,meta:_0x473da2}of this['_findSuggestions'](_0x10bb7f,'formatBlock')){if(!_0x473da2['isOwn'])continue;if(_0x473da2['isNextTo']||_0x473da2['containsRangeInObject']||_0x473da2['isInsideObject'])continue;if(_0xa6e10f['data']['formatGroupId']!=_0x4e464b['formatGroupId'])continue;if(!Ht(_0xa6e10f,_0x16285e))continue;const _0xc3f6ae=_0xa6e10f['getFirstRange']();if(_0xa6e10f['subType']==_0x23e03b){if(_0xc3f6ae['containsRange'](_0x10bb7f,!0x0))return null;_0x3eab98=_0x3eab98['isBefore'](_0xc3f6ae['start'])?_0x3eab98:_0xc3f6ae['start'],_0x423ffe=_0x423ffe['isAfter'](_0xc3f6ae['end'])?_0x423ffe:_0xc3f6ae['end'],_0x3babc2?_0xc3f6ae['start']['isBefore'](_0x3babc2['getFirstRange']()['start'])?(_0x3babc2['removeMarkers'](),_0x3babc2=_0xa6e10f):_0xa6e10f['removeMarkers']():_0x3babc2=_0xa6e10f;}else{const _0x4c3165=_0x10bb7f['getIntersection'](_0xc3f6ae);this['_cutOutSuggestionMarker'](_0xa6e10f,_0x4c3165);}}const _0x4a235c=this['editor']['plugins']['get']('Users')['me'],_0x5c8544=_0x417a0e(),_0xcc8e32=_0x4a235c['id'];if(_0x3babc2)return this['_setSuggestionRange'](_0x3babc2,this['_model']['createRange'](_0x3eab98,_0x423ffe)),_0x3babc2;{const _0x1a09d1=this['_setSuggestionData']({'id':_0x5c8544,'type':'formatBlock:'+_0x23e03b,'data':_0x4e464b,'createdAt':new Date(),'authorId':_0xcc8e32,'attributes':_0x16285e});return this['_addSuggestionMarker']('formatBlock:'+_0x23e03b,_0x5c8544,_0xcc8e32,this['_model']['createRange'](_0x3eab98,_0x423ffe)),_0x1a09d1;}}['markMultiRangeBlockFormat'](_0x3763aa,_0x674a41,_0x121df2=[],_0x41cf8e=null,_0x33a559={}){_0x674a41['formatGroupId']||(_0x674a41['formatGroupId']=_0x674a41['commandName']);const _0x4d0374=_0x3763aa[0x0];_0x674a41['multipleBlocks']=_0x4d0374['is']('range'),_0x41cf8e=_0x41cf8e||Vt(_0x674a41);const _0x5420f8=_0x121df2['map'](_0x49e345=>Ft(_0x49e345,this['_model'])),_0x48ac3d=_0x4d0374['is']('range')?_0x3763aa:_0x3763aa['map'](_0x5e443c=>Ft(_0x5e443c,this['_model']));if('never'===this['_trackFormatChanges']){const _0x27004d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41cf8e,'accept');return this['forceDefaultExecution'](()=>_0x27004d(_0x48ac3d,_0x674a41,_0x33a559)),null;}_0x5420f8['push'](..._0x48ac3d);let _0x3e40a6=!0x0;for(const _0x146bd9 of _0x5420f8)if(!this['_rangeIsInLocalUserInsertion'](_0x146bd9)){_0x3e40a6=!0x1;break;}if(_0x3e40a6&&'always'!==this['_trackFormatChanges']){const _0x156d87=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41cf8e,'accept');return this['forceDefaultExecution'](()=>_0x156d87(_0x48ac3d,_0x674a41,_0x33a559)),null;}const _0x12771f=this['editor']['plugins']['get']('Users')['me'];for(const _0x4196ba of this['getSuggestions']()){if(_0x4196ba['author']['id']!=_0x12771f['id'])continue;if('formatBlock'!=_0x4196ba['type']||_0x4196ba['data']['formatGroupId']!=_0x674a41['formatGroupId'])continue;if(!Ht(_0x4196ba,_0x33a559))continue;const _0x34a0c1=_0x4196ba['subType']==_0x41cf8e;for(let _0x93cea7=0x0;_0x93cea7<_0x48ac3d['length'];_0x93cea7++){const _0x4e43af=_0x48ac3d[_0x93cea7];for(const _0x5b57ec of _0x4196ba['getMarkers']()){const _0x41651b=_0x5b57ec['getRange']();if(_0x4e43af['isEqual'](_0x41651b)){_0x34a0c1?(_0x48ac3d['splice'](_0x93cea7,0x1),_0x93cea7--):_0x4196ba['removeMarker'](_0x5b57ec['name']);break;}}}}if(0x0==_0x48ac3d['length'])return null;const _0x2ec40c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41cf8e,'join');for(const _0x28bdee of this['getSuggestions']())if(_0x28bdee['author']['id']==_0x12771f['id']&&'formatBlock'==_0x28bdee['type']&&_0x28bdee['data']['formatGroupId']==_0x674a41['formatGroupId']&&_0x28bdee['subType']==_0x41cf8e&&Ht(_0x28bdee,_0x33a559)&&(_0x2ec40c(_0x28bdee['getRanges'](),_0x48ac3d)||_0x2ec40c(_0x48ac3d,_0x28bdee['getRanges']()))){for(const _0x5c8d40 of _0x48ac3d)_0x28bdee['addRange'](_0x5c8d40);return _0x28bdee;}const _0x37f88d=_0x417a0e(),_0x7acfc0=_0x12771f['id'],_0x4d922f='formatBlock:'+_0x41cf8e,_0x33e1af=this['_setSuggestionData']({'id':_0x37f88d,'type':_0x4d922f,'data':_0x674a41,'createdAt':new Date(),'authorId':_0x7acfc0,'attributes':_0x33a559});for(const _0x2f18b8 of _0x48ac3d)this['_addSuggestionMarker'](_0x4d922f,_0x37f88d,_0x7acfc0,_0x2f18b8,u['getMultiRangeId']());return _0x33e1af;}['markDeletion'](_0x3631bc,_0x337dad=null,_0x280bcf={}){if(_0x3631bc['isCollapsed'])return null;const _0x4ea124=this['editor']['plugins']['get']('Users')['me'],_0x35c9b6=new _0x32fb4b(_0x3631bc['start'],_0x3631bc['end']);for(const {suggestion:_0x5bcd19,meta:_0x51f659}of this['_findSuggestions'](_0x35c9b6,'insertion'))if(_0x51f659['isOwn']&&!_0x51f659['isNextTo']){if(_0x5bcd19['isMultiRange']){const _0xef2fd3=_0x5bcd19['getRanges']()['filter'](_0x396afe=>'$graveyard'!=_0x396afe['root']['rootName']);_0xef2fd3['every'](_0x125d16=>_0x35c9b6['containsRange'](_0x125d16,!0x0))&&_0x5bcd19['discard']();if(_0xef2fd3['some'](_0x2df80d=>_0x2df80d['containsRange'](_0x35c9b6,!0x0))){const _0x1deb76=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x337dad,'accept');return this['forceDefaultExecution'](()=>_0x1deb76([_0x35c9b6],null,_0x280bcf)),null;}}else{const _0x3aaa8a=_0x35c9b6['getIntersection'](_0x5bcd19['getFirstRange']());null!==_0x3aaa8a&&_0x5bcd19['_onDiscard']([_0x3aaa8a],null,_0x280bcf);}}if(_0x35c9b6['detach'](),_0x35c9b6['isCollapsed']||'$graveyard'==_0x35c9b6['root']['rootName'])return null;let _0x2edbe3=null,_0x4cab8e=_0x35c9b6['start'],_0x16cf3d=_0x35c9b6['end'];const _0x19f38b=this['_findSuggestions'](_0x35c9b6,'deletion');for(const {suggestion:_0x330d5a,meta:_0x43050b}of _0x19f38b){const _0x450b3a=this['_model']['createRange'](_0x4cab8e,_0x16cf3d);if(_0x43050b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x43050b['containsRangeInObject']&&!_0x43050b['isInsideObject'])){if(_0x330d5a['isMultiRange']){if(!Ht(_0x330d5a,_0x280bcf))continue;let _0x20c5c1=!0x0;for(const _0x103237 of _0x330d5a['getRanges']()){if(_0x103237['containsRange'](_0x450b3a,!0x0))return _0x330d5a;_0x450b3a['containsRange'](_0x103237)||(_0x20c5c1=!0x1);}_0x20c5c1&&_0x330d5a['discard']();}else{const _0x54ba59=_0x330d5a['getFirstRange']();if(_0x54ba59['containsRange'](_0x450b3a,!0x0))return _0x330d5a;if(!Ht(_0x330d5a,_0x280bcf)){_0x450b3a['containsRange'](_0x54ba59)?_0x330d5a['removeMarkers']():_0x54ba59['containsPosition'](_0x4cab8e)?_0x4cab8e=_0x54ba59['end']:_0x54ba59['containsPosition'](_0x16cf3d)&&(_0x16cf3d=_0x54ba59['start']);continue;}_0x4cab8e=_0x4cab8e['isBefore'](_0x54ba59['start'])?_0x4cab8e:_0x54ba59['start'],_0x16cf3d=_0x16cf3d['isAfter'](_0x54ba59['end'])?_0x16cf3d:_0x54ba59['end'],_0x280bcf=Object['assign']({},_0x330d5a['attributes']),_0x2edbe3?_0x54ba59['start']['isBefore'](_0x2edbe3['getFirstRange']()['start'])?(_0x2edbe3['removeMarkers'](),_0x2edbe3=_0x330d5a):_0x330d5a['removeMarkers']():_0x2edbe3=_0x330d5a;}}}if(_0x2edbe3)return this['_setSuggestionRange'](_0x2edbe3,this['_model']['createRange'](_0x4cab8e,_0x16cf3d)),_0x2edbe3;{const _0x517084=_0x417a0e(),_0x58aca7=this['_model']['createRange'](_0x4cab8e,_0x16cf3d),_0x72b252=_0x4ea124['id'],_0x402c21=_0x337dad?'deletion:'+_0x337dad:'deletion',_0x2d7d14=this['_setSuggestionData']({'id':_0x517084,'type':_0x402c21,'createdAt':new Date(),'authorId':_0x72b252,'attributes':_0x280bcf});return this['_addSuggestionMarker'](_0x402c21,_0x517084,_0x72b252,_0x58aca7),_0x2d7d14;}}['markMultiRangeDeletion'](_0x1841d7,_0x475f97='multi',_0x3c5336={}){const _0x1e2186=this['editor']['plugins']['get']('Users')['me'],_0xeb4e53=_0x1841d7['map'](_0x5dd05f=>new _0x32fb4b(_0x5dd05f['start'],_0x5dd05f['end'])),_0x3f12cc=new Set();for(const {suggestion:_0x23a5f9,meta:_0x41ea52}of this['_findSuggestions'](_0xeb4e53,'insertion'))_0x41ea52['isOwn']&&!_0x41ea52['isNextTo']&&_0x3f12cc['add'](_0x23a5f9);for(const _0x59c8ed of _0x3f12cc)if(_0x59c8ed['isMultiRange']){const _0x29198f=_0x59c8ed['getRanges']();(!_0x59c8ed['attributes']||!_0x59c8ed['attributes']['skipNestingCheck'])&&(_0x29198f['every'](_0x4ae82c=>_0xeb4e53['some'](_0x17a8d8=>_0x17a8d8['containsRange'](_0x4ae82c,!0x0)))&&_0x59c8ed['discard']());if(_0xeb4e53['every'](_0x5c914c=>_0x29198f['some'](_0x47f16b=>_0x47f16b['containsRange'](_0x5c914c,!0x0)))){const _0x191d11=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x475f97,'accept');return this['forceDefaultExecution'](()=>_0x191d11(_0x1841d7,null,_0x3c5336)),null;}}else{const _0xf7a662=_0x59c8ed['getFirstRange']();_0xeb4e53['some'](_0x491864=>_0x491864['containsRange'](_0xf7a662,!0x0))&&_0x59c8ed['discard']();if(_0xeb4e53['every'](_0x28288e=>_0xf7a662['containsRange'](_0x28288e,!0x0))){const _0x30b687=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x475f97,'accept');return this['forceDefaultExecution'](()=>_0x30b687(_0xeb4e53,null,_0x3c5336)),null;}}const _0x353267=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x475f97,'join');let _0x2a5692=null;for(const _0x4ee86c of this['getSuggestions']())if(_0x4ee86c['author']['id']==_0x1e2186['id']&&_0x4ee86c['isInContent']&&'deletion'==_0x4ee86c['type']&&_0x4ee86c['subType']==_0x475f97&&Ht(_0x4ee86c,_0x3c5336)&&(_0x353267(_0x4ee86c['getRanges'](),_0xeb4e53)||_0x353267(_0xeb4e53,_0x4ee86c['getRanges']()))){if(_0x2a5692){if(_0x4ee86c['commentThread']&&_0x4ee86c['commentThread']['length'])continue;for(const _0x2b89f6 of _0x4ee86c['getRanges']())_0x2a5692['isIntersectingWithRange'](_0x2b89f6)||_0x2a5692['addRange'](_0x2b89f6);_0x4ee86c['removeMarkers']();}else{_0x2a5692=_0x4ee86c;for(const _0x288476 of _0xeb4e53)_0x4ee86c['isIntersectingWithRange'](_0x288476)||_0x4ee86c['addRange'](_0x288476);}}if(_0x2a5692)return _0x2a5692;_0x3f12cc['clear']();for(const {suggestion:_0x38f87d,meta:_0x3b0862}of this['_findSuggestions'](_0xeb4e53,'deletion'))_0x3b0862['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3b0862['containsRangeInObject']&&!_0x3b0862['isInsideObject'])&&Ht(_0x38f87d,_0x3c5336)&&_0x3f12cc['add'](_0x38f87d);for(const _0x5471ee of _0x3f12cc){const _0x28745d=_0x5471ee['getRanges']();if(!_0x3c5336||!_0x3c5336['skipNestingCheck']){if(_0xeb4e53['every'](_0x1af307=>_0x28745d['some'](_0x561468=>_0x561468['containsRange'](_0x1af307,!0x0))))return _0x5471ee;}(!_0x5471ee['attributes']||!_0x5471ee['attributes']['skipNestingCheck'])&&(_0x28745d['every'](_0x151f43=>_0xeb4e53['some'](_0x4ff82b=>_0x4ff82b['containsRange'](_0x151f43,!0x0)))&&_0x5471ee['discard']());}const _0x47f09b=_0x417a0e(),_0x506287=_0x1e2186['id'],_0x2d0148='deletion:'+_0x475f97,_0x36c705=this['_setSuggestionData']({'id':_0x47f09b,'type':_0x2d0148,'createdAt':new Date(),'authorId':_0x506287,'attributes':_0x3c5336});for(const _0x2cecf1 of _0xeb4e53)_0x2cecf1['detach'](),_0x2cecf1['isCollapsed']||'$graveyard'==_0x2cecf1['root']['rootName']||this['_addSuggestionMarker'](_0x2d0148,_0x47f09b,_0x506287,_0x2cecf1,u['getMultiRangeId']());return _0x36c705;}['markAttributeChange'](_0x38da1d,_0x571d44,_0x5dabde,_0x324984,_0x546ba0){if(_0x38da1d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a836e=this['editor']['plugins']['get']('Users')['me']['id'],_0x375115=Array['from'](this['_suggestions']['values']())['filter'](_0x1f4270=>'attribute'==_0x1f4270['type']&&_0x1f4270['data']['key']==_0x571d44&&_0x1f4270['isIntersectingWithRange'](_0x38da1d));if('default'===this['_trackFormatChanges']){const _0x349965=this['_findSuggestions'](_0x38da1d,'insertion')['filter'](({meta:_0x1ed202})=>_0x1ed202['isOwn']&&!_0x1ed202['isInsideObject']&&!_0x1ed202['isNextTo'])['map'](({suggestion:_0x5bc58b})=>_0x5bc58b);_0x375115['unshift'](..._0x349965);}const _0x29b585=new Map([[_0x38da1d,_0x5dabde]]);for(const _0x3fd623 of _0x375115){const _0x1cc9af='attribute'==_0x3fd623['type']?_0x3fd623['data']['oldValue']:void 0x0,_0xdded7=_0x3fd623['getFirstRange'](),_0x3abdb3=Array['from'](_0x29b585['keys']())['find'](_0xebf574=>_0xebf574['isIntersecting'](_0xdded7));if(!_0x3abdb3)continue;const _0x49f460=_0x3abdb3['getDifference'](_0xdded7);this['_isBlockAttribute'](_0x571d44)&&'insertion'==_0x3fd623['type']&&0x0!=_0x49f460['length']||(_0x29b585['delete'](_0x3abdb3),_0x49f460['forEach'](_0x1863f3=>{_0x29b585['set'](_0x1863f3,_0x5dabde);}),'insertion'!=_0x3fd623['type']&&_0x1cc9af!=_0x324984&&_0x29b585['set'](_0x3abdb3['getIntersection'](_0xdded7),_0x1cc9af));}const _0x1e609d=[];for(const [_0x121a19,_0x2be9fb]of _0x29b585){const _0x2d5ae9=_0x417a0e(),_0x5bc478={'key':_0x571d44,'oldValue':_0x2be9fb,'newValue':_0x324984};_0x571d44['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':_0x571d44});const _0x596a5b=('attribute:'+(_0x571d44+'|'+Vt({'newValue':_0x324984})))['substring'](0x0,0x3c),_0x143ac0=this['_setSuggestionData']({'id':_0x2d5ae9,'type':_0x596a5b,'data':_0x5bc478,'createdAt':new Date(),'authorId':_0x2a836e,'attributes':_0x546ba0});_0x1e609d['push'](_0x143ac0),this['_addSuggestionMarker'](_0x596a5b,_0x2d5ae9,_0x2a836e,_0x121a19);}return _0x1e609d;}['enableDefaultAttributesIntegration'](_0xd98232){this['enableCommand'](_0xd98232,(_0x5010bf,..._0x583edc)=>{this['_recordAttributeChanges'](()=>{_0x5010bf(..._0x583edc);});});}['registerBlockAttribute'](_0x2d9f4e){this['_blockAttributeKeys']['add'](_0x2d9f4e);}['registerInlineAttribute'](_0x8474ce){this['_inlineAttributeKeys']['add'](_0x8474ce);}['_getAttributeKey'](_0x57eed5){return'attribute'==_0x57eed5['type']?_0x57eed5['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1af4d1,_0x32c92e){const _0x4ddba3=_0x1af4d1['getFirstMarker']();this['_model']['change'](_0x2386d4=>{_0x2386d4['updateMarker'](_0x4ddba3,{'range':_0x32c92e});});}['_addThreadToSuggestion'](_0x2f51a2){const _0x2688b2=_0x2f51a2['id'],_0x166415=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2688b2)||this['_commentsRepository']['addCommentThread']({'channelId':_0x166415,'threadId':_0x2688b2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3dfba8=this['_commentsRepository']['getCommentThread'](_0x2688b2);_0x3dfba8['unbind']('isRemovable'),_0x3dfba8['isRemovable']=!0x1,_0x2f51a2['commentThread']=_0x3dfba8;}['_checkSuggestionCorrectness'](_0x1ef4e2,_0x59cc34,_0x156962,_0xb6b79f){if(_0x1ef4e2['type']!=_0x59cc34||_0x1ef4e2['subType']!=_0x156962||_0x1ef4e2['creator']['id']!=_0xb6b79f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x52ebd1('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x47dae8,_0x28d544){const _0x162ff5=_0x47dae8['getFirstRange']();if(_0x28d544['isEqual'](_0x162ff5))_0x47dae8['removeMarkers']();else{if(_0x162ff5['containsRange'](_0x28d544)){const _0x3d76dc=this['_model']['createPositionAt'](_0x28d544['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x47dae8,this['_model']['createRange'](_0x162ff5['start'],_0x3d76dc));const _0x5b4613=_0x417a0e(),_0x55f7af=_0x47dae8['creator']['id'],_0x589458=_0x47dae8['type']+':'+_0x47dae8['subType'];this['_setSuggestionData']({'id':_0x5b4613,'type':_0x589458,'createdAt':new Date(),'authorId':_0x55f7af,'data':_0x47dae8['data'],'attributes':_0x47dae8['attributes']});const _0x190ef4=this['_model']['createPositionAt'](_0x28d544['end']['parent'],'after'),_0x578832=this['_model']['createRange'](_0x190ef4,_0x162ff5['end']);this['_addSuggestionMarker'](_0x589458,_0x5b4613,_0x55f7af,_0x578832);}else{if(_0x162ff5['containsPosition'](_0x28d544['start'])){const _0x25a50a=this['_model']['createPositionAt'](_0x28d544['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x47dae8,this['_model']['createRange'](_0x162ff5['start'],_0x25a50a));}else{const _0x587d7d=this['_model']['createPositionAt'](_0x28d544['end']['parent'],'after');this['_setSuggestionRange'](_0x47dae8,this['_model']['createRange'](_0x587d7d,_0x162ff5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x7166d8){for(const {suggestion:_0x182fb9,meta:_0x34fb6c}of this['_findSuggestions'](_0x7166d8,'insertion')){if(!_0x34fb6c['isOwn'])continue;const _0x3dfd2a=_0x182fb9['getRanges']();for(const _0x435c24 of _0x3dfd2a)if(!_0x7166d8['getDifference'](_0x435c24)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x8d090a){const _0x546741=this['editor']['plugins']['get']('Users')['getUser'](_0x8d090a);if(!_0x546741)throw new _0x52ebd1('track-changes-user-not-found',this);return _0x546741;}['_getExternalAuthor'](_0x37b7f){const _0x227aab=this['editor']['plugins']['get']('Users'),_0x3f2cc9=_0x3262f6('external:'+_0x37b7f),_0x1bbbba=_0x227aab['getUser'](_0x3f2cc9);return _0x1bbbba||_0x227aab['addUser']({'id':_0x3f2cc9,'name':_0x37b7f});}['_createSuggestion'](_0x1387b8,_0x475086,_0x7a77f9,_0x351342,_0x32211b){const _0x21a989=this['_getAuthorFromId'](_0x351342),_0x4137a7=this['_suggestionFactory']['buildSuggestion'](_0x1387b8,_0x475086,_0x7a77f9,_0x21a989,_0x32211b,_0x480ee4=>{this['_updateSuggestionData'](_0x7a77f9,{'attributes':_0x480ee4});const _0x25eb91=this['getSuggestion'](_0x7a77f9);this['_joinWithAdjacentSuggestions'](new Set([_0x25eb91])),this['_refreshSuggestionsChain'](new Set([_0x25eb91]));});return this['listenTo'](_0x4137a7,'accept',()=>{this['_updateSuggestionData'](_0x7a77f9,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4137a7,'discard',()=>{this['_updateSuggestionData'](_0x7a77f9,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x7a77f9,_0x4137a7),this['_suggestionState']['set'](_0x4137a7,'notReady'),_0x4137a7;}['_splitMarkerName'](_0x5d5a45){const _0x362ffa=_0x5d5a45['split'](':');return{'group':_0x362ffa[0x0],'type':_0x362ffa[0x1],'subType':_0x362ffa['length']>=0x5?_0x362ffa[0x2]:null,'id':_0x362ffa['length']<0x5?_0x362ffa[0x2]:_0x362ffa[0x3],'authorId':_0x362ffa['length']<0x5?_0x362ffa[0x3]:_0x362ffa[0x4],'markerCount':0x6==_0x362ffa['length']?_0x362ffa[0x5]:null};}['_breakSuggestionMarker'](_0x5949fe,_0x3eac34,_0x4d11de){const _0x24c4b2=_0x5949fe['getFirstRange'](),_0x1770c1=_0x24c4b2['start'],_0x1858af=_0x24c4b2['end'];this['_setSuggestionRange'](_0x5949fe,this['_model']['createRange'](_0x1770c1,_0x3eac34));const _0x377b61=_0x417a0e(),_0x3ffdcd=_0x5949fe['creator']['id'],_0x2cf0e8=_0x5949fe['type']+(_0x5949fe['subType']?':'+_0x5949fe['subType']:'');this['_setSuggestionData']({'id':_0x377b61,'type':_0x2cf0e8,'createdAt':new Date(),'authorId':_0x3ffdcd,'originalSuggestionId':_0x5949fe['id'],'attributes':_0x5949fe['attributes'],'data':_0x5949fe['data']});const _0x26a294=this['_getAttributeKey'](_0x5949fe);('formatBlock'==_0x5949fe['type']||_0x26a294&&this['_isBlockAttribute'](_0x26a294))&&(_0x4d11de=this['_model']['createPositionBefore'](_0x4d11de['parent'])),this['_addSuggestionMarker'](_0x2cf0e8,_0x377b61,_0x3ffdcd,this['_model']['createRange'](_0x4d11de,_0x1858af));}['_findSuggestions'](_0x38a69d,_0x481840=null){const _0x42658b=[],_0x4793bd=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x38a69d)||(_0x38a69d=[_0x38a69d]);for(const _0x307de4 of this['getSuggestions']()){if(!_0x307de4['isInContent'])continue;if(_0x481840&&_0x307de4['type']!=_0x481840)continue;let _0x429824=!0x1;for(const _0x1ae8ff of _0x307de4['getRanges']()){for(const _0x3c1f5d of _0x38a69d){const _0x5a4fcc=_0x3c1f5d['start']['isEqual'](_0x1ae8ff['end'])||_0x3c1f5d['end']['isEqual'](_0x1ae8ff['start']);if(_0x5a4fcc||_0x3c1f5d['getIntersection'](_0x1ae8ff)){const _0x2e2f22=_0x3c1f5d['containsRange'](_0x1ae8ff)&&Tt(this['_model']['schema'],_0x1ae8ff['start'],_0x3c1f5d),_0x164895=_0x1ae8ff['containsRange'](_0x3c1f5d)&&Tt(this['_model']['schema'],_0x3c1f5d['start'],_0x1ae8ff);_0x42658b['push']({'suggestion':_0x307de4,'meta':{'isOwn':_0x4793bd==_0x307de4['author'],'isNextTo':_0x5a4fcc,'isInsideObject':_0x2e2f22,'containsRangeInObject':_0x164895}}),_0x429824=!0x0;break;}}if(_0x429824)break;}}return _0x42658b;}['_addSuggestionMarker'](_0x3b38a9,_0x1839b9,_0x1127e3,_0x1bc396,_0x495afe){this['_model']['change'](_0x1558ca=>{let _0x5a1804='suggestion:'+_0x3b38a9+':'+_0x1839b9+':'+_0x1127e3;_0x495afe&&(_0x5a1804=_0x5a1804+':'+_0x495afe),_0x1558ca['addMarker'](_0x5a1804,{'range':_0x1bc396,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xcf8707){const _0x3bbfc7=_0xcf8707['previous'],_0x3502de=_0xcf8707['next'];_0xcf8707['previous']=null,_0xcf8707['next']=null,null!=_0x3bbfc7&&_0x3bbfc7['next']==_0xcf8707&&(_0x3bbfc7['next']=_0x3502de),null!=_0x3502de&&_0x3502de['previous']==_0xcf8707&&(_0x3502de['previous']=_0x3bbfc7),'ready'==this['_suggestionState']['get'](_0xcf8707)&&(this['_suggestionState']['set'](_0xcf8707,'removed'),this['fire']('suggestionUnloaded',_0xcf8707,_0x3bbfc7,_0x3502de));}['_setSuggestionData'](_0x5469fe){const _0x487af0=_0x5469fe['id'],_0x202b09=this['addSuggestionData'](_0x5469fe);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x515147=this['editor']['plugins']['get']('PendingActions'),_0x255c43=_0x202b09['hasComments'],_0x57e37d=_0x202b09['subType']?_0x202b09['type']+':'+_0x202b09['subType']:_0x202b09['type'],_0x435e9d=this['editor']['locale'],_0x23b8c6=_0x515147['add'](o(_0x435e9d,'PENDING_ACTION_SUGGESTION')),_0x51240c={'id':_0x487af0,'type':_0x57e37d,'hasComments':_0x255c43,'data':_0x5469fe['data']||null,'originalSuggestionId':_0x5469fe['originalSuggestionId']||null,'attributes':_0x202b09['attributes']};this['_adapter']['addSuggestion'](_0x51240c)['then'](_0x2b1c16=>{_0x202b09['_saved']=!0x0,_0x515147['remove'](_0x23b8c6),_0x2b1c16&&_0x2b1c16['createdAt']&&(this['_suggestions']['get'](_0x487af0)['createdAt']=_0x2b1c16['createdAt']);})['catch'](_0x3ade16=>{throw _0x33f568('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x202b09['discard']();}),_0x202b09['stopListening'](),this['_suggestions']['delete'](_0x202b09['id']),this['_suggestionState']['delete'](_0x202b09),_0x3ade16;});}return _0x202b09;}['_isBlockAttribute'](_0x1c1c3e){return this['_blockAttributeKeys']['has'](_0x1c1c3e);}['_updateSuggestionData'](_0x15d04a,_0x1893d6){const _0x32cb50=this['editor']['plugins']['get']('PendingActions'),_0x920669=this['getSuggestion'](_0x15d04a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x920669['_saved']){const _0x19109f=_0x32cb50['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x15d04a,_0x1893d6)['then'](()=>{_0x32cb50['remove'](_0x19109f);});}else _0x920669['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x15d04a,_0x1893d6);});}}['_getSuggestionData'](_0x3aa07d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x52ebd1('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3aa07d);}['_handleNewSuggestionMarker'](_0xc83243){const {id:_0x4f5fd0,type:_0xa29349,subType:_0x13b723,authorId:_0x407cd5}=this['_splitMarkerName'](_0xc83243),_0x4907bf=this['_suggestions']['get'](_0x4f5fd0)||this['_createSuggestion'](_0xa29349,_0x13b723,_0x4f5fd0,_0x407cd5,{});switch(this['_checkSuggestionCorrectness'](_0x4907bf,_0xa29349,_0x13b723,_0x407cd5),this['_suggestionState']['get'](_0x4907bf)){case'notReady':this['_getSuggestionData'](_0x4f5fd0)['then'](_0x1ad528=>{let _0x569d13=Promise['resolve']();_0x1ad528['hasComments']&&(_0x569d13=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4f5fd0})),_0x569d13['then'](()=>{this['addSuggestionData'](_0x1ad528)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4907bf,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4f5fd0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4907bf,'ready'),this['fire']('suggestionLoaded',_0x4907bf);break;case'ready':this['fire']('suggestionChanged',_0x4907bf);}return _0x4907bf['addMarkerName'](_0xc83243),_0x4907bf;}['_refreshSuggestionsChain'](_0x41a35b){const _0x3bcbcd=Array['from'](_0x41a35b),_0x3b1420=_0x3bcbcd['filter'](_0x38c081=>'attribute'==_0x38c081['type']);this['_refreshAttributeSuggestionsChain'](_0x3b1420);const _0x426985=_0x3bcbcd['filter'](_0x3e2e45=>!_0x3e2e45['isMultiRange']&&'attribute'!=_0x3e2e45['type']),_0xb8af41=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1531eb=>!_0x1531eb['isMultiRange']&&'attribute'!=_0x1531eb['type']),_0xd3bccd=_0xb8af41['filter'](_0x4bccc2=>!_0x41a35b['has'](_0x4bccc2)),_0x4b6ad4=new Map(_0xb8af41['map'](_0x1f7773=>[_0x1f7773,this['_suggestionFactory']['getSuggestionCallback'](_0x1f7773['type'],_0x1f7773['subType'],'chain')])),_0x52d03b=new Map(_0xb8af41['map'](_0x5ae056=>[_0x5ae056,_0x5ae056['getFirstRange']()])),_0x346967=new Set(),_0x30d6c7=new Set();for(let _0x4ec106=0x0;_0x4ec106<_0x426985['length'];_0x4ec106++)_0x27a33e(_0x426985[_0x4ec106],_0x426985,_0x4ec106+0x1);for(let _0x52b2c1=0x0;_0x52b2c1<_0x426985['length'];_0x52b2c1++)_0x27a33e(_0x426985[_0x52b2c1],_0xd3bccd,0x0);const _0x39d1c8=new Set();for(let _0x464008=0x0;_0x464008<_0x426985['length'];_0x464008++){const _0x89f5af=_0x426985[_0x464008];!_0x30d6c7['has'](_0x89f5af)&&_0x89f5af['previous']&&(_0x39d1c8['add'](_0x89f5af['previous']),_0x89f5af['previous']['next']===_0x89f5af&&(_0x89f5af['previous']['next']=null),_0x89f5af['previous']=null),!_0x346967['has'](_0x89f5af)&&_0x89f5af['next']&&(_0x39d1c8['add'](_0x89f5af['next']),_0x89f5af['next']['previous']===_0x89f5af&&(_0x89f5af['next']['previous']=null),_0x89f5af['next']=null);}function _0x27a33e(_0x578a4,_0x273414,_0x49190e){for(let _0x56095f=_0x49190e;_0x56095f<_0x273414['length'];_0x56095f++){const _0x50b9d1=_0x3992ca(_0x578a4,_0x273414[_0x56095f]);_0x50b9d1&&(_0x50b9d1[0x0]['next']=_0x50b9d1[0x1],_0x50b9d1[0x1]['previous']=_0x50b9d1[0x0],_0x346967['add'](_0x50b9d1[0x0]),_0x30d6c7['add'](_0x50b9d1[0x1]));}}function _0x3992ca(_0x40a716,_0x356ae9){if(_0x40a716['author']['id']!==_0x356ae9['author']['id'])return null;const _0x4eb66f=_0x4b6ad4['get'](_0x40a716)(_0x40a716,_0x356ae9,_0x52d03b['get'](_0x40a716),_0x52d03b['get'](_0x356ae9));if(!_0x4eb66f)return null;return _0x4b6ad4['get'](_0x356ae9)(_0x40a716,_0x356ae9,_0x52d03b['get'](_0x40a716),_0x52d03b['get'](_0x356ae9))?_0x4eb66f[0x1]['commentThread']&&_0x4eb66f[0x1]['commentThread']['length']?null:_0x4eb66f:null;}_0x39d1c8['size']&&this['_refreshSuggestionsChain'](_0x39d1c8);}['_refreshAttributeSuggestionsChain'](_0x5b8f3c){if(0x0==_0x5b8f3c['length'])return;const _0x530d25=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3cc6c6=>'attribute'==_0x3cc6c6['type']&&_0x3cc6c6['_isDataLoaded']),_0x4ba1af=[],_0x2992c1=new Map();for(const _0x572b2d of _0x530d25){const _0x1e9baa=_0x3262f6(_0x572b2d['attributes']);_0x2992c1['has'](_0x1e9baa)||(_0x2992c1['set'](_0x1e9baa,_0x4ba1af['length']),_0x4ba1af['push']([]));const _0x176121=_0x2992c1['get'](_0x1e9baa);_0x4ba1af[_0x176121]['push'](_0x572b2d);}!(function(){_0x4ba1af['sort']((_0x205858,_0x368cbf)=>{const _0x4efd85=_0x205858[0x0]['createdAt'],_0x50b93a=_0x368cbf[0x0]['createdAt'];return _0x4efd85==_0x50b93a?_0x205858[0x0]['attributes']['groupId']<_0x368cbf[0x0]['attributes']['groupId']?-0x1:0x1:_0x4efd85<_0x50b93a?-0x1:0x1;});for(const _0xd26ddb of _0x4ba1af)_0xd26ddb['sort']((_0x2c9905,_0x20ba6a)=>_0x2c9905['id']<_0x20ba6a['id']?-0x1:0x1);}());for(let _0x592287=0x0;_0x592287<_0x4ba1af['length'];_0x592287++){if(0x0==_0x4ba1af[_0x592287]['length'])continue;const _0x416c0d=[];for(let _0x2824d5=_0x592287+0x1;_0x2824d5<_0x4ba1af['length'];_0x2824d5++)0x0!=_0x4ba1af[_0x2824d5]['length']&&_0x3ac481(_0x4ba1af[_0x592287],_0x4ba1af[_0x2824d5])&&_0x416c0d['push'](_0x2824d5);for(const _0x34245c of _0x416c0d)_0x4ba1af[_0x592287]=_0x4ba1af[_0x592287]['concat'](_0x4ba1af[_0x34245c]),_0x4ba1af[_0x34245c]=[];}for(const _0x29c7eb of _0x4ba1af)for(let _0x47e544=0x0;_0x47e544<_0x29c7eb['length'];_0x47e544++){const _0x43680b=_0x29c7eb[_0x47e544+0x1]||null;_0x29c7eb[_0x47e544]['next']!==_0x43680b&&(_0x29c7eb[_0x47e544]['next']=_0x43680b);}for(const _0x44b30d of _0x4ba1af)for(let _0xbffbf3=0x0;_0xbffbf3<_0x44b30d['length'];_0xbffbf3++){const _0x31adfd=_0x44b30d[_0xbffbf3-0x1]||null;_0x44b30d[_0xbffbf3]['previous']!==_0x31adfd&&(_0x44b30d[_0xbffbf3]['previous']=_0x31adfd);}function _0x3ac481(_0x7e7ac,_0x22018d){if(_0x7e7ac[0x0]['attributes']['groupId']!==_0x22018d[0x0]['attributes']['groupId']&&_0x7e7ac[0x0]['author']!==_0x22018d[0x0]['author'])return!0x1;if(!function(_0x586118,_0x261a6f){if(!_0x586118['hasComments']&&!_0x261a6f['hasComments'])return!0x0;if(_0x586118['hasComments']&&_0x261a6f['hasComments'])return!0x1;if(_0x586118['hasComments']&&_0x261a6f['createdAt']<_0x586118['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x261a6f['hasComments']&&_0x586118['createdAt']<_0x261a6f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x7e7ac[0x0],_0x22018d[0x0]))return!0x1;const _0x4dee6e=xt(_0x7e7ac[0x0]['attributes'],'groupId'),_0x2736b9=xt(_0x22018d[0x0]['attributes'],'groupId');if(!_0x4cb47d(_0x4dee6e,_0x2736b9))return!0x1;return!!_0x7e7ac['every'](_0x6850c9=>_0x22018d['some'](_0x40bec3=>_0x6850c9['getFirstRange']()['isEqual'](_0x40bec3['getFirstRange']())))&&_0x22018d['every'](_0x4a144f=>_0x7e7ac['some'](_0x1c2397=>_0x4a144f['getFirstRange']()['isEqual'](_0x1c2397['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5c9b19){const _0x604dc1=Array['from'](_0x5c9b19),_0x1bc9db=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4718ca=_0x1bc9db['filter'](_0x4cb4ca=>!_0x5c9b19['has'](_0x4cb4ca)),_0x196b43=new Map(_0x604dc1['map'](_0x100343=>[_0x100343,this['_suggestionFactory']['getSuggestionCallback'](_0x100343['type'],_0x100343['subType'],'join')])),_0x5abdb8=new Map(_0x1bc9db['map'](_0x379c6e=>[_0x379c6e,_0x379c6e['getRanges']()]));for(let _0x581dcd=0x0;_0x581dcd<_0x604dc1['length'];_0x581dcd++){if(_0x31112c(this,_0x604dc1[_0x581dcd],_0x604dc1,_0x581dcd+0x1))return!0x0;}for(let _0x33c7c4=0x0;_0x33c7c4<_0x604dc1['length'];_0x33c7c4++){if(_0x31112c(this,_0x604dc1[_0x33c7c4],_0x4718ca,0x0))return!0x0;}return!0x1;function _0x31112c(_0x53c637,_0x1008df,_0x552b04,_0x373589){for(let _0x17d406=_0x373589;_0x17d406<_0x552b04['length'];_0x17d406++){const _0x227dc5=_0x552b04[_0x17d406];if(_0x227dc5['type']!==_0x1008df['type']||_0x227dc5['author']['id']!==_0x1008df['author']['id']||_0x227dc5['subType']!==_0x1008df['subType'])continue;if(!Lt(_0x1008df,_0x227dc5))continue;if('attribute'==_0x1008df['type']&&_0x1008df['data']['oldValue']!=_0x227dc5['data']['oldValue'])continue;if('attribute'==_0x1008df['type']&&_0x53c637['_isBlockAttribute'](_0x1008df['data']['key']))continue;if('formatBlock'==_0x1008df['type']){const _0x22fb6a=_0x53c637['editor']['model'],_0x2ad1ae=_0x1008df['getContainedElement']();if(_0x2ad1ae&&(_0x22fb6a['schema']['isObject'](_0x2ad1ae)||_0x22fb6a['schema']['isLimit'](_0x2ad1ae)))continue;}const _0x11b1d4=_0x196b43['get'](_0x1008df),_0x13126e=_0x5abdb8['get'](_0x1008df),_0x194df9=_0x5abdb8['get'](_0x227dc5),_0x2714a4=_0x1008df['commentThread']&&_0x1008df['commentThread']['length'],_0x3cb880=_0x227dc5['commentThread']&&_0x227dc5['commentThread']['length'];if(!_0x2714a4&&_0x11b1d4(_0x194df9,_0x13126e))return _0x53c637['_joinSuggestions'](_0x227dc5,_0x1008df),_0x5abdb8['delete'](_0x1008df),!0x0;if(!_0x3cb880&&_0x11b1d4(_0x13126e,_0x194df9))return _0x53c637['_joinSuggestions'](_0x1008df,_0x227dc5),_0x5abdb8['delete'](_0x227dc5),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2da24f,_0x341184){if(_0x2da24f['isMultiRange']){for(const _0x22e78e of _0x341184['getRanges']())_0x2da24f['addRange'](_0x22e78e);}else{const _0x39de96=_0x341184['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2da24f,this['_model']['createRange'](_0x2da24f['getFirstRange']()['start'],_0x39de96));}_0x341184['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4e0edf,_0x185bc9){const _0x221d8d=_0x4e0edf['startsWith']('format')||_0x4e0edf['startsWith']('attribute')?'FORMATTING':_0x4e0edf['toUpperCase']();return o(this['editor']['locale'],_0x185bc9+'_'+_0x221d8d+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x35e4a1=this['editor'];if(!_0x35e4a1['ui'])return;const {ariaLiveAnnouncer:_0x476326}=_0x35e4a1['ui'];_0x117e0a(this['_model'],({left:_0x3c2ad3,entered:_0x3ce2cc})=>{for(const _0x3e92e2 of _0x3c2ad3){const {group:_0x142171,type:_0x6d399f}=this['_splitMarkerName'](_0x3e92e2['name']);if('suggestion'===_0x142171){_0x476326['announce'](this['_getMarkerAnnouncementText'](_0x6d399f,'LEAVE'));break;}}for(const _0x4ee8a5 of _0x3ce2cc){const {group:_0x23ddec,type:_0x97190b}=this['_splitMarkerName'](_0x4ee8a5['name']);if('suggestion'===_0x23ddec){_0x476326['announce'](this['_getMarkerAnnouncementText'](_0x97190b,'ENTER'));break;}}});}['_processAttributeChanges'](_0x367ee3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x17bbf8=this['editor'],_0x1d9aab=_0x17bbf8['model']['document']['differ']['getChanges']();if(0x0==_0x1d9aab['length'])return!0x1;const _0x486435=[],_0x10c870=_0x1d9aab['filter'](_0x17eb29=>'attribute'==_0x17eb29['type']),_0x3e4cff=_0x1d9aab['filter'](_0x2e4bab=>'insert'==_0x2e4bab['type']&&'$text'!=_0x2e4bab['name']),_0x4fdc12=_0x1d9aab['filter'](_0x32f968=>'remove'==_0x32f968['type']&&'$text'!=_0x32f968['name']);for(const _0x4674f6 of _0x10c870)_0x486435['push']({'key':_0x4674f6['attributeKey'],'newValue':_0x4674f6['attributeNewValue'],'oldValue':_0x4674f6['attributeOldValue'],'range':Gt(_0x4674f6['range'],_0x17bbf8['model'])});for(const _0x386ba0 of _0x3e4cff){const _0x1548c3=_0x4fdc12['find'](_0x57fbd3=>_0x57fbd3['position']['isEqual'](_0x386ba0['position']));_0x1548c3&&_0x486435['push']({'key':m,'newValue':_0x386ba0['name'],'oldValue':_0x1548c3['name'],'range':_0x17bbf8['model']['createRangeOn'](_0x386ba0['position']['nodeAfter'])});}return 0x0!=_0x486435['length']&&this['_reduceExistingSuggestions'](_0x367ee3,_0x486435);}['_processAttributeSuggestions'](_0x43b190){let _0x2abaa3=!0x1;const _0x21fe96=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xd07b22=>_0xd07b22['data']['newRange']&&_0xd07b22['name']['startsWith']('suggestion:attribute:'));for(const _0x7a1093 of _0x21fe96){const {subType:_0x3f8a56,id:_0x3d5025}=this['_splitMarkerName'](_0x7a1093['name']),_0x4fb059=_0x3f8a56['split']('|')[0x0];for(const _0x388227 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x388227['id']!=_0x3d5025&&'attribute'==_0x388227['type']&&_0x388227['data']&&_0x388227['data']['key']==_0x4fb059&&_0x388227['getFirstRange']()['isIntersecting'](_0x7a1093['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x388227,_0x7a1093['data']['newRange'],_0x43b190),_0x2abaa3=!0x0);}return _0x2abaa3;}['_recordAttributeChanges'](_0x55d063){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x55d063();}['_isRegisteredAttribute'](_0x5c3aa0){const _0x261265=this['_isBlockAttribute'](_0x5c3aa0),_0x64d147=this['_inlineAttributeKeys']['has'](_0x5c3aa0);return _0x261265||_0x64d147;}['_reduceExistingSuggestions'](_0x2f9aea,_0x15e422){if(0x0==_0x15e422['length'])return!0x1;let _0x446d26=!0x1;for(const _0xf5d51a of _0x15e422){const _0x29c2ed=this['_findSuggestions'](_0xf5d51a['range'],'attribute')['filter'](_0x534202=>!_0x534202['meta']['isNextTo'])['map'](_0x3fbf57=>_0x3fbf57['suggestion']),_0x504d75=_0x3262f6({'newValue':_0xf5d51a['newValue']});_0x29c2ed['filter'](_0x2b148f=>{const [_0x54853a,_0x111d9c]=_0x2b148f['subType']['split']('|');return _0x54853a==_0xf5d51a['key']&&_0x111d9c!=_0x504d75;})['forEach'](_0x5236ea=>{this['_reduceSuggestionAttributeRange'](_0x5236ea,_0xf5d51a['range'],_0x2f9aea),_0x446d26=!0x0;});}return _0x446d26;}['_reduceSuggestionAttributeRange'](_0x493c5c,_0x4eb477,_0x3e2ade){const _0x578b9f=_0x493c5c['getFirstRange']()['getDifference'](_0x4eb477);0x0!==_0x578b9f['length']?0x1!==_0x578b9f['length']?this['_breakSuggestionMarker'](_0x493c5c,_0x4eb477['start'],_0x4eb477['end']):this['_setSuggestionRange'](_0x493c5c,_0x578b9f[0x0]):_0x3e2ade['removeMarker'](_0x493c5c['getFirstMarker']());}}class Rt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1e611f){this['_editor']=_0x1e611f,this['_model']=_0x1e611f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2aa24f,_0x127baa,_0x3646cb,_0x51eb91,_0x5ab09e,_0x3b388d){return new u(this['_model'],{'type':_0x2aa24f,'subType':_0x127baa,'id':_0x3646cb,'author':_0x51eb91,'creator':_0x51eb91,'attributes':_0x5ab09e,'onAttributesChange':_0x3b388d,'onAccept':(..._0x2dd84d)=>this['getSuggestionCallback'](_0x2aa24f,_0x127baa,'accept')(..._0x2dd84d),'onDiscard':(..._0x515f07)=>this['getSuggestionCallback'](_0x2aa24f,_0x127baa,'discard')(..._0x515f07)});}['registerCustomCallback'](_0x597beb,_0x346cb5,_0x28d975,_0x535fc4){const _0x5487d9=_0x597beb+':'+_0x346cb5+':'+_0x28d975;this['_customCallbacks']['set'](_0x5487d9,_0x535fc4);}['getSuggestionCallback'](_0x1d7528,_0x461316,_0x1c0738){const _0x56e0fc=_0x1d7528+':'+_0x461316+':'+_0x1c0738;return this['_customCallbacks']['get'](_0x56e0fc)||this['_defaultCallbacks']['get'](_0x1d7528+':'+_0x1c0738);}['_registerDefaultCallbacks'](){const _0x5d796c=()=>!0x1,_0x1ddc0f=_0x35ed4d=>{_0x35ed4d['sort']((_0x330d99,_0x1e74d9)=>_0x330d99['start']['isBefore'](_0x1e74d9['start'])?0x1:-0x1),this['_model']['change'](_0x1b409d=>{for(const _0x46946d of _0x35ed4d){let _0x36b85a;_0x36b85a=_0x46946d['end']['isAtEnd']&&_0x46946d['end']['parent']==_0x46946d['start']['nodeAfter']?_0x1b409d['createSelection'](_0x46946d['start']['nodeAfter'],'on'):_0x1b409d['createSelection'](_0x46946d),this['_model']['deleteContent'](_0x36b85a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3a66da=(_0x6fbf9,_0x5ca117)=>{_0x5ca117&&this['_model']['change'](_0x39b5e8=>{const {commandName:_0x29ca93,commandParams:_0x118696=[]}=_0x5ca117,_0x2b20b1=_0x6fbf9['map'](_0x3c9bcb=>(Et(_0x3c9bcb)&&(_0x3c9bcb=this['_model']['createRange'](_0x3c9bcb['end'])),_0x3c9bcb))['filter'](_0x5594da=>'$graveyard'!==_0x5594da['root']['rootName']);if(_0x2b20b1['length']<0x1)return;const _0x278f21=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1fee63=>_0x32fb4b['fromRange'](_0x1fee63));_0x39b5e8['setSelection'](_0x2b20b1);for(const _0xd2f43a of this['_editor']['commands']['commands']())_0xd2f43a['refresh']();_0x118696['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x29ca93,..._0x118696);const _0x3d80ce=_0x278f21['filter'](_0x3923b9=>'$graveyard'!=_0x3923b9['root']['rootName']);_0x3d80ce['length']>0x0&&_0x39b5e8['setSelection'](_0x3d80ce);for(const _0x3b983f of _0x278f21)_0x3b983f['detach']();});},_0x33f72f=(_0xb403b0,_0x207d7f)=>0x1==_0xb403b0['length']&&0x1==_0x207d7f['length']&&_0xb403b0[0x0]['end']['isEqual'](_0x207d7f[0x0]['start']),_0x255c13=(_0x56f321,_0x524758,_0x32d766,_0x3c6ad0)=>Pt(_0x56f321,_0x524758,_0x32d766,_0x3c6ad0,this['_model'])?[_0x56f321,_0x524758]:Pt(_0x524758,_0x56f321,_0x3c6ad0,_0x32d766,this['_model'])?[_0x524758,_0x56f321]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5d796c),this['_defaultCallbacks']['set']('insertion:discard',_0x1ddc0f),this['_defaultCallbacks']['set']('insertion:join',_0x33f72f),this['_defaultCallbacks']['set']('insertion:chain',_0x255c13),this['_defaultCallbacks']['set']('deletion:accept',_0x1ddc0f),this['_defaultCallbacks']['set']('deletion:discard',_0x5d796c),this['_defaultCallbacks']['set']('deletion:join',_0x33f72f),this['_defaultCallbacks']['set']('deletion:chain',_0x255c13),this['_defaultCallbacks']['set']('formatInline:accept',_0x3a66da),this['_defaultCallbacks']['set']('formatInline:discard',_0x5d796c),this['_defaultCallbacks']['set']('formatInline:join',_0x33f72f),this['_defaultCallbacks']['set']('formatInline:chain',_0x5d796c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3a66da),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5d796c),this['_defaultCallbacks']['set']('formatBlock:join',_0x33f72f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5d796c),this['_defaultCallbacks']['set']('attribute:accept',_0x5d796c),this['_defaultCallbacks']['set']('attribute:discard',(_0x1f4b54,_0x3d0bf7)=>{if(!_0x3d0bf7)return;const _0x15541c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x800d4f=>{if(_0x3d0bf7['key']==m)for(const _0x41acad of _0x1f4b54){const _0x2ab1e=_0x41acad['start']['nodeAfter'],_0xfaffbb=_0x3d0bf7['oldValue'];_0x800d4f['rename'](_0x2ab1e,_0xfaffbb);}else{if(_0x15541c['_isBlockAttribute'](_0x3d0bf7['key'])){for(const _0x2eab78 of _0x1f4b54)void 0x0!==_0x3d0bf7['oldValue']?_0x800d4f['setAttribute'](_0x3d0bf7['key'],_0x3d0bf7['oldValue'],_0x2eab78['start']['nodeAfter']):_0x800d4f['removeAttribute'](_0x3d0bf7['key'],_0x2eab78['start']['nodeAfter']);}else{for(const _0x1303c4 of _0x1f4b54)_0x3d0bf7['oldValue']?_0x800d4f['setAttribute'](_0x3d0bf7['key'],_0x3d0bf7['oldValue'],_0x1303c4):_0x800d4f['removeAttribute'](_0x3d0bf7['key'],_0x1303c4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x33f72f);}}function Tt(_0x5bfc5f,_0x2b2e08,_0x1d002f){for(const _0x109a94 of _0x2b2e08['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x109a94['root']==_0x109a94)return!0x1;if(!_0x1d002f['containsItem'](_0x109a94))return!0x1;if(_0x5bfc5f['isObject'](_0x109a94)||_0x5bfc5f['isLimit'](_0x109a94))return!0x0;}return!0x1;}function Et(_0x3f7063){return _0x3f7063['end']['parent']==_0x3f7063['start']['nodeAfter']&&_0x3f7063['end']['isAtStart'];}function Ot(_0x42e0e9,_0x24e268,_0x365cc3,_0x1bb776){const _0x491249=_0x4500c4=>!_0x4500c4['item']['is']('$textProxy')&&!_0x1bb776['isObject'](_0x4500c4['item']),_0x15e9b2=_0x42e0e9['start']['getLastMatchingPosition'](_0x491249),_0x50c364=_0x42e0e9['end']['getLastMatchingPosition'](_0x491249,{'direction':'backward'});return(!_0x42e0e9['start']['isEqual'](_0x15e9b2)||!_0x42e0e9['end']['isEqual'](_0x50c364))&&(_0x15e9b2['isBefore'](_0x50c364)?_0x365cc3['updateMarker'](_0x24e268,{'range':_0x365cc3['createRange'](_0x15e9b2,_0x50c364)}):_0x365cc3['removeMarker'](_0x24e268),!0x0);}function Vt(_0x2e571f){return _0x3262f6(_0x2e571f);}function Ut(_0x90e1fe){const _0x27e48b=_0x90e1fe['start']['nodeAfter'];return _0x27e48b&&_0x27e48b['is']('element');}function Gt(_0x5f141d,_0x2c55a7){return null==_0x5f141d['end']['nodeBefore']&&_0x5f141d['end']['parent']==_0x5f141d['start']['nodeAfter']?Ft(_0x5f141d['start']['nodeAfter'],_0x2c55a7):_0x5f141d;}function Ft(_0x236824,_0x18779c){const _0xeeff41=_0x18779c['schema']['isObject'](_0x236824)||_0x18779c['schema']['isSelectable'](_0x236824);return _0x18779c['createRange'](_0x18779c['createPositionAt'](_0x236824,'before'),_0xeeff41?_0x18779c['createPositionAfter'](_0x236824):_0x18779c['createPositionAt'](_0x236824,'end'));}function Pt(_0xdf6965,_0x48e253,_0x4542da,_0x13c803,_0x5a31c8){if(!Lt(_0xdf6965,_0x48e253))return!0x1;if(_0x4542da['end']['isEqual'](_0x13c803['start']))return!0x0;if(_0xdf6965['type']!=_0x48e253['type'])return!0x1;if(!_0x4542da['end']['isTouching'](_0x13c803['start']))return!0x1;const _0x45d843=_0x5a31c8['createRange'](_0x4542da['end'],_0x13c803['start'])['getWalker']();for(const _0x2afa59 of _0x45d843)if(['elementStart','elementEnd']['includes'](_0x2afa59['type'])&&_0x5a31c8['schema']['isLimit'](_0x2afa59['item']))return!0x1;return!0x0;}function Lt(_0x2dc2ce,_0x2e49d7){if(!_0x2dc2ce['_isDataLoaded']||!_0x2e49d7['_isDataLoaded'])return!0x1;const _0x2518cf=new Set(Object['keys'](_0x2dc2ce['attributes'])),_0x2c4ad6=new Set(Object['keys'](_0x2e49d7['attributes']));if(_0x2518cf['delete']('groupId'),_0x2c4ad6['delete']('groupId'),0x0==_0x2518cf['size']&&0x0==_0x2c4ad6['size'])return!0x0;if(_0x2518cf['size']!=_0x2c4ad6['size'])return!0x1;const _0xf3804={..._0x2dc2ce['attributes']},_0x5f0626={..._0x2e49d7['attributes']};return delete _0xf3804['groupId'],delete _0x5f0626['groupId'],JSON['stringify'](_0xf3804)==JSON['stringify'](_0x5f0626);}function Ht(_0x4aafe7,_0x3e74fb){const _0x4ffbd8=Jt(_0x4aafe7['attributes']),_0x213595=Jt(_0x3e74fb);if(!_0x4aafe7['_isDataLoaded'])return!0x1;for(const _0x378b16 of Object['keys'](_0x213595))if(!_0x4cb47d(_0x4ffbd8[_0x378b16],_0x213595[_0x378b16]))return!0x1;return!0x0;}function Jt(_0x384d5f){const _0x4096e3=Object['assign']({},_0x384d5f);return delete _0x4096e3['skipNestingCheck'],delete _0x4096e3['tablePasteChainId'],_0x4096e3;}class ne extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x380ad6(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2a4d82,_0x5b1667,_0x366569,_0x2a860a){super(),this['model']=_0x5b1667,this['view']=_0x366569,this['commentThreadController']=_0x2a860a,this['_editor']=_0x2a4d82,this['_acceptCommand']=_0x2a4d82['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2a4d82['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5a48d5,_0x1eb6b1)=>_0x5a48d5||_0x1eb6b1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x9f6a0e=>_0x9f6a0e&&this['_editor']['model']['canEditAt'](_0x5b1667['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x35c030=>_0x35c030&&this['_editor']['model']['canEditAt'](_0x5b1667['getRanges']())),this['_pendingAction']=null,_0x366569['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x366569,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x366569,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x366569,'change:isDirty',()=>{_0x366569['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 _0x1b077a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1b077a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x4f4ff0{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x237d77,_0x3dabe1,_0x2670b4,_0x247f59){super(_0x237d77),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3dabe1['authoredAt']),this['bind']('authoredAt')['to'](_0x3dabe1),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3dabe1,this['_localUser']=_0x2670b4,this['_config']=_0x247f59,_0x247f59['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:_0x22eec1}=this['_config'];this['commentsListView']=new _0x22eec1(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',_0x2786dd=>_0x2786dd+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xf93366,_0x22c16f)=>_0xf93366||!!_0x22c16f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x674f92}=this['_config'],_0xb78d7e=new _0x674f92(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x381c55=_0xb78d7e['commentInputView'];return _0xb78d7e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x381c55,'value',(_0x516056,_0x2b9ae6,_0x62d363)=>!!_0x62d363||_0x516056&&!_0x2b9ae6),_0x381c55['on']('submit',(_0x13c53f,_0x3c9691)=>{this['fire']('addComment',_0x3c9691),_0x381c55['editor']['setData']('');}),_0x381c55['on']('cancel',()=>this['focus']()),_0x381c55['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xb78d7e;}}class ie extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x913c06,_0xd77c34,_0x4db227,_0x3d2f33){super(_0x913c06,_0xd77c34,_0x4db227,_0x3d2f33),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x18486d=>_0x18486d&&_0x18486d[0x0]?_0x18486d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x237b0a,_0x306dbf)=>{let _0x1b6621='';for(const _0x1bd41a of _0x237b0a)_0x1b6621+='<p>'+ds(_0x1bd41a['content'],_0x1bd41a['color'])+'</p>';return _0x306dbf?_0x1b6621:_0x5bf010(_0x1b6621,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x913c06,'Accept\x20suggestion'),_0x10de14['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x913c06,'Discard\x20suggestion'),_0x10de14['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0xf3e1ff(_0x913c06,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x26b390=this['bindTemplate'],_0x4ab211=[{'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':_0x26b390['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x26b390['to']('authoredAt',_0x48e911=>this['_config']['formatDateTime'](_0x48e911))}]}]},{'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']&&_0x4ab211['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x52b418={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x26b390['if']('isActive','ck-suggestion-wrapper--active'),_0x26b390['to']('type',_0x3d26b7=>'ck-suggestion-'+_0x3d26b7),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':_0x4ab211}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x52b418['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)),_0x52b418;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x3bdd6d,_0x3e7261,_0x42010f)=>{this['_descriptionElement']['innerHTML']=_0x42010f;});}['_createButton'](_0x163aef,_0x27ad42,_0x128c4f,_0x1071dc,_0x3ec6fa){const _0x7802ff=new _0x383d10(this['locale']);return _0x7802ff['set']({'label':_0x163aef,'icon':_0x27ad42,'tooltip':!0x0,'tooltipPosition':_0x3ec6fa}),_0x7802ff['extendTemplate']({'attributes':{'class':_0x128c4f}}),_0x7802ff['on']('execute',()=>{this['fire'](_0x1071dc,this['_model']['id']);}),_0x7802ff;}['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(_0x47bb6a,_0x491b5b){let _0x38c939='';return _0x38c939+=_0x47bb6a['split']('*')['map']((_0x4a4d2e,_0x410dba)=>_0x410dba%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x4a4d2e)+'</span>':us(_0x4a4d2e))['join'](''),_0x491b5b&&(_0x38c939+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x491b5b['value']+'\x22\x20title=\x22'+_0x491b5b['title']+'\x22></span>'),_0x38c939;}function us(_0x1baa4c){const _0x2e8b40=document['createElement']('span');return _0x2e8b40['innerText']=_0x1baa4c,_0x2e8b40['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 _0x588c48{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1944ad,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x37c7d5){super(_0x37c7d5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4f0f36=this['editor']['config'];_0x4f0f36['define']('trackChanges.SuggestionThreadView',ie),_0x4f0f36['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4f0f36['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x548133,_0x81f467){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x19c7a1,_0x5ce7da]of this['_handleControllerBuffer']){const _0x1c1d4f=this['_suggestionToController']['has'](_0x19c7a1);_0x1c1d4f||_0x5ce7da?_0x1c1d4f&&_0x5ce7da&&this['_destroyController'](_0x19c7a1):this['_initializeController'](_0x19c7a1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x548133,_0x81f467);}['init'](){const _0x1f904e=this['editor'],_0x34ffdf=_0x1f904e['plugins']['get']('TrackChangesEditing'),_0x5c4888=_0x1f904e['plugins']['get']('Annotations'),_0x28c710=_0x1f904e['plugins']['get']('EditorAnnotations'),_0x3e9206=_0x1f904e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x28c710['addSourceCollector'](()=>{const _0x3dcd21=[];for(const [_0x4b70a6,_0x5b5f30]of Array['from'](this['_suggestionToController'])){const _0x14cb23=_0x4b70a6['getAllAdjacentSuggestions'](),_0x24ebed=[];for(const _0x1d3fbf of _0x14cb23){if(!_0x1d3fbf['isInContent'])continue;if(_0x1d3fbf['isMultiRange']){_0x24ebed['push'](..._0x1d3fbf['getRanges']());continue;}const _0x142a9b=_0x1d3fbf['getFirstRange']();if(_0x24ebed['length']>0x0){const _0x2a1e64=_0x24ebed[0x0]['getJoined'](_0x142a9b);if(_0x2a1e64){_0x24ebed[0x0]=_0x2a1e64;continue;}}_0x24ebed['push'](_0x142a9b);}_0x3dcd21['push']([_0x5b5f30['view'],_0x24ebed]);}return _0x3dcd21;}),this['listenTo'](_0x34ffdf,'suggestionLoaded',(_0x374f7b,_0x59f5ae)=>{this['listenTo'](_0x59f5ae,'change:previous',(_0x4d73a1,_0x37d6bc,_0x51b52d,_0x138ff9)=>{_0x59f5ae['isInContent']&&(null==_0x51b52d?(this['_updateController'](_0x138ff9['head']),this['_handleSuggestionControllerDelayed'](_0x59f5ae,!0x1)):(this['_updateController'](_0x51b52d['head']),null==_0x138ff9&&this['_handleSuggestionControllerDelayed'](_0x59f5ae,!0x0)));}),null!==_0x59f5ae['previous']?this['_updateController'](_0x59f5ae['head']):this['_handleSuggestionControllerDelayed'](_0x59f5ae,!0x1);}),this['listenTo'](_0x34ffdf,'suggestionUnloaded',(_0x4eaa29,_0x1ca5d7,_0x26021c)=>{this['stopListening'](_0x1ca5d7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1ca5d7),this['_suggestionToController']['has'](_0x1ca5d7)&&this['_destroyController'](_0x1ca5d7),_0x26021c&&this['_updateController'](_0x26021c['head']);}),this['listenTo'](_0x34ffdf,'suggestionChanged',(_0x52b26b,_0x364f96)=>{this['_updateController'](_0x364f96);}),this['listenTo'](_0x5c4888,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3e9206,'addComment',(_0x35520c,{threadId:_0x3c1425,isFromAdapter:_0x539060})=>{if(_0x539060||!_0x34ffdf['hasSuggestion'](_0x3c1425))return;const _0x38922e=_0x34ffdf['getSuggestion'](_0x3c1425);this['_suggestionToController']['get'](_0x38922e)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x182706=this['editor']['plugins']['get']('Annotations'),_0x39d79a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a5af9=Array['from'](_0x182706['activeAnnotations'],_0x53aef3=>_0x53aef3['innerView'])['filter'](_0x3f93d0=>this['_viewToController']['has'](_0x3f93d0)),_0x3ae2ee=[];for(const _0x23cdfe of _0x2a5af9){const _0xf3b1b1=this['_viewToController']['get'](_0x23cdfe)['model']['getAllAdjacentSuggestions']();_0x3ae2ee['push'](..._0xf3b1b1['reduce']((_0x4fd353,_0x2a251b)=>[..._0x4fd353,..._0x2a251b['getMarkerNames']()],[]));}_0x39d79a['activeMarkers']=_0x3ae2ee;}['_addUIComponentsToFactory'](){const _0x28f9b6=this['editor'],_0x5b2a2d=_0x28f9b6['locale'],_0x26deff=o(_0x5b2a2d,'Track\x20changes'),_0x499ff1=new Wt([{'type':'switchbutton','model':new _0x58351e({'withText':!0x0,'isToggleable':!0x0,'label':_0x26deff,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x58351e({'withText':!0x0,'label':o(_0x5b2a2d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x58351e({'withText':!0x0,'label':o(_0x5b2a2d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x58351e({'withText':!0x0,'label':o(_0x5b2a2d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x58351e({'withText':!0x0,'label':o(_0x5b2a2d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3187ba of _0x499ff1)if(re(_0x3187ba)){const _0x633eb7=_0x28f9b6['commands']['get'](_0x3187ba['model']['commandName']);_0x3187ba['model']['bind']('isOn','isEnabled')['to'](_0x633eb7,'value','isEnabled');}_0x28f9b6['ui']['componentFactory']['add']('trackChanges',_0x446425=>this['_createToolbarButton'](_0x446425,_0x499ff1,_0x26deff)),_0x28f9b6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x224564=>this['_createMenuBarMenu'](_0x224564,_0x499ff1,_0x26deff));}['_createToolbarButton'](_0x5d622d,_0x9d2acd,_0x47aea5){const _0x56ef20=zt(_0x5d622d,te),_0x1fd0c1=this['editor']['commands']['get']('trackChanges');_0x56ef20['buttonView']['set']({'tooltip':_0x47aea5,'label':_0x47aea5,'icon':ae}),_0x56ef20['buttonView']['bind']('isOn')['to'](_0x1fd0c1,'value'),_0x56ef20['buttonView']['on']('execute',()=>{_0x1fd0c1['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x56ef20,_0x9d2acd,{'role':'menu'});const _0x1da14d=[];for(const _0x39c3cd of _0x9d2acd)re(_0x39c3cd)&&_0x1da14d['push'](this['editor']['commands']['get'](_0x39c3cd['model']['commandName']));const _0x286262=_0x56ef20['buttonView'];return _0x286262['actionView']['unbind']('isEnabled'),_0x286262['arrowView']['unbind']('isEnabled'),_0x286262['actionView']['bind']('isEnabled')['to'](_0x1fd0c1,'isEnabled'),_0x286262['arrowView']['bind']('isEnabled')['toMany'](_0x1da14d,'isEnabled',(..._0x33b275)=>_0x33b275['some'](_0x446bdf=>_0x446bdf)),_0x56ef20['on']('execute',_0x38b9fa=>{this['editor']['execute'](_0x38b9fa['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x56ef20;}['_createMenuBarMenu'](_0x563b23,_0x4091e7,_0x1eedbd){const _0x211e1d=new Qt(_0x563b23),_0x373277=this['editor']['commands']['get']('trackChanges');_0x211e1d['buttonView']['set']({'label':_0x1eedbd,'icon':ae});const _0x21b3aa=new Xt(_0x563b23);for(const _0x36a796 of _0x4091e7){if('separator'==_0x36a796['type']){_0x21b3aa['items']['add'](new Kt(_0x563b23));continue;}const _0x4f8d76=new Yt(_0x563b23,_0x211e1d),_0x4d952e=new Zt(_0x563b23),_0x51df87=_0x36a796['model'];_0x4d952e['bind'](...Object['keys'](_0x51df87))['to'](_0x51df87),_0x4d952e['delegate']('execute')['to'](_0x211e1d),_0x4d952e['on']('execute',()=>{this['editor']['execute'](_0x51df87['commandName']),this['editor']['editing']['view']['focus']();}),_0x4f8d76['children']['add'](_0x4d952e),_0x21b3aa['items']['add'](_0x4f8d76);}return _0x211e1d['bind']('isEnabled')['to'](_0x373277,'isEnabled'),_0x211e1d['panelView']['children']['add'](_0x21b3aa),_0x211e1d;}['_initializeController'](_0x891ed2){const _0x5e47ef=this['editor'],_0x2b8618=_0x5e47ef['config'],_0x528b12=_0x5e47ef['plugins']['get']('Annotations'),_0x2ceba7=_0x5e47ef['plugins']['get']('CommentsRepository'),_0x1eaf9e=_0x5e47ef['plugins']['get']('EditorAnnotations'),_0x1b640d=_0x5e47ef['plugins']['get'](_0x1944ad)['me'],_0x505f4b=_0x2b8618['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x2506f7,CommentThreadInputView:_0x3fd7c4}=_0x5e47ef['plugins']['get']('CommentsUI');let _0x19bc41,_0x5bd834;this['_annotationViews']['has'](_0x891ed2['id'])?(_0x5bd834=this['_annotationViews']['get'](_0x891ed2['id']),_0x19bc41=_0x5bd834['mainView']):(_0x19bc41=new _0x505f4b(_0x5e47ef['locale'],_0x891ed2,_0x1b640d,{'disableComments':this['_disableComments'],'editorConfig':_0x2b8618['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2b8618['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2b8618['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2b8618['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x104744(_0x2b8618['get']('locale')),'CommentView':_0x2b8618['get']('comments')['CommentView'],'CommentsListView':_0x2506f7,'CommentThreadInputView':_0x3fd7c4}),_0x19bc41['acceptButton']['on']('execute',()=>{_0x5e47ef['editing']['view']['focus']();}),_0x19bc41['discardButton']['on']('execute',()=>{_0x5e47ef['editing']['view']['focus']();}),_0x5bd834=_0x528b12['createAnnotationView'](this['editor']['locale'],_0x19bc41),_0x5bd834['bind']('isDirty')['to'](_0x19bc41,'isDirty'),_0x5bd834['bind']('length')['to'](_0x19bc41),_0x5bd834['bind']('type')['to'](_0x19bc41,'type',_0x27c996=>'suggestion-'+_0x27c996),this['_annotationViews']['set'](_0x891ed2['id'],_0x5bd834));const _0x5e0928=_0x2ceba7['createCommentThreadController'](_0x891ed2['commentThread'],_0x19bc41),_0x58c8a9=new ne(_0x5e47ef,_0x891ed2,_0x19bc41,_0x5e0928),_0x488f4b=_0x891ed2['getAllAdjacentSuggestions']()['filter'](_0x2cb453=>_0x2cb453['isInContent']);_0x19bc41['descriptionParts']=_0x5e47ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x488f4b),this['_suggestionToController']['set'](_0x891ed2,_0x58c8a9),this['_viewToController']['set'](_0x19bc41,_0x58c8a9);const _0x71ca01=_0x528b12['createAnnotation']({'view':_0x5bd834,'target':()=>{const _0x1ef0c3=[],_0x4a99b2=_0x891ed2['getAllAdjacentSuggestions']()['filter'](_0x2be2d2=>_0x2be2d2['isInContent']);for(const _0x1d0fe1 of _0x4a99b2)_0x1ef0c3['push'](..._0x1d0fe1['getMarkers']());return _0x318fbe(_0x5e47ef['editing'],_0x1ef0c3);},'type':()=>'suggestion-'+_0x58c8a9['view']['type']});_0x2ceba7['_bindAnnotationToEditors'](_0x19bc41,_0x71ca01),_0x528b12['add'](_0x71ca01),_0x1eaf9e['registerAnnotation'](_0x71ca01);}['_destroyController'](_0x867777){const _0x3ecd22=this['editor']['plugins']['get']('CommentsRepository'),_0xaf0d38=this['editor']['plugins']['get']('Annotations'),_0x51da36=this['_suggestionToController']['get'](_0x867777),_0x582131=_0x51da36['view'],_0xe4e6be=_0xaf0d38['getByInnerView'](_0x582131);_0x3ecd22['_unbindEditors'](_0x582131),_0xe4e6be&&_0xaf0d38['remove'](_0xe4e6be),this['_suggestionToController']['delete'](_0x867777),this['_viewToController']['delete'](_0x582131),_0x51da36['destroy']();}['_updateController'](_0x105a9d){if(!_0x105a9d['isInContent']||!this['_suggestionToController']['has'](_0x105a9d))return;const _0x52b816=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc80145=this['_suggestionToController']['get'](_0x105a9d),_0x572b74=_0x105a9d['getAllAdjacentSuggestions']();_0xc80145['view']['descriptionParts']=_0x52b816['descriptionFactory']['getDescriptions'](_0x572b74);}['destroy'](){for(const _0x50af8d of this['_suggestionToController']['keys']())this['_destroyController'](_0x50af8d);for(const _0x17b186 of this['_annotationViews']['values']())_0x17b186['mainView']['destroy']();super['destroy']();}}function re(_0x3b3f6a){return'model'in _0x3b3f6a;}class k extends _0x588c48{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x191f27){this['editor']['plugins']['get'](p)['adapter']=_0x191f27;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xa02ba5){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xa02ba5);}['getSuggestions']({skipNotAttached:_0x1249d9=!0x1,toJSON:_0x154f97=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1249d9,'toJSON':_0x154f97});}['getSuggestion'](_0x880bb3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x880bb3);}}const T=['Pagination'];class P extends _0x588c48{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x593abf=this['editor'];if(_0x593abf['config']['define']('trackChangesData.editorCreator',_0x729443=>{const _0x40d1da=_0x593abf['model']['document']['getRootNames']()['reduce']((_0x4b4848,_0x41bc68)=>(_0x4b4848[_0x41bc68]='',_0x4b4848),{});return _0x593abf['constructor']['create'](_0x40d1da,_0x729443);}),'function'!=typeof _0x593abf['config']['get']('trackChangesData')['editorCreator'])throw new _0x52ebd1('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1f4de8){return N(this['editor'],!0x0,_0x1f4de8);}['getDataWithDiscardedSuggestions'](_0xf91c44){return N(this['editor'],!0x1,_0xf91c44);}}class D extends _0x588c48{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x183353){super(_0x183353),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(_0x24b601){return void 0x0!==_0x24b601['getRootsAttributes'];}async function N(_0x274e79,_0x4ce7ce,_0x2a94e4){const _0x138767=_0x5d1e00(_0x274e79,T);_0x138767['plugins']['push'](p,D),_0x138767['rootsAttributes']=v(_0x274e79)?_0x274e79['getRootsAttributes']():void 0x0;const _0x40fc8a=document['createDocumentFragment'](),_0x52f9fa=_0x274e79['config']['get']('trackChangesData')['editorCreator'],_0x15dc65=await _0x52f9fa(_0x138767,()=>function(_0x364fc7){const _0x5b8983=document['createElement']('div');return _0x364fc7['appendChild'](_0x5b8983),_0x5b8983;}(_0x40fc8a));!function(_0x5da3bf,_0x53ddcb){const _0x5460e9=_0x5da3bf['model']['document']['getRootNames']()['reduce']((_0x480d53,_0x1803a8)=>(_0x480d53[_0x1803a8]=_0x5da3bf['data']['get']({'rootName':_0x1803a8}),_0x480d53),{}),_0x32a5f8=_0x5da3bf['plugins']['get']('Users')['users']['map'](_0x23ba47=>({'id':_0x23ba47['id'],'name':_0x23ba47['name']})),_0x48a3a1=_0x5da3bf['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xcbcdf=_0x5da3bf['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2dde4e=_0x53ddcb['plugins']['get']('Users'),_0x4e4ada=_0x53ddcb['plugins']['get']('TrackChangesEditing'),_0x3d2b41=_0x53ddcb['plugins']['get']('CommentsRepository');for(const _0x3f2e8a of _0x32a5f8)_0x2dde4e['getUser'](_0x3f2e8a['id'])||_0x2dde4e['addUser'](_0x3f2e8a);_0x2dde4e['me']||_0x2dde4e['useAnonymousUser']();for(const _0x5a4d7a of _0xcbcdf)_0x3d2b41['addCommentThread'](_0x5a4d7a);for(const _0x426a70 of _0x48a3a1)_0x4e4ada['addSuggestionData'](_0x426a70);_0x53ddcb['data']['set'](_0x5460e9);}(_0x274e79,_0x15dc65),_0x15dc65['execute'](_0x4ce7ce?'acceptAllSuggestions':'discardAllSuggestions');const _0x168e4a=v(_0x15dc65)?_0x15dc65['getFullData'](_0x2a94e4):_0x15dc65['data']['get'](_0x2a94e4);return await _0x15dc65['destroy'](),_0x168e4a;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|