@ckeditor/ckeditor5-track-changes 42.0.0-alpha.4 → 42.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0xdca4e9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x34fc0d,_0x71feab){super(),this['id']=_0x71feab['id'],this['type']=_0x71feab['type'],this['subType']=_0x71feab['subType']||null,this['author']=_0x71feab['author'],this['creator']=_0x71feab['creator']||_0x71feab['author'],this['isExternal']=Boolean(_0x71feab['attributes']&&_0x71feab['attributes']['@external']),this['data']=null,this['_model']=_0x34fc0d,this['_onAccept']=_0x71feab['onAccept'],this['_onDiscard']=_0x71feab['onDiscard'],this['_onAttributesChange']=_0x71feab['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x71feab['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 _0x86ea55=this;for(;_0x86ea55['previous'];)_0x86ea55=_0x86ea55['previous'];return _0x86ea55;}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'](_0x5723aa){this['_markerNames']['add'](_0x5723aa);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5c325c=>this['_model']['markers']['get'](_0x5c325c))['filter'](_0x1eb84e=>_0x1eb84e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x17b851=>{for(const _0x38fb48 of this['getMarkers']())_0x17b851['removeMarker'](_0x38fb48);}),this['_markerNames']['clear']();}['removeMarker'](_0x22e15e){this['_model']['change'](_0x34d7a9=>{_0x34d7a9['removeMarker'](_0x22e15e);}),this['_markerNames']['delete'](_0x22e15e);}['addRange'](_0x2905cf){const _0x610b06='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x610b06),this['_model']['change'](_0x342b20=>{_0x342b20['addMarker'](_0x610b06,{'range':_0x2905cf,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4c1b84){for(const _0x42e542 of this['getRanges']())if(_0x42e542['isIntersecting'](_0x4c1b84))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xaec347=>_0xaec347['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3743c5,_0x44610c)=>[..._0x3743c5,..._0x44610c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2b7430=this['getRanges']();if(0x1!=_0x2b7430['length'])return null;const _0x5ad9f5=_0x2b7430[0x0],_0x37b175=_0x5ad9f5['start']['nodeAfter'],_0x4828ba=_0x5ad9f5['end']['nodeBefore'];return _0x37b175 instanceof _0x564c85?_0x37b175!=_0x4828ba?null:_0x37b175: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 _0x33a0e6=[];let _0xa5083b=this['head'];for(;_0xa5083b;)_0x33a0e6['push'](_0xa5083b),_0xa5083b=_0xa5083b['next'];return _0x33a0e6;}['setAttribute'](_0x1c1afa,_0x7c7e7f){const _0xb99230=_0x55fcc1(this['attributes']);_0x26100d(_0xb99230,_0x1c1afa,_0x7c7e7f),_0x21978e(_0xb99230,this['attributes'])||(this['attributes']=_0xb99230,this['_onAttributesChange'](_0xb99230));}['removeAttribute'](_0x3f18f3){const _0x48c256=_0x55fcc1(this['attributes']);_0xf01f3a(_0x48c256,_0x3f18f3),_0x21978e(_0x48c256,this['attributes'])||(this['attributes']=_0x48c256,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 _0x299adf()['substr'](0x1,0x5);}}function o(_0x4b3824,_0x4bd351,_0x534580){const t=_0x4b3824['t'];switch(_0x4bd351){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',_0x534580);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x534580);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x534580);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x534580);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x534580);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',_0x534580);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x534580);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',_0x534580);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x534580);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x534580);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x534580);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x534580);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x534580);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x534580);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x534580);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x534580);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x534580);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x534580);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x534580);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x534580);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x534580);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x534580);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x534580);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'},_0x534580);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x534580);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x534580);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x534580);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x534580);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x534580);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'},_0x534580);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x534580);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x534580);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x534580);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x534580);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'},_0x534580);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x534580);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'},_0x534580);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'},_0x534580);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x534580);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'},_0x534580);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x534580);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'},_0x534580);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x534580);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x534580);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x534580);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'},_0x534580);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 _0x4bd351;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x26747f,_0x2469fc){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x26747f,this['_locale']=_0x2469fc;}['getDescriptions'](_0x243b79){const _0x4ca19e=[],_0x582692=new Set(),_0x45ff30=new Set();for(let _0x210ad5=0x0;_0x210ad5<_0x243b79['length'];_0x210ad5++){const _0x475ee5=_0x243b79[_0x210ad5];if(!_0x475ee5['isInContent'])continue;const _0x51aa41=this['_handleCustomCallbackDescription'](_0x475ee5);if(_0x51aa41){if(null!=_0x475ee5['subType']){if(_0x582692['has'](_0x475ee5['subType']))continue;_0x582692['add'](_0x475ee5['subType']);}_0x4ca19e['push'](_0x51aa41);}else{if('attribute'!=_0x475ee5['type'])'insertion'!=_0x475ee5['type']&&'deletion'!=_0x475ee5['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4ca19e,_0x475ee5,_0x243b79[_0x210ad5+0x1]);else{const _0x2cbb81=_0x475ee5['data']['key'];if(_0x45ff30['has'](_0x2cbb81))continue;_0x45ff30['add'](_0x475ee5['data']['key']),_0x2cbb81==m?this['_handleRenameSuggestionDescription'](_0x4ca19e,_0x475ee5):this['_handleAttributeSuggestionDescription'](_0x4ca19e,_0x475ee5);}}}return this['_resolveDescriptionItems'](_0x4ca19e);}['registerDescriptionCallback'](_0x3e991c){this['_customCallbacks']['push'](_0x3e991c);}['registerElementLabel'](_0x1d26f4,_0x2097a6,_0x5cf76f=_0x486fa6['normal']){'function'==typeof _0x1d26f4?_0x282498(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1d26f4,'label':_0x2097a6,'priority':_0x5cf76f}):this['_itemLabels']['set'](_0x1d26f4,_0x2097a6);}['registerAttributeLabel'](_0x11f027,_0x377031){this['_attributeLabels']['set'](_0x11f027,_0x377031);}['getItemLabel'](_0x456e44,_0x512c2e=0x1){let _0x542151;for(const _0x37985c of this['_itemLabelsCallbacks'])if(_0x37985c['matchingCallback'](_0x456e44)){_0x542151=_0x37985c['label'];break;}return _0x542151||(_0x542151=this['_itemLabels']['get'](_0x456e44['name'])),_0x542151?_0x542151(_0x512c2e):0x1!==_0x512c2e?_0x512c2e+'\x20'+_0x456e44['name']+'s':''+_0x456e44['name'];}['_addDescriptionItems'](_0x4a53f8,_0x524784){const _0x210785=_0x524784['getFirstRange']()['getWalker'](),_0x33a46a='insertion'==_0x524784['type']?'add':'remove';for(const _0x4edf33 of _0x210785){const _0x486e56=_0x4edf33['item'],_0x551aa=_0x4a53f8[_0x4a53f8['length']-0x1];if(_0x486e56['is']('$textProxy'))_0x551aa&&_0x551aa['type']['indexOf']('Container')>-0x1&&_0x4a53f8['pop'](),_0x551aa&&'text'==_0x551aa['type']?_0x551aa[_0x33a46a]+=_0x486e56['data']:_0x4a53f8['push']({'type':'text','add':'add'==_0x33a46a?_0x486e56['data']:'','remove':'remove'==_0x33a46a?_0x486e56['data']:''});else{if(this['_schema']['isObject'](_0x486e56)){const _0x15b417=_0x486e56;if(_0x551aa&&_0x551aa['type']['indexOf']('Container')>-0x1&&_0x4a53f8['pop'](),'elementEnd'==_0x4edf33['type'])continue;_0x551aa&&_0x551aa['type']==_0x33a46a+'Object'&&_0x551aa['element']['name']==_0x15b417['name']?_0x551aa['quantity']++:_0x4a53f8['push']({'type':_0x33a46a+'Object','element':_0x15b417,'quantity':0x1}),_0x210785['skip'](_0x496d85=>!('elementEnd'==_0x496d85['type']&&_0x496d85['item']==_0x486e56));}else{if(this['_schema']['checkChild'](_0x486e56,'$text')||_0x486e56['is']('element','softBreak')){const _0x6e412a=_0x486e56;if('add'==_0x33a46a&&'elementStart'==_0x4edf33['type']||'remove'==_0x33a46a&&'elementEnd'==_0x4edf33['type'])continue;if(_0x551aa&&-0x1==_0x551aa['type']['indexOf']('Container')){'text'==_0x551aa['type']&&(_0x551aa[_0x33a46a]+='\x0a');continue;}let _0x2e9f34;if(_0x2e9f34='add'==_0x33a46a?_0x6e412a['nextSibling']&&!this['_schema']['isObject'](_0x6e412a['nextSibling'])?_0x6e412a['nextSibling']:null:_0x6e412a['previousSibling']&&!this['_schema']['isObject'](_0x6e412a['previousSibling'])?_0x6e412a['previousSibling']:null,_0x6e412a['isEmpty']||_0x2e9f34&&_0x2e9f34['isEmpty']){const _0x1689da=_0x2e9f34&&_0x2e9f34['isEmpty']?_0x2e9f34:_0x6e412a;_0x551aa&&_0x551aa['type']==_0x33a46a+'EmptyContainer'&&_0x551aa['element']['name']==_0x1689da['name']?_0x551aa['quantity']++:_0x4a53f8['push']({'type':_0x33a46a+'EmptyContainer','element':_0x1689da,'quantity':0x1});}else _0x4a53f8['push']({'type':_0x33a46a+'Container','element':_0x6e412a});}}}}}['_resolveDescriptionItems'](_0x4f2705){const _0x323d72=this['_locale'],_0x4e25f8=[],_0x5952db=[],_0x157b90=[];for(const _0x3bda0e of _0x4f2705)switch(_0x3bda0e['type']){case'text':if(_0x3bda0e['add']=_0x3bda0e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3bda0e['remove']=_0x3bda0e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3bda0e['add']&&''!=_0x3bda0e['remove']){_0x4e25f8['push']({'type':'replace','content':o(_0x323d72,'REPLACE_TEXT',['\x22'+_0x3bda0e['remove']+'\x22','\x22'+_0x3bda0e['add']+'\x22'])});continue;}if(null!=_0x3bda0e['add']['match'](/^ +$/)){_0x4e25f8['push']({'type':'insertion','content':o(_0x323d72,'*Insert:*\x20%0',o(_0x323d72,'ELEMENT_SPACE',_0x3bda0e['add']['length']))});continue;}if(null!=_0x3bda0e['remove']['match'](/^ +$/)){_0x4e25f8['push']({'type':'deletion','content':o(_0x323d72,'*Remove:*\x20%0',o(_0x323d72,'ELEMENT_SPACE',_0x3bda0e['remove']['length']))});continue;}if(''!=_0x3bda0e['add']){_0x4e25f8['push']({'type':'insertion','content':o(_0x323d72,'*Insert:*\x20%0','\x22'+_0x3bda0e['add']+'\x22')});continue;}_0x4e25f8['push']({'type':'deletion','content':o(_0x323d72,'*Remove:*\x20%0','\x22'+_0x3bda0e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4e25f8['push']({'type':'insertion','content':o(_0x323d72,'*Insert:*\x20%0',this['getItemLabel'](_0x3bda0e['element'],_0x3bda0e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4e25f8['push']({'type':'deletion','content':o(_0x323d72,'*Remove:*\x20%0',this['getItemLabel'](_0x3bda0e['element'],_0x3bda0e['quantity']))});continue;case'addContainer':_0x4e25f8['push']({'type':'insertion','content':o(_0x323d72,'*Split:*\x20%0',this['getItemLabel'](_0x3bda0e['element'],_0x3bda0e['quantity']))});continue;case'removeContainer':_0x4e25f8['push']({'type':'deletion','content':o(_0x323d72,'*Merge:*\x20%0',this['getItemLabel'](_0x3bda0e['element'],_0x3bda0e['quantity']))});continue;case'addFormat':_0x5952db['push'](_0x3bda0e['key']);continue;case'removeFormat':_0x157b90['push'](_0x3bda0e['key']);continue;default:_0x4e25f8['push'](_0x3bda0e);}if(_0x5952db['length']){const _0x133d78=_0x5952db['map'](_0x15f41f=>this['_attributeLabels']['has'](_0x15f41f)?this['_attributeLabels']['get'](_0x15f41f):_0x15f41f)['join'](',\x20');_0x4e25f8['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x133d78)});}if(_0x157b90['length']){const _0x57a980=_0x157b90['map'](_0x5927d1=>this['_attributeLabels']['has'](_0x5927d1)?this['_attributeLabels']['get'](_0x5927d1):_0x5927d1)['join'](',\x20');_0x4e25f8['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x57a980)});}return _0x4e25f8;}['_handleCustomCallbackDescription'](_0x125ad5){for(const _0xfd7cec of this['_customCallbacks']){const _0x256121=_0xfd7cec(_0x125ad5);if(_0x256121&&'type'in _0x256121)return _0x256121;}}['_handleAttributeSuggestionDescription'](_0xa491f2,_0x88bcaa){const _0x40a05e=_0x88bcaa['data'],_0x2678b5=void 0x0===_0x40a05e['newValue']?'removeFormat':'addFormat';_0xa491f2['push']({'type':_0x2678b5,'key':_0x40a05e['key']});}['_handleRenameSuggestionDescription'](_0xdd8924,_0x1452b0){_0xdd8924['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1452b0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x366170,_0x460c27,_0x23256){if(this['_addDescriptionItems'](_0x366170,_0x460c27),_0x23256&&_0x23256['getFirstRange']()&&!_0x460c27['getFirstRange']()['end']['isEqual'](_0x23256['getFirstRange']()['start'])){const _0x25fd6a=_0x366170[_0x366170['length']-0x1],_0x25c3dd='insertion'==_0x460c27['type']?'add':'remove';_0x25fd6a&&'text'==_0x25fd6a['type']&&(_0x25fd6a[_0x25c3dd]+='\x0a');}}}class E extends _0x1a1403{['afterInit'](){const _0x419d90=this['editor'],_0x33aabf=_0x419d90['plugins']['get']('TrackChangesEditing');_0x419d90['commands']['get']('showAIAssistant')&&_0x33aabf['enableCommand']('showAIAssistant');}}class V extends _0x1a1403{['afterInit'](){const _0x22c8ff=this['editor'],_0x14da8e=_0x22c8ff['locale'];if(!_0x22c8ff['plugins']['has']('AlignmentEditing'))return;const _0x3de548=_0x22c8ff['plugins']['get']('TrackChangesEditing');_0x3de548['enableDefaultAttributesIntegration']('alignment'),_0x3de548['registerBlockAttribute']('alignment'),_0x3de548['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x14da8e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdb65ce=this['editor'],_0x4929f2=_0xdb65ce['locale'];_0xdb65ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d6726=>{if('formatBlock'!=_0x5d6726['type'])return;const {data:_0x37c1ed}=_0x5d6726;if(_0x37c1ed&&'alignment'==_0x37c1ed['commandName']){const _0xeffd9d=_0x37c1ed['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4929f2,'*Format:*\x20%0',function(_0x57392b){switch(_0x57392b){case'left':return o(_0x4929f2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4929f2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4929f2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4929f2,'FORMAT_JUSTIFY_TEXT');}}(_0xeffd9d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1a1403{['afterInit'](){const _0x31eb14=this['editor'],_0x3d50bb=_0x31eb14['plugins']['get']('TrackChangesEditing'),_0x4ecd07=_0x31eb14['locale'];for(const _0x2cec89 of ti){if(!_0x31eb14['plugins']['has'](_0x2cec89))continue;const _0x4fe758=_0x2cec89['slice'](0x0,-0x7)['toLowerCase'](),_0x2f1df0='FORMAT_'+_0x4fe758['toUpperCase']();_0x3d50bb['enableDefaultAttributesIntegration'](_0x4fe758),_0x3d50bb['registerInlineAttribute'](_0x4fe758),_0x3d50bb['descriptionFactory']['registerAttributeLabel'](_0x4fe758,o(_0x4ecd07,_0x2f1df0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bf763=this['editor'],_0x187559=_0x5bf763['locale'],_0x2d070c=_0x5bf763['plugins']['get']('TrackChangesEditing');function _0x2a5da3(_0x54c00e,_0x55f8c4){_0x2d070c['descriptionFactory']['registerDescriptionCallback'](_0x3ae9cc=>{if('formatInline'!=_0x3ae9cc['type'])return;const {data:_0x8ce321}=_0x3ae9cc;return _0x8ce321&&_0x8ce321['commandName']===_0x54c00e?_0x8ce321['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x187559,'*Format:*\x20%0',_0x55f8c4)}:{'type':'format','content':o(_0x187559,'*Remove\x20format:*\x20%0',_0x55f8c4)}:void 0x0;});}_0x2a5da3('bold',o(_0x187559,'FORMAT_BOLD')),_0x2a5da3('italic',o(_0x187559,'FORMAT_ITALIC')),_0x2a5da3('underline',o(_0x187559,'FORMAT_UNDERLINE')),_0x2a5da3('code',o(_0x187559,'FORMAT_CODE')),_0x2a5da3('strikethrough',o(_0x187559,'FORMAT_STRIKETHROUGH')),_0x2a5da3('subscript',o(_0x187559,'FORMAT_SUBSCRIPT')),_0x2a5da3('superscript',o(_0x187559,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1a1403{['afterInit'](){const _0x410b8d=this['editor'],_0x2e4a06=_0x410b8d['locale'];if(!_0x410b8d['plugins']['has']('BlockQuoteEditing'))return;const _0x1dc2f8=_0x410b8d['plugins']['get']('TrackChangesEditing'),_0x557fee=this['editor']['commands']['get']('blockQuote');_0x1dc2f8['enableCommand']('blockQuote',(_0x571bd8,_0x273b9c={})=>{const _0x1af753=this['editor']['model']['document']['selection'],_0xbd5089=_0x273b9c&&void 0x0!==_0x273b9c['forceValue']?_0x273b9c['forceValue']:!_0x557fee['value'];let _0x2976f6=[];if(_0xbd5089){const _0x58c886=Array['from'](_0x1af753['getSelectedBlocks']())['filter'](_0x5c4af3=>oo(_0x5c4af3)||function(_0x198c67,_0x37d9a9){const _0x553c13=_0x37d9a9['checkChild'](_0x198c67['parent'],'blockQuote'),_0x56607e=_0x37d9a9['checkChild'](['$root','blockQuote'],_0x198c67);return _0x553c13&&_0x56607e;}(_0x5c4af3,this['editor']['model']['schema']));_0x2976f6=to(_0x58c886,_0x410b8d['model']);}else{const _0x290ccf=Array['from'](_0x1af753['getSelectedBlocks']())['filter'](_0x256e04=>oo(_0x256e04));_0x2976f6=to(_0x290ccf,_0x410b8d['model']);}_0x410b8d['model']['change'](()=>{for(const _0xdaf720 of _0x2976f6)_0x1dc2f8['markBlockFormat'](_0xdaf720,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xbd5089}]});});}),_0x1dc2f8['descriptionFactory']['registerDescriptionCallback'](_0x4893e2=>{const {data:_0x127cf7}=_0x4893e2;if(_0x127cf7&&'blockQuote'==_0x127cf7['commandName']){const _0x41f202=o(_0x2e4a06,'ELEMENT_BLOCK_QUOTE');return _0x127cf7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e4a06,'*Set\x20format:*\x20%0',_0x41f202)}:{'type':'format','content':o(_0x2e4a06,'*Remove\x20format:*\x20%0',_0x41f202)};}});}}function oo(_0x2ba5a8){return'blockQuote'==_0x2ba5a8['parent']['name'];}class G extends _0x1a1403{['afterInit'](){const _0x576dd8=this['editor'];_0x576dd8['plugins']['has']('CaseChange')&&(_0x576dd8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x576dd8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x576dd8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1a1403{['afterInit'](){const _0x208e2f=this['editor'];_0x208e2f['commands']['get']('ckbox')&&_0x208e2f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1a1403{['afterInit'](){const _0x2f04b6=this['editor'];if(!_0x2f04b6['plugins']['has']('CodeBlock'))return;const _0x24bde3=_0x2f04b6['plugins']['get']('TrackChangesEditing'),_0x4072c8=_0x2f04b6['locale'],_0x5b62b8=_0x2f04b6['config']['get']('codeBlock')['languages'],_0x3d441d=_0x2f04b6['commands']['get']('codeBlock');_0x24bde3['enableCommand']('indentCodeBlock'),_0x24bde3['enableCommand']('outdentCodeBlock'),_0x24bde3['enableCommand']('codeBlock',(_0x4075d3,_0x2ea2ae={})=>{const _0x5cbce5=_0x2f04b6['model'],_0x3649a7=_0x2f04b6['model']['document']['selection'],_0x4242bc=_0x2ea2ae&&void 0x0!==_0x2ea2ae['forceValue']?_0x2ea2ae['forceValue']:!_0x3d441d['value'];let _0x5a84e5;_0x2ea2ae['language']||(_0x2ea2ae['language']=_0x5b62b8[0x0]['language']),_0x5a84e5=_0x4242bc?Array['from'](_0x3649a7['getSelectedBlocks']())['filter'](_0xe5db50=>eo(_0xe5db50)||function(_0x5f4ba6,_0x23c620){if(_0x5f4ba6['is']('rootElement')||_0x23c620['isLimit'](_0x5f4ba6))return!0x1;return _0x23c620['checkChild'](_0x5f4ba6['parent'],'codeBlock');}(_0xe5db50,_0x5cbce5['schema'])):Array['from'](_0x3649a7['getSelectedBlocks']())['filter'](_0x5d2d69=>eo(_0x5d2d69));const _0x54870b=to(_0x5a84e5,_0x5cbce5);_0x5cbce5['change'](()=>{for(const _0x1fdb11 of _0x54870b)_0x24bde3['markBlockFormat'](_0x1fdb11,{'commandName':'codeBlock','commandParams':[{..._0x2ea2ae,'forceValue':_0x4242bc}],'formatGroupId':'blockName'});});}),(_0x24bde3['descriptionFactory']['registerElementLabel']('codeBlock',_0xa0c80e=>o(_0x4072c8,'ELEMENT_CODE_BLOCK',_0xa0c80e)),_0x24bde3['descriptionFactory']['registerDescriptionCallback'](_0xc94a2f=>{if('formatBlock'!=_0xc94a2f['type'])return;const _0x542707=_0x4072c8['t'],{data:_0x47d153}=_0xc94a2f;if(!_0x47d153||'codeBlock'!=_0x47d153['commandName'])return;const _0x222b50=_0x47d153['commandParams'][0x0]['language'],_0x4f39e0=_0x542707(_0x5b62b8['find'](_0x350d74=>_0x350d74['language']===_0x222b50)['label'])['toLowerCase']();return _0x47d153['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4072c8,'*Set\x20format:*\x20%0',o(_0x4072c8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4f39e0+')')}:{'type':'format','content':o(_0x4072c8,'*Remove\x20format:*\x20%0',o(_0x4072c8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x138934){return'codeBlock'==_0x138934['name'];}class H extends _0x1a1403{['afterInit'](){const _0x311577=this['editor'];if(!_0x311577['plugins']['has']('CommentsEditing'))return;_0x311577['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x22a011,_0x45eb3b,_0x309726){const _0x24cd01=[];for(const _0x2e41c9 of _0x45eb3b['getItems']())_0x2e41c9['hasAttribute'](_0x22a011)&&_0x24cd01['push'](_0x309726['createRangeOn'](_0x2e41c9));return _0x24cd01;}function _e(_0x4fa8b3,_0x72ebe4,{showActiveMarker:_0x599596=!0x0}={}){const _0x566101=_0x4fa8b3['plugins']['get']('TrackChangesEditing');return(_0x22fd99,_0x3c5d1d,_0x1bef73)=>{if(!_0x1bef73['consumable']['test'](_0x3c5d1d['markerRange'],_0x22fd99['name']))return;const _0x3152b8=_0x3c5d1d['markerRange']['getWalker'](),_0x2dc655=_0x3c5d1d['markerRange']['start'],_0x2aa34b=_0x4fa8b3['model']['schema'];let _0x2e636a=null,_0x5482ea=null,_0x5e4fa1=!0x1,_0x315731=!0x1;for(const _0x391403 of _0x3152b8){const _0x36851a=_0x391403['item'];_0x5e4fa1=_0x5e4fa1||_0x2aa34b['isContent'](_0x36851a);const _0x2ea95d=_0x1bef73['mapper']['toViewElement'](_0x36851a);if(_0x2ea95d&&_0x2ea95d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x391403['type']&&(_0x2aa34b['isBlock'](_0x36851a)&&!_0x2aa34b['isLimit'](_0x36851a)&&(_0x36851a['nextSibling']||_0x2dc655['isAtEnd']?_0x2e636a&&_0x2e636a['parent']==_0x36851a||(_0x2e636a=_0x36851a,_0x3eaf99(_0x391403['previousPosition']),_0x315731=!0x0):_0x5482ea=_0x5482ea||_0x391403['previousPosition']));}function _0x3eaf99(_0x170d57){const _0x18aa17=_0x1bef73['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x72ebe4}),_0x7bfdf2=_0x1bef73['mapper']['toViewPosition'](_0x170d57);_0x599596&&_0x566101['activeMarkers']['includes'](_0x3c5d1d['markerName'])&&_0x1bef73['writer']['addClass']('ck-suggestion-marker--active',_0x18aa17),_0x1bef73['writer']['insert'](_0x7bfdf2,_0x18aa17),_0x1bef73['mapper']['bindElementToMarker'](_0x18aa17,_0x3c5d1d['markerName']);}_0x5e4fa1||_0x315731||!_0x5482ea||_0x3eaf99(_0x5482ea);};}class q extends _0x1a1403{static get['requires'](){return[_0x29fd82];}['init'](){const _0x53c9a0=this['editor'],_0x5c3554=_0x53c9a0['plugins']['get']('TrackChangesEditing');_0x5c3554['enableCommand']('delete');const _0x23210f=_0x53c9a0['commands']['get']('deleteForward');_0x5c3554['enableCommand']('deleteForward',(_0x27dac1,_0x2a89d2={})=>{const _0x53d22a=_0x53c9a0['model']['createSelection'](_0x53c9a0['model']['document']['selection']);_0x53d22a['isCollapsed']&&_0x53c9a0['model']['modifySelection'](_0x53d22a,{'direction':'forward','unit':_0x2a89d2['unit']});const _0x3d0ef0=_0x53d22a['getFirstRange'](),_0xc6bd10=_0x2a1164['fromRange'](_0x3d0ef0);let _0xa5b106;_0x27dac1(_0x2a89d2),_0xa5b106='$graveyard'==_0xc6bd10['root']['rootName']?_0x53c9a0['model']['createRange'](_0x3d0ef0['start']):_0x53c9a0['model']['createRange'](_0xc6bd10['start'],_0xc6bd10['end']),_0xc6bd10['detach'](),_0x53c9a0['model']['enqueueChange'](_0x23210f['buffer']['batch'],_0x21d094=>{_0x23210f['buffer']['lock'](),_0x21d094['setSelection'](_0x21d094['createRange'](_0xa5b106['end'])),_0x23210f['buffer']['unlock']();});}),_0x53c9a0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x53c9a0,'merge'),{'priority':'high'}),_0x53c9a0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x195355,_0x334788,_0x59e30a)=>{_0x59e30a['options']['showSuggestionHighlights']&&_e(_0x53c9a0,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x195355,_0x334788,_0x59e30a);},{'priority':'high'}),_0x53c9a0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x364194,_0x11026b,_0x206671)=>{const _0xdc7ae3=_0x206671['mapper']['markerNameToElements'](_0x11026b['markerName']);if(_0xdc7ae3){for(const _0x523675 of _0xdc7ae3)_0x523675['is']('uiElement')&&(_0x206671['mapper']['unbindElementFromMarkerName'](_0x523675,_0x11026b['markerName']),_0x206671['writer']['remove'](_0x523675));}},{'priority':'high'});}}class z extends _0x1a1403{['afterInit'](){const _0x2bb265=this['editor'];if(!_0x2bb265['plugins']['has']('ListEditing'))return;const _0x5a0bd2=_0x2bb265['locale'],_0x3a2ce0=_0x2bb265['plugins']['get']('TrackChangesEditing'),_0x536b0a=_0x2bb265['plugins']['has']('TodoListEditing'),_0x27cec3=!!_0x2bb265['config']['get']('list.multiBlock');function _0xd09cf(_0x3bc378){return{'type':'format','content':''+o(_0x5a0bd2,'*Set\x20format:*\x20%0',_0x3bc378)};}function _0x1f4a98(_0x593807){return{'type':'format','content':''+o(_0x5a0bd2,'*Remove\x20format:*\x20%0',_0x593807)};}_0x3a2ce0['enableDefaultAttributesIntegration']('numberedList'),_0x3a2ce0['enableDefaultAttributesIntegration']('bulletedList'),_0x3a2ce0['enableDefaultAttributesIntegration']('customNumberedList'),_0x3a2ce0['enableDefaultAttributesIntegration']('customBulletedList'),_0x3a2ce0['enableDefaultAttributesIntegration']('indentList'),_0x3a2ce0['enableDefaultAttributesIntegration']('outdentList'),_0x3a2ce0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3a2ce0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3a2ce0['registerBlockAttribute']('listItemId'),_0x3a2ce0['registerBlockAttribute']('listType'),_0x3a2ce0['registerBlockAttribute']('listIndent'),_0x27cec3&&(_0x3a2ce0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3a2ce0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x536b0a&&(_0x3a2ce0['enableDefaultAttributesIntegration']('todoList'),_0x3a2ce0['enableDefaultAttributesIntegration']('checkTodoList'),_0x3a2ce0['registerBlockAttribute']('todoListChecked'),_0x3a2ce0['descriptionFactory']['registerDescriptionCallback'](_0x5499e8=>{const {data:_0x4607d6}=_0x5499e8;if(_0x4607d6&&'todoListChecked'==_0x4607d6['key'])return{'type':'format','content':_0x4607d6['newValue']?o(_0x5a0bd2,'*Check\x20item*'):o(_0x5a0bd2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3176db=>{if(_0x3176db['batch']['isUndo'])return!0x1;let _0x35059a=!0x1;const _0x6fa1f3=_0x3a2ce0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x502349=>'todoListChecked'===_0x3a2ce0['_getAttributeKey'](_0x502349));for(const _0x3eec76 of _0x6fa1f3){'todo'!=_0x3eec76['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3a2ce0['_findSuggestions'](_0x3eec76['getFirstRange'](),'attribute')['find'](_0x5b5f6c=>'listType'===_0x3a2ce0['_getAttributeKey'](_0x5b5f6c['suggestion']))||(_0x3176db['removeMarker'](_0x3eec76['getFirstMarker']()),_0x35059a=!0x0));}return _0x35059a;})),_0x3a2ce0['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5a0bd2,'FORMAT_INDENT'));const _0x407bfc={'type':'format','content':''};_0x3a2ce0['descriptionFactory']['registerDescriptionCallback'](_0x27f227=>{const {data:_0x5d70e4}=_0x27f227;if(!_0x5d70e4||'listType'!=_0x5d70e4['key'])return;let _0x32c28c=_0x27f227['head'];for(;_0x32c28c;){if(_0x32c28c['data']&&(('listStyle'==_0x32c28c['data']['key']||'listMarkerStyle'==_0x32c28c['data']['key'])&&(_0x32c28c['data']['newValue']&&'default'!=_0x32c28c['data']['newValue']||'default'!=_0x32c28c['data']['oldValue']&&!_0x5d70e4['newValue'])||!_0x27cec3&&_0x32c28c['data']['key']==m))return _0x407bfc;_0x32c28c=_0x32c28c['next'];}if(null==_0x5d70e4['newValue'])switch(_0x5d70e4['oldValue']){case'bulleted':return _0x1f4a98(o(_0x5a0bd2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f4a98(o(_0x5a0bd2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f4a98(o(_0x5a0bd2,'ELEMENT_TODO_LIST'));}switch(_0x5d70e4['newValue']){case'bulleted':return _0xd09cf(o(_0x5a0bd2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xd09cf(o(_0x5a0bd2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xd09cf(o(_0x5a0bd2,'ELEMENT_TODO_LIST'));}}),_0x3a2ce0['descriptionFactory']['registerDescriptionCallback'](_0x411f50=>{const {data:_0x39fa1b}=_0x411f50;if(_0x39fa1b&&'listIndent'==_0x39fa1b['key'])return null==_0x39fa1b['newValue']||null==_0x39fa1b['oldValue']&&0x0==_0x39fa1b['newValue']?_0x407bfc:void 0x0;}),_0x3a2ce0['descriptionFactory']['registerDescriptionCallback'](_0x57f106=>{if('attribute'!=_0x57f106['type'])return;const {data:_0x4e91b8}=_0x57f106;if(!_0x4e91b8||'listItemId'!=_0x4e91b8['key'])return;const _0x143b0c=le(_0x57f106);return'newValue'==_0x143b0c?{'type':'format','content':o(_0x5a0bd2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x143b0c?{'type':'format','content':o(_0x5a0bd2,'*Split:*\x20list\x20item')}:_0x407bfc;}),_0x2bb265['model']['document']['registerPostFixer'](_0x33fbd4=>this['listItemIdFixer'](_0x33fbd4)),_0x2bb265['model']['document']['registerPostFixer'](_0xbab677=>this['noTrackChangesFixer'](_0xbab677)),_0x2bb265['model']['document']['registerPostFixer'](_0x322afc=>this['assureChains'](_0x322afc)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4ed46a){if(_0x4ed46a['batch']['isUndo']||!_0x4ed46a['batch']['isLocal'])return!0x1;let _0x59129d=!0x1;const _0x3f810a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x800fa2=>_0x800fa2['data']&&'listItemId'==_0x800fa2['data']['key'])['filter'](_0x5d9fad=>_0x5d9fad['data']['newValue']&&_0x5d9fad['data']['oldValue']);for(const _0xd10124 of _0x3f810a)le(_0xd10124)||(_0x4ed46a['removeMarker'](_0xd10124['getFirstMarker']()),_0x59129d=!0x0);return _0x59129d;}['noTrackChangesFixer'](_0x3bd23a){if(_0x3bd23a['batch']['isUndo']||!_0x3bd23a['batch']['isLocal'])return!0x1;const _0x58652c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x58652c['trackChangesCommand']['value'])return!0x1;let _0x13084f=!0x1;const _0x4faaaf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x182c1d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1bbb1d=>'attribute'==_0x1bbb1d['type'])['filter'](_0x21daac=>_0x4faaaf['includes'](_0x21daac['attributeKey']));if(0x0==_0x182c1d['length'])return _0x13084f;for(const _0x25816b of _0x182c1d){const _0xb26490=_0x58652c['_findSuggestions'](_0x25816b['range'],'attribute')['filter'](_0x687288=>!_0x687288['meta']['isNextTo'])['map'](_0x1e7844=>_0x1e7844['suggestion'])['filter'](_0x5b22c9=>{const _0x4ff1b2=_0x58652c['_getAttributeKey'](_0x5b22c9);return _0x4faaaf['includes'](_0x4ff1b2);});if(_0xb26490['length']){for(const _0x50f52d of _0xb26490)_0x3bd23a['removeMarker'](_0x50f52d['getFirstMarker']());_0x13084f=!0x0;}}return _0x13084f;}['assureChains'](_0xb0a7eb){if(_0xb0a7eb['batch']['isUndo']||!_0xb0a7eb['batch']['isLocal'])return!0x1;const _0x544ed4=this['editor']['plugins']['get']('TrackChangesEditing');let _0x442d6f=!0x1;const _0x46ab61=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x574d7a of _0x544ed4['getSuggestions']({'skipNotAttached':!0x0})){const _0x3ff240=_0x544ed4['_findSuggestions'](_0x574d7a['getFirstRange'](),'attribute')['map'](_0x6ad90a=>_0x6ad90a['suggestion'])['filter'](_0x46b626=>_0x46b626['data']&&_0x46ab61['includes'](_0x46b626['data']['key']));if(!_0x3ff240['length'])continue;const _0x2350fe=_0x3ff240[0x0]['head']['attributes']['groupId'];if(!_0x3ff240['every'](_0x227019=>_0x227019['attributes']['groupId']===_0x2350fe)){for(const _0x86e778 of _0x3ff240)_0x37ea7b(_0x86e778,_0x2350fe)&&(_0x442d6f=!0x0);}}return _0x442d6f;function _0x14d209(_0x3b0309,_0x16528a){for(const _0x468073 of _0x544ed4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31d30e=>'attribute'==_0x31d30e['type']&&_0x31d30e['attributes']['groupId']==_0x3b0309))_0x468073['setAttribute']('groupId',_0x16528a);}function _0x37ea7b(_0x2fef38,_0x55f321){let _0x1d4803=_0x2fef38['head'],_0x3f3730=!0x1;for(;_0x1d4803;)_0x1d4803['attributes']['groupId']!=_0x55f321&&(_0x14d209(_0x1d4803['attributes']['groupId'],_0x55f321),_0x1d4803['setAttribute']('groupId',_0x55f321),_0x3f3730=!0x0),_0x1d4803=_0x1d4803['next'];return _0x3f3730;}}['_supportLegacySuggestions'](){const _0x3cf015=this['editor'],_0x335f47=_0x3cf015['locale'],_0x156ae6=_0x3cf015['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x156ae6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x16d0b5,_0x1e0cde){const _0x4f5dd6=[];for(let _0x5cb663 of _0x16d0b5)_0x5cb663['start']['nodeAfter']===_0x5cb663['end']['parent']&&(_0x5cb663=_0x3cf015['model']['createRange'](_0x3cf015['model']['createPositionAt'](_0x5cb663['start']['nodeAfter'],0x0))),_0x4f5dd6['push'](_0x5cb663);_0x3cf015['model']['change'](_0x5b4980=>{const _0x1430c2=_0x3cf015['model']['document']['selection'],_0x32a7ad=Array['from'](_0x1430c2['getRanges']())['map'](_0x5f56b8=>_0x2a1164['fromRange'](_0x5f56b8));_0x5b4980['setSelection'](_0x4f5dd6),_0x3cf015['commands']['get'](_0x1e0cde['commandName'])['refresh'](),_0x1e0cde['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3cf015['execute'](_0x1e0cde['commandName'],..._0x1e0cde['commandParams']),_0x5b4980['setSelection'](_0x32a7ad);for(const _0x460fe0 of _0x32a7ad)_0x460fe0['detach']();});}),_0x156ae6['descriptionFactory']['registerElementLabel'](function(_0x7d03b3){const _0x2260fa=!_0x3cf015['model']['schema']['isObject'](_0x7d03b3),_0x15e7ba=_0x7d03b3['previousSibling'],_0x4ed086=_0x7d03b3['nextSibling'],_0x59c4e4=_0x7d03b3['getAttribute']('listItemId'),_0x3a4a2c=!_0x15e7ba||_0x15e7ba['getAttribute']('listItemId')!==_0x59c4e4,_0x2354b2=!_0x4ed086||_0x4ed086['getAttribute']('listItemId')!==_0x59c4e4;return _0x2260fa&&Boolean(_0x59c4e4)&&_0x3a4a2c&&_0x2354b2;},_0x37fc74=>o(_0x335f47,'ELEMENT_LIST_ITEM',_0x37fc74));}['_registerLegacyDescription'](){const _0x320cc4=this['editor'],_0xfe708=_0x320cc4['locale'];function _0x43023c(_0x293ee3){const _0x45d125=_0x320cc4['commands']['get']('bulletedList')['value'],_0x4ab803=_0x320cc4['commands']['get']('numberedList')['value'];return'numberedList'===_0x293ee3?_0x45d125:_0x4ab803;}_0x320cc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x352a91){if('formatBlock'!=_0x352a91['type'])return;const {data:_0xbc0a0d}=_0x352a91;if(!_0xbc0a0d)return;let _0x48a88a,_0x377492,_0x29e08a,_0x42df75;switch(_0xbc0a0d['commandName']){case'bulletedList':_0x29e08a=_0xbc0a0d['commandParams'][0x0]['forceValue'],_0x42df75=_0x43023c(_0xbc0a0d['commandName']),_0x48a88a=_0x29e08a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x42df75&&_0x320cc4['config']['get']('list.multiBlock')||(_0x48a88a='*Change\x20to:*\x20%0'),_0x377492={'type':'format','content':o(_0xfe708,_0x48a88a,o(_0xfe708,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x29e08a=_0xbc0a0d['commandParams'][0x0]['forceValue'],_0x42df75=_0x43023c(_0xbc0a0d['commandName']),_0x48a88a=_0x29e08a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x42df75&&_0x320cc4['config']['get']('list.multiBlock')||(_0x48a88a='*Change\x20to:*\x20%0'),_0x377492={'type':'format','content':o(_0xfe708,_0x48a88a,o(_0xfe708,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x48a88a='*Indent:*\x20%0',_0x377492={'type':'format','content':o(_0xfe708,_0x48a88a,o(_0xfe708,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x48a88a=function(_0x842cb){const _0x2c75a4=_0x842cb['getFirstRange']();let _0x5c89f2=_0x2c75a4['start']['nodeAfter'];for(;_0x5c89f2&&_0x2c75a4['containsItem'](_0x5c89f2);){if(_0x5c89f2['getAttribute']('listIndent')>0x0)return!0x1;_0x5c89f2=_0x5c89f2['nextSibling'];}return!0x0;}(_0x352a91)?o(_0xfe708,'*Format:*\x20remove\x20from\x20%0',o(_0xfe708,function(_0x38150a){return'ELEMENT_'+_0x38150a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x352a91))):o(_0xfe708,'*Outdent:*\x20%0',o(_0xfe708,'ELEMENT_LIST_ITEM')),_0x377492={'type':'format','content':_0x48a88a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xbc0a0d['multipleBlocks']&&(_0x48a88a='*Merge:*\x20%0',_0x377492={'type':'deletion','content':o(_0xfe708,_0x48a88a,o(_0xfe708,'ELEMENT_LIST_ITEM'))});}return _0x377492;});}}function le(_0x297e75){let _0x8b1986=_0x297e75['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x8b1986;){const _0x19c19e=_0x8b1986['getAttribute']('listItemId');if(!_0x19c19e)return!0x1;if(_0x19c19e==_0x297e75['data']['newValue'])return'newValue';if(_0x19c19e==_0x297e75['data']['oldValue'])return'oldValue';_0x8b1986=_0x8b1986['previousSibling'];}return!0x1;}class ue extends _0x1a1403{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x16d392=this['editor']['config']['get']('list.properties'),_0x5a6bdf=this['editor']['plugins']['get']('TrackChangesEditing');_0x16d392['styles']&&(_0x5a6bdf['enableDefaultAttributesIntegration']('listStyle'),_0x5a6bdf['registerBlockAttribute']('listStyle')),_0x16d392['reversed']&&(_0x5a6bdf['enableDefaultAttributesIntegration']('listReversed'),_0x5a6bdf['registerBlockAttribute']('listReversed')),_0x16d392['startIndex']&&(_0x5a6bdf['enableDefaultAttributesIntegration']('listStart'),_0x5a6bdf['registerBlockAttribute']('listStart'));const _0x5f285b={'type':'format','content':''};_0x5a6bdf['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xc0483f=this['editor']['locale'];_0x5a6bdf['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xc0483f,'FORMAT_LIST_REVERSED')),_0x5a6bdf['descriptionFactory']['registerDescriptionCallback'](_0x472c90=>{const {data:_0x136cbf}=_0x472c90;if(_0x136cbf&&'listReversed'==_0x136cbf['key'])return null==_0x136cbf['newValue']||0x0==_0x136cbf['newValue']&&null==_0x136cbf['oldValue']?_0x5f285b:void 0x0;}),_0x5a6bdf['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xc0483f,'FORMAT_LIST_START')),_0x5a6bdf['descriptionFactory']['registerDescriptionCallback'](_0x473ace=>{const {data:_0x40c136}=_0x473ace;if(_0x40c136&&'listStart'==_0x40c136['key'])return null==_0x40c136['newValue']||0x1==_0x40c136['newValue']&&null==_0x40c136['oldValue']?_0x5f285b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2602da=>{if(_0x2602da['batch']['isUndo'])return!0x1;let _0xf31156=!0x1;const _0x174357=_0x5a6bdf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1dcc61=>{const _0x5e3184=_0x5a6bdf['_getAttributeKey'](_0x1dcc61);return'listStart'==_0x5e3184||'listReversed'==_0x5e3184;});for(const _0x5aafd9 of _0x174357){const _0x5102fa=_0x5aafd9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5102fa||'customNumbered'==_0x5102fa)continue;_0x5a6bdf['_findSuggestions'](_0x5aafd9['getFirstRange'](),'attribute')['find'](_0x55e883=>'listType'==_0x5a6bdf['_getAttributeKey'](_0x55e883['suggestion']))||(_0x2602da['removeMarker'](_0x5aafd9['getFirstMarker']()),_0xf31156=!0x0);}return _0xf31156;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x24209e){const _0x1b7d42=this['editor']['locale'],{data:_0x20b5eb}=_0x24209e,_0x55fcda={'type':'format','content':''};if(!_0x20b5eb||'listStyle'!=_0x20b5eb['key'])return;if(!_0x20b5eb['oldValue'])return'default'==_0x20b5eb['newValue']?_0x55fcda:{'type':'format','content':''+o(_0x1b7d42,'*Set\x20format:*\x20%0',o(_0x1b7d42,this['_getTranslationKeyForListStyle'](_0x20b5eb['newValue'])))};if(!_0x20b5eb['newValue']){if('default'==_0x20b5eb['oldValue'])return _0x55fcda;let _0x4a619a=_0x24209e['head'];for(;_0x4a619a;){if(_0x4a619a['data']&&'listType'==_0x4a619a['data']['key']&&_0x4a619a['data']['newValue'])return _0x55fcda;_0x4a619a=_0x4a619a['next'];}return{'type':'format','content':''+o(_0x1b7d42,'*Remove\x20format:*\x20%0',o(_0x1b7d42,this['_getTranslationKeyForListStyle'](_0x20b5eb['oldValue'])))};}if('default'!=_0x20b5eb['newValue'])return{'type':'format','content':''+o(_0x1b7d42,'*Set\x20format:*\x20%0',o(_0x1b7d42,this['_getTranslationKeyForListStyle'](_0x20b5eb['newValue'])))};let _0x15c79b=_0x24209e['head'];for(;_0x15c79b;){if(_0x15c79b['data']&&'listType'==_0x15c79b['data']['key']&&_0x15c79b['data']['newValue']&&_0x15c79b['data']['oldValue'])return _0x55fcda;_0x15c79b=_0x15c79b['next'];}return{'type':'format','content':o(_0x1b7d42,'*Set\x20format:*\x20%0',o(_0x1b7d42,'ELEMENT_'+_0x24209e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5f53aa=this['editor'],_0x3668ff=_0x5f53aa['locale'];_0x5f53aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x435272=>{if('formatBlock'!=_0x435272['type'])return;const {data:_0xec591d}=_0x435272;if(!_0xec591d)return;let _0x34e8bc,_0x1bbca3;switch(_0xec591d['commandName']){case'listStyle':_0x34e8bc='*Change\x20to:*\x20%0',_0x1bbca3={'type':'format','content':o(_0x3668ff,_0x34e8bc,o(_0x3668ff,this['_getTranslationKeyForListStyle'](_0xec591d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x34e8bc=_0xec591d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1bbca3={'type':'format','content':o(_0x3668ff,_0x34e8bc)};break;case'listStart':_0x34e8bc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1bbca3={'type':'format','content':o(_0x3668ff,_0x34e8bc,_0xec591d['commandParams'][0x0]['startIndex'])};}return _0x1bbca3;});}['_getTranslationKeyForListStyle'](_0x47cbae){return'ELEMENT_'+function(_0x2e5b80){if(pe['includes'](_0x2e5b80))return'bulleted';if(ye['includes'](_0x2e5b80))return'numbered';return null;}(_0x47cbae)['toUpperCase']()+'_LIST_'+_0x47cbae['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1a1403{static get['requires'](){return[_0x26869a];}['init'](){const _0x691f4a=this['editor'],_0x1791f9=_0x691f4a['plugins']['get']('TrackChangesEditing'),_0x5a51cb=_0x691f4a['commands']['get']('enter');_0x1791f9['enableCommand']('enter',()=>{_0x691f4a['model']['change'](_0x260e4b=>{const _0x28c83e=_0x691f4a['model']['document']['selection'],_0x4d9b00=_0x28c83e['getFirstPosition'](),_0x572bf9=_0x2a1164['fromRange'](_0x28c83e['getFirstRange']());if(_0x5a51cb['enterBlock'](_0x260e4b)){const _0x4128a1=_0x691f4a['model']['createPositionAt'](_0x4d9b00['parent']['nextSibling'],0x0),_0x3aacb8=_0x260e4b['createRange'](_0x4d9b00,_0x4128a1);_0x1791f9['markInsertion'](_0x3aacb8);}else _0x260e4b['setSelection'](_0x260e4b['createRange'](_0x572bf9['end']));_0x572bf9['detach'](),_0x5a51cb['fire']('afterExecute',{'writer':_0x260e4b});});}),_0x691f4a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x691f4a,'split'),{'priority':'high'}),_0x691f4a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3e6f71,_0x5cf692,_0x588d75)=>{const _0x541c44=_0x588d75['mapper']['markerNameToElements'](_0x5cf692['markerName']);if(_0x541c44){for(const _0x4db0c0 of _0x541c44)_0x4db0c0['hasClass']('ck-suggestion-marker-split')&&(_0x588d75['mapper']['unbindElementFromMarkerName'](_0x4db0c0,_0x5cf692['markerName']),_0x588d75['writer']['remove'](_0x4db0c0));}},{'priority':'high'}),_0x691f4a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1d2451,_0x1914fe,_0x2729a5)=>{_0x2729a5['options']['showSuggestionHighlights']&&_e(_0x691f4a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1d2451,_0x1914fe,_0x2729a5);},{'priority':'high'});}}class J extends _0x1a1403{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x571743=this['editor']['plugins']['get']('TrackChangesEditing');_0x571743['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x571743['enableCommand']('findNext'),_0x571743['enableCommand']('findPrevious'),_0x571743['enableCommand']('replace'),_0x571743['enableCommand']('replaceAll');}['handleFindCommand'](_0x5238e2,_0x391c0b,_0x125591={}){const _0xa830d7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5238e2(_0x28eb35=>('string'==typeof _0x391c0b?_0xa830d7['findByTextCallback'](_0x391c0b,_0x125591):_0x391c0b)(_0x28eb35)['filter'](_0x594ecb=>!0x1===this['_isInDeletionRange'](_0x594ecb,_0x28eb35['item'])),_0x125591);}['_isInDeletionRange'](_0x26e666,_0x3f2612){const _0x4c84f8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f2612,_0x26e666['start']),this['editor']['model']['createPositionAt'](_0x3f2612,_0x26e666['end']));for(const _0x63fbbd of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4c84f8['getIntersection'](_0x63fbbd['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 _0x1a1403{['afterInit'](){const _0x4a8267=this['editor']['locale'],_0x3ed949=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5836d3,commandName:_0x337c65}of ro)this['editor']['plugins']['has'](_0x5836d3)&&(_0x3ed949['enableDefaultAttributesIntegration'](_0x337c65),_0x3ed949['registerInlineAttribute'](_0x337c65));_0x4a8267['t'],_0x3ed949['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4a8267,'FORMAT_FONT_SIZE')),_0x3ed949['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4a8267,'FORMAT_FONT_FAMILY')),_0x3ed949['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4a8267,'FORMAT_FONT_COLOR')),_0x3ed949['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4a8267,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20575a=this['editor'],_0x54c849=_0x20575a['locale'];_0x20575a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29c3c7=>{const _0x4c274a=_0x54c849['t'];if('formatInline'!=_0x29c3c7['type'])return;const {data:_0xa2d9de}=_0x29c3c7;if(null!=_0xa2d9de){if('fontSize'==_0xa2d9de['commandName']){const _0x31a9f1=_0xa2d9de['commandParams'][0x0]['value'];if(_0x31a9f1){const _0x1aa7b3=_0x4c274a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x37d765=>_0x37d765['model']==_0x31a9f1)['title'])['toLowerCase']();return{'type':'format','content':o(_0x54c849,'*Set\x20font\x20size:*\x20%0',_0x1aa7b3)};}return{'type':'format','content':o(_0x54c849,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xa2d9de['commandName']){const _0x441e8d=_0xa2d9de['commandParams'][0x0]['value'];return _0x441e8d?{'type':'format','content':o(_0x54c849,'*Set\x20font\x20family:*\x20%0',_0x441e8d)}:{'type':'format','content':o(_0x54c849,'*Reset\x20font\x20family*')};}if('fontColor'==_0xa2d9de['commandName']){const _0x30b453=_0xa2d9de['commandParams'][0x0]['value'];if(_0x30b453){const _0x55973c=_0x520b19(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1a76c1=>_0x1a76c1['model']==_0x30b453);let _0x18e10c=_0x30b453,_0x661653='';return _0x55973c&&(_0x18e10c=_0x55973c['label'],_0x661653=_0x4c274a(_0x18e10c)['toLowerCase']()),{'type':'format','content':o(_0x54c849,'*Set\x20font\x20color:*\x20%0',_0x661653)['trim'](),'color':{'value':_0x30b453,'title':_0x661653||_0x18e10c}};}return{'type':'format','content':o(_0x54c849,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xa2d9de['commandName']){const _0x2fe016=_0xa2d9de['commandParams'][0x0]['value'];if(_0x2fe016){const _0x1a70ab=_0x520b19(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x376f6f=>_0x376f6f['model']==_0x2fe016);let _0x1f2d63=_0x2fe016,_0x57ad31='';return _0x1a70ab&&(_0x1f2d63=_0x1a70ab['label'],_0x57ad31=_0x4c274a(_0x1f2d63)['toLowerCase']()),{'type':'format','content':o(_0x54c849,'*Set\x20font\x20background\x20color:*\x20%0',_0x57ad31)['trim'](),'color':{'value':_0x2fe016,'title':_0x57ad31||_0x1f2d63}};}return{'type':'format','content':o(_0x54c849,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1a1403{['afterInit'](){const _0x567b3c=this['editor'],_0x120b61=_0x567b3c['plugins']['get']('TrackChangesEditing'),_0x260171=_0x567b3c['commands']['get']('copyFormat'),_0xfb92ad=_0x567b3c['commands']['get']('pasteFormat');_0x260171&&_0xfb92ad&&(_0x120b61['enableDefaultAttributesIntegration']('pasteFormat'),_0x120b61['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4b4ce7=this['editor'],_0x3847ab=_0x4b4ce7['locale'];_0x4b4ce7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e5d31=>{if('formatBlock'!=_0x4e5d31['type']&&'formatInline'!=_0x4e5d31['type'])return;const {data:_0x4002b8}=_0x4e5d31;if(_0x4002b8&&'pasteFormat'===_0x4002b8['commandName']){const _0x4912ca=[],_0x2a5dd9=_0x4002b8['commandParams'][0x0];for(const [_0x36f65b,_0x47e8c9]of Object['entries'](_0x2a5dd9))_0x4912ca['push'](so(_0x4b4ce7,_0x36f65b,_0x47e8c9));return _0x4912ca['length']?{'type':'format','content':o(_0x3847ab,'*Set\x20format\x20to:*\x20%0',_0x4912ca['join'](',\x20'))}:{'type':'format','content':o(_0x3847ab,'*Remove\x20all\x20formatting*')};}});}}function so(_0x165664,_0x2c5d14,_0x2076b2){const _0x16fd62=_0x165664['locale']['t'],_0xfc5119=_0x2c5d14['split'](/(?=[A-Z])/)['join']('\x20'),_0x1f0040=_0x16fd62(_0xfc5119['charAt'](0x0)['toUpperCase']()+_0xfc5119['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2076b2)return _0x1f0040;if('fontColor'===_0x2c5d14||'fontBackgroundColor'===_0x2c5d14){const _0x330526=_0x520b19(_0x165664['config']['get']('fontColor.colors'))['find'](_0xe2005a=>_0xe2005a['model']==_0x2076b2);return _0x1f0040+'\x20('+(_0x330526?_0x16fd62(_0x330526['label'])['toLowerCase']():_0x2076b2)+')';}if('fontSize'===_0x2c5d14&&isNaN(parseFloat(_0x2076b2))){const _0xbe8ddb=_0x165664['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x165664['config']['get']('fontSize.options'))['find'](_0x2951ae=>_0x2951ae['model']==_0x2076b2);return _0x1f0040+'\x20('+(_0xbe8ddb?_0x16fd62(_0xbe8ddb['title'])['toLowerCase']():_0x2076b2)+')';}return _0x1f0040+'\x20('+_0x2076b2+')';}class Y extends _0x1a1403{['_headingOptions'];['afterInit'](){const _0x403d65=this['editor'];if(!_0x403d65['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x403d65['config']['get']('heading.options');const _0x444e95=_0x403d65['locale'],_0x376d83=_0x403d65['plugins']['get']('TrackChangesEditing');_0x376d83['enableDefaultAttributesIntegration']('heading');for(const _0x5e6a0f of this['_headingOptions'])'paragraph'!=_0x5e6a0f['model']&&_0x376d83['descriptionFactory']['registerElementLabel'](_0x5e6a0f['model'],_0x136276=>{const _0x281f38=this['_getHeadingLevel'](_0x5e6a0f['model']);return null!==_0x281f38?_0xa1ec74(_0x136276,_0x281f38):_0x38683c(_0x136276,_0x5e6a0f['title']);});function _0xa1ec74(_0x2761c7,_0x7ef877){return o(_0x444e95,'ELEMENT_HEADING',[_0x2761c7,_0x7ef877]);}function _0x38683c(_0x29ee22,_0x59a980){return o(_0x444e95,'ELEMENT_HEADING_CUSTOM',[_0x29ee22,_0x59a980]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e437c=this['editor'],_0x62399=_0x4e437c['locale'];function _0x2caa30(_0x54adb0,_0x46a971){return o(_0x62399,'ELEMENT_HEADING_CUSTOM',[_0x54adb0,_0x46a971]);}_0x4e437c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x329055=>{if('formatBlock'!=_0x329055['type'])return;const {data:_0x21d05a}=_0x329055;if(_0x21d05a&&'heading'==_0x21d05a['commandName']){const _0x7dc903=_0x21d05a['commandParams'][0x0]['value'],_0x1c29d4=this['_getHeadingLevel'](_0x7dc903);if(null!==_0x1c29d4)return{'type':'format','content':o(_0x62399,'*Change\x20to:*\x20%0',(_0x2b07b4=0x1,_0xedfcb=_0x1c29d4,o(_0x62399,'ELEMENT_HEADING',[_0x2b07b4,_0xedfcb])))};const _0x56cb8f=this['_headingOptions']['find'](_0x1b5ac4=>_0x1b5ac4['model']===_0x7dc903)['title'];return{'type':'format','content':o(_0x62399,'*Change\x20to:*\x20%0',_0x2caa30(0x1,_0x56cb8f))};}var _0x2b07b4,_0xedfcb;});}['_getHeadingLevel'](_0x1993b3){const _0x2c8291=_0x1993b3['match'](/^heading(\d+)/);if(_0x2c8291)return _0x2c8291[0x1];const _0x1ea385=this['_headingOptions']?.['find'](_0x2bab7c=>_0x2bab7c['model']==_0x1993b3);if(_0x1ea385&&_0x1ea385['view']){const _0x22bfa3=_0x1ea385['view'],_0x485741=(_0x22bfa3['name']??_0x22bfa3)['match'](/^h(\d+)/);if(_0x485741)return _0x485741[0x1];}return null;}}class Z extends _0x1a1403{['afterInit'](){const _0x57001d=this['editor'];if(!_0x57001d['plugins']['has']('HighlightEditing'))return;const _0x52750c=_0x57001d['plugins']['get']('TrackChangesEditing'),_0xd8a8af=_0x57001d['locale'];_0x52750c['enableDefaultAttributesIntegration']('highlight'),_0x52750c['registerInlineAttribute']('highlight'),_0x52750c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xd8a8af,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4946db=this['editor'],_0x5aebe1=_0x4946db['locale'];_0x4946db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1de276=>{if('formatInline'!=_0x1de276['type'])return;const {data:_0x18d366}=_0x1de276;if(_0x18d366&&'highlight'==_0x18d366['commandName']){const _0x41a4e3=_0x5aebe1['t'],_0x38cca0=_0x18d366['commandParams'][0x0]['value'];if(_0x38cca0){const _0x45d5af=_0x4946db['config']['get']('highlight.options')['find'](_0x54474c=>_0x54474c['model']==_0x38cca0),_0x3eb7b1=_0x41a4e3(_0x45d5af['title'])['toLowerCase']();return{'type':'format','content':o(_0x5aebe1,'*Set\x20highlight:*\x20%0',_0x3eb7b1),'color':{'value':_0x45d5af['color'],'title':_0x45d5af['title']}};}return{'type':'format','content':o(_0x5aebe1,'*Remove\x20highlight*',o(_0x5aebe1,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1a1403{['afterInit'](){const _0x3d877a=this['editor'];if(!_0x3d877a['plugins']['has']('HorizontalLineEditing'))return;_0x3d877a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2a3133=_0x3d877a['plugins']['get']('TrackChangesEditing'),_0x539573=_0x3d877a['locale'];_0x2a3133['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4473d8=>o(_0x539573,'ELEMENT_HORIZONTAL_LINE',_0x4473d8)),_0x3d877a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x195e5d,{writer:_0x1cf357,options:_0x5e2d35})=>{if(!_0x5e2d35['showSuggestionHighlights'])return null;const _0x1e4141=_0x1cf357['createContainerElement']('div'),_0x2d14df=_0x1cf357['createEmptyElement']('hr');return _0x1cf357['addClass']('ck-horizontal-line',_0x1e4141),_0x1cf357['insert'](_0x1cf357['createPositionAt'](_0x1e4141,0x0),_0x2d14df),_0x1e4141;},'converterPriority':'high'});}}class et extends _0x1a1403{['afterInit'](){const _0x2d0725=this['editor'];if(!_0x2d0725['plugins']['has']('HtmlEmbed'))return;const _0x21efec=_0x2d0725['plugins']['get']('TrackChangesEditing'),_0x236dfd=_0x2d0725['locale'];_0x21efec['descriptionFactory']['registerElementLabel']('rawHtml',_0x401567=>o(_0x236dfd,'ELEMENT_HTML_EMBED',_0x401567)),_0x21efec['enableDefaultAttributesIntegration']('htmlEmbed'),_0x21efec['registerBlockAttribute']('value'),_0x21efec['descriptionFactory']['registerDescriptionCallback'](_0x129a29=>{if('attribute'!=_0x129a29['type'])return;const {data:_0x189522}=_0x129a29;if(_0x189522&&'value'==_0x189522['key']&&_0x129a29['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xb530ed=o(_0x236dfd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x236dfd,'*Change\x20%0\x20content*',_0xb530ed)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b92e4=this['editor'],_0x271638=_0x5b92e4['locale'];_0x5b92e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d3482=>{if('formatBlock'!=_0x5d3482['type'])return;const {data:_0x36b7c8}=_0x5d3482;if(_0x36b7c8&&'htmlEmbed'==_0x36b7c8['commandName']){const _0x171e37=o(_0x271638,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x271638,'*Change\x20%0\x20content*',_0x171e37)};}});}}class it extends _0x1a1403{['afterInit'](){const _0x4d5345=this['editor'];if(!_0x4d5345['plugins']['has']('ImageEditing'))return;const _0x485c4c=_0x4d5345['plugins']['get']('TrackChangesEditing'),_0x2e078f=_0x4d5345['plugins']['get']('ImageUtils'),_0xc9091b=_0x4d5345['locale'];_0x485c4c['enableCommand']('insertImage'),_0x485c4c['descriptionFactory']['registerElementLabel']('imageBlock',_0x5bdae5=>o(_0xc9091b,'ELEMENT_IMAGE',_0x5bdae5)),_0x485c4c['descriptionFactory']['registerElementLabel']('imageInline',_0x1b1765=>o(_0xc9091b,'ELEMENT_INLINE_IMAGE',_0x1b1765)),_0x485c4c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xc9091b,'ELEMENT_CAPTION')),_0x4d5345['plugins']['has']('ImageUploadEditing')&&_0x485c4c['enableCommand']('uploadImage'),_0x4d5345['plugins']['has']('ImageBlockEditing')&&_0x4d5345['plugins']['has']('ImageInlineEditing')&&(_0x485c4c['enableCommand']('imageTypeInline',(_0x47a780,_0x410d74)=>{const _0x40f3c7=_0x2e078f['getClosestSelectedImageElement'](_0x4d5345['model']['document']['selection']);_0x4d5345['model']['change'](()=>{_0x485c4c['markBlockFormat'](_0x40f3c7,{'commandName':'imageTypeInline','commandParams':[_0x410d74]},[],'convertBlockImageToInline');});}),_0x485c4c['enableCommand']('imageTypeBlock',(_0x2599dd,_0x38c292)=>{_0x4d5345['model']['change'](_0x49dab3=>{let _0x145d9c=_0x2e078f['getClosestSelectedImageElement'](_0x4d5345['model']['document']['selection']),_0x4a0477=_0x49dab3['createRangeOn'](_0x145d9c);const _0x4ab938=_0x3e7d6e['fromPosition'](_0x4a0477['start'],'toPrevious'),_0x32b76c=_0x3e7d6e['fromPosition'](_0x4a0477['end'],'toNext');_0x485c4c['forceDefaultExecution'](()=>_0x2599dd(_0x38c292)),_0x145d9c=_0x2e078f['getClosestSelectedImageElement'](_0x4d5345['model']['document']['selection']),_0x4a0477=_0x49dab3['createRangeOn'](_0x145d9c);const _0x1ca590=_0x49dab3['createRange'](_0x4ab938,_0x32b76c);_0x4ab938['detach'](),_0x32b76c['detach'](),_0x485c4c['markBlockFormat'](_0x145d9c,{'commandName':'imageTypeInline','commandParams':[_0x38c292]},[],'convertInlineImageToBlock'),_0x1ca590['start']['isBefore'](_0x4a0477['start'])&&_0x485c4c['markInsertion'](_0x49dab3['createRange'](_0x1ca590['start'],_0x4a0477['start']),'convertInlineImageToBlock'),_0x4a0477['end']['isBefore'](_0x1ca590['end'])&&_0x485c4c['markInsertion'](_0x49dab3['createRange'](_0x4a0477['end'],_0x1ca590['end']),'convertInlineImageToBlock');});}),_0x485c4c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x485c4c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x485c4c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x485c4c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x485c4c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x485c4c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x49a642])=>{const _0x41c709=_0x485c4c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4eb357=_0x49a642['start'],_0x4e0b5d=_0x49a642['end'];const _0x1650b1=_0x4d5345['model']['schema']['getNearestSelectionRange'](_0x4eb357,'backward'),_0x4314a4=_0x4d5345['model']['schema']['getNearestSelectionRange'](_0x4e0b5d,'forward');_0x1650b1['isCollapsed']&&(_0x4eb357=_0x1650b1['start']),_0x4314a4['isCollapsed']&&(_0x4e0b5d=_0x4314a4['end']),_0x41c709([_0x4d5345['model']['createRange'](_0x4eb357,_0x4e0b5d)]);}),_0x485c4c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x9980bb),_0x485c4c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x9980bb)),_0x4d5345['plugins']['has']('ImageCaptionEditing')&&(_0x485c4c['enableCommand']('toggleImageCaption',(_0x49c68b,_0x21b217)=>{const _0x4ab655=_0x4d5345['plugins']['get']('ImageCaptionUtils');let _0x5374be=_0x2e078f['getClosestSelectedImageElement'](_0x4d5345['model']['document']['selection']),_0x2a3557=_0x4ab655['getCaptionFromImageModelElement'](_0x5374be);_0x4d5345['model']['change'](()=>{if(_0x2a3557)return void _0x485c4c['markDeletion'](_0x4d5345['model']['createRangeOn'](_0x2a3557));const _0x486611=_0x2e078f['isBlockImage'](_0x5374be);_0x49c68b(_0x21b217),_0x5374be=_0x2e078f['getClosestSelectedImageElement'](_0x4d5345['model']['document']['selection']),_0x2a3557=_0x4ab655['getCaptionFromImageModelElement'](_0x5374be),_0x485c4c['markInsertion'](_0x4d5345['model']['createRangeOn'](_0x2a3557),_0x486611?null:'imageCaption');});}),_0x485c4c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x9980bb));const _0x198ef4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x56097a(_0x20c79e,_0x102e98){const _0x229d57=_0x198ef4['findIndex'](({type:_0x4cdc54,subType:_0x42e543})=>_0x20c79e['type']==_0x4cdc54&&_0x20c79e['subType']==_0x42e543),_0x5aed31=_0x198ef4['findIndex'](({type:_0xb8dfd1,subType:_0x35cbdb})=>_0x102e98['type']==_0xb8dfd1&&_0x102e98['subType']==_0x35cbdb);if(_0x229d57<0x0||_0x5aed31<0x0)return!0x1;const _0x5d3f77=_0x20c79e['getFirstRange'](),_0x473af8=_0x102e98['getFirstRange']();if((0x0==_0x229d57||0x1==_0x229d57)&&0x2==_0x5aed31&&_0x5d3f77['isIntersecting'](_0x473af8))return!0x0;if(0x2==_0x229d57&&0x3==_0x5aed31){const _0x46d05f=_0x485c4c['_findSuggestions'](_0x5d3f77,'insertion')['filter'](({suggestion:_0x5a3e73,meta:_0x1c1aa6})=>_0x1c1aa6['isOwn']&&'convertInlineImageToBlock'==_0x5a3e73['subType']);if(_0x46d05f['length']>0x1&&_0x473af8['end']['isEqual'](_0x5d3f77['start']))return!0x0;if(0x1==_0x46d05f['length']&&(_0x5d3f77['start']['isEqual'](_0x473af8['end'])||_0x5d3f77['end']['isEqual'](_0x473af8['start'])))return!0x0;}if(0x3==_0x229d57&&0x3==_0x5aed31&&_0x5d3f77['start']['isBefore'](_0x473af8['start'])){const _0x1b875c=_0x5d3f77['end']['nodeAfter'],_0x28741e=_0x473af8['start']['nodeBefore'];return _0x2e078f['isBlockImage'](_0x1b875c)&&_0x1b875c===_0x28741e;}return!0x1;}function _0x9980bb(_0x3dcd26,_0xd05824){return _0x56097a(_0x3dcd26,_0xd05824)?[_0x3dcd26,_0xd05824]:_0x56097a(_0xd05824,_0x3dcd26)?[_0xd05824,_0x3dcd26]:null;}_0x4d5345['plugins']['has']('ImageResize')&&(_0x485c4c['enableDefaultAttributesIntegration']('resizeImage'),_0x485c4c['registerBlockAttribute']('resizedWidth'),_0x485c4c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xc9091b,'FORMAT_IMAGE_SIZE'))),_0x4d5345['plugins']['has']('ImageTextAlternativeEditing')&&(_0x485c4c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x485c4c['registerBlockAttribute']('alt')),_0x485c4c['descriptionFactory']['registerDescriptionCallback'](_0x1b742a=>{if(!!_0x198ef4['find'](({type:_0x24d47b,subType:_0x16bf68})=>_0x1b742a['type']==_0x24d47b&&_0x1b742a['subType']==_0x16bf68))return _0x1b742a['previous']?{}:void 0x0;}),_0x485c4c['descriptionFactory']['registerDescriptionCallback'](_0x16e6f9=>{if('insertion'==_0x16e6f9['type']||'deletion'==_0x16e6f9['type']){const _0x567e38=_0x16e6f9['getContainedElement']();if(_0x567e38&&_0x567e38['is']('element','caption'))return{'type':'insertion'==_0x16e6f9['type']?'addObject':'removeObject','element':_0x567e38,'quantity':0x1};}}),_0x485c4c['descriptionFactory']['registerDescriptionCallback'](_0x21461d=>'formatBlock'==_0x21461d['type']&&'convertInlineImageToBlock'==_0x21461d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x21461d['type']&&'convertBlockImageToInline'==_0x21461d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x485c4c['descriptionFactory']['registerDescriptionCallback'](_0x5be330=>{if('attribute'!=_0x5be330['type'])return;const {data:_0x328759}=_0x5be330;if(!_0x328759||'alt'!=_0x328759['key'])return;const _0x2c7d7c=_0x328759['newValue'];return _0x2c7d7c?{'type':'format','content':o(_0xc9091b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c7d7c+'\x22')}:{'type':'format','content':o(_0xc9091b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44c190=this['editor'],_0x44c32d=_0x44c190['locale'];_0x44c190['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x261f7a=>{if('formatBlock'!=_0x261f7a['type']&&'formatInline'!=_0x261f7a['type'])return;const {data:_0x74cce0}=_0x261f7a;if(_0x74cce0){if('imageTextAlternative'==_0x74cce0['commandName']){const _0x1d7ae9=_0x74cce0['commandParams'][0x0]['newValue'];return _0x1d7ae9?{'type':'format','content':o(_0x44c32d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1d7ae9+'\x22')}:{'type':'format','content':o(_0x44c32d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x74cce0['commandName']){const _0x3746be=_0x74cce0['commandParams'][0x0]['width'];return _0x3746be?{'type':'format','content':o(_0x44c32d,'*Set\x20image\x20width:*\x20%0',_0x3746be)}:{'type':'format','content':o(_0x44c32d,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1a1403{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x51e21c=this['editor']['locale'],_0xf108e6=this['editor']['plugins']['get']('TrackChangesEditing');_0xf108e6['enableDefaultAttributesIntegration']('replaceImageSource'),_0xf108e6['registerBlockAttribute']('src'),_0xf108e6['descriptionFactory']['registerDescriptionCallback'](_0x563245=>{if('attribute'!=_0x563245['type'])return;const {data:_0x1a5f02}=_0x563245;return _0x1a5f02&&'src'==_0x1a5f02['key']?_0x1a5f02['newValue']&&_0x1a5f02['oldValue']?{'type':'format','content':o(_0x51e21c,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3bf25e=this['editor']['plugins']['get']('TrackChangesEditing');_0x3bf25e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3bf25e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3bf25e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3bf25e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x60002a=this['editor'],_0x541465=_0x60002a['locale'];_0x60002a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x118e2b=>{if('formatBlock'!=_0x118e2b['type']&&'formatInline'!=_0x118e2b['type'])return;const {data:_0x4c8d63}=_0x118e2b;if(!_0x4c8d63||'replaceImageSource'!=_0x4c8d63['commandName'])return;return{'type':'format','content':o(_0x541465,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1a1403{['afterInit'](){const _0x16d649=this['editor'];if(!_0x16d649['plugins']['has']('ImageStyleEditing'))return;const _0x2ecec7=_0x16d649['plugins']['get']('TrackChangesEditing'),_0x2c6571=_0x16d649['plugins']['get']('ImageUtils'),_0x152868={};_0x2ecec7['enableCommand']('imageStyle',(_0x4d8127,_0x16d8c4)=>{const _0x192d52=_0x16d649['plugins']['get']('Users')['me'],_0x540d88=_0x16d649['commands']['get']('imageStyle');let _0x3eb21c=_0x2c6571['getClosestSelectedImageElement'](_0x16d649['model']['document']['selection']),_0x251bf3=_0x16d649['model']['createRangeOn'](_0x3eb21c),_0x400f0b=_0x540d88['value'];if(_0x400f0b==_0x16d8c4['value'])return;const _0x3829ea={'commandName':'imageStyle','commandParams':[_0x16d8c4],'formatGroupId':_0x299adf()};_0x16d649['model']['change'](()=>{if(_0x2ecec7['getSuggestions']()['filter'](_0x108792=>_0x108792['isInContent']&&_0x192d52==_0x108792['author']&&('formatBlock'==_0x108792['type']||'formatInline'==_0x108792['type'])&&('imageStylePreApply'==_0x108792['subType']||'imageStylePostApply'==_0x108792['subType'])&&_0x108792['getFirstRange']()['isEqual'](_0x251bf3))['forEach'](_0x5754e3=>_0x2ecec7['discardSuggestion'](_0x5754e3['head'])),_0x3eb21c=_0x2c6571['getClosestSelectedImageElement'](_0x16d649['model']['document']['selection']),_0x251bf3=_0x16d649['model']['createRangeOn'](_0x3eb21c),_0x540d88['refresh'](),_0x16d649['commands']['get']('imageTypeInline')['refresh'](),_0x16d649['commands']['get']('imageTypeBlock')['refresh'](),_0x400f0b=_0x540d88['value'],_0x400f0b!=_0x16d8c4['value'])return _0x2c6571['isInlineImage'](_0x3eb21c)&&_0x540d88['shouldConvertImageType'](_0x16d8c4['value'],_0x3eb21c)?(_0x4d8127({..._0x16d8c4,'setImageSizes':!0x1}),_0x3eb21c=_0x2c6571['getClosestSelectedImageElement'](_0x16d649['model']['document']['selection']),void _0x2ecec7['markBlockFormat'](_0x3eb21c,{..._0x3829ea,'commandReversedParams':[{'value':_0x400f0b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c6571['isBlockImage'](_0x3eb21c)?_0x2ecec7['markBlockFormat'](_0x3eb21c,_0x3829ea,[],'imageStylePostApply'):_0x2ecec7['markInlineFormat'](_0x251bf3,_0x3829ea,'imageStylePostApply'));});});for(const _0x1c3aab of _0x16d649['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x152868[_0x1c3aab['name']]=_0x1c3aab['title']['toLowerCase']();_0x2ecec7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2ecec7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2ecec7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2ecec7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5a72a0])=>{_0x2c6571['setImageNaturalSizeAttributes'](_0x5a72a0['getContainedElement']());}),_0x2ecec7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xe441df,_0x3ec60c)=>{_0x2ecec7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xe441df,{'commandName':_0x3ec60c['commandName'],'commandParams':_0x3ec60c['commandReversedParams']});}),_0x2ecec7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x324a8a,_0x4484b4){if(_0x1365d7(_0x324a8a,_0x4484b4))return[_0x324a8a,_0x4484b4];if(_0x1365d7(_0x4484b4,_0x324a8a))return[_0x4484b4,_0x324a8a];return null;});const _0x49f2a6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1365d7(_0x1a222c,_0x3c527c){const _0x429dc3=_0x49f2a6['findIndex'](({type:_0x5bf2bf,subType:_0x3d9a4f})=>_0x1a222c['type']==_0x5bf2bf&&_0x1a222c['subType']==_0x3d9a4f),_0x55b40d=_0x49f2a6['findIndex'](({type:_0xb9a719,subType:_0x472ea8})=>_0x3c527c['type']==_0xb9a719&&_0x3c527c['subType']==_0x472ea8);if(_0x429dc3<0x0||_0x55b40d<0x0)return!0x1;const _0x9abf59=_0x1a222c['getFirstRange'](),_0xe7245f=_0x3c527c['getFirstRange']();if((0x0==_0x429dc3||0x1==_0x429dc3)&&0x2==_0x55b40d&&_0x9abf59['isIntersecting'](_0xe7245f))return!0x0;if(0x2==_0x429dc3&&0x3==_0x55b40d){const _0x1dd476=_0x2ecec7['_findSuggestions'](_0x9abf59,'insertion')['filter'](({suggestion:_0x424401,meta:_0x58b879})=>_0x58b879['isOwn']&&'convertInlineImageToBlock'==_0x424401['subType']);if(_0x1dd476['length']>0x1&&_0xe7245f['end']['isEqual'](_0x9abf59['start']))return!0x0;if(0x1==_0x1dd476['length']&&(_0x9abf59['start']['isEqual'](_0xe7245f['end'])||_0x9abf59['end']['isEqual'](_0xe7245f['start'])))return!0x0;}if(0x3==_0x429dc3&&0x3==_0x55b40d&&_0x9abf59['start']['isBefore'](_0xe7245f['start'])){const _0x348953=_0x9abf59['end']['nodeAfter'],_0x2fa754=_0xe7245f['start']['nodeBefore'];return _0x2c6571['isBlockImage'](_0x348953)&&_0x348953===_0x2fa754;}return!0x1;}_0x16d649['model']['document']['registerPostFixer'](()=>{let _0x693ddb=!0x1;const _0x5641bc=Array['from'](_0x16d649['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f1414,data:_0x233f14}of _0x5641bc){const {group:_0x539dc7,type:_0x14ceb2,subType:_0x27e523,id:_0x531562}=_0x2ecec7['_splitMarkerName'](_0x2f1414);if('suggestion'==_0x539dc7&&_0x2ecec7['hasSuggestion'](_0x531562)){if('formatBlock'==_0x14ceb2&&('imageStylePreApply'==_0x27e523||'imageStylePostApply'==_0x27e523)){const _0x29a363=_0x2ecec7['getSuggestion'](_0x531562);if(_0x233f14['newRange']){const _0x48f3a5=_0x29a363['getFirstRange']()['getContainedElement']();if(_0x2c6571['isBlockImage'](_0x48f3a5))continue;_0x2ecec7['discardSuggestion'](_0x29a363),_0x693ddb=!0x0;}}if('insertion'==_0x14ceb2&&'imageCaption'==_0x27e523&&!_0x233f14['newRange']){const _0x5b3f67=_0x2ecec7['getSuggestion'](_0x531562);_0x5b3f67['next']&&_0x5b3f67['next']['isInContent']&&(_0x2ecec7['discardSuggestion'](_0x5b3f67['next']),_0x693ddb=!0x0);}}}return _0x693ddb;}),this['_registerLegacyDescription'](_0x152868);}['_registerLegacyDescription'](_0x4a3fd7){const _0x433f95=this['editor'],_0x1b6589=_0x433f95['locale'];_0x433f95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fc580=>{if('formatBlock'!=_0x3fc580['type']&&'formatInline'!=_0x3fc580['type'])return;const {data:_0x1ccfc8}=_0x3fc580;if(!_0x1ccfc8||'imageStyle'!=_0x1ccfc8['commandName'])return;const _0x196332=_0x1ccfc8['commandParams'][0x0]['value'];return _0x3c5bd0('side'===_0x196332?o(_0x1b6589,'FORMAT_SIDE_IMAGE'):_0x4a3fd7[_0x196332]||_0x196332);function _0x3c5bd0(_0x16f4e8){return{'type':'format','content':o(_0x1b6589,'*Format:*\x20%0',_0x16f4e8)};}});}}class ot extends _0x1a1403{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x338931){super(_0x338931),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x38104a=this['editor'],_0x5eb97b=_0x38104a['commands']['get']('importWord'),_0x58264b=_0x38104a['commands']['get']('trackChanges');_0x5eb97b&&(_0x5eb97b['on']('execute',(_0x22f115,[,_0x6966fa])=>{this['_trackChangesValueDuringImport']=_0x58264b['value'],_0x6966fa['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5eb97b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5eb97b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x58264b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x38104a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x22762e,_0x30fe4e){const {suggestions:_0x5d28ea}=_0x30fe4e,_0x64bc28=this['editor']['commands']['get']('trackChanges'),_0x484af6=_0x64bc28['value'];this['_trackChangesValueDuringImport']!==_0x484af6&&(_0x64bc28['execute'](),this['_trackChangesExecuted']=!0x0),_0x5d28ea&&_0x5d28ea['forEach'](({id:_0x5424b9,type:_0x407396,author:_0xc3d054,created_at:_0x194cb5})=>{const _0x1b3fb2={'id':_0x5424b9,'type':_0x407396,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xc3d054,'createdAt':_0x194cb5?new Date(_0x194cb5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1b3fb2);});}}class rt extends _0x1a1403{['afterInit'](){const _0x2078d4=this['editor'],_0x11a9ad=_0x2078d4['plugins']['get']('TrackChangesEditing');if(_0x2078d4['plugins']['has']('IndentEditing')&&(_0x11a9ad['enableCommand']('indent'),_0x11a9ad['enableCommand']('outdent')),_0x2078d4['plugins']['has']('IndentBlock')){for(const _0x2346c8 of['indentBlock','outdentBlock'])_0x11a9ad['enableDefaultAttributesIntegration'](_0x2346c8);}const _0x6492dd=_0x2078d4['locale'];_0x11a9ad['registerBlockAttribute']('blockIndent'),_0x11a9ad['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x6492dd,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41627f=this['editor'],_0xbe5970=_0x41627f['locale'],_0x4be199=_0x41627f['plugins']['get']('TrackChangesEditing');_0x4be199['descriptionFactory']['registerDescriptionCallback'](_0x3f3a9a=>{if('formatBlock'!=_0x3f3a9a['type'])return;const {data:_0x5647ff}=_0x3f3a9a;if(!_0x5647ff)return;if('indentBlock'!=_0x5647ff['commandName']&&'outdentBlock'!=_0x5647ff['commandName'])return;const _0x2835ca=_0x3f3a9a['getItems']()[0x0],_0xe55b9f=_0x4be199['descriptionFactory']['getItemLabel'](_0x2835ca);return'indentBlock'==_0x5647ff['commandName']?{'type':'format','content':o(_0xbe5970,'*Indent:*\x20%0',_0xe55b9f)}:'outdentBlock'==_0x5647ff['commandName']?{'type':'format','content':o(_0xbe5970,'*Outdent:*\x20%0',_0xe55b9f)}:void 0x0;});}}class at extends _0x1a1403{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1a1403{['afterInit'](){const _0x121df5=this['editor'];if(!_0x121df5['plugins']['has']('LinkEditing'))return;const _0x372597=_0x121df5['plugins']['get']('TrackChangesEditing'),_0x3c2554=_0x121df5['commands']['get']('link');_0x372597['enableDefaultAttributesIntegration']('link'),_0x372597['enableDefaultAttributesIntegration']('unlink'),_0x372597['registerInlineAttribute']('linkHref');for(const _0x1b3fcc of _0x3c2554['manualDecorators'])_0x372597['registerInlineAttribute'](_0x1b3fcc['id']),_0x372597['descriptionFactory']['registerAttributeLabel'](_0x1b3fcc['id'],'link\x20('+_0x1b3fcc['label']['toLowerCase']()+')');_0x372597['descriptionFactory']['registerDescriptionCallback'](_0x376c2f=>{if('attribute'!=_0x376c2f['type'])return;const {data:_0x2392f4}=_0x376c2f;if(!_0x2392f4||'linkHref'!=_0x2392f4['key'])return;const _0x29dc39=_0x2392f4['newValue'],_0x54c1be=_0x121df5['locale'];return{'type':'format','content':null==_0x29dc39?o(_0x54c1be,'*Remove\x20link*'):o(_0x54c1be,'*Set\x20link:*\x20%0','\x22'+_0x29dc39+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43950c=this['editor'],_0x64776=_0x43950c['locale'];_0x43950c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcb61a3=>{if('formatInline'!=_0xcb61a3['type'])return;const {data:_0x39164b}=_0xcb61a3;if(_0x39164b){if('link'==_0x39164b['commandName']){const _0x5ab686=_0x39164b['commandParams'][0x0];return{'type':'format','content':o(_0x64776,'*Set\x20link:*\x20%0','\x22'+_0x5ab686+'\x22')};}return'unlink'==_0x39164b['commandName']?{'type':'format','content':o(_0x64776,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1a1403{['afterInit'](){const _0x3aee93=this['editor'],_0x221c67=_0x3aee93['locale'];if(!_0x3aee93['plugins']['has']('LegacyListEditing'))return;const _0xfa434d=_0x3aee93['plugins']['get']('TrackChangesEditing'),_0x1c5751=_0x3aee93['plugins']['has']('LegacyTodoListEditing');function _0x23d843(_0x37b76b){return()=>{const _0xe3d763=_0x3aee93['model']['document']['selection'],_0x42f52d=_0x3aee93['commands']['get'](_0x37b76b);if(_0x42f52d['value'])return void _0x3aee93['execute']('paragraph',{});const _0x526ebe=_0x37b76b['slice'](0x0,-0x4),_0x2d414f=function(_0x5acfee,_0x47570c,_0x57f119){let _0x39af9c=Array['from'](_0x5acfee)['filter'](_0x57db5d=>function(_0x553ba2,_0x4a81b9){return _0x4a81b9['checkChild'](_0x553ba2['parent'],'listItem')&&!_0x4a81b9['isObject'](_0x553ba2);}(_0x57db5d,_0x57f119));_0x39af9c=_0x39af9c['filter'](_0x32f798=>!_0x32f798['is']('element','listItem')||_0x32f798['getAttribute']('listType')!=_0x47570c);const _0x18b812=new Set();for(const _0x53462d of _0x39af9c)_0x53462d['is']('element','listItem')?_0x18b812['add'](me(_0x53462d)):_0x18b812['add'](_0x53462d);return Array['from'](_0x18b812);}(_0xe3d763['getSelectedBlocks'](),_0x526ebe,_0x3aee93['model']['schema']);_0x3aee93['model']['change'](()=>{for(const _0x4dccde of _0x2d414f)_0xfa434d['markBlockFormat'](_0x4dccde,{'commandName':_0x37b76b,'commandParams':[{'forceValue':!_0x42f52d['value']}],'formatGroupId':'blockName'},fe(_0x4dccde));});};}function _0x49fc33(_0x14c4b4){return()=>{const _0x4a56a6=function(_0xf849ee){let _0x26c157=Array['from'](_0xf849ee);const _0x173e64=_0x26c157['findIndex'](_0xd1e3f4=>'listItem'!=_0xd1e3f4['name']);return _0x173e64>-0x1&&(_0x26c157=_0x26c157['slice'](0x0,_0x173e64)),_0x26c157;}(_0x3aee93['model']['document']['selection']['getSelectedBlocks']()),_0xa8c84a=_0x3aee93['model']['createRange'](_0x3aee93['model']['createPositionAt'](_0x4a56a6[0x0],'before'),_0x3aee93['model']['createPositionAt'](_0x4a56a6[_0x4a56a6['length']-0x1],'end'));_0x3aee93['model']['change'](()=>{_0xfa434d['markBlockFormat'](_0xa8c84a,{'commandName':_0x14c4b4,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3a3664){const _0x5949e6=new Set();for(const _0x2e9df2 of _0x3a3664){let _0x1afb9c=_0x2e9df2['nextSibling'];for(;_0x1afb9c&&_0x1afb9c['getAttribute']('listIndent')>_0x2e9df2['getAttribute']('listIndent');)_0x5949e6['add'](_0x1afb9c),_0x1afb9c=_0x1afb9c['nextSibling'];}return Array['from'](_0x5949e6);}(_0x4a56a6));});};}_0xfa434d['enableCommand']('numberedList',_0x23d843('numberedList')),_0xfa434d['enableCommand']('bulletedList',_0x23d843('bulletedList')),_0x1c5751&&_0xfa434d['enableCommand']('todoList',_0x23d843('todoList')),_0xfa434d['enableCommand']('indentList',_0x49fc33('indentList')),_0xfa434d['enableCommand']('outdentList',_0x49fc33('outdentList')),_0x1c5751&&_0xfa434d['enableCommand']('checkTodoList',()=>{const _0x4e1b48=_0x3aee93['commands']['get']('checkTodoList'),_0x3c0eea=Array['from'](_0x4e1b48['_selectedElements']);_0x3c0eea['filter'](_0x830171=>_0x830171['getAttribute']('todoListChecked')!=_0x4e1b48['value']),_0x3aee93['model']['change'](()=>{for(const _0x2c87cb of _0x3c0eea)_0xfa434d['markBlockFormat'](_0x2c87cb,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4e1b48['value']}]});});}),_0xfa434d['descriptionFactory']['registerElementLabel']('listItem',_0x14b85a=>o(_0x221c67,'ELEMENT_LIST_ITEM',_0x14b85a)),_0xfa434d['descriptionFactory']['registerDescriptionCallback'](_0x504cfd=>{if('formatBlock'!=_0x504cfd['type']&&'formatInline'!=_0x504cfd['type'])return;const {data:_0x30a925}=_0x504cfd;if(_0x30a925){if('numberedList'==_0x30a925['commandName']||'bulletedList'==_0x30a925['commandName']||'todoList'==_0x30a925['commandName'])switch(_0x30a925['commandName']['replace']('List','')){case'bulleted':return _0xf4932e(o(_0x221c67,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf4932e(o(_0x221c67,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf4932e(o(_0x221c67,'ELEMENT_TODO_LIST'));}if('indentList'==_0x30a925['commandName'])return{'type':'format','content':o(_0x221c67,'*Indent:*\x20%0',o(_0x221c67,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x30a925['commandName'])return{'type':'format','content':o(_0x221c67,'*Outdent:*\x20%0',o(_0x221c67,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x30a925['commandName'])return _0x30a925['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x221c67,'*Check\x20item*')}:{'type':'format','content':o(_0x221c67,'*Uncheck\x20item*')};}function _0xf4932e(_0x5d655f){return{'type':'format','content':o(_0x221c67,'*Change\x20to:*\x20%0',_0x5d655f)};}});}}function me(_0x1be74d){const _0x5189ee=_0x1be74d['getAttribute']('listIndent');if(0x0==_0x5189ee)return _0x1be74d;let _0x29adaa=_0x1be74d;for(;_0x1be74d['previousSibling']&&_0x1be74d['previousSibling']['is']('element','listItem');){const _0x1031fb=_0x1be74d['previousSibling']['getAttribute']('listIndent');if(_0x1031fb==_0x5189ee)_0x29adaa=_0x1be74d['previousSibling'];else{if(_0x1031fb<_0x5189ee)break;}_0x1be74d=_0x1be74d['previousSibling'];}return _0x29adaa;}function fe(_0x198158){const _0x43af32=[];if(_0x198158['is']('element','listItem')&&_0x198158['getAttribute']('listIndent')>0x0){let _0x189b5b=_0x198158['nextSibling'];for(;_0x189b5b&&'listItem'==_0x189b5b['name']&&_0x189b5b['getAttribute']('listIndent')==_0x198158['getAttribute']('listIndent');)_0x43af32['push'](_0x189b5b),_0x189b5b=_0x189b5b['nextSibling'];}return _0x43af32;}class K extends _0x1a1403{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2eecf2=this['editor']['config']['get']('list.properties'),_0x212e2f=this['editor']['plugins']['get']('TrackChangesEditing');_0x2eecf2['styles']&&_0x212e2f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2eecf2['reversed']&&_0x212e2f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2eecf2['startIndex']&&_0x212e2f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x212e2f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xf22fa0,_0x51b12a={}){const _0x6c2f61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x558610=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x6c2f61['markMultiRangeBlockFormat'](_0x558610,{'commandName':'listStyle','commandParams':[{'type':_0x51b12a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1a4585,_0x3497ea={}){const _0x167cea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e903b=this['_getSuggestionBlocks'](_0x1020dc=>_0x1020dc['is']('element','listItem')&&'numbered'===_0x1020dc['getAttribute']('listType'));if(_0x2e903b['length']<0x1)return;const _0x38c0fd=_0x2e903b['map'](_0x15dad5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15dad5,'before'),this['editor']['model']['createPositionAt'](_0x15dad5,0x0)));this['editor']['model']['change'](()=>{_0x167cea['markMultiRangeBlockFormat'](_0x38c0fd,{'commandName':'listReversed','commandParams':[{'reversed':_0x3497ea['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x11fb28,_0x3fb1f7={}){const _0x3843cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x796ff2=this['_getSuggestionBlocks'](_0x2b661e=>_0x2b661e['is']('element','listItem')&&'numbered'===_0x2b661e['getAttribute']('listType'));if(_0x796ff2['length']<0x1)return;const _0x3b960f=_0x796ff2['map'](_0x20a169=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x20a169,'before'),this['editor']['model']['createPositionAt'](_0x20a169,0x0)));this['editor']['model']['change'](()=>{_0x3843cf['markMultiRangeBlockFormat'](_0x3b960f,{'commandName':'listStart','commandParams':[{'startIndex':_0x3fb1f7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3c7af5){if('formatBlock'!=_0x3c7af5['type']&&'formatInline'!=_0x3c7af5['type'])return;const _0x2a56e3=this['editor']['locale'],{data:_0x6c106c}=_0x3c7af5;if(!_0x6c106c)return;let _0x2899f2,_0x57e102;switch(_0x6c106c['commandName']){case'listStyle':_0x2899f2='*Change\x20to:*\x20%0',_0x57e102={'type':'format','content':o(_0x2a56e3,_0x2899f2,o(_0x2a56e3,this['_getTranslationKeyForListStyle'](_0x6c106c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2899f2=_0x6c106c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x57e102={'type':'format','content':o(_0x2a56e3,_0x2899f2)};break;case'listStart':_0x2899f2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x57e102={'type':'format','content':o(_0x2a56e3,_0x2899f2,_0x6c106c['commandParams'][0x0]['startIndex'])};}return _0x57e102;}['_getSuggestionBlocksForListStyle'](){const _0x5e3f34=this['editor']['plugins']['get']('LegacyListUtils');let _0x44485e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x44485e[0x0]?.['is']('element','listItem')&&_0x44485e['unshift'](..._0x5e3f34['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x44485e[_0x44485e['length']-0x1]?.['is']('element','listItem')&&_0x44485e['push'](..._0x5e3f34['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x44485e=[...new Set(_0x44485e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x44485e=_0x44485e['filter'](_0x5d0c08=>_0x5d0c08['is']('element','listItem'))),_0x44485e;}['_getSuggestionBlocks'](_0x2a56d5){const _0x57d591=this['editor']['plugins']['get']('LegacyListUtils');let _0x112eb3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2a56d5)['map'](_0x521eb8=>{const _0x1e3118=this['editor']['model']['createPositionAt'](_0x521eb8,0x0);return[..._0x57d591['getSiblingNodes'](_0x1e3118,'backward'),..._0x57d591['getSiblingNodes'](_0x1e3118,'forward')];})['flat']();return _0x112eb3=[...new Set(_0x112eb3)],_0x112eb3;}['_getTranslationKeyForListStyle'](_0x4fb0df){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4fb0df)||'default')['toUpperCase']()+'_LIST_'+_0x4fb0df['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1a1403{['afterInit'](){const _0x57ae07=this['editor'];if(!_0x57ae07['plugins']['has']('MediaEmbedEditing'))return;const _0x44dcd7=_0x57ae07['plugins']['get']('TrackChangesEditing'),_0x235cfc=_0x57ae07['locale'];_0x44dcd7['enableCommand']('mediaEmbed'),_0x44dcd7['descriptionFactory']['registerElementLabel']('media',_0x3e4098=>o(_0x235cfc,'ELEMENT_MEDIA',_0x3e4098)),_0x57ae07['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x13f6e6,{writer:_0x1c0437,options:_0x101f3d})=>{if(_0x101f3d['showSuggestionHighlights'])return _0x1c0437['createEmptyElement']('div');},'converterPriority':'high'}),_0x57ae07['data']['downcastDispatcher']['on']('attribute:url:media',(_0x9ae15d,_0x14fbdc,_0xf23d97)=>{_0xf23d97['options']['showSuggestionHighlights']&&_0x9ae15d['stop']();},{'priority':'high'});}}class gt extends _0x1a1403{['afterInit'](){const _0x167498=this['editor'];_0x167498['plugins']['has']('MentionEditing')&&_0x167498['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1a1403{['afterInit'](){const _0x42c533=this['editor'],_0x73417f=_0x42c533['plugins']['get']('TrackChangesEditing');_0x42c533['plugins']['has']('MultiLevelList')&&(_0x73417f['enableDefaultAttributesIntegration']('multiLevelList'),_0x73417f['registerBlockAttribute']('listMarkerStyle'),_0x73417f['descriptionFactory']['registerDescriptionCallback'](_0x271e57=>this['handleDescriptions'](_0x271e57)));}['handleDescriptions'](_0x14e333){const _0x5a7e77=this['editor']['locale'],{data:_0x2c7bcd}=_0x14e333,_0x195b39={'type':'format','content':''};if(_0x2c7bcd&&'listMarkerStyle'==_0x2c7bcd['key']){if(!_0x2c7bcd['oldValue'])return{'type':'format','content':o(_0x5a7e77,'*Set\x20format:*\x20%0',o(_0x5a7e77,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2c7bcd['newValue']+')'};if(!_0x2c7bcd['newValue']){let _0x35ee85=_0x14e333['head'];for(;_0x35ee85;){if(_0x35ee85['data']&&'listType'==_0x35ee85['data']['key']&&_0x35ee85['data']['newValue'])return _0x195b39;_0x35ee85=_0x35ee85['next'];}return{'type':'format','content':o(_0x5a7e77,'*Remove\x20format:*\x20%0',o(_0x5a7e77,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2c7bcd['oldValue']+')'};}}}}class mt extends _0x1a1403{['afterInit'](){const _0x3a90d4=this['editor'];if(!_0x3a90d4['plugins']['has']('PageBreakEditing'))return;_0x3a90d4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x346785=_0x3a90d4['plugins']['get']('TrackChangesEditing'),_0x2514d4=_0x3a90d4['locale'];_0x346785['descriptionFactory']['registerElementLabel']('pageBreak',_0x2f5856=>o(_0x2514d4,'ELEMENT_PAGE_BREAK',_0x2f5856));}}class dt extends _0x1a1403{['afterInit'](){const _0x56b24e=this['editor'];if(!_0x56b24e['plugins']['has']('Paragraph'))return;const _0x159e56=_0x56b24e['locale'],_0x2906e2=_0x56b24e['plugins']['get']('TrackChangesEditing');_0x2906e2['descriptionFactory']['registerElementLabel']('paragraph',_0x5683c7=>o(_0x159e56,'ELEMENT_PARAGRAPH',_0x5683c7)),_0x2906e2['enableDefaultAttributesIntegration']('paragraph'),_0x2906e2['enableCommand']('insertParagraph'),_0x56b24e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x56b24e),{'priority':'highest'}),_0x56b24e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x397dda,_0x5b2fc9,_0x4b5524)=>{_0x4b5524['options']['showSuggestionHighlights']&&nr(_0x56b24e,{'showActiveMarker':!0x1})(_0x397dda,_0x5b2fc9,_0x4b5524);},{'priority':'highest'});const _0x2556ca=_0x2906e2['descriptionFactory'];_0x2556ca['registerDescriptionCallback'](_0x7a40a8=>{if('insertion'!==_0x7a40a8['type'])return;const {start:_0x2014cb,end:_0x1e1514}=_0x7a40a8['getFirstRange']();if(!_0x2014cb['isTouching'](_0x1e1514)||!_0x2014cb['nodeAfter'])return;const _0x2673b2=_0x56b24e['model']['schema'],_0x5bd2f8=_0x2014cb['nodeAfter'];return _0x2673b2['isBlock'](_0x5bd2f8)&&!_0x2673b2['isLimit'](_0x5bd2f8)&&_0x2673b2['checkChild'](_0x5bd2f8,'$text')?{'type':'insertion','content':o(_0x159e56,'*Insert:*\x20%0',_0x2556ca['getItemLabel'](_0x5bd2f8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x346f17=this['editor'],_0x3c80aa=_0x346f17['locale'];_0x346f17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfceed7=>{if('formatBlock'!=_0xfceed7['type'])return;const {data:_0x5da460}=_0xfceed7;return _0x5da460&&'paragraph'==_0x5da460['commandName']?{'type':'format','content':o(_0x3c80aa,'*Change\x20to:*\x20%0',o(_0x3c80aa,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x299602,{showActiveMarker:_0x386cd2=!0x0}={}){return(_0x5cc7b7,_0x1b1336,_0x17dd0d)=>{const _0x446320=_0x299602['plugins']['get']('TrackChangesEditing'),_0x2a49c3=_0x1b1336['markerRange']['start'],_0x5248a8=_0x1b1336['markerRange']['end'],_0x3495c1=_0x299602['model']['schema'];if(!_0x2a49c3['isTouching'](_0x5248a8)||!_0x2a49c3['nodeAfter'])return;const _0x24b005=_0x2a49c3['nodeAfter'];if(_0x3495c1['isBlock'](_0x24b005)&&!_0x3495c1['isLimit'](_0x24b005)&&_0x3495c1['checkChild'](_0x24b005,'$text')){if(!_0x17dd0d['consumable']['consume'](_0x1b1336['markerRange'],_0x5cc7b7['name']))return;const _0x967c2b=_0x17dd0d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x4dc87d=_0x17dd0d['mapper']['toViewPosition'](_0x5248a8);_0x386cd2&&_0x446320['activeMarkers']['includes'](_0x1b1336['markerName'])&&_0x17dd0d['writer']['addClass']('ck-suggestion-marker--active',_0x967c2b),_0x17dd0d['writer']['insert'](_0x4dc87d,_0x967c2b),_0x17dd0d['mapper']['bindElementToMarker'](_0x967c2b,_0x1b1336['markerName']);}};}class pt extends _0x1a1403{['afterInit'](){const _0x428796=this['editor'];if(!_0x428796['plugins']['has']('RemoveFormatEditing'))return;_0x428796['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb00678=this['editor'];_0xb00678['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b7a94=>{if('formatBlock'!=_0x3b7a94['type']&&'formatInline'!=_0x3b7a94['type'])return;const {data:_0x105876}=_0x3b7a94;return _0x105876&&'removeFormat'==_0x105876['commandName']?{'type':'format','content':o(_0xb00678['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1a1403{['afterInit'](){const _0x35b82b=this['editor'];if(!_0x35b82b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x548af4=_0x35b82b['plugins']['get']('TrackChangesEditing');_0x548af4['enableCommand']('goToPreviousRestrictedEditingException'),_0x548af4['enableCommand']('goToNextRestrictedEditingException');const _0x280dea=_0x35b82b['plugins']['get']('RestrictedEditingModeEditing');_0x280dea['enableCommand']('trackChanges'),_0x280dea['enableCommand']('acceptSuggestion'),_0x280dea['enableCommand']('discardSuggestion'),_0x280dea['enableCommand']('acceptAllSuggestions'),_0x280dea['enableCommand']('discardAllSuggestions'),_0x280dea['enableCommand']('acceptSelectedSuggestions'),_0x280dea['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1a1403{static get['requires'](){return[_0xeb3b96];}['init'](){const _0x4eb7f3=this['editor'],_0xf7074f=_0x4eb7f3['plugins']['get']('TrackChangesEditing');_0xf7074f['enableCommand']('shiftEnter'),_0x4eb7f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x4eb7f3),{'priority':'high'}),_0x4eb7f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x4eb7f3),{'priority':'high'}),_0x4eb7f3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x449c17,_0x277227,_0x4f122d)=>{_0x4f122d['options']['showSuggestionHighlights']&&de(_0x4eb7f3,{'showActiveMarker':!0x1})(_0x449c17,_0x277227,_0x4f122d);}),_0xf7074f['descriptionFactory']['registerElementLabel']('softBreak',_0x5d50b7=>o(_0x4eb7f3['locale'],'ELEMENT_LINE_BREAK',_0x5d50b7));}}function de(_0x1697e1,{showActiveMarker:_0x3d4ad8=!0x0}={}){return(_0x446af9,_0x16339e,_0x5bebd7)=>{const _0x12bb15=_0x1697e1['plugins']['get']('TrackChangesEditing');if(!_0x5bebd7['consumable']['test'](_0x16339e['markerRange'],_0x446af9['name']))return;const _0x4f5527=_0x1697e1['model'];for(const _0x1bdc60 of _0x16339e['markerRange']['getItems']()){if(!_0x1bdc60['is']('element','softBreak'))continue;const _0x149d6b='deletion'==_0x16339e['markerName']['split'](':')[0x1]?'merge':'split',_0x13cfb6=_0x5bebd7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x149d6b}),_0x3e7489=_0x5bebd7['mapper']['toViewPosition'](_0x4f5527['createPositionBefore'](_0x1bdc60));_0x3d4ad8&&_0x12bb15['activeMarkers']['includes'](_0x16339e['markerName'])&&_0x5bebd7['writer']['addClass']('ck-suggestion-marker--active',_0x13cfb6),_0x5bebd7['writer']['insert'](_0x3e7489,_0x13cfb6),_0x5bebd7['mapper']['bindElementToMarker'](_0x13cfb6,_0x16339e['markerName']);}};}class wt extends _0x1a1403{['afterInit'](){const _0x5cb47e=this['editor'],_0x201f5e=_0x5cb47e['model'],_0x4c10b4=_0x5cb47e['locale'];if(!_0x5cb47e['plugins']['has']('StandardEditingModeEditing'))return;const _0x4a232c=_0x5cb47e['plugins']['get']('TrackChangesEditing'),_0x123ebe='restrictedEditingException',_0x473a61=_0x5cb47e['commands']['get'](_0x123ebe);_0x4a232c['enableCommand'](_0x123ebe,(_0x5595c0,_0x55c0cf={})=>{const _0x1c4db2=_0x201f5e['document']['selection'];if(_0x1c4db2['isCollapsed'])return void _0x5595c0(_0x55c0cf);const _0x521d18=void 0x0!==_0x55c0cf['forceValue']?_0x55c0cf['forceValue']:!_0x473a61['value'];_0x201f5e['change'](()=>{const _0xdf457b=Array['from'](_0x1c4db2['getRanges']());for(const _0x22e2d0 of _0xdf457b){const _0x31ef79=_0x521d18?[_0x22e2d0]:io(_0x123ebe,_0x22e2d0,_0x201f5e);for(const _0x2e2214 of _0x31ef79)_0x4a232c['markInlineFormat'](_0x2e2214,{'commandName':_0x123ebe,'commandParams':[{'forceValue':_0x521d18}]});}});}),_0x4a232c['descriptionFactory']['registerDescriptionCallback'](_0x1ad173=>{if('formatBlock'!=_0x1ad173['type']&&'formatInline'!=_0x1ad173['type'])return;const {data:_0x5dd3f6}=_0x1ad173;return _0x5dd3f6&&_0x5dd3f6['commandName']==_0x123ebe?_0x5dd3f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c10b4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4c10b4,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1a1403{['afterInit'](){const _0x53e7f0=this['editor'];if(!_0x53e7f0['plugins']['has']('Style')||!_0x53e7f0['plugins']['has']('DataSchema'))return;const _0x1f4e7d=_0x53e7f0['plugins']['get']('TrackChangesEditing'),_0x1c097a=_0x53e7f0['locale'],_0x13eb72=_0x53e7f0['config']['get']('style')||{},_0x5aa7f0=_0x53e7f0['plugins']['get']('GeneralHtmlSupport'),_0x57de99=_0x53e7f0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x53e7f0['plugins']['get']('DataSchema'),_0x13eb72['definitions']);_0x1f4e7d['enableDefaultAttributesIntegration']('style');const _0x104d86=new Set();for(const _0x1ae1ae of _0x57de99['block']){const _0x16b404=_0x5aa7f0['getGhsAttributeNameForElement'](_0x1ae1ae['element']);_0x104d86['add'](_0x16b404);}const _0x2ee9b3=new Set();for(const _0x2e93b3 of _0x57de99['inline']){const _0x17d785=_0x5aa7f0['getGhsAttributeNameForElement'](_0x2e93b3['element']);_0x2ee9b3['add'](_0x17d785);for(const _0x35232a of _0x2e93b3['ghsAttributes'])_0x2ee9b3['add'](_0x35232a);}for(const _0x5301b7 of _0x104d86)_0x1f4e7d['registerBlockAttribute'](_0x5301b7),_0x1f4e7d['descriptionFactory']['registerAttributeLabel'](_0x5301b7,o(_0x1c097a,'FORMAT_STYLE'));for(const _0x4968bf of _0x2ee9b3)_0x1f4e7d['registerInlineAttribute'](_0x4968bf),_0x1f4e7d['descriptionFactory']['registerAttributeLabel'](_0x4968bf,o(_0x1c097a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f26dd=this['editor'],_0x186007=_0x4f26dd['locale'];_0x4f26dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55d00d=>{if('formatBlock'!=_0x55d00d['type']&&'formatInline'!=_0x55d00d['type'])return;const {data:_0x4c4070}=_0x55d00d;return _0x4c4070&&'style'===_0x4c4070['commandName']?_0x4c4070['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x186007,'*Set\x20format:*\x20%0',_0x4c4070['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x186007,'*Remove\x20format:*\x20%0',_0x4c4070['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1a1403{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x805189){super(_0x805189),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1cb325=this['editor'],_0x3a0c34=_0x1cb325['model']['document']['selection'];if(!_0x1cb325['plugins']['has']('TableEditing'))return;const _0x310059=_0x1cb325['locale'],_0x9d8223=_0x1cb325['plugins']['get']('TrackChangesEditing'),_0x5dcd3a=_0x1cb325['plugins']['get']('TableUtils');_0x9d8223['descriptionFactory']['registerElementLabel']('table',_0x396efa=>o(_0x310059,'ELEMENT_TABLE',_0x396efa)),this['_setupColumnsRowsFixing'](),_0x9d8223['enableCommand']('insertTable'),_0x9d8223['enableCommand']('selectTableRow'),_0x9d8223['enableCommand']('selectTableColumn');for(const _0x61db59 of['insertTableRowAbove','insertTableRowBelow']){const _0x15253b=_0x1cb325['commands']['get'](_0x61db59);_0x9d8223['enableCommand'](_0x61db59,_0x6a6d91=>{_0x1cb325['model']['change'](_0x1bbd0a=>{_0x6a6d91();const _0x36d707='above'===_0x15253b['order'],_0x2da5d0=_0x5dcd3a['getSelectionAffectedTableCells'](_0x3a0c34),_0x398b65=_0x5dcd3a['getRowIndexes'](_0x2da5d0),_0x47d15c=_0x36d707?_0x398b65['first']-0x1:_0x398b65['last']+0x1,_0x4d75d4=_0x2da5d0[0x0]['findAncestor']('table'),_0x325071=_0x5dcd3a['createTableWalker'](_0x4d75d4,{'startRow':_0x47d15c,'endRow':_0x47d15c}),_0x41ae72=Array['from'](_0x325071)['map'](_0x32c384=>_0x1bbd0a['createRangeOn'](_0x32c384['cell']));_0x9d8223['markMultiRangeInsertion'](_0x41ae72,'tableRow');});});}for(const _0x5a514a of['insertTableColumnLeft','insertTableColumnRight']){const _0x603a2f=_0x1cb325['commands']['get'](_0x5a514a);_0x9d8223['enableCommand'](_0x5a514a,_0x3bf1ea=>{_0x1cb325['model']['change'](_0x8d784a=>{_0x3bf1ea();const _0x564b42='left'===_0x603a2f['order'],_0x5f3c5f=_0x5dcd3a['getSelectionAffectedTableCells'](_0x3a0c34),_0x5af5ce=_0x5dcd3a['getColumnIndexes'](_0x5f3c5f),_0x700e0b=_0x564b42?_0x5af5ce['first']-0x1:_0x5af5ce['last']+0x1,_0x365671=_0x5f3c5f[0x0]['findAncestor']('table'),_0x2f60ec=_0x5dcd3a['createTableWalker'](_0x365671,{'startRow':0x0,'column':_0x700e0b,'includeAllSlots':!0x1}),_0x3b01f7=Array['from'](_0x2f60ec)['map'](_0x8a2bac=>_0x8d784a['createRangeOn'](_0x8a2bac['cell']));_0x9d8223['markMultiRangeInsertion'](_0x3b01f7,'tableColumn');});});}for(const _0x4c7459 of['removeTableRow','removeTableColumn']){const _0x4c6066=_0x4c7459['substr'](0xb),_0xfa1895=_0x4c6066['toLowerCase'](),_0x1cdaf0=_0xfa1895['substr'](0x0,0x3)+'span',_0x1be99e='table'+_0x4c6066,_0x3bb7b0='min'+_0x4c6066,_0x4dfc58='max'+_0x4c6066;_0x9d8223['enableCommand'](_0x4c7459,()=>{_0x1cb325['model']['change'](_0x57f992=>{const _0x16d484=_0x5dcd3a['getSelectionAffectedTableCells'](_0x3a0c34),_0x682d64=_0x16d484[0x0]['findAncestor']('table');let _0x1c30ee;if('removeTableRow'==_0x4c7459){const _0xe17945=_0x5dcd3a['getRowIndexes'](_0x16d484);_0x1c30ee={'startRow':_0xe17945['first'],'endRow':_0xe17945['last'],'includeAllSlots':!0x0};}else{const _0x23c60c=_0x5dcd3a['getColumnIndexes'](_0x16d484);_0x1c30ee={'startColumn':_0x23c60c['first'],'endColumn':_0x23c60c['last'],'includeAllSlots':!0x0};}const _0x5bc2b5=_0x5dcd3a['createTableWalker'](_0x682d64,_0x1c30ee),_0x4f3eb3=Array['from'](_0x5bc2b5)['map'](({cell:_0x12e292})=>_0x12e292),_0x4e6fd4=Ee(_0x4f3eb3['filter'](_0x1dc7e9=>_0x1dc7e9['hasAttribute'](_0x1cdaf0))),_0x198d79=Ee(_0x4f3eb3['filter'](_0x5917e4=>!_0x5917e4['hasAttribute'](_0x1cdaf0)))['map'](_0x52aab3=>_0x57f992['createRangeOn'](_0x52aab3)),_0x1c0287=_0x9d8223['markMultiRangeDeletion'](_0x198d79,_0x1be99e);if(_0x1c0287&&('tableRow'==_0x1c0287['subType']||'tableColumn'==_0x1c0287['subType'])){const _0x4f3152=this['_getSuggestionCoords'](_0x1c0287);for(const _0x236438 of _0x4e6fd4){const _0x25e4ee=_0x57f992['createRangeOn'](_0x236438),_0x57c1d7=_0x5dcd3a['getCellLocation'](_0x236438),_0x485b17=_0x236438['getAttribute'](_0x1cdaf0)-0x1,_0x4e22e7=_0x4f3152[_0x3bb7b0],_0xcb810=_0x4f3152[_0x4dfc58];_0x4e22e7<=_0x57c1d7[_0xfa1895]&&_0x57c1d7[_0xfa1895]+_0x485b17<=_0xcb810&&_0x1c0287['addRange'](_0x25e4ee);}}});});}function _0x3b93a7(_0x4a77de){const _0x497723=Array['from'](_0x3a0c34['getRanges']())['map'](_0x2df371=>_0x2a1164['fromRange'](_0x2df371));_0x1cb325['model']['change'](_0x1240b1=>{const _0x502bce=_0x1240b1['batch'];_0x4a77de=_0x4a77de['filter'](_0x59db4e=>'$graveyard'!=_0x59db4e['root']['rootName']),_0x1240b1['setSelection'](_0x4a77de),_0x1cb325['commands']['get']('removeTableRow')['refresh'](),_0x1cb325['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1cb325['model']['enqueueChange'](()=>{_0x1cb325['model']['enqueueChange'](_0x502bce,_0x1be81e=>{const _0x1f7ce6=_0x497723['filter'](_0x2cc9b8=>'$graveyard'!=_0x2cc9b8['root']['rootName']);_0x1f7ce6['length']>0x0&&_0x1be81e['setSelection'](_0x1f7ce6);for(const _0x9e761e of _0x497723)_0x9e761e['detach']();});});});}function _0x59035b(_0x26a522){_0x1cb325['model']['change'](_0x45a50d=>{const _0x242c57=Array['from'](_0x3a0c34['getRanges']())['map'](_0x49d36f=>_0x2a1164['fromRange'](_0x49d36f)),_0x1de6de=[];for(const _0x38f1d5 of _0x26a522)for(const _0x51d2a7 of _0x38f1d5['getItems']({'shallow':!0x0}))_0x1de6de['push'](_0x51d2a7);for(const _0x14a84e of _0x1de6de)'$graveyard'!=_0x14a84e['root']['rootName']&&(_0x45a50d['setSelection'](_0x45a50d['createPositionAt'](_0x14a84e,0x0)),_0x1cb325['commands']['get']('removeTableColumn')['refresh'](),_0x1cb325['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2c5f72=_0x242c57['filter'](_0x1b081b=>'$graveyard'!=_0x1b081b['root']['rootName']);_0x2c5f72['length']>0x0&&_0x45a50d['setSelection'](_0x2c5f72);for(const _0x1f57d8 of _0x242c57)_0x1f57d8['detach']();});}function _0x7e857(_0x4c01e9,_0x5f1364){return _0x5f1364['every'](_0x1e1167=>_0x4c01e9['some'](_0x200053=>_0x200053['end']['isEqual'](_0x1e1167['start'])||_0x1e1167['end']['isEqual'](_0x200053['start'])));}function _0x7cf79f(_0x1a0a01,_0x2def47){return!_0x1a0a01['some'](_0x56602d=>_0x2def47['some'](_0x1f8c8b=>_0x56602d['isIntersecting'](_0x1f8c8b)))&&_0x1a0a01['some'](_0x193add=>_0x2def47['some'](_0x534b27=>_0x193add['end']['isTouching'](_0x534b27['start'])));}_0x1cb325['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x48dc7f,_0x5843be,_0xaef0ca)=>{if(!_0xaef0ca['options']['showSuggestionHighlights'])return;const _0x2acbb8=_0x5843be['item'];if(!_0x2acbb8)return;const _0x24e0a6=_0xaef0ca['mapper']['toViewElement'](_0x2acbb8);function _0x2e2478(_0xdf704c){return Array['isArray'](_0xdf704c)?_0xdf704c:[_0xdf704c];}_0x24e0a6&&'tableCell'===_0x2acbb8['name']&&_0x2ee596(_0x24e0a6,_0xaef0ca['writer'],(_0x474f31,_0x348891,_0x807506)=>_0x807506['addClass'](_0x2e2478(_0x348891['classes']),_0x474f31),(_0x122684,_0x1bbba3,_0x54f5c5)=>_0x54f5c5['removeClass'](_0x2e2478(_0x1bbba3['classes']),_0x122684));},{'priority':'highest'}),_0x9d8223['descriptionFactory']['registerDescriptionCallback'](_0x3e68e4=>{if('insertion'!=_0x3e68e4['type']&&'deletion'!=_0x3e68e4['type'])return;const _0x392fb2=_0x3e68e4['getContainedElement']();if(null!=_0x392fb2&&_0x392fb2['is']('element','table')){if('insertion'==_0x3e68e4['type']){const _0x504981=_0x3e68e4['getItems']()['filter'](_0x3c5eff=>_0x3c5eff['is']('$textProxy'))['map'](_0x28fb3d=>_0x28fb3d['data']);if(_0x504981['length'])return{'type':'insertion','content':o(_0x310059,'*Insert:*\x20%0',o(_0x310059,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x504981['join']('\x20')+'\x22'))};}if('deletion'==_0x3e68e4['type']){const _0x438fcc=_0x3e68e4['getItems']()['filter'](_0x2ccb4e=>_0x2ccb4e['is']('$textProxy'))['map'](_0x5099c5=>_0x5099c5['data']);if(_0x438fcc['length'])return{'type':'deletion','content':o(_0x310059,'*Remove:*\x20%0',o(_0x310059,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x438fcc['join']('\x20')+'\x22'))};}}}),_0x9d8223['descriptionFactory']['registerDescriptionCallback'](_0x54e6e4=>{if('tableRow'==_0x54e6e4['subType']){const _0x486369=_0x54e6e4['getItems']()['filter'](_0x2ae483=>_0x2ae483['is']('$textProxy'))['map'](_0x4aea55=>_0x4aea55['data']),_0x1ee090=this['_getSuggestionCoords'](_0x54e6e4),_0x3213f5=_0x1ee090['maxRow']-_0x1ee090['minRow']+0x1;if('insertion'==_0x54e6e4['type'])return _0x486369['length']?{'type':'insertion','content':o(_0x310059,'*Insert:*\x20%0',o(_0x310059,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3213f5,'\x22'+_0x486369['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x310059,'*Insert:*\x20%0',o(_0x310059,'ELEMENT_TABLE_ROW',_0x3213f5))};if('deletion'==_0x54e6e4['type'])return _0x486369['length']?{'type':'deletion','content':o(_0x310059,'*Remove:*\x20%0',o(_0x310059,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3213f5,'\x22'+_0x486369['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x310059,'*Remove:*\x20%0',o(_0x310059,'ELEMENT_TABLE_ROW',_0x3213f5))};}if('tableColumn'==_0x54e6e4['subType']){const _0x1e511c=_0x54e6e4['getItems']()['filter'](_0x37edf0=>_0x37edf0['is']('$textProxy'))['map'](_0x2cd718=>_0x2cd718['data']),_0x66bcb4=this['_getSuggestionCoords'](_0x54e6e4),_0xfc9773=_0x66bcb4['maxColumn']-_0x66bcb4['minColumn']+0x1;if('insertion'==_0x54e6e4['type'])return _0x1e511c['length']?{'type':'insertion','content':o(_0x310059,'*Insert:*\x20%0',o(_0x310059,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xfc9773,'\x22'+_0x1e511c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x310059,'*Insert:*\x20%0',o(_0x310059,'ELEMENT_TABLE_COLUMN',_0xfc9773))};if('deletion'==_0x54e6e4['type'])return _0x1e511c['length']?{'type':'deletion','content':o(_0x310059,'*Remove:*\x20%0',o(_0x310059,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xfc9773,'\x22'+_0x1e511c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x310059,'*Remove:*\x20%0',o(_0x310059,'ELEMENT_TABLE_COLUMN',_0xfc9773))};}}),_0x9d8223['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3b93a7),_0x9d8223['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3b93a7),_0x9d8223['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x59035b),_0x9d8223['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x59035b),_0x9d8223['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x7e857),_0x9d8223['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x7e857),_0x9d8223['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x7cf79f),_0x9d8223['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x7cf79f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2f3012=this['editor'],_0x24ea3c=_0x2f3012['model']['document']['selection'];return(_0x2f9a9b,_0x536153)=>{_0x2f3012['model']['change'](_0xd0f528=>{const {commandName:_0x48321a,commandParams:_0x44f0a0}=_0x536153;let _0x41d67e=_0x2f9a9b[0x0]['end']['nodeBefore'];_0x44f0a0&&_0x44f0a0[0x0]&&!0x1===_0x44f0a0[0x0]['forceValue']&&(_0x41d67e=_0x2f9a9b[0x0]['start']['nodeAfter']);const _0x530032=_0xd0f528['createRangeIn'](_0x41d67e);if('$graveyard'==_0x530032['root']['rootName'])return;const _0x32a782=Array['from'](_0x24ea3c['getRanges']())['map'](_0x5c6872=>_0x2a1164['fromRange'](_0x5c6872));_0xd0f528['setSelection'](_0x530032),_0x2f3012['commands']['get'](_0x48321a)['refresh'](),_0x44f0a0['push']({'forceDefaultExecution':!0x0}),_0x2f3012['execute'](_0x48321a,..._0x44f0a0);const _0x580b54=_0x32a782['filter'](_0x3d4e81=>'$graveyard'!=_0x3d4e81['root']['rootName']);_0x580b54['length']>0x0&&_0xd0f528['setSelection'](_0x580b54);for(const _0x41bd9c of _0x32a782)_0x41bd9c['detach']();});};}['_getCoordsForCells'](_0x15c812){const _0x1be517=this['editor']['plugins']['get']('TableUtils');let _0x4d50ba=Number['MAX_SAFE_INTEGER'],_0x3e5d84=Number['MIN_SAFE_INTEGER'],_0xfc127c=Number['MAX_SAFE_INTEGER'],_0x1cc582=Number['MIN_SAFE_INTEGER'];for(const _0x28f12a of _0x15c812){if('$graveyard'==_0x28f12a['root']['rootName'])continue;const {row:_0x20bb46,column:_0xf85f13}=_0x1be517['getCellLocation'](_0x28f12a),_0x250895=_0x28f12a['hasAttribute']('rowspan')?_0x28f12a['getAttribute']('rowspan')-0x1:0x0,_0x4112fd=_0x28f12a['hasAttribute']('colspan')?_0x28f12a['getAttribute']('colspan')-0x1:0x0;_0x4d50ba=_0x20bb46<_0x4d50ba?_0x20bb46:_0x4d50ba,_0x3e5d84=_0x20bb46+_0x250895>_0x3e5d84?_0x20bb46+_0x250895:_0x3e5d84,_0xfc127c=_0xf85f13<_0xfc127c?_0xf85f13:_0xfc127c,_0x1cc582=_0xf85f13+_0x4112fd>_0x1cc582?_0xf85f13+_0x4112fd:_0x1cc582;}return{'minRow':_0x4d50ba,'maxRow':_0x3e5d84,'minColumn':_0xfc127c,'maxColumn':_0x1cc582};}['_setupColumnsRowsFixing'](){const _0x497c22=this['editor'],_0x192411=_0x497c22['plugins']['get']('TrackChangesEditing'),_0x2804e2=_0x497c22['plugins']['get']('TableUtils');_0x497c22['model']['document']['on']('change:data',()=>{const _0x4152db=Array['from'](_0x497c22['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e2125,data:_0x2238bd}of _0x4152db){const {group:_0x254426,id:_0x547729,subType:_0x5c8586}=_0x192411['_splitMarkerName'](_0x4e2125);if('suggestion'!=_0x254426)continue;if(null!=_0x2238bd['oldRange'])continue;const _0x2417cb=_0x192411['getSuggestion'](_0x547729);this['_tablePostFixingSubtypes']['includes'](_0x5c8586)&&this['_tableSuggestions']['add'](_0x2417cb);}},{'priority':'low'});const _0x3bf7a2=(_0x4e39a0,_0x31abcd)=>{let _0x29a9ea=!0x1;const _0x513db6=_0x31abcd['createRangeOn'](_0x4e39a0),_0x103a11=_0x4e39a0['findAncestor']('table'),_0x9b1dba=_0x2804e2['getCellLocation'](_0x4e39a0);for(const _0x4684e1 of this['_tableSuggestions']){const _0x3b1ef3=_0x4684e1['subType'],_0x569ab2=_0x3b1ef3['startsWith']('tablePaste'),_0x1e1b1f=_0x3b1ef3['substr'](_0x569ab2?0xa:0x5),_0x2a8bde=_0x1e1b1f['toLowerCase'](),_0x48e857=_0x2a8bde['substr'](0x0,0x3)+'span',_0x1566f4='min'+_0x1e1b1f,_0x614096='max'+_0x1e1b1f;if(!_0x4684e1['isInContent'])continue;if(_0x103a11!=_0x4684e1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4684e1['isIntersectingWithRange'](_0x513db6))continue;const _0x4df61a=_0x4e39a0['hasAttribute'](_0x48e857)?_0x4e39a0['getAttribute'](_0x48e857)-0x1:0x0,_0x2a48dc=this['_getSuggestionCoords'](_0x4684e1),_0x10b8e6=_0x2a48dc[_0x1566f4],_0x38428a=_0x2a48dc[_0x614096];_0x10b8e6<=_0x9b1dba[_0x2a8bde]&&_0x9b1dba[_0x2a8bde]+_0x4df61a<=_0x38428a&&(_0x4684e1['addRange'](_0x513db6),_0x29a9ea=!0x0);}return _0x29a9ea;};_0x497c22['model']['document']['registerPostFixer'](_0x1f26e0=>{let _0x559076=!0x1;for(const _0x1bbe8a of _0x497c22['model']['document']['differ']['getChanges']())if('insert'==_0x1bbe8a['type']){if('tableRow'==_0x1bbe8a['name']){for(const _0x1608c3 of _0x1bbe8a['position']['nodeAfter']['getChildren']())_0x559076=_0x559076||_0x3bf7a2(_0x1608c3,_0x1f26e0);}else'tableCell'==_0x1bbe8a['name']&&(_0x559076=_0x559076||_0x3bf7a2(_0x1bbe8a['position']['nodeAfter'],_0x1f26e0));}return _0x559076;});}['_getSuggestionCoords'](_0xf1afd5){return this['_getCoordsForCells'](_0xf1afd5['getRanges']()['map'](_0x11117c=>_0x11117c['start']['nodeAfter']));}}function Ee(_0x54e579){return Array['from'](new Set(_0x54e579)['values']());}class St extends _0x1a1403{static get['requires'](){return[jt];}['afterInit'](){const _0x1bbad3=this['editor'],_0x1691e8=_0x1bbad3['model']['document']['selection'],_0x1a87f1=_0x1bbad3['locale'];if(!_0x1bbad3['plugins']['has']('TableEditing'))return;const _0x36c366=_0x1bbad3['plugins']['get']('TrackChangesEditing'),_0x3393fb=_0x1bbad3['plugins']['get']('TableUtils'),_0x326abb=_0x1bbad3['plugins']['get'](jt);_0x326abb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x36c366['enableCommand']('mergeTableCells',()=>{const _0x509702=_0x3393fb['getSelectionAffectedTableCells'](_0x1bbad3['model']['document']['selection']);_0x1bbad3['model']['change'](()=>{_0x36c366['markMultiRangeBlockFormat'](_0x509702,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1bbad3['commands']['get']('mergeTableCells')['on']('execute',(_0x3de723,_0x5ed0aa)=>{_0x1bbad3['commands']['get']('trackChanges')['value']&&(_0x5ed0aa['length']>0x0&&_0x5ed0aa[_0x5ed0aa['length']-0x1]&&_0x5ed0aa[_0x5ed0aa['length']-0x1]['forceDefaultExecution']||_0x36c366['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3de723['stop']());},{'priority':'highest'});for(const _0x236dfc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x333e65=_0x1bbad3['commands']['get'](_0x236dfc);_0x36c366['enableCommand'](_0x236dfc,()=>{const _0x13c496=_0x1bbad3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1948ca=>_0x1948ca['is']('element','tableCell')),_0x52dd20=_0x333e65['value'];_0x1bbad3['model']['change'](()=>{_0x36c366['markMultiRangeBlockFormat']([_0x13c496,_0x52dd20],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1f145f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3396be=_0x1bbad3['commands']['get'](_0x1f145f);_0x36c366['enableCommand'](_0x1f145f,()=>{const _0xcda804=_0x3393fb['getSelectionAffectedTableCells'](_0x1bbad3['model']['document']['selection'])[0x0],_0xec1731=_0xcda804['findAncestor']('table'),{column:_0x32c633,row:_0x389a1f}=_0x3393fb['getCellLocation'](_0xcda804);let _0x30afbf=[];if('horizontally'==_0x3396be['direction']){const _0x2368f6=_0x3393fb['createTableWalker'](_0xec1731,{'startRow':_0x389a1f,'endRow':_0x389a1f,'includeAllSlots':!0x0});_0x30afbf=Array['from'](_0x2368f6)['map'](_0x80c90d=>_0x80c90d['cell']);}else{const _0x2067a1=_0x3393fb['createTableWalker'](_0xec1731,{'column':_0x32c633,'includeAllSlots':!0x0});_0x30afbf=Array['from'](_0x2067a1)['map'](_0x1434fc=>_0x1434fc['cell']);}_0x1bbad3['model']['change'](_0x587cc8=>{_0x36c366['markBlockFormat'](_0x587cc8['createRangeOn'](_0xcda804),{'commandName':_0x1f145f,'commandParams':[]},_0x30afbf,_0x1f145f);});});}_0x36c366['descriptionFactory']['registerDescriptionCallback'](_0x307f77=>{if('formatBlock'!=_0x307f77['type']&&'formatInline'!=_0x307f77['type'])return;const {data:_0x3db75f}=_0x307f77;return _0x3db75f&&'mergeTableCells'==_0x3db75f['commandName']?{'type':'format','content':o(_0x1a87f1,'*Merge\x20cells*')}:void 0x0;}),_0x36c366['descriptionFactory']['registerDescriptionCallback'](_0x4eef43=>{if('formatBlock'!=_0x4eef43['type']&&'formatInline'!=_0x4eef43['type'])return;const {data:_0x27c1cb}=_0x4eef43;return _0x27c1cb?'splitTableCellVertically'==_0x27c1cb['commandName']?{'type':'format','content':o(_0x1a87f1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x27c1cb['commandName']?{'type':'format','content':o(_0x1a87f1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x173fa0=_0x326abb['_acceptFormatSuggestionCallbackFactory']();for(const _0x1fc410 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x36c366['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1fc410,'accept',_0x173fa0);for(const _0x3743d1 of['splitTableCellVertically','splitTableCellHorizontally'])_0x36c366['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3743d1,'accept',_0x173fa0);_0x36c366['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1610c0=>{_0x1bbad3['model']['change'](_0x18dc95=>{const _0x5ad2f9=Array['from'](_0x1691e8['getRanges']())['map'](_0x6849d7=>_0x2a1164['fromRange'](_0x6849d7));_0x18dc95['setSelection'](_0x1610c0),_0x1bbad3['commands']['get']('mergeTableCells')['refresh'](),_0x1bbad3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x39f0fd=_0x5ad2f9['filter'](_0x568675=>'$graveyard'!=_0x568675['root']['rootName']);_0x39f0fd['length']>0x0&&_0x18dc95['setSelection'](_0x39f0fd);for(const _0x383a71 of _0x5ad2f9)_0x383a71['detach']();});});for(const _0x5c5552 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x38d08c=_0x1bbad3['commands']['get'](_0x5c5552);_0x38d08c['on']('set:isEnabled',(_0x587fc5,_0x588deb,_0x1044e7)=>{if(_0x1044e7){const _0x593d3f=_0x1bbad3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1da536=>_0x1da536['is']('element','tableCell'));this['_areMergableCells'](_0x38d08c['value'],_0x593d3f)||(_0x587fc5['return']=!0x1,_0x587fc5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x44e67b=this['editor']['commands']['get']('mergeTableCells'),_0x3b85a7=this['editor']['plugins']['get']('TableUtils');if(!_0x44e67b['isEnabled'])return!0x1;const _0x3f6770=_0x3b85a7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4c7c63 of _0x3f6770)for(const _0x22e7f3 of _0x3f6770)if(_0x4c7c63!=_0x22e7f3&&!this['_areMergableCells'](_0x4c7c63,_0x22e7f3))return!0x1;return!0x0;}['_areMergableCells'](_0xbc42c5,_0x1a488f){const _0x2c82fe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1abc88=this['editor']['model']['createRangeOn'](_0xbc42c5),_0x123597=this['editor']['model']['createRangeOn'](_0x1a488f),_0x31fa36=new Set(),_0x23474f=new Set();for(const _0x2fa731 of _0x2c82fe['getSuggestions']())if(('insertion'==_0x2fa731['type']||'deletion'==_0x2fa731['type']||'mergeTableCells'==_0x2fa731['subType'])&&_0x2fa731['isInContent']){for(const _0x58a29f of _0x2fa731['getRanges']())_0x58a29f['containsRange'](_0x1abc88,!0x0)&&_0x31fa36['add'](_0x2fa731['type']+':'+_0x2fa731['author']['id']),_0x58a29f['containsRange'](_0x123597,!0x0)&&_0x23474f['add'](_0x2fa731['type']+':'+_0x2fa731['author']['id']);}if(_0x31fa36['size']!=_0x23474f['size'])return!0x1;for(const _0x53c327 of _0x31fa36)if(!_0x23474f['has'](_0x53c327))return!0x1;return!0x0;}}class At extends _0x1a1403{static get['requires'](){return[jt];}['afterInit'](){const _0x2e1e42=this['editor'];if(!_0x2e1e42['plugins']['has']('TableEditing'))return;const _0x3afbbf=_0x2e1e42['locale'],_0x46cd4b=_0x2e1e42['plugins']['get']('TrackChangesEditing');_0x46cd4b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x46cd4b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x46cd4b['registerBlockAttribute']('headingRows'),_0x46cd4b['registerBlockAttribute']('headingColumns'),_0x46cd4b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3afbbf,'FORMAT_HEADER_ROW')),_0x46cd4b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3afbbf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f1903=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e3e9b=this['editor']['plugins']['get']('TableUtils'),_0x125142=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x1ef916({showActiveMarker:_0x246fe2=!0x0,setDataAttribute:_0x9b1a2c=!0x0}={}){return(_0x52e6f7,_0x568ae1,_0x4a8d97)=>{const {type:_0xaf412f,id:_0x3476ce}=_0x3f1903['_splitMarkerName'](_0x568ae1['markerName']),_0x3ec85f=_0x3f1903['getSuggestion'](_0x3476ce),_0x5fe92f=_0x3ec85f['data'];if('formatBlock'!=_0x3ec85f['type']||!_0x5fe92f||'setTableColumnHeader'!=_0x5fe92f['commandName'])return;if(_0x568ae1['item'])return void _0x52e6f7['stop']();if(!_0x4a8d97['consumable']['consume'](_0x568ae1['markerRange'],_0x52e6f7['name']))return;const _0x260b4e=_0x568ae1['markerRange']['start']['nodeAfter'],_0x27c376=_0x568ae1['markerRange']['end']['nodeBefore'],_0x31f0ac=_0x260b4e['parent']['parent'],{column:_0x26dbf2}=_0x2e3e9b['getCellLocation'](_0x260b4e),{column:_0x587397}=_0x2e3e9b['getCellLocation'](_0x27c376);for(let _0x2e5006=_0x26dbf2;_0x2e5006<=_0x587397;_0x2e5006++){const _0x77a01f=_0x2e3e9b['createTableWalker'](_0x31f0ac,{'column':_0x2e5006,'includeAllSlots':!0x1});for(const _0x450e99 of _0x77a01f){const _0x52fd55=_0x450e99['cell'],_0x54d234=_0x4a8d97['mapper']['toViewElement'](_0x52fd55);_0x4a8d97['writer']['addClass']('ck-suggestion-marker-'+_0xaf412f,_0x54d234),_0x9b1a2c&&_0x4a8d97['writer']['setAttribute']('data-suggestion',_0x3476ce,_0x54d234),_0x4a8d97['mapper']['bindElementToMarker'](_0x54d234,_0x568ae1['markerName']),_0x246fe2&&(_0x3f1903['activeMarkers']['includes'](_0x568ae1['markerName'])?_0x4a8d97['writer']['addClass']('ck-suggestion-marker--active',_0x54d234):_0x4a8d97['writer']['removeClass']('ck-suggestion-marker--active',_0x54d234));}}};}_0x3f1903['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x125142),_0x3f1903['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x125142),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1ef916(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3eb149,_0x444509,_0x1a3a14)=>{_0x1a3a14['options']['showSuggestionHighlights']&&_0x1ef916({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3eb149,_0x444509,_0x1a3a14);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x31bbbe,_0x2d583d,_0x2c464f)=>{const {type:_0xeede51,id:_0x538b6a}=_0x3f1903['_splitMarkerName'](_0x2d583d['markerName']),_0x22d099=_0x3f1903['getSuggestion'](_0x538b6a),_0x4a01d1=_0x22d099['data'];if('formatBlock'!=_0x22d099['type']||!_0x4a01d1||'setTableColumnHeader'!=_0x4a01d1['commandName'])return;const _0x23aa95=_0x2c464f['mapper']['markerNameToElements'](_0x2d583d['markerName']);if(_0x23aa95){for(const _0x2c655a of _0x23aa95)_0x2c464f['writer']['removeClass']('ck-suggestion-marker-'+_0xeede51,_0x2c655a),_0x2c464f['writer']['removeClass']('ck-suggestion-marker--active',_0x2c655a),_0x2c464f['writer']['removeAttribute']('data-suggestion',_0x2c655a),_0x2c464f['mapper']['unbindElementFromMarkerName'](_0x2c655a,_0x2d583d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23957f=this['editor'],_0x2570ca=_0x23957f['locale'];function _0x5bff6d(_0x28a306){return{'type':'format','content':o(_0x2570ca,'*Format:*\x20%0',_0x28a306)};}_0x23957f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d096f=>{if('formatBlock'!=_0x4d096f['type'])return;const {data:_0x86a16b}=_0x4d096f;if(_0x86a16b){if('setTableRowHeader'==_0x86a16b['commandName']){const _0x16ccb9=_0x86a16b['commandParams'][0x0]['forceValue'];return _0x5bff6d(o(_0x2570ca,_0x16ccb9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x86a16b['commandName']){const _0x574964=_0x86a16b['commandParams'][0x0]['forceValue'];return _0x5bff6d(o(_0x2570ca,_0x574964?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x141877=>[_0x141877,null]));class It extends _0x1a1403{static get['requires'](){return[jt];}['afterInit'](){const _0x2b4a83=this['editor'];if(!_0x2b4a83['plugins']['has']('TableClipboard'))return;const _0x1d7754=_0x2b4a83['plugins']['get']('TrackChangesEditing'),_0x4b7892=_0x2b4a83['plugins']['get']('TableUtils'),_0x724b=_0x2b4a83['plugins']['get'](jt),_0x136794=_0x2b4a83['plugins']['get']('TableClipboard');_0x724b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2b4a83['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2b4a83['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5f879b=null;_0x2b4a83['model']['on']('insertContent',(_0x56261c,_0x51635d)=>{const [_0x4bc3e4,_0x1a147b]=_0x51635d,_0x9933a2=_0x51635d[_0x51635d['length']-0x1];_0x9933a2&&_0x9933a2['forceDefaultExecution']||_0x1d7754['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1a3f33,_0x52772c,_0x330052,_0x379412,_0x2933c4){if(_0x52772c&&!_0x52772c['is']('documentSelection'))return!0x1;const _0x128276=_0x2933c4['getTableIfOnlyTableInContent'](_0x1a3f33,_0x330052);if(!_0x128276||!he(_0x128276,void 0x0,_0x379412))return!0x1;const _0xbbd993=_0x379412['getSelectionAffectedTableCells'](_0x330052['document']['selection']);if(!_0xbbd993['length'])return!0x1;const _0x1b0eb1=_0xbbd993[0x0]['findAncestor']('table'),_0x2d13c6=_0x379412['getRowIndexes'](_0xbbd993),_0x2f6d2a=_0x379412['getColumnIndexes'](_0xbbd993),_0x3f2413={'startRow':_0x2d13c6['first'],'endRow':_0x2d13c6['last'],'startColumn':_0x2f6d2a['first'],'endColumn':_0x2f6d2a['last']};return 0x1==_0xbbd993['length']&&(_0x3f2413['endRow']+=_0x379412['getRows'](_0x128276)-0x1,_0x3f2413['endColumn']+=_0x379412['getColumns'](_0x128276)-0x1),he(_0x1b0eb1,_0x3f2413,_0x379412);}(_0x4bc3e4,_0x1a147b,_0x2b4a83['model'],_0x4b7892,_0x136794)&&(_0x56261c['stop'](),_0x5f879b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2b4a83['model']['change'](()=>{_0x2b4a83['model']['insertContent'](_0x51635d[0x0],_0x51635d[0x1],_0x51635d[0x2],{'forceDefaultExecution':!0x0});const _0x44a365=_0x299adf(),{rowInsertionRanges:_0x419edd,columnInsertionRanges:_0x45b820,insertionRanges:_0x57523a,deletionRanges:_0x4e5d29,cells:_0x441df5}=_0x5f879b;_0x419edd['length']&&_0x1d7754['markMultiRangeInsertion'](_0x419edd,'tablePasteRow',{'tablePasteChainId':_0x44a365}),_0x45b820['length']&&_0x1d7754['markMultiRangeInsertion'](_0x45b820,'tablePasteColumn',{'tablePasteChainId':_0x44a365}),_0x57523a['length']&&(_0x1d7754['markMultiRangeInsertion'](_0x57523a,'tablePaste',{'tablePasteChainId':_0x44a365,'skipNestingCheck':!0x0}),_0x57523a['forEach'](_0x29e898=>_0x29e898['detach']?.())),_0x4e5d29['length']&&(_0x1d7754['markMultiRangeDeletion'](_0x4e5d29,'tablePaste',{'tablePasteChainId':_0x44a365,'skipNestingCheck':!0x0}),_0x4e5d29['forEach'](_0x5176aa=>_0x5176aa['detach']?.()));const _0x3eb6e3=_0x1d7754['markMultiRangeBlockFormat'](_0x441df5['map'](({element:_0xcc6aee})=>_0xcc6aee),{'formatGroupId':_0x299adf()},[],'tablePasteCell',{'tablePasteChainId':_0x44a365});if(_0x3eb6e3){const _0x4a02e2=_0x3eb6e3['getMarkers'](),_0xa03d79=[];for(const {element:_0x542aab,attributes:_0x4cf887}of _0x441df5){if(!_0x4cf887)continue;const _0x3ee918=_0x2b4a83['model']['createRangeOn'](_0x542aab),_0x922e03=_0x4a02e2['find'](_0xdc1659=>_0xdc1659['getRange']()['isEqual'](_0x3ee918));_0x922e03&&_0xa03d79['push']([_0x922e03['name'],_0x4cf887]);}_0xa03d79['length']&&_0x3eb6e3['setAttribute']('markerAttributes',Object['fromEntries'](_0xa03d79));}_0x5f879b=null;}));},{'priority':_0x486fa6['high']+0xa}),_0x2b4a83['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x259ca7,_0xd49e29)=>{const [_0x19339b,_0x4f3cdd,,_0x106787]=_0xd49e29;if(!_0x5f879b)return;_0x259ca7['stop']();const _0x1b8cef=_0x19339b['cell'],_0x15b5d3=_0x4f3cdd,_0x1f9fbb=Pe(_0x1b8cef),_0x1f3f17=Pe(_0x15b5d3);_0x259ca7['return']=_0x1b8cef;let _0x13cd5a=null,_0x1744b1=null;if(_0x1f3f17||_0x1f9fbb){if(_0x1f9fbb&&!_0x1f3f17){_0x106787['remove'](_0x1b8cef['getChild'](0x0));for(const _0x1e57b2 of Array['from'](_0x15b5d3['getChildren']()))_0x106787['insert'](_0x1e57b2,_0x1b8cef,'end');const _0xa3740e=_0x5f879b['rowInsertionIndexes']['includes'](_0x19339b['row']),_0x511d43=_0x5f879b['columnInsertionIndexes']['includes'](_0x19339b['column']);_0xa3740e||_0x511d43||(_0x13cd5a=_0x2a1164['fromRange'](_0x106787['createRangeIn'](_0x1b8cef)));}else _0x1f3f17&&!_0x1f9fbb&&(_0x1744b1=_0x106787['createRangeIn'](_0x1b8cef));}else{const _0x4a05eb=_0x106787['createElement']('tableCellSuggestion'),_0x4f34a7=_0x106787['createElement']('tableCellSuggestion');_0x106787['wrap'](_0x106787['createRangeIn'](_0x1b8cef),_0x4f34a7),_0x106787['insert'](_0x4a05eb,_0x1b8cef,0x0);for(const _0x1998cb of Array['from'](_0x15b5d3['getChildren']()))_0x106787['insert'](_0x1998cb,_0x4a05eb,'end');_0x13cd5a=_0x2a1164['fromRange'](_0x106787['createRangeOn'](_0x4a05eb)),_0x1744b1=_0x2a1164['fromRange'](_0x106787['createRangeOn'](_0x4f34a7));}const _0x281727=Array['from'](_0x15b5d3['getAttributes']())['filter'](([_0x3d699b])=>ge['includes'](_0x3d699b));_0x5f879b['cells']['push']({'element':_0x1b8cef,'attributes':_0x281727['length']?Object['fromEntries'](_0x281727):null}),_0x13cd5a&&_0x5f879b['insertionRanges']['push'](_0x13cd5a),_0x1744b1&&_0x5f879b['deletionRanges']['push'](_0x1744b1);},{'priority':'high'}),_0x4b7892['on']('insertColumns',(_0x50886e,_0x5574a8)=>{const [_0x23a32a,_0x986c09={}]=_0x5574a8;if(!_0x5f879b)return;const _0x1b376a=_0x986c09['at']||0x0,_0x456514=_0x986c09['columns']||0x1;_0x5f879b['columnInsertionIndexes']=new Array(_0x456514)['fill'](_0x1b376a)['map']((_0x40ffe1,_0x562811)=>_0x40ffe1+_0x562811);for(const {cell:_0x2fcc02}of _0x4b7892['createTableWalker'](_0x23a32a,{'startColumn':_0x1b376a,'endColumn':_0x1b376a+_0x456514-0x1}))_0x5f879b['columnInsertionRanges']['push'](_0x2b4a83['model']['createRangeOn'](_0x2fcc02));},{'priority':'low'}),_0x4b7892['on']('insertRows',(_0x1322b8,_0x381825)=>{const [_0x14629f,_0x8a6e61={}]=_0x381825;if(!_0x5f879b)return;const _0x3575e4=_0x8a6e61['at']||0x0,_0x535be8=_0x8a6e61['rows']||0x1;_0x5f879b['rowInsertionIndexes']=new Array(_0x535be8)['fill'](_0x3575e4)['map']((_0x1855d2,_0x4f1a91)=>_0x1855d2+_0x4f1a91);for(const {cell:_0x34d8b5}of _0x4b7892['createTableWalker'](_0x14629f,{'startRow':_0x3575e4,'endRow':_0x3575e4+_0x535be8-0x1}))_0x5f879b['rowInsertionRanges']['push'](_0x2b4a83['model']['createRangeOn'](_0x34d8b5));},{'priority':'low'}),_0x1d7754['descriptionFactory']['registerDescriptionCallback'](_0x19394f=>{if(_0x19394f['subType']&&_0x19394f['subType']['startsWith']('tablePaste'))return _0x19394f['previous']?{}:{'type':'insertion','content':o(_0x2b4a83['locale'],'*Replace\x20table\x20cells*')};});const _0x3d34df=()=>!0x1;for(const _0x46d019 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1d7754['_suggestionFactory']['registerCustomCallback']('insertion',_0x46d019,'join',_0x3d34df),_0x1d7754['_suggestionFactory']['registerCustomCallback']('deletion',_0x46d019,'join',_0x3d34df),_0x1d7754['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x46d019,'join',_0x3d34df);_0x1d7754['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3d34df),_0x1d7754['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5257bd,_0x267dd6,_0x4ae574)=>{const _0x3b8d6d=_0x5257bd['map'](_0x1c18bc=>_0x1c18bc['getContainedElement']())['filter'](_0x39d75f=>_0x39d75f),_0xa39d60=new Map(_0x3b8d6d['map'](_0x1aaa11=>[_0x1aaa11,null]));if(_0x5f879b){for(const {element:_0x537468,attributes:_0x1d2e7e}of _0x5f879b['cells'])_0x1d2e7e&&_0xa39d60['set'](_0x537468,_0x1d2e7e);}else{if(_0x4ae574&&_0x4ae574['markerAttributes'])for(const [_0x3de718,_0x4f8751]of Object['entries'](_0x4ae574['markerAttributes'])){const _0xbb29c4=_0x2b4a83['model']['markers']['get'](_0x3de718),_0x3a51da=_0xbb29c4?_0xbb29c4['getRange']()['getContainedElement']():null;_0x3a51da&&_0xa39d60['set'](_0x3a51da,_0x4f8751);}}_0x2b4a83['model']['change'](_0x5af67a=>{for(const [_0x4581ce,_0x3cb83d]of _0xa39d60)_0x5af67a['setAttributes']({...Ce,..._0x3cb83d},_0x4581ce);});});const _0x2741d8=(_0x333e73,_0xf8d538)=>{_0x1d7754['_suggestionFactory']['registerCustomCallback'](_0x333e73,'tablePaste',_0xf8d538,(_0x18ea94,_0x5f5817,_0x5ae59a)=>{_0x2b4a83['model']['change'](_0x58b73=>{const _0x342649=[];for(const _0x57280a of _0x18ea94){const _0x14077f=_0x57280a['start']['nodeAfter'];_0x14077f['is']('element','tableCellSuggestion')&&_0x342649['push'](_0x14077f);}_0x1d7754['_suggestionFactory']['getSuggestionCallback'](_0x333e73,null,_0xf8d538)(_0x18ea94,_0x5f5817,_0x5ae59a);for(const _0x848f92 of _0x342649)'$graveyard'!=_0x848f92['root']['rootName']&&_0x58b73['unwrap'](_0x848f92);});});};_0x2741d8('insertion','accept'),_0x2741d8('insertion','discard'),_0x2741d8('deletion','accept'),_0x2741d8('deletion','discard'),_0x1d7754['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1c5954=>{const _0x51e9bf=_0x1c5954['map'](_0x2314db=>_0x2314db['getContainedElement']()),_0xaab269=_0x51e9bf[0x0]['findAncestor']('table'),{minRow:_0xf032a,maxRow:_0x1c3835}=_0x724b['_getCoordsForCells'](_0x51e9bf);_0x4b7892['removeRows'](_0xaab269,{'at':_0xf032a,'rows':_0x1c3835-_0xf032a+0x1});}),_0x1d7754['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4e55ff=>{const _0x4c15d3=_0x4e55ff['map'](_0x4d09e8=>_0x4d09e8['getContainedElement']()),_0x381c95=_0x4c15d3[0x0]['findAncestor']('table'),{minColumn:_0x43a9ab,maxColumn:_0x25f0b9}=_0x724b['_getCoordsForCells'](_0x4c15d3);_0x4b7892['removeColumns'](_0x381c95,{'at':_0x43a9ab,'columns':_0x25f0b9-_0x43a9ab+0x1});});const _0x586506=(_0x2fd08f,_0xd6b452)=>{if(!_0xd6b452['subType']||!_0xd6b452['subType']['startsWith']('tablePaste'))return;const _0x211521=_0xd6b452['attributes']['tablePasteChainId'],_0x24845e=_0x1d7754['getSuggestions']()['filter'](_0x198f94=>_0x198f94['isInContent']&&_0x198f94['attributes']&&_0x198f94['attributes']['tablePasteChainId']==_0x211521);_0x24845e['length']&&_0xd6b452['getAllAdjacentSuggestions']()['length']!=_0x24845e['length']&&_0x24845e['reduce']((_0x259890,_0x2ded93)=>(_0x259890['next']=_0x2ded93,_0x2ded93['previous']=_0x259890,_0x2ded93));};function _0xcc5f73(_0x378d60,_0x4d8ec1=!0x0){const {id:_0xbd8689}=_0x1d7754['_splitMarkerName'](_0x378d60['markerName']),_0x48a9fb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5eb050=_0x1d7754['activeMarkers']['includes'](_0x378d60['markerName']);return _0x5eb050&&_0x48a9fb['push']('ck-suggestion-marker--active'),{'classes':_0x48a9fb,'attributes':{'data-suggestion':_0xbd8689},'priority':_0x5eb050&&_0x4d8ec1?0xbc2:0xbb8};}_0x1d7754['on']('suggestionLoaded',_0x586506,{'priority':'high'}),_0x1d7754['on']('suggestionUnloaded',_0x586506,{'priority':'high'}),_0x2b4a83['model']['document']['registerPostFixer'](()=>{let _0x285d9d=!0x1;const _0xfe8938=Array['from'](_0x2b4a83['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb7208,data:_0x1e3743}of _0xfe8938){const {group:_0x9ca144,type:_0x49fbaf,id:_0x42d96b}=_0x1d7754['_splitMarkerName'](_0xb7208);if('suggestion'!=_0x9ca144||'deletion'!=_0x49fbaf||_0x1e3743['oldRange'])continue;if(!_0x1d7754['hasSuggestion'](_0x42d96b))continue;const _0x44923a=_0x1d7754['getSuggestion'](_0x42d96b)['getRanges'](),_0x488da2=_0x2b4a83['plugins']['get']('Users')['me'];for(const _0x294ef1 of _0x1d7754['getSuggestions']()){if(!_0x294ef1['isInContent']||_0x294ef1['author']!=_0x488da2)continue;if('formatBlock'!=_0x294ef1['type']||'tablePasteCell'!=_0x294ef1['subType'])continue;if(_0x294ef1['getRanges']()['every'](_0x22baea=>_0x44923a['some'](_0x1b00a5=>_0x1b00a5['containsRange'](_0x22baea,!0x0)))){for(const _0x207136 of _0x294ef1['getAllAdjacentSuggestions']())_0x207136['isInContent']&&(_0x207136['discard'](),_0x285d9d=!0x0);}}}return _0x285d9d;}),_0x2b4a83['model']['document']['registerPostFixer'](_0x6d9af7=>{const _0x6567=_0x2b4a83['commands']['get']('redo');if(!_0x6567||!_0x6567['_createdBatches']['has'](_0x6d9af7['batch']))return!0x1;let _0x43079d=!0x1;const _0x3c34d1=_0x2b4a83['plugins']['get']('Users')['me'],_0x1eabf1=_0x2b4a83['model']['document']['differ']['getChanges'](),_0x294064=Array['from'](_0x2b4a83['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x24e501,data:_0xc1e784})=>{const {group:_0x132442,subType:_0x1c0d96,authorId:_0x37d9f7}=_0x1d7754['_splitMarkerName'](_0x24e501);return'suggestion'==_0x132442&&'tablePaste'==_0x1c0d96&&_0x37d9f7==_0x3c34d1['id']&&!_0xc1e784['oldRange'];});for(const _0x541181 of _0x1eabf1){if('insert'!=_0x541181['type']||'tableCellSuggestion'!=_0x541181['name']||0x1!=_0x541181['length'])continue;const _0x498de9=_0x6d9af7['createRange'](_0x541181['position'],_0x541181['position']['getShiftedBy'](0x1));if(!_0x294064['find'](({data:_0x49385a})=>_0x49385a['newRange']['isEqual'](_0x498de9))){for(const {name:_0x185c24,data:_0x4e84da}of _0x294064)if(_0x498de9['containsRange'](_0x4e84da['newRange'])){_0x6d9af7['updateMarker'](_0x185c24,{'range':_0x498de9}),_0x43079d=!0x0;break;}}}return _0x43079d;}),_0x2b4a83['model']['document']['registerPostFixer'](_0x2a2123=>{let _0x49d32f=!0x1;const _0x163473=_0x2b4a83['plugins']['get']('Users')['me'],_0x5a283a=_0x1d7754['getSuggestions']()['filter'](_0x1516c4=>_0x1516c4['isInContent']&&_0x1516c4['author']==_0x163473),_0x53f9ee=new Set(),_0x30dff6=new Set();for(const _0x1a3acb of _0x5a283a)if('tablePaste'==_0x1a3acb['subType'])for(const _0x3ca980 of _0x1a3acb['getMarkers']()){const _0xcbd4c3=_0x3ca980['getRange']()['getContainedElement']();if(_0xcbd4c3){if(_0xcbd4c3['is']('element','tableCellSuggestion')&&Pe(_0xcbd4c3)){_0x1a3acb['removeMarker'](_0x3ca980['name']),_0x53f9ee['add'](_0xcbd4c3),_0x49d32f=!0x0;const _0x15d86c=_0xcbd4c3['nextSibling'],_0x31ec5a=_0xcbd4c3['previousSibling'],_0xebeebd=_0x15d86c&&_0x15d86c['is']('element','tableCellSuggestion'),_0x503cde=_0x31ec5a&&_0x31ec5a['is']('element','tableCellSuggestion');_0xebeebd&&!_0x53f9ee['has'](_0x15d86c)&&_0x30dff6['add'](_0x15d86c),_0x503cde&&!_0x53f9ee['has'](_0x31ec5a)&&_0x30dff6['add'](_0x31ec5a);}else _0xcbd4c3['is']('element','paragraph')&&_0xcbd4c3['isEmpty']&&(_0x1a3acb['removeMarker'](_0x3ca980['name']),_0x49d32f=!0x0);}}else{if('tablePasteCell'==_0x1a3acb['subType']){if(!_0x1a3acb['attributes']||!_0x1a3acb['attributes']['tablePasteChainId'])continue;const _0x4463c9=_0x1a3acb['attributes']['markerAttributes'];if(_0x4463c9&&Object['keys'](_0x4463c9)['length'])continue;const _0x53b6b4=_0x1a3acb['attributes']['tablePasteChainId'];let _0x310306=!0x0,_0x469b5c=!0x0;for(const _0x435238 of _0x5a283a)if(_0x435238['subType']&&_0x435238['subType']['startsWith']('tablePaste')){if(!_0x435238['attributes']['tablePasteChainId']){_0x469b5c=!0x1;break;}if(_0x435238['id']!=_0x1a3acb['id']&&_0x435238['attributes']['tablePasteChainId']==_0x53b6b4){_0x310306=!0x1;break;}}_0x469b5c&&_0x310306&&(_0x1a3acb['removeMarkers'](),_0x49d32f=!0x0);}}for(const _0x4a60ba of _0x53f9ee)_0x2a2123['remove'](_0x4a60ba);for(const _0x1e7881 of _0x30dff6)_0x2a2123['unwrap'](_0x1e7881);return _0x49d32f;}),_0x2b4a83['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4aaca5,_0x251014)=>_0xcc5f73(_0x4aaca5),'converterPriority':'high'}),_0x2b4a83['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4f514e,_0x5cfe53)=>_0x5cfe53['options']['showSuggestionHighlights']?_0xcc5f73(_0x4f514e,!0x1):null,'converterPriority':'high'});const _0x15501b=_0x2b4a83['editing']['view'];this['listenTo'](_0x15501b['document'],'clipboardOutput',(_0x169c9e,_0xa854f5)=>{const _0x48832f=[];for(const _0x281eae of _0x15501b['createRangeIn'](_0xa854f5['content'])['getItems']())_0x281eae['is']('element','suggestion-td')&&_0x48832f['push'](_0x281eae);_0x15501b['change'](_0x221de7=>{for(const _0x2674f1 of _0x48832f)_0x221de7['move'](_0x221de7['createRangeIn'](_0x2674f1),_0x221de7['createPositionBefore'](_0x2674f1)),_0x221de7['remove'](_0x2674f1);});});}}function Pe(_0x116f3c){if(_0x116f3c['isEmpty'])return!0x0;const _0xdbf5=_0x116f3c['getChild'](0x0);return _0xdbf5['is']('element','paragraph')&&_0xdbf5['isEmpty'];}function he(_0x13cd6d,_0x5f098f={},_0x14157f){for(const {isAnchor:_0x1f286e,cellHeight:_0x5274c2,cellWidth:_0x4fed65}of _0x14157f['createTableWalker'](_0x13cd6d,{'includeAllSlots':!0x0,..._0x5f098f}))if(!_0x1f286e||0x1!=_0x5274c2||0x1!=_0x4fed65)return!0x1;return!0x0;}class vt extends _0x1a1403{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x455aac=this['editor']['plugins']['get']('TrackChangesEditing');_0x455aac['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x455aac['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x455aac['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x455aac['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x455aac['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x455aac['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2c880d,_0x534576){const _0x27c67f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b2084=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x370cbc=_0x534576['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x183722=_0x1b2084['getColumnGroupElement'](_0x370cbc);let _0x2a7299=_0x183722?_0x1b2084['getTableColumnsWidths'](_0x183722):null,_0x52188f=_0x370cbc['getAttribute']('tableWidth')||null;const _0x1ea7bd=_0x534576['tableWidth']||_0x52188f,_0x1e9a4f=_0x534576['columnWidths']||_0x2a7299,_0x219cce=this['editor']['plugins']['get']('Users')['me'];for(const _0x335e27 of _0x27c67f['getSuggestions']()){const _0x3c809e=_0x335e27['getContainedElement']();if('resizeTable'===_0x335e27['subType']&&_0x3c809e===_0x370cbc){_0x335e27['author']!==_0x219cce&&_0x335e27['discard']();const _0x31cbd0=_0x335e27['data']['commandParams'];_0x52188f=_0x31cbd0[0x0]['tableWidth'],_0x2a7299=_0x31cbd0[0x0]['columnWidths'];break;}}_0x2c880d({'table':_0x370cbc,'tableWidth':_0x1ea7bd,'columnWidths':_0x1e9a4f}),_0x27c67f['markBlockFormat'](_0x370cbc,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x52188f,'columnWidths':_0x2a7299}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x228306){if('formatBlock'!=_0x228306['type']&&'formatInline'!=_0x228306['type'])return;const {data:_0x1fc33a}=_0x228306;if(_0x1fc33a&&'resizeTable'===_0x1fc33a['formatGroupId']){const _0x3e44fc='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3e44fc)};}}}class Ct extends _0x1a1403{['afterInit'](){const _0x12ae63=this['editor'];_0x12ae63['plugins']['has']('Template')&&_0x12ae63['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x1a1403{['afterInit'](){const _0x356eb2=this['editor'];if(!_0x356eb2['commands']['get']('insertTableOfContents'))return;_0x356eb2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x542529=_0x356eb2['plugins']['get']('TrackChangesEditing'),_0x32b6bf=_0x356eb2['locale'];_0x542529['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2348b9=>o(_0x32b6bf,'ELEMENT_TABLE_OF_CONTENTS',_0x2348b9));}}class Dt extends _0x1a1403{['afterInit'](){const _0x4ad165=this['editor'];if(!_0x4ad165['plugins']['has']('Title'))return;const _0x2db693=_0x4ad165['plugins']['get']('TrackChangesEditing');_0x2db693['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4ad165['locale'],'ELEMENT_TITLE')),_0x4ad165['model']['document']['registerPostFixer'](_0x34f45b=>{let _0x97cb8a=!0x1;const _0x4f9db8=Array['from'](_0x4ad165['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25e9d9,data:_0x3191bd}of _0x4f9db8){const {group:_0x56d18c}=_0x2db693['_splitMarkerName'](_0x25e9d9);if('suggestion'!==_0x56d18c||!_0x3191bd['newRange'])continue;const _0x9550d=_0x3191bd['newRange'],_0xd5dfaa=_0x9550d['end']['nodeBefore'];if(!_0xd5dfaa||!_0xd5dfaa['is']('element','title-content'))continue;if(!_0x9550d['start']['isTouching'](_0x9550d['end']))continue;const _0x57365d=_0x4ad165['model']['schema']['getNearestSelectionRange'](_0x9550d['end'],'forward');if(_0x57365d&&_0x57365d['isCollapsed']){const _0x5cbb62=_0x34f45b['createRange'](_0x9550d['start'],_0x57365d['start']);_0x5cbb62['isEqual'](_0x9550d)||(_0x34f45b['updateMarker'](_0x25e9d9,{'range':_0x5cbb62}),_0x97cb8a=!0x0);}_0x97cb8a||(_0x34f45b['removeMarker'](_0x25e9d9),_0x97cb8a=!0x0);}return _0x97cb8a;});}}class Nt extends _0x1a1403{['afterInit'](){const _0x469923=this['editor'],_0x55bf3e=_0x469923['plugins']['get']('TrackChangesEditing');_0x469923['plugins']['has']('UndoEditing')&&(_0x55bf3e['enableCommand']('undo'),_0x55bf3e['enableCommand']('redo'));}}class Mt extends _0x1a1403{static get['requires'](){return[jt];}['afterInit'](){const _0x233ec9=this['editor'];if(!_0x233ec9['plugins']['has']('TableCaptionEditing'))return;_0x233ec9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1a1403{['tableProperties'];['tableCellProperties'];constructor(_0xd9e1bf){super(_0xd9e1bf),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 _0x5d5cef=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x45f028 of this['tableProperties'])_0x5d5cef['enableCommand'](_0x45f028,(_0x58af40,_0x4786eb)=>{const _0x273423=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x45f028,[_0x273423],this['tableProperties'],'tableProperties',_0x58af40,_0x4786eb);});_0x5d5cef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5d5cef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d5cef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x565d66,_0x16e506)=>this['handleDiscardAction'](this['tableProperties'],_0x565d66,_0x16e506)),_0x5d5cef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x56a935 of this['tableCellProperties'])_0x5d5cef['enableCommand'](_0x56a935,(_0x33aa5a,_0x5126ac)=>{const _0xfc74e1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x56a935,_0xfc74e1,this['tableCellProperties'],'tableCellProperties',_0x33aa5a,_0x5126ac);});_0x5d5cef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5d5cef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d5cef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3636d9,_0x20f1ee)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3636d9,_0x20f1ee)),_0x5d5cef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5d5cef['descriptionFactory']['registerDescriptionCallback'](_0x46bdf6=>this['handleSuggestionDescription'](_0x46bdf6));}['_handlePropertyChange'](_0x3f9caa,_0x3f49ab,_0xb2b080,_0x2a96f0,_0x425c58,_0x585010){const _0xaf2391=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x585010['batch'],()=>{for(const _0xd6b343 of _0x3f49ab){if(this['_getSuggestion'](_0xd6b343,_0x2a96f0))_0x425c58(_0x585010);else{const _0x3a1f97={};for(const _0x4fb71e of _0xb2b080){const _0x465c72=_0xd6b343['getAttribute'](_0x4fb71e);void 0x0!==_0x465c72&&(_0x3a1f97[_0x4fb71e]=_0x465c72);}_0x425c58(_0x585010),_0xaf2391['markBlockFormat'](_0xd6b343,{'commandParams':[_0x3a1f97]},[],_0x2a96f0);}}});}['handleDiscardAction'](_0x515639,_0x490d3f,_0x278754){const _0x12f3cf=_0x490d3f[0x0]['start']['nodeAfter'],_0x3a5eaf=_0x278754['commandParams'][0x0];this['editor']['model']['change'](_0x156a92=>{for(const _0x54e846 of _0x515639)void 0x0!==_0x3a5eaf[_0x54e846]?_0x156a92['setAttribute'](_0x54e846,_0x3a5eaf[_0x54e846],_0x12f3cf):_0x156a92['removeAttribute'](_0x54e846,_0x12f3cf);});}['handleSuggestionDescription'](_0x481f1c){if(_0x481f1c['data'])switch(_0x481f1c['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'](_0x23a37b,_0xde1d8d){const _0x1afbff=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x38ad29 of _0x1afbff['getSuggestions']({'skipNotAttached':!0x0})){const _0x556ae2=_0x38ad29['getContainedElement']();if(_0x38ad29['subType']===_0xde1d8d&&_0x556ae2===_0x23a37b)return _0x38ad29;}return null;}}const m='$elementName';class p extends _0x1a1403{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x35e08d,_0x433cd2,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x3e7575){function _0x659f37(_0x2a53eb){return _0x2a53eb['map'](_0x32bb03=>String['fromCharCode'](_0x32bb03))['join']('');}super(_0x3e7575),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5d1740,_0x4f91a9,_0x17ed97,_0x305e24)=>{this['_model']['change'](()=>{for(const _0x210492 of[..._0x305e24,..._0x17ed97])this['_model']['markers']['has'](_0x210492)&&_0x3e7575['editing']['reconvertMarker'](_0x210492);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3e7575['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(),_0x3e7575['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3e7575['config']['get']('trackChanges.trackFormatChanges'),_0x3e7575['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3e7575['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x3e7575,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x659f37([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x659f37([0x34,0x30,0x34,0x38,0x31,0x32,0x31,0x38]);}['init'](){const _0x34f8a2=this['editor'],_0x1f0f56=(_0x3d1d5b,_0x396756)=>{if('attribute'!=_0x3d1d5b)return'ck-suggestion-marker-'+_0x3d1d5b;const _0x32b910=_0x396756['split']('|')[0x0];return this['_isBlockAttribute'](_0x32b910)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x34f8a2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xc091ed=>{const {id:_0x5a5574,type:_0x4fb4a2,subType:_0x5c1020}=this['_splitMarkerName'](_0xc091ed['markerName']),_0x1070ab=['ck-suggestion-marker',_0x1f0f56(_0x4fb4a2,_0x5c1020)];let _0x1f172d=0xbb8;return this['activeMarkers']['includes'](_0xc091ed['markerName'])&&(_0x1070ab['push']('ck-suggestion-marker--active'),_0x1f172d=0xbc2),'deletion'==_0x4fb4a2&&(_0x1f172d+=0x5),{'classes':_0x1070ab,'attributes':{'data-suggestion':_0x5a5574},'priority':_0x1f172d};}}),_0x34f8a2['conversion']['for']('dataDowncast')['add'](_0x2ae700=>{_0x2ae700['on']('addMarker:suggestion',(_0x4028e0,_0x539475,_0x3ad8e4)=>{if(!_0x3ad8e4['options']['showSuggestionHighlights'])return;const _0x100f68=_0x539475['item'];if(!_0x100f68)return;const _0x26317e=_0x3ad8e4['mapper']['toViewElement'](_0x100f68);_0x34f8a2['model']['schema']['isObject'](_0x100f68)&&_0x26317e&&!_0x26317e['getCustomProperty']('widget')&&_0x26317e['is']('containerElement')&&_0x6d3b24(_0x26317e,_0x3ad8e4['writer']);},{'priority':'high'});}),_0x34f8a2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2d2c85,_0x50333b)=>{if(!_0x50333b['options']['showSuggestionHighlights'])return null;const {type:_0x30a12a,subType:_0x3803f9}=this['_splitMarkerName'](_0x2d2c85['markerName']);return{'classes':['ck-suggestion-marker',_0x1f0f56(_0x30a12a,_0x3803f9)],'priority':0xbb8};}});const _0x32cfa9=({showActiveMarkers:_0x5addff=!0x0,isAttributeSuggestion:_0x615c5e=!0x1}={})=>(_0x5c577c,_0x3f6c48,_0x35a66b)=>{if(!_0x3f6c48['item'])return;const {id:_0x3a14ca}=this['_splitMarkerName'](_0x3f6c48['markerName']);if(_0x615c5e){const _0x376cb6=this['_suggestions']['get'](_0x3a14ca),_0x35e651=this['_getAttributeKey'](_0x376cb6);if(!this['_isBlockAttribute'](_0x35e651))return;}if(_0x3f6c48['item']['is']('selection'))return void _0x35a66b['consumable']['consume'](_0x3f6c48['item'],_0x5c577c['name']);const _0x2c806d=_0x35a66b['mapper']['toViewElement'](_0x3f6c48['item']);if(_0x3f6c48['item']['is']('element')&&_0x34f8a2['model']['schema']['isBlock'](_0x3f6c48['item'])&&!_0x2c806d['getCustomProperty']('addHighlight')){_0x35a66b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2c806d),_0x35a66b['writer']['setAttribute']('data-suggestion',_0x3a14ca,_0x2c806d),_0x35a66b['mapper']['bindElementToMarker'](_0x2c806d,_0x3f6c48['markerName']),_0x5addff&&(this['activeMarkers']['includes'](_0x3f6c48['markerName'])?_0x35a66b['writer']['addClass']('ck-suggestion-marker--active',_0x2c806d):_0x35a66b['writer']['removeClass']('ck-suggestion-marker--active',_0x2c806d));for(const _0x1c73e7 of _0x34f8a2['model']['createRangeIn'](_0x3f6c48['item'])['getItems']())_0x35a66b['consumable']['consume'](_0x1c73e7,_0x5c577c['name']);_0x35a66b['consumable']['consume'](_0x3f6c48['item'],_0x5c577c['name']);}};_0x34f8a2['conversion']['for']('dataDowncast')['add'](_0xe69018=>{_0xe69018['on']('addMarker:suggestion:formatBlock',(_0x5c54e4,_0x543bee,_0x13fe92)=>{_0x13fe92['options']['showSuggestionHighlights']&&_0x32cfa9({'showActiveMarkers':!0x1})(_0x5c54e4,_0x543bee,_0x13fe92);},{'priority':'highest'});}),_0x34f8a2['conversion']['for']('dataDowncast')['add'](_0x802fc7=>{_0x802fc7['on']('addMarker:suggestion:attribute',(_0x46770f,_0x55b88a,_0x2ca43c)=>{_0x2ca43c['options']['showSuggestionHighlights']&&_0x32cfa9({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x46770f,_0x55b88a,_0x2ca43c);},{'priority':'highest'});}),_0x34f8a2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x596500,_0x14c394)=>_0x14c394['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x596500['substr'](0xb)}}),_0x34f8a2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x349f26,{writer:_0x45a9f3})=>{let _0x309125='suggestion:'+_0x349f26['getAttribute']('suggestion-type')+':'+_0x349f26['getAttribute']('id');return _0x349f26['getAttribute']('marker-count')&&(_0x309125+=':'+_0x349f26['getAttribute']('marker-count')),_0x45a9f3['createElement']('$marker',{'data-name':_0x309125});}}),_0x34f8a2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x34f8a2['conversion']['for']('editingDowncast')['add'](_0x7847cc=>{_0x7847cc['on']('addMarker:suggestion:formatBlock',_0x32cfa9(),{'priority':'high'});}),_0x34f8a2['conversion']['for']('editingDowncast')['add'](_0xe4870e=>{_0xe4870e['on']('addMarker:suggestion:attribute',_0x32cfa9({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x34f8a2['conversion']['for']('editingDowncast')['add'](_0xf49c91=>{_0xf49c91['on']('removeMarker:suggestion:formatBlock',(_0x2d201d,_0x5edda5,_0x16adb7)=>{const _0x5c9323=_0x16adb7['mapper']['markerNameToElements'](_0x5edda5['markerName']);if(_0x5c9323){for(const _0xc2f717 of _0x5c9323)_0xc2f717['getCustomProperty']('addHighlight')||(_0x16adb7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xc2f717),_0x16adb7['writer']['removeAttribute']('data-suggestion',_0xc2f717),_0x16adb7['mapper']['unbindElementFromMarkerName'](_0xc2f717,_0x5edda5['markerName']));}},{'priority':'high'});}),_0x34f8a2['conversion']['for']('editingDowncast')['add'](_0x5e88e2=>{_0x5e88e2['on']('removeMarker:suggestion:attribute',(_0x9e0968,_0x3df655,_0x59ee11)=>{const _0x41e1e3=_0x59ee11['mapper']['markerNameToElements'](_0x3df655['markerName']);if(!_0x41e1e3)return;const {id:_0x452724}=this['_splitMarkerName'](_0x3df655['markerName']),_0x48db61=this['_suggestions']['get'](_0x452724),_0x3e6223=this['_getAttributeKey'](_0x48db61);if(this['_isBlockAttribute'](_0x3e6223)){for(const _0x4facf6 of _0x41e1e3)_0x4facf6['getCustomProperty']('addHighlight')||(_0x59ee11['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4facf6),_0x59ee11['writer']['removeAttribute']('data-suggestion',_0x4facf6),_0x59ee11['mapper']['unbindElementFromMarkerName'](_0x4facf6,_0x3df655['markerName']));}},{'priority':'high'});}),_0x34f8a2['model']['document']['registerPostFixer'](_0xf81d79=>{let _0x2f0b37=!0x1;const _0x2869ef=Array['from'](_0x34f8a2['model']['document']['differ']['getChangedMarkers']()),_0xed1ce5=new Set();for(const {name:_0x597045,data:_0xc6cc}of _0x2869ef){const {group:_0x8bf051,type:_0x6fcc96,subType:_0x3364c2,id:_0x4b4a7d}=this['_splitMarkerName'](_0x597045);if('suggestion'!==_0x8bf051)continue;const _0x2d30cb=this['_suggestions']['get'](_0x4b4a7d);if(null!=_0xc6cc['newRange']){'formatInline'==_0x6fcc96&&(_0x2f0b37=_0x2f0b37||Et(_0xc6cc['newRange'],_0x597045,_0xf81d79,_0x34f8a2['model']['schema']));const _0x2af019='attribute'==_0x6fcc96&&this['_isBlockAttribute'](_0x3364c2['split']('|')[0x0]);if(_0xc6cc['newRange']['isCollapsed']||'$graveyard'==_0xc6cc['newRange']['root']['rootName']||'formatBlock'==_0x6fcc96&&!Ut(_0xc6cc['newRange'])||_0x2af019&&!Ut(_0xc6cc['newRange'])||'deletion'==_0x6fcc96&&!(!Tt(_0x19bb9b=_0xc6cc['newRange'])&&!function(_0x3b79c9){return _0x3b79c9['start']['parent']==_0x3b79c9['end']['nodeBefore']&&_0x3b79c9['start']['isAtEnd'];}(_0x19bb9b)))_0xf81d79['removeMarker'](_0x597045),_0x2f0b37=!0x0;else{if(!_0x2d30cb||!_0x2d30cb['isInContent'])continue;_0xed1ce5['add'](_0x2d30cb);}}}var _0x19bb9b;return _0xed1ce5['size']>0x0&&(_0x2f0b37=!!this['_joinWithAdjacentSuggestions'](_0xed1ce5)||_0x2f0b37),_0x2f0b37;}),_0x34f8a2['model']['document']['registerPostFixer'](_0x2560ba=>{let _0xc537b9=!0x1;for(const _0x5cfbf0 of _0x34f8a2['model']['document']['differ']['getChanges']())if('insert'==_0x5cfbf0['type'])for(const _0xb0fce2 of this['_suggestions']['values']()){if(_0xb0fce2['isMultiRange']||!_0xb0fce2['isInContent'])continue;const _0x218954='formatBlock'==_0xb0fce2['type'],_0x59669b=this['_getAttributeKey'](_0xb0fce2),_0x11b812=_0x59669b&&this['_isBlockAttribute'](_0x59669b);if(!_0x218954&&!_0x11b812)continue;const _0x448b87=_0xb0fce2['getFirstRange']();if(_0x448b87['start']['parent']!=_0x448b87['end']['parent']&&!_0x448b87['end']['isAtEnd']){const _0x4bee7d=_0x34f8a2['model']['createPositionAt'](_0x448b87['start']['nodeAfter'],'end'),_0x2c0635=_0x34f8a2['model']['createRange'](_0x448b87['start'],_0x4bee7d);_0x2560ba['updateMarker'](_0xb0fce2['getFirstMarker'](),{'range':_0x2c0635}),_0xc537b9=!0x0;}}return _0xc537b9;}),_0x34f8a2['model']['document']['registerPostFixer'](_0xb95ed6=>this['_processAttributeChanges'](_0xb95ed6)),_0x34f8a2['model']['document']['registerPostFixer'](_0x437e86=>!_0x437e86['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x437e86)),_0x34f8a2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x34f8a2['model']['document']['on']('change:data',(_0xd85a5d,_0x130b06)=>{if(!_0x130b06['isLocal']||_0x130b06['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x398508=_0x34f8a2['model']['document']['differ']['getChanges']();if(0x0==_0x398508['length'])return;const _0x269e00=[],_0x905655=_0x398508['filter'](_0x3546fd=>'attribute'==_0x3546fd['type']),_0x1f26f7=_0x398508['filter'](_0x5076b6=>'insert'==_0x5076b6['type']&&'$text'!=_0x5076b6['name']);for(const _0x20aaa4 of _0x905655)this['_isRegisteredAttribute'](_0x20aaa4['attributeKey'])&&_0x269e00['push']({'key':_0x20aaa4['attributeKey'],'newValue':_0x20aaa4['attributeNewValue'],'oldValue':_0x20aaa4['attributeOldValue'],'range':Ot(_0x20aaa4['range'],_0x34f8a2['model'])});for(const _0x5eea85 of _0x1f26f7){if('rename'!=_0x5eea85['action']&&'refresh'!=_0x5eea85['action'])continue;const _0x5c4662=Gt(_0x5eea85['position']['nodeAfter'],_0x34f8a2['model']),_0x3880d0=_0x5eea85['before'];'rename'==_0x5eea85['action']&&_0x269e00['push']({'key':m,'newValue':_0x5eea85['name'],'oldValue':_0x3880d0['name'],'range':_0x5c4662});for(const [_0x234072,_0x26e128]of _0x3880d0['attributes']){if(!this['_isRegisteredAttribute'](_0x234072))continue;const _0x126f39=_0x5eea85['attributes']['get'](_0x234072);_0x26e128!==_0x126f39&&_0x269e00['push']({'key':_0x234072,'newValue':_0x126f39,'oldValue':_0x26e128,'range':_0x5c4662});}for(const [_0x242e0e,_0x509c2e]of _0x5eea85['attributes'])this['_isRegisteredAttribute'](_0x242e0e)&&(_0x3880d0['attributes']['has'](_0x242e0e)||_0x269e00['push']({'key':_0x242e0e,'newValue':_0x509c2e,'oldValue':null,'range':_0x5c4662}));}0x0!=_0x269e00['length']&&_0x34f8a2['model']['enqueueChange'](_0x130b06,_0x5f21f4=>{const _0x5d002d=_0x299adf();for(const {range:_0x5794a8,key:_0x39f1bc,oldValue:_0x4e2e1d,newValue:_0x1ec733}of _0x269e00)this['markAttributeChange'](_0x5794a8,_0x39f1bc,_0x4e2e1d,_0x1ec733,{'groupId':_0x5d002d});this['_reduceExistingSuggestions'](_0x5f21f4,_0x269e00);});},{'priority':'lowest'}),_0x34f8a2['model']['markers']['on']('update:suggestion',(_0x5b284d,_0x1faf84,_0x2046f8)=>{if(null==_0x2046f8){const {id:_0x4733ba}=this['_splitMarkerName'](_0x1faf84['name']),_0x121bbf=this['_suggestions']['get'](_0x4733ba);_0x121bbf&&_0x121bbf['addMarkerName'](_0x1faf84['name']);}}),_0x34f8a2['model']['document']['on']('change:data',()=>{const _0x4ce542=Array['from'](_0x34f8a2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4e2d81=>'suggestion'===this['_splitMarkerName'](_0x4e2d81['name'])['group']);if(0x0===_0x4ce542['length'])return;_0x4ce542['sort']((_0x2c9bfb,_0x443103)=>{const _0x2c23a4=_0x2c9bfb['data']['oldRange'],_0x242238=_0x443103['data']['oldRange'];return null===_0x2c23a4&&null===_0x242238?0x0:null===_0x2c23a4&&null!==_0x242238?-0x1:null!==_0x2c23a4&&null===_0x242238?0x1:_0x2c23a4['start']['isBefore'](_0x242238['start'])?-0x1:0x1;});const _0x22a644=new Set(),_0x3c06ab=new Set();for(const {name:_0x30100b,data:_0x29e0b7}of _0x4ce542){const {id:_0x32ddf0}=this['_splitMarkerName'](_0x30100b);if(null===_0x29e0b7['oldRange']){const _0x1d81ca=this['_handleNewSuggestionMarker'](_0x30100b);_0x3c06ab['add'](_0x1d81ca);}else{const _0x434f29=this['_suggestions']['get'](_0x32ddf0);null!==_0x29e0b7['newRange']||_0x434f29['isInContent']?(_0x22a644['add'](_0x434f29['head']),_0x3c06ab['add'](_0x434f29)):this['_removeSuggestion'](_0x434f29);}}_0x3c06ab['size']>0x0&&this['_refreshSuggestionsChain'](_0x3c06ab);for(const _0x5c4ae2 of _0x22a644)this['fire']('suggestionChanged',_0x5c4ae2);}),_0x34f8a2['model']['on']('applyOperation',(_0x4e7a31,_0x487850)=>{const _0x3192bc=_0x487850[0x0];if(!this['_suggestions']['size'])return;if(!_0x3192bc['isDocumentOperation'])return;if(_0x3192bc['batch']['isUndo']||!_0x3192bc['batch']['isLocal'])return;let _0x81873c,_0xba6ded;switch(_0x3192bc['type']){case'insert':_0x81873c=_0x34f8a2['model']['createPositionAt'](_0x3192bc['position']),_0xba6ded=_0x81873c['getShiftedBy'](_0x3192bc['howMany']);break;case'split':_0x81873c=_0x34f8a2['model']['createPositionAt'](_0x3192bc['splitPosition']),_0xba6ded=_0x34f8a2['model']['createPositionAt'](_0x3192bc['moveTargetPosition']);break;case'move':_0x81873c=_0x34f8a2['model']['createPositionAt'](_0x3192bc['targetPosition']),_0xba6ded=_0x81873c['getShiftedBy'](_0x3192bc['howMany']);break;default:return;}const _0x5e49dc=_0x34f8a2['model']['createRange'](_0x81873c,_0xba6ded);_0x34f8a2['model']['change'](()=>{for(const {suggestion:_0x58e977,meta:_0x247836}of this['_findSuggestions'](_0x5e49dc)){if(_0x58e977['isMultiRange'])continue;if('formatInline'==_0x58e977['type'])continue;const _0x349d24=this['_getAttributeKey'](_0x58e977);if(_0x349d24&&this['_isBlockAttribute'](_0x349d24)&&'split'!=_0x3192bc['type'])continue;const _0x1f7fc4=_0x58e977['data']&&_0x58e977['data']['multipleBlocks'];('formatBlock'!=_0x58e977['type']||'split'==_0x3192bc['type']&&!_0x1f7fc4)&&(_0x247836['containsRangeInObject']||'insertion'==_0x58e977['type']&&_0x247836['isOwn']||_0x58e977['getFirstRange']()['containsRange'](_0x5e49dc)&&this['_breakSuggestionMarker'](_0x58e977,_0x81873c,_0xba6ded));}});},{'priority':'lowest'}),_0x34f8a2['model']['on']('deleteContent',(_0xacb8c0,_0x58c293)=>{const _0x5e11bb=_0x58c293[0x0],_0x322644=_0x58c293[0x1];if(_0x322644&&_0x322644['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5e11bb['isCollapsed'])return;const _0x2d325a=_0x34f8a2['model']['schema'],{start:_0xb0da5e,end:_0x5636ec}=_0x5e11bb['getFirstRange'](),_0x5010ad=_0xb0da5e['nodeAfter']&&_0x2d325a['isLimit'](_0xb0da5e['nodeAfter'])?null:_0x2d325a['getNearestSelectionRange'](_0xb0da5e,'forward'),_0x3f2a30=_0x5636ec['nodeBefore']&&_0x2d325a['isLimit'](_0x5636ec['nodeBefore'])?null:_0x2d325a['getNearestSelectionRange'](_0x5636ec,'backward'),_0x49b953=_0x34f8a2['model']['createRange'](_0x5010ad?_0x5010ad['start']:_0xb0da5e,_0x3f2a30?_0x3f2a30['end']:_0x5636ec);_0x34f8a2['model']['change'](_0x578211=>{this['markDeletion'](_0x49b953);const _0x8ac44e=_0x34f8a2['model']['schema']['getNearestSelectionRange'](_0x49b953['start']);_0x5e11bb['is']('documentSelection')?_0x578211['setSelection'](_0x8ac44e):_0x5e11bb['setTo'](_0x8ac44e);}),_0xacb8c0['stop']();},{'priority':_0x486fa6['normal']+0xa}),_0x34f8a2['model']['on']('insertContent',(_0x7fb35,_0x4be025)=>{const _0x14428f=_0x4be025[_0x4be025['length']-0x1];_0x14428f&&_0x14428f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x34f8a2['model']['change'](()=>{let _0xc34344=_0x34f8a2['model']['insertContent'](_0x4be025[0x0],_0x4be025[0x1],_0x4be025[0x2],{'forceDefaultExecution':!0x0});if(!_0xc34344)return;_0x7fb35['return']=_0xc34344['clone']();const _0x55431f=_0xc34344['end']['nodeBefore'],_0x4c3d67=_0x34f8a2['model']['schema'];_0x55431f&&_0x4c3d67['isBlock'](_0x55431f)&&!_0x4c3d67['isObject'](_0x55431f)&&(_0xc34344=_0x34f8a2['model']['createRange'](_0xc34344['start'],_0x34f8a2['model']['createPositionAt'](_0x55431f,'end'))),this['markInsertion'](_0xc34344);}),_0x7fb35['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x364b6e=new $(_0x34f8a2,this['_suggestions']);_0x34f8a2['commands']['add']('acceptSuggestion',_0x364b6e),this['enableCommand']('acceptSuggestion');const _0x211bfc=new B(_0x34f8a2,this['_suggestions']);_0x34f8a2['commands']['add']('discardSuggestion',_0x211bfc),this['enableCommand']('discardSuggestion'),_0x34f8a2['commands']['add']('acceptAllSuggestions',new x(_0x34f8a2,_0x364b6e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x34f8a2['commands']['add']('discardAllSuggestions',new x(_0x34f8a2,_0x211bfc,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x34f8a2['commands']['add']('acceptSelectedSuggestions',new R(_0x34f8a2,_0x364b6e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x34f8a2['commands']['add']('discardSelectedSuggestions',new R(_0x34f8a2,_0x211bfc,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x55fb0=_0x34f8a2['plugins']['get']('CommentsRepository');this['listenTo'](_0x55fb0,'addComment',(_0x17898e,{threadId:_0x12a38c})=>{const _0x3b3a22=this['_suggestions']['get'](_0x12a38c);_0x3b3a22&&_0x3b3a22['commentThread']&&0x1===_0x3b3a22['commentThread']['length']&&this['_updateSuggestionData'](_0x12a38c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x55fb0,'removeComment',(_0x27fd17,{threadId:_0x2fa8e5})=>{const _0xe4983c=this['_suggestions']['get'](_0x2fa8e5);_0xe4983c&&_0xe4983c['commentThread']&&!_0xe4983c['commentThread']['length']&&this['_updateSuggestionData'](_0x2fa8e5,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x46d8c6){if(this['_adapter'])throw new _0x222665('track-changes-adapter-already-set',this);this['_adapter']=_0x46d8c6;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4a14b7=!0x1,toJSON:_0x224e13=!0x1}={}){const _0x399a0a=[];for(const _0x4f3561 of this['_suggestions']['values']())_0x4a14b7&&!_0x4f3561['isInContent']||_0x399a0a['push'](_0x4f3561);return _0x224e13?_0x399a0a['map'](_0x5ba0a3=>_0x5ba0a3['toJSON']()):_0x399a0a;}['getSuggestion'](_0x580fff){const _0x272ff6=this['_suggestions']['get'](_0x580fff);if(!_0x272ff6)throw new _0x222665('track-changes-suggestion-not-found',this);return _0x272ff6;}['hasSuggestion'](_0x5d0a3b){return this['_suggestions']['has'](_0x5d0a3b);}['addSuggestionData'](_0x591272){const {authorId:_0x57e2a6,id:_0x1e4d17,attributes:_0x1c3d89}=_0x591272,[_0x1b1f2b,_0x5c5aa7]=_0x591272['type']['split'](':'),_0x2cf860=this['_suggestions']['get'](_0x1e4d17)||this['_createSuggestion'](_0x1b1f2b,_0x5c5aa7,_0x1e4d17,_0x57e2a6,_0x1c3d89);if(this['_addThreadToSuggestion'](_0x2cf860),this['_checkSuggestionCorrectness'](_0x2cf860,_0x1b1f2b,_0x5c5aa7||null,_0x57e2a6),_0x2cf860['createdAt']=_0x591272['createdAt'],_0x2cf860['_isDataLoaded']=!0x0,_0x1c3d89&&_0x1c3d89['@external']){const _0x113627=_0x1c3d89['@external'],_0x27ced4=this['_getExternalAuthor'](_0x113627['authorName']);_0x2cf860['authoredAt']=_0x113627['createdAt'],_0x2cf860['author']=_0x27ced4,_0x2cf860['isExternal']=!0x0;}else _0x2cf860['authoredAt']=_0x591272['createdAt'];switch(_0x591272['data']&&(_0x2cf860['data']=_0x591272['data']),_0x591272['attributes']&&(_0x2cf860['attributes']=_0x591272['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2cf860['_saved']=!0x0),this['_suggestionState']['get'](_0x2cf860)){case'notReady':this['_suggestionState']['set'](_0x2cf860,'dataReady');break;case'markerReady':_0x2cf860['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2cf860])),this['_refreshSuggestionsChain'](new Set([_0x2cf860])),this['_suggestionState']['set'](_0x2cf860,'ready'),this['fire']('suggestionLoaded',_0x2cf860)):this['_suggestionState']['set'](_0x2cf860,'removed');}return _0x2cf860;}['acceptSuggestion'](_0x4c26ff){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x13c335 of _0x4c26ff['getAllAdjacentSuggestions']())_0x13c335['accept']();});});}['discardSuggestion'](_0xd6159b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x363884 of _0xd6159b['getAllAdjacentSuggestions']())_0x363884['discard']();});});}['enableCommand'](_0x6e9293,_0x1b42b6){const _0x56121a=this['editor']['commands']['get'](_0x6e9293);if(!_0x56121a)throw new _0x222665('track-changes-command-not-found',this,{'commandName':_0x6e9293});if(this['_enabledCommands']['has'](_0x56121a))throw new _0x222665('track-changes-enable-command-twice',this,{'commandName':_0x6e9293});this['_enabledCommands']['add'](_0x56121a),_0x1b42b6&&_0x56121a['on']('execute',(_0x4e298a,_0x4cd352)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4cd352['length']>0x0&&_0x4cd352[_0x4cd352['length']-0x1]&&_0x4cd352[_0x4cd352['length']-0x1]['forceDefaultExecution']?_0x4cd352['pop']():(_0x4e298a['return']=_0x1b42b6((..._0x4f9321)=>_0x56121a['execute'](..._0x4f9321,{'forceDefaultExecution':!0x0}),..._0x4cd352),_0x4e298a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x16c2af){let _0x25b46b,_0x4f1060;const _0x286e45=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x25b46b=_0x16c2af();}catch(_0x20a7b1){_0x4f1060=_0x20a7b1;}return _0x286e45||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4f1060&&_0x222665['rethrowUnexpectedError'](_0x4f1060,this),_0x25b46b;}['markInsertion'](_0x17fb54,_0x331fcd=null,_0x1b1ac9={}){if(_0x17fb54['isCollapsed'])return null;const _0x1e2aca=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2fdfce,meta:_0x17004b}of this['_findSuggestions'](_0x17fb54,'insertion'))if(_0x17004b['isOwn']){if(!_0x17004b['isNextTo']){if(_0x17004b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2fdfce,_0x1b1ac9))continue;return _0x2fdfce;}if(Lt(_0x2fdfce,_0x1b1ac9))return _0x2fdfce;this['_breakSuggestionMarker'](_0x2fdfce,_0x17fb54['start'],_0x17fb54['end']);break;}if(_0x331fcd==_0x2fdfce['subType']&&Lt(_0x2fdfce,_0x1b1ac9)){const _0x5414bd=_0x2fdfce['getFirstRange']();return _0x5414bd['start']['isEqual'](_0x17fb54['end'])?this['_setSuggestionRange'](_0x2fdfce,this['_model']['createRange'](_0x17fb54['start'],_0x5414bd['end'])):this['_setSuggestionRange'](_0x2fdfce,this['_model']['createRange'](_0x5414bd['start'],_0x17fb54['end'])),_0x2fdfce;}}const _0x1183fe=_0x299adf(),_0x31be06=_0x1e2aca['id'],_0x2f50b6=_0x331fcd?'insertion:'+_0x331fcd:'insertion',_0x44dd08=this['_setSuggestionData']({'id':_0x1183fe,'type':_0x2f50b6,'createdAt':new Date(),'authorId':_0x31be06,'attributes':_0x1b1ac9});return this['_addSuggestionMarker'](_0x2f50b6,_0x1183fe,_0x31be06,_0x17fb54),_0x44dd08;}['markMultiRangeInsertion'](_0x561317,_0x368f59='multi',_0x4f3b52={}){const _0x2ccaed=this['editor']['plugins']['get']('Users')['me'],_0x585cdb=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x368f59,'join');for(const _0x3e3818 of this['getSuggestions']())if(_0x3e3818['author']['id']==_0x2ccaed['id']&&'insertion'==_0x3e3818['type']&&_0x3e3818['subType']==_0x368f59&&Lt(_0x3e3818,_0x4f3b52)&&(_0x585cdb(_0x3e3818['getRanges'](),_0x561317)||_0x585cdb(_0x561317,_0x3e3818['getRanges']()))){for(const _0x42c4ba of _0x561317)_0x3e3818['addRange'](_0x42c4ba);return _0x3e3818;}for(const {suggestion:_0x38a06a,meta:_0x59f9ec}of this['_findSuggestions'](_0x561317,'insertion')){if(!_0x59f9ec['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x59f9ec['containsRangeInObject'])continue;if(!Lt(_0x38a06a,_0x4f3b52))continue;let _0x2c8130=!0x0;for(const _0x19dc6c of _0x38a06a['getRanges']())for(const _0x471c0c of _0x561317)if(!_0x19dc6c['containsRange'](_0x471c0c)){_0x2c8130=!0x1;break;}if(_0x2c8130)return _0x38a06a;}const _0x4045bc=_0x299adf(),_0x1999a8=_0x2ccaed['id'],_0x13f91e='insertion:'+_0x368f59,_0x22c39e=this['_setSuggestionData']({'id':_0x4045bc,'type':_0x13f91e,'createdAt':new Date(),'authorId':_0x1999a8,'attributes':_0x4f3b52});for(const _0x48e50c of _0x561317)this['_addSuggestionMarker'](_0x13f91e,_0x4045bc,_0x1999a8,_0x48e50c,u['getMultiRangeId']());return _0x22c39e;}['markInlineFormat'](_0x43e738,_0x5b3771,_0x31c10e=null,_0x21ca85={}){if(_0x31c10e=_0x31c10e||Vt(_0x5b3771),_0x43e738['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x568f04=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x31c10e,'accept');return this['forceDefaultExecution'](()=>_0x568f04([_0x43e738],_0x5b3771,_0x21ca85)),null;}const _0x2f54e5=this['editor']['plugins']['get']('Users')['me'],_0x5d2a93=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x24a8c9,meta:_0x1f60af}of this['_findSuggestions'](_0x43e738,'insertion'))_0x1f60af['isOwn']&&!_0x1f60af['isInsideObject']&&_0x5d2a93['push'](..._0x24a8c9['getRanges']());}const _0x3790b8=function(_0x5a6762,_0xb8e5ab){const _0x5187b2=[];for(const _0x5318ba of _0xb8e5ab){const _0xaad249=_0x5a6762['getIntersection'](_0x5318ba);_0xaad249&&_0x5187b2['push'](_0xaad249);}return _0x5187b2;}(_0x43e738,_0x5d2a93),_0x52ad69=function(_0x335f14,_0x199455){const _0x434e28=[_0x335f14];for(const _0x1fceaf of _0x199455){let _0x38b1f6=0x0;for(;_0x38b1f6<_0x434e28['length'];){const _0x555e13=_0x434e28[_0x38b1f6]['getDifference'](_0x1fceaf);_0x434e28['splice'](_0x38b1f6,0x1,..._0x555e13),_0x38b1f6+=_0x555e13['length'];}}return _0x434e28;}(_0x43e738,_0x5d2a93);_0x3790b8['length']&&this['_model']['change'](()=>{for(const _0x22a6d0 of _0x3790b8){const _0x3eeb49=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x31c10e,'accept');this['forceDefaultExecution'](()=>_0x3eeb49([_0x22a6d0],_0x5b3771,_0x21ca85));}});for(const _0x1c1f1c of _0x52ad69){let _0x299d50=null,_0x5226a0=_0x1c1f1c['start'],_0x22b637=_0x1c1f1c['end'];for(const {suggestion:_0x1f1a12,meta:_0x199f1c}of this['_findSuggestions'](_0x1c1f1c,'formatInline')){if(!_0x199f1c['isOwn'])continue;if(_0x1f1a12['subType']!=_0x31c10e)continue;if(!Lt(_0x1f1a12,_0x21ca85))continue;const _0x19a014=_0x1f1a12['getFirstRange']();if(_0x19a014['containsRange'](_0x1c1f1c,!0x0))return null;_0x5226a0=_0x5226a0['isBefore'](_0x19a014['start'])?_0x5226a0:_0x19a014['start'],_0x22b637=_0x22b637['isAfter'](_0x19a014['end'])?_0x22b637:_0x19a014['end'],_0x299d50?_0x19a014['start']['isBefore'](_0x299d50['getFirstRange']()['start'])?(_0x299d50['removeMarkers'](),_0x299d50=_0x1f1a12):_0x1f1a12['removeMarkers']():_0x299d50=_0x1f1a12;}const _0x20fe50=this['_model']['createRange'](_0x5226a0,_0x22b637);if(_0x299d50)this['_setSuggestionRange'](_0x299d50,_0x20fe50);else{const _0x5543d1=_0x299adf(),_0xa072ea=_0x2f54e5['id'];this['_setSuggestionData']({'id':_0x5543d1,'type':'formatInline:'+_0x31c10e,'data':_0x5b3771,'createdAt':new Date(),'authorId':_0xa072ea,'attributes':_0x21ca85}),this['_addSuggestionMarker']('formatInline:'+_0x31c10e,_0x5543d1,_0xa072ea,_0x20fe50);}}return null;}['markBlockFormat'](_0x633e54,_0x37183b,_0x51897c=[],_0x1b853d=null,_0x1507d2={}){_0x37183b['formatGroupId']||(_0x37183b['formatGroupId']=_0x37183b['commandName']),_0x37183b['multipleBlocks']=_0x633e54['is']('range'),_0x1b853d=_0x1b853d||Vt(_0x37183b);const _0x1c3d3e=_0x51897c['map'](_0x5d1b91=>Gt(_0x5d1b91,this['_model'])),_0x5e74a5=_0x633e54['is']('range')?_0x633e54:Gt(_0x633e54,this['_model']);if('never'===this['_trackFormatChanges']){const _0x8c4a70=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b853d,'accept');return this['forceDefaultExecution'](()=>_0x8c4a70([_0x5e74a5],_0x37183b,_0x1507d2)),null;}_0x1c3d3e['push'](_0x5e74a5);let _0x35158a=!0x0;for(const _0x5a0c83 of _0x1c3d3e)if(!this['_rangeIsInLocalUserInsertion'](_0x5a0c83)){_0x35158a=!0x1;break;}if(_0x35158a&&'always'!==this['_trackFormatChanges']){const _0x509954=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b853d,'accept');return this['forceDefaultExecution'](()=>_0x509954([_0x5e74a5],_0x37183b,_0x1507d2)),null;}let _0x24940e=null,_0x398c3d=_0x5e74a5['start'],_0x1a1fd9=_0x5e74a5['end'];for(const {suggestion:_0x5dd8d9,meta:_0x1eb8e0}of this['_findSuggestions'](_0x5e74a5,'formatBlock')){if(!_0x1eb8e0['isOwn'])continue;if(_0x1eb8e0['isNextTo']||_0x1eb8e0['containsRangeInObject']||_0x1eb8e0['isInsideObject'])continue;if(_0x5dd8d9['data']['formatGroupId']!=_0x37183b['formatGroupId'])continue;if(!Lt(_0x5dd8d9,_0x1507d2))continue;const _0x449448=_0x5dd8d9['getFirstRange']();if(_0x5dd8d9['subType']==_0x1b853d){if(_0x449448['containsRange'](_0x5e74a5,!0x0))return null;_0x398c3d=_0x398c3d['isBefore'](_0x449448['start'])?_0x398c3d:_0x449448['start'],_0x1a1fd9=_0x1a1fd9['isAfter'](_0x449448['end'])?_0x1a1fd9:_0x449448['end'],_0x24940e?_0x449448['start']['isBefore'](_0x24940e['getFirstRange']()['start'])?(_0x24940e['removeMarkers'](),_0x24940e=_0x5dd8d9):_0x5dd8d9['removeMarkers']():_0x24940e=_0x5dd8d9;}else{const _0x369c5e=_0x5e74a5['getIntersection'](_0x449448);this['_cutOutSuggestionMarker'](_0x5dd8d9,_0x369c5e);}}const _0x44d27f=this['editor']['plugins']['get']('Users')['me'],_0x3bac89=_0x299adf(),_0x41a5da=_0x44d27f['id'];if(_0x24940e)return this['_setSuggestionRange'](_0x24940e,this['_model']['createRange'](_0x398c3d,_0x1a1fd9)),_0x24940e;{const _0x2ae11a=this['_setSuggestionData']({'id':_0x3bac89,'type':'formatBlock:'+_0x1b853d,'data':_0x37183b,'createdAt':new Date(),'authorId':_0x41a5da,'attributes':_0x1507d2});return this['_addSuggestionMarker']('formatBlock:'+_0x1b853d,_0x3bac89,_0x41a5da,this['_model']['createRange'](_0x398c3d,_0x1a1fd9)),_0x2ae11a;}}['markMultiRangeBlockFormat'](_0x3ab7f4,_0x3fafba,_0x3b35ef=[],_0x247f78=null,_0x246e3f={}){_0x3fafba['formatGroupId']||(_0x3fafba['formatGroupId']=_0x3fafba['commandName']);const _0x1e1b92=_0x3ab7f4[0x0];_0x3fafba['multipleBlocks']=_0x1e1b92['is']('range'),_0x247f78=_0x247f78||Vt(_0x3fafba);const _0x28cabd=_0x3b35ef['map'](_0x1bff06=>Gt(_0x1bff06,this['_model'])),_0x1644cb=_0x1e1b92['is']('range')?_0x3ab7f4:_0x3ab7f4['map'](_0x52a81c=>Gt(_0x52a81c,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4ea9c8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x247f78,'accept');return this['forceDefaultExecution'](()=>_0x4ea9c8(_0x1644cb,_0x3fafba,_0x246e3f)),null;}_0x28cabd['push'](..._0x1644cb);let _0x4c92f7=!0x0;for(const _0x536894 of _0x28cabd)if(!this['_rangeIsInLocalUserInsertion'](_0x536894)){_0x4c92f7=!0x1;break;}if(_0x4c92f7&&'always'!==this['_trackFormatChanges']){const _0x26bce6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x247f78,'accept');return this['forceDefaultExecution'](()=>_0x26bce6(_0x1644cb,_0x3fafba,_0x246e3f)),null;}const _0x4b87af=this['editor']['plugins']['get']('Users')['me'];for(const _0x51f303 of this['getSuggestions']()){if(_0x51f303['author']['id']!=_0x4b87af['id'])continue;if('formatBlock'!=_0x51f303['type']||_0x51f303['data']['formatGroupId']!=_0x3fafba['formatGroupId'])continue;if(!Lt(_0x51f303,_0x246e3f))continue;const _0x547895=_0x51f303['subType']==_0x247f78;for(let _0x246922=0x0;_0x246922<_0x1644cb['length'];_0x246922++){const _0x14ee7a=_0x1644cb[_0x246922];for(const _0xe85673 of _0x51f303['getMarkers']()){const _0x4eeced=_0xe85673['getRange']();if(_0x14ee7a['isEqual'](_0x4eeced)){_0x547895?(_0x1644cb['splice'](_0x246922,0x1),_0x246922--):_0x51f303['removeMarker'](_0xe85673['name']);break;}}}}if(0x0==_0x1644cb['length'])return null;const _0x59be39=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x247f78,'join');for(const _0x2418ae of this['getSuggestions']())if(_0x2418ae['author']['id']==_0x4b87af['id']&&'formatBlock'==_0x2418ae['type']&&_0x2418ae['data']['formatGroupId']==_0x3fafba['formatGroupId']&&_0x2418ae['subType']==_0x247f78&&Lt(_0x2418ae,_0x246e3f)&&(_0x59be39(_0x2418ae['getRanges'](),_0x1644cb)||_0x59be39(_0x1644cb,_0x2418ae['getRanges']()))){for(const _0x37c669 of _0x1644cb)_0x2418ae['addRange'](_0x37c669);return _0x2418ae;}const _0x3d2992=_0x299adf(),_0x1a02ac=_0x4b87af['id'],_0x31cb87='formatBlock:'+_0x247f78,_0x3531f5=this['_setSuggestionData']({'id':_0x3d2992,'type':_0x31cb87,'data':_0x3fafba,'createdAt':new Date(),'authorId':_0x1a02ac,'attributes':_0x246e3f});for(const _0xd100dc of _0x1644cb)this['_addSuggestionMarker'](_0x31cb87,_0x3d2992,_0x1a02ac,_0xd100dc,u['getMultiRangeId']());return _0x3531f5;}['markDeletion'](_0x54e802,_0xe00505=null,_0x599f0b={}){if(_0x54e802['isCollapsed'])return null;const _0x12d191=this['editor']['plugins']['get']('Users')['me'],_0x310f3a=new _0x2a1164(_0x54e802['start'],_0x54e802['end']);for(const {suggestion:_0x1fb565,meta:_0x6dc73e}of this['_findSuggestions'](_0x310f3a,'insertion'))if(_0x6dc73e['isOwn']&&!_0x6dc73e['isNextTo']){if(_0x1fb565['isMultiRange']){const _0x36033e=_0x1fb565['getRanges']()['filter'](_0x5a12e6=>'$graveyard'!=_0x5a12e6['root']['rootName']);_0x36033e['every'](_0x33db28=>_0x310f3a['containsRange'](_0x33db28,!0x0))&&_0x1fb565['discard']();if(_0x36033e['some'](_0x2f19ea=>_0x2f19ea['containsRange'](_0x310f3a,!0x0))){const _0x5b347e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xe00505,'accept');return this['forceDefaultExecution'](()=>_0x5b347e([_0x310f3a],null,_0x599f0b)),null;}}else{const _0x5ba637=_0x310f3a['getIntersection'](_0x1fb565['getFirstRange']());null!==_0x5ba637&&_0x1fb565['_onDiscard']([_0x5ba637],null,_0x599f0b);}}if(_0x310f3a['detach'](),_0x310f3a['isCollapsed']||'$graveyard'==_0x310f3a['root']['rootName'])return null;let _0x29e6ab=null,_0x152529=_0x310f3a['start'],_0x4740f6=_0x310f3a['end'];const _0x164f6f=this['_findSuggestions'](_0x310f3a,'deletion');for(const {suggestion:_0x416b39,meta:_0x5095d9}of _0x164f6f){const _0x5ebc2c=this['_model']['createRange'](_0x152529,_0x4740f6);if(_0x5095d9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5095d9['containsRangeInObject']&&!_0x5095d9['isInsideObject'])){if(_0x416b39['isMultiRange']){if(!Lt(_0x416b39,_0x599f0b))continue;let _0x1c5e79=!0x0;for(const _0x3bf1d0 of _0x416b39['getRanges']()){if(_0x3bf1d0['containsRange'](_0x5ebc2c,!0x0))return _0x416b39;_0x5ebc2c['containsRange'](_0x3bf1d0)||(_0x1c5e79=!0x1);}_0x1c5e79&&_0x416b39['discard']();}else{const _0x1bcc37=_0x416b39['getFirstRange']();if(_0x1bcc37['containsRange'](_0x5ebc2c,!0x0))return _0x416b39;if(!Lt(_0x416b39,_0x599f0b)){_0x5ebc2c['containsRange'](_0x1bcc37)?_0x416b39['removeMarkers']():_0x1bcc37['containsPosition'](_0x152529)?_0x152529=_0x1bcc37['end']:_0x1bcc37['containsPosition'](_0x4740f6)&&(_0x4740f6=_0x1bcc37['start']);continue;}_0x152529=_0x152529['isBefore'](_0x1bcc37['start'])?_0x152529:_0x1bcc37['start'],_0x4740f6=_0x4740f6['isAfter'](_0x1bcc37['end'])?_0x4740f6:_0x1bcc37['end'],_0x599f0b=Object['assign']({},_0x416b39['attributes']),_0x29e6ab?_0x1bcc37['start']['isBefore'](_0x29e6ab['getFirstRange']()['start'])?(_0x29e6ab['removeMarkers'](),_0x29e6ab=_0x416b39):_0x416b39['removeMarkers']():_0x29e6ab=_0x416b39;}}}if(_0x29e6ab)return this['_setSuggestionRange'](_0x29e6ab,this['_model']['createRange'](_0x152529,_0x4740f6)),_0x29e6ab;{const _0xd891a8=_0x299adf(),_0x58f919=this['_model']['createRange'](_0x152529,_0x4740f6),_0x58cdc=_0x12d191['id'],_0xc2c1cb=_0xe00505?'deletion:'+_0xe00505:'deletion',_0x5f2612=this['_setSuggestionData']({'id':_0xd891a8,'type':_0xc2c1cb,'createdAt':new Date(),'authorId':_0x58cdc,'attributes':_0x599f0b});return this['_addSuggestionMarker'](_0xc2c1cb,_0xd891a8,_0x58cdc,_0x58f919),_0x5f2612;}}['markMultiRangeDeletion'](_0x4a0197,_0x1c6b1b='multi',_0x88d472={}){const _0x347f50=this['editor']['plugins']['get']('Users')['me'],_0x3d33b5=_0x4a0197['map'](_0x2ece17=>new _0x2a1164(_0x2ece17['start'],_0x2ece17['end'])),_0x521d2b=new Set();for(const {suggestion:_0x2774a2,meta:_0x3b18b2}of this['_findSuggestions'](_0x3d33b5,'insertion'))_0x3b18b2['isOwn']&&!_0x3b18b2['isNextTo']&&_0x521d2b['add'](_0x2774a2);for(const _0x358f35 of _0x521d2b)if(_0x358f35['isMultiRange']){const _0x499b55=_0x358f35['getRanges']();(!_0x358f35['attributes']||!_0x358f35['attributes']['skipNestingCheck'])&&(_0x499b55['every'](_0x5aca4f=>_0x3d33b5['some'](_0x6a5f35=>_0x6a5f35['containsRange'](_0x5aca4f,!0x0)))&&_0x358f35['discard']());if(_0x3d33b5['every'](_0xbd6aa2=>_0x499b55['some'](_0x5c34af=>_0x5c34af['containsRange'](_0xbd6aa2,!0x0)))){const _0x5394d1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c6b1b,'accept');return this['forceDefaultExecution'](()=>_0x5394d1(_0x4a0197,null,_0x88d472)),null;}}else{const _0x157d4f=_0x358f35['getFirstRange']();_0x3d33b5['some'](_0x19e583=>_0x19e583['containsRange'](_0x157d4f,!0x0))&&_0x358f35['discard']();if(_0x3d33b5['every'](_0x177c6e=>_0x157d4f['containsRange'](_0x177c6e,!0x0))){const _0x148f48=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c6b1b,'accept');return this['forceDefaultExecution'](()=>_0x148f48(_0x3d33b5,null,_0x88d472)),null;}}const _0x46e454=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c6b1b,'join');let _0x49033d=null;for(const _0x65d7c0 of this['getSuggestions']())if(_0x65d7c0['author']['id']==_0x347f50['id']&&_0x65d7c0['isInContent']&&'deletion'==_0x65d7c0['type']&&_0x65d7c0['subType']==_0x1c6b1b&&Lt(_0x65d7c0,_0x88d472)&&(_0x46e454(_0x65d7c0['getRanges'](),_0x3d33b5)||_0x46e454(_0x3d33b5,_0x65d7c0['getRanges']()))){if(_0x49033d){if(_0x65d7c0['commentThread']&&_0x65d7c0['commentThread']['length'])continue;for(const _0x292198 of _0x65d7c0['getRanges']())_0x49033d['isIntersectingWithRange'](_0x292198)||_0x49033d['addRange'](_0x292198);_0x65d7c0['removeMarkers']();}else{_0x49033d=_0x65d7c0;for(const _0x2341dc of _0x3d33b5)_0x65d7c0['isIntersectingWithRange'](_0x2341dc)||_0x65d7c0['addRange'](_0x2341dc);}}if(_0x49033d)return _0x49033d;_0x521d2b['clear']();for(const {suggestion:_0x41d0f7,meta:_0x38cffa}of this['_findSuggestions'](_0x3d33b5,'deletion'))_0x38cffa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x38cffa['containsRangeInObject']&&!_0x38cffa['isInsideObject'])&&Lt(_0x41d0f7,_0x88d472)&&_0x521d2b['add'](_0x41d0f7);for(const _0x179f89 of _0x521d2b){const _0x39ee3b=_0x179f89['getRanges']();if(!_0x88d472||!_0x88d472['skipNestingCheck']){if(_0x3d33b5['every'](_0x4620db=>_0x39ee3b['some'](_0x3c91dd=>_0x3c91dd['containsRange'](_0x4620db,!0x0))))return _0x179f89;}(!_0x179f89['attributes']||!_0x179f89['attributes']['skipNestingCheck'])&&(_0x39ee3b['every'](_0x15cc07=>_0x3d33b5['some'](_0x19f160=>_0x19f160['containsRange'](_0x15cc07,!0x0)))&&_0x179f89['discard']());}const _0x37181a=_0x299adf(),_0xb5a421=_0x347f50['id'],_0x2fc065='deletion:'+_0x1c6b1b,_0xe68d60=this['_setSuggestionData']({'id':_0x37181a,'type':_0x2fc065,'createdAt':new Date(),'authorId':_0xb5a421,'attributes':_0x88d472});for(const _0x35cdd5 of _0x3d33b5)_0x35cdd5['detach'](),_0x35cdd5['isCollapsed']||'$graveyard'==_0x35cdd5['root']['rootName']||this['_addSuggestionMarker'](_0x2fc065,_0x37181a,_0xb5a421,_0x35cdd5,u['getMultiRangeId']());return _0xe68d60;}['markAttributeChange'](_0x3ad935,_0x462807,_0x1d5953,_0x5d053a,_0x36e216){if(_0x3ad935['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4c1a7d=this['editor']['plugins']['get']('Users')['me']['id'],_0x36c35a=Array['from'](this['_suggestions']['values']())['filter'](_0x54af4c=>'attribute'==_0x54af4c['type']&&_0x54af4c['data']['key']==_0x462807&&_0x54af4c['isIntersectingWithRange'](_0x3ad935));if('default'===this['_trackFormatChanges']){const _0xaf68be=this['_findSuggestions'](_0x3ad935,'insertion')['filter'](({meta:_0x5da27f})=>_0x5da27f['isOwn']&&!_0x5da27f['isInsideObject']&&!_0x5da27f['isNextTo'])['map'](({suggestion:_0x1dd87f})=>_0x1dd87f);_0x36c35a['unshift'](..._0xaf68be);}const _0x1433f0=new Map([[_0x3ad935,_0x1d5953]]);for(const _0x2519d of _0x36c35a){const _0x51ec1b='attribute'==_0x2519d['type']?_0x2519d['data']['oldValue']:void 0x0,_0x2a0375=_0x2519d['getFirstRange'](),_0x4f79a4=Array['from'](_0x1433f0['keys']())['find'](_0x14a47e=>_0x14a47e['isIntersecting'](_0x2a0375));if(!_0x4f79a4)continue;const _0x1c4275=_0x4f79a4['getDifference'](_0x2a0375);this['_isBlockAttribute'](_0x462807)&&'insertion'==_0x2519d['type']&&0x0!=_0x1c4275['length']||(_0x1433f0['delete'](_0x4f79a4),_0x1c4275['forEach'](_0x5d9df2=>{_0x1433f0['set'](_0x5d9df2,_0x1d5953);}),'insertion'!=_0x2519d['type']&&_0x51ec1b!=_0x5d053a&&_0x1433f0['set'](_0x4f79a4['getIntersection'](_0x2a0375),_0x51ec1b));}const _0x533d50=[];for(const [_0x2eb5c3,_0x3d41fc]of _0x1433f0){const _0x5a97a6=_0x299adf(),_0x12fdad={'key':_0x462807,'oldValue':_0x3d41fc,'newValue':_0x5d053a};_0x462807['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':_0x462807});const _0x515a6f=('attribute:'+(_0x462807+'|'+Vt({'newValue':_0x5d053a})))['substring'](0x0,0x3c),_0x119fde=this['_setSuggestionData']({'id':_0x5a97a6,'type':_0x515a6f,'data':_0x12fdad,'createdAt':new Date(),'authorId':_0x4c1a7d,'attributes':_0x36e216});_0x533d50['push'](_0x119fde),this['_addSuggestionMarker'](_0x515a6f,_0x5a97a6,_0x4c1a7d,_0x2eb5c3);}return _0x533d50;}['enableDefaultAttributesIntegration'](_0x2d1d60){this['enableCommand'](_0x2d1d60,(_0x4f8393,..._0x14583f)=>{this['_recordAttributeChanges'](()=>{_0x4f8393(..._0x14583f);});});}['registerBlockAttribute'](_0x5f362d){this['_blockAttributeKeys']['add'](_0x5f362d);}['registerInlineAttribute'](_0x5c70d1){this['_inlineAttributeKeys']['add'](_0x5c70d1);}['_getAttributeKey'](_0x468a3d){return'attribute'==_0x468a3d['type']?_0x468a3d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3ce0af,_0x5cba1b){const _0x3f6088=_0x3ce0af['getFirstMarker']();this['_model']['change'](_0x201260=>{_0x201260['updateMarker'](_0x3f6088,{'range':_0x5cba1b});});}['_addThreadToSuggestion'](_0x2f5356){const _0x35c05c=_0x2f5356['id'],_0x3ffc91=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x35c05c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3ffc91,'threadId':_0x35c05c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x295e02=this['_commentsRepository']['getCommentThread'](_0x35c05c);_0x295e02['unbind']('isRemovable'),_0x295e02['isRemovable']=!0x1,_0x2f5356['commentThread']=_0x295e02;}['_checkSuggestionCorrectness'](_0x3d9dfa,_0x2280bf,_0x5e5f92,_0x329380){if(_0x3d9dfa['type']!=_0x2280bf||_0x3d9dfa['subType']!=_0x5e5f92||_0x3d9dfa['creator']['id']!=_0x329380)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x222665('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3e2f3e,_0x10b9f0){const _0x394ca5=_0x3e2f3e['getFirstRange']();if(_0x10b9f0['isEqual'](_0x394ca5))_0x3e2f3e['removeMarkers']();else{if(_0x394ca5['containsRange'](_0x10b9f0)){const _0x22820e=this['_model']['createPositionAt'](_0x10b9f0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3e2f3e,this['_model']['createRange'](_0x394ca5['start'],_0x22820e));const _0x574599=_0x299adf(),_0x53088c=_0x3e2f3e['creator']['id'],_0x4be78e=_0x3e2f3e['type']+':'+_0x3e2f3e['subType'];this['_setSuggestionData']({'id':_0x574599,'type':_0x4be78e,'createdAt':new Date(),'authorId':_0x53088c,'data':_0x3e2f3e['data'],'attributes':_0x3e2f3e['attributes']});const _0x97f20d=this['_model']['createPositionAt'](_0x10b9f0['end']['parent'],'after'),_0x530fcd=this['_model']['createRange'](_0x97f20d,_0x394ca5['end']);this['_addSuggestionMarker'](_0x4be78e,_0x574599,_0x53088c,_0x530fcd);}else{if(_0x394ca5['containsPosition'](_0x10b9f0['start'])){const _0x545f33=this['_model']['createPositionAt'](_0x10b9f0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3e2f3e,this['_model']['createRange'](_0x394ca5['start'],_0x545f33));}else{const _0x136eea=this['_model']['createPositionAt'](_0x10b9f0['end']['parent'],'after');this['_setSuggestionRange'](_0x3e2f3e,this['_model']['createRange'](_0x136eea,_0x394ca5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xa10342){for(const {suggestion:_0x322651,meta:_0x18d301}of this['_findSuggestions'](_0xa10342,'insertion')){if(!_0x18d301['isOwn'])continue;const _0x2cb284=_0x322651['getRanges']();for(const _0x405b70 of _0x2cb284)if(!_0xa10342['getDifference'](_0x405b70)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3a1d7e){const _0x3d8d9e=this['editor']['plugins']['get']('Users')['getUser'](_0x3a1d7e);if(!_0x3d8d9e)throw new _0x222665('track-changes-user-not-found',this);return _0x3d8d9e;}['_getExternalAuthor'](_0x3a22c9){const _0x2b2ae5=this['editor']['plugins']['get']('Users'),_0x203800=_0x49c99a('external:'+_0x3a22c9),_0x3ac00b=_0x2b2ae5['getUser'](_0x203800);return _0x3ac00b||_0x2b2ae5['addUser']({'id':_0x203800,'name':_0x3a22c9});}['_createSuggestion'](_0x40a103,_0x458f92,_0x4a925d,_0x4e6838,_0x4f2bb1){const _0x19c38d=this['_getAuthorFromId'](_0x4e6838),_0x1f5425=this['_suggestionFactory']['buildSuggestion'](_0x40a103,_0x458f92,_0x4a925d,_0x19c38d,_0x4f2bb1,_0x8a90fd=>{this['_updateSuggestionData'](_0x4a925d,{'attributes':_0x8a90fd});const _0x4419e3=this['getSuggestion'](_0x4a925d);this['_joinWithAdjacentSuggestions'](new Set([_0x4419e3])),this['_refreshSuggestionsChain'](new Set([_0x4419e3]));});return this['listenTo'](_0x1f5425,'accept',()=>{this['_updateSuggestionData'](_0x4a925d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1f5425,'discard',()=>{this['_updateSuggestionData'](_0x4a925d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4a925d,_0x1f5425),this['_suggestionState']['set'](_0x1f5425,'notReady'),_0x1f5425;}['_splitMarkerName'](_0x5e450a){const _0x26a659=_0x5e450a['split'](':');return{'group':_0x26a659[0x0],'type':_0x26a659[0x1],'subType':_0x26a659['length']>=0x5?_0x26a659[0x2]:null,'id':_0x26a659['length']<0x5?_0x26a659[0x2]:_0x26a659[0x3],'authorId':_0x26a659['length']<0x5?_0x26a659[0x3]:_0x26a659[0x4],'markerCount':0x6==_0x26a659['length']?_0x26a659[0x5]:null};}['_breakSuggestionMarker'](_0x34585a,_0x1d3c22,_0xeff264){const _0x33e2d6=_0x34585a['getFirstRange'](),_0x1b0900=_0x33e2d6['start'],_0x55bd6d=_0x33e2d6['end'];this['_setSuggestionRange'](_0x34585a,this['_model']['createRange'](_0x1b0900,_0x1d3c22));const _0x4d7d4e=_0x299adf(),_0x1e923a=_0x34585a['creator']['id'],_0xf56043=_0x34585a['type']+(_0x34585a['subType']?':'+_0x34585a['subType']:'');this['_setSuggestionData']({'id':_0x4d7d4e,'type':_0xf56043,'createdAt':new Date(),'authorId':_0x1e923a,'originalSuggestionId':_0x34585a['id'],'attributes':_0x34585a['attributes'],'data':_0x34585a['data']});const _0x496885=this['_getAttributeKey'](_0x34585a);('formatBlock'==_0x34585a['type']||_0x496885&&this['_isBlockAttribute'](_0x496885))&&(_0xeff264=this['_model']['createPositionBefore'](_0xeff264['parent'])),this['_addSuggestionMarker'](_0xf56043,_0x4d7d4e,_0x1e923a,this['_model']['createRange'](_0xeff264,_0x55bd6d));}['_findSuggestions'](_0x1fb986,_0x510758=null){const _0x40154f=[],_0x280b87=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1fb986)||(_0x1fb986=[_0x1fb986]);for(const _0x45a136 of this['getSuggestions']()){if(!_0x45a136['isInContent'])continue;if(_0x510758&&_0x45a136['type']!=_0x510758)continue;let _0x12e23b=!0x1;for(const _0x12eb7b of _0x45a136['getRanges']()){for(const _0x507ba0 of _0x1fb986){const _0x2ef563=_0x507ba0['start']['isEqual'](_0x12eb7b['end'])||_0x507ba0['end']['isEqual'](_0x12eb7b['start']);if(_0x2ef563||_0x507ba0['getIntersection'](_0x12eb7b)){const _0x33a49d=_0x507ba0['containsRange'](_0x12eb7b)&&Rt(this['_model']['schema'],_0x12eb7b['start'],_0x507ba0),_0x2fce81=_0x12eb7b['containsRange'](_0x507ba0)&&Rt(this['_model']['schema'],_0x507ba0['start'],_0x12eb7b);_0x40154f['push']({'suggestion':_0x45a136,'meta':{'isOwn':_0x280b87==_0x45a136['author'],'isNextTo':_0x2ef563,'isInsideObject':_0x33a49d,'containsRangeInObject':_0x2fce81}}),_0x12e23b=!0x0;break;}}if(_0x12e23b)break;}}return _0x40154f;}['_addSuggestionMarker'](_0x97f70d,_0x4638ba,_0xe0f270,_0xd48ca3,_0x1cddbf){this['_model']['change'](_0x189633=>{let _0x38c3a3='suggestion:'+_0x97f70d+':'+_0x4638ba+':'+_0xe0f270;_0x1cddbf&&(_0x38c3a3=_0x38c3a3+':'+_0x1cddbf),_0x189633['addMarker'](_0x38c3a3,{'range':_0xd48ca3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x15ac96){const _0x3bc336=_0x15ac96['previous'],_0x5f086c=_0x15ac96['next'];_0x15ac96['previous']=null,_0x15ac96['next']=null,null!=_0x3bc336&&_0x3bc336['next']==_0x15ac96&&(_0x3bc336['next']=_0x5f086c),null!=_0x5f086c&&_0x5f086c['previous']==_0x15ac96&&(_0x5f086c['previous']=_0x3bc336),'ready'==this['_suggestionState']['get'](_0x15ac96)&&(this['_suggestionState']['set'](_0x15ac96,'removed'),this['fire']('suggestionUnloaded',_0x15ac96,_0x3bc336,_0x5f086c));}['_setSuggestionData'](_0x320730){const _0x36310a=_0x320730['id'],_0x22637e=this['addSuggestionData'](_0x320730);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x9e5c0b=this['editor']['plugins']['get']('PendingActions'),_0x532e03=_0x22637e['hasComments'],_0x43b814=_0x22637e['subType']?_0x22637e['type']+':'+_0x22637e['subType']:_0x22637e['type'],_0xa8f71b=this['editor']['locale'],_0x27591f=_0x9e5c0b['add'](o(_0xa8f71b,'PENDING_ACTION_SUGGESTION')),_0x2f49d3={'id':_0x36310a,'type':_0x43b814,'hasComments':_0x532e03,'data':_0x320730['data']||null,'originalSuggestionId':_0x320730['originalSuggestionId']||null,'attributes':_0x22637e['attributes']};this['_adapter']['addSuggestion'](_0x2f49d3)['then'](_0x10f73b=>{_0x22637e['_saved']=!0x0,_0x9e5c0b['remove'](_0x27591f),_0x10f73b&&_0x10f73b['createdAt']&&(this['_suggestions']['get'](_0x36310a)['createdAt']=_0x10f73b['createdAt']);})['catch'](_0x5a3551=>{throw _0x49df31('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x22637e['discard']();}),_0x22637e['stopListening'](),this['_suggestions']['delete'](_0x22637e['id']),this['_suggestionState']['delete'](_0x22637e),_0x5a3551;});}return _0x22637e;}['_isBlockAttribute'](_0x34ec38){return this['_blockAttributeKeys']['has'](_0x34ec38);}['_updateSuggestionData'](_0x1033aa,_0x587f1c){const _0x422534=this['editor']['plugins']['get']('PendingActions'),_0x5328b5=this['getSuggestion'](_0x1033aa);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5328b5['_saved']){const _0x56673b=_0x422534['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1033aa,_0x587f1c)['then'](()=>{_0x422534['remove'](_0x56673b);});}else _0x5328b5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1033aa,_0x587f1c);});}}['_getSuggestionData'](_0x17bcda){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x222665('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x17bcda);}['_handleNewSuggestionMarker'](_0x24adad){const {id:_0x420d78,type:_0x2a4cc4,subType:_0x488e51,authorId:_0x17c602}=this['_splitMarkerName'](_0x24adad),_0x18feb4=this['_suggestions']['get'](_0x420d78)||this['_createSuggestion'](_0x2a4cc4,_0x488e51,_0x420d78,_0x17c602,{});switch(this['_checkSuggestionCorrectness'](_0x18feb4,_0x2a4cc4,_0x488e51,_0x17c602),this['_suggestionState']['get'](_0x18feb4)){case'notReady':this['_getSuggestionData'](_0x420d78)['then'](_0x3b5176=>{let _0x2e6dda=Promise['resolve']();_0x3b5176['hasComments']&&(_0x2e6dda=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x420d78})),_0x2e6dda['then'](()=>{this['addSuggestionData'](_0x3b5176)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x18feb4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x420d78,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x18feb4,'ready'),this['fire']('suggestionLoaded',_0x18feb4);break;case'ready':this['fire']('suggestionChanged',_0x18feb4);}return _0x18feb4['addMarkerName'](_0x24adad),_0x18feb4;}['_refreshSuggestionsChain'](_0x565640){const _0x70f24=Array['from'](_0x565640),_0x1c132c=_0x70f24['filter'](_0x4c399d=>'attribute'==_0x4c399d['type']);this['_refreshAttributeSuggestionsChain'](_0x1c132c);const _0x38bcc6=_0x70f24['filter'](_0x2d7944=>!_0x2d7944['isMultiRange']&&'attribute'!=_0x2d7944['type']),_0x12bf33=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43b34f=>!_0x43b34f['isMultiRange']&&'attribute'!=_0x43b34f['type']),_0x3dcc0f=_0x12bf33['filter'](_0x325b11=>!_0x565640['has'](_0x325b11)),_0x47f13f=new Map(_0x12bf33['map'](_0x175c19=>[_0x175c19,this['_suggestionFactory']['getSuggestionCallback'](_0x175c19['type'],_0x175c19['subType'],'chain')])),_0x165330=new Map(_0x12bf33['map'](_0xa73075=>[_0xa73075,_0xa73075['getFirstRange']()])),_0x50b131=new Set(),_0x6abbfb=new Set();for(let _0x116d7c=0x0;_0x116d7c<_0x38bcc6['length'];_0x116d7c++)_0x24f824(_0x38bcc6[_0x116d7c],_0x38bcc6,_0x116d7c+0x1);for(let _0x100515=0x0;_0x100515<_0x38bcc6['length'];_0x100515++)_0x24f824(_0x38bcc6[_0x100515],_0x3dcc0f,0x0);const _0x123589=new Set();for(let _0x2e32a1=0x0;_0x2e32a1<_0x38bcc6['length'];_0x2e32a1++){const _0x452ff7=_0x38bcc6[_0x2e32a1];!_0x6abbfb['has'](_0x452ff7)&&_0x452ff7['previous']&&(_0x123589['add'](_0x452ff7['previous']),_0x452ff7['previous']['next']===_0x452ff7&&(_0x452ff7['previous']['next']=null),_0x452ff7['previous']=null),!_0x50b131['has'](_0x452ff7)&&_0x452ff7['next']&&(_0x123589['add'](_0x452ff7['next']),_0x452ff7['next']['previous']===_0x452ff7&&(_0x452ff7['next']['previous']=null),_0x452ff7['next']=null);}function _0x24f824(_0x2997d3,_0x56753c,_0xf74926){for(let _0x573370=_0xf74926;_0x573370<_0x56753c['length'];_0x573370++){const _0x37b930=_0x4d4ead(_0x2997d3,_0x56753c[_0x573370]);_0x37b930&&(_0x37b930[0x0]['next']=_0x37b930[0x1],_0x37b930[0x1]['previous']=_0x37b930[0x0],_0x50b131['add'](_0x37b930[0x0]),_0x6abbfb['add'](_0x37b930[0x1]));}}function _0x4d4ead(_0x5be872,_0x19c9ec){if(_0x5be872['author']['id']!==_0x19c9ec['author']['id'])return null;const _0x2a5c34=_0x47f13f['get'](_0x5be872)(_0x5be872,_0x19c9ec,_0x165330['get'](_0x5be872),_0x165330['get'](_0x19c9ec));if(!_0x2a5c34)return null;return _0x47f13f['get'](_0x19c9ec)(_0x5be872,_0x19c9ec,_0x165330['get'](_0x5be872),_0x165330['get'](_0x19c9ec))?_0x2a5c34[0x1]['commentThread']&&_0x2a5c34[0x1]['commentThread']['length']?null:_0x2a5c34:null;}_0x123589['size']&&this['_refreshSuggestionsChain'](_0x123589);}['_refreshAttributeSuggestionsChain'](_0x4f5873){if(0x0==_0x4f5873['length'])return;const _0x296f4c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x106e0c=>'attribute'==_0x106e0c['type']&&_0x106e0c['_isDataLoaded']),_0x2ca8b9=[],_0x255eb8=new Map();for(const _0x10c1bc of _0x296f4c){const _0x2e1534=_0x49c99a(_0x10c1bc['attributes']);_0x255eb8['has'](_0x2e1534)||(_0x255eb8['set'](_0x2e1534,_0x2ca8b9['length']),_0x2ca8b9['push']([]));const _0x11554e=_0x255eb8['get'](_0x2e1534);_0x2ca8b9[_0x11554e]['push'](_0x10c1bc);}!(function(){_0x2ca8b9['sort']((_0xbd45bd,_0x10829a)=>{const _0x5ae5a6=_0xbd45bd[0x0]['createdAt'],_0x3dab76=_0x10829a[0x0]['createdAt'];return _0x5ae5a6==_0x3dab76?_0xbd45bd[0x0]['attributes']['groupId']<_0x10829a[0x0]['attributes']['groupId']?-0x1:0x1:_0x5ae5a6<_0x3dab76?-0x1:0x1;});for(const _0x46fc5f of _0x2ca8b9)_0x46fc5f['sort']((_0x22141f,_0x47aea2)=>_0x22141f['id']<_0x47aea2['id']?-0x1:0x1);}());for(let _0x10aae8=0x0;_0x10aae8<_0x2ca8b9['length'];_0x10aae8++){if(0x0==_0x2ca8b9[_0x10aae8]['length'])continue;const _0x22eb95=[];for(let _0x513182=_0x10aae8+0x1;_0x513182<_0x2ca8b9['length'];_0x513182++)0x0!=_0x2ca8b9[_0x513182]['length']&&_0x38cff5(_0x2ca8b9[_0x10aae8],_0x2ca8b9[_0x513182])&&_0x22eb95['push'](_0x513182);for(const _0x3f9cef of _0x22eb95)_0x2ca8b9[_0x10aae8]=_0x2ca8b9[_0x10aae8]['concat'](_0x2ca8b9[_0x3f9cef]),_0x2ca8b9[_0x3f9cef]=[];}for(const _0x593480 of _0x2ca8b9)for(let _0x25e7ba=0x0;_0x25e7ba<_0x593480['length'];_0x25e7ba++)_0x593480[_0x25e7ba]['next']=_0x593480[_0x25e7ba+0x1]||null;for(const _0x4017e6 of _0x2ca8b9)for(let _0x1c5ef8=0x0;_0x1c5ef8<_0x4017e6['length'];_0x1c5ef8++)_0x4017e6[_0x1c5ef8]['previous']=_0x4017e6[_0x1c5ef8-0x1]||null;function _0x38cff5(_0x461bbb,_0xdd8a36){if(_0x461bbb[0x0]['attributes']['groupId']!==_0xdd8a36[0x0]['attributes']['groupId']&&_0x461bbb[0x0]['author']!==_0xdd8a36[0x0]['author'])return!0x1;if(!function(_0x5c90ac,_0x1a0a78){if(!_0x5c90ac['hasComments']&&!_0x1a0a78['hasComments'])return!0x0;if(_0x5c90ac['hasComments']&&_0x1a0a78['hasComments'])return!0x1;if(_0x5c90ac['hasComments']&&_0x1a0a78['createdAt']<_0x5c90ac['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1a0a78['hasComments']&&_0x5c90ac['createdAt']<_0x1a0a78['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x461bbb[0x0],_0xdd8a36[0x0]))return!0x1;const _0x323451=Bt(_0x461bbb[0x0]['attributes'],'groupId'),_0x308dfe=Bt(_0xdd8a36[0x0]['attributes'],'groupId');if(!_0x21978e(_0x323451,_0x308dfe))return!0x1;return!!_0x461bbb['every'](_0x54a1c5=>_0xdd8a36['some'](_0x4917e9=>_0x54a1c5['getFirstRange']()['isEqual'](_0x4917e9['getFirstRange']())))&&_0xdd8a36['every'](_0x48f13b=>_0x461bbb['some'](_0x1bfb27=>_0x48f13b['getFirstRange']()['isEqual'](_0x1bfb27['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x456183){const _0x1cd75b=Array['from'](_0x456183),_0x42efb3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4b3f3f=_0x42efb3['filter'](_0x23a261=>!_0x456183['has'](_0x23a261)),_0x3f063d=new Map(_0x1cd75b['map'](_0x2c799b=>[_0x2c799b,this['_suggestionFactory']['getSuggestionCallback'](_0x2c799b['type'],_0x2c799b['subType'],'join')])),_0x46fa53=new Map(_0x42efb3['map'](_0x39f1e1=>[_0x39f1e1,_0x39f1e1['getRanges']()]));for(let _0x3260ff=0x0;_0x3260ff<_0x1cd75b['length'];_0x3260ff++){if(_0x32825a(this,_0x1cd75b[_0x3260ff],_0x1cd75b,_0x3260ff+0x1))return!0x0;}for(let _0x2818f7=0x0;_0x2818f7<_0x1cd75b['length'];_0x2818f7++){if(_0x32825a(this,_0x1cd75b[_0x2818f7],_0x4b3f3f,0x0))return!0x0;}return!0x1;function _0x32825a(_0xad2e7f,_0x3bf8e9,_0x37f873,_0x2e165a){for(let _0x1c0982=_0x2e165a;_0x1c0982<_0x37f873['length'];_0x1c0982++){const _0x1a8c34=_0x37f873[_0x1c0982];if(_0x1a8c34['type']!==_0x3bf8e9['type']||_0x1a8c34['author']['id']!==_0x3bf8e9['author']['id']||_0x1a8c34['subType']!==_0x3bf8e9['subType'])continue;if(!Pt(_0x3bf8e9,_0x1a8c34,['groupId']))continue;if('attribute'==_0x3bf8e9['type']&&_0x3bf8e9['data']['oldValue']!=_0x1a8c34['data']['oldValue'])continue;if('attribute'==_0x3bf8e9['type']&&_0xad2e7f['_isBlockAttribute'](_0x3bf8e9['data']['key']))continue;if('formatBlock'==_0x3bf8e9['type']){const _0x423a20=_0xad2e7f['editor']['model'],_0x47fe75=_0x3bf8e9['getContainedElement']();if(_0x47fe75&&(_0x423a20['schema']['isObject'](_0x47fe75)||_0x423a20['schema']['isLimit'](_0x47fe75)))continue;}const _0x49967c=_0x3f063d['get'](_0x3bf8e9),_0x6bfd7b=_0x46fa53['get'](_0x3bf8e9),_0x2cec4b=_0x46fa53['get'](_0x1a8c34),_0x5887b1=_0x3bf8e9['commentThread']&&_0x3bf8e9['commentThread']['length'],_0x441069=_0x1a8c34['commentThread']&&_0x1a8c34['commentThread']['length'];if(!_0x5887b1&&_0x49967c(_0x2cec4b,_0x6bfd7b))return _0xad2e7f['_joinSuggestions'](_0x1a8c34,_0x3bf8e9),_0x46fa53['delete'](_0x3bf8e9),!0x0;if(!_0x441069&&_0x49967c(_0x6bfd7b,_0x2cec4b))return _0xad2e7f['_joinSuggestions'](_0x3bf8e9,_0x1a8c34),_0x46fa53['delete'](_0x1a8c34),!0x0;}return!0x1;}}['_joinSuggestions'](_0x41f4a4,_0x19666b){if(_0x41f4a4['isMultiRange']){for(const _0x4d7bcb of _0x19666b['getRanges']())_0x41f4a4['addRange'](_0x4d7bcb);}else{const _0x89fcce=_0x19666b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x41f4a4,this['_model']['createRange'](_0x41f4a4['getFirstRange']()['start'],_0x89fcce));}_0x19666b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4b4f7f,_0x1badeb){const _0x269dac=_0x4b4f7f['startsWith']('format')||_0x4b4f7f['startsWith']('attribute')?'FORMATTING':_0x4b4f7f['toUpperCase']();return o(this['editor']['locale'],_0x1badeb+'_'+_0x269dac+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x189dbe=this['editor'];if(!_0x189dbe['ui'])return;const {ariaLiveAnnouncer:_0x250552}=_0x189dbe['ui'];_0x30b415(this['_model'],({left:_0xc3d62e,entered:_0x3d49ff})=>{for(const _0x2e1531 of _0xc3d62e){const {group:_0x34d115,type:_0x1105ee}=this['_splitMarkerName'](_0x2e1531['name']);if('suggestion'===_0x34d115){_0x250552['announce'](this['_getMarkerAnnouncementText'](_0x1105ee,'LEAVE'));break;}}for(const _0x13bf63 of _0x3d49ff){const {group:_0x7eec5,type:_0x3d34e8}=this['_splitMarkerName'](_0x13bf63['name']);if('suggestion'===_0x7eec5){_0x250552['announce'](this['_getMarkerAnnouncementText'](_0x3d34e8,'ENTER'));break;}}});}['_processAttributeChanges'](_0x5700dc){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3c84d3=this['editor'],_0x4c0b6d=_0x3c84d3['model']['document']['differ']['getChanges']();if(0x0==_0x4c0b6d['length'])return!0x1;const _0x8f5b58=[],_0xa0dc67=_0x4c0b6d['filter'](_0x12dc22=>'attribute'==_0x12dc22['type']),_0x486301=_0x4c0b6d['filter'](_0x4dbd83=>'insert'==_0x4dbd83['type']&&'$text'!=_0x4dbd83['name']),_0x36feee=_0x4c0b6d['filter'](_0x2d3044=>'remove'==_0x2d3044['type']&&'$text'!=_0x2d3044['name']);for(const _0x301dd5 of _0xa0dc67)_0x8f5b58['push']({'key':_0x301dd5['attributeKey'],'newValue':_0x301dd5['attributeNewValue'],'oldValue':_0x301dd5['attributeOldValue'],'range':Ot(_0x301dd5['range'],_0x3c84d3['model'])});for(const _0x3c8add of _0x486301){const _0x54db6e=_0x36feee['find'](_0x19ec91=>_0x19ec91['position']['isEqual'](_0x3c8add['position']));_0x54db6e&&_0x8f5b58['push']({'key':m,'newValue':_0x3c8add['name'],'oldValue':_0x54db6e['name'],'range':_0x3c84d3['model']['createRangeOn'](_0x3c8add['position']['nodeAfter'])});}return 0x0!=_0x8f5b58['length']&&this['_reduceExistingSuggestions'](_0x5700dc,_0x8f5b58);}['_processAttributeSuggestions'](_0x3e5ba6){let _0x298e8a=!0x1;const _0x2ae3d0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5517ee=>_0x5517ee['data']['newRange']&&_0x5517ee['name']['startsWith']('suggestion:attribute:'));for(const _0x211a48 of _0x2ae3d0){const {subType:_0x2dcf55,id:_0x2b597f}=this['_splitMarkerName'](_0x211a48['name']),_0xafff4b=_0x2dcf55['split']('|')[0x0];for(const _0x13d1b7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x13d1b7['id']!=_0x2b597f&&'attribute'==_0x13d1b7['type']&&_0x13d1b7['data']&&_0x13d1b7['data']['key']==_0xafff4b&&_0x13d1b7['getFirstRange']()['isIntersecting'](_0x211a48['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x13d1b7,_0x211a48['data']['newRange'],_0x3e5ba6),_0x298e8a=!0x0);}return _0x298e8a;}['_recordAttributeChanges'](_0xac7e){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0xac7e();}['_isRegisteredAttribute'](_0x47e1dd){const _0x3be9de=this['_isBlockAttribute'](_0x47e1dd),_0x5b6f5b=this['_inlineAttributeKeys']['has'](_0x47e1dd);return _0x3be9de||_0x5b6f5b;}['_reduceExistingSuggestions'](_0x46a4eb,_0x57195f){if(0x0==_0x57195f['length'])return!0x1;let _0x2e5b57=!0x1;for(const _0x417833 of _0x57195f){const _0x558ca4=this['_findSuggestions'](_0x417833['range'],'attribute')['filter'](_0x1f2654=>!_0x1f2654['meta']['isNextTo'])['map'](_0x1bd9e8=>_0x1bd9e8['suggestion']),_0x3e8521=_0x49c99a({'newValue':_0x417833['newValue']});_0x558ca4['filter'](_0x37cb1e=>{const [_0x4c6fc0,_0x25eedd]=_0x37cb1e['subType']['split']('|');return _0x4c6fc0==_0x417833['key']&&_0x25eedd!=_0x3e8521;})['forEach'](_0x242eb5=>{this['_reduceSuggestionAttributeRange'](_0x242eb5,_0x417833['range'],_0x46a4eb),_0x2e5b57=!0x0;});}return _0x2e5b57;}['_reduceSuggestionAttributeRange'](_0x446e1b,_0x20ec45,_0x4d9334){const _0x4ed02d=_0x446e1b['getFirstRange']()['getDifference'](_0x20ec45);0x0!==_0x4ed02d['length']?0x1!==_0x4ed02d['length']?this['_breakSuggestionMarker'](_0x446e1b,_0x20ec45['start'],_0x20ec45['end']):this['_setSuggestionRange'](_0x446e1b,_0x4ed02d[0x0]):_0x4d9334['removeMarker'](_0x446e1b['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3d7acc){this['_editor']=_0x3d7acc,this['_model']=_0x3d7acc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x18a7f9,_0x11be62,_0x5a4d5e,_0x29fcca,_0x30b6ab,_0x8bea73){return new u(this['_model'],{'type':_0x18a7f9,'subType':_0x11be62,'id':_0x5a4d5e,'author':_0x29fcca,'creator':_0x29fcca,'attributes':_0x30b6ab,'onAttributesChange':_0x8bea73,'onAccept':(..._0x220590)=>this['getSuggestionCallback'](_0x18a7f9,_0x11be62,'accept')(..._0x220590),'onDiscard':(..._0x46613c)=>this['getSuggestionCallback'](_0x18a7f9,_0x11be62,'discard')(..._0x46613c)});}['registerCustomCallback'](_0x7e3417,_0x5640d4,_0x140ecb,_0x3fe896){const _0xe07fe=_0x7e3417+':'+_0x5640d4+':'+_0x140ecb;this['_customCallbacks']['set'](_0xe07fe,_0x3fe896);}['getSuggestionCallback'](_0x157a6d,_0x26d73a,_0x157275){const _0xa0ddbb=_0x157a6d+':'+_0x26d73a+':'+_0x157275;return this['_customCallbacks']['get'](_0xa0ddbb)||this['_defaultCallbacks']['get'](_0x157a6d+':'+_0x157275);}['_registerDefaultCallbacks'](){const _0x55f644=()=>!0x1,_0x244304=_0x42508d=>{_0x42508d['sort']((_0x146dd6,_0x551210)=>_0x146dd6['start']['isBefore'](_0x551210['start'])?0x1:-0x1),this['_model']['change'](_0x2d2ee9=>{for(const _0x3b99f1 of _0x42508d){let _0xd4e917;_0xd4e917=_0x3b99f1['end']['isAtEnd']&&_0x3b99f1['end']['parent']==_0x3b99f1['start']['nodeAfter']?_0x2d2ee9['createSelection'](_0x3b99f1['start']['nodeAfter'],'on'):_0x2d2ee9['createSelection'](_0x3b99f1),this['_model']['deleteContent'](_0xd4e917,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x830729=(_0x31f7cf,_0x8511f6)=>{_0x8511f6&&this['_model']['change'](_0x3008f0=>{const {commandName:_0x1743f5,commandParams:_0x9d7f9c=[]}=_0x8511f6,_0x18b29a=_0x31f7cf['map'](_0x2521f9=>(Tt(_0x2521f9)&&(_0x2521f9=this['_model']['createRange'](_0x2521f9['end'])),_0x2521f9))['filter'](_0x204613=>'$graveyard'!==_0x204613['root']['rootName']);if(_0x18b29a['length']<0x1)return;const _0xea08d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x24816a=>_0x2a1164['fromRange'](_0x24816a));_0x3008f0['setSelection'](_0x18b29a);for(const _0x46eb2a of this['_editor']['commands']['commands']())_0x46eb2a['refresh']();_0x9d7f9c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1743f5,..._0x9d7f9c);const _0x26343e=_0xea08d['filter'](_0x3e40b2=>'$graveyard'!=_0x3e40b2['root']['rootName']);_0x26343e['length']>0x0&&_0x3008f0['setSelection'](_0x26343e);for(const _0x4785d4 of _0xea08d)_0x4785d4['detach']();});},_0x334401=(_0x5db524,_0x3472f2)=>0x1==_0x5db524['length']&&0x1==_0x3472f2['length']&&_0x5db524[0x0]['end']['isEqual'](_0x3472f2[0x0]['start']),_0x35ba03=(_0x23fd9b,_0x1485b9,_0x5638cd,_0x248cb6)=>Ft(_0x23fd9b,_0x1485b9,_0x5638cd,_0x248cb6,this['_model'])?[_0x23fd9b,_0x1485b9]:Ft(_0x1485b9,_0x23fd9b,_0x248cb6,_0x5638cd,this['_model'])?[_0x1485b9,_0x23fd9b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x55f644),this['_defaultCallbacks']['set']('insertion:discard',_0x244304),this['_defaultCallbacks']['set']('insertion:join',_0x334401),this['_defaultCallbacks']['set']('insertion:chain',_0x35ba03),this['_defaultCallbacks']['set']('deletion:accept',_0x244304),this['_defaultCallbacks']['set']('deletion:discard',_0x55f644),this['_defaultCallbacks']['set']('deletion:join',_0x334401),this['_defaultCallbacks']['set']('deletion:chain',_0x35ba03),this['_defaultCallbacks']['set']('formatInline:accept',_0x830729),this['_defaultCallbacks']['set']('formatInline:discard',_0x55f644),this['_defaultCallbacks']['set']('formatInline:join',_0x334401),this['_defaultCallbacks']['set']('formatInline:chain',_0x55f644),this['_defaultCallbacks']['set']('formatBlock:accept',_0x830729),this['_defaultCallbacks']['set']('formatBlock:discard',_0x55f644),this['_defaultCallbacks']['set']('formatBlock:join',_0x334401),this['_defaultCallbacks']['set']('formatBlock:chain',_0x55f644),this['_defaultCallbacks']['set']('attribute:accept',_0x55f644),this['_defaultCallbacks']['set']('attribute:discard',(_0x47cdfb,_0x234f7e)=>{if(!_0x234f7e)return;const _0x45b67e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x422f55=>{if(_0x234f7e['key']==m)for(const _0x485fda of _0x47cdfb){const _0x3336a0=_0x485fda['start']['nodeAfter'],_0x1cea9c=_0x234f7e['oldValue'];_0x422f55['rename'](_0x3336a0,_0x1cea9c);}else{if(_0x45b67e['_isBlockAttribute'](_0x234f7e['key'])){for(const _0x310091 of _0x47cdfb)void 0x0!==_0x234f7e['oldValue']?_0x422f55['setAttribute'](_0x234f7e['key'],_0x234f7e['oldValue'],_0x310091['start']['nodeAfter']):_0x422f55['removeAttribute'](_0x234f7e['key'],_0x310091['start']['nodeAfter']);}else{for(const _0x1861ca of _0x47cdfb)_0x234f7e['oldValue']?_0x422f55['setAttribute'](_0x234f7e['key'],_0x234f7e['oldValue'],_0x1861ca):_0x422f55['removeAttribute'](_0x234f7e['key'],_0x1861ca);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x334401);}}function Rt(_0x575463,_0x419ffc,_0x27b360){for(const _0x11a2fc of _0x419ffc['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x11a2fc['root']==_0x11a2fc)return!0x1;if(!_0x27b360['containsItem'](_0x11a2fc))return!0x1;if(_0x575463['isObject'](_0x11a2fc)||_0x575463['isLimit'](_0x11a2fc))return!0x0;}return!0x1;}function Tt(_0x3af613){return _0x3af613['end']['parent']==_0x3af613['start']['nodeAfter']&&_0x3af613['end']['isAtStart'];}function Et(_0x1e1edc,_0x120f47,_0x127cfc,_0x15d7ac){const _0x5ad095=_0x273b0f=>!_0x273b0f['item']['is']('$textProxy')&&!_0x15d7ac['isObject'](_0x273b0f['item']),_0xd07698=_0x1e1edc['start']['getLastMatchingPosition'](_0x5ad095),_0xe2828=_0x1e1edc['end']['getLastMatchingPosition'](_0x5ad095,{'direction':'backward'});return(!_0x1e1edc['start']['isEqual'](_0xd07698)||!_0x1e1edc['end']['isEqual'](_0xe2828))&&(_0xd07698['isBefore'](_0xe2828)?_0x127cfc['updateMarker'](_0x120f47,{'range':_0x127cfc['createRange'](_0xd07698,_0xe2828)}):_0x127cfc['removeMarker'](_0x120f47),!0x0);}function Vt(_0xc399c1){return _0x49c99a(_0xc399c1);}function Ut(_0x44991d){const _0xd3d4b8=_0x44991d['start']['nodeAfter'];return _0xd3d4b8&&_0xd3d4b8['is']('element');}function Ot(_0x1bc4e8,_0x24364b){return null==_0x1bc4e8['end']['nodeBefore']&&_0x1bc4e8['end']['parent']==_0x1bc4e8['start']['nodeAfter']?Gt(_0x1bc4e8['start']['nodeAfter'],_0x24364b):_0x1bc4e8;}function Gt(_0x4bfa6f,_0x5db5e4){const _0xd82606=_0x5db5e4['schema']['isObject'](_0x4bfa6f)||_0x5db5e4['schema']['isSelectable'](_0x4bfa6f);return _0x5db5e4['createRange'](_0x5db5e4['createPositionAt'](_0x4bfa6f,'before'),_0xd82606?_0x5db5e4['createPositionAfter'](_0x4bfa6f):_0x5db5e4['createPositionAt'](_0x4bfa6f,'end'));}function Ft(_0x5f3b21,_0x555274,_0x4eb9c,_0x270c50,_0x351ff2){if(!Pt(_0x5f3b21,_0x555274))return!0x1;if(_0x4eb9c['end']['isEqual'](_0x270c50['start']))return!0x0;if(_0x5f3b21['type']!=_0x555274['type'])return!0x1;if(!_0x4eb9c['end']['isTouching'](_0x270c50['start']))return!0x1;const _0x5a418c=_0x351ff2['createRange'](_0x4eb9c['end'],_0x270c50['start'])['getWalker']();for(const _0x18d563 of _0x5a418c)if(['elementStart','elementEnd']['includes'](_0x18d563['type'])&&_0x351ff2['schema']['isLimit'](_0x18d563['item']))return!0x1;return!0x0;}function Pt(_0x4c5e83,_0x50953a,_0xd0760c=[]){return!(!_0x4c5e83['_isDataLoaded']||!_0x50953a['_isDataLoaded'])&&_0x21978e(Bt(_0x4c5e83['attributes'],_0xd0760c),Bt(_0x50953a['attributes'],_0xd0760c));}function Lt(_0x2afa52,_0x59c694){const _0x34fb20=Ht(_0x2afa52['attributes']),_0x56a8b3=Ht(_0x59c694);if(!_0x2afa52['_isDataLoaded'])return!0x1;for(const _0x3cc685 of Object['keys'](_0x56a8b3))if(!_0x21978e(_0x34fb20[_0x3cc685],_0x56a8b3[_0x3cc685]))return!0x1;return!0x0;}function Ht(_0x22cf99){const _0x8626f0=Object['assign']({},_0x22cf99);return delete _0x8626f0['skipNestingCheck'],delete _0x8626f0['tablePasteChainId'],_0x8626f0;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xdca4e9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x553ad4,_0x3a2334,_0x43a421,_0x1ac978){super(),this['model']=_0x3a2334,this['view']=_0x43a421,this['commentThreadController']=_0x1ac978,this['_editor']=_0x553ad4,this['_acceptCommand']=_0x553ad4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x553ad4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x38011e,_0x553c59)=>_0x38011e||_0x553c59),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x462ce3=>_0x462ce3&&this['_editor']['model']['canEditAt'](_0x3a2334['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4b621d=>_0x4b621d&&this['_editor']['model']['canEditAt'](_0x3a2334['getRanges']())),this['_pendingAction']=null,_0x43a421['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x43a421,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x43a421,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x43a421,'change:isDirty',()=>{_0x43a421['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 _0x121b96=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x121b96);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x245e70{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x29db35,_0x53fd0e,_0x1c4a9f,_0x5009c0){super(_0x29db35),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x53fd0e['authoredAt']),this['bind']('authoredAt')['to'](_0x53fd0e),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x53fd0e,this['_localUser']=_0x1c4a9f,this['_config']=_0x5009c0,_0x5009c0['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:_0x3fcbe1}=this['_config'];this['commentsListView']=new _0x3fcbe1(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',_0xa13207=>_0xa13207+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1e0c18,_0x460847)=>_0x1e0c18||!!_0x460847);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4cdfdf}=this['_config'],_0x3b682a=new _0x4cdfdf(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4ee01a=_0x3b682a['commentInputView'];return _0x3b682a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4ee01a,'value',(_0x2ed855,_0x2894c7,_0x205b43)=>!!_0x205b43||_0x2ed855&&!_0x2894c7),_0x4ee01a['on']('submit',(_0x6d6688,_0x7312ba)=>{this['fire']('addComment',_0x7312ba),_0x4ee01a['editor']['setData']('');}),_0x4ee01a['on']('cancel',()=>this['focus']()),_0x4ee01a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3b682a;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x16bb95,_0x5dc881,_0x5ccd84,_0x5ea8be){super(_0x16bb95,_0x5dc881,_0x5ccd84,_0x5ea8be),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xedc513=>_0xedc513&&_0xedc513[0x0]?_0xedc513[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1f0dbb,_0x40e523)=>{let _0x4eed96='';for(const _0x5cee3f of _0x1f0dbb)_0x4eed96+='<p>'+ds(_0x5cee3f['content'],_0x5cee3f['color'])+'</p>';return _0x40e523?_0x4eed96:_0x3c5dec(_0x4eed96,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x16bb95,'Accept\x20suggestion'),_0x4f4ef9['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x16bb95,'Discard\x20suggestion'),_0x4f4ef9['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x2af102(_0x16bb95,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x23509c=this['bindTemplate'],_0x3cbf45=[{'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':_0x23509c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x23509c['to']('authoredAt',_0x4abf18=>this['_config']['formatDateTime'](_0x4abf18))}]}]},{'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']&&_0x3cbf45['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x14166c={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x23509c['if']('isActive','ck-suggestion-wrapper--active'),_0x23509c['to']('type',_0x37395f=>'ck-suggestion-'+_0x37395f),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':_0x3cbf45}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x14166c['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)),_0x14166c;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x193fe6,_0xe908ff,_0x58d4ea)=>{this['_descriptionElement']['innerHTML']=_0x58d4ea;});}['_createButton'](_0x1ca182,_0x9795d,_0x593eab,_0x32e6e0,_0x4ca844){const _0x196715=new _0x54c8f1(this['locale']);return _0x196715['set']({'label':_0x1ca182,'icon':_0x9795d,'tooltip':!0x0,'tooltipPosition':_0x4ca844}),_0x196715['extendTemplate']({'attributes':{'class':_0x593eab}}),_0x196715['on']('execute',()=>{this['fire'](_0x32e6e0,this['_model']['id']);}),_0x196715;}['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(_0x277ac7,_0x217419){let _0x14be32='';return _0x14be32+=_0x277ac7['split']('*')['map']((_0xecbfd2,_0x1568ef)=>_0x1568ef%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xecbfd2)+'</span>':us(_0xecbfd2))['join'](''),_0x217419&&(_0x14be32+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x217419['value']+'\x22\x20title=\x22'+_0x217419['title']+'\x22></span>'),_0x14be32;}function us(_0x1335cd){const _0x4ccbe3=document['createElement']('span');return _0x4ccbe3['innerText']=_0x1335cd,_0x4ccbe3['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x1a1403{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x35e08d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2d1cd7){super(_0x2d1cd7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2f6e7b=this['editor']['config'];_0x2f6e7b['define']('trackChanges.SuggestionThreadView',ne),_0x2f6e7b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2f6e7b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xe2382c,_0x9c19eb){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2ec59c,_0x33dd8e]of this['_handleControllerBuffer']){const _0x5db3df=this['_suggestionToController']['has'](_0x2ec59c);_0x5db3df||_0x33dd8e?_0x5db3df&&_0x33dd8e&&this['_destroyController'](_0x2ec59c):this['_initializeController'](_0x2ec59c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xe2382c,_0x9c19eb);}['init'](){const _0x338777=this['editor'],_0x485166=_0x338777['plugins']['get']('TrackChangesEditing'),_0x577590=_0x338777['plugins']['get']('Annotations'),_0x5a4b72=_0x338777['plugins']['get']('EditorAnnotations'),_0x3ade33=_0x338777['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5a4b72['addSourceCollector'](()=>{const _0x190a14=[];for(const [_0x4737f4,_0xf1fd80]of Array['from'](this['_suggestionToController'])){const _0x173c46=_0x4737f4['getAllAdjacentSuggestions'](),_0x416c91=[];for(const _0xee036c of _0x173c46){if(!_0xee036c['isInContent'])continue;if(_0xee036c['isMultiRange']){_0x416c91['push'](..._0xee036c['getRanges']());continue;}const _0x3ddd90=_0xee036c['getFirstRange']();if(_0x416c91['length']>0x0){const _0x5541a6=_0x416c91[0x0]['getJoined'](_0x3ddd90);if(_0x5541a6){_0x416c91[0x0]=_0x5541a6;continue;}}_0x416c91['push'](_0x3ddd90);}_0x190a14['push']([_0xf1fd80['view'],_0x416c91]);}return _0x190a14;}),this['listenTo'](_0x485166,'suggestionLoaded',(_0x1ac24a,_0x45e59f)=>{this['listenTo'](_0x45e59f,'change:previous',(_0x2809a5,_0x4cb817,_0x4db06c,_0x327fab)=>{_0x45e59f['isInContent']&&(null==_0x4db06c?(this['_updateController'](_0x327fab['head']),this['_handleSuggestionControllerDelayed'](_0x45e59f,!0x1)):(this['_updateController'](_0x4db06c['head']),null==_0x327fab&&this['_handleSuggestionControllerDelayed'](_0x45e59f,!0x0)));}),null!==_0x45e59f['previous']?this['_updateController'](_0x45e59f['head']):this['_handleSuggestionControllerDelayed'](_0x45e59f,!0x1);}),this['listenTo'](_0x485166,'suggestionUnloaded',(_0x228651,_0x13b683,_0x4cb0df)=>{this['stopListening'](_0x13b683,'change:previous'),this['_handleControllerBuffer']['delete'](_0x13b683),this['_suggestionToController']['has'](_0x13b683)&&this['_destroyController'](_0x13b683),_0x4cb0df&&this['_updateController'](_0x4cb0df['head']);}),this['listenTo'](_0x485166,'suggestionChanged',(_0x4a05d3,_0x4e9518)=>{this['_updateController'](_0x4e9518);}),this['listenTo'](_0x577590,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3ade33,'addComment',(_0x1b0b3a,{threadId:_0x56f7b3,isFromAdapter:_0x5466ce})=>{if(_0x5466ce||!_0x485166['hasSuggestion'](_0x56f7b3))return;const _0x2fbd49=_0x485166['getSuggestion'](_0x56f7b3);this['_suggestionToController']['get'](_0x2fbd49)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x482661=this['editor']['plugins']['get']('Annotations'),_0x36de83=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27e075=Array['from'](_0x482661['activeAnnotations'],_0x204bf5=>_0x204bf5['innerView'])['filter'](_0x42db5b=>this['_viewToController']['has'](_0x42db5b)),_0x4c0def=[];for(const _0x4210b of _0x27e075){const _0x12a490=this['_viewToController']['get'](_0x4210b)['model']['getAllAdjacentSuggestions']();_0x4c0def['push'](..._0x12a490['reduce']((_0x281fa1,_0x42abb1)=>[..._0x281fa1,..._0x42abb1['getMarkerNames']()],[]));}_0x36de83['activeMarkers']=_0x4c0def;}['_addUIComponentsToFactory'](){const _0x574b3d=this['editor'],_0x28a32a=_0x574b3d['locale'],_0x5be273=o(_0x28a32a,'Track\x20changes'),_0x3ba876=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x5be273,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x28a32a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x28a32a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x28a32a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x28a32a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1dc45c of _0x3ba876)if(ae(_0x1dc45c)){const _0x1a6bd4=_0x574b3d['commands']['get'](_0x1dc45c['model']['commandName']);_0x1dc45c['model']['bind']('isOn','isEnabled')['to'](_0x1a6bd4,'value','isEnabled');}_0x574b3d['ui']['componentFactory']['add']('trackChanges',_0x48722e=>this['_createToolbarButton'](_0x48722e,_0x3ba876,_0x5be273)),_0x574b3d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5c802f=>this['_createMenuBarMenu'](_0x5c802f,_0x3ba876,_0x5be273));}['_createToolbarButton'](_0x100e9b,_0x524e0a,_0x445a05){const _0xf2fb09=zt(_0x100e9b,Zt),_0x29b445=this['editor']['commands']['get']('trackChanges');_0xf2fb09['buttonView']['set']({'tooltip':_0x445a05,'label':_0x445a05,'icon':ie}),_0xf2fb09['buttonView']['bind']('isOn')['to'](_0x29b445,'value'),_0xf2fb09['buttonView']['on']('execute',()=>{_0x29b445['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0xf2fb09,_0x524e0a,{'role':'menu'});const _0x47bce8=[];for(const _0x31c4f2 of _0x524e0a)ae(_0x31c4f2)&&_0x47bce8['push'](this['editor']['commands']['get'](_0x31c4f2['model']['commandName']));const _0x55866f=_0xf2fb09['buttonView'];return _0x55866f['actionView']['unbind']('isEnabled'),_0x55866f['arrowView']['unbind']('isEnabled'),_0x55866f['actionView']['bind']('isEnabled')['to'](_0x29b445,'isEnabled'),_0x55866f['arrowView']['bind']('isEnabled')['toMany'](_0x47bce8,'isEnabled',(..._0x7fa180)=>_0x7fa180['some'](_0x363d45=>_0x363d45)),_0xf2fb09['on']('execute',_0x5493fa=>{this['editor']['execute'](_0x5493fa['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xf2fb09;}['_createMenuBarMenu'](_0x511ba8,_0xa4e8b4,_0x5ce4b8){const _0x5434d9=new Kt(_0x511ba8),_0x1e8bee=this['editor']['commands']['get']('trackChanges');_0x5434d9['buttonView']['set']({'label':_0x5ce4b8,'icon':ie});const _0x2d5d67=new Qt(_0x511ba8);for(const _0x534156 of _0xa4e8b4){if('separator'==_0x534156['type']){_0x2d5d67['items']['add'](new Jt(_0x511ba8));continue;}const _0x355d1d=new Xt(_0x511ba8,_0x5434d9),_0x55c872=new Yt(_0x511ba8),_0x46438c=_0x534156['model'];_0x55c872['bind'](...Object['keys'](_0x46438c))['to'](_0x46438c),_0x55c872['delegate']('execute')['to'](_0x5434d9),_0x55c872['on']('execute',()=>{this['editor']['execute'](_0x46438c['commandName']),this['editor']['editing']['view']['focus']();}),_0x355d1d['children']['add'](_0x55c872),_0x2d5d67['items']['add'](_0x355d1d);}return _0x5434d9['bind']('isEnabled')['to'](_0x1e8bee,'isEnabled'),_0x5434d9['panelView']['children']['add'](_0x2d5d67),_0x5434d9;}['_initializeController'](_0x3772de){const _0x3fdd07=this['editor'],_0x2c5d3e=_0x3fdd07['config'],_0x57b9a7=_0x3fdd07['plugins']['get']('Annotations'),_0x5473c9=_0x3fdd07['plugins']['get']('CommentsRepository'),_0x59cf05=_0x3fdd07['plugins']['get']('EditorAnnotations'),_0x17fb4a=_0x3fdd07['plugins']['get'](_0x35e08d)['me'],_0x4dbe33=_0x2c5d3e['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x372a75,CommentThreadInputView:_0x109fad}=_0x3fdd07['plugins']['get']('CommentsUI');let _0x4a015b,_0x47ae2f;this['_annotationViews']['has'](_0x3772de['id'])?(_0x47ae2f=this['_annotationViews']['get'](_0x3772de['id']),_0x4a015b=_0x47ae2f['mainView']):(_0x4a015b=new _0x4dbe33(_0x3fdd07['locale'],_0x3772de,_0x17fb4a,{'disableComments':this['_disableComments'],'editorConfig':_0x2c5d3e['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2c5d3e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2c5d3e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2c5d3e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x9ebe0c(_0x2c5d3e['get']('locale')),'CommentView':_0x2c5d3e['get']('comments')['CommentView'],'CommentsListView':_0x372a75,'CommentThreadInputView':_0x109fad}),_0x4a015b['acceptButton']['on']('execute',()=>{_0x3fdd07['editing']['view']['focus']();}),_0x4a015b['discardButton']['on']('execute',()=>{_0x3fdd07['editing']['view']['focus']();}),_0x47ae2f=_0x57b9a7['createAnnotationView'](this['editor']['locale'],_0x4a015b),_0x47ae2f['bind']('isDirty')['to'](_0x4a015b,'isDirty'),_0x47ae2f['bind']('length')['to'](_0x4a015b),_0x47ae2f['bind']('type')['to'](_0x4a015b,'type',_0x5dbf2e=>'suggestion-'+_0x5dbf2e),this['_annotationViews']['set'](_0x3772de['id'],_0x47ae2f));const _0x1cdd0f=_0x5473c9['createCommentThreadController'](_0x3772de['commentThread'],_0x4a015b),_0x18aa62=new oe(_0x3fdd07,_0x3772de,_0x4a015b,_0x1cdd0f),_0x18988b=_0x3772de['getAllAdjacentSuggestions']()['filter'](_0x5d52e1=>_0x5d52e1['isInContent']);_0x4a015b['descriptionParts']=_0x3fdd07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x18988b),this['_suggestionToController']['set'](_0x3772de,_0x18aa62),this['_viewToController']['set'](_0x4a015b,_0x18aa62);const _0x3cfae8=_0x57b9a7['createAnnotation']({'view':_0x47ae2f,'target':()=>{const _0x4b0613=[],_0x1204e1=_0x3772de['getAllAdjacentSuggestions']()['filter'](_0x24c22b=>_0x24c22b['isInContent']);for(const _0x5d4327 of _0x1204e1)_0x4b0613['push'](..._0x5d4327['getMarkers']());return _0x309a3c(_0x3fdd07['editing'],_0x4b0613);},'type':()=>'suggestion-'+_0x18aa62['view']['type']});_0x5473c9['_bindAnnotationToEditors'](_0x4a015b,_0x3cfae8),_0x57b9a7['add'](_0x3cfae8),_0x59cf05['registerAnnotation'](_0x3cfae8);}['_destroyController'](_0x72e383){const _0x401de9=this['editor']['plugins']['get']('CommentsRepository'),_0x4d2b63=this['editor']['plugins']['get']('Annotations'),_0x59919b=this['_suggestionToController']['get'](_0x72e383),_0x1c70f3=_0x59919b['view'],_0x5988a6=_0x4d2b63['getByInnerView'](_0x1c70f3);_0x401de9['_unbindEditors'](_0x1c70f3),_0x5988a6&&_0x4d2b63['remove'](_0x5988a6),this['_suggestionToController']['delete'](_0x72e383),this['_viewToController']['delete'](_0x1c70f3),_0x59919b['destroy']();}['_updateController'](_0x2383d4){if(!_0x2383d4['isInContent']||!this['_suggestionToController']['has'](_0x2383d4))return;const _0x46319b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a1694=this['_suggestionToController']['get'](_0x2383d4),_0x2c8b5f=_0x2383d4['getAllAdjacentSuggestions']();_0x4a1694['view']['descriptionParts']=_0x46319b['descriptionFactory']['getDescriptions'](_0x2c8b5f);}['destroy'](){for(const _0x282a36 of this['_suggestionToController']['keys']())this['_destroyController'](_0x282a36);for(const _0x5b4cc4 of this['_annotationViews']['values']())_0x5b4cc4['mainView']['destroy']();super['destroy']();}}function ae(_0x379909){return'model'in _0x379909;}class k extends _0x1a1403{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3e3c16){this['editor']['plugins']['get'](p)['adapter']=_0x3e3c16;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4be698){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4be698);}['getSuggestions']({skipNotAttached:_0x26a189=!0x1,toJSON:_0xdd67a7=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x26a189,'toJSON':_0xdd67a7});}['getSuggestion'](_0x9c56d1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x9c56d1);}}const T=['Pagination'];class P extends _0x1a1403{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x505fae=this['editor'];if(_0x505fae['config']['define']('trackChangesData.editorCreator',_0x33e51d=>{const _0x1d941c=_0x505fae['model']['document']['getRootNames']()['reduce']((_0x2c223a,_0x287dba)=>(_0x2c223a[_0x287dba]='',_0x2c223a),{});return _0x505fae['constructor']['create'](_0x1d941c,_0x33e51d);}),'function'!=typeof _0x505fae['config']['get']('trackChangesData')['editorCreator'])throw new _0x222665('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2d944f){return N(this['editor'],!0x0,_0x2d944f);}['getDataWithDiscardedSuggestions'](_0x8d2efb){return N(this['editor'],!0x1,_0x8d2efb);}}class D extends _0x1a1403{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x1c0cc4){super(_0x1c0cc4),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(_0x185e92){return void 0x0!==_0x185e92['getRootsAttributes'];}async function N(_0x46f92c,_0x595d0c,_0x1f3743){const _0x164792=_0x222db9(_0x46f92c,T);_0x164792['plugins']['push'](p,D),_0x164792['rootsAttributes']=v(_0x46f92c)?_0x46f92c['getRootsAttributes']():void 0x0;const _0x14630e=document['createDocumentFragment'](),_0x3a605b=_0x46f92c['config']['get']('trackChangesData')['editorCreator'],_0x51bfad=await _0x3a605b(_0x164792,()=>function(_0x4a1d9c){const _0x3baca3=document['createElement']('div');return _0x4a1d9c['appendChild'](_0x3baca3),_0x3baca3;}(_0x14630e));!function(_0x616aba,_0xf395be){const _0x491663=_0x616aba['model']['document']['getRootNames']()['reduce']((_0x1f282c,_0x5d9d70)=>(_0x1f282c[_0x5d9d70]=_0x616aba['data']['get']({'rootName':_0x5d9d70}),_0x1f282c),{}),_0x4a54ad=_0x616aba['plugins']['get']('Users')['users']['map'](_0x1d0c45=>({'id':_0x1d0c45['id'],'name':_0x1d0c45['name']})),_0x7de65a=_0x616aba['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x12e48b=_0x616aba['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2a951b=_0xf395be['plugins']['get']('Users'),_0x50a66b=_0xf395be['plugins']['get']('TrackChangesEditing'),_0x283563=_0xf395be['plugins']['get']('CommentsRepository');for(const _0x2960f2 of _0x4a54ad)_0x2a951b['getUser'](_0x2960f2['id'])||_0x2a951b['addUser'](_0x2960f2);_0x2a951b['me']||_0x2a951b['useAnonymousUser']();for(const _0x3aa63a of _0x12e48b)_0x283563['addCommentThread'](_0x3aa63a);for(const _0x52c553 of _0x7de65a)_0x50a66b['addSuggestionData'](_0x52c553);_0xf395be['data']['set'](_0x491663);}(_0x46f92c,_0x51bfad),_0x51bfad['execute'](_0x595d0c?'acceptAllSuggestions':'discardAllSuggestions');const _0x18cff8=v(_0x51bfad)?_0x51bfad['getFullData'](_0x1f3743):_0x51bfad['data']['get'](_0x1f3743);return await _0x51bfad['destroy'](),_0x18cff8;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0xe55e59,PendingActions as _0x28494f,icons as _0xd87cb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xdb29b1,ObservableMixin as _0x51672a,uid as _0xbe7a13,insertToPriorityArray as _0x2b03ee,priorities as _0x5c71e9,logWarning as _0x35e9f3,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5c48bc,View as _0x188c1d,ButtonView as _0x322896,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x62dc96,hashObject as _0x13de43,surroundingMarkersDetector as _0x17db54,trimHtml as _0x51d49d,UserView as _0x3c05be,getDateTimeFormatter as _0x21eb2d,getAllMarkersDomElementsSorted as _0x5e49a0,sanitizeEditorConfig as _0x313173}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2d12ff,LiveRange as _0x3d61db,LivePosition as _0x59d67d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x50cae0,toWidget as _0xcdffe7}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5e9f0f,set as _0x5db324,isEqual as _0x3b56f2,unset as _0x25ffb3,omit as Bt}from'lodash-es';import{Delete as _0x38bb43,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x58b3c7,ShiftEnter as _0x316f9a}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x544f10,_0x4b77b2){super(_0x544f10),this['_enabledCommands']=_0x4b77b2,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 _0x477c79 of this['editor']['commands']['commands']())_0x477c79['affectsData']&&!this['_enabledCommands']['has'](_0x477c79)&&_0x477c79['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3bfd96 of this['editor']['commands']['commands']())_0x3bfd96['affectsData']&&!this['_enabledCommands']['has'](_0x3bfd96)&&_0x3bfd96['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x1d2a3d,_0x2be098){super(_0x1d2a3d),this['_suggestions']=_0x2be098,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x32ed33){const _0x52b438=this['_suggestions']['get'](_0x32ed33);if(!_0x52b438)throw new _0xdb29b1('track-changes-accept-suggestion-not-found',this);const _0x3ce7ef=_0x52b438['getRanges']();this['editor']['model']['canEditAt'](_0x3ce7ef)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x52b438);}}class B extends ts{['_suggestions'];constructor(_0x2cdeaf,_0xc10978){super(_0x2cdeaf),this['_suggestions']=_0xc10978,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5cb5f7){const _0x4609dc=this['_suggestions']['get'](_0x5cb5f7);if(!_0x4609dc)throw new _0xdb29b1('track-changes-discard-suggestion-not-found',this);const _0x5116fd=_0x4609dc['getRanges']();this['editor']['model']['canEditAt'](_0x5116fd)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4609dc);}}function ss(_0x32e24e){return _0x32e24e['sort']((_0xe4c0b1,_0x39e410)=>'deletion'==_0xe4c0b1['type']&&'deletion'!=_0x39e410['type']?-0x1:'deletion'!=_0xe4c0b1['type']&&'deletion'==_0x39e410['type']?0x1:0x0);}function to(_0x13e1fb,_0x246c36){let _0x99d29f,_0x225f81=0x0;const _0x6b938=[],_0x2f2f21=_0x246c36['schema'];for(;_0x225f81<_0x13e1fb['length'];){const _0xe7e97d=_0x13e1fb[_0x225f81],_0x548a52=_0x13e1fb[_0x225f81+0x1];_0x99d29f||(_0x99d29f=_0x246c36['createPositionBefore'](_0xe7e97d)),co(_0x246c36,_0xe7e97d,_0x548a52)||(_0x6b938['push'](_0x246c36['createRange'](_0x99d29f,_0x2f2f21['isObject'](_0xe7e97d)?_0x246c36['createPositionAfter'](_0xe7e97d):_0x246c36['createPositionAt'](_0xe7e97d,'end'))),_0x99d29f=null),_0x225f81++;}return _0x6b938;}function co(_0x4cc6c8,_0x3e8337,_0x1e4374){if(!_0x1e4374)return!0x1;const _0x2fc709=_0x4cc6c8['createPositionAfter'](_0x3e8337),_0x43f6a6=_0x4cc6c8['createPositionBefore'](_0x1e4374);return _0x2fc709['isTouching'](_0x43f6a6);}function rs(_0x434325,_0xf39e5,_0x5bdf6f){for(;_0x5bdf6f['length'];){const _0x5f48a9=_0x5bdf6f['splice'](0x0,0x64);_0x434325['change'](()=>{for(const _0x3f4b3d of _0x5f48a9)_0x3f4b3d['isInContent']&&_0xf39e5['execute'](_0x3f4b3d['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x3d6a61,_0x1f96b0,_0x1a69e9){super(_0x3d6a61),this['_command']=_0x1f96b0,this['_suggestions']=_0x1a69e9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2bb265=Array['from'](this['_suggestions']['values']())['some'](_0x4e0cca=>_0x4e0cca['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2bb265;}['execute'](){const _0x417838=ss(Array['from'](this['_suggestions']['values']()));for(const _0x283730 of _0x417838){const _0x434566=_0x283730['getRanges']();if(!this['editor']['model']['canEditAt'](_0x434566))return;}rs(this['editor']['model'],this['_command'],_0x417838);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4e5a47,_0x49d3ef,_0x48539b){super(_0x4e5a47),this['_command']=_0x49d3ef,this['_suggestions']=_0x48539b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x54ce6e=this['editor']['model']['document']['selection'],_0x2129e3=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1aa928,_0x511e30){const _0x38404e=Array['from'](_0x1aa928['getRanges']()),_0x20af47=new Set();for(const _0x29a638 of _0x511e30)if(_0x29a638['isInContent']){for(const _0x5d40c7 of _0x38404e)for(const _0x2c835a of _0x29a638['getRanges']())(_0x5d40c7['isIntersecting'](_0x2c835a)||_0x1aa928['isCollapsed']&&!_0x29a638['isMultiRange']&&_0x29a638['next']&&_0x2c835a['end']['isTouching'](_0x5d40c7['start']))&&_0x20af47['add'](_0x29a638);}return _0x20af47;}(_0x54ce6e,_0x2129e3),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x34f27c=ss(Array['from'](this['_selectedSuggestions']));for(const _0x48f484 of _0x34f27c){const _0x356806=_0x48f484['getRanges']();if(!this['editor']['model']['canEditAt'](_0x356806))return;}rs(this['editor']['model'],this['_command'],_0x34f27c);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x51672a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x17d6c7,_0x4f47de){super(),this['id']=_0x4f47de['id'],this['type']=_0x4f47de['type'],this['subType']=_0x4f47de['subType']||null,this['author']=_0x4f47de['author'],this['creator']=_0x4f47de['creator']||_0x4f47de['author'],this['isExternal']=Boolean(_0x4f47de['attributes']&&_0x4f47de['attributes']['@external']),this['data']=null,this['_model']=_0x17d6c7,this['_onAccept']=_0x4f47de['onAccept'],this['_onDiscard']=_0x4f47de['onDiscard'],this['_onAttributesChange']=_0x4f47de['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4f47de['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 _0x2c1dfe=this;for(;_0x2c1dfe['previous'];)_0x2c1dfe=_0x2c1dfe['previous'];return _0x2c1dfe;}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'](_0x469bdb){this['_markerNames']['add'](_0x469bdb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x490a16=>this['_model']['markers']['get'](_0x490a16))['filter'](_0x3a7e5e=>_0x3a7e5e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2144db=>{for(const _0x46d165 of this['getMarkers']())_0x2144db['removeMarker'](_0x46d165);}),this['_markerNames']['clear']();}['removeMarker'](_0x49cabe){this['_model']['change'](_0x5ce6aa=>{_0x5ce6aa['removeMarker'](_0x49cabe);}),this['_markerNames']['delete'](_0x49cabe);}['addRange'](_0x11acc2){const _0x182ef7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x182ef7),this['_model']['change'](_0x481c3e=>{_0x481c3e['addMarker'](_0x182ef7,{'range':_0x11acc2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x39e320){for(const _0x461db1 of this['getRanges']())if(_0x461db1['isIntersecting'](_0x39e320))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x45ccbe=>_0x45ccbe['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x267c37,_0x54b132)=>[..._0x267c37,..._0x54b132['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x20ed93=this['getRanges']();if(0x1!=_0x20ed93['length'])return null;const _0x177eac=_0x20ed93[0x0],_0x305a99=_0x177eac['start']['nodeAfter'],_0x25f5d9=_0x177eac['end']['nodeBefore'];return _0x305a99 instanceof _0x2d12ff?_0x305a99!=_0x25f5d9?null:_0x305a99: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 _0xa60f37=[];let _0xb398a9=this['head'];for(;_0xb398a9;)_0xa60f37['push'](_0xb398a9),_0xb398a9=_0xb398a9['next'];return _0xa60f37;}['setAttribute'](_0x2061b5,_0xae95de){const _0x40f5d8=_0x5e9f0f(this['attributes']);_0x5db324(_0x40f5d8,_0x2061b5,_0xae95de),_0x3b56f2(_0x40f5d8,this['attributes'])||(this['attributes']=_0x40f5d8,this['_onAttributesChange'](_0x40f5d8));}['removeAttribute'](_0x5a335b){const _0x908fed=_0x5e9f0f(this['attributes']);_0x25ffb3(_0x908fed,_0x5a335b),_0x3b56f2(_0x908fed,this['attributes'])||(this['attributes']=_0x908fed,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 _0xbe7a13()['substr'](0x1,0x5);}}function o(_0x21802a,_0x32e944,_0x1076a2){const t=_0x21802a['t'];switch(_0x32e944){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',_0x1076a2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1076a2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1076a2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1076a2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1076a2);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',_0x1076a2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1076a2);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',_0x1076a2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1076a2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1076a2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1076a2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1076a2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1076a2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1076a2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1076a2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1076a2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1076a2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1076a2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1076a2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1076a2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1076a2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1076a2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1076a2);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'},_0x1076a2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1076a2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1076a2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1076a2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1076a2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1076a2);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'},_0x1076a2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1076a2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1076a2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1076a2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1076a2);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'},_0x1076a2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1076a2);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'},_0x1076a2);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'},_0x1076a2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1076a2);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'},_0x1076a2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1076a2);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'},_0x1076a2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1076a2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1076a2);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1076a2);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'},_0x1076a2);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 _0x32e944;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5d635d,_0x279a68){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5d635d,this['_locale']=_0x279a68;}['getDescriptions'](_0x2b561d){const _0x3c66d5=[],_0x2699ad=new Set(),_0x4e883e=new Set();for(let _0xfa8a39=0x0;_0xfa8a39<_0x2b561d['length'];_0xfa8a39++){const _0x39d06f=_0x2b561d[_0xfa8a39];if(!_0x39d06f['isInContent'])continue;const _0x3116dc=this['_handleCustomCallbackDescription'](_0x39d06f);if(_0x3116dc){if(null!=_0x39d06f['subType']){if(_0x2699ad['has'](_0x39d06f['subType']))continue;_0x2699ad['add'](_0x39d06f['subType']);}_0x3c66d5['push'](_0x3116dc);}else{if('attribute'!=_0x39d06f['type'])'insertion'!=_0x39d06f['type']&&'deletion'!=_0x39d06f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3c66d5,_0x39d06f,_0x2b561d[_0xfa8a39+0x1]);else{const _0x2cb2fb=_0x39d06f['data']['key'];if(_0x4e883e['has'](_0x2cb2fb))continue;_0x4e883e['add'](_0x39d06f['data']['key']),_0x2cb2fb==m?this['_handleRenameSuggestionDescription'](_0x3c66d5,_0x39d06f):this['_handleAttributeSuggestionDescription'](_0x3c66d5,_0x39d06f);}}}return this['_resolveDescriptionItems'](_0x3c66d5);}['registerDescriptionCallback'](_0x1f3b24){this['_customCallbacks']['push'](_0x1f3b24);}['registerElementLabel'](_0x4b4289,_0x30d490,_0x48eb7a=_0x5c71e9['normal']){'function'==typeof _0x4b4289?_0x2b03ee(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4b4289,'label':_0x30d490,'priority':_0x48eb7a}):this['_itemLabels']['set'](_0x4b4289,_0x30d490);}['registerAttributeLabel'](_0x34a59c,_0x228076){this['_attributeLabels']['set'](_0x34a59c,_0x228076);}['getItemLabel'](_0x2e60f0,_0x31a06e=0x1){let _0x1ea26c;for(const _0x223e45 of this['_itemLabelsCallbacks'])if(_0x223e45['matchingCallback'](_0x2e60f0)){_0x1ea26c=_0x223e45['label'];break;}return _0x1ea26c||(_0x1ea26c=this['_itemLabels']['get'](_0x2e60f0['name'])),_0x1ea26c?_0x1ea26c(_0x31a06e):0x1!==_0x31a06e?_0x31a06e+'\x20'+_0x2e60f0['name']+'s':''+_0x2e60f0['name'];}['_addDescriptionItems'](_0x4c046e,_0x512819){const _0x582a34=_0x512819['getFirstRange']()['getWalker'](),_0x5f2f01='insertion'==_0x512819['type']?'add':'remove';for(const _0x19d772 of _0x582a34){const _0x82c8e4=_0x19d772['item'],_0x66a15c=_0x4c046e[_0x4c046e['length']-0x1];if(_0x82c8e4['is']('$textProxy'))_0x66a15c&&_0x66a15c['type']['indexOf']('Container')>-0x1&&_0x4c046e['pop'](),_0x66a15c&&'text'==_0x66a15c['type']?_0x66a15c[_0x5f2f01]+=_0x82c8e4['data']:_0x4c046e['push']({'type':'text','add':'add'==_0x5f2f01?_0x82c8e4['data']:'','remove':'remove'==_0x5f2f01?_0x82c8e4['data']:''});else{if(this['_schema']['isObject'](_0x82c8e4)){const _0x1d4ef0=_0x82c8e4;if(_0x66a15c&&_0x66a15c['type']['indexOf']('Container')>-0x1&&_0x4c046e['pop'](),'elementEnd'==_0x19d772['type'])continue;_0x66a15c&&_0x66a15c['type']==_0x5f2f01+'Object'&&_0x66a15c['element']['name']==_0x1d4ef0['name']?_0x66a15c['quantity']++:_0x4c046e['push']({'type':_0x5f2f01+'Object','element':_0x1d4ef0,'quantity':0x1}),_0x582a34['skip'](_0x3ed6d5=>!('elementEnd'==_0x3ed6d5['type']&&_0x3ed6d5['item']==_0x82c8e4));}else{if(this['_schema']['checkChild'](_0x82c8e4,'$text')||_0x82c8e4['is']('element','softBreak')){const _0x50a065=_0x82c8e4;if('add'==_0x5f2f01&&'elementStart'==_0x19d772['type']||'remove'==_0x5f2f01&&'elementEnd'==_0x19d772['type'])continue;if(_0x66a15c&&-0x1==_0x66a15c['type']['indexOf']('Container')){'text'==_0x66a15c['type']&&(_0x66a15c[_0x5f2f01]+='\x0a');continue;}let _0x395dc6;if(_0x395dc6='add'==_0x5f2f01?_0x50a065['nextSibling']&&!this['_schema']['isObject'](_0x50a065['nextSibling'])?_0x50a065['nextSibling']:null:_0x50a065['previousSibling']&&!this['_schema']['isObject'](_0x50a065['previousSibling'])?_0x50a065['previousSibling']:null,_0x50a065['isEmpty']||_0x395dc6&&_0x395dc6['isEmpty']){const _0x319a8a=_0x395dc6&&_0x395dc6['isEmpty']?_0x395dc6:_0x50a065;_0x66a15c&&_0x66a15c['type']==_0x5f2f01+'EmptyContainer'&&_0x66a15c['element']['name']==_0x319a8a['name']?_0x66a15c['quantity']++:_0x4c046e['push']({'type':_0x5f2f01+'EmptyContainer','element':_0x319a8a,'quantity':0x1});}else _0x4c046e['push']({'type':_0x5f2f01+'Container','element':_0x50a065});}}}}}['_resolveDescriptionItems'](_0xc26413){const _0x459583=this['_locale'],_0x7fd1c3=[],_0x6cae93=[],_0x45e39b=[];for(const _0x358427 of _0xc26413)switch(_0x358427['type']){case'text':if(_0x358427['add']=_0x358427['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x358427['remove']=_0x358427['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x358427['add']&&''!=_0x358427['remove']){_0x7fd1c3['push']({'type':'replace','content':o(_0x459583,'REPLACE_TEXT',['\x22'+_0x358427['remove']+'\x22','\x22'+_0x358427['add']+'\x22'])});continue;}if(null!=_0x358427['add']['match'](/^ +$/)){_0x7fd1c3['push']({'type':'insertion','content':o(_0x459583,'*Insert:*\x20%0',o(_0x459583,'ELEMENT_SPACE',_0x358427['add']['length']))});continue;}if(null!=_0x358427['remove']['match'](/^ +$/)){_0x7fd1c3['push']({'type':'deletion','content':o(_0x459583,'*Remove:*\x20%0',o(_0x459583,'ELEMENT_SPACE',_0x358427['remove']['length']))});continue;}if(''!=_0x358427['add']){_0x7fd1c3['push']({'type':'insertion','content':o(_0x459583,'*Insert:*\x20%0','\x22'+_0x358427['add']+'\x22')});continue;}_0x7fd1c3['push']({'type':'deletion','content':o(_0x459583,'*Remove:*\x20%0','\x22'+_0x358427['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x7fd1c3['push']({'type':'insertion','content':o(_0x459583,'*Insert:*\x20%0',this['getItemLabel'](_0x358427['element'],_0x358427['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x7fd1c3['push']({'type':'deletion','content':o(_0x459583,'*Remove:*\x20%0',this['getItemLabel'](_0x358427['element'],_0x358427['quantity']))});continue;case'addContainer':_0x7fd1c3['push']({'type':'insertion','content':o(_0x459583,'*Split:*\x20%0',this['getItemLabel'](_0x358427['element'],_0x358427['quantity']))});continue;case'removeContainer':_0x7fd1c3['push']({'type':'deletion','content':o(_0x459583,'*Merge:*\x20%0',this['getItemLabel'](_0x358427['element'],_0x358427['quantity']))});continue;case'addFormat':_0x6cae93['push'](_0x358427['key']);continue;case'removeFormat':_0x45e39b['push'](_0x358427['key']);continue;default:_0x7fd1c3['push'](_0x358427);}if(_0x6cae93['length']){const _0x456522=_0x6cae93['map'](_0x503171=>this['_attributeLabels']['has'](_0x503171)?this['_attributeLabels']['get'](_0x503171):_0x503171)['join'](',\x20');_0x7fd1c3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x456522)});}if(_0x45e39b['length']){const _0x2c058f=_0x45e39b['map'](_0x3647d=>this['_attributeLabels']['has'](_0x3647d)?this['_attributeLabels']['get'](_0x3647d):_0x3647d)['join'](',\x20');_0x7fd1c3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2c058f)});}return _0x7fd1c3;}['_handleCustomCallbackDescription'](_0x2a87cb){for(const _0x51ddd6 of this['_customCallbacks']){const _0x434680=_0x51ddd6(_0x2a87cb);if(_0x434680&&'type'in _0x434680)return _0x434680;}}['_handleAttributeSuggestionDescription'](_0xbed6c3,_0x4b891c){const _0x107fc1=_0x4b891c['data'],_0x4a7428=void 0x0===_0x107fc1['newValue']?'removeFormat':'addFormat';_0xbed6c3['push']({'type':_0x4a7428,'key':_0x107fc1['key']});}['_handleRenameSuggestionDescription'](_0x188bcd,_0x1d7254){_0x188bcd['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1d7254['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x28678c,_0x4105d4,_0x206476){if(this['_addDescriptionItems'](_0x28678c,_0x4105d4),_0x206476&&_0x206476['getFirstRange']()&&!_0x4105d4['getFirstRange']()['end']['isEqual'](_0x206476['getFirstRange']()['start'])){const _0x4e318f=_0x28678c[_0x28678c['length']-0x1],_0x52ce5f='insertion'==_0x4105d4['type']?'add':'remove';_0x4e318f&&'text'==_0x4e318f['type']&&(_0x4e318f[_0x52ce5f]+='\x0a');}}}class E extends _0xe55e59{['afterInit'](){const _0x597abc=this['editor'],_0x52726a=_0x597abc['plugins']['get']('TrackChangesEditing');_0x597abc['commands']['get']('showAIAssistant')&&_0x52726a['enableCommand']('showAIAssistant');}}class V extends _0xe55e59{['afterInit'](){const _0x172acb=this['editor'],_0x266b09=_0x172acb['locale'];if(!_0x172acb['plugins']['has']('AlignmentEditing'))return;const _0x773286=_0x172acb['plugins']['get']('TrackChangesEditing');_0x773286['enableDefaultAttributesIntegration']('alignment'),_0x773286['registerBlockAttribute']('alignment'),_0x773286['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x266b09,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23cbd3=this['editor'],_0x1980c7=_0x23cbd3['locale'];_0x23cbd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x399573=>{if('formatBlock'!=_0x399573['type'])return;const {data:_0x5130d8}=_0x399573;if(_0x5130d8&&'alignment'==_0x5130d8['commandName']){const _0xfab12b=_0x5130d8['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1980c7,'*Format:*\x20%0',function(_0x343dcb){switch(_0x343dcb){case'left':return o(_0x1980c7,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1980c7,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1980c7,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1980c7,'FORMAT_JUSTIFY_TEXT');}}(_0xfab12b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0xe55e59{['afterInit'](){const _0x15f42b=this['editor'],_0x1ca622=_0x15f42b['plugins']['get']('TrackChangesEditing'),_0x4ddfb0=_0x15f42b['locale'];for(const _0x1a317b of ti){if(!_0x15f42b['plugins']['has'](_0x1a317b))continue;const _0xed5514=_0x1a317b['slice'](0x0,-0x7)['toLowerCase'](),_0x224b5b='FORMAT_'+_0xed5514['toUpperCase']();_0x1ca622['enableDefaultAttributesIntegration'](_0xed5514),_0x1ca622['registerInlineAttribute'](_0xed5514),_0x1ca622['descriptionFactory']['registerAttributeLabel'](_0xed5514,o(_0x4ddfb0,_0x224b5b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e3f6b=this['editor'],_0x2ae568=_0x1e3f6b['locale'],_0x2c1fc3=_0x1e3f6b['plugins']['get']('TrackChangesEditing');function _0x3802f6(_0x5bd9aa,_0xfea376){_0x2c1fc3['descriptionFactory']['registerDescriptionCallback'](_0x4faf63=>{if('formatInline'!=_0x4faf63['type'])return;const {data:_0x4c0a26}=_0x4faf63;return _0x4c0a26&&_0x4c0a26['commandName']===_0x5bd9aa?_0x4c0a26['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ae568,'*Format:*\x20%0',_0xfea376)}:{'type':'format','content':o(_0x2ae568,'*Remove\x20format:*\x20%0',_0xfea376)}:void 0x0;});}_0x3802f6('bold',o(_0x2ae568,'FORMAT_BOLD')),_0x3802f6('italic',o(_0x2ae568,'FORMAT_ITALIC')),_0x3802f6('underline',o(_0x2ae568,'FORMAT_UNDERLINE')),_0x3802f6('code',o(_0x2ae568,'FORMAT_CODE')),_0x3802f6('strikethrough',o(_0x2ae568,'FORMAT_STRIKETHROUGH')),_0x3802f6('subscript',o(_0x2ae568,'FORMAT_SUBSCRIPT')),_0x3802f6('superscript',o(_0x2ae568,'FORMAT_SUPERSCRIPT'));}}class O extends _0xe55e59{['afterInit'](){const _0x27ee99=this['editor'],_0x3cebf3=_0x27ee99['locale'];if(!_0x27ee99['plugins']['has']('BlockQuoteEditing'))return;const _0x546304=_0x27ee99['plugins']['get']('TrackChangesEditing'),_0x20cfff=this['editor']['commands']['get']('blockQuote');_0x546304['enableCommand']('blockQuote',(_0x38cc56,_0x1f7b9e={})=>{const _0x1f76ba=this['editor']['model']['document']['selection'],_0x3212ad=_0x1f7b9e&&void 0x0!==_0x1f7b9e['forceValue']?_0x1f7b9e['forceValue']:!_0x20cfff['value'];let _0x1dbb4b=[];if(_0x3212ad){const _0x338edd=Array['from'](_0x1f76ba['getSelectedBlocks']())['filter'](_0x12211c=>oo(_0x12211c)||function(_0x3ceb79,_0x958b7c){const _0x32df88=_0x958b7c['checkChild'](_0x3ceb79['parent'],'blockQuote'),_0x24348a=_0x958b7c['checkChild'](['$root','blockQuote'],_0x3ceb79);return _0x32df88&&_0x24348a;}(_0x12211c,this['editor']['model']['schema']));_0x1dbb4b=to(_0x338edd,_0x27ee99['model']);}else{const _0x2907e2=Array['from'](_0x1f76ba['getSelectedBlocks']())['filter'](_0x21b872=>oo(_0x21b872));_0x1dbb4b=to(_0x2907e2,_0x27ee99['model']);}_0x27ee99['model']['change'](()=>{for(const _0x224d15 of _0x1dbb4b)_0x546304['markBlockFormat'](_0x224d15,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3212ad}]});});}),_0x546304['descriptionFactory']['registerDescriptionCallback'](_0xeadbbe=>{const {data:_0xb7e143}=_0xeadbbe;if(_0xb7e143&&'blockQuote'==_0xb7e143['commandName']){const _0x213914=o(_0x3cebf3,'ELEMENT_BLOCK_QUOTE');return _0xb7e143['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3cebf3,'*Set\x20format:*\x20%0',_0x213914)}:{'type':'format','content':o(_0x3cebf3,'*Remove\x20format:*\x20%0',_0x213914)};}});}}function oo(_0x30d7cd){return'blockQuote'==_0x30d7cd['parent']['name'];}class G extends _0xe55e59{['afterInit'](){const _0x56760e=this['editor'];_0x56760e['plugins']['has']('CaseChange')&&(_0x56760e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x56760e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x56760e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0xe55e59{['afterInit'](){const _0x17b7dd=this['editor'];_0x17b7dd['commands']['get']('ckbox')&&_0x17b7dd['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xe55e59{['afterInit'](){const _0xd2de81=this['editor'];if(!_0xd2de81['plugins']['has']('CodeBlock'))return;const _0x598299=_0xd2de81['plugins']['get']('TrackChangesEditing'),_0x3b5fc1=_0xd2de81['locale'],_0x379345=_0xd2de81['config']['get']('codeBlock')['languages'],_0x5af0fc=_0xd2de81['commands']['get']('codeBlock');_0x598299['enableCommand']('indentCodeBlock'),_0x598299['enableCommand']('outdentCodeBlock'),_0x598299['enableCommand']('codeBlock',(_0x4dd8fc,_0x42c672={})=>{const _0x1aebb2=_0xd2de81['model'],_0x51f726=_0xd2de81['model']['document']['selection'],_0x9f59cb=_0x42c672&&void 0x0!==_0x42c672['forceValue']?_0x42c672['forceValue']:!_0x5af0fc['value'];let _0x26d3de;_0x42c672['language']||(_0x42c672['language']=_0x379345[0x0]['language']),_0x26d3de=_0x9f59cb?Array['from'](_0x51f726['getSelectedBlocks']())['filter'](_0x5edeb2=>eo(_0x5edeb2)||function(_0x6fe5fc,_0x5aaeec){if(_0x6fe5fc['is']('rootElement')||_0x5aaeec['isLimit'](_0x6fe5fc))return!0x1;return _0x5aaeec['checkChild'](_0x6fe5fc['parent'],'codeBlock');}(_0x5edeb2,_0x1aebb2['schema'])):Array['from'](_0x51f726['getSelectedBlocks']())['filter'](_0x3a9463=>eo(_0x3a9463));const _0x4174da=to(_0x26d3de,_0x1aebb2);_0x1aebb2['change'](()=>{for(const _0x54547c of _0x4174da)_0x598299['markBlockFormat'](_0x54547c,{'commandName':'codeBlock','commandParams':[{..._0x42c672,'forceValue':_0x9f59cb}],'formatGroupId':'blockName'});});}),(_0x598299['descriptionFactory']['registerElementLabel']('codeBlock',_0x5c924c=>o(_0x3b5fc1,'ELEMENT_CODE_BLOCK',_0x5c924c)),_0x598299['descriptionFactory']['registerDescriptionCallback'](_0x34d1f9=>{if('formatBlock'!=_0x34d1f9['type'])return;const _0x1f4d23=_0x3b5fc1['t'],{data:_0x3f2ba8}=_0x34d1f9;if(!_0x3f2ba8||'codeBlock'!=_0x3f2ba8['commandName'])return;const _0x103146=_0x3f2ba8['commandParams'][0x0]['language'],_0x388390=_0x1f4d23(_0x379345['find'](_0x50fc0e=>_0x50fc0e['language']===_0x103146)['label'])['toLowerCase']();return _0x3f2ba8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b5fc1,'*Set\x20format:*\x20%0',o(_0x3b5fc1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x388390+')')}:{'type':'format','content':o(_0x3b5fc1,'*Remove\x20format:*\x20%0',o(_0x3b5fc1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x6fb014){return'codeBlock'==_0x6fb014['name'];}class H extends _0xe55e59{['afterInit'](){const _0x2a3373=this['editor'];if(!_0x2a3373['plugins']['has']('CommentsEditing'))return;_0x2a3373['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5748db,_0x22d3f5,_0x1f9958){const _0x48e173=[];for(const _0x476b8 of _0x22d3f5['getItems']())_0x476b8['hasAttribute'](_0x5748db)&&_0x48e173['push'](_0x1f9958['createRangeOn'](_0x476b8));return _0x48e173;}function _e(_0x3ddedb,_0xebf1ab,{showActiveMarker:_0x4149b7=!0x0}={}){const _0x2aa24c=_0x3ddedb['plugins']['get']('TrackChangesEditing');return(_0x2c4f31,_0x3e94ab,_0x11a9fc)=>{if(!_0x11a9fc['consumable']['test'](_0x3e94ab['markerRange'],_0x2c4f31['name']))return;const _0x4b06e1=_0x3e94ab['markerRange']['getWalker'](),_0x2c6158=_0x3e94ab['markerRange']['start'],_0x5cadc7=_0x3ddedb['model']['schema'];let _0x4c244d=null,_0x44b17f=null,_0x550453=!0x1,_0x5d418c=!0x1;for(const _0x1b6ff8 of _0x4b06e1){const _0x39481d=_0x1b6ff8['item'];_0x550453=_0x550453||_0x5cadc7['isContent'](_0x39481d);const _0x4b9125=_0x11a9fc['mapper']['toViewElement'](_0x39481d);if(_0x4b9125&&_0x4b9125['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1b6ff8['type']&&(_0x5cadc7['isBlock'](_0x39481d)&&!_0x5cadc7['isLimit'](_0x39481d)&&(_0x39481d['nextSibling']||_0x2c6158['isAtEnd']?_0x4c244d&&_0x4c244d['parent']==_0x39481d||(_0x4c244d=_0x39481d,_0x3c0d2e(_0x1b6ff8['previousPosition']),_0x5d418c=!0x0):_0x44b17f=_0x44b17f||_0x1b6ff8['previousPosition']));}function _0x3c0d2e(_0xfec8c7){const _0x26babd=_0x11a9fc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xebf1ab}),_0x41f9b5=_0x11a9fc['mapper']['toViewPosition'](_0xfec8c7);_0x4149b7&&_0x2aa24c['activeMarkers']['includes'](_0x3e94ab['markerName'])&&_0x11a9fc['writer']['addClass']('ck-suggestion-marker--active',_0x26babd),_0x11a9fc['writer']['insert'](_0x41f9b5,_0x26babd),_0x11a9fc['mapper']['bindElementToMarker'](_0x26babd,_0x3e94ab['markerName']);}_0x550453||_0x5d418c||!_0x44b17f||_0x3c0d2e(_0x44b17f);};}class q extends _0xe55e59{static get['requires'](){return[_0x38bb43];}['init'](){const _0x3840e8=this['editor'],_0x53105b=_0x3840e8['plugins']['get']('TrackChangesEditing');_0x53105b['enableCommand']('delete');const _0x3d790f=_0x3840e8['commands']['get']('deleteForward');_0x53105b['enableCommand']('deleteForward',(_0x158149,_0x4a2c11={})=>{const _0x3447c8=_0x3840e8['model']['createSelection'](_0x3840e8['model']['document']['selection']);_0x3447c8['isCollapsed']&&_0x3840e8['model']['modifySelection'](_0x3447c8,{'direction':'forward','unit':_0x4a2c11['unit']});const _0x158348=_0x3447c8['getFirstRange'](),_0x19bb0c=_0x3d61db['fromRange'](_0x158348);let _0x2595bf;_0x158149(_0x4a2c11),_0x2595bf='$graveyard'==_0x19bb0c['root']['rootName']?_0x3840e8['model']['createRange'](_0x158348['start']):_0x3840e8['model']['createRange'](_0x19bb0c['start'],_0x19bb0c['end']),_0x19bb0c['detach'](),_0x3840e8['model']['enqueueChange'](_0x3d790f['buffer']['batch'],_0x1e534e=>{_0x3d790f['buffer']['lock'](),_0x1e534e['setSelection'](_0x1e534e['createRange'](_0x2595bf['end'])),_0x3d790f['buffer']['unlock']();});}),_0x3840e8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3840e8,'merge'),{'priority':'high'}),_0x3840e8['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x43c93f,_0x5b9f6b,_0x2af5a7)=>{_0x2af5a7['options']['showSuggestionHighlights']&&_e(_0x3840e8,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x43c93f,_0x5b9f6b,_0x2af5a7);},{'priority':'high'}),_0x3840e8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4ff6e3,_0x206fe5,_0x885300)=>{const _0x39c0af=_0x885300['mapper']['markerNameToElements'](_0x206fe5['markerName']);if(_0x39c0af){for(const _0x12732c of _0x39c0af)_0x12732c['is']('uiElement')&&(_0x885300['mapper']['unbindElementFromMarkerName'](_0x12732c,_0x206fe5['markerName']),_0x885300['writer']['remove'](_0x12732c));}},{'priority':'high'});}}class z extends _0xe55e59{['afterInit'](){const _0x5d117c=this['editor'];if(!_0x5d117c['plugins']['has']('ListEditing'))return;const _0x53a3e5=_0x5d117c['locale'],_0xae9955=_0x5d117c['plugins']['get']('TrackChangesEditing'),_0x2eed42=_0x5d117c['plugins']['has']('TodoListEditing'),_0x1ea8ce=!!_0x5d117c['config']['get']('list.multiBlock');function _0x431afd(_0x5a2c98){return{'type':'format','content':''+o(_0x53a3e5,'*Set\x20format:*\x20%0',_0x5a2c98)};}function _0x28a6b7(_0x404d5f){return{'type':'format','content':''+o(_0x53a3e5,'*Remove\x20format:*\x20%0',_0x404d5f)};}_0xae9955['enableDefaultAttributesIntegration']('numberedList'),_0xae9955['enableDefaultAttributesIntegration']('bulletedList'),_0xae9955['enableDefaultAttributesIntegration']('customNumberedList'),_0xae9955['enableDefaultAttributesIntegration']('customBulletedList'),_0xae9955['enableDefaultAttributesIntegration']('indentList'),_0xae9955['enableDefaultAttributesIntegration']('outdentList'),_0xae9955['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xae9955['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xae9955['registerBlockAttribute']('listItemId'),_0xae9955['registerBlockAttribute']('listType'),_0xae9955['registerBlockAttribute']('listIndent'),_0x1ea8ce&&(_0xae9955['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xae9955['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2eed42&&(_0xae9955['enableDefaultAttributesIntegration']('todoList'),_0xae9955['enableDefaultAttributesIntegration']('checkTodoList'),_0xae9955['registerBlockAttribute']('todoListChecked'),_0xae9955['descriptionFactory']['registerDescriptionCallback'](_0x45a3b7=>{const {data:_0x505eb5}=_0x45a3b7;if(_0x505eb5&&'todoListChecked'==_0x505eb5['key'])return{'type':'format','content':_0x505eb5['newValue']?o(_0x53a3e5,'*Check\x20item*'):o(_0x53a3e5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1ce70e=>{if(_0x1ce70e['batch']['isUndo'])return!0x1;let _0x6f5f90=!0x1;const _0x3f8630=_0xae9955['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38e94e=>'todoListChecked'===_0xae9955['_getAttributeKey'](_0x38e94e));for(const _0x29a548 of _0x3f8630){'todo'!=_0x29a548['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xae9955['_findSuggestions'](_0x29a548['getFirstRange'](),'attribute')['find'](_0xe9f2d8=>'listType'===_0xae9955['_getAttributeKey'](_0xe9f2d8['suggestion']))||(_0x1ce70e['removeMarker'](_0x29a548['getFirstMarker']()),_0x6f5f90=!0x0));}return _0x6f5f90;})),_0xae9955['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x53a3e5,'FORMAT_INDENT'));const _0x23ee87={'type':'format','content':''};_0xae9955['descriptionFactory']['registerDescriptionCallback'](_0x5c5cc1=>{const {data:_0x3248b1}=_0x5c5cc1;if(!_0x3248b1||'listType'!=_0x3248b1['key'])return;let _0x5f0905=_0x5c5cc1['head'];for(;_0x5f0905;){if(_0x5f0905['data']&&(('listStyle'==_0x5f0905['data']['key']||'listMarkerStyle'==_0x5f0905['data']['key'])&&(_0x5f0905['data']['newValue']&&'default'!=_0x5f0905['data']['newValue']||'default'!=_0x5f0905['data']['oldValue']&&!_0x3248b1['newValue'])||!_0x1ea8ce&&_0x5f0905['data']['key']==m))return _0x23ee87;_0x5f0905=_0x5f0905['next'];}if(null==_0x3248b1['newValue'])switch(_0x3248b1['oldValue']){case'bulleted':return _0x28a6b7(o(_0x53a3e5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x28a6b7(o(_0x53a3e5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x28a6b7(o(_0x53a3e5,'ELEMENT_TODO_LIST'));}switch(_0x3248b1['newValue']){case'bulleted':return _0x431afd(o(_0x53a3e5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x431afd(o(_0x53a3e5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x431afd(o(_0x53a3e5,'ELEMENT_TODO_LIST'));}}),_0xae9955['descriptionFactory']['registerDescriptionCallback'](_0x48d37b=>{const {data:_0x542be2}=_0x48d37b;if(_0x542be2&&'listIndent'==_0x542be2['key'])return null==_0x542be2['newValue']||null==_0x542be2['oldValue']&&0x0==_0x542be2['newValue']?_0x23ee87:void 0x0;}),_0xae9955['descriptionFactory']['registerDescriptionCallback'](_0x2070db=>{if('attribute'!=_0x2070db['type'])return;const {data:_0x3a1e10}=_0x2070db;if(!_0x3a1e10||'listItemId'!=_0x3a1e10['key'])return;const _0x266159=le(_0x2070db);return'newValue'==_0x266159?{'type':'format','content':o(_0x53a3e5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x266159?{'type':'format','content':o(_0x53a3e5,'*Split:*\x20list\x20item')}:_0x23ee87;}),_0x5d117c['model']['document']['registerPostFixer'](_0x2bf51f=>this['listItemIdFixer'](_0x2bf51f)),_0x5d117c['model']['document']['registerPostFixer'](_0x1918da=>this['noTrackChangesFixer'](_0x1918da)),_0x5d117c['model']['document']['registerPostFixer'](_0x722cc3=>this['assureChains'](_0x722cc3)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1de1f0){if(_0x1de1f0['batch']['isUndo']||!_0x1de1f0['batch']['isLocal'])return!0x1;let _0x11cb80=!0x1;const _0x5bc729=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2fe10f=>_0x2fe10f['data']&&'listItemId'==_0x2fe10f['data']['key'])['filter'](_0x5dc976=>_0x5dc976['data']['newValue']&&_0x5dc976['data']['oldValue']);for(const _0x262d07 of _0x5bc729)le(_0x262d07)||(_0x1de1f0['removeMarker'](_0x262d07['getFirstMarker']()),_0x11cb80=!0x0);return _0x11cb80;}['noTrackChangesFixer'](_0x5f552){if(_0x5f552['batch']['isUndo']||!_0x5f552['batch']['isLocal'])return!0x1;const _0x32cfe5=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x32cfe5['trackChangesCommand']['value'])return!0x1;let _0x1aa1b9=!0x1;const _0x562d1e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x47faa1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x40cf86=>'attribute'==_0x40cf86['type'])['filter'](_0x10ae6b=>_0x562d1e['includes'](_0x10ae6b['attributeKey']));if(0x0==_0x47faa1['length'])return _0x1aa1b9;for(const _0x19a8b3 of _0x47faa1){const _0x3b7d14=_0x32cfe5['_findSuggestions'](_0x19a8b3['range'],'attribute')['filter'](_0x2c5fab=>!_0x2c5fab['meta']['isNextTo'])['map'](_0x1eef40=>_0x1eef40['suggestion'])['filter'](_0x3900c0=>{const _0x3e8c19=_0x32cfe5['_getAttributeKey'](_0x3900c0);return _0x562d1e['includes'](_0x3e8c19);});if(_0x3b7d14['length']){for(const _0x2cdd0e of _0x3b7d14)_0x5f552['removeMarker'](_0x2cdd0e['getFirstMarker']());_0x1aa1b9=!0x0;}}return _0x1aa1b9;}['assureChains'](_0x29b58a){if(_0x29b58a['batch']['isUndo']||!_0x29b58a['batch']['isLocal'])return!0x1;const _0x20b936=this['editor']['plugins']['get']('TrackChangesEditing');let _0x55c066=!0x1;const _0x184a53=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x591bab of _0x20b936['getSuggestions']({'skipNotAttached':!0x0})){const _0x1f5aef=_0x20b936['_findSuggestions'](_0x591bab['getFirstRange'](),'attribute')['map'](_0x293b23=>_0x293b23['suggestion'])['filter'](_0x1ce468=>_0x1ce468['data']&&_0x184a53['includes'](_0x1ce468['data']['key']));if(!_0x1f5aef['length'])continue;const _0x309757=_0x1f5aef[0x0]['head']['attributes']['groupId'];if(!_0x1f5aef['every'](_0x8691c6=>_0x8691c6['attributes']['groupId']===_0x309757)){for(const _0x17993f of _0x1f5aef)_0x3f0714(_0x17993f,_0x309757)&&(_0x55c066=!0x0);}}return _0x55c066;function _0x253ac1(_0x3eda26,_0x504539){for(const _0x321713 of _0x20b936['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19900e=>'attribute'==_0x19900e['type']&&_0x19900e['attributes']['groupId']==_0x3eda26))_0x321713['setAttribute']('groupId',_0x504539);}function _0x3f0714(_0x44a9b5,_0x51accc){let _0x1a5b77=_0x44a9b5['head'],_0x4a23d5=!0x1;for(;_0x1a5b77;)_0x1a5b77['attributes']['groupId']!=_0x51accc&&(_0x253ac1(_0x1a5b77['attributes']['groupId'],_0x51accc),_0x1a5b77['setAttribute']('groupId',_0x51accc),_0x4a23d5=!0x0),_0x1a5b77=_0x1a5b77['next'];return _0x4a23d5;}}['_supportLegacySuggestions'](){const _0x13dd61=this['editor'],_0x1dbfea=_0x13dd61['locale'],_0x1e168d=_0x13dd61['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1e168d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1a9ef9,_0x47386c){const _0x251aa4=[];for(let _0x2e8d4a of _0x1a9ef9)_0x2e8d4a['start']['nodeAfter']===_0x2e8d4a['end']['parent']&&(_0x2e8d4a=_0x13dd61['model']['createRange'](_0x13dd61['model']['createPositionAt'](_0x2e8d4a['start']['nodeAfter'],0x0))),_0x251aa4['push'](_0x2e8d4a);_0x13dd61['model']['change'](_0x57932d=>{const _0x105f88=_0x13dd61['model']['document']['selection'],_0x5b918b=Array['from'](_0x105f88['getRanges']())['map'](_0x53b3ac=>_0x3d61db['fromRange'](_0x53b3ac));_0x57932d['setSelection'](_0x251aa4),_0x13dd61['commands']['get'](_0x47386c['commandName'])['refresh'](),_0x47386c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x13dd61['execute'](_0x47386c['commandName'],..._0x47386c['commandParams']),_0x57932d['setSelection'](_0x5b918b);for(const _0x1fdf9c of _0x5b918b)_0x1fdf9c['detach']();});}),_0x1e168d['descriptionFactory']['registerElementLabel'](function(_0x440c6a){const _0xb2fb6b=!_0x13dd61['model']['schema']['isObject'](_0x440c6a),_0x208e44=_0x440c6a['previousSibling'],_0x578b4e=_0x440c6a['nextSibling'],_0x497e2=_0x440c6a['getAttribute']('listItemId'),_0x1a3177=!_0x208e44||_0x208e44['getAttribute']('listItemId')!==_0x497e2,_0x17cf36=!_0x578b4e||_0x578b4e['getAttribute']('listItemId')!==_0x497e2;return _0xb2fb6b&&Boolean(_0x497e2)&&_0x1a3177&&_0x17cf36;},_0x3fc52c=>o(_0x1dbfea,'ELEMENT_LIST_ITEM',_0x3fc52c));}['_registerLegacyDescription'](){const _0x4a6ff8=this['editor'],_0x266be=_0x4a6ff8['locale'];function _0x37aea0(_0xed88e4){const _0x1c79f3=_0x4a6ff8['commands']['get']('bulletedList')['value'],_0x201ac0=_0x4a6ff8['commands']['get']('numberedList')['value'];return'numberedList'===_0xed88e4?_0x1c79f3:_0x201ac0;}_0x4a6ff8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2cdb2b){if('formatBlock'!=_0x2cdb2b['type'])return;const {data:_0x5b746e}=_0x2cdb2b;if(!_0x5b746e)return;let _0x2467ff,_0x1a73b5,_0x2a3569,_0x1faea2;switch(_0x5b746e['commandName']){case'bulletedList':_0x2a3569=_0x5b746e['commandParams'][0x0]['forceValue'],_0x1faea2=_0x37aea0(_0x5b746e['commandName']),_0x2467ff=_0x2a3569?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1faea2&&_0x4a6ff8['config']['get']('list.multiBlock')||(_0x2467ff='*Change\x20to:*\x20%0'),_0x1a73b5={'type':'format','content':o(_0x266be,_0x2467ff,o(_0x266be,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2a3569=_0x5b746e['commandParams'][0x0]['forceValue'],_0x1faea2=_0x37aea0(_0x5b746e['commandName']),_0x2467ff=_0x2a3569?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1faea2&&_0x4a6ff8['config']['get']('list.multiBlock')||(_0x2467ff='*Change\x20to:*\x20%0'),_0x1a73b5={'type':'format','content':o(_0x266be,_0x2467ff,o(_0x266be,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2467ff='*Indent:*\x20%0',_0x1a73b5={'type':'format','content':o(_0x266be,_0x2467ff,o(_0x266be,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2467ff=function(_0x37977a){const _0xe0565d=_0x37977a['getFirstRange']();let _0x5684d2=_0xe0565d['start']['nodeAfter'];for(;_0x5684d2&&_0xe0565d['containsItem'](_0x5684d2);){if(_0x5684d2['getAttribute']('listIndent')>0x0)return!0x1;_0x5684d2=_0x5684d2['nextSibling'];}return!0x0;}(_0x2cdb2b)?o(_0x266be,'*Format:*\x20remove\x20from\x20%0',o(_0x266be,function(_0x11a97f){return'ELEMENT_'+_0x11a97f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2cdb2b))):o(_0x266be,'*Outdent:*\x20%0',o(_0x266be,'ELEMENT_LIST_ITEM')),_0x1a73b5={'type':'format','content':_0x2467ff};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5b746e['multipleBlocks']&&(_0x2467ff='*Merge:*\x20%0',_0x1a73b5={'type':'deletion','content':o(_0x266be,_0x2467ff,o(_0x266be,'ELEMENT_LIST_ITEM'))});}return _0x1a73b5;});}}function le(_0x44c08d){let _0x2f65eb=_0x44c08d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2f65eb;){const _0x280995=_0x2f65eb['getAttribute']('listItemId');if(!_0x280995)return!0x1;if(_0x280995==_0x44c08d['data']['newValue'])return'newValue';if(_0x280995==_0x44c08d['data']['oldValue'])return'oldValue';_0x2f65eb=_0x2f65eb['previousSibling'];}return!0x1;}class ue extends _0xe55e59{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x196b9e=this['editor']['config']['get']('list.properties'),_0xce8a17=this['editor']['plugins']['get']('TrackChangesEditing');_0x196b9e['styles']&&(_0xce8a17['enableDefaultAttributesIntegration']('listStyle'),_0xce8a17['registerBlockAttribute']('listStyle')),_0x196b9e['reversed']&&(_0xce8a17['enableDefaultAttributesIntegration']('listReversed'),_0xce8a17['registerBlockAttribute']('listReversed')),_0x196b9e['startIndex']&&(_0xce8a17['enableDefaultAttributesIntegration']('listStart'),_0xce8a17['registerBlockAttribute']('listStart'));const _0x5ac205={'type':'format','content':''};_0xce8a17['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x546d25=this['editor']['locale'];_0xce8a17['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x546d25,'FORMAT_LIST_REVERSED')),_0xce8a17['descriptionFactory']['registerDescriptionCallback'](_0x13b39b=>{const {data:_0x5dfe14}=_0x13b39b;if(_0x5dfe14&&'listReversed'==_0x5dfe14['key'])return null==_0x5dfe14['newValue']||0x0==_0x5dfe14['newValue']&&null==_0x5dfe14['oldValue']?_0x5ac205:void 0x0;}),_0xce8a17['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x546d25,'FORMAT_LIST_START')),_0xce8a17['descriptionFactory']['registerDescriptionCallback'](_0x47da77=>{const {data:_0x38d69b}=_0x47da77;if(_0x38d69b&&'listStart'==_0x38d69b['key'])return null==_0x38d69b['newValue']||0x1==_0x38d69b['newValue']&&null==_0x38d69b['oldValue']?_0x5ac205:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5858a7=>{if(_0x5858a7['batch']['isUndo'])return!0x1;let _0x13f32f=!0x1;const _0x24801e=_0xce8a17['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b4561=>{const _0x45aee3=_0xce8a17['_getAttributeKey'](_0x2b4561);return'listStart'==_0x45aee3||'listReversed'==_0x45aee3;});for(const _0xe6fd58 of _0x24801e){const _0x29c335=_0xe6fd58['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x29c335||'customNumbered'==_0x29c335)continue;_0xce8a17['_findSuggestions'](_0xe6fd58['getFirstRange'](),'attribute')['find'](_0x27af28=>'listType'==_0xce8a17['_getAttributeKey'](_0x27af28['suggestion']))||(_0x5858a7['removeMarker'](_0xe6fd58['getFirstMarker']()),_0x13f32f=!0x0);}return _0x13f32f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x569ca5){const _0x1c3947=this['editor']['locale'],{data:_0x24b5a7}=_0x569ca5,_0x5db273={'type':'format','content':''};if(!_0x24b5a7||'listStyle'!=_0x24b5a7['key'])return;if(!_0x24b5a7['oldValue'])return'default'==_0x24b5a7['newValue']?_0x5db273:{'type':'format','content':''+o(_0x1c3947,'*Set\x20format:*\x20%0',o(_0x1c3947,this['_getTranslationKeyForListStyle'](_0x24b5a7['newValue'])))};if(!_0x24b5a7['newValue']){if('default'==_0x24b5a7['oldValue'])return _0x5db273;let _0xf48c90=_0x569ca5['head'];for(;_0xf48c90;){if(_0xf48c90['data']&&'listType'==_0xf48c90['data']['key']&&_0xf48c90['data']['newValue'])return _0x5db273;_0xf48c90=_0xf48c90['next'];}return{'type':'format','content':''+o(_0x1c3947,'*Remove\x20format:*\x20%0',o(_0x1c3947,this['_getTranslationKeyForListStyle'](_0x24b5a7['oldValue'])))};}if('default'!=_0x24b5a7['newValue'])return{'type':'format','content':''+o(_0x1c3947,'*Set\x20format:*\x20%0',o(_0x1c3947,this['_getTranslationKeyForListStyle'](_0x24b5a7['newValue'])))};let _0x206c61=_0x569ca5['head'];for(;_0x206c61;){if(_0x206c61['data']&&'listType'==_0x206c61['data']['key']&&_0x206c61['data']['newValue']&&_0x206c61['data']['oldValue'])return _0x5db273;_0x206c61=_0x206c61['next'];}return{'type':'format','content':o(_0x1c3947,'*Set\x20format:*\x20%0',o(_0x1c3947,'ELEMENT_'+_0x569ca5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x513f0f=this['editor'],_0x33cc43=_0x513f0f['locale'];_0x513f0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x321e7c=>{if('formatBlock'!=_0x321e7c['type'])return;const {data:_0x3d3abe}=_0x321e7c;if(!_0x3d3abe)return;let _0x7827d6,_0x493814;switch(_0x3d3abe['commandName']){case'listStyle':_0x7827d6='*Change\x20to:*\x20%0',_0x493814={'type':'format','content':o(_0x33cc43,_0x7827d6,o(_0x33cc43,this['_getTranslationKeyForListStyle'](_0x3d3abe['commandParams'][0x0]['type'])))};break;case'listReversed':_0x7827d6=_0x3d3abe['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x493814={'type':'format','content':o(_0x33cc43,_0x7827d6)};break;case'listStart':_0x7827d6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x493814={'type':'format','content':o(_0x33cc43,_0x7827d6,_0x3d3abe['commandParams'][0x0]['startIndex'])};}return _0x493814;});}['_getTranslationKeyForListStyle'](_0x37b92e){return'ELEMENT_'+function(_0x5c30bf){if(pe['includes'](_0x5c30bf))return'bulleted';if(ye['includes'](_0x5c30bf))return'numbered';return null;}(_0x37b92e)['toUpperCase']()+'_LIST_'+_0x37b92e['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0xe55e59{static get['requires'](){return[_0x58b3c7];}['init'](){const _0x32d600=this['editor'],_0x497774=_0x32d600['plugins']['get']('TrackChangesEditing'),_0x3143b7=_0x32d600['commands']['get']('enter');_0x497774['enableCommand']('enter',()=>{_0x32d600['model']['change'](_0x4784fe=>{const _0x30762c=_0x32d600['model']['document']['selection'],_0x2096cf=_0x30762c['getFirstPosition'](),_0x2dc1ad=_0x3d61db['fromRange'](_0x30762c['getFirstRange']());if(_0x3143b7['enterBlock'](_0x4784fe)){const _0x284c75=_0x32d600['model']['createPositionAt'](_0x2096cf['parent']['nextSibling'],0x0),_0x1b4b71=_0x4784fe['createRange'](_0x2096cf,_0x284c75);_0x497774['markInsertion'](_0x1b4b71);}else _0x4784fe['setSelection'](_0x4784fe['createRange'](_0x2dc1ad['end']));_0x2dc1ad['detach'](),_0x3143b7['fire']('afterExecute',{'writer':_0x4784fe});});}),_0x32d600['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x32d600,'split'),{'priority':'high'}),_0x32d600['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x52b7d1,_0x10b3ae,_0x4327ef)=>{const _0x220138=_0x4327ef['mapper']['markerNameToElements'](_0x10b3ae['markerName']);if(_0x220138){for(const _0xbee28d of _0x220138)_0xbee28d['hasClass']('ck-suggestion-marker-split')&&(_0x4327ef['mapper']['unbindElementFromMarkerName'](_0xbee28d,_0x10b3ae['markerName']),_0x4327ef['writer']['remove'](_0xbee28d));}},{'priority':'high'}),_0x32d600['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x493e6d,_0x7b0753,_0x2874b8)=>{_0x2874b8['options']['showSuggestionHighlights']&&_e(_0x32d600,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x493e6d,_0x7b0753,_0x2874b8);},{'priority':'high'});}}class J extends _0xe55e59{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1ad70d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ad70d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1ad70d['enableCommand']('findNext'),_0x1ad70d['enableCommand']('findPrevious'),_0x1ad70d['enableCommand']('replace'),_0x1ad70d['enableCommand']('replaceAll');}['handleFindCommand'](_0x28b366,_0x263ad2,_0xf03407={}){const _0x408179=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x28b366(_0x16e95f=>('string'==typeof _0x263ad2?_0x408179['findByTextCallback'](_0x263ad2,_0xf03407):_0x263ad2)(_0x16e95f)['filter'](_0x35f3a9=>!0x1===this['_isInDeletionRange'](_0x35f3a9,_0x16e95f['item'])),_0xf03407);}['_isInDeletionRange'](_0xf8de01,_0x3dda89){const _0x5c7bc1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3dda89,_0xf8de01['start']),this['editor']['model']['createPositionAt'](_0x3dda89,_0xf8de01['end']));for(const _0x34a33d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5c7bc1['getIntersection'](_0x34a33d['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 _0xe55e59{['afterInit'](){const _0x7748b9=this['editor']['locale'],_0x152b1e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x11d657,commandName:_0x157aeb}of ro)this['editor']['plugins']['has'](_0x11d657)&&(_0x152b1e['enableDefaultAttributesIntegration'](_0x157aeb),_0x152b1e['registerInlineAttribute'](_0x157aeb));_0x7748b9['t'],_0x152b1e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x7748b9,'FORMAT_FONT_SIZE')),_0x152b1e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x7748b9,'FORMAT_FONT_FAMILY')),_0x152b1e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x7748b9,'FORMAT_FONT_COLOR')),_0x152b1e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x7748b9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d5e99=this['editor'],_0x2505a6=_0x3d5e99['locale'];_0x3d5e99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c7363=>{const _0x53912a=_0x2505a6['t'];if('formatInline'!=_0x5c7363['type'])return;const {data:_0x433d67}=_0x5c7363;if(null!=_0x433d67){if('fontSize'==_0x433d67['commandName']){const _0x277fbf=_0x433d67['commandParams'][0x0]['value'];if(_0x277fbf){const _0x4fd954=_0x53912a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x532a7b=>_0x532a7b['model']==_0x277fbf)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2505a6,'*Set\x20font\x20size:*\x20%0',_0x4fd954)};}return{'type':'format','content':o(_0x2505a6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x433d67['commandName']){const _0xa2e234=_0x433d67['commandParams'][0x0]['value'];return _0xa2e234?{'type':'format','content':o(_0x2505a6,'*Set\x20font\x20family:*\x20%0',_0xa2e234)}:{'type':'format','content':o(_0x2505a6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x433d67['commandName']){const _0x151f6f=_0x433d67['commandParams'][0x0]['value'];if(_0x151f6f){const _0xebd930=_0x5c48bc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x35ae61=>_0x35ae61['model']==_0x151f6f);let _0x4d38b5=_0x151f6f,_0x51dac2='';return _0xebd930&&(_0x4d38b5=_0xebd930['label'],_0x51dac2=_0x53912a(_0x4d38b5)['toLowerCase']()),{'type':'format','content':o(_0x2505a6,'*Set\x20font\x20color:*\x20%0',_0x51dac2)['trim'](),'color':{'value':_0x151f6f,'title':_0x51dac2||_0x4d38b5}};}return{'type':'format','content':o(_0x2505a6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x433d67['commandName']){const _0x19f166=_0x433d67['commandParams'][0x0]['value'];if(_0x19f166){const _0x21b446=_0x5c48bc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2c38e3=>_0x2c38e3['model']==_0x19f166);let _0x2ce2f0=_0x19f166,_0x153faf='';return _0x21b446&&(_0x2ce2f0=_0x21b446['label'],_0x153faf=_0x53912a(_0x2ce2f0)['toLowerCase']()),{'type':'format','content':o(_0x2505a6,'*Set\x20font\x20background\x20color:*\x20%0',_0x153faf)['trim'](),'color':{'value':_0x19f166,'title':_0x153faf||_0x2ce2f0}};}return{'type':'format','content':o(_0x2505a6,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0xe55e59{['afterInit'](){const _0x1f8e74=this['editor'],_0x5b1efe=_0x1f8e74['plugins']['get']('TrackChangesEditing'),_0x6a49c8=_0x1f8e74['commands']['get']('copyFormat'),_0x49ec3d=_0x1f8e74['commands']['get']('pasteFormat');_0x6a49c8&&_0x49ec3d&&(_0x5b1efe['enableDefaultAttributesIntegration']('pasteFormat'),_0x5b1efe['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x337f0a=this['editor'],_0x2b02d5=_0x337f0a['locale'];_0x337f0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42a89c=>{if('formatBlock'!=_0x42a89c['type']&&'formatInline'!=_0x42a89c['type'])return;const {data:_0x285dac}=_0x42a89c;if(_0x285dac&&'pasteFormat'===_0x285dac['commandName']){const _0x89190=[],_0x565478=_0x285dac['commandParams'][0x0];for(const [_0x2f96fe,_0x58d2b3]of Object['entries'](_0x565478))_0x89190['push'](so(_0x337f0a,_0x2f96fe,_0x58d2b3));return _0x89190['length']?{'type':'format','content':o(_0x2b02d5,'*Set\x20format\x20to:*\x20%0',_0x89190['join'](',\x20'))}:{'type':'format','content':o(_0x2b02d5,'*Remove\x20all\x20formatting*')};}});}}function so(_0x44bda0,_0x1eeac0,_0x49537d){const _0x30ab4f=_0x44bda0['locale']['t'],_0x4437f1=_0x1eeac0['split'](/(?=[A-Z])/)['join']('\x20'),_0x269350=_0x30ab4f(_0x4437f1['charAt'](0x0)['toUpperCase']()+_0x4437f1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x49537d)return _0x269350;if('fontColor'===_0x1eeac0||'fontBackgroundColor'===_0x1eeac0){const _0x2a9901=_0x5c48bc(_0x44bda0['config']['get']('fontColor.colors'))['find'](_0x27c881=>_0x27c881['model']==_0x49537d);return _0x269350+'\x20('+(_0x2a9901?_0x30ab4f(_0x2a9901['label'])['toLowerCase']():_0x49537d)+')';}if('fontSize'===_0x1eeac0&&isNaN(parseFloat(_0x49537d))){const _0x4e871b=_0x44bda0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x44bda0['config']['get']('fontSize.options'))['find'](_0x1a571a=>_0x1a571a['model']==_0x49537d);return _0x269350+'\x20('+(_0x4e871b?_0x30ab4f(_0x4e871b['title'])['toLowerCase']():_0x49537d)+')';}return _0x269350+'\x20('+_0x49537d+')';}class Y extends _0xe55e59{['_headingOptions'];['afterInit'](){const _0x26f91b=this['editor'];if(!_0x26f91b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x26f91b['config']['get']('heading.options');const _0x35252b=_0x26f91b['locale'],_0x4da149=_0x26f91b['plugins']['get']('TrackChangesEditing');_0x4da149['enableDefaultAttributesIntegration']('heading');for(const _0x191f8b of this['_headingOptions'])'paragraph'!=_0x191f8b['model']&&_0x4da149['descriptionFactory']['registerElementLabel'](_0x191f8b['model'],_0x1b4f3c=>{const _0x1ff306=this['_getHeadingLevel'](_0x191f8b['model']);return null!==_0x1ff306?_0x247029(_0x1b4f3c,_0x1ff306):_0x2231cb(_0x1b4f3c,_0x191f8b['title']);});function _0x247029(_0x11b889,_0xb15308){return o(_0x35252b,'ELEMENT_HEADING',[_0x11b889,_0xb15308]);}function _0x2231cb(_0x23e5af,_0xe50198){return o(_0x35252b,'ELEMENT_HEADING_CUSTOM',[_0x23e5af,_0xe50198]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a7552=this['editor'],_0x3bda57=_0x3a7552['locale'];function _0xd7ada7(_0x21b55e,_0x33aa75){return o(_0x3bda57,'ELEMENT_HEADING_CUSTOM',[_0x21b55e,_0x33aa75]);}_0x3a7552['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6b2543=>{if('formatBlock'!=_0x6b2543['type'])return;const {data:_0xb9692a}=_0x6b2543;if(_0xb9692a&&'heading'==_0xb9692a['commandName']){const _0x41a082=_0xb9692a['commandParams'][0x0]['value'],_0x1a4fb5=this['_getHeadingLevel'](_0x41a082);if(null!==_0x1a4fb5)return{'type':'format','content':o(_0x3bda57,'*Change\x20to:*\x20%0',(_0x50c069=0x1,_0x46562f=_0x1a4fb5,o(_0x3bda57,'ELEMENT_HEADING',[_0x50c069,_0x46562f])))};const _0x5ed5cc=this['_headingOptions']['find'](_0x5ce863=>_0x5ce863['model']===_0x41a082)['title'];return{'type':'format','content':o(_0x3bda57,'*Change\x20to:*\x20%0',_0xd7ada7(0x1,_0x5ed5cc))};}var _0x50c069,_0x46562f;});}['_getHeadingLevel'](_0x4ee6c2){const _0x5f40a6=_0x4ee6c2['match'](/^heading(\d+)/);if(_0x5f40a6)return _0x5f40a6[0x1];const _0x4d4292=this['_headingOptions']?.['find'](_0x485f4c=>_0x485f4c['model']==_0x4ee6c2);if(_0x4d4292&&_0x4d4292['view']){const _0x200a6e=_0x4d4292['view'],_0x315eed=(_0x200a6e['name']??_0x200a6e)['match'](/^h(\d+)/);if(_0x315eed)return _0x315eed[0x1];}return null;}}class Z extends _0xe55e59{['afterInit'](){const _0x1cafa7=this['editor'];if(!_0x1cafa7['plugins']['has']('HighlightEditing'))return;const _0x1ce6b8=_0x1cafa7['plugins']['get']('TrackChangesEditing'),_0x5bb2ee=_0x1cafa7['locale'];_0x1ce6b8['enableDefaultAttributesIntegration']('highlight'),_0x1ce6b8['registerInlineAttribute']('highlight'),_0x1ce6b8['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5bb2ee,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b3300=this['editor'],_0x2b94e0=_0x1b3300['locale'];_0x1b3300['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x454ce2=>{if('formatInline'!=_0x454ce2['type'])return;const {data:_0x40f7cd}=_0x454ce2;if(_0x40f7cd&&'highlight'==_0x40f7cd['commandName']){const _0x42c48e=_0x2b94e0['t'],_0x251f8a=_0x40f7cd['commandParams'][0x0]['value'];if(_0x251f8a){const _0x52285a=_0x1b3300['config']['get']('highlight.options')['find'](_0x5bf8a6=>_0x5bf8a6['model']==_0x251f8a),_0xccc823=_0x42c48e(_0x52285a['title'])['toLowerCase']();return{'type':'format','content':o(_0x2b94e0,'*Set\x20highlight:*\x20%0',_0xccc823),'color':{'value':_0x52285a['color'],'title':_0x52285a['title']}};}return{'type':'format','content':o(_0x2b94e0,'*Remove\x20highlight*',o(_0x2b94e0,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0xe55e59{['afterInit'](){const _0x388247=this['editor'];if(!_0x388247['plugins']['has']('HorizontalLineEditing'))return;_0x388247['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4549e8=_0x388247['plugins']['get']('TrackChangesEditing'),_0x166f07=_0x388247['locale'];_0x4549e8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3e9fc6=>o(_0x166f07,'ELEMENT_HORIZONTAL_LINE',_0x3e9fc6)),_0x388247['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2e999c,{writer:_0xcefe1b,options:_0x53f13c})=>{if(!_0x53f13c['showSuggestionHighlights'])return null;const _0x3514dd=_0xcefe1b['createContainerElement']('div'),_0x89b2fa=_0xcefe1b['createEmptyElement']('hr');return _0xcefe1b['addClass']('ck-horizontal-line',_0x3514dd),_0xcefe1b['insert'](_0xcefe1b['createPositionAt'](_0x3514dd,0x0),_0x89b2fa),_0x3514dd;},'converterPriority':'high'});}}class et extends _0xe55e59{['afterInit'](){const _0x5b2a00=this['editor'];if(!_0x5b2a00['plugins']['has']('HtmlEmbed'))return;const _0x2c2fac=_0x5b2a00['plugins']['get']('TrackChangesEditing'),_0x423037=_0x5b2a00['locale'];_0x2c2fac['descriptionFactory']['registerElementLabel']('rawHtml',_0x2c293d=>o(_0x423037,'ELEMENT_HTML_EMBED',_0x2c293d)),_0x2c2fac['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2c2fac['registerBlockAttribute']('value'),_0x2c2fac['descriptionFactory']['registerDescriptionCallback'](_0x36fb0a=>{if('attribute'!=_0x36fb0a['type'])return;const {data:_0x12882f}=_0x36fb0a;if(_0x12882f&&'value'==_0x12882f['key']&&_0x36fb0a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5a19b3=o(_0x423037,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x423037,'*Change\x20%0\x20content*',_0x5a19b3)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a6e56=this['editor'],_0x3d401c=_0x3a6e56['locale'];_0x3a6e56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19c435=>{if('formatBlock'!=_0x19c435['type'])return;const {data:_0x503856}=_0x19c435;if(_0x503856&&'htmlEmbed'==_0x503856['commandName']){const _0x38ef16=o(_0x3d401c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3d401c,'*Change\x20%0\x20content*',_0x38ef16)};}});}}class it extends _0xe55e59{['afterInit'](){const _0x48468e=this['editor'];if(!_0x48468e['plugins']['has']('ImageEditing'))return;const _0x1a986d=_0x48468e['plugins']['get']('TrackChangesEditing'),_0x3070d4=_0x48468e['plugins']['get']('ImageUtils'),_0x1760a8=_0x48468e['locale'];_0x1a986d['enableCommand']('insertImage'),_0x1a986d['descriptionFactory']['registerElementLabel']('imageBlock',_0x3c4e37=>o(_0x1760a8,'ELEMENT_IMAGE',_0x3c4e37)),_0x1a986d['descriptionFactory']['registerElementLabel']('imageInline',_0x315474=>o(_0x1760a8,'ELEMENT_INLINE_IMAGE',_0x315474)),_0x1a986d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1760a8,'ELEMENT_CAPTION')),_0x48468e['plugins']['has']('ImageUploadEditing')&&_0x1a986d['enableCommand']('uploadImage'),_0x48468e['plugins']['has']('ImageBlockEditing')&&_0x48468e['plugins']['has']('ImageInlineEditing')&&(_0x1a986d['enableCommand']('imageTypeInline',(_0x7dc8a7,_0x73c8be)=>{const _0x13056e=_0x3070d4['getClosestSelectedImageElement'](_0x48468e['model']['document']['selection']);_0x48468e['model']['change'](()=>{_0x1a986d['markBlockFormat'](_0x13056e,{'commandName':'imageTypeInline','commandParams':[_0x73c8be]},[],'convertBlockImageToInline');});}),_0x1a986d['enableCommand']('imageTypeBlock',(_0x41dfb1,_0x4831e8)=>{_0x48468e['model']['change'](_0x2c6f35=>{let _0x173d0a=_0x3070d4['getClosestSelectedImageElement'](_0x48468e['model']['document']['selection']),_0x47d350=_0x2c6f35['createRangeOn'](_0x173d0a);const _0xc1f7db=_0x59d67d['fromPosition'](_0x47d350['start'],'toPrevious'),_0x387508=_0x59d67d['fromPosition'](_0x47d350['end'],'toNext');_0x1a986d['forceDefaultExecution'](()=>_0x41dfb1(_0x4831e8)),_0x173d0a=_0x3070d4['getClosestSelectedImageElement'](_0x48468e['model']['document']['selection']),_0x47d350=_0x2c6f35['createRangeOn'](_0x173d0a);const _0x16d259=_0x2c6f35['createRange'](_0xc1f7db,_0x387508);_0xc1f7db['detach'](),_0x387508['detach'](),_0x1a986d['markBlockFormat'](_0x173d0a,{'commandName':'imageTypeInline','commandParams':[_0x4831e8]},[],'convertInlineImageToBlock'),_0x16d259['start']['isBefore'](_0x47d350['start'])&&_0x1a986d['markInsertion'](_0x2c6f35['createRange'](_0x16d259['start'],_0x47d350['start']),'convertInlineImageToBlock'),_0x47d350['end']['isBefore'](_0x16d259['end'])&&_0x1a986d['markInsertion'](_0x2c6f35['createRange'](_0x47d350['end'],_0x16d259['end']),'convertInlineImageToBlock');});}),_0x1a986d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1a986d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1a986d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1a986d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1a986d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1a986d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xd90425])=>{const _0x3e2762=_0x1a986d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xc42b72=_0xd90425['start'],_0x2efb91=_0xd90425['end'];const _0x508bb6=_0x48468e['model']['schema']['getNearestSelectionRange'](_0xc42b72,'backward'),_0x295ccd=_0x48468e['model']['schema']['getNearestSelectionRange'](_0x2efb91,'forward');_0x508bb6['isCollapsed']&&(_0xc42b72=_0x508bb6['start']),_0x295ccd['isCollapsed']&&(_0x2efb91=_0x295ccd['end']),_0x3e2762([_0x48468e['model']['createRange'](_0xc42b72,_0x2efb91)]);}),_0x1a986d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5aeea0),_0x1a986d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5aeea0)),_0x48468e['plugins']['has']('ImageCaptionEditing')&&(_0x1a986d['enableCommand']('toggleImageCaption',(_0x3edc40,_0x49dc1a)=>{const _0x7c75b9=_0x48468e['plugins']['get']('ImageCaptionUtils');let _0x32ef60=_0x3070d4['getClosestSelectedImageElement'](_0x48468e['model']['document']['selection']),_0x5a981b=_0x7c75b9['getCaptionFromImageModelElement'](_0x32ef60);_0x48468e['model']['change'](()=>{if(_0x5a981b)return void _0x1a986d['markDeletion'](_0x48468e['model']['createRangeOn'](_0x5a981b));const _0x20c060=_0x3070d4['isBlockImage'](_0x32ef60);_0x3edc40(_0x49dc1a),_0x32ef60=_0x3070d4['getClosestSelectedImageElement'](_0x48468e['model']['document']['selection']),_0x5a981b=_0x7c75b9['getCaptionFromImageModelElement'](_0x32ef60),_0x1a986d['markInsertion'](_0x48468e['model']['createRangeOn'](_0x5a981b),_0x20c060?null:'imageCaption');});}),_0x1a986d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5aeea0));const _0x1c643c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x402ed3(_0x558021,_0x14056a){const _0x2c82c9=_0x1c643c['findIndex'](({type:_0x5f4e0c,subType:_0x50907e})=>_0x558021['type']==_0x5f4e0c&&_0x558021['subType']==_0x50907e),_0x19961a=_0x1c643c['findIndex'](({type:_0x322930,subType:_0x2d91c6})=>_0x14056a['type']==_0x322930&&_0x14056a['subType']==_0x2d91c6);if(_0x2c82c9<0x0||_0x19961a<0x0)return!0x1;const _0x5ca8ec=_0x558021['getFirstRange'](),_0x276754=_0x14056a['getFirstRange']();if((0x0==_0x2c82c9||0x1==_0x2c82c9)&&0x2==_0x19961a&&_0x5ca8ec['isIntersecting'](_0x276754))return!0x0;if(0x2==_0x2c82c9&&0x3==_0x19961a){const _0x2286a8=_0x1a986d['_findSuggestions'](_0x5ca8ec,'insertion')['filter'](({suggestion:_0x5ead5a,meta:_0xb0720e})=>_0xb0720e['isOwn']&&'convertInlineImageToBlock'==_0x5ead5a['subType']);if(_0x2286a8['length']>0x1&&_0x276754['end']['isEqual'](_0x5ca8ec['start']))return!0x0;if(0x1==_0x2286a8['length']&&(_0x5ca8ec['start']['isEqual'](_0x276754['end'])||_0x5ca8ec['end']['isEqual'](_0x276754['start'])))return!0x0;}if(0x3==_0x2c82c9&&0x3==_0x19961a&&_0x5ca8ec['start']['isBefore'](_0x276754['start'])){const _0x218ab3=_0x5ca8ec['end']['nodeAfter'],_0x517589=_0x276754['start']['nodeBefore'];return _0x3070d4['isBlockImage'](_0x218ab3)&&_0x218ab3===_0x517589;}return!0x1;}function _0x5aeea0(_0x2cb3af,_0x55affd){return _0x402ed3(_0x2cb3af,_0x55affd)?[_0x2cb3af,_0x55affd]:_0x402ed3(_0x55affd,_0x2cb3af)?[_0x55affd,_0x2cb3af]:null;}_0x48468e['plugins']['has']('ImageResize')&&(_0x1a986d['enableDefaultAttributesIntegration']('resizeImage'),_0x1a986d['registerBlockAttribute']('resizedWidth'),_0x1a986d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1760a8,'FORMAT_IMAGE_SIZE'))),_0x48468e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1a986d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1a986d['registerBlockAttribute']('alt')),_0x1a986d['descriptionFactory']['registerDescriptionCallback'](_0x11ab5d=>{if(!!_0x1c643c['find'](({type:_0x44c7a9,subType:_0x36f8f9})=>_0x11ab5d['type']==_0x44c7a9&&_0x11ab5d['subType']==_0x36f8f9))return _0x11ab5d['previous']?{}:void 0x0;}),_0x1a986d['descriptionFactory']['registerDescriptionCallback'](_0x2abdf4=>{if('insertion'==_0x2abdf4['type']||'deletion'==_0x2abdf4['type']){const _0x476aff=_0x2abdf4['getContainedElement']();if(_0x476aff&&_0x476aff['is']('element','caption'))return{'type':'insertion'==_0x2abdf4['type']?'addObject':'removeObject','element':_0x476aff,'quantity':0x1};}}),_0x1a986d['descriptionFactory']['registerDescriptionCallback'](_0x5a6f51=>'formatBlock'==_0x5a6f51['type']&&'convertInlineImageToBlock'==_0x5a6f51['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5a6f51['type']&&'convertBlockImageToInline'==_0x5a6f51['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1a986d['descriptionFactory']['registerDescriptionCallback'](_0x563e5a=>{if('attribute'!=_0x563e5a['type'])return;const {data:_0x316ac0}=_0x563e5a;if(!_0x316ac0||'alt'!=_0x316ac0['key'])return;const _0x384d64=_0x316ac0['newValue'];return _0x384d64?{'type':'format','content':o(_0x1760a8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x384d64+'\x22')}:{'type':'format','content':o(_0x1760a8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ce9ee=this['editor'],_0x3585d8=_0x4ce9ee['locale'];_0x4ce9ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a73e2=>{if('formatBlock'!=_0x3a73e2['type']&&'formatInline'!=_0x3a73e2['type'])return;const {data:_0x26d5bc}=_0x3a73e2;if(_0x26d5bc){if('imageTextAlternative'==_0x26d5bc['commandName']){const _0x35f3d9=_0x26d5bc['commandParams'][0x0]['newValue'];return _0x35f3d9?{'type':'format','content':o(_0x3585d8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x35f3d9+'\x22')}:{'type':'format','content':o(_0x3585d8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x26d5bc['commandName']){const _0x1a7ac4=_0x26d5bc['commandParams'][0x0]['width'];return _0x1a7ac4?{'type':'format','content':o(_0x3585d8,'*Set\x20image\x20width:*\x20%0',_0x1a7ac4)}:{'type':'format','content':o(_0x3585d8,'*Reset\x20image\x20width*')};}}});}}class st extends _0xe55e59{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x513824=this['editor']['locale'],_0xb95285=this['editor']['plugins']['get']('TrackChangesEditing');_0xb95285['enableDefaultAttributesIntegration']('replaceImageSource'),_0xb95285['registerBlockAttribute']('src'),_0xb95285['descriptionFactory']['registerDescriptionCallback'](_0xa4afbc=>{if('attribute'!=_0xa4afbc['type'])return;const {data:_0x20dc5f}=_0xa4afbc;return _0x20dc5f&&'src'==_0x20dc5f['key']?_0x20dc5f['newValue']&&_0x20dc5f['oldValue']?{'type':'format','content':o(_0x513824,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xc6138f=this['editor']['plugins']['get']('TrackChangesEditing');_0xc6138f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xc6138f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc6138f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xc6138f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2013d8=this['editor'],_0x4247d5=_0x2013d8['locale'];_0x2013d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fb900=>{if('formatBlock'!=_0x2fb900['type']&&'formatInline'!=_0x2fb900['type'])return;const {data:_0x264e82}=_0x2fb900;if(!_0x264e82||'replaceImageSource'!=_0x264e82['commandName'])return;return{'type':'format','content':o(_0x4247d5,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0xe55e59{['afterInit'](){const _0x58bcde=this['editor'];if(!_0x58bcde['plugins']['has']('ImageStyleEditing'))return;const _0x510df7=_0x58bcde['plugins']['get']('TrackChangesEditing'),_0x12cbea=_0x58bcde['plugins']['get']('ImageUtils'),_0xe3e0d9={};_0x510df7['enableCommand']('imageStyle',(_0x2b99b6,_0x1dde3e)=>{const _0xa5af8b=_0x58bcde['plugins']['get']('Users')['me'],_0x563258=_0x58bcde['commands']['get']('imageStyle');let _0xa49a6f=_0x12cbea['getClosestSelectedImageElement'](_0x58bcde['model']['document']['selection']),_0x3f02aa=_0x58bcde['model']['createRangeOn'](_0xa49a6f),_0x1a4173=_0x563258['value'];if(_0x1a4173==_0x1dde3e['value'])return;const _0x3339e4={'commandName':'imageStyle','commandParams':[_0x1dde3e],'formatGroupId':_0xbe7a13()};_0x58bcde['model']['change'](()=>{if(_0x510df7['getSuggestions']()['filter'](_0x6cbd47=>_0x6cbd47['isInContent']&&_0xa5af8b==_0x6cbd47['author']&&('formatBlock'==_0x6cbd47['type']||'formatInline'==_0x6cbd47['type'])&&('imageStylePreApply'==_0x6cbd47['subType']||'imageStylePostApply'==_0x6cbd47['subType'])&&_0x6cbd47['getFirstRange']()['isEqual'](_0x3f02aa))['forEach'](_0x9f2e06=>_0x510df7['discardSuggestion'](_0x9f2e06['head'])),_0xa49a6f=_0x12cbea['getClosestSelectedImageElement'](_0x58bcde['model']['document']['selection']),_0x3f02aa=_0x58bcde['model']['createRangeOn'](_0xa49a6f),_0x563258['refresh'](),_0x58bcde['commands']['get']('imageTypeInline')['refresh'](),_0x58bcde['commands']['get']('imageTypeBlock')['refresh'](),_0x1a4173=_0x563258['value'],_0x1a4173!=_0x1dde3e['value'])return _0x12cbea['isInlineImage'](_0xa49a6f)&&_0x563258['shouldConvertImageType'](_0x1dde3e['value'],_0xa49a6f)?(_0x2b99b6({..._0x1dde3e,'setImageSizes':!0x1}),_0xa49a6f=_0x12cbea['getClosestSelectedImageElement'](_0x58bcde['model']['document']['selection']),void _0x510df7['markBlockFormat'](_0xa49a6f,{..._0x3339e4,'commandReversedParams':[{'value':_0x1a4173||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x12cbea['isBlockImage'](_0xa49a6f)?_0x510df7['markBlockFormat'](_0xa49a6f,_0x3339e4,[],'imageStylePostApply'):_0x510df7['markInlineFormat'](_0x3f02aa,_0x3339e4,'imageStylePostApply'));});});for(const _0x516313 of _0x58bcde['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xe3e0d9[_0x516313['name']]=_0x516313['title']['toLowerCase']();_0x510df7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x510df7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x510df7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x510df7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x13aa82])=>{_0x12cbea['setImageNaturalSizeAttributes'](_0x13aa82['getContainedElement']());}),_0x510df7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x16b088,_0x53b5c7)=>{_0x510df7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x16b088,{'commandName':_0x53b5c7['commandName'],'commandParams':_0x53b5c7['commandReversedParams']});}),_0x510df7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xadb03d,_0x4f66e4){if(_0x233995(_0xadb03d,_0x4f66e4))return[_0xadb03d,_0x4f66e4];if(_0x233995(_0x4f66e4,_0xadb03d))return[_0x4f66e4,_0xadb03d];return null;});const _0x3ceab0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x233995(_0x3bc053,_0x2357a3){const _0x18d6f7=_0x3ceab0['findIndex'](({type:_0x565a80,subType:_0x511aee})=>_0x3bc053['type']==_0x565a80&&_0x3bc053['subType']==_0x511aee),_0x5dc74f=_0x3ceab0['findIndex'](({type:_0x435ddf,subType:_0x1946fc})=>_0x2357a3['type']==_0x435ddf&&_0x2357a3['subType']==_0x1946fc);if(_0x18d6f7<0x0||_0x5dc74f<0x0)return!0x1;const _0x3629af=_0x3bc053['getFirstRange'](),_0x182535=_0x2357a3['getFirstRange']();if((0x0==_0x18d6f7||0x1==_0x18d6f7)&&0x2==_0x5dc74f&&_0x3629af['isIntersecting'](_0x182535))return!0x0;if(0x2==_0x18d6f7&&0x3==_0x5dc74f){const _0x7247dc=_0x510df7['_findSuggestions'](_0x3629af,'insertion')['filter'](({suggestion:_0x1a2588,meta:_0x5c42d1})=>_0x5c42d1['isOwn']&&'convertInlineImageToBlock'==_0x1a2588['subType']);if(_0x7247dc['length']>0x1&&_0x182535['end']['isEqual'](_0x3629af['start']))return!0x0;if(0x1==_0x7247dc['length']&&(_0x3629af['start']['isEqual'](_0x182535['end'])||_0x3629af['end']['isEqual'](_0x182535['start'])))return!0x0;}if(0x3==_0x18d6f7&&0x3==_0x5dc74f&&_0x3629af['start']['isBefore'](_0x182535['start'])){const _0x4ccf1a=_0x3629af['end']['nodeAfter'],_0x1f6b2b=_0x182535['start']['nodeBefore'];return _0x12cbea['isBlockImage'](_0x4ccf1a)&&_0x4ccf1a===_0x1f6b2b;}return!0x1;}_0x58bcde['model']['document']['registerPostFixer'](()=>{let _0x45596a=!0x1;const _0x2bc06a=Array['from'](_0x58bcde['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4133e3,data:_0xee6d1d}of _0x2bc06a){const {group:_0x5a6bcd,type:_0x265fca,subType:_0x12e1cf,id:_0x24ee3d}=_0x510df7['_splitMarkerName'](_0x4133e3);if('suggestion'==_0x5a6bcd&&_0x510df7['hasSuggestion'](_0x24ee3d)){if('formatBlock'==_0x265fca&&('imageStylePreApply'==_0x12e1cf||'imageStylePostApply'==_0x12e1cf)){const _0x471d7a=_0x510df7['getSuggestion'](_0x24ee3d);if(_0xee6d1d['newRange']){const _0xbaaaa5=_0x471d7a['getFirstRange']()['getContainedElement']();if(_0x12cbea['isBlockImage'](_0xbaaaa5))continue;_0x510df7['discardSuggestion'](_0x471d7a),_0x45596a=!0x0;}}if('insertion'==_0x265fca&&'imageCaption'==_0x12e1cf&&!_0xee6d1d['newRange']){const _0x287f61=_0x510df7['getSuggestion'](_0x24ee3d);_0x287f61['next']&&_0x287f61['next']['isInContent']&&(_0x510df7['discardSuggestion'](_0x287f61['next']),_0x45596a=!0x0);}}}return _0x45596a;}),this['_registerLegacyDescription'](_0xe3e0d9);}['_registerLegacyDescription'](_0x2a4880){const _0x42c884=this['editor'],_0x1d6801=_0x42c884['locale'];_0x42c884['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x437781=>{if('formatBlock'!=_0x437781['type']&&'formatInline'!=_0x437781['type'])return;const {data:_0x3bf420}=_0x437781;if(!_0x3bf420||'imageStyle'!=_0x3bf420['commandName'])return;const _0x191980=_0x3bf420['commandParams'][0x0]['value'];return _0x4a8730('side'===_0x191980?o(_0x1d6801,'FORMAT_SIDE_IMAGE'):_0x2a4880[_0x191980]||_0x191980);function _0x4a8730(_0x36c73c){return{'type':'format','content':o(_0x1d6801,'*Format:*\x20%0',_0x36c73c)};}});}}class ot extends _0xe55e59{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2a9f37){super(_0x2a9f37),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x47420a=this['editor'],_0x4ef340=_0x47420a['commands']['get']('importWord'),_0x499586=_0x47420a['commands']['get']('trackChanges');_0x4ef340&&(_0x4ef340['on']('execute',(_0xcadd68,[,_0x52c972])=>{this['_trackChangesValueDuringImport']=_0x499586['value'],_0x52c972['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4ef340,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4ef340,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x499586['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x47420a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x52136c,_0x12cd2b){const {suggestions:_0x4351b9}=_0x12cd2b,_0x4b712d=this['editor']['commands']['get']('trackChanges'),_0x2431cc=_0x4b712d['value'];this['_trackChangesValueDuringImport']!==_0x2431cc&&(_0x4b712d['execute'](),this['_trackChangesExecuted']=!0x0),_0x4351b9&&_0x4351b9['forEach'](({id:_0x142704,type:_0x22e2d8,author:_0x3617f0,created_at:_0x175c42})=>{const _0x2de85c={'id':_0x142704,'type':_0x22e2d8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3617f0,'createdAt':_0x175c42?new Date(_0x175c42):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2de85c);});}}class rt extends _0xe55e59{['afterInit'](){const _0x16e850=this['editor'],_0x4b677e=_0x16e850['plugins']['get']('TrackChangesEditing');if(_0x16e850['plugins']['has']('IndentEditing')&&(_0x4b677e['enableCommand']('indent'),_0x4b677e['enableCommand']('outdent')),_0x16e850['plugins']['has']('IndentBlock')){for(const _0x5cc927 of['indentBlock','outdentBlock'])_0x4b677e['enableDefaultAttributesIntegration'](_0x5cc927);}const _0x4d8e9a=_0x16e850['locale'];_0x4b677e['registerBlockAttribute']('blockIndent'),_0x4b677e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4d8e9a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26115e=this['editor'],_0x450ac6=_0x26115e['locale'],_0x1b0a2b=_0x26115e['plugins']['get']('TrackChangesEditing');_0x1b0a2b['descriptionFactory']['registerDescriptionCallback'](_0x24dcef=>{if('formatBlock'!=_0x24dcef['type'])return;const {data:_0xe726d2}=_0x24dcef;if(!_0xe726d2)return;if('indentBlock'!=_0xe726d2['commandName']&&'outdentBlock'!=_0xe726d2['commandName'])return;const _0x595e32=_0x24dcef['getItems']()[0x0],_0x2d06a1=_0x1b0a2b['descriptionFactory']['getItemLabel'](_0x595e32);return'indentBlock'==_0xe726d2['commandName']?{'type':'format','content':o(_0x450ac6,'*Indent:*\x20%0',_0x2d06a1)}:'outdentBlock'==_0xe726d2['commandName']?{'type':'format','content':o(_0x450ac6,'*Outdent:*\x20%0',_0x2d06a1)}:void 0x0;});}}class at extends _0xe55e59{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0xe55e59{['afterInit'](){const _0xf18a0b=this['editor'];if(!_0xf18a0b['plugins']['has']('LinkEditing'))return;const _0x5b8a06=_0xf18a0b['plugins']['get']('TrackChangesEditing'),_0x2bf851=_0xf18a0b['commands']['get']('link');_0x5b8a06['enableDefaultAttributesIntegration']('link'),_0x5b8a06['enableDefaultAttributesIntegration']('unlink'),_0x5b8a06['registerInlineAttribute']('linkHref');for(const _0x1650bf of _0x2bf851['manualDecorators'])_0x5b8a06['registerInlineAttribute'](_0x1650bf['id']),_0x5b8a06['descriptionFactory']['registerAttributeLabel'](_0x1650bf['id'],'link\x20('+_0x1650bf['label']['toLowerCase']()+')');_0x5b8a06['descriptionFactory']['registerDescriptionCallback'](_0x32f041=>{if('attribute'!=_0x32f041['type'])return;const {data:_0x13c72d}=_0x32f041;if(!_0x13c72d||'linkHref'!=_0x13c72d['key'])return;const _0xa2cede=_0x13c72d['newValue'],_0x59147d=_0xf18a0b['locale'];return{'type':'format','content':null==_0xa2cede?o(_0x59147d,'*Remove\x20link*'):o(_0x59147d,'*Set\x20link:*\x20%0','\x22'+_0xa2cede+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b9f28=this['editor'],_0x1c2883=_0x3b9f28['locale'];_0x3b9f28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43c160=>{if('formatInline'!=_0x43c160['type'])return;const {data:_0x27efab}=_0x43c160;if(_0x27efab){if('link'==_0x27efab['commandName']){const _0x485dcf=_0x27efab['commandParams'][0x0];return{'type':'format','content':o(_0x1c2883,'*Set\x20link:*\x20%0','\x22'+_0x485dcf+'\x22')};}return'unlink'==_0x27efab['commandName']?{'type':'format','content':o(_0x1c2883,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0xe55e59{['afterInit'](){const _0x3ee27a=this['editor'],_0x3a97bd=_0x3ee27a['locale'];if(!_0x3ee27a['plugins']['has']('LegacyListEditing'))return;const _0x7034af=_0x3ee27a['plugins']['get']('TrackChangesEditing'),_0x461cae=_0x3ee27a['plugins']['has']('LegacyTodoListEditing');function _0x365ccf(_0x6776f7){return()=>{const _0x1a88d3=_0x3ee27a['model']['document']['selection'],_0x371c4f=_0x3ee27a['commands']['get'](_0x6776f7);if(_0x371c4f['value'])return void _0x3ee27a['execute']('paragraph',{});const _0x5db4f5=_0x6776f7['slice'](0x0,-0x4),_0x22db39=function(_0x1315f7,_0x1c5d66,_0x4cd8e5){let _0x3eb97e=Array['from'](_0x1315f7)['filter'](_0x3304d1=>function(_0x57abb0,_0x58b2a3){return _0x58b2a3['checkChild'](_0x57abb0['parent'],'listItem')&&!_0x58b2a3['isObject'](_0x57abb0);}(_0x3304d1,_0x4cd8e5));_0x3eb97e=_0x3eb97e['filter'](_0x232d35=>!_0x232d35['is']('element','listItem')||_0x232d35['getAttribute']('listType')!=_0x1c5d66);const _0x63ce05=new Set();for(const _0x3d5e9e of _0x3eb97e)_0x3d5e9e['is']('element','listItem')?_0x63ce05['add'](me(_0x3d5e9e)):_0x63ce05['add'](_0x3d5e9e);return Array['from'](_0x63ce05);}(_0x1a88d3['getSelectedBlocks'](),_0x5db4f5,_0x3ee27a['model']['schema']);_0x3ee27a['model']['change'](()=>{for(const _0x252b22 of _0x22db39)_0x7034af['markBlockFormat'](_0x252b22,{'commandName':_0x6776f7,'commandParams':[{'forceValue':!_0x371c4f['value']}],'formatGroupId':'blockName'},fe(_0x252b22));});};}function _0xe0937(_0x1b9fe3){return()=>{const _0x10d102=function(_0x1d818d){let _0x415ca3=Array['from'](_0x1d818d);const _0x4f6ff2=_0x415ca3['findIndex'](_0x2175fd=>'listItem'!=_0x2175fd['name']);return _0x4f6ff2>-0x1&&(_0x415ca3=_0x415ca3['slice'](0x0,_0x4f6ff2)),_0x415ca3;}(_0x3ee27a['model']['document']['selection']['getSelectedBlocks']()),_0x266c72=_0x3ee27a['model']['createRange'](_0x3ee27a['model']['createPositionAt'](_0x10d102[0x0],'before'),_0x3ee27a['model']['createPositionAt'](_0x10d102[_0x10d102['length']-0x1],'end'));_0x3ee27a['model']['change'](()=>{_0x7034af['markBlockFormat'](_0x266c72,{'commandName':_0x1b9fe3,'commandParams':[],'formatGroupId':'listIndent'},function(_0x59fff5){const _0x19a88f=new Set();for(const _0x5c0a7a of _0x59fff5){let _0x45fcfb=_0x5c0a7a['nextSibling'];for(;_0x45fcfb&&_0x45fcfb['getAttribute']('listIndent')>_0x5c0a7a['getAttribute']('listIndent');)_0x19a88f['add'](_0x45fcfb),_0x45fcfb=_0x45fcfb['nextSibling'];}return Array['from'](_0x19a88f);}(_0x10d102));});};}_0x7034af['enableCommand']('numberedList',_0x365ccf('numberedList')),_0x7034af['enableCommand']('bulletedList',_0x365ccf('bulletedList')),_0x461cae&&_0x7034af['enableCommand']('todoList',_0x365ccf('todoList')),_0x7034af['enableCommand']('indentList',_0xe0937('indentList')),_0x7034af['enableCommand']('outdentList',_0xe0937('outdentList')),_0x461cae&&_0x7034af['enableCommand']('checkTodoList',()=>{const _0x3ff471=_0x3ee27a['commands']['get']('checkTodoList'),_0x3644ff=Array['from'](_0x3ff471['_selectedElements']);_0x3644ff['filter'](_0x338fc5=>_0x338fc5['getAttribute']('todoListChecked')!=_0x3ff471['value']),_0x3ee27a['model']['change'](()=>{for(const _0x38ee31 of _0x3644ff)_0x7034af['markBlockFormat'](_0x38ee31,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3ff471['value']}]});});}),_0x7034af['descriptionFactory']['registerElementLabel']('listItem',_0x5de3f2=>o(_0x3a97bd,'ELEMENT_LIST_ITEM',_0x5de3f2)),_0x7034af['descriptionFactory']['registerDescriptionCallback'](_0x4aabc1=>{if('formatBlock'!=_0x4aabc1['type']&&'formatInline'!=_0x4aabc1['type'])return;const {data:_0x341c3b}=_0x4aabc1;if(_0x341c3b){if('numberedList'==_0x341c3b['commandName']||'bulletedList'==_0x341c3b['commandName']||'todoList'==_0x341c3b['commandName'])switch(_0x341c3b['commandName']['replace']('List','')){case'bulleted':return _0x35e2d5(o(_0x3a97bd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35e2d5(o(_0x3a97bd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35e2d5(o(_0x3a97bd,'ELEMENT_TODO_LIST'));}if('indentList'==_0x341c3b['commandName'])return{'type':'format','content':o(_0x3a97bd,'*Indent:*\x20%0',o(_0x3a97bd,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x341c3b['commandName'])return{'type':'format','content':o(_0x3a97bd,'*Outdent:*\x20%0',o(_0x3a97bd,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x341c3b['commandName'])return _0x341c3b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a97bd,'*Check\x20item*')}:{'type':'format','content':o(_0x3a97bd,'*Uncheck\x20item*')};}function _0x35e2d5(_0x517bef){return{'type':'format','content':o(_0x3a97bd,'*Change\x20to:*\x20%0',_0x517bef)};}});}}function me(_0x49d625){const _0x1b7a92=_0x49d625['getAttribute']('listIndent');if(0x0==_0x1b7a92)return _0x49d625;let _0x238d6d=_0x49d625;for(;_0x49d625['previousSibling']&&_0x49d625['previousSibling']['is']('element','listItem');){const _0x5132b9=_0x49d625['previousSibling']['getAttribute']('listIndent');if(_0x5132b9==_0x1b7a92)_0x238d6d=_0x49d625['previousSibling'];else{if(_0x5132b9<_0x1b7a92)break;}_0x49d625=_0x49d625['previousSibling'];}return _0x238d6d;}function fe(_0x1828c2){const _0x2da99a=[];if(_0x1828c2['is']('element','listItem')&&_0x1828c2['getAttribute']('listIndent')>0x0){let _0x235479=_0x1828c2['nextSibling'];for(;_0x235479&&'listItem'==_0x235479['name']&&_0x235479['getAttribute']('listIndent')==_0x1828c2['getAttribute']('listIndent');)_0x2da99a['push'](_0x235479),_0x235479=_0x235479['nextSibling'];}return _0x2da99a;}class K extends _0xe55e59{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x11c86e=this['editor']['config']['get']('list.properties'),_0x3c0474=this['editor']['plugins']['get']('TrackChangesEditing');_0x11c86e['styles']&&_0x3c0474['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x11c86e['reversed']&&_0x3c0474['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x11c86e['startIndex']&&_0x3c0474['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3c0474['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xf6bfe8,_0x2a3dbd={}){const _0x1612e3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x362f33=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1612e3['markMultiRangeBlockFormat'](_0x362f33,{'commandName':'listStyle','commandParams':[{'type':_0x2a3dbd['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4cfb34,_0x35dcb1={}){const _0x3e69f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b9999=this['_getSuggestionBlocks'](_0x3e5731=>_0x3e5731['is']('element','listItem')&&'numbered'===_0x3e5731['getAttribute']('listType'));if(_0x3b9999['length']<0x1)return;const _0x1817ec=_0x3b9999['map'](_0x168d87=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x168d87,'before'),this['editor']['model']['createPositionAt'](_0x168d87,0x0)));this['editor']['model']['change'](()=>{_0x3e69f1['markMultiRangeBlockFormat'](_0x1817ec,{'commandName':'listReversed','commandParams':[{'reversed':_0x35dcb1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x20af7b,_0x363df2={}){const _0x54b608=this['editor']['plugins']['get']('TrackChangesEditing'),_0x105393=this['_getSuggestionBlocks'](_0xfe9dab=>_0xfe9dab['is']('element','listItem')&&'numbered'===_0xfe9dab['getAttribute']('listType'));if(_0x105393['length']<0x1)return;const _0x49e6dd=_0x105393['map'](_0x27bf30=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27bf30,'before'),this['editor']['model']['createPositionAt'](_0x27bf30,0x0)));this['editor']['model']['change'](()=>{_0x54b608['markMultiRangeBlockFormat'](_0x49e6dd,{'commandName':'listStart','commandParams':[{'startIndex':_0x363df2['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x9cb6fc){if('formatBlock'!=_0x9cb6fc['type']&&'formatInline'!=_0x9cb6fc['type'])return;const _0x402ee7=this['editor']['locale'],{data:_0x2b0312}=_0x9cb6fc;if(!_0x2b0312)return;let _0x5e3e3f,_0x363859;switch(_0x2b0312['commandName']){case'listStyle':_0x5e3e3f='*Change\x20to:*\x20%0',_0x363859={'type':'format','content':o(_0x402ee7,_0x5e3e3f,o(_0x402ee7,this['_getTranslationKeyForListStyle'](_0x2b0312['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5e3e3f=_0x2b0312['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x363859={'type':'format','content':o(_0x402ee7,_0x5e3e3f)};break;case'listStart':_0x5e3e3f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x363859={'type':'format','content':o(_0x402ee7,_0x5e3e3f,_0x2b0312['commandParams'][0x0]['startIndex'])};}return _0x363859;}['_getSuggestionBlocksForListStyle'](){const _0x28b709=this['editor']['plugins']['get']('LegacyListUtils');let _0x1ea91f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1ea91f[0x0]?.['is']('element','listItem')&&_0x1ea91f['unshift'](..._0x28b709['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1ea91f[_0x1ea91f['length']-0x1]?.['is']('element','listItem')&&_0x1ea91f['push'](..._0x28b709['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1ea91f=[...new Set(_0x1ea91f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1ea91f=_0x1ea91f['filter'](_0x491b97=>_0x491b97['is']('element','listItem'))),_0x1ea91f;}['_getSuggestionBlocks'](_0x6666a7){const _0x340894=this['editor']['plugins']['get']('LegacyListUtils');let _0x107646=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x6666a7)['map'](_0x49d64d=>{const _0x165264=this['editor']['model']['createPositionAt'](_0x49d64d,0x0);return[..._0x340894['getSiblingNodes'](_0x165264,'backward'),..._0x340894['getSiblingNodes'](_0x165264,'forward')];})['flat']();return _0x107646=[...new Set(_0x107646)],_0x107646;}['_getTranslationKeyForListStyle'](_0x2b69ea){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2b69ea)||'default')['toUpperCase']()+'_LIST_'+_0x2b69ea['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0xe55e59{['afterInit'](){const _0x711461=this['editor'];if(!_0x711461['plugins']['has']('MediaEmbedEditing'))return;const _0x587d6f=_0x711461['plugins']['get']('TrackChangesEditing'),_0x5d3019=_0x711461['locale'];_0x587d6f['enableCommand']('mediaEmbed'),_0x587d6f['descriptionFactory']['registerElementLabel']('media',_0x2c877a=>o(_0x5d3019,'ELEMENT_MEDIA',_0x2c877a)),_0x711461['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1c2435,{writer:_0x219c44,options:_0x5edea9})=>{if(_0x5edea9['showSuggestionHighlights'])return _0x219c44['createEmptyElement']('div');},'converterPriority':'high'}),_0x711461['data']['downcastDispatcher']['on']('attribute:url:media',(_0x340552,_0x281147,_0x41b8ff)=>{_0x41b8ff['options']['showSuggestionHighlights']&&_0x340552['stop']();},{'priority':'high'});}}class gt extends _0xe55e59{['afterInit'](){const _0x46323e=this['editor'];_0x46323e['plugins']['has']('MentionEditing')&&_0x46323e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0xe55e59{['afterInit'](){const _0xfa6f72=this['editor'],_0x3cd94a=_0xfa6f72['plugins']['get']('TrackChangesEditing');_0xfa6f72['plugins']['has']('MultiLevelList')&&(_0x3cd94a['enableDefaultAttributesIntegration']('multiLevelList'),_0x3cd94a['registerBlockAttribute']('listMarkerStyle'),_0x3cd94a['descriptionFactory']['registerDescriptionCallback'](_0x1df0a8=>this['handleDescriptions'](_0x1df0a8)));}['handleDescriptions'](_0x9c7cde){const _0x210987=this['editor']['locale'],{data:_0x123bad}=_0x9c7cde,_0x5c2b1c={'type':'format','content':''};if(_0x123bad&&'listMarkerStyle'==_0x123bad['key']){if(!_0x123bad['oldValue'])return{'type':'format','content':o(_0x210987,'*Set\x20format:*\x20%0',o(_0x210987,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x123bad['newValue']+')'};if(!_0x123bad['newValue']){let _0x51273f=_0x9c7cde['head'];for(;_0x51273f;){if(_0x51273f['data']&&'listType'==_0x51273f['data']['key']&&_0x51273f['data']['newValue'])return _0x5c2b1c;_0x51273f=_0x51273f['next'];}return{'type':'format','content':o(_0x210987,'*Remove\x20format:*\x20%0',o(_0x210987,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x123bad['oldValue']+')'};}}}}class mt extends _0xe55e59{['afterInit'](){const _0x2755eb=this['editor'];if(!_0x2755eb['plugins']['has']('PageBreakEditing'))return;_0x2755eb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x11889b=_0x2755eb['plugins']['get']('TrackChangesEditing'),_0x18ea9e=_0x2755eb['locale'];_0x11889b['descriptionFactory']['registerElementLabel']('pageBreak',_0x23bd70=>o(_0x18ea9e,'ELEMENT_PAGE_BREAK',_0x23bd70));}}class dt extends _0xe55e59{['afterInit'](){const _0xbb6284=this['editor'];if(!_0xbb6284['plugins']['has']('Paragraph'))return;const _0x2f4102=_0xbb6284['locale'],_0x16b1ec=_0xbb6284['plugins']['get']('TrackChangesEditing');_0x16b1ec['descriptionFactory']['registerElementLabel']('paragraph',_0x591ec1=>o(_0x2f4102,'ELEMENT_PARAGRAPH',_0x591ec1)),_0x16b1ec['enableDefaultAttributesIntegration']('paragraph'),_0x16b1ec['enableCommand']('insertParagraph'),_0xbb6284['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xbb6284),{'priority':'highest'}),_0xbb6284['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1ac237,_0x348176,_0x3061cf)=>{_0x3061cf['options']['showSuggestionHighlights']&&nr(_0xbb6284,{'showActiveMarker':!0x1})(_0x1ac237,_0x348176,_0x3061cf);},{'priority':'highest'});const _0x573dce=_0x16b1ec['descriptionFactory'];_0x573dce['registerDescriptionCallback'](_0x34587c=>{if('insertion'!==_0x34587c['type'])return;const {start:_0x41b96d,end:_0xef9e77}=_0x34587c['getFirstRange']();if(!_0x41b96d['isTouching'](_0xef9e77)||!_0x41b96d['nodeAfter'])return;const _0x1fa775=_0xbb6284['model']['schema'],_0x53fe3d=_0x41b96d['nodeAfter'];return _0x1fa775['isBlock'](_0x53fe3d)&&!_0x1fa775['isLimit'](_0x53fe3d)&&_0x1fa775['checkChild'](_0x53fe3d,'$text')?{'type':'insertion','content':o(_0x2f4102,'*Insert:*\x20%0',_0x573dce['getItemLabel'](_0x53fe3d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a8fac=this['editor'],_0x29b4d3=_0x4a8fac['locale'];_0x4a8fac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5312e3=>{if('formatBlock'!=_0x5312e3['type'])return;const {data:_0xd3dd57}=_0x5312e3;return _0xd3dd57&&'paragraph'==_0xd3dd57['commandName']?{'type':'format','content':o(_0x29b4d3,'*Change\x20to:*\x20%0',o(_0x29b4d3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x154a67,{showActiveMarker:_0x1e4971=!0x0}={}){return(_0xfdeb96,_0x356d91,_0x2b292f)=>{const _0x3c010f=_0x154a67['plugins']['get']('TrackChangesEditing'),_0x54d700=_0x356d91['markerRange']['start'],_0x346383=_0x356d91['markerRange']['end'],_0x5ce433=_0x154a67['model']['schema'];if(!_0x54d700['isTouching'](_0x346383)||!_0x54d700['nodeAfter'])return;const _0x29c50d=_0x54d700['nodeAfter'];if(_0x5ce433['isBlock'](_0x29c50d)&&!_0x5ce433['isLimit'](_0x29c50d)&&_0x5ce433['checkChild'](_0x29c50d,'$text')){if(!_0x2b292f['consumable']['consume'](_0x356d91['markerRange'],_0xfdeb96['name']))return;const _0x3495d4=_0x2b292f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x15d752=_0x2b292f['mapper']['toViewPosition'](_0x346383);_0x1e4971&&_0x3c010f['activeMarkers']['includes'](_0x356d91['markerName'])&&_0x2b292f['writer']['addClass']('ck-suggestion-marker--active',_0x3495d4),_0x2b292f['writer']['insert'](_0x15d752,_0x3495d4),_0x2b292f['mapper']['bindElementToMarker'](_0x3495d4,_0x356d91['markerName']);}};}class pt extends _0xe55e59{['afterInit'](){const _0x4e3dcc=this['editor'];if(!_0x4e3dcc['plugins']['has']('RemoveFormatEditing'))return;_0x4e3dcc['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x322e3c=this['editor'];_0x322e3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4998b5=>{if('formatBlock'!=_0x4998b5['type']&&'formatInline'!=_0x4998b5['type'])return;const {data:_0x2b0bfe}=_0x4998b5;return _0x2b0bfe&&'removeFormat'==_0x2b0bfe['commandName']?{'type':'format','content':o(_0x322e3c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0xe55e59{['afterInit'](){const _0x5b94cd=this['editor'];if(!_0x5b94cd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3496aa=_0x5b94cd['plugins']['get']('TrackChangesEditing');_0x3496aa['enableCommand']('goToPreviousRestrictedEditingException'),_0x3496aa['enableCommand']('goToNextRestrictedEditingException');const _0x37adf5=_0x5b94cd['plugins']['get']('RestrictedEditingModeEditing');_0x37adf5['enableCommand']('trackChanges'),_0x37adf5['enableCommand']('acceptSuggestion'),_0x37adf5['enableCommand']('discardSuggestion'),_0x37adf5['enableCommand']('acceptAllSuggestions'),_0x37adf5['enableCommand']('discardAllSuggestions'),_0x37adf5['enableCommand']('acceptSelectedSuggestions'),_0x37adf5['enableCommand']('discardSelectedSuggestions');}}class bt extends _0xe55e59{static get['requires'](){return[_0x316f9a];}['init'](){const _0x1a6750=this['editor'],_0x4ef2e9=_0x1a6750['plugins']['get']('TrackChangesEditing');_0x4ef2e9['enableCommand']('shiftEnter'),_0x1a6750['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x1a6750),{'priority':'high'}),_0x1a6750['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x1a6750),{'priority':'high'}),_0x1a6750['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x265e69,_0x4fd973,_0x4bd755)=>{_0x4bd755['options']['showSuggestionHighlights']&&de(_0x1a6750,{'showActiveMarker':!0x1})(_0x265e69,_0x4fd973,_0x4bd755);}),_0x4ef2e9['descriptionFactory']['registerElementLabel']('softBreak',_0x253c61=>o(_0x1a6750['locale'],'ELEMENT_LINE_BREAK',_0x253c61));}}function de(_0x19ebcd,{showActiveMarker:_0x337854=!0x0}={}){return(_0x100568,_0x2918c2,_0x2634f7)=>{const _0xa80726=_0x19ebcd['plugins']['get']('TrackChangesEditing');if(!_0x2634f7['consumable']['test'](_0x2918c2['markerRange'],_0x100568['name']))return;const _0x48b0cc=_0x19ebcd['model'];for(const _0x2b7c65 of _0x2918c2['markerRange']['getItems']()){if(!_0x2b7c65['is']('element','softBreak'))continue;const _0x119cb2='deletion'==_0x2918c2['markerName']['split'](':')[0x1]?'merge':'split',_0x4fabdf=_0x2634f7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x119cb2}),_0x39d13c=_0x2634f7['mapper']['toViewPosition'](_0x48b0cc['createPositionBefore'](_0x2b7c65));_0x337854&&_0xa80726['activeMarkers']['includes'](_0x2918c2['markerName'])&&_0x2634f7['writer']['addClass']('ck-suggestion-marker--active',_0x4fabdf),_0x2634f7['writer']['insert'](_0x39d13c,_0x4fabdf),_0x2634f7['mapper']['bindElementToMarker'](_0x4fabdf,_0x2918c2['markerName']);}};}class wt extends _0xe55e59{['afterInit'](){const _0x543239=this['editor'],_0x111297=_0x543239['model'],_0x57a537=_0x543239['locale'];if(!_0x543239['plugins']['has']('StandardEditingModeEditing'))return;const _0x1c0c82=_0x543239['plugins']['get']('TrackChangesEditing'),_0x275efe='restrictedEditingException',_0x4fdbd4=_0x543239['commands']['get'](_0x275efe);_0x1c0c82['enableCommand'](_0x275efe,(_0x445c91,_0x596b5b={})=>{const _0x3e73da=_0x111297['document']['selection'];if(_0x3e73da['isCollapsed'])return void _0x445c91(_0x596b5b);const _0x334439=void 0x0!==_0x596b5b['forceValue']?_0x596b5b['forceValue']:!_0x4fdbd4['value'];_0x111297['change'](()=>{const _0x1a5386=Array['from'](_0x3e73da['getRanges']());for(const _0x42711b of _0x1a5386){const _0x86ec5e=_0x334439?[_0x42711b]:io(_0x275efe,_0x42711b,_0x111297);for(const _0x4cb796 of _0x86ec5e)_0x1c0c82['markInlineFormat'](_0x4cb796,{'commandName':_0x275efe,'commandParams':[{'forceValue':_0x334439}]});}});}),_0x1c0c82['descriptionFactory']['registerDescriptionCallback'](_0x2a1ea5=>{if('formatBlock'!=_0x2a1ea5['type']&&'formatInline'!=_0x2a1ea5['type'])return;const {data:_0x7a3b6f}=_0x2a1ea5;return _0x7a3b6f&&_0x7a3b6f['commandName']==_0x275efe?_0x7a3b6f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57a537,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x57a537,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0xe55e59{['afterInit'](){const _0x57ce0b=this['editor'];if(!_0x57ce0b['plugins']['has']('Style')||!_0x57ce0b['plugins']['has']('DataSchema'))return;const _0x4e9a2d=_0x57ce0b['plugins']['get']('TrackChangesEditing'),_0xbda91b=_0x57ce0b['locale'],_0x54a162=_0x57ce0b['config']['get']('style')||{},_0x544bec=_0x57ce0b['plugins']['get']('GeneralHtmlSupport'),_0x34a440=_0x57ce0b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x57ce0b['plugins']['get']('DataSchema'),_0x54a162['definitions']);_0x4e9a2d['enableDefaultAttributesIntegration']('style');const _0x4cf899=new Set();for(const _0x289805 of _0x34a440['block']){const _0x4be9b1=_0x544bec['getGhsAttributeNameForElement'](_0x289805['element']);_0x4cf899['add'](_0x4be9b1);}const _0x154b96=new Set();for(const _0x2a5ef6 of _0x34a440['inline']){const _0xb86388=_0x544bec['getGhsAttributeNameForElement'](_0x2a5ef6['element']);_0x154b96['add'](_0xb86388);for(const _0x208bf8 of _0x2a5ef6['ghsAttributes'])_0x154b96['add'](_0x208bf8);}for(const _0xd34b3 of _0x4cf899)_0x4e9a2d['registerBlockAttribute'](_0xd34b3),_0x4e9a2d['descriptionFactory']['registerAttributeLabel'](_0xd34b3,o(_0xbda91b,'FORMAT_STYLE'));for(const _0x320c11 of _0x154b96)_0x4e9a2d['registerInlineAttribute'](_0x320c11),_0x4e9a2d['descriptionFactory']['registerAttributeLabel'](_0x320c11,o(_0xbda91b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x342db2=this['editor'],_0x438fb8=_0x342db2['locale'];_0x342db2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22c305=>{if('formatBlock'!=_0x22c305['type']&&'formatInline'!=_0x22c305['type'])return;const {data:_0x5310dd}=_0x22c305;return _0x5310dd&&'style'===_0x5310dd['commandName']?_0x5310dd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x438fb8,'*Set\x20format:*\x20%0',_0x5310dd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x438fb8,'*Remove\x20format:*\x20%0',_0x5310dd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0xe55e59{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1485d1){super(_0x1485d1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3cbe75=this['editor'],_0x3a0631=_0x3cbe75['model']['document']['selection'];if(!_0x3cbe75['plugins']['has']('TableEditing'))return;const _0x2a08e2=_0x3cbe75['locale'],_0xa7110f=_0x3cbe75['plugins']['get']('TrackChangesEditing'),_0x42a20d=_0x3cbe75['plugins']['get']('TableUtils');_0xa7110f['descriptionFactory']['registerElementLabel']('table',_0x28b8b3=>o(_0x2a08e2,'ELEMENT_TABLE',_0x28b8b3)),this['_setupColumnsRowsFixing'](),_0xa7110f['enableCommand']('insertTable'),_0xa7110f['enableCommand']('selectTableRow'),_0xa7110f['enableCommand']('selectTableColumn');for(const _0x127fd6 of['insertTableRowAbove','insertTableRowBelow']){const _0x76d0a9=_0x3cbe75['commands']['get'](_0x127fd6);_0xa7110f['enableCommand'](_0x127fd6,_0x2413c9=>{_0x3cbe75['model']['change'](_0x19ae3e=>{_0x2413c9();const _0x52c070='above'===_0x76d0a9['order'],_0xe5342b=_0x42a20d['getSelectionAffectedTableCells'](_0x3a0631),_0x238013=_0x42a20d['getRowIndexes'](_0xe5342b),_0x36ac2a=_0x52c070?_0x238013['first']-0x1:_0x238013['last']+0x1,_0x1dd3b2=_0xe5342b[0x0]['findAncestor']('table'),_0x130a93=_0x42a20d['createTableWalker'](_0x1dd3b2,{'startRow':_0x36ac2a,'endRow':_0x36ac2a}),_0x30b8d5=Array['from'](_0x130a93)['map'](_0x352e85=>_0x19ae3e['createRangeOn'](_0x352e85['cell']));_0xa7110f['markMultiRangeInsertion'](_0x30b8d5,'tableRow');});});}for(const _0x1d4a7f of['insertTableColumnLeft','insertTableColumnRight']){const _0x188bc4=_0x3cbe75['commands']['get'](_0x1d4a7f);_0xa7110f['enableCommand'](_0x1d4a7f,_0x129388=>{_0x3cbe75['model']['change'](_0xb418=>{_0x129388();const _0xb93b48='left'===_0x188bc4['order'],_0x3a43f6=_0x42a20d['getSelectionAffectedTableCells'](_0x3a0631),_0x1389b1=_0x42a20d['getColumnIndexes'](_0x3a43f6),_0x1acf28=_0xb93b48?_0x1389b1['first']-0x1:_0x1389b1['last']+0x1,_0x60f732=_0x3a43f6[0x0]['findAncestor']('table'),_0x1f6ea0=_0x42a20d['createTableWalker'](_0x60f732,{'startRow':0x0,'column':_0x1acf28,'includeAllSlots':!0x1}),_0x161901=Array['from'](_0x1f6ea0)['map'](_0x5b6022=>_0xb418['createRangeOn'](_0x5b6022['cell']));_0xa7110f['markMultiRangeInsertion'](_0x161901,'tableColumn');});});}for(const _0x17e9b0 of['removeTableRow','removeTableColumn']){const _0x2a448d=_0x17e9b0['substr'](0xb),_0x4a8cd0=_0x2a448d['toLowerCase'](),_0x155b47=_0x4a8cd0['substr'](0x0,0x3)+'span',_0x3cbe71='table'+_0x2a448d,_0x4ef48f='min'+_0x2a448d,_0x189501='max'+_0x2a448d;_0xa7110f['enableCommand'](_0x17e9b0,()=>{_0x3cbe75['model']['change'](_0x14c773=>{const _0x4b5e3b=_0x42a20d['getSelectionAffectedTableCells'](_0x3a0631),_0x378857=_0x4b5e3b[0x0]['findAncestor']('table');let _0x1ba609;if('removeTableRow'==_0x17e9b0){const _0x1bacc5=_0x42a20d['getRowIndexes'](_0x4b5e3b);_0x1ba609={'startRow':_0x1bacc5['first'],'endRow':_0x1bacc5['last'],'includeAllSlots':!0x0};}else{const _0x4f022b=_0x42a20d['getColumnIndexes'](_0x4b5e3b);_0x1ba609={'startColumn':_0x4f022b['first'],'endColumn':_0x4f022b['last'],'includeAllSlots':!0x0};}const _0x402d5a=_0x42a20d['createTableWalker'](_0x378857,_0x1ba609),_0x560aa5=Array['from'](_0x402d5a)['map'](({cell:_0x5b94f8})=>_0x5b94f8),_0x1e1674=Ee(_0x560aa5['filter'](_0x5ea560=>_0x5ea560['hasAttribute'](_0x155b47))),_0x13803d=Ee(_0x560aa5['filter'](_0x2935eb=>!_0x2935eb['hasAttribute'](_0x155b47)))['map'](_0x503a8e=>_0x14c773['createRangeOn'](_0x503a8e)),_0x401435=_0xa7110f['markMultiRangeDeletion'](_0x13803d,_0x3cbe71);if(_0x401435&&('tableRow'==_0x401435['subType']||'tableColumn'==_0x401435['subType'])){const _0x52400e=this['_getSuggestionCoords'](_0x401435);for(const _0x3bdce1 of _0x1e1674){const _0x50b944=_0x14c773['createRangeOn'](_0x3bdce1),_0xba62c5=_0x42a20d['getCellLocation'](_0x3bdce1),_0x3e7050=_0x3bdce1['getAttribute'](_0x155b47)-0x1,_0x45a3ab=_0x52400e[_0x4ef48f],_0x177203=_0x52400e[_0x189501];_0x45a3ab<=_0xba62c5[_0x4a8cd0]&&_0xba62c5[_0x4a8cd0]+_0x3e7050<=_0x177203&&_0x401435['addRange'](_0x50b944);}}});});}function _0x1db7fe(_0xa042a){const _0x54774c=Array['from'](_0x3a0631['getRanges']())['map'](_0xbd6316=>_0x3d61db['fromRange'](_0xbd6316));_0x3cbe75['model']['change'](_0x45891c=>{const _0x3c6c60=_0x45891c['batch'];_0xa042a=_0xa042a['filter'](_0x4e41b7=>'$graveyard'!=_0x4e41b7['root']['rootName']),_0x45891c['setSelection'](_0xa042a),_0x3cbe75['commands']['get']('removeTableRow')['refresh'](),_0x3cbe75['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3cbe75['model']['enqueueChange'](()=>{_0x3cbe75['model']['enqueueChange'](_0x3c6c60,_0x1fae37=>{const _0x3dbb5e=_0x54774c['filter'](_0x327146=>'$graveyard'!=_0x327146['root']['rootName']);_0x3dbb5e['length']>0x0&&_0x1fae37['setSelection'](_0x3dbb5e);for(const _0x322e41 of _0x54774c)_0x322e41['detach']();});});});}function _0x5a18c3(_0x1e20b9){_0x3cbe75['model']['change'](_0x383490=>{const _0xb27b91=Array['from'](_0x3a0631['getRanges']())['map'](_0x3a6373=>_0x3d61db['fromRange'](_0x3a6373)),_0x5ba99b=[];for(const _0x349351 of _0x1e20b9)for(const _0x3d3e42 of _0x349351['getItems']({'shallow':!0x0}))_0x5ba99b['push'](_0x3d3e42);for(const _0x30233e of _0x5ba99b)'$graveyard'!=_0x30233e['root']['rootName']&&(_0x383490['setSelection'](_0x383490['createPositionAt'](_0x30233e,0x0)),_0x3cbe75['commands']['get']('removeTableColumn')['refresh'](),_0x3cbe75['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2dd1f4=_0xb27b91['filter'](_0x11de9a=>'$graveyard'!=_0x11de9a['root']['rootName']);_0x2dd1f4['length']>0x0&&_0x383490['setSelection'](_0x2dd1f4);for(const _0x42cddb of _0xb27b91)_0x42cddb['detach']();});}function _0xba8ed6(_0x447185,_0x46d40b){return _0x46d40b['every'](_0x116ea5=>_0x447185['some'](_0x12050b=>_0x12050b['end']['isEqual'](_0x116ea5['start'])||_0x116ea5['end']['isEqual'](_0x12050b['start'])));}function _0x35a69f(_0x5f3e1a,_0x34547e){return!_0x5f3e1a['some'](_0xff965=>_0x34547e['some'](_0x1d92a7=>_0xff965['isIntersecting'](_0x1d92a7)))&&_0x5f3e1a['some'](_0x5ccc2e=>_0x34547e['some'](_0x5b3f0f=>_0x5ccc2e['end']['isTouching'](_0x5b3f0f['start'])));}_0x3cbe75['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3cec3d,_0xfacb90,_0x558341)=>{if(!_0x558341['options']['showSuggestionHighlights'])return;const _0x37a125=_0xfacb90['item'];if(!_0x37a125)return;const _0x73fb08=_0x558341['mapper']['toViewElement'](_0x37a125);function _0x165adc(_0x207aa4){return Array['isArray'](_0x207aa4)?_0x207aa4:[_0x207aa4];}_0x73fb08&&'tableCell'===_0x37a125['name']&&_0x50cae0(_0x73fb08,_0x558341['writer'],(_0x362c41,_0x6b768b,_0x2b7802)=>_0x2b7802['addClass'](_0x165adc(_0x6b768b['classes']),_0x362c41),(_0x2c10dd,_0x54059b,_0x2ffab2)=>_0x2ffab2['removeClass'](_0x165adc(_0x54059b['classes']),_0x2c10dd));},{'priority':'highest'}),_0xa7110f['descriptionFactory']['registerDescriptionCallback'](_0x33b52b=>{if('insertion'!=_0x33b52b['type']&&'deletion'!=_0x33b52b['type'])return;const _0x2dbdc7=_0x33b52b['getContainedElement']();if(null!=_0x2dbdc7&&_0x2dbdc7['is']('element','table')){if('insertion'==_0x33b52b['type']){const _0x553fce=_0x33b52b['getItems']()['filter'](_0x64e7da=>_0x64e7da['is']('$textProxy'))['map'](_0x11185d=>_0x11185d['data']);if(_0x553fce['length'])return{'type':'insertion','content':o(_0x2a08e2,'*Insert:*\x20%0',o(_0x2a08e2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x553fce['join']('\x20')+'\x22'))};}if('deletion'==_0x33b52b['type']){const _0x2c928d=_0x33b52b['getItems']()['filter'](_0x2615a6=>_0x2615a6['is']('$textProxy'))['map'](_0x2f923f=>_0x2f923f['data']);if(_0x2c928d['length'])return{'type':'deletion','content':o(_0x2a08e2,'*Remove:*\x20%0',o(_0x2a08e2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2c928d['join']('\x20')+'\x22'))};}}}),_0xa7110f['descriptionFactory']['registerDescriptionCallback'](_0x2320b8=>{if('tableRow'==_0x2320b8['subType']){const _0x341bc6=_0x2320b8['getItems']()['filter'](_0xb09dd6=>_0xb09dd6['is']('$textProxy'))['map'](_0x287d98=>_0x287d98['data']),_0x51e439=this['_getSuggestionCoords'](_0x2320b8),_0x4cb55f=_0x51e439['maxRow']-_0x51e439['minRow']+0x1;if('insertion'==_0x2320b8['type'])return _0x341bc6['length']?{'type':'insertion','content':o(_0x2a08e2,'*Insert:*\x20%0',o(_0x2a08e2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4cb55f,'\x22'+_0x341bc6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2a08e2,'*Insert:*\x20%0',o(_0x2a08e2,'ELEMENT_TABLE_ROW',_0x4cb55f))};if('deletion'==_0x2320b8['type'])return _0x341bc6['length']?{'type':'deletion','content':o(_0x2a08e2,'*Remove:*\x20%0',o(_0x2a08e2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4cb55f,'\x22'+_0x341bc6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2a08e2,'*Remove:*\x20%0',o(_0x2a08e2,'ELEMENT_TABLE_ROW',_0x4cb55f))};}if('tableColumn'==_0x2320b8['subType']){const _0x25a252=_0x2320b8['getItems']()['filter'](_0x34db4f=>_0x34db4f['is']('$textProxy'))['map'](_0x2c9818=>_0x2c9818['data']),_0x39bf95=this['_getSuggestionCoords'](_0x2320b8),_0x525b59=_0x39bf95['maxColumn']-_0x39bf95['minColumn']+0x1;if('insertion'==_0x2320b8['type'])return _0x25a252['length']?{'type':'insertion','content':o(_0x2a08e2,'*Insert:*\x20%0',o(_0x2a08e2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x525b59,'\x22'+_0x25a252['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2a08e2,'*Insert:*\x20%0',o(_0x2a08e2,'ELEMENT_TABLE_COLUMN',_0x525b59))};if('deletion'==_0x2320b8['type'])return _0x25a252['length']?{'type':'deletion','content':o(_0x2a08e2,'*Remove:*\x20%0',o(_0x2a08e2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x525b59,'\x22'+_0x25a252['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2a08e2,'*Remove:*\x20%0',o(_0x2a08e2,'ELEMENT_TABLE_COLUMN',_0x525b59))};}}),_0xa7110f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1db7fe),_0xa7110f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1db7fe),_0xa7110f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5a18c3),_0xa7110f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5a18c3),_0xa7110f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xba8ed6),_0xa7110f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xba8ed6),_0xa7110f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x35a69f),_0xa7110f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x35a69f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x40cf3b=this['editor'],_0x2922cb=_0x40cf3b['model']['document']['selection'];return(_0x509253,_0x14fa50)=>{_0x40cf3b['model']['change'](_0x4f0861=>{const {commandName:_0x22c202,commandParams:_0x1c1f11}=_0x14fa50;let _0x321e64=_0x509253[0x0]['end']['nodeBefore'];_0x1c1f11&&_0x1c1f11[0x0]&&!0x1===_0x1c1f11[0x0]['forceValue']&&(_0x321e64=_0x509253[0x0]['start']['nodeAfter']);const _0x358bba=_0x4f0861['createRangeIn'](_0x321e64);if('$graveyard'==_0x358bba['root']['rootName'])return;const _0x156958=Array['from'](_0x2922cb['getRanges']())['map'](_0x2479c4=>_0x3d61db['fromRange'](_0x2479c4));_0x4f0861['setSelection'](_0x358bba),_0x40cf3b['commands']['get'](_0x22c202)['refresh'](),_0x1c1f11['push']({'forceDefaultExecution':!0x0}),_0x40cf3b['execute'](_0x22c202,..._0x1c1f11);const _0x51dba6=_0x156958['filter'](_0x326495=>'$graveyard'!=_0x326495['root']['rootName']);_0x51dba6['length']>0x0&&_0x4f0861['setSelection'](_0x51dba6);for(const _0x118053 of _0x156958)_0x118053['detach']();});};}['_getCoordsForCells'](_0x145678){const _0x23fcea=this['editor']['plugins']['get']('TableUtils');let _0x196a96=Number['MAX_SAFE_INTEGER'],_0x7493b=Number['MIN_SAFE_INTEGER'],_0x3a73ae=Number['MAX_SAFE_INTEGER'],_0x22df4b=Number['MIN_SAFE_INTEGER'];for(const _0x5ac941 of _0x145678){if('$graveyard'==_0x5ac941['root']['rootName'])continue;const {row:_0x5d9794,column:_0x174d5f}=_0x23fcea['getCellLocation'](_0x5ac941),_0x2ed915=_0x5ac941['hasAttribute']('rowspan')?_0x5ac941['getAttribute']('rowspan')-0x1:0x0,_0x3d3450=_0x5ac941['hasAttribute']('colspan')?_0x5ac941['getAttribute']('colspan')-0x1:0x0;_0x196a96=_0x5d9794<_0x196a96?_0x5d9794:_0x196a96,_0x7493b=_0x5d9794+_0x2ed915>_0x7493b?_0x5d9794+_0x2ed915:_0x7493b,_0x3a73ae=_0x174d5f<_0x3a73ae?_0x174d5f:_0x3a73ae,_0x22df4b=_0x174d5f+_0x3d3450>_0x22df4b?_0x174d5f+_0x3d3450:_0x22df4b;}return{'minRow':_0x196a96,'maxRow':_0x7493b,'minColumn':_0x3a73ae,'maxColumn':_0x22df4b};}['_setupColumnsRowsFixing'](){const _0x17dc45=this['editor'],_0x113827=_0x17dc45['plugins']['get']('TrackChangesEditing'),_0x1354fe=_0x17dc45['plugins']['get']('TableUtils');_0x17dc45['model']['document']['on']('change:data',()=>{const _0x191ec2=Array['from'](_0x17dc45['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b1b19,data:_0x40a5eb}of _0x191ec2){const {group:_0xdc40a3,id:_0xf14480,subType:_0x2e4b62}=_0x113827['_splitMarkerName'](_0x1b1b19);if('suggestion'!=_0xdc40a3)continue;if(null!=_0x40a5eb['oldRange'])continue;const _0x4f5c73=_0x113827['getSuggestion'](_0xf14480);this['_tablePostFixingSubtypes']['includes'](_0x2e4b62)&&this['_tableSuggestions']['add'](_0x4f5c73);}},{'priority':'low'});const _0xca668f=(_0x5618db,_0x5a3cfa)=>{let _0x38dc75=!0x1;const _0x599548=_0x5a3cfa['createRangeOn'](_0x5618db),_0x1ce17a=_0x5618db['findAncestor']('table'),_0x5b88da=_0x1354fe['getCellLocation'](_0x5618db);for(const _0x443cda of this['_tableSuggestions']){const _0x44d0e7=_0x443cda['subType'],_0x2c9cce=_0x44d0e7['startsWith']('tablePaste'),_0x2b02e8=_0x44d0e7['substr'](_0x2c9cce?0xa:0x5),_0x2f4076=_0x2b02e8['toLowerCase'](),_0x184334=_0x2f4076['substr'](0x0,0x3)+'span',_0x454afd='min'+_0x2b02e8,_0x20a890='max'+_0x2b02e8;if(!_0x443cda['isInContent'])continue;if(_0x1ce17a!=_0x443cda['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x443cda['isIntersectingWithRange'](_0x599548))continue;const _0x1aed03=_0x5618db['hasAttribute'](_0x184334)?_0x5618db['getAttribute'](_0x184334)-0x1:0x0,_0x39c8be=this['_getSuggestionCoords'](_0x443cda),_0x20f679=_0x39c8be[_0x454afd],_0x194db2=_0x39c8be[_0x20a890];_0x20f679<=_0x5b88da[_0x2f4076]&&_0x5b88da[_0x2f4076]+_0x1aed03<=_0x194db2&&(_0x443cda['addRange'](_0x599548),_0x38dc75=!0x0);}return _0x38dc75;};_0x17dc45['model']['document']['registerPostFixer'](_0x8eef45=>{let _0x229efc=!0x1;for(const _0x463a63 of _0x17dc45['model']['document']['differ']['getChanges']())if('insert'==_0x463a63['type']){if('tableRow'==_0x463a63['name']){for(const _0x207aaf of _0x463a63['position']['nodeAfter']['getChildren']())_0x229efc=_0x229efc||_0xca668f(_0x207aaf,_0x8eef45);}else'tableCell'==_0x463a63['name']&&(_0x229efc=_0x229efc||_0xca668f(_0x463a63['position']['nodeAfter'],_0x8eef45));}return _0x229efc;});}['_getSuggestionCoords'](_0x361ac7){return this['_getCoordsForCells'](_0x361ac7['getRanges']()['map'](_0x540f25=>_0x540f25['start']['nodeAfter']));}}function Ee(_0x4428f0){return Array['from'](new Set(_0x4428f0)['values']());}class St extends _0xe55e59{static get['requires'](){return[jt];}['afterInit'](){const _0xb20f62=this['editor'],_0x550ec1=_0xb20f62['model']['document']['selection'],_0x445061=_0xb20f62['locale'];if(!_0xb20f62['plugins']['has']('TableEditing'))return;const _0x5df5cd=_0xb20f62['plugins']['get']('TrackChangesEditing'),_0x156906=_0xb20f62['plugins']['get']('TableUtils'),_0xc22a61=_0xb20f62['plugins']['get'](jt);_0xc22a61['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5df5cd['enableCommand']('mergeTableCells',()=>{const _0x1de228=_0x156906['getSelectionAffectedTableCells'](_0xb20f62['model']['document']['selection']);_0xb20f62['model']['change'](()=>{_0x5df5cd['markMultiRangeBlockFormat'](_0x1de228,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xb20f62['commands']['get']('mergeTableCells')['on']('execute',(_0x2a65b1,_0x866b8f)=>{_0xb20f62['commands']['get']('trackChanges')['value']&&(_0x866b8f['length']>0x0&&_0x866b8f[_0x866b8f['length']-0x1]&&_0x866b8f[_0x866b8f['length']-0x1]['forceDefaultExecution']||_0x5df5cd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2a65b1['stop']());},{'priority':'highest'});for(const _0x271255 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x442bf6=_0xb20f62['commands']['get'](_0x271255);_0x5df5cd['enableCommand'](_0x271255,()=>{const _0xd0ab0a=_0xb20f62['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x33775a=>_0x33775a['is']('element','tableCell')),_0x5ecc8c=_0x442bf6['value'];_0xb20f62['model']['change'](()=>{_0x5df5cd['markMultiRangeBlockFormat']([_0xd0ab0a,_0x5ecc8c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3a2b14 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5d21a0=_0xb20f62['commands']['get'](_0x3a2b14);_0x5df5cd['enableCommand'](_0x3a2b14,()=>{const _0x466416=_0x156906['getSelectionAffectedTableCells'](_0xb20f62['model']['document']['selection'])[0x0],_0x1ce19b=_0x466416['findAncestor']('table'),{column:_0x277d80,row:_0x5b08b3}=_0x156906['getCellLocation'](_0x466416);let _0x300765=[];if('horizontally'==_0x5d21a0['direction']){const _0x80cc0e=_0x156906['createTableWalker'](_0x1ce19b,{'startRow':_0x5b08b3,'endRow':_0x5b08b3,'includeAllSlots':!0x0});_0x300765=Array['from'](_0x80cc0e)['map'](_0x222e2a=>_0x222e2a['cell']);}else{const _0x253080=_0x156906['createTableWalker'](_0x1ce19b,{'column':_0x277d80,'includeAllSlots':!0x0});_0x300765=Array['from'](_0x253080)['map'](_0x2c84d7=>_0x2c84d7['cell']);}_0xb20f62['model']['change'](_0x4d9fef=>{_0x5df5cd['markBlockFormat'](_0x4d9fef['createRangeOn'](_0x466416),{'commandName':_0x3a2b14,'commandParams':[]},_0x300765,_0x3a2b14);});});}_0x5df5cd['descriptionFactory']['registerDescriptionCallback'](_0x34b42c=>{if('formatBlock'!=_0x34b42c['type']&&'formatInline'!=_0x34b42c['type'])return;const {data:_0x194fae}=_0x34b42c;return _0x194fae&&'mergeTableCells'==_0x194fae['commandName']?{'type':'format','content':o(_0x445061,'*Merge\x20cells*')}:void 0x0;}),_0x5df5cd['descriptionFactory']['registerDescriptionCallback'](_0x3458dd=>{if('formatBlock'!=_0x3458dd['type']&&'formatInline'!=_0x3458dd['type'])return;const {data:_0x1278ae}=_0x3458dd;return _0x1278ae?'splitTableCellVertically'==_0x1278ae['commandName']?{'type':'format','content':o(_0x445061,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1278ae['commandName']?{'type':'format','content':o(_0x445061,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5f4cdd=_0xc22a61['_acceptFormatSuggestionCallbackFactory']();for(const _0x42ef45 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5df5cd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42ef45,'accept',_0x5f4cdd);for(const _0x542ba9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5df5cd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x542ba9,'accept',_0x5f4cdd);_0x5df5cd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4a04b7=>{_0xb20f62['model']['change'](_0x42fa9a=>{const _0x45a762=Array['from'](_0x550ec1['getRanges']())['map'](_0xc57210=>_0x3d61db['fromRange'](_0xc57210));_0x42fa9a['setSelection'](_0x4a04b7),_0xb20f62['commands']['get']('mergeTableCells')['refresh'](),_0xb20f62['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x86bff9=_0x45a762['filter'](_0x4b560b=>'$graveyard'!=_0x4b560b['root']['rootName']);_0x86bff9['length']>0x0&&_0x42fa9a['setSelection'](_0x86bff9);for(const _0x37569e of _0x45a762)_0x37569e['detach']();});});for(const _0x5268c8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x35061b=_0xb20f62['commands']['get'](_0x5268c8);_0x35061b['on']('set:isEnabled',(_0x31ac0d,_0x466d33,_0x22a24a)=>{if(_0x22a24a){const _0x1687ba=_0xb20f62['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3e05f6=>_0x3e05f6['is']('element','tableCell'));this['_areMergableCells'](_0x35061b['value'],_0x1687ba)||(_0x31ac0d['return']=!0x1,_0x31ac0d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xa5a3e7=this['editor']['commands']['get']('mergeTableCells'),_0x5a610d=this['editor']['plugins']['get']('TableUtils');if(!_0xa5a3e7['isEnabled'])return!0x1;const _0x1ff82d=_0x5a610d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2b24e1 of _0x1ff82d)for(const _0x2e7f36 of _0x1ff82d)if(_0x2b24e1!=_0x2e7f36&&!this['_areMergableCells'](_0x2b24e1,_0x2e7f36))return!0x1;return!0x0;}['_areMergableCells'](_0x298ab5,_0x25739c){const _0x35bae3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cdafc=this['editor']['model']['createRangeOn'](_0x298ab5),_0x2af69e=this['editor']['model']['createRangeOn'](_0x25739c),_0x46b877=new Set(),_0x2e3494=new Set();for(const _0x30e934 of _0x35bae3['getSuggestions']())if(('insertion'==_0x30e934['type']||'deletion'==_0x30e934['type']||'mergeTableCells'==_0x30e934['subType'])&&_0x30e934['isInContent']){for(const _0x2439bb of _0x30e934['getRanges']())_0x2439bb['containsRange'](_0x4cdafc,!0x0)&&_0x46b877['add'](_0x30e934['type']+':'+_0x30e934['author']['id']),_0x2439bb['containsRange'](_0x2af69e,!0x0)&&_0x2e3494['add'](_0x30e934['type']+':'+_0x30e934['author']['id']);}if(_0x46b877['size']!=_0x2e3494['size'])return!0x1;for(const _0x5294da of _0x46b877)if(!_0x2e3494['has'](_0x5294da))return!0x1;return!0x0;}}class At extends _0xe55e59{static get['requires'](){return[jt];}['afterInit'](){const _0x36aaba=this['editor'];if(!_0x36aaba['plugins']['has']('TableEditing'))return;const _0x419d05=_0x36aaba['locale'],_0x16c020=_0x36aaba['plugins']['get']('TrackChangesEditing');_0x16c020['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x16c020['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x16c020['registerBlockAttribute']('headingRows'),_0x16c020['registerBlockAttribute']('headingColumns'),_0x16c020['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x419d05,'FORMAT_HEADER_ROW')),_0x16c020['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x419d05,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1256fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f3127=this['editor']['plugins']['get']('TableUtils'),_0x319db6=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x318bc8({showActiveMarker:_0x32fc6f=!0x0,setDataAttribute:_0x3f8484=!0x0}={}){return(_0xe2d27e,_0x45ed28,_0x3255fd)=>{const {type:_0x2287dc,id:_0x58fbfd}=_0x1256fa['_splitMarkerName'](_0x45ed28['markerName']),_0x1d7216=_0x1256fa['getSuggestion'](_0x58fbfd),_0x3c5add=_0x1d7216['data'];if('formatBlock'!=_0x1d7216['type']||!_0x3c5add||'setTableColumnHeader'!=_0x3c5add['commandName'])return;if(_0x45ed28['item'])return void _0xe2d27e['stop']();if(!_0x3255fd['consumable']['consume'](_0x45ed28['markerRange'],_0xe2d27e['name']))return;const _0x450290=_0x45ed28['markerRange']['start']['nodeAfter'],_0x4fc528=_0x45ed28['markerRange']['end']['nodeBefore'],_0x3b7364=_0x450290['parent']['parent'],{column:_0x17a06b}=_0x1f3127['getCellLocation'](_0x450290),{column:_0x1f9b74}=_0x1f3127['getCellLocation'](_0x4fc528);for(let _0xc6960f=_0x17a06b;_0xc6960f<=_0x1f9b74;_0xc6960f++){const _0x1f2c9f=_0x1f3127['createTableWalker'](_0x3b7364,{'column':_0xc6960f,'includeAllSlots':!0x1});for(const _0x17c0c2 of _0x1f2c9f){const _0x51a690=_0x17c0c2['cell'],_0x34d1ee=_0x3255fd['mapper']['toViewElement'](_0x51a690);_0x3255fd['writer']['addClass']('ck-suggestion-marker-'+_0x2287dc,_0x34d1ee),_0x3f8484&&_0x3255fd['writer']['setAttribute']('data-suggestion',_0x58fbfd,_0x34d1ee),_0x3255fd['mapper']['bindElementToMarker'](_0x34d1ee,_0x45ed28['markerName']),_0x32fc6f&&(_0x1256fa['activeMarkers']['includes'](_0x45ed28['markerName'])?_0x3255fd['writer']['addClass']('ck-suggestion-marker--active',_0x34d1ee):_0x3255fd['writer']['removeClass']('ck-suggestion-marker--active',_0x34d1ee));}}};}_0x1256fa['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x319db6),_0x1256fa['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x319db6),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x318bc8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x32554b,_0x47bfb4,_0x2e850f)=>{_0x2e850f['options']['showSuggestionHighlights']&&_0x318bc8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x32554b,_0x47bfb4,_0x2e850f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1a5ffd,_0x2de138,_0x294a95)=>{const {type:_0x1c8dac,id:_0x18e3e9}=_0x1256fa['_splitMarkerName'](_0x2de138['markerName']),_0x40bfad=_0x1256fa['getSuggestion'](_0x18e3e9),_0x34376c=_0x40bfad['data'];if('formatBlock'!=_0x40bfad['type']||!_0x34376c||'setTableColumnHeader'!=_0x34376c['commandName'])return;const _0x2345b0=_0x294a95['mapper']['markerNameToElements'](_0x2de138['markerName']);if(_0x2345b0){for(const _0x1faff4 of _0x2345b0)_0x294a95['writer']['removeClass']('ck-suggestion-marker-'+_0x1c8dac,_0x1faff4),_0x294a95['writer']['removeClass']('ck-suggestion-marker--active',_0x1faff4),_0x294a95['writer']['removeAttribute']('data-suggestion',_0x1faff4),_0x294a95['mapper']['unbindElementFromMarkerName'](_0x1faff4,_0x2de138['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13c179=this['editor'],_0x2710cc=_0x13c179['locale'];function _0x581248(_0x4ea22e){return{'type':'format','content':o(_0x2710cc,'*Format:*\x20%0',_0x4ea22e)};}_0x13c179['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x409e60=>{if('formatBlock'!=_0x409e60['type'])return;const {data:_0x29067c}=_0x409e60;if(_0x29067c){if('setTableRowHeader'==_0x29067c['commandName']){const _0x209572=_0x29067c['commandParams'][0x0]['forceValue'];return _0x581248(o(_0x2710cc,_0x209572?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x29067c['commandName']){const _0x570b93=_0x29067c['commandParams'][0x0]['forceValue'];return _0x581248(o(_0x2710cc,_0x570b93?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x3d63f9=>[_0x3d63f9,null]));class It extends _0xe55e59{static get['requires'](){return[jt];}['afterInit'](){const _0x55728c=this['editor'];if(!_0x55728c['plugins']['has']('TableClipboard'))return;const _0x5dcf7c=_0x55728c['plugins']['get']('TrackChangesEditing'),_0x5ee354=_0x55728c['plugins']['get']('TableUtils'),_0x16d4b2=_0x55728c['plugins']['get'](jt),_0x3d0c46=_0x55728c['plugins']['get']('TableClipboard');_0x16d4b2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x55728c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x55728c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x50491a=null;_0x55728c['model']['on']('insertContent',(_0x32512b,_0x30bbae)=>{const [_0x3fa774,_0x5dc679]=_0x30bbae,_0x510272=_0x30bbae[_0x30bbae['length']-0x1];_0x510272&&_0x510272['forceDefaultExecution']||_0x5dcf7c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x355ec7,_0x1ba051,_0x4735c7,_0x1f368c,_0x59c3f3){if(_0x1ba051&&!_0x1ba051['is']('documentSelection'))return!0x1;const _0x3e73ad=_0x59c3f3['getTableIfOnlyTableInContent'](_0x355ec7,_0x4735c7);if(!_0x3e73ad||!he(_0x3e73ad,void 0x0,_0x1f368c))return!0x1;const _0x4fe77a=_0x1f368c['getSelectionAffectedTableCells'](_0x4735c7['document']['selection']);if(!_0x4fe77a['length'])return!0x1;const _0x2e719b=_0x4fe77a[0x0]['findAncestor']('table'),_0x496bdb=_0x1f368c['getRowIndexes'](_0x4fe77a),_0x405dbd=_0x1f368c['getColumnIndexes'](_0x4fe77a),_0x2469db={'startRow':_0x496bdb['first'],'endRow':_0x496bdb['last'],'startColumn':_0x405dbd['first'],'endColumn':_0x405dbd['last']};return 0x1==_0x4fe77a['length']&&(_0x2469db['endRow']+=_0x1f368c['getRows'](_0x3e73ad)-0x1,_0x2469db['endColumn']+=_0x1f368c['getColumns'](_0x3e73ad)-0x1),he(_0x2e719b,_0x2469db,_0x1f368c);}(_0x3fa774,_0x5dc679,_0x55728c['model'],_0x5ee354,_0x3d0c46)&&(_0x32512b['stop'](),_0x50491a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x55728c['model']['change'](()=>{_0x55728c['model']['insertContent'](_0x30bbae[0x0],_0x30bbae[0x1],_0x30bbae[0x2],{'forceDefaultExecution':!0x0});const _0x30d13f=_0xbe7a13(),{rowInsertionRanges:_0x39d054,columnInsertionRanges:_0x52baeb,insertionRanges:_0x561144,deletionRanges:_0xfbd188,cells:_0x33d880}=_0x50491a;_0x39d054['length']&&_0x5dcf7c['markMultiRangeInsertion'](_0x39d054,'tablePasteRow',{'tablePasteChainId':_0x30d13f}),_0x52baeb['length']&&_0x5dcf7c['markMultiRangeInsertion'](_0x52baeb,'tablePasteColumn',{'tablePasteChainId':_0x30d13f}),_0x561144['length']&&(_0x5dcf7c['markMultiRangeInsertion'](_0x561144,'tablePaste',{'tablePasteChainId':_0x30d13f,'skipNestingCheck':!0x0}),_0x561144['forEach'](_0x55e228=>_0x55e228['detach']?.())),_0xfbd188['length']&&(_0x5dcf7c['markMultiRangeDeletion'](_0xfbd188,'tablePaste',{'tablePasteChainId':_0x30d13f,'skipNestingCheck':!0x0}),_0xfbd188['forEach'](_0x48eb9d=>_0x48eb9d['detach']?.()));const _0x181703=_0x5dcf7c['markMultiRangeBlockFormat'](_0x33d880['map'](({element:_0x172f21})=>_0x172f21),{'formatGroupId':_0xbe7a13()},[],'tablePasteCell',{'tablePasteChainId':_0x30d13f});if(_0x181703){const _0x1b8f38=_0x181703['getMarkers'](),_0x5ab5a6=[];for(const {element:_0x3051d7,attributes:_0x2bd8be}of _0x33d880){if(!_0x2bd8be)continue;const _0x4c8c3b=_0x55728c['model']['createRangeOn'](_0x3051d7),_0x30bbff=_0x1b8f38['find'](_0x45364a=>_0x45364a['getRange']()['isEqual'](_0x4c8c3b));_0x30bbff&&_0x5ab5a6['push']([_0x30bbff['name'],_0x2bd8be]);}_0x5ab5a6['length']&&_0x181703['setAttribute']('markerAttributes',Object['fromEntries'](_0x5ab5a6));}_0x50491a=null;}));},{'priority':_0x5c71e9['high']+0xa}),_0x55728c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1c2e02,_0x4ba933)=>{const [_0x45b005,_0x5f2890,,_0x589db2]=_0x4ba933;if(!_0x50491a)return;_0x1c2e02['stop']();const _0x125b93=_0x45b005['cell'],_0x16aa02=_0x5f2890,_0x4f0dcd=Pe(_0x125b93),_0x4dd8e7=Pe(_0x16aa02);_0x1c2e02['return']=_0x125b93;let _0x362e08=null,_0x4b34ce=null;if(_0x4dd8e7||_0x4f0dcd){if(_0x4f0dcd&&!_0x4dd8e7){_0x589db2['remove'](_0x125b93['getChild'](0x0));for(const _0x451fb0 of Array['from'](_0x16aa02['getChildren']()))_0x589db2['insert'](_0x451fb0,_0x125b93,'end');const _0xcf4ac6=_0x50491a['rowInsertionIndexes']['includes'](_0x45b005['row']),_0xfcfb30=_0x50491a['columnInsertionIndexes']['includes'](_0x45b005['column']);_0xcf4ac6||_0xfcfb30||(_0x362e08=_0x3d61db['fromRange'](_0x589db2['createRangeIn'](_0x125b93)));}else _0x4dd8e7&&!_0x4f0dcd&&(_0x4b34ce=_0x589db2['createRangeIn'](_0x125b93));}else{const _0x57245f=_0x589db2['createElement']('tableCellSuggestion'),_0x1772fe=_0x589db2['createElement']('tableCellSuggestion');_0x589db2['wrap'](_0x589db2['createRangeIn'](_0x125b93),_0x1772fe),_0x589db2['insert'](_0x57245f,_0x125b93,0x0);for(const _0x4d7133 of Array['from'](_0x16aa02['getChildren']()))_0x589db2['insert'](_0x4d7133,_0x57245f,'end');_0x362e08=_0x3d61db['fromRange'](_0x589db2['createRangeOn'](_0x57245f)),_0x4b34ce=_0x3d61db['fromRange'](_0x589db2['createRangeOn'](_0x1772fe));}const _0x52f3de=Array['from'](_0x16aa02['getAttributes']())['filter'](([_0x56937d])=>ge['includes'](_0x56937d));_0x50491a['cells']['push']({'element':_0x125b93,'attributes':_0x52f3de['length']?Object['fromEntries'](_0x52f3de):null}),_0x362e08&&_0x50491a['insertionRanges']['push'](_0x362e08),_0x4b34ce&&_0x50491a['deletionRanges']['push'](_0x4b34ce);},{'priority':'high'}),_0x5ee354['on']('insertColumns',(_0x93a0dd,_0x2b15bc)=>{const [_0x4e0208,_0x2eab1a={}]=_0x2b15bc;if(!_0x50491a)return;const _0x2fe602=_0x2eab1a['at']||0x0,_0x5a4089=_0x2eab1a['columns']||0x1;_0x50491a['columnInsertionIndexes']=new Array(_0x5a4089)['fill'](_0x2fe602)['map']((_0xed1583,_0x38cd25)=>_0xed1583+_0x38cd25);for(const {cell:_0x2f332a}of _0x5ee354['createTableWalker'](_0x4e0208,{'startColumn':_0x2fe602,'endColumn':_0x2fe602+_0x5a4089-0x1}))_0x50491a['columnInsertionRanges']['push'](_0x55728c['model']['createRangeOn'](_0x2f332a));},{'priority':'low'}),_0x5ee354['on']('insertRows',(_0x5e510f,_0xd84d92)=>{const [_0xb90737,_0x1544a5={}]=_0xd84d92;if(!_0x50491a)return;const _0x171319=_0x1544a5['at']||0x0,_0x2e54aa=_0x1544a5['rows']||0x1;_0x50491a['rowInsertionIndexes']=new Array(_0x2e54aa)['fill'](_0x171319)['map']((_0x4b79ea,_0x459147)=>_0x4b79ea+_0x459147);for(const {cell:_0x5b8191}of _0x5ee354['createTableWalker'](_0xb90737,{'startRow':_0x171319,'endRow':_0x171319+_0x2e54aa-0x1}))_0x50491a['rowInsertionRanges']['push'](_0x55728c['model']['createRangeOn'](_0x5b8191));},{'priority':'low'}),_0x5dcf7c['descriptionFactory']['registerDescriptionCallback'](_0x557db2=>{if(_0x557db2['subType']&&_0x557db2['subType']['startsWith']('tablePaste'))return _0x557db2['previous']?{}:{'type':'insertion','content':o(_0x55728c['locale'],'*Replace\x20table\x20cells*')};});const _0x420f9b=()=>!0x1;for(const _0x3d4893 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5dcf7c['_suggestionFactory']['registerCustomCallback']('insertion',_0x3d4893,'join',_0x420f9b),_0x5dcf7c['_suggestionFactory']['registerCustomCallback']('deletion',_0x3d4893,'join',_0x420f9b),_0x5dcf7c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d4893,'join',_0x420f9b);_0x5dcf7c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x420f9b),_0x5dcf7c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5cad95,_0x19f25f,_0x279863)=>{const _0x547e16=_0x5cad95['map'](_0x31b5fa=>_0x31b5fa['getContainedElement']())['filter'](_0x5650f5=>_0x5650f5),_0x4ac13f=new Map(_0x547e16['map'](_0x5d3afb=>[_0x5d3afb,null]));if(_0x50491a){for(const {element:_0x2477c4,attributes:_0x9d86bc}of _0x50491a['cells'])_0x9d86bc&&_0x4ac13f['set'](_0x2477c4,_0x9d86bc);}else{if(_0x279863&&_0x279863['markerAttributes'])for(const [_0x18d656,_0x197fab]of Object['entries'](_0x279863['markerAttributes'])){const _0x4f48a3=_0x55728c['model']['markers']['get'](_0x18d656),_0x5318d3=_0x4f48a3?_0x4f48a3['getRange']()['getContainedElement']():null;_0x5318d3&&_0x4ac13f['set'](_0x5318d3,_0x197fab);}}_0x55728c['model']['change'](_0x539d39=>{for(const [_0x58707d,_0x3642f1]of _0x4ac13f)_0x539d39['setAttributes']({...Ce,..._0x3642f1},_0x58707d);});});const _0x28e4b0=(_0x403439,_0x49bb5d)=>{_0x5dcf7c['_suggestionFactory']['registerCustomCallback'](_0x403439,'tablePaste',_0x49bb5d,(_0x101454,_0x2c5298,_0x11c591)=>{_0x55728c['model']['change'](_0x1e68b7=>{const _0x5d2f23=[];for(const _0x3c3dfc of _0x101454){const _0x34bbc0=_0x3c3dfc['start']['nodeAfter'];_0x34bbc0['is']('element','tableCellSuggestion')&&_0x5d2f23['push'](_0x34bbc0);}_0x5dcf7c['_suggestionFactory']['getSuggestionCallback'](_0x403439,null,_0x49bb5d)(_0x101454,_0x2c5298,_0x11c591);for(const _0x5af4e8 of _0x5d2f23)'$graveyard'!=_0x5af4e8['root']['rootName']&&_0x1e68b7['unwrap'](_0x5af4e8);});});};_0x28e4b0('insertion','accept'),_0x28e4b0('insertion','discard'),_0x28e4b0('deletion','accept'),_0x28e4b0('deletion','discard'),_0x5dcf7c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5b998c=>{const _0x2ea40c=_0x5b998c['map'](_0x2bb380=>_0x2bb380['getContainedElement']()),_0x41d924=_0x2ea40c[0x0]['findAncestor']('table'),{minRow:_0x1fd62f,maxRow:_0x23ade8}=_0x16d4b2['_getCoordsForCells'](_0x2ea40c);_0x5ee354['removeRows'](_0x41d924,{'at':_0x1fd62f,'rows':_0x23ade8-_0x1fd62f+0x1});}),_0x5dcf7c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5b6414=>{const _0x1f32b5=_0x5b6414['map'](_0x4a62db=>_0x4a62db['getContainedElement']()),_0xe8e3b8=_0x1f32b5[0x0]['findAncestor']('table'),{minColumn:_0x32682e,maxColumn:_0x226a53}=_0x16d4b2['_getCoordsForCells'](_0x1f32b5);_0x5ee354['removeColumns'](_0xe8e3b8,{'at':_0x32682e,'columns':_0x226a53-_0x32682e+0x1});});const _0x512911=(_0x407ff9,_0x264643)=>{if(!_0x264643['subType']||!_0x264643['subType']['startsWith']('tablePaste'))return;const _0x1c6623=_0x264643['attributes']['tablePasteChainId'],_0x5e7ec7=_0x5dcf7c['getSuggestions']()['filter'](_0x471e5c=>_0x471e5c['isInContent']&&_0x471e5c['attributes']&&_0x471e5c['attributes']['tablePasteChainId']==_0x1c6623);_0x5e7ec7['length']&&_0x264643['getAllAdjacentSuggestions']()['length']!=_0x5e7ec7['length']&&_0x5e7ec7['reduce']((_0x359ac6,_0x4ada6e)=>(_0x359ac6['next']=_0x4ada6e,_0x4ada6e['previous']=_0x359ac6,_0x4ada6e));};function _0x39a191(_0x4ec221,_0xe34179=!0x0){const {id:_0x4cc9c0}=_0x5dcf7c['_splitMarkerName'](_0x4ec221['markerName']),_0x18473c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4c3d33=_0x5dcf7c['activeMarkers']['includes'](_0x4ec221['markerName']);return _0x4c3d33&&_0x18473c['push']('ck-suggestion-marker--active'),{'classes':_0x18473c,'attributes':{'data-suggestion':_0x4cc9c0},'priority':_0x4c3d33&&_0xe34179?0xbc2:0xbb8};}_0x5dcf7c['on']('suggestionLoaded',_0x512911,{'priority':'high'}),_0x5dcf7c['on']('suggestionUnloaded',_0x512911,{'priority':'high'}),_0x55728c['model']['document']['registerPostFixer'](()=>{let _0x1ee610=!0x1;const _0x16163b=Array['from'](_0x55728c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x18ad21,data:_0x244bbb}of _0x16163b){const {group:_0x3bd455,type:_0x42f9e4,id:_0x587b8d}=_0x5dcf7c['_splitMarkerName'](_0x18ad21);if('suggestion'!=_0x3bd455||'deletion'!=_0x42f9e4||_0x244bbb['oldRange'])continue;if(!_0x5dcf7c['hasSuggestion'](_0x587b8d))continue;const _0x125697=_0x5dcf7c['getSuggestion'](_0x587b8d)['getRanges'](),_0x504172=_0x55728c['plugins']['get']('Users')['me'];for(const _0x2563fb of _0x5dcf7c['getSuggestions']()){if(!_0x2563fb['isInContent']||_0x2563fb['author']!=_0x504172)continue;if('formatBlock'!=_0x2563fb['type']||'tablePasteCell'!=_0x2563fb['subType'])continue;if(_0x2563fb['getRanges']()['every'](_0x487364=>_0x125697['some'](_0x1235a3=>_0x1235a3['containsRange'](_0x487364,!0x0)))){for(const _0x3a3d67 of _0x2563fb['getAllAdjacentSuggestions']())_0x3a3d67['isInContent']&&(_0x3a3d67['discard'](),_0x1ee610=!0x0);}}}return _0x1ee610;}),_0x55728c['model']['document']['registerPostFixer'](_0x5f0ee5=>{const _0x682ef0=_0x55728c['commands']['get']('redo');if(!_0x682ef0||!_0x682ef0['_createdBatches']['has'](_0x5f0ee5['batch']))return!0x1;let _0x3fe5fb=!0x1;const _0x5cda6e=_0x55728c['plugins']['get']('Users')['me'],_0x514b4f=_0x55728c['model']['document']['differ']['getChanges'](),_0x59e923=Array['from'](_0x55728c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2abe21,data:_0x1c5eda})=>{const {group:_0x370a17,subType:_0x43da8c,authorId:_0x1179b2}=_0x5dcf7c['_splitMarkerName'](_0x2abe21);return'suggestion'==_0x370a17&&'tablePaste'==_0x43da8c&&_0x1179b2==_0x5cda6e['id']&&!_0x1c5eda['oldRange'];});for(const _0x11a288 of _0x514b4f){if('insert'!=_0x11a288['type']||'tableCellSuggestion'!=_0x11a288['name']||0x1!=_0x11a288['length'])continue;const _0x5b1af0=_0x5f0ee5['createRange'](_0x11a288['position'],_0x11a288['position']['getShiftedBy'](0x1));if(!_0x59e923['find'](({data:_0x12c0e7})=>_0x12c0e7['newRange']['isEqual'](_0x5b1af0))){for(const {name:_0x45d349,data:_0x19e5a2}of _0x59e923)if(_0x5b1af0['containsRange'](_0x19e5a2['newRange'])){_0x5f0ee5['updateMarker'](_0x45d349,{'range':_0x5b1af0}),_0x3fe5fb=!0x0;break;}}}return _0x3fe5fb;}),_0x55728c['model']['document']['registerPostFixer'](_0x5d4d58=>{let _0x59d083=!0x1;const _0x40ecdd=_0x55728c['plugins']['get']('Users')['me'],_0x446172=_0x5dcf7c['getSuggestions']()['filter'](_0x1a3b7a=>_0x1a3b7a['isInContent']&&_0x1a3b7a['author']==_0x40ecdd),_0x1a0b70=new Set(),_0xf88157=new Set();for(const _0x2dd5a7 of _0x446172)if('tablePaste'==_0x2dd5a7['subType'])for(const _0x520e85 of _0x2dd5a7['getMarkers']()){const _0x13fb49=_0x520e85['getRange']()['getContainedElement']();if(_0x13fb49){if(_0x13fb49['is']('element','tableCellSuggestion')&&Pe(_0x13fb49)){_0x2dd5a7['removeMarker'](_0x520e85['name']),_0x1a0b70['add'](_0x13fb49),_0x59d083=!0x0;const _0x1e095a=_0x13fb49['nextSibling'],_0x534f8f=_0x13fb49['previousSibling'],_0x5756dc=_0x1e095a&&_0x1e095a['is']('element','tableCellSuggestion'),_0x821313=_0x534f8f&&_0x534f8f['is']('element','tableCellSuggestion');_0x5756dc&&!_0x1a0b70['has'](_0x1e095a)&&_0xf88157['add'](_0x1e095a),_0x821313&&!_0x1a0b70['has'](_0x534f8f)&&_0xf88157['add'](_0x534f8f);}else _0x13fb49['is']('element','paragraph')&&_0x13fb49['isEmpty']&&(_0x2dd5a7['removeMarker'](_0x520e85['name']),_0x59d083=!0x0);}}else{if('tablePasteCell'==_0x2dd5a7['subType']){if(!_0x2dd5a7['attributes']||!_0x2dd5a7['attributes']['tablePasteChainId'])continue;const _0x28ecda=_0x2dd5a7['attributes']['markerAttributes'];if(_0x28ecda&&Object['keys'](_0x28ecda)['length'])continue;const _0x1a45e3=_0x2dd5a7['attributes']['tablePasteChainId'];let _0x29ccf0=!0x0,_0x5ebeaa=!0x0;for(const _0x36576b of _0x446172)if(_0x36576b['subType']&&_0x36576b['subType']['startsWith']('tablePaste')){if(!_0x36576b['attributes']['tablePasteChainId']){_0x5ebeaa=!0x1;break;}if(_0x36576b['id']!=_0x2dd5a7['id']&&_0x36576b['attributes']['tablePasteChainId']==_0x1a45e3){_0x29ccf0=!0x1;break;}}_0x5ebeaa&&_0x29ccf0&&(_0x2dd5a7['removeMarkers'](),_0x59d083=!0x0);}}for(const _0xacaf3d of _0x1a0b70)_0x5d4d58['remove'](_0xacaf3d);for(const _0x552b21 of _0xf88157)_0x5d4d58['unwrap'](_0x552b21);return _0x59d083;}),_0x55728c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4e07bf,_0x12f31b)=>_0x39a191(_0x4e07bf),'converterPriority':'high'}),_0x55728c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x10225f,_0x368a3d)=>_0x368a3d['options']['showSuggestionHighlights']?_0x39a191(_0x10225f,!0x1):null,'converterPriority':'high'});const _0x31a625=_0x55728c['editing']['view'];this['listenTo'](_0x31a625['document'],'clipboardOutput',(_0x2eeb8f,_0xd77b)=>{const _0x14ab6c=[];for(const _0x2d3005 of _0x31a625['createRangeIn'](_0xd77b['content'])['getItems']())_0x2d3005['is']('element','suggestion-td')&&_0x14ab6c['push'](_0x2d3005);_0x31a625['change'](_0xbfca9f=>{for(const _0x30d3b6 of _0x14ab6c)_0xbfca9f['move'](_0xbfca9f['createRangeIn'](_0x30d3b6),_0xbfca9f['createPositionBefore'](_0x30d3b6)),_0xbfca9f['remove'](_0x30d3b6);});});}}function Pe(_0x2fc50a){if(_0x2fc50a['isEmpty'])return!0x0;const _0x27a499=_0x2fc50a['getChild'](0x0);return _0x27a499['is']('element','paragraph')&&_0x27a499['isEmpty'];}function he(_0x4ef675,_0x366c0a={},_0x187684){for(const {isAnchor:_0x101b80,cellHeight:_0x3a87a1,cellWidth:_0x490830}of _0x187684['createTableWalker'](_0x4ef675,{'includeAllSlots':!0x0,..._0x366c0a}))if(!_0x101b80||0x1!=_0x3a87a1||0x1!=_0x490830)return!0x1;return!0x0;}class vt extends _0xe55e59{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x482c53=this['editor']['plugins']['get']('TrackChangesEditing');_0x482c53['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x482c53['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x482c53['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x482c53['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x482c53['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x482c53['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2df740,_0x2967c2){const _0x496fc9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f705f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x190096=_0x2967c2['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2d00bb=_0x1f705f['getColumnGroupElement'](_0x190096);let _0x32fa20=_0x2d00bb?_0x1f705f['getTableColumnsWidths'](_0x2d00bb):null,_0x504cf1=_0x190096['getAttribute']('tableWidth')||null;const _0x186864=_0x2967c2['tableWidth']||_0x504cf1,_0x265998=_0x2967c2['columnWidths']||_0x32fa20,_0x28a666=this['editor']['plugins']['get']('Users')['me'];for(const _0x2e2756 of _0x496fc9['getSuggestions']()){const _0x33dc3a=_0x2e2756['getContainedElement']();if('resizeTable'===_0x2e2756['subType']&&_0x33dc3a===_0x190096){_0x2e2756['author']!==_0x28a666&&_0x2e2756['discard']();const _0x4e04ee=_0x2e2756['data']['commandParams'];_0x504cf1=_0x4e04ee[0x0]['tableWidth'],_0x32fa20=_0x4e04ee[0x0]['columnWidths'];break;}}_0x2df740({'table':_0x190096,'tableWidth':_0x186864,'columnWidths':_0x265998}),_0x496fc9['markBlockFormat'](_0x190096,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x504cf1,'columnWidths':_0x32fa20}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x17119e){if('formatBlock'!=_0x17119e['type']&&'formatInline'!=_0x17119e['type'])return;const {data:_0x614867}=_0x17119e;if(_0x614867&&'resizeTable'===_0x614867['formatGroupId']){const _0x4fc408='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4fc408)};}}}class Ct extends _0xe55e59{['afterInit'](){const _0x2fdaa3=this['editor'];_0x2fdaa3['plugins']['has']('Template')&&_0x2fdaa3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0xe55e59{['afterInit'](){const _0x168b1d=this['editor'];if(!_0x168b1d['commands']['get']('insertTableOfContents'))return;_0x168b1d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x50f30c=_0x168b1d['plugins']['get']('TrackChangesEditing'),_0x1f04e1=_0x168b1d['locale'];_0x50f30c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x220ea5=>o(_0x1f04e1,'ELEMENT_TABLE_OF_CONTENTS',_0x220ea5));}}class Dt extends _0xe55e59{['afterInit'](){const _0x4d2d83=this['editor'];if(!_0x4d2d83['plugins']['has']('Title'))return;const _0x5e9f51=_0x4d2d83['plugins']['get']('TrackChangesEditing');_0x5e9f51['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4d2d83['locale'],'ELEMENT_TITLE')),_0x4d2d83['model']['document']['registerPostFixer'](_0x4c48fb=>{let _0x6bfbfb=!0x1;const _0x1957ae=Array['from'](_0x4d2d83['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4eda6c,data:_0x216ae6}of _0x1957ae){const {group:_0x1982cf}=_0x5e9f51['_splitMarkerName'](_0x4eda6c);if('suggestion'!==_0x1982cf||!_0x216ae6['newRange'])continue;const _0x96c2ce=_0x216ae6['newRange'],_0x5c6374=_0x96c2ce['end']['nodeBefore'];if(!_0x5c6374||!_0x5c6374['is']('element','title-content'))continue;if(!_0x96c2ce['start']['isTouching'](_0x96c2ce['end']))continue;const _0x580b5f=_0x4d2d83['model']['schema']['getNearestSelectionRange'](_0x96c2ce['end'],'forward');if(_0x580b5f&&_0x580b5f['isCollapsed']){const _0x4f5dc1=_0x4c48fb['createRange'](_0x96c2ce['start'],_0x580b5f['start']);_0x4f5dc1['isEqual'](_0x96c2ce)||(_0x4c48fb['updateMarker'](_0x4eda6c,{'range':_0x4f5dc1}),_0x6bfbfb=!0x0);}_0x6bfbfb||(_0x4c48fb['removeMarker'](_0x4eda6c),_0x6bfbfb=!0x0);}return _0x6bfbfb;});}}class Nt extends _0xe55e59{['afterInit'](){const _0x3feca8=this['editor'],_0x2d78e6=_0x3feca8['plugins']['get']('TrackChangesEditing');_0x3feca8['plugins']['has']('UndoEditing')&&(_0x2d78e6['enableCommand']('undo'),_0x2d78e6['enableCommand']('redo'));}}class Mt extends _0xe55e59{static get['requires'](){return[jt];}['afterInit'](){const _0x3cec34=this['editor'];if(!_0x3cec34['plugins']['has']('TableCaptionEditing'))return;_0x3cec34['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0xe55e59{['tableProperties'];['tableCellProperties'];constructor(_0x4fdb8c){super(_0x4fdb8c),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 _0x51cd3d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5cdda4 of this['tableProperties'])_0x51cd3d['enableCommand'](_0x5cdda4,(_0x4c1597,_0x4448ff)=>{const _0x2d49a2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5cdda4,[_0x2d49a2],this['tableProperties'],'tableProperties',_0x4c1597,_0x4448ff);});_0x51cd3d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x51cd3d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51cd3d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x596dbe,_0x1d83bd)=>this['handleDiscardAction'](this['tableProperties'],_0x596dbe,_0x1d83bd)),_0x51cd3d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x21da75 of this['tableCellProperties'])_0x51cd3d['enableCommand'](_0x21da75,(_0x137088,_0x1859a6)=>{const _0x4a13a8=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x21da75,_0x4a13a8,this['tableCellProperties'],'tableCellProperties',_0x137088,_0x1859a6);});_0x51cd3d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x51cd3d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51cd3d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4e0b70,_0x42b923)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4e0b70,_0x42b923)),_0x51cd3d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x51cd3d['descriptionFactory']['registerDescriptionCallback'](_0x31367a=>this['handleSuggestionDescription'](_0x31367a));}['_handlePropertyChange'](_0x54ca89,_0x2a1a57,_0x1dae29,_0x20a92b,_0x445fff,_0x287035){const _0x151c12=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x287035['batch'],()=>{for(const _0x3af293 of _0x2a1a57){if(this['_getSuggestion'](_0x3af293,_0x20a92b))_0x445fff(_0x287035);else{const _0x80a0d0={};for(const _0x22235a of _0x1dae29){const _0x45854b=_0x3af293['getAttribute'](_0x22235a);void 0x0!==_0x45854b&&(_0x80a0d0[_0x22235a]=_0x45854b);}_0x445fff(_0x287035),_0x151c12['markBlockFormat'](_0x3af293,{'commandParams':[_0x80a0d0]},[],_0x20a92b);}}});}['handleDiscardAction'](_0x432d00,_0x364768,_0x3a4833){const _0x67552d=_0x364768[0x0]['start']['nodeAfter'],_0x3eb929=_0x3a4833['commandParams'][0x0];this['editor']['model']['change'](_0x43c861=>{for(const _0x5ddc77 of _0x432d00)void 0x0!==_0x3eb929[_0x5ddc77]?_0x43c861['setAttribute'](_0x5ddc77,_0x3eb929[_0x5ddc77],_0x67552d):_0x43c861['removeAttribute'](_0x5ddc77,_0x67552d);});}['handleSuggestionDescription'](_0x33ddf2){if(_0x33ddf2['data'])switch(_0x33ddf2['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'](_0x2a6fca,_0x5ee4aa){const _0x1bc1d5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5b8ac3 of _0x1bc1d5['getSuggestions']({'skipNotAttached':!0x0})){const _0x2b59ad=_0x5b8ac3['getContainedElement']();if(_0x5b8ac3['subType']===_0x5ee4aa&&_0x2b59ad===_0x2a6fca)return _0x5b8ac3;}return null;}}const m='$elementName';class p extends _0xe55e59{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x62dc96,_0x28494f,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x2783ae){function _0x129b07(_0x2a618f){return _0x2a618f['map'](_0x29b370=>String['fromCharCode'](_0x29b370))['join']('');}super(_0x2783ae),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3dfe02,_0x105faa,_0x14e992,_0x1fd189)=>{this['_model']['change'](()=>{for(const _0x1e5ab6 of[..._0x1fd189,..._0x14e992])this['_model']['markers']['has'](_0x1e5ab6)&&_0x2783ae['editing']['reconvertMarker'](_0x1e5ab6);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2783ae['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(),_0x2783ae['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2783ae['config']['get']('trackChanges.trackFormatChanges'),_0x2783ae['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2783ae['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x2783ae,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x129b07([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x129b07([0x34,0x30,0x34,0x38,0x31,0x32,0x32,0x30]);}['init'](){const _0x341b20=this['editor'],_0x1aa56e=(_0x3759d2,_0x2a9a4d)=>{if('attribute'!=_0x3759d2)return'ck-suggestion-marker-'+_0x3759d2;const _0x38d835=_0x2a9a4d['split']('|')[0x0];return this['_isBlockAttribute'](_0x38d835)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x341b20['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x32fd51=>{const {id:_0x30915a,type:_0x551469,subType:_0x291d62}=this['_splitMarkerName'](_0x32fd51['markerName']),_0x22fa34=['ck-suggestion-marker',_0x1aa56e(_0x551469,_0x291d62)];let _0x345e69=0xbb8;return this['activeMarkers']['includes'](_0x32fd51['markerName'])&&(_0x22fa34['push']('ck-suggestion-marker--active'),_0x345e69=0xbc2),'deletion'==_0x551469&&(_0x345e69+=0x5),{'classes':_0x22fa34,'attributes':{'data-suggestion':_0x30915a},'priority':_0x345e69};}}),_0x341b20['conversion']['for']('dataDowncast')['add'](_0x245082=>{_0x245082['on']('addMarker:suggestion',(_0x577b8d,_0x24ed26,_0x18dbb2)=>{if(!_0x18dbb2['options']['showSuggestionHighlights'])return;const _0x440ad6=_0x24ed26['item'];if(!_0x440ad6)return;const _0x2bb041=_0x18dbb2['mapper']['toViewElement'](_0x440ad6);_0x341b20['model']['schema']['isObject'](_0x440ad6)&&_0x2bb041&&!_0x2bb041['getCustomProperty']('widget')&&_0x2bb041['is']('containerElement')&&_0xcdffe7(_0x2bb041,_0x18dbb2['writer']);},{'priority':'high'});}),_0x341b20['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3cc48d,_0xdd3189)=>{if(!_0xdd3189['options']['showSuggestionHighlights'])return null;const {type:_0x193f43,subType:_0x198a00}=this['_splitMarkerName'](_0x3cc48d['markerName']);return{'classes':['ck-suggestion-marker',_0x1aa56e(_0x193f43,_0x198a00)],'priority':0xbb8};}});const _0x78ad58=({showActiveMarkers:_0x51ee91=!0x0,isAttributeSuggestion:_0x44c315=!0x1}={})=>(_0xcc8815,_0x10a720,_0x421bb4)=>{if(!_0x10a720['item'])return;const {id:_0xb4d74d}=this['_splitMarkerName'](_0x10a720['markerName']);if(_0x44c315){const _0x1c2d51=this['_suggestions']['get'](_0xb4d74d),_0x3781a3=this['_getAttributeKey'](_0x1c2d51);if(!this['_isBlockAttribute'](_0x3781a3))return;}if(_0x10a720['item']['is']('selection'))return void _0x421bb4['consumable']['consume'](_0x10a720['item'],_0xcc8815['name']);const _0x126e6a=_0x421bb4['mapper']['toViewElement'](_0x10a720['item']);if(_0x10a720['item']['is']('element')&&_0x341b20['model']['schema']['isBlock'](_0x10a720['item'])&&!_0x126e6a['getCustomProperty']('addHighlight')){_0x421bb4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x126e6a),_0x421bb4['writer']['setAttribute']('data-suggestion',_0xb4d74d,_0x126e6a),_0x421bb4['mapper']['bindElementToMarker'](_0x126e6a,_0x10a720['markerName']),_0x51ee91&&(this['activeMarkers']['includes'](_0x10a720['markerName'])?_0x421bb4['writer']['addClass']('ck-suggestion-marker--active',_0x126e6a):_0x421bb4['writer']['removeClass']('ck-suggestion-marker--active',_0x126e6a));for(const _0x4f497f of _0x341b20['model']['createRangeIn'](_0x10a720['item'])['getItems']())_0x421bb4['consumable']['consume'](_0x4f497f,_0xcc8815['name']);_0x421bb4['consumable']['consume'](_0x10a720['item'],_0xcc8815['name']);}};_0x341b20['conversion']['for']('dataDowncast')['add'](_0x19e24d=>{_0x19e24d['on']('addMarker:suggestion:formatBlock',(_0x281565,_0x25c2d3,_0x24c66d)=>{_0x24c66d['options']['showSuggestionHighlights']&&_0x78ad58({'showActiveMarkers':!0x1})(_0x281565,_0x25c2d3,_0x24c66d);},{'priority':'highest'});}),_0x341b20['conversion']['for']('dataDowncast')['add'](_0x3e9952=>{_0x3e9952['on']('addMarker:suggestion:attribute',(_0x343907,_0x1dc4b8,_0x2d80f6)=>{_0x2d80f6['options']['showSuggestionHighlights']&&_0x78ad58({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x343907,_0x1dc4b8,_0x2d80f6);},{'priority':'highest'});}),_0x341b20['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1babf3,_0x260c0e)=>_0x260c0e['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1babf3['substr'](0xb)}}),_0x341b20['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4192d2,{writer:_0x231207})=>{let _0x5a615d='suggestion:'+_0x4192d2['getAttribute']('suggestion-type')+':'+_0x4192d2['getAttribute']('id');return _0x4192d2['getAttribute']('marker-count')&&(_0x5a615d+=':'+_0x4192d2['getAttribute']('marker-count')),_0x231207['createElement']('$marker',{'data-name':_0x5a615d});}}),_0x341b20['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x341b20['conversion']['for']('editingDowncast')['add'](_0xe59117=>{_0xe59117['on']('addMarker:suggestion:formatBlock',_0x78ad58(),{'priority':'high'});}),_0x341b20['conversion']['for']('editingDowncast')['add'](_0x3872aa=>{_0x3872aa['on']('addMarker:suggestion:attribute',_0x78ad58({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x341b20['conversion']['for']('editingDowncast')['add'](_0x4af254=>{_0x4af254['on']('removeMarker:suggestion:formatBlock',(_0x12027b,_0x4a98cf,_0x3b914a)=>{const _0x1728ef=_0x3b914a['mapper']['markerNameToElements'](_0x4a98cf['markerName']);if(_0x1728ef){for(const _0x5827a7 of _0x1728ef)_0x5827a7['getCustomProperty']('addHighlight')||(_0x3b914a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5827a7),_0x3b914a['writer']['removeAttribute']('data-suggestion',_0x5827a7),_0x3b914a['mapper']['unbindElementFromMarkerName'](_0x5827a7,_0x4a98cf['markerName']));}},{'priority':'high'});}),_0x341b20['conversion']['for']('editingDowncast')['add'](_0x36d42d=>{_0x36d42d['on']('removeMarker:suggestion:attribute',(_0x2bebe8,_0x5d8371,_0x448e94)=>{const _0xdd2c1e=_0x448e94['mapper']['markerNameToElements'](_0x5d8371['markerName']);if(!_0xdd2c1e)return;const {id:_0x2491ef}=this['_splitMarkerName'](_0x5d8371['markerName']),_0x510922=this['_suggestions']['get'](_0x2491ef),_0x26d88d=this['_getAttributeKey'](_0x510922);if(this['_isBlockAttribute'](_0x26d88d)){for(const _0x438f2c of _0xdd2c1e)_0x438f2c['getCustomProperty']('addHighlight')||(_0x448e94['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x438f2c),_0x448e94['writer']['removeAttribute']('data-suggestion',_0x438f2c),_0x448e94['mapper']['unbindElementFromMarkerName'](_0x438f2c,_0x5d8371['markerName']));}},{'priority':'high'});}),_0x341b20['model']['document']['registerPostFixer'](_0x239412=>{let _0x14acd1=!0x1;const _0x325948=Array['from'](_0x341b20['model']['document']['differ']['getChangedMarkers']()),_0x250cfc=new Set();for(const {name:_0x215f2c,data:_0x172d33}of _0x325948){const {group:_0x235e7c,type:_0xd080fe,subType:_0xd913a9,id:_0x5c73a9}=this['_splitMarkerName'](_0x215f2c);if('suggestion'!==_0x235e7c)continue;const _0x4e8e63=this['_suggestions']['get'](_0x5c73a9);if(null!=_0x172d33['newRange']){'formatInline'==_0xd080fe&&(_0x14acd1=_0x14acd1||Et(_0x172d33['newRange'],_0x215f2c,_0x239412,_0x341b20['model']['schema']));const _0x2b2198='attribute'==_0xd080fe&&this['_isBlockAttribute'](_0xd913a9['split']('|')[0x0]);if(_0x172d33['newRange']['isCollapsed']||'$graveyard'==_0x172d33['newRange']['root']['rootName']||'formatBlock'==_0xd080fe&&!Ut(_0x172d33['newRange'])||_0x2b2198&&!Ut(_0x172d33['newRange'])||'deletion'==_0xd080fe&&!(!Tt(_0x5bd8d9=_0x172d33['newRange'])&&!function(_0x50ae9d){return _0x50ae9d['start']['parent']==_0x50ae9d['end']['nodeBefore']&&_0x50ae9d['start']['isAtEnd'];}(_0x5bd8d9)))_0x239412['removeMarker'](_0x215f2c),_0x14acd1=!0x0;else{if(!_0x4e8e63||!_0x4e8e63['isInContent'])continue;_0x250cfc['add'](_0x4e8e63);}}}var _0x5bd8d9;return _0x250cfc['size']>0x0&&(_0x14acd1=!!this['_joinWithAdjacentSuggestions'](_0x250cfc)||_0x14acd1),_0x14acd1;}),_0x341b20['model']['document']['registerPostFixer'](_0xff2a0d=>{let _0x41401b=!0x1;for(const _0x25f3ce of _0x341b20['model']['document']['differ']['getChanges']())if('insert'==_0x25f3ce['type'])for(const _0x529d43 of this['_suggestions']['values']()){if(_0x529d43['isMultiRange']||!_0x529d43['isInContent'])continue;const _0x38210a='formatBlock'==_0x529d43['type'],_0x57c311=this['_getAttributeKey'](_0x529d43),_0x50625d=_0x57c311&&this['_isBlockAttribute'](_0x57c311);if(!_0x38210a&&!_0x50625d)continue;const _0x18bb86=_0x529d43['getFirstRange']();if(_0x18bb86['start']['parent']!=_0x18bb86['end']['parent']&&!_0x18bb86['end']['isAtEnd']){const _0x17979a=_0x341b20['model']['createPositionAt'](_0x18bb86['start']['nodeAfter'],'end'),_0x5a5d6a=_0x341b20['model']['createRange'](_0x18bb86['start'],_0x17979a);_0xff2a0d['updateMarker'](_0x529d43['getFirstMarker'](),{'range':_0x5a5d6a}),_0x41401b=!0x0;}}return _0x41401b;}),_0x341b20['model']['document']['registerPostFixer'](_0x5d0a3e=>this['_processAttributeChanges'](_0x5d0a3e)),_0x341b20['model']['document']['registerPostFixer'](_0x1d78aa=>!_0x1d78aa['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1d78aa)),_0x341b20['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x341b20['model']['document']['on']('change:data',(_0x2f5837,_0x1d285c)=>{if(!_0x1d285c['isLocal']||_0x1d285c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x18dcd9=_0x341b20['model']['document']['differ']['getChanges']();if(0x0==_0x18dcd9['length'])return;const _0x43bcbf=[],_0x33d309=_0x18dcd9['filter'](_0x341a9f=>'attribute'==_0x341a9f['type']),_0x4051ee=_0x18dcd9['filter'](_0x5d3b23=>'insert'==_0x5d3b23['type']&&'$text'!=_0x5d3b23['name']);for(const _0x869929 of _0x33d309)this['_isRegisteredAttribute'](_0x869929['attributeKey'])&&_0x43bcbf['push']({'key':_0x869929['attributeKey'],'newValue':_0x869929['attributeNewValue'],'oldValue':_0x869929['attributeOldValue'],'range':Ot(_0x869929['range'],_0x341b20['model'])});for(const _0x116a24 of _0x4051ee){if('rename'!=_0x116a24['action']&&'refresh'!=_0x116a24['action'])continue;const _0x32ff47=Gt(_0x116a24['position']['nodeAfter'],_0x341b20['model']),_0x53c181=_0x116a24['before'];'rename'==_0x116a24['action']&&_0x43bcbf['push']({'key':m,'newValue':_0x116a24['name'],'oldValue':_0x53c181['name'],'range':_0x32ff47});for(const [_0x326279,_0x1577ff]of _0x53c181['attributes']){if(!this['_isRegisteredAttribute'](_0x326279))continue;const _0x579e64=_0x116a24['attributes']['get'](_0x326279);_0x1577ff!==_0x579e64&&_0x43bcbf['push']({'key':_0x326279,'newValue':_0x579e64,'oldValue':_0x1577ff,'range':_0x32ff47});}for(const [_0x492d0f,_0x5a5ddc]of _0x116a24['attributes'])this['_isRegisteredAttribute'](_0x492d0f)&&(_0x53c181['attributes']['has'](_0x492d0f)||_0x43bcbf['push']({'key':_0x492d0f,'newValue':_0x5a5ddc,'oldValue':null,'range':_0x32ff47}));}0x0!=_0x43bcbf['length']&&_0x341b20['model']['enqueueChange'](_0x1d285c,_0x5a7500=>{const _0x21ee80=_0xbe7a13();for(const {range:_0x8317d8,key:_0x111a94,oldValue:_0x4ce230,newValue:_0x6f1873}of _0x43bcbf)this['markAttributeChange'](_0x8317d8,_0x111a94,_0x4ce230,_0x6f1873,{'groupId':_0x21ee80});this['_reduceExistingSuggestions'](_0x5a7500,_0x43bcbf);});},{'priority':'lowest'}),_0x341b20['model']['markers']['on']('update:suggestion',(_0x1cdb1f,_0x426ded,_0x1177eb)=>{if(null==_0x1177eb){const {id:_0x60bb9}=this['_splitMarkerName'](_0x426ded['name']),_0x34d915=this['_suggestions']['get'](_0x60bb9);_0x34d915&&_0x34d915['addMarkerName'](_0x426ded['name']);}}),_0x341b20['model']['document']['on']('change:data',()=>{const _0x343e7f=Array['from'](_0x341b20['model']['document']['differ']['getChangedMarkers']())['filter'](_0x16730a=>'suggestion'===this['_splitMarkerName'](_0x16730a['name'])['group']);if(0x0===_0x343e7f['length'])return;_0x343e7f['sort']((_0x29c5da,_0x2b2484)=>{const _0x2df4a1=_0x29c5da['data']['oldRange'],_0x302efa=_0x2b2484['data']['oldRange'];return null===_0x2df4a1&&null===_0x302efa?0x0:null===_0x2df4a1&&null!==_0x302efa?-0x1:null!==_0x2df4a1&&null===_0x302efa?0x1:_0x2df4a1['start']['isBefore'](_0x302efa['start'])?-0x1:0x1;});const _0x4f0a56=new Set(),_0x35932b=new Set();for(const {name:_0x46f7f6,data:_0x35f60a}of _0x343e7f){const {id:_0x3ddf81}=this['_splitMarkerName'](_0x46f7f6);if(null===_0x35f60a['oldRange']){const _0x6f1af6=this['_handleNewSuggestionMarker'](_0x46f7f6);_0x35932b['add'](_0x6f1af6);}else{const _0x26cfe6=this['_suggestions']['get'](_0x3ddf81);null!==_0x35f60a['newRange']||_0x26cfe6['isInContent']?(_0x4f0a56['add'](_0x26cfe6['head']),_0x35932b['add'](_0x26cfe6)):this['_removeSuggestion'](_0x26cfe6);}}_0x35932b['size']>0x0&&this['_refreshSuggestionsChain'](_0x35932b);for(const _0x182cb9 of _0x4f0a56)this['fire']('suggestionChanged',_0x182cb9);}),_0x341b20['model']['on']('applyOperation',(_0x23d598,_0x37205e)=>{const _0x18f60a=_0x37205e[0x0];if(!this['_suggestions']['size'])return;if(!_0x18f60a['isDocumentOperation'])return;if(_0x18f60a['batch']['isUndo']||!_0x18f60a['batch']['isLocal'])return;let _0x444f0a,_0x4e7749;switch(_0x18f60a['type']){case'insert':_0x444f0a=_0x341b20['model']['createPositionAt'](_0x18f60a['position']),_0x4e7749=_0x444f0a['getShiftedBy'](_0x18f60a['howMany']);break;case'split':_0x444f0a=_0x341b20['model']['createPositionAt'](_0x18f60a['splitPosition']),_0x4e7749=_0x341b20['model']['createPositionAt'](_0x18f60a['moveTargetPosition']);break;case'move':_0x444f0a=_0x341b20['model']['createPositionAt'](_0x18f60a['targetPosition']),_0x4e7749=_0x444f0a['getShiftedBy'](_0x18f60a['howMany']);break;default:return;}const _0x3f5939=_0x341b20['model']['createRange'](_0x444f0a,_0x4e7749);_0x341b20['model']['change'](()=>{for(const {suggestion:_0x2635c0,meta:_0x3ae8fd}of this['_findSuggestions'](_0x3f5939)){if(_0x2635c0['isMultiRange'])continue;if('formatInline'==_0x2635c0['type'])continue;const _0x245e7c=this['_getAttributeKey'](_0x2635c0);if(_0x245e7c&&this['_isBlockAttribute'](_0x245e7c)&&'split'!=_0x18f60a['type'])continue;const _0x4865ac=_0x2635c0['data']&&_0x2635c0['data']['multipleBlocks'];('formatBlock'!=_0x2635c0['type']||'split'==_0x18f60a['type']&&!_0x4865ac)&&(_0x3ae8fd['containsRangeInObject']||'insertion'==_0x2635c0['type']&&_0x3ae8fd['isOwn']||_0x2635c0['getFirstRange']()['containsRange'](_0x3f5939)&&this['_breakSuggestionMarker'](_0x2635c0,_0x444f0a,_0x4e7749));}});},{'priority':'lowest'}),_0x341b20['model']['on']('deleteContent',(_0x2d27c9,_0x8bc362)=>{const _0x529653=_0x8bc362[0x0],_0x2d038a=_0x8bc362[0x1];if(_0x2d038a&&_0x2d038a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x529653['isCollapsed'])return;const _0x35325d=_0x341b20['model']['schema'],{start:_0x39dfd0,end:_0x59072f}=_0x529653['getFirstRange'](),_0x3e8946=_0x39dfd0['nodeAfter']&&_0x35325d['isLimit'](_0x39dfd0['nodeAfter'])?null:_0x35325d['getNearestSelectionRange'](_0x39dfd0,'forward'),_0x339914=_0x59072f['nodeBefore']&&_0x35325d['isLimit'](_0x59072f['nodeBefore'])?null:_0x35325d['getNearestSelectionRange'](_0x59072f,'backward'),_0x1d68d5=_0x341b20['model']['createRange'](_0x3e8946?_0x3e8946['start']:_0x39dfd0,_0x339914?_0x339914['end']:_0x59072f);_0x341b20['model']['change'](_0x4f6548=>{this['markDeletion'](_0x1d68d5);const _0x50b873=_0x341b20['model']['schema']['getNearestSelectionRange'](_0x1d68d5['start']);_0x529653['is']('documentSelection')?_0x4f6548['setSelection'](_0x50b873):_0x529653['setTo'](_0x50b873);}),_0x2d27c9['stop']();},{'priority':_0x5c71e9['normal']+0xa}),_0x341b20['model']['on']('insertContent',(_0x41a833,_0x3c9e08)=>{const _0x5357e5=_0x3c9e08[_0x3c9e08['length']-0x1];_0x5357e5&&_0x5357e5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x341b20['model']['change'](()=>{let _0x3d06b6=_0x341b20['model']['insertContent'](_0x3c9e08[0x0],_0x3c9e08[0x1],_0x3c9e08[0x2],{'forceDefaultExecution':!0x0});if(!_0x3d06b6)return;_0x41a833['return']=_0x3d06b6['clone']();const _0x1f6c9b=_0x3d06b6['end']['nodeBefore'],_0x1f12c3=_0x341b20['model']['schema'];_0x1f6c9b&&_0x1f12c3['isBlock'](_0x1f6c9b)&&!_0x1f12c3['isObject'](_0x1f6c9b)&&(_0x3d06b6=_0x341b20['model']['createRange'](_0x3d06b6['start'],_0x341b20['model']['createPositionAt'](_0x1f6c9b,'end'))),this['markInsertion'](_0x3d06b6);}),_0x41a833['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3dbe15=new $(_0x341b20,this['_suggestions']);_0x341b20['commands']['add']('acceptSuggestion',_0x3dbe15),this['enableCommand']('acceptSuggestion');const _0x3fc99f=new B(_0x341b20,this['_suggestions']);_0x341b20['commands']['add']('discardSuggestion',_0x3fc99f),this['enableCommand']('discardSuggestion'),_0x341b20['commands']['add']('acceptAllSuggestions',new x(_0x341b20,_0x3dbe15,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x341b20['commands']['add']('discardAllSuggestions',new x(_0x341b20,_0x3fc99f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x341b20['commands']['add']('acceptSelectedSuggestions',new R(_0x341b20,_0x3dbe15,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x341b20['commands']['add']('discardSelectedSuggestions',new R(_0x341b20,_0x3fc99f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x327054=_0x341b20['plugins']['get']('CommentsRepository');this['listenTo'](_0x327054,'addComment',(_0x31a925,{threadId:_0x214776})=>{const _0x1ea559=this['_suggestions']['get'](_0x214776);_0x1ea559&&_0x1ea559['commentThread']&&0x1===_0x1ea559['commentThread']['length']&&this['_updateSuggestionData'](_0x214776,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x327054,'removeComment',(_0x181f4d,{threadId:_0x205ede})=>{const _0x28ae25=this['_suggestions']['get'](_0x205ede);_0x28ae25&&_0x28ae25['commentThread']&&!_0x28ae25['commentThread']['length']&&this['_updateSuggestionData'](_0x205ede,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x76d7bd){if(this['_adapter'])throw new _0xdb29b1('track-changes-adapter-already-set',this);this['_adapter']=_0x76d7bd;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2c1831=!0x1,toJSON:_0x2f46b8=!0x1}={}){const _0x479183=[];for(const _0x471179 of this['_suggestions']['values']())_0x2c1831&&!_0x471179['isInContent']||_0x479183['push'](_0x471179);return _0x2f46b8?_0x479183['map'](_0x142c5c=>_0x142c5c['toJSON']()):_0x479183;}['getSuggestion'](_0x1ff0d0){const _0x5d5520=this['_suggestions']['get'](_0x1ff0d0);if(!_0x5d5520)throw new _0xdb29b1('track-changes-suggestion-not-found',this);return _0x5d5520;}['hasSuggestion'](_0x407af4){return this['_suggestions']['has'](_0x407af4);}['addSuggestionData'](_0x34bdfa){const {authorId:_0x1ea181,id:_0x5d456a,attributes:_0x957bb6}=_0x34bdfa,[_0xf25be8,_0x20e4d3]=_0x34bdfa['type']['split'](':'),_0x1266be=this['_suggestions']['get'](_0x5d456a)||this['_createSuggestion'](_0xf25be8,_0x20e4d3,_0x5d456a,_0x1ea181,_0x957bb6);if(this['_addThreadToSuggestion'](_0x1266be),this['_checkSuggestionCorrectness'](_0x1266be,_0xf25be8,_0x20e4d3||null,_0x1ea181),_0x1266be['createdAt']=_0x34bdfa['createdAt'],_0x1266be['_isDataLoaded']=!0x0,_0x957bb6&&_0x957bb6['@external']){const _0x537830=_0x957bb6['@external'],_0x33e386=this['_getExternalAuthor'](_0x537830['authorName']);_0x1266be['authoredAt']=_0x537830['createdAt'],_0x1266be['author']=_0x33e386,_0x1266be['isExternal']=!0x0;}else _0x1266be['authoredAt']=_0x34bdfa['createdAt'];switch(_0x34bdfa['data']&&(_0x1266be['data']=_0x34bdfa['data']),_0x34bdfa['attributes']&&(_0x1266be['attributes']=_0x34bdfa['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1266be['_saved']=!0x0),this['_suggestionState']['get'](_0x1266be)){case'notReady':this['_suggestionState']['set'](_0x1266be,'dataReady');break;case'markerReady':_0x1266be['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1266be])),this['_refreshSuggestionsChain'](new Set([_0x1266be])),this['_suggestionState']['set'](_0x1266be,'ready'),this['fire']('suggestionLoaded',_0x1266be)):this['_suggestionState']['set'](_0x1266be,'removed');}return _0x1266be;}['acceptSuggestion'](_0x12ffbe){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x664aef of _0x12ffbe['getAllAdjacentSuggestions']())_0x664aef['accept']();});});}['discardSuggestion'](_0x4295c5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4cfa33 of _0x4295c5['getAllAdjacentSuggestions']())_0x4cfa33['discard']();});});}['enableCommand'](_0x4c287b,_0x25e67f){const _0x2b8e08=this['editor']['commands']['get'](_0x4c287b);if(!_0x2b8e08)throw new _0xdb29b1('track-changes-command-not-found',this,{'commandName':_0x4c287b});if(this['_enabledCommands']['has'](_0x2b8e08))throw new _0xdb29b1('track-changes-enable-command-twice',this,{'commandName':_0x4c287b});this['_enabledCommands']['add'](_0x2b8e08),_0x25e67f&&_0x2b8e08['on']('execute',(_0xe12d0c,_0x5f0e19)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5f0e19['length']>0x0&&_0x5f0e19[_0x5f0e19['length']-0x1]&&_0x5f0e19[_0x5f0e19['length']-0x1]['forceDefaultExecution']?_0x5f0e19['pop']():(_0xe12d0c['return']=_0x25e67f((..._0x5aff67)=>_0x2b8e08['execute'](..._0x5aff67,{'forceDefaultExecution':!0x0}),..._0x5f0e19),_0xe12d0c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x24b952){let _0x15658b,_0x2d18a4;const _0x54d04e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x15658b=_0x24b952();}catch(_0x1af247){_0x2d18a4=_0x1af247;}return _0x54d04e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2d18a4&&_0xdb29b1['rethrowUnexpectedError'](_0x2d18a4,this),_0x15658b;}['markInsertion'](_0x112cbe,_0x347e88=null,_0x986ee4={}){if(_0x112cbe['isCollapsed'])return null;const _0x5a3cea=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4d378f,meta:_0x28aeed}of this['_findSuggestions'](_0x112cbe,'insertion'))if(_0x28aeed['isOwn']){if(!_0x28aeed['isNextTo']){if(_0x28aeed['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x4d378f,_0x986ee4))continue;return _0x4d378f;}if(Lt(_0x4d378f,_0x986ee4))return _0x4d378f;this['_breakSuggestionMarker'](_0x4d378f,_0x112cbe['start'],_0x112cbe['end']);break;}if(_0x347e88==_0x4d378f['subType']&&Lt(_0x4d378f,_0x986ee4)){const _0x377c32=_0x4d378f['getFirstRange']();return _0x377c32['start']['isEqual'](_0x112cbe['end'])?this['_setSuggestionRange'](_0x4d378f,this['_model']['createRange'](_0x112cbe['start'],_0x377c32['end'])):this['_setSuggestionRange'](_0x4d378f,this['_model']['createRange'](_0x377c32['start'],_0x112cbe['end'])),_0x4d378f;}}const _0x2c25e8=_0xbe7a13(),_0x2e521a=_0x5a3cea['id'],_0x42afc8=_0x347e88?'insertion:'+_0x347e88:'insertion',_0x53744e=this['_setSuggestionData']({'id':_0x2c25e8,'type':_0x42afc8,'createdAt':new Date(),'authorId':_0x2e521a,'attributes':_0x986ee4});return this['_addSuggestionMarker'](_0x42afc8,_0x2c25e8,_0x2e521a,_0x112cbe),_0x53744e;}['markMultiRangeInsertion'](_0xcb95fa,_0x3c598e='multi',_0xeb3dc8={}){const _0x52f57d=this['editor']['plugins']['get']('Users')['me'],_0xc74c9b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3c598e,'join');for(const _0x3fe3ca of this['getSuggestions']())if(_0x3fe3ca['author']['id']==_0x52f57d['id']&&'insertion'==_0x3fe3ca['type']&&_0x3fe3ca['subType']==_0x3c598e&&Lt(_0x3fe3ca,_0xeb3dc8)&&(_0xc74c9b(_0x3fe3ca['getRanges'](),_0xcb95fa)||_0xc74c9b(_0xcb95fa,_0x3fe3ca['getRanges']()))){for(const _0x16560b of _0xcb95fa)_0x3fe3ca['addRange'](_0x16560b);return _0x3fe3ca;}for(const {suggestion:_0x3f03eb,meta:_0x20f99c}of this['_findSuggestions'](_0xcb95fa,'insertion')){if(!_0x20f99c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x20f99c['containsRangeInObject'])continue;if(!Lt(_0x3f03eb,_0xeb3dc8))continue;let _0x3e0d63=!0x0;for(const _0x1f79c4 of _0x3f03eb['getRanges']())for(const _0xcd81c9 of _0xcb95fa)if(!_0x1f79c4['containsRange'](_0xcd81c9)){_0x3e0d63=!0x1;break;}if(_0x3e0d63)return _0x3f03eb;}const _0x454f=_0xbe7a13(),_0x364701=_0x52f57d['id'],_0x166754='insertion:'+_0x3c598e,_0x219cac=this['_setSuggestionData']({'id':_0x454f,'type':_0x166754,'createdAt':new Date(),'authorId':_0x364701,'attributes':_0xeb3dc8});for(const _0xaddde4 of _0xcb95fa)this['_addSuggestionMarker'](_0x166754,_0x454f,_0x364701,_0xaddde4,u['getMultiRangeId']());return _0x219cac;}['markInlineFormat'](_0x4f1e42,_0x2e370a,_0x2d1de3=null,_0x45aa9f={}){if(_0x2d1de3=_0x2d1de3||Vt(_0x2e370a),_0x4f1e42['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5a43bd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2d1de3,'accept');return this['forceDefaultExecution'](()=>_0x5a43bd([_0x4f1e42],_0x2e370a,_0x45aa9f)),null;}const _0x5b50d4=this['editor']['plugins']['get']('Users')['me'],_0xc4101f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x271cb7,meta:_0x436c1a}of this['_findSuggestions'](_0x4f1e42,'insertion'))_0x436c1a['isOwn']&&!_0x436c1a['isInsideObject']&&_0xc4101f['push'](..._0x271cb7['getRanges']());}const _0x2f710b=function(_0x361594,_0x43fd31){const _0x4d1142=[];for(const _0x47705c of _0x43fd31){const _0x62c84a=_0x361594['getIntersection'](_0x47705c);_0x62c84a&&_0x4d1142['push'](_0x62c84a);}return _0x4d1142;}(_0x4f1e42,_0xc4101f),_0x4da2eb=function(_0x46fc39,_0x3a21b3){const _0xd058fb=[_0x46fc39];for(const _0x975935 of _0x3a21b3){let _0x570af9=0x0;for(;_0x570af9<_0xd058fb['length'];){const _0x52a064=_0xd058fb[_0x570af9]['getDifference'](_0x975935);_0xd058fb['splice'](_0x570af9,0x1,..._0x52a064),_0x570af9+=_0x52a064['length'];}}return _0xd058fb;}(_0x4f1e42,_0xc4101f);_0x2f710b['length']&&this['_model']['change'](()=>{for(const _0x3aaa2f of _0x2f710b){const _0x509ca5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2d1de3,'accept');this['forceDefaultExecution'](()=>_0x509ca5([_0x3aaa2f],_0x2e370a,_0x45aa9f));}});for(const _0xa2188 of _0x4da2eb){let _0x3174e3=null,_0x7f562c=_0xa2188['start'],_0x14004d=_0xa2188['end'];for(const {suggestion:_0x523dea,meta:_0x58a151}of this['_findSuggestions'](_0xa2188,'formatInline')){if(!_0x58a151['isOwn'])continue;if(_0x523dea['subType']!=_0x2d1de3)continue;if(!Lt(_0x523dea,_0x45aa9f))continue;const _0x15a478=_0x523dea['getFirstRange']();if(_0x15a478['containsRange'](_0xa2188,!0x0))return null;_0x7f562c=_0x7f562c['isBefore'](_0x15a478['start'])?_0x7f562c:_0x15a478['start'],_0x14004d=_0x14004d['isAfter'](_0x15a478['end'])?_0x14004d:_0x15a478['end'],_0x3174e3?_0x15a478['start']['isBefore'](_0x3174e3['getFirstRange']()['start'])?(_0x3174e3['removeMarkers'](),_0x3174e3=_0x523dea):_0x523dea['removeMarkers']():_0x3174e3=_0x523dea;}const _0xbf5996=this['_model']['createRange'](_0x7f562c,_0x14004d);if(_0x3174e3)this['_setSuggestionRange'](_0x3174e3,_0xbf5996);else{const _0x3ed81b=_0xbe7a13(),_0x3c402a=_0x5b50d4['id'];this['_setSuggestionData']({'id':_0x3ed81b,'type':'formatInline:'+_0x2d1de3,'data':_0x2e370a,'createdAt':new Date(),'authorId':_0x3c402a,'attributes':_0x45aa9f}),this['_addSuggestionMarker']('formatInline:'+_0x2d1de3,_0x3ed81b,_0x3c402a,_0xbf5996);}}return null;}['markBlockFormat'](_0x478de9,_0x4ce297,_0x31a428=[],_0x2d57db=null,_0x3f383d={}){_0x4ce297['formatGroupId']||(_0x4ce297['formatGroupId']=_0x4ce297['commandName']),_0x4ce297['multipleBlocks']=_0x478de9['is']('range'),_0x2d57db=_0x2d57db||Vt(_0x4ce297);const _0x2a902f=_0x31a428['map'](_0x5cd3d4=>Gt(_0x5cd3d4,this['_model'])),_0x4d0ac2=_0x478de9['is']('range')?_0x478de9:Gt(_0x478de9,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2cff5b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d57db,'accept');return this['forceDefaultExecution'](()=>_0x2cff5b([_0x4d0ac2],_0x4ce297,_0x3f383d)),null;}_0x2a902f['push'](_0x4d0ac2);let _0xcd4239=!0x0;for(const _0x1809a7 of _0x2a902f)if(!this['_rangeIsInLocalUserInsertion'](_0x1809a7)){_0xcd4239=!0x1;break;}if(_0xcd4239&&'always'!==this['_trackFormatChanges']){const _0x2a72dc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d57db,'accept');return this['forceDefaultExecution'](()=>_0x2a72dc([_0x4d0ac2],_0x4ce297,_0x3f383d)),null;}let _0x5dc286=null,_0x477704=_0x4d0ac2['start'],_0x3b9986=_0x4d0ac2['end'];for(const {suggestion:_0x19d33f,meta:_0x269609}of this['_findSuggestions'](_0x4d0ac2,'formatBlock')){if(!_0x269609['isOwn'])continue;if(_0x269609['isNextTo']||_0x269609['containsRangeInObject']||_0x269609['isInsideObject'])continue;if(_0x19d33f['data']['formatGroupId']!=_0x4ce297['formatGroupId'])continue;if(!Lt(_0x19d33f,_0x3f383d))continue;const _0x322022=_0x19d33f['getFirstRange']();if(_0x19d33f['subType']==_0x2d57db){if(_0x322022['containsRange'](_0x4d0ac2,!0x0))return null;_0x477704=_0x477704['isBefore'](_0x322022['start'])?_0x477704:_0x322022['start'],_0x3b9986=_0x3b9986['isAfter'](_0x322022['end'])?_0x3b9986:_0x322022['end'],_0x5dc286?_0x322022['start']['isBefore'](_0x5dc286['getFirstRange']()['start'])?(_0x5dc286['removeMarkers'](),_0x5dc286=_0x19d33f):_0x19d33f['removeMarkers']():_0x5dc286=_0x19d33f;}else{const _0x8aaf38=_0x4d0ac2['getIntersection'](_0x322022);this['_cutOutSuggestionMarker'](_0x19d33f,_0x8aaf38);}}const _0x1dcda5=this['editor']['plugins']['get']('Users')['me'],_0x23664b=_0xbe7a13(),_0x566907=_0x1dcda5['id'];if(_0x5dc286)return this['_setSuggestionRange'](_0x5dc286,this['_model']['createRange'](_0x477704,_0x3b9986)),_0x5dc286;{const _0xe97cfb=this['_setSuggestionData']({'id':_0x23664b,'type':'formatBlock:'+_0x2d57db,'data':_0x4ce297,'createdAt':new Date(),'authorId':_0x566907,'attributes':_0x3f383d});return this['_addSuggestionMarker']('formatBlock:'+_0x2d57db,_0x23664b,_0x566907,this['_model']['createRange'](_0x477704,_0x3b9986)),_0xe97cfb;}}['markMultiRangeBlockFormat'](_0x306406,_0x52b70e,_0x4a4626=[],_0x167d4d=null,_0x36eb1c={}){_0x52b70e['formatGroupId']||(_0x52b70e['formatGroupId']=_0x52b70e['commandName']);const _0x148dff=_0x306406[0x0];_0x52b70e['multipleBlocks']=_0x148dff['is']('range'),_0x167d4d=_0x167d4d||Vt(_0x52b70e);const _0x4aa58d=_0x4a4626['map'](_0x31e4a5=>Gt(_0x31e4a5,this['_model'])),_0x4ef1fb=_0x148dff['is']('range')?_0x306406:_0x306406['map'](_0x19937d=>Gt(_0x19937d,this['_model']));if('never'===this['_trackFormatChanges']){const _0x19fd16=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x167d4d,'accept');return this['forceDefaultExecution'](()=>_0x19fd16(_0x4ef1fb,_0x52b70e,_0x36eb1c)),null;}_0x4aa58d['push'](..._0x4ef1fb);let _0x4e4431=!0x0;for(const _0x4ce629 of _0x4aa58d)if(!this['_rangeIsInLocalUserInsertion'](_0x4ce629)){_0x4e4431=!0x1;break;}if(_0x4e4431&&'always'!==this['_trackFormatChanges']){const _0x7f0a78=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x167d4d,'accept');return this['forceDefaultExecution'](()=>_0x7f0a78(_0x4ef1fb,_0x52b70e,_0x36eb1c)),null;}const _0x2e6c7c=this['editor']['plugins']['get']('Users')['me'];for(const _0x30a93e of this['getSuggestions']()){if(_0x30a93e['author']['id']!=_0x2e6c7c['id'])continue;if('formatBlock'!=_0x30a93e['type']||_0x30a93e['data']['formatGroupId']!=_0x52b70e['formatGroupId'])continue;if(!Lt(_0x30a93e,_0x36eb1c))continue;const _0xda2850=_0x30a93e['subType']==_0x167d4d;for(let _0x2f5da0=0x0;_0x2f5da0<_0x4ef1fb['length'];_0x2f5da0++){const _0x5d3553=_0x4ef1fb[_0x2f5da0];for(const _0x114e60 of _0x30a93e['getMarkers']()){const _0x151882=_0x114e60['getRange']();if(_0x5d3553['isEqual'](_0x151882)){_0xda2850?(_0x4ef1fb['splice'](_0x2f5da0,0x1),_0x2f5da0--):_0x30a93e['removeMarker'](_0x114e60['name']);break;}}}}if(0x0==_0x4ef1fb['length'])return null;const _0x5684cc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x167d4d,'join');for(const _0x2f05aa of this['getSuggestions']())if(_0x2f05aa['author']['id']==_0x2e6c7c['id']&&'formatBlock'==_0x2f05aa['type']&&_0x2f05aa['data']['formatGroupId']==_0x52b70e['formatGroupId']&&_0x2f05aa['subType']==_0x167d4d&&Lt(_0x2f05aa,_0x36eb1c)&&(_0x5684cc(_0x2f05aa['getRanges'](),_0x4ef1fb)||_0x5684cc(_0x4ef1fb,_0x2f05aa['getRanges']()))){for(const _0x28aba9 of _0x4ef1fb)_0x2f05aa['addRange'](_0x28aba9);return _0x2f05aa;}const _0x2f7b86=_0xbe7a13(),_0x55e14e=_0x2e6c7c['id'],_0xb5bed4='formatBlock:'+_0x167d4d,_0x3a53de=this['_setSuggestionData']({'id':_0x2f7b86,'type':_0xb5bed4,'data':_0x52b70e,'createdAt':new Date(),'authorId':_0x55e14e,'attributes':_0x36eb1c});for(const _0x51efed of _0x4ef1fb)this['_addSuggestionMarker'](_0xb5bed4,_0x2f7b86,_0x55e14e,_0x51efed,u['getMultiRangeId']());return _0x3a53de;}['markDeletion'](_0x35c6a8,_0x202fab=null,_0x3788e5={}){if(_0x35c6a8['isCollapsed'])return null;const _0x2c2dfa=this['editor']['plugins']['get']('Users')['me'],_0x1d3f77=new _0x3d61db(_0x35c6a8['start'],_0x35c6a8['end']);for(const {suggestion:_0x415d1b,meta:_0x549c31}of this['_findSuggestions'](_0x1d3f77,'insertion'))if(_0x549c31['isOwn']&&!_0x549c31['isNextTo']){if(_0x415d1b['isMultiRange']){const _0x8ad4b2=_0x415d1b['getRanges']()['filter'](_0x3d52d6=>'$graveyard'!=_0x3d52d6['root']['rootName']);_0x8ad4b2['every'](_0x1a7ade=>_0x1d3f77['containsRange'](_0x1a7ade,!0x0))&&_0x415d1b['discard']();if(_0x8ad4b2['some'](_0x47df8e=>_0x47df8e['containsRange'](_0x1d3f77,!0x0))){const _0x425c40=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x202fab,'accept');return this['forceDefaultExecution'](()=>_0x425c40([_0x1d3f77],null,_0x3788e5)),null;}}else{const _0x2ffc2c=_0x1d3f77['getIntersection'](_0x415d1b['getFirstRange']());null!==_0x2ffc2c&&_0x415d1b['_onDiscard']([_0x2ffc2c],null,_0x3788e5);}}if(_0x1d3f77['detach'](),_0x1d3f77['isCollapsed']||'$graveyard'==_0x1d3f77['root']['rootName'])return null;let _0x31b61b=null,_0x3a0f29=_0x1d3f77['start'],_0x2662a3=_0x1d3f77['end'];const _0x3c1639=this['_findSuggestions'](_0x1d3f77,'deletion');for(const {suggestion:_0x12a22c,meta:_0x52025f}of _0x3c1639){const _0x106486=this['_model']['createRange'](_0x3a0f29,_0x2662a3);if(_0x52025f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x52025f['containsRangeInObject']&&!_0x52025f['isInsideObject'])){if(_0x12a22c['isMultiRange']){if(!Lt(_0x12a22c,_0x3788e5))continue;let _0xda9103=!0x0;for(const _0x369cb2 of _0x12a22c['getRanges']()){if(_0x369cb2['containsRange'](_0x106486,!0x0))return _0x12a22c;_0x106486['containsRange'](_0x369cb2)||(_0xda9103=!0x1);}_0xda9103&&_0x12a22c['discard']();}else{const _0x2dce24=_0x12a22c['getFirstRange']();if(_0x2dce24['containsRange'](_0x106486,!0x0))return _0x12a22c;if(!Lt(_0x12a22c,_0x3788e5)){_0x106486['containsRange'](_0x2dce24)?_0x12a22c['removeMarkers']():_0x2dce24['containsPosition'](_0x3a0f29)?_0x3a0f29=_0x2dce24['end']:_0x2dce24['containsPosition'](_0x2662a3)&&(_0x2662a3=_0x2dce24['start']);continue;}_0x3a0f29=_0x3a0f29['isBefore'](_0x2dce24['start'])?_0x3a0f29:_0x2dce24['start'],_0x2662a3=_0x2662a3['isAfter'](_0x2dce24['end'])?_0x2662a3:_0x2dce24['end'],_0x3788e5=Object['assign']({},_0x12a22c['attributes']),_0x31b61b?_0x2dce24['start']['isBefore'](_0x31b61b['getFirstRange']()['start'])?(_0x31b61b['removeMarkers'](),_0x31b61b=_0x12a22c):_0x12a22c['removeMarkers']():_0x31b61b=_0x12a22c;}}}if(_0x31b61b)return this['_setSuggestionRange'](_0x31b61b,this['_model']['createRange'](_0x3a0f29,_0x2662a3)),_0x31b61b;{const _0x2a0d73=_0xbe7a13(),_0x48e770=this['_model']['createRange'](_0x3a0f29,_0x2662a3),_0x48859f=_0x2c2dfa['id'],_0x4dcb3c=_0x202fab?'deletion:'+_0x202fab:'deletion',_0x2990a2=this['_setSuggestionData']({'id':_0x2a0d73,'type':_0x4dcb3c,'createdAt':new Date(),'authorId':_0x48859f,'attributes':_0x3788e5});return this['_addSuggestionMarker'](_0x4dcb3c,_0x2a0d73,_0x48859f,_0x48e770),_0x2990a2;}}['markMultiRangeDeletion'](_0x18453b,_0xfe9739='multi',_0x247ae9={}){const _0x4d248d=this['editor']['plugins']['get']('Users')['me'],_0x4588aa=_0x18453b['map'](_0x212dca=>new _0x3d61db(_0x212dca['start'],_0x212dca['end'])),_0x1ff792=new Set();for(const {suggestion:_0xca0609,meta:_0x578dfa}of this['_findSuggestions'](_0x4588aa,'insertion'))_0x578dfa['isOwn']&&!_0x578dfa['isNextTo']&&_0x1ff792['add'](_0xca0609);for(const _0x1fcba8 of _0x1ff792)if(_0x1fcba8['isMultiRange']){const _0x4b0c30=_0x1fcba8['getRanges']();(!_0x1fcba8['attributes']||!_0x1fcba8['attributes']['skipNestingCheck'])&&(_0x4b0c30['every'](_0x32e9f4=>_0x4588aa['some'](_0x12b48d=>_0x12b48d['containsRange'](_0x32e9f4,!0x0)))&&_0x1fcba8['discard']());if(_0x4588aa['every'](_0x5eee99=>_0x4b0c30['some'](_0x406d52=>_0x406d52['containsRange'](_0x5eee99,!0x0)))){const _0x4295ee=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xfe9739,'accept');return this['forceDefaultExecution'](()=>_0x4295ee(_0x18453b,null,_0x247ae9)),null;}}else{const _0x1512f9=_0x1fcba8['getFirstRange']();_0x4588aa['some'](_0xdf12a8=>_0xdf12a8['containsRange'](_0x1512f9,!0x0))&&_0x1fcba8['discard']();if(_0x4588aa['every'](_0x2ba0ea=>_0x1512f9['containsRange'](_0x2ba0ea,!0x0))){const _0x2af26b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xfe9739,'accept');return this['forceDefaultExecution'](()=>_0x2af26b(_0x4588aa,null,_0x247ae9)),null;}}const _0x262c98=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xfe9739,'join');let _0x5c2dfc=null;for(const _0x3b996e of this['getSuggestions']())if(_0x3b996e['author']['id']==_0x4d248d['id']&&_0x3b996e['isInContent']&&'deletion'==_0x3b996e['type']&&_0x3b996e['subType']==_0xfe9739&&Lt(_0x3b996e,_0x247ae9)&&(_0x262c98(_0x3b996e['getRanges'](),_0x4588aa)||_0x262c98(_0x4588aa,_0x3b996e['getRanges']()))){if(_0x5c2dfc){if(_0x3b996e['commentThread']&&_0x3b996e['commentThread']['length'])continue;for(const _0x17938c of _0x3b996e['getRanges']())_0x5c2dfc['isIntersectingWithRange'](_0x17938c)||_0x5c2dfc['addRange'](_0x17938c);_0x3b996e['removeMarkers']();}else{_0x5c2dfc=_0x3b996e;for(const _0x3a2848 of _0x4588aa)_0x3b996e['isIntersectingWithRange'](_0x3a2848)||_0x3b996e['addRange'](_0x3a2848);}}if(_0x5c2dfc)return _0x5c2dfc;_0x1ff792['clear']();for(const {suggestion:_0x5128d4,meta:_0x1ea678}of this['_findSuggestions'](_0x4588aa,'deletion'))_0x1ea678['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1ea678['containsRangeInObject']&&!_0x1ea678['isInsideObject'])&&Lt(_0x5128d4,_0x247ae9)&&_0x1ff792['add'](_0x5128d4);for(const _0x4bd770 of _0x1ff792){const _0x416a24=_0x4bd770['getRanges']();if(!_0x247ae9||!_0x247ae9['skipNestingCheck']){if(_0x4588aa['every'](_0x1a68b3=>_0x416a24['some'](_0x2731a9=>_0x2731a9['containsRange'](_0x1a68b3,!0x0))))return _0x4bd770;}(!_0x4bd770['attributes']||!_0x4bd770['attributes']['skipNestingCheck'])&&(_0x416a24['every'](_0x1a3025=>_0x4588aa['some'](_0x1d0191=>_0x1d0191['containsRange'](_0x1a3025,!0x0)))&&_0x4bd770['discard']());}const _0x32e10f=_0xbe7a13(),_0x58f9c3=_0x4d248d['id'],_0x4d17da='deletion:'+_0xfe9739,_0x29c2c0=this['_setSuggestionData']({'id':_0x32e10f,'type':_0x4d17da,'createdAt':new Date(),'authorId':_0x58f9c3,'attributes':_0x247ae9});for(const _0x4e2927 of _0x4588aa)_0x4e2927['detach'](),_0x4e2927['isCollapsed']||'$graveyard'==_0x4e2927['root']['rootName']||this['_addSuggestionMarker'](_0x4d17da,_0x32e10f,_0x58f9c3,_0x4e2927,u['getMultiRangeId']());return _0x29c2c0;}['markAttributeChange'](_0x5882d5,_0x1f3a49,_0x6d4e57,_0x556307,_0xe8ee1e){if(_0x5882d5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3c1219=this['editor']['plugins']['get']('Users')['me']['id'],_0x4ae588=Array['from'](this['_suggestions']['values']())['filter'](_0x20c097=>'attribute'==_0x20c097['type']&&_0x20c097['data']['key']==_0x1f3a49&&_0x20c097['isIntersectingWithRange'](_0x5882d5));if('default'===this['_trackFormatChanges']){const _0x289b37=this['_findSuggestions'](_0x5882d5,'insertion')['filter'](({meta:_0x254164})=>_0x254164['isOwn']&&!_0x254164['isInsideObject']&&!_0x254164['isNextTo'])['map'](({suggestion:_0x51b423})=>_0x51b423);_0x4ae588['unshift'](..._0x289b37);}const _0x468975=new Map([[_0x5882d5,_0x6d4e57]]);for(const _0x287545 of _0x4ae588){const _0x162cc0='attribute'==_0x287545['type']?_0x287545['data']['oldValue']:void 0x0,_0x1d324c=_0x287545['getFirstRange'](),_0x4d2e42=Array['from'](_0x468975['keys']())['find'](_0x3443cc=>_0x3443cc['isIntersecting'](_0x1d324c));if(!_0x4d2e42)continue;const _0x32f161=_0x4d2e42['getDifference'](_0x1d324c);this['_isBlockAttribute'](_0x1f3a49)&&'insertion'==_0x287545['type']&&0x0!=_0x32f161['length']||(_0x468975['delete'](_0x4d2e42),_0x32f161['forEach'](_0x1f1f08=>{_0x468975['set'](_0x1f1f08,_0x6d4e57);}),'insertion'!=_0x287545['type']&&_0x162cc0!=_0x556307&&_0x468975['set'](_0x4d2e42['getIntersection'](_0x1d324c),_0x162cc0));}const _0x1b571d=[];for(const [_0x16d5ec,_0xa08932]of _0x468975){const _0xe98d5e=_0xbe7a13(),_0x1ce8f9={'key':_0x1f3a49,'oldValue':_0xa08932,'newValue':_0x556307};_0x1f3a49['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':_0x1f3a49});const _0x12108c=('attribute:'+(_0x1f3a49+'|'+Vt({'newValue':_0x556307})))['substring'](0x0,0x3c),_0x4ba5a9=this['_setSuggestionData']({'id':_0xe98d5e,'type':_0x12108c,'data':_0x1ce8f9,'createdAt':new Date(),'authorId':_0x3c1219,'attributes':_0xe8ee1e});_0x1b571d['push'](_0x4ba5a9),this['_addSuggestionMarker'](_0x12108c,_0xe98d5e,_0x3c1219,_0x16d5ec);}return _0x1b571d;}['enableDefaultAttributesIntegration'](_0x5e299f){this['enableCommand'](_0x5e299f,(_0x42299b,..._0x549f98)=>{this['_recordAttributeChanges'](()=>{_0x42299b(..._0x549f98);});});}['registerBlockAttribute'](_0x1ce697){this['_blockAttributeKeys']['add'](_0x1ce697);}['registerInlineAttribute'](_0x21521a){this['_inlineAttributeKeys']['add'](_0x21521a);}['_getAttributeKey'](_0x5479d6){return'attribute'==_0x5479d6['type']?_0x5479d6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1fca9b,_0x298c6d){const _0xd95145=_0x1fca9b['getFirstMarker']();this['_model']['change'](_0x24a30a=>{_0x24a30a['updateMarker'](_0xd95145,{'range':_0x298c6d});});}['_addThreadToSuggestion'](_0x37972f){const _0x218cce=_0x37972f['id'],_0x134ac8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x218cce)||this['_commentsRepository']['addCommentThread']({'channelId':_0x134ac8,'threadId':_0x218cce,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x33f7de=this['_commentsRepository']['getCommentThread'](_0x218cce);_0x33f7de['unbind']('isRemovable'),_0x33f7de['isRemovable']=!0x1,_0x37972f['commentThread']=_0x33f7de;}['_checkSuggestionCorrectness'](_0x22de62,_0x1c9e58,_0x3818c2,_0x39667b){if(_0x22de62['type']!=_0x1c9e58||_0x22de62['subType']!=_0x3818c2||_0x22de62['creator']['id']!=_0x39667b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xdb29b1('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x51590b,_0x5f4c3d){const _0x13a86d=_0x51590b['getFirstRange']();if(_0x5f4c3d['isEqual'](_0x13a86d))_0x51590b['removeMarkers']();else{if(_0x13a86d['containsRange'](_0x5f4c3d)){const _0xbe4cbf=this['_model']['createPositionAt'](_0x5f4c3d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x51590b,this['_model']['createRange'](_0x13a86d['start'],_0xbe4cbf));const _0x3a7ff3=_0xbe7a13(),_0x534ebe=_0x51590b['creator']['id'],_0x4c5bb7=_0x51590b['type']+':'+_0x51590b['subType'];this['_setSuggestionData']({'id':_0x3a7ff3,'type':_0x4c5bb7,'createdAt':new Date(),'authorId':_0x534ebe,'data':_0x51590b['data'],'attributes':_0x51590b['attributes']});const _0x2397be=this['_model']['createPositionAt'](_0x5f4c3d['end']['parent'],'after'),_0x5f37f5=this['_model']['createRange'](_0x2397be,_0x13a86d['end']);this['_addSuggestionMarker'](_0x4c5bb7,_0x3a7ff3,_0x534ebe,_0x5f37f5);}else{if(_0x13a86d['containsPosition'](_0x5f4c3d['start'])){const _0x5ef637=this['_model']['createPositionAt'](_0x5f4c3d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x51590b,this['_model']['createRange'](_0x13a86d['start'],_0x5ef637));}else{const _0x16d4fd=this['_model']['createPositionAt'](_0x5f4c3d['end']['parent'],'after');this['_setSuggestionRange'](_0x51590b,this['_model']['createRange'](_0x16d4fd,_0x13a86d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3ff57f){for(const {suggestion:_0x3dcdd6,meta:_0x4dda55}of this['_findSuggestions'](_0x3ff57f,'insertion')){if(!_0x4dda55['isOwn'])continue;const _0x4c9240=_0x3dcdd6['getRanges']();for(const _0x5b2fe2 of _0x4c9240)if(!_0x3ff57f['getDifference'](_0x5b2fe2)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4dc397){const _0x28e005=this['editor']['plugins']['get']('Users')['getUser'](_0x4dc397);if(!_0x28e005)throw new _0xdb29b1('track-changes-user-not-found',this);return _0x28e005;}['_getExternalAuthor'](_0xdf874d){const _0x31c969=this['editor']['plugins']['get']('Users'),_0xf986f=_0x13de43('external:'+_0xdf874d),_0x15e723=_0x31c969['getUser'](_0xf986f);return _0x15e723||_0x31c969['addUser']({'id':_0xf986f,'name':_0xdf874d});}['_createSuggestion'](_0x13cbae,_0x1743f4,_0x1f422d,_0x426065,_0x42fa36){const _0x144e9e=this['_getAuthorFromId'](_0x426065),_0x171943=this['_suggestionFactory']['buildSuggestion'](_0x13cbae,_0x1743f4,_0x1f422d,_0x144e9e,_0x42fa36,_0xebd6c4=>{this['_updateSuggestionData'](_0x1f422d,{'attributes':_0xebd6c4});const _0x1a377b=this['getSuggestion'](_0x1f422d);this['_joinWithAdjacentSuggestions'](new Set([_0x1a377b])),this['_refreshSuggestionsChain'](new Set([_0x1a377b]));});return this['listenTo'](_0x171943,'accept',()=>{this['_updateSuggestionData'](_0x1f422d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x171943,'discard',()=>{this['_updateSuggestionData'](_0x1f422d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1f422d,_0x171943),this['_suggestionState']['set'](_0x171943,'notReady'),_0x171943;}['_splitMarkerName'](_0x24814b){const _0x24d6d7=_0x24814b['split'](':');return{'group':_0x24d6d7[0x0],'type':_0x24d6d7[0x1],'subType':_0x24d6d7['length']>=0x5?_0x24d6d7[0x2]:null,'id':_0x24d6d7['length']<0x5?_0x24d6d7[0x2]:_0x24d6d7[0x3],'authorId':_0x24d6d7['length']<0x5?_0x24d6d7[0x3]:_0x24d6d7[0x4],'markerCount':0x6==_0x24d6d7['length']?_0x24d6d7[0x5]:null};}['_breakSuggestionMarker'](_0xadda6,_0x4f532f,_0x2e03bb){const _0x2badaf=_0xadda6['getFirstRange'](),_0x1dcac7=_0x2badaf['start'],_0x3a5a9d=_0x2badaf['end'];this['_setSuggestionRange'](_0xadda6,this['_model']['createRange'](_0x1dcac7,_0x4f532f));const _0x24787c=_0xbe7a13(),_0x409971=_0xadda6['creator']['id'],_0x5d83f7=_0xadda6['type']+(_0xadda6['subType']?':'+_0xadda6['subType']:'');this['_setSuggestionData']({'id':_0x24787c,'type':_0x5d83f7,'createdAt':new Date(),'authorId':_0x409971,'originalSuggestionId':_0xadda6['id'],'attributes':_0xadda6['attributes'],'data':_0xadda6['data']});const _0xa94329=this['_getAttributeKey'](_0xadda6);('formatBlock'==_0xadda6['type']||_0xa94329&&this['_isBlockAttribute'](_0xa94329))&&(_0x2e03bb=this['_model']['createPositionBefore'](_0x2e03bb['parent'])),this['_addSuggestionMarker'](_0x5d83f7,_0x24787c,_0x409971,this['_model']['createRange'](_0x2e03bb,_0x3a5a9d));}['_findSuggestions'](_0x35b561,_0x9bd5bb=null){const _0x19604d=[],_0xf06609=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x35b561)||(_0x35b561=[_0x35b561]);for(const _0x4b2fb9 of this['getSuggestions']()){if(!_0x4b2fb9['isInContent'])continue;if(_0x9bd5bb&&_0x4b2fb9['type']!=_0x9bd5bb)continue;let _0x3420b7=!0x1;for(const _0x33434d of _0x4b2fb9['getRanges']()){for(const _0x4531d6 of _0x35b561){const _0x4f35be=_0x4531d6['start']['isEqual'](_0x33434d['end'])||_0x4531d6['end']['isEqual'](_0x33434d['start']);if(_0x4f35be||_0x4531d6['getIntersection'](_0x33434d)){const _0x16baf3=_0x4531d6['containsRange'](_0x33434d)&&Rt(this['_model']['schema'],_0x33434d['start'],_0x4531d6),_0x137275=_0x33434d['containsRange'](_0x4531d6)&&Rt(this['_model']['schema'],_0x4531d6['start'],_0x33434d);_0x19604d['push']({'suggestion':_0x4b2fb9,'meta':{'isOwn':_0xf06609==_0x4b2fb9['author'],'isNextTo':_0x4f35be,'isInsideObject':_0x16baf3,'containsRangeInObject':_0x137275}}),_0x3420b7=!0x0;break;}}if(_0x3420b7)break;}}return _0x19604d;}['_addSuggestionMarker'](_0x2d4b9a,_0x518e2c,_0x1ef164,_0x290c3a,_0x1f31b4){this['_model']['change'](_0x111cac=>{let _0xbe6c1d='suggestion:'+_0x2d4b9a+':'+_0x518e2c+':'+_0x1ef164;_0x1f31b4&&(_0xbe6c1d=_0xbe6c1d+':'+_0x1f31b4),_0x111cac['addMarker'](_0xbe6c1d,{'range':_0x290c3a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xc661e3){const _0x15768c=_0xc661e3['previous'],_0x500535=_0xc661e3['next'];_0xc661e3['previous']=null,_0xc661e3['next']=null,null!=_0x15768c&&_0x15768c['next']==_0xc661e3&&(_0x15768c['next']=_0x500535),null!=_0x500535&&_0x500535['previous']==_0xc661e3&&(_0x500535['previous']=_0x15768c),'ready'==this['_suggestionState']['get'](_0xc661e3)&&(this['_suggestionState']['set'](_0xc661e3,'removed'),this['fire']('suggestionUnloaded',_0xc661e3,_0x15768c,_0x500535));}['_setSuggestionData'](_0x262778){const _0x4c19a4=_0x262778['id'],_0x4e6578=this['addSuggestionData'](_0x262778);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3509b0=this['editor']['plugins']['get']('PendingActions'),_0x234f79=_0x4e6578['hasComments'],_0x5e8ab1=_0x4e6578['subType']?_0x4e6578['type']+':'+_0x4e6578['subType']:_0x4e6578['type'],_0x8b1d8c=this['editor']['locale'],_0x471f69=_0x3509b0['add'](o(_0x8b1d8c,'PENDING_ACTION_SUGGESTION')),_0x52c430={'id':_0x4c19a4,'type':_0x5e8ab1,'hasComments':_0x234f79,'data':_0x262778['data']||null,'originalSuggestionId':_0x262778['originalSuggestionId']||null,'attributes':_0x4e6578['attributes']};this['_adapter']['addSuggestion'](_0x52c430)['then'](_0x3baf55=>{_0x4e6578['_saved']=!0x0,_0x3509b0['remove'](_0x471f69),_0x3baf55&&_0x3baf55['createdAt']&&(this['_suggestions']['get'](_0x4c19a4)['createdAt']=_0x3baf55['createdAt']);})['catch'](_0x51cf7a=>{throw _0x35e9f3('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4e6578['discard']();}),_0x4e6578['stopListening'](),this['_suggestions']['delete'](_0x4e6578['id']),this['_suggestionState']['delete'](_0x4e6578),_0x51cf7a;});}return _0x4e6578;}['_isBlockAttribute'](_0x12c464){return this['_blockAttributeKeys']['has'](_0x12c464);}['_updateSuggestionData'](_0x5dd154,_0xd82be5){const _0x1dd7de=this['editor']['plugins']['get']('PendingActions'),_0x477558=this['getSuggestion'](_0x5dd154);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x477558['_saved']){const _0x36d1d3=_0x1dd7de['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5dd154,_0xd82be5)['then'](()=>{_0x1dd7de['remove'](_0x36d1d3);});}else _0x477558['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5dd154,_0xd82be5);});}}['_getSuggestionData'](_0x5cb7b8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xdb29b1('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5cb7b8);}['_handleNewSuggestionMarker'](_0x185ff5){const {id:_0x328314,type:_0x1d052f,subType:_0x105ef1,authorId:_0xb13b7a}=this['_splitMarkerName'](_0x185ff5),_0x38418b=this['_suggestions']['get'](_0x328314)||this['_createSuggestion'](_0x1d052f,_0x105ef1,_0x328314,_0xb13b7a,{});switch(this['_checkSuggestionCorrectness'](_0x38418b,_0x1d052f,_0x105ef1,_0xb13b7a),this['_suggestionState']['get'](_0x38418b)){case'notReady':this['_getSuggestionData'](_0x328314)['then'](_0x546839=>{let _0x5c6493=Promise['resolve']();_0x546839['hasComments']&&(_0x5c6493=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x328314})),_0x5c6493['then'](()=>{this['addSuggestionData'](_0x546839)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x38418b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x328314,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x38418b,'ready'),this['fire']('suggestionLoaded',_0x38418b);break;case'ready':this['fire']('suggestionChanged',_0x38418b);}return _0x38418b['addMarkerName'](_0x185ff5),_0x38418b;}['_refreshSuggestionsChain'](_0x28bfc0){const _0x5793aa=Array['from'](_0x28bfc0),_0x231d52=_0x5793aa['filter'](_0x47f672=>'attribute'==_0x47f672['type']);this['_refreshAttributeSuggestionsChain'](_0x231d52);const _0x2ffb1d=_0x5793aa['filter'](_0xc83152=>!_0xc83152['isMultiRange']&&'attribute'!=_0xc83152['type']),_0x5c1c4f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a4a5e=>!_0x4a4a5e['isMultiRange']&&'attribute'!=_0x4a4a5e['type']),_0x348820=_0x5c1c4f['filter'](_0x5f24ed=>!_0x28bfc0['has'](_0x5f24ed)),_0x4175bd=new Map(_0x5c1c4f['map'](_0x593d50=>[_0x593d50,this['_suggestionFactory']['getSuggestionCallback'](_0x593d50['type'],_0x593d50['subType'],'chain')])),_0x484600=new Map(_0x5c1c4f['map'](_0x33d614=>[_0x33d614,_0x33d614['getFirstRange']()])),_0x25f238=new Set(),_0x21cf4f=new Set();for(let _0x4b160e=0x0;_0x4b160e<_0x2ffb1d['length'];_0x4b160e++)_0x25d17f(_0x2ffb1d[_0x4b160e],_0x2ffb1d,_0x4b160e+0x1);for(let _0xd1ceb2=0x0;_0xd1ceb2<_0x2ffb1d['length'];_0xd1ceb2++)_0x25d17f(_0x2ffb1d[_0xd1ceb2],_0x348820,0x0);const _0x92c7b8=new Set();for(let _0x12aebe=0x0;_0x12aebe<_0x2ffb1d['length'];_0x12aebe++){const _0x430e86=_0x2ffb1d[_0x12aebe];!_0x21cf4f['has'](_0x430e86)&&_0x430e86['previous']&&(_0x92c7b8['add'](_0x430e86['previous']),_0x430e86['previous']['next']===_0x430e86&&(_0x430e86['previous']['next']=null),_0x430e86['previous']=null),!_0x25f238['has'](_0x430e86)&&_0x430e86['next']&&(_0x92c7b8['add'](_0x430e86['next']),_0x430e86['next']['previous']===_0x430e86&&(_0x430e86['next']['previous']=null),_0x430e86['next']=null);}function _0x25d17f(_0x5e389f,_0x1ba437,_0x575c5d){for(let _0x82e746=_0x575c5d;_0x82e746<_0x1ba437['length'];_0x82e746++){const _0x5cb5f5=_0x380f92(_0x5e389f,_0x1ba437[_0x82e746]);_0x5cb5f5&&(_0x5cb5f5[0x0]['next']=_0x5cb5f5[0x1],_0x5cb5f5[0x1]['previous']=_0x5cb5f5[0x0],_0x25f238['add'](_0x5cb5f5[0x0]),_0x21cf4f['add'](_0x5cb5f5[0x1]));}}function _0x380f92(_0x3c56e2,_0x3ed487){if(_0x3c56e2['author']['id']!==_0x3ed487['author']['id'])return null;const _0x29b694=_0x4175bd['get'](_0x3c56e2)(_0x3c56e2,_0x3ed487,_0x484600['get'](_0x3c56e2),_0x484600['get'](_0x3ed487));if(!_0x29b694)return null;return _0x4175bd['get'](_0x3ed487)(_0x3c56e2,_0x3ed487,_0x484600['get'](_0x3c56e2),_0x484600['get'](_0x3ed487))?_0x29b694[0x1]['commentThread']&&_0x29b694[0x1]['commentThread']['length']?null:_0x29b694:null;}_0x92c7b8['size']&&this['_refreshSuggestionsChain'](_0x92c7b8);}['_refreshAttributeSuggestionsChain'](_0x3b12da){if(0x0==_0x3b12da['length'])return;const _0x19571b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ea2ef=>'attribute'==_0x4ea2ef['type']&&_0x4ea2ef['_isDataLoaded']),_0x56db64=[],_0x358e0c=new Map();for(const _0x5751a1 of _0x19571b){const _0xf51e87=_0x13de43(_0x5751a1['attributes']);_0x358e0c['has'](_0xf51e87)||(_0x358e0c['set'](_0xf51e87,_0x56db64['length']),_0x56db64['push']([]));const _0x2864b6=_0x358e0c['get'](_0xf51e87);_0x56db64[_0x2864b6]['push'](_0x5751a1);}!(function(){_0x56db64['sort']((_0x147599,_0x1ea28e)=>{const _0x178427=_0x147599[0x0]['createdAt'],_0x48f564=_0x1ea28e[0x0]['createdAt'];return _0x178427==_0x48f564?_0x147599[0x0]['attributes']['groupId']<_0x1ea28e[0x0]['attributes']['groupId']?-0x1:0x1:_0x178427<_0x48f564?-0x1:0x1;});for(const _0x9edb49 of _0x56db64)_0x9edb49['sort']((_0x57fe2a,_0x2858bd)=>_0x57fe2a['id']<_0x2858bd['id']?-0x1:0x1);}());for(let _0xb7275a=0x0;_0xb7275a<_0x56db64['length'];_0xb7275a++){if(0x0==_0x56db64[_0xb7275a]['length'])continue;const _0x27aa78=[];for(let _0x272524=_0xb7275a+0x1;_0x272524<_0x56db64['length'];_0x272524++)0x0!=_0x56db64[_0x272524]['length']&&_0x1d8bf8(_0x56db64[_0xb7275a],_0x56db64[_0x272524])&&_0x27aa78['push'](_0x272524);for(const _0x4ec4dd of _0x27aa78)_0x56db64[_0xb7275a]=_0x56db64[_0xb7275a]['concat'](_0x56db64[_0x4ec4dd]),_0x56db64[_0x4ec4dd]=[];}for(const _0x54247b of _0x56db64)for(let _0x34fe88=0x0;_0x34fe88<_0x54247b['length'];_0x34fe88++)_0x54247b[_0x34fe88]['next']=_0x54247b[_0x34fe88+0x1]||null;for(const _0x276d97 of _0x56db64)for(let _0x2c1caf=0x0;_0x2c1caf<_0x276d97['length'];_0x2c1caf++)_0x276d97[_0x2c1caf]['previous']=_0x276d97[_0x2c1caf-0x1]||null;function _0x1d8bf8(_0x2f492c,_0x16a572){if(_0x2f492c[0x0]['attributes']['groupId']!==_0x16a572[0x0]['attributes']['groupId']&&_0x2f492c[0x0]['author']!==_0x16a572[0x0]['author'])return!0x1;if(!function(_0xb7f946,_0x50e681){if(!_0xb7f946['hasComments']&&!_0x50e681['hasComments'])return!0x0;if(_0xb7f946['hasComments']&&_0x50e681['hasComments'])return!0x1;if(_0xb7f946['hasComments']&&_0x50e681['createdAt']<_0xb7f946['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x50e681['hasComments']&&_0xb7f946['createdAt']<_0x50e681['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2f492c[0x0],_0x16a572[0x0]))return!0x1;const _0x127d5f=Bt(_0x2f492c[0x0]['attributes'],'groupId'),_0x1d6b5e=Bt(_0x16a572[0x0]['attributes'],'groupId');if(!_0x3b56f2(_0x127d5f,_0x1d6b5e))return!0x1;return!!_0x2f492c['every'](_0xabf61b=>_0x16a572['some'](_0x317d2e=>_0xabf61b['getFirstRange']()['isEqual'](_0x317d2e['getFirstRange']())))&&_0x16a572['every'](_0x10043a=>_0x2f492c['some'](_0x2b2ed2=>_0x10043a['getFirstRange']()['isEqual'](_0x2b2ed2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xea1810){const _0x44cb74=Array['from'](_0xea1810),_0x47c920=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2ff602=_0x47c920['filter'](_0x4daa5c=>!_0xea1810['has'](_0x4daa5c)),_0x25f80d=new Map(_0x44cb74['map'](_0x2d6a2c=>[_0x2d6a2c,this['_suggestionFactory']['getSuggestionCallback'](_0x2d6a2c['type'],_0x2d6a2c['subType'],'join')])),_0x3781b9=new Map(_0x47c920['map'](_0x5b977a=>[_0x5b977a,_0x5b977a['getRanges']()]));for(let _0x346d5f=0x0;_0x346d5f<_0x44cb74['length'];_0x346d5f++){if(_0x3ec1e9(this,_0x44cb74[_0x346d5f],_0x44cb74,_0x346d5f+0x1))return!0x0;}for(let _0x150062=0x0;_0x150062<_0x44cb74['length'];_0x150062++){if(_0x3ec1e9(this,_0x44cb74[_0x150062],_0x2ff602,0x0))return!0x0;}return!0x1;function _0x3ec1e9(_0x1e3c61,_0x4777a4,_0x4d8951,_0x391e6c){for(let _0x5acb41=_0x391e6c;_0x5acb41<_0x4d8951['length'];_0x5acb41++){const _0x49f354=_0x4d8951[_0x5acb41];if(_0x49f354['type']!==_0x4777a4['type']||_0x49f354['author']['id']!==_0x4777a4['author']['id']||_0x49f354['subType']!==_0x4777a4['subType'])continue;if(!Pt(_0x4777a4,_0x49f354,['groupId']))continue;if('attribute'==_0x4777a4['type']&&_0x4777a4['data']['oldValue']!=_0x49f354['data']['oldValue'])continue;if('attribute'==_0x4777a4['type']&&_0x1e3c61['_isBlockAttribute'](_0x4777a4['data']['key']))continue;if('formatBlock'==_0x4777a4['type']){const _0x26ed50=_0x1e3c61['editor']['model'],_0x48a77d=_0x4777a4['getContainedElement']();if(_0x48a77d&&(_0x26ed50['schema']['isObject'](_0x48a77d)||_0x26ed50['schema']['isLimit'](_0x48a77d)))continue;}const _0x271066=_0x25f80d['get'](_0x4777a4),_0xf102bc=_0x3781b9['get'](_0x4777a4),_0x3bbd22=_0x3781b9['get'](_0x49f354),_0x5ac797=_0x4777a4['commentThread']&&_0x4777a4['commentThread']['length'],_0x25c9ee=_0x49f354['commentThread']&&_0x49f354['commentThread']['length'];if(!_0x5ac797&&_0x271066(_0x3bbd22,_0xf102bc))return _0x1e3c61['_joinSuggestions'](_0x49f354,_0x4777a4),_0x3781b9['delete'](_0x4777a4),!0x0;if(!_0x25c9ee&&_0x271066(_0xf102bc,_0x3bbd22))return _0x1e3c61['_joinSuggestions'](_0x4777a4,_0x49f354),_0x3781b9['delete'](_0x49f354),!0x0;}return!0x1;}}['_joinSuggestions'](_0x589fb7,_0x1c7484){if(_0x589fb7['isMultiRange']){for(const _0x178498 of _0x1c7484['getRanges']())_0x589fb7['addRange'](_0x178498);}else{const _0x54081a=_0x1c7484['getFirstRange']()['end'];this['_setSuggestionRange'](_0x589fb7,this['_model']['createRange'](_0x589fb7['getFirstRange']()['start'],_0x54081a));}_0x1c7484['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5f5376,_0x5350ed){const _0x305d31=_0x5f5376['startsWith']('format')||_0x5f5376['startsWith']('attribute')?'FORMATTING':_0x5f5376['toUpperCase']();return o(this['editor']['locale'],_0x5350ed+'_'+_0x305d31+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0xfc30b6=this['editor'];if(!_0xfc30b6['ui'])return;const {ariaLiveAnnouncer:_0x24861c}=_0xfc30b6['ui'];_0x17db54(this['_model'],({left:_0x4c885e,entered:_0x2bb647})=>{for(const _0x153ba0 of _0x4c885e){const {group:_0xceb4b4,type:_0x3d7117}=this['_splitMarkerName'](_0x153ba0['name']);if('suggestion'===_0xceb4b4){_0x24861c['announce'](this['_getMarkerAnnouncementText'](_0x3d7117,'LEAVE'));break;}}for(const _0x7f304b of _0x2bb647){const {group:_0x3f292d,type:_0x2c0a52}=this['_splitMarkerName'](_0x7f304b['name']);if('suggestion'===_0x3f292d){_0x24861c['announce'](this['_getMarkerAnnouncementText'](_0x2c0a52,'ENTER'));break;}}});}['_processAttributeChanges'](_0x22693e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2428bf=this['editor'],_0x4befaf=_0x2428bf['model']['document']['differ']['getChanges']();if(0x0==_0x4befaf['length'])return!0x1;const _0x135c0d=[],_0x3dd733=_0x4befaf['filter'](_0x3aff7b=>'attribute'==_0x3aff7b['type']),_0x59cf4a=_0x4befaf['filter'](_0x421a1a=>'insert'==_0x421a1a['type']&&'$text'!=_0x421a1a['name']),_0x3a3102=_0x4befaf['filter'](_0x342014=>'remove'==_0x342014['type']&&'$text'!=_0x342014['name']);for(const _0x22e437 of _0x3dd733)_0x135c0d['push']({'key':_0x22e437['attributeKey'],'newValue':_0x22e437['attributeNewValue'],'oldValue':_0x22e437['attributeOldValue'],'range':Ot(_0x22e437['range'],_0x2428bf['model'])});for(const _0xfb46c4 of _0x59cf4a){const _0x17094f=_0x3a3102['find'](_0x14680f=>_0x14680f['position']['isEqual'](_0xfb46c4['position']));_0x17094f&&_0x135c0d['push']({'key':m,'newValue':_0xfb46c4['name'],'oldValue':_0x17094f['name'],'range':_0x2428bf['model']['createRangeOn'](_0xfb46c4['position']['nodeAfter'])});}return 0x0!=_0x135c0d['length']&&this['_reduceExistingSuggestions'](_0x22693e,_0x135c0d);}['_processAttributeSuggestions'](_0x1c86a0){let _0x4178f7=!0x1;const _0x69db06=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b1441=>_0x5b1441['data']['newRange']&&_0x5b1441['name']['startsWith']('suggestion:attribute:'));for(const _0x4e13a6 of _0x69db06){const {subType:_0x85559c,id:_0x1ca5a2}=this['_splitMarkerName'](_0x4e13a6['name']),_0x4e0050=_0x85559c['split']('|')[0x0];for(const _0x27c718 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x27c718['id']!=_0x1ca5a2&&'attribute'==_0x27c718['type']&&_0x27c718['data']&&_0x27c718['data']['key']==_0x4e0050&&_0x27c718['getFirstRange']()['isIntersecting'](_0x4e13a6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x27c718,_0x4e13a6['data']['newRange'],_0x1c86a0),_0x4178f7=!0x0);}return _0x4178f7;}['_recordAttributeChanges'](_0x5b4f06){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x5b4f06();}['_isRegisteredAttribute'](_0x19d6c7){const _0x41d3a8=this['_isBlockAttribute'](_0x19d6c7),_0x1edc3f=this['_inlineAttributeKeys']['has'](_0x19d6c7);return _0x41d3a8||_0x1edc3f;}['_reduceExistingSuggestions'](_0x174654,_0x3e2f5e){if(0x0==_0x3e2f5e['length'])return!0x1;let _0x2515c0=!0x1;for(const _0x20d9b5 of _0x3e2f5e){const _0x57155f=this['_findSuggestions'](_0x20d9b5['range'],'attribute')['filter'](_0x35b530=>!_0x35b530['meta']['isNextTo'])['map'](_0x46d6ad=>_0x46d6ad['suggestion']),_0x35b479=_0x13de43({'newValue':_0x20d9b5['newValue']});_0x57155f['filter'](_0x35d451=>{const [_0x5d0bb0,_0x487596]=_0x35d451['subType']['split']('|');return _0x5d0bb0==_0x20d9b5['key']&&_0x487596!=_0x35b479;})['forEach'](_0xe157f6=>{this['_reduceSuggestionAttributeRange'](_0xe157f6,_0x20d9b5['range'],_0x174654),_0x2515c0=!0x0;});}return _0x2515c0;}['_reduceSuggestionAttributeRange'](_0x1afe35,_0x3bd9e4,_0x26e8de){const _0x256938=_0x1afe35['getFirstRange']()['getDifference'](_0x3bd9e4);0x0!==_0x256938['length']?0x1!==_0x256938['length']?this['_breakSuggestionMarker'](_0x1afe35,_0x3bd9e4['start'],_0x3bd9e4['end']):this['_setSuggestionRange'](_0x1afe35,_0x256938[0x0]):_0x26e8de['removeMarker'](_0x1afe35['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2563b7){this['_editor']=_0x2563b7,this['_model']=_0x2563b7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1ebe78,_0x2bd5cc,_0x5b34c4,_0x3dca27,_0x199e64,_0x5064c8){return new u(this['_model'],{'type':_0x1ebe78,'subType':_0x2bd5cc,'id':_0x5b34c4,'author':_0x3dca27,'creator':_0x3dca27,'attributes':_0x199e64,'onAttributesChange':_0x5064c8,'onAccept':(..._0x2e8d8b)=>this['getSuggestionCallback'](_0x1ebe78,_0x2bd5cc,'accept')(..._0x2e8d8b),'onDiscard':(..._0x438ed1)=>this['getSuggestionCallback'](_0x1ebe78,_0x2bd5cc,'discard')(..._0x438ed1)});}['registerCustomCallback'](_0x1fc485,_0x5d540b,_0x3c8213,_0x3d8c48){const _0x14043c=_0x1fc485+':'+_0x5d540b+':'+_0x3c8213;this['_customCallbacks']['set'](_0x14043c,_0x3d8c48);}['getSuggestionCallback'](_0x3a0da6,_0x574901,_0x5d5460){const _0xba4e36=_0x3a0da6+':'+_0x574901+':'+_0x5d5460;return this['_customCallbacks']['get'](_0xba4e36)||this['_defaultCallbacks']['get'](_0x3a0da6+':'+_0x5d5460);}['_registerDefaultCallbacks'](){const _0x3fd26=()=>!0x1,_0x3fac3a=_0x108a2d=>{_0x108a2d['sort']((_0x379c4e,_0x388225)=>_0x379c4e['start']['isBefore'](_0x388225['start'])?0x1:-0x1),this['_model']['change'](_0x1376d7=>{for(const _0x2b9c4a of _0x108a2d){let _0x1fa698;_0x1fa698=_0x2b9c4a['end']['isAtEnd']&&_0x2b9c4a['end']['parent']==_0x2b9c4a['start']['nodeAfter']?_0x1376d7['createSelection'](_0x2b9c4a['start']['nodeAfter'],'on'):_0x1376d7['createSelection'](_0x2b9c4a),this['_model']['deleteContent'](_0x1fa698,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5bf1e9=(_0x8afc9,_0x321d37)=>{_0x321d37&&this['_model']['change'](_0x33a7d6=>{const {commandName:_0x381336,commandParams:_0xfb91ef=[]}=_0x321d37,_0x21091c=_0x8afc9['map'](_0x3eadef=>(Tt(_0x3eadef)&&(_0x3eadef=this['_model']['createRange'](_0x3eadef['end'])),_0x3eadef))['filter'](_0x70b25=>'$graveyard'!==_0x70b25['root']['rootName']);if(_0x21091c['length']<0x1)return;const _0x550cad=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3d7077=>_0x3d61db['fromRange'](_0x3d7077));_0x33a7d6['setSelection'](_0x21091c);for(const _0x5c83a3 of this['_editor']['commands']['commands']())_0x5c83a3['refresh']();_0xfb91ef['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x381336,..._0xfb91ef);const _0xd6768e=_0x550cad['filter'](_0x1cf868=>'$graveyard'!=_0x1cf868['root']['rootName']);_0xd6768e['length']>0x0&&_0x33a7d6['setSelection'](_0xd6768e);for(const _0x19c5a2 of _0x550cad)_0x19c5a2['detach']();});},_0x53079c=(_0x37d9bb,_0x5c37d6)=>0x1==_0x37d9bb['length']&&0x1==_0x5c37d6['length']&&_0x37d9bb[0x0]['end']['isEqual'](_0x5c37d6[0x0]['start']),_0x22e158=(_0x8a112f,_0x480270,_0x2d14ab,_0x244ea0)=>Ft(_0x8a112f,_0x480270,_0x2d14ab,_0x244ea0,this['_model'])?[_0x8a112f,_0x480270]:Ft(_0x480270,_0x8a112f,_0x244ea0,_0x2d14ab,this['_model'])?[_0x480270,_0x8a112f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3fd26),this['_defaultCallbacks']['set']('insertion:discard',_0x3fac3a),this['_defaultCallbacks']['set']('insertion:join',_0x53079c),this['_defaultCallbacks']['set']('insertion:chain',_0x22e158),this['_defaultCallbacks']['set']('deletion:accept',_0x3fac3a),this['_defaultCallbacks']['set']('deletion:discard',_0x3fd26),this['_defaultCallbacks']['set']('deletion:join',_0x53079c),this['_defaultCallbacks']['set']('deletion:chain',_0x22e158),this['_defaultCallbacks']['set']('formatInline:accept',_0x5bf1e9),this['_defaultCallbacks']['set']('formatInline:discard',_0x3fd26),this['_defaultCallbacks']['set']('formatInline:join',_0x53079c),this['_defaultCallbacks']['set']('formatInline:chain',_0x3fd26),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5bf1e9),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3fd26),this['_defaultCallbacks']['set']('formatBlock:join',_0x53079c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3fd26),this['_defaultCallbacks']['set']('attribute:accept',_0x3fd26),this['_defaultCallbacks']['set']('attribute:discard',(_0x4b928d,_0x1329d9)=>{if(!_0x1329d9)return;const _0x1bfd3e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x426ce8=>{if(_0x1329d9['key']==m)for(const _0x10f882 of _0x4b928d){const _0x5211fb=_0x10f882['start']['nodeAfter'],_0x503abd=_0x1329d9['oldValue'];_0x426ce8['rename'](_0x5211fb,_0x503abd);}else{if(_0x1bfd3e['_isBlockAttribute'](_0x1329d9['key'])){for(const _0x420a42 of _0x4b928d)void 0x0!==_0x1329d9['oldValue']?_0x426ce8['setAttribute'](_0x1329d9['key'],_0x1329d9['oldValue'],_0x420a42['start']['nodeAfter']):_0x426ce8['removeAttribute'](_0x1329d9['key'],_0x420a42['start']['nodeAfter']);}else{for(const _0x5bb6d8 of _0x4b928d)_0x1329d9['oldValue']?_0x426ce8['setAttribute'](_0x1329d9['key'],_0x1329d9['oldValue'],_0x5bb6d8):_0x426ce8['removeAttribute'](_0x1329d9['key'],_0x5bb6d8);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x53079c);}}function Rt(_0xe074e5,_0x38eac5,_0x32e036){for(const _0x4b6437 of _0x38eac5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4b6437['root']==_0x4b6437)return!0x1;if(!_0x32e036['containsItem'](_0x4b6437))return!0x1;if(_0xe074e5['isObject'](_0x4b6437)||_0xe074e5['isLimit'](_0x4b6437))return!0x0;}return!0x1;}function Tt(_0x1bd442){return _0x1bd442['end']['parent']==_0x1bd442['start']['nodeAfter']&&_0x1bd442['end']['isAtStart'];}function Et(_0x5432ba,_0x21ec83,_0x50eb08,_0x25e5fd){const _0x121e66=_0x18ed67=>!_0x18ed67['item']['is']('$textProxy')&&!_0x25e5fd['isObject'](_0x18ed67['item']),_0x1c7703=_0x5432ba['start']['getLastMatchingPosition'](_0x121e66),_0x184678=_0x5432ba['end']['getLastMatchingPosition'](_0x121e66,{'direction':'backward'});return(!_0x5432ba['start']['isEqual'](_0x1c7703)||!_0x5432ba['end']['isEqual'](_0x184678))&&(_0x1c7703['isBefore'](_0x184678)?_0x50eb08['updateMarker'](_0x21ec83,{'range':_0x50eb08['createRange'](_0x1c7703,_0x184678)}):_0x50eb08['removeMarker'](_0x21ec83),!0x0);}function Vt(_0x3a37dc){return _0x13de43(_0x3a37dc);}function Ut(_0xada937){const _0x36fb42=_0xada937['start']['nodeAfter'];return _0x36fb42&&_0x36fb42['is']('element');}function Ot(_0x2c74f3,_0x3729eb){return null==_0x2c74f3['end']['nodeBefore']&&_0x2c74f3['end']['parent']==_0x2c74f3['start']['nodeAfter']?Gt(_0x2c74f3['start']['nodeAfter'],_0x3729eb):_0x2c74f3;}function Gt(_0x177e81,_0x331a7b){const _0x36104b=_0x331a7b['schema']['isObject'](_0x177e81)||_0x331a7b['schema']['isSelectable'](_0x177e81);return _0x331a7b['createRange'](_0x331a7b['createPositionAt'](_0x177e81,'before'),_0x36104b?_0x331a7b['createPositionAfter'](_0x177e81):_0x331a7b['createPositionAt'](_0x177e81,'end'));}function Ft(_0x5396e3,_0x9aa24,_0x290b7f,_0x2a9981,_0x4dd310){if(!Pt(_0x5396e3,_0x9aa24))return!0x1;if(_0x290b7f['end']['isEqual'](_0x2a9981['start']))return!0x0;if(_0x5396e3['type']!=_0x9aa24['type'])return!0x1;if(!_0x290b7f['end']['isTouching'](_0x2a9981['start']))return!0x1;const _0x53da42=_0x4dd310['createRange'](_0x290b7f['end'],_0x2a9981['start'])['getWalker']();for(const _0x348bb8 of _0x53da42)if(['elementStart','elementEnd']['includes'](_0x348bb8['type'])&&_0x4dd310['schema']['isLimit'](_0x348bb8['item']))return!0x1;return!0x0;}function Pt(_0x2c2c23,_0x35736a,_0x377ad2=[]){return!(!_0x2c2c23['_isDataLoaded']||!_0x35736a['_isDataLoaded'])&&_0x3b56f2(Bt(_0x2c2c23['attributes'],_0x377ad2),Bt(_0x35736a['attributes'],_0x377ad2));}function Lt(_0x4e08db,_0x3dbdd1){const _0x1975d4=Ht(_0x4e08db['attributes']),_0x134c6f=Ht(_0x3dbdd1);if(!_0x4e08db['_isDataLoaded'])return!0x1;for(const _0x1bfb4a of Object['keys'](_0x134c6f))if(!_0x3b56f2(_0x1975d4[_0x1bfb4a],_0x134c6f[_0x1bfb4a]))return!0x1;return!0x0;}function Ht(_0x1d07ff){const _0x4a73c7=Object['assign']({},_0x1d07ff);return delete _0x4a73c7['skipNestingCheck'],delete _0x4a73c7['tablePasteChainId'],_0x4a73c7;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x51672a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5e366c,_0x51ce46,_0x25d52c,_0x498811){super(),this['model']=_0x51ce46,this['view']=_0x25d52c,this['commentThreadController']=_0x498811,this['_editor']=_0x5e366c,this['_acceptCommand']=_0x5e366c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5e366c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x31a747,_0x4cc6fb)=>_0x31a747||_0x4cc6fb),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5734d0=>_0x5734d0&&this['_editor']['model']['canEditAt'](_0x51ce46['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x330337=>_0x330337&&this['_editor']['model']['canEditAt'](_0x51ce46['getRanges']())),this['_pendingAction']=null,_0x25d52c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x25d52c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x25d52c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x25d52c,'change:isDirty',()=>{_0x25d52c['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 _0x18b7de=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x18b7de);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x188c1d{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x591c9e,_0x16daa7,_0x28439b,_0x4238eb){super(_0x591c9e),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x16daa7['authoredAt']),this['bind']('authoredAt')['to'](_0x16daa7),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x16daa7,this['_localUser']=_0x28439b,this['_config']=_0x4238eb,_0x4238eb['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:_0x146366}=this['_config'];this['commentsListView']=new _0x146366(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',_0x75d0be=>_0x75d0be+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x36ce6b,_0x5bdd78)=>_0x36ce6b||!!_0x5bdd78);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5b6ebe}=this['_config'],_0x4b9894=new _0x5b6ebe(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x45262f=_0x4b9894['commentInputView'];return _0x4b9894['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x45262f,'value',(_0x1887ca,_0x1fef69,_0x45c64f)=>!!_0x45c64f||_0x1887ca&&!_0x1fef69),_0x45262f['on']('submit',(_0x2bd70c,_0x293ec8)=>{this['fire']('addComment',_0x293ec8),_0x45262f['editor']['setData']('');}),_0x45262f['on']('cancel',()=>this['focus']()),_0x45262f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4b9894;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x2a2cb2,_0x2b9187,_0x4ca728,_0x5c3a38){super(_0x2a2cb2,_0x2b9187,_0x4ca728,_0x5c3a38),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x346198=>_0x346198&&_0x346198[0x0]?_0x346198[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x462c43,_0x2ed93b)=>{let _0x1e366a='';for(const _0xf2d83d of _0x462c43)_0x1e366a+='<p>'+ds(_0xf2d83d['content'],_0xf2d83d['color'])+'</p>';return _0x2ed93b?_0x1e366a:_0x51d49d(_0x1e366a,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x2a2cb2,'Accept\x20suggestion'),_0xd87cb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x2a2cb2,'Discard\x20suggestion'),_0xd87cb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3c05be(_0x2a2cb2,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x74fdf5=this['bindTemplate'],_0x38fbac=[{'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':_0x74fdf5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x74fdf5['to']('authoredAt',_0x542e9b=>this['_config']['formatDateTime'](_0x542e9b))}]}]},{'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']&&_0x38fbac['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x59f88c={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x74fdf5['if']('isActive','ck-suggestion-wrapper--active'),_0x74fdf5['to']('type',_0x45ee4a=>'ck-suggestion-'+_0x45ee4a),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':_0x38fbac}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x59f88c['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)),_0x59f88c;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x4105d0,_0x2f9dd8,_0x5c7b31)=>{this['_descriptionElement']['innerHTML']=_0x5c7b31;});}['_createButton'](_0x4bf387,_0x21f897,_0xe07ea5,_0x38fe32,_0x3a351a){const _0x18feed=new _0x322896(this['locale']);return _0x18feed['set']({'label':_0x4bf387,'icon':_0x21f897,'tooltip':!0x0,'tooltipPosition':_0x3a351a}),_0x18feed['extendTemplate']({'attributes':{'class':_0xe07ea5}}),_0x18feed['on']('execute',()=>{this['fire'](_0x38fe32,this['_model']['id']);}),_0x18feed;}['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(_0x398ea5,_0x5d450f){let _0x2c9ea8='';return _0x2c9ea8+=_0x398ea5['split']('*')['map']((_0x4af669,_0x433d9e)=>_0x433d9e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x4af669)+'</span>':us(_0x4af669))['join'](''),_0x5d450f&&(_0x2c9ea8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5d450f['value']+'\x22\x20title=\x22'+_0x5d450f['title']+'\x22></span>'),_0x2c9ea8;}function us(_0x3e58a5){const _0x1355e1=document['createElement']('span');return _0x1355e1['innerText']=_0x3e58a5,_0x1355e1['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0xe55e59{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x62dc96,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x93500f){super(_0x93500f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x142405=this['editor']['config'];_0x142405['define']('trackChanges.SuggestionThreadView',ne),_0x142405['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x142405['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5769e6,_0x27399f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x99bed1,_0x4bab58]of this['_handleControllerBuffer']){const _0x3f946f=this['_suggestionToController']['has'](_0x99bed1);_0x3f946f||_0x4bab58?_0x3f946f&&_0x4bab58&&this['_destroyController'](_0x99bed1):this['_initializeController'](_0x99bed1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5769e6,_0x27399f);}['init'](){const _0x28bdb5=this['editor'],_0x5e1120=_0x28bdb5['plugins']['get']('TrackChangesEditing'),_0x1e422b=_0x28bdb5['plugins']['get']('Annotations'),_0x553335=_0x28bdb5['plugins']['get']('EditorAnnotations'),_0x1ce916=_0x28bdb5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x553335['addSourceCollector'](()=>{const _0x2fc2c5=[];for(const [_0xddadb4,_0xb201c2]of Array['from'](this['_suggestionToController'])){const _0x40098d=_0xddadb4['getAllAdjacentSuggestions'](),_0x1a9b6e=[];for(const _0x397869 of _0x40098d){if(!_0x397869['isInContent'])continue;if(_0x397869['isMultiRange']){_0x1a9b6e['push'](..._0x397869['getRanges']());continue;}const _0x4198d2=_0x397869['getFirstRange']();if(_0x1a9b6e['length']>0x0){const _0x4c9b07=_0x1a9b6e[0x0]['getJoined'](_0x4198d2);if(_0x4c9b07){_0x1a9b6e[0x0]=_0x4c9b07;continue;}}_0x1a9b6e['push'](_0x4198d2);}_0x2fc2c5['push']([_0xb201c2['view'],_0x1a9b6e]);}return _0x2fc2c5;}),this['listenTo'](_0x5e1120,'suggestionLoaded',(_0x195ba7,_0x2987f2)=>{this['listenTo'](_0x2987f2,'change:previous',(_0x37c81f,_0x2269c5,_0x35e3ca,_0x505d83)=>{_0x2987f2['isInContent']&&(null==_0x35e3ca?(this['_updateController'](_0x505d83['head']),this['_handleSuggestionControllerDelayed'](_0x2987f2,!0x1)):(this['_updateController'](_0x35e3ca['head']),null==_0x505d83&&this['_handleSuggestionControllerDelayed'](_0x2987f2,!0x0)));}),null!==_0x2987f2['previous']?this['_updateController'](_0x2987f2['head']):this['_handleSuggestionControllerDelayed'](_0x2987f2,!0x1);}),this['listenTo'](_0x5e1120,'suggestionUnloaded',(_0x13d005,_0x117faf,_0x28605c)=>{this['stopListening'](_0x117faf,'change:previous'),this['_handleControllerBuffer']['delete'](_0x117faf),this['_suggestionToController']['has'](_0x117faf)&&this['_destroyController'](_0x117faf),_0x28605c&&this['_updateController'](_0x28605c['head']);}),this['listenTo'](_0x5e1120,'suggestionChanged',(_0x518271,_0x4a810b)=>{this['_updateController'](_0x4a810b);}),this['listenTo'](_0x1e422b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1ce916,'addComment',(_0x643c5e,{threadId:_0x5b06e7,isFromAdapter:_0x118309})=>{if(_0x118309||!_0x5e1120['hasSuggestion'](_0x5b06e7))return;const _0x464e7c=_0x5e1120['getSuggestion'](_0x5b06e7);this['_suggestionToController']['get'](_0x464e7c)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5c0501=this['editor']['plugins']['get']('Annotations'),_0x23e672=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb5048a=Array['from'](_0x5c0501['activeAnnotations'],_0x11fce9=>_0x11fce9['innerView'])['filter'](_0x5a7e08=>this['_viewToController']['has'](_0x5a7e08)),_0x39f2bf=[];for(const _0x3bb6cd of _0xb5048a){const _0x111d42=this['_viewToController']['get'](_0x3bb6cd)['model']['getAllAdjacentSuggestions']();_0x39f2bf['push'](..._0x111d42['reduce']((_0x34dfc6,_0x56c591)=>[..._0x34dfc6,..._0x56c591['getMarkerNames']()],[]));}_0x23e672['activeMarkers']=_0x39f2bf;}['_addUIComponentsToFactory'](){const _0x280b08=this['editor'],_0xac5568=_0x280b08['locale'],_0xf659e9=o(_0xac5568,'Track\x20changes'),_0x4f26fc=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0xf659e9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xac5568,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xac5568,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xac5568,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xac5568,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x57cbc9 of _0x4f26fc)if(ae(_0x57cbc9)){const _0x31abdc=_0x280b08['commands']['get'](_0x57cbc9['model']['commandName']);_0x57cbc9['model']['bind']('isOn','isEnabled')['to'](_0x31abdc,'value','isEnabled');}_0x280b08['ui']['componentFactory']['add']('trackChanges',_0x596994=>this['_createToolbarButton'](_0x596994,_0x4f26fc,_0xf659e9)),_0x280b08['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5754b6=>this['_createMenuBarMenu'](_0x5754b6,_0x4f26fc,_0xf659e9));}['_createToolbarButton'](_0x369684,_0x55923e,_0x348bff){const _0x25fe01=zt(_0x369684,Zt),_0x20c31e=this['editor']['commands']['get']('trackChanges');_0x25fe01['buttonView']['set']({'tooltip':_0x348bff,'label':_0x348bff,'icon':ie}),_0x25fe01['buttonView']['bind']('isOn')['to'](_0x20c31e,'value'),_0x25fe01['buttonView']['on']('execute',()=>{_0x20c31e['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x25fe01,_0x55923e,{'role':'menu'});const _0xefce0=[];for(const _0x3c5954 of _0x55923e)ae(_0x3c5954)&&_0xefce0['push'](this['editor']['commands']['get'](_0x3c5954['model']['commandName']));const _0x540601=_0x25fe01['buttonView'];return _0x540601['actionView']['unbind']('isEnabled'),_0x540601['arrowView']['unbind']('isEnabled'),_0x540601['actionView']['bind']('isEnabled')['to'](_0x20c31e,'isEnabled'),_0x540601['arrowView']['bind']('isEnabled')['toMany'](_0xefce0,'isEnabled',(..._0xf0f489)=>_0xf0f489['some'](_0x5be4f9=>_0x5be4f9)),_0x25fe01['on']('execute',_0x5b16be=>{this['editor']['execute'](_0x5b16be['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x25fe01;}['_createMenuBarMenu'](_0xac5983,_0x3d129a,_0x46643f){const _0x182a0c=new Kt(_0xac5983),_0x172ad2=this['editor']['commands']['get']('trackChanges');_0x182a0c['buttonView']['set']({'label':_0x46643f,'icon':ie});const _0x282733=new Qt(_0xac5983);for(const _0x45dc8e of _0x3d129a){if('separator'==_0x45dc8e['type']){_0x282733['items']['add'](new Jt(_0xac5983));continue;}const _0x4601a3=new Xt(_0xac5983,_0x182a0c),_0x1f9dff=new Yt(_0xac5983),_0x1456a1=_0x45dc8e['model'];_0x1f9dff['bind'](...Object['keys'](_0x1456a1))['to'](_0x1456a1),_0x1f9dff['delegate']('execute')['to'](_0x182a0c),_0x1f9dff['on']('execute',()=>{this['editor']['execute'](_0x1456a1['commandName']),this['editor']['editing']['view']['focus']();}),_0x4601a3['children']['add'](_0x1f9dff),_0x282733['items']['add'](_0x4601a3);}return _0x182a0c['bind']('isEnabled')['to'](_0x172ad2,'isEnabled'),_0x182a0c['panelView']['children']['add'](_0x282733),_0x182a0c;}['_initializeController'](_0x1ba1b1){const _0xd7c0a5=this['editor'],_0x3dc88f=_0xd7c0a5['config'],_0x26b6e6=_0xd7c0a5['plugins']['get']('Annotations'),_0x38db09=_0xd7c0a5['plugins']['get']('CommentsRepository'),_0x4df83c=_0xd7c0a5['plugins']['get']('EditorAnnotations'),_0x1a9f41=_0xd7c0a5['plugins']['get'](_0x62dc96)['me'],_0x12dd8b=_0x3dc88f['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x585852,CommentThreadInputView:_0xfef21b}=_0xd7c0a5['plugins']['get']('CommentsUI');let _0x216d2c,_0x1913ed;this['_annotationViews']['has'](_0x1ba1b1['id'])?(_0x1913ed=this['_annotationViews']['get'](_0x1ba1b1['id']),_0x216d2c=_0x1913ed['mainView']):(_0x216d2c=new _0x12dd8b(_0xd7c0a5['locale'],_0x1ba1b1,_0x1a9f41,{'disableComments':this['_disableComments'],'editorConfig':_0x3dc88f['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3dc88f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3dc88f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3dc88f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x21eb2d(_0x3dc88f['get']('locale')),'CommentView':_0x3dc88f['get']('comments')['CommentView'],'CommentsListView':_0x585852,'CommentThreadInputView':_0xfef21b}),_0x216d2c['acceptButton']['on']('execute',()=>{_0xd7c0a5['editing']['view']['focus']();}),_0x216d2c['discardButton']['on']('execute',()=>{_0xd7c0a5['editing']['view']['focus']();}),_0x1913ed=_0x26b6e6['createAnnotationView'](this['editor']['locale'],_0x216d2c),_0x1913ed['bind']('isDirty')['to'](_0x216d2c,'isDirty'),_0x1913ed['bind']('length')['to'](_0x216d2c),_0x1913ed['bind']('type')['to'](_0x216d2c,'type',_0x442449=>'suggestion-'+_0x442449),this['_annotationViews']['set'](_0x1ba1b1['id'],_0x1913ed));const _0x1176da=_0x38db09['createCommentThreadController'](_0x1ba1b1['commentThread'],_0x216d2c),_0x4ff29f=new oe(_0xd7c0a5,_0x1ba1b1,_0x216d2c,_0x1176da),_0x71e13=_0x1ba1b1['getAllAdjacentSuggestions']()['filter'](_0x129dc8=>_0x129dc8['isInContent']);_0x216d2c['descriptionParts']=_0xd7c0a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x71e13),this['_suggestionToController']['set'](_0x1ba1b1,_0x4ff29f),this['_viewToController']['set'](_0x216d2c,_0x4ff29f);const _0xb5a733=_0x26b6e6['createAnnotation']({'view':_0x1913ed,'target':()=>{const _0x2f753f=[],_0x518a37=_0x1ba1b1['getAllAdjacentSuggestions']()['filter'](_0x2c568e=>_0x2c568e['isInContent']);for(const _0x367d0a of _0x518a37)_0x2f753f['push'](..._0x367d0a['getMarkers']());return _0x5e49a0(_0xd7c0a5['editing'],_0x2f753f);},'type':()=>'suggestion-'+_0x4ff29f['view']['type']});_0x38db09['_bindAnnotationToEditors'](_0x216d2c,_0xb5a733),_0x26b6e6['add'](_0xb5a733),_0x4df83c['registerAnnotation'](_0xb5a733);}['_destroyController'](_0x54120c){const _0x32f6c5=this['editor']['plugins']['get']('CommentsRepository'),_0x343c5c=this['editor']['plugins']['get']('Annotations'),_0x18a8b7=this['_suggestionToController']['get'](_0x54120c),_0x434aa4=_0x18a8b7['view'],_0x348aa4=_0x343c5c['getByInnerView'](_0x434aa4);_0x32f6c5['_unbindEditors'](_0x434aa4),_0x348aa4&&_0x343c5c['remove'](_0x348aa4),this['_suggestionToController']['delete'](_0x54120c),this['_viewToController']['delete'](_0x434aa4),_0x18a8b7['destroy']();}['_updateController'](_0xd02619){if(!_0xd02619['isInContent']||!this['_suggestionToController']['has'](_0xd02619))return;const _0x5ac052=this['editor']['plugins']['get']('TrackChangesEditing'),_0x469338=this['_suggestionToController']['get'](_0xd02619),_0x3053d1=_0xd02619['getAllAdjacentSuggestions']();_0x469338['view']['descriptionParts']=_0x5ac052['descriptionFactory']['getDescriptions'](_0x3053d1);}['destroy'](){for(const _0x20cbaf of this['_suggestionToController']['keys']())this['_destroyController'](_0x20cbaf);for(const _0x58d87c of this['_annotationViews']['values']())_0x58d87c['mainView']['destroy']();super['destroy']();}}function ae(_0x451c86){return'model'in _0x451c86;}class k extends _0xe55e59{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5a42ea){this['editor']['plugins']['get'](p)['adapter']=_0x5a42ea;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3af2b3){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3af2b3);}['getSuggestions']({skipNotAttached:_0x17db7e=!0x1,toJSON:_0x1099b5=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x17db7e,'toJSON':_0x1099b5});}['getSuggestion'](_0x47ff0b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x47ff0b);}}const T=['Pagination'];class P extends _0xe55e59{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0xaa573d=this['editor'];if(_0xaa573d['config']['define']('trackChangesData.editorCreator',_0x202adc=>{const _0x14b32f=_0xaa573d['model']['document']['getRootNames']()['reduce']((_0x3ba8dc,_0x1cfb3f)=>(_0x3ba8dc[_0x1cfb3f]='',_0x3ba8dc),{});return _0xaa573d['constructor']['create'](_0x14b32f,_0x202adc);}),'function'!=typeof _0xaa573d['config']['get']('trackChangesData')['editorCreator'])throw new _0xdb29b1('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2e1c30){return N(this['editor'],!0x0,_0x2e1c30);}['getDataWithDiscardedSuggestions'](_0x5a5574){return N(this['editor'],!0x1,_0x5a5574);}}class D extends _0xe55e59{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x188a14){super(_0x188a14),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(_0x3f3447){return void 0x0!==_0x3f3447['getRootsAttributes'];}async function N(_0x31c2b7,_0x440d46,_0x756aba){const _0x408ba7=_0x313173(_0x31c2b7,T);_0x408ba7['plugins']['push'](p,D),_0x408ba7['rootsAttributes']=v(_0x31c2b7)?_0x31c2b7['getRootsAttributes']():void 0x0;const _0x49e481=document['createDocumentFragment'](),_0x201f53=_0x31c2b7['config']['get']('trackChangesData')['editorCreator'],_0x52ce71=await _0x201f53(_0x408ba7,()=>function(_0x17eb93){const _0x462dab=document['createElement']('div');return _0x17eb93['appendChild'](_0x462dab),_0x462dab;}(_0x49e481));!function(_0x2f0a5a,_0x45841c){const _0x53826c=_0x2f0a5a['model']['document']['getRootNames']()['reduce']((_0xb78407,_0x2020a6)=>(_0xb78407[_0x2020a6]=_0x2f0a5a['data']['get']({'rootName':_0x2020a6}),_0xb78407),{}),_0x1cf795=_0x2f0a5a['plugins']['get']('Users')['users']['map'](_0x15e0b2=>({'id':_0x15e0b2['id'],'name':_0x15e0b2['name']})),_0x5dbcd1=_0x2f0a5a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xe523b6=_0x2f0a5a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x372d08=_0x45841c['plugins']['get']('Users'),_0x2c557f=_0x45841c['plugins']['get']('TrackChangesEditing'),_0x52c76c=_0x45841c['plugins']['get']('CommentsRepository');for(const _0x4afb9f of _0x1cf795)_0x372d08['getUser'](_0x4afb9f['id'])||_0x372d08['addUser'](_0x4afb9f);_0x372d08['me']||_0x372d08['useAnonymousUser']();for(const _0x5c13cd of _0xe523b6)_0x52c76c['addCommentThread'](_0x5c13cd);for(const _0x4071f3 of _0x5dbcd1)_0x2c557f['addSuggestionData'](_0x4071f3);_0x45841c['data']['set'](_0x53826c);}(_0x31c2b7,_0x52ce71),_0x52ce71['execute'](_0x440d46?'acceptAllSuggestions':'discardAllSuggestions');const _0x345d13=v(_0x52ce71)?_0x52ce71['getFullData'](_0x756aba):_0x52ce71['data']['get'](_0x756aba);return await _0x52ce71['destroy'](),_0x345d13;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|