@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250202.0 → 0.0.0-nightly-20250203.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 +25 -25
- 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 Qt,Plugin as
|
|
24
|
-
_0x3074e5(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x20d6df,_0x21b9f){super(),this['id']=_0x21b9f['id'],this['type']=_0x21b9f['type'],this['subType']=_0x21b9f['subType']||null,this['author']=_0x21b9f['author'],this['creator']=_0x21b9f['creator']||_0x21b9f['author'],this['isExternal']=Boolean(_0x21b9f['attributes']&&_0x21b9f['attributes']['@external']),this['data']=null,this['_model']=_0x20d6df,this['_onAccept']=_0x21b9f['onAccept'],this['_onDiscard']=_0x21b9f['onDiscard'],this['_onAttributesChange']=_0x21b9f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x21b9f['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 _0x54f691=this;for(;_0x54f691['previous'];)_0x54f691=_0x54f691['previous'];return _0x54f691;}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'](_0x2fdbe6){this['_markerNames']['add'](_0x2fdbe6);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1376f6=>this['_model']['markers']['get'](_0x1376f6))['filter'](_0x5ce14f=>_0x5ce14f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2b0786=>{for(const _0x3b81e8 of this['getMarkers']())_0x2b0786['removeMarker'](_0x3b81e8);}),this['_markerNames']['clear']();}['removeMarker'](_0x2b5ff3){this['_model']['change'](_0x1c6779=>{_0x1c6779['removeMarker'](_0x2b5ff3);}),this['_markerNames']['delete'](_0x2b5ff3);}['addRange'](_0x359620){const _0x401df0='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x401df0),this['_model']['change'](_0x2caaec=>{_0x2caaec['addMarker'](_0x401df0,{'range':_0x359620,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1f4a1f){for(const _0x2282c5 of this['getRanges']())if(_0x2282c5['isIntersecting'](_0x1f4a1f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2c1447=>_0x2c1447['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3d69c6,_0x33ceaf)=>[..._0x3d69c6,..._0x33ceaf['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1d33a1=this['getRanges']();if(0x1!=_0x1d33a1['length'])return null;const _0x105f4f=_0x1d33a1[0x0],_0x1a3590=_0x105f4f['start']['nodeAfter'],_0x5ecae0=_0x105f4f['end']['nodeBefore'];return _0x1a3590 instanceof _0x3fa654?_0x1a3590!=_0x5ecae0?null:_0x1a3590: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 _0x543ae3=[];let _0x550a7d=this['head'];for(;_0x550a7d;)_0x543ae3['push'](_0x550a7d),_0x550a7d=_0x550a7d['next'];return _0x543ae3;}['setAttribute'](_0x119ca1,_0x28f627){const _0x1a4f0a=_0x507100(this['attributes']);_0x1e12fd(_0x1a4f0a,_0x119ca1,_0x28f627),_0x423d77(_0x1a4f0a,this['attributes'])||(this['attributes']=_0x1a4f0a,this['_onAttributesChange'](_0x1a4f0a));}['removeAttribute'](_0x420d47){const _0x59ce07=_0x507100(this['attributes']);_0xeb9f04(_0x59ce07,_0x420d47),_0x423d77(_0x59ce07,this['attributes'])||(this['attributes']=_0x59ce07,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 _0x3330a4()['substr'](0x1,0x5);}}function o(_0x1bfc69,_0x1ee564,_0x31a6e2){const _0x1d4331=_0x1bfc69['t'],t=_0x1bfc69['t'];switch(_0x1ee564){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x31a6e2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x31a6e2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x31a6e2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x31a6e2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x31a6e2);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',_0x31a6e2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x31a6e2);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x31a6e2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x31a6e2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x31a6e2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x31a6e2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x31a6e2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x31a6e2);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x31a6e2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x31a6e2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x31a6e2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x31a6e2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x31a6e2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x31a6e2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x31a6e2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x31a6e2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x31a6e2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x31a6e2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x31a6e2);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'},_0x31a6e2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x31a6e2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x31a6e2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x31a6e2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x31a6e2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x31a6e2);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'},_0x31a6e2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x31a6e2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x31a6e2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x31a6e2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x31a6e2);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'},_0x31a6e2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x31a6e2);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'},_0x31a6e2);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'},_0x31a6e2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x31a6e2);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'},_0x31a6e2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x31a6e2);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'},_0x31a6e2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x31a6e2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x31a6e2);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x31a6e2);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x31a6e2);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 _0x1d4331({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x31a6e2);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1d4331({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x31a6e2);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x31a6e2);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x31a6e2);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x31a6e2);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x31a6e2);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1ee564;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x22b9fa,_0x5a7424){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x22b9fa,this['_locale']=_0x5a7424;}['getDescriptions'](_0x5786d3){const _0x457ff5=[],_0x48a3a3=new Set(),_0x5af9e9=new Set();for(let _0x2a80d2=0x0;_0x2a80d2<_0x5786d3['length'];_0x2a80d2++){const _0x27abf8=_0x5786d3[_0x2a80d2];if(!_0x27abf8['isInContent'])continue;const _0x490811=this['_handleCustomCallbackDescription'](_0x27abf8);if(_0x490811){if(null!=_0x27abf8['subType']){if(_0x48a3a3['has'](_0x27abf8['subType']))continue;_0x48a3a3['add'](_0x27abf8['subType']);}_0x457ff5['push'](_0x490811);}else{if('attribute'!=_0x27abf8['type'])'insertion'!=_0x27abf8['type']&&'deletion'!=_0x27abf8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x457ff5,_0x27abf8,_0x5786d3[_0x2a80d2+0x1]);else{const _0x5d008f=_0x27abf8['data']['key'];if(_0x5af9e9['has'](_0x5d008f))continue;_0x5af9e9['add'](_0x27abf8['data']['key']),_0x5d008f==m?this['_handleRenameSuggestionDescription'](_0x457ff5,_0x27abf8):this['_handleAttributeSuggestionDescription'](_0x457ff5,_0x27abf8);}}}return this['_resolveDescriptionItems'](_0x457ff5);}['registerDescriptionCallback'](_0x3f1b8f){this['_customCallbacks']['push'](_0x3f1b8f);}['registerElementLabel'](_0x563bb9,_0x5148f3,_0x3ebff=_0x11b5a6['normal']){'function'==typeof _0x563bb9?_0x570bf6(this['_itemLabelsCallbacks'],{'matchingCallback':_0x563bb9,'label':_0x5148f3,'priority':_0x3ebff}):this['_itemLabels']['set'](_0x563bb9,_0x5148f3);}['registerAttributeLabel'](_0x34ed71,_0x7e4965){this['_attributeLabels']['set'](_0x34ed71,_0x7e4965);}['getItemLabel'](_0x456957,_0x3c8945=0x1){let _0x25cd3b;for(const _0xb352e9 of this['_itemLabelsCallbacks'])if(_0xb352e9['matchingCallback'](_0x456957)){_0x25cd3b=_0xb352e9['label'];break;}return _0x25cd3b||(_0x25cd3b=this['_itemLabels']['get'](_0x456957['name'])),_0x25cd3b?_0x25cd3b(_0x3c8945):0x1!==_0x3c8945?_0x3c8945+'\x20'+_0x456957['name']+'s':''+_0x456957['name'];}['_addDescriptionItems'](_0x591e1d,_0x3255b4){const _0x51bdea=_0x3255b4['getFirstRange']()['getWalker'](),_0x1bdd1b='insertion'==_0x3255b4['type']?'add':'remove';for(const _0x174ca3 of _0x51bdea){const _0x1ab961=_0x174ca3['item'],_0x44b117=_0x591e1d[_0x591e1d['length']-0x1];if(_0x1ab961['is']('$textProxy'))_0x44b117&&_0x44b117['type']['indexOf']('Container')>-0x1&&_0x591e1d['pop'](),_0x44b117&&'text'==_0x44b117['type']?_0x44b117[_0x1bdd1b]+=_0x1ab961['data']:_0x591e1d['push']({'type':'text','add':'add'==_0x1bdd1b?_0x1ab961['data']:'','remove':'remove'==_0x1bdd1b?_0x1ab961['data']:''});else{if(this['_schema']['isObject'](_0x1ab961)){const _0x522322=_0x1ab961;if(_0x44b117&&_0x44b117['type']['indexOf']('Container')>-0x1&&_0x591e1d['pop'](),'elementEnd'==_0x174ca3['type'])continue;_0x44b117&&_0x44b117['type']==_0x1bdd1b+'Object'&&_0x44b117['element']['name']==_0x522322['name']?_0x44b117['quantity']++:_0x591e1d['push']({'type':_0x1bdd1b+'Object','element':_0x522322,'quantity':0x1}),_0x51bdea['skip'](_0x487e43=>!('elementEnd'==_0x487e43['type']&&_0x487e43['item']==_0x1ab961));}else{if(this['_schema']['checkChild'](_0x1ab961,'$text')||_0x1ab961['is']('element','softBreak')){const _0x1a48af=_0x1ab961;if('add'==_0x1bdd1b&&'elementStart'==_0x174ca3['type']||'remove'==_0x1bdd1b&&'elementEnd'==_0x174ca3['type'])continue;if(_0x44b117&&-0x1==_0x44b117['type']['indexOf']('Container')){'text'==_0x44b117['type']&&(_0x44b117[_0x1bdd1b]+='\x0a');continue;}let _0x2988aa;if(_0x2988aa='add'==_0x1bdd1b?_0x1a48af['nextSibling']&&!this['_schema']['isObject'](_0x1a48af['nextSibling'])?_0x1a48af['nextSibling']:null:_0x1a48af['previousSibling']&&!this['_schema']['isObject'](_0x1a48af['previousSibling'])?_0x1a48af['previousSibling']:null,_0x1a48af['isEmpty']||_0x2988aa&&_0x2988aa['isEmpty']){const _0x556135=_0x2988aa&&_0x2988aa['isEmpty']?_0x2988aa:_0x1a48af;_0x44b117&&_0x44b117['type']==_0x1bdd1b+'EmptyContainer'&&_0x44b117['element']['name']==_0x556135['name']?_0x44b117['quantity']++:_0x591e1d['push']({'type':_0x1bdd1b+'EmptyContainer','element':_0x556135,'quantity':0x1});}else _0x591e1d['push']({'type':_0x1bdd1b+'Container','element':_0x1a48af});}}}}}['_resolveDescriptionItems'](_0x4a37ba){const _0x3afa30=this['_locale'],_0x3422f4=[],_0x307b5e=[],_0x314c65=[];for(const _0x4a0057 of _0x4a37ba)switch(_0x4a0057['type']){case'text':if(_0x4a0057['add']=_0x4a0057['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4a0057['remove']=_0x4a0057['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4a0057['add']&&''!=_0x4a0057['remove']){_0x3422f4['push']({'type':'replace','content':o(_0x3afa30,'REPLACE_TEXT',['\x22'+_0x4a0057['remove']+'\x22','\x22'+_0x4a0057['add']+'\x22'])});continue;}if(null!=_0x4a0057['add']['match'](/^ +$/)){_0x3422f4['push']({'type':'insertion','content':o(_0x3afa30,'*Insert:*\x20%0',o(_0x3afa30,'ELEMENT_SPACE',_0x4a0057['add']['length']))});continue;}if(null!=_0x4a0057['remove']['match'](/^ +$/)){_0x3422f4['push']({'type':'deletion','content':o(_0x3afa30,'*Remove:*\x20%0',o(_0x3afa30,'ELEMENT_SPACE',_0x4a0057['remove']['length']))});continue;}if(''!=_0x4a0057['add']){_0x3422f4['push']({'type':'insertion','content':o(_0x3afa30,'*Insert:*\x20%0','\x22'+_0x4a0057['add']+'\x22')});continue;}_0x3422f4['push']({'type':'deletion','content':o(_0x3afa30,'*Remove:*\x20%0','\x22'+_0x4a0057['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3422f4['push']({'type':'insertion','content':o(_0x3afa30,'*Insert:*\x20%0',this['getItemLabel'](_0x4a0057['element'],_0x4a0057['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3422f4['push']({'type':'deletion','content':o(_0x3afa30,'*Remove:*\x20%0',this['getItemLabel'](_0x4a0057['element'],_0x4a0057['quantity']))});continue;case'addContainer':_0x3422f4['push']({'type':'insertion','content':o(_0x3afa30,'*Split:*\x20%0',this['getItemLabel'](_0x4a0057['element'],_0x4a0057['quantity']))});continue;case'removeContainer':_0x3422f4['push']({'type':'deletion','content':o(_0x3afa30,'*Merge:*\x20%0',this['getItemLabel'](_0x4a0057['element'],_0x4a0057['quantity']))});continue;case'addFormat':_0x307b5e['push'](_0x4a0057['key']);continue;case'removeFormat':_0x314c65['push'](_0x4a0057['key']);continue;default:_0x3422f4['push'](_0x4a0057);}if(_0x307b5e['length']){const _0x3e5e48=_0x307b5e['map'](_0x46b107=>this['_attributeLabels']['has'](_0x46b107)?this['_attributeLabels']['get'](_0x46b107):_0x46b107)['join'](',\x20');_0x3422f4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3e5e48)});}if(_0x314c65['length']){const _0x4a4474=_0x314c65['map'](_0x5a985d=>this['_attributeLabels']['has'](_0x5a985d)?this['_attributeLabels']['get'](_0x5a985d):_0x5a985d)['join'](',\x20');_0x3422f4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4a4474)});}return _0x3422f4;}['_handleCustomCallbackDescription'](_0x3edf57){for(const _0x9d228e of this['_customCallbacks']){const _0x292359=_0x9d228e(_0x3edf57);if(_0x292359&&'type'in _0x292359)return _0x292359;}}['_handleAttributeSuggestionDescription'](_0xa00cb6,_0x3c62b5){const _0x365b4e=_0x3c62b5['data'],_0x251d39=void 0x0===_0x365b4e['newValue']?'removeFormat':'addFormat';_0xa00cb6['push']({'type':_0x251d39,'key':_0x365b4e['key']});}['_handleRenameSuggestionDescription'](_0x474f04,_0x18068c){_0x474f04['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x18068c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5d6ab0,_0x28b5c5,_0xf3360b){if(this['_addDescriptionItems'](_0x5d6ab0,_0x28b5c5),_0xf3360b&&_0xf3360b['getFirstRange']()&&!_0x28b5c5['getFirstRange']()['end']['isEqual'](_0xf3360b['getFirstRange']()['start'])){const _0x42efbe=_0x5d6ab0[_0x5d6ab0['length']-0x1],_0x21f4ad='insertion'==_0x28b5c5['type']?'add':'remove';_0x42efbe&&'text'==_0x42efbe['type']&&(_0x42efbe[_0x21f4ad]+='\x0a');}}}class U extends _0x27318c{['afterInit'](){const _0x5cc569=this['editor'],_0x30f2a6=_0x5cc569['plugins']['get']('TrackChangesEditing');_0x5cc569['commands']['get']('showAIAssistant')&&_0x30f2a6['enableCommand']('showAIAssistant');}}class V extends _0x27318c{['afterInit'](){const _0x401ee8=this['editor'],_0x5a0930=_0x401ee8['locale'];if(!_0x401ee8['plugins']['has']('AlignmentEditing'))return;const _0x1295ba=_0x401ee8['plugins']['get']('TrackChangesEditing');_0x1295ba['enableDefaultAttributesIntegration']('alignment'),_0x1295ba['registerBlockAttribute']('alignment'),_0x1295ba['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5a0930,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b6495=this['editor'],_0x4036e6=_0x4b6495['locale'];_0x4b6495['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x218d75=>{if('formatBlock'!=_0x218d75['type'])return;const {data:_0x11745f}=_0x218d75;if(_0x11745f&&'alignment'==_0x11745f['commandName']){const _0x5735a0=_0x11745f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4036e6,'*Format:*\x20%0',function(_0x330900){switch(_0x330900){case'left':return o(_0x4036e6,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4036e6,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4036e6,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4036e6,'FORMAT_JUSTIFY_TEXT');}}(_0x5735a0))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x27318c{['afterInit'](){const _0x3ab29f=this['editor'],_0x227342=_0x3ab29f['plugins']['get']('TrackChangesEditing'),_0x1054c0=_0x3ab29f['locale'];for(const _0x412fe5 of ti){if(!_0x3ab29f['plugins']['has'](_0x412fe5))continue;const _0x38dd70=_0x412fe5['slice'](0x0,-0x7)['toLowerCase'](),_0xaf2382='FORMAT_'+_0x38dd70['toUpperCase']();_0x227342['enableDefaultAttributesIntegration'](_0x38dd70),_0x227342['registerInlineAttribute'](_0x38dd70),_0x227342['descriptionFactory']['registerAttributeLabel'](_0x38dd70,o(_0x1054c0,_0xaf2382));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x592140=this['editor'],_0x43a6b6=_0x592140['locale'],_0x1a5ef9=_0x592140['plugins']['get']('TrackChangesEditing');function _0x195658(_0x51d4c5,_0x4b8d8f){_0x1a5ef9['descriptionFactory']['registerDescriptionCallback'](_0x1a6717=>{if('formatInline'!=_0x1a6717['type'])return;const {data:_0x1f27d9}=_0x1a6717;return _0x1f27d9&&_0x1f27d9['commandName']===_0x51d4c5?_0x1f27d9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x43a6b6,'*Format:*\x20%0',_0x4b8d8f)}:{'type':'format','content':o(_0x43a6b6,'*Remove\x20format:*\x20%0',_0x4b8d8f)}:void 0x0;});}_0x195658('bold',o(_0x43a6b6,'FORMAT_BOLD')),_0x195658('italic',o(_0x43a6b6,'FORMAT_ITALIC')),_0x195658('underline',o(_0x43a6b6,'FORMAT_UNDERLINE')),_0x195658('code',o(_0x43a6b6,'FORMAT_CODE')),_0x195658('strikethrough',o(_0x43a6b6,'FORMAT_STRIKETHROUGH')),_0x195658('subscript',o(_0x43a6b6,'FORMAT_SUBSCRIPT')),_0x195658('superscript',o(_0x43a6b6,'FORMAT_SUPERSCRIPT'));}}class F extends _0x27318c{['afterInit'](){const _0x528de7=this['editor'],_0x16a1a2=_0x528de7['locale'];if(!_0x528de7['plugins']['has']('BlockQuoteEditing'))return;const _0x4507a5=_0x528de7['plugins']['get']('TrackChangesEditing'),_0x591a49=this['editor']['commands']['get']('blockQuote');_0x4507a5['enableCommand']('blockQuote',(_0x5547d9,_0x2a329b={})=>{const _0x1e9663=this['editor']['model']['document']['selection'],_0x215b73=_0x2a329b&&void 0x0!==_0x2a329b['forceValue']?_0x2a329b['forceValue']:!_0x591a49['value'];let _0x2d3e9f=[];if(_0x215b73){const _0x3ea3ef=Array['from'](_0x1e9663['getSelectedBlocks']())['filter'](_0x154518=>oo(_0x154518)||function(_0xea2b41,_0xd53433){const _0x3054c2=_0xd53433['checkChild'](_0xea2b41['parent'],'blockQuote'),_0x190155=_0xd53433['checkChild'](['$root','blockQuote'],_0xea2b41);return _0x3054c2&&_0x190155;}(_0x154518,this['editor']['model']['schema']));_0x2d3e9f=to(_0x3ea3ef,_0x528de7['model']);}else{const _0x207b45=Array['from'](_0x1e9663['getSelectedBlocks']())['filter'](_0x3b2d80=>oo(_0x3b2d80));_0x2d3e9f=to(_0x207b45,_0x528de7['model']);}_0x528de7['model']['change'](()=>{for(const _0x32de05 of _0x2d3e9f)_0x4507a5['markBlockFormat'](_0x32de05,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x215b73}]});});}),_0x4507a5['descriptionFactory']['registerDescriptionCallback'](_0x19a1c6=>{const {data:_0x4cf6c8}=_0x19a1c6;if(_0x4cf6c8&&'blockQuote'==_0x4cf6c8['commandName']){const _0x5f3e1c=o(_0x16a1a2,'ELEMENT_BLOCK_QUOTE');return _0x4cf6c8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16a1a2,'*Set\x20format:*\x20%0',_0x5f3e1c)}:{'type':'format','content':o(_0x16a1a2,'*Remove\x20format:*\x20%0',_0x5f3e1c)};}});}}function oo(_0x42e10c){return'blockQuote'==_0x42e10c['parent']['name'];}class L extends _0x27318c{['afterInit'](){const _0x4a95cf=this['editor'],_0x131c41=_0x4a95cf['locale'],_0x1b562a=_0x4a95cf['plugins']['get']('TrackChangesEditing');_0x4a95cf['plugins']['has']('BookmarkEditing')&&(_0x1b562a['enableCommand']('insertBookmark'),_0x1b562a['enableDefaultAttributesIntegration']('updateBookmark'),_0x1b562a['registerBlockAttribute']('bookmarkId'),_0x1b562a['descriptionFactory']['registerDescriptionCallback'](_0x23a1e7=>{if('insertion'!=_0x23a1e7['type']&&'deletion'!=_0x23a1e7['type']&&'attribute'!=_0x23a1e7['type'])return;const _0x3ead9b=_0x23a1e7['getContainedElement']();if(null==_0x3ead9b)return;if(!_0x3ead9b['is']('element','bookmark'))return;const _0xaa7abd=_0x3ead9b['getAttribute']('bookmarkId');if('insertion'==_0x23a1e7['type'])return{'type':'insertion','content':o(_0x131c41,'*Insert:*\x20%0','\x22'+_0xaa7abd+'\x22\x20'+o(_0x131c41,'ELEMENT_BOOKMARK'))};if('deletion'==_0x23a1e7['type'])return{'type':'deletion','content':o(_0x131c41,'*Remove:*\x20%0','\x22'+_0xaa7abd+'\x22\x20'+o(_0x131c41,'ELEMENT_BOOKMARK'))};const {data:_0x54b8cc}=_0x23a1e7;if(!_0x54b8cc||'bookmarkId'!=_0x54b8cc['key'])return;return{'type':'format','content':o(_0x131c41,'*Set\x20bookmark:*\x20%0','\x22'+_0x54b8cc['newValue']+'\x22')};}));}}class J extends _0x27318c{['afterInit'](){const _0x58a592=this['editor'];_0x58a592['plugins']['has']('CaseChange')&&(_0x58a592['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x58a592['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x58a592['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x27318c{['afterInit'](){const _0x24dbba=this['editor'];_0x24dbba['commands']['get']('ckbox')&&_0x24dbba['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x27318c{['afterInit'](){const _0x122e35=this['editor'];if(!_0x122e35['plugins']['has']('CodeBlock'))return;const _0x27ec58=_0x122e35['plugins']['get']('TrackChangesEditing'),_0x2eb355=_0x122e35['locale'],_0x542891=_0x122e35['config']['get']('codeBlock')['languages'],_0x1da8b9=_0x122e35['commands']['get']('codeBlock');_0x27ec58['enableCommand']('indentCodeBlock'),_0x27ec58['enableCommand']('outdentCodeBlock'),_0x27ec58['enableCommand']('codeBlock',(_0x4a3fc4,_0x2c8023={})=>{const _0x19d8ee=_0x122e35['model'],_0x590766=_0x122e35['model']['document']['selection'],_0x51aa5b=_0x2c8023&&void 0x0!==_0x2c8023['forceValue']?_0x2c8023['forceValue']:!_0x1da8b9['value'];let _0x4a55be;_0x2c8023['language']||(_0x2c8023['language']=_0x542891[0x0]['language']),_0x4a55be=_0x51aa5b?Array['from'](_0x590766['getSelectedBlocks']())['filter'](_0x16da51=>eo(_0x16da51)||function(_0x46c489,_0x488ea4){if(_0x46c489['is']('rootElement')||_0x488ea4['isLimit'](_0x46c489))return!0x1;return _0x488ea4['checkChild'](_0x46c489['parent'],'codeBlock');}(_0x16da51,_0x19d8ee['schema'])):Array['from'](_0x590766['getSelectedBlocks']())['filter'](_0x1efd9f=>eo(_0x1efd9f));const _0x14c4b4=to(_0x4a55be,_0x19d8ee);_0x19d8ee['change'](()=>{for(const _0x4dc2dd of _0x14c4b4)_0x27ec58['markBlockFormat'](_0x4dc2dd,{'commandName':'codeBlock','commandParams':[{..._0x2c8023,'forceValue':_0x51aa5b}],'formatGroupId':'blockName'});});}),(_0x27ec58['descriptionFactory']['registerElementLabel']('codeBlock',_0x5abec5=>o(_0x2eb355,'ELEMENT_CODE_BLOCK',_0x5abec5)),_0x27ec58['descriptionFactory']['registerDescriptionCallback'](_0x1cf9cb=>{if('formatBlock'!=_0x1cf9cb['type'])return;const _0x3f8a10=_0x2eb355['t'],{data:_0x50c012}=_0x1cf9cb;if(!_0x50c012||'codeBlock'!=_0x50c012['commandName'])return;const _0x31085b=_0x50c012['commandParams'][0x0]['language'],_0x14d667=_0x3f8a10(_0x542891['find'](_0x3f4e76=>_0x3f4e76['language']===_0x31085b)['label'])['toLowerCase']();return _0x50c012['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2eb355,'*Set\x20format:*\x20%0',o(_0x2eb355,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x14d667+')')}:{'type':'format','content':o(_0x2eb355,'*Remove\x20format:*\x20%0',o(_0x2eb355,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x28a1fa){return'codeBlock'==_0x28a1fa['name'];}class z extends _0x27318c{['afterInit'](){const _0x57ee7f=this['editor'];if(!_0x57ee7f['plugins']['has']('CommentsEditing'))return;_0x57ee7f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4f82f2,_0x4ea9b3,_0x47a4cc){const _0x3c91c2=[];for(const _0x1b114a of _0x4ea9b3['getItems']())_0x1b114a['hasAttribute'](_0x4f82f2)&&_0x3c91c2['push'](_0x47a4cc['createRangeOn'](_0x1b114a));return _0x3c91c2;}function De(_0x12cefa,_0x592f7b,{showActiveMarker:_0xae9356=!0x0}={}){const _0x28c27d=_0x12cefa['plugins']['get']('TrackChangesEditing');return(_0x45c318,_0xbeda86,_0x511b61)=>{if(!_0x511b61['consumable']['test'](_0xbeda86['markerRange'],_0x45c318['name']))return;const _0x30a042=_0xbeda86['markerRange']['getWalker'](),_0x2fab1e=_0xbeda86['markerRange']['start'],_0x4eab5d=_0x12cefa['model']['schema'];let _0x54963a=null,_0x2dc7b0=null,_0x272f04=!0x1,_0x9cefdf=!0x1;for(const _0x1c7491 of _0x30a042){const _0xf91a52=_0x1c7491['item'];_0x272f04=_0x272f04||_0x4eab5d['isContent'](_0xf91a52);const _0x4b4f6e=_0x511b61['mapper']['toViewElement'](_0xf91a52);if(_0x4b4f6e&&_0x4b4f6e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1c7491['type']&&(_0x4eab5d['isBlock'](_0xf91a52)&&!_0x4eab5d['isLimit'](_0xf91a52)&&(_0xf91a52['nextSibling']||_0x2fab1e['isAtEnd']?_0x54963a&&_0x54963a['parent']==_0xf91a52||(_0x54963a=_0xf91a52,_0x540103(_0x1c7491['previousPosition']),_0x9cefdf=!0x0):_0x2dc7b0=_0x2dc7b0||_0x1c7491['previousPosition']));}function _0x540103(_0x8d2642){const {authorId:_0x5676cb}=_0x28c27d['_splitMarkerName'](_0xbeda86['markerName']),_0x486778=_0x511b61['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x592f7b,'data-author-id':_0x5676cb}),_0xbe554c=_0x511b61['mapper']['toViewPosition'](_0x8d2642);_0xae9356&&_0x28c27d['activeMarkers']['includes'](_0xbeda86['markerName'])&&_0x511b61['writer']['addClass']('ck-suggestion-marker--active',_0x486778),_0x511b61['writer']['insert'](_0xbe554c,_0x486778),_0x511b61['mapper']['bindElementToMarker'](_0x486778,_0xbeda86['markerName']);}_0x272f04||_0x9cefdf||!_0x2dc7b0||_0x540103(_0x2dc7b0);};}class K extends _0x27318c{static get['requires'](){return[_0x14f534];}['init'](){const _0x409877=this['editor'],_0x178a8e=_0x409877['plugins']['get']('TrackChangesEditing');_0x178a8e['enableCommand']('delete');const _0x5b9bc8=_0x409877['commands']['get']('deleteForward');_0x178a8e['enableCommand']('deleteForward',(_0x55f070,_0x2e2cd9={})=>{const _0x455081=_0x409877['model']['createSelection'](_0x409877['model']['document']['selection']);_0x455081['isCollapsed']&&_0x409877['model']['modifySelection'](_0x455081,{'direction':'forward','unit':_0x2e2cd9['unit']});const _0x36a329=_0x455081['getFirstRange'](),_0x4fde69=_0x48c676['fromRange'](_0x36a329);let _0x215831;_0x55f070(_0x2e2cd9),_0x215831='$graveyard'==_0x4fde69['root']['rootName']?_0x409877['model']['createRange'](_0x36a329['start']):_0x409877['model']['createRange'](_0x4fde69['start'],_0x4fde69['end']),_0x4fde69['detach'](),_0x409877['model']['enqueueChange'](_0x5b9bc8['buffer']['batch'],_0x13e864=>{_0x5b9bc8['buffer']['lock'](),_0x13e864['setSelection'](_0x13e864['createRange'](_0x215831['end'])),_0x5b9bc8['buffer']['unlock']();});}),_0x409877['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x409877,'merge'),{'priority':'high'}),_0x409877['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x25dbe7,_0x2ab8de,_0x3cf477)=>{_0x3cf477['options']['showSuggestionHighlights']&&De(_0x409877,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x25dbe7,_0x2ab8de,_0x3cf477);},{'priority':'high'}),_0x409877['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x38a41d,_0x1f5df7,_0x586a81)=>{const _0x383f19=_0x586a81['mapper']['markerNameToElements'](_0x1f5df7['markerName']);if(_0x383f19){for(const _0xfadb of _0x383f19)_0xfadb['is']('uiElement')&&(_0x586a81['mapper']['unbindElementFromMarkerName'](_0xfadb,_0x1f5df7['markerName']),_0x586a81['writer']['remove'](_0xfadb));}},{'priority':'high'});}}class W extends _0x27318c{['afterInit'](){const _0x45584f=this['editor'];if(!_0x45584f['plugins']['has']('ListEditing'))return;const _0x3f6910=_0x45584f['locale'],_0x388407=_0x45584f['plugins']['get']('TrackChangesEditing'),_0x28ef45=_0x45584f['plugins']['has']('TodoListEditing'),_0x393d46=!!_0x45584f['config']['get']('list.multiBlock');function _0xe22599(_0x2a0a31){return{'type':'format','content':''+o(_0x3f6910,'*Set\x20format:*\x20%0',_0x2a0a31)};}function _0x46d658(_0xc554a7){return{'type':'format','content':''+o(_0x3f6910,'*Remove\x20format:*\x20%0',_0xc554a7)};}_0x388407['enableDefaultAttributesIntegration']('numberedList'),_0x388407['enableDefaultAttributesIntegration']('bulletedList'),_0x388407['enableDefaultAttributesIntegration']('customNumberedList'),_0x388407['enableDefaultAttributesIntegration']('customBulletedList'),_0x388407['enableDefaultAttributesIntegration']('indentList'),_0x388407['enableDefaultAttributesIntegration']('outdentList'),_0x388407['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x388407['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x388407['registerBlockAttribute']('listItemId'),_0x388407['registerBlockAttribute']('listType'),_0x388407['registerBlockAttribute']('listIndent'),_0x393d46&&(_0x388407['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x388407['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x28ef45&&(_0x388407['enableDefaultAttributesIntegration']('todoList'),_0x388407['enableDefaultAttributesIntegration']('checkTodoList'),_0x388407['registerBlockAttribute']('todoListChecked'),_0x388407['descriptionFactory']['registerDescriptionCallback'](_0x37b761=>{const {data:_0x86384b}=_0x37b761;if(_0x86384b&&'todoListChecked'==_0x86384b['key'])return{'type':'format','content':_0x86384b['newValue']?o(_0x3f6910,'*Check\x20item*'):o(_0x3f6910,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xf196aa=>{if(_0xf196aa['batch']['isUndo'])return!0x1;let _0x3b3eaa=!0x1;const _0x50c609=_0x388407['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2591e2=>'todoListChecked'===_0x388407['_getAttributeKey'](_0x2591e2));for(const _0x417539 of _0x50c609){'todo'!=_0x417539['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x388407['_findSuggestions'](_0x417539['getFirstRange'](),'attribute')['find'](_0x592fd1=>'listType'===_0x388407['_getAttributeKey'](_0x592fd1['suggestion']))||(_0xf196aa['removeMarker'](_0x417539['getFirstMarker']()),_0x3b3eaa=!0x0));}return _0x3b3eaa;})),_0x388407['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3f6910,'FORMAT_INDENT'));const _0x3639c3={'type':'format','content':''};_0x388407['descriptionFactory']['registerDescriptionCallback'](_0x4199ff=>{const {data:_0x2817bc}=_0x4199ff;if(!_0x2817bc||'listType'!=_0x2817bc['key'])return;let _0x36edbf=_0x4199ff['head'];for(;_0x36edbf;){if(_0x36edbf['data']&&(('listStyle'==_0x36edbf['data']['key']||'listMarkerStyle'==_0x36edbf['data']['key'])&&(_0x36edbf['data']['newValue']&&'default'!=_0x36edbf['data']['newValue']||'default'!=_0x36edbf['data']['oldValue']&&!_0x2817bc['newValue'])||!_0x393d46&&_0x36edbf['data']['key']==m))return _0x3639c3;_0x36edbf=_0x36edbf['next'];}if(null==_0x2817bc['newValue'])switch(_0x2817bc['oldValue']){case'bulleted':return _0x46d658(o(_0x3f6910,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46d658(o(_0x3f6910,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46d658(o(_0x3f6910,'ELEMENT_TODO_LIST'));}switch(_0x2817bc['newValue']){case'bulleted':return _0xe22599(o(_0x3f6910,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe22599(o(_0x3f6910,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe22599(o(_0x3f6910,'ELEMENT_TODO_LIST'));}}),_0x388407['descriptionFactory']['registerDescriptionCallback'](_0x1c0926=>{const {data:_0x4477a5}=_0x1c0926;if(_0x4477a5&&'listIndent'==_0x4477a5['key'])return null==_0x4477a5['newValue']||null==_0x4477a5['oldValue']&&0x0==_0x4477a5['newValue']?_0x3639c3:void 0x0;}),_0x388407['descriptionFactory']['registerDescriptionCallback'](_0x39ca58=>{if('attribute'!=_0x39ca58['type'])return;const {data:_0xbdeb47}=_0x39ca58;if(!_0xbdeb47||'listItemId'!=_0xbdeb47['key'])return;const _0x2d8124=Te(_0x39ca58);return'newValue'==_0x2d8124?{'type':'format','content':o(_0x3f6910,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2d8124?{'type':'format','content':o(_0x3f6910,'*Split:*\x20list\x20item')}:_0x3639c3;}),_0x45584f['model']['document']['registerPostFixer'](_0x3c161c=>this['listItemIdFixer'](_0x3c161c)),_0x45584f['model']['document']['registerPostFixer'](_0x49db9a=>this['noTrackChangesFixer'](_0x49db9a)),_0x45584f['model']['document']['on']('change:data',(_0x1f1a35,_0x4dccad)=>{if(_0x4dccad['isUndo']||!_0x4dccad['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x90c7cc){if(_0x90c7cc['batch']['isUndo']||!_0x90c7cc['batch']['isLocal'])return!0x1;let _0x8c3cb0=!0x1;const _0xa878f6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28ee84=>_0x28ee84['data']&&'listItemId'==_0x28ee84['data']['key'])['filter'](_0x56fb89=>_0x56fb89['data']['newValue']&&_0x56fb89['data']['oldValue']);for(const _0xe0909f of _0xa878f6)Te(_0xe0909f)||(_0x90c7cc['removeMarker'](_0xe0909f['getFirstMarker']()),_0x8c3cb0=!0x0);return _0x8c3cb0;}['noTrackChangesFixer'](_0x914b3d){if(_0x914b3d['batch']['isUndo']||!_0x914b3d['batch']['isLocal'])return!0x1;const _0x56d085=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x56d085['trackChangesCommand']['value'])return!0x1;let _0x2ddb3e=!0x1;const _0x236040=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3b175b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1b9014=>'attribute'==_0x1b9014['type'])['filter'](_0x377372=>_0x236040['includes'](_0x377372['attributeKey']));if(0x0==_0x3b175b['length'])return _0x2ddb3e;for(const _0x52392b of _0x3b175b){const _0x4239b4=_0x56d085['_findSuggestions'](_0x52392b['range'],'attribute')['filter'](_0x40a255=>!_0x40a255['meta']['isNextTo'])['map'](_0x146ad8=>_0x146ad8['suggestion'])['filter'](_0x4e5ed5=>{const _0x113ec9=_0x56d085['_getAttributeKey'](_0x4e5ed5);return _0x236040['includes'](_0x113ec9);});if(_0x4239b4['length']){for(const _0x3470de of _0x4239b4)_0x914b3d['removeMarker'](_0x3470de['getFirstMarker']());_0x2ddb3e=!0x0;}}return _0x2ddb3e;}['assureChains'](){const _0x165861=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24a9ae=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x33891a;const _0x3a9db6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3cb276=>{if(_0x3cb276['data']['oldRange']||!_0x3cb276['data']['newRange'])return null;if(!_0x3cb276['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x20bc05}=_0x165861['_splitMarkerName'](_0x3cb276['name']);if(!_0x165861['hasSuggestion'](_0x20bc05))return null;const _0x12f462=_0x165861['getSuggestion'](_0x20bc05);return _0x24a9ae['includes'](_0x12f462['data']['key']);})['map'](_0x36a7a3=>{const {id:_0xc039ae}=_0x165861['_splitMarkerName'](_0x36a7a3['name']),_0x1502bd=_0x165861['getSuggestion'](_0xc039ae);return _0x33891a=_0x1502bd['attributes']['groupId'],_0x1502bd['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3a9db6['size'])return;const _0x314670=_0x165861['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ff481=>'attribute'==_0x2ff481['type']&&_0x2ff481['data']&&_0x24a9ae['includes'](_0x2ff481['data']['key'])&&_0x2ff481['attributes']['groupId']!=_0x33891a)['map'](_0x42a5da=>({'listItem':_0x42a5da['getFirstRange']()['start']['nodeAfter'],'groupId':_0x42a5da['attributes']['groupId']})),_0x25f49b=new Set();for(const {groupId:_0x5e6110,listItem:_0x561fdc}of _0x314670)_0x3a9db6['has'](_0x561fdc)&&_0x25f49b['add'](_0x5e6110);for(const _0x333c1b of _0x165861['getSuggestions']())_0x25f49b['has'](_0x333c1b['attributes']['groupId'])&&_0x333c1b['setAttribute']('groupId',_0x33891a);}['_supportLegacySuggestions'](){const _0xb936e2=this['editor'],_0x30471f=_0xb936e2['locale'],_0x52aeff=_0xb936e2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x52aeff['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x36a191,_0x374042){const _0x383454=[];for(let _0x145565 of _0x36a191)_0x145565['start']['nodeAfter']===_0x145565['end']['parent']&&(_0x145565=_0xb936e2['model']['createRange'](_0xb936e2['model']['createPositionAt'](_0x145565['start']['nodeAfter'],0x0))),_0x383454['push'](_0x145565);_0xb936e2['model']['change'](_0x4db6fd=>{const _0x29422c=_0xb936e2['model']['document']['selection'],_0x249ebb=Array['from'](_0x29422c['getRanges']())['map'](_0xa54c89=>_0x48c676['fromRange'](_0xa54c89));_0x4db6fd['setSelection'](_0x383454),_0xb936e2['commands']['get'](_0x374042['commandName'])['refresh'](),_0x374042['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xb936e2['execute'](_0x374042['commandName'],..._0x374042['commandParams']),_0x4db6fd['setSelection'](_0x249ebb);for(const _0x3948d0 of _0x249ebb)_0x3948d0['detach']();});}),_0x52aeff['descriptionFactory']['registerElementLabel'](function(_0x56fbd0){const _0x8647be=!_0xb936e2['model']['schema']['isObject'](_0x56fbd0),_0x5bec59=_0x56fbd0['previousSibling'],_0x36afa3=_0x56fbd0['nextSibling'],_0x4a7ee2=_0x56fbd0['getAttribute']('listItemId'),_0x568858=!_0x5bec59||_0x5bec59['getAttribute']('listItemId')!==_0x4a7ee2,_0x53147c=!_0x36afa3||_0x36afa3['getAttribute']('listItemId')!==_0x4a7ee2;return _0x8647be&&Boolean(_0x4a7ee2)&&_0x568858&&_0x53147c;},_0x1b3ee0=>o(_0x30471f,'ELEMENT_LIST_ITEM',_0x1b3ee0));}['_registerLegacyDescription'](){const _0xaa0c75=this['editor'],_0xed3701=_0xaa0c75['locale'];function _0x1aa621(_0x249e2){const _0x406dd5=_0xaa0c75['commands']['get']('bulletedList')['value'],_0x43dc97=_0xaa0c75['commands']['get']('numberedList')['value'];return'numberedList'===_0x249e2?_0x406dd5:_0x43dc97;}_0xaa0c75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x158dd1){if('formatBlock'!=_0x158dd1['type'])return;const {data:_0x4e0644}=_0x158dd1;if(!_0x4e0644)return;let _0x2df9d1,_0x3a58e7,_0x3b65f7,_0x14c021;switch(_0x4e0644['commandName']){case'bulletedList':_0x3b65f7=_0x4e0644['commandParams'][0x0]['forceValue'],_0x14c021=_0x1aa621(_0x4e0644['commandName']),_0x2df9d1=_0x3b65f7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x14c021&&_0xaa0c75['config']['get']('list.multiBlock')||(_0x2df9d1='*Change\x20to:*\x20%0'),_0x3a58e7={'type':'format','content':o(_0xed3701,_0x2df9d1,o(_0xed3701,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3b65f7=_0x4e0644['commandParams'][0x0]['forceValue'],_0x14c021=_0x1aa621(_0x4e0644['commandName']),_0x2df9d1=_0x3b65f7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x14c021&&_0xaa0c75['config']['get']('list.multiBlock')||(_0x2df9d1='*Change\x20to:*\x20%0'),_0x3a58e7={'type':'format','content':o(_0xed3701,_0x2df9d1,o(_0xed3701,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2df9d1='*Indent:*\x20%0',_0x3a58e7={'type':'format','content':o(_0xed3701,_0x2df9d1,o(_0xed3701,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2df9d1=function(_0xc525f1){const _0x2c6024=_0xc525f1['getFirstRange']();let _0x3baa08=_0x2c6024['start']['nodeAfter'];for(;_0x3baa08&&_0x2c6024['containsItem'](_0x3baa08);){if(_0x3baa08['getAttribute']('listIndent')>0x0)return!0x1;_0x3baa08=_0x3baa08['nextSibling'];}return!0x0;}(_0x158dd1)?o(_0xed3701,'*Format:*\x20remove\x20from\x20%0',o(_0xed3701,function(_0x597c5c){return'ELEMENT_'+_0x597c5c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x158dd1))):o(_0xed3701,'*Outdent:*\x20%0',o(_0xed3701,'ELEMENT_LIST_ITEM')),_0x3a58e7={'type':'format','content':_0x2df9d1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4e0644['multipleBlocks']&&(_0x2df9d1='*Merge:*\x20%0',_0x3a58e7={'type':'deletion','content':o(_0xed3701,_0x2df9d1,o(_0xed3701,'ELEMENT_LIST_ITEM'))});}return _0x3a58e7;});}}function Te(_0x1d9ae7){let _0x44af3d=_0x1d9ae7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x44af3d;){const _0x1d025e=_0x44af3d['getAttribute']('listItemId');if(!_0x1d025e)return!0x1;if(_0x1d025e==_0x1d9ae7['data']['newValue'])return'newValue';if(_0x1d025e==_0x1d9ae7['data']['oldValue'])return'oldValue';_0x44af3d=_0x44af3d['previousSibling'];}return!0x1;}class Se extends _0x27318c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xd13d33=this['editor']['config']['get']('list.properties'),_0x19d00e=this['editor']['plugins']['get']('TrackChangesEditing');_0xd13d33['styles']&&(_0x19d00e['enableDefaultAttributesIntegration']('listStyle'),_0x19d00e['registerBlockAttribute']('listStyle')),_0xd13d33['reversed']&&(_0x19d00e['enableDefaultAttributesIntegration']('listReversed'),_0x19d00e['registerBlockAttribute']('listReversed')),_0xd13d33['startIndex']&&(_0x19d00e['enableDefaultAttributesIntegration']('listStart'),_0x19d00e['registerBlockAttribute']('listStart'));const _0x5d81f2={'type':'format','content':''};_0x19d00e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xb3aabf=this['editor']['locale'];_0x19d00e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xb3aabf,'FORMAT_LIST_REVERSED')),_0x19d00e['descriptionFactory']['registerDescriptionCallback'](_0x387eb7=>{const {data:_0x2ecc89}=_0x387eb7;if(_0x2ecc89&&'listReversed'==_0x2ecc89['key'])return null==_0x2ecc89['newValue']||0x0==_0x2ecc89['newValue']&&null==_0x2ecc89['oldValue']?_0x5d81f2:void 0x0;}),_0x19d00e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xb3aabf,'FORMAT_LIST_START')),_0x19d00e['descriptionFactory']['registerDescriptionCallback'](_0x59a3e8=>{const {data:_0x43562a}=_0x59a3e8;if(_0x43562a&&'listStart'==_0x43562a['key'])return null==_0x43562a['newValue']||0x1==_0x43562a['newValue']&&null==_0x43562a['oldValue']?_0x5d81f2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2f7178=>{if(_0x2f7178['batch']['isUndo'])return!0x1;let _0x211183=!0x1;const _0x42b4b=_0x19d00e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x309ee7=>{const _0x4e90c0=_0x19d00e['_getAttributeKey'](_0x309ee7);return'listStart'==_0x4e90c0||'listReversed'==_0x4e90c0;});for(const _0x359192 of _0x42b4b){const _0x4eecd8=_0x359192['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4eecd8||'customNumbered'==_0x4eecd8)continue;_0x19d00e['_findSuggestions'](_0x359192['getFirstRange'](),'attribute')['find'](_0xcdc12b=>'listType'==_0x19d00e['_getAttributeKey'](_0xcdc12b['suggestion']))||(_0x2f7178['removeMarker'](_0x359192['getFirstMarker']()),_0x211183=!0x0);}return _0x211183;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x6049b1){const _0x3063da=this['editor']['locale'],{data:_0x3676f5}=_0x6049b1,_0x573513={'type':'format','content':''};if(!_0x3676f5||'listStyle'!=_0x3676f5['key'])return;if(!_0x3676f5['oldValue'])return'default'==_0x3676f5['newValue']?_0x573513:{'type':'format','content':''+o(_0x3063da,'*Set\x20format:*\x20%0',o(_0x3063da,this['_getTranslationKeyForListStyle'](_0x3676f5['newValue'])))};if(!_0x3676f5['newValue']){if('default'==_0x3676f5['oldValue'])return _0x573513;let _0x9b7afb=_0x6049b1['head'];for(;_0x9b7afb;){if(_0x9b7afb['data']&&'listType'==_0x9b7afb['data']['key']&&_0x9b7afb['data']['newValue'])return _0x573513;_0x9b7afb=_0x9b7afb['next'];}return{'type':'format','content':''+o(_0x3063da,'*Remove\x20format:*\x20%0',o(_0x3063da,this['_getTranslationKeyForListStyle'](_0x3676f5['oldValue'])))};}if('default'!=_0x3676f5['newValue'])return{'type':'format','content':''+o(_0x3063da,'*Set\x20format:*\x20%0',o(_0x3063da,this['_getTranslationKeyForListStyle'](_0x3676f5['newValue'])))};let _0x31d0ea=_0x6049b1['head'];for(;_0x31d0ea;){if(_0x31d0ea['data']&&'listType'==_0x31d0ea['data']['key']&&_0x31d0ea['data']['newValue']&&_0x31d0ea['data']['oldValue'])return _0x573513;_0x31d0ea=_0x31d0ea['next'];}return{'type':'format','content':o(_0x3063da,'*Set\x20format:*\x20%0',o(_0x3063da,'ELEMENT_'+_0x6049b1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x24bdac=this['editor'],_0x24c823=_0x24bdac['locale'];_0x24bdac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16ec56=>{if('formatBlock'!=_0x16ec56['type'])return;const {data:_0x99a661}=_0x16ec56;if(!_0x99a661)return;let _0x327454,_0x303091;switch(_0x99a661['commandName']){case'listStyle':_0x327454='*Change\x20to:*\x20%0',_0x303091={'type':'format','content':o(_0x24c823,_0x327454,o(_0x24c823,this['_getTranslationKeyForListStyle'](_0x99a661['commandParams'][0x0]['type'])))};break;case'listReversed':_0x327454=_0x99a661['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x303091={'type':'format','content':o(_0x24c823,_0x327454)};break;case'listStart':_0x327454='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x303091={'type':'format','content':o(_0x24c823,_0x327454,_0x99a661['commandParams'][0x0]['startIndex'])};}return _0x303091;});}['_getTranslationKeyForListStyle'](_0x4b767f){return'ELEMENT_'+function(_0x5c2b7d){if(_e['includes'](_0x5c2b7d))return'bulleted';if(Re['includes'](_0x5c2b7d))return'numbered';return null;}(_0x4b767f)['toUpperCase']()+'_LIST_'+_0x4b767f['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x27318c{static get['requires'](){return[_0x396d86];}['init'](){const _0x525c37=this['editor'],_0xf9ef12=_0x525c37['plugins']['get']('TrackChangesEditing'),_0x29f911=_0x525c37['commands']['get']('enter');_0xf9ef12['enableCommand']('enter',()=>{_0x525c37['model']['change'](_0x3a8ad0=>{const _0x16cb5f=_0x525c37['model']['document']['selection'],_0x20904a=_0x16cb5f['getFirstPosition'](),_0x39707f=_0x48c676['fromRange'](_0x16cb5f['getFirstRange']());if(_0x29f911['enterBlock'](_0x3a8ad0)){const _0xe03d0f=_0x525c37['model']['createPositionAt'](_0x20904a['parent']['nextSibling'],0x0),_0x28bd09=_0x3a8ad0['createRange'](_0x20904a,_0xe03d0f);_0xf9ef12['markInsertion'](_0x28bd09);}else _0x3a8ad0['setSelection'](_0x3a8ad0['createRange'](_0x39707f['end']));_0x39707f['detach'](),_0x29f911['fire']('afterExecute',{'writer':_0x3a8ad0});});}),_0x525c37['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x525c37,'split'),{'priority':'high'}),_0x525c37['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1853f8,_0x957312,_0x2bd371)=>{const _0x2155ec=_0x2bd371['mapper']['markerNameToElements'](_0x957312['markerName']);if(_0x2155ec){for(const _0x4fca53 of _0x2155ec)_0x4fca53['hasClass']('ck-suggestion-marker-split')&&(_0x2bd371['mapper']['unbindElementFromMarkerName'](_0x4fca53,_0x957312['markerName']),_0x2bd371['writer']['remove'](_0x4fca53));}},{'priority':'high'}),_0x525c37['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4f8c6b,_0x353466,_0x3cf9f2)=>{_0x3cf9f2['options']['showSuggestionHighlights']&&De(_0x525c37,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4f8c6b,_0x353466,_0x3cf9f2);},{'priority':'high'});}}class Y extends _0x27318c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xcbcaa=this['editor']['plugins']['get']('TrackChangesEditing');_0xcbcaa['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xcbcaa['enableCommand']('findNext'),_0xcbcaa['enableCommand']('findPrevious'),_0xcbcaa['enableCommand']('replace'),_0xcbcaa['enableCommand']('replaceAll');}['handleFindCommand'](_0x6937cd,_0x873e03,_0x2c23d3={}){const _0x3c3872=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x6937cd(_0x22b7ca=>{let _0x8b7bac=('string'==typeof _0x873e03?_0x3c3872['findByTextCallback'](_0x873e03,_0x2c23d3):_0x873e03)(_0x22b7ca);Array['isArray'](_0x8b7bac)&&(_0x8b7bac={'results':_0x8b7bac,'searchText':'string'==typeof _0x873e03?_0x873e03:''});const _0x4cfa87=_0x8b7bac['results']['filter'](_0xf3988e=>!0x1===this['_isInDeletionRange'](_0xf3988e,_0x22b7ca['item']));return{..._0x8b7bac,'results':_0x4cfa87};},_0x2c23d3);}['_isInDeletionRange'](_0x120ed5,_0x5b524c){const _0xad7e8c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b524c,_0x120ed5['start']),this['editor']['model']['createPositionAt'](_0x5b524c,_0x120ed5['end']));for(const _0x4d8912 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xad7e8c['getIntersection'](_0x4d8912['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x27318c{['afterInit'](){const _0x23a8d8=this['editor']['locale'],_0x24bcaf=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2f5670,commandName:_0x528e8b}of ro)this['editor']['plugins']['has'](_0x2f5670)&&(_0x24bcaf['enableDefaultAttributesIntegration'](_0x528e8b),_0x24bcaf['registerInlineAttribute'](_0x528e8b));_0x24bcaf['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x23a8d8,'FORMAT_FONT_SIZE')),_0x24bcaf['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x23a8d8,'FORMAT_FONT_FAMILY')),_0x24bcaf['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x23a8d8,'FORMAT_FONT_COLOR')),_0x24bcaf['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x23a8d8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22be44=this['editor'],_0x156e53=_0x22be44['locale'];_0x22be44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ed964=>{const _0x2bc2d3=_0x156e53['t'];if('formatInline'!=_0x3ed964['type'])return;const {data:_0x4c7d10}=_0x3ed964;if(null!=_0x4c7d10){if('fontSize'==_0x4c7d10['commandName']){const _0x4109c7=_0x4c7d10['commandParams'][0x0]['value'];if(_0x4109c7){const _0x1d0aff=_0x2bc2d3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x58f8d0=>_0x58f8d0['model']==_0x4109c7)['title'])['toLowerCase']();return{'type':'format','content':o(_0x156e53,'*Set\x20font\x20size:*\x20%0',_0x1d0aff)};}return{'type':'format','content':o(_0x156e53,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4c7d10['commandName']){const _0x390c7c=_0x4c7d10['commandParams'][0x0]['value'];return _0x390c7c?{'type':'format','content':o(_0x156e53,'*Set\x20font\x20family:*\x20%0',_0x390c7c)}:{'type':'format','content':o(_0x156e53,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4c7d10['commandName']){const _0x95dbd8=_0x4c7d10['commandParams'][0x0]['value'];if(_0x95dbd8){const _0x5244bb=_0x3f4046(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5000e8=>_0x5000e8['model']==_0x95dbd8);let _0x490a95=_0x95dbd8,_0x579d6a='';return _0x5244bb&&(_0x490a95=_0x5244bb['label'],_0x579d6a=_0x2bc2d3(_0x490a95)['toLowerCase']()),{'type':'format','content':o(_0x156e53,'*Set\x20font\x20color:*\x20%0',_0x579d6a)['trim'](),'color':{'value':_0x95dbd8,'title':_0x579d6a||_0x490a95}};}return{'type':'format','content':o(_0x156e53,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4c7d10['commandName']){const _0x565bcb=_0x4c7d10['commandParams'][0x0]['value'];if(_0x565bcb){const _0x50f983=_0x3f4046(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x46d4a0=>_0x46d4a0['model']==_0x565bcb);let _0x1ecf02=_0x565bcb,_0x3db25f='';return _0x50f983&&(_0x1ecf02=_0x50f983['label'],_0x3db25f=_0x2bc2d3(_0x1ecf02)['toLowerCase']()),{'type':'format','content':o(_0x156e53,'*Set\x20font\x20background\x20color:*\x20%0',_0x3db25f)['trim'](),'color':{'value':_0x565bcb,'title':_0x3db25f||_0x1ecf02}};}return{'type':'format','content':o(_0x156e53,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x27318c{['afterInit'](){const _0x17091d=this['editor'],_0x2c7a6a=_0x17091d['plugins']['get']('TrackChangesEditing'),_0x1e7412=_0x17091d['commands']['get']('copyFormat'),_0x2edd24=_0x17091d['commands']['get']('pasteFormat');_0x1e7412&&_0x2edd24&&(_0x2c7a6a['enableDefaultAttributesIntegration']('pasteFormat'),_0x2c7a6a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4862b8=this['editor'],_0x125314=_0x4862b8['locale'];_0x4862b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bc82a=>{if('formatBlock'!=_0x4bc82a['type']&&'formatInline'!=_0x4bc82a['type'])return;const {data:_0x24ae65}=_0x4bc82a;if(_0x24ae65&&'pasteFormat'===_0x24ae65['commandName']){const _0x4dc26a=[],_0x3606aa=_0x24ae65['commandParams'][0x0];for(const [_0x38cb28,_0x99d4bb]of Object['entries'](_0x3606aa))_0x4dc26a['push'](so(_0x4862b8,_0x38cb28,_0x99d4bb));return _0x4dc26a['length']?{'type':'format','content':o(_0x125314,'*Set\x20format\x20to:*\x20%0',_0x4dc26a['join'](',\x20'))}:{'type':'format','content':o(_0x125314,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4c4f5d,_0x106b47,_0x249ce8){const _0x45fc75=_0x4c4f5d['locale']['t'],_0x23c863=_0x106b47['split'](/(?=[A-Z])/)['join']('\x20'),_0x4b7fdf=_0x45fc75(_0x23c863['charAt'](0x0)['toUpperCase']()+_0x23c863['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x249ce8)return _0x4b7fdf;if('fontColor'===_0x106b47||'fontBackgroundColor'===_0x106b47){const _0x148dc2=_0x3f4046(_0x4c4f5d['config']['get']('fontColor.colors'))['find'](_0x8bd220=>_0x8bd220['model']==_0x249ce8);return _0x4b7fdf+'\x20('+(_0x148dc2?_0x45fc75(_0x148dc2['label'])['toLowerCase']():_0x249ce8)+')';}if('fontSize'===_0x106b47&&isNaN(parseFloat(_0x249ce8))){const _0x55970a=_0x4c4f5d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4c4f5d['config']['get']('fontSize.options'))['find'](_0x48b39f=>_0x48b39f['model']==_0x249ce8);return _0x4b7fdf+'\x20('+(_0x55970a?_0x45fc75(_0x55970a['title'])['toLowerCase']():_0x249ce8)+')';}return _0x4b7fdf+'\x20('+_0x249ce8+')';}class nt extends _0x27318c{['_headingOptions'];['afterInit'](){const _0x264743=this['editor'];if(!_0x264743['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x264743['config']['get']('heading.options');const _0x1ccb4c=_0x264743['locale'],_0x52cfb9=_0x264743['plugins']['get']('TrackChangesEditing');_0x52cfb9['enableDefaultAttributesIntegration']('heading');for(const _0x14f1b0 of this['_headingOptions'])'paragraph'!=_0x14f1b0['model']&&_0x52cfb9['descriptionFactory']['registerElementLabel'](_0x14f1b0['model'],_0xf009f2=>{const _0x924b8a=this['_getHeadingLevel'](_0x14f1b0['model']);return null!==_0x924b8a?_0x5074c4(_0xf009f2,_0x924b8a):_0x171e3d(_0xf009f2,_0x14f1b0['title']);});function _0x5074c4(_0xe301e6,_0x48a423){return o(_0x1ccb4c,'ELEMENT_HEADING',[_0xe301e6,_0x48a423]);}function _0x171e3d(_0x423b38,_0x4fa571){return o(_0x1ccb4c,'ELEMENT_HEADING_CUSTOM',[_0x423b38,_0x4fa571]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17fa38=this['editor'],_0x38a066=_0x17fa38['locale'];function _0x2621c4(_0x471a95,_0x5bc0f7){return o(_0x38a066,'ELEMENT_HEADING_CUSTOM',[_0x471a95,_0x5bc0f7]);}_0x17fa38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dde8f=>{if('formatBlock'!=_0x4dde8f['type'])return;const {data:_0x2e776e}=_0x4dde8f;if(_0x2e776e&&'heading'==_0x2e776e['commandName']){const _0x2d0135=_0x2e776e['commandParams'][0x0]['value'],_0x4edde1=this['_getHeadingLevel'](_0x2d0135);if(null!==_0x4edde1)return{'type':'format','content':o(_0x38a066,'*Change\x20to:*\x20%0',(_0x15f1b7=0x1,_0x29afb6=_0x4edde1,o(_0x38a066,'ELEMENT_HEADING',[_0x15f1b7,_0x29afb6])))};const _0x4c39b6=this['_headingOptions']['find'](_0x5662bf=>_0x5662bf['model']===_0x2d0135)['title'];return{'type':'format','content':o(_0x38a066,'*Change\x20to:*\x20%0',_0x2621c4(0x1,_0x4c39b6))};}var _0x15f1b7,_0x29afb6;});}['_getHeadingLevel'](_0x3f55b4){const _0x1739bd=_0x3f55b4['match'](/^heading(\d+)/);if(_0x1739bd)return _0x1739bd[0x1];const _0x5e3cda=this['_headingOptions']?.['find'](_0x19e9f6=>_0x19e9f6['model']==_0x3f55b4);if(_0x5e3cda&&_0x5e3cda['view']){const _0xc96894=_0x5e3cda['view'],_0x4bfdb7=(_0xc96894['name']??_0xc96894)['match'](/^h(\d+)/);if(_0x4bfdb7)return _0x4bfdb7[0x1];}return null;}}class it extends _0x27318c{['afterInit'](){const _0xf223ed=this['editor'];if(!_0xf223ed['plugins']['has']('HighlightEditing'))return;const _0x8e7d67=_0xf223ed['plugins']['get']('TrackChangesEditing'),_0x4583f5=_0xf223ed['locale'];_0x8e7d67['enableDefaultAttributesIntegration']('highlight'),_0x8e7d67['registerInlineAttribute']('highlight'),_0x8e7d67['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4583f5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bcfc0=this['editor'],_0x11334d=_0x5bcfc0['locale'];_0x5bcfc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x314e0c=>{if('formatInline'!=_0x314e0c['type'])return;const {data:_0xaade86}=_0x314e0c;if(_0xaade86&&'highlight'==_0xaade86['commandName']){const _0x5120d8=_0x11334d['t'],_0x2a4890=_0xaade86['commandParams'][0x0]['value'];if(_0x2a4890){const _0x2c0227=_0x5bcfc0['config']['get']('highlight.options')['find'](_0x8373cf=>_0x8373cf['model']==_0x2a4890),_0x486e28=_0x5120d8(_0x2c0227['title'])['toLowerCase']();return{'type':'format','content':o(_0x11334d,'*Set\x20highlight:*\x20%0',_0x486e28),'color':{'value':_0x2c0227['color'],'title':_0x2c0227['title']}};}return{'type':'format','content':o(_0x11334d,'*Remove\x20highlight*',o(_0x11334d,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x27318c{['afterInit'](){const _0x1f61d0=this['editor'];if(!_0x1f61d0['plugins']['has']('HorizontalLineEditing'))return;_0x1f61d0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3f03e4=_0x1f61d0['plugins']['get']('TrackChangesEditing'),_0x25f436=_0x1f61d0['locale'];_0x3f03e4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4aee21=>o(_0x25f436,'ELEMENT_HORIZONTAL_LINE',_0x4aee21)),_0x1f61d0['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1e45a3,{writer:_0x32ed1f,options:_0x1e7318})=>{if(!_0x1e7318['showSuggestionHighlights'])return null;const _0x31475d=_0x32ed1f['createContainerElement']('div'),_0x21fd28=_0x32ed1f['createEmptyElement']('hr');return _0x32ed1f['addClass']('ck-horizontal-line',_0x31475d),_0x32ed1f['insert'](_0x32ed1f['createPositionAt'](_0x31475d,0x0),_0x21fd28),_0x31475d;},'converterPriority':'high'});}}class st extends _0x27318c{['afterInit'](){const _0x4d73c0=this['editor'];if(!_0x4d73c0['plugins']['has']('HtmlEmbed'))return;const _0x2a4403=_0x4d73c0['plugins']['get']('TrackChangesEditing'),_0x1c4fbf=_0x4d73c0['locale'];_0x2a4403['descriptionFactory']['registerElementLabel']('rawHtml',_0x56b96d=>o(_0x1c4fbf,'ELEMENT_HTML_EMBED',_0x56b96d)),_0x2a4403['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2a4403['registerBlockAttribute']('value'),_0x2a4403['descriptionFactory']['registerDescriptionCallback'](_0x261d3f=>{if('attribute'!=_0x261d3f['type'])return;const {data:_0x2a76ec}=_0x261d3f;if(_0x2a76ec&&'value'==_0x2a76ec['key']&&_0x261d3f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5144f0=o(_0x1c4fbf,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1c4fbf,'*Change\x20%0\x20content*',_0x5144f0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x230799=this['editor'],_0x4be971=_0x230799['locale'];_0x230799['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30c282=>{if('formatBlock'!=_0x30c282['type'])return;const {data:_0x3b9484}=_0x30c282;if(_0x3b9484&&'htmlEmbed'==_0x3b9484['commandName']){const _0x6e9f98=o(_0x4be971,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4be971,'*Change\x20%0\x20content*',_0x6e9f98)};}});}}class ot extends _0x27318c{['afterInit'](){const _0x29f3fc=this['editor'];if(!_0x29f3fc['plugins']['has']('ImageEditing'))return;const _0x331f55=_0x29f3fc['plugins']['get']('TrackChangesEditing'),_0x524211=_0x29f3fc['plugins']['get']('ImageUtils'),_0x53c3ab=_0x29f3fc['locale'];_0x331f55['enableCommand']('insertImage'),_0x331f55['descriptionFactory']['registerElementLabel']('imageBlock',_0x576eb8=>o(_0x53c3ab,'ELEMENT_IMAGE',_0x576eb8)),_0x331f55['descriptionFactory']['registerElementLabel']('imageInline',_0x3a9125=>o(_0x53c3ab,'ELEMENT_INLINE_IMAGE',_0x3a9125)),_0x331f55['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x53c3ab,'ELEMENT_CAPTION')),_0x29f3fc['plugins']['has']('ImageUploadEditing')&&_0x331f55['enableCommand']('uploadImage'),_0x29f3fc['plugins']['has']('ImageBlockEditing')&&_0x29f3fc['plugins']['has']('ImageInlineEditing')&&(_0x331f55['enableCommand']('imageTypeInline',(_0x46e405,_0x440d79)=>{const _0x35fb28=_0x524211['getClosestSelectedImageElement'](_0x29f3fc['model']['document']['selection']);_0x29f3fc['model']['change'](()=>{_0x331f55['markBlockFormat'](_0x35fb28,{'commandName':'imageTypeInline','commandParams':[_0x440d79]},[],'convertBlockImageToInline');});}),_0x331f55['enableCommand']('imageTypeBlock',(_0x2fbcdf,_0x208d20)=>{_0x29f3fc['model']['change'](_0x5bf30b=>{let _0x465922=_0x524211['getClosestSelectedImageElement'](_0x29f3fc['model']['document']['selection']),_0x5b3b60=_0x5bf30b['createRangeOn'](_0x465922);const _0x118c13=_0xa06e13['fromPosition'](_0x5b3b60['start'],'toPrevious'),_0x35b01b=_0xa06e13['fromPosition'](_0x5b3b60['end'],'toNext');_0x331f55['forceDefaultExecution'](()=>_0x2fbcdf(_0x208d20)),_0x465922=_0x524211['getClosestSelectedImageElement'](_0x29f3fc['model']['document']['selection']),_0x5b3b60=_0x5bf30b['createRangeOn'](_0x465922);const _0x55686a=_0x5bf30b['createRange'](_0x118c13,_0x35b01b);_0x118c13['detach'](),_0x35b01b['detach'](),_0x331f55['markBlockFormat'](_0x465922,{'commandName':'imageTypeInline','commandParams':[_0x208d20]},[],'convertInlineImageToBlock'),_0x55686a['start']['isBefore'](_0x5b3b60['start'])&&_0x331f55['markInsertion'](_0x5bf30b['createRange'](_0x55686a['start'],_0x5b3b60['start']),'convertInlineImageToBlock'),_0x5b3b60['end']['isBefore'](_0x55686a['end'])&&_0x331f55['markInsertion'](_0x5bf30b['createRange'](_0x5b3b60['end'],_0x55686a['end']),'convertInlineImageToBlock');});}),_0x331f55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x331f55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x331f55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x331f55['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x331f55['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x331f55['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xca370c])=>{const _0x1fd3ea=_0x331f55['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x56c46c=_0xca370c['start'],_0x3fa6f3=_0xca370c['end'];const _0x3b2867=_0x29f3fc['model']['schema']['getNearestSelectionRange'](_0x56c46c,'backward'),_0x43871e=_0x29f3fc['model']['schema']['getNearestSelectionRange'](_0x3fa6f3,'forward');_0x3b2867['isCollapsed']&&(_0x56c46c=_0x3b2867['start']),_0x43871e['isCollapsed']&&(_0x3fa6f3=_0x43871e['end']),_0x1fd3ea([_0x29f3fc['model']['createRange'](_0x56c46c,_0x3fa6f3)]);}),_0x331f55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3df728),_0x331f55['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3df728)),_0x29f3fc['plugins']['has']('ImageCaptionEditing')&&(_0x331f55['enableCommand']('toggleImageCaption',(_0x2bdfd1,_0x3aa356)=>{const _0x4cbb3d=_0x29f3fc['plugins']['get']('ImageCaptionUtils');let _0x5b356e=_0x524211['getClosestSelectedImageElement'](_0x29f3fc['model']['document']['selection']),_0x21dcaa=_0x4cbb3d['getCaptionFromImageModelElement'](_0x5b356e);_0x29f3fc['model']['change'](()=>{if(_0x21dcaa)return void _0x331f55['markDeletion'](_0x29f3fc['model']['createRangeOn'](_0x21dcaa));const _0x1b158e=_0x524211['isBlockImage'](_0x5b356e);_0x2bdfd1(_0x3aa356),_0x5b356e=_0x524211['getClosestSelectedImageElement'](_0x29f3fc['model']['document']['selection']),_0x21dcaa=_0x4cbb3d['getCaptionFromImageModelElement'](_0x5b356e),_0x331f55['markInsertion'](_0x29f3fc['model']['createRangeOn'](_0x21dcaa),_0x1b158e?null:'imageCaption');});}),_0x331f55['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3df728));const _0x3103ef=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x577103(_0xaceecf,_0x2dcdb0){const _0x40684f=_0x3103ef['findIndex'](({type:_0x49f752,subType:_0x287a6b})=>_0xaceecf['type']==_0x49f752&&_0xaceecf['subType']==_0x287a6b),_0x1a9fad=_0x3103ef['findIndex'](({type:_0x2472e9,subType:_0x59b7c9})=>_0x2dcdb0['type']==_0x2472e9&&_0x2dcdb0['subType']==_0x59b7c9);if(_0x40684f<0x0||_0x1a9fad<0x0)return!0x1;const _0x4a7d56=_0xaceecf['getFirstRange'](),_0x3b51b3=_0x2dcdb0['getFirstRange']();if((0x0==_0x40684f||0x1==_0x40684f)&&0x2==_0x1a9fad&&_0x4a7d56['isIntersecting'](_0x3b51b3))return!0x0;if(0x2==_0x40684f&&0x3==_0x1a9fad){const _0x32cefa=_0x331f55['_findSuggestions'](_0x4a7d56,'insertion')['filter'](({suggestion:_0x4d09aa,meta:_0x20c01b})=>_0x20c01b['isOwn']&&'convertInlineImageToBlock'==_0x4d09aa['subType']);if(_0x32cefa['length']>0x1&&_0x3b51b3['end']['isEqual'](_0x4a7d56['start']))return!0x0;if(0x1==_0x32cefa['length']&&(_0x4a7d56['start']['isEqual'](_0x3b51b3['end'])||_0x4a7d56['end']['isEqual'](_0x3b51b3['start'])))return!0x0;}if(0x3==_0x40684f&&0x3==_0x1a9fad&&_0x4a7d56['start']['isBefore'](_0x3b51b3['start'])){const _0x35c52f=_0x4a7d56['end']['nodeAfter'],_0x28eaec=_0x3b51b3['start']['nodeBefore'];return _0x524211['isBlockImage'](_0x35c52f)&&_0x35c52f===_0x28eaec;}return!0x1;}function _0x3df728(_0x25438b,_0x124110){return _0x577103(_0x25438b,_0x124110)?[_0x25438b,_0x124110]:_0x577103(_0x124110,_0x25438b)?[_0x124110,_0x25438b]:null;}_0x29f3fc['plugins']['has']('ImageResize')&&(_0x331f55['enableDefaultAttributesIntegration']('resizeImage'),_0x331f55['registerBlockAttribute']('resizedWidth'),_0x331f55['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x53c3ab,'FORMAT_IMAGE_SIZE'))),_0x29f3fc['plugins']['has']('ImageTextAlternativeEditing')&&(_0x331f55['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x331f55['registerBlockAttribute']('alt')),_0x29f3fc['plugins']['has']('PictureEditing')&&(_0x331f55['registerBlockAttribute']('sources'),_0x331f55['descriptionFactory']['registerDescriptionCallback'](_0x465473=>{if('attribute'!=_0x465473['type'])return;const {data:_0x25785d}=_0x465473;return _0x25785d&&'sources'==_0x25785d['key']?{'type':'format','content':''}:void 0x0;})),_0x29f3fc['plugins']['has']('ImageSizeAttributes')&&(_0x331f55['registerBlockAttribute']('width'),_0x331f55['registerBlockAttribute']('height'),_0x331f55['descriptionFactory']['registerDescriptionCallback'](_0x39da4d=>{if('attribute'!=_0x39da4d['type'])return;const {data:_0x453a0}=_0x39da4d;return!_0x453a0||'width'!=_0x453a0['key']&&'height'!=_0x453a0['key']?void 0x0:{'type':'format','content':''};})),_0x331f55['descriptionFactory']['registerDescriptionCallback'](_0x4fa320=>{if(!!_0x3103ef['find'](({type:_0x197a53,subType:_0x1b3438})=>_0x4fa320['type']==_0x197a53&&_0x4fa320['subType']==_0x1b3438))return _0x4fa320['previous']?{}:void 0x0;}),_0x331f55['descriptionFactory']['registerDescriptionCallback'](_0x214e2a=>{if('insertion'==_0x214e2a['type']||'deletion'==_0x214e2a['type']){const _0x5f1949=_0x214e2a['getContainedElement']();if(_0x5f1949&&_0x5f1949['is']('element','caption'))return{'type':'insertion'==_0x214e2a['type']?'addObject':'removeObject','element':_0x5f1949,'quantity':0x1};}}),_0x331f55['descriptionFactory']['registerDescriptionCallback'](_0x2e63ea=>'formatBlock'==_0x2e63ea['type']&&'convertInlineImageToBlock'==_0x2e63ea['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2e63ea['type']&&'convertBlockImageToInline'==_0x2e63ea['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x331f55['descriptionFactory']['registerDescriptionCallback'](_0x2a0e73=>{if('attribute'!=_0x2a0e73['type'])return;const {data:_0x5110dd}=_0x2a0e73;if(!_0x5110dd||'alt'!=_0x5110dd['key'])return;const _0x2d95c4=_0x5110dd['newValue'];return _0x2d95c4?{'type':'format','content':o(_0x53c3ab,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d95c4+'\x22')}:{'type':'format','content':o(_0x53c3ab,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd7cc3b=this['editor'],_0xca0e46=_0xd7cc3b['locale'];_0xd7cc3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x184e2a=>{if('formatBlock'!=_0x184e2a['type']&&'formatInline'!=_0x184e2a['type'])return;const {data:_0x2151f8}=_0x184e2a;if(_0x2151f8){if('imageTextAlternative'==_0x2151f8['commandName']){const _0x3aa4ed=_0x2151f8['commandParams'][0x0]['newValue'];return _0x3aa4ed?{'type':'format','content':o(_0xca0e46,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3aa4ed+'\x22')}:{'type':'format','content':o(_0xca0e46,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2151f8['commandName']){const _0x1ff637=_0x2151f8['commandParams'][0x0]['width'];return _0x1ff637?{'type':'format','content':o(_0xca0e46,'*Set\x20image\x20width:*\x20%0',_0x1ff637)}:{'type':'format','content':o(_0xca0e46,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x27318c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x101f99=this['editor']['locale'],_0x44041a=this['editor']['plugins']['get']('TrackChangesEditing');_0x44041a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x44041a['registerBlockAttribute']('src'),_0x44041a['descriptionFactory']['registerDescriptionCallback'](_0x57eca1=>{if('attribute'!=_0x57eca1['type'])return;const {data:_0x3c0c81}=_0x57eca1;return _0x3c0c81&&'src'==_0x3c0c81['key']?_0x3c0c81['newValue']&&_0x3c0c81['oldValue']?{'type':'format','content':o(_0x101f99,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x819479=this['editor']['plugins']['get']('TrackChangesEditing');_0x819479['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x819479['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x819479['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x819479['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f141f=this['editor'],_0x32bc31=_0x3f141f['locale'];_0x3f141f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c92d5=>{if('formatBlock'!=_0x5c92d5['type']&&'formatInline'!=_0x5c92d5['type'])return;const {data:_0x1c3db7}=_0x5c92d5;if(!_0x1c3db7||'replaceImageSource'!=_0x1c3db7['commandName'])return;return{'type':'format','content':o(_0x32bc31,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x27318c{['afterInit'](){const _0x2df2ef=this['editor'];if(!_0x2df2ef['plugins']['has']('ImageStyleEditing'))return;const _0x3752df=_0x2df2ef['plugins']['get']('TrackChangesEditing'),_0x15f705=_0x2df2ef['plugins']['get']('ImageUtils'),_0x5320fa={};_0x3752df['enableCommand']('imageStyle',(_0x7a247,_0xea1382)=>{const _0x3e9ba6=_0x2df2ef['plugins']['get']('Users')['me'],_0x3be22f=_0x2df2ef['commands']['get']('imageStyle');let _0x1c5d72=_0x15f705['getClosestSelectedImageElement'](_0x2df2ef['model']['document']['selection']),_0x13d79e=_0x2df2ef['model']['createRangeOn'](_0x1c5d72),_0x284794=_0x3be22f['value'];if(_0x284794==_0xea1382['value'])return;const _0x469ad4={'commandName':'imageStyle','commandParams':[_0xea1382],'formatGroupId':_0x3330a4()};_0x2df2ef['model']['change'](()=>{if(_0x3752df['getSuggestions']()['filter'](_0x2ba68b=>_0x2ba68b['isInContent']&&_0x3e9ba6==_0x2ba68b['author']&&('formatBlock'==_0x2ba68b['type']||'formatInline'==_0x2ba68b['type'])&&('imageStylePreApply'==_0x2ba68b['subType']||'imageStylePostApply'==_0x2ba68b['subType'])&&_0x2ba68b['getFirstRange']()['isEqual'](_0x13d79e))['forEach'](_0x18b38a=>_0x3752df['discardSuggestion'](_0x18b38a['head'])),_0x1c5d72=_0x15f705['getClosestSelectedImageElement'](_0x2df2ef['model']['document']['selection']),_0x13d79e=_0x2df2ef['model']['createRangeOn'](_0x1c5d72),_0x3be22f['refresh'](),_0x2df2ef['commands']['get']('imageTypeInline')['refresh'](),_0x2df2ef['commands']['get']('imageTypeBlock')['refresh'](),_0x284794=_0x3be22f['value'],_0x284794!=_0xea1382['value'])return _0x15f705['isInlineImage'](_0x1c5d72)&&_0x3be22f['shouldConvertImageType'](_0xea1382['value'],_0x1c5d72)?(_0x7a247({..._0xea1382,'setImageSizes':!0x1}),_0x1c5d72=_0x15f705['getClosestSelectedImageElement'](_0x2df2ef['model']['document']['selection']),void _0x3752df['markBlockFormat'](_0x1c5d72,{..._0x469ad4,'commandReversedParams':[{'value':_0x284794||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x15f705['isBlockImage'](_0x1c5d72)?_0x3752df['markBlockFormat'](_0x1c5d72,_0x469ad4,[],'imageStylePostApply'):_0x3752df['markInlineFormat'](_0x13d79e,_0x469ad4,'imageStylePostApply'));});});for(const _0x4eb0f8 of _0x2df2ef['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5320fa[_0x4eb0f8['name']]=_0x4eb0f8['title']['toLowerCase']();_0x3752df['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3752df['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3752df['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3752df['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x209990])=>{_0x15f705['setImageNaturalSizeAttributes'](_0x209990['getContainedElement']());}),_0x3752df['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x529561,_0x9261cb)=>{_0x3752df['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x529561,{'commandName':_0x9261cb['commandName'],'commandParams':_0x9261cb['commandReversedParams']});}),_0x3752df['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x927a5f,_0x39dee9){if(_0x1d414f(_0x927a5f,_0x39dee9))return[_0x927a5f,_0x39dee9];if(_0x1d414f(_0x39dee9,_0x927a5f))return[_0x39dee9,_0x927a5f];return null;});const _0x3cbb0b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1d414f(_0x2f3ee0,_0x17883b){const _0x46702f=_0x3cbb0b['findIndex'](({type:_0x12faf2,subType:_0x5f8d5d})=>_0x2f3ee0['type']==_0x12faf2&&_0x2f3ee0['subType']==_0x5f8d5d),_0x124fb2=_0x3cbb0b['findIndex'](({type:_0x485a9d,subType:_0x5c5be1})=>_0x17883b['type']==_0x485a9d&&_0x17883b['subType']==_0x5c5be1);if(_0x46702f<0x0||_0x124fb2<0x0)return!0x1;const _0x2241a0=_0x2f3ee0['getFirstRange'](),_0x1d2d19=_0x17883b['getFirstRange']();if((0x0==_0x46702f||0x1==_0x46702f)&&0x2==_0x124fb2&&_0x2241a0['isIntersecting'](_0x1d2d19))return!0x0;if(0x2==_0x46702f&&0x3==_0x124fb2){const _0x29f2a7=_0x3752df['_findSuggestions'](_0x2241a0,'insertion')['filter'](({suggestion:_0x28aaf5,meta:_0x115bf6})=>_0x115bf6['isOwn']&&'convertInlineImageToBlock'==_0x28aaf5['subType']);if(_0x29f2a7['length']>0x1&&_0x1d2d19['end']['isEqual'](_0x2241a0['start']))return!0x0;if(0x1==_0x29f2a7['length']&&(_0x2241a0['start']['isEqual'](_0x1d2d19['end'])||_0x2241a0['end']['isEqual'](_0x1d2d19['start'])))return!0x0;}if(0x3==_0x46702f&&0x3==_0x124fb2&&_0x2241a0['start']['isBefore'](_0x1d2d19['start'])){const _0xfb706a=_0x2241a0['end']['nodeAfter'],_0x4fd2f3=_0x1d2d19['start']['nodeBefore'];return _0x15f705['isBlockImage'](_0xfb706a)&&_0xfb706a===_0x4fd2f3;}return!0x1;}_0x2df2ef['model']['document']['registerPostFixer'](()=>{let _0x19584b=!0x1;const _0x16cac2=Array['from'](_0x2df2ef['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20a65d,data:_0x21c8a2}of _0x16cac2){const {group:_0x368ad9,type:_0x3be9f2,subType:_0xf6cc20,id:_0x1f1dfd}=_0x3752df['_splitMarkerName'](_0x20a65d);if('suggestion'==_0x368ad9&&_0x3752df['hasSuggestion'](_0x1f1dfd)){if('formatBlock'==_0x3be9f2&&('imageStylePreApply'==_0xf6cc20||'imageStylePostApply'==_0xf6cc20)){const _0x334c39=_0x3752df['getSuggestion'](_0x1f1dfd);if(_0x21c8a2['newRange']){const _0x1897ec=_0x334c39['getFirstRange']()['getContainedElement']();if(_0x15f705['isBlockImage'](_0x1897ec))continue;_0x3752df['discardSuggestion'](_0x334c39),_0x19584b=!0x0;}}if('insertion'==_0x3be9f2&&'imageCaption'==_0xf6cc20&&!_0x21c8a2['newRange']){const _0x56f4fe=_0x3752df['getSuggestion'](_0x1f1dfd);_0x56f4fe['next']&&_0x56f4fe['next']['isInContent']&&(_0x3752df['discardSuggestion'](_0x56f4fe['next']),_0x19584b=!0x0);}}}return _0x19584b;}),this['_registerLegacyDescription'](_0x5320fa);}['_registerLegacyDescription'](_0x39b49e){const _0xe86173=this['editor'],_0x1e872d=_0xe86173['locale'];_0xe86173['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f6d3e=>{if('formatBlock'!=_0x2f6d3e['type']&&'formatInline'!=_0x2f6d3e['type'])return;const {data:_0x4e96ce}=_0x2f6d3e;if(!_0x4e96ce||'imageStyle'!=_0x4e96ce['commandName'])return;const _0x481916=_0x4e96ce['commandParams'][0x0]['value'];return _0x5963ab('side'===_0x481916?o(_0x1e872d,'FORMAT_SIDE_IMAGE'):_0x39b49e[_0x481916]||_0x481916);function _0x5963ab(_0x1745c8){return{'type':'format','content':o(_0x1e872d,'*Format:*\x20%0',_0x1745c8)};}});}}class ct extends _0x27318c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x35fae0){super(_0x35fae0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4d0ca6=this['editor'],_0x3311df=_0x4d0ca6['commands']['get']('importWord'),_0x2ef598=_0x4d0ca6['commands']['get']('trackChanges');_0x3311df&&(_0x3311df['on']('execute',(_0x206b19,[,_0x14629f])=>{this['_trackChangesValueDuringImport']=_0x2ef598['value'],_0x14629f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3311df,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3311df,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2ef598['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4d0ca6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xecb67a,_0x28302d){const {suggestions:_0x33c343}=_0x28302d,_0x4e6013=this['editor']['commands']['get']('trackChanges'),_0x55363f=_0x4e6013['value'];this['_trackChangesValueDuringImport']!==_0x55363f&&(_0x4e6013['execute'](),this['_trackChangesExecuted']=!0x0),_0x33c343&&_0x33c343['forEach'](({id:_0x225180,type:_0x20a5b8,author:_0x8462be,created_at:_0xa0964e})=>{const _0x77de66={'id':_0x225180,'type':_0x20a5b8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x8462be,'createdAt':_0xa0964e?new Date(_0xa0964e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x77de66);});}}class ut extends _0x27318c{['afterInit'](){const _0x18e27c=this['editor'],_0x41680d=_0x18e27c['plugins']['get']('TrackChangesEditing');if(_0x18e27c['plugins']['has']('IndentEditing')&&(_0x41680d['enableCommand']('indent'),_0x41680d['enableCommand']('outdent')),_0x18e27c['plugins']['has']('IndentBlock')){for(const _0x34ac33 of['indentBlock','outdentBlock'])_0x41680d['enableDefaultAttributesIntegration'](_0x34ac33);}const _0x5d6449=_0x18e27c['locale'];_0x41680d['registerBlockAttribute']('blockIndent'),_0x41680d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5d6449,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b7870=this['editor'],_0x20b380=_0x5b7870['locale'],_0x566533=_0x5b7870['plugins']['get']('TrackChangesEditing');_0x566533['descriptionFactory']['registerDescriptionCallback'](_0x3a25f7=>{if('formatBlock'!=_0x3a25f7['type'])return;const {data:_0xd4be24}=_0x3a25f7;if(!_0xd4be24)return;if('indentBlock'!=_0xd4be24['commandName']&&'outdentBlock'!=_0xd4be24['commandName'])return;const _0x3dcdd8=_0x3a25f7['getItems']()[0x0],_0x356e50=_0x566533['descriptionFactory']['getItemLabel'](_0x3dcdd8);return'indentBlock'==_0xd4be24['commandName']?{'type':'format','content':o(_0x20b380,'*Indent:*\x20%0',_0x356e50)}:'outdentBlock'==_0xd4be24['commandName']?{'type':'format','content':o(_0x20b380,'*Outdent:*\x20%0',_0x356e50)}:void 0x0;});}}class ft extends _0x27318c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x27318c{['afterInit'](){const _0xc0c8f7=this['editor'];if(!_0xc0c8f7['plugins']['has']('LinkEditing'))return;const _0x12bf64=_0xc0c8f7['plugins']['get']('TrackChangesEditing'),_0x219b9d=_0xc0c8f7['commands']['get']('link');_0x12bf64['enableDefaultAttributesIntegration']('link'),_0x12bf64['enableDefaultAttributesIntegration']('unlink'),_0x12bf64['registerInlineAttribute']('linkHref');for(const _0x197552 of _0x219b9d['manualDecorators'])_0x12bf64['registerInlineAttribute'](_0x197552['id']),_0x12bf64['descriptionFactory']['registerAttributeLabel'](_0x197552['id'],'link\x20('+_0x197552['label']['toLowerCase']()+')');_0x12bf64['descriptionFactory']['registerDescriptionCallback'](_0x38826e=>{if('attribute'!=_0x38826e['type'])return;const {data:_0x31598f}=_0x38826e;if(!_0x31598f||'linkHref'!=_0x31598f['key'])return;const _0x1885b2=_0x31598f['newValue'],_0x3635d0=_0xc0c8f7['locale'];return{'type':'format','content':null==_0x1885b2?o(_0x3635d0,'*Remove\x20link*'):o(_0x3635d0,'*Set\x20link:*\x20%0','\x22'+_0x1885b2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4847e4=this['editor'],_0x6e41b1=_0x4847e4['locale'];_0x4847e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52421d=>{if('formatInline'!=_0x52421d['type'])return;const {data:_0x340880}=_0x52421d;if(_0x340880){if('link'==_0x340880['commandName']){const _0x431a76=_0x340880['commandParams'][0x0];return{'type':'format','content':o(_0x6e41b1,'*Set\x20link:*\x20%0','\x22'+_0x431a76+'\x22')};}return'unlink'==_0x340880['commandName']?{'type':'format','content':o(_0x6e41b1,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x27318c{['afterInit'](){const _0x40a368=this['editor'],_0x53d755=_0x40a368['locale'];if(!_0x40a368['plugins']['has']('LegacyListEditing'))return;const _0x518561=_0x40a368['plugins']['get']('TrackChangesEditing'),_0x192699=_0x40a368['plugins']['has']('LegacyTodoListEditing');function _0x5cb948(_0x271497){return()=>{const _0x1fdffa=_0x40a368['model']['document']['selection'],_0x3dec04=_0x40a368['commands']['get'](_0x271497);if(_0x3dec04['value'])return void _0x40a368['execute']('paragraph',{});const _0x330151=_0x271497['slice'](0x0,-0x4),_0x1f8542=function(_0x5f11c8,_0x41f4a4,_0x3086fa){let _0x1f1724=Array['from'](_0x5f11c8)['filter'](_0x2b706e=>function(_0x292e2c,_0x1ce6ec){return _0x1ce6ec['checkChild'](_0x292e2c['parent'],'listItem')&&!_0x1ce6ec['isObject'](_0x292e2c);}(_0x2b706e,_0x3086fa));_0x1f1724=_0x1f1724['filter'](_0xc61235=>!_0xc61235['is']('element','listItem')||_0xc61235['getAttribute']('listType')!=_0x41f4a4);const _0x1c2080=new Set();for(const _0x10c930 of _0x1f1724)_0x10c930['is']('element','listItem')?_0x1c2080['add'](Le(_0x10c930)):_0x1c2080['add'](_0x10c930);return Array['from'](_0x1c2080);}(_0x1fdffa['getSelectedBlocks'](),_0x330151,_0x40a368['model']['schema']);_0x40a368['model']['change'](()=>{for(const _0x14d147 of _0x1f8542)_0x518561['markBlockFormat'](_0x14d147,{'commandName':_0x271497,'commandParams':[{'forceValue':!_0x3dec04['value']}],'formatGroupId':'blockName'},Ee(_0x14d147));});};}function _0x1f99fe(_0x21400f){return()=>{const _0x3d67da=function(_0x12be46){let _0x317b5e=Array['from'](_0x12be46);const _0x12b3fd=_0x317b5e['findIndex'](_0x4cc360=>'listItem'!=_0x4cc360['name']);return _0x12b3fd>-0x1&&(_0x317b5e=_0x317b5e['slice'](0x0,_0x12b3fd)),_0x317b5e;}(_0x40a368['model']['document']['selection']['getSelectedBlocks']()),_0x5851fc=_0x40a368['model']['createRange'](_0x40a368['model']['createPositionAt'](_0x3d67da[0x0],'before'),_0x40a368['model']['createPositionAt'](_0x3d67da[_0x3d67da['length']-0x1],'end'));_0x40a368['model']['change'](()=>{_0x518561['markBlockFormat'](_0x5851fc,{'commandName':_0x21400f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4987c0){const _0x188983=new Set();for(const _0x591503 of _0x4987c0){let _0x469ce1=_0x591503['nextSibling'];for(;_0x469ce1&&_0x469ce1['getAttribute']('listIndent')>_0x591503['getAttribute']('listIndent');)_0x188983['add'](_0x469ce1),_0x469ce1=_0x469ce1['nextSibling'];}return Array['from'](_0x188983);}(_0x3d67da));});};}_0x518561['enableCommand']('numberedList',_0x5cb948('numberedList')),_0x518561['enableCommand']('bulletedList',_0x5cb948('bulletedList')),_0x192699&&_0x518561['enableCommand']('todoList',_0x5cb948('todoList')),_0x518561['enableCommand']('indentList',_0x1f99fe('indentList')),_0x518561['enableCommand']('outdentList',_0x1f99fe('outdentList')),_0x192699&&_0x518561['enableCommand']('checkTodoList',()=>{const _0x57ab0f=_0x40a368['commands']['get']('checkTodoList'),_0x213960=Array['from'](_0x57ab0f['_selectedElements']);_0x213960['filter'](_0x24fba3=>_0x24fba3['getAttribute']('todoListChecked')!=_0x57ab0f['value']),_0x40a368['model']['change'](()=>{for(const _0x52d43d of _0x213960)_0x518561['markBlockFormat'](_0x52d43d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x57ab0f['value']}]});});}),_0x518561['descriptionFactory']['registerElementLabel']('listItem',_0x361b8e=>o(_0x53d755,'ELEMENT_LIST_ITEM',_0x361b8e)),_0x518561['descriptionFactory']['registerDescriptionCallback'](_0x788b1=>{if('formatBlock'!=_0x788b1['type']&&'formatInline'!=_0x788b1['type'])return;const {data:_0x2c21fa}=_0x788b1;if(_0x2c21fa){if('numberedList'==_0x2c21fa['commandName']||'bulletedList'==_0x2c21fa['commandName']||'todoList'==_0x2c21fa['commandName'])switch(_0x2c21fa['commandName']['replace']('List','')){case'bulleted':return _0x15e3d7(o(_0x53d755,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15e3d7(o(_0x53d755,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15e3d7(o(_0x53d755,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2c21fa['commandName'])return{'type':'format','content':o(_0x53d755,'*Indent:*\x20%0',o(_0x53d755,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2c21fa['commandName'])return{'type':'format','content':o(_0x53d755,'*Outdent:*\x20%0',o(_0x53d755,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2c21fa['commandName'])return _0x2c21fa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53d755,'*Check\x20item*')}:{'type':'format','content':o(_0x53d755,'*Uncheck\x20item*')};}function _0x15e3d7(_0x3a99d9){return{'type':'format','content':o(_0x53d755,'*Change\x20to:*\x20%0',_0x3a99d9)};}});}}function Le(_0x5382c6){const _0x76e0d3=_0x5382c6['getAttribute']('listIndent');if(0x0==_0x76e0d3)return _0x5382c6;let _0x14a195=_0x5382c6;for(;_0x5382c6['previousSibling']&&_0x5382c6['previousSibling']['is']('element','listItem');){const _0x1887f3=_0x5382c6['previousSibling']['getAttribute']('listIndent');if(_0x1887f3==_0x76e0d3)_0x14a195=_0x5382c6['previousSibling'];else{if(_0x1887f3<_0x76e0d3)break;}_0x5382c6=_0x5382c6['previousSibling'];}return _0x14a195;}function Ee(_0x20142b){const _0x43a07a=[];if(_0x20142b['is']('element','listItem')&&_0x20142b['getAttribute']('listIndent')>0x0){let _0x2e1bed=_0x20142b['nextSibling'];for(;_0x2e1bed&&'listItem'==_0x2e1bed['name']&&_0x2e1bed['getAttribute']('listIndent')==_0x20142b['getAttribute']('listIndent');)_0x43a07a['push'](_0x2e1bed),_0x2e1bed=_0x2e1bed['nextSibling'];}return _0x43a07a;}class Q extends _0x27318c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1f0a4c=this['editor']['config']['get']('list.properties'),_0x4063bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f0a4c['styles']&&_0x4063bd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1f0a4c['reversed']&&_0x4063bd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1f0a4c['startIndex']&&_0x4063bd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4063bd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x47927d,_0x2842d8={}){const _0x429e61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x67edf=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x429e61['markMultiRangeBlockFormat'](_0x67edf,{'commandName':'listStyle','commandParams':[{'type':_0x2842d8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3e6a87,_0x38f25e={}){const _0x224531=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a8472=this['_getSuggestionBlocks'](_0x7bda02=>_0x7bda02['is']('element','listItem')&&'numbered'===_0x7bda02['getAttribute']('listType'));if(_0x5a8472['length']<0x1)return;const _0x15de4b=_0x5a8472['map'](_0x35dd1b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x35dd1b,'before'),this['editor']['model']['createPositionAt'](_0x35dd1b,0x0)));this['editor']['model']['change'](()=>{_0x224531['markMultiRangeBlockFormat'](_0x15de4b,{'commandName':'listReversed','commandParams':[{'reversed':_0x38f25e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1d5e56,_0x3b8fdd={}){const _0x2afc32=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a9463=this['_getSuggestionBlocks'](_0x132e23=>_0x132e23['is']('element','listItem')&&'numbered'===_0x132e23['getAttribute']('listType'));if(_0x4a9463['length']<0x1)return;const _0x345ce4=_0x4a9463['map'](_0x300572=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x300572,'before'),this['editor']['model']['createPositionAt'](_0x300572,0x0)));this['editor']['model']['change'](()=>{_0x2afc32['markMultiRangeBlockFormat'](_0x345ce4,{'commandName':'listStart','commandParams':[{'startIndex':_0x3b8fdd['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x42cc9c){if('formatBlock'!=_0x42cc9c['type']&&'formatInline'!=_0x42cc9c['type'])return;const _0x468d70=this['editor']['locale'],{data:_0x24393b}=_0x42cc9c;if(!_0x24393b)return;let _0x382863,_0x5b6cc7;switch(_0x24393b['commandName']){case'listStyle':_0x382863='*Change\x20to:*\x20%0',_0x5b6cc7={'type':'format','content':o(_0x468d70,_0x382863,o(_0x468d70,this['_getTranslationKeyForListStyle'](_0x24393b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x382863=_0x24393b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5b6cc7={'type':'format','content':o(_0x468d70,_0x382863)};break;case'listStart':_0x382863='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5b6cc7={'type':'format','content':o(_0x468d70,_0x382863,_0x24393b['commandParams'][0x0]['startIndex'])};}return _0x5b6cc7;}['_getSuggestionBlocksForListStyle'](){const _0x30d59d=this['editor']['plugins']['get']('LegacyListUtils');let _0x123886=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x123886[0x0]?.['is']('element','listItem')&&_0x123886['unshift'](..._0x30d59d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x123886[_0x123886['length']-0x1]?.['is']('element','listItem')&&_0x123886['push'](..._0x30d59d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x123886=[...new Set(_0x123886)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x123886=_0x123886['filter'](_0x534c62=>_0x534c62['is']('element','listItem'))),_0x123886;}['_getSuggestionBlocks'](_0xc474e2){const _0xba5d62=this['editor']['plugins']['get']('LegacyListUtils');let _0x43f5ab=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xc474e2)['map'](_0x58f62d=>{const _0x22adca=this['editor']['model']['createPositionAt'](_0x58f62d,0x0);return[..._0xba5d62['getSiblingNodes'](_0x22adca,'backward'),..._0xba5d62['getSiblingNodes'](_0x22adca,'forward')];})['flat']();return _0x43f5ab=[...new Set(_0x43f5ab)],_0x43f5ab;}['_getTranslationKeyForListStyle'](_0x47dab8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x47dab8)||'default')['toUpperCase']()+'_LIST_'+_0x47dab8['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x27318c{['afterInit'](){const _0x58417f=this['editor'];if(!_0x58417f['plugins']['has']('MediaEmbedEditing'))return;const _0x1042d8=_0x58417f['plugins']['get']('TrackChangesEditing'),_0x500793=_0x58417f['locale'];_0x1042d8['enableCommand']('mediaEmbed'),_0x1042d8['descriptionFactory']['registerElementLabel']('media',_0x5f1b74=>o(_0x500793,'ELEMENT_MEDIA',_0x5f1b74)),_0x58417f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x479328,{writer:_0x44d309,options:_0x2923e5})=>{if(_0x2923e5['showSuggestionHighlights'])return _0x44d309['createEmptyElement']('div');},'converterPriority':'high'}),_0x58417f['data']['downcastDispatcher']['on']('attribute:url:media',(_0xe3b7e3,_0x4257e4,_0x10dfb8)=>{_0x10dfb8['options']['showSuggestionHighlights']&&_0xe3b7e3['stop']();},{'priority':'high'});}}class mt extends _0x27318c{['afterInit'](){const _0x2f37ea=this['editor'];_0x2f37ea['plugins']['has']('MentionEditing')&&_0x2f37ea['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x27318c{['afterInit'](){const _0x165208=this['editor'];if(!_0x165208['plugins']['has']('MergeFieldsEditing'))return;const _0x6e7353=_0x165208['plugins']['get']('TrackChangesEditing'),_0x446d48=_0x165208['locale'];_0x6e7353['enableCommand']('insertMergeField'),_0x6e7353['enableCommand']('insertMergeFieldBlock'),_0x6e7353['enableCommand']('insertMergeFieldImage'),_0x6e7353['descriptionFactory']['registerElementLabel']('mergeField',_0x193071=>o(_0x446d48,'ELEMENT_MERGE_FIELD',_0x193071)),_0x6e7353['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x455ab5=>o(_0x446d48,'ELEMENT_MERGE_FIELD',_0x455ab5)),_0x6e7353['descriptionFactory']['registerDescriptionCallback'](_0x19fd2c=>{if('insertion'!=_0x19fd2c['type']&&'deletion'!=_0x19fd2c['type'])return;const _0x360e11=_0x19fd2c['getContainedElement']();if(null==_0x360e11)return;const _0x420618=_0x165208['plugins']['get']('MergeFieldsEditing');let _0xd94561;switch(_0x420618['getMergeFieldType'](_0x360e11)){case null:return;case'image':{const _0x34b9d0=_0x420618['unwrapAffixes'](_0x360e11['getAttribute']('src'));_0xd94561=_0x420618['getLabel'](_0x34b9d0)||_0x34b9d0;break;}default:{const _0x10bea1=_0x360e11['getAttribute']('id');_0xd94561=_0x420618['getLabel'](_0x10bea1)||_0x10bea1;break;}}return'insertion'==_0x19fd2c['type']?{'type':'insertion','content':o(_0x446d48,'*Insert:*\x20%0','\x22'+_0xd94561+'\x22\x20'+o(_0x446d48,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x446d48,'*Remove:*\x20%0','\x22'+_0xd94561+'\x22\x20'+o(_0x446d48,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x27318c{['afterInit'](){const _0x516c76=this['editor'],_0x30ee40=_0x516c76['plugins']['get']('TrackChangesEditing');_0x516c76['plugins']['has']('MultiLevelList')&&(_0x30ee40['enableDefaultAttributesIntegration']('multiLevelList'),_0x30ee40['registerBlockAttribute']('listMarkerStyle'),_0x30ee40['descriptionFactory']['registerDescriptionCallback'](_0x3b037=>this['handleDescriptions'](_0x3b037)));}['handleDescriptions'](_0x2f0aad){const _0x27fe00=this['editor']['locale'],{data:_0x316eef}=_0x2f0aad,_0x593790={'type':'format','content':''};if(_0x316eef&&'listMarkerStyle'==_0x316eef['key']){if(!_0x316eef['oldValue'])return{'type':'format','content':o(_0x27fe00,'*Set\x20format:*\x20%0',o(_0x27fe00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x316eef['newValue']+')'};if(!_0x316eef['newValue']){let _0x57477d=_0x2f0aad['head'];for(;_0x57477d;){if(_0x57477d['data']&&'listType'==_0x57477d['data']['key']&&_0x57477d['data']['newValue'])return _0x593790;_0x57477d=_0x57477d['next'];}return{'type':'format','content':o(_0x27fe00,'*Remove\x20format:*\x20%0',o(_0x27fe00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x316eef['oldValue']+')'};}}}}class kt extends _0x27318c{['afterInit'](){const _0x4ab053=this['editor'];if(!_0x4ab053['plugins']['has']('PageBreakEditing'))return;_0x4ab053['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x113b20=_0x4ab053['plugins']['get']('TrackChangesEditing'),_0x2a446e=_0x4ab053['locale'];_0x113b20['descriptionFactory']['registerElementLabel']('pageBreak',_0x21e920=>o(_0x2a446e,'ELEMENT_PAGE_BREAK',_0x21e920));}}class bt extends _0x27318c{['afterInit'](){const _0x4b1002=this['editor'];if(!_0x4b1002['plugins']['has']('Paragraph'))return;const _0x301eda=_0x4b1002['locale'],_0x23f602=_0x4b1002['plugins']['get']('TrackChangesEditing');_0x23f602['descriptionFactory']['registerElementLabel']('paragraph',_0x4fe8ac=>o(_0x301eda,'ELEMENT_PARAGRAPH',_0x4fe8ac)),_0x23f602['enableDefaultAttributesIntegration']('paragraph'),_0x23f602['enableCommand']('insertParagraph'),_0x4b1002['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4b1002),{'priority':'highest'}),_0x4b1002['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x57c370,_0x28da84,_0x113279)=>{_0x113279['options']['showSuggestionHighlights']&&nr(_0x4b1002,{'showActiveMarker':!0x1})(_0x57c370,_0x28da84,_0x113279);},{'priority':'highest'});const _0x397848=_0x23f602['descriptionFactory'];_0x397848['registerDescriptionCallback'](_0x3475a0=>{if('insertion'!==_0x3475a0['type'])return;const {start:_0x137c15,end:_0x50b3ec}=_0x3475a0['getFirstRange']();if(!_0x137c15['isTouching'](_0x50b3ec)||!_0x137c15['nodeAfter'])return;const _0xb3bd2d=_0x4b1002['model']['schema'],_0x15ebc9=_0x137c15['nodeAfter'];return _0xb3bd2d['isBlock'](_0x15ebc9)&&!_0xb3bd2d['isLimit'](_0x15ebc9)&&_0xb3bd2d['checkChild'](_0x15ebc9,'$text')?{'type':'insertion','content':o(_0x301eda,'*Insert:*\x20%0',_0x397848['getItemLabel'](_0x15ebc9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22cbe3=this['editor'],_0x11ea4f=_0x22cbe3['locale'];_0x22cbe3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x162592=>{if('formatBlock'!=_0x162592['type'])return;const {data:_0x16db38}=_0x162592;return _0x16db38&&'paragraph'==_0x16db38['commandName']?{'type':'format','content':o(_0x11ea4f,'*Change\x20to:*\x20%0',o(_0x11ea4f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x24744d,{showActiveMarker:_0x1fe645=!0x0}={}){return(_0xb8ab7c,_0x2b308c,_0x45999b)=>{const _0x6cea9b=_0x24744d['plugins']['get']('TrackChangesEditing'),_0x2533fa=_0x2b308c['markerRange']['start'],_0x1fc8d0=_0x2b308c['markerRange']['end'],_0x4c6f9d=_0x24744d['model']['schema'];if(!_0x2533fa['isTouching'](_0x1fc8d0)||!_0x2533fa['nodeAfter'])return;const _0x1d2074=_0x2533fa['nodeAfter'];if(_0x4c6f9d['isBlock'](_0x1d2074)&&!_0x4c6f9d['isLimit'](_0x1d2074)&&_0x4c6f9d['checkChild'](_0x1d2074,'$text')){if(!_0x45999b['consumable']['consume'](_0x2b308c['markerRange'],_0xb8ab7c['name']))return;const {authorId:_0x143cbd}=_0x6cea9b['_splitMarkerName'](_0x2b308c['markerName']),_0x37bc3=_0x45999b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x143cbd}),_0x376cd6=_0x45999b['mapper']['toViewPosition'](_0x1fc8d0);_0x1fe645&&_0x6cea9b['activeMarkers']['includes'](_0x2b308c['markerName'])&&_0x45999b['writer']['addClass']('ck-suggestion-marker--active',_0x37bc3),_0x45999b['writer']['insert'](_0x376cd6,_0x37bc3),_0x45999b['mapper']['bindElementToMarker'](_0x37bc3,_0x2b308c['markerName']);}};}class yt extends _0x27318c{['afterInit'](){const _0xce1cc0=this['editor'];if(!_0xce1cc0['plugins']['has']('RemoveFormatEditing'))return;_0xce1cc0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ba2fd=this['editor'];_0x4ba2fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x315d58=>{if('formatBlock'!=_0x315d58['type']&&'formatInline'!=_0x315d58['type'])return;const {data:_0x2e0915}=_0x315d58;return _0x2e0915&&'removeFormat'==_0x2e0915['commandName']?{'type':'format','content':o(_0x4ba2fd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x27318c{['afterInit'](){const _0x3a9f13=this['editor'];if(!_0x3a9f13['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1ed086=_0x3a9f13['plugins']['get']('TrackChangesEditing');_0x1ed086['enableCommand']('goToPreviousRestrictedEditingException'),_0x1ed086['enableCommand']('goToNextRestrictedEditingException');const _0x9a3b11=_0x3a9f13['plugins']['get']('RestrictedEditingModeEditing');_0x9a3b11['enableCommand']('trackChanges'),_0x9a3b11['enableCommand']('acceptSuggestion'),_0x9a3b11['enableCommand']('discardSuggestion'),_0x9a3b11['enableCommand']('acceptAllSuggestions'),_0x9a3b11['enableCommand']('discardAllSuggestions'),_0x9a3b11['enableCommand']('acceptSelectedSuggestions'),_0x9a3b11['enableCommand']('discardSelectedSuggestions');}}class St extends _0x27318c{static get['requires'](){return[_0x511614];}['init'](){const _0x1ef82a=this['editor'],_0x314a30=_0x1ef82a['plugins']['get']('TrackChangesEditing');_0x314a30['enableCommand']('shiftEnter'),_0x1ef82a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1ef82a),{'priority':'high'}),_0x1ef82a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1ef82a),{'priority':'high'}),_0x1ef82a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3327e4,_0x1b4452,_0x5d985a)=>{_0x5d985a['options']['showSuggestionHighlights']&&je(_0x1ef82a,{'showActiveMarker':!0x1})(_0x3327e4,_0x1b4452,_0x5d985a);}),_0x314a30['descriptionFactory']['registerElementLabel']('softBreak',_0x2ee144=>o(_0x1ef82a['locale'],'ELEMENT_LINE_BREAK',_0x2ee144));}}function je(_0x48bc96,{showActiveMarker:_0x302ccd=!0x0}={}){return(_0x5ae8c5,_0x986638,_0x189c18)=>{const _0x248be0=_0x48bc96['plugins']['get']('TrackChangesEditing');if(!_0x189c18['consumable']['test'](_0x986638['markerRange'],_0x5ae8c5['name']))return;const _0x1a3a72=_0x48bc96['model'];for(const _0xbd7700 of _0x986638['markerRange']['getItems']()){if(!_0xbd7700['is']('element','softBreak'))continue;const _0x4c5d0a='deletion'==_0x986638['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0xb0e0d5}=_0x248be0['_splitMarkerName'](_0x986638['markerName']),_0x541a7f=_0x189c18['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c5d0a,'data-author-id':_0xb0e0d5}),_0x43dd0f=_0x189c18['mapper']['toViewPosition'](_0x1a3a72['createPositionBefore'](_0xbd7700));_0x302ccd&&_0x248be0['activeMarkers']['includes'](_0x986638['markerName'])&&_0x189c18['writer']['addClass']('ck-suggestion-marker--active',_0x541a7f),_0x189c18['writer']['insert'](_0x43dd0f,_0x541a7f),_0x189c18['mapper']['bindElementToMarker'](_0x541a7f,_0x986638['markerName']);}};}class At extends _0x27318c{['afterInit'](){const _0x52866a=this['editor'],_0x4f4503=_0x52866a['model'],_0x2cdf72=_0x52866a['locale'];if(!_0x52866a['plugins']['has']('StandardEditingModeEditing'))return;const _0x4aa7f5=_0x52866a['plugins']['get']('TrackChangesEditing'),_0x5dfd4c='restrictedEditingException',_0x6bb73e=_0x52866a['commands']['get'](_0x5dfd4c);_0x4aa7f5['enableCommand'](_0x5dfd4c,(_0x5d1efa,_0xd7d039={})=>{const _0x220dd0=_0x4f4503['document']['selection'];if(_0x220dd0['isCollapsed'])return void _0x5d1efa(_0xd7d039);const _0x5c46c7=void 0x0!==_0xd7d039['forceValue']?_0xd7d039['forceValue']:!_0x6bb73e['value'];_0x4f4503['change'](()=>{const _0x49e162=Array['from'](_0x220dd0['getRanges']());for(const _0x2878b9 of _0x49e162){const _0x335474=_0x5c46c7?[_0x2878b9]:io(_0x5dfd4c,_0x2878b9,_0x4f4503);for(const _0x38a22d of _0x335474)_0x4aa7f5['markInlineFormat'](_0x38a22d,{'commandName':_0x5dfd4c,'commandParams':[{'forceValue':_0x5c46c7}]});}});}),_0x4aa7f5['descriptionFactory']['registerDescriptionCallback'](_0x46fd96=>{if('formatBlock'!=_0x46fd96['type']&&'formatInline'!=_0x46fd96['type'])return;const {data:_0x5b5aab}=_0x46fd96;return _0x5b5aab&&_0x5b5aab['commandName']==_0x5dfd4c?_0x5b5aab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2cdf72,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2cdf72,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x27318c{['afterInit'](){const _0x29200b=this['editor'];if(!_0x29200b['plugins']['has']('Style')||!_0x29200b['plugins']['has']('DataSchema'))return;const _0x281834=_0x29200b['plugins']['get']('TrackChangesEditing'),_0x2e497d=_0x29200b['locale'],_0x12c5d7=_0x29200b['config']['get']('style')||{},_0x5df414=_0x29200b['plugins']['get']('GeneralHtmlSupport'),_0x9847cc=_0x29200b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x29200b['plugins']['get']('DataSchema'),_0x12c5d7['definitions']);_0x281834['enableDefaultAttributesIntegration']('style');const _0x341324=new Set();for(const _0x1c338a of _0x9847cc['block']){const _0x2caab7=_0x5df414['getGhsAttributeNameForElement'](_0x1c338a['element']);_0x341324['add'](_0x2caab7);}const _0x1a8eab=new Set();for(const _0x6e122f of _0x9847cc['inline']){const _0xe48165=_0x5df414['getGhsAttributeNameForElement'](_0x6e122f['element']);_0x1a8eab['add'](_0xe48165);for(const _0xd2542c of _0x6e122f['ghsAttributes'])_0x1a8eab['add'](_0xd2542c);}for(const _0x231d42 of _0x341324)_0x281834['registerBlockAttribute'](_0x231d42),_0x281834['descriptionFactory']['registerAttributeLabel'](_0x231d42,o(_0x2e497d,'FORMAT_STYLE'));for(const _0x470b3f of _0x1a8eab)_0x281834['registerInlineAttribute'](_0x470b3f),_0x281834['descriptionFactory']['registerAttributeLabel'](_0x470b3f,o(_0x2e497d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23df1a=this['editor'],_0x16d426=_0x23df1a['locale'];_0x23df1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x549912=>{if('formatBlock'!=_0x549912['type']&&'formatInline'!=_0x549912['type'])return;const {data:_0x28a44f}=_0x549912;return _0x28a44f&&'style'===_0x28a44f['commandName']?_0x28a44f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16d426,'*Set\x20format:*\x20%0',_0x28a44f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x16d426,'*Remove\x20format:*\x20%0',_0x28a44f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x27318c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xe64a28){super(_0xe64a28),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x101a27=this['editor'],_0x212177=_0x101a27['model']['document']['selection'];if(!_0x101a27['plugins']['has']('TableEditing'))return;const _0x5010c1=_0x101a27['locale'],_0x1585d2=_0x101a27['plugins']['get']('TrackChangesEditing'),_0x28a5a5=_0x101a27['plugins']['get']('TableUtils');_0x1585d2['descriptionFactory']['registerElementLabel']('table',_0x3f2e9d=>o(_0x5010c1,'ELEMENT_TABLE',_0x3f2e9d)),this['_setupColumnsRowsFixing'](),_0x1585d2['enableCommand']('insertTable'),_0x1585d2['enableCommand']('selectTableRow'),_0x1585d2['enableCommand']('selectTableColumn');for(const _0x436abc of['insertTableRowAbove','insertTableRowBelow']){const _0x1ef89b=_0x101a27['commands']['get'](_0x436abc);_0x1585d2['enableCommand'](_0x436abc,_0x355f3e=>{_0x101a27['model']['change'](_0x1847f=>{_0x355f3e();const _0x19cf16='above'===_0x1ef89b['order'],_0x2c8d32=_0x28a5a5['getSelectionAffectedTableCells'](_0x212177),_0x43e731=_0x28a5a5['getRowIndexes'](_0x2c8d32),_0x346db3=_0x19cf16?_0x43e731['first']-0x1:_0x43e731['last']+0x1,_0x5dd176=_0x2c8d32[0x0]['findAncestor']('table'),_0x483c9d=_0x28a5a5['createTableWalker'](_0x5dd176,{'startRow':_0x346db3,'endRow':_0x346db3}),_0x30057d=Array['from'](_0x483c9d)['map'](_0x28a3c9=>_0x1847f['createRangeOn'](_0x28a3c9['cell']));_0x1585d2['markMultiRangeInsertion'](_0x30057d,'tableRow');});});}for(const _0x447fcf of['insertTableColumnLeft','insertTableColumnRight']){const _0x388683=_0x101a27['commands']['get'](_0x447fcf);_0x1585d2['enableCommand'](_0x447fcf,_0x145edd=>{_0x101a27['model']['change'](_0x4c441d=>{_0x145edd();const _0x588148='left'===_0x388683['order'],_0x496059=_0x28a5a5['getSelectionAffectedTableCells'](_0x212177),_0x4619d3=_0x28a5a5['getColumnIndexes'](_0x496059),_0xab7bbf=_0x588148?_0x4619d3['first']-0x1:_0x4619d3['last']+0x1,_0x542639=_0x496059[0x0]['findAncestor']('table'),_0xc65410=_0x28a5a5['createTableWalker'](_0x542639,{'startRow':0x0,'column':_0xab7bbf,'includeAllSlots':!0x1}),_0x2cc36f=Array['from'](_0xc65410)['map'](_0x2defba=>_0x4c441d['createRangeOn'](_0x2defba['cell']));_0x1585d2['markMultiRangeInsertion'](_0x2cc36f,'tableColumn');});});}for(const _0x4a063e of['removeTableRow','removeTableColumn']){const _0xda00cd=_0x4a063e['substr'](0xb),_0x11fc73=_0xda00cd['toLowerCase'](),_0x89c78=_0x11fc73['substr'](0x0,0x3)+'span',_0x1f9b79='table'+_0xda00cd,_0x3d08d0='min'+_0xda00cd,_0x534391='max'+_0xda00cd;_0x1585d2['enableCommand'](_0x4a063e,()=>{_0x101a27['model']['change'](_0x1e744c=>{const _0x4f2329=_0x28a5a5['getSelectionAffectedTableCells'](_0x212177),_0x13bf48=_0x4f2329[0x0]['findAncestor']('table');let _0x44ac6d;if('removeTableRow'==_0x4a063e){const _0x1326da=_0x28a5a5['getRowIndexes'](_0x4f2329);_0x44ac6d={'startRow':_0x1326da['first'],'endRow':_0x1326da['last'],'includeAllSlots':!0x0};}else{const _0x3ffe22=_0x28a5a5['getColumnIndexes'](_0x4f2329);_0x44ac6d={'startColumn':_0x3ffe22['first'],'endColumn':_0x3ffe22['last'],'includeAllSlots':!0x0};}const _0x380134=_0x28a5a5['createTableWalker'](_0x13bf48,_0x44ac6d),_0x262bdf=Array['from'](_0x380134)['map'](({cell:_0x4c8b24})=>_0x4c8b24),_0x2e3a52=Ne(_0x262bdf['filter'](_0x4aa81d=>_0x4aa81d['hasAttribute'](_0x89c78))),_0x177e93=Ne(_0x262bdf['filter'](_0x2fc093=>!_0x2fc093['hasAttribute'](_0x89c78)))['map'](_0x5b6cf2=>_0x1e744c['createRangeOn'](_0x5b6cf2)),_0xc1425b=_0x1585d2['markMultiRangeDeletion'](_0x177e93,_0x1f9b79);if(_0xc1425b&&('tableRow'==_0xc1425b['subType']||'tableColumn'==_0xc1425b['subType'])){const _0x5906fe=this['_getSuggestionCoords'](_0xc1425b);for(const _0x2b067d of _0x2e3a52){const _0x187099=_0x1e744c['createRangeOn'](_0x2b067d),_0x4e2182=_0x28a5a5['getCellLocation'](_0x2b067d),_0x24b7cd=_0x2b067d['getAttribute'](_0x89c78)-0x1,_0x488d1a=_0x5906fe[_0x3d08d0],_0x5b57ef=_0x5906fe[_0x534391];_0x488d1a<=_0x4e2182[_0x11fc73]&&_0x4e2182[_0x11fc73]+_0x24b7cd<=_0x5b57ef&&_0xc1425b['addRange'](_0x187099);}}});});}function _0x4e339f(_0xec9b16){const _0x308846=Array['from'](_0x212177['getRanges']())['map'](_0xe9b539=>_0x48c676['fromRange'](_0xe9b539));_0x101a27['model']['change'](_0x56f57f=>{const _0x2f10c2=_0x56f57f['batch'];_0xec9b16=_0xec9b16['filter'](_0x414cc5=>'$graveyard'!=_0x414cc5['root']['rootName']),_0x56f57f['setSelection'](_0xec9b16),_0x101a27['commands']['get']('removeTableRow')['refresh'](),_0x101a27['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x101a27['model']['enqueueChange'](()=>{_0x101a27['model']['enqueueChange'](_0x2f10c2,_0x1ddf92=>{const _0x108078=_0x308846['filter'](_0x36476f=>'$graveyard'!=_0x36476f['root']['rootName']);_0x108078['length']>0x0&&_0x1ddf92['setSelection'](_0x108078);for(const _0x35965e of _0x308846)_0x35965e['detach']();});});});}function _0x419c77(_0x149462){_0x101a27['model']['change'](_0x4b57aa=>{const _0x18b3b9=Array['from'](_0x212177['getRanges']())['map'](_0xdaca78=>_0x48c676['fromRange'](_0xdaca78)),_0x3f14da=[];for(const _0xbf830a of _0x149462)for(const _0x29ab74 of _0xbf830a['getItems']({'shallow':!0x0}))_0x3f14da['push'](_0x29ab74);for(const _0x345bca of _0x3f14da)'$graveyard'!=_0x345bca['root']['rootName']&&(_0x4b57aa['setSelection'](_0x4b57aa['createPositionAt'](_0x345bca,0x0)),_0x101a27['commands']['get']('removeTableColumn')['refresh'](),_0x101a27['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3c88d5=_0x18b3b9['filter'](_0x47d16d=>'$graveyard'!=_0x47d16d['root']['rootName']);_0x3c88d5['length']>0x0&&_0x4b57aa['setSelection'](_0x3c88d5);for(const _0x23c812 of _0x18b3b9)_0x23c812['detach']();});}function _0x18f770(_0x158cbe,_0x5e52c1){return _0x5e52c1['every'](_0x4893f8=>_0x158cbe['some'](_0x2ac0e4=>_0x2ac0e4['end']['isEqual'](_0x4893f8['start'])||_0x4893f8['end']['isEqual'](_0x2ac0e4['start'])));}function _0x5f62d(_0x46f7c6,_0x586ff4){return!_0x46f7c6['some'](_0x13c158=>_0x586ff4['some'](_0x5b3cb7=>_0x13c158['isIntersecting'](_0x5b3cb7)))&&_0x46f7c6['some'](_0x5d37ac=>_0x586ff4['some'](_0x144a89=>_0x5d37ac['end']['isTouching'](_0x144a89['start'])));}_0x101a27['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4320d2,_0x2707b3,_0x131afa)=>{if(!_0x131afa['options']['showSuggestionHighlights'])return;const _0x33d18d=_0x2707b3['item'];if(!_0x33d18d)return;const _0x2a3e43=_0x131afa['mapper']['toViewElement'](_0x33d18d);function _0x412763(_0x2cb639){return Array['isArray'](_0x2cb639)?_0x2cb639:[_0x2cb639];}_0x2a3e43&&'tableCell'===_0x33d18d['name']&&_0x976cb5(_0x2a3e43,_0x131afa['writer'],(_0x46d450,_0x20ee59,_0x1db72b)=>_0x1db72b['addClass'](_0x412763(_0x20ee59['classes']),_0x46d450),(_0x318bd9,_0x278ab3,_0x2be90e)=>_0x2be90e['removeClass'](_0x412763(_0x278ab3['classes']),_0x318bd9));},{'priority':'highest'}),_0x1585d2['descriptionFactory']['registerDescriptionCallback'](_0x2c7e3c=>{if('insertion'!=_0x2c7e3c['type']&&'deletion'!=_0x2c7e3c['type'])return;const _0xbc66fd=_0x2c7e3c['getContainedElement']();if(null!=_0xbc66fd&&_0xbc66fd['is']('element','table')){if('insertion'==_0x2c7e3c['type']){const _0x121b15=_0x2c7e3c['getItems']()['filter'](_0x1233dd=>_0x1233dd['is']('$textProxy'))['map'](_0x2bdfa2=>_0x2bdfa2['data']);if(_0x121b15['length'])return{'type':'insertion','content':o(_0x5010c1,'*Insert:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x121b15['join']('\x20')+'\x22'))};}if('deletion'==_0x2c7e3c['type']){const _0x21f40c=_0x2c7e3c['getItems']()['filter'](_0x190015=>_0x190015['is']('$textProxy'))['map'](_0x5e5962=>_0x5e5962['data']);if(_0x21f40c['length'])return{'type':'deletion','content':o(_0x5010c1,'*Remove:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21f40c['join']('\x20')+'\x22'))};}}}),_0x1585d2['descriptionFactory']['registerDescriptionCallback'](_0x4b2bdc=>{if('tableRow'==_0x4b2bdc['subType']){const _0x2c957e=_0x4b2bdc['getItems']()['filter'](_0x49c578=>_0x49c578['is']('$textProxy'))['map'](_0x2a1a06=>_0x2a1a06['data']),_0x4c732b=this['_getSuggestionCoords'](_0x4b2bdc),_0x4fbc78=_0x4c732b['maxRow']-_0x4c732b['minRow']+0x1;if('insertion'==_0x4b2bdc['type'])return _0x2c957e['length']?{'type':'insertion','content':o(_0x5010c1,'*Insert:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4fbc78,'\x22'+_0x2c957e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5010c1,'*Insert:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_ROW',_0x4fbc78))};if('deletion'==_0x4b2bdc['type'])return _0x2c957e['length']?{'type':'deletion','content':o(_0x5010c1,'*Remove:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4fbc78,'\x22'+_0x2c957e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5010c1,'*Remove:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_ROW',_0x4fbc78))};}if('tableColumn'==_0x4b2bdc['subType']){const _0x12564f=_0x4b2bdc['getItems']()['filter'](_0x4eaf45=>_0x4eaf45['is']('$textProxy'))['map'](_0x12f5e2=>_0x12f5e2['data']),_0x3a78ce=this['_getSuggestionCoords'](_0x4b2bdc),_0x8f74b4=_0x3a78ce['maxColumn']-_0x3a78ce['minColumn']+0x1;if('insertion'==_0x4b2bdc['type'])return _0x12564f['length']?{'type':'insertion','content':o(_0x5010c1,'*Insert:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x8f74b4,'\x22'+_0x12564f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5010c1,'*Insert:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_COLUMN',_0x8f74b4))};if('deletion'==_0x4b2bdc['type'])return _0x12564f['length']?{'type':'deletion','content':o(_0x5010c1,'*Remove:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x8f74b4,'\x22'+_0x12564f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5010c1,'*Remove:*\x20%0',o(_0x5010c1,'ELEMENT_TABLE_COLUMN',_0x8f74b4))};}}),_0x1585d2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4e339f),_0x1585d2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4e339f),_0x1585d2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x419c77),_0x1585d2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x419c77),_0x1585d2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x18f770),_0x1585d2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x18f770),_0x1585d2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5f62d),_0x1585d2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5f62d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1c23f4=this['editor'],_0x5d46a1=_0x1c23f4['model']['document']['selection'];return(_0x4d85b4,_0x54ca32)=>{_0x1c23f4['model']['change'](_0x5c4825=>{const {commandName:_0x3c3afb,commandParams:_0x17e027}=_0x54ca32;let _0x4add41=_0x4d85b4[0x0]['end']['nodeBefore'];_0x17e027&&_0x17e027[0x0]&&!0x1===_0x17e027[0x0]['forceValue']&&(_0x4add41=_0x4d85b4[0x0]['start']['nodeAfter']);const _0x5947a6=_0x5c4825['createRangeIn'](_0x4add41);if('$graveyard'==_0x5947a6['root']['rootName'])return;const _0x48e403=Array['from'](_0x5d46a1['getRanges']())['map'](_0x4b21d2=>_0x48c676['fromRange'](_0x4b21d2));_0x5c4825['setSelection'](_0x5947a6),_0x1c23f4['commands']['get'](_0x3c3afb)['refresh'](),_0x17e027['push']({'forceDefaultExecution':!0x0}),_0x1c23f4['execute'](_0x3c3afb,..._0x17e027);const _0x151321=_0x48e403['filter'](_0x21af63=>'$graveyard'!=_0x21af63['root']['rootName']);_0x151321['length']>0x0&&_0x5c4825['setSelection'](_0x151321);for(const _0x55ade3 of _0x48e403)_0x55ade3['detach']();});};}['_getCoordsForCells'](_0x144b59){const _0x4938be=this['editor']['plugins']['get']('TableUtils');let _0x43feb8=Number['MAX_SAFE_INTEGER'],_0x4857ce=Number['MIN_SAFE_INTEGER'],_0x436cf5=Number['MAX_SAFE_INTEGER'],_0x582f6a=Number['MIN_SAFE_INTEGER'];for(const _0x599cc7 of _0x144b59){if('$graveyard'==_0x599cc7['root']['rootName'])continue;const {row:_0x3eae15,column:_0x509fb5}=_0x4938be['getCellLocation'](_0x599cc7),_0x103bf2=_0x599cc7['hasAttribute']('rowspan')?_0x599cc7['getAttribute']('rowspan')-0x1:0x0,_0x49b598=_0x599cc7['hasAttribute']('colspan')?_0x599cc7['getAttribute']('colspan')-0x1:0x0;_0x43feb8=_0x3eae15<_0x43feb8?_0x3eae15:_0x43feb8,_0x4857ce=_0x3eae15+_0x103bf2>_0x4857ce?_0x3eae15+_0x103bf2:_0x4857ce,_0x436cf5=_0x509fb5<_0x436cf5?_0x509fb5:_0x436cf5,_0x582f6a=_0x509fb5+_0x49b598>_0x582f6a?_0x509fb5+_0x49b598:_0x582f6a;}return{'minRow':_0x43feb8,'maxRow':_0x4857ce,'minColumn':_0x436cf5,'maxColumn':_0x582f6a};}['_setupColumnsRowsFixing'](){const _0x18eb4e=this['editor'],_0x41af9f=_0x18eb4e['plugins']['get']('TrackChangesEditing'),_0x484469=_0x18eb4e['plugins']['get']('TableUtils');_0x18eb4e['model']['document']['on']('change:data',()=>{const _0x397d13=Array['from'](_0x18eb4e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14fb46,data:_0x1a089f}of _0x397d13){const {group:_0xf8a152,id:_0x489cdc,subType:_0x47db53}=_0x41af9f['_splitMarkerName'](_0x14fb46);if('suggestion'!=_0xf8a152)continue;if(null!=_0x1a089f['oldRange'])continue;const _0x323be8=_0x41af9f['getSuggestion'](_0x489cdc);this['_tablePostFixingSubtypes']['includes'](_0x47db53)&&this['_tableSuggestions']['add'](_0x323be8);}},{'priority':'low'});const _0x2c300d=(_0x233ab0,_0x637455)=>{let _0x50cf87=!0x1;const _0x15dad9=_0x637455['createRangeOn'](_0x233ab0),_0x42c3d8=_0x233ab0['findAncestor']('table'),_0x454bff=_0x484469['getCellLocation'](_0x233ab0);for(const _0x45b530 of this['_tableSuggestions']){const _0x10cb53=_0x45b530['subType'],_0x474ca4=_0x10cb53['startsWith']('tablePaste'),_0x42253a=_0x10cb53['substr'](_0x474ca4?0xa:0x5),_0x313079=_0x42253a['toLowerCase'](),_0x50c213=_0x313079['substr'](0x0,0x3)+'span',_0x99d80b='min'+_0x42253a,_0x174373='max'+_0x42253a;if(!_0x45b530['isInContent'])continue;if(_0x42c3d8!=_0x45b530['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x45b530['isIntersectingWithRange'](_0x15dad9))continue;const _0x2c4a06=_0x233ab0['hasAttribute'](_0x50c213)?_0x233ab0['getAttribute'](_0x50c213)-0x1:0x0,_0xefa8e8=this['_getSuggestionCoords'](_0x45b530),_0x27485c=_0xefa8e8[_0x99d80b],_0x56084a=_0xefa8e8[_0x174373];_0x27485c<=_0x454bff[_0x313079]&&_0x454bff[_0x313079]+_0x2c4a06<=_0x56084a&&(_0x45b530['addRange'](_0x15dad9),_0x50cf87=!0x0);}return _0x50cf87;};_0x18eb4e['model']['document']['registerPostFixer'](_0x35e15b=>{let _0x252073=!0x1;for(const _0x5678e8 of _0x18eb4e['model']['document']['differ']['getChanges']())if('insert'==_0x5678e8['type']){if('tableRow'==_0x5678e8['name']){for(const _0x5de4b5 of _0x5678e8['position']['nodeAfter']['getChildren']())_0x252073=_0x252073||_0x2c300d(_0x5de4b5,_0x35e15b);}else'tableCell'==_0x5678e8['name']&&(_0x252073=_0x252073||_0x2c300d(_0x5678e8['position']['nodeAfter'],_0x35e15b));}return _0x252073;});}['_getSuggestionCoords'](_0x3142ee){return this['_getCoordsForCells'](_0x3142ee['getRanges']()['map'](_0xae3c01=>_0xae3c01['start']['nodeAfter']));}}function Ne(_0x2e1fcc){return Array['from'](new Set(_0x2e1fcc)['values']());}class _t extends _0x27318c{static get['requires'](){return[vt];}['afterInit'](){const _0x265f6d=this['editor'],_0x1f5e7d=_0x265f6d['model']['document']['selection'],_0x572afa=_0x265f6d['locale'];if(!_0x265f6d['plugins']['has']('TableEditing'))return;const _0x5d61c8=_0x265f6d['plugins']['get']('TrackChangesEditing'),_0x273163=_0x265f6d['plugins']['get']('TableUtils'),_0x5ee18a=_0x265f6d['plugins']['get'](vt);_0x5ee18a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5d61c8['enableCommand']('mergeTableCells',()=>{const _0x3f9d5a=_0x273163['getSelectionAffectedTableCells'](_0x265f6d['model']['document']['selection']);_0x265f6d['model']['change'](()=>{_0x5d61c8['markMultiRangeBlockFormat'](_0x3f9d5a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x265f6d['commands']['get']('mergeTableCells')['on']('execute',(_0x19ccdb,_0x24010f)=>{_0x265f6d['commands']['get']('trackChanges')['value']&&(_0x24010f['length']>0x0&&_0x24010f[_0x24010f['length']-0x1]&&_0x24010f[_0x24010f['length']-0x1]['forceDefaultExecution']||_0x5d61c8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x19ccdb['stop']());},{'priority':'highest'});for(const _0x505f02 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x58e0bb=_0x265f6d['commands']['get'](_0x505f02);_0x5d61c8['enableCommand'](_0x505f02,()=>{const _0x2ddf0e=_0x265f6d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5bb16b=>_0x5bb16b['is']('element','tableCell')),_0x2ceb1e=_0x58e0bb['value'];_0x265f6d['model']['change'](()=>{_0x5d61c8['markMultiRangeBlockFormat']([_0x2ddf0e,_0x2ceb1e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x28107c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x51875a=_0x265f6d['commands']['get'](_0x28107c);_0x5d61c8['enableCommand'](_0x28107c,()=>{const _0x114c46=_0x273163['getSelectionAffectedTableCells'](_0x265f6d['model']['document']['selection'])[0x0],_0x2134f0=_0x114c46['findAncestor']('table'),{column:_0x91e6be,row:_0xdd0d93}=_0x273163['getCellLocation'](_0x114c46);let _0x4b3553=[];if('horizontally'==_0x51875a['direction']){const _0x1dc1ad=_0x273163['createTableWalker'](_0x2134f0,{'startRow':_0xdd0d93,'endRow':_0xdd0d93,'includeAllSlots':!0x0});_0x4b3553=Array['from'](_0x1dc1ad)['map'](_0x278f78=>_0x278f78['cell']);}else{const _0xf209c2=_0x273163['createTableWalker'](_0x2134f0,{'column':_0x91e6be,'includeAllSlots':!0x0});_0x4b3553=Array['from'](_0xf209c2)['map'](_0x408527=>_0x408527['cell']);}_0x265f6d['model']['change'](_0x2dfd08=>{_0x5d61c8['markBlockFormat'](_0x2dfd08['createRangeOn'](_0x114c46),{'commandName':_0x28107c,'commandParams':[]},_0x4b3553,_0x28107c);});});}_0x5d61c8['descriptionFactory']['registerDescriptionCallback'](_0x1ae4e0=>{if('formatBlock'!=_0x1ae4e0['type']&&'formatInline'!=_0x1ae4e0['type'])return;const {data:_0x254697}=_0x1ae4e0;return _0x254697&&'mergeTableCells'==_0x254697['commandName']?{'type':'format','content':o(_0x572afa,'*Merge\x20cells*')}:void 0x0;}),_0x5d61c8['descriptionFactory']['registerDescriptionCallback'](_0x28981d=>{if('formatBlock'!=_0x28981d['type']&&'formatInline'!=_0x28981d['type'])return;const {data:_0x1aee51}=_0x28981d;return _0x1aee51?'splitTableCellVertically'==_0x1aee51['commandName']?{'type':'format','content':o(_0x572afa,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1aee51['commandName']?{'type':'format','content':o(_0x572afa,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x32f2d6=_0x5ee18a['_acceptFormatSuggestionCallbackFactory']();for(const _0x4b5fd4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5d61c8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b5fd4,'accept',_0x32f2d6);for(const _0x2d213f of['splitTableCellVertically','splitTableCellHorizontally'])_0x5d61c8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d213f,'accept',_0x32f2d6);_0x5d61c8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x58f86a=>{_0x265f6d['model']['change'](_0x338f99=>{const _0x47942f=Array['from'](_0x1f5e7d['getRanges']())['map'](_0x814d8=>_0x48c676['fromRange'](_0x814d8));_0x338f99['setSelection'](_0x58f86a),_0x265f6d['commands']['get']('mergeTableCells')['refresh'](),_0x265f6d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4eeff2=_0x47942f['filter'](_0x5bd7cb=>'$graveyard'!=_0x5bd7cb['root']['rootName']);_0x4eeff2['length']>0x0&&_0x338f99['setSelection'](_0x4eeff2);for(const _0x5318d7 of _0x47942f)_0x5318d7['detach']();});});for(const _0x4e7a3c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x53f700=_0x265f6d['commands']['get'](_0x4e7a3c);_0x53f700['on']('set:isEnabled',(_0x249fc4,_0x498d52,_0x9a1bfd)=>{if(_0x9a1bfd){const _0x3ec009=_0x265f6d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xfba5d7=>_0xfba5d7['is']('element','tableCell'));this['_areMergableCells'](_0x53f700['value'],_0x3ec009)||(_0x249fc4['return']=!0x1,_0x249fc4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xe8ab1f=this['editor']['commands']['get']('mergeTableCells'),_0x146d28=this['editor']['plugins']['get']('TableUtils');if(!_0xe8ab1f['isEnabled'])return!0x1;const _0x4fa416=_0x146d28['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x12ff67 of _0x4fa416)for(const _0x5d2f69 of _0x4fa416)if(_0x12ff67!=_0x5d2f69&&!this['_areMergableCells'](_0x12ff67,_0x5d2f69))return!0x1;return!0x0;}['_areMergableCells'](_0x2a0190,_0x49b4c0){const _0x3a0c89=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51352e=this['editor']['model']['createRangeOn'](_0x2a0190),_0x4df06d=this['editor']['model']['createRangeOn'](_0x49b4c0),_0x59f88f=new Set(),_0x5a5955=new Set();for(const _0x724335 of _0x3a0c89['getSuggestions']())if(('insertion'==_0x724335['type']||'deletion'==_0x724335['type']||'mergeTableCells'==_0x724335['subType'])&&_0x724335['isInContent']){for(const _0x13e198 of _0x724335['getRanges']())_0x13e198['containsRange'](_0x51352e,!0x0)&&_0x59f88f['add'](_0x724335['type']+':'+_0x724335['author']['id']),_0x13e198['containsRange'](_0x4df06d,!0x0)&&_0x5a5955['add'](_0x724335['type']+':'+_0x724335['author']['id']);}if(_0x59f88f['size']!=_0x5a5955['size'])return!0x1;for(const _0x515025 of _0x59f88f)if(!_0x5a5955['has'](_0x515025))return!0x1;return!0x0;}}class Ct extends _0x27318c{static get['requires'](){return[vt];}['afterInit'](){const _0x48773c=this['editor'];if(!_0x48773c['plugins']['has']('TableEditing'))return;const _0x10b3f0=_0x48773c['locale'],_0x40aa06=_0x48773c['plugins']['get']('TrackChangesEditing');_0x40aa06['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x40aa06['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x40aa06['registerBlockAttribute']('headingRows'),_0x40aa06['registerBlockAttribute']('headingColumns'),_0x40aa06['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x10b3f0,'FORMAT_HEADER_ROW')),_0x40aa06['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x10b3f0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1d34b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41f77=this['editor']['plugins']['get']('TableUtils'),_0x2a9021=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x385f3a({showActiveMarker:_0x55a189=!0x0,setDataAttribute:_0x505bb8=!0x0}={}){return(_0x93cb1,_0x4c1daa,_0x4392b9)=>{const {type:_0x2b2fd5,id:_0x3e1333}=_0x1d34b9['_splitMarkerName'](_0x4c1daa['markerName']),_0x4ea9a3=_0x1d34b9['getSuggestion'](_0x3e1333),_0x5bc6b7=_0x4ea9a3['data'];if('formatBlock'!=_0x4ea9a3['type']||!_0x5bc6b7||'setTableColumnHeader'!=_0x5bc6b7['commandName'])return;if(_0x4c1daa['item'])return void _0x93cb1['stop']();if(!_0x4392b9['consumable']['consume'](_0x4c1daa['markerRange'],_0x93cb1['name']))return;const _0x47f705=_0x4c1daa['markerRange']['start']['nodeAfter'],_0x2a5c6c=_0x4c1daa['markerRange']['end']['nodeBefore'],_0x5a6066=_0x47f705['parent']['parent'],{column:_0x3720b1}=_0x41f77['getCellLocation'](_0x47f705),{column:_0x410cfc}=_0x41f77['getCellLocation'](_0x2a5c6c);for(let _0x26a723=_0x3720b1;_0x26a723<=_0x410cfc;_0x26a723++){const _0xf0bc2a=_0x41f77['createTableWalker'](_0x5a6066,{'column':_0x26a723,'includeAllSlots':!0x1});for(const _0x3eeca7 of _0xf0bc2a){const _0x2c6e01=_0x3eeca7['cell'],_0x3b2849=_0x4392b9['mapper']['toViewElement'](_0x2c6e01);_0x4392b9['writer']['addClass']('ck-suggestion-marker-'+_0x2b2fd5,_0x3b2849),_0x505bb8&&_0x4392b9['writer']['setAttribute']('data-suggestion',_0x3e1333,_0x3b2849),_0x4392b9['mapper']['bindElementToMarker'](_0x3b2849,_0x4c1daa['markerName']),_0x55a189&&(_0x1d34b9['activeMarkers']['includes'](_0x4c1daa['markerName'])?_0x4392b9['writer']['addClass']('ck-suggestion-marker--active',_0x3b2849):_0x4392b9['writer']['removeClass']('ck-suggestion-marker--active',_0x3b2849));}}};}_0x1d34b9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2a9021),_0x1d34b9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2a9021),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x385f3a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1212b1,_0x54b1e7,_0x33ccc0)=>{_0x33ccc0['options']['showSuggestionHighlights']&&_0x385f3a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1212b1,_0x54b1e7,_0x33ccc0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xf3ea12,_0xc3e496,_0x3f1a41)=>{const {type:_0x525a7a,id:_0x3d79ae}=_0x1d34b9['_splitMarkerName'](_0xc3e496['markerName']),_0x23b7cd=_0x1d34b9['getSuggestion'](_0x3d79ae),_0x46eb38=_0x23b7cd['data'];if('formatBlock'!=_0x23b7cd['type']||!_0x46eb38||'setTableColumnHeader'!=_0x46eb38['commandName'])return;const _0x4183f1=_0x3f1a41['mapper']['markerNameToElements'](_0xc3e496['markerName']);if(_0x4183f1){for(const _0x3820a8 of _0x4183f1)_0x3f1a41['writer']['removeClass']('ck-suggestion-marker-'+_0x525a7a,_0x3820a8),_0x3f1a41['writer']['removeClass']('ck-suggestion-marker--active',_0x3820a8),_0x3f1a41['writer']['removeAttribute']('data-suggestion',_0x3820a8),_0x3f1a41['mapper']['unbindElementFromMarkerName'](_0x3820a8,_0xc3e496['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2163ea=this['editor'],_0x4a7742=_0x2163ea['locale'];function _0x298e2c(_0x264666){return{'type':'format','content':o(_0x4a7742,'*Format:*\x20%0',_0x264666)};}_0x2163ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f0778=>{if('formatBlock'!=_0x2f0778['type'])return;const {data:_0x39c8cf}=_0x2f0778;if(_0x39c8cf){if('setTableRowHeader'==_0x39c8cf['commandName']){const _0x3eb573=_0x39c8cf['commandParams'][0x0]['forceValue'];return _0x298e2c(o(_0x4a7742,_0x3eb573?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x39c8cf['commandName']){const _0x5b01a1=_0x39c8cf['commandParams'][0x0]['forceValue'];return _0x298e2c(o(_0x4a7742,_0x5b01a1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x2b41c8=>[_0x2b41c8,null]));class Nt extends _0x27318c{static get['requires'](){return[vt];}['afterInit'](){const _0x126f71=this['editor'];if(!_0x126f71['plugins']['has']('TableClipboard'))return;const _0x202ecd=_0x126f71['plugins']['get']('TrackChangesEditing'),_0x1aa1de=_0x126f71['plugins']['get']('TableUtils'),_0x367069=_0x126f71['plugins']['get'](vt),_0x9db3b6=_0x126f71['plugins']['get']('TableClipboard');_0x367069['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x126f71['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x126f71['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x265450=null;_0x126f71['model']['on']('insertContent',(_0x5a5f43,_0x5fa6d8)=>{const [_0x8072a7,_0x27f8db]=_0x5fa6d8,_0x47242d=_0x5fa6d8[_0x5fa6d8['length']-0x1];_0x47242d&&_0x47242d['forceDefaultExecution']||_0x202ecd['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x26796d,_0x2ec68a,_0x196e4f,_0x586db6,_0x274a88){if(_0x2ec68a&&!_0x2ec68a['is']('documentSelection'))return!0x1;const _0x56fd47=_0x274a88['getTableIfOnlyTableInContent'](_0x26796d,_0x196e4f);if(!_0x56fd47||!Ue(_0x56fd47,void 0x0,_0x586db6))return!0x1;const _0x25499b=_0x586db6['getSelectionAffectedTableCells'](_0x196e4f['document']['selection']);if(!_0x25499b['length'])return!0x1;const _0x1382d5=_0x25499b[0x0]['findAncestor']('table'),_0x2a5f8c=_0x586db6['getRowIndexes'](_0x25499b),_0x5836e6=_0x586db6['getColumnIndexes'](_0x25499b),_0x27a134={'startRow':_0x2a5f8c['first'],'endRow':_0x2a5f8c['last'],'startColumn':_0x5836e6['first'],'endColumn':_0x5836e6['last']};return 0x1==_0x25499b['length']&&(_0x27a134['endRow']+=_0x586db6['getRows'](_0x56fd47)-0x1,_0x27a134['endColumn']+=_0x586db6['getColumns'](_0x56fd47)-0x1),Ue(_0x1382d5,_0x27a134,_0x586db6);}(_0x8072a7,_0x27f8db,_0x126f71['model'],_0x1aa1de,_0x9db3b6)&&(_0x5a5f43['stop'](),_0x265450={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x126f71['model']['change'](()=>{_0x126f71['model']['insertContent'](_0x5fa6d8[0x0],_0x5fa6d8[0x1],_0x5fa6d8[0x2],{'forceDefaultExecution':!0x0});const _0x1dd281=_0x3330a4(),{rowInsertionRanges:_0x56d69b,columnInsertionRanges:_0x30d616,insertionRanges:_0x3581cb,deletionRanges:_0xcd7c0b,cells:_0x453c6c}=_0x265450;_0x56d69b['length']&&_0x202ecd['markMultiRangeInsertion'](_0x56d69b,'tablePasteRow',{'tablePasteChainId':_0x1dd281}),_0x30d616['length']&&_0x202ecd['markMultiRangeInsertion'](_0x30d616,'tablePasteColumn',{'tablePasteChainId':_0x1dd281}),_0x3581cb['length']&&(_0x202ecd['markMultiRangeInsertion'](_0x3581cb,'tablePaste',{'tablePasteChainId':_0x1dd281,'skipNestingCheck':!0x0}),_0x3581cb['forEach'](_0x56ad67=>_0x56ad67['detach']?.())),_0xcd7c0b['length']&&(_0x202ecd['markMultiRangeDeletion'](_0xcd7c0b,'tablePaste',{'tablePasteChainId':_0x1dd281,'skipNestingCheck':!0x0}),_0xcd7c0b['forEach'](_0x4beb35=>_0x4beb35['detach']?.()));const _0x57d38b=_0x202ecd['markMultiRangeBlockFormat'](_0x453c6c['map'](({element:_0x53b3ca})=>_0x53b3ca),{'formatGroupId':_0x3330a4()},[],'tablePasteCell',{'tablePasteChainId':_0x1dd281});if(_0x57d38b){const _0x27be02=_0x57d38b['getMarkers'](),_0x205652=[];for(const {element:_0x16e73a,attributes:_0x486547}of _0x453c6c){if(!_0x486547)continue;const _0x2ba902=_0x126f71['model']['createRangeOn'](_0x16e73a),_0x16a94c=_0x27be02['find'](_0x2e31b5=>_0x2e31b5['getRange']()['isEqual'](_0x2ba902));_0x16a94c&&_0x205652['push']([_0x16a94c['name'],_0x486547]);}_0x205652['length']&&_0x57d38b['setAttribute']('markerAttributes',Object['fromEntries'](_0x205652));}_0x265450=null;}));},{'priority':_0x11b5a6['high']+0xa}),_0x126f71['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x419a19,_0x93b34d)=>{const [_0x31f06e,_0x10e4a0,,_0x15eee2]=_0x93b34d;if(!_0x265450)return;_0x419a19['stop']();const _0x482f8a=_0x31f06e['cell'],_0x1c3002=_0x10e4a0,_0x5b1992=Oe(_0x482f8a),_0x5a52a3=Oe(_0x1c3002);_0x419a19['return']=_0x482f8a;let _0x4f01a5=null,_0x1caff5=null;if(_0x5a52a3||_0x5b1992){if(_0x5b1992&&!_0x5a52a3){_0x15eee2['remove'](_0x482f8a['getChild'](0x0));for(const _0x433025 of Array['from'](_0x1c3002['getChildren']()))_0x15eee2['insert'](_0x433025,_0x482f8a,'end');const _0x197a0f=_0x265450['rowInsertionIndexes']['includes'](_0x31f06e['row']),_0x4fcae1=_0x265450['columnInsertionIndexes']['includes'](_0x31f06e['column']);_0x197a0f||_0x4fcae1||(_0x4f01a5=_0x48c676['fromRange'](_0x15eee2['createRangeIn'](_0x482f8a)));}else _0x5a52a3&&!_0x5b1992&&(_0x1caff5=_0x15eee2['createRangeIn'](_0x482f8a));}else{const _0x2c061f=_0x15eee2['createElement']('tableCellSuggestion'),_0x2c61d2=_0x15eee2['createElement']('tableCellSuggestion');_0x15eee2['wrap'](_0x15eee2['createRangeIn'](_0x482f8a),_0x2c61d2),_0x15eee2['insert'](_0x2c061f,_0x482f8a,0x0);for(const _0x417760 of Array['from'](_0x1c3002['getChildren']()))_0x15eee2['insert'](_0x417760,_0x2c061f,'end');_0x4f01a5=_0x48c676['fromRange'](_0x15eee2['createRangeOn'](_0x2c061f)),_0x1caff5=_0x48c676['fromRange'](_0x15eee2['createRangeOn'](_0x2c61d2));}const _0x42b7d7=Array['from'](_0x1c3002['getAttributes']())['filter'](([_0x54304c])=>Be['includes'](_0x54304c));_0x265450['cells']['push']({'element':_0x482f8a,'attributes':_0x42b7d7['length']?Object['fromEntries'](_0x42b7d7):null}),_0x4f01a5&&_0x265450['insertionRanges']['push'](_0x4f01a5),_0x1caff5&&_0x265450['deletionRanges']['push'](_0x1caff5);},{'priority':'high'}),_0x1aa1de['on']('insertColumns',(_0x551e4f,_0x4458bf)=>{const [_0x4d7cb5,_0x139a09={}]=_0x4458bf;if(!_0x265450)return;const _0x11c6cd=_0x139a09['at']||0x0,_0x5e7de6=_0x139a09['columns']||0x1;_0x265450['columnInsertionIndexes']=new Array(_0x5e7de6)['fill'](_0x11c6cd)['map']((_0x2e8a9e,_0x4dd8fb)=>_0x2e8a9e+_0x4dd8fb);for(const {cell:_0x459205}of _0x1aa1de['createTableWalker'](_0x4d7cb5,{'startColumn':_0x11c6cd,'endColumn':_0x11c6cd+_0x5e7de6-0x1}))_0x265450['columnInsertionRanges']['push'](_0x126f71['model']['createRangeOn'](_0x459205));},{'priority':'low'}),_0x1aa1de['on']('insertRows',(_0x47a1e1,_0x41d4c1)=>{const [_0x29f8ce,_0x117476={}]=_0x41d4c1;if(!_0x265450)return;const _0x1444fa=_0x117476['at']||0x0,_0x4a2e8a=_0x117476['rows']||0x1;_0x265450['rowInsertionIndexes']=new Array(_0x4a2e8a)['fill'](_0x1444fa)['map']((_0x3abd99,_0x12de9d)=>_0x3abd99+_0x12de9d);for(const {cell:_0x5e4863}of _0x1aa1de['createTableWalker'](_0x29f8ce,{'startRow':_0x1444fa,'endRow':_0x1444fa+_0x4a2e8a-0x1}))_0x265450['rowInsertionRanges']['push'](_0x126f71['model']['createRangeOn'](_0x5e4863));},{'priority':'low'}),_0x202ecd['descriptionFactory']['registerDescriptionCallback'](_0xe566d8=>{if(_0xe566d8['subType']&&_0xe566d8['subType']['startsWith']('tablePaste'))return _0xe566d8['previous']?{}:{'type':'insertion','content':o(_0x126f71['locale'],'*Replace\x20table\x20cells*')};});const _0x23c935=()=>!0x1;for(const _0x4b0e92 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x202ecd['_suggestionFactory']['registerCustomCallback']('insertion',_0x4b0e92,'join',_0x23c935),_0x202ecd['_suggestionFactory']['registerCustomCallback']('deletion',_0x4b0e92,'join',_0x23c935),_0x202ecd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b0e92,'join',_0x23c935);_0x202ecd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x23c935),_0x202ecd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2863a5,_0x349d01,_0x13ef3b)=>{const _0x51a582=_0x2863a5['map'](_0x1d84bd=>_0x1d84bd['getContainedElement']())['filter'](_0x39369e=>_0x39369e),_0x54b607=new Map(_0x51a582['map'](_0x322023=>[_0x322023,null]));if(_0x265450){for(const {element:_0x2334c5,attributes:_0x3d9aae}of _0x265450['cells'])_0x3d9aae&&_0x54b607['set'](_0x2334c5,_0x3d9aae);}else{if(_0x13ef3b&&_0x13ef3b['markerAttributes'])for(const [_0x52da81,_0x1da074]of Object['entries'](_0x13ef3b['markerAttributes'])){const _0x4d97ea=_0x126f71['model']['markers']['get'](_0x52da81),_0x1666ac=_0x4d97ea?_0x4d97ea['getRange']()['getContainedElement']():null;_0x1666ac&&_0x54b607['set'](_0x1666ac,_0x1da074);}}_0x126f71['model']['change'](_0x11c277=>{for(const [_0x53862f,_0x458f04]of _0x54b607)_0x11c277['setAttributes']({...xe,..._0x458f04},_0x53862f);});});const _0x1ca1c8=(_0x443d03,_0x5498ce)=>{_0x202ecd['_suggestionFactory']['registerCustomCallback'](_0x443d03,'tablePaste',_0x5498ce,(_0x5876a2,_0x28fdab,_0x494ae0)=>{_0x126f71['model']['change'](_0x4e9787=>{const _0x414585=[];for(const _0x4a7d97 of _0x5876a2){const _0x476243=_0x4a7d97['start']['nodeAfter'];_0x476243['is']('element','tableCellSuggestion')&&_0x414585['push'](_0x476243);}_0x202ecd['_suggestionFactory']['getSuggestionCallback'](_0x443d03,null,_0x5498ce)(_0x5876a2,_0x28fdab,_0x494ae0);for(const _0x5f38b4 of _0x414585)'$graveyard'!=_0x5f38b4['root']['rootName']&&_0x4e9787['unwrap'](_0x5f38b4);});});};_0x1ca1c8('insertion','accept'),_0x1ca1c8('insertion','discard'),_0x1ca1c8('deletion','accept'),_0x1ca1c8('deletion','discard'),_0x202ecd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1cc0dc=>{const _0x18b360=_0x1cc0dc['map'](_0xa59bdf=>_0xa59bdf['getContainedElement']()),_0x83f513=_0x18b360[0x0]['findAncestor']('table'),{minRow:_0x4d40df,maxRow:_0x3f5aed}=_0x367069['_getCoordsForCells'](_0x18b360);_0x1aa1de['removeRows'](_0x83f513,{'at':_0x4d40df,'rows':_0x3f5aed-_0x4d40df+0x1});}),_0x202ecd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x325454=>{const _0x3a88f1=_0x325454['map'](_0x31f409=>_0x31f409['getContainedElement']()),_0x468fe9=_0x3a88f1[0x0]['findAncestor']('table'),{minColumn:_0x38aec7,maxColumn:_0x5ea46c}=_0x367069['_getCoordsForCells'](_0x3a88f1);_0x1aa1de['removeColumns'](_0x468fe9,{'at':_0x38aec7,'columns':_0x5ea46c-_0x38aec7+0x1});});const _0xebb4ba=(_0x8433a3,_0x1da76a)=>{if(!_0x1da76a['subType']||!_0x1da76a['subType']['startsWith']('tablePaste'))return;const _0x3ba810=_0x1da76a['attributes']['tablePasteChainId'],_0x134f2f=_0x202ecd['getSuggestions']()['filter'](_0x31b91e=>_0x31b91e['isInContent']&&_0x31b91e['attributes']&&_0x31b91e['attributes']['tablePasteChainId']==_0x3ba810);_0x134f2f['length']&&_0x1da76a['getAllAdjacentSuggestions']()['length']!=_0x134f2f['length']&&_0x134f2f['reduce']((_0x11c3ae,_0x3d8efd)=>(_0x11c3ae['next']=_0x3d8efd,_0x3d8efd['previous']=_0x11c3ae,_0x3d8efd));};function _0x5b02e6(_0x740da1,_0x2e5b0c=!0x0){const {id:_0x57c14f,authorId:_0x3471ad}=_0x202ecd['_splitMarkerName'](_0x740da1['markerName']),_0x1b89f5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5bab97=_0x202ecd['activeMarkers']['includes'](_0x740da1['markerName']);return _0x5bab97&&_0x1b89f5['push']('ck-suggestion-marker--active'),{'classes':_0x1b89f5,'attributes':{'data-suggestion':_0x57c14f,'data-author-id':_0x3471ad},'priority':_0x5bab97&&_0x2e5b0c?0xbc2:0xbb8};}_0x202ecd['on']('suggestionLoaded',_0xebb4ba,{'priority':'high'}),_0x202ecd['on']('suggestionUnloaded',_0xebb4ba,{'priority':'high'}),_0x126f71['model']['document']['registerPostFixer'](()=>{let _0x5442ae=!0x1;const _0x15943e=Array['from'](_0x126f71['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14d410,data:_0x151b99}of _0x15943e){const {group:_0x183e89,type:_0x4c034b,id:_0x47dc3a}=_0x202ecd['_splitMarkerName'](_0x14d410);if('suggestion'!=_0x183e89||'deletion'!=_0x4c034b||_0x151b99['oldRange'])continue;if(!_0x202ecd['hasSuggestion'](_0x47dc3a))continue;const _0x4c3cbb=_0x202ecd['getSuggestion'](_0x47dc3a)['getRanges'](),_0xbb668e=_0x126f71['plugins']['get']('Users')['me'];for(const _0x1d1647 of _0x202ecd['getSuggestions']()){if(!_0x1d1647['isInContent']||_0x1d1647['author']!=_0xbb668e)continue;if('formatBlock'!=_0x1d1647['type']||'tablePasteCell'!=_0x1d1647['subType'])continue;if(_0x1d1647['getRanges']()['every'](_0x1f59e2=>_0x4c3cbb['some'](_0x321b52=>_0x321b52['containsRange'](_0x1f59e2,!0x0)))){for(const _0x33c555 of _0x1d1647['getAllAdjacentSuggestions']())_0x33c555['isInContent']&&(_0x33c555['discard'](),_0x5442ae=!0x0);}}}return _0x5442ae;}),_0x126f71['model']['document']['registerPostFixer'](_0x2317e9=>{const _0x3ac072=_0x126f71['commands']['get']('redo');if(!_0x3ac072||!_0x3ac072['_createdBatches']['has'](_0x2317e9['batch']))return!0x1;let _0xb0d89f=!0x1;const _0x238f7a=_0x126f71['plugins']['get']('Users')['me'],_0x193a40=_0x126f71['model']['document']['differ']['getChanges'](),_0x165464=Array['from'](_0x126f71['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3a5eda,data:_0x337ebb})=>{const {group:_0x4cd47c,subType:_0x5c3799,authorId:_0x1ef88a}=_0x202ecd['_splitMarkerName'](_0x3a5eda);return'suggestion'==_0x4cd47c&&'tablePaste'==_0x5c3799&&_0x1ef88a==_0x238f7a['id']&&!_0x337ebb['oldRange'];});for(const _0x2ea68d of _0x193a40){if('insert'!=_0x2ea68d['type']||'tableCellSuggestion'!=_0x2ea68d['name']||0x1!=_0x2ea68d['length'])continue;const _0x21d204=_0x2317e9['createRange'](_0x2ea68d['position'],_0x2ea68d['position']['getShiftedBy'](0x1));if(!_0x165464['find'](({data:_0x30694e})=>_0x30694e['newRange']['isEqual'](_0x21d204))){for(const {name:_0x2d14ce,data:_0x590c9a}of _0x165464)if(_0x21d204['containsRange'](_0x590c9a['newRange'])){_0x2317e9['updateMarker'](_0x2d14ce,{'range':_0x21d204}),_0xb0d89f=!0x0;break;}}}return _0xb0d89f;}),_0x126f71['model']['document']['registerPostFixer'](_0x3afaf8=>{let _0xb63a2e=!0x1;const _0xd39cff=_0x126f71['plugins']['get']('Users')['me'],_0x1eb7ac=_0x202ecd['getSuggestions']()['filter'](_0x94fce8=>_0x94fce8['isInContent']&&_0x94fce8['author']==_0xd39cff),_0x307687=new Set(),_0x1fdba7=new Set();for(const _0x110b8c of _0x1eb7ac)if('tablePaste'==_0x110b8c['subType'])for(const _0x407986 of _0x110b8c['getMarkers']()){const _0x1aa556=_0x407986['getRange']()['getContainedElement']();if(_0x1aa556){if(_0x1aa556['is']('element','tableCellSuggestion')&&Oe(_0x1aa556)){_0x110b8c['removeMarker'](_0x407986['name']),_0x307687['add'](_0x1aa556),_0xb63a2e=!0x0;const _0x2f8a14=_0x1aa556['nextSibling'],_0x29fe9d=_0x1aa556['previousSibling'],_0x597c76=_0x2f8a14&&_0x2f8a14['is']('element','tableCellSuggestion'),_0x1f2db9=_0x29fe9d&&_0x29fe9d['is']('element','tableCellSuggestion');_0x597c76&&!_0x307687['has'](_0x2f8a14)&&_0x1fdba7['add'](_0x2f8a14),_0x1f2db9&&!_0x307687['has'](_0x29fe9d)&&_0x1fdba7['add'](_0x29fe9d);}else _0x1aa556['is']('element','paragraph')&&_0x1aa556['isEmpty']&&(_0x110b8c['removeMarker'](_0x407986['name']),_0xb63a2e=!0x0);}}else{if('tablePasteCell'==_0x110b8c['subType']){if(!_0x110b8c['attributes']||!_0x110b8c['attributes']['tablePasteChainId'])continue;const _0x36c67c=_0x110b8c['attributes']['markerAttributes'];if(_0x36c67c&&Object['keys'](_0x36c67c)['length'])continue;const _0x29b820=_0x110b8c['attributes']['tablePasteChainId'];let _0x32a103=!0x0,_0x490202=!0x0;for(const _0x456156 of _0x1eb7ac)if(_0x456156['subType']&&_0x456156['subType']['startsWith']('tablePaste')){if(!_0x456156['attributes']['tablePasteChainId']){_0x490202=!0x1;break;}if(_0x456156['id']!=_0x110b8c['id']&&_0x456156['attributes']['tablePasteChainId']==_0x29b820){_0x32a103=!0x1;break;}}_0x490202&&_0x32a103&&(_0x110b8c['removeMarkers'](),_0xb63a2e=!0x0);}}for(const _0x17d6b5 of _0x307687)_0x3afaf8['remove'](_0x17d6b5);for(const _0x3e6e63 of _0x1fdba7)_0x3afaf8['unwrap'](_0x3e6e63);return _0xb63a2e;}),_0x126f71['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x45a50a=>_0x5b02e6(_0x45a50a),'converterPriority':'high'}),_0x126f71['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x592deb,_0x114459)=>_0x114459['options']['showSuggestionHighlights']?_0x5b02e6(_0x592deb,!0x1):null,'converterPriority':'high'});const _0x41e3d1=_0x126f71['editing']['view'];this['listenTo'](_0x41e3d1['document'],'clipboardOutput',(_0x59630d,_0x42f886)=>{const _0x1ef3b6=[];for(const _0x32786c of _0x41e3d1['createRangeIn'](_0x42f886['content'])['getItems']())_0x32786c['is']('element','suggestion-td')&&_0x1ef3b6['push'](_0x32786c);_0x41e3d1['change'](_0xb6ca8b=>{for(const _0x2de1b5 of _0x1ef3b6)_0xb6ca8b['move'](_0xb6ca8b['createRangeIn'](_0x2de1b5),_0xb6ca8b['createPositionBefore'](_0x2de1b5)),_0xb6ca8b['remove'](_0x2de1b5);});});}}function Oe(_0x47ece2){if(_0x47ece2['isEmpty'])return!0x0;const _0x36d5bc=_0x47ece2['getChild'](0x0);return _0x36d5bc['is']('element','paragraph')&&_0x36d5bc['isEmpty'];}function Ue(_0x1eceac,_0xf2ebc2={},_0x557111){for(const {isAnchor:_0xc02bd5,cellHeight:_0x220130,cellWidth:_0x4e56aa}of _0x557111['createTableWalker'](_0x1eceac,{'includeAllSlots':!0x0,..._0xf2ebc2}))if(!_0xc02bd5||0x1!=_0x220130||0x1!=_0x4e56aa)return!0x1;return!0x0;}class Dt extends _0x27318c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x54eef5=this['editor']['plugins']['get']('TrackChangesEditing');_0x54eef5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x54eef5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x54eef5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54eef5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x54eef5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x54eef5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1cb80b,_0x295978){const _0x4d7b2d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10613d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x589c5e=_0x295978['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x37030f=_0x10613d['getColumnGroupElement'](_0x589c5e);let _0x3b6cd5=_0x37030f?_0x10613d['getTableColumnsWidths'](_0x37030f):null,_0x2403a8=_0x589c5e['getAttribute']('tableWidth')||null;const _0x63c3e9=_0x295978['tableWidth']||_0x2403a8,_0x53cc6c=_0x295978['columnWidths']||_0x3b6cd5,_0x1f915d=this['editor']['plugins']['get']('Users')['me'];for(const _0x185ff2 of _0x4d7b2d['getSuggestions']()){const _0x1891e0=_0x185ff2['getContainedElement']();if('resizeTable'===_0x185ff2['subType']&&_0x1891e0===_0x589c5e){_0x185ff2['author']!==_0x1f915d&&_0x185ff2['discard']();const _0xbab455=_0x185ff2['data']['commandParams'];_0x2403a8=_0xbab455[0x0]['tableWidth'],_0x3b6cd5=_0xbab455[0x0]['columnWidths'];break;}}_0x1cb80b({'table':_0x589c5e,'tableWidth':_0x63c3e9,'columnWidths':_0x53cc6c}),_0x4d7b2d['markBlockFormat'](_0x589c5e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2403a8,'columnWidths':_0x3b6cd5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2129f5){if('formatBlock'!=_0x2129f5['type']&&'formatInline'!=_0x2129f5['type'])return;const {data:_0x27a562}=_0x2129f5;if(_0x27a562&&'resizeTable'===_0x27a562['formatGroupId']){const _0x5012ad='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5012ad)};}}}class Mt extends _0x27318c{['afterInit'](){const _0x205f44=this['editor'];_0x205f44['plugins']['has']('Template')&&_0x205f44['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x27318c{['afterInit'](){const _0x53f1ce=this['editor'];if(!_0x53f1ce['commands']['get']('insertTableOfContents'))return;_0x53f1ce['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2abefd=_0x53f1ce['plugins']['get']('TrackChangesEditing'),_0x1480c4=_0x53f1ce['locale'];_0x2abefd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x14d2dc=>o(_0x1480c4,'ELEMENT_TABLE_OF_CONTENTS',_0x14d2dc));}}class Bt extends _0x27318c{['afterInit'](){const _0x18734c=this['editor'];if(!_0x18734c['plugins']['has']('Title'))return;const _0xe2fd27=_0x18734c['plugins']['get']('TrackChangesEditing');_0xe2fd27['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x18734c['locale'],'ELEMENT_TITLE')),_0x18734c['model']['document']['registerPostFixer'](_0x51f228=>{let _0x99f991=!0x1;const _0x2f6714=Array['from'](_0x18734c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x657fc0,data:_0x209d50}of _0x2f6714){const {group:_0x8a21b2}=_0xe2fd27['_splitMarkerName'](_0x657fc0);if('suggestion'!==_0x8a21b2||!_0x209d50['newRange'])continue;const _0x57172c=_0x209d50['newRange'],_0x3e7e6f=_0x57172c['end']['nodeBefore'];if(!_0x3e7e6f||!_0x3e7e6f['is']('element','title-content'))continue;if(!_0x57172c['start']['isTouching'](_0x57172c['end']))continue;const _0x2c4d8c=_0x18734c['model']['schema']['getNearestSelectionRange'](_0x57172c['end'],'forward');if(_0x2c4d8c&&_0x2c4d8c['isCollapsed']){const _0x3f57b2=_0x51f228['createRange'](_0x57172c['start'],_0x2c4d8c['start']);_0x3f57b2['isEqual'](_0x57172c)||(_0x51f228['updateMarker'](_0x657fc0,{'range':_0x3f57b2}),_0x99f991=!0x0);}_0x99f991||(_0x51f228['removeMarker'](_0x657fc0),_0x99f991=!0x0);}return _0x99f991;});}}class Ot extends _0x27318c{['afterInit'](){const _0x15f576=this['editor'],_0x406336=_0x15f576['plugins']['get']('TrackChangesEditing');_0x15f576['plugins']['has']('Uploadcare')&&(_0x406336['enableCommand']('uploadcare'),_0x15f576['plugins']['has']('UploadcareImageEdit')&&(_0x406336['enableCommand']('uploadcareImageEdit'),_0x406336['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x406336['registerBlockAttribute']('uploadcareImageId'),_0x406336['descriptionFactory']['registerDescriptionCallback'](_0x51ebec=>{if('attribute'!=_0x51ebec['type'])return;const {data:_0x32016e}=_0x51ebec;return _0x32016e&&'uploadcareImageId'==_0x32016e['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x27318c{['afterInit'](){const _0x3095b1=this['editor'],_0x208d79=_0x3095b1['plugins']['get']('TrackChangesEditing');_0x3095b1['plugins']['has']('UndoEditing')&&(_0x208d79['enableCommand']('undo'),_0x208d79['enableCommand']('redo'));}}class Tt extends _0x27318c{static get['requires'](){return[vt];}['afterInit'](){const _0x2ae507=this['editor'];if(!_0x2ae507['plugins']['has']('TableCaptionEditing'))return;_0x2ae507['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x27318c{['tableProperties'];['tableCellProperties'];constructor(_0x786b1){super(_0x786b1),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x48f5b0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x245d85 of this['tableProperties'])_0x48f5b0['enableCommand'](_0x245d85,(_0x52bbd4,_0x3838c8)=>{const _0x237bf2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x245d85,[_0x237bf2],this['tableProperties'],'tableProperties',_0x52bbd4,_0x3838c8);});_0x48f5b0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x48f5b0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48f5b0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x39f312,_0x59d20a)=>this['handleDiscardAction'](this['tableProperties'],_0x39f312,_0x59d20a)),_0x48f5b0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1da987 of this['tableCellProperties'])_0x48f5b0['enableCommand'](_0x1da987,(_0x2d76f0,_0xfad58d)=>{const _0x34d46a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1da987,_0x34d46a,this['tableCellProperties'],'tableCellProperties',_0x2d76f0,_0xfad58d);});_0x48f5b0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x48f5b0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48f5b0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x33e766,_0xa7b6a4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x33e766,_0xa7b6a4)),_0x48f5b0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x48f5b0['descriptionFactory']['registerDescriptionCallback'](_0x447c4c=>this['handleSuggestionDescription'](_0x447c4c));}['_handlePropertyChange'](_0x3118a5,_0x357b91,_0x129890,_0x15ed2e,_0x7f60b3,_0x5aa33f){const _0x1a742c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5aa33f['batch'],()=>{for(const _0x2219a0 of _0x357b91){if(this['_getSuggestion'](_0x2219a0,_0x15ed2e))_0x7f60b3(_0x5aa33f);else{const _0x1ccebd={};for(const _0x33f437 of _0x129890){const _0x55d739=_0x2219a0['getAttribute'](_0x33f437);void 0x0!==_0x55d739&&(_0x1ccebd[_0x33f437]=_0x55d739);}_0x7f60b3(_0x5aa33f),_0x1a742c['markBlockFormat'](_0x2219a0,{'commandParams':[_0x1ccebd]},[],_0x15ed2e);}}});}['handleDiscardAction'](_0x4959f5,_0x145a19,_0x349fd8){const _0xaf919a=_0x145a19[0x0]['start']['nodeAfter'],_0x43c5f4=_0x349fd8['commandParams'][0x0];this['editor']['model']['change'](_0x2cd5d7=>{for(const _0x4f2409 of _0x4959f5)void 0x0!==_0x43c5f4[_0x4f2409]?_0x2cd5d7['setAttribute'](_0x4f2409,_0x43c5f4[_0x4f2409],_0xaf919a):_0x2cd5d7['removeAttribute'](_0x4f2409,_0xaf919a);});}['handleSuggestionDescription'](_0x4d8f2a){if(_0x4d8f2a['data'])switch(_0x4d8f2a['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'](_0x2ae440,_0x3cdeb1){const _0x6448d5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x38a968 of _0x6448d5['getSuggestions']({'skipNotAttached':!0x0})){const _0x47141f=_0x38a968['getContainedElement']();if(_0x38a968['subType']===_0x3cdeb1&&_0x47141f===_0x2ae440)return _0x38a968;}return null;}}const m='$elementName';class p extends _0x27318c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x53f0ce,_0x53f58f,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1239f2){super(_0x1239f2),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5e204e,_0x14f482,_0x40c372,_0x1e7781)=>{this['_model']['change'](()=>{for(const _0x1852e9 of[..._0x1e7781,..._0x40c372])this['_model']['markers']['has'](_0x1852e9)&&_0x1239f2['editing']['reconvertMarker'](_0x1852e9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1239f2['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(),_0x1239f2['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1239f2['config']['get']('trackChanges.trackFormatChanges'),_0x1239f2['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1239f2['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1239f2,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x522eb2=this['editor'],_0x142baa=(_0x5c3eba,_0x447b08)=>{if('attribute'!=_0x5c3eba)return'ck-suggestion-marker-'+_0x5c3eba;const _0x1b5e0d=_0x447b08['split']('|')[0x0];return this['_isBlockAttribute'](_0x1b5e0d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x522eb2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4865a2=>{const {id:_0x4d8922,authorId:_0x2c150f,type:_0x4b9446,subType:_0x3aa94c}=this['_splitMarkerName'](_0x4865a2['markerName']),_0x2f6b38=['ck-suggestion-marker',_0x142baa(_0x4b9446,_0x3aa94c)];let _0x5e0e01=0xbb8;return this['activeMarkers']['includes'](_0x4865a2['markerName'])&&(_0x2f6b38['push']('ck-suggestion-marker--active'),_0x5e0e01=0xbc2),'deletion'==_0x4b9446&&(_0x5e0e01+=0x5),{'classes':_0x2f6b38,'attributes':{'data-suggestion':_0x4d8922,'data-author-id':_0x2c150f},'priority':_0x5e0e01};}}),_0x522eb2['conversion']['for']('dataDowncast')['add'](_0x233f3b=>{_0x233f3b['on']('addMarker:suggestion',(_0x58d8b1,_0x491b07,_0x196958)=>{if(!_0x196958['options']['showSuggestionHighlights'])return;const _0xf23878=_0x491b07['item'];if(!_0xf23878)return;const _0x50bc0a=_0x196958['mapper']['toViewElement'](_0xf23878);_0x522eb2['model']['schema']['isObject'](_0xf23878)&&_0x50bc0a&&!_0x50bc0a['getCustomProperty']('widget')&&_0x50bc0a['is']('containerElement')&&_0x529a06(_0x50bc0a,_0x196958['writer']);},{'priority':'high'});}),_0x522eb2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x27a143,_0x4bf2ed)=>{if(!_0x4bf2ed['options']['showSuggestionHighlights'])return null;const {type:_0x448d6d,subType:_0xcd7856}=this['_splitMarkerName'](_0x27a143['markerName']);return{'classes':['ck-suggestion-marker',_0x142baa(_0x448d6d,_0xcd7856)],'priority':0xbb8};}});const _0x1c64ee=({showActiveMarkers:_0x5d86cc=!0x0,isAttributeSuggestion:_0x425f1d=!0x1}={})=>(_0x2c675a,_0x29eb3f,_0x19da06)=>{if(!_0x29eb3f['item'])return;const {id:_0x293388,authorId:_0x25a4b5}=this['_splitMarkerName'](_0x29eb3f['markerName']);if(_0x425f1d){const _0x14d231=this['_suggestions']['get'](_0x293388),_0x37f75f=this['_getAttributeKey'](_0x14d231);if(!this['_isBlockAttribute'](_0x37f75f))return;}if(_0x29eb3f['item']['is']('selection'))return void _0x19da06['consumable']['consume'](_0x29eb3f['item'],_0x2c675a['name']);const _0x1e44de=_0x19da06['mapper']['toViewElement'](_0x29eb3f['item']);if(_0x29eb3f['item']['is']('element')&&_0x522eb2['model']['schema']['isBlock'](_0x29eb3f['item'])&&!_0x1e44de['getCustomProperty']('addHighlight')){_0x19da06['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1e44de),_0x19da06['writer']['setAttribute']('data-suggestion',_0x293388,_0x1e44de),_0x19da06['writer']['setAttribute']('data-author-id',_0x25a4b5,_0x1e44de),_0x19da06['mapper']['bindElementToMarker'](_0x1e44de,_0x29eb3f['markerName']),_0x5d86cc&&(this['activeMarkers']['includes'](_0x29eb3f['markerName'])?_0x19da06['writer']['addClass']('ck-suggestion-marker--active',_0x1e44de):_0x19da06['writer']['removeClass']('ck-suggestion-marker--active',_0x1e44de));for(const _0x55dbc8 of _0x522eb2['model']['createRangeIn'](_0x29eb3f['item'])['getItems']())_0x19da06['consumable']['consume'](_0x55dbc8,_0x2c675a['name']);_0x19da06['consumable']['consume'](_0x29eb3f['item'],_0x2c675a['name']);}};_0x522eb2['conversion']['for']('dataDowncast')['add'](_0x3728ea=>{_0x3728ea['on']('addMarker:suggestion:formatBlock',(_0x274965,_0x3ee9fd,_0x41fb9a)=>{_0x41fb9a['options']['showSuggestionHighlights']&&_0x1c64ee({'showActiveMarkers':!0x1})(_0x274965,_0x3ee9fd,_0x41fb9a);},{'priority':'highest'});}),_0x522eb2['conversion']['for']('dataDowncast')['add'](_0x21636a=>{_0x21636a['on']('addMarker:suggestion:attribute',(_0x915868,_0x3f3b79,_0x517341)=>{_0x517341['options']['showSuggestionHighlights']&&_0x1c64ee({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x915868,_0x3f3b79,_0x517341);},{'priority':'highest'});}),_0x522eb2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5e28dd,_0xe9c3b8)=>_0xe9c3b8['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5e28dd['substr'](0xb)}}),_0x522eb2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3548ff,{writer:_0x424419})=>{let _0x1bfb08='suggestion:'+_0x3548ff['getAttribute']('suggestion-type')+':'+_0x3548ff['getAttribute']('id');return _0x3548ff['getAttribute']('marker-count')&&(_0x1bfb08+=':'+_0x3548ff['getAttribute']('marker-count')),_0x424419['createElement']('$marker',{'data-name':_0x1bfb08});}}),_0x522eb2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x522eb2['conversion']['for']('editingDowncast')['add'](_0x2fdfcd=>{_0x2fdfcd['on']('addMarker:suggestion:formatBlock',_0x1c64ee(),{'priority':'high'});}),_0x522eb2['conversion']['for']('editingDowncast')['add'](_0x123101=>{_0x123101['on']('addMarker:suggestion:attribute',_0x1c64ee({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x522eb2['conversion']['for']('editingDowncast')['add'](_0x2aa362=>{_0x2aa362['on']('removeMarker:suggestion:formatBlock',(_0x3240e1,_0x313efb,_0x3c38af)=>{const _0x435684=_0x3c38af['mapper']['markerNameToElements'](_0x313efb['markerName']);if(_0x435684){for(const _0xa1fdd5 of _0x435684)_0xa1fdd5['getCustomProperty']('addHighlight')||(_0x3c38af['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xa1fdd5),_0x3c38af['writer']['removeAttribute']('data-suggestion',_0xa1fdd5),_0x3c38af['writer']['removeAttribute']('data-author-id',_0xa1fdd5),_0x3c38af['mapper']['unbindElementFromMarkerName'](_0xa1fdd5,_0x313efb['markerName']));}},{'priority':'high'});}),_0x522eb2['conversion']['for']('editingDowncast')['add'](_0x52961e=>{_0x52961e['on']('removeMarker:suggestion:attribute',(_0x41347b,_0x46b142,_0x877344)=>{const _0x3159fd=_0x877344['mapper']['markerNameToElements'](_0x46b142['markerName']);if(!_0x3159fd)return;const {id:_0x21a93f}=this['_splitMarkerName'](_0x46b142['markerName']),_0x159215=this['_suggestions']['get'](_0x21a93f),_0x47eca0=this['_getAttributeKey'](_0x159215);if(this['_isBlockAttribute'](_0x47eca0)){for(const _0x31faf7 of _0x3159fd)_0x31faf7['getCustomProperty']('addHighlight')||(_0x877344['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x31faf7),_0x877344['writer']['removeAttribute']('data-suggestion',_0x31faf7),_0x877344['writer']['removeAttribute']('data-author-id',_0x31faf7),_0x877344['mapper']['unbindElementFromMarkerName'](_0x31faf7,_0x46b142['markerName']));}},{'priority':'high'});}),_0x522eb2['model']['document']['registerPostFixer'](_0x477765=>{let _0x4a5121=!0x1;const _0x146fce=Array['from'](_0x522eb2['model']['document']['differ']['getChangedMarkers']()),_0x21e94c=new Set();for(const {name:_0x1445ee,data:_0xd79443}of _0x146fce){const {group:_0x39f97f,type:_0x52c81d,subType:_0x149f17,id:_0x2ab406}=this['_splitMarkerName'](_0x1445ee);if('suggestion'!==_0x39f97f)continue;const _0x27bc74=this['_suggestions']['get'](_0x2ab406);if(null!=_0xd79443['newRange']){'formatInline'==_0x52c81d&&(_0x4a5121=_0x4a5121||Gt(_0xd79443['newRange'],_0x1445ee,_0x477765,_0x522eb2['model']['schema']));const _0x2fe699='attribute'==_0x52c81d&&this['_isBlockAttribute'](_0x149f17['split']('|')[0x0]);if(_0xd79443['newRange']['isCollapsed']||'$graveyard'==_0xd79443['newRange']['root']['rootName']||'formatBlock'==_0x52c81d&&!Lt(_0xd79443['newRange'])||_0x2fe699&&!Lt(_0xd79443['newRange'])||'deletion'==_0x52c81d&&!(!Pt(_0x30a644=_0xd79443['newRange'])&&!function(_0x31a4c8){return _0x31a4c8['start']['parent']==_0x31a4c8['end']['nodeBefore']&&_0x31a4c8['start']['isAtEnd'];}(_0x30a644)))_0x477765['removeMarker'](_0x1445ee),_0x4a5121=!0x0;else{if(!_0x27bc74||!_0x27bc74['isInContent'])continue;if(_0xd79443['newRange']&&_0xd79443['oldRange']&&_0xd79443['newRange']['isEqual'](_0xd79443['oldRange']))continue;_0x21e94c['add'](_0x27bc74);}}}var _0x30a644;return _0x21e94c['size']>0x0&&(_0x4a5121=!!this['_joinWithAdjacentSuggestions'](_0x21e94c)||_0x4a5121),_0x4a5121;}),_0x522eb2['model']['document']['registerPostFixer'](_0x210c95=>{let _0x262f91=!0x1;for(const _0x3428e8 of _0x522eb2['model']['document']['differ']['getChanges']())if('insert'==_0x3428e8['type'])for(const _0x2c5332 of this['_suggestions']['values']()){if(_0x2c5332['isMultiRange']||!_0x2c5332['isInContent'])continue;const _0x5c04ac='formatBlock'==_0x2c5332['type'],_0x298890=this['_getAttributeKey'](_0x2c5332),_0x6dfe29=_0x298890&&this['_isBlockAttribute'](_0x298890);if(!_0x5c04ac&&!_0x6dfe29)continue;const _0x1066cd=_0x2c5332['getFirstRange']();if(_0x1066cd['start']['parent']!=_0x1066cd['end']['parent']&&!_0x1066cd['end']['isAtEnd']){const _0x551a56=_0x522eb2['model']['createPositionAt'](_0x1066cd['start']['nodeAfter'],'end'),_0x1e7c1c=_0x522eb2['model']['createRange'](_0x1066cd['start'],_0x551a56);_0x210c95['updateMarker'](_0x2c5332['getFirstMarker'](),{'range':_0x1e7c1c}),_0x262f91=!0x0;}}return _0x262f91;}),_0x522eb2['model']['document']['registerPostFixer'](_0x2ef933=>this['_processAttributeChanges'](_0x2ef933)),_0x522eb2['model']['document']['registerPostFixer'](_0x2fb254=>!_0x2fb254['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2fb254)),_0x522eb2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x522eb2['model']['document']['on']('change:data',(_0x452313,_0x27648b)=>{if(!_0x27648b['isLocal']||_0x27648b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x499e37=_0x522eb2['model']['document']['differ']['getChanges']();if(0x0==_0x499e37['length'])return;const _0x2d694e=[],_0x16a60c=_0x499e37['filter'](_0x3380a3=>'attribute'==_0x3380a3['type']),_0x3cdc8e=_0x499e37['filter'](_0x4bed6b=>'insert'==_0x4bed6b['type']&&'$text'!=_0x4bed6b['name']);for(const _0x539c70 of _0x16a60c)this['_isRegisteredAttribute'](_0x539c70['attributeKey'])&&_0x2d694e['push']({'key':_0x539c70['attributeKey'],'newValue':_0x539c70['attributeNewValue'],'oldValue':_0x539c70['attributeOldValue'],'range':Jt(_0x539c70['range'],_0x522eb2['model'])});for(const _0x2f8850 of _0x3cdc8e){if('rename'!=_0x2f8850['action']&&'refresh'!=_0x2f8850['action'])continue;const _0x23ad6e=Ht(_0x2f8850['position']['nodeAfter'],_0x522eb2['model']),_0x141d26=_0x2f8850['before'];'rename'==_0x2f8850['action']&&_0x2d694e['push']({'key':m,'newValue':_0x2f8850['name'],'oldValue':_0x141d26['name'],'range':_0x23ad6e});for(const [_0x5b2498,_0x23cab2]of _0x141d26['attributes']){if(!this['_isRegisteredAttribute'](_0x5b2498))continue;const _0x218f99=_0x2f8850['attributes']['get'](_0x5b2498);_0x23cab2!==_0x218f99&&_0x2d694e['push']({'key':_0x5b2498,'newValue':_0x218f99,'oldValue':_0x23cab2,'range':_0x23ad6e});}for(const [_0x394ceb,_0x59ff82]of _0x2f8850['attributes'])this['_isRegisteredAttribute'](_0x394ceb)&&(_0x141d26['attributes']['has'](_0x394ceb)||_0x2d694e['push']({'key':_0x394ceb,'newValue':_0x59ff82,'oldValue':null,'range':_0x23ad6e}));}0x0!=_0x2d694e['length']&&_0x522eb2['model']['enqueueChange'](_0x27648b,_0x4aa4f4=>{const _0x593e59=_0x3330a4();for(const {range:_0x1f1011,key:_0x329c55,oldValue:_0x26e9a7,newValue:_0x2eabf9}of _0x2d694e)this['markAttributeChange'](_0x1f1011,_0x329c55,_0x26e9a7,_0x2eabf9,{'groupId':_0x593e59});this['_reduceExistingSuggestions'](_0x4aa4f4,_0x2d694e);});},{'priority':'lowest'}),_0x522eb2['model']['markers']['on']('update:suggestion',(_0x164e4e,_0x5c1fe9,_0x311593)=>{if(null==_0x311593){const {id:_0x482151}=this['_splitMarkerName'](_0x5c1fe9['name']),_0xf0793b=this['_suggestions']['get'](_0x482151);_0xf0793b&&_0xf0793b['addMarkerName'](_0x5c1fe9['name']);}}),_0x522eb2['model']['document']['on']('change:data',()=>{const _0x5c9816=Array['from'](_0x522eb2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3e15b2=>'suggestion'===this['_splitMarkerName'](_0x3e15b2['name'])['group']);if(0x0===_0x5c9816['length'])return;_0x5c9816['sort']((_0x5053f9,_0x3bb86d)=>{const _0x9c5c41=_0x5053f9['data']['oldRange'],_0x1f8d1f=_0x3bb86d['data']['oldRange'];return null===_0x9c5c41&&null===_0x1f8d1f?0x0:null===_0x9c5c41&&null!==_0x1f8d1f?-0x1:null!==_0x9c5c41&&null===_0x1f8d1f?0x1:_0x9c5c41['start']['isBefore'](_0x1f8d1f['start'])?-0x1:0x1;});const _0x3bdd36=new Set(),_0x275319=new Set();for(const {name:_0x1a2526,data:_0x336200}of _0x5c9816){const {id:_0x5da7ea}=this['_splitMarkerName'](_0x1a2526);if(null===_0x336200['oldRange']){const _0x2c1087=this['_handleNewSuggestionMarker'](_0x1a2526);_0x275319['add'](_0x2c1087);}else{const _0x2187b8=this['_suggestions']['get'](_0x5da7ea);null!==_0x336200['newRange']||_0x2187b8['isInContent']?(_0x3bdd36['add'](_0x2187b8['head']),_0x275319['add'](_0x2187b8)):this['_removeSuggestion'](_0x2187b8);}}_0x275319['size']>0x0&&this['_refreshSuggestionsChain'](_0x275319);for(const _0x4bbf1b of _0x3bdd36)this['fire']('suggestionChanged',_0x4bbf1b);}),_0x522eb2['model']['on']('applyOperation',(_0x47af17,_0x2cb08a)=>{const _0x2c0e1a=_0x2cb08a[0x0];if(!this['_suggestions']['size'])return;if(!_0x2c0e1a['isDocumentOperation'])return;if(_0x2c0e1a['batch']['isUndo']||!_0x2c0e1a['batch']['isLocal'])return;let _0x14d561,_0x300070;switch(_0x2c0e1a['type']){case'insert':_0x14d561=_0x522eb2['model']['createPositionAt'](_0x2c0e1a['position']),_0x300070=_0x14d561['getShiftedBy'](_0x2c0e1a['howMany']);break;case'split':_0x14d561=_0x522eb2['model']['createPositionAt'](_0x2c0e1a['splitPosition']),_0x300070=_0x522eb2['model']['createPositionAt'](_0x2c0e1a['moveTargetPosition']);break;case'move':_0x14d561=_0x522eb2['model']['createPositionAt'](_0x2c0e1a['targetPosition']),_0x300070=_0x14d561['getShiftedBy'](_0x2c0e1a['howMany']);break;default:return;}const _0x52feb5=_0x522eb2['model']['createRange'](_0x14d561,_0x300070);_0x522eb2['model']['change'](()=>{for(const {suggestion:_0x1f617c,meta:_0x1279c4}of this['_findSuggestions'](_0x52feb5)){if(_0x1f617c['isMultiRange'])continue;if('formatInline'==_0x1f617c['type'])continue;const _0x3ada99=this['_getAttributeKey'](_0x1f617c);if(_0x3ada99&&this['_isBlockAttribute'](_0x3ada99)&&'split'!=_0x2c0e1a['type'])continue;const _0x17a0b0=_0x1f617c['data']&&_0x1f617c['data']['multipleBlocks'];('formatBlock'!=_0x1f617c['type']||'split'==_0x2c0e1a['type']&&!_0x17a0b0)&&(_0x1279c4['containsRangeInObject']||'insertion'==_0x1f617c['type']&&_0x1279c4['isOwn']||_0x1f617c['getFirstRange']()['containsRange'](_0x52feb5)&&this['_breakSuggestionMarker'](_0x1f617c,_0x14d561,_0x300070));}});},{'priority':'lowest'}),_0x522eb2['model']['on']('deleteContent',(_0x20dc38,_0x1b42bd)=>{const _0x1b80c7=_0x1b42bd[0x0],_0x258cf0=_0x1b42bd[0x1];if(_0x258cf0&&_0x258cf0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1b80c7['isCollapsed'])return;const _0x568f81=_0x522eb2['model']['schema'],{start:_0x4ec51c,end:_0xe7ec0b}=_0x1b80c7['getFirstRange'](),_0x386107=_0x4ec51c['nodeAfter']&&_0x568f81['isLimit'](_0x4ec51c['nodeAfter'])?null:_0x568f81['getNearestSelectionRange'](_0x4ec51c,'forward'),_0x199309=_0xe7ec0b['nodeBefore']&&_0x568f81['isLimit'](_0xe7ec0b['nodeBefore'])?null:_0x568f81['getNearestSelectionRange'](_0xe7ec0b,'backward'),_0x21ef3b=_0x522eb2['model']['createRange'](_0x386107?_0x386107['start']:_0x4ec51c,_0x199309?_0x199309['end']:_0xe7ec0b);_0x522eb2['model']['change'](_0x22f459=>{this['markDeletion'](_0x21ef3b);const _0xa8f0aa=_0x522eb2['model']['schema']['getNearestSelectionRange'](_0x21ef3b['start']);_0x1b80c7['is']('documentSelection')?_0x22f459['setSelection'](_0xa8f0aa):_0x1b80c7['setTo'](_0xa8f0aa);}),_0x20dc38['stop']();},{'priority':_0x11b5a6['normal']+0xa}),_0x522eb2['model']['on']('insertContent',(_0x77fee9,_0x5caca4)=>{const _0xb910fe=_0x5caca4[_0x5caca4['length']-0x1];_0xb910fe&&_0xb910fe['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x522eb2['model']['change'](()=>{let _0x1fe0de=_0x522eb2['model']['insertContent'](_0x5caca4[0x0],_0x5caca4[0x1],_0x5caca4[0x2],{'forceDefaultExecution':!0x0});if(!_0x1fe0de)return;_0x77fee9['return']=_0x1fe0de['clone']();const _0xcc4414=_0x1fe0de['end']['nodeBefore'],_0x3ab257=_0x522eb2['model']['schema'];_0xcc4414&&_0x3ab257['isBlock'](_0xcc4414)&&!_0x3ab257['isObject'](_0xcc4414)&&(_0x1fe0de=_0x522eb2['model']['createRange'](_0x1fe0de['start'],_0x522eb2['model']['createPositionAt'](_0xcc4414,'end'))),this['markInsertion'](_0x1fe0de);}),_0x77fee9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2b9ffe=new O(_0x522eb2,this['_suggestions']);_0x522eb2['commands']['add']('acceptSuggestion',_0x2b9ffe),this['enableCommand']('acceptSuggestion');const _0xb11dcf=new R(_0x522eb2,this['_suggestions']);_0x522eb2['commands']['add']('discardSuggestion',_0xb11dcf),this['enableCommand']('discardSuggestion'),_0x522eb2['commands']['add']('acceptAllSuggestions',new x(_0x522eb2,_0x2b9ffe,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x522eb2['commands']['add']('discardAllSuggestions',new x(_0x522eb2,_0xb11dcf,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x522eb2['commands']['add']('acceptSelectedSuggestions',new E(_0x522eb2,_0x2b9ffe,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x522eb2['commands']['add']('discardSelectedSuggestions',new E(_0x522eb2,_0xb11dcf,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x213d09=_0x522eb2['plugins']['get']('CommentsRepository');this['listenTo'](_0x213d09,'addComment',(_0x37197e,{threadId:_0x24f532})=>{const _0x396dab=this['_suggestions']['get'](_0x24f532);_0x396dab&&_0x396dab['commentThread']&&0x1===_0x396dab['commentThread']['length']&&this['_updateSuggestionData'](_0x24f532,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x213d09,'removeComment',(_0x1d17c4,{threadId:_0x4cc5de})=>{const _0x4f72fb=this['_suggestions']['get'](_0x4cc5de);_0x4f72fb&&_0x4f72fb['commentThread']&&!_0x4f72fb['commentThread']['length']&&this['_updateSuggestionData'](_0x4cc5de,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x363d1f){const _0x586b13=_0x13f80e([0x70,0x44,0x69,0x72,0x71,0x6a,0x41,0x76,0x47,0x43,0x73,0x38,0x45,0x50,0x39,0x53,0x57,0x52,0x51,0x7a,0x35,0x49,0x66,0x56,0x62,0x6d,0x4d,0x61,0x4e,0x48,0x6b,0x78,0x42,0x79,0x6e,0x4a,0x4f,0x31,0x65,0x58,0x6c,0x5a,0x36,0x30,0x63,0x34,0x4c,0x55,0x37,0x75,0x77,0x46,0x67,0x4b,0x32,0x64,0x6f,0x54,0x33,0x68,0x59,0x74]),_0x44cea3=0x27a857e7,_0x3ad201=0x27af09bf^_0x44cea3,_0xf58298=window[_0x13f80e([0x44,0x61,0x74,0x65])][_0x13f80e([0x6e,0x6f,0x77])](),_0x433eae=_0x363d1f[_0x13f80e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x133c00=new window[(_0x13f80e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14a013=>{_0x433eae[_0x13f80e([0x6f,0x6e,0x63,0x65])](_0x13f80e([0x72,0x65,0x61,0x64,0x79]),_0x14a013);}),_0x15d848={[_0x13f80e([0x6b,0x74,0x79])]:_0x13f80e([0x45,0x43]),[_0x13f80e([0x75,0x73,0x65])]:_0x13f80e([0x73,0x69,0x67]),[_0x13f80e([0x63,0x72,0x76])]:_0x13f80e([0x50,0x2d,0x32,0x35,0x36]),[_0x13f80e([0x78])]:_0x13f80e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x13f80e([0x79])]:_0x13f80e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x13f80e([0x61,0x6c,0x67])]:_0x13f80e([0x45,0x53,0x32,0x35,0x36])},_0x57e160=_0x433eae[_0x13f80e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13f80e([0x67,0x65,0x74])](_0x13f80e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x524086(){let _0x16dfc3,_0x4c60e4=null,_0x4ae540=null;try{if(_0x57e160==_0x13f80e([0x47,0x50,0x4c]))return _0x13f80e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16dfc3=_0x1bc8e3(),!_0x16dfc3)return _0x13f80e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16dfc3[_0x13f80e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ae540=_0x3b7a10(_0x16dfc3[_0x13f80e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16dfc3[_0x13f80e([0x6a,0x74,0x69])])),await _0x5e645e()?_0x28449a()?_0x3c6de7()?_0x13f80e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x46bbcf()?(_0x16dfc3[_0x13f80e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13f80e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4c60e4=_0xaac2e1(_0x13f80e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16dfc3[_0x13f80e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13f80e([0x74,0x72,0x69,0x61,0x6c])&&(_0x4c60e4=_0xaac2e1(_0x13f80e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a18c2()):_0x13f80e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13f80e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13f80e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4b77e2){return _0x13f80e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c6de7(){const _0x530fca=[_0x13f80e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13f80e([0x74,0x72,0x69,0x61,0x6c])][_0x13f80e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16dfc3[_0x13f80e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf58298/0x3e8:0xe10*_0x3ad201;return _0x16dfc3[_0x13f80e([0x65,0x78,0x70])]<_0x530fca;}function _0x28449a(){const _0x37c654=_0x16dfc3[_0x13f80e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x37c654)return!0x1;if(_0x37c654[_0x13f80e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13f80e([0x2a])))return!0x0;if(_0x37c654[_0x13f80e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13f80e([0x54,0x43])))return!0x0;if(_0x37c654[_0x13f80e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13f80e([0x52,0x54,0x43]))){if(_0x21ca5c())return!0x0;if(_0x134490()||_0x7fd1bb())return!0x0;}return!0x1;}function _0x46bbcf(){const _0x3997d4=_0x16dfc3[_0x13f80e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3997d4||0x0==_0x3997d4[_0x13f80e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2634a0}=new URL(window[_0x13f80e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3997d4[_0x13f80e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2634a0))return!0x0;const _0x310dd2=_0x2634a0[_0x13f80e([0x73,0x70,0x6c,0x69,0x74])](_0x13f80e([0x2e]));return _0x3997d4[_0x13f80e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x141a2d=>_0x141a2d[_0x13f80e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13f80e([0x2a])))[_0x13f80e([0x6d,0x61,0x70])](_0x426c68=>_0x426c68[_0x13f80e([0x73,0x70,0x6c,0x69,0x74])](_0x13f80e([0x2e])))[_0x13f80e([0x73,0x6f,0x6d,0x65])](_0x3b0480=>_0x310dd2[_0x13f80e([0x65,0x76,0x65,0x72,0x79])]((_0x5ad9bf,_0x58aba8)=>_0x3b0480[_0x58aba8]===_0x5ad9bf||_0x3b0480[_0x58aba8]===_0x13f80e([0x2a])));}function _0x2a18c2(){return _0x4c60e4&&_0x4ae540?new window[(_0x13f80e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2abf8f,_0x41bf27)=>{_0x4c60e4[_0x13f80e([0x74,0x68,0x65,0x6e])](_0x2abf8f,_0x41bf27),_0x4ae540[_0x13f80e([0x74,0x68,0x65,0x6e])](_0x44515a=>{_0x44515a!=_0x13f80e([0x56,0x61,0x6c,0x69,0x64])&&_0x2abf8f(_0x44515a);},_0x41bf27);}):_0x4c60e4||_0x4ae540||_0x13f80e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b7a10(_0x173ab6,_0x37405a){return new window[(_0x13f80e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1eb098=>{if(_0x3b552d())return _0x1eb098(_0x13f80e([0x56,0x61,0x6c,0x69,0x64]));_0x5d0f34(),_0x433eae[_0x13f80e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13f80e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e65cd=!0x1;const _0x1931d=_0x3330a4();function _0x13d4f6(_0x5a9907){return!!_0x5a9907&&(typeof _0x5a9907===_0x13f80e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a9907===_0x13f80e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a9907[_0x13f80e([0x74,0x68,0x65,0x6e])]===_0x13f80e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a9907[_0x13f80e([0x63,0x61,0x74,0x63,0x68])]===_0x13f80e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf65668(_0x54a7b9){_0x2adab8(_0x54a7b9)[_0x13f80e([0x74,0x68,0x65,0x6e])](_0x20a83a=>{if(!_0x20a83a||_0x20a83a[_0x13f80e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13f80e([0x6f,0x6b]))return _0x13f80e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3b61b9(_0x2b0bf4(_0x1931d+_0x37405a))!=_0x20a83a[_0x13f80e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13f80e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13f80e([0x56,0x61,0x6c,0x69,0x64]);})[_0x13f80e([0x74,0x68,0x65,0x6e])](_0x424cb5=>(_0x2b4a45(),_0x424cb5),()=>{const _0x2bb8a4=_0x2e2a11();return null==_0x2bb8a4?(_0x2b4a45(),_0x13f80e([0x56,0x61,0x6c,0x69,0x64])):_0x13f80e(_0xf58298-_0x2bb8a4>(0x3a4d3e7^_0x44cea3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13f80e([0x74,0x68,0x65,0x6e])](_0x1eb098)[_0x13f80e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1eb098(_0x13f80e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27c5a4=0x279eb967^_0x44cea3;function _0x2b4a45(){const _0x428826=_0x13f80e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b61b9(_0x2b0bf4(_0x173ab6)),_0x39533d=_0x1b1da1(_0x3b61b9(window[_0x13f80e([0x4d,0x61,0x74,0x68])][_0x13f80e([0x63,0x65,0x69,0x6c])](_0xf58298/_0x27c5a4)));window[_0x13f80e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13f80e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x428826,_0x39533d);}function _0x2e2a11(){const _0x3d6dd4=_0x13f80e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b61b9(_0x2b0bf4(_0x173ab6)),_0x5e41fa=window[_0x13f80e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13f80e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d6dd4);return _0x5e41fa?window[_0x13f80e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b1da1(_0x5e41fa),0x10)*_0x27c5a4:null;}function _0x2adab8(_0x551778){return new window[(_0x13f80e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c7c29,_0x3a0471)=>{_0x551778[_0x13f80e([0x74,0x68,0x65,0x6e])](_0x1c7c29,_0x3a0471),window[_0x13f80e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a0471,0x27a98327^_0x44cea3);});}}_0x433eae[_0x13f80e([0x6f,0x6e])](_0x13f80e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc90522,_0x4dd8ed)=>{if(_0x4dd8ed[0x0]!=_0x173ab6)return _0x1eb098(_0x13f80e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4dd8ed[0x1]={..._0x4dd8ed[0x1],[_0x13f80e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1931d};},{[_0x13f80e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13f80e([0x68,0x69,0x67,0x68])}),_0x433eae[_0x13f80e([0x6f,0x6e])](_0x13f80e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5bde39=>{_0x13d4f6(_0x5bde39[_0x13f80e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e65cd=!0x0,_0xf65668(_0x5bde39[_0x13f80e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13f80e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13f80e([0x6c,0x6f,0x77])}),_0x133c00[_0x13f80e([0x74,0x68,0x65,0x6e])](()=>{_0x1e65cd||_0x1eb098(_0x13f80e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b552d(){return _0x433eae[_0x13f80e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13f80e([0x76,0x69,0x65,0x77])][_0x13f80e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13f80e([0x61,0x75,0x74,0x6f]);}function _0x5d0f34(){_0x433eae[_0x13f80e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13f80e([0x76,0x69,0x65,0x77])][_0x13f80e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13f80e([0x61,0x75,0x74,0x6f]);}}function _0xaac2e1(_0x3ef77a){const _0x374138=[new window[(_0x13f80e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56b3cc=>setTimeout(_0x56b3cc,0x27a1692b^_0x44cea3)),_0x133c00[_0x13f80e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13f80e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5983ce=>{let _0x52c88c=0x0;_0x433eae[_0x13f80e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13f80e([0x6f,0x6e])](_0x13f80e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf8cc45,_0x5df847)=>{_0x5df847[0x0][_0x13f80e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x52c88c++,_0x52c88c==(0x27a8561f^_0x44cea3)&&(_0x5983ce(),_0xf8cc45[_0x13f80e([0x6f,0x66,0x66])]());});}))];return window[_0x13f80e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13f80e([0x72,0x61,0x63,0x65])](_0x374138)[_0x13f80e([0x74,0x68,0x65,0x6e])](()=>_0x3ef77a);}async function _0x3fbaae(){await _0x133c00,_0x433eae[_0x13f80e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13f80e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c019b,_0x433eae[_0x13f80e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13f80e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c019b,_0x433eae[_0x13f80e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13f80e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21ca5c(){return _0x576e48(_0x13f80e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4811ca(_0x13f80e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x13f80e([0x73,0x74,0x61,0x74,0x65])]==_0x13f80e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x134490(){return _0x576e48(_0x13f80e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x7fd1bb(){return _0x576e48(_0x13f80e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x357195(_0x487f93){const _0x42638f=_0xe7a62b();_0x433eae[_0x42638f]=_0x13f80e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x487f93,_0x487f93!=_0x13f80e([0x56,0x61,0x6c,0x69,0x64])&&_0x3fbaae();}function _0xe7a62b(){const _0x43fce9=window[_0x13f80e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13f80e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13f80e([0x6e,0x6f,0x77])]())[_0x13f80e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13f80e([0x2e]),'');let _0x9bf50d=_0x13f80e([0x70]);for(let _0x12e91d=0x0;_0x12e91d<_0x43fce9[_0x13f80e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12e91d+=0x2){let _0x275410=window[_0x13f80e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43fce9[_0x13f80e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12e91d,_0x12e91d+0x2));_0x275410>=_0x586b13[_0x13f80e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x275410-=_0x586b13[_0x13f80e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x9bf50d+=_0x586b13[_0x275410];}return _0x9bf50d;}function _0x1bc8e3(){const _0xae8ca1=_0x57e160[_0x13f80e([0x73,0x70,0x6c,0x69,0x74])](_0x13f80e([0x2e]));if(0x3!=_0xae8ca1[_0x13f80e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xaf6e9e(_0xae8ca1[0x1]);function _0xaf6e9e(_0x3cd9f6){const _0x1f5167=_0x54406d(_0x3cd9f6);return _0x1f5167&&_0xd77769()?_0x1f5167:null;function _0xd77769(){const _0x459fa4=_0x1f5167[_0x13f80e([0x6a,0x74,0x69])],_0x4026b4=window[_0x13f80e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x459fa4[_0x13f80e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x459fa4[_0x13f80e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b896b={..._0x1f5167,[_0x13f80e([0x6a,0x74,0x69])]:_0x459fa4[_0x13f80e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x459fa4[_0x13f80e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b896b[_0x13f80e([0x76,0x63])],_0x2b0bf4(_0x2b896b)==_0x4026b4;}}}async function _0x5e645e(){let _0x2f8b24=!0x0;try{const _0x3f307a=_0x57e160[_0x13f80e([0x73,0x70,0x6c,0x69,0x74])](_0x13f80e([0x2e])),[_0x1f660a,_0x538e92,_0x5951cb]=_0x3f307a;return _0x241579(_0x1f660a),await _0x297614(_0x1f660a,_0x538e92,_0x5951cb),_0x2f8b24;}catch(_0x23d3de){return!0x1;}function _0x241579(_0x1e6989){const _0x1b472d=_0x54406d(_0x1e6989);_0x1b472d&&_0x1b472d[_0x13f80e([0x61,0x6c,0x67])]==_0x13f80e([0x45,0x53,0x32,0x35,0x36])||(_0x2f8b24=!0x1);}async function _0x297614(_0xcb42a,_0x3c39f7,_0x123f9a){const _0x996e44=window[_0x13f80e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13f80e([0x66,0x72,0x6f,0x6d])](_0x508824(_0x123f9a),_0x18f157=>_0x18f157[_0x13f80e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b133a=new window[(_0x13f80e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13f80e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xcb42a+_0x13f80e([0x2e])+_0x3c39f7),_0xca7ed0=window[_0x13f80e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13f80e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xca7ed0)return;const _0x32cdd6=await _0xca7ed0[_0x13f80e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13f80e([0x6a,0x77,0x6b]),_0x15d848,{[_0x13f80e([0x6e,0x61,0x6d,0x65])]:_0x13f80e([0x45,0x43,0x44,0x53,0x41]),[_0x13f80e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13f80e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13f80e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xca7ed0[_0x13f80e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13f80e([0x6e,0x61,0x6d,0x65])]:_0x13f80e([0x45,0x43,0x44,0x53,0x41]),[_0x13f80e([0x68,0x61,0x73,0x68])]:{[_0x13f80e([0x6e,0x61,0x6d,0x65])]:_0x13f80e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32cdd6,_0x996e44,_0x3b133a)||(_0x2f8b24=!0x1);}}function _0x54406d(_0x1c8256){return _0x1c8256[_0x13f80e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13f80e([0x65,0x79]))?JSON[_0x13f80e([0x70,0x61,0x72,0x73,0x65])](_0x508824(_0x1c8256)):null;}function _0x508824(_0x49cfc1){return window[_0x13f80e([0x61,0x74,0x6f,0x62])](_0x49cfc1[_0x13f80e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13f80e([0x2b]))[_0x13f80e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13f80e([0x2f])));}function _0x2b0bf4(_0x144e45){let _0x1b3a55=0x1505;function _0x1194c1(_0x5bffc9){for(let _0x4495d8=0x0;_0x4495d8<_0x5bffc9[_0x13f80e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4495d8++){const _0x4b5ea2=_0x5bffc9[_0x13f80e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4495d8);_0x1b3a55=(_0x1b3a55<<0x5)+_0x1b3a55+_0x4b5ea2,_0x1b3a55&=_0x1b3a55;}}function _0x33602d(_0x37bd26){Array[_0x13f80e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37bd26)?_0x37bd26[_0x13f80e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33602d):_0x37bd26&&typeof _0x37bd26==_0x13f80e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13f80e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37bd26)[_0x13f80e([0x73,0x6f,0x72,0x74])]()[_0x13f80e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b7764,_0x288a5c])=>{_0x1194c1(_0x2b7764),_0x33602d(_0x288a5c);}):_0x1194c1(window[_0x13f80e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37bd26));}return _0x33602d(_0x144e45),_0x1b3a55>>>0x0;}function _0x3b61b9(_0x282420){return _0x282420[_0x13f80e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13f80e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13f80e([0x30]));}function _0x1b1da1(_0x5c51eb){return _0x5c51eb[_0x13f80e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13f80e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13f80e([0x6a,0x6f,0x69,0x6e])]('');}function _0x576e48(_0x14f8ad){return _0x433eae[_0x13f80e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x13f80e([0x68,0x61,0x73])](_0x14f8ad);}function _0x4811ca(_0x27d502){return _0x433eae[_0x13f80e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x13f80e([0x67,0x65,0x74])](_0x27d502);}function _0x4c019b(){}function _0x13f80e(_0x53263c){return _0x53263c['map'](_0x4d0582=>String['fromCharCode'](_0x4d0582))['join']('');}_0x357195(await _0x524086());}(this);}set['adapter'](_0x5f1efd){if(this['_adapter'])throw new _0x59c745('track-changes-adapter-already-set',this);this['_adapter']=_0x5f1efd;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x557c62=!0x1,toJSON:_0x37089f=!0x1}={}){const _0x1788a6=[];for(const _0x1b8edf of this['_suggestions']['values']())_0x557c62&&!_0x1b8edf['isInContent']||_0x1788a6['push'](_0x1b8edf);return _0x37089f?_0x1788a6['map'](_0x4eac14=>_0x4eac14['toJSON']()):_0x1788a6;}['getSuggestion'](_0x2b13ab){const _0x46b92b=this['_suggestions']['get'](_0x2b13ab);if(!_0x46b92b)throw new _0x59c745('track-changes-suggestion-not-found',this);return _0x46b92b;}['hasSuggestion'](_0x17b2f7){return this['_suggestions']['has'](_0x17b2f7);}['addSuggestionData'](_0x2441fa){const {authorId:_0x2f17d5,id:_0x5d73d8,attributes:_0x51bd0d}=_0x2441fa,[_0x51c940,_0x4c4313]=_0x2441fa['type']['split'](':'),_0x5de3ee=this['_suggestions']['get'](_0x5d73d8)||this['_createSuggestion'](_0x51c940,_0x4c4313,_0x5d73d8,_0x2f17d5,_0x51bd0d);if(this['_addThreadToSuggestion'](_0x5de3ee),this['_checkSuggestionCorrectness'](_0x5de3ee,_0x51c940,_0x4c4313||null,_0x2f17d5),_0x5de3ee['createdAt']=_0x2441fa['createdAt'],_0x5de3ee['_isDataLoaded']=!0x0,_0x51bd0d&&_0x51bd0d['@external']){const _0x1f4b95=_0x51bd0d['@external'],_0x331e55=this['_getExternalAuthor'](_0x1f4b95['authorName']);_0x5de3ee['authoredAt']=_0x1f4b95['createdAt'],_0x5de3ee['author']=_0x331e55,_0x5de3ee['isExternal']=!0x0;}else _0x5de3ee['authoredAt']=_0x2441fa['createdAt'];switch(_0x2441fa['data']&&(_0x5de3ee['data']=_0x2441fa['data']),_0x2441fa['attributes']&&(_0x5de3ee['attributes']=_0x2441fa['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5de3ee['_saved']=!0x0),this['_suggestionState']['get'](_0x5de3ee)){case'notReady':this['_suggestionState']['set'](_0x5de3ee,'dataReady');break;case'markerReady':_0x5de3ee['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5de3ee])),this['_refreshSuggestionsChain'](new Set([_0x5de3ee])),this['_suggestionState']['set'](_0x5de3ee,'ready'),this['fire']('suggestionLoaded',_0x5de3ee)):this['_suggestionState']['set'](_0x5de3ee,'removed');}return _0x5de3ee;}['acceptSuggestion'](_0xfc7f32){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x23ab87 of _0xfc7f32['getAllAdjacentSuggestions']())_0x23ab87['accept']();});});}['discardSuggestion'](_0x196094){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x53e241 of _0x196094['getAllAdjacentSuggestions']())_0x53e241['discard']();});});}['enableCommand'](_0x3ae5cb,_0x2dbf50){const _0x52e6f5=this['editor']['commands']['get'](_0x3ae5cb);if(!_0x52e6f5)throw new _0x59c745('track-changes-command-not-found',this,{'commandName':_0x3ae5cb});if(this['_enabledCommands']['has'](_0x52e6f5))throw new _0x59c745('track-changes-enable-command-twice',this,{'commandName':_0x3ae5cb});this['_enabledCommands']['add'](_0x52e6f5),_0x2dbf50&&_0x52e6f5['on']('execute',(_0x251603,_0x38b140)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x38b140['length']>0x0&&_0x38b140[_0x38b140['length']-0x1]&&_0x38b140[_0x38b140['length']-0x1]['forceDefaultExecution']?_0x38b140['pop']():(_0x251603['return']=_0x2dbf50((..._0x3f9492)=>_0x52e6f5['execute'](..._0x3f9492,{'forceDefaultExecution':!0x0}),..._0x38b140),_0x251603['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1d226d){let _0x20c36e,_0x3c746b;const _0x22b277=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x20c36e=_0x1d226d();}catch(_0x57ef97){_0x3c746b=_0x57ef97;}return _0x22b277||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3c746b&&_0x59c745['rethrowUnexpectedError'](_0x3c746b,this),_0x20c36e;}['markInsertion'](_0x21ec53,_0x5416f6=null,_0x1ff084={}){if(_0x21ec53['isCollapsed'])return null;const _0x6c4eff=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x23e6f2,meta:_0x366f7e}of this['_findSuggestions'](_0x21ec53,'insertion'))if(_0x366f7e['isOwn']){if(!_0x366f7e['isNextTo']){if(_0x366f7e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x23e6f2,_0x1ff084))continue;return _0x23e6f2;}if(Kt(_0x23e6f2,_0x1ff084))return _0x23e6f2;this['_breakSuggestionMarker'](_0x23e6f2,_0x21ec53['start'],_0x21ec53['end']);break;}if(_0x5416f6==_0x23e6f2['subType']&&Kt(_0x23e6f2,_0x1ff084)){const _0x361b2b=_0x23e6f2['getFirstRange']();return _0x361b2b['start']['isEqual'](_0x21ec53['end'])?this['_setSuggestionRange'](_0x23e6f2,this['_model']['createRange'](_0x21ec53['start'],_0x361b2b['end'])):this['_setSuggestionRange'](_0x23e6f2,this['_model']['createRange'](_0x361b2b['start'],_0x21ec53['end'])),_0x23e6f2;}}const _0x33ee04=_0x3330a4(),_0x22474d=_0x6c4eff['id'],_0x45dbb0=_0x5416f6?'insertion:'+_0x5416f6:'insertion',_0x1f74d6=this['_setSuggestionData']({'id':_0x33ee04,'type':_0x45dbb0,'createdAt':new Date(),'authorId':_0x22474d,'attributes':_0x1ff084});return this['_addSuggestionMarker'](_0x45dbb0,_0x33ee04,_0x22474d,_0x21ec53),_0x1f74d6;}['markMultiRangeInsertion'](_0x17d5c0,_0x31c7a7='multi',_0x46c2d9={}){const _0x3f82dd=this['editor']['plugins']['get']('Users')['me'],_0x3bd352=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x31c7a7,'join');for(const _0x4da853 of this['getSuggestions']())if(_0x4da853['author']['id']==_0x3f82dd['id']&&'insertion'==_0x4da853['type']&&_0x4da853['subType']==_0x31c7a7&&Kt(_0x4da853,_0x46c2d9)&&(_0x3bd352(_0x4da853['getRanges'](),_0x17d5c0)||_0x3bd352(_0x17d5c0,_0x4da853['getRanges']()))){for(const _0x3d1988 of _0x17d5c0)_0x4da853['addRange'](_0x3d1988);return _0x4da853;}for(const {suggestion:_0x208d96,meta:_0x433cfb}of this['_findSuggestions'](_0x17d5c0,'insertion')){if(!_0x433cfb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x433cfb['containsRangeInObject'])continue;if(!Kt(_0x208d96,_0x46c2d9))continue;let _0x23d3be=!0x0;for(const _0x4a9c0e of _0x208d96['getRanges']())for(const _0x340cc0 of _0x17d5c0)if(!_0x4a9c0e['containsRange'](_0x340cc0)){_0x23d3be=!0x1;break;}if(_0x23d3be)return _0x208d96;}const _0x3ed87a=_0x3330a4(),_0x38da47=_0x3f82dd['id'],_0x13a595='insertion:'+_0x31c7a7,_0x792222=this['_setSuggestionData']({'id':_0x3ed87a,'type':_0x13a595,'createdAt':new Date(),'authorId':_0x38da47,'attributes':_0x46c2d9});for(const _0x3ba996 of _0x17d5c0)this['_addSuggestionMarker'](_0x13a595,_0x3ed87a,_0x38da47,_0x3ba996,u['getMultiRangeId']());return _0x792222;}['markInlineFormat'](_0x263742,_0x4bed75,_0x5a84c2=null,_0x3fb893={}){if(_0x5a84c2=_0x5a84c2||Ft(_0x4bed75),_0x263742['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xea7da4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5a84c2,'accept');return this['forceDefaultExecution'](()=>_0xea7da4([_0x263742],_0x4bed75,_0x3fb893)),null;}const _0x2b36a6=this['editor']['plugins']['get']('Users')['me'],_0x54b3d7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2a12e4,meta:_0x2d0c00}of this['_findSuggestions'](_0x263742,'insertion'))_0x2d0c00['isOwn']&&!_0x2d0c00['isInsideObject']&&_0x54b3d7['push'](..._0x2a12e4['getRanges']());}const _0x44e630=function(_0x567015,_0x108ce5){const _0x4ffd80=[];for(const _0x3d8c2f of _0x108ce5){const _0x2b8c9a=_0x567015['getIntersection'](_0x3d8c2f);_0x2b8c9a&&_0x4ffd80['push'](_0x2b8c9a);}return _0x4ffd80;}(_0x263742,_0x54b3d7),_0x2e85fb=function(_0x523984,_0x195626){const _0x352ec8=[_0x523984];for(const _0x3291dd of _0x195626){let _0x1a7283=0x0;for(;_0x1a7283<_0x352ec8['length'];){const _0x181d43=_0x352ec8[_0x1a7283]['getDifference'](_0x3291dd);_0x352ec8['splice'](_0x1a7283,0x1,..._0x181d43),_0x1a7283+=_0x181d43['length'];}}return _0x352ec8;}(_0x263742,_0x54b3d7);_0x44e630['length']&&this['_model']['change'](()=>{for(const _0x323f99 of _0x44e630){const _0x3ac73a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5a84c2,'accept');this['forceDefaultExecution'](()=>_0x3ac73a([_0x323f99],_0x4bed75,_0x3fb893));}});for(const _0x559b3a of _0x2e85fb){let _0x2e7af9=null,_0x233a2f=_0x559b3a['start'],_0x1ad1db=_0x559b3a['end'];for(const {suggestion:_0x6c9cb7,meta:_0x415541}of this['_findSuggestions'](_0x559b3a,'formatInline')){if(!_0x415541['isOwn'])continue;if(_0x6c9cb7['subType']!=_0x5a84c2)continue;if(!Kt(_0x6c9cb7,_0x3fb893))continue;const _0x1fe865=_0x6c9cb7['getFirstRange']();if(_0x1fe865['containsRange'](_0x559b3a,!0x0))return null;_0x233a2f=_0x233a2f['isBefore'](_0x1fe865['start'])?_0x233a2f:_0x1fe865['start'],_0x1ad1db=_0x1ad1db['isAfter'](_0x1fe865['end'])?_0x1ad1db:_0x1fe865['end'],_0x2e7af9?_0x1fe865['start']['isBefore'](_0x2e7af9['getFirstRange']()['start'])?(_0x2e7af9['removeMarkers'](),_0x2e7af9=_0x6c9cb7):_0x6c9cb7['removeMarkers']():_0x2e7af9=_0x6c9cb7;}const _0x4e2998=this['_model']['createRange'](_0x233a2f,_0x1ad1db);if(_0x2e7af9)this['_setSuggestionRange'](_0x2e7af9,_0x4e2998);else{const _0xb59166=_0x3330a4(),_0x296e78=_0x2b36a6['id'];this['_setSuggestionData']({'id':_0xb59166,'type':'formatInline:'+_0x5a84c2,'data':_0x4bed75,'createdAt':new Date(),'authorId':_0x296e78,'attributes':_0x3fb893}),this['_addSuggestionMarker']('formatInline:'+_0x5a84c2,_0xb59166,_0x296e78,_0x4e2998);}}return null;}['markBlockFormat'](_0xbf7c10,_0x3f3430,_0x479a39=[],_0x49f5e1=null,_0x1514ed={}){_0x3f3430['formatGroupId']||(_0x3f3430['formatGroupId']=_0x3f3430['commandName']),_0x3f3430['multipleBlocks']=_0xbf7c10['is']('range'),_0x49f5e1=_0x49f5e1||Ft(_0x3f3430);const _0x397a0d=_0x479a39['map'](_0x5a5075=>Ht(_0x5a5075,this['_model'])),_0x4870ab=_0xbf7c10['is']('range')?_0xbf7c10:Ht(_0xbf7c10,this['_model']);if('never'===this['_trackFormatChanges']){const _0x24d9a1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49f5e1,'accept');return this['forceDefaultExecution'](()=>_0x24d9a1([_0x4870ab],_0x3f3430,_0x1514ed)),null;}_0x397a0d['push'](_0x4870ab);let _0x12659b=!0x0;for(const _0x40e60f of _0x397a0d)if(!this['_rangeIsInLocalUserInsertion'](_0x40e60f)){_0x12659b=!0x1;break;}if(_0x12659b&&'always'!==this['_trackFormatChanges']){const _0xf9998b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49f5e1,'accept');return this['forceDefaultExecution'](()=>_0xf9998b([_0x4870ab],_0x3f3430,_0x1514ed)),null;}let _0x5a3a33=null,_0x48d1a1=_0x4870ab['start'],_0x48f58f=_0x4870ab['end'];for(const {suggestion:_0x5d5a3b,meta:_0x51fdd2}of this['_findSuggestions'](_0x4870ab,'formatBlock')){if(!_0x51fdd2['isOwn'])continue;if(_0x51fdd2['isNextTo']||_0x51fdd2['containsRangeInObject']||_0x51fdd2['isInsideObject'])continue;if(_0x5d5a3b['data']['formatGroupId']!=_0x3f3430['formatGroupId'])continue;if(!Kt(_0x5d5a3b,_0x1514ed))continue;const _0x54a038=_0x5d5a3b['getFirstRange']();if(_0x5d5a3b['subType']==_0x49f5e1){if(_0x54a038['containsRange'](_0x4870ab,!0x0))return null;_0x48d1a1=_0x48d1a1['isBefore'](_0x54a038['start'])?_0x48d1a1:_0x54a038['start'],_0x48f58f=_0x48f58f['isAfter'](_0x54a038['end'])?_0x48f58f:_0x54a038['end'],_0x5a3a33?_0x54a038['start']['isBefore'](_0x5a3a33['getFirstRange']()['start'])?(_0x5a3a33['removeMarkers'](),_0x5a3a33=_0x5d5a3b):_0x5d5a3b['removeMarkers']():_0x5a3a33=_0x5d5a3b;}else{const _0x3f0acd=_0x4870ab['getIntersection'](_0x54a038);this['_cutOutSuggestionMarker'](_0x5d5a3b,_0x3f0acd);}}const _0x151578=this['editor']['plugins']['get']('Users')['me'],_0x537a64=_0x3330a4(),_0x1f95f5=_0x151578['id'];if(_0x5a3a33)return this['_setSuggestionRange'](_0x5a3a33,this['_model']['createRange'](_0x48d1a1,_0x48f58f)),_0x5a3a33;{const _0x5ce1bb=this['_setSuggestionData']({'id':_0x537a64,'type':'formatBlock:'+_0x49f5e1,'data':_0x3f3430,'createdAt':new Date(),'authorId':_0x1f95f5,'attributes':_0x1514ed});return this['_addSuggestionMarker']('formatBlock:'+_0x49f5e1,_0x537a64,_0x1f95f5,this['_model']['createRange'](_0x48d1a1,_0x48f58f)),_0x5ce1bb;}}['markMultiRangeBlockFormat'](_0x4d60b3,_0x211d89,_0x1f9ae9=[],_0x524f3b=null,_0x223a03={}){_0x211d89['formatGroupId']||(_0x211d89['formatGroupId']=_0x211d89['commandName']);const _0x2782db=_0x4d60b3[0x0];_0x211d89['multipleBlocks']=_0x2782db['is']('range'),_0x524f3b=_0x524f3b||Ft(_0x211d89);const _0xbf1031=_0x1f9ae9['map'](_0x2e8e1b=>Ht(_0x2e8e1b,this['_model'])),_0x5ea97d=_0x2782db['is']('range')?_0x4d60b3:_0x4d60b3['map'](_0x2ce3dd=>Ht(_0x2ce3dd,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2e32eb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x524f3b,'accept');return this['forceDefaultExecution'](()=>_0x2e32eb(_0x5ea97d,_0x211d89,_0x223a03)),null;}_0xbf1031['push'](..._0x5ea97d);let _0x95e32f=!0x0;for(const _0x3fee07 of _0xbf1031)if(!this['_rangeIsInLocalUserInsertion'](_0x3fee07)){_0x95e32f=!0x1;break;}if(_0x95e32f&&'always'!==this['_trackFormatChanges']){const _0x550f4b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x524f3b,'accept');return this['forceDefaultExecution'](()=>_0x550f4b(_0x5ea97d,_0x211d89,_0x223a03)),null;}const _0xf54880=this['editor']['plugins']['get']('Users')['me'];for(const _0x4a7f1e of this['getSuggestions']()){if(_0x4a7f1e['author']['id']!=_0xf54880['id'])continue;if('formatBlock'!=_0x4a7f1e['type']||_0x4a7f1e['data']['formatGroupId']!=_0x211d89['formatGroupId'])continue;if(!Kt(_0x4a7f1e,_0x223a03))continue;const _0x36d3b9=_0x4a7f1e['subType']==_0x524f3b;for(let _0xb2b62b=0x0;_0xb2b62b<_0x5ea97d['length'];_0xb2b62b++){const _0x2186c9=_0x5ea97d[_0xb2b62b];for(const _0xc24e1e of _0x4a7f1e['getMarkers']()){const _0x4146e5=_0xc24e1e['getRange']();if(_0x2186c9['isEqual'](_0x4146e5)){_0x36d3b9?(_0x5ea97d['splice'](_0xb2b62b,0x1),_0xb2b62b--):_0x4a7f1e['removeMarker'](_0xc24e1e['name']);break;}}}}if(0x0==_0x5ea97d['length'])return null;const _0x2c0590=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x524f3b,'join');for(const _0x1aab17 of this['getSuggestions']())if(_0x1aab17['author']['id']==_0xf54880['id']&&'formatBlock'==_0x1aab17['type']&&_0x1aab17['data']['formatGroupId']==_0x211d89['formatGroupId']&&_0x1aab17['subType']==_0x524f3b&&Kt(_0x1aab17,_0x223a03)&&(_0x2c0590(_0x1aab17['getRanges'](),_0x5ea97d)||_0x2c0590(_0x5ea97d,_0x1aab17['getRanges']()))){for(const _0x419e0d of _0x5ea97d)_0x1aab17['addRange'](_0x419e0d);return _0x1aab17;}const _0x2488b6=_0x3330a4(),_0x4507ce=_0xf54880['id'],_0x8b43c4='formatBlock:'+_0x524f3b,_0xafef0b=this['_setSuggestionData']({'id':_0x2488b6,'type':_0x8b43c4,'data':_0x211d89,'createdAt':new Date(),'authorId':_0x4507ce,'attributes':_0x223a03});for(const _0x4bdb57 of _0x5ea97d)this['_addSuggestionMarker'](_0x8b43c4,_0x2488b6,_0x4507ce,_0x4bdb57,u['getMultiRangeId']());return _0xafef0b;}['markDeletion'](_0x181d3b,_0x414c1f=null,_0x7bf2a5={}){if(_0x181d3b['isCollapsed'])return null;const _0x15595b=this['editor']['plugins']['get']('Users')['me'],_0x22bc97=new _0x48c676(_0x181d3b['start'],_0x181d3b['end']);for(const {suggestion:_0x287735,meta:_0x1d7764}of this['_findSuggestions'](_0x22bc97,'insertion'))if(_0x1d7764['isOwn']&&!_0x1d7764['isNextTo']){if(_0x287735['isMultiRange']){const _0x4646a8=_0x287735['getRanges']()['filter'](_0x2920d1=>'$graveyard'!=_0x2920d1['root']['rootName']);_0x4646a8['every'](_0x36ca24=>_0x22bc97['containsRange'](_0x36ca24,!0x0))&&_0x287735['discard']();if(_0x4646a8['some'](_0x54b0b8=>_0x54b0b8['containsRange'](_0x22bc97,!0x0))){const _0x429a30=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x414c1f,'accept');return this['forceDefaultExecution'](()=>_0x429a30([_0x22bc97],null,_0x7bf2a5)),null;}}else{const _0x5aed40=_0x22bc97['getIntersection'](_0x287735['getFirstRange']());null!==_0x5aed40&&_0x287735['_onDiscard']([_0x5aed40],null,_0x7bf2a5);}}if(_0x22bc97['detach'](),_0x22bc97['isCollapsed']||'$graveyard'==_0x22bc97['root']['rootName'])return null;let _0x14e93c=null,_0xe759b0=_0x22bc97['start'],_0x4511dd=_0x22bc97['end'];const _0xc1115=this['_findSuggestions'](_0x22bc97,'deletion');for(const {suggestion:_0x433bb7,meta:_0xd0614e}of _0xc1115){const _0x5c37bd=this['_model']['createRange'](_0xe759b0,_0x4511dd);if(_0xd0614e['isOwn']&&(this['_mergeNestedSuggestions']||!_0xd0614e['containsRangeInObject']&&!_0xd0614e['isInsideObject'])){if(_0x433bb7['isMultiRange']){if(!Kt(_0x433bb7,_0x7bf2a5))continue;let _0x3a9e00=!0x0;for(const _0xc653ea of _0x433bb7['getRanges']()){if(_0xc653ea['containsRange'](_0x5c37bd,!0x0))return _0x433bb7;_0x5c37bd['containsRange'](_0xc653ea)||(_0x3a9e00=!0x1);}_0x3a9e00&&_0x433bb7['discard']();}else{const _0x418927=_0x433bb7['getFirstRange']();if(_0x418927['containsRange'](_0x5c37bd,!0x0))return _0x433bb7;if(!Kt(_0x433bb7,_0x7bf2a5)){_0x5c37bd['containsRange'](_0x418927)?_0x433bb7['removeMarkers']():_0x418927['containsPosition'](_0xe759b0)?_0xe759b0=_0x418927['end']:_0x418927['containsPosition'](_0x4511dd)&&(_0x4511dd=_0x418927['start']);continue;}_0xe759b0=_0xe759b0['isBefore'](_0x418927['start'])?_0xe759b0:_0x418927['start'],_0x4511dd=_0x4511dd['isAfter'](_0x418927['end'])?_0x4511dd:_0x418927['end'],_0x7bf2a5=Object['assign']({},_0x433bb7['attributes']),_0x14e93c?_0x418927['start']['isBefore'](_0x14e93c['getFirstRange']()['start'])?(_0x14e93c['removeMarkers'](),_0x14e93c=_0x433bb7):_0x433bb7['removeMarkers']():_0x14e93c=_0x433bb7;}}}if(_0x14e93c)return this['_setSuggestionRange'](_0x14e93c,this['_model']['createRange'](_0xe759b0,_0x4511dd)),_0x14e93c;{const _0x11005e=_0x3330a4(),_0x16cc93=this['_model']['createRange'](_0xe759b0,_0x4511dd),_0x17aaef=_0x15595b['id'],_0x2162d0=_0x414c1f?'deletion:'+_0x414c1f:'deletion',_0xf1d806=this['_setSuggestionData']({'id':_0x11005e,'type':_0x2162d0,'createdAt':new Date(),'authorId':_0x17aaef,'attributes':_0x7bf2a5});return this['_addSuggestionMarker'](_0x2162d0,_0x11005e,_0x17aaef,_0x16cc93),_0xf1d806;}}['markMultiRangeDeletion'](_0x5db89e,_0x3a3cbd='multi',_0x3071bb={}){const _0x28edb6=this['editor']['plugins']['get']('Users')['me'],_0x2de513=_0x5db89e['map'](_0x26f3c0=>new _0x48c676(_0x26f3c0['start'],_0x26f3c0['end'])),_0x464688=new Set();for(const {suggestion:_0x15f5ee,meta:_0x597035}of this['_findSuggestions'](_0x2de513,'insertion'))_0x597035['isOwn']&&!_0x597035['isNextTo']&&_0x464688['add'](_0x15f5ee);for(const _0x5b6643 of _0x464688)if(_0x5b6643['isMultiRange']){const _0x59455d=_0x5b6643['getRanges']();(!_0x5b6643['attributes']||!_0x5b6643['attributes']['skipNestingCheck'])&&(_0x59455d['every'](_0x24dfcb=>_0x2de513['some'](_0x1a682c=>_0x1a682c['containsRange'](_0x24dfcb,!0x0)))&&_0x5b6643['discard']());if(_0x2de513['every'](_0x345d72=>_0x59455d['some'](_0x5363ef=>_0x5363ef['containsRange'](_0x345d72,!0x0)))){const _0x28c715=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a3cbd,'accept');return this['forceDefaultExecution'](()=>_0x28c715(_0x5db89e,null,_0x3071bb)),null;}}else{const _0x3948e6=_0x5b6643['getFirstRange']();_0x2de513['some'](_0x45069f=>_0x45069f['containsRange'](_0x3948e6,!0x0))&&_0x5b6643['discard']();if(_0x2de513['every'](_0x547848=>_0x3948e6['containsRange'](_0x547848,!0x0))){const _0x426212=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a3cbd,'accept');return this['forceDefaultExecution'](()=>_0x426212(_0x2de513,null,_0x3071bb)),null;}}const _0xf84652=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a3cbd,'join');let _0x369b64=null;for(const _0x43c62a of this['getSuggestions']())if(_0x43c62a['author']['id']==_0x28edb6['id']&&_0x43c62a['isInContent']&&'deletion'==_0x43c62a['type']&&_0x43c62a['subType']==_0x3a3cbd&&Kt(_0x43c62a,_0x3071bb)&&(_0xf84652(_0x43c62a['getRanges'](),_0x2de513)||_0xf84652(_0x2de513,_0x43c62a['getRanges']()))){if(_0x369b64){if(_0x43c62a['commentThread']&&_0x43c62a['commentThread']['length'])continue;for(const _0x117f4f of _0x43c62a['getRanges']())_0x369b64['isIntersectingWithRange'](_0x117f4f)||_0x369b64['addRange'](_0x117f4f);_0x43c62a['removeMarkers']();}else{_0x369b64=_0x43c62a;for(const _0xb025b7 of _0x2de513)_0x43c62a['isIntersectingWithRange'](_0xb025b7)||_0x43c62a['addRange'](_0xb025b7);}}if(_0x369b64)return _0x369b64;_0x464688['clear']();for(const {suggestion:_0x3594f8,meta:_0x2d4b36}of this['_findSuggestions'](_0x2de513,'deletion'))_0x2d4b36['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2d4b36['containsRangeInObject']&&!_0x2d4b36['isInsideObject'])&&Kt(_0x3594f8,_0x3071bb)&&_0x464688['add'](_0x3594f8);for(const _0x3e1565 of _0x464688){const _0x39e83e=_0x3e1565['getRanges']();if(!_0x3071bb||!_0x3071bb['skipNestingCheck']){if(_0x2de513['every'](_0x274704=>_0x39e83e['some'](_0x424214=>_0x424214['containsRange'](_0x274704,!0x0))))return _0x3e1565;}(!_0x3e1565['attributes']||!_0x3e1565['attributes']['skipNestingCheck'])&&(_0x39e83e['every'](_0x39e84f=>_0x2de513['some'](_0x2e2035=>_0x2e2035['containsRange'](_0x39e84f,!0x0)))&&_0x3e1565['discard']());}const _0x188ce9=_0x3330a4(),_0x4a87f2=_0x28edb6['id'],_0x1c0378='deletion:'+_0x3a3cbd,_0xc4f35=this['_setSuggestionData']({'id':_0x188ce9,'type':_0x1c0378,'createdAt':new Date(),'authorId':_0x4a87f2,'attributes':_0x3071bb});for(const _0x52fec7 of _0x2de513)_0x52fec7['detach'](),_0x52fec7['isCollapsed']||'$graveyard'==_0x52fec7['root']['rootName']||this['_addSuggestionMarker'](_0x1c0378,_0x188ce9,_0x4a87f2,_0x52fec7,u['getMultiRangeId']());return _0xc4f35;}['markAttributeChange'](_0x2412cb,_0x2ff221,_0x1fd669,_0x51351c,_0x5dc1d9){if(_0x2412cb['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1e3925=this['editor']['plugins']['get']('Users')['me']['id'],_0x24a853=Array['from'](this['_suggestions']['values']())['filter'](_0x13cd31=>'attribute'==_0x13cd31['type']&&_0x13cd31['data']['key']==_0x2ff221&&_0x13cd31['isIntersectingWithRange'](_0x2412cb));if('default'===this['_trackFormatChanges']){const _0xc9733=this['_findSuggestions'](_0x2412cb,'insertion')['filter'](({meta:_0x561fea})=>_0x561fea['isOwn']&&!_0x561fea['isInsideObject']&&!_0x561fea['isNextTo'])['map'](({suggestion:_0x415dd4})=>_0x415dd4);_0x24a853['unshift'](..._0xc9733);}const _0x50d793=new Map([[_0x2412cb,_0x1fd669]]);for(const _0x375c4f of _0x24a853){const _0x383957='attribute'==_0x375c4f['type']?_0x375c4f['data']['oldValue']:void 0x0,_0xd58095=_0x375c4f['getFirstRange'](),_0x4a66ae=Array['from'](_0x50d793['keys']())['find'](_0x2f1f3d=>_0x2f1f3d['isIntersecting'](_0xd58095));if(!_0x4a66ae)continue;const _0x3041be=_0x4a66ae['getDifference'](_0xd58095);this['_isBlockAttribute'](_0x2ff221)&&'insertion'==_0x375c4f['type']&&0x0!=_0x3041be['length']||(_0x50d793['delete'](_0x4a66ae),_0x3041be['forEach'](_0x4f688d=>{_0x50d793['set'](_0x4f688d,_0x1fd669);}),'insertion'!=_0x375c4f['type']&&_0x383957!=_0x51351c&&_0x50d793['set'](_0x4a66ae['getIntersection'](_0xd58095),_0x383957));}const _0x3bf83d=[];for(const [_0x37c848,_0x3c316c]of _0x50d793){const _0x1971ba=_0x3330a4(),_0xd8282={'key':_0x2ff221,'oldValue':_0x3c316c,'newValue':_0x51351c};_0x2ff221['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':_0x2ff221});const _0x1e903f=('attribute:'+(_0x2ff221+'|'+Ft({'newValue':_0x51351c})))['substring'](0x0,0x3c),_0xd297f0=this['_setSuggestionData']({'id':_0x1971ba,'type':_0x1e903f,'data':_0xd8282,'createdAt':new Date(),'authorId':_0x1e3925,'attributes':_0x5dc1d9});_0x3bf83d['push'](_0xd297f0),this['_addSuggestionMarker'](_0x1e903f,_0x1971ba,_0x1e3925,_0x37c848);}return _0x3bf83d;}['enableDefaultAttributesIntegration'](_0x1d19d5){this['enableCommand'](_0x1d19d5,(_0xacff31,..._0x20b118)=>{this['_recordAttributeChanges'](()=>{_0xacff31(..._0x20b118);});});}['registerBlockAttribute'](_0x243782){this['_blockAttributeKeys']['add'](_0x243782);}['registerInlineAttribute'](_0x50be24){this['_inlineAttributeKeys']['add'](_0x50be24);}['_getAttributeKey'](_0x2500a8){return'attribute'==_0x2500a8['type']?_0x2500a8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4d4f6c,_0x15ef9f){const _0x259c3a=_0x4d4f6c['getFirstMarker']();this['_model']['change'](_0x303911=>{_0x303911['updateMarker'](_0x259c3a,{'range':_0x15ef9f});});}['_addThreadToSuggestion'](_0x3448fb){const _0x555d79=_0x3448fb['id'],_0x1b9998=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x555d79)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1b9998,'threadId':_0x555d79,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x412f72=this['_commentsRepository']['getCommentThread'](_0x555d79);_0x412f72['unbind']('isRemovable'),_0x412f72['isRemovable']=!0x1,_0x3448fb['commentThread']=_0x412f72;}['_checkSuggestionCorrectness'](_0x3de343,_0x2351b4,_0x4a6296,_0x1f573f){if(_0x3de343['type']!=_0x2351b4||_0x3de343['subType']!=_0x4a6296||_0x3de343['creator']['id']!=_0x1f573f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x59c745('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1a8490,_0x3a1467){const _0x124da5=_0x1a8490['getFirstRange']();if(_0x3a1467['isEqual'](_0x124da5))_0x1a8490['removeMarkers']();else{if(_0x124da5['containsRange'](_0x3a1467)){const _0x30e6a6=this['_model']['createPositionAt'](_0x3a1467['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a8490,this['_model']['createRange'](_0x124da5['start'],_0x30e6a6));const _0x5a6bb3=_0x3330a4(),_0x487643=_0x1a8490['creator']['id'],_0x21c8a0=_0x1a8490['type']+':'+_0x1a8490['subType'];this['_setSuggestionData']({'id':_0x5a6bb3,'type':_0x21c8a0,'createdAt':new Date(),'authorId':_0x487643,'data':_0x1a8490['data'],'attributes':_0x1a8490['attributes']});const _0x203ffd=this['_model']['createPositionAt'](_0x3a1467['end']['parent'],'after'),_0x1f4f70=this['_model']['createRange'](_0x203ffd,_0x124da5['end']);this['_addSuggestionMarker'](_0x21c8a0,_0x5a6bb3,_0x487643,_0x1f4f70);}else{if(_0x124da5['containsPosition'](_0x3a1467['start'])){const _0x4cc70b=this['_model']['createPositionAt'](_0x3a1467['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a8490,this['_model']['createRange'](_0x124da5['start'],_0x4cc70b));}else{const _0x3c3934=this['_model']['createPositionAt'](_0x3a1467['end']['parent'],'after');this['_setSuggestionRange'](_0x1a8490,this['_model']['createRange'](_0x3c3934,_0x124da5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5b4d68){for(const {suggestion:_0x474b28,meta:_0x48b6b6}of this['_findSuggestions'](_0x5b4d68,'insertion')){if(!_0x48b6b6['isOwn'])continue;const _0x360dc9=_0x474b28['getRanges']();for(const _0x337484 of _0x360dc9)if(!_0x5b4d68['getDifference'](_0x337484)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x573ecb){const _0x31bfb7=this['editor']['plugins']['get']('Users')['getUser'](_0x573ecb);if(!_0x31bfb7)throw new _0x59c745('track-changes-user-not-found',this);return _0x31bfb7;}['_getExternalAuthor'](_0x48265b){const _0x46c2ea=this['editor']['plugins']['get']('Users'),_0x3c7167=_0x135b17('external:'+_0x48265b),_0x1be657=_0x46c2ea['getUser'](_0x3c7167);return _0x1be657||_0x46c2ea['addUser']({'id':_0x3c7167,'name':_0x48265b});}['_createSuggestion'](_0x2c7ac5,_0x2f5816,_0x229129,_0xd14012,_0x455efd){const _0x4c3a36=this['_getAuthorFromId'](_0xd14012),_0x3c1f63=this['_suggestionFactory']['buildSuggestion'](_0x2c7ac5,_0x2f5816,_0x229129,_0x4c3a36,_0x455efd,_0x3779bc=>{this['_updateSuggestionData'](_0x229129,{'attributes':_0x3779bc});const _0x53340f=this['getSuggestion'](_0x229129);this['_joinWithAdjacentSuggestions'](new Set([_0x53340f])),this['_refreshSuggestionsChain'](new Set([_0x53340f]));});return this['listenTo'](_0x3c1f63,'accept',()=>{this['_updateSuggestionData'](_0x229129,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3c1f63,'discard',()=>{this['_updateSuggestionData'](_0x229129,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x229129,_0x3c1f63),this['_suggestionState']['set'](_0x3c1f63,'notReady'),_0x3c1f63;}['_splitMarkerName'](_0x1a2dfe){const _0xb2377a=_0x1a2dfe['split'](':');return{'group':_0xb2377a[0x0],'type':_0xb2377a[0x1],'subType':_0xb2377a['length']>=0x5?_0xb2377a[0x2]:null,'id':_0xb2377a['length']<0x5?_0xb2377a[0x2]:_0xb2377a[0x3],'authorId':_0xb2377a['length']<0x5?_0xb2377a[0x3]:_0xb2377a[0x4],'markerCount':0x6==_0xb2377a['length']?_0xb2377a[0x5]:null};}['_breakSuggestionMarker'](_0x327ac4,_0x36bfd6,_0x495f12){const _0x30e588=_0x327ac4['getFirstRange'](),_0x3d6def=_0x30e588['start'],_0x1d3d5f=_0x30e588['end'];this['_setSuggestionRange'](_0x327ac4,this['_model']['createRange'](_0x3d6def,_0x36bfd6));const _0x447e0f=_0x3330a4(),_0x302837=_0x327ac4['creator']['id'],_0x20c625=_0x327ac4['type']+(_0x327ac4['subType']?':'+_0x327ac4['subType']:'');this['_setSuggestionData']({'id':_0x447e0f,'type':_0x20c625,'createdAt':new Date(),'authorId':_0x302837,'originalSuggestionId':_0x327ac4['id'],'attributes':_0x327ac4['attributes'],'data':_0x327ac4['data']});const _0x4df213=this['_getAttributeKey'](_0x327ac4);('formatBlock'==_0x327ac4['type']||_0x4df213&&this['_isBlockAttribute'](_0x4df213))&&(_0x495f12=this['_model']['createPositionBefore'](_0x495f12['parent'])),this['_addSuggestionMarker'](_0x20c625,_0x447e0f,_0x302837,this['_model']['createRange'](_0x495f12,_0x1d3d5f));}['_findSuggestions'](_0x41931c,_0x2ecf02=null){const _0x18bcef=[],_0x499973=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x41931c)||(_0x41931c=[_0x41931c]);for(const _0x76ee63 of this['getSuggestions']()){if(!_0x76ee63['isInContent'])continue;if(_0x2ecf02&&_0x76ee63['type']!=_0x2ecf02)continue;let _0x40339e=!0x1;for(const _0x52d414 of _0x76ee63['getRanges']()){for(const _0x54f021 of _0x41931c){const _0x20cede=_0x54f021['start']['isEqual'](_0x52d414['end'])||_0x54f021['end']['isEqual'](_0x52d414['start']);if(_0x20cede||_0x54f021['getIntersection'](_0x52d414)){const _0x24401a=_0x54f021['containsRange'](_0x52d414)&&Vt(this['_model']['schema'],_0x52d414['start'],_0x54f021),_0x568dfd=_0x52d414['containsRange'](_0x54f021)&&Vt(this['_model']['schema'],_0x54f021['start'],_0x52d414);_0x18bcef['push']({'suggestion':_0x76ee63,'meta':{'isOwn':_0x499973==_0x76ee63['author'],'isNextTo':_0x20cede,'isInsideObject':_0x24401a,'containsRangeInObject':_0x568dfd}}),_0x40339e=!0x0;break;}}if(_0x40339e)break;}}return _0x18bcef;}['_addSuggestionMarker'](_0xe8fda2,_0x3820ea,_0xa9b492,_0x2d252e,_0x38c416){this['_model']['change'](_0x43298d=>{let _0x37c1c7='suggestion:'+_0xe8fda2+':'+_0x3820ea+':'+_0xa9b492;_0x38c416&&(_0x37c1c7=_0x37c1c7+':'+_0x38c416),_0x43298d['addMarker'](_0x37c1c7,{'range':_0x2d252e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x10aabd){const _0x1bff0c=_0x10aabd['previous'],_0x147413=_0x10aabd['next'];_0x10aabd['previous']=null,_0x10aabd['next']=null,null!=_0x1bff0c&&_0x1bff0c['next']==_0x10aabd&&(_0x1bff0c['next']=_0x147413),null!=_0x147413&&_0x147413['previous']==_0x10aabd&&(_0x147413['previous']=_0x1bff0c),'ready'==this['_suggestionState']['get'](_0x10aabd)&&(this['_suggestionState']['set'](_0x10aabd,'removed'),this['fire']('suggestionUnloaded',_0x10aabd,_0x1bff0c,_0x147413));}['_setSuggestionData'](_0x2c0505){const _0x3392e6=_0x2c0505['id'],_0x591c09=this['addSuggestionData'](_0x2c0505);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x8a2593=this['editor']['plugins']['get']('PendingActions'),_0x56d70c=_0x591c09['hasComments'],_0x1329dc=_0x591c09['subType']?_0x591c09['type']+':'+_0x591c09['subType']:_0x591c09['type'],_0x4fe9f1=this['editor']['locale'],_0x15de51=_0x8a2593['add'](o(_0x4fe9f1,'PENDING_ACTION_SUGGESTION')),_0x2cbc9c={'id':_0x3392e6,'type':_0x1329dc,'hasComments':_0x56d70c,'data':_0x2c0505['data']||null,'originalSuggestionId':_0x2c0505['originalSuggestionId']||null,'attributes':_0x591c09['attributes']};this['_adapter']['addSuggestion'](_0x2cbc9c)['then'](_0x3dc514=>{_0x591c09['_saved']=!0x0,_0x8a2593['remove'](_0x15de51),_0x3dc514&&_0x3dc514['createdAt']&&(this['_suggestions']['get'](_0x3392e6)['createdAt']=_0x3dc514['createdAt']);})['catch'](_0x1b36a1=>{throw _0x369c47('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x591c09['discard']();}),_0x591c09['stopListening'](),this['_suggestions']['delete'](_0x591c09['id']),this['_suggestionState']['delete'](_0x591c09),_0x1b36a1;});}return _0x591c09;}['_isBlockAttribute'](_0x1d451d){return this['_blockAttributeKeys']['has'](_0x1d451d);}['_updateSuggestionData'](_0xe52e6b,_0x2ead7c){const _0x361db2=this['editor']['plugins']['get']('PendingActions'),_0x1b37bf=this['getSuggestion'](_0xe52e6b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1b37bf['_saved']){const _0xe8af3a=_0x361db2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xe52e6b,_0x2ead7c)['then'](()=>{_0x361db2['remove'](_0xe8af3a);});}else _0x1b37bf['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xe52e6b,_0x2ead7c);});}}['_getSuggestionData'](_0x6a3178){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x59c745('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x6a3178);}['_handleNewSuggestionMarker'](_0x250fac){const {id:_0x250532,type:_0x25fdd9,subType:_0x2d91ce,authorId:_0x54fc65}=this['_splitMarkerName'](_0x250fac),_0x4f6e24=this['_suggestions']['get'](_0x250532)||this['_createSuggestion'](_0x25fdd9,_0x2d91ce,_0x250532,_0x54fc65,{});switch(this['_checkSuggestionCorrectness'](_0x4f6e24,_0x25fdd9,_0x2d91ce,_0x54fc65),this['_suggestionState']['get'](_0x4f6e24)){case'notReady':this['_getSuggestionData'](_0x250532)['then'](_0x5ce38a=>{let _0x5d21f0=Promise['resolve']();_0x5ce38a['hasComments']&&(_0x5d21f0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x250532})),_0x5d21f0['then'](()=>{this['addSuggestionData'](_0x5ce38a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4f6e24,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x250532,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4f6e24,'ready'),this['fire']('suggestionLoaded',_0x4f6e24);break;case'ready':this['fire']('suggestionChanged',_0x4f6e24);}return _0x4f6e24['addMarkerName'](_0x250fac),_0x4f6e24;}['_refreshSuggestionsChain'](_0x5a94fc){const _0x4bce26=Array['from'](_0x5a94fc),_0x5b7ecb=_0x4bce26['filter'](_0x480a21=>'attribute'==_0x480a21['type']);this['_refreshAttributeSuggestionsChain'](_0x5b7ecb);const _0x599995=_0x4bce26['filter'](_0x5abf19=>!_0x5abf19['isMultiRange']&&'attribute'!=_0x5abf19['type']),_0x5b47ff=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x254dd8=>!_0x254dd8['isMultiRange']&&'attribute'!=_0x254dd8['type']),_0x69146c=_0x5b47ff['filter'](_0x523d14=>!_0x5a94fc['has'](_0x523d14)),_0x4d9c3d=new Map(_0x5b47ff['map'](_0x51e0d2=>[_0x51e0d2,this['_suggestionFactory']['getSuggestionCallback'](_0x51e0d2['type'],_0x51e0d2['subType'],'chain')])),_0x2a8612=new Map(_0x5b47ff['map'](_0x3d7b9e=>[_0x3d7b9e,_0x3d7b9e['getFirstRange']()])),_0x249b58=new Set(),_0x11271e=new Set();for(let _0x1b32f8=0x0;_0x1b32f8<_0x599995['length'];_0x1b32f8++)_0x5b26d4(_0x599995[_0x1b32f8],_0x599995,_0x1b32f8+0x1);for(let _0x1e0819=0x0;_0x1e0819<_0x599995['length'];_0x1e0819++)_0x5b26d4(_0x599995[_0x1e0819],_0x69146c,0x0);const _0x17eed9=new Set();for(let _0x49d058=0x0;_0x49d058<_0x599995['length'];_0x49d058++){const _0x4e1b72=_0x599995[_0x49d058];!_0x11271e['has'](_0x4e1b72)&&_0x4e1b72['previous']&&(_0x17eed9['add'](_0x4e1b72['previous']),_0x4e1b72['previous']['next']===_0x4e1b72&&(_0x4e1b72['previous']['next']=null),_0x4e1b72['previous']=null),!_0x249b58['has'](_0x4e1b72)&&_0x4e1b72['next']&&(_0x17eed9['add'](_0x4e1b72['next']),_0x4e1b72['next']['previous']===_0x4e1b72&&(_0x4e1b72['next']['previous']=null),_0x4e1b72['next']=null);}function _0x5b26d4(_0x2ff040,_0x21195f,_0x490509){for(let _0x12e657=_0x490509;_0x12e657<_0x21195f['length'];_0x12e657++){const _0x283b09=_0x3232c3(_0x2ff040,_0x21195f[_0x12e657]);_0x283b09&&(_0x283b09[0x0]['next']=_0x283b09[0x1],_0x283b09[0x1]['previous']=_0x283b09[0x0],_0x249b58['add'](_0x283b09[0x0]),_0x11271e['add'](_0x283b09[0x1]));}}function _0x3232c3(_0x2b5afd,_0x40fa5f){if(_0x2b5afd['author']['id']!==_0x40fa5f['author']['id'])return null;const _0x381ffb=_0x4d9c3d['get'](_0x2b5afd)(_0x2b5afd,_0x40fa5f,_0x2a8612['get'](_0x2b5afd),_0x2a8612['get'](_0x40fa5f));if(!_0x381ffb)return null;return _0x4d9c3d['get'](_0x40fa5f)(_0x2b5afd,_0x40fa5f,_0x2a8612['get'](_0x2b5afd),_0x2a8612['get'](_0x40fa5f))?_0x381ffb[0x1]['commentThread']&&_0x381ffb[0x1]['commentThread']['length']?null:_0x381ffb:null;}_0x17eed9['size']&&this['_refreshSuggestionsChain'](_0x17eed9);}['_refreshAttributeSuggestionsChain'](_0x21af1e){if(0x0==_0x21af1e['length'])return;const _0x108ded=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38e2fb=>'attribute'==_0x38e2fb['type']&&_0x38e2fb['_isDataLoaded']),_0x1a9766=[],_0x840d5=new Map();for(const _0x4a505c of _0x108ded){const _0x5e0d82=_0x135b17(_0x4a505c['attributes']);_0x840d5['has'](_0x5e0d82)||(_0x840d5['set'](_0x5e0d82,_0x1a9766['length']),_0x1a9766['push']([]));const _0xa9b2a4=_0x840d5['get'](_0x5e0d82);_0x1a9766[_0xa9b2a4]['push'](_0x4a505c);}!(function(){_0x1a9766['sort']((_0x11d2ab,_0x411c36)=>{const _0x557e76=_0x11d2ab[0x0]['createdAt'],_0xb4b0e8=_0x411c36[0x0]['createdAt'];return _0x557e76==_0xb4b0e8?_0x11d2ab[0x0]['attributes']['groupId']<_0x411c36[0x0]['attributes']['groupId']?-0x1:0x1:_0x557e76<_0xb4b0e8?-0x1:0x1;});for(const _0x47caa6 of _0x1a9766)_0x47caa6['sort']((_0x338441,_0x4c5996)=>_0x338441['id']<_0x4c5996['id']?-0x1:0x1);}());for(let _0x3390d6=0x0;_0x3390d6<_0x1a9766['length'];_0x3390d6++){if(0x0==_0x1a9766[_0x3390d6]['length'])continue;const _0x175faf=[];for(let _0x46e575=_0x3390d6+0x1;_0x46e575<_0x1a9766['length'];_0x46e575++)0x0!=_0x1a9766[_0x46e575]['length']&&_0x476aad(_0x1a9766[_0x3390d6],_0x1a9766[_0x46e575])&&_0x175faf['push'](_0x46e575);for(const _0x128a35 of _0x175faf)_0x1a9766[_0x3390d6]=_0x1a9766[_0x3390d6]['concat'](_0x1a9766[_0x128a35]),_0x1a9766[_0x128a35]=[];}for(const _0x507d4c of _0x1a9766)for(let _0xc3fc4b=0x0;_0xc3fc4b<_0x507d4c['length'];_0xc3fc4b++){const _0x43689a=_0x507d4c[_0xc3fc4b+0x1]||null;_0x507d4c[_0xc3fc4b]['next']!==_0x43689a&&(_0x507d4c[_0xc3fc4b]['next']=_0x43689a);}for(const _0xa32aaa of _0x1a9766)for(let _0x768045=0x0;_0x768045<_0xa32aaa['length'];_0x768045++){const _0x18f6b4=_0xa32aaa[_0x768045-0x1]||null;_0xa32aaa[_0x768045]['previous']!==_0x18f6b4&&(_0xa32aaa[_0x768045]['previous']=_0x18f6b4);}function _0x476aad(_0x539547,_0x156a8b){if(_0x539547[0x0]['attributes']['groupId']!==_0x156a8b[0x0]['attributes']['groupId']&&_0x539547[0x0]['author']!==_0x156a8b[0x0]['author'])return!0x1;if(!function(_0x39cecc,_0x509d17){if(!_0x39cecc['hasComments']&&!_0x509d17['hasComments'])return!0x0;if(_0x39cecc['hasComments']&&_0x509d17['hasComments'])return!0x1;if(_0x39cecc['hasComments']&&_0x509d17['createdAt']<_0x39cecc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x509d17['hasComments']&&_0x39cecc['createdAt']<_0x509d17['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x539547[0x0],_0x156a8b[0x0]))return!0x1;const _0x10492d=Et(_0x539547[0x0]['attributes'],'groupId'),_0xc21e8a=Et(_0x156a8b[0x0]['attributes'],'groupId');if(!_0x423d77(_0x10492d,_0xc21e8a))return!0x1;return!!_0x539547['every'](_0x32d317=>_0x156a8b['some'](_0x5eb282=>_0x32d317['getFirstRange']()['isEqual'](_0x5eb282['getFirstRange']())))&&_0x156a8b['every'](_0x387e08=>_0x539547['some'](_0x4d13f3=>_0x387e08['getFirstRange']()['isEqual'](_0x4d13f3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4d00ea){const _0x5a74d1=Array['from'](_0x4d00ea),_0x3658c5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x249a09=_0x3658c5['filter'](_0x333c32=>!_0x4d00ea['has'](_0x333c32)),_0x360d81=new Map(_0x5a74d1['map'](_0x2231de=>[_0x2231de,this['_suggestionFactory']['getSuggestionCallback'](_0x2231de['type'],_0x2231de['subType'],'join')])),_0x11a0df=new Map(_0x3658c5['map'](_0x368857=>[_0x368857,_0x368857['getRanges']()]));for(let _0x87f445=0x0;_0x87f445<_0x5a74d1['length'];_0x87f445++){if(_0x22621e(this,_0x5a74d1[_0x87f445],_0x5a74d1,_0x87f445+0x1))return!0x0;}for(let _0x5b45e8=0x0;_0x5b45e8<_0x5a74d1['length'];_0x5b45e8++){if(_0x22621e(this,_0x5a74d1[_0x5b45e8],_0x249a09,0x0))return!0x0;}return!0x1;function _0x22621e(_0x472f80,_0x5e0c9c,_0xf779e,_0x41a585){for(let _0x5d0dc4=_0x41a585;_0x5d0dc4<_0xf779e['length'];_0x5d0dc4++){const _0x3fcaa5=_0xf779e[_0x5d0dc4];if(_0x3fcaa5['type']!==_0x5e0c9c['type']||_0x3fcaa5['author']['id']!==_0x5e0c9c['author']['id']||_0x3fcaa5['subType']!==_0x5e0c9c['subType'])continue;if(!zt(_0x5e0c9c,_0x3fcaa5))continue;if('attribute'==_0x5e0c9c['type']&&_0x5e0c9c['data']['oldValue']!=_0x3fcaa5['data']['oldValue'])continue;if('attribute'==_0x5e0c9c['type']&&_0x472f80['_isBlockAttribute'](_0x5e0c9c['data']['key']))continue;if('formatBlock'==_0x5e0c9c['type']){const _0x18450b=_0x472f80['editor']['model'],_0x3bd625=_0x5e0c9c['getContainedElement']();if(_0x3bd625&&(_0x18450b['schema']['isObject'](_0x3bd625)||_0x18450b['schema']['isLimit'](_0x3bd625)))continue;}const _0x5c329c=_0x360d81['get'](_0x5e0c9c),_0x3bdabc=_0x11a0df['get'](_0x5e0c9c),_0x5555c1=_0x11a0df['get'](_0x3fcaa5),_0x2eafcd=_0x5e0c9c['commentThread']&&_0x5e0c9c['commentThread']['length'],_0x2b1522=_0x3fcaa5['commentThread']&&_0x3fcaa5['commentThread']['length'];if(!_0x2eafcd&&_0x5c329c(_0x5555c1,_0x3bdabc))return _0x472f80['_joinSuggestions'](_0x3fcaa5,_0x5e0c9c),_0x11a0df['delete'](_0x5e0c9c),!0x0;if(!_0x2b1522&&_0x5c329c(_0x3bdabc,_0x5555c1))return _0x472f80['_joinSuggestions'](_0x5e0c9c,_0x3fcaa5),_0x11a0df['delete'](_0x3fcaa5),!0x0;}return!0x1;}}['_joinSuggestions'](_0x200a6b,_0xb15ff8){if(_0x200a6b['isMultiRange']){for(const _0x10a17a of _0xb15ff8['getRanges']())_0x200a6b['addRange'](_0x10a17a);}else{const _0x4ed1cd=_0xb15ff8['getFirstRange']()['end'];this['_setSuggestionRange'](_0x200a6b,this['_model']['createRange'](_0x200a6b['getFirstRange']()['start'],_0x4ed1cd));}_0xb15ff8['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5ef427,_0x236611,_0x49d07f){const _0xe888ac=_0x5ef427['startsWith']('format')||_0x5ef427['startsWith']('attribute')?'FORMATTING':_0x5ef427['toUpperCase']();return o(this['editor']['locale'],_0x236611+'_'+_0xe888ac+'_SUGGESTION_ANNOUNCEMENT',_0x49d07f);}['_initAriaMarkerChangeAnnouncements'](){const _0x5b55d6=this['editor'];if(!_0x5b55d6['ui'])return;const {ariaLiveAnnouncer:_0x14cf46}=_0x5b55d6['ui'];_0x30266a(this['_model'],({left:_0x2b68df,entered:_0xa9a627})=>{for(const _0x1b46a5 of _0x2b68df){const {group:_0x1ec7b4,type:_0x33b8a6}=this['_splitMarkerName'](_0x1b46a5['name']);if('suggestion'===_0x1ec7b4){_0x14cf46['announce'](this['_getMarkerAnnouncementText'](_0x33b8a6,'LEAVE'));break;}}for(const _0x126c0d of _0xa9a627){const {group:_0x3f6730,type:_0x455e31}=this['_splitMarkerName'](_0x126c0d['name']);if('suggestion'===_0x3f6730){_0x14cf46['announce'](this['_getMarkerAnnouncementText'](_0x455e31,'ENTER',_0x7be1ac(_0x58b088)));break;}}});}['_processAttributeChanges'](_0x41ab42){if(this['_recordAttributeSuggestions'])return!0x1;const _0x599c23=this['editor'],_0x1f07d5=_0x599c23['model']['document']['differ']['getChanges']();if(0x0==_0x1f07d5['length'])return!0x1;const _0x340649=[],_0x149ff4=_0x1f07d5['filter'](_0x532edf=>'attribute'==_0x532edf['type']),_0x337a69=_0x1f07d5['filter'](_0x3ccc99=>'insert'==_0x3ccc99['type']&&'$text'!=_0x3ccc99['name']),_0x3092d2=_0x1f07d5['filter'](_0x32a516=>'remove'==_0x32a516['type']&&'$text'!=_0x32a516['name']);for(const _0x41ff0c of _0x149ff4)_0x340649['push']({'key':_0x41ff0c['attributeKey'],'newValue':_0x41ff0c['attributeNewValue'],'oldValue':_0x41ff0c['attributeOldValue'],'range':Jt(_0x41ff0c['range'],_0x599c23['model'])});for(const _0x47dc1a of _0x337a69){const _0x411409=_0x3092d2['find'](_0x3dc323=>_0x3dc323['position']['isEqual'](_0x47dc1a['position']));_0x411409&&_0x340649['push']({'key':m,'newValue':_0x47dc1a['name'],'oldValue':_0x411409['name'],'range':_0x599c23['model']['createRangeOn'](_0x47dc1a['position']['nodeAfter'])});}return 0x0!=_0x340649['length']&&this['_reduceExistingSuggestions'](_0x41ab42,_0x340649);}['_processAttributeSuggestions'](_0x749276){let _0x2c8d55=!0x1;const _0x26c5a4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xaaec57=>_0xaaec57['data']['newRange']&&_0xaaec57['name']['startsWith']('suggestion:attribute:'));for(const _0x318539 of _0x26c5a4){const {subType:_0x51b0ff,id:_0x5f3cf8}=this['_splitMarkerName'](_0x318539['name']),_0x26a6d8=_0x51b0ff['split']('|')[0x0];for(const _0x524f30 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x524f30['id']!=_0x5f3cf8&&'attribute'==_0x524f30['type']&&_0x524f30['data']&&_0x524f30['data']['key']==_0x26a6d8&&_0x524f30['getFirstRange']()['isIntersecting'](_0x318539['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x524f30,_0x318539['data']['newRange'],_0x749276),_0x2c8d55=!0x0);}return _0x2c8d55;}['_recordAttributeChanges'](_0x2468cd){this['_recordAttributeSuggestions']=!0x0,_0x2468cd();}['_isRegisteredAttribute'](_0x175601){const _0x33bfd1=this['_isBlockAttribute'](_0x175601),_0x3c4dfc=this['_inlineAttributeKeys']['has'](_0x175601);return _0x33bfd1||_0x3c4dfc;}['_reduceExistingSuggestions'](_0x46b924,_0x187eeb){if(0x0==_0x187eeb['length'])return!0x1;let _0x3f2125=!0x1;for(const _0x472e3a of _0x187eeb){const _0x435586=this['_findSuggestions'](_0x472e3a['range'],'attribute')['filter'](_0x1cb482=>!_0x1cb482['meta']['isNextTo'])['map'](_0x3a5c87=>_0x3a5c87['suggestion']),_0x2feb38=_0x135b17({'newValue':_0x472e3a['newValue']});_0x435586['filter'](_0x33e0a3=>{const [_0x1b9dc4,_0x2fd4ab]=_0x33e0a3['subType']['split']('|');return _0x1b9dc4==_0x472e3a['key']&&_0x2fd4ab!=_0x2feb38;})['forEach'](_0x44df9f=>{this['_reduceSuggestionAttributeRange'](_0x44df9f,_0x472e3a['range'],_0x46b924),_0x3f2125=!0x0;});}return _0x3f2125;}['_reduceSuggestionAttributeRange'](_0x314422,_0x58b63e,_0x1f0185){const _0x421d38=_0x314422['getFirstRange']()['getDifference'](_0x58b63e);0x0!==_0x421d38['length']?0x1!==_0x421d38['length']?this['_breakSuggestionMarker'](_0x314422,_0x58b63e['start'],_0x58b63e['end']):this['_setSuggestionRange'](_0x314422,_0x421d38[0x0]):_0x1f0185['removeMarker'](_0x314422['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x265b7c){this['_editor']=_0x265b7c,this['_model']=_0x265b7c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1535d5,_0x1f168a,_0x2278d8,_0x56ca09,_0x6eab15,_0x1a613b){return new u(this['_model'],{'type':_0x1535d5,'subType':_0x1f168a,'id':_0x2278d8,'author':_0x56ca09,'creator':_0x56ca09,'attributes':_0x6eab15,'onAttributesChange':_0x1a613b,'onAccept':(..._0x5d8586)=>this['getSuggestionCallback'](_0x1535d5,_0x1f168a,'accept')(..._0x5d8586),'onDiscard':(..._0x36f22b)=>this['getSuggestionCallback'](_0x1535d5,_0x1f168a,'discard')(..._0x36f22b)});}['registerCustomCallback'](_0x3d831f,_0x484a77,_0x40c2d4,_0x1dbf43){const _0x5f3779=_0x3d831f+':'+_0x484a77+':'+_0x40c2d4;this['_customCallbacks']['set'](_0x5f3779,_0x1dbf43);}['getSuggestionCallback'](_0x6d553b,_0x2dd76d,_0x54502c){const _0x13bc90=_0x6d553b+':'+_0x2dd76d+':'+_0x54502c;return this['_customCallbacks']['get'](_0x13bc90)||this['_defaultCallbacks']['get'](_0x6d553b+':'+_0x54502c);}['_registerDefaultCallbacks'](){const _0x253234=()=>!0x1,_0x5cbb0a=_0x8d1c78=>{_0x8d1c78['sort']((_0x1234b1,_0x4b5704)=>_0x1234b1['start']['isBefore'](_0x4b5704['start'])?0x1:-0x1),this['_model']['change'](_0x3a0cd5=>{for(const _0x73c2b9 of _0x8d1c78){let _0x10bd55;_0x10bd55=_0x73c2b9['end']['isAtEnd']&&_0x73c2b9['end']['parent']==_0x73c2b9['start']['nodeAfter']?_0x3a0cd5['createSelection'](_0x73c2b9['start']['nodeAfter'],'on'):_0x3a0cd5['createSelection'](_0x73c2b9),this['_model']['deleteContent'](_0x10bd55,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x37677c=(_0x1b96f1,_0x5c511a)=>{_0x5c511a&&this['_model']['change'](_0x4de45b=>{const {commandName:_0x46c7ad,commandParams:_0x291c2c=[]}=_0x5c511a,_0x34127d=_0x1b96f1['map'](_0x3a3179=>(Pt(_0x3a3179)&&(_0x3a3179=this['_model']['createRange'](_0x3a3179['end'])),_0x3a3179))['filter'](_0x14131b=>'$graveyard'!==_0x14131b['root']['rootName']);if(_0x34127d['length']<0x1)return;const _0x279a3e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5a49fb=>_0x48c676['fromRange'](_0x5a49fb));_0x4de45b['setSelection'](_0x34127d);for(const _0x5997bb of this['_editor']['commands']['commands']())_0x5997bb['refresh']();_0x291c2c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x46c7ad,..._0x291c2c);const _0x37bb95=_0x279a3e['filter'](_0x3372f1=>'$graveyard'!=_0x3372f1['root']['rootName']);_0x37bb95['length']>0x0&&_0x4de45b['setSelection'](_0x37bb95);for(const _0x3f1ad2 of _0x279a3e)_0x3f1ad2['detach']();});},_0x10af85=(_0x3d0b52,_0x10eae3)=>0x1==_0x3d0b52['length']&&0x1==_0x10eae3['length']&&_0x3d0b52[0x0]['end']['isEqual'](_0x10eae3[0x0]['start']),_0x318cc4=(_0x554198,_0x1097db,_0x6aaeea,_0x540b98)=>qt(_0x554198,_0x1097db,_0x6aaeea,_0x540b98)?[_0x554198,_0x1097db]:qt(_0x1097db,_0x554198,_0x540b98,_0x6aaeea)?[_0x1097db,_0x554198]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x253234),this['_defaultCallbacks']['set']('insertion:discard',_0x5cbb0a),this['_defaultCallbacks']['set']('insertion:join',_0x10af85),this['_defaultCallbacks']['set']('insertion:chain',_0x318cc4),this['_defaultCallbacks']['set']('deletion:accept',_0x5cbb0a),this['_defaultCallbacks']['set']('deletion:discard',_0x253234),this['_defaultCallbacks']['set']('deletion:join',_0x10af85),this['_defaultCallbacks']['set']('deletion:chain',_0x318cc4),this['_defaultCallbacks']['set']('formatInline:accept',_0x37677c),this['_defaultCallbacks']['set']('formatInline:discard',_0x253234),this['_defaultCallbacks']['set']('formatInline:join',_0x10af85),this['_defaultCallbacks']['set']('formatInline:chain',_0x253234),this['_defaultCallbacks']['set']('formatBlock:accept',_0x37677c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x253234),this['_defaultCallbacks']['set']('formatBlock:join',_0x10af85),this['_defaultCallbacks']['set']('formatBlock:chain',_0x253234),this['_defaultCallbacks']['set']('attribute:accept',_0x253234),this['_defaultCallbacks']['set']('attribute:discard',(_0x18b2b3,_0x565e94)=>{if(!_0x565e94)return;const _0x5856bc=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4b22ff=>{if(_0x565e94['key']==m)for(const _0x41594a of _0x18b2b3){const _0x4a2805=_0x41594a['start']['nodeAfter'],_0x31f1d8=_0x565e94['oldValue'];_0x4b22ff['rename'](_0x4a2805,_0x31f1d8);}else{if(_0x5856bc['_isBlockAttribute'](_0x565e94['key'])){for(const _0x31759c of _0x18b2b3)void 0x0!==_0x565e94['oldValue']?_0x4b22ff['setAttribute'](_0x565e94['key'],_0x565e94['oldValue'],_0x31759c['start']['nodeAfter']):_0x4b22ff['removeAttribute'](_0x565e94['key'],_0x31759c['start']['nodeAfter']);}else{for(const _0x2e2975 of _0x18b2b3)_0x565e94['oldValue']?_0x4b22ff['setAttribute'](_0x565e94['key'],_0x565e94['oldValue'],_0x2e2975):_0x4b22ff['removeAttribute'](_0x565e94['key'],_0x2e2975);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x10af85);}}function Vt(_0x26fc97,_0x346fab,_0x578e6d){for(const _0x34faaa of _0x346fab['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x34faaa['root']==_0x34faaa)return!0x1;if(!_0x578e6d['containsItem'](_0x34faaa))return!0x1;if(_0x26fc97['isObject'](_0x34faaa)||_0x26fc97['isLimit'](_0x34faaa))return!0x0;}return!0x1;}function Pt(_0x80c288){return _0x80c288['end']['parent']==_0x80c288['start']['nodeAfter']&&_0x80c288['end']['isAtStart'];}function Gt(_0x3fef0d,_0x418cf0,_0x36abeb,_0x439bae){const _0x1eb0f5=_0x55405c=>!_0x55405c['item']['is']('$textProxy')&&!_0x439bae['isObject'](_0x55405c['item']),_0x4f5585=_0x3fef0d['start']['getLastMatchingPosition'](_0x1eb0f5),_0x2ab5ff=_0x3fef0d['end']['getLastMatchingPosition'](_0x1eb0f5,{'direction':'backward'});return(!_0x3fef0d['start']['isEqual'](_0x4f5585)||!_0x3fef0d['end']['isEqual'](_0x2ab5ff))&&(_0x4f5585['isBefore'](_0x2ab5ff)?_0x36abeb['updateMarker'](_0x418cf0,{'range':_0x36abeb['createRange'](_0x4f5585,_0x2ab5ff)}):_0x36abeb['removeMarker'](_0x418cf0),!0x0);}function Ft(_0x4459f4){return _0x135b17(_0x4459f4);}function Lt(_0x4945e2){const _0x311e57=_0x4945e2['start']['nodeAfter'];return _0x311e57&&_0x311e57['is']('element');}function Jt(_0x3414df,_0x165c04){return null==_0x3414df['end']['nodeBefore']&&_0x3414df['end']['parent']==_0x3414df['start']['nodeAfter']?Ht(_0x3414df['start']['nodeAfter'],_0x165c04):_0x3414df;}function Ht(_0x17ac7b,_0x5522d5){const _0xfe950d=_0x5522d5['schema']['isObject'](_0x17ac7b)||_0x5522d5['schema']['isSelectable'](_0x17ac7b);return _0x5522d5['createRange'](_0x5522d5['createPositionAt'](_0x17ac7b,'before'),_0xfe950d?_0x5522d5['createPositionAfter'](_0x17ac7b):_0x5522d5['createPositionAt'](_0x17ac7b,'end'));}function qt(_0x4ecfa8,_0x15d7ac,_0x1a097d,_0x38897d){return!!zt(_0x4ecfa8,_0x15d7ac)&&_0x1a097d['end']['isEqual'](_0x38897d['start']);}function zt(_0x1a4777,_0x531bcb){if(!_0x1a4777['_isDataLoaded']||!_0x531bcb['_isDataLoaded'])return!0x1;const _0x12d614=new Set(Object['keys'](_0x1a4777['attributes'])),_0x270728=new Set(Object['keys'](_0x531bcb['attributes']));if(_0x12d614['delete']('groupId'),_0x270728['delete']('groupId'),0x0==_0x12d614['size']&&0x0==_0x270728['size'])return!0x0;if(_0x12d614['size']!=_0x270728['size'])return!0x1;const _0x4240ee={..._0x1a4777['attributes']},_0x5b09d1={..._0x531bcb['attributes']};return delete _0x4240ee['groupId'],delete _0x5b09d1['groupId'],JSON['stringify'](_0x4240ee)==JSON['stringify'](_0x5b09d1);}function Kt(_0x441f43,_0x4480c4){const _0x462f03=Wt(_0x441f43['attributes']),_0x4df18d=Wt(_0x4480c4);if(!_0x441f43['_isDataLoaded'])return!0x1;for(const _0x1bd2b9 of Object['keys'](_0x4df18d))if(!_0x423d77(_0x462f03[_0x1bd2b9],_0x4df18d[_0x1bd2b9]))return!0x1;return!0x0;}function Wt(_0x42634e){const _0x5a6a3c=Object['assign']({},_0x42634e);return delete _0x5a6a3c['skipNestingCheck'],delete _0x5a6a3c['tablePasteChainId'],_0x5a6a3c;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3074e5(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3a1cb7,_0x1c47d6,_0x406e93,_0x551e36){super(),this['model']=_0x1c47d6,this['view']=_0x406e93,this['commentThreadController']=_0x551e36,this['_editor']=_0x3a1cb7,this['_acceptCommand']=_0x3a1cb7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3a1cb7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x317589,_0x5d22ed)=>_0x317589||_0x5d22ed),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x31b73d=>_0x31b73d&&this['_editor']['model']['canEditAt'](_0x1c47d6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x661d3d=>_0x661d3d&&this['_editor']['model']['canEditAt'](_0x1c47d6['getRanges']())),this['_pendingAction']=null,_0x406e93['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x406e93,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x406e93,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x406e93,'change:isDirty',()=>{_0x406e93['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 _0x45f87b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x45f87b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x1a56fc{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1f020f,_0x333a8f,_0x154d69,_0x5c5391){super(_0x1f020f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x48ec99(_0x1f020f,o(_0x1f020f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x333a8f['authoredAt']),this['bind']('authoredAt')['to'](_0x333a8f),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x333a8f,'authoredAt',this,'descriptionParts',(_0x3ae2b,_0x586b6b,_0x3c51eb)=>{const _0x3c721c=_0x3c51eb['map'](_0x11104c=>ns(_0x11104c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3ae2b-0x1,_0x333a8f['author']['name'],_0x586b6b?_0x5c5391['formatDateTime'](_0x586b6b):'',new DOMParser()['parseFromString'](_0x3c721c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4bf9f0(),this['focusTracker']=new _0x17f543(),this['keystrokes']=new _0x150e52(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x410f3f=>_0x410f3f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x333a8f,this['_localUser']=_0x154d69,this['_config']=_0x5c5391,_0x5c5391['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x58cefc(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x30eee1}=this['_config'];this['commentsListView']=new _0x30eee1(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',_0xf140dc=>_0xf140dc+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x16d6ce,_0x560206)=>_0x16d6ce||!!_0x560206);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1bd175}=this['_config'],_0x5d6517=new _0x1bd175(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x45ea93=_0x5d6517['commentInputView'];return _0x5d6517['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x45ea93,'value',(_0x35acde,_0x46d34d,_0x338b14)=>!!_0x338b14||_0x35acde&&!_0x46d34d),_0x45ea93['on']('submit',(_0x5179ee,_0xeea45a)=>{this['fire']('addComment',_0xeea45a),_0x45ea93['editor']['setData']('');}),_0x45ea93['on']('cancel',()=>this['focus']()),_0x45ea93['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5d6517;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x102a54,_0x342267,_0x355cfd,_0xbd90b2){super(_0x102a54,_0x342267,_0x355cfd,_0xbd90b2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x299a4c=>_0x299a4c&&_0x299a4c[0x0]?_0x299a4c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xe91af3,_0x3460b5)=>{let _0x469304='';for(const _0x40522c of _0xe91af3)_0x469304+='<p>'+ns(_0x40522c['content'],_0x40522c['color'])+'</p>';return _0x3460b5?_0x469304:_0x346348(_0x469304,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xbd90b2['SuggestionView'](_0x102a54,_0x342267,{'formatDateTime':_0xbd90b2['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x269dd7=this['bindTemplate'],_0x3778f2=[this['suggestionView']];return this['commentsListView']&&_0x3778f2['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3778f2['push'](this['commentThreadInputView']),_0x3778f2['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x269dd7['if']('isActive','ck-suggestion-wrapper--active'),_0x269dd7['to']('type',_0x21c544=>'ck-suggestion-'+_0x21c544),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':0x0,'role':'listitem','aria-label':_0x269dd7['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3778f2};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x1a56fc{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x271446,_0x571002,_0x475d6a){super(_0x271446),this['_model']=_0x571002,this['_config']=_0x475d6a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x571002),this['acceptButton']=this['_createButton'](o(_0x271446,'Accept\x20suggestion'),_0x3898a0['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x271446,'Discard\x20suggestion'),_0x3898a0['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x552f6b(_0x271446,_0x571002['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4bf9f0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x17f543(),this['keystrokes']=new _0x150e52(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xb61d8d=>_0xb61d8d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4bd3ec=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4bd3ec['innerHTML']=this['description'],this['on']('change:description',(_0x204d86,_0x1d02d3,_0x895eb2)=>{_0x4bd3ec['innerHTML']=_0x895eb2;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x48429a=this['bindTemplate'],_0x423975=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x48429a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x48429a['to']('authoredAt',_0x3fcf0e=>this['_config']['formatDateTime'](_0x3fcf0e))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x423975['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x423975}]};}['focus'](){this['element']['focus']();}['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;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3ac8f8,_0x50a552,_0x18f215,_0x3c85d1,_0x1eccb6){const _0x22a228=new _0x3c14b4(this['locale']);return _0x22a228['set']({'label':_0x3ac8f8,'icon':_0x50a552,'tooltip':!0x0,'tooltipPosition':_0x1eccb6}),_0x22a228['extendTemplate']({'attributes':{'class':_0x18f215}}),_0x22a228['on']('execute',()=>{this['fire'](_0x3c85d1,this['_model']['id']);}),_0x22a228;}['_setupKeyboardNavigation'](){const _0x48aeb9=this['element'];this['keystrokes']['listenTo'](_0x48aeb9);for(const _0x20e2c0 of this['focusables'])this['focusTracker']['add'](_0x20e2c0['element']),this['keystrokes']['listenTo'](_0x20e2c0['element']);this['keystrokes']['set']('enter',(_0x4b3324,_0x1d691a)=>{_0x48aeb9===_0x4b3324['target']&&(this['focusCycler']['focusFirst'](),_0x1d691a());}),this['keystrokes']['set']('esc',(_0x244aff,_0x219123)=>{_0x48aeb9!==_0x244aff['target']&&(this['focus'](),_0x219123());});}}var we='<!--\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-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x27318c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x53f0ce,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5852f0){super(_0x5852f0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1e2017=this['editor']['config'];_0x1e2017['define']('trackChanges.SuggestionThreadView',pe),_0x1e2017['define']('trackChanges.SuggestionView',fe),_0x1e2017['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1e2017['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5cae76,_0x97dfb8){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5c4390,_0x2cd78e]of this['_handleControllerBuffer']){const _0xd9c527=this['_suggestionToController']['has'](_0x5c4390);_0xd9c527||_0x2cd78e?_0xd9c527&&_0x2cd78e&&this['_destroyController'](_0x5c4390):this['_initializeController'](_0x5c4390);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5cae76,_0x97dfb8);}['init'](){const _0xaaabd8=this['editor'],_0x4b06a5=_0xaaabd8['plugins']['get']('TrackChangesEditing'),_0x2fb9a4=_0xaaabd8['plugins']['get']('Annotations'),_0x141c0d=_0xaaabd8['plugins']['get']('EditorAnnotations'),_0x1a0a6c=_0xaaabd8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x141c0d['addSourceCollector'](()=>{const _0x635550=[];for(const [_0x3e6a97,_0x5a3c96]of Array['from'](this['_suggestionToController'])){const _0x3449f4=_0x3e6a97['getAllAdjacentSuggestions'](),_0x8c7ca7=[];for(const _0x11a64f of _0x3449f4){if(!_0x11a64f['isInContent'])continue;if(_0x11a64f['isMultiRange']){_0x8c7ca7['push'](..._0x11a64f['getRanges']());continue;}const _0x595ac9=_0x11a64f['getFirstRange']();if(_0x8c7ca7['length']>0x0){const _0x3636dd=_0x8c7ca7[0x0]['getJoined'](_0x595ac9);if(_0x3636dd){_0x8c7ca7[0x0]=_0x3636dd;continue;}}_0x8c7ca7['push'](_0x595ac9);}_0x635550['push']([_0x5a3c96['view'],_0x8c7ca7]);}return _0x635550;}),this['listenTo'](_0x4b06a5,'suggestionLoaded',(_0x302e0e,_0x1fcaf6)=>{this['listenTo'](_0x1fcaf6,'change:previous',(_0x18f365,_0x2f2625,_0x54293c,_0x3db246)=>{_0x1fcaf6['isInContent']&&(null==_0x54293c?(this['_updateController'](_0x3db246['head']),this['_handleSuggestionControllerDelayed'](_0x1fcaf6,!0x1)):(this['_updateController'](_0x54293c['head']),null==_0x3db246&&this['_handleSuggestionControllerDelayed'](_0x1fcaf6,!0x0)));}),null!==_0x1fcaf6['previous']?this['_updateController'](_0x1fcaf6['head']):this['_handleSuggestionControllerDelayed'](_0x1fcaf6,!0x1);}),this['listenTo'](_0x4b06a5,'suggestionUnloaded',(_0x1ba045,_0x2a8ca0,_0x53bc27)=>{this['stopListening'](_0x2a8ca0,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2a8ca0),this['_suggestionToController']['has'](_0x2a8ca0)&&this['_destroyController'](_0x2a8ca0),_0x53bc27&&this['_updateController'](_0x53bc27['head']);}),this['listenTo'](_0x4b06a5,'suggestionChanged',(_0xf7ae7a,_0xf67f08)=>{this['_updateController'](_0xf67f08);}),this['listenTo'](_0x2fb9a4,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1a0a6c,'addComment',(_0x16e70a,{threadId:_0x40dc3f,isFromAdapter:_0x29e2b9})=>{if(_0x29e2b9||!_0x4b06a5['hasSuggestion'](_0x40dc3f))return;const _0x431d43=_0x4b06a5['getSuggestion'](_0x40dc3f);this['_suggestionToController']['get'](_0x431d43)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a1deb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b5f43;for(const _0x457b09 in _0x3a1deb){const _0x48ebb2=_0x457b09,_0x38b769=_0x3a1deb[_0x48ebb2];if('trackChangesLicenseKeyValid'==_0x38b769||'trackChangesLicenseKeyInvalid'==_0x38b769||'trackChangesLicenseKeyExpired'==_0x38b769||'trackChangesLicenseKeyDomainLimit'==_0x38b769||'trackChangesLicenseKeyNotAllowed'==_0x38b769||'trackChangesLicenseKeyEvaluationLimit'==_0x38b769||'trackChangesLicenseKeyTrialLimit'==_0x38b769||'trackChangesLicenseKeyUsageLimit'==_0x38b769){delete _0x3a1deb[_0x48ebb2],_0x4b5f43=_0x38b769,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4b5f43&&_0x3a1deb['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4b5f43&&_0x3a1deb['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4b5f43&&_0x3a1deb['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4b5f43&&_0x3a1deb['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4b5f43&&_0x3a1deb['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4b5f43&&_0x3a1deb['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4b5f43&&_0x3a1deb['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3c61e8=this['editor']['plugins']['get']('Annotations'),_0x347ee6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x334609=Array['from'](_0x3c61e8['activeAnnotations'],_0x12eb58=>_0x12eb58['innerView'])['filter'](_0x14d1d1=>this['_viewToController']['has'](_0x14d1d1)),_0x5bfddb=[];for(const _0x8a5802 of _0x334609){const _0x381513=this['_viewToController']['get'](_0x8a5802)['model']['getAllAdjacentSuggestions']();_0x5bfddb['push'](..._0x381513['reduce']((_0x588b61,_0x46c722)=>[..._0x588b61,..._0x46c722['getMarkerNames']()],[]));}_0x347ee6['activeMarkers']=_0x5bfddb;}['_addUIComponentsToFactory'](){const _0x5f14f9=this['editor'],_0x4acddd=_0x5f14f9['locale'],_0x1ddc49=o(_0x4acddd,'Track\x20changes'),_0x31ac8c=new _0x5516f8([{'type':'switchbutton','model':new _0x4b7472({'withText':!0x0,'isToggleable':!0x0,'label':_0x1ddc49,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4b7472({'withText':!0x0,'label':o(_0x4acddd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4b7472({'withText':!0x0,'label':o(_0x4acddd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4b7472({'withText':!0x0,'label':o(_0x4acddd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4b7472({'withText':!0x0,'label':o(_0x4acddd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5f14f9['plugins']['has']('TrackChangesPreview')&&_0x31ac8c['addMany']([{'type':'separator'},{'type':'button','model':new _0x4b7472({'withText':!0x0,'label':o(_0x4acddd,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3879df of _0x31ac8c)if(ke(_0x3879df)){const _0x548e6c=_0x5f14f9['commands']['get'](_0x3879df['model']['commandName']);_0x3879df['model']['bind']('isOn','isEnabled')['to'](_0x548e6c,'value','isEnabled');}_0x5f14f9['ui']['componentFactory']['add']('trackChanges',_0x903ebf=>this['_createToolbarButton'](_0x903ebf,_0x31ac8c,_0x1ddc49)),_0x5f14f9['ui']['componentFactory']['add']('menuBar:trackChanges',_0xd96941=>this['_createMenuBarMenu'](_0xd96941,_0x31ac8c,_0x1ddc49));}['_createToolbarButton'](_0x5ce74d,_0x1837be,_0x178954){const _0xd7b1d3=_0x534303(_0x5ce74d,_0x2f10a0),_0x478c1d=this['editor']['commands']['get']('trackChanges');_0xd7b1d3['buttonView']['set']({'tooltip':_0x178954,'label':_0x178954,'icon':we}),_0xd7b1d3['buttonView']['bind']('isOn')['to'](_0x478c1d,'value'),_0xd7b1d3['buttonView']['on']('execute',()=>{_0x478c1d['execute'](),this['editor']['editing']['view']['focus']();}),_0x502fd2(_0xd7b1d3,_0x1837be,{'role':'menu'});const _0x59c613=[];for(const _0x510ab0 of _0x1837be)ke(_0x510ab0)&&_0x59c613['push'](this['editor']['commands']['get'](_0x510ab0['model']['commandName']));const _0x3bf8bf=_0xd7b1d3['buttonView'];return _0x3bf8bf['actionView']['unbind']('isEnabled'),_0x3bf8bf['arrowView']['unbind']('isEnabled'),_0x3bf8bf['actionView']['bind']('isEnabled')['to'](_0x478c1d,'isEnabled'),_0x3bf8bf['arrowView']['bind']('isEnabled')['toMany'](_0x59c613,'isEnabled',(..._0x44464c)=>_0x44464c['some'](_0x5982cc=>_0x5982cc)),_0xd7b1d3['on']('execute',_0x1451ec=>{this['editor']['execute'](_0x1451ec['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xd7b1d3;}['_createMenuBarMenu'](_0x39aaf7,_0x54dea9,_0x5ae934){const _0x598d33=new _0x4b3efa(_0x39aaf7),_0xfc3bff=this['editor']['commands']['get']('trackChanges');_0x598d33['buttonView']['set']({'label':_0x5ae934,'icon':we});const _0x575e68=new _0x52d3e0(_0x39aaf7);for(const _0x524780 of _0x54dea9){if('separator'==_0x524780['type']){_0x575e68['items']['add'](new _0x29511a(_0x39aaf7));continue;}const _0x3f402e=new _0x1cccb2(_0x39aaf7,_0x598d33),_0x5cf140=new _0xce56e7(_0x39aaf7),_0x505d21=_0x524780['model'];_0x5cf140['bind'](...Object['keys'](_0x505d21))['to'](_0x505d21),_0x5cf140['delegate']('execute')['to'](_0x598d33),_0x5cf140['on']('execute',()=>{this['editor']['execute'](_0x505d21['commandName']),this['editor']['editing']['view']['focus']();}),_0x3f402e['children']['add'](_0x5cf140),_0x575e68['items']['add'](_0x3f402e);}return _0x598d33['bind']('isEnabled')['to'](_0xfc3bff,'isEnabled'),_0x598d33['panelView']['children']['add'](_0x575e68),_0x598d33;}['_initializeController'](_0x33bd1f){const _0x22f06b=this['editor'],_0x5b80bc=_0x22f06b['config'],_0xf85a21=_0x22f06b['plugins']['get']('Annotations'),_0x3ba211=_0x22f06b['plugins']['get']('CommentsRepository'),_0x4c9467=_0x22f06b['plugins']['get']('EditorAnnotations'),_0x100898=_0x22f06b['plugins']['get'](_0x53f0ce)['me'],_0x372285=_0x5b80bc['get']('trackChanges')['SuggestionThreadView'],_0x4b8649=_0x5b80bc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x39e4e3,CommentThreadInputView:_0x28f90b}=_0x22f06b['plugins']['get']('CommentsUI');let _0x459b5e,_0x2afb51,_0x325ceb;this['_annotationViews']['has'](_0x33bd1f['id'])?(_0x2afb51=this['_annotationViews']['get'](_0x33bd1f['id']),_0x459b5e=_0x2afb51['mainView']):(_0x459b5e=new _0x372285(_0x22f06b['locale'],_0x33bd1f,_0x100898,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5b80bc['get']('comments.editorConfig'),'licenseKey':_0x5b80bc['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5b80bc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5b80bc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5b80bc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x482ee1(_0x5b80bc['get']('locale')),'CommentView':_0x5b80bc['get']('comments')['CommentView'],'CommentsListView':_0x39e4e3,'CommentThreadInputView':_0x28f90b,'SuggestionView':_0x4b8649}),_0x459b5e['suggestionView']['acceptButton']['on']('execute',()=>{_0x22f06b['editing']['view']['focus']();}),_0x459b5e['suggestionView']['discardButton']['on']('execute',()=>{_0x22f06b['editing']['view']['focus']();}),_0x2afb51=_0xf85a21['createAnnotationView'](this['editor']['locale'],_0x459b5e),_0x2afb51['bind']('isDirty')['to'](_0x459b5e,'isDirty'),_0x2afb51['bind']('length')['to'](_0x459b5e),_0x2afb51['bind']('type')['to'](_0x459b5e,'type',_0x4801bb=>'suggestion-'+_0x4801bb),_0x459b5e['on']('escape',()=>{_0x325ceb['fire']('escape');}),this['_annotationViews']['set'](_0x33bd1f['id'],_0x2afb51));const _0x2e9960=_0x3ba211['createCommentThreadController'](_0x33bd1f['commentThread'],_0x459b5e),_0x58b0ea=new Ce(_0x22f06b,_0x33bd1f,_0x459b5e,_0x2e9960),_0x4368c6=_0x33bd1f['getAllAdjacentSuggestions']()['filter'](_0xddeb04=>_0xddeb04['isInContent']);_0x459b5e['descriptionParts']=_0x22f06b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4368c6),this['_suggestionToController']['set'](_0x33bd1f,_0x58b0ea),this['_viewToController']['set'](_0x459b5e,_0x58b0ea),_0x325ceb=_0xf85a21['createAnnotation']({'view':_0x2afb51,'target':()=>{const _0x2c5c11=[],_0x2197bd=_0x33bd1f['getAllAdjacentSuggestions']()['filter'](_0x163fff=>_0x163fff['isInContent']);for(const _0x343329 of _0x2197bd)_0x2c5c11['push'](..._0x343329['getMarkers']());return _0x5bcf31(_0x22f06b['editing'],_0x2c5c11);},'type':()=>'suggestion-'+_0x58b0ea['view']['type']}),_0x3ba211['_bindAnnotationToEditors'](_0x459b5e,_0x325ceb),_0xf85a21['add'](_0x325ceb),_0x4c9467['registerAnnotation'](_0x325ceb);}['_destroyController'](_0x1f9373){const _0x5a64de=this['editor']['plugins']['get']('CommentsRepository'),_0x539b7f=this['editor']['plugins']['get']('Annotations'),_0x526e1f=this['_suggestionToController']['get'](_0x1f9373),_0x19e724=_0x526e1f['view'],_0x38d152=_0x539b7f['getByInnerView'](_0x19e724);_0x5a64de['_unbindEditors'](_0x19e724),_0x38d152&&_0x539b7f['remove'](_0x38d152),this['_suggestionToController']['delete'](_0x1f9373),this['_viewToController']['delete'](_0x19e724),_0x526e1f['destroy']();}['_updateController'](_0x423179){if(!_0x423179['isInContent']||!this['_suggestionToController']['has'](_0x423179))return;const _0x369e8f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a76de=this['_suggestionToController']['get'](_0x423179),_0x46427c=_0x423179['getAllAdjacentSuggestions']();_0x2a76de['view']['descriptionParts']=_0x369e8f['descriptionFactory']['getDescriptions'](_0x46427c);}['destroy'](){for(const _0x3ebfa2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3ebfa2);for(const _0x40c273 of this['_annotationViews']['values']())_0x40c273['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3ba422){return'model'in _0x3ba422;}class k extends _0x27318c{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xdfd537){this['editor']['plugins']['get'](p)['adapter']=_0xdfd537;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x31127d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x31127d);}['getSuggestions']({skipNotAttached:_0x57e30b=!0x1,toJSON:_0x5e3d1c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x57e30b,'toJSON':_0x5e3d1c});}['getSuggestion'](_0x3f6c19){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3f6c19);}}const w=['Pagination'];class T extends _0x27318c{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4d7422=this['editor'];if(_0x4d7422['config']['define']('trackChangesData.editorCreator',_0x5a59b9=>{const _0x7ba9cc=_0x4d7422['model']['document']['getRootNames']()['reduce']((_0x7f093d,_0x2d4856)=>(_0x7f093d[_0x2d4856]='',_0x7f093d),{});return _0x4d7422['constructor']['create'](_0x7ba9cc,_0x5a59b9);}),'function'!=typeof _0x4d7422['config']['get']('trackChangesData')['editorCreator'])throw new _0x59c745('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3a0450){return N(this['editor'],!0x0,_0x3a0450);}['getDataWithDiscardedSuggestions'](_0x186ed3){return N(this['editor'],!0x1,_0x186ed3);}}class D extends _0x27318c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa4c202){function _0x2764cf(_0x7f9f15){return _0x7f9f15['map'](_0x9934c7=>String['fromCharCode'](_0x9934c7))['join']('');}super(_0xa4c202),this['result']='end',_0xa4c202[_0x2764cf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2764cf([0x76,0x69,0x65,0x77])][_0x2764cf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2764cf([0x61,0x75,0x74,0x6f]),_0xa4c202[_0x2764cf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2764cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2764cf([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2764cf([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2764cf([0x6f,0x6b])});}['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 Fe(_0x595fab){return void 0x0!==_0x595fab['getRootsAttributes'];}async function N(_0x5b06c6,_0x4325c0,_0x49971c){const _0x38d516=_0x419258(_0x5b06c6,w);_0x38d516['plugins']['push'](p,D),_0x38d516['rootsAttributes']=Fe(_0x5b06c6)?_0x5b06c6['getRootsAttributes']():void 0x0;const _0x1445c6=document['createDocumentFragment'](),_0x2232a5=_0x5b06c6['config']['get']('trackChangesData')['editorCreator'],_0x53429b=await _0x2232a5(_0x38d516,()=>function(_0x159560){const _0x5cd7f9=document['createElement']('div');return _0x159560['appendChild'](_0x5cd7f9),_0x5cd7f9;}(_0x1445c6));!function(_0x46920f,_0x302eb1){const _0x2cb714=_0x46920f['model']['document']['getRootNames']()['reduce']((_0xcc8b69,_0x224da8)=>(_0xcc8b69[_0x224da8]=_0x46920f['data']['get']({'rootName':_0x224da8}),_0xcc8b69),{}),_0x248806=_0x46920f['plugins']['get']('Users')['users']['map'](_0x9d82c2=>({'id':_0x9d82c2['id'],'name':_0x9d82c2['name']})),_0x48e1b8=_0x46920f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x41a6e9=_0x46920f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19cab1=_0x302eb1['plugins']['get']('Users'),_0x4ebfde=_0x302eb1['plugins']['get']('TrackChangesEditing'),_0x2493b1=_0x302eb1['plugins']['get']('CommentsRepository');for(const _0x1a4f73 of _0x2493b1['getCommentThreads']())_0x1a4f73['remove']();for(const _0x184583 of _0x248806)_0x19cab1['getUser'](_0x184583['id'])||_0x19cab1['addUser'](_0x184583);_0x19cab1['me']||_0x19cab1['useAnonymousUser']();for(const _0x2bbf4d of _0x41a6e9)_0x2493b1['addCommentThread'](_0x2bbf4d);for(const _0x5ef04b of _0x48e1b8)_0x4ebfde['addSuggestionData'](_0x5ef04b);_0x302eb1['data']['set'](_0x2cb714);}(_0x5b06c6,_0x53429b),_0x53429b['execute'](_0x4325c0?'acceptAllSuggestions':'discardAllSuggestions');const _0x3762a6=Fe(_0x53429b)?_0x53429b['getFullData'](_0x49971c):_0x53429b['data']['get'](_0x49971c);return await _0x53429b['destroy'](),_0x3762a6;}class Me extends _0x1a56fc{['options'];constructor(_0x309e9e,_0x28166c){super(_0x309e9e),this['options']=_0x28166c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x492415,_0x12ad5d){if(!this['element'])return;const _0x1ce89c=[];for(const [_0x32e00f,_0x3f4fd4]of _0x492415){const _0x39d06e=document['createElement']('div');_0x39d06e['setAttribute']('data-ck-root-name',_0x32e00f),_0x39d06e['className']=_0x3f4fd4['classes']+'\x20ck-track-changes-preview__root-container',_0x39d06e['innerHTML']=_0x3f4fd4['content'],_0x1ce89c['push'](_0x39d06e);}_0x12ad5d(this['element'],_0x1ce89c),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x373a51){super(_0x373a51),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1c769b=this['editor'],_0x5d1996=_0x1c769b['locale'],_0x1ee608=_0x1c769b['plugins']['get']('Dialog');let _0x121de3;const _0x174794=function(_0x289dc1){const _0x3abcf0={};if('editables'in _0x289dc1['ui']['view']){for(const [_0x4ee433,_0x5e11ca]of Object['entries'](_0x289dc1['ui']['view']['editables']))_0x3abcf0[_0x4ee433]=_0x5e11ca['element'];}else _0x3abcf0[_0x289dc1['model']['document']['getRootNames']()[0x0]]=_0x289dc1['ui']['view']['editable']['element'];return _0x3abcf0;}(_0x1c769b),_0x204971=function(_0x42c844){let _0x584171=0x0;for(const _0x26f860 of Object['values'](_0x42c844))_0x584171=Math['max'](_0x584171,_0x26f860['getBoundingClientRect']()['width']);let _0x1b9517=0x0;for(const _0x1ae3ca of Object['values'](_0x42c844))_0x1b9517+=_0x1ae3ca['getBoundingClientRect']()['height'];const _0x2371c7=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4c4c84=Math['min'](_0x1b9517,_0x2371c7);return{'width':_0x584171,'height':_0x4c4c84};}(_0x174794);_0x1ee608['show']({'id':'finalContentPreview','title':o(_0x5d1996,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5d1996,{'dialogRects':_0x204971}),'onHide':()=>{_0x121de3['detachFromDom']();},'onShow':()=>{_0x1c769b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x21b85e=>{const _0xcdbbe2=this['_standarizeRootsData'](_0x21b85e,_0x1c769b,_0x174794);_0x1ee608['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xcdbbe2,_0x1c769b['config']['get']('trackChanges.preview.renderFunction'));}),_0x121de3=new _0x4fc2a7(_0x5d1996,[_0x1ee608['view']]),_0x121de3['attachToDom'](),_0x121de3['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1c769b['once']('destroy',()=>{_0x121de3['detachFromDom']();});const _0x2accba=_0x1ee608['view']['headerView']['class'];_0x1ee608['view']['headerView']['class']=_0x2accba?_0x2accba+'\x20ck-reset_all':'ck-reset_all',_0x1ee608['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1ee608['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2161c0=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4b79e7=_0x2161c0['previewMode'],_0x26b39d={};if('$labels'===_0x4b79e7){for(const _0x100c4a of _0x2161c0['getMergeFieldsIds']())_0x26b39d[_0x100c4a]=_0x2161c0['getLabel'](_0x100c4a)||_0x100c4a;}else{const _0xb8aed2='$defaultValues'===_0x4b79e7?_0x2161c0['getDefaultValues']():_0x2161c0['getDataSetValues'](_0x4b79e7,!0x0);for(const _0x508ea8 of Object['entries'](_0xb8aed2)){const [_0x5095b4,_0x89d1a7]=_0x508ea8;_0x26b39d[_0x5095b4]=null!==_0x89d1a7?_0x89d1a7:_0x2161c0['getLabel'](_0x5095b4)||_0x5095b4;}}return{'mergeFieldsData':_0x26b39d};}['_standarizeRootsData'](_0x39663c,_0x405d42,_0x2ac187){let _0x4869ea;if('string'==typeof _0x39663c){const _0x3829af=_0x405d42['model']['document']['getRootNames']()[0x0];_0x4869ea={[_0x3829af]:_0x39663c};}else _0x4869ea=_0x39663c;const _0x5a670f=this['_fixMediaEmbeds'](_0x4869ea,_0x405d42),_0x32c690=function(_0x150b88,_0x38e6b6){for(const [_0x325dbd,_0x3c7f48]of _0x150b88)_0x3c7f48['classes']=_0x38e6b6[_0x325dbd]['classList']['value']['replace']('ck-focused','');return _0x150b88;}(this['_sortRoots'](_0x405d42)['reduce']((_0x2a6001,_0x5b1a33)=>(_0x2a6001['push']([_0x5b1a33,{'content':_0x5a670f[_0x5b1a33],'classes':''}]),_0x2a6001),[]),_0x2ac187);return _0x32c690;}['_fixMediaEmbeds'](_0x11d0a7,_0x449b7c){if(!_0x449b7c['plugins']['has']('MediaEmbedEditing'))return _0x11d0a7;const _0x291e3e=_0x449b7c['plugins']['get']('MediaEmbedEditing');for(const [_0x454a11,_0x20d0ee]of Object['entries'](_0x11d0a7)){const _0x1c87e8=document['createElement']('div');_0x1c87e8['innerHTML']=_0x20d0ee,(_0x1c87e8['querySelectorAll']('figure.media')['forEach'](_0x18c3f7=>{const _0x45e7b3=_0x18c3f7['querySelector']('oembed');if(_0x45e7b3){const _0x57fea0=_0x45e7b3['getAttribute']('url');if(_0x57fea0){const _0x57d11a=_0x291e3e['registry']['getMediaViewElement'](new _0x32eaa7(_0x449b7c['editing']['view']['document']),_0x57fea0,{'elementName':'','renderForEditingView':!0x0}),_0x59af45=document['createElement']('div');_0x59af45['classList']['add']('ck-media__wrapper'),_0x57d11a['render'](_0x59af45,_0x449b7c['editing']['view']['domConverter']),_0x45e7b3['replaceWith'](_0x59af45);}}}),_0x11d0a7[_0x454a11]=_0x1c87e8['innerHTML']);}return _0x11d0a7;}['_sortRoots'](_0x4fe7d9){if(!function(_0x48914f){return void 0x0!==_0x48914f['getRootsAttributes'];}(_0x4fe7d9))return _0x4fe7d9['model']['document']['getRootNames']();const _0x3f7c2f=[],_0x49273e=new Map();for(const _0x93a6d1 of _0x4fe7d9['model']['document']['getRootNames']()){const _0xe1daae=_0x4fe7d9['editing']['view']['getDomRoot'](_0x93a6d1)['getClientRects']()['item'](0x0);_0x3f7c2f['push'](_0x93a6d1),_0x49273e['set'](_0x93a6d1,_0xe1daae);}return _0x3f7c2f['sort']((_0x5e1a4a,_0x44098f)=>{const _0x1074cd=_0x49273e['get'](_0x5e1a4a),_0x527ff6=_0x49273e['get'](_0x44098f);return _0x1074cd['y']-_0x527ff6['y']||_0x1074cd['x']-_0x527ff6['x'];}),_0x3f7c2f;}}class te extends _0x27318c{static get['requires'](){return[T,_0x24d115];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4fecea){super(_0x4fecea),_0x4fecea['commands']['add']('previewFinalContent',new re(this['editor'])),_0x4fecea['config']['define']('trackChanges.preview.renderFunction',(_0x229045,_0x31a762)=>{for(const _0x478dad of _0x31a762)_0x229045['appendChild'](_0x478dad);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as Qt,Plugin as _0x32720e,PendingActions as _0x2ac36e,icons as _0x230c64}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xfec3cf,ObservableMixin as _0x132ed3,uid as _0x2cd620,priorities as _0x4368d6,insertToPriorityArray as _0x6a8e58,logWarning as _0x9317a6,getEnvKeystrokeText as _0x315ef0,FocusTracker as _0x23ef9f,KeystrokeHandler as _0x3bdab9,Collection as _0x33f543}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x53def7,View as _0x11e5db,ViewCollection as _0x5c8dec,FocusCycler as ts,ViewModel as _0x41358f,createDropdown as _0x4cb20b,SplitButtonView as _0x4b215d,addListToDropdown as _0x4322f7,MenuBarMenuView as _0x3a12bc,MenuBarMenuListView as _0x376e85,ListSeparatorView as _0xa8bd4d,MenuBarMenuListItemView as _0x5369f1,MenuBarMenuListItemButtonView as _0x4ce01f,BodyCollection as _0x2be798,Dialog as _0x26d4e0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x48e0a0,hashObject as _0x2ae810,surroundingMarkersDetector as _0x439ccd,FOCUS_ANNOTATION_KEYSTROKE as _0x2978b7,AriaDescriptionView as _0x2b5eba,setupThreadKeyboardNavigation as _0x484b13,trimHtml as _0x54b9fd,UserView as _0xf70ba3,LateFocusButtonView as _0xc6c968,getDateTimeFormatter as _0x1872cb,getAllMarkersDomElementsSorted as _0xf76376,sanitizeEditorConfig as _0x46ee85}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x35966e,LiveRange as _0x114c36,LivePosition as _0xc42979,DowncastWriter as _0x35eebe}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x58a981,toWidget as _0x1a00cd}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x597c63,set as _0x3c5465,isEqual as _0x2cb703,unset as _0x532bc6,omit as Et}from'lodash-es';import{Delete as _0x1c8203,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x21923b,ShiftEnter as _0x31c31b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x19bee3,_0xf0bc9c){super(_0x19bee3),this['_enabledCommands']=_0xf0bc9c,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 _0x1f5b07 of this['editor']['commands']['commands']())_0x1f5b07['affectsData']&&!this['_enabledCommands']['has'](_0x1f5b07)&&_0x1f5b07['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x34eef6 of this['editor']['commands']['commands']())_0x34eef6['affectsData']&&!this['_enabledCommands']['has'](_0x34eef6)&&_0x34eef6['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x391e66,_0x31cdcb){super(_0x391e66),this['_suggestions']=_0x31cdcb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4b63d0){const _0xa2a008=this['_suggestions']['get'](_0x4b63d0);if(!_0xa2a008)throw new _0xfec3cf('track-changes-accept-suggestion-not-found',this);const _0x1c1066=_0xa2a008['getRanges']();this['editor']['model']['canEditAt'](_0x1c1066)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xa2a008);}}class R extends Qt{['_suggestions'];constructor(_0x272973,_0x465374){super(_0x272973),this['_suggestions']=_0x465374,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3aaf90){const _0x41e61d=this['_suggestions']['get'](_0x3aaf90);if(!_0x41e61d)throw new _0xfec3cf('track-changes-discard-suggestion-not-found',this);const _0xe9a81=_0x41e61d['getRanges']();this['editor']['model']['canEditAt'](_0xe9a81)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x41e61d);}}function ns(_0x4f13d3,_0x156cd0){let _0x2fb65f='';return _0x2fb65f+=_0x4f13d3['split']('*')['map']((_0x2f418b,_0x3098b9)=>_0x3098b9%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2f418b)+'</span>':nn(_0x2f418b))['join'](''),_0x156cd0&&(_0x2fb65f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x156cd0['value']+'\x22\x20title=\x22'+_0x156cd0['title']+'\x22></span>'),_0x2fb65f;}function nn(_0x239484){const _0x3c54b0=document['createElement']('span');return _0x3c54b0['innerText']=_0x239484,_0x3c54b0['innerHTML'];}function Xt(_0x287f5c){return _0x287f5c['sort']((_0x57e93d,_0x1e5779)=>'deletion'==_0x57e93d['type']&&'deletion'!=_0x1e5779['type']?-0x1:'deletion'!=_0x57e93d['type']&&'deletion'==_0x1e5779['type']?0x1:0x0);}function to(_0x22d054,_0x4c8144){let _0x548c94,_0x87ff77=0x0;const _0x1c3457=[],_0x366031=_0x4c8144['schema'];for(;_0x87ff77<_0x22d054['length'];){const _0x174f8c=_0x22d054[_0x87ff77],_0x598734=_0x22d054[_0x87ff77+0x1];_0x548c94||(_0x548c94=_0x4c8144['createPositionBefore'](_0x174f8c)),on(_0x4c8144,_0x174f8c,_0x598734)||(_0x1c3457['push'](_0x4c8144['createRange'](_0x548c94,_0x366031['isObject'](_0x174f8c)?_0x4c8144['createPositionAfter'](_0x174f8c):_0x4c8144['createPositionAt'](_0x174f8c,'end'))),_0x548c94=null),_0x87ff77++;}return _0x1c3457;}function on(_0x18074e,_0x88aaed,_0x49d018){if(!_0x49d018)return!0x1;const _0x26c658=_0x18074e['createPositionAfter'](_0x88aaed),_0x3875e3=_0x18074e['createPositionBefore'](_0x49d018);return _0x26c658['isTouching'](_0x3875e3);}function Yt(_0x1eed81,_0x4f900b,_0x1b9427){for(;_0x1b9427['length'];){const _0x335049=_0x1b9427['splice'](0x0,0x64);_0x1eed81['change'](()=>{for(const _0x549eb0 of _0x335049)_0x549eb0['isInContent']&&_0x4f900b['execute'](_0x549eb0['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x403efe,_0x41e8c4,_0x5a11fb){super(_0x403efe),this['_command']=_0x41e8c4,this['_suggestions']=_0x5a11fb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x511179=Array['from'](this['_suggestions']['values']())['some'](_0x3fe36d=>_0x3fe36d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x511179;}['execute'](){const _0xf4e4fe=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x3203de of _0xf4e4fe){const _0x1e83af=_0x3203de['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1e83af))return;}Yt(this['editor']['model'],this['_command'],_0xf4e4fe);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x334fed,_0x447029,_0x367abb){super(_0x334fed),this['_command']=_0x447029,this['_suggestions']=_0x367abb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x350a3a=this['editor']['model']['document']['selection'],_0x4d97f1=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x9f6d3e,_0x30fc1c){const _0x42609b=Array['from'](_0x9f6d3e['getRanges']()),_0x5902fb=new Set();for(const _0xc7bfcb of _0x30fc1c)if(_0xc7bfcb['isInContent']){for(const _0x412be4 of _0x42609b)for(const _0x5eb5f8 of _0xc7bfcb['getRanges']())(_0x412be4['isIntersecting'](_0x5eb5f8)||_0x9f6d3e['isCollapsed']&&!_0xc7bfcb['isMultiRange']&&_0xc7bfcb['next']&&_0x5eb5f8['end']['isTouching'](_0x412be4['start']))&&_0x5902fb['add'](_0xc7bfcb);}return _0x5902fb;}(_0x350a3a,_0x4d97f1),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x27d994=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x4b8ae2 of _0x27d994){const _0x520c58=_0x4b8ae2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x520c58))return;}Yt(this['editor']['model'],this['_command'],_0x27d994);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x132ed3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x9ef453,_0x85f06b){super(),this['id']=_0x85f06b['id'],this['type']=_0x85f06b['type'],this['subType']=_0x85f06b['subType']||null,this['author']=_0x85f06b['author'],this['creator']=_0x85f06b['creator']||_0x85f06b['author'],this['isExternal']=Boolean(_0x85f06b['attributes']&&_0x85f06b['attributes']['@external']),this['data']=null,this['_model']=_0x9ef453,this['_onAccept']=_0x85f06b['onAccept'],this['_onDiscard']=_0x85f06b['onDiscard'],this['_onAttributesChange']=_0x85f06b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x85f06b['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 _0x542422=this;for(;_0x542422['previous'];)_0x542422=_0x542422['previous'];return _0x542422;}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'](_0x2d343d){this['_markerNames']['add'](_0x2d343d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x56441b=>this['_model']['markers']['get'](_0x56441b))['filter'](_0x10d198=>_0x10d198);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4cf197=>{for(const _0x4cf96e of this['getMarkers']())_0x4cf197['removeMarker'](_0x4cf96e);}),this['_markerNames']['clear']();}['removeMarker'](_0x565652){this['_model']['change'](_0x38b695=>{_0x38b695['removeMarker'](_0x565652);}),this['_markerNames']['delete'](_0x565652);}['addRange'](_0xff05ec){const _0x4a1a62='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4a1a62),this['_model']['change'](_0x578870=>{_0x578870['addMarker'](_0x4a1a62,{'range':_0xff05ec,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x31c757){for(const _0xcd7aa4 of this['getRanges']())if(_0xcd7aa4['isIntersecting'](_0x31c757))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1b9af8=>_0x1b9af8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x16abd1,_0x494f2b)=>[..._0x16abd1,..._0x494f2b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2faa97=this['getRanges']();if(0x1!=_0x2faa97['length'])return null;const _0x3f135d=_0x2faa97[0x0],_0x4f5737=_0x3f135d['start']['nodeAfter'],_0x316a93=_0x3f135d['end']['nodeBefore'];return _0x4f5737 instanceof _0x35966e?_0x4f5737!=_0x316a93?null:_0x4f5737: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 _0xb276cb=[];let _0x258ccd=this['head'];for(;_0x258ccd;)_0xb276cb['push'](_0x258ccd),_0x258ccd=_0x258ccd['next'];return _0xb276cb;}['setAttribute'](_0xd38015,_0x2b2f69){const _0x7d143e=_0x597c63(this['attributes']);_0x3c5465(_0x7d143e,_0xd38015,_0x2b2f69),_0x2cb703(_0x7d143e,this['attributes'])||(this['attributes']=_0x7d143e,this['_onAttributesChange'](_0x7d143e));}['removeAttribute'](_0xfef8ce){const _0x2d557e=_0x597c63(this['attributes']);_0x532bc6(_0x2d557e,_0xfef8ce),_0x2cb703(_0x2d557e,this['attributes'])||(this['attributes']=_0x2d557e,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 _0x2cd620()['substr'](0x1,0x5);}}function o(_0x1de9d1,_0x247288,_0x44c7c3){const _0xcd7e49=_0x1de9d1['t'],t=_0x1de9d1['t'];switch(_0x247288){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x44c7c3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x44c7c3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x44c7c3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x44c7c3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x44c7c3);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',_0x44c7c3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x44c7c3);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x44c7c3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x44c7c3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x44c7c3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x44c7c3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x44c7c3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x44c7c3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x44c7c3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x44c7c3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x44c7c3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x44c7c3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x44c7c3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x44c7c3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x44c7c3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x44c7c3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x44c7c3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x44c7c3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x44c7c3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x44c7c3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x44c7c3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x44c7c3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x44c7c3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x44c7c3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x44c7c3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x44c7c3);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'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x44c7c3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x44c7c3);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x44c7c3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x44c7c3);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 _0xcd7e49({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x44c7c3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xcd7e49({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x44c7c3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x44c7c3);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x44c7c3);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x44c7c3);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x44c7c3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x247288;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x375f19,_0x16acef){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x375f19,this['_locale']=_0x16acef;}['getDescriptions'](_0x53a925){const _0x57e492=[],_0x51bbb6=new Set(),_0x317526=new Set();for(let _0x6298c1=0x0;_0x6298c1<_0x53a925['length'];_0x6298c1++){const _0x3aab2f=_0x53a925[_0x6298c1];if(!_0x3aab2f['isInContent'])continue;const _0x4c43a6=this['_handleCustomCallbackDescription'](_0x3aab2f);if(_0x4c43a6){if(null!=_0x3aab2f['subType']){if(_0x51bbb6['has'](_0x3aab2f['subType']))continue;_0x51bbb6['add'](_0x3aab2f['subType']);}_0x57e492['push'](_0x4c43a6);}else{if('attribute'!=_0x3aab2f['type'])'insertion'!=_0x3aab2f['type']&&'deletion'!=_0x3aab2f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x57e492,_0x3aab2f,_0x53a925[_0x6298c1+0x1]);else{const _0x4b55c2=_0x3aab2f['data']['key'];if(_0x317526['has'](_0x4b55c2))continue;_0x317526['add'](_0x3aab2f['data']['key']),_0x4b55c2==m?this['_handleRenameSuggestionDescription'](_0x57e492,_0x3aab2f):this['_handleAttributeSuggestionDescription'](_0x57e492,_0x3aab2f);}}}return this['_resolveDescriptionItems'](_0x57e492);}['registerDescriptionCallback'](_0x2ae9f3){this['_customCallbacks']['push'](_0x2ae9f3);}['registerElementLabel'](_0x22be5f,_0xc30f80,_0x3debf0=_0x4368d6['normal']){'function'==typeof _0x22be5f?_0x6a8e58(this['_itemLabelsCallbacks'],{'matchingCallback':_0x22be5f,'label':_0xc30f80,'priority':_0x3debf0}):this['_itemLabels']['set'](_0x22be5f,_0xc30f80);}['registerAttributeLabel'](_0xa4dbc7,_0xd493c6){this['_attributeLabels']['set'](_0xa4dbc7,_0xd493c6);}['getItemLabel'](_0x31505f,_0x56a92b=0x1){let _0x589c45;for(const _0x12fbf1 of this['_itemLabelsCallbacks'])if(_0x12fbf1['matchingCallback'](_0x31505f)){_0x589c45=_0x12fbf1['label'];break;}return _0x589c45||(_0x589c45=this['_itemLabels']['get'](_0x31505f['name'])),_0x589c45?_0x589c45(_0x56a92b):0x1!==_0x56a92b?_0x56a92b+'\x20'+_0x31505f['name']+'s':''+_0x31505f['name'];}['_addDescriptionItems'](_0x8cae64,_0xcde22a){const _0x434737=_0xcde22a['getFirstRange']()['getWalker'](),_0x311530='insertion'==_0xcde22a['type']?'add':'remove';for(const _0x398de6 of _0x434737){const _0x1cc0f0=_0x398de6['item'],_0x2efaa1=_0x8cae64[_0x8cae64['length']-0x1];if(_0x1cc0f0['is']('$textProxy'))_0x2efaa1&&_0x2efaa1['type']['indexOf']('Container')>-0x1&&_0x8cae64['pop'](),_0x2efaa1&&'text'==_0x2efaa1['type']?_0x2efaa1[_0x311530]+=_0x1cc0f0['data']:_0x8cae64['push']({'type':'text','add':'add'==_0x311530?_0x1cc0f0['data']:'','remove':'remove'==_0x311530?_0x1cc0f0['data']:''});else{if(this['_schema']['isObject'](_0x1cc0f0)){const _0x4d2fd6=_0x1cc0f0;if(_0x2efaa1&&_0x2efaa1['type']['indexOf']('Container')>-0x1&&_0x8cae64['pop'](),'elementEnd'==_0x398de6['type'])continue;_0x2efaa1&&_0x2efaa1['type']==_0x311530+'Object'&&_0x2efaa1['element']['name']==_0x4d2fd6['name']?_0x2efaa1['quantity']++:_0x8cae64['push']({'type':_0x311530+'Object','element':_0x4d2fd6,'quantity':0x1}),_0x434737['skip'](_0x1f7ea1=>!('elementEnd'==_0x1f7ea1['type']&&_0x1f7ea1['item']==_0x1cc0f0));}else{if(this['_schema']['checkChild'](_0x1cc0f0,'$text')||_0x1cc0f0['is']('element','softBreak')){const _0x3ed680=_0x1cc0f0;if('add'==_0x311530&&'elementStart'==_0x398de6['type']||'remove'==_0x311530&&'elementEnd'==_0x398de6['type'])continue;if(_0x2efaa1&&-0x1==_0x2efaa1['type']['indexOf']('Container')){'text'==_0x2efaa1['type']&&(_0x2efaa1[_0x311530]+='\x0a');continue;}let _0x4b877e;if(_0x4b877e='add'==_0x311530?_0x3ed680['nextSibling']&&!this['_schema']['isObject'](_0x3ed680['nextSibling'])?_0x3ed680['nextSibling']:null:_0x3ed680['previousSibling']&&!this['_schema']['isObject'](_0x3ed680['previousSibling'])?_0x3ed680['previousSibling']:null,_0x3ed680['isEmpty']||_0x4b877e&&_0x4b877e['isEmpty']){const _0xd4223f=_0x4b877e&&_0x4b877e['isEmpty']?_0x4b877e:_0x3ed680;_0x2efaa1&&_0x2efaa1['type']==_0x311530+'EmptyContainer'&&_0x2efaa1['element']['name']==_0xd4223f['name']?_0x2efaa1['quantity']++:_0x8cae64['push']({'type':_0x311530+'EmptyContainer','element':_0xd4223f,'quantity':0x1});}else _0x8cae64['push']({'type':_0x311530+'Container','element':_0x3ed680});}}}}}['_resolveDescriptionItems'](_0x1134ef){const _0x21ff4d=this['_locale'],_0x23ec94=[],_0x399ab0=[],_0x1e36f2=[];for(const _0x3846f4 of _0x1134ef)switch(_0x3846f4['type']){case'text':if(_0x3846f4['add']=_0x3846f4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3846f4['remove']=_0x3846f4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3846f4['add']&&''!=_0x3846f4['remove']){_0x23ec94['push']({'type':'replace','content':o(_0x21ff4d,'REPLACE_TEXT',['\x22'+_0x3846f4['remove']+'\x22','\x22'+_0x3846f4['add']+'\x22'])});continue;}if(null!=_0x3846f4['add']['match'](/^ +$/)){_0x23ec94['push']({'type':'insertion','content':o(_0x21ff4d,'*Insert:*\x20%0',o(_0x21ff4d,'ELEMENT_SPACE',_0x3846f4['add']['length']))});continue;}if(null!=_0x3846f4['remove']['match'](/^ +$/)){_0x23ec94['push']({'type':'deletion','content':o(_0x21ff4d,'*Remove:*\x20%0',o(_0x21ff4d,'ELEMENT_SPACE',_0x3846f4['remove']['length']))});continue;}if(''!=_0x3846f4['add']){_0x23ec94['push']({'type':'insertion','content':o(_0x21ff4d,'*Insert:*\x20%0','\x22'+_0x3846f4['add']+'\x22')});continue;}_0x23ec94['push']({'type':'deletion','content':o(_0x21ff4d,'*Remove:*\x20%0','\x22'+_0x3846f4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x23ec94['push']({'type':'insertion','content':o(_0x21ff4d,'*Insert:*\x20%0',this['getItemLabel'](_0x3846f4['element'],_0x3846f4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x23ec94['push']({'type':'deletion','content':o(_0x21ff4d,'*Remove:*\x20%0',this['getItemLabel'](_0x3846f4['element'],_0x3846f4['quantity']))});continue;case'addContainer':_0x23ec94['push']({'type':'insertion','content':o(_0x21ff4d,'*Split:*\x20%0',this['getItemLabel'](_0x3846f4['element'],_0x3846f4['quantity']))});continue;case'removeContainer':_0x23ec94['push']({'type':'deletion','content':o(_0x21ff4d,'*Merge:*\x20%0',this['getItemLabel'](_0x3846f4['element'],_0x3846f4['quantity']))});continue;case'addFormat':_0x399ab0['push'](_0x3846f4['key']);continue;case'removeFormat':_0x1e36f2['push'](_0x3846f4['key']);continue;default:_0x23ec94['push'](_0x3846f4);}if(_0x399ab0['length']){const _0x4aa2fd=_0x399ab0['map'](_0x37c919=>this['_attributeLabels']['has'](_0x37c919)?this['_attributeLabels']['get'](_0x37c919):_0x37c919)['join'](',\x20');_0x23ec94['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4aa2fd)});}if(_0x1e36f2['length']){const _0xac5958=_0x1e36f2['map'](_0x4662bd=>this['_attributeLabels']['has'](_0x4662bd)?this['_attributeLabels']['get'](_0x4662bd):_0x4662bd)['join'](',\x20');_0x23ec94['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xac5958)});}return _0x23ec94;}['_handleCustomCallbackDescription'](_0x5e6c5c){for(const _0xe2c589 of this['_customCallbacks']){const _0x3b9628=_0xe2c589(_0x5e6c5c);if(_0x3b9628&&'type'in _0x3b9628)return _0x3b9628;}}['_handleAttributeSuggestionDescription'](_0x4decc7,_0x46161e){const _0x48d0f5=_0x46161e['data'],_0x33974c=void 0x0===_0x48d0f5['newValue']?'removeFormat':'addFormat';_0x4decc7['push']({'type':_0x33974c,'key':_0x48d0f5['key']});}['_handleRenameSuggestionDescription'](_0xfe95b4,_0x43ba1f){_0xfe95b4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x43ba1f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x112db4,_0x1ad483,_0x5ae806){if(this['_addDescriptionItems'](_0x112db4,_0x1ad483),_0x5ae806&&_0x5ae806['getFirstRange']()&&!_0x1ad483['getFirstRange']()['end']['isEqual'](_0x5ae806['getFirstRange']()['start'])){const _0x21185e=_0x112db4[_0x112db4['length']-0x1],_0x5da10a='insertion'==_0x1ad483['type']?'add':'remove';_0x21185e&&'text'==_0x21185e['type']&&(_0x21185e[_0x5da10a]+='\x0a');}}}class U extends _0x32720e{['afterInit'](){const _0x424b07=this['editor'],_0x51a309=_0x424b07['plugins']['get']('TrackChangesEditing');_0x424b07['commands']['get']('showAIAssistant')&&_0x51a309['enableCommand']('showAIAssistant');}}class V extends _0x32720e{['afterInit'](){const _0x37f295=this['editor'],_0x404570=_0x37f295['locale'];if(!_0x37f295['plugins']['has']('AlignmentEditing'))return;const _0x1c1a11=_0x37f295['plugins']['get']('TrackChangesEditing');_0x1c1a11['enableDefaultAttributesIntegration']('alignment'),_0x1c1a11['registerBlockAttribute']('alignment'),_0x1c1a11['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x404570,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2654ba=this['editor'],_0x379601=_0x2654ba['locale'];_0x2654ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10c496=>{if('formatBlock'!=_0x10c496['type'])return;const {data:_0x181a48}=_0x10c496;if(_0x181a48&&'alignment'==_0x181a48['commandName']){const _0x5d8bd4=_0x181a48['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x379601,'*Format:*\x20%0',function(_0x5178f2){switch(_0x5178f2){case'left':return o(_0x379601,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x379601,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x379601,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x379601,'FORMAT_JUSTIFY_TEXT');}}(_0x5d8bd4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x32720e{['afterInit'](){const _0x31ed5b=this['editor'],_0x1c1e08=_0x31ed5b['plugins']['get']('TrackChangesEditing'),_0x5c813c=_0x31ed5b['locale'];for(const _0x3cec06 of ti){if(!_0x31ed5b['plugins']['has'](_0x3cec06))continue;const _0x83fe95=_0x3cec06['slice'](0x0,-0x7)['toLowerCase'](),_0xd387ff='FORMAT_'+_0x83fe95['toUpperCase']();_0x1c1e08['enableDefaultAttributesIntegration'](_0x83fe95),_0x1c1e08['registerInlineAttribute'](_0x83fe95),_0x1c1e08['descriptionFactory']['registerAttributeLabel'](_0x83fe95,o(_0x5c813c,_0xd387ff));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3eb2a0=this['editor'],_0x597600=_0x3eb2a0['locale'],_0x12c7cd=_0x3eb2a0['plugins']['get']('TrackChangesEditing');function _0x2e9b16(_0x1aac11,_0x505886){_0x12c7cd['descriptionFactory']['registerDescriptionCallback'](_0xf1c2be=>{if('formatInline'!=_0xf1c2be['type'])return;const {data:_0x2b429e}=_0xf1c2be;return _0x2b429e&&_0x2b429e['commandName']===_0x1aac11?_0x2b429e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x597600,'*Format:*\x20%0',_0x505886)}:{'type':'format','content':o(_0x597600,'*Remove\x20format:*\x20%0',_0x505886)}:void 0x0;});}_0x2e9b16('bold',o(_0x597600,'FORMAT_BOLD')),_0x2e9b16('italic',o(_0x597600,'FORMAT_ITALIC')),_0x2e9b16('underline',o(_0x597600,'FORMAT_UNDERLINE')),_0x2e9b16('code',o(_0x597600,'FORMAT_CODE')),_0x2e9b16('strikethrough',o(_0x597600,'FORMAT_STRIKETHROUGH')),_0x2e9b16('subscript',o(_0x597600,'FORMAT_SUBSCRIPT')),_0x2e9b16('superscript',o(_0x597600,'FORMAT_SUPERSCRIPT'));}}class F extends _0x32720e{['afterInit'](){const _0x5e0b29=this['editor'],_0x3eb320=_0x5e0b29['locale'];if(!_0x5e0b29['plugins']['has']('BlockQuoteEditing'))return;const _0x153ded=_0x5e0b29['plugins']['get']('TrackChangesEditing'),_0x5943e3=this['editor']['commands']['get']('blockQuote');_0x153ded['enableCommand']('blockQuote',(_0x112129,_0x32db20={})=>{const _0x4d876e=this['editor']['model']['document']['selection'],_0x40d4b1=_0x32db20&&void 0x0!==_0x32db20['forceValue']?_0x32db20['forceValue']:!_0x5943e3['value'];let _0x62d71c=[];if(_0x40d4b1){const _0x5ffe0=Array['from'](_0x4d876e['getSelectedBlocks']())['filter'](_0x2c620c=>oo(_0x2c620c)||function(_0x3bded4,_0x4be94d){const _0x5a2e53=_0x4be94d['checkChild'](_0x3bded4['parent'],'blockQuote'),_0x24bab2=_0x4be94d['checkChild'](['$root','blockQuote'],_0x3bded4);return _0x5a2e53&&_0x24bab2;}(_0x2c620c,this['editor']['model']['schema']));_0x62d71c=to(_0x5ffe0,_0x5e0b29['model']);}else{const _0x12e98d=Array['from'](_0x4d876e['getSelectedBlocks']())['filter'](_0x1082f6=>oo(_0x1082f6));_0x62d71c=to(_0x12e98d,_0x5e0b29['model']);}_0x5e0b29['model']['change'](()=>{for(const _0x194f46 of _0x62d71c)_0x153ded['markBlockFormat'](_0x194f46,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x40d4b1}]});});}),_0x153ded['descriptionFactory']['registerDescriptionCallback'](_0x241261=>{const {data:_0x56fb0c}=_0x241261;if(_0x56fb0c&&'blockQuote'==_0x56fb0c['commandName']){const _0x5a6b9d=o(_0x3eb320,'ELEMENT_BLOCK_QUOTE');return _0x56fb0c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3eb320,'*Set\x20format:*\x20%0',_0x5a6b9d)}:{'type':'format','content':o(_0x3eb320,'*Remove\x20format:*\x20%0',_0x5a6b9d)};}});}}function oo(_0x257482){return'blockQuote'==_0x257482['parent']['name'];}class L extends _0x32720e{['afterInit'](){const _0x183951=this['editor'],_0x134daf=_0x183951['locale'],_0x52ca5d=_0x183951['plugins']['get']('TrackChangesEditing');_0x183951['plugins']['has']('BookmarkEditing')&&(_0x52ca5d['enableCommand']('insertBookmark'),_0x52ca5d['enableDefaultAttributesIntegration']('updateBookmark'),_0x52ca5d['registerBlockAttribute']('bookmarkId'),_0x52ca5d['descriptionFactory']['registerDescriptionCallback'](_0x57e986=>{if('insertion'!=_0x57e986['type']&&'deletion'!=_0x57e986['type']&&'attribute'!=_0x57e986['type'])return;const _0x51ab10=_0x57e986['getContainedElement']();if(null==_0x51ab10)return;if(!_0x51ab10['is']('element','bookmark'))return;const _0x12c50a=_0x51ab10['getAttribute']('bookmarkId');if('insertion'==_0x57e986['type'])return{'type':'insertion','content':o(_0x134daf,'*Insert:*\x20%0','\x22'+_0x12c50a+'\x22\x20'+o(_0x134daf,'ELEMENT_BOOKMARK'))};if('deletion'==_0x57e986['type'])return{'type':'deletion','content':o(_0x134daf,'*Remove:*\x20%0','\x22'+_0x12c50a+'\x22\x20'+o(_0x134daf,'ELEMENT_BOOKMARK'))};const {data:_0x5a18de}=_0x57e986;if(!_0x5a18de||'bookmarkId'!=_0x5a18de['key'])return;return{'type':'format','content':o(_0x134daf,'*Set\x20bookmark:*\x20%0','\x22'+_0x5a18de['newValue']+'\x22')};}));}}class J extends _0x32720e{['afterInit'](){const _0x48adb9=this['editor'];_0x48adb9['plugins']['has']('CaseChange')&&(_0x48adb9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x48adb9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x48adb9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x32720e{['afterInit'](){const _0x26c4d1=this['editor'];_0x26c4d1['commands']['get']('ckbox')&&_0x26c4d1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x32720e{['afterInit'](){const _0x52a7bb=this['editor'];if(!_0x52a7bb['plugins']['has']('CodeBlock'))return;const _0x24071c=_0x52a7bb['plugins']['get']('TrackChangesEditing'),_0x3fe9f7=_0x52a7bb['locale'],_0x3c860e=_0x52a7bb['config']['get']('codeBlock')['languages'],_0x1b0d8c=_0x52a7bb['commands']['get']('codeBlock');_0x24071c['enableCommand']('indentCodeBlock'),_0x24071c['enableCommand']('outdentCodeBlock'),_0x24071c['enableCommand']('codeBlock',(_0x4a5415,_0x1ffbc9={})=>{const _0xa9aded=_0x52a7bb['model'],_0xd0974e=_0x52a7bb['model']['document']['selection'],_0x2e14be=_0x1ffbc9&&void 0x0!==_0x1ffbc9['forceValue']?_0x1ffbc9['forceValue']:!_0x1b0d8c['value'];let _0x233e88;_0x1ffbc9['language']||(_0x1ffbc9['language']=_0x3c860e[0x0]['language']),_0x233e88=_0x2e14be?Array['from'](_0xd0974e['getSelectedBlocks']())['filter'](_0x343345=>eo(_0x343345)||function(_0x10dea1,_0x4bcee2){if(_0x10dea1['is']('rootElement')||_0x4bcee2['isLimit'](_0x10dea1))return!0x1;return _0x4bcee2['checkChild'](_0x10dea1['parent'],'codeBlock');}(_0x343345,_0xa9aded['schema'])):Array['from'](_0xd0974e['getSelectedBlocks']())['filter'](_0x425cec=>eo(_0x425cec));const _0xd43fc1=to(_0x233e88,_0xa9aded);_0xa9aded['change'](()=>{for(const _0x2537ae of _0xd43fc1)_0x24071c['markBlockFormat'](_0x2537ae,{'commandName':'codeBlock','commandParams':[{..._0x1ffbc9,'forceValue':_0x2e14be}],'formatGroupId':'blockName'});});}),(_0x24071c['descriptionFactory']['registerElementLabel']('codeBlock',_0x4039a8=>o(_0x3fe9f7,'ELEMENT_CODE_BLOCK',_0x4039a8)),_0x24071c['descriptionFactory']['registerDescriptionCallback'](_0x245fde=>{if('formatBlock'!=_0x245fde['type'])return;const _0x577f05=_0x3fe9f7['t'],{data:_0x10917e}=_0x245fde;if(!_0x10917e||'codeBlock'!=_0x10917e['commandName'])return;const _0x10e835=_0x10917e['commandParams'][0x0]['language'],_0x139316=_0x577f05(_0x3c860e['find'](_0x25910d=>_0x25910d['language']===_0x10e835)['label'])['toLowerCase']();return _0x10917e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fe9f7,'*Set\x20format:*\x20%0',o(_0x3fe9f7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x139316+')')}:{'type':'format','content':o(_0x3fe9f7,'*Remove\x20format:*\x20%0',o(_0x3fe9f7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4d3bcc){return'codeBlock'==_0x4d3bcc['name'];}class z extends _0x32720e{['afterInit'](){const _0xb21e36=this['editor'];if(!_0xb21e36['plugins']['has']('CommentsEditing'))return;_0xb21e36['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3c8604,_0x46d9af,_0x41ed44){const _0x182d6f=[];for(const _0x43bed5 of _0x46d9af['getItems']())_0x43bed5['hasAttribute'](_0x3c8604)&&_0x182d6f['push'](_0x41ed44['createRangeOn'](_0x43bed5));return _0x182d6f;}function De(_0x3aafca,_0x4760a9,{showActiveMarker:_0x1692c4=!0x0}={}){const _0x1662f4=_0x3aafca['plugins']['get']('TrackChangesEditing');return(_0x4752a6,_0x132a40,_0x3c12a5)=>{if(!_0x3c12a5['consumable']['test'](_0x132a40['markerRange'],_0x4752a6['name']))return;const _0x58d65c=_0x132a40['markerRange']['getWalker'](),_0x5c1904=_0x132a40['markerRange']['start'],_0x3b439d=_0x3aafca['model']['schema'];let _0x17c446=null,_0x176047=null,_0x550106=!0x1,_0x2064db=!0x1;for(const _0x409165 of _0x58d65c){const _0x3f9f2f=_0x409165['item'];_0x550106=_0x550106||_0x3b439d['isContent'](_0x3f9f2f);const _0x1ef5ce=_0x3c12a5['mapper']['toViewElement'](_0x3f9f2f);if(_0x1ef5ce&&_0x1ef5ce['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x409165['type']&&(_0x3b439d['isBlock'](_0x3f9f2f)&&!_0x3b439d['isLimit'](_0x3f9f2f)&&(_0x3f9f2f['nextSibling']||_0x5c1904['isAtEnd']?_0x17c446&&_0x17c446['parent']==_0x3f9f2f||(_0x17c446=_0x3f9f2f,_0x57a645(_0x409165['previousPosition']),_0x2064db=!0x0):_0x176047=_0x176047||_0x409165['previousPosition']));}function _0x57a645(_0x202b3f){const {authorId:_0x10ea53}=_0x1662f4['_splitMarkerName'](_0x132a40['markerName']),_0x42d7c4=_0x3c12a5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4760a9,'data-author-id':_0x10ea53}),_0x1ca2d9=_0x3c12a5['mapper']['toViewPosition'](_0x202b3f);_0x1692c4&&_0x1662f4['activeMarkers']['includes'](_0x132a40['markerName'])&&_0x3c12a5['writer']['addClass']('ck-suggestion-marker--active',_0x42d7c4),_0x3c12a5['writer']['insert'](_0x1ca2d9,_0x42d7c4),_0x3c12a5['mapper']['bindElementToMarker'](_0x42d7c4,_0x132a40['markerName']);}_0x550106||_0x2064db||!_0x176047||_0x57a645(_0x176047);};}class K extends _0x32720e{static get['requires'](){return[_0x1c8203];}['init'](){const _0x484153=this['editor'],_0x1ab7c4=_0x484153['plugins']['get']('TrackChangesEditing');_0x1ab7c4['enableCommand']('delete');const _0xf5d41d=_0x484153['commands']['get']('deleteForward');_0x1ab7c4['enableCommand']('deleteForward',(_0x21acb2,_0x170091={})=>{const _0x4e8401=_0x484153['model']['createSelection'](_0x484153['model']['document']['selection']);_0x4e8401['isCollapsed']&&_0x484153['model']['modifySelection'](_0x4e8401,{'direction':'forward','unit':_0x170091['unit']});const _0x3cb653=_0x4e8401['getFirstRange'](),_0x30bbc7=_0x114c36['fromRange'](_0x3cb653);let _0x41e05f;_0x21acb2(_0x170091),_0x41e05f='$graveyard'==_0x30bbc7['root']['rootName']?_0x484153['model']['createRange'](_0x3cb653['start']):_0x484153['model']['createRange'](_0x30bbc7['start'],_0x30bbc7['end']),_0x30bbc7['detach'](),_0x484153['model']['enqueueChange'](_0xf5d41d['buffer']['batch'],_0x5b6ca2=>{_0xf5d41d['buffer']['lock'](),_0x5b6ca2['setSelection'](_0x5b6ca2['createRange'](_0x41e05f['end'])),_0xf5d41d['buffer']['unlock']();});}),_0x484153['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x484153,'merge'),{'priority':'high'}),_0x484153['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x162f8c,_0x22a24a,_0x2c275a)=>{_0x2c275a['options']['showSuggestionHighlights']&&De(_0x484153,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x162f8c,_0x22a24a,_0x2c275a);},{'priority':'high'}),_0x484153['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x29ab26,_0x45789f,_0x486023)=>{const _0x18ee9b=_0x486023['mapper']['markerNameToElements'](_0x45789f['markerName']);if(_0x18ee9b){for(const _0x3915f3 of _0x18ee9b)_0x3915f3['is']('uiElement')&&(_0x486023['mapper']['unbindElementFromMarkerName'](_0x3915f3,_0x45789f['markerName']),_0x486023['writer']['remove'](_0x3915f3));}},{'priority':'high'});}}class W extends _0x32720e{['afterInit'](){const _0x5925e8=this['editor'];if(!_0x5925e8['plugins']['has']('ListEditing'))return;const _0x1dabe1=_0x5925e8['locale'],_0x133edc=_0x5925e8['plugins']['get']('TrackChangesEditing'),_0x15a5fb=_0x5925e8['plugins']['has']('TodoListEditing'),_0x457492=!!_0x5925e8['config']['get']('list.multiBlock');function _0x79b00(_0x337ba8){return{'type':'format','content':''+o(_0x1dabe1,'*Set\x20format:*\x20%0',_0x337ba8)};}function _0x3c7fad(_0x35e4c5){return{'type':'format','content':''+o(_0x1dabe1,'*Remove\x20format:*\x20%0',_0x35e4c5)};}_0x133edc['enableDefaultAttributesIntegration']('numberedList'),_0x133edc['enableDefaultAttributesIntegration']('bulletedList'),_0x133edc['enableDefaultAttributesIntegration']('customNumberedList'),_0x133edc['enableDefaultAttributesIntegration']('customBulletedList'),_0x133edc['enableDefaultAttributesIntegration']('indentList'),_0x133edc['enableDefaultAttributesIntegration']('outdentList'),_0x133edc['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x133edc['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x133edc['registerBlockAttribute']('listItemId'),_0x133edc['registerBlockAttribute']('listType'),_0x133edc['registerBlockAttribute']('listIndent'),_0x457492&&(_0x133edc['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x133edc['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x15a5fb&&(_0x133edc['enableDefaultAttributesIntegration']('todoList'),_0x133edc['enableDefaultAttributesIntegration']('checkTodoList'),_0x133edc['registerBlockAttribute']('todoListChecked'),_0x133edc['descriptionFactory']['registerDescriptionCallback'](_0x325ecf=>{const {data:_0x1246e9}=_0x325ecf;if(_0x1246e9&&'todoListChecked'==_0x1246e9['key'])return{'type':'format','content':_0x1246e9['newValue']?o(_0x1dabe1,'*Check\x20item*'):o(_0x1dabe1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x248493=>{if(_0x248493['batch']['isUndo'])return!0x1;let _0x4d3b1a=!0x1;const _0x387b36=_0x133edc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45df98=>'todoListChecked'===_0x133edc['_getAttributeKey'](_0x45df98));for(const _0x3a1e4f of _0x387b36){'todo'!=_0x3a1e4f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x133edc['_findSuggestions'](_0x3a1e4f['getFirstRange'](),'attribute')['find'](_0x18a0b8=>'listType'===_0x133edc['_getAttributeKey'](_0x18a0b8['suggestion']))||(_0x248493['removeMarker'](_0x3a1e4f['getFirstMarker']()),_0x4d3b1a=!0x0));}return _0x4d3b1a;})),_0x133edc['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1dabe1,'FORMAT_INDENT'));const _0x115f0d={'type':'format','content':''};_0x133edc['descriptionFactory']['registerDescriptionCallback'](_0x4cb4d3=>{const {data:_0xc6aca6}=_0x4cb4d3;if(!_0xc6aca6||'listType'!=_0xc6aca6['key'])return;let _0x210794=_0x4cb4d3['head'];for(;_0x210794;){if(_0x210794['data']&&(('listStyle'==_0x210794['data']['key']||'listMarkerStyle'==_0x210794['data']['key'])&&(_0x210794['data']['newValue']&&'default'!=_0x210794['data']['newValue']||'default'!=_0x210794['data']['oldValue']&&!_0xc6aca6['newValue'])||!_0x457492&&_0x210794['data']['key']==m))return _0x115f0d;_0x210794=_0x210794['next'];}if(null==_0xc6aca6['newValue'])switch(_0xc6aca6['oldValue']){case'bulleted':return _0x3c7fad(o(_0x1dabe1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c7fad(o(_0x1dabe1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c7fad(o(_0x1dabe1,'ELEMENT_TODO_LIST'));}switch(_0xc6aca6['newValue']){case'bulleted':return _0x79b00(o(_0x1dabe1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x79b00(o(_0x1dabe1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x79b00(o(_0x1dabe1,'ELEMENT_TODO_LIST'));}}),_0x133edc['descriptionFactory']['registerDescriptionCallback'](_0x3dc98f=>{const {data:_0xce830e}=_0x3dc98f;if(_0xce830e&&'listIndent'==_0xce830e['key'])return null==_0xce830e['newValue']||null==_0xce830e['oldValue']&&0x0==_0xce830e['newValue']?_0x115f0d:void 0x0;}),_0x133edc['descriptionFactory']['registerDescriptionCallback'](_0x1dea90=>{if('attribute'!=_0x1dea90['type'])return;const {data:_0x259443}=_0x1dea90;if(!_0x259443||'listItemId'!=_0x259443['key'])return;const _0x51e980=Te(_0x1dea90);return'newValue'==_0x51e980?{'type':'format','content':o(_0x1dabe1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x51e980?{'type':'format','content':o(_0x1dabe1,'*Split:*\x20list\x20item')}:_0x115f0d;}),_0x5925e8['model']['document']['registerPostFixer'](_0x44e5d3=>this['listItemIdFixer'](_0x44e5d3)),_0x5925e8['model']['document']['registerPostFixer'](_0x5eb459=>this['noTrackChangesFixer'](_0x5eb459)),_0x5925e8['model']['document']['on']('change:data',(_0x4e0e5d,_0x1959f2)=>{if(_0x1959f2['isUndo']||!_0x1959f2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x35a2f3){if(_0x35a2f3['batch']['isUndo']||!_0x35a2f3['batch']['isLocal'])return!0x1;let _0x399fa1=!0x1;const _0x522876=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49e142=>_0x49e142['data']&&'listItemId'==_0x49e142['data']['key'])['filter'](_0x549963=>_0x549963['data']['newValue']&&_0x549963['data']['oldValue']);for(const _0x1be129 of _0x522876)Te(_0x1be129)||(_0x35a2f3['removeMarker'](_0x1be129['getFirstMarker']()),_0x399fa1=!0x0);return _0x399fa1;}['noTrackChangesFixer'](_0x529310){if(_0x529310['batch']['isUndo']||!_0x529310['batch']['isLocal'])return!0x1;const _0x5b5aea=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5b5aea['trackChangesCommand']['value'])return!0x1;let _0x1db6ad=!0x1;const _0xfe78bc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2288a5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x7f3b4a=>'attribute'==_0x7f3b4a['type'])['filter'](_0x6fe85d=>_0xfe78bc['includes'](_0x6fe85d['attributeKey']));if(0x0==_0x2288a5['length'])return _0x1db6ad;for(const _0x3ceb84 of _0x2288a5){const _0x44bbe6=_0x5b5aea['_findSuggestions'](_0x3ceb84['range'],'attribute')['filter'](_0x1e403f=>!_0x1e403f['meta']['isNextTo'])['map'](_0x3611cf=>_0x3611cf['suggestion'])['filter'](_0x3a6ab8=>{const _0xf1236=_0x5b5aea['_getAttributeKey'](_0x3a6ab8);return _0xfe78bc['includes'](_0xf1236);});if(_0x44bbe6['length']){for(const _0x232808 of _0x44bbe6)_0x529310['removeMarker'](_0x232808['getFirstMarker']());_0x1db6ad=!0x0;}}return _0x1db6ad;}['assureChains'](){const _0x5bc8de=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb39705=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x588de8;const _0x58957b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4b8091=>{if(_0x4b8091['data']['oldRange']||!_0x4b8091['data']['newRange'])return null;if(!_0x4b8091['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5f1d79}=_0x5bc8de['_splitMarkerName'](_0x4b8091['name']);if(!_0x5bc8de['hasSuggestion'](_0x5f1d79))return null;const _0x435e27=_0x5bc8de['getSuggestion'](_0x5f1d79);return _0xb39705['includes'](_0x435e27['data']['key']);})['map'](_0xf078e2=>{const {id:_0x17d103}=_0x5bc8de['_splitMarkerName'](_0xf078e2['name']),_0x5425d2=_0x5bc8de['getSuggestion'](_0x17d103);return _0x588de8=_0x5425d2['attributes']['groupId'],_0x5425d2['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x58957b['size'])return;const _0x190e19=_0x5bc8de['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36317b=>'attribute'==_0x36317b['type']&&_0x36317b['data']&&_0xb39705['includes'](_0x36317b['data']['key'])&&_0x36317b['attributes']['groupId']!=_0x588de8)['map'](_0x5eb7c7=>({'listItem':_0x5eb7c7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5eb7c7['attributes']['groupId']})),_0x2dd4d8=new Set();for(const {groupId:_0x18b4a5,listItem:_0x32cce8}of _0x190e19)_0x58957b['has'](_0x32cce8)&&_0x2dd4d8['add'](_0x18b4a5);for(const _0x2c16fc of _0x5bc8de['getSuggestions']())_0x2dd4d8['has'](_0x2c16fc['attributes']['groupId'])&&_0x2c16fc['setAttribute']('groupId',_0x588de8);}['_supportLegacySuggestions'](){const _0x3ea0cf=this['editor'],_0x8189d4=_0x3ea0cf['locale'],_0x4061ae=_0x3ea0cf['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4061ae['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1fed0b,_0x460499){const _0xa4ec83=[];for(let _0x3d491e of _0x1fed0b)_0x3d491e['start']['nodeAfter']===_0x3d491e['end']['parent']&&(_0x3d491e=_0x3ea0cf['model']['createRange'](_0x3ea0cf['model']['createPositionAt'](_0x3d491e['start']['nodeAfter'],0x0))),_0xa4ec83['push'](_0x3d491e);_0x3ea0cf['model']['change'](_0x2d776c=>{const _0x6d3712=_0x3ea0cf['model']['document']['selection'],_0x5be182=Array['from'](_0x6d3712['getRanges']())['map'](_0x577482=>_0x114c36['fromRange'](_0x577482));_0x2d776c['setSelection'](_0xa4ec83),_0x3ea0cf['commands']['get'](_0x460499['commandName'])['refresh'](),_0x460499['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3ea0cf['execute'](_0x460499['commandName'],..._0x460499['commandParams']),_0x2d776c['setSelection'](_0x5be182);for(const _0x8ee2fe of _0x5be182)_0x8ee2fe['detach']();});}),_0x4061ae['descriptionFactory']['registerElementLabel'](function(_0x5933bd){const _0x5225a1=!_0x3ea0cf['model']['schema']['isObject'](_0x5933bd),_0x22ee79=_0x5933bd['previousSibling'],_0x1a8399=_0x5933bd['nextSibling'],_0xb2221d=_0x5933bd['getAttribute']('listItemId'),_0x399951=!_0x22ee79||_0x22ee79['getAttribute']('listItemId')!==_0xb2221d,_0x1001a0=!_0x1a8399||_0x1a8399['getAttribute']('listItemId')!==_0xb2221d;return _0x5225a1&&Boolean(_0xb2221d)&&_0x399951&&_0x1001a0;},_0x412116=>o(_0x8189d4,'ELEMENT_LIST_ITEM',_0x412116));}['_registerLegacyDescription'](){const _0x24e3d8=this['editor'],_0x326752=_0x24e3d8['locale'];function _0x4d05bc(_0x227b16){const _0x17bf1d=_0x24e3d8['commands']['get']('bulletedList')['value'],_0x1919cc=_0x24e3d8['commands']['get']('numberedList')['value'];return'numberedList'===_0x227b16?_0x17bf1d:_0x1919cc;}_0x24e3d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x495302){if('formatBlock'!=_0x495302['type'])return;const {data:_0x1c2ff2}=_0x495302;if(!_0x1c2ff2)return;let _0x49f5be,_0x2f1c9b,_0x12d994,_0x3af161;switch(_0x1c2ff2['commandName']){case'bulletedList':_0x12d994=_0x1c2ff2['commandParams'][0x0]['forceValue'],_0x3af161=_0x4d05bc(_0x1c2ff2['commandName']),_0x49f5be=_0x12d994?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3af161&&_0x24e3d8['config']['get']('list.multiBlock')||(_0x49f5be='*Change\x20to:*\x20%0'),_0x2f1c9b={'type':'format','content':o(_0x326752,_0x49f5be,o(_0x326752,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x12d994=_0x1c2ff2['commandParams'][0x0]['forceValue'],_0x3af161=_0x4d05bc(_0x1c2ff2['commandName']),_0x49f5be=_0x12d994?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3af161&&_0x24e3d8['config']['get']('list.multiBlock')||(_0x49f5be='*Change\x20to:*\x20%0'),_0x2f1c9b={'type':'format','content':o(_0x326752,_0x49f5be,o(_0x326752,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x49f5be='*Indent:*\x20%0',_0x2f1c9b={'type':'format','content':o(_0x326752,_0x49f5be,o(_0x326752,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x49f5be=function(_0x16f503){const _0x573295=_0x16f503['getFirstRange']();let _0x1be105=_0x573295['start']['nodeAfter'];for(;_0x1be105&&_0x573295['containsItem'](_0x1be105);){if(_0x1be105['getAttribute']('listIndent')>0x0)return!0x1;_0x1be105=_0x1be105['nextSibling'];}return!0x0;}(_0x495302)?o(_0x326752,'*Format:*\x20remove\x20from\x20%0',o(_0x326752,function(_0x4a988d){return'ELEMENT_'+_0x4a988d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x495302))):o(_0x326752,'*Outdent:*\x20%0',o(_0x326752,'ELEMENT_LIST_ITEM')),_0x2f1c9b={'type':'format','content':_0x49f5be};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1c2ff2['multipleBlocks']&&(_0x49f5be='*Merge:*\x20%0',_0x2f1c9b={'type':'deletion','content':o(_0x326752,_0x49f5be,o(_0x326752,'ELEMENT_LIST_ITEM'))});}return _0x2f1c9b;});}}function Te(_0x15fa8d){let _0x5f11a8=_0x15fa8d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5f11a8;){const _0xa7017e=_0x5f11a8['getAttribute']('listItemId');if(!_0xa7017e)return!0x1;if(_0xa7017e==_0x15fa8d['data']['newValue'])return'newValue';if(_0xa7017e==_0x15fa8d['data']['oldValue'])return'oldValue';_0x5f11a8=_0x5f11a8['previousSibling'];}return!0x1;}class Se extends _0x32720e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x224ed4=this['editor']['config']['get']('list.properties'),_0x179c6c=this['editor']['plugins']['get']('TrackChangesEditing');_0x224ed4['styles']&&(_0x179c6c['enableDefaultAttributesIntegration']('listStyle'),_0x179c6c['registerBlockAttribute']('listStyle')),_0x224ed4['reversed']&&(_0x179c6c['enableDefaultAttributesIntegration']('listReversed'),_0x179c6c['registerBlockAttribute']('listReversed')),_0x224ed4['startIndex']&&(_0x179c6c['enableDefaultAttributesIntegration']('listStart'),_0x179c6c['registerBlockAttribute']('listStart'));const _0x47b8c1={'type':'format','content':''};_0x179c6c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4d63e9=this['editor']['locale'];_0x179c6c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4d63e9,'FORMAT_LIST_REVERSED')),_0x179c6c['descriptionFactory']['registerDescriptionCallback'](_0x14a7a1=>{const {data:_0x4d9996}=_0x14a7a1;if(_0x4d9996&&'listReversed'==_0x4d9996['key'])return null==_0x4d9996['newValue']||0x0==_0x4d9996['newValue']&&null==_0x4d9996['oldValue']?_0x47b8c1:void 0x0;}),_0x179c6c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4d63e9,'FORMAT_LIST_START')),_0x179c6c['descriptionFactory']['registerDescriptionCallback'](_0x12472f=>{const {data:_0x3bc47a}=_0x12472f;if(_0x3bc47a&&'listStart'==_0x3bc47a['key'])return null==_0x3bc47a['newValue']||0x1==_0x3bc47a['newValue']&&null==_0x3bc47a['oldValue']?_0x47b8c1:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x40de48=>{if(_0x40de48['batch']['isUndo'])return!0x1;let _0x540ffb=!0x1;const _0x2c75cd=_0x179c6c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x489f3f=>{const _0x4d2e9f=_0x179c6c['_getAttributeKey'](_0x489f3f);return'listStart'==_0x4d2e9f||'listReversed'==_0x4d2e9f;});for(const _0x11f68d of _0x2c75cd){const _0x23f5b9=_0x11f68d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x23f5b9||'customNumbered'==_0x23f5b9)continue;_0x179c6c['_findSuggestions'](_0x11f68d['getFirstRange'](),'attribute')['find'](_0x5dcd69=>'listType'==_0x179c6c['_getAttributeKey'](_0x5dcd69['suggestion']))||(_0x40de48['removeMarker'](_0x11f68d['getFirstMarker']()),_0x540ffb=!0x0);}return _0x540ffb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x27acbe){const _0x45d765=this['editor']['locale'],{data:_0x46127f}=_0x27acbe,_0x21aef4={'type':'format','content':''};if(!_0x46127f||'listStyle'!=_0x46127f['key'])return;if(!_0x46127f['oldValue'])return'default'==_0x46127f['newValue']?_0x21aef4:{'type':'format','content':''+o(_0x45d765,'*Set\x20format:*\x20%0',o(_0x45d765,this['_getTranslationKeyForListStyle'](_0x46127f['newValue'])))};if(!_0x46127f['newValue']){if('default'==_0x46127f['oldValue'])return _0x21aef4;let _0x5b0665=_0x27acbe['head'];for(;_0x5b0665;){if(_0x5b0665['data']&&'listType'==_0x5b0665['data']['key']&&_0x5b0665['data']['newValue'])return _0x21aef4;_0x5b0665=_0x5b0665['next'];}return{'type':'format','content':''+o(_0x45d765,'*Remove\x20format:*\x20%0',o(_0x45d765,this['_getTranslationKeyForListStyle'](_0x46127f['oldValue'])))};}if('default'!=_0x46127f['newValue'])return{'type':'format','content':''+o(_0x45d765,'*Set\x20format:*\x20%0',o(_0x45d765,this['_getTranslationKeyForListStyle'](_0x46127f['newValue'])))};let _0x51d5e4=_0x27acbe['head'];for(;_0x51d5e4;){if(_0x51d5e4['data']&&'listType'==_0x51d5e4['data']['key']&&_0x51d5e4['data']['newValue']&&_0x51d5e4['data']['oldValue'])return _0x21aef4;_0x51d5e4=_0x51d5e4['next'];}return{'type':'format','content':o(_0x45d765,'*Set\x20format:*\x20%0',o(_0x45d765,'ELEMENT_'+_0x27acbe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5440c5=this['editor'],_0x5a3e73=_0x5440c5['locale'];_0x5440c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19a624=>{if('formatBlock'!=_0x19a624['type'])return;const {data:_0x3be347}=_0x19a624;if(!_0x3be347)return;let _0x4c061a,_0x4fe95b;switch(_0x3be347['commandName']){case'listStyle':_0x4c061a='*Change\x20to:*\x20%0',_0x4fe95b={'type':'format','content':o(_0x5a3e73,_0x4c061a,o(_0x5a3e73,this['_getTranslationKeyForListStyle'](_0x3be347['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4c061a=_0x3be347['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4fe95b={'type':'format','content':o(_0x5a3e73,_0x4c061a)};break;case'listStart':_0x4c061a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4fe95b={'type':'format','content':o(_0x5a3e73,_0x4c061a,_0x3be347['commandParams'][0x0]['startIndex'])};}return _0x4fe95b;});}['_getTranslationKeyForListStyle'](_0x45b62a){return'ELEMENT_'+function(_0x539611){if(_e['includes'](_0x539611))return'bulleted';if(Re['includes'](_0x539611))return'numbered';return null;}(_0x45b62a)['toUpperCase']()+'_LIST_'+_0x45b62a['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x32720e{static get['requires'](){return[_0x21923b];}['init'](){const _0xd976b=this['editor'],_0x290db1=_0xd976b['plugins']['get']('TrackChangesEditing'),_0x5d61c4=_0xd976b['commands']['get']('enter');_0x290db1['enableCommand']('enter',()=>{_0xd976b['model']['change'](_0x20a4c6=>{const _0x3aaf82=_0xd976b['model']['document']['selection'],_0x4f2aa2=_0x3aaf82['getFirstPosition'](),_0x5ac519=_0x114c36['fromRange'](_0x3aaf82['getFirstRange']());if(_0x5d61c4['enterBlock'](_0x20a4c6)){const _0xefaa5=_0xd976b['model']['createPositionAt'](_0x4f2aa2['parent']['nextSibling'],0x0),_0x5ba3d5=_0x20a4c6['createRange'](_0x4f2aa2,_0xefaa5);_0x290db1['markInsertion'](_0x5ba3d5);}else _0x20a4c6['setSelection'](_0x20a4c6['createRange'](_0x5ac519['end']));_0x5ac519['detach'](),_0x5d61c4['fire']('afterExecute',{'writer':_0x20a4c6});});}),_0xd976b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xd976b,'split'),{'priority':'high'}),_0xd976b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x266410,_0x45b2e6,_0x2b07a1)=>{const _0x195322=_0x2b07a1['mapper']['markerNameToElements'](_0x45b2e6['markerName']);if(_0x195322){for(const _0x23c362 of _0x195322)_0x23c362['hasClass']('ck-suggestion-marker-split')&&(_0x2b07a1['mapper']['unbindElementFromMarkerName'](_0x23c362,_0x45b2e6['markerName']),_0x2b07a1['writer']['remove'](_0x23c362));}},{'priority':'high'}),_0xd976b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x29069b,_0x293567,_0x4dcd7b)=>{_0x4dcd7b['options']['showSuggestionHighlights']&&De(_0xd976b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x29069b,_0x293567,_0x4dcd7b);},{'priority':'high'});}}class Y extends _0x32720e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x87f39a=this['editor']['plugins']['get']('TrackChangesEditing');_0x87f39a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x87f39a['enableCommand']('findNext'),_0x87f39a['enableCommand']('findPrevious'),_0x87f39a['enableCommand']('replace'),_0x87f39a['enableCommand']('replaceAll');}['handleFindCommand'](_0x2eb909,_0x39fff3,_0x2a7005={}){const _0x1cd897=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2eb909(_0x429179=>{let _0x163607=('string'==typeof _0x39fff3?_0x1cd897['findByTextCallback'](_0x39fff3,_0x2a7005):_0x39fff3)(_0x429179);Array['isArray'](_0x163607)&&(_0x163607={'results':_0x163607,'searchText':'string'==typeof _0x39fff3?_0x39fff3:''});const _0x1b728a=_0x163607['results']['filter'](_0x459e0a=>!0x1===this['_isInDeletionRange'](_0x459e0a,_0x429179['item']));return{..._0x163607,'results':_0x1b728a};},_0x2a7005);}['_isInDeletionRange'](_0xcaae83,_0x15f75c){const _0x34baa7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15f75c,_0xcaae83['start']),this['editor']['model']['createPositionAt'](_0x15f75c,_0xcaae83['end']));for(const _0x6363b6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x34baa7['getIntersection'](_0x6363b6['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x32720e{['afterInit'](){const _0x5e39e7=this['editor']['locale'],_0x25263d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5067f0,commandName:_0x50ad3d}of ro)this['editor']['plugins']['has'](_0x5067f0)&&(_0x25263d['enableDefaultAttributesIntegration'](_0x50ad3d),_0x25263d['registerInlineAttribute'](_0x50ad3d));_0x25263d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5e39e7,'FORMAT_FONT_SIZE')),_0x25263d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5e39e7,'FORMAT_FONT_FAMILY')),_0x25263d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5e39e7,'FORMAT_FONT_COLOR')),_0x25263d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5e39e7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1471d7=this['editor'],_0x283dc0=_0x1471d7['locale'];_0x1471d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ff37f=>{const _0x3113b3=_0x283dc0['t'];if('formatInline'!=_0x2ff37f['type'])return;const {data:_0x3dff63}=_0x2ff37f;if(null!=_0x3dff63){if('fontSize'==_0x3dff63['commandName']){const _0x58acd7=_0x3dff63['commandParams'][0x0]['value'];if(_0x58acd7){const _0x3eda43=_0x3113b3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x219291=>_0x219291['model']==_0x58acd7)['title'])['toLowerCase']();return{'type':'format','content':o(_0x283dc0,'*Set\x20font\x20size:*\x20%0',_0x3eda43)};}return{'type':'format','content':o(_0x283dc0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3dff63['commandName']){const _0x3df386=_0x3dff63['commandParams'][0x0]['value'];return _0x3df386?{'type':'format','content':o(_0x283dc0,'*Set\x20font\x20family:*\x20%0',_0x3df386)}:{'type':'format','content':o(_0x283dc0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3dff63['commandName']){const _0x3092ec=_0x3dff63['commandParams'][0x0]['value'];if(_0x3092ec){const _0x2309b5=_0x53def7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x18e564=>_0x18e564['model']==_0x3092ec);let _0x1dd2c2=_0x3092ec,_0x1b42dc='';return _0x2309b5&&(_0x1dd2c2=_0x2309b5['label'],_0x1b42dc=_0x3113b3(_0x1dd2c2)['toLowerCase']()),{'type':'format','content':o(_0x283dc0,'*Set\x20font\x20color:*\x20%0',_0x1b42dc)['trim'](),'color':{'value':_0x3092ec,'title':_0x1b42dc||_0x1dd2c2}};}return{'type':'format','content':o(_0x283dc0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3dff63['commandName']){const _0x508cf4=_0x3dff63['commandParams'][0x0]['value'];if(_0x508cf4){const _0x3eca2b=_0x53def7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x41addb=>_0x41addb['model']==_0x508cf4);let _0x4fcc78=_0x508cf4,_0x279542='';return _0x3eca2b&&(_0x4fcc78=_0x3eca2b['label'],_0x279542=_0x3113b3(_0x4fcc78)['toLowerCase']()),{'type':'format','content':o(_0x283dc0,'*Set\x20font\x20background\x20color:*\x20%0',_0x279542)['trim'](),'color':{'value':_0x508cf4,'title':_0x279542||_0x4fcc78}};}return{'type':'format','content':o(_0x283dc0,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x32720e{['afterInit'](){const _0x1b122e=this['editor'],_0x410a2a=_0x1b122e['plugins']['get']('TrackChangesEditing'),_0x1b14e2=_0x1b122e['commands']['get']('copyFormat'),_0x35c5af=_0x1b122e['commands']['get']('pasteFormat');_0x1b14e2&&_0x35c5af&&(_0x410a2a['enableDefaultAttributesIntegration']('pasteFormat'),_0x410a2a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3b6006=this['editor'],_0x1342be=_0x3b6006['locale'];_0x3b6006['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xccbf34=>{if('formatBlock'!=_0xccbf34['type']&&'formatInline'!=_0xccbf34['type'])return;const {data:_0x509a55}=_0xccbf34;if(_0x509a55&&'pasteFormat'===_0x509a55['commandName']){const _0x423972=[],_0x5e5581=_0x509a55['commandParams'][0x0];for(const [_0x5e6980,_0x44ac03]of Object['entries'](_0x5e5581))_0x423972['push'](so(_0x3b6006,_0x5e6980,_0x44ac03));return _0x423972['length']?{'type':'format','content':o(_0x1342be,'*Set\x20format\x20to:*\x20%0',_0x423972['join'](',\x20'))}:{'type':'format','content':o(_0x1342be,'*Remove\x20all\x20formatting*')};}});}}function so(_0x12670f,_0x220945,_0x4d6aef){const _0x525bc0=_0x12670f['locale']['t'],_0x25c84e=_0x220945['split'](/(?=[A-Z])/)['join']('\x20'),_0x93b79=_0x525bc0(_0x25c84e['charAt'](0x0)['toUpperCase']()+_0x25c84e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4d6aef)return _0x93b79;if('fontColor'===_0x220945||'fontBackgroundColor'===_0x220945){const _0x1dd2d4=_0x53def7(_0x12670f['config']['get']('fontColor.colors'))['find'](_0x38b14d=>_0x38b14d['model']==_0x4d6aef);return _0x93b79+'\x20('+(_0x1dd2d4?_0x525bc0(_0x1dd2d4['label'])['toLowerCase']():_0x4d6aef)+')';}if('fontSize'===_0x220945&&isNaN(parseFloat(_0x4d6aef))){const _0xd42c49=_0x12670f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x12670f['config']['get']('fontSize.options'))['find'](_0x4fdfe3=>_0x4fdfe3['model']==_0x4d6aef);return _0x93b79+'\x20('+(_0xd42c49?_0x525bc0(_0xd42c49['title'])['toLowerCase']():_0x4d6aef)+')';}return _0x93b79+'\x20('+_0x4d6aef+')';}class nt extends _0x32720e{['_headingOptions'];['afterInit'](){const _0x12762c=this['editor'];if(!_0x12762c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x12762c['config']['get']('heading.options');const _0x35761a=_0x12762c['locale'],_0x5a3e71=_0x12762c['plugins']['get']('TrackChangesEditing');_0x5a3e71['enableDefaultAttributesIntegration']('heading');for(const _0x563ed4 of this['_headingOptions'])'paragraph'!=_0x563ed4['model']&&_0x5a3e71['descriptionFactory']['registerElementLabel'](_0x563ed4['model'],_0x17c9c2=>{const _0x195d2a=this['_getHeadingLevel'](_0x563ed4['model']);return null!==_0x195d2a?_0x56e85a(_0x17c9c2,_0x195d2a):_0x541823(_0x17c9c2,_0x563ed4['title']);});function _0x56e85a(_0x1cbd04,_0x1af83c){return o(_0x35761a,'ELEMENT_HEADING',[_0x1cbd04,_0x1af83c]);}function _0x541823(_0x263895,_0x476987){return o(_0x35761a,'ELEMENT_HEADING_CUSTOM',[_0x263895,_0x476987]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a3f38=this['editor'],_0x50cc1a=_0x5a3f38['locale'];function _0x39923c(_0x351844,_0xa0998){return o(_0x50cc1a,'ELEMENT_HEADING_CUSTOM',[_0x351844,_0xa0998]);}_0x5a3f38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31c8bf=>{if('formatBlock'!=_0x31c8bf['type'])return;const {data:_0x200c41}=_0x31c8bf;if(_0x200c41&&'heading'==_0x200c41['commandName']){const _0x21270c=_0x200c41['commandParams'][0x0]['value'],_0x57bf4c=this['_getHeadingLevel'](_0x21270c);if(null!==_0x57bf4c)return{'type':'format','content':o(_0x50cc1a,'*Change\x20to:*\x20%0',(_0x5a6e96=0x1,_0x26272f=_0x57bf4c,o(_0x50cc1a,'ELEMENT_HEADING',[_0x5a6e96,_0x26272f])))};const _0x434d5c=this['_headingOptions']['find'](_0xb9523d=>_0xb9523d['model']===_0x21270c)['title'];return{'type':'format','content':o(_0x50cc1a,'*Change\x20to:*\x20%0',_0x39923c(0x1,_0x434d5c))};}var _0x5a6e96,_0x26272f;});}['_getHeadingLevel'](_0x3995df){const _0x5aeec=_0x3995df['match'](/^heading(\d+)/);if(_0x5aeec)return _0x5aeec[0x1];const _0x4a4877=this['_headingOptions']?.['find'](_0x7a0bdc=>_0x7a0bdc['model']==_0x3995df);if(_0x4a4877&&_0x4a4877['view']){const _0xcf038f=_0x4a4877['view'],_0x176f32=(_0xcf038f['name']??_0xcf038f)['match'](/^h(\d+)/);if(_0x176f32)return _0x176f32[0x1];}return null;}}class it extends _0x32720e{['afterInit'](){const _0xe7dd09=this['editor'];if(!_0xe7dd09['plugins']['has']('HighlightEditing'))return;const _0x242379=_0xe7dd09['plugins']['get']('TrackChangesEditing'),_0x16933a=_0xe7dd09['locale'];_0x242379['enableDefaultAttributesIntegration']('highlight'),_0x242379['registerInlineAttribute']('highlight'),_0x242379['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x16933a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27a273=this['editor'],_0xf9a1d2=_0x27a273['locale'];_0x27a273['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19b7c7=>{if('formatInline'!=_0x19b7c7['type'])return;const {data:_0x22ab87}=_0x19b7c7;if(_0x22ab87&&'highlight'==_0x22ab87['commandName']){const _0x275a44=_0xf9a1d2['t'],_0x1837c8=_0x22ab87['commandParams'][0x0]['value'];if(_0x1837c8){const _0xf1729d=_0x27a273['config']['get']('highlight.options')['find'](_0x23c185=>_0x23c185['model']==_0x1837c8),_0x36cf87=_0x275a44(_0xf1729d['title'])['toLowerCase']();return{'type':'format','content':o(_0xf9a1d2,'*Set\x20highlight:*\x20%0',_0x36cf87),'color':{'value':_0xf1729d['color'],'title':_0xf1729d['title']}};}return{'type':'format','content':o(_0xf9a1d2,'*Remove\x20highlight*',o(_0xf9a1d2,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x32720e{['afterInit'](){const _0x40e2c6=this['editor'];if(!_0x40e2c6['plugins']['has']('HorizontalLineEditing'))return;_0x40e2c6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x155b92=_0x40e2c6['plugins']['get']('TrackChangesEditing'),_0x256224=_0x40e2c6['locale'];_0x155b92['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4d1e56=>o(_0x256224,'ELEMENT_HORIZONTAL_LINE',_0x4d1e56)),_0x40e2c6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x17b5d,{writer:_0x39300e,options:_0x5dd08d})=>{if(!_0x5dd08d['showSuggestionHighlights'])return null;const _0x3ce4ae=_0x39300e['createContainerElement']('div'),_0x352e3e=_0x39300e['createEmptyElement']('hr');return _0x39300e['addClass']('ck-horizontal-line',_0x3ce4ae),_0x39300e['insert'](_0x39300e['createPositionAt'](_0x3ce4ae,0x0),_0x352e3e),_0x3ce4ae;},'converterPriority':'high'});}}class st extends _0x32720e{['afterInit'](){const _0x408f0b=this['editor'];if(!_0x408f0b['plugins']['has']('HtmlEmbed'))return;const _0x4671ac=_0x408f0b['plugins']['get']('TrackChangesEditing'),_0x48f42=_0x408f0b['locale'];_0x4671ac['descriptionFactory']['registerElementLabel']('rawHtml',_0x44669c=>o(_0x48f42,'ELEMENT_HTML_EMBED',_0x44669c)),_0x4671ac['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4671ac['registerBlockAttribute']('value'),_0x4671ac['descriptionFactory']['registerDescriptionCallback'](_0x5eae0d=>{if('attribute'!=_0x5eae0d['type'])return;const {data:_0x59069d}=_0x5eae0d;if(_0x59069d&&'value'==_0x59069d['key']&&_0x5eae0d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x237241=o(_0x48f42,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x48f42,'*Change\x20%0\x20content*',_0x237241)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29daa9=this['editor'],_0x236124=_0x29daa9['locale'];_0x29daa9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5457c0=>{if('formatBlock'!=_0x5457c0['type'])return;const {data:_0x310b36}=_0x5457c0;if(_0x310b36&&'htmlEmbed'==_0x310b36['commandName']){const _0x3ec2e4=o(_0x236124,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x236124,'*Change\x20%0\x20content*',_0x3ec2e4)};}});}}class ot extends _0x32720e{['afterInit'](){const _0x30ec10=this['editor'];if(!_0x30ec10['plugins']['has']('ImageEditing'))return;const _0x4d9433=_0x30ec10['plugins']['get']('TrackChangesEditing'),_0x41e042=_0x30ec10['plugins']['get']('ImageUtils'),_0x3d798d=_0x30ec10['locale'];_0x4d9433['enableCommand']('insertImage'),_0x4d9433['descriptionFactory']['registerElementLabel']('imageBlock',_0x205e36=>o(_0x3d798d,'ELEMENT_IMAGE',_0x205e36)),_0x4d9433['descriptionFactory']['registerElementLabel']('imageInline',_0x49bea5=>o(_0x3d798d,'ELEMENT_INLINE_IMAGE',_0x49bea5)),_0x4d9433['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3d798d,'ELEMENT_CAPTION')),_0x30ec10['plugins']['has']('ImageUploadEditing')&&_0x4d9433['enableCommand']('uploadImage'),_0x30ec10['plugins']['has']('ImageBlockEditing')&&_0x30ec10['plugins']['has']('ImageInlineEditing')&&(_0x4d9433['enableCommand']('imageTypeInline',(_0x26d3ee,_0x51ccb6)=>{const _0x4764c1=_0x41e042['getClosestSelectedImageElement'](_0x30ec10['model']['document']['selection']);_0x30ec10['model']['change'](()=>{_0x4d9433['markBlockFormat'](_0x4764c1,{'commandName':'imageTypeInline','commandParams':[_0x51ccb6]},[],'convertBlockImageToInline');});}),_0x4d9433['enableCommand']('imageTypeBlock',(_0x4fb232,_0xdf62a6)=>{_0x30ec10['model']['change'](_0x16c9ed=>{let _0x355af1=_0x41e042['getClosestSelectedImageElement'](_0x30ec10['model']['document']['selection']),_0xc32198=_0x16c9ed['createRangeOn'](_0x355af1);const _0x318e04=_0xc42979['fromPosition'](_0xc32198['start'],'toPrevious'),_0x59bef0=_0xc42979['fromPosition'](_0xc32198['end'],'toNext');_0x4d9433['forceDefaultExecution'](()=>_0x4fb232(_0xdf62a6)),_0x355af1=_0x41e042['getClosestSelectedImageElement'](_0x30ec10['model']['document']['selection']),_0xc32198=_0x16c9ed['createRangeOn'](_0x355af1);const _0x1f77ba=_0x16c9ed['createRange'](_0x318e04,_0x59bef0);_0x318e04['detach'](),_0x59bef0['detach'](),_0x4d9433['markBlockFormat'](_0x355af1,{'commandName':'imageTypeInline','commandParams':[_0xdf62a6]},[],'convertInlineImageToBlock'),_0x1f77ba['start']['isBefore'](_0xc32198['start'])&&_0x4d9433['markInsertion'](_0x16c9ed['createRange'](_0x1f77ba['start'],_0xc32198['start']),'convertInlineImageToBlock'),_0xc32198['end']['isBefore'](_0x1f77ba['end'])&&_0x4d9433['markInsertion'](_0x16c9ed['createRange'](_0xc32198['end'],_0x1f77ba['end']),'convertInlineImageToBlock');});}),_0x4d9433['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4d9433['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4d9433['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4d9433['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4d9433['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4d9433['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5139e3])=>{const _0x13f6ec=_0x4d9433['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x53ce9f=_0x5139e3['start'],_0x1773cb=_0x5139e3['end'];const _0x1f6feb=_0x30ec10['model']['schema']['getNearestSelectionRange'](_0x53ce9f,'backward'),_0x31be9c=_0x30ec10['model']['schema']['getNearestSelectionRange'](_0x1773cb,'forward');_0x1f6feb['isCollapsed']&&(_0x53ce9f=_0x1f6feb['start']),_0x31be9c['isCollapsed']&&(_0x1773cb=_0x31be9c['end']),_0x13f6ec([_0x30ec10['model']['createRange'](_0x53ce9f,_0x1773cb)]);}),_0x4d9433['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x13a3bc),_0x4d9433['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x13a3bc)),_0x30ec10['plugins']['has']('ImageCaptionEditing')&&(_0x4d9433['enableCommand']('toggleImageCaption',(_0x3aaf63,_0x18db87)=>{const _0x26e324=_0x30ec10['plugins']['get']('ImageCaptionUtils');let _0x4f6554=_0x41e042['getClosestSelectedImageElement'](_0x30ec10['model']['document']['selection']),_0x128e9b=_0x26e324['getCaptionFromImageModelElement'](_0x4f6554);_0x30ec10['model']['change'](()=>{if(_0x128e9b)return void _0x4d9433['markDeletion'](_0x30ec10['model']['createRangeOn'](_0x128e9b));const _0x293d1c=_0x41e042['isBlockImage'](_0x4f6554);_0x3aaf63(_0x18db87),_0x4f6554=_0x41e042['getClosestSelectedImageElement'](_0x30ec10['model']['document']['selection']),_0x128e9b=_0x26e324['getCaptionFromImageModelElement'](_0x4f6554),_0x4d9433['markInsertion'](_0x30ec10['model']['createRangeOn'](_0x128e9b),_0x293d1c?null:'imageCaption');});}),_0x4d9433['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x13a3bc));const _0x3f725a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x392423(_0xad580f,_0x4be5d2){const _0x5345fa=_0x3f725a['findIndex'](({type:_0x3e5b80,subType:_0x49ec7d})=>_0xad580f['type']==_0x3e5b80&&_0xad580f['subType']==_0x49ec7d),_0x2c5dde=_0x3f725a['findIndex'](({type:_0xbc1951,subType:_0x1f797a})=>_0x4be5d2['type']==_0xbc1951&&_0x4be5d2['subType']==_0x1f797a);if(_0x5345fa<0x0||_0x2c5dde<0x0)return!0x1;const _0x4dbcea=_0xad580f['getFirstRange'](),_0x5ca1fc=_0x4be5d2['getFirstRange']();if((0x0==_0x5345fa||0x1==_0x5345fa)&&0x2==_0x2c5dde&&_0x4dbcea['isIntersecting'](_0x5ca1fc))return!0x0;if(0x2==_0x5345fa&&0x3==_0x2c5dde){const _0x31da8f=_0x4d9433['_findSuggestions'](_0x4dbcea,'insertion')['filter'](({suggestion:_0x37b921,meta:_0x22380d})=>_0x22380d['isOwn']&&'convertInlineImageToBlock'==_0x37b921['subType']);if(_0x31da8f['length']>0x1&&_0x5ca1fc['end']['isEqual'](_0x4dbcea['start']))return!0x0;if(0x1==_0x31da8f['length']&&(_0x4dbcea['start']['isEqual'](_0x5ca1fc['end'])||_0x4dbcea['end']['isEqual'](_0x5ca1fc['start'])))return!0x0;}if(0x3==_0x5345fa&&0x3==_0x2c5dde&&_0x4dbcea['start']['isBefore'](_0x5ca1fc['start'])){const _0x5ec6ac=_0x4dbcea['end']['nodeAfter'],_0x287209=_0x5ca1fc['start']['nodeBefore'];return _0x41e042['isBlockImage'](_0x5ec6ac)&&_0x5ec6ac===_0x287209;}return!0x1;}function _0x13a3bc(_0x8d7168,_0x69db72){return _0x392423(_0x8d7168,_0x69db72)?[_0x8d7168,_0x69db72]:_0x392423(_0x69db72,_0x8d7168)?[_0x69db72,_0x8d7168]:null;}_0x30ec10['plugins']['has']('ImageResize')&&(_0x4d9433['enableDefaultAttributesIntegration']('resizeImage'),_0x4d9433['registerBlockAttribute']('resizedWidth'),_0x4d9433['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3d798d,'FORMAT_IMAGE_SIZE'))),_0x30ec10['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4d9433['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4d9433['registerBlockAttribute']('alt')),_0x30ec10['plugins']['has']('PictureEditing')&&(_0x4d9433['registerBlockAttribute']('sources'),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0x56c1c5=>{if('attribute'!=_0x56c1c5['type'])return;const {data:_0xd734eb}=_0x56c1c5;return _0xd734eb&&'sources'==_0xd734eb['key']?{'type':'format','content':''}:void 0x0;})),_0x30ec10['plugins']['has']('ImageSizeAttributes')&&(_0x4d9433['registerBlockAttribute']('width'),_0x4d9433['registerBlockAttribute']('height'),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0xb64c9b=>{if('attribute'!=_0xb64c9b['type'])return;const {data:_0x140391}=_0xb64c9b;return!_0x140391||'width'!=_0x140391['key']&&'height'!=_0x140391['key']?void 0x0:{'type':'format','content':''};})),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0x304843=>{if(!!_0x3f725a['find'](({type:_0x1d559e,subType:_0x5c6c7a})=>_0x304843['type']==_0x1d559e&&_0x304843['subType']==_0x5c6c7a))return _0x304843['previous']?{}:void 0x0;}),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0x52b26b=>{if('insertion'==_0x52b26b['type']||'deletion'==_0x52b26b['type']){const _0x5fb62b=_0x52b26b['getContainedElement']();if(_0x5fb62b&&_0x5fb62b['is']('element','caption'))return{'type':'insertion'==_0x52b26b['type']?'addObject':'removeObject','element':_0x5fb62b,'quantity':0x1};}}),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0x2fd61e=>'formatBlock'==_0x2fd61e['type']&&'convertInlineImageToBlock'==_0x2fd61e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2fd61e['type']&&'convertBlockImageToInline'==_0x2fd61e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0x3cd17e=>{if('attribute'!=_0x3cd17e['type'])return;const {data:_0x4ec753}=_0x3cd17e;if(!_0x4ec753||'alt'!=_0x4ec753['key'])return;const _0x892414=_0x4ec753['newValue'];return _0x892414?{'type':'format','content':o(_0x3d798d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x892414+'\x22')}:{'type':'format','content':o(_0x3d798d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1de4e3=this['editor'],_0x57cbe5=_0x1de4e3['locale'];_0x1de4e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cd554=>{if('formatBlock'!=_0x1cd554['type']&&'formatInline'!=_0x1cd554['type'])return;const {data:_0x20fac7}=_0x1cd554;if(_0x20fac7){if('imageTextAlternative'==_0x20fac7['commandName']){const _0x132e28=_0x20fac7['commandParams'][0x0]['newValue'];return _0x132e28?{'type':'format','content':o(_0x57cbe5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x132e28+'\x22')}:{'type':'format','content':o(_0x57cbe5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x20fac7['commandName']){const _0x416321=_0x20fac7['commandParams'][0x0]['width'];return _0x416321?{'type':'format','content':o(_0x57cbe5,'*Set\x20image\x20width:*\x20%0',_0x416321)}:{'type':'format','content':o(_0x57cbe5,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x32720e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x474473=this['editor']['locale'],_0x2f7122=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f7122['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2f7122['registerBlockAttribute']('src'),_0x2f7122['descriptionFactory']['registerDescriptionCallback'](_0x117f2f=>{if('attribute'!=_0x117f2f['type'])return;const {data:_0x1e23b5}=_0x117f2f;return _0x1e23b5&&'src'==_0x1e23b5['key']?_0x1e23b5['newValue']&&_0x1e23b5['oldValue']?{'type':'format','content':o(_0x474473,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xde2c4a=this['editor']['plugins']['get']('TrackChangesEditing');_0xde2c4a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xde2c4a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xde2c4a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xde2c4a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x391caf=this['editor'],_0xec0599=_0x391caf['locale'];_0x391caf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a9a5f=>{if('formatBlock'!=_0x3a9a5f['type']&&'formatInline'!=_0x3a9a5f['type'])return;const {data:_0x417e08}=_0x3a9a5f;if(!_0x417e08||'replaceImageSource'!=_0x417e08['commandName'])return;return{'type':'format','content':o(_0xec0599,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x32720e{['afterInit'](){const _0x54d9a4=this['editor'];if(!_0x54d9a4['plugins']['has']('ImageStyleEditing'))return;const _0x50bddb=_0x54d9a4['plugins']['get']('TrackChangesEditing'),_0x1e04d1=_0x54d9a4['plugins']['get']('ImageUtils'),_0x4fcf8e={};_0x50bddb['enableCommand']('imageStyle',(_0x51cb3e,_0x498543)=>{const _0xbd3364=_0x54d9a4['plugins']['get']('Users')['me'],_0x2b0da8=_0x54d9a4['commands']['get']('imageStyle');let _0x53570e=_0x1e04d1['getClosestSelectedImageElement'](_0x54d9a4['model']['document']['selection']),_0x46cfc6=_0x54d9a4['model']['createRangeOn'](_0x53570e),_0x412283=_0x2b0da8['value'];if(_0x412283==_0x498543['value'])return;const _0x55da89={'commandName':'imageStyle','commandParams':[_0x498543],'formatGroupId':_0x2cd620()};_0x54d9a4['model']['change'](()=>{if(_0x50bddb['getSuggestions']()['filter'](_0x29ad0c=>_0x29ad0c['isInContent']&&_0xbd3364==_0x29ad0c['author']&&('formatBlock'==_0x29ad0c['type']||'formatInline'==_0x29ad0c['type'])&&('imageStylePreApply'==_0x29ad0c['subType']||'imageStylePostApply'==_0x29ad0c['subType'])&&_0x29ad0c['getFirstRange']()['isEqual'](_0x46cfc6))['forEach'](_0x58f704=>_0x50bddb['discardSuggestion'](_0x58f704['head'])),_0x53570e=_0x1e04d1['getClosestSelectedImageElement'](_0x54d9a4['model']['document']['selection']),_0x46cfc6=_0x54d9a4['model']['createRangeOn'](_0x53570e),_0x2b0da8['refresh'](),_0x54d9a4['commands']['get']('imageTypeInline')['refresh'](),_0x54d9a4['commands']['get']('imageTypeBlock')['refresh'](),_0x412283=_0x2b0da8['value'],_0x412283!=_0x498543['value'])return _0x1e04d1['isInlineImage'](_0x53570e)&&_0x2b0da8['shouldConvertImageType'](_0x498543['value'],_0x53570e)?(_0x51cb3e({..._0x498543,'setImageSizes':!0x1}),_0x53570e=_0x1e04d1['getClosestSelectedImageElement'](_0x54d9a4['model']['document']['selection']),void _0x50bddb['markBlockFormat'](_0x53570e,{..._0x55da89,'commandReversedParams':[{'value':_0x412283||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1e04d1['isBlockImage'](_0x53570e)?_0x50bddb['markBlockFormat'](_0x53570e,_0x55da89,[],'imageStylePostApply'):_0x50bddb['markInlineFormat'](_0x46cfc6,_0x55da89,'imageStylePostApply'));});});for(const _0x818f31 of _0x54d9a4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4fcf8e[_0x818f31['name']]=_0x818f31['title']['toLowerCase']();_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3731c5])=>{_0x1e04d1['setImageNaturalSizeAttributes'](_0x3731c5['getContainedElement']());}),_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x19c429,_0xefcf11)=>{_0x50bddb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x19c429,{'commandName':_0xefcf11['commandName'],'commandParams':_0xefcf11['commandReversedParams']});}),_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1bb10a,_0x22ad1c){if(_0x301d7b(_0x1bb10a,_0x22ad1c))return[_0x1bb10a,_0x22ad1c];if(_0x301d7b(_0x22ad1c,_0x1bb10a))return[_0x22ad1c,_0x1bb10a];return null;});const _0xf6af=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x301d7b(_0xbdb91f,_0x271092){const _0x4027ce=_0xf6af['findIndex'](({type:_0x23205b,subType:_0x27964c})=>_0xbdb91f['type']==_0x23205b&&_0xbdb91f['subType']==_0x27964c),_0x42f34b=_0xf6af['findIndex'](({type:_0x39ad70,subType:_0x452843})=>_0x271092['type']==_0x39ad70&&_0x271092['subType']==_0x452843);if(_0x4027ce<0x0||_0x42f34b<0x0)return!0x1;const _0x410536=_0xbdb91f['getFirstRange'](),_0x1e8f63=_0x271092['getFirstRange']();if((0x0==_0x4027ce||0x1==_0x4027ce)&&0x2==_0x42f34b&&_0x410536['isIntersecting'](_0x1e8f63))return!0x0;if(0x2==_0x4027ce&&0x3==_0x42f34b){const _0x8a6166=_0x50bddb['_findSuggestions'](_0x410536,'insertion')['filter'](({suggestion:_0x53f0a9,meta:_0x319735})=>_0x319735['isOwn']&&'convertInlineImageToBlock'==_0x53f0a9['subType']);if(_0x8a6166['length']>0x1&&_0x1e8f63['end']['isEqual'](_0x410536['start']))return!0x0;if(0x1==_0x8a6166['length']&&(_0x410536['start']['isEqual'](_0x1e8f63['end'])||_0x410536['end']['isEqual'](_0x1e8f63['start'])))return!0x0;}if(0x3==_0x4027ce&&0x3==_0x42f34b&&_0x410536['start']['isBefore'](_0x1e8f63['start'])){const _0x347f8e=_0x410536['end']['nodeAfter'],_0x29ae14=_0x1e8f63['start']['nodeBefore'];return _0x1e04d1['isBlockImage'](_0x347f8e)&&_0x347f8e===_0x29ae14;}return!0x1;}_0x54d9a4['model']['document']['registerPostFixer'](()=>{let _0x1f67d1=!0x1;const _0x300ff7=Array['from'](_0x54d9a4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f1f90,data:_0x3ac912}of _0x300ff7){const {group:_0x2f1a08,type:_0x3d527e,subType:_0x4f8b5f,id:_0xffa7c7}=_0x50bddb['_splitMarkerName'](_0x4f1f90);if('suggestion'==_0x2f1a08&&_0x50bddb['hasSuggestion'](_0xffa7c7)){if('formatBlock'==_0x3d527e&&('imageStylePreApply'==_0x4f8b5f||'imageStylePostApply'==_0x4f8b5f)){const _0x4d86a8=_0x50bddb['getSuggestion'](_0xffa7c7);if(_0x3ac912['newRange']){const _0xd85a69=_0x4d86a8['getFirstRange']()['getContainedElement']();if(_0x1e04d1['isBlockImage'](_0xd85a69))continue;_0x50bddb['discardSuggestion'](_0x4d86a8),_0x1f67d1=!0x0;}}if('insertion'==_0x3d527e&&'imageCaption'==_0x4f8b5f&&!_0x3ac912['newRange']){const _0x442d17=_0x50bddb['getSuggestion'](_0xffa7c7);_0x442d17['next']&&_0x442d17['next']['isInContent']&&(_0x50bddb['discardSuggestion'](_0x442d17['next']),_0x1f67d1=!0x0);}}}return _0x1f67d1;}),this['_registerLegacyDescription'](_0x4fcf8e);}['_registerLegacyDescription'](_0x25617b){const _0x538de4=this['editor'],_0x3ce70d=_0x538de4['locale'];_0x538de4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeec2c7=>{if('formatBlock'!=_0xeec2c7['type']&&'formatInline'!=_0xeec2c7['type'])return;const {data:_0x3e4f66}=_0xeec2c7;if(!_0x3e4f66||'imageStyle'!=_0x3e4f66['commandName'])return;const _0x316162=_0x3e4f66['commandParams'][0x0]['value'];return _0x268115('side'===_0x316162?o(_0x3ce70d,'FORMAT_SIDE_IMAGE'):_0x25617b[_0x316162]||_0x316162);function _0x268115(_0x40974d){return{'type':'format','content':o(_0x3ce70d,'*Format:*\x20%0',_0x40974d)};}});}}class ct extends _0x32720e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x43ee83){super(_0x43ee83),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5b1a89=this['editor'],_0x5b97fb=_0x5b1a89['commands']['get']('importWord'),_0x54eb72=_0x5b1a89['commands']['get']('trackChanges');_0x5b97fb&&(_0x5b97fb['on']('execute',(_0x1bf1a9,[,_0x3fc250])=>{this['_trackChangesValueDuringImport']=_0x54eb72['value'],_0x3fc250['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5b97fb,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5b97fb,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x54eb72['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5b1a89['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x56c47f,_0x3e7f63){const {suggestions:_0x57e234}=_0x3e7f63,_0xe2d7f=this['editor']['commands']['get']('trackChanges'),_0x5b4c4c=_0xe2d7f['value'];this['_trackChangesValueDuringImport']!==_0x5b4c4c&&(_0xe2d7f['execute'](),this['_trackChangesExecuted']=!0x0),_0x57e234&&_0x57e234['forEach'](({id:_0x24e95b,type:_0x10a0a0,author:_0x273e76,created_at:_0x416583})=>{const _0x500a13={'id':_0x24e95b,'type':_0x10a0a0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x273e76,'createdAt':_0x416583?new Date(_0x416583):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x500a13);});}}class ut extends _0x32720e{['afterInit'](){const _0x293a8f=this['editor'],_0x5b2f10=_0x293a8f['plugins']['get']('TrackChangesEditing');if(_0x293a8f['plugins']['has']('IndentEditing')&&(_0x5b2f10['enableCommand']('indent'),_0x5b2f10['enableCommand']('outdent')),_0x293a8f['plugins']['has']('IndentBlock')){for(const _0x2ec052 of['indentBlock','outdentBlock'])_0x5b2f10['enableDefaultAttributesIntegration'](_0x2ec052);}const _0x2696ca=_0x293a8f['locale'];_0x5b2f10['registerBlockAttribute']('blockIndent'),_0x5b2f10['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2696ca,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13d720=this['editor'],_0x14bb30=_0x13d720['locale'],_0x4bb920=_0x13d720['plugins']['get']('TrackChangesEditing');_0x4bb920['descriptionFactory']['registerDescriptionCallback'](_0x522be3=>{if('formatBlock'!=_0x522be3['type'])return;const {data:_0x2aa3aa}=_0x522be3;if(!_0x2aa3aa)return;if('indentBlock'!=_0x2aa3aa['commandName']&&'outdentBlock'!=_0x2aa3aa['commandName'])return;const _0x29184b=_0x522be3['getItems']()[0x0],_0x45a3b5=_0x4bb920['descriptionFactory']['getItemLabel'](_0x29184b);return'indentBlock'==_0x2aa3aa['commandName']?{'type':'format','content':o(_0x14bb30,'*Indent:*\x20%0',_0x45a3b5)}:'outdentBlock'==_0x2aa3aa['commandName']?{'type':'format','content':o(_0x14bb30,'*Outdent:*\x20%0',_0x45a3b5)}:void 0x0;});}}class ft extends _0x32720e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x32720e{['afterInit'](){const _0x4da7bd=this['editor'];if(!_0x4da7bd['plugins']['has']('LinkEditing'))return;const _0x4b5c95=_0x4da7bd['plugins']['get']('TrackChangesEditing'),_0x589ec7=_0x4da7bd['commands']['get']('link');_0x4b5c95['enableDefaultAttributesIntegration']('link'),_0x4b5c95['enableDefaultAttributesIntegration']('unlink'),_0x4b5c95['registerInlineAttribute']('linkHref');for(const _0x50e062 of _0x589ec7['manualDecorators'])_0x4b5c95['registerInlineAttribute'](_0x50e062['id']),_0x4b5c95['descriptionFactory']['registerAttributeLabel'](_0x50e062['id'],'link\x20('+_0x50e062['label']['toLowerCase']()+')');_0x4b5c95['descriptionFactory']['registerDescriptionCallback'](_0x128b1c=>{if('attribute'!=_0x128b1c['type'])return;const {data:_0x3069c6}=_0x128b1c;if(!_0x3069c6||'linkHref'!=_0x3069c6['key'])return;const _0x23e23c=_0x3069c6['newValue'],_0x3f2813=_0x4da7bd['locale'];return{'type':'format','content':null==_0x23e23c?o(_0x3f2813,'*Remove\x20link*'):o(_0x3f2813,'*Set\x20link:*\x20%0','\x22'+_0x23e23c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2262c7=this['editor'],_0x45da7e=_0x2262c7['locale'];_0x2262c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59cd59=>{if('formatInline'!=_0x59cd59['type'])return;const {data:_0x3a8d53}=_0x59cd59;if(_0x3a8d53){if('link'==_0x3a8d53['commandName']){const _0xe06ce1=_0x3a8d53['commandParams'][0x0];return{'type':'format','content':o(_0x45da7e,'*Set\x20link:*\x20%0','\x22'+_0xe06ce1+'\x22')};}return'unlink'==_0x3a8d53['commandName']?{'type':'format','content':o(_0x45da7e,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x32720e{['afterInit'](){const _0x13e995=this['editor'],_0x350805=_0x13e995['locale'];if(!_0x13e995['plugins']['has']('LegacyListEditing'))return;const _0x357bf4=_0x13e995['plugins']['get']('TrackChangesEditing'),_0x427e6e=_0x13e995['plugins']['has']('LegacyTodoListEditing');function _0x5a9f46(_0x2fcbf7){return()=>{const _0x2cb7a3=_0x13e995['model']['document']['selection'],_0x25314c=_0x13e995['commands']['get'](_0x2fcbf7);if(_0x25314c['value'])return void _0x13e995['execute']('paragraph',{});const _0x5b5f7d=_0x2fcbf7['slice'](0x0,-0x4),_0xf7f8b5=function(_0x26aaca,_0x56f6df,_0x5a4b44){let _0xb0041c=Array['from'](_0x26aaca)['filter'](_0x20e5e2=>function(_0xea0830,_0x4c9eee){return _0x4c9eee['checkChild'](_0xea0830['parent'],'listItem')&&!_0x4c9eee['isObject'](_0xea0830);}(_0x20e5e2,_0x5a4b44));_0xb0041c=_0xb0041c['filter'](_0x21e241=>!_0x21e241['is']('element','listItem')||_0x21e241['getAttribute']('listType')!=_0x56f6df);const _0x469574=new Set();for(const _0x2781a0 of _0xb0041c)_0x2781a0['is']('element','listItem')?_0x469574['add'](Le(_0x2781a0)):_0x469574['add'](_0x2781a0);return Array['from'](_0x469574);}(_0x2cb7a3['getSelectedBlocks'](),_0x5b5f7d,_0x13e995['model']['schema']);_0x13e995['model']['change'](()=>{for(const _0x51d4b1 of _0xf7f8b5)_0x357bf4['markBlockFormat'](_0x51d4b1,{'commandName':_0x2fcbf7,'commandParams':[{'forceValue':!_0x25314c['value']}],'formatGroupId':'blockName'},Ee(_0x51d4b1));});};}function _0x1dc343(_0x394e63){return()=>{const _0x41e37c=function(_0x51ced8){let _0x4e1487=Array['from'](_0x51ced8);const _0x3277c0=_0x4e1487['findIndex'](_0x303e1b=>'listItem'!=_0x303e1b['name']);return _0x3277c0>-0x1&&(_0x4e1487=_0x4e1487['slice'](0x0,_0x3277c0)),_0x4e1487;}(_0x13e995['model']['document']['selection']['getSelectedBlocks']()),_0x511a39=_0x13e995['model']['createRange'](_0x13e995['model']['createPositionAt'](_0x41e37c[0x0],'before'),_0x13e995['model']['createPositionAt'](_0x41e37c[_0x41e37c['length']-0x1],'end'));_0x13e995['model']['change'](()=>{_0x357bf4['markBlockFormat'](_0x511a39,{'commandName':_0x394e63,'commandParams':[],'formatGroupId':'listIndent'},function(_0x23da1f){const _0x37114e=new Set();for(const _0x38cbb6 of _0x23da1f){let _0x18363a=_0x38cbb6['nextSibling'];for(;_0x18363a&&_0x18363a['getAttribute']('listIndent')>_0x38cbb6['getAttribute']('listIndent');)_0x37114e['add'](_0x18363a),_0x18363a=_0x18363a['nextSibling'];}return Array['from'](_0x37114e);}(_0x41e37c));});};}_0x357bf4['enableCommand']('numberedList',_0x5a9f46('numberedList')),_0x357bf4['enableCommand']('bulletedList',_0x5a9f46('bulletedList')),_0x427e6e&&_0x357bf4['enableCommand']('todoList',_0x5a9f46('todoList')),_0x357bf4['enableCommand']('indentList',_0x1dc343('indentList')),_0x357bf4['enableCommand']('outdentList',_0x1dc343('outdentList')),_0x427e6e&&_0x357bf4['enableCommand']('checkTodoList',()=>{const _0x180f67=_0x13e995['commands']['get']('checkTodoList'),_0x48c025=Array['from'](_0x180f67['_selectedElements']);_0x48c025['filter'](_0x542e12=>_0x542e12['getAttribute']('todoListChecked')!=_0x180f67['value']),_0x13e995['model']['change'](()=>{for(const _0x2075cf of _0x48c025)_0x357bf4['markBlockFormat'](_0x2075cf,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x180f67['value']}]});});}),_0x357bf4['descriptionFactory']['registerElementLabel']('listItem',_0x47d9f7=>o(_0x350805,'ELEMENT_LIST_ITEM',_0x47d9f7)),_0x357bf4['descriptionFactory']['registerDescriptionCallback'](_0x5450a2=>{if('formatBlock'!=_0x5450a2['type']&&'formatInline'!=_0x5450a2['type'])return;const {data:_0x97be20}=_0x5450a2;if(_0x97be20){if('numberedList'==_0x97be20['commandName']||'bulletedList'==_0x97be20['commandName']||'todoList'==_0x97be20['commandName'])switch(_0x97be20['commandName']['replace']('List','')){case'bulleted':return _0x2547b7(o(_0x350805,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2547b7(o(_0x350805,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2547b7(o(_0x350805,'ELEMENT_TODO_LIST'));}if('indentList'==_0x97be20['commandName'])return{'type':'format','content':o(_0x350805,'*Indent:*\x20%0',o(_0x350805,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x97be20['commandName'])return{'type':'format','content':o(_0x350805,'*Outdent:*\x20%0',o(_0x350805,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x97be20['commandName'])return _0x97be20['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x350805,'*Check\x20item*')}:{'type':'format','content':o(_0x350805,'*Uncheck\x20item*')};}function _0x2547b7(_0x2ad3f7){return{'type':'format','content':o(_0x350805,'*Change\x20to:*\x20%0',_0x2ad3f7)};}});}}function Le(_0xe24235){const _0x46ba3a=_0xe24235['getAttribute']('listIndent');if(0x0==_0x46ba3a)return _0xe24235;let _0x473d3e=_0xe24235;for(;_0xe24235['previousSibling']&&_0xe24235['previousSibling']['is']('element','listItem');){const _0x11e1cb=_0xe24235['previousSibling']['getAttribute']('listIndent');if(_0x11e1cb==_0x46ba3a)_0x473d3e=_0xe24235['previousSibling'];else{if(_0x11e1cb<_0x46ba3a)break;}_0xe24235=_0xe24235['previousSibling'];}return _0x473d3e;}function Ee(_0x4f76b5){const _0x47b7d0=[];if(_0x4f76b5['is']('element','listItem')&&_0x4f76b5['getAttribute']('listIndent')>0x0){let _0x3b9bc8=_0x4f76b5['nextSibling'];for(;_0x3b9bc8&&'listItem'==_0x3b9bc8['name']&&_0x3b9bc8['getAttribute']('listIndent')==_0x4f76b5['getAttribute']('listIndent');)_0x47b7d0['push'](_0x3b9bc8),_0x3b9bc8=_0x3b9bc8['nextSibling'];}return _0x47b7d0;}class Q extends _0x32720e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1eb3b7=this['editor']['config']['get']('list.properties'),_0x109dba=this['editor']['plugins']['get']('TrackChangesEditing');_0x1eb3b7['styles']&&_0x109dba['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1eb3b7['reversed']&&_0x109dba['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1eb3b7['startIndex']&&_0x109dba['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x109dba['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x45aae5,_0x3e7205={}){const _0x308ac7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dec48=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x308ac7['markMultiRangeBlockFormat'](_0x5dec48,{'commandName':'listStyle','commandParams':[{'type':_0x3e7205['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x34c4e5,_0x1e6836={}){const _0x2069c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b1606=this['_getSuggestionBlocks'](_0x3a17fa=>_0x3a17fa['is']('element','listItem')&&'numbered'===_0x3a17fa['getAttribute']('listType'));if(_0x3b1606['length']<0x1)return;const _0x188dad=_0x3b1606['map'](_0x3a6c1e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a6c1e,'before'),this['editor']['model']['createPositionAt'](_0x3a6c1e,0x0)));this['editor']['model']['change'](()=>{_0x2069c6['markMultiRangeBlockFormat'](_0x188dad,{'commandName':'listReversed','commandParams':[{'reversed':_0x1e6836['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x587625,_0xa400a5={}){const _0x1002a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e2a5a=this['_getSuggestionBlocks'](_0x40f9c4=>_0x40f9c4['is']('element','listItem')&&'numbered'===_0x40f9c4['getAttribute']('listType'));if(_0x2e2a5a['length']<0x1)return;const _0x262c53=_0x2e2a5a['map'](_0x1201bf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1201bf,'before'),this['editor']['model']['createPositionAt'](_0x1201bf,0x0)));this['editor']['model']['change'](()=>{_0x1002a8['markMultiRangeBlockFormat'](_0x262c53,{'commandName':'listStart','commandParams':[{'startIndex':_0xa400a5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x41b2){if('formatBlock'!=_0x41b2['type']&&'formatInline'!=_0x41b2['type'])return;const _0x5a4616=this['editor']['locale'],{data:_0x541b54}=_0x41b2;if(!_0x541b54)return;let _0x757792,_0x5b9481;switch(_0x541b54['commandName']){case'listStyle':_0x757792='*Change\x20to:*\x20%0',_0x5b9481={'type':'format','content':o(_0x5a4616,_0x757792,o(_0x5a4616,this['_getTranslationKeyForListStyle'](_0x541b54['commandParams'][0x0]['type'])))};break;case'listReversed':_0x757792=_0x541b54['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5b9481={'type':'format','content':o(_0x5a4616,_0x757792)};break;case'listStart':_0x757792='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5b9481={'type':'format','content':o(_0x5a4616,_0x757792,_0x541b54['commandParams'][0x0]['startIndex'])};}return _0x5b9481;}['_getSuggestionBlocksForListStyle'](){const _0x1c2b35=this['editor']['plugins']['get']('LegacyListUtils');let _0x55717a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x55717a[0x0]?.['is']('element','listItem')&&_0x55717a['unshift'](..._0x1c2b35['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x55717a[_0x55717a['length']-0x1]?.['is']('element','listItem')&&_0x55717a['push'](..._0x1c2b35['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x55717a=[...new Set(_0x55717a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x55717a=_0x55717a['filter'](_0x472103=>_0x472103['is']('element','listItem'))),_0x55717a;}['_getSuggestionBlocks'](_0x1eab81){const _0x1b4aeb=this['editor']['plugins']['get']('LegacyListUtils');let _0x48affb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1eab81)['map'](_0x4718b6=>{const _0xf5b660=this['editor']['model']['createPositionAt'](_0x4718b6,0x0);return[..._0x1b4aeb['getSiblingNodes'](_0xf5b660,'backward'),..._0x1b4aeb['getSiblingNodes'](_0xf5b660,'forward')];})['flat']();return _0x48affb=[...new Set(_0x48affb)],_0x48affb;}['_getTranslationKeyForListStyle'](_0x4b6ae3){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4b6ae3)||'default')['toUpperCase']()+'_LIST_'+_0x4b6ae3['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x32720e{['afterInit'](){const _0x285776=this['editor'];if(!_0x285776['plugins']['has']('MediaEmbedEditing'))return;const _0xc7f391=_0x285776['plugins']['get']('TrackChangesEditing'),_0x2a4000=_0x285776['locale'];_0xc7f391['enableCommand']('mediaEmbed'),_0xc7f391['descriptionFactory']['registerElementLabel']('media',_0xc0df0a=>o(_0x2a4000,'ELEMENT_MEDIA',_0xc0df0a)),_0x285776['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5636f4,{writer:_0x4b43f1,options:_0x3d0f26})=>{if(_0x3d0f26['showSuggestionHighlights'])return _0x4b43f1['createEmptyElement']('div');},'converterPriority':'high'}),_0x285776['data']['downcastDispatcher']['on']('attribute:url:media',(_0xa359d7,_0x5a0c38,_0x37651f)=>{_0x37651f['options']['showSuggestionHighlights']&&_0xa359d7['stop']();},{'priority':'high'});}}class mt extends _0x32720e{['afterInit'](){const _0x3b6e5c=this['editor'];_0x3b6e5c['plugins']['has']('MentionEditing')&&_0x3b6e5c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x32720e{['afterInit'](){const _0x2cc82f=this['editor'];if(!_0x2cc82f['plugins']['has']('MergeFieldsEditing'))return;const _0x45faf5=_0x2cc82f['plugins']['get']('TrackChangesEditing'),_0x27ad17=_0x2cc82f['locale'];_0x45faf5['enableCommand']('insertMergeField'),_0x45faf5['enableCommand']('insertMergeFieldBlock'),_0x45faf5['enableCommand']('insertMergeFieldImage'),_0x45faf5['descriptionFactory']['registerElementLabel']('mergeField',_0x17efbb=>o(_0x27ad17,'ELEMENT_MERGE_FIELD',_0x17efbb)),_0x45faf5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x52f227=>o(_0x27ad17,'ELEMENT_MERGE_FIELD',_0x52f227)),_0x45faf5['descriptionFactory']['registerDescriptionCallback'](_0x2889ec=>{if('insertion'!=_0x2889ec['type']&&'deletion'!=_0x2889ec['type'])return;const _0x1e1e55=_0x2889ec['getContainedElement']();if(null==_0x1e1e55)return;const _0x11bfb4=_0x2cc82f['plugins']['get']('MergeFieldsEditing');let _0x17bd1f;switch(_0x11bfb4['getMergeFieldType'](_0x1e1e55)){case null:return;case'image':{const _0x8b0050=_0x11bfb4['unwrapAffixes'](_0x1e1e55['getAttribute']('src'));_0x17bd1f=_0x11bfb4['getLabel'](_0x8b0050)||_0x8b0050;break;}default:{const _0x53f658=_0x1e1e55['getAttribute']('id');_0x17bd1f=_0x11bfb4['getLabel'](_0x53f658)||_0x53f658;break;}}return'insertion'==_0x2889ec['type']?{'type':'insertion','content':o(_0x27ad17,'*Insert:*\x20%0','\x22'+_0x17bd1f+'\x22\x20'+o(_0x27ad17,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x27ad17,'*Remove:*\x20%0','\x22'+_0x17bd1f+'\x22\x20'+o(_0x27ad17,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x32720e{['afterInit'](){const _0x2479fc=this['editor'],_0x58edbd=_0x2479fc['plugins']['get']('TrackChangesEditing');_0x2479fc['plugins']['has']('MultiLevelList')&&(_0x58edbd['enableDefaultAttributesIntegration']('multiLevelList'),_0x58edbd['registerBlockAttribute']('listMarkerStyle'),_0x58edbd['descriptionFactory']['registerDescriptionCallback'](_0x18108d=>this['handleDescriptions'](_0x18108d)));}['handleDescriptions'](_0x183ef4){const _0x56969b=this['editor']['locale'],{data:_0x13f817}=_0x183ef4,_0x276ba8={'type':'format','content':''};if(_0x13f817&&'listMarkerStyle'==_0x13f817['key']){if(!_0x13f817['oldValue'])return{'type':'format','content':o(_0x56969b,'*Set\x20format:*\x20%0',o(_0x56969b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x13f817['newValue']+')'};if(!_0x13f817['newValue']){let _0x18c001=_0x183ef4['head'];for(;_0x18c001;){if(_0x18c001['data']&&'listType'==_0x18c001['data']['key']&&_0x18c001['data']['newValue'])return _0x276ba8;_0x18c001=_0x18c001['next'];}return{'type':'format','content':o(_0x56969b,'*Remove\x20format:*\x20%0',o(_0x56969b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x13f817['oldValue']+')'};}}}}class kt extends _0x32720e{['afterInit'](){const _0x472105=this['editor'];if(!_0x472105['plugins']['has']('PageBreakEditing'))return;_0x472105['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x50fe3f=_0x472105['plugins']['get']('TrackChangesEditing'),_0x5c0c61=_0x472105['locale'];_0x50fe3f['descriptionFactory']['registerElementLabel']('pageBreak',_0x29afb9=>o(_0x5c0c61,'ELEMENT_PAGE_BREAK',_0x29afb9));}}class bt extends _0x32720e{['afterInit'](){const _0x213ce9=this['editor'];if(!_0x213ce9['plugins']['has']('Paragraph'))return;const _0x5b4250=_0x213ce9['locale'],_0x5219d3=_0x213ce9['plugins']['get']('TrackChangesEditing');_0x5219d3['descriptionFactory']['registerElementLabel']('paragraph',_0x511f1c=>o(_0x5b4250,'ELEMENT_PARAGRAPH',_0x511f1c)),_0x5219d3['enableDefaultAttributesIntegration']('paragraph'),_0x5219d3['enableCommand']('insertParagraph'),_0x213ce9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x213ce9),{'priority':'highest'}),_0x213ce9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3d7b2b,_0x1f1fb3,_0x5ad99a)=>{_0x5ad99a['options']['showSuggestionHighlights']&&nr(_0x213ce9,{'showActiveMarker':!0x1})(_0x3d7b2b,_0x1f1fb3,_0x5ad99a);},{'priority':'highest'});const _0x1985ac=_0x5219d3['descriptionFactory'];_0x1985ac['registerDescriptionCallback'](_0x23d9fa=>{if('insertion'!==_0x23d9fa['type'])return;const {start:_0x182430,end:_0x4c5aff}=_0x23d9fa['getFirstRange']();if(!_0x182430['isTouching'](_0x4c5aff)||!_0x182430['nodeAfter'])return;const _0x2ddf1b=_0x213ce9['model']['schema'],_0x8aa38=_0x182430['nodeAfter'];return _0x2ddf1b['isBlock'](_0x8aa38)&&!_0x2ddf1b['isLimit'](_0x8aa38)&&_0x2ddf1b['checkChild'](_0x8aa38,'$text')?{'type':'insertion','content':o(_0x5b4250,'*Insert:*\x20%0',_0x1985ac['getItemLabel'](_0x8aa38,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38c597=this['editor'],_0x293b4c=_0x38c597['locale'];_0x38c597['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27dccf=>{if('formatBlock'!=_0x27dccf['type'])return;const {data:_0x3a9890}=_0x27dccf;return _0x3a9890&&'paragraph'==_0x3a9890['commandName']?{'type':'format','content':o(_0x293b4c,'*Change\x20to:*\x20%0',o(_0x293b4c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x53874d,{showActiveMarker:_0x53d2f6=!0x0}={}){return(_0xaaa622,_0x1d5aa5,_0x1e8122)=>{const _0x5dcf59=_0x53874d['plugins']['get']('TrackChangesEditing'),_0x302a96=_0x1d5aa5['markerRange']['start'],_0x5b2812=_0x1d5aa5['markerRange']['end'],_0x3e3342=_0x53874d['model']['schema'];if(!_0x302a96['isTouching'](_0x5b2812)||!_0x302a96['nodeAfter'])return;const _0x2ef15a=_0x302a96['nodeAfter'];if(_0x3e3342['isBlock'](_0x2ef15a)&&!_0x3e3342['isLimit'](_0x2ef15a)&&_0x3e3342['checkChild'](_0x2ef15a,'$text')){if(!_0x1e8122['consumable']['consume'](_0x1d5aa5['markerRange'],_0xaaa622['name']))return;const {authorId:_0x4dcbbe}=_0x5dcf59['_splitMarkerName'](_0x1d5aa5['markerName']),_0x5683ba=_0x1e8122['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4dcbbe}),_0x3ea6d2=_0x1e8122['mapper']['toViewPosition'](_0x5b2812);_0x53d2f6&&_0x5dcf59['activeMarkers']['includes'](_0x1d5aa5['markerName'])&&_0x1e8122['writer']['addClass']('ck-suggestion-marker--active',_0x5683ba),_0x1e8122['writer']['insert'](_0x3ea6d2,_0x5683ba),_0x1e8122['mapper']['bindElementToMarker'](_0x5683ba,_0x1d5aa5['markerName']);}};}class yt extends _0x32720e{['afterInit'](){const _0x485320=this['editor'];if(!_0x485320['plugins']['has']('RemoveFormatEditing'))return;_0x485320['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30de9b=this['editor'];_0x30de9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36bfce=>{if('formatBlock'!=_0x36bfce['type']&&'formatInline'!=_0x36bfce['type'])return;const {data:_0x392c6a}=_0x36bfce;return _0x392c6a&&'removeFormat'==_0x392c6a['commandName']?{'type':'format','content':o(_0x30de9b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x32720e{['afterInit'](){const _0x792c60=this['editor'];if(!_0x792c60['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x57aff1=_0x792c60['plugins']['get']('TrackChangesEditing');_0x57aff1['enableCommand']('goToPreviousRestrictedEditingException'),_0x57aff1['enableCommand']('goToNextRestrictedEditingException');const _0x29e94c=_0x792c60['plugins']['get']('RestrictedEditingModeEditing');_0x29e94c['enableCommand']('trackChanges'),_0x29e94c['enableCommand']('acceptSuggestion'),_0x29e94c['enableCommand']('discardSuggestion'),_0x29e94c['enableCommand']('acceptAllSuggestions'),_0x29e94c['enableCommand']('discardAllSuggestions'),_0x29e94c['enableCommand']('acceptSelectedSuggestions'),_0x29e94c['enableCommand']('discardSelectedSuggestions');}}class St extends _0x32720e{static get['requires'](){return[_0x31c31b];}['init'](){const _0x5e60b5=this['editor'],_0x137eb9=_0x5e60b5['plugins']['get']('TrackChangesEditing');_0x137eb9['enableCommand']('shiftEnter'),_0x5e60b5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5e60b5),{'priority':'high'}),_0x5e60b5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5e60b5),{'priority':'high'}),_0x5e60b5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29781d,_0x5cc4fe,_0x5a3aab)=>{_0x5a3aab['options']['showSuggestionHighlights']&&je(_0x5e60b5,{'showActiveMarker':!0x1})(_0x29781d,_0x5cc4fe,_0x5a3aab);}),_0x137eb9['descriptionFactory']['registerElementLabel']('softBreak',_0x360190=>o(_0x5e60b5['locale'],'ELEMENT_LINE_BREAK',_0x360190));}}function je(_0xc0b2e,{showActiveMarker:_0x131f71=!0x0}={}){return(_0x2d3100,_0x4590d5,_0xd1c4d2)=>{const _0x2ebd86=_0xc0b2e['plugins']['get']('TrackChangesEditing');if(!_0xd1c4d2['consumable']['test'](_0x4590d5['markerRange'],_0x2d3100['name']))return;const _0xc1983f=_0xc0b2e['model'];for(const _0x45cb84 of _0x4590d5['markerRange']['getItems']()){if(!_0x45cb84['is']('element','softBreak'))continue;const _0x372049='deletion'==_0x4590d5['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5dfe7b}=_0x2ebd86['_splitMarkerName'](_0x4590d5['markerName']),_0x52ed1e=_0xd1c4d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x372049,'data-author-id':_0x5dfe7b}),_0x4f5007=_0xd1c4d2['mapper']['toViewPosition'](_0xc1983f['createPositionBefore'](_0x45cb84));_0x131f71&&_0x2ebd86['activeMarkers']['includes'](_0x4590d5['markerName'])&&_0xd1c4d2['writer']['addClass']('ck-suggestion-marker--active',_0x52ed1e),_0xd1c4d2['writer']['insert'](_0x4f5007,_0x52ed1e),_0xd1c4d2['mapper']['bindElementToMarker'](_0x52ed1e,_0x4590d5['markerName']);}};}class At extends _0x32720e{['afterInit'](){const _0x1bf0bc=this['editor'],_0xea5099=_0x1bf0bc['model'],_0x1b5b55=_0x1bf0bc['locale'];if(!_0x1bf0bc['plugins']['has']('StandardEditingModeEditing'))return;const _0x2d48cd=_0x1bf0bc['plugins']['get']('TrackChangesEditing'),_0x84f92a='restrictedEditingException',_0x3d8db4=_0x1bf0bc['commands']['get'](_0x84f92a);_0x2d48cd['enableCommand'](_0x84f92a,(_0x4d900a,_0x4469aa={})=>{const _0x305d90=_0xea5099['document']['selection'];if(_0x305d90['isCollapsed'])return void _0x4d900a(_0x4469aa);const _0x14af90=void 0x0!==_0x4469aa['forceValue']?_0x4469aa['forceValue']:!_0x3d8db4['value'];_0xea5099['change'](()=>{const _0x3b78a6=Array['from'](_0x305d90['getRanges']());for(const _0x2d95e5 of _0x3b78a6){const _0x1e2200=_0x14af90?[_0x2d95e5]:io(_0x84f92a,_0x2d95e5,_0xea5099);for(const _0x4c559e of _0x1e2200)_0x2d48cd['markInlineFormat'](_0x4c559e,{'commandName':_0x84f92a,'commandParams':[{'forceValue':_0x14af90}]});}});}),_0x2d48cd['descriptionFactory']['registerDescriptionCallback'](_0x2b241a=>{if('formatBlock'!=_0x2b241a['type']&&'formatInline'!=_0x2b241a['type'])return;const {data:_0x102ea2}=_0x2b241a;return _0x102ea2&&_0x102ea2['commandName']==_0x84f92a?_0x102ea2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b5b55,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1b5b55,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x32720e{['afterInit'](){const _0x9d0cb2=this['editor'];if(!_0x9d0cb2['plugins']['has']('Style')||!_0x9d0cb2['plugins']['has']('DataSchema'))return;const _0xb20c54=_0x9d0cb2['plugins']['get']('TrackChangesEditing'),_0x53c5ac=_0x9d0cb2['locale'],_0x5ec419=_0x9d0cb2['config']['get']('style')||{},_0x543865=_0x9d0cb2['plugins']['get']('GeneralHtmlSupport'),_0xfa0a6e=_0x9d0cb2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x9d0cb2['plugins']['get']('DataSchema'),_0x5ec419['definitions']);_0xb20c54['enableDefaultAttributesIntegration']('style');const _0x3dc258=new Set();for(const _0x4473a0 of _0xfa0a6e['block']){const _0x57b55a=_0x543865['getGhsAttributeNameForElement'](_0x4473a0['element']);_0x3dc258['add'](_0x57b55a);}const _0x24d2f8=new Set();for(const _0x160ce0 of _0xfa0a6e['inline']){const _0x30eb25=_0x543865['getGhsAttributeNameForElement'](_0x160ce0['element']);_0x24d2f8['add'](_0x30eb25);for(const _0x6a6e5d of _0x160ce0['ghsAttributes'])_0x24d2f8['add'](_0x6a6e5d);}for(const _0xd1f8e2 of _0x3dc258)_0xb20c54['registerBlockAttribute'](_0xd1f8e2),_0xb20c54['descriptionFactory']['registerAttributeLabel'](_0xd1f8e2,o(_0x53c5ac,'FORMAT_STYLE'));for(const _0x1e7887 of _0x24d2f8)_0xb20c54['registerInlineAttribute'](_0x1e7887),_0xb20c54['descriptionFactory']['registerAttributeLabel'](_0x1e7887,o(_0x53c5ac,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4dbe81=this['editor'],_0x1192e4=_0x4dbe81['locale'];_0x4dbe81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x404af1=>{if('formatBlock'!=_0x404af1['type']&&'formatInline'!=_0x404af1['type'])return;const {data:_0x2c07c2}=_0x404af1;return _0x2c07c2&&'style'===_0x2c07c2['commandName']?_0x2c07c2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1192e4,'*Set\x20format:*\x20%0',_0x2c07c2['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1192e4,'*Remove\x20format:*\x20%0',_0x2c07c2['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x32720e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x44a9e4){super(_0x44a9e4),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x258919=this['editor'],_0x5045bd=_0x258919['model']['document']['selection'];if(!_0x258919['plugins']['has']('TableEditing'))return;const _0x2c1946=_0x258919['locale'],_0x2130e5=_0x258919['plugins']['get']('TrackChangesEditing'),_0x3bb46f=_0x258919['plugins']['get']('TableUtils');_0x2130e5['descriptionFactory']['registerElementLabel']('table',_0x5303bd=>o(_0x2c1946,'ELEMENT_TABLE',_0x5303bd)),this['_setupColumnsRowsFixing'](),_0x2130e5['enableCommand']('insertTable'),_0x2130e5['enableCommand']('selectTableRow'),_0x2130e5['enableCommand']('selectTableColumn');for(const _0x2610c5 of['insertTableRowAbove','insertTableRowBelow']){const _0x46fd61=_0x258919['commands']['get'](_0x2610c5);_0x2130e5['enableCommand'](_0x2610c5,_0x4f215c=>{_0x258919['model']['change'](_0x48368c=>{_0x4f215c();const _0x86fdf2='above'===_0x46fd61['order'],_0x148b61=_0x3bb46f['getSelectionAffectedTableCells'](_0x5045bd),_0x4e76aa=_0x3bb46f['getRowIndexes'](_0x148b61),_0x2c27f7=_0x86fdf2?_0x4e76aa['first']-0x1:_0x4e76aa['last']+0x1,_0x58cce8=_0x148b61[0x0]['findAncestor']('table'),_0x42a375=_0x3bb46f['createTableWalker'](_0x58cce8,{'startRow':_0x2c27f7,'endRow':_0x2c27f7}),_0x14a3d4=Array['from'](_0x42a375)['map'](_0x5a72a7=>_0x48368c['createRangeOn'](_0x5a72a7['cell']));_0x2130e5['markMultiRangeInsertion'](_0x14a3d4,'tableRow');});});}for(const _0x3d0f32 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2e3d19=_0x258919['commands']['get'](_0x3d0f32);_0x2130e5['enableCommand'](_0x3d0f32,_0x8a996d=>{_0x258919['model']['change'](_0x5afdc3=>{_0x8a996d();const _0x5db93e='left'===_0x2e3d19['order'],_0x1e7dff=_0x3bb46f['getSelectionAffectedTableCells'](_0x5045bd),_0x4eb4f2=_0x3bb46f['getColumnIndexes'](_0x1e7dff),_0x381078=_0x5db93e?_0x4eb4f2['first']-0x1:_0x4eb4f2['last']+0x1,_0x36bb85=_0x1e7dff[0x0]['findAncestor']('table'),_0x3bb499=_0x3bb46f['createTableWalker'](_0x36bb85,{'startRow':0x0,'column':_0x381078,'includeAllSlots':!0x1}),_0x536536=Array['from'](_0x3bb499)['map'](_0x54c76d=>_0x5afdc3['createRangeOn'](_0x54c76d['cell']));_0x2130e5['markMultiRangeInsertion'](_0x536536,'tableColumn');});});}for(const _0x2c95f4 of['removeTableRow','removeTableColumn']){const _0x48146e=_0x2c95f4['substr'](0xb),_0x20c136=_0x48146e['toLowerCase'](),_0x44bb82=_0x20c136['substr'](0x0,0x3)+'span',_0x2ea9c3='table'+_0x48146e,_0x583048='min'+_0x48146e,_0x42e03a='max'+_0x48146e;_0x2130e5['enableCommand'](_0x2c95f4,()=>{_0x258919['model']['change'](_0x149c2e=>{const _0xe9c9f5=_0x3bb46f['getSelectionAffectedTableCells'](_0x5045bd),_0x544331=_0xe9c9f5[0x0]['findAncestor']('table');let _0x31af13;if('removeTableRow'==_0x2c95f4){const _0x12bc50=_0x3bb46f['getRowIndexes'](_0xe9c9f5);_0x31af13={'startRow':_0x12bc50['first'],'endRow':_0x12bc50['last'],'includeAllSlots':!0x0};}else{const _0x3adadc=_0x3bb46f['getColumnIndexes'](_0xe9c9f5);_0x31af13={'startColumn':_0x3adadc['first'],'endColumn':_0x3adadc['last'],'includeAllSlots':!0x0};}const _0x2aa5cd=_0x3bb46f['createTableWalker'](_0x544331,_0x31af13),_0x1b5114=Array['from'](_0x2aa5cd)['map'](({cell:_0x263aa3})=>_0x263aa3),_0x291a75=Ne(_0x1b5114['filter'](_0x5eaa01=>_0x5eaa01['hasAttribute'](_0x44bb82))),_0x558a45=Ne(_0x1b5114['filter'](_0x3b515c=>!_0x3b515c['hasAttribute'](_0x44bb82)))['map'](_0x531415=>_0x149c2e['createRangeOn'](_0x531415)),_0x198376=_0x2130e5['markMultiRangeDeletion'](_0x558a45,_0x2ea9c3);if(_0x198376&&('tableRow'==_0x198376['subType']||'tableColumn'==_0x198376['subType'])){const _0x541c41=this['_getSuggestionCoords'](_0x198376);for(const _0x36c24b of _0x291a75){const _0x12473a=_0x149c2e['createRangeOn'](_0x36c24b),_0xa008de=_0x3bb46f['getCellLocation'](_0x36c24b),_0x338082=_0x36c24b['getAttribute'](_0x44bb82)-0x1,_0x42e04e=_0x541c41[_0x583048],_0x21402d=_0x541c41[_0x42e03a];_0x42e04e<=_0xa008de[_0x20c136]&&_0xa008de[_0x20c136]+_0x338082<=_0x21402d&&_0x198376['addRange'](_0x12473a);}}});});}function _0x2e2a03(_0x294428){const _0x2bd28f=Array['from'](_0x5045bd['getRanges']())['map'](_0x42e4a7=>_0x114c36['fromRange'](_0x42e4a7));_0x258919['model']['change'](_0x19986c=>{const _0x5d8678=_0x19986c['batch'];_0x294428=_0x294428['filter'](_0x14845c=>'$graveyard'!=_0x14845c['root']['rootName']),_0x19986c['setSelection'](_0x294428),_0x258919['commands']['get']('removeTableRow')['refresh'](),_0x258919['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x258919['model']['enqueueChange'](()=>{_0x258919['model']['enqueueChange'](_0x5d8678,_0x44fa80=>{const _0x2c6647=_0x2bd28f['filter'](_0xc2f047=>'$graveyard'!=_0xc2f047['root']['rootName']);_0x2c6647['length']>0x0&&_0x44fa80['setSelection'](_0x2c6647);for(const _0x5bd6be of _0x2bd28f)_0x5bd6be['detach']();});});});}function _0x136cba(_0x253444){_0x258919['model']['change'](_0x130a42=>{const _0x51d7b2=Array['from'](_0x5045bd['getRanges']())['map'](_0x43bad7=>_0x114c36['fromRange'](_0x43bad7)),_0x5d591b=[];for(const _0x167d35 of _0x253444)for(const _0x4b8445 of _0x167d35['getItems']({'shallow':!0x0}))_0x5d591b['push'](_0x4b8445);for(const _0xcfc7ac of _0x5d591b)'$graveyard'!=_0xcfc7ac['root']['rootName']&&(_0x130a42['setSelection'](_0x130a42['createPositionAt'](_0xcfc7ac,0x0)),_0x258919['commands']['get']('removeTableColumn')['refresh'](),_0x258919['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xc27261=_0x51d7b2['filter'](_0x25fee9=>'$graveyard'!=_0x25fee9['root']['rootName']);_0xc27261['length']>0x0&&_0x130a42['setSelection'](_0xc27261);for(const _0x38faef of _0x51d7b2)_0x38faef['detach']();});}function _0x51f6e4(_0x5431a2,_0x56d4c1){return _0x56d4c1['every'](_0xbd4262=>_0x5431a2['some'](_0x10aa71=>_0x10aa71['end']['isEqual'](_0xbd4262['start'])||_0xbd4262['end']['isEqual'](_0x10aa71['start'])));}function _0x4e3181(_0x5bfc25,_0x1401c9){return!_0x5bfc25['some'](_0x37f568=>_0x1401c9['some'](_0x1b9398=>_0x37f568['isIntersecting'](_0x1b9398)))&&_0x5bfc25['some'](_0x2470b9=>_0x1401c9['some'](_0x3e13f0=>_0x2470b9['end']['isTouching'](_0x3e13f0['start'])));}_0x258919['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27a4dc,_0xed7b6d,_0x529ba8)=>{if(!_0x529ba8['options']['showSuggestionHighlights'])return;const _0x492113=_0xed7b6d['item'];if(!_0x492113)return;const _0x148790=_0x529ba8['mapper']['toViewElement'](_0x492113);function _0x1143a0(_0xfac316){return Array['isArray'](_0xfac316)?_0xfac316:[_0xfac316];}_0x148790&&'tableCell'===_0x492113['name']&&_0x58a981(_0x148790,_0x529ba8['writer'],(_0x2bdaca,_0x22dbb8,_0x4f8095)=>_0x4f8095['addClass'](_0x1143a0(_0x22dbb8['classes']),_0x2bdaca),(_0x39b598,_0x5b06b1,_0x3efcd0)=>_0x3efcd0['removeClass'](_0x1143a0(_0x5b06b1['classes']),_0x39b598));},{'priority':'highest'}),_0x2130e5['descriptionFactory']['registerDescriptionCallback'](_0x402e5b=>{if('insertion'!=_0x402e5b['type']&&'deletion'!=_0x402e5b['type'])return;const _0xd1baae=_0x402e5b['getContainedElement']();if(null!=_0xd1baae&&_0xd1baae['is']('element','table')){if('insertion'==_0x402e5b['type']){const _0x194454=_0x402e5b['getItems']()['filter'](_0x5a8f6c=>_0x5a8f6c['is']('$textProxy'))['map'](_0x54c489=>_0x54c489['data']);if(_0x194454['length'])return{'type':'insertion','content':o(_0x2c1946,'*Insert:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x194454['join']('\x20')+'\x22'))};}if('deletion'==_0x402e5b['type']){const _0x1384ce=_0x402e5b['getItems']()['filter'](_0x305a06=>_0x305a06['is']('$textProxy'))['map'](_0x54d3c9=>_0x54d3c9['data']);if(_0x1384ce['length'])return{'type':'deletion','content':o(_0x2c1946,'*Remove:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1384ce['join']('\x20')+'\x22'))};}}}),_0x2130e5['descriptionFactory']['registerDescriptionCallback'](_0x2303d2=>{if('tableRow'==_0x2303d2['subType']){const _0xee8180=_0x2303d2['getItems']()['filter'](_0x38df45=>_0x38df45['is']('$textProxy'))['map'](_0x513d7b=>_0x513d7b['data']),_0x19be8c=this['_getSuggestionCoords'](_0x2303d2),_0x1f5097=_0x19be8c['maxRow']-_0x19be8c['minRow']+0x1;if('insertion'==_0x2303d2['type'])return _0xee8180['length']?{'type':'insertion','content':o(_0x2c1946,'*Insert:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f5097,'\x22'+_0xee8180['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2c1946,'*Insert:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_ROW',_0x1f5097))};if('deletion'==_0x2303d2['type'])return _0xee8180['length']?{'type':'deletion','content':o(_0x2c1946,'*Remove:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f5097,'\x22'+_0xee8180['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2c1946,'*Remove:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_ROW',_0x1f5097))};}if('tableColumn'==_0x2303d2['subType']){const _0x166f02=_0x2303d2['getItems']()['filter'](_0x3dc375=>_0x3dc375['is']('$textProxy'))['map'](_0x307bb5=>_0x307bb5['data']),_0x45ce8a=this['_getSuggestionCoords'](_0x2303d2),_0x407fa7=_0x45ce8a['maxColumn']-_0x45ce8a['minColumn']+0x1;if('insertion'==_0x2303d2['type'])return _0x166f02['length']?{'type':'insertion','content':o(_0x2c1946,'*Insert:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x407fa7,'\x22'+_0x166f02['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2c1946,'*Insert:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_COLUMN',_0x407fa7))};if('deletion'==_0x2303d2['type'])return _0x166f02['length']?{'type':'deletion','content':o(_0x2c1946,'*Remove:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x407fa7,'\x22'+_0x166f02['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2c1946,'*Remove:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_COLUMN',_0x407fa7))};}}),_0x2130e5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2e2a03),_0x2130e5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2e2a03),_0x2130e5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x136cba),_0x2130e5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x136cba),_0x2130e5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x51f6e4),_0x2130e5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x51f6e4),_0x2130e5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4e3181),_0x2130e5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4e3181);}['_acceptFormatSuggestionCallbackFactory'](){const _0x18702c=this['editor'],_0xb94012=_0x18702c['model']['document']['selection'];return(_0x16d944,_0x50a806)=>{_0x18702c['model']['change'](_0x351b29=>{const {commandName:_0x25aa25,commandParams:_0x21c6a0}=_0x50a806;let _0x2d51bf=_0x16d944[0x0]['end']['nodeBefore'];_0x21c6a0&&_0x21c6a0[0x0]&&!0x1===_0x21c6a0[0x0]['forceValue']&&(_0x2d51bf=_0x16d944[0x0]['start']['nodeAfter']);const _0x4b2f72=_0x351b29['createRangeIn'](_0x2d51bf);if('$graveyard'==_0x4b2f72['root']['rootName'])return;const _0x433ef1=Array['from'](_0xb94012['getRanges']())['map'](_0xef5b75=>_0x114c36['fromRange'](_0xef5b75));_0x351b29['setSelection'](_0x4b2f72),_0x18702c['commands']['get'](_0x25aa25)['refresh'](),_0x21c6a0['push']({'forceDefaultExecution':!0x0}),_0x18702c['execute'](_0x25aa25,..._0x21c6a0);const _0x599a04=_0x433ef1['filter'](_0x22a089=>'$graveyard'!=_0x22a089['root']['rootName']);_0x599a04['length']>0x0&&_0x351b29['setSelection'](_0x599a04);for(const _0x5e4b33 of _0x433ef1)_0x5e4b33['detach']();});};}['_getCoordsForCells'](_0x2ec41a){const _0x4887f4=this['editor']['plugins']['get']('TableUtils');let _0x1b9b8e=Number['MAX_SAFE_INTEGER'],_0x449a85=Number['MIN_SAFE_INTEGER'],_0x4f7310=Number['MAX_SAFE_INTEGER'],_0x3a46cc=Number['MIN_SAFE_INTEGER'];for(const _0x5b445e of _0x2ec41a){if('$graveyard'==_0x5b445e['root']['rootName'])continue;const {row:_0x1ed611,column:_0x498f36}=_0x4887f4['getCellLocation'](_0x5b445e),_0x38472c=_0x5b445e['hasAttribute']('rowspan')?_0x5b445e['getAttribute']('rowspan')-0x1:0x0,_0x4800cb=_0x5b445e['hasAttribute']('colspan')?_0x5b445e['getAttribute']('colspan')-0x1:0x0;_0x1b9b8e=_0x1ed611<_0x1b9b8e?_0x1ed611:_0x1b9b8e,_0x449a85=_0x1ed611+_0x38472c>_0x449a85?_0x1ed611+_0x38472c:_0x449a85,_0x4f7310=_0x498f36<_0x4f7310?_0x498f36:_0x4f7310,_0x3a46cc=_0x498f36+_0x4800cb>_0x3a46cc?_0x498f36+_0x4800cb:_0x3a46cc;}return{'minRow':_0x1b9b8e,'maxRow':_0x449a85,'minColumn':_0x4f7310,'maxColumn':_0x3a46cc};}['_setupColumnsRowsFixing'](){const _0x20a388=this['editor'],_0x25fd55=_0x20a388['plugins']['get']('TrackChangesEditing'),_0x7d5333=_0x20a388['plugins']['get']('TableUtils');_0x20a388['model']['document']['on']('change:data',()=>{const _0x42e9a5=Array['from'](_0x20a388['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30e456,data:_0x5055f3}of _0x42e9a5){const {group:_0x3789cb,id:_0x50a9c7,subType:_0xcf8ad3}=_0x25fd55['_splitMarkerName'](_0x30e456);if('suggestion'!=_0x3789cb)continue;if(null!=_0x5055f3['oldRange'])continue;const _0x3aad43=_0x25fd55['getSuggestion'](_0x50a9c7);this['_tablePostFixingSubtypes']['includes'](_0xcf8ad3)&&this['_tableSuggestions']['add'](_0x3aad43);}},{'priority':'low'});const _0xa9624a=(_0x2fa014,_0x342b93)=>{let _0x5cd789=!0x1;const _0x32d763=_0x342b93['createRangeOn'](_0x2fa014),_0x17e7fb=_0x2fa014['findAncestor']('table'),_0x1ca9cb=_0x7d5333['getCellLocation'](_0x2fa014);for(const _0x836844 of this['_tableSuggestions']){const _0x564e90=_0x836844['subType'],_0x4df469=_0x564e90['startsWith']('tablePaste'),_0x354aca=_0x564e90['substr'](_0x4df469?0xa:0x5),_0x4c8a1e=_0x354aca['toLowerCase'](),_0x1e145b=_0x4c8a1e['substr'](0x0,0x3)+'span',_0x1b33fb='min'+_0x354aca,_0xbf9510='max'+_0x354aca;if(!_0x836844['isInContent'])continue;if(_0x17e7fb!=_0x836844['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x836844['isIntersectingWithRange'](_0x32d763))continue;const _0x4ba00c=_0x2fa014['hasAttribute'](_0x1e145b)?_0x2fa014['getAttribute'](_0x1e145b)-0x1:0x0,_0x5dd590=this['_getSuggestionCoords'](_0x836844),_0x185ab5=_0x5dd590[_0x1b33fb],_0x44f4de=_0x5dd590[_0xbf9510];_0x185ab5<=_0x1ca9cb[_0x4c8a1e]&&_0x1ca9cb[_0x4c8a1e]+_0x4ba00c<=_0x44f4de&&(_0x836844['addRange'](_0x32d763),_0x5cd789=!0x0);}return _0x5cd789;};_0x20a388['model']['document']['registerPostFixer'](_0x54db7c=>{let _0x513209=!0x1;for(const _0x483d9c of _0x20a388['model']['document']['differ']['getChanges']())if('insert'==_0x483d9c['type']){if('tableRow'==_0x483d9c['name']){for(const _0x2f655f of _0x483d9c['position']['nodeAfter']['getChildren']())_0x513209=_0x513209||_0xa9624a(_0x2f655f,_0x54db7c);}else'tableCell'==_0x483d9c['name']&&(_0x513209=_0x513209||_0xa9624a(_0x483d9c['position']['nodeAfter'],_0x54db7c));}return _0x513209;});}['_getSuggestionCoords'](_0x29f7ed){return this['_getCoordsForCells'](_0x29f7ed['getRanges']()['map'](_0x282da0=>_0x282da0['start']['nodeAfter']));}}function Ne(_0x38a816){return Array['from'](new Set(_0x38a816)['values']());}class _t extends _0x32720e{static get['requires'](){return[vt];}['afterInit'](){const _0x4659c9=this['editor'],_0x6f5da4=_0x4659c9['model']['document']['selection'],_0x2becc0=_0x4659c9['locale'];if(!_0x4659c9['plugins']['has']('TableEditing'))return;const _0x5557df=_0x4659c9['plugins']['get']('TrackChangesEditing'),_0x494332=_0x4659c9['plugins']['get']('TableUtils'),_0x41318e=_0x4659c9['plugins']['get'](vt);_0x41318e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5557df['enableCommand']('mergeTableCells',()=>{const _0x18d4e7=_0x494332['getSelectionAffectedTableCells'](_0x4659c9['model']['document']['selection']);_0x4659c9['model']['change'](()=>{_0x5557df['markMultiRangeBlockFormat'](_0x18d4e7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4659c9['commands']['get']('mergeTableCells')['on']('execute',(_0x5f0978,_0x4c93d1)=>{_0x4659c9['commands']['get']('trackChanges')['value']&&(_0x4c93d1['length']>0x0&&_0x4c93d1[_0x4c93d1['length']-0x1]&&_0x4c93d1[_0x4c93d1['length']-0x1]['forceDefaultExecution']||_0x5557df['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5f0978['stop']());},{'priority':'highest'});for(const _0x2f471d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1dbc5=_0x4659c9['commands']['get'](_0x2f471d);_0x5557df['enableCommand'](_0x2f471d,()=>{const _0x565e13=_0x4659c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5c6883=>_0x5c6883['is']('element','tableCell')),_0x5e468f=_0x1dbc5['value'];_0x4659c9['model']['change'](()=>{_0x5557df['markMultiRangeBlockFormat']([_0x565e13,_0x5e468f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3642da of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3bfd21=_0x4659c9['commands']['get'](_0x3642da);_0x5557df['enableCommand'](_0x3642da,()=>{const _0x5dfb36=_0x494332['getSelectionAffectedTableCells'](_0x4659c9['model']['document']['selection'])[0x0],_0x467ac5=_0x5dfb36['findAncestor']('table'),{column:_0x30d614,row:_0x249800}=_0x494332['getCellLocation'](_0x5dfb36);let _0x13e6a0=[];if('horizontally'==_0x3bfd21['direction']){const _0x174879=_0x494332['createTableWalker'](_0x467ac5,{'startRow':_0x249800,'endRow':_0x249800,'includeAllSlots':!0x0});_0x13e6a0=Array['from'](_0x174879)['map'](_0x57a7a2=>_0x57a7a2['cell']);}else{const _0x150327=_0x494332['createTableWalker'](_0x467ac5,{'column':_0x30d614,'includeAllSlots':!0x0});_0x13e6a0=Array['from'](_0x150327)['map'](_0x5d19f9=>_0x5d19f9['cell']);}_0x4659c9['model']['change'](_0x2c12c8=>{_0x5557df['markBlockFormat'](_0x2c12c8['createRangeOn'](_0x5dfb36),{'commandName':_0x3642da,'commandParams':[]},_0x13e6a0,_0x3642da);});});}_0x5557df['descriptionFactory']['registerDescriptionCallback'](_0x377068=>{if('formatBlock'!=_0x377068['type']&&'formatInline'!=_0x377068['type'])return;const {data:_0x3e38ae}=_0x377068;return _0x3e38ae&&'mergeTableCells'==_0x3e38ae['commandName']?{'type':'format','content':o(_0x2becc0,'*Merge\x20cells*')}:void 0x0;}),_0x5557df['descriptionFactory']['registerDescriptionCallback'](_0x3f5fae=>{if('formatBlock'!=_0x3f5fae['type']&&'formatInline'!=_0x3f5fae['type'])return;const {data:_0x359103}=_0x3f5fae;return _0x359103?'splitTableCellVertically'==_0x359103['commandName']?{'type':'format','content':o(_0x2becc0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x359103['commandName']?{'type':'format','content':o(_0x2becc0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x440d0f=_0x41318e['_acceptFormatSuggestionCallbackFactory']();for(const _0x112fdb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5557df['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x112fdb,'accept',_0x440d0f);for(const _0x336eab of['splitTableCellVertically','splitTableCellHorizontally'])_0x5557df['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x336eab,'accept',_0x440d0f);_0x5557df['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4c156e=>{_0x4659c9['model']['change'](_0x219fec=>{const _0x4ee621=Array['from'](_0x6f5da4['getRanges']())['map'](_0x2566e5=>_0x114c36['fromRange'](_0x2566e5));_0x219fec['setSelection'](_0x4c156e),_0x4659c9['commands']['get']('mergeTableCells')['refresh'](),_0x4659c9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x45a6cc=_0x4ee621['filter'](_0x253705=>'$graveyard'!=_0x253705['root']['rootName']);_0x45a6cc['length']>0x0&&_0x219fec['setSelection'](_0x45a6cc);for(const _0x26e662 of _0x4ee621)_0x26e662['detach']();});});for(const _0x39cd18 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x23c2ea=_0x4659c9['commands']['get'](_0x39cd18);_0x23c2ea['on']('set:isEnabled',(_0x531d70,_0xa68ac2,_0x2f714a)=>{if(_0x2f714a){const _0x1559ce=_0x4659c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x15eeab=>_0x15eeab['is']('element','tableCell'));this['_areMergableCells'](_0x23c2ea['value'],_0x1559ce)||(_0x531d70['return']=!0x1,_0x531d70['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x42bba1=this['editor']['commands']['get']('mergeTableCells'),_0x2a0031=this['editor']['plugins']['get']('TableUtils');if(!_0x42bba1['isEnabled'])return!0x1;const _0x19e19e=_0x2a0031['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1b90d3 of _0x19e19e)for(const _0x36e32c of _0x19e19e)if(_0x1b90d3!=_0x36e32c&&!this['_areMergableCells'](_0x1b90d3,_0x36e32c))return!0x1;return!0x0;}['_areMergableCells'](_0x17c559,_0x12a7ef){const _0x209f7f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bdc69=this['editor']['model']['createRangeOn'](_0x17c559),_0x98c8f7=this['editor']['model']['createRangeOn'](_0x12a7ef),_0x3b42f6=new Set(),_0x568195=new Set();for(const _0x18162f of _0x209f7f['getSuggestions']())if(('insertion'==_0x18162f['type']||'deletion'==_0x18162f['type']||'mergeTableCells'==_0x18162f['subType'])&&_0x18162f['isInContent']){for(const _0x807fbd of _0x18162f['getRanges']())_0x807fbd['containsRange'](_0x4bdc69,!0x0)&&_0x3b42f6['add'](_0x18162f['type']+':'+_0x18162f['author']['id']),_0x807fbd['containsRange'](_0x98c8f7,!0x0)&&_0x568195['add'](_0x18162f['type']+':'+_0x18162f['author']['id']);}if(_0x3b42f6['size']!=_0x568195['size'])return!0x1;for(const _0x1396a4 of _0x3b42f6)if(!_0x568195['has'](_0x1396a4))return!0x1;return!0x0;}}class Ct extends _0x32720e{static get['requires'](){return[vt];}['afterInit'](){const _0xf75533=this['editor'];if(!_0xf75533['plugins']['has']('TableEditing'))return;const _0x529006=_0xf75533['locale'],_0x5e9e8b=_0xf75533['plugins']['get']('TrackChangesEditing');_0x5e9e8b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5e9e8b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5e9e8b['registerBlockAttribute']('headingRows'),_0x5e9e8b['registerBlockAttribute']('headingColumns'),_0x5e9e8b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x529006,'FORMAT_HEADER_ROW')),_0x5e9e8b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x529006,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xe80839=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cf1f1=this['editor']['plugins']['get']('TableUtils'),_0x2b080c=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x46efa9({showActiveMarker:_0x5ab9d1=!0x0,setDataAttribute:_0x5661fb=!0x0}={}){return(_0x3348b1,_0x13d9fa,_0x319c0f)=>{const {type:_0x19dfe9,id:_0x5da1f8}=_0xe80839['_splitMarkerName'](_0x13d9fa['markerName']),_0x501717=_0xe80839['getSuggestion'](_0x5da1f8),_0x192dfe=_0x501717['data'];if('formatBlock'!=_0x501717['type']||!_0x192dfe||'setTableColumnHeader'!=_0x192dfe['commandName'])return;if(_0x13d9fa['item'])return void _0x3348b1['stop']();if(!_0x319c0f['consumable']['consume'](_0x13d9fa['markerRange'],_0x3348b1['name']))return;const _0xa558ac=_0x13d9fa['markerRange']['start']['nodeAfter'],_0x511573=_0x13d9fa['markerRange']['end']['nodeBefore'],_0x88c0e0=_0xa558ac['parent']['parent'],{column:_0x2e10de}=_0x3cf1f1['getCellLocation'](_0xa558ac),{column:_0x202d2a}=_0x3cf1f1['getCellLocation'](_0x511573);for(let _0x37739b=_0x2e10de;_0x37739b<=_0x202d2a;_0x37739b++){const _0x487209=_0x3cf1f1['createTableWalker'](_0x88c0e0,{'column':_0x37739b,'includeAllSlots':!0x1});for(const _0x5aa26e of _0x487209){const _0x2a953e=_0x5aa26e['cell'],_0xb4c1b8=_0x319c0f['mapper']['toViewElement'](_0x2a953e);_0x319c0f['writer']['addClass']('ck-suggestion-marker-'+_0x19dfe9,_0xb4c1b8),_0x5661fb&&_0x319c0f['writer']['setAttribute']('data-suggestion',_0x5da1f8,_0xb4c1b8),_0x319c0f['mapper']['bindElementToMarker'](_0xb4c1b8,_0x13d9fa['markerName']),_0x5ab9d1&&(_0xe80839['activeMarkers']['includes'](_0x13d9fa['markerName'])?_0x319c0f['writer']['addClass']('ck-suggestion-marker--active',_0xb4c1b8):_0x319c0f['writer']['removeClass']('ck-suggestion-marker--active',_0xb4c1b8));}}};}_0xe80839['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2b080c),_0xe80839['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2b080c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x46efa9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x16be59,_0x3aa403,_0x240f1a)=>{_0x240f1a['options']['showSuggestionHighlights']&&_0x46efa9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x16be59,_0x3aa403,_0x240f1a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x259f0d,_0x169a1b,_0x31a777)=>{const {type:_0x5cd98c,id:_0x397240}=_0xe80839['_splitMarkerName'](_0x169a1b['markerName']),_0x3f5452=_0xe80839['getSuggestion'](_0x397240),_0x7e9f5f=_0x3f5452['data'];if('formatBlock'!=_0x3f5452['type']||!_0x7e9f5f||'setTableColumnHeader'!=_0x7e9f5f['commandName'])return;const _0x2dac31=_0x31a777['mapper']['markerNameToElements'](_0x169a1b['markerName']);if(_0x2dac31){for(const _0x2b65e9 of _0x2dac31)_0x31a777['writer']['removeClass']('ck-suggestion-marker-'+_0x5cd98c,_0x2b65e9),_0x31a777['writer']['removeClass']('ck-suggestion-marker--active',_0x2b65e9),_0x31a777['writer']['removeAttribute']('data-suggestion',_0x2b65e9),_0x31a777['mapper']['unbindElementFromMarkerName'](_0x2b65e9,_0x169a1b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x228825=this['editor'],_0x59677f=_0x228825['locale'];function _0x4255b7(_0x364915){return{'type':'format','content':o(_0x59677f,'*Format:*\x20%0',_0x364915)};}_0x228825['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xec4ef8=>{if('formatBlock'!=_0xec4ef8['type'])return;const {data:_0x418bd8}=_0xec4ef8;if(_0x418bd8){if('setTableRowHeader'==_0x418bd8['commandName']){const _0x398102=_0x418bd8['commandParams'][0x0]['forceValue'];return _0x4255b7(o(_0x59677f,_0x398102?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x418bd8['commandName']){const _0x4ac18a=_0x418bd8['commandParams'][0x0]['forceValue'];return _0x4255b7(o(_0x59677f,_0x4ac18a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x3854d2=>[_0x3854d2,null]));class Nt extends _0x32720e{static get['requires'](){return[vt];}['afterInit'](){const _0x5a385d=this['editor'];if(!_0x5a385d['plugins']['has']('TableClipboard'))return;const _0x42fd4d=_0x5a385d['plugins']['get']('TrackChangesEditing'),_0x1d269d=_0x5a385d['plugins']['get']('TableUtils'),_0x212eac=_0x5a385d['plugins']['get'](vt),_0x1bd0c8=_0x5a385d['plugins']['get']('TableClipboard');_0x212eac['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5a385d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5a385d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x17b6e6=null;_0x5a385d['model']['on']('insertContent',(_0x403dff,_0x4c98ee)=>{const [_0x362a1c,_0x1f2f17]=_0x4c98ee,_0x3be23e=_0x4c98ee[_0x4c98ee['length']-0x1];_0x3be23e&&_0x3be23e['forceDefaultExecution']||_0x42fd4d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3ade5e,_0x457060,_0x22634f,_0x4d5363,_0x37a30a){if(_0x457060&&!_0x457060['is']('documentSelection'))return!0x1;const _0x39c9ae=_0x37a30a['getTableIfOnlyTableInContent'](_0x3ade5e,_0x22634f);if(!_0x39c9ae||!Ue(_0x39c9ae,void 0x0,_0x4d5363))return!0x1;const _0x5f182d=_0x4d5363['getSelectionAffectedTableCells'](_0x22634f['document']['selection']);if(!_0x5f182d['length'])return!0x1;const _0x558b0b=_0x5f182d[0x0]['findAncestor']('table'),_0x3a48b5=_0x4d5363['getRowIndexes'](_0x5f182d),_0x2a86ac=_0x4d5363['getColumnIndexes'](_0x5f182d),_0x4e72cd={'startRow':_0x3a48b5['first'],'endRow':_0x3a48b5['last'],'startColumn':_0x2a86ac['first'],'endColumn':_0x2a86ac['last']};return 0x1==_0x5f182d['length']&&(_0x4e72cd['endRow']+=_0x4d5363['getRows'](_0x39c9ae)-0x1,_0x4e72cd['endColumn']+=_0x4d5363['getColumns'](_0x39c9ae)-0x1),Ue(_0x558b0b,_0x4e72cd,_0x4d5363);}(_0x362a1c,_0x1f2f17,_0x5a385d['model'],_0x1d269d,_0x1bd0c8)&&(_0x403dff['stop'](),_0x17b6e6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5a385d['model']['change'](()=>{_0x5a385d['model']['insertContent'](_0x4c98ee[0x0],_0x4c98ee[0x1],_0x4c98ee[0x2],{'forceDefaultExecution':!0x0});const _0x152f12=_0x2cd620(),{rowInsertionRanges:_0x532dd7,columnInsertionRanges:_0x41bf5d,insertionRanges:_0x5b956d,deletionRanges:_0x16282b,cells:_0x232532}=_0x17b6e6;_0x532dd7['length']&&_0x42fd4d['markMultiRangeInsertion'](_0x532dd7,'tablePasteRow',{'tablePasteChainId':_0x152f12}),_0x41bf5d['length']&&_0x42fd4d['markMultiRangeInsertion'](_0x41bf5d,'tablePasteColumn',{'tablePasteChainId':_0x152f12}),_0x5b956d['length']&&(_0x42fd4d['markMultiRangeInsertion'](_0x5b956d,'tablePaste',{'tablePasteChainId':_0x152f12,'skipNestingCheck':!0x0}),_0x5b956d['forEach'](_0x431979=>_0x431979['detach']?.())),_0x16282b['length']&&(_0x42fd4d['markMultiRangeDeletion'](_0x16282b,'tablePaste',{'tablePasteChainId':_0x152f12,'skipNestingCheck':!0x0}),_0x16282b['forEach'](_0x42b902=>_0x42b902['detach']?.()));const _0x3eb6e2=_0x42fd4d['markMultiRangeBlockFormat'](_0x232532['map'](({element:_0x337779})=>_0x337779),{'formatGroupId':_0x2cd620()},[],'tablePasteCell',{'tablePasteChainId':_0x152f12});if(_0x3eb6e2){const _0x143aed=_0x3eb6e2['getMarkers'](),_0x4ae5bf=[];for(const {element:_0x10a27c,attributes:_0xb4941f}of _0x232532){if(!_0xb4941f)continue;const _0x593d02=_0x5a385d['model']['createRangeOn'](_0x10a27c),_0x3600b5=_0x143aed['find'](_0x45b5d4=>_0x45b5d4['getRange']()['isEqual'](_0x593d02));_0x3600b5&&_0x4ae5bf['push']([_0x3600b5['name'],_0xb4941f]);}_0x4ae5bf['length']&&_0x3eb6e2['setAttribute']('markerAttributes',Object['fromEntries'](_0x4ae5bf));}_0x17b6e6=null;}));},{'priority':_0x4368d6['high']+0xa}),_0x5a385d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x59601e,_0x183157)=>{const [_0x112b2e,_0x11ad9c,,_0x4c5a76]=_0x183157;if(!_0x17b6e6)return;_0x59601e['stop']();const _0x1f0420=_0x112b2e['cell'],_0x5709c6=_0x11ad9c,_0x3b8370=Oe(_0x1f0420),_0x3d858f=Oe(_0x5709c6);_0x59601e['return']=_0x1f0420;let _0x1029aa=null,_0x7211b6=null;if(_0x3d858f||_0x3b8370){if(_0x3b8370&&!_0x3d858f){_0x4c5a76['remove'](_0x1f0420['getChild'](0x0));for(const _0x44d6ff of Array['from'](_0x5709c6['getChildren']()))_0x4c5a76['insert'](_0x44d6ff,_0x1f0420,'end');const _0xc3c547=_0x17b6e6['rowInsertionIndexes']['includes'](_0x112b2e['row']),_0x3224b3=_0x17b6e6['columnInsertionIndexes']['includes'](_0x112b2e['column']);_0xc3c547||_0x3224b3||(_0x1029aa=_0x114c36['fromRange'](_0x4c5a76['createRangeIn'](_0x1f0420)));}else _0x3d858f&&!_0x3b8370&&(_0x7211b6=_0x4c5a76['createRangeIn'](_0x1f0420));}else{const _0x3f2fad=_0x4c5a76['createElement']('tableCellSuggestion'),_0x3ce1e0=_0x4c5a76['createElement']('tableCellSuggestion');_0x4c5a76['wrap'](_0x4c5a76['createRangeIn'](_0x1f0420),_0x3ce1e0),_0x4c5a76['insert'](_0x3f2fad,_0x1f0420,0x0);for(const _0x2ca5b9 of Array['from'](_0x5709c6['getChildren']()))_0x4c5a76['insert'](_0x2ca5b9,_0x3f2fad,'end');_0x1029aa=_0x114c36['fromRange'](_0x4c5a76['createRangeOn'](_0x3f2fad)),_0x7211b6=_0x114c36['fromRange'](_0x4c5a76['createRangeOn'](_0x3ce1e0));}const _0x49fd8d=Array['from'](_0x5709c6['getAttributes']())['filter'](([_0x1551c7])=>Be['includes'](_0x1551c7));_0x17b6e6['cells']['push']({'element':_0x1f0420,'attributes':_0x49fd8d['length']?Object['fromEntries'](_0x49fd8d):null}),_0x1029aa&&_0x17b6e6['insertionRanges']['push'](_0x1029aa),_0x7211b6&&_0x17b6e6['deletionRanges']['push'](_0x7211b6);},{'priority':'high'}),_0x1d269d['on']('insertColumns',(_0x244d09,_0x3e212f)=>{const [_0xf9ee7e,_0x56e850={}]=_0x3e212f;if(!_0x17b6e6)return;const _0x138714=_0x56e850['at']||0x0,_0x25624b=_0x56e850['columns']||0x1;_0x17b6e6['columnInsertionIndexes']=new Array(_0x25624b)['fill'](_0x138714)['map']((_0x48a218,_0x49c51a)=>_0x48a218+_0x49c51a);for(const {cell:_0x528f8c}of _0x1d269d['createTableWalker'](_0xf9ee7e,{'startColumn':_0x138714,'endColumn':_0x138714+_0x25624b-0x1}))_0x17b6e6['columnInsertionRanges']['push'](_0x5a385d['model']['createRangeOn'](_0x528f8c));},{'priority':'low'}),_0x1d269d['on']('insertRows',(_0x10764d,_0x1fc9d8)=>{const [_0x256b6a,_0x4b7a98={}]=_0x1fc9d8;if(!_0x17b6e6)return;const _0x55faab=_0x4b7a98['at']||0x0,_0x4724da=_0x4b7a98['rows']||0x1;_0x17b6e6['rowInsertionIndexes']=new Array(_0x4724da)['fill'](_0x55faab)['map']((_0x33f6b0,_0x2d7c0a)=>_0x33f6b0+_0x2d7c0a);for(const {cell:_0x22d5ee}of _0x1d269d['createTableWalker'](_0x256b6a,{'startRow':_0x55faab,'endRow':_0x55faab+_0x4724da-0x1}))_0x17b6e6['rowInsertionRanges']['push'](_0x5a385d['model']['createRangeOn'](_0x22d5ee));},{'priority':'low'}),_0x42fd4d['descriptionFactory']['registerDescriptionCallback'](_0x40bdd=>{if(_0x40bdd['subType']&&_0x40bdd['subType']['startsWith']('tablePaste'))return _0x40bdd['previous']?{}:{'type':'insertion','content':o(_0x5a385d['locale'],'*Replace\x20table\x20cells*')};});const _0x47ea7f=()=>!0x1;for(const _0x30eeaf of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x42fd4d['_suggestionFactory']['registerCustomCallback']('insertion',_0x30eeaf,'join',_0x47ea7f),_0x42fd4d['_suggestionFactory']['registerCustomCallback']('deletion',_0x30eeaf,'join',_0x47ea7f),_0x42fd4d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30eeaf,'join',_0x47ea7f);_0x42fd4d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x47ea7f),_0x42fd4d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1876de,_0x57ef06,_0x4d02ca)=>{const _0x20da2b=_0x1876de['map'](_0x22a29f=>_0x22a29f['getContainedElement']())['filter'](_0x3ea483=>_0x3ea483),_0x4b9790=new Map(_0x20da2b['map'](_0x397a90=>[_0x397a90,null]));if(_0x17b6e6){for(const {element:_0x293a8e,attributes:_0xa920d7}of _0x17b6e6['cells'])_0xa920d7&&_0x4b9790['set'](_0x293a8e,_0xa920d7);}else{if(_0x4d02ca&&_0x4d02ca['markerAttributes'])for(const [_0x29ddf6,_0x40e7e5]of Object['entries'](_0x4d02ca['markerAttributes'])){const _0x41ba70=_0x5a385d['model']['markers']['get'](_0x29ddf6),_0x1992e9=_0x41ba70?_0x41ba70['getRange']()['getContainedElement']():null;_0x1992e9&&_0x4b9790['set'](_0x1992e9,_0x40e7e5);}}_0x5a385d['model']['change'](_0x1bc3fb=>{for(const [_0x273e32,_0x4c2639]of _0x4b9790)_0x1bc3fb['setAttributes']({...xe,..._0x4c2639},_0x273e32);});});const _0x276642=(_0x452220,_0x3d09da)=>{_0x42fd4d['_suggestionFactory']['registerCustomCallback'](_0x452220,'tablePaste',_0x3d09da,(_0x2a6eea,_0x14484a,_0x3afd51)=>{_0x5a385d['model']['change'](_0x4750c0=>{const _0x30f671=[];for(const _0x5bfdbb of _0x2a6eea){const _0x4299ae=_0x5bfdbb['start']['nodeAfter'];_0x4299ae['is']('element','tableCellSuggestion')&&_0x30f671['push'](_0x4299ae);}_0x42fd4d['_suggestionFactory']['getSuggestionCallback'](_0x452220,null,_0x3d09da)(_0x2a6eea,_0x14484a,_0x3afd51);for(const _0x236f76 of _0x30f671)'$graveyard'!=_0x236f76['root']['rootName']&&_0x4750c0['unwrap'](_0x236f76);});});};_0x276642('insertion','accept'),_0x276642('insertion','discard'),_0x276642('deletion','accept'),_0x276642('deletion','discard'),_0x42fd4d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x21188f=>{const _0xaf221a=_0x21188f['map'](_0x4c2ecd=>_0x4c2ecd['getContainedElement']()),_0x911281=_0xaf221a[0x0]['findAncestor']('table'),{minRow:_0x4a09f6,maxRow:_0x481377}=_0x212eac['_getCoordsForCells'](_0xaf221a);_0x1d269d['removeRows'](_0x911281,{'at':_0x4a09f6,'rows':_0x481377-_0x4a09f6+0x1});}),_0x42fd4d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x140e23=>{const _0x4eeead=_0x140e23['map'](_0x554c64=>_0x554c64['getContainedElement']()),_0x527144=_0x4eeead[0x0]['findAncestor']('table'),{minColumn:_0x49720f,maxColumn:_0x87d78a}=_0x212eac['_getCoordsForCells'](_0x4eeead);_0x1d269d['removeColumns'](_0x527144,{'at':_0x49720f,'columns':_0x87d78a-_0x49720f+0x1});});const _0x5f03bc=(_0x1e62f7,_0x5cde28)=>{if(!_0x5cde28['subType']||!_0x5cde28['subType']['startsWith']('tablePaste'))return;const _0x200fdc=_0x5cde28['attributes']['tablePasteChainId'],_0x683418=_0x42fd4d['getSuggestions']()['filter'](_0x5021cc=>_0x5021cc['isInContent']&&_0x5021cc['attributes']&&_0x5021cc['attributes']['tablePasteChainId']==_0x200fdc);_0x683418['length']&&_0x5cde28['getAllAdjacentSuggestions']()['length']!=_0x683418['length']&&_0x683418['reduce']((_0x2c1936,_0x47cd63)=>(_0x2c1936['next']=_0x47cd63,_0x47cd63['previous']=_0x2c1936,_0x47cd63));};function _0x229622(_0x2f9a05,_0x538f2c=!0x0){const {id:_0x5bf832,authorId:_0x4f2a18}=_0x42fd4d['_splitMarkerName'](_0x2f9a05['markerName']),_0x5585e3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4b711b=_0x42fd4d['activeMarkers']['includes'](_0x2f9a05['markerName']);return _0x4b711b&&_0x5585e3['push']('ck-suggestion-marker--active'),{'classes':_0x5585e3,'attributes':{'data-suggestion':_0x5bf832,'data-author-id':_0x4f2a18},'priority':_0x4b711b&&_0x538f2c?0xbc2:0xbb8};}_0x42fd4d['on']('suggestionLoaded',_0x5f03bc,{'priority':'high'}),_0x42fd4d['on']('suggestionUnloaded',_0x5f03bc,{'priority':'high'}),_0x5a385d['model']['document']['registerPostFixer'](()=>{let _0x57814e=!0x1;const _0x22c902=Array['from'](_0x5a385d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e3f02,data:_0x47db65}of _0x22c902){const {group:_0x3bb48d,type:_0x327390,id:_0x13a4bf}=_0x42fd4d['_splitMarkerName'](_0x4e3f02);if('suggestion'!=_0x3bb48d||'deletion'!=_0x327390||_0x47db65['oldRange'])continue;if(!_0x42fd4d['hasSuggestion'](_0x13a4bf))continue;const _0x48e1cf=_0x42fd4d['getSuggestion'](_0x13a4bf)['getRanges'](),_0xf47848=_0x5a385d['plugins']['get']('Users')['me'];for(const _0x12ca9b of _0x42fd4d['getSuggestions']()){if(!_0x12ca9b['isInContent']||_0x12ca9b['author']!=_0xf47848)continue;if('formatBlock'!=_0x12ca9b['type']||'tablePasteCell'!=_0x12ca9b['subType'])continue;if(_0x12ca9b['getRanges']()['every'](_0x341a43=>_0x48e1cf['some'](_0xcb6fdf=>_0xcb6fdf['containsRange'](_0x341a43,!0x0)))){for(const _0xeb2718 of _0x12ca9b['getAllAdjacentSuggestions']())_0xeb2718['isInContent']&&(_0xeb2718['discard'](),_0x57814e=!0x0);}}}return _0x57814e;}),_0x5a385d['model']['document']['registerPostFixer'](_0x18b813=>{const _0x1c874d=_0x5a385d['commands']['get']('redo');if(!_0x1c874d||!_0x1c874d['_createdBatches']['has'](_0x18b813['batch']))return!0x1;let _0x3e022c=!0x1;const _0x14b591=_0x5a385d['plugins']['get']('Users')['me'],_0x365642=_0x5a385d['model']['document']['differ']['getChanges'](),_0x203f06=Array['from'](_0x5a385d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5e75fb,data:_0x4ad02b})=>{const {group:_0x2fb44c,subType:_0x4c1f1c,authorId:_0x31689f}=_0x42fd4d['_splitMarkerName'](_0x5e75fb);return'suggestion'==_0x2fb44c&&'tablePaste'==_0x4c1f1c&&_0x31689f==_0x14b591['id']&&!_0x4ad02b['oldRange'];});for(const _0x4f6c37 of _0x365642){if('insert'!=_0x4f6c37['type']||'tableCellSuggestion'!=_0x4f6c37['name']||0x1!=_0x4f6c37['length'])continue;const _0x3ab8da=_0x18b813['createRange'](_0x4f6c37['position'],_0x4f6c37['position']['getShiftedBy'](0x1));if(!_0x203f06['find'](({data:_0x539e5c})=>_0x539e5c['newRange']['isEqual'](_0x3ab8da))){for(const {name:_0x29220b,data:_0x3a2f78}of _0x203f06)if(_0x3ab8da['containsRange'](_0x3a2f78['newRange'])){_0x18b813['updateMarker'](_0x29220b,{'range':_0x3ab8da}),_0x3e022c=!0x0;break;}}}return _0x3e022c;}),_0x5a385d['model']['document']['registerPostFixer'](_0x2fab6c=>{let _0x5e37f4=!0x1;const _0x5b66b4=_0x5a385d['plugins']['get']('Users')['me'],_0x150eb8=_0x42fd4d['getSuggestions']()['filter'](_0x52ede=>_0x52ede['isInContent']&&_0x52ede['author']==_0x5b66b4),_0x2601c7=new Set(),_0x48a227=new Set();for(const _0x1c9e92 of _0x150eb8)if('tablePaste'==_0x1c9e92['subType'])for(const _0x11f462 of _0x1c9e92['getMarkers']()){const _0x153b84=_0x11f462['getRange']()['getContainedElement']();if(_0x153b84){if(_0x153b84['is']('element','tableCellSuggestion')&&Oe(_0x153b84)){_0x1c9e92['removeMarker'](_0x11f462['name']),_0x2601c7['add'](_0x153b84),_0x5e37f4=!0x0;const _0x47459c=_0x153b84['nextSibling'],_0x22eb14=_0x153b84['previousSibling'],_0x3d698d=_0x47459c&&_0x47459c['is']('element','tableCellSuggestion'),_0x207d4b=_0x22eb14&&_0x22eb14['is']('element','tableCellSuggestion');_0x3d698d&&!_0x2601c7['has'](_0x47459c)&&_0x48a227['add'](_0x47459c),_0x207d4b&&!_0x2601c7['has'](_0x22eb14)&&_0x48a227['add'](_0x22eb14);}else _0x153b84['is']('element','paragraph')&&_0x153b84['isEmpty']&&(_0x1c9e92['removeMarker'](_0x11f462['name']),_0x5e37f4=!0x0);}}else{if('tablePasteCell'==_0x1c9e92['subType']){if(!_0x1c9e92['attributes']||!_0x1c9e92['attributes']['tablePasteChainId'])continue;const _0x44734e=_0x1c9e92['attributes']['markerAttributes'];if(_0x44734e&&Object['keys'](_0x44734e)['length'])continue;const _0x334cde=_0x1c9e92['attributes']['tablePasteChainId'];let _0x405ebb=!0x0,_0x22f419=!0x0;for(const _0x4e20ab of _0x150eb8)if(_0x4e20ab['subType']&&_0x4e20ab['subType']['startsWith']('tablePaste')){if(!_0x4e20ab['attributes']['tablePasteChainId']){_0x22f419=!0x1;break;}if(_0x4e20ab['id']!=_0x1c9e92['id']&&_0x4e20ab['attributes']['tablePasteChainId']==_0x334cde){_0x405ebb=!0x1;break;}}_0x22f419&&_0x405ebb&&(_0x1c9e92['removeMarkers'](),_0x5e37f4=!0x0);}}for(const _0x3dc734 of _0x2601c7)_0x2fab6c['remove'](_0x3dc734);for(const _0x43bd09 of _0x48a227)_0x2fab6c['unwrap'](_0x43bd09);return _0x5e37f4;}),_0x5a385d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x17b15f=>_0x229622(_0x17b15f),'converterPriority':'high'}),_0x5a385d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xcfcec8,_0x424f2b)=>_0x424f2b['options']['showSuggestionHighlights']?_0x229622(_0xcfcec8,!0x1):null,'converterPriority':'high'});const _0xf11761=_0x5a385d['editing']['view'];this['listenTo'](_0xf11761['document'],'clipboardOutput',(_0x48b708,_0x1139fa)=>{const _0x5b7418=[];for(const _0x47d466 of _0xf11761['createRangeIn'](_0x1139fa['content'])['getItems']())_0x47d466['is']('element','suggestion-td')&&_0x5b7418['push'](_0x47d466);_0xf11761['change'](_0x2e8912=>{for(const _0xcec983 of _0x5b7418)_0x2e8912['move'](_0x2e8912['createRangeIn'](_0xcec983),_0x2e8912['createPositionBefore'](_0xcec983)),_0x2e8912['remove'](_0xcec983);});});}}function Oe(_0x327872){if(_0x327872['isEmpty'])return!0x0;const _0x20a5f8=_0x327872['getChild'](0x0);return _0x20a5f8['is']('element','paragraph')&&_0x20a5f8['isEmpty'];}function Ue(_0x315059,_0x3ed105={},_0xdc2453){for(const {isAnchor:_0x580524,cellHeight:_0x5e725b,cellWidth:_0xc3c56}of _0xdc2453['createTableWalker'](_0x315059,{'includeAllSlots':!0x0,..._0x3ed105}))if(!_0x580524||0x1!=_0x5e725b||0x1!=_0xc3c56)return!0x1;return!0x0;}class Dt extends _0x32720e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x347ab5=this['editor']['plugins']['get']('TrackChangesEditing');_0x347ab5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x347ab5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x347ab5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x347ab5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x347ab5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x347ab5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1cb83b,_0x5cdfc5){const _0x5444cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46dcaa=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x165768=_0x5cdfc5['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1ac11a=_0x46dcaa['getColumnGroupElement'](_0x165768);let _0x5890c0=_0x1ac11a?_0x46dcaa['getTableColumnsWidths'](_0x1ac11a):null,_0x5d12c3=_0x165768['getAttribute']('tableWidth')||null;const _0x3cf089=_0x5cdfc5['tableWidth']||_0x5d12c3,_0xaae0db=_0x5cdfc5['columnWidths']||_0x5890c0,_0x16b2b6=this['editor']['plugins']['get']('Users')['me'];for(const _0xa540c3 of _0x5444cc['getSuggestions']()){const _0xf4610e=_0xa540c3['getContainedElement']();if('resizeTable'===_0xa540c3['subType']&&_0xf4610e===_0x165768){_0xa540c3['author']!==_0x16b2b6&&_0xa540c3['discard']();const _0x85944f=_0xa540c3['data']['commandParams'];_0x5d12c3=_0x85944f[0x0]['tableWidth'],_0x5890c0=_0x85944f[0x0]['columnWidths'];break;}}_0x1cb83b({'table':_0x165768,'tableWidth':_0x3cf089,'columnWidths':_0xaae0db}),_0x5444cc['markBlockFormat'](_0x165768,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5d12c3,'columnWidths':_0x5890c0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xa2b4e7){if('formatBlock'!=_0xa2b4e7['type']&&'formatInline'!=_0xa2b4e7['type'])return;const {data:_0x5c79e2}=_0xa2b4e7;if(_0x5c79e2&&'resizeTable'===_0x5c79e2['formatGroupId']){const _0x32ad5c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x32ad5c)};}}}class Mt extends _0x32720e{['afterInit'](){const _0x87aa63=this['editor'];_0x87aa63['plugins']['has']('Template')&&_0x87aa63['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x32720e{['afterInit'](){const _0x218cb2=this['editor'];if(!_0x218cb2['commands']['get']('insertTableOfContents'))return;_0x218cb2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1db4af=_0x218cb2['plugins']['get']('TrackChangesEditing'),_0x4cea1b=_0x218cb2['locale'];_0x1db4af['descriptionFactory']['registerElementLabel']('tableOfContents',_0x143d2f=>o(_0x4cea1b,'ELEMENT_TABLE_OF_CONTENTS',_0x143d2f));}}class Bt extends _0x32720e{['afterInit'](){const _0x2dc32b=this['editor'];if(!_0x2dc32b['plugins']['has']('Title'))return;const _0x1cd62b=_0x2dc32b['plugins']['get']('TrackChangesEditing');_0x1cd62b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2dc32b['locale'],'ELEMENT_TITLE')),_0x2dc32b['model']['document']['registerPostFixer'](_0x348347=>{let _0xd619f9=!0x1;const _0x42df37=Array['from'](_0x2dc32b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x338abf,data:_0x468bf7}of _0x42df37){const {group:_0x4637d9}=_0x1cd62b['_splitMarkerName'](_0x338abf);if('suggestion'!==_0x4637d9||!_0x468bf7['newRange'])continue;const _0x5b485a=_0x468bf7['newRange'],_0x32f626=_0x5b485a['end']['nodeBefore'];if(!_0x32f626||!_0x32f626['is']('element','title-content'))continue;if(!_0x5b485a['start']['isTouching'](_0x5b485a['end']))continue;const _0x1ad34e=_0x2dc32b['model']['schema']['getNearestSelectionRange'](_0x5b485a['end'],'forward');if(_0x1ad34e&&_0x1ad34e['isCollapsed']){const _0x537cc1=_0x348347['createRange'](_0x5b485a['start'],_0x1ad34e['start']);_0x537cc1['isEqual'](_0x5b485a)||(_0x348347['updateMarker'](_0x338abf,{'range':_0x537cc1}),_0xd619f9=!0x0);}_0xd619f9||(_0x348347['removeMarker'](_0x338abf),_0xd619f9=!0x0);}return _0xd619f9;});}}class Ot extends _0x32720e{['afterInit'](){const _0x82d84d=this['editor'],_0x2a1c24=_0x82d84d['plugins']['get']('TrackChangesEditing');_0x82d84d['plugins']['has']('Uploadcare')&&(_0x2a1c24['enableCommand']('uploadcare'),_0x82d84d['plugins']['has']('UploadcareImageEdit')&&(_0x2a1c24['enableCommand']('uploadcareImageEdit'),_0x2a1c24['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2a1c24['registerBlockAttribute']('uploadcareImageId'),_0x2a1c24['descriptionFactory']['registerDescriptionCallback'](_0x24f067=>{if('attribute'!=_0x24f067['type'])return;const {data:_0x5d4e1a}=_0x24f067;return _0x5d4e1a&&'uploadcareImageId'==_0x5d4e1a['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x32720e{['afterInit'](){const _0x117c09=this['editor'],_0x424e33=_0x117c09['plugins']['get']('TrackChangesEditing');_0x117c09['plugins']['has']('UndoEditing')&&(_0x424e33['enableCommand']('undo'),_0x424e33['enableCommand']('redo'));}}class Tt extends _0x32720e{static get['requires'](){return[vt];}['afterInit'](){const _0xf939a2=this['editor'];if(!_0xf939a2['plugins']['has']('TableCaptionEditing'))return;_0xf939a2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x32720e{['tableProperties'];['tableCellProperties'];constructor(_0x993d67){super(_0x993d67),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xc5f488=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xad3018 of this['tableProperties'])_0xc5f488['enableCommand'](_0xad3018,(_0x5936e2,_0x259276)=>{const _0x1b2291=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xad3018,[_0x1b2291],this['tableProperties'],'tableProperties',_0x5936e2,_0x259276);});_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xc5f488['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2c6150,_0x232a56)=>this['handleDiscardAction'](this['tableProperties'],_0x2c6150,_0x232a56)),_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x429ec5 of this['tableCellProperties'])_0xc5f488['enableCommand'](_0x429ec5,(_0x194200,_0x4d76fe)=>{const _0x1b4364=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x429ec5,_0x1b4364,this['tableCellProperties'],'tableCellProperties',_0x194200,_0x4d76fe);});_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xc5f488['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3996f9,_0x9e49cc)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3996f9,_0x9e49cc)),_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xc5f488['descriptionFactory']['registerDescriptionCallback'](_0x20f475=>this['handleSuggestionDescription'](_0x20f475));}['_handlePropertyChange'](_0x21a5b7,_0x525b4d,_0x53c0fd,_0x111f7d,_0x2fe765,_0x120631){const _0x480d37=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x120631['batch'],()=>{for(const _0x560ab8 of _0x525b4d){if(this['_getSuggestion'](_0x560ab8,_0x111f7d))_0x2fe765(_0x120631);else{const _0x28a65d={};for(const _0x296448 of _0x53c0fd){const _0x201458=_0x560ab8['getAttribute'](_0x296448);void 0x0!==_0x201458&&(_0x28a65d[_0x296448]=_0x201458);}_0x2fe765(_0x120631),_0x480d37['markBlockFormat'](_0x560ab8,{'commandParams':[_0x28a65d]},[],_0x111f7d);}}});}['handleDiscardAction'](_0x51efcc,_0x23aa40,_0x123350){const _0x3b7c4a=_0x23aa40[0x0]['start']['nodeAfter'],_0x346dab=_0x123350['commandParams'][0x0];this['editor']['model']['change'](_0x1ab02d=>{for(const _0xfe91ff of _0x51efcc)void 0x0!==_0x346dab[_0xfe91ff]?_0x1ab02d['setAttribute'](_0xfe91ff,_0x346dab[_0xfe91ff],_0x3b7c4a):_0x1ab02d['removeAttribute'](_0xfe91ff,_0x3b7c4a);});}['handleSuggestionDescription'](_0x43991d){if(_0x43991d['data'])switch(_0x43991d['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'](_0x5e4471,_0x33de0e){const _0xab24a5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x801eca of _0xab24a5['getSuggestions']({'skipNotAttached':!0x0})){const _0x1b4dff=_0x801eca['getContainedElement']();if(_0x801eca['subType']===_0x33de0e&&_0x1b4dff===_0x5e4471)return _0x801eca;}return null;}}const m='$elementName';class p extends _0x32720e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x48e0a0,_0x2ac36e,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57ab2f){super(_0x57ab2f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x59f05c,_0x2a94ad,_0x31a2a8,_0x1f85bd)=>{this['_model']['change'](()=>{for(const _0x4bb3a0 of[..._0x1f85bd,..._0x31a2a8])this['_model']['markers']['has'](_0x4bb3a0)&&_0x57ab2f['editing']['reconvertMarker'](_0x4bb3a0);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x57ab2f['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(),_0x57ab2f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x57ab2f['config']['get']('trackChanges.trackFormatChanges'),_0x57ab2f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x57ab2f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x57ab2f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3ced0f=this['editor'],_0x5b2311=(_0x38797c,_0x23ec46)=>{if('attribute'!=_0x38797c)return'ck-suggestion-marker-'+_0x38797c;const _0x25c188=_0x23ec46['split']('|')[0x0];return this['_isBlockAttribute'](_0x25c188)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3ced0f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x307c82=>{const {id:_0x32f3ff,authorId:_0x17fbc7,type:_0x3673da,subType:_0xb5af14}=this['_splitMarkerName'](_0x307c82['markerName']),_0x4d9f6a=['ck-suggestion-marker',_0x5b2311(_0x3673da,_0xb5af14)];let _0xb84249=0xbb8;return this['activeMarkers']['includes'](_0x307c82['markerName'])&&(_0x4d9f6a['push']('ck-suggestion-marker--active'),_0xb84249=0xbc2),'deletion'==_0x3673da&&(_0xb84249+=0x5),{'classes':_0x4d9f6a,'attributes':{'data-suggestion':_0x32f3ff,'data-author-id':_0x17fbc7},'priority':_0xb84249};}}),_0x3ced0f['conversion']['for']('dataDowncast')['add'](_0x4b1ccb=>{_0x4b1ccb['on']('addMarker:suggestion',(_0x5063f4,_0x11d7d1,_0x23df12)=>{if(!_0x23df12['options']['showSuggestionHighlights'])return;const _0x969968=_0x11d7d1['item'];if(!_0x969968)return;const _0x1556a6=_0x23df12['mapper']['toViewElement'](_0x969968);_0x3ced0f['model']['schema']['isObject'](_0x969968)&&_0x1556a6&&!_0x1556a6['getCustomProperty']('widget')&&_0x1556a6['is']('containerElement')&&_0x1a00cd(_0x1556a6,_0x23df12['writer']);},{'priority':'high'});}),_0x3ced0f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x58b49f,_0x488d10)=>{if(!_0x488d10['options']['showSuggestionHighlights'])return null;const {type:_0x2deaea,subType:_0x21128e}=this['_splitMarkerName'](_0x58b49f['markerName']);return{'classes':['ck-suggestion-marker',_0x5b2311(_0x2deaea,_0x21128e)],'priority':0xbb8};}});const _0x412b4b=({showActiveMarkers:_0x404646=!0x0,isAttributeSuggestion:_0x27cbdd=!0x1}={})=>(_0x20a3df,_0x30b4a9,_0x2b9903)=>{if(!_0x30b4a9['item'])return;const {id:_0x300ef2,authorId:_0x3da117}=this['_splitMarkerName'](_0x30b4a9['markerName']);if(_0x27cbdd){const _0x4a88e4=this['_suggestions']['get'](_0x300ef2),_0x2761f9=this['_getAttributeKey'](_0x4a88e4);if(!this['_isBlockAttribute'](_0x2761f9))return;}if(_0x30b4a9['item']['is']('selection'))return void _0x2b9903['consumable']['consume'](_0x30b4a9['item'],_0x20a3df['name']);const _0x382df2=_0x2b9903['mapper']['toViewElement'](_0x30b4a9['item']);if(_0x30b4a9['item']['is']('element')&&_0x3ced0f['model']['schema']['isBlock'](_0x30b4a9['item'])&&!_0x382df2['getCustomProperty']('addHighlight')){_0x2b9903['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x382df2),_0x2b9903['writer']['setAttribute']('data-suggestion',_0x300ef2,_0x382df2),_0x2b9903['writer']['setAttribute']('data-author-id',_0x3da117,_0x382df2),_0x2b9903['mapper']['bindElementToMarker'](_0x382df2,_0x30b4a9['markerName']),_0x404646&&(this['activeMarkers']['includes'](_0x30b4a9['markerName'])?_0x2b9903['writer']['addClass']('ck-suggestion-marker--active',_0x382df2):_0x2b9903['writer']['removeClass']('ck-suggestion-marker--active',_0x382df2));for(const _0xc0c354 of _0x3ced0f['model']['createRangeIn'](_0x30b4a9['item'])['getItems']())_0x2b9903['consumable']['consume'](_0xc0c354,_0x20a3df['name']);_0x2b9903['consumable']['consume'](_0x30b4a9['item'],_0x20a3df['name']);}};_0x3ced0f['conversion']['for']('dataDowncast')['add'](_0x59373d=>{_0x59373d['on']('addMarker:suggestion:formatBlock',(_0x22a593,_0x3ef6d6,_0x1de6c2)=>{_0x1de6c2['options']['showSuggestionHighlights']&&_0x412b4b({'showActiveMarkers':!0x1})(_0x22a593,_0x3ef6d6,_0x1de6c2);},{'priority':'highest'});}),_0x3ced0f['conversion']['for']('dataDowncast')['add'](_0x1d78c9=>{_0x1d78c9['on']('addMarker:suggestion:attribute',(_0x1911a6,_0x353de9,_0x5e1661)=>{_0x5e1661['options']['showSuggestionHighlights']&&_0x412b4b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1911a6,_0x353de9,_0x5e1661);},{'priority':'highest'});}),_0x3ced0f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1e66c8,_0x2990c1)=>_0x2990c1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1e66c8['substr'](0xb)}}),_0x3ced0f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xa0af7d,{writer:_0x1249c2})=>{let _0x220250='suggestion:'+_0xa0af7d['getAttribute']('suggestion-type')+':'+_0xa0af7d['getAttribute']('id');return _0xa0af7d['getAttribute']('marker-count')&&(_0x220250+=':'+_0xa0af7d['getAttribute']('marker-count')),_0x1249c2['createElement']('$marker',{'data-name':_0x220250});}}),_0x3ced0f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3ced0f['conversion']['for']('editingDowncast')['add'](_0xed3887=>{_0xed3887['on']('addMarker:suggestion:formatBlock',_0x412b4b(),{'priority':'high'});}),_0x3ced0f['conversion']['for']('editingDowncast')['add'](_0x49a143=>{_0x49a143['on']('addMarker:suggestion:attribute',_0x412b4b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3ced0f['conversion']['for']('editingDowncast')['add'](_0x1a0dd5=>{_0x1a0dd5['on']('removeMarker:suggestion:formatBlock',(_0x3be4ba,_0x237b68,_0x5d6127)=>{const _0x34cead=_0x5d6127['mapper']['markerNameToElements'](_0x237b68['markerName']);if(_0x34cead){for(const _0x2393d5 of _0x34cead)_0x2393d5['getCustomProperty']('addHighlight')||(_0x5d6127['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2393d5),_0x5d6127['writer']['removeAttribute']('data-suggestion',_0x2393d5),_0x5d6127['writer']['removeAttribute']('data-author-id',_0x2393d5),_0x5d6127['mapper']['unbindElementFromMarkerName'](_0x2393d5,_0x237b68['markerName']));}},{'priority':'high'});}),_0x3ced0f['conversion']['for']('editingDowncast')['add'](_0x5d4b92=>{_0x5d4b92['on']('removeMarker:suggestion:attribute',(_0x2397be,_0x16985e,_0x1f20e8)=>{const _0x524764=_0x1f20e8['mapper']['markerNameToElements'](_0x16985e['markerName']);if(!_0x524764)return;const {id:_0x7ebc56}=this['_splitMarkerName'](_0x16985e['markerName']),_0x13cafd=this['_suggestions']['get'](_0x7ebc56),_0xfbbc9a=this['_getAttributeKey'](_0x13cafd);if(this['_isBlockAttribute'](_0xfbbc9a)){for(const _0x44e7e9 of _0x524764)_0x44e7e9['getCustomProperty']('addHighlight')||(_0x1f20e8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x44e7e9),_0x1f20e8['writer']['removeAttribute']('data-suggestion',_0x44e7e9),_0x1f20e8['writer']['removeAttribute']('data-author-id',_0x44e7e9),_0x1f20e8['mapper']['unbindElementFromMarkerName'](_0x44e7e9,_0x16985e['markerName']));}},{'priority':'high'});}),_0x3ced0f['model']['document']['registerPostFixer'](_0xeff71d=>{let _0x33672b=!0x1;const _0x3b44ac=Array['from'](_0x3ced0f['model']['document']['differ']['getChangedMarkers']()),_0x2e87aa=new Set();for(const {name:_0x3708af,data:_0x124e72}of _0x3b44ac){const {group:_0x52979e,type:_0x592dbb,subType:_0x51a9ad,id:_0x3f08aa}=this['_splitMarkerName'](_0x3708af);if('suggestion'!==_0x52979e)continue;const _0x312c92=this['_suggestions']['get'](_0x3f08aa);if(null!=_0x124e72['newRange']){'formatInline'==_0x592dbb&&(_0x33672b=_0x33672b||Gt(_0x124e72['newRange'],_0x3708af,_0xeff71d,_0x3ced0f['model']['schema']));const _0x157719='attribute'==_0x592dbb&&this['_isBlockAttribute'](_0x51a9ad['split']('|')[0x0]);if(_0x124e72['newRange']['isCollapsed']||'$graveyard'==_0x124e72['newRange']['root']['rootName']||'formatBlock'==_0x592dbb&&!Lt(_0x124e72['newRange'])||_0x157719&&!Lt(_0x124e72['newRange'])||'deletion'==_0x592dbb&&!(!Pt(_0xcf0357=_0x124e72['newRange'])&&!function(_0x18dd74){return _0x18dd74['start']['parent']==_0x18dd74['end']['nodeBefore']&&_0x18dd74['start']['isAtEnd'];}(_0xcf0357)))_0xeff71d['removeMarker'](_0x3708af),_0x33672b=!0x0;else{if(!_0x312c92||!_0x312c92['isInContent'])continue;if(_0x124e72['newRange']&&_0x124e72['oldRange']&&_0x124e72['newRange']['isEqual'](_0x124e72['oldRange']))continue;_0x2e87aa['add'](_0x312c92);}}}var _0xcf0357;return _0x2e87aa['size']>0x0&&(_0x33672b=!!this['_joinWithAdjacentSuggestions'](_0x2e87aa)||_0x33672b),_0x33672b;}),_0x3ced0f['model']['document']['registerPostFixer'](_0x5831cc=>{let _0x6daa41=!0x1;for(const _0x895247 of _0x3ced0f['model']['document']['differ']['getChanges']())if('insert'==_0x895247['type'])for(const _0x181d18 of this['_suggestions']['values']()){if(_0x181d18['isMultiRange']||!_0x181d18['isInContent'])continue;const _0x1d566a='formatBlock'==_0x181d18['type'],_0x4ebd12=this['_getAttributeKey'](_0x181d18),_0x865ea1=_0x4ebd12&&this['_isBlockAttribute'](_0x4ebd12);if(!_0x1d566a&&!_0x865ea1)continue;const _0x29a4e1=_0x181d18['getFirstRange']();if(_0x29a4e1['start']['parent']!=_0x29a4e1['end']['parent']&&!_0x29a4e1['end']['isAtEnd']){const _0x4b0da4=_0x3ced0f['model']['createPositionAt'](_0x29a4e1['start']['nodeAfter'],'end'),_0x560ced=_0x3ced0f['model']['createRange'](_0x29a4e1['start'],_0x4b0da4);_0x5831cc['updateMarker'](_0x181d18['getFirstMarker'](),{'range':_0x560ced}),_0x6daa41=!0x0;}}return _0x6daa41;}),_0x3ced0f['model']['document']['registerPostFixer'](_0x119d2e=>this['_processAttributeChanges'](_0x119d2e)),_0x3ced0f['model']['document']['registerPostFixer'](_0x2114dd=>!_0x2114dd['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2114dd)),_0x3ced0f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3ced0f['model']['document']['on']('change:data',(_0x47f451,_0x52e9c1)=>{if(!_0x52e9c1['isLocal']||_0x52e9c1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4757ed=_0x3ced0f['model']['document']['differ']['getChanges']();if(0x0==_0x4757ed['length'])return;const _0x84f279=[],_0x8b9e69=_0x4757ed['filter'](_0x15ccfb=>'attribute'==_0x15ccfb['type']),_0x239460=_0x4757ed['filter'](_0x3ac6e4=>'insert'==_0x3ac6e4['type']&&'$text'!=_0x3ac6e4['name']);for(const _0xb65b5f of _0x8b9e69)this['_isRegisteredAttribute'](_0xb65b5f['attributeKey'])&&_0x84f279['push']({'key':_0xb65b5f['attributeKey'],'newValue':_0xb65b5f['attributeNewValue'],'oldValue':_0xb65b5f['attributeOldValue'],'range':Jt(_0xb65b5f['range'],_0x3ced0f['model'])});for(const _0x5ab3f4 of _0x239460){if('rename'!=_0x5ab3f4['action']&&'refresh'!=_0x5ab3f4['action'])continue;const _0xb3a431=Ht(_0x5ab3f4['position']['nodeAfter'],_0x3ced0f['model']),_0x45a875=_0x5ab3f4['before'];'rename'==_0x5ab3f4['action']&&_0x84f279['push']({'key':m,'newValue':_0x5ab3f4['name'],'oldValue':_0x45a875['name'],'range':_0xb3a431});for(const [_0x4e4818,_0x190854]of _0x45a875['attributes']){if(!this['_isRegisteredAttribute'](_0x4e4818))continue;const _0x2b95e2=_0x5ab3f4['attributes']['get'](_0x4e4818);_0x190854!==_0x2b95e2&&_0x84f279['push']({'key':_0x4e4818,'newValue':_0x2b95e2,'oldValue':_0x190854,'range':_0xb3a431});}for(const [_0x49ead0,_0x4f9fd2]of _0x5ab3f4['attributes'])this['_isRegisteredAttribute'](_0x49ead0)&&(_0x45a875['attributes']['has'](_0x49ead0)||_0x84f279['push']({'key':_0x49ead0,'newValue':_0x4f9fd2,'oldValue':null,'range':_0xb3a431}));}0x0!=_0x84f279['length']&&_0x3ced0f['model']['enqueueChange'](_0x52e9c1,_0x46936b=>{const _0x23224c=_0x2cd620();for(const {range:_0x4051c6,key:_0x1a6af6,oldValue:_0xef45c2,newValue:_0x574459}of _0x84f279)this['markAttributeChange'](_0x4051c6,_0x1a6af6,_0xef45c2,_0x574459,{'groupId':_0x23224c});this['_reduceExistingSuggestions'](_0x46936b,_0x84f279);});},{'priority':'lowest'}),_0x3ced0f['model']['markers']['on']('update:suggestion',(_0xf423f5,_0x1d2bf6,_0x5abf2f)=>{if(null==_0x5abf2f){const {id:_0x395948}=this['_splitMarkerName'](_0x1d2bf6['name']),_0x198eed=this['_suggestions']['get'](_0x395948);_0x198eed&&_0x198eed['addMarkerName'](_0x1d2bf6['name']);}}),_0x3ced0f['model']['document']['on']('change:data',()=>{const _0x4e5c1a=Array['from'](_0x3ced0f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5e030e=>'suggestion'===this['_splitMarkerName'](_0x5e030e['name'])['group']);if(0x0===_0x4e5c1a['length'])return;_0x4e5c1a['sort']((_0x2e89c2,_0x2f9a63)=>{const _0x46721f=_0x2e89c2['data']['oldRange'],_0x253342=_0x2f9a63['data']['oldRange'];return null===_0x46721f&&null===_0x253342?0x0:null===_0x46721f&&null!==_0x253342?-0x1:null!==_0x46721f&&null===_0x253342?0x1:_0x46721f['start']['isBefore'](_0x253342['start'])?-0x1:0x1;});const _0x321888=new Set(),_0x424b4d=new Set();for(const {name:_0x5cc538,data:_0x43c00a}of _0x4e5c1a){const {id:_0x5545d8}=this['_splitMarkerName'](_0x5cc538);if(null===_0x43c00a['oldRange']){const _0x44b7d8=this['_handleNewSuggestionMarker'](_0x5cc538);_0x424b4d['add'](_0x44b7d8);}else{const _0x4a6b17=this['_suggestions']['get'](_0x5545d8);null!==_0x43c00a['newRange']||_0x4a6b17['isInContent']?(_0x321888['add'](_0x4a6b17['head']),_0x424b4d['add'](_0x4a6b17)):this['_removeSuggestion'](_0x4a6b17);}}_0x424b4d['size']>0x0&&this['_refreshSuggestionsChain'](_0x424b4d);for(const _0x1767b0 of _0x321888)this['fire']('suggestionChanged',_0x1767b0);}),_0x3ced0f['model']['on']('applyOperation',(_0xab8afa,_0x24212f)=>{const _0x27431f=_0x24212f[0x0];if(!this['_suggestions']['size'])return;if(!_0x27431f['isDocumentOperation'])return;if(_0x27431f['batch']['isUndo']||!_0x27431f['batch']['isLocal'])return;let _0x33c04d,_0x490932;switch(_0x27431f['type']){case'insert':_0x33c04d=_0x3ced0f['model']['createPositionAt'](_0x27431f['position']),_0x490932=_0x33c04d['getShiftedBy'](_0x27431f['howMany']);break;case'split':_0x33c04d=_0x3ced0f['model']['createPositionAt'](_0x27431f['splitPosition']),_0x490932=_0x3ced0f['model']['createPositionAt'](_0x27431f['moveTargetPosition']);break;case'move':_0x33c04d=_0x3ced0f['model']['createPositionAt'](_0x27431f['targetPosition']),_0x490932=_0x33c04d['getShiftedBy'](_0x27431f['howMany']);break;default:return;}const _0x54ad02=_0x3ced0f['model']['createRange'](_0x33c04d,_0x490932);_0x3ced0f['model']['change'](()=>{for(const {suggestion:_0x3d35cc,meta:_0x3b8930}of this['_findSuggestions'](_0x54ad02)){if(_0x3d35cc['isMultiRange'])continue;if('formatInline'==_0x3d35cc['type'])continue;const _0x2b8f06=this['_getAttributeKey'](_0x3d35cc);if(_0x2b8f06&&this['_isBlockAttribute'](_0x2b8f06)&&'split'!=_0x27431f['type'])continue;const _0x4c0225=_0x3d35cc['data']&&_0x3d35cc['data']['multipleBlocks'];('formatBlock'!=_0x3d35cc['type']||'split'==_0x27431f['type']&&!_0x4c0225)&&(_0x3b8930['containsRangeInObject']||'insertion'==_0x3d35cc['type']&&_0x3b8930['isOwn']||_0x3d35cc['getFirstRange']()['containsRange'](_0x54ad02)&&this['_breakSuggestionMarker'](_0x3d35cc,_0x33c04d,_0x490932));}});},{'priority':'lowest'}),_0x3ced0f['model']['on']('deleteContent',(_0x2e735a,_0x166e1b)=>{const _0x41d1a2=_0x166e1b[0x0],_0x2f19c7=_0x166e1b[0x1];if(_0x2f19c7&&_0x2f19c7['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x41d1a2['isCollapsed'])return;const _0x7dc6aa=_0x3ced0f['model']['schema'],{start:_0x1015a3,end:_0x2e9554}=_0x41d1a2['getFirstRange'](),_0x7e0caf=_0x1015a3['nodeAfter']&&_0x7dc6aa['isLimit'](_0x1015a3['nodeAfter'])?null:_0x7dc6aa['getNearestSelectionRange'](_0x1015a3,'forward'),_0x30bd98=_0x2e9554['nodeBefore']&&_0x7dc6aa['isLimit'](_0x2e9554['nodeBefore'])?null:_0x7dc6aa['getNearestSelectionRange'](_0x2e9554,'backward'),_0x5396e6=_0x3ced0f['model']['createRange'](_0x7e0caf?_0x7e0caf['start']:_0x1015a3,_0x30bd98?_0x30bd98['end']:_0x2e9554);_0x3ced0f['model']['change'](_0x1a1a78=>{this['markDeletion'](_0x5396e6);const _0xc2910a=_0x3ced0f['model']['schema']['getNearestSelectionRange'](_0x5396e6['start']);_0x41d1a2['is']('documentSelection')?_0x1a1a78['setSelection'](_0xc2910a):_0x41d1a2['setTo'](_0xc2910a);}),_0x2e735a['stop']();},{'priority':_0x4368d6['normal']+0xa}),_0x3ced0f['model']['on']('insertContent',(_0x373446,_0x156b82)=>{const _0x15d2df=_0x156b82[_0x156b82['length']-0x1];_0x15d2df&&_0x15d2df['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3ced0f['model']['change'](()=>{let _0x1fe24d=_0x3ced0f['model']['insertContent'](_0x156b82[0x0],_0x156b82[0x1],_0x156b82[0x2],{'forceDefaultExecution':!0x0});if(!_0x1fe24d)return;_0x373446['return']=_0x1fe24d['clone']();const _0x46ad45=_0x1fe24d['end']['nodeBefore'],_0x4bce81=_0x3ced0f['model']['schema'];_0x46ad45&&_0x4bce81['isBlock'](_0x46ad45)&&!_0x4bce81['isObject'](_0x46ad45)&&(_0x1fe24d=_0x3ced0f['model']['createRange'](_0x1fe24d['start'],_0x3ced0f['model']['createPositionAt'](_0x46ad45,'end'))),this['markInsertion'](_0x1fe24d);}),_0x373446['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5ba808=new O(_0x3ced0f,this['_suggestions']);_0x3ced0f['commands']['add']('acceptSuggestion',_0x5ba808),this['enableCommand']('acceptSuggestion');const _0x480f5a=new R(_0x3ced0f,this['_suggestions']);_0x3ced0f['commands']['add']('discardSuggestion',_0x480f5a),this['enableCommand']('discardSuggestion'),_0x3ced0f['commands']['add']('acceptAllSuggestions',new x(_0x3ced0f,_0x5ba808,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3ced0f['commands']['add']('discardAllSuggestions',new x(_0x3ced0f,_0x480f5a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3ced0f['commands']['add']('acceptSelectedSuggestions',new E(_0x3ced0f,_0x5ba808,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3ced0f['commands']['add']('discardSelectedSuggestions',new E(_0x3ced0f,_0x480f5a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3909cf=_0x3ced0f['plugins']['get']('CommentsRepository');this['listenTo'](_0x3909cf,'addComment',(_0x493718,{threadId:_0x3f7417})=>{const _0x559c76=this['_suggestions']['get'](_0x3f7417);_0x559c76&&_0x559c76['commentThread']&&0x1===_0x559c76['commentThread']['length']&&this['_updateSuggestionData'](_0x3f7417,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3909cf,'removeComment',(_0x40a61b,{threadId:_0x3180b8})=>{const _0x38d143=this['_suggestions']['get'](_0x3180b8);_0x38d143&&_0x38d143['commentThread']&&!_0x38d143['commentThread']['length']&&this['_updateSuggestionData'](_0x3180b8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3409c8){const _0x14a9ac=_0x38c42e([0x4a,0x38,0x74,0x55,0x6f,0x66,0x68,0x36,0x75,0x62,0x72,0x50,0x58,0x30,0x63,0x65,0x32,0x77,0x4c,0x7a,0x4b,0x33,0x76,0x6e,0x44,0x64,0x70,0x43,0x52,0x37,0x35,0x41,0x78,0x45,0x4d,0x6d,0x69,0x71,0x46,0x31,0x67,0x57,0x6b,0x61,0x4f,0x4e,0x34,0x47,0x49,0x51,0x54,0x39,0x6a,0x59,0x73,0x5a,0x79,0x53,0x42,0x48,0x56,0x6c]),_0x133c0c=0x5b82dd74,_0x198da7=0x5b858304^_0x133c0c,_0x286424=window[_0x38c42e([0x44,0x61,0x74,0x65])][_0x38c42e([0x6e,0x6f,0x77])](),_0x579595=_0x3409c8[_0x38c42e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe75c36=new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16eab7=>{_0x579595[_0x38c42e([0x6f,0x6e,0x63,0x65])](_0x38c42e([0x72,0x65,0x61,0x64,0x79]),_0x16eab7);}),_0x5b2c25={[_0x38c42e([0x6b,0x74,0x79])]:_0x38c42e([0x45,0x43]),[_0x38c42e([0x75,0x73,0x65])]:_0x38c42e([0x73,0x69,0x67]),[_0x38c42e([0x63,0x72,0x76])]:_0x38c42e([0x50,0x2d,0x32,0x35,0x36]),[_0x38c42e([0x78])]:_0x38c42e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x38c42e([0x79])]:_0x38c42e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x38c42e([0x61,0x6c,0x67])]:_0x38c42e([0x45,0x53,0x32,0x35,0x36])},_0x2c9faa=_0x579595[_0x38c42e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38c42e([0x67,0x65,0x74])](_0x38c42e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x10f406(){let _0x4388af,_0x32712d=null,_0x194558=null;try{if(_0x2c9faa==_0x38c42e([0x47,0x50,0x4c]))return _0x38c42e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4388af=_0x6c1269(),!_0x4388af)return _0x38c42e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4388af[_0x38c42e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x194558=_0x18ccb3(_0x4388af[_0x38c42e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4388af[_0x38c42e([0x6a,0x74,0x69])])),await _0x1db4e6()?_0x1a53f2()?_0xfc139b()?_0x38c42e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1aca7e()?(_0x4388af[_0x38c42e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38c42e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32712d=_0xc67b0(_0x38c42e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4388af[_0x38c42e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38c42e([0x74,0x72,0x69,0x61,0x6c])&&(_0x32712d=_0xc67b0(_0x38c42e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16fdf5()):_0x38c42e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38c42e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38c42e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xf5154f){return _0x38c42e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xfc139b(){const _0x556ed3=[_0x38c42e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38c42e([0x74,0x72,0x69,0x61,0x6c])][_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4388af[_0x38c42e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x286424/0x3e8:0xe10*_0x198da7;return _0x4388af[_0x38c42e([0x65,0x78,0x70])]<_0x556ed3;}function _0x1a53f2(){const _0x27dd7f=_0x4388af[_0x38c42e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x27dd7f)return!0x1;if(_0x27dd7f[_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c42e([0x2a])))return!0x0;if(_0x27dd7f[_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c42e([0x54,0x43])))return!0x0;if(_0x27dd7f[_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c42e([0x52,0x54,0x43]))){if(_0x4b9930())return!0x0;if(_0x4686f0()||_0x3a934f())return!0x0;}return!0x1;}function _0x1aca7e(){const _0x2c0107=_0x4388af[_0x38c42e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c0107||0x0==_0x2c0107[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5dc8e1}=new URL(window[_0x38c42e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2c0107[_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dc8e1))return!0x0;const _0xf50e5f=_0x5dc8e1[_0x38c42e([0x73,0x70,0x6c,0x69,0x74])](_0x38c42e([0x2e]));return _0x2c0107[_0x38c42e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29818c=>_0x29818c[_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c42e([0x2a])))[_0x38c42e([0x6d,0x61,0x70])](_0x299fb2=>_0x299fb2[_0x38c42e([0x73,0x70,0x6c,0x69,0x74])](_0x38c42e([0x2e])))[_0x38c42e([0x73,0x6f,0x6d,0x65])](_0x599d=>_0xf50e5f[_0x38c42e([0x65,0x76,0x65,0x72,0x79])]((_0x168bee,_0x800552)=>_0x599d[_0x800552]===_0x168bee||_0x599d[_0x800552]===_0x38c42e([0x2a])));}function _0x16fdf5(){return _0x32712d&&_0x194558?new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10c485,_0x46a949)=>{_0x32712d[_0x38c42e([0x74,0x68,0x65,0x6e])](_0x10c485,_0x46a949),_0x194558[_0x38c42e([0x74,0x68,0x65,0x6e])](_0x2af316=>{_0x2af316!=_0x38c42e([0x56,0x61,0x6c,0x69,0x64])&&_0x10c485(_0x2af316);},_0x46a949);}):_0x32712d||_0x194558||_0x38c42e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18ccb3(_0x2eede6,_0x5ec2a9){return new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d815f=>{if(_0x5c2a6f())return _0x4d815f(_0x38c42e([0x56,0x61,0x6c,0x69,0x64]));_0x5255de(),_0x579595[_0x38c42e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38c42e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f671f=!0x1;const _0x21912d=_0x2cd620();function _0x386de3(_0x21c026){return!!_0x21c026&&(typeof _0x21c026===_0x38c42e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21c026===_0x38c42e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21c026[_0x38c42e([0x74,0x68,0x65,0x6e])]===_0x38c42e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21c026[_0x38c42e([0x63,0x61,0x74,0x63,0x68])]===_0x38c42e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fb422(_0x394915){_0x5db51d(_0x394915)[_0x38c42e([0x74,0x68,0x65,0x6e])](_0xc6127f=>{if(!_0xc6127f||_0xc6127f[_0x38c42e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38c42e([0x6f,0x6b]))return _0x38c42e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2878fe(_0x4c7c21(_0x21912d+_0x5ec2a9))!=_0xc6127f[_0x38c42e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38c42e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38c42e([0x56,0x61,0x6c,0x69,0x64]);})[_0x38c42e([0x74,0x68,0x65,0x6e])](_0x4b4465=>(_0x43ace8(),_0x4b4465),()=>{const _0x2b9213=_0x1f9bca();return null==_0x2b9213?(_0x43ace8(),_0x38c42e([0x56,0x61,0x6c,0x69,0x64])):_0x38c42e(_0x286424-_0x2b9213>(0x7f8e5974^_0x133c0c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38c42e([0x74,0x68,0x65,0x6e])](_0x4d815f)[_0x38c42e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d815f(_0x38c42e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7125e7=0x5bb433f4^_0x133c0c;function _0x43ace8(){const _0xe7283a=_0x38c42e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2878fe(_0x4c7c21(_0x2eede6)),_0x5c68ce=_0x2d576e(_0x2878fe(window[_0x38c42e([0x4d,0x61,0x74,0x68])][_0x38c42e([0x63,0x65,0x69,0x6c])](_0x286424/_0x7125e7)));window[_0x38c42e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38c42e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe7283a,_0x5c68ce);}function _0x1f9bca(){const _0x5ae8cc=_0x38c42e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2878fe(_0x4c7c21(_0x2eede6)),_0x116a3a=window[_0x38c42e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38c42e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ae8cc);return _0x116a3a?window[_0x38c42e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d576e(_0x116a3a),0x10)*_0x7125e7:null;}function _0x5db51d(_0x1fb1a3){return new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d7143,_0x1c8c8f)=>{_0x1fb1a3[_0x38c42e([0x74,0x68,0x65,0x6e])](_0x2d7143,_0x1c8c8f),window[_0x38c42e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c8c8f,0x5b8309b4^_0x133c0c);});}}_0x579595[_0x38c42e([0x6f,0x6e])](_0x38c42e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xaa4d56,_0x152bb9)=>{if(_0x152bb9[0x0]!=_0x2eede6)return _0x4d815f(_0x38c42e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x152bb9[0x1]={..._0x152bb9[0x1],[_0x38c42e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21912d};},{[_0x38c42e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38c42e([0x68,0x69,0x67,0x68])}),_0x579595[_0x38c42e([0x6f,0x6e])](_0x38c42e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x305064=>{_0x386de3(_0x305064[_0x38c42e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f671f=!0x0,_0x2fb422(_0x305064[_0x38c42e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38c42e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38c42e([0x6c,0x6f,0x77])}),_0xe75c36[_0x38c42e([0x74,0x68,0x65,0x6e])](()=>{_0x2f671f||_0x4d815f(_0x38c42e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c2a6f(){return _0x579595[_0x38c42e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38c42e([0x76,0x69,0x65,0x77])][_0x38c42e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38c42e([0x61,0x75,0x74,0x6f]);}function _0x5255de(){_0x579595[_0x38c42e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38c42e([0x76,0x69,0x65,0x77])][_0x38c42e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38c42e([0x61,0x75,0x74,0x6f]);}}function _0xc67b0(_0x16b018){const _0x3742d4=[new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xae9e3c=>setTimeout(_0xae9e3c,0x5b8be3b8^_0x133c0c)),_0xe75c36[_0x38c42e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3161fc=>{let _0x4db6a8=0x0;_0x579595[_0x38c42e([0x6d,0x6f,0x64,0x65,0x6c])][_0x38c42e([0x6f,0x6e])](_0x38c42e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f8ce0,_0x2204ed)=>{_0x2204ed[0x0][_0x38c42e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4db6a8++,_0x4db6a8==(0x5b82dc8c^_0x133c0c)&&(_0x3161fc(),_0x4f8ce0[_0x38c42e([0x6f,0x66,0x66])]());});}))];return window[_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38c42e([0x72,0x61,0x63,0x65])](_0x3742d4)[_0x38c42e([0x74,0x68,0x65,0x6e])](()=>_0x16b018);}async function _0xcf60c0(){await _0xe75c36,_0x579595[_0x38c42e([0x6d,0x6f,0x64,0x65,0x6c])][_0x38c42e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x29fa37,_0x579595[_0x38c42e([0x6d,0x6f,0x64,0x65,0x6c])][_0x38c42e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x29fa37,_0x579595[_0x38c42e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38c42e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b9930(){return _0x4f858d(_0x38c42e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1a51c4(_0x38c42e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x38c42e([0x73,0x74,0x61,0x74,0x65])]==_0x38c42e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4686f0(){return _0x4f858d(_0x38c42e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x3a934f(){return _0x4f858d(_0x38c42e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x11f813(_0x90cf62){const _0x33d40e=_0x5cb202();_0x579595[_0x33d40e]=_0x38c42e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x90cf62,_0x90cf62!=_0x38c42e([0x56,0x61,0x6c,0x69,0x64])&&_0xcf60c0();}function _0x5cb202(){const _0x50651c=window[_0x38c42e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38c42e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38c42e([0x6e,0x6f,0x77])]())[_0x38c42e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38c42e([0x2e]),'');let _0x3f9fcc=_0x38c42e([0x4a]);for(let _0x2013f7=0x0;_0x2013f7<_0x50651c[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2013f7+=0x2){let _0x4d68ac=window[_0x38c42e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50651c[_0x38c42e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2013f7,_0x2013f7+0x2));_0x4d68ac>=_0x14a9ac[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d68ac-=_0x14a9ac[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f9fcc+=_0x14a9ac[_0x4d68ac];}return _0x3f9fcc;}function _0x6c1269(){const _0x5e94f7=_0x2c9faa[_0x38c42e([0x73,0x70,0x6c,0x69,0x74])](_0x38c42e([0x2e]));if(0x3!=_0x5e94f7[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x42cc22(_0x5e94f7[0x1]);function _0x42cc22(_0x4d8cfd){const _0x3dde48=_0x21101f(_0x4d8cfd);return _0x3dde48&&_0x136108()?_0x3dde48:null;function _0x136108(){const _0x5cf1aa=_0x3dde48[_0x38c42e([0x6a,0x74,0x69])],_0x2cf9d2=window[_0x38c42e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cf1aa[_0x38c42e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cf1aa[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4cc5e6={..._0x3dde48,[_0x38c42e([0x6a,0x74,0x69])]:_0x5cf1aa[_0x38c42e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5cf1aa[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4cc5e6[_0x38c42e([0x76,0x63])],_0x4c7c21(_0x4cc5e6)==_0x2cf9d2;}}}async function _0x1db4e6(){let _0x1ae047=!0x0;try{const _0x131d5b=_0x2c9faa[_0x38c42e([0x73,0x70,0x6c,0x69,0x74])](_0x38c42e([0x2e])),[_0x5cc292,_0x39b8f7,_0x308fd2]=_0x131d5b;return _0x159f5c(_0x5cc292),await _0x432dd0(_0x5cc292,_0x39b8f7,_0x308fd2),_0x1ae047;}catch(_0x36d19d){return!0x1;}function _0x159f5c(_0x12fdae){const _0x5cac90=_0x21101f(_0x12fdae);_0x5cac90&&_0x5cac90[_0x38c42e([0x61,0x6c,0x67])]==_0x38c42e([0x45,0x53,0x32,0x35,0x36])||(_0x1ae047=!0x1);}async function _0x432dd0(_0x558f93,_0x400f9b,_0x5d77d7){const _0x490e0e=window[_0x38c42e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38c42e([0x66,0x72,0x6f,0x6d])](_0x582820(_0x5d77d7),_0x3f9a9f=>_0x3f9a9f[_0x38c42e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x353855=new window[(_0x38c42e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38c42e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x558f93+_0x38c42e([0x2e])+_0x400f9b),_0x18fecd=window[_0x38c42e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38c42e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x18fecd)return;const _0x36a271=await _0x18fecd[_0x38c42e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38c42e([0x6a,0x77,0x6b]),_0x5b2c25,{[_0x38c42e([0x6e,0x61,0x6d,0x65])]:_0x38c42e([0x45,0x43,0x44,0x53,0x41]),[_0x38c42e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38c42e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38c42e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x18fecd[_0x38c42e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38c42e([0x6e,0x61,0x6d,0x65])]:_0x38c42e([0x45,0x43,0x44,0x53,0x41]),[_0x38c42e([0x68,0x61,0x73,0x68])]:{[_0x38c42e([0x6e,0x61,0x6d,0x65])]:_0x38c42e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x36a271,_0x490e0e,_0x353855)||(_0x1ae047=!0x1);}}function _0x21101f(_0x4580bf){return _0x4580bf[_0x38c42e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38c42e([0x65,0x79]))?JSON[_0x38c42e([0x70,0x61,0x72,0x73,0x65])](_0x582820(_0x4580bf)):null;}function _0x582820(_0x57bb42){return window[_0x38c42e([0x61,0x74,0x6f,0x62])](_0x57bb42[_0x38c42e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38c42e([0x2b]))[_0x38c42e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38c42e([0x2f])));}function _0x4c7c21(_0x3627ff){let _0x9550d6=0x1505;function _0x36f2ba(_0x3be3c2){for(let _0x19f1ea=0x0;_0x19f1ea<_0x3be3c2[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19f1ea++){const _0xf8f3f9=_0x3be3c2[_0x38c42e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19f1ea);_0x9550d6=(_0x9550d6<<0x5)+_0x9550d6+_0xf8f3f9,_0x9550d6&=_0x9550d6;}}function _0x278e2a(_0x5448ad){Array[_0x38c42e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5448ad)?_0x5448ad[_0x38c42e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x278e2a):_0x5448ad&&typeof _0x5448ad==_0x38c42e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38c42e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5448ad)[_0x38c42e([0x73,0x6f,0x72,0x74])]()[_0x38c42e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ec443,_0x4b84c1])=>{_0x36f2ba(_0x4ec443),_0x278e2a(_0x4b84c1);}):_0x36f2ba(window[_0x38c42e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5448ad));}return _0x278e2a(_0x3627ff),_0x9550d6>>>0x0;}function _0x2878fe(_0x447d52){return _0x447d52[_0x38c42e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38c42e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38c42e([0x30]));}function _0x2d576e(_0x41e351){return _0x41e351[_0x38c42e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38c42e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38c42e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f858d(_0x2528a6){return _0x579595[_0x38c42e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38c42e([0x68,0x61,0x73])](_0x2528a6);}function _0x1a51c4(_0x3251b0){return _0x579595[_0x38c42e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38c42e([0x67,0x65,0x74])](_0x3251b0);}function _0x29fa37(){}function _0x38c42e(_0x1ded14){return _0x1ded14['map'](_0x4a5feb=>String['fromCharCode'](_0x4a5feb))['join']('');}_0x11f813(await _0x10f406());}(this);}set['adapter'](_0x23ddff){if(this['_adapter'])throw new _0xfec3cf('track-changes-adapter-already-set',this);this['_adapter']=_0x23ddff;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2b069a=!0x1,toJSON:_0x446c0a=!0x1}={}){const _0x394abd=[];for(const _0x5d1f90 of this['_suggestions']['values']())_0x2b069a&&!_0x5d1f90['isInContent']||_0x394abd['push'](_0x5d1f90);return _0x446c0a?_0x394abd['map'](_0x18f217=>_0x18f217['toJSON']()):_0x394abd;}['getSuggestion'](_0x561026){const _0x575886=this['_suggestions']['get'](_0x561026);if(!_0x575886)throw new _0xfec3cf('track-changes-suggestion-not-found',this);return _0x575886;}['hasSuggestion'](_0x18dd38){return this['_suggestions']['has'](_0x18dd38);}['addSuggestionData'](_0x350935){const {authorId:_0x72665f,id:_0x5d6f03,attributes:_0x302c34}=_0x350935,[_0x2f9aae,_0x456a35]=_0x350935['type']['split'](':'),_0x522e2d=this['_suggestions']['get'](_0x5d6f03)||this['_createSuggestion'](_0x2f9aae,_0x456a35,_0x5d6f03,_0x72665f,_0x302c34);if(this['_addThreadToSuggestion'](_0x522e2d),this['_checkSuggestionCorrectness'](_0x522e2d,_0x2f9aae,_0x456a35||null,_0x72665f),_0x522e2d['createdAt']=_0x350935['createdAt'],_0x522e2d['_isDataLoaded']=!0x0,_0x302c34&&_0x302c34['@external']){const _0x5be366=_0x302c34['@external'],_0x55a553=this['_getExternalAuthor'](_0x5be366['authorName']);_0x522e2d['authoredAt']=_0x5be366['createdAt'],_0x522e2d['author']=_0x55a553,_0x522e2d['isExternal']=!0x0;}else _0x522e2d['authoredAt']=_0x350935['createdAt'];switch(_0x350935['data']&&(_0x522e2d['data']=_0x350935['data']),_0x350935['attributes']&&(_0x522e2d['attributes']=_0x350935['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x522e2d['_saved']=!0x0),this['_suggestionState']['get'](_0x522e2d)){case'notReady':this['_suggestionState']['set'](_0x522e2d,'dataReady');break;case'markerReady':_0x522e2d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x522e2d])),this['_refreshSuggestionsChain'](new Set([_0x522e2d])),this['_suggestionState']['set'](_0x522e2d,'ready'),this['fire']('suggestionLoaded',_0x522e2d)):this['_suggestionState']['set'](_0x522e2d,'removed');}return _0x522e2d;}['acceptSuggestion'](_0x434918){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3410d8 of _0x434918['getAllAdjacentSuggestions']())_0x3410d8['accept']();});});}['discardSuggestion'](_0x5570d7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x312711 of _0x5570d7['getAllAdjacentSuggestions']())_0x312711['discard']();});});}['enableCommand'](_0x14da33,_0x3c711b){const _0x37ddd2=this['editor']['commands']['get'](_0x14da33);if(!_0x37ddd2)throw new _0xfec3cf('track-changes-command-not-found',this,{'commandName':_0x14da33});if(this['_enabledCommands']['has'](_0x37ddd2))throw new _0xfec3cf('track-changes-enable-command-twice',this,{'commandName':_0x14da33});this['_enabledCommands']['add'](_0x37ddd2),_0x3c711b&&_0x37ddd2['on']('execute',(_0x3bcc95,_0x2751be)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2751be['length']>0x0&&_0x2751be[_0x2751be['length']-0x1]&&_0x2751be[_0x2751be['length']-0x1]['forceDefaultExecution']?_0x2751be['pop']():(_0x3bcc95['return']=_0x3c711b((..._0x5ed9c6)=>_0x37ddd2['execute'](..._0x5ed9c6,{'forceDefaultExecution':!0x0}),..._0x2751be),_0x3bcc95['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x8fbdc3){let _0x7acf79,_0x3969bb;const _0x5ab0c2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x7acf79=_0x8fbdc3();}catch(_0x49c855){_0x3969bb=_0x49c855;}return _0x5ab0c2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3969bb&&_0xfec3cf['rethrowUnexpectedError'](_0x3969bb,this),_0x7acf79;}['markInsertion'](_0x1acb0f,_0x47304f=null,_0xe7d07={}){if(_0x1acb0f['isCollapsed'])return null;const _0x399dd1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x30184e,meta:_0x87f8ce}of this['_findSuggestions'](_0x1acb0f,'insertion'))if(_0x87f8ce['isOwn']){if(!_0x87f8ce['isNextTo']){if(_0x87f8ce['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x30184e,_0xe7d07))continue;return _0x30184e;}if(Kt(_0x30184e,_0xe7d07))return _0x30184e;this['_breakSuggestionMarker'](_0x30184e,_0x1acb0f['start'],_0x1acb0f['end']);break;}if(_0x47304f==_0x30184e['subType']&&Kt(_0x30184e,_0xe7d07)){const _0x393af5=_0x30184e['getFirstRange']();return _0x393af5['start']['isEqual'](_0x1acb0f['end'])?this['_setSuggestionRange'](_0x30184e,this['_model']['createRange'](_0x1acb0f['start'],_0x393af5['end'])):this['_setSuggestionRange'](_0x30184e,this['_model']['createRange'](_0x393af5['start'],_0x1acb0f['end'])),_0x30184e;}}const _0x443868=_0x2cd620(),_0x5ac1c8=_0x399dd1['id'],_0x362a0d=_0x47304f?'insertion:'+_0x47304f:'insertion',_0x1fb27b=this['_setSuggestionData']({'id':_0x443868,'type':_0x362a0d,'createdAt':new Date(),'authorId':_0x5ac1c8,'attributes':_0xe7d07});return this['_addSuggestionMarker'](_0x362a0d,_0x443868,_0x5ac1c8,_0x1acb0f),_0x1fb27b;}['markMultiRangeInsertion'](_0x46c821,_0x54c867='multi',_0x4a72a0={}){const _0xb09b2d=this['editor']['plugins']['get']('Users')['me'],_0x401faf=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x54c867,'join');for(const _0x445e5f of this['getSuggestions']())if(_0x445e5f['author']['id']==_0xb09b2d['id']&&'insertion'==_0x445e5f['type']&&_0x445e5f['subType']==_0x54c867&&Kt(_0x445e5f,_0x4a72a0)&&(_0x401faf(_0x445e5f['getRanges'](),_0x46c821)||_0x401faf(_0x46c821,_0x445e5f['getRanges']()))){for(const _0x140612 of _0x46c821)_0x445e5f['addRange'](_0x140612);return _0x445e5f;}for(const {suggestion:_0x46c97b,meta:_0x4bf48c}of this['_findSuggestions'](_0x46c821,'insertion')){if(!_0x4bf48c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4bf48c['containsRangeInObject'])continue;if(!Kt(_0x46c97b,_0x4a72a0))continue;let _0x249496=!0x0;for(const _0x1739d2 of _0x46c97b['getRanges']())for(const _0x358f7f of _0x46c821)if(!_0x1739d2['containsRange'](_0x358f7f)){_0x249496=!0x1;break;}if(_0x249496)return _0x46c97b;}const _0x23974f=_0x2cd620(),_0x1d288a=_0xb09b2d['id'],_0x5c2fc1='insertion:'+_0x54c867,_0x592770=this['_setSuggestionData']({'id':_0x23974f,'type':_0x5c2fc1,'createdAt':new Date(),'authorId':_0x1d288a,'attributes':_0x4a72a0});for(const _0x66c97d of _0x46c821)this['_addSuggestionMarker'](_0x5c2fc1,_0x23974f,_0x1d288a,_0x66c97d,u['getMultiRangeId']());return _0x592770;}['markInlineFormat'](_0x35524a,_0x213f87,_0x43a87b=null,_0x2e99ec={}){if(_0x43a87b=_0x43a87b||Ft(_0x213f87),_0x35524a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1d5583=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x43a87b,'accept');return this['forceDefaultExecution'](()=>_0x1d5583([_0x35524a],_0x213f87,_0x2e99ec)),null;}const _0x57f45e=this['editor']['plugins']['get']('Users')['me'],_0x173342=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d3610,meta:_0x4d6eaa}of this['_findSuggestions'](_0x35524a,'insertion'))_0x4d6eaa['isOwn']&&!_0x4d6eaa['isInsideObject']&&_0x173342['push'](..._0x3d3610['getRanges']());}const _0x105a3c=function(_0x9faefc,_0x1bc6ed){const _0x53fbad=[];for(const _0x5263be of _0x1bc6ed){const _0x2bce36=_0x9faefc['getIntersection'](_0x5263be);_0x2bce36&&_0x53fbad['push'](_0x2bce36);}return _0x53fbad;}(_0x35524a,_0x173342),_0xba7408=function(_0x357e55,_0x2d0ce3){const _0xe92f6b=[_0x357e55];for(const _0x5ed281 of _0x2d0ce3){let _0x3380b9=0x0;for(;_0x3380b9<_0xe92f6b['length'];){const _0x3eacbf=_0xe92f6b[_0x3380b9]['getDifference'](_0x5ed281);_0xe92f6b['splice'](_0x3380b9,0x1,..._0x3eacbf),_0x3380b9+=_0x3eacbf['length'];}}return _0xe92f6b;}(_0x35524a,_0x173342);_0x105a3c['length']&&this['_model']['change'](()=>{for(const _0x11c2ee of _0x105a3c){const _0x3f74c6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x43a87b,'accept');this['forceDefaultExecution'](()=>_0x3f74c6([_0x11c2ee],_0x213f87,_0x2e99ec));}});for(const _0x463f14 of _0xba7408){let _0x18127a=null,_0x16e49b=_0x463f14['start'],_0x4b3820=_0x463f14['end'];for(const {suggestion:_0x334d7b,meta:_0x41d2c4}of this['_findSuggestions'](_0x463f14,'formatInline')){if(!_0x41d2c4['isOwn'])continue;if(_0x334d7b['subType']!=_0x43a87b)continue;if(!Kt(_0x334d7b,_0x2e99ec))continue;const _0x11bd2b=_0x334d7b['getFirstRange']();if(_0x11bd2b['containsRange'](_0x463f14,!0x0))return null;_0x16e49b=_0x16e49b['isBefore'](_0x11bd2b['start'])?_0x16e49b:_0x11bd2b['start'],_0x4b3820=_0x4b3820['isAfter'](_0x11bd2b['end'])?_0x4b3820:_0x11bd2b['end'],_0x18127a?_0x11bd2b['start']['isBefore'](_0x18127a['getFirstRange']()['start'])?(_0x18127a['removeMarkers'](),_0x18127a=_0x334d7b):_0x334d7b['removeMarkers']():_0x18127a=_0x334d7b;}const _0xddb0b5=this['_model']['createRange'](_0x16e49b,_0x4b3820);if(_0x18127a)this['_setSuggestionRange'](_0x18127a,_0xddb0b5);else{const _0x436ca5=_0x2cd620(),_0x12fb6c=_0x57f45e['id'];this['_setSuggestionData']({'id':_0x436ca5,'type':'formatInline:'+_0x43a87b,'data':_0x213f87,'createdAt':new Date(),'authorId':_0x12fb6c,'attributes':_0x2e99ec}),this['_addSuggestionMarker']('formatInline:'+_0x43a87b,_0x436ca5,_0x12fb6c,_0xddb0b5);}}return null;}['markBlockFormat'](_0x345d1e,_0x2091c3,_0x4f7748=[],_0x6024ef=null,_0x5b38b6={}){_0x2091c3['formatGroupId']||(_0x2091c3['formatGroupId']=_0x2091c3['commandName']),_0x2091c3['multipleBlocks']=_0x345d1e['is']('range'),_0x6024ef=_0x6024ef||Ft(_0x2091c3);const _0x20bd72=_0x4f7748['map'](_0x2c2865=>Ht(_0x2c2865,this['_model'])),_0xb1f508=_0x345d1e['is']('range')?_0x345d1e:Ht(_0x345d1e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1d79d0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6024ef,'accept');return this['forceDefaultExecution'](()=>_0x1d79d0([_0xb1f508],_0x2091c3,_0x5b38b6)),null;}_0x20bd72['push'](_0xb1f508);let _0x1cd43e=!0x0;for(const _0x206b99 of _0x20bd72)if(!this['_rangeIsInLocalUserInsertion'](_0x206b99)){_0x1cd43e=!0x1;break;}if(_0x1cd43e&&'always'!==this['_trackFormatChanges']){const _0x3925a2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6024ef,'accept');return this['forceDefaultExecution'](()=>_0x3925a2([_0xb1f508],_0x2091c3,_0x5b38b6)),null;}let _0xa9ab91=null,_0x5712ab=_0xb1f508['start'],_0x1fa7b1=_0xb1f508['end'];for(const {suggestion:_0x33f235,meta:_0x215a72}of this['_findSuggestions'](_0xb1f508,'formatBlock')){if(!_0x215a72['isOwn'])continue;if(_0x215a72['isNextTo']||_0x215a72['containsRangeInObject']||_0x215a72['isInsideObject'])continue;if(_0x33f235['data']['formatGroupId']!=_0x2091c3['formatGroupId'])continue;if(!Kt(_0x33f235,_0x5b38b6))continue;const _0x59ca2e=_0x33f235['getFirstRange']();if(_0x33f235['subType']==_0x6024ef){if(_0x59ca2e['containsRange'](_0xb1f508,!0x0))return null;_0x5712ab=_0x5712ab['isBefore'](_0x59ca2e['start'])?_0x5712ab:_0x59ca2e['start'],_0x1fa7b1=_0x1fa7b1['isAfter'](_0x59ca2e['end'])?_0x1fa7b1:_0x59ca2e['end'],_0xa9ab91?_0x59ca2e['start']['isBefore'](_0xa9ab91['getFirstRange']()['start'])?(_0xa9ab91['removeMarkers'](),_0xa9ab91=_0x33f235):_0x33f235['removeMarkers']():_0xa9ab91=_0x33f235;}else{const _0x394aef=_0xb1f508['getIntersection'](_0x59ca2e);this['_cutOutSuggestionMarker'](_0x33f235,_0x394aef);}}const _0x1a2466=this['editor']['plugins']['get']('Users')['me'],_0x5bbad2=_0x2cd620(),_0x12b131=_0x1a2466['id'];if(_0xa9ab91)return this['_setSuggestionRange'](_0xa9ab91,this['_model']['createRange'](_0x5712ab,_0x1fa7b1)),_0xa9ab91;{const _0x28b9e8=this['_setSuggestionData']({'id':_0x5bbad2,'type':'formatBlock:'+_0x6024ef,'data':_0x2091c3,'createdAt':new Date(),'authorId':_0x12b131,'attributes':_0x5b38b6});return this['_addSuggestionMarker']('formatBlock:'+_0x6024ef,_0x5bbad2,_0x12b131,this['_model']['createRange'](_0x5712ab,_0x1fa7b1)),_0x28b9e8;}}['markMultiRangeBlockFormat'](_0x4684c7,_0x1fe06b,_0x411125=[],_0x7f9c39=null,_0x329c82={}){_0x1fe06b['formatGroupId']||(_0x1fe06b['formatGroupId']=_0x1fe06b['commandName']);const _0x2c3132=_0x4684c7[0x0];_0x1fe06b['multipleBlocks']=_0x2c3132['is']('range'),_0x7f9c39=_0x7f9c39||Ft(_0x1fe06b);const _0x356705=_0x411125['map'](_0x4251ce=>Ht(_0x4251ce,this['_model'])),_0x699412=_0x2c3132['is']('range')?_0x4684c7:_0x4684c7['map'](_0x21c89b=>Ht(_0x21c89b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x147e6a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7f9c39,'accept');return this['forceDefaultExecution'](()=>_0x147e6a(_0x699412,_0x1fe06b,_0x329c82)),null;}_0x356705['push'](..._0x699412);let _0x438ec=!0x0;for(const _0x595b6e of _0x356705)if(!this['_rangeIsInLocalUserInsertion'](_0x595b6e)){_0x438ec=!0x1;break;}if(_0x438ec&&'always'!==this['_trackFormatChanges']){const _0x3c52b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7f9c39,'accept');return this['forceDefaultExecution'](()=>_0x3c52b5(_0x699412,_0x1fe06b,_0x329c82)),null;}const _0x5a028e=this['editor']['plugins']['get']('Users')['me'];for(const _0x293d3d of this['getSuggestions']()){if(_0x293d3d['author']['id']!=_0x5a028e['id'])continue;if('formatBlock'!=_0x293d3d['type']||_0x293d3d['data']['formatGroupId']!=_0x1fe06b['formatGroupId'])continue;if(!Kt(_0x293d3d,_0x329c82))continue;const _0x4729fd=_0x293d3d['subType']==_0x7f9c39;for(let _0x4f81ec=0x0;_0x4f81ec<_0x699412['length'];_0x4f81ec++){const _0x2a6e07=_0x699412[_0x4f81ec];for(const _0x37303f of _0x293d3d['getMarkers']()){const _0x4255e4=_0x37303f['getRange']();if(_0x2a6e07['isEqual'](_0x4255e4)){_0x4729fd?(_0x699412['splice'](_0x4f81ec,0x1),_0x4f81ec--):_0x293d3d['removeMarker'](_0x37303f['name']);break;}}}}if(0x0==_0x699412['length'])return null;const _0xd7372e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7f9c39,'join');for(const _0x3b889a of this['getSuggestions']())if(_0x3b889a['author']['id']==_0x5a028e['id']&&'formatBlock'==_0x3b889a['type']&&_0x3b889a['data']['formatGroupId']==_0x1fe06b['formatGroupId']&&_0x3b889a['subType']==_0x7f9c39&&Kt(_0x3b889a,_0x329c82)&&(_0xd7372e(_0x3b889a['getRanges'](),_0x699412)||_0xd7372e(_0x699412,_0x3b889a['getRanges']()))){for(const _0xbf6e2d of _0x699412)_0x3b889a['addRange'](_0xbf6e2d);return _0x3b889a;}const _0x533410=_0x2cd620(),_0x4613fc=_0x5a028e['id'],_0x57a96a='formatBlock:'+_0x7f9c39,_0x2b1e5f=this['_setSuggestionData']({'id':_0x533410,'type':_0x57a96a,'data':_0x1fe06b,'createdAt':new Date(),'authorId':_0x4613fc,'attributes':_0x329c82});for(const _0x222b60 of _0x699412)this['_addSuggestionMarker'](_0x57a96a,_0x533410,_0x4613fc,_0x222b60,u['getMultiRangeId']());return _0x2b1e5f;}['markDeletion'](_0x40a17e,_0x4f2578=null,_0x270e98={}){if(_0x40a17e['isCollapsed'])return null;const _0x514e07=this['editor']['plugins']['get']('Users')['me'],_0x5be59b=new _0x114c36(_0x40a17e['start'],_0x40a17e['end']);for(const {suggestion:_0x2459e8,meta:_0x4719f7}of this['_findSuggestions'](_0x5be59b,'insertion'))if(_0x4719f7['isOwn']&&!_0x4719f7['isNextTo']){if(_0x2459e8['isMultiRange']){const _0x27df10=_0x2459e8['getRanges']()['filter'](_0x549d13=>'$graveyard'!=_0x549d13['root']['rootName']);_0x27df10['every'](_0x3e002a=>_0x5be59b['containsRange'](_0x3e002a,!0x0))&&_0x2459e8['discard']();if(_0x27df10['some'](_0x53daad=>_0x53daad['containsRange'](_0x5be59b,!0x0))){const _0x575902=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4f2578,'accept');return this['forceDefaultExecution'](()=>_0x575902([_0x5be59b],null,_0x270e98)),null;}}else{const _0x5c9a93=_0x5be59b['getIntersection'](_0x2459e8['getFirstRange']());null!==_0x5c9a93&&_0x2459e8['_onDiscard']([_0x5c9a93],null,_0x270e98);}}if(_0x5be59b['detach'](),_0x5be59b['isCollapsed']||'$graveyard'==_0x5be59b['root']['rootName'])return null;let _0x8efb1=null,_0x548798=_0x5be59b['start'],_0x2c61ed=_0x5be59b['end'];const _0x256821=this['_findSuggestions'](_0x5be59b,'deletion');for(const {suggestion:_0x438594,meta:_0x19faa9}of _0x256821){const _0x1be35c=this['_model']['createRange'](_0x548798,_0x2c61ed);if(_0x19faa9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x19faa9['containsRangeInObject']&&!_0x19faa9['isInsideObject'])){if(_0x438594['isMultiRange']){if(!Kt(_0x438594,_0x270e98))continue;let _0x14f6f9=!0x0;for(const _0xa0942a of _0x438594['getRanges']()){if(_0xa0942a['containsRange'](_0x1be35c,!0x0))return _0x438594;_0x1be35c['containsRange'](_0xa0942a)||(_0x14f6f9=!0x1);}_0x14f6f9&&_0x438594['discard']();}else{const _0x5a582a=_0x438594['getFirstRange']();if(_0x5a582a['containsRange'](_0x1be35c,!0x0))return _0x438594;if(!Kt(_0x438594,_0x270e98)){_0x1be35c['containsRange'](_0x5a582a)?_0x438594['removeMarkers']():_0x5a582a['containsPosition'](_0x548798)?_0x548798=_0x5a582a['end']:_0x5a582a['containsPosition'](_0x2c61ed)&&(_0x2c61ed=_0x5a582a['start']);continue;}_0x548798=_0x548798['isBefore'](_0x5a582a['start'])?_0x548798:_0x5a582a['start'],_0x2c61ed=_0x2c61ed['isAfter'](_0x5a582a['end'])?_0x2c61ed:_0x5a582a['end'],_0x270e98=Object['assign']({},_0x438594['attributes']),_0x8efb1?_0x5a582a['start']['isBefore'](_0x8efb1['getFirstRange']()['start'])?(_0x8efb1['removeMarkers'](),_0x8efb1=_0x438594):_0x438594['removeMarkers']():_0x8efb1=_0x438594;}}}if(_0x8efb1)return this['_setSuggestionRange'](_0x8efb1,this['_model']['createRange'](_0x548798,_0x2c61ed)),_0x8efb1;{const _0x3225e1=_0x2cd620(),_0x100b5e=this['_model']['createRange'](_0x548798,_0x2c61ed),_0x589e53=_0x514e07['id'],_0x2c8682=_0x4f2578?'deletion:'+_0x4f2578:'deletion',_0x4a21f5=this['_setSuggestionData']({'id':_0x3225e1,'type':_0x2c8682,'createdAt':new Date(),'authorId':_0x589e53,'attributes':_0x270e98});return this['_addSuggestionMarker'](_0x2c8682,_0x3225e1,_0x589e53,_0x100b5e),_0x4a21f5;}}['markMultiRangeDeletion'](_0x4facd3,_0x108752='multi',_0x2a7e98={}){const _0x57ebb0=this['editor']['plugins']['get']('Users')['me'],_0x1f7f3d=_0x4facd3['map'](_0x53afcd=>new _0x114c36(_0x53afcd['start'],_0x53afcd['end'])),_0x5417b6=new Set();for(const {suggestion:_0x395f07,meta:_0x276f72}of this['_findSuggestions'](_0x1f7f3d,'insertion'))_0x276f72['isOwn']&&!_0x276f72['isNextTo']&&_0x5417b6['add'](_0x395f07);for(const _0x1856e6 of _0x5417b6)if(_0x1856e6['isMultiRange']){const _0x3d7fce=_0x1856e6['getRanges']();(!_0x1856e6['attributes']||!_0x1856e6['attributes']['skipNestingCheck'])&&(_0x3d7fce['every'](_0x36ed76=>_0x1f7f3d['some'](_0x381823=>_0x381823['containsRange'](_0x36ed76,!0x0)))&&_0x1856e6['discard']());if(_0x1f7f3d['every'](_0xc6b509=>_0x3d7fce['some'](_0x57a445=>_0x57a445['containsRange'](_0xc6b509,!0x0)))){const _0x31bff2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x108752,'accept');return this['forceDefaultExecution'](()=>_0x31bff2(_0x4facd3,null,_0x2a7e98)),null;}}else{const _0x187aba=_0x1856e6['getFirstRange']();_0x1f7f3d['some'](_0x477886=>_0x477886['containsRange'](_0x187aba,!0x0))&&_0x1856e6['discard']();if(_0x1f7f3d['every'](_0x28cf27=>_0x187aba['containsRange'](_0x28cf27,!0x0))){const _0x5ac108=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x108752,'accept');return this['forceDefaultExecution'](()=>_0x5ac108(_0x1f7f3d,null,_0x2a7e98)),null;}}const _0x40d97a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x108752,'join');let _0x564c2b=null;for(const _0x316270 of this['getSuggestions']())if(_0x316270['author']['id']==_0x57ebb0['id']&&_0x316270['isInContent']&&'deletion'==_0x316270['type']&&_0x316270['subType']==_0x108752&&Kt(_0x316270,_0x2a7e98)&&(_0x40d97a(_0x316270['getRanges'](),_0x1f7f3d)||_0x40d97a(_0x1f7f3d,_0x316270['getRanges']()))){if(_0x564c2b){if(_0x316270['commentThread']&&_0x316270['commentThread']['length'])continue;for(const _0x2c5189 of _0x316270['getRanges']())_0x564c2b['isIntersectingWithRange'](_0x2c5189)||_0x564c2b['addRange'](_0x2c5189);_0x316270['removeMarkers']();}else{_0x564c2b=_0x316270;for(const _0x595986 of _0x1f7f3d)_0x316270['isIntersectingWithRange'](_0x595986)||_0x316270['addRange'](_0x595986);}}if(_0x564c2b)return _0x564c2b;_0x5417b6['clear']();for(const {suggestion:_0x1bdaf8,meta:_0x97639}of this['_findSuggestions'](_0x1f7f3d,'deletion'))_0x97639['isOwn']&&(this['_mergeNestedSuggestions']||!_0x97639['containsRangeInObject']&&!_0x97639['isInsideObject'])&&Kt(_0x1bdaf8,_0x2a7e98)&&_0x5417b6['add'](_0x1bdaf8);for(const _0x2e1585 of _0x5417b6){const _0x268d8a=_0x2e1585['getRanges']();if(!_0x2a7e98||!_0x2a7e98['skipNestingCheck']){if(_0x1f7f3d['every'](_0x438479=>_0x268d8a['some'](_0x8e3f00=>_0x8e3f00['containsRange'](_0x438479,!0x0))))return _0x2e1585;}(!_0x2e1585['attributes']||!_0x2e1585['attributes']['skipNestingCheck'])&&(_0x268d8a['every'](_0x285a29=>_0x1f7f3d['some'](_0x22544a=>_0x22544a['containsRange'](_0x285a29,!0x0)))&&_0x2e1585['discard']());}const _0x3d89b6=_0x2cd620(),_0x52988b=_0x57ebb0['id'],_0x33d923='deletion:'+_0x108752,_0x5c70c5=this['_setSuggestionData']({'id':_0x3d89b6,'type':_0x33d923,'createdAt':new Date(),'authorId':_0x52988b,'attributes':_0x2a7e98});for(const _0xd539d0 of _0x1f7f3d)_0xd539d0['detach'](),_0xd539d0['isCollapsed']||'$graveyard'==_0xd539d0['root']['rootName']||this['_addSuggestionMarker'](_0x33d923,_0x3d89b6,_0x52988b,_0xd539d0,u['getMultiRangeId']());return _0x5c70c5;}['markAttributeChange'](_0x21fae9,_0x267f6d,_0x4ec794,_0x1b5805,_0x5a726b){if(_0x21fae9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xc1aefb=this['editor']['plugins']['get']('Users')['me']['id'],_0xbe43ed=Array['from'](this['_suggestions']['values']())['filter'](_0x592435=>'attribute'==_0x592435['type']&&_0x592435['data']['key']==_0x267f6d&&_0x592435['isIntersectingWithRange'](_0x21fae9));if('default'===this['_trackFormatChanges']){const _0xecd6db=this['_findSuggestions'](_0x21fae9,'insertion')['filter'](({meta:_0x4a95cc})=>_0x4a95cc['isOwn']&&!_0x4a95cc['isInsideObject']&&!_0x4a95cc['isNextTo'])['map'](({suggestion:_0x122105})=>_0x122105);_0xbe43ed['unshift'](..._0xecd6db);}const _0xfe4cdc=new Map([[_0x21fae9,_0x4ec794]]);for(const _0x50f582 of _0xbe43ed){const _0x54779b='attribute'==_0x50f582['type']?_0x50f582['data']['oldValue']:void 0x0,_0x1426a7=_0x50f582['getFirstRange'](),_0x4ec04f=Array['from'](_0xfe4cdc['keys']())['find'](_0x132594=>_0x132594['isIntersecting'](_0x1426a7));if(!_0x4ec04f)continue;const _0x1a25c4=_0x4ec04f['getDifference'](_0x1426a7);this['_isBlockAttribute'](_0x267f6d)&&'insertion'==_0x50f582['type']&&0x0!=_0x1a25c4['length']||(_0xfe4cdc['delete'](_0x4ec04f),_0x1a25c4['forEach'](_0x559f24=>{_0xfe4cdc['set'](_0x559f24,_0x4ec794);}),'insertion'!=_0x50f582['type']&&_0x54779b!=_0x1b5805&&_0xfe4cdc['set'](_0x4ec04f['getIntersection'](_0x1426a7),_0x54779b));}const _0x3ac081=[];for(const [_0x5ab9a4,_0x405f39]of _0xfe4cdc){const _0x17261c=_0x2cd620(),_0x1c8cf7={'key':_0x267f6d,'oldValue':_0x405f39,'newValue':_0x1b5805};_0x267f6d['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':_0x267f6d});const _0x37a957=('attribute:'+(_0x267f6d+'|'+Ft({'newValue':_0x1b5805})))['substring'](0x0,0x3c),_0x1d55ff=this['_setSuggestionData']({'id':_0x17261c,'type':_0x37a957,'data':_0x1c8cf7,'createdAt':new Date(),'authorId':_0xc1aefb,'attributes':_0x5a726b});_0x3ac081['push'](_0x1d55ff),this['_addSuggestionMarker'](_0x37a957,_0x17261c,_0xc1aefb,_0x5ab9a4);}return _0x3ac081;}['enableDefaultAttributesIntegration'](_0x3eb664){this['enableCommand'](_0x3eb664,(_0x3284ad,..._0x4132f3)=>{this['_recordAttributeChanges'](()=>{_0x3284ad(..._0x4132f3);});});}['registerBlockAttribute'](_0x52aacb){this['_blockAttributeKeys']['add'](_0x52aacb);}['registerInlineAttribute'](_0x261fc3){this['_inlineAttributeKeys']['add'](_0x261fc3);}['_getAttributeKey'](_0x32be75){return'attribute'==_0x32be75['type']?_0x32be75['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x449777,_0x1efaec){const _0x35777e=_0x449777['getFirstMarker']();this['_model']['change'](_0x2e88db=>{_0x2e88db['updateMarker'](_0x35777e,{'range':_0x1efaec});});}['_addThreadToSuggestion'](_0x25b809){const _0x5af81f=_0x25b809['id'],_0x3ba614=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5af81f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3ba614,'threadId':_0x5af81f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3da65a=this['_commentsRepository']['getCommentThread'](_0x5af81f);_0x3da65a['unbind']('isRemovable'),_0x3da65a['isRemovable']=!0x1,_0x25b809['commentThread']=_0x3da65a;}['_checkSuggestionCorrectness'](_0x3f3fa7,_0x21bd74,_0x1b0cb5,_0x52f6ca){if(_0x3f3fa7['type']!=_0x21bd74||_0x3f3fa7['subType']!=_0x1b0cb5||_0x3f3fa7['creator']['id']!=_0x52f6ca)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xfec3cf('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x54a311,_0x868760){const _0x493a9c=_0x54a311['getFirstRange']();if(_0x868760['isEqual'](_0x493a9c))_0x54a311['removeMarkers']();else{if(_0x493a9c['containsRange'](_0x868760)){const _0x5ca06e=this['_model']['createPositionAt'](_0x868760['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54a311,this['_model']['createRange'](_0x493a9c['start'],_0x5ca06e));const _0x53b3fa=_0x2cd620(),_0xc4ed35=_0x54a311['creator']['id'],_0xaba6a7=_0x54a311['type']+':'+_0x54a311['subType'];this['_setSuggestionData']({'id':_0x53b3fa,'type':_0xaba6a7,'createdAt':new Date(),'authorId':_0xc4ed35,'data':_0x54a311['data'],'attributes':_0x54a311['attributes']});const _0x2d1ec4=this['_model']['createPositionAt'](_0x868760['end']['parent'],'after'),_0x9c686f=this['_model']['createRange'](_0x2d1ec4,_0x493a9c['end']);this['_addSuggestionMarker'](_0xaba6a7,_0x53b3fa,_0xc4ed35,_0x9c686f);}else{if(_0x493a9c['containsPosition'](_0x868760['start'])){const _0x40fdd2=this['_model']['createPositionAt'](_0x868760['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54a311,this['_model']['createRange'](_0x493a9c['start'],_0x40fdd2));}else{const _0xf890ca=this['_model']['createPositionAt'](_0x868760['end']['parent'],'after');this['_setSuggestionRange'](_0x54a311,this['_model']['createRange'](_0xf890ca,_0x493a9c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x282aa3){for(const {suggestion:_0x42d079,meta:_0x2a1fbd}of this['_findSuggestions'](_0x282aa3,'insertion')){if(!_0x2a1fbd['isOwn'])continue;const _0x3654ad=_0x42d079['getRanges']();for(const _0x27a894 of _0x3654ad)if(!_0x282aa3['getDifference'](_0x27a894)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5790f3){const _0x71eef2=this['editor']['plugins']['get']('Users')['getUser'](_0x5790f3);if(!_0x71eef2)throw new _0xfec3cf('track-changes-user-not-found',this);return _0x71eef2;}['_getExternalAuthor'](_0x3a466b){const _0x10d2f1=this['editor']['plugins']['get']('Users'),_0x29dcc7=_0x2ae810('external:'+_0x3a466b),_0x33d58f=_0x10d2f1['getUser'](_0x29dcc7);return _0x33d58f||_0x10d2f1['addUser']({'id':_0x29dcc7,'name':_0x3a466b});}['_createSuggestion'](_0xda0ba,_0x49b658,_0x409dae,_0x3b2825,_0x346084){const _0x4f90eb=this['_getAuthorFromId'](_0x3b2825),_0x4b4d4b=this['_suggestionFactory']['buildSuggestion'](_0xda0ba,_0x49b658,_0x409dae,_0x4f90eb,_0x346084,_0x4e2b84=>{this['_updateSuggestionData'](_0x409dae,{'attributes':_0x4e2b84});const _0x40a193=this['getSuggestion'](_0x409dae);this['_joinWithAdjacentSuggestions'](new Set([_0x40a193])),this['_refreshSuggestionsChain'](new Set([_0x40a193]));});return this['listenTo'](_0x4b4d4b,'accept',()=>{this['_updateSuggestionData'](_0x409dae,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4b4d4b,'discard',()=>{this['_updateSuggestionData'](_0x409dae,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x409dae,_0x4b4d4b),this['_suggestionState']['set'](_0x4b4d4b,'notReady'),_0x4b4d4b;}['_splitMarkerName'](_0x1bcc54){const _0x1d8ad0=_0x1bcc54['split'](':');return{'group':_0x1d8ad0[0x0],'type':_0x1d8ad0[0x1],'subType':_0x1d8ad0['length']>=0x5?_0x1d8ad0[0x2]:null,'id':_0x1d8ad0['length']<0x5?_0x1d8ad0[0x2]:_0x1d8ad0[0x3],'authorId':_0x1d8ad0['length']<0x5?_0x1d8ad0[0x3]:_0x1d8ad0[0x4],'markerCount':0x6==_0x1d8ad0['length']?_0x1d8ad0[0x5]:null};}['_breakSuggestionMarker'](_0x29da39,_0x3251f8,_0x4e88f9){const _0x440328=_0x29da39['getFirstRange'](),_0x6eb2bc=_0x440328['start'],_0x8294d9=_0x440328['end'];this['_setSuggestionRange'](_0x29da39,this['_model']['createRange'](_0x6eb2bc,_0x3251f8));const _0x2e61dd=_0x2cd620(),_0x316382=_0x29da39['creator']['id'],_0x2be655=_0x29da39['type']+(_0x29da39['subType']?':'+_0x29da39['subType']:'');this['_setSuggestionData']({'id':_0x2e61dd,'type':_0x2be655,'createdAt':new Date(),'authorId':_0x316382,'originalSuggestionId':_0x29da39['id'],'attributes':_0x29da39['attributes'],'data':_0x29da39['data']});const _0x12f4af=this['_getAttributeKey'](_0x29da39);('formatBlock'==_0x29da39['type']||_0x12f4af&&this['_isBlockAttribute'](_0x12f4af))&&(_0x4e88f9=this['_model']['createPositionBefore'](_0x4e88f9['parent'])),this['_addSuggestionMarker'](_0x2be655,_0x2e61dd,_0x316382,this['_model']['createRange'](_0x4e88f9,_0x8294d9));}['_findSuggestions'](_0x1e6caa,_0xb5d247=null){const _0x3d9ea4=[],_0x223fea=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1e6caa)||(_0x1e6caa=[_0x1e6caa]);for(const _0xeebfee of this['getSuggestions']()){if(!_0xeebfee['isInContent'])continue;if(_0xb5d247&&_0xeebfee['type']!=_0xb5d247)continue;let _0x2756dc=!0x1;for(const _0x4fc27f of _0xeebfee['getRanges']()){for(const _0x198bf2 of _0x1e6caa){const _0xdcbae4=_0x198bf2['start']['isEqual'](_0x4fc27f['end'])||_0x198bf2['end']['isEqual'](_0x4fc27f['start']);if(_0xdcbae4||_0x198bf2['getIntersection'](_0x4fc27f)){const _0xf4ec1e=_0x198bf2['containsRange'](_0x4fc27f)&&Vt(this['_model']['schema'],_0x4fc27f['start'],_0x198bf2),_0xed01e1=_0x4fc27f['containsRange'](_0x198bf2)&&Vt(this['_model']['schema'],_0x198bf2['start'],_0x4fc27f);_0x3d9ea4['push']({'suggestion':_0xeebfee,'meta':{'isOwn':_0x223fea==_0xeebfee['author'],'isNextTo':_0xdcbae4,'isInsideObject':_0xf4ec1e,'containsRangeInObject':_0xed01e1}}),_0x2756dc=!0x0;break;}}if(_0x2756dc)break;}}return _0x3d9ea4;}['_addSuggestionMarker'](_0x203606,_0x496155,_0xe00705,_0x33a963,_0x2d86ca){this['_model']['change'](_0x508475=>{let _0x395173='suggestion:'+_0x203606+':'+_0x496155+':'+_0xe00705;_0x2d86ca&&(_0x395173=_0x395173+':'+_0x2d86ca),_0x508475['addMarker'](_0x395173,{'range':_0x33a963,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x52e58c){const _0xe18dd0=_0x52e58c['previous'],_0x46305b=_0x52e58c['next'];_0x52e58c['previous']=null,_0x52e58c['next']=null,null!=_0xe18dd0&&_0xe18dd0['next']==_0x52e58c&&(_0xe18dd0['next']=_0x46305b),null!=_0x46305b&&_0x46305b['previous']==_0x52e58c&&(_0x46305b['previous']=_0xe18dd0),'ready'==this['_suggestionState']['get'](_0x52e58c)&&(this['_suggestionState']['set'](_0x52e58c,'removed'),this['fire']('suggestionUnloaded',_0x52e58c,_0xe18dd0,_0x46305b));}['_setSuggestionData'](_0x4b91ea){const _0x469240=_0x4b91ea['id'],_0x21a23b=this['addSuggestionData'](_0x4b91ea);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x18b0bd=this['editor']['plugins']['get']('PendingActions'),_0x1b11b3=_0x21a23b['hasComments'],_0x1fba8a=_0x21a23b['subType']?_0x21a23b['type']+':'+_0x21a23b['subType']:_0x21a23b['type'],_0x1ae3c8=this['editor']['locale'],_0xf42a39=_0x18b0bd['add'](o(_0x1ae3c8,'PENDING_ACTION_SUGGESTION')),_0x471eea={'id':_0x469240,'type':_0x1fba8a,'hasComments':_0x1b11b3,'data':_0x4b91ea['data']||null,'originalSuggestionId':_0x4b91ea['originalSuggestionId']||null,'attributes':_0x21a23b['attributes']};this['_adapter']['addSuggestion'](_0x471eea)['then'](_0x4e7ca7=>{_0x21a23b['_saved']=!0x0,_0x18b0bd['remove'](_0xf42a39),_0x4e7ca7&&_0x4e7ca7['createdAt']&&(this['_suggestions']['get'](_0x469240)['createdAt']=_0x4e7ca7['createdAt']);})['catch'](_0x270e95=>{throw _0x9317a6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x21a23b['discard']();}),_0x21a23b['stopListening'](),this['_suggestions']['delete'](_0x21a23b['id']),this['_suggestionState']['delete'](_0x21a23b),_0x270e95;});}return _0x21a23b;}['_isBlockAttribute'](_0x1ab30b){return this['_blockAttributeKeys']['has'](_0x1ab30b);}['_updateSuggestionData'](_0x33dd01,_0x4911eb){const _0x41bbe4=this['editor']['plugins']['get']('PendingActions'),_0x3a8050=this['getSuggestion'](_0x33dd01);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3a8050['_saved']){const _0x2e9cf6=_0x41bbe4['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x33dd01,_0x4911eb)['then'](()=>{_0x41bbe4['remove'](_0x2e9cf6);});}else _0x3a8050['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x33dd01,_0x4911eb);});}}['_getSuggestionData'](_0x16ca77){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xfec3cf('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x16ca77);}['_handleNewSuggestionMarker'](_0x20dd97){const {id:_0x4e33cc,type:_0x1d52bd,subType:_0x13d4bb,authorId:_0x327c33}=this['_splitMarkerName'](_0x20dd97),_0x42a0bc=this['_suggestions']['get'](_0x4e33cc)||this['_createSuggestion'](_0x1d52bd,_0x13d4bb,_0x4e33cc,_0x327c33,{});switch(this['_checkSuggestionCorrectness'](_0x42a0bc,_0x1d52bd,_0x13d4bb,_0x327c33),this['_suggestionState']['get'](_0x42a0bc)){case'notReady':this['_getSuggestionData'](_0x4e33cc)['then'](_0x51be24=>{let _0x1203a7=Promise['resolve']();_0x51be24['hasComments']&&(_0x1203a7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4e33cc})),_0x1203a7['then'](()=>{this['addSuggestionData'](_0x51be24)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x42a0bc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4e33cc,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x42a0bc,'ready'),this['fire']('suggestionLoaded',_0x42a0bc);break;case'ready':this['fire']('suggestionChanged',_0x42a0bc);}return _0x42a0bc['addMarkerName'](_0x20dd97),_0x42a0bc;}['_refreshSuggestionsChain'](_0x5456a9){const _0x331474=Array['from'](_0x5456a9),_0x5cab87=_0x331474['filter'](_0x5b8098=>'attribute'==_0x5b8098['type']);this['_refreshAttributeSuggestionsChain'](_0x5cab87);const _0x2780b6=_0x331474['filter'](_0x427aaf=>!_0x427aaf['isMultiRange']&&'attribute'!=_0x427aaf['type']),_0x2bad42=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3955e5=>!_0x3955e5['isMultiRange']&&'attribute'!=_0x3955e5['type']),_0x11b686=_0x2bad42['filter'](_0x3a4d61=>!_0x5456a9['has'](_0x3a4d61)),_0x59b997=new Map(_0x2bad42['map'](_0x495255=>[_0x495255,this['_suggestionFactory']['getSuggestionCallback'](_0x495255['type'],_0x495255['subType'],'chain')])),_0x26c258=new Map(_0x2bad42['map'](_0x39dba8=>[_0x39dba8,_0x39dba8['getFirstRange']()])),_0x2e86e1=new Set(),_0xbd48a4=new Set();for(let _0x597ba4=0x0;_0x597ba4<_0x2780b6['length'];_0x597ba4++)_0x314a1d(_0x2780b6[_0x597ba4],_0x2780b6,_0x597ba4+0x1);for(let _0x7194a2=0x0;_0x7194a2<_0x2780b6['length'];_0x7194a2++)_0x314a1d(_0x2780b6[_0x7194a2],_0x11b686,0x0);const _0x4bb5a5=new Set();for(let _0x259aa7=0x0;_0x259aa7<_0x2780b6['length'];_0x259aa7++){const _0x5c2cae=_0x2780b6[_0x259aa7];!_0xbd48a4['has'](_0x5c2cae)&&_0x5c2cae['previous']&&(_0x4bb5a5['add'](_0x5c2cae['previous']),_0x5c2cae['previous']['next']===_0x5c2cae&&(_0x5c2cae['previous']['next']=null),_0x5c2cae['previous']=null),!_0x2e86e1['has'](_0x5c2cae)&&_0x5c2cae['next']&&(_0x4bb5a5['add'](_0x5c2cae['next']),_0x5c2cae['next']['previous']===_0x5c2cae&&(_0x5c2cae['next']['previous']=null),_0x5c2cae['next']=null);}function _0x314a1d(_0x2789be,_0x2652e0,_0x29379f){for(let _0x171443=_0x29379f;_0x171443<_0x2652e0['length'];_0x171443++){const _0xf7ba4f=_0x83d597(_0x2789be,_0x2652e0[_0x171443]);_0xf7ba4f&&(_0xf7ba4f[0x0]['next']=_0xf7ba4f[0x1],_0xf7ba4f[0x1]['previous']=_0xf7ba4f[0x0],_0x2e86e1['add'](_0xf7ba4f[0x0]),_0xbd48a4['add'](_0xf7ba4f[0x1]));}}function _0x83d597(_0x1b5002,_0x412256){if(_0x1b5002['author']['id']!==_0x412256['author']['id'])return null;const _0x4b1edf=_0x59b997['get'](_0x1b5002)(_0x1b5002,_0x412256,_0x26c258['get'](_0x1b5002),_0x26c258['get'](_0x412256));if(!_0x4b1edf)return null;return _0x59b997['get'](_0x412256)(_0x1b5002,_0x412256,_0x26c258['get'](_0x1b5002),_0x26c258['get'](_0x412256))?_0x4b1edf[0x1]['commentThread']&&_0x4b1edf[0x1]['commentThread']['length']?null:_0x4b1edf:null;}_0x4bb5a5['size']&&this['_refreshSuggestionsChain'](_0x4bb5a5);}['_refreshAttributeSuggestionsChain'](_0x4bdc1b){if(0x0==_0x4bdc1b['length'])return;const _0xeb1b41=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c87d2=>'attribute'==_0x4c87d2['type']&&_0x4c87d2['_isDataLoaded']),_0xcdac5b=[],_0xc7bb8=new Map();for(const _0x48debe of _0xeb1b41){const _0x3ea73d=_0x2ae810(_0x48debe['attributes']);_0xc7bb8['has'](_0x3ea73d)||(_0xc7bb8['set'](_0x3ea73d,_0xcdac5b['length']),_0xcdac5b['push']([]));const _0xf00da0=_0xc7bb8['get'](_0x3ea73d);_0xcdac5b[_0xf00da0]['push'](_0x48debe);}!(function(){_0xcdac5b['sort']((_0xd6bb33,_0x5533c9)=>{const _0x31c494=_0xd6bb33[0x0]['createdAt'],_0x484c1e=_0x5533c9[0x0]['createdAt'];return _0x31c494==_0x484c1e?_0xd6bb33[0x0]['attributes']['groupId']<_0x5533c9[0x0]['attributes']['groupId']?-0x1:0x1:_0x31c494<_0x484c1e?-0x1:0x1;});for(const _0x552103 of _0xcdac5b)_0x552103['sort']((_0x4a333f,_0x141ac3)=>_0x4a333f['id']<_0x141ac3['id']?-0x1:0x1);}());for(let _0x51a1a1=0x0;_0x51a1a1<_0xcdac5b['length'];_0x51a1a1++){if(0x0==_0xcdac5b[_0x51a1a1]['length'])continue;const _0x3237f9=[];for(let _0x575e64=_0x51a1a1+0x1;_0x575e64<_0xcdac5b['length'];_0x575e64++)0x0!=_0xcdac5b[_0x575e64]['length']&&_0x1715ed(_0xcdac5b[_0x51a1a1],_0xcdac5b[_0x575e64])&&_0x3237f9['push'](_0x575e64);for(const _0x526c32 of _0x3237f9)_0xcdac5b[_0x51a1a1]=_0xcdac5b[_0x51a1a1]['concat'](_0xcdac5b[_0x526c32]),_0xcdac5b[_0x526c32]=[];}for(const _0x2d2bc6 of _0xcdac5b)for(let _0x3a412e=0x0;_0x3a412e<_0x2d2bc6['length'];_0x3a412e++){const _0x46d100=_0x2d2bc6[_0x3a412e+0x1]||null;_0x2d2bc6[_0x3a412e]['next']!==_0x46d100&&(_0x2d2bc6[_0x3a412e]['next']=_0x46d100);}for(const _0x37b38a of _0xcdac5b)for(let _0x2216f4=0x0;_0x2216f4<_0x37b38a['length'];_0x2216f4++){const _0x320721=_0x37b38a[_0x2216f4-0x1]||null;_0x37b38a[_0x2216f4]['previous']!==_0x320721&&(_0x37b38a[_0x2216f4]['previous']=_0x320721);}function _0x1715ed(_0x2d4ae4,_0x25b9b1){if(_0x2d4ae4[0x0]['attributes']['groupId']!==_0x25b9b1[0x0]['attributes']['groupId']&&_0x2d4ae4[0x0]['author']!==_0x25b9b1[0x0]['author'])return!0x1;if(!function(_0x147c31,_0x519c8a){if(!_0x147c31['hasComments']&&!_0x519c8a['hasComments'])return!0x0;if(_0x147c31['hasComments']&&_0x519c8a['hasComments'])return!0x1;if(_0x147c31['hasComments']&&_0x519c8a['createdAt']<_0x147c31['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x519c8a['hasComments']&&_0x147c31['createdAt']<_0x519c8a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2d4ae4[0x0],_0x25b9b1[0x0]))return!0x1;const _0x19b162=Et(_0x2d4ae4[0x0]['attributes'],'groupId'),_0x3ef9e1=Et(_0x25b9b1[0x0]['attributes'],'groupId');if(!_0x2cb703(_0x19b162,_0x3ef9e1))return!0x1;return!!_0x2d4ae4['every'](_0x311bdb=>_0x25b9b1['some'](_0x5a173e=>_0x311bdb['getFirstRange']()['isEqual'](_0x5a173e['getFirstRange']())))&&_0x25b9b1['every'](_0xab814c=>_0x2d4ae4['some'](_0xc48c6b=>_0xab814c['getFirstRange']()['isEqual'](_0xc48c6b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5b7907){const _0xb43d02=Array['from'](_0x5b7907),_0x16fd68=this['getSuggestions']({'skipNotAttached':!0x0}),_0x43a786=_0x16fd68['filter'](_0xa5a5ea=>!_0x5b7907['has'](_0xa5a5ea)),_0x4bb9b9=new Map(_0xb43d02['map'](_0x1c5493=>[_0x1c5493,this['_suggestionFactory']['getSuggestionCallback'](_0x1c5493['type'],_0x1c5493['subType'],'join')])),_0x34303f=new Map(_0x16fd68['map'](_0x11878b=>[_0x11878b,_0x11878b['getRanges']()]));for(let _0x3b96b3=0x0;_0x3b96b3<_0xb43d02['length'];_0x3b96b3++){if(_0x5d4d57(this,_0xb43d02[_0x3b96b3],_0xb43d02,_0x3b96b3+0x1))return!0x0;}for(let _0x2a5f82=0x0;_0x2a5f82<_0xb43d02['length'];_0x2a5f82++){if(_0x5d4d57(this,_0xb43d02[_0x2a5f82],_0x43a786,0x0))return!0x0;}return!0x1;function _0x5d4d57(_0x47c6b9,_0x2dffda,_0x37976e,_0x57a784){for(let _0x4d795e=_0x57a784;_0x4d795e<_0x37976e['length'];_0x4d795e++){const _0x19564e=_0x37976e[_0x4d795e];if(_0x19564e['type']!==_0x2dffda['type']||_0x19564e['author']['id']!==_0x2dffda['author']['id']||_0x19564e['subType']!==_0x2dffda['subType'])continue;if(!zt(_0x2dffda,_0x19564e))continue;if('attribute'==_0x2dffda['type']&&_0x2dffda['data']['oldValue']!=_0x19564e['data']['oldValue'])continue;if('attribute'==_0x2dffda['type']&&_0x47c6b9['_isBlockAttribute'](_0x2dffda['data']['key']))continue;if('formatBlock'==_0x2dffda['type']){const _0x4ca081=_0x47c6b9['editor']['model'],_0x477ad2=_0x2dffda['getContainedElement']();if(_0x477ad2&&(_0x4ca081['schema']['isObject'](_0x477ad2)||_0x4ca081['schema']['isLimit'](_0x477ad2)))continue;}const _0x55fcd7=_0x4bb9b9['get'](_0x2dffda),_0x38b822=_0x34303f['get'](_0x2dffda),_0x1a7c55=_0x34303f['get'](_0x19564e),_0x55295b=_0x2dffda['commentThread']&&_0x2dffda['commentThread']['length'],_0x139edb=_0x19564e['commentThread']&&_0x19564e['commentThread']['length'];if(!_0x55295b&&_0x55fcd7(_0x1a7c55,_0x38b822))return _0x47c6b9['_joinSuggestions'](_0x19564e,_0x2dffda),_0x34303f['delete'](_0x2dffda),!0x0;if(!_0x139edb&&_0x55fcd7(_0x38b822,_0x1a7c55))return _0x47c6b9['_joinSuggestions'](_0x2dffda,_0x19564e),_0x34303f['delete'](_0x19564e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1d21c6,_0x33addf){if(_0x1d21c6['isMultiRange']){for(const _0x2083be of _0x33addf['getRanges']())_0x1d21c6['addRange'](_0x2083be);}else{const _0x3a4a15=_0x33addf['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1d21c6,this['_model']['createRange'](_0x1d21c6['getFirstRange']()['start'],_0x3a4a15));}_0x33addf['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4081a0,_0x585b41,_0x5905ef){const _0x3b9cea=_0x4081a0['startsWith']('format')||_0x4081a0['startsWith']('attribute')?'FORMATTING':_0x4081a0['toUpperCase']();return o(this['editor']['locale'],_0x585b41+'_'+_0x3b9cea+'_SUGGESTION_ANNOUNCEMENT',_0x5905ef);}['_initAriaMarkerChangeAnnouncements'](){const _0x56f1f6=this['editor'];if(!_0x56f1f6['ui'])return;const {ariaLiveAnnouncer:_0x57a1c3}=_0x56f1f6['ui'];_0x439ccd(this['_model'],({left:_0x336b72,entered:_0x2c6f18})=>{for(const _0x193a62 of _0x336b72){const {group:_0xac8e82,type:_0x40429e}=this['_splitMarkerName'](_0x193a62['name']);if('suggestion'===_0xac8e82){_0x57a1c3['announce'](this['_getMarkerAnnouncementText'](_0x40429e,'LEAVE'));break;}}for(const _0x4ca7b4 of _0x2c6f18){const {group:_0x1a9d48,type:_0x1705a2}=this['_splitMarkerName'](_0x4ca7b4['name']);if('suggestion'===_0x1a9d48){_0x57a1c3['announce'](this['_getMarkerAnnouncementText'](_0x1705a2,'ENTER',_0x315ef0(_0x2978b7)));break;}}});}['_processAttributeChanges'](_0x406fa9){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3fbcb6=this['editor'],_0x3aa19d=_0x3fbcb6['model']['document']['differ']['getChanges']();if(0x0==_0x3aa19d['length'])return!0x1;const _0x16c38c=[],_0x57bd39=_0x3aa19d['filter'](_0x37a43e=>'attribute'==_0x37a43e['type']),_0x4fe9f5=_0x3aa19d['filter'](_0x2a6aee=>'insert'==_0x2a6aee['type']&&'$text'!=_0x2a6aee['name']),_0x3194ad=_0x3aa19d['filter'](_0x1a4498=>'remove'==_0x1a4498['type']&&'$text'!=_0x1a4498['name']);for(const _0x149557 of _0x57bd39)_0x16c38c['push']({'key':_0x149557['attributeKey'],'newValue':_0x149557['attributeNewValue'],'oldValue':_0x149557['attributeOldValue'],'range':Jt(_0x149557['range'],_0x3fbcb6['model'])});for(const _0x55fcb2 of _0x4fe9f5){const _0x2c2b9a=_0x3194ad['find'](_0x238db2=>_0x238db2['position']['isEqual'](_0x55fcb2['position']));_0x2c2b9a&&_0x16c38c['push']({'key':m,'newValue':_0x55fcb2['name'],'oldValue':_0x2c2b9a['name'],'range':_0x3fbcb6['model']['createRangeOn'](_0x55fcb2['position']['nodeAfter'])});}return 0x0!=_0x16c38c['length']&&this['_reduceExistingSuggestions'](_0x406fa9,_0x16c38c);}['_processAttributeSuggestions'](_0x3dd18e){let _0x2ffd44=!0x1;const _0x40f819=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5ba462=>_0x5ba462['data']['newRange']&&_0x5ba462['name']['startsWith']('suggestion:attribute:'));for(const _0x4deaff of _0x40f819){const {subType:_0x1ad15f,id:_0xbd28e5}=this['_splitMarkerName'](_0x4deaff['name']),_0x453e0e=_0x1ad15f['split']('|')[0x0];for(const _0x22305f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x22305f['id']!=_0xbd28e5&&'attribute'==_0x22305f['type']&&_0x22305f['data']&&_0x22305f['data']['key']==_0x453e0e&&_0x22305f['getFirstRange']()['isIntersecting'](_0x4deaff['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x22305f,_0x4deaff['data']['newRange'],_0x3dd18e),_0x2ffd44=!0x0);}return _0x2ffd44;}['_recordAttributeChanges'](_0x5d1fce){this['_recordAttributeSuggestions']=!0x0,_0x5d1fce();}['_isRegisteredAttribute'](_0x3184c5){const _0x4c7fe0=this['_isBlockAttribute'](_0x3184c5),_0x558969=this['_inlineAttributeKeys']['has'](_0x3184c5);return _0x4c7fe0||_0x558969;}['_reduceExistingSuggestions'](_0x42572e,_0x2ad627){if(0x0==_0x2ad627['length'])return!0x1;let _0x58fb62=!0x1;for(const _0x3dea6f of _0x2ad627){const _0x10d639=this['_findSuggestions'](_0x3dea6f['range'],'attribute')['filter'](_0x24a519=>!_0x24a519['meta']['isNextTo'])['map'](_0x1062a6=>_0x1062a6['suggestion']),_0x41647b=_0x2ae810({'newValue':_0x3dea6f['newValue']});_0x10d639['filter'](_0x1c1dd0=>{const [_0x1f9fb5,_0x101546]=_0x1c1dd0['subType']['split']('|');return _0x1f9fb5==_0x3dea6f['key']&&_0x101546!=_0x41647b;})['forEach'](_0x5dd0cd=>{this['_reduceSuggestionAttributeRange'](_0x5dd0cd,_0x3dea6f['range'],_0x42572e),_0x58fb62=!0x0;});}return _0x58fb62;}['_reduceSuggestionAttributeRange'](_0x36cca2,_0x36961c,_0x5ef25e){const _0xac39b1=_0x36cca2['getFirstRange']()['getDifference'](_0x36961c);0x0!==_0xac39b1['length']?0x1!==_0xac39b1['length']?this['_breakSuggestionMarker'](_0x36cca2,_0x36961c['start'],_0x36961c['end']):this['_setSuggestionRange'](_0x36cca2,_0xac39b1[0x0]):_0x5ef25e['removeMarker'](_0x36cca2['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3827a7){this['_editor']=_0x3827a7,this['_model']=_0x3827a7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1c2ce0,_0xcee901,_0x9cbfac,_0x4a04de,_0x509dbe,_0x2fce0c){return new u(this['_model'],{'type':_0x1c2ce0,'subType':_0xcee901,'id':_0x9cbfac,'author':_0x4a04de,'creator':_0x4a04de,'attributes':_0x509dbe,'onAttributesChange':_0x2fce0c,'onAccept':(..._0x1a1b0d)=>this['getSuggestionCallback'](_0x1c2ce0,_0xcee901,'accept')(..._0x1a1b0d),'onDiscard':(..._0x452ed8)=>this['getSuggestionCallback'](_0x1c2ce0,_0xcee901,'discard')(..._0x452ed8)});}['registerCustomCallback'](_0x1b1c22,_0x1680ff,_0x2c9bfa,_0x188f31){const _0x30ca5e=_0x1b1c22+':'+_0x1680ff+':'+_0x2c9bfa;this['_customCallbacks']['set'](_0x30ca5e,_0x188f31);}['getSuggestionCallback'](_0x202bf4,_0x54481c,_0x3e9132){const _0x5c7191=_0x202bf4+':'+_0x54481c+':'+_0x3e9132;return this['_customCallbacks']['get'](_0x5c7191)||this['_defaultCallbacks']['get'](_0x202bf4+':'+_0x3e9132);}['_registerDefaultCallbacks'](){const _0x6cdd91=()=>!0x1,_0x3598eb=_0x22a604=>{_0x22a604['sort']((_0x2154d8,_0x6d5e0e)=>_0x2154d8['start']['isBefore'](_0x6d5e0e['start'])?0x1:-0x1),this['_model']['change'](_0xad59a6=>{for(const _0x2577fb of _0x22a604){let _0x5a14fa;_0x5a14fa=_0x2577fb['end']['isAtEnd']&&_0x2577fb['end']['parent']==_0x2577fb['start']['nodeAfter']?_0xad59a6['createSelection'](_0x2577fb['start']['nodeAfter'],'on'):_0xad59a6['createSelection'](_0x2577fb),this['_model']['deleteContent'](_0x5a14fa,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1a9c27=(_0x14890f,_0x38c5ed)=>{_0x38c5ed&&this['_model']['change'](_0x290a5a=>{const {commandName:_0x53950d,commandParams:_0x3bffa3=[]}=_0x38c5ed,_0x23d8e1=_0x14890f['map'](_0x27a66b=>(Pt(_0x27a66b)&&(_0x27a66b=this['_model']['createRange'](_0x27a66b['end'])),_0x27a66b))['filter'](_0x21efaa=>'$graveyard'!==_0x21efaa['root']['rootName']);if(_0x23d8e1['length']<0x1)return;const _0x58dd39=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x34e345=>_0x114c36['fromRange'](_0x34e345));_0x290a5a['setSelection'](_0x23d8e1);for(const _0x43c492 of this['_editor']['commands']['commands']())_0x43c492['refresh']();_0x3bffa3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x53950d,..._0x3bffa3);const _0x1eb06f=_0x58dd39['filter'](_0x360a02=>'$graveyard'!=_0x360a02['root']['rootName']);_0x1eb06f['length']>0x0&&_0x290a5a['setSelection'](_0x1eb06f);for(const _0x338751 of _0x58dd39)_0x338751['detach']();});},_0x51442d=(_0x3c9dfe,_0x376357)=>0x1==_0x3c9dfe['length']&&0x1==_0x376357['length']&&_0x3c9dfe[0x0]['end']['isEqual'](_0x376357[0x0]['start']),_0x5f1017=(_0x4b96c2,_0x4212f8,_0xaa3a4d,_0x29a9b1)=>qt(_0x4b96c2,_0x4212f8,_0xaa3a4d,_0x29a9b1)?[_0x4b96c2,_0x4212f8]:qt(_0x4212f8,_0x4b96c2,_0x29a9b1,_0xaa3a4d)?[_0x4212f8,_0x4b96c2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x6cdd91),this['_defaultCallbacks']['set']('insertion:discard',_0x3598eb),this['_defaultCallbacks']['set']('insertion:join',_0x51442d),this['_defaultCallbacks']['set']('insertion:chain',_0x5f1017),this['_defaultCallbacks']['set']('deletion:accept',_0x3598eb),this['_defaultCallbacks']['set']('deletion:discard',_0x6cdd91),this['_defaultCallbacks']['set']('deletion:join',_0x51442d),this['_defaultCallbacks']['set']('deletion:chain',_0x5f1017),this['_defaultCallbacks']['set']('formatInline:accept',_0x1a9c27),this['_defaultCallbacks']['set']('formatInline:discard',_0x6cdd91),this['_defaultCallbacks']['set']('formatInline:join',_0x51442d),this['_defaultCallbacks']['set']('formatInline:chain',_0x6cdd91),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1a9c27),this['_defaultCallbacks']['set']('formatBlock:discard',_0x6cdd91),this['_defaultCallbacks']['set']('formatBlock:join',_0x51442d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x6cdd91),this['_defaultCallbacks']['set']('attribute:accept',_0x6cdd91),this['_defaultCallbacks']['set']('attribute:discard',(_0x5130bf,_0x11c687)=>{if(!_0x11c687)return;const _0x4380dc=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x515106=>{if(_0x11c687['key']==m)for(const _0x186055 of _0x5130bf){const _0x47fbe0=_0x186055['start']['nodeAfter'],_0x2cf1a4=_0x11c687['oldValue'];_0x515106['rename'](_0x47fbe0,_0x2cf1a4);}else{if(_0x4380dc['_isBlockAttribute'](_0x11c687['key'])){for(const _0x149604 of _0x5130bf)void 0x0!==_0x11c687['oldValue']?_0x515106['setAttribute'](_0x11c687['key'],_0x11c687['oldValue'],_0x149604['start']['nodeAfter']):_0x515106['removeAttribute'](_0x11c687['key'],_0x149604['start']['nodeAfter']);}else{for(const _0x5edd62 of _0x5130bf)_0x11c687['oldValue']?_0x515106['setAttribute'](_0x11c687['key'],_0x11c687['oldValue'],_0x5edd62):_0x515106['removeAttribute'](_0x11c687['key'],_0x5edd62);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x51442d);}}function Vt(_0x1e0383,_0x16d2a5,_0x491a01){for(const _0x304d3c of _0x16d2a5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x304d3c['root']==_0x304d3c)return!0x1;if(!_0x491a01['containsItem'](_0x304d3c))return!0x1;if(_0x1e0383['isObject'](_0x304d3c)||_0x1e0383['isLimit'](_0x304d3c))return!0x0;}return!0x1;}function Pt(_0x191de5){return _0x191de5['end']['parent']==_0x191de5['start']['nodeAfter']&&_0x191de5['end']['isAtStart'];}function Gt(_0x1f24ee,_0x631f46,_0xc79769,_0x7cb8a7){const _0x51d0bb=_0x55968c=>!_0x55968c['item']['is']('$textProxy')&&!_0x7cb8a7['isObject'](_0x55968c['item']),_0x12bc9b=_0x1f24ee['start']['getLastMatchingPosition'](_0x51d0bb),_0x24387b=_0x1f24ee['end']['getLastMatchingPosition'](_0x51d0bb,{'direction':'backward'});return(!_0x1f24ee['start']['isEqual'](_0x12bc9b)||!_0x1f24ee['end']['isEqual'](_0x24387b))&&(_0x12bc9b['isBefore'](_0x24387b)?_0xc79769['updateMarker'](_0x631f46,{'range':_0xc79769['createRange'](_0x12bc9b,_0x24387b)}):_0xc79769['removeMarker'](_0x631f46),!0x0);}function Ft(_0x3889dc){return _0x2ae810(_0x3889dc);}function Lt(_0x5e79a0){const _0x4d3e66=_0x5e79a0['start']['nodeAfter'];return _0x4d3e66&&_0x4d3e66['is']('element');}function Jt(_0x5f3905,_0x19c745){return null==_0x5f3905['end']['nodeBefore']&&_0x5f3905['end']['parent']==_0x5f3905['start']['nodeAfter']?Ht(_0x5f3905['start']['nodeAfter'],_0x19c745):_0x5f3905;}function Ht(_0x12424a,_0x2e206d){const _0x4bf56e=_0x2e206d['schema']['isObject'](_0x12424a)||_0x2e206d['schema']['isSelectable'](_0x12424a);return _0x2e206d['createRange'](_0x2e206d['createPositionAt'](_0x12424a,'before'),_0x4bf56e?_0x2e206d['createPositionAfter'](_0x12424a):_0x2e206d['createPositionAt'](_0x12424a,'end'));}function qt(_0x54cce8,_0x309ad2,_0xd54248,_0x634ab9){return!!zt(_0x54cce8,_0x309ad2)&&_0xd54248['end']['isEqual'](_0x634ab9['start']);}function zt(_0x455d33,_0xaef567){if(!_0x455d33['_isDataLoaded']||!_0xaef567['_isDataLoaded'])return!0x1;const _0x812b41=new Set(Object['keys'](_0x455d33['attributes'])),_0x5f555c=new Set(Object['keys'](_0xaef567['attributes']));if(_0x812b41['delete']('groupId'),_0x5f555c['delete']('groupId'),0x0==_0x812b41['size']&&0x0==_0x5f555c['size'])return!0x0;if(_0x812b41['size']!=_0x5f555c['size'])return!0x1;const _0x1fa8bf={..._0x455d33['attributes']},_0x485560={..._0xaef567['attributes']};return delete _0x1fa8bf['groupId'],delete _0x485560['groupId'],JSON['stringify'](_0x1fa8bf)==JSON['stringify'](_0x485560);}function Kt(_0x28d3c0,_0x117946){const _0xc8537b=Wt(_0x28d3c0['attributes']),_0x23388f=Wt(_0x117946);if(!_0x28d3c0['_isDataLoaded'])return!0x1;for(const _0x5d483c of Object['keys'](_0x23388f))if(!_0x2cb703(_0xc8537b[_0x5d483c],_0x23388f[_0x5d483c]))return!0x1;return!0x0;}function Wt(_0x95c437){const _0x3901bb=Object['assign']({},_0x95c437);return delete _0x3901bb['skipNestingCheck'],delete _0x3901bb['tablePasteChainId'],_0x3901bb;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x132ed3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x423384,_0x4c71dc,_0x4e8e59,_0x3979f0){super(),this['model']=_0x4c71dc,this['view']=_0x4e8e59,this['commentThreadController']=_0x3979f0,this['_editor']=_0x423384,this['_acceptCommand']=_0x423384['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x423384['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5d4710,_0x2b49e1)=>_0x5d4710||_0x2b49e1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x24edeb=>_0x24edeb&&this['_editor']['model']['canEditAt'](_0x4c71dc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x57659e=>_0x57659e&&this['_editor']['model']['canEditAt'](_0x4c71dc['getRanges']())),this['_pendingAction']=null,_0x4e8e59['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4e8e59,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4e8e59,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4e8e59,'change:isDirty',()=>{_0x4e8e59['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 _0x273ab4=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x273ab4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x11e5db{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x529fc9,_0x2b1978,_0x18a310,_0xae2e0e){super(_0x529fc9),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2b5eba(_0x529fc9,o(_0x529fc9,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2b1978['authoredAt']),this['bind']('authoredAt')['to'](_0x2b1978),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x2b1978,'authoredAt',this,'descriptionParts',(_0x28c1a9,_0xe220fb,_0x2d6bcc)=>{const _0x409d7f=_0x2d6bcc['map'](_0x48106d=>ns(_0x48106d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x28c1a9-0x1,_0x2b1978['author']['name'],_0xe220fb?_0xae2e0e['formatDateTime'](_0xe220fb):'',new DOMParser()['parseFromString'](_0x409d7f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5c8dec(),this['focusTracker']=new _0x23ef9f(),this['keystrokes']=new _0x3bdab9(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x12a7bd=>_0x12a7bd['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2b1978,this['_localUser']=_0x18a310,this['_config']=_0xae2e0e,_0xae2e0e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x484b13(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x304da8}=this['_config'];this['commentsListView']=new _0x304da8(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',_0x35360f=>_0x35360f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4b097f,_0x290df3)=>_0x4b097f||!!_0x290df3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3d68be}=this['_config'],_0x9ac893=new _0x3d68be(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2beece=_0x9ac893['commentInputView'];return _0x9ac893['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2beece,'value',(_0x36937f,_0x3cf6d7,_0x2053ab)=>!!_0x2053ab||_0x36937f&&!_0x3cf6d7),_0x2beece['on']('submit',(_0x44896c,_0x430171)=>{this['fire']('addComment',_0x430171),_0x2beece['editor']['setData']('');}),_0x2beece['on']('cancel',()=>this['focus']()),_0x2beece['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x9ac893;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x1390de,_0x5ac79d,_0x2f4be2,_0x32b632){super(_0x1390de,_0x5ac79d,_0x2f4be2,_0x32b632),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x35c43a=>_0x35c43a&&_0x35c43a[0x0]?_0x35c43a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3bc95a,_0x43744e)=>{let _0x207933='';for(const _0x3546d2 of _0x3bc95a)_0x207933+='<p>'+ns(_0x3546d2['content'],_0x3546d2['color'])+'</p>';return _0x43744e?_0x207933:_0x54b9fd(_0x207933,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x32b632['SuggestionView'](_0x1390de,_0x5ac79d,{'formatDateTime':_0x32b632['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4d77a6=this['bindTemplate'],_0x9ce038=[this['suggestionView']];return this['commentsListView']&&_0x9ce038['push'](this['commentsListView']),this['commentThreadInputView']&&_0x9ce038['push'](this['commentThreadInputView']),_0x9ce038['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4d77a6['if']('isActive','ck-suggestion-wrapper--active'),_0x4d77a6['to']('type',_0x411940=>'ck-suggestion-'+_0x411940),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':0x0,'role':'listitem','aria-label':_0x4d77a6['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x9ce038};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x11e5db{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2589d3,_0x4a64d3,_0x1d72ea){super(_0x2589d3),this['_model']=_0x4a64d3,this['_config']=_0x1d72ea,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4a64d3),this['acceptButton']=this['_createButton'](o(_0x2589d3,'Accept\x20suggestion'),_0x230c64['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2589d3,'Discard\x20suggestion'),_0x230c64['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xf70ba3(_0x2589d3,_0x4a64d3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5c8dec([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x23ef9f(),this['keystrokes']=new _0x3bdab9(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4960b3=>_0x4960b3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x257513=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x257513['innerHTML']=this['description'],this['on']('change:description',(_0x36996f,_0x2e7817,_0x180ec4)=>{_0x257513['innerHTML']=_0x180ec4;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x37a88b=this['bindTemplate'],_0x1b75be=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x37a88b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x37a88b['to']('authoredAt',_0x21adea=>this['_config']['formatDateTime'](_0x21adea))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x1b75be['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x1b75be}]};}['focus'](){this['element']['focus']();}['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;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x10f0bf,_0x2c4916,_0x550f07,_0x30d984,_0x39b34c){const _0x1c4407=new _0xc6c968(this['locale']);return _0x1c4407['set']({'label':_0x10f0bf,'icon':_0x2c4916,'tooltip':!0x0,'tooltipPosition':_0x39b34c}),_0x1c4407['extendTemplate']({'attributes':{'class':_0x550f07}}),_0x1c4407['on']('execute',()=>{this['fire'](_0x30d984,this['_model']['id']);}),_0x1c4407;}['_setupKeyboardNavigation'](){const _0x4648c6=this['element'];this['keystrokes']['listenTo'](_0x4648c6);for(const _0x54a872 of this['focusables'])this['focusTracker']['add'](_0x54a872['element']),this['keystrokes']['listenTo'](_0x54a872['element']);this['keystrokes']['set']('enter',(_0x3abc2f,_0x555853)=>{_0x4648c6===_0x3abc2f['target']&&(this['focusCycler']['focusFirst'](),_0x555853());}),this['keystrokes']['set']('esc',(_0x16b326,_0x37bac5)=>{_0x4648c6!==_0x16b326['target']&&(this['focus'](),_0x37bac5());});}}var we='<!--\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-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x32720e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x48e0a0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1071c7){super(_0x1071c7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1672bd=this['editor']['config'];_0x1672bd['define']('trackChanges.SuggestionThreadView',pe),_0x1672bd['define']('trackChanges.SuggestionView',fe),_0x1672bd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1672bd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x575ebb,_0x2f6299){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x57a123,_0x1d1e32]of this['_handleControllerBuffer']){const _0x25e769=this['_suggestionToController']['has'](_0x57a123);_0x25e769||_0x1d1e32?_0x25e769&&_0x1d1e32&&this['_destroyController'](_0x57a123):this['_initializeController'](_0x57a123);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x575ebb,_0x2f6299);}['init'](){const _0x16d96e=this['editor'],_0x3cdc09=_0x16d96e['plugins']['get']('TrackChangesEditing'),_0x39f6ef=_0x16d96e['plugins']['get']('Annotations'),_0x52cf25=_0x16d96e['plugins']['get']('EditorAnnotations'),_0x14d0a8=_0x16d96e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x52cf25['addSourceCollector'](()=>{const _0xb84493=[];for(const [_0x318a05,_0xd867de]of Array['from'](this['_suggestionToController'])){const _0x54f476=_0x318a05['getAllAdjacentSuggestions'](),_0x597dd4=[];for(const _0x502684 of _0x54f476){if(!_0x502684['isInContent'])continue;if(_0x502684['isMultiRange']){_0x597dd4['push'](..._0x502684['getRanges']());continue;}const _0x45fcf2=_0x502684['getFirstRange']();if(_0x597dd4['length']>0x0){const _0x528ba5=_0x597dd4[0x0]['getJoined'](_0x45fcf2);if(_0x528ba5){_0x597dd4[0x0]=_0x528ba5;continue;}}_0x597dd4['push'](_0x45fcf2);}_0xb84493['push']([_0xd867de['view'],_0x597dd4]);}return _0xb84493;}),this['listenTo'](_0x3cdc09,'suggestionLoaded',(_0x39f0db,_0x36bca6)=>{this['listenTo'](_0x36bca6,'change:previous',(_0x292cd7,_0x179c6a,_0x27c7c8,_0x29daa0)=>{_0x36bca6['isInContent']&&(null==_0x27c7c8?(this['_updateController'](_0x29daa0['head']),this['_handleSuggestionControllerDelayed'](_0x36bca6,!0x1)):(this['_updateController'](_0x27c7c8['head']),null==_0x29daa0&&this['_handleSuggestionControllerDelayed'](_0x36bca6,!0x0)));}),null!==_0x36bca6['previous']?this['_updateController'](_0x36bca6['head']):this['_handleSuggestionControllerDelayed'](_0x36bca6,!0x1);}),this['listenTo'](_0x3cdc09,'suggestionUnloaded',(_0x55aa7d,_0x159b36,_0xfc4c0b)=>{this['stopListening'](_0x159b36,'change:previous'),this['_handleControllerBuffer']['delete'](_0x159b36),this['_suggestionToController']['has'](_0x159b36)&&this['_destroyController'](_0x159b36),_0xfc4c0b&&this['_updateController'](_0xfc4c0b['head']);}),this['listenTo'](_0x3cdc09,'suggestionChanged',(_0xf3b880,_0x5cbc54)=>{this['_updateController'](_0x5cbc54);}),this['listenTo'](_0x39f6ef,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x14d0a8,'addComment',(_0x6d6d85,{threadId:_0x20188b,isFromAdapter:_0x1c4e63})=>{if(_0x1c4e63||!_0x3cdc09['hasSuggestion'](_0x20188b))return;const _0x43cc95=_0x3cdc09['getSuggestion'](_0x20188b);this['_suggestionToController']['get'](_0x43cc95)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16d96a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x17cf8f;for(const _0x29239a in _0x16d96a){const _0x6f50ed=_0x29239a,_0x8b1d54=_0x16d96a[_0x6f50ed];if('trackChangesLicenseKeyValid'==_0x8b1d54||'trackChangesLicenseKeyInvalid'==_0x8b1d54||'trackChangesLicenseKeyExpired'==_0x8b1d54||'trackChangesLicenseKeyDomainLimit'==_0x8b1d54||'trackChangesLicenseKeyNotAllowed'==_0x8b1d54||'trackChangesLicenseKeyEvaluationLimit'==_0x8b1d54||'trackChangesLicenseKeyTrialLimit'==_0x8b1d54||'trackChangesLicenseKeyUsageLimit'==_0x8b1d54){delete _0x16d96a[_0x6f50ed],_0x17cf8f=_0x8b1d54,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x17cf8f&&_0x16d96a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x17cf8f&&_0x16d96a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x17cf8f&&_0x16d96a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x17cf8f&&_0x16d96a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x17cf8f&&_0x16d96a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x17cf8f&&_0x16d96a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x17cf8f&&_0x16d96a['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3e453b=this['editor']['plugins']['get']('Annotations'),_0x57bd93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f98d2=Array['from'](_0x3e453b['activeAnnotations'],_0x5c5663=>_0x5c5663['innerView'])['filter'](_0xb265aa=>this['_viewToController']['has'](_0xb265aa)),_0x2ad8ea=[];for(const _0x31f0a2 of _0x3f98d2){const _0x1d9d39=this['_viewToController']['get'](_0x31f0a2)['model']['getAllAdjacentSuggestions']();_0x2ad8ea['push'](..._0x1d9d39['reduce']((_0x43f3b0,_0x1a2dca)=>[..._0x43f3b0,..._0x1a2dca['getMarkerNames']()],[]));}_0x57bd93['activeMarkers']=_0x2ad8ea;}['_addUIComponentsToFactory'](){const _0x35dc56=this['editor'],_0x460929=_0x35dc56['locale'],_0x3ef0d3=o(_0x460929,'Track\x20changes'),_0x30dabc=new _0x33f543([{'type':'switchbutton','model':new _0x41358f({'withText':!0x0,'isToggleable':!0x0,'label':_0x3ef0d3,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x41358f({'withText':!0x0,'label':o(_0x460929,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41358f({'withText':!0x0,'label':o(_0x460929,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41358f({'withText':!0x0,'label':o(_0x460929,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41358f({'withText':!0x0,'label':o(_0x460929,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x35dc56['plugins']['has']('TrackChangesPreview')&&_0x30dabc['addMany']([{'type':'separator'},{'type':'button','model':new _0x41358f({'withText':!0x0,'label':o(_0x460929,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xf7089f of _0x30dabc)if(ke(_0xf7089f)){const _0x352c88=_0x35dc56['commands']['get'](_0xf7089f['model']['commandName']);_0xf7089f['model']['bind']('isOn','isEnabled')['to'](_0x352c88,'value','isEnabled');}_0x35dc56['ui']['componentFactory']['add']('trackChanges',_0x1effcb=>this['_createToolbarButton'](_0x1effcb,_0x30dabc,_0x3ef0d3)),_0x35dc56['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3031be=>this['_createMenuBarMenu'](_0x3031be,_0x30dabc,_0x3ef0d3));}['_createToolbarButton'](_0x56091d,_0x300b26,_0x26d090){const _0x4172b9=_0x4cb20b(_0x56091d,_0x4b215d),_0x1e44d8=this['editor']['commands']['get']('trackChanges');_0x4172b9['buttonView']['set']({'tooltip':_0x26d090,'label':_0x26d090,'icon':we}),_0x4172b9['buttonView']['bind']('isOn')['to'](_0x1e44d8,'value'),_0x4172b9['buttonView']['on']('execute',()=>{_0x1e44d8['execute'](),this['editor']['editing']['view']['focus']();}),_0x4322f7(_0x4172b9,_0x300b26,{'role':'menu'});const _0x55c59e=[];for(const _0x9b522 of _0x300b26)ke(_0x9b522)&&_0x55c59e['push'](this['editor']['commands']['get'](_0x9b522['model']['commandName']));const _0x5d170e=_0x4172b9['buttonView'];return _0x5d170e['actionView']['unbind']('isEnabled'),_0x5d170e['arrowView']['unbind']('isEnabled'),_0x5d170e['actionView']['bind']('isEnabled')['to'](_0x1e44d8,'isEnabled'),_0x5d170e['arrowView']['bind']('isEnabled')['toMany'](_0x55c59e,'isEnabled',(..._0x27b772)=>_0x27b772['some'](_0xd861ac=>_0xd861ac)),_0x4172b9['on']('execute',_0x1cc18c=>{this['editor']['execute'](_0x1cc18c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4172b9;}['_createMenuBarMenu'](_0x19d32d,_0x2bc5b1,_0x2f4015){const _0x4880d7=new _0x3a12bc(_0x19d32d),_0x160356=this['editor']['commands']['get']('trackChanges');_0x4880d7['buttonView']['set']({'label':_0x2f4015,'icon':we});const _0x30b7a4=new _0x376e85(_0x19d32d);for(const _0x15cc97 of _0x2bc5b1){if('separator'==_0x15cc97['type']){_0x30b7a4['items']['add'](new _0xa8bd4d(_0x19d32d));continue;}const _0x3d0a94=new _0x5369f1(_0x19d32d,_0x4880d7),_0xd8c85f=new _0x4ce01f(_0x19d32d),_0x141b98=_0x15cc97['model'];_0xd8c85f['bind'](...Object['keys'](_0x141b98))['to'](_0x141b98),_0xd8c85f['delegate']('execute')['to'](_0x4880d7),_0xd8c85f['on']('execute',()=>{this['editor']['execute'](_0x141b98['commandName']),this['editor']['editing']['view']['focus']();}),_0x3d0a94['children']['add'](_0xd8c85f),_0x30b7a4['items']['add'](_0x3d0a94);}return _0x4880d7['bind']('isEnabled')['to'](_0x160356,'isEnabled'),_0x4880d7['panelView']['children']['add'](_0x30b7a4),_0x4880d7;}['_initializeController'](_0x3eb50c){const _0x2b0a7f=this['editor'],_0x22bcde=_0x2b0a7f['config'],_0x3cfed8=_0x2b0a7f['plugins']['get']('Annotations'),_0x47bcc7=_0x2b0a7f['plugins']['get']('CommentsRepository'),_0x50442c=_0x2b0a7f['plugins']['get']('EditorAnnotations'),_0xc78b86=_0x2b0a7f['plugins']['get'](_0x48e0a0)['me'],_0xd05191=_0x22bcde['get']('trackChanges')['SuggestionThreadView'],_0x378510=_0x22bcde['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2a2782,CommentThreadInputView:_0x512abf}=_0x2b0a7f['plugins']['get']('CommentsUI');let _0x3dd86a,_0x502915,_0x5115ae;this['_annotationViews']['has'](_0x3eb50c['id'])?(_0x502915=this['_annotationViews']['get'](_0x3eb50c['id']),_0x3dd86a=_0x502915['mainView']):(_0x3dd86a=new _0xd05191(_0x2b0a7f['locale'],_0x3eb50c,_0xc78b86,{'disableComments':this['_disableComments'],'editorConfig':{..._0x22bcde['get']('comments.editorConfig'),'licenseKey':_0x22bcde['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x22bcde['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x22bcde['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x22bcde['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1872cb(_0x22bcde['get']('locale')),'CommentView':_0x22bcde['get']('comments')['CommentView'],'CommentsListView':_0x2a2782,'CommentThreadInputView':_0x512abf,'SuggestionView':_0x378510}),_0x3dd86a['suggestionView']['acceptButton']['on']('execute',()=>{_0x2b0a7f['editing']['view']['focus']();}),_0x3dd86a['suggestionView']['discardButton']['on']('execute',()=>{_0x2b0a7f['editing']['view']['focus']();}),_0x502915=_0x3cfed8['createAnnotationView'](this['editor']['locale'],_0x3dd86a),_0x502915['bind']('isDirty')['to'](_0x3dd86a,'isDirty'),_0x502915['bind']('length')['to'](_0x3dd86a),_0x502915['bind']('type')['to'](_0x3dd86a,'type',_0x5a7a21=>'suggestion-'+_0x5a7a21),_0x3dd86a['on']('escape',()=>{_0x5115ae['fire']('escape');}),this['_annotationViews']['set'](_0x3eb50c['id'],_0x502915));const _0xe6ecd4=_0x47bcc7['createCommentThreadController'](_0x3eb50c['commentThread'],_0x3dd86a),_0x2851da=new Ce(_0x2b0a7f,_0x3eb50c,_0x3dd86a,_0xe6ecd4),_0x44a1e0=_0x3eb50c['getAllAdjacentSuggestions']()['filter'](_0x2e784f=>_0x2e784f['isInContent']);_0x3dd86a['descriptionParts']=_0x2b0a7f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x44a1e0),this['_suggestionToController']['set'](_0x3eb50c,_0x2851da),this['_viewToController']['set'](_0x3dd86a,_0x2851da),_0x5115ae=_0x3cfed8['createAnnotation']({'view':_0x502915,'target':()=>{const _0x2e841f=[],_0x189b3e=_0x3eb50c['getAllAdjacentSuggestions']()['filter'](_0x3ccb0b=>_0x3ccb0b['isInContent']);for(const _0x48fa57 of _0x189b3e)_0x2e841f['push'](..._0x48fa57['getMarkers']());return _0xf76376(_0x2b0a7f['editing'],_0x2e841f);},'type':()=>'suggestion-'+_0x2851da['view']['type']}),_0x47bcc7['_bindAnnotationToEditors'](_0x3dd86a,_0x5115ae),_0x3cfed8['add'](_0x5115ae),_0x50442c['registerAnnotation'](_0x5115ae);}['_destroyController'](_0x52cf77){const _0x268c5d=this['editor']['plugins']['get']('CommentsRepository'),_0x282a29=this['editor']['plugins']['get']('Annotations'),_0x12a8df=this['_suggestionToController']['get'](_0x52cf77),_0x4b25eb=_0x12a8df['view'],_0x2fbe20=_0x282a29['getByInnerView'](_0x4b25eb);_0x268c5d['_unbindEditors'](_0x4b25eb),_0x2fbe20&&_0x282a29['remove'](_0x2fbe20),this['_suggestionToController']['delete'](_0x52cf77),this['_viewToController']['delete'](_0x4b25eb),_0x12a8df['destroy']();}['_updateController'](_0x32f4db){if(!_0x32f4db['isInContent']||!this['_suggestionToController']['has'](_0x32f4db))return;const _0x3e50a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcb59f4=this['_suggestionToController']['get'](_0x32f4db),_0x3a009e=_0x32f4db['getAllAdjacentSuggestions']();_0xcb59f4['view']['descriptionParts']=_0x3e50a9['descriptionFactory']['getDescriptions'](_0x3a009e);}['destroy'](){for(const _0x25e897 of this['_suggestionToController']['keys']())this['_destroyController'](_0x25e897);for(const _0x193a20 of this['_annotationViews']['values']())_0x193a20['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x14ab3b){return'model'in _0x14ab3b;}class k extends _0x32720e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x29098d){this['editor']['plugins']['get'](p)['adapter']=_0x29098d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1839f4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1839f4);}['getSuggestions']({skipNotAttached:_0x49586d=!0x1,toJSON:_0x1a9ab3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x49586d,'toJSON':_0x1a9ab3});}['getSuggestion'](_0x102eeb){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x102eeb);}}const w=['Pagination'];class T extends _0x32720e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5c5305=this['editor'];if(_0x5c5305['config']['define']('trackChangesData.editorCreator',_0x38fdc7=>{const _0xe95fa1=_0x5c5305['model']['document']['getRootNames']()['reduce']((_0x5345c0,_0x3b1505)=>(_0x5345c0[_0x3b1505]='',_0x5345c0),{});return _0x5c5305['constructor']['create'](_0xe95fa1,_0x38fdc7);}),'function'!=typeof _0x5c5305['config']['get']('trackChangesData')['editorCreator'])throw new _0xfec3cf('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x7801ea){return N(this['editor'],!0x0,_0x7801ea);}['getDataWithDiscardedSuggestions'](_0x385090){return N(this['editor'],!0x1,_0x385090);}}class D extends _0x32720e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d5cd4){function _0x2e5af9(_0x518eb9){return _0x518eb9['map'](_0x226405=>String['fromCharCode'](_0x226405))['join']('');}super(_0x4d5cd4),this['result']='end',_0x4d5cd4[_0x2e5af9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e5af9([0x76,0x69,0x65,0x77])][_0x2e5af9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e5af9([0x61,0x75,0x74,0x6f]),_0x4d5cd4[_0x2e5af9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2e5af9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e5af9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2e5af9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2e5af9([0x6f,0x6b])});}['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 Fe(_0x3d0bd8){return void 0x0!==_0x3d0bd8['getRootsAttributes'];}async function N(_0x1b3b68,_0x576d02,_0x2c89eb){const _0x373f03=_0x46ee85(_0x1b3b68,w);_0x373f03['plugins']['push'](p,D),_0x373f03['rootsAttributes']=Fe(_0x1b3b68)?_0x1b3b68['getRootsAttributes']():void 0x0;const _0x5b09ac=document['createDocumentFragment'](),_0x547d97=_0x1b3b68['config']['get']('trackChangesData')['editorCreator'],_0x2343f5=await _0x547d97(_0x373f03,()=>function(_0x5f5310){const _0x1fd185=document['createElement']('div');return _0x5f5310['appendChild'](_0x1fd185),_0x1fd185;}(_0x5b09ac));!function(_0xa7f47c,_0x368fc2){const _0x643e2d=_0xa7f47c['model']['document']['getRootNames']()['reduce']((_0x22f582,_0x1f65ca)=>(_0x22f582[_0x1f65ca]=_0xa7f47c['data']['get']({'rootName':_0x1f65ca}),_0x22f582),{}),_0x289584=_0xa7f47c['plugins']['get']('Users')['users']['map'](_0xe7a727=>({'id':_0xe7a727['id'],'name':_0xe7a727['name']})),_0x179594=_0xa7f47c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x56a22d=_0xa7f47c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xd2885a=_0x368fc2['plugins']['get']('Users'),_0x2dc616=_0x368fc2['plugins']['get']('TrackChangesEditing'),_0x43b88=_0x368fc2['plugins']['get']('CommentsRepository');for(const _0x3b20a1 of _0x43b88['getCommentThreads']())_0x3b20a1['remove']();for(const _0x32d218 of _0x289584)_0xd2885a['getUser'](_0x32d218['id'])||_0xd2885a['addUser'](_0x32d218);_0xd2885a['me']||_0xd2885a['useAnonymousUser']();for(const _0x550028 of _0x56a22d)_0x43b88['addCommentThread'](_0x550028);for(const _0xa26b11 of _0x179594)_0x2dc616['addSuggestionData'](_0xa26b11);_0x368fc2['data']['set'](_0x643e2d);}(_0x1b3b68,_0x2343f5),_0x2343f5['execute'](_0x576d02?'acceptAllSuggestions':'discardAllSuggestions');const _0x227f3f=Fe(_0x2343f5)?_0x2343f5['getFullData'](_0x2c89eb):_0x2343f5['data']['get'](_0x2c89eb);return await _0x2343f5['destroy'](),_0x227f3f;}class Me extends _0x11e5db{['options'];constructor(_0x81f3a3,_0x2fb0c7){super(_0x81f3a3),this['options']=_0x2fb0c7,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x47ba51,_0x40b9de){if(!this['element'])return;const _0x2004e0=[];for(const [_0x5de751,_0x23624b]of _0x47ba51){const _0x257dc1=document['createElement']('div');_0x257dc1['setAttribute']('data-ck-root-name',_0x5de751),_0x257dc1['className']=_0x23624b['classes']+'\x20ck-track-changes-preview__root-container',_0x257dc1['innerHTML']=_0x23624b['content'],_0x2004e0['push'](_0x257dc1);}_0x40b9de(this['element'],_0x2004e0),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x534b21){super(_0x534b21),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x51f8c6=this['editor'],_0x988ccf=_0x51f8c6['locale'],_0x2c8eb8=_0x51f8c6['plugins']['get']('Dialog');let _0x5e3e1b;const _0x4879fe=function(_0xce73c){const _0x49c298={};if('editables'in _0xce73c['ui']['view']){for(const [_0xafccec,_0xe3a4f3]of Object['entries'](_0xce73c['ui']['view']['editables']))_0x49c298[_0xafccec]=_0xe3a4f3['element'];}else _0x49c298[_0xce73c['model']['document']['getRootNames']()[0x0]]=_0xce73c['ui']['view']['editable']['element'];return _0x49c298;}(_0x51f8c6),_0x5f4b69=function(_0xf8b08b){let _0x169106=0x0;for(const _0xeef46c of Object['values'](_0xf8b08b))_0x169106=Math['max'](_0x169106,_0xeef46c['getBoundingClientRect']()['width']);let _0x37bb67=0x0;for(const _0x5effc4 of Object['values'](_0xf8b08b))_0x37bb67+=_0x5effc4['getBoundingClientRect']()['height'];const _0x5ef255=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2b4271=Math['min'](_0x37bb67,_0x5ef255);return{'width':_0x169106,'height':_0x2b4271};}(_0x4879fe);_0x2c8eb8['show']({'id':'finalContentPreview','title':o(_0x988ccf,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x988ccf,{'dialogRects':_0x5f4b69}),'onHide':()=>{_0x5e3e1b['detachFromDom']();},'onShow':()=>{_0x51f8c6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x59ce17=>{const _0x2b3b22=this['_standarizeRootsData'](_0x59ce17,_0x51f8c6,_0x4879fe);_0x2c8eb8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2b3b22,_0x51f8c6['config']['get']('trackChanges.preview.renderFunction'));}),_0x5e3e1b=new _0x2be798(_0x988ccf,[_0x2c8eb8['view']]),_0x5e3e1b['attachToDom'](),_0x5e3e1b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x51f8c6['once']('destroy',()=>{_0x5e3e1b['detachFromDom']();});const _0x16c3f4=_0x2c8eb8['view']['headerView']['class'];_0x2c8eb8['view']['headerView']['class']=_0x16c3f4?_0x16c3f4+'\x20ck-reset_all':'ck-reset_all',_0x2c8eb8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2c8eb8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2556ac=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x57ac0e=_0x2556ac['previewMode'],_0x795e3a={};if('$labels'===_0x57ac0e){for(const _0x3abb6d of _0x2556ac['getMergeFieldsIds']())_0x795e3a[_0x3abb6d]=_0x2556ac['getLabel'](_0x3abb6d)||_0x3abb6d;}else{const _0x11f0cb='$defaultValues'===_0x57ac0e?_0x2556ac['getDefaultValues']():_0x2556ac['getDataSetValues'](_0x57ac0e,!0x0);for(const _0x24aa0f of Object['entries'](_0x11f0cb)){const [_0x2ae944,_0x496e29]=_0x24aa0f;_0x795e3a[_0x2ae944]=null!==_0x496e29?_0x496e29:_0x2556ac['getLabel'](_0x2ae944)||_0x2ae944;}}return{'mergeFieldsData':_0x795e3a};}['_standarizeRootsData'](_0x3fd92e,_0x371f77,_0x3f0941){let _0x353ba1;if('string'==typeof _0x3fd92e){const _0x3f7ad3=_0x371f77['model']['document']['getRootNames']()[0x0];_0x353ba1={[_0x3f7ad3]:_0x3fd92e};}else _0x353ba1=_0x3fd92e;const _0x3ca72e=this['_fixMediaEmbeds'](_0x353ba1,_0x371f77),_0x5edee2=function(_0x4f04b3,_0x150147){for(const [_0x4e7723,_0x2c3460]of _0x4f04b3)_0x2c3460['classes']=_0x150147[_0x4e7723]['classList']['value']['replace']('ck-focused','');return _0x4f04b3;}(this['_sortRoots'](_0x371f77)['reduce']((_0x4b6d28,_0x303616)=>(_0x4b6d28['push']([_0x303616,{'content':_0x3ca72e[_0x303616],'classes':''}]),_0x4b6d28),[]),_0x3f0941);return _0x5edee2;}['_fixMediaEmbeds'](_0x1c6029,_0x2c6963){if(!_0x2c6963['plugins']['has']('MediaEmbedEditing'))return _0x1c6029;const _0x29afc4=_0x2c6963['plugins']['get']('MediaEmbedEditing');for(const [_0x2d13f8,_0x34e1e3]of Object['entries'](_0x1c6029)){const _0x19a746=document['createElement']('div');_0x19a746['innerHTML']=_0x34e1e3,(_0x19a746['querySelectorAll']('figure.media')['forEach'](_0x388d10=>{const _0x2c3989=_0x388d10['querySelector']('oembed');if(_0x2c3989){const _0xfda75=_0x2c3989['getAttribute']('url');if(_0xfda75){const _0x35ffaa=_0x29afc4['registry']['getMediaViewElement'](new _0x35eebe(_0x2c6963['editing']['view']['document']),_0xfda75,{'elementName':'','renderForEditingView':!0x0}),_0x6d6557=document['createElement']('div');_0x6d6557['classList']['add']('ck-media__wrapper'),_0x35ffaa['render'](_0x6d6557,_0x2c6963['editing']['view']['domConverter']),_0x2c3989['replaceWith'](_0x6d6557);}}}),_0x1c6029[_0x2d13f8]=_0x19a746['innerHTML']);}return _0x1c6029;}['_sortRoots'](_0x47396d){if(!function(_0x259c03){return void 0x0!==_0x259c03['getRootsAttributes'];}(_0x47396d))return _0x47396d['model']['document']['getRootNames']();const _0x302370=[],_0x220735=new Map();for(const _0x3d9e5e of _0x47396d['model']['document']['getRootNames']()){const _0x510af7=_0x47396d['editing']['view']['getDomRoot'](_0x3d9e5e)['getClientRects']()['item'](0x0);_0x302370['push'](_0x3d9e5e),_0x220735['set'](_0x3d9e5e,_0x510af7);}return _0x302370['sort']((_0x13969a,_0x6371f4)=>{const _0x2c3ad4=_0x220735['get'](_0x13969a),_0x281dca=_0x220735['get'](_0x6371f4);return _0x2c3ad4['y']-_0x281dca['y']||_0x2c3ad4['x']-_0x281dca['x'];}),_0x302370;}}class te extends _0x32720e{static get['requires'](){return[T,_0x26d4e0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e715b){super(_0x1e715b),_0x1e715b['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1e715b['config']['define']('trackChanges.preview.renderFunction',(_0x21e8d7,_0x56a367)=>{for(const _0x105c4a of _0x56a367)_0x21e8d7['appendChild'](_0x105c4a);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|