@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240601.0 → 0.0.0-nightly-20240603.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x119929(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3d42b3,_0x30c836){super(),this['id']=_0x30c836['id'],this['type']=_0x30c836['type'],this['subType']=_0x30c836['subType']||null,this['author']=_0x30c836['author'],this['creator']=_0x30c836['creator']||_0x30c836['author'],this['isExternal']=Boolean(_0x30c836['attributes']&&_0x30c836['attributes']['@external']),this['data']=null,this['_model']=_0x3d42b3,this['_onAccept']=_0x30c836['onAccept'],this['_onDiscard']=_0x30c836['onDiscard'],this['_onAttributesChange']=_0x30c836['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x30c836['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 _0x32b8f9=this;for(;_0x32b8f9['previous'];)_0x32b8f9=_0x32b8f9['previous'];return _0x32b8f9;}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'](_0x49c308){this['_markerNames']['add'](_0x49c308);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x368e98=>this['_model']['markers']['get'](_0x368e98))['filter'](_0x5c1b55=>_0x5c1b55);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x49f26c=>{for(const _0x448f92 of this['getMarkers']())_0x49f26c['removeMarker'](_0x448f92);}),this['_markerNames']['clear']();}['removeMarker'](_0x65cefe){this['_model']['change'](_0x5ec8af=>{_0x5ec8af['removeMarker'](_0x65cefe);}),this['_markerNames']['delete'](_0x65cefe);}['addRange'](_0x1a3407){const _0x422bc7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x422bc7),this['_model']['change'](_0x239ff6=>{_0x239ff6['addMarker'](_0x422bc7,{'range':_0x1a3407,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5b057d){for(const _0x241c62 of this['getRanges']())if(_0x241c62['isIntersecting'](_0x5b057d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xf36e94=>_0xf36e94['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x149d3a,_0x4e5262)=>[..._0x149d3a,..._0x4e5262['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x230240=this['getRanges']();if(0x1!=_0x230240['length'])return null;const _0x53e4bc=_0x230240[0x0],_0x3ceada=_0x53e4bc['start']['nodeAfter'],_0x2f903a=_0x53e4bc['end']['nodeBefore'];return _0x3ceada instanceof _0x1dd3ed?_0x3ceada!=_0x2f903a?null:_0x3ceada: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 _0x4ee6b5=[];let _0x200476=this['head'];for(;_0x200476;)_0x4ee6b5['push'](_0x200476),_0x200476=_0x200476['next'];return _0x4ee6b5;}['setAttribute'](_0x45e2f7,_0x25eeef){const _0x4994e2=_0x236aa2(this['attributes']);_0x175390(_0x4994e2,_0x45e2f7,_0x25eeef),_0x32cbbc(_0x4994e2,this['attributes'])||(this['attributes']=_0x4994e2,this['_onAttributesChange'](_0x4994e2));}['removeAttribute'](_0x14c2cf){const _0x29fc4d=_0x236aa2(this['attributes']);_0x28c88f(_0x29fc4d,_0x14c2cf),_0x32cbbc(_0x29fc4d,this['attributes'])||(this['attributes']=_0x29fc4d,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 _0xbad781()['substr'](0x1,0x5);}}function o(_0x5d0d98,_0x3bc705,_0x37a8a3){const t=_0x5d0d98['t'];switch(_0x3bc705){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',_0x37a8a3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x37a8a3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x37a8a3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x37a8a3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x37a8a3);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',_0x37a8a3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x37a8a3);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',_0x37a8a3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x37a8a3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x37a8a3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x37a8a3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x37a8a3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x37a8a3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x37a8a3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x37a8a3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x37a8a3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x37a8a3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x37a8a3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x37a8a3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x37a8a3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x37a8a3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x37a8a3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x37a8a3);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'},_0x37a8a3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x37a8a3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x37a8a3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x37a8a3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x37a8a3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x37a8a3);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'},_0x37a8a3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x37a8a3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x37a8a3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x37a8a3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x37a8a3);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'},_0x37a8a3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x37a8a3);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'},_0x37a8a3);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'},_0x37a8a3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x37a8a3);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'},_0x37a8a3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x37a8a3);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'},_0x37a8a3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x37a8a3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x37a8a3);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'},_0x37a8a3);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'},_0x37a8a3);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 _0x3bc705;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x25589a,_0x3a376b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x25589a,this['_locale']=_0x3a376b;}['getDescriptions'](_0xa7ee1){const _0x1eba73=[],_0x518c00=new Set(),_0x25b149=new Set();for(let _0x53715a=0x0;_0x53715a<_0xa7ee1['length'];_0x53715a++){const _0x3ca31c=_0xa7ee1[_0x53715a];if(!_0x3ca31c['isInContent'])continue;const _0x44f87e=this['_handleCustomCallbackDescription'](_0x3ca31c);if(_0x44f87e){if(null!=_0x3ca31c['subType']){if(_0x518c00['has'](_0x3ca31c['subType']))continue;_0x518c00['add'](_0x3ca31c['subType']);}_0x1eba73['push'](_0x44f87e);}else{if('attribute'!=_0x3ca31c['type'])'insertion'!=_0x3ca31c['type']&&'deletion'!=_0x3ca31c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1eba73,_0x3ca31c,_0xa7ee1[_0x53715a+0x1]);else{const _0x37682b=_0x3ca31c['data']['key'];if(_0x25b149['has'](_0x37682b))continue;_0x25b149['add'](_0x3ca31c['data']['key']),_0x37682b==m?this['_handleRenameSuggestionDescription'](_0x1eba73,_0x3ca31c):this['_handleAttributeSuggestionDescription'](_0x1eba73,_0x3ca31c);}}}return this['_resolveDescriptionItems'](_0x1eba73);}['registerDescriptionCallback'](_0x12c40e){this['_customCallbacks']['push'](_0x12c40e);}['registerElementLabel'](_0x22d179,_0xfc7660,_0x2d5d45=_0x14830a['normal']){'function'==typeof _0x22d179?_0xc0fb6e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x22d179,'label':_0xfc7660,'priority':_0x2d5d45}):this['_itemLabels']['set'](_0x22d179,_0xfc7660);}['registerAttributeLabel'](_0x5e8636,_0x4cd815){this['_attributeLabels']['set'](_0x5e8636,_0x4cd815);}['getItemLabel'](_0x456033,_0x4c196e=0x1){let _0xc0e782;for(const _0x1bdc10 of this['_itemLabelsCallbacks'])if(_0x1bdc10['matchingCallback'](_0x456033)){_0xc0e782=_0x1bdc10['label'];break;}return _0xc0e782||(_0xc0e782=this['_itemLabels']['get'](_0x456033['name'])),_0xc0e782?_0xc0e782(_0x4c196e):0x1!==_0x4c196e?_0x4c196e+'\x20'+_0x456033['name']+'s':''+_0x456033['name'];}['_addDescriptionItems'](_0x4a9db6,_0x2623d0){const _0x260c6a=_0x2623d0['getFirstRange']()['getWalker'](),_0x313ebb='insertion'==_0x2623d0['type']?'add':'remove';for(const _0x3f44df of _0x260c6a){const _0x329927=_0x3f44df['item'],_0x575eaf=_0x4a9db6[_0x4a9db6['length']-0x1];if(_0x329927['is']('$textProxy'))_0x575eaf&&_0x575eaf['type']['indexOf']('Container')>-0x1&&_0x4a9db6['pop'](),_0x575eaf&&'text'==_0x575eaf['type']?_0x575eaf[_0x313ebb]+=_0x329927['data']:_0x4a9db6['push']({'type':'text','add':'add'==_0x313ebb?_0x329927['data']:'','remove':'remove'==_0x313ebb?_0x329927['data']:''});else{if(this['_schema']['isObject'](_0x329927)){const _0x25c713=_0x329927;if(_0x575eaf&&_0x575eaf['type']['indexOf']('Container')>-0x1&&_0x4a9db6['pop'](),'elementEnd'==_0x3f44df['type'])continue;_0x575eaf&&_0x575eaf['type']==_0x313ebb+'Object'&&_0x575eaf['element']['name']==_0x25c713['name']?_0x575eaf['quantity']++:_0x4a9db6['push']({'type':_0x313ebb+'Object','element':_0x25c713,'quantity':0x1}),_0x260c6a['skip'](_0x57c73e=>!('elementEnd'==_0x57c73e['type']&&_0x57c73e['item']==_0x329927));}else{if(this['_schema']['checkChild'](_0x329927,'$text')||_0x329927['is']('element','softBreak')){const _0x394049=_0x329927;if('add'==_0x313ebb&&'elementStart'==_0x3f44df['type']||'remove'==_0x313ebb&&'elementEnd'==_0x3f44df['type'])continue;if(_0x575eaf&&-0x1==_0x575eaf['type']['indexOf']('Container')){'text'==_0x575eaf['type']&&(_0x575eaf[_0x313ebb]+='\x0a');continue;}let _0x365402;if(_0x365402='add'==_0x313ebb?_0x394049['nextSibling']&&!this['_schema']['isObject'](_0x394049['nextSibling'])?_0x394049['nextSibling']:null:_0x394049['previousSibling']&&!this['_schema']['isObject'](_0x394049['previousSibling'])?_0x394049['previousSibling']:null,_0x394049['isEmpty']||_0x365402&&_0x365402['isEmpty']){const _0x558ae6=_0x365402&&_0x365402['isEmpty']?_0x365402:_0x394049;_0x575eaf&&_0x575eaf['type']==_0x313ebb+'EmptyContainer'&&_0x575eaf['element']['name']==_0x558ae6['name']?_0x575eaf['quantity']++:_0x4a9db6['push']({'type':_0x313ebb+'EmptyContainer','element':_0x558ae6,'quantity':0x1});}else _0x4a9db6['push']({'type':_0x313ebb+'Container','element':_0x394049});}}}}}['_resolveDescriptionItems'](_0x1c51bb){const _0x488697=this['_locale'],_0x58f931=[],_0x5165fb=[],_0x2ad51c=[];for(const _0x36cc0d of _0x1c51bb)switch(_0x36cc0d['type']){case'text':if(_0x36cc0d['add']=_0x36cc0d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x36cc0d['remove']=_0x36cc0d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x36cc0d['add']&&''!=_0x36cc0d['remove']){_0x58f931['push']({'type':'replace','content':o(_0x488697,'REPLACE_TEXT',['\x22'+_0x36cc0d['remove']+'\x22','\x22'+_0x36cc0d['add']+'\x22'])});continue;}if(null!=_0x36cc0d['add']['match'](/^ +$/)){_0x58f931['push']({'type':'insertion','content':o(_0x488697,'*Insert:*\x20%0',o(_0x488697,'ELEMENT_SPACE',_0x36cc0d['add']['length']))});continue;}if(null!=_0x36cc0d['remove']['match'](/^ +$/)){_0x58f931['push']({'type':'deletion','content':o(_0x488697,'*Remove:*\x20%0',o(_0x488697,'ELEMENT_SPACE',_0x36cc0d['remove']['length']))});continue;}if(''!=_0x36cc0d['add']){_0x58f931['push']({'type':'insertion','content':o(_0x488697,'*Insert:*\x20%0','\x22'+_0x36cc0d['add']+'\x22')});continue;}_0x58f931['push']({'type':'deletion','content':o(_0x488697,'*Remove:*\x20%0','\x22'+_0x36cc0d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x58f931['push']({'type':'insertion','content':o(_0x488697,'*Insert:*\x20%0',this['getItemLabel'](_0x36cc0d['element'],_0x36cc0d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x58f931['push']({'type':'deletion','content':o(_0x488697,'*Remove:*\x20%0',this['getItemLabel'](_0x36cc0d['element'],_0x36cc0d['quantity']))});continue;case'addContainer':_0x58f931['push']({'type':'insertion','content':o(_0x488697,'*Split:*\x20%0',this['getItemLabel'](_0x36cc0d['element'],_0x36cc0d['quantity']))});continue;case'removeContainer':_0x58f931['push']({'type':'deletion','content':o(_0x488697,'*Merge:*\x20%0',this['getItemLabel'](_0x36cc0d['element'],_0x36cc0d['quantity']))});continue;case'addFormat':_0x5165fb['push'](_0x36cc0d['key']);continue;case'removeFormat':_0x2ad51c['push'](_0x36cc0d['key']);continue;default:_0x58f931['push'](_0x36cc0d);}if(_0x5165fb['length']){const _0x2e5305=_0x5165fb['map'](_0x421f70=>this['_attributeLabels']['has'](_0x421f70)?this['_attributeLabels']['get'](_0x421f70):_0x421f70)['join'](',\x20');_0x58f931['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2e5305)});}if(_0x2ad51c['length']){const _0x32ad74=_0x2ad51c['map'](_0x1a7f99=>this['_attributeLabels']['has'](_0x1a7f99)?this['_attributeLabels']['get'](_0x1a7f99):_0x1a7f99)['join'](',\x20');_0x58f931['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x32ad74)});}return _0x58f931;}['_handleCustomCallbackDescription'](_0x471065){for(const _0x3658f0 of this['_customCallbacks']){const _0x4015b4=_0x3658f0(_0x471065);if(_0x4015b4&&'type'in _0x4015b4)return _0x4015b4;}}['_handleAttributeSuggestionDescription'](_0x56c72e,_0x16c549){const _0x21debf=_0x16c549['data'],_0xe2a61f=void 0x0===_0x21debf['newValue']?'removeFormat':'addFormat';_0x56c72e['push']({'type':_0xe2a61f,'key':_0x21debf['key']});}['_handleRenameSuggestionDescription'](_0x380202,_0x52e484){_0x380202['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x52e484['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x58be51,_0x5b7312,_0xc30d16){if(this['_addDescriptionItems'](_0x58be51,_0x5b7312),_0xc30d16&&_0xc30d16['getFirstRange']()&&!_0x5b7312['getFirstRange']()['end']['isEqual'](_0xc30d16['getFirstRange']()['start'])){const _0x10f589=_0x58be51[_0x58be51['length']-0x1],_0x3623d8='insertion'==_0x5b7312['type']?'add':'remove';_0x10f589&&'text'==_0x10f589['type']&&(_0x10f589[_0x3623d8]+='\x0a');}}}class E extends _0x5e9c6f{['afterInit'](){const _0x2b3a61=this['editor'],_0x187cb3=_0x2b3a61['plugins']['get']('TrackChangesEditing');_0x2b3a61['commands']['get']('showAIAssistant')&&_0x187cb3['enableCommand']('showAIAssistant');}}class V extends _0x5e9c6f{['afterInit'](){const _0x1ce7a7=this['editor'],_0x53b8bf=_0x1ce7a7['locale'];if(!_0x1ce7a7['plugins']['has']('AlignmentEditing'))return;const _0x31ef39=_0x1ce7a7['plugins']['get']('TrackChangesEditing');_0x31ef39['enableDefaultAttributesIntegration']('alignment'),_0x31ef39['registerBlockAttribute']('alignment'),_0x31ef39['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x53b8bf,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4940d3=this['editor'],_0x3582cd=_0x4940d3['locale'];_0x4940d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3db38c=>{if('formatBlock'!=_0x3db38c['type'])return;const {data:_0x5598ae}=_0x3db38c;if(_0x5598ae&&'alignment'==_0x5598ae['commandName']){const _0x29986e=_0x5598ae['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3582cd,'*Format:*\x20%0',function(_0x366297){switch(_0x366297){case'left':return o(_0x3582cd,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3582cd,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3582cd,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3582cd,'FORMAT_JUSTIFY_TEXT');}}(_0x29986e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x5e9c6f{['afterInit'](){const _0x3a7e47=this['editor'],_0x5973e5=_0x3a7e47['plugins']['get']('TrackChangesEditing'),_0xc9adae=_0x3a7e47['locale'];for(const _0x5ebb12 of ti){if(!_0x3a7e47['plugins']['has'](_0x5ebb12))continue;const _0x5e01a7=_0x5ebb12['slice'](0x0,-0x7)['toLowerCase'](),_0x579adc='FORMAT_'+_0x5e01a7['toUpperCase']();_0x5973e5['enableDefaultAttributesIntegration'](_0x5e01a7),_0x5973e5['registerInlineAttribute'](_0x5e01a7),_0x5973e5['descriptionFactory']['registerAttributeLabel'](_0x5e01a7,o(_0xc9adae,_0x579adc));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x241873=this['editor'],_0x1157d4=_0x241873['locale'],_0x542a31=_0x241873['plugins']['get']('TrackChangesEditing');function _0x26ed9c(_0x42bb2,_0x4c3466){_0x542a31['descriptionFactory']['registerDescriptionCallback'](_0x512db7=>{if('formatInline'!=_0x512db7['type'])return;const {data:_0x4642c3}=_0x512db7;return _0x4642c3&&_0x4642c3['commandName']===_0x42bb2?_0x4642c3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1157d4,'*Format:*\x20%0',_0x4c3466)}:{'type':'format','content':o(_0x1157d4,'*Remove\x20format:*\x20%0',_0x4c3466)}:void 0x0;});}_0x26ed9c('bold',o(_0x1157d4,'FORMAT_BOLD')),_0x26ed9c('italic',o(_0x1157d4,'FORMAT_ITALIC')),_0x26ed9c('underline',o(_0x1157d4,'FORMAT_UNDERLINE')),_0x26ed9c('code',o(_0x1157d4,'FORMAT_CODE')),_0x26ed9c('strikethrough',o(_0x1157d4,'FORMAT_STRIKETHROUGH')),_0x26ed9c('subscript',o(_0x1157d4,'FORMAT_SUBSCRIPT')),_0x26ed9c('superscript',o(_0x1157d4,'FORMAT_SUPERSCRIPT'));}}class O extends _0x5e9c6f{['afterInit'](){const _0x4f02c0=this['editor'],_0x38177b=_0x4f02c0['locale'];if(!_0x4f02c0['plugins']['has']('BlockQuoteEditing'))return;const _0x5344f3=_0x4f02c0['plugins']['get']('TrackChangesEditing'),_0x2c3ae5=this['editor']['commands']['get']('blockQuote');_0x5344f3['enableCommand']('blockQuote',(_0x1bc51e,_0x46cfe6={})=>{const _0x5ef743=this['editor']['model']['document']['selection'],_0x1b587c=_0x46cfe6&&void 0x0!==_0x46cfe6['forceValue']?_0x46cfe6['forceValue']:!_0x2c3ae5['value'];let _0x4bffc9=[];if(_0x1b587c){const _0x444326=Array['from'](_0x5ef743['getSelectedBlocks']())['filter'](_0x3efffc=>oo(_0x3efffc)||function(_0x1230ba,_0x4075ba){const _0x3c856e=_0x4075ba['checkChild'](_0x1230ba['parent'],'blockQuote'),_0x5c9159=_0x4075ba['checkChild'](['$root','blockQuote'],_0x1230ba);return _0x3c856e&&_0x5c9159;}(_0x3efffc,this['editor']['model']['schema']));_0x4bffc9=to(_0x444326,_0x4f02c0['model']);}else{const _0x1bb5cd=Array['from'](_0x5ef743['getSelectedBlocks']())['filter'](_0x19a073=>oo(_0x19a073));_0x4bffc9=to(_0x1bb5cd,_0x4f02c0['model']);}_0x4f02c0['model']['change'](()=>{for(const _0x55e75d of _0x4bffc9)_0x5344f3['markBlockFormat'](_0x55e75d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1b587c}]});});}),_0x5344f3['descriptionFactory']['registerDescriptionCallback'](_0x434d2f=>{const {data:_0x4b40f1}=_0x434d2f;if(_0x4b40f1&&'blockQuote'==_0x4b40f1['commandName']){const _0x1165a6=o(_0x38177b,'ELEMENT_BLOCK_QUOTE');return _0x4b40f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38177b,'*Set\x20format:*\x20%0',_0x1165a6)}:{'type':'format','content':o(_0x38177b,'*Remove\x20format:*\x20%0',_0x1165a6)};}});}}function oo(_0x3a1033){return'blockQuote'==_0x3a1033['parent']['name'];}class G extends _0x5e9c6f{['afterInit'](){const _0x37f16d=this['editor'];_0x37f16d['plugins']['has']('CaseChange')&&(_0x37f16d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x37f16d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x37f16d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x5e9c6f{['afterInit'](){const _0x280097=this['editor'];_0x280097['commands']['get']('ckbox')&&_0x280097['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5e9c6f{['afterInit'](){const _0x40b0f2=this['editor'];if(!_0x40b0f2['plugins']['has']('CodeBlock'))return;const _0x2477fe=_0x40b0f2['plugins']['get']('TrackChangesEditing'),_0x583bf8=_0x40b0f2['locale'],_0x27c964=_0x40b0f2['config']['get']('codeBlock')['languages'],_0x256ad3=_0x40b0f2['commands']['get']('codeBlock');_0x2477fe['enableCommand']('indentCodeBlock'),_0x2477fe['enableCommand']('outdentCodeBlock'),_0x2477fe['enableCommand']('codeBlock',(_0x24402b,_0x29a886={})=>{const _0x5915db=_0x40b0f2['model'],_0x481019=_0x40b0f2['model']['document']['selection'],_0x56d370=_0x29a886&&void 0x0!==_0x29a886['forceValue']?_0x29a886['forceValue']:!_0x256ad3['value'];let _0x573092;_0x29a886['language']||(_0x29a886['language']=_0x27c964[0x0]['language']),_0x573092=_0x56d370?Array['from'](_0x481019['getSelectedBlocks']())['filter'](_0x4e8543=>eo(_0x4e8543)||function(_0x2bc4d5,_0x257d4a){if(_0x2bc4d5['is']('rootElement')||_0x257d4a['isLimit'](_0x2bc4d5))return!0x1;return _0x257d4a['checkChild'](_0x2bc4d5['parent'],'codeBlock');}(_0x4e8543,_0x5915db['schema'])):Array['from'](_0x481019['getSelectedBlocks']())['filter'](_0x31faf9=>eo(_0x31faf9));const _0x1b5dfc=to(_0x573092,_0x5915db);_0x5915db['change'](()=>{for(const _0x4c1ee3 of _0x1b5dfc)_0x2477fe['markBlockFormat'](_0x4c1ee3,{'commandName':'codeBlock','commandParams':[{..._0x29a886,'forceValue':_0x56d370}],'formatGroupId':'blockName'});});}),(_0x2477fe['descriptionFactory']['registerElementLabel']('codeBlock',_0x35a17c=>o(_0x583bf8,'ELEMENT_CODE_BLOCK',_0x35a17c)),_0x2477fe['descriptionFactory']['registerDescriptionCallback'](_0x2ad125=>{if('formatBlock'!=_0x2ad125['type'])return;const _0x20a98f=_0x583bf8['t'],{data:_0x524180}=_0x2ad125;if(!_0x524180||'codeBlock'!=_0x524180['commandName'])return;const _0x1456ba=_0x524180['commandParams'][0x0]['language'],_0xe1df3a=_0x20a98f(_0x27c964['find'](_0x3510cf=>_0x3510cf['language']===_0x1456ba)['label'])['toLowerCase']();return _0x524180['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x583bf8,'*Set\x20format:*\x20%0',o(_0x583bf8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xe1df3a+')')}:{'type':'format','content':o(_0x583bf8,'*Remove\x20format:*\x20%0',o(_0x583bf8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x14ada9){return'codeBlock'==_0x14ada9['name'];}class H extends _0x5e9c6f{['afterInit'](){const _0x504c5f=this['editor'];if(!_0x504c5f['plugins']['has']('CommentsEditing'))return;_0x504c5f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xa59b13,_0xf5dbfa,_0x595e8b){const _0x1267b6=[];for(const _0x4692fe of _0xf5dbfa['getItems']())_0x4692fe['hasAttribute'](_0xa59b13)&&_0x1267b6['push'](_0x595e8b['createRangeOn'](_0x4692fe));return _0x1267b6;}function _e(_0x17f122,_0x3b53cc,{showActiveMarker:_0x3114ef=!0x0}={}){const _0x2491b0=_0x17f122['plugins']['get']('TrackChangesEditing');return(_0x15d4dc,_0x365a0a,_0x304b31)=>{if(!_0x304b31['consumable']['test'](_0x365a0a['markerRange'],_0x15d4dc['name']))return;const _0x571b55=_0x365a0a['markerRange']['getWalker'](),_0xf8d890=_0x365a0a['markerRange']['start'],_0x2166eb=_0x17f122['model']['schema'];let _0x491a9d=null,_0x539dc6=null,_0x521ac9=!0x1,_0x4bc889=!0x1;for(const _0x4e7033 of _0x571b55){const _0x1afef5=_0x4e7033['item'];_0x521ac9=_0x521ac9||_0x2166eb['isContent'](_0x1afef5);const _0x38cc3e=_0x304b31['mapper']['toViewElement'](_0x1afef5);if(_0x38cc3e&&_0x38cc3e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e7033['type']&&(_0x2166eb['isBlock'](_0x1afef5)&&!_0x2166eb['isLimit'](_0x1afef5)&&(_0x1afef5['nextSibling']||_0xf8d890['isAtEnd']?_0x491a9d&&_0x491a9d['parent']==_0x1afef5||(_0x491a9d=_0x1afef5,_0x5a3af2(_0x4e7033['previousPosition']),_0x4bc889=!0x0):_0x539dc6=_0x539dc6||_0x4e7033['previousPosition']));}function _0x5a3af2(_0xf66d4){const _0x41e419=_0x304b31['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3b53cc}),_0x28469b=_0x304b31['mapper']['toViewPosition'](_0xf66d4);_0x3114ef&&_0x2491b0['activeMarkers']['includes'](_0x365a0a['markerName'])&&_0x304b31['writer']['addClass']('ck-suggestion-marker--active',_0x41e419),_0x304b31['writer']['insert'](_0x28469b,_0x41e419),_0x304b31['mapper']['bindElementToMarker'](_0x41e419,_0x365a0a['markerName']);}_0x521ac9||_0x4bc889||!_0x539dc6||_0x5a3af2(_0x539dc6);};}class q extends _0x5e9c6f{static get['requires'](){return[_0x3f67db];}['init'](){const _0x3ae6c8=this['editor'],_0x19cf9d=_0x3ae6c8['plugins']['get']('TrackChangesEditing');_0x19cf9d['enableCommand']('delete');const _0x40f5e1=_0x3ae6c8['commands']['get']('deleteForward');_0x19cf9d['enableCommand']('deleteForward',(_0x471629,_0x450199={})=>{const _0x53a0ae=_0x3ae6c8['model']['createSelection'](_0x3ae6c8['model']['document']['selection']);_0x53a0ae['isCollapsed']&&_0x3ae6c8['model']['modifySelection'](_0x53a0ae,{'direction':'forward','unit':_0x450199['unit']});const _0x413f95=_0x53a0ae['getFirstRange'](),_0x286236=_0x169303['fromRange'](_0x413f95);let _0x10d15e;_0x471629(_0x450199),_0x10d15e='$graveyard'==_0x286236['root']['rootName']?_0x3ae6c8['model']['createRange'](_0x413f95['start']):_0x3ae6c8['model']['createRange'](_0x286236['start'],_0x286236['end']),_0x286236['detach'](),_0x3ae6c8['model']['enqueueChange'](_0x40f5e1['buffer']['batch'],_0x59ebb9=>{_0x40f5e1['buffer']['lock'](),_0x59ebb9['setSelection'](_0x59ebb9['createRange'](_0x10d15e['end'])),_0x40f5e1['buffer']['unlock']();});}),_0x3ae6c8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3ae6c8,'merge'),{'priority':'high'}),_0x3ae6c8['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x352425,_0x3e2e1d,_0x57747b)=>{_0x57747b['options']['showSuggestionHighlights']&&_e(_0x3ae6c8,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x352425,_0x3e2e1d,_0x57747b);},{'priority':'high'}),_0x3ae6c8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3d18b3,_0xc6fc87,_0x36a479)=>{const _0x49eaae=_0x36a479['mapper']['markerNameToElements'](_0xc6fc87['markerName']);if(_0x49eaae){for(const _0x204e52 of _0x49eaae)_0x204e52['is']('uiElement')&&(_0x36a479['mapper']['unbindElementFromMarkerName'](_0x204e52,_0xc6fc87['markerName']),_0x36a479['writer']['remove'](_0x204e52));}},{'priority':'high'});}}class z extends _0x5e9c6f{['afterInit'](){const _0x2e536b=this['editor'];if(!_0x2e536b['plugins']['has']('ListEditing'))return;const _0x1cac13=_0x2e536b['locale'],_0x46e7d3=_0x2e536b['plugins']['get']('TrackChangesEditing'),_0x55ff7b=_0x2e536b['plugins']['has']('TodoListEditing'),_0x1e8891=!!_0x2e536b['config']['get']('list.multiBlock');function _0x53f6d5(_0x3d337b){return{'type':'format','content':''+o(_0x1cac13,'*Set\x20format:*\x20%0',_0x3d337b)};}function _0x5ea261(_0x23d9e8){return{'type':'format','content':''+o(_0x1cac13,'*Remove\x20format:*\x20%0',_0x23d9e8)};}_0x46e7d3['enableDefaultAttributesIntegration']('numberedList'),_0x46e7d3['enableDefaultAttributesIntegration']('bulletedList'),_0x46e7d3['enableDefaultAttributesIntegration']('customNumberedList'),_0x46e7d3['enableDefaultAttributesIntegration']('customBulletedList'),_0x46e7d3['enableDefaultAttributesIntegration']('indentList'),_0x46e7d3['enableDefaultAttributesIntegration']('outdentList'),_0x46e7d3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x46e7d3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x46e7d3['registerBlockAttribute']('listItemId'),_0x46e7d3['registerBlockAttribute']('listType'),_0x46e7d3['registerBlockAttribute']('listIndent'),_0x1e8891&&(_0x46e7d3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x46e7d3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x55ff7b&&(_0x46e7d3['enableDefaultAttributesIntegration']('todoList'),_0x46e7d3['enableDefaultAttributesIntegration']('checkTodoList'),_0x46e7d3['registerBlockAttribute']('todoListChecked'),_0x46e7d3['descriptionFactory']['registerDescriptionCallback'](_0xabf641=>{const {data:_0x2ef0d3}=_0xabf641;if(_0x2ef0d3&&'todoListChecked'==_0x2ef0d3['key'])return{'type':'format','content':_0x2ef0d3['newValue']?o(_0x1cac13,'*Check\x20item*'):o(_0x1cac13,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x69db04=>{if(_0x69db04['batch']['isUndo'])return!0x1;let _0x1876eb=!0x1;const _0x2ca76a=_0x46e7d3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4662c0=>'todoListChecked'===_0x46e7d3['_getAttributeKey'](_0x4662c0));for(const _0x41e083 of _0x2ca76a){'todo'!=_0x41e083['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x46e7d3['_findSuggestions'](_0x41e083['getFirstRange'](),'attribute')['find'](_0x31681e=>'listType'===_0x46e7d3['_getAttributeKey'](_0x31681e['suggestion']))||(_0x69db04['removeMarker'](_0x41e083['getFirstMarker']()),_0x1876eb=!0x0));}return _0x1876eb;})),_0x46e7d3['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1cac13,'FORMAT_INDENT'));const _0x27ebfa={'type':'format','content':''};_0x46e7d3['descriptionFactory']['registerDescriptionCallback'](_0x3f1d24=>{const {data:_0x338b38}=_0x3f1d24;if(!_0x338b38||'listType'!=_0x338b38['key'])return;let _0x1d7af3=_0x3f1d24['head'];for(;_0x1d7af3;){if(_0x1d7af3['data']&&(('listStyle'==_0x1d7af3['data']['key']||'listMarkerStyle'==_0x1d7af3['data']['key'])&&(_0x1d7af3['data']['newValue']&&'default'!=_0x1d7af3['data']['newValue']||'default'!=_0x1d7af3['data']['oldValue']&&!_0x338b38['newValue'])||!_0x1e8891&&_0x1d7af3['data']['key']==m))return _0x27ebfa;_0x1d7af3=_0x1d7af3['next'];}if(null==_0x338b38['newValue'])switch(_0x338b38['oldValue']){case'bulleted':return _0x5ea261(o(_0x1cac13,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ea261(o(_0x1cac13,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ea261(o(_0x1cac13,'ELEMENT_TODO_LIST'));}switch(_0x338b38['newValue']){case'bulleted':return _0x53f6d5(o(_0x1cac13,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53f6d5(o(_0x1cac13,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53f6d5(o(_0x1cac13,'ELEMENT_TODO_LIST'));}}),_0x46e7d3['descriptionFactory']['registerDescriptionCallback'](_0xd8cd3b=>{const {data:_0x35efa6}=_0xd8cd3b;if(_0x35efa6&&'listIndent'==_0x35efa6['key'])return null==_0x35efa6['newValue']||null==_0x35efa6['oldValue']&&0x0==_0x35efa6['newValue']?_0x27ebfa:void 0x0;}),_0x46e7d3['descriptionFactory']['registerDescriptionCallback'](_0x31820d=>{if('attribute'!=_0x31820d['type'])return;const {data:_0xba3009}=_0x31820d;if(!_0xba3009||'listItemId'!=_0xba3009['key'])return;const _0x195a24=le(_0x31820d);return'newValue'==_0x195a24?{'type':'format','content':o(_0x1cac13,'*Merge:*\x20list\x20item')}:'oldValue'==_0x195a24?{'type':'format','content':o(_0x1cac13,'*Split:*\x20list\x20item')}:_0x27ebfa;}),_0x2e536b['model']['document']['registerPostFixer'](_0x4326eb=>this['listItemIdFixer'](_0x4326eb)),_0x2e536b['model']['document']['registerPostFixer'](_0x25bb3b=>this['noTrackChangesFixer'](_0x25bb3b)),_0x2e536b['model']['document']['registerPostFixer'](_0x5d70e5=>this['assureChains'](_0x5d70e5)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x301a4b){if(_0x301a4b['batch']['isUndo']||!_0x301a4b['batch']['isLocal'])return!0x1;let _0x195038=!0x1;const _0x286a7a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x187969=>_0x187969['data']&&'listItemId'==_0x187969['data']['key'])['filter'](_0x5e8a5c=>_0x5e8a5c['data']['newValue']&&_0x5e8a5c['data']['oldValue']);for(const _0x457d8c of _0x286a7a)le(_0x457d8c)||(_0x301a4b['removeMarker'](_0x457d8c['getFirstMarker']()),_0x195038=!0x0);return _0x195038;}['noTrackChangesFixer'](_0x3347a6){if(_0x3347a6['batch']['isUndo']||!_0x3347a6['batch']['isLocal'])return!0x1;const _0x401042=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x401042['trackChangesCommand']['value'])return!0x1;let _0x78b1ed=!0x1;const _0x6324d0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x19aa33=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x86b466=>'attribute'==_0x86b466['type'])['filter'](_0x135e60=>_0x6324d0['includes'](_0x135e60['attributeKey']));if(0x0==_0x19aa33['length'])return _0x78b1ed;for(const _0x4ffe74 of _0x19aa33){const _0x37c97b=_0x401042['_findSuggestions'](_0x4ffe74['range'],'attribute')['filter'](_0x383d04=>!_0x383d04['meta']['isNextTo'])['map'](_0x50f363=>_0x50f363['suggestion'])['filter'](_0xb534d=>{const _0x3658fd=_0x401042['_getAttributeKey'](_0xb534d);return _0x6324d0['includes'](_0x3658fd);});if(_0x37c97b['length']){for(const _0x1ed97f of _0x37c97b)_0x3347a6['removeMarker'](_0x1ed97f['getFirstMarker']());_0x78b1ed=!0x0;}}return _0x78b1ed;}['assureChains'](_0x5b09c1){if(_0x5b09c1['batch']['isUndo']||!_0x5b09c1['batch']['isLocal'])return!0x1;const _0x3d5dbd=this['editor']['plugins']['get']('TrackChangesEditing');let _0x44e328=!0x1;const _0x4484f8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x1b2bdf of _0x3d5dbd['getSuggestions']({'skipNotAttached':!0x0})){const _0x4f87c5=_0x3d5dbd['_findSuggestions'](_0x1b2bdf['getFirstRange'](),'attribute')['map'](_0x8aafb=>_0x8aafb['suggestion'])['filter'](_0x85ffec=>_0x85ffec['data']&&_0x4484f8['includes'](_0x85ffec['data']['key']));if(!_0x4f87c5['length'])continue;const _0x175831=_0x4f87c5[0x0]['head']['attributes']['groupId'];if(!_0x4f87c5['every'](_0x3fa1a5=>_0x3fa1a5['attributes']['groupId']===_0x175831)){for(const _0x2f9796 of _0x4f87c5)_0x39384c(_0x2f9796,_0x175831)&&(_0x44e328=!0x0);}}return _0x44e328;function _0x16a81b(_0x401963,_0x273e7c){for(const _0x162261 of _0x3d5dbd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42cf77=>'attribute'==_0x42cf77['type']&&_0x42cf77['attributes']['groupId']==_0x401963))_0x162261['setAttribute']('groupId',_0x273e7c);}function _0x39384c(_0x4bb1a5,_0x3d5f89){let _0x4c423b=_0x4bb1a5['head'],_0x2ac388=!0x1;for(;_0x4c423b;)_0x4c423b['attributes']['groupId']!=_0x3d5f89&&(_0x16a81b(_0x4c423b['attributes']['groupId'],_0x3d5f89),_0x4c423b['setAttribute']('groupId',_0x3d5f89),_0x2ac388=!0x0),_0x4c423b=_0x4c423b['next'];return _0x2ac388;}}['_supportLegacySuggestions'](){const _0x38fd06=this['editor'],_0x1292f2=_0x38fd06['locale'],_0x2ea441=_0x38fd06['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2ea441['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1bb5ee,_0xc0ff5c){const _0x51d4dc=[];for(let _0x314414 of _0x1bb5ee)_0x314414['start']['nodeAfter']===_0x314414['end']['parent']&&(_0x314414=_0x38fd06['model']['createRange'](_0x38fd06['model']['createPositionAt'](_0x314414['start']['nodeAfter'],0x0))),_0x51d4dc['push'](_0x314414);_0x38fd06['model']['change'](_0x3c58c4=>{const _0x51b8b7=_0x38fd06['model']['document']['selection'],_0x18767a=Array['from'](_0x51b8b7['getRanges']())['map'](_0x529f5f=>_0x169303['fromRange'](_0x529f5f));_0x3c58c4['setSelection'](_0x51d4dc),_0x38fd06['commands']['get'](_0xc0ff5c['commandName'])['refresh'](),_0xc0ff5c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x38fd06['execute'](_0xc0ff5c['commandName'],..._0xc0ff5c['commandParams']),_0x3c58c4['setSelection'](_0x18767a);for(const _0x332566 of _0x18767a)_0x332566['detach']();});}),_0x2ea441['descriptionFactory']['registerElementLabel'](function(_0xeded80){const _0x51f80b=!_0x38fd06['model']['schema']['isObject'](_0xeded80),_0x17eaaa=_0xeded80['previousSibling'],_0x38dae5=_0xeded80['nextSibling'],_0xdd319=_0xeded80['getAttribute']('listItemId'),_0x371694=!_0x17eaaa||_0x17eaaa['getAttribute']('listItemId')!==_0xdd319,_0x34fb61=!_0x38dae5||_0x38dae5['getAttribute']('listItemId')!==_0xdd319;return _0x51f80b&&Boolean(_0xdd319)&&_0x371694&&_0x34fb61;},_0x4a42f0=>o(_0x1292f2,'ELEMENT_LIST_ITEM',_0x4a42f0));}['_registerLegacyDescription'](){const _0x514bdb=this['editor'],_0x5881e5=_0x514bdb['locale'];function _0x326bdf(_0x360d69){const _0x571d03=_0x514bdb['commands']['get']('bulletedList')['value'],_0x1538ff=_0x514bdb['commands']['get']('numberedList')['value'];return'numberedList'===_0x360d69?_0x571d03:_0x1538ff;}_0x514bdb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x32854e){if('formatBlock'!=_0x32854e['type'])return;const {data:_0x4eeb24}=_0x32854e;if(!_0x4eeb24)return;let _0x2b5b85,_0x13d182,_0x42e2cd,_0x382af3;switch(_0x4eeb24['commandName']){case'bulletedList':_0x42e2cd=_0x4eeb24['commandParams'][0x0]['forceValue'],_0x382af3=_0x326bdf(_0x4eeb24['commandName']),_0x2b5b85=_0x42e2cd?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x382af3&&_0x514bdb['config']['get']('list.multiBlock')||(_0x2b5b85='*Change\x20to:*\x20%0'),_0x13d182={'type':'format','content':o(_0x5881e5,_0x2b5b85,o(_0x5881e5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x42e2cd=_0x4eeb24['commandParams'][0x0]['forceValue'],_0x382af3=_0x326bdf(_0x4eeb24['commandName']),_0x2b5b85=_0x42e2cd?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x382af3&&_0x514bdb['config']['get']('list.multiBlock')||(_0x2b5b85='*Change\x20to:*\x20%0'),_0x13d182={'type':'format','content':o(_0x5881e5,_0x2b5b85,o(_0x5881e5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2b5b85='*Indent:*\x20%0',_0x13d182={'type':'format','content':o(_0x5881e5,_0x2b5b85,o(_0x5881e5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2b5b85=function(_0x1193b7){const _0x517dd6=_0x1193b7['getFirstRange']();let _0x5d6618=_0x517dd6['start']['nodeAfter'];for(;_0x5d6618&&_0x517dd6['containsItem'](_0x5d6618);){if(_0x5d6618['getAttribute']('listIndent')>0x0)return!0x1;_0x5d6618=_0x5d6618['nextSibling'];}return!0x0;}(_0x32854e)?o(_0x5881e5,'*Format:*\x20remove\x20from\x20%0',o(_0x5881e5,function(_0x3208b3){return'ELEMENT_'+_0x3208b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x32854e))):o(_0x5881e5,'*Outdent:*\x20%0',o(_0x5881e5,'ELEMENT_LIST_ITEM')),_0x13d182={'type':'format','content':_0x2b5b85};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4eeb24['multipleBlocks']&&(_0x2b5b85='*Merge:*\x20%0',_0x13d182={'type':'deletion','content':o(_0x5881e5,_0x2b5b85,o(_0x5881e5,'ELEMENT_LIST_ITEM'))});}return _0x13d182;});}}function le(_0x49a7ee){let _0x46ae37=_0x49a7ee['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x46ae37;){const _0x1108d7=_0x46ae37['getAttribute']('listItemId');if(!_0x1108d7)return!0x1;if(_0x1108d7==_0x49a7ee['data']['newValue'])return'newValue';if(_0x1108d7==_0x49a7ee['data']['oldValue'])return'oldValue';_0x46ae37=_0x46ae37['previousSibling'];}return!0x1;}class ue extends _0x5e9c6f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1967c6=this['editor']['config']['get']('list.properties'),_0x3830a3=this['editor']['plugins']['get']('TrackChangesEditing');_0x1967c6['styles']&&(_0x3830a3['enableDefaultAttributesIntegration']('listStyle'),_0x3830a3['registerBlockAttribute']('listStyle')),_0x1967c6['reversed']&&(_0x3830a3['enableDefaultAttributesIntegration']('listReversed'),_0x3830a3['registerBlockAttribute']('listReversed')),_0x1967c6['startIndex']&&(_0x3830a3['enableDefaultAttributesIntegration']('listStart'),_0x3830a3['registerBlockAttribute']('listStart'));const _0x356214={'type':'format','content':''};_0x3830a3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2b7f96=this['editor']['locale'];_0x3830a3['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2b7f96,'FORMAT_LIST_REVERSED')),_0x3830a3['descriptionFactory']['registerDescriptionCallback'](_0x41fc7e=>{const {data:_0x431265}=_0x41fc7e;if(_0x431265&&'listReversed'==_0x431265['key'])return null==_0x431265['newValue']||0x0==_0x431265['newValue']&&null==_0x431265['oldValue']?_0x356214:void 0x0;}),_0x3830a3['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2b7f96,'FORMAT_LIST_START')),_0x3830a3['descriptionFactory']['registerDescriptionCallback'](_0x3e3043=>{const {data:_0x10209a}=_0x3e3043;if(_0x10209a&&'listStart'==_0x10209a['key'])return null==_0x10209a['newValue']||0x1==_0x10209a['newValue']&&null==_0x10209a['oldValue']?_0x356214:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2f5604=>{if(_0x2f5604['batch']['isUndo'])return!0x1;let _0x1e6a18=!0x1;const _0x177d23=_0x3830a3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34a751=>{const _0x2b8988=_0x3830a3['_getAttributeKey'](_0x34a751);return'listStart'==_0x2b8988||'listReversed'==_0x2b8988;});for(const _0x2339ed of _0x177d23){const _0x2d2d71=_0x2339ed['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2d2d71||'customNumbered'==_0x2d2d71)continue;_0x3830a3['_findSuggestions'](_0x2339ed['getFirstRange'](),'attribute')['find'](_0x426537=>'listType'==_0x3830a3['_getAttributeKey'](_0x426537['suggestion']))||(_0x2f5604['removeMarker'](_0x2339ed['getFirstMarker']()),_0x1e6a18=!0x0);}return _0x1e6a18;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4df1b6){const _0x1e42bd=this['editor']['locale'],{data:_0x79c46a}=_0x4df1b6,_0x742f01={'type':'format','content':''};if(!_0x79c46a||'listStyle'!=_0x79c46a['key'])return;if(!_0x79c46a['oldValue'])return'default'==_0x79c46a['newValue']?_0x742f01:{'type':'format','content':''+o(_0x1e42bd,'*Set\x20format:*\x20%0',o(_0x1e42bd,this['_getTranslationKeyForListStyle'](_0x79c46a['newValue'])))};if(!_0x79c46a['newValue']){if('default'==_0x79c46a['oldValue'])return _0x742f01;let _0x156e1e=_0x4df1b6['head'];for(;_0x156e1e;){if(_0x156e1e['data']&&'listType'==_0x156e1e['data']['key']&&_0x156e1e['data']['newValue'])return _0x742f01;_0x156e1e=_0x156e1e['next'];}return{'type':'format','content':''+o(_0x1e42bd,'*Remove\x20format:*\x20%0',o(_0x1e42bd,this['_getTranslationKeyForListStyle'](_0x79c46a['oldValue'])))};}if('default'!=_0x79c46a['newValue'])return{'type':'format','content':''+o(_0x1e42bd,'*Set\x20format:*\x20%0',o(_0x1e42bd,this['_getTranslationKeyForListStyle'](_0x79c46a['newValue'])))};let _0x356ead=_0x4df1b6['head'];for(;_0x356ead;){if(_0x356ead['data']&&'listType'==_0x356ead['data']['key']&&_0x356ead['data']['newValue']&&_0x356ead['data']['oldValue'])return _0x742f01;_0x356ead=_0x356ead['next'];}return{'type':'format','content':o(_0x1e42bd,'*Set\x20format:*\x20%0',o(_0x1e42bd,'ELEMENT_'+_0x4df1b6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5830c0=this['editor'],_0x30fd80=_0x5830c0['locale'];_0x5830c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36784d=>{if('formatBlock'!=_0x36784d['type'])return;const {data:_0x508033}=_0x36784d;if(!_0x508033)return;let _0x27b778,_0x5dedf9;switch(_0x508033['commandName']){case'listStyle':_0x27b778='*Change\x20to:*\x20%0',_0x5dedf9={'type':'format','content':o(_0x30fd80,_0x27b778,o(_0x30fd80,this['_getTranslationKeyForListStyle'](_0x508033['commandParams'][0x0]['type'])))};break;case'listReversed':_0x27b778=_0x508033['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5dedf9={'type':'format','content':o(_0x30fd80,_0x27b778)};break;case'listStart':_0x27b778='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5dedf9={'type':'format','content':o(_0x30fd80,_0x27b778,_0x508033['commandParams'][0x0]['startIndex'])};}return _0x5dedf9;});}['_getTranslationKeyForListStyle'](_0x221635){return'ELEMENT_'+function(_0x2321b9){if(pe['includes'](_0x2321b9))return'bulleted';if(ye['includes'](_0x2321b9))return'numbered';return null;}(_0x221635)['toUpperCase']()+'_LIST_'+_0x221635['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x5e9c6f{static get['requires'](){return[_0x4d45a6];}['init'](){const _0x2b014a=this['editor'],_0x5cc61d=_0x2b014a['plugins']['get']('TrackChangesEditing'),_0x3eea98=_0x2b014a['commands']['get']('enter');_0x5cc61d['enableCommand']('enter',()=>{_0x2b014a['model']['change'](_0x1d499d=>{const _0x28fbbb=_0x2b014a['model']['document']['selection'],_0x16b6a1=_0x28fbbb['getFirstPosition'](),_0x1144bb=_0x169303['fromRange'](_0x28fbbb['getFirstRange']());if(_0x3eea98['enterBlock'](_0x1d499d)){const _0x1c20ef=_0x2b014a['model']['createPositionAt'](_0x16b6a1['parent']['nextSibling'],0x0),_0x1fcc1d=_0x1d499d['createRange'](_0x16b6a1,_0x1c20ef);_0x5cc61d['markInsertion'](_0x1fcc1d);}else _0x1d499d['setSelection'](_0x1d499d['createRange'](_0x1144bb['end']));_0x1144bb['detach'](),_0x3eea98['fire']('afterExecute',{'writer':_0x1d499d});});}),_0x2b014a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2b014a,'split'),{'priority':'high'}),_0x2b014a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x32bc93,_0x3b2223,_0x437d92)=>{const _0x8aff60=_0x437d92['mapper']['markerNameToElements'](_0x3b2223['markerName']);if(_0x8aff60){for(const _0x21b0cf of _0x8aff60)_0x21b0cf['hasClass']('ck-suggestion-marker-split')&&(_0x437d92['mapper']['unbindElementFromMarkerName'](_0x21b0cf,_0x3b2223['markerName']),_0x437d92['writer']['remove'](_0x21b0cf));}},{'priority':'high'}),_0x2b014a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x8f8140,_0x8d6d18,_0x496a1a)=>{_0x496a1a['options']['showSuggestionHighlights']&&_e(_0x2b014a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x8f8140,_0x8d6d18,_0x496a1a);},{'priority':'high'});}}class J extends _0x5e9c6f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x723dcd=this['editor']['plugins']['get']('TrackChangesEditing');_0x723dcd['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x723dcd['enableCommand']('findNext'),_0x723dcd['enableCommand']('findPrevious'),_0x723dcd['enableCommand']('replace'),_0x723dcd['enableCommand']('replaceAll');}['handleFindCommand'](_0x25214e,_0x12681e,_0x4482b8={}){const _0x1757bf=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x25214e(_0x28b780=>('string'==typeof _0x12681e?_0x1757bf['findByTextCallback'](_0x12681e,_0x4482b8):_0x12681e)(_0x28b780)['filter'](_0x22845a=>!0x1===this['_isInDeletionRange'](_0x22845a,_0x28b780['item'])),_0x4482b8);}['_isInDeletionRange'](_0x383cc2,_0x26b618){const _0x27b9a4=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26b618,_0x383cc2['start']),this['editor']['model']['createPositionAt'](_0x26b618,_0x383cc2['end']));for(const _0x3c665a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x27b9a4['getIntersection'](_0x3c665a['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 _0x5e9c6f{['afterInit'](){const _0x27a617=this['editor']['locale'],_0x4889d9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2e0111,commandName:_0x2b0f9a}of ro)this['editor']['plugins']['has'](_0x2e0111)&&(_0x4889d9['enableDefaultAttributesIntegration'](_0x2b0f9a),_0x4889d9['registerInlineAttribute'](_0x2b0f9a));_0x27a617['t'],_0x4889d9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x27a617,'FORMAT_FONT_SIZE')),_0x4889d9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x27a617,'FORMAT_FONT_FAMILY')),_0x4889d9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x27a617,'FORMAT_FONT_COLOR')),_0x4889d9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x27a617,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xea646e=this['editor'],_0x178812=_0xea646e['locale'];_0xea646e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a5e9a=>{const _0x4677fc=_0x178812['t'];if('formatInline'!=_0x2a5e9a['type'])return;const {data:_0x33f01e}=_0x2a5e9a;if(null!=_0x33f01e){if('fontSize'==_0x33f01e['commandName']){const _0x5f0fac=_0x33f01e['commandParams'][0x0]['value'];if(_0x5f0fac){const _0x3d5b94=_0x4677fc(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x46f02d=>_0x46f02d['model']==_0x5f0fac)['title'])['toLowerCase']();return{'type':'format','content':o(_0x178812,'*Set\x20font\x20size:*\x20%0',_0x3d5b94)};}return{'type':'format','content':o(_0x178812,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x33f01e['commandName']){const _0xad9a6e=_0x33f01e['commandParams'][0x0]['value'];return _0xad9a6e?{'type':'format','content':o(_0x178812,'*Set\x20font\x20family:*\x20%0',_0xad9a6e)}:{'type':'format','content':o(_0x178812,'*Reset\x20font\x20family*')};}if('fontColor'==_0x33f01e['commandName']){const _0x50c13d=_0x33f01e['commandParams'][0x0]['value'];if(_0x50c13d){const _0x5ba306=_0x5ca678(this['editor']['config']['get']('fontColor.colors'))['find'](_0x37c20a=>_0x37c20a['model']==_0x50c13d);let _0x1d8f11=_0x50c13d,_0x5d1d26='';return _0x5ba306&&(_0x1d8f11=_0x5ba306['label'],_0x5d1d26=_0x4677fc(_0x1d8f11)['toLowerCase']()),{'type':'format','content':o(_0x178812,'*Set\x20font\x20color:*\x20%0',_0x5d1d26)['trim'](),'color':{'value':_0x50c13d,'title':_0x5d1d26||_0x1d8f11}};}return{'type':'format','content':o(_0x178812,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x33f01e['commandName']){const _0x45ba82=_0x33f01e['commandParams'][0x0]['value'];if(_0x45ba82){const _0x6460e4=_0x5ca678(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5e0ffb=>_0x5e0ffb['model']==_0x45ba82);let _0x41137a=_0x45ba82,_0x477122='';return _0x6460e4&&(_0x41137a=_0x6460e4['label'],_0x477122=_0x4677fc(_0x41137a)['toLowerCase']()),{'type':'format','content':o(_0x178812,'*Set\x20font\x20background\x20color:*\x20%0',_0x477122)['trim'](),'color':{'value':_0x45ba82,'title':_0x477122||_0x41137a}};}return{'type':'format','content':o(_0x178812,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x5e9c6f{['afterInit'](){const _0x6f40fd=this['editor'],_0x3af372=_0x6f40fd['plugins']['get']('TrackChangesEditing'),_0x5cce32=_0x6f40fd['commands']['get']('copyFormat'),_0x46c27c=_0x6f40fd['commands']['get']('pasteFormat');_0x5cce32&&_0x46c27c&&(_0x3af372['enableDefaultAttributesIntegration']('pasteFormat'),_0x3af372['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x13d760=this['editor'],_0x9dbbeb=_0x13d760['locale'];_0x13d760['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x366aa1=>{if('formatBlock'!=_0x366aa1['type']&&'formatInline'!=_0x366aa1['type'])return;const {data:_0x339d0e}=_0x366aa1;if(_0x339d0e&&'pasteFormat'===_0x339d0e['commandName']){const _0x2b6289=[],_0x5a5d97=_0x339d0e['commandParams'][0x0];for(const [_0x2d2624,_0x30a683]of Object['entries'](_0x5a5d97))_0x2b6289['push'](so(_0x13d760,_0x2d2624,_0x30a683));return _0x2b6289['length']?{'type':'format','content':o(_0x9dbbeb,'*Set\x20format\x20to:*\x20%0',_0x2b6289['join'](',\x20'))}:{'type':'format','content':o(_0x9dbbeb,'*Remove\x20all\x20formatting*')};}});}}function so(_0xd7f488,_0x10453d,_0x45aaf2){const _0x20a27e=_0xd7f488['locale']['t'],_0x189fd5=_0x10453d['split'](/(?=[A-Z])/)['join']('\x20'),_0x534a1d=_0x20a27e(_0x189fd5['charAt'](0x0)['toUpperCase']()+_0x189fd5['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x45aaf2)return _0x534a1d;if('fontColor'===_0x10453d||'fontBackgroundColor'===_0x10453d){const _0x484639=_0x5ca678(_0xd7f488['config']['get']('fontColor.colors'))['find'](_0x26b789=>_0x26b789['model']==_0x45aaf2);return _0x534a1d+'\x20('+(_0x484639?_0x20a27e(_0x484639['label'])['toLowerCase']():_0x45aaf2)+')';}if('fontSize'===_0x10453d&&isNaN(parseFloat(_0x45aaf2))){const _0xefe2ae=_0xd7f488['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xd7f488['config']['get']('fontSize.options'))['find'](_0x474018=>_0x474018['model']==_0x45aaf2);return _0x534a1d+'\x20('+(_0xefe2ae?_0x20a27e(_0xefe2ae['title'])['toLowerCase']():_0x45aaf2)+')';}return _0x534a1d+'\x20('+_0x45aaf2+')';}class Y extends _0x5e9c6f{['_headingOptions'];['afterInit'](){const _0x267bd8=this['editor'];if(!_0x267bd8['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x267bd8['config']['get']('heading.options');const _0x4bc7de=_0x267bd8['locale'],_0x3efe0f=_0x267bd8['plugins']['get']('TrackChangesEditing');_0x3efe0f['enableDefaultAttributesIntegration']('heading');for(const _0x549323 of this['_headingOptions'])'paragraph'!=_0x549323['model']&&_0x3efe0f['descriptionFactory']['registerElementLabel'](_0x549323['model'],_0x264932=>{const _0x5b3083=this['_getHeadingLevel'](_0x549323['model']);return null!==_0x5b3083?_0x163a55(_0x264932,_0x5b3083):_0x9bd6ce(_0x264932,_0x549323['title']);});function _0x163a55(_0x1f311d,_0x15d85b){return o(_0x4bc7de,'ELEMENT_HEADING',[_0x1f311d,_0x15d85b]);}function _0x9bd6ce(_0x378d48,_0x48d403){return o(_0x4bc7de,'ELEMENT_HEADING_CUSTOM',[_0x378d48,_0x48d403]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x130c7f=this['editor'],_0x5be6e8=_0x130c7f['locale'];function _0x3deaec(_0x301349,_0x58c217){return o(_0x5be6e8,'ELEMENT_HEADING_CUSTOM',[_0x301349,_0x58c217]);}_0x130c7f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x535a13=>{if('formatBlock'!=_0x535a13['type'])return;const {data:_0x1a284e}=_0x535a13;if(_0x1a284e&&'heading'==_0x1a284e['commandName']){const _0x2b1015=_0x1a284e['commandParams'][0x0]['value'],_0x2712be=this['_getHeadingLevel'](_0x2b1015);if(null!==_0x2712be)return{'type':'format','content':o(_0x5be6e8,'*Change\x20to:*\x20%0',(_0x125b16=0x1,_0x17b47e=_0x2712be,o(_0x5be6e8,'ELEMENT_HEADING',[_0x125b16,_0x17b47e])))};const _0x51065c=this['_headingOptions']['find'](_0x3e6af2=>_0x3e6af2['model']===_0x2b1015)['title'];return{'type':'format','content':o(_0x5be6e8,'*Change\x20to:*\x20%0',_0x3deaec(0x1,_0x51065c))};}var _0x125b16,_0x17b47e;});}['_getHeadingLevel'](_0x230117){const _0x226733=_0x230117['match'](/^heading(\d+)/);if(_0x226733)return _0x226733[0x1];const _0x2589fb=this['_headingOptions']?.['find'](_0x18a74e=>_0x18a74e['model']==_0x230117);if(_0x2589fb&&_0x2589fb['view']){const _0x45ad94=_0x2589fb['view'],_0x5affc1=(_0x45ad94['name']??_0x45ad94)['match'](/^h(\d+)/);if(_0x5affc1)return _0x5affc1[0x1];}return null;}}class Z extends _0x5e9c6f{['afterInit'](){const _0x367ba7=this['editor'];if(!_0x367ba7['plugins']['has']('HighlightEditing'))return;const _0x49aa94=_0x367ba7['plugins']['get']('TrackChangesEditing'),_0xd8af83=_0x367ba7['locale'];_0x49aa94['enableDefaultAttributesIntegration']('highlight'),_0x49aa94['registerInlineAttribute']('highlight'),_0x49aa94['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xd8af83,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33bbe3=this['editor'],_0x3654e1=_0x33bbe3['locale'];_0x33bbe3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e8923=>{if('formatInline'!=_0x1e8923['type'])return;const {data:_0x1d711c}=_0x1e8923;if(_0x1d711c&&'highlight'==_0x1d711c['commandName']){const _0x4573e8=_0x3654e1['t'],_0x24fda3=_0x1d711c['commandParams'][0x0]['value'];if(_0x24fda3){const _0x39da31=_0x33bbe3['config']['get']('highlight.options')['find'](_0x114eb7=>_0x114eb7['model']==_0x24fda3),_0x45cf32=_0x4573e8(_0x39da31['title'])['toLowerCase']();return{'type':'format','content':o(_0x3654e1,'*Set\x20highlight:*\x20%0',_0x45cf32),'color':{'value':_0x39da31['color'],'title':_0x39da31['title']}};}return{'type':'format','content':o(_0x3654e1,'*Remove\x20highlight*',o(_0x3654e1,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x5e9c6f{['afterInit'](){const _0x42a80e=this['editor'];if(!_0x42a80e['plugins']['has']('HorizontalLineEditing'))return;_0x42a80e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x43b742=_0x42a80e['plugins']['get']('TrackChangesEditing'),_0x46fd57=_0x42a80e['locale'];_0x43b742['descriptionFactory']['registerElementLabel']('horizontalLine',_0x146bb7=>o(_0x46fd57,'ELEMENT_HORIZONTAL_LINE',_0x146bb7)),_0x42a80e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xa65e3c,{writer:_0x48f067,options:_0x7d679c})=>{if(!_0x7d679c['showSuggestionHighlights'])return null;const _0x5a330d=_0x48f067['createContainerElement']('div'),_0x2a04f5=_0x48f067['createEmptyElement']('hr');return _0x48f067['addClass']('ck-horizontal-line',_0x5a330d),_0x48f067['insert'](_0x48f067['createPositionAt'](_0x5a330d,0x0),_0x2a04f5),_0x5a330d;},'converterPriority':'high'});}}class et extends _0x5e9c6f{['afterInit'](){const _0x4345ab=this['editor'];if(!_0x4345ab['plugins']['has']('HtmlEmbed'))return;const _0x4d539d=_0x4345ab['plugins']['get']('TrackChangesEditing'),_0x237c97=_0x4345ab['locale'];_0x4d539d['descriptionFactory']['registerElementLabel']('rawHtml',_0x4a40b1=>o(_0x237c97,'ELEMENT_HTML_EMBED',_0x4a40b1)),_0x4d539d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4d539d['registerBlockAttribute']('value'),_0x4d539d['descriptionFactory']['registerDescriptionCallback'](_0x218a83=>{if('attribute'!=_0x218a83['type'])return;const {data:_0x1ca34e}=_0x218a83;if(_0x1ca34e&&'value'==_0x1ca34e['key']&&_0x218a83['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x21a1b6=o(_0x237c97,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x237c97,'*Change\x20%0\x20content*',_0x21a1b6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a41b9=this['editor'],_0x28b574=_0x4a41b9['locale'];_0x4a41b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48626d=>{if('formatBlock'!=_0x48626d['type'])return;const {data:_0x499d6e}=_0x48626d;if(_0x499d6e&&'htmlEmbed'==_0x499d6e['commandName']){const _0x501266=o(_0x28b574,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x28b574,'*Change\x20%0\x20content*',_0x501266)};}});}}class it extends _0x5e9c6f{['afterInit'](){const _0x23c66f=this['editor'];if(!_0x23c66f['plugins']['has']('ImageEditing'))return;const _0x294019=_0x23c66f['plugins']['get']('TrackChangesEditing'),_0x1e7e52=_0x23c66f['plugins']['get']('ImageUtils'),_0x21a731=_0x23c66f['locale'];_0x294019['enableCommand']('insertImage'),_0x294019['descriptionFactory']['registerElementLabel']('imageBlock',_0x463b90=>o(_0x21a731,'ELEMENT_IMAGE',_0x463b90)),_0x294019['descriptionFactory']['registerElementLabel']('imageInline',_0x4bb478=>o(_0x21a731,'ELEMENT_INLINE_IMAGE',_0x4bb478)),_0x294019['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x21a731,'ELEMENT_CAPTION')),_0x23c66f['plugins']['has']('ImageUploadEditing')&&_0x294019['enableCommand']('uploadImage'),_0x23c66f['plugins']['has']('ImageBlockEditing')&&_0x23c66f['plugins']['has']('ImageInlineEditing')&&(_0x294019['enableCommand']('imageTypeInline',(_0x10a1b1,_0x4b3c8a)=>{const _0x4251c1=_0x1e7e52['getClosestSelectedImageElement'](_0x23c66f['model']['document']['selection']);_0x23c66f['model']['change'](()=>{_0x294019['markBlockFormat'](_0x4251c1,{'commandName':'imageTypeInline','commandParams':[_0x4b3c8a]},[],'convertBlockImageToInline');});}),_0x294019['enableCommand']('imageTypeBlock',(_0x4979a8,_0x27d38b)=>{_0x23c66f['model']['change'](_0x321b62=>{let _0x571a62=_0x1e7e52['getClosestSelectedImageElement'](_0x23c66f['model']['document']['selection']),_0x2b27db=_0x321b62['createRangeOn'](_0x571a62);const _0x25cc7a=_0x1939de['fromPosition'](_0x2b27db['start'],'toPrevious'),_0x1f6c44=_0x1939de['fromPosition'](_0x2b27db['end'],'toNext');_0x294019['forceDefaultExecution'](()=>_0x4979a8(_0x27d38b)),_0x571a62=_0x1e7e52['getClosestSelectedImageElement'](_0x23c66f['model']['document']['selection']),_0x2b27db=_0x321b62['createRangeOn'](_0x571a62);const _0x1c886f=_0x321b62['createRange'](_0x25cc7a,_0x1f6c44);_0x25cc7a['detach'](),_0x1f6c44['detach'](),_0x294019['markBlockFormat'](_0x571a62,{'commandName':'imageTypeInline','commandParams':[_0x27d38b]},[],'convertInlineImageToBlock'),_0x1c886f['start']['isBefore'](_0x2b27db['start'])&&_0x294019['markInsertion'](_0x321b62['createRange'](_0x1c886f['start'],_0x2b27db['start']),'convertInlineImageToBlock'),_0x2b27db['end']['isBefore'](_0x1c886f['end'])&&_0x294019['markInsertion'](_0x321b62['createRange'](_0x2b27db['end'],_0x1c886f['end']),'convertInlineImageToBlock');});}),_0x294019['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x294019['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x294019['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x294019['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x294019['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x294019['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1832cd])=>{const _0x5a2365=_0x294019['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3412a8=_0x1832cd['start'],_0x2adf53=_0x1832cd['end'];const _0x41b257=_0x23c66f['model']['schema']['getNearestSelectionRange'](_0x3412a8,'backward'),_0x1fadfc=_0x23c66f['model']['schema']['getNearestSelectionRange'](_0x2adf53,'forward');_0x41b257['isCollapsed']&&(_0x3412a8=_0x41b257['start']),_0x1fadfc['isCollapsed']&&(_0x2adf53=_0x1fadfc['end']),_0x5a2365([_0x23c66f['model']['createRange'](_0x3412a8,_0x2adf53)]);}),_0x294019['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x159feb),_0x294019['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x159feb)),_0x23c66f['plugins']['has']('ImageCaptionEditing')&&(_0x294019['enableCommand']('toggleImageCaption',(_0x5df4d9,_0x5284f6)=>{const _0x5a298a=_0x23c66f['plugins']['get']('ImageCaptionUtils');let _0x479d6c=_0x1e7e52['getClosestSelectedImageElement'](_0x23c66f['model']['document']['selection']),_0x2f9458=_0x5a298a['getCaptionFromImageModelElement'](_0x479d6c);_0x23c66f['model']['change'](()=>{if(_0x2f9458)return void _0x294019['markDeletion'](_0x23c66f['model']['createRangeOn'](_0x2f9458));const _0x2de170=_0x1e7e52['isBlockImage'](_0x479d6c);_0x5df4d9(_0x5284f6),_0x479d6c=_0x1e7e52['getClosestSelectedImageElement'](_0x23c66f['model']['document']['selection']),_0x2f9458=_0x5a298a['getCaptionFromImageModelElement'](_0x479d6c),_0x294019['markInsertion'](_0x23c66f['model']['createRangeOn'](_0x2f9458),_0x2de170?null:'imageCaption');});}),_0x294019['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x159feb));const _0xa164d1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x42ef16(_0x31e8b8,_0x1eda8e){const _0x4e3c72=_0xa164d1['findIndex'](({type:_0x170ffb,subType:_0x3230d9})=>_0x31e8b8['type']==_0x170ffb&&_0x31e8b8['subType']==_0x3230d9),_0x2074f6=_0xa164d1['findIndex'](({type:_0x9f6077,subType:_0x5bb434})=>_0x1eda8e['type']==_0x9f6077&&_0x1eda8e['subType']==_0x5bb434);if(_0x4e3c72<0x0||_0x2074f6<0x0)return!0x1;const _0x2df314=_0x31e8b8['getFirstRange'](),_0x25886e=_0x1eda8e['getFirstRange']();if((0x0==_0x4e3c72||0x1==_0x4e3c72)&&0x2==_0x2074f6&&_0x2df314['isIntersecting'](_0x25886e))return!0x0;if(0x2==_0x4e3c72&&0x3==_0x2074f6){const _0x451b96=_0x294019['_findSuggestions'](_0x2df314,'insertion')['filter'](({suggestion:_0x1b4fe1,meta:_0x263cdb})=>_0x263cdb['isOwn']&&'convertInlineImageToBlock'==_0x1b4fe1['subType']);if(_0x451b96['length']>0x1&&_0x25886e['end']['isEqual'](_0x2df314['start']))return!0x0;if(0x1==_0x451b96['length']&&(_0x2df314['start']['isEqual'](_0x25886e['end'])||_0x2df314['end']['isEqual'](_0x25886e['start'])))return!0x0;}if(0x3==_0x4e3c72&&0x3==_0x2074f6&&_0x2df314['start']['isBefore'](_0x25886e['start'])){const _0x1d7ced=_0x2df314['end']['nodeAfter'],_0x3519f8=_0x25886e['start']['nodeBefore'];return _0x1e7e52['isBlockImage'](_0x1d7ced)&&_0x1d7ced===_0x3519f8;}return!0x1;}function _0x159feb(_0x5db644,_0x5d11ac){return _0x42ef16(_0x5db644,_0x5d11ac)?[_0x5db644,_0x5d11ac]:_0x42ef16(_0x5d11ac,_0x5db644)?[_0x5d11ac,_0x5db644]:null;}_0x23c66f['plugins']['has']('ImageResize')&&(_0x294019['enableDefaultAttributesIntegration']('resizeImage'),_0x294019['registerBlockAttribute']('resizedWidth'),_0x294019['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x21a731,'FORMAT_IMAGE_SIZE'))),_0x23c66f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x294019['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x294019['registerBlockAttribute']('alt')),_0x294019['descriptionFactory']['registerDescriptionCallback'](_0x26bf93=>{if(!!_0xa164d1['find'](({type:_0x2a2b73,subType:_0x287607})=>_0x26bf93['type']==_0x2a2b73&&_0x26bf93['subType']==_0x287607))return _0x26bf93['previous']?{}:void 0x0;}),_0x294019['descriptionFactory']['registerDescriptionCallback'](_0x517797=>{if('insertion'==_0x517797['type']||'deletion'==_0x517797['type']){const _0x164f7c=_0x517797['getContainedElement']();if(_0x164f7c&&_0x164f7c['is']('element','caption'))return{'type':'insertion'==_0x517797['type']?'addObject':'removeObject','element':_0x164f7c,'quantity':0x1};}}),_0x294019['descriptionFactory']['registerDescriptionCallback'](_0x581019=>'formatBlock'==_0x581019['type']&&'convertInlineImageToBlock'==_0x581019['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x581019['type']&&'convertBlockImageToInline'==_0x581019['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x294019['descriptionFactory']['registerDescriptionCallback'](_0x465055=>{if('attribute'!=_0x465055['type'])return;const {data:_0x3c3c9a}=_0x465055;if(!_0x3c3c9a||'alt'!=_0x3c3c9a['key'])return;const _0xb7a5df=_0x3c3c9a['newValue'];return _0xb7a5df?{'type':'format','content':o(_0x21a731,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xb7a5df+'\x22')}:{'type':'format','content':o(_0x21a731,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51823e=this['editor'],_0x3c6892=_0x51823e['locale'];_0x51823e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfd51e7=>{if('formatBlock'!=_0xfd51e7['type']&&'formatInline'!=_0xfd51e7['type'])return;const {data:_0x1a93a2}=_0xfd51e7;if(_0x1a93a2){if('imageTextAlternative'==_0x1a93a2['commandName']){const _0xcecb57=_0x1a93a2['commandParams'][0x0]['newValue'];return _0xcecb57?{'type':'format','content':o(_0x3c6892,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xcecb57+'\x22')}:{'type':'format','content':o(_0x3c6892,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1a93a2['commandName']){const _0x8ce4d3=_0x1a93a2['commandParams'][0x0]['width'];return _0x8ce4d3?{'type':'format','content':o(_0x3c6892,'*Set\x20image\x20width:*\x20%0',_0x8ce4d3)}:{'type':'format','content':o(_0x3c6892,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5e9c6f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3b3a4b=this['editor']['locale'],_0x2f2464=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f2464['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2f2464['registerBlockAttribute']('src'),_0x2f2464['descriptionFactory']['registerDescriptionCallback'](_0x18c30d=>{if('attribute'!=_0x18c30d['type'])return;const {data:_0x5f4a46}=_0x18c30d;return _0x5f4a46&&'src'==_0x5f4a46['key']?_0x5f4a46['newValue']&&_0x5f4a46['oldValue']?{'type':'format','content':o(_0x3b3a4b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5a49fd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a49fd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5a49fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5a49fd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5a49fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5aa204=this['editor'],_0x1c1fac=_0x5aa204['locale'];_0x5aa204['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58fd68=>{if('formatBlock'!=_0x58fd68['type']&&'formatInline'!=_0x58fd68['type'])return;const {data:_0x4d0fc6}=_0x58fd68;if(!_0x4d0fc6||'replaceImageSource'!=_0x4d0fc6['commandName'])return;return{'type':'format','content':o(_0x1c1fac,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x5e9c6f{['afterInit'](){const _0x388d15=this['editor'];if(!_0x388d15['plugins']['has']('ImageStyleEditing'))return;const _0x3db3b8=_0x388d15['plugins']['get']('TrackChangesEditing'),_0x36b907=_0x388d15['plugins']['get']('ImageUtils'),_0x57c42f={};_0x3db3b8['enableCommand']('imageStyle',(_0x4a94bc,_0x37cddd)=>{const _0xf76e49=_0x388d15['plugins']['get']('Users')['me'],_0x1d3e8f=_0x388d15['commands']['get']('imageStyle');let _0x199314=_0x36b907['getClosestSelectedImageElement'](_0x388d15['model']['document']['selection']),_0x216f33=_0x388d15['model']['createRangeOn'](_0x199314),_0x4cd3a9=_0x1d3e8f['value'];if(_0x4cd3a9==_0x37cddd['value'])return;const _0xde403c={'commandName':'imageStyle','commandParams':[_0x37cddd],'formatGroupId':_0xbad781()};_0x388d15['model']['change'](()=>{if(_0x3db3b8['getSuggestions']()['filter'](_0x2797f9=>_0x2797f9['isInContent']&&_0xf76e49==_0x2797f9['author']&&('formatBlock'==_0x2797f9['type']||'formatInline'==_0x2797f9['type'])&&('imageStylePreApply'==_0x2797f9['subType']||'imageStylePostApply'==_0x2797f9['subType'])&&_0x2797f9['getFirstRange']()['isEqual'](_0x216f33))['forEach'](_0x1a4ded=>_0x3db3b8['discardSuggestion'](_0x1a4ded['head'])),_0x199314=_0x36b907['getClosestSelectedImageElement'](_0x388d15['model']['document']['selection']),_0x216f33=_0x388d15['model']['createRangeOn'](_0x199314),_0x1d3e8f['refresh'](),_0x388d15['commands']['get']('imageTypeInline')['refresh'](),_0x388d15['commands']['get']('imageTypeBlock')['refresh'](),_0x4cd3a9=_0x1d3e8f['value'],_0x4cd3a9!=_0x37cddd['value'])return _0x36b907['isInlineImage'](_0x199314)&&_0x1d3e8f['shouldConvertImageType'](_0x37cddd['value'],_0x199314)?(_0x4a94bc({..._0x37cddd,'setImageSizes':!0x1}),_0x199314=_0x36b907['getClosestSelectedImageElement'](_0x388d15['model']['document']['selection']),void _0x3db3b8['markBlockFormat'](_0x199314,{..._0xde403c,'commandReversedParams':[{'value':_0x4cd3a9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x36b907['isBlockImage'](_0x199314)?_0x3db3b8['markBlockFormat'](_0x199314,_0xde403c,[],'imageStylePostApply'):_0x3db3b8['markInlineFormat'](_0x216f33,_0xde403c,'imageStylePostApply'));});});for(const _0x48edab of _0x388d15['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x57c42f[_0x48edab['name']]=_0x48edab['title']['toLowerCase']();_0x3db3b8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3db3b8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3db3b8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3db3b8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2284d0])=>{_0x36b907['setImageNaturalSizeAttributes'](_0x2284d0['getContainedElement']());}),_0x3db3b8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x254590,_0x49e4b3)=>{_0x3db3b8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x254590,{'commandName':_0x49e4b3['commandName'],'commandParams':_0x49e4b3['commandReversedParams']});}),_0x3db3b8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x56ad62,_0x562dea){if(_0x2354c3(_0x56ad62,_0x562dea))return[_0x56ad62,_0x562dea];if(_0x2354c3(_0x562dea,_0x56ad62))return[_0x562dea,_0x56ad62];return null;});const _0x53d353=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2354c3(_0x518c55,_0x22bd2c){const _0x51257d=_0x53d353['findIndex'](({type:_0x19f784,subType:_0x231b69})=>_0x518c55['type']==_0x19f784&&_0x518c55['subType']==_0x231b69),_0x13e80f=_0x53d353['findIndex'](({type:_0x770434,subType:_0x181437})=>_0x22bd2c['type']==_0x770434&&_0x22bd2c['subType']==_0x181437);if(_0x51257d<0x0||_0x13e80f<0x0)return!0x1;const _0x5bf17a=_0x518c55['getFirstRange'](),_0x25aaa1=_0x22bd2c['getFirstRange']();if((0x0==_0x51257d||0x1==_0x51257d)&&0x2==_0x13e80f&&_0x5bf17a['isIntersecting'](_0x25aaa1))return!0x0;if(0x2==_0x51257d&&0x3==_0x13e80f){const _0x272895=_0x3db3b8['_findSuggestions'](_0x5bf17a,'insertion')['filter'](({suggestion:_0x4eeace,meta:_0x50f92e})=>_0x50f92e['isOwn']&&'convertInlineImageToBlock'==_0x4eeace['subType']);if(_0x272895['length']>0x1&&_0x25aaa1['end']['isEqual'](_0x5bf17a['start']))return!0x0;if(0x1==_0x272895['length']&&(_0x5bf17a['start']['isEqual'](_0x25aaa1['end'])||_0x5bf17a['end']['isEqual'](_0x25aaa1['start'])))return!0x0;}if(0x3==_0x51257d&&0x3==_0x13e80f&&_0x5bf17a['start']['isBefore'](_0x25aaa1['start'])){const _0x1c9b4a=_0x5bf17a['end']['nodeAfter'],_0x4bff27=_0x25aaa1['start']['nodeBefore'];return _0x36b907['isBlockImage'](_0x1c9b4a)&&_0x1c9b4a===_0x4bff27;}return!0x1;}_0x388d15['model']['document']['registerPostFixer'](()=>{let _0x3bc663=!0x1;const _0xcae352=Array['from'](_0x388d15['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x990e07,data:_0xe8536a}of _0xcae352){const {group:_0x413db3,type:_0x13025b,subType:_0x36e6a0,id:_0x25bbb9}=_0x3db3b8['_splitMarkerName'](_0x990e07);if('suggestion'==_0x413db3&&_0x3db3b8['hasSuggestion'](_0x25bbb9)){if('formatBlock'==_0x13025b&&('imageStylePreApply'==_0x36e6a0||'imageStylePostApply'==_0x36e6a0)){const _0x157c8a=_0x3db3b8['getSuggestion'](_0x25bbb9);if(_0xe8536a['newRange']){const _0x5df9ee=_0x157c8a['getFirstRange']()['getContainedElement']();if(_0x36b907['isBlockImage'](_0x5df9ee))continue;_0x3db3b8['discardSuggestion'](_0x157c8a),_0x3bc663=!0x0;}}if('insertion'==_0x13025b&&'imageCaption'==_0x36e6a0&&!_0xe8536a['newRange']){const _0x45a4ae=_0x3db3b8['getSuggestion'](_0x25bbb9);_0x45a4ae['next']&&_0x45a4ae['next']['isInContent']&&(_0x3db3b8['discardSuggestion'](_0x45a4ae['next']),_0x3bc663=!0x0);}}}return _0x3bc663;}),this['_registerLegacyDescription'](_0x57c42f);}['_registerLegacyDescription'](_0x3c0532){const _0x32c965=this['editor'],_0xa107b1=_0x32c965['locale'];_0x32c965['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x489c48=>{if('formatBlock'!=_0x489c48['type']&&'formatInline'!=_0x489c48['type'])return;const {data:_0x59f7c8}=_0x489c48;if(!_0x59f7c8||'imageStyle'!=_0x59f7c8['commandName'])return;const _0x7c4d48=_0x59f7c8['commandParams'][0x0]['value'];return _0x50e1e3('side'===_0x7c4d48?o(_0xa107b1,'FORMAT_SIDE_IMAGE'):_0x3c0532[_0x7c4d48]||_0x7c4d48);function _0x50e1e3(_0x4eea8b){return{'type':'format','content':o(_0xa107b1,'*Format:*\x20%0',_0x4eea8b)};}});}}class ot extends _0x5e9c6f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x525fbd){super(_0x525fbd),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x41dfbd=this['editor'],_0x2c853a=_0x41dfbd['commands']['get']('importWord'),_0x5859ff=_0x41dfbd['commands']['get']('trackChanges');_0x2c853a&&(_0x2c853a['on']('execute',(_0x552ee5,[,_0x2653ed])=>{this['_trackChangesValueDuringImport']=_0x5859ff['value'],_0x2653ed['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2c853a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2c853a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5859ff['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x41dfbd['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1544b5,_0x2b1004){const {suggestions:_0x29114f}=_0x2b1004,_0x16048d=this['editor']['commands']['get']('trackChanges'),_0x214d79=_0x16048d['value'];this['_trackChangesValueDuringImport']!==_0x214d79&&(_0x16048d['execute'](),this['_trackChangesExecuted']=!0x0),_0x29114f&&_0x29114f['forEach'](({id:_0x34f639,type:_0x3ad18d,author:_0x28efe9,created_at:_0x3fcfc9})=>{const _0x365711={'id':_0x34f639,'type':_0x3ad18d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x28efe9,'createdAt':_0x3fcfc9?new Date(_0x3fcfc9):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x365711);});}}class rt extends _0x5e9c6f{['afterInit'](){const _0x5b4e3a=this['editor'],_0x31d40c=_0x5b4e3a['plugins']['get']('TrackChangesEditing');if(_0x5b4e3a['plugins']['has']('IndentEditing')&&(_0x31d40c['enableCommand']('indent'),_0x31d40c['enableCommand']('outdent')),_0x5b4e3a['plugins']['has']('IndentBlock')){for(const _0x503e2f of['indentBlock','outdentBlock'])_0x31d40c['enableDefaultAttributesIntegration'](_0x503e2f);}const _0x74f437=_0x5b4e3a['locale'];_0x31d40c['registerBlockAttribute']('blockIndent'),_0x31d40c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x74f437,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c1a17=this['editor'],_0x2c9231=_0x4c1a17['locale'],_0x1f3e86=_0x4c1a17['plugins']['get']('TrackChangesEditing');_0x1f3e86['descriptionFactory']['registerDescriptionCallback'](_0x25212b=>{if('formatBlock'!=_0x25212b['type'])return;const {data:_0x29e22e}=_0x25212b;if(!_0x29e22e)return;if('indentBlock'!=_0x29e22e['commandName']&&'outdentBlock'!=_0x29e22e['commandName'])return;const _0x334e78=_0x25212b['getItems']()[0x0],_0xe94b13=_0x1f3e86['descriptionFactory']['getItemLabel'](_0x334e78);return'indentBlock'==_0x29e22e['commandName']?{'type':'format','content':o(_0x2c9231,'*Indent:*\x20%0',_0xe94b13)}:'outdentBlock'==_0x29e22e['commandName']?{'type':'format','content':o(_0x2c9231,'*Outdent:*\x20%0',_0xe94b13)}:void 0x0;});}}class at extends _0x5e9c6f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x5e9c6f{['afterInit'](){const _0x52326b=this['editor'];if(!_0x52326b['plugins']['has']('LinkEditing'))return;const _0x4c675c=_0x52326b['plugins']['get']('TrackChangesEditing'),_0x4b8804=_0x52326b['commands']['get']('link');_0x4c675c['enableDefaultAttributesIntegration']('link'),_0x4c675c['enableDefaultAttributesIntegration']('unlink'),_0x4c675c['registerInlineAttribute']('linkHref');for(const _0x259dab of _0x4b8804['manualDecorators'])_0x4c675c['registerInlineAttribute'](_0x259dab['id']),_0x4c675c['descriptionFactory']['registerAttributeLabel'](_0x259dab['id'],'link\x20('+_0x259dab['label']['toLowerCase']()+')');_0x4c675c['descriptionFactory']['registerDescriptionCallback'](_0x2ae49f=>{if('attribute'!=_0x2ae49f['type'])return;const {data:_0x54f307}=_0x2ae49f;if(!_0x54f307||'linkHref'!=_0x54f307['key'])return;const _0x2ee1a8=_0x54f307['newValue'],_0x35f9e1=_0x52326b['locale'];return{'type':'format','content':null==_0x2ee1a8?o(_0x35f9e1,'*Remove\x20link*'):o(_0x35f9e1,'*Set\x20link:*\x20%0','\x22'+_0x2ee1a8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d332a=this['editor'],_0x5deade=_0x5d332a['locale'];_0x5d332a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d6ec1=>{if('formatInline'!=_0x1d6ec1['type'])return;const {data:_0x15778c}=_0x1d6ec1;if(_0x15778c){if('link'==_0x15778c['commandName']){const _0x1b8cc2=_0x15778c['commandParams'][0x0];return{'type':'format','content':o(_0x5deade,'*Set\x20link:*\x20%0','\x22'+_0x1b8cc2+'\x22')};}return'unlink'==_0x15778c['commandName']?{'type':'format','content':o(_0x5deade,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x5e9c6f{['afterInit'](){const _0x26e136=this['editor'],_0x43fa4e=_0x26e136['locale'];if(!_0x26e136['plugins']['has']('LegacyListEditing'))return;const _0x1ecae2=_0x26e136['plugins']['get']('TrackChangesEditing'),_0x5856f2=_0x26e136['plugins']['has']('LegacyTodoListEditing');function _0x274ef0(_0x9b3c82){return()=>{const _0x51e6ed=_0x26e136['model']['document']['selection'],_0x24621b=_0x26e136['commands']['get'](_0x9b3c82);if(_0x24621b['value'])return void _0x26e136['execute']('paragraph',{});const _0x22351c=_0x9b3c82['slice'](0x0,-0x4),_0x40c973=function(_0x5caa76,_0x51319d,_0x550989){let _0x3a8f0f=Array['from'](_0x5caa76)['filter'](_0x230219=>function(_0x5acd72,_0x6e6653){return _0x6e6653['checkChild'](_0x5acd72['parent'],'listItem')&&!_0x6e6653['isObject'](_0x5acd72);}(_0x230219,_0x550989));_0x3a8f0f=_0x3a8f0f['filter'](_0x5d2a48=>!_0x5d2a48['is']('element','listItem')||_0x5d2a48['getAttribute']('listType')!=_0x51319d);const _0x5c8fc5=new Set();for(const _0x175401 of _0x3a8f0f)_0x175401['is']('element','listItem')?_0x5c8fc5['add'](me(_0x175401)):_0x5c8fc5['add'](_0x175401);return Array['from'](_0x5c8fc5);}(_0x51e6ed['getSelectedBlocks'](),_0x22351c,_0x26e136['model']['schema']);_0x26e136['model']['change'](()=>{for(const _0x2ecd4f of _0x40c973)_0x1ecae2['markBlockFormat'](_0x2ecd4f,{'commandName':_0x9b3c82,'commandParams':[{'forceValue':!_0x24621b['value']}],'formatGroupId':'blockName'},fe(_0x2ecd4f));});};}function _0x3f7f21(_0x582ed3){return()=>{const _0x478250=function(_0x226ffa){let _0x4636a3=Array['from'](_0x226ffa);const _0x49d1fb=_0x4636a3['findIndex'](_0x39be5b=>'listItem'!=_0x39be5b['name']);return _0x49d1fb>-0x1&&(_0x4636a3=_0x4636a3['slice'](0x0,_0x49d1fb)),_0x4636a3;}(_0x26e136['model']['document']['selection']['getSelectedBlocks']()),_0x55a1a5=_0x26e136['model']['createRange'](_0x26e136['model']['createPositionAt'](_0x478250[0x0],'before'),_0x26e136['model']['createPositionAt'](_0x478250[_0x478250['length']-0x1],'end'));_0x26e136['model']['change'](()=>{_0x1ecae2['markBlockFormat'](_0x55a1a5,{'commandName':_0x582ed3,'commandParams':[],'formatGroupId':'listIndent'},function(_0x24ef48){const _0x302bd2=new Set();for(const _0x104131 of _0x24ef48){let _0x2e6eb6=_0x104131['nextSibling'];for(;_0x2e6eb6&&_0x2e6eb6['getAttribute']('listIndent')>_0x104131['getAttribute']('listIndent');)_0x302bd2['add'](_0x2e6eb6),_0x2e6eb6=_0x2e6eb6['nextSibling'];}return Array['from'](_0x302bd2);}(_0x478250));});};}_0x1ecae2['enableCommand']('numberedList',_0x274ef0('numberedList')),_0x1ecae2['enableCommand']('bulletedList',_0x274ef0('bulletedList')),_0x5856f2&&_0x1ecae2['enableCommand']('todoList',_0x274ef0('todoList')),_0x1ecae2['enableCommand']('indentList',_0x3f7f21('indentList')),_0x1ecae2['enableCommand']('outdentList',_0x3f7f21('outdentList')),_0x5856f2&&_0x1ecae2['enableCommand']('checkTodoList',()=>{const _0x590fce=_0x26e136['commands']['get']('checkTodoList'),_0x12986f=Array['from'](_0x590fce['_selectedElements']);_0x12986f['filter'](_0x4694dd=>_0x4694dd['getAttribute']('todoListChecked')!=_0x590fce['value']),_0x26e136['model']['change'](()=>{for(const _0x391747 of _0x12986f)_0x1ecae2['markBlockFormat'](_0x391747,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x590fce['value']}]});});}),_0x1ecae2['descriptionFactory']['registerElementLabel']('listItem',_0xea030c=>o(_0x43fa4e,'ELEMENT_LIST_ITEM',_0xea030c)),_0x1ecae2['descriptionFactory']['registerDescriptionCallback'](_0x38165f=>{if('formatBlock'!=_0x38165f['type']&&'formatInline'!=_0x38165f['type'])return;const {data:_0x1584f6}=_0x38165f;if(_0x1584f6){if('numberedList'==_0x1584f6['commandName']||'bulletedList'==_0x1584f6['commandName']||'todoList'==_0x1584f6['commandName'])switch(_0x1584f6['commandName']['replace']('List','')){case'bulleted':return _0x45f532(o(_0x43fa4e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45f532(o(_0x43fa4e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45f532(o(_0x43fa4e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1584f6['commandName'])return{'type':'format','content':o(_0x43fa4e,'*Indent:*\x20%0',o(_0x43fa4e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1584f6['commandName'])return{'type':'format','content':o(_0x43fa4e,'*Outdent:*\x20%0',o(_0x43fa4e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1584f6['commandName'])return _0x1584f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x43fa4e,'*Check\x20item*')}:{'type':'format','content':o(_0x43fa4e,'*Uncheck\x20item*')};}function _0x45f532(_0x324ad0){return{'type':'format','content':o(_0x43fa4e,'*Change\x20to:*\x20%0',_0x324ad0)};}});}}function me(_0x71a154){const _0x23dcb=_0x71a154['getAttribute']('listIndent');if(0x0==_0x23dcb)return _0x71a154;let _0x879e11=_0x71a154;for(;_0x71a154['previousSibling']&&_0x71a154['previousSibling']['is']('element','listItem');){const _0x4d6da7=_0x71a154['previousSibling']['getAttribute']('listIndent');if(_0x4d6da7==_0x23dcb)_0x879e11=_0x71a154['previousSibling'];else{if(_0x4d6da7<_0x23dcb)break;}_0x71a154=_0x71a154['previousSibling'];}return _0x879e11;}function fe(_0x3006fe){const _0x5509d8=[];if(_0x3006fe['is']('element','listItem')&&_0x3006fe['getAttribute']('listIndent')>0x0){let _0x433146=_0x3006fe['nextSibling'];for(;_0x433146&&'listItem'==_0x433146['name']&&_0x433146['getAttribute']('listIndent')==_0x3006fe['getAttribute']('listIndent');)_0x5509d8['push'](_0x433146),_0x433146=_0x433146['nextSibling'];}return _0x5509d8;}class K extends _0x5e9c6f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x536eb2=this['editor']['config']['get']('list.properties'),_0xe2a637=this['editor']['plugins']['get']('TrackChangesEditing');_0x536eb2['styles']&&_0xe2a637['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x536eb2['reversed']&&_0xe2a637['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x536eb2['startIndex']&&_0xe2a637['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xe2a637['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x54e845,_0x1fbd93={}){const _0x2832ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d0cc0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2832ba['markMultiRangeBlockFormat'](_0x2d0cc0,{'commandName':'listStyle','commandParams':[{'type':_0x1fbd93['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x25fc01,_0x1efd70={}){const _0x9ca2a3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cf15d=this['_getSuggestionBlocks'](_0x16dad3=>_0x16dad3['is']('element','listItem')&&'numbered'===_0x16dad3['getAttribute']('listType'));if(_0x3cf15d['length']<0x1)return;const _0x3b3112=_0x3cf15d['map'](_0x1acd49=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1acd49,'before'),this['editor']['model']['createPositionAt'](_0x1acd49,0x0)));this['editor']['model']['change'](()=>{_0x9ca2a3['markMultiRangeBlockFormat'](_0x3b3112,{'commandName':'listReversed','commandParams':[{'reversed':_0x1efd70['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x130612,_0x1fc416={}){const _0x4e5352=this['editor']['plugins']['get']('TrackChangesEditing'),_0x386fcc=this['_getSuggestionBlocks'](_0x599804=>_0x599804['is']('element','listItem')&&'numbered'===_0x599804['getAttribute']('listType'));if(_0x386fcc['length']<0x1)return;const _0x4d705b=_0x386fcc['map'](_0x343ed0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x343ed0,'before'),this['editor']['model']['createPositionAt'](_0x343ed0,0x0)));this['editor']['model']['change'](()=>{_0x4e5352['markMultiRangeBlockFormat'](_0x4d705b,{'commandName':'listStart','commandParams':[{'startIndex':_0x1fc416['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x158a31){if('formatBlock'!=_0x158a31['type']&&'formatInline'!=_0x158a31['type'])return;const _0x458b72=this['editor']['locale'],{data:_0x14eea4}=_0x158a31;if(!_0x14eea4)return;let _0x3926d6,_0x3cd571;switch(_0x14eea4['commandName']){case'listStyle':_0x3926d6='*Change\x20to:*\x20%0',_0x3cd571={'type':'format','content':o(_0x458b72,_0x3926d6,o(_0x458b72,this['_getTranslationKeyForListStyle'](_0x14eea4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3926d6=_0x14eea4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3cd571={'type':'format','content':o(_0x458b72,_0x3926d6)};break;case'listStart':_0x3926d6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3cd571={'type':'format','content':o(_0x458b72,_0x3926d6,_0x14eea4['commandParams'][0x0]['startIndex'])};}return _0x3cd571;}['_getSuggestionBlocksForListStyle'](){const _0x1e7ce1=this['editor']['plugins']['get']('LegacyListUtils');let _0x90fb6a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x90fb6a[0x0]?.['is']('element','listItem')&&_0x90fb6a['unshift'](..._0x1e7ce1['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x90fb6a[_0x90fb6a['length']-0x1]?.['is']('element','listItem')&&_0x90fb6a['push'](..._0x1e7ce1['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x90fb6a=[...new Set(_0x90fb6a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x90fb6a=_0x90fb6a['filter'](_0x565751=>_0x565751['is']('element','listItem'))),_0x90fb6a;}['_getSuggestionBlocks'](_0x582fab){const _0x38126f=this['editor']['plugins']['get']('LegacyListUtils');let _0x23742a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x582fab)['map'](_0x14137e=>{const _0x2c6c56=this['editor']['model']['createPositionAt'](_0x14137e,0x0);return[..._0x38126f['getSiblingNodes'](_0x2c6c56,'backward'),..._0x38126f['getSiblingNodes'](_0x2c6c56,'forward')];})['flat']();return _0x23742a=[...new Set(_0x23742a)],_0x23742a;}['_getTranslationKeyForListStyle'](_0x259c45){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x259c45)||'default')['toUpperCase']()+'_LIST_'+_0x259c45['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x5e9c6f{['afterInit'](){const _0x2058f2=this['editor'];if(!_0x2058f2['plugins']['has']('MediaEmbedEditing'))return;const _0x266c22=_0x2058f2['plugins']['get']('TrackChangesEditing'),_0x2ffe25=_0x2058f2['locale'];_0x266c22['enableCommand']('mediaEmbed'),_0x266c22['descriptionFactory']['registerElementLabel']('media',_0x4ac9b8=>o(_0x2ffe25,'ELEMENT_MEDIA',_0x4ac9b8)),_0x2058f2['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3d1877,{writer:_0x4c4990,options:_0x31c873})=>{if(_0x31c873['showSuggestionHighlights'])return _0x4c4990['createEmptyElement']('div');},'converterPriority':'high'}),_0x2058f2['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5308a0,_0x59049c,_0x15f6d7)=>{_0x15f6d7['options']['showSuggestionHighlights']&&_0x5308a0['stop']();},{'priority':'high'});}}class gt extends _0x5e9c6f{['afterInit'](){const _0x30e046=this['editor'];_0x30e046['plugins']['has']('MentionEditing')&&_0x30e046['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x5e9c6f{['afterInit'](){const _0x29ea90=this['editor'],_0x4633be=_0x29ea90['plugins']['get']('TrackChangesEditing');_0x29ea90['plugins']['has']('MultiLevelList')&&(_0x4633be['enableDefaultAttributesIntegration']('multiLevelList'),_0x4633be['registerBlockAttribute']('listMarkerStyle'),_0x4633be['descriptionFactory']['registerDescriptionCallback'](_0x222e15=>this['handleDescriptions'](_0x222e15)));}['handleDescriptions'](_0x14e5f6){const _0xe7d270=this['editor']['locale'],{data:_0x2a14b4}=_0x14e5f6,_0x341f66={'type':'format','content':''};if(_0x2a14b4&&'listMarkerStyle'==_0x2a14b4['key']){if(!_0x2a14b4['oldValue'])return{'type':'format','content':o(_0xe7d270,'*Set\x20format:*\x20%0',o(_0xe7d270,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2a14b4['newValue']+')'};if(!_0x2a14b4['newValue']){let _0x3676a2=_0x14e5f6['head'];for(;_0x3676a2;){if(_0x3676a2['data']&&'listType'==_0x3676a2['data']['key']&&_0x3676a2['data']['newValue'])return _0x341f66;_0x3676a2=_0x3676a2['next'];}return{'type':'format','content':o(_0xe7d270,'*Remove\x20format:*\x20%0',o(_0xe7d270,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2a14b4['oldValue']+')'};}}}}class mt extends _0x5e9c6f{['afterInit'](){const _0x335599=this['editor'];if(!_0x335599['plugins']['has']('PageBreakEditing'))return;_0x335599['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x572ba8=_0x335599['plugins']['get']('TrackChangesEditing'),_0x4f849b=_0x335599['locale'];_0x572ba8['descriptionFactory']['registerElementLabel']('pageBreak',_0x181baa=>o(_0x4f849b,'ELEMENT_PAGE_BREAK',_0x181baa));}}class dt extends _0x5e9c6f{['afterInit'](){const _0x3b4c35=this['editor'];if(!_0x3b4c35['plugins']['has']('Paragraph'))return;const _0x48dfea=_0x3b4c35['locale'],_0x5ffc0c=_0x3b4c35['plugins']['get']('TrackChangesEditing');_0x5ffc0c['descriptionFactory']['registerElementLabel']('paragraph',_0x43e66d=>o(_0x48dfea,'ELEMENT_PARAGRAPH',_0x43e66d)),_0x5ffc0c['enableDefaultAttributesIntegration']('paragraph'),_0x5ffc0c['enableCommand']('insertParagraph'),_0x3b4c35['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3b4c35),{'priority':'highest'}),_0x3b4c35['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3990c9,_0x29f57e,_0x17e15c)=>{_0x17e15c['options']['showSuggestionHighlights']&&nr(_0x3b4c35,{'showActiveMarker':!0x1})(_0x3990c9,_0x29f57e,_0x17e15c);},{'priority':'highest'});const _0x54593c=_0x5ffc0c['descriptionFactory'];_0x54593c['registerDescriptionCallback'](_0x195dae=>{if('insertion'!==_0x195dae['type'])return;const {start:_0xd28a8e,end:_0x596981}=_0x195dae['getFirstRange']();if(!_0xd28a8e['isTouching'](_0x596981)||!_0xd28a8e['nodeAfter'])return;const _0x1d7415=_0x3b4c35['model']['schema'],_0xa6a9a5=_0xd28a8e['nodeAfter'];return _0x1d7415['isBlock'](_0xa6a9a5)&&!_0x1d7415['isLimit'](_0xa6a9a5)&&_0x1d7415['checkChild'](_0xa6a9a5,'$text')?{'type':'insertion','content':o(_0x48dfea,'*Insert:*\x20%0',_0x54593c['getItemLabel'](_0xa6a9a5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2165ba=this['editor'],_0x2481ab=_0x2165ba['locale'];_0x2165ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb6d73c=>{if('formatBlock'!=_0xb6d73c['type'])return;const {data:_0x37b9d1}=_0xb6d73c;return _0x37b9d1&&'paragraph'==_0x37b9d1['commandName']?{'type':'format','content':o(_0x2481ab,'*Change\x20to:*\x20%0',o(_0x2481ab,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x54ca21,{showActiveMarker:_0x2526f4=!0x0}={}){return(_0x19bf72,_0x48ee44,_0xa85532)=>{const _0x19a7ca=_0x54ca21['plugins']['get']('TrackChangesEditing'),_0x1a9d38=_0x48ee44['markerRange']['start'],_0x41f666=_0x48ee44['markerRange']['end'],_0x428677=_0x54ca21['model']['schema'];if(!_0x1a9d38['isTouching'](_0x41f666)||!_0x1a9d38['nodeAfter'])return;const _0x5a9a3f=_0x1a9d38['nodeAfter'];if(_0x428677['isBlock'](_0x5a9a3f)&&!_0x428677['isLimit'](_0x5a9a3f)&&_0x428677['checkChild'](_0x5a9a3f,'$text')){if(!_0xa85532['consumable']['consume'](_0x48ee44['markerRange'],_0x19bf72['name']))return;const _0x5a1a34=_0xa85532['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x55fc03=_0xa85532['mapper']['toViewPosition'](_0x41f666);_0x2526f4&&_0x19a7ca['activeMarkers']['includes'](_0x48ee44['markerName'])&&_0xa85532['writer']['addClass']('ck-suggestion-marker--active',_0x5a1a34),_0xa85532['writer']['insert'](_0x55fc03,_0x5a1a34),_0xa85532['mapper']['bindElementToMarker'](_0x5a1a34,_0x48ee44['markerName']);}};}class pt extends _0x5e9c6f{['afterInit'](){const _0x18006e=this['editor'];if(!_0x18006e['plugins']['has']('RemoveFormatEditing'))return;_0x18006e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5953a7=this['editor'];_0x5953a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56bb31=>{if('formatBlock'!=_0x56bb31['type']&&'formatInline'!=_0x56bb31['type'])return;const {data:_0x28b12e}=_0x56bb31;return _0x28b12e&&'removeFormat'==_0x28b12e['commandName']?{'type':'format','content':o(_0x5953a7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x5e9c6f{['afterInit'](){const _0x4d151c=this['editor'];if(!_0x4d151c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x49bd4a=_0x4d151c['plugins']['get']('TrackChangesEditing');_0x49bd4a['enableCommand']('goToPreviousRestrictedEditingException'),_0x49bd4a['enableCommand']('goToNextRestrictedEditingException');const _0x5c7916=_0x4d151c['plugins']['get']('RestrictedEditingModeEditing');_0x5c7916['enableCommand']('trackChanges'),_0x5c7916['enableCommand']('acceptSuggestion'),_0x5c7916['enableCommand']('discardSuggestion'),_0x5c7916['enableCommand']('acceptAllSuggestions'),_0x5c7916['enableCommand']('discardAllSuggestions'),_0x5c7916['enableCommand']('acceptSelectedSuggestions'),_0x5c7916['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x5e9c6f{static get['requires'](){return[_0x54d574];}['init'](){const _0x57b27d=this['editor'],_0x1da2f0=_0x57b27d['plugins']['get']('TrackChangesEditing');_0x1da2f0['enableCommand']('shiftEnter'),_0x57b27d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x57b27d),{'priority':'high'}),_0x57b27d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x57b27d),{'priority':'high'}),_0x57b27d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x9b551,_0x37711a,_0x2fcd65)=>{_0x2fcd65['options']['showSuggestionHighlights']&&de(_0x57b27d,{'showActiveMarker':!0x1})(_0x9b551,_0x37711a,_0x2fcd65);}),_0x1da2f0['descriptionFactory']['registerElementLabel']('softBreak',_0x3472cd=>o(_0x57b27d['locale'],'ELEMENT_LINE_BREAK',_0x3472cd));}}function de(_0x3f289b,{showActiveMarker:_0x556425=!0x0}={}){return(_0x323097,_0x528ad4,_0x2f67ec)=>{const _0x38a35f=_0x3f289b['plugins']['get']('TrackChangesEditing');if(!_0x2f67ec['consumable']['test'](_0x528ad4['markerRange'],_0x323097['name']))return;const _0x41526f=_0x3f289b['model'];for(const _0x2fbe8e of _0x528ad4['markerRange']['getItems']()){if(!_0x2fbe8e['is']('element','softBreak'))continue;const _0xe4f4b8='deletion'==_0x528ad4['markerName']['split'](':')[0x1]?'merge':'split',_0x3ad283=_0x2f67ec['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xe4f4b8}),_0x2301c2=_0x2f67ec['mapper']['toViewPosition'](_0x41526f['createPositionBefore'](_0x2fbe8e));_0x556425&&_0x38a35f['activeMarkers']['includes'](_0x528ad4['markerName'])&&_0x2f67ec['writer']['addClass']('ck-suggestion-marker--active',_0x3ad283),_0x2f67ec['writer']['insert'](_0x2301c2,_0x3ad283),_0x2f67ec['mapper']['bindElementToMarker'](_0x3ad283,_0x528ad4['markerName']);}};}class wt extends _0x5e9c6f{['afterInit'](){const _0x1958e3=this['editor'],_0x846e1=_0x1958e3['model'],_0x107a94=_0x1958e3['locale'];if(!_0x1958e3['plugins']['has']('StandardEditingModeEditing'))return;const _0x3eff02=_0x1958e3['plugins']['get']('TrackChangesEditing'),_0x5edbe='restrictedEditingException',_0x2a83ff=_0x1958e3['commands']['get'](_0x5edbe);_0x3eff02['enableCommand'](_0x5edbe,(_0x40b9dc,_0x252723={})=>{const _0x420bf5=_0x846e1['document']['selection'];if(_0x420bf5['isCollapsed'])return void _0x40b9dc(_0x252723);const _0x22455d=void 0x0!==_0x252723['forceValue']?_0x252723['forceValue']:!_0x2a83ff['value'];_0x846e1['change'](()=>{const _0x12f94a=Array['from'](_0x420bf5['getRanges']());for(const _0x1da310 of _0x12f94a){const _0x581095=_0x22455d?[_0x1da310]:io(_0x5edbe,_0x1da310,_0x846e1);for(const _0x58efca of _0x581095)_0x3eff02['markInlineFormat'](_0x58efca,{'commandName':_0x5edbe,'commandParams':[{'forceValue':_0x22455d}]});}});}),_0x3eff02['descriptionFactory']['registerDescriptionCallback'](_0x1681cc=>{if('formatBlock'!=_0x1681cc['type']&&'formatInline'!=_0x1681cc['type'])return;const {data:_0x5b0cf0}=_0x1681cc;return _0x5b0cf0&&_0x5b0cf0['commandName']==_0x5edbe?_0x5b0cf0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x107a94,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x107a94,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x5e9c6f{['afterInit'](){const _0x1eef90=this['editor'];if(!_0x1eef90['plugins']['has']('Style')||!_0x1eef90['plugins']['has']('DataSchema'))return;const _0x23ad36=_0x1eef90['plugins']['get']('TrackChangesEditing'),_0x3b5c5a=_0x1eef90['locale'],_0x25fd77=_0x1eef90['config']['get']('style')||{},_0x29ddb9=_0x1eef90['plugins']['get']('GeneralHtmlSupport'),_0x528e73=_0x1eef90['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1eef90['plugins']['get']('DataSchema'),_0x25fd77['definitions']);_0x23ad36['enableDefaultAttributesIntegration']('style');const _0x48f33f=new Set();for(const _0x47f43f of _0x528e73['block']){const _0x276956=_0x29ddb9['getGhsAttributeNameForElement'](_0x47f43f['element']);_0x48f33f['add'](_0x276956);}const _0xd90dad=new Set();for(const _0x150ad2 of _0x528e73['inline']){const _0x3ca82c=_0x29ddb9['getGhsAttributeNameForElement'](_0x150ad2['element']);_0xd90dad['add'](_0x3ca82c);for(const _0x2049fd of _0x150ad2['ghsAttributes'])_0xd90dad['add'](_0x2049fd);}for(const _0x5b3f49 of _0x48f33f)_0x23ad36['registerBlockAttribute'](_0x5b3f49),_0x23ad36['descriptionFactory']['registerAttributeLabel'](_0x5b3f49,o(_0x3b5c5a,'FORMAT_STYLE'));for(const _0x1d02a6 of _0xd90dad)_0x23ad36['registerInlineAttribute'](_0x1d02a6),_0x23ad36['descriptionFactory']['registerAttributeLabel'](_0x1d02a6,o(_0x3b5c5a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c640b=this['editor'],_0x39d45e=_0x5c640b['locale'];_0x5c640b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c21aa=>{if('formatBlock'!=_0x5c21aa['type']&&'formatInline'!=_0x5c21aa['type'])return;const {data:_0x28135e}=_0x5c21aa;return _0x28135e&&'style'===_0x28135e['commandName']?_0x28135e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39d45e,'*Set\x20format:*\x20%0',_0x28135e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x39d45e,'*Remove\x20format:*\x20%0',_0x28135e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x5e9c6f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x66c71d){super(_0x66c71d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x501810=this['editor'],_0x3cb121=_0x501810['model']['document']['selection'];if(!_0x501810['plugins']['has']('TableEditing'))return;const _0x4e5b3d=_0x501810['locale'],_0x5ca7a4=_0x501810['plugins']['get']('TrackChangesEditing'),_0x5046f4=_0x501810['plugins']['get']('TableUtils');_0x5ca7a4['descriptionFactory']['registerElementLabel']('table',_0x5db8ac=>o(_0x4e5b3d,'ELEMENT_TABLE',_0x5db8ac)),this['_setupColumnsRowsFixing'](),_0x5ca7a4['enableCommand']('insertTable'),_0x5ca7a4['enableCommand']('selectTableRow'),_0x5ca7a4['enableCommand']('selectTableColumn');for(const _0x5b695d of['insertTableRowAbove','insertTableRowBelow']){const _0x2d9748=_0x501810['commands']['get'](_0x5b695d);_0x5ca7a4['enableCommand'](_0x5b695d,_0x163800=>{_0x501810['model']['change'](_0x2c833f=>{_0x163800();const _0x35c918='above'===_0x2d9748['order'],_0x348e8c=_0x5046f4['getSelectionAffectedTableCells'](_0x3cb121),_0x599266=_0x5046f4['getRowIndexes'](_0x348e8c),_0x50f9da=_0x35c918?_0x599266['first']-0x1:_0x599266['last']+0x1,_0x57642f=_0x348e8c[0x0]['findAncestor']('table'),_0x24c9b1=_0x5046f4['createTableWalker'](_0x57642f,{'startRow':_0x50f9da,'endRow':_0x50f9da}),_0x551032=Array['from'](_0x24c9b1)['map'](_0x3c7ab2=>_0x2c833f['createRangeOn'](_0x3c7ab2['cell']));_0x5ca7a4['markMultiRangeInsertion'](_0x551032,'tableRow');});});}for(const _0x4e7f17 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5f6abd=_0x501810['commands']['get'](_0x4e7f17);_0x5ca7a4['enableCommand'](_0x4e7f17,_0x318d3e=>{_0x501810['model']['change'](_0x51c41a=>{_0x318d3e();const _0x4ba2fb='left'===_0x5f6abd['order'],_0x3e15fb=_0x5046f4['getSelectionAffectedTableCells'](_0x3cb121),_0xab86ba=_0x5046f4['getColumnIndexes'](_0x3e15fb),_0xa5ab58=_0x4ba2fb?_0xab86ba['first']-0x1:_0xab86ba['last']+0x1,_0x2b07c3=_0x3e15fb[0x0]['findAncestor']('table'),_0x5c5d0a=_0x5046f4['createTableWalker'](_0x2b07c3,{'startRow':0x0,'column':_0xa5ab58,'includeAllSlots':!0x1}),_0x3c7dd4=Array['from'](_0x5c5d0a)['map'](_0x59a9c4=>_0x51c41a['createRangeOn'](_0x59a9c4['cell']));_0x5ca7a4['markMultiRangeInsertion'](_0x3c7dd4,'tableColumn');});});}for(const _0xaf9fb8 of['removeTableRow','removeTableColumn']){const _0x49dd4c=_0xaf9fb8['substr'](0xb),_0x7db5d8=_0x49dd4c['toLowerCase'](),_0x1ca92c=_0x7db5d8['substr'](0x0,0x3)+'span',_0x4854d0='table'+_0x49dd4c,_0x316ad3='min'+_0x49dd4c,_0x4db1de='max'+_0x49dd4c;_0x5ca7a4['enableCommand'](_0xaf9fb8,()=>{_0x501810['model']['change'](_0x3802ef=>{const _0x582423=_0x5046f4['getSelectionAffectedTableCells'](_0x3cb121),_0x3b72ef=_0x582423[0x0]['findAncestor']('table');let _0xd4214e;if('removeTableRow'==_0xaf9fb8){const _0x495254=_0x5046f4['getRowIndexes'](_0x582423);_0xd4214e={'startRow':_0x495254['first'],'endRow':_0x495254['last'],'includeAllSlots':!0x0};}else{const _0x3e6a20=_0x5046f4['getColumnIndexes'](_0x582423);_0xd4214e={'startColumn':_0x3e6a20['first'],'endColumn':_0x3e6a20['last'],'includeAllSlots':!0x0};}const _0x138101=_0x5046f4['createTableWalker'](_0x3b72ef,_0xd4214e),_0x4ccc65=Array['from'](_0x138101)['map'](({cell:_0x1f33b3})=>_0x1f33b3),_0x1ff077=Ee(_0x4ccc65['filter'](_0x250350=>_0x250350['hasAttribute'](_0x1ca92c))),_0x5959ef=Ee(_0x4ccc65['filter'](_0x405b2b=>!_0x405b2b['hasAttribute'](_0x1ca92c)))['map'](_0x19ba6c=>_0x3802ef['createRangeOn'](_0x19ba6c)),_0x31fe85=_0x5ca7a4['markMultiRangeDeletion'](_0x5959ef,_0x4854d0);if(_0x31fe85&&('tableRow'==_0x31fe85['subType']||'tableColumn'==_0x31fe85['subType'])){const _0x127eb3=this['_getSuggestionCoords'](_0x31fe85);for(const _0x4256a1 of _0x1ff077){const _0x23c297=_0x3802ef['createRangeOn'](_0x4256a1),_0x40bc9e=_0x5046f4['getCellLocation'](_0x4256a1),_0x3a3fb5=_0x4256a1['getAttribute'](_0x1ca92c)-0x1,_0x3ec6f5=_0x127eb3[_0x316ad3],_0x111210=_0x127eb3[_0x4db1de];_0x3ec6f5<=_0x40bc9e[_0x7db5d8]&&_0x40bc9e[_0x7db5d8]+_0x3a3fb5<=_0x111210&&_0x31fe85['addRange'](_0x23c297);}}});});}function _0x5c88ed(_0x104da1){const _0x3da815=Array['from'](_0x3cb121['getRanges']())['map'](_0x1ed344=>_0x169303['fromRange'](_0x1ed344));_0x501810['model']['change'](_0x1cec9b=>{const _0x16b54a=_0x1cec9b['batch'];_0x104da1=_0x104da1['filter'](_0x46e984=>'$graveyard'!=_0x46e984['root']['rootName']),_0x1cec9b['setSelection'](_0x104da1),_0x501810['commands']['get']('removeTableRow')['refresh'](),_0x501810['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x501810['model']['enqueueChange'](()=>{_0x501810['model']['enqueueChange'](_0x16b54a,_0x2ed5d7=>{const _0x1fe0c5=_0x3da815['filter'](_0x121657=>'$graveyard'!=_0x121657['root']['rootName']);_0x1fe0c5['length']>0x0&&_0x2ed5d7['setSelection'](_0x1fe0c5);for(const _0x5095a0 of _0x3da815)_0x5095a0['detach']();});});});}function _0x248ea8(_0x530b4b){_0x501810['model']['change'](_0x59964e=>{const _0x1674fe=Array['from'](_0x3cb121['getRanges']())['map'](_0x5a393f=>_0x169303['fromRange'](_0x5a393f)),_0x2bb18a=[];for(const _0x323909 of _0x530b4b)for(const _0x5a3d45 of _0x323909['getItems']({'shallow':!0x0}))_0x2bb18a['push'](_0x5a3d45);for(const _0x2e0e18 of _0x2bb18a)'$graveyard'!=_0x2e0e18['root']['rootName']&&(_0x59964e['setSelection'](_0x59964e['createPositionAt'](_0x2e0e18,0x0)),_0x501810['commands']['get']('removeTableColumn')['refresh'](),_0x501810['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x284c12=_0x1674fe['filter'](_0x227223=>'$graveyard'!=_0x227223['root']['rootName']);_0x284c12['length']>0x0&&_0x59964e['setSelection'](_0x284c12);for(const _0xb38c31 of _0x1674fe)_0xb38c31['detach']();});}function _0x4c5ac1(_0x195ee7,_0x449169){return _0x449169['every'](_0x6d3000=>_0x195ee7['some'](_0x241946=>_0x241946['end']['isEqual'](_0x6d3000['start'])||_0x6d3000['end']['isEqual'](_0x241946['start'])));}function _0x204f2c(_0x5aaa02,_0x5c55e3){return _0x5aaa02['some'](_0x49bb27=>_0x5c55e3['some'](_0x564979=>_0x49bb27['end']['isTouching'](_0x564979['start'])));}_0x501810['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x108354,_0x419365,_0x3e5c4a)=>{if(!_0x3e5c4a['options']['showSuggestionHighlights'])return;const _0xfb8461=_0x419365['item'];if(!_0xfb8461)return;const _0x3fcf97=_0x3e5c4a['mapper']['toViewElement'](_0xfb8461);function _0x2be007(_0x10e52d){return Array['isArray'](_0x10e52d)?_0x10e52d:[_0x10e52d];}_0x3fcf97&&'tableCell'===_0xfb8461['name']&&_0x43b78d(_0x3fcf97,_0x3e5c4a['writer'],(_0x9d8197,_0x2850a8,_0x5b263b)=>_0x5b263b['addClass'](_0x2be007(_0x2850a8['classes']),_0x9d8197),(_0x5dee04,_0xf4c236,_0xa443cb)=>_0xa443cb['removeClass'](_0x2be007(_0xf4c236['classes']),_0x5dee04));},{'priority':'highest'}),_0x5ca7a4['descriptionFactory']['registerDescriptionCallback'](_0x4b6bb2=>{if('insertion'!=_0x4b6bb2['type']&&'deletion'!=_0x4b6bb2['type'])return;const _0x6aa858=_0x4b6bb2['getContainedElement']();if(null!=_0x6aa858&&_0x6aa858['is']('element','table')){if('insertion'==_0x4b6bb2['type']){const _0x5f3a8e=_0x4b6bb2['getItems']()['filter'](_0x317e19=>_0x317e19['is']('$textProxy'))['map'](_0x4a8ccb=>_0x4a8ccb['data']);if(_0x5f3a8e['length'])return{'type':'insertion','content':o(_0x4e5b3d,'*Insert:*\x20%0',o(_0x4e5b3d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5f3a8e['join']('\x20')+'\x22'))};}if('deletion'==_0x4b6bb2['type']){const _0x3beb3b=_0x4b6bb2['getItems']()['filter'](_0x5e7051=>_0x5e7051['is']('$textProxy'))['map'](_0xc5d0e2=>_0xc5d0e2['data']);if(_0x3beb3b['length'])return{'type':'deletion','content':o(_0x4e5b3d,'*Remove:*\x20%0',o(_0x4e5b3d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3beb3b['join']('\x20')+'\x22'))};}}}),_0x5ca7a4['descriptionFactory']['registerDescriptionCallback'](_0x13dfe5=>{if('tableRow'==_0x13dfe5['subType']){const _0x4f5409=_0x13dfe5['getItems']()['filter'](_0x143ed6=>_0x143ed6['is']('$textProxy'))['map'](_0x8941dd=>_0x8941dd['data']),_0x2b96c2=this['_getSuggestionCoords'](_0x13dfe5),_0x236799=_0x2b96c2['maxRow']-_0x2b96c2['minRow']+0x1;if('insertion'==_0x13dfe5['type'])return _0x4f5409['length']?{'type':'insertion','content':o(_0x4e5b3d,'*Insert:*\x20%0',o(_0x4e5b3d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x236799,'\x22'+_0x4f5409['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4e5b3d,'*Insert:*\x20%0',o(_0x4e5b3d,'ELEMENT_TABLE_ROW',_0x236799))};if('deletion'==_0x13dfe5['type'])return _0x4f5409['length']?{'type':'deletion','content':o(_0x4e5b3d,'*Remove:*\x20%0',o(_0x4e5b3d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x236799,'\x22'+_0x4f5409['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4e5b3d,'*Remove:*\x20%0',o(_0x4e5b3d,'ELEMENT_TABLE_ROW',_0x236799))};}if('tableColumn'==_0x13dfe5['subType']){const _0x3add9a=_0x13dfe5['getItems']()['filter'](_0x3ad4e0=>_0x3ad4e0['is']('$textProxy'))['map'](_0x2cc090=>_0x2cc090['data']),_0x1df495=this['_getSuggestionCoords'](_0x13dfe5),_0x97b467=_0x1df495['maxColumn']-_0x1df495['minColumn']+0x1;if('insertion'==_0x13dfe5['type'])return _0x3add9a['length']?{'type':'insertion','content':o(_0x4e5b3d,'*Insert:*\x20%0',o(_0x4e5b3d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x97b467,'\x22'+_0x3add9a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4e5b3d,'*Insert:*\x20%0',o(_0x4e5b3d,'ELEMENT_TABLE_COLUMN',_0x97b467))};if('deletion'==_0x13dfe5['type'])return _0x3add9a['length']?{'type':'deletion','content':o(_0x4e5b3d,'*Remove:*\x20%0',o(_0x4e5b3d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x97b467,'\x22'+_0x3add9a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4e5b3d,'*Remove:*\x20%0',o(_0x4e5b3d,'ELEMENT_TABLE_COLUMN',_0x97b467))};}}),_0x5ca7a4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5c88ed),_0x5ca7a4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5c88ed),_0x5ca7a4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x248ea8),_0x5ca7a4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x248ea8),_0x5ca7a4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4c5ac1),_0x5ca7a4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4c5ac1),_0x5ca7a4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x204f2c),_0x5ca7a4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x204f2c);}['_acceptFormatSuggestionCallbackFactory'](){const _0xfd9e99=this['editor'],_0x175606=_0xfd9e99['model']['document']['selection'];return(_0x312612,_0x3f348f)=>{_0xfd9e99['model']['change'](_0xb26da4=>{const {commandName:_0x4f2d9a,commandParams:_0x10082b}=_0x3f348f;let _0x433910=_0x312612[0x0]['end']['nodeBefore'];_0x10082b&&_0x10082b[0x0]&&!0x1===_0x10082b[0x0]['forceValue']&&(_0x433910=_0x312612[0x0]['start']['nodeAfter']);const _0x6fde19=_0xb26da4['createRangeIn'](_0x433910);if('$graveyard'==_0x6fde19['root']['rootName'])return;const _0x5eb4a=Array['from'](_0x175606['getRanges']())['map'](_0x52ce0f=>_0x169303['fromRange'](_0x52ce0f));_0xb26da4['setSelection'](_0x6fde19),_0xfd9e99['commands']['get'](_0x4f2d9a)['refresh'](),_0x10082b['push']({'forceDefaultExecution':!0x0}),_0xfd9e99['execute'](_0x4f2d9a,..._0x10082b);const _0xb6ae93=_0x5eb4a['filter'](_0x267c18=>'$graveyard'!=_0x267c18['root']['rootName']);_0xb6ae93['length']>0x0&&_0xb26da4['setSelection'](_0xb6ae93);for(const _0x42079b of _0x5eb4a)_0x42079b['detach']();});};}['_getCoordsForCells'](_0x141629){const _0x171ba6=this['editor']['plugins']['get']('TableUtils');let _0x44e31e=Number['MAX_SAFE_INTEGER'],_0x156f56=Number['MIN_SAFE_INTEGER'],_0x2b5778=Number['MAX_SAFE_INTEGER'],_0x24495a=Number['MIN_SAFE_INTEGER'];for(const _0x16b006 of _0x141629){if('$graveyard'==_0x16b006['root']['rootName'])continue;const {row:_0x4ac930,column:_0x3250cb}=_0x171ba6['getCellLocation'](_0x16b006),_0x3ef66e=_0x16b006['hasAttribute']('rowspan')?_0x16b006['getAttribute']('rowspan')-0x1:0x0,_0x246c55=_0x16b006['hasAttribute']('colspan')?_0x16b006['getAttribute']('colspan')-0x1:0x0;_0x44e31e=_0x4ac930<_0x44e31e?_0x4ac930:_0x44e31e,_0x156f56=_0x4ac930+_0x3ef66e>_0x156f56?_0x4ac930+_0x3ef66e:_0x156f56,_0x2b5778=_0x3250cb<_0x2b5778?_0x3250cb:_0x2b5778,_0x24495a=_0x3250cb+_0x246c55>_0x24495a?_0x3250cb+_0x246c55:_0x24495a;}return{'minRow':_0x44e31e,'maxRow':_0x156f56,'minColumn':_0x2b5778,'maxColumn':_0x24495a};}['_setupColumnsRowsFixing'](){const _0x18040b=this['editor'],_0x1836c4=_0x18040b['plugins']['get']('TrackChangesEditing'),_0xcdb9d2=_0x18040b['plugins']['get']('TableUtils');_0x18040b['model']['document']['on']('change:data',()=>{const _0x18ca9e=Array['from'](_0x18040b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21989c,data:_0x21905c}of _0x18ca9e){const {group:_0x3a1cf7,id:_0x3edc1a,subType:_0x4662f6}=_0x1836c4['_splitMarkerName'](_0x21989c);if('suggestion'!=_0x3a1cf7)continue;if(null!=_0x21905c['oldRange'])continue;const _0x2e023c=_0x1836c4['getSuggestion'](_0x3edc1a);this['_tablePostFixingSubtypes']['includes'](_0x4662f6)&&this['_tableSuggestions']['add'](_0x2e023c);}},{'priority':'low'});const _0x174b81=(_0x578b5f,_0x3aaed1)=>{let _0x801034=!0x1;const _0x376107=_0x3aaed1['createRangeOn'](_0x578b5f),_0x22b112=_0x578b5f['findAncestor']('table'),_0x11bf36=_0xcdb9d2['getCellLocation'](_0x578b5f);for(const _0x412cc3 of this['_tableSuggestions']){const _0x33ae05=_0x412cc3['subType'],_0xf23eef=_0x33ae05['startsWith']('tablePaste'),_0x1679f4=_0x33ae05['substr'](_0xf23eef?0xa:0x5),_0x5a7a0f=_0x1679f4['toLowerCase'](),_0x318b75=_0x5a7a0f['substr'](0x0,0x3)+'span',_0x2ec5f0='min'+_0x1679f4,_0x1e12e8='max'+_0x1679f4;if(!_0x412cc3['isInContent'])continue;if(_0x22b112!=_0x412cc3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x412cc3['isIntersectingWithRange'](_0x376107))continue;const _0x28a60a=_0x578b5f['hasAttribute'](_0x318b75)?_0x578b5f['getAttribute'](_0x318b75)-0x1:0x0,_0x3caeb0=this['_getSuggestionCoords'](_0x412cc3),_0x40f97d=_0x3caeb0[_0x2ec5f0],_0x459f16=_0x3caeb0[_0x1e12e8];_0x40f97d<=_0x11bf36[_0x5a7a0f]&&_0x11bf36[_0x5a7a0f]+_0x28a60a<=_0x459f16&&(_0x412cc3['addRange'](_0x376107),_0x801034=!0x0);}return _0x801034;};_0x18040b['model']['document']['registerPostFixer'](_0x4a748f=>{let _0x293eb0=!0x1;for(const _0x2b6cce of _0x18040b['model']['document']['differ']['getChanges']())if('insert'==_0x2b6cce['type']){if('tableRow'==_0x2b6cce['name']){for(const _0x2a2a6f of _0x2b6cce['position']['nodeAfter']['getChildren']())_0x293eb0=_0x293eb0||_0x174b81(_0x2a2a6f,_0x4a748f);}else'tableCell'==_0x2b6cce['name']&&(_0x293eb0=_0x293eb0||_0x174b81(_0x2b6cce['position']['nodeAfter'],_0x4a748f));}return _0x293eb0;});}['_getSuggestionCoords'](_0x91d0c){return this['_getCoordsForCells'](_0x91d0c['getRanges']()['map'](_0x3df66d=>_0x3df66d['start']['nodeAfter']));}}function Ee(_0x150f8f){return Array['from'](new Set(_0x150f8f)['values']());}class St extends _0x5e9c6f{static get['requires'](){return[jt];}['afterInit'](){const _0x377772=this['editor'],_0x1f361c=_0x377772['model']['document']['selection'],_0x25bb13=_0x377772['locale'];if(!_0x377772['plugins']['has']('TableEditing'))return;const _0x198667=_0x377772['plugins']['get']('TrackChangesEditing'),_0xdeb79e=_0x377772['plugins']['get']('TableUtils'),_0x260702=_0x377772['plugins']['get'](jt);_0x260702['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x198667['enableCommand']('mergeTableCells',()=>{const _0x29db98=_0xdeb79e['getSelectionAffectedTableCells'](_0x377772['model']['document']['selection']);_0x377772['model']['change'](()=>{_0x198667['markMultiRangeBlockFormat'](_0x29db98,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x377772['commands']['get']('mergeTableCells')['on']('execute',(_0x34c9f9,_0x12c74f)=>{_0x377772['commands']['get']('trackChanges')['value']&&(_0x12c74f['length']>0x0&&_0x12c74f[_0x12c74f['length']-0x1]&&_0x12c74f[_0x12c74f['length']-0x1]['forceDefaultExecution']||_0x198667['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x34c9f9['stop']());},{'priority':'highest'});for(const _0x51dee6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x54ddef=_0x377772['commands']['get'](_0x51dee6);_0x198667['enableCommand'](_0x51dee6,()=>{const _0x16ac02=_0x377772['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x147826=>_0x147826['is']('element','tableCell')),_0x2f6366=_0x54ddef['value'];_0x377772['model']['change'](()=>{_0x198667['markMultiRangeBlockFormat']([_0x16ac02,_0x2f6366],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3de8ca of['splitTableCellVertically','splitTableCellHorizontally']){const _0x43fdf1=_0x377772['commands']['get'](_0x3de8ca);_0x198667['enableCommand'](_0x3de8ca,()=>{const _0xec245a=_0xdeb79e['getSelectionAffectedTableCells'](_0x377772['model']['document']['selection'])[0x0],_0x2295d9=_0xec245a['findAncestor']('table'),{column:_0x21010d,row:_0x21e2bc}=_0xdeb79e['getCellLocation'](_0xec245a);let _0x104e1d=[];if('horizontally'==_0x43fdf1['direction']){const _0x4688c3=_0xdeb79e['createTableWalker'](_0x2295d9,{'startRow':_0x21e2bc,'endRow':_0x21e2bc,'includeAllSlots':!0x0});_0x104e1d=Array['from'](_0x4688c3)['map'](_0x17d83c=>_0x17d83c['cell']);}else{const _0x116032=_0xdeb79e['createTableWalker'](_0x2295d9,{'column':_0x21010d,'includeAllSlots':!0x0});_0x104e1d=Array['from'](_0x116032)['map'](_0x575437=>_0x575437['cell']);}_0x377772['model']['change'](_0x1e746d=>{_0x198667['markBlockFormat'](_0x1e746d['createRangeOn'](_0xec245a),{'commandName':_0x3de8ca,'commandParams':[]},_0x104e1d,_0x3de8ca);});});}_0x198667['descriptionFactory']['registerDescriptionCallback'](_0x554583=>{if('formatBlock'!=_0x554583['type']&&'formatInline'!=_0x554583['type'])return;const {data:_0xc81472}=_0x554583;return _0xc81472&&'mergeTableCells'==_0xc81472['commandName']?{'type':'format','content':o(_0x25bb13,'*Merge\x20cells*')}:void 0x0;}),_0x198667['descriptionFactory']['registerDescriptionCallback'](_0xac19ef=>{if('formatBlock'!=_0xac19ef['type']&&'formatInline'!=_0xac19ef['type'])return;const {data:_0x46aab2}=_0xac19ef;return _0x46aab2?'splitTableCellVertically'==_0x46aab2['commandName']?{'type':'format','content':o(_0x25bb13,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x46aab2['commandName']?{'type':'format','content':o(_0x25bb13,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x31ec10=_0x260702['_acceptFormatSuggestionCallbackFactory']();for(const _0x264883 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x198667['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x264883,'accept',_0x31ec10);for(const _0x514332 of['splitTableCellVertically','splitTableCellHorizontally'])_0x198667['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x514332,'accept',_0x31ec10);_0x198667['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x13071b=>{_0x377772['model']['change'](_0x1fb7ec=>{const _0x25980c=Array['from'](_0x1f361c['getRanges']())['map'](_0x27f3f5=>_0x169303['fromRange'](_0x27f3f5));_0x1fb7ec['setSelection'](_0x13071b),_0x377772['commands']['get']('mergeTableCells')['refresh'](),_0x377772['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xb45481=_0x25980c['filter'](_0x44b17c=>'$graveyard'!=_0x44b17c['root']['rootName']);_0xb45481['length']>0x0&&_0x1fb7ec['setSelection'](_0xb45481);for(const _0x4a06bb of _0x25980c)_0x4a06bb['detach']();});});for(const _0x58ec14 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5368ba=_0x377772['commands']['get'](_0x58ec14);_0x5368ba['on']('set:isEnabled',(_0x345fba,_0x531d0b,_0x4fdef4)=>{if(_0x4fdef4){const _0x419ba3=_0x377772['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5ea18b=>_0x5ea18b['is']('element','tableCell'));this['_areMergableCells'](_0x5368ba['value'],_0x419ba3)||(_0x345fba['return']=!0x1,_0x345fba['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x31a342=this['editor']['commands']['get']('mergeTableCells'),_0x2d0d7c=this['editor']['plugins']['get']('TableUtils');if(!_0x31a342['isEnabled'])return!0x1;const _0x3a3c20=_0x2d0d7c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4c81bb of _0x3a3c20)for(const _0x37a220 of _0x3a3c20)if(_0x4c81bb!=_0x37a220&&!this['_areMergableCells'](_0x4c81bb,_0x37a220))return!0x1;return!0x0;}['_areMergableCells'](_0x416626,_0x24c3e4){const _0x57cd21=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2dbf16=this['editor']['model']['createRangeOn'](_0x416626),_0x49d357=this['editor']['model']['createRangeOn'](_0x24c3e4),_0x5d22c9=new Set(),_0x27ac2e=new Set();for(const _0x1c9779 of _0x57cd21['getSuggestions']())if(('insertion'==_0x1c9779['type']||'deletion'==_0x1c9779['type']||'mergeTableCells'==_0x1c9779['subType'])&&_0x1c9779['isInContent']){for(const _0x59886b of _0x1c9779['getRanges']())_0x59886b['containsRange'](_0x2dbf16,!0x0)&&_0x5d22c9['add'](_0x1c9779['type']+':'+_0x1c9779['author']['id']),_0x59886b['containsRange'](_0x49d357,!0x0)&&_0x27ac2e['add'](_0x1c9779['type']+':'+_0x1c9779['author']['id']);}if(_0x5d22c9['size']!=_0x27ac2e['size'])return!0x1;for(const _0x2f7445 of _0x5d22c9)if(!_0x27ac2e['has'](_0x2f7445))return!0x1;return!0x0;}}class At extends _0x5e9c6f{static get['requires'](){return[jt];}['afterInit'](){const _0x4f7e91=this['editor'];if(!_0x4f7e91['plugins']['has']('TableEditing'))return;const _0x47d539=_0x4f7e91['locale'],_0x46a9f7=_0x4f7e91['plugins']['get']('TrackChangesEditing');_0x46a9f7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x46a9f7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x46a9f7['registerBlockAttribute']('headingRows'),_0x46a9f7['registerBlockAttribute']('headingColumns'),_0x46a9f7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x47d539,'FORMAT_HEADER_ROW')),_0x46a9f7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x47d539,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x46f6d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47c865=this['editor']['plugins']['get']('TableUtils'),_0x2c786a=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x45f43b({showActiveMarker:_0x8adab4=!0x0,setDataAttribute:_0x5811bc=!0x0}={}){return(_0x57168e,_0x506f41,_0x46b0c1)=>{const {type:_0x44feb8,id:_0x250185}=_0x46f6d8['_splitMarkerName'](_0x506f41['markerName']),_0x4f5eaa=_0x46f6d8['getSuggestion'](_0x250185),_0x1f27fd=_0x4f5eaa['data'];if('formatBlock'!=_0x4f5eaa['type']||!_0x1f27fd||'setTableColumnHeader'!=_0x1f27fd['commandName'])return;if(_0x506f41['item'])return void _0x57168e['stop']();if(!_0x46b0c1['consumable']['consume'](_0x506f41['markerRange'],_0x57168e['name']))return;const _0x446215=_0x506f41['markerRange']['start']['nodeAfter'],_0x4803f7=_0x506f41['markerRange']['end']['nodeBefore'],_0x20bbfb=_0x446215['parent']['parent'],{column:_0x1ced44}=_0x47c865['getCellLocation'](_0x446215),{column:_0x402751}=_0x47c865['getCellLocation'](_0x4803f7);for(let _0x5830ca=_0x1ced44;_0x5830ca<=_0x402751;_0x5830ca++){const _0x42a8cd=_0x47c865['createTableWalker'](_0x20bbfb,{'column':_0x5830ca,'includeAllSlots':!0x1});for(const _0x2fcf99 of _0x42a8cd){const _0x3d0e07=_0x2fcf99['cell'],_0x6716c3=_0x46b0c1['mapper']['toViewElement'](_0x3d0e07);_0x46b0c1['writer']['addClass']('ck-suggestion-marker-'+_0x44feb8,_0x6716c3),_0x5811bc&&_0x46b0c1['writer']['setAttribute']('data-suggestion',_0x250185,_0x6716c3),_0x46b0c1['mapper']['bindElementToMarker'](_0x6716c3,_0x506f41['markerName']),_0x8adab4&&(_0x46f6d8['activeMarkers']['includes'](_0x506f41['markerName'])?_0x46b0c1['writer']['addClass']('ck-suggestion-marker--active',_0x6716c3):_0x46b0c1['writer']['removeClass']('ck-suggestion-marker--active',_0x6716c3));}}};}_0x46f6d8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2c786a),_0x46f6d8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2c786a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x45f43b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3bdac8,_0x472e84,_0x5e3db8)=>{_0x5e3db8['options']['showSuggestionHighlights']&&_0x45f43b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3bdac8,_0x472e84,_0x5e3db8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4e05c3,_0x28e0a8,_0x56d823)=>{const {type:_0x32e2b5,id:_0x1c7631}=_0x46f6d8['_splitMarkerName'](_0x28e0a8['markerName']),_0x419a2f=_0x46f6d8['getSuggestion'](_0x1c7631),_0x2ece36=_0x419a2f['data'];if('formatBlock'!=_0x419a2f['type']||!_0x2ece36||'setTableColumnHeader'!=_0x2ece36['commandName'])return;const _0x2eb5e4=_0x56d823['mapper']['markerNameToElements'](_0x28e0a8['markerName']);if(_0x2eb5e4){for(const _0x14dc8d of _0x2eb5e4)_0x56d823['writer']['removeClass']('ck-suggestion-marker-'+_0x32e2b5,_0x14dc8d),_0x56d823['writer']['removeClass']('ck-suggestion-marker--active',_0x14dc8d),_0x56d823['writer']['removeAttribute']('data-suggestion',_0x14dc8d),_0x56d823['mapper']['unbindElementFromMarkerName'](_0x14dc8d,_0x28e0a8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c5808=this['editor'],_0x216990=_0x4c5808['locale'];function _0x1a71d9(_0x3f5474){return{'type':'format','content':o(_0x216990,'*Format:*\x20%0',_0x3f5474)};}_0x4c5808['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1478c4=>{if('formatBlock'!=_0x1478c4['type'])return;const {data:_0x3db12f}=_0x1478c4;if(_0x3db12f){if('setTableRowHeader'==_0x3db12f['commandName']){const _0x5e9d94=_0x3db12f['commandParams'][0x0]['forceValue'];return _0x1a71d9(o(_0x216990,_0x5e9d94?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3db12f['commandName']){const _0x3b058a=_0x3db12f['commandParams'][0x0]['forceValue'];return _0x1a71d9(o(_0x216990,_0x3b058a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x34a5ce=>[_0x34a5ce,null]));class It extends _0x5e9c6f{static get['requires'](){return[jt];}['afterInit'](){const _0x5ab54a=this['editor'];if(!_0x5ab54a['plugins']['has']('TableClipboard'))return;const _0x1da2ee=_0x5ab54a['plugins']['get']('TrackChangesEditing'),_0x585a6d=_0x5ab54a['plugins']['get']('TableUtils'),_0x2681a2=_0x5ab54a['plugins']['get'](jt),_0x294678=_0x5ab54a['plugins']['get']('TableClipboard');_0x2681a2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5ab54a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5ab54a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1e8c32=null;_0x5ab54a['model']['on']('insertContent',(_0x49e32e,_0x123a9b)=>{const [_0x268430,_0x48f479]=_0x123a9b,_0x407e8b=_0x123a9b[_0x123a9b['length']-0x1];_0x407e8b&&_0x407e8b['forceDefaultExecution']||_0x1da2ee['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x18b377,_0x2b8ef0,_0x2f4a5b,_0x472dd1,_0x537b66){if(_0x2b8ef0&&!_0x2b8ef0['is']('documentSelection'))return!0x1;const _0x215c28=_0x537b66['getTableIfOnlyTableInContent'](_0x18b377,_0x2f4a5b);if(!_0x215c28||!he(_0x215c28,void 0x0,_0x472dd1))return!0x1;const _0x267896=_0x472dd1['getSelectionAffectedTableCells'](_0x2f4a5b['document']['selection']);if(!_0x267896['length'])return!0x1;const _0x2e5c70=_0x267896[0x0]['findAncestor']('table'),_0x344916=_0x472dd1['getRowIndexes'](_0x267896),_0x20e265=_0x472dd1['getColumnIndexes'](_0x267896),_0x24c98a={'startRow':_0x344916['first'],'endRow':_0x344916['last'],'startColumn':_0x20e265['first'],'endColumn':_0x20e265['last']};return 0x1==_0x267896['length']&&(_0x24c98a['endRow']+=_0x472dd1['getRows'](_0x215c28)-0x1,_0x24c98a['endColumn']+=_0x472dd1['getColumns'](_0x215c28)-0x1),he(_0x2e5c70,_0x24c98a,_0x472dd1);}(_0x268430,_0x48f479,_0x5ab54a['model'],_0x585a6d,_0x294678)&&(_0x49e32e['stop'](),_0x1e8c32={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5ab54a['model']['change'](()=>{_0x5ab54a['model']['insertContent'](_0x123a9b[0x0],_0x123a9b[0x1],_0x123a9b[0x2],{'forceDefaultExecution':!0x0});const _0x2f7715=_0xbad781(),{rowInsertionRanges:_0x4f0542,columnInsertionRanges:_0x5c5119,insertionRanges:_0x37a2c5,deletionRanges:_0x164fa0,cells:_0xc1acfd}=_0x1e8c32;_0x4f0542['length']&&_0x1da2ee['markMultiRangeInsertion'](_0x4f0542,'tablePasteRow',{'tablePasteChainId':_0x2f7715}),_0x5c5119['length']&&_0x1da2ee['markMultiRangeInsertion'](_0x5c5119,'tablePasteColumn',{'tablePasteChainId':_0x2f7715}),_0x37a2c5['length']&&(_0x1da2ee['markMultiRangeInsertion'](_0x37a2c5,'tablePaste',{'tablePasteChainId':_0x2f7715,'skipNestingCheck':!0x0}),_0x37a2c5['forEach'](_0x3c3cc3=>_0x3c3cc3['detach']?.())),_0x164fa0['length']&&(_0x1da2ee['markMultiRangeDeletion'](_0x164fa0,'tablePaste',{'tablePasteChainId':_0x2f7715,'skipNestingCheck':!0x0}),_0x164fa0['forEach'](_0x970020=>_0x970020['detach']?.()));const _0x4114d6=_0x1da2ee['markMultiRangeBlockFormat'](_0xc1acfd['map'](({element:_0x2fe53a})=>_0x2fe53a),{'formatGroupId':_0xbad781()},[],'tablePasteCell',{'tablePasteChainId':_0x2f7715});if(_0x4114d6){const _0x245e01=_0x4114d6['getMarkers'](),_0x4e9840=[];for(const {element:_0x27c6b7,attributes:_0x2c3a83}of _0xc1acfd){if(!_0x2c3a83)continue;const _0x5b4e0e=_0x5ab54a['model']['createRangeOn'](_0x27c6b7),_0xbc2ff7=_0x245e01['find'](_0x1a6f15=>_0x1a6f15['getRange']()['isEqual'](_0x5b4e0e));_0xbc2ff7&&_0x4e9840['push']([_0xbc2ff7['name'],_0x2c3a83]);}_0x4e9840['length']&&_0x4114d6['setAttribute']('markerAttributes',Object['fromEntries'](_0x4e9840));}_0x1e8c32=null;}));},{'priority':_0x14830a['high']+0xa}),_0x5ab54a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x35c048,_0x56fcb9)=>{const [_0x253b48,_0x7040bc,,_0x107cbf]=_0x56fcb9;if(!_0x1e8c32)return;_0x35c048['stop']();const _0x5c389a=_0x253b48['cell'],_0x252018=_0x7040bc,_0xbcd8e2=Pe(_0x5c389a),_0x579ff8=Pe(_0x252018);_0x35c048['return']=_0x5c389a;let _0xd4bcf4=null,_0x1da85d=null;if(_0x579ff8||_0xbcd8e2){if(_0xbcd8e2&&!_0x579ff8){_0x107cbf['remove'](_0x5c389a['getChild'](0x0));for(const _0x5acdad of Array['from'](_0x252018['getChildren']()))_0x107cbf['insert'](_0x5acdad,_0x5c389a,'end');const _0x540c8b=_0x1e8c32['rowInsertionIndexes']['includes'](_0x253b48['row']),_0x492097=_0x1e8c32['columnInsertionIndexes']['includes'](_0x253b48['column']);_0x540c8b||_0x492097||(_0xd4bcf4=_0x169303['fromRange'](_0x107cbf['createRangeIn'](_0x5c389a)));}else _0x579ff8&&!_0xbcd8e2&&(_0x1da85d=_0x107cbf['createRangeIn'](_0x5c389a));}else{const _0x1ebf82=_0x107cbf['createElement']('tableCellSuggestion'),_0x2faae4=_0x107cbf['createElement']('tableCellSuggestion');_0x107cbf['wrap'](_0x107cbf['createRangeIn'](_0x5c389a),_0x2faae4),_0x107cbf['insert'](_0x1ebf82,_0x5c389a,0x0);for(const _0x2a7d30 of Array['from'](_0x252018['getChildren']()))_0x107cbf['insert'](_0x2a7d30,_0x1ebf82,'end');_0xd4bcf4=_0x169303['fromRange'](_0x107cbf['createRangeOn'](_0x1ebf82)),_0x1da85d=_0x169303['fromRange'](_0x107cbf['createRangeOn'](_0x2faae4));}const _0x50aa9b=Array['from'](_0x252018['getAttributes']())['filter'](([_0x83a68c])=>ge['includes'](_0x83a68c));_0x1e8c32['cells']['push']({'element':_0x5c389a,'attributes':_0x50aa9b['length']?Object['fromEntries'](_0x50aa9b):null}),_0xd4bcf4&&_0x1e8c32['insertionRanges']['push'](_0xd4bcf4),_0x1da85d&&_0x1e8c32['deletionRanges']['push'](_0x1da85d);},{'priority':'high'}),_0x585a6d['on']('insertColumns',(_0x3b653b,_0x485d38)=>{const [_0x17fc49,_0x36dec2={}]=_0x485d38;if(!_0x1e8c32)return;const _0x12b398=_0x36dec2['at']||0x0,_0x2557f3=_0x36dec2['columns']||0x1;_0x1e8c32['columnInsertionIndexes']=new Array(_0x2557f3)['fill'](_0x12b398)['map']((_0x439860,_0x2f7169)=>_0x439860+_0x2f7169);for(const {cell:_0x5a5115}of _0x585a6d['createTableWalker'](_0x17fc49,{'startColumn':_0x12b398,'endColumn':_0x12b398+_0x2557f3-0x1}))_0x1e8c32['columnInsertionRanges']['push'](_0x5ab54a['model']['createRangeOn'](_0x5a5115));},{'priority':'low'}),_0x585a6d['on']('insertRows',(_0x3dbff7,_0x785618)=>{const [_0x519e7c,_0x2e6863={}]=_0x785618;if(!_0x1e8c32)return;const _0x425844=_0x2e6863['at']||0x0,_0x70e34e=_0x2e6863['rows']||0x1;_0x1e8c32['rowInsertionIndexes']=new Array(_0x70e34e)['fill'](_0x425844)['map']((_0x495477,_0x2ae02a)=>_0x495477+_0x2ae02a);for(const {cell:_0x15041b}of _0x585a6d['createTableWalker'](_0x519e7c,{'startRow':_0x425844,'endRow':_0x425844+_0x70e34e-0x1}))_0x1e8c32['rowInsertionRanges']['push'](_0x5ab54a['model']['createRangeOn'](_0x15041b));},{'priority':'low'}),_0x1da2ee['descriptionFactory']['registerDescriptionCallback'](_0xd497fd=>{if(_0xd497fd['subType']&&_0xd497fd['subType']['startsWith']('tablePaste'))return _0xd497fd['previous']?{}:{'type':'insertion','content':o(_0x5ab54a['locale'],'*Replace\x20table\x20cells*')};});const _0x325e05=()=>!0x1;for(const _0x20feff of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1da2ee['_suggestionFactory']['registerCustomCallback']('insertion',_0x20feff,'join',_0x325e05),_0x1da2ee['_suggestionFactory']['registerCustomCallback']('deletion',_0x20feff,'join',_0x325e05),_0x1da2ee['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x20feff,'join',_0x325e05);_0x1da2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x325e05),_0x1da2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x21231b,_0x550676,_0x289459)=>{const _0x33d07c=_0x21231b['map'](_0x72f946=>_0x72f946['getContainedElement']())['filter'](_0x623b44=>_0x623b44),_0x221bda=new Map(_0x33d07c['map'](_0xe28e1a=>[_0xe28e1a,null]));if(_0x1e8c32){for(const {element:_0x172d69,attributes:_0xad27d7}of _0x1e8c32['cells'])_0xad27d7&&_0x221bda['set'](_0x172d69,_0xad27d7);}else{if(_0x289459&&_0x289459['markerAttributes'])for(const [_0x4fa95a,_0x1a309e]of Object['entries'](_0x289459['markerAttributes'])){const _0x215ebb=_0x5ab54a['model']['markers']['get'](_0x4fa95a),_0x4b18ac=_0x215ebb?_0x215ebb['getRange']()['getContainedElement']():null;_0x4b18ac&&_0x221bda['set'](_0x4b18ac,_0x1a309e);}}_0x5ab54a['model']['change'](_0x53b1af=>{for(const [_0x3b3c8d,_0x19963a]of _0x221bda)_0x53b1af['setAttributes']({...Ce,..._0x19963a},_0x3b3c8d);});});const _0x8158e0=(_0x32a9a8,_0x28ca94)=>{_0x1da2ee['_suggestionFactory']['registerCustomCallback'](_0x32a9a8,'tablePaste',_0x28ca94,(_0x1c6294,_0x2fe688,_0x5a2dca)=>{_0x5ab54a['model']['change'](_0x4cfa69=>{const _0x4af852=[];for(const _0x406b71 of _0x1c6294){const _0x108278=_0x406b71['start']['nodeAfter'];_0x108278['is']('element','tableCellSuggestion')&&_0x4af852['push'](_0x108278);}_0x1da2ee['_suggestionFactory']['getSuggestionCallback'](_0x32a9a8,null,_0x28ca94)(_0x1c6294,_0x2fe688,_0x5a2dca);for(const _0x306a9f of _0x4af852)'$graveyard'!=_0x306a9f['root']['rootName']&&_0x4cfa69['unwrap'](_0x306a9f);});});};_0x8158e0('insertion','accept'),_0x8158e0('insertion','discard'),_0x8158e0('deletion','accept'),_0x8158e0('deletion','discard'),_0x1da2ee['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x37f2e9=>{const _0x483c08=_0x37f2e9['map'](_0x21b043=>_0x21b043['getContainedElement']()),_0x29d429=_0x483c08[0x0]['findAncestor']('table'),{minRow:_0x4af961,maxRow:_0x5ecb10}=_0x2681a2['_getCoordsForCells'](_0x483c08);_0x585a6d['removeRows'](_0x29d429,{'at':_0x4af961,'rows':_0x5ecb10-_0x4af961+0x1});}),_0x1da2ee['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4001b0=>{const _0x2184ae=_0x4001b0['map'](_0x353c93=>_0x353c93['getContainedElement']()),_0x12ee5e=_0x2184ae[0x0]['findAncestor']('table'),{minColumn:_0x4ae576,maxColumn:_0x2dfc3e}=_0x2681a2['_getCoordsForCells'](_0x2184ae);_0x585a6d['removeColumns'](_0x12ee5e,{'at':_0x4ae576,'columns':_0x2dfc3e-_0x4ae576+0x1});});const _0x2c70e7=(_0x2de504,_0x133672)=>{if(!_0x133672['subType']||!_0x133672['subType']['startsWith']('tablePaste'))return;const _0x469ad4=_0x133672['attributes']['tablePasteChainId'],_0x3fbbce=_0x1da2ee['getSuggestions']()['filter'](_0x172899=>_0x172899['isInContent']&&_0x172899['attributes']&&_0x172899['attributes']['tablePasteChainId']==_0x469ad4);_0x3fbbce['length']&&_0x133672['getAllAdjacentSuggestions']()['length']!=_0x3fbbce['length']&&_0x3fbbce['reduce']((_0x20c327,_0x1de5e3)=>(_0x20c327['next']=_0x1de5e3,_0x1de5e3['previous']=_0x20c327,_0x1de5e3));};function _0x54ee83(_0x392e32,_0x530d2f=!0x0){const {id:_0x3e04b1}=_0x1da2ee['_splitMarkerName'](_0x392e32['markerName']),_0x1950f5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x37b8e7=_0x1da2ee['activeMarkers']['includes'](_0x392e32['markerName']);return _0x37b8e7&&_0x1950f5['push']('ck-suggestion-marker--active'),{'classes':_0x1950f5,'attributes':{'data-suggestion':_0x3e04b1},'priority':_0x37b8e7&&_0x530d2f?0xbc2:0xbb8};}_0x1da2ee['on']('suggestionLoaded',_0x2c70e7,{'priority':'high'}),_0x1da2ee['on']('suggestionUnloaded',_0x2c70e7,{'priority':'high'}),_0x5ab54a['model']['document']['registerPostFixer'](()=>{let _0x3323bb=!0x1;const _0x324c4f=Array['from'](_0x5ab54a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51c746,data:_0x1540ed}of _0x324c4f){const {group:_0x4d2bd3,type:_0x324093,id:_0x3829be}=_0x1da2ee['_splitMarkerName'](_0x51c746);if('suggestion'!=_0x4d2bd3||'deletion'!=_0x324093||_0x1540ed['oldRange'])continue;if(!_0x1da2ee['hasSuggestion'](_0x3829be))continue;const _0x42b850=_0x1da2ee['getSuggestion'](_0x3829be)['getRanges'](),_0x27ca09=_0x5ab54a['plugins']['get']('Users')['me'];for(const _0x5c0137 of _0x1da2ee['getSuggestions']()){if(!_0x5c0137['isInContent']||_0x5c0137['author']!=_0x27ca09)continue;if('formatBlock'!=_0x5c0137['type']||'tablePasteCell'!=_0x5c0137['subType'])continue;if(_0x5c0137['getRanges']()['every'](_0x53ee84=>_0x42b850['some'](_0x3ccbea=>_0x3ccbea['containsRange'](_0x53ee84,!0x0)))){for(const _0x1f18dc of _0x5c0137['getAllAdjacentSuggestions']())_0x1f18dc['isInContent']&&(_0x1f18dc['discard'](),_0x3323bb=!0x0);}}}return _0x3323bb;}),_0x5ab54a['model']['document']['registerPostFixer'](_0x521b32=>{const _0x59a47d=_0x5ab54a['commands']['get']('redo');if(!_0x59a47d||!_0x59a47d['_createdBatches']['has'](_0x521b32['batch']))return!0x1;let _0x541211=!0x1;const _0x2c66d4=_0x5ab54a['plugins']['get']('Users')['me'],_0x258e99=_0x5ab54a['model']['document']['differ']['getChanges'](),_0x5ef198=Array['from'](_0x5ab54a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3a221e,data:_0x8a3a39})=>{const {group:_0x1f6c82,subType:_0x287597,authorId:_0x4661ab}=_0x1da2ee['_splitMarkerName'](_0x3a221e);return'suggestion'==_0x1f6c82&&'tablePaste'==_0x287597&&_0x4661ab==_0x2c66d4['id']&&!_0x8a3a39['oldRange'];});for(const _0xf6a808 of _0x258e99){if('insert'!=_0xf6a808['type']||'tableCellSuggestion'!=_0xf6a808['name']||0x1!=_0xf6a808['length'])continue;const _0x206c1a=_0x521b32['createRange'](_0xf6a808['position'],_0xf6a808['position']['getShiftedBy'](0x1));if(!_0x5ef198['find'](({data:_0x4d2e93})=>_0x4d2e93['newRange']['isEqual'](_0x206c1a))){for(const {name:_0x1828e6,data:_0xeea633}of _0x5ef198)if(_0x206c1a['containsRange'](_0xeea633['newRange'])){_0x521b32['updateMarker'](_0x1828e6,{'range':_0x206c1a}),_0x541211=!0x0;break;}}}return _0x541211;}),_0x5ab54a['model']['document']['registerPostFixer'](_0x154af3=>{let _0x278575=!0x1;const _0x4b04e0=_0x5ab54a['plugins']['get']('Users')['me'],_0x4cfb94=_0x1da2ee['getSuggestions']()['filter'](_0x215620=>_0x215620['isInContent']&&_0x215620['author']==_0x4b04e0),_0xa6cb62=new Set(),_0x30f270=new Set();for(const _0x1efc2b of _0x4cfb94)if('tablePaste'==_0x1efc2b['subType'])for(const _0x2a311a of _0x1efc2b['getMarkers']()){const _0x49d402=_0x2a311a['getRange']()['getContainedElement']();if(_0x49d402){if(_0x49d402['is']('element','tableCellSuggestion')&&Pe(_0x49d402)){_0x1efc2b['removeMarker'](_0x2a311a['name']),_0xa6cb62['add'](_0x49d402),_0x278575=!0x0;const _0x2a1d13=_0x49d402['nextSibling'],_0x3c8573=_0x49d402['previousSibling'],_0x11c2ff=_0x2a1d13&&_0x2a1d13['is']('element','tableCellSuggestion'),_0x3d91ca=_0x3c8573&&_0x3c8573['is']('element','tableCellSuggestion');_0x11c2ff&&!_0xa6cb62['has'](_0x2a1d13)&&_0x30f270['add'](_0x2a1d13),_0x3d91ca&&!_0xa6cb62['has'](_0x3c8573)&&_0x30f270['add'](_0x3c8573);}else _0x49d402['is']('element','paragraph')&&_0x49d402['isEmpty']&&(_0x1efc2b['removeMarker'](_0x2a311a['name']),_0x278575=!0x0);}}else{if('tablePasteCell'==_0x1efc2b['subType']){if(!_0x1efc2b['attributes']||!_0x1efc2b['attributes']['tablePasteChainId'])continue;const _0x5105a7=_0x1efc2b['attributes']['markerAttributes'];if(_0x5105a7&&Object['keys'](_0x5105a7)['length'])continue;const _0x5df5d1=_0x1efc2b['attributes']['tablePasteChainId'];let _0x20716c=!0x0,_0x940771=!0x0;for(const _0x49d4c3 of _0x4cfb94)if(_0x49d4c3['subType']&&_0x49d4c3['subType']['startsWith']('tablePaste')){if(!_0x49d4c3['attributes']['tablePasteChainId']){_0x940771=!0x1;break;}if(_0x49d4c3['id']!=_0x1efc2b['id']&&_0x49d4c3['attributes']['tablePasteChainId']==_0x5df5d1){_0x20716c=!0x1;break;}}_0x940771&&_0x20716c&&(_0x1efc2b['removeMarkers'](),_0x278575=!0x0);}}for(const _0xfddeed of _0xa6cb62)_0x154af3['remove'](_0xfddeed);for(const _0x1a71e3 of _0x30f270)_0x154af3['unwrap'](_0x1a71e3);return _0x278575;}),_0x5ab54a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x404c40,_0x4c18bf)=>_0x54ee83(_0x404c40),'converterPriority':'high'}),_0x5ab54a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x216635,_0x1f64c2)=>_0x1f64c2['options']['showSuggestionHighlights']?_0x54ee83(_0x216635,!0x1):null,'converterPriority':'high'});const _0x5a5e56=_0x5ab54a['editing']['view'];this['listenTo'](_0x5a5e56['document'],'clipboardOutput',(_0x53d656,_0x2610b6)=>{const _0xecaf17=[];for(const _0x5e44d5 of _0x5a5e56['createRangeIn'](_0x2610b6['content'])['getItems']())_0x5e44d5['is']('element','suggestion-td')&&_0xecaf17['push'](_0x5e44d5);_0x5a5e56['change'](_0x2be7fb=>{for(const _0x5edd8e of _0xecaf17)_0x2be7fb['move'](_0x2be7fb['createRangeIn'](_0x5edd8e),_0x2be7fb['createPositionBefore'](_0x5edd8e)),_0x2be7fb['remove'](_0x5edd8e);});});}}function Pe(_0x2b09e4){if(_0x2b09e4['isEmpty'])return!0x0;const _0x1adea9=_0x2b09e4['getChild'](0x0);return _0x1adea9['is']('element','paragraph')&&_0x1adea9['isEmpty'];}function he(_0x301dfd,_0x36cc6c={},_0x110945){for(const {isAnchor:_0x1ef1fb,cellHeight:_0x4d168e,cellWidth:_0x3a624c}of _0x110945['createTableWalker'](_0x301dfd,{'includeAllSlots':!0x0,..._0x36cc6c}))if(!_0x1ef1fb||0x1!=_0x4d168e||0x1!=_0x3a624c)return!0x1;return!0x0;}class vt extends _0x5e9c6f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x6ef224=this['editor']['plugins']['get']('TrackChangesEditing');_0x6ef224['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x6ef224['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x6ef224['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6ef224['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x6ef224['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x6ef224['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xa9efda,_0x2769ae){const _0x52ec3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x219154=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x48173c=_0x2769ae['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x7c884f=_0x219154['getColumnGroupElement'](_0x48173c);let _0x5ef221=_0x7c884f?_0x219154['getTableColumnsWidths'](_0x7c884f):null,_0x175ccd=_0x48173c['getAttribute']('tableWidth')||null;const _0x196945=_0x2769ae['tableWidth']||_0x175ccd,_0x1ddcfe=_0x2769ae['columnWidths']||_0x5ef221,_0x2f0412=this['editor']['plugins']['get']('Users')['me'];for(const _0x378f3c of _0x52ec3b['getSuggestions']()){const _0x2906a5=_0x378f3c['getContainedElement']();if('resizeTable'===_0x378f3c['subType']&&_0x2906a5===_0x48173c){_0x378f3c['author']!==_0x2f0412&&_0x378f3c['discard']();const _0x2f6ffa=_0x378f3c['data']['commandParams'];_0x175ccd=_0x2f6ffa[0x0]['tableWidth'],_0x5ef221=_0x2f6ffa[0x0]['columnWidths'];break;}}_0xa9efda({'table':_0x48173c,'tableWidth':_0x196945,'columnWidths':_0x1ddcfe}),_0x52ec3b['markBlockFormat'](_0x48173c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x175ccd,'columnWidths':_0x5ef221}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x45fd09){if('formatBlock'!=_0x45fd09['type']&&'formatInline'!=_0x45fd09['type'])return;const {data:_0xcde349}=_0x45fd09;if(_0xcde349&&'resizeTable'===_0xcde349['formatGroupId']){const _0x10faef='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x10faef)};}}}class Ct extends _0x5e9c6f{['afterInit'](){const _0x4255d7=this['editor'];_0x4255d7['plugins']['has']('Template')&&_0x4255d7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x5e9c6f{['afterInit'](){const _0x158029=this['editor'];if(!_0x158029['commands']['get']('insertTableOfContents'))return;_0x158029['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x416eaf=_0x158029['plugins']['get']('TrackChangesEditing'),_0x35ddd8=_0x158029['locale'];_0x416eaf['descriptionFactory']['registerElementLabel']('tableOfContents',_0x45922c=>o(_0x35ddd8,'ELEMENT_TABLE_OF_CONTENTS',_0x45922c));}}class Dt extends _0x5e9c6f{['afterInit'](){const _0x50e63f=this['editor'];if(!_0x50e63f['plugins']['has']('Title'))return;const _0x5eac7c=_0x50e63f['plugins']['get']('TrackChangesEditing');_0x5eac7c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x50e63f['locale'],'ELEMENT_TITLE')),_0x50e63f['model']['document']['registerPostFixer'](_0x2d0742=>{let _0x2e43c3=!0x1;const _0x3dbf1b=Array['from'](_0x50e63f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4fa037,data:_0x4864fa}of _0x3dbf1b){const {group:_0x460355}=_0x5eac7c['_splitMarkerName'](_0x4fa037);if('suggestion'!==_0x460355||!_0x4864fa['newRange'])continue;const _0x1b587f=_0x4864fa['newRange'],_0x5532f1=_0x1b587f['end']['nodeBefore'];if(!_0x5532f1||!_0x5532f1['is']('element','title-content'))continue;if(!_0x1b587f['start']['isTouching'](_0x1b587f['end']))continue;const _0x26933b=_0x50e63f['model']['schema']['getNearestSelectionRange'](_0x1b587f['end'],'forward');if(_0x26933b&&_0x26933b['isCollapsed']){const _0x53b51e=_0x2d0742['createRange'](_0x1b587f['start'],_0x26933b['start']);_0x53b51e['isEqual'](_0x1b587f)||(_0x2d0742['updateMarker'](_0x4fa037,{'range':_0x53b51e}),_0x2e43c3=!0x0);}_0x2e43c3||(_0x2d0742['removeMarker'](_0x4fa037),_0x2e43c3=!0x0);}return _0x2e43c3;});}}class Nt extends _0x5e9c6f{['afterInit'](){const _0xf9d83f=this['editor'],_0x12f838=_0xf9d83f['plugins']['get']('TrackChangesEditing');_0xf9d83f['plugins']['has']('UndoEditing')&&(_0x12f838['enableCommand']('undo'),_0x12f838['enableCommand']('redo'));}}class Mt extends _0x5e9c6f{static get['requires'](){return[jt];}['afterInit'](){const _0x35d5b8=this['editor'];if(!_0x35d5b8['plugins']['has']('TableCaptionEditing'))return;_0x35d5b8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x5e9c6f{['tableProperties'];['tableCellProperties'];constructor(_0x4b4e7b){super(_0x4b4e7b),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 _0x3a75b6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4d36ee of this['tableProperties'])_0x3a75b6['enableCommand'](_0x4d36ee,(_0x4f0f7f,_0x36f41f)=>{const _0x510847=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4d36ee,[_0x510847],this['tableProperties'],'tableProperties',_0x4f0f7f,_0x36f41f);});_0x3a75b6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3a75b6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a75b6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5320e8,_0x3c3688)=>this['handleDiscardAction'](this['tableProperties'],_0x5320e8,_0x3c3688)),_0x3a75b6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2d0474 of this['tableCellProperties'])_0x3a75b6['enableCommand'](_0x2d0474,(_0xdd0481,_0x92d8bf)=>{const _0x4928b7=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2d0474,_0x4928b7,this['tableCellProperties'],'tableCellProperties',_0xdd0481,_0x92d8bf);});_0x3a75b6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3a75b6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a75b6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x29873d,_0x5d72a5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x29873d,_0x5d72a5)),_0x3a75b6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3a75b6['descriptionFactory']['registerDescriptionCallback'](_0x186046=>this['handleSuggestionDescription'](_0x186046));}['_handlePropertyChange'](_0x32cb53,_0x4e0f44,_0xf47e7f,_0x718794,_0x504f1c,_0x512a91){const _0x43f2c2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x512a91['batch'],()=>{for(const _0x29cf72 of _0x4e0f44){if(this['_getSuggestion'](_0x29cf72,_0x718794))_0x504f1c(_0x512a91);else{const _0xdd7cdb={};for(const _0x1a6cef of _0xf47e7f){const _0x4116f1=_0x29cf72['getAttribute'](_0x1a6cef);void 0x0!==_0x4116f1&&(_0xdd7cdb[_0x1a6cef]=_0x4116f1);}_0x504f1c(_0x512a91),_0x43f2c2['markBlockFormat'](_0x29cf72,{'commandParams':[_0xdd7cdb]},[],_0x718794);}}});}['handleDiscardAction'](_0xa08ec,_0x29cdca,_0x4bf63d){const _0x9604e4=_0x29cdca[0x0]['start']['nodeAfter'],_0x16dc9f=_0x4bf63d['commandParams'][0x0];this['editor']['model']['change'](_0xdf04a6=>{for(const _0x1cfd1f of _0xa08ec)void 0x0!==_0x16dc9f[_0x1cfd1f]?_0xdf04a6['setAttribute'](_0x1cfd1f,_0x16dc9f[_0x1cfd1f],_0x9604e4):_0xdf04a6['removeAttribute'](_0x1cfd1f,_0x9604e4);});}['handleSuggestionDescription'](_0x47810b){if(_0x47810b['data'])switch(_0x47810b['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'](_0x570c7c,_0x3e85ee){const _0x252ca2=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4415f2 of _0x252ca2['getSuggestions']({'skipNotAttached':!0x0})){const _0x44b8e7=_0x4415f2['getContainedElement']();if(_0x4415f2['subType']===_0x3e85ee&&_0x44b8e7===_0x570c7c)return _0x4415f2;}return null;}}const m='$elementName';class p extends _0x5e9c6f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2ef2b0,_0x4bb74e,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(_0x117bc4){function _0x1772dc(_0xe160e6){return _0xe160e6['map'](_0x410f9b=>String['fromCharCode'](_0x410f9b))['join']('');}super(_0x117bc4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3950dd,_0x34008d,_0x1a762a,_0x356633)=>{this['_model']['change'](()=>{for(const _0xe30ac9 of[..._0x356633,..._0x1a762a])this['_model']['markers']['has'](_0xe30ac9)&&_0x117bc4['editing']['reconvertMarker'](_0xe30ac9);});}),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']=_0x117bc4['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(),_0x117bc4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x117bc4['config']['get']('trackChanges.trackFormatChanges'),_0x117bc4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x117bc4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x117bc4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1772dc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1772dc([0x34,0x30,0x34,0x38,0x31,0x32,0x30,0x32]);}['init'](){const _0x4f24ff=this['editor'],_0x1640c8=(_0x30fd3f,_0x1d2e26)=>{if('attribute'!=_0x30fd3f)return'ck-suggestion-marker-'+_0x30fd3f;const _0x483841=_0x1d2e26['split']('|')[0x0];return this['_isBlockAttribute'](_0x483841)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4f24ff['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xe9c3a=>{const {id:_0x493b05,type:_0x56a1fb,subType:_0x56ca59}=this['_splitMarkerName'](_0xe9c3a['markerName']),_0x2cab71=['ck-suggestion-marker',_0x1640c8(_0x56a1fb,_0x56ca59)];let _0x46cfa0=0xbb8;return this['activeMarkers']['includes'](_0xe9c3a['markerName'])&&(_0x2cab71['push']('ck-suggestion-marker--active'),_0x46cfa0=0xbc2),'deletion'==_0x56a1fb&&(_0x46cfa0+=0x5),{'classes':_0x2cab71,'attributes':{'data-suggestion':_0x493b05},'priority':_0x46cfa0};}}),_0x4f24ff['conversion']['for']('dataDowncast')['add'](_0xe79600=>{_0xe79600['on']('addMarker:suggestion',(_0x56c4af,_0x27767a,_0x35922e)=>{if(!_0x35922e['options']['showSuggestionHighlights'])return;const _0x2d41ba=_0x27767a['item'];if(!_0x2d41ba)return;const _0xf5670e=_0x35922e['mapper']['toViewElement'](_0x2d41ba);_0x4f24ff['model']['schema']['isObject'](_0x2d41ba)&&_0xf5670e&&!_0xf5670e['getCustomProperty']('widget')&&_0xf5670e['is']('containerElement')&&_0x340634(_0xf5670e,_0x35922e['writer']);},{'priority':'high'});}),_0x4f24ff['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x29a570,_0x2d8eff)=>{if(!_0x2d8eff['options']['showSuggestionHighlights'])return null;const {type:_0x52fc00,subType:_0x32a605}=this['_splitMarkerName'](_0x29a570['markerName']);return{'classes':['ck-suggestion-marker',_0x1640c8(_0x52fc00,_0x32a605)],'priority':0xbb8};}});const _0x425acb=({showActiveMarkers:_0x232447=!0x0,isAttributeSuggestion:_0x17333c=!0x1}={})=>(_0x4680ad,_0x341c48,_0x413e4c)=>{if(!_0x341c48['item'])return;const {id:_0x2cc85c}=this['_splitMarkerName'](_0x341c48['markerName']);if(_0x17333c){const _0x2c9930=this['_suggestions']['get'](_0x2cc85c),_0x58613d=this['_getAttributeKey'](_0x2c9930);if(!this['_isBlockAttribute'](_0x58613d))return;}if(_0x341c48['item']['is']('selection'))return void _0x413e4c['consumable']['consume'](_0x341c48['item'],_0x4680ad['name']);const _0x2e7030=_0x413e4c['mapper']['toViewElement'](_0x341c48['item']);if(_0x341c48['item']['is']('element')&&_0x4f24ff['model']['schema']['isBlock'](_0x341c48['item'])&&!_0x2e7030['getCustomProperty']('addHighlight')){_0x413e4c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2e7030),_0x413e4c['writer']['setAttribute']('data-suggestion',_0x2cc85c,_0x2e7030),_0x413e4c['mapper']['bindElementToMarker'](_0x2e7030,_0x341c48['markerName']),_0x232447&&(this['activeMarkers']['includes'](_0x341c48['markerName'])?_0x413e4c['writer']['addClass']('ck-suggestion-marker--active',_0x2e7030):_0x413e4c['writer']['removeClass']('ck-suggestion-marker--active',_0x2e7030));for(const _0xb58697 of _0x4f24ff['model']['createRangeIn'](_0x341c48['item'])['getItems']())_0x413e4c['consumable']['consume'](_0xb58697,_0x4680ad['name']);_0x413e4c['consumable']['consume'](_0x341c48['item'],_0x4680ad['name']);}};_0x4f24ff['conversion']['for']('dataDowncast')['add'](_0x21eaa5=>{_0x21eaa5['on']('addMarker:suggestion:formatBlock',(_0x419742,_0x19ea07,_0x47373a)=>{_0x47373a['options']['showSuggestionHighlights']&&_0x425acb({'showActiveMarkers':!0x1})(_0x419742,_0x19ea07,_0x47373a);},{'priority':'highest'});}),_0x4f24ff['conversion']['for']('dataDowncast')['add'](_0x2801ab=>{_0x2801ab['on']('addMarker:suggestion:attribute',(_0x19c155,_0x20b7e7,_0x29e3f0)=>{_0x29e3f0['options']['showSuggestionHighlights']&&_0x425acb({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x19c155,_0x20b7e7,_0x29e3f0);},{'priority':'highest'});}),_0x4f24ff['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1f55f8,_0x55e80d)=>_0x55e80d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1f55f8['substr'](0xb)}}),_0x4f24ff['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1cbbc4,{writer:_0x5584ce})=>{let _0xd7d276='suggestion:'+_0x1cbbc4['getAttribute']('suggestion-type')+':'+_0x1cbbc4['getAttribute']('id');return _0x1cbbc4['getAttribute']('marker-count')&&(_0xd7d276+=':'+_0x1cbbc4['getAttribute']('marker-count')),_0x5584ce['createElement']('$marker',{'data-name':_0xd7d276});}}),_0x4f24ff['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4f24ff['conversion']['for']('editingDowncast')['add'](_0xb3bdc1=>{_0xb3bdc1['on']('addMarker:suggestion:formatBlock',_0x425acb(),{'priority':'high'});}),_0x4f24ff['conversion']['for']('editingDowncast')['add'](_0x5862e6=>{_0x5862e6['on']('addMarker:suggestion:attribute',_0x425acb({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4f24ff['conversion']['for']('editingDowncast')['add'](_0x1fa16f=>{_0x1fa16f['on']('removeMarker:suggestion:formatBlock',(_0x59dc01,_0x13bf7a,_0x3148d6)=>{const _0x31785e=_0x3148d6['mapper']['markerNameToElements'](_0x13bf7a['markerName']);if(_0x31785e){for(const _0x48ef0a of _0x31785e)_0x48ef0a['getCustomProperty']('addHighlight')||(_0x3148d6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x48ef0a),_0x3148d6['writer']['removeAttribute']('data-suggestion',_0x48ef0a),_0x3148d6['mapper']['unbindElementFromMarkerName'](_0x48ef0a,_0x13bf7a['markerName']));}},{'priority':'high'});}),_0x4f24ff['conversion']['for']('editingDowncast')['add'](_0x568601=>{_0x568601['on']('removeMarker:suggestion:attribute',(_0x36ccfb,_0x192dbd,_0x20ab2b)=>{const _0x21e387=_0x20ab2b['mapper']['markerNameToElements'](_0x192dbd['markerName']);if(!_0x21e387)return;const {id:_0x5b633e}=this['_splitMarkerName'](_0x192dbd['markerName']),_0x15565a=this['_suggestions']['get'](_0x5b633e),_0x362fac=this['_getAttributeKey'](_0x15565a);if(this['_isBlockAttribute'](_0x362fac)){for(const _0x4381de of _0x21e387)_0x4381de['getCustomProperty']('addHighlight')||(_0x20ab2b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4381de),_0x20ab2b['writer']['removeAttribute']('data-suggestion',_0x4381de),_0x20ab2b['mapper']['unbindElementFromMarkerName'](_0x4381de,_0x192dbd['markerName']));}},{'priority':'high'});}),_0x4f24ff['model']['document']['registerPostFixer'](_0x1e67ee=>{let _0x449359=!0x1;const _0x50ac49=Array['from'](_0x4f24ff['model']['document']['differ']['getChangedMarkers']()),_0xb59dd3=new Set();for(const {name:_0x50d300,data:_0x56d47b}of _0x50ac49){const {group:_0x4b27a5,type:_0x3cb5c3,subType:_0x2868bb,id:_0x32dc36}=this['_splitMarkerName'](_0x50d300);if('suggestion'!==_0x4b27a5)continue;const _0x71e557=this['_suggestions']['get'](_0x32dc36);if(null!=_0x56d47b['newRange']){'formatInline'==_0x3cb5c3&&(_0x449359=_0x449359||Et(_0x56d47b['newRange'],_0x50d300,_0x1e67ee,_0x4f24ff['model']['schema']));const _0x210ae8='attribute'==_0x3cb5c3&&this['_isBlockAttribute'](_0x2868bb['split']('|')[0x0]);if(_0x56d47b['newRange']['isCollapsed']||'$graveyard'==_0x56d47b['newRange']['root']['rootName']||'formatBlock'==_0x3cb5c3&&!Ut(_0x56d47b['newRange'])||_0x210ae8&&!Ut(_0x56d47b['newRange'])||'deletion'==_0x3cb5c3&&!(!Tt(_0x360b21=_0x56d47b['newRange'])&&!function(_0x4ce5f5){return _0x4ce5f5['start']['parent']==_0x4ce5f5['end']['nodeBefore']&&_0x4ce5f5['start']['isAtEnd'];}(_0x360b21)))_0x1e67ee['removeMarker'](_0x50d300),_0x449359=!0x0;else{if(!_0x71e557||!_0x71e557['isInContent'])continue;_0xb59dd3['add'](_0x71e557);}}}var _0x360b21;return _0xb59dd3['size']>0x0&&(_0x449359=!!this['_joinWithAdjacentSuggestions'](_0xb59dd3)||_0x449359),_0x449359;}),_0x4f24ff['model']['document']['registerPostFixer'](_0x42bd33=>{let _0x50122e=!0x1;for(const _0x68f0d of _0x4f24ff['model']['document']['differ']['getChanges']())if('insert'==_0x68f0d['type'])for(const _0x56a0cf of this['_suggestions']['values']()){if(_0x56a0cf['isMultiRange']||!_0x56a0cf['isInContent'])continue;const _0xc5407d='formatBlock'==_0x56a0cf['type'],_0x2e641a=this['_getAttributeKey'](_0x56a0cf),_0x22e203=_0x2e641a&&this['_isBlockAttribute'](_0x2e641a);if(!_0xc5407d&&!_0x22e203)continue;const _0x5de2af=_0x56a0cf['getFirstRange']();if(_0x5de2af['start']['parent']!=_0x5de2af['end']['parent']&&!_0x5de2af['end']['isAtEnd']){const _0x25c324=_0x4f24ff['model']['createPositionAt'](_0x5de2af['start']['nodeAfter'],'end'),_0xa2b90c=_0x4f24ff['model']['createRange'](_0x5de2af['start'],_0x25c324);_0x42bd33['updateMarker'](_0x56a0cf['getFirstMarker'](),{'range':_0xa2b90c}),_0x50122e=!0x0;}}return _0x50122e;}),_0x4f24ff['model']['document']['registerPostFixer'](_0xbe9513=>this['_processAttributeChanges'](_0xbe9513)),_0x4f24ff['model']['document']['registerPostFixer'](_0x418e9a=>!_0x418e9a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x418e9a)),_0x4f24ff['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4f24ff['model']['document']['on']('change:data',(_0xf0eeda,_0x279d44)=>{if(!_0x279d44['isLocal']||_0x279d44['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x151500=_0x4f24ff['model']['document']['differ']['getChanges']();if(0x0==_0x151500['length'])return;const _0x17a5b8=[],_0x21a7ae=_0x151500['filter'](_0xd79186=>'attribute'==_0xd79186['type']),_0x57b9e4=_0x151500['filter'](_0x2184f8=>'insert'==_0x2184f8['type']&&'$text'!=_0x2184f8['name']);for(const _0x420adc of _0x21a7ae)this['_isRegisteredAttribute'](_0x420adc['attributeKey'])&&_0x17a5b8['push']({'key':_0x420adc['attributeKey'],'newValue':_0x420adc['attributeNewValue'],'oldValue':_0x420adc['attributeOldValue'],'range':Ot(_0x420adc['range'],_0x4f24ff['model'])});for(const _0x126936 of _0x57b9e4){if('rename'!=_0x126936['action']&&'refresh'!=_0x126936['action'])continue;const _0x5840a5=Gt(_0x126936['position']['nodeAfter'],_0x4f24ff['model']),_0x1886a5=_0x126936['before'];'rename'==_0x126936['action']&&_0x17a5b8['push']({'key':m,'newValue':_0x126936['name'],'oldValue':_0x1886a5['name'],'range':_0x5840a5});for(const [_0x1b0a85,_0x3720ba]of _0x1886a5['attributes']){if(!this['_isRegisteredAttribute'](_0x1b0a85))continue;const _0x2dc989=_0x126936['attributes']['get'](_0x1b0a85);_0x3720ba!==_0x2dc989&&_0x17a5b8['push']({'key':_0x1b0a85,'newValue':_0x2dc989,'oldValue':_0x3720ba,'range':_0x5840a5});}for(const [_0x157d32,_0x403307]of _0x126936['attributes'])this['_isRegisteredAttribute'](_0x157d32)&&(_0x1886a5['attributes']['has'](_0x157d32)||_0x17a5b8['push']({'key':_0x157d32,'newValue':_0x403307,'oldValue':null,'range':_0x5840a5}));}0x0!=_0x17a5b8['length']&&_0x4f24ff['model']['enqueueChange'](_0x279d44,_0x1729b3=>{const _0x5931c1=_0xbad781();for(const {range:_0x212f4c,key:_0x563603,oldValue:_0x5145b8,newValue:_0x4545f4}of _0x17a5b8)this['markAttributeChange'](_0x212f4c,_0x563603,_0x5145b8,_0x4545f4,{'groupId':_0x5931c1});this['_reduceExistingSuggestions'](_0x1729b3,_0x17a5b8);});},{'priority':'lowest'}),_0x4f24ff['model']['markers']['on']('update:suggestion',(_0x5d6ad4,_0x18679a,_0x1eca5d)=>{if(null==_0x1eca5d){const {id:_0x42e884}=this['_splitMarkerName'](_0x18679a['name']),_0x1f9e51=this['_suggestions']['get'](_0x42e884);_0x1f9e51&&_0x1f9e51['addMarkerName'](_0x18679a['name']);}}),_0x4f24ff['model']['document']['on']('change:data',()=>{const _0x5f5324=Array['from'](_0x4f24ff['model']['document']['differ']['getChangedMarkers']())['filter'](_0x46275f=>'suggestion'===this['_splitMarkerName'](_0x46275f['name'])['group']);if(0x0===_0x5f5324['length'])return;_0x5f5324['sort']((_0x3a475e,_0x1136ed)=>{const _0x4f191f=_0x3a475e['data']['oldRange'],_0x4bc4f5=_0x1136ed['data']['oldRange'];return null===_0x4f191f&&null===_0x4bc4f5?0x0:null===_0x4f191f&&null!==_0x4bc4f5?-0x1:null!==_0x4f191f&&null===_0x4bc4f5?0x1:_0x4f191f['start']['isBefore'](_0x4bc4f5['start'])?-0x1:0x1;});const _0x342ad3=new Set(),_0xc7d07=new Set();for(const {name:_0x193921,data:_0x3b9b67}of _0x5f5324){const {id:_0x117451}=this['_splitMarkerName'](_0x193921);if(null===_0x3b9b67['oldRange']){const _0x14a9f4=this['_handleNewSuggestionMarker'](_0x193921);_0xc7d07['add'](_0x14a9f4);}else{const _0x277ee5=this['_suggestions']['get'](_0x117451);null!==_0x3b9b67['newRange']||_0x277ee5['isInContent']?(_0x342ad3['add'](_0x277ee5['head']),_0xc7d07['add'](_0x277ee5)):this['_removeSuggestion'](_0x277ee5);}}_0xc7d07['size']>0x0&&this['_refreshSuggestionsChain'](_0xc7d07);for(const _0x2c553b of _0x342ad3)this['fire']('suggestionChanged',_0x2c553b);}),_0x4f24ff['model']['on']('applyOperation',(_0x4ae815,_0x537c44)=>{const _0x37d981=_0x537c44[0x0];if(!this['_suggestions']['size'])return;if(!_0x37d981['isDocumentOperation'])return;if(_0x37d981['batch']['isUndo']||!_0x37d981['batch']['isLocal'])return;let _0xca77bd,_0x2f71f6;switch(_0x37d981['type']){case'insert':_0xca77bd=_0x4f24ff['model']['createPositionAt'](_0x37d981['position']),_0x2f71f6=_0xca77bd['getShiftedBy'](_0x37d981['howMany']);break;case'split':_0xca77bd=_0x4f24ff['model']['createPositionAt'](_0x37d981['splitPosition']),_0x2f71f6=_0x4f24ff['model']['createPositionAt'](_0x37d981['moveTargetPosition']);break;case'move':_0xca77bd=_0x4f24ff['model']['createPositionAt'](_0x37d981['targetPosition']),_0x2f71f6=_0xca77bd['getShiftedBy'](_0x37d981['howMany']);break;default:return;}const _0x183b00=_0x4f24ff['model']['createRange'](_0xca77bd,_0x2f71f6);_0x4f24ff['model']['change'](()=>{for(const {suggestion:_0x5c35bf,meta:_0x2f8162}of this['_findSuggestions'](_0x183b00)){if(_0x5c35bf['isMultiRange'])continue;if('formatInline'==_0x5c35bf['type'])continue;const _0xc6cd59=this['_getAttributeKey'](_0x5c35bf);if(_0xc6cd59&&this['_isBlockAttribute'](_0xc6cd59)&&'split'!=_0x37d981['type'])continue;const _0x4c27b8=_0x5c35bf['data']&&_0x5c35bf['data']['multipleBlocks'];('formatBlock'!=_0x5c35bf['type']||'split'==_0x37d981['type']&&!_0x4c27b8)&&(_0x2f8162['containsRangeInObject']||'insertion'==_0x5c35bf['type']&&_0x2f8162['isOwn']||_0x5c35bf['getFirstRange']()['containsRange'](_0x183b00)&&this['_breakSuggestionMarker'](_0x5c35bf,_0xca77bd,_0x2f71f6));}});},{'priority':'lowest'}),_0x4f24ff['model']['on']('deleteContent',(_0x5a8398,_0x426843)=>{const _0x10f636=_0x426843[0x0],_0x45c904=_0x426843[0x1];if(_0x45c904&&_0x45c904['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x10f636['isCollapsed'])return;const _0x8cb761=_0x4f24ff['model']['schema'],{start:_0x44ce94,end:_0x3e9d5d}=_0x10f636['getFirstRange'](),_0xb169d9=_0x44ce94['nodeAfter']&&_0x8cb761['isLimit'](_0x44ce94['nodeAfter'])?null:_0x8cb761['getNearestSelectionRange'](_0x44ce94,'forward'),_0x53b885=_0x3e9d5d['nodeBefore']&&_0x8cb761['isLimit'](_0x3e9d5d['nodeBefore'])?null:_0x8cb761['getNearestSelectionRange'](_0x3e9d5d,'backward'),_0x25b4eb=_0x4f24ff['model']['createRange'](_0xb169d9?_0xb169d9['start']:_0x44ce94,_0x53b885?_0x53b885['end']:_0x3e9d5d);_0x4f24ff['model']['change'](_0x4c9b83=>{this['markDeletion'](_0x25b4eb);const _0x9397a6=_0x4f24ff['model']['schema']['getNearestSelectionRange'](_0x25b4eb['start']);_0x10f636['is']('documentSelection')?_0x4c9b83['setSelection'](_0x9397a6):_0x10f636['setTo'](_0x9397a6);}),_0x5a8398['stop']();},{'priority':_0x14830a['normal']+0xa}),_0x4f24ff['model']['on']('insertContent',(_0x15a7c2,_0x416593)=>{const _0x3a688f=_0x416593[_0x416593['length']-0x1];_0x3a688f&&_0x3a688f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4f24ff['model']['change'](()=>{let _0x45be0b=_0x4f24ff['model']['insertContent'](_0x416593[0x0],_0x416593[0x1],_0x416593[0x2],{'forceDefaultExecution':!0x0});if(!_0x45be0b)return;_0x15a7c2['return']=_0x45be0b['clone']();const _0x4e0d3d=_0x45be0b['end']['nodeBefore'],_0x560dba=_0x4f24ff['model']['schema'];_0x4e0d3d&&_0x560dba['isBlock'](_0x4e0d3d)&&!_0x560dba['isObject'](_0x4e0d3d)&&(_0x45be0b=_0x4f24ff['model']['createRange'](_0x45be0b['start'],_0x4f24ff['model']['createPositionAt'](_0x4e0d3d,'end'))),this['markInsertion'](_0x45be0b);}),_0x15a7c2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x6bd5e7=new $(_0x4f24ff,this['_suggestions']);_0x4f24ff['commands']['add']('acceptSuggestion',_0x6bd5e7),this['enableCommand']('acceptSuggestion');const _0x23ea3d=new B(_0x4f24ff,this['_suggestions']);_0x4f24ff['commands']['add']('discardSuggestion',_0x23ea3d),this['enableCommand']('discardSuggestion'),_0x4f24ff['commands']['add']('acceptAllSuggestions',new x(_0x4f24ff,_0x6bd5e7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4f24ff['commands']['add']('discardAllSuggestions',new x(_0x4f24ff,_0x23ea3d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4f24ff['commands']['add']('acceptSelectedSuggestions',new R(_0x4f24ff,_0x6bd5e7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4f24ff['commands']['add']('discardSelectedSuggestions',new R(_0x4f24ff,_0x23ea3d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4c5c7a=_0x4f24ff['plugins']['get']('CommentsRepository');this['listenTo'](_0x4c5c7a,'addComment',(_0x4312aa,{threadId:_0x102ed0})=>{const _0x18066a=this['_suggestions']['get'](_0x102ed0);_0x18066a&&_0x18066a['commentThread']&&0x1===_0x18066a['commentThread']['length']&&this['_updateSuggestionData'](_0x102ed0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4c5c7a,'removeComment',(_0x2fac7a,{threadId:_0x487ec3})=>{const _0x57584e=this['_suggestions']['get'](_0x487ec3);_0x57584e&&_0x57584e['commentThread']&&!_0x57584e['commentThread']['length']&&this['_updateSuggestionData'](_0x487ec3,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5e612c){if(this['_adapter'])throw new _0x51b9ff('track-changes-adapter-already-set',this);this['_adapter']=_0x5e612c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1c2b44=!0x1,toJSON:_0x101c0c=!0x1}={}){const _0x493094=[];for(const _0x53186b of this['_suggestions']['values']())_0x1c2b44&&!_0x53186b['isInContent']||_0x493094['push'](_0x53186b);return _0x101c0c?_0x493094['map'](_0x38879a=>_0x38879a['toJSON']()):_0x493094;}['getSuggestion'](_0x5cef3d){const _0x15f0fc=this['_suggestions']['get'](_0x5cef3d);if(!_0x15f0fc)throw new _0x51b9ff('track-changes-suggestion-not-found',this);return _0x15f0fc;}['hasSuggestion'](_0x1cfd52){return this['_suggestions']['has'](_0x1cfd52);}['addSuggestionData'](_0x45aae9){const {authorId:_0x151aee,id:_0xf12c44,attributes:_0x217811}=_0x45aae9,[_0x1be689,_0x19f2dc]=_0x45aae9['type']['split'](':'),_0x52fedb=this['_suggestions']['get'](_0xf12c44)||this['_createSuggestion'](_0x1be689,_0x19f2dc,_0xf12c44,_0x151aee,_0x217811);if(this['_addThreadToSuggestion'](_0x52fedb),this['_checkSuggestionCorrectness'](_0x52fedb,_0x1be689,_0x19f2dc||null,_0x151aee),_0x52fedb['createdAt']=_0x45aae9['createdAt'],_0x52fedb['_isDataLoaded']=!0x0,_0x217811&&_0x217811['@external']){const _0x2044f6=_0x217811['@external'],_0x4fc4fb=this['_getExternalAuthor'](_0x2044f6['authorName']);_0x52fedb['authoredAt']=_0x2044f6['createdAt'],_0x52fedb['author']=_0x4fc4fb,_0x52fedb['isExternal']=!0x0;}else _0x52fedb['authoredAt']=_0x45aae9['createdAt'];switch(_0x45aae9['data']&&(_0x52fedb['data']=_0x45aae9['data']),_0x45aae9['attributes']&&(_0x52fedb['attributes']=_0x45aae9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x52fedb['_saved']=!0x0),this['_suggestionState']['get'](_0x52fedb)){case'notReady':this['_suggestionState']['set'](_0x52fedb,'dataReady');break;case'markerReady':_0x52fedb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x52fedb])),this['_refreshSuggestionsChain'](new Set([_0x52fedb])),this['_suggestionState']['set'](_0x52fedb,'ready'),this['fire']('suggestionLoaded',_0x52fedb)):this['_suggestionState']['set'](_0x52fedb,'removed');}return _0x52fedb;}['acceptSuggestion'](_0x122b06){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2e191a of _0x122b06['getAllAdjacentSuggestions']())_0x2e191a['accept']();});});}['discardSuggestion'](_0x19d4ff){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5587dc of _0x19d4ff['getAllAdjacentSuggestions']())_0x5587dc['discard']();});});}['enableCommand'](_0x556d26,_0x26f46e){const _0x51c386=this['editor']['commands']['get'](_0x556d26);if(!_0x51c386)throw new _0x51b9ff('track-changes-command-not-found',this,{'commandName':_0x556d26});if(this['_enabledCommands']['has'](_0x51c386))throw new _0x51b9ff('track-changes-enable-command-twice',this,{'commandName':_0x556d26});this['_enabledCommands']['add'](_0x51c386),_0x26f46e&&_0x51c386['on']('execute',(_0x221b95,_0x2d144d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2d144d['length']>0x0&&_0x2d144d[_0x2d144d['length']-0x1]&&_0x2d144d[_0x2d144d['length']-0x1]['forceDefaultExecution']?_0x2d144d['pop']():(_0x221b95['return']=_0x26f46e((..._0x3bf4ec)=>_0x51c386['execute'](..._0x3bf4ec,{'forceDefaultExecution':!0x0}),..._0x2d144d),_0x221b95['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x144d2b){let _0x3f2d26,_0x52f1b3;const _0x4fbeda=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3f2d26=_0x144d2b();}catch(_0x2d4e1d){_0x52f1b3=_0x2d4e1d;}return _0x4fbeda||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x52f1b3&&_0x51b9ff['rethrowUnexpectedError'](_0x52f1b3,this),_0x3f2d26;}['markInsertion'](_0x1f9064,_0x4bf325=null,_0x313864={}){if(_0x1f9064['isCollapsed'])return null;const _0x26777e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x20115b,meta:_0x4253ab}of this['_findSuggestions'](_0x1f9064,'insertion'))if(_0x4253ab['isOwn']){if(!_0x4253ab['isNextTo']){if(_0x4253ab['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x20115b,_0x313864))continue;return _0x20115b;}if(Lt(_0x20115b,_0x313864))return _0x20115b;this['_breakSuggestionMarker'](_0x20115b,_0x1f9064['start'],_0x1f9064['end']);break;}if(_0x4bf325==_0x20115b['subType']&&Lt(_0x20115b,_0x313864)){const _0x43e6bc=_0x20115b['getFirstRange']();return _0x43e6bc['start']['isEqual'](_0x1f9064['end'])?this['_setSuggestionRange'](_0x20115b,this['_model']['createRange'](_0x1f9064['start'],_0x43e6bc['end'])):this['_setSuggestionRange'](_0x20115b,this['_model']['createRange'](_0x43e6bc['start'],_0x1f9064['end'])),_0x20115b;}}const _0x21823a=_0xbad781(),_0x56d861=_0x26777e['id'],_0x1a7ee6=_0x4bf325?'insertion:'+_0x4bf325:'insertion',_0x3183f8=this['_setSuggestionData']({'id':_0x21823a,'type':_0x1a7ee6,'createdAt':new Date(),'authorId':_0x56d861,'attributes':_0x313864});return this['_addSuggestionMarker'](_0x1a7ee6,_0x21823a,_0x56d861,_0x1f9064),_0x3183f8;}['markMultiRangeInsertion'](_0x40c355,_0x11eb98='multi',_0x272f38={}){const _0x3eb88c=this['editor']['plugins']['get']('Users')['me'],_0xde6d92=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x11eb98,'join');for(const _0x29f6d4 of this['getSuggestions']())if(_0x29f6d4['author']['id']==_0x3eb88c['id']&&'insertion'==_0x29f6d4['type']&&_0x29f6d4['subType']==_0x11eb98&&Lt(_0x29f6d4,_0x272f38)&&(_0xde6d92(_0x29f6d4['getRanges'](),_0x40c355)||_0xde6d92(_0x40c355,_0x29f6d4['getRanges']()))){for(const _0x10af1e of _0x40c355)_0x29f6d4['addRange'](_0x10af1e);return _0x29f6d4;}for(const {suggestion:_0x5a259a,meta:_0x393124}of this['_findSuggestions'](_0x40c355,'insertion')){if(!_0x393124['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x393124['containsRangeInObject'])continue;if(!Lt(_0x5a259a,_0x272f38))continue;let _0x1995f0=!0x0;for(const _0x98d54c of _0x5a259a['getRanges']())for(const _0x11b48b of _0x40c355)if(!_0x98d54c['containsRange'](_0x11b48b)){_0x1995f0=!0x1;break;}if(_0x1995f0)return _0x5a259a;}const _0x566fdc=_0xbad781(),_0x3b3665=_0x3eb88c['id'],_0x5947e8='insertion:'+_0x11eb98,_0x115366=this['_setSuggestionData']({'id':_0x566fdc,'type':_0x5947e8,'createdAt':new Date(),'authorId':_0x3b3665,'attributes':_0x272f38});for(const _0x5b5c50 of _0x40c355)this['_addSuggestionMarker'](_0x5947e8,_0x566fdc,_0x3b3665,_0x5b5c50,u['getMultiRangeId']());return _0x115366;}['markInlineFormat'](_0x568ebe,_0x1ebb93,_0x3a7659=null,_0x2ce9bc={}){if(_0x3a7659=_0x3a7659||Vt(_0x1ebb93),_0x568ebe['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x381d1a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3a7659,'accept');return this['forceDefaultExecution'](()=>_0x381d1a([_0x568ebe],_0x1ebb93,_0x2ce9bc)),null;}const _0x20924f=this['editor']['plugins']['get']('Users')['me'],_0x22329a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5cdc55,meta:_0x42c77f}of this['_findSuggestions'](_0x568ebe,'insertion'))_0x42c77f['isOwn']&&!_0x42c77f['isInsideObject']&&_0x22329a['push'](..._0x5cdc55['getRanges']());}const _0x246278=function(_0x3332ed,_0x38957b){const _0x3f2f66=[];for(const _0x31cc26 of _0x38957b){const _0x8f8a94=_0x3332ed['getIntersection'](_0x31cc26);_0x8f8a94&&_0x3f2f66['push'](_0x8f8a94);}return _0x3f2f66;}(_0x568ebe,_0x22329a),_0x2d087c=function(_0x248282,_0x3d93bb){const _0x1bf72a=[_0x248282];for(const _0x2af581 of _0x3d93bb){let _0x275a6a=0x0;for(;_0x275a6a<_0x1bf72a['length'];){const _0x29350c=_0x1bf72a[_0x275a6a]['getDifference'](_0x2af581);_0x1bf72a['splice'](_0x275a6a,0x1,..._0x29350c),_0x275a6a+=_0x29350c['length'];}}return _0x1bf72a;}(_0x568ebe,_0x22329a);_0x246278['length']&&this['_model']['change'](()=>{for(const _0x49a4a2 of _0x246278){const _0x79873b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3a7659,'accept');this['forceDefaultExecution'](()=>_0x79873b([_0x49a4a2],_0x1ebb93,_0x2ce9bc));}});for(const _0x356d42 of _0x2d087c){let _0x4c28a6=null,_0x20276f=_0x356d42['start'],_0x4689ea=_0x356d42['end'];for(const {suggestion:_0x42f362,meta:_0x5f51ce}of this['_findSuggestions'](_0x356d42,'formatInline')){if(!_0x5f51ce['isOwn'])continue;if(_0x42f362['subType']!=_0x3a7659)continue;if(!Lt(_0x42f362,_0x2ce9bc))continue;const _0x5fe748=_0x42f362['getFirstRange']();if(_0x5fe748['containsRange'](_0x356d42,!0x0))return null;_0x20276f=_0x20276f['isBefore'](_0x5fe748['start'])?_0x20276f:_0x5fe748['start'],_0x4689ea=_0x4689ea['isAfter'](_0x5fe748['end'])?_0x4689ea:_0x5fe748['end'],_0x4c28a6?_0x5fe748['start']['isBefore'](_0x4c28a6['getFirstRange']()['start'])?(_0x4c28a6['removeMarkers'](),_0x4c28a6=_0x42f362):_0x42f362['removeMarkers']():_0x4c28a6=_0x42f362;}const _0x4fbd85=this['_model']['createRange'](_0x20276f,_0x4689ea);if(_0x4c28a6)this['_setSuggestionRange'](_0x4c28a6,_0x4fbd85);else{const _0x2051e5=_0xbad781(),_0x4d691a=_0x20924f['id'];this['_setSuggestionData']({'id':_0x2051e5,'type':'formatInline:'+_0x3a7659,'data':_0x1ebb93,'createdAt':new Date(),'authorId':_0x4d691a,'attributes':_0x2ce9bc}),this['_addSuggestionMarker']('formatInline:'+_0x3a7659,_0x2051e5,_0x4d691a,_0x4fbd85);}}return null;}['markBlockFormat'](_0x1dd097,_0x65eb45,_0x6c245a=[],_0x4db778=null,_0x304e5e={}){_0x65eb45['formatGroupId']||(_0x65eb45['formatGroupId']=_0x65eb45['commandName']),_0x65eb45['multipleBlocks']=_0x1dd097['is']('range'),_0x4db778=_0x4db778||Vt(_0x65eb45);const _0x2ec8d6=_0x6c245a['map'](_0x3c7eed=>Gt(_0x3c7eed,this['_model'])),_0x2f247b=_0x1dd097['is']('range')?_0x1dd097:Gt(_0x1dd097,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3612b8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4db778,'accept');return this['forceDefaultExecution'](()=>_0x3612b8([_0x2f247b],_0x65eb45,_0x304e5e)),null;}_0x2ec8d6['push'](_0x2f247b);let _0x3d88fa=!0x0;for(const _0x2f69f8 of _0x2ec8d6)if(!this['_rangeIsInLocalUserInsertion'](_0x2f69f8)){_0x3d88fa=!0x1;break;}if(_0x3d88fa&&'always'!==this['_trackFormatChanges']){const _0x2a9fe5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4db778,'accept');return this['forceDefaultExecution'](()=>_0x2a9fe5([_0x2f247b],_0x65eb45,_0x304e5e)),null;}let _0x1c1a7d=null,_0x742448=_0x2f247b['start'],_0x46ffa5=_0x2f247b['end'];for(const {suggestion:_0x2dc12d,meta:_0x4e54e5}of this['_findSuggestions'](_0x2f247b,'formatBlock')){if(!_0x4e54e5['isOwn'])continue;if(_0x4e54e5['isNextTo']||_0x4e54e5['containsRangeInObject']||_0x4e54e5['isInsideObject'])continue;if(_0x2dc12d['data']['formatGroupId']!=_0x65eb45['formatGroupId'])continue;if(!Lt(_0x2dc12d,_0x304e5e))continue;const _0x5a5a85=_0x2dc12d['getFirstRange']();if(_0x2dc12d['subType']==_0x4db778){if(_0x5a5a85['containsRange'](_0x2f247b,!0x0))return null;_0x742448=_0x742448['isBefore'](_0x5a5a85['start'])?_0x742448:_0x5a5a85['start'],_0x46ffa5=_0x46ffa5['isAfter'](_0x5a5a85['end'])?_0x46ffa5:_0x5a5a85['end'],_0x1c1a7d?_0x5a5a85['start']['isBefore'](_0x1c1a7d['getFirstRange']()['start'])?(_0x1c1a7d['removeMarkers'](),_0x1c1a7d=_0x2dc12d):_0x2dc12d['removeMarkers']():_0x1c1a7d=_0x2dc12d;}else{const _0x1941e8=_0x2f247b['getIntersection'](_0x5a5a85);this['_cutOutSuggestionMarker'](_0x2dc12d,_0x1941e8);}}const _0x8f42cb=this['editor']['plugins']['get']('Users')['me'],_0x1b811b=_0xbad781(),_0x4d7583=_0x8f42cb['id'];if(_0x1c1a7d)return this['_setSuggestionRange'](_0x1c1a7d,this['_model']['createRange'](_0x742448,_0x46ffa5)),_0x1c1a7d;{const _0x119b5d=this['_setSuggestionData']({'id':_0x1b811b,'type':'formatBlock:'+_0x4db778,'data':_0x65eb45,'createdAt':new Date(),'authorId':_0x4d7583,'attributes':_0x304e5e});return this['_addSuggestionMarker']('formatBlock:'+_0x4db778,_0x1b811b,_0x4d7583,this['_model']['createRange'](_0x742448,_0x46ffa5)),_0x119b5d;}}['markMultiRangeBlockFormat'](_0x39783a,_0x10fac0,_0x5c7a5b=[],_0x444590=null,_0x33ea5a={}){_0x10fac0['formatGroupId']||(_0x10fac0['formatGroupId']=_0x10fac0['commandName']);const _0x4c9360=_0x39783a[0x0];_0x10fac0['multipleBlocks']=_0x4c9360['is']('range'),_0x444590=_0x444590||Vt(_0x10fac0);const _0x554ff5=_0x5c7a5b['map'](_0x5a6993=>Gt(_0x5a6993,this['_model'])),_0x5e59aa=_0x4c9360['is']('range')?_0x39783a:_0x39783a['map'](_0x333388=>Gt(_0x333388,this['_model']));if('never'===this['_trackFormatChanges']){const _0xb48381=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x444590,'accept');return this['forceDefaultExecution'](()=>_0xb48381(_0x5e59aa,_0x10fac0,_0x33ea5a)),null;}_0x554ff5['push'](..._0x5e59aa);let _0x1e542a=!0x0;for(const _0x6920ee of _0x554ff5)if(!this['_rangeIsInLocalUserInsertion'](_0x6920ee)){_0x1e542a=!0x1;break;}if(_0x1e542a&&'always'!==this['_trackFormatChanges']){const _0x5248a8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x444590,'accept');return this['forceDefaultExecution'](()=>_0x5248a8(_0x5e59aa,_0x10fac0,_0x33ea5a)),null;}const _0xabaa73=this['editor']['plugins']['get']('Users')['me'];for(const _0x1d334c of this['getSuggestions']()){if(_0x1d334c['author']['id']!=_0xabaa73['id'])continue;if('formatBlock'!=_0x1d334c['type']||_0x1d334c['data']['formatGroupId']!=_0x10fac0['formatGroupId'])continue;if(!Lt(_0x1d334c,_0x33ea5a))continue;const _0x3e5998=_0x1d334c['subType']==_0x444590;for(let _0x326489=0x0;_0x326489<_0x5e59aa['length'];_0x326489++){const _0x25c0f3=_0x5e59aa[_0x326489];for(const _0x4cc5a5 of _0x1d334c['getMarkers']()){const _0x35f033=_0x4cc5a5['getRange']();if(_0x25c0f3['isEqual'](_0x35f033)){_0x3e5998?(_0x5e59aa['splice'](_0x326489,0x1),_0x326489--):_0x1d334c['removeMarker'](_0x4cc5a5['name']);break;}}}}if(0x0==_0x5e59aa['length'])return null;const _0x1ea8e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x444590,'join');for(const _0x41088 of this['getSuggestions']())if(_0x41088['author']['id']==_0xabaa73['id']&&'formatBlock'==_0x41088['type']&&_0x41088['data']['formatGroupId']==_0x10fac0['formatGroupId']&&_0x41088['subType']==_0x444590&&Lt(_0x41088,_0x33ea5a)&&(_0x1ea8e5(_0x41088['getRanges'](),_0x5e59aa)||_0x1ea8e5(_0x5e59aa,_0x41088['getRanges']()))){for(const _0x3269b4 of _0x5e59aa)_0x41088['addRange'](_0x3269b4);return _0x41088;}const _0xd269bc=_0xbad781(),_0x141b8f=_0xabaa73['id'],_0x432e19='formatBlock:'+_0x444590,_0x3d4513=this['_setSuggestionData']({'id':_0xd269bc,'type':_0x432e19,'data':_0x10fac0,'createdAt':new Date(),'authorId':_0x141b8f,'attributes':_0x33ea5a});for(const _0x27cfb3 of _0x5e59aa)this['_addSuggestionMarker'](_0x432e19,_0xd269bc,_0x141b8f,_0x27cfb3,u['getMultiRangeId']());return _0x3d4513;}['markDeletion'](_0x3cd4d8,_0xbd9af0=null,_0x2777d6={}){if(_0x3cd4d8['isCollapsed'])return null;const _0x41b4e0=this['editor']['plugins']['get']('Users')['me'],_0x2f0823=new _0x169303(_0x3cd4d8['start'],_0x3cd4d8['end']);for(const {suggestion:_0x31554d,meta:_0x4225a8}of this['_findSuggestions'](_0x2f0823,'insertion'))if(_0x4225a8['isOwn']&&!_0x4225a8['isNextTo']){if(_0x31554d['isMultiRange']){const _0x20ffba=_0x31554d['getRanges']()['filter'](_0x8ad73a=>'$graveyard'!=_0x8ad73a['root']['rootName']);_0x20ffba['every'](_0x11c426=>_0x2f0823['containsRange'](_0x11c426,!0x0))&&_0x31554d['discard']();if(_0x20ffba['some'](_0x27efce=>_0x27efce['containsRange'](_0x2f0823,!0x0))){const _0x24393b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xbd9af0,'accept');return this['forceDefaultExecution'](()=>_0x24393b([_0x2f0823],null,_0x2777d6)),null;}}else{const _0x37597b=_0x2f0823['getIntersection'](_0x31554d['getFirstRange']());null!==_0x37597b&&_0x31554d['_onDiscard']([_0x37597b],null,_0x2777d6);}}if(_0x2f0823['detach'](),_0x2f0823['isCollapsed']||'$graveyard'==_0x2f0823['root']['rootName'])return null;let _0x4bbb90=null,_0x4ff6f1=_0x2f0823['start'],_0x76f138=_0x2f0823['end'];const _0x205536=this['_findSuggestions'](_0x2f0823,'deletion');for(const {suggestion:_0x38a36c,meta:_0x32f58d}of _0x205536){const _0x82e107=this['_model']['createRange'](_0x4ff6f1,_0x76f138);if(_0x32f58d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x32f58d['containsRangeInObject']&&!_0x32f58d['isInsideObject'])){if(_0x38a36c['isMultiRange']){if(!Lt(_0x38a36c,_0x2777d6))continue;let _0x1026c7=!0x0;for(const _0x24886e of _0x38a36c['getRanges']()){if(_0x24886e['containsRange'](_0x82e107,!0x0))return _0x38a36c;_0x82e107['containsRange'](_0x24886e)||(_0x1026c7=!0x1);}_0x1026c7&&_0x38a36c['discard']();}else{const _0x369c21=_0x38a36c['getFirstRange']();if(_0x369c21['containsRange'](_0x82e107,!0x0))return _0x38a36c;if(!Lt(_0x38a36c,_0x2777d6)){_0x82e107['containsRange'](_0x369c21)?_0x38a36c['removeMarkers']():_0x369c21['containsPosition'](_0x4ff6f1)?_0x4ff6f1=_0x369c21['end']:_0x369c21['containsPosition'](_0x76f138)&&(_0x76f138=_0x369c21['start']);continue;}_0x4ff6f1=_0x4ff6f1['isBefore'](_0x369c21['start'])?_0x4ff6f1:_0x369c21['start'],_0x76f138=_0x76f138['isAfter'](_0x369c21['end'])?_0x76f138:_0x369c21['end'],_0x2777d6=Object['assign']({},_0x38a36c['attributes']),_0x4bbb90?_0x369c21['start']['isBefore'](_0x4bbb90['getFirstRange']()['start'])?(_0x4bbb90['removeMarkers'](),_0x4bbb90=_0x38a36c):_0x38a36c['removeMarkers']():_0x4bbb90=_0x38a36c;}}}if(_0x4bbb90)return this['_setSuggestionRange'](_0x4bbb90,this['_model']['createRange'](_0x4ff6f1,_0x76f138)),_0x4bbb90;{const _0x3baa1f=_0xbad781(),_0x31f7e5=this['_model']['createRange'](_0x4ff6f1,_0x76f138),_0x1f81d6=_0x41b4e0['id'],_0x396ca3=_0xbd9af0?'deletion:'+_0xbd9af0:'deletion',_0x3c5c4c=this['_setSuggestionData']({'id':_0x3baa1f,'type':_0x396ca3,'createdAt':new Date(),'authorId':_0x1f81d6,'attributes':_0x2777d6});return this['_addSuggestionMarker'](_0x396ca3,_0x3baa1f,_0x1f81d6,_0x31f7e5),_0x3c5c4c;}}['markMultiRangeDeletion'](_0x4c3116,_0x149792='multi',_0x1a9c38={}){const _0x34a09d=this['editor']['plugins']['get']('Users')['me'],_0x446414=_0x4c3116['map'](_0x5a542b=>new _0x169303(_0x5a542b['start'],_0x5a542b['end'])),_0x197842=new Set();for(const {suggestion:_0xe29729,meta:_0x30d756}of this['_findSuggestions'](_0x446414,'insertion'))_0x30d756['isOwn']&&!_0x30d756['isNextTo']&&_0x197842['add'](_0xe29729);for(const _0x1a362e of _0x197842)if(_0x1a362e['isMultiRange']){const _0x333b84=_0x1a362e['getRanges']();(!_0x1a362e['attributes']||!_0x1a362e['attributes']['skipNestingCheck'])&&(_0x333b84['every'](_0x6398a5=>_0x446414['some'](_0x1aa04b=>_0x1aa04b['containsRange'](_0x6398a5,!0x0)))&&_0x1a362e['discard']());if(_0x446414['every'](_0x100102=>_0x333b84['some'](_0x25309c=>_0x25309c['containsRange'](_0x100102,!0x0)))){const _0x4cab09=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x149792,'accept');return this['forceDefaultExecution'](()=>_0x4cab09(_0x4c3116,null,_0x1a9c38)),null;}}else{const _0xa8f1cb=_0x1a362e['getFirstRange']();_0x446414['some'](_0x970be8=>_0x970be8['containsRange'](_0xa8f1cb,!0x0))&&_0x1a362e['discard']();if(_0x446414['every'](_0x1c618c=>_0xa8f1cb['containsRange'](_0x1c618c,!0x0))){const _0x5b9438=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x149792,'accept');return this['forceDefaultExecution'](()=>_0x5b9438(_0x446414,null,_0x1a9c38)),null;}}const _0x55e56e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x149792,'join');let _0x4dd639=null;for(const _0x559a85 of this['getSuggestions']())if(_0x559a85['author']['id']==_0x34a09d['id']&&_0x559a85['isInContent']&&'deletion'==_0x559a85['type']&&_0x559a85['subType']==_0x149792&&Lt(_0x559a85,_0x1a9c38)&&(_0x55e56e(_0x559a85['getRanges'](),_0x446414)||_0x55e56e(_0x446414,_0x559a85['getRanges']()))){if(_0x4dd639){if(_0x559a85['commentThread']&&_0x559a85['commentThread']['length'])continue;for(const _0x1232be of _0x559a85['getRanges']())_0x4dd639['isIntersectingWithRange'](_0x1232be)||_0x4dd639['addRange'](_0x1232be);_0x559a85['removeMarkers']();}else{_0x4dd639=_0x559a85;for(const _0x2135b6 of _0x446414)_0x559a85['isIntersectingWithRange'](_0x2135b6)||_0x559a85['addRange'](_0x2135b6);}}if(_0x4dd639)return _0x4dd639;_0x197842['clear']();for(const {suggestion:_0x14ebf6,meta:_0x3f7442}of this['_findSuggestions'](_0x446414,'deletion'))_0x3f7442['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f7442['containsRangeInObject']&&!_0x3f7442['isInsideObject'])&&Lt(_0x14ebf6,_0x1a9c38)&&_0x197842['add'](_0x14ebf6);for(const _0x3e7741 of _0x197842){const _0x5327f9=_0x3e7741['getRanges']();if(!_0x1a9c38||!_0x1a9c38['skipNestingCheck']){if(_0x446414['every'](_0x204b5c=>_0x5327f9['some'](_0x3a7fae=>_0x3a7fae['containsRange'](_0x204b5c,!0x0))))return _0x3e7741;}(!_0x3e7741['attributes']||!_0x3e7741['attributes']['skipNestingCheck'])&&(_0x5327f9['every'](_0x2596ff=>_0x446414['some'](_0x70f8d4=>_0x70f8d4['containsRange'](_0x2596ff,!0x0)))&&_0x3e7741['discard']());}const _0x2ec52c=_0xbad781(),_0x500449=_0x34a09d['id'],_0x1c25f4='deletion:'+_0x149792,_0x34de2d=this['_setSuggestionData']({'id':_0x2ec52c,'type':_0x1c25f4,'createdAt':new Date(),'authorId':_0x500449,'attributes':_0x1a9c38});for(const _0x4bcb77 of _0x446414)_0x4bcb77['detach'](),_0x4bcb77['isCollapsed']||'$graveyard'==_0x4bcb77['root']['rootName']||this['_addSuggestionMarker'](_0x1c25f4,_0x2ec52c,_0x500449,_0x4bcb77,u['getMultiRangeId']());return _0x34de2d;}['markAttributeChange'](_0x2807bb,_0x275c2a,_0x24273c,_0x5cbcfe,_0x4d6ca6){if(_0x2807bb['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3ee2c2=this['editor']['plugins']['get']('Users')['me']['id'],_0x3352f3=Array['from'](this['_suggestions']['values']())['filter'](_0x2d470b=>'attribute'==_0x2d470b['type']&&_0x2d470b['data']['key']==_0x275c2a&&_0x2d470b['isIntersectingWithRange'](_0x2807bb));if('default'===this['_trackFormatChanges']){const _0x2b208d=this['_findSuggestions'](_0x2807bb,'insertion')['filter'](({meta:_0x260f87})=>_0x260f87['isOwn']&&!_0x260f87['isInsideObject']&&!_0x260f87['isNextTo'])['map'](({suggestion:_0x496cb0})=>_0x496cb0);_0x3352f3['unshift'](..._0x2b208d);}const _0xf0d0fd=new Map([[_0x2807bb,_0x24273c]]);for(const _0x5e97eb of _0x3352f3){const _0x2d8652='attribute'==_0x5e97eb['type']?_0x5e97eb['data']['oldValue']:void 0x0,_0x49e2c6=_0x5e97eb['getFirstRange'](),_0x42c726=Array['from'](_0xf0d0fd['keys']())['find'](_0x290698=>_0x290698['isIntersecting'](_0x49e2c6));if(!_0x42c726)continue;const _0xe4980c=_0x42c726['getDifference'](_0x49e2c6);this['_isBlockAttribute'](_0x275c2a)&&'insertion'==_0x5e97eb['type']&&0x0!=_0xe4980c['length']||(_0xf0d0fd['delete'](_0x42c726),_0xe4980c['forEach'](_0x109d3c=>{_0xf0d0fd['set'](_0x109d3c,_0x24273c);}),'insertion'!=_0x5e97eb['type']&&_0x2d8652!=_0x5cbcfe&&_0xf0d0fd['set'](_0x42c726['getIntersection'](_0x49e2c6),_0x2d8652));}const _0x4fb566=[];for(const [_0x248943,_0x336523]of _0xf0d0fd){const _0x3c013b=_0xbad781(),_0x58da84={'key':_0x275c2a,'oldValue':_0x336523,'newValue':_0x5cbcfe};_0x275c2a['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':_0x275c2a});const _0x1b406d=('attribute:'+(_0x275c2a+'|'+Vt({'newValue':_0x5cbcfe})))['substring'](0x0,0x3c),_0x3e87dc=this['_setSuggestionData']({'id':_0x3c013b,'type':_0x1b406d,'data':_0x58da84,'createdAt':new Date(),'authorId':_0x3ee2c2,'attributes':_0x4d6ca6});_0x4fb566['push'](_0x3e87dc),this['_addSuggestionMarker'](_0x1b406d,_0x3c013b,_0x3ee2c2,_0x248943);}return _0x4fb566;}['enableDefaultAttributesIntegration'](_0x1f49a5){this['enableCommand'](_0x1f49a5,(_0x21dd6c,..._0x18f5d2)=>{this['_recordAttributeChanges'](()=>{_0x21dd6c(..._0x18f5d2);});});}['registerBlockAttribute'](_0x4d8752){this['_blockAttributeKeys']['add'](_0x4d8752);}['registerInlineAttribute'](_0x535d0f){this['_inlineAttributeKeys']['add'](_0x535d0f);}['_getAttributeKey'](_0x5a2fda){return'attribute'==_0x5a2fda['type']?_0x5a2fda['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xc88297,_0x578717){const _0x2fff1f=_0xc88297['getFirstMarker']();this['_model']['change'](_0x330261=>{_0x330261['updateMarker'](_0x2fff1f,{'range':_0x578717});});}['_addThreadToSuggestion'](_0x374a59){const _0x4d8437=_0x374a59['id'],_0x45f1fa=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4d8437)||this['_commentsRepository']['addCommentThread']({'channelId':_0x45f1fa,'threadId':_0x4d8437,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4505a2=this['_commentsRepository']['getCommentThread'](_0x4d8437);_0x4505a2['unbind']('isRemovable'),_0x4505a2['isRemovable']=!0x1,_0x374a59['commentThread']=_0x4505a2;}['_checkSuggestionCorrectness'](_0x424eb5,_0x57f789,_0x29df0c,_0x4ee48e){if(_0x424eb5['type']!=_0x57f789||_0x424eb5['subType']!=_0x29df0c||_0x424eb5['creator']['id']!=_0x4ee48e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x51b9ff('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2f955f,_0x2fd48f){const _0x269afc=_0x2f955f['getFirstRange']();if(_0x2fd48f['isEqual'](_0x269afc))_0x2f955f['removeMarkers']();else{if(_0x269afc['containsRange'](_0x2fd48f)){const _0x2577cb=this['_model']['createPositionAt'](_0x2fd48f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f955f,this['_model']['createRange'](_0x269afc['start'],_0x2577cb));const _0x3540b8=_0xbad781(),_0x55c148=_0x2f955f['creator']['id'],_0x3f575c=_0x2f955f['type']+':'+_0x2f955f['subType'];this['_setSuggestionData']({'id':_0x3540b8,'type':_0x3f575c,'createdAt':new Date(),'authorId':_0x55c148,'data':_0x2f955f['data'],'attributes':_0x2f955f['attributes']});const _0x5aef63=this['_model']['createPositionAt'](_0x2fd48f['end']['parent'],'after'),_0x22cb18=this['_model']['createRange'](_0x5aef63,_0x269afc['end']);this['_addSuggestionMarker'](_0x3f575c,_0x3540b8,_0x55c148,_0x22cb18);}else{if(_0x269afc['containsPosition'](_0x2fd48f['start'])){const _0x439fc2=this['_model']['createPositionAt'](_0x2fd48f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f955f,this['_model']['createRange'](_0x269afc['start'],_0x439fc2));}else{const _0x36f6dd=this['_model']['createPositionAt'](_0x2fd48f['end']['parent'],'after');this['_setSuggestionRange'](_0x2f955f,this['_model']['createRange'](_0x36f6dd,_0x269afc['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4be5e4){for(const {suggestion:_0x3445cb,meta:_0x145a2d}of this['_findSuggestions'](_0x4be5e4,'insertion')){if(!_0x145a2d['isOwn'])continue;const _0x314afc=_0x3445cb['getRanges']();for(const _0xb2cc9 of _0x314afc)if(!_0x4be5e4['getDifference'](_0xb2cc9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4c774a){const _0x3d99d2=this['editor']['plugins']['get']('Users')['getUser'](_0x4c774a);if(!_0x3d99d2)throw new _0x51b9ff('track-changes-user-not-found',this);return _0x3d99d2;}['_getExternalAuthor'](_0x58c6d7){const _0x5d2fef=this['editor']['plugins']['get']('Users'),_0x136671=_0x5d7687('external:'+_0x58c6d7),_0x48f9e5=_0x5d2fef['getUser'](_0x136671);return _0x48f9e5||_0x5d2fef['addUser']({'id':_0x136671,'name':_0x58c6d7});}['_createSuggestion'](_0x2519d0,_0x578948,_0xda4bc4,_0x200e36,_0x48a0fa){const _0x25ea0a=this['_getAuthorFromId'](_0x200e36),_0x28fc13=this['_suggestionFactory']['buildSuggestion'](_0x2519d0,_0x578948,_0xda4bc4,_0x25ea0a,_0x48a0fa,_0x49e087=>{this['_updateSuggestionData'](_0xda4bc4,{'attributes':_0x49e087});const _0x228f65=this['getSuggestion'](_0xda4bc4);this['_joinWithAdjacentSuggestions'](new Set([_0x228f65])),this['_refreshSuggestionsChain'](new Set([_0x228f65]));});return this['listenTo'](_0x28fc13,'accept',()=>{this['_updateSuggestionData'](_0xda4bc4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x28fc13,'discard',()=>{this['_updateSuggestionData'](_0xda4bc4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xda4bc4,_0x28fc13),this['_suggestionState']['set'](_0x28fc13,'notReady'),_0x28fc13;}['_splitMarkerName'](_0x2d52d4){const _0x4ba0f4=_0x2d52d4['split'](':');return{'group':_0x4ba0f4[0x0],'type':_0x4ba0f4[0x1],'subType':_0x4ba0f4['length']>=0x5?_0x4ba0f4[0x2]:null,'id':_0x4ba0f4['length']<0x5?_0x4ba0f4[0x2]:_0x4ba0f4[0x3],'authorId':_0x4ba0f4['length']<0x5?_0x4ba0f4[0x3]:_0x4ba0f4[0x4],'markerCount':0x6==_0x4ba0f4['length']?_0x4ba0f4[0x5]:null};}['_breakSuggestionMarker'](_0x5c7303,_0x5a7dc1,_0x57b0ac){const _0xc96d4d=_0x5c7303['getFirstRange'](),_0x41c342=_0xc96d4d['start'],_0x3f2d23=_0xc96d4d['end'];this['_setSuggestionRange'](_0x5c7303,this['_model']['createRange'](_0x41c342,_0x5a7dc1));const _0x1d533d=_0xbad781(),_0x12d266=_0x5c7303['creator']['id'],_0x3216e8=_0x5c7303['type']+(_0x5c7303['subType']?':'+_0x5c7303['subType']:'');this['_setSuggestionData']({'id':_0x1d533d,'type':_0x3216e8,'createdAt':new Date(),'authorId':_0x12d266,'originalSuggestionId':_0x5c7303['id'],'attributes':_0x5c7303['attributes'],'data':_0x5c7303['data']});const _0x24b360=this['_getAttributeKey'](_0x5c7303);('formatBlock'==_0x5c7303['type']||_0x24b360&&this['_isBlockAttribute'](_0x24b360))&&(_0x57b0ac=this['_model']['createPositionBefore'](_0x57b0ac['parent'])),this['_addSuggestionMarker'](_0x3216e8,_0x1d533d,_0x12d266,this['_model']['createRange'](_0x57b0ac,_0x3f2d23));}['_findSuggestions'](_0x327742,_0xc3a69f=null){const _0x2e2562=[],_0x3c8bec=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x327742)||(_0x327742=[_0x327742]);for(const _0x1536b5 of this['getSuggestions']()){if(!_0x1536b5['isInContent'])continue;if(_0xc3a69f&&_0x1536b5['type']!=_0xc3a69f)continue;let _0xb4e779=!0x1;for(const _0x436a0d of _0x1536b5['getRanges']()){for(const _0x17e7f1 of _0x327742){const _0x2ab1a9=_0x17e7f1['start']['isEqual'](_0x436a0d['end'])||_0x17e7f1['end']['isEqual'](_0x436a0d['start']);if(_0x2ab1a9||_0x17e7f1['getIntersection'](_0x436a0d)){const _0x45e7f9=_0x17e7f1['containsRange'](_0x436a0d)&&Rt(this['_model']['schema'],_0x436a0d['start'],_0x17e7f1),_0x3df60d=_0x436a0d['containsRange'](_0x17e7f1)&&Rt(this['_model']['schema'],_0x17e7f1['start'],_0x436a0d);_0x2e2562['push']({'suggestion':_0x1536b5,'meta':{'isOwn':_0x3c8bec==_0x1536b5['author'],'isNextTo':_0x2ab1a9,'isInsideObject':_0x45e7f9,'containsRangeInObject':_0x3df60d}}),_0xb4e779=!0x0;break;}}if(_0xb4e779)break;}}return _0x2e2562;}['_addSuggestionMarker'](_0x11c6d7,_0x56c1fc,_0x3c96a7,_0x5234ab,_0x3dbfbd){this['_model']['change'](_0x4d29c8=>{let _0x2bdc26='suggestion:'+_0x11c6d7+':'+_0x56c1fc+':'+_0x3c96a7;_0x3dbfbd&&(_0x2bdc26=_0x2bdc26+':'+_0x3dbfbd),_0x4d29c8['addMarker'](_0x2bdc26,{'range':_0x5234ab,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1c8f79){const _0x3972f8=_0x1c8f79['previous'],_0x358c7a=_0x1c8f79['next'];_0x1c8f79['previous']=null,_0x1c8f79['next']=null,null!=_0x3972f8&&_0x3972f8['next']==_0x1c8f79&&(_0x3972f8['next']=_0x358c7a),null!=_0x358c7a&&_0x358c7a['previous']==_0x1c8f79&&(_0x358c7a['previous']=_0x3972f8),'ready'==this['_suggestionState']['get'](_0x1c8f79)&&(this['_suggestionState']['set'](_0x1c8f79,'removed'),this['fire']('suggestionUnloaded',_0x1c8f79,_0x3972f8,_0x358c7a));}['_setSuggestionData'](_0x33f8c8){const _0x274b5f=_0x33f8c8['id'],_0x4c851c=this['addSuggestionData'](_0x33f8c8);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1e6475=this['editor']['plugins']['get']('PendingActions'),_0x4b52e6=_0x4c851c['hasComments'],_0x458d90=_0x4c851c['subType']?_0x4c851c['type']+':'+_0x4c851c['subType']:_0x4c851c['type'],_0x559dca=this['editor']['locale'],_0x519b6d=_0x1e6475['add'](o(_0x559dca,'PENDING_ACTION_SUGGESTION')),_0x3f9b72={'id':_0x274b5f,'type':_0x458d90,'hasComments':_0x4b52e6,'data':_0x33f8c8['data']||null,'originalSuggestionId':_0x33f8c8['originalSuggestionId']||null,'attributes':_0x4c851c['attributes']};this['_adapter']['addSuggestion'](_0x3f9b72)['then'](_0x57d31d=>{_0x4c851c['_saved']=!0x0,_0x1e6475['remove'](_0x519b6d),_0x57d31d&&_0x57d31d['createdAt']&&(this['_suggestions']['get'](_0x274b5f)['createdAt']=_0x57d31d['createdAt']);})['catch'](_0x1ca345=>{throw _0x506c1b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4c851c['discard']();}),_0x4c851c['stopListening'](),this['_suggestions']['delete'](_0x4c851c['id']),this['_suggestionState']['delete'](_0x4c851c),_0x1ca345;});}return _0x4c851c;}['_isBlockAttribute'](_0x1e0044){return this['_blockAttributeKeys']['has'](_0x1e0044);}['_updateSuggestionData'](_0x2c0e0b,_0xf7af59){const _0x27b6d8=this['editor']['plugins']['get']('PendingActions'),_0x1af414=this['getSuggestion'](_0x2c0e0b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1af414['_saved']){const _0x150f57=_0x27b6d8['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2c0e0b,_0xf7af59)['then'](()=>{_0x27b6d8['remove'](_0x150f57);});}else _0x1af414['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2c0e0b,_0xf7af59);});}}['_getSuggestionData'](_0x40e0c6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x51b9ff('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x40e0c6);}['_handleNewSuggestionMarker'](_0x9e96f0){const {id:_0x4bc0ec,type:_0x338a07,subType:_0x552687,authorId:_0x5cab17}=this['_splitMarkerName'](_0x9e96f0),_0x196229=this['_suggestions']['get'](_0x4bc0ec)||this['_createSuggestion'](_0x338a07,_0x552687,_0x4bc0ec,_0x5cab17,{});switch(this['_checkSuggestionCorrectness'](_0x196229,_0x338a07,_0x552687,_0x5cab17),this['_suggestionState']['get'](_0x196229)){case'notReady':this['_getSuggestionData'](_0x4bc0ec)['then'](_0x5b278a=>{let _0x3b145d=Promise['resolve']();_0x5b278a['hasComments']&&(_0x3b145d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4bc0ec})),_0x3b145d['then'](()=>{this['addSuggestionData'](_0x5b278a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x196229,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4bc0ec,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x196229,'ready'),this['fire']('suggestionLoaded',_0x196229);break;case'ready':this['fire']('suggestionChanged',_0x196229);}return _0x196229['addMarkerName'](_0x9e96f0),_0x196229;}['_refreshSuggestionsChain'](_0x255267){const _0x474fd6=Array['from'](_0x255267),_0x5c0848=_0x474fd6['filter'](_0x4b9e6a=>'attribute'==_0x4b9e6a['type']);this['_refreshAttributeSuggestionsChain'](_0x5c0848);const _0x3457e9=_0x474fd6['filter'](_0x255303=>!_0x255303['isMultiRange']&&'attribute'!=_0x255303['type']),_0x68719c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ae930=>!_0x2ae930['isMultiRange']&&'attribute'!=_0x2ae930['type']),_0x523a18=_0x68719c['filter'](_0x154f3f=>!_0x255267['has'](_0x154f3f)),_0x597154=new Map(_0x68719c['map'](_0x55a75e=>[_0x55a75e,this['_suggestionFactory']['getSuggestionCallback'](_0x55a75e['type'],_0x55a75e['subType'],'chain')])),_0x3abb5c=new Map(_0x68719c['map'](_0x1433de=>[_0x1433de,_0x1433de['getFirstRange']()])),_0x296aea=new Set(),_0xfc374c=new Set();for(let _0x2383ec=0x0;_0x2383ec<_0x3457e9['length'];_0x2383ec++)_0x31e137(_0x3457e9[_0x2383ec],_0x3457e9,_0x2383ec+0x1);for(let _0x2a71bf=0x0;_0x2a71bf<_0x3457e9['length'];_0x2a71bf++)_0x31e137(_0x3457e9[_0x2a71bf],_0x523a18,0x0);const _0xa95962=new Set();for(let _0x7d02dc=0x0;_0x7d02dc<_0x3457e9['length'];_0x7d02dc++){const _0x2ff192=_0x3457e9[_0x7d02dc];!_0xfc374c['has'](_0x2ff192)&&_0x2ff192['previous']&&(_0xa95962['add'](_0x2ff192['previous']),_0x2ff192['previous']['next']===_0x2ff192&&(_0x2ff192['previous']['next']=null),_0x2ff192['previous']=null),!_0x296aea['has'](_0x2ff192)&&_0x2ff192['next']&&(_0xa95962['add'](_0x2ff192['next']),_0x2ff192['next']['previous']===_0x2ff192&&(_0x2ff192['next']['previous']=null),_0x2ff192['next']=null);}function _0x31e137(_0x29a4f3,_0x178f83,_0x123851){for(let _0x5c13b5=_0x123851;_0x5c13b5<_0x178f83['length'];_0x5c13b5++){const _0x342af8=_0x3e23d9(_0x29a4f3,_0x178f83[_0x5c13b5]);_0x342af8&&(_0x342af8[0x0]['next']=_0x342af8[0x1],_0x342af8[0x1]['previous']=_0x342af8[0x0],_0x296aea['add'](_0x342af8[0x0]),_0xfc374c['add'](_0x342af8[0x1]));}}function _0x3e23d9(_0x4e4af4,_0x4e8672){if(_0x4e4af4['author']['id']!==_0x4e8672['author']['id'])return null;const _0x538412=_0x597154['get'](_0x4e4af4)(_0x4e4af4,_0x4e8672,_0x3abb5c['get'](_0x4e4af4),_0x3abb5c['get'](_0x4e8672));if(!_0x538412)return null;return _0x597154['get'](_0x4e8672)(_0x4e4af4,_0x4e8672,_0x3abb5c['get'](_0x4e4af4),_0x3abb5c['get'](_0x4e8672))?_0x538412[0x1]['commentThread']&&_0x538412[0x1]['commentThread']['length']?null:_0x538412:null;}_0xa95962['size']&&this['_refreshSuggestionsChain'](_0xa95962);}['_refreshAttributeSuggestionsChain'](_0x20e16d){if(0x0==_0x20e16d['length'])return;const _0xb7533b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x181b55=>'attribute'==_0x181b55['type']&&_0x181b55['_isDataLoaded']),_0x34301c=[],_0x4b6149=new Map();for(const _0x1a1d3b of _0xb7533b){const _0x25df93=_0x5d7687(_0x1a1d3b['attributes']);_0x4b6149['has'](_0x25df93)||(_0x4b6149['set'](_0x25df93,_0x34301c['length']),_0x34301c['push']([]));const _0x19f8dc=_0x4b6149['get'](_0x25df93);_0x34301c[_0x19f8dc]['push'](_0x1a1d3b);}!(function(){_0x34301c['sort']((_0xc4f62d,_0x316ed6)=>{const _0x2d2263=_0xc4f62d[0x0]['createdAt'],_0x2ae5e5=_0x316ed6[0x0]['createdAt'];return _0x2d2263==_0x2ae5e5?_0xc4f62d[0x0]['attributes']['groupId']<_0x316ed6[0x0]['attributes']['groupId']?-0x1:0x1:_0x2d2263<_0x2ae5e5?-0x1:0x1;});for(const _0x585b02 of _0x34301c)_0x585b02['sort']((_0x30c265,_0x17c0b6)=>_0x30c265['id']<_0x17c0b6['id']?-0x1:0x1);}());for(let _0x3ef8e8=0x0;_0x3ef8e8<_0x34301c['length'];_0x3ef8e8++){if(0x0==_0x34301c[_0x3ef8e8]['length'])continue;const _0x518028=[];for(let _0x1a62c4=_0x3ef8e8+0x1;_0x1a62c4<_0x34301c['length'];_0x1a62c4++)0x0!=_0x34301c[_0x1a62c4]['length']&&_0x164e39(_0x34301c[_0x3ef8e8],_0x34301c[_0x1a62c4])&&_0x518028['push'](_0x1a62c4);for(const _0x16ec37 of _0x518028)_0x34301c[_0x3ef8e8]=_0x34301c[_0x3ef8e8]['concat'](_0x34301c[_0x16ec37]),_0x34301c[_0x16ec37]=[];}for(const _0x1515bd of _0x34301c)for(let _0x26e2fb=0x0;_0x26e2fb<_0x1515bd['length'];_0x26e2fb++)_0x1515bd[_0x26e2fb]['next']=_0x1515bd[_0x26e2fb+0x1]||null;for(const _0xe63a04 of _0x34301c)for(let _0x1e5f4c=0x0;_0x1e5f4c<_0xe63a04['length'];_0x1e5f4c++)_0xe63a04[_0x1e5f4c]['previous']=_0xe63a04[_0x1e5f4c-0x1]||null;function _0x164e39(_0x31f603,_0x15b3ff){if(_0x31f603[0x0]['attributes']['groupId']!==_0x15b3ff[0x0]['attributes']['groupId']&&_0x31f603[0x0]['author']!==_0x15b3ff[0x0]['author'])return!0x1;if(!function(_0x577949,_0x1ca53a){if(!_0x577949['hasComments']&&!_0x1ca53a['hasComments'])return!0x0;if(_0x577949['hasComments']&&_0x1ca53a['hasComments'])return!0x1;if(_0x577949['hasComments']&&_0x1ca53a['createdAt']<_0x577949['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1ca53a['hasComments']&&_0x577949['createdAt']<_0x1ca53a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x31f603[0x0],_0x15b3ff[0x0]))return!0x1;const _0x47c245=Bt(_0x31f603[0x0]['attributes'],'groupId'),_0x311a48=Bt(_0x15b3ff[0x0]['attributes'],'groupId');if(!_0x32cbbc(_0x47c245,_0x311a48))return!0x1;return!!_0x31f603['every'](_0x368345=>_0x15b3ff['some'](_0x41d447=>_0x368345['getFirstRange']()['isEqual'](_0x41d447['getFirstRange']())))&&_0x15b3ff['every'](_0x2a5d60=>_0x31f603['some'](_0x1a1177=>_0x2a5d60['getFirstRange']()['isEqual'](_0x1a1177['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x112365){const _0x6080b=Array['from'](_0x112365),_0x100f46=this['getSuggestions']({'skipNotAttached':!0x0}),_0x11ddec=_0x100f46['filter'](_0x5f55c6=>!_0x112365['has'](_0x5f55c6)),_0x30c677=new Map(_0x6080b['map'](_0x576713=>[_0x576713,this['_suggestionFactory']['getSuggestionCallback'](_0x576713['type'],_0x576713['subType'],'join')])),_0x3786ff=new Map(_0x100f46['map'](_0x233920=>[_0x233920,_0x233920['getRanges']()]));for(let _0xbcb27d=0x0;_0xbcb27d<_0x6080b['length'];_0xbcb27d++){if(_0x1966b2(this,_0x6080b[_0xbcb27d],_0x6080b,_0xbcb27d+0x1))return!0x0;}for(let _0x485af3=0x0;_0x485af3<_0x6080b['length'];_0x485af3++){if(_0x1966b2(this,_0x6080b[_0x485af3],_0x11ddec,0x0))return!0x0;}return!0x1;function _0x1966b2(_0x17a518,_0x2aa42a,_0x4d71d0,_0x48c643){for(let _0x200662=_0x48c643;_0x200662<_0x4d71d0['length'];_0x200662++){const _0x484ec4=_0x4d71d0[_0x200662];if(_0x484ec4['type']!==_0x2aa42a['type']||_0x484ec4['author']['id']!==_0x2aa42a['author']['id']||_0x484ec4['subType']!==_0x2aa42a['subType'])continue;if(!Pt(_0x2aa42a,_0x484ec4,['groupId']))continue;if('attribute'==_0x2aa42a['type']&&_0x2aa42a['data']['oldValue']!=_0x484ec4['data']['oldValue'])continue;if('attribute'==_0x2aa42a['type']&&_0x17a518['_isBlockAttribute'](_0x2aa42a['data']['key']))continue;if('formatBlock'==_0x2aa42a['type']){const _0x5a978a=_0x17a518['editor']['model'],_0x20413a=_0x2aa42a['getContainedElement']();if(_0x20413a&&(_0x5a978a['schema']['isObject'](_0x20413a)||_0x5a978a['schema']['isLimit'](_0x20413a)))continue;}const _0x2b1524=_0x30c677['get'](_0x2aa42a),_0x283078=_0x3786ff['get'](_0x2aa42a),_0x30a119=_0x3786ff['get'](_0x484ec4),_0x37f411=_0x2aa42a['commentThread']&&_0x2aa42a['commentThread']['length'],_0x1588aa=_0x484ec4['commentThread']&&_0x484ec4['commentThread']['length'];if(!_0x37f411&&_0x2b1524(_0x30a119,_0x283078))return _0x17a518['_joinSuggestions'](_0x484ec4,_0x2aa42a),_0x3786ff['delete'](_0x2aa42a),!0x0;if(!_0x1588aa&&_0x2b1524(_0x283078,_0x30a119))return _0x17a518['_joinSuggestions'](_0x2aa42a,_0x484ec4),_0x3786ff['delete'](_0x484ec4),!0x0;}return!0x1;}}['_joinSuggestions'](_0x211827,_0xf2db0a){if(_0x211827['isMultiRange']){for(const _0x2e9aa8 of _0xf2db0a['getRanges']())_0x211827['addRange'](_0x2e9aa8);}else{const _0x8b12de=_0xf2db0a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x211827,this['_model']['createRange'](_0x211827['getFirstRange']()['start'],_0x8b12de));}_0xf2db0a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3f5da0,_0x4fc14b){const _0x2342c0=_0x3f5da0['startsWith']('format')||_0x3f5da0['startsWith']('attribute')?'FORMATTING':_0x3f5da0['toUpperCase']();return o(this['editor']['locale'],_0x4fc14b+'_'+_0x2342c0+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x22178f=this['editor'];if(!_0x22178f['ui'])return;const {ariaLiveAnnouncer:_0x5e28f4}=_0x22178f['ui'];_0x55174c(this['_model'],({left:_0xd5719e,entered:_0x31f3ae})=>{for(const _0xc06c6b of _0xd5719e){const {group:_0x50c1a8,type:_0x4eef9f}=this['_splitMarkerName'](_0xc06c6b['name']);if('suggestion'===_0x50c1a8){_0x5e28f4['announce'](this['_getMarkerAnnouncementText'](_0x4eef9f,'LEAVE'));break;}}for(const _0x211dd0 of _0x31f3ae){const {group:_0x59ba76,type:_0x219c2a}=this['_splitMarkerName'](_0x211dd0['name']);if('suggestion'===_0x59ba76){_0x5e28f4['announce'](this['_getMarkerAnnouncementText'](_0x219c2a,'ENTER'));break;}}});}['_processAttributeChanges'](_0x208881){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3280b5=this['editor'],_0x3091dd=_0x3280b5['model']['document']['differ']['getChanges']();if(0x0==_0x3091dd['length'])return!0x1;const _0x3a81f5=[],_0x598ddc=_0x3091dd['filter'](_0x5d7a15=>'attribute'==_0x5d7a15['type']),_0x5b598e=_0x3091dd['filter'](_0x2c502f=>'insert'==_0x2c502f['type']&&'$text'!=_0x2c502f['name']),_0x4a7b32=_0x3091dd['filter'](_0x1cd492=>'remove'==_0x1cd492['type']&&'$text'!=_0x1cd492['name']);for(const _0x370f42 of _0x598ddc)_0x3a81f5['push']({'key':_0x370f42['attributeKey'],'newValue':_0x370f42['attributeNewValue'],'oldValue':_0x370f42['attributeOldValue'],'range':Ot(_0x370f42['range'],_0x3280b5['model'])});for(const _0x230572 of _0x5b598e){const _0x486420=_0x4a7b32['find'](_0x43331d=>_0x43331d['position']['isEqual'](_0x230572['position']));_0x486420&&_0x3a81f5['push']({'key':m,'newValue':_0x230572['name'],'oldValue':_0x486420['name'],'range':_0x3280b5['model']['createRangeOn'](_0x230572['position']['nodeAfter'])});}return 0x0!=_0x3a81f5['length']&&this['_reduceExistingSuggestions'](_0x208881,_0x3a81f5);}['_processAttributeSuggestions'](_0x220e6b){let _0x384f6a=!0x1;const _0x432db6=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x239d1f=>_0x239d1f['data']['newRange']&&_0x239d1f['name']['startsWith']('suggestion:attribute:'));for(const _0x530a2c of _0x432db6){const {subType:_0x4dded7,id:_0xeaa02}=this['_splitMarkerName'](_0x530a2c['name']),_0x2afde4=_0x4dded7['split']('|')[0x0];for(const _0x56163f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x56163f['id']!=_0xeaa02&&'attribute'==_0x56163f['type']&&_0x56163f['data']&&_0x56163f['data']['key']==_0x2afde4&&_0x56163f['getFirstRange']()['isIntersecting'](_0x530a2c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x56163f,_0x530a2c['data']['newRange'],_0x220e6b),_0x384f6a=!0x0);}return _0x384f6a;}['_recordAttributeChanges'](_0x2e3581){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2e3581();}['_isRegisteredAttribute'](_0x2c72aa){const _0x53dc95=this['_isBlockAttribute'](_0x2c72aa),_0x4d206e=this['_inlineAttributeKeys']['has'](_0x2c72aa);return _0x53dc95||_0x4d206e;}['_reduceExistingSuggestions'](_0x3e890d,_0x299410){if(0x0==_0x299410['length'])return!0x1;let _0x47f7c9=!0x1;for(const _0x4483dc of _0x299410){const _0x5c6225=this['_findSuggestions'](_0x4483dc['range'],'attribute')['filter'](_0x2f1e60=>!_0x2f1e60['meta']['isNextTo'])['map'](_0x549f80=>_0x549f80['suggestion']),_0x2e29ef=_0x5d7687({'newValue':_0x4483dc['newValue']});_0x5c6225['filter'](_0x832ebb=>{const [_0x1d5c51,_0xed71a3]=_0x832ebb['subType']['split']('|');return _0x1d5c51==_0x4483dc['key']&&_0xed71a3!=_0x2e29ef;})['forEach'](_0x38fd5c=>{this['_reduceSuggestionAttributeRange'](_0x38fd5c,_0x4483dc['range'],_0x3e890d),_0x47f7c9=!0x0;});}return _0x47f7c9;}['_reduceSuggestionAttributeRange'](_0x479a1c,_0x536979,_0x412327){const _0x24c339=_0x479a1c['getFirstRange']()['getDifference'](_0x536979);0x0!==_0x24c339['length']?0x1!==_0x24c339['length']?this['_breakSuggestionMarker'](_0x479a1c,_0x536979['start'],_0x536979['end']):this['_setSuggestionRange'](_0x479a1c,_0x24c339[0x0]):_0x412327['removeMarker'](_0x479a1c['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4c2bfd){this['_editor']=_0x4c2bfd,this['_model']=_0x4c2bfd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2f9bd8,_0x55115d,_0x555db4,_0x143b28,_0x46c0ae,_0x236d05){return new u(this['_model'],{'type':_0x2f9bd8,'subType':_0x55115d,'id':_0x555db4,'author':_0x143b28,'creator':_0x143b28,'attributes':_0x46c0ae,'onAttributesChange':_0x236d05,'onAccept':(..._0x2fc967)=>this['getSuggestionCallback'](_0x2f9bd8,_0x55115d,'accept')(..._0x2fc967),'onDiscard':(..._0x44efb4)=>this['getSuggestionCallback'](_0x2f9bd8,_0x55115d,'discard')(..._0x44efb4)});}['registerCustomCallback'](_0x23ef83,_0x5da6a5,_0x1a49f7,_0x4eb5ed){const _0x1a0154=_0x23ef83+':'+_0x5da6a5+':'+_0x1a49f7;this['_customCallbacks']['set'](_0x1a0154,_0x4eb5ed);}['getSuggestionCallback'](_0x390a53,_0x3e813b,_0x3e54a1){const _0x17eb91=_0x390a53+':'+_0x3e813b+':'+_0x3e54a1;return this['_customCallbacks']['get'](_0x17eb91)||this['_defaultCallbacks']['get'](_0x390a53+':'+_0x3e54a1);}['_registerDefaultCallbacks'](){const _0x235c63=()=>!0x1,_0x2943e8=_0xdbe310=>{_0xdbe310['sort']((_0xdfcdae,_0x2f1037)=>_0xdfcdae['start']['isBefore'](_0x2f1037['start'])?0x1:-0x1),this['_model']['change'](_0x2918b7=>{for(const _0x56af58 of _0xdbe310){let _0xcca3d1;_0xcca3d1=_0x56af58['end']['isAtEnd']&&_0x56af58['end']['parent']==_0x56af58['start']['nodeAfter']?_0x2918b7['createSelection'](_0x56af58['start']['nodeAfter'],'on'):_0x2918b7['createSelection'](_0x56af58),this['_model']['deleteContent'](_0xcca3d1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x7a9027=(_0x1095f7,_0x502eeb)=>{_0x502eeb&&this['_model']['change'](_0x1a2b2d=>{const {commandName:_0x585afe,commandParams:_0x2786d2=[]}=_0x502eeb,_0x3fd04b=_0x1095f7['map'](_0x216494=>(Tt(_0x216494)&&(_0x216494=this['_model']['createRange'](_0x216494['end'])),_0x216494))['filter'](_0x25a262=>'$graveyard'!==_0x25a262['root']['rootName']);if(_0x3fd04b['length']<0x1)return;const _0x2b1569=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4c9907=>_0x169303['fromRange'](_0x4c9907));_0x1a2b2d['setSelection'](_0x3fd04b);for(const _0x3d1ba1 of this['_editor']['commands']['commands']())_0x3d1ba1['refresh']();_0x2786d2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x585afe,..._0x2786d2);const _0x5cbbe7=_0x2b1569['filter'](_0x3de06=>'$graveyard'!=_0x3de06['root']['rootName']);_0x5cbbe7['length']>0x0&&_0x1a2b2d['setSelection'](_0x5cbbe7);for(const _0x117499 of _0x2b1569)_0x117499['detach']();});},_0x4ddddc=(_0xcb9bb,_0x97b5f)=>0x1==_0xcb9bb['length']&&0x1==_0x97b5f['length']&&_0xcb9bb[0x0]['end']['isEqual'](_0x97b5f[0x0]['start']),_0x4aae31=(_0x1069af,_0x194b52,_0x3284d1,_0x109bb0)=>Ft(_0x1069af,_0x194b52,_0x3284d1,_0x109bb0,this['_model'])?[_0x1069af,_0x194b52]:Ft(_0x194b52,_0x1069af,_0x109bb0,_0x3284d1,this['_model'])?[_0x194b52,_0x1069af]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x235c63),this['_defaultCallbacks']['set']('insertion:discard',_0x2943e8),this['_defaultCallbacks']['set']('insertion:join',_0x4ddddc),this['_defaultCallbacks']['set']('insertion:chain',_0x4aae31),this['_defaultCallbacks']['set']('deletion:accept',_0x2943e8),this['_defaultCallbacks']['set']('deletion:discard',_0x235c63),this['_defaultCallbacks']['set']('deletion:join',_0x4ddddc),this['_defaultCallbacks']['set']('deletion:chain',_0x4aae31),this['_defaultCallbacks']['set']('formatInline:accept',_0x7a9027),this['_defaultCallbacks']['set']('formatInline:discard',_0x235c63),this['_defaultCallbacks']['set']('formatInline:join',_0x4ddddc),this['_defaultCallbacks']['set']('formatInline:chain',_0x235c63),this['_defaultCallbacks']['set']('formatBlock:accept',_0x7a9027),this['_defaultCallbacks']['set']('formatBlock:discard',_0x235c63),this['_defaultCallbacks']['set']('formatBlock:join',_0x4ddddc),this['_defaultCallbacks']['set']('formatBlock:chain',_0x235c63),this['_defaultCallbacks']['set']('attribute:accept',_0x235c63),this['_defaultCallbacks']['set']('attribute:discard',(_0x462607,_0x3a0027)=>{if(!_0x3a0027)return;const _0x103d72=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x243e11=>{if(_0x3a0027['key']==m)for(const _0x527f53 of _0x462607){const _0x540e03=_0x527f53['start']['nodeAfter'],_0x26c2bc=_0x3a0027['oldValue'];_0x243e11['rename'](_0x540e03,_0x26c2bc);}else{if(_0x103d72['_isBlockAttribute'](_0x3a0027['key'])){for(const _0x5dcbc2 of _0x462607)void 0x0!==_0x3a0027['oldValue']?_0x243e11['setAttribute'](_0x3a0027['key'],_0x3a0027['oldValue'],_0x5dcbc2['start']['nodeAfter']):_0x243e11['removeAttribute'](_0x3a0027['key'],_0x5dcbc2['start']['nodeAfter']);}else{for(const _0x4142a6 of _0x462607)_0x3a0027['oldValue']?_0x243e11['setAttribute'](_0x3a0027['key'],_0x3a0027['oldValue'],_0x4142a6):_0x243e11['removeAttribute'](_0x3a0027['key'],_0x4142a6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4ddddc);}}function Rt(_0x1afbd4,_0x2f01c5,_0x282a02){for(const _0x5e931a of _0x2f01c5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5e931a['root']==_0x5e931a)return!0x1;if(!_0x282a02['containsItem'](_0x5e931a))return!0x1;if(_0x1afbd4['isObject'](_0x5e931a)||_0x1afbd4['isLimit'](_0x5e931a))return!0x0;}return!0x1;}function Tt(_0x413c6e){return _0x413c6e['end']['parent']==_0x413c6e['start']['nodeAfter']&&_0x413c6e['end']['isAtStart'];}function Et(_0x2cfc19,_0x37a11b,_0xaa850e,_0xaf01cf){const _0x1db5e6=_0x33faaa=>!_0x33faaa['item']['is']('$textProxy')&&!_0xaf01cf['isObject'](_0x33faaa['item']),_0x514b82=_0x2cfc19['start']['getLastMatchingPosition'](_0x1db5e6),_0x5d624a=_0x2cfc19['end']['getLastMatchingPosition'](_0x1db5e6,{'direction':'backward'});return(!_0x2cfc19['start']['isEqual'](_0x514b82)||!_0x2cfc19['end']['isEqual'](_0x5d624a))&&(_0x514b82['isBefore'](_0x5d624a)?_0xaa850e['updateMarker'](_0x37a11b,{'range':_0xaa850e['createRange'](_0x514b82,_0x5d624a)}):_0xaa850e['removeMarker'](_0x37a11b),!0x0);}function Vt(_0x2b27c4){return _0x5d7687(_0x2b27c4);}function Ut(_0x3e0069){const _0x354f88=_0x3e0069['start']['nodeAfter'];return _0x354f88&&_0x354f88['is']('element');}function Ot(_0x720e2b,_0x223e31){return null==_0x720e2b['end']['nodeBefore']&&_0x720e2b['end']['parent']==_0x720e2b['start']['nodeAfter']?Gt(_0x720e2b['start']['nodeAfter'],_0x223e31):_0x720e2b;}function Gt(_0xced56b,_0x24d50a){const _0x44bdcc=_0x24d50a['schema']['isObject'](_0xced56b)||_0x24d50a['schema']['isSelectable'](_0xced56b);return _0x24d50a['createRange'](_0x24d50a['createPositionAt'](_0xced56b,'before'),_0x44bdcc?_0x24d50a['createPositionAfter'](_0xced56b):_0x24d50a['createPositionAt'](_0xced56b,'end'));}function Ft(_0x33ea08,_0xfd1622,_0x31c504,_0x38a611,_0x693798){if(!Pt(_0x33ea08,_0xfd1622))return!0x1;if(_0x31c504['end']['isEqual'](_0x38a611['start']))return!0x0;if(_0x33ea08['type']!=_0xfd1622['type'])return!0x1;if(!_0x31c504['end']['isTouching'](_0x38a611['start']))return!0x1;const _0x304790=_0x693798['createRange'](_0x31c504['end'],_0x38a611['start'])['getWalker']();for(const _0x8d6f6d of _0x304790)if(['elementStart','elementEnd']['includes'](_0x8d6f6d['type'])&&_0x693798['schema']['isLimit'](_0x8d6f6d['item']))return!0x1;return!0x0;}function Pt(_0x21be4c,_0x195baa,_0x1b4596=[]){return!(!_0x21be4c['_isDataLoaded']||!_0x195baa['_isDataLoaded'])&&_0x32cbbc(Bt(_0x21be4c['attributes'],_0x1b4596),Bt(_0x195baa['attributes'],_0x1b4596));}function Lt(_0x156a13,_0x1ea1f3){const _0x10cc7a=Ht(_0x156a13['attributes']),_0x306431=Ht(_0x1ea1f3);if(!_0x156a13['_isDataLoaded'])return!0x1;for(const _0x1b2563 of Object['keys'](_0x306431))if(!_0x32cbbc(_0x10cc7a[_0x1b2563],_0x306431[_0x1b2563]))return!0x1;return!0x0;}function Ht(_0x321fae){const _0x3feff7=Object['assign']({},_0x321fae);return delete _0x3feff7['skipNestingCheck'],delete _0x3feff7['tablePasteChainId'],_0x3feff7;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x119929(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5bf942,_0x23d719,_0x31f8f8,_0x561bde){super(),this['model']=_0x23d719,this['view']=_0x31f8f8,this['commentThreadController']=_0x561bde,this['_editor']=_0x5bf942,this['_acceptCommand']=_0x5bf942['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5bf942['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x21e989,_0xa15c89)=>_0x21e989||_0xa15c89),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x12bd0b=>_0x12bd0b&&this['_editor']['model']['canEditAt'](_0x23d719['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x11aa1b=>_0x11aa1b&&this['_editor']['model']['canEditAt'](_0x23d719['getRanges']())),this['_pendingAction']=null,_0x31f8f8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x31f8f8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x31f8f8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x31f8f8,'change:isDirty',()=>{_0x31f8f8['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 _0x5f2a8e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5f2a8e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x54ebf8{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x47149e,_0x3e290a,_0x89fc5f,_0x513212){super(_0x47149e),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3e290a['authoredAt']),this['bind']('authoredAt')['to'](_0x3e290a),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3e290a,this['_localUser']=_0x89fc5f,this['_config']=_0x513212,_0x513212['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:_0x55417b}=this['_config'];this['commentsListView']=new _0x55417b(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',_0x18afc9=>_0x18afc9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2d77a9,_0x2975c4)=>_0x2d77a9||!!_0x2975c4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x127ac5}=this['_config'],_0x458f1a=new _0x127ac5(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1c0cf1=_0x458f1a['commentInputView'];return _0x458f1a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1c0cf1,'value',(_0x367615,_0x145ce4,_0xbecb58)=>!!_0xbecb58||_0x367615&&!_0x145ce4),_0x1c0cf1['on']('submit',(_0x2f83cf,_0x78bc04)=>{this['fire']('addComment',_0x78bc04),_0x1c0cf1['editor']['setData']('');}),_0x1c0cf1['on']('cancel',()=>this['focus']()),_0x1c0cf1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x458f1a;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x514ee3,_0xb3001,_0x5315f3,_0x2c6db8){super(_0x514ee3,_0xb3001,_0x5315f3,_0x2c6db8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1cfe2d=>_0x1cfe2d&&_0x1cfe2d[0x0]?_0x1cfe2d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x452b1d,_0x14d51a)=>{let _0x22b37b='';for(const _0x424897 of _0x452b1d)_0x22b37b+='<p>'+ds(_0x424897['content'],_0x424897['color'])+'</p>';return _0x14d51a?_0x22b37b:_0x8e6f63(_0x22b37b,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x514ee3,'Accept\x20suggestion'),_0x1ec50d['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x514ee3,'Discard\x20suggestion'),_0x1ec50d['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x81aeee(_0x514ee3,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x47c5b8=this['bindTemplate'],_0x16b131=[{'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':_0x47c5b8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x47c5b8['to']('authoredAt',_0x533659=>this['_config']['formatDateTime'](_0x533659))}]}]},{'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']&&_0x16b131['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x252747={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x47c5b8['if']('isActive','ck-suggestion-wrapper--active'),_0x47c5b8['to']('type',_0x292065=>'ck-suggestion-'+_0x292065),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':_0x16b131}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x252747['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)),_0x252747;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x3560b8,_0x21b858,_0x719d8d)=>{this['_descriptionElement']['innerHTML']=_0x719d8d;});}['_createButton'](_0x27e0f3,_0x14abab,_0x98fbc2,_0x38ff00,_0x38e319){const _0x21e7cb=new _0x2dfb71(this['locale']);return _0x21e7cb['set']({'label':_0x27e0f3,'icon':_0x14abab,'tooltip':!0x0,'tooltipPosition':_0x38e319}),_0x21e7cb['extendTemplate']({'attributes':{'class':_0x98fbc2}}),_0x21e7cb['on']('execute',()=>{this['fire'](_0x38ff00,this['_model']['id']);}),_0x21e7cb;}['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(_0x416b9b,_0x3cb952){let _0x7c5482='';return _0x7c5482+=_0x416b9b['split']('*')['map']((_0x1ae905,_0x1a8d26)=>_0x1a8d26%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x1ae905)+'</span>':us(_0x1ae905))['join'](''),_0x3cb952&&(_0x7c5482+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3cb952['value']+'\x22\x20title=\x22'+_0x3cb952['title']+'\x22></span>'),_0x7c5482;}function us(_0x506cfd){const _0x3716e8=document['createElement']('span');return _0x3716e8['innerText']=_0x506cfd,_0x3716e8['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 _0x5e9c6f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2ef2b0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4835f8){super(_0x4835f8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x43d5b9=this['editor']['config'];_0x43d5b9['define']('trackChanges.SuggestionThreadView',ne),_0x43d5b9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x43d5b9['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5e700b,_0x1d5f3a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2732f6,_0x2a69d9]of this['_handleControllerBuffer']){const _0x4be56d=this['_suggestionToController']['has'](_0x2732f6);_0x4be56d||_0x2a69d9?_0x4be56d&&_0x2a69d9&&this['_destroyController'](_0x2732f6):this['_initializeController'](_0x2732f6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5e700b,_0x1d5f3a);}['init'](){const _0x2d9d47=this['editor'],_0x1d3a14=_0x2d9d47['plugins']['get']('TrackChangesEditing'),_0x164174=_0x2d9d47['plugins']['get']('Annotations'),_0x3a5bbd=_0x2d9d47['plugins']['get']('EditorAnnotations'),_0x569c20=_0x2d9d47['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3a5bbd['addSourceCollector'](()=>{const _0xe473af=[];for(const [_0xfdd2fd,_0x2f7a87]of Array['from'](this['_suggestionToController'])){const _0x32cb3a=_0xfdd2fd['getAllAdjacentSuggestions'](),_0x3f0c72=[];for(const _0x1a944e of _0x32cb3a){if(!_0x1a944e['isInContent'])continue;if(_0x1a944e['isMultiRange']){_0x3f0c72['push'](..._0x1a944e['getRanges']());continue;}const _0xf88fda=_0x1a944e['getFirstRange']();if(_0x3f0c72['length']>0x0){const _0x1b1d88=_0x3f0c72[0x0]['getJoined'](_0xf88fda);if(_0x1b1d88){_0x3f0c72[0x0]=_0x1b1d88;continue;}}_0x3f0c72['push'](_0xf88fda);}_0xe473af['push']([_0x2f7a87['view'],_0x3f0c72]);}return _0xe473af;}),this['listenTo'](_0x1d3a14,'suggestionLoaded',(_0x4def22,_0x36cfea)=>{this['listenTo'](_0x36cfea,'change:previous',(_0x3e6a54,_0x9fb1d3,_0x4d48bc,_0x1a254f)=>{_0x36cfea['isInContent']&&(null==_0x4d48bc?(this['_updateController'](_0x1a254f['head']),this['_handleSuggestionControllerDelayed'](_0x36cfea,!0x1)):(this['_updateController'](_0x4d48bc['head']),null==_0x1a254f&&this['_handleSuggestionControllerDelayed'](_0x36cfea,!0x0)));}),null!==_0x36cfea['previous']?this['_updateController'](_0x36cfea['head']):this['_handleSuggestionControllerDelayed'](_0x36cfea,!0x1);}),this['listenTo'](_0x1d3a14,'suggestionUnloaded',(_0x5af298,_0x57bb4b,_0x19a4e9)=>{this['stopListening'](_0x57bb4b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x57bb4b),this['_suggestionToController']['has'](_0x57bb4b)&&this['_destroyController'](_0x57bb4b),_0x19a4e9&&this['_updateController'](_0x19a4e9['head']);}),this['listenTo'](_0x1d3a14,'suggestionChanged',(_0x51eb35,_0x94a292)=>{this['_updateController'](_0x94a292);}),this['listenTo'](_0x164174,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x569c20,'addComment',(_0x2287b2,{threadId:_0x3b3801,isFromAdapter:_0x2e6f63})=>{if(_0x2e6f63||!_0x1d3a14['hasSuggestion'](_0x3b3801))return;const _0x3c1c68=_0x1d3a14['getSuggestion'](_0x3b3801);this['_suggestionToController']['get'](_0x3c1c68)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x295070=this['editor']['plugins']['get']('Annotations'),_0x2e76dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30da6a=Array['from'](_0x295070['activeAnnotations'],_0x86eabd=>_0x86eabd['innerView'])['filter'](_0x106310=>this['_viewToController']['has'](_0x106310)),_0x33fd08=[];for(const _0x33f66e of _0x30da6a){const _0x59a1f5=this['_viewToController']['get'](_0x33f66e)['model']['getAllAdjacentSuggestions']();_0x33fd08['push'](..._0x59a1f5['reduce']((_0x584dc7,_0x16d389)=>[..._0x584dc7,..._0x16d389['getMarkerNames']()],[]));}_0x2e76dc['activeMarkers']=_0x33fd08;}['_addUIComponentsToFactory'](){const _0x1063c6=this['editor'],_0xcd4641=_0x1063c6['locale'],_0x3c7443=o(_0xcd4641,'Track\x20changes'),_0xd47eef=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x3c7443,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xcd4641,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xcd4641,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xcd4641,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xcd4641,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2afafb of _0xd47eef)if(ae(_0x2afafb)){const _0x120c36=_0x1063c6['commands']['get'](_0x2afafb['model']['commandName']);_0x2afafb['model']['bind']('isOn','isEnabled')['to'](_0x120c36,'value','isEnabled');}_0x1063c6['ui']['componentFactory']['add']('trackChanges',_0x52eea2=>this['_createToolbarButton'](_0x52eea2,_0xd47eef,_0x3c7443)),_0x1063c6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x287ec4=>this['_createMenuBarMenu'](_0x287ec4,_0xd47eef,_0x3c7443));}['_createToolbarButton'](_0x18d1c0,_0x30e27d,_0x4ff74e){const _0x8e785b=zt(_0x18d1c0,Zt),_0xd56690=this['editor']['commands']['get']('trackChanges');_0x8e785b['buttonView']['set']({'tooltip':_0x4ff74e,'label':_0x4ff74e,'icon':ie}),_0x8e785b['buttonView']['bind']('isOn')['to'](_0xd56690,'value'),_0x8e785b['buttonView']['on']('execute',()=>{_0xd56690['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x8e785b,_0x30e27d,{'role':'menu'});const _0x4658ff=[];for(const _0x58c4c0 of _0x30e27d)ae(_0x58c4c0)&&_0x4658ff['push'](this['editor']['commands']['get'](_0x58c4c0['model']['commandName']));const _0x2735dc=_0x8e785b['buttonView'];return _0x2735dc['actionView']['unbind']('isEnabled'),_0x2735dc['arrowView']['unbind']('isEnabled'),_0x2735dc['actionView']['bind']('isEnabled')['to'](_0xd56690,'isEnabled'),_0x2735dc['arrowView']['bind']('isEnabled')['toMany'](_0x4658ff,'isEnabled',(..._0x592095)=>_0x592095['some'](_0x954b8e=>_0x954b8e)),_0x8e785b['on']('execute',_0x2a94f9=>{this['editor']['execute'](_0x2a94f9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x8e785b;}['_createMenuBarMenu'](_0x11310d,_0x5a08c9,_0x3bc3d1){const _0x4109e1=new Kt(_0x11310d),_0x22215f=this['editor']['commands']['get']('trackChanges');_0x4109e1['buttonView']['set']({'label':_0x3bc3d1,'icon':ie});const _0x478c02=new Qt(_0x11310d);for(const _0xc1943e of _0x5a08c9){if('separator'==_0xc1943e['type']){_0x478c02['items']['add'](new Jt(_0x11310d));continue;}const _0x48a628=new Xt(_0x11310d,_0x4109e1),_0x1a4366=new Yt(_0x11310d),_0x4ecd24=_0xc1943e['model'];_0x1a4366['bind'](...Object['keys'](_0x4ecd24))['to'](_0x4ecd24),_0x1a4366['delegate']('execute')['to'](_0x4109e1),_0x1a4366['on']('execute',()=>{this['editor']['execute'](_0x4ecd24['commandName']),this['editor']['editing']['view']['focus']();}),_0x48a628['children']['add'](_0x1a4366),_0x478c02['items']['add'](_0x48a628);}return _0x4109e1['bind']('isEnabled')['to'](_0x22215f,'isEnabled'),_0x4109e1['panelView']['children']['add'](_0x478c02),_0x4109e1;}['_initializeController'](_0x2cba88){const _0xfa81ef=this['editor'],_0x2c49e0=_0xfa81ef['config'],_0xa0f884=_0xfa81ef['plugins']['get']('Annotations'),_0x35f3e3=_0xfa81ef['plugins']['get']('CommentsRepository'),_0x25d42f=_0xfa81ef['plugins']['get']('EditorAnnotations'),_0x4790bf=_0xfa81ef['plugins']['get'](_0x2ef2b0)['me'],_0x5906c4=_0x2c49e0['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x790eef,CommentThreadInputView:_0x45b209}=_0xfa81ef['plugins']['get']('CommentsUI');let _0x2ed707,_0xf03a54;this['_annotationViews']['has'](_0x2cba88['id'])?(_0xf03a54=this['_annotationViews']['get'](_0x2cba88['id']),_0x2ed707=_0xf03a54['mainView']):(_0x2ed707=new _0x5906c4(_0xfa81ef['locale'],_0x2cba88,_0x4790bf,{'disableComments':this['_disableComments'],'editorConfig':_0x2c49e0['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2c49e0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2c49e0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2c49e0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4c5d1f(_0x2c49e0['get']('locale')),'CommentView':_0x2c49e0['get']('comments')['CommentView'],'CommentsListView':_0x790eef,'CommentThreadInputView':_0x45b209}),_0x2ed707['acceptButton']['on']('execute',()=>{_0xfa81ef['editing']['view']['focus']();}),_0x2ed707['discardButton']['on']('execute',()=>{_0xfa81ef['editing']['view']['focus']();}),_0xf03a54=_0xa0f884['createAnnotationView'](this['editor']['locale'],_0x2ed707),_0xf03a54['bind']('isDirty')['to'](_0x2ed707,'isDirty'),_0xf03a54['bind']('length')['to'](_0x2ed707),_0xf03a54['bind']('type')['to'](_0x2ed707,'type',_0x519241=>'suggestion-'+_0x519241),this['_annotationViews']['set'](_0x2cba88['id'],_0xf03a54));const _0x3dd65f=_0x35f3e3['createCommentThreadController'](_0x2cba88['commentThread'],_0x2ed707),_0x3782e6=new oe(_0xfa81ef,_0x2cba88,_0x2ed707,_0x3dd65f),_0xbe6314=_0x2cba88['getAllAdjacentSuggestions']()['filter'](_0x36095e=>_0x36095e['isInContent']);_0x2ed707['descriptionParts']=_0xfa81ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xbe6314),this['_suggestionToController']['set'](_0x2cba88,_0x3782e6),this['_viewToController']['set'](_0x2ed707,_0x3782e6);const _0x407a10=_0xa0f884['createAnnotation']({'view':_0xf03a54,'target':()=>{const _0x39bfda=[],_0x6c93ae=_0x2cba88['getAllAdjacentSuggestions']()['filter'](_0x247893=>_0x247893['isInContent']);for(const _0x2efb8a of _0x6c93ae)_0x39bfda['push'](..._0x2efb8a['getMarkers']());return _0x7bb6e1(_0xfa81ef['editing'],_0x39bfda);},'type':()=>'suggestion-'+_0x3782e6['view']['type']});_0x35f3e3['_bindAnnotationToEditors'](_0x2ed707,_0x407a10),_0xa0f884['add'](_0x407a10),_0x25d42f['registerAnnotation'](_0x407a10);}['_destroyController'](_0x1924ad){const _0x368d6f=this['editor']['plugins']['get']('CommentsRepository'),_0x3698a8=this['editor']['plugins']['get']('Annotations'),_0xaa0f20=this['_suggestionToController']['get'](_0x1924ad),_0x35a99f=_0xaa0f20['view'],_0x5fe3bf=_0x3698a8['getByInnerView'](_0x35a99f);_0x368d6f['_unbindEditors'](_0x35a99f),_0x5fe3bf&&_0x3698a8['remove'](_0x5fe3bf),this['_suggestionToController']['delete'](_0x1924ad),this['_viewToController']['delete'](_0x35a99f),_0xaa0f20['destroy']();}['_updateController'](_0x1d5b53){if(!_0x1d5b53['isInContent']||!this['_suggestionToController']['has'](_0x1d5b53))return;const _0x1b8eb2=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe7e2db=this['_suggestionToController']['get'](_0x1d5b53),_0x23e41c=_0x1d5b53['getAllAdjacentSuggestions']();_0xe7e2db['view']['descriptionParts']=_0x1b8eb2['descriptionFactory']['getDescriptions'](_0x23e41c);}['destroy'](){for(const _0x25f112 of this['_suggestionToController']['keys']())this['_destroyController'](_0x25f112);for(const _0x2be541 of this['_annotationViews']['values']())_0x2be541['mainView']['destroy']();super['destroy']();}}function ae(_0x144ac8){return'model'in _0x144ac8;}class k extends _0x5e9c6f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2ce690){this['editor']['plugins']['get'](p)['adapter']=_0x2ce690;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x46488e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x46488e);}['getSuggestions']({skipNotAttached:_0x7e1123=!0x1,toJSON:_0x4d54bd=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x7e1123,'toJSON':_0x4d54bd});}['getSuggestion'](_0x546e15){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x546e15);}}const T=['Pagination'];class P extends _0x5e9c6f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x26feec=this['editor'];if(_0x26feec['config']['define']('trackChangesData.editorCreator',_0x5e6647=>{const _0x5a5c46=_0x26feec['model']['document']['getRootNames']()['reduce']((_0x1cc3c7,_0x5ee4a1)=>(_0x1cc3c7[_0x5ee4a1]='',_0x1cc3c7),{});return _0x26feec['constructor']['create'](_0x5a5c46,_0x5e6647);}),'function'!=typeof _0x26feec['config']['get']('trackChangesData')['editorCreator'])throw new _0x51b9ff('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x39367c){return N(this['editor'],!0x0,_0x39367c);}['getDataWithDiscardedSuggestions'](_0x4b7794){return N(this['editor'],!0x1,_0x4b7794);}}class D extends _0x5e9c6f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x18d00b){super(_0x18d00b),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(_0x402acd){return void 0x0!==_0x402acd['getRootsAttributes'];}async function N(_0x587976,_0x146366,_0x937fdc){const _0x1eb173=_0xa12d5f(_0x587976,T);_0x1eb173['plugins']['push'](p,D),_0x1eb173['rootsAttributes']=v(_0x587976)?_0x587976['getRootsAttributes']():void 0x0;const _0x2a6118=document['createDocumentFragment'](),_0x4c514d=_0x587976['config']['get']('trackChangesData')['editorCreator'],_0x3d2c5d=await _0x4c514d(_0x1eb173,()=>function(_0x117e1d){const _0x12b73f=document['createElement']('div');return _0x117e1d['appendChild'](_0x12b73f),_0x12b73f;}(_0x2a6118));!function(_0x5975ae,_0x19bd55){const _0x552e39=_0x5975ae['model']['document']['getRootNames']()['reduce']((_0x3c8c62,_0x930b60)=>(_0x3c8c62[_0x930b60]=_0x5975ae['data']['get']({'rootName':_0x930b60}),_0x3c8c62),{}),_0x1624c6=_0x5975ae['plugins']['get']('Users')['users']['map'](_0x248142=>({'id':_0x248142['id'],'name':_0x248142['name']})),_0x129f2c=_0x5975ae['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2d66db=_0x5975ae['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3c1439=_0x19bd55['plugins']['get']('Users'),_0x3329c7=_0x19bd55['plugins']['get']('TrackChangesEditing'),_0xca3c1c=_0x19bd55['plugins']['get']('CommentsRepository');for(const _0x28f0b6 of _0x1624c6)_0x3c1439['getUser'](_0x28f0b6['id'])||_0x3c1439['addUser'](_0x28f0b6);_0x3c1439['me']||_0x3c1439['useAnonymousUser']();for(const _0x522a20 of _0x129f2c)_0x3329c7['addSuggestionData'](_0x522a20);for(const _0xf7d548 of _0x2d66db)_0xca3c1c['addCommentThread'](_0xf7d548);_0x19bd55['data']['set'](_0x552e39);}(_0x587976,_0x3d2c5d),_0x3d2c5d['execute'](_0x146366?'acceptAllSuggestions':'discardAllSuggestions');const _0x5e0b22=v(_0x3d2c5d)?_0x3d2c5d['getFullData'](_0x937fdc):_0x3d2c5d['data']['get'](_0x937fdc);return await _0x3d2c5d['destroy'](),_0x5e0b22;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0xeaacfa,PendingActions as _0x5b0c8c,icons as _0xb3e85c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4054be,ObservableMixin as _0x4ff9be,uid as _0x107e61,insertToPriorityArray as _0x5aa210,priorities as _0x2a5a1e,logWarning as _0x8dc560,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5a5258,View as _0xb7d5df,ButtonView as _0x1863cb,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 _0x43f0c5,hashObject as _0x25faca,surroundingMarkersDetector as _0x2efde5,trimHtml as _0x582db4,UserView as _0x532e9f,getDateTimeFormatter as _0x493fae,getAllMarkersDomElementsSorted as _0x2e8ef6,sanitizeEditorConfig as _0x5663ba}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1941c9,LiveRange as _0x54c30a,LivePosition as _0x375039}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x50a99b,toWidget as _0x390659}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x43f6f6,set as _0xaf29af,isEqual as _0x2ef343,unset as _0xaa167b,omit as Bt}from'lodash-es';import{Delete as _0x575b39,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4a4105,ShiftEnter as _0x4aa5ce}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x1cfcc2,_0x7b8a1){super(_0x1cfcc2),this['_enabledCommands']=_0x7b8a1,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 _0x5c9e8d of this['editor']['commands']['commands']())_0x5c9e8d['affectsData']&&!this['_enabledCommands']['has'](_0x5c9e8d)&&_0x5c9e8d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x208089 of this['editor']['commands']['commands']())_0x208089['affectsData']&&!this['_enabledCommands']['has'](_0x208089)&&_0x208089['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x571d38,_0xc233c8){super(_0x571d38),this['_suggestions']=_0xc233c8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x510102){const _0x227a2b=this['_suggestions']['get'](_0x510102);if(!_0x227a2b)throw new _0x4054be('track-changes-accept-suggestion-not-found',this);const _0x2157b0=_0x227a2b['getRanges']();this['editor']['model']['canEditAt'](_0x2157b0)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x227a2b);}}class B extends ts{['_suggestions'];constructor(_0x5ded73,_0x3613bd){super(_0x5ded73),this['_suggestions']=_0x3613bd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x31206e){const _0x254460=this['_suggestions']['get'](_0x31206e);if(!_0x254460)throw new _0x4054be('track-changes-discard-suggestion-not-found',this);const _0x21ab66=_0x254460['getRanges']();this['editor']['model']['canEditAt'](_0x21ab66)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x254460);}}function ss(_0x4537e7){return _0x4537e7['sort']((_0x2871a9,_0x4bc18d)=>'deletion'==_0x2871a9['type']&&'deletion'!=_0x4bc18d['type']?-0x1:'deletion'!=_0x2871a9['type']&&'deletion'==_0x4bc18d['type']?0x1:0x0);}function to(_0x503ce2,_0x6e3ad3){let _0x3be9ec,_0x46fede=0x0;const _0x55070f=[],_0x5082de=_0x6e3ad3['schema'];for(;_0x46fede<_0x503ce2['length'];){const _0x52ee43=_0x503ce2[_0x46fede],_0x97554c=_0x503ce2[_0x46fede+0x1];_0x3be9ec||(_0x3be9ec=_0x6e3ad3['createPositionBefore'](_0x52ee43)),co(_0x6e3ad3,_0x52ee43,_0x97554c)||(_0x55070f['push'](_0x6e3ad3['createRange'](_0x3be9ec,_0x5082de['isObject'](_0x52ee43)?_0x6e3ad3['createPositionAfter'](_0x52ee43):_0x6e3ad3['createPositionAt'](_0x52ee43,'end'))),_0x3be9ec=null),_0x46fede++;}return _0x55070f;}function co(_0xff3bcf,_0x4e002e,_0x4c311a){if(!_0x4c311a)return!0x1;const _0xb3f87a=_0xff3bcf['createPositionAfter'](_0x4e002e),_0x48bc38=_0xff3bcf['createPositionBefore'](_0x4c311a);return _0xb3f87a['isTouching'](_0x48bc38);}function rs(_0x5c903f,_0x418de3,_0x1366f6){for(;_0x1366f6['length'];){const _0x30121f=_0x1366f6['splice'](0x0,0x64);_0x5c903f['change'](()=>{for(const _0x2c54e9 of _0x30121f)_0x2c54e9['isInContent']&&_0x418de3['execute'](_0x2c54e9['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x5ca14b,_0x4448b3,_0x47dae2){super(_0x5ca14b),this['_command']=_0x4448b3,this['_suggestions']=_0x47dae2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x46e4ff=Array['from'](this['_suggestions']['values']())['some'](_0xbf0674=>_0xbf0674['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x46e4ff;}['execute'](){const _0x3f9610=ss(Array['from'](this['_suggestions']['values']()));for(const _0x19d23d of _0x3f9610){const _0x110840=_0x19d23d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x110840))return;}rs(this['editor']['model'],this['_command'],_0x3f9610);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x37fd62,_0x41d258,_0x172210){super(_0x37fd62),this['_command']=_0x41d258,this['_suggestions']=_0x172210,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x51f262=this['editor']['model']['document']['selection'],_0xfd3db2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xba63c1,_0x137366){const _0x46ec9d=Array['from'](_0xba63c1['getRanges']()),_0x16b772=new Set();for(const _0x1ec40e of _0x137366)if(_0x1ec40e['isInContent']){for(const _0x22223a of _0x46ec9d)for(const _0x566450 of _0x1ec40e['getRanges']())(_0x22223a['isIntersecting'](_0x566450)||_0xba63c1['isCollapsed']&&!_0x1ec40e['isMultiRange']&&_0x1ec40e['next']&&_0x566450['end']['isTouching'](_0x22223a['start']))&&_0x16b772['add'](_0x1ec40e);}return _0x16b772;}(_0x51f262,_0xfd3db2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x40cedf=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4b0846 of _0x40cedf){const _0x74f3eb=_0x4b0846['getRanges']();if(!this['editor']['model']['canEditAt'](_0x74f3eb))return;}rs(this['editor']['model'],this['_command'],_0x40cedf);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4ff9be(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x307c60,_0x350b7a){super(),this['id']=_0x350b7a['id'],this['type']=_0x350b7a['type'],this['subType']=_0x350b7a['subType']||null,this['author']=_0x350b7a['author'],this['creator']=_0x350b7a['creator']||_0x350b7a['author'],this['isExternal']=Boolean(_0x350b7a['attributes']&&_0x350b7a['attributes']['@external']),this['data']=null,this['_model']=_0x307c60,this['_onAccept']=_0x350b7a['onAccept'],this['_onDiscard']=_0x350b7a['onDiscard'],this['_onAttributesChange']=_0x350b7a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x350b7a['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 _0x2e8bdb=this;for(;_0x2e8bdb['previous'];)_0x2e8bdb=_0x2e8bdb['previous'];return _0x2e8bdb;}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'](_0x5dcc88){this['_markerNames']['add'](_0x5dcc88);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xc4eb99=>this['_model']['markers']['get'](_0xc4eb99))['filter'](_0x172c93=>_0x172c93);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x64ce28=>{for(const _0x1e39cd of this['getMarkers']())_0x64ce28['removeMarker'](_0x1e39cd);}),this['_markerNames']['clear']();}['removeMarker'](_0x2caad3){this['_model']['change'](_0x3f5bfd=>{_0x3f5bfd['removeMarker'](_0x2caad3);}),this['_markerNames']['delete'](_0x2caad3);}['addRange'](_0x2c43ec){const _0x144805='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x144805),this['_model']['change'](_0x3c6b39=>{_0x3c6b39['addMarker'](_0x144805,{'range':_0x2c43ec,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x6a5ef5){for(const _0x55f7e8 of this['getRanges']())if(_0x55f7e8['isIntersecting'](_0x6a5ef5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x48b65b=>_0x48b65b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1affa4,_0x44c5e3)=>[..._0x1affa4,..._0x44c5e3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1163ac=this['getRanges']();if(0x1!=_0x1163ac['length'])return null;const _0x104637=_0x1163ac[0x0],_0x35ef1e=_0x104637['start']['nodeAfter'],_0x3cefaa=_0x104637['end']['nodeBefore'];return _0x35ef1e instanceof _0x1941c9?_0x35ef1e!=_0x3cefaa?null:_0x35ef1e: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 _0x9d8691=[];let _0x3223ca=this['head'];for(;_0x3223ca;)_0x9d8691['push'](_0x3223ca),_0x3223ca=_0x3223ca['next'];return _0x9d8691;}['setAttribute'](_0x1b101a,_0x203b30){const _0x48baf8=_0x43f6f6(this['attributes']);_0xaf29af(_0x48baf8,_0x1b101a,_0x203b30),_0x2ef343(_0x48baf8,this['attributes'])||(this['attributes']=_0x48baf8,this['_onAttributesChange'](_0x48baf8));}['removeAttribute'](_0x1cc488){const _0x369f25=_0x43f6f6(this['attributes']);_0xaa167b(_0x369f25,_0x1cc488),_0x2ef343(_0x369f25,this['attributes'])||(this['attributes']=_0x369f25,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 _0x107e61()['substr'](0x1,0x5);}}function o(_0x484a0e,_0x4f0aa9,_0x1b7888){const t=_0x484a0e['t'];switch(_0x4f0aa9){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',_0x1b7888);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1b7888);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1b7888);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1b7888);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1b7888);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',_0x1b7888);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1b7888);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',_0x1b7888);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1b7888);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1b7888);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1b7888);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1b7888);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1b7888);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1b7888);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1b7888);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1b7888);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1b7888);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1b7888);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1b7888);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1b7888);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1b7888);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1b7888);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1b7888);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'},_0x1b7888);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1b7888);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1b7888);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1b7888);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1b7888);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1b7888);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'},_0x1b7888);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1b7888);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1b7888);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1b7888);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1b7888);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'},_0x1b7888);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1b7888);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'},_0x1b7888);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'},_0x1b7888);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1b7888);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'},_0x1b7888);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1b7888);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'},_0x1b7888);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1b7888);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1b7888);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'},_0x1b7888);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'},_0x1b7888);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 _0x4f0aa9;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1bb7b4,_0x13bc5c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1bb7b4,this['_locale']=_0x13bc5c;}['getDescriptions'](_0x506c8c){const _0x54f374=[],_0x497801=new Set(),_0x208895=new Set();for(let _0xd2fcfb=0x0;_0xd2fcfb<_0x506c8c['length'];_0xd2fcfb++){const _0x3e9f73=_0x506c8c[_0xd2fcfb];if(!_0x3e9f73['isInContent'])continue;const _0x3202fb=this['_handleCustomCallbackDescription'](_0x3e9f73);if(_0x3202fb){if(null!=_0x3e9f73['subType']){if(_0x497801['has'](_0x3e9f73['subType']))continue;_0x497801['add'](_0x3e9f73['subType']);}_0x54f374['push'](_0x3202fb);}else{if('attribute'!=_0x3e9f73['type'])'insertion'!=_0x3e9f73['type']&&'deletion'!=_0x3e9f73['type']||this['_handleInsertRemoveSuggestionDescription'](_0x54f374,_0x3e9f73,_0x506c8c[_0xd2fcfb+0x1]);else{const _0x852ddd=_0x3e9f73['data']['key'];if(_0x208895['has'](_0x852ddd))continue;_0x208895['add'](_0x3e9f73['data']['key']),_0x852ddd==m?this['_handleRenameSuggestionDescription'](_0x54f374,_0x3e9f73):this['_handleAttributeSuggestionDescription'](_0x54f374,_0x3e9f73);}}}return this['_resolveDescriptionItems'](_0x54f374);}['registerDescriptionCallback'](_0x51bab5){this['_customCallbacks']['push'](_0x51bab5);}['registerElementLabel'](_0x19bd7a,_0x2b3389,_0x5837da=_0x2a5a1e['normal']){'function'==typeof _0x19bd7a?_0x5aa210(this['_itemLabelsCallbacks'],{'matchingCallback':_0x19bd7a,'label':_0x2b3389,'priority':_0x5837da}):this['_itemLabels']['set'](_0x19bd7a,_0x2b3389);}['registerAttributeLabel'](_0x42648d,_0x2726be){this['_attributeLabels']['set'](_0x42648d,_0x2726be);}['getItemLabel'](_0x507b37,_0x518b5d=0x1){let _0x37a8a5;for(const _0x2362dc of this['_itemLabelsCallbacks'])if(_0x2362dc['matchingCallback'](_0x507b37)){_0x37a8a5=_0x2362dc['label'];break;}return _0x37a8a5||(_0x37a8a5=this['_itemLabels']['get'](_0x507b37['name'])),_0x37a8a5?_0x37a8a5(_0x518b5d):0x1!==_0x518b5d?_0x518b5d+'\x20'+_0x507b37['name']+'s':''+_0x507b37['name'];}['_addDescriptionItems'](_0x1a0062,_0x150a1c){const _0x353de7=_0x150a1c['getFirstRange']()['getWalker'](),_0x4f8dd0='insertion'==_0x150a1c['type']?'add':'remove';for(const _0x5261af of _0x353de7){const _0x15699a=_0x5261af['item'],_0x5444b6=_0x1a0062[_0x1a0062['length']-0x1];if(_0x15699a['is']('$textProxy'))_0x5444b6&&_0x5444b6['type']['indexOf']('Container')>-0x1&&_0x1a0062['pop'](),_0x5444b6&&'text'==_0x5444b6['type']?_0x5444b6[_0x4f8dd0]+=_0x15699a['data']:_0x1a0062['push']({'type':'text','add':'add'==_0x4f8dd0?_0x15699a['data']:'','remove':'remove'==_0x4f8dd0?_0x15699a['data']:''});else{if(this['_schema']['isObject'](_0x15699a)){const _0x316bbc=_0x15699a;if(_0x5444b6&&_0x5444b6['type']['indexOf']('Container')>-0x1&&_0x1a0062['pop'](),'elementEnd'==_0x5261af['type'])continue;_0x5444b6&&_0x5444b6['type']==_0x4f8dd0+'Object'&&_0x5444b6['element']['name']==_0x316bbc['name']?_0x5444b6['quantity']++:_0x1a0062['push']({'type':_0x4f8dd0+'Object','element':_0x316bbc,'quantity':0x1}),_0x353de7['skip'](_0x505dda=>!('elementEnd'==_0x505dda['type']&&_0x505dda['item']==_0x15699a));}else{if(this['_schema']['checkChild'](_0x15699a,'$text')||_0x15699a['is']('element','softBreak')){const _0x563b0e=_0x15699a;if('add'==_0x4f8dd0&&'elementStart'==_0x5261af['type']||'remove'==_0x4f8dd0&&'elementEnd'==_0x5261af['type'])continue;if(_0x5444b6&&-0x1==_0x5444b6['type']['indexOf']('Container')){'text'==_0x5444b6['type']&&(_0x5444b6[_0x4f8dd0]+='\x0a');continue;}let _0x4d3b49;if(_0x4d3b49='add'==_0x4f8dd0?_0x563b0e['nextSibling']&&!this['_schema']['isObject'](_0x563b0e['nextSibling'])?_0x563b0e['nextSibling']:null:_0x563b0e['previousSibling']&&!this['_schema']['isObject'](_0x563b0e['previousSibling'])?_0x563b0e['previousSibling']:null,_0x563b0e['isEmpty']||_0x4d3b49&&_0x4d3b49['isEmpty']){const _0x249364=_0x4d3b49&&_0x4d3b49['isEmpty']?_0x4d3b49:_0x563b0e;_0x5444b6&&_0x5444b6['type']==_0x4f8dd0+'EmptyContainer'&&_0x5444b6['element']['name']==_0x249364['name']?_0x5444b6['quantity']++:_0x1a0062['push']({'type':_0x4f8dd0+'EmptyContainer','element':_0x249364,'quantity':0x1});}else _0x1a0062['push']({'type':_0x4f8dd0+'Container','element':_0x563b0e});}}}}}['_resolveDescriptionItems'](_0x103f87){const _0x123cc9=this['_locale'],_0x512bf1=[],_0x4aaa8f=[],_0x47b141=[];for(const _0x44ee4f of _0x103f87)switch(_0x44ee4f['type']){case'text':if(_0x44ee4f['add']=_0x44ee4f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x44ee4f['remove']=_0x44ee4f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x44ee4f['add']&&''!=_0x44ee4f['remove']){_0x512bf1['push']({'type':'replace','content':o(_0x123cc9,'REPLACE_TEXT',['\x22'+_0x44ee4f['remove']+'\x22','\x22'+_0x44ee4f['add']+'\x22'])});continue;}if(null!=_0x44ee4f['add']['match'](/^ +$/)){_0x512bf1['push']({'type':'insertion','content':o(_0x123cc9,'*Insert:*\x20%0',o(_0x123cc9,'ELEMENT_SPACE',_0x44ee4f['add']['length']))});continue;}if(null!=_0x44ee4f['remove']['match'](/^ +$/)){_0x512bf1['push']({'type':'deletion','content':o(_0x123cc9,'*Remove:*\x20%0',o(_0x123cc9,'ELEMENT_SPACE',_0x44ee4f['remove']['length']))});continue;}if(''!=_0x44ee4f['add']){_0x512bf1['push']({'type':'insertion','content':o(_0x123cc9,'*Insert:*\x20%0','\x22'+_0x44ee4f['add']+'\x22')});continue;}_0x512bf1['push']({'type':'deletion','content':o(_0x123cc9,'*Remove:*\x20%0','\x22'+_0x44ee4f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x512bf1['push']({'type':'insertion','content':o(_0x123cc9,'*Insert:*\x20%0',this['getItemLabel'](_0x44ee4f['element'],_0x44ee4f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x512bf1['push']({'type':'deletion','content':o(_0x123cc9,'*Remove:*\x20%0',this['getItemLabel'](_0x44ee4f['element'],_0x44ee4f['quantity']))});continue;case'addContainer':_0x512bf1['push']({'type':'insertion','content':o(_0x123cc9,'*Split:*\x20%0',this['getItemLabel'](_0x44ee4f['element'],_0x44ee4f['quantity']))});continue;case'removeContainer':_0x512bf1['push']({'type':'deletion','content':o(_0x123cc9,'*Merge:*\x20%0',this['getItemLabel'](_0x44ee4f['element'],_0x44ee4f['quantity']))});continue;case'addFormat':_0x4aaa8f['push'](_0x44ee4f['key']);continue;case'removeFormat':_0x47b141['push'](_0x44ee4f['key']);continue;default:_0x512bf1['push'](_0x44ee4f);}if(_0x4aaa8f['length']){const _0x40dfe8=_0x4aaa8f['map'](_0x304efb=>this['_attributeLabels']['has'](_0x304efb)?this['_attributeLabels']['get'](_0x304efb):_0x304efb)['join'](',\x20');_0x512bf1['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x40dfe8)});}if(_0x47b141['length']){const _0x5ab53d=_0x47b141['map'](_0x569e88=>this['_attributeLabels']['has'](_0x569e88)?this['_attributeLabels']['get'](_0x569e88):_0x569e88)['join'](',\x20');_0x512bf1['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5ab53d)});}return _0x512bf1;}['_handleCustomCallbackDescription'](_0x57d5a6){for(const _0x3c92f1 of this['_customCallbacks']){const _0x5db415=_0x3c92f1(_0x57d5a6);if(_0x5db415&&'type'in _0x5db415)return _0x5db415;}}['_handleAttributeSuggestionDescription'](_0x183d78,_0x257a5a){const _0x16a6d1=_0x257a5a['data'],_0x30deee=void 0x0===_0x16a6d1['newValue']?'removeFormat':'addFormat';_0x183d78['push']({'type':_0x30deee,'key':_0x16a6d1['key']});}['_handleRenameSuggestionDescription'](_0x566b28,_0x192bd3){_0x566b28['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x192bd3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x521283,_0x1eef4c,_0x3ecccb){if(this['_addDescriptionItems'](_0x521283,_0x1eef4c),_0x3ecccb&&_0x3ecccb['getFirstRange']()&&!_0x1eef4c['getFirstRange']()['end']['isEqual'](_0x3ecccb['getFirstRange']()['start'])){const _0x8b7039=_0x521283[_0x521283['length']-0x1],_0x56c9ba='insertion'==_0x1eef4c['type']?'add':'remove';_0x8b7039&&'text'==_0x8b7039['type']&&(_0x8b7039[_0x56c9ba]+='\x0a');}}}class E extends _0xeaacfa{['afterInit'](){const _0x1a880f=this['editor'],_0xfb957=_0x1a880f['plugins']['get']('TrackChangesEditing');_0x1a880f['commands']['get']('showAIAssistant')&&_0xfb957['enableCommand']('showAIAssistant');}}class V extends _0xeaacfa{['afterInit'](){const _0x4ae81d=this['editor'],_0x2e8a2d=_0x4ae81d['locale'];if(!_0x4ae81d['plugins']['has']('AlignmentEditing'))return;const _0x4f3983=_0x4ae81d['plugins']['get']('TrackChangesEditing');_0x4f3983['enableDefaultAttributesIntegration']('alignment'),_0x4f3983['registerBlockAttribute']('alignment'),_0x4f3983['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2e8a2d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f75e1=this['editor'],_0xeedb99=_0x4f75e1['locale'];_0x4f75e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x511bb8=>{if('formatBlock'!=_0x511bb8['type'])return;const {data:_0x515bc5}=_0x511bb8;if(_0x515bc5&&'alignment'==_0x515bc5['commandName']){const _0x4f66a7=_0x515bc5['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xeedb99,'*Format:*\x20%0',function(_0xf5ea8a){switch(_0xf5ea8a){case'left':return o(_0xeedb99,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xeedb99,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xeedb99,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xeedb99,'FORMAT_JUSTIFY_TEXT');}}(_0x4f66a7))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0xeaacfa{['afterInit'](){const _0xaaedcc=this['editor'],_0x27a811=_0xaaedcc['plugins']['get']('TrackChangesEditing'),_0xd25d37=_0xaaedcc['locale'];for(const _0xfda45 of ti){if(!_0xaaedcc['plugins']['has'](_0xfda45))continue;const _0x591b87=_0xfda45['slice'](0x0,-0x7)['toLowerCase'](),_0x409e2b='FORMAT_'+_0x591b87['toUpperCase']();_0x27a811['enableDefaultAttributesIntegration'](_0x591b87),_0x27a811['registerInlineAttribute'](_0x591b87),_0x27a811['descriptionFactory']['registerAttributeLabel'](_0x591b87,o(_0xd25d37,_0x409e2b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ca9fc=this['editor'],_0x43008a=_0x2ca9fc['locale'],_0x449ab9=_0x2ca9fc['plugins']['get']('TrackChangesEditing');function _0x26aedc(_0x1ef3cc,_0x258a7e){_0x449ab9['descriptionFactory']['registerDescriptionCallback'](_0x2f1453=>{if('formatInline'!=_0x2f1453['type'])return;const {data:_0x47a854}=_0x2f1453;return _0x47a854&&_0x47a854['commandName']===_0x1ef3cc?_0x47a854['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x43008a,'*Format:*\x20%0',_0x258a7e)}:{'type':'format','content':o(_0x43008a,'*Remove\x20format:*\x20%0',_0x258a7e)}:void 0x0;});}_0x26aedc('bold',o(_0x43008a,'FORMAT_BOLD')),_0x26aedc('italic',o(_0x43008a,'FORMAT_ITALIC')),_0x26aedc('underline',o(_0x43008a,'FORMAT_UNDERLINE')),_0x26aedc('code',o(_0x43008a,'FORMAT_CODE')),_0x26aedc('strikethrough',o(_0x43008a,'FORMAT_STRIKETHROUGH')),_0x26aedc('subscript',o(_0x43008a,'FORMAT_SUBSCRIPT')),_0x26aedc('superscript',o(_0x43008a,'FORMAT_SUPERSCRIPT'));}}class O extends _0xeaacfa{['afterInit'](){const _0x3f95da=this['editor'],_0x58b0b1=_0x3f95da['locale'];if(!_0x3f95da['plugins']['has']('BlockQuoteEditing'))return;const _0x103c87=_0x3f95da['plugins']['get']('TrackChangesEditing'),_0x20f950=this['editor']['commands']['get']('blockQuote');_0x103c87['enableCommand']('blockQuote',(_0x2a40e4,_0x3d34ea={})=>{const _0x529fb9=this['editor']['model']['document']['selection'],_0xaf67e5=_0x3d34ea&&void 0x0!==_0x3d34ea['forceValue']?_0x3d34ea['forceValue']:!_0x20f950['value'];let _0x3ccd36=[];if(_0xaf67e5){const _0x4fb00b=Array['from'](_0x529fb9['getSelectedBlocks']())['filter'](_0x3a1bdc=>oo(_0x3a1bdc)||function(_0x4cfb0f,_0x1fd9d8){const _0x9cd0f8=_0x1fd9d8['checkChild'](_0x4cfb0f['parent'],'blockQuote'),_0x47d672=_0x1fd9d8['checkChild'](['$root','blockQuote'],_0x4cfb0f);return _0x9cd0f8&&_0x47d672;}(_0x3a1bdc,this['editor']['model']['schema']));_0x3ccd36=to(_0x4fb00b,_0x3f95da['model']);}else{const _0xdc1acf=Array['from'](_0x529fb9['getSelectedBlocks']())['filter'](_0x14febc=>oo(_0x14febc));_0x3ccd36=to(_0xdc1acf,_0x3f95da['model']);}_0x3f95da['model']['change'](()=>{for(const _0x5d0c5b of _0x3ccd36)_0x103c87['markBlockFormat'](_0x5d0c5b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xaf67e5}]});});}),_0x103c87['descriptionFactory']['registerDescriptionCallback'](_0x440430=>{const {data:_0x2d69b4}=_0x440430;if(_0x2d69b4&&'blockQuote'==_0x2d69b4['commandName']){const _0x2899ef=o(_0x58b0b1,'ELEMENT_BLOCK_QUOTE');return _0x2d69b4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58b0b1,'*Set\x20format:*\x20%0',_0x2899ef)}:{'type':'format','content':o(_0x58b0b1,'*Remove\x20format:*\x20%0',_0x2899ef)};}});}}function oo(_0x1e2ee0){return'blockQuote'==_0x1e2ee0['parent']['name'];}class G extends _0xeaacfa{['afterInit'](){const _0x36b7b0=this['editor'];_0x36b7b0['plugins']['has']('CaseChange')&&(_0x36b7b0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x36b7b0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x36b7b0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0xeaacfa{['afterInit'](){const _0x4bc7fa=this['editor'];_0x4bc7fa['commands']['get']('ckbox')&&_0x4bc7fa['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xeaacfa{['afterInit'](){const _0x68d7a4=this['editor'];if(!_0x68d7a4['plugins']['has']('CodeBlock'))return;const _0x105aad=_0x68d7a4['plugins']['get']('TrackChangesEditing'),_0x23ddf8=_0x68d7a4['locale'],_0x328b74=_0x68d7a4['config']['get']('codeBlock')['languages'],_0x571505=_0x68d7a4['commands']['get']('codeBlock');_0x105aad['enableCommand']('indentCodeBlock'),_0x105aad['enableCommand']('outdentCodeBlock'),_0x105aad['enableCommand']('codeBlock',(_0x3c9916,_0x1385b3={})=>{const _0x1060a4=_0x68d7a4['model'],_0x1205b8=_0x68d7a4['model']['document']['selection'],_0x57d31d=_0x1385b3&&void 0x0!==_0x1385b3['forceValue']?_0x1385b3['forceValue']:!_0x571505['value'];let _0x490382;_0x1385b3['language']||(_0x1385b3['language']=_0x328b74[0x0]['language']),_0x490382=_0x57d31d?Array['from'](_0x1205b8['getSelectedBlocks']())['filter'](_0x4ba5fe=>eo(_0x4ba5fe)||function(_0x1f7155,_0x350173){if(_0x1f7155['is']('rootElement')||_0x350173['isLimit'](_0x1f7155))return!0x1;return _0x350173['checkChild'](_0x1f7155['parent'],'codeBlock');}(_0x4ba5fe,_0x1060a4['schema'])):Array['from'](_0x1205b8['getSelectedBlocks']())['filter'](_0x24acdd=>eo(_0x24acdd));const _0x1d1675=to(_0x490382,_0x1060a4);_0x1060a4['change'](()=>{for(const _0x28adf7 of _0x1d1675)_0x105aad['markBlockFormat'](_0x28adf7,{'commandName':'codeBlock','commandParams':[{..._0x1385b3,'forceValue':_0x57d31d}],'formatGroupId':'blockName'});});}),(_0x105aad['descriptionFactory']['registerElementLabel']('codeBlock',_0x5a94a1=>o(_0x23ddf8,'ELEMENT_CODE_BLOCK',_0x5a94a1)),_0x105aad['descriptionFactory']['registerDescriptionCallback'](_0x41bed4=>{if('formatBlock'!=_0x41bed4['type'])return;const _0x353b1d=_0x23ddf8['t'],{data:_0x1d6548}=_0x41bed4;if(!_0x1d6548||'codeBlock'!=_0x1d6548['commandName'])return;const _0x355258=_0x1d6548['commandParams'][0x0]['language'],_0x3c0100=_0x353b1d(_0x328b74['find'](_0x4fc7a5=>_0x4fc7a5['language']===_0x355258)['label'])['toLowerCase']();return _0x1d6548['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23ddf8,'*Set\x20format:*\x20%0',o(_0x23ddf8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3c0100+')')}:{'type':'format','content':o(_0x23ddf8,'*Remove\x20format:*\x20%0',o(_0x23ddf8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4b13a6){return'codeBlock'==_0x4b13a6['name'];}class H extends _0xeaacfa{['afterInit'](){const _0x50b13b=this['editor'];if(!_0x50b13b['plugins']['has']('CommentsEditing'))return;_0x50b13b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x11b5a8,_0x5e7b0d,_0xac149c){const _0x5c9093=[];for(const _0x326724 of _0x5e7b0d['getItems']())_0x326724['hasAttribute'](_0x11b5a8)&&_0x5c9093['push'](_0xac149c['createRangeOn'](_0x326724));return _0x5c9093;}function _e(_0x2189f3,_0x30399d,{showActiveMarker:_0x1ca9cf=!0x0}={}){const _0x3aba94=_0x2189f3['plugins']['get']('TrackChangesEditing');return(_0x57440e,_0x109d90,_0x247b9c)=>{if(!_0x247b9c['consumable']['test'](_0x109d90['markerRange'],_0x57440e['name']))return;const _0x416096=_0x109d90['markerRange']['getWalker'](),_0x5692c0=_0x109d90['markerRange']['start'],_0x1c2b80=_0x2189f3['model']['schema'];let _0x4fa9a4=null,_0x44e71b=null,_0x55c93d=!0x1,_0x36cde3=!0x1;for(const _0x130c68 of _0x416096){const _0x28f6d4=_0x130c68['item'];_0x55c93d=_0x55c93d||_0x1c2b80['isContent'](_0x28f6d4);const _0xfe75aa=_0x247b9c['mapper']['toViewElement'](_0x28f6d4);if(_0xfe75aa&&_0xfe75aa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x130c68['type']&&(_0x1c2b80['isBlock'](_0x28f6d4)&&!_0x1c2b80['isLimit'](_0x28f6d4)&&(_0x28f6d4['nextSibling']||_0x5692c0['isAtEnd']?_0x4fa9a4&&_0x4fa9a4['parent']==_0x28f6d4||(_0x4fa9a4=_0x28f6d4,_0x202fa5(_0x130c68['previousPosition']),_0x36cde3=!0x0):_0x44e71b=_0x44e71b||_0x130c68['previousPosition']));}function _0x202fa5(_0x31556e){const _0x2807ca=_0x247b9c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x30399d}),_0x30eb5a=_0x247b9c['mapper']['toViewPosition'](_0x31556e);_0x1ca9cf&&_0x3aba94['activeMarkers']['includes'](_0x109d90['markerName'])&&_0x247b9c['writer']['addClass']('ck-suggestion-marker--active',_0x2807ca),_0x247b9c['writer']['insert'](_0x30eb5a,_0x2807ca),_0x247b9c['mapper']['bindElementToMarker'](_0x2807ca,_0x109d90['markerName']);}_0x55c93d||_0x36cde3||!_0x44e71b||_0x202fa5(_0x44e71b);};}class q extends _0xeaacfa{static get['requires'](){return[_0x575b39];}['init'](){const _0x5c74bc=this['editor'],_0x5bc0a1=_0x5c74bc['plugins']['get']('TrackChangesEditing');_0x5bc0a1['enableCommand']('delete');const _0x661f1=_0x5c74bc['commands']['get']('deleteForward');_0x5bc0a1['enableCommand']('deleteForward',(_0x3b3c2a,_0x1ee319={})=>{const _0x17391d=_0x5c74bc['model']['createSelection'](_0x5c74bc['model']['document']['selection']);_0x17391d['isCollapsed']&&_0x5c74bc['model']['modifySelection'](_0x17391d,{'direction':'forward','unit':_0x1ee319['unit']});const _0x5915df=_0x17391d['getFirstRange'](),_0x2f303f=_0x54c30a['fromRange'](_0x5915df);let _0x5bdfb7;_0x3b3c2a(_0x1ee319),_0x5bdfb7='$graveyard'==_0x2f303f['root']['rootName']?_0x5c74bc['model']['createRange'](_0x5915df['start']):_0x5c74bc['model']['createRange'](_0x2f303f['start'],_0x2f303f['end']),_0x2f303f['detach'](),_0x5c74bc['model']['enqueueChange'](_0x661f1['buffer']['batch'],_0x270be1=>{_0x661f1['buffer']['lock'](),_0x270be1['setSelection'](_0x270be1['createRange'](_0x5bdfb7['end'])),_0x661f1['buffer']['unlock']();});}),_0x5c74bc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5c74bc,'merge'),{'priority':'high'}),_0x5c74bc['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x28ff5e,_0x4ccda5,_0x30fed7)=>{_0x30fed7['options']['showSuggestionHighlights']&&_e(_0x5c74bc,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x28ff5e,_0x4ccda5,_0x30fed7);},{'priority':'high'}),_0x5c74bc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1620f2,_0x2b926a,_0x55b398)=>{const _0x107a16=_0x55b398['mapper']['markerNameToElements'](_0x2b926a['markerName']);if(_0x107a16){for(const _0x560eba of _0x107a16)_0x560eba['is']('uiElement')&&(_0x55b398['mapper']['unbindElementFromMarkerName'](_0x560eba,_0x2b926a['markerName']),_0x55b398['writer']['remove'](_0x560eba));}},{'priority':'high'});}}class z extends _0xeaacfa{['afterInit'](){const _0x238b6e=this['editor'];if(!_0x238b6e['plugins']['has']('ListEditing'))return;const _0x3a380f=_0x238b6e['locale'],_0x5ead5d=_0x238b6e['plugins']['get']('TrackChangesEditing'),_0x64539d=_0x238b6e['plugins']['has']('TodoListEditing'),_0xb34f00=!!_0x238b6e['config']['get']('list.multiBlock');function _0x2c2f62(_0x907e65){return{'type':'format','content':''+o(_0x3a380f,'*Set\x20format:*\x20%0',_0x907e65)};}function _0x3df9cf(_0x1624f1){return{'type':'format','content':''+o(_0x3a380f,'*Remove\x20format:*\x20%0',_0x1624f1)};}_0x5ead5d['enableDefaultAttributesIntegration']('numberedList'),_0x5ead5d['enableDefaultAttributesIntegration']('bulletedList'),_0x5ead5d['enableDefaultAttributesIntegration']('customNumberedList'),_0x5ead5d['enableDefaultAttributesIntegration']('customBulletedList'),_0x5ead5d['enableDefaultAttributesIntegration']('indentList'),_0x5ead5d['enableDefaultAttributesIntegration']('outdentList'),_0x5ead5d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5ead5d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5ead5d['registerBlockAttribute']('listItemId'),_0x5ead5d['registerBlockAttribute']('listType'),_0x5ead5d['registerBlockAttribute']('listIndent'),_0xb34f00&&(_0x5ead5d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5ead5d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x64539d&&(_0x5ead5d['enableDefaultAttributesIntegration']('todoList'),_0x5ead5d['enableDefaultAttributesIntegration']('checkTodoList'),_0x5ead5d['registerBlockAttribute']('todoListChecked'),_0x5ead5d['descriptionFactory']['registerDescriptionCallback'](_0x4c7fe9=>{const {data:_0x5dcd68}=_0x4c7fe9;if(_0x5dcd68&&'todoListChecked'==_0x5dcd68['key'])return{'type':'format','content':_0x5dcd68['newValue']?o(_0x3a380f,'*Check\x20item*'):o(_0x3a380f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x539f0e=>{if(_0x539f0e['batch']['isUndo'])return!0x1;let _0x31bbcf=!0x1;const _0x2a5335=_0x5ead5d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c4e47=>'todoListChecked'===_0x5ead5d['_getAttributeKey'](_0x1c4e47));for(const _0x224720 of _0x2a5335){'todo'!=_0x224720['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5ead5d['_findSuggestions'](_0x224720['getFirstRange'](),'attribute')['find'](_0x4a80a7=>'listType'===_0x5ead5d['_getAttributeKey'](_0x4a80a7['suggestion']))||(_0x539f0e['removeMarker'](_0x224720['getFirstMarker']()),_0x31bbcf=!0x0));}return _0x31bbcf;})),_0x5ead5d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3a380f,'FORMAT_INDENT'));const _0x40199d={'type':'format','content':''};_0x5ead5d['descriptionFactory']['registerDescriptionCallback'](_0x516790=>{const {data:_0x1f3d97}=_0x516790;if(!_0x1f3d97||'listType'!=_0x1f3d97['key'])return;let _0x518cd4=_0x516790['head'];for(;_0x518cd4;){if(_0x518cd4['data']&&(('listStyle'==_0x518cd4['data']['key']||'listMarkerStyle'==_0x518cd4['data']['key'])&&(_0x518cd4['data']['newValue']&&'default'!=_0x518cd4['data']['newValue']||'default'!=_0x518cd4['data']['oldValue']&&!_0x1f3d97['newValue'])||!_0xb34f00&&_0x518cd4['data']['key']==m))return _0x40199d;_0x518cd4=_0x518cd4['next'];}if(null==_0x1f3d97['newValue'])switch(_0x1f3d97['oldValue']){case'bulleted':return _0x3df9cf(o(_0x3a380f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3df9cf(o(_0x3a380f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3df9cf(o(_0x3a380f,'ELEMENT_TODO_LIST'));}switch(_0x1f3d97['newValue']){case'bulleted':return _0x2c2f62(o(_0x3a380f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c2f62(o(_0x3a380f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c2f62(o(_0x3a380f,'ELEMENT_TODO_LIST'));}}),_0x5ead5d['descriptionFactory']['registerDescriptionCallback'](_0x9440d7=>{const {data:_0x540304}=_0x9440d7;if(_0x540304&&'listIndent'==_0x540304['key'])return null==_0x540304['newValue']||null==_0x540304['oldValue']&&0x0==_0x540304['newValue']?_0x40199d:void 0x0;}),_0x5ead5d['descriptionFactory']['registerDescriptionCallback'](_0x1bfe6e=>{if('attribute'!=_0x1bfe6e['type'])return;const {data:_0x7842e}=_0x1bfe6e;if(!_0x7842e||'listItemId'!=_0x7842e['key'])return;const _0xc8f044=le(_0x1bfe6e);return'newValue'==_0xc8f044?{'type':'format','content':o(_0x3a380f,'*Merge:*\x20list\x20item')}:'oldValue'==_0xc8f044?{'type':'format','content':o(_0x3a380f,'*Split:*\x20list\x20item')}:_0x40199d;}),_0x238b6e['model']['document']['registerPostFixer'](_0x1bc157=>this['listItemIdFixer'](_0x1bc157)),_0x238b6e['model']['document']['registerPostFixer'](_0x575fa5=>this['noTrackChangesFixer'](_0x575fa5)),_0x238b6e['model']['document']['registerPostFixer'](_0xee5f15=>this['assureChains'](_0xee5f15)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x21e9c1){if(_0x21e9c1['batch']['isUndo']||!_0x21e9c1['batch']['isLocal'])return!0x1;let _0x46c8b8=!0x1;const _0x15ccae=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cc85f=>_0x5cc85f['data']&&'listItemId'==_0x5cc85f['data']['key'])['filter'](_0x123c81=>_0x123c81['data']['newValue']&&_0x123c81['data']['oldValue']);for(const _0x3bff90 of _0x15ccae)le(_0x3bff90)||(_0x21e9c1['removeMarker'](_0x3bff90['getFirstMarker']()),_0x46c8b8=!0x0);return _0x46c8b8;}['noTrackChangesFixer'](_0x1279a2){if(_0x1279a2['batch']['isUndo']||!_0x1279a2['batch']['isLocal'])return!0x1;const _0x27f463=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x27f463['trackChangesCommand']['value'])return!0x1;let _0x51d91a=!0x1;const _0x140124=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x406b8f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xa8836d=>'attribute'==_0xa8836d['type'])['filter'](_0x5e4302=>_0x140124['includes'](_0x5e4302['attributeKey']));if(0x0==_0x406b8f['length'])return _0x51d91a;for(const _0x21dabf of _0x406b8f){const _0x5f006d=_0x27f463['_findSuggestions'](_0x21dabf['range'],'attribute')['filter'](_0x20c11d=>!_0x20c11d['meta']['isNextTo'])['map'](_0x51fcbd=>_0x51fcbd['suggestion'])['filter'](_0x4a9a99=>{const _0x711555=_0x27f463['_getAttributeKey'](_0x4a9a99);return _0x140124['includes'](_0x711555);});if(_0x5f006d['length']){for(const _0x13fa97 of _0x5f006d)_0x1279a2['removeMarker'](_0x13fa97['getFirstMarker']());_0x51d91a=!0x0;}}return _0x51d91a;}['assureChains'](_0x814348){if(_0x814348['batch']['isUndo']||!_0x814348['batch']['isLocal'])return!0x1;const _0x481de3=this['editor']['plugins']['get']('TrackChangesEditing');let _0x5924c1=!0x1;const _0x43b1eb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5523d3 of _0x481de3['getSuggestions']({'skipNotAttached':!0x0})){const _0x250557=_0x481de3['_findSuggestions'](_0x5523d3['getFirstRange'](),'attribute')['map'](_0x374ef6=>_0x374ef6['suggestion'])['filter'](_0x1b4d7b=>_0x1b4d7b['data']&&_0x43b1eb['includes'](_0x1b4d7b['data']['key']));if(!_0x250557['length'])continue;const _0x6f997d=_0x250557[0x0]['head']['attributes']['groupId'];if(!_0x250557['every'](_0x5c7ee6=>_0x5c7ee6['attributes']['groupId']===_0x6f997d)){for(const _0xe0be3 of _0x250557)_0x1685ed(_0xe0be3,_0x6f997d)&&(_0x5924c1=!0x0);}}return _0x5924c1;function _0xc7ee02(_0x3f5855,_0x361741){for(const _0x4fcfc4 of _0x481de3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x140c39=>'attribute'==_0x140c39['type']&&_0x140c39['attributes']['groupId']==_0x3f5855))_0x4fcfc4['setAttribute']('groupId',_0x361741);}function _0x1685ed(_0x1987da,_0x2c2a66){let _0x1c1681=_0x1987da['head'],_0x3c4432=!0x1;for(;_0x1c1681;)_0x1c1681['attributes']['groupId']!=_0x2c2a66&&(_0xc7ee02(_0x1c1681['attributes']['groupId'],_0x2c2a66),_0x1c1681['setAttribute']('groupId',_0x2c2a66),_0x3c4432=!0x0),_0x1c1681=_0x1c1681['next'];return _0x3c4432;}}['_supportLegacySuggestions'](){const _0x2eaebb=this['editor'],_0x554b89=_0x2eaebb['locale'],_0x4beb53=_0x2eaebb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4beb53['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x50dfb4,_0x16e734){const _0x39ff46=[];for(let _0x4014d8 of _0x50dfb4)_0x4014d8['start']['nodeAfter']===_0x4014d8['end']['parent']&&(_0x4014d8=_0x2eaebb['model']['createRange'](_0x2eaebb['model']['createPositionAt'](_0x4014d8['start']['nodeAfter'],0x0))),_0x39ff46['push'](_0x4014d8);_0x2eaebb['model']['change'](_0xfbec96=>{const _0xd07b7c=_0x2eaebb['model']['document']['selection'],_0x504b7a=Array['from'](_0xd07b7c['getRanges']())['map'](_0x45ff0c=>_0x54c30a['fromRange'](_0x45ff0c));_0xfbec96['setSelection'](_0x39ff46),_0x2eaebb['commands']['get'](_0x16e734['commandName'])['refresh'](),_0x16e734['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2eaebb['execute'](_0x16e734['commandName'],..._0x16e734['commandParams']),_0xfbec96['setSelection'](_0x504b7a);for(const _0x439edb of _0x504b7a)_0x439edb['detach']();});}),_0x4beb53['descriptionFactory']['registerElementLabel'](function(_0x974140){const _0x386060=!_0x2eaebb['model']['schema']['isObject'](_0x974140),_0x41815e=_0x974140['previousSibling'],_0x42098d=_0x974140['nextSibling'],_0x567d1c=_0x974140['getAttribute']('listItemId'),_0x57fa7d=!_0x41815e||_0x41815e['getAttribute']('listItemId')!==_0x567d1c,_0x56b1c9=!_0x42098d||_0x42098d['getAttribute']('listItemId')!==_0x567d1c;return _0x386060&&Boolean(_0x567d1c)&&_0x57fa7d&&_0x56b1c9;},_0x3c6922=>o(_0x554b89,'ELEMENT_LIST_ITEM',_0x3c6922));}['_registerLegacyDescription'](){const _0x3ce4c1=this['editor'],_0x50b6fe=_0x3ce4c1['locale'];function _0x2e278c(_0x3553a5){const _0x162df1=_0x3ce4c1['commands']['get']('bulletedList')['value'],_0x14b1a1=_0x3ce4c1['commands']['get']('numberedList')['value'];return'numberedList'===_0x3553a5?_0x162df1:_0x14b1a1;}_0x3ce4c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5da6a0){if('formatBlock'!=_0x5da6a0['type'])return;const {data:_0x2461e8}=_0x5da6a0;if(!_0x2461e8)return;let _0x21cbed,_0x1a0a7d,_0x46e485,_0x179d55;switch(_0x2461e8['commandName']){case'bulletedList':_0x46e485=_0x2461e8['commandParams'][0x0]['forceValue'],_0x179d55=_0x2e278c(_0x2461e8['commandName']),_0x21cbed=_0x46e485?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x179d55&&_0x3ce4c1['config']['get']('list.multiBlock')||(_0x21cbed='*Change\x20to:*\x20%0'),_0x1a0a7d={'type':'format','content':o(_0x50b6fe,_0x21cbed,o(_0x50b6fe,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x46e485=_0x2461e8['commandParams'][0x0]['forceValue'],_0x179d55=_0x2e278c(_0x2461e8['commandName']),_0x21cbed=_0x46e485?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x179d55&&_0x3ce4c1['config']['get']('list.multiBlock')||(_0x21cbed='*Change\x20to:*\x20%0'),_0x1a0a7d={'type':'format','content':o(_0x50b6fe,_0x21cbed,o(_0x50b6fe,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x21cbed='*Indent:*\x20%0',_0x1a0a7d={'type':'format','content':o(_0x50b6fe,_0x21cbed,o(_0x50b6fe,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x21cbed=function(_0x403095){const _0x3e6c9d=_0x403095['getFirstRange']();let _0x9b6d2e=_0x3e6c9d['start']['nodeAfter'];for(;_0x9b6d2e&&_0x3e6c9d['containsItem'](_0x9b6d2e);){if(_0x9b6d2e['getAttribute']('listIndent')>0x0)return!0x1;_0x9b6d2e=_0x9b6d2e['nextSibling'];}return!0x0;}(_0x5da6a0)?o(_0x50b6fe,'*Format:*\x20remove\x20from\x20%0',o(_0x50b6fe,function(_0x534917){return'ELEMENT_'+_0x534917['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5da6a0))):o(_0x50b6fe,'*Outdent:*\x20%0',o(_0x50b6fe,'ELEMENT_LIST_ITEM')),_0x1a0a7d={'type':'format','content':_0x21cbed};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2461e8['multipleBlocks']&&(_0x21cbed='*Merge:*\x20%0',_0x1a0a7d={'type':'deletion','content':o(_0x50b6fe,_0x21cbed,o(_0x50b6fe,'ELEMENT_LIST_ITEM'))});}return _0x1a0a7d;});}}function le(_0x2a53c1){let _0x332b12=_0x2a53c1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x332b12;){const _0x2f25ad=_0x332b12['getAttribute']('listItemId');if(!_0x2f25ad)return!0x1;if(_0x2f25ad==_0x2a53c1['data']['newValue'])return'newValue';if(_0x2f25ad==_0x2a53c1['data']['oldValue'])return'oldValue';_0x332b12=_0x332b12['previousSibling'];}return!0x1;}class ue extends _0xeaacfa{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1ccd0a=this['editor']['config']['get']('list.properties'),_0x17a175=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ccd0a['styles']&&(_0x17a175['enableDefaultAttributesIntegration']('listStyle'),_0x17a175['registerBlockAttribute']('listStyle')),_0x1ccd0a['reversed']&&(_0x17a175['enableDefaultAttributesIntegration']('listReversed'),_0x17a175['registerBlockAttribute']('listReversed')),_0x1ccd0a['startIndex']&&(_0x17a175['enableDefaultAttributesIntegration']('listStart'),_0x17a175['registerBlockAttribute']('listStart'));const _0x3703fa={'type':'format','content':''};_0x17a175['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xaca68d=this['editor']['locale'];_0x17a175['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xaca68d,'FORMAT_LIST_REVERSED')),_0x17a175['descriptionFactory']['registerDescriptionCallback'](_0xe2f7b0=>{const {data:_0xb70be8}=_0xe2f7b0;if(_0xb70be8&&'listReversed'==_0xb70be8['key'])return null==_0xb70be8['newValue']||0x0==_0xb70be8['newValue']&&null==_0xb70be8['oldValue']?_0x3703fa:void 0x0;}),_0x17a175['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xaca68d,'FORMAT_LIST_START')),_0x17a175['descriptionFactory']['registerDescriptionCallback'](_0x1a7b52=>{const {data:_0x4ee639}=_0x1a7b52;if(_0x4ee639&&'listStart'==_0x4ee639['key'])return null==_0x4ee639['newValue']||0x1==_0x4ee639['newValue']&&null==_0x4ee639['oldValue']?_0x3703fa:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3ff20f=>{if(_0x3ff20f['batch']['isUndo'])return!0x1;let _0x2e8a60=!0x1;const _0x346b58=_0x17a175['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9389c6=>{const _0x59bc9c=_0x17a175['_getAttributeKey'](_0x9389c6);return'listStart'==_0x59bc9c||'listReversed'==_0x59bc9c;});for(const _0x16de65 of _0x346b58){const _0x569f74=_0x16de65['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x569f74||'customNumbered'==_0x569f74)continue;_0x17a175['_findSuggestions'](_0x16de65['getFirstRange'](),'attribute')['find'](_0x56f242=>'listType'==_0x17a175['_getAttributeKey'](_0x56f242['suggestion']))||(_0x3ff20f['removeMarker'](_0x16de65['getFirstMarker']()),_0x2e8a60=!0x0);}return _0x2e8a60;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x356717){const _0x4dd257=this['editor']['locale'],{data:_0x77758}=_0x356717,_0x2968c8={'type':'format','content':''};if(!_0x77758||'listStyle'!=_0x77758['key'])return;if(!_0x77758['oldValue'])return'default'==_0x77758['newValue']?_0x2968c8:{'type':'format','content':''+o(_0x4dd257,'*Set\x20format:*\x20%0',o(_0x4dd257,this['_getTranslationKeyForListStyle'](_0x77758['newValue'])))};if(!_0x77758['newValue']){if('default'==_0x77758['oldValue'])return _0x2968c8;let _0x3721d8=_0x356717['head'];for(;_0x3721d8;){if(_0x3721d8['data']&&'listType'==_0x3721d8['data']['key']&&_0x3721d8['data']['newValue'])return _0x2968c8;_0x3721d8=_0x3721d8['next'];}return{'type':'format','content':''+o(_0x4dd257,'*Remove\x20format:*\x20%0',o(_0x4dd257,this['_getTranslationKeyForListStyle'](_0x77758['oldValue'])))};}if('default'!=_0x77758['newValue'])return{'type':'format','content':''+o(_0x4dd257,'*Set\x20format:*\x20%0',o(_0x4dd257,this['_getTranslationKeyForListStyle'](_0x77758['newValue'])))};let _0x2dcc76=_0x356717['head'];for(;_0x2dcc76;){if(_0x2dcc76['data']&&'listType'==_0x2dcc76['data']['key']&&_0x2dcc76['data']['newValue']&&_0x2dcc76['data']['oldValue'])return _0x2968c8;_0x2dcc76=_0x2dcc76['next'];}return{'type':'format','content':o(_0x4dd257,'*Set\x20format:*\x20%0',o(_0x4dd257,'ELEMENT_'+_0x356717['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2e84ae=this['editor'],_0x5aec09=_0x2e84ae['locale'];_0x2e84ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20fcce=>{if('formatBlock'!=_0x20fcce['type'])return;const {data:_0x561b78}=_0x20fcce;if(!_0x561b78)return;let _0x69576e,_0x169ad7;switch(_0x561b78['commandName']){case'listStyle':_0x69576e='*Change\x20to:*\x20%0',_0x169ad7={'type':'format','content':o(_0x5aec09,_0x69576e,o(_0x5aec09,this['_getTranslationKeyForListStyle'](_0x561b78['commandParams'][0x0]['type'])))};break;case'listReversed':_0x69576e=_0x561b78['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x169ad7={'type':'format','content':o(_0x5aec09,_0x69576e)};break;case'listStart':_0x69576e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x169ad7={'type':'format','content':o(_0x5aec09,_0x69576e,_0x561b78['commandParams'][0x0]['startIndex'])};}return _0x169ad7;});}['_getTranslationKeyForListStyle'](_0x247248){return'ELEMENT_'+function(_0x5c03d6){if(pe['includes'](_0x5c03d6))return'bulleted';if(ye['includes'](_0x5c03d6))return'numbered';return null;}(_0x247248)['toUpperCase']()+'_LIST_'+_0x247248['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0xeaacfa{static get['requires'](){return[_0x4a4105];}['init'](){const _0x32b663=this['editor'],_0x4f82cf=_0x32b663['plugins']['get']('TrackChangesEditing'),_0xba71e=_0x32b663['commands']['get']('enter');_0x4f82cf['enableCommand']('enter',()=>{_0x32b663['model']['change'](_0x1d5629=>{const _0x5a48cc=_0x32b663['model']['document']['selection'],_0x224943=_0x5a48cc['getFirstPosition'](),_0x203313=_0x54c30a['fromRange'](_0x5a48cc['getFirstRange']());if(_0xba71e['enterBlock'](_0x1d5629)){const _0x339ec5=_0x32b663['model']['createPositionAt'](_0x224943['parent']['nextSibling'],0x0),_0xd3ac31=_0x1d5629['createRange'](_0x224943,_0x339ec5);_0x4f82cf['markInsertion'](_0xd3ac31);}else _0x1d5629['setSelection'](_0x1d5629['createRange'](_0x203313['end']));_0x203313['detach'](),_0xba71e['fire']('afterExecute',{'writer':_0x1d5629});});}),_0x32b663['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x32b663,'split'),{'priority':'high'}),_0x32b663['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xc09576,_0x5efb1c,_0x6cb8df)=>{const _0x1d47ff=_0x6cb8df['mapper']['markerNameToElements'](_0x5efb1c['markerName']);if(_0x1d47ff){for(const _0x4476c6 of _0x1d47ff)_0x4476c6['hasClass']('ck-suggestion-marker-split')&&(_0x6cb8df['mapper']['unbindElementFromMarkerName'](_0x4476c6,_0x5efb1c['markerName']),_0x6cb8df['writer']['remove'](_0x4476c6));}},{'priority':'high'}),_0x32b663['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x25c547,_0x392994,_0x21555a)=>{_0x21555a['options']['showSuggestionHighlights']&&_e(_0x32b663,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x25c547,_0x392994,_0x21555a);},{'priority':'high'});}}class J extends _0xeaacfa{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x625e1e=this['editor']['plugins']['get']('TrackChangesEditing');_0x625e1e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x625e1e['enableCommand']('findNext'),_0x625e1e['enableCommand']('findPrevious'),_0x625e1e['enableCommand']('replace'),_0x625e1e['enableCommand']('replaceAll');}['handleFindCommand'](_0x537227,_0x546935,_0x1c5c72={}){const _0x3ab6aa=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x537227(_0x253ccc=>('string'==typeof _0x546935?_0x3ab6aa['findByTextCallback'](_0x546935,_0x1c5c72):_0x546935)(_0x253ccc)['filter'](_0x10c21c=>!0x1===this['_isInDeletionRange'](_0x10c21c,_0x253ccc['item'])),_0x1c5c72);}['_isInDeletionRange'](_0x582455,_0x129d79){const _0x479ebb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x129d79,_0x582455['start']),this['editor']['model']['createPositionAt'](_0x129d79,_0x582455['end']));for(const _0x2a9495 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x479ebb['getIntersection'](_0x2a9495['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 _0xeaacfa{['afterInit'](){const _0x557c48=this['editor']['locale'],_0x1a3fec=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1e75ff,commandName:_0x37048a}of ro)this['editor']['plugins']['has'](_0x1e75ff)&&(_0x1a3fec['enableDefaultAttributesIntegration'](_0x37048a),_0x1a3fec['registerInlineAttribute'](_0x37048a));_0x557c48['t'],_0x1a3fec['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x557c48,'FORMAT_FONT_SIZE')),_0x1a3fec['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x557c48,'FORMAT_FONT_FAMILY')),_0x1a3fec['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x557c48,'FORMAT_FONT_COLOR')),_0x1a3fec['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x557c48,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b634b=this['editor'],_0x13a2a6=_0x5b634b['locale'];_0x5b634b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b7ab4=>{const _0x52ae8e=_0x13a2a6['t'];if('formatInline'!=_0x1b7ab4['type'])return;const {data:_0x1203f5}=_0x1b7ab4;if(null!=_0x1203f5){if('fontSize'==_0x1203f5['commandName']){const _0x390e87=_0x1203f5['commandParams'][0x0]['value'];if(_0x390e87){const _0x4e9352=_0x52ae8e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1702fe=>_0x1702fe['model']==_0x390e87)['title'])['toLowerCase']();return{'type':'format','content':o(_0x13a2a6,'*Set\x20font\x20size:*\x20%0',_0x4e9352)};}return{'type':'format','content':o(_0x13a2a6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1203f5['commandName']){const _0x299b7a=_0x1203f5['commandParams'][0x0]['value'];return _0x299b7a?{'type':'format','content':o(_0x13a2a6,'*Set\x20font\x20family:*\x20%0',_0x299b7a)}:{'type':'format','content':o(_0x13a2a6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1203f5['commandName']){const _0x15d4eb=_0x1203f5['commandParams'][0x0]['value'];if(_0x15d4eb){const _0xc9ae1f=_0x5a5258(this['editor']['config']['get']('fontColor.colors'))['find'](_0x7ddde9=>_0x7ddde9['model']==_0x15d4eb);let _0x4dc857=_0x15d4eb,_0x2827c2='';return _0xc9ae1f&&(_0x4dc857=_0xc9ae1f['label'],_0x2827c2=_0x52ae8e(_0x4dc857)['toLowerCase']()),{'type':'format','content':o(_0x13a2a6,'*Set\x20font\x20color:*\x20%0',_0x2827c2)['trim'](),'color':{'value':_0x15d4eb,'title':_0x2827c2||_0x4dc857}};}return{'type':'format','content':o(_0x13a2a6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1203f5['commandName']){const _0x11989d=_0x1203f5['commandParams'][0x0]['value'];if(_0x11989d){const _0x3a77fe=_0x5a5258(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xca4e66=>_0xca4e66['model']==_0x11989d);let _0x1ab4e7=_0x11989d,_0x5817d5='';return _0x3a77fe&&(_0x1ab4e7=_0x3a77fe['label'],_0x5817d5=_0x52ae8e(_0x1ab4e7)['toLowerCase']()),{'type':'format','content':o(_0x13a2a6,'*Set\x20font\x20background\x20color:*\x20%0',_0x5817d5)['trim'](),'color':{'value':_0x11989d,'title':_0x5817d5||_0x1ab4e7}};}return{'type':'format','content':o(_0x13a2a6,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0xeaacfa{['afterInit'](){const _0x30954f=this['editor'],_0x2c5bc7=_0x30954f['plugins']['get']('TrackChangesEditing'),_0x16093b=_0x30954f['commands']['get']('copyFormat'),_0x304f60=_0x30954f['commands']['get']('pasteFormat');_0x16093b&&_0x304f60&&(_0x2c5bc7['enableDefaultAttributesIntegration']('pasteFormat'),_0x2c5bc7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2c52c0=this['editor'],_0x10a62c=_0x2c52c0['locale'];_0x2c52c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e9d32=>{if('formatBlock'!=_0x3e9d32['type']&&'formatInline'!=_0x3e9d32['type'])return;const {data:_0x255450}=_0x3e9d32;if(_0x255450&&'pasteFormat'===_0x255450['commandName']){const _0x45e121=[],_0x5426ec=_0x255450['commandParams'][0x0];for(const [_0x5f37cb,_0x3dd0a0]of Object['entries'](_0x5426ec))_0x45e121['push'](so(_0x2c52c0,_0x5f37cb,_0x3dd0a0));return _0x45e121['length']?{'type':'format','content':o(_0x10a62c,'*Set\x20format\x20to:*\x20%0',_0x45e121['join'](',\x20'))}:{'type':'format','content':o(_0x10a62c,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5ea734,_0x4fc074,_0x10e426){const _0x26c775=_0x5ea734['locale']['t'],_0x31fd4b=_0x4fc074['split'](/(?=[A-Z])/)['join']('\x20'),_0x3fe280=_0x26c775(_0x31fd4b['charAt'](0x0)['toUpperCase']()+_0x31fd4b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x10e426)return _0x3fe280;if('fontColor'===_0x4fc074||'fontBackgroundColor'===_0x4fc074){const _0x39956e=_0x5a5258(_0x5ea734['config']['get']('fontColor.colors'))['find'](_0x3f563c=>_0x3f563c['model']==_0x10e426);return _0x3fe280+'\x20('+(_0x39956e?_0x26c775(_0x39956e['label'])['toLowerCase']():_0x10e426)+')';}if('fontSize'===_0x4fc074&&isNaN(parseFloat(_0x10e426))){const _0x45c343=_0x5ea734['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5ea734['config']['get']('fontSize.options'))['find'](_0x42d389=>_0x42d389['model']==_0x10e426);return _0x3fe280+'\x20('+(_0x45c343?_0x26c775(_0x45c343['title'])['toLowerCase']():_0x10e426)+')';}return _0x3fe280+'\x20('+_0x10e426+')';}class Y extends _0xeaacfa{['_headingOptions'];['afterInit'](){const _0x459956=this['editor'];if(!_0x459956['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x459956['config']['get']('heading.options');const _0x3dfc08=_0x459956['locale'],_0xbadf77=_0x459956['plugins']['get']('TrackChangesEditing');_0xbadf77['enableDefaultAttributesIntegration']('heading');for(const _0x4ff85e of this['_headingOptions'])'paragraph'!=_0x4ff85e['model']&&_0xbadf77['descriptionFactory']['registerElementLabel'](_0x4ff85e['model'],_0x51a22d=>{const _0xf76fd4=this['_getHeadingLevel'](_0x4ff85e['model']);return null!==_0xf76fd4?_0x22168e(_0x51a22d,_0xf76fd4):_0x176939(_0x51a22d,_0x4ff85e['title']);});function _0x22168e(_0x5bbe23,_0x53fea7){return o(_0x3dfc08,'ELEMENT_HEADING',[_0x5bbe23,_0x53fea7]);}function _0x176939(_0x55a295,_0x535b10){return o(_0x3dfc08,'ELEMENT_HEADING_CUSTOM',[_0x55a295,_0x535b10]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30d859=this['editor'],_0x5197ba=_0x30d859['locale'];function _0x277295(_0x938ac9,_0xcf71ca){return o(_0x5197ba,'ELEMENT_HEADING_CUSTOM',[_0x938ac9,_0xcf71ca]);}_0x30d859['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x93c912=>{if('formatBlock'!=_0x93c912['type'])return;const {data:_0x48551d}=_0x93c912;if(_0x48551d&&'heading'==_0x48551d['commandName']){const _0x2e9e28=_0x48551d['commandParams'][0x0]['value'],_0x47cb55=this['_getHeadingLevel'](_0x2e9e28);if(null!==_0x47cb55)return{'type':'format','content':o(_0x5197ba,'*Change\x20to:*\x20%0',(_0x23cb47=0x1,_0x117270=_0x47cb55,o(_0x5197ba,'ELEMENT_HEADING',[_0x23cb47,_0x117270])))};const _0xf565f7=this['_headingOptions']['find'](_0x29f546=>_0x29f546['model']===_0x2e9e28)['title'];return{'type':'format','content':o(_0x5197ba,'*Change\x20to:*\x20%0',_0x277295(0x1,_0xf565f7))};}var _0x23cb47,_0x117270;});}['_getHeadingLevel'](_0x39b8b6){const _0x1c0a09=_0x39b8b6['match'](/^heading(\d+)/);if(_0x1c0a09)return _0x1c0a09[0x1];const _0x31aa7b=this['_headingOptions']?.['find'](_0x5b0132=>_0x5b0132['model']==_0x39b8b6);if(_0x31aa7b&&_0x31aa7b['view']){const _0x41a7f7=_0x31aa7b['view'],_0x4a4876=(_0x41a7f7['name']??_0x41a7f7)['match'](/^h(\d+)/);if(_0x4a4876)return _0x4a4876[0x1];}return null;}}class Z extends _0xeaacfa{['afterInit'](){const _0x27a00b=this['editor'];if(!_0x27a00b['plugins']['has']('HighlightEditing'))return;const _0xa5ac5b=_0x27a00b['plugins']['get']('TrackChangesEditing'),_0x186472=_0x27a00b['locale'];_0xa5ac5b['enableDefaultAttributesIntegration']('highlight'),_0xa5ac5b['registerInlineAttribute']('highlight'),_0xa5ac5b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x186472,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b90a7=this['editor'],_0x44e7ea=_0x4b90a7['locale'];_0x4b90a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14c1ab=>{if('formatInline'!=_0x14c1ab['type'])return;const {data:_0x28307a}=_0x14c1ab;if(_0x28307a&&'highlight'==_0x28307a['commandName']){const _0x31fe07=_0x44e7ea['t'],_0x486bf9=_0x28307a['commandParams'][0x0]['value'];if(_0x486bf9){const _0x13c1c7=_0x4b90a7['config']['get']('highlight.options')['find'](_0x302b75=>_0x302b75['model']==_0x486bf9),_0x35c0b2=_0x31fe07(_0x13c1c7['title'])['toLowerCase']();return{'type':'format','content':o(_0x44e7ea,'*Set\x20highlight:*\x20%0',_0x35c0b2),'color':{'value':_0x13c1c7['color'],'title':_0x13c1c7['title']}};}return{'type':'format','content':o(_0x44e7ea,'*Remove\x20highlight*',o(_0x44e7ea,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0xeaacfa{['afterInit'](){const _0x1e9da7=this['editor'];if(!_0x1e9da7['plugins']['has']('HorizontalLineEditing'))return;_0x1e9da7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1a111f=_0x1e9da7['plugins']['get']('TrackChangesEditing'),_0x19868e=_0x1e9da7['locale'];_0x1a111f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4dbe03=>o(_0x19868e,'ELEMENT_HORIZONTAL_LINE',_0x4dbe03)),_0x1e9da7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xb8dd81,{writer:_0x27469e,options:_0x4cb91c})=>{if(!_0x4cb91c['showSuggestionHighlights'])return null;const _0x5530dd=_0x27469e['createContainerElement']('div'),_0x318b21=_0x27469e['createEmptyElement']('hr');return _0x27469e['addClass']('ck-horizontal-line',_0x5530dd),_0x27469e['insert'](_0x27469e['createPositionAt'](_0x5530dd,0x0),_0x318b21),_0x5530dd;},'converterPriority':'high'});}}class et extends _0xeaacfa{['afterInit'](){const _0x21d12b=this['editor'];if(!_0x21d12b['plugins']['has']('HtmlEmbed'))return;const _0x151dab=_0x21d12b['plugins']['get']('TrackChangesEditing'),_0x16327d=_0x21d12b['locale'];_0x151dab['descriptionFactory']['registerElementLabel']('rawHtml',_0xacd1f8=>o(_0x16327d,'ELEMENT_HTML_EMBED',_0xacd1f8)),_0x151dab['enableDefaultAttributesIntegration']('htmlEmbed'),_0x151dab['registerBlockAttribute']('value'),_0x151dab['descriptionFactory']['registerDescriptionCallback'](_0x16310f=>{if('attribute'!=_0x16310f['type'])return;const {data:_0x339316}=_0x16310f;if(_0x339316&&'value'==_0x339316['key']&&_0x16310f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1cdff0=o(_0x16327d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x16327d,'*Change\x20%0\x20content*',_0x1cdff0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d45f7=this['editor'],_0x27d8fa=_0x5d45f7['locale'];_0x5d45f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b8cf2=>{if('formatBlock'!=_0x4b8cf2['type'])return;const {data:_0x3fbe89}=_0x4b8cf2;if(_0x3fbe89&&'htmlEmbed'==_0x3fbe89['commandName']){const _0x246c88=o(_0x27d8fa,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x27d8fa,'*Change\x20%0\x20content*',_0x246c88)};}});}}class it extends _0xeaacfa{['afterInit'](){const _0x363ac3=this['editor'];if(!_0x363ac3['plugins']['has']('ImageEditing'))return;const _0x2c9c0=_0x363ac3['plugins']['get']('TrackChangesEditing'),_0x575868=_0x363ac3['plugins']['get']('ImageUtils'),_0x8c668f=_0x363ac3['locale'];_0x2c9c0['enableCommand']('insertImage'),_0x2c9c0['descriptionFactory']['registerElementLabel']('imageBlock',_0x1f785b=>o(_0x8c668f,'ELEMENT_IMAGE',_0x1f785b)),_0x2c9c0['descriptionFactory']['registerElementLabel']('imageInline',_0x457741=>o(_0x8c668f,'ELEMENT_INLINE_IMAGE',_0x457741)),_0x2c9c0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x8c668f,'ELEMENT_CAPTION')),_0x363ac3['plugins']['has']('ImageUploadEditing')&&_0x2c9c0['enableCommand']('uploadImage'),_0x363ac3['plugins']['has']('ImageBlockEditing')&&_0x363ac3['plugins']['has']('ImageInlineEditing')&&(_0x2c9c0['enableCommand']('imageTypeInline',(_0x4fda24,_0x412ad9)=>{const _0x5a3297=_0x575868['getClosestSelectedImageElement'](_0x363ac3['model']['document']['selection']);_0x363ac3['model']['change'](()=>{_0x2c9c0['markBlockFormat'](_0x5a3297,{'commandName':'imageTypeInline','commandParams':[_0x412ad9]},[],'convertBlockImageToInline');});}),_0x2c9c0['enableCommand']('imageTypeBlock',(_0x707913,_0x123ab3)=>{_0x363ac3['model']['change'](_0x385e25=>{let _0x599e30=_0x575868['getClosestSelectedImageElement'](_0x363ac3['model']['document']['selection']),_0x127728=_0x385e25['createRangeOn'](_0x599e30);const _0x534aed=_0x375039['fromPosition'](_0x127728['start'],'toPrevious'),_0x3b6381=_0x375039['fromPosition'](_0x127728['end'],'toNext');_0x2c9c0['forceDefaultExecution'](()=>_0x707913(_0x123ab3)),_0x599e30=_0x575868['getClosestSelectedImageElement'](_0x363ac3['model']['document']['selection']),_0x127728=_0x385e25['createRangeOn'](_0x599e30);const _0x283ff7=_0x385e25['createRange'](_0x534aed,_0x3b6381);_0x534aed['detach'](),_0x3b6381['detach'](),_0x2c9c0['markBlockFormat'](_0x599e30,{'commandName':'imageTypeInline','commandParams':[_0x123ab3]},[],'convertInlineImageToBlock'),_0x283ff7['start']['isBefore'](_0x127728['start'])&&_0x2c9c0['markInsertion'](_0x385e25['createRange'](_0x283ff7['start'],_0x127728['start']),'convertInlineImageToBlock'),_0x127728['end']['isBefore'](_0x283ff7['end'])&&_0x2c9c0['markInsertion'](_0x385e25['createRange'](_0x127728['end'],_0x283ff7['end']),'convertInlineImageToBlock');});}),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2c9c0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x39f239])=>{const _0x5a74ab=_0x2c9c0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3180dc=_0x39f239['start'],_0x1f1f8d=_0x39f239['end'];const _0x45057f=_0x363ac3['model']['schema']['getNearestSelectionRange'](_0x3180dc,'backward'),_0x3f6f65=_0x363ac3['model']['schema']['getNearestSelectionRange'](_0x1f1f8d,'forward');_0x45057f['isCollapsed']&&(_0x3180dc=_0x45057f['start']),_0x3f6f65['isCollapsed']&&(_0x1f1f8d=_0x3f6f65['end']),_0x5a74ab([_0x363ac3['model']['createRange'](_0x3180dc,_0x1f1f8d)]);}),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2bff71),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2bff71)),_0x363ac3['plugins']['has']('ImageCaptionEditing')&&(_0x2c9c0['enableCommand']('toggleImageCaption',(_0x2aa9f5,_0x162342)=>{const _0x2af8e9=_0x363ac3['plugins']['get']('ImageCaptionUtils');let _0x3d946d=_0x575868['getClosestSelectedImageElement'](_0x363ac3['model']['document']['selection']),_0x541b59=_0x2af8e9['getCaptionFromImageModelElement'](_0x3d946d);_0x363ac3['model']['change'](()=>{if(_0x541b59)return void _0x2c9c0['markDeletion'](_0x363ac3['model']['createRangeOn'](_0x541b59));const _0x1c9a70=_0x575868['isBlockImage'](_0x3d946d);_0x2aa9f5(_0x162342),_0x3d946d=_0x575868['getClosestSelectedImageElement'](_0x363ac3['model']['document']['selection']),_0x541b59=_0x2af8e9['getCaptionFromImageModelElement'](_0x3d946d),_0x2c9c0['markInsertion'](_0x363ac3['model']['createRangeOn'](_0x541b59),_0x1c9a70?null:'imageCaption');});}),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2bff71));const _0x1c3eee=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2b7d8f(_0x42d74f,_0x511bfa){const _0x3357ce=_0x1c3eee['findIndex'](({type:_0x5a2e2d,subType:_0xac9645})=>_0x42d74f['type']==_0x5a2e2d&&_0x42d74f['subType']==_0xac9645),_0x54588d=_0x1c3eee['findIndex'](({type:_0x3d6314,subType:_0x47fecf})=>_0x511bfa['type']==_0x3d6314&&_0x511bfa['subType']==_0x47fecf);if(_0x3357ce<0x0||_0x54588d<0x0)return!0x1;const _0x1a26b8=_0x42d74f['getFirstRange'](),_0xe23293=_0x511bfa['getFirstRange']();if((0x0==_0x3357ce||0x1==_0x3357ce)&&0x2==_0x54588d&&_0x1a26b8['isIntersecting'](_0xe23293))return!0x0;if(0x2==_0x3357ce&&0x3==_0x54588d){const _0x4c0fc7=_0x2c9c0['_findSuggestions'](_0x1a26b8,'insertion')['filter'](({suggestion:_0x754fb9,meta:_0x449f70})=>_0x449f70['isOwn']&&'convertInlineImageToBlock'==_0x754fb9['subType']);if(_0x4c0fc7['length']>0x1&&_0xe23293['end']['isEqual'](_0x1a26b8['start']))return!0x0;if(0x1==_0x4c0fc7['length']&&(_0x1a26b8['start']['isEqual'](_0xe23293['end'])||_0x1a26b8['end']['isEqual'](_0xe23293['start'])))return!0x0;}if(0x3==_0x3357ce&&0x3==_0x54588d&&_0x1a26b8['start']['isBefore'](_0xe23293['start'])){const _0x54901b=_0x1a26b8['end']['nodeAfter'],_0x2c7dad=_0xe23293['start']['nodeBefore'];return _0x575868['isBlockImage'](_0x54901b)&&_0x54901b===_0x2c7dad;}return!0x1;}function _0x2bff71(_0x135c32,_0x55adca){return _0x2b7d8f(_0x135c32,_0x55adca)?[_0x135c32,_0x55adca]:_0x2b7d8f(_0x55adca,_0x135c32)?[_0x55adca,_0x135c32]:null;}_0x363ac3['plugins']['has']('ImageResize')&&(_0x2c9c0['enableDefaultAttributesIntegration']('resizeImage'),_0x2c9c0['registerBlockAttribute']('resizedWidth'),_0x2c9c0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x8c668f,'FORMAT_IMAGE_SIZE'))),_0x363ac3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2c9c0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2c9c0['registerBlockAttribute']('alt')),_0x2c9c0['descriptionFactory']['registerDescriptionCallback'](_0x2e5c78=>{if(!!_0x1c3eee['find'](({type:_0x4e18ab,subType:_0xb3d830})=>_0x2e5c78['type']==_0x4e18ab&&_0x2e5c78['subType']==_0xb3d830))return _0x2e5c78['previous']?{}:void 0x0;}),_0x2c9c0['descriptionFactory']['registerDescriptionCallback'](_0x304167=>{if('insertion'==_0x304167['type']||'deletion'==_0x304167['type']){const _0x32e1b5=_0x304167['getContainedElement']();if(_0x32e1b5&&_0x32e1b5['is']('element','caption'))return{'type':'insertion'==_0x304167['type']?'addObject':'removeObject','element':_0x32e1b5,'quantity':0x1};}}),_0x2c9c0['descriptionFactory']['registerDescriptionCallback'](_0x1353a=>'formatBlock'==_0x1353a['type']&&'convertInlineImageToBlock'==_0x1353a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1353a['type']&&'convertBlockImageToInline'==_0x1353a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2c9c0['descriptionFactory']['registerDescriptionCallback'](_0x4daaab=>{if('attribute'!=_0x4daaab['type'])return;const {data:_0x5854cc}=_0x4daaab;if(!_0x5854cc||'alt'!=_0x5854cc['key'])return;const _0x56fe96=_0x5854cc['newValue'];return _0x56fe96?{'type':'format','content':o(_0x8c668f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x56fe96+'\x22')}:{'type':'format','content':o(_0x8c668f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a6936=this['editor'],_0x464890=_0x1a6936['locale'];_0x1a6936['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1db3e8=>{if('formatBlock'!=_0x1db3e8['type']&&'formatInline'!=_0x1db3e8['type'])return;const {data:_0x3ce7b2}=_0x1db3e8;if(_0x3ce7b2){if('imageTextAlternative'==_0x3ce7b2['commandName']){const _0x3e14ba=_0x3ce7b2['commandParams'][0x0]['newValue'];return _0x3e14ba?{'type':'format','content':o(_0x464890,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3e14ba+'\x22')}:{'type':'format','content':o(_0x464890,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3ce7b2['commandName']){const _0xf333d8=_0x3ce7b2['commandParams'][0x0]['width'];return _0xf333d8?{'type':'format','content':o(_0x464890,'*Set\x20image\x20width:*\x20%0',_0xf333d8)}:{'type':'format','content':o(_0x464890,'*Reset\x20image\x20width*')};}}});}}class st extends _0xeaacfa{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4f0415=this['editor']['locale'],_0x3985e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x3985e3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3985e3['registerBlockAttribute']('src'),_0x3985e3['descriptionFactory']['registerDescriptionCallback'](_0x52e904=>{if('attribute'!=_0x52e904['type'])return;const {data:_0x5f0c98}=_0x52e904;return _0x5f0c98&&'src'==_0x5f0c98['key']?_0x5f0c98['newValue']&&_0x5f0c98['oldValue']?{'type':'format','content':o(_0x4f0415,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x38ff08=this['editor']['plugins']['get']('TrackChangesEditing');_0x38ff08['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x38ff08['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38ff08['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x38ff08['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a04df=this['editor'],_0x5a67c4=_0x5a04df['locale'];_0x5a04df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a553c=>{if('formatBlock'!=_0x1a553c['type']&&'formatInline'!=_0x1a553c['type'])return;const {data:_0x21742b}=_0x1a553c;if(!_0x21742b||'replaceImageSource'!=_0x21742b['commandName'])return;return{'type':'format','content':o(_0x5a67c4,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0xeaacfa{['afterInit'](){const _0x53c036=this['editor'];if(!_0x53c036['plugins']['has']('ImageStyleEditing'))return;const _0x7d8b9c=_0x53c036['plugins']['get']('TrackChangesEditing'),_0x4a8f7f=_0x53c036['plugins']['get']('ImageUtils'),_0x4f0ff2={};_0x7d8b9c['enableCommand']('imageStyle',(_0x5e0724,_0x2cd4e4)=>{const _0x23d9d6=_0x53c036['plugins']['get']('Users')['me'],_0x577c56=_0x53c036['commands']['get']('imageStyle');let _0x57e688=_0x4a8f7f['getClosestSelectedImageElement'](_0x53c036['model']['document']['selection']),_0x1c350d=_0x53c036['model']['createRangeOn'](_0x57e688),_0x38bd03=_0x577c56['value'];if(_0x38bd03==_0x2cd4e4['value'])return;const _0x426272={'commandName':'imageStyle','commandParams':[_0x2cd4e4],'formatGroupId':_0x107e61()};_0x53c036['model']['change'](()=>{if(_0x7d8b9c['getSuggestions']()['filter'](_0x3765ee=>_0x3765ee['isInContent']&&_0x23d9d6==_0x3765ee['author']&&('formatBlock'==_0x3765ee['type']||'formatInline'==_0x3765ee['type'])&&('imageStylePreApply'==_0x3765ee['subType']||'imageStylePostApply'==_0x3765ee['subType'])&&_0x3765ee['getFirstRange']()['isEqual'](_0x1c350d))['forEach'](_0xfc2d7=>_0x7d8b9c['discardSuggestion'](_0xfc2d7['head'])),_0x57e688=_0x4a8f7f['getClosestSelectedImageElement'](_0x53c036['model']['document']['selection']),_0x1c350d=_0x53c036['model']['createRangeOn'](_0x57e688),_0x577c56['refresh'](),_0x53c036['commands']['get']('imageTypeInline')['refresh'](),_0x53c036['commands']['get']('imageTypeBlock')['refresh'](),_0x38bd03=_0x577c56['value'],_0x38bd03!=_0x2cd4e4['value'])return _0x4a8f7f['isInlineImage'](_0x57e688)&&_0x577c56['shouldConvertImageType'](_0x2cd4e4['value'],_0x57e688)?(_0x5e0724({..._0x2cd4e4,'setImageSizes':!0x1}),_0x57e688=_0x4a8f7f['getClosestSelectedImageElement'](_0x53c036['model']['document']['selection']),void _0x7d8b9c['markBlockFormat'](_0x57e688,{..._0x426272,'commandReversedParams':[{'value':_0x38bd03||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4a8f7f['isBlockImage'](_0x57e688)?_0x7d8b9c['markBlockFormat'](_0x57e688,_0x426272,[],'imageStylePostApply'):_0x7d8b9c['markInlineFormat'](_0x1c350d,_0x426272,'imageStylePostApply'));});});for(const _0x6a4fbd of _0x53c036['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4f0ff2[_0x6a4fbd['name']]=_0x6a4fbd['title']['toLowerCase']();_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5c73d7])=>{_0x4a8f7f['setImageNaturalSizeAttributes'](_0x5c73d7['getContainedElement']());}),_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x32f3c0,_0x204578)=>{_0x7d8b9c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x32f3c0,{'commandName':_0x204578['commandName'],'commandParams':_0x204578['commandReversedParams']});}),_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3229c7,_0x1e0860){if(_0xa2d7bd(_0x3229c7,_0x1e0860))return[_0x3229c7,_0x1e0860];if(_0xa2d7bd(_0x1e0860,_0x3229c7))return[_0x1e0860,_0x3229c7];return null;});const _0x37ee04=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xa2d7bd(_0x241f59,_0x2a92ae){const _0x28f01a=_0x37ee04['findIndex'](({type:_0x44ab7e,subType:_0x4a1189})=>_0x241f59['type']==_0x44ab7e&&_0x241f59['subType']==_0x4a1189),_0x568e22=_0x37ee04['findIndex'](({type:_0x555f78,subType:_0x2c47d4})=>_0x2a92ae['type']==_0x555f78&&_0x2a92ae['subType']==_0x2c47d4);if(_0x28f01a<0x0||_0x568e22<0x0)return!0x1;const _0x1e0be6=_0x241f59['getFirstRange'](),_0x140c2d=_0x2a92ae['getFirstRange']();if((0x0==_0x28f01a||0x1==_0x28f01a)&&0x2==_0x568e22&&_0x1e0be6['isIntersecting'](_0x140c2d))return!0x0;if(0x2==_0x28f01a&&0x3==_0x568e22){const _0x482f66=_0x7d8b9c['_findSuggestions'](_0x1e0be6,'insertion')['filter'](({suggestion:_0x5ae948,meta:_0x1a98b})=>_0x1a98b['isOwn']&&'convertInlineImageToBlock'==_0x5ae948['subType']);if(_0x482f66['length']>0x1&&_0x140c2d['end']['isEqual'](_0x1e0be6['start']))return!0x0;if(0x1==_0x482f66['length']&&(_0x1e0be6['start']['isEqual'](_0x140c2d['end'])||_0x1e0be6['end']['isEqual'](_0x140c2d['start'])))return!0x0;}if(0x3==_0x28f01a&&0x3==_0x568e22&&_0x1e0be6['start']['isBefore'](_0x140c2d['start'])){const _0x4292f2=_0x1e0be6['end']['nodeAfter'],_0x1897ef=_0x140c2d['start']['nodeBefore'];return _0x4a8f7f['isBlockImage'](_0x4292f2)&&_0x4292f2===_0x1897ef;}return!0x1;}_0x53c036['model']['document']['registerPostFixer'](()=>{let _0x1fa7bb=!0x1;const _0x27b231=Array['from'](_0x53c036['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22a80b,data:_0x364d81}of _0x27b231){const {group:_0x2ed97f,type:_0x447874,subType:_0x344083,id:_0x2fb609}=_0x7d8b9c['_splitMarkerName'](_0x22a80b);if('suggestion'==_0x2ed97f&&_0x7d8b9c['hasSuggestion'](_0x2fb609)){if('formatBlock'==_0x447874&&('imageStylePreApply'==_0x344083||'imageStylePostApply'==_0x344083)){const _0xac5515=_0x7d8b9c['getSuggestion'](_0x2fb609);if(_0x364d81['newRange']){const _0x3e238a=_0xac5515['getFirstRange']()['getContainedElement']();if(_0x4a8f7f['isBlockImage'](_0x3e238a))continue;_0x7d8b9c['discardSuggestion'](_0xac5515),_0x1fa7bb=!0x0;}}if('insertion'==_0x447874&&'imageCaption'==_0x344083&&!_0x364d81['newRange']){const _0x361ade=_0x7d8b9c['getSuggestion'](_0x2fb609);_0x361ade['next']&&_0x361ade['next']['isInContent']&&(_0x7d8b9c['discardSuggestion'](_0x361ade['next']),_0x1fa7bb=!0x0);}}}return _0x1fa7bb;}),this['_registerLegacyDescription'](_0x4f0ff2);}['_registerLegacyDescription'](_0xd022a4){const _0xba53e8=this['editor'],_0x4c098b=_0xba53e8['locale'];_0xba53e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20a6e5=>{if('formatBlock'!=_0x20a6e5['type']&&'formatInline'!=_0x20a6e5['type'])return;const {data:_0x1e88f4}=_0x20a6e5;if(!_0x1e88f4||'imageStyle'!=_0x1e88f4['commandName'])return;const _0x5d548b=_0x1e88f4['commandParams'][0x0]['value'];return _0x10cae9('side'===_0x5d548b?o(_0x4c098b,'FORMAT_SIDE_IMAGE'):_0xd022a4[_0x5d548b]||_0x5d548b);function _0x10cae9(_0x557f92){return{'type':'format','content':o(_0x4c098b,'*Format:*\x20%0',_0x557f92)};}});}}class ot extends _0xeaacfa{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x32a992){super(_0x32a992),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2dc988=this['editor'],_0x1ccdad=_0x2dc988['commands']['get']('importWord'),_0x1bfdec=_0x2dc988['commands']['get']('trackChanges');_0x1ccdad&&(_0x1ccdad['on']('execute',(_0x5c4bcc,[,_0x4115db])=>{this['_trackChangesValueDuringImport']=_0x1bfdec['value'],_0x4115db['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1ccdad,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1ccdad,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1bfdec['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2dc988['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1dd9e5,_0x175c1e){const {suggestions:_0x13e929}=_0x175c1e,_0x326730=this['editor']['commands']['get']('trackChanges'),_0x4ddcd7=_0x326730['value'];this['_trackChangesValueDuringImport']!==_0x4ddcd7&&(_0x326730['execute'](),this['_trackChangesExecuted']=!0x0),_0x13e929&&_0x13e929['forEach'](({id:_0x2a814a,type:_0x27b7fb,author:_0x176fc6,created_at:_0x2809d7})=>{const _0x1c99d7={'id':_0x2a814a,'type':_0x27b7fb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x176fc6,'createdAt':_0x2809d7?new Date(_0x2809d7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c99d7);});}}class rt extends _0xeaacfa{['afterInit'](){const _0x48264e=this['editor'],_0x1bd156=_0x48264e['plugins']['get']('TrackChangesEditing');if(_0x48264e['plugins']['has']('IndentEditing')&&(_0x1bd156['enableCommand']('indent'),_0x1bd156['enableCommand']('outdent')),_0x48264e['plugins']['has']('IndentBlock')){for(const _0x53091e of['indentBlock','outdentBlock'])_0x1bd156['enableDefaultAttributesIntegration'](_0x53091e);}const _0x4aed88=_0x48264e['locale'];_0x1bd156['registerBlockAttribute']('blockIndent'),_0x1bd156['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4aed88,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x497d6e=this['editor'],_0x5c6982=_0x497d6e['locale'],_0x370379=_0x497d6e['plugins']['get']('TrackChangesEditing');_0x370379['descriptionFactory']['registerDescriptionCallback'](_0xb73803=>{if('formatBlock'!=_0xb73803['type'])return;const {data:_0x599a18}=_0xb73803;if(!_0x599a18)return;if('indentBlock'!=_0x599a18['commandName']&&'outdentBlock'!=_0x599a18['commandName'])return;const _0xb2278f=_0xb73803['getItems']()[0x0],_0x133ead=_0x370379['descriptionFactory']['getItemLabel'](_0xb2278f);return'indentBlock'==_0x599a18['commandName']?{'type':'format','content':o(_0x5c6982,'*Indent:*\x20%0',_0x133ead)}:'outdentBlock'==_0x599a18['commandName']?{'type':'format','content':o(_0x5c6982,'*Outdent:*\x20%0',_0x133ead)}:void 0x0;});}}class at extends _0xeaacfa{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0xeaacfa{['afterInit'](){const _0x34946c=this['editor'];if(!_0x34946c['plugins']['has']('LinkEditing'))return;const _0xfe63a7=_0x34946c['plugins']['get']('TrackChangesEditing'),_0x1b83e6=_0x34946c['commands']['get']('link');_0xfe63a7['enableDefaultAttributesIntegration']('link'),_0xfe63a7['enableDefaultAttributesIntegration']('unlink'),_0xfe63a7['registerInlineAttribute']('linkHref');for(const _0x7d8c59 of _0x1b83e6['manualDecorators'])_0xfe63a7['registerInlineAttribute'](_0x7d8c59['id']),_0xfe63a7['descriptionFactory']['registerAttributeLabel'](_0x7d8c59['id'],'link\x20('+_0x7d8c59['label']['toLowerCase']()+')');_0xfe63a7['descriptionFactory']['registerDescriptionCallback'](_0x1864f7=>{if('attribute'!=_0x1864f7['type'])return;const {data:_0x497bf4}=_0x1864f7;if(!_0x497bf4||'linkHref'!=_0x497bf4['key'])return;const _0x1f4d7b=_0x497bf4['newValue'],_0x2a73b5=_0x34946c['locale'];return{'type':'format','content':null==_0x1f4d7b?o(_0x2a73b5,'*Remove\x20link*'):o(_0x2a73b5,'*Set\x20link:*\x20%0','\x22'+_0x1f4d7b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1442cc=this['editor'],_0x4249a5=_0x1442cc['locale'];_0x1442cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48b219=>{if('formatInline'!=_0x48b219['type'])return;const {data:_0xdadb06}=_0x48b219;if(_0xdadb06){if('link'==_0xdadb06['commandName']){const _0x755caa=_0xdadb06['commandParams'][0x0];return{'type':'format','content':o(_0x4249a5,'*Set\x20link:*\x20%0','\x22'+_0x755caa+'\x22')};}return'unlink'==_0xdadb06['commandName']?{'type':'format','content':o(_0x4249a5,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0xeaacfa{['afterInit'](){const _0xf76b56=this['editor'],_0x3e57f8=_0xf76b56['locale'];if(!_0xf76b56['plugins']['has']('LegacyListEditing'))return;const _0x4d7a62=_0xf76b56['plugins']['get']('TrackChangesEditing'),_0x41aa7e=_0xf76b56['plugins']['has']('LegacyTodoListEditing');function _0x2b6c12(_0x470bcd){return()=>{const _0x4a67c5=_0xf76b56['model']['document']['selection'],_0x32a3dc=_0xf76b56['commands']['get'](_0x470bcd);if(_0x32a3dc['value'])return void _0xf76b56['execute']('paragraph',{});const _0x2cafe0=_0x470bcd['slice'](0x0,-0x4),_0x3daea8=function(_0x22c915,_0x32b3d9,_0x4204c8){let _0x13b3a6=Array['from'](_0x22c915)['filter'](_0x462bbc=>function(_0x325923,_0x1f8fac){return _0x1f8fac['checkChild'](_0x325923['parent'],'listItem')&&!_0x1f8fac['isObject'](_0x325923);}(_0x462bbc,_0x4204c8));_0x13b3a6=_0x13b3a6['filter'](_0x319605=>!_0x319605['is']('element','listItem')||_0x319605['getAttribute']('listType')!=_0x32b3d9);const _0x72d8bb=new Set();for(const _0x1b7846 of _0x13b3a6)_0x1b7846['is']('element','listItem')?_0x72d8bb['add'](me(_0x1b7846)):_0x72d8bb['add'](_0x1b7846);return Array['from'](_0x72d8bb);}(_0x4a67c5['getSelectedBlocks'](),_0x2cafe0,_0xf76b56['model']['schema']);_0xf76b56['model']['change'](()=>{for(const _0x53d733 of _0x3daea8)_0x4d7a62['markBlockFormat'](_0x53d733,{'commandName':_0x470bcd,'commandParams':[{'forceValue':!_0x32a3dc['value']}],'formatGroupId':'blockName'},fe(_0x53d733));});};}function _0x4048b9(_0x50c3d2){return()=>{const _0x3713ad=function(_0x3da927){let _0x5a1361=Array['from'](_0x3da927);const _0x3d6e37=_0x5a1361['findIndex'](_0x3562f2=>'listItem'!=_0x3562f2['name']);return _0x3d6e37>-0x1&&(_0x5a1361=_0x5a1361['slice'](0x0,_0x3d6e37)),_0x5a1361;}(_0xf76b56['model']['document']['selection']['getSelectedBlocks']()),_0x5cfa78=_0xf76b56['model']['createRange'](_0xf76b56['model']['createPositionAt'](_0x3713ad[0x0],'before'),_0xf76b56['model']['createPositionAt'](_0x3713ad[_0x3713ad['length']-0x1],'end'));_0xf76b56['model']['change'](()=>{_0x4d7a62['markBlockFormat'](_0x5cfa78,{'commandName':_0x50c3d2,'commandParams':[],'formatGroupId':'listIndent'},function(_0xd833c0){const _0x2addcb=new Set();for(const _0x32433b of _0xd833c0){let _0x1f1966=_0x32433b['nextSibling'];for(;_0x1f1966&&_0x1f1966['getAttribute']('listIndent')>_0x32433b['getAttribute']('listIndent');)_0x2addcb['add'](_0x1f1966),_0x1f1966=_0x1f1966['nextSibling'];}return Array['from'](_0x2addcb);}(_0x3713ad));});};}_0x4d7a62['enableCommand']('numberedList',_0x2b6c12('numberedList')),_0x4d7a62['enableCommand']('bulletedList',_0x2b6c12('bulletedList')),_0x41aa7e&&_0x4d7a62['enableCommand']('todoList',_0x2b6c12('todoList')),_0x4d7a62['enableCommand']('indentList',_0x4048b9('indentList')),_0x4d7a62['enableCommand']('outdentList',_0x4048b9('outdentList')),_0x41aa7e&&_0x4d7a62['enableCommand']('checkTodoList',()=>{const _0x5cb778=_0xf76b56['commands']['get']('checkTodoList'),_0x4984e3=Array['from'](_0x5cb778['_selectedElements']);_0x4984e3['filter'](_0x553e2f=>_0x553e2f['getAttribute']('todoListChecked')!=_0x5cb778['value']),_0xf76b56['model']['change'](()=>{for(const _0x200932 of _0x4984e3)_0x4d7a62['markBlockFormat'](_0x200932,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5cb778['value']}]});});}),_0x4d7a62['descriptionFactory']['registerElementLabel']('listItem',_0x3954a4=>o(_0x3e57f8,'ELEMENT_LIST_ITEM',_0x3954a4)),_0x4d7a62['descriptionFactory']['registerDescriptionCallback'](_0x15e8d6=>{if('formatBlock'!=_0x15e8d6['type']&&'formatInline'!=_0x15e8d6['type'])return;const {data:_0x2865b1}=_0x15e8d6;if(_0x2865b1){if('numberedList'==_0x2865b1['commandName']||'bulletedList'==_0x2865b1['commandName']||'todoList'==_0x2865b1['commandName'])switch(_0x2865b1['commandName']['replace']('List','')){case'bulleted':return _0x1a72bb(o(_0x3e57f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a72bb(o(_0x3e57f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a72bb(o(_0x3e57f8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2865b1['commandName'])return{'type':'format','content':o(_0x3e57f8,'*Indent:*\x20%0',o(_0x3e57f8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2865b1['commandName'])return{'type':'format','content':o(_0x3e57f8,'*Outdent:*\x20%0',o(_0x3e57f8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2865b1['commandName'])return _0x2865b1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e57f8,'*Check\x20item*')}:{'type':'format','content':o(_0x3e57f8,'*Uncheck\x20item*')};}function _0x1a72bb(_0x524728){return{'type':'format','content':o(_0x3e57f8,'*Change\x20to:*\x20%0',_0x524728)};}});}}function me(_0x9b87f4){const _0x33efe4=_0x9b87f4['getAttribute']('listIndent');if(0x0==_0x33efe4)return _0x9b87f4;let _0x1fb39c=_0x9b87f4;for(;_0x9b87f4['previousSibling']&&_0x9b87f4['previousSibling']['is']('element','listItem');){const _0x4ef344=_0x9b87f4['previousSibling']['getAttribute']('listIndent');if(_0x4ef344==_0x33efe4)_0x1fb39c=_0x9b87f4['previousSibling'];else{if(_0x4ef344<_0x33efe4)break;}_0x9b87f4=_0x9b87f4['previousSibling'];}return _0x1fb39c;}function fe(_0x2b181f){const _0x54ec70=[];if(_0x2b181f['is']('element','listItem')&&_0x2b181f['getAttribute']('listIndent')>0x0){let _0x4aac03=_0x2b181f['nextSibling'];for(;_0x4aac03&&'listItem'==_0x4aac03['name']&&_0x4aac03['getAttribute']('listIndent')==_0x2b181f['getAttribute']('listIndent');)_0x54ec70['push'](_0x4aac03),_0x4aac03=_0x4aac03['nextSibling'];}return _0x54ec70;}class K extends _0xeaacfa{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x50ea77=this['editor']['config']['get']('list.properties'),_0x2930e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x50ea77['styles']&&_0x2930e3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x50ea77['reversed']&&_0x2930e3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x50ea77['startIndex']&&_0x2930e3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2930e3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2cd471,_0x2f5290={}){const _0x9c7cc4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55dbdc=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x9c7cc4['markMultiRangeBlockFormat'](_0x55dbdc,{'commandName':'listStyle','commandParams':[{'type':_0x2f5290['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5ed722,_0x5c4f61={}){const _0x5b0070=this['editor']['plugins']['get']('TrackChangesEditing'),_0x299073=this['_getSuggestionBlocks'](_0x25b600=>_0x25b600['is']('element','listItem')&&'numbered'===_0x25b600['getAttribute']('listType'));if(_0x299073['length']<0x1)return;const _0x54ac2c=_0x299073['map'](_0x24da5e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24da5e,'before'),this['editor']['model']['createPositionAt'](_0x24da5e,0x0)));this['editor']['model']['change'](()=>{_0x5b0070['markMultiRangeBlockFormat'](_0x54ac2c,{'commandName':'listReversed','commandParams':[{'reversed':_0x5c4f61['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5d5c0d,_0x4a7c11={}){const _0x4694c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16a744=this['_getSuggestionBlocks'](_0x497ba1=>_0x497ba1['is']('element','listItem')&&'numbered'===_0x497ba1['getAttribute']('listType'));if(_0x16a744['length']<0x1)return;const _0x51ebca=_0x16a744['map'](_0x520c13=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x520c13,'before'),this['editor']['model']['createPositionAt'](_0x520c13,0x0)));this['editor']['model']['change'](()=>{_0x4694c0['markMultiRangeBlockFormat'](_0x51ebca,{'commandName':'listStart','commandParams':[{'startIndex':_0x4a7c11['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2fb68e){if('formatBlock'!=_0x2fb68e['type']&&'formatInline'!=_0x2fb68e['type'])return;const _0x22ce50=this['editor']['locale'],{data:_0x49da7a}=_0x2fb68e;if(!_0x49da7a)return;let _0x17de27,_0x23926c;switch(_0x49da7a['commandName']){case'listStyle':_0x17de27='*Change\x20to:*\x20%0',_0x23926c={'type':'format','content':o(_0x22ce50,_0x17de27,o(_0x22ce50,this['_getTranslationKeyForListStyle'](_0x49da7a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x17de27=_0x49da7a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x23926c={'type':'format','content':o(_0x22ce50,_0x17de27)};break;case'listStart':_0x17de27='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x23926c={'type':'format','content':o(_0x22ce50,_0x17de27,_0x49da7a['commandParams'][0x0]['startIndex'])};}return _0x23926c;}['_getSuggestionBlocksForListStyle'](){const _0x37b6b9=this['editor']['plugins']['get']('LegacyListUtils');let _0x12a3cf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x12a3cf[0x0]?.['is']('element','listItem')&&_0x12a3cf['unshift'](..._0x37b6b9['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x12a3cf[_0x12a3cf['length']-0x1]?.['is']('element','listItem')&&_0x12a3cf['push'](..._0x37b6b9['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x12a3cf=[...new Set(_0x12a3cf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x12a3cf=_0x12a3cf['filter'](_0x4d983e=>_0x4d983e['is']('element','listItem'))),_0x12a3cf;}['_getSuggestionBlocks'](_0x7d8105){const _0x2eb3ef=this['editor']['plugins']['get']('LegacyListUtils');let _0x22c0ae=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x7d8105)['map'](_0x1f2402=>{const _0x12cda5=this['editor']['model']['createPositionAt'](_0x1f2402,0x0);return[..._0x2eb3ef['getSiblingNodes'](_0x12cda5,'backward'),..._0x2eb3ef['getSiblingNodes'](_0x12cda5,'forward')];})['flat']();return _0x22c0ae=[...new Set(_0x22c0ae)],_0x22c0ae;}['_getTranslationKeyForListStyle'](_0x52f68c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x52f68c)||'default')['toUpperCase']()+'_LIST_'+_0x52f68c['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0xeaacfa{['afterInit'](){const _0x4a048f=this['editor'];if(!_0x4a048f['plugins']['has']('MediaEmbedEditing'))return;const _0x57ae7d=_0x4a048f['plugins']['get']('TrackChangesEditing'),_0x1b39f9=_0x4a048f['locale'];_0x57ae7d['enableCommand']('mediaEmbed'),_0x57ae7d['descriptionFactory']['registerElementLabel']('media',_0x2cd80a=>o(_0x1b39f9,'ELEMENT_MEDIA',_0x2cd80a)),_0x4a048f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x228319,{writer:_0x2e2f8f,options:_0x19d109})=>{if(_0x19d109['showSuggestionHighlights'])return _0x2e2f8f['createEmptyElement']('div');},'converterPriority':'high'}),_0x4a048f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x136b15,_0x26f034,_0x1666b2)=>{_0x1666b2['options']['showSuggestionHighlights']&&_0x136b15['stop']();},{'priority':'high'});}}class gt extends _0xeaacfa{['afterInit'](){const _0x3b3974=this['editor'];_0x3b3974['plugins']['has']('MentionEditing')&&_0x3b3974['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0xeaacfa{['afterInit'](){const _0xba6e34=this['editor'],_0x5677ad=_0xba6e34['plugins']['get']('TrackChangesEditing');_0xba6e34['plugins']['has']('MultiLevelList')&&(_0x5677ad['enableDefaultAttributesIntegration']('multiLevelList'),_0x5677ad['registerBlockAttribute']('listMarkerStyle'),_0x5677ad['descriptionFactory']['registerDescriptionCallback'](_0x5f0013=>this['handleDescriptions'](_0x5f0013)));}['handleDescriptions'](_0x1a2d88){const _0x128a50=this['editor']['locale'],{data:_0x3df3d8}=_0x1a2d88,_0x4c9bb6={'type':'format','content':''};if(_0x3df3d8&&'listMarkerStyle'==_0x3df3d8['key']){if(!_0x3df3d8['oldValue'])return{'type':'format','content':o(_0x128a50,'*Set\x20format:*\x20%0',o(_0x128a50,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3df3d8['newValue']+')'};if(!_0x3df3d8['newValue']){let _0x1104a9=_0x1a2d88['head'];for(;_0x1104a9;){if(_0x1104a9['data']&&'listType'==_0x1104a9['data']['key']&&_0x1104a9['data']['newValue'])return _0x4c9bb6;_0x1104a9=_0x1104a9['next'];}return{'type':'format','content':o(_0x128a50,'*Remove\x20format:*\x20%0',o(_0x128a50,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3df3d8['oldValue']+')'};}}}}class mt extends _0xeaacfa{['afterInit'](){const _0x3535a9=this['editor'];if(!_0x3535a9['plugins']['has']('PageBreakEditing'))return;_0x3535a9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x515e1d=_0x3535a9['plugins']['get']('TrackChangesEditing'),_0x325bc4=_0x3535a9['locale'];_0x515e1d['descriptionFactory']['registerElementLabel']('pageBreak',_0x1f034e=>o(_0x325bc4,'ELEMENT_PAGE_BREAK',_0x1f034e));}}class dt extends _0xeaacfa{['afterInit'](){const _0x3adc2c=this['editor'];if(!_0x3adc2c['plugins']['has']('Paragraph'))return;const _0x3bb7a4=_0x3adc2c['locale'],_0x4dcdaf=_0x3adc2c['plugins']['get']('TrackChangesEditing');_0x4dcdaf['descriptionFactory']['registerElementLabel']('paragraph',_0x104448=>o(_0x3bb7a4,'ELEMENT_PARAGRAPH',_0x104448)),_0x4dcdaf['enableDefaultAttributesIntegration']('paragraph'),_0x4dcdaf['enableCommand']('insertParagraph'),_0x3adc2c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3adc2c),{'priority':'highest'}),_0x3adc2c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xc74481,_0x53a5e0,_0x547d51)=>{_0x547d51['options']['showSuggestionHighlights']&&nr(_0x3adc2c,{'showActiveMarker':!0x1})(_0xc74481,_0x53a5e0,_0x547d51);},{'priority':'highest'});const _0xf9fdd0=_0x4dcdaf['descriptionFactory'];_0xf9fdd0['registerDescriptionCallback'](_0x7bf613=>{if('insertion'!==_0x7bf613['type'])return;const {start:_0x533019,end:_0x15983c}=_0x7bf613['getFirstRange']();if(!_0x533019['isTouching'](_0x15983c)||!_0x533019['nodeAfter'])return;const _0x1e836e=_0x3adc2c['model']['schema'],_0x48b710=_0x533019['nodeAfter'];return _0x1e836e['isBlock'](_0x48b710)&&!_0x1e836e['isLimit'](_0x48b710)&&_0x1e836e['checkChild'](_0x48b710,'$text')?{'type':'insertion','content':o(_0x3bb7a4,'*Insert:*\x20%0',_0xf9fdd0['getItemLabel'](_0x48b710,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41303f=this['editor'],_0x172edd=_0x41303f['locale'];_0x41303f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8df5ce=>{if('formatBlock'!=_0x8df5ce['type'])return;const {data:_0x32b74b}=_0x8df5ce;return _0x32b74b&&'paragraph'==_0x32b74b['commandName']?{'type':'format','content':o(_0x172edd,'*Change\x20to:*\x20%0',o(_0x172edd,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x16d079,{showActiveMarker:_0x44f0af=!0x0}={}){return(_0x253566,_0x2d3656,_0x552b28)=>{const _0x50e441=_0x16d079['plugins']['get']('TrackChangesEditing'),_0x5e1dac=_0x2d3656['markerRange']['start'],_0x5bf57d=_0x2d3656['markerRange']['end'],_0x5d7209=_0x16d079['model']['schema'];if(!_0x5e1dac['isTouching'](_0x5bf57d)||!_0x5e1dac['nodeAfter'])return;const _0x566123=_0x5e1dac['nodeAfter'];if(_0x5d7209['isBlock'](_0x566123)&&!_0x5d7209['isLimit'](_0x566123)&&_0x5d7209['checkChild'](_0x566123,'$text')){if(!_0x552b28['consumable']['consume'](_0x2d3656['markerRange'],_0x253566['name']))return;const _0x36703a=_0x552b28['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x464b4e=_0x552b28['mapper']['toViewPosition'](_0x5bf57d);_0x44f0af&&_0x50e441['activeMarkers']['includes'](_0x2d3656['markerName'])&&_0x552b28['writer']['addClass']('ck-suggestion-marker--active',_0x36703a),_0x552b28['writer']['insert'](_0x464b4e,_0x36703a),_0x552b28['mapper']['bindElementToMarker'](_0x36703a,_0x2d3656['markerName']);}};}class pt extends _0xeaacfa{['afterInit'](){const _0x5a04d6=this['editor'];if(!_0x5a04d6['plugins']['has']('RemoveFormatEditing'))return;_0x5a04d6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x63b8f7=this['editor'];_0x63b8f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a13a6=>{if('formatBlock'!=_0x2a13a6['type']&&'formatInline'!=_0x2a13a6['type'])return;const {data:_0x6d12df}=_0x2a13a6;return _0x6d12df&&'removeFormat'==_0x6d12df['commandName']?{'type':'format','content':o(_0x63b8f7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0xeaacfa{['afterInit'](){const _0x5cc89a=this['editor'];if(!_0x5cc89a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5e67a2=_0x5cc89a['plugins']['get']('TrackChangesEditing');_0x5e67a2['enableCommand']('goToPreviousRestrictedEditingException'),_0x5e67a2['enableCommand']('goToNextRestrictedEditingException');const _0x46ab92=_0x5cc89a['plugins']['get']('RestrictedEditingModeEditing');_0x46ab92['enableCommand']('trackChanges'),_0x46ab92['enableCommand']('acceptSuggestion'),_0x46ab92['enableCommand']('discardSuggestion'),_0x46ab92['enableCommand']('acceptAllSuggestions'),_0x46ab92['enableCommand']('discardAllSuggestions'),_0x46ab92['enableCommand']('acceptSelectedSuggestions'),_0x46ab92['enableCommand']('discardSelectedSuggestions');}}class bt extends _0xeaacfa{static get['requires'](){return[_0x4aa5ce];}['init'](){const _0x1e4667=this['editor'],_0x22d8d0=_0x1e4667['plugins']['get']('TrackChangesEditing');_0x22d8d0['enableCommand']('shiftEnter'),_0x1e4667['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x1e4667),{'priority':'high'}),_0x1e4667['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x1e4667),{'priority':'high'}),_0x1e4667['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x301839,_0x5c1a3e,_0x487b64)=>{_0x487b64['options']['showSuggestionHighlights']&&de(_0x1e4667,{'showActiveMarker':!0x1})(_0x301839,_0x5c1a3e,_0x487b64);}),_0x22d8d0['descriptionFactory']['registerElementLabel']('softBreak',_0x34609b=>o(_0x1e4667['locale'],'ELEMENT_LINE_BREAK',_0x34609b));}}function de(_0x3bfab4,{showActiveMarker:_0x599c3b=!0x0}={}){return(_0x2d245c,_0x187f00,_0x45a6e3)=>{const _0x5052c7=_0x3bfab4['plugins']['get']('TrackChangesEditing');if(!_0x45a6e3['consumable']['test'](_0x187f00['markerRange'],_0x2d245c['name']))return;const _0x499429=_0x3bfab4['model'];for(const _0x45271f of _0x187f00['markerRange']['getItems']()){if(!_0x45271f['is']('element','softBreak'))continue;const _0x36009a='deletion'==_0x187f00['markerName']['split'](':')[0x1]?'merge':'split',_0x595434=_0x45a6e3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x36009a}),_0xadda37=_0x45a6e3['mapper']['toViewPosition'](_0x499429['createPositionBefore'](_0x45271f));_0x599c3b&&_0x5052c7['activeMarkers']['includes'](_0x187f00['markerName'])&&_0x45a6e3['writer']['addClass']('ck-suggestion-marker--active',_0x595434),_0x45a6e3['writer']['insert'](_0xadda37,_0x595434),_0x45a6e3['mapper']['bindElementToMarker'](_0x595434,_0x187f00['markerName']);}};}class wt extends _0xeaacfa{['afterInit'](){const _0x4ba540=this['editor'],_0x552a30=_0x4ba540['model'],_0x5b706d=_0x4ba540['locale'];if(!_0x4ba540['plugins']['has']('StandardEditingModeEditing'))return;const _0x1cd9f7=_0x4ba540['plugins']['get']('TrackChangesEditing'),_0x24b427='restrictedEditingException',_0x2c624d=_0x4ba540['commands']['get'](_0x24b427);_0x1cd9f7['enableCommand'](_0x24b427,(_0x329c77,_0x37c282={})=>{const _0xd29d37=_0x552a30['document']['selection'];if(_0xd29d37['isCollapsed'])return void _0x329c77(_0x37c282);const _0x2729a0=void 0x0!==_0x37c282['forceValue']?_0x37c282['forceValue']:!_0x2c624d['value'];_0x552a30['change'](()=>{const _0xb4e00d=Array['from'](_0xd29d37['getRanges']());for(const _0x5632c9 of _0xb4e00d){const _0x4e5410=_0x2729a0?[_0x5632c9]:io(_0x24b427,_0x5632c9,_0x552a30);for(const _0x16c33b of _0x4e5410)_0x1cd9f7['markInlineFormat'](_0x16c33b,{'commandName':_0x24b427,'commandParams':[{'forceValue':_0x2729a0}]});}});}),_0x1cd9f7['descriptionFactory']['registerDescriptionCallback'](_0xe4d48c=>{if('formatBlock'!=_0xe4d48c['type']&&'formatInline'!=_0xe4d48c['type'])return;const {data:_0x5272f2}=_0xe4d48c;return _0x5272f2&&_0x5272f2['commandName']==_0x24b427?_0x5272f2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b706d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5b706d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0xeaacfa{['afterInit'](){const _0x5aebf3=this['editor'];if(!_0x5aebf3['plugins']['has']('Style')||!_0x5aebf3['plugins']['has']('DataSchema'))return;const _0x4ce84b=_0x5aebf3['plugins']['get']('TrackChangesEditing'),_0x329ddf=_0x5aebf3['locale'],_0x38b2af=_0x5aebf3['config']['get']('style')||{},_0x52eaf5=_0x5aebf3['plugins']['get']('GeneralHtmlSupport'),_0x37866c=_0x5aebf3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5aebf3['plugins']['get']('DataSchema'),_0x38b2af['definitions']);_0x4ce84b['enableDefaultAttributesIntegration']('style');const _0x39c354=new Set();for(const _0x393916 of _0x37866c['block']){const _0x92c94c=_0x52eaf5['getGhsAttributeNameForElement'](_0x393916['element']);_0x39c354['add'](_0x92c94c);}const _0x3c5516=new Set();for(const _0x9bb9e6 of _0x37866c['inline']){const _0xc1360a=_0x52eaf5['getGhsAttributeNameForElement'](_0x9bb9e6['element']);_0x3c5516['add'](_0xc1360a);for(const _0x48af4a of _0x9bb9e6['ghsAttributes'])_0x3c5516['add'](_0x48af4a);}for(const _0x3944ff of _0x39c354)_0x4ce84b['registerBlockAttribute'](_0x3944ff),_0x4ce84b['descriptionFactory']['registerAttributeLabel'](_0x3944ff,o(_0x329ddf,'FORMAT_STYLE'));for(const _0x372c7a of _0x3c5516)_0x4ce84b['registerInlineAttribute'](_0x372c7a),_0x4ce84b['descriptionFactory']['registerAttributeLabel'](_0x372c7a,o(_0x329ddf,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4178f5=this['editor'],_0x441e11=_0x4178f5['locale'];_0x4178f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10d794=>{if('formatBlock'!=_0x10d794['type']&&'formatInline'!=_0x10d794['type'])return;const {data:_0x2ac4ee}=_0x10d794;return _0x2ac4ee&&'style'===_0x2ac4ee['commandName']?_0x2ac4ee['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x441e11,'*Set\x20format:*\x20%0',_0x2ac4ee['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x441e11,'*Remove\x20format:*\x20%0',_0x2ac4ee['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0xeaacfa{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4b2841){super(_0x4b2841),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x357e23=this['editor'],_0x1c39c9=_0x357e23['model']['document']['selection'];if(!_0x357e23['plugins']['has']('TableEditing'))return;const _0x5e19a8=_0x357e23['locale'],_0xfc0040=_0x357e23['plugins']['get']('TrackChangesEditing'),_0x395845=_0x357e23['plugins']['get']('TableUtils');_0xfc0040['descriptionFactory']['registerElementLabel']('table',_0x20c9ea=>o(_0x5e19a8,'ELEMENT_TABLE',_0x20c9ea)),this['_setupColumnsRowsFixing'](),_0xfc0040['enableCommand']('insertTable'),_0xfc0040['enableCommand']('selectTableRow'),_0xfc0040['enableCommand']('selectTableColumn');for(const _0x53bfda of['insertTableRowAbove','insertTableRowBelow']){const _0x133578=_0x357e23['commands']['get'](_0x53bfda);_0xfc0040['enableCommand'](_0x53bfda,_0xa40b81=>{_0x357e23['model']['change'](_0x58eefd=>{_0xa40b81();const _0x451bf8='above'===_0x133578['order'],_0x56deb1=_0x395845['getSelectionAffectedTableCells'](_0x1c39c9),_0x20ef7d=_0x395845['getRowIndexes'](_0x56deb1),_0x16b37f=_0x451bf8?_0x20ef7d['first']-0x1:_0x20ef7d['last']+0x1,_0x9d3ab0=_0x56deb1[0x0]['findAncestor']('table'),_0x4bc386=_0x395845['createTableWalker'](_0x9d3ab0,{'startRow':_0x16b37f,'endRow':_0x16b37f}),_0x2e7562=Array['from'](_0x4bc386)['map'](_0x56bba4=>_0x58eefd['createRangeOn'](_0x56bba4['cell']));_0xfc0040['markMultiRangeInsertion'](_0x2e7562,'tableRow');});});}for(const _0x348372 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2092ac=_0x357e23['commands']['get'](_0x348372);_0xfc0040['enableCommand'](_0x348372,_0x120979=>{_0x357e23['model']['change'](_0x16df71=>{_0x120979();const _0x53a687='left'===_0x2092ac['order'],_0x467822=_0x395845['getSelectionAffectedTableCells'](_0x1c39c9),_0x4cd4f7=_0x395845['getColumnIndexes'](_0x467822),_0xc5b944=_0x53a687?_0x4cd4f7['first']-0x1:_0x4cd4f7['last']+0x1,_0x464ff0=_0x467822[0x0]['findAncestor']('table'),_0x3a5366=_0x395845['createTableWalker'](_0x464ff0,{'startRow':0x0,'column':_0xc5b944,'includeAllSlots':!0x1}),_0x2acbd8=Array['from'](_0x3a5366)['map'](_0xe10630=>_0x16df71['createRangeOn'](_0xe10630['cell']));_0xfc0040['markMultiRangeInsertion'](_0x2acbd8,'tableColumn');});});}for(const _0x13e01c of['removeTableRow','removeTableColumn']){const _0x43de16=_0x13e01c['substr'](0xb),_0x12ef2f=_0x43de16['toLowerCase'](),_0x3ca6fb=_0x12ef2f['substr'](0x0,0x3)+'span',_0x274733='table'+_0x43de16,_0x483853='min'+_0x43de16,_0x6c2b4e='max'+_0x43de16;_0xfc0040['enableCommand'](_0x13e01c,()=>{_0x357e23['model']['change'](_0x4c6d8a=>{const _0x2ee42c=_0x395845['getSelectionAffectedTableCells'](_0x1c39c9),_0xa59376=_0x2ee42c[0x0]['findAncestor']('table');let _0x58d95e;if('removeTableRow'==_0x13e01c){const _0x553a00=_0x395845['getRowIndexes'](_0x2ee42c);_0x58d95e={'startRow':_0x553a00['first'],'endRow':_0x553a00['last'],'includeAllSlots':!0x0};}else{const _0x34ba1e=_0x395845['getColumnIndexes'](_0x2ee42c);_0x58d95e={'startColumn':_0x34ba1e['first'],'endColumn':_0x34ba1e['last'],'includeAllSlots':!0x0};}const _0x3bc6c6=_0x395845['createTableWalker'](_0xa59376,_0x58d95e),_0x518624=Array['from'](_0x3bc6c6)['map'](({cell:_0x4aa0ad})=>_0x4aa0ad),_0x3a7bf3=Ee(_0x518624['filter'](_0x35ebb1=>_0x35ebb1['hasAttribute'](_0x3ca6fb))),_0x259323=Ee(_0x518624['filter'](_0x5d33f2=>!_0x5d33f2['hasAttribute'](_0x3ca6fb)))['map'](_0x7a4e84=>_0x4c6d8a['createRangeOn'](_0x7a4e84)),_0xf3c02=_0xfc0040['markMultiRangeDeletion'](_0x259323,_0x274733);if(_0xf3c02&&('tableRow'==_0xf3c02['subType']||'tableColumn'==_0xf3c02['subType'])){const _0x393f62=this['_getSuggestionCoords'](_0xf3c02);for(const _0x332fbb of _0x3a7bf3){const _0x519700=_0x4c6d8a['createRangeOn'](_0x332fbb),_0x54412d=_0x395845['getCellLocation'](_0x332fbb),_0x4e65bb=_0x332fbb['getAttribute'](_0x3ca6fb)-0x1,_0x45722f=_0x393f62[_0x483853],_0x57a7f7=_0x393f62[_0x6c2b4e];_0x45722f<=_0x54412d[_0x12ef2f]&&_0x54412d[_0x12ef2f]+_0x4e65bb<=_0x57a7f7&&_0xf3c02['addRange'](_0x519700);}}});});}function _0x1ac3d9(_0x2210d8){const _0x45b6df=Array['from'](_0x1c39c9['getRanges']())['map'](_0x5791ae=>_0x54c30a['fromRange'](_0x5791ae));_0x357e23['model']['change'](_0x3be6fa=>{const _0x1c452f=_0x3be6fa['batch'];_0x2210d8=_0x2210d8['filter'](_0x4a1902=>'$graveyard'!=_0x4a1902['root']['rootName']),_0x3be6fa['setSelection'](_0x2210d8),_0x357e23['commands']['get']('removeTableRow')['refresh'](),_0x357e23['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x357e23['model']['enqueueChange'](()=>{_0x357e23['model']['enqueueChange'](_0x1c452f,_0x15bd4a=>{const _0x26690f=_0x45b6df['filter'](_0x58e267=>'$graveyard'!=_0x58e267['root']['rootName']);_0x26690f['length']>0x0&&_0x15bd4a['setSelection'](_0x26690f);for(const _0x589f82 of _0x45b6df)_0x589f82['detach']();});});});}function _0x5da136(_0x34b854){_0x357e23['model']['change'](_0x555424=>{const _0x39bfe6=Array['from'](_0x1c39c9['getRanges']())['map'](_0x4dddd4=>_0x54c30a['fromRange'](_0x4dddd4)),_0x16c863=[];for(const _0x43cf04 of _0x34b854)for(const _0x2fdb61 of _0x43cf04['getItems']({'shallow':!0x0}))_0x16c863['push'](_0x2fdb61);for(const _0xa23a45 of _0x16c863)'$graveyard'!=_0xa23a45['root']['rootName']&&(_0x555424['setSelection'](_0x555424['createPositionAt'](_0xa23a45,0x0)),_0x357e23['commands']['get']('removeTableColumn')['refresh'](),_0x357e23['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x562353=_0x39bfe6['filter'](_0x517d18=>'$graveyard'!=_0x517d18['root']['rootName']);_0x562353['length']>0x0&&_0x555424['setSelection'](_0x562353);for(const _0x3e7e2c of _0x39bfe6)_0x3e7e2c['detach']();});}function _0x1e2c04(_0x375779,_0x55c086){return _0x55c086['every'](_0x22da18=>_0x375779['some'](_0x225cb9=>_0x225cb9['end']['isEqual'](_0x22da18['start'])||_0x22da18['end']['isEqual'](_0x225cb9['start'])));}function _0x12ad48(_0x2d3da5,_0x290777){return _0x2d3da5['some'](_0x219e82=>_0x290777['some'](_0x37560e=>_0x219e82['end']['isTouching'](_0x37560e['start'])));}_0x357e23['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5f108d,_0x515623,_0x5c2223)=>{if(!_0x5c2223['options']['showSuggestionHighlights'])return;const _0x38fb0f=_0x515623['item'];if(!_0x38fb0f)return;const _0x239442=_0x5c2223['mapper']['toViewElement'](_0x38fb0f);function _0xbce742(_0x18cc5e){return Array['isArray'](_0x18cc5e)?_0x18cc5e:[_0x18cc5e];}_0x239442&&'tableCell'===_0x38fb0f['name']&&_0x50a99b(_0x239442,_0x5c2223['writer'],(_0x2e65fa,_0x300bb9,_0x24d855)=>_0x24d855['addClass'](_0xbce742(_0x300bb9['classes']),_0x2e65fa),(_0xb3f2bc,_0x147916,_0x42fd03)=>_0x42fd03['removeClass'](_0xbce742(_0x147916['classes']),_0xb3f2bc));},{'priority':'highest'}),_0xfc0040['descriptionFactory']['registerDescriptionCallback'](_0xa36bf6=>{if('insertion'!=_0xa36bf6['type']&&'deletion'!=_0xa36bf6['type'])return;const _0x490067=_0xa36bf6['getContainedElement']();if(null!=_0x490067&&_0x490067['is']('element','table')){if('insertion'==_0xa36bf6['type']){const _0x2d14ef=_0xa36bf6['getItems']()['filter'](_0x2d0299=>_0x2d0299['is']('$textProxy'))['map'](_0x2e8b2d=>_0x2e8b2d['data']);if(_0x2d14ef['length'])return{'type':'insertion','content':o(_0x5e19a8,'*Insert:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d14ef['join']('\x20')+'\x22'))};}if('deletion'==_0xa36bf6['type']){const _0x5a53ee=_0xa36bf6['getItems']()['filter'](_0x23ed31=>_0x23ed31['is']('$textProxy'))['map'](_0x248c51=>_0x248c51['data']);if(_0x5a53ee['length'])return{'type':'deletion','content':o(_0x5e19a8,'*Remove:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a53ee['join']('\x20')+'\x22'))};}}}),_0xfc0040['descriptionFactory']['registerDescriptionCallback'](_0x14de91=>{if('tableRow'==_0x14de91['subType']){const _0x389859=_0x14de91['getItems']()['filter'](_0x39acf2=>_0x39acf2['is']('$textProxy'))['map'](_0x247c3b=>_0x247c3b['data']),_0x3de77b=this['_getSuggestionCoords'](_0x14de91),_0x236346=_0x3de77b['maxRow']-_0x3de77b['minRow']+0x1;if('insertion'==_0x14de91['type'])return _0x389859['length']?{'type':'insertion','content':o(_0x5e19a8,'*Insert:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x236346,'\x22'+_0x389859['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5e19a8,'*Insert:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_ROW',_0x236346))};if('deletion'==_0x14de91['type'])return _0x389859['length']?{'type':'deletion','content':o(_0x5e19a8,'*Remove:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x236346,'\x22'+_0x389859['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5e19a8,'*Remove:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_ROW',_0x236346))};}if('tableColumn'==_0x14de91['subType']){const _0x3aea3e=_0x14de91['getItems']()['filter'](_0x24691c=>_0x24691c['is']('$textProxy'))['map'](_0xe84f30=>_0xe84f30['data']),_0x221221=this['_getSuggestionCoords'](_0x14de91),_0x26d0f0=_0x221221['maxColumn']-_0x221221['minColumn']+0x1;if('insertion'==_0x14de91['type'])return _0x3aea3e['length']?{'type':'insertion','content':o(_0x5e19a8,'*Insert:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x26d0f0,'\x22'+_0x3aea3e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5e19a8,'*Insert:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_COLUMN',_0x26d0f0))};if('deletion'==_0x14de91['type'])return _0x3aea3e['length']?{'type':'deletion','content':o(_0x5e19a8,'*Remove:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x26d0f0,'\x22'+_0x3aea3e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5e19a8,'*Remove:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_COLUMN',_0x26d0f0))};}}),_0xfc0040['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1ac3d9),_0xfc0040['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1ac3d9),_0xfc0040['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5da136),_0xfc0040['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5da136),_0xfc0040['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1e2c04),_0xfc0040['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1e2c04),_0xfc0040['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x12ad48),_0xfc0040['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x12ad48);}['_acceptFormatSuggestionCallbackFactory'](){const _0x236231=this['editor'],_0x2098c0=_0x236231['model']['document']['selection'];return(_0xc4c948,_0x2d812c)=>{_0x236231['model']['change'](_0x31fcd0=>{const {commandName:_0xcc845a,commandParams:_0x3b670a}=_0x2d812c;let _0x4495cd=_0xc4c948[0x0]['end']['nodeBefore'];_0x3b670a&&_0x3b670a[0x0]&&!0x1===_0x3b670a[0x0]['forceValue']&&(_0x4495cd=_0xc4c948[0x0]['start']['nodeAfter']);const _0x53db98=_0x31fcd0['createRangeIn'](_0x4495cd);if('$graveyard'==_0x53db98['root']['rootName'])return;const _0x5db7ff=Array['from'](_0x2098c0['getRanges']())['map'](_0x2c492f=>_0x54c30a['fromRange'](_0x2c492f));_0x31fcd0['setSelection'](_0x53db98),_0x236231['commands']['get'](_0xcc845a)['refresh'](),_0x3b670a['push']({'forceDefaultExecution':!0x0}),_0x236231['execute'](_0xcc845a,..._0x3b670a);const _0x360fe1=_0x5db7ff['filter'](_0x3730c2=>'$graveyard'!=_0x3730c2['root']['rootName']);_0x360fe1['length']>0x0&&_0x31fcd0['setSelection'](_0x360fe1);for(const _0x37d37e of _0x5db7ff)_0x37d37e['detach']();});};}['_getCoordsForCells'](_0x350905){const _0x14cc0f=this['editor']['plugins']['get']('TableUtils');let _0x37d4c5=Number['MAX_SAFE_INTEGER'],_0x36f7ed=Number['MIN_SAFE_INTEGER'],_0x4829d3=Number['MAX_SAFE_INTEGER'],_0xf53075=Number['MIN_SAFE_INTEGER'];for(const _0x64f978 of _0x350905){if('$graveyard'==_0x64f978['root']['rootName'])continue;const {row:_0x276471,column:_0x10c6d8}=_0x14cc0f['getCellLocation'](_0x64f978),_0x3b3581=_0x64f978['hasAttribute']('rowspan')?_0x64f978['getAttribute']('rowspan')-0x1:0x0,_0x32d49b=_0x64f978['hasAttribute']('colspan')?_0x64f978['getAttribute']('colspan')-0x1:0x0;_0x37d4c5=_0x276471<_0x37d4c5?_0x276471:_0x37d4c5,_0x36f7ed=_0x276471+_0x3b3581>_0x36f7ed?_0x276471+_0x3b3581:_0x36f7ed,_0x4829d3=_0x10c6d8<_0x4829d3?_0x10c6d8:_0x4829d3,_0xf53075=_0x10c6d8+_0x32d49b>_0xf53075?_0x10c6d8+_0x32d49b:_0xf53075;}return{'minRow':_0x37d4c5,'maxRow':_0x36f7ed,'minColumn':_0x4829d3,'maxColumn':_0xf53075};}['_setupColumnsRowsFixing'](){const _0x3bdfde=this['editor'],_0x504773=_0x3bdfde['plugins']['get']('TrackChangesEditing'),_0x1bdbba=_0x3bdfde['plugins']['get']('TableUtils');_0x3bdfde['model']['document']['on']('change:data',()=>{const _0x18609f=Array['from'](_0x3bdfde['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3a9a28,data:_0x581539}of _0x18609f){const {group:_0x71774e,id:_0x50b5aa,subType:_0x137009}=_0x504773['_splitMarkerName'](_0x3a9a28);if('suggestion'!=_0x71774e)continue;if(null!=_0x581539['oldRange'])continue;const _0x134baa=_0x504773['getSuggestion'](_0x50b5aa);this['_tablePostFixingSubtypes']['includes'](_0x137009)&&this['_tableSuggestions']['add'](_0x134baa);}},{'priority':'low'});const _0xdbcfed=(_0x4db2a9,_0x5eeaa5)=>{let _0x3a4509=!0x1;const _0x10ce6a=_0x5eeaa5['createRangeOn'](_0x4db2a9),_0xc96232=_0x4db2a9['findAncestor']('table'),_0x404959=_0x1bdbba['getCellLocation'](_0x4db2a9);for(const _0x1e8efc of this['_tableSuggestions']){const _0x383ebe=_0x1e8efc['subType'],_0x32f024=_0x383ebe['startsWith']('tablePaste'),_0x509f74=_0x383ebe['substr'](_0x32f024?0xa:0x5),_0x5ee3c4=_0x509f74['toLowerCase'](),_0x141282=_0x5ee3c4['substr'](0x0,0x3)+'span',_0x1b9a29='min'+_0x509f74,_0x4d4b31='max'+_0x509f74;if(!_0x1e8efc['isInContent'])continue;if(_0xc96232!=_0x1e8efc['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1e8efc['isIntersectingWithRange'](_0x10ce6a))continue;const _0x459e85=_0x4db2a9['hasAttribute'](_0x141282)?_0x4db2a9['getAttribute'](_0x141282)-0x1:0x0,_0x20544f=this['_getSuggestionCoords'](_0x1e8efc),_0x7fb634=_0x20544f[_0x1b9a29],_0x247777=_0x20544f[_0x4d4b31];_0x7fb634<=_0x404959[_0x5ee3c4]&&_0x404959[_0x5ee3c4]+_0x459e85<=_0x247777&&(_0x1e8efc['addRange'](_0x10ce6a),_0x3a4509=!0x0);}return _0x3a4509;};_0x3bdfde['model']['document']['registerPostFixer'](_0x3384f0=>{let _0x14a312=!0x1;for(const _0x1f30c5 of _0x3bdfde['model']['document']['differ']['getChanges']())if('insert'==_0x1f30c5['type']){if('tableRow'==_0x1f30c5['name']){for(const _0x55942b of _0x1f30c5['position']['nodeAfter']['getChildren']())_0x14a312=_0x14a312||_0xdbcfed(_0x55942b,_0x3384f0);}else'tableCell'==_0x1f30c5['name']&&(_0x14a312=_0x14a312||_0xdbcfed(_0x1f30c5['position']['nodeAfter'],_0x3384f0));}return _0x14a312;});}['_getSuggestionCoords'](_0x3bafbf){return this['_getCoordsForCells'](_0x3bafbf['getRanges']()['map'](_0x37acb5=>_0x37acb5['start']['nodeAfter']));}}function Ee(_0x327738){return Array['from'](new Set(_0x327738)['values']());}class St extends _0xeaacfa{static get['requires'](){return[jt];}['afterInit'](){const _0x4451b5=this['editor'],_0xa8f89f=_0x4451b5['model']['document']['selection'],_0x39d395=_0x4451b5['locale'];if(!_0x4451b5['plugins']['has']('TableEditing'))return;const _0x1211ca=_0x4451b5['plugins']['get']('TrackChangesEditing'),_0x513826=_0x4451b5['plugins']['get']('TableUtils'),_0x22a6f9=_0x4451b5['plugins']['get'](jt);_0x22a6f9['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1211ca['enableCommand']('mergeTableCells',()=>{const _0x1f2c16=_0x513826['getSelectionAffectedTableCells'](_0x4451b5['model']['document']['selection']);_0x4451b5['model']['change'](()=>{_0x1211ca['markMultiRangeBlockFormat'](_0x1f2c16,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4451b5['commands']['get']('mergeTableCells')['on']('execute',(_0x1eb2c0,_0x1065d4)=>{_0x4451b5['commands']['get']('trackChanges')['value']&&(_0x1065d4['length']>0x0&&_0x1065d4[_0x1065d4['length']-0x1]&&_0x1065d4[_0x1065d4['length']-0x1]['forceDefaultExecution']||_0x1211ca['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1eb2c0['stop']());},{'priority':'highest'});for(const _0x27c0e3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xad7192=_0x4451b5['commands']['get'](_0x27c0e3);_0x1211ca['enableCommand'](_0x27c0e3,()=>{const _0x27e8ae=_0x4451b5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xf7ccd3=>_0xf7ccd3['is']('element','tableCell')),_0x46f4bc=_0xad7192['value'];_0x4451b5['model']['change'](()=>{_0x1211ca['markMultiRangeBlockFormat']([_0x27e8ae,_0x46f4bc],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1d0dcf of['splitTableCellVertically','splitTableCellHorizontally']){const _0x553d5d=_0x4451b5['commands']['get'](_0x1d0dcf);_0x1211ca['enableCommand'](_0x1d0dcf,()=>{const _0x193671=_0x513826['getSelectionAffectedTableCells'](_0x4451b5['model']['document']['selection'])[0x0],_0x58e763=_0x193671['findAncestor']('table'),{column:_0x3dc3ce,row:_0x4f98f1}=_0x513826['getCellLocation'](_0x193671);let _0x335b0e=[];if('horizontally'==_0x553d5d['direction']){const _0x5eeabf=_0x513826['createTableWalker'](_0x58e763,{'startRow':_0x4f98f1,'endRow':_0x4f98f1,'includeAllSlots':!0x0});_0x335b0e=Array['from'](_0x5eeabf)['map'](_0x39f571=>_0x39f571['cell']);}else{const _0x300d9c=_0x513826['createTableWalker'](_0x58e763,{'column':_0x3dc3ce,'includeAllSlots':!0x0});_0x335b0e=Array['from'](_0x300d9c)['map'](_0x431389=>_0x431389['cell']);}_0x4451b5['model']['change'](_0x2d3507=>{_0x1211ca['markBlockFormat'](_0x2d3507['createRangeOn'](_0x193671),{'commandName':_0x1d0dcf,'commandParams':[]},_0x335b0e,_0x1d0dcf);});});}_0x1211ca['descriptionFactory']['registerDescriptionCallback'](_0x4ccd14=>{if('formatBlock'!=_0x4ccd14['type']&&'formatInline'!=_0x4ccd14['type'])return;const {data:_0x5589f5}=_0x4ccd14;return _0x5589f5&&'mergeTableCells'==_0x5589f5['commandName']?{'type':'format','content':o(_0x39d395,'*Merge\x20cells*')}:void 0x0;}),_0x1211ca['descriptionFactory']['registerDescriptionCallback'](_0x540eb4=>{if('formatBlock'!=_0x540eb4['type']&&'formatInline'!=_0x540eb4['type'])return;const {data:_0xf331f0}=_0x540eb4;return _0xf331f0?'splitTableCellVertically'==_0xf331f0['commandName']?{'type':'format','content':o(_0x39d395,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xf331f0['commandName']?{'type':'format','content':o(_0x39d395,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x419109=_0x22a6f9['_acceptFormatSuggestionCallbackFactory']();for(const _0x424459 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1211ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x424459,'accept',_0x419109);for(const _0x38dcc6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1211ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x38dcc6,'accept',_0x419109);_0x1211ca['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1dfd55=>{_0x4451b5['model']['change'](_0x51b854=>{const _0x17ebee=Array['from'](_0xa8f89f['getRanges']())['map'](_0x5a7513=>_0x54c30a['fromRange'](_0x5a7513));_0x51b854['setSelection'](_0x1dfd55),_0x4451b5['commands']['get']('mergeTableCells')['refresh'](),_0x4451b5['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x199a17=_0x17ebee['filter'](_0x5ca504=>'$graveyard'!=_0x5ca504['root']['rootName']);_0x199a17['length']>0x0&&_0x51b854['setSelection'](_0x199a17);for(const _0x224ed6 of _0x17ebee)_0x224ed6['detach']();});});for(const _0x50b39 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x165b97=_0x4451b5['commands']['get'](_0x50b39);_0x165b97['on']('set:isEnabled',(_0xa9b421,_0x8f0429,_0x3f7cad)=>{if(_0x3f7cad){const _0x59988f=_0x4451b5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x588486=>_0x588486['is']('element','tableCell'));this['_areMergableCells'](_0x165b97['value'],_0x59988f)||(_0xa9b421['return']=!0x1,_0xa9b421['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2b3f5a=this['editor']['commands']['get']('mergeTableCells'),_0x292afb=this['editor']['plugins']['get']('TableUtils');if(!_0x2b3f5a['isEnabled'])return!0x1;const _0x279580=_0x292afb['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1eaef9 of _0x279580)for(const _0x1ea32e of _0x279580)if(_0x1eaef9!=_0x1ea32e&&!this['_areMergableCells'](_0x1eaef9,_0x1ea32e))return!0x1;return!0x0;}['_areMergableCells'](_0x55b65f,_0x4a4942){const _0x333dd2=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa6037b=this['editor']['model']['createRangeOn'](_0x55b65f),_0x2813d4=this['editor']['model']['createRangeOn'](_0x4a4942),_0x27a816=new Set(),_0x2694cb=new Set();for(const _0x576ffb of _0x333dd2['getSuggestions']())if(('insertion'==_0x576ffb['type']||'deletion'==_0x576ffb['type']||'mergeTableCells'==_0x576ffb['subType'])&&_0x576ffb['isInContent']){for(const _0x85ccb4 of _0x576ffb['getRanges']())_0x85ccb4['containsRange'](_0xa6037b,!0x0)&&_0x27a816['add'](_0x576ffb['type']+':'+_0x576ffb['author']['id']),_0x85ccb4['containsRange'](_0x2813d4,!0x0)&&_0x2694cb['add'](_0x576ffb['type']+':'+_0x576ffb['author']['id']);}if(_0x27a816['size']!=_0x2694cb['size'])return!0x1;for(const _0x4a71b8 of _0x27a816)if(!_0x2694cb['has'](_0x4a71b8))return!0x1;return!0x0;}}class At extends _0xeaacfa{static get['requires'](){return[jt];}['afterInit'](){const _0x218bed=this['editor'];if(!_0x218bed['plugins']['has']('TableEditing'))return;const _0x4f6a0f=_0x218bed['locale'],_0x20a036=_0x218bed['plugins']['get']('TrackChangesEditing');_0x20a036['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x20a036['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x20a036['registerBlockAttribute']('headingRows'),_0x20a036['registerBlockAttribute']('headingColumns'),_0x20a036['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4f6a0f,'FORMAT_HEADER_ROW')),_0x20a036['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4f6a0f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x13094f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58d172=this['editor']['plugins']['get']('TableUtils'),_0x1a3687=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3547e5({showActiveMarker:_0x3f13e0=!0x0,setDataAttribute:_0x4e5625=!0x0}={}){return(_0x19eee4,_0x4e9e28,_0x5dba64)=>{const {type:_0x5de45b,id:_0x453b11}=_0x13094f['_splitMarkerName'](_0x4e9e28['markerName']),_0x33b3c9=_0x13094f['getSuggestion'](_0x453b11),_0x52e3d1=_0x33b3c9['data'];if('formatBlock'!=_0x33b3c9['type']||!_0x52e3d1||'setTableColumnHeader'!=_0x52e3d1['commandName'])return;if(_0x4e9e28['item'])return void _0x19eee4['stop']();if(!_0x5dba64['consumable']['consume'](_0x4e9e28['markerRange'],_0x19eee4['name']))return;const _0x502585=_0x4e9e28['markerRange']['start']['nodeAfter'],_0x2c8306=_0x4e9e28['markerRange']['end']['nodeBefore'],_0xfbdb6a=_0x502585['parent']['parent'],{column:_0x257009}=_0x58d172['getCellLocation'](_0x502585),{column:_0x50f278}=_0x58d172['getCellLocation'](_0x2c8306);for(let _0x178c63=_0x257009;_0x178c63<=_0x50f278;_0x178c63++){const _0x2c95ef=_0x58d172['createTableWalker'](_0xfbdb6a,{'column':_0x178c63,'includeAllSlots':!0x1});for(const _0x248593 of _0x2c95ef){const _0x291de1=_0x248593['cell'],_0x3991c5=_0x5dba64['mapper']['toViewElement'](_0x291de1);_0x5dba64['writer']['addClass']('ck-suggestion-marker-'+_0x5de45b,_0x3991c5),_0x4e5625&&_0x5dba64['writer']['setAttribute']('data-suggestion',_0x453b11,_0x3991c5),_0x5dba64['mapper']['bindElementToMarker'](_0x3991c5,_0x4e9e28['markerName']),_0x3f13e0&&(_0x13094f['activeMarkers']['includes'](_0x4e9e28['markerName'])?_0x5dba64['writer']['addClass']('ck-suggestion-marker--active',_0x3991c5):_0x5dba64['writer']['removeClass']('ck-suggestion-marker--active',_0x3991c5));}}};}_0x13094f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1a3687),_0x13094f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1a3687),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3547e5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x38364b,_0x1262fe,_0x2a87d6)=>{_0x2a87d6['options']['showSuggestionHighlights']&&_0x3547e5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x38364b,_0x1262fe,_0x2a87d6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x30185a,_0x1a4f20,_0x3803e0)=>{const {type:_0x1a869e,id:_0x23f955}=_0x13094f['_splitMarkerName'](_0x1a4f20['markerName']),_0x3b1577=_0x13094f['getSuggestion'](_0x23f955),_0x2618c1=_0x3b1577['data'];if('formatBlock'!=_0x3b1577['type']||!_0x2618c1||'setTableColumnHeader'!=_0x2618c1['commandName'])return;const _0x322216=_0x3803e0['mapper']['markerNameToElements'](_0x1a4f20['markerName']);if(_0x322216){for(const _0x5c4fe6 of _0x322216)_0x3803e0['writer']['removeClass']('ck-suggestion-marker-'+_0x1a869e,_0x5c4fe6),_0x3803e0['writer']['removeClass']('ck-suggestion-marker--active',_0x5c4fe6),_0x3803e0['writer']['removeAttribute']('data-suggestion',_0x5c4fe6),_0x3803e0['mapper']['unbindElementFromMarkerName'](_0x5c4fe6,_0x1a4f20['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf7b11=this['editor'],_0x5601b6=_0xf7b11['locale'];function _0x4ef85e(_0x2a51fc){return{'type':'format','content':o(_0x5601b6,'*Format:*\x20%0',_0x2a51fc)};}_0xf7b11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2faf8c=>{if('formatBlock'!=_0x2faf8c['type'])return;const {data:_0x1c62f6}=_0x2faf8c;if(_0x1c62f6){if('setTableRowHeader'==_0x1c62f6['commandName']){const _0x1c8834=_0x1c62f6['commandParams'][0x0]['forceValue'];return _0x4ef85e(o(_0x5601b6,_0x1c8834?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1c62f6['commandName']){const _0x3601d3=_0x1c62f6['commandParams'][0x0]['forceValue'];return _0x4ef85e(o(_0x5601b6,_0x3601d3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x13f6a7=>[_0x13f6a7,null]));class It extends _0xeaacfa{static get['requires'](){return[jt];}['afterInit'](){const _0x165a73=this['editor'];if(!_0x165a73['plugins']['has']('TableClipboard'))return;const _0x399ddf=_0x165a73['plugins']['get']('TrackChangesEditing'),_0xf28c68=_0x165a73['plugins']['get']('TableUtils'),_0x4ca2e8=_0x165a73['plugins']['get'](jt),_0x1e2fb4=_0x165a73['plugins']['get']('TableClipboard');_0x4ca2e8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x165a73['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x165a73['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x59e39e=null;_0x165a73['model']['on']('insertContent',(_0x4be22a,_0x3d01b4)=>{const [_0x4d5a6b,_0x42e60d]=_0x3d01b4,_0x1707a0=_0x3d01b4[_0x3d01b4['length']-0x1];_0x1707a0&&_0x1707a0['forceDefaultExecution']||_0x399ddf['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2d4784,_0x221c11,_0x2234f,_0x427cfc,_0x522a49){if(_0x221c11&&!_0x221c11['is']('documentSelection'))return!0x1;const _0x952cdb=_0x522a49['getTableIfOnlyTableInContent'](_0x2d4784,_0x2234f);if(!_0x952cdb||!he(_0x952cdb,void 0x0,_0x427cfc))return!0x1;const _0x5418c2=_0x427cfc['getSelectionAffectedTableCells'](_0x2234f['document']['selection']);if(!_0x5418c2['length'])return!0x1;const _0x4f6df9=_0x5418c2[0x0]['findAncestor']('table'),_0x1a550a=_0x427cfc['getRowIndexes'](_0x5418c2),_0x5afbe1=_0x427cfc['getColumnIndexes'](_0x5418c2),_0x3de486={'startRow':_0x1a550a['first'],'endRow':_0x1a550a['last'],'startColumn':_0x5afbe1['first'],'endColumn':_0x5afbe1['last']};return 0x1==_0x5418c2['length']&&(_0x3de486['endRow']+=_0x427cfc['getRows'](_0x952cdb)-0x1,_0x3de486['endColumn']+=_0x427cfc['getColumns'](_0x952cdb)-0x1),he(_0x4f6df9,_0x3de486,_0x427cfc);}(_0x4d5a6b,_0x42e60d,_0x165a73['model'],_0xf28c68,_0x1e2fb4)&&(_0x4be22a['stop'](),_0x59e39e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x165a73['model']['change'](()=>{_0x165a73['model']['insertContent'](_0x3d01b4[0x0],_0x3d01b4[0x1],_0x3d01b4[0x2],{'forceDefaultExecution':!0x0});const _0x5d0e6d=_0x107e61(),{rowInsertionRanges:_0xc11aec,columnInsertionRanges:_0x487266,insertionRanges:_0x26db87,deletionRanges:_0x3b4add,cells:_0x388e00}=_0x59e39e;_0xc11aec['length']&&_0x399ddf['markMultiRangeInsertion'](_0xc11aec,'tablePasteRow',{'tablePasteChainId':_0x5d0e6d}),_0x487266['length']&&_0x399ddf['markMultiRangeInsertion'](_0x487266,'tablePasteColumn',{'tablePasteChainId':_0x5d0e6d}),_0x26db87['length']&&(_0x399ddf['markMultiRangeInsertion'](_0x26db87,'tablePaste',{'tablePasteChainId':_0x5d0e6d,'skipNestingCheck':!0x0}),_0x26db87['forEach'](_0x17243d=>_0x17243d['detach']?.())),_0x3b4add['length']&&(_0x399ddf['markMultiRangeDeletion'](_0x3b4add,'tablePaste',{'tablePasteChainId':_0x5d0e6d,'skipNestingCheck':!0x0}),_0x3b4add['forEach'](_0x398bfc=>_0x398bfc['detach']?.()));const _0x316fbb=_0x399ddf['markMultiRangeBlockFormat'](_0x388e00['map'](({element:_0x255d66})=>_0x255d66),{'formatGroupId':_0x107e61()},[],'tablePasteCell',{'tablePasteChainId':_0x5d0e6d});if(_0x316fbb){const _0x5c8dc5=_0x316fbb['getMarkers'](),_0x54fbaf=[];for(const {element:_0x1d0afb,attributes:_0x21c46a}of _0x388e00){if(!_0x21c46a)continue;const _0x42f9e2=_0x165a73['model']['createRangeOn'](_0x1d0afb),_0x458d23=_0x5c8dc5['find'](_0x3ae1d6=>_0x3ae1d6['getRange']()['isEqual'](_0x42f9e2));_0x458d23&&_0x54fbaf['push']([_0x458d23['name'],_0x21c46a]);}_0x54fbaf['length']&&_0x316fbb['setAttribute']('markerAttributes',Object['fromEntries'](_0x54fbaf));}_0x59e39e=null;}));},{'priority':_0x2a5a1e['high']+0xa}),_0x165a73['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5afbb5,_0x52d02d)=>{const [_0x6a4f0a,_0xfb72ac,,_0x4df531]=_0x52d02d;if(!_0x59e39e)return;_0x5afbb5['stop']();const _0x3a9b61=_0x6a4f0a['cell'],_0x22232f=_0xfb72ac,_0x44b6e1=Pe(_0x3a9b61),_0x400fee=Pe(_0x22232f);_0x5afbb5['return']=_0x3a9b61;let _0x3c4b82=null,_0x436496=null;if(_0x400fee||_0x44b6e1){if(_0x44b6e1&&!_0x400fee){_0x4df531['remove'](_0x3a9b61['getChild'](0x0));for(const _0x3f2f0 of Array['from'](_0x22232f['getChildren']()))_0x4df531['insert'](_0x3f2f0,_0x3a9b61,'end');const _0x55f90f=_0x59e39e['rowInsertionIndexes']['includes'](_0x6a4f0a['row']),_0x2b47fa=_0x59e39e['columnInsertionIndexes']['includes'](_0x6a4f0a['column']);_0x55f90f||_0x2b47fa||(_0x3c4b82=_0x54c30a['fromRange'](_0x4df531['createRangeIn'](_0x3a9b61)));}else _0x400fee&&!_0x44b6e1&&(_0x436496=_0x4df531['createRangeIn'](_0x3a9b61));}else{const _0x37cfb4=_0x4df531['createElement']('tableCellSuggestion'),_0xc6eb55=_0x4df531['createElement']('tableCellSuggestion');_0x4df531['wrap'](_0x4df531['createRangeIn'](_0x3a9b61),_0xc6eb55),_0x4df531['insert'](_0x37cfb4,_0x3a9b61,0x0);for(const _0x37817a of Array['from'](_0x22232f['getChildren']()))_0x4df531['insert'](_0x37817a,_0x37cfb4,'end');_0x3c4b82=_0x54c30a['fromRange'](_0x4df531['createRangeOn'](_0x37cfb4)),_0x436496=_0x54c30a['fromRange'](_0x4df531['createRangeOn'](_0xc6eb55));}const _0x1aa850=Array['from'](_0x22232f['getAttributes']())['filter'](([_0x4a615a])=>ge['includes'](_0x4a615a));_0x59e39e['cells']['push']({'element':_0x3a9b61,'attributes':_0x1aa850['length']?Object['fromEntries'](_0x1aa850):null}),_0x3c4b82&&_0x59e39e['insertionRanges']['push'](_0x3c4b82),_0x436496&&_0x59e39e['deletionRanges']['push'](_0x436496);},{'priority':'high'}),_0xf28c68['on']('insertColumns',(_0x14f388,_0x145513)=>{const [_0x244c4a,_0x281f74={}]=_0x145513;if(!_0x59e39e)return;const _0x813532=_0x281f74['at']||0x0,_0x5231df=_0x281f74['columns']||0x1;_0x59e39e['columnInsertionIndexes']=new Array(_0x5231df)['fill'](_0x813532)['map']((_0x4ebfd4,_0x57dfd1)=>_0x4ebfd4+_0x57dfd1);for(const {cell:_0x438c1b}of _0xf28c68['createTableWalker'](_0x244c4a,{'startColumn':_0x813532,'endColumn':_0x813532+_0x5231df-0x1}))_0x59e39e['columnInsertionRanges']['push'](_0x165a73['model']['createRangeOn'](_0x438c1b));},{'priority':'low'}),_0xf28c68['on']('insertRows',(_0x2e7094,_0x217689)=>{const [_0x4581fe,_0x1541ee={}]=_0x217689;if(!_0x59e39e)return;const _0x38bda7=_0x1541ee['at']||0x0,_0x2ca5a2=_0x1541ee['rows']||0x1;_0x59e39e['rowInsertionIndexes']=new Array(_0x2ca5a2)['fill'](_0x38bda7)['map']((_0x2bceb1,_0x4e5263)=>_0x2bceb1+_0x4e5263);for(const {cell:_0x3ee164}of _0xf28c68['createTableWalker'](_0x4581fe,{'startRow':_0x38bda7,'endRow':_0x38bda7+_0x2ca5a2-0x1}))_0x59e39e['rowInsertionRanges']['push'](_0x165a73['model']['createRangeOn'](_0x3ee164));},{'priority':'low'}),_0x399ddf['descriptionFactory']['registerDescriptionCallback'](_0x5c0b56=>{if(_0x5c0b56['subType']&&_0x5c0b56['subType']['startsWith']('tablePaste'))return _0x5c0b56['previous']?{}:{'type':'insertion','content':o(_0x165a73['locale'],'*Replace\x20table\x20cells*')};});const _0x58b2f9=()=>!0x1;for(const _0x1d31fb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x399ddf['_suggestionFactory']['registerCustomCallback']('insertion',_0x1d31fb,'join',_0x58b2f9),_0x399ddf['_suggestionFactory']['registerCustomCallback']('deletion',_0x1d31fb,'join',_0x58b2f9),_0x399ddf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1d31fb,'join',_0x58b2f9);_0x399ddf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x58b2f9),_0x399ddf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x433d57,_0x268b2e,_0x51a327)=>{const _0x35515a=_0x433d57['map'](_0x2ee79d=>_0x2ee79d['getContainedElement']())['filter'](_0x2fc3d2=>_0x2fc3d2),_0x4bd94c=new Map(_0x35515a['map'](_0x2ecb0f=>[_0x2ecb0f,null]));if(_0x59e39e){for(const {element:_0x167557,attributes:_0x5e0ad5}of _0x59e39e['cells'])_0x5e0ad5&&_0x4bd94c['set'](_0x167557,_0x5e0ad5);}else{if(_0x51a327&&_0x51a327['markerAttributes'])for(const [_0x8e1bbe,_0x43788e]of Object['entries'](_0x51a327['markerAttributes'])){const _0x14b3dc=_0x165a73['model']['markers']['get'](_0x8e1bbe),_0x2185f2=_0x14b3dc?_0x14b3dc['getRange']()['getContainedElement']():null;_0x2185f2&&_0x4bd94c['set'](_0x2185f2,_0x43788e);}}_0x165a73['model']['change'](_0x1751ce=>{for(const [_0x3f7ffe,_0x3a84cd]of _0x4bd94c)_0x1751ce['setAttributes']({...Ce,..._0x3a84cd},_0x3f7ffe);});});const _0x2bd1b8=(_0x9fd842,_0x997f8f)=>{_0x399ddf['_suggestionFactory']['registerCustomCallback'](_0x9fd842,'tablePaste',_0x997f8f,(_0xe6652d,_0x5bf7d9,_0x446b90)=>{_0x165a73['model']['change'](_0x46a4c1=>{const _0x155c00=[];for(const _0x253709 of _0xe6652d){const _0x12444c=_0x253709['start']['nodeAfter'];_0x12444c['is']('element','tableCellSuggestion')&&_0x155c00['push'](_0x12444c);}_0x399ddf['_suggestionFactory']['getSuggestionCallback'](_0x9fd842,null,_0x997f8f)(_0xe6652d,_0x5bf7d9,_0x446b90);for(const _0x4eeb08 of _0x155c00)'$graveyard'!=_0x4eeb08['root']['rootName']&&_0x46a4c1['unwrap'](_0x4eeb08);});});};_0x2bd1b8('insertion','accept'),_0x2bd1b8('insertion','discard'),_0x2bd1b8('deletion','accept'),_0x2bd1b8('deletion','discard'),_0x399ddf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x118e56=>{const _0x40c57=_0x118e56['map'](_0x154fa7=>_0x154fa7['getContainedElement']()),_0x56f0d1=_0x40c57[0x0]['findAncestor']('table'),{minRow:_0x56a8eb,maxRow:_0x40cdf9}=_0x4ca2e8['_getCoordsForCells'](_0x40c57);_0xf28c68['removeRows'](_0x56f0d1,{'at':_0x56a8eb,'rows':_0x40cdf9-_0x56a8eb+0x1});}),_0x399ddf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3fdb7e=>{const _0x3e6767=_0x3fdb7e['map'](_0x1430ae=>_0x1430ae['getContainedElement']()),_0x8372ae=_0x3e6767[0x0]['findAncestor']('table'),{minColumn:_0x3585a7,maxColumn:_0x4760e7}=_0x4ca2e8['_getCoordsForCells'](_0x3e6767);_0xf28c68['removeColumns'](_0x8372ae,{'at':_0x3585a7,'columns':_0x4760e7-_0x3585a7+0x1});});const _0x45c6fc=(_0x5efc37,_0x3ef72b)=>{if(!_0x3ef72b['subType']||!_0x3ef72b['subType']['startsWith']('tablePaste'))return;const _0x20a6f2=_0x3ef72b['attributes']['tablePasteChainId'],_0x1896f4=_0x399ddf['getSuggestions']()['filter'](_0x55a82d=>_0x55a82d['isInContent']&&_0x55a82d['attributes']&&_0x55a82d['attributes']['tablePasteChainId']==_0x20a6f2);_0x1896f4['length']&&_0x3ef72b['getAllAdjacentSuggestions']()['length']!=_0x1896f4['length']&&_0x1896f4['reduce']((_0x258072,_0xcd98e5)=>(_0x258072['next']=_0xcd98e5,_0xcd98e5['previous']=_0x258072,_0xcd98e5));};function _0x3cb355(_0xf9ace7,_0xb3e81a=!0x0){const {id:_0x30ab7e}=_0x399ddf['_splitMarkerName'](_0xf9ace7['markerName']),_0x318547=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5cee11=_0x399ddf['activeMarkers']['includes'](_0xf9ace7['markerName']);return _0x5cee11&&_0x318547['push']('ck-suggestion-marker--active'),{'classes':_0x318547,'attributes':{'data-suggestion':_0x30ab7e},'priority':_0x5cee11&&_0xb3e81a?0xbc2:0xbb8};}_0x399ddf['on']('suggestionLoaded',_0x45c6fc,{'priority':'high'}),_0x399ddf['on']('suggestionUnloaded',_0x45c6fc,{'priority':'high'}),_0x165a73['model']['document']['registerPostFixer'](()=>{let _0x3d3256=!0x1;const _0x5e5ae9=Array['from'](_0x165a73['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xad07c2,data:_0x1bdb9f}of _0x5e5ae9){const {group:_0x38c8f4,type:_0x3125ec,id:_0x3529d1}=_0x399ddf['_splitMarkerName'](_0xad07c2);if('suggestion'!=_0x38c8f4||'deletion'!=_0x3125ec||_0x1bdb9f['oldRange'])continue;if(!_0x399ddf['hasSuggestion'](_0x3529d1))continue;const _0x1e56c3=_0x399ddf['getSuggestion'](_0x3529d1)['getRanges'](),_0x152c65=_0x165a73['plugins']['get']('Users')['me'];for(const _0x2c7f7c of _0x399ddf['getSuggestions']()){if(!_0x2c7f7c['isInContent']||_0x2c7f7c['author']!=_0x152c65)continue;if('formatBlock'!=_0x2c7f7c['type']||'tablePasteCell'!=_0x2c7f7c['subType'])continue;if(_0x2c7f7c['getRanges']()['every'](_0x1e48da=>_0x1e56c3['some'](_0x1f9e6a=>_0x1f9e6a['containsRange'](_0x1e48da,!0x0)))){for(const _0x2b3b08 of _0x2c7f7c['getAllAdjacentSuggestions']())_0x2b3b08['isInContent']&&(_0x2b3b08['discard'](),_0x3d3256=!0x0);}}}return _0x3d3256;}),_0x165a73['model']['document']['registerPostFixer'](_0xebd1c=>{const _0x44892b=_0x165a73['commands']['get']('redo');if(!_0x44892b||!_0x44892b['_createdBatches']['has'](_0xebd1c['batch']))return!0x1;let _0x44b394=!0x1;const _0x22bf2d=_0x165a73['plugins']['get']('Users')['me'],_0x288dcc=_0x165a73['model']['document']['differ']['getChanges'](),_0x44643d=Array['from'](_0x165a73['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x47b042,data:_0x5863b1})=>{const {group:_0x742fd0,subType:_0x5bfd06,authorId:_0x2955c7}=_0x399ddf['_splitMarkerName'](_0x47b042);return'suggestion'==_0x742fd0&&'tablePaste'==_0x5bfd06&&_0x2955c7==_0x22bf2d['id']&&!_0x5863b1['oldRange'];});for(const _0x428ec2 of _0x288dcc){if('insert'!=_0x428ec2['type']||'tableCellSuggestion'!=_0x428ec2['name']||0x1!=_0x428ec2['length'])continue;const _0x329ec4=_0xebd1c['createRange'](_0x428ec2['position'],_0x428ec2['position']['getShiftedBy'](0x1));if(!_0x44643d['find'](({data:_0x46f730})=>_0x46f730['newRange']['isEqual'](_0x329ec4))){for(const {name:_0x3f9210,data:_0x205b25}of _0x44643d)if(_0x329ec4['containsRange'](_0x205b25['newRange'])){_0xebd1c['updateMarker'](_0x3f9210,{'range':_0x329ec4}),_0x44b394=!0x0;break;}}}return _0x44b394;}),_0x165a73['model']['document']['registerPostFixer'](_0x2e317f=>{let _0x5d6735=!0x1;const _0x164231=_0x165a73['plugins']['get']('Users')['me'],_0x21d7ca=_0x399ddf['getSuggestions']()['filter'](_0x1ff51a=>_0x1ff51a['isInContent']&&_0x1ff51a['author']==_0x164231),_0x264686=new Set(),_0x180316=new Set();for(const _0x34a8e7 of _0x21d7ca)if('tablePaste'==_0x34a8e7['subType'])for(const _0x5d9c10 of _0x34a8e7['getMarkers']()){const _0x38b056=_0x5d9c10['getRange']()['getContainedElement']();if(_0x38b056){if(_0x38b056['is']('element','tableCellSuggestion')&&Pe(_0x38b056)){_0x34a8e7['removeMarker'](_0x5d9c10['name']),_0x264686['add'](_0x38b056),_0x5d6735=!0x0;const _0x515e7a=_0x38b056['nextSibling'],_0x1e25d3=_0x38b056['previousSibling'],_0x29742a=_0x515e7a&&_0x515e7a['is']('element','tableCellSuggestion'),_0x59ba3a=_0x1e25d3&&_0x1e25d3['is']('element','tableCellSuggestion');_0x29742a&&!_0x264686['has'](_0x515e7a)&&_0x180316['add'](_0x515e7a),_0x59ba3a&&!_0x264686['has'](_0x1e25d3)&&_0x180316['add'](_0x1e25d3);}else _0x38b056['is']('element','paragraph')&&_0x38b056['isEmpty']&&(_0x34a8e7['removeMarker'](_0x5d9c10['name']),_0x5d6735=!0x0);}}else{if('tablePasteCell'==_0x34a8e7['subType']){if(!_0x34a8e7['attributes']||!_0x34a8e7['attributes']['tablePasteChainId'])continue;const _0x189751=_0x34a8e7['attributes']['markerAttributes'];if(_0x189751&&Object['keys'](_0x189751)['length'])continue;const _0x20504c=_0x34a8e7['attributes']['tablePasteChainId'];let _0x3491f2=!0x0,_0x4381ae=!0x0;for(const _0x14de44 of _0x21d7ca)if(_0x14de44['subType']&&_0x14de44['subType']['startsWith']('tablePaste')){if(!_0x14de44['attributes']['tablePasteChainId']){_0x4381ae=!0x1;break;}if(_0x14de44['id']!=_0x34a8e7['id']&&_0x14de44['attributes']['tablePasteChainId']==_0x20504c){_0x3491f2=!0x1;break;}}_0x4381ae&&_0x3491f2&&(_0x34a8e7['removeMarkers'](),_0x5d6735=!0x0);}}for(const _0xa028f8 of _0x264686)_0x2e317f['remove'](_0xa028f8);for(const _0x412cad of _0x180316)_0x2e317f['unwrap'](_0x412cad);return _0x5d6735;}),_0x165a73['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2b18d1,_0x251ae3)=>_0x3cb355(_0x2b18d1),'converterPriority':'high'}),_0x165a73['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x28769a,_0x417268)=>_0x417268['options']['showSuggestionHighlights']?_0x3cb355(_0x28769a,!0x1):null,'converterPriority':'high'});const _0x3a4e8b=_0x165a73['editing']['view'];this['listenTo'](_0x3a4e8b['document'],'clipboardOutput',(_0x13107e,_0x242798)=>{const _0x4383c3=[];for(const _0x34eacc of _0x3a4e8b['createRangeIn'](_0x242798['content'])['getItems']())_0x34eacc['is']('element','suggestion-td')&&_0x4383c3['push'](_0x34eacc);_0x3a4e8b['change'](_0x149e25=>{for(const _0x4dccf4 of _0x4383c3)_0x149e25['move'](_0x149e25['createRangeIn'](_0x4dccf4),_0x149e25['createPositionBefore'](_0x4dccf4)),_0x149e25['remove'](_0x4dccf4);});});}}function Pe(_0x373e85){if(_0x373e85['isEmpty'])return!0x0;const _0x38169c=_0x373e85['getChild'](0x0);return _0x38169c['is']('element','paragraph')&&_0x38169c['isEmpty'];}function he(_0x5e26fd,_0x3bb194={},_0x2eb673){for(const {isAnchor:_0x576b7e,cellHeight:_0x4d5e9c,cellWidth:_0x16a6c8}of _0x2eb673['createTableWalker'](_0x5e26fd,{'includeAllSlots':!0x0,..._0x3bb194}))if(!_0x576b7e||0x1!=_0x4d5e9c||0x1!=_0x16a6c8)return!0x1;return!0x0;}class vt extends _0xeaacfa{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2061ca=this['editor']['plugins']['get']('TrackChangesEditing');_0x2061ca['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2061ca['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2061ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2061ca['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2061ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2061ca['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x464130,_0x4c4d12){const _0x1aee42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d26fc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x159341=_0x4c4d12['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1ff44e=_0x1d26fc['getColumnGroupElement'](_0x159341);let _0x43c61b=_0x1ff44e?_0x1d26fc['getTableColumnsWidths'](_0x1ff44e):null,_0x432ff7=_0x159341['getAttribute']('tableWidth')||null;const _0x5da690=_0x4c4d12['tableWidth']||_0x432ff7,_0x141860=_0x4c4d12['columnWidths']||_0x43c61b,_0x5c37a9=this['editor']['plugins']['get']('Users')['me'];for(const _0x3eb43f of _0x1aee42['getSuggestions']()){const _0x3cc65d=_0x3eb43f['getContainedElement']();if('resizeTable'===_0x3eb43f['subType']&&_0x3cc65d===_0x159341){_0x3eb43f['author']!==_0x5c37a9&&_0x3eb43f['discard']();const _0x3e6c9b=_0x3eb43f['data']['commandParams'];_0x432ff7=_0x3e6c9b[0x0]['tableWidth'],_0x43c61b=_0x3e6c9b[0x0]['columnWidths'];break;}}_0x464130({'table':_0x159341,'tableWidth':_0x5da690,'columnWidths':_0x141860}),_0x1aee42['markBlockFormat'](_0x159341,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x432ff7,'columnWidths':_0x43c61b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x7adbd7){if('formatBlock'!=_0x7adbd7['type']&&'formatInline'!=_0x7adbd7['type'])return;const {data:_0x2d4992}=_0x7adbd7;if(_0x2d4992&&'resizeTable'===_0x2d4992['formatGroupId']){const _0x4650af='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4650af)};}}}class Ct extends _0xeaacfa{['afterInit'](){const _0x481ac1=this['editor'];_0x481ac1['plugins']['has']('Template')&&_0x481ac1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0xeaacfa{['afterInit'](){const _0x5701b2=this['editor'];if(!_0x5701b2['commands']['get']('insertTableOfContents'))return;_0x5701b2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x20f029=_0x5701b2['plugins']['get']('TrackChangesEditing'),_0x361a70=_0x5701b2['locale'];_0x20f029['descriptionFactory']['registerElementLabel']('tableOfContents',_0x42c9bb=>o(_0x361a70,'ELEMENT_TABLE_OF_CONTENTS',_0x42c9bb));}}class Dt extends _0xeaacfa{['afterInit'](){const _0x5f51ca=this['editor'];if(!_0x5f51ca['plugins']['has']('Title'))return;const _0x38efd6=_0x5f51ca['plugins']['get']('TrackChangesEditing');_0x38efd6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5f51ca['locale'],'ELEMENT_TITLE')),_0x5f51ca['model']['document']['registerPostFixer'](_0x2c36a2=>{let _0x5114cc=!0x1;const _0x580adc=Array['from'](_0x5f51ca['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x6d2f53,data:_0x5e4a39}of _0x580adc){const {group:_0x2bdc6e}=_0x38efd6['_splitMarkerName'](_0x6d2f53);if('suggestion'!==_0x2bdc6e||!_0x5e4a39['newRange'])continue;const _0x47a1a5=_0x5e4a39['newRange'],_0x583b94=_0x47a1a5['end']['nodeBefore'];if(!_0x583b94||!_0x583b94['is']('element','title-content'))continue;if(!_0x47a1a5['start']['isTouching'](_0x47a1a5['end']))continue;const _0x27f22a=_0x5f51ca['model']['schema']['getNearestSelectionRange'](_0x47a1a5['end'],'forward');if(_0x27f22a&&_0x27f22a['isCollapsed']){const _0x23a9ca=_0x2c36a2['createRange'](_0x47a1a5['start'],_0x27f22a['start']);_0x23a9ca['isEqual'](_0x47a1a5)||(_0x2c36a2['updateMarker'](_0x6d2f53,{'range':_0x23a9ca}),_0x5114cc=!0x0);}_0x5114cc||(_0x2c36a2['removeMarker'](_0x6d2f53),_0x5114cc=!0x0);}return _0x5114cc;});}}class Nt extends _0xeaacfa{['afterInit'](){const _0x48d4fc=this['editor'],_0x1ba16e=_0x48d4fc['plugins']['get']('TrackChangesEditing');_0x48d4fc['plugins']['has']('UndoEditing')&&(_0x1ba16e['enableCommand']('undo'),_0x1ba16e['enableCommand']('redo'));}}class Mt extends _0xeaacfa{static get['requires'](){return[jt];}['afterInit'](){const _0x4ee4bb=this['editor'];if(!_0x4ee4bb['plugins']['has']('TableCaptionEditing'))return;_0x4ee4bb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0xeaacfa{['tableProperties'];['tableCellProperties'];constructor(_0xc3ee3){super(_0xc3ee3),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 _0x3c185e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x6e05f2 of this['tableProperties'])_0x3c185e['enableCommand'](_0x6e05f2,(_0x54ea20,_0x1c4418)=>{const _0x3b3616=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x6e05f2,[_0x3b3616],this['tableProperties'],'tableProperties',_0x54ea20,_0x1c4418);});_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3c185e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x37a69f,_0x2d182d)=>this['handleDiscardAction'](this['tableProperties'],_0x37a69f,_0x2d182d)),_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3dc8e1 of this['tableCellProperties'])_0x3c185e['enableCommand'](_0x3dc8e1,(_0x392bd6,_0x118a04)=>{const _0x373be4=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3dc8e1,_0x373be4,this['tableCellProperties'],'tableCellProperties',_0x392bd6,_0x118a04);});_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3c185e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4dfc9a,_0x46c86a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4dfc9a,_0x46c86a)),_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3c185e['descriptionFactory']['registerDescriptionCallback'](_0x28e779=>this['handleSuggestionDescription'](_0x28e779));}['_handlePropertyChange'](_0x363ac0,_0x714cda,_0xed7629,_0x4814d6,_0xcd4f25,_0x4ddacb){const _0x46cd1b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4ddacb['batch'],()=>{for(const _0xd13a99 of _0x714cda){if(this['_getSuggestion'](_0xd13a99,_0x4814d6))_0xcd4f25(_0x4ddacb);else{const _0x3ef50e={};for(const _0x114e86 of _0xed7629){const _0x412616=_0xd13a99['getAttribute'](_0x114e86);void 0x0!==_0x412616&&(_0x3ef50e[_0x114e86]=_0x412616);}_0xcd4f25(_0x4ddacb),_0x46cd1b['markBlockFormat'](_0xd13a99,{'commandParams':[_0x3ef50e]},[],_0x4814d6);}}});}['handleDiscardAction'](_0x41e940,_0x2c452f,_0x4b3eb0){const _0x55bc0f=_0x2c452f[0x0]['start']['nodeAfter'],_0x543c28=_0x4b3eb0['commandParams'][0x0];this['editor']['model']['change'](_0x33fbd1=>{for(const _0x4a17cf of _0x41e940)void 0x0!==_0x543c28[_0x4a17cf]?_0x33fbd1['setAttribute'](_0x4a17cf,_0x543c28[_0x4a17cf],_0x55bc0f):_0x33fbd1['removeAttribute'](_0x4a17cf,_0x55bc0f);});}['handleSuggestionDescription'](_0x11991c){if(_0x11991c['data'])switch(_0x11991c['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'](_0xa42539,_0x18e0a6){const _0x2dc689=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x53b0ce of _0x2dc689['getSuggestions']({'skipNotAttached':!0x0})){const _0x2a5152=_0x53b0ce['getContainedElement']();if(_0x53b0ce['subType']===_0x18e0a6&&_0x2a5152===_0xa42539)return _0x53b0ce;}return null;}}const m='$elementName';class p extends _0xeaacfa{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x43f0c5,_0x5b0c8c,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(_0x3c36a4){function _0x530108(_0x94857){return _0x94857['map'](_0x46bebd=>String['fromCharCode'](_0x46bebd))['join']('');}super(_0x3c36a4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x589360,_0x493b40,_0x169230,_0x576a44)=>{this['_model']['change'](()=>{for(const _0x3d4428 of[..._0x576a44,..._0x169230])this['_model']['markers']['has'](_0x3d4428)&&_0x3c36a4['editing']['reconvertMarker'](_0x3d4428);});}),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']=_0x3c36a4['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(),_0x3c36a4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3c36a4['config']['get']('trackChanges.trackFormatChanges'),_0x3c36a4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3c36a4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x3c36a4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x530108([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x530108([0x34,0x30,0x34,0x38,0x31,0x32,0x30,0x36]);}['init'](){const _0x4153d9=this['editor'],_0x2a6c08=(_0x9415b9,_0x22f22d)=>{if('attribute'!=_0x9415b9)return'ck-suggestion-marker-'+_0x9415b9;const _0x4732b4=_0x22f22d['split']('|')[0x0];return this['_isBlockAttribute'](_0x4732b4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4153d9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4f0451=>{const {id:_0x3a6108,type:_0x1be66f,subType:_0x9164be}=this['_splitMarkerName'](_0x4f0451['markerName']),_0x217f7c=['ck-suggestion-marker',_0x2a6c08(_0x1be66f,_0x9164be)];let _0x53c61d=0xbb8;return this['activeMarkers']['includes'](_0x4f0451['markerName'])&&(_0x217f7c['push']('ck-suggestion-marker--active'),_0x53c61d=0xbc2),'deletion'==_0x1be66f&&(_0x53c61d+=0x5),{'classes':_0x217f7c,'attributes':{'data-suggestion':_0x3a6108},'priority':_0x53c61d};}}),_0x4153d9['conversion']['for']('dataDowncast')['add'](_0x170a5a=>{_0x170a5a['on']('addMarker:suggestion',(_0x3bad45,_0x4a0c0c,_0x5272b7)=>{if(!_0x5272b7['options']['showSuggestionHighlights'])return;const _0x1aa1f2=_0x4a0c0c['item'];if(!_0x1aa1f2)return;const _0x23b9df=_0x5272b7['mapper']['toViewElement'](_0x1aa1f2);_0x4153d9['model']['schema']['isObject'](_0x1aa1f2)&&_0x23b9df&&!_0x23b9df['getCustomProperty']('widget')&&_0x23b9df['is']('containerElement')&&_0x390659(_0x23b9df,_0x5272b7['writer']);},{'priority':'high'});}),_0x4153d9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3c78bd,_0x3cdb7c)=>{if(!_0x3cdb7c['options']['showSuggestionHighlights'])return null;const {type:_0x140798,subType:_0x551a19}=this['_splitMarkerName'](_0x3c78bd['markerName']);return{'classes':['ck-suggestion-marker',_0x2a6c08(_0x140798,_0x551a19)],'priority':0xbb8};}});const _0x2146ab=({showActiveMarkers:_0x288fda=!0x0,isAttributeSuggestion:_0x439180=!0x1}={})=>(_0x5071c0,_0x4202f3,_0x2c36c9)=>{if(!_0x4202f3['item'])return;const {id:_0x35b25e}=this['_splitMarkerName'](_0x4202f3['markerName']);if(_0x439180){const _0x2b7904=this['_suggestions']['get'](_0x35b25e),_0x4c6498=this['_getAttributeKey'](_0x2b7904);if(!this['_isBlockAttribute'](_0x4c6498))return;}if(_0x4202f3['item']['is']('selection'))return void _0x2c36c9['consumable']['consume'](_0x4202f3['item'],_0x5071c0['name']);const _0xdd49fe=_0x2c36c9['mapper']['toViewElement'](_0x4202f3['item']);if(_0x4202f3['item']['is']('element')&&_0x4153d9['model']['schema']['isBlock'](_0x4202f3['item'])&&!_0xdd49fe['getCustomProperty']('addHighlight')){_0x2c36c9['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xdd49fe),_0x2c36c9['writer']['setAttribute']('data-suggestion',_0x35b25e,_0xdd49fe),_0x2c36c9['mapper']['bindElementToMarker'](_0xdd49fe,_0x4202f3['markerName']),_0x288fda&&(this['activeMarkers']['includes'](_0x4202f3['markerName'])?_0x2c36c9['writer']['addClass']('ck-suggestion-marker--active',_0xdd49fe):_0x2c36c9['writer']['removeClass']('ck-suggestion-marker--active',_0xdd49fe));for(const _0x5e3b82 of _0x4153d9['model']['createRangeIn'](_0x4202f3['item'])['getItems']())_0x2c36c9['consumable']['consume'](_0x5e3b82,_0x5071c0['name']);_0x2c36c9['consumable']['consume'](_0x4202f3['item'],_0x5071c0['name']);}};_0x4153d9['conversion']['for']('dataDowncast')['add'](_0x4a6a5a=>{_0x4a6a5a['on']('addMarker:suggestion:formatBlock',(_0x3a9127,_0x1f533c,_0x1d2045)=>{_0x1d2045['options']['showSuggestionHighlights']&&_0x2146ab({'showActiveMarkers':!0x1})(_0x3a9127,_0x1f533c,_0x1d2045);},{'priority':'highest'});}),_0x4153d9['conversion']['for']('dataDowncast')['add'](_0x5c7162=>{_0x5c7162['on']('addMarker:suggestion:attribute',(_0x370c5c,_0x315c35,_0x56eb28)=>{_0x56eb28['options']['showSuggestionHighlights']&&_0x2146ab({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x370c5c,_0x315c35,_0x56eb28);},{'priority':'highest'});}),_0x4153d9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x25b437,_0x38b03e)=>_0x38b03e['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x25b437['substr'](0xb)}}),_0x4153d9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x15e211,{writer:_0x5cf57d})=>{let _0x138326='suggestion:'+_0x15e211['getAttribute']('suggestion-type')+':'+_0x15e211['getAttribute']('id');return _0x15e211['getAttribute']('marker-count')&&(_0x138326+=':'+_0x15e211['getAttribute']('marker-count')),_0x5cf57d['createElement']('$marker',{'data-name':_0x138326});}}),_0x4153d9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4153d9['conversion']['for']('editingDowncast')['add'](_0x1391ea=>{_0x1391ea['on']('addMarker:suggestion:formatBlock',_0x2146ab(),{'priority':'high'});}),_0x4153d9['conversion']['for']('editingDowncast')['add'](_0x30499a=>{_0x30499a['on']('addMarker:suggestion:attribute',_0x2146ab({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4153d9['conversion']['for']('editingDowncast')['add'](_0x1a5943=>{_0x1a5943['on']('removeMarker:suggestion:formatBlock',(_0x59e57a,_0x2c6798,_0x1c094b)=>{const _0x338cad=_0x1c094b['mapper']['markerNameToElements'](_0x2c6798['markerName']);if(_0x338cad){for(const _0x2ad3db of _0x338cad)_0x2ad3db['getCustomProperty']('addHighlight')||(_0x1c094b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ad3db),_0x1c094b['writer']['removeAttribute']('data-suggestion',_0x2ad3db),_0x1c094b['mapper']['unbindElementFromMarkerName'](_0x2ad3db,_0x2c6798['markerName']));}},{'priority':'high'});}),_0x4153d9['conversion']['for']('editingDowncast')['add'](_0x3b1ef0=>{_0x3b1ef0['on']('removeMarker:suggestion:attribute',(_0x52d24a,_0x3031af,_0x446deb)=>{const _0xfa1dc5=_0x446deb['mapper']['markerNameToElements'](_0x3031af['markerName']);if(!_0xfa1dc5)return;const {id:_0x1cd119}=this['_splitMarkerName'](_0x3031af['markerName']),_0x2f84a7=this['_suggestions']['get'](_0x1cd119),_0x52ed8b=this['_getAttributeKey'](_0x2f84a7);if(this['_isBlockAttribute'](_0x52ed8b)){for(const _0x169038 of _0xfa1dc5)_0x169038['getCustomProperty']('addHighlight')||(_0x446deb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x169038),_0x446deb['writer']['removeAttribute']('data-suggestion',_0x169038),_0x446deb['mapper']['unbindElementFromMarkerName'](_0x169038,_0x3031af['markerName']));}},{'priority':'high'});}),_0x4153d9['model']['document']['registerPostFixer'](_0x53e135=>{let _0x40b6a4=!0x1;const _0x5aff5d=Array['from'](_0x4153d9['model']['document']['differ']['getChangedMarkers']()),_0x4d3eb5=new Set();for(const {name:_0x13bd82,data:_0x35a969}of _0x5aff5d){const {group:_0x4603a7,type:_0x5e3ff7,subType:_0x432e64,id:_0x3683a7}=this['_splitMarkerName'](_0x13bd82);if('suggestion'!==_0x4603a7)continue;const _0x5c15bb=this['_suggestions']['get'](_0x3683a7);if(null!=_0x35a969['newRange']){'formatInline'==_0x5e3ff7&&(_0x40b6a4=_0x40b6a4||Et(_0x35a969['newRange'],_0x13bd82,_0x53e135,_0x4153d9['model']['schema']));const _0x15445a='attribute'==_0x5e3ff7&&this['_isBlockAttribute'](_0x432e64['split']('|')[0x0]);if(_0x35a969['newRange']['isCollapsed']||'$graveyard'==_0x35a969['newRange']['root']['rootName']||'formatBlock'==_0x5e3ff7&&!Ut(_0x35a969['newRange'])||_0x15445a&&!Ut(_0x35a969['newRange'])||'deletion'==_0x5e3ff7&&!(!Tt(_0x70365f=_0x35a969['newRange'])&&!function(_0x4f16de){return _0x4f16de['start']['parent']==_0x4f16de['end']['nodeBefore']&&_0x4f16de['start']['isAtEnd'];}(_0x70365f)))_0x53e135['removeMarker'](_0x13bd82),_0x40b6a4=!0x0;else{if(!_0x5c15bb||!_0x5c15bb['isInContent'])continue;_0x4d3eb5['add'](_0x5c15bb);}}}var _0x70365f;return _0x4d3eb5['size']>0x0&&(_0x40b6a4=!!this['_joinWithAdjacentSuggestions'](_0x4d3eb5)||_0x40b6a4),_0x40b6a4;}),_0x4153d9['model']['document']['registerPostFixer'](_0x5a7950=>{let _0x452dd2=!0x1;for(const _0x59da43 of _0x4153d9['model']['document']['differ']['getChanges']())if('insert'==_0x59da43['type'])for(const _0x40625e of this['_suggestions']['values']()){if(_0x40625e['isMultiRange']||!_0x40625e['isInContent'])continue;const _0x2d11c2='formatBlock'==_0x40625e['type'],_0x2b8ad9=this['_getAttributeKey'](_0x40625e),_0x498bd0=_0x2b8ad9&&this['_isBlockAttribute'](_0x2b8ad9);if(!_0x2d11c2&&!_0x498bd0)continue;const _0x53b16f=_0x40625e['getFirstRange']();if(_0x53b16f['start']['parent']!=_0x53b16f['end']['parent']&&!_0x53b16f['end']['isAtEnd']){const _0x46f639=_0x4153d9['model']['createPositionAt'](_0x53b16f['start']['nodeAfter'],'end'),_0xa0e1e4=_0x4153d9['model']['createRange'](_0x53b16f['start'],_0x46f639);_0x5a7950['updateMarker'](_0x40625e['getFirstMarker'](),{'range':_0xa0e1e4}),_0x452dd2=!0x0;}}return _0x452dd2;}),_0x4153d9['model']['document']['registerPostFixer'](_0xd168be=>this['_processAttributeChanges'](_0xd168be)),_0x4153d9['model']['document']['registerPostFixer'](_0x3bb2f3=>!_0x3bb2f3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3bb2f3)),_0x4153d9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4153d9['model']['document']['on']('change:data',(_0x3b3ad1,_0x7bd6cd)=>{if(!_0x7bd6cd['isLocal']||_0x7bd6cd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x44d4c3=_0x4153d9['model']['document']['differ']['getChanges']();if(0x0==_0x44d4c3['length'])return;const _0x3f5f47=[],_0x186fb6=_0x44d4c3['filter'](_0x42ba6c=>'attribute'==_0x42ba6c['type']),_0x380154=_0x44d4c3['filter'](_0x5d6df9=>'insert'==_0x5d6df9['type']&&'$text'!=_0x5d6df9['name']);for(const _0x3f3b97 of _0x186fb6)this['_isRegisteredAttribute'](_0x3f3b97['attributeKey'])&&_0x3f5f47['push']({'key':_0x3f3b97['attributeKey'],'newValue':_0x3f3b97['attributeNewValue'],'oldValue':_0x3f3b97['attributeOldValue'],'range':Ot(_0x3f3b97['range'],_0x4153d9['model'])});for(const _0x5650fd of _0x380154){if('rename'!=_0x5650fd['action']&&'refresh'!=_0x5650fd['action'])continue;const _0xd21062=Gt(_0x5650fd['position']['nodeAfter'],_0x4153d9['model']),_0x44111a=_0x5650fd['before'];'rename'==_0x5650fd['action']&&_0x3f5f47['push']({'key':m,'newValue':_0x5650fd['name'],'oldValue':_0x44111a['name'],'range':_0xd21062});for(const [_0x2020a7,_0x1e221f]of _0x44111a['attributes']){if(!this['_isRegisteredAttribute'](_0x2020a7))continue;const _0x19c058=_0x5650fd['attributes']['get'](_0x2020a7);_0x1e221f!==_0x19c058&&_0x3f5f47['push']({'key':_0x2020a7,'newValue':_0x19c058,'oldValue':_0x1e221f,'range':_0xd21062});}for(const [_0x13046d,_0x3af118]of _0x5650fd['attributes'])this['_isRegisteredAttribute'](_0x13046d)&&(_0x44111a['attributes']['has'](_0x13046d)||_0x3f5f47['push']({'key':_0x13046d,'newValue':_0x3af118,'oldValue':null,'range':_0xd21062}));}0x0!=_0x3f5f47['length']&&_0x4153d9['model']['enqueueChange'](_0x7bd6cd,_0x2fa2fb=>{const _0x16ed8d=_0x107e61();for(const {range:_0x2a1d73,key:_0x4463f8,oldValue:_0x59786e,newValue:_0x495d02}of _0x3f5f47)this['markAttributeChange'](_0x2a1d73,_0x4463f8,_0x59786e,_0x495d02,{'groupId':_0x16ed8d});this['_reduceExistingSuggestions'](_0x2fa2fb,_0x3f5f47);});},{'priority':'lowest'}),_0x4153d9['model']['markers']['on']('update:suggestion',(_0x56596a,_0x4e7d95,_0x154a3d)=>{if(null==_0x154a3d){const {id:_0x41f394}=this['_splitMarkerName'](_0x4e7d95['name']),_0x428112=this['_suggestions']['get'](_0x41f394);_0x428112&&_0x428112['addMarkerName'](_0x4e7d95['name']);}}),_0x4153d9['model']['document']['on']('change:data',()=>{const _0x170142=Array['from'](_0x4153d9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x14f61b=>'suggestion'===this['_splitMarkerName'](_0x14f61b['name'])['group']);if(0x0===_0x170142['length'])return;_0x170142['sort']((_0x3eb67e,_0x3eb8cf)=>{const _0x18f86f=_0x3eb67e['data']['oldRange'],_0x8b1510=_0x3eb8cf['data']['oldRange'];return null===_0x18f86f&&null===_0x8b1510?0x0:null===_0x18f86f&&null!==_0x8b1510?-0x1:null!==_0x18f86f&&null===_0x8b1510?0x1:_0x18f86f['start']['isBefore'](_0x8b1510['start'])?-0x1:0x1;});const _0x340b39=new Set(),_0x5377f3=new Set();for(const {name:_0x63b0a,data:_0x460422}of _0x170142){const {id:_0x5b9533}=this['_splitMarkerName'](_0x63b0a);if(null===_0x460422['oldRange']){const _0x489513=this['_handleNewSuggestionMarker'](_0x63b0a);_0x5377f3['add'](_0x489513);}else{const _0x35b990=this['_suggestions']['get'](_0x5b9533);null!==_0x460422['newRange']||_0x35b990['isInContent']?(_0x340b39['add'](_0x35b990['head']),_0x5377f3['add'](_0x35b990)):this['_removeSuggestion'](_0x35b990);}}_0x5377f3['size']>0x0&&this['_refreshSuggestionsChain'](_0x5377f3);for(const _0x54ef71 of _0x340b39)this['fire']('suggestionChanged',_0x54ef71);}),_0x4153d9['model']['on']('applyOperation',(_0x48ffce,_0x4c614e)=>{const _0x33d70a=_0x4c614e[0x0];if(!this['_suggestions']['size'])return;if(!_0x33d70a['isDocumentOperation'])return;if(_0x33d70a['batch']['isUndo']||!_0x33d70a['batch']['isLocal'])return;let _0xa8446f,_0x56f277;switch(_0x33d70a['type']){case'insert':_0xa8446f=_0x4153d9['model']['createPositionAt'](_0x33d70a['position']),_0x56f277=_0xa8446f['getShiftedBy'](_0x33d70a['howMany']);break;case'split':_0xa8446f=_0x4153d9['model']['createPositionAt'](_0x33d70a['splitPosition']),_0x56f277=_0x4153d9['model']['createPositionAt'](_0x33d70a['moveTargetPosition']);break;case'move':_0xa8446f=_0x4153d9['model']['createPositionAt'](_0x33d70a['targetPosition']),_0x56f277=_0xa8446f['getShiftedBy'](_0x33d70a['howMany']);break;default:return;}const _0x4e8762=_0x4153d9['model']['createRange'](_0xa8446f,_0x56f277);_0x4153d9['model']['change'](()=>{for(const {suggestion:_0x4c2f45,meta:_0x3ee93d}of this['_findSuggestions'](_0x4e8762)){if(_0x4c2f45['isMultiRange'])continue;if('formatInline'==_0x4c2f45['type'])continue;const _0x5531f4=this['_getAttributeKey'](_0x4c2f45);if(_0x5531f4&&this['_isBlockAttribute'](_0x5531f4)&&'split'!=_0x33d70a['type'])continue;const _0x1bd234=_0x4c2f45['data']&&_0x4c2f45['data']['multipleBlocks'];('formatBlock'!=_0x4c2f45['type']||'split'==_0x33d70a['type']&&!_0x1bd234)&&(_0x3ee93d['containsRangeInObject']||'insertion'==_0x4c2f45['type']&&_0x3ee93d['isOwn']||_0x4c2f45['getFirstRange']()['containsRange'](_0x4e8762)&&this['_breakSuggestionMarker'](_0x4c2f45,_0xa8446f,_0x56f277));}});},{'priority':'lowest'}),_0x4153d9['model']['on']('deleteContent',(_0x3b3889,_0x540009)=>{const _0x249e69=_0x540009[0x0],_0x2ea4f3=_0x540009[0x1];if(_0x2ea4f3&&_0x2ea4f3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x249e69['isCollapsed'])return;const _0x5b097e=_0x4153d9['model']['schema'],{start:_0x3c63ec,end:_0x5bbf8e}=_0x249e69['getFirstRange'](),_0x11dda3=_0x3c63ec['nodeAfter']&&_0x5b097e['isLimit'](_0x3c63ec['nodeAfter'])?null:_0x5b097e['getNearestSelectionRange'](_0x3c63ec,'forward'),_0x1577a6=_0x5bbf8e['nodeBefore']&&_0x5b097e['isLimit'](_0x5bbf8e['nodeBefore'])?null:_0x5b097e['getNearestSelectionRange'](_0x5bbf8e,'backward'),_0xc8703=_0x4153d9['model']['createRange'](_0x11dda3?_0x11dda3['start']:_0x3c63ec,_0x1577a6?_0x1577a6['end']:_0x5bbf8e);_0x4153d9['model']['change'](_0x4eff28=>{this['markDeletion'](_0xc8703);const _0x19b1fd=_0x4153d9['model']['schema']['getNearestSelectionRange'](_0xc8703['start']);_0x249e69['is']('documentSelection')?_0x4eff28['setSelection'](_0x19b1fd):_0x249e69['setTo'](_0x19b1fd);}),_0x3b3889['stop']();},{'priority':_0x2a5a1e['normal']+0xa}),_0x4153d9['model']['on']('insertContent',(_0x39a7c2,_0x4e5b63)=>{const _0x125e73=_0x4e5b63[_0x4e5b63['length']-0x1];_0x125e73&&_0x125e73['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4153d9['model']['change'](()=>{let _0x5501c8=_0x4153d9['model']['insertContent'](_0x4e5b63[0x0],_0x4e5b63[0x1],_0x4e5b63[0x2],{'forceDefaultExecution':!0x0});if(!_0x5501c8)return;_0x39a7c2['return']=_0x5501c8['clone']();const _0x4e0523=_0x5501c8['end']['nodeBefore'],_0x2154c8=_0x4153d9['model']['schema'];_0x4e0523&&_0x2154c8['isBlock'](_0x4e0523)&&!_0x2154c8['isObject'](_0x4e0523)&&(_0x5501c8=_0x4153d9['model']['createRange'](_0x5501c8['start'],_0x4153d9['model']['createPositionAt'](_0x4e0523,'end'))),this['markInsertion'](_0x5501c8);}),_0x39a7c2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4bdc7b=new $(_0x4153d9,this['_suggestions']);_0x4153d9['commands']['add']('acceptSuggestion',_0x4bdc7b),this['enableCommand']('acceptSuggestion');const _0x5a2d11=new B(_0x4153d9,this['_suggestions']);_0x4153d9['commands']['add']('discardSuggestion',_0x5a2d11),this['enableCommand']('discardSuggestion'),_0x4153d9['commands']['add']('acceptAllSuggestions',new x(_0x4153d9,_0x4bdc7b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4153d9['commands']['add']('discardAllSuggestions',new x(_0x4153d9,_0x5a2d11,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4153d9['commands']['add']('acceptSelectedSuggestions',new R(_0x4153d9,_0x4bdc7b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4153d9['commands']['add']('discardSelectedSuggestions',new R(_0x4153d9,_0x5a2d11,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x38d51c=_0x4153d9['plugins']['get']('CommentsRepository');this['listenTo'](_0x38d51c,'addComment',(_0x1961ed,{threadId:_0x571ef0})=>{const _0x103adb=this['_suggestions']['get'](_0x571ef0);_0x103adb&&_0x103adb['commentThread']&&0x1===_0x103adb['commentThread']['length']&&this['_updateSuggestionData'](_0x571ef0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x38d51c,'removeComment',(_0x6de1f5,{threadId:_0xc8bc18})=>{const _0x23061f=this['_suggestions']['get'](_0xc8bc18);_0x23061f&&_0x23061f['commentThread']&&!_0x23061f['commentThread']['length']&&this['_updateSuggestionData'](_0xc8bc18,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1a4c7b){if(this['_adapter'])throw new _0x4054be('track-changes-adapter-already-set',this);this['_adapter']=_0x1a4c7b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x38db09=!0x1,toJSON:_0x544fae=!0x1}={}){const _0x4db9c3=[];for(const _0x49121a of this['_suggestions']['values']())_0x38db09&&!_0x49121a['isInContent']||_0x4db9c3['push'](_0x49121a);return _0x544fae?_0x4db9c3['map'](_0x3e2783=>_0x3e2783['toJSON']()):_0x4db9c3;}['getSuggestion'](_0x355d49){const _0x5d38fa=this['_suggestions']['get'](_0x355d49);if(!_0x5d38fa)throw new _0x4054be('track-changes-suggestion-not-found',this);return _0x5d38fa;}['hasSuggestion'](_0x2390ee){return this['_suggestions']['has'](_0x2390ee);}['addSuggestionData'](_0x3e0b18){const {authorId:_0x50bd4e,id:_0x5a0407,attributes:_0xa0d239}=_0x3e0b18,[_0xc02176,_0x12d178]=_0x3e0b18['type']['split'](':'),_0x3bc3cb=this['_suggestions']['get'](_0x5a0407)||this['_createSuggestion'](_0xc02176,_0x12d178,_0x5a0407,_0x50bd4e,_0xa0d239);if(this['_addThreadToSuggestion'](_0x3bc3cb),this['_checkSuggestionCorrectness'](_0x3bc3cb,_0xc02176,_0x12d178||null,_0x50bd4e),_0x3bc3cb['createdAt']=_0x3e0b18['createdAt'],_0x3bc3cb['_isDataLoaded']=!0x0,_0xa0d239&&_0xa0d239['@external']){const _0x34debc=_0xa0d239['@external'],_0x1b1cfe=this['_getExternalAuthor'](_0x34debc['authorName']);_0x3bc3cb['authoredAt']=_0x34debc['createdAt'],_0x3bc3cb['author']=_0x1b1cfe,_0x3bc3cb['isExternal']=!0x0;}else _0x3bc3cb['authoredAt']=_0x3e0b18['createdAt'];switch(_0x3e0b18['data']&&(_0x3bc3cb['data']=_0x3e0b18['data']),_0x3e0b18['attributes']&&(_0x3bc3cb['attributes']=_0x3e0b18['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3bc3cb['_saved']=!0x0),this['_suggestionState']['get'](_0x3bc3cb)){case'notReady':this['_suggestionState']['set'](_0x3bc3cb,'dataReady');break;case'markerReady':_0x3bc3cb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3bc3cb])),this['_refreshSuggestionsChain'](new Set([_0x3bc3cb])),this['_suggestionState']['set'](_0x3bc3cb,'ready'),this['fire']('suggestionLoaded',_0x3bc3cb)):this['_suggestionState']['set'](_0x3bc3cb,'removed');}return _0x3bc3cb;}['acceptSuggestion'](_0x102950){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f7909 of _0x102950['getAllAdjacentSuggestions']())_0x2f7909['accept']();});});}['discardSuggestion'](_0xe4f91){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1c3521 of _0xe4f91['getAllAdjacentSuggestions']())_0x1c3521['discard']();});});}['enableCommand'](_0x38c09c,_0x2d161f){const _0x134e23=this['editor']['commands']['get'](_0x38c09c);if(!_0x134e23)throw new _0x4054be('track-changes-command-not-found',this,{'commandName':_0x38c09c});if(this['_enabledCommands']['has'](_0x134e23))throw new _0x4054be('track-changes-enable-command-twice',this,{'commandName':_0x38c09c});this['_enabledCommands']['add'](_0x134e23),_0x2d161f&&_0x134e23['on']('execute',(_0x1a638b,_0x4871fb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4871fb['length']>0x0&&_0x4871fb[_0x4871fb['length']-0x1]&&_0x4871fb[_0x4871fb['length']-0x1]['forceDefaultExecution']?_0x4871fb['pop']():(_0x1a638b['return']=_0x2d161f((..._0x9026c7)=>_0x134e23['execute'](..._0x9026c7,{'forceDefaultExecution':!0x0}),..._0x4871fb),_0x1a638b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x336c72){let _0x4cc5bb,_0x4fea28;const _0x1d349f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4cc5bb=_0x336c72();}catch(_0x4e1733){_0x4fea28=_0x4e1733;}return _0x1d349f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4fea28&&_0x4054be['rethrowUnexpectedError'](_0x4fea28,this),_0x4cc5bb;}['markInsertion'](_0xc9ce21,_0x208198=null,_0x24a48e={}){if(_0xc9ce21['isCollapsed'])return null;const _0x18c767=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x22fcf8,meta:_0x22c9eb}of this['_findSuggestions'](_0xc9ce21,'insertion'))if(_0x22c9eb['isOwn']){if(!_0x22c9eb['isNextTo']){if(_0x22c9eb['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x22fcf8,_0x24a48e))continue;return _0x22fcf8;}if(Lt(_0x22fcf8,_0x24a48e))return _0x22fcf8;this['_breakSuggestionMarker'](_0x22fcf8,_0xc9ce21['start'],_0xc9ce21['end']);break;}if(_0x208198==_0x22fcf8['subType']&&Lt(_0x22fcf8,_0x24a48e)){const _0x14b940=_0x22fcf8['getFirstRange']();return _0x14b940['start']['isEqual'](_0xc9ce21['end'])?this['_setSuggestionRange'](_0x22fcf8,this['_model']['createRange'](_0xc9ce21['start'],_0x14b940['end'])):this['_setSuggestionRange'](_0x22fcf8,this['_model']['createRange'](_0x14b940['start'],_0xc9ce21['end'])),_0x22fcf8;}}const _0xeaf09=_0x107e61(),_0x32e88a=_0x18c767['id'],_0x48dd6c=_0x208198?'insertion:'+_0x208198:'insertion',_0x4f9854=this['_setSuggestionData']({'id':_0xeaf09,'type':_0x48dd6c,'createdAt':new Date(),'authorId':_0x32e88a,'attributes':_0x24a48e});return this['_addSuggestionMarker'](_0x48dd6c,_0xeaf09,_0x32e88a,_0xc9ce21),_0x4f9854;}['markMultiRangeInsertion'](_0x7e4492,_0x1f74ff='multi',_0x1a2a93={}){const _0x5dfa76=this['editor']['plugins']['get']('Users')['me'],_0x4597b3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1f74ff,'join');for(const _0x19be0a of this['getSuggestions']())if(_0x19be0a['author']['id']==_0x5dfa76['id']&&'insertion'==_0x19be0a['type']&&_0x19be0a['subType']==_0x1f74ff&&Lt(_0x19be0a,_0x1a2a93)&&(_0x4597b3(_0x19be0a['getRanges'](),_0x7e4492)||_0x4597b3(_0x7e4492,_0x19be0a['getRanges']()))){for(const _0x36ec9d of _0x7e4492)_0x19be0a['addRange'](_0x36ec9d);return _0x19be0a;}for(const {suggestion:_0x20cd6e,meta:_0x591762}of this['_findSuggestions'](_0x7e4492,'insertion')){if(!_0x591762['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x591762['containsRangeInObject'])continue;if(!Lt(_0x20cd6e,_0x1a2a93))continue;let _0x4ac559=!0x0;for(const _0x521894 of _0x20cd6e['getRanges']())for(const _0xa3123c of _0x7e4492)if(!_0x521894['containsRange'](_0xa3123c)){_0x4ac559=!0x1;break;}if(_0x4ac559)return _0x20cd6e;}const _0x234e5a=_0x107e61(),_0x377612=_0x5dfa76['id'],_0x3e73f0='insertion:'+_0x1f74ff,_0x354c79=this['_setSuggestionData']({'id':_0x234e5a,'type':_0x3e73f0,'createdAt':new Date(),'authorId':_0x377612,'attributes':_0x1a2a93});for(const _0x51cd57 of _0x7e4492)this['_addSuggestionMarker'](_0x3e73f0,_0x234e5a,_0x377612,_0x51cd57,u['getMultiRangeId']());return _0x354c79;}['markInlineFormat'](_0x521612,_0x51f27c,_0x1d983a=null,_0x3a69b0={}){if(_0x1d983a=_0x1d983a||Vt(_0x51f27c),_0x521612['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x37bc85=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1d983a,'accept');return this['forceDefaultExecution'](()=>_0x37bc85([_0x521612],_0x51f27c,_0x3a69b0)),null;}const _0x5b40cf=this['editor']['plugins']['get']('Users')['me'],_0x2d36ae=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x198789,meta:_0x3a0028}of this['_findSuggestions'](_0x521612,'insertion'))_0x3a0028['isOwn']&&!_0x3a0028['isInsideObject']&&_0x2d36ae['push'](..._0x198789['getRanges']());}const _0xc024f8=function(_0x35d7a5,_0x4822a7){const _0x4d4add=[];for(const _0x3c2cf6 of _0x4822a7){const _0x15b048=_0x35d7a5['getIntersection'](_0x3c2cf6);_0x15b048&&_0x4d4add['push'](_0x15b048);}return _0x4d4add;}(_0x521612,_0x2d36ae),_0x654a91=function(_0x254a54,_0x48f734){const _0x5c31d8=[_0x254a54];for(const _0x16752a of _0x48f734){let _0x19eb2f=0x0;for(;_0x19eb2f<_0x5c31d8['length'];){const _0x51ea76=_0x5c31d8[_0x19eb2f]['getDifference'](_0x16752a);_0x5c31d8['splice'](_0x19eb2f,0x1,..._0x51ea76),_0x19eb2f+=_0x51ea76['length'];}}return _0x5c31d8;}(_0x521612,_0x2d36ae);_0xc024f8['length']&&this['_model']['change'](()=>{for(const _0x12c491 of _0xc024f8){const _0x311940=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1d983a,'accept');this['forceDefaultExecution'](()=>_0x311940([_0x12c491],_0x51f27c,_0x3a69b0));}});for(const _0x2afada of _0x654a91){let _0xc597dc=null,_0x50eab4=_0x2afada['start'],_0x1d62d6=_0x2afada['end'];for(const {suggestion:_0x15c58a,meta:_0x1a7b67}of this['_findSuggestions'](_0x2afada,'formatInline')){if(!_0x1a7b67['isOwn'])continue;if(_0x15c58a['subType']!=_0x1d983a)continue;if(!Lt(_0x15c58a,_0x3a69b0))continue;const _0x1e5161=_0x15c58a['getFirstRange']();if(_0x1e5161['containsRange'](_0x2afada,!0x0))return null;_0x50eab4=_0x50eab4['isBefore'](_0x1e5161['start'])?_0x50eab4:_0x1e5161['start'],_0x1d62d6=_0x1d62d6['isAfter'](_0x1e5161['end'])?_0x1d62d6:_0x1e5161['end'],_0xc597dc?_0x1e5161['start']['isBefore'](_0xc597dc['getFirstRange']()['start'])?(_0xc597dc['removeMarkers'](),_0xc597dc=_0x15c58a):_0x15c58a['removeMarkers']():_0xc597dc=_0x15c58a;}const _0x3d5561=this['_model']['createRange'](_0x50eab4,_0x1d62d6);if(_0xc597dc)this['_setSuggestionRange'](_0xc597dc,_0x3d5561);else{const _0x53de28=_0x107e61(),_0x22f1d1=_0x5b40cf['id'];this['_setSuggestionData']({'id':_0x53de28,'type':'formatInline:'+_0x1d983a,'data':_0x51f27c,'createdAt':new Date(),'authorId':_0x22f1d1,'attributes':_0x3a69b0}),this['_addSuggestionMarker']('formatInline:'+_0x1d983a,_0x53de28,_0x22f1d1,_0x3d5561);}}return null;}['markBlockFormat'](_0x28e747,_0x104d16,_0x47423f=[],_0x4ddd46=null,_0x40c560={}){_0x104d16['formatGroupId']||(_0x104d16['formatGroupId']=_0x104d16['commandName']),_0x104d16['multipleBlocks']=_0x28e747['is']('range'),_0x4ddd46=_0x4ddd46||Vt(_0x104d16);const _0x35748f=_0x47423f['map'](_0x1d3b6=>Gt(_0x1d3b6,this['_model'])),_0x4f3746=_0x28e747['is']('range')?_0x28e747:Gt(_0x28e747,this['_model']);if('never'===this['_trackFormatChanges']){const _0xca87bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ddd46,'accept');return this['forceDefaultExecution'](()=>_0xca87bf([_0x4f3746],_0x104d16,_0x40c560)),null;}_0x35748f['push'](_0x4f3746);let _0x30813c=!0x0;for(const _0x51104d of _0x35748f)if(!this['_rangeIsInLocalUserInsertion'](_0x51104d)){_0x30813c=!0x1;break;}if(_0x30813c&&'always'!==this['_trackFormatChanges']){const _0x42540a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ddd46,'accept');return this['forceDefaultExecution'](()=>_0x42540a([_0x4f3746],_0x104d16,_0x40c560)),null;}let _0xada77a=null,_0x16dc6b=_0x4f3746['start'],_0xfd3630=_0x4f3746['end'];for(const {suggestion:_0x5482c3,meta:_0xd10b40}of this['_findSuggestions'](_0x4f3746,'formatBlock')){if(!_0xd10b40['isOwn'])continue;if(_0xd10b40['isNextTo']||_0xd10b40['containsRangeInObject']||_0xd10b40['isInsideObject'])continue;if(_0x5482c3['data']['formatGroupId']!=_0x104d16['formatGroupId'])continue;if(!Lt(_0x5482c3,_0x40c560))continue;const _0x307b88=_0x5482c3['getFirstRange']();if(_0x5482c3['subType']==_0x4ddd46){if(_0x307b88['containsRange'](_0x4f3746,!0x0))return null;_0x16dc6b=_0x16dc6b['isBefore'](_0x307b88['start'])?_0x16dc6b:_0x307b88['start'],_0xfd3630=_0xfd3630['isAfter'](_0x307b88['end'])?_0xfd3630:_0x307b88['end'],_0xada77a?_0x307b88['start']['isBefore'](_0xada77a['getFirstRange']()['start'])?(_0xada77a['removeMarkers'](),_0xada77a=_0x5482c3):_0x5482c3['removeMarkers']():_0xada77a=_0x5482c3;}else{const _0x34d29b=_0x4f3746['getIntersection'](_0x307b88);this['_cutOutSuggestionMarker'](_0x5482c3,_0x34d29b);}}const _0x31c804=this['editor']['plugins']['get']('Users')['me'],_0x52b8fc=_0x107e61(),_0x364d13=_0x31c804['id'];if(_0xada77a)return this['_setSuggestionRange'](_0xada77a,this['_model']['createRange'](_0x16dc6b,_0xfd3630)),_0xada77a;{const _0x1aa153=this['_setSuggestionData']({'id':_0x52b8fc,'type':'formatBlock:'+_0x4ddd46,'data':_0x104d16,'createdAt':new Date(),'authorId':_0x364d13,'attributes':_0x40c560});return this['_addSuggestionMarker']('formatBlock:'+_0x4ddd46,_0x52b8fc,_0x364d13,this['_model']['createRange'](_0x16dc6b,_0xfd3630)),_0x1aa153;}}['markMultiRangeBlockFormat'](_0x5032e9,_0x4a876a,_0x2b66a4=[],_0x4132f4=null,_0x99e183={}){_0x4a876a['formatGroupId']||(_0x4a876a['formatGroupId']=_0x4a876a['commandName']);const _0x3deab4=_0x5032e9[0x0];_0x4a876a['multipleBlocks']=_0x3deab4['is']('range'),_0x4132f4=_0x4132f4||Vt(_0x4a876a);const _0x1d54bc=_0x2b66a4['map'](_0x75c839=>Gt(_0x75c839,this['_model'])),_0x43fc73=_0x3deab4['is']('range')?_0x5032e9:_0x5032e9['map'](_0x5988dc=>Gt(_0x5988dc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x76df6f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4132f4,'accept');return this['forceDefaultExecution'](()=>_0x76df6f(_0x43fc73,_0x4a876a,_0x99e183)),null;}_0x1d54bc['push'](..._0x43fc73);let _0x1c68b8=!0x0;for(const _0x34784b of _0x1d54bc)if(!this['_rangeIsInLocalUserInsertion'](_0x34784b)){_0x1c68b8=!0x1;break;}if(_0x1c68b8&&'always'!==this['_trackFormatChanges']){const _0x4fd655=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4132f4,'accept');return this['forceDefaultExecution'](()=>_0x4fd655(_0x43fc73,_0x4a876a,_0x99e183)),null;}const _0x558cbf=this['editor']['plugins']['get']('Users')['me'];for(const _0x168cc7 of this['getSuggestions']()){if(_0x168cc7['author']['id']!=_0x558cbf['id'])continue;if('formatBlock'!=_0x168cc7['type']||_0x168cc7['data']['formatGroupId']!=_0x4a876a['formatGroupId'])continue;if(!Lt(_0x168cc7,_0x99e183))continue;const _0x845506=_0x168cc7['subType']==_0x4132f4;for(let _0x14ed65=0x0;_0x14ed65<_0x43fc73['length'];_0x14ed65++){const _0x5a82fe=_0x43fc73[_0x14ed65];for(const _0x30bc4f of _0x168cc7['getMarkers']()){const _0x35a075=_0x30bc4f['getRange']();if(_0x5a82fe['isEqual'](_0x35a075)){_0x845506?(_0x43fc73['splice'](_0x14ed65,0x1),_0x14ed65--):_0x168cc7['removeMarker'](_0x30bc4f['name']);break;}}}}if(0x0==_0x43fc73['length'])return null;const _0x349106=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4132f4,'join');for(const _0x78d84d of this['getSuggestions']())if(_0x78d84d['author']['id']==_0x558cbf['id']&&'formatBlock'==_0x78d84d['type']&&_0x78d84d['data']['formatGroupId']==_0x4a876a['formatGroupId']&&_0x78d84d['subType']==_0x4132f4&&Lt(_0x78d84d,_0x99e183)&&(_0x349106(_0x78d84d['getRanges'](),_0x43fc73)||_0x349106(_0x43fc73,_0x78d84d['getRanges']()))){for(const _0x3d5879 of _0x43fc73)_0x78d84d['addRange'](_0x3d5879);return _0x78d84d;}const _0x2edb77=_0x107e61(),_0x3bdab7=_0x558cbf['id'],_0x459a8f='formatBlock:'+_0x4132f4,_0x3c7118=this['_setSuggestionData']({'id':_0x2edb77,'type':_0x459a8f,'data':_0x4a876a,'createdAt':new Date(),'authorId':_0x3bdab7,'attributes':_0x99e183});for(const _0x4cdd46 of _0x43fc73)this['_addSuggestionMarker'](_0x459a8f,_0x2edb77,_0x3bdab7,_0x4cdd46,u['getMultiRangeId']());return _0x3c7118;}['markDeletion'](_0x98772f,_0x3dec22=null,_0x9f5953={}){if(_0x98772f['isCollapsed'])return null;const _0x4e3ff7=this['editor']['plugins']['get']('Users')['me'],_0x46d1bd=new _0x54c30a(_0x98772f['start'],_0x98772f['end']);for(const {suggestion:_0x19241a,meta:_0xbccd95}of this['_findSuggestions'](_0x46d1bd,'insertion'))if(_0xbccd95['isOwn']&&!_0xbccd95['isNextTo']){if(_0x19241a['isMultiRange']){const _0x5cf934=_0x19241a['getRanges']()['filter'](_0x271232=>'$graveyard'!=_0x271232['root']['rootName']);_0x5cf934['every'](_0x2de2bf=>_0x46d1bd['containsRange'](_0x2de2bf,!0x0))&&_0x19241a['discard']();if(_0x5cf934['some'](_0xdf9d4d=>_0xdf9d4d['containsRange'](_0x46d1bd,!0x0))){const _0x1f9cb3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3dec22,'accept');return this['forceDefaultExecution'](()=>_0x1f9cb3([_0x46d1bd],null,_0x9f5953)),null;}}else{const _0x2aac19=_0x46d1bd['getIntersection'](_0x19241a['getFirstRange']());null!==_0x2aac19&&_0x19241a['_onDiscard']([_0x2aac19],null,_0x9f5953);}}if(_0x46d1bd['detach'](),_0x46d1bd['isCollapsed']||'$graveyard'==_0x46d1bd['root']['rootName'])return null;let _0x3f2451=null,_0x2f4704=_0x46d1bd['start'],_0x20cc51=_0x46d1bd['end'];const _0x2af7fe=this['_findSuggestions'](_0x46d1bd,'deletion');for(const {suggestion:_0x59b036,meta:_0x1f78bb}of _0x2af7fe){const _0x4669e1=this['_model']['createRange'](_0x2f4704,_0x20cc51);if(_0x1f78bb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f78bb['containsRangeInObject']&&!_0x1f78bb['isInsideObject'])){if(_0x59b036['isMultiRange']){if(!Lt(_0x59b036,_0x9f5953))continue;let _0x17dd39=!0x0;for(const _0x3268a9 of _0x59b036['getRanges']()){if(_0x3268a9['containsRange'](_0x4669e1,!0x0))return _0x59b036;_0x4669e1['containsRange'](_0x3268a9)||(_0x17dd39=!0x1);}_0x17dd39&&_0x59b036['discard']();}else{const _0x374b0c=_0x59b036['getFirstRange']();if(_0x374b0c['containsRange'](_0x4669e1,!0x0))return _0x59b036;if(!Lt(_0x59b036,_0x9f5953)){_0x4669e1['containsRange'](_0x374b0c)?_0x59b036['removeMarkers']():_0x374b0c['containsPosition'](_0x2f4704)?_0x2f4704=_0x374b0c['end']:_0x374b0c['containsPosition'](_0x20cc51)&&(_0x20cc51=_0x374b0c['start']);continue;}_0x2f4704=_0x2f4704['isBefore'](_0x374b0c['start'])?_0x2f4704:_0x374b0c['start'],_0x20cc51=_0x20cc51['isAfter'](_0x374b0c['end'])?_0x20cc51:_0x374b0c['end'],_0x9f5953=Object['assign']({},_0x59b036['attributes']),_0x3f2451?_0x374b0c['start']['isBefore'](_0x3f2451['getFirstRange']()['start'])?(_0x3f2451['removeMarkers'](),_0x3f2451=_0x59b036):_0x59b036['removeMarkers']():_0x3f2451=_0x59b036;}}}if(_0x3f2451)return this['_setSuggestionRange'](_0x3f2451,this['_model']['createRange'](_0x2f4704,_0x20cc51)),_0x3f2451;{const _0x2c70bf=_0x107e61(),_0x31c4ad=this['_model']['createRange'](_0x2f4704,_0x20cc51),_0x19e10b=_0x4e3ff7['id'],_0x35bef7=_0x3dec22?'deletion:'+_0x3dec22:'deletion',_0x479025=this['_setSuggestionData']({'id':_0x2c70bf,'type':_0x35bef7,'createdAt':new Date(),'authorId':_0x19e10b,'attributes':_0x9f5953});return this['_addSuggestionMarker'](_0x35bef7,_0x2c70bf,_0x19e10b,_0x31c4ad),_0x479025;}}['markMultiRangeDeletion'](_0x5ba95a,_0x193769='multi',_0x2e0bb8={}){const _0x827c58=this['editor']['plugins']['get']('Users')['me'],_0xa1a77a=_0x5ba95a['map'](_0xb7bf05=>new _0x54c30a(_0xb7bf05['start'],_0xb7bf05['end'])),_0x4e6779=new Set();for(const {suggestion:_0xc2ea74,meta:_0x36a0fe}of this['_findSuggestions'](_0xa1a77a,'insertion'))_0x36a0fe['isOwn']&&!_0x36a0fe['isNextTo']&&_0x4e6779['add'](_0xc2ea74);for(const _0xd5309e of _0x4e6779)if(_0xd5309e['isMultiRange']){const _0xb1fbd7=_0xd5309e['getRanges']();(!_0xd5309e['attributes']||!_0xd5309e['attributes']['skipNestingCheck'])&&(_0xb1fbd7['every'](_0x21e287=>_0xa1a77a['some'](_0x599f6c=>_0x599f6c['containsRange'](_0x21e287,!0x0)))&&_0xd5309e['discard']());if(_0xa1a77a['every'](_0x24cb9f=>_0xb1fbd7['some'](_0x453de5=>_0x453de5['containsRange'](_0x24cb9f,!0x0)))){const _0x299895=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x193769,'accept');return this['forceDefaultExecution'](()=>_0x299895(_0x5ba95a,null,_0x2e0bb8)),null;}}else{const _0x4a5570=_0xd5309e['getFirstRange']();_0xa1a77a['some'](_0x1f77f8=>_0x1f77f8['containsRange'](_0x4a5570,!0x0))&&_0xd5309e['discard']();if(_0xa1a77a['every'](_0x11b2ad=>_0x4a5570['containsRange'](_0x11b2ad,!0x0))){const _0x4c826e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x193769,'accept');return this['forceDefaultExecution'](()=>_0x4c826e(_0xa1a77a,null,_0x2e0bb8)),null;}}const _0x373256=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x193769,'join');let _0x2d8b67=null;for(const _0x2b7578 of this['getSuggestions']())if(_0x2b7578['author']['id']==_0x827c58['id']&&_0x2b7578['isInContent']&&'deletion'==_0x2b7578['type']&&_0x2b7578['subType']==_0x193769&&Lt(_0x2b7578,_0x2e0bb8)&&(_0x373256(_0x2b7578['getRanges'](),_0xa1a77a)||_0x373256(_0xa1a77a,_0x2b7578['getRanges']()))){if(_0x2d8b67){if(_0x2b7578['commentThread']&&_0x2b7578['commentThread']['length'])continue;for(const _0x2fa30d of _0x2b7578['getRanges']())_0x2d8b67['isIntersectingWithRange'](_0x2fa30d)||_0x2d8b67['addRange'](_0x2fa30d);_0x2b7578['removeMarkers']();}else{_0x2d8b67=_0x2b7578;for(const _0x48648f of _0xa1a77a)_0x2b7578['isIntersectingWithRange'](_0x48648f)||_0x2b7578['addRange'](_0x48648f);}}if(_0x2d8b67)return _0x2d8b67;_0x4e6779['clear']();for(const {suggestion:_0x50ff59,meta:_0x1a4652}of this['_findSuggestions'](_0xa1a77a,'deletion'))_0x1a4652['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1a4652['containsRangeInObject']&&!_0x1a4652['isInsideObject'])&&Lt(_0x50ff59,_0x2e0bb8)&&_0x4e6779['add'](_0x50ff59);for(const _0x3e7a37 of _0x4e6779){const _0x5e1831=_0x3e7a37['getRanges']();if(!_0x2e0bb8||!_0x2e0bb8['skipNestingCheck']){if(_0xa1a77a['every'](_0x136fb3=>_0x5e1831['some'](_0x54055b=>_0x54055b['containsRange'](_0x136fb3,!0x0))))return _0x3e7a37;}(!_0x3e7a37['attributes']||!_0x3e7a37['attributes']['skipNestingCheck'])&&(_0x5e1831['every'](_0x384e62=>_0xa1a77a['some'](_0x10c775=>_0x10c775['containsRange'](_0x384e62,!0x0)))&&_0x3e7a37['discard']());}const _0x31b37e=_0x107e61(),_0x1186ae=_0x827c58['id'],_0x2062fc='deletion:'+_0x193769,_0x1a06aa=this['_setSuggestionData']({'id':_0x31b37e,'type':_0x2062fc,'createdAt':new Date(),'authorId':_0x1186ae,'attributes':_0x2e0bb8});for(const _0x3218b0 of _0xa1a77a)_0x3218b0['detach'](),_0x3218b0['isCollapsed']||'$graveyard'==_0x3218b0['root']['rootName']||this['_addSuggestionMarker'](_0x2062fc,_0x31b37e,_0x1186ae,_0x3218b0,u['getMultiRangeId']());return _0x1a06aa;}['markAttributeChange'](_0x4e9d3e,_0x1cb9ea,_0x58ef8c,_0x2b78e9,_0x171de0){if(_0x4e9d3e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a3ece=this['editor']['plugins']['get']('Users')['me']['id'],_0x1120da=Array['from'](this['_suggestions']['values']())['filter'](_0x3a0d9=>'attribute'==_0x3a0d9['type']&&_0x3a0d9['data']['key']==_0x1cb9ea&&_0x3a0d9['isIntersectingWithRange'](_0x4e9d3e));if('default'===this['_trackFormatChanges']){const _0x3df32b=this['_findSuggestions'](_0x4e9d3e,'insertion')['filter'](({meta:_0x17f430})=>_0x17f430['isOwn']&&!_0x17f430['isInsideObject']&&!_0x17f430['isNextTo'])['map'](({suggestion:_0x251db6})=>_0x251db6);_0x1120da['unshift'](..._0x3df32b);}const _0x24ac48=new Map([[_0x4e9d3e,_0x58ef8c]]);for(const _0xf9e6e2 of _0x1120da){const _0x2c5679='attribute'==_0xf9e6e2['type']?_0xf9e6e2['data']['oldValue']:void 0x0,_0x306d76=_0xf9e6e2['getFirstRange'](),_0x32411c=Array['from'](_0x24ac48['keys']())['find'](_0x2575e4=>_0x2575e4['isIntersecting'](_0x306d76));if(!_0x32411c)continue;const _0xcd9deb=_0x32411c['getDifference'](_0x306d76);this['_isBlockAttribute'](_0x1cb9ea)&&'insertion'==_0xf9e6e2['type']&&0x0!=_0xcd9deb['length']||(_0x24ac48['delete'](_0x32411c),_0xcd9deb['forEach'](_0x47304a=>{_0x24ac48['set'](_0x47304a,_0x58ef8c);}),'insertion'!=_0xf9e6e2['type']&&_0x2c5679!=_0x2b78e9&&_0x24ac48['set'](_0x32411c['getIntersection'](_0x306d76),_0x2c5679));}const _0x51a71d=[];for(const [_0x36d6ad,_0x281cd9]of _0x24ac48){const _0x50df02=_0x107e61(),_0x587f64={'key':_0x1cb9ea,'oldValue':_0x281cd9,'newValue':_0x2b78e9};_0x1cb9ea['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':_0x1cb9ea});const _0x17e2c3=('attribute:'+(_0x1cb9ea+'|'+Vt({'newValue':_0x2b78e9})))['substring'](0x0,0x3c),_0x402db8=this['_setSuggestionData']({'id':_0x50df02,'type':_0x17e2c3,'data':_0x587f64,'createdAt':new Date(),'authorId':_0x2a3ece,'attributes':_0x171de0});_0x51a71d['push'](_0x402db8),this['_addSuggestionMarker'](_0x17e2c3,_0x50df02,_0x2a3ece,_0x36d6ad);}return _0x51a71d;}['enableDefaultAttributesIntegration'](_0x424cd1){this['enableCommand'](_0x424cd1,(_0x4fa199,..._0x23db7b)=>{this['_recordAttributeChanges'](()=>{_0x4fa199(..._0x23db7b);});});}['registerBlockAttribute'](_0x2fabb2){this['_blockAttributeKeys']['add'](_0x2fabb2);}['registerInlineAttribute'](_0x59b499){this['_inlineAttributeKeys']['add'](_0x59b499);}['_getAttributeKey'](_0x364d09){return'attribute'==_0x364d09['type']?_0x364d09['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x53c28f,_0xfa8463){const _0x319742=_0x53c28f['getFirstMarker']();this['_model']['change'](_0x174900=>{_0x174900['updateMarker'](_0x319742,{'range':_0xfa8463});});}['_addThreadToSuggestion'](_0x115dae){const _0x1c6fac=_0x115dae['id'],_0x131d71=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1c6fac)||this['_commentsRepository']['addCommentThread']({'channelId':_0x131d71,'threadId':_0x1c6fac,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5add5e=this['_commentsRepository']['getCommentThread'](_0x1c6fac);_0x5add5e['unbind']('isRemovable'),_0x5add5e['isRemovable']=!0x1,_0x115dae['commentThread']=_0x5add5e;}['_checkSuggestionCorrectness'](_0x1702f3,_0x544ecb,_0x8da0a8,_0xa6edc8){if(_0x1702f3['type']!=_0x544ecb||_0x1702f3['subType']!=_0x8da0a8||_0x1702f3['creator']['id']!=_0xa6edc8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4054be('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x332184,_0xe0143c){const _0x1aec70=_0x332184['getFirstRange']();if(_0xe0143c['isEqual'](_0x1aec70))_0x332184['removeMarkers']();else{if(_0x1aec70['containsRange'](_0xe0143c)){const _0x373e5d=this['_model']['createPositionAt'](_0xe0143c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x332184,this['_model']['createRange'](_0x1aec70['start'],_0x373e5d));const _0x2b9e28=_0x107e61(),_0x5d9a8b=_0x332184['creator']['id'],_0x53f840=_0x332184['type']+':'+_0x332184['subType'];this['_setSuggestionData']({'id':_0x2b9e28,'type':_0x53f840,'createdAt':new Date(),'authorId':_0x5d9a8b,'data':_0x332184['data'],'attributes':_0x332184['attributes']});const _0x36db2f=this['_model']['createPositionAt'](_0xe0143c['end']['parent'],'after'),_0x124650=this['_model']['createRange'](_0x36db2f,_0x1aec70['end']);this['_addSuggestionMarker'](_0x53f840,_0x2b9e28,_0x5d9a8b,_0x124650);}else{if(_0x1aec70['containsPosition'](_0xe0143c['start'])){const _0x49c6f4=this['_model']['createPositionAt'](_0xe0143c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x332184,this['_model']['createRange'](_0x1aec70['start'],_0x49c6f4));}else{const _0x29c1f2=this['_model']['createPositionAt'](_0xe0143c['end']['parent'],'after');this['_setSuggestionRange'](_0x332184,this['_model']['createRange'](_0x29c1f2,_0x1aec70['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5e03b0){for(const {suggestion:_0xf9c657,meta:_0x158eb8}of this['_findSuggestions'](_0x5e03b0,'insertion')){if(!_0x158eb8['isOwn'])continue;const _0x39ef65=_0xf9c657['getRanges']();for(const _0x33eb2a of _0x39ef65)if(!_0x5e03b0['getDifference'](_0x33eb2a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1c1ec7){const _0x1f4fea=this['editor']['plugins']['get']('Users')['getUser'](_0x1c1ec7);if(!_0x1f4fea)throw new _0x4054be('track-changes-user-not-found',this);return _0x1f4fea;}['_getExternalAuthor'](_0x2c283e){const _0x48fab3=this['editor']['plugins']['get']('Users'),_0x4f6587=_0x25faca('external:'+_0x2c283e),_0x418ac1=_0x48fab3['getUser'](_0x4f6587);return _0x418ac1||_0x48fab3['addUser']({'id':_0x4f6587,'name':_0x2c283e});}['_createSuggestion'](_0x1bdd4a,_0x524db6,_0x16ee26,_0x5ccf84,_0x1d7aa8){const _0x51fdd3=this['_getAuthorFromId'](_0x5ccf84),_0x43974e=this['_suggestionFactory']['buildSuggestion'](_0x1bdd4a,_0x524db6,_0x16ee26,_0x51fdd3,_0x1d7aa8,_0x2b72c8=>{this['_updateSuggestionData'](_0x16ee26,{'attributes':_0x2b72c8});const _0x1c78f7=this['getSuggestion'](_0x16ee26);this['_joinWithAdjacentSuggestions'](new Set([_0x1c78f7])),this['_refreshSuggestionsChain'](new Set([_0x1c78f7]));});return this['listenTo'](_0x43974e,'accept',()=>{this['_updateSuggestionData'](_0x16ee26,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x43974e,'discard',()=>{this['_updateSuggestionData'](_0x16ee26,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x16ee26,_0x43974e),this['_suggestionState']['set'](_0x43974e,'notReady'),_0x43974e;}['_splitMarkerName'](_0x483597){const _0x366409=_0x483597['split'](':');return{'group':_0x366409[0x0],'type':_0x366409[0x1],'subType':_0x366409['length']>=0x5?_0x366409[0x2]:null,'id':_0x366409['length']<0x5?_0x366409[0x2]:_0x366409[0x3],'authorId':_0x366409['length']<0x5?_0x366409[0x3]:_0x366409[0x4],'markerCount':0x6==_0x366409['length']?_0x366409[0x5]:null};}['_breakSuggestionMarker'](_0x1c8386,_0x2fb786,_0x47cab8){const _0x5a8424=_0x1c8386['getFirstRange'](),_0x14e50a=_0x5a8424['start'],_0x1b03b4=_0x5a8424['end'];this['_setSuggestionRange'](_0x1c8386,this['_model']['createRange'](_0x14e50a,_0x2fb786));const _0xe860df=_0x107e61(),_0x3217f4=_0x1c8386['creator']['id'],_0x315955=_0x1c8386['type']+(_0x1c8386['subType']?':'+_0x1c8386['subType']:'');this['_setSuggestionData']({'id':_0xe860df,'type':_0x315955,'createdAt':new Date(),'authorId':_0x3217f4,'originalSuggestionId':_0x1c8386['id'],'attributes':_0x1c8386['attributes'],'data':_0x1c8386['data']});const _0x74c87=this['_getAttributeKey'](_0x1c8386);('formatBlock'==_0x1c8386['type']||_0x74c87&&this['_isBlockAttribute'](_0x74c87))&&(_0x47cab8=this['_model']['createPositionBefore'](_0x47cab8['parent'])),this['_addSuggestionMarker'](_0x315955,_0xe860df,_0x3217f4,this['_model']['createRange'](_0x47cab8,_0x1b03b4));}['_findSuggestions'](_0x32cea8,_0x5bb33f=null){const _0x104514=[],_0x4dd9d4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x32cea8)||(_0x32cea8=[_0x32cea8]);for(const _0x380089 of this['getSuggestions']()){if(!_0x380089['isInContent'])continue;if(_0x5bb33f&&_0x380089['type']!=_0x5bb33f)continue;let _0x21c937=!0x1;for(const _0x16253a of _0x380089['getRanges']()){for(const _0x33fc21 of _0x32cea8){const _0xcea03f=_0x33fc21['start']['isEqual'](_0x16253a['end'])||_0x33fc21['end']['isEqual'](_0x16253a['start']);if(_0xcea03f||_0x33fc21['getIntersection'](_0x16253a)){const _0x37ff3f=_0x33fc21['containsRange'](_0x16253a)&&Rt(this['_model']['schema'],_0x16253a['start'],_0x33fc21),_0x333d16=_0x16253a['containsRange'](_0x33fc21)&&Rt(this['_model']['schema'],_0x33fc21['start'],_0x16253a);_0x104514['push']({'suggestion':_0x380089,'meta':{'isOwn':_0x4dd9d4==_0x380089['author'],'isNextTo':_0xcea03f,'isInsideObject':_0x37ff3f,'containsRangeInObject':_0x333d16}}),_0x21c937=!0x0;break;}}if(_0x21c937)break;}}return _0x104514;}['_addSuggestionMarker'](_0x5ef6af,_0x4fe5f7,_0x55e173,_0x36b0a1,_0x33745b){this['_model']['change'](_0x599a61=>{let _0x1a90b1='suggestion:'+_0x5ef6af+':'+_0x4fe5f7+':'+_0x55e173;_0x33745b&&(_0x1a90b1=_0x1a90b1+':'+_0x33745b),_0x599a61['addMarker'](_0x1a90b1,{'range':_0x36b0a1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3b0cae){const _0x7929e6=_0x3b0cae['previous'],_0x4aa476=_0x3b0cae['next'];_0x3b0cae['previous']=null,_0x3b0cae['next']=null,null!=_0x7929e6&&_0x7929e6['next']==_0x3b0cae&&(_0x7929e6['next']=_0x4aa476),null!=_0x4aa476&&_0x4aa476['previous']==_0x3b0cae&&(_0x4aa476['previous']=_0x7929e6),'ready'==this['_suggestionState']['get'](_0x3b0cae)&&(this['_suggestionState']['set'](_0x3b0cae,'removed'),this['fire']('suggestionUnloaded',_0x3b0cae,_0x7929e6,_0x4aa476));}['_setSuggestionData'](_0x30d31c){const _0xb1e94d=_0x30d31c['id'],_0x188b83=this['addSuggestionData'](_0x30d31c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x50e2f2=this['editor']['plugins']['get']('PendingActions'),_0x664d4a=_0x188b83['hasComments'],_0x2f42cf=_0x188b83['subType']?_0x188b83['type']+':'+_0x188b83['subType']:_0x188b83['type'],_0x24b56c=this['editor']['locale'],_0x14be4b=_0x50e2f2['add'](o(_0x24b56c,'PENDING_ACTION_SUGGESTION')),_0x44e06e={'id':_0xb1e94d,'type':_0x2f42cf,'hasComments':_0x664d4a,'data':_0x30d31c['data']||null,'originalSuggestionId':_0x30d31c['originalSuggestionId']||null,'attributes':_0x188b83['attributes']};this['_adapter']['addSuggestion'](_0x44e06e)['then'](_0x9cb166=>{_0x188b83['_saved']=!0x0,_0x50e2f2['remove'](_0x14be4b),_0x9cb166&&_0x9cb166['createdAt']&&(this['_suggestions']['get'](_0xb1e94d)['createdAt']=_0x9cb166['createdAt']);})['catch'](_0x4dcc90=>{throw _0x8dc560('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x188b83['discard']();}),_0x188b83['stopListening'](),this['_suggestions']['delete'](_0x188b83['id']),this['_suggestionState']['delete'](_0x188b83),_0x4dcc90;});}return _0x188b83;}['_isBlockAttribute'](_0x5b03f8){return this['_blockAttributeKeys']['has'](_0x5b03f8);}['_updateSuggestionData'](_0x21b0b3,_0x45fc85){const _0x841f46=this['editor']['plugins']['get']('PendingActions'),_0x45be60=this['getSuggestion'](_0x21b0b3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x45be60['_saved']){const _0x3872ae=_0x841f46['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x21b0b3,_0x45fc85)['then'](()=>{_0x841f46['remove'](_0x3872ae);});}else _0x45be60['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x21b0b3,_0x45fc85);});}}['_getSuggestionData'](_0x116331){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4054be('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x116331);}['_handleNewSuggestionMarker'](_0x4f2ac5){const {id:_0x2e6090,type:_0x2a9f37,subType:_0x2cb4d1,authorId:_0x1d0e87}=this['_splitMarkerName'](_0x4f2ac5),_0x238358=this['_suggestions']['get'](_0x2e6090)||this['_createSuggestion'](_0x2a9f37,_0x2cb4d1,_0x2e6090,_0x1d0e87,{});switch(this['_checkSuggestionCorrectness'](_0x238358,_0x2a9f37,_0x2cb4d1,_0x1d0e87),this['_suggestionState']['get'](_0x238358)){case'notReady':this['_getSuggestionData'](_0x2e6090)['then'](_0x1dd238=>{let _0x21c79b=Promise['resolve']();_0x1dd238['hasComments']&&(_0x21c79b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2e6090})),_0x21c79b['then'](()=>{this['addSuggestionData'](_0x1dd238)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x238358,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2e6090,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x238358,'ready'),this['fire']('suggestionLoaded',_0x238358);break;case'ready':this['fire']('suggestionChanged',_0x238358);}return _0x238358['addMarkerName'](_0x4f2ac5),_0x238358;}['_refreshSuggestionsChain'](_0x423e24){const _0x52e108=Array['from'](_0x423e24),_0x57132a=_0x52e108['filter'](_0x411c9d=>'attribute'==_0x411c9d['type']);this['_refreshAttributeSuggestionsChain'](_0x57132a);const _0x3e4a80=_0x52e108['filter'](_0x4b0389=>!_0x4b0389['isMultiRange']&&'attribute'!=_0x4b0389['type']),_0x502a30=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x173aaf=>!_0x173aaf['isMultiRange']&&'attribute'!=_0x173aaf['type']),_0xe97edf=_0x502a30['filter'](_0x42b3d5=>!_0x423e24['has'](_0x42b3d5)),_0x18eac4=new Map(_0x502a30['map'](_0x281b0a=>[_0x281b0a,this['_suggestionFactory']['getSuggestionCallback'](_0x281b0a['type'],_0x281b0a['subType'],'chain')])),_0x23bd6a=new Map(_0x502a30['map'](_0xb4fa33=>[_0xb4fa33,_0xb4fa33['getFirstRange']()])),_0x54bd00=new Set(),_0x53b4f9=new Set();for(let _0x405e30=0x0;_0x405e30<_0x3e4a80['length'];_0x405e30++)_0x10e143(_0x3e4a80[_0x405e30],_0x3e4a80,_0x405e30+0x1);for(let _0x9d3ef7=0x0;_0x9d3ef7<_0x3e4a80['length'];_0x9d3ef7++)_0x10e143(_0x3e4a80[_0x9d3ef7],_0xe97edf,0x0);const _0x391066=new Set();for(let _0x306a5c=0x0;_0x306a5c<_0x3e4a80['length'];_0x306a5c++){const _0x548a97=_0x3e4a80[_0x306a5c];!_0x53b4f9['has'](_0x548a97)&&_0x548a97['previous']&&(_0x391066['add'](_0x548a97['previous']),_0x548a97['previous']['next']===_0x548a97&&(_0x548a97['previous']['next']=null),_0x548a97['previous']=null),!_0x54bd00['has'](_0x548a97)&&_0x548a97['next']&&(_0x391066['add'](_0x548a97['next']),_0x548a97['next']['previous']===_0x548a97&&(_0x548a97['next']['previous']=null),_0x548a97['next']=null);}function _0x10e143(_0x406719,_0x449d19,_0x5a2be0){for(let _0x5c2a02=_0x5a2be0;_0x5c2a02<_0x449d19['length'];_0x5c2a02++){const _0x5ded7f=_0x20f4dd(_0x406719,_0x449d19[_0x5c2a02]);_0x5ded7f&&(_0x5ded7f[0x0]['next']=_0x5ded7f[0x1],_0x5ded7f[0x1]['previous']=_0x5ded7f[0x0],_0x54bd00['add'](_0x5ded7f[0x0]),_0x53b4f9['add'](_0x5ded7f[0x1]));}}function _0x20f4dd(_0x37abc0,_0x5e1232){if(_0x37abc0['author']['id']!==_0x5e1232['author']['id'])return null;const _0x425f15=_0x18eac4['get'](_0x37abc0)(_0x37abc0,_0x5e1232,_0x23bd6a['get'](_0x37abc0),_0x23bd6a['get'](_0x5e1232));if(!_0x425f15)return null;return _0x18eac4['get'](_0x5e1232)(_0x37abc0,_0x5e1232,_0x23bd6a['get'](_0x37abc0),_0x23bd6a['get'](_0x5e1232))?_0x425f15[0x1]['commentThread']&&_0x425f15[0x1]['commentThread']['length']?null:_0x425f15:null;}_0x391066['size']&&this['_refreshSuggestionsChain'](_0x391066);}['_refreshAttributeSuggestionsChain'](_0x1e4cd9){if(0x0==_0x1e4cd9['length'])return;const _0x56c083=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b99ee=>'attribute'==_0x3b99ee['type']&&_0x3b99ee['_isDataLoaded']),_0x3bd086=[],_0x58c7e3=new Map();for(const _0x1aaf4a of _0x56c083){const _0x285d0b=_0x25faca(_0x1aaf4a['attributes']);_0x58c7e3['has'](_0x285d0b)||(_0x58c7e3['set'](_0x285d0b,_0x3bd086['length']),_0x3bd086['push']([]));const _0x2f4bea=_0x58c7e3['get'](_0x285d0b);_0x3bd086[_0x2f4bea]['push'](_0x1aaf4a);}!(function(){_0x3bd086['sort']((_0x436611,_0x5ceaf5)=>{const _0x560658=_0x436611[0x0]['createdAt'],_0x906b4d=_0x5ceaf5[0x0]['createdAt'];return _0x560658==_0x906b4d?_0x436611[0x0]['attributes']['groupId']<_0x5ceaf5[0x0]['attributes']['groupId']?-0x1:0x1:_0x560658<_0x906b4d?-0x1:0x1;});for(const _0x387c79 of _0x3bd086)_0x387c79['sort']((_0x549a49,_0x5dbca7)=>_0x549a49['id']<_0x5dbca7['id']?-0x1:0x1);}());for(let _0x53d982=0x0;_0x53d982<_0x3bd086['length'];_0x53d982++){if(0x0==_0x3bd086[_0x53d982]['length'])continue;const _0x16f99b=[];for(let _0x80c652=_0x53d982+0x1;_0x80c652<_0x3bd086['length'];_0x80c652++)0x0!=_0x3bd086[_0x80c652]['length']&&_0x1b739f(_0x3bd086[_0x53d982],_0x3bd086[_0x80c652])&&_0x16f99b['push'](_0x80c652);for(const _0xb3ba4c of _0x16f99b)_0x3bd086[_0x53d982]=_0x3bd086[_0x53d982]['concat'](_0x3bd086[_0xb3ba4c]),_0x3bd086[_0xb3ba4c]=[];}for(const _0x13ff6d of _0x3bd086)for(let _0x7b5d71=0x0;_0x7b5d71<_0x13ff6d['length'];_0x7b5d71++)_0x13ff6d[_0x7b5d71]['next']=_0x13ff6d[_0x7b5d71+0x1]||null;for(const _0x1ea134 of _0x3bd086)for(let _0x159be8=0x0;_0x159be8<_0x1ea134['length'];_0x159be8++)_0x1ea134[_0x159be8]['previous']=_0x1ea134[_0x159be8-0x1]||null;function _0x1b739f(_0x58db0b,_0x1d5cb3){if(_0x58db0b[0x0]['attributes']['groupId']!==_0x1d5cb3[0x0]['attributes']['groupId']&&_0x58db0b[0x0]['author']!==_0x1d5cb3[0x0]['author'])return!0x1;if(!function(_0x5ab0cb,_0x346af0){if(!_0x5ab0cb['hasComments']&&!_0x346af0['hasComments'])return!0x0;if(_0x5ab0cb['hasComments']&&_0x346af0['hasComments'])return!0x1;if(_0x5ab0cb['hasComments']&&_0x346af0['createdAt']<_0x5ab0cb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x346af0['hasComments']&&_0x5ab0cb['createdAt']<_0x346af0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x58db0b[0x0],_0x1d5cb3[0x0]))return!0x1;const _0x1a0196=Bt(_0x58db0b[0x0]['attributes'],'groupId'),_0xa7c031=Bt(_0x1d5cb3[0x0]['attributes'],'groupId');if(!_0x2ef343(_0x1a0196,_0xa7c031))return!0x1;return!!_0x58db0b['every'](_0xcf0b91=>_0x1d5cb3['some'](_0x5d6d4e=>_0xcf0b91['getFirstRange']()['isEqual'](_0x5d6d4e['getFirstRange']())))&&_0x1d5cb3['every'](_0x18085e=>_0x58db0b['some'](_0x59da31=>_0x18085e['getFirstRange']()['isEqual'](_0x59da31['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x68f76b){const _0x1b3bf9=Array['from'](_0x68f76b),_0x1143ed=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2bad5d=_0x1143ed['filter'](_0x44dcb7=>!_0x68f76b['has'](_0x44dcb7)),_0xb1b76a=new Map(_0x1b3bf9['map'](_0x4db741=>[_0x4db741,this['_suggestionFactory']['getSuggestionCallback'](_0x4db741['type'],_0x4db741['subType'],'join')])),_0x12859a=new Map(_0x1143ed['map'](_0x18589b=>[_0x18589b,_0x18589b['getRanges']()]));for(let _0x10dad6=0x0;_0x10dad6<_0x1b3bf9['length'];_0x10dad6++){if(_0x1029cd(this,_0x1b3bf9[_0x10dad6],_0x1b3bf9,_0x10dad6+0x1))return!0x0;}for(let _0x2edb45=0x0;_0x2edb45<_0x1b3bf9['length'];_0x2edb45++){if(_0x1029cd(this,_0x1b3bf9[_0x2edb45],_0x2bad5d,0x0))return!0x0;}return!0x1;function _0x1029cd(_0x5ac2d0,_0x6d89e2,_0x3a41c0,_0x13e4d4){for(let _0x51915a=_0x13e4d4;_0x51915a<_0x3a41c0['length'];_0x51915a++){const _0x281a08=_0x3a41c0[_0x51915a];if(_0x281a08['type']!==_0x6d89e2['type']||_0x281a08['author']['id']!==_0x6d89e2['author']['id']||_0x281a08['subType']!==_0x6d89e2['subType'])continue;if(!Pt(_0x6d89e2,_0x281a08,['groupId']))continue;if('attribute'==_0x6d89e2['type']&&_0x6d89e2['data']['oldValue']!=_0x281a08['data']['oldValue'])continue;if('attribute'==_0x6d89e2['type']&&_0x5ac2d0['_isBlockAttribute'](_0x6d89e2['data']['key']))continue;if('formatBlock'==_0x6d89e2['type']){const _0x4ec909=_0x5ac2d0['editor']['model'],_0x100930=_0x6d89e2['getContainedElement']();if(_0x100930&&(_0x4ec909['schema']['isObject'](_0x100930)||_0x4ec909['schema']['isLimit'](_0x100930)))continue;}const _0x149e09=_0xb1b76a['get'](_0x6d89e2),_0x420a4e=_0x12859a['get'](_0x6d89e2),_0x7a7b8=_0x12859a['get'](_0x281a08),_0x154c73=_0x6d89e2['commentThread']&&_0x6d89e2['commentThread']['length'],_0x356b71=_0x281a08['commentThread']&&_0x281a08['commentThread']['length'];if(!_0x154c73&&_0x149e09(_0x7a7b8,_0x420a4e))return _0x5ac2d0['_joinSuggestions'](_0x281a08,_0x6d89e2),_0x12859a['delete'](_0x6d89e2),!0x0;if(!_0x356b71&&_0x149e09(_0x420a4e,_0x7a7b8))return _0x5ac2d0['_joinSuggestions'](_0x6d89e2,_0x281a08),_0x12859a['delete'](_0x281a08),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2f0ac8,_0x2c3b00){if(_0x2f0ac8['isMultiRange']){for(const _0x310568 of _0x2c3b00['getRanges']())_0x2f0ac8['addRange'](_0x310568);}else{const _0x52c253=_0x2c3b00['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2f0ac8,this['_model']['createRange'](_0x2f0ac8['getFirstRange']()['start'],_0x52c253));}_0x2c3b00['removeMarkers']();}['_getMarkerAnnouncementText'](_0x676d11,_0xfb0b0){const _0x55ad32=_0x676d11['startsWith']('format')||_0x676d11['startsWith']('attribute')?'FORMATTING':_0x676d11['toUpperCase']();return o(this['editor']['locale'],_0xfb0b0+'_'+_0x55ad32+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x39da7e=this['editor'];if(!_0x39da7e['ui'])return;const {ariaLiveAnnouncer:_0x203b74}=_0x39da7e['ui'];_0x2efde5(this['_model'],({left:_0x2dae08,entered:_0x4c5545})=>{for(const _0x418034 of _0x2dae08){const {group:_0x112a93,type:_0x50c46f}=this['_splitMarkerName'](_0x418034['name']);if('suggestion'===_0x112a93){_0x203b74['announce'](this['_getMarkerAnnouncementText'](_0x50c46f,'LEAVE'));break;}}for(const _0x39c294 of _0x4c5545){const {group:_0x5ac402,type:_0x7aea01}=this['_splitMarkerName'](_0x39c294['name']);if('suggestion'===_0x5ac402){_0x203b74['announce'](this['_getMarkerAnnouncementText'](_0x7aea01,'ENTER'));break;}}});}['_processAttributeChanges'](_0x2fb442){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1149cd=this['editor'],_0x2ced6a=_0x1149cd['model']['document']['differ']['getChanges']();if(0x0==_0x2ced6a['length'])return!0x1;const _0x1e3d6d=[],_0x103d6a=_0x2ced6a['filter'](_0x27575c=>'attribute'==_0x27575c['type']),_0x31fb3b=_0x2ced6a['filter'](_0x5d1f73=>'insert'==_0x5d1f73['type']&&'$text'!=_0x5d1f73['name']),_0x4acf70=_0x2ced6a['filter'](_0x26596a=>'remove'==_0x26596a['type']&&'$text'!=_0x26596a['name']);for(const _0x4ff4a3 of _0x103d6a)_0x1e3d6d['push']({'key':_0x4ff4a3['attributeKey'],'newValue':_0x4ff4a3['attributeNewValue'],'oldValue':_0x4ff4a3['attributeOldValue'],'range':Ot(_0x4ff4a3['range'],_0x1149cd['model'])});for(const _0x829a92 of _0x31fb3b){const _0x43749a=_0x4acf70['find'](_0x595f76=>_0x595f76['position']['isEqual'](_0x829a92['position']));_0x43749a&&_0x1e3d6d['push']({'key':m,'newValue':_0x829a92['name'],'oldValue':_0x43749a['name'],'range':_0x1149cd['model']['createRangeOn'](_0x829a92['position']['nodeAfter'])});}return 0x0!=_0x1e3d6d['length']&&this['_reduceExistingSuggestions'](_0x2fb442,_0x1e3d6d);}['_processAttributeSuggestions'](_0x257823){let _0xb83ab4=!0x1;const _0x561b56=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4e78fd=>_0x4e78fd['data']['newRange']&&_0x4e78fd['name']['startsWith']('suggestion:attribute:'));for(const _0x1241b4 of _0x561b56){const {subType:_0x15cca6,id:_0x125af3}=this['_splitMarkerName'](_0x1241b4['name']),_0x410d16=_0x15cca6['split']('|')[0x0];for(const _0x2239dc of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2239dc['id']!=_0x125af3&&'attribute'==_0x2239dc['type']&&_0x2239dc['data']&&_0x2239dc['data']['key']==_0x410d16&&_0x2239dc['getFirstRange']()['isIntersecting'](_0x1241b4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2239dc,_0x1241b4['data']['newRange'],_0x257823),_0xb83ab4=!0x0);}return _0xb83ab4;}['_recordAttributeChanges'](_0x33c266){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x33c266();}['_isRegisteredAttribute'](_0x636f86){const _0x29524b=this['_isBlockAttribute'](_0x636f86),_0x10d22d=this['_inlineAttributeKeys']['has'](_0x636f86);return _0x29524b||_0x10d22d;}['_reduceExistingSuggestions'](_0x8490e9,_0x29a59c){if(0x0==_0x29a59c['length'])return!0x1;let _0x4a32ec=!0x1;for(const _0x2b1726 of _0x29a59c){const _0x5da5e6=this['_findSuggestions'](_0x2b1726['range'],'attribute')['filter'](_0x262be1=>!_0x262be1['meta']['isNextTo'])['map'](_0x36102e=>_0x36102e['suggestion']),_0x2bd541=_0x25faca({'newValue':_0x2b1726['newValue']});_0x5da5e6['filter'](_0x299c41=>{const [_0x35131e,_0x5975f0]=_0x299c41['subType']['split']('|');return _0x35131e==_0x2b1726['key']&&_0x5975f0!=_0x2bd541;})['forEach'](_0xb4f9d6=>{this['_reduceSuggestionAttributeRange'](_0xb4f9d6,_0x2b1726['range'],_0x8490e9),_0x4a32ec=!0x0;});}return _0x4a32ec;}['_reduceSuggestionAttributeRange'](_0x41e821,_0x5e2765,_0x48e02c){const _0x2c3eb1=_0x41e821['getFirstRange']()['getDifference'](_0x5e2765);0x0!==_0x2c3eb1['length']?0x1!==_0x2c3eb1['length']?this['_breakSuggestionMarker'](_0x41e821,_0x5e2765['start'],_0x5e2765['end']):this['_setSuggestionRange'](_0x41e821,_0x2c3eb1[0x0]):_0x48e02c['removeMarker'](_0x41e821['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4a3f95){this['_editor']=_0x4a3f95,this['_model']=_0x4a3f95['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xba7c84,_0x327eb9,_0x469cf3,_0x2e8378,_0x23a57c,_0x2057e1){return new u(this['_model'],{'type':_0xba7c84,'subType':_0x327eb9,'id':_0x469cf3,'author':_0x2e8378,'creator':_0x2e8378,'attributes':_0x23a57c,'onAttributesChange':_0x2057e1,'onAccept':(..._0x4dc129)=>this['getSuggestionCallback'](_0xba7c84,_0x327eb9,'accept')(..._0x4dc129),'onDiscard':(..._0x53e10a)=>this['getSuggestionCallback'](_0xba7c84,_0x327eb9,'discard')(..._0x53e10a)});}['registerCustomCallback'](_0x8d0c70,_0x4e682b,_0x1240df,_0x3f28c4){const _0x1781ce=_0x8d0c70+':'+_0x4e682b+':'+_0x1240df;this['_customCallbacks']['set'](_0x1781ce,_0x3f28c4);}['getSuggestionCallback'](_0x2340e8,_0x3aeb03,_0x1afe7f){const _0x2f1c8c=_0x2340e8+':'+_0x3aeb03+':'+_0x1afe7f;return this['_customCallbacks']['get'](_0x2f1c8c)||this['_defaultCallbacks']['get'](_0x2340e8+':'+_0x1afe7f);}['_registerDefaultCallbacks'](){const _0x5cc865=()=>!0x1,_0x3b409b=_0x1d1caa=>{_0x1d1caa['sort']((_0xa927c2,_0x178c45)=>_0xa927c2['start']['isBefore'](_0x178c45['start'])?0x1:-0x1),this['_model']['change'](_0x556d67=>{for(const _0x517dfe of _0x1d1caa){let _0x640724;_0x640724=_0x517dfe['end']['isAtEnd']&&_0x517dfe['end']['parent']==_0x517dfe['start']['nodeAfter']?_0x556d67['createSelection'](_0x517dfe['start']['nodeAfter'],'on'):_0x556d67['createSelection'](_0x517dfe),this['_model']['deleteContent'](_0x640724,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x10151c=(_0x87186a,_0xbb482f)=>{_0xbb482f&&this['_model']['change'](_0x848718=>{const {commandName:_0x3cff22,commandParams:_0x54e337=[]}=_0xbb482f,_0x31f853=_0x87186a['map'](_0x1bd1d8=>(Tt(_0x1bd1d8)&&(_0x1bd1d8=this['_model']['createRange'](_0x1bd1d8['end'])),_0x1bd1d8))['filter'](_0x54e173=>'$graveyard'!==_0x54e173['root']['rootName']);if(_0x31f853['length']<0x1)return;const _0x1ae976=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x55452d=>_0x54c30a['fromRange'](_0x55452d));_0x848718['setSelection'](_0x31f853);for(const _0x489c4f of this['_editor']['commands']['commands']())_0x489c4f['refresh']();_0x54e337['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3cff22,..._0x54e337);const _0x1c8791=_0x1ae976['filter'](_0x2cc7d2=>'$graveyard'!=_0x2cc7d2['root']['rootName']);_0x1c8791['length']>0x0&&_0x848718['setSelection'](_0x1c8791);for(const _0x2a40f9 of _0x1ae976)_0x2a40f9['detach']();});},_0x24967e=(_0x6f159c,_0x43b6a6)=>0x1==_0x6f159c['length']&&0x1==_0x43b6a6['length']&&_0x6f159c[0x0]['end']['isEqual'](_0x43b6a6[0x0]['start']),_0x501cfa=(_0x254425,_0x43bbf7,_0x96a90d,_0x30f399)=>Ft(_0x254425,_0x43bbf7,_0x96a90d,_0x30f399,this['_model'])?[_0x254425,_0x43bbf7]:Ft(_0x43bbf7,_0x254425,_0x30f399,_0x96a90d,this['_model'])?[_0x43bbf7,_0x254425]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5cc865),this['_defaultCallbacks']['set']('insertion:discard',_0x3b409b),this['_defaultCallbacks']['set']('insertion:join',_0x24967e),this['_defaultCallbacks']['set']('insertion:chain',_0x501cfa),this['_defaultCallbacks']['set']('deletion:accept',_0x3b409b),this['_defaultCallbacks']['set']('deletion:discard',_0x5cc865),this['_defaultCallbacks']['set']('deletion:join',_0x24967e),this['_defaultCallbacks']['set']('deletion:chain',_0x501cfa),this['_defaultCallbacks']['set']('formatInline:accept',_0x10151c),this['_defaultCallbacks']['set']('formatInline:discard',_0x5cc865),this['_defaultCallbacks']['set']('formatInline:join',_0x24967e),this['_defaultCallbacks']['set']('formatInline:chain',_0x5cc865),this['_defaultCallbacks']['set']('formatBlock:accept',_0x10151c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5cc865),this['_defaultCallbacks']['set']('formatBlock:join',_0x24967e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5cc865),this['_defaultCallbacks']['set']('attribute:accept',_0x5cc865),this['_defaultCallbacks']['set']('attribute:discard',(_0x2e9e88,_0x29d349)=>{if(!_0x29d349)return;const _0x2d6195=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2a0ead=>{if(_0x29d349['key']==m)for(const _0xc98ffd of _0x2e9e88){const _0x961c70=_0xc98ffd['start']['nodeAfter'],_0x333370=_0x29d349['oldValue'];_0x2a0ead['rename'](_0x961c70,_0x333370);}else{if(_0x2d6195['_isBlockAttribute'](_0x29d349['key'])){for(const _0x1eaac7 of _0x2e9e88)void 0x0!==_0x29d349['oldValue']?_0x2a0ead['setAttribute'](_0x29d349['key'],_0x29d349['oldValue'],_0x1eaac7['start']['nodeAfter']):_0x2a0ead['removeAttribute'](_0x29d349['key'],_0x1eaac7['start']['nodeAfter']);}else{for(const _0x5ec867 of _0x2e9e88)_0x29d349['oldValue']?_0x2a0ead['setAttribute'](_0x29d349['key'],_0x29d349['oldValue'],_0x5ec867):_0x2a0ead['removeAttribute'](_0x29d349['key'],_0x5ec867);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x24967e);}}function Rt(_0xc178e,_0x317e27,_0x1d87e0){for(const _0x20533b of _0x317e27['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x20533b['root']==_0x20533b)return!0x1;if(!_0x1d87e0['containsItem'](_0x20533b))return!0x1;if(_0xc178e['isObject'](_0x20533b)||_0xc178e['isLimit'](_0x20533b))return!0x0;}return!0x1;}function Tt(_0x5a539f){return _0x5a539f['end']['parent']==_0x5a539f['start']['nodeAfter']&&_0x5a539f['end']['isAtStart'];}function Et(_0x1f7fe3,_0x1195bb,_0x1850f4,_0x52eb58){const _0x589d29=_0x5e8462=>!_0x5e8462['item']['is']('$textProxy')&&!_0x52eb58['isObject'](_0x5e8462['item']),_0x2a74e1=_0x1f7fe3['start']['getLastMatchingPosition'](_0x589d29),_0x41f897=_0x1f7fe3['end']['getLastMatchingPosition'](_0x589d29,{'direction':'backward'});return(!_0x1f7fe3['start']['isEqual'](_0x2a74e1)||!_0x1f7fe3['end']['isEqual'](_0x41f897))&&(_0x2a74e1['isBefore'](_0x41f897)?_0x1850f4['updateMarker'](_0x1195bb,{'range':_0x1850f4['createRange'](_0x2a74e1,_0x41f897)}):_0x1850f4['removeMarker'](_0x1195bb),!0x0);}function Vt(_0x3d35ad){return _0x25faca(_0x3d35ad);}function Ut(_0x469adb){const _0x290970=_0x469adb['start']['nodeAfter'];return _0x290970&&_0x290970['is']('element');}function Ot(_0x1f8dc2,_0x279be4){return null==_0x1f8dc2['end']['nodeBefore']&&_0x1f8dc2['end']['parent']==_0x1f8dc2['start']['nodeAfter']?Gt(_0x1f8dc2['start']['nodeAfter'],_0x279be4):_0x1f8dc2;}function Gt(_0x1e5114,_0x1c080e){const _0x33fad7=_0x1c080e['schema']['isObject'](_0x1e5114)||_0x1c080e['schema']['isSelectable'](_0x1e5114);return _0x1c080e['createRange'](_0x1c080e['createPositionAt'](_0x1e5114,'before'),_0x33fad7?_0x1c080e['createPositionAfter'](_0x1e5114):_0x1c080e['createPositionAt'](_0x1e5114,'end'));}function Ft(_0x21ba08,_0xe0ef6,_0x21470e,_0x4c0e38,_0x48d006){if(!Pt(_0x21ba08,_0xe0ef6))return!0x1;if(_0x21470e['end']['isEqual'](_0x4c0e38['start']))return!0x0;if(_0x21ba08['type']!=_0xe0ef6['type'])return!0x1;if(!_0x21470e['end']['isTouching'](_0x4c0e38['start']))return!0x1;const _0x10c0d3=_0x48d006['createRange'](_0x21470e['end'],_0x4c0e38['start'])['getWalker']();for(const _0x3dd1cb of _0x10c0d3)if(['elementStart','elementEnd']['includes'](_0x3dd1cb['type'])&&_0x48d006['schema']['isLimit'](_0x3dd1cb['item']))return!0x1;return!0x0;}function Pt(_0x240014,_0x1f84c0,_0x7b6f94=[]){return!(!_0x240014['_isDataLoaded']||!_0x1f84c0['_isDataLoaded'])&&_0x2ef343(Bt(_0x240014['attributes'],_0x7b6f94),Bt(_0x1f84c0['attributes'],_0x7b6f94));}function Lt(_0x26d0eb,_0x44c67c){const _0x8609f1=Ht(_0x26d0eb['attributes']),_0x350e3f=Ht(_0x44c67c);if(!_0x26d0eb['_isDataLoaded'])return!0x1;for(const _0x507154 of Object['keys'](_0x350e3f))if(!_0x2ef343(_0x8609f1[_0x507154],_0x350e3f[_0x507154]))return!0x1;return!0x0;}function Ht(_0x21e751){const _0x46aa74=Object['assign']({},_0x21e751);return delete _0x46aa74['skipNestingCheck'],delete _0x46aa74['tablePasteChainId'],_0x46aa74;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4ff9be(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xcbd594,_0x176188,_0x2bf5c8,_0x505b12){super(),this['model']=_0x176188,this['view']=_0x2bf5c8,this['commentThreadController']=_0x505b12,this['_editor']=_0xcbd594,this['_acceptCommand']=_0xcbd594['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xcbd594['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2a6356,_0x3a89ea)=>_0x2a6356||_0x3a89ea),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xd435f9=>_0xd435f9&&this['_editor']['model']['canEditAt'](_0x176188['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1e038d=>_0x1e038d&&this['_editor']['model']['canEditAt'](_0x176188['getRanges']())),this['_pendingAction']=null,_0x2bf5c8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2bf5c8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2bf5c8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2bf5c8,'change:isDirty',()=>{_0x2bf5c8['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 _0x518f2b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x518f2b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0xb7d5df{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x27e71e,_0x3faa49,_0x29cdcd,_0x2baf00){super(_0x27e71e),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3faa49['authoredAt']),this['bind']('authoredAt')['to'](_0x3faa49),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3faa49,this['_localUser']=_0x29cdcd,this['_config']=_0x2baf00,_0x2baf00['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:_0x336c5f}=this['_config'];this['commentsListView']=new _0x336c5f(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',_0x3ffa14=>_0x3ffa14+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1ee83,_0x215082)=>_0x1ee83||!!_0x215082);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x30fc93}=this['_config'],_0x1369e8=new _0x30fc93(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x20280d=_0x1369e8['commentInputView'];return _0x1369e8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x20280d,'value',(_0x3be437,_0x2f3afd,_0x56f357)=>!!_0x56f357||_0x3be437&&!_0x2f3afd),_0x20280d['on']('submit',(_0x525d9d,_0x66b605)=>{this['fire']('addComment',_0x66b605),_0x20280d['editor']['setData']('');}),_0x20280d['on']('cancel',()=>this['focus']()),_0x20280d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1369e8;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x28d05f,_0x54f7de,_0x114c2a,_0x2afbf7){super(_0x28d05f,_0x54f7de,_0x114c2a,_0x2afbf7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x37c771=>_0x37c771&&_0x37c771[0x0]?_0x37c771[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5663ab,_0x129e06)=>{let _0x34501a='';for(const _0x3c7e86 of _0x5663ab)_0x34501a+='<p>'+ds(_0x3c7e86['content'],_0x3c7e86['color'])+'</p>';return _0x129e06?_0x34501a:_0x582db4(_0x34501a,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x28d05f,'Accept\x20suggestion'),_0xb3e85c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x28d05f,'Discard\x20suggestion'),_0xb3e85c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x532e9f(_0x28d05f,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4c2836=this['bindTemplate'],_0x4579db=[{'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':_0x4c2836['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4c2836['to']('authoredAt',_0x5ae3d5=>this['_config']['formatDateTime'](_0x5ae3d5))}]}]},{'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']&&_0x4579db['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0xf44937={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4c2836['if']('isActive','ck-suggestion-wrapper--active'),_0x4c2836['to']('type',_0x384fab=>'ck-suggestion-'+_0x384fab),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':_0x4579db}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0xf44937['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)),_0xf44937;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xba6b81,_0x44c4e9,_0x2d626d)=>{this['_descriptionElement']['innerHTML']=_0x2d626d;});}['_createButton'](_0x294baf,_0x16e9f4,_0x297e73,_0x2e7843,_0x59ca3e){const _0x2964c1=new _0x1863cb(this['locale']);return _0x2964c1['set']({'label':_0x294baf,'icon':_0x16e9f4,'tooltip':!0x0,'tooltipPosition':_0x59ca3e}),_0x2964c1['extendTemplate']({'attributes':{'class':_0x297e73}}),_0x2964c1['on']('execute',()=>{this['fire'](_0x2e7843,this['_model']['id']);}),_0x2964c1;}['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(_0x336c61,_0x2cf826){let _0x1448ab='';return _0x1448ab+=_0x336c61['split']('*')['map']((_0x5ed7a1,_0x59ccb7)=>_0x59ccb7%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5ed7a1)+'</span>':us(_0x5ed7a1))['join'](''),_0x2cf826&&(_0x1448ab+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2cf826['value']+'\x22\x20title=\x22'+_0x2cf826['title']+'\x22></span>'),_0x1448ab;}function us(_0x12c8fd){const _0x3bf27a=document['createElement']('span');return _0x3bf27a['innerText']=_0x12c8fd,_0x3bf27a['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 _0xeaacfa{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x43f0c5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xeb08a3){super(_0xeb08a3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x47225a=this['editor']['config'];_0x47225a['define']('trackChanges.SuggestionThreadView',ne),_0x47225a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x47225a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x16d0a0,_0x9eb27){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x504e83,_0x5eab72]of this['_handleControllerBuffer']){const _0x2e4b77=this['_suggestionToController']['has'](_0x504e83);_0x2e4b77||_0x5eab72?_0x2e4b77&&_0x5eab72&&this['_destroyController'](_0x504e83):this['_initializeController'](_0x504e83);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x16d0a0,_0x9eb27);}['init'](){const _0x1d5394=this['editor'],_0x6c560=_0x1d5394['plugins']['get']('TrackChangesEditing'),_0x14ef2d=_0x1d5394['plugins']['get']('Annotations'),_0x50111a=_0x1d5394['plugins']['get']('EditorAnnotations'),_0x339e90=_0x1d5394['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x50111a['addSourceCollector'](()=>{const _0x15ed21=[];for(const [_0xafbaf8,_0x299ebb]of Array['from'](this['_suggestionToController'])){const _0xf817fa=_0xafbaf8['getAllAdjacentSuggestions'](),_0x4ebeb9=[];for(const _0x146b66 of _0xf817fa){if(!_0x146b66['isInContent'])continue;if(_0x146b66['isMultiRange']){_0x4ebeb9['push'](..._0x146b66['getRanges']());continue;}const _0x9514b6=_0x146b66['getFirstRange']();if(_0x4ebeb9['length']>0x0){const _0x1118bd=_0x4ebeb9[0x0]['getJoined'](_0x9514b6);if(_0x1118bd){_0x4ebeb9[0x0]=_0x1118bd;continue;}}_0x4ebeb9['push'](_0x9514b6);}_0x15ed21['push']([_0x299ebb['view'],_0x4ebeb9]);}return _0x15ed21;}),this['listenTo'](_0x6c560,'suggestionLoaded',(_0x2f8b54,_0x3877a6)=>{this['listenTo'](_0x3877a6,'change:previous',(_0x176a0d,_0xe27803,_0x3647de,_0x48467a)=>{_0x3877a6['isInContent']&&(null==_0x3647de?(this['_updateController'](_0x48467a['head']),this['_handleSuggestionControllerDelayed'](_0x3877a6,!0x1)):(this['_updateController'](_0x3647de['head']),null==_0x48467a&&this['_handleSuggestionControllerDelayed'](_0x3877a6,!0x0)));}),null!==_0x3877a6['previous']?this['_updateController'](_0x3877a6['head']):this['_handleSuggestionControllerDelayed'](_0x3877a6,!0x1);}),this['listenTo'](_0x6c560,'suggestionUnloaded',(_0x63ac0a,_0x6a8e75,_0x390aa7)=>{this['stopListening'](_0x6a8e75,'change:previous'),this['_handleControllerBuffer']['delete'](_0x6a8e75),this['_suggestionToController']['has'](_0x6a8e75)&&this['_destroyController'](_0x6a8e75),_0x390aa7&&this['_updateController'](_0x390aa7['head']);}),this['listenTo'](_0x6c560,'suggestionChanged',(_0x596f5e,_0x508ec4)=>{this['_updateController'](_0x508ec4);}),this['listenTo'](_0x14ef2d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x339e90,'addComment',(_0x4810e1,{threadId:_0x45ce1a,isFromAdapter:_0x4aa094})=>{if(_0x4aa094||!_0x6c560['hasSuggestion'](_0x45ce1a))return;const _0x483817=_0x6c560['getSuggestion'](_0x45ce1a);this['_suggestionToController']['get'](_0x483817)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5edafb=this['editor']['plugins']['get']('Annotations'),_0x4a5201=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4274e5=Array['from'](_0x5edafb['activeAnnotations'],_0x58f191=>_0x58f191['innerView'])['filter'](_0x16bc41=>this['_viewToController']['has'](_0x16bc41)),_0x599634=[];for(const _0x15abba of _0x4274e5){const _0x60815f=this['_viewToController']['get'](_0x15abba)['model']['getAllAdjacentSuggestions']();_0x599634['push'](..._0x60815f['reduce']((_0x46784a,_0x179a12)=>[..._0x46784a,..._0x179a12['getMarkerNames']()],[]));}_0x4a5201['activeMarkers']=_0x599634;}['_addUIComponentsToFactory'](){const _0x38e87b=this['editor'],_0x2f9d84=_0x38e87b['locale'],_0x34ec64=o(_0x2f9d84,'Track\x20changes'),_0x12be0d=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x34ec64,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2f9d84,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2f9d84,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2f9d84,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2f9d84,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x11d567 of _0x12be0d)if(ae(_0x11d567)){const _0xef7d69=_0x38e87b['commands']['get'](_0x11d567['model']['commandName']);_0x11d567['model']['bind']('isOn','isEnabled')['to'](_0xef7d69,'value','isEnabled');}_0x38e87b['ui']['componentFactory']['add']('trackChanges',_0x325836=>this['_createToolbarButton'](_0x325836,_0x12be0d,_0x34ec64)),_0x38e87b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x768f61=>this['_createMenuBarMenu'](_0x768f61,_0x12be0d,_0x34ec64));}['_createToolbarButton'](_0x2a2f52,_0x2321a5,_0x26c66a){const _0x1080f6=zt(_0x2a2f52,Zt),_0x323279=this['editor']['commands']['get']('trackChanges');_0x1080f6['buttonView']['set']({'tooltip':_0x26c66a,'label':_0x26c66a,'icon':ie}),_0x1080f6['buttonView']['bind']('isOn')['to'](_0x323279,'value'),_0x1080f6['buttonView']['on']('execute',()=>{_0x323279['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1080f6,_0x2321a5,{'role':'menu'});const _0x2fa1dc=[];for(const _0x1de85c of _0x2321a5)ae(_0x1de85c)&&_0x2fa1dc['push'](this['editor']['commands']['get'](_0x1de85c['model']['commandName']));const _0x2a5b0b=_0x1080f6['buttonView'];return _0x2a5b0b['actionView']['unbind']('isEnabled'),_0x2a5b0b['arrowView']['unbind']('isEnabled'),_0x2a5b0b['actionView']['bind']('isEnabled')['to'](_0x323279,'isEnabled'),_0x2a5b0b['arrowView']['bind']('isEnabled')['toMany'](_0x2fa1dc,'isEnabled',(..._0x4caa9e)=>_0x4caa9e['some'](_0x429e74=>_0x429e74)),_0x1080f6['on']('execute',_0x288207=>{this['editor']['execute'](_0x288207['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1080f6;}['_createMenuBarMenu'](_0x1ef5fe,_0x95a425,_0x292c03){const _0x135f99=new Kt(_0x1ef5fe),_0x58394d=this['editor']['commands']['get']('trackChanges');_0x135f99['buttonView']['set']({'label':_0x292c03,'icon':ie});const _0x398c5b=new Qt(_0x1ef5fe);for(const _0x11c45f of _0x95a425){if('separator'==_0x11c45f['type']){_0x398c5b['items']['add'](new Jt(_0x1ef5fe));continue;}const _0x5bec1a=new Xt(_0x1ef5fe,_0x135f99),_0x3141d6=new Yt(_0x1ef5fe),_0x56488b=_0x11c45f['model'];_0x3141d6['bind'](...Object['keys'](_0x56488b))['to'](_0x56488b),_0x3141d6['delegate']('execute')['to'](_0x135f99),_0x3141d6['on']('execute',()=>{this['editor']['execute'](_0x56488b['commandName']),this['editor']['editing']['view']['focus']();}),_0x5bec1a['children']['add'](_0x3141d6),_0x398c5b['items']['add'](_0x5bec1a);}return _0x135f99['bind']('isEnabled')['to'](_0x58394d,'isEnabled'),_0x135f99['panelView']['children']['add'](_0x398c5b),_0x135f99;}['_initializeController'](_0x485a63){const _0x3ef081=this['editor'],_0x4bd5b9=_0x3ef081['config'],_0x5ac528=_0x3ef081['plugins']['get']('Annotations'),_0x45f409=_0x3ef081['plugins']['get']('CommentsRepository'),_0x170179=_0x3ef081['plugins']['get']('EditorAnnotations'),_0x3252f7=_0x3ef081['plugins']['get'](_0x43f0c5)['me'],_0x6b42ac=_0x4bd5b9['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x229e05,CommentThreadInputView:_0x253e05}=_0x3ef081['plugins']['get']('CommentsUI');let _0x3fed7c,_0x174a79;this['_annotationViews']['has'](_0x485a63['id'])?(_0x174a79=this['_annotationViews']['get'](_0x485a63['id']),_0x3fed7c=_0x174a79['mainView']):(_0x3fed7c=new _0x6b42ac(_0x3ef081['locale'],_0x485a63,_0x3252f7,{'disableComments':this['_disableComments'],'editorConfig':_0x4bd5b9['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4bd5b9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4bd5b9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4bd5b9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x493fae(_0x4bd5b9['get']('locale')),'CommentView':_0x4bd5b9['get']('comments')['CommentView'],'CommentsListView':_0x229e05,'CommentThreadInputView':_0x253e05}),_0x3fed7c['acceptButton']['on']('execute',()=>{_0x3ef081['editing']['view']['focus']();}),_0x3fed7c['discardButton']['on']('execute',()=>{_0x3ef081['editing']['view']['focus']();}),_0x174a79=_0x5ac528['createAnnotationView'](this['editor']['locale'],_0x3fed7c),_0x174a79['bind']('isDirty')['to'](_0x3fed7c,'isDirty'),_0x174a79['bind']('length')['to'](_0x3fed7c),_0x174a79['bind']('type')['to'](_0x3fed7c,'type',_0x1b8ce6=>'suggestion-'+_0x1b8ce6),this['_annotationViews']['set'](_0x485a63['id'],_0x174a79));const _0x2a527c=_0x45f409['createCommentThreadController'](_0x485a63['commentThread'],_0x3fed7c),_0x3f948c=new oe(_0x3ef081,_0x485a63,_0x3fed7c,_0x2a527c),_0x4c6302=_0x485a63['getAllAdjacentSuggestions']()['filter'](_0x43a294=>_0x43a294['isInContent']);_0x3fed7c['descriptionParts']=_0x3ef081['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4c6302),this['_suggestionToController']['set'](_0x485a63,_0x3f948c),this['_viewToController']['set'](_0x3fed7c,_0x3f948c);const _0x2436c4=_0x5ac528['createAnnotation']({'view':_0x174a79,'target':()=>{const _0x29b43f=[],_0x5739b2=_0x485a63['getAllAdjacentSuggestions']()['filter'](_0x5f031a=>_0x5f031a['isInContent']);for(const _0x4f4020 of _0x5739b2)_0x29b43f['push'](..._0x4f4020['getMarkers']());return _0x2e8ef6(_0x3ef081['editing'],_0x29b43f);},'type':()=>'suggestion-'+_0x3f948c['view']['type']});_0x45f409['_bindAnnotationToEditors'](_0x3fed7c,_0x2436c4),_0x5ac528['add'](_0x2436c4),_0x170179['registerAnnotation'](_0x2436c4);}['_destroyController'](_0x498f8d){const _0x108569=this['editor']['plugins']['get']('CommentsRepository'),_0x32bd68=this['editor']['plugins']['get']('Annotations'),_0x22d472=this['_suggestionToController']['get'](_0x498f8d),_0x479612=_0x22d472['view'],_0x16a105=_0x32bd68['getByInnerView'](_0x479612);_0x108569['_unbindEditors'](_0x479612),_0x16a105&&_0x32bd68['remove'](_0x16a105),this['_suggestionToController']['delete'](_0x498f8d),this['_viewToController']['delete'](_0x479612),_0x22d472['destroy']();}['_updateController'](_0x32e75d){if(!_0x32e75d['isInContent']||!this['_suggestionToController']['has'](_0x32e75d))return;const _0x12f379=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25a04a=this['_suggestionToController']['get'](_0x32e75d),_0x233b90=_0x32e75d['getAllAdjacentSuggestions']();_0x25a04a['view']['descriptionParts']=_0x12f379['descriptionFactory']['getDescriptions'](_0x233b90);}['destroy'](){for(const _0x548032 of this['_suggestionToController']['keys']())this['_destroyController'](_0x548032);for(const _0x2fb0ae of this['_annotationViews']['values']())_0x2fb0ae['mainView']['destroy']();super['destroy']();}}function ae(_0x277ee2){return'model'in _0x277ee2;}class k extends _0xeaacfa{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x39ac65){this['editor']['plugins']['get'](p)['adapter']=_0x39ac65;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x38341e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x38341e);}['getSuggestions']({skipNotAttached:_0x32a4df=!0x1,toJSON:_0x2be2c0=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x32a4df,'toJSON':_0x2be2c0});}['getSuggestion'](_0x4c56be){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4c56be);}}const T=['Pagination'];class P extends _0xeaacfa{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x410218=this['editor'];if(_0x410218['config']['define']('trackChangesData.editorCreator',_0x2cffd7=>{const _0x2bbb23=_0x410218['model']['document']['getRootNames']()['reduce']((_0x59e936,_0x47365b)=>(_0x59e936[_0x47365b]='',_0x59e936),{});return _0x410218['constructor']['create'](_0x2bbb23,_0x2cffd7);}),'function'!=typeof _0x410218['config']['get']('trackChangesData')['editorCreator'])throw new _0x4054be('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x26c9d9){return N(this['editor'],!0x0,_0x26c9d9);}['getDataWithDiscardedSuggestions'](_0x1dcaed){return N(this['editor'],!0x1,_0x1dcaed);}}class D extends _0xeaacfa{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3b57b8){super(_0x3b57b8),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(_0x541537){return void 0x0!==_0x541537['getRootsAttributes'];}async function N(_0x4b5b61,_0x4b2588,_0x419d60){const _0x8892bb=_0x5663ba(_0x4b5b61,T);_0x8892bb['plugins']['push'](p,D),_0x8892bb['rootsAttributes']=v(_0x4b5b61)?_0x4b5b61['getRootsAttributes']():void 0x0;const _0x2c9b66=document['createDocumentFragment'](),_0x5022f0=_0x4b5b61['config']['get']('trackChangesData')['editorCreator'],_0x471e46=await _0x5022f0(_0x8892bb,()=>function(_0x3d5ea3){const _0xa25048=document['createElement']('div');return _0x3d5ea3['appendChild'](_0xa25048),_0xa25048;}(_0x2c9b66));!function(_0x1b10e8,_0x393e2e){const _0x2d4fc8=_0x1b10e8['model']['document']['getRootNames']()['reduce']((_0x1d9a3d,_0x1bcd98)=>(_0x1d9a3d[_0x1bcd98]=_0x1b10e8['data']['get']({'rootName':_0x1bcd98}),_0x1d9a3d),{}),_0x33af8c=_0x1b10e8['plugins']['get']('Users')['users']['map'](_0xe76b08=>({'id':_0xe76b08['id'],'name':_0xe76b08['name']})),_0x1f854a=_0x1b10e8['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1814df=_0x1b10e8['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1ae619=_0x393e2e['plugins']['get']('Users'),_0x349de4=_0x393e2e['plugins']['get']('TrackChangesEditing'),_0x296416=_0x393e2e['plugins']['get']('CommentsRepository');for(const _0x4c9949 of _0x33af8c)_0x1ae619['getUser'](_0x4c9949['id'])||_0x1ae619['addUser'](_0x4c9949);_0x1ae619['me']||_0x1ae619['useAnonymousUser']();for(const _0x3dd804 of _0x1f854a)_0x349de4['addSuggestionData'](_0x3dd804);for(const _0x3a7d8c of _0x1814df)_0x296416['addCommentThread'](_0x3a7d8c);_0x393e2e['data']['set'](_0x2d4fc8);}(_0x4b5b61,_0x471e46),_0x471e46['execute'](_0x4b2588?'acceptAllSuggestions':'discardAllSuggestions');const _0x33ff85=v(_0x471e46)?_0x471e46['getFullData'](_0x419d60):_0x471e46['data']['get'](_0x419d60);return await _0x471e46['destroy'](),_0x33ff85;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|